File manager - Edit - /opt/flussonic/wwwroot/flu/admin3/vendors.2602579e596d686f941c.js
Back
(this.webpackJsonpAdministration=this.webpackJsonpAdministration||[]).push([[7],[function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return f}));var r=n(2),i=(n(312),n(124)),o=(n(1175),n(391),n(606),n(136)),a=n(196);var s=function(e,t){var n=arguments;if(null==t||!i.f.call(t,"css"))return r.createElement.apply(void 0,n);var o=n.length,a=new Array(o);a[0]=i.b,a[1]=Object(i.e)(e,t);for(var s=2;s<o;s++)a[s]=n[s];return r.createElement.apply(null,a)},u=r.useInsertionEffect?r.useInsertionEffect:r.useLayoutEffect,c=Object(i.h)((function(e,t){var n=e.styles,s=Object(a.a)([n],void 0,Object(r.useContext)(i.c)),c=Object(r.useRef)();return u((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,i=document.querySelector('style[data-emotion="'+e+" "+s.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==i&&(r=!0,i.setAttribute("data-emotion",e),n.hydrate([i])),c.current=[n,r],function(){n.flush()}}),[t]),u((function(){var e=c.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==s.next&&Object(o.b)(t,s.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",s,n,!1)}}),[t,s.name]),null}));function l(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object(a.a)(t)}var f=function(){var e=l.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},,function(e,t,n){"use strict";e.exports=n(1169)},function(e,t,n){"use strict";n.r(t),n.d(t,"guid",(function(){return g})),n.d(t,"logError",(function(){return m})),n.d(t,"clone",(function(){return y})),n.d(t,"merge",(function(){return b})),n.d(t,"mergeAll",(function(){return x})),n.d(t,"extend",(function(){return w})),n.d(t,"defaults",(function(){return _})),n.d(t,"createCanvas",(function(){return S})),n.d(t,"indexOf",(function(){return O})),n.d(t,"inherits",(function(){return k})),n.d(t,"mixin",(function(){return E})),n.d(t,"isArrayLike",(function(){return j})),n.d(t,"each",(function(){return T})),n.d(t,"map",(function(){return C})),n.d(t,"reduce",(function(){return A})),n.d(t,"filter",(function(){return P})),n.d(t,"find",(function(){return M})),n.d(t,"keys",(function(){return I})),n.d(t,"bind",(function(){return R})),n.d(t,"curry",(function(){return D})),n.d(t,"isArray",(function(){return L})),n.d(t,"isFunction",(function(){return N})),n.d(t,"isString",(function(){return F})),n.d(t,"isStringSafe",(function(){return B})),n.d(t,"isNumber",(function(){return U})),n.d(t,"isObject",(function(){return z})),n.d(t,"isBuiltInObject",(function(){return V})),n.d(t,"isTypedArray",(function(){return H})),n.d(t,"isDom",(function(){return W})),n.d(t,"isGradientObject",(function(){return q})),n.d(t,"isImagePatternObject",(function(){return G})),n.d(t,"isRegExp",(function(){return Y})),n.d(t,"eqNaN",(function(){return K})),n.d(t,"retrieve",(function(){return $})),n.d(t,"retrieve2",(function(){return X})),n.d(t,"retrieve3",(function(){return Q})),n.d(t,"slice",(function(){return Z})),n.d(t,"normalizeCssArray",(function(){return J})),n.d(t,"assert",(function(){return ee})),n.d(t,"trim",(function(){return te})),n.d(t,"setAsPrimitive",(function(){return re})),n.d(t,"isPrimitive",(function(){return ie})),n.d(t,"HashMap",(function(){return oe})),n.d(t,"createHashMap",(function(){return ae})),n.d(t,"concatArray",(function(){return se})),n.d(t,"createObject",(function(){return ue})),n.d(t,"disableUserSelect",(function(){return ce})),n.d(t,"hasOwn",(function(){return le})),n.d(t,"noop",(function(){return fe})),n.d(t,"RADIAN_TO_DEGREE",(function(){return de}));var r=n(82),i=A(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(e,t){return e["[object "+t+"]"]=!0,e}),{}),o=A(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(e,t){return e["[object "+t+"Array]"]=!0,e}),{}),a=Object.prototype.toString,s=Array.prototype,u=s.forEach,c=s.filter,l=s.slice,f=s.map,d=function(){}.constructor,p=d?d.prototype:null,h="__proto__",v=2311;function g(){return v++}function m(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];"undefined"!=typeof console&&console.error.apply(console,e)}function y(e){if(null==e||"object"!=typeof e)return e;var t=e,n=a.call(e);if("[object Array]"===n){if(!ie(e)){t=[];for(var r=0,s=e.length;r<s;r++)t[r]=y(e[r])}}else if(o[n]){if(!ie(e)){var u=e.constructor;if(u.from)t=u.from(e);else{t=new u(e.length);for(r=0,s=e.length;r<s;r++)t[r]=e[r]}}}else if(!i[n]&&!ie(e)&&!W(e))for(var c in t={},e)e.hasOwnProperty(c)&&c!==h&&(t[c]=y(e[c]));return t}function b(e,t,n){if(!z(t)||!z(e))return n?y(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==h){var i=e[r],o=t[r];!z(o)||!z(i)||L(o)||L(i)||W(o)||W(i)||V(o)||V(i)||ie(o)||ie(i)?!n&&r in e||(e[r]=y(t[r])):b(i,o,n)}return e}function x(e,t){for(var n=e[0],r=1,i=e.length;r<i;r++)n=b(n,e[r],t);return n}function w(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==h&&(e[n]=t[n]);return e}function _(e,t,n){for(var r=I(t),i=0;i<r.length;i++){var o=r[i];(n?null!=t[o]:null==e[o])&&(e[o]=t[o])}return e}var S=r.d.createCanvas;function O(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function k(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}function E(e,t,n){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var o=r[i];"constructor"!==o&&(n?null!=t[o]:null==e[o])&&(e[o]=t[o])}else _(e,t,n)}function j(e){return!!e&&("string"!=typeof e&&"number"==typeof e.length)}function T(e,t,n){if(e&&t)if(e.forEach&&e.forEach===u)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o,e)}function C(e,t,n){if(!e)return[];if(!t)return Z(e);if(e.map&&e.map===f)return e.map(t,n);for(var r=[],i=0,o=e.length;i<o;i++)r.push(t.call(n,e[i],i,e));return r}function A(e,t,n,r){if(e&&t){for(var i=0,o=e.length;i<o;i++)n=t.call(r,n,e[i],i,e);return n}}function P(e,t,n){if(!e)return[];if(!t)return Z(e);if(e.filter&&e.filter===c)return e.filter(t,n);for(var r=[],i=0,o=e.length;i<o;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function M(e,t,n){if(e&&t)for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r]}function I(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}var R=p&&N(p.bind)?p.call.bind(p.bind):function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(l.call(arguments)))}};function D(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(l.call(arguments)))}}function L(e){return Array.isArray?Array.isArray(e):"[object Array]"===a.call(e)}function N(e){return"function"==typeof e}function F(e){return"string"==typeof e}function B(e){return"[object String]"===a.call(e)}function U(e){return"number"==typeof e}function z(e){var t=typeof e;return"function"===t||!!e&&"object"===t}function V(e){return!!i[a.call(e)]}function H(e){return!!o[a.call(e)]}function W(e){return"object"==typeof e&&"number"==typeof e.nodeType&&"object"==typeof e.ownerDocument}function q(e){return null!=e.colorStops}function G(e){return null!=e.image}function Y(e){return"[object RegExp]"===a.call(e)}function K(e){return e!=e}function $(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e.length;n<r;n++)if(null!=e[n])return e[n]}function X(e,t){return null!=e?e:t}function Q(e,t,n){return null!=e?e:null!=t?t:n}function Z(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return l.apply(e,t)}function J(e){if("number"==typeof e)return[e,e,e,e];var t=e.length;return 2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e}function ee(e,t){if(!e)throw new Error(t)}function te(e){return null==e?null:"function"==typeof e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var ne="__ec_primitive__";function re(e){e[ne]=!0}function ie(e){return e[ne]}var oe=function(){function e(t){this.data={};var n=L(t);this.data={};var r=this;function i(e,t){n?r.set(e,t):r.set(t,e)}t instanceof e?t.each(i):t&&T(t,i)}return e.prototype.get=function(e){return this.data.hasOwnProperty(e)?this.data[e]:null},e.prototype.set=function(e,t){return this.data[e]=t},e.prototype.each=function(e,t){for(var n in this.data)this.data.hasOwnProperty(n)&&e.call(t,this.data[n],n)},e.prototype.keys=function(){return I(this.data)},e.prototype.removeKey=function(e){delete this.data[e]},e}();function ae(e){return new oe(e)}function se(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];var i=e.length;for(r=0;r<t.length;r++)n[r+i]=t[r];return n}function ue(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&w(n,t),n}function ce(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function le(e,t){return e.hasOwnProperty(t)}function fe(){}var de=180/Math.PI},,function(e,t,n){"use strict";e.exports=n(1176)},function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():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(276);var r=n(211),i=n.n(r),o=(n(413),n(2)),a=n.n(o),s=(n(845),n(846)),u=n.n(s),c=n(847),l=n.n(c);function f(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 d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(n,!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p,h,v={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0},g=a.a.createContext();function m(){return h}function y(){return v}var b=function(){function e(){u()(this,e),this.usedNamespaces={}}return l()(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function x(){return p}var w={type:"3rdParty",init:function(e){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};v=d({},v,{},e)}(e.options.react),function(e){p=e}(e)}};function _(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"string"==typeof n[0]&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var S={};function O(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&S[t[0]]||("string"==typeof t[0]&&(S[t[0]]=new Date),_.apply(void 0,t))}function k(e,t,n){e.loadNamespaces(t,(function(){if(e.isInitialized)n();else{e.on("initialized",(function t(){setTimeout((function(){e.off("initialized",t)}),0),n()}))}}))}var E=n(349),j=n.n(E);function T(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 C(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.i18n,r=Object(o.useContext)(g),a=m()&&r||{},s=a.i18n,u=a.defaultNS,c=n||s||x();if(c&&!c.reportNamespaces&&(c.reportNamespaces=new b),!c){O("You will need pass in an i18next instance by using initReactI18next");var l=function(e){return Array.isArray(e)?e[e.length-1]:e},f=[l,{},!1];return f.t=l,f.i18n={},f.ready=!1,f}var d=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(n,!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},y(),{},c.options.react,{},t),p=d.useSuspense,h=e||u||c.options&&c.options.defaultNS;h="string"==typeof h?[h]:h||["translation"],c.reportNamespaces.addUsedNamespaces&&c.reportNamespaces.addUsedNamespaces(h);var v=(c.isInitialized||c.initializedStoreOnce)&&h.every((function(e){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.languages||!t.languages.length)return O("i18n.languages were undefined or empty",t.languages),!0;var r=t.languages[0],i=!!t.options&&t.options.fallbackLng,o=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e))&&(!!t.hasResourceBundle(r,e)||(!t.services.backendConnector.backend||!(!a(r,e)||i&&!a(o,e))))}(e,c,d)}));function w(){return{t:c.getFixedT(null,"fallback"===d.nsMode?h:h[0])}}var _=Object(o.useState)(w()),S=j()(_,2),E=S[0],C=S[1];Object(o.useEffect)((function(){var e=!0,t=d.bindI18n,n=d.bindI18nStore;function r(){e&&C(w())}return v||p||k(c,h,(function(){e&&C(w())})),t&&c&&c.on(t,r),n&&c&&c.store.on(n,r),function(){e=!1,t&&c&&t.split(" ").forEach((function(e){return c.off(e,r)})),n&&c&&n.split(" ").forEach((function(e){return c.store.off(e,r)}))}}),[h.join()]);var A=[E.t,c,v];if(A.t=E.t,A.i18n=c,A.ready=v,v)return A;if(!v&&!p)return A;throw new Promise((function(e){k(c,h,(function(){C(w()),e()}))}))}n.d(t,"b",(function(){return C})),n.d(t,"a",(function(){return w}))},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(29),i=n(87);function o(e){return function t(n,o){switch(arguments.length){case 0:return t;case 1:return Object(i.a)(n)?t:Object(r.a)((function(t){return e(n,t)}));default:return Object(i.a)(n)&&Object(i.a)(o)?t:Object(i.a)(n)?Object(r.a)((function(t){return e(t,o)})):Object(i.a)(o)?Object(r.a)((function(t){return e(n,t)})):e(n,o)}}}},,function(e,t,n){"use strict";var r=n(381);n.o(r,"QueryClient")&&n.d(t,"QueryClient",(function(){return r.QueryClient})),n.o(r,"QueryClientProvider")&&n.d(t,"QueryClientProvider",(function(){return r.QueryClientProvider})),n.o(r,"useMutation")&&n.d(t,"useMutation",(function(){return r.useMutation})),n.o(r,"useQuery")&&n.d(t,"useQuery",(function(){return r.useQuery})),n.o(r,"useQueryClient")&&n.d(t,"useQueryClient",(function(){return r.useQueryClient}));var i=n(694);n.o(i,"QueryClient")&&n.d(t,"QueryClient",(function(){return i.QueryClient})),n.o(i,"QueryClientProvider")&&n.d(t,"QueryClientProvider",(function(){return i.QueryClientProvider})),n.o(i,"useMutation")&&n.d(t,"useMutation",(function(){return i.useMutation})),n.o(i,"useQuery")&&n.d(t,"useQuery",(function(){return i.useQuery})),n.o(i,"useQueryClient")&&n.d(t,"useQueryClient",(function(){return i.useQueryClient}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a}));var r=n(237),i=n(273),o=function(e){return Object(r.b)(e)&&"classes"!==e},a=r.b,s=Object(r.a)({defaultTheme:i.a,rootShouldForwardProp:o});t.a=s},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){"use strict";function r(e){return(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})(e)}function i(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==r(e))if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=i(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function o(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=i(e))&&(r&&(r+=" "),r+=t);return r}n.r(t),n.d(t,"clsx",(function(){return o})),t.default=o},function(e,t,n){"use strict";var r=n(365);t.a=r.a},function(e,t,n){"use strict";n.r(t);var r=n(110),i=n(6),o=n(2),a=n.n(o),s=n(488),u=n(611),c=n(366),l=n(315);function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e){return void 0!==e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ignoreAccents,n=void 0===t||t,r=e.ignoreCase,i=void 0===r||r,o=e.limit,a=e.matchFrom,s=void 0===a?"any":a,u=e.stringify,c=e.trim,l=void 0!==c&&c;return function(e,t){var r=t.inputValue,a=t.getOptionLabel,c=l?r.trim():r;i&&(c=c.toLowerCase()),n&&(c=p(c));var f=e.filter((function(e){var t=(u||a)(e);return i&&(t=t.toLowerCase()),n&&(t=p(t)),"start"===s?0===t.indexOf(c):t.indexOf(c)>-1}));return"number"==typeof o?f.slice(0,o):f}}function v(e,t){for(var n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}var g=h(),m=5;function y(e){var t,n=e.autoComplete,r=void 0!==n&&n,a=e.autoHighlight,d=void 0!==a&&a,p=e.autoSelect,h=void 0!==p&&p,y=e.blurOnSelect,b=void 0!==y&&y,x=e.clearOnBlur,w=void 0===x?!e.freeSolo:x,_=e.clearOnEscape,S=void 0!==_&&_,O=e.componentName,k=void 0===O?"useAutocomplete":O,E=e.defaultValue,j=void 0===E?e.multiple?[]:null:E,T=e.disableClearable,C=void 0!==T&&T,A=e.disableCloseOnSelect,P=void 0!==A&&A,M=e.disabled,I=e.disabledItemsFocusable,R=void 0!==I&&I,D=e.disableListWrap,L=void 0!==D&&D,N=e.filterOptions,F=void 0===N?g:N,B=e.filterSelectedOptions,U=void 0!==B&&B,z=e.freeSolo,V=void 0!==z&&z,H=e.getOptionDisabled,W=e.getOptionLabel,q=void 0===W?function(e){var t;return null!=(t=e.label)?t:e}:W,G=e.groupBy,Y=e.handleHomeEndKeys,K=void 0===Y?!e.freeSolo:Y,$=e.id,X=e.includeInputInList,Q=void 0!==X&&X,Z=e.inputValue,J=e.isOptionEqualToValue,ee=void 0===J?function(e,t){return e===t}:J,te=e.multiple,ne=void 0!==te&&te,re=e.onChange,ie=e.onClose,oe=e.onHighlightChange,ae=e.onInputChange,se=e.onOpen,ue=e.open,ce=e.openOnFocus,le=void 0!==ce&&ce,fe=e.options,de=e.readOnly,pe=void 0!==de&&de,he=e.selectOnFocus,ve=void 0===he?!e.freeSolo:he,ge=e.value,me=Object(s.a)($);t=function(e){var t=q(e);return"string"!=typeof t?String(t):t};var ye=o.useRef(!1),be=o.useRef(!0),xe=o.useRef(null),we=o.useRef(null),_e=f(o.useState(null),2),Se=_e[0],Oe=_e[1],ke=f(o.useState(-1),2),Ee=ke[0],je=ke[1],Te=d?0:-1,Ce=o.useRef(Te),Ae=f(Object(u.a)({controlled:ge,default:j,name:k}),2),Pe=Ae[0],Me=Ae[1],Ie=f(Object(u.a)({controlled:Z,default:"",name:k,state:"inputValue"}),2),Re=Ie[0],De=Ie[1],Le=f(o.useState(!1),2),Ne=Le[0],Fe=Le[1],Be=o.useCallback((function(e,n){if((ne?Pe.length<n.length:null!==n)||w){var r;if(ne)r="";else if(null==n)r="";else{var i=t(n);r="string"==typeof i?i:""}Re!==r&&(De(r),ae&&ae(e,r,"reset"))}}),[t,Re,ne,ae,De,w,Pe]),Ue=o.useRef();o.useEffect((function(){var e=Pe!==Ue.current;Ue.current=Pe,Ne&&!e||V&&!e||Be(null,Pe)}),[Pe,Be,Ne,Ue,V]);var ze=f(Object(u.a)({controlled:ue,default:!1,name:k,state:"open"}),2),Ve=ze[0],He=ze[1],We=f(o.useState(!0),2),qe=We[0],Ge=We[1],Ye=!ne&&null!=Pe&&Re===t(Pe),Ke=Ve&&!pe,$e=Ke?F(fe.filter((function(e){return!U||!(ne?Pe:[Pe]).some((function(t){return null!==t&&ee(e,t)}))})),{inputValue:Ye&&qe?"":Re,getOptionLabel:t}):[],Xe=Ve&&$e.length>0&&!pe,Qe=Object(c.a)((function(e){-1===e?xe.current.focus():Se.querySelector('[data-tag-index="'.concat(e,'"]')).focus()}));o.useEffect((function(){ne&&Ee>Pe.length-1&&(je(-1),Qe(-1))}),[Pe,ne,Ee,Qe]);var Ze=Object(c.a)((function(e){var t=e.event,n=e.index,r=e.reason,i=void 0===r?"auto":r;if(Ce.current=n,-1===n?xe.current.removeAttribute("aria-activedescendant"):xe.current.setAttribute("aria-activedescendant","".concat(me,"-option-").concat(n)),oe&&oe(t,-1===n?null:$e[n],i),we.current){var o=we.current.querySelector('[role="option"].Mui-focused');o&&(o.classList.remove("Mui-focused"),o.classList.remove("Mui-focusVisible"));var a=we.current.parentElement.querySelector('[role="listbox"]');if(a)if(-1!==n){var s=we.current.querySelector('[data-option-index="'.concat(n,'"]'));if(s&&(s.classList.add("Mui-focused"),"keyboard"===i&&s.classList.add("Mui-focusVisible"),a.scrollHeight>a.clientHeight&&"mouse"!==i)){var u=s,c=a.clientHeight+a.scrollTop,l=u.offsetTop+u.offsetHeight;l>c?a.scrollTop=l-a.clientHeight:u.offsetTop-u.offsetHeight*(G?1.3:0)<a.scrollTop&&(a.scrollTop=u.offsetTop-u.offsetHeight*(G?1.3:0))}}else a.scrollTop=0}})),Je=Object(c.a)((function(e){var n=e.event,i=e.diff,o=e.direction,a=void 0===o?"next":o,s=e.reason,u=void 0===s?"auto":s;if(Ke){var c=function(e,t){if(!we.current||-1===e)return-1;for(var n=e;;){if("next"===t&&n===$e.length||"previous"===t&&-1===n)return-1;var r=we.current.querySelector('[data-option-index="'.concat(n,'"]')),i=!R&&(!r||r.disabled||"true"===r.getAttribute("aria-disabled"));if(!(r&&!r.hasAttribute("tabindex")||i))return n;n+="next"===t?1:-1}}(function(){var e=$e.length-1;if("reset"===i)return Te;if("start"===i)return 0;if("end"===i)return e;var t=Ce.current+i;return t<0?-1===t&&Q?-1:L&&-1!==Ce.current||Math.abs(i)>1?0:e:t>e?t===e+1&&Q?-1:L||Math.abs(i)>1?e:0:t}(),a);if(Ze({index:c,reason:u,event:n}),r&&"reset"!==i)if(-1===c)xe.current.value=Re;else{var l=t($e[c]);xe.current.value=l,0===l.toLowerCase().indexOf(Re.toLowerCase())&&Re.length>0&&xe.current.setSelectionRange(Re.length,l.length)}}})),et=o.useCallback((function(){if(Ke){var e=ne?Pe[0]:Pe;if(0!==$e.length&&null!=e){if(we.current)if(null==e)Ce.current>=$e.length-1?Ze({index:$e.length-1}):Ze({index:Ce.current});else{var t=$e[Ce.current];if(ne&&t&&-1!==v(Pe,(function(e){return ee(t,e)})))return;var n=v($e,(function(t){return ee(t,e)}));-1===n?Je({diff:"reset"}):Ze({index:n})}}else Je({diff:"reset"})}}),[$e.length,!ne&&Pe,U,Je,Ze,Ke,Re,ne]),tt=Object(c.a)((function(e){Object(l.a)(we,e),e&&et()}));o.useEffect((function(){et()}),[et]);var nt=function(e){Ve||(He(!0),Ge(!0),se&&se(e))},rt=function(e,t){Ve&&(He(!1),ie&&ie(e,t))},it=function(e,t,n,r){if(ne){if(Pe.length===t.length&&Pe.every((function(e,n){return e===t[n]})))return}else if(Pe===t)return;re&&re(e,t,n,r),Me(t)},ot=o.useRef(!1),at=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"selectOption",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",i=n,o=t;if(ne){var a=v(o=Array.isArray(Pe)?Pe.slice():[],(function(e){return ee(t,e)}));-1===a?o.push(t):"freeSolo"!==r&&(o.splice(a,1),i="removeOption")}Be(e,o),it(e,o,i,{option:t}),P||e&&(e.ctrlKey||e.metaKey)||rt(e,i),(!0===b||"touch"===b&&ot.current||"mouse"===b&&!ot.current)&&xe.current.blur()};var st=function(e,t){if(ne){""===Re&&rt(e,"toggleInput");var n=Ee;-1===Ee?""===Re&&"previous"===t&&(n=Pe.length-1):((n+="next"===t?1:-1)<0&&(n=0),n===Pe.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;for(var n=e;;){if("next"===t&&n===Pe.length||"previous"===t&&-1===n)return-1;var r=Se.querySelector('[data-tag-index="'.concat(n,'"]'));if(r&&r.hasAttribute("tabindex")&&!r.disabled&&"true"!==r.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),je(n),Qe(n)}},ut=function(e){ye.current=!0,De(""),ae&&ae(e,"","clear"),it(e,ne?[]:null,"clear")},ct=function(e){return function(t){if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==Ee&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(je(-1),Qe(-1)),229!==t.which))switch(t.key){case"Home":Ke&&K&&(t.preventDefault(),Je({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":Ke&&K&&(t.preventDefault(),Je({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),Je({diff:-m,direction:"previous",reason:"keyboard",event:t}),nt(t);break;case"PageDown":t.preventDefault(),Je({diff:m,direction:"next",reason:"keyboard",event:t}),nt(t);break;case"ArrowDown":t.preventDefault(),Je({diff:1,direction:"next",reason:"keyboard",event:t}),nt(t);break;case"ArrowUp":t.preventDefault(),Je({diff:-1,direction:"previous",reason:"keyboard",event:t}),nt(t);break;case"ArrowLeft":st(t,"previous");break;case"ArrowRight":st(t,"next");break;case"Enter":if(-1!==Ce.current&&Ke){var n=$e[Ce.current],i=!!H&&H(n);if(t.preventDefault(),i)return;at(t,n,"selectOption"),r&&xe.current.setSelectionRange(xe.current.value.length,xe.current.value.length)}else V&&""!==Re&&!1===Ye&&(ne&&t.preventDefault(),at(t,Re,"createOption","freeSolo"));break;case"Escape":Ke?(t.preventDefault(),t.stopPropagation(),rt(t,"escape")):S&&(""!==Re||ne&&Pe.length>0)&&(t.preventDefault(),t.stopPropagation(),ut(t));break;case"Backspace":if(ne&&!pe&&""===Re&&Pe.length>0){var o=-1===Ee?Pe.length-1:Ee,a=Pe.slice();a.splice(o,1),it(t,a,"removeOption",{option:Pe[o]})}}}},lt=function(e){Fe(!0),le&&!ye.current&&nt(e)},ft=function(e){null!==we.current&&we.current.parentElement.contains(document.activeElement)?xe.current.focus():(Fe(!1),be.current=!0,ye.current=!1,h&&-1!==Ce.current&&Ke?at(e,$e[Ce.current],"blur"):h&&V&&""!==Re?at(e,Re,"blur","freeSolo"):w&&Be(e,Pe),rt(e,"blur"))},dt=function(e){var t=e.target.value;Re!==t&&(De(t),Ge(!1),ae&&ae(e,t,"input")),""===t?C||ne||it(e,null,"clear"):nt(e)},pt=function(e){Ze({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},ht=function(){ot.current=!0},vt=function(e){var t=Number(e.currentTarget.getAttribute("data-option-index"));at(e,$e[t],"selectOption"),ot.current=!1},gt=function(e){return function(t){var n=Pe.slice();n.splice(e,1),it(t,n,"removeOption",{option:Pe[e]})}},mt=function(e){Ve?rt(e,"toggleInput"):nt(e)},yt=function(e){e.target.getAttribute("id")!==me&&e.preventDefault()},bt=function(){xe.current.focus(),ve&&be.current&&xe.current.selectionEnd-xe.current.selectionStart==0&&xe.current.select(),be.current=!1},xt=function(e){""!==Re&&Ve||mt(e)},wt=V&&Re.length>0;wt=wt||(ne?Pe.length>0:null!==Pe);var _t=$e;if(G){new Map;_t=$e.reduce((function(e,t,n){var r=G(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e}),[])}return M&&Ne&&ft(),{getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(i.a)({"aria-owns":Xe?"".concat(me,"-listbox"):null},e,{onKeyDown:ct(e),onMouseDown:yt,onClick:bt})},getInputLabelProps:function(){return{id:"".concat(me,"-label"),htmlFor:me}},getInputProps:function(){return{id:me,value:Re,onBlur:ft,onFocus:lt,onChange:dt,onMouseDown:xt,"aria-activedescendant":Ke?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Xe?"".concat(me,"-listbox"):void 0,"aria-expanded":Xe,autoComplete:"off",ref:xe,autoCapitalize:"none",spellCheck:"false",role:"combobox"}},getClearProps:function(){return{tabIndex:-1,onClick:ut}},getPopupIndicatorProps:function(){return{tabIndex:-1,onClick:mt}},getTagProps:function(e){var t=e.index;return Object(i.a)({key:t,"data-tag-index":t,tabIndex:-1},!pe&&{onDelete:gt(t)})},getListboxProps:function(){return{role:"listbox",id:"".concat(me,"-listbox"),"aria-labelledby":"".concat(me,"-label"),ref:tt,onMouseDown:function(e){e.preventDefault()}}},getOptionProps:function(e){var n=e.index,r=e.option,i=(ne?Pe:[Pe]).some((function(e){return null!=e&&ee(r,e)})),o=!!H&&H(r);return{key:t(r),tabIndex:-1,role:"option",id:"".concat(me,"-option-").concat(n),onMouseOver:pt,onClick:vt,onTouchStart:ht,"data-option-index":n,"aria-disabled":o,"aria-selected":i}},id:me,inputValue:Re,value:Pe,dirty:wt,popupOpen:Ke,focused:Ne||-1!==Ee,anchorEl:Se,setAnchorEl:Oe,focusedTag:Ee,groupedOptions:_t}}var b=n(16),x=n(158),w=n(689);function _(e){var t=e.badgeContent,n=e.invisible,r=void 0!==n&&n,i=e.max,o=void 0===i?99:i,a=e.showZero,s=void 0!==a&&a,u=Object(w.a)({badgeContent:t,max:o}),c=r;!1!==r||0!==t||s||(c=!0);var l=c?u:e,f=l.badgeContent,d=l.max,p=void 0===d?o:d;return{badgeContent:f,invisible:c,max:p,displayValue:f&&Number(f)>p?"".concat(p,"+"):f}}var S=n(152),O=n(138);function k(e){return Object(O.a)("BaseBadge",e)}var E=Object(S.a)("BaseBadge",["root","badge","invisible"]),j=n(128),T=n(5),C=["badgeContent","component","children","components","componentsProps","invisible","max","showZero"],A=o.forwardRef((function(e,t){var n=e.component,r=e.children,o=e.components,a=void 0===o?{}:o,s=e.componentsProps,u=void 0===s?{}:s,c=e.max,l=void 0===c?99:c,f=e.showZero,d=void 0!==f&&f,p=Object(b.a)(e,C),h=_(Object(i.a)({},e,{max:l})),v=h.badgeContent,g=h.max,m=h.displayValue,y=h.invisible,w=Object(i.a)({},e,{badgeContent:v,invisible:y,max:g,showZero:d}),S=function(e){var t={root:["root"],badge:["badge",e.invisible&&"invisible"]};return Object(x.a)(t,k,void 0)}(w),O=n||a.Root||"span",E=Object(j.a)({elementType:O,externalSlotProps:u.root,externalForwardedProps:p,additionalProps:{ref:t},ownerState:w,className:S.root}),A=a.Badge||"span",P=Object(j.a)({elementType:A,externalSlotProps:u.badge,ownerState:w,className:S.badge});return Object(T.jsxs)(O,Object(i.a)({},E,{children:[r,Object(T.jsx)(A,Object(i.a)({},P,{children:m}))]}))}));function P(e){return Object(O.a)("ButtonUnstyled",e)}var M=Object(S.a)("ButtonUnstyled",["root","active","disabled","focusVisible"]),I=n(612),R=n(289),D=n(181);function L(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return N(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return N(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function F(e){var t=e.disabled,n=void 0!==t&&t,r=e.focusableWhenDisabled,a=e.href,s=e.ref,u=e.tabIndex,c=e.to,l=e.type,f=o.useRef(),d=L(o.useState(!1),2),p=d[0],h=d[1],v=Object(I.a)(),g=v.isFocusVisibleRef,m=v.onFocus,y=v.onBlur,b=v.ref,x=L(o.useState(!1),2),w=x[0],_=x[1];n&&!r&&w&&_(!1),o.useEffect((function(){g.current=w}),[w,g]);var S=L(o.useState(""),2),O=S[0],k=S[1],E=function(e){return function(t){var n;w&&t.preventDefault(),null==(n=e.onMouseLeave)||n.call(e,t)}},j=function(e){return function(t){var n;y(t),!1===g.current&&_(!1),null==(n=e.onBlur)||n.call(e,t)}},T=function(e){return function(t){var n,r;(f.current||(f.current=t.currentTarget),m(t),!0===g.current)&&(_(!0),null==(r=e.onFocusVisible)||r.call(e,t));null==(n=e.onFocus)||n.call(e,t)}},C=function(){var e=f.current;return"BUTTON"===O||"INPUT"===O&&["button","submit","reset"].includes(null==e?void 0:e.type)||"A"===O&&(null==e?void 0:e.href)},A=function(e){return function(t){var r;n||(null==(r=e.onClick)||r.call(e,t))}},P=function(e){return function(t){var r;t.target!==t.currentTarget||n||h(!0),null==(r=e.onMouseDown)||r.call(e,t)}},M=function(e){return function(t){var n;t.target===t.currentTarget&&h(!1),null==(n=e.onMouseUp)||n.call(e,t)}},N=function(e){return function(t){var r,i;(null==(r=e.onKeyDown)||r.call(e,t),t.defaultPrevented)||(t.target!==t.currentTarget||C()||" "!==t.key||t.preventDefault(),t.target!==t.currentTarget||" "!==t.key||n||h(!0),t.target!==t.currentTarget||C()||"Enter"!==t.key||n||(null==(i=e.onClick)||i.call(e,t),t.preventDefault()))}},F=function(e){return function(t){var r,i;(t.target===t.currentTarget&&h(!1),null==(r=e.onKeyUp)||r.call(e,t),t.target!==t.currentTarget||C()||n||" "!==t.key||t.defaultPrevented)||(null==(i=e.onClick)||i.call(e,t))}},B=o.useCallback((function(e){var t;k(null!=(t=null==e?void 0:e.tagName)?t:"")}),[]),U=Object(R.a)(B,Object(R.a)(s,Object(R.a)(b,f))),z={};"BUTTON"===O?(z.type=null!=l?l:"button",r?z["aria-disabled"]=n:z.disabled=n):""!==O&&(a||c||(z.role="button",z.tabIndex=null!=u?u:0),n&&(z["aria-disabled"]=n,z.tabIndex=r?null!=u?u:0:-1));return{getRootProps:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Object(D.a)(e),r=Object(i.a)({},n,t);return delete r.onFocusVisible,Object(i.a)({type:l},r,z,{onBlur:j(r),onClick:A(r),onFocus:T(r),onKeyDown:N(r),onKeyUp:F(r),onMouseDown:P(r),onMouseLeave:E(r),onMouseUp:M(r),ref:U})},focusVisible:w,setFocusVisible:_,disabled:n,active:p}}var B=["action","children","component","components","componentsProps","disabled","focusableWhenDisabled","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseLeave"],U=o.forwardRef((function(e,t){var n,r=e.action,a=e.children,s=e.component,u=e.components,c=void 0===u?{}:u,l=e.componentsProps,f=void 0===l?{}:l,d=e.focusableWhenDisabled,p=void 0!==d&&d,h=Object(b.a)(e,B),v=o.useRef(),g=F(Object(i.a)({},e,{focusableWhenDisabled:p})),m=g.active,y=g.focusVisible,w=g.setFocusVisible,_=g.getRootProps;o.useImperativeHandle(r,(function(){return{focusVisible:function(){w(!0),v.current.focus()}}}),[w]);var S=Object(i.a)({},e,{active:m,focusableWhenDisabled:p,focusVisible:y}),O=function(e){var t=e.active,n={root:["root",e.disabled&&"disabled",e.focusVisible&&"focusVisible",t&&"active"]};return Object(x.a)(n,P,{})}(S),k=null!=(n=null!=s?s:c.Root)?n:"button",E=Object(j.a)({elementType:k,getSlotProps:_,externalForwardedProps:h,externalSlotProps:f.root,additionalProps:{ref:t},ownerState:S,className:O.root});return Object(T.jsx)(k,Object(i.a)({},E,{children:a}))})),z=n(1644);var V=o.createContext(void 0);function H(e){return Object(O.a)("BaseFormControl",e)}var W=Object(S.a)("BaseFormControl",["root","disabled","error","filled","focused","required"]);function q(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return G(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return G(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function G(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Y=["defaultValue","children","component","components","componentsProps","disabled","error","onChange","required","value"];var K=o.forwardRef((function(e,t){var n,r=e.defaultValue,a=e.children,s=e.component,c=e.components,l=void 0===c?{}:c,f=e.componentsProps,d=void 0===f?{}:f,p=e.disabled,h=void 0!==p&&p,v=e.error,g=void 0!==v&&v,m=e.onChange,y=e.required,w=void 0!==y&&y,_=e.value,S=Object(b.a)(e,Y),O=q(Object(u.a)({controlled:_,default:r,name:"FormControl",state:"value"}),2),k=O[0],E=O[1],C=function(e){return null!=e&&!(Array.isArray(e)&&0===e.length)&&""!==e}(k),A=q(o.useState(!1),2),P=A[0],M=A[1];h&&P&&M(!1);var I=Object(i.a)({},e,{disabled:h,error:g,filled:C,focused:P,required:w}),R={disabled:h,error:g,filled:C,focused:P,onBlur:function(){M(!1)},onChange:function(e){E(e.target.value),null==m||m(e)},onFocus:function(){M(!0)},required:w,value:null!=k?k:""},D=function(e){var t=e.disabled,n=e.error,r=e.filled,i={root:["root",t&&"disabled",e.focused&&"focused",n&&"error",r&&"filled",e.required&&"required"]};return Object(x.a)(i,H,{})}(I),L=null!=(n=null!=s?s:l.Root)?n:"div",N=Object(j.a)({elementType:L,externalSlotProps:d.root,externalForwardedProps:S,additionalProps:{ref:t,children:"function"==typeof a?a(R):a},ownerState:I,className:D.root});return Object(T.jsx)(V.Provider,{value:R,children:Object(T.jsx)(L,Object(i.a)({},N))})}));function $(){return o.useContext(V)}var X=n(149);function Q(e){return Object(O.a)("MuiInput",e)}var Z=Object(S.a)("MuiInput",["root","formControl","focused","disabled","error","multiline","input","inputMultiline","inputTypeSearch","adornedStart","adornedEnd"]),J=n(314);function ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return te(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return te(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ne(e){var t,n,r,a,s,u,c,l,f=e.defaultValue,d=e.disabled,p=void 0!==d&&d,h=e.error,v=void 0!==h&&h,g=e.onBlur,m=e.onChange,y=e.onFocus,b=e.required,x=void 0!==b&&b,w=e.value,_=$();_?(t=void 0,n=null!=(u=_.disabled)&&u,r=null!=(c=_.error)&&c,a=null!=(l=_.required)&&l,s=_.value):(t=f,n=p,r=v,a=x,s=w);var S=o.useRef(null!=s).current,O=o.useCallback((function(e){0}),[]),k=o.useRef(null),E=Object(R.a)(k,O),j=ee(o.useState(!1),2),T=j[0],C=j[1];o.useEffect((function(){!_&&n&&T&&(C(!1),null==g||g())}),[_,n,T,g]);var A=function(e){return function(t){var n,r;null!=_&&_.disabled?t.stopPropagation():(null==(n=e.onFocus)||n.call(e,t),_&&_.onFocus?null==_||null==(r=_.onFocus)||r.call(_):C(!0))}},P=function(e){return function(t){var n;null==(n=e.onBlur)||n.call(e,t),_&&_.onBlur?_.onBlur():C(!1)}},M=function(e){return function(t){var n,r,i;if(!S){var o=t.target||k.current;if(null==o)throw new Error(Object(J.a)(17))}null==_||null==(r=_.onChange)||r.call(_,t);for(var a=arguments.length,s=new Array(a>1?a-1:0),u=1;u<a;u++)s[u-1]=arguments[u];null==(i=e.onChange)||(n=i).call.apply(n,[e,t].concat(s))}},I=function(e){return function(t){var n;k.current&&t.currentTarget===t.target&&k.current.focus(),null==(n=e.onClick)||n.call(e,t)}};return{disabled:n,error:r,focused:T,formControlContext:_,getInputProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o={onBlur:g,onChange:m,onFocus:y},u=Object(i.a)({},o,Object(D.a)(e)),c=Object(i.a)({},e,u,{onBlur:P(u),onChange:M(u),onFocus:A(u)});return Object(i.a)({},c,{"aria-invalid":r||void 0,defaultValue:t,ref:E,value:s,required:a,disabled:n})},getRootProps:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=Object(D.a)(e,["onBlur","onChange","onFocus"]),r=Object(i.a)({},n,Object(D.a)(t));return Object(i.a)({},t,r,{onClick:I(r)})},required:a,value:s}}function re(e){return(re="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 ie(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==re(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==re(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===re(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oe,ae=["aria-describedby","aria-label","aria-labelledby","autoComplete","autoFocus","className","component","components","componentsProps","defaultValue","disabled","endAdornment","error","id","multiline","name","onClick","onChange","onKeyDown","onKeyUp","onFocus","onBlur","placeholder","readOnly","required","startAdornment","value","type","rows","minRows","maxRows"],se=o.forwardRef((function(e,t){var n,r,o,a=e["aria-describedby"],s=e["aria-label"],u=e["aria-labelledby"],c=e.autoComplete,l=e.autoFocus,f=e.className,d=e.component,p=e.components,h=void 0===p?{}:p,v=e.componentsProps,g=void 0===v?{}:v,m=e.defaultValue,y=e.disabled,x=e.endAdornment,w=e.error,_=e.id,S=e.multiline,O=void 0!==S&&S,k=e.name,E=e.onClick,C=e.onChange,A=e.onKeyDown,P=e.onKeyUp,M=e.onFocus,I=e.onBlur,R=e.placeholder,D=e.readOnly,L=e.required,N=e.startAdornment,F=e.value,B=e.type,U=e.rows,z=e.minRows,V=e.maxRows,H=Object(b.a)(e,ae),W=ne({disabled:y,defaultValue:m,error:w,onBlur:I,onClick:E,onChange:C,onFocus:M,required:L,value:F}),q=W.getRootProps,G=W.getInputProps,Y=W.focused,K=W.formControlContext,$=W.error,Q=W.disabled,J=O?void 0:null!=B?B:"text",ee=Object(i.a)({},e,{disabled:Q,error:$,focused:Y,formControlContext:K,multiline:O,type:J}),te=ie(ie(ie(ie(ie(ie(ie({},Z.disabled,Q),Z.error,$),Z.focused,Y),Z.formControl,Boolean(K)),Z.multiline,O),Z.adornedStart,Boolean(N)),Z.adornedEnd,Boolean(x)),re=ie(ie({},Z.disabled,Q),Z.multiline,O),oe={"aria-describedby":a,"aria-label":s,"aria-labelledby":u,autoComplete:c,autoFocus:l,id:_,onKeyDown:A,onKeyUp:P,name:k,placeholder:R,readOnly:D,type:J},se=null!=(n=null!=d?d:h.Root)?n:"div",ue=Object(j.a)({elementType:se,getSlotProps:q,externalSlotProps:g.root,externalForwardedProps:H,additionalProps:{ref:t},ownerState:ee,className:[Z.root,te,f]}),ce=O?null!=(r=h.Textarea)?r:"textarea":null!=(o=h.Input)?o:"input",le=Object(j.a)({elementType:ce,getSlotProps:function(e){return G(Object(i.a)({},e,oe))},externalSlotProps:g.input,additionalProps:Object(i.a)({rows:O?U:void 0},O&&!Object(X.a)(ce)&&{minRows:U||z,maxRows:U||V}),ownerState:ee,className:[Z.input,re]});return Object(T.jsxs)(se,Object(i.a)({},ue,{children:[N,Object(T.jsx)(ce,Object(i.a)({},le)),x]}))}));function ue(e){return function(e){if(Array.isArray(e))return ce(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ce(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ce(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}!function(e){e.blur="blur",e.focus="focus",e.keyDown="keyDown",e.optionClick="optionClick",e.optionHover="optionHover",e.optionsChange="optionsChange",e.setValue="setValue",e.setHighlight="setHighlight",e.textNavigation="textNagivation"}(oe||(oe={}));var le=5;function fe(e,t,n,r,i,o,a,s){var u,c,l=e.length-1,f=null==t?-1:e.findIndex((function(e){return s(e,t)}));if("reset"===n)return null;if("start"===n)c=0;else if("end"===n)c=l;else{var d=f+n;c=d<0?!a&&-1!==f||Math.abs(n)>1?0:l:d>l?!a||Math.abs(n)>1?l:0:d}var p=function(e,t,n,r,i,o){if(0===n.length||n.every((function(e,t){return i(e,t)})))return-1;for(var a=e;;){if(!o&&"next"===t&&a===n.length||!o&&"previous"===t&&-1===a)return-1;if(!(!r&&i(n[a],a)))return a;a+="next"===t?1:-1,o&&(a=(a+n.length)%n.length)}}(c,r,e,i,o,a);return null!=(u=e[p])?u:null}function de(e,t,n){var r,i,o=n.multiple,a=n.optionComparer,s=void 0===a?function(e,t){return e===t}:a,u=n.isOptionDisabled,c=void 0===u?function(){return!1}:u,l=t.selectedValue,f=n.options.findIndex((function(t){return n.optionComparer(e,t)}));return c(e,f)?t:o?{selectedValue:(null!=(r=l)?r:[]).some((function(t){return s(t,e)}))?l.filter((function(t){return!s(t,e)})):[].concat(ue(null!=(i=l)?i:[]),[e]),highlightedValue:e}:null!=l&&s(e,l)?t:{selectedValue:e,highlightedValue:e}}var pe=function(e,t,n){var r,i=null==(r=n(e))?void 0:r.trim().toLowerCase();return!(!i||0===i.length)&&0===i.indexOf(t)};function he(e,t){switch(t.type){case oe.keyDown:return function(e,t,n){var r=n.options,o=n.isOptionDisabled,a=n.disableListWrap,s=n.disabledItemsFocusable,u=n.optionComparer,c=function(e,n,i){return fe(r,t.highlightedValue,e,n,null!=s&&s,null!=o?o:function(){return!1},i,u)};switch(e.key){case"Home":return Object(i.a)({},t,{highlightedValue:c("start","next",!1)});case"End":return Object(i.a)({},t,{highlightedValue:c("end","previous",!1)});case"PageUp":return Object(i.a)({},t,{highlightedValue:c(-le,"previous",!1)});case"PageDown":return Object(i.a)({},t,{highlightedValue:c(le,"next",!1)});case"ArrowUp":return Object(i.a)({},t,{highlightedValue:c(-1,"previous",!(null!=a&&a))});case"ArrowDown":return Object(i.a)({},t,{highlightedValue:c(1,"next",!(null!=a&&a))});case"Enter":case" ":return null===t.highlightedValue?t:de(t.highlightedValue,t,n)}return t}(t.event,e,t.props);case oe.optionClick:return de(t.option,e,t.props);case oe.blur:return function(e){return Object(i.a)({},e,{highlightedValue:null})}(e);case oe.setValue:return Object(i.a)({},e,{selectedValue:t.value});case oe.setHighlight:return Object(i.a)({},e,{highlightedValue:t.highlight});case oe.textNavigation:return function(e,t,n){for(var r=n.options,o=n.isOptionDisabled,a=n.disableListWrap,s=n.disabledItemsFocusable,u=n.optionComparer,c=n.optionStringifier,l=function(e){return fe(r,e,1,"next",null!=s&&s,null!=o?o:function(){return!1},!(null!=a&&a),u)},f=t.length>1,d=f?e.highlightedValue:l(e.highlightedValue),p=0;p<r.length;p+=1){if(!d||!f&&e.highlightedValue===d)return e;if(pe(d,t,c)&&(!o(d,r.indexOf(d))||s))return Object(i.a)({},e,{highlightedValue:d});d=l(d)}return e}(e,t.searchString,t.props);case oe.optionsChange:return function(e,t,n,r){var i,o,a,s=r.multiple,u=r.optionComparer,c=null==n.highlightedValue?null:null!=(i=e.find((function(e){return u(e,n.highlightedValue)})))?i:null;return s?{highlightedValue:c,selectedValue:(null!=(a=n.selectedValue)?a:[]).filter((function(t){return e.some((function(e){return u(e,t)}))}))}:{highlightedValue:c,selectedValue:null!=(o=e.find((function(e){return u(e,n.selectedValue)})))?o:null}}(t.options,t.previousOptions,e,t.props);default:return e}}var ve=n(342);function ge(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return me(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return me(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ye(e,t){return void 0!==t.value?Object(i.a)({},e,{selectedValue:t.value}):e}function be(e,t,n){return e===t||null!==e&&null!==t&&n(e,t)}function xe(e,t,n){var r,i=n.value,a=n.defaultValue,s=o.useRef(n);s.current=n;var u=o.useRef(!1),c={highlightedValue:null,selectedValue:null!=(r=void 0===i?a:i)?r:n.multiple?[]:null},l=o.useCallback((function(n,r){return u.current=!0,t?t(ye(n,s.current),r):e(ye(n,s.current),r)}),[t,e,s]),f=ge(o.useReducer(l,c),2),d=f[0],p=f[1],h=o.useRef(c);return o.useEffect((function(){h.current=d}),[h,d]),function(e,t,n,r){o.useEffect((function(){if(n.current&&r.current){r.current=!1;var i=ye(t,n.current),o=n.current,a=o.multiple,s=o.optionComparer;if(a){var u,c=null!=(u=null==i?void 0:i.selectedValue)?u:[],l=e.selectedValue,f=n.current.onChange;Object(ve.a)(l,c,s)||null==f||f(l)}else{var d=null==i?void 0:i.selectedValue,p=e.selectedValue,h=n.current.onChange;be(p,d,s)||null==h||h(p)}}}),[e.selectedValue,t,n,r]),o.useEffect((function(){var r,i;n.current&&(be(t.highlightedValue,e.highlightedValue,n.current.optionComparer)||null==(r=n.current)||null==(i=r.onHighlightChange)||i.call(r,e.highlightedValue))}),[e.highlightedValue,t.highlightedValue,n])}(d,h.current,s,u),[ye(d,s.current),p]}function we(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return _e(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _e(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Se=500,Oe=function(e,t){return e===t},ke=function(){return!1},Ee=function(e){return"string"==typeof e?e:String(e)};function je(e){var t,n,r=e.disabledItemsFocusable,a=void 0!==r&&r,u=e.disableListWrap,c=void 0!==u&&u,l=e.focusManagement,f=void 0===l?"activeDescendant":l,d=e.id,p=e.isOptionDisabled,h=void 0===p?ke:p,v=e.listboxRef,g=e.multiple,m=void 0!==g&&g,y=e.optionComparer,b=void 0===y?Oe:y,x=e.optionStringifier,w=void 0===x?Ee:x,_=e.options,S=e.stateReducer,O=Object(s.a)(d);var k=null!=(t=e.optionIdGenerator)?t:function(e,t){return"".concat(O,"-option-").concat(t)},E=Object(i.a)({},e,{disabledItemsFocusable:a,disableListWrap:c,focusManagement:f,isOptionDisabled:h,multiple:m,optionComparer:b,optionStringifier:w}),j=o.useRef(null),T=Object(R.a)(v,j),C=o.useRef({searchString:"",lastTime:null}),A=we(xe(he,S,E),2),P=A[0],M=P.highlightedValue,I=P.selectedValue,D=A[1],L=o.useMemo((function(){return null==M?-1:_.findIndex((function(e){return b(e,M)}))}),[M,_,b]),N=o.useRef([]);o.useEffect((function(){Object(ve.a)(N.current,_,b)||(D({type:oe.optionsChange,options:_,previousOptions:N.current,props:E}),N.current=_)}),[_,b,D]);var F=o.useCallback((function(e){D({type:oe.setValue,value:e})}),[D]),B=o.useCallback((function(e){D({type:oe.setHighlight,highlight:e})}),[D]),U=function(e,t){return function(n){var r;null==(r=t.onClick)||r.call(t,n),n.defaultPrevented||(n.preventDefault(),D({type:oe.optionClick,option:e,event:n,props:E}))}},z=function(e,t){return function(n){var r;null==(r=t.onMouseOver)||r.call(t,n),n.defaultPrevented||D({type:oe.optionHover,option:e,event:n,props:E})}},V=function(e){return function(t){var n;if(null==(n=e.onKeyDown)||n.call(e,t),!t.defaultPrevented){var r=["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"];if("activeDescendant"===f&&r.push(" ","Enter"),r.includes(t.key)&&t.preventDefault(),D({type:oe.keyDown,event:t,props:E}),1===t.key.length&&" "!==t.key){var i=C.current,o=t.key.toLowerCase(),a=performance.now();i.searchString.length>0&&i.lastTime&&a-i.lastTime>Se?i.searchString=o:1===i.searchString.length&&o===i.searchString||(i.searchString+=o),i.lastTime=a,D({type:oe.textNavigation,searchString:i.searchString,props:E})}}}},H=function(e){return function(t){var n,r;null==(n=e.onBlur)||n.call(e,t),t.defaultPrevented||null!=(r=j.current)&&r.contains(document.activeElement)||D({type:oe.blur,event:t,props:E})}},W=function(e){var t,n,r=_.findIndex((function(t){return b(t,e)}));m?t=(null!=(n=I)?n:[]).some((function(t){return null!=t&&b(e,t)})):t=b(e,I);return{selected:t,disabled:h(e,r),highlighted:L===r}},q=function(e){if("activeDescendant"!==f)return e.highlighted?e.disabled&&!a?-1:0:-1};return o.useDebugValue({highlightedOption:_[L],selectedOption:I}),{getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(i.a)({},e,{"aria-activedescendant":"activeDescendant"===f&&null!=M?k(M,L):void 0,id:O,onBlur:H(e),onKeyDown:V(e),role:"listbox",tabIndex:"DOM"===f?-1:0,ref:T})},getOptionProps:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=W(e),r=_.findIndex((function(t){return b(t,e)}));return Object(i.a)({},t,{"aria-disabled":n.disabled||void 0,"aria-selected":n.selected,tabIndex:q(n),id:k(e,r),onClick:U(e,t),onMouseOver:z(e,t),role:"option"})},getOptionState:W,highlightedOption:null!=(n=_[L])?n:null,selectedOption:I,setSelectedValue:F,setHighlightedValue:B}}var Te=o.createContext(null);Te.displayName="MenuUnstyledContext";var Ce=Te;function Ae(e){return Object(O.a)("MuiMenuUnstyled",e)}var Pe=Object(S.a)("MuiMenuUnstyled",["root","listbox","expanded"]);function Me(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ie(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ie(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ie(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Re(e,t){if(t.type===oe.blur||t.type===oe.optionHover||t.type===oe.setValue)return e;var n=he(e,t);return t.type!==oe.setHighlight&&null===n.highlightedValue&&t.props.options.length>0?Object(i.a)({},n,{highlightedValue:t.props.options[0]}):n}function De(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.listboxRef,n=e.open,r=void 0!==n&&n,a=e.onClose,s=e.listboxId,u=Me(o.useState({}),2),c=u[0],l=u[1],f=o.useRef(null),d=Object(R.a)(f,t),p=o.useCallback((function(e,t){l((function(n){var r=Object(i.a)({},n);return r[e]=t,r}))}),[]),h=o.useCallback((function(e){l((function(t){var n=Object(i.a)({},t);return delete n[e],n}))}),[]),v=je({options:Object.keys(c),optionStringifier:function(e){var t;return c[e].label||(null==(t=c[e].ref.current)?void 0:t.innerText)},isOptionDisabled:function(e){var t;return(null==c?void 0:null==(t=c[e])?void 0:t.disabled)||!1},listboxRef:d,focusManagement:"DOM",id:s,stateReducer:Re,disabledItemsFocusable:!0}),g=v.getOptionState,m=v.getOptionProps,y=v.getRootProps,b=v.highlightedOption,x=v.setHighlightedValue,w=o.useCallback((function(){Object.keys(c).length>0&&x(c[Object.keys(c)[0]].id)}),[c,x]),_=o.useCallback((function(){Object.keys(c).length>0&&x(c[Object.keys(c)[Object.keys(c).length-1]].id)}),[c,x]);o.useEffect((function(){r||w()}),[r,w]);var S=function(e){return function(t){var n;null==(n=e.onKeyDown)||n.call(e,t),t.defaultPrevented||"Escape"===t.key&&r&&(null==a||a())}},O=function(e){return function(t){var n,r;null==(n=e.onBlur)||n.call(e,t),null!=(r=f.current)&&r.contains(t.relatedTarget)||null==a||a()}};o.useEffect((function(){var e,t,n;null!=(e=f.current)&&e.contains(document.activeElement)&&null!==b&&(null==c||null==(t=c[b])||null==(n=t.ref.current)||n.focus())}),[b,c]);return o.useDebugValue({menuItems:c,highlightedOption:b}),{registerItem:p,unregisterItem:h,menuItems:c,getListboxProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=y(Object(i.a)({},e,{onBlur:O(e),onKeyDown:S(e)}));return Object(i.a)({},e,t,{role:"menu"})},getItemState:function(e){var t=g(e);return{disabled:t.disabled,highlighted:t.highlighted}},getItemProps:m,highlightedOption:b,highlightFirstItem:w,highlightLastItem:_}}var Le=n(1562),Ne=["actions","anchorEl","children","component","components","componentsProps","keepMounted","listboxId","onClose","open"];var Fe=o.forwardRef((function(e,t){var n,r,a=e.actions,s=e.anchorEl,u=e.children,c=e.component,l=e.components,f=void 0===l?{}:l,d=e.componentsProps,p=void 0===d?{}:d,h=e.keepMounted,v=void 0!==h&&h,g=e.listboxId,m=e.onClose,y=e.open,w=void 0!==y&&y,_=Object(b.a)(e,Ne),S=De({open:w,onClose:m,listboxId:g}),O=S.registerItem,k=S.unregisterItem,E=S.getListboxProps,C=S.getItemProps,A=S.getItemState,P=S.highlightFirstItem,M=S.highlightLastItem;o.useImperativeHandle(a,(function(){return{highlightFirstItem:P,highlightLastItem:M}}),[P,M]);var I=Object(i.a)({},e,{open:w}),R=function(e){var t=e.open,n={root:["root",t&&"expanded"],listbox:["listbox",t&&"expanded"]};return Object(x.a)(n,Ae,{})}(I),D=null!=(n=null!=c?c:f.Root)?n:Le.a,L=Object(j.a)({elementType:D,externalForwardedProps:_,externalSlotProps:p.root,additionalProps:{anchorEl:s,open:w,keepMounted:v,role:void 0,ref:t},className:R.root,ownerState:I}),N=null!=(r=f.Listbox)?r:"ul",F=Object(j.a)({elementType:N,getSlotProps:E,externalSlotProps:p.listbox,ownerState:I,className:R.listbox}),B={registerItem:O,unregisterItem:k,getItemState:A,getItemProps:C,open:w};return Object(T.jsx)(D,Object(i.a)({},L,{children:Object(T.jsx)(N,Object(i.a)({},F,{children:Object(T.jsx)(Ce.Provider,{value:B,children:u})}))}))}));function Be(e){return Object(O.a)("MuiMenuItemUnstyled",e)}var Ue=Object(S.a)("MuiMenuItemUnstyled",["root","disabled","focusVisible"]);function ze(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ve(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ve(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function He(e){var t,n=e.disabled,r=void 0!==n&&n,a=e.ref,u=e.label,c=Object(s.a)(),l=o.useContext(Ce),f=o.useRef(null),d=Object(R.a)(f,a);if(null===l)throw new Error("MenuItemUnstyled must be used within a MenuUnstyled");var p=l.registerItem,h=l.unregisterItem,v=l.open;o.useEffect((function(){if(void 0!==c)return p(c,{disabled:r,id:c,ref:f,label:u}),function(){return h(c)}}),[c,p,h,r,a,u]);var g=F({disabled:r,focusableWhenDisabled:!0,ref:d}),m=g.getRootProps,y=g.focusVisible,b=ze(o.useState(!1),2),x=b[0],w=b[1],_=o.useCallback((function(){x&&null!=f.current&&(f.current.focus(),w(!1))}),[x]);o.useEffect((function(){_()})),o.useDebugValue({id:c,disabled:r,label:u});var S=l.getItemState(null!=c?c:""),O=(null!=S?S:{highlighted:!1}).highlighted;return o.useEffect((function(){w(O&&v)}),[O,v]),void 0===c?{getRootProps:function(e){return Object(i.a)({},e,m(e),{role:"menuitem"})},disabled:!1,focusVisible:y}:{getRootProps:function(e){var t=l.getItemProps(c,e);return Object(i.a)({},e,m(e),{tabIndex:t.tabIndex,id:t.id,role:"menuitem"})},disabled:null!=(t=null==S?void 0:S.disabled)&&t,focusVisible:y}}var We=["children","disabled","component","components","componentsProps","label"];var qe=o.forwardRef((function(e,t){var n,r=e.children,o=e.disabled,a=void 0!==o&&o,s=e.component,u=e.components,c=void 0===u?{}:u,l=e.componentsProps,f=void 0===l?{}:l,d=e.label,p=Object(b.a)(e,We),h=He({disabled:a,ref:t,label:d}),v=h.getRootProps,g=h.disabled,m=h.focusVisible,y=Object(i.a)({},e,{disabled:g,focusVisible:m}),w=function(e){var t={root:["root",e.disabled&&"disabled",e.focusVisible&&"focusVisible"]};return Object(x.a)(t,Be,{})}(y),_=null!=(n=null!=s?s:c.Root)?n:"li",S=Object(j.a)({elementType:_,getSlotProps:v,externalSlotProps:f.root,externalForwardedProps:p,className:w.root,ownerState:y});return Object(T.jsx)(_,Object(i.a)({},S,{children:r}))})),Ge=n(613),Ye=n(435);function Ke(e){return!!e.options}function $e(e,t){return e.label===t.label&&e.value===t.value&&e.disabled===t.disabled}function Xe(e){if(null==e)return[];var t=[];return a.a.Children.forEach(e,(function(e){var n,r,i,o=null==e?void 0:null==(n=e.props)?void 0:n.children;if(void 0!==(null==e?void 0:null==(r=e.props)?void 0:r.value)){var a=e,s={value:a.props.value,label:a.props.label||a.props.children,disabled:null!=(i=a.props.disabled)&&i};t.push(s)}else if(null!=o){var u,c=e,l={options:Xe(o),label:c.props.label,disabled:null!=(u=c.props.disabled)&&u};t.push(l)}})),null!=t?t:[]}function Qe(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[];return e.forEach((function(e){Ke(e)?n=n.concat(Qe(e.options,e.disabled)):n.push(Object(i.a)({},e,{disabled:t||e.disabled}))})),n}var Ze=function(e){var t=e.label,n=e.value;return"string"==typeof t?t:"string"==typeof n?n:String(e)};function Je(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return et(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return et(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function et(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var tt=function(e){var t=e.buttonRef,n=e.defaultValue,r=e.disabled,a=void 0!==r&&r,s=e.listboxId,c=e.listboxRef,l=e.multiple,f=void 0!==l&&l,d=e.onChange,p=e.onOpenChange,h=e.open,v=void 0!==h&&h,g=e.options,m=e.optionStringifier,y=void 0===m?Ze:m,b=e.value,x=o.useRef(null),w=Object(R.a)(t,x),_=o.useRef(null),S=Je(Object(u.a)({controlled:b,default:n,name:"SelectUnstyled",state:"value"}),2),O=S[0],k=S[1],E=o.useRef(!1),j=o.useRef(!1),T=Je(o.useState(!1),2),C=T[0],A=T[1],P=o.useCallback((function(){C&&null!=_.current&&(_.current.focus(),A(!1))}),[C]),M=Object(R.a)(Object(R.a)(c,_),(function(e){_.current=e,P()}));o.useEffect((function(){P()}),[P]),o.useEffect((function(){A(v)}),[v]);var I=function(e){return function(t){var n;null==e||null==(n=e.onMouseDown)||n.call(e,t),!t.defaultPrevented&&v&&(j.current=!0)}},D=function(e){return function(t){var n;null==e||null==(n=e.onClick)||n.call(e,t),t.defaultPrevented||j.current||null==p||p(!v),j.current=!1}},L=function(e){return function(t){var n;null==e||null==(n=e.onKeyDown)||n.call(e,t),t.defaultPrevented||("Enter"===t.key&&(E.current=!0),"ArrowDown"!==t.key&&"ArrowUp"!==t.key||(t.preventDefault(),null==p||p(!0)))}},N=function(e){return function(t){var n;if(null==e||null==(n=e.onKeyUp)||n.call(e,t),!t.defaultPrevented){var r,i=f?["Escape"]:["Escape","Enter"," "];if(v&&!E.current&&i.includes(t.key))null==x||null==(r=x.current)||r.focus();E.current=!1}}},B=function(e){return function(t){var n;null==e||null==(n=e.onClick)||n.call(e,t),t.defaultPrevented||f||null==p||p(!1)}},U=function(e){return function(t){var n;null==e||null==(n=e.onBlur)||n.call(e,t),t.defaultPrevented||null==p||p(!1)}},z=F({disabled:a,ref:w}),V=z.getRootProps,H=z.active,W=z.focusVisible,q=o.useMemo((function(){var t;return e.multiple?e.options.filter((function(e){return O.includes(e.value)})):null!=(t=e.options.find((function(e){return e.value===O})))?t:null}),[e.multiple,e.options,O]),G=je(e.multiple?{id:s,isOptionDisabled:function(e){var t;return null!=(t=null==e?void 0:e.disabled)&&t},optionComparer:function(e,t){return(null==e?void 0:e.value)===(null==t?void 0:t.value)},listboxRef:M,multiple:!0,onChange:function(e){var t=e.map((function(e){return e.value}));k(t),null==d||d(t)},options:g,optionStringifier:y,value:q}:{id:s,isOptionDisabled:function(e){var t;return null!=(t=null==e?void 0:e.disabled)&&t},optionComparer:function(e,t){return(null==e?void 0:e.value)===(null==t?void 0:t.value)},listboxRef:M,multiple:!1,onChange:function(e){var t,n;k(null!=(t=null==e?void 0:e.value)?t:null),null==d||d(null!=(n=null==e?void 0:e.value)?n:null)},options:g,optionStringifier:y,stateReducer:function(e,t){var n=he(e,t);return t.type!==oe.keyDown||v||"ArrowUp"!==t.event.key&&"ArrowDown"!==t.event.key?t.type===oe.blur||t.type===oe.setValue||t.type===oe.optionsChange?Object(i.a)({},n,{highlightedValue:n.selectedValue}):n:Object(i.a)({},n,{selectedValue:n.highlightedValue})},value:q}),Y=G.getRootProps,K=G.getOptionProps,$=G.getOptionState,X=G.highlightedOption,Q=G.selectedOption;return o.useDebugValue({selectedOption:Q,highlightedOption:X,open:v}),{buttonActive:H,buttonFocusVisible:W,disabled:a,getButtonProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(i.a)({},V(Object(i.a)({},e,{onClick:D(e),onMouseDown:I(e),onKeyDown:L(e)})),{"aria-expanded":v,"aria-haspopup":"listbox"})},getListboxProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Y(Object(i.a)({},e,{onBlur:U(e),onKeyUp:N(e)}))},getOptionProps:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return K(e,Object(i.a)({},t,{onClick:B(t)}))},getOptionState:$,open:v,value:O}},nt=o.createContext(void 0);function rt(e){return Object(O.a)("MuiSelectUnstyled",e)}var it=Object(S.a)("MuiSelectUnstyled",["root","button","listbox","popper","active","expanded","disabled","focusVisible"]);function ot(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return at(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return at(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function at(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var st=["autoFocus","children","component","components","componentsProps","defaultListboxOpen","defaultValue","disabled","getSerializedValue","listboxId","listboxOpen","name","onChange","onListboxOpenChange","optionStringifier","value"];function ut(e){return Object(T.jsx)(o.Fragment,{children:e.map((function(e){return e.label})).join(", ")})}function ct(e){return 0===e.length?"":e.every((function(e){return"string"==typeof e.value||"number"==typeof e.value||"boolean"==typeof e.value}))?e.map((function(e){return String(e.value)})):JSON.stringify(e.map((function(e){return e.value})))}var lt=o.forwardRef((function(e,t){var n,r,a,s,c=e.autoFocus,l=e.children,f=e.component,d=e.components,p=void 0===d?{}:d,h=e.componentsProps,v=void 0===h?{}:h,g=e.defaultListboxOpen,m=void 0!==g&&g,y=e.defaultValue,w=void 0===y?[]:y,_=e.disabled,S=e.getSerializedValue,O=void 0===S?ct:S,k=e.listboxId,E=e.listboxOpen,C=e.name,A=e.onChange,P=e.onListboxOpenChange,M=e.optionStringifier,I=void 0===M?Ze:M,D=e.value,L=Object(b.a)(e,st),N=null!=(n=e.renderValue)?n:ut,F=ot(o.useState([]),2),B=F[0],U=F[1],z=o.useMemo((function(){return Qe(B)}),[B]),V=ot(Object(u.a)({controlled:E,default:m,name:"MultiSelectUnstyled",state:"listboxOpen"}),2),H=V[0],W=V[1];o.useEffect((function(){U(Xe(l))}),[l]);var q=ot(o.useState(!1),2),G=q[0],Y=q[1],K=o.useRef(null),$=o.useRef(null),X=null!=(r=null!=f?f:p.Root)?r:"button",Q=null!=(a=p.Listbox)?a:"ul",Z=null!=(s=p.Popper)?s:Le.a,J=o.useCallback((function(e){Y(null!=e)}),[]),ee=Object(R.a)(t,Object(R.a)(K,J));o.useEffect((function(){c&&K.current.focus()}),[c]);var te=tt({buttonRef:ee,defaultValue:w,disabled:_,listboxId:k,multiple:!0,onChange:A,onOpenChange:function(e){W(e),null==P||P(e)},open:H,options:z,optionStringifier:I,value:D}),ne=te.buttonActive,re=te.buttonFocusVisible,ie=te.disabled,oe=te.getButtonProps,ae=te.getListboxProps,se=te.getOptionProps,ue=te.getOptionState,ce=te.value,le=Object(i.a)({},e,{active:ne,defaultListboxOpen:m,disabled:ie,focusVisible:re,open:H,renderValue:N,value:ce}),fe=function(e){var t=e.active,n=e.disabled,r=e.open,i={root:["root",n&&"disabled",e.focusVisible&&"focusVisible",t&&"active",r&&"expanded"],listbox:["listbox",n&&"disabled"],popper:["popper"]};return Object(x.a)(i,rt,{})}(le),de=o.useMemo((function(){return null==ce?[]:z.filter((function(e){return ce.includes(e.value)}))}),[z,ce]),pe=Object(j.a)({elementType:X,getSlotProps:oe,externalSlotProps:v.root,externalForwardedProps:L,ownerState:le,className:fe.root}),he=Object(j.a)({elementType:Q,getSlotProps:ae,externalSlotProps:v.listbox,additionalProps:{ref:$},ownerState:le,className:fe.listbox}),ve=Object(j.a)({elementType:Z,externalSlotProps:v.popper,additionalProps:{anchorEl:K.current,disablePortal:!0,open:H,placement:"bottom-start",role:void 0},ownerState:le,className:fe.popper}),ge={getOptionProps:se,getOptionState:ue,listboxRef:$};return Object(T.jsxs)(o.Fragment,{children:[Object(T.jsx)(X,Object(i.a)({},pe,{children:N(de)})),G&&Object(T.jsx)(Z,Object(i.a)({},ve,{children:Object(T.jsx)(Q,Object(i.a)({},he,{children:Object(T.jsx)(nt.Provider,{value:ge,children:l})}))})),C&&Object(T.jsx)("input",{type:"hidden",name:C,value:O(de)})]})})),ft=n(1648);function dt(e){return Object(O.a)("MuiOptionGroupUnstyled",e)}var pt=Object(S.a)("MuiOptionGroupUnstyled",["root","label","list"]),ht=["component","components","disabled","componentsProps"];var vt=a.a.forwardRef((function(e,t){var n=e.component,r=e.components,o=void 0===r?{}:r,a=e.disabled,s=void 0!==a&&a,u=e.componentsProps,c=void 0===u?{}:u,l=Object(b.a)(e,ht),f=n||(null==o?void 0:o.Root)||"li",d=(null==o?void 0:o.Label)||"span",p=(null==o?void 0:o.List)||"ul",h=function(e){var t={root:["root",e&&"disabled"],label:["label"],list:["list"]};return Object(x.a)(t,dt,{})}(s),v=Object(j.a)({elementType:f,externalSlotProps:c.root,externalForwardedProps:l,additionalProps:{ref:t},ownerState:e,className:h.root}),g=Object(j.a)({elementType:d,externalSlotProps:c.label,ownerState:e,className:h.label}),m=Object(j.a)({elementType:p,externalSlotProps:c.list,ownerState:e,className:h.list});return Object(T.jsxs)(f,Object(i.a)({},v,{children:[Object(T.jsx)(d,Object(i.a)({},g,{children:e.label})),Object(T.jsx)(p,Object(i.a)({},m,{children:e.children}))]}))}));function gt(e){return Object(O.a)("MuiOptionUnstyled",e)}var mt=Object(S.a)("MuiOptionUnstyled",["root","disabled","selected","highlighted"]),yt=["children","component","components","componentsProps","disabled","value","label"];var bt=a.a.forwardRef((function(e,t){var n=e.children,r=e.component,o=e.components,s=void 0===o?{}:o,u=e.componentsProps,c=void 0===u?{}:u,l=e.disabled,f=e.value,d=e.label,p=Object(b.a)(e,yt),h=a.a.useContext(nt);if(!h)throw new Error("OptionUnstyled must be used within a SelectUnstyled");var v=r||s.Root||"li",g={value:f,label:d||n,disabled:l},m=h.getOptionState(g),y=h.getOptionProps(g),w=h.listboxRef,_=Object(i.a)({},e,m),S=a.a.useRef(null),O=Object(R.a)(t,S);a.a.useEffect((function(){if(m.highlighted){if(!w.current||!S.current)return;var e=w.current.getBoundingClientRect(),t=S.current.getBoundingClientRect();t.top<e.top?w.current.scrollTop-=e.top-t.top:t.bottom>e.bottom&&(w.current.scrollTop+=t.bottom-e.bottom)}}),[m.highlighted,w]);var k=function(e){var t={root:["root",e.disabled&&"disabled",e.highlighted&&"highlighted",e.selected&&"selected"]};return Object(x.a)(t,gt,{})}(_),E=Object(j.a)({elementType:v,externalSlotProps:c.root,externalForwardedProps:p,additionalProps:Object(i.a)({},y,{ref:O}),className:k.root,ownerState:_});return Object(T.jsx)(v,Object(i.a)({},E,{children:n}))})),xt=a.a.memo(bt),wt=n(1557);function _t(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return St(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return St(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function St(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ot=["autoFocus","children","component","components","componentsProps","defaultValue","defaultListboxOpen","disabled","getSerializedValue","listboxId","listboxOpen","name","onChange","onListboxOpenChange","optionStringifier","renderValue","value"];function kt(e){var t;return null!=(t=null==e?void 0:e.label)?t:""}function Et(e){return null==(null==e?void 0:e.value)?"":"string"==typeof e.value||"number"==typeof e.value?e.value:JSON.stringify(e.value)}var jt=o.forwardRef((function(e,t){var n,r,a,s=e.autoFocus,c=e.children,l=e.component,f=e.components,d=void 0===f?{}:f,p=e.componentsProps,h=void 0===p?{}:p,v=e.defaultValue,g=e.defaultListboxOpen,m=void 0!==g&&g,y=e.disabled,w=e.getSerializedValue,_=void 0===w?Et:w,S=e.listboxId,O=e.listboxOpen,k=e.name,E=e.onChange,C=e.onListboxOpenChange,A=e.optionStringifier,P=void 0===A?Ze:A,M=e.renderValue,I=e.value,D=Object(b.a)(e,Ot),L=null!=M?M:kt,N=_t(o.useState([]),2),F=N[0],B=N[1],U=o.useMemo((function(){return Qe(F)}),[F]),z=_t(Object(u.a)({controlled:O,default:m,name:"SelectUnstyled",state:"listboxOpen"}),2),V=z[0],H=z[1];o.useEffect((function(){B(Xe(c))}),[c]);var W=_t(o.useState(!1),2),q=W[0],G=W[1],Y=o.useRef(null),K=o.useRef(null),$=null!=(n=null!=l?l:d.Root)?n:"button",X=null!=(r=d.Listbox)?r:"ul",Q=null!=(a=d.Popper)?a:Le.a,Z=o.useCallback((function(e){G(null!=e)}),[]),J=Object(R.a)(t,Object(R.a)(Y,Z));o.useEffect((function(){s&&Y.current.focus()}),[s]);var ee=tt({buttonRef:J,defaultValue:v,disabled:y,listboxId:S,multiple:!1,onChange:E,onOpenChange:function(e){H(e),null==C||C(e)},open:V,options:U,optionStringifier:P,value:I}),te=ee.buttonActive,ne=ee.buttonFocusVisible,re=ee.disabled,ie=ee.getButtonProps,oe=ee.getListboxProps,ae=ee.getOptionProps,se=ee.getOptionState,ue=ee.value,ce=Object(i.a)({},e,{active:te,defaultListboxOpen:m,disabled:re,focusVisible:ne,open:V,renderValue:L,value:ue}),le=function(e){var t=e.active,n=e.disabled,r=e.open,i={root:["root",n&&"disabled",e.focusVisible&&"focusVisible",t&&"active",r&&"expanded"],listbox:["listbox",n&&"disabled"],popper:["popper"]};return Object(x.a)(i,rt,{})}(ce),fe=o.useMemo((function(){var e;return null!=(e=U.find((function(e){return ue===e.value})))?e:null}),[U,ue]),de=Object(j.a)({elementType:$,getSlotProps:ie,externalSlotProps:h.root,externalForwardedProps:D,ownerState:ce,className:le.root}),pe=Object(j.a)({elementType:X,getSlotProps:oe,externalSlotProps:h.listbox,additionalProps:{ref:K},ownerState:ce,className:le.listbox}),he=Object(j.a)({elementType:Q,externalSlotProps:h.popper,additionalProps:{anchorEl:Y.current,disablePortal:!0,open:V,placement:"bottom-start",role:void 0},ownerState:ce,className:le.popper}),ve={getOptionProps:ae,getOptionState:se,listboxRef:K};return Object(T.jsxs)(o.Fragment,{children:[Object(T.jsx)($,Object(i.a)({},de,{children:L(fe)})),q&&Object(T.jsx)(Q,Object(i.a)({},he,{children:Object(T.jsx)(X,Object(i.a)({},pe,{children:Object(T.jsx)(nt.Provider,{value:ve,children:c})}))})),k&&Object(T.jsx)("input",{type:"hidden",name:k,value:_(fe)})]})})),Tt=n(17);function Ct(e){return Object(O.a)("MuiSlider",e)}var At=Object(S.a)("MuiSlider",["root","active","focusVisible","disabled","dragging","marked","vertical","trackInverted","trackFalse","rail","track","mark","markActive","markLabel","markLabelActive","thumb","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel"]),Pt=function(e){var t=e.open;return{offset:Object(Tt.default)(t&&At.valueLabelOpen),circle:At.valueLabelCircle,label:At.valueLabelLabel}};function Mt(e){var t=e.children,n=e.className,r=e.value,i=e.theme,a=Pt(e);return o.cloneElement(t,{className:Object(Tt.default)(t.props.className)},Object(T.jsxs)(o.Fragment,{children:[t.props.children,Object(T.jsx)("span",{className:Object(Tt.default)(a.offset,n),theme:i,"aria-hidden":!0,children:Object(T.jsx)("span",{className:a.circle,children:Object(T.jsx)("span",{className:a.label,children:r})})})]}))}var It=n(151),Rt=n(244),Dt=n(690);function Lt(e){return function(e){if(Array.isArray(e))return Bt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ft(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||Ft(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ft(e,t){if(e){if("string"==typeof e)return Bt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bt(e,t):void 0}}function Bt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ut=2;function zt(e,t){return e-t}function Vt(e,t,n){return null==e?t:Math.min(Math.max(t,e),n)}function Ht(e,t){var n;return(null!=(n=e.reduce((function(e,n,r){var i=Math.abs(t-n);return null===e||i<e.distance||i===e.distance?{distance:i,index:r}:e}),null))?n:{}).index}function Wt(e,t){if(void 0!==t.current&&e.changedTouches){for(var n=e,r=0;r<n.changedTouches.length;r+=1){var i=n.changedTouches[r];if(i.identifier===t.current)return{x:i.clientX,y:i.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function qt(e,t,n){return 100*(e-t)/(n-t)}function Gt(e,t,n){var r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(function(e){if(Math.abs(e)<1){var t=e.toExponential().split("e-"),n=t[0].split(".")[1];return(n?n.length:0)+parseInt(t[1],10)}var r=e.toString().split(".")[1];return r?r.length:0}(t)))}function Yt(e){var t=e.values,n=e.newValue,r=e.index,i=t.slice();return i[r]=n,i.sort(zt)}function Kt(e){var t,n,r,i=e.sliderRef,o=e.activeIndex,a=e.setActive,s=Object(It.a)(i.current);null!=(t=i.current)&&t.contains(s.activeElement)&&Number(null==s?void 0:null==(n=s.activeElement)?void 0:n.getAttribute("data-index"))===o||(null==(r=i.current)||r.querySelector('[type="range"][data-index="'.concat(o,'"]')).focus());a&&a(o)}var $t,Xt={horizontal:{offset:function(e){return{left:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},"horizontal-reverse":{offset:function(e){return{right:"".concat(e,"%")}},leap:function(e){return{width:"".concat(e,"%")}}},vertical:{offset:function(e){return{bottom:"".concat(e,"%")}},leap:function(e){return{height:"".concat(e,"%")}}}},Qt=function(e){return e};function Zt(){return void 0===$t&&($t="undefined"==typeof CSS||"function"!=typeof CSS.supports||CSS.supports("touch-action","none")),$t}function Jt(e){var t=e["aria-labelledby"],n=e.defaultValue,r=e.disabled,a=void 0!==r&&r,s=e.disableSwap,l=void 0!==s&&s,f=e.isRtl,d=void 0!==f&&f,p=e.marks,h=void 0!==p&&p,v=e.max,g=void 0===v?100:v,m=e.min,y=void 0===m?0:m,b=e.name,x=e.onChange,w=e.onChangeCommitted,_=e.orientation,S=void 0===_?"horizontal":_,O=e.ref,k=e.scale,E=void 0===k?Qt:k,j=e.step,T=void 0===j?1:j,C=e.tabIndex,A=e.value,P=o.useRef(),M=Nt(o.useState(-1),2),D=M[0],L=M[1],N=Nt(o.useState(-1),2),F=N[0],B=N[1],U=Nt(o.useState(!1),2),z=U[0],V=U[1],H=o.useRef(0),W=Nt(Object(u.a)({controlled:A,default:null!=n?n:y,name:"Slider"}),2),q=W[0],G=W[1],Y=x&&function(e,t,n){var r=e.nativeEvent||e,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:t,name:b}}),x(i,t,n)},K=Array.isArray(q),$=K?q.slice().sort(zt):[q];$=$.map((function(e){return Vt(e,y,g)}));var X=!0===h&&null!==T?Lt(Array(Math.floor((g-y)/T)+1)).map((function(e,t){return{value:y+T*t}})):h||[],Q=X.map((function(e){return e.value})),Z=Object(I.a)(),J=Z.isFocusVisibleRef,ee=Z.onBlur,te=Z.onFocus,ne=Z.ref,re=Nt(o.useState(-1),2),ie=re[0],oe=re[1],ae=o.useRef(),se=Object(R.a)(ne,ae),ue=Object(R.a)(O,se),ce=function(e){return function(t){var n,r=Number(t.currentTarget.getAttribute("data-index"));te(t),!0===J.current&&oe(r),B(r),null==e||null==(n=e.onFocus)||n.call(e,t)}},le=function(e){return function(t){var n;ee(t),!1===J.current&&oe(-1),B(-1),null==e||null==(n=e.onBlur)||n.call(e,t)}};Object(Rt.a)((function(){var e;a&&ae.current.contains(document.activeElement)&&(null==(e=document.activeElement)||e.blur())}),[a]),a&&-1!==D&&L(-1),a&&-1!==ie&&oe(-1);var fe=function(e){return function(t){var n;null==(n=e.onChange)||n.call(e,t);var r=Number(t.currentTarget.getAttribute("data-index")),i=$[r],o=Q.indexOf(i),a=t.target.valueAsNumber;if(X&&null==T&&(a=a<i?Q[o-1]:Q[o+1]),a=Vt(a,y,g),X&&null==T){var s=Q.indexOf($[r]);a=a<$[r]?Q[s-1]:Q[s+1]}if(K){l&&(a=Vt(a,$[r-1]||-1/0,$[r+1]||1/0));var u=a;a=Yt({values:$,newValue:a,index:r});var c=r;l||(c=a.indexOf(u)),Kt({sliderRef:ae,activeIndex:c})}G(a),oe(r),Y&&Y(t,a,r),w&&w(t,a)}},de=o.useRef(),pe=S;d&&"horizontal"===S&&(pe+="-reverse");var he=function(e){var t,n,r=e.finger,i=e.move,o=void 0!==i&&i,a=e.values,s=ae.current.getBoundingClientRect(),u=s.width,c=s.height,f=s.bottom,d=s.left;if(t=0===pe.indexOf("vertical")?(f-r.y)/c:(r.x-d)/u,-1!==pe.indexOf("-reverse")&&(t=1-t),n=function(e,t,n){return(n-t)*e+t}(t,y,g),T)n=Gt(n,T,y);else{var p=Ht(Q,n);n=Q[p]}n=Vt(n,y,g);var h=0;if(K){h=o?de.current:Ht(a,n),l&&(n=Vt(n,a[h-1]||-1/0,a[h+1]||1/0));var v=n;n=Yt({values:a,newValue:n,index:h}),l&&o||(h=n.indexOf(v),de.current=h)}return{newValue:n,activeIndex:h}},ve=Object(c.a)((function(e){var t=Wt(e,P);if(t)if(H.current+=1,"mousemove"!==e.type||0!==e.buttons){var n=he({finger:t,move:!0,values:$}),r=n.newValue,i=n.activeIndex;Kt({sliderRef:ae,activeIndex:i,setActive:L}),G(r),!z&&H.current>Ut&&V(!0),Y&&Y(e,r,i)}else ge(e)})),ge=Object(c.a)((function(e){var t=Wt(e,P);if(V(!1),t){var n=he({finger:t,move:!0,values:$}).newValue;L(-1),"touchend"===e.type&&B(-1),w&&w(e,n),P.current=void 0,ye()}})),me=Object(c.a)((function(e){if(!a){Zt()||e.preventDefault();var t=e.changedTouches[0];null!=t&&(P.current=t.identifier);var n=Wt(e,P);if(!1!==n){var r=he({finger:n,values:$}),i=r.newValue,o=r.activeIndex;Kt({sliderRef:ae,activeIndex:o,setActive:L}),G(i),Y&&Y(e,i,o)}H.current=0;var s=Object(It.a)(ae.current);s.addEventListener("touchmove",ve),s.addEventListener("touchend",ge)}})),ye=o.useCallback((function(){var e=Object(It.a)(ae.current);e.removeEventListener("mousemove",ve),e.removeEventListener("mouseup",ge),e.removeEventListener("touchmove",ve),e.removeEventListener("touchend",ge)}),[ge,ve]);o.useEffect((function(){var e=ae.current;return e.addEventListener("touchstart",me,{passive:Zt()}),function(){e.removeEventListener("touchstart",me,{passive:Zt()}),ye()}}),[ye,me]),o.useEffect((function(){a&&ye()}),[a,ye]);var be=function(e){return function(t){var n;if(null==(n=e.onMouseDown)||n.call(e,t),!a&&!t.defaultPrevented&&0===t.button){t.preventDefault();var r=Wt(t,P);if(!1!==r){var i=he({finger:r,values:$}),o=i.newValue,s=i.activeIndex;Kt({sliderRef:ae,activeIndex:s,setActive:L}),G(o),Y&&Y(t,o,s)}H.current=0;var u=Object(It.a)(ae.current);u.addEventListener("mousemove",ve),u.addEventListener("mouseup",ge)}}},xe=qt(K?$[0]:y,y,g),we=qt($[$.length-1],y,g)-xe,_e=function(e){return function(t){var n;null==(n=e.onMouseOver)||n.call(e,t);var r=Number(t.currentTarget.getAttribute("data-index"));B(r)}},Se=function(e){return function(t){var n;null==(n=e.onMouseLeave)||n.call(e,t),B(-1)}};return{active:D,axis:pe,axisProps:Xt,dragging:z,focusedThumbIndex:ie,getHiddenInputProps:function(){var n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o={onChange:fe(r||{}),onFocus:ce(r||{}),onBlur:le(r||{})},s=Object(i.a)({},r,o);return Object(i.a)({tabIndex:C,"aria-labelledby":t,"aria-orientation":S,"aria-valuemax":E(g),"aria-valuemin":E(y),name:b,type:"range",min:e.min,max:e.max,step:null!=(n=e.step)?n:void 0,disabled:a},s,{style:Object(i.a)({},Dt.a,{direction:d?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={onMouseDown:be(e||{})},n=Object(i.a)({},e,t);return Object(i.a)({ref:ue},n)},getThumbProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={onMouseOver:_e(e||{}),onMouseLeave:Se(e||{})};return Object(i.a)({},e,t)},marks:X,open:F,range:K,trackLeap:we,trackOffset:xe,values:$}}var en=["aria-label","aria-valuetext","className","component","classes","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","scale","step","tabIndex","track","value","valueLabelDisplay","valueLabelFormat","isRtl","components","componentsProps"],tn=function(e){return e},nn=function(e){return e.children},rn=o.forwardRef((function(e,t){var n,r,a,s,u,c,l,f=e["aria-label"],d=e["aria-valuetext"],p=e.className,h=e.component,v=e.classes,g=e.disableSwap,m=void 0!==g&&g,y=e.disabled,w=void 0!==y&&y,_=e.getAriaLabel,S=e.getAriaValueText,O=e.marks,k=void 0!==O&&O,E=e.max,C=void 0===E?100:E,A=e.min,P=void 0===A?0:A,M=e.orientation,I=void 0===M?"horizontal":M,R=e.scale,D=void 0===R?tn:R,L=e.step,N=void 0===L?1:L,F=e.track,B=void 0===F?"normal":F,U=e.valueLabelDisplay,z=void 0===U?"off":U,V=e.valueLabelFormat,H=void 0===V?tn:V,W=e.isRtl,q=void 0!==W&&W,G=e.components,Y=void 0===G?{}:G,K=e.componentsProps,$=void 0===K?{}:K,Q=Object(b.a)(e,en),Z=Object(i.a)({},e,{marks:k,classes:v,disabled:w,isRtl:q,max:C,min:P,orientation:I,scale:D,step:N,track:B,valueLabelDisplay:z,valueLabelFormat:H}),J=Jt(Object(i.a)({},Z,{ref:t})),ee=J.axisProps,te=J.getRootProps,ne=J.getHiddenInputProps,re=J.getThumbProps,ie=J.open,oe=J.active,ae=J.axis,se=J.range,ue=J.focusedThumbIndex,ce=J.dragging,le=J.marks,fe=J.values,de=J.trackOffset,pe=J.trackLeap;Z.marked=le.length>0&&le.some((function(e){return e.label})),Z.dragging=ce,Z.focusedThumbIndex=ue;var he=function(e){var t=e.disabled,n=e.dragging,r=e.marked,i=e.orientation,o=e.track,a=e.classes,s={root:["root",t&&"disabled",n&&"dragging",r&&"marked","vertical"===i&&"vertical","inverted"===o&&"trackInverted",!1===o&&"trackFalse"],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled"],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Object(x.a)(s,Ct,a)}(Z),ve=null!=(n=null!=h?h:Y.Root)?n:"span",ge=Object(j.a)({elementType:ve,getSlotProps:te,externalSlotProps:$.root,externalForwardedProps:Q,ownerState:Z,className:[he.root,p]}),me=null!=(r=Y.Rail)?r:"span",ye=Object(j.a)({elementType:me,externalSlotProps:$.rail,ownerState:Z,className:he.rail}),be=null!=(a=Y.Track)?a:"span",xe=Object(j.a)({elementType:be,externalSlotProps:$.track,additionalProps:{style:Object(i.a)({},ee[ae].offset(de),ee[ae].leap(pe))},ownerState:Z,className:he.track}),we=null!=(s=Y.Thumb)?s:"span",_e=Object(j.a)({elementType:we,getSlotProps:re,externalSlotProps:$.thumb,ownerState:Z}),Se=null!=(u=Y.ValueLabel)?u:Mt,Oe=Object(j.a)({elementType:Se,externalSlotProps:$.valueLabel,ownerState:Z}),ke=null!=(c=Y.Mark)?c:"span",Ee=Object(j.a)({elementType:ke,externalSlotProps:$.mark,ownerState:Z,className:he.mark}),je=null!=(l=Y.MarkLabel)?l:"span",Te=Object(j.a)({elementType:je,externalSlotProps:$.markLabel,ownerState:Z}),Ce=Y.Input||"input",Ae=Object(j.a)({elementType:Ce,getSlotProps:ne,externalSlotProps:$.input,ownerState:Z});return Object(T.jsxs)(ve,Object(i.a)({},ge,{children:[Object(T.jsx)(me,Object(i.a)({},ye)),Object(T.jsx)(be,Object(i.a)({},xe)),le.filter((function(e){return e.value>=P&&e.value<=C})).map((function(e,t){var n,r=qt(e.value,P,C),a=ee[ae].offset(r);return n=!1===B?-1!==fe.indexOf(e.value):"normal"===B&&(se?e.value>=fe[0]&&e.value<=fe[fe.length-1]:e.value<=fe[0])||"inverted"===B&&(se?e.value<=fe[0]||e.value>=fe[fe.length-1]:e.value>=fe[0]),Object(T.jsxs)(o.Fragment,{children:[Object(T.jsx)(ke,Object(i.a)({"data-index":t},Ee,!Object(X.a)(ke)&&{markActive:n},{style:Object(i.a)({},a,Ee.style),className:Object(Tt.default)(Ee.className,n&&he.markActive)})),null!=e.label?Object(T.jsx)(je,Object(i.a)({"aria-hidden":!0,"data-index":t},Te,!Object(X.a)(je)&&{markLabelActive:n},{style:Object(i.a)({},a,Te.style),className:Object(Tt.default)(he.markLabel,Te.className,n&&he.markLabelActive),children:e.label})):null]},e.value)})),fe.map((function(e,t){var n=qt(e,P,C),r=ee[ae].offset(n),a="off"===z?nn:Se;return Object(T.jsx)(o.Fragment,{children:Object(T.jsx)(a,Object(i.a)({},!Object(X.a)(a)&&{valueLabelFormat:H,valueLabelDisplay:z,value:"function"==typeof H?H(D(e),t):H,index:t,open:ie===t||oe===t||"on"===z,disabled:w},Oe,{className:Object(Tt.default)(he.valueLabel,Oe.className),children:Object(T.jsx)(we,Object(i.a)({"data-index":t,"data-focusvisible":ue===t},_e,{className:Object(Tt.default)(he.thumb,_e.className,oe===t&&he.active,ue===t&&he.focusVisible),style:Object(i.a)({},r,{pointerEvents:m&&oe!==t?"none":void 0},_e.style),children:Object(T.jsx)(Ce,Object(i.a)({"data-index":t,"aria-label":_?_(t):f,"aria-valuenow":D(e),"aria-valuetext":S?S(D(e),t):d,value:fe[t]},Ae))}))}))},t)}))]}))}));function on(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return an(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return an(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function an(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function sn(e){var t=e.checked,n=e.defaultChecked,r=e.disabled,a=e.onBlur,s=e.onChange,c=e.onFocus,l=e.onFocusVisible,f=e.readOnly,d=e.required,p=on(Object(u.a)({controlled:t,default:Boolean(n),name:"Switch",state:"checked"}),2),h=p[0],v=p[1],g=function(e){return function(t){var n;t.nativeEvent.defaultPrevented||(v(t.target.checked),null==s||s(t),null==(n=e.onChange)||n.call(e,t))}},m=Object(I.a)(),y=m.isFocusVisibleRef,b=m.onBlur,x=m.onFocus,w=m.ref,_=on(o.useState(!1),2),S=_[0],O=_[1];r&&S&&O(!1),o.useEffect((function(){y.current=S}),[S,y]);var k=o.useRef(null),E=function(e){return function(t){var n;k.current||(k.current=t.currentTarget),x(t),!0===y.current&&(O(!0),null==l||l(t)),null==c||c(t),null==(n=e.onFocus)||n.call(e,t)}},j=function(e){return function(t){var n;b(t),!1===y.current&&O(!1),null==a||a(t),null==(n=e.onBlur)||n.call(e,t)}},T=Object(R.a)(w,k);return{checked:h,disabled:Boolean(r),focusVisible:S,getInputProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(i.a)({checked:t,defaultChecked:n,disabled:r,readOnly:f,ref:T,required:d,type:"checkbox"},e,{onChange:g(e),onFocus:E(e),onBlur:j(e)})},readOnly:Boolean(f)}}function un(e){return Object(O.a)("MuiSwitch",e)}var cn,ln,fn,dn,pn=Object(S.a)("MuiSwitch",["root","input","track","thumb","checked","disabled","focusVisible","readOnly"]),hn=["checked","component","components","componentsProps","defaultChecked","disabled","onBlur","onChange","onFocus","onFocusVisible","readOnly","required"],vn=o.forwardRef((function(e,t){var n,r,o,a,s=e.checked,u=e.component,c=e.components,l=void 0===c?{}:c,f=e.componentsProps,d=void 0===f?{}:f,p=e.defaultChecked,h=e.disabled,v=e.onBlur,g=e.onChange,m=e.onFocus,y=e.onFocusVisible,w=e.readOnly,_=Object(b.a)(e,hn),S=sn({checked:s,defaultChecked:p,disabled:h,onBlur:v,onChange:g,onFocus:m,onFocusVisible:y,readOnly:w}),O=S.getInputProps,k=S.checked,E=S.disabled,C=S.focusVisible,A=S.readOnly,P=Object(i.a)({},e,{checked:k,disabled:E,focusVisible:C,readOnly:A}),M=function(e){var t={root:["root",e.checked&&"checked",e.disabled&&"disabled",e.focusVisible&&"focusVisible",e.readOnly&&"readOnly"],thumb:["thumb"],input:["input"],track:["track"]};return Object(x.a)(t,un,{})}(P),I=null!=(n=null!=u?u:l.Root)?n:"span",R=Object(j.a)({elementType:I,externalSlotProps:d.root,externalForwardedProps:_,additionalProps:{ref:t},ownerState:P,className:M.root}),D=null!=(r=l.Thumb)?r:"span",L=Object(j.a)({elementType:D,externalSlotProps:d.thumb,ownerState:P,className:M.thumb}),N=null!=(o=l.Input)?o:"input",F=Object(j.a)({elementType:N,getSlotProps:O,externalSlotProps:d.input,ownerState:P,className:M.input}),B=null===l.Track?function(){return null}:null!=(a=l.Track)?a:"span",U=Object(j.a)({elementType:B,externalSlotProps:d.track,ownerState:P,className:M.track});return Object(T.jsxs)(I,Object(i.a)({},R,{children:[Object(T.jsx)(B,Object(i.a)({},U)),Object(T.jsx)(D,Object(i.a)({},L)),Object(T.jsx)(N,Object(i.a)({},F))]}))})),gn=["component","components","componentsProps","count","getItemAriaLabel","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","direction","ownerState"],mn=function(){return cn||(cn=Object(T.jsx)("span",{children:"⇾|"}))},yn=function(){return ln||(ln=Object(T.jsx)("span",{children:"|⇽"}))},bn=function(){return fn||(fn=Object(T.jsx)("span",{children:"⇾"}))},xn=function(){return dn||(dn=Object(T.jsx)("span",{children:"⇽"}))};function wn(e){return"Go to ".concat(e," page")}var _n=o.forwardRef((function(e,t){var n,r,o,a,s,u,c,l,f,d,p=e.component,h=e.components,v=void 0===h?{}:h,g=e.componentsProps,m=void 0===g?{}:g,y=e.count,x=e.getItemAriaLabel,w=void 0===x?wn:x,_=e.onPageChange,S=e.page,O=e.rowsPerPage,k=e.showFirstButton,E=void 0!==k&&k,C=e.showLastButton,A=void 0!==C&&C,P=e.direction,M=Object(b.a)(e,gn),I=e,R=null!=(n=null!=(r=v.Root)?r:p)?n:"div",D=Object(j.a)({elementType:R,externalSlotProps:m.root,externalForwardedProps:M,additionalProps:{ref:t},ownerState:I}),L=null!=(o=v.FirstButton)?o:"button",N=Object(j.a)({elementType:L,externalSlotProps:m.firstButton,additionalProps:{onClick:function(e){_(e,0)},disabled:0===S,"aria-label":w("first",S),title:w("first",S)},ownerState:I}),F=null!=(a=v.LastButton)?a:"button",B=Object(j.a)({elementType:F,externalSlotProps:m.lastButton,additionalProps:{onClick:function(e){_(e,Math.max(0,Math.ceil(y/O)-1))},disabled:S>=Math.ceil(y/O)-1,"aria-label":w("last",S),title:w("last",S)},ownerState:I}),U=null!=(s=v.NextButton)?s:"button",z=Object(j.a)({elementType:U,externalSlotProps:m.nextButton,additionalProps:{onClick:function(e){_(e,S+1)},disabled:-1!==y&&S>=Math.ceil(y/O)-1,"aria-label":w("next",S),title:w("next",S)},ownerState:I}),V=null!=(u=v.BackButton)?u:"button",H=Object(j.a)({elementType:V,externalSlotProps:m.backButton,additionalProps:{onClick:function(e){_(e,S-1)},disabled:0===S,"aria-label":w("previous",S),title:w("previous",S)},ownerState:I}),W=null!=(c=v.LastPageIcon)?c:mn,q=null!=(l=v.FirstPageIcon)?l:yn,G=null!=(f=v.NextPageIcon)?f:bn,Y=null!=(d=v.BackPageIcon)?d:xn;return Object(T.jsxs)(R,Object(i.a)({},D,{children:[E&&Object(T.jsx)(L,Object(i.a)({},N,{children:"rtl"===P?Object(T.jsx)(W,{}):Object(T.jsx)(q,{})})),Object(T.jsx)(V,Object(i.a)({},H,{children:"rtl"===P?Object(T.jsx)(G,{}):Object(T.jsx)(Y,{})})),Object(T.jsx)(U,Object(i.a)({},z,{children:"rtl"===P?Object(T.jsx)(Y,{}):Object(T.jsx)(G,{})})),A&&Object(T.jsx)(F,Object(i.a)({},B,{children:"rtl"===P?Object(T.jsx)(q,{}):Object(T.jsx)(W,{})}))]}))}));function Sn(e){return Object(O.a)("MuiTablePaginationUnstyled",e)}var On=Object(S.a)("MuiTablePaginationUnstyled",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),kn=["component","components","componentsProps","colSpan","count","getItemAriaLabel","labelDisplayedRows","labelId","labelRowsPerPage","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","selectId"];function En(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"–").concat(n," of ").concat(-1!==r?r:"more than ".concat(n))}function jn(e){return"Go to ".concat(e," page")}var Tn=o.forwardRef((function(e,t){var n,r,a,u,c,l,f,d,p,h=e.component,v=e.components,g=void 0===v?{}:v,m=e.componentsProps,y=void 0===m?{}:m,w=e.colSpan,_=e.count,S=e.getItemAriaLabel,O=void 0===S?jn:S,k=e.labelDisplayedRows,E=void 0===k?En:k,C=e.labelId,A=e.labelRowsPerPage,P=void 0===A?"Rows per page:":A,M=e.onPageChange,I=e.onRowsPerPageChange,R=e.page,D=e.rowsPerPage,L=e.rowsPerPageOptions,N=void 0===L?[10,25,50,100]:L,F=e.selectId,B=Object(b.a)(e,kn),U=e,z=Object(x.a)({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},Sn,{});h&&"td"!==h&&Object(X.a)(h)||(p=w||1e3);var V=Object(s.a)(F),H=Object(s.a)(C),W=null!=(n=null!=h?h:g.Root)?n:"td",q=Object(j.a)({elementType:W,externalSlotProps:y.root,externalForwardedProps:B,additionalProps:{colSpan:p,ref:t},ownerState:U,className:z.root}),G=null!=(r=g.Select)?r:"select",Y=Object(j.a)({elementType:G,externalSlotProps:y.select,additionalProps:{value:D,id:V,onChange:function(e){return I&&I(e)},"aria-label":D.toString(),"aria-labelledby":[H,V].filter(Boolean).join(" ")||void 0},ownerState:U,className:z.select}),K=null!=(a=g.Actions)?a:_n,$=Object(j.a)({elementType:K,externalSlotProps:y.actions,additionalProps:{page:R,rowsPerPage:D,count:_,onPageChange:M,getItemAriaLabel:O},ownerState:U,className:z.actions}),Q=null!=(u=g.MenuItem)?u:"option",Z=Object(j.a)({elementType:Q,externalSlotProps:y.menuItem,additionalProps:{value:void 0},ownerState:U,className:z.menuItem}),J=null!=(c=g.SelectLabel)?c:"p",ee=Object(j.a)({elementType:J,externalSlotProps:y.selectLabel,additionalProps:{id:H},ownerState:U,className:z.selectLabel}),te=null!=(l=g.DisplayedRows)?l:"p",ne=Object(j.a)({elementType:te,externalSlotProps:y.displayedRows,ownerState:U,className:z.displayedRows}),re=null!=(f=g.Toolbar)?f:"div",ie=Object(j.a)({elementType:re,externalSlotProps:y.toolbar,ownerState:U,className:z.toolbar}),oe=null!=(d=g.Spacer)?d:"div",ae=Object(j.a)({elementType:oe,externalSlotProps:y.spacer,ownerState:U,className:z.spacer});return Object(T.jsx)(W,Object(i.a)({},q,{children:Object(T.jsxs)(re,Object(i.a)({},ie,{children:[Object(T.jsx)(oe,Object(i.a)({},ae)),N.length>1&&Object(T.jsx)(J,Object(i.a)({},ee,{children:P})),N.length>1&&Object(T.jsx)(G,Object(i.a)({},Y,{children:N.map((function(e){return Object(o.createElement)(Q,Object(i.a)({},Z,{key:"number"!=typeof e&&e.label?e.label:e,value:"number"!=typeof e&&e.value?e.value:e}),"number"!=typeof e&&e.label?e.label:e)}))})),Object(T.jsx)(te,Object(i.a)({},ne,{children:E({from:0===_?0:R*D+1,to:-1===_?(R+1)*D:-1===D?_:Math.min(_,(R+1)*D),count:-1===_?-1:_,page:R})})),Object(T.jsx)(K,Object(i.a)({},$))]}))}))}));function Cn(e){return Object(O.a)("TabPanelUnstyled",e)}var An=Object(S.a)("TabPanelUnstyled",["root","hidden"]),Pn=o.createContext(null);function Mn(){return o.useContext(Pn)}function In(e,t){return null===e.idPrefix?null:"".concat(e.idPrefix,"-P-").concat(t)}function Rn(e,t){return null===e.idPrefix?null:"".concat(e.idPrefix,"-T-").concat(t)}var Dn=Pn,Ln=function(e){var t=e.value,n=Mn();if(null===n)throw new Error("No TabContext provided");var r=t!==n.value,i=In(n,t),o=Rn(n,t);return{hidden:r,getRootProps:function(){return{"aria-labelledby":null!=o?o:void 0,hidden:r,id:null!=i?i:void 0}}}},Nn=["children","value","components","componentsProps","component"],Fn=o.forwardRef((function(e,t){var n,r=e.children,o=e.components,a=void 0===o?{}:o,s=e.componentsProps,u=void 0===s?{}:s,c=e.component,l=Object(b.a)(e,Nn),f=Ln(e),d=f.hidden,p=f.getRootProps,h=Object(i.a)({},e,{hidden:d}),v=function(e){var t={root:["root",e.hidden&&"hidden"]};return Object(x.a)(t,Cn,{})}(h),g=null!=(n=null!=c?c:a.Root)?n:"div",m=Object(j.a)({elementType:g,getSlotProps:p,externalSlotProps:u.root,externalForwardedProps:l,additionalProps:{role:"tabpanel",ref:t},ownerState:h,className:v.root});return Object(T.jsx)(g,Object(i.a)({},m,{children:!d&&r}))}));function Bn(e){return Object(O.a)("TabsListUnstyled",e)}var Un=Object(S.a)("TabsListUnstyled",["root","horizontal","vertical"]),zn=(n(153),function(e,t){return e?e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild:null}),Vn=function(e,t){return e?e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild:null},Hn=function(e,t,n){for(var r=!1,i=n(e,t);e&&i;){if(i===e.firstChild){if(r)return;r=!0}var o=i.disabled||"true"===i.getAttribute("aria-disabled");if(i.hasAttribute("tabindex")&&!o)return void i.focus();i=n(e,i)}},Wn=function(e){var t=e["aria-label"],n=e["aria-labelledby"],r=e.children,a=e.ref,s=o.createRef(),u=Object(R.a)(s,a),c=Mn();if(null===c)throw new Error("No TabContext provided");var l=c.value,f=c.orientation,d=void 0===f?"horizontal":f,p=c.direction,h="rtl"===(void 0===p?"ltr":p),v=function(e){return function(t){var n;!function(e){var t=s.current,n=Object(It.a)(t).activeElement;if("tab"===(null==n?void 0:n.getAttribute("role"))){var r="horizontal"===d?"ArrowLeft":"ArrowUp",i="horizontal"===d?"ArrowRight":"ArrowDown";switch("horizontal"===d&&h&&(r="ArrowRight",i="ArrowLeft"),e.key){case r:e.preventDefault(),Hn(t,n,Vn);break;case i:e.preventDefault(),Hn(t,n,zn);break;case"Home":e.preventDefault(),Hn(t,null,zn);break;case"End":e.preventDefault(),Hn(t,null,Vn)}}}(t),null==(n=e.onKeyDown)||n.call(e,t)}},g=o.useCallback((function(){var e=new Map,t=0;return o.Children.map(r,(function(n){if(!o.isValidElement(n))return null;var r=void 0===n.props.value?t:n.props.value;return e.set(r,t),t+=1,o.cloneElement(n,Object(i.a)({value:r},1===t&&!1===l&&!n.props.tabIndex||l===r?{tabIndex:0}:{tabIndex:-1}))}))}),[r,l]);return{isRtl:h,orientation:d,value:l,processChildren:g,getRootProps:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=Object(D.a)(e),a=Object(i.a)({},o,r),s={onKeyDown:v(a)},c=Object(i.a)({},a,s);return Object(i.a)({"aria-label":t,"aria-labelledby":n,"aria-orientation":"vertical"===d?"vertical":void 0,role:"tablist",ref:u},c)}}},qn=["children","component","components","componentsProps"],Gn=o.forwardRef((function(e,t){var n,r=e.component,o=e.components,a=void 0===o?{}:o,s=e.componentsProps,u=void 0===s?{}:s,c=Object(b.a)(e,qn),l=Wn(Object(i.a)({},e,{ref:t})),f=l.isRtl,d=l.orientation,p=l.getRootProps,h=l.processChildren,v=Object(i.a)({},e,{isRtl:f,orientation:d}),g=function(e){var t={root:["root",e.orientation]};return Object(x.a)(t,Bn,{})}(v),m=null!=(n=null!=r?r:a.Root)?n:"div",y=Object(j.a)({elementType:m,getSlotProps:p,externalSlotProps:u.root,externalForwardedProps:c,ownerState:v,className:g.root}),w=h();return Object(T.jsx)(m,Object(i.a)({},y,{children:w}))}));function Yn(e){return Object(O.a)("TabsUnstyled",e)}var Kn=Object(S.a)("TabsUnstyled",["root","horizontal","vertical"]);function $n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Xn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xn(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Qn=function(e){var t=e.value,n=e.defaultValue,r=e.onChange,i=e.orientation,a=e.direction,c=e.selectionFollowsFocus,l=$n(Object(u.a)({controlled:t,default:n,name:"Tabs",state:"value"}),2),f=l[0],d=l[1],p=Object(s.a)(),h=o.useCallback((function(e,t){d(t),r&&r(e,t)}),[r,d]);return{tabsContextValue:o.useMemo((function(){return{idPrefix:p,value:f,onSelected:h,orientation:i,direction:a,selectionFollowsFocus:c}}),[p,f,h,i,a,c])}},Zn=["children","value","defaultValue","orientation","direction","component","components","componentsProps","onChange","selectionFollowsFocus"],Jn=o.forwardRef((function(e,t){var n,r=e.children,o=e.orientation,a=void 0===o?"horizontal":o,s=e.direction,u=void 0===s?"ltr":s,c=e.component,l=e.components,f=void 0===l?{}:l,d=e.componentsProps,p=void 0===d?{}:d,h=Object(b.a)(e,Zn),v=Qn(e).tabsContextValue,g=Object(i.a)({},e,{orientation:a,direction:u}),m=function(e){var t={root:["root",e.orientation]};return Object(x.a)(t,Yn,{})}(g),y=null!=(n=null!=c?c:f.Root)?n:"div",w=Object(j.a)({elementType:y,externalSlotProps:p.root,externalForwardedProps:h,additionalProps:{ref:t},ownerState:g,className:m.root});return Object(T.jsx)(y,Object(i.a)({},w,{children:Object(T.jsx)(Dn.Provider,{value:v,children:r})}))}));function er(e){return Object(O.a)("TabUnstyled",e)}var tr=Object(S.a)("TabUnstyled",["root","selected","disabled"]),nr=["getRootProps"],rr=function(e){var t,n,r=e.value,o=e.onChange,a=e.onClick,s=e.onFocus,u=F(e),c=u.getRootProps,l=Object(b.a)(u,nr),f=Mn();if(null===f)throw new Error("No TabContext provided");var d=null!=r?r:0,p=f.value===d,h=f.selectionFollowsFocus,v={role:"tab","aria-controls":null!=(t=In(f,d))?t:void 0,id:null!=(n=Rn(f,d))?n:void 0,"aria-selected":p,disabled:l.disabled},g=function(e){return function(t){var n;null==(n=e.onFocus)||n.call(e,t),t.defaultPrevented||(h&&!p&&(o&&o(t,d),f.onSelected(t,d)),s&&s(t))}},m=function(e){return function(t){var n;null==(n=e.onClick)||n.call(e,t),t.defaultPrevented||(p||(o&&o(t,d),f.onSelected(t,d)),a&&a(t))}};return Object(i.a)({getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=c(Object(i.a)({},e,{onClick:m(e),onFocus:g(e)}));return Object(i.a)({},t,v)}},l,{selected:p})},ir=["action","children","value","disabled","onChange","onClick","onFocus","component","components","componentsProps"],or=o.forwardRef((function(e,t){var n,r=e.action,a=e.children,s=e.disabled,u=void 0!==s&&s,c=e.component,l=e.components,f=void 0===l?{}:l,d=e.componentsProps,p=void 0===d?{}:d,h=Object(b.a)(e,ir),v=o.useRef(),g=Object(R.a)(v,t),m=rr(Object(i.a)({},e,{ref:g})),y=m.active,w=m.focusVisible,_=m.setFocusVisible,S=m.selected,O=m.getRootProps;o.useImperativeHandle(r,(function(){return{focusVisible:function(){_(!0),v.current.focus()}}}),[_]);var k=Object(i.a)({},e,{active:y,focusVisible:w,disabled:u,selected:S}),E=function(e){var t={root:["root",e.selected&&"selected",e.disabled&&"disabled"]};return Object(x.a)(t,er,{})}(k),C=null!=(n=null!=c?c:f.Root)?n:"button",A=Object(j.a)({elementType:C,getSlotProps:O,externalSlotProps:p.root,externalForwardedProps:h,additionalProps:{ref:t},ownerState:k,className:E.root});return Object(T.jsx)(C,Object(i.a)({},A,{children:a}))})),ar=n(1560),sr=n(1558);n.d(t,"appendOwnerState",(function(){return r.a})),n.d(t,"areArraysEqual",(function(){return r.b})),n.d(t,"extractEventHandlers",(function(){return r.c})),n.d(t,"isHostComponent",(function(){return r.d})),n.d(t,"resolveComponentProps",(function(){return r.e})),n.d(t,"useSlotProps",(function(){return r.f})),n.d(t,"useAutocomplete",(function(){return y})),n.d(t,"createFilterOptions",(function(){return h})),n.d(t,"BadgeUnstyled",(function(){return A})),n.d(t,"useBadge",(function(){return _})),n.d(t,"badgeUnstyledClasses",(function(){return E})),n.d(t,"getBadgeUnstyledUtilityClass",(function(){return k})),n.d(t,"ButtonUnstyled",(function(){return U})),n.d(t,"buttonUnstyledClasses",(function(){return M})),n.d(t,"getButtonUnstyledUtilityClass",(function(){return P})),n.d(t,"useButton",(function(){return F})),n.d(t,"ClickAwayListener",(function(){return z.a})),n.d(t,"unstable_composeClasses",(function(){return x.a})),n.d(t,"generateUtilityClass",(function(){return O.a})),n.d(t,"generateUtilityClasses",(function(){return S.a})),n.d(t,"FormControlUnstyled",(function(){return K})),n.d(t,"FormControlUnstyledContext",(function(){return V})),n.d(t,"formControlUnstyledClasses",(function(){return W})),n.d(t,"useFormControlUnstyledContext",(function(){return $})),n.d(t,"getFormControlUnstyledUtilityClass",(function(){return H})),n.d(t,"InputUnstyled",(function(){return se})),n.d(t,"useInput",(function(){return ne})),n.d(t,"inputUnstyledClasses",(function(){return Z})),n.d(t,"getInputUnstyledUtilityClass",(function(){return Q})),n.d(t,"useListbox",(function(){return je})),n.d(t,"defaultListboxReducer",(function(){return he})),n.d(t,"ActionTypes",(function(){return oe})),n.d(t,"MenuUnstyled",(function(){return Fe})),n.d(t,"MenuUnstyledContext",(function(){return Ce})),n.d(t,"menuUnstyledClasses",(function(){return Pe})),n.d(t,"useMenu",(function(){return De})),n.d(t,"getMenuUnstyledUtilityClass",(function(){return Ae})),n.d(t,"MenuItemUnstyled",(function(){return qe})),n.d(t,"menuItemUnstyledClasses",(function(){return Ue})),n.d(t,"useMenuItem",(function(){return He})),n.d(t,"getMenuItemUnstyledUtilityClass",(function(){return Be})),n.d(t,"ModalUnstyled",(function(){return Ge.a})),n.d(t,"ModalManager",(function(){return Ye.a})),n.d(t,"modalUnstyledClasses",(function(){return Ye.c})),n.d(t,"getModalUtilityClass",(function(){return Ye.b})),n.d(t,"MultiSelectUnstyled",(function(){return lt})),n.d(t,"NoSsr",(function(){return ft.a})),n.d(t,"OptionGroupUnstyled",(function(){return vt})),n.d(t,"optionGroupUnstyledClasses",(function(){return pt})),n.d(t,"getOptionGroupUnstyledUtilityClass",(function(){return dt})),n.d(t,"OptionUnstyled",(function(){return xt})),n.d(t,"optionUnstyledClasses",(function(){return mt})),n.d(t,"getOptionUnstyledUtilityClass",(function(){return gt})),n.d(t,"PopperUnstyled",(function(){return Le.a})),n.d(t,"Portal",(function(){return wt.a})),n.d(t,"SelectUnstyled",(function(){return jt})),n.d(t,"selectUnstyledClasses",(function(){return it})),n.d(t,"useSelect",(function(){return tt})),n.d(t,"SelectUnstyledContext",(function(){return nt})),n.d(t,"getSelectUnstyledUtilityClass",(function(){return rt})),n.d(t,"isOptionGroup",(function(){return Ke})),n.d(t,"areOptionsEqual",(function(){return $e})),n.d(t,"getOptionsFromChildren",(function(){return Xe})),n.d(t,"flattenOptionGroups",(function(){return Qe})),n.d(t,"SliderUnstyled",(function(){return rn})),n.d(t,"SliderValueLabelUnstyled",(function(){return Mt})),n.d(t,"sliderUnstyledClasses",(function(){return At})),n.d(t,"useSlider",(function(){return Jt})),n.d(t,"getSliderUtilityClass",(function(){return Ct})),n.d(t,"SwitchUnstyled",(function(){return vn})),n.d(t,"useSwitch",(function(){return sn})),n.d(t,"switchUnstyledClasses",(function(){return pn})),n.d(t,"getSwitchUnstyledUtilityClass",(function(){return un})),n.d(t,"TablePaginationUnstyled",(function(){return Tn})),n.d(t,"TablePaginationActionsUnstyled",(function(){return _n})),n.d(t,"tablePaginationUnstyledClasses",(function(){return On})),n.d(t,"getTablePaginationUnstyledUtilityClass",(function(){return Sn})),n.d(t,"TabPanelUnstyled",(function(){return Fn})),n.d(t,"tabPanelUnstyledClasses",(function(){return An})),n.d(t,"useTabPanel",(function(){return Ln})),n.d(t,"getTabPanelUnstyledUtilityClass",(function(){return Cn})),n.d(t,"TabsListUnstyled",(function(){return Gn})),n.d(t,"tabsListUnstyledClasses",(function(){return Un})),n.d(t,"useTabsList",(function(){return Wn})),n.d(t,"getTabsListUnstyledUtilityClass",(function(){return Bn})),n.d(t,"TabsUnstyled",(function(){return Jn})),n.d(t,"TabsContext",(function(){return Dn})),n.d(t,"tabsUnstyledClasses",(function(){return Kn})),n.d(t,"useTabs",(function(){return Qn})),n.d(t,"useTabContext",(function(){return Mn})),n.d(t,"getPanelId",(function(){return In})),n.d(t,"getTabId",(function(){return Rn})),n.d(t,"getTabsUnstyledUtilityClass",(function(){return Yn})),n.d(t,"TabUnstyled",(function(){return or})),n.d(t,"tabUnstyledClasses",(function(){return tr})),n.d(t,"useTab",(function(){return rr})),n.d(t,"getTabUnstyledUtilityClass",(function(){return er})),n.d(t,"TextareaAutosize",(function(){return ar.a})),n.d(t,"TrapFocus",(function(){return sr.a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(885),i=n(273);function o(e){var t=e.props,n=e.name;return Object(r.a)({props:t,name:n,defaultTheme:i.a})}},function(e,t,n){"use strict";function r(e,t){if(t.length<e)throw new TypeError(e+" argument"+e>1?"s":" required, but only "+t.length+" present")}n.d(t,"a",(function(){return r}))},function(e,t,n){e.exports=n(1194)()},,function(e,t,n){var r=n(74),i=n(147),o=n(162),a=n(163),s=n(178),u=function(e,t,n){var c,l,f,d,p=e&u.F,h=e&u.G,v=e&u.S,g=e&u.P,m=e&u.B,y=h?r:v?r[t]||(r[t]={}):(r[t]||{}).prototype,b=h?i:i[t]||(i[t]={}),x=b.prototype||(b.prototype={});for(c in h&&(n=t),n)f=((l=!p&&y&&void 0!==y[c])?y:n)[c],d=m&&l?s(f,r):g&&"function"==typeof f?s(Function.call,f):f,y&&a(y,c,f,e&u.U),b[c]!=f&&o(b,c,d),g&&x[c]!=f&&(x[c]=f)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,n){"use strict";n.r(t);var r=function(){return!1},i=n(517),o={"@@functional/placeholder":!0},a=n(267),s=n(101),u=n(29),c=n(77),l=Object(u.a)((function(e){return Object(c.a)(e.length,(function(){var t=0,n=arguments[0],r=arguments[arguments.length-1],i=Array.prototype.slice.call(arguments,0);return i[0]=function(){var e=n.apply(this,Object(s.a)(arguments,[t,r]));return t+=1,e},e.apply(this,i)}))})),f=n(34),d=Object(f.a)((function(e,t,n){if(e>=n.length||e<-n.length)return n;var r=(e<0?n.length:0)+e,i=Object(s.a)(n);return i[r]=t(n[r]),i})),p=n(12),h=n(70),v=n(142),g=n(54),m=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=g.a.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=Object(v.a)(this.xf["@@transducer/step"](e,!1))),e},e}(),y=Object(p.a)((function(e,t){return new m(e,t)})),b=Object(p.a)(Object(h.a)(["all"],y,(function(e,t){for(var n=0;n<t.length;){if(!e(t[n]))return!1;n+=1}return!0}))),x=n(615),w=n(174),_=Object(p.a)((function(e,t){return e&&t})),S=n(784),O=n(170),k=n(207),E=n(105),j=Object(u.a)((function(e){return Object(c.a)(Object(E.a)(O.a,0,Object(k.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}))})),T=n(341);function C(e,t){for(var n=0,r=t.length-(e-1),i=new Array(r>=0?r:0);n<r;)i[n]=Array.prototype.slice.call(t,n,n+e),n+=1;return i}var A=function(){function e(e,t){this.xf=t,this.pos=0,this.full=!1,this.acc=new Array(e)}return e.prototype["@@transducer/init"]=g.a.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.store(t),this.full?this.xf["@@transducer/step"](e,this.getCopy()):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)},e.prototype.getCopy=function(){return Object(s.a)(Array.prototype.slice.call(this.acc,this.pos),Array.prototype.slice.call(this.acc,0,this.pos))},e}(),P=Object(p.a)((function(e,t){return new A(e,t)})),M=Object(p.a)(Object(h.a)([],P,C)),I=Object(p.a)((function(e,t){return Object(s.a)(t,[e])})),R=Object(p.a)((function(e,t){return e.apply(this,t)})),D=n(95),L=n(402);function N(e,t){return Object(D.a)(t).reduce((function(n,r){return n[r]=e(t[r]),n}),{})}var F=Object(u.a)((function e(t){return t=N((function(t){return"function"==typeof t?t:e(t)}),t),Object(c.a)(Object(E.a)(O.a,0,Object(k.a)("length",Object(L.a)(t))),(function(){var e=arguments;return N((function(t){return R(t,e)}),t)}))})),B=Object(p.a)((function(e,t){return t(e)})),U=Object(f.a)((function(e,t,n){var r=e(t),i=e(n);return r<i?-1:r>i?1:0})),z=n(268),V=n(479),H=Object(p.a)((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,u){return t.call(this,e,n,r,i,o,a,s,u)};case 9:return function(e,n,r,i,o,a,s,u,c){return t.call(this,e,n,r,i,o,a,s,u,c)};case 10:return function(e,n,r,i,o,a,s,u,c,l){return t.call(this,e,n,r,i,o,a,s,u,c,l)};default:throw new Error("First argument to nAry must be a non-negative integer no greater than ten")}})),W=Object(u.a)((function(e){return H(2,e)})),q=n(467),G=n(195),Y=n(264),K=Object(p.a)((function(e,t){return Object(G.a)(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:Object(Y.a)(_)(e,t)})),$=n(239),X=Object($.a)((function(e){return e.apply(this,Array.prototype.slice.call(arguments,1))})),Q=n(501);var Z=n(240),J=n(88),ee=function(e){var t=function(e){return{"@@transducer/init":g.a.init,"@@transducer/result":function(t){return e["@@transducer/result"](t)},"@@transducer/step":function(t,n){var r=e["@@transducer/step"](t,n);return r["@@transducer/reduced"]?{"@@transducer/value":r,"@@transducer/reduced":!0}:r}}}(e);return{"@@transducer/init":g.a.init,"@@transducer/result":function(e){return t["@@transducer/result"](e)},"@@transducer/step":function(e,n){return Object(Z.a)(n)?Object(J.a)(t,e,n):Object(J.a)(t,e,[n])}}},te=n(91),ne=Object(p.a)((function(e,t){return Object(te.a)(e,ee(t))})),re=Object(p.a)(Object(h.a)(["fantasy-land/chain","chain"],ne,(function(e,t){return"function"==typeof t?function(n){return e(t(n))(n)}:Object(Q.a)(!1)(Object(te.a)(e,t))}))),ie=Object(f.a)((function(e,t,n){if(e>t)throw new Error("min must not be greater than max in clamp(min, max, value)");return n<e?e:n>t?t:n})),oe=n(222),ae=Object(u.a)((function(e){return function(t,n){return e(t,n)?-1:e(n,t)?1:0}})),se=n(406),ue=n(145);function ce(){if(0===arguments.length)throw new Error("composeK requires at least one argument");var e=Array.prototype.slice.call(arguments),t=e.pop();return Object(ue.a)(ue.a.apply(this,Object(te.a)(re,e)),t)}var le=n(100);function fe(e,t){return function(){var n=this;return e.apply(n,arguments).then((function(e){return t.call(n,e)}))}}var de=n(262);function pe(){if(0===arguments.length)throw new Error("pipeP requires at least one argument");return Object(le.a)(arguments[0].length,Object(E.a)(fe,arguments[0],Object(de.a)(arguments)))}var he=n(205);function ve(){if(0===arguments.length)throw new Error("composeP requires at least one argument");return pe.apply(this,Object(he.a)(arguments))}var ge=n(400),me=n(173),ye=Object(p.a)((function(e,t){if(t.length<=0)return me.a;var n=Object(ge.a)(t),r=Object(de.a)(t);return Object(le.a)(n.length,(function(){return Object(J.a)((function(t,n){return e.call(this,n,t)}),n.apply(this,arguments),r)}))})),be=Object(p.a)((function(e,t){return ye.apply(this,[e,Object(he.a)(t)])})),xe=n(343),we=n(516),_e=Object(p.a)((function(e,t){if(e>10)throw new Error("Constructor with greater than ten arguments");return 0===e?function(){return new t}:Object($.a)(H(e,(function(e,n,r,i,o,a,s,u,c,l){switch(arguments.length){case 1:return new t(e);case 2:return new t(e,n);case 3:return new t(e,n,r);case 4:return new t(e,n,r,i);case 5:return new t(e,n,r,i,o);case 6:return new t(e,n,r,i,o,a);case 7:return new t(e,n,r,i,o,a,s);case 8:return new t(e,n,r,i,o,a,s,u);case 9:return new t(e,n,r,i,o,a,s,u,c);case 10:return new t(e,n,r,i,o,a,s,u,c,l)}})))})),Se=Object(u.a)((function(e){return _e(e.length,e)})),Oe=n(171),ke=Object(p.a)(Oe.a),Ee=n(219),je=Object(p.a)((function(e,t){return Object(c.a)(Object(E.a)(O.a,0,Object(k.a)("length",t)),(function(){var n=arguments,r=this;return e.apply(r,Object(Ee.a)((function(e){return e.apply(r,n)}),t))}))})),Te=n(278),Ce=n(85),Ae=function(){function e(e,t,n,r){this.valueFn=e,this.valueAcc=t,this.keyFn=n,this.xf=r,this.inputs={}}return e.prototype["@@transducer/init"]=g.a.init,e.prototype["@@transducer/result"]=function(e){var t;for(t in this.inputs)if(Object(Ce.a)(t,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[t]))["@@transducer/reduced"]){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){var n=this.keyFn(t);return this.inputs[n]=this.inputs[n]||[n,this.valueAcc],this.inputs[n][1]=this.valueFn(this.inputs[n][1],t),e},e}(),Pe=Object(Te.a)(4,[],(function(e,t,n,r){return new Ae(e,t,n,r)})),Me=Object(Te.a)(4,[],Object(h.a)([],Pe,(function(e,t,n,r){return Object(J.a)((function(r,i){var o=n(i);return r[o]=e(Object(Ce.a)(o,r)?r[o]:t,i),r}),{},r)}))),Ie=Me((function(e,t){return e+1}),0),Re=Object(a.a)(-1),De=n(476),Le=Object(f.a)((function(e,t,n){var r=e(t),i=e(n);return r>i?-1:r<i?1:0})),Ne=n(518),Fe=Object(p.a)((function(e,t){for(var n=[],r=0,i=e.length,o=t.length,a=new Ne.a,s=0;s<o;s+=1)a.add(t[s]);for(;r<i;)a.add(e[r])&&(n[n.length]=e[r]),r+=1;return n})),Be=n(218),Ue=Object(f.a)((function(e,t,n){for(var r=[],i=0,o=t.length;i<o;)Object(Be.a)(e,t[i],n)||Object(Be.a)(e,t[i],r)||r.push(t[i]),i+=1;return r})),ze=Object(p.a)((function(e,t){var n={};for(var r in t)n[r]=t[r];return delete n[e],n})),Ve=n(248),He=n(112),We=Object(f.a)((function(e,t,n){var r=Array.prototype.slice.call(n,0);return r.splice(e,t),r})),qe=Object(f.a)((function(e,t,n){return d(e,Object(w.a)(t),n)})),Ge=Object(p.a)((function e(t,n){switch(t.length){case 0:return n;case 1:return Object(Ve.a)(t[0])&&Object(He.a)(n)?We(t[0],1,n):ze(t[0],n);default:var r=t[0],i=Array.prototype.slice.call(t,1);return null==n[r]?n:Object(Ve.a)(r)&&Object(He.a)(n)?qe(r,e(i,n[r]),n):Object(z.a)(r,e(i,n[r]),n)}})),Ye=Object(p.a)((function(e,t){return e/t})),Ke=function(){function e(e,t){this.xf=t,this.n=e}return e.prototype["@@transducer/init"]=g.a.init,e.prototype["@@transducer/result"]=g.a.result,e.prototype["@@transducer/step"]=function(e,t){return this.n>0?(this.n-=1,e):this.xf["@@transducer/step"](e,t)},e}(),$e=Object(p.a)((function(e,t){return new Ke(e,t)})),Xe=n(98),Qe=Object(p.a)(Object(h.a)(["drop"],$e,(function(e,t){return Object(Xe.a)(Math.max(0,e),1/0,t)}))),Ze=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=g.a.init,e.prototype["@@transducer/result"]=g.a.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?Object(v.a)(n):n},e}(),Je=Object(p.a)((function(e,t){return new Ze(e,t)})),et=Object(p.a)(Object(h.a)(["take"],Je,(function(e,t){return Object(Xe.a)(0,e<0?1/0:e,t)})));function tt(e,t){return et(e<t.length?t.length-e:0,t)}var nt=function(){function e(e,t){this.xf=t,this.pos=0,this.full=!1,this.acc=new Array(e)}return e.prototype["@@transducer/init"]=g.a.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)},e}(),rt=Object(p.a)((function(e,t){return new nt(e,t)})),it=Object(p.a)(Object(h.a)([],rt,tt));function ot(e,t){for(var n=t.length-1;n>=0&&e(t[n]);)n-=1;return Object(Xe.a)(0,n+1,t)}var at=function(){function e(e,t){this.f=e,this.retained=[],this.xf=t}return e.prototype["@@transducer/init"]=g.a.init,e.prototype["@@transducer/result"]=function(e){return this.retained=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.retain(e,t):this.flush(e,t)},e.prototype.flush=function(e,t){return e=Object(J.a)(this.xf["@@transducer/step"],e,this.retained),this.retained=[],this.xf["@@transducer/step"](e,t)},e.prototype.retain=function(e,t){return this.retained.push(t),e},e}(),st=Object(p.a)((function(e,t){return new at(e,t)})),ut=Object(p.a)(Object(h.a)([],st,ot)),ct=function(){function e(e,t){this.xf=t,this.pred=e,this.lastValue=void 0,this.seenFirstValue=!1}return e.prototype["@@transducer/init"]=g.a.init,e.prototype["@@transducer/result"]=g.a.result,e.prototype["@@transducer/step"]=function(e,t){var n=!1;return this.seenFirstValue?this.pred(this.lastValue,t)&&(n=!0):this.seenFirstValue=!0,this.lastValue=t,n?e:this.xf["@@transducer/step"](e,t)},e}(),lt=Object(p.a)((function(e,t){return new ct(e,t)})),ft=n(478),dt=Object(p.a)(Object(h.a)([],lt,(function(e,t){var n=[],r=1,i=t.length;if(0!==i)for(n[0]=t[0];r<i;)e(Object(ft.a)(n),t[r])||(n[n.length]=t[r]),r+=1;return n}))),pt=n(89),ht=Object(u.a)(Object(h.a)([],lt(pt.a),dt(pt.a))),vt=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=g.a.init,e.prototype["@@transducer/result"]=g.a.result,e.prototype["@@transducer/step"]=function(e,t){if(this.f){if(this.f(t))return e;this.f=null}return this.xf["@@transducer/step"](e,t)},e}(),gt=Object(p.a)((function(e,t){return new vt(e,t)})),mt=Object(p.a)(Object(h.a)(["dropWhile"],gt,(function(e,t){for(var n=0,r=t.length;n<r&&e(t[n]);)n+=1;return Object(Xe.a)(n,1/0,t)}))),yt=Object(p.a)((function(e,t){return e||t})),bt=Object(p.a)((function(e,t){return Object(G.a)(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:Object(Y.a)(yt)(e,t)})),xt=n(470),wt=Object(p.a)((function(e,t){return Qe(e>=0?t.length-e:0,t)})),_t=Object(p.a)((function(e,t){return Object(pt.a)(wt(e.length,t),e)})),St=Object(f.a)((function(e,t,n){return Object(pt.a)(e(t),e(n))})),Ot=Object(f.a)((function(e,t,n){return Object(pt.a)(t[e],n[e])})),kt=Object(p.a)((function e(t,n){var r,i,o,a=n instanceof Array?[]:{};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})),Et=n(313),jt=function(){function e(e,t){this.xf=t,this.f=e,this.found=!1}return e.prototype["@@transducer/init"]=g.a.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=Object(v.a)(this.xf["@@transducer/step"](e,t))),e},e}(),Tt=Object(p.a)((function(e,t){return new jt(e,t)})),Ct=Object(p.a)(Object(h.a)(["find"],Tt,(function(e,t){for(var n=0,r=t.length;n<r;){if(e(t[n]))return t[n];n+=1}}))),At=function(){function e(e,t){this.xf=t,this.f=e,this.idx=-1,this.found=!1}return e.prototype["@@transducer/init"]=g.a.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=Object(v.a)(this.xf["@@transducer/step"](e,this.idx))),e},e}(),Pt=Object(p.a)((function(e,t){return new At(e,t)})),Mt=Object(p.a)(Object(h.a)([],Pt,(function(e,t){for(var n=0,r=t.length;n<r;){if(e(t[n]))return n;n+=1}return-1}))),It=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=g.a.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},e}(),Rt=Object(p.a)((function(e,t){return new It(e,t)})),Dt=Object(p.a)(Object(h.a)([],Rt,(function(e,t){for(var n=t.length-1;n>=0;){if(e(t[n]))return t[n];n-=1}}))),Lt=function(){function e(e,t){this.xf=t,this.f=e,this.idx=-1,this.lastIdx=-1}return e.prototype["@@transducer/init"]=g.a.init,e.prototype["@@transducer/result"]=function(e){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](e,this.lastIdx))},e.prototype["@@transducer/step"]=function(e,t){return this.idx+=1,this.f(t)&&(this.lastIdx=this.idx),e},e}(),Nt=Object(p.a)((function(e,t){return new Lt(e,t)})),Ft=Object(p.a)(Object(h.a)([],Nt,(function(e,t){for(var n=t.length-1;n>=0;){if(e(t[n]))return n;n-=1}return-1}))),Bt=n(688),Ut=n(236),zt=n(212),Vt=Object(p.a)(Object(zt.a)("forEach",(function(e,t){for(var n=t.length,r=0;r<n;)e(t[r]),r+=1;return t}))),Ht=Object(p.a)((function(e,t){for(var n=Object(D.a)(t),r=0;r<n.length;){var i=n[r];e(t[i],i,t),r+=1}return t})),Wt=Object(u.a)((function(e){for(var t={},n=0;n<e.length;)t[e[n][0]]=e[n][1],n+=1;return t})),qt=Object(p.a)(Object(zt.a)("groupBy",Me((function(e,t){return null==e&&(e=[]),e.push(t),e}),null))),Gt=Object(p.a)((function(e,t){for(var n=[],r=0,i=t.length;r<i;){for(var o=r+1;o<i&&e(t[o-1],t[o]);)o+=1;n.push(t.slice(r,o)),r=o}return n})),Yt=Object(p.a)((function(e,t){return e>t})),Kt=Object(p.a)((function(e,t){return e>=t})),$t=Object(p.a)((function(e,t){if(0===e.length)return!1;for(var n=t,r=0;r<e.length;){if(!Object(Ce.a)(e[r],n))return!1;n=n[e[r]],r+=1}return!0})),Xt=Object(p.a)((function(e,t){return $t([e],t)})),Qt=Object(p.a)((function(e,t){return e in t})),Zt=n(369),Jt=Object(p.a)(Zt.a),en=Object(f.a)((function(e,t,n){return Object(c.a)(Math.max(e.length,t.length,n.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):n.apply(this,arguments)}))})),tn=n(732),nn=n(616),rn=Me((function(e,t){return t}),null),on=n(498),an=Object(p.a)((function(e,t){return"function"!=typeof t.indexOf||Object(He.a)(t)?Object(on.a)(t,e,0):t.indexOf(e)})),sn=n(710),un=n(351),cn=Object(f.a)((function(e,t,n){return Object(un.a)((function(t){return Object(Be.a)(e,t,n)}),t)})),ln=Object(f.a)((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})),fn=Object(f.a)((function(e,t,n){return e=e<n.length&&e>=0?e:n.length,[].concat(Array.prototype.slice.call(n,0,e),t,Array.prototype.slice.call(n,e))})),dn=n(283),pn=Object(p.a)((function(e,t){var n,r;return e.length>t.length?(n=e,r=t):(n=t,r=e),Object(dn.a)(Object(un.a)(Object(Ut.a)(Oe.a)(n),r))})),hn=Object(p.a)(Object(zt.a)("intersperse",(function(e,t){for(var n=[],r=0,i=t.length;r<i;)r===i-1?n.push(t[r]):n.push(t[r],e),r+=1;return n}))),vn=n(495),gn=n(350),mn=n(215),yn=n(286),bn=Object(p.a)((function(e,t){var n={};return n[e]=t,n})),xn={"@@transducer/init":Array,"@@transducer/step":function(e,t){return e.push(t),e},"@@transducer/result":yn.a},wn={"@@transducer/init":String,"@@transducer/step":function(e,t){return e+t},"@@transducer/result":yn.a},_n={"@@transducer/init":Object,"@@transducer/step":function(e,t){return Object(mn.a)(e,Object(Z.a)(t)?bn(t[0],t[1]):t)},"@@transducer/result":yn.a};var Sn=Object(f.a)((function(e,t,n){return Object(gn.a)(e)?Object(J.a)(t(e),e["@@transducer/init"](),n):Object(J.a)(t(function(e){if(Object(gn.a)(e))return e;if(Object(Z.a)(e))return xn;if("string"==typeof e)return wn;if("object"==typeof e)return _n;throw new Error("Cannot create transformer for "+e)}(e)),Object(vn.a)(e,[],[],!1),n)})),On=Object(u.a)((function(e){for(var t=Object(D.a)(e),n=t.length,r=0,i={};r<n;){var o=t[r],a=e[o],s=Object(Ce.a)(a,i)?i[a]:i[a]=[];s[s.length]=o,r+=1}return i})),kn=Object(u.a)((function(e){for(var t=Object(D.a)(e),n=t.length,r=0,i={};r<n;){var o=t[r];i[e[o]]=o,r+=1}return i})),En=n(206),jn=Object(p.a)((function(e,t){return null!=t&&t.constructor===e||t instanceof e})),Tn=n(407),Cn=n(146),An=n(687),Pn=Object(u.a)((function(e){return je((function(){return Array.prototype.slice.call(arguments,0)}),e)})),Mn=Object(u.a)((function(e){var t,n=[];for(t in e)n[n.length]=t;return n})),In=Object(p.a)((function(e,t){if("function"!=typeof t.lastIndexOf||Object(He.a)(t)){for(var n=t.length-1;n>=0;){if(Object(pt.a)(t[n],e))return n;n-=1}return-1}return t.lastIndexOf(e)}));function Rn(e){return"[object Number]"===Object.prototype.toString.call(e)}var Dn=Object(u.a)((function(e){return null!=e&&Rn(e.length)?e.length:NaN})),Ln=n(269),Nn=n(208),Fn=Object(u.a)((function(e){return Object(Ln.a)(Object(Nn.a)(e),qe(e))})),Bn=n(733),Un=n(107),zn=Object(u.a)((function(e){return Object(Ln.a)(Object(Un.a)(e),Object(z.a)(e))})),Vn=n(468),Hn=Object(p.a)((function(e,t){return e<t})),Wn=Object(p.a)((function(e,t){return e<=t})),qn=Object(f.a)((function(e,t,n){for(var r=0,i=n.length,o=[],a=[t];r<i;)a=e(a[0],n[r]),o[r]=a[1],r+=1;return[a[0],o]})),Gn=Object(f.a)((function(e,t,n){for(var r=n.length-1,i=[],o=[t];r>=0;)o=e(o[0],n[r]),i[r]=o[1],r-=1;return[o[0],i]})),Yn=n(617),Kn=Object(p.a)((function(e,t){return t.match(e)||[]})),$n=Object(p.a)((function(e,t){return Object(Ve.a)(e)?!Object(Ve.a)(t)||t<1?NaN:(e%t+t)%t:NaN})),Xn=Object(f.a)((function(e,t,n){return e(n)>e(t)?n:t})),Qn=Object(E.a)(a.a,0),Zn=Object(u.a)((function(e){return Qn(e)/e.length})),Jn=Object(u.a)((function(e){var t=e.length;if(0===t)return NaN;var n=2-t%2,r=(t-n)/2;return Zn(Array.prototype.slice.call(e,0).sort((function(e,t){return e<t?-1:e>t?1:0})).slice(r,r+n))})),er=Object(p.a)((function(e,t){var n={};return Object(le.a)(t.length,(function(){var r=e.apply(this,arguments);return Object(Ce.a)(r,n)||(n[r]=t.apply(this,arguments)),n[r]}))})),tr=Object(p.a)((function(e,t){return Object(mn.a)({},e,t)})),nr=Object(u.a)((function(e){return mn.a.apply(null,[{}].concat(e))})),rr=n(270),ir=Object(p.a)((function(e,t){return Object(rr.a)((function(e,t,n){return t}),e,t)})),or=n(734),ar=Object(f.a)((function(e,t,n){return Object(rr.a)((function(t,n,r){return e(n,r)}),t,n)})),sr=Object(p.a)((function(e,t){return Object(mn.a)({},t,e)})),ur=n(735),cr=n(344),lr=Object(f.a)((function(e,t,n){return Object(cr.a)((function(t,n,r){return e(n,r)}),t,n)})),fr=Object(p.a)((function(e,t){return t<e?t:e})),dr=Object(f.a)((function(e,t,n){return e(n)<e(t)?n:t})),pr=Object(p.a)((function(e,t){return e%t})),hr=Object(f.a)((function(e,t,n){var r=n.length,i=n.slice(),o=e<0?r+e:e,a=t<0?r+t:t,s=i.splice(o,1);return o<0||o>=n.length||a<0||a>=n.length?n:[].concat(i.slice(0,a)).concat(s).concat(i.slice(a,n.length))})),vr=n(401),gr=Object(u.a)((function(e){return-e})),mr=n(500),yr=Object(p.a)((function(e,t){return b(Object(mr.a)(e),t)})),br=n(469),xr=Object(u.a)((function(e){var t=e<0?1:e+1;return Object(c.a)(t,(function(){return Object(Nn.a)(e,arguments)}))})),wr=Object(f.a)((function(e,t,n){return e(t(n))}));function _r(e){return[e]}var Sr=Object(u.a)(_r),Or=n(409),kr=Object(u.a)((function(e){var t,n=!1;return Object(le.a)(e.length,(function(){return n?t:(n=!0,t=e.apply(this,arguments))}))})),Er=n(527);function jr(e,t){if(null==t||!Object(G.a)(t.then))throw new TypeError("`"+e+"` expected a Promise, received "+Object(Er.a)(t,[]))}var Tr=Object(p.a)((function(e,t){return jr("otherwise",t),t.then(null,e)})),Cr=n(480),Ar=Object(p.a)((function(e,t){return[e,t]}));function Pr(e){return Object(p.a)((function(t,n){return Object(le.a)(Math.max(0,t.length-n.length),(function(){return t.apply(this,e(n,arguments))}))}))}var Mr=Pr(s.a),Ir=Pr(Object(Ut.a)(s.a)),Rr=n(263),Dr=Pn([Et.a,Rr.a]),Lr=n(143),Nr=n(515),Fr=n(356),Br=Object(f.a)((function(e,t,n){return t.length>0&&e(Object(Lr.a)(t,n))})),Ur=Object(p.a)((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})),zr=Object(p.a)((function(e,t){for(var n={},r=0,i=e.length;r<i;){var o=e[r];n[o]=t[o],r+=1}return n})),Vr=Object(p.a)((function(e,t){var n={};for(var r in t)e(t[r],r,t)&&(n[r]=t[r]);return n})),Hr=n(482);function Wr(){if(0===arguments.length)throw new Error("pipeK requires at least one argument");return ce.apply(this,Object(he.a)(arguments))}var qr=Object(p.a)((function(e,t){return Object(s.a)([e],t)})),Gr=Object(E.a)(vr.a,1),Yr=n(481),Kr=Object(Yr.a)(Ee.a,[zr,me.a]),$r=Object(f.a)((function(e,t,n){return Object(pt.a)(t,n[e])})),Xr=Object(f.a)((function(e,t,n){return jn(e,n[t])})),Qr=n(291),Zr=Object(f.a)((function(e,t,n){return e(n[t])})),Jr=Object(p.a)((function(e,t){for(var n=e.length,r=[],i=0;i<n;)r[i]=t[e[i]],i+=1;return r})),ei=Object(p.a)((function(e,t){if(!Rn(e)||!Rn(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})),ti=Object(f.a)((function(e,t,n){for(var r=n.length-1;r>=0;)t=e(n[r],t),r-=1;return t})),ni=Object(Te.a)(4,[],(function(e,t,n,r){return Object(J.a)((function(n,r){return e(n,r)?t(n,r):Object(v.a)(n)}),n,r)})),ri=Object(u.a)(v.a),ii=Object(p.a)((function(e,t){var n,r=Number(t),i=0;if(r<0||isNaN(r))throw new RangeError("n must be a non-negative number");for(n=new Array(r);i<r;)n[i]=e(i),i+=1;return n})),oi=Object(p.a)((function(e,t){return ii(Object(w.a)(e),t)})),ai=Object(f.a)((function(e,t,n){return n.replace(e,t)})),si=Object(f.a)((function(e,t,n){for(var r=0,i=n.length,o=[t];r<i;)t=e(t,n[r]),o[r+1]=t,r+=1;return o})),ui=Object(p.a)((function(e,t){return"function"==typeof t.sequence?t.sequence(e):ti((function(e,t){return Object(T.a)(Object(te.a)(qr,e),t)}),e([]),t)})),ci=n(736),li=n(737),fi=Object(p.a)((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}))})),di=Object(p.a)((function(e,t){return Array.prototype.slice.call(t,0).sort((function(t,n){for(var r=0,i=0;0===r&&i<e.length;)r=e[i](t,n),i+=1;return r}))})),pi=n(738),hi=Object(p.a)((function(e,t){return[Object(Xe.a)(0,e,t),Object(Xe.a)(e,Dn(t),t)]})),vi=Object(p.a)((function(e,t){if(e<=0)throw new Error("First argument to splitEvery must be a positive integer");for(var n=[],r=0;r<t.length;)n.push(Object(Xe.a)(r,r+=e,t));return n})),gi=Object(p.a)((function(e,t){for(var n=0,r=t.length,i=[];n<r&&!e(t[n]);)i.push(t[n]),n+=1;return[i,Array.prototype.slice.call(t,n)]})),mi=Object(p.a)((function(e,t){return Object(pt.a)(et(e.length,t),e)})),yi=n(739),bi=Object(p.a)((function(e,t){return Object(xe.a)(Fe(e,t),Fe(t,e))})),xi=Object(f.a)((function(e,t,n){return Object(xe.a)(Ue(e,t,n),Ue(e,n,t))})),wi=Object(p.a)((function(e,t){for(var n=t.length-1;n>=0&&e(t[n]);)n-=1;return Object(Xe.a)(n+1,1/0,t)})),_i=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=g.a.init,e.prototype["@@transducer/result"]=g.a.result,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):Object(v.a)(e)},e}(),Si=Object(p.a)((function(e,t){return new _i(e,t)})),Oi=Object(p.a)(Object(h.a)(["takeWhile"],Si,(function(e,t){for(var n=0,r=t.length;n<r&&e(t[n]);)n+=1;return Object(Xe.a)(0,n,t)}))),ki=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=g.a.init,e.prototype["@@transducer/result"]=g.a.result,e.prototype["@@transducer/step"]=function(e,t){return this.f(t),this.xf["@@transducer/step"](e,t)},e}(),Ei=Object(p.a)((function(e,t){return new ki(e,t)})),ji=Object(p.a)(Object(h.a)([],Ei,(function(e,t){return e(t),t}))),Ti=n(496);var Ci=n(213),Ai=Object(p.a)((function(e,t){if(n=e,"[object RegExp]"!==Object.prototype.toString.call(n))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+Object(Ci.a)(e));var n;return Object(Ti.a)(e).test(t)})),Pi=Object(p.a)((function(e,t){return jr("then",t),t.then(e)})),Mi=Object(En.a)(0,"toLowerCase"),Ii=n(740),Ri=Object(u.a)((function(e){var t=[];for(var n in e)t[t.length]=[n,e[n]];return t})),Di=Object(En.a)(0,"toUpperCase"),Li=n(497),Ni=Object(c.a)(4,(function(e,t,n,r){return Object(J.a)(e("function"==typeof t?Object(Li.a)(t):t),n,r)})),Fi=Object(u.a)((function(e){for(var t=0,n=[];t<e.length;){for(var r=e[t],i=0;i<r.length;)void 0===n[i]&&(n[i]=[]),n[i].push(r[i]),i+=1;t+=1}return n})),Bi=Object(f.a)((function(e,t,n){return"function"==typeof n["fantasy-land/traverse"]?n["fantasy-land/traverse"](t,e):ui(e,Object(te.a)(t,n))})),Ui="\t\n\v\f\r \u2028\u2029\ufeff",zi="function"==typeof String.prototype.trim&&!Ui.trim()&&"".trim()?Object(u.a)((function(e){return e.trim()})):Object(u.a)((function(e){var t=new RegExp("^["+Ui+"]["+Ui+"]*"),n=new RegExp("["+Ui+"]["+Ui+"]*$");return e.replace(t,"").replace(n,"")})),Vi=Object(p.a)((function(e,t){return Object(le.a)(e.length,(function(){try{return e.apply(this,arguments)}catch(e){return t.apply(this,Object(s.a)([e],arguments))}}))})),Hi=n(279),Wi=Object(u.a)((function(e){return function(){return e(Array.prototype.slice.call(arguments,0))}})),qi=Object(u.a)((function(e){return H(1,e)})),Gi=Object(p.a)((function(e,t){return Object(c.a)(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}))})),Yi=Object(p.a)((function(e,t){for(var n=e(t),r=[];n&&n.length;)r[r.length]=n[0],n=e(n[1]);return r})),Ki=Object(p.a)(Object(ue.a)(dn.a,s.a)),$i=Object(p.a)((function(e,t){for(var n,r=0,i=t.length,o=[];r<i;)n=t[r],Object(Be.a)(e,n,o)||(o[o.length]=n),r+=1;return o})),Xi=Object(f.a)((function(e,t,n){return $i(e,Object(s.a)(t,n))})),Qi=n(477),Zi=Object(f.a)((function(e,t,n){return e(n)?n:t(n)})),Ji=re(yn.a),eo=Object(f.a)((function(e,t,n){for(var r=n;!e(r);)r=t(r);return r})),to=Object(u.a)((function(e){var t,n=[];for(t in e)n[n.length]=e[t];return n})),no=n(741),ro=Object(f.a)((function(e,t,n){return e(n)?t(n):n})),io=Object(p.a)((function(e,t){for(var n in e)if(Object(Ce.a)(n,e)&&!e[n](t[n]))return!1;return!0})),oo=Object(p.a)((function(e,t){return io(Object(te.a)(pt.a,e),t)})),ao=Object(p.a)((function(e,t){return Object(Rr.a)(Object(Ut.a)(Oe.a)(e),t)})),so=Object(p.a)((function(e,t){for(var n,r=0,i=e.length,o=t.length,a=[];r<i;){for(n=0;n<o;)a[a.length]=[e[r],t[n]],n+=1;r+=1}return a})),uo=Object(p.a)((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})),co=Object(p.a)((function(e,t){for(var n=0,r=Math.min(e.length,t.length),i={};n<r;)i[e[n]]=t[n],n+=1;return i})),lo=Object(f.a)((function(e,t,n){for(var r=[],i=0,o=Math.min(t.length,n.length);i<o;)r[i]=e(t[i],n[i]),i+=1;return r})),fo=Object(u.a)((function(e){return Object(c.a)(e.length,(function(){var t=arguments;return function(){return e.apply(this,t)}}))}));n.d(t,"F",(function(){return r})),n.d(t,"T",(function(){return i.a})),n.d(t,"__",(function(){return o})),n.d(t,"add",(function(){return a.a})),n.d(t,"addIndex",(function(){return l})),n.d(t,"adjust",(function(){return d})),n.d(t,"all",(function(){return b})),n.d(t,"allPass",(function(){return x.a})),n.d(t,"always",(function(){return w.a})),n.d(t,"and",(function(){return _})),n.d(t,"any",(function(){return S.a})),n.d(t,"anyPass",(function(){return j})),n.d(t,"ap",(function(){return T.a})),n.d(t,"aperture",(function(){return M})),n.d(t,"append",(function(){return I})),n.d(t,"apply",(function(){return R})),n.d(t,"applySpec",(function(){return F})),n.d(t,"applyTo",(function(){return B})),n.d(t,"ascend",(function(){return U})),n.d(t,"assoc",(function(){return z.a})),n.d(t,"assocPath",(function(){return V.a})),n.d(t,"binary",(function(){return W})),n.d(t,"bind",(function(){return q.a})),n.d(t,"both",(function(){return K})),n.d(t,"call",(function(){return X})),n.d(t,"chain",(function(){return re})),n.d(t,"clamp",(function(){return ie})),n.d(t,"clone",(function(){return oe.a})),n.d(t,"comparator",(function(){return ae})),n.d(t,"complement",(function(){return se.a})),n.d(t,"compose",(function(){return ue.a})),n.d(t,"composeK",(function(){return ce})),n.d(t,"composeP",(function(){return ve})),n.d(t,"composeWith",(function(){return be})),n.d(t,"concat",(function(){return xe.a})),n.d(t,"cond",(function(){return we.a})),n.d(t,"construct",(function(){return Se})),n.d(t,"constructN",(function(){return _e})),n.d(t,"contains",(function(){return ke})),n.d(t,"converge",(function(){return je})),n.d(t,"countBy",(function(){return Ie})),n.d(t,"curry",(function(){return $.a})),n.d(t,"curryN",(function(){return c.a})),n.d(t,"dec",(function(){return Re})),n.d(t,"defaultTo",(function(){return De.a})),n.d(t,"descend",(function(){return Le})),n.d(t,"difference",(function(){return Fe})),n.d(t,"differenceWith",(function(){return Ue})),n.d(t,"dissoc",(function(){return ze})),n.d(t,"dissocPath",(function(){return Ge})),n.d(t,"divide",(function(){return Ye})),n.d(t,"drop",(function(){return Qe})),n.d(t,"dropLast",(function(){return it})),n.d(t,"dropLastWhile",(function(){return ut})),n.d(t,"dropRepeats",(function(){return ht})),n.d(t,"dropRepeatsWith",(function(){return dt})),n.d(t,"dropWhile",(function(){return mt})),n.d(t,"either",(function(){return bt})),n.d(t,"empty",(function(){return xt.a})),n.d(t,"endsWith",(function(){return _t})),n.d(t,"eqBy",(function(){return St})),n.d(t,"eqProps",(function(){return Ot})),n.d(t,"equals",(function(){return pt.a})),n.d(t,"evolve",(function(){return kt})),n.d(t,"filter",(function(){return Et.a})),n.d(t,"find",(function(){return Ct})),n.d(t,"findIndex",(function(){return Mt})),n.d(t,"findLast",(function(){return Dt})),n.d(t,"findLastIndex",(function(){return Ft})),n.d(t,"flatten",(function(){return Bt.a})),n.d(t,"flip",(function(){return Ut.a})),n.d(t,"forEach",(function(){return Vt})),n.d(t,"forEachObjIndexed",(function(){return Ht})),n.d(t,"fromPairs",(function(){return Wt})),n.d(t,"groupBy",(function(){return qt})),n.d(t,"groupWith",(function(){return Gt})),n.d(t,"gt",(function(){return Yt})),n.d(t,"gte",(function(){return Kt})),n.d(t,"has",(function(){return Xt})),n.d(t,"hasIn",(function(){return Qt})),n.d(t,"hasPath",(function(){return $t})),n.d(t,"head",(function(){return ge.a})),n.d(t,"identical",(function(){return Jt})),n.d(t,"identity",(function(){return me.a})),n.d(t,"ifElse",(function(){return en})),n.d(t,"inc",(function(){return tn.a})),n.d(t,"includes",(function(){return nn.a})),n.d(t,"indexBy",(function(){return rn})),n.d(t,"indexOf",(function(){return an})),n.d(t,"init",(function(){return sn.a})),n.d(t,"innerJoin",(function(){return cn})),n.d(t,"insert",(function(){return ln})),n.d(t,"insertAll",(function(){return fn})),n.d(t,"intersection",(function(){return pn})),n.d(t,"intersperse",(function(){return hn})),n.d(t,"into",(function(){return Sn})),n.d(t,"invert",(function(){return On})),n.d(t,"invertObj",(function(){return kn})),n.d(t,"invoker",(function(){return En.a})),n.d(t,"is",(function(){return jn})),n.d(t,"isEmpty",(function(){return Tn.a})),n.d(t,"isNil",(function(){return Cn.a})),n.d(t,"join",(function(){return An.a})),n.d(t,"juxt",(function(){return Pn})),n.d(t,"keys",(function(){return D.a})),n.d(t,"keysIn",(function(){return Mn})),n.d(t,"last",(function(){return ft.a})),n.d(t,"lastIndexOf",(function(){return In})),n.d(t,"length",(function(){return Dn})),n.d(t,"lens",(function(){return Ln.a})),n.d(t,"lensIndex",(function(){return Fn})),n.d(t,"lensPath",(function(){return Bn.a})),n.d(t,"lensProp",(function(){return zn})),n.d(t,"lift",(function(){return Y.a})),n.d(t,"liftN",(function(){return Vn.a})),n.d(t,"lt",(function(){return Hn})),n.d(t,"lte",(function(){return Wn})),n.d(t,"map",(function(){return te.a})),n.d(t,"mapAccum",(function(){return qn})),n.d(t,"mapAccumRight",(function(){return Gn})),n.d(t,"mapObjIndexed",(function(){return Yn.a})),n.d(t,"match",(function(){return Kn})),n.d(t,"mathMod",(function(){return $n})),n.d(t,"max",(function(){return O.a})),n.d(t,"maxBy",(function(){return Xn})),n.d(t,"mean",(function(){return Zn})),n.d(t,"median",(function(){return Jn})),n.d(t,"memoizeWith",(function(){return er})),n.d(t,"merge",(function(){return tr})),n.d(t,"mergeAll",(function(){return nr})),n.d(t,"mergeDeepLeft",(function(){return ir})),n.d(t,"mergeDeepRight",(function(){return or.a})),n.d(t,"mergeDeepWith",(function(){return ar})),n.d(t,"mergeDeepWithKey",(function(){return rr.a})),n.d(t,"mergeLeft",(function(){return sr})),n.d(t,"mergeRight",(function(){return ur.a})),n.d(t,"mergeWith",(function(){return lr})),n.d(t,"mergeWithKey",(function(){return cr.a})),n.d(t,"min",(function(){return fr})),n.d(t,"minBy",(function(){return dr})),n.d(t,"modulo",(function(){return pr})),n.d(t,"move",(function(){return hr})),n.d(t,"multiply",(function(){return vr.a})),n.d(t,"nAry",(function(){return H})),n.d(t,"negate",(function(){return gr})),n.d(t,"none",(function(){return yr})),n.d(t,"not",(function(){return br.a})),n.d(t,"nth",(function(){return Nn.a})),n.d(t,"nthArg",(function(){return xr})),n.d(t,"o",(function(){return wr})),n.d(t,"objOf",(function(){return bn})),n.d(t,"of",(function(){return Sr})),n.d(t,"omit",(function(){return Or.a})),n.d(t,"once",(function(){return kr})),n.d(t,"or",(function(){return yt})),n.d(t,"otherwise",(function(){return Tr})),n.d(t,"over",(function(){return Cr.a})),n.d(t,"pair",(function(){return Ar})),n.d(t,"partial",(function(){return Mr})),n.d(t,"partialRight",(function(){return Ir})),n.d(t,"partition",(function(){return Dr})),n.d(t,"path",(function(){return Lr.a})),n.d(t,"pathEq",(function(){return Nr.a})),n.d(t,"pathOr",(function(){return Fr.a})),n.d(t,"pathSatisfies",(function(){return Br})),n.d(t,"pick",(function(){return Ur})),n.d(t,"pickAll",(function(){return zr})),n.d(t,"pickBy",(function(){return Vr})),n.d(t,"pipe",(function(){return Hr.a})),n.d(t,"pipeK",(function(){return Wr})),n.d(t,"pipeP",(function(){return pe})),n.d(t,"pipeWith",(function(){return ye})),n.d(t,"pluck",(function(){return k.a})),n.d(t,"prepend",(function(){return qr})),n.d(t,"product",(function(){return Gr})),n.d(t,"project",(function(){return Kr})),n.d(t,"prop",(function(){return Un.a})),n.d(t,"propEq",(function(){return $r})),n.d(t,"propIs",(function(){return Xr})),n.d(t,"propOr",(function(){return Qr.a})),n.d(t,"propSatisfies",(function(){return Zr})),n.d(t,"props",(function(){return Jr})),n.d(t,"range",(function(){return ei})),n.d(t,"reduce",(function(){return E.a})),n.d(t,"reduceBy",(function(){return Me})),n.d(t,"reduceRight",(function(){return ti})),n.d(t,"reduceWhile",(function(){return ni})),n.d(t,"reduced",(function(){return ri})),n.d(t,"reject",(function(){return Rr.a})),n.d(t,"remove",(function(){return We})),n.d(t,"repeat",(function(){return oi})),n.d(t,"replace",(function(){return ai})),n.d(t,"reverse",(function(){return he.a})),n.d(t,"scan",(function(){return si})),n.d(t,"sequence",(function(){return ui})),n.d(t,"set",(function(){return ci.a})),n.d(t,"slice",(function(){return Xe.a})),n.d(t,"sort",(function(){return li.a})),n.d(t,"sortBy",(function(){return fi})),n.d(t,"sortWith",(function(){return di})),n.d(t,"split",(function(){return pi.a})),n.d(t,"splitAt",(function(){return hi})),n.d(t,"splitEvery",(function(){return vi})),n.d(t,"splitWhen",(function(){return gi})),n.d(t,"startsWith",(function(){return mi})),n.d(t,"subtract",(function(){return yi.a})),n.d(t,"sum",(function(){return Qn})),n.d(t,"symmetricDifference",(function(){return bi})),n.d(t,"symmetricDifferenceWith",(function(){return xi})),n.d(t,"tail",(function(){return de.a})),n.d(t,"take",(function(){return et})),n.d(t,"takeLast",(function(){return wt})),n.d(t,"takeLastWhile",(function(){return wi})),n.d(t,"takeWhile",(function(){return Oi})),n.d(t,"tap",(function(){return ji})),n.d(t,"test",(function(){return Ai})),n.d(t,"then",(function(){return Pi})),n.d(t,"times",(function(){return ii})),n.d(t,"toLower",(function(){return Mi})),n.d(t,"toPairs",(function(){return Ii.a})),n.d(t,"toPairsIn",(function(){return Ri})),n.d(t,"toString",(function(){return Ci.a})),n.d(t,"toUpper",(function(){return Di})),n.d(t,"transduce",(function(){return Ni})),n.d(t,"transpose",(function(){return Fi})),n.d(t,"traverse",(function(){return Bi})),n.d(t,"trim",(function(){return zi})),n.d(t,"tryCatch",(function(){return Vi})),n.d(t,"type",(function(){return Hi.a})),n.d(t,"unapply",(function(){return Wi})),n.d(t,"unary",(function(){return qi})),n.d(t,"uncurryN",(function(){return Gi})),n.d(t,"unfold",(function(){return Yi})),n.d(t,"union",(function(){return Ki})),n.d(t,"unionWith",(function(){return Xi})),n.d(t,"uniq",(function(){return dn.a})),n.d(t,"uniqBy",(function(){return Qi.a})),n.d(t,"uniqWith",(function(){return $i})),n.d(t,"unless",(function(){return Zi})),n.d(t,"unnest",(function(){return Ji})),n.d(t,"until",(function(){return eo})),n.d(t,"update",(function(){return qe})),n.d(t,"useWith",(function(){return Yr.a})),n.d(t,"values",(function(){return L.a})),n.d(t,"valuesIn",(function(){return to})),n.d(t,"view",(function(){return no.a})),n.d(t,"when",(function(){return ro})),n.d(t,"where",(function(){return io})),n.d(t,"whereEq",(function(){return oo})),n.d(t,"without",(function(){return ao})),n.d(t,"xprod",(function(){return so})),n.d(t,"zip",(function(){return uo})),n.d(t,"zipObj",(function(){return co})),n.d(t,"zipWith",(function(){return lo})),n.d(t,"thunkify",(function(){return fo}))},function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():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";function r(e,t){return function(){return null}}n.r(t);var i=n(238),o=n(246),a=n.n(o);var s=(a.a.element,function(){return null});s.isRequired=(a.a.element.isRequired,function(){return null});var u=s;var c=(a.a.elementType,function(){return null});n(272);function l(e){return e}var f=n(314),d=n(153);function p(e){return(p="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)}var h=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function v(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||((t="".concat(e).match(h))&&t[1]||"")||n}function g(e,t,n){var r=v(t);return e.displayName||(""!==r?"".concat(n,"(").concat(r,")"):n)}function m(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return v(e,"Component");if("object"===p(e))switch(e.$$typeof){case d.ForwardRef:return g(e,e.render,"ForwardRef");case d.Memo:return g(e,e.type,"memo");default:return}}}function y(e,t,n,r,i){return null}var b="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),x=a.a.oneOfType([a.a.func,a.a.object]),w=n(365),_=n(403),S=n(487),O=n(675),k=n(608),E=n(151),j=n(288),T=n(609),C=n(315),A=n(244),P=n(488),M=n(610),I=n(611),R=n(366),D=n(289),L=n(612),N=n(614),F=n(575),B=n(689),U=n(690);Number.isInteger;function z(){return null}z.isRequired=z;var V=z,H=n(607),W=n(158),q=n(138),G=n(152),Y=n(884);n.d(t,"chainPropTypes",(function(){return r})),n.d(t,"deepmerge",(function(){return i.a})),n.d(t,"isPlainObject",(function(){return i.b})),n.d(t,"elementAcceptingRef",(function(){return u})),n.d(t,"elementTypeAcceptingRef",(function(){return c})),n.d(t,"exactProp",(function(){return l})),n.d(t,"formatMuiErrorMessage",(function(){return f.a})),n.d(t,"getDisplayName",(function(){return m})),n.d(t,"HTMLElementType",(function(){return y})),n.d(t,"ponyfillGlobal",(function(){return b})),n.d(t,"refType",(function(){return x})),n.d(t,"unstable_capitalize",(function(){return w.a})),n.d(t,"unstable_createChainedFunction",(function(){return _.a})),n.d(t,"unstable_debounce",(function(){return S.a})),n.d(t,"unstable_deprecatedPropType",(function(){return O.a})),n.d(t,"unstable_isMuiElement",(function(){return k.a})),n.d(t,"unstable_ownerDocument",(function(){return E.a})),n.d(t,"unstable_ownerWindow",(function(){return j.a})),n.d(t,"unstable_requirePropFactory",(function(){return T.a})),n.d(t,"unstable_setRef",(function(){return C.a})),n.d(t,"unstable_useEnhancedEffect",(function(){return A.a})),n.d(t,"unstable_useId",(function(){return P.a})),n.d(t,"unstable_unsupportedProp",(function(){return M.a})),n.d(t,"unstable_useControlled",(function(){return I.a})),n.d(t,"unstable_useEventCallback",(function(){return R.a})),n.d(t,"unstable_useForkRef",(function(){return D.a})),n.d(t,"unstable_useIsFocusVisible",(function(){return L.a})),n.d(t,"unstable_getScrollbarSize",(function(){return N.a})),n.d(t,"unstable_detectScrollType",(function(){return F.a})),n.d(t,"unstable_getNormalizedScrollLeft",(function(){return F.b})),n.d(t,"usePreviousProps",(function(){return B.a})),n.d(t,"visuallyHidden",(function(){return U.a})),n.d(t,"integerPropType",(function(){return V})),n.d(t,"internal_resolveProps",(function(){return H.a})),n.d(t,"unstable_composeClasses",(function(){return W.a})),n.d(t,"unstable_generateUtilityClass",(function(){return q.a})),n.d(t,"unstable_generateUtilityClasses",(function(){return G.a})),n.d(t,"unstable_ClassNameGenerator",(function(){return Y.a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(21);function i(e){Object(r.a)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(87);function i(e){return function t(n){return 0===arguments.length||Object(r.a)(n)?t:e.apply(this,arguments)}}},,,function(e,t,n){"use strict";function r(e){return(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})(e)}var i,o;try{i=Map}catch(e){}try{o=Set}catch(e){}function a(e){return function e(t,n,s){if(!t||"object"!==r(t)||"function"==typeof t)return t;if(t.nodeType&&"cloneNode"in t)return t.cloneNode(!0);if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);if(Array.isArray(t))return t.map(a);if(i&&t instanceof i)return new Map(Array.from(t.entries()));if(o&&t instanceof o)return new Set(Array.from(t.values()));if(t instanceof Object){n.push(t);var u=Object.create(t);for(var c in s.push(u),t){var l=n.findIndex((function(e){return e===t[c]}));u[c]=l>-1?s[l]:e(t[c],n,s)}return u}return t}(e,[],[])}const s=Object.prototype.toString,u=Error.prototype.toString,c=RegExp.prototype.toString,l="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",f=/^Symbol\((.*)\)(.*)$/;function d(e,t=!1){if(null==e||!0===e||!1===e)return""+e;const n=typeof e;if("number"===n)return function(e){return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e}(e);if("string"===n)return t?`"${e}"`:e;if("function"===n)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===n)return l.call(e).replace(f,"Symbol($1)");const r=s.call(e).slice(8,-1);return"Date"===r?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===r||e instanceof Error?"["+u.call(e)+"]":"RegExp"===r?c.call(e):null}function p(e,t){let n=d(e,t);return null!==n?n:JSON.stringify(e,(function(e,n){let r=d(this[e],t);return null!==r?r:n}),2)}let h={default:"${path} is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{let i=null!=r&&r!==n,o=`${e} must be a \`${t}\` type, `+`but the final value was: \`${p(n,!0)}\``+(i?` (cast from the value \`${p(r,!0)}\`).`:".");return null===n&&(o+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),o},defined:"${path} must be defined"},v={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},g={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},m={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},y={isValue:"${path} field must be ${value}"},b={noUnknown:"${path} field has unspecified keys: ${unknown}"},x={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"};Object.assign(Object.create(null),{mixed:h,string:v,number:g,date:m,object:b,array:x,boolean:y});var w=n(320),_=n.n(w);var S=e=>e&&e.__isYupSchema__;var O=class{constructor(e,t){if(this.fn=void 0,this.refs=e,this.refs=e,"function"==typeof t)return void(this.fn=t);if(!_()(t,"is"))throw new TypeError("`is:` is required for `when()` conditions");if(!t.then&&!t.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:r,otherwise:i}=t,o="function"==typeof n?n:(...e)=>e.every(e=>e===n);this.fn=function(...e){let t=e.pop(),n=e.pop(),a=o(...e)?r:i;if(a)return"function"==typeof a?a(n):n.concat(a.resolve(t))}}resolve(e,t){let n=this.refs.map(e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context)),r=this.fn.apply(e,n.concat(e,t));if(void 0===r||r===e)return e;if(!S(r))throw new TypeError("conditions must return a schema object");return r.resolve(t)}};function k(e){return null==e?[]:[].concat(e)}function E(){return(E=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)}let j=/\$\{\s*(\w+)\s*\}/g;class T extends Error{static formatError(e,t){const n=t.label||t.path||"this";return n!==t.path&&(t=E({},t,{path:n})),"string"==typeof e?e.replace(j,(e,n)=>p(t[n])):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,n,r){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=t,this.path=n,this.type=r,this.errors=[],this.inner=[],k(e).forEach(e=>{T.isError(e)?(this.errors.push(...e.errors),this.inner=this.inner.concat(e.inner.length?e.inner:e)):this.errors.push(e)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,T)}}const C=e=>{let t=!1;return(...n)=>{t||(t=!0,e(...n))}};function A(e,t){let{endEarly:n,tests:r,args:i,value:o,errors:a,sort:s,path:u}=e,c=C(t),l=r.length;const f=[];if(a=a||[],!l)return a.length?c(new T(a,o,u)):c(null,o);for(let e=0;e<r.length;e++){(0,r[e])(i,(function(e){if(e){if(!T.isError(e))return c(e,o);if(n)return e.value=o,c(e,o);f.push(e)}if(--l<=0){if(f.length&&(s&&f.sort(s),a.length&&f.push(...a),a=f),a.length)return void c(new T(a,o,u),o);c(null,o)}}))}}var P=n(520),M=n.n(P),I=n(284);const R={context:"$",value:"."};class D{constructor(e,t={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!=typeof e)throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===R.context,this.isValue=this.key[0]===R.value,this.isSibling=!this.isContext&&!this.isValue;let n=this.isContext?R.context:this.isValue?R.value:"";this.path=this.key.slice(n.length),this.getter=this.path&&Object(I.getter)(this.path,!0),this.map=t.map}getValue(e,t,n){let r=this.isContext?n:this.isValue?e:t;return this.getter&&(r=this.getter(r||{})),this.map&&(r=this.map(r)),r}cast(e,t){return this.getValue(e,null==t?void 0:t.parent,null==t?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}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 N(e){function t(t,n){let{value:r,path:i="",label:o,options:a,originalValue:s,sync:u}=t,c=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,["value","path","label","options","originalValue","sync"]);const{name:l,test:f,params:d,message:p}=e;let{parent:h,context:v}=a;function g(e){return D.isRef(e)?e.getValue(r,h,v):e}function m(e={}){const t=M()(L({value:r,originalValue:s,label:o,path:e.path||i},d,e.params),g),n=new T(T.formatError(e.message||p,t),r,t.path,e.type||l);return n.params=t,n}let y,b=L({path:i,parent:h,type:l,createError:m,resolve:g,options:a,originalValue:s},c);if(u){try{var x;if("function"==typeof(null==(x=y=f.call(b,r,b))?void 0:x.then))throw new Error(`Validation test of type: "${b.type}" returned a Promise during a synchronous validate. `+"This test will finish after the validate call has returned")}catch(e){return void n(e)}T.isError(y)?n(y):y?n(null,y):n(m())}else try{Promise.resolve(f.call(b,r,b)).then(e=>{T.isError(e)?n(e):e?n(null,e):n(m())}).catch(n)}catch(e){n(e)}}return t.OPTIONS=e,t}D.prototype.__isYupRef=!0;let F=e=>e.substr(0,e.length-1).substr(1);function B(e,t,n,r=n){let i,o,a;return t?(Object(I.forEach)(t,(s,u,c)=>{let l=u?F(s):s;if((e=e.resolve({context:r,parent:i,value:n})).innerType){let r=c?parseInt(l,10):0;if(n&&r>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. `+"because there is no value at that index. ");i=n,n=n&&n[r],e=e.innerType}if(!c){if(!e.fields||!e.fields[l])throw new Error(`The schema does not contain the path: ${t}. `+`(failed at: ${a} which is a type: "${e._type}")`);i=n,n=n&&n[l],e=e.fields[l]}o=l,a=u?"["+s+"]":"."+s}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}class U{constructor(){this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){const e=[];for(const t of this.list)e.push(t);for(const[,t]of this.refs)e.push(t.describe());return e}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(e){return this.toArray().reduce((t,n)=>t.concat(D.isRef(n)?e(n):n),[])}add(e){D.isRef(e)?this.refs.set(e.key,e):this.list.add(e)}delete(e){D.isRef(e)?this.refs.delete(e.key):this.list.delete(e)}clone(){const e=new U;return e.list=new Set(this.list),e.refs=new Map(this.refs),e}merge(e,t){const n=this.clone();return e.list.forEach(e=>n.add(e)),e.refs.forEach(e=>n.add(e)),t.list.forEach(e=>n.delete(e)),t.refs.forEach(e=>n.delete(e)),n}}function z(){return(z=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)}class V{constructor(e){this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this._typeError=void 0,this._whitelist=new U,this._blacklist=new U,this.exclusiveTests=Object.create(null),this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(h.notType)}),this.type=(null==e?void 0:e.type)||"mixed",this.spec=z({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,presence:"optional"},null==e?void 0:e.spec)}get _type(){return this.type}_typeCheck(e){return!0}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeError=this._typeError,t._whitelistError=this._whitelistError,t._blacklistError=this._blacklistError,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.exclusiveTests=z({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=a(z({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let n=e(this);return this._mutate=t,n}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=e.clone();const n=z({},this.spec,t.spec);return t.spec=n,t._typeError||(t._typeError=this._typeError),t._whitelistError||(t._whitelistError=this._whitelistError),t._blacklistError||(t._blacklistError=this._blacklistError),t._whitelist=this._whitelist.merge(e._whitelist,e._blacklist),t._blacklist=this._blacklist.merge(e._blacklist,e._whitelist),t.tests=this.tests,t.exclusiveTests=this.exclusiveTests,t.withMutation(t=>{e.tests.forEach(e=>{t.test(e.OPTIONS)})}),t.transforms=[...this.transforms,...t.transforms],t}isType(e){return!(!this.spec.nullable||null!==e)||this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let n=t.conditions;(t=t.clone()).conditions=[],t=(t=n.reduce((t,n)=>n.resolve(t,e),t)).resolve(e)}return t}cast(e,t={}){let n=this.resolve(z({value:e},t)),r=n._cast(e,t);if(void 0!==e&&!1!==t.assert&&!0!==n.isType(r)){let i=p(e),o=p(r);throw new TypeError(`The value of ${t.path||"field"} could not be cast to a value `+`that satisfies the schema type: "${n._type}". \n\n`+`attempted value: ${i} \n`+(o!==i?`result of cast: ${o}`:""))}return r}_cast(e,t){let n=void 0===e?e:this.transforms.reduce((t,n)=>n.call(this,t,e,this),e);return void 0===n&&(n=this.getDefault()),n}_validate(e,t={},n){let{sync:r,path:i,from:o=[],originalValue:a=e,strict:s=this.spec.strict,abortEarly:u=this.spec.abortEarly}=t,c=e;s||(c=this._cast(c,z({assert:!1},t)));let l={value:c,path:i,options:t,originalValue:a,schema:this,label:this.spec.label,sync:r,from:o},f=[];this._typeError&&f.push(this._typeError);let d=[];this._whitelistError&&d.push(this._whitelistError),this._blacklistError&&d.push(this._blacklistError),A({args:l,value:c,path:i,sync:r,tests:f,endEarly:u},e=>{e?n(e,c):A({tests:this.tests.concat(d),args:l,path:i,sync:r,value:c,endEarly:u},n)})}validate(e,t,n){let r=this.resolve(z({},t,{value:e}));return"function"==typeof n?r._validate(e,t,n):new Promise((n,i)=>r._validate(e,t,(e,t)=>{e?i(e):n(t)}))}validateSync(e,t){let n;return this.resolve(z({},t,{value:e}))._validate(e,z({},t,{sync:!0}),(e,t)=>{if(e)throw e;n=t}),n}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(T.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(T.isError(e))return!1;throw e}}_getDefault(){let e=this.spec.default;return null==e?e:"function"==typeof e?e.call(this):a(e)}getDefault(e){return this.resolve(e||{})._getDefault()}default(e){if(0===arguments.length)return this._getDefault();return this.clone({default:e})}strict(e=!0){let t=this.clone();return t.spec.strict=e,t}_isPresent(e){return null!=e}defined(e=h.defined){return this.test({message:e,name:"defined",exclusive:!0,test:e=>void 0!==e})}required(e=h.required){return this.clone({presence:"required"}).withMutation(t=>t.test({message:e,name:"required",exclusive:!0,test(e){return this.schema._isPresent(e)}}))}notRequired(){let e=this.clone({presence:"optional"});return e.tests=e.tests.filter(e=>"required"!==e.OPTIONS.name),e}nullable(e=!0){return this.clone({nullable:!1!==e})}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(void 0===(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]}).message&&(t.message=h.default),"function"!=typeof t.test)throw new TypeError("`test` is a required parameters");let n=this.clone(),r=N(t),i=t.exclusive||t.name&&!0===n.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(n.exclusiveTests[t.name]=!!t.exclusive),n.tests=n.tests.filter(e=>{if(e.OPTIONS.name===t.name){if(i)return!1;if(e.OPTIONS.test===r.OPTIONS.test)return!1}return!0}),n.tests.push(r),n}when(e,t){Array.isArray(e)||"string"==typeof e||(t=e,e=".");let n=this.clone(),r=k(e).map(e=>new D(e));return r.forEach(e=>{e.isSibling&&n.deps.push(e.key)}),n.conditions.push(new O(r,t)),n}typeError(e){let t=this.clone();return t._typeError=N({message:e,name:"typeError",test(e){return!(void 0!==e&&!this.schema.isType(e))||this.createError({params:{type:this.schema._type}})}}),t}oneOf(e,t=h.oneOf){let n=this.clone();return e.forEach(e=>{n._whitelist.add(e),n._blacklist.delete(e)}),n._whitelistError=N({message:t,name:"oneOf",test(e){if(void 0===e)return!0;let t=this.schema._whitelist,n=t.resolveAll(this.resolve);return!!n.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:n}})}}),n}notOneOf(e,t=h.notOneOf){let n=this.clone();return e.forEach(e=>{n._blacklist.add(e),n._whitelist.delete(e)}),n._blacklistError=N({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,n=t.resolveAll(this.resolve);return!n.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:n}})}}),n}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(){const e=this.clone(),{label:t,meta:n}=e.spec;return{meta:n,label:t,type:e.type,oneOf:e._whitelist.describe(),notOneOf:e._blacklist.describe(),tests:e.tests.map(e=>({name:e.OPTIONS.name,params:e.OPTIONS.params})).filter((e,t,n)=>n.findIndex(t=>t.name===e.name)===t)}}}V.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])V.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:o,schema:a}=B(this,t,n,r.context);return a[e](i&&i[o],z({},r,{parent:i,path:t}))};for(const e of["equals","is"])V.prototype[e]=V.prototype.oneOf;for(const e of["not","nope"])V.prototype[e]=V.prototype.notOneOf;V.prototype.optional=V.prototype.notRequired;const H=V;H.prototype;var W=e=>null==e;function q(){return new G}class G extends V{constructor(){super({type:"boolean"}),this.withMutation(()=>{this.transform((function(e){if(!this.isType(e)){if(/^(true|1)$/i.test(String(e)))return!0;if(/^(false|0)$/i.test(String(e)))return!1}return e}))})}_typeCheck(e){return e instanceof Boolean&&(e=e.valueOf()),"boolean"==typeof e}isTrue(e=y.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"true"},test:e=>W(e)||!0===e})}isFalse(e=y.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"false"},test:e=>W(e)||!1===e})}}q.prototype=G.prototype;let Y=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,K=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,$=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,X=e=>W(e)||e===e.trim(),Q={}.toString();function Z(){return new J}class J extends V{constructor(){super({type:"string"}),this.withMutation(()=>{this.transform((function(e){if(this.isType(e))return e;if(Array.isArray(e))return e;const t=null!=e&&e.toString?e.toString():e;return t===Q?e:t}))})}_typeCheck(e){return e instanceof String&&(e=e.valueOf()),"string"==typeof e}_isPresent(e){return super._isPresent(e)&&!!e.length}length(e,t=v.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(t){return W(t)||t.length===this.resolve(e)}})}min(e,t=v.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return W(t)||t.length>=this.resolve(e)}})}max(e,t=v.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},test(t){return W(t)||t.length<=this.resolve(e)}})}matches(e,t){let n,r,i=!1;return t&&("object"==typeof t?({excludeEmptyString:i=!1,message:n,name:r}=t):n=t),this.test({name:r||"matches",message:n||v.matches,params:{regex:e},test:t=>W(t)||""===t&&i||-1!==t.search(e)})}email(e=v.email){return this.matches(Y,{name:"email",message:e,excludeEmptyString:!0})}url(e=v.url){return this.matches(K,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=v.uuid){return this.matches($,{name:"uuid",message:e,excludeEmptyString:!1})}ensure(){return this.default("").transform(e=>null===e?"":e)}trim(e=v.trim){return this.transform(e=>null!=e?e.trim():e).test({message:e,name:"trim",test:X})}lowercase(e=v.lowercase){return this.transform(e=>W(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>W(e)||e===e.toLowerCase()})}uppercase(e=v.uppercase){return this.transform(e=>W(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>W(e)||e===e.toUpperCase()})}}Z.prototype=J.prototype;let ee=e=>e!=+e;function te(){return new ne}class ne extends V{constructor(){super({type:"number"}),this.withMutation(()=>{this.transform((function(e){let t=e;if("string"==typeof t){if(""===(t=t.replace(/\s/g,"")))return NaN;t=+t}return this.isType(t)?t:parseFloat(t)}))})}_typeCheck(e){return e instanceof Number&&(e=e.valueOf()),"number"==typeof e&&!ee(e)}min(e,t=g.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return W(t)||t>=this.resolve(e)}})}max(e,t=g.max){return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(t){return W(t)||t<=this.resolve(e)}})}lessThan(e,t=g.lessThan){return this.test({message:t,name:"max",exclusive:!0,params:{less:e},test(t){return W(t)||t<this.resolve(e)}})}moreThan(e,t=g.moreThan){return this.test({message:t,name:"min",exclusive:!0,params:{more:e},test(t){return W(t)||t>this.resolve(e)}})}positive(e=g.positive){return this.moreThan(0,e)}negative(e=g.negative){return this.lessThan(0,e)}integer(e=g.integer){return this.test({name:"integer",message:e,test:e=>W(e)||Number.isInteger(e)})}truncate(){return this.transform(e=>W(e)?e:0|e)}round(e){var t;let n=["ceil","floor","round","trunc"];if("trunc"===(e=(null==(t=e)?void 0:t.toLowerCase())||"round"))return this.truncate();if(-1===n.indexOf(e.toLowerCase()))throw new TypeError("Only valid options for round() are: "+n.join(", "));return this.transform(t=>W(t)?t:Math[e](t))}}te.prototype=ne.prototype;var re=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;let ie=new Date(""),oe=e=>"[object Date]"===Object.prototype.toString.call(e);function ae(){return new se}class se extends V{constructor(){super({type:"date"}),this.withMutation(()=>{this.transform((function(e){return this.isType(e)?e:(e=function(e){var t,n,r=[1,4,5,6,7,10,11],i=0;if(n=re.exec(e)){for(var o,a=0;o=r[a];++a)n[o]=+n[o]||0;n[2]=(+n[2]||1)-1,n[3]=+n[3]||1,n[7]=n[7]?String(n[7]).substr(0,3):0,void 0!==n[8]&&""!==n[8]||void 0!==n[9]&&""!==n[9]?("Z"!==n[8]&&void 0!==n[9]&&(i=60*n[10]+n[11],"+"===n[9]&&(i=0-i)),t=Date.UTC(n[1],n[2],n[3],n[4],n[5]+i,n[6],n[7])):t=+new Date(n[1],n[2],n[3],n[4],n[5],n[6],n[7])}else t=Date.parse?Date.parse(e):NaN;return t}(e),isNaN(e)?ie:new Date(e))}))})}_typeCheck(e){return oe(e)&&!isNaN(e.getTime())}prepareParam(e,t){let n;if(D.isRef(e))n=e;else{let r=this.cast(e);if(!this._typeCheck(r))throw new TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);n=r}return n}min(e,t=m.min){let n=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(e){return W(e)||e>=this.resolve(n)}})}max(e,t=m.max){let n=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(e){return W(e)||e<=this.resolve(n)}})}}se.INVALID_DATE=ie,ae.prototype=se.prototype,ae.INVALID_DATE=ie;var ue=n(625),ce=n.n(ue),le=n(865),fe=n.n(le),de=n(866),pe=n.n(de),he=n(867),ve=n.n(he);function ge(e,t){let n=1/0;return e.some((e,r)=>{var i;if(-1!==(null==(i=t.path)?void 0:i.indexOf(e)))return n=r,!0}),n}function me(e){return(t,n)=>ge(e,t)-ge(e,n)}function ye(){return(ye=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)}let be=e=>"[object Object]"===Object.prototype.toString.call(e);const xe=me([]);class we extends V{constructor(e){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=xe,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{this.transform((function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null})),e&&this.shape(e)})}_typeCheck(e){return be(e)||"function"==typeof e}_cast(e,t={}){var n;let r=super._cast(e,t);if(void 0===r)return this.getDefault();if(!this._typeCheck(r))return r;let i=this.fields,o=null!=(n=t.stripUnknown)?n:this.spec.noUnknown,a=this._nodes.concat(Object.keys(r).filter(e=>-1===this._nodes.indexOf(e))),s={},u=ye({},t,{parent:s,__validating:t.__validating||!1}),c=!1;for(const e of a){let n=i[e],a=_()(r,e);if(n){let i,o=r[e];u.path=(t.path?`${t.path}.`:"")+e;let a="spec"in(n=n.resolve({value:o,context:t.context,parent:s}))?n.spec:void 0,l=null==a?void 0:a.strict;if(null==a?void 0:a.strip){c=c||e in r;continue}void 0!==(i=t.__validating&&l?r[e]:n.cast(r[e],u))&&(s[e]=i)}else a&&!o&&(s[e]=r[e]);s[e]!==r[e]&&(c=!0)}return c?s:r}_validate(e,t={},n){let r=[],{sync:i,from:o=[],originalValue:a=e,abortEarly:s=this.spec.abortEarly,recursive:u=this.spec.recursive}=t;o=[{schema:this,value:a},...o],t.__validating=!0,t.originalValue=a,t.from=o,super._validate(e,t,(e,c)=>{if(e){if(!T.isError(e)||s)return void n(e,c);r.push(e)}if(!u||!be(c))return void n(r[0]||null,c);a=a||c;let l=this._nodes.map(e=>(n,r)=>{let i=-1===e.indexOf(".")?(t.path?`${t.path}.`:"")+e:`${t.path||""}["${e}"]`,s=this.fields[e];s&&"validate"in s?s.validate(c[e],ye({},t,{path:i,from:o,strict:!0,parent:c,originalValue:a[e]}),r):r(null)});A({sync:i,tests:l,value:c,errors:r,endEarly:s,sort:this._sortErrors,path:t.path},n)})}clone(e){const t=super.clone(e);return t.fields=ye({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),n=t.fields;for(let[e,t]of Object.entries(this.fields)){const r=n[e];void 0===r?n[e]=t:r instanceof V&&t instanceof V&&(n[e]=t.concat(r))}return t.withMutation(()=>t.shape(n,this._excludedEdges))}getDefaultFromShape(){let e={};return this._nodes.forEach(t=>{const n=this.fields[t];e[t]="default"in n?n.getDefault():void 0}),e}_getDefault(){return"default"in this.spec?super._getDefault():this._nodes.length?this.getDefaultFromShape():void 0}shape(e,t=[]){let n=this.clone(),r=Object.assign(n.fields,e);return n.fields=r,n._sortErrors=me(Object.keys(r)),t.length&&(Array.isArray(t[0])||(t=[t]),n._excludedEdges=[...n._excludedEdges,...t]),n._nodes=function(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([e,t])=>`${e}-${t}`));function o(e,t){let o=Object(I.split)(e)[0];r.add(o),i.has(`${t}-${o}`)||n.push([t,o])}for(const t in e)if(_()(e,t)){let n=e[t];r.add(t),D.isRef(n)&&n.isSibling?o(n.path,t):S(n)&&"deps"in n&&n.deps.forEach(e=>o(e,t))}return ve.a.array(Array.from(r),n).reverse()}(r,n._excludedEdges),n}pick(e){const t={};for(const n of e)this.fields[n]&&(t[n]=this.fields[n]);return this.clone().withMutation(e=>(e.fields={},e.shape(t)))}omit(e){const t=this.clone(),n=t.fields;t.fields={};for(const t of e)delete n[t];return t.withMutation(()=>t.shape(n))}from(e,t,n){let r=Object(I.getter)(e,!0);return this.transform(i=>{if(null==i)return i;let o=i;return _()(i,e)&&(o=ye({},i),n||delete o[e],o[t]=r(i)),o})}noUnknown(e=!0,t=b.noUnknown){"string"==typeof e&&(t=e,e=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){if(null==t)return!0;const n=function(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(e=>-1===n.indexOf(e))}(this.schema,t);return!e||0===n.length||this.createError({params:{unknown:n.join(", ")}})}});return n.spec.noUnknown=e,n}unknown(e=!0,t=b.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>t&&pe()(t,(t,n)=>e(n)))}camelCase(){return this.transformKeys(fe.a)}snakeCase(){return this.transformKeys(ce.a)}constantCase(){return this.transformKeys(e=>ce()(e).toUpperCase())}describe(){let e=super.describe();return e.fields=M()(this.fields,e=>e.describe()),e}}function _e(e){return new we(e)}function Se(){return(Se=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 Oe(e){return new ke(e)}_e.prototype=we.prototype;class ke extends V{constructor(e){super({type:"array"}),this.innerType=void 0,this.innerType=e,this.withMutation(()=>{this.transform((function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null}))})}_typeCheck(e){return Array.isArray(e)}get _subType(){return this.innerType}_cast(e,t){const n=super._cast(e,t);if(!this._typeCheck(n)||!this.innerType)return n;let r=!1;const i=n.map((e,n)=>{const i=this.innerType.cast(e,Se({},t,{path:`${t.path||""}[${n}]`}));return i!==e&&(r=!0),i});return r?i:n}_validate(e,t={},n){var r,i;let o=[],a=t.sync,s=t.path,u=this.innerType,c=null!=(r=t.abortEarly)?r:this.spec.abortEarly,l=null!=(i=t.recursive)?i:this.spec.recursive,f=null!=t.originalValue?t.originalValue:e;super._validate(e,t,(e,r)=>{if(e){if(!T.isError(e)||c)return void n(e,r);o.push(e)}if(!l||!u||!this._typeCheck(r))return void n(o[0]||null,r);f=f||r;let i=new Array(r.length);for(let e=0;e<r.length;e++){let n=r[e],o=`${t.path||""}[${e}]`,a=Se({},t,{path:o,strict:!0,parent:r,index:e,originalValue:f[e]});i[e]=(e,t)=>u.validate(n,a,t)}A({sync:a,path:s,value:r,errors:o,endEarly:c,tests:i},n)})}clone(e){const t=super.clone(e);return t.innerType=this.innerType,t}concat(e){let t=super.concat(e);return t.innerType=this.innerType,e.innerType&&(t.innerType=t.innerType?t.innerType.concat(e.innerType):e.innerType),t}of(e){let t=this.clone();if(!S(e))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+p(e));return t.innerType=e,t}length(e,t=x.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(t){return W(t)||t.length===this.resolve(e)}})}min(e,t){return t=t||x.min,this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return W(t)||t.length>=this.resolve(e)}})}max(e,t){return t=t||x.max,this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(t){return W(t)||t.length<=this.resolve(e)}})}ensure(){return this.default(()=>[]).transform((e,t)=>this._typeCheck(e)?e:null==t?[]:[].concat(t))}compact(e){let t=e?(t,n,r)=>!e(t,n,r):e=>!!e;return this.transform(e=>null!=e?e.filter(t):e)}describe(){let e=super.describe();return this.innerType&&(e.innerType=this.innerType.describe()),e}nullable(e=!0){return super.nullable(e)}defined(){return super.defined()}required(e){return super.required(e)}}Oe.prototype=ke.prototype;n.d(t,"b",(function(){return q})),n.d(t,"e",(function(){return Z})),n.d(t,"c",(function(){return te})),n.d(t,"d",(function(){return _e})),n.d(t,"a",(function(){return Oe}))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(29),i=n(12),o=n(87);function a(e){return function t(n,a,s){switch(arguments.length){case 0:return t;case 1:return Object(o.a)(n)?t:Object(i.a)((function(t,r){return e(n,t,r)}));case 2:return Object(o.a)(n)&&Object(o.a)(a)?t:Object(o.a)(n)?Object(i.a)((function(t,n){return e(t,a,n)})):Object(o.a)(a)?Object(i.a)((function(t,r){return e(n,t,r)})):Object(r.a)((function(t){return e(n,a,t)}));default:return Object(o.a)(n)&&Object(o.a)(a)&&Object(o.a)(s)?t:Object(o.a)(n)&&Object(o.a)(a)?Object(i.a)((function(t,n){return e(t,n,s)})):Object(o.a)(n)&&Object(o.a)(s)?Object(i.a)((function(t,n){return e(t,a,n)})):Object(o.a)(a)&&Object(o.a)(s)?Object(i.a)((function(t,r){return e(n,t,r)})):Object(o.a)(n)?Object(r.a)((function(t){return e(t,a,s)})):Object(o.a)(a)?Object(r.a)((function(t){return e(n,t,s)})):Object(o.a)(s)?Object(r.a)((function(t){return e(n,a,t)})):e(n,a,s)}}}},,function(e,t,n){"use strict";var r=n(94);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var o=n(2),a=n.n(o),s=n(157);n(52);function u(){return(u=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,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}var l=n(176);n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return b}));a.a.Component;a.a.Component;var f=function(e,t){return"function"==typeof e?e(t):e},d=function(e,t){return"string"==typeof e?Object(s.c)(e,null,null,t):e},p=function(e){return e},h=a.a.forwardRef;void 0===h&&(h=p);var v=h((function(e,t){var n=e.innerRef,r=e.navigate,i=e.onClick,o=c(e,["innerRef","navigate","onClick"]),s=o.target,l=u({},o,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||s&&"_self"!==s||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return l.ref=p!==h&&t||n,a.a.createElement("a",l)}));var g=h((function(e,t){var n=e.component,i=void 0===n?v:n,o=e.replace,s=e.to,g=e.innerRef,m=c(e,["component","replace","to","innerRef"]);return a.a.createElement(r.__RouterContext.Consumer,null,(function(e){e||Object(l.a)(!1);var n=e.history,r=d(f(s,e.location),e.location),c=r?n.createHref(r):"",v=u({},m,{href:c,navigate:function(){var t=f(s,e.location);(o?n.replace:n.push)(t)}});return p!==h?v.ref=t||g:v.innerRef=g,a.a.createElement(i,v)}))})),m=function(e){return e},y=a.a.forwardRef;void 0===y&&(y=m);var b=y((function(e,t){var n=e["aria-current"],i=void 0===n?"page":n,o=e.activeClassName,s=void 0===o?"active":o,p=e.activeStyle,h=e.className,v=e.exact,b=e.isActive,x=e.location,w=e.sensitive,_=e.strict,S=e.style,O=e.to,k=e.innerRef,E=c(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return a.a.createElement(r.__RouterContext.Consumer,null,(function(e){e||Object(l.a)(!1);var n=x||e.location,o=d(f(O,n),n),c=o.pathname,j=c&&c.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),T=j?Object(r.matchPath)(n.pathname,{path:j,exact:v,sensitive:w,strict:_}):null,C=!!(b?b(T,n):T),A=C?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(" ")}(h,s):h,P=C?u({},S,{},p):S,M=u({"aria-current":C&&i||null,className:A,style:P,to:o},E);return m!==y?M.ref=t||k:M.innerRef=k,a.a.createElement(g,M)}))}))},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(180)},function(e,t,n){"use strict";n.d(t,"e",(function(){return i})),n.d(t,"i",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"f",(function(){return s})),n.d(t,"a",(function(){return u})),n.d(t,"r",(function(){return c})),n.d(t,"l",(function(){return l})),n.d(t,"k",(function(){return f})),n.d(t,"j",(function(){return d})),n.d(t,"h",(function(){return p})),n.d(t,"g",(function(){return h})),n.d(t,"d",(function(){return v})),n.d(t,"c",(function(){return g})),n.d(t,"m",(function(){return m})),n.d(t,"n",(function(){return y})),n.d(t,"p",(function(){return b})),n.d(t,"q",(function(){return S})),n.d(t,"o",(function(){return O}));var r=n(63),i="undefined"==typeof window;function o(){}function a(e,t){return"function"==typeof e?e(t):e}function s(e){return"number"==typeof e&&e>=0&&e!==1/0}function u(e){return Array.isArray(e)?e:[e]}function c(e,t){return Math.max(e+(t||0)-Date.now(),0)}function l(e,t,n){return _(e)?"function"==typeof t?Object(r.a)({},n,{queryKey:e,queryFn:t}):Object(r.a)({},t,{queryKey:e}):e}function f(e,t,n){return _(e)?"function"==typeof t?Object(r.a)({},n,{mutationKey:e,mutationFn:t}):Object(r.a)({},t,{mutationKey:e}):"function"==typeof e?Object(r.a)({},t,{mutationFn:e}):Object(r.a)({},e)}function d(e,t,n){return _(e)?[Object(r.a)({},t,{queryKey:e}),n]:[e||{},t]}function p(e,t){var n=e.active,r=e.exact,i=e.fetching,o=e.inactive,a=e.predicate,s=e.queryKey,u=e.stale;if(_(s))if(r){if(t.queryHash!==v(s,t.options))return!1}else if(!m(t.queryKey,s))return!1;var c=function(e,t){return!0===e&&!0===t||null==e&&null==t?"all":!1===e&&!1===t?"none":(null!=e?e:!t)?"active":"inactive"}(n,o);if("none"===c)return!1;if("all"!==c){var l=t.isActive();if("active"===c&&!l)return!1;if("inactive"===c&&l)return!1}return("boolean"!=typeof u||t.isStale()===u)&&(("boolean"!=typeof i||t.isFetching()===i)&&!(a&&!a(t)))}function h(e,t){var n=e.exact,r=e.fetching,i=e.predicate,o=e.mutationKey;if(_(o)){if(!t.options.mutationKey)return!1;if(n){if(g(t.options.mutationKey)!==g(o))return!1}else if(!m(t.options.mutationKey,o))return!1}return("boolean"!=typeof r||"loading"===t.state.status===r)&&!(i&&!i(t))}function v(e,t){return((null==t?void 0:t.queryKeyHashFn)||g)(e)}function g(e){var t,n=u(e);return t=n,JSON.stringify(t,(function(e,t){return x(t)?Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{}):t}))}function m(e,t){return function e(t,n){if(t===n)return!0;if(typeof t!=typeof n)return!1;if(t&&n&&"object"==typeof t&&"object"==typeof n)return!Object.keys(n).some((function(r){return!e(t[r],n[r])}));return!1}(u(e),u(t))}function y(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||x(e)&&x(t)){for(var r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),o=i.length,a=n?[]:{},s=0,u=0;u<o;u++){var c=n?u:i[u];a[c]=y(e[c],t[c]),a[c]===e[c]&&s++}return r===o&&s===r?e:a}return t}function b(e,t){if(e&&!t||t&&!e)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}function x(e){if(!w(e))return!1;var t=e.constructor;if(void 0===t)return!0;var n=t.prototype;return!!w(n)&&!!n.hasOwnProperty("isPrototypeOf")}function w(e){return"[object Object]"===Object.prototype.toString.call(e)}function _(e){return"string"==typeof e||Array.isArray(e)}function S(e){return new Promise((function(t){setTimeout(t,e)}))}function O(e){Promise.resolve().then(e).catch((function(e){return setTimeout((function(){throw e}))}))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s}));var r=n(365),i=n(84);function o(e){return(o="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 a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===o(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){var r="vars.".concat(t).split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e);if(null!=r)return r}return t.split(".").reduce((function(e,t){return e&&null!=e[t]?e[t]:null}),e)}function u(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return r="function"==typeof e?e(n):Array.isArray(e)?e[n]||i:s(e,n)||i,t&&(r=t(r)),r}t.a=function(e){var t=e.prop,n=e.cssProperty,o=void 0===n?e.prop:n,c=e.themeKey,l=e.transform,f=function(e){if(null==e[t])return null;var n=e[t],f=s(e.theme,c)||{};return Object(i.c)(e,n,(function(e){var n=u(f,l,e);return e===n&&"string"==typeof e&&(n=u(f,l,"".concat(t).concat("default"===e?"":Object(r.a)(e)),e)),!1===o?n:a({},o,n)}))};return f.propTypes={},f.filterProps=[t],f}},function(e,t,n){"use strict";var r=n(76),i=n(2),o=n.n(i);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var u=Object.fromEntries?Object.fromEntries:function(e){if(!e||!e[Symbol.iterator])throw new Error("Object.fromEntries() requires a single iterable argument");var t={};return Object.keys(e).forEach((function(n){var r=a(e[n],2),i=r[0],o=r[1];t[i]=o})),t};function c(e){return Object.keys(e)}function l(e,t){if(!e)throw new Error(t)}function f(e,t){return t}function d(e){return(d="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)}var p=function(e){for(var t=e.length,n=0,r="";n<t;n++){var i=e[n];if(null!=i){var o=void 0;switch(d(i)){case"boolean":break;case"object":if(Array.isArray(i))o=p(i);else for(var a in l(!f(0,!1)),o="",i)i[a]&&a&&(o&&(o+=" "),o+=a);break;default:o=i}o&&(r&&(r+=" "),r+=o)}}return r},h=n(196),v=n(136);function g(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function y(e){return!(!(e instanceof Object)||"styles"in e||"length"in e||"__emotion_styles"in e)}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var w=function(){function e(e,t,n){var r=[],i=Object(v.a)(e,r,n);return r.length<2?n:i+t(r)}return{createCssAndCx:function(t){var n=t.cache,r=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=Object(h.a)(t,n.registered);Object(v.b)(n,i,!1);var o="".concat(n.key,"-").concat(i.name),a=t[0];return y(a)&&O.saveClassNameCSSObjectMapping(n,o,a),o};return{css:r,cx:function(){for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];var a=p(i),s=O.fixClassName(n,a,r);return e(n.registered,r,s)}}}}}().createCssAndCx;function _(e){var t=e.useCache;return{useCssAndCx:function(){var e,n,r,o=t(),a=(e=function(){return w({cache:o})},n=[o],(!(r=Object(i.useRef)()).current||n.length!==r.current.prevDeps.length||r.current.prevDeps.map((function(e,t){return e===n[t]})).indexOf(!1)>=0)&&(r.current={v:e(),prevDeps:g(n)}),r.current.v);return{css:a.css,cx:a.cx}}}}var S,O=(S=new WeakMap,{saveClassNameCSSObjectMapping:function(e,t,n){var r=S.get(e);void 0===r&&(r=new Map,S.set(e,r)),r.set(t,n)},fixClassName:function(e,t,n){var r,i,o=S.get(e);return p((r=t.split(" ").map((function(e){return[e,null==o?void 0:o.get(e)]})),i=!1,r.map((function(e){var t,n=b(e,2),r=n[0],o=n[1];if(void 0===o)return r;if(i)t={"&&":o};else for(var a in t=r,o)if(a.startsWith("@media")){i=!0;break}return t}))).map((function(e){return"string"==typeof e?e:n(e)})))}});function k(e){return(k="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 E(e){if(!(e instanceof Object)||"function"==typeof e)return e;var t=[];for(var n in e){var r=e[n],i=k(r);if("string"!==i&&("number"!==i||isNaN(r))&&"boolean"!==i&&null!=r)return e;t.push("".concat(n,":").concat(i,"_").concat(r))}return"xSqLiJdLMd9s"+t.join("|")}function j(e,t,n){if(!(t instanceof Object))return e;var r={};return c(e).forEach((function(i){return r[i]=n(e[i],t[i])})),c(t).forEach((function(n){if(!(n in e)){var i=t[n];"string"==typeof i&&(r[n]=i)}})),r}var T=n(124);function C(e){return(C="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)}var A=0;function P(e){var t=e.useTheme,n=e.cache;function r(){var e=Object(T.d)(),t=null!=n?n:e;if(null===t)throw new Error(["In order to get SSR working with tss-react you need to explicitly provide an Emotion cache.","MUI users be aware: This is not an error strictly related to tss-react, with or without tss-react,","MUI needs an Emotion cache to be provided for SSR to work.","Here is the MUI documentation related to SSR setup: https://mui.com/material-ui/guides/server-rendering/","TSS provides helper that makes the process of setting up SSR easier: https://docs.tss-react.dev/ssr"].join("\n"));return t}var o=_({useCache:r}).useCssAndCx;return{makeStyles:function(e){var n=null!=e?e:{},a=n.name,s=n.uniqId,d=void 0===s?A++:s,p="object"!==C(a)?a:Object.keys(a)[0];return function(e){var n="function"==typeof e?e:function(){return e};return function(e,a){var s,h,v=t(),g=o(),m=g.css,y=g.cx,b=r(),x=Object(i.useMemo)((function(){var t={},r="undefined"!=typeof Proxy&&new Proxy({},{get:function(e,n){return"symbol"===C(n)&&l(!1),t[n]="".concat(b.key,"-").concat(d).concat(void 0!==p?"-".concat(p):"","-").concat(n,"-ref")}}),i=n(v,e,r||{}),o=u(c(i).map((function(e){var n=i[e];return n.label||(n.label="".concat(void 0!==p?"".concat(p,"-"):"").concat(e)),[e,"".concat(m(n)).concat(f(0,e in t)?" ".concat(t[e]):"")]})));return c(t).forEach((function(e){e in o||(o[e]=t[e])})),o}),[b,m,y,v,E(e)]),w=null==a?void 0:a.props.classes;x=Object(i.useMemo)((function(){return j(x,w,y)}),[x,E(w),y]);var _=void 0;try{_=void 0!==p?null===(h=null===(s=v.components)||void 0===s?void 0:s[p])||void 0===h?void 0:h.styleOverrides:void 0}catch(e){}var S=Object(i.useMemo)((function(){if(_){var e={};for(var t in _){var n=_[t];n instanceof Object&&(e[t]=m("function"==typeof n?n(Object.assign({theme:v,ownerState:null==a?void 0:a.ownerState},null==a?void 0:a.props)):n))}return e}}),[void 0===_?void 0:JSON.stringify(_),E(null==a?void 0:a.props),E(null==a?void 0:a.ownerState),m]);return{classes:x=Object(i.useMemo)((function(){return j(x,S,y)}),[x,S,y]),theme:v,css:m,cx:y}}}},useStyles:function(){var e=t(),n=o();return{theme:e,css:n.css,cx:n.cx}}}}function M(e){return e.charAt(0).toUpperCase()+e.slice(1)}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 R(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==I(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==I(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===I(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var D=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function L(e){var t={},n={};return Object.keys(e).forEach((function(r){return(r.startsWith("@media")?n:t)[r]=e[r]})),Object.keys(n).forEach((function(e){var r=n[e];Object.keys(r).forEach((function(n){var i;return t[n]=Object.assign(Object.assign({},null!==(i=t[n])&&void 0!==i?i:{}),R({},e,r[n]))}))})),t}n(0);n.d(t,"a",(function(){return B}));var N,F=(N={useTheme:r.a},Object.assign(Object.assign({},P(N)),function(e){var t=P({useTheme:e.useTheme,cache:e.cache}).makeStyles;return{withStyles:function(e,n,r){var a="string"==typeof e?function(){var t=e,n=function(e){var n=e.children,r=D(e,["children"]);return(Object(i.createElement)(t,r,n))};return Object.defineProperty(n,"name",{value:M(t)}),n}():e,s=function(){var e=a.displayName;if(e)return e;var t=a.name;return t||(null==r?void 0:r.name)}(),u=t(Object.assign(Object.assign({},r),{name:s}))("function"==typeof n?function(e,t,r){return L(n(e,t,r))}:L(n));function c(e){for(var t in e)if("root"!==t)return!0;return!1}var l=Object(i.forwardRef)((function(t,n){var r=t.className,i=(t.classes,D(t,["className","classes"])),s=u(t,{props:t}),l=s.classes,f=s.cx;return o.a.createElement(a,Object.assign({ref:n,className:c(l)?r:f(l.root,r)},"string"==typeof e?{}:{classes:l},i))}));return void 0!==s&&(l.displayName="".concat(M(s),"WithStyles"),Object.defineProperty(l,"name",{value:l.displayName})),l}}}(N))),B=F.makeStyles;F.withStyles,F.useStyles},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),i=n(94),o=n(1233),a=new Error("use-react-router may only be used with react-router@^5."),s=new Error("useReactRouter may only be called within a <Router /> context.");t.default=function(){if(!i.__RouterContext)throw a;var e=r.useContext(i.__RouterContext);if(!e)throw s;var t=o.default();return r.useEffect((function(){return e.history.listen(t)}),[e]),e}},function(e,t,n){"use strict";function r(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";var r=n(2),i=n(198),o=n.n(i),a=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===s}(e)}(e)};var s="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function u(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function c(e,t,n){return e.concat(t).map((function(e){return u(e,n)}))}function l(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||c,n.isMergeableObject=n.isMergeableObject||a;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):function(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach((function(t){r[t]=u(e[t],n)})),Object.keys(t).forEach((function(i){n.isMergeableObject(t[i])&&e[i]?r[i]=l(e[i],t[i],n):r[i]=u(t[i],n)})),r}(e,t,n):u(t,n)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return l(e,n,t)}),{})};var f=l,d=n(111),p=d.a.Symbol,h=Object.prototype,v=h.hasOwnProperty,g=h.toString,m=p?p.toStringTag:void 0;var y=function(e){var t=v.call(e,m),n=e[m];try{e[m]=void 0;var r=!0}catch(e){}var i=g.call(e);return r&&(t?e[m]=n:delete e[m]),i},b=Object.prototype.toString;var x=function(e){return b.call(e)},w="[object Null]",_="[object Undefined]",S=p?p.toStringTag:void 0;var O=function(e){return null==e?void 0===e?_:w:S&&S in Object(e)?y(e):x(e)};var k=function(e,t){return function(n){return e(t(n))}},E=k(Object.getPrototypeOf,Object);function j(e){return(j="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)}var T=function(e){return null!=e&&"object"==j(e)},C="[object Object]",A=Function.prototype,P=Object.prototype,M=A.toString,I=P.hasOwnProperty,R=M.call(Object);var D=function(e){if(!T(e)||O(e)!=C)return!1;var t=E(e);if(null===t)return!0;var n=I.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&M.call(n)==R};var L=function(){this.__data__=[],this.size=0};var N=function(e,t){return e===t||e!=e&&t!=t};var F=function(e,t){for(var n=e.length;n--;)if(N(e[n][0],t))return n;return-1},B=Array.prototype.splice;var U=function(e){var t=this.__data__,n=F(t,e);return!(n<0)&&(n==t.length-1?t.pop():B.call(t,n,1),--this.size,!0)};var z=function(e){var t=this.__data__,n=F(t,e);return n<0?void 0:t[n][1]};var V=function(e){return F(this.__data__,e)>-1};var H=function(e,t){var n=this.__data__,r=F(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function W(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])}}W.prototype.clear=L,W.prototype.delete=U,W.prototype.get=z,W.prototype.has=V,W.prototype.set=H;var q=W;var G=function(){this.__data__=new q,this.size=0};var Y=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var K=function(e){return this.__data__.get(e)};var $=function(e){return this.__data__.has(e)};function X(e){return(X="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)}var Q=function(e){var t=X(e);return null!=e&&("object"==t||"function"==t)},Z="[object AsyncFunction]",J="[object Function]",ee="[object GeneratorFunction]",te="[object Proxy]";var ne,re=function(e){if(!Q(e))return!1;var t=O(e);return t==J||t==ee||t==Z||t==te},ie=d.a["__core-js_shared__"],oe=(ne=/[^.]+$/.exec(ie&&ie.keys&&ie.keys.IE_PROTO||""))?"Symbol(src)_1."+ne:"";var ae=function(e){return!!oe&&oe in e},se=Function.prototype.toString;var ue=function(e){if(null!=e){try{return se.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ce=/^\[object .+?Constructor\]$/,le=Function.prototype,fe=Object.prototype,de=le.toString,pe=fe.hasOwnProperty,he=RegExp("^"+de.call(pe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var ve=function(e){return!(!Q(e)||ae(e))&&(re(e)?he:ce).test(ue(e))};var ge=function(e,t){return null==e?void 0:e[t]};var me=function(e,t){var n=ge(e,t);return ve(n)?n:void 0},ye=me(d.a,"Map"),be=me(Object,"create");var xe=function(){this.__data__=be?be(null):{},this.size=0};var we=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},_e="__lodash_hash_undefined__",Se=Object.prototype.hasOwnProperty;var Oe=function(e){var t=this.__data__;if(be){var n=t[e];return n===_e?void 0:n}return Se.call(t,e)?t[e]:void 0},ke=Object.prototype.hasOwnProperty;var Ee=function(e){var t=this.__data__;return be?void 0!==t[e]:ke.call(t,e)},je="__lodash_hash_undefined__";var Te=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=be&&void 0===t?je:t,this};function Ce(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])}}Ce.prototype.clear=xe,Ce.prototype.delete=we,Ce.prototype.get=Oe,Ce.prototype.has=Ee,Ce.prototype.set=Te;var Ae=Ce;var Pe=function(){this.size=0,this.__data__={hash:new Ae,map:new(ye||q),string:new Ae}};function Me(e){return(Me="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)}var Ie=function(e){var t=Me(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Re=function(e,t){var n=e.__data__;return Ie(t)?n["string"==typeof t?"string":"hash"]:n.map};var De=function(e){var t=Re(this,e).delete(e);return this.size-=t?1:0,t};var Le=function(e){return Re(this,e).get(e)};var Ne=function(e){return Re(this,e).has(e)};var Fe=function(e,t){var n=Re(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Be(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])}}Be.prototype.clear=Pe,Be.prototype.delete=De,Be.prototype.get=Le,Be.prototype.has=Ne,Be.prototype.set=Fe;var Ue=Be,ze=200;var Ve=function(e,t){var n=this.__data__;if(n instanceof q){var r=n.__data__;if(!ye||r.length<ze-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ue(r)}return n.set(e,t),this.size=n.size,this};function He(e){var t=this.__data__=new q(e);this.size=t.size}He.prototype.clear=G,He.prototype.delete=Y,He.prototype.get=K,He.prototype.has=$,He.prototype.set=Ve;var We=He;var qe=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},Ge=function(){try{var e=me(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var Ye=function(e,t,n){"__proto__"==t&&Ge?Ge(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Ke=Object.prototype.hasOwnProperty;var $e=function(e,t,n){var r=e[t];Ke.call(e,t)&&N(r,n)&&(void 0!==n||t in e)||Ye(e,t,n)};var Xe=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],u=r?r(n[s],e[s],s,n,e):void 0;void 0===u&&(u=e[s]),i?Ye(n,s,u):$e(n,s,u)}return n};var Qe=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},Ze="[object Arguments]";var Je=function(e){return T(e)&&O(e)==Ze},et=Object.prototype,tt=et.hasOwnProperty,nt=et.propertyIsEnumerable,rt=Je(function(){return arguments}())?Je:function(e){return T(e)&&tt.call(e,"callee")&&!nt.call(e,"callee")},it=Array.isArray,ot=n(508);function at(e){return(at="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)}var st=9007199254740991,ut=/^(?:0|[1-9]\d*)$/;var ct=function(e,t){var n=at(e);return!!(t=null==t?st:t)&&("number"==n||"symbol"!=n&&ut.test(e))&&e>-1&&e%1==0&&e<t},lt=9007199254740991;var ft=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=lt},dt={};dt["[object Float32Array]"]=dt["[object Float64Array]"]=dt["[object Int8Array]"]=dt["[object Int16Array]"]=dt["[object Int32Array]"]=dt["[object Uint8Array]"]=dt["[object Uint8ClampedArray]"]=dt["[object Uint16Array]"]=dt["[object Uint32Array]"]=!0,dt["[object Arguments]"]=dt["[object Array]"]=dt["[object ArrayBuffer]"]=dt["[object Boolean]"]=dt["[object DataView]"]=dt["[object Date]"]=dt["[object Error]"]=dt["[object Function]"]=dt["[object Map]"]=dt["[object Number]"]=dt["[object Object]"]=dt["[object RegExp]"]=dt["[object Set]"]=dt["[object String]"]=dt["[object WeakMap]"]=!1;var pt=function(e){return T(e)&&ft(e.length)&&!!dt[O(e)]};var ht=function(e){return function(t){return e(t)}},vt=n(247),gt=vt.a&&vt.a.isTypedArray,mt=gt?ht(gt):pt,yt=Object.prototype.hasOwnProperty;var bt=function(e,t){var n=it(e),r=!n&&rt(e),i=!n&&!r&&Object(ot.a)(e),o=!n&&!r&&!i&&mt(e),a=n||r||i||o,s=a?Qe(e.length,String):[],u=s.length;for(var c in e)!t&&!yt.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ct(c,u))||s.push(c);return s},xt=Object.prototype;var wt=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||xt)},_t=k(Object.keys,Object),St=Object.prototype.hasOwnProperty;var Ot=function(e){if(!wt(e))return _t(e);var t=[];for(var n in Object(e))St.call(e,n)&&"constructor"!=n&&t.push(n);return t};var kt=function(e){return null!=e&&ft(e.length)&&!re(e)};var Et=function(e){return kt(e)?bt(e):Ot(e)};var jt=function(e,t){return e&&Xe(t,Et(t),e)};var Tt=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},Ct=Object.prototype.hasOwnProperty;var At=function(e){if(!Q(e))return Tt(e);var t=wt(e),n=[];for(var r in e)("constructor"!=r||!t&&Ct.call(e,r))&&n.push(r);return n};var Pt=function(e){return kt(e)?bt(e,!0):At(e)};var Mt=function(e,t){return e&&Xe(t,Pt(t),e)},It=n(855);var Rt=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t};var Dt=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};var Lt=function(){return[]},Nt=Object.prototype.propertyIsEnumerable,Ft=Object.getOwnPropertySymbols,Bt=Ft?function(e){return null==e?[]:(e=Object(e),Dt(Ft(e),(function(t){return Nt.call(e,t)})))}:Lt;var Ut=function(e,t){return Xe(e,Bt(e),t)};var zt=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e},Vt=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)zt(t,Bt(e)),e=E(e);return t}:Lt;var Ht=function(e,t){return Xe(e,Vt(e),t)};var Wt=function(e,t,n){var r=t(e);return it(e)?r:zt(r,n(e))};var qt=function(e){return Wt(e,Et,Bt)};var Gt=function(e){return Wt(e,Pt,Vt)},Yt=me(d.a,"DataView"),Kt=me(d.a,"Promise"),$t=me(d.a,"Set"),Xt=me(d.a,"WeakMap"),Qt=ue(Yt),Zt=ue(ye),Jt=ue(Kt),en=ue($t),tn=ue(Xt),nn=O;(Yt&&"[object DataView]"!=nn(new Yt(new ArrayBuffer(1)))||ye&&"[object Map]"!=nn(new ye)||Kt&&"[object Promise]"!=nn(Kt.resolve())||$t&&"[object Set]"!=nn(new $t)||Xt&&"[object WeakMap]"!=nn(new Xt))&&(nn=function(e){var t=O(e),n="[object Object]"==t?e.constructor:void 0,r=n?ue(n):"";if(r)switch(r){case Qt:return"[object DataView]";case Zt:return"[object Map]";case Jt:return"[object Promise]";case en:return"[object Set]";case tn:return"[object WeakMap]"}return t});var rn=nn,on=Object.prototype.hasOwnProperty;var an=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&on.call(e,"index")&&(n.index=e.index,n.input=e.input),n},sn=d.a.Uint8Array;var un=function(e){var t=new e.constructor(e.byteLength);return new sn(t).set(new sn(e)),t};var cn=function(e,t){var n=t?un(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},ln=/\w*$/;var fn=function(e){var t=new e.constructor(e.source,ln.exec(e));return t.lastIndex=e.lastIndex,t},dn=p?p.prototype:void 0,pn=dn?dn.valueOf:void 0;var hn=function(e){return pn?Object(pn.call(e)):{}};var vn=function(e,t){var n=t?un(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},gn="[object Boolean]",mn="[object Date]",yn="[object Map]",bn="[object Number]",xn="[object RegExp]",wn="[object Set]",_n="[object String]",Sn="[object Symbol]",On="[object ArrayBuffer]",kn="[object DataView]",En="[object Float32Array]",jn="[object Float64Array]",Tn="[object Int8Array]",Cn="[object Int16Array]",An="[object Int32Array]",Pn="[object Uint8Array]",Mn="[object Uint8ClampedArray]",In="[object Uint16Array]",Rn="[object Uint32Array]";var Dn=function(e,t,n){var r=e.constructor;switch(t){case On:return un(e);case gn:case mn:return new r(+e);case kn:return cn(e,n);case En:case jn:case Tn:case Cn:case An:case Pn:case Mn:case In:case Rn:return vn(e,n);case yn:return new r;case bn:case _n:return new r(e);case xn:return fn(e);case wn:return new r;case Sn:return hn(e)}},Ln=Object.create,Nn=function(){function e(){}return function(t){if(!Q(t))return{};if(Ln)return Ln(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var Fn=function(e){return"function"!=typeof e.constructor||wt(e)?{}:Nn(E(e))},Bn="[object Map]";var Un=function(e){return T(e)&&rn(e)==Bn},zn=vt.a&&vt.a.isMap,Vn=zn?ht(zn):Un,Hn="[object Set]";var Wn=function(e){return T(e)&&rn(e)==Hn},qn=vt.a&&vt.a.isSet,Gn=qn?ht(qn):Wn,Yn=1,Kn=2,$n=4,Xn="[object Arguments]",Qn="[object Function]",Zn="[object GeneratorFunction]",Jn="[object Object]",er={};er[Xn]=er["[object Array]"]=er["[object ArrayBuffer]"]=er["[object DataView]"]=er["[object Boolean]"]=er["[object Date]"]=er["[object Float32Array]"]=er["[object Float64Array]"]=er["[object Int8Array]"]=er["[object Int16Array]"]=er["[object Int32Array]"]=er["[object Map]"]=er["[object Number]"]=er[Jn]=er["[object RegExp]"]=er["[object Set]"]=er["[object String]"]=er["[object Symbol]"]=er["[object Uint8Array]"]=er["[object Uint8ClampedArray]"]=er["[object Uint16Array]"]=er["[object Uint32Array]"]=!0,er["[object Error]"]=er[Qn]=er["[object WeakMap]"]=!1;var tr=function e(t,n,r,i,o,a){var s,u=n&Yn,c=n&Kn,l=n&$n;if(r&&(s=o?r(t,i,o,a):r(t)),void 0!==s)return s;if(!Q(t))return t;var f=it(t);if(f){if(s=an(t),!u)return Rt(t,s)}else{var d=rn(t),p=d==Qn||d==Zn;if(Object(ot.a)(t))return Object(It.a)(t,u);if(d==Jn||d==Xn||p&&!o){if(s=c||p?{}:Fn(t),!u)return c?Ht(t,Mt(s,t)):Ut(t,jt(s,t))}else{if(!er[d])return o?t:{};s=Dn(t,d,u)}}a||(a=new We);var h=a.get(t);if(h)return h;a.set(t,s),Gn(t)?t.forEach((function(i){s.add(e(i,n,r,i,t,a))})):Vn(t)&&t.forEach((function(i,o){s.set(o,e(i,n,r,o,t,a))}));var v=f?void 0:(l?c?Gt:qt:c?Pt:Et)(t);return qe(v||t,(function(i,o){v&&(i=t[o=i]),$e(s,o,e(i,n,r,o,t,a))})),s},nr=4;var rr=function(e){return tr(e,nr)};var ir=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 or(e){return(or="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)}var ar="[object Symbol]";var sr=function(e){return"symbol"==or(e)||T(e)&&O(e)==ar},ur="Expected a function";function cr(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(ur);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(cr.Cache||Ue),n}cr.Cache=Ue;var lr=cr,fr=500;var dr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,pr=/\\(\\)?/g,hr=function(e){var t=lr(e,(function(e){return n.size===fr&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(dr,(function(e,n,r,i){t.push(r?i.replace(pr,"$1"):n||e)})),t})),vr=1/0;var gr=function(e){if("string"==typeof e||sr(e))return e;var t=e+"";return"0"==t&&1/e==-vr?"-0":t},mr=1/0,yr=p?p.prototype:void 0,br=yr?yr.toString:void 0;var xr=function e(t){if("string"==typeof t)return t;if(it(t))return ir(t,e)+"";if(sr(t))return br?br.call(t):"";var n=t+"";return"0"==n&&1/t==-mr?"-0":n};var wr=function(e){return null==e?"":xr(e)};var _r=function(e){return it(e)?ir(e,gr):sr(e)?[e]:Rt(hr(wr(e)))},Sr=n(172),Or=n(318),kr=n.n(Or),Er=1,jr=4;var Tr=function(e){return tr(e,Er|jr)};function Cr(e){return(Cr="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 Ar(){return(Ar=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 Pr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Mr(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}function Ir(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 ni})),n.d(t,"b",(function(){return fi})),n.d(t,"c",(function(){return ri})),n.d(t,"d",(function(){return Zr})),n.d(t,"e",(function(){return qr})),n.d(t,"f",(function(){return Qr})),n.d(t,"g",(function(){return Yr}));var Rr=function(e){return Array.isArray(e)&&0===e.length},Dr=function(e){return"function"==typeof e},Lr=function(e){return null!==e&&"object"===Cr(e)},Nr=function(e){return String(Math.floor(Number(e)))===e},Fr=function(e){return"[object String]"===Object.prototype.toString.call(e)},Br=function(e){return 0===r.Children.count(e)},Ur=function(e){return Lr(e)&&Dr(e.then)};function zr(e,t,n,r){void 0===r&&(r=0);for(var i=_r(t);e&&r<i.length;)e=e[i[r++]];return void 0===e?n:e}function Vr(e,t,n){for(var r=rr(e),i=r,o=0,a=_r(t);o<a.length-1;o++){var s=a[o],u=zr(e,a.slice(0,o+1));if(u&&(Lr(u)||Array.isArray(u)))i=i[s]=rr(u);else{var c=a[o+1];i=i[s]=Nr(c)&&Number(c)>=0?[]:{}}}return(0===o?e:i)[a[o]]===n?e:(void 0===n?delete i[a[o]]:i[a[o]]=n,0===o&&void 0===n&&delete r[a[o]],r)}function Hr(e,t,n,r){void 0===n&&(n=new WeakMap),void 0===r&&(r={});for(var i=0,o=Object.keys(e);i<o.length;i++){var a=o[i],s=e[a];Lr(s)?n.get(s)||(n.set(s,!0),r[a]=Array.isArray(s)?[]:{},Hr(s,t,n,r[a])):r[a]=t}return r}var Wr=Object(r.createContext)(void 0);Wr.displayName="FormikContext";var qr=Wr.Provider,Gr=Wr.Consumer;function Yr(){var e=Object(r.useContext)(Wr);return e||Object(Sr.a)(!1),e}function Kr(e,t){switch(t.type){case"SET_VALUES":return Ar({},e,{values:t.payload});case"SET_TOUCHED":return Ar({},e,{touched:t.payload});case"SET_ERRORS":return o()(e.errors,t.payload)?e:Ar({},e,{errors:t.payload});case"SET_STATUS":return Ar({},e,{status:t.payload});case"SET_ISSUBMITTING":return Ar({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Ar({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Ar({},e,{values:Vr(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Ar({},e,{touched:Vr(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Ar({},e,{errors:Vr(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Ar({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Ar({},e,{touched:Hr(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return Ar({},e,{isSubmitting:!1});default:return e}}var $r={},Xr={};function Qr(e){var t=e.validateOnChange,n=void 0===t||t,i=e.validateOnBlur,a=void 0===i||i,s=e.validateOnMount,u=void 0!==s&&s,c=e.isInitialValid,l=e.enableReinitialize,d=void 0!==l&&l,p=e.onSubmit,h=Mr(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),v=Ar({validateOnChange:n,validateOnBlur:a,validateOnMount:u,onSubmit:p},h),g=Object(r.useRef)(v.initialValues),m=Object(r.useRef)(v.initialErrors||$r),y=Object(r.useRef)(v.initialTouched||Xr),b=Object(r.useRef)(v.initialStatus),x=Object(r.useRef)(!1),w=Object(r.useRef)({});Object(r.useEffect)((function(){return x.current=!0,function(){x.current=!1}}),[]);var _=Object(r.useReducer)(Kr,{values:v.initialValues,errors:v.initialErrors||$r,touched:v.initialTouched||Xr,status:v.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),S=_[0],O=_[1],k=Object(r.useCallback)((function(e,t){return new Promise((function(n,r){var i=v.validate(e,t);null==i?n($r):Ur(i)?i.then((function(e){n(e||$r)}),(function(e){r(e)})):n(i)}))}),[v.validate]),E=Object(r.useCallback)((function(e,t){var n=v.validationSchema,r=Dr(n)?n(t):n,i=t&&r.validateAt?r.validateAt(t,e):function(e,t,n,r){void 0===n&&(n=!1);void 0===r&&(r={});var i=function e(t){var n=Array.isArray(t)?[]:{};for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var i=String(r);!0===Array.isArray(t[i])?n[i]=t[i].map((function(t){return!0===Array.isArray(t)||D(t)?e(t):""!==t?t:void 0})):D(t[i])?n[i]=e(t[i]):n[i]=""!==t[i]?t[i]:void 0}return n}(e);return t[n?"validateSync":"validate"](i,{abortEarly:!1,context:r})}(e,r);return new Promise((function(e,t){i.then((function(){e($r)}),(function(n){"ValidationError"===n.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return Vr(t,e.path,e.message);var n=e.inner,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}var a=o;zr(t,a.path)||(t=Vr(t,a.path,a.message))}}return t}(n)):t(n)}))}))}),[v.validationSchema]),j=Object(r.useCallback)((function(e,t){return new Promise((function(n){return n(w.current[e].validate(t))}))}),[]),T=Object(r.useCallback)((function(e){var t=Object.keys(w.current).filter((function(e){return Dr(w.current[e].validate)})),n=t.length>0?t.map((function(t){return j(t,zr(e,t))})):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(n).then((function(e){return e.reduce((function(e,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n?e:(n&&(e=Vr(e,t[r],n)),e)}),{})}))}),[j]),C=Object(r.useCallback)((function(e){return Promise.all([T(e),v.validationSchema?E(e):{},v.validate?k(e):{}]).then((function(e){var t=e[0],n=e[1],r=e[2];return f.all([t,n,r],{arrayMerge:Jr})}))}),[v.validate,v.validationSchema,T,k,E]),A=ti((function(e){return void 0===e&&(e=S.values),O({type:"SET_ISVALIDATING",payload:!0}),C(e).then((function(e){return x.current&&(O({type:"SET_ISVALIDATING",payload:!1}),O({type:"SET_ERRORS",payload:e})),e}))}));Object(r.useEffect)((function(){u&&!0===x.current&&o()(g.current,v.initialValues)&&A(g.current)}),[u,A]);var P=Object(r.useCallback)((function(e){var t=e&&e.values?e.values:g.current,n=e&&e.errors?e.errors:m.current?m.current:v.initialErrors||{},r=e&&e.touched?e.touched:y.current?y.current:v.initialTouched||{},i=e&&e.status?e.status:b.current?b.current:v.initialStatus;g.current=t,m.current=n,y.current=r,b.current=i;var o=function(){O({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:i,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(v.onReset){var a=v.onReset(S.values,Q);Ur(a)?a.then(o):o()}else o()}),[v.initialErrors,v.initialStatus,v.initialTouched]);Object(r.useEffect)((function(){!0!==x.current||o()(g.current,v.initialValues)||(d&&(g.current=v.initialValues,P()),u&&A(g.current))}),[d,v.initialValues,P,u,A]),Object(r.useEffect)((function(){d&&!0===x.current&&!o()(m.current,v.initialErrors)&&(m.current=v.initialErrors||$r,O({type:"SET_ERRORS",payload:v.initialErrors||$r}))}),[d,v.initialErrors]),Object(r.useEffect)((function(){d&&!0===x.current&&!o()(y.current,v.initialTouched)&&(y.current=v.initialTouched||Xr,O({type:"SET_TOUCHED",payload:v.initialTouched||Xr}))}),[d,v.initialTouched]),Object(r.useEffect)((function(){d&&!0===x.current&&!o()(b.current,v.initialStatus)&&(b.current=v.initialStatus,O({type:"SET_STATUS",payload:v.initialStatus}))}),[d,v.initialStatus,v.initialTouched]);var M=ti((function(e){if(w.current[e]&&Dr(w.current[e].validate)){var t=zr(S.values,e),n=w.current[e].validate(t);return Ur(n)?(O({type:"SET_ISVALIDATING",payload:!0}),n.then((function(e){return e})).then((function(t){O({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),O({type:"SET_ISVALIDATING",payload:!1})}))):(O({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return v.validationSchema?(O({type:"SET_ISVALIDATING",payload:!0}),E(S.values,e).then((function(e){return e})).then((function(t){O({type:"SET_FIELD_ERROR",payload:{field:e,value:t[e]}}),O({type:"SET_ISVALIDATING",payload:!1})}))):Promise.resolve()})),I=Object(r.useCallback)((function(e,t){var n=t.validate;w.current[e]={validate:n}}),[]),R=Object(r.useCallback)((function(e){delete w.current[e]}),[]),L=ti((function(e,t){return O({type:"SET_TOUCHED",payload:e}),(void 0===t?a:t)?A(S.values):Promise.resolve()})),N=Object(r.useCallback)((function(e){O({type:"SET_ERRORS",payload:e})}),[]),F=ti((function(e,t){var r=Dr(e)?e(S.values):e;return O({type:"SET_VALUES",payload:r}),(void 0===t?n:t)?A(r):Promise.resolve()})),B=Object(r.useCallback)((function(e,t){O({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})}),[]),U=ti((function(e,t,r){return O({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===r?n:r)?A(Vr(S.values,e,t)):Promise.resolve()})),z=Object(r.useCallback)((function(e,t){var n,r=t,i=e;if(!Fr(e)){e.persist&&e.persist();var o=e.target?e.target:e.currentTarget,a=o.type,s=o.name,u=o.id,c=o.value,l=o.checked,f=(o.outerHTML,o.options),d=o.multiple;r=t||(s||u),i=/number|range/.test(a)?(n=parseFloat(c),isNaN(n)?"":n):/checkbox/.test(a)?function(e,t,n){if("boolean"==typeof e)return Boolean(t);var r=[],i=!1,o=-1;if(Array.isArray(e))r=e,o=e.indexOf(n),i=o>=0;else if(!n||"true"==n||"false"==n)return Boolean(t);if(t&&n&&!i)return r.concat(n);if(!i)return r;return r.slice(0,o).concat(r.slice(o+1))}(zr(S.values,r),l,c):f&&d?function(e){return Array.from(e).filter((function(e){return e.selected})).map((function(e){return e.value}))}(f):c}r&&U(r,i)}),[U,S.values]),V=ti((function(e){if(Fr(e))return function(t){return z(t,e)};z(e)})),H=ti((function(e,t,n){return void 0===t&&(t=!0),O({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?a:n)?A(S.values):Promise.resolve()})),W=Object(r.useCallback)((function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,i=n.id,o=(n.outerHTML,t||(r||i));H(o,!0)}),[H]),q=ti((function(e){if(Fr(e))return function(t){return W(t,e)};W(e)})),G=Object(r.useCallback)((function(e){Dr(e)?O({type:"SET_FORMIK_STATE",payload:e}):O({type:"SET_FORMIK_STATE",payload:function(){return e}})}),[]),Y=Object(r.useCallback)((function(e){O({type:"SET_STATUS",payload:e})}),[]),K=Object(r.useCallback)((function(e){O({type:"SET_ISSUBMITTING",payload:e})}),[]),$=ti((function(){return O({type:"SUBMIT_ATTEMPT"}),A().then((function(e){var t=e instanceof Error;if(!t&&0===Object.keys(e).length){var n;try{if(void 0===(n=Z()))return}catch(e){throw e}return Promise.resolve(n).then((function(e){return x.current&&O({type:"SUBMIT_SUCCESS"}),e})).catch((function(e){if(x.current)throw O({type:"SUBMIT_FAILURE"}),e}))}if(x.current&&(O({type:"SUBMIT_FAILURE"}),t))throw e}))})),X=ti((function(e){e&&e.preventDefault&&Dr(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&Dr(e.stopPropagation)&&e.stopPropagation(),$().catch((function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)}))})),Q={resetForm:P,validateForm:A,validateField:M,setErrors:N,setFieldError:B,setFieldTouched:H,setFieldValue:U,setStatus:Y,setSubmitting:K,setTouched:L,setValues:F,setFormikState:G,submitForm:$},Z=ti((function(){return p(S.values,Q)})),J=ti((function(e){e&&e.preventDefault&&Dr(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&Dr(e.stopPropagation)&&e.stopPropagation(),P()})),ee=Object(r.useCallback)((function(e){return{value:zr(S.values,e),error:zr(S.errors,e),touched:!!zr(S.touched,e),initialValue:zr(g.current,e),initialTouched:!!zr(y.current,e),initialError:zr(m.current,e)}}),[S.errors,S.touched,S.values]),te=Object(r.useCallback)((function(e){return{setValue:function(t,n){return U(e,t,n)},setTouched:function(t,n){return H(e,t,n)},setError:function(t){return B(e,t)}}}),[U,H,B]),ne=Object(r.useCallback)((function(e){var t=Lr(e),n=t?e.name:e,r=zr(S.values,n),i={name:n,value:r,onChange:V,onBlur:q};if(t){var o=e.type,a=e.value,s=e.as,u=e.multiple;"checkbox"===o?void 0===a?i.checked=!!r:(i.checked=!(!Array.isArray(r)||!~r.indexOf(a)),i.value=a):"radio"===o?(i.checked=r===a,i.value=a):"select"===s&&u&&(i.value=i.value||[],i.multiple=!0)}return i}),[q,V,S.values]),re=Object(r.useMemo)((function(){return!o()(g.current,S.values)}),[g.current,S.values]),ie=Object(r.useMemo)((function(){return void 0!==c?re?S.errors&&0===Object.keys(S.errors).length:!1!==c&&Dr(c)?c(v):c:S.errors&&0===Object.keys(S.errors).length}),[c,re,S.errors,v]);return Ar({},S,{initialValues:g.current,initialErrors:m.current,initialTouched:y.current,initialStatus:b.current,handleBlur:q,handleChange:V,handleReset:J,handleSubmit:X,resetForm:P,setErrors:N,setFormikState:G,setFieldTouched:H,setFieldValue:U,setFieldError:B,setStatus:Y,setSubmitting:K,setTouched:L,setValues:F,submitForm:$,validateForm:A,validateField:M,isValid:ie,dirty:re,unregisterField:R,registerField:I,getFieldProps:ne,getFieldMeta:ee,getFieldHelpers:te,validateOnBlur:a,validateOnChange:n,validateOnMount:u})}function Zr(e){var t=Qr(e),n=e.component,i=e.children,o=e.render,a=e.innerRef;return Object(r.useImperativeHandle)(a,(function(){return t})),Object(r.createElement)(qr,{value:t},n?Object(r.createElement)(n,t):o?o(t):i?Dr(i)?i(t):Br(i)?null:r.Children.only(i):null)}function Jr(e,t,n){var r=e.slice();return t.forEach((function(t,i){if(void 0===r[i]){var o=!1!==n.clone&&n.isMergeableObject(t);r[i]=o?f(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[i]=f(e[i],t,n):-1===e.indexOf(t)&&r.push(t)})),r}var ei="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect;function ti(e){var t=Object(r.useRef)(e);return ei((function(){t.current=e})),Object(r.useCallback)((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.current.apply(void 0,n)}),[])}function ni(e){var t=e.validate,n=e.name,i=e.render,o=e.children,a=e.as,s=e.component,u=Mr(e,["validate","name","render","children","as","component"]),c=Mr(Yr(),["validate","validationSchema"]);var l=c.registerField,f=c.unregisterField;Object(r.useEffect)((function(){return l(n,{validate:t}),function(){f(n)}}),[l,f,n,t]);var d=c.getFieldProps(Ar({name:n},u)),p=c.getFieldMeta(n),h={field:d,form:c};if(i)return i(Ar({},h,{meta:p}));if(Dr(o))return o(Ar({},h,{meta:p}));if(s){if("string"==typeof s){var v=u.innerRef,g=Mr(u,["innerRef"]);return(Object(r.createElement)(s,Ar({ref:v},d,g),o))}return(Object(r.createElement)(s,Ar({field:d,form:c},u),o))}var m=a||"input";if("string"==typeof m){var y=u.innerRef,b=Mr(u,["innerRef"]);return(Object(r.createElement)(m,Ar({ref:y},d,b),o))}return(Object(r.createElement)(m,Ar({},d,u),o))}var ri=Object(r.forwardRef)((function(e,t){var n=e.action,i=Mr(e,["action"]),o=null!=n?n:"#",a=Yr(),s=a.handleReset,u=a.handleSubmit;return Object(r.createElement)("form",Object.assign({onSubmit:u,ref:t,onReset:s,action:o},i))}));function ii(e){var t=function(t){return Object(r.createElement)(Gr,null,(function(n){return n||Object(Sr.a)(!1),Object(r.createElement)(e,Object.assign({},t,{formik:n}))}))},n=e.displayName||e.name||e.constructor&&e.constructor.name||"Component";return t.WrappedComponent=e,t.displayName="FormikConnect("+n+")",kr()(t,e)}ri.displayName="Form";var oi=function(e,t,n){var r=ci(e),i=r[t];return r.splice(t,1),r.splice(n,0,i),r},ai=function(e,t,n){var r=ci(e),i=r[t];return r[t]=r[n],r[n]=i,r},si=function(e,t,n){var r=ci(e);return r.splice(t,0,n),r},ui=function(e,t,n){var r=ci(e);return r[t]=n,r},ci=function(e){if(e){if(Array.isArray(e))return[].concat(e);var t=Object.keys(e).map((function(e){return parseInt(e)})).reduce((function(e,t){return t>e?t:e}),0);return Array.from(Ar({},e,{length:t+1}))}return[]},li=function(e){function t(t){var n;return(n=e.call(this,t)||this).updateArrayField=function(e,t,r){var i=n.props,o=i.name;(0,i.formik.setFormikState)((function(n){var i="function"==typeof r?r:e,a="function"==typeof t?t:e,s=Vr(n.values,o,e(zr(n.values,o))),u=r?i(zr(n.errors,o)):void 0,c=t?a(zr(n.touched,o)):void 0;return Rr(u)&&(u=void 0),Rr(c)&&(c=void 0),Ar({},n,{values:s,errors:r?Vr(n.errors,o,u):n.errors,touched:t?Vr(n.touched,o,c):n.touched})}))},n.push=function(e){return n.updateArrayField((function(t){return[].concat(ci(t),[Tr(e)])}),!1,!1)},n.handlePush=function(e){return function(){return n.push(e)}},n.swap=function(e,t){return n.updateArrayField((function(n){return ai(n,e,t)}),!0,!0)},n.handleSwap=function(e,t){return function(){return n.swap(e,t)}},n.move=function(e,t){return n.updateArrayField((function(n){return oi(n,e,t)}),!0,!0)},n.handleMove=function(e,t){return function(){return n.move(e,t)}},n.insert=function(e,t){return n.updateArrayField((function(n){return si(n,e,t)}),(function(t){return si(t,e,null)}),(function(t){return si(t,e,null)}))},n.handleInsert=function(e,t){return function(){return n.insert(e,t)}},n.replace=function(e,t){return n.updateArrayField((function(n){return ui(n,e,t)}),!1,!1)},n.handleReplace=function(e,t){return function(){return n.replace(e,t)}},n.unshift=function(e){var t=-1;return n.updateArrayField((function(n){var r=n?[e].concat(n):[e];return t<0&&(t=r.length),r}),(function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n}),(function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n})),t},n.handleUnshift=function(e){return function(){return n.unshift(e)}},n.handleRemove=function(e){return function(){return n.remove(e)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(Ir(n)),n.pop=n.pop.bind(Ir(n)),n}Pr(t,e);var n=t.prototype;return n.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!o()(zr(e.formik.values,e.name),zr(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(e){var t;return this.updateArrayField((function(n){var r=n?ci(n):[];return t||(t=r[e]),Dr(r.splice)&&r.splice(e,1),r}),!0,!0),t},n.pop=function(){var e;return this.updateArrayField((function(t){var n=t;return e||(e=n&&n.pop&&n.pop()),n}),!0,!0),e},n.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,n=t.component,i=t.render,o=t.children,a=t.name,s=Ar({},e,{form:Mr(t.formik,["validate","validationSchema"]),name:a});return n?Object(r.createElement)(n,s):i?i(s):o?"function"==typeof o?o(s):Br(o)?null:r.Children.only(o):null},t}(r.Component);li.defaultProps={validateOnChange:!0};var fi=ii(li);r.Component,r.Component},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"e",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return u})),n.d(t,"d",(function(){return c}));var r=n(2),i=n(880),o=function(){var e=r.useContext(i.b);if(null===e)throw new Error("MUI: Can not find utils in context. It looks like you forgot to wrap your component in LocalizationProvider, or pass dateAdapter prop directly.");return e},a=function(){return o().utils},s=function(){return o().defaultDates},u=function(){return o().localeText},c=function(){var e=a();return r.useRef(e.date()).current}},function(e,t,n){"use strict";var r=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},i=new function(){this.browser=new r,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(i.wxa=!0,i.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?i.worker=!0:"undefined"==typeof navigator?(i.node=!0,i.svgSupported=!0):function(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]);i&&(n.ie=!0,n.version=i[1]);o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18);a&&(n.weChat=!0);t.svgSupported="undefined"!=typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported="undefined"!=typeof document;var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,i),t.a=i},,,,,function(e,t,n){e.exports=n(1178)()},,function(e,t,n){"use strict";t.a={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}}},function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():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 s}));var r=n(6),i=n(2),o=n(486),a=n(5);function s(e,t){var n=function(n,i){return Object(a.jsx)(o.a,Object(r.a)({"data-testid":"".concat(t,"Icon"),ref:i},n,{children:e}))};return n.muiName=o.a.muiName,i.memo(i.forwardRef(n))}},,function(e,t,n){"use strict";n.r(t),n.d(t,"parse",(function(){return g})),n.d(t,"lift",(function(){return y})),n.d(t,"toHex",(function(){return b})),n.d(t,"fastLerp",(function(){return x})),n.d(t,"fastMapToColor",(function(){return w})),n.d(t,"lerp",(function(){return _})),n.d(t,"mapToColor",(function(){return S})),n.d(t,"modifyHSL",(function(){return O})),n.d(t,"modifyAlpha",(function(){return k})),n.d(t,"stringify",(function(){return E})),n.d(t,"lum",(function(){return j})),n.d(t,"random",(function(){return T}));var r=n(216),i={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function o(e){return(e=Math.round(e))<0?0:e>255?255:e}function a(e){return e<0?0:e>1?1:e}function s(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?o(parseFloat(t)/100*255):o(parseInt(t,10))}function u(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?a(parseFloat(t)/100):a(parseFloat(t))}function c(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function l(e,t,n){return e+(t-e)*n}function f(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function d(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var p=new r.a(20),h=null;function v(e,t){h&&d(h,t),h=p.put(e,h||t.slice())}function g(e,t){if(e){t=t||[];var n=p.get(e);if(n)return d(t,n);var r=(e+="").replace(/ /g,"").toLowerCase();if(r in i)return d(t,i[r]),v(e,t),t;var o,a=r.length;if("#"===r.charAt(0))return 4===a||5===a?(o=parseInt(r.slice(1,4),16))>=0&&o<=4095?(f(t,(3840&o)>>4|(3840&o)>>8,240&o|(240&o)>>4,15&o|(15&o)<<4,5===a?parseInt(r.slice(4),16)/15:1),v(e,t),t):void f(t,0,0,0,1):7===a||9===a?(o=parseInt(r.slice(1,7),16))>=0&&o<=16777215?(f(t,(16711680&o)>>16,(65280&o)>>8,255&o,9===a?parseInt(r.slice(7),16)/255:1),v(e,t),t):void f(t,0,0,0,1):void 0;var c=r.indexOf("("),l=r.indexOf(")");if(-1!==c&&l+1===a){var h=r.substr(0,c),g=r.substr(c+1,l-(c+1)).split(","),y=1;switch(h){case"rgba":if(4!==g.length)return 3===g.length?f(t,+g[0],+g[1],+g[2],1):f(t,0,0,0,1);y=u(g.pop());case"rgb":return g.length>=3?(f(t,s(g[0]),s(g[1]),s(g[2]),3===g.length?y:u(g[3])),v(e,t),t):void f(t,0,0,0,1);case"hsla":return 4!==g.length?void f(t,0,0,0,1):(g[3]=u(g[3]),m(g,t),v(e,t),t);case"hsl":return 3!==g.length?void f(t,0,0,0,1):(m(g,t),v(e,t),t);default:return}}f(t,0,0,0,1)}}function m(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=u(e[1]),i=u(e[2]),a=i<=.5?i*(r+1):i+r-i*r,s=2*i-a;return f(t=t||[],o(255*c(s,a,n+1/3)),o(255*c(s,a,n)),o(255*c(s,a,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function y(e,t){var n=g(e);if(n){for(var r=0;r<3;r++)n[r]=t<0?n[r]*(1-t)|0:(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return E(n,4===n.length?"rgba":"rgb")}}function b(e){var t=g(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function x(e,t,n){if(t&&t.length&&e>=0&&e<=1){n=n||[];var r=e*(t.length-1),i=Math.floor(r),s=Math.ceil(r),u=t[i],c=t[s],f=r-i;return n[0]=o(l(u[0],c[0],f)),n[1]=o(l(u[1],c[1],f)),n[2]=o(l(u[2],c[2],f)),n[3]=a(l(u[3],c[3],f)),n}}var w=x;function _(e,t,n){if(t&&t.length&&e>=0&&e<=1){var r=e*(t.length-1),i=Math.floor(r),s=Math.ceil(r),u=g(t[i]),c=g(t[s]),f=r-i,d=E([o(l(u[0],c[0],f)),o(l(u[1],c[1],f)),o(l(u[2],c[2],f)),a(l(u[3],c[3],f))],"rgba");return n?{color:d,leftIndex:i,rightIndex:s,value:r}:d}}var S=_;function O(e,t,n,r){var i,o=g(e);if(e)return o=function(e){if(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),u=s-a,c=(s+a)/2;if(0===u)t=0,n=0;else{n=c<.5?u/(s+a):u/(2-s-a);var l=((s-r)/6+u/2)/u,f=((s-i)/6+u/2)/u,d=((s-o)/6+u/2)/u;r===s?t=d-f:i===s?t=1/3+l-d:o===s&&(t=2/3+f-l),t<0&&(t+=1),t>1&&(t-=1)}var p=[360*t,n,c];return null!=e[3]&&p.push(e[3]),p}}(o),null!=t&&(o[0]=(i=t,(i=Math.round(i))<0?0:i>360?360:i)),null!=n&&(o[1]=u(n)),null!=r&&(o[2]=u(r)),E(m(o),"rgba")}function k(e,t){var n=g(e);if(n&&null!=t)return n[3]=a(t),E(n,"rgba")}function E(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}}function j(e,t){var n=g(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}function T(){return E([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}},function(e,t,n){e.exports=n(1198)()},,,function(e,t,n){"use strict";var r=n(289);t.a=r.a},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";Object.defineProperty(t,"__esModule",{value:!0}),t.ReactCSS=t.loop=t.handleActive=t.handleHover=t.hover=void 0;var r=c(n(1372)),i=c(n(1443)),o=c(n(1463)),a=c(n(1464)),s=c(n(1465)),u=c(n(1466));function c(e){return e&&e.__esModule?e:{default:e}}t.hover=a.default,t.handleHover=a.default,t.handleActive=s.default,t.loop=u.default;var l=t.ReactCSS=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];var s=(0,r.default)(n),u=(0,i.default)(e,s);return(0,o.default)(u)};t.default=l},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){"use strict";(function(e){n.d(t,"p",(function(){return s})),n.d(t,"j",(function(){return c})),n.d(t,"q",(function(){return f})),n.d(t,"e",(function(){return d})),n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return h})),n.d(t,"i",(function(){return v})),n.d(t,"h",(function(){return g})),n.d(t,"l",(function(){return m})),n.d(t,"n",(function(){return y})),n.d(t,"m",(function(){return b})),n.d(t,"o",(function(){return x})),n.d(t,"k",(function(){return w})),n.d(t,"d",(function(){return _})),n.d(t,"f",(function(){return S})),n.d(t,"g",(function(){return O})),n.d(t,"c",(function(){return k}));var r=n(3),i=n(58),o=n(47),a=Math.round;function s(e){var t;if(e&&"transparent"!==e){if("string"==typeof e&&e.indexOf("rgba")>-1){var n=Object(i.parse)(e);n&&(e="rgb("+n[0]+","+n[1]+","+n[2]+")",t=n[3])}}else e="none";return{color:e,opacity:null==t?1:t}}var u=1e-4;function c(e){return e<u&&e>-u}function l(e){return a(1e3*e)/1e3}function f(e){return a(1e4*e)/1e4}function d(e){return"matrix("+l(e[0])+","+l(e[1])+","+l(e[2])+","+l(e[3])+","+f(e[4])+","+f(e[5])+")"}var p={left:"start",right:"end",center:"middle",middle:"middle"};function h(e,t,n){return"top"===n?e+=t/2:"bottom"===n&&(e-=t/2),e}function v(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function g(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function m(e){return e&&!!e.image}function y(e){return m(e)||function(e){return e&&!!e.svgElement}(e)}function b(e){return"linear"===e.type}function x(e){return"radial"===e.type}function w(e){return e&&("linear"===e.type||"radial"===e.type)}function _(e){return"url(#"+e+")"}function S(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function O(e){var t=e.x||0,n=e.y||0,i=(e.rotation||0)*r.RADIAN_TO_DEGREE,o=Object(r.retrieve2)(e.scaleX,1),s=Object(r.retrieve2)(e.scaleY,1),u=e.skewX||0,c=e.skewY||0,l=[];return(t||n)&&l.push("translate("+t+"px,"+n+"px)"),i&&l.push("rotate("+i+")"),1===o&&1===s||l.push("scale("+o+","+s+")"),(u||c)&&l.push("skew("+a(u*r.RADIAN_TO_DEGREE)+"deg, "+a(c*r.RADIAN_TO_DEGREE)+"deg)"),l.join(" ")}var k=o.a.hasGlobalWindow&&Object(r.isFunction)(window.btoa)?function(e){return window.btoa(unescape(e))}:void 0!==e?function(t){return e.from(t).toString("base64")}:function(e){return null}}).call(this,n(329).Buffer)},function(e,t,n){var r=n(80);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n(1555),o=n(1649),a=n(303),s=n(84),u=n(119),c=n(393),l=n(304),f=n(305),d=n(307),p=n(306),h=n(394),v=n(308),g=n(104),m=n(40),y=n(309),b=n(1554),x=n(1556);var w=function(e){return function(t){var n=t.theme;return Object(b.a)({sx:e,theme:n})}},_=n(334),S=n(397),O=Object(S.a)(),k=n(237),E=n(265),j=n(883),T=n(454),C=n(455),A=n(456),P=n(885),M=n(619),I=n(192),R=n(345),D=n(177),L=n(1669),N=n(55),F=n(102),B=n(314),U=n(2),z=n(238),V=n(244);function H(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==K(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==K(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===K(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W(e){return function(e){if(Array.isArray(e))return Y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||G(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||G(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function G(e,t){if(e){if("string"==typeof e)return Y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Y(e,t):void 0}}function Y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function K(e){return(K="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)}var $=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=e;t.forEach((function(e,o){o===t.length-1?Array.isArray(i)?i[Number(e)]=n:i&&"object"===K(i)&&(i[e]=n):i&&"object"===K(i)&&(i[e]||(i[e]=r.includes(e)?[]:{}),i=i[e])}))},X=function(e,t,n){!function e(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];Object.entries(r).forEach((function(r){var a=q(r,2),s=a[0],u=a[1];(!n||n&&!n([].concat(W(i),[s])))&&null!=u&&("object"===K(u)&&Object.keys(u).length>0?e(u,[].concat(W(i),[s]),Array.isArray(u)?[].concat(W(o),[s]):o):t([].concat(W(i),[s]),u,o))}))}(e)},Q=function(e,t){return"number"==typeof t?["lineHeight","fontWeight","opacity","zIndex"].some((function(t){return e.includes(t)}))?t:e[e.length-1].toLowerCase().indexOf("opacity")>=0?t:"".concat(t,"px"):t};function Z(e,t){var n=t||{},r=n.prefix,i=n.shouldSkipGeneratingVar,o={},a={},s={};return X(e,(function(e,t,n){if(("string"==typeof t||"number"==typeof t)&&(!i||i&&!i(e,t))){var u="--".concat(r?"".concat(r,"-"):"").concat(e.join("-"));Object.assign(o,H({},u,Q(e,t))),$(a,e,"var(".concat(u,")"),n)}$(s,e,t,n)}),(function(e){return"vars"===e[0]})),{css:o,vars:a,parsedTheme:s}}var J=n(5),ee="mode",te="color-scheme",ne="data-color-scheme";function re(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ie(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ie(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ie(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function oe(e){if("undefined"!=typeof window&&"system"===e)return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function ae(e,t){return"light"===e.mode||"system"===e.mode&&"light"===e.systemMode?t("light"):"dark"===e.mode||"system"===e.mode&&"dark"===e.systemMode?t("dark"):void 0}function se(e,t){if("undefined"!=typeof window){var n;try{(n=localStorage.getItem(e)||void 0)||localStorage.setItem(e,t)}catch(e){}return n||t}}function ue(e){var t=e.defaultMode,n=void 0===t?"light":t,r=e.defaultLightColorScheme,i=e.defaultDarkColorScheme,o=e.supportedColorSchemes,a=void 0===o?[]:o,s=e.modeStorageKey,u=void 0===s?ee:s,c=e.colorSchemeStorageKey,l=void 0===c?te:c,f=e.storageWindow,d=void 0===f?"undefined"==typeof window?void 0:window:f,p=a.join(","),h=re(U.useState((function(){var e=se(u,n),t=se("".concat(l,"-light"),r),o=se("".concat(l,"-dark"),i);return{mode:e,systemMode:oe(e),lightColorScheme:t,darkColorScheme:o}})),2),v=h[0],g=h[1],m=function(e){return ae(e,(function(t){return"light"===t?e.lightColorScheme:"dark"===t?e.darkColorScheme:void 0}))}(v),y=U.useCallback((function(e){g((function(t){if(e===t.mode)return t;var r=e||n;try{localStorage.setItem(u,r)}catch(e){}return Object(N.a)({},t,{mode:r,systemMode:oe(r)})}))}),[u,n]),b=U.useCallback((function(e){e?"string"==typeof e?e&&!p.includes(e)?console.error("`".concat(e,"` does not exist in `theme.colorSchemes`.")):g((function(t){var n=Object(N.a)({},t);return ae(t,(function(t){try{localStorage.setItem("".concat(l,"-").concat(t),e)}catch(e){}"light"===t&&(n.lightColorScheme=e),"dark"===t&&(n.darkColorScheme=e)})),n})):g((function(t){var n=Object(N.a)({},t),o=null===e.light?r:e.light,a=null===e.dark?i:e.dark;if(o)if(p.includes(o)){n.lightColorScheme=o;try{localStorage.setItem("".concat(l,"-light"),o)}catch(e){}}else console.error("`".concat(o,"` does not exist in `theme.colorSchemes`."));if(a)if(p.includes(a)){n.darkColorScheme=a;try{localStorage.setItem("".concat(l,"-dark"),a)}catch(e){}}else console.error("`".concat(a,"` does not exist in `theme.colorSchemes`."));return n})):g((function(e){try{localStorage.setItem("".concat(l,"-light"),r),localStorage.setItem("".concat(l,"-dark"),i)}catch(e){}return Object(N.a)({},e,{lightColorScheme:r,darkColorScheme:i})}))}),[p,l,r,i]),x=U.useCallback((function(e){"system"===v.mode&&g((function(t){return Object(N.a)({},t,{systemMode:null!=e&&e.matches?"dark":"light"})}))}),[v.mode]),w=U.useRef(x);return w.current=x,U.useEffect((function(){var e=function(){return w.current.apply(w,arguments)},t=window.matchMedia("(prefers-color-scheme: dark)");return t.addListener(e),e(t),function(){return t.removeListener(e)}}),[]),U.useEffect((function(){var e=function(e){var t=e.newValue;"string"!=typeof e.key||!e.key.startsWith(l)||t&&!p.match(t)||(e.key.endsWith("light")&&b({light:t}),e.key.endsWith("dark")&&b({dark:t})),e.key!==u||t&&!["light","dark","system"].includes(t)||y(t||n)};if(d)return d.addEventListener("storage",e),function(){return d.removeEventListener("storage",e)}}),[b,y,u,l,p,n,d]),Object(N.a)({},v,{colorScheme:m,setMode:y,setColorScheme:b})}function ce(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==de(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==de(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===de(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function le(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return fe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fe(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function de(e){return(de="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)}var pe=["colorSchemes","components","cssVarPrefix"],he="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function ve(e){var t=e.theme,n=void 0===t?{}:t,r=e.attribute,o=void 0===r?ne:r,a=e.modeStorageKey,s=void 0===a?ee:a,u=e.colorSchemeStorageKey,c=void 0===u?te:u,l=e.defaultMode,f=void 0===l?"light":l,d=e.defaultColorScheme,p=e.disableTransitionOnChange,h=void 0!==p&&p,v=e.enableColorScheme,g=void 0===v||v,m=e.shouldSkipGeneratingVar,y=e.resolveTheme;(!n.colorSchemes||"string"==typeof d&&!n.colorSchemes[d]||"object"===de(d)&&!n.colorSchemes[null==d?void 0:d.light]||"object"===de(d)&&!n.colorSchemes[null==d?void 0:d.dark])&&console.error("MUI: `".concat(d,"` does not exist in `theme.colorSchemes`."));var b=U.createContext(void 0);return{CssVarsProvider:function(e){var t=e.children,r=e.theme,a=void 0===r?n:r,u=e.modeStorageKey,l=void 0===u?s:u,p=e.colorSchemeStorageKey,v=void 0===p?c:p,x=e.attribute,w=void 0===x?o:x,_=e.defaultMode,S=void 0===_?f:_,O=e.defaultColorScheme,k=void 0===O?d:O,E=e.disableTransitionOnChange,j=void 0===E?h:E,T=e.enableColorScheme,C=void 0===T?g:T,A=e.storageWindow,P=void 0===A?"undefined"==typeof window?void 0:window:A,M=e.documentNode,I=void 0===M?"undefined"==typeof document?void 0:document:M,R=e.colorSchemeNode,D=void 0===R?"undefined"==typeof document?void 0:document.documentElement:R,B=e.colorSchemeSelector,H=void 0===B?":root":B,W=e.shouldSkipGeneratingVar,q=void 0===W?m:W,G=U.useRef(!1),Y=a.colorSchemes,K=void 0===Y?{}:Y,$=a.components,X=void 0===$?{}:$,Q=a.cssVarPrefix,ee=Object(F.a)(a,pe),te=Object.keys(K),ne="string"==typeof k?k:k.light,re="string"==typeof k?k:k.dark,ie=ue({supportedColorSchemes:te,defaultLightColorScheme:ne,defaultDarkColorScheme:re,modeStorageKey:l,colorSchemeStorageKey:v,defaultMode:S,storageWindow:P}),oe=ie.mode,ae=ie.setMode,se=ie.systemMode,fe=ie.lightColorScheme,de=ie.darkColorScheme,ve=ie.colorScheme,ge=ie.setColorScheme,me=ve||("dark"===S?re:ne),ye=ee,be=Z(ye,{prefix:Q,shouldSkipGeneratingVar:q}),xe=be.css,we=be.vars,_e=be.parsedTheme;ye=Object(N.a)({},_e,{components:X,colorSchemes:K,cssVarPrefix:Q,vars:we,getColorSchemeSelector:function(e){return"[".concat(w,'="').concat(e,'"] &')}});var Se={},Oe={};return Object.entries(K).forEach((function(e){var t=le(e,2),n=t[0],r=Z(t[1],{prefix:Q,shouldSkipGeneratingVar:q}),i=r.css,o=r.vars,a=r.parsedTheme;ye.vars=Object(z.a)(ye.vars,o),n===me&&(ye=Object(N.a)({},ye,a)).palette&&(ye.palette.mode=oe,ye.palette.colorScheme=me),n===("string"==typeof k?k:"dark"===S?k.dark:k.light)?Se["".concat(H,", [").concat(w,'="').concat(n,'"]')]=i:Oe["".concat(":root"===H?"":H,"[").concat(w,'="').concat(n,'"]')]=i})),U.useEffect((function(){ve&&D&&D.setAttribute(w,ve)}),[ve,w,D]),Object(V.a)((function(){if(oe&&C&&D){var e=D.style.getPropertyValue("color-scheme");return"system"===oe?D.style.setProperty("color-scheme",se):D.style.setProperty("color-scheme",oe),function(){D.style.setProperty("color-scheme",e)}}}),[oe,se,C,D]),U.useEffect((function(){var e;if(j&&G.current&&I){var t=I.createElement("style");t.appendChild(I.createTextNode(he)),I.head.appendChild(t),window.getComputedStyle(I.body),e=setTimeout((function(){I.head.removeChild(t)}),1)}return function(){clearTimeout(e)}}),[ve,j,I]),U.useEffect((function(){return G.current=!0,function(){G.current=!1}}),[]),Object(J.jsxs)(b.Provider,{value:{mode:oe,setMode:ae,lightColorScheme:fe,darkColorScheme:de,colorScheme:ve,setColorScheme:ge,allColorSchemes:te},children:[Object(J.jsx)(i.a,{styles:ce({},H,xe)}),Object(J.jsx)(i.a,{styles:Se}),Object(J.jsx)(i.a,{styles:Oe}),Object(J.jsx)(L.a,{theme:y?y(ye):ye,children:t})]})},useColorScheme:function(){var e=U.useContext(b);if(!e)throw new Error(Object(B.a)(19));return e},getInitColorSchemeScript:function(e){return function(e){var t=e||{},n=t.enableColorScheme,r=void 0===n||n,i=t.enableSystem,o=void 0!==i&&i,a=t.defaultLightColorScheme,s=void 0===a?"light":a,u=t.defaultDarkColorScheme,c=void 0===u?"dark":u,l=t.modeStorageKey,f=void 0===l?ee:l,d=t.colorSchemeStorageKey,p=void 0===d?te:d,h=t.attribute,v=void 0===h?ne:h,g=t.colorSchemeNode,m=void 0===g?"document.documentElement":g;return(Object(J.jsx)("script",{dangerouslySetInnerHTML:{__html:"(function() { try {\n var mode = localStorage.getItem('".concat(f,"');\n var cssColorScheme = mode;\n var colorScheme = '';\n if (mode === 'system' || (!mode && !!").concat(o,")) {\n // handle system mode\n var mql = window.matchMedia('(prefers-color-scheme: dark)');\n if (mql.matches) {\n cssColorScheme = 'dark';\n colorScheme = localStorage.getItem('").concat(p,"-dark') || '").concat(c,"';\n } else {\n cssColorScheme = 'light';\n colorScheme = localStorage.getItem('").concat(p,"-light') || '").concat(s,"';\n }\n }\n if (mode === 'light') {\n colorScheme = localStorage.getItem('").concat(p,"-light') || '").concat(s,"';\n }\n if (mode === 'dark') {\n colorScheme = localStorage.getItem('").concat(p,"-dark') || '").concat(c,"';\n }\n if (colorScheme) {\n ").concat(m,".setAttribute('").concat(v,"', colorScheme);\n }\n if (").concat(r," && !!cssColorScheme) {\n ").concat(m,".style.setProperty('color-scheme', cssColorScheme);\n }\n } catch (e) {} })();")}}))}(Object(N.a)({attribute:o,colorSchemeStorageKey:c,modeStorageKey:s,enableColorScheme:g},e))}}}function ge(e){return function(e){if(Array.isArray(e))return me(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return me(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return me(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ye(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";function t(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];if(!r.length)return"";var o=r[0];return"string"!=typeof o||o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))/)?", ".concat(o):", var(--".concat(e?"".concat(e,"-"):"").concat(o).concat(t.apply(void 0,ge(r.slice(1))),")")}return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return"var(--".concat(e?"".concat(e,"-"):"").concat(n).concat(t.apply(void 0,i),")")}}var be=n(399),xe=Object(be.a)(),we=n(138),_e=n(152);function Se(e){return Object(we.a)("MuiContainer",e)}var Oe=Object(_e.a)("MuiContainer",["root","disableGutters","fixed","maxWidthXs","maxWidthSm","maxWidthMd","maxWidthLg","maxWidthXl"]),ke=n(17),Ee=n(158);function je(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Te(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Te(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ce(e){return(Ce="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)}var Ae=function(e,t,n){var r=e.keys[0];if(Array.isArray(t))t.forEach((function(t,r){n((function(t,n){r<=e.keys.length-1&&(0===r?Object.assign(t,n):t[e.up(e.keys[r])]=n)}),t)}));else if(t&&"object"===Ce(t)){(Object.keys(t).length>e.keys.length?e.keys:Object.keys(t)).forEach((function(i){if(-1!==e.keys.indexOf(i)){var o=t[i];void 0!==o&&n((function(t,n){r===i?Object.assign(t,n):t[e.up(i)]=n}),o)}}))}else"number"!=typeof t&&"string"!=typeof t||n((function(e,t){Object.assign(e,t)}),t)},Pe=function(e){var t=e.theme,n=e.ownerState,r={};return Ae(t.breakpoints,n.gridSize,(function(e,t){var i={};!0===t&&(i={flexBasis:0,flexGrow:1,maxWidth:"100%"}),"auto"===t&&(i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),"number"==typeof t&&(i={flexGrow:0,flexBasis:"auto",width:"calc(100% * ".concat(t," / var(--Grid-columns)").concat(n.nested&&n.container?" + var(--Grid-columnSpacing)":"",")")}),e(r,i)})),r},Me=function(e){var t=e.theme,n=e.ownerState,r={};return Ae(t.breakpoints,n.gridOffset,(function(e,t){var n={};"auto"===t&&(n={marginLeft:"auto"}),"number"==typeof t&&(n={marginLeft:0===t?"0px":"calc(100% * ".concat(t," / var(--Grid-columns))")}),e(r,n)})),r},Ie=function(e){var t=e.theme,n=e.ownerState;if(!n.container)return{};var r={"--Grid-columns":12};return Ae(t.breakpoints,n.columns,(function(e,t){e(r,{"--Grid-columns":t})})),r},Re=function(e){var t=e.theme,n=e.ownerState;if(!n.container)return{};var r={};return Ae(t.breakpoints,n.rowSpacing,(function(e,n){var i;e(r,{"--Grid-rowSpacing":"string"==typeof n?n:null==(i=t.spacing)?void 0:i.call(t,n)})})),r},De=function(e){var t=e.theme,n=e.ownerState;if(!n.container)return{};var r={};return Ae(t.breakpoints,n.columnSpacing,(function(e,n){var i;e(r,{"--Grid-columnSpacing":"string"==typeof n?n:null==(i=t.spacing)?void 0:i.call(t,n)})})),r},Le=function(e){var t=e.theme,n=e.ownerState;if(!n.container)return{};var r={};return Ae(t.breakpoints,n.direction,(function(e,t){e(r,{flexDirection:t})})),r},Ne=function(e){var t=e.ownerState;return Object(N.a)({minWidth:0,boxSizing:"border-box"},t.container?Object(N.a)({display:"flex",flexWrap:"wrap"},t.wrap&&"wrap"!==t.wrap&&{flexWrap:t.wrap},{margin:"calc(var(--Grid-rowSpacing) / -2) calc(var(--Grid-columnSpacing) / -2)"},t.disableEqualOverflow&&{margin:"calc(var(--Grid-rowSpacing) * -1) 0px 0px calc(var(--Grid-columnSpacing) * -1)"},t.nested?Object(N.a)({padding:"calc(var(--Grid-nested-rowSpacing) / 2) calc(var(--Grid-nested-columnSpacing) / 2)"},(t.disableEqualOverflow||t.parentDisableEqualOverflow)&&{padding:"calc(var(--Grid-nested-rowSpacing)) 0px 0px calc(var(--Grid-nested-columnSpacing))"}):{"--Grid-nested-rowSpacing":"var(--Grid-rowSpacing)","--Grid-nested-columnSpacing":"var(--Grid-columnSpacing)"}):Object(N.a)({padding:"calc(var(--Grid-rowSpacing) / 2) calc(var(--Grid-columnSpacing) / 2)"},t.disableEqualOverflow&&{padding:"calc(var(--Grid-rowSpacing)) 0px 0px calc(var(--Grid-columnSpacing))"}))},Fe=function(e){var t=[];return Object.entries(e).forEach((function(e){var n=je(e,2),r=n[0],i=n[1];!1!==i&&void 0!==i&&t.push("grid-".concat(r,"-").concat(String(i)))})),t},Be=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"xs";function n(e){return void 0!==e&&("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e&&e>0)}if(n(e))return["spacing-".concat(t,"-").concat(String(e))];if("object"===Ce(e)&&!Array.isArray(e)){var r=[];return Object.entries(e).forEach((function(e){var t=je(e,2),i=t[0],o=t[1];n(o)&&r.push("spacing-".concat(i,"-").concat(String(o)))})),r}return[]};function Ue(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||Ve(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ze(e){return function(e){if(Array.isArray(e))return He(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ve(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ve(e,t){if(e){if("string"==typeof e)return He(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?He(e,t):void 0}}function He(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var We=["className","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow"],qe=Object(j.a)(),Ge=Object(E.a)("div",{name:"MuiGrid",slot:"Root",overridesResolver:function(e,t){return t.root}});function Ye(e){return Object(P.a)({props:e,name:"MuiGrid",defaultTheme:qe})}function Ke(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.createStyledComponent,n=void 0===t?Ge:t,r=e.useThemeProps,i=void 0===r?Ye:r,o=e.componentName,a=void 0===o?"MuiGrid":o,s=U.createContext(!1),u=U.createContext(void 0),c=n(Ie,De,Re,Pe,Le,Ne,Me);return U.forwardRef((function(e,t){var n,r,o,l,f,d,p,h,v=Object(I.a)(),g=i(e),m=Object(x.a)(g),y=U.useContext(s),b=U.useContext(u),w=m.className,_=m.columns,S=void 0===_?12:_,O=m.container,k=void 0!==O&&O,E=m.component,j=void 0===E?"div":E,T=m.direction,C=void 0===T?"row":T,A=m.wrap,P=void 0===A?"wrap":A,M=m.spacing,R=void 0===M?0:M,D=m.rowSpacing,L=void 0===D?R:D,B=m.columnSpacing,z=void 0===B?R:B,V=m.disableEqualOverflow,H=Object(F.a)(m,We),W=V;y&&void 0!==V&&(W=e.disableEqualOverflow);var q={},G={},Y={};Object.entries(H).forEach((function(e){var t=Ue(e,2),n=t[0],r=t[1];void 0!==v.breakpoints.values[n]?q[n]=r:void 0!==v.breakpoints.values[n.replace("Offset","")]?G[n.replace("Offset","")]=r:Y[n]=r}));var K=null!=(n=e.columns)?n:y?void 0:S,$=null!=(r=e.spacing)?r:y?void 0:R,X=null!=(o=null!=(l=e.rowSpacing)?l:e.spacing)?o:y?void 0:L,Q=null!=(f=null!=(d=e.columnSpacing)?d:e.spacing)?f:y?void 0:z,Z=Object(N.a)({},m,{nested:y,columns:K,container:k,direction:C,wrap:P,spacing:$,rowSpacing:X,columnSpacing:Q,gridSize:q,gridOffset:G,disableEqualOverflow:null!=(p=null!=(h=W)?h:b)&&p,parentDisableEqualOverflow:b}),ee=function(e,t){var n=e.container,r=e.direction,i=e.spacing,o=e.wrap,s=e.gridSize,u={root:["root",n&&"container","row"!==r&&"direction-xs-".concat(String(r)),"wrap"!==o&&"wrap-xs-".concat(String(o))].concat(ze(Fe(s)),ze(n?Be(i,t.breakpoints.keys[0]):[]))};return Object(Ee.a)(u,(function(e){return Object(we.a)(a,e)}),{})}(Z,v),te=Object(J.jsx)(c,Object(N.a)({ref:t,as:j,ownerState:Z,className:Object(ke.default)(ee.root,w)},Y));return y||(te=Object(J.jsx)(s.Provider,{value:!0,children:te})),void 0!==W&&W!==(null!=b&&b)&&(te=Object(J.jsx)(u.Provider,{value:W,children:te})),te}))}var $e=Ke();function Xe(e){return function(e){if(Array.isArray(e))return Qe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Qe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qe(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ze(e){return Object(we.a)("MuiGrid",e)}var Je=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],et=Object(_e.a)("MuiGrid",["root","container","item"].concat(Xe([0,1,2,3,4,5,6,7,8,9,10].map((function(e){return"spacing-xs-".concat(e)}))),Xe(["column-reverse","column","row-reverse","row"].map((function(e){return"direction-xs-".concat(e)}))),Xe(["nowrap","wrap-reverse","wrap"].map((function(e){return"wrap-xs-".concat(e)}))),Xe(Je.map((function(e){return"grid-xs-".concat(e)}))),Xe(Je.map((function(e){return"grid-sm-".concat(e)}))),Xe(Je.map((function(e){return"grid-md-".concat(e)}))),Xe(Je.map((function(e){return"grid-lg-".concat(e)}))),Xe(Je.map((function(e){return"grid-xl-".concat(e)})))));function tt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==nt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==nt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===nt(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nt(e){return(nt="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)}var rt=["component","direction","spacing","divider","children","className"],it=Object(j.a)(),ot=Object(E.a)("div",{name:"MuiStack",slot:"Root",overridesResolver:function(e,t){return t.root}});function at(e){return Object(P.a)({props:e,name:"MuiStack",defaultTheme:it})}function st(e,t){var n=U.Children.toArray(e).filter(Boolean);return n.reduce((function(e,r,i){return e.push(r),i<n.length-1&&e.push(U.cloneElement(t,{key:"separator-".concat(i)})),e}),[])}var ut=function(e){var t=e.ownerState,n=e.theme,r=Object(N.a)({display:"flex",flexDirection:"column"},Object(s.c)({theme:n},Object(s.f)({values:t.direction,breakpoints:n.breakpoints.values}),(function(e){return{flexDirection:e}})));if(t.spacing){var i=Object(g.a)(n),o=Object.keys(n.breakpoints.values).reduce((function(e,n){return("object"===nt(t.spacing)&&null!=t.spacing[n]||"object"===nt(t.direction)&&null!=t.direction[n])&&(e[n]=!0),e}),{}),a=Object(s.f)({values:t.direction,base:o}),u=Object(s.f)({values:t.spacing,base:o});"object"===nt(a)&&Object.keys(a).forEach((function(e,t,n){if(!a[e]){var r=t>0?a[n[t-1]]:"column";a[e]=r}}));r=Object(z.a)(r,Object(s.c)({theme:n},u,(function(e,n){return{"& > :not(style) + :not(style)":tt({margin:0},"margin".concat((r=n?a[n]:t.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[r])),Object(g.e)(i,e))};var r})))}return r=Object(s.d)(n.breakpoints,r)};function ct(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.createStyledComponent,n=void 0===t?ot:t,r=e.useThemeProps,i=void 0===r?at:r,o=e.componentName,a=void 0===o?"MuiStack":o,s=n(ut);return U.forwardRef((function(e,t){var n=i(e),r=Object(x.a)(n),o=r.component,u=void 0===o?"div":o,c=r.direction,l=void 0===c?"column":c,f=r.spacing,d=void 0===f?0:f,p=r.divider,h=r.children,v=r.className,g=Object(F.a)(r,rt),m={direction:l,spacing:d},y=Object(Ee.a)({root:["root"]},(function(e){return Object(we.a)(a,e)}),{});return Object(J.jsx)(s,Object(N.a)({as:u,ownerState:m,ref:t,className:Object(ke.default)(y.root,v)},g,{children:p?st(h,p):h}))}))}var lt=ct();function ft(e){return Object(we.a)("MuiStack",e)}var dt=Object(_e.a)("MuiStack",["root"]);n.d(t,"css",(function(){return r.b})),n.d(t,"keyframes",(function(){return r.d})),n.d(t,"GlobalStyles",(function(){return i.a})),n.d(t,"StyledEngineProvider",(function(){return o.a})),n.d(t,"borders",(function(){return a.l})),n.d(t,"border",(function(){return a.a})),n.d(t,"borderTop",(function(){return a.j})),n.d(t,"borderRight",(function(){return a.h})),n.d(t,"borderBottom",(function(){return a.b})),n.d(t,"borderLeft",(function(){return a.e})),n.d(t,"borderColor",(function(){return a.d})),n.d(t,"borderTopColor",(function(){return a.k})),n.d(t,"borderRightColor",(function(){return a.i})),n.d(t,"borderBottomColor",(function(){return a.c})),n.d(t,"borderLeftColor",(function(){return a.f})),n.d(t,"borderRadius",(function(){return a.g})),n.d(t,"breakpoints",(function(){return s.b})),n.d(t,"handleBreakpoints",(function(){return s.c})),n.d(t,"mergeBreakpointsInOrder",(function(){return s.d})),n.d(t,"unstable_resolveBreakpointValues",(function(){return s.f})),n.d(t,"compose",(function(){return u.a})),n.d(t,"display",(function(){return c.a})),n.d(t,"flexbox",(function(){return l.d})),n.d(t,"flexBasis",(function(){return l.f})),n.d(t,"flexDirection",(function(){return l.g})),n.d(t,"flexWrap",(function(){return l.j})),n.d(t,"justifyContent",(function(){return l.k})),n.d(t,"alignItems",(function(){return l.b})),n.d(t,"alignContent",(function(){return l.a})),n.d(t,"order",(function(){return l.n})),n.d(t,"flex",(function(){return l.e})),n.d(t,"flexGrow",(function(){return l.h})),n.d(t,"flexShrink",(function(){return l.i})),n.d(t,"alignSelf",(function(){return l.c})),n.d(t,"justifyItems",(function(){return l.l})),n.d(t,"justifySelf",(function(){return l.m})),n.d(t,"grid",(function(){return f.b})),n.d(t,"gap",(function(){return f.c})),n.d(t,"columnGap",(function(){return f.a})),n.d(t,"rowGap",(function(){return f.m})),n.d(t,"gridColumn",(function(){return f.h})),n.d(t,"gridRow",(function(){return f.i})),n.d(t,"gridAutoFlow",(function(){return f.f})),n.d(t,"gridAutoColumns",(function(){return f.e})),n.d(t,"gridAutoRows",(function(){return f.g})),n.d(t,"gridTemplateColumns",(function(){return f.k})),n.d(t,"gridTemplateRows",(function(){return f.l})),n.d(t,"gridTemplateAreas",(function(){return f.j})),n.d(t,"gridArea",(function(){return f.d})),n.d(t,"palette",(function(){return d.d})),n.d(t,"color",(function(){return d.c})),n.d(t,"bgcolor",(function(){return d.b})),n.d(t,"backgroundColor",(function(){return d.a})),n.d(t,"positions",(function(){return p.b})),n.d(t,"position",(function(){return p.d})),n.d(t,"zIndex",(function(){return p.g})),n.d(t,"top",(function(){return p.f})),n.d(t,"right",(function(){return p.e})),n.d(t,"bottom",(function(){return p.a})),n.d(t,"left",(function(){return p.c})),n.d(t,"shadows",(function(){return h.a})),n.d(t,"sizing",(function(){return v.b})),n.d(t,"width",(function(){return v.j})),n.d(t,"maxWidth",(function(){return v.e})),n.d(t,"minWidth",(function(){return v.g})),n.d(t,"height",(function(){return v.c})),n.d(t,"maxHeight",(function(){return v.d})),n.d(t,"minHeight",(function(){return v.f})),n.d(t,"sizeWidth",(function(){return v.i})),n.d(t,"sizeHeight",(function(){return v.h})),n.d(t,"boxSizing",(function(){return v.a})),n.d(t,"spacing",(function(){return g.c})),n.d(t,"createUnaryUnit",(function(){return g.b})),n.d(t,"createUnarySpacing",(function(){return g.a})),n.d(t,"getValue",(function(){return g.e})),n.d(t,"getStyleFromPropValue",(function(){return g.d})),n.d(t,"margin",(function(){return g.f})),n.d(t,"padding",(function(){return g.g})),n.d(t,"style",(function(){return m.a})),n.d(t,"getPath",(function(){return m.b})),n.d(t,"typography",(function(){return y.a})),n.d(t,"fontFamily",(function(){return y.b})),n.d(t,"fontSize",(function(){return y.c})),n.d(t,"fontStyle",(function(){return y.d})),n.d(t,"fontWeight",(function(){return y.e})),n.d(t,"letterSpacing",(function(){return y.f})),n.d(t,"textTransform",(function(){return y.i})),n.d(t,"lineHeight",(function(){return y.g})),n.d(t,"textAlign",(function(){return y.h})),n.d(t,"typographyVariant",(function(){return y.j})),n.d(t,"unstable_styleFunctionSx",(function(){return b.a})),n.d(t,"unstable_createStyleFunctionSx",(function(){return b.b})),n.d(t,"unstable_extendSxProp",(function(){return x.a})),n.d(t,"experimental_sx",(function(){return w})),n.d(t,"unstable_getThemeValue",(function(){return _.a})),n.d(t,"Box",(function(){return O})),n.d(t,"createBox",(function(){return S.a})),n.d(t,"createStyled",(function(){return k.a})),n.d(t,"shouldForwardProp",(function(){return k.b})),n.d(t,"systemDefaultTheme",(function(){return k.c})),n.d(t,"styled",(function(){return E.a})),n.d(t,"createTheme",(function(){return j.a})),n.d(t,"createBreakpoints",(function(){return T.a})),n.d(t,"createSpacing",(function(){return C.a})),n.d(t,"shape",(function(){return A.a})),n.d(t,"useThemeProps",(function(){return P.a})),n.d(t,"getThemeProps",(function(){return M.a})),n.d(t,"useTheme",(function(){return I.a})),n.d(t,"useThemeWithoutDefault",(function(){return R.a})),n.d(t,"hexToRgb",(function(){return D.h})),n.d(t,"decomposeColor",(function(){return D.d})),n.d(t,"colorChannel",(function(){return D.b})),n.d(t,"recomposeColor",(function(){return D.k})),n.d(t,"rgbToHex",(function(){return D.l})),n.d(t,"hslToRgb",(function(){return D.i})),n.d(t,"getLuminance",(function(){return D.g})),n.d(t,"getContrastRatio",(function(){return D.f})),n.d(t,"alpha",(function(){return D.a})),n.d(t,"darken",(function(){return D.c})),n.d(t,"lighten",(function(){return D.j})),n.d(t,"emphasize",(function(){return D.e})),n.d(t,"ThemeProvider",(function(){return L.a})),n.d(t,"unstable_createCssVarsProvider",(function(){return ve})),n.d(t,"unstable_createGetCssVar",(function(){return ye})),n.d(t,"createContainer",(function(){return be.a})),n.d(t,"Container",(function(){return xe})),n.d(t,"containerClasses",(function(){return Oe})),n.d(t,"getContainerUtilityClass",(function(){return Se})),n.d(t,"Unstable_Grid",(function(){return $e})),n.d(t,"createGrid",(function(){return Ke})),n.d(t,"gridClasses",(function(){return et})),n.d(t,"getGridUtilityClass",(function(){return Ze})),n.d(t,"Stack",(function(){return lt})),n.d(t,"createStack",(function(){return ct})),n.d(t,"stackClasses",(function(){return dt})),n.d(t,"getStackUtilityClass",(function(){return ft}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(112),i=n(350);function o(e,t,n){return function(){if(0===arguments.length)return n();var o=Array.prototype.slice.call(arguments,0),a=o.pop();if(!Object(r.a)(a)){for(var s=0;s<e.length;){if("function"==typeof a[e[s]])return a[e[s]].apply(a,o);s+=1}if(Object(i.a)(a)){var u=t.apply(null,o);return u(a)}}return n.apply(this,arguments)}}},function(e,t,n){"use strict";function r(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(138),i=n(152);function o(e){return Object(r.a)("MuiChip",e)}var a=Object(i.a)("MuiChip",["root","sizeSmall","sizeMedium","colorPrimary","colorSecondary","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]);t.a=a},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n(2);var r=n(192),i=n(273);function o(){return Object(r.a)(i.a)}},function(e,t,n){"use strict";var r=n(100),i=n(29),o=n(12),a=n(278),s=Object(o.a)((function(e,t){return 1===e?Object(i.a)(t):Object(r.a)(e,Object(a.a)(e,[],t))}));t.a=s},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(39),i=new(function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var t=e.prototype;return t.batch=function(e){this.transactions++;var t=e();return this.transactions--,this.transactions||this.flush(),t},t.schedule=function(e){var t=this;this.transactions?this.queue.push(e):Object(r.o)((function(){t.notifyFn(e)}))},t.batchCalls=function(e){var t=this;return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t.schedule((function(){e.apply(void 0,r)}))}},t.flush=function(){var e=this,t=this.queue;this.queue=[],t.length&&Object(r.o)((function(){e.batchNotifyFn((function(){t.forEach((function(t){e.notifyFn(t)}))}))}))},t.setNotifyFunction=function(e){this.notifyFn=e},t.setBatchNotifyFunction=function(e){this.batchNotifyFn=e},e}())},function(e,t){function n(e){return(n="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)}e.exports=function(e){return"object"===n(e)?null!==e:"function"==typeof e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return d}));var r=12,i="sans-serif",o=r+"px "+i,a=20,s=100;var u,c,l=function(e){var t={};if("undefined"==typeof JSON)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32),i=(e.charCodeAt(n)-a)/s;t[r]=i}return t}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),f={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(e,t){if(!u){var n=f.createCanvas();u=n&&n.getContext("2d")}if(u)return c!==t&&(c=u.font=t||o),u.measureText(e);e=e||"";var i=/^([0-9]*?)px$/.exec(t=t||o),a=+(i&&i[1])||r,s=0;if(t.indexOf("mono")>=0)s=a*e.length;else for(var d=0;d<e.length;d++){var p=l[e[d]];s+=null==p?a:p*a}return{width:s}},loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r}};function d(e){for(var t in f)e[t]&&(f[t]=e[t])}},,function(e,t,n){"use strict";n.d(t,"g",(function(){return c})),n.d(t,"c",(function(){return f})),n.d(t,"a",(function(){return d})),n.d(t,"e",(function(){return p})),n.d(t,"d",(function(){return h})),n.d(t,"f",(function(){return v}));var r=n(55),i=n(238),o=n(217);function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function u(e){return(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})(e)}var c={xs:0,sm:600,md:900,lg:1200,xl:1536},l={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(c[e],"px)")}};function f(e,t,n){var r=e.theme||{};if(Array.isArray(t)){var i=r.breakpoints||l;return t.reduce((function(e,r,o){return e[i.up(i.keys[o])]=n(t[o]),e}),{})}if("object"===u(t)){var o=r.breakpoints||l;return Object.keys(t).reduce((function(e,r){if(-1!==Object.keys(o.values||c).indexOf(r)){e[o.up(r)]=n(t[r],r)}else{var i=r;e[i]=t[i]}return e}),{})}return n(t)}function d(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(null==(e=t.keys)?void 0:e.reduce((function(e,n){return e[t.up(n)]={},e}),{}))||{}}function p(e,t){return e.reduce((function(e,t){var n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function h(e){for(var t=d(e),n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var a=[t].concat(r).reduce((function(e,t){return Object(i.a)(e,t)}),{});return p(Object.keys(t),a)}function v(e){var t,n=e.values,r=e.breakpoints,i=e.base||function(e,t){if("object"!==u(e))return{};var n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((function(t,r){r<e.length&&(n[t]=!0)})):r.forEach((function(t){null!=e[t]&&(n[t]=!0)})),n}(n,r),o=Object.keys(i);return 0===o.length?n:o.reduce((function(e,r,i){return Array.isArray(n)?(e[r]=null!=n[i]?n[i]:n[t],t=i):"object"===u(n)?(e[r]=null!=n[r]?n[r]:n[t],t=r):e[r]=n,e}),{})}t.b=function(e){var t=function(t){var n=t.theme||{},i=e(t),a=n.breakpoints||l,s=a.keys.reduce((function(i,o){return t[o]&&((i=i||{})[a.up(o)]=e(Object(r.a)({theme:n},t[o]))),i}),null);return Object(o.a)(i,s)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(a(e.filterProps)),t}},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(t,e)}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";function r(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(240),i=n(497),o=n(467);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](Object(o.a)(e["@@transducer/step"],e),t))}var u="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function c(e,t,n){if("function"==typeof e&&(e=Object(i.a)(e)),Object(r.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 s(e,t,n,"fantasy-land/reduce");if(null!=n[u])return a(e,t,n[u]());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){"use strict";var r=n(12);function i(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}var o=n(218);var a=n(85),s=n(369),u=n(95),c=n(279);function l(e,t,n,r){var a=i(e),s=i(t);function u(e,t){return f(e,t,n.slice(),r.slice())}return!Object(o.a)((function(e,t){return!Object(o.a)(u,t,e)}),s,a)}function f(e,t,n,r){if(Object(s.a)(e,t))return!0;var i,o,d=Object(c.a)(e);if(d!==Object(c.a)(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(d){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(i=e.constructor,null==(o=String(i).match(/^function (\w*)/))?"":o[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!Object(s.a)(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!Object(s.a)(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 p=n.length-1;p>=0;){if(n[p]===e)return r[p]===t;p-=1}switch(d){case"Map":return e.size===t.size&&l(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&l(e.values(),t.values(),n.concat([e]),r.concat([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 h=Object(u.a)(e);if(h.length!==Object(u.a)(t).length)return!1;var v=n.concat([e]),g=r.concat([t]);for(p=h.length-1;p>=0;){var m=h[p];if(!Object(a.a)(m,t)||!f(t[m],e[m],v,g))return!1;p-=1}return!0}var d=Object(r.a)((function(e,t){return f(e,t,[],[])}));t.a=d},function(e,t,n){var r=n(374)("wks"),i=n(292),o=n(74).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},function(e,t,n){"use strict";var r=n(12),i=n(70),o=n(219),a=n(88),s=n(54),u=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=s.a.init,e.prototype["@@transducer/result"]=s.a.result,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}(),c=Object(r.a)((function(e,t){return new u(e,t)})),l=n(77),f=n(95),d=Object(r.a)(Object(i.a)(["fantasy-land/map","map"],c,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return Object(l.a)(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return Object(a.a)((function(n,r){return n[r]=e(t[r]),n}),{},Object(f.a)(t));default:return Object(o.a)(e,t)}})));t.a=d},function(e,t,n){e.exports=!n(81)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(187),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.r(t);var i=n(2),o=n.n(i),a=(n(52),n(157)),s=n(622),u=n(176);function c(){return(c=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 l=n(624),f=n.n(l);n(1229);function d(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}var p=n(318),h=n.n(p);n.d(t,"MemoryRouter",(function(){return y})),n.d(t,"Prompt",(function(){return x})),n.d(t,"Redirect",(function(){return k})),n.d(t,"Route",(function(){return A})),n.d(t,"Router",(function(){return m})),n.d(t,"StaticRouter",(function(){return L})),n.d(t,"Switch",(function(){return N})),n.d(t,"__HistoryContext",(function(){return v})),n.d(t,"__RouterContext",(function(){return g})),n.d(t,"generatePath",(function(){return O})),n.d(t,"matchPath",(function(){return C})),n.d(t,"useHistory",(function(){return U})),n.d(t,"useLocation",(function(){return z})),n.d(t,"useParams",(function(){return V})),n.d(t,"useRouteMatch",(function(){return H})),n.d(t,"withRouter",(function(){return F}));var v=function(e){var t=Object(s.a)();return t.displayName=e,t}("Router-History"),g=function(e){var t=Object(s.a)();return t.displayName=e,t}("Router"),m=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}r(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 o.a.createElement(g.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},o.a.createElement(v.Provider,{children:this.props.children||null,value:this.props.history}))},t}(o.a.Component);var y=function(e){function t(){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).history=Object(a.d)(t.props),t}return r(t,e),t.prototype.render=function(){return o.a.createElement(m,{history:this.history,children:this.props.children})},t}(o.a.Component);var b=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(o.a.Component);function x(e){var t=e.message,n=e.when,r=void 0===n||n;return o.a.createElement(g.Consumer,null,(function(e){if(e||Object(u.a)(!1),!r||e.staticContext)return null;var n=e.history.block;return o.a.createElement(b,{onMount:function(e){e.release=n(t)},onUpdate:function(e,r){r.message!==t&&(e.release(),e.release=n(t))},onUnmount:function(e){e.release()},message:t})}))}var w={},_=1e4,S=0;function O(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(w[e])return w[e];var t=f.a.compile(e);return S<_&&(w[e]=t,S++),t}(e)(t,{pretty:!0})}function k(e){var t=e.computedMatch,n=e.to,r=e.push,i=void 0!==r&&r;return o.a.createElement(g.Consumer,null,(function(e){e||Object(u.a)(!1);var r=e.history,s=e.staticContext,l=i?r.push:r.replace,f=Object(a.c)(t?"string"==typeof n?O(n,t.params):c({},n,{pathname:O(n.pathname,t.params)}):n);return s?(l(f),null):o.a.createElement(b,{onMount:function(){l(f)},onUpdate:function(e,t){var n=Object(a.c)(t.to);Object(a.f)(n,c({},f,{key:n.key}))||l(f)},to:n})}))}var E={},j=1e4,T=0;function C(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(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,u=n.sensitive,c=void 0!==u&&u;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;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:f()(e,i,t),keys:i};return T<j&&(r[e]=o,T++),o}(n,{end:o,strict:s,sensitive:c}),i=r.regexp,a=r.keys,u=i.exec(e);if(!u)return null;var l=u[0],d=u.slice(1),p=e===l;return o&&!p?null:{path:n,url:"/"===n&&""===l?"/":l,isExact:p,params:a.reduce((function(e,t,n){return e[t.name]=d[n],e}),{})}}),null)}var A=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var e=this;return o.a.createElement(g.Consumer,null,(function(t){t||Object(u.a)(!1);var n=e.props.location||t.location,r=c({},t,{location:n,match:e.props.computedMatch?e.props.computedMatch:e.props.path?C(n.pathname,e.props):t.match}),i=e.props,a=i.children,s=i.component,l=i.render;return Array.isArray(a)&&0===a.length&&(a=null),o.a.createElement(g.Provider,{value:r},r.match?a?"function"==typeof a?a(r):a:s?o.a.createElement(s,r):l?l(r):null:"function"==typeof a?a(r):null)}))},t}(o.a.Component);function P(e){return"/"===e.charAt(0)?e:"/"+e}function M(e,t){if(!e)return t;var n=P(e);return 0!==t.pathname.indexOf(n)?t:c({},t,{pathname:t.pathname.substr(n.length)})}function I(e){return"string"==typeof e?e:Object(a.e)(e)}function R(e){return function(){Object(u.a)(!1)}}function D(){}var L=function(e){function t(){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).handlePush=function(e){return t.navigateTo(e,"PUSH")},t.handleReplace=function(e){return t.navigateTo(e,"REPLACE")},t.handleListen=function(){return D},t.handleBlock=function(){return D},t}r(t,e);var n=t.prototype;return n.navigateTo=function(e,t){var n=this.props,r=n.basename,i=void 0===r?"":r,o=n.context,s=void 0===o?{}:o;s.action=t,s.location=function(e,t){return e?c({},t,{pathname:P(e)+t.pathname}):t}(i,Object(a.c)(e)),s.url=I(s.location)},n.render=function(){var e=this.props,t=e.basename,n=void 0===t?"":t,r=e.context,i=void 0===r?{}:r,s=e.location,u=void 0===s?"/":s,l=d(e,["basename","context","location"]),f={createHref:function(e){return P(n+I(e))},action:"POP",location:M(n,Object(a.c)(u)),push:this.handlePush,replace:this.handleReplace,go:R(),goBack:R(),goForward:R(),listen:this.handleListen,block:this.handleBlock};return o.a.createElement(m,c({},l,{history:f,staticContext:i}))},t}(o.a.Component);var N=function(e){function t(){return e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var e=this;return o.a.createElement(g.Consumer,null,(function(t){t||Object(u.a)(!1);var n,r,i=e.props.location||t.location;return o.a.Children.forEach(e.props.children,(function(e){if(null==r&&o.a.isValidElement(e)){n=e;var a=e.props.path||e.props.from;r=a?C(i.pathname,c({},e.props,{path:a})):t.match}})),r?o.a.cloneElement(n,{location:i,computedMatch:r}):null}))},t}(o.a.Component);function F(e){var t="withRouter("+(e.displayName||e.name)+")",n=function(t){var n=t.wrappedComponentRef,r=d(t,["wrappedComponentRef"]);return o.a.createElement(g.Consumer,null,(function(t){return t||Object(u.a)(!1),o.a.createElement(e,c({},r,t,{ref:n}))}))};return n.displayName=t,n.WrappedComponent=e,h()(n,e)}var B=o.a.useContext;function U(){return B(v)}function z(){return B(g).location}function V(){var e=B(g).match;return e?e.params:{}}function H(e){var t=z(),n=B(g).match;return e?C(t.pathname,e):n}},function(e,t,n){"use strict";var r=n(29),i=n(85),o=n(499),a=!{toString:null}.propertyIsEnumerable("toString"),s=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],u=function(){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},l="function"!=typeof Object.keys||u?Object(r.a)((function(e){if(Object(e)!==e)return[];var t,n,r=[],l=u&&Object(o.a)(e);for(t in e)!Object(i.a)(t,e)||l&&"length"===t||(r[r.length]=t);if(a)for(n=s.length-1;n>=0;)t=s[n],Object(i.a)(t,e)&&!c(r,t)&&(r[r.length]=t),n-=1;return r})):Object(r.a)((function(e){return Object(e)!==e?[]:Object.keys(e)}));t.a=l},function(e,t,n){var r=n(68),i=n(639),o=n(199),a=Object.defineProperty;t.f=n(92)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(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){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1467);Object.defineProperty(t,"Alpha",{enumerable:!0,get:function(){return f(r).default}});var i=n(604);Object.defineProperty(t,"Checkboard",{enumerable:!0,get:function(){return f(i).default}});var o=n(1470);Object.defineProperty(t,"EditableInput",{enumerable:!0,get:function(){return f(o).default}});var a=n(1471);Object.defineProperty(t,"Hue",{enumerable:!0,get:function(){return f(a).default}});var s=n(1473);Object.defineProperty(t,"Raised",{enumerable:!0,get:function(){return f(s).default}});var u=n(1487);Object.defineProperty(t,"Saturation",{enumerable:!0,get:function(){return f(u).default}});var c=n(777);Object.defineProperty(t,"ColorWrap",{enumerable:!0,get:function(){return f(c).default}});var l=n(1495);function f(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"Swatch",{enumerable:!0,get:function(){return f(l).default}})},function(e,t,n){"use strict";var r=n(212),i=n(34),o=Object(i.a)(Object(r.a)("slice",(function(e,t,n){return Array.prototype.slice.call(n,e,t)})));t.a=o},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(1170)},function(e,t,n){"use strict";function r(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,u){return t.apply(this,arguments)};case 9:return function(e,n,r,i,o,a,s,u,c){return t.apply(this,arguments)};case 10:return function(e,n,r,i,o,a,s,u,c,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(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}n.d(t,"a",(function(){return r}))},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;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)} /*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */!function(){"use strict";var o={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=i(n);if("string"===r||"number"===r)e.push(n);else if(Array.isArray(n)&&n.length){var s=a.apply(null,n);s&&e.push(s)}else if("object"===r)for(var u in n)o.call(n,u)&&n[u]&&e.push(u)}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):"object"===i(n(692))&&n(692)?void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r):window.classNames=a}()},function(e,t,n){"use strict";var r=n(84),i=n(40),o=n(217);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return y})),n.d(t,"e",(function(){return b})),n.d(t,"d",(function(){return x})),n.d(t,"f",(function(){return _})),n.d(t,"g",(function(){return S}));var u,c,l={m:"margin",p:"padding"},f={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},d={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},p=(u=function(e){if(e.length>2){if(!d[e])return[e];e=d[e]}var t=a(e.split(""),2),n=t[0],r=t[1],i=l[n],o=f[r]||"";return Array.isArray(o)?o.map((function(e){return i+e})):[i+o]},c={},function(e){return void 0===c[e]&&(c[e]=u(e)),c[e]}),h=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],v=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],g=[].concat(h,v);function m(e,t,n,r){var o,a=null!=(o=Object(i.b)(e,t,!1))?o:n;return"number"==typeof a?function(e){return"string"==typeof e?e:a*e}:Array.isArray(a)?function(e){return"string"==typeof e?e:a[e]}:"function"==typeof a?a:function(){}}function y(e){return m(e,"spacing",8)}function b(e,t){if("string"==typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:"-".concat(n)}function x(e,t){return function(n){return e.reduce((function(e,r){return e[r]=b(t,n),e}),{})}}function w(e,t){var n=y(e.theme);return Object.keys(e).map((function(i){return function(e,t,n,i){if(-1===t.indexOf(n))return null;var o=x(p(n),i),a=e[n];return Object(r.c)(e,a,o)}(e,t,i,n)})).reduce(o.a,{})}function _(e){return w(e,h)}function S(e){return w(e,v)}function O(e){return w(e,g)}_.propTypes={},_.filterProps=h,S.propTypes={},S.filterProps=v,O.propTypes={},O.filterProps=g;t.c=O},function(e,t,n){"use strict";var r=n(34),i=n(88),o=Object(r.a)(i.a);t.a=o},,function(e,t,n){"use strict";var r=n(12),i=n(143),o=Object(r.a)((function(e,t){return Object(i.a)([e],t)}));t.a=o},,function(e,t,n){var r=n(200);e.exports=function(e){return Object(r(e))}},function(e,t,n){"use strict";var r=n(466);n.d(t,"a",(function(){return r.a}));var i=n(342);n.d(t,"b",(function(){return i.a}));var o=n(181);n.d(t,"c",(function(){return o.a}));var a=n(149);n.d(t,"d",(function(){return a.a}));var s=n(348);n.d(t,"e",(function(){return s.a}));var u=n(128);n.d(t,"f",(function(){return u.a}))},function(e,t,n){"use strict";var r=n(507);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)}var o="object"==("undefined"==typeof self?"undefined":i(self))&&self&&self.Object===Object&&self,a=r.a||o||Function("return this")();t.a=a},function(e,t,n){"use strict";t.a=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var r=n(2),i=r.createContext({});t.a=i},,,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}));var r=function(e){var t=e.date,n=e.disableFuture,r=e.disablePast,i=e.maxDate,o=e.minDate,a=e.isDateDisabled,s=e.utils,u=s.startOfDay(s.date());r&&s.isBefore(o,u)&&(o=u),n&&s.isAfter(i,u)&&(i=u);var c=t,l=t;for(s.isBefore(t,o)&&(c=s.date(o),l=null),s.isAfter(t,i)&&(l&&(l=s.date(i)),c=null);c||l;){if(c&&s.isAfter(c,i)&&(c=null),l&&s.isBefore(l,o)&&(l=null),c){if(!a(c))return c;c=s.addDays(c,1)}if(l){if(!a(l))return l;l=s.addDays(l,-1)}}return null},i=function(e,t){var n=e.date(t);return e.isValid(n)?n:null},o=function(e,t,n){if(null==t)return n;var r=e.date(t);return e.isValid(r)?r:n}},,,function(e,t,n){"use strict";var r=n(217);t.a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.reduce((function(e,t){return t.filterProps.forEach((function(n){e[n]=t})),e}),{}),o=function(e){return Object.keys(e).reduce((function(t,n){return i[n]?Object(r.a)(t,i[n](e)):t}),{})};return o.propTypes={},o.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),o}},function(e,t,n){"use strict";var r=n(244);t.a=r.a},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(2),i=r.createContext(null)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(2),i=n(274);function o(){return r.useContext(i.a)}},,function(e,t,n){"use strict";var r=n(2),i=n(312);n(391),n(605);var o=n(136),a=n(196);n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return y})),n.d(t,"c",(function(){return d})),n.d(t,"d",(function(){return l})),n.d(t,"e",(function(){return g})),n.d(t,"f",(function(){return s})),n.d(t,"g",(function(){return h})),n.d(t,"h",(function(){return f}));var s={}.hasOwnProperty,u=Object(r.createContext)("undefined"!=typeof HTMLElement?Object(i.a)({key:"css"}):null);var c=u.Provider,l=function(){return Object(r.useContext)(u)},f=function(e){return Object(r.forwardRef)((function(t,n){var i=Object(r.useContext)(u);return e(t,i,n)}))},d=Object(r.createContext)({});var p=r.useInsertionEffect?r.useInsertionEffect:function(e){e()};function h(e){p(e)}var v="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",g=function(e,t){var n={};for(var r in t)s.call(t,r)&&(n[r]=t[r]);return n[v]=e,n},m=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Object(o.c)(t,n,r);h((function(){return Object(o.b)(t,n,r)}));return null},y=f((function(e,t,n){var i=e.css;"string"==typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var u=e[v],c=[i],l="";"string"==typeof e.className?l=Object(o.a)(t.registered,c,e.className):null!=e.className&&(l=e.className+" ");var f=Object(a.a)(c,void 0,Object(r.useContext)(d));l+=t.key+"-"+f.name;var p={};for(var h in e)s.call(e,h)&&"css"!==h&&h!==v&&(p[h]=e[h]);return p.ref=n,p.className=l,Object(r.createElement)(r.Fragment,null,Object(r.createElement)(m,{cache:t,serialized:f,isStringTag:"string"==typeof u}),Object(r.createElement)(u,p))}))},,function(e,t,n){e.exports=n(1238)},function(e,t,n){"use strict";n.d(t,"e",(function(){return T})),n.d(t,"d",(function(){return C})),n.d(t,"b",(function(){return A})),n.d(t,"a",(function(){return P}));var r=n(16),i=n(6),o=n(314),a=n(2),s=n(17),u=n(158),c=n(1560),l=n(149),f=n(140),d=n(274),p=n(122),h=n(15),v=n(20),g=n(18),m=n(62),y=n(120),b=n(886),x=n(316),w=n(234),_=n(5);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 O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function E(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==S(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==S(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===S(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var j=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","startAdornment","type","value"],T=function(e,t){var n=e.ownerState;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t["color".concat(Object(g.a)(n.color))],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},C=function(e,t){var n=e.ownerState;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},A=Object(h.a)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:T})((function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({},t.typography.body1,E({color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center"},"&.".concat(w.a.disabled),{color:(t.vars||t).palette.text.disabled,cursor:"default"}),n.multiline&&Object(i.a)({padding:"4px 0 5px"},"small"===n.size&&{paddingTop:1}),n.fullWidth&&{width:"100%"})})),P=Object(h.a)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:C})((function(e){var t=e.theme,n=e.ownerState,r="light"===t.palette.mode,o=Object(i.a)({color:"currentColor"},t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})}),a={opacity:"0 !important"},s=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return Object(i.a)(E(E(E({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"}},"label[data-shrink=false] + .".concat(w.a.formControl," &"),{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus:-ms-input-placeholder":s,"&:focus::-ms-input-placeholder":s}),"&.".concat(w.a.disabled),{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled}),"&:-webkit-autofill",{animationDuration:"5000s",animationName:"mui-auto-fill"}),"small"===n.size&&{paddingTop:1},n.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===n.type&&{MozAppearance:"textfield"})})),M=Object(_.jsx)(b.a,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),I=a.forwardRef((function(e,t){var n=Object(v.a)({props:e,name:"MuiInputBase"}),h=n["aria-describedby"],b=n.autoComplete,S=n.autoFocus,k=n.className,E=n.components,T=void 0===E?{}:E,C=n.componentsProps,I=void 0===C?{}:C,R=n.defaultValue,D=n.disabled,L=n.disableInjectingGlobalStyles,N=n.endAdornment,F=n.fullWidth,B=void 0!==F&&F,U=n.id,z=n.inputComponent,V=void 0===z?"input":z,H=n.inputProps,W=void 0===H?{}:H,q=n.inputRef,G=n.maxRows,Y=n.minRows,K=n.multiline,$=void 0!==K&&K,X=n.name,Q=n.onBlur,Z=n.onChange,J=n.onClick,ee=n.onFocus,te=n.onKeyDown,ne=n.onKeyUp,re=n.placeholder,ie=n.readOnly,oe=n.renderSuffix,ae=n.rows,se=n.startAdornment,ue=n.type,ce=void 0===ue?"text":ue,le=n.value,fe=Object(r.a)(n,j),de=null!=W.value?W.value:le,pe=a.useRef(null!=de).current,he=a.useRef(),ve=a.useCallback((function(e){0}),[]),ge=Object(m.a)(W.ref,ve),me=Object(m.a)(q,ge),ye=Object(m.a)(he,me),be=O(a.useState(!1),2),xe=be[0],we=be[1],_e=Object(p.a)();var Se=Object(f.a)({props:n,muiFormControl:_e,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Se.focused=_e?_e.focused:xe,a.useEffect((function(){!_e&&D&&xe&&(we(!1),Q&&Q())}),[_e,D,xe,Q]);var Oe=_e&&_e.onFilled,ke=_e&&_e.onEmpty,Ee=a.useCallback((function(e){Object(x.b)(e)?Oe&&Oe():ke&&ke()}),[Oe,ke]);Object(y.a)((function(){pe&&Ee({value:de})}),[de,Ee,pe]);a.useEffect((function(){Ee(he.current)}),[]);var je=V,Te=W;$&&"input"===je&&(Te=ae?Object(i.a)({type:void 0,minRows:ae,maxRows:ae},Te):Object(i.a)({type:void 0,maxRows:G,minRows:Y},Te),je=c.a);a.useEffect((function(){_e&&_e.setAdornedStart(Boolean(se))}),[_e,se]);var Ce=Object(i.a)({},n,{color:Se.color||"primary",disabled:Se.disabled,endAdornment:N,error:Se.error,focused:Se.focused,formControl:_e,fullWidth:B,hiddenLabel:Se.hiddenLabel,multiline:$,size:Se.size,startAdornment:se,type:ce}),Ae=function(e){var t=e.classes,n=e.color,r=e.disabled,i=e.error,o=e.endAdornment,a=e.focused,s=e.formControl,c=e.fullWidth,l=e.hiddenLabel,f=e.multiline,d=e.readOnly,p=e.size,h=e.startAdornment,v=e.type,m={root:["root","color".concat(Object(g.a)(n)),r&&"disabled",i&&"error",c&&"fullWidth",a&&"focused",s&&"formControl","small"===p&&"sizeSmall",f&&"multiline",h&&"adornedStart",o&&"adornedEnd",l&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===v&&"inputTypeSearch",f&&"inputMultiline","small"===p&&"inputSizeSmall",l&&"inputHiddenLabel",h&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]};return Object(u.a)(m,w.b,t)}(Ce),Pe=T.Root||A,Me=I.root||{},Ie=T.Input||P;return Te=Object(i.a)({},Te,I.input),Object(_.jsxs)(a.Fragment,{children:[!L&&M,Object(_.jsxs)(Pe,Object(i.a)({},Me,!Object(l.a)(Pe)&&{ownerState:Object(i.a)({},Ce,Me.ownerState)},{ref:t,onClick:function(e){he.current&&e.currentTarget===e.target&&he.current.focus(),J&&J(e)}},fe,{className:Object(s.default)(Ae.root,Me.className,k),children:[se,Object(_.jsx)(d.a.Provider,{value:null,children:Object(_.jsx)(Ie,Object(i.a)({ownerState:Ce,"aria-invalid":Se.error,"aria-describedby":h,autoComplete:b,autoFocus:S,defaultValue:R,disabled:Se.disabled,id:U,onAnimationStart:function(e){Ee("mui-auto-fill-cancel"===e.animationName?he.current:{value:"x"})},name:X,placeholder:re,readOnly:ie,required:Se.required,rows:ae,value:de,onKeyDown:te,onKeyUp:ne,type:ce},Te,!Object(l.a)(Ie)&&{as:je,ownerState:Object(i.a)({},Ce,Te.ownerState)},{ref:ye,className:Object(s.default)(Ae.input,Te.className),onBlur:function(e){Q&&Q(e),W.onBlur&&W.onBlur(e),_e&&_e.onBlur?_e.onBlur(e):we(!1)},onChange:function(e){if(!pe){var t=e.target||he.current;if(null==t)throw new Error(Object(o.a)(1));Ee({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];W.onChange&&W.onChange.apply(W,[e].concat(r)),Z&&Z.apply(void 0,[e].concat(r))},onFocus:function(e){Se.disabled?e.stopPropagation():(ee&&ee(e),W.onFocus&&W.onFocus(e),_e&&_e.onFocus?_e.onFocus(e):we(!0))}}))}),N,oe?oe(Object(i.a)({},Se,{startAdornment:se})):null]}))]})}));t.c=I},function(e,t,n){"use strict";var r=n(6),i=n(16),o=n(289),a=n(466),s=n(17),u=n(181);function c(e){if(void 0===e)return{};var t={};return Object.keys(e).filter((function(t){return!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])})).forEach((function(n){t[n]=e[n]})),t}var l=n(348);n.d(t,"a",(function(){return d}));var f=["elementType","externalSlotProps","ownerState"];function d(e){var t,n=e.elementType,d=e.externalSlotProps,p=e.ownerState,h=Object(i.a)(e,f),v=Object(l.a)(d,p),g=function(e){var t=e.getSlotProps,n=e.additionalProps,i=e.externalSlotProps,o=e.externalForwardedProps,a=e.className;if(!t){var l=Object(s.default)(null==o?void 0:o.className,null==i?void 0:i.className,a,null==n?void 0:n.className),f=Object(r.a)({},null==n?void 0:n.style,null==o?void 0:o.style,null==i?void 0:i.style),d=Object(r.a)({},n,o,i);return l.length>0&&(d.className=l),Object.keys(f).length>0&&(d.style=f),{props:d,internalRef:void 0}}var p=Object(u.a)(Object(r.a)({},o,i)),h=c(i),v=c(o),g=t(p),m=Object(s.default)(null==g?void 0:g.className,null==n?void 0:n.className,a,null==o?void 0:o.className,null==i?void 0:i.className),y=Object(r.a)({},null==g?void 0:g.style,null==n?void 0:n.style,null==o?void 0:o.style,null==i?void 0:i.style),b=Object(r.a)({},g,n,v,h);return m.length>0&&(b.className=m),Object.keys(y).length>0&&(b.style=y),{props:b,internalRef:g.ref}}(Object(r.a)({},h,{externalSlotProps:v})),m=g.props,y=g.internalRef,b=Object(o.a)(y,Object(o.a)(null==v?void 0:v.ref,null==(t=e.additionalProps)?void 0:t.ref));return Object(a.a)(n,Object(r.a)({},m,{ref:b}),p)}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";function r(e){return(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})(e)}var i,o=n(698),a=Object.prototype.toString,s=(i=Object.create(null),function(e){var t=a.call(e);return i[t]||(i[t]=t.slice(8,-1).toLowerCase())});function u(e){return e=e.toLowerCase(),function(t){return s(t)===e}}function c(e){return Array.isArray(e)}function l(e){return void 0===e}var f=u("ArrayBuffer");function d(e){return null!==e&&"object"===r(e)}function p(e){if("object"!==s(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var h=u("Date"),v=u("File"),g=u("Blob"),m=u("FileList");function y(e){return"[object Function]"===a.call(e)}var b=u("URLSearchParams");function x(e,t){if(null!=e)if("object"!==r(e)&&(e=[e]),c(e))for(var n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var w,_=(w="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return w&&e instanceof w});e.exports={isArray:c,isArrayBuffer:f,isBuffer:function(e){return null!==e&&!l(e)&&null!==e.constructor&&!l(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return e&&("function"==typeof FormData&&e instanceof FormData||"[object FormData]"===a.call(e)||y(e.toString)&&"[object FormData]"===e.toString())},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&f(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:d,isPlainObject:p,isUndefined:l,isDate:h,isFile:v,isBlob:g,isFunction:y,isStream:function(e){return d(e)&&y(e.pipe)},isURLSearchParams:b,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:x,merge:function e(){var t={};function n(n,r){p(t[r])&&p(n)?t[r]=e(t[r],n):p(n)?t[r]=e({},n):c(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)x(arguments[r],n);return t},extend:function(e,t,n){return x(t,(function(t,r){e[r]=n&&"function"==typeof t?o(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var r,i,o,a={};t=t||{};do{for(i=(r=Object.getOwnPropertyNames(e)).length;i-- >0;)a[o=r[i]]||(t[o]=e[o],a[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:u,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(l(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:_,isFileList:m}},,function(e,t,n){"use strict";var r=n(2),i=n.n(r),o=n(99);function a(e){return(a="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 s(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"===a(e))if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=s(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}var u=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=s(e))&&(r&&(r+=" "),r+=t);return r},c=n(1653),l=n(15),f=n(177),d=n(1678),p=n(486),h=n(1644);n(318);function v(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 g(){return(g=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 m(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}function y(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 L})),n.d(t,"b",(function(){return ie})),n.d(t,"c",(function(){return oe}));var b=i.a.createContext(),x={containerRoot:{},containerAnchorOriginTopCenter:{},containerAnchorOriginBottomCenter:{},containerAnchorOriginTopRight:{},containerAnchorOriginBottomRight:{},containerAnchorOriginTopLeft:{},containerAnchorOriginBottomLeft:{}},w={default:20,dense:4},_={default:6,dense:2},S={maxSnack:3,dense:!1,hideIconVariant:!1,variant:"default",autoHideDuration:5e3,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:c.a,transitionDuration:{enter:225,exit:195}},O=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},k=function(e){return Object.keys(e).filter((function(e){return!x[e]})).reduce((function(t,n){var r;return g({},t,((r={})[n]=e[n],r))}),{})},E={TIMEOUT:"timeout",CLICKAWAY:"clickaway",MAXSNACK:"maxsnack",INSTRUCTED:"instructed"},j=function(e){return"containerAnchorOrigin"+e},T=function(e){var t=e.vertical,n=e.horizontal;return"anchorOrigin"+O(t)+O(n)},C=function(e){return"variant"+O(e)},A=function(e){return!!e||0===e},P=function(e){return"number"==typeof e||null===e},M=function(e,t,n){return function(r){return"autoHideDuration"===r?P(e.autoHideDuration)?e.autoHideDuration:P(t.autoHideDuration)?t.autoHideDuration:S.autoHideDuration:e[r]||t[r]||n[r]}};function I(e,t,n){return void 0===e&&(e={}),void 0===t&&(t={}),void 0===n&&(n={}),g({},n,{},t,{},e)}var R={root:"SnackbarContent-root"},D=Object(l.a)("div")((function(e){var t,n,r=e.theme;return(n={})["&."+R.root]=((t={display:"flex",flexWrap:"wrap",flexGrow:1})[r.breakpoints.up("sm")]={flexGrow:"initial",minWidth:288},t),n})),L=Object(r.forwardRef)((function(e,t){var n=e.className,r=m(e,["className"]);return(i.a.createElement(D,Object.assign({ref:t,className:u(R.root,n)},r)))})),N={right:"left",left:"right",bottom:"up",top:"down"},F=function(e){return"center"!==e.horizontal?N[e.horizontal]:N[e.vertical]},B=function(e){return i.a.createElement(p.a,Object.assign({},e),i.a.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41\n 10.59L10 14.17L17.59 6.58L19 8L10 17Z"}))},U=function(e){return i.a.createElement(p.a,Object.assign({},e),i.a.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},z=function(e){return i.a.createElement(p.a,Object.assign({},e),i.a.createElement("path",{d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,\n 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,\n 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"}))},V=function(e){return i.a.createElement(p.a,Object.assign({},e),i.a.createElement("path",{d:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,\n 0 22,12A10,10 0 0,0 12,2Z"}))},H={fontSize:20,marginInlineEnd:8},W={default:void 0,success:i.a.createElement(B,{style:H}),warning:i.a.createElement(U,{style:H}),error:i.a.createElement(z,{style:H}),info:i.a.createElement(V,{style:H})};function q(e,t){return e.reduce((function(e,n){return null==n?e:function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=[].concat(i);t&&-1===a.indexOf(t)&&a.push(t),e.apply(this,a),n.apply(this,a)}}),(function(){}))}var G="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;function Y(e){var t=Object(r.useRef)(e);return G((function(){t.current=e})),Object(r.useCallback)((function(){return t.current.apply(void 0,arguments)}),[])}var K=Object(r.forwardRef)((function(e,t){var n=e.children,i=e.autoHideDuration,o=e.ClickAwayListenerProps,a=e.disableWindowBlurListener,s=void 0!==a&&a,u=e.onClose,c=e.onMouseEnter,l=e.onMouseLeave,f=e.open,d=e.resumeHideDuration,p=m(e,["children","autoHideDuration","ClickAwayListenerProps","disableWindowBlurListener","onClose","onMouseEnter","onMouseLeave","open","resumeHideDuration"]),v=Object(r.useRef)(),y=Y((function(){u&&u.apply(void 0,arguments)})),b=Y((function(e){u&&null!=e&&(clearTimeout(v.current),v.current=setTimeout((function(){y(null,E.TIMEOUT)}),e))}));Object(r.useEffect)((function(){return f&&b(i),function(){clearTimeout(v.current)}}),[f,i,b]);var x=function(){clearTimeout(v.current)},w=Object(r.useCallback)((function(){null!=i&&b(null!=d?d:.5*i)}),[i,d,b]);return Object(r.useEffect)((function(){if(!s&&f)return window.addEventListener("focus",w),window.addEventListener("blur",x),function(){window.removeEventListener("focus",w),window.removeEventListener("blur",x)}}),[s,w,f]),Object(r.createElement)(h.a,g({onClickAway:function(e){u&&u(e,E.CLICKAWAY)}},o),Object(r.createElement)("div",g({onMouseEnter:function(e){c&&c(e),x()},onMouseLeave:function(e){l&&l(e),w()},ref:t},p),n))})),$={contentRoot:"SnackbarItem-contentRoot",lessPadding:"SnackbarItem-lessPadding",variantSuccess:"SnackbarItem-variantSuccess",variantError:"SnackbarItem-variantError",variantInfo:"SnackbarItem-variantInfo",variantWarning:"SnackbarItem-variantWarning",message:"SnackbarItem-message",action:"SnackbarItem-action",wrappedRoot:"SnackbarItem-wrappedRoot"},X=Object(l.a)(K)((function(e){var t,n=e.theme,r=n.palette.mode||n.palette.type,i=Object(f.e)(n.palette.background.default,"light"===r?.8:.98);return(t={})["&."+$.wrappedRoot]={position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0},t["."+$.contentRoot]=g({},n.typography.body2,{backgroundColor:i,color:n.palette.getContrastText(i),alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"}),t["."+$.lessPadding]={paddingLeft:20},t["."+$.variantSuccess]={backgroundColor:"#43a047",color:"#fff"},t["."+$.variantError]={backgroundColor:"#d32f2f",color:"#fff"},t["."+$.variantInfo]={backgroundColor:"#2196f3",color:"#fff"},t["."+$.variantWarning]={backgroundColor:"#ff9800",color:"#fff"},t["."+$.message]={display:"flex",alignItems:"center",padding:"8px 0"},t["."+$.action]={display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8},t})),Q=function(e){var t=e.classes,n=m(e,["classes"]),o=Object(r.useRef)(),a=Object(r.useState)(!0),s=a[0],c=a[1];Object(r.useEffect)((function(){return function(){o.current&&clearTimeout(o.current)}}),[]);var l=q([n.snack.onClose,n.onClose],n.snack.key),f=n.style,p=n.ariaAttributes,h=n.className,v=n.hideIconVariant,y=n.iconVariant,b=n.snack,x=n.action,w=n.content,_=n.TransitionComponent,O=n.TransitionProps,k=n.transitionDuration,j=m(n,["style","dense","ariaAttributes","className","hideIconVariant","iconVariant","snack","action","content","TransitionComponent","TransitionProps","transitionDuration","onEnter","onEntered","onEntering","onExit","onExited","onExiting"]),A=b.key,P=b.open,M=b.className,R=b.variant,D=b.content,N=b.action,B=b.ariaAttributes,U=b.anchorOrigin,z=b.message,V=b.TransitionComponent,H=b.TransitionProps,G=b.transitionDuration,Y=m(b,["persist","key","open","entered","requestClose","className","variant","content","action","ariaAttributes","anchorOrigin","message","TransitionComponent","TransitionProps","transitionDuration","onEnter","onEntered","onEntering","onExit","onExited","onExiting"]),K=g({},W,{},y)[R],Q=g({"aria-describedby":"notistack-snackbar"},I(B,p)),Z=V||_||S.TransitionComponent,J=I(G,k,S.transitionDuration),ee=g({direction:F(U)},I(H,O)),te=N||x;"function"==typeof te&&(te=te(A));var ne=D||w;"function"==typeof ne&&(ne=ne(A,b.message));var re=["onEnter","onEntering","onEntered","onExit","onExiting","onExited"].reduce((function(e,t){var r;return g({},e,((r={})[t]=q([n.snack[t],n[t]],n.snack.key),r))}),{});return(i.a.createElement(d.a,{unmountOnExit:!0,timeout:175,in:s,onExited:re.onExited},i.a.createElement(X,Object.assign({},j,Y,{open:P,className:u(t.root,$.wrappedRoot,t[T(U)]),onClose:l}),i.a.createElement(Z,Object.assign({appear:!0,in:P,timeout:J},ee,{onExit:re.onExit,onExiting:re.onExiting,onExited:function(){o.current=setTimeout((function(){c(!s)}),125)},onEnter:re.onEnter,onEntering:re.onEntering,onEntered:q([re.onEntered,function(){n.snack.requestClose&&l(null,E.INSTRCUTED)}])}),ne||i.a.createElement(L,Object.assign({},Q,{role:"alert",style:f,className:u($.contentRoot,$[C(R)],t[C(R)],h,M,!v&&K&&$.lessPadding)}),i.a.createElement("div",{id:Q["aria-describedby"],className:$.message},v?null:K,z),te&&i.a.createElement("div",{className:$.action},te))))))},Z="& > .MuiCollapse-container, & > .MuiCollapse-root",J="& > .MuiCollapse-container > .MuiCollapse-wrapper, & > .MuiCollapse-root > .MuiCollapse-wrapper",ee={root:"SnackbarContainer-root",rootDense:"SnackbarContainer-rootDense",top:"SnackbarContainer-top",bottom:"SnackbarContainer-bottom",left:"SnackbarContainer-left",right:"SnackbarContainer-right",center:"SnackbarContainer-center"},te=Object(l.a)("div")((function(e){var t,n,r,i,o,a,s=e.theme;return(a={})["&."+ee.root]=((t={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:s.zIndex.snackbar,height:"auto",width:"auto",transition:"top 300ms ease 0ms, right 300ms ease 0ms, bottom 300ms ease 0ms, left 300ms ease 0ms, margin 300ms ease 0ms, max-width 300ms ease 0ms",pointerEvents:"none"})[Z]={pointerEvents:"all"},t[J]={padding:_.default+"px 0px",transition:"padding 300ms ease 0ms"},t.maxWidth="calc(100% - "+2*w.default+"px)",t[s.breakpoints.down("sm")]={width:"100%",maxWidth:"calc(100% - 32px)"},t),a["&."+ee.rootDense]=((n={})[J]={padding:_.dense+"px 0px"},n),a["&."+ee.top]={top:w.default-_.default,flexDirection:"column"},a["&."+ee.bottom]={bottom:w.default-_.default,flexDirection:"column-reverse"},a["&."+ee.left]=((r={left:w.default})[s.breakpoints.up("sm")]={alignItems:"flex-start"},r[s.breakpoints.down("sm")]={left:"16px"},r),a["&."+ee.right]=((i={right:w.default})[s.breakpoints.up("sm")]={alignItems:"flex-end"},i[s.breakpoints.down("sm")]={right:"16px"},i),a["&."+ee.center]=((o={left:"50%",transform:"translateX(-50%)"})[s.breakpoints.up("sm")]={alignItems:"center"},o),a})),ne=function(e){var t=e.className,n=e.anchorOrigin,r=e.dense,o=m(e,["className","anchorOrigin","dense"]),a=u(ee[n.vertical],ee[n.horizontal],ee.root,t,r&&ee.rootDense);return i.a.createElement(te,Object.assign({className:a},o))},re=i.a.memo(ne),ie=function(e){var t,n,r,a,s;function c(t){var n;return(n=e.call(this,t)||this).enqueueSnackbar=function(e,t){void 0===t&&(t={});var r=t,i=r.key,o=r.preventDuplicate,a=m(r,["key","preventDuplicate"]),s=A(i),u=s?i:(new Date).getTime()+Math.random(),c=M(a,n.props,S),l=g({key:u},a,{message:e,open:!0,entered:!1,requestClose:!1,variant:c("variant"),anchorOrigin:c("anchorOrigin"),autoHideDuration:c("autoHideDuration")});return a.persist&&(l.autoHideDuration=void 0),n.setState((function(t){if(void 0===o&&n.props.preventDuplicate||o){var r=function(t){return s?t.key===i:t.message===e},a=t.queue.findIndex(r)>-1,u=t.snacks.findIndex(r)>-1;if(a||u)return t}return n.handleDisplaySnack(g({},t,{queue:[].concat(t.queue,[l])}))})),u},n.handleDisplaySnack=function(e){return e.snacks.length>=n.maxSnack?n.handleDismissOldest(e):n.processQueue(e)},n.processQueue=function(e){var t=e.queue,n=e.snacks;return t.length>0?g({},e,{snacks:[].concat(n,[t[0]]),queue:t.slice(1,t.length)}):e},n.handleDismissOldest=function(e){if(e.snacks.some((function(e){return!e.open||e.requestClose})))return e;var t=!1,r=!1;e.snacks.reduce((function(e,t){return e+(t.open&&t.persist?1:0)}),0)===n.maxSnack&&(r=!0);var i=e.snacks.map((function(e){return t||e.persist&&!r?g({},e):(t=!0,e.entered?(e.onClose&&e.onClose(null,E.MAXSNACK,e.key),n.props.onClose&&n.props.onClose(null,E.MAXSNACK,e.key),g({},e,{open:!1})):g({},e,{requestClose:!0}))}));return g({},e,{snacks:i})},n.handleEnteredSnack=function(e,t,r){if(!A(r))throw new Error("handleEnteredSnack Cannot be called with undefined key");n.setState((function(e){return{snacks:e.snacks.map((function(e){return e.key===r?g({},e,{entered:!0}):g({},e)}))}}))},n.handleCloseSnack=function(e,t,r){if(n.props.onClose&&n.props.onClose(e,t,r),t!==E.CLICKAWAY){var i=void 0===r;n.setState((function(e){var t=e.snacks,n=e.queue;return{snacks:t.map((function(e){return i||e.key===r?e.entered?g({},e,{open:!1}):g({},e,{requestClose:!0}):g({},e)})),queue:n.filter((function(e){return e.key!==r}))}}))}},n.closeSnackbar=function(e){var t=n.state.snacks.find((function(t){return t.key===e}));A(e)&&t&&t.onClose&&t.onClose(null,E.INSTRUCTED,e),n.handleCloseSnack(null,E.INSTRUCTED,e)},n.handleExitedSnack=function(e,t,r){var i=t||r;if(!A(i))throw new Error("handleExitedSnack Cannot be called with undefined key");n.setState((function(e){var t=n.processQueue(g({},e,{snacks:e.snacks.filter((function(e){return e.key!==i}))}));return 0===t.queue.length?t:n.handleDismissOldest(t)}))},n.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:n.enqueueSnackbar.bind(y(n)),closeSnackbar:n.closeSnackbar.bind(y(n))}},n}return n=e,(t=c).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,c.prototype.render=function(){var e=this,t=this.state.contextValue,n=this.props,r=n.iconVariant,a=n.dense,s=void 0===a?S.dense:a,c=n.hideIconVariant,l=void 0===c?S.hideIconVariant:c,f=n.domRoot,d=n.children,p=n.classes,h=void 0===p?{}:p,v=m(n,["maxSnack","preventDuplicate","variant","anchorOrigin","iconVariant","dense","hideIconVariant","domRoot","children","classes"]),y=this.state.snacks.reduce((function(e,t){var n,r,i=(r=t.anchorOrigin,""+O(r.vertical)+O(r.horizontal)),o=e[i]||[];return g({},e,((n={})[i]=[].concat(o,[t]),n))}),{}),x=Object.keys(y).map((function(t){var n=y[t];return(i.a.createElement(re,{key:t,dense:s,anchorOrigin:n[0].anchorOrigin,className:u(h.containerRoot,h[j(t)])},n.map((function(t){return i.a.createElement(Q,Object.assign({},v,{key:t.key,snack:t,dense:s,iconVariant:r,hideIconVariant:l,classes:k(h),onClose:e.handleCloseSnack,onExited:q([e.handleExitedSnack,e.props.onExited]),onEntered:q([e.handleEnteredSnack,e.props.onEntered])}))}))))}));return i.a.createElement(b.Provider,{value:t},d,f?Object(o.createPortal)(x,f):x)},r=c,(a=[{key:"maxSnack",get:function(){return this.props.maxSnack||S.maxSnack}}])&&v(r.prototype,a),s&&v(r,s),c}(r.Component),oe=function(){return Object(r.useContext)(b)}},function(e,t,n){"use strict";var r=n(151);t.a=r.a},function(e,t,n){"use strict";var r=n(366);t.a=r.a},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i}));function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var i=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},o=function(e,t,n){i(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0);o=o.next}while(void 0!==o)}}},function(e,t,n){"use strict";function r(e){return(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})(e)}n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}));var i=function(e){return e.scrollTop};function o(e,t){var n,i,o=e.timeout,a=e.easing,s=e.style,u=void 0===s?{}:s;return{duration:null!=(n=u.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(i=u.transitionTimingFunction)?i:"object"===r(a)?a[t.mode]:a,delay:u.transitionDelay}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(884),i={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui",o=i[t];return o?"".concat(n,"-").concat(o):"".concat(r.a.generate(e),"-").concat(t)}},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";function r(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&void 0===t[n]&&(e[n]=r[n]),e}),{})}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return l}));var r=n(214),i=n(281),o=n(39);function a(e){return Math.min(1e3*Math.pow(2,e),3e4)}function s(e){return"function"==typeof(null==e?void 0:e.cancel)}var u=function(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent};function c(e){return e instanceof u}var l=function(e){var t,n,c,l,f=this,d=!1;this.cancel=function(e){return null==t?void 0:t(e)},this.cancelRetry=function(){d=!0},this.continue=function(){return null==n?void 0:n()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise((function(e,t){c=e,l=t}));var p=function(t){f.isResolved||(f.isResolved=!0,null==e.onSuccess||e.onSuccess(t),null==n||n(),c(t))},h=function(t){f.isResolved||(f.isResolved=!0,null==e.onError||e.onError(t),null==n||n(),l(t))};!function c(){if(!f.isResolved){var l;try{l=e.fn()}catch(e){l=Promise.reject(e)}t=function(e){if(!f.isResolved&&(h(new u(e)),s(l)))try{l.cancel()}catch(e){}},f.isTransportCancelable=s(l),Promise.resolve(l).then(p).catch((function(t){var s,u;if(!f.isResolved){var l=null!=(s=e.retry)?s:3,p=null!=(u=e.retryDelay)?u:a,v="function"==typeof p?p(f.failureCount,t):p,g=!0===l||"number"==typeof l&&f.failureCount<l||"function"==typeof l&&l(f.failureCount,t);!d&&g?(f.failureCount++,null==e.onFail||e.onFail(f.failureCount,t),Object(o.q)(v).then((function(){if(!r.a.isFocused()||!i.a.isOnline())return new Promise((function(t){n=t,f.isPaused=!0,null==e.onPause||e.onPause()})).then((function(){n=void 0,f.isPaused=!1,null==e.onContinue||e.onContinue()}))})).then((function(){d?h(t):c()}))):h(t)}}))}}()}},function(e,t,n){"use strict";function r(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(12),i=Object(r.a)((function(e,t){for(var n=t,r=0;r<e.length;){if(null==n)return;n=n[e[r]],r+=1}return n}));t.a=i},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(482),i=n(205);function o(){if(0===arguments.length)throw new Error("compose requires at least one argument");return r.a.apply(this,Object(i.a)(arguments))}},function(e,t,n){"use strict";var r=n(29),i=Object(r.a)((function(e){return null==e}));t.a=i},function(e,t){var n=e.exports={version:"2.6.10"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(375),i=n(200);e.exports=function(e){return r(i(e))}},function(e,t,n){"use strict";t.a=function(e){return"string"==typeof e}},,function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(138);function i(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui",i={};return t.forEach((function(t){i[t]=Object(r.a)(e,t,n)})),i}},function(e,t,n){"use strict";e.exports=n(1182)},,function(e,t,n){"use strict";var r=n(288);t.a=r.a},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return f})),n.d(t,"g",(function(){return d})),n.d(t,"h",(function(){return p}));var r=n(56),i=n(2),o=n(5),a=Object(r.a)(Object(o.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),s=Object(r.a)(Object(o.jsx)("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),u=Object(r.a)(Object(o.jsx)("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),c=Object(r.a)(Object(o.jsx)("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),l=Object(r.a)(Object(o.jsxs)(i.Fragment,{children:[Object(o.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),Object(o.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),f=Object(r.a)(Object(o.jsx)("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),d=Object(r.a)(Object(o.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Pen"),p=Object(r.a)(Object(o.jsxs)(i.Fragment,{children:[Object(o.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),Object(o.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time")},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)}function i(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}var a=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],a=t&&t.split("/")||[],s=e&&i(e),u=t&&i(t),c=s||u;if(e&&i(e)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){var l=a[a.length-1];n="."===l||".."===l||""===l}else n=!1;for(var f=0,d=a.length;d>=0;d--){var p=a[d];"."===p?o(a,d):".."===p?(o(a,d),f++):f&&(o(a,d),f--)}if(!c)for(;f--;f)a.unshift("..");!c||""===a[0]||a[0]&&i(a[0])||a.unshift("");var h=a.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};function s(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var u=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])}));if("object"==typeof t||"object"==typeof n){var r=s(t),i=s(n);return r!==t||i!==n?e(r,i):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1},c=n(176);function l(e){return"/"===e.charAt(0)?e:"/"+e}function f(e){return"/"===e.charAt(0)?e.substr(1):e}function d(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function p(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function h(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 v(e,t,n,i){var o;"string"==typeof e?(o=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===(o=r({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),i?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=a(o.pathname,i.pathname)):o.pathname=i.pathname:o.pathname||(o.pathname="/"),o}function g(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&u(e.state,t.state)}function m(){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)}))}}}n.d(t,"a",(function(){return S})),n.d(t,"b",(function(){return C})),n.d(t,"d",(function(){return P})),n.d(t,"c",(function(){return v})),n.d(t,"f",(function(){return g})),n.d(t,"e",(function(){return h}));var y=!("undefined"==typeof window||!window.document||!window.document.createElement);function b(e,t){t(window.confirm(e))}var x="popstate",w="hashchange";function _(){try{return window.history.state||{}}catch(e){return{}}}function S(e){void 0===e&&(e={}),y||Object(c.a)(!1);var t,n=window.history,i=(-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,o=!(-1===window.navigator.userAgent.indexOf("Trident")),a=e,s=a.forceRefresh,u=void 0!==s&&s,f=a.getUserConfirmation,g=void 0===f?b:f,S=a.keyLength,O=void 0===S?6:S,k=e.basename?p(l(e.basename)):"";function E(e){var t=e||{},n=t.key,r=t.state,i=window.location,o=i.pathname+i.search+i.hash;return k&&(o=d(o,k)),v(o,r,n)}function j(){return Math.random().toString(36).substr(2,O)}var T=m();function C(e){r(z,e),z.length=n.length,T.notifyListeners(z.location,z.action)}function A(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||I(E(e.state))}function P(){I(E(_()))}var M=!1;function I(e){if(M)M=!1,C();else{T.confirmTransitionTo(e,"POP",g,(function(t){t?C({action:"POP",location:e}):function(e){var t=z.location,n=D.indexOf(t.key);-1===n&&(n=0);var r=D.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(M=!0,N(i))}(e)}))}}var R=E(_()),D=[R.key];function L(e){return k+h(e)}function N(e){n.go(e)}var F=0;function B(e){1===(F+=e)&&1===e?(window.addEventListener(x,A),o&&window.addEventListener(w,P)):0===F&&(window.removeEventListener(x,A),o&&window.removeEventListener(w,P))}var U=!1;var z={length:n.length,action:"POP",location:R,createHref:L,push:function(e,t){var r=v(e,t,j(),z.location);T.confirmTransitionTo(r,"PUSH",g,(function(e){if(e){var t=L(r),o=r.key,a=r.state;if(i)if(n.pushState({key:o,state:a},null,t),u)window.location.href=t;else{var s=D.indexOf(z.location.key),c=D.slice(0,s+1);c.push(r.key),D=c,C({action:"PUSH",location:r})}else window.location.href=t}}))},replace:function(e,t){var r=v(e,t,j(),z.location);T.confirmTransitionTo(r,"REPLACE",g,(function(e){if(e){var t=L(r),o=r.key,a=r.state;if(i)if(n.replaceState({key:o,state:a},null,t),u)window.location.replace(t);else{var s=D.indexOf(z.location.key);-1!==s&&(D[s]=r.key),C({action:"REPLACE",location:r})}else window.location.replace(t)}}))},go:N,goBack:function(){N(-1)},goForward:function(){N(1)},block:function(e){void 0===e&&(e=!1);var t=T.setPrompt(e);return U||(B(1),U=!0),function(){return U&&(U=!1,B(-1)),t()}},listen:function(e){var t=T.appendListener(e);return B(1),function(){B(-1),t()}}};return z}var O="hashchange",k={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:l},slash:{encodePath:l,decodePath:l}};function E(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function j(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function T(e){window.location.replace(E(window.location.href)+"#"+e)}function C(e){void 0===e&&(e={}),y||Object(c.a)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),i=n.getUserConfirmation,o=void 0===i?b:i,a=n.hashType,s=void 0===a?"slash":a,u=e.basename?p(l(e.basename)):"",f=k[s],g=f.encodePath,x=f.decodePath;function w(){var e=x(j());return u&&(e=d(e,u)),v(e)}var _=m();function S(e){r(U,e),U.length=t.length,_.notifyListeners(U.location,U.action)}var C=!1,A=null;function P(){var e,t,n=j(),r=g(n);if(n!==r)T(r);else{var i=w(),a=U.location;if(!C&&(t=i,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(A===h(i))return;A=null,function(e){if(C)C=!1,S();else{_.confirmTransitionTo(e,"POP",o,(function(t){t?S({action:"POP",location:e}):function(e){var t=U.location,n=D.lastIndexOf(h(t));-1===n&&(n=0);var r=D.lastIndexOf(h(e));-1===r&&(r=0);var i=n-r;i&&(C=!0,L(i))}(e)}))}}(i)}}var M=j(),I=g(M);M!==I&&T(I);var R=w(),D=[h(R)];function L(e){t.go(e)}var N=0;function F(e){1===(N+=e)&&1===e?window.addEventListener(O,P):0===N&&window.removeEventListener(O,P)}var B=!1;var U={length:t.length,action:"POP",location:R,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=E(window.location.href)),n+"#"+g(u+h(e))},push:function(e,t){var n=v(e,void 0,void 0,U.location);_.confirmTransitionTo(n,"PUSH",o,(function(e){if(e){var t=h(n),r=g(u+t);if(j()!==r){A=t,function(e){window.location.hash=e}(r);var i=D.lastIndexOf(h(U.location)),o=D.slice(0,i+1);o.push(t),D=o,S({action:"PUSH",location:n})}else S()}}))},replace:function(e,t){var n=v(e,void 0,void 0,U.location);_.confirmTransitionTo(n,"REPLACE",o,(function(e){if(e){var t=h(n),r=g(u+t);j()!==r&&(A=t,T(r));var i=D.indexOf(h(U.location));-1!==i&&(D[i]=t),S({action:"REPLACE",location:n})}}))},go:L,goBack:function(){L(-1)},goForward:function(){L(1)},block:function(e){void 0===e&&(e=!1);var t=_.setPrompt(e);return B||(F(1),B=!0),function(){return B&&(B=!1,F(-1)),t()}},listen:function(e){var t=_.appendListener(e);return F(1),function(){F(-1),t()}}};return U}function A(e,t,n){return Math.min(Math.max(e,t),n)}function P(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,i=t.initialEntries,o=void 0===i?["/"]:i,a=t.initialIndex,s=void 0===a?0:a,u=t.keyLength,c=void 0===u?6:u,l=m();function f(e){r(x,e),x.length=x.entries.length,l.notifyListeners(x.location,x.action)}function d(){return Math.random().toString(36).substr(2,c)}var p=A(s,0,o.length-1),g=o.map((function(e){return v(e,void 0,"string"==typeof e?d():e.key||d())})),y=h;function b(e){var t=A(x.index+e,0,x.entries.length-1),r=x.entries[t];l.confirmTransitionTo(r,"POP",n,(function(e){e?f({action:"POP",location:r,index:t}):f()}))}var x={length:g.length,action:"POP",location:g[p],index:p,entries:g,createHref:y,push:function(e,t){var r=v(e,t,d(),x.location);l.confirmTransitionTo(r,"PUSH",n,(function(e){if(e){var t=x.index+1,n=x.entries.slice(0);n.length>t?n.splice(t,n.length-t,r):n.push(r),f({action:"PUSH",location:r,index:t,entries:n})}}))},replace:function(e,t){var r=v(e,t,d(),x.location);l.confirmTransitionTo(r,"REPLACE",n,(function(e){e&&(x.entries[x.index]=r,f({action:"REPLACE",location:r}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=x.index+e;return t>=0&&t<x.entries.length},block:function(e){return void 0===e&&(e=!1),l.setPrompt(e)},listen:function(e){return l.appendListener(e)}};return x}},function(e,t,n){"use strict";function r(e,t,n){var r={};return Object.keys(e).forEach((function(i){r[i]=e[i].reduce((function(e,r){return r&&(e.push(t(r)),n&&n[r]&&e.push(n[r])),e}),[]).join(" ")})),r}n.d(t,"a",(function(){return r}))},,,function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(96),i=n(252);e.exports=n(92)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(74),i=n(162),o=n(161),a=n(292)("src"),s=n(959),u=(""+s).split("toString");n(147).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var c="function"==typeof n;c&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(c&&(o(n,a)||i(n,a,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[a]||s.call(this)}))},function(e,t,n){var r=n(376),i=n(252),o=n(148),a=n(199),s=n(161),u=n(639),c=Object.getOwnPropertyDescriptor;t.f=n(92)?c:function(e,t){if(e=o(e),t=a(t,!0),u)try{return c(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(161),i=n(109),o=n(547)("IE_PROTO"),a=Object.prototype;e.exports=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?a:null}},function(e,t,n){var r=n(24),i=n(81),o=n(200),a=/"/g,s=function(e,t,n,r){var i=String(o(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(r).replace(a,""")+'"'),s+">"+i+"</"+t+">"};e.exports=function(e,t){var n={};n[e]=t(s),r(r.P+r.F*i((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})),"String",n)}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(1474),i=n(1478)((function(e,t,n){r(e,t,n)}));e.exports=i},function(e,t,n){"use strict";var r=n(611);t.a=r.a},function(e,t,n){"use strict";var r=n(12),i=Object(r.a)((function(e,t){return t>e?t:e}));t.a=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(498);function i(e,t){return Object(r.a)(t,e,0)>=0}},function(e,t,n){"use strict";var r=!0;t.a=function(e,t){if(!r){if(e)return;var n="Warning: "+t;"undefined"!=typeof console&&console.warn(n);try{throw Error(n)}catch(e){}}}},function(e,t,n){"use strict";var r=n(29),i=n(286),o=Object(r.a)(i.a);t.a=o},function(e,t,n){"use strict";var r=n(29),i=Object(r.a)((function(e){return function(){return e}}));t.a=i},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return a}));var r=36,i=2,o=320,a=358},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";n.d(t,"h",(function(){return o})),n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"k",(function(){return u})),n.d(t,"l",(function(){return c})),n.d(t,"i",(function(){return l})),n.d(t,"g",(function(){return f})),n.d(t,"f",(function(){return d})),n.d(t,"a",(function(){return p})),n.d(t,"c",(function(){return h})),n.d(t,"j",(function(){return v})),n.d(t,"e",(function(){return g}));var r=n(314);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function o(e){e=e.slice(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}function a(e){if(e.type)return e;if("#"===e.charAt(0))return a(o(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Object(r.a)(9,e));var i,s=e.substring(t+1,e.length-1);if("color"===n){if(i=(s=s.split(" ")).shift(),4===s.length&&"/"===s[3].charAt(0)&&(s[3]=s[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i))throw new Error(Object(r.a)(10,i))}else s=s.split(",");return{type:n,values:s=s.map((function(e){return parseFloat(e)})),colorSpace:i}}var s=function(e){var t=a(e);return t.values.slice(0,3).map((function(e,n){return-1!==t.type.indexOf("hsl")&&0!==n?"".concat(e,"%"):e})).join(" ")};function u(e){var t=e.type,n=e.colorSpace,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),r=-1!==t.indexOf("color")?"".concat(n," ").concat(r.join(" ")):"".concat(r.join(", ")),"".concat(t,"(").concat(r,")")}function c(e){if(0===e.indexOf("#"))return e;var t=a(e).values;return"#".concat(t.map((function(e,t){return n=3===t?Math.round(255*e):e,1===(r=n.toString(16)).length?"0".concat(r):r;var n,r})).join(""))}function l(e){var t=(e=a(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-o*Math.max(Math.min(t-3,9-t,1),-1)},c="rgb",l=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(c+="a",l.push(t[3])),u({type:c,values:l})}function f(e){var t="hsl"===(e=a(e)).type?a(l(e)).values:e.values;return t=t.map((function(t){return"color"!==e.type&&(t/=255),t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function d(e,t){var n=f(e),r=f(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function p(e,t){return e=a(e),t=i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]="/".concat(t):e.values[3]=t,u(e)}function h(e,t){if(e=a(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return u(e)}function v(e,t){if(e=a(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(var r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return u(e)}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return f(e)>.5?h(e,t):v(e,t)}},function(e,t,n){var r=n(129);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){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){function n(e){return(n="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)}e.exports=function(e){var t=n(e);return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";n.r(t);var r=n(884),i=n(18),o=n(457),a=n(56),s=n(193),u=n(675).a,c=n(210),l=n(133),f=n(155),d=n(574),p=n(315).a,h=n(120),v=n(233),g=n(434),m=n(169),y=n(134),b=n(62),x=n(261);n.d(t,"unstable_ClassNameGenerator",(function(){return w})),n.d(t,"capitalize",(function(){return i.a})),n.d(t,"createChainedFunction",(function(){return o.a})),n.d(t,"createSvgIcon",(function(){return a.a})),n.d(t,"debounce",(function(){return s.a})),n.d(t,"deprecatedPropType",(function(){return u})),n.d(t,"isMuiElement",(function(){return c.a})),n.d(t,"ownerDocument",(function(){return l.a})),n.d(t,"ownerWindow",(function(){return f.a})),n.d(t,"requirePropFactory",(function(){return d.a})),n.d(t,"setRef",(function(){return p})),n.d(t,"unstable_useEnhancedEffect",(function(){return h.a})),n.d(t,"unstable_useId",(function(){return v.a})),n.d(t,"unsupportedProp",(function(){return g.a})),n.d(t,"useControlled",(function(){return m.a})),n.d(t,"useEventCallback",(function(){return y.a})),n.d(t,"useForkRef",(function(){return b.a})),n.d(t,"useIsFocusVisible",(function(){return x.a}));var w={configure:function(e){console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join("\n")),r.a.configure(e)}}},function(e,t,n){"use strict";function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===e)return{};var n={};return Object.keys(e).filter((function(n){return n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)})).forEach((function(t){n[t]=e[t]})),n}n.d(t,"a",(function(){return r}))},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";n.d(t,"a",(function(){return r}));var r=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(e){var t=this,n=e||function(){};return this.listeners.push(n),this.onSubscribe(),function(){t.listeners=t.listeners.filter((function(e){return e!==n})),t.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}()},,function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(17),s=n(158),u=n(1561),c=n(1653),l=n(492),f=n(18),d=n(76),p=n(20),h=n(15),v=n(138),g=n(152);function m(e){return Object(v.a)("MuiDrawer",e)}Object(g.a)("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);var y=n(5);n.d(t,"c",(function(){return E})),n.d(t,"b",(function(){return j}));var b=["BackdropProps"],x=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],w=function(e,t){var n=e.ownerState;return[t.root,("permanent"===n.variant||"persistent"===n.variant)&&t.docked,t.modal]},_=Object(h.a)(u.a,{name:"MuiDrawer",slot:"Root",overridesResolver:w})((function(e){var t=e.theme;return{zIndex:(t.vars||t).zIndex.drawer}})),S=Object(h.a)("div",{shouldForwardProp:h.b,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:w})({flex:"0 0 auto"}),O=Object(h.a)(l.a,{name:"MuiDrawer",slot:"Paper",overridesResolver:function(e,t){var n=e.ownerState;return[t.paper,t["paperAnchor".concat(Object(f.a)(n.anchor))],"temporary"!==n.variant&&t["paperAnchorDocked".concat(Object(f.a)(n.anchor))]]}})((function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(t.vars||t).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},"left"===n.anchor&&{left:0},"top"===n.anchor&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},"right"===n.anchor&&{right:0},"bottom"===n.anchor&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},"left"===n.anchor&&"temporary"!==n.variant&&{borderRight:"1px solid ".concat((t.vars||t).palette.divider)},"top"===n.anchor&&"temporary"!==n.variant&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider)},"right"===n.anchor&&"temporary"!==n.variant&&{borderLeft:"1px solid ".concat((t.vars||t).palette.divider)},"bottom"===n.anchor&&"temporary"!==n.variant&&{borderTop:"1px solid ".concat((t.vars||t).palette.divider)})})),k={left:"right",right:"left",top:"down",bottom:"up"};function E(e){return-1!==["left","right"].indexOf(e)}function j(e,t){return"rtl"===e.direction&&E(t)?k[t]:t}var T=o.forwardRef((function(e,t){var n=Object(p.a)({props:e,name:"MuiDrawer"}),u=Object(d.a)(),l={enter:u.transitions.duration.enteringScreen,exit:u.transitions.duration.leavingScreen},h=n.anchor,v=void 0===h?"left":h,g=n.BackdropProps,w=n.children,E=n.className,T=n.elevation,C=void 0===T?16:T,A=n.hideBackdrop,P=void 0!==A&&A,M=n.ModalProps,I=(void 0===M?{}:M).BackdropProps,R=n.onClose,D=n.open,L=void 0!==D&&D,N=n.PaperProps,F=void 0===N?{}:N,B=n.SlideProps,U=n.TransitionComponent,z=void 0===U?c.a:U,V=n.transitionDuration,H=void 0===V?l:V,W=n.variant,q=void 0===W?"temporary":W,G=Object(r.a)(n.ModalProps,b),Y=Object(r.a)(n,x),K=o.useRef(!1);o.useEffect((function(){K.current=!0}),[]);var $=j(u,v),X=v,Q=Object(i.a)({},n,{anchor:X,elevation:C,open:L,variant:q},Y),Z=function(e){var t=e.classes,n=e.anchor,r=e.variant,i={root:["root"],docked:[("permanent"===r||"persistent"===r)&&"docked"],modal:["modal"],paper:["paper","paperAnchor".concat(Object(f.a)(n)),"temporary"!==r&&"paperAnchorDocked".concat(Object(f.a)(n))]};return Object(s.a)(i,m,t)}(Q),J=Object(y.jsx)(O,Object(i.a)({elevation:"temporary"===q?C:0,square:!0},F,{className:Object(a.default)(Z.paper,F.className),ownerState:Q,children:w}));if("permanent"===q)return Object(y.jsx)(S,Object(i.a)({className:Object(a.default)(Z.root,Z.docked,E),ownerState:Q,ref:t},Y,{children:J}));var ee=Object(y.jsx)(z,Object(i.a)({in:L,direction:k[$],timeout:H,appear:K.current},B,{children:J}));return"persistent"===q?Object(y.jsx)(S,Object(i.a)({className:Object(a.default)(Z.root,Z.docked,E),ownerState:Q,ref:t},Y,{children:ee})):Object(y.jsx)(_,Object(i.a)({BackdropProps:Object(i.a)({},g,I,{transitionDuration:H}),className:Object(a.default)(Z.root,Z.modal,E),open:L,ownerState:Q,onClose:R,hideBackdrop:P,ref:t},Y,G,{children:ee}))}));t.a=T},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},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){"use strict";var r=n(81);e.exports=function(e,t){return!!e&&r((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},function(e,t){function n(e){return(n="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)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(r=window)}e.exports=r},function(e,t,n){function r(e){return(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})(e)}var i=n(745),o="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,a=i||o||Function("return this")();e.exports=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.red=t.getContrastingColor=t.isValidHex=t.toState=t.simpleCheckForValidColor=void 0;var r=o(n(1492)),i=o(n(1494));function o(e){return e&&e.__esModule?e:{default:e}}t.simpleCheckForValidColor=function(e){var t=0,n=0;return(0,r.default)(["r","g","b","a","h","s","l","v"],(function(r){if(e[r]&&(t+=1,isNaN(e[r])||(n+=1),"s"===r||"l"===r)){/^\d+%$/.test(e[r])&&(n+=1)}})),t===n&&e};var a=t.toState=function(e,t){var n=e.hex?(0,i.default)(e.hex):(0,i.default)(e),r=n.toHsl(),o=n.toHsv(),a=n.toRgb(),s=n.toHex();return 0===r.s&&(r.h=t||0,o.h=t||0),{hsl:r,hex:"000000"===s&&0===a.a?"transparent":"#"+s,rgb:a,hsv:o,oldHue:e.h||t||r.h,source:e.source}};t.isValidHex=function(e){var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&(0,i.default)(e).isValid()},t.getContrastingColor=function(e){if(!e)return"#fff";var t=a(e);return"transparent"===t.hex?"rgba(0,0,0,0.4)":(299*t.rgb.r+587*t.rgb.g+114*t.rgb.b)/1e3>=128?"#000":"#fff"},t.red={hsl:{a:1,h:0,l:.5,s:1},hex:"#ff0000",rgb:{r:255,g:0,b:0,a:1},hsv:{h:0,s:1,v:1,a:1}};t.default=t},function(e,t,n){"use strict";var r=n(883),i=n(345),o=Object(r.a)();t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return Object(i.a)(e)}},function(e,t,n){"use strict";var r=n(487);t.a=r.a},function(e,t,n){"use strict";function r(e){return"[object String]"===Object.prototype.toString.call(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return"[object Function]"===Object.prototype.toString.call(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},i={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o=n(392);function a(e){return(a="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)}n.d(t,"a",(function(){return g}));var s=/[A-Z]|^ms/g,u=/_EMO_([^_]+?)_([^]*?)_EMO_/g,c=function(e){return 45===e.charCodeAt(1)},l=function(e){return null!=e&&"boolean"!=typeof e},f=Object(o.a)((function(e){return c(e)?e:e.replace(s,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(u,(function(e,t,n){return h={name:t,styles:n,next:h},t}))}return 1===i[e]||c(e)||"number"!=typeof t||0===t?t:t+"px"};function p(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(a(n)){case"boolean":return"";case"object":if(1===n.anim)return h={name:n.name,styles:n.styles,next:h},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)h={name:r.name,styles:r.styles,next:h},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=p(e,t,n[i])+";";else for(var o in n){var s=n[o];if("object"!==a(s))null!=t&&void 0!==t[s]?r+=o+"{"+t[s]+"}":l(s)&&(r+=f(o)+":"+d(o,s)+";");else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var u=p(e,t,s);switch(o){case"animation":case"animationName":r+=f(o)+":"+u+";";break;default:r+=o+"{"+u+"}"}}else for(var c=0;c<s.length;c++)l(s[c])&&(r+=f(o)+":"+d(o,s[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=h,o=n(e);return h=i,p(e,t,o)}break;case"string":}if(null==t)return n;var s=t[n];return void 0!==s?s:n}var h,v=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var g=function(e,t,n){if(1===e.length&&"object"===a(e[0])&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i=!0,o="";h=void 0;var s=e[0];null==s||void 0===s.raw?(i=!1,o+=p(n,t,s)):o+=s[0];for(var u=1;u<e.length;u++)o+=p(n,t,e[u]),i&&(o+=s[u]);v.lastIndex=0;for(var c,l="";null!==(c=v.exec(o));)l+="-"+c[1];return{name:r(o)+l,styles:o,next:h}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(43),i=n(28),o=n(21);function a(e,t){Object(o.a)(1,arguments);var n=t||{},a=n.locale,s=a&&a.options&&a.options.weekStartsOn,u=null==s?0:Object(r.a)(s),c=null==n.weekStartsOn?u:Object(r.a)(n.weekStartsOn);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=Object(i.a)(e),f=l.getUTCDay(),d=(f<c?7:0)+f-c;return l.setUTCDate(l.getUTCDate()-d),l.setUTCHours(0,0,0,0),l}},function(e,t,n){"use strict";var r=Array.isArray,i=Object.keys,o=Object.prototype.hasOwnProperty,a="undefined"!=typeof Element;e.exports=function(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var s,u,c,l=r(t),f=r(n);if(l&&f){if((u=t.length)!=n.length)return!1;for(s=u;0!=s--;)if(!e(t[s],n[s]))return!1;return!0}if(l!=f)return!1;var d=t instanceof Date,p=n instanceof Date;if(d!=p)return!1;if(d&&p)return t.getTime()==n.getTime();var h=t instanceof RegExp,v=n instanceof RegExp;if(h!=v)return!1;if(h&&v)return t.toString()==n.toString();var g=i(t);if((u=g.length)!==i(n).length)return!1;for(s=u;0!=s--;)if(!o.call(n,g[s]))return!1;if(a&&t instanceof Element&&n instanceof Element)return t===n;for(s=u;0!=s--;)if(!("_owner"===(c=g[s])&&t.$$typeof||e(t[c],n[c])))return!1;return!0}return t!=t&&n!=n}(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}},function(e,t,n){var r=n(80);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){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(24),i=n(147),o=n(81);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},function(e,t,n){var r=n(178),i=n(375),o=n(109),a=n(93),s=n(562);e.exports=function(e,t){var n=1==e,u=2==e,c=3==e,l=4==e,f=6==e,d=5==e||f,p=t||s;return function(t,s,h){for(var v,g,m=o(t),y=i(m),b=r(s,h,3),x=a(y.length),w=0,_=n?p(t,x):u?p(t,0):void 0;x>w;w++)if((d||w in y)&&(g=b(v=y[w],w,m),e))if(n)_[w]=g;else if(g)switch(e){case 3:return!0;case 5:return v;case 6:return w;case 2:_.push(v)}else if(l)return!1;return f?-1:c||l?l:_}}},function(e,t){function n(){return e.exports=n=Object.assign?Object.assign.bind():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},e.exports.__esModule=!0,e.exports.default=e.exports,n.apply(this,arguments)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(e){return(n="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)}e.exports=function(e){return null!=e&&"object"==n(e)}},function(e,t,n){"use strict";var r=n(29),i=n(194),o=Object(r.a)((function(e){return Object(i.a)(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()}));t.a=o},function(e,t,n){"use strict";var r=n(12),i=n(195),o=n(77),a=n(213),s=Object(r.a)((function(e,t){return Object(o.a)(e+1,(function(){var n=arguments[e];if(null!=n&&Object(i.a)(n[t]))return n[t].apply(n,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Object(a.a)(n)+' does not have a method named "'+t+'"')}))}));t.a=s},function(e,t,n){"use strict";var r=n(12),i=n(91),o=n(107),a=Object(r.a)((function(e,t){return Object(i.a)(Object(o.a)(e),t)}));t.a=a},function(e,t,n){"use strict";var r=n(12),i=n(194),o=Object(r.a)((function(e,t){var n=e<0?t.length+e:e;return Object(i.a)(t)?t.charAt(n):t[n]}));t.a=o},,function(e,t,n){"use strict";var r=n(608);t.a=r.a},function(e,t){e.exports=function(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,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(112);function i(e,t){return function(){var n=arguments.length;if(0===n)return t();var i=arguments[n-1];return Object(r.a)(i)||"function"!=typeof i[e]?t.apply(this,arguments):i[e].apply(i,Array.prototype.slice.call(arguments,0,n-1))}}},function(e,t,n){"use strict";var r=n(29),i=n(527),o=Object(r.a)((function(e){return Object(i.a)(e,[])}));t.a=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(182),i=n(183),o=n(39),a=new(function(e){function t(){return e.apply(this,arguments)||this}Object(r.a)(t,e);var n=t.prototype;return n.onSubscribe=function(){this.removeEventListener||this.setDefaultEventListener()},n.setEventListener=function(e){var t=this;this.removeEventListener&&this.removeEventListener(),this.removeEventListener=e((function(e){"boolean"==typeof e?t.setFocused(e):t.onFocus()}))},n.setFocused=function(e){this.focused=e,e&&this.onFocus()},n.onFocus=function(){this.listeners.forEach((function(e){e()}))},n.isFocused=function(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},n.setDefaultEventListener=function(){var e;!o.e&&(null==(e=window)?void 0:e.addEventListener)&&this.setEventListener((function(e){var t=function(){return e()};return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),function(){window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}))},t}(i.a))},function(e,t,n){"use strict";var r=n(85);t.a="function"==typeof Object.assign?Object.assign: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)Object(r.a)(a,o)&&(t[a]=o[a]);n+=1}return t}},function(e,t,n){"use strict";var r=function(e){this.value=e},i=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new r(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),o=function(){function e(e){this._list=new i,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,i=this._map,o=null;if(null==i[e]){var a=n.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var u=n.head;n.remove(u),delete i[u.key],o=u.value,this._lastRemovedEntry=u}s?s.value=t:s=new r(t),s.key=e,n.insertEntry(s),i[e]=s}return o},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(null!=t)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();t.a=o},function(e,t,n){"use strict";var r=n(238);t.a=function(e,t){return t?Object(r.a)(e,t,{clone:!1}):e}},function(e,t,n){"use strict";function r(e,t,n){for(var r=0,i=n.length;r<i;){if(e(t,n[r]))return!0;r+=1}return!1}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){for(var n=0,r=t.length,i=Array(r);n<r;)i[n]=e(t[n]),n+=1;return i}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=6e4;function i(e){var t=new Date(e.getTime()),n=Math.ceil(t.getTimezoneOffset());t.setSeconds(0,0);var i=t.getTime()%r;return n*r+i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(28),i=n(21);function o(e){Object(i.a)(1,arguments);var t=Object(r.a)(e),n=t.getUTCDay(),o=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-o),t.setUTCHours(0,0,0,0),t}},function(e,t,n){"use strict";var r=n(495),i=n(29),o=Object(i.a)((function(e){return null!=e&&"function"==typeof e.clone?e.clone():Object(r.a)(e,[],[],!0)}));t.a=o},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=["D","DD"],i=["YY","YYYY"];function o(e){return-1!==r.indexOf(e)}function a(e){return-1!==i.indexOf(e)}function s(e){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` for formatting years; see: https://git.io/fxCyr");if("YY"===e)throw new RangeError("Use `yy` instead of `YY` for formatting years; see: https://git.io/fxCyr");if("D"===e)throw new RangeError("Use `d` instead of `D` for formatting days of the month; see: https://git.io/fxCyr");if("DD"===e)throw new RangeError("Use `dd` instead of `DD` for formatting days of the month; see: https://git.io/fxCyr")}},,function(e,t,n){var r=n(641),i=n(548);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(68),i=n(642),o=n(548),a=n(547)("IE_PROTO"),s=function(){},u=function(){var e,t=n(545)("iframe"),r=o.length;for(t.style.display="none",n(549).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;r--;)delete u.prototype[o[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[a]=e):n=u(),void 0===t?n:i(n,t)}},function(e,t,n){"use strict";function r(e){return(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})(e)}if(n(92)){var i=n(253),o=n(74),a=n(81),s=n(24),u=n(430),c=n(571),l=n(178),f=n(297),d=n(252),p=n(162),h=n(298),v=n(187),g=n(93),m=n(664),y=n(293),b=n(199),x=n(161),w=n(255),_=n(80),S=n(109),O=n(560),k=n(226),E=n(165),j=n(294).f,T=n(377),C=n(292),A=n(90),P=n(202),M=n(418),I=n(379),R=n(564),D=n(295),L=n(425),N=n(296),F=n(563),B=n(654),U=n(96),z=n(164),V=U.f,H=z.f,W=o.RangeError,q=o.TypeError,G=o.Uint8Array,Y=Array.prototype,K=c.ArrayBuffer,$=c.DataView,X=P(0),Q=P(2),Z=P(3),J=P(4),ee=P(5),te=P(6),ne=M(!0),re=M(!1),ie=R.values,oe=R.keys,ae=R.entries,se=Y.lastIndexOf,ue=Y.reduce,ce=Y.reduceRight,le=Y.join,fe=Y.sort,de=Y.slice,pe=Y.toString,he=Y.toLocaleString,ve=A("iterator"),ge=A("toStringTag"),me=C("typed_constructor"),ye=C("def_constructor"),be=u.CONSTR,xe=u.TYPED,we=u.VIEW,_e=P(1,(function(e,t){return je(I(e,e[ye]),t)})),Se=a((function(){return 1===new G(new Uint16Array([1]).buffer)[0]})),Oe=!!G&&!!G.prototype.set&&a((function(){new G(1).set({})})),ke=function(e,t){var n=v(e);if(n<0||n%t)throw W("Wrong offset!");return n},Ee=function(e){if(_(e)&&xe in e)return e;throw q(e+" is not a typed array!")},je=function(e,t){if(!(_(e)&&me in e))throw q("It is not a typed array constructor!");return new e(t)},Te=function(e,t){return Ce(I(e,e[ye]),t)},Ce=function(e,t){for(var n=0,r=t.length,i=je(e,r);r>n;)i[n]=t[n++];return i},Ae=function(e,t,n){V(e,t,{get:function(){return this._d[n]}})},Pe=function(e){var t,n,r,i,o,a,s=S(e),u=arguments.length,c=u>1?arguments[1]:void 0,f=void 0!==c,d=T(s);if(null!=d&&!O(d)){for(a=d.call(s),r=[],t=0;!(o=a.next()).done;t++)r.push(o.value);s=r}for(f&&u>2&&(c=l(c,arguments[2],2)),t=0,n=g(s.length),i=je(this,n);n>t;t++)i[t]=f?c(s[t],t):s[t];return i},Me=function(){for(var e=0,t=arguments.length,n=je(this,t);t>e;)n[e]=arguments[e++];return n},Ie=!!G&&a((function(){he.call(new G(1))})),Re=function(){return he.apply(Ie?de.call(Ee(this)):Ee(this),arguments)},De={copyWithin:function(e,t){return B.call(Ee(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return J(Ee(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return F.apply(Ee(this),arguments)},filter:function(e){return Te(this,Q(Ee(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return ee(Ee(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return te(Ee(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){X(Ee(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return re(Ee(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return ne(Ee(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return le.apply(Ee(this),arguments)},lastIndexOf:function(e){return se.apply(Ee(this),arguments)},map:function(e){return _e(Ee(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return ue.apply(Ee(this),arguments)},reduceRight:function(e){return ce.apply(Ee(this),arguments)},reverse:function(){for(var e,t=Ee(this).length,n=Math.floor(t/2),r=0;r<n;)e=this[r],this[r++]=this[--t],this[t]=e;return this},some:function(e){return Z(Ee(this),e,arguments.length>1?arguments[1]:void 0)},sort:function(e){return fe.call(Ee(this),e)},subarray:function(e,t){var n=Ee(this),r=n.length,i=y(e,r);return new(I(n,n[ye]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,g((void 0===t?r:y(t,r))-i))}},Le=function(e,t){return Te(this,de.call(Ee(this),e,t))},Ne=function(e){Ee(this);var t=ke(arguments[1],1),n=this.length,r=S(e),i=g(r.length),o=0;if(i+t>n)throw W("Wrong length!");for(;o<i;)this[t+o]=r[o++]},Fe={entries:function(){return ae.call(Ee(this))},keys:function(){return oe.call(Ee(this))},values:function(){return ie.call(Ee(this))}},Be=function(e,t){return _(e)&&e[xe]&&"symbol"!=r(t)&&t in e&&String(+t)==String(t)},Ue=function(e,t){return Be(e,t=b(t,!0))?d(2,e[t]):H(e,t)},ze=function(e,t,n){return!(Be(e,t=b(t,!0))&&_(n)&&x(n,"value"))||x(n,"get")||x(n,"set")||n.configurable||x(n,"writable")&&!n.writable||x(n,"enumerable")&&!n.enumerable?V(e,t,n):(e[t]=n.value,e)};be||(z.f=Ue,U.f=ze),s(s.S+s.F*!be,"Object",{getOwnPropertyDescriptor:Ue,defineProperty:ze}),a((function(){pe.call({})}))&&(pe=he=function(){return le.call(this)});var Ve=h({},De);h(Ve,Fe),p(Ve,ve,Fe.values),h(Ve,{slice:Le,set:Ne,constructor:function(){},toString:pe,toLocaleString:Re}),Ae(Ve,"buffer","b"),Ae(Ve,"byteOffset","o"),Ae(Ve,"byteLength","l"),Ae(Ve,"length","e"),V(Ve,ge,{get:function(){return this[xe]}}),e.exports=function(e,t,n,r){var c=e+((r=!!r)?"Clamped":"")+"Array",l="get"+e,d="set"+e,h=o[c],v=h||{},y=h&&E(h),b=!h||!u.ABV,x={},S=h&&h.prototype,O=function(e,n){V(e,n,{get:function(){return function(e,n){var r=e._d;return r.v[l](n*t+r.o,Se)}(this,n)},set:function(e){return function(e,n,i){var o=e._d;r&&(i=(i=Math.round(i))<0?0:i>255?255:255&i),o.v[d](n*t+o.o,i,Se)}(this,n,e)},enumerable:!0})};b?(h=n((function(e,n,r,i){f(e,h,c,"_d");var o,a,s,u,l=0,d=0;if(_(n)){if(!(n instanceof K||"ArrayBuffer"==(u=w(n))||"SharedArrayBuffer"==u))return xe in n?Ce(h,n):Pe.call(h,n);o=n,d=ke(r,t);var v=n.byteLength;if(void 0===i){if(v%t)throw W("Wrong length!");if((a=v-d)<0)throw W("Wrong length!")}else if((a=g(i)*t)+d>v)throw W("Wrong length!");s=a/t}else s=m(n),o=new K(a=s*t);for(p(e,"_d",{b:o,o:d,l:a,e:s,v:new $(o)});l<s;)O(e,l++)})),S=h.prototype=k(Ve),p(S,"constructor",h)):a((function(){h(1)}))&&a((function(){new h(-1)}))&&L((function(e){new h,new h(null),new h(1.5),new h(e)}),!0)||(h=n((function(e,n,r,i){var o;return f(e,h,c),_(n)?n instanceof K||"ArrayBuffer"==(o=w(n))||"SharedArrayBuffer"==o?void 0!==i?new v(n,ke(r,t),i):void 0!==r?new v(n,ke(r,t)):new v(n):xe in n?Ce(h,n):Pe.call(h,n):new v(m(n))})),X(y!==Function.prototype?j(v).concat(j(y)):j(v),(function(e){e in h||p(h,e,v[e])})),h.prototype=S,i||(S.constructor=h));var T=S[ve],C=!!T&&("values"==T.name||null==T.name),A=Fe.values;p(h,me,!0),p(S,xe,c),p(S,we,!0),p(S,ye,h),(r?new h(1)[ge]==c:ge in S)||V(S,ge,{get:function(){return c}}),x[c]=h,s(s.G+s.W+s.F*(h!=v),x),s(s.S,c,{BYTES_PER_ELEMENT:t}),s(s.S+s.F*a((function(){v.of.call(h,1)})),c,{from:Pe,of:Me}),"BYTES_PER_ELEMENT"in S||p(S,"BYTES_PER_ELEMENT",t),s(s.P,c,De),N(c),s(s.P+s.F*Oe,c,{set:Ne}),s(s.P+s.F*!C,c,Fe),i||S.toString==pe||(S.toString=pe),s(s.P+s.F*a((function(){new h(1).slice()})),c,{slice:Le}),s(s.P+s.F*(a((function(){return[1,2].toLocaleString()!=new h([1,2]).toLocaleString()}))||!a((function(){S.toLocaleString.call([1,2])}))),c,{toLocaleString:Re}),D[c]=C?T:A,i||C||p(S,ve,A)}}else e.exports=function(){}},function(e,t,n){function r(e){return(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})(e)}var i=n(659),o=n(24),a=n(374)("metadata"),s=a.store||(a.store=new(n(662))),u=function(e,t,n){var r=s.get(e);if(!r){if(!n)return;s.set(e,r=new i)}var o=r.get(t);if(!o){if(!n)return;r.set(t,o=new i)}return o};e.exports={store:s,map:u,has:function(e,t,n){var r=u(t,n,!1);return void 0!==r&&r.has(e)},get:function(e,t,n){var r=u(t,n,!1);return void 0===r?void 0:r.get(e)},set:function(e,t,n,r){u(n,r,!0).set(e,t)},keys:function(e,t){var n=u(e,t,!1),r=[];return n&&n.forEach((function(e,t){r.push(t)})),r},key:function(e){return void 0===e||"symbol"==r(e)?e:String(e)},exp:function(e){o(o.S,"Reflect",e)}}},function(e,t,n){"use strict";n.r(t);var r=n(492);n.d(t,"default",(function(){return r.a}));var i=n(333);n.d(t,"paperClasses",(function(){return i.a})),n.d(t,"getPaperUtilityClass",(function(){return i.b}))},function(e,t,n){"use strict";n.r(t);var r=n(127);n.d(t,"default",(function(){return r.c}));var i=n(234);n.d(t,"inputBaseClasses",(function(){return i.a})),n.d(t,"getInputBaseUtilityClass",(function(){return i.b}))},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(713),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t,n){"use strict";var r=n(488);t.a=r.a},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(138),i=n(152);function o(e){return Object(r.a)("MuiInputBase",e)}var a=Object(i.a)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);t.a=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));var r=n(39),i=console||{error:r.i,warn:r.i,log:r.i};function o(){return i}function a(e){i=e}},function(e,t,n){"use strict";var r=n(29),i=n(77),o=Object(r.a)((function(e){return Object(i.a)(e.length,(function(t,n){var r=Array.prototype.slice.call(arguments,0);return r[0]=n,r[1]=t,e.apply(this,r)}))}));t.a=o},function(e,t,n){"use strict";var r=n(102),i=n(55),o=n(271),a=n(883),s=n(365),u=["variant"];function c(e){return 0===e.length}function l(e){var t=e.variant,n=Object(r.a)(e,u),i=t||"";return Object.keys(n).sort().forEach((function(t){i+="color"===t?c(i)?e[t]:Object(s.a)(e[t]):"".concat(c(i)?t:Object(s.a)(t)).concat(Object(s.a)(e[t].toString()))})),i}var f=n(1554);function d(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||h(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){if(e){if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"b",(function(){return O})),n.d(t,"c",(function(){return k})),n.d(t,"a",(function(){return E}));var g=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],m=["theme"],y=["theme"];function b(e){return 0===Object.keys(e).length}function x(e){return"string"==typeof e&&e.charCodeAt(0)>96}var w=function(e,t){return t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null},_=function(e,t){var n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);var r={};return n.forEach((function(e){var t=l(e.props);r[t]=e.style})),r},S=function(e,t,n,r){var i,o,a=e.ownerState,s=void 0===a?{}:a,u=[],c=null==n?void 0:null==(i=n.components)?void 0:null==(o=i[r])?void 0:o.variants;return c&&c.forEach((function(n){var r=!0;Object.keys(n.props).forEach((function(t){s[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&u.push(t[l(n.props)])})),u};function O(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}var k=Object(a.a)();function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.defaultTheme,n=void 0===t?k:t,a=e.rootShouldForwardProp,s=void 0===a?O:a,u=e.slotShouldForwardProp,c=void 0===u?O:u,l=e.styleFunctionSx,h=void 0===l?f.a:l,v=function(e){var t=b(e.theme)?n:e.theme;return h(Object(i.a)({},e,{theme:t}))};return v.__mui_systemSx=!0,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(o.b)(e,(function(e){return e.filter((function(e){return!(null!=e&&e.__mui_systemSx)}))}));var a,u=t.name,l=t.slot,f=t.skipVariantsResolver,h=t.skipSx,k=t.overridesResolver,E=Object(r.a)(t,g),j=void 0!==f?f:l&&"Root"!==l||!1,T=h||!1;var C=O;"Root"===l?C=s:l?C=c:x(e)&&(C=void 0);var A=Object(o.a)(e,Object(i.a)({shouldForwardProp:C,label:a},E)),P=function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),a=1;a<t;a++)o[a-1]=arguments[a];var s=o?o.map((function(e){return"function"==typeof e&&e.__emotion_real!==e?function(t){var o=t.theme,a=Object(r.a)(t,m);return e(Object(i.a)({theme:b(o)?n:o},a))}:e})):[],c=e;u&&k&&s.push((function(e){var t=b(e.theme)?n:e.theme,r=w(u,t);if(r){var o={};return Object.entries(r).forEach((function(n){var r=p(n,2),a=r[0],s=r[1];o[a]="function"==typeof s?s(Object(i.a)({},e,{theme:t})):s})),k(e,o)}return null})),u&&!j&&s.push((function(e){var t=b(e.theme)?n:e.theme;return S(e,_(u,t),t,u)})),T||s.push(v);var l=s.length-o.length;if(Array.isArray(e)&&l>0){var f=new Array(l).fill("");(c=[].concat(d(e),d(f))).raw=[].concat(d(e.raw),d(f))}else"function"==typeof e&&e.__emotion_real!==e&&(c=function(t){var o=t.theme,a=Object(r.a)(t,y);return e(Object(i.a)({theme:b(o)?n:o},a))});var h=A.apply(void 0,[c].concat(d(s)));return h};return A.withConfig&&(P.withConfig=A.withConfig),P}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a}));var r=n(272);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(e){return null!==e&&"object"===i(e)&&e.constructor===Object}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},i=n.clone?Object(r.a)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(o(t[r])&&r in e&&o(e[r])?i[r]=a(e[r],t[r],n):i[r]=t[r])})),i}},function(e,t,n){"use strict";var r=n(29),i=n(77),o=Object(r.a)((function(e){return Object(i.a)(e.length,e)}));t.a=o},function(e,t,n){"use strict";var r=n(29),i=n(112),o=n(194),a=Object(r.a)((function(e){return!!Object(i.a)(e)||!!e&&("object"==typeof e&&(!Object(o.a)(e)&&(1===e.nodeType?!!e.length:0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));t.a=a},,,,function(e,t,n){"use strict";var r=n(2),i="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;t.a=i},function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return s}));var r=function(e,t){return e?t.getHours(e)>=12?"pm":"am":null},i=function(e,t,n){if(n&&(e>=12?"pm":"am")!==t)return"am"===t?e-12:e+12;return e},o=function(e,t,n,r){var o=i(r.getHours(e),t,n);return r.setHours(e,o)},a=function(e,t){return 3600*t.getHours(e)+60*t.getMinutes(e)+t.getSeconds(e)},s=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return function(n,r){return e?t.isAfter(n,r):a(n,t)>a(r,t)}}},function(e,t,n){e.exports=n(1200)()},function(e,t,n){"use strict";(function(e){var r=n(507);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)}var o="object"==("undefined"==typeof exports?"undefined":i(exports))&&exports&&!exports.nodeType&&exports,a=o&&"object"==i(e)&&e&&!e.nodeType&&e,s=a&&a.exports===o&&r.a.process,u=function(){try{var e=a&&a.require&&a.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(e){}}();t.a=u}).call(this,n(579)(e))},function(e,t,n){"use strict";t.a=Number.isInteger||function(e){return e<<0===e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(28),i=n(21);function o(e,t){Object(i.a)(2,arguments);var n=Object(r.a)(e),o=Object(r.a)(t),a=n.getTime()-o.getTime();return a<0?-1:a>0?1:a}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(28),i=n(21);function o(e){Object(i.a)(1,arguments);var t=Object(r.a)(e);return t.setHours(0,0,0,0),t}},,function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){e.exports=!1},function(e,t,n){function r(e){return(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})(e)}var i=n(292)("meta"),o=n(80),a=n(161),s=n(96).f,u=0,c=Object.isExtensible||function(){return!0},l=!n(81)((function(){return c(Object.preventExtensions({}))})),f=function(e){s(e,i,{value:{i:"O"+ ++u,w:{}}})},d=e.exports={KEY:i,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==r(e)?e:("string"==typeof e?"S":"P")+e;if(!a(e,i)){if(!c(e))return"F";if(!t)return"E";f(e)}return e[i].i},getWeak:function(e,t){if(!a(e,i)){if(!c(e))return!0;if(!t)return!1;f(e)}return e[i].w},onFreeze:function(e){return l&&d.NEED&&c(e)&&!a(e,i)&&f(e),e}}},function(e,t,n){var r=n(186),i=n(90)("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){var r=n(90)("unscopables"),i=Array.prototype;null==i[r]&&n(162)(i,r,{}),e.exports=function(e){i[r][e]=!0}},function(e,t,n){var r=n(178),i=n(652),o=n(560),a=n(68),s=n(93),u=n(377),c={},l={};(t=e.exports=function(e,t,n,f,d){var p,h,v,g,m=d?function(){return e}:u(e),y=r(n,f,t?2:1),b=0;if("function"!=typeof m)throw TypeError(e+" is not iterable!");if(o(m)){for(p=s(e.length);p>b;b++)if((g=t?y(a(h=e[b])[0],h[1]):y(e[b]))===c||g===l)return g}else for(v=m.call(e);!(h=v.next()).done;)if((g=i(v,y,h.value,t))===c||g===l)return g}).BREAK=c,t.RETURN=l},function(e,t,n){"use strict";n.r(t);var r=n(465);n.d(t,"default",(function(){return r.a}));var i=n(310);n.d(t,"iconButtonClasses",(function(){return i.a})),n.d(t,"getIconButtonUtilityClass",(function(){return i.b}))},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(752),i=n(1383),o=n(1441),a=n(167);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},function(e,t,n){"use strict";var r=n(612);t.a=r.a},function(e,t,n){"use strict";var r=n(212),i=n(29),o=n(98),a=Object(i.a)(Object(r.a)("tail",Object(o.a)(1,1/0)));t.a=a},function(e,t,n){"use strict";var r=n(500),i=n(12),o=n(313),a=Object(i.a)((function(e,t){return Object(o.a)(Object(r.a)(e),t)}));t.a=a},function(e,t,n){"use strict";var r=n(29),i=n(468),o=Object(r.a)((function(e){return Object(i.a)(e.length,e)}));t.a=o},function(e,t,n){"use strict";var r=n(237),i=Object(r.a)();t.a=i},,function(e,t,n){"use strict";var r=n(12),i=Object(r.a)((function(e,t){return Number(e)+Number(t)}));t.a=i},function(e,t,n){"use strict";var r=n(34),i=Object(r.a)((function(e,t,n){var r={};for(var i in n)r[i]=n[i];return r[e]=t,r}));t.a=i},function(e,t,n){"use strict";var r=n(12),i=n(91),o=Object(r.a)((function(e,t){return function(n){return function(r){return Object(i.a)((function(e){return t(e,r)}),n(e(r)))}}}));t.a=o},function(e,t,n){"use strict";var r=n(34),i=n(317),o=n(344),a=Object(r.a)((function e(t,n,r){return Object(o.a)((function(n,r,o){return Object(i.a)(r)&&Object(i.a)(o)?e(t,r,o):t(n,r,o)}),n,r)}));t.a=a},function(e,t,n){"use strict";n(1177);var r=n(2),i=n(392),o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,a=Object(i.a)((function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));function s(){return(s=Object.assign?Object.assign.bind():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 u=n(124),c=n(136),l=n(196),f=!!r.useInsertionEffect&&r.useInsertionEffect,d=f||function(e){return e()},p=(f||r.useLayoutEffect,a),h=function(e){return"theme"!==e},v=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?p:h},g=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},m=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Object(c.c)(t,n,r);d((function(){return Object(c.b)(t,n,r)}));return null},y=function e(t,n){var i,o,a=t.__emotion_real===t,f=a&&t.__emotion_base||t;void 0!==n&&(i=n.label,o=n.target);var d=g(t,n,a),p=d||v(f),h=!p("as");return function(){var y=arguments,b=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&b.push("label:"+i+";"),null==y[0]||void 0===y[0].raw)b.push.apply(b,y);else{0,b.push(y[0][0]);for(var x=y.length,w=1;w<x;w++)b.push(y[w],y[0][w])}var _=Object(u.h)((function(e,t,n){var i=h&&e.as||f,a="",s=[],g=e;if(null==e.theme){for(var y in g={},e)g[y]=e[y];g.theme=Object(r.useContext)(u.c)}"string"==typeof e.className?a=Object(c.a)(t.registered,s,e.className):null!=e.className&&(a=e.className+" ");var x=Object(l.a)(b.concat(s),t.registered,g);a+=t.key+"-"+x.name,void 0!==o&&(a+=" "+o);var w=h&&void 0===d?v(i):p,_={};for(var S in e)h&&"as"===S||w(S)&&(_[S]=e[S]);return _.className=a,_.ref=n,Object(r.createElement)(r.Fragment,null,Object(r.createElement)(m,{cache:t,serialized:x,isStringTag:"string"==typeof i}),Object(r.createElement)(i,_))}));return _.displayName=void 0!==i?i:"Styled("+("string"==typeof f?f:f.displayName||f.name||"Component")+")",_.defaultProps=t.defaultProps,_.__emotion_real=_,_.__emotion_base=f,_.__emotion_styles=b,_.__emotion_forwardProp=d,Object.defineProperty(_,"toString",{value:function(){return"."+o}}),_.withComponent=function(t,r){return e(t,s({},n,r,{shouldForwardProp:g(_,r,!0)})).apply(void 0,b)},_}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){y[e]=y(e)}));var b=y; /** @license MUI v5.10.3 * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ function x(e,t){return b(e,t)}n.d(t,"a",(function(){return x})),n.d(t,"b",(function(){return w}));var w=function(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():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";var r=n(629),i=Object(r.a)();t.a=i},function(e,t,n){"use strict";var r=n(2),i=r.createContext();t.a=i},function(e,t,n){"use strict";function r(e,t){return Array.isArray(t)?t.every((function(t){return-1!==e.indexOf(t)})):-1!==e.indexOf(t)}n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var i=function(e,t){return function(n){"Enter"!==n.key&&" "!==n.key||(e(),n.preventDefault(),n.stopPropagation()),t&&t(n)}}},function(e,t,n){var r=n(1186);e.exports=function(e,t){if(null==e)return{};var n,i,o=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},function(e,t,n){"use strict";var r=n(2),i=r.createContext();t.a=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(100),i=n(87);function o(e,t,n){return function(){for(var a=[],s=0,u=e,c=0;c<t.length||s<arguments.length;){var l;c<t.length&&(!Object(i.a)(t[c])||s>=arguments.length)?l=t[c]:(l=arguments[s],s+=1),a[c]=l,Object(i.a)(l)||(u-=1),c+=1}return u<=0?n.apply(this,a):Object(r.a)(u,o(e,a,n))}}},function(e,t,n){"use strict";var r=n(29),i=Object(r.a)((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));t.a=i},function(e,t,n){"use strict";var r={};function i(e,t,n){var o,a,s,u,c,l="";for("string"!=typeof t&&(n=t,t=i.defaultChars),void 0===n&&(n=!0),c=function(e){var t,n,i=r[e];if(i)return i;for(i=r[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?i.push(n):i.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)i[e.charCodeAt(t)]=e[t];return i}(t),o=0,a=e.length;o<a;o++)if(s=e.charCodeAt(o),n&&37===s&&o+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3)))l+=e.slice(o,o+3),o+=2;else if(s<128)l+=c[s];else if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&o+1<a&&(u=e.charCodeAt(o+1))>=56320&&u<=57343){l+=encodeURIComponent(e[o]+e[o+1]),o++;continue}l+="%EF%BF%BD"}else l+=encodeURIComponent(e[o]);return l}i.defaultChars=";/?:@&=+$,-_.!~*'()#",i.componentChars="-_.!~*'()",e.exports=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(182),i=n(183),o=n(39),a=new(function(e){function t(){return e.apply(this,arguments)||this}Object(r.a)(t,e);var n=t.prototype;return n.onSubscribe=function(){this.removeEventListener||this.setDefaultEventListener()},n.setEventListener=function(e){var t=this;this.removeEventListener&&this.removeEventListener(),this.removeEventListener=e((function(e){"boolean"==typeof e?t.setOnline(e):t.onOnline()}))},n.setOnline=function(e){this.online=e,e&&this.onOnline()},n.onOnline=function(){this.listeners.forEach((function(e){e()}))},n.isOnline=function(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine},n.setDefaultEventListener=function(){var e;!o.e&&(null==(e=window)?void 0:e.addEventListener)&&this.setEventListener((function(e){var t=function(){return e()};return window.addEventListener("online",t,!1),window.addEventListener("offline",t,!1),function(){window.removeEventListener("online",t),window.removeEventListener("offline",t)}}))},t}(i.a))},,function(e,t,n){"use strict";var r=n(173),i=n(477),o=Object(i.a)(r.a);t.a=o},function(e,t,n){"use strict";function r(e){this._maxSize=e,this.clear()}r.prototype.clear=function(){this._size=0,this._values=Object.create(null)},r.prototype.get=function(e){return this._values[e]},r.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var i=/[^.^\]^[]+|(?=\[\]|\.\.)/g,o=/^\d+$/,a=/^\d/,s=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,u=/^\s*(['"]?)(.*?)(\1)\s*$/,c=new r(512),l=new r(512),f=new r(512);function d(e){return c.get(e)||c.set(e,p(e).map((function(e){return e.replace(u,"$2")})))}function p(e){return e.match(i)||[""]}function h(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function v(e){return!h(e)&&(function(e){return e.match(a)&&!e.match(o)}(e)||function(e){return s.test(e)}(e))}e.exports={Cache:r,split:p,normalizePath:d,setter:function(e){var t=d(e);return l.get(e)||l.set(e,(function(e,n){for(var r=0,i=t.length,o=e;r<i-1;){var a=t[r];if("__proto__"===a||"constructor"===a||"prototype"===a)return e;o=o[t[r++]]}o[t[r]]=n}))},getter:function(e,t){var n=d(e);return f.get(e)||f.set(e,(function(e){for(var r=0,i=n.length;r<i;){if(null==e&&t)return;e=e[n[r++]]}return e}))},join:function(e){return e.reduce((function(e,t){return e+(h(t)||o.test(t)?"["+t+"]":(e?".":"")+t)}),"")},forEach:function(e,t,n){!function(e,t,n){var r,i,o,a,s=e.length;for(i=0;i<s;i++)(r=e[i])&&(v(r)&&(r='"'+r+'"'),a=h(r),o=!a&&/^\d+$/.test(r),t.call(n,r,a,o,i,e))}(Array.isArray(e)?e:p(e),t,n)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(43),i=n(28),o=n(21);function a(e,t){Object(o.a)(2,arguments);var n=Object(i.a)(e).getTime(),a=Object(r.a)(t);return new Date(n+a)}},function(e,t,n){"use strict";function r(e){return e}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(151);function i(e){return Object(r.a)(e).defaultView||window}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(2),i=n(315);function o(e,t){return r.useMemo((function(){return null==e&&null==t?null:function(n){Object(i.a)(e,n),Object(i.a)(t,n)}}),[e,t])}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return u})),n.d(t,"d",(function(){return c}));var r=function(e,t,n){var r=e.date(t);return null===t?"":e.isValid(r)?e.formatByString(r,n):""},i="_",o="2019-11-21T22:30:00.000",a="2019-01-01T09:00:00.000";function s(e,t,n,r){if(e)return e;var s=r.formatByString(r.date(a),t).replace(n,i);return s===r.formatByString(r.date(o),t).replace(n,"_")?s:""}function u(e,t,n,r){if(!e)return!1;var s=r.formatByString(r.date(a),t).replace(n,i),u=r.formatByString(r.date(o),t).replace(n,"_"),c=u===s&&e===u;return!c&&r.lib,c}var c=function(e,t){return function(n){var r=0;return n.split("").map((function(o,a){if(t.lastIndex=0,r>e.length-1)return"";var s=e[r],u=e[r+1],c=t.test(o)?o:"",l=s===i?c:s+c;return r+=l.length,a===n.length-1&&u&&u!==i?l?l+u:"":l})).join("")}}},function(e,t,n){"use strict";var r=n(34),i=n(356),o=Object(r.a)((function(e,t,n){return Object(i.a)(e,[t],n)}));t.a=o},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,n){var r=n(187),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},function(e,t,n){var r=n(641),i=n(548).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t){e.exports={}},function(e,t,n){"use strict";var r=n(74),i=n(96),o=n(92),a=n(90)("species");e.exports=function(e){var t=r[e];o&&t&&!t[a]&&i.f(t,a,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var r=n(163);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(80);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,n){var r=n(1273),i=n(1276);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},function(e,t,n){var r=n(385),i=n(1374),o=n(1375),a="[object Null]",s="[object Undefined]",u=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:a:u&&u in Object(e)?i(e):o(e)}},function(e,t,n){var r=n(1396),i=n(1399);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"j",(function(){return c})),n.d(t,"h",(function(){return l})),n.d(t,"b",(function(){return f})),n.d(t,"e",(function(){return d})),n.d(t,"d",(function(){return p})),n.d(t,"k",(function(){return h})),n.d(t,"i",(function(){return v})),n.d(t,"c",(function(){return g})),n.d(t,"f",(function(){return m})),n.d(t,"g",(function(){return y}));var r=n(40),i=n(119),o=n(104),a=n(84);function s(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var u=Object(r.a)({prop:"border",themeKey:"borders",transform:s}),c=Object(r.a)({prop:"borderTop",themeKey:"borders",transform:s}),l=Object(r.a)({prop:"borderRight",themeKey:"borders",transform:s}),f=Object(r.a)({prop:"borderBottom",themeKey:"borders",transform:s}),d=Object(r.a)({prop:"borderLeft",themeKey:"borders",transform:s}),p=Object(r.a)({prop:"borderColor",themeKey:"palette"}),h=Object(r.a)({prop:"borderTopColor",themeKey:"palette"}),v=Object(r.a)({prop:"borderRightColor",themeKey:"palette"}),g=Object(r.a)({prop:"borderBottomColor",themeKey:"palette"}),m=Object(r.a)({prop:"borderLeftColor",themeKey:"palette"}),y=function(e){if(void 0!==e.borderRadius&&null!==e.borderRadius){var t=Object(o.b)(e.theme,"shape.borderRadius",4,"borderRadius");return Object(a.c)(e,e.borderRadius,(function(e){return{borderRadius:Object(o.e)(t,e)}}))}return null};y.propTypes={},y.filterProps=["borderRadius"];var b=Object(i.a)(u,c,l,f,d,p,h,v,g,m,y);t.l=b},function(e,t,n){"use strict";n.d(t,"f",(function(){return o})),n.d(t,"g",(function(){return a})),n.d(t,"j",(function(){return s})),n.d(t,"k",(function(){return u})),n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return l})),n.d(t,"n",(function(){return f})),n.d(t,"e",(function(){return d})),n.d(t,"h",(function(){return p})),n.d(t,"i",(function(){return h})),n.d(t,"c",(function(){return v})),n.d(t,"l",(function(){return g})),n.d(t,"m",(function(){return m}));var r=n(40),i=n(119),o=Object(r.a)({prop:"flexBasis"}),a=Object(r.a)({prop:"flexDirection"}),s=Object(r.a)({prop:"flexWrap"}),u=Object(r.a)({prop:"justifyContent"}),c=Object(r.a)({prop:"alignItems"}),l=Object(r.a)({prop:"alignContent"}),f=Object(r.a)({prop:"order"}),d=Object(r.a)({prop:"flex"}),p=Object(r.a)({prop:"flexGrow"}),h=Object(r.a)({prop:"flexShrink"}),v=Object(r.a)({prop:"alignSelf"}),g=Object(r.a)({prop:"justifyItems"}),m=Object(r.a)({prop:"justifySelf"}),y=Object(i.a)(o,a,s,u,c,l,f,d,p,h,v,g,m);t.d=y},function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return u})),n.d(t,"m",(function(){return c})),n.d(t,"h",(function(){return l})),n.d(t,"i",(function(){return f})),n.d(t,"f",(function(){return d})),n.d(t,"e",(function(){return p})),n.d(t,"g",(function(){return h})),n.d(t,"k",(function(){return v})),n.d(t,"l",(function(){return g})),n.d(t,"j",(function(){return m})),n.d(t,"d",(function(){return y}));var r=n(40),i=n(119),o=n(104),a=n(84),s=function(e){if(void 0!==e.gap&&null!==e.gap){var t=Object(o.b)(e.theme,"spacing",8,"gap");return Object(a.c)(e,e.gap,(function(e){return{gap:Object(o.e)(t,e)}}))}return null};s.propTypes={},s.filterProps=["gap"];var u=function(e){if(void 0!==e.columnGap&&null!==e.columnGap){var t=Object(o.b)(e.theme,"spacing",8,"columnGap");return Object(a.c)(e,e.columnGap,(function(e){return{columnGap:Object(o.e)(t,e)}}))}return null};u.propTypes={},u.filterProps=["columnGap"];var c=function(e){if(void 0!==e.rowGap&&null!==e.rowGap){var t=Object(o.b)(e.theme,"spacing",8,"rowGap");return Object(a.c)(e,e.rowGap,(function(e){return{rowGap:Object(o.e)(t,e)}}))}return null};c.propTypes={},c.filterProps=["rowGap"];var l=Object(r.a)({prop:"gridColumn"}),f=Object(r.a)({prop:"gridRow"}),d=Object(r.a)({prop:"gridAutoFlow"}),p=Object(r.a)({prop:"gridAutoColumns"}),h=Object(r.a)({prop:"gridAutoRows"}),v=Object(r.a)({prop:"gridTemplateColumns"}),g=Object(r.a)({prop:"gridTemplateRows"}),m=Object(r.a)({prop:"gridTemplateAreas"}),y=Object(r.a)({prop:"gridArea"}),b=Object(i.a)(s,u,c,l,f,d,p,h,v,g,m,y);t.b=b},function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"g",(function(){return a})),n.d(t,"f",(function(){return s})),n.d(t,"e",(function(){return u})),n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return l}));var r=n(40),i=n(119),o=Object(r.a)({prop:"position"}),a=Object(r.a)({prop:"zIndex",themeKey:"zIndex"}),s=Object(r.a)({prop:"top"}),u=Object(r.a)({prop:"right"}),c=Object(r.a)({prop:"bottom"}),l=Object(r.a)({prop:"left"});t.b=Object(i.a)(o,a,s,u,c,l)},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var r=n(40),i=n(119),o=Object(r.a)({prop:"color",themeKey:"palette"}),a=Object(r.a)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),s=Object(r.a)({prop:"backgroundColor",themeKey:"palette"}),u=Object(i.a)(o,a,s);t.d=u},function(e,t,n){"use strict";n.d(t,"j",(function(){return s})),n.d(t,"e",(function(){return u})),n.d(t,"g",(function(){return c})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return f})),n.d(t,"f",(function(){return d})),n.d(t,"i",(function(){return p})),n.d(t,"h",(function(){return h})),n.d(t,"a",(function(){return v}));var r=n(40),i=n(119),o=n(84);function a(e){return e<=1&&0!==e?"".concat(100*e,"%"):e}var s=Object(r.a)({prop:"width",transform:a}),u=function(e){if(void 0!==e.maxWidth&&null!==e.maxWidth){return Object(o.c)(e,e.maxWidth,(function(t){var n,r,i;return{maxWidth:(null==(n=e.theme)?void 0:null==(r=n.breakpoints)?void 0:null==(i=r.values)?void 0:i[t])||o.g[t]||a(t)}}))}return null};u.filterProps=["maxWidth"];var c=Object(r.a)({prop:"minWidth",transform:a}),l=Object(r.a)({prop:"height",transform:a}),f=Object(r.a)({prop:"maxHeight",transform:a}),d=Object(r.a)({prop:"minHeight",transform:a}),p=Object(r.a)({prop:"size",cssProperty:"width",transform:a}),h=Object(r.a)({prop:"size",cssProperty:"height",transform:a}),v=Object(r.a)({prop:"boxSizing"}),g=Object(i.a)(s,u,c,l,f,d,v);t.b=g},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return c})),n.d(t,"i",(function(){return l})),n.d(t,"g",(function(){return f})),n.d(t,"h",(function(){return d})),n.d(t,"j",(function(){return p}));var r=n(40),i=n(119),o=Object(r.a)({prop:"fontFamily",themeKey:"typography"}),a=Object(r.a)({prop:"fontSize",themeKey:"typography"}),s=Object(r.a)({prop:"fontStyle",themeKey:"typography"}),u=Object(r.a)({prop:"fontWeight",themeKey:"typography"}),c=Object(r.a)({prop:"letterSpacing"}),l=Object(r.a)({prop:"textTransform"}),f=Object(r.a)({prop:"lineHeight"}),d=Object(r.a)({prop:"textAlign"}),p=Object(r.a)({prop:"typography",cssProperty:!1,themeKey:"typography"}),h=Object(i.a)(p,o,a,s,u,c,f,d,l);t.a=h},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(138),i=n(152);function o(e){return Object(r.a)("MuiIconButton",e)}var a=Object(i.a)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);t.a=a},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return c}));var r=n(2),i=n.n(r),o=i.a.createContext(void 0),a=i.a.createContext(!1);function s(e){return e&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=o),window.ReactQueryClientContext):o}var u=function(){var e=i.a.useContext(s(i.a.useContext(a)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},c=function(e){var t=e.client,n=e.contextSharing,r=void 0!==n&&n,o=e.children;i.a.useEffect((function(){return t.mount(),function(){t.unmount()}}),[t]);var u=s(r);return(i.a.createElement(a.Provider,{value:r},i.a.createElement(u.Provider,{value:t},o)))}},function(e,t,n){"use strict";var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),i="-ms-",o="-moz-",a="-webkit-",s="comm",u="rule",c="decl",l="@import",f="@keyframes",d=Math.abs,p=String.fromCharCode,h=Object.assign;function v(e){return e.trim()}function g(e,t,n){return e.replace(t,n)}function m(e,t){return e.indexOf(t)}function y(e,t){return 0|e.charCodeAt(t)}function b(e,t,n){return e.slice(t,n)}function x(e){return e.length}function w(e){return e.length}function _(e,t){return t.push(e),e}function S(e,t){return e.map(t).join("")}var O=1,k=1,E=0,j=0,T=0,C="";function A(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:O,column:k,length:a,return:""}}function P(e,t){return h(A("",null,null,"",null,null,0),e,{length:-e.length},t)}function M(){return T=j>0?y(C,--j):0,k--,10===T&&(k=1,O--),T}function I(){return T=j<E?y(C,j++):0,k++,10===T&&(k=1,O++),T}function R(){return y(C,j)}function D(){return j}function L(e,t){return b(C,e,t)}function N(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function F(e){return O=k=1,E=x(C=e),j=0,[]}function B(e){return C="",e}function U(e){return v(L(j-1,function e(t){for(;I();)switch(T){case t:return j;case 34:case 39:34!==t&&39!==t&&e(T);break;case 40:41===t&&e(t);break;case 92:I()}return j}(91===e?e+2:40===e?e+1:e)))}function z(e){for(;(T=R())&&T<33;)I();return N(e)>2||N(T)>3?"":" "}function V(e,t){for(;--t&&I()&&!(T<48||T>102||T>57&&T<65||T>70&&T<97););return L(e,D()+(t<6&&32==R()&&32==I()))}function H(e,t){for(;I()&&e+T!==57&&(e+T!==84||47!==R()););return"/*"+L(t,j-1)+"*"+p(47===e?e:I())}function W(e){for(;!N(R());)I();return L(e,j)}function q(e){return B(function e(t,n,r,i,o,a,s,u,c){var l=0,f=0,d=s,h=0,v=0,y=0,b=1,w=1,S=1,O=0,k="",E=o,j=a,T=i,C=k;for(;w;)switch(y=O,O=I()){case 40:if(108!=y&&58==C.charCodeAt(d-1)){-1!=m(C+=g(U(O),"&","&\f"),"&\f")&&(S=-1);break}case 34:case 39:case 91:C+=U(O);break;case 9:case 10:case 13:case 32:C+=z(y);break;case 92:C+=V(D()-1,7);continue;case 47:switch(R()){case 42:case 47:_(Y(H(I(),D()),n,r),c);break;default:C+="/"}break;case 123*b:u[l++]=x(C)*S;case 125*b:case 59:case 0:switch(O){case 0:case 125:w=0;case 59+f:v>0&&x(C)-d&&_(v>32?K(C+";",i,r,d-1):K(g(C," ","")+";",i,r,d-2),c);break;case 59:C+=";";default:if(_(T=G(C,n,r,l,f,o,u,k,E=[],j=[],d),a),123===O)if(0===f)e(C,n,T,T,E,a,d,u,j);else switch(h){case 100:case 109:case 115:e(t,T,T,i&&_(G(t,T,T,0,0,o,u,k,o,E=[],d),j),o,j,d,u,i?E:j);break;default:e(C,T,T,T,[""],j,0,u,j)}}l=f=v=0,b=S=1,k=C="",d=s;break;case 58:d=1+x(C),v=y;default:if(b<1)if(123==O)--b;else if(125==O&&0==b++&&125==M())continue;switch(C+=p(O),O*b){case 38:S=f>0?1:(C+="\f",-1);break;case 44:u[l++]=(x(C)-1)*S,S=1;break;case 64:45===R()&&(C+=U(I())),h=R(),f=d=x(k=C+=W(D())),O++;break;case 45:45===y&&2==x(C)&&(b=0)}}return a}("",null,null,null,[""],e=F(e),0,[0],e))}function G(e,t,n,r,i,o,a,s,c,l,f){for(var p=i-1,h=0===i?o:[""],m=w(h),y=0,x=0,_=0;y<r;++y)for(var S=0,O=b(e,p+1,p=d(x=a[y])),k=e;S<m;++S)(k=v(x>0?h[S]+" "+O:g(O,/&\f/g,h[S])))&&(c[_++]=k);return A(e,t,n,0===i?u:s,c,l,f)}function Y(e,t,n){return A(e,t,n,s,p(T),b(e,2,-2),0)}function K(e,t,n,r){return A(e,t,n,c,b(e,0,r),b(e,r+1,-1),r)}function $(e,t){switch(function(e,t){return(((t<<2^y(e,0))<<2^y(e,1))<<2^y(e,2))<<2^y(e,3)}(e,t)){case 5103:return a+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return a+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return a+e+o+e+i+e+e;case 6828:case 4268:return a+e+i+e+e;case 6165:return a+e+i+"flex-"+e+e;case 5187:return a+e+g(e,/(\w+).+(:[^]+)/,a+"box-$1$2"+i+"flex-$1$2")+e;case 5443:return a+e+i+"flex-item-"+g(e,/flex-|-self/,"")+e;case 4675:return a+e+i+"flex-line-pack"+g(e,/align-content|flex-|-self/,"")+e;case 5548:return a+e+i+g(e,"shrink","negative")+e;case 5292:return a+e+i+g(e,"basis","preferred-size")+e;case 6060:return a+"box-"+g(e,"-grow","")+a+e+i+g(e,"grow","positive")+e;case 4554:return a+g(e,/([^-])(transform)/g,"$1"+a+"$2")+e;case 6187:return g(g(g(e,/(zoom-|grab)/,a+"$1"),/(image-set)/,a+"$1"),e,"")+e;case 5495:case 3959:return g(e,/(image-set\([^]*)/,a+"$1$`$1");case 4968:return g(g(e,/(.+:)(flex-)?(.*)/,a+"box-pack:$3"+i+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+a+e+e;case 4095:case 3583:case 4068:case 2532:return g(e,/(.+)-inline(.+)/,a+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(x(e)-1-t>6)switch(y(e,t+1)){case 109:if(45!==y(e,t+4))break;case 102:return g(e,/(.+:)(.+)-([^]+)/,"$1"+a+"$2-$3$1"+o+(108==y(e,t+3)?"$3":"$2-$3"))+e;case 115:return~m(e,"stretch")?$(g(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==y(e,t+1))break;case 6444:switch(y(e,x(e)-3-(~m(e,"!important")&&10))){case 107:return g(e,":",":"+a)+e;case 101:return g(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+a+(45===y(e,14)?"inline-":"")+"box$3$1"+a+"$2$3$1"+i+"$2box$3")+e}break;case 5936:switch(y(e,t+11)){case 114:return a+e+i+g(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return a+e+i+g(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return a+e+i+g(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return a+e+i+e+e}return e}function X(e,t){for(var n="",r=w(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function Q(e,t,n,r){switch(e.type){case l:case c:return e.return=e.return||e.value;case s:return"";case f:return e.return=e.value+"{"+X(e.children,r)+"}";case u:e.value=e.props.join(",")}return x(n=X(e.children,r))?e.return=e.value+"{"+n+"}":""}function Z(e){return function(t){t.root||(t=t.return)&&e(t)}}n(391),n(392);var J=function(e,t,n){for(var r=0,i=0;r=i,i=R(),38===r&&12===i&&(t[n]=1),!N(i);)I();return L(e,j)},ee=function(e,t){return B(function(e,t){var n=-1,r=44;do{switch(N(r)){case 0:38===r&&12===R()&&(t[n]=1),e[n]+=J(j-1,t,n);break;case 2:e[n]+=U(r);break;case 4:if(44===r){e[++n]=58===R()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=p(r)}}while(r=I());return e}(F(e),t))},te=new WeakMap,ne=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||te.get(n))&&!r){te.set(e,!0);for(var i=[],o=ee(t,i),a=n.props,s=0,u=0;s<o.length;s++)for(var c=0;c<a.length;c++,u++)e.props[u]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},re=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},ie=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case c:e.return=$(e.value,e.length);break;case f:return X([P(e,{value:g(e.value,"@","@"+a)})],r);case u:if(e.length)return S(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return X([P(e,{props:[g(t,/:(read-\w+)/,":"+o+"$1")]})],r);case"::placeholder":return X([P(e,{props:[g(t,/:(plac\w+)/,":"+a+"input-$1")]}),P(e,{props:[g(t,/:(plac\w+)/,":"+o+"$1")]}),P(e,{props:[g(t,/:(plac\w+)/,i+"input-$1")]})],r)}return""}))}}];t.a=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i=e.stylisPlugins||ie;var o,a,s={},u=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;u.push(e)}));var c=[ne,re];var l,f=[Q,Z((function(e){l.insert(e)}))],d=function(e){var t=w(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}(c.concat(i,f));a=function(e,t,n,r){l=n,X(q(e?e+"{"+t.styles+"}":t.styles),d),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new r({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:a};return p.sheet.hydrate(u),p}},function(e,t,n){"use strict";var r=n(12),i=n(70),o=n(351),a=n(317),s=n(88),u=n(54),c=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=u.a.init,e.prototype["@@transducer/result"]=u.a.result,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}(),l=Object(r.a)((function(e,t){return new c(e,t)})),f=n(95),d=Object(r.a)(Object(i.a)(["filter"],l,(function(e,t){return Object(a.a)(t)?Object(s.a)((function(n,r){return e(t[r])&&(n[r]=t[r]),n}),{},Object(f.a)(t)):Object(o.a)(e,t)})));t.a=d},function(e,t,n){"use strict";function r(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){"function"==typeof e?e(t):e&&(e.current=t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function i(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(r(e.value)&&""!==e.value||t&&r(e.defaultValue)&&""!==e.defaultValue)}function o(e){return e.startAdornment}n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";function r(e){return"[object Object]"===Object.prototype.toString.call(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(1231),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 u(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,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=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=l(n);f&&(a=a.concat(f(n)));for(var s=u(t),v=u(n),g=0;g<a.length;++g){var m=a[g];if(!(o[m]||r&&r[m]||v&&v[m]||s&&s[m])){var y=d(n,m);try{c(t,m,y)}catch(e){}}}}return t}},,function(e,t,n){var r=n(1264),i=n(711);e.exports=function(e,t){return null!=e&&i(e,t,r)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(43),i=n(28),o=n(21);function a(e,t){Object(o.a)(2,arguments);var n=Object(i.a)(e),a=Object(r.a)(t);return n.setDate(n.getDate()+a),n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(28),i=n(43),o=n(21);function a(e,t){Object(o.a)(1,arguments);var n=t||{},a=n.locale,s=a&&a.options&&a.options.weekStartsOn,u=null==s?0:Object(i.a)(s),c=null==n.weekStartsOn?u:Object(i.a)(n.weekStartsOn);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=Object(r.a)(e),f=l.getDay(),d=(f<c?7:0)+f-c;return l.setDate(l.getDate()-d),l.setHours(0,0,0,0),l}},function(e,t,n){"use strict";t.a={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(138),i=n(152);function o(e){return Object(r.a)("MuiListItemButton",e)}var a=Object(i.a)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);t.a=a},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(17),s=n(1556),u=n(158),c=n(15),l=n(20),f=n(18),d=n(138),p=n(152);function h(e){return Object(d.a)("MuiTypography",e)}Object(p.a)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);var v=n(5),g=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],m=Object(c.a)("span",{name:"MuiTypography",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t["align".concat(Object(f.a)(n.align))],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({margin:0},n.variant&&t.typography[n.variant],"inherit"!==n.align&&{textAlign:n.align},n.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n.gutterBottom&&{marginBottom:"0.35em"},n.paragraph&&{marginBottom:16})})),y={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},b={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},x=o.forwardRef((function(e,t){var n=Object(l.a)({props:e,name:"MuiTypography"}),o=function(e){return b[e]||e}(n.color),c=Object(s.a)(Object(i.a)({},n,{color:o})),d=c.align,p=void 0===d?"inherit":d,x=c.className,w=c.component,_=c.gutterBottom,S=void 0!==_&&_,O=c.noWrap,k=void 0!==O&&O,E=c.paragraph,j=void 0!==E&&E,T=c.variant,C=void 0===T?"body1":T,A=c.variantMapping,P=void 0===A?y:A,M=Object(r.a)(c,g),I=Object(i.a)({},c,{align:p,color:o,className:x,component:w,gutterBottom:S,noWrap:k,paragraph:j,variant:C,variantMapping:P}),R=w||(j?"p":P[C]||y[C])||"span",D=function(e){var t=e.align,n=e.gutterBottom,r=e.noWrap,i=e.paragraph,o=e.variant,a=e.classes,s={root:["root",o,"inherit"!==e.align&&"align".concat(Object(f.a)(t)),n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return Object(u.a)(s,h,a)}(I);return Object(v.jsx)(m,Object(i.a)({as:R,ref:t,ownerState:I,className:Object(a.default)(D.root,x)},M))}));t.a=x},,function(e,t,n){var r=n(96).f,i=n(161),o=n(90)("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(24),i=n(200),o=n(81),a=n(553),s="["+a+"]",u=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),l=function(e,t,n){var i={},s=o((function(){return!!a[e]()||" "!=" "[e]()})),u=i[e]=s?t(f):a[e];n&&(i[n]=u),r(r.P+r.F*s,"String",i)},f=l.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(u,"")),2&t&&(e=e.replace(c,"")),e};e.exports=l},function(e,t,n){"use strict";(function(e){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh <http://feross.org> * @license MIT */ var r=n(1234),i=n(1235),o=n(1236);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(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 f(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);u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=d(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!u.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(u.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):d(e,t);if("Buffer"===t.type&&o(t.data))return d(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(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 f(e,t){if(l(t),e=s(e,t<0?0:0|p(t)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(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(u.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 z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(e).length;default:if(r)return z(e).length;t=(""+t).toLowerCase(),r=!0}}function v(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 E(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return C(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(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=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,s=e.length,u=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,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=n;o<s;o++)if(c(e,o)===c(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*a}else-1!==l&&(o-=o-l),l=-1}else for(n+u>s&&(n=s-u),o=n;o>=0;o--){for(var f=!0,d=0;d<u;d++)if(c(e,o+d)!==c(t,d)){f=!1;break}if(f)return o}return-1}function b(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 x(e,t,n,r){return H(z(t,e.length-n),e,n,r)}function w(e,t,n,r){return H(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function _(e,t,n,r){return w(e,t,n,r)}function S(e,t,n,r){return H(V(t),e,n,r)}function O(e,t,n,r){return H(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 k(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function E(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,u,c=e[i],l=null,f=c>239?4:c>223?3:c>191?2:1;if(i+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=f}return function(e){var t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=j));return n}(r)}t.Buffer=u,t.SlowBuffer=function(e){+e!=e&&(e=0);return u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.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(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return c(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return function(e,t,n,r){return l(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)},u.allocUnsafe=function(e){return f(null,e)},u.allocUnsafeSlow=function(e){return f(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.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},u.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}},u.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},u.byteLength=h,u.prototype._isBuffer=!0,u.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)g(this,t,t+1);return this},u.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)g(this,t,t+3),g(this,t+1,t+2);return this},u.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)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?E(this,0,e):v.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.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+">"},u.prototype.compare=function(e,t,n,r,i){if(!u.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),l=e.slice(t,n),f=0;f<s;++f)if(c[f]!==l[f]){o=c[f],a=l[f];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},u.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 b(this,e,t,n);case"utf8":case"utf-8":return x(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return _(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var j=4096;function T(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 C(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+=U(e[o]);return i}function P(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 M(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 I(e,t,n,r,i,o){if(!u.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 R(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 D(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 L(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 N(e,t,n,r,o){return o||L(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function F(e,t,n,r,o){return o||L(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.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),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=u.prototype;else{var i=t-e;n=new u(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||M(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||M(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||M(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||M(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||M(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||M(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||M(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||M(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},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||M(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},u.prototype.readInt8=function(e,t){return t||M(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||M(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||M(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||M(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||M(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||M(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||M(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||M(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||M(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||I(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},u.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||I(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},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):D(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);I(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},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);I(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},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):D(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return F(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return F(this,e,t,!1,n)},u.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||!u.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},u.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&&!u.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=u.isBuffer(e)?e:z(new u(e,r).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var B=/[^+\/0-9A-Za-z-_]/g;function U(e){return e<16?"0"+e.toString(16):e.toString(16)}function z(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 V(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(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(189))},function(e,t,n){"use strict";var r=n(130);function i(e,t,n,r,i){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}r.inherits(i,Error,{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,status:this.response&&this.response.status?this.response.status:null}}});var o=i.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(i,a),Object.defineProperty(o,"isAxiosError",{value:!0}),i.from=function(e,t,n,a,s,u){var c=Object.create(o);return r.toFlatObject(e,c,(function(e){return e!==Error.prototype})),i.call(c,e.message,t,n,a,s),c.name=e.name,u&&Object.assign(c,u),c},e.exports=i},function(e,t,n){var r=n(596),i=n(592);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(138),i=n(152);function o(e){return Object(r.a)("MuiSvgIcon",e)}var a=Object(i.a)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);t.a=a},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(138),i=n(152);function o(e){return Object(r.a)("MuiPaper",e)}var a=Object(i.a)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);t.a=a},function(e,t,n){"use strict";n.d(t,"c",(function(){return g})),n.d(t,"b",(function(){return m}));var r=n(303),i=n(393),o=n(304),a=n(305),s=n(306),u=n(307),c=n(394),l=n(308),f=n(104),d=n(309);function p(e){return(p="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 h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==p(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===p(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v={borders:r.l.filterProps,display:i.a.filterProps,flexbox:o.d.filterProps,grid:a.b.filterProps,positions:s.b.filterProps,palette:u.d.filterProps,shadows:c.a.filterProps,sizing:l.b.filterProps,spacing:f.c.filterProps,typography:d.a.filterProps},g={borders:r.l,display:i.a,flexbox:o.d,grid:a.b,positions:s.b,palette:u.d,shadows:c.a,sizing:l.b,spacing:f.c,typography:d.a},m=Object.keys(v).reduce((function(e,t){return v[t].forEach((function(n){e[n]=g[t]})),e}),{});t.a=function(e,t,n){var r=h(h({},e,t),"theme",n),i=m[e];return i?i(r):h({},e,t)}},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"Info");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");t.default=a},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(152),i=n(138);function o(e){return Object(i.a)("MuiModal",e)}var a=Object(r.a)("MuiModal",["root","hidden"]);t.a=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext");t.default=a},function(e,t,n){"use strict";var r=n(101),i=n(12),o=n(88),a=n(91),s=Object(i.a)((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))}:Object(o.a)((function(e,n){return Object(r.a)(e,Object(a.a)(n,t))}),[],e)}));t.a=s},function(e,t,n){"use strict";function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e,t){return e===t};return e.length===t.length&&e.every((function(e,r){return n(e,t[r])}))}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(12),i=n(112),o=n(195),a=n(194),s=n(213),u=Object(r.a)((function(e,t){if(Object(i.a)(e)){if(Object(i.a)(t))return e.concat(t);throw new TypeError(Object(s.a)(t)+" is not an array")}if(Object(a.a)(e)){if(Object(a.a)(t))return e+t;throw new TypeError(Object(s.a)(t)+" is not a string")}if(null!=e&&Object(o.a)(e["fantasy-land/concat"]))return e["fantasy-land/concat"](t);if(null!=e&&Object(o.a)(e.concat))return e.concat(t);throw new TypeError(Object(s.a)(e)+' does not have a method named "concat" or "fantasy-land/concat"')}));t.a=u},function(e,t,n){"use strict";var r=n(34),i=n(85),o=Object(r.a)((function(e,t,n){var r,o={};for(r in t)Object(i.a)(r,t)&&(o[r]=Object(i.a)(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)Object(i.a)(r,n)&&!Object(i.a)(r,o)&&(o[r]=n[r]);return o}));t.a=o},function(e,t,n){"use strict";var r=n(1553);t.a=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=Object(r.a)();return n&&(e=n,0!==Object.keys(e).length)?n:t}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var r=n(2),i=(n(347),n(46)),o=n(116),a=function(e){var t=e.props,n=e.value,r=e.adapter,i=r.utils.date(),a=r.utils.date(n),s=Object(o.b)(r.utils,t.minDate,r.defaultDates.minDate),u=Object(o.b)(r.utils,t.maxDate,r.defaultDates.maxDate);if(null===a)return null;switch(!0){case!r.utils.isValid(n):return"invalidDate";case Boolean(t.shouldDisableDate&&t.shouldDisableDate(a)):return"shouldDisableDate";case Boolean(t.disableFuture&&r.utils.isAfterDay(a,i)):return"disableFuture";case Boolean(t.disablePast&&r.utils.isBeforeDay(a,i)):return"disablePast";case Boolean(s&&r.utils.isBeforeDay(a,s)):return"minDate";case Boolean(u&&r.utils.isAfterDay(a,u)):return"maxDate";default:return null}},s=function(e){var t=e.shouldDisableDate,n=e.minDate,o=e.maxDate,s=e.disableFuture,u=e.disablePast,c=Object(i.c)();return r.useCallback((function(e){return null!==a({adapter:c,value:e,props:{shouldDisableDate:t,minDate:n,maxDate:o,disableFuture:s,disablePast:u}})}),[c,t,n,o,s,u])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(2),i=n(46);function o(e,t,n){var o=e.value,a=e.onError,s=Object(i.c)(),u=r.useRef(null),c=t({adapter:s,value:o,props:e});return r.useEffect((function(){a&&!n(c,u.current)&&a(c,o),u.current=c}),[n,a,u,c,o]),c}},function(e,t,n){"use strict";function r(e,t){return"function"==typeof e?e(t):e}n.d(t,"a",(function(){return r}))},function(e,t,n){var r=n(1191),i=n(1192),o=n(1193);e.exports=function(e,t){return r(e)||i(e,t)||o()}},function(e,t,n){"use strict";function r(e){return null!=e&&"function"==typeof e["@@transducer/step"]}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){for(var n=0,r=t.length,i=[];n<r;)e(t[n])&&(i[i.length]=t[n]),n+=1;return i}n.d(t,"a",(function(){return r}))},,,,,function(e,t,n){"use strict";var r=n(34),i=n(476),o=n(143),a=Object(r.a)((function(e,t,n){return Object(i.a)(e,Object(o.a)(t,n))}));t.a=a},,function(e,t,n){function r(e){return(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})(e)}var i=n(1363),o=Object.prototype.hasOwnProperty,a=Array.prototype.splice,s=Object.prototype.toString,u=function(e){return s.call(e).slice(8,-1)},c=Object.assign||function(e,t){return l(t).forEach((function(n){o.call(t,n)&&(e[n]=t[n])})),e},l="function"==typeof Object.getOwnPropertySymbols?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.keys(e)};function f(e){if(Array.isArray(e))return c(e.constructor(e.length),e);if("Map"===u(e))return new Map(e);if("Set"===u(e))return new Set(e);if(e&&"object"===r(e)){var t=Object.getPrototypeOf(e);return c(Object.create(t),e)}return e}function d(){var e=c({},p);return t.extend=function(t,n){e[t]=n},t.isEquals=function(e,t){return e===t},t;function t(n,a){"function"==typeof a&&(a={$apply:a}),Array.isArray(n)&&Array.isArray(a)||i(!Array.isArray(a),"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."),i("object"===r(a)&&null!==a,"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the following commands: %s.",Object.keys(e).join(", "));var s=n;return l(a).forEach((function(r){if(o.call(e,r)){var i=n===s;s=e[r](a[r],s,a,n),i&&t.isEquals(s,n)&&(s=n)}else{var c="Map"===u(n)?t(n.get(r),a[r]):t(n[r],a[r]),l="Map"===u(s)?s.get(r):s[r];t.isEquals(c,l)&&(void 0!==c||o.call(n,r))||(s===n&&(s=f(n)),"Map"===u(s)?s.set(r,c):s[r]=c)}})),s}}var p={$push:function(e,t,n){return v(t,n,"$push"),e.length?t.concat(e):t},$unshift:function(e,t,n){return v(t,n,"$unshift"),e.length?e.concat(t):t},$splice:function(e,t,n,r){return function(e,t){i(Array.isArray(e),"Expected $splice target to be an array; got %s",e),m(t.$splice)}(t,n),e.forEach((function(e){m(e),t===r&&e.length&&(t=f(r)),a.apply(t,e)})),t},$set:function(e,t,n){return function(e){i(1===Object.keys(e).length,"Cannot have more than one key in an object with $set")}(n),e},$toggle:function(e,t){g(e,"$toggle");var n=e.length?f(t):t;return e.forEach((function(e){n[e]=!t[e]})),n},$unset:function(e,t,n,r){return g(e,"$unset"),e.forEach((function(e){Object.hasOwnProperty.call(t,e)&&(t===r&&(t=f(r)),delete t[e])})),t},$add:function(e,t,n,r){return y(t,"$add"),g(e,"$add"),"Map"===u(t)?e.forEach((function(e){var n=e[0],i=e[1];t===r&&t.get(n)!==i&&(t=f(r)),t.set(n,i)})):e.forEach((function(e){t!==r||t.has(e)||(t=f(r)),t.add(e)})),t},$remove:function(e,t,n,r){return y(t,"$remove"),g(e,"$remove"),e.forEach((function(e){t===r&&t.has(e)&&(t=f(r)),t.delete(e)})),t},$merge:function(e,t,n,o){var a,s;return a=t,i((s=e)&&"object"===r(s),"update(): $merge expects a spec of type 'object'; got %s",s),i(a&&"object"===r(a),"update(): $merge expects a target of type 'object'; got %s",a),l(e).forEach((function(n){e[n]!==t[n]&&(t===o&&(t=f(o)),t[n]=e[n])})),t},$apply:function(e,t){var n;return i("function"==typeof(n=e),"update(): expected spec of $apply to be a function; got %s.",n),e(t)}},h=d();function v(e,t,n){i(Array.isArray(e),"update(): expected target of %s to be an array; got %s.",n,e),g(t[n],n)}function g(e,t){i(Array.isArray(e),"update(): expected spec of %s to be an array; got %s. Did you forget to wrap your parameter in an array?",t,e)}function m(e){i(Array.isArray(e),"update(): expected spec of $splice to be an array of arrays; got %s. Did you forget to wrap your parameters in an array?",e)}function y(e,t){var n=u(e);i("Map"===n||"Set"===n,"update(): %s expects a target of type Set or Map; got %s",t,n)}e.exports=h,e.exports.default=h,e.exports.newContext=d},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(28),i=n(21);function o(e){Object(i.a)(1,arguments);var t=Object(r.a)(e);return!isNaN(t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(43),i=n(28),o=n(197),a=n(21);function s(e,t){Object(a.a)(1,arguments);var n=Object(i.a)(e,t),s=n.getUTCFullYear(),u=t||{},c=u.locale,l=c&&c.options&&c.options.firstWeekContainsDate,f=null==l?1:Object(r.a)(l),d=null==u.firstWeekContainsDate?f:Object(r.a)(u.firstWeekContainsDate);if(!(d>=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(s+1,0,d),p.setUTCHours(0,0,0,0);var h=Object(o.a)(p,t),v=new Date(0);v.setUTCFullYear(s,0,d),v.setUTCHours(0,0,0,0);var g=Object(o.a)(v,t);return n.getTime()>=h.getTime()?s+1:n.getTime()>=g.getTime()?s:s-1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(250),i=n(21);function o(e,t){Object(i.a)(2,arguments);var n=Object(r.a)(e),o=Object(r.a)(t);return n.getTime()===o.getTime()}},function(e,t,n){"use strict";var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function i(e){return function(t){var n=t||{},r=n.width?String(n.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}var o={date:i({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:i({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:i({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},a={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function s(e){return function(t,n){var r,i=n||{};if("formatting"===(i.context?String(i.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=i.width?String(i.width):o;r=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,u=i.width?String(i.width):e.defaultWidth;r=e.values[u]||e.values[s]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function u(e){return function(t,n){var r=String(t),i=n||{},o=i.width,a=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],s=r.match(a);if(!s)return null;var u,c=s[0],l=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth];return u="[object Array]"===Object.prototype.toString.call(l)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}(l,(function(e){return e.test(r)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}(l,(function(e){return e.test(r)})),u=e.valueCallback?e.valueCallback(u):u,{value:u=i.valueCallback?i.valueCallback(u):u,rest:r.slice(c.length)}}}var c,l={code:"en-US",formatDistance:function(e,t,n){var i;return n=n||{},i="string"==typeof r[e]?r[e]:1===t?r[e].one:r[e].other.replace("{{count}}",t),n.addSuffix?n.comparison>0?"in "+i:i+" ago":i},formatLong:o,formatRelative:function(e,t,n,r){return a[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:s({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:s({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:s({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:s({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:s({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(c={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e,t){var n=String(e),r=t||{},i=n.match(c.matchPattern);if(!i)return null;var o=i[0],a=n.match(c.parsePattern);if(!a)return null;var s=c.valueCallback?c.valueCallback(a[0]):a[0];return{value:s=r.valueCallback?r.valueCallback(s):s,rest:n.slice(o.length)}}),era:u({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:u({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:u({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:u({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:u({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};t.a=l},,function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(17),s=n(158),u=n(18),c=n(15),l=n(169),f=n(122),d=n(887),p=n(138),h=n(152);function v(e){return Object(p.a)("PrivateSwitchBase",e)}Object(h.a)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var g=n(5);function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var b=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],x=Object(c.a)(d.a)((function(e){var t=e.ownerState;return Object(i.a)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})})),w=Object(c.a)("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),_=o.forwardRef((function(e,t){var n=e.autoFocus,o=e.checked,c=e.checkedIcon,d=e.className,p=e.defaultChecked,h=e.disabled,y=e.disableFocusRipple,_=void 0!==y&&y,S=e.edge,O=void 0!==S&&S,k=e.icon,E=e.id,j=e.inputProps,T=e.inputRef,C=e.name,A=e.onBlur,P=e.onChange,M=e.onFocus,I=e.readOnly,R=e.required,D=e.tabIndex,L=e.type,N=e.value,F=Object(r.a)(e,b),B=m(Object(l.a)({controlled:o,default:Boolean(p),name:"SwitchBase",state:"checked"}),2),U=B[0],z=B[1],V=Object(f.a)(),H=h;V&&void 0===H&&(H=V.disabled);var W="checkbox"===L||"radio"===L,q=Object(i.a)({},e,{checked:U,disabled:H,disableFocusRipple:_,edge:O}),G=function(e){var t=e.classes,n=e.checked,r=e.disabled,i=e.edge,o={root:["root",n&&"checked",r&&"disabled",i&&"edge".concat(Object(u.a)(i))],input:["input"]};return Object(s.a)(o,v,t)}(q);return Object(g.jsxs)(x,Object(i.a)({component:"span",className:Object(a.default)(G.root,d),centerRipple:!0,focusRipple:!_,disabled:H,tabIndex:null,role:void 0,onFocus:function(e){M&&M(e),V&&V.onFocus&&V.onFocus(e)},onBlur:function(e){A&&A(e),V&&V.onBlur&&V.onBlur(e)},ownerState:q,ref:t},F,{children:[Object(g.jsx)(w,Object(i.a)({autoFocus:n,checked:o,defaultChecked:p,className:G.input,disabled:H,id:W&&E,name:C,onChange:function(e){if(!e.nativeEvent.defaultPrevented){var t=e.target.checked;z(t),P&&P(e,t)}},readOnly:I,ref:T,required:R,ownerState:q,tabIndex:D,type:L},"checkbox"===L&&void 0===N?{}:{value:N},j)),U?c:k]}))}));t.a=_},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(314);function i(e){if("string"!=typeof e)throw new Error(Object(r.a)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(2),i=n(244);function o(e){var t=r.useRef(e);return Object(i.a)((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return u}));var r=n(26),i=n(20),o=n(46),a=n(116);function s(e,t){var n,s,u,c,l,f=Object(i.a)({props:e,name:t}),d=Object(o.e)(),p=Object(o.a)(),h=null!=(n=f.ampm)?n:d.is12HourCycleInCurrentLocale();if(null!=f.orientation&&"portrait"!==f.orientation)throw new Error("We are not supporting custom orientation for DateTimePicker yet :(");return Object(r.a)({ampm:h,orientation:"portrait",openTo:"day",views:["year","day","hours","minutes"],ampmInClock:!0,acceptRegex:h?/[\dap]/gi:/\d/gi,disableMaskedInput:!1,inputFormat:h?d.formats.keyboardDateTime12h:d.formats.keyboardDateTime24h,disableIgnoringDatePartForTimeValidation:Boolean(f.minDateTime||f.maxDateTime),disablePast:!1,disableFuture:!1},f,{minDate:Object(a.b)(d,null!=(s=f.minDateTime)?s:f.minDate,p.minDate),maxDate:Object(a.b)(d,null!=(u=f.maxDateTime)?u:f.maxDate,p.maxDate),minTime:null!=(c=f.minDateTime)?c:f.minTime,maxTime:null!=(l=f.maxDateTime)?l:f.maxTime})}var u={emptyValue:null,getTodayValue:function(e){return e.date()},parseInput:a.c,areValuesEqual:function(e,t,n){return e.isEqual(t,n)}}},function(e,t,n){"use strict";var r=n(2),i=n.n(r);t.a=i.a.createContext(null)},function(e,t,n){"use strict";t.a="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(138),i=n(152);function o(e){return Object(r.a)("MuiFormLabel",e)}var a=Object(i.a)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]);t.a=a},,,,function(e,t,n){var r=n(147),i=n(74),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(253)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var r=n(186);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(255),i=n(90)("iterator"),o=n(295);e.exports=n(147).getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},function(e,t,n){"use strict";var r=n(68);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(68),i=n(129),o=n(90)("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){e.exports=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.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(782);n.d(t,"QueryClient",(function(){return r.a}));var i=n(693);n.o(i,"QueryClientProvider")&&n.d(t,"QueryClientProvider",(function(){return i.QueryClientProvider})),n.o(i,"useMutation")&&n.d(t,"useMutation",(function(){return i.useMutation})),n.o(i,"useQuery")&&n.d(t,"useQuery",(function(){return i.useQuery})),n.o(i,"useQueryClient")&&n.d(t,"useQueryClient",(function(){return i.useQueryClient}))},function(e,t,n){var r=n(437),i=n(1265),o=n(1266),a="[object Null]",s="[object Undefined]",u=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:a:u&&u in Object(e)?i(e):o(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(1291);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(190).Symbol;e.exports=r},function(e,t,n){var r=n(748),i=n(1381),o=n(331);e.exports=function(e){return o(e)?r(e):i(e)}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(767),i=n(602);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,u=t.length;++s<u;){var c=t[s],l=o?o(n[c],e[c],c,n,e):void 0;void 0===l&&(l=e[c]),a?i(n,c,l):r(n,c,l)}return n}},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;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}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,s,u=a(e),c=1;c<arguments.length;c++){for(var l in n=Object(arguments[c]))i.call(n,l)&&(u[l]=n[l]);if(r){s=r(n);for(var f=0;f<s.length;f++)o.call(n,s[f])&&(u[s[f]]=n[s[f]])}}return u}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(2),i=n.n(r);function o(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var a=i.a.createContext(o()),s=function(){return i.a.useContext(a)}},function(e,t,n){"use strict";t.a=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}},function(e,t,n){"use strict";t.a=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},function(e,t,n){"use strict";var r=n(40),i=n(119),o=Object(r.a)({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),a=Object(r.a)({prop:"display"}),s=Object(r.a)({prop:"overflow"}),u=Object(r.a)({prop:"textOverflow"}),c=Object(r.a)({prop:"visibility"}),l=Object(r.a)({prop:"whiteSpace"});t.a=Object(i.a)(o,a,s,u,c,l)},function(e,t,n){"use strict";var r=n(40),i=Object(r.a)({prop:"boxShadow",themeKey:"shadows"});t.a=i},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility");t.default=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(55),i=n(102),o=n(2),a=n(17),s=n(271),u=n(1554),c=n(1556),l=n(192),f=n(5),d=["className","component"];function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.defaultTheme,n=e.defaultClassName,p=void 0===n?"MuiBox-root":n,h=e.generateClassName,v=e.styleFunctionSx,g=void 0===v?u.a:v,m=Object(s.a)("div",{shouldForwardProp:function(e){return"theme"!==e&&"sx"!==e&&"as"!==e}})(g);return o.forwardRef((function(e,n){var o=Object(l.a)(t),s=Object(c.a)(e),u=s.className,v=s.component,g=void 0===v?"div":v,y=Object(i.a)(s,d);return Object(f.jsx)(m,Object(r.a)({as:g,ref:n,className:Object(a.default)(u,h?h(p):p),theme:o},y))}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return v}));var r=n(151),i=n(288),o=n(614);function a(e){return(a="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 s(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,(i=r.key,o=void 0,o=function(e,t){if("object"!==a(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===a(o)?o:String(o)),r)}var i,o}function u(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function f(e){return parseInt(Object(i.a)(e).getComputedStyle(e).paddingRight,10)||0}function d(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,o=[t,n].concat(u(r));[].forEach.call(e.children,(function(e){var t=-1===o.indexOf(e),n=!function(e){var t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&l(e,i)}))}function p(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function h(e,t){var n=[],a=e.container;if(!t.disableScrollLock){if(function(e){var t=Object(r.a)(e);return t.body===e?Object(i.a)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(a)){var s=Object(o.a)(Object(r.a)(a));n.push({value:a.style.paddingRight,property:"padding-right",el:a}),a.style.paddingRight="".concat(f(a)+s,"px");var u=Object(r.a)(a).querySelectorAll(".mui-fixed");[].forEach.call(u,(function(e){n.push({value:e.style.paddingRight,property:"padding-right",el:e}),e.style.paddingRight="".concat(f(e)+s,"px")}))}var c;if(a.parentNode instanceof DocumentFragment)c=Object(r.a)(a).body;else{var l=a.parentElement,d=Object(i.a)(a);c="HTML"===(null==l?void 0:l.nodeName)&&"scroll"===d.getComputedStyle(l).overflowY?l:a}n.push({value:c.style.overflow,property:"overflow",el:c},{value:c.style.overflowX,property:"overflow-x",el:c},{value:c.style.overflowY,property:"overflow-y",el:c}),c.style.overflow="hidden"}return function(){n.forEach((function(e){var t=e.value,n=e.el,r=e.property;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var v=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]},(t=[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&l(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);d(t,e.mount,e.modalRef,r,!0);var i=p(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}},{key:"mount",value:function(e,t){var n=p(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=h(r,t))}},{key:"remove",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.modals.indexOf(e);if(-1===n)return n;var r=p(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&l(e.modalRef,t),d(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{var o=i.modals[i.modals.length-1];o.modalRef&&l(o.modalRef,!1)}return n}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}])&&s(e.prototype,t),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return w}));var r=n(102),i=n(55),o=n(2),a=n(17),s=n(365),u=n(138),c=n(158),l=n(885),f=n(265),d=n(883),p=n(5);function h(e){return(h="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 v(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==h(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===h(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=["className","component","disableGutters","fixed","maxWidth","classes"],m=Object(d.a)(),y=Object(f.a)("div",{name:"MuiContainer",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t["maxWidth".concat(Object(s.a)(String(n.maxWidth)))],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),b=function(e){return Object(l.a)({props:e,name:"MuiContainer",defaultTheme:m})},x=function(e,t){var n=e.classes,r=e.fixed,i=e.disableGutters,o=e.maxWidth,a={root:["root",o&&"maxWidth".concat(Object(s.a)(String(o))),r&&"fixed",i&&"disableGutters"]};return Object(c.a)(a,(function(e){return Object(u.a)(t,e)}),n)};function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.createStyledComponent,n=void 0===t?y:t,s=e.useThemeProps,u=void 0===s?b:s,c=e.componentName,l=void 0===c?"MuiContainer":c,f=n((function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!n.disableGutters&&v({paddingLeft:t.spacing(2),paddingRight:t.spacing(2)},t.breakpoints.up("sm"),{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}))}),(function(e){var t=e.theme;return e.ownerState.fixed&&Object.keys(t.breakpoints.values).reduce((function(e,n){var r=n,i=t.breakpoints.values[r];return 0!==i&&(e[t.breakpoints.up(r)]={maxWidth:"".concat(i).concat(t.breakpoints.unit)}),e}),{})}),(function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({},"xs"===n.maxWidth&&v({},t.breakpoints.up("xs"),{maxWidth:Math.max(t.breakpoints.values.xs,444)}),n.maxWidth&&"xs"!==n.maxWidth&&v({},t.breakpoints.up(n.maxWidth),{maxWidth:"".concat(t.breakpoints.values[n.maxWidth]).concat(t.breakpoints.unit)}))}));return o.forwardRef((function(e,t){var n=u(e),o=n.className,s=n.component,c=void 0===s?"div":s,d=n.disableGutters,h=void 0!==d&&d,v=n.fixed,m=void 0!==v&&v,y=n.maxWidth,b=void 0===y?"lg":y,w=Object(r.a)(n,g),_=Object(i.a)({},n,{component:c,disableGutters:h,fixed:m,maxWidth:b}),S=x(_,l);return Object(p.jsx)(f,Object(i.a)({as:c,ownerState:_,className:Object(a.default)(S.root,o),ref:t},w))}))}},function(e,t,n){"use strict";var r=n(208),i=Object(r.a)(0);t.a=i},function(e,t,n){"use strict";var r=n(12),i=Object(r.a)((function(e,t){return e*t}));t.a=i},function(e,t,n){"use strict";var r=n(29),i=n(95),o=Object(r.a)((function(e){for(var t=Object(i.a)(e),n=t.length,r=[],o=0;o<n;)r[o]=e[t[o]],o+=1;return r}));t.a=o},function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r),t.apply(this,r)}}),(function(){}))}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n(2);var r=n(56),i=n(5);t.a=Object(r.a)(Object(i.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft")},function(e,t,n){"use strict";n(2);var r=n(56),i=n(5);t.a=Object(r.a)(Object(i.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight")},function(e,t,n){"use strict";var r=n(264),i=n(469),o=Object(r.a)(i.a);t.a=o},function(e,t,n){"use strict";var r=n(29),i=n(470),o=n(89),a=Object(r.a)((function(e){return null!=e&&Object(o.a)(e,Object(i.a)(e))}));t.a=a},,function(e,t,n){"use strict";var r=n(12),i=Object(r.a)((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}));t.a=i},,,function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(138),i=n(152);function o(e){return Object(r.a)("MuiTabs",e)}var a=Object(i.a)("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]);t.a=a},function(e,t){function n(e){return(n="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 r(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=r=function(e){return n(e)}:e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},r(t)}e.exports=r},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(138),i=n(152);function o(e){return Object(r.a)("MuiDialog",e)}var a=Object(i.a)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);t.a=a},,,,function(e,t,n){var r=n(148),i=n(93),o=n(293);e.exports=function(e){return function(t,n,a){var s,u=r(t),c=i(u.length),l=o(a,c);if(e&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(186);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(187),i=n(200);e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),u=r(n),c=s.length;return u<0||u>=c?e?"":void 0:(o=s.charCodeAt(u))<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):a-56320+(o-55296<<10)+65536}}},function(e,t,n){"use strict";var r=n(253),i=n(24),o=n(163),a=n(162),s=n(295),u=n(423),c=n(327),l=n(165),f=n(90)("iterator"),d=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,n,h,v,g,m){u(n,t,h);var y,b,x,w=function(e){if(!d&&e in k)return k[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},_=t+" Iterator",S="values"==v,O=!1,k=e.prototype,E=k[f]||k["@@iterator"]||v&&k[v],j=E||w(v),T=v?S?w("entries"):j:void 0,C="Array"==t&&k.entries||E;if(C&&(x=l(C.call(new e)))!==Object.prototype&&x.next&&(c(x,_,!0),r||"function"==typeof x[f]||a(x,f,p)),S&&E&&"values"!==E.name&&(O=!0,j=function(){return E.call(this)}),r&&!m||!d&&!O&&k[f]||a(k,f,j),s[t]=j,s[_]=p,v)if(y={values:S?j:w("values"),keys:g?j:w("keys"),entries:T},m)for(b in y)b in k||o(k,b,y[b]);else i(i.P+i.F*(d||O),t,y);return y}},function(e,t,n){"use strict";var r=n(226),i=n(252),o=n(327),a={};n(162)(a,n(90)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},function(e,t,n){var r=n(80),i=n(186),o=n(90)("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(90)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},e(o)}catch(e){}return n}},function(e,t,n){"use strict";function r(e){return(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})(e)}var i=n(255),o=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var a=n.call(e,t);if("object"!==r(a))throw new TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==i(e))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},function(e,t,n){"use strict";n(655);var r=n(163),i=n(162),o=n(81),a=n(200),s=n(90),u=n(566),c=s("species"),l=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),f=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){var d=s(e),p=!o((function(){var t={};return t[d]=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[c]=function(){return n}),n[d](""),!t})):void 0;if(!p||!h||"replace"===e&&!l||"split"===e&&!f){var v=/./[d],g=n(a,d,""[e],(function(e,t,n,r,i){return t.exec===u?p&&!i?{done:!0,value:v.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),m=g[0],y=g[1];r(String.prototype,e,m),i(RegExp.prototype,d,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)})}}},function(e,t,n){var r=n(74).navigator;e.exports=r&&r.userAgent||""},function(e,t,n){"use strict";var r=n(74),i=n(24),o=n(163),a=n(298),s=n(254),u=n(257),c=n(297),l=n(80),f=n(81),d=n(425),p=n(327),h=n(554);e.exports=function(e,t,n,v,g,m){var y=r[e],b=y,x=g?"set":"add",w=b&&b.prototype,_={},S=function(e){var t=w[e];o(w,e,"delete"==e?function(e){return!(m&&!l(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!l(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof b&&(m||w.forEach&&!f((function(){(new b).entries().next()})))){var O=new b,k=O[x](m?{}:-0,1)!=O,E=f((function(){O.has(1)})),j=d((function(e){new b(e)})),T=!m&&f((function(){for(var e=new b,t=5;t--;)e[x](t,t);return!e.has(-0)}));j||((b=t((function(t,n){c(t,b,e);var r=h(new y,t,b);return null!=n&&u(n,g,r[x],r),r}))).prototype=w,w.constructor=b),(E||T)&&(S("delete"),S("has"),g&&S("get")),(T||k)&&S(x),m&&w.clear&&delete w.clear}else b=v.getConstructor(t,e,g,x),a(b.prototype,n),s.NEED=!0;return p(b,e),_[e]=b,i(i.G+i.W+i.F*(b!=y),_),m||v.setStrong(b,e,g),b}},function(e,t,n){for(var r,i=n(74),o=n(162),a=n(292),s=a("typed_array"),u=a("view"),c=!(!i.ArrayBuffer||!i.DataView),l=c,f=0,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");f<9;)(r=i[d[f++]])?(o(r.prototype,s,!0),o(r.prototype,u,!0)):l=!1;e.exports={ABV:c,CONSTR:l,TYPED:s,VIEW:u}},function(e,t,n){"use strict";e.exports=n(253)||!n(81)((function(){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete n(74)[e]}))},function(e,t,n){"use strict";var r=n(24);e.exports=function(e){r(r.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},function(e,t,n){"use strict";var r=n(24),i=n(129),o=n(178),a=n(257);e.exports=function(e){r(r.S,e,{from:function(e){var t,n,r,s,u=arguments[1];return i(this),(t=void 0!==u)&&i(u),null==e?new this:(n=[],t?(r=0,s=o(u,arguments[2],2),a(e,!1,(function(e){n.push(s(e,r++))}))):a(e,!1,n.push,n),new this(n))}})}},function(e,t,n){"use strict";var r=n(610);t.a=r.a},function(e,t,n){"use strict";var r=n(398);n.d(t,"a",(function(){return r.b}));var i=n(339);n.d(t,"c",(function(){return i.a})),n.d(t,"b",(function(){return i.b}))},function(e,t,n){"use strict";var r=n(330);function i(e){r.call(this,null==e?"canceled":e,r.ERR_CANCELED),this.name="CanceledError"}n(130).inherits(i,r,{__CANCEL__:!0}),e.exports=i},function(e,t,n){var r=n(232).Symbol;e.exports=r},function(e,t,n){var r=n(300)(Object,"create");e.exports=r},function(e,t,n){var r=n(1281),i=n(1282),o=n(1283),a=n(1284),s=n(1285);function u(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])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},function(e,t,n){var r=n(716);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(1287);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(582),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){(function(e){function r(e){return(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})(e)}var i=n(190),o=n(1379),a="object"==r(t)&&t&&!t.nodeType&&t,s=a&&"object"==r(e)&&e&&!e.nodeType&&e,u=s&&s.exports===a?i.Buffer:void 0,c=(u?u.isBuffer:void 0)||o;e.exports=c}).call(this,n(231)(e))},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(446),i=n(1391),o=n(1392),a=n(1393),s=n(1394),u=n(1395);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=u,e.exports=c},function(e,t,n){var r=n(1386),i=n(1387),o=n(1388),a=n(1389),s=n(1390);function u(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])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},function(e,t,n){var r=n(387);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(302)(Object,"create");e.exports=r},function(e,t,n){var r=n(1408);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(1423),i=n(598),o=n(1424),a=n(1425),s=n(1426),u=n(301),c=n(753),l=c(r),f=c(i),d=c(o),p=c(a),h=c(s),v=u;(r&&"[object DataView]"!=v(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=v(new i)||o&&"[object Promise]"!=v(o.resolve())||a&&"[object Set]"!=v(new a)||s&&"[object WeakMap]"!=v(new s))&&(v=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case d:return"[object Promise]";case p:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=v},function(e,t,n){function r(e){return(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})(e)}var i=n(301),o=n(204),a="[object Symbol]";e.exports=function(e){return"symbol"==r(e)||o(e)&&i(e)==a}},function(e,t,n){var r=n(451),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(748),i=n(1448),o=n(331);e.exports=function(e){return o(e)?r(e,!0):i(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(102),i=n(55);function o(e){return(o="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 a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===o(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=["values","unit","step"],u=function(e){var t=Object.keys(e).map((function(t){return{key:t,val:e[t]}}))||[];return t.sort((function(e,t){return e.val-t.val})),t.reduce((function(e,t){return Object(i.a)({},e,a({},t.key,t.val))}),{})};function c(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:900,lg:1200,xl:1536}:t,o=e.unit,a=void 0===o?"px":o,c=e.step,l=void 0===c?5:c,f=Object(r.a)(e,s),d=u(n),p=Object.keys(d);function h(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(a,")")}function v(e){var t="number"==typeof n[e]?n[e]:e;return"@media (max-width:".concat(t-l/100).concat(a,")")}function g(e,t){var r=p.indexOf(t);return"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(a,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[p[r]]?n[p[r]]:t)-l/100).concat(a,")")}return Object(i.a)({keys:p,values:d,up:h,down:v,between:g,only:function(e){return p.indexOf(e)+1<p.length?g(e,p[p.indexOf(e)+1]):h(e)},not:function(e){var t=p.indexOf(e);return 0===t?h(p[1]):t===p.length-1?v(p[t]):g(e,p[p.indexOf(e)+1]).replace("@media","@media not all and")},unit:a},f)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(104);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=Object(r.a)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=0===n.length?[1]:n;return i.map((function(e){var n=t(e);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return n.mui=!0,n}},function(e,t,n){"use strict";t.a={borderRadius:4}},function(e,t,n){"use strict";var r=n(403);t.a=r.a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2z"}),"Notifications");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6zm6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26z"}),"Autorenew");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M19 13H5v-2h14v2z"}),"Remove");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Edit");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}),"KeyboardArrowDown");t.default=a},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(17),s=n(158),u=n(177),c=n(15),l=n(20),f=n(887),d=n(18),p=n(310),h=n(5);function v(e){return(v="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 g(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==v(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===v(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=["edge","children","className","color","disabled","disableFocusRipple","size"],y=Object(c.a)(f.a,{name:"MuiIconButton",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,"default"!==n.color&&t["color".concat(Object(d.a)(n.color))],n.edge&&t["edge".concat(Object(d.a)(n.edge))],t["size".concat(Object(d.a)(n.size))]]}})((function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):Object(u.a)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===n.edge&&{marginLeft:"small"===n.size?-3:-12},"end"===n.edge&&{marginRight:"small"===n.size?-3:-12})}),(function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({},"inherit"===n.color&&{color:"inherit"},"inherit"!==n.color&&"default"!==n.color&&Object(i.a)({color:(t.vars||t).palette[n.color].main},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):Object(u.a)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}}),"small"===n.size&&{padding:5,fontSize:t.typography.pxToRem(18)},"large"===n.size&&{padding:12,fontSize:t.typography.pxToRem(28)},g({},"&.".concat(p.a.disabled),{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}))})),b=o.forwardRef((function(e,t){var n=Object(l.a)({props:e,name:"MuiIconButton"}),o=n.edge,u=void 0!==o&&o,c=n.children,f=n.className,v=n.color,g=void 0===v?"default":v,b=n.disabled,x=void 0!==b&&b,w=n.disableFocusRipple,_=void 0!==w&&w,S=n.size,O=void 0===S?"medium":S,k=Object(r.a)(n,m),E=Object(i.a)({},n,{edge:u,color:g,disabled:x,disableFocusRipple:_,size:O}),j=function(e){var t=e.classes,n=e.disabled,r=e.color,i=e.edge,o=e.size,a={root:["root",n&&"disabled","default"!==r&&"color".concat(Object(d.a)(r)),i&&"edge".concat(Object(d.a)(i)),"size".concat(Object(d.a)(o))]};return Object(s.a)(a,p.b,t)}(E);return Object(h.jsx)(y,Object(i.a)({className:Object(a.default)(j.root,f),centerRipple:!0,focusRipple:!_,disabled:x,ref:t,ownerState:E},k,{children:c}))}));t.a=b},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(6),i=n(149);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return Object(i.a)(e)?t:Object(r.a)({},t,{ownerState:Object(r.a)({},t.ownerState,n)})}},function(e,t,n){"use strict";var r=n(100),i=n(12),o=Object(i.a)((function(e,t){return Object(r.a)(e.length,(function(){return e.apply(t,arguments)}))}));t.a=o},function(e,t,n){"use strict";var r=n(12),i=n(88),o=n(341),a=n(77),s=n(91),u=Object(r.a)((function(e,t){var n=Object(a.a)(e,t);return Object(a.a)(e,(function(){return Object(i.a)(o.a,Object(s.a)(n,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));t.a=u},function(e,t,n){"use strict";var r=n(29),i=Object(r.a)((function(e){return!e}));t.a=i},function(e,t,n){"use strict";var r=n(29),i=n(499),o=n(112),a=n(317),s=n(194),u=Object(r.a)((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():Object(o.a)(e)?[]:Object(s.a)(e)?"":Object(a.a)(e)?{}:Object(i.a)(e)?function(){return arguments}():void 0}));t.a=u},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(182),i=n(79),o=n(512),a=n(39),s=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.mutations=[],n.mutationId=0,n}Object(r.a)(t,e);var n=t.prototype;return n.build=function(e,t,n){var r=new o.a({mutationCache:this,mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(r),r},n.add=function(e){this.mutations.push(e),this.notify(e)},n.remove=function(e){this.mutations=this.mutations.filter((function(t){return t!==e})),e.cancel(),this.notify(e)},n.clear=function(){var e=this;i.a.batch((function(){e.mutations.forEach((function(t){e.remove(t)}))}))},n.getAll=function(){return this.mutations},n.find=function(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find((function(t){return Object(a.g)(e,t)}))},n.findAll=function(e){return this.mutations.filter((function(t){return Object(a.g)(e,t)}))},n.notify=function(e){var t=this;i.a.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var e=this.mutations.filter((function(e){return e.state.isPaused}));return i.a.batch((function(){return e.reduce((function(e,t){return e.then((function(){return t.continue().catch(a.i)}))}),Promise.resolve())}))},t}(n(183).a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(63),i=n(182),o=n(512),a=n(79),s=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.setOptions(n),r.bindMethods(),r.updateResult(),r}Object(i.a)(t,e);var n=t.prototype;return n.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},n.setOptions=function(e){this.options=this.client.defaultMutationOptions(e)},n.onUnsubscribe=function(){var e;this.listeners.length||(null==(e=this.currentMutation)||e.removeObserver(this))},n.onMutationUpdate=function(e){this.updateResult();var t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)},n.getCurrentResult=function(){return this.currentResult},n.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},n.mutate=function(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,Object(r.a)({},this.options,{variables:void 0!==e?e:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},n.updateResult=function(){var e=this.currentMutation?this.currentMutation.state:Object(o.b)(),t=Object(r.a)({},e,{isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset});this.currentResult=t},n.notify=function(e){var t=this;a.a.batch((function(){t.mutateOptions&&(e.onSuccess?(null==t.mutateOptions.onSuccess||t.mutateOptions.onSuccess(t.currentResult.data,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(t.currentResult.data,null,t.currentResult.variables,t.currentResult.context)):e.onError&&(null==t.mutateOptions.onError||t.mutateOptions.onError(t.currentResult.error,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(void 0,t.currentResult.error,t.currentResult.variables,t.currentResult.context))),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)}))}))},t}(n(183).a)},function(e,t,n){"use strict";var r=n(12),i=Object(r.a)((function(e,t){return null==t||t!=t?e:t}));t.a=i},function(e,t,n){"use strict";var r=n(518),i=n(12),o=Object(i.a)((function(e,t){for(var n,i,o=new r.a,a=[],s=0;s<t.length;)n=e(i=t[s]),o.add(n)&&a.push(i),s+=1;return a}));t.a=o},function(e,t,n){"use strict";var r=n(208),i=Object(r.a)(-1);t.a=i},function(e,t,n){"use strict";var r=n(34),i=n(85),o=n(112),a=n(248),s=n(268),u=n(146),c=Object(r.a)((function e(t,n,r){if(0===t.length)return n;var c=t[0];if(t.length>1){var l=!Object(u.a)(r)&&Object(i.a)(c,r)?r[c]:Object(a.a)(t[1])?[]:{};n=e(Array.prototype.slice.call(t,1),n,l)}if(Object(a.a)(c)&&Object(o.a)(r)){var f=[].concat(r);return f[c]=n,f}return Object(s.a)(c,n,r)}));t.a=c},function(e,t,n){"use strict";var r=n(34),i=function(e){return{value:e,map:function(t){return i(t(e))}}},o=Object(r.a)((function(e,t,n){return e((function(e){return i(t(e))}))(n).value}));t.a=o},function(e,t,n){"use strict";var r=n(12),i=n(77),o=Object(r.a)((function(e,t){return Object(i.a)(t.length,(function(){for(var n=[],r=0;r<t.length;)n.push(t[r].call(this,arguments[r])),r+=1;return e.apply(this,n.concat(Array.prototype.slice.call(arguments,t.length)))}))}));t.a=o},function(e,t,n){"use strict";var r=n(100);function i(e,t){return function(){return t.call(this,e.apply(this,arguments))}}var o=n(105),a=n(262);function s(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return Object(r.a)(arguments[0].length,Object(o.a)(i,arguments[0],Object(a.a)(arguments)))}n.d(t,"a",(function(){return s}))},function(e,t,n){"use strict";var r=n(182),i=n(39),o=n(63),a=n(79),s=n(235),u=n(141),c=function(){function e(e){this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||this.getDefaultState(this.options),this.state=this.initialState,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(e){var t;this.options=Object(o.a)({},this.defaultOptions,e),this.cacheTime=Math.max(this.cacheTime||0,null!=(t=this.options.cacheTime)?t:3e5)},t.setDefaultOptions=function(e){this.defaultOptions=e},t.scheduleGc=function(){var e=this;this.clearGcTimeout(),Object(i.f)(this.cacheTime)&&(this.gcTimeout=setTimeout((function(){e.optionalRemove()}),this.cacheTime))},t.clearGcTimeout=function(){clearTimeout(this.gcTimeout),this.gcTimeout=void 0},t.optionalRemove=function(){this.observers.length||this.state.isFetching||this.cache.remove(this)},t.setData=function(e,t){var n,r,o=this.state.data,a=Object(i.b)(e,o);return(null==(n=(r=this.options).isDataEqual)?void 0:n.call(r,o,a))?a=o:!1!==this.options.structuralSharing&&(a=Object(i.n)(o,a)),this.dispatch({data:a,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt}),a},t.setState=function(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})},t.cancel=function(e){var t,n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(i.i).catch(i.i):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some((function(e){return!1!==e.options.enabled}))},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((function(e){return e.getCurrentResult().isStale}))},t.isStaleByTime=function(e){return void 0===e&&(e=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!Object(i.r)(this.state.dataUpdatedAt,e)},t.onFocus=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnWindowFocus()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.onOnline=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnReconnect()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.addObserver=function(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))},t.removeObserver=function(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter((function(t){return t!==e})),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:e}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(e,t){var n,r,o=this;if(this.state.isFetching)if(this.state.dataUpdatedAt&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(this.promise)return this.promise;if(e&&this.setOptions(e),!this.options.queryFn){var a=this.observers.find((function(e){return e.options.queryFn}));a&&this.setOptions(a.options)}var c,l,f=Object(i.a)(this.queryKey),d={queryKey:f,pageParam:void 0},p={fetchOptions:t,options:this.options,queryKey:f,state:this.state,fetchFn:function(){return o.options.queryFn?o.options.queryFn(d):Promise.reject("Missing queryFn")}};(null==(n=this.options.behavior)?void 0:n.onFetch)&&(null==(c=this.options.behavior)||c.onFetch(p));(this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(r=p.fetchOptions)?void 0:r.meta))||this.dispatch({type:"fetch",meta:null==(l=p.fetchOptions)?void 0:l.meta});return this.retryer=new u.a({fn:p.fetchFn,onSuccess:function(e){o.setData(e),null==o.cache.config.onSuccess||o.cache.config.onSuccess(e,o),0===o.cacheTime&&o.optionalRemove()},onError:function(e){Object(u.c)(e)&&e.silent||o.dispatch({type:"error",error:e}),Object(u.c)(e)||(null==o.cache.config.onError||o.cache.config.onError(e,o),Object(s.a)().error(e)),0===o.cacheTime&&o.optionalRemove()},onFail:function(){o.dispatch({type:"failed"})},onPause:function(){o.dispatch({type:"pause"})},onContinue:function(){o.dispatch({type:"continue"})},retry:p.options.retry,retryDelay:p.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(e){var t=this;this.state=this.reducer(this.state,e),a.a.batch((function(){t.observers.forEach((function(t){t.onQueryUpdate(e)})),t.cache.notify({query:t,type:"queryUpdated",action:e})}))},t.getDefaultState=function(e){var t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==e.initialData?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,r=void 0!==t;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:r?"success":"idle"}},t.reducer=function(e,t){var n,r;switch(t.type){case"failed":return Object(o.a)({},e,{fetchFailureCount:e.fetchFailureCount+1});case"pause":return Object(o.a)({},e,{isPaused:!0});case"continue":return Object(o.a)({},e,{isPaused:!1});case"fetch":return Object(o.a)({},e,{fetchFailureCount:0,fetchMeta:null!=(n=t.meta)?n:null,isFetching:!0,isPaused:!1,status:e.dataUpdatedAt?e.status:"loading"});case"success":return Object(o.a)({},e,{data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(r=t.dataUpdatedAt)?r:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var i=t.error;return Object(u.c)(i)&&i.revert&&this.revertState?Object(o.a)({},this.revertState):Object(o.a)({},e,{error:i,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return Object(o.a)({},e,{isInvalidated:!0});case"setState":return Object(o.a)({},e,t.state);default:return e}},e}(),l=n(183);n.d(t,"a",(function(){return f}));var f=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.queries=[],n.queriesMap={},n}Object(r.a)(t,e);var n=t.prototype;return n.build=function(e,t,n){var r,o=t.queryKey,a=null!=(r=t.queryHash)?r:Object(i.d)(o,t),s=this.get(a);return s||(s=new c({cache:this,queryKey:o,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o)}),this.add(s)),s},n.add=function(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"queryAdded",query:e}))},n.remove=function(e){var t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((function(t){return t!==e})),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"queryRemoved",query:e}))},n.clear=function(){var e=this;a.a.batch((function(){e.queries.forEach((function(t){e.remove(t)}))}))},n.get=function(e){return this.queriesMap[e]},n.getAll=function(){return this.queries},n.find=function(e,t){var n=Object(i.j)(e,t)[0];return void 0===n.exact&&(n.exact=!0),this.queries.find((function(e){return Object(i.h)(n,e)}))},n.findAll=function(e,t){var n=Object(i.j)(e,t)[0];return n?this.queries.filter((function(e){return Object(i.h)(n,e)})):this.queries},n.notify=function(e){var t=this;a.a.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},n.onFocus=function(){var e=this;a.a.batch((function(){e.queries.forEach((function(e){e.onFocus()}))}))},n.onOnline=function(){var e=this;a.a.batch((function(){e.queries.forEach((function(e){e.onOnline()}))}))},t}(l.a)},function(e,t,n){"use strict";var r=n(2),i=r.createContext(null);t.a=i},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return l}));var r=n(16),i=n(6),o=["duration","easing","delay"],a={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},s={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function u(e){return"".concat(Math.round(e),"ms")}function c(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}function l(e){var t=Object(i.a)({},a,e.easing),n=Object(i.a)({},s,e.duration);return Object(i.a)({getAutoHeightDuration:c,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.duration,s=void 0===a?n.standard:a,c=i.easing,l=void 0===c?t.easeInOut:c,f=i.delay,d=void 0===f?0:f;Object(r.a)(i,o);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof s?s:u(s)," ").concat(l," ").concat("string"==typeof d?d:u(d))})).join(",")}},e,{easing:t,duration:n})}},function(e,t,n){"use strict";var r=n(6),i=n(16),o=n(2),a=n(17),s=n(158),u=n(18),c=n(20),l=n(15),f=n(332),d=n(5),p=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],h=Object(l.a)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,"inherit"!==n.color&&t["color".concat(Object(u.a)(n.color))],t["fontSize".concat(Object(u.a)(n.fontSize))]]}})((function(e){var t,n,r,i,o,a,s,u,c,l,f,d,p,h,v,g,m,y=e.theme,b=e.ownerState;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(t=y.transitions)?void 0:null==(n=t.create)?void 0:n.call(t,"fill",{duration:null==(r=y.transitions)?void 0:null==(i=r.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(o=y.typography)?void 0:null==(a=o.pxToRem)?void 0:a.call(o,20))||"1.25rem",medium:(null==(s=y.typography)?void 0:null==(u=s.pxToRem)?void 0:u.call(s,24))||"1.5rem",large:(null==(c=y.typography)?void 0:null==(l=c.pxToRem)?void 0:l.call(c,35))||"2.1875"}[b.fontSize],color:null!=(f=null==(d=(y.vars||y).palette)?void 0:null==(p=d[b.color])?void 0:p.main)?f:{action:null==(h=(y.vars||y).palette)?void 0:null==(v=h.action)?void 0:v.active,disabled:null==(g=(y.vars||y).palette)?void 0:null==(m=g.action)?void 0:m.disabled,inherit:void 0}[b.color]}})),v=o.forwardRef((function(e,t){var n=Object(c.a)({props:e,name:"MuiSvgIcon"}),o=n.children,l=n.className,v=n.color,g=void 0===v?"inherit":v,m=n.component,y=void 0===m?"svg":m,b=n.fontSize,x=void 0===b?"medium":b,w=n.htmlColor,_=n.inheritViewBox,S=void 0!==_&&_,O=n.titleAccess,k=n.viewBox,E=void 0===k?"0 0 24 24":k,j=Object(i.a)(n,p),T=Object(r.a)({},n,{color:g,component:y,fontSize:x,instanceFontSize:e.fontSize,inheritViewBox:S,viewBox:E}),C={};S||(C.viewBox=E);var A=function(e){var t=e.color,n=e.fontSize,r=e.classes,i={root:["root","inherit"!==t&&"color".concat(Object(u.a)(t)),"fontSize".concat(Object(u.a)(n))]};return Object(s.a)(i,f.b,r)}(T);return(Object(d.jsxs)(h,Object(r.a)({as:y,className:Object(a.default)(A.root,l),ownerState:T,focusable:"false",color:w,"aria-hidden":!O||void 0,role:O?"img":void 0,ref:t},C,j,{children:[o,O?Object(d.jsx)("title",{children:O}):null]})))}));v.muiName="SvgIcon",t.a=v},function(e,t,n){"use strict";function r(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){e.apply(r,o)}),n)}return r.clear=function(){clearTimeout(t)},r}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(2);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var a=0;var s=r.useId;function u(e){if(void 0!==s){var t=s();return null!=e?e:t}return function(e){var t=i(r.useState(e),2),n=t[0],o=t[1],s=e||n;return r.useEffect((function(){null==n&&o("mui-".concat(a+=1))}),[n]),s}(e)}},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){"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";var r=n(2),i=r.createContext({});t.a=i},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(17),s=n(158),u=n(177),c=n(15),l=n(20),f=n(333),d=n(5),p=["className","component","elevation","square","variant"],h=function(e){return((e<1?5.11916*Math.pow(e,2):4.5*Math.log(e+1)+2)/100).toFixed(2)},v=Object(c.a)("div",{name:"MuiPaper",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t["elevation".concat(n.elevation)]]}})((function(e){var t,n=e.theme,r=e.ownerState;return Object(i.a)({backgroundColor:(n.vars||n).palette.background.paper,color:(n.vars||n).palette.text.primary,transition:n.transitions.create("box-shadow")},!r.square&&{borderRadius:n.shape.borderRadius},"outlined"===r.variant&&{border:"1px solid ".concat((n.vars||n).palette.divider)},"elevation"===r.variant&&Object(i.a)({boxShadow:(n.vars||n).shadows[r.elevation]},!n.vars&&"dark"===n.palette.mode&&{backgroundImage:"linear-gradient(".concat(Object(u.a)("#fff",h(r.elevation)),", ").concat(Object(u.a)("#fff",h(r.elevation)),")")},n.vars&&{backgroundImage:null==(t=n.vars.overlays)?void 0:t[r.elevation]}))})),g=o.forwardRef((function(e,t){var n=Object(l.a)({props:e,name:"MuiPaper"}),o=n.className,u=n.component,c=void 0===u?"div":u,h=n.elevation,g=void 0===h?1:h,m=n.square,y=void 0!==m&&m,b=n.variant,x=void 0===b?"elevation":b,w=Object(r.a)(n,p),_=Object(i.a)({},n,{component:c,elevation:g,square:y,variant:x}),S=function(e){var t=e.square,n=e.elevation,r=e.variant,i=e.classes,o={root:["root",r,!t&&"rounded","elevation"===r&&"elevation".concat(n)]};return Object(s.a)(o,f.b,i)}(_);return Object(d.jsx)(v,Object(i.a)({as:c,ownerState:_,className:Object(a.default)(S.root,o),ref:t},w))}));t.a=g},function(e,t,n){"use strict";var r=n(2),i=r.createContext();t.a=i},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore");t.default=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(496),i=n(279);function o(e,t,n,a){var s=function(r){for(var i=t.length,s=0;s<i;){if(e===t[s])return n[s];s+=1}for(var u in t[s+1]=e,n[s+1]=r,e)r[u]=a?o(e[u],t,n,!0):e[u];return r};switch(Object(i.a)(e)){case"Object":return s({});case"Array":return s([]);case"Date":return new Date(e.valueOf());case"RegExp":return Object(r.a)(e);default:return e}}},function(e,t,n){"use strict";function r(e){return new RegExp(e.source,(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":""))}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=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}();function i(e){return new r(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(89);function i(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(Object(r.a)(e[n],t))return n;n+=1}return-1}},function(e,t,n){"use strict";var r=n(85),i=Object.prototype.toString,o=function(){return"[object Arguments]"===i.call(arguments)?function(e){return"[object Arguments]"===i.call(e)}:function(e){return Object(r.a)("callee",e)}}();t.a=o},function(e,t,n){"use strict";function r(e){return function(){return!e.apply(this,arguments)}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(240);function i(e){return function t(n){for(var i,o,a,s=[],u=0,c=n.length;u<c;){if(Object(r.a)(n[u]))for(a=0,o=(i=e?t(n[u]):n[u]).length;a<o;)s[s.length]=i[a],a+=1;else s[s.length]=n[u];u+=1}return s}}},,function(e,t,n){"use strict";var r=n(2),i=r.createContext(void 0);t.a=i},function(e,t,n){"use strict";var r=n(2),i=Object(r.createContext)({});t.a=i},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(138),i=n(152);function o(e){return Object(r.a)("MuiDialogTitle",e)}var a=Object(i.a)("MuiDialogTitle",["root"]);t.a=a},function(e,t,n){"use strict";var r=n(2),i=r.createContext({});t.a=i},function(e,t,n){"use strict";(function(e){function n(e){return(n="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)}var r="object"==(void 0===e?"undefined":n(e))&&e&&e.Object===Object&&e;t.a=r}).call(this,n(189))},function(e,t,n){"use strict";(function(e){var r=n(111),i=n(854);function o(e){return(o="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)}var a="object"==("undefined"==typeof exports?"undefined":o(exports))&&exports&&!exports.nodeType&&exports,s=a&&"object"==o(e)&&e&&!e.nodeType&&e,u=s&&s.exports===a?r.a.Buffer:void 0,c=(u?u.isBuffer:void 0)||i.a;t.a=c}).call(this,n(579)(e))},function(e,t,n){e.exports=n(1237)},,function(e,t,n){"use strict";var r=n(2),i=r.createContext({});t.a=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return c}));var r=n(63),i=n(235),o=n(79),a=n(141),s=n(39),u=function(){function e(e){this.options=Object(r.a)({},e.defaultOptions,e.options),this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.observers=[],this.state=e.state||c()}var t=e.prototype;return t.setState=function(e){this.dispatch({type:"setState",state:e})},t.addObserver=function(e){-1===this.observers.indexOf(e)&&this.observers.push(e)},t.removeObserver=function(e){this.observers=this.observers.filter((function(t){return t!==e}))},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(s.i).catch(s.i)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var e,t=this,n="loading"===this.state.status,r=Promise.resolve();return n||(this.dispatch({type:"loading",variables:this.options.variables}),r=r.then((function(){return null==t.options.onMutate?void 0:t.options.onMutate(t.state.variables)})).then((function(e){e!==t.state.context&&t.dispatch({type:"loading",context:e,variables:t.state.variables})}))),r.then((function(){return t.executeMutation()})).then((function(n){e=n,null==t.mutationCache.config.onSuccess||t.mutationCache.config.onSuccess(e,t.state.variables,t.state.context,t)})).then((function(){return null==t.options.onSuccess?void 0:t.options.onSuccess(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(e,null,t.state.variables,t.state.context)})).then((function(){return t.dispatch({type:"success",data:e}),e})).catch((function(e){return null==t.mutationCache.config.onError||t.mutationCache.config.onError(e,t.state.variables,t.state.context,t),Object(i.a)().error(e),Promise.resolve().then((function(){return null==t.options.onError?void 0:t.options.onError(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(void 0,e,t.state.variables,t.state.context)})).then((function(){throw t.dispatch({type:"error",error:e}),e}))}))},t.executeMutation=function(){var e,t=this;return this.retryer=new a.a({fn:function(){return t.options.mutationFn?t.options.mutationFn(t.state.variables):Promise.reject("No mutationFn found")},onFail:function(){t.dispatch({type:"failed"})},onPause:function(){t.dispatch({type:"pause"})},onContinue:function(){t.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(e){var t=this;this.state=function(e,t){switch(t.type){case"failed":return Object(r.a)({},e,{failureCount:e.failureCount+1});case"pause":return Object(r.a)({},e,{isPaused:!0});case"continue":return Object(r.a)({},e,{isPaused:!1});case"loading":return Object(r.a)({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return Object(r.a)({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return Object(r.a)({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return Object(r.a)({},e,t.state);default:return e}}(this.state,e),o.a.batch((function(){t.observers.forEach((function(t){t.onMutationUpdate(e)})),t.mutationCache.notify(t)}))},e}();function c(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}},function(e,t,n){"use strict";function r(e,t,n){return"function"==typeof t?t(n):"boolean"==typeof t?t:!!e}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";var r=n(34),i=n(89),o=n(143),a=Object(r.a)((function(e,t,n){return Object(i.a)(Object(o.a)(e,n),t)}));t.a=a},function(e,t,n){"use strict";var r=n(100),i=n(29),o=n(91),a=n(170),s=n(105),u=Object(i.a)((function(e){var t=Object(s.a)(a.a,0,Object(o.a)((function(e){return e[0].length}),e));return Object(r.a)(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}}))}));t.a=u},function(e,t,n){"use strict";t.a=function(){return!0}},function(e,t,n){"use strict";var r=n(171),i=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!o(e,!0,this)},e.prototype.has=function(e){return o(e,!1,this)},e}();function o(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?!!Object(r.a)(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?!!Object(r.a)(e,n._items[o])||(t&&n._items[o].push(e),!1):(t&&(n._items[o]=[e]),!1)}}t.a=i},,function(e,t,n){var r=n(719),i=n(720),o=n(723);e.exports=function(e,t){var n={};return t=o(t,3),i(e,(function(e,i,o){r(n,i,t(e,i,o))})),n}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(43),i=n(285),o=n(21);function a(e,t){Object(o.a)(2,arguments);var n=Object(r.a)(t);return Object(i.a)(e,-n)}},function(e,t,n){"use strict";function r(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}}function i(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}}var o={p:i,P:function(e,t){var n,o=e.match(/(P+)(p+)?/),a=o[1],s=o[2];if(!s)return r(e,t);switch(a){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",r(a,t)).replace("{{time}}",i(s,t))}};t.a=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(28),i=n(221),o=n(21);function a(e){Object(o.a)(1,arguments);var t=Object(r.a)(e),n=t.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(n+1,0,4),a.setUTCHours(0,0,0,0);var s=Object(i.a)(a),u=new Date(0);u.setUTCFullYear(n,0,4),u.setUTCHours(0,0,0,0);var c=Object(i.a)(u);return t.getTime()>=s.getTime()?n+1:t.getTime()>=c.getTime()?n:n-1}},,function(e,t,n){"use strict";var r=n(26),i=n(65),o=n(2),a=n(15),s=n(152),u=n(17),c=n(325),l=n(5);function f(e){return(f="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 d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==f(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===f(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=["className","selected","value"],h=Object(s.a)("PrivatePickersToolbarText",["selected"]),v=Object(a.a)(c.a)((function(e){var t=e.theme;return d({transition:t.transitions.create("color"),color:t.palette.text.secondary},"&.".concat(h.selected),{color:t.palette.text.primary})})),g=o.forwardRef((function(e,t){var n=e.className,o=e.selected,a=e.value,s=Object(i.a)(e,p);return(Object(l.jsx)(v,Object(r.a)({ref:t,className:Object(u.default)(n,o&&h.selected),component:"span"},s,{children:a})))})),m=n(1672),y=n(465),b=n(156),x=n(46),w=Object(s.a)("MuiPickersToolbar",["root","content","penIconButton","penIconButtonLandscape"]),_=Object(a.a)("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(e){var t=e.theme,n=e.ownerState;return Object(r.a)({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:t.spacing(2,3)},n.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})})),S=Object(a.a)(m.a,{name:"MuiPickersToolbar",slot:"Content",overridesResolver:function(e,t){return t.content}})({flex:1}),O=Object(a.a)(y.a,{name:"MuiPickersToolbar",slot:"PenIconButton",overridesResolver:function(e,t){return t.penIconButton}})({}),k=function(e){return"clock"===e?Object(l.jsx)(b.e,{color:"inherit"}):Object(l.jsx)(b.d,{color:"inherit"})},E=o.forwardRef((function(e,t){var n=e.children,r=e.className,i=e.getMobileKeyboardInputViewButtonText,o=e.isLandscape,a=e.isMobileKeyboardViewOpen,s=e.landscapeDirection,f=void 0===s?"column":s,d=e.toggleMobileKeyboardView,p=e.toolbarTitle,h=e.viewType,v=void 0===h?"calendar":h,g=e,m=Object(x.b)();return Object(l.jsxs)(_,{ref:t,className:Object(u.default)(w.root,r),ownerState:g,children:[Object(l.jsx)(c.a,{color:"text.secondary",variant:"overline",children:p}),Object(l.jsxs)(S,{container:!0,justifyContent:"space-between",className:w.content,ownerState:g,direction:o?f:"row",alignItems:o?"flex-start":"flex-end",children:[n,Object(l.jsx)(O,{onClick:d,className:Object(u.default)(w.penIconButton,o&&w.penIconButtonLandscape),ownerState:g,color:"inherit","aria-label":i?i(a,v):m.inputModeToggleButtonAriaLabel(a,v),children:a?k(v):Object(l.jsx)(b.g,{color:"inherit"})})]})]})})),j=n(538),T=["align","className","selected","typographyClassName","value","variant"],C=Object(a.a)(j.a)({padding:0,minWidth:16,textTransform:"none"}),A=o.forwardRef((function(e,t){var n=e.align,o=e.className,a=e.selected,s=e.typographyClassName,u=e.value,c=e.variant,f=Object(i.a)(e,T);return(Object(l.jsx)(C,Object(r.a)({variant:"text",ref:t,className:o},f,{children:Object(l.jsx)(g,{align:n,className:s,variant:c,value:u,selected:a})})))})),P=n(1679),M=n(1664),I=n(412),R=n(121);function D(e){return(D="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,n){return(t=function(e){var t=function(e,t){if("object"!==D(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==D(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===D(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var N=Object(a.a)(M.a)((function(e){var t=e.ownerState,n=e.theme;return Object(r.a)({boxShadow:"0 -1px 0 0 inset ".concat(n.palette.divider)},"desktop"===t.wrapperVariant&&L({order:1,boxShadow:"0 1px 0 0 inset ".concat(n.palette.divider)},"& .".concat(I.a.indicator),{bottom:"auto",top:0}))})),F=function(e){var t,n=e.dateRangeIcon,i=void 0===n?Object(l.jsx)(b.f,{}):n,a=e.onChange,s=e.timeIcon,u=void 0===s?Object(l.jsx)(b.h,{}):s,c=e.view,f=Object(x.b)(),d=o.useContext(R.a),p=Object(r.a)({},e,{wrapperVariant:d});return Object(l.jsxs)(N,{ownerState:p,variant:"fullWidth",value:(t=c,["day","month","year"].includes(t)?"date":"time"),onChange:function(e,t){a("date"===t?"day":"hours")},children:[Object(l.jsx)(P.a,{value:"date","aria-label":f.dateTableLabel,icon:Object(l.jsx)(o.Fragment,{children:i})}),Object(l.jsx)(P.a,{value:"time","aria-label":f.timeTableLabel,icon:Object(l.jsx)(o.Fragment,{children:u})})]})};function B(e){return(B="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)}n.d(t,"a",(function(){return $}));var U,z,V,H=["ampm","parsedValue","dateRangeIcon","hideTabs","isMobileKeyboardViewOpen","onChange","openView","setOpenView","timeIcon","toggleMobileKeyboardView","toolbarFormat","toolbarPlaceholder","toolbarTitle","views"],W=Object(s.a)("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","separator"]),q=Object(a.a)(E,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:function(e,t){return t.root}})((U={paddingLeft:16,paddingRight:16,justifyContent:"space-around"},z="& .".concat(w.penIconButton),V={position:"absolute",top:8,right:8},(z=function(e){var t=function(e,t){if("object"!==B(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==B(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===B(t)?t:String(t)}(z))in U?Object.defineProperty(U,z,{value:V,enumerable:!0,configurable:!0,writable:!0}):U[z]=V,U)),G=Object(a.a)("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:function(e,t){return t.dateContainer}})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),Y=Object(a.a)("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:function(e,t){return t.timeContainer}})({display:"flex"}),K=Object(a.a)(g,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:function(e,t){return t.separator}})({margin:"0 4px 0 2px",cursor:"default"}),$=function(e){var t,n=e.ampm,a=e.parsedValue,s=e.dateRangeIcon,u=e.hideTabs,c=e.isMobileKeyboardViewOpen,f=e.openView,d=e.setOpenView,p=e.timeIcon,h=e.toggleMobileKeyboardView,v=e.toolbarFormat,g=e.toolbarPlaceholder,m=void 0===g?"––":g,y=e.toolbarTitle,b=e.views,w=Object(i.a)(e,H),_=Object(x.e)(),S=Object(x.b)(),O=null!=y?y:S.dateTimePickerDefaultToolbarTitle,k=o.useContext(R.a),E="desktop"===k||!u&&"undefined"!=typeof window&&window.innerHeight>667,j=o.useMemo((function(){return a?v?_.formatByString(a,v):_.format(a,"shortDate"):m}),[a,v,m,_]),T=e;return Object(l.jsxs)(o.Fragment,{children:["desktop"!==k&&Object(l.jsxs)(q,Object(r.a)({toolbarTitle:O,isMobileKeyboardViewOpen:c,toggleMobileKeyboardView:h,className:W.root},w,{isLandscape:!1,ownerState:T,children:[Object(l.jsxs)(G,{className:W.dateContainer,ownerState:T,children:[b.includes("year")&&Object(l.jsx)(A,{tabIndex:-1,variant:"subtitle1",onClick:function(){return d("year")},selected:"year"===f,value:a?_.format(a,"year"):"–"}),b.includes("day")&&Object(l.jsx)(A,{tabIndex:-1,variant:"h4",onClick:function(){return d("day")},selected:"day"===f,value:j})]}),Object(l.jsxs)(Y,{className:W.timeContainer,ownerState:T,children:[b.includes("hours")&&Object(l.jsx)(A,{variant:"h3",onClick:function(){return d("hours")},selected:"hours"===f,value:a?(t=a,n?_.format(t,"hours12h"):_.format(t,"hours24h")):"--"}),b.includes("minutes")&&Object(l.jsxs)(o.Fragment,{children:[Object(l.jsx)(K,{variant:"h3",value:":",className:W.separator,ownerState:T}),Object(l.jsx)(A,{variant:"h3",onClick:function(){return d("minutes")},selected:"minutes"===f,value:a?_.format(a,"minutes"):"--"})]}),b.includes("seconds")&&Object(l.jsxs)(o.Fragment,{children:[Object(l.jsx)(K,{variant:"h3",value:":",className:W.separator,ownerState:T}),Object(l.jsx)(A,{variant:"h3",onClick:function(){return d("seconds")},selected:"seconds"===f,value:a?_.format(a,"seconds"):"--"})]})]})]})),E&&Object(l.jsx)(F,{dateRangeIcon:s,timeIcon:p,view:f,onChange:d})]})}},function(e,t,n){"use strict";var r=n(171),i=n(219);function o(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,'\\"')+'"'}var a=function(e){return(e<10?"0":"")+e},s="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+a(e.getUTCMonth()+1)+"-"+a(e.getUTCDate())+"T"+a(e.getUTCHours())+":"+a(e.getUTCMinutes())+":"+a(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"},u=n(95),c=n(263);function l(e,t){var n=function(n){var i=t.concat([e]);return Object(r.a)(n,i)?"<Circular>":l(n,i)},a=function(e,t){return Object(i.a)((function(t){return o(t)+": "+n(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+Object(i.a)(n,e).join(", ")+"))";case"[object Array]":return"["+Object(i.a)(n,e).concat(a(e,Object(c.a)((function(e){return/^\d+$/.test(e)}),Object(u.a)(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+n(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?n(NaN):o(s(e)))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+n(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object String]":return"object"==typeof e?"new String("+n(e.valueOf())+")":o(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var f=e.toString();if("[object Object]"!==f)return f}return"{"+a(e,Object(u.a)(e)).join(", ")+"}"}}n.d(t,"a",(function(){return l}))},function(e,t,n){"use strict";var r=n(26),i=n(65),o=n(2),a=n(465),s=n(1680),u=n(46),c=n(156);const l=e=>{const[,t]=Object(o.useReducer)(e=>e+1,0),n=Object(o.useRef)(null),{replace:r,append:i}=e,a=r?r(e.format(e.value)):e.format(e.value),s=Object(o.useRef)(!1);return Object(o.useLayoutEffect)(()=>{if(null==n.current)return;let[o,s,u,c,l]=n.current;n.current=null;const f=c&&l,d=o.slice(s.selectionStart).search(e.accept||/\d/g),p=-1!==d?d:0,h=t=>(t.match(e.accept||/\d/g)||[]).join(""),v=h(o.substr(0,s.selectionStart)),g=e=>{let t=0,n=0;for(let r=0;r!==v.length;++r){let i=e.indexOf(v[r],t)+1,o=h(e).indexOf(v[r],n)+1;o-n>1&&(i=t,o=n),n=Math.max(o,n),t=Math.max(t,i)}return t};if(!0===e.mask&&u&&!l){let e=g(o);const t=h(o.substr(e))[0];e=o.indexOf(t,e),o=`${o.substr(0,e)}${o.substr(e+1)}`}let m=e.format(o);null==i||s.selectionStart!==o.length||l||(u?m=i(m):""===h(m.slice(-1))&&(m=m.slice(0,-1)));const y=r?r(m):m;return a===y?t():e.onChange(y),()=>{let t=g(m);if(null!=e.mask&&(u||c&&!f))for(;m[t]&&""===h(m[t]);)t+=1;s.selectionStart=s.selectionEnd=t+(f?1+p:0)}}),Object(o.useEffect)(()=>{const e=e=>{"Delete"===e.code&&(s.current=!0)},t=e=>{"Delete"===e.code&&(s.current=!1)};return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),{value:null!=n.current?n.current[0]:a,onChange:r=>{const i=r.target.value;n.current=[i,r.target,i.length>a.length,s.current,a===e.format(i)],t()}}};var f=n(290);function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var h=n(5);function v(e){return(v="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 g(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==v(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===v(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return y}));var m=["className","components","disableOpenPicker","getOpenDialogAriaText","InputAdornmentProps","InputProps","inputRef","openPicker","OpenPickerButtonProps","renderInput"],y=o.forwardRef((function(e,t){var n=e.className,p=e.components,v=void 0===p?{}:p,y=e.disableOpenPicker,b=e.getOpenDialogAriaText,x=e.InputAdornmentProps,w=e.InputProps,_=e.inputRef,S=e.openPicker,O=e.OpenPickerButtonProps,k=e.renderInput,E=Object(i.a)(e,m),j=Object(u.b)(),T=null!=b?b:j.openDatePickerDialogue,C=Object(u.e)(),A=function(e){var t=e.acceptRegex,n=void 0===t?/[\d]/gi:t,i=e.disabled,a=e.disableMaskedInput,s=e.ignoreInvalidInputs,c=e.inputFormat,p=e.inputProps,h=e.label,v=e.mask,g=e.onChange,m=e.rawValue,y=e.readOnly,b=e.rifmFormatter,x=e.TextFieldProps,w=e.validationError,_=Object(u.e)(),S=_.getFormatHelperText(c),O=o.useMemo((function(){if(a)return{shouldUseMaskedInput:!1,maskToUse:""};var e=Object(f.c)(v,c,n,_);return{shouldUseMaskedInput:Object(f.a)(e,c,n,_),maskToUse:e}}),[n,a,c,v,_]),k=O.shouldUseMaskedInput,E=O.maskToUse,j=o.useMemo((function(){return k&&E?Object(f.d)(E,n):function(e){return e}}),[n,E,k]),T=null===m?null:_.date(m),C=d(o.useState(T),2),A=C[0],P=C[1],M=d(o.useState(Object(f.b)(_,m,c)),2),I=M[0],R=M[1],D=o.useRef(),L=o.useRef(_.locale);o.useEffect((function(){var e=m!==D.current,t=_.locale!==L.current;if(D.current=m,L.current=_.locale,e||t){var n=null===m?null:_.date(m),r=null===m||_.isValid(n);if(t||r&&!_.isEqual(A,n)){var i=Object(f.b)(_,m,c);P(n),R(i)}}}),[_,m,c,A]);var N=function(e){var t=""===e||e===v?"":e;R(t);var n=null===t?null:_.parse(t,c);s&&!_.isValid(n)||(P(n),g(n,t||void 0))},F=l({value:I,onChange:N,format:b||j}),B=k?F:{value:I,onChange:function(e){N(e.currentTarget.value)}};return Object(r.a)({label:h,disabled:i,error:w,inputProps:Object(r.a)({},B,{disabled:i,placeholder:S,readOnly:y,type:k?"tel":"text"},p)},x)}(E),P=(null==x?void 0:x.position)||"end",M=v.OpenPickerIcon||c.d;return k(Object(r.a)({ref:t,inputRef:_,className:n},A,{InputProps:Object(r.a)({},w,g({},"".concat(P,"Adornment"),y?void 0:Object(h.jsx)(s.a,Object(r.a)({position:P},x,{children:Object(h.jsx)(a.a,Object(r.a)({edge:P,disabled:E.disabled||E.readOnly,"aria-label":T(E.rawValue,C)},O,{onClick:S,children:Object(h.jsx)(M,{})}))}))))}))}))},,,function(e,t,n){"use strict";var r=n(65),i=n(347),o=n(346),a=n(245),s=function(e){var t=e.adapter,n=e.value,r=e.props,i=r.minTime,o=r.maxTime,s=r.minutesStep,u=r.shouldDisableTime,c=r.disableIgnoringDatePartForTimeValidation,l=t.utils.date(n),f=Object(a.c)(c,t.utils);if(null===n)return null;switch(!0){case!t.utils.isValid(n):return"invalidDate";case Boolean(i&&f(i,l)):return"minTime";case Boolean(o&&f(l,o)):return"maxTime";case Boolean(u&&u(t.utils.getHours(l),"hours")):return"shouldDisableTime-hours";case Boolean(u&&u(t.utils.getMinutes(l),"minutes")):return"shouldDisableTime-minutes";case Boolean(u&&u(t.utils.getSeconds(l),"seconds")):return"shouldDisableTime-seconds";case Boolean(s&&t.utils.getMinutes(l)%s!=0):return"minutesStep";default:return null}};n.d(t,"a",(function(){return f}));var u=["minDate","maxDate","disableFuture","shouldDisableDate","disablePast"],c=function(e){var t=e.props,n=e.value,i=e.adapter,a=t.minDate,c=t.maxDate,l=t.disableFuture,f=t.shouldDisableDate,d=t.disablePast,p=Object(r.a)(t,u),h=Object(o.b)({adapter:i,value:n,props:{minDate:a,maxDate:c,disableFuture:l,shouldDisableDate:f,disablePast:d}});return null!==h?h:s({adapter:i,value:n,props:p})},l=function(e,t){return e===t};function f(e){return Object(i.a)(e,c,l)}},function(e,t,n){"use strict";var r=n(26),i=n(2);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s=n(46);function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return l}));var l=function(e,t){var n=e.onAccept,a=e.onChange,c=e.value,l=e.closeOnSelect,f=Object(s.e)(),d=function(e){var t=e.open,n=e.onOpen,r=e.onClose,a=i.useRef("boolean"==typeof t).current,s=o(i.useState(!1),2),u=s[0],c=s[1];return i.useEffect((function(){if(a){if("boolean"!=typeof t)throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");c(t)}}),[a,t]),{isOpen:u,setIsOpen:i.useCallback((function(e){a||c(e),e&&n&&n(),!e&&r&&r()}),[a,n,r])}}(e),p=d.isOpen,h=d.setIsOpen,v=i.useMemo((function(){return t.parseInput(f,c)}),[t,f,c]),g=u(i.useState(v),2),m=g[0],y=g[1],b=u(i.useState((function(){return{committed:v,draft:v,resetFallback:v}})),2),x=b[0],w=b[1],_=i.useCallback((function(e){w((function(t){switch(e.action){case"setAll":case"acceptAndClose":return{draft:e.value,committed:e.value,resetFallback:e.value};case"setCommitted":return Object(r.a)({},t,{draft:e.value,committed:e.value});case"setDraft":return Object(r.a)({},t,{draft:e.value});default:return t}})),(e.forceOnChangeCall||!e.skipOnChangeCall&&!t.areValuesEqual(f,x.committed,e.value))&&a(e.value),"acceptAndClose"===e.action&&(h(!1),n&&!t.areValuesEqual(f,x.resetFallback,e.value)&&n(e.value))}),[n,a,h,x,f,t]);i.useEffect((function(){f.isValid(v)&&y(v)}),[f,v]),i.useEffect((function(){p&&_({action:"setAll",value:v,skipOnChangeCall:!0})}),[p]),t.areValuesEqual(f,x.committed,v)||_({action:"setCommitted",value:v,skipOnChangeCall:!0});var S=i.useMemo((function(){return{open:p,onClear:function(){_({value:t.emptyValue,action:"acceptAndClose",forceOnChangeCall:!t.areValuesEqual(f,c,t.emptyValue)})},onAccept:function(){_({value:x.draft,action:"acceptAndClose",forceOnChangeCall:!t.areValuesEqual(f,c,v)})},onDismiss:function(){_({value:x.committed,action:"acceptAndClose"})},onCancel:function(){_({value:x.resetFallback,action:"acceptAndClose"})},onSetToday:function(){_({value:t.getTodayValue(f),action:"acceptAndClose"})}}}),[_,p,f,x,t,c,v]),O=u(i.useState(!1),2),k=O[0],E=O[1],j=i.useMemo((function(){return{parsedValue:x.draft,isMobileKeyboardViewOpen:k,toggleMobileKeyboardView:function(){return E(!k)},onDateChange:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"partial";switch(n){case"shallow":return _({action:"setDraft",value:e,skipOnChangeCall:!0});case"partial":return _({action:"setDraft",value:e});case"finish":return _((null!=l?l:"desktop"===t)?{value:e,action:"acceptAndClose"}:{value:e,action:"setCommitted"});default:throw new Error("MUI: Invalid selectionState passed to `onDateChange`")}}}}),[_,k,x.draft,l]),T=i.useCallback((function(e,n){var r=t.valueReducer?t.valueReducer(f,m,e):e;a(r,n)}),[a,t,m,f]),C={pickerProps:j,inputProps:i.useMemo((function(){return{onChange:T,open:p,rawValue:c,openPicker:function(){return h(!0)}}}),[T,p,c,h]),wrapperProps:S};return i.useDebugValue(C,(function(){return{MuiPickerState:{dateState:x,other:C}}})),C}},function(e,t,n){"use strict";var r=n(28),i=n(197),o=n(43),a=n(360),s=n(21);n.d(t,"a",(function(){return c}));var u=6048e5;function c(e,t){Object(s.a)(1,arguments);var n=Object(r.a)(e),c=Object(i.a)(n,t).getTime()-function(e,t){Object(s.a)(1,arguments);var n=t||{},r=n.locale,u=r&&r.options&&r.options.firstWeekContainsDate,c=null==u?1:Object(o.a)(u),l=null==n.firstWeekContainsDate?c:Object(o.a)(n.firstWeekContainsDate),f=Object(a.a)(e,t),d=new Date(0);return d.setUTCFullYear(f,0,l),d.setUTCHours(0,0,0,0),Object(i.a)(d,t)}(n,t).getTime();return Math.round(c/u)+1}},function(e,t,n){"use strict";var r=n(28),i=n(221),o=n(524),a=n(21);n.d(t,"a",(function(){return u}));var s=6048e5;function u(e){Object(a.a)(1,arguments);var t=Object(r.a)(e),n=Object(i.a)(t).getTime()-function(e){Object(a.a)(1,arguments);var t=Object(o.a)(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),Object(i.a)(n)}(t).getTime();return Math.round(n/s)+1}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(138),i=n(152);function o(e){return Object(r.a)("MuiListItemText",e)}var a=Object(i.a)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);t.a=a},,function(e,t,n){"use strict";function r(e){return(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})(e)}function i(e){return(i="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)})(e)}function o(e){return(o="function"==typeof Symbol&&"symbol"===i(Symbol.iterator)?function(e){return i(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":i(e)})(e)}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(Object(n));"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){a(e,t,n[t])}))}return e}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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 l(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),e}function f(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!t||"object"!==o(t)&&"function"!=typeof t?f(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(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&&h(e,t)}function g(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")}()}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){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 y={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){var n;console&&console[e]&&(n=console)[e].apply(n,g(t))}},b=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u(this,e),this.init(t,n)}return l(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||y,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,s({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),x=function(){function e(){u(this,e),this.observers={}}return l(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value: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];if(this.observers[e]){var i=[].concat(this.observers[e]);i.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var o=[].concat(this.observers["*"]);o.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function w(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function _(e){return null==e?"":""+e}function S(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!e[a]&&n&&(e[a]=new n),e=e[a]}return i()?{}:{obj:e,k:r(o.shift())}}function O(e,t,n){var r=S(e,t,Object);r.obj[r.k]=n}function k(e,t){var n=S(e,t),r=n.obj,i=n.k;if(r)return r[i]}function E(e,t,n){var r=k(e,n);return void 0!==r?r:k(t,n)}function j(e,t,n){for(var r in t)r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):j(e[r],t[r],n):e[r]=t[r];return e}function T(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var C={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function A(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return C[e]})):e}var P=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return u(this,t),n=d(this,p(t).call(this)),x.call(f(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return v(t,e),l(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=[e,t];return n&&"string"!=typeof n&&(o=o.concat(n)),n&&"string"==typeof n&&(o=o.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(o=e.split(".")),k(this.data,o)}},{key:"addResource",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=this.options.keySeparator;void 0===o&&(o=".");var a=[e,t];n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),O(this.data,a,r),i.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var i in n)"string"!=typeof n[i]&&"[object Array]"!==Object.prototype.toString.apply(n[i])||this.addResource(e,t,i,n[i],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var u=k(this.data,a)||{};r?j(u,n,i):u=s({},u,n),O(this.data,a,u),o.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?s({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(x),M={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,i){var o=this;return e.forEach((function(e){o.processors[e]&&(t=o.processors[e].process(t,n,r,i))})),t}},I={},R=function(e){function t(e){var n,r,i,o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u(this,t),n=d(this,p(t).call(this)),x.call(f(n)),r=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],i=e,o=f(n),r.forEach((function(e){i[e]&&(o[e]=i[e])})),n.options=a,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=b.create("translator"),n}return v(t,e),l(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=t.nsSeparator||this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var o=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),e=o.join(r)}return"string"==typeof i&&(i=[i]),{key:e,namespaces:i}}},{key:"translate",value:function(e,t){var n=this;if("object"!==o(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=this.extractFromKey(e[e.length-1],t),a=i.key,u=i.namespaces,c=u[u.length-1],l=t.lng||this.language,f=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(f){var d=t.nsSeparator||this.options.nsSeparator;return c+d+a}return a}var p=this.resolve(e,t),h=p&&p.res,v=p&&p.usedKey||a,g=p&&p.exactUsedKey||a,m=Object.prototype.toString.apply(h),y=["[object Number]","[object Function]","[object RegExp]"],b=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject,w="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(x&&h&&w&&y.indexOf(m)<0&&("string"!=typeof b||"[object Array]"!==m)){if(!t.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,h,t):"key '".concat(a," (").concat(this.language,")' returned an object instead of string.");if(r){var _="[object Array]"===m,S=_?[]:{},O=_?g:v;for(var k in h)if(Object.prototype.hasOwnProperty.call(h,k)){var E="".concat(O).concat(r).concat(k);S[k]=this.translate(E,s({},t,{joinArrays:!1,ns:u})),S[k]===E&&(S[k]=h[k])}h=S}}else if(x&&"string"==typeof b&&"[object Array]"===m)(h=h.join(b))&&(h=this.extendTranslation(h,e,t));else{var j=!1,T=!1;if(!this.isValidLookup(h)&&void 0!==t.defaultValue){if(j=!0,void 0!==t.count){var C=this.pluralResolver.getSuffix(l,t.count);h=t["defaultValue".concat(C)]}h||(h=t.defaultValue)}this.isValidLookup(h)||(T=!0,h=a);var A=t.defaultValue&&t.defaultValue!==h&&this.options.updateMissing;if(T||j||A){this.logger.log(A?"updateKey":"missingKey",l,c,a,A?t.defaultValue:h);var P=[],M=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&M&&M[0])for(var I=0;I<M.length;I++)P.push(M[I]);else"all"===this.options.saveMissingTo?P=this.languageUtils.toResolveHierarchy(t.lng||this.language):P.push(t.lng||this.language);var R=function(e,r){n.options.missingKeyHandler?n.options.missingKeyHandler(e,c,r,A?t.defaultValue:h,A,t):n.backendConnector&&n.backendConnector.saveMissing&&n.backendConnector.saveMissing(e,c,r,A?t.defaultValue:h,A,t),n.emit("missingKey",e,c,r,h)};if(this.options.saveMissing){var D=void 0!==t.count&&"string"!=typeof t.count;this.options.saveMissingPlurals&&D?P.forEach((function(e){n.pluralResolver.getPluralFormsOfKey(e,a).forEach((function(t){return R([e],t)}))})):R(P,a)}}h=this.extendTranslation(h,e,t,p),T&&h===a&&this.options.appendNamespaceToMissingKey&&(h="".concat(c,":").concat(a)),T&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(h))}return h}},{key:"extendTranslation",value:function(e,t,n,r){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(s({},n,{interpolation:s({},this.options.interpolation,n.interpolation)}));var o=n.replace&&"string"!=typeof n.replace?n.replace:n;this.options.interpolation.defaultVariables&&(o=s({},this.options.interpolation.defaultVariables,o)),e=this.interpolator.interpolate(e,o,n.lng||this.language,n),!1!==n.nest&&(e=this.interpolator.nest(e,(function(){return i.translate.apply(i,arguments)}),n)),n.interpolation&&this.interpolator.reset()}var a=n.postProcess||this.options.postProcess,u="string"==typeof a?[a]:a;return null!=e&&u&&u.length&&!1!==n.applyPostProcessor&&(e=M.handle(u,e,t,this.options&&this.options.postProcessPassResolved?s({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,i,o,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var u=a.extractFromKey(e,s),c=u.key;n=c;var l=u.namespaces;a.options.fallbackNS&&(l=l.concat(a.options.fallbackNS));var f=void 0!==s.count&&"string"!=typeof s.count,d=void 0!==s.context&&"string"==typeof s.context&&""!==s.context,p=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);l.forEach((function(e){a.isValidLookup(t)||(o=e,!I["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(o)&&(I["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for namespace "').concat(o,'" for languages "').concat(p.join(", "),"\" won't get resolved as namespace was not yet loaded"),"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((function(n){if(!a.isValidLookup(t)){i=n;var o,u,l=c,p=[l];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(p,c,n,e,s);else f&&(o=a.pluralResolver.getSuffix(n,s.count)),f&&d&&p.push(l+o),d&&p.push(l+="".concat(a.options.contextSeparator).concat(s.context)),f&&p.push(l+=o);for(;u=p.pop();)a.isValidLookup(t)||(r=u,t=a.getResource(n,e,u,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}]),t}(x);function D(e){return e.charAt(0).toUpperCase()+e.slice(1)}var L=function(){function e(t){u(this,e),this.options=t,this.whitelist=this.options.whitelist||!1,this.logger=b.create("languageUtils")}return l(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=D(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=D(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=D(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitWhitelist)&&(e=this.getLanguagePartFromCode(e)),!this.whitelist||!this.whitelist.length||this.whitelist.indexOf(e)>-1}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],o=function(e){e&&(n.isWhitelisted(e)?i.push(e):n.logger.warn("rejecting non-whitelisted language code: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),r.forEach((function(e){i.indexOf(e)<0&&o(n.formatLanguageCode(e))})),i}}]),e}(),N=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he"],nr:[1,2,20,21],fc:22}],F={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0===e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0===e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0===e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1===e?0:2===e?1:(e<0||e>10)&&e%10==0?2:3)}};var B=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u(this,e),this.languageUtils=t,this.options=r,this.logger=b.create("pluralResolver"),this.rules=(n={},N.forEach((function(e){e.lngs.forEach((function(t){n[t]={numbers:e.nr,plurals:F[e.fc]}}))})),n)}return l(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=this,r=[],i=this.getRule(e);return i?(i.numbers.forEach((function(i){var o=n.getSuffix(e,i);r.push("".concat(t).concat(o))})),r):r}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var i=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),o=r.numbers[i];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var a=function(){return n.options.prepend&&o.toString()?n.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?"_plural_".concat(o.toString()):a():"v2"===this.options.compatibilityJSON?a():this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),U=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};u(this,e),this.logger=b.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return l(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:A,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?T(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?T(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?T(t.nestingPrefix):t.nestingPrefixEscaped||T("$t("),this.nestingSuffix=t.nestingSuffix?T(t.nestingSuffix):t.nestingSuffixEscaped||T(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var i,o,a,s=this,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var l=function(e){if(e.indexOf(s.formatSeparator)<0){var i=E(t,u,e);return s.alwaysFormat?s.format(i,void 0,n):i}var o=e.split(s.formatSeparator),a=o.shift().trim(),c=o.join(s.formatSeparator).trim();return s.format(E(t,u,a),c,n,r)};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler;for(a=0;i=this.regexpUnescape.exec(e);){if(void 0===(o=l(i[1].trim())))if("function"==typeof f){var d=f(e,i,r);o="string"==typeof d?d:""}else this.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(e)),o="";else"string"==typeof o||this.useRawValueToEscape||(o=_(o));if(e=e.replace(i[0],c(o)),this.regexpUnescape.lastIndex=0,++a>=this.maxReplaces)break}for(a=0;i=this.regexp.exec(e);){if(void 0===(o=l(i[1].trim())))if("function"==typeof f){var p=f(e,i,r);o="string"==typeof p?p:""}else this.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(e)),o="";else"string"==typeof o||this.useRawValueToEscape||(o=_(o));if(o=this.escapeValue?c(this.escape(o)):c(o),e=e.replace(i[0],o),this.regexp.lastIndex=0,++a>=this.maxReplaces)break}return e}},{key:"nest",value:function(e,t){var n,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=s({},i);function a(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),i="{".concat(r[1]);e=r[0],i=(i=this.interpolate(i,o)).replace(/'/g,'"');try{o=JSON.parse(i),t&&(o=s({},t,o))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(i)}return delete o.defaultValue,e}for(o.applyPostProcessor=!1,delete o.defaultValue;n=this.nestingRegexp.exec(e);){if((r=t(a.call(this,n[1].trim(),o),o))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=_(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();var z=function(e){function t(e,n,r){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return u(this,t),i=d(this,p(t).call(this)),x.call(f(i)),i.backend=e,i.store=n,i.services=r,i.languageUtils=r.languageUtils,i.options=o,i.logger=b.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,o.backend,o),i}return v(t,e),l(t,[{key:"queueLoad",value:function(e,t,n,r){var i=this,o=[],a=[],s=[],u=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&i.store.hasResourceBundle(e,t)?i.state[s]=2:i.state[s]<0||(1===i.state[s]?a.indexOf(s)<0&&a.push(s):(i.state[s]=1,r=!1,a.indexOf(s)<0&&a.push(s),o.indexOf(s)<0&&o.push(s),u.indexOf(t)<0&&u.push(t)))})),r||s.push(e)})),(o.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:o,pending:a,toLoadLanguages:s,toLoadNamespaces:u}}},{key:"loaded",value:function(e,t,n){var r=m(e.split("|"),2),i=r[0],o=r[1];t&&this.emit("failedLoading",i,o,t),n&&this.store.addResourceBundle(i,o,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){var r,s,u,c,l,f;r=n.loaded,s=o,c=S(r,[i],Object),l=c.obj,f=c.k,l[f]=l[f]||[],u&&(l[f]=l[f].concat(s)),u||l[f].push(s),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:250,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(s,u){s&&u&&i<5?setTimeout((function(){r.read.call(r,e,t,n,i+1,2*o,a)}),o):a(s,u)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var o=this.queueLoad(e,t,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),i=m(r,2),o=i[0],a=i[1];this.read(o,a,"read",void 0,void 0,(function(r,i){r&&t.logger.warn("".concat(n,"loading namespace ").concat(a," for language ").concat(o," failed"),r),!r&&i&&t.logger.log("".concat(n,"loaded namespace ").concat(a," for language ").concat(o),i),t.loaded(e,r,i)}))}},{key:"saveMissing",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" for namespace "').concat(t,'" as the namespace was not yet loaded'),"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,s({},o,{isUpdate:i})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}(x);function V(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===o(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===o(e[2])||"object"===o(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3}}}function H(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e}function W(){}var q=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(u(this,t),e=d(this,p(t).call(this)),x.call(f(e)),e.options=H(n),e.services={},e.logger=b,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),d(e,f(e));setTimeout((function(){e.init(n,r)}),0)}return e}return v(t,e),l(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),this.options=s({},V(),this.options,H(t)),this.format=this.options.interpolation.format,n||(n=W),!this.options.isClone){this.modules.logger?b.init(r(this.modules.logger),this.options):b.init(null,this.options);var i=new L(this.options);this.store=new P(this.options.resources,this.options);var o=this.services;o.logger=b,o.resourceStore=this.store,o.languageUtils=i,o.pluralResolver=new B(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),o.interpolator=new U(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new z(r(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(o.languageDetector=r(this.modules.languageDetector),o.languageDetector.init(o,this.options.detection,this.options)),this.modules.i18nFormat&&(o.i18nFormat=r(this.modules.i18nFormat),o.i18nFormat.init&&o.i18nFormat.init(this)),this.translator=new R(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}this.modules.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var a=["getResource","addResource","addResources","addResourceBundle","removeResourceBundle","hasResourceBundle","getResourceBundle","getDataByLanguage"];a.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var u=w(),c=function(){e.changeLanguage(e.options.lng,(function(t,r){e.isInitialized=!0,e.logger.log("initialized",e.options),e.emit("initialized",e.options),u.resolve(r),n(t,r)}))};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),u}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W,r=n,i="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&"cimode"===i.toLowerCase())return r();var o=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){o.indexOf(e)<0&&o.push(e)}))};if(i)a(i);else{var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(o,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=w();return e||(e=this.languages),t||(t=this.options.ns),n||(n=W),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&M.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=w();this.emit("languageChanging",e);var i=function(e){e&&(n.language||(n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e)),n.translator.language||n.translator.changeLanguage(e),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(e)),n.loadResources(e,(function(i){!function(e,i){i?(n.language=i,n.languages=n.services.languageUtils.toResolveHierarchy(i),n.translator.changeLanguage(i),n.isLanguageChangingTo=void 0,n.emit("languageChanged",i),n.logger.log("languageChanged",i)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(i,e)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t){var n=this,r=function e(t,r){var i;if("object"!==o(r)){for(var a=arguments.length,u=new Array(a>2?a-2:0),c=2;c<a;c++)u[c-2]=arguments[c];i=n.options.overloadTranslationOptionHandler([t,r].concat(u))}else i=s({},r);return i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns,n.t(t,i)};return"string"==typeof e?r.lng=e:r.lngs=e,r.ns=t,r}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this;if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var n=this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;var o=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};return!!this.hasResourceBundle(n,e)||(!this.services.backendConnector.backend||!(!o(n,e)||r&&!o(i,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=w();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=w();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],i=e.filter((function(e){return r.indexOf(e)<0}));return i.length?(this.options.preload=r.concat(i),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),!e)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W,i=s({},this.options,n,{isClone:!0}),o=new t(i),a=["store","services","language"];return a.forEach((function(t){o[t]=e[t]})),o.translator=new R(o.services,o.options),o.translator.on("*",(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];o.emit.apply(o,[e].concat(n))})),o.init(i,r),o.translator.options=o.options,o}}]),t}(x));t.a=q},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(17),s=n(607),u=n(158),c=n(177),l=n(15),f=n(20),d=n(887),p=n(18),h=n(138),v=n(152);function g(e){return Object(h.a)("MuiButton",e)}var m=Object(v.a)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),y=n(491),b=n(5);function x(e){return(x="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(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==x(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==x(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===x(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],S=["root"],O=function(e){return Object(i.a)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}})},k=Object(l.a)(d.a,{shouldForwardProp:function(e){return Object(l.b)(e)||"classes"===e},name:"MuiButton",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],t["".concat(n.variant).concat(Object(p.a)(n.color))],t["size".concat(Object(p.a)(n.size))],t["".concat(n.variant,"Size").concat(Object(p.a)(n.size))],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((function(e){var t,n,r=e.theme,o=e.ownerState;return Object(i.a)({},r.typography.button,w(w({minWidth:64,padding:"6px 16px",borderRadius:(r.vars||r).shape.borderRadius,transition:r.transitions.create(["background-color","box-shadow","border-color","color"],{duration:r.transitions.duration.short}),"&:hover":Object(i.a)({textDecoration:"none",backgroundColor:r.vars?"rgba(".concat(r.vars.palette.text.primaryChannel," / ").concat(r.vars.palette.action.hoverOpacity,")"):Object(c.a)(r.palette.text.primary,r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===o.variant&&"inherit"!==o.color&&{backgroundColor:r.vars?"rgba(".concat(r.vars.palette[o.color].mainChannel," / ").concat(r.vars.palette.action.hoverOpacity,")"):Object(c.a)(r.palette[o.color].main,r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===o.variant&&"inherit"!==o.color&&{border:"1px solid ".concat((r.vars||r).palette[o.color].main),backgroundColor:r.vars?"rgba(".concat(r.vars.palette[o.color].mainChannel," / ").concat(r.vars.palette.action.hoverOpacity,")"):Object(c.a)(r.palette[o.color].main,r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===o.variant&&{backgroundColor:(r.vars||r).palette.grey.A100,boxShadow:(r.vars||r).shadows[4],"@media (hover: none)":{boxShadow:(r.vars||r).shadows[2],backgroundColor:(r.vars||r).palette.grey[300]}},"contained"===o.variant&&"inherit"!==o.color&&{backgroundColor:(r.vars||r).palette[o.color].dark,"@media (hover: none)":{backgroundColor:(r.vars||r).palette[o.color].main}}),"&:active":Object(i.a)({},"contained"===o.variant&&{boxShadow:(r.vars||r).shadows[8]})},"&.".concat(m.focusVisible),Object(i.a)({},"contained"===o.variant&&{boxShadow:(r.vars||r).shadows[6]})),"&.".concat(m.disabled),Object(i.a)({color:(r.vars||r).palette.action.disabled},"outlined"===o.variant&&{border:"1px solid ".concat((r.vars||r).palette.action.disabledBackground)},"outlined"===o.variant&&"secondary"===o.color&&{border:"1px solid ".concat((r.vars||r).palette.action.disabled)},"contained"===o.variant&&{color:(r.vars||r).palette.action.disabled,boxShadow:(r.vars||r).shadows[0],backgroundColor:(r.vars||r).palette.action.disabledBackground})),"text"===o.variant&&{padding:"6px 8px"},"text"===o.variant&&"inherit"!==o.color&&{color:(r.vars||r).palette[o.color].main},"outlined"===o.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===o.variant&&"inherit"!==o.color&&{color:(r.vars||r).palette[o.color].main,border:r.vars?"1px solid rgba(".concat(r.vars.palette[o.color].mainChannel," / 0.5)"):"1px solid ".concat(Object(c.a)(r.palette[o.color].main,.5))},"contained"===o.variant&&{color:r.vars?r.vars.palette.text.primary:null==(t=(n=r.palette).getContrastText)?void 0:t.call(n,r.palette.grey[300]),backgroundColor:(r.vars||r).palette.grey[300],boxShadow:(r.vars||r).shadows[2]},"contained"===o.variant&&"inherit"!==o.color&&{color:(r.vars||r).palette[o.color].contrastText,backgroundColor:(r.vars||r).palette[o.color].main},"inherit"===o.color&&{color:"inherit",borderColor:"currentColor"},"small"===o.size&&"text"===o.variant&&{padding:"4px 5px",fontSize:r.typography.pxToRem(13)},"large"===o.size&&"text"===o.variant&&{padding:"8px 11px",fontSize:r.typography.pxToRem(15)},"small"===o.size&&"outlined"===o.variant&&{padding:"3px 9px",fontSize:r.typography.pxToRem(13)},"large"===o.size&&"outlined"===o.variant&&{padding:"7px 21px",fontSize:r.typography.pxToRem(15)},"small"===o.size&&"contained"===o.variant&&{padding:"4px 10px",fontSize:r.typography.pxToRem(13)},"large"===o.size&&"contained"===o.variant&&{padding:"8px 22px",fontSize:r.typography.pxToRem(15)},o.fullWidth&&{width:"100%"})}),(function(e){return e.ownerState.disableElevation&&w(w(w({boxShadow:"none","&:hover":{boxShadow:"none"}},"&.".concat(m.focusVisible),{boxShadow:"none"}),"&:active",{boxShadow:"none"}),"&.".concat(m.disabled),{boxShadow:"none"})})),E=Object(l.a)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:function(e,t){var n=e.ownerState;return[t.startIcon,t["iconSize".concat(Object(p.a)(n.size))]]}})((function(e){var t=e.ownerState;return Object(i.a)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},O(t))})),j=Object(l.a)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:function(e,t){var n=e.ownerState;return[t.endIcon,t["iconSize".concat(Object(p.a)(n.size))]]}})((function(e){var t=e.ownerState;return Object(i.a)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},O(t))})),T=o.forwardRef((function(e,t){var n=o.useContext(y.a),c=Object(s.a)(n,e),l=Object(f.a)({props:c,name:"MuiButton"}),d=l.children,h=l.color,v=void 0===h?"primary":h,m=l.component,x=void 0===m?"button":m,w=l.className,O=l.disabled,T=void 0!==O&&O,C=l.disableElevation,A=void 0!==C&&C,P=l.disableFocusRipple,M=void 0!==P&&P,I=l.endIcon,R=l.focusVisibleClassName,D=l.fullWidth,L=void 0!==D&&D,N=l.size,F=void 0===N?"medium":N,B=l.startIcon,U=l.type,z=l.variant,V=void 0===z?"text":z,H=Object(r.a)(l,_),W=Object(i.a)({},l,{color:v,component:x,disabled:T,disableElevation:A,disableFocusRipple:M,fullWidth:L,size:F,type:U,variant:V}),q=function(e){var t=e.color,n=e.disableElevation,r=e.fullWidth,o=e.size,a=e.variant,s=e.classes,c={root:["root",a,"".concat(a).concat(Object(p.a)(t)),"size".concat(Object(p.a)(o)),"".concat(a,"Size").concat(Object(p.a)(o)),"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon","iconSize".concat(Object(p.a)(o))],endIcon:["endIcon","iconSize".concat(Object(p.a)(o))]},l=Object(u.a)(c,g,s);return Object(i.a)({},s,l)}(W),G=q.root,Y=Object(r.a)(q,S),K=B&&Object(b.jsx)(E,{className:Y.startIcon,ownerState:W,children:B}),$=I&&Object(b.jsx)(j,{className:Y.endIcon,ownerState:W,children:I});return Object(b.jsxs)(k,Object(i.a)({ownerState:W,className:Object(a.default)(n.className,G,w),component:x,disabled:T,focusRipple:!M,focusVisibleClassName:Object(a.default)(Y.focusVisible,R),ref:t,type:U},H,{classes:Y,children:[K,d,$]}))}));t.a=T},,,,,,,function(e,t,n){var r=n(80),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(147),o=n(253),a=n(640),s=n(96).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,n){var r=n(374)("keys"),i=n(292);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(74).document;e.exports=r&&r.documentElement},function(e,t,n){"use strict";var r=n(92),i=n(225),o=n(419),a=n(376),s=n(109),u=n(375),c=Object.assign;e.exports=!c||n(81)((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r}))?function(e,t){for(var n=s(e),c=arguments.length,l=1,f=o.f,d=a.f;c>l;)for(var p,h=u(arguments[l++]),v=f?i(h).concat(f(h)):i(h),g=v.length,m=0;g>m;)p=v[m++],r&&!d.call(h,p)||(n[p]=h[p]);return n}:c},function(e,t,n){var r=n(80),i=n(68),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(178)(Function.call,n(164).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(e,t,n){var r=n(80),i=n(551).set;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,n){"use strict";var r=n(187),i=n(200);e.exports=function(e){var t=String(i(this)),n="",o=r(e);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(n+=t);return n}},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},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,n){var r=n(424),i=n(200);e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},function(e,t,n){var r=n(90)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,n){var r=n(295),i=n(90)("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(96),i=n(252);e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},function(e,t,n){var r=n(1048);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){"use strict";var r=n(109),i=n(293),o=n(93);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),u=a>2?arguments[2]:void 0,c=void 0===u?n:i(u,n);c>s;)t[s++]=e;return t}},function(e,t,n){"use strict";var r=n(256),i=n(565),o=n(295),a=n(148);e.exports=n(422)(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){"use strict";var r,i,o=n(378),a=RegExp.prototype.exec,s=String.prototype.replace,u=a,c=(r=/a/,i=/b*/g,a.call(r,"a"),a.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),l=void 0!==/()??/.exec("")[1];(c||l)&&(u=function(e){var t,n,r,i,u=this;return l&&(n=new RegExp("^"+u.source+"$(?!\\s)",o.call(u))),c&&(t=u.lastIndex),r=a.call(u,e),c&&r&&(u.lastIndex=u.global?r.index+r[0].length:t),l&&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=u},function(e,t,n){"use strict";var r=n(421)(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){var r,i,o,a=n(178),s=n(552),u=n(549),c=n(545),l=n(74),f=l.process,d=l.setImmediate,p=l.clearImmediate,h=l.MessageChannel,v=l.Dispatch,g=0,m={},y=function(){var e=+this;if(m.hasOwnProperty(e)){var t=m[e];delete m[e],t()}},b=function(e){y.call(e.data)};d&&p||(d=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return m[++g]=function(){s("function"==typeof e?e:Function(e),t)},r(g),g},p=function(e){delete m[e]},"process"==n(186)(f)?r=function(e){f.nextTick(a(y,e,1))}:v&&v.now?r=function(e){v.now(a(y,e,1))}:h?(o=(i=new h).port2,i.port1.onmessage=b,r=a(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(e){l.postMessage(e+"","*")},l.addEventListener("message",b,!1)):r="onreadystatechange"in c("script")?function(e){u.appendChild(c("script")).onreadystatechange=function(){u.removeChild(this),y.call(e)}}:function(e){setTimeout(a(y,e,1),0)}),e.exports={set:d,clear:p}},function(e,t,n){var r=n(74),i=n(568).set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,u="process"==n(186)(a);e.exports=function(){var e,t,n,c=function(){var r,i;for(u&&(r=a.domain)&&r.exit();e;){i=e.fn,e=e.next;try{i()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(u)n=function(){a.nextTick(c)};else if(!o||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var l=s.resolve(void 0);n=function(){l.then(c)}}else n=function(){i.call(r,c)};else{var f=!0,d=document.createTextNode("");new o(c).observe(d,{characterData:!0}),n=function(){d.data=f=!f}}return function(r){var i={fn:r,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}},function(e,t,n){"use strict";var r=n(129);function i(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(74),i=n(92),o=n(253),a=n(430),s=n(162),u=n(298),c=n(81),l=n(297),f=n(187),d=n(93),p=n(664),h=n(294).f,v=n(96).f,g=n(563),m=n(327),y="prototype",b="Wrong index!",x=r.ArrayBuffer,w=r.DataView,_=r.Math,S=r.RangeError,O=r.Infinity,k=x,E=_.abs,j=_.pow,T=_.floor,C=_.log,A=_.LN2,P=i?"_b":"buffer",M=i?"_l":"byteLength",I=i?"_o":"byteOffset";function R(e,t,n){var r,i,o,a=new Array(n),s=8*n-t-1,u=(1<<s)-1,c=u>>1,l=23===t?j(2,-24)-j(2,-77):0,f=0,d=e<0||0===e&&1/e<0?1:0;for((e=E(e))!=e||e===O?(i=e!=e?1:0,r=u):(r=T(C(e)/A),e*(o=j(2,-r))<1&&(r--,o*=2),(e+=r+c>=1?l/o:l*j(2,1-c))*o>=2&&(r++,o/=2),r+c>=u?(i=0,r=u):r+c>=1?(i=(e*o-1)*j(2,t),r+=c):(i=e*j(2,c-1)*j(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}function D(e,t,n){var r,i=8*n-t-1,o=(1<<i)-1,a=o>>1,s=i-7,u=n-1,c=e[u--],l=127&c;for(c>>=7;s>0;l=256*l+e[u],u--,s-=8);for(r=l&(1<<-s)-1,l>>=-s,s+=t;s>0;r=256*r+e[u],u--,s-=8);if(0===l)l=1-a;else{if(l===o)return r?NaN:c?-O:O;r+=j(2,t),l-=a}return(c?-1:1)*r*j(2,l-t)}function L(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function N(e){return[255&e]}function F(e){return[255&e,e>>8&255]}function B(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function U(e){return R(e,52,8)}function z(e){return R(e,23,4)}function V(e,t,n){v(e[y],t,{get:function(){return this[n]}})}function H(e,t,n,r){var i=p(+n);if(i+t>e[M])throw S(b);var o=e[P]._b,a=i+e[I],s=o.slice(a,a+t);return r?s:s.reverse()}function W(e,t,n,r,i,o){var a=p(+n);if(a+t>e[M])throw S(b);for(var s=e[P]._b,u=a+e[I],c=r(+i),l=0;l<t;l++)s[u+l]=c[o?l:t-l-1]}if(a.ABV){if(!c((function(){x(1)}))||!c((function(){new x(-1)}))||c((function(){return new x,new x(1.5),new x(NaN),"ArrayBuffer"!=x.name}))){for(var q,G=(x=function(e){return l(this,x),new k(p(e))})[y]=k[y],Y=h(k),K=0;Y.length>K;)(q=Y[K++])in x||s(x,q,k[q]);o||(G.constructor=x)}var $=new w(new x(2)),X=w[y].setInt8;$.setInt8(0,2147483648),$.setInt8(1,2147483649),!$.getInt8(0)&&$.getInt8(1)||u(w[y],{setInt8:function(e,t){X.call(this,e,t<<24>>24)},setUint8:function(e,t){X.call(this,e,t<<24>>24)}},!0)}else x=function(e){l(this,x,"ArrayBuffer");var t=p(e);this._b=g.call(new Array(t),0),this[M]=t},w=function(e,t,n){l(this,w,"DataView"),l(e,x,"DataView");var r=e[M],i=f(t);if(i<0||i>r)throw S("Wrong offset!");if(i+(n=void 0===n?r-i:d(n))>r)throw S("Wrong length!");this[P]=e,this[I]=i,this[M]=n},i&&(V(x,"byteLength","_l"),V(w,"buffer","_b"),V(w,"byteLength","_l"),V(w,"byteOffset","_o")),u(w[y],{getInt8:function(e){return H(this,1,e)[0]<<24>>24},getUint8:function(e){return H(this,1,e)[0]},getInt16:function(e){var t=H(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=H(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return L(H(this,4,e,arguments[1]))},getUint32:function(e){return L(H(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return D(H(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return D(H(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){W(this,1,e,N,t)},setUint8:function(e,t){W(this,1,e,N,t)},setInt16:function(e,t){W(this,2,e,F,t,arguments[2])},setUint16:function(e,t){W(this,2,e,F,t,arguments[2])},setInt32:function(e,t){W(this,4,e,B,t,arguments[2])},setUint32:function(e,t){W(this,4,e,B,t,arguments[2])},setFloat32:function(e,t){W(this,4,e,z,t,arguments[2])},setFloat64:function(e,t){W(this,8,e,U,t,arguments[2])}});m(x,"ArrayBuffer"),m(w,"DataView"),s(w[y],a.VIEW,!0),t.ArrayBuffer=x,t.DataView=w},function(e,t,n){var r=n(294),i=n(419),o=n(68),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=function(e,t){var n=t===Object(t)?function(e){return t[e]}:t;return function(t){return String(t).replace(e,n)}}},function(e,t,n){"use strict";var r=n(609);t.a=r.a},function(e,t,n){"use strict";var r;function i(){if(r)return r;var e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),r="reverse",e.scrollLeft>0?r="default":(e.scrollLeft=1,0===e.scrollLeft&&(r="negative")),document.body.removeChild(e),r}function o(e,t){var n=e.scrollLeft;if("rtl"!==t)return n;switch(i()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}))},function(e,t,n){"use strict";n.r(t);var r=n(684);n.d(t,"default",(function(){return r.a}))},function(e,t,n){"use strict";n.r(t);var r=n(486);n.d(t,"default",(function(){return r.a}));var i=n(332);n.d(t,"svgIconClasses",(function(){return i.a})),n.d(t,"getSvgIconUtilityClass",(function(){return i.b}))},function(e,t,n){"use strict";var r=n(139);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=(0,r(n(1210)).default)();t.default=i},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){"use strict";(function(t){var r=n(130),i=n(1243),o=n(330),a=n(701),s=n(702),u={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l,f={transitional:a,adapter:("undefined"!=typeof XMLHttpRequest?l=n(703):void 0!==t&&"[object process]"===Object.prototype.toString.call(t)&&(l=n(703)),l),transformRequest:[function(e,t){if(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))return e;if(r.isArrayBufferView(e))return e.buffer;if(r.isURLSearchParams(e))return c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,o=r.isObject(e),a=t&&t["Content-Type"];if((n=r.isFileList(e))||o&&"multipart/form-data"===a){var u=this.env&&this.env.FormData;return s(n?{"files[]":e}:e,u&&new u)}return o||"application/json"===a?(c(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||f.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw o.from(e,o.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(1251)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){f.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){f.headers[e]=r.merge(u)})),e.exports=f}).call(this,n(700))},function(e,t,n){var r=n(259),i=n(582),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){var r=n(382),i=n(383),o="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||i(e)&&r(e)==o}},function(e,t,n){var r=n(1270),i=n(1286),o=n(1288),a=n(1289),s=n(1290);function u(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])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},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(300)(n(232),"Map");e.exports=r},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(1297),i=n(1303),o=n(1307);e.exports=function(e){return o(e)?r(e):i(e)}},function(e,t,n){var r=n(746),i=n(750);e.exports=function(e,t){return e&&r(e,i(t))}},function(e,t,n){var r=n(1378),i=n(204),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},function(e,t){function n(e){return(n="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)}var r=9007199254740991,i=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var o=n(e);return!!(t=null==t?r:t)&&("number"==o||"symbol"!=o&&i.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){var r=n(1380),i=n(593),o=n(594),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},function(e,t){var n=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){function r(e){return(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})(e)}var i=n(745),o="object"==r(t)&&t&&!t.nodeType&&t,a=o&&"object"==r(e)&&e&&!e.nodeType&&e,s=a&&a.exports===o&&i.process,u=function(){try{var e=a&&a.require&&a.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=u}).call(this,n(231)(e))},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(301),i=n(179),o="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",u="[object Proxy]";e.exports=function(e){if(!i(e))return!1;var t=r(e);return t==a||t==s||t==o||t==u}},function(e,t,n){var r=n(749)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(302)(n(190),"Map");e.exports=r},function(e,t,n){var r=n(1400),i=n(1407),o=n(1409),a=n(1410),s=n(1411);function u(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])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},function(e,t,n){var r=n(1422),i=n(760),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){function r(e){return(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})(e)}var i=n(167),o=n(451),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,t){if(i(e))return!1;var n=r(e);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||(s.test(e)||!a.test(e)||null!=t&&e in Object(t))}},function(e,t,n){var r=n(768);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(756);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Checkboard=void 0;var r=a(n(2)),i=a(n(64)),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1469));function a(e){return e&&e.__esModule?e:{default:e}}var s=t.Checkboard=function(e){var t=e.white,n=e.grey,a=e.size,s=e.renderers,u=e.borderRadius,c=e.boxShadow,l=(0,i.default)({default:{grid:{borderRadius:u,boxShadow:c,absolute:"0px 0px 0px 0px",background:"url("+o.get(t,n,a,s.canvas)+") center left"}}});return r.default.createElement("div",{style:l.grid})};s.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}},t.default=s},function(e,t,n){"use strict";var r=n(606),i=n.n(r);t.a=function(e,t){return i()(e,t)}},function(e,t,n){"use strict";var r=n(1173),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 u(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,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=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=l(n);f&&(a=a.concat(f(n)));for(var s=u(t),v=u(n),g=0;g<a.length;++g){var m=a[g];if(!(o[m]||r&&r[m]||v&&v[m]||s&&s[m])){var y=d(n,m);try{c(t,m,y)}catch(e){}}}}return t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(272);function i(e,t){var n=Object(r.a)({},t);return Object.keys(e).forEach((function(t){void 0===n[t]&&(n[t]=e[t])})),n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(2);function i(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n(272);function r(e,t){return function(){return null}}},function(e,t,n){"use strict";function r(e,t,n,r,i){return null}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(2);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e){var t=e.controlled,n=e.default,o=(e.name,e.state,r.useRef(void 0!==t).current),a=i(r.useState(n),2),s=a[0],u=a[1];return[o?t:s,r.useCallback((function(e){o||u(e)}),[])]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r,i=n(2),o=!0,a=!1,s={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function u(e){e.metaKey||e.altKey||e.ctrlKey||(o=!0)}function c(){o=!1}function l(){"hidden"===this.visibilityState&&a&&(o=!0)}function f(e){var t,n,r,i=e.target;try{return i.matches(":focus-visible")}catch(e){}return o||(n=(t=i).type,!("INPUT"!==(r=t.tagName)||!s[n]||t.readOnly)||"TEXTAREA"===r&&!t.readOnly||!!t.isContentEditable)}function d(){var e=i.useCallback((function(e){var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",u,!0),t.addEventListener("mousedown",c,!0),t.addEventListener("pointerdown",c,!0),t.addEventListener("touchstart",c,!0),t.addEventListener("visibilitychange",l,!0))}),[]),t=i.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!f(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(a=!0,window.clearTimeout(r),r=window.setTimeout((function(){a=!1}),100),t.current=!1,!0)},ref:e}}},function(e,t,n){"use strict";var r=n(6),i=n(16),o=n(2),a=n(289),s=n(151),u=n(366),c=n(403),l=n(158),f=n(1557),d=n(398),p=n(1558),h=n(339),v=n(128),g=n(5);function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var b=["children","classes","closeAfterTransition","component","components","componentsProps","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited"];var x=new d.b,w=o.forwardRef((function(e,t){var n,y=e.children,w=e.classes,_=e.closeAfterTransition,S=void 0!==_&&_,O=e.component,k=void 0===O?"div":O,E=e.components,j=void 0===E?{}:E,T=e.componentsProps,C=void 0===T?{}:T,A=e.container,P=e.disableAutoFocus,M=void 0!==P&&P,I=e.disableEnforceFocus,R=void 0!==I&&I,D=e.disableEscapeKeyDown,L=void 0!==D&&D,N=e.disablePortal,F=void 0!==N&&N,B=e.disableRestoreFocus,U=void 0!==B&&B,z=e.disableScrollLock,V=void 0!==z&&z,H=e.hideBackdrop,W=void 0!==H&&H,q=e.keepMounted,G=void 0!==q&&q,Y=e.manager,K=void 0===Y?x:Y,$=e.onBackdropClick,X=e.onClose,Q=e.onKeyDown,Z=e.open,J=e.onTransitionEnter,ee=e.onTransitionExited,te=Object(i.a)(e,b),ne=m(o.useState(!0),2),re=ne[0],ie=ne[1],oe=o.useRef({}),ae=o.useRef(null),se=o.useRef(null),ue=Object(a.a)(se,t),ce=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(e),le=null==(n=e["aria-hidden"])||n,fe=function(){return oe.current.modalRef=se.current,oe.current.mountNode=ae.current,oe.current},de=function(){K.mount(fe(),{disableScrollLock:V}),se.current.scrollTop=0},pe=Object(u.a)((function(){var e=function(e){return"function"==typeof e?e():e}(A)||Object(s.a)(ae.current).body;K.add(fe(),e),se.current&&de()})),he=o.useCallback((function(){return K.isTopModal(fe())}),[K]),ve=Object(u.a)((function(e){ae.current=e,e&&(Z&&he()?de():Object(d.a)(se.current,le))})),ge=o.useCallback((function(){K.remove(fe(),le)}),[K,le]);o.useEffect((function(){return function(){ge()}}),[ge]),o.useEffect((function(){Z?pe():ce&&S||ge()}),[Z,ge,ce,S,pe]);var me=Object(r.a)({},e,{classes:w,closeAfterTransition:S,disableAutoFocus:M,disableEnforceFocus:R,disableEscapeKeyDown:L,disablePortal:F,disableRestoreFocus:U,disableScrollLock:V,exited:re,hideBackdrop:W,keepMounted:G}),ye=function(e){var t=e.open,n=e.exited,r=e.classes,i={root:["root",!t&&n&&"hidden"]};return Object(l.a)(i,h.b,r)}(me),be={};void 0===y.props.tabIndex&&(be.tabIndex="-1"),ce&&(be.onEnter=Object(c.a)((function(){ie(!1),J&&J()}),y.props.onEnter),be.onExited=Object(c.a)((function(){ie(!0),ee&&ee(),S&&ge()}),y.props.onExited));var xe=j.Root||k,we=Object(v.a)({elementType:xe,externalSlotProps:C.root,externalForwardedProps:te,additionalProps:{ref:ue,role:"presentation",onKeyDown:function(e){Q&&Q(e),"Escape"===e.key&&he()&&(L||(e.stopPropagation(),X&&X(e,"escapeKeyDown")))}},className:ye.root,ownerState:me}),_e=j.Backdrop,Se=Object(v.a)({elementType:_e,externalSlotProps:C.backdrop,additionalProps:{"aria-hidden":!0,onClick:function(e){e.target===e.currentTarget&&($&&$(e),X&&X(e,"backdropClick"))},open:Z},ownerState:me});return G||Z||ce&&!re?Object(g.jsx)(f.a,{ref:ve,container:A,disablePortal:F,children:Object(g.jsxs)(xe,Object(r.a)({},we,{children:[!W&&_e?Object(g.jsx)(_e,Object(r.a)({},Se)):null,Object(g.jsx)(p.a,{disableEnforceFocus:R,disableAutoFocus:M,disableRestoreFocus:U,isEnabled:he,open:Z,children:o.cloneElement(y,be)})]}))}):null}));t.a=w},function(e,t,n){"use strict";function r(e){var t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(29),i=n(77),o=n(170),a=n(207),s=n(105),u=Object(r.a)((function(e){return Object(i.a)(Object(s.a)(o.a,0,Object(a.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}))}));t.a=u},function(e,t,n){"use strict";var r=n(171),i=n(12),o=Object(i.a)(r.a);t.a=o},function(e,t,n){"use strict";var r=n(12),i=n(88),o=n(95),a=Object(r.a)((function(e,t){return Object(i.a)((function(n,r){return n[r]=e(t[r],r,t),n}),{},Object(o.a)(t))}));t.a=a},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(17),s=n(158),u=n(177),c=n(56),l=n(5),f=Object(c.a)(Object(l.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel"),d=n(62),p=n(18),h=n(887),v=n(20),g=n(15),m=n(73);function y(e){return(y="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 b(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==y(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===y(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"],w=Object(g.a)("div",{name:"MuiChip",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState,r=n.color,i=n.clickable,o=n.onDelete,a=n.size,s=n.variant;return[b({},"& .".concat(m.a.avatar),t.avatar),b({},"& .".concat(m.a.avatar),t["avatar".concat(Object(p.a)(a))]),b({},"& .".concat(m.a.avatar),t["avatarColor".concat(Object(p.a)(r))]),b({},"& .".concat(m.a.icon),t.icon),b({},"& .".concat(m.a.icon),t["icon".concat(Object(p.a)(a))]),b({},"& .".concat(m.a.icon),t["iconColor".concat(Object(p.a)(r))]),b({},"& .".concat(m.a.deleteIcon),t.deleteIcon),b({},"& .".concat(m.a.deleteIcon),t["deleteIcon".concat(Object(p.a)(a))]),b({},"& .".concat(m.a.deleteIcon),t["deleteIconColor".concat(Object(p.a)(r))]),b({},"& .".concat(m.a.deleteIcon),t["deleteIcon".concat(Object(p.a)(s),"Color").concat(Object(p.a)(r))]),t.root,t["size".concat(Object(p.a)(a))],t["color".concat(Object(p.a)(r))],i&&t.clickable,i&&"default"!==r&&t["clickableColor".concat(Object(p.a)(r),")")],o&&t.deletable,o&&"default"!==r&&t["deletableColor".concat(Object(p.a)(r))],t[s],t["".concat(s).concat(Object(p.a)(r))]]}})((function(e){var t=e.theme,n=e.ownerState,r=Object(u.a)(t.palette.text.primary,.26),o="light"===t.palette.mode?t.palette.grey[700]:t.palette.grey[300];return Object(i.a)(b(b(b(b(b(b(b({maxWidth:"100%",fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(t.vars||t).palette.text.primary,backgroundColor:(t.vars||t).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box"},"&.".concat(m.a.disabled),{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"}),"& .".concat(m.a.avatar),{marginLeft:5,marginRight:-6,width:24,height:24,color:t.vars?t.vars.palette.Chip.defaultAvatarColor:o,fontSize:t.typography.pxToRem(12)}),"& .".concat(m.a.avatarColorPrimary),{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.dark}),"& .".concat(m.a.avatarColorSecondary),{color:(t.vars||t).palette.secondary.contrastText,backgroundColor:(t.vars||t).palette.secondary.dark}),"& .".concat(m.a.avatarSmall),{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)}),"& .".concat(m.a.icon),Object(i.a)({color:t.vars?t.vars.palette.Chip.defaultIconColor:o,marginLeft:5,marginRight:-6},"small"===n.size&&{fontSize:18,marginLeft:4,marginRight:-4},"default"!==n.color&&{color:"inherit"})),"& .".concat(m.a.deleteIcon),Object(i.a)({WebkitTapHighlightColor:"transparent",color:t.vars?"rgba(".concat(t.vars.palette.text.primaryChannel," / 0.26)"):r,fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:t.vars?"rgba(".concat(t.vars.palette.text.primaryChannel," / 0.4)"):Object(u.a)(r,.4)}},"small"===n.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==n.color&&{color:t.vars?"rgba(".concat(t.vars.palette[n.color].contrastTextChannel," / 0.7)"):Object(u.a)(t.palette[n.color].contrastText,.7),"&:hover, &:active":{color:(t.vars||t).palette[n.color].contrastText}})),"small"===n.size&&{height:24},"default"!==n.color&&{backgroundColor:(t.vars||t).palette[n.color].main,color:(t.vars||t).palette[n.color].contrastText},n.onDelete&&b({},"&.".concat(m.a.focusVisible),{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity+t.vars.palette.action.focusOpacity,"))"):Object(u.a)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}),n.onDelete&&"default"!==n.color&&b({},"&.".concat(m.a.focusVisible),{backgroundColor:(t.vars||t).palette[n.color].dark}))}),(function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({},n.clickable&&b(b({userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity+t.vars.palette.action.hoverOpacity,"))"):Object(u.a)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}},"&.".concat(m.a.focusVisible),{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity+t.vars.palette.action.focusOpacity,"))"):Object(u.a)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}),"&:active",{boxShadow:(t.vars||t).shadows[1]}),n.clickable&&"default"!==n.color&&b({},"&:hover, &.".concat(m.a.focusVisible),{backgroundColor:(t.vars||t).palette[n.color].dark}))}),(function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({},"outlined"===n.variant&&b(b(b(b(b(b(b(b({backgroundColor:"transparent",border:t.vars?"1px solid ".concat(t.vars.palette.Chip.defaultBorder):"1px solid ".concat("light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[700])},"&.".concat(m.a.clickable,":hover"),{backgroundColor:(t.vars||t).palette.action.hover}),"&.".concat(m.a.focusVisible),{backgroundColor:(t.vars||t).palette.action.focus}),"& .".concat(m.a.avatar),{marginLeft:4}),"& .".concat(m.a.avatarSmall),{marginLeft:2}),"& .".concat(m.a.icon),{marginLeft:4}),"& .".concat(m.a.iconSmall),{marginLeft:2}),"& .".concat(m.a.deleteIcon),{marginRight:5}),"& .".concat(m.a.deleteIconSmall),{marginRight:3}),"outlined"===n.variant&&"default"!==n.color&&b(b(b({color:(t.vars||t).palette[n.color].main,border:"1px solid ".concat(t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / 0.7)"):Object(u.a)(t.palette[n.color].main,.7))},"&.".concat(m.a.clickable,":hover"),{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):Object(u.a)(t.palette[n.color].main,t.palette.action.hoverOpacity)}),"&.".concat(m.a.focusVisible),{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / ").concat(t.vars.palette.action.focusOpacity,")"):Object(u.a)(t.palette[n.color].main,t.palette.action.focusOpacity)}),"& .".concat(m.a.deleteIcon),{color:t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / 0.7)"):Object(u.a)(t.palette[n.color].main,.7),"&:hover, &:active":{color:(t.vars||t).palette[n.color].main}}))})),_=Object(g.a)("span",{name:"MuiChip",slot:"Label",overridesResolver:function(e,t){var n=e.ownerState.size;return[t.label,t["label".concat(Object(p.a)(n))]]}})((function(e){var t=e.ownerState;return Object(i.a)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"small"===t.size&&{paddingLeft:8,paddingRight:8})}));function S(e){return"Backspace"===e.key||"Delete"===e.key}var O=o.forwardRef((function(e,t){var n=Object(v.a)({props:e,name:"MuiChip"}),u=n.avatar,c=n.className,g=n.clickable,y=n.color,b=void 0===y?"default":y,O=n.component,k=n.deleteIcon,E=n.disabled,j=void 0!==E&&E,T=n.icon,C=n.label,A=n.onClick,P=n.onDelete,M=n.onKeyDown,I=n.onKeyUp,R=n.size,D=void 0===R?"medium":R,L=n.variant,N=void 0===L?"filled":L,F=Object(r.a)(n,x),B=o.useRef(null),U=Object(d.a)(B,t),z=function(e){e.stopPropagation(),P&&P(e)},V=!(!1===g||!A)||g,H=V||P?h.a:O||"div",W=Object(i.a)({},n,{component:H,disabled:j,size:D,color:b,onDelete:!!P,clickable:V,variant:N}),q=function(e){var t=e.classes,n=e.disabled,r=e.size,i=e.color,o=e.onDelete,a=e.clickable,u=e.variant,c={root:["root",u,n&&"disabled","size".concat(Object(p.a)(r)),"color".concat(Object(p.a)(i)),a&&"clickable",a&&"clickableColor".concat(Object(p.a)(i)),o&&"deletable",o&&"deletableColor".concat(Object(p.a)(i)),"".concat(u).concat(Object(p.a)(i))],label:["label","label".concat(Object(p.a)(r))],avatar:["avatar","avatar".concat(Object(p.a)(r)),"avatarColor".concat(Object(p.a)(i))],icon:["icon","icon".concat(Object(p.a)(r)),"iconColor".concat(Object(p.a)(i))],deleteIcon:["deleteIcon","deleteIcon".concat(Object(p.a)(r)),"deleteIconColor".concat(Object(p.a)(i)),"deleteIcon".concat(Object(p.a)(u),"Color").concat(Object(p.a)(i))]};return Object(s.a)(c,m.b,t)}(W),G=H===h.a?Object(i.a)({component:O||"div",focusVisibleClassName:q.focusVisible},P&&{disableRipple:!0}):{},Y=null;P&&(Y=k&&o.isValidElement(k)?o.cloneElement(k,{className:Object(a.default)(k.props.className,q.deleteIcon),onClick:z}):Object(l.jsx)(f,{className:Object(a.default)(q.deleteIcon),onClick:z}));var K=null;u&&o.isValidElement(u)&&(K=o.cloneElement(u,{className:Object(a.default)(q.avatar,u.props.className)}));var $=null;return T&&o.isValidElement(T)&&($=o.cloneElement(T,{className:Object(a.default)(q.icon,T.props.className)})),Object(l.jsxs)(w,Object(i.a)({as:H,className:Object(a.default)(q.root,c),disabled:!(!V||!j)||void 0,onClick:A,onKeyDown:function(e){e.currentTarget===e.target&&S(e)&&e.preventDefault(),M&&M(e)},onKeyUp:function(e){e.currentTarget===e.target&&(P&&S(e)?P(e):"Escape"===e.key&&B.current&&B.current.blur()),I&&I(e)},ref:U,ownerState:W},G,F,{children:[K||$,Object(l.jsx)(_,{className:Object(a.default)(q.label),ownerState:W,children:C}),Y]}))}));t.a=O},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(607);function i(e){var t=e.theme,n=e.name,i=e.props;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Object(r.a)(t.components[n].defaultProps,i):i}},function(e,t,n){"use strict";var r=n(397),i=n(884),o=n(629),a=Object(o.a)(),s=Object(r.a)({defaultTheme:a,defaultClassName:"MuiBox-root",generateClassName:i.a.generate});t.a=s},function(e,t,n){"use strict";function r(e){return(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})(e)}var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===o.call(e)},c=function(e){if(!e||"[object Object]"!==o.call(e))return!1;var t,n=i.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&i.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||i.call(e,t)},l=function(e,t){a&&"__proto__"===t.name?a(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},f=function(e,t){if("__proto__"===t){if(!i.call(e,t))return;if(s)return s(e,t).value}return e[t]};e.exports=function e(){var t,n,i,o,a,s,d=arguments[0],p=1,h=arguments.length,v=!1;for("boolean"==typeof d&&(v=d,d=arguments[1]||{},p=2),(null==d||"object"!==r(d)&&"function"!=typeof d)&&(d={});p<h;++p)if(null!=(t=arguments[p]))for(n in t)i=f(d,n),d!==(o=f(t,n))&&(v&&o&&(c(o)||(a=u(o)))?(a?(a=!1,s=i&&u(i)?i:[]):s=i&&c(i)?i:{},l(d,{name:n,newValue:e(v,s,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}},function(e,t,n){"use strict";(function(e){var r=n(2),i=n.n(r),o=n(623),a=n(52),s=n.n(a),u=1073741823,c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:{};var l=i.a.createContext||function(e,t){var n,i,a,l="__create-react-context-"+(c[a="__global_unique_id__"]=(c[a]||0)+1)+"__",f=function(e){function n(){var t,n,r;return(t=e.apply(this,arguments)||this).emitter=(n=t.props.value,r=[],{on:function(e){r.push(e)},off:function(e){r=r.filter((function(t){return t!==e}))},get:function(){return n},set:function(e,t){n=e,r.forEach((function(e){return e(n,t)}))}}),t}Object(o.a)(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[l]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,i=e.value;((o=r)===(a=i)?0!==o||1/o==1/a:o!=o&&a!=a)?n=0:(n="function"==typeof t?t(r,i):u,0!==(n|=0)&&this.emitter.set(e.value,n))}var o,a},r.render=function(){return this.props.children},n}(r.Component);f.childContextTypes=((n={})[l]=s.a.object.isRequired,n);var d=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}Object(o.a)(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?u:t},r.componentDidMount=function(){this.context[l]&&this.context[l].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?u:e},r.componentWillUnmount=function(){this.context[l]&&this.context[l].off(this.onUpdate)},r.getValue=function(){return this.context[l]?this.context[l].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return d.contextTypes=((i={})[l]=s.a.object,i),{Provider:f,Consumer:d}};t.a=l}).call(this,n(189))},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){var r=n(1228);e.exports=p,e.exports.parse=o,e.exports.compile=function(e,t){return s(o(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=d;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,a=0,s="",l=t&&t.delimiter||"/";null!=(n=i.exec(e));){var f=n[0],d=n[1],p=n.index;if(s+=e.slice(a,p),a=p+f.length,d)s+=d[1];else{var h=e[a],v=n[2],g=n[3],m=n[4],y=n[5],b=n[6],x=n[7];s&&(r.push(s),s="");var w=null!=v&&null!=h&&h!==v,_="+"===b||"*"===b,S="?"===b||"*"===b,O=n[2]||l,k=m||y;r.push({name:g||o++,prefix:v||"",delimiter:O,optional:S,repeat:_,partial:w,asterisk:!!x,pattern:k?c(k):x?".*":"[^"+u(O)+"]+?"})}}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,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"==typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",f(t)));return function(t,i){for(var o="",s=t||{},u=(i||{}).pretty?a:encodeURIComponent,c=0;c<e.length;c++){var l=e[c];if("string"!=typeof l){var f,d=s[l.name];if(null==d){if(l.optional){l.partial&&(o+=l.prefix);continue}throw new TypeError('Expected "'+l.name+'" to be defined')}if(r(d)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var p=0;p<d.length;p++){if(f=u(d[p]),!n[c].test(f))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(f)+"`");o+=(0===p?l.prefix:l.delimiter)+f}}else{if(f=l.asterisk?encodeURI(d).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):u(d),!n[c].test(f))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+f+'"');o+=l.prefix+f}}else o+=l}return o}}function u(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function l(e,t){return e.keys=t,e}function f(e){return e&&e.sensitive?"":"i"}function d(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+=u(c);else{var d=u(c.prefix),p="(?:"+c.pattern+")";t.push(c),c.repeat&&(p+="(?:"+d+p+")*"),a+=p=c.optional?c.partial?d+"("+p+")?":"(?:"+d+"("+p+"))?":d+"("+p+")"}}var h=u(n.delimiter||"/"),v=a.slice(-h.length)===h;return i||(a=(v?a.slice(0,-h.length):a)+"(?:"+h+"(?=$))?"),a+=o?"$":i&&v?"":"(?="+h+"|$)",l(new RegExp("^"+a,f(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 l(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 l(new RegExp("(?:"+r.join("|")+")",f(n)),t)}(e,t,n):function(e,t,n){return d(o(e,n),t,n)}(e,t,n)}},function(e,t,n){var r=n(730)((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ver=t.clear=t.bind=void 0;var r=n(1365);t.bind=function(e,t){var n=(0,r.getSensor)(e);return n.bind(t),function(){n.unbind(t)}};t.clear=function(e){var t=(0,r.getSensor)(e);(0,r.removeSensor)(t)};t.ver="1.0.1"},,function(e,t,n){var r,i;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},u={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(u.zeroFormat&&n===u.zeroFormat)r=0;else if(u.nullFormat&&n===u.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,u,c,l,f,d,p=a[e.options.currentLocale],h=!1,v=!1,g="",m="",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,"-"))&&(l=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,"[.]")&&(v=!0,n=n.replace("[.]",".")),u=t.toString().split(".")[0],c=n.split(".")[1],f=n.indexOf(","),i=(n.split(".")[0].split(",")[0].match(/0/g)||[]).length,c?(e._.includes(c,"[")?(c=(c=c.replace("]","")).split("["),m=e._.toFixed(t,c[0].length+c[1].length,r,c[1].length)):m=e._.toFixed(t,c.length,r),u=m.split(".")[0],m=e._.includes(m,".")?p.delimiters.decimal+m.split(".")[1]:"",v&&0===Number(m.slice(1))&&(m="")):u=e._.toFixed(t,0,r),g&&!o&&Number(u)>=1e3&&g!==p.abbreviations.trillion)switch(u=String(Number(u)/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(u,"-")&&(u=u.slice(1),y=!0),u.length<i)for(var b=i-u.length;b>0;b--)u="0"+u;return f>-1&&(u=u.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+p.delimiters.thousands)),0===n.indexOf(".")&&(u=""),d=u+m+(g||""),h?d=(h&&y?"(":"")+d+(h&&y?")":""):l>=0?d=0===l?(y?"-":"+")+d:d+(y?"-":"+"):y&&(d="-"+d),d},stringToNumber:function(e){var t,n,r,i=a[u.currentLocale],o=e,s={thousand:3,million:6,billion:9,trillion:12};if(u.zeroFormat&&e===u.zeroFormat)n=0;else if(u.nullFormat&&e===u.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){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((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(){var e=Array.prototype.slice.call(arguments);return e.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,u=e.toString().split("."),c=t-(r||0);return i=2===u.length?Math.min(Math.max(u[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=u,e.formats=o,e.locales=a,e.locale=function(e){return e&&(u.currentLocale=e.toLowerCase()),u.currentLocale},e.localeData=function(e){if(!e)return a[u.currentLocale];if(e=e.toLowerCase(),!a[e])throw new Error("Unknown locale : "+e);return a[e]},e.reset=function(){for(var e in s)u[e]=s[e]},e.zeroFormat=function(e){u.zeroFormat="string"==typeof e?e:null},e.nullFormat=function(e){u.nullFormat="string"==typeof e?e:null},e.defaultFormat=function(e){u.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,u,c,l;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!==(l=t.match(/^[^\d]+/))&&(t=t.substr(1),l[0]!==o)||null!==(l=t.match(/[^\d]+$/))&&(t=t.slice(0,-1),l[0]!==s.thousand&&l[0]!==s.million&&l[0]!==s.billion&&l[0]!==s.trillion)||(u=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(u):1===a[0].length?!a[0].match(/^\d+$/)||a[0].match(u)||!a[1].match(/^\d+$/):!a[0].match(/^\d+.*\d$/)||a[0].match(u)||!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||u.defaultFormat;if(n=n||Math.round,0===s&&null!==u.zeroFormat)i=u.zeroFormat;else if(null===s&&null!==u.nullFormat)i=u.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,u,c=e._.includes(i,"ib")?r:n,l=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),u=Math.pow(c.base,a+1),null===t||0===t||t>=s&&t<u){l+=c.suffixes[a],s>0&&(t/=s);break}return e._.numberToFormat(t,i,o)+l},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){"use strict";var r=n(6),i=n(16),o=n(314),a=n(238),s=n(883);function u(e){return(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})(e)}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==u(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===u(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=n(177),f={black:"#000",white:"#fff"},d=n(785),p={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},h=n(323),v={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},g={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},m={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},y={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},b=["mode","contrastThreshold","tonalOffset"],x={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:f.white,default:f.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},w={text:{primary:f.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:f.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function _(e,t,n,r){var i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Object(l.j)(e.main,i):"dark"===t&&(e.dark=Object(l.c)(e.main,o)))}function S(e){var t=e.mode,n=void 0===t?"light":t,s=e.contrastThreshold,u=void 0===s?3:s,c=e.tonalOffset,S=void 0===c?.2:c,O=Object(i.a)(e,b),k=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:g[200],light:g[50],dark:g[400]}:{main:g[700],light:g[400],dark:g[800]}}(n),E=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:p[200],light:p[50],dark:p[400]}:{main:p[500],light:p[300],dark:p[700]}}(n),j=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:h.a[500],light:h.a[300],dark:h.a[700]}:{main:h.a[700],light:h.a[400],dark:h.a[800]}}(n),T=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:m[400],light:m[300],dark:m[700]}:{main:m[700],light:m[500],dark:m[900]}}(n),C=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:y[400],light:y[300],dark:y[700]}:{main:y[800],light:y[500],dark:y[900]}}(n),A=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:v[400],light:v[300],dark:v[700]}:{main:"#ed6c02",light:v[500],dark:v[900]}}(n);function P(e){return Object(l.f)(e,w.text.primary)>=u?w.text.primary:x.text.primary}var M=function(e){var t=e.color,n=e.name,i=e.mainShade,a=void 0===i?500:i,s=e.lightShade,u=void 0===s?300:s,c=e.darkShade,l=void 0===c?700:c;if(!(t=Object(r.a)({},t)).main&&t[a]&&(t.main=t[a]),!t.hasOwnProperty("main"))throw new Error(Object(o.a)(11,n?" (".concat(n,")"):"",a));if("string"!=typeof t.main)throw new Error(Object(o.a)(12,n?" (".concat(n,")"):"",JSON.stringify(t.main)));return _(t,"light",u,S),_(t,"dark",l,S),t.contrastText||(t.contrastText=P(t.main)),t},I={dark:w,light:x};return Object(a.a)(Object(r.a)({common:Object(r.a)({},f),mode:n,primary:M({color:k,name:"primary"}),secondary:M({color:E,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:M({color:j,name:"error"}),warning:M({color:A,name:"warning"}),info:M({color:T,name:"info"}),success:M({color:C,name:"success"}),grey:d.a,contrastThreshold:u,getContrastText:P,augmentColor:M,tonalOffset:S},I[n]),O)}var O=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];var k={textTransform:"uppercase"},E='"Roboto", "Helvetica", "Arial", sans-serif';function j(e,t){var n="function"==typeof t?t(e):t,o=n.fontFamily,s=void 0===o?E:o,u=n.fontSize,c=void 0===u?14:u,l=n.fontWeightLight,f=void 0===l?300:l,d=n.fontWeightRegular,p=void 0===d?400:d,h=n.fontWeightMedium,v=void 0===h?500:h,g=n.fontWeightBold,m=void 0===g?700:g,y=n.htmlFontSize,b=void 0===y?16:y,x=n.allVariants,w=n.pxToRem,_=Object(i.a)(n,O);var S=c/14,j=w||function(e){return"".concat(e/b*S,"rem")},T=function(e,t,n,i,o){return Object(r.a)({fontFamily:s,fontWeight:e,fontSize:j(t),lineHeight:n},s===E?{letterSpacing:"".concat((a=i/t,Math.round(1e5*a)/1e5),"em")}:{},o,x);var a},C={h1:T(f,96,1.167,-1.5),h2:T(f,60,1.2,-.5),h3:T(p,48,1.167,0),h4:T(p,34,1.235,.25),h5:T(p,24,1.334,0),h6:T(v,20,1.6,.15),subtitle1:T(p,16,1.75,.15),subtitle2:T(v,14,1.57,.1),body1:T(p,16,1.5,.15),body2:T(p,14,1.43,.15),button:T(v,14,1.75,.4,k),caption:T(p,12,1.66,.4),overline:T(p,12,2.66,1,k)};return Object(a.a)(Object(r.a)({htmlFontSize:b,pxToRem:j,fontFamily:s,fontSize:c,fontWeightLight:f,fontWeightRegular:p,fontWeightMedium:v,fontWeightBold:m},C),_,{clone:!1})}var T=.2,C=.14,A=.12;function P(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(T,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(C,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(A,")")].join(",")}var M=["none",P(0,2,1,-1,0,1,1,0,0,1,3,0),P(0,3,1,-2,0,2,2,0,0,1,5,0),P(0,3,3,-2,0,3,4,0,0,1,8,0),P(0,2,4,-1,0,4,5,0,0,1,10,0),P(0,3,5,-1,0,5,8,0,0,1,14,0),P(0,3,5,-1,0,6,10,0,0,1,18,0),P(0,4,5,-2,0,7,10,1,0,2,16,1),P(0,5,5,-3,0,8,10,1,0,3,14,2),P(0,5,6,-3,0,9,12,1,0,3,16,2),P(0,6,6,-3,0,10,14,1,0,4,18,3),P(0,6,7,-4,0,11,15,1,0,4,20,3),P(0,7,8,-4,0,12,17,2,0,5,22,4),P(0,7,8,-4,0,13,19,2,0,5,24,4),P(0,7,9,-4,0,14,21,2,0,5,26,4),P(0,8,9,-5,0,15,22,2,0,6,28,5),P(0,8,10,-5,0,16,24,2,0,6,30,5),P(0,8,11,-5,0,17,26,2,0,6,32,5),P(0,9,11,-5,0,18,28,2,0,7,34,6),P(0,9,12,-6,0,19,29,2,0,7,36,6),P(0,10,13,-6,0,20,31,3,0,8,38,7),P(0,10,13,-6,0,21,33,3,0,8,40,7),P(0,10,14,-6,0,22,35,3,0,8,42,7),P(0,11,14,-7,0,23,36,3,0,9,44,8),P(0,11,15,-7,0,24,38,3,0,9,46,8)],I=n(485),R={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};var D=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function L(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mixins,n=void 0===t?{}:t,u=e.palette,l=void 0===u?{}:u,f=e.transitions,d=void 0===f?{}:f,p=e.typography,h=void 0===p?{}:p,v=Object(i.a)(e,D);if(e.vars)throw new Error(Object(o.a)(18));var g,m,y=S(l),b=Object(s.a)(e),x=Object(a.a)(b,{mixins:(g=b.breakpoints,m=n,Object(r.a)({toolbar:c(c({minHeight:56},g.up("xs"),{"@media (orientation: landscape)":{minHeight:48}}),g.up("sm"),{minHeight:64})},m)),palette:y,shadows:M.slice(),typography:j(y,h),transitions:Object(I.a)(d),zIndex:Object(r.a)({},R)});x=Object(a.a)(x,v);for(var w=arguments.length,_=new Array(w>1?w-1:0),O=1;O<w;O++)_[O-1]=arguments[O];return x=_.reduce((function(e,t){return Object(a.a)(e,t)}),x)}t.a=L},function(e,t,n){"use strict";var r=n(489),i=n(490),o=(n(683),n(2)),a=n.n(o),s=n(99),u=n.n(s),c=!1,l=n(368),f="unmounted",d="exited",p="entering",h="entered",v=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=d,r.appearStatus=p):i=h:i=t.unmountOnExit||t.mountOnEnter?f:d,r.state={status:i},r.nextCallback=null,r}Object(i.a)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===f?{status:d}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==p&&n!==h&&(t=p):n!==p&&n!==h||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.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=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===p){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:u.a.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===d&&this.setState({status:f})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[u.a.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||c?this.safeSetState({status:h},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:p},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:h},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:u.a.findDOMNode(this);t&&!c?(this.props.onExit(r),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:d},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:d},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.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},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:u.a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===f)return null;var t=this.props,n=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Object(r.a)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return(a.a.createElement(l.a.Provider,{value:null},"function"==typeof n?n(e,i):a.a.cloneElement(a.a.Children.only(n),i)))},t}(a.a.Component);function g(){}v.contextType=l.a,v.propTypes={},v.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:g,onEntering:g,onEntered:g,onExit:g,onExiting:g,onExited:g},v.UNMOUNTED=f,v.EXITED=d,v.ENTERING=p,v.ENTERED=h,v.EXITING="exiting";t.a=v},,,,,,,,,function(e,t,n){e.exports=!n(92)&&!n(81)((function(){return 7!=Object.defineProperty(n(545)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){t.f=n(90)},function(e,t,n){var r=n(161),i=n(148),o=n(418)(!1),a=n(547)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~o(c,n)||c.push(n));return c}},function(e,t,n){var r=n(96),i=n(68),o=n(225);e.exports=n(92)?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),s=a.length,u=0;s>u;)r.f(e,n=a[u++],t[n]);return e}},function(e,t,n){function r(e){return(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})(e)}var i=n(148),o=n(294).f,a={}.toString,s="object"==("undefined"==typeof window?"undefined":r(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"[object Window]"==a.call(e)?function(e){try{return o(e)}catch(e){return s.slice()}}(e):o(i(e))}},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){"use strict";var r=n(129),i=n(80),o=n(552),a=[].slice,s={},u=function(e,t,n){if(!(t in s)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";s[t]=Function("F,a","return new F("+r.join(",")+")")}return s[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=a.call(arguments,1),s=function(){var r=n.concat(a.call(arguments));return this instanceof s?u(t,r.length,r):o(t,r,e)};return i(t.prototype)&&(s.prototype=t.prototype),s}},function(e,t,n){var r=n(74).parseInt,i=n(328).trim,o=n(553),a=/^[-+]?0[xX]/;e.exports=8!==r(o+"08")||22!==r(o+"0x16")?function(e,t){var n=i(String(e),3);return r(n,t>>>0||(a.test(n)?16:10))}:r},function(e,t,n){var r=n(74).parseFloat,i=n(328).trim;e.exports=1/r(n(553)+"-0")!=-1/0?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(186);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=r(e))throw TypeError(t);return+e}},function(e,t,n){var r=n(80),i=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&i(e)===e}},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(556),i=Math.pow,o=i(2,-52),a=i(2,-23),s=i(2,127)*(2-a),u=i(2,-126);e.exports=Math.fround||function(e){var t,n,i=Math.abs(e),c=r(e);return i<u?c*(i/u/a+1/o-1/o)*u*a:(n=(t=(1+a/o)*i)-(t-i))>s||n!=n?c*(1/0):c*n}},function(e,t,n){var r=n(68);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(129),i=n(109),o=n(375),a=n(93);e.exports=function(e,t,n,s,u){r(t);var c=i(e),l=o(c),f=a(c.length),d=u?f-1:0,p=u?-1:1;if(n<2)for(;;){if(d in l){s=l[d],d+=p;break}if(d+=p,u?d<0:f<=d)throw TypeError("Reduce of empty array with no initial value")}for(;u?d>=0:f>d;d+=p)d in l&&(s=t(s,l[d],d,c));return s}},function(e,t,n){"use strict";var r=n(109),i=n(293),o=n(93);e.exports=[].copyWithin||function(e,t){var n=r(this),a=o(n.length),s=i(e,a),u=i(t,a),c=arguments.length>2?arguments[2]:void 0,l=Math.min((void 0===c?a:i(c,a))-u,a-s),f=1;for(u<s&&s<u+l&&(f=-1,u+=l-1,s+=l-1);l-- >0;)u in n?n[s]=n[u]:delete n[s],s+=f,u+=f;return n}},function(e,t,n){"use strict";var r=n(566);n(24)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(e,t,n){n(92)&&"g"!=/./g.flags&&n(96).f(RegExp.prototype,"flags",{configurable:!0,get:n(378)})},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){var r=n(68),i=n(80),o=n(570);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(660),i=n(299);e.exports=n(429)("Map",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(e){var t=r.getEntry(i(this,"Map"),e);return t&&t.v},set:function(e,t){return r.def(i(this,"Map"),0===e?0:e,t)}},r,!0)},function(e,t,n){"use strict";var r=n(96).f,i=n(226),o=n(298),a=n(178),s=n(297),u=n(257),c=n(422),l=n(565),f=n(296),d=n(92),p=n(254).fastKey,h=n(299),v=d?"_s":"size",g=function(e,t){var n,r=p(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,c){var l=e((function(e,r){s(e,l,t,"_i"),e._t=t,e._i=i(null),e._f=void 0,e._l=void 0,e[v]=0,null!=r&&u(r,n,e[c],e)}));return o(l.prototype,{clear:function(){for(var e=h(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[v]=0},delete:function(e){var n=h(this,t),r=g(n,e);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[v]--}return!!r},forEach:function(e){h(this,t);for(var n,r=a(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!g(h(this,t),e)}}),d&&r(l.prototype,"size",{get:function(){return h(this,t)[v]}}),l},def:function(e,t,n){var r,i,o=g(e,t);return o?o.v=n:(e._l=o={i:i=p(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=o),r&&(r.n=o),e[v]++,"F"!==i&&(e._i[i]=o)),e},getEntry:g,setStrong:function(e,t,n){c(e,t,(function(e,n){this._t=h(e,t),this._k=n,this._l=void 0}),(function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?l(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,l(1))}),n?"entries":"values",!n,!0),f(t)}}},function(e,t,n){"use strict";var r=n(660),i=n(299);e.exports=n(429)("Set",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return r.def(i(this,"Set"),e=0===e?0:e,e)}},r)},function(e,t,n){"use strict";var r,i=n(74),o=n(202)(0),a=n(163),s=n(254),u=n(550),c=n(663),l=n(80),f=n(299),d=n(299),p=!i.ActiveXObject&&"ActiveXObject"in i,h=s.getWeak,v=Object.isExtensible,g=c.ufstore,m=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(e){if(l(e)){var t=h(e);return!0===t?g(f(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return c.def(f(this,"WeakMap"),e,t)}},b=e.exports=n(429)("WeakMap",m,y,c,!0,!0);d&&p&&(u((r=c.getConstructor(m,"WeakMap")).prototype,y),s.NEED=!0,o(["delete","has","get","set"],(function(e){var t=b.prototype,n=t[e];a(t,e,(function(t,i){if(l(t)&&!v(t)){this._f||(this._f=new r);var o=this._f[e](t,i);return"set"==e?this:o}return n.call(this,t,i)}))})))},function(e,t,n){"use strict";var r=n(298),i=n(254).getWeak,o=n(68),a=n(80),s=n(297),u=n(257),c=n(202),l=n(161),f=n(299),d=c(5),p=c(6),h=0,v=function(e){return e._l||(e._l=new g)},g=function(){this.a=[]},m=function(e,t){return d(e.a,(function(e){return e[0]===t}))};g.prototype={get:function(e){var t=m(this,e);if(t)return t[1]},has:function(e){return!!m(this,e)},set:function(e,t){var n=m(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=p(this.a,(function(t){return t[0]===e}));return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,o){var c=e((function(e,r){s(e,c,t,"_i"),e._t=t,e._i=h++,e._l=void 0,null!=r&&u(r,n,e[o],e)}));return r(c.prototype,{delete:function(e){if(!a(e))return!1;var n=i(e);return!0===n?v(f(this,t)).delete(e):n&&l(n,this._i)&&delete n[this._i]},has:function(e){if(!a(e))return!1;var n=i(e);return!0===n?v(f(this,t)).has(e):n&&l(n,this._i)}}),c},def:function(e,t,n){var r=i(o(t),!0);return!0===r?v(e).set(t,n):r[e._i]=n,e},ufstore:v}},function(e,t,n){var r=n(187),i=n(93);e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=i(t);if(t!==n)throw RangeError("Wrong length!");return n}},function(e,t,n){"use strict";var r=n(420),i=n(80),o=n(93),a=n(178),s=n(90)("isConcatSpreadable");e.exports=function e(t,n,u,c,l,f,d,p){for(var h,v,g=l,m=0,y=!!d&&a(d,p,3);m<c;){if(m in u){if(h=y?y(u[m],m,n):u[m],v=!1,i(h)&&(v=void 0!==(v=h[s])?!!v:r(h)),v&&f>0)g=e(t,n,h,o(h.length),g,f-1)-1;else{if(g>=9007199254740991)throw TypeError();t[g]=h}g++}m++}return g}},function(e,t,n){var r=n(93),i=n(555),o=n(200);e.exports=function(e,t,n,a){var s=String(o(e)),u=s.length,c=void 0===n?" ":String(n),l=r(t);if(l<=u||""==c)return s;var f=l-u,d=i.call(c,Math.ceil(f/c.length));return d.length>f&&(d=d.slice(0,f)),a?d+s:s+d}},function(e,t,n){var r=n(92),i=n(225),o=n(148),a=n(376).f;e.exports=function(e){return function(t){for(var n,s=o(t),u=i(s),c=u.length,l=0,f=[];c>l;)n=u[l++],r&&!a.call(s,n)||f.push(e?[n,s[n]]:s[n]);return f}}},function(e,t,n){var r=n(255),i=n(669);e.exports=function(e){return function(){if(r(this)!=e)throw TypeError(e+"#toJSON isn't generic");return i(this)}}},function(e,t,n){var r=n(257);e.exports=function(e,t){var n=[];return r(e,!1,n.push,n,t),n}},function(e,t){e.exports=Math.scale||function(e,t,n,r,i){return 0===arguments.length||e!=e||t!=t||n!=n||r!=r||i!=i?NaN:e===1/0||e===-1/0?e:(e-t)*(i-r)/(n-t)+r}},function(e,t,n){var r=n(255),i=n(90)("iterator"),o=n(295);e.exports=n(147).isIterable=function(e){var t=Object(e);return void 0!==t[i]||"@@iterator"in t||o.hasOwnProperty(r(t))}},function(e,t,n){"use strict";var r=n(673),i=n(552),o=n(129);e.exports=function(){for(var e=o(this),t=arguments.length,n=new Array(t),a=0,s=r._,u=!1;t>a;)(n[a]=arguments[a++])===s&&(u=!0);return function(){var r,o=this,a=arguments.length,c=0,l=0;if(!u&&!a)return i(e,n,o);if(r=n.slice(),u)for(;t>c;c++)r[c]===s&&(r[c]=arguments[l++]);for(;a>l;)r.push(arguments[l++]);return i(e,r,o)}}},function(e,t,n){e.exports=n(74)},function(e,t,n){var r=n(96),i=n(164),o=n(572),a=n(148);e.exports=function(e,t){for(var n,s=o(a(t)),u=s.length,c=0;u>c;)r.f(e,n=s[c++],i.f(t,n));return e}},function(e,t,n){"use strict";function r(e,t){return function(){return null}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6H6zm7 7V3.5L18.5 9H13z"}),"InsertDriveFile");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M6 6h12v12H6z"}),"Stop");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12zm8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8z"}),"Block");t.default=a},function(e,t,n){e.exports=n(1180)()},function(e,t,n){"use strict";var r=n(6),i=n(1562),o=n(345),a=n(2),s=n(15),u=n(20),c=n(5),l=Object(s.a)(i.a,{name:"MuiPopper",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),f=a.forwardRef((function(e,t){var n=Object(o.a)(),i=Object(u.a)({props:e,name:"MuiPopper"});return Object(c.jsx)(l,Object(r.a)({direction:null==n?void 0:n.direction},i,{ref:t}))}));t.a=f},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2zm-1 8V6h2v4h3l-4 4-4-4h3zm6 7H7v-2h10v2z"}),"DownloadForOffline");t.default=a},,function(e,t,n){"use strict";var r=n(206),i=Object(r.a)(1,"join");t.a=i},function(e,t,n){"use strict";var r=n(29),i=n(501),o=Object(r.a)(Object(i.a)(!0));t.a=o},function(e,t,n){"use strict";var r=n(2);t.a=function(e){var t=r.useRef({});return r.useEffect((function(){t.current=e})),t.current}},function(e,t,n){"use strict";t.a={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"}},function(e,t,n){"use strict";function r(e){return(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})(e)}var i=n(139);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=function(n,r){return(0,u.jsx)(s.default,(0,o.default)({"data-testid":"".concat(t,"Icon"),ref:r},n,{children:e}))};0;return n.muiName=s.default.muiName,a.memo(a.forwardRef(n))};var o=i(n(203)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(i,a,s):i[a]=e[a]}i.default=e,n&&n.set(e,i);return i}(n(2)),s=i(n(577)),u=n(5);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t){},function(e,t,n){"use strict";n(1548),n(1549);var r=n(311);n.d(t,"QueryClientProvider",(function(){return r.a})),n.d(t,"useQueryClient",(function(){return r.b}));var i=n(695);n.d(t,"useMutation",(function(){return i.a}));var o=n(783);n.d(t,"useQuery",(function(){return o.a}));var a=n(697);n.o(a,"QueryClient")&&n.d(t,"QueryClient",(function(){return a.QueryClient}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(63),i=n(2),o=n.n(i),a=n(79),s=n(39),u=n(475),c=n(311),l=n(513);function f(e,t,n){var i=o.a.useRef(!1),f=o.a.useState(0)[1],d=Object(s.k)(e,t,n),p=Object(c.b)(),h=o.a.useRef();h.current?h.current.setOptions(d):h.current=new u.a(p,d);var v=h.current.getCurrentResult();o.a.useEffect((function(){i.current=!0;var e=h.current.subscribe(a.a.batchCalls((function(){i.current&&f((function(e){return e+1}))})));return function(){i.current=!1,e()}}),[]);var g=o.a.useCallback((function(e,t){h.current.mutate(e,t).catch(s.i)}),[]);if(v.error&&Object(l.a)(void 0,h.current.options.useErrorBoundary,v.error))throw v.error;return Object(r.a)({},v,{mutate:g,mutateAsync:v.mutate})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(63),i=n(182),o=n(39),a=n(79),s=n(214),u=n(183),c=n(235),l=n(141),f=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.options=n,r.trackedProps=[],r.previousSelectError=null,r.bindMethods(),r.setOptions(n),r}Object(i.a)(t,e);var n=t.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),d(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return e=this.currentQuery,!1!==(t=this.options).enabled&&("always"===t.refetchOnReconnect||!1!==t.refetchOnReconnect&&h(e,t));var e,t},n.shouldFetchOnWindowFocus=function(){return e=this.currentQuery,!1!==(t=this.options).enabled&&("always"===t.refetchOnWindowFocus||!1!==t.refetchOnWindowFocus&&h(e,t));var e,t},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(e,t){var n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();var i=this.hasListeners();i&&p(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),!i||this.currentQuery===r&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout(),!i||this.currentQuery===r&&this.options.enabled===n.enabled&&this.options.refetchInterval===n.refetchInterval||this.updateRefetchInterval()},n.getOptimisticResult=function(e){var t=this.client.defaultQueryObserverOptions(e),n=this.client.getQueryCache().build(this.client,t);return this.createResult(n,t)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(e){var t=this,n={};return Object.keys(e).forEach((function(r){Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:function(){var n=r;return t.trackedProps.includes(n)||t.trackedProps.push(n),e[n]}})})),n},n.getNextResult=function(e){var t=this;return new Promise((function(n,r){var i=t.subscribe((function(t){t.isFetching||(i(),t.isError&&(null==e?void 0:e.throwOnError)?r(t.error):n(t))}))}))},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(e){return this.fetch(Object(r.a)({},e,{meta:{refetchPage:null==e?void 0:e.refetchPage}}))},n.fetchOptimistic=function(e){var t=this,n=this.client.defaultQueryObserverOptions(e),r=this.client.getQueryCache().build(this.client,n);return r.fetch().then((function(){return t.createResult(r,n)}))},n.fetch=function(e){var t=this;return this.executeFetch(e).then((function(){return t.updateResult(),t.currentResult}))},n.executeFetch=function(e){this.updateQuery();var t=this.currentQuery.fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(o.i)),t},n.updateStaleTimeout=function(){var e=this;if(this.clearStaleTimeout(),!o.e&&!this.currentResult.isStale&&Object(o.f)(this.options.staleTime)){var t=Object(o.r)(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((function(){e.currentResult.isStale||e.updateResult()}),t)}},n.updateRefetchInterval=function(){var e=this;this.clearRefetchInterval(),!o.e&&!1!==this.options.enabled&&Object(o.f)(this.options.refetchInterval)&&(this.refetchIntervalId=setInterval((function(){(e.options.refetchIntervalInBackground||s.a.isFocused())&&e.executeFetch()}),this.options.refetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval()},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0},n.clearRefetchInterval=function(){clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0},n.createResult=function(e,t){var n,r=this.currentQuery,i=this.options,a=this.currentResult,s=this.currentResultState,u=this.currentResultOptions,l=e!==r,f=l?e.state:this.currentQueryInitialState,v=l?this.currentResult:this.previousQueryResult,g=e.state,m=g.dataUpdatedAt,y=g.error,b=g.errorUpdatedAt,x=g.isFetching,w=g.status,_=!1,S=!1;if(t.optimisticResults){var O=this.hasListeners(),k=!O&&d(e,t),E=O&&p(e,r,t,i);(k||E)&&(x=!0,m||(w="loading"))}if(t.keepPreviousData&&!g.dataUpdateCount&&(null==v?void 0:v.isSuccess)&&"error"!==w)n=v.data,m=v.dataUpdatedAt,w=v.status,_=!0;else if(t.select&&void 0!==g.data)if(a&&g.data===(null==s?void 0:s.data)&&t.select===(null==u?void 0:u.select)&&!this.previousSelectError)n=a.data;else try{n=t.select(g.data),!1!==t.structuralSharing&&(n=Object(o.n)(null==a?void 0:a.data,n)),this.previousSelectError=null}catch(e){Object(c.a)().error(e),y=e,this.previousSelectError=e,b=Date.now(),w="error"}else n=g.data;if(void 0!==t.placeholderData&&void 0===n&&("loading"===w||"idle"===w)){var j;if((null==a?void 0:a.isPlaceholderData)&&t.placeholderData===(null==u?void 0:u.placeholderData))j=a.data;else if(j="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==j)try{j=t.select(j),!1!==t.structuralSharing&&(j=Object(o.n)(null==a?void 0:a.data,j)),this.previousSelectError=null}catch(e){Object(c.a)().error(e),y=e,this.previousSelectError=e,b=Date.now(),w="error"}void 0!==j&&(w="success",n=j,S=!0)}return{status:w,isLoading:"loading"===w,isSuccess:"success"===w,isError:"error"===w,isIdle:"idle"===w,data:n,dataUpdatedAt:m,error:y,errorUpdatedAt:b,failureCount:g.fetchFailureCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>f.dataUpdateCount||g.errorUpdateCount>f.errorUpdateCount,isFetching:x,isLoadingError:"error"===w&&0===g.dataUpdatedAt,isPlaceholderData:S,isPreviousData:_,isRefetchError:"error"===w&&0!==g.dataUpdatedAt,isStale:h(e,t),refetch:this.refetch,remove:this.remove}},n.shouldNotifyListeners=function(e,t){if(!t)return!0;if(e===t)return!1;var n=this.options,r=n.notifyOnChangeProps,i=n.notifyOnChangePropsExclusions;if(!r&&!i)return!0;if("tracked"===r&&!this.trackedProps.length)return!0;var o="tracked"===r?this.trackedProps:r;return Object.keys(e).some((function(n){var r=n,a=e[r]!==t[r],s=null==o?void 0:o.some((function(e){return e===n})),u=null==i?void 0:i.some((function(e){return e===n}));return a&&!u&&(!o||s)}))},n.updateResult=function(e){var t=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!Object(o.p)(this.currentResult,t)){var n={cache:!0};!1!==(null==e?void 0:e.listeners)&&this.shouldNotifyListeners(this.currentResult,t)&&(n.listeners=!0),this.notify(Object(r.a)({},n,e))}},n.updateQuery=function(){var e=this.client.getQueryCache().build(this.client,this.options);if(e!==this.currentQuery){var t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}},n.onQueryUpdate=function(e){var t={};"success"===e.type?t.onSuccess=!0:"error"!==e.type||Object(l.c)(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()},n.notify=function(e){var t=this;a.a.batch((function(){e.onSuccess?(null==t.options.onSuccess||t.options.onSuccess(t.currentResult.data),null==t.options.onSettled||t.options.onSettled(t.currentResult.data,null)):e.onError&&(null==t.options.onError||t.options.onError(t.currentResult.error),null==t.options.onSettled||t.options.onSettled(void 0,t.currentResult.error)),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)})),e.cache&&t.client.getQueryCache().notify({query:t.currentQuery,type:"observerResultsUpdated"})}))},t}(u.a);function d(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||function(e,t){return!1!==t.enabled&&e.state.dataUpdatedAt>0&&("always"===t.refetchOnMount||!1!==t.refetchOnMount&&h(e,t))}(e,t)}function p(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&("error"!==e.state.status||!1===r.enabled)&&h(e,n)}function h(e,t){return e.isStaleByTime(t.staleTime)}},function(e,t){},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(130);function i(e){return encodeURIComponent(e).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){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 u,c=[],l=!1,f=-1;function d(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&p())}function p(){if(!l){var e=s(d);l=!0;for(var t=c.length;t;){for(u=c,c=[];++f<t;)u&&u[f].run();f=-1,t=c.length}u=null,l=!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 v(){}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||l||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=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,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){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},function(e,t,n){"use strict";(function(t){function r(e){return(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})(e)}var i=n(130);e.exports=function(e,n){n=n||new FormData;var o=[];function a(e){return null===e?"":i.isDate(e)?e.toISOString():i.isArrayBuffer(e)||i.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):t.from(e):e}return function e(t,s){if(i.isPlainObject(t)||i.isArray(t)){if(-1!==o.indexOf(t))throw Error("Circular reference detected in "+s);o.push(t),i.forEach(t,(function(t,o){if(!i.isUndefined(t)){var u,c=s?s+"."+o:o;if(t&&!s&&"object"===r(t))if(i.endsWith(o,"{}"))t=JSON.stringify(t);else if(i.endsWith(o,"[]")&&(u=i.toArray(t)))return void u.forEach((function(e){!i.isUndefined(e)&&n.append(c,a(e))}));e(t,c)}})),o.pop()}else n.append(s,a(t))}(e),n}}).call(this,n(329).Buffer)},function(e,t,n){"use strict";var r=n(130),i=n(1244),o=n(1245),a=n(699),s=n(704),u=n(1248),c=n(1249),l=n(701),f=n(330),d=n(436),p=n(1250);e.exports=function(e){return new Promise((function(t,n){var h,v=e.data,g=e.headers,m=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}r.isFormData(v)&&r.isStandardBrowserEnv()&&delete g["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var x=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";g.Authorization="Basic "+btoa(x+":"+w)}var _=s(e.baseURL,e.url);function S(){if(b){var r="getAllResponseHeaders"in b?u(b.getAllResponseHeaders()):null,o={data:m&&"text"!==m&&"json"!==m?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b};i((function(e){t(e),y()}),(function(e){n(e),y()}),o),b=null}}if(b.open(e.method.toUpperCase(),a(_,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=S:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(S)},b.onabort=function(){b&&(n(new f("Request aborted",f.ECONNABORTED,e,b)),b=null)},b.onerror=function(){n(new f("Network Error",f.ERR_NETWORK,e,b,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||l;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new f(t,r.clarifyTimeoutError?f.ETIMEDOUT:f.ECONNABORTED,e,b)),b=null},r.isStandardBrowserEnv()){var O=(e.withCredentials||c(_))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;O&&(g[e.xsrfHeaderName]=O)}"setRequestHeader"in b&&r.forEach(g,(function(e,t){void 0===v&&"content-type"===t.toLowerCase()?delete g[t]:b.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),m&&"json"!==m&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function(e){b&&(n(!e||e&&e.type?new d:e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),v||(v=null);var k=p(_);k&&-1===["http","https","file"].indexOf(k)?n(new f("Unsupported protocol "+k+":",f.ERR_BAD_REQUEST,e)):b.send(v)}))}},function(e,t,n){"use strict";var r=n(1246),i=n(1247);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";var r=n(130);e.exports=function(e,t){t=t||{};var n={};function i(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function o(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return i(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(void 0,t[n])}function u(n){return n in t?i(e[n],t[n]):n in e?i(void 0,e[n]):void 0}var c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||o,i=t(e);r.isUndefined(i)&&t!==u||(n[e]=i)})),n}},function(e,t){e.exports={version:"0.27.2"}},function(e,t,n){var r=n(1256).stringify,i=n(1257);e.exports=function(e){return{parse:i(e),stringify:r}},e.exports.parse=i(),e.exports.stringify=r},function(e,t,n){var r;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){"use strict";var a,s=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,u=Math.ceil,c=Math.floor,l="[BigNumber Error] ",f=l+"Number primitive has more than 15 significant digits: ",d=1e14,p=14,h=9007199254740991,v=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],g=1e7,m=1e9;function y(e){var t=0|e;return e>0||e===t?t:t-1}function b(e){for(var t,n,r=1,i=e.length,o=e[0]+"";r<i;){for(t=e[r++]+"",n=p-t.length;n--;t="0"+t);o+=t}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function x(e,t){var n,r,i=e.c,o=t.c,a=e.s,s=t.s,u=e.e,c=t.e;if(!a||!s)return null;if(n=i&&!i[0],r=o&&!o[0],n||r)return n?r?0:-s:a;if(a!=s)return a;if(n=a<0,r=u==c,!i||!o)return r?0:!i^n?1:-1;if(!r)return u>c^n?1:-1;for(s=(u=i.length)<(c=o.length)?u:c,a=0;a<s;a++)if(i[a]!=o[a])return i[a]>o[a]^n?1:-1;return u==c?0:u>c^n?1:-1}function w(e,t,n,r){if(e<t||e>n||e!==c(e))throw Error(l+(r||"Argument")+("number"==typeof e?e<t||e>n?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function _(e){var t=e.c.length-1;return y(e.e/p)==t&&e.c[t]%2!=0}function S(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function O(e,t,n){var r,i;if(t<0){for(i=n+".";++t;i+=n);e=i+e}else if(++t>(r=e.length)){for(i=n,t-=r;--t;i+=n);e+=i}else t<r&&(e=e.slice(0,t)+"."+e.slice(t));return e}(a=function e(t){var n,r,o,a,k,E,j,T,C,A=W.prototype={constructor:W,toString:null,valueOf:null},P=new W(1),M=20,I=4,R=-7,D=21,L=-1e7,N=1e7,F=!1,B=1,U=0,z={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},V="0123456789abcdefghijklmnopqrstuvwxyz",H=!0;function W(e,t){var n,i,a,u,l,d,v,g,m=this;if(!(m instanceof W))return new W(e,t);if(null==t){if(e&&!0===e._isBigNumber)return m.s=e.s,void(!e.c||e.e>N?m.c=m.e=null:e.e<L?m.c=[m.e=0]:(m.e=e.e,m.c=e.c.slice()));if((d="number"==typeof e)&&0*e==0){if(m.s=1/e<0?(e=-e,-1):1,e===~~e){for(u=0,l=e;l>=10;l/=10,u++);return void(u>N?m.c=m.e=null:(m.e=u,m.c=[e]))}g=String(e)}else{if(!s.test(g=String(e)))return o(m,g,d);m.s=45==g.charCodeAt(0)?(g=g.slice(1),-1):1}(u=g.indexOf("."))>-1&&(g=g.replace(".","")),(l=g.search(/e/i))>0?(u<0&&(u=l),u+=+g.slice(l+1),g=g.substring(0,l)):u<0&&(u=g.length)}else{if(w(t,2,V.length,"Base"),10==t&&H)return K(m=new W(e),M+m.e+1,I);if(g=String(e),d="number"==typeof e){if(0*e!=0)return o(m,g,d,t);if(m.s=1/e<0?(g=g.slice(1),-1):1,W.DEBUG&&g.replace(/^0\.0*|\./,"").length>15)throw Error(f+e)}else m.s=45===g.charCodeAt(0)?(g=g.slice(1),-1):1;for(n=V.slice(0,t),u=l=0,v=g.length;l<v;l++)if(n.indexOf(i=g.charAt(l))<0){if("."==i){if(l>u){u=v;continue}}else if(!a&&(g==g.toUpperCase()&&(g=g.toLowerCase())||g==g.toLowerCase()&&(g=g.toUpperCase()))){a=!0,l=-1,u=0;continue}return o(m,String(e),d,t)}d=!1,(u=(g=r(g,t,10,m.s)).indexOf("."))>-1?g=g.replace(".",""):u=g.length}for(l=0;48===g.charCodeAt(l);l++);for(v=g.length;48===g.charCodeAt(--v););if(g=g.slice(l,++v)){if(v-=l,d&&W.DEBUG&&v>15&&(e>h||e!==c(e)))throw Error(f+m.s*e);if((u=u-l-1)>N)m.c=m.e=null;else if(u<L)m.c=[m.e=0];else{if(m.e=u,m.c=[],l=(u+1)%p,u<0&&(l+=p),l<v){for(l&&m.c.push(+g.slice(0,l)),v-=p;l<v;)m.c.push(+g.slice(l,l+=p));l=p-(g=g.slice(l)).length}else l-=v;for(;l--;g+="0");m.c.push(+g)}}else m.c=[m.e=0]}function q(e,t,n,r){var i,o,a,s,u;if(null==n?n=I:w(n,0,8),!e.c)return e.toString();if(i=e.c[0],a=e.e,null==t)u=b(e.c),u=1==r||2==r&&(a<=R||a>=D)?S(u,a):O(u,a,"0");else if(o=(e=K(new W(e),t,n)).e,s=(u=b(e.c)).length,1==r||2==r&&(t<=o||o<=R)){for(;s<t;u+="0",s++);u=S(u,o)}else if(t-=a,u=O(u,o,"0"),o+1>s){if(--t>0)for(u+=".";t--;u+="0");}else if((t+=o-s)>0)for(o+1==s&&(u+=".");t--;u+="0");return e.s<0&&i?"-"+u:u}function G(e,t){for(var n,r,i=1,o=new W(e[0]);i<e.length;i++)(!(r=new W(e[i])).s||(n=x(o,r))===t||0===n&&o.s===t)&&(o=r);return o}function Y(e,t,n){for(var r=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,r++);return(n=r+n*p-1)>N?e.c=e.e=null:n<L?e.c=[e.e=0]:(e.e=n,e.c=t),e}function K(e,t,n,r){var i,o,a,s,l,f,h,g=e.c,m=v;if(g){e:{for(i=1,s=g[0];s>=10;s/=10,i++);if((o=t-i)<0)o+=p,a=t,l=g[f=0],h=c(l/m[i-a-1]%10);else if((f=u((o+1)/p))>=g.length){if(!r)break e;for(;g.length<=f;g.push(0));l=h=0,i=1,a=(o%=p)-p+1}else{for(l=s=g[f],i=1;s>=10;s/=10,i++);h=(a=(o%=p)-p+i)<0?0:c(l/m[i-a-1]%10)}if(r=r||t<0||null!=g[f+1]||(a<0?l:l%m[i-a-1]),r=n<4?(h||r)&&(0==n||n==(e.s<0?3:2)):h>5||5==h&&(4==n||r||6==n&&(o>0?a>0?l/m[i-a]:0:g[f-1])%10&1||n==(e.s<0?8:7)),t<1||!g[0])return g.length=0,r?(t-=e.e+1,g[0]=m[(p-t%p)%p],e.e=-t||0):g[0]=e.e=0,e;if(0==o?(g.length=f,s=1,f--):(g.length=f+1,s=m[p-o],g[f]=a>0?c(l/m[i-a]%m[a])*s:0),r)for(;;){if(0==f){for(o=1,a=g[0];a>=10;a/=10,o++);for(a=g[0]+=s,s=1;a>=10;a/=10,s++);o!=s&&(e.e++,g[0]==d&&(g[0]=1));break}if(g[f]+=s,g[f]!=d)break;g[f--]=0,s=1}for(o=g.length;0===g[--o];g.pop());}e.e>N?e.c=e.e=null:e.e<L&&(e.c=[e.e=0])}return e}function $(e){var t,n=e.e;return null===n?e.toString():(t=b(e.c),t=n<=R||n>=D?S(t,n):O(t,n,"0"),e.s<0?"-"+t:t)}return W.clone=e,W.ROUND_UP=0,W.ROUND_DOWN=1,W.ROUND_CEIL=2,W.ROUND_FLOOR=3,W.ROUND_HALF_UP=4,W.ROUND_HALF_DOWN=5,W.ROUND_HALF_EVEN=6,W.ROUND_HALF_CEIL=7,W.ROUND_HALF_FLOOR=8,W.EUCLID=9,W.config=W.set=function(e){var t,n;if(null!=e){if("object"!=i(e))throw Error(l+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(w(n=e[t],0,m,t),M=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(w(n=e[t],0,8,t),I=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(w(n[0],-m,0,t),w(n[1],0,m,t),R=n[0],D=n[1]):(w(n,-m,m,t),R=-(D=n<0?-n:n))),e.hasOwnProperty(t="RANGE"))if((n=e[t])&&n.pop)w(n[0],-m,-1,t),w(n[1],1,m,t),L=n[0],N=n[1];else{if(w(n,-m,m,t),!n)throw Error(l+t+" cannot be zero: "+n);L=-(N=n<0?-n:n)}if(e.hasOwnProperty(t="CRYPTO")){if((n=e[t])!==!!n)throw Error(l+t+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw F=!n,Error(l+"crypto unavailable");F=n}else F=n}if(e.hasOwnProperty(t="MODULO_MODE")&&(w(n=e[t],0,9,t),B=n),e.hasOwnProperty(t="POW_PRECISION")&&(w(n=e[t],0,m,t),U=n),e.hasOwnProperty(t="FORMAT")){if("object"!=i(n=e[t]))throw Error(l+t+" not an object: "+n);z=n}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(l+t+" invalid: "+n);H="0123456789"==n.slice(0,10),V=n}}return{DECIMAL_PLACES:M,ROUNDING_MODE:I,EXPONENTIAL_AT:[R,D],RANGE:[L,N],CRYPTO:F,MODULO_MODE:B,POW_PRECISION:U,FORMAT:z,ALPHABET:V}},W.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!W.DEBUG)return!0;var t,n,r=e.c,i=e.e,o=e.s;e:if("[object Array]"=={}.toString.call(r)){if((1===o||-1===o)&&i>=-m&&i<=m&&i===c(i)){if(0===r[0]){if(0===i&&1===r.length)return!0;break e}if((t=(i+1)%p)<1&&(t+=p),String(r[0]).length==t){for(t=0;t<r.length;t++)if((n=r[t])<0||n>=d||n!==c(n))break e;if(0!==n)return!0}}}else if(null===r&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(l+"Invalid BigNumber: "+e)},W.maximum=W.max=function(){return G(arguments,-1)},W.minimum=W.min=function(){return G(arguments,1)},W.random=(a=9007199254740992*Math.random()&2097151?function(){return c(9007199254740992*Math.random())}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,n,r,i,o,s=0,f=[],d=new W(P);if(null==e?e=M:w(e,0,m),i=u(e/p),F)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(i*=2));s<i;)(o=131072*t[s]+(t[s+1]>>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),t[s]=n[0],t[s+1]=n[1]):(f.push(o%1e14),s+=2);s=i/2}else{if(!crypto.randomBytes)throw F=!1,Error(l+"crypto unavailable");for(t=crypto.randomBytes(i*=7);s<i;)(o=281474976710656*(31&t[s])+1099511627776*t[s+1]+4294967296*t[s+2]+16777216*t[s+3]+(t[s+4]<<16)+(t[s+5]<<8)+t[s+6])>=9e15?crypto.randomBytes(7).copy(t,s):(f.push(o%1e14),s+=7);s=i/7}if(!F)for(;s<i;)(o=a())<9e15&&(f[s++]=o%1e14);for(i=f[--s],e%=p,i&&e&&(o=v[p-e],f[s]=c(i/o)*o);0===f[s];f.pop(),s--);if(s<0)f=[r=0];else{for(r=-1;0===f[0];f.splice(0,1),r-=p);for(s=1,o=f[0];o>=10;o/=10,s++);s<p&&(r-=p-s)}return d.e=r,d.c=f,d}),W.sum=function(){for(var e=1,t=arguments,n=new W(t[0]);e<t.length;)n=n.plus(t[e++]);return n},r=function(){function e(e,t,n,r){for(var i,o,a=[0],s=0,u=e.length;s<u;){for(o=a.length;o--;a[o]*=t);for(a[0]+=r.indexOf(e.charAt(s++)),i=0;i<a.length;i++)a[i]>n-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/n|0,a[i]%=n)}return a.reverse()}return function(t,r,i,o,a){var s,u,c,l,f,d,p,h,v=t.indexOf("."),g=M,m=I;for(v>=0&&(l=U,U=0,t=t.replace(".",""),d=(h=new W(r)).pow(t.length-v),U=l,h.c=e(O(b(d.c),d.e,"0"),10,i,"0123456789"),h.e=h.c.length),c=l=(p=e(t,r,i,a?(s=V,"0123456789"):(s="0123456789",V))).length;0==p[--l];p.pop());if(!p[0])return s.charAt(0);if(v<0?--c:(d.c=p,d.e=c,d.s=o,p=(d=n(d,h,g,m,i)).c,f=d.r,c=d.e),v=p[u=c+g+1],l=i/2,f=f||u<0||null!=p[u+1],f=m<4?(null!=v||f)&&(0==m||m==(d.s<0?3:2)):v>l||v==l&&(4==m||f||6==m&&1&p[u-1]||m==(d.s<0?8:7)),u<1||!p[0])t=f?O(s.charAt(1),-g,s.charAt(0)):s.charAt(0);else{if(p.length=u,f)for(--i;++p[--u]>i;)p[u]=0,u||(++c,p=[1].concat(p));for(l=p.length;!p[--l];);for(v=0,t="";v<=l;t+=s.charAt(p[v++]));t=O(t,c,s.charAt(0))}return t}}(),n=function(){function e(e,t,n){var r,i,o,a,s=0,u=e.length,c=t%g,l=t/g|0;for(e=e.slice();u--;)s=((i=c*(o=e[u]%g)+(r=l*o+(a=e[u]/g|0)*c)%g*g+s)/n|0)+(r/g|0)+l*a,e[u]=i%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n]<t[n]?1:0,e[n]=i*r+e[n]-t[n];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(r,i,o,a,s){var u,l,f,h,v,g,m,b,x,w,_,S,O,k,E,j,T,C=r.s==i.s?1:-1,A=r.c,P=i.c;if(!(A&&A[0]&&P&&P[0]))return new W(r.s&&i.s&&(A?!P||A[0]!=P[0]:P)?A&&0==A[0]||!P?0*C:C/0:NaN);for(x=(b=new W(C)).c=[],C=o+(l=r.e-i.e)+1,s||(s=d,l=y(r.e/p)-y(i.e/p),C=C/p|0),f=0;P[f]==(A[f]||0);f++);if(P[f]>(A[f]||0)&&l--,C<0)x.push(1),h=!0;else{for(k=A.length,j=P.length,f=0,C+=2,(v=c(s/(P[0]+1)))>1&&(P=e(P,v,s),A=e(A,v,s),j=P.length,k=A.length),O=j,_=(w=A.slice(0,j)).length;_<j;w[_++]=0);T=P.slice(),T=[0].concat(T),E=P[0],P[1]>=s/2&&E++;do{if(v=0,(u=t(P,w,j,_))<0){if(S=w[0],j!=_&&(S=S*s+(w[1]||0)),(v=c(S/E))>1)for(v>=s&&(v=s-1),m=(g=e(P,v,s)).length,_=w.length;1==t(g,w,m,_);)v--,n(g,j<m?T:P,m,s),m=g.length,u=1;else 0==v&&(u=v=1),m=(g=P.slice()).length;if(m<_&&(g=[0].concat(g)),n(w,g,_,s),_=w.length,-1==u)for(;t(P,w,j,_)<1;)v++,n(w,j<_?T:P,_,s),_=w.length}else 0===u&&(v++,w=[0]);x[f++]=v,w[0]?w[_++]=A[O]||0:(w=[A[O]],_=1)}while((O++<k||null!=w[0])&&C--);h=null!=w[0],x[0]||x.splice(0,1)}if(s==d){for(f=1,C=x[0];C>=10;C/=10,f++);K(b,o+(b.e=f+l*p-1)+1,a,h)}else b.e=l,b.r=+h;return b}}(),k=/^(-?)0([xbo])(?=\w[\w.]*$)/i,E=/^([^.]+)\.$/,j=/^\.([^.]+)$/,T=/^-?(Infinity|NaN)$/,C=/^\s*\+(?=[\w.])|^\s+|\s+$/g,o=function(e,t,n,r){var i,o=n?t:t.replace(C,"");if(T.test(o))e.s=isNaN(o)?null:o<0?-1:1;else{if(!n&&(o=o.replace(k,(function(e,t,n){return i="x"==(n=n.toLowerCase())?16:"b"==n?2:8,r&&r!=i?e:t})),r&&(i=r,o=o.replace(E,"$1").replace(j,"0.$1")),t!=o))return new W(o,i);if(W.DEBUG)throw Error(l+"Not a"+(r?" base "+r:"")+" number: "+t);e.s=null}e.c=e.e=null},A.absoluteValue=A.abs=function(){var e=new W(this);return e.s<0&&(e.s=1),e},A.comparedTo=function(e,t){return x(this,new W(e,t))},A.decimalPlaces=A.dp=function(e,t){var n,r,i,o=this;if(null!=e)return w(e,0,m),null==t?t=I:w(t,0,8),K(new W(o),e+o.e+1,t);if(!(n=o.c))return null;if(r=((i=n.length-1)-y(this.e/p))*p,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},A.dividedBy=A.div=function(e,t){return n(this,new W(e,t),M,I)},A.dividedToIntegerBy=A.idiv=function(e,t){return n(this,new W(e,t),0,1)},A.exponentiatedBy=A.pow=function(e,t){var n,r,i,o,a,s,f,d,h=this;if((e=new W(e)).c&&!e.isInteger())throw Error(l+"Exponent not an integer: "+$(e));if(null!=t&&(t=new W(t)),a=e.e>14,!h.c||!h.c[0]||1==h.c[0]&&!h.e&&1==h.c.length||!e.c||!e.c[0])return d=new W(Math.pow(+$(h),a?e.s*(2-_(e)):+$(e))),t?d.mod(t):d;if(s=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new W(NaN);(r=!s&&h.isInteger()&&t.isInteger())&&(h=h.mod(t))}else{if(e.e>9&&(h.e>0||h.e<-1||(0==h.e?h.c[0]>1||a&&h.c[1]>=24e7:h.c[0]<8e13||a&&h.c[0]<=9999975e7)))return o=h.s<0&&_(e)?-0:0,h.e>-1&&(o=1/o),new W(s?1/o:o);U&&(o=u(U/p+2))}for(a?(n=new W(.5),s&&(e.s=1),f=_(e)):f=(i=Math.abs(+$(e)))%2,d=new W(P);;){if(f){if(!(d=d.times(h)).c)break;o?d.c.length>o&&(d.c.length=o):r&&(d=d.mod(t))}if(i){if(0===(i=c(i/2)))break;f=i%2}else if(K(e=e.times(n),e.e+1,1),e.e>14)f=_(e);else{if(0===(i=+$(e)))break;f=i%2}h=h.times(h),o?h.c&&h.c.length>o&&(h.c.length=o):r&&(h=h.mod(t))}return r?d:(s&&(d=P.div(d)),t?d.mod(t):o?K(d,U,I,void 0):d)},A.integerValue=function(e){var t=new W(this);return null==e?e=I:w(e,0,8),K(t,t.e+1,e)},A.isEqualTo=A.eq=function(e,t){return 0===x(this,new W(e,t))},A.isFinite=function(){return!!this.c},A.isGreaterThan=A.gt=function(e,t){return x(this,new W(e,t))>0},A.isGreaterThanOrEqualTo=A.gte=function(e,t){return 1===(t=x(this,new W(e,t)))||0===t},A.isInteger=function(){return!!this.c&&y(this.e/p)>this.c.length-2},A.isLessThan=A.lt=function(e,t){return x(this,new W(e,t))<0},A.isLessThanOrEqualTo=A.lte=function(e,t){return-1===(t=x(this,new W(e,t)))||0===t},A.isNaN=function(){return!this.s},A.isNegative=function(){return this.s<0},A.isPositive=function(){return this.s>0},A.isZero=function(){return!!this.c&&0==this.c[0]},A.minus=function(e,t){var n,r,i,o,a=this,s=a.s;if(t=(e=new W(e,t)).s,!s||!t)return new W(NaN);if(s!=t)return e.s=-t,a.plus(e);var u=a.e/p,c=e.e/p,l=a.c,f=e.c;if(!u||!c){if(!l||!f)return l?(e.s=-t,e):new W(f?a:NaN);if(!l[0]||!f[0])return f[0]?(e.s=-t,e):new W(l[0]?a:3==I?-0:0)}if(u=y(u),c=y(c),l=l.slice(),s=u-c){for((o=s<0)?(s=-s,i=l):(c=u,i=f),i.reverse(),t=s;t--;i.push(0));i.reverse()}else for(r=(o=(s=l.length)<(t=f.length))?s:t,s=t=0;t<r;t++)if(l[t]!=f[t]){o=l[t]<f[t];break}if(o&&(i=l,l=f,f=i,e.s=-e.s),(t=(r=f.length)-(n=l.length))>0)for(;t--;l[n++]=0);for(t=d-1;r>s;){if(l[--r]<f[r]){for(n=r;n&&!l[--n];l[n]=t);--l[n],l[r]+=d}l[r]-=f[r]}for(;0==l[0];l.splice(0,1),--c);return l[0]?Y(e,l,c):(e.s=3==I?-1:1,e.c=[e.e=0],e)},A.modulo=A.mod=function(e,t){var r,i,o=this;return e=new W(e,t),!o.c||!e.s||e.c&&!e.c[0]?new W(NaN):!e.c||o.c&&!o.c[0]?new W(o):(9==B?(i=e.s,e.s=1,r=n(o,e,0,3),e.s=i,r.s*=i):r=n(o,e,0,B),(e=o.minus(r.times(e))).c[0]||1!=B||(e.s=o.s),e)},A.multipliedBy=A.times=function(e,t){var n,r,i,o,a,s,u,c,l,f,h,v,m,b,x,w=this,_=w.c,S=(e=new W(e,t)).c;if(!(_&&S&&_[0]&&S[0]))return!w.s||!e.s||_&&!_[0]&&!S||S&&!S[0]&&!_?e.c=e.e=e.s=null:(e.s*=w.s,_&&S?(e.c=[0],e.e=0):e.c=e.e=null),e;for(r=y(w.e/p)+y(e.e/p),e.s*=w.s,(u=_.length)<(f=S.length)&&(m=_,_=S,S=m,i=u,u=f,f=i),i=u+f,m=[];i--;m.push(0));for(b=d,x=g,i=f;--i>=0;){for(n=0,h=S[i]%x,v=S[i]/x|0,o=i+(a=u);o>i;)n=((c=h*(c=_[--a]%x)+(s=v*c+(l=_[a]/x|0)*h)%x*x+m[o]+n)/b|0)+(s/x|0)+v*l,m[o--]=c%b;m[o]=n}return n?++r:m.splice(0,1),Y(e,m,r)},A.negated=function(){var e=new W(this);return e.s=-e.s||null,e},A.plus=function(e,t){var n,r=this,i=r.s;if(t=(e=new W(e,t)).s,!i||!t)return new W(NaN);if(i!=t)return e.s=-t,r.minus(e);var o=r.e/p,a=e.e/p,s=r.c,u=e.c;if(!o||!a){if(!s||!u)return new W(i/0);if(!s[0]||!u[0])return u[0]?e:new W(s[0]?r:0*i)}if(o=y(o),a=y(a),s=s.slice(),i=o-a){for(i>0?(a=o,n=u):(i=-i,n=s),n.reverse();i--;n.push(0));n.reverse()}for((i=s.length)-(t=u.length)<0&&(n=u,u=s,s=n,t=i),i=0;t;)i=(s[--t]=s[t]+u[t]+i)/d|0,s[t]=d===s[t]?0:s[t]%d;return i&&(s=[i].concat(s),++a),Y(e,s,a)},A.precision=A.sd=function(e,t){var n,r,i,o=this;if(null!=e&&e!==!!e)return w(e,1,m),null==t?t=I:w(t,0,8),K(new W(o),e,t);if(!(n=o.c))return null;if(r=(i=n.length-1)*p+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return e&&o.e+1>r&&(r=o.e+1),r},A.shiftedBy=function(e){return w(e,-h,h),this.times("1e"+e)},A.squareRoot=A.sqrt=function(){var e,t,r,i,o,a=this,s=a.c,u=a.s,c=a.e,l=M+4,f=new W("0.5");if(1!==u||!s||!s[0])return new W(!u||u<0&&(!s||s[0])?NaN:s?a:1/0);if(0==(u=Math.sqrt(+$(a)))||u==1/0?(((t=b(s)).length+c)%2==0&&(t+="0"),u=Math.sqrt(+t),c=y((c+1)/2)-(c<0||c%2),r=new W(t=u==1/0?"5e"+c:(t=u.toExponential()).slice(0,t.indexOf("e")+1)+c)):r=new W(u+""),r.c[0])for((u=(c=r.e)+l)<3&&(u=0);;)if(o=r,r=f.times(o.plus(n(a,o,l,1))),b(o.c).slice(0,u)===(t=b(r.c)).slice(0,u)){if(r.e<c&&--u,"9999"!=(t=t.slice(u-3,u+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(K(r,r.e+M+2,1),e=!r.times(r).eq(a));break}if(!i&&(K(o,o.e+M+2,0),o.times(o).eq(a))){r=o;break}l+=4,u+=4,i=1}return K(r,r.e+M+1,I,e)},A.toExponential=function(e,t){return null!=e&&(w(e,0,m),e++),q(this,e,t,1)},A.toFixed=function(e,t){return null!=e&&(w(e,0,m),e=e+this.e+1),q(this,e,t)},A.toFormat=function(e,t,n){var r,o=this;if(null==n)null!=e&&t&&"object"==i(t)?(n=t,t=null):e&&"object"==i(e)?(n=e,e=t=null):n=z;else if("object"!=i(n))throw Error(l+"Argument not an object: "+n);if(r=o.toFixed(e,t),o.c){var a,s=r.split("."),u=+n.groupSize,c=+n.secondaryGroupSize,f=n.groupSeparator||"",d=s[0],p=s[1],h=o.s<0,v=h?d.slice(1):d,g=v.length;if(c&&(a=u,u=c,c=a,g-=a),u>0&&g>0){for(a=g%u||u,d=v.substr(0,a);a<g;a+=u)d+=f+v.substr(a,u);c>0&&(d+=f+v.slice(a)),h&&(d="-"+d)}r=p?d+(n.decimalSeparator||"")+((c=+n.fractionGroupSize)?p.replace(new RegExp("\\d{"+c+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):p):d}return(n.prefix||"")+r+(n.suffix||"")},A.toFraction=function(e){var t,r,i,o,a,s,u,c,f,d,h,g,m=this,y=m.c;if(null!=e&&(!(u=new W(e)).isInteger()&&(u.c||1!==u.s)||u.lt(P)))throw Error(l+"Argument "+(u.isInteger()?"out of range: ":"not an integer: ")+$(u));if(!y)return new W(m);for(t=new W(P),f=r=new W(P),i=c=new W(P),g=b(y),a=t.e=g.length-m.e-1,t.c[0]=v[(s=a%p)<0?p+s:s],e=!e||u.comparedTo(t)>0?a>0?t:f:u,s=N,N=1/0,u=new W(g),c.c[0]=0;d=n(u,t,0,1),1!=(o=r.plus(d.times(i))).comparedTo(e);)r=i,i=o,f=c.plus(d.times(o=f)),c=o,t=u.minus(d.times(o=t)),u=o;return o=n(e.minus(r),i,0,1),c=c.plus(o.times(f)),r=r.plus(o.times(i)),c.s=f.s=m.s,h=n(f,i,a*=2,I).minus(m).abs().comparedTo(n(c,r,a,I).minus(m).abs())<1?[f,i]:[c,r],N=s,h},A.toNumber=function(){return+$(this)},A.toPrecision=function(e,t){return null!=e&&w(e,1,m),q(this,e,t,2)},A.toString=function(e){var t,n=this,i=n.s,o=n.e;return null===o?i?(t="Infinity",i<0&&(t="-"+t)):t="NaN":(null==e?t=o<=R||o>=D?S(b(n.c),o):O(b(n.c),o,"0"):10===e&&H?t=O(b((n=K(new W(n),M+o+1,I)).c),n.e,"0"):(w(e,2,V.length,"Base"),t=r(O(b(n.c),o,"0"),10,e,i,!0)),i<0&&n.c[0]&&(t="-"+t)),t},A.valueOf=A.toJSON=function(){return $(this)},A._isBigNumber=!0,null!=t&&W.set(t),W}()).default=a.BigNumber=a,void 0===(r=function(){return a}.call(t,n,t,e))||(e.exports=r)}()},function(e,t,n){"use strict";var r=n(98),i=Object(r.a)(0,-1);t.a=i},function(e,t,n){var r=n(712),i=n(717),o=n(259),a=n(718),s=n(586),u=n(442);e.exports=function(e,t,n){for(var c=-1,l=(t=r(t,e)).length,f=!1;++c<l;){var d=u(t[c]);if(!(f=null!=e&&n(e,d)))break;e=e[d]}return f||++c!=l?f:!!(l=null==e?0:e.length)&&s(l)&&a(d,l)&&(o(e)||i(e))}},function(e,t,n){var r=n(259),i=n(581),o=n(1267),a=n(384);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(189))},function(e,t,n){var r=n(382),i=n(584),o="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",u="[object Proxy]";e.exports=function(e){if(!i(e))return!1;var t=r(e);return t==a||t==s||t==o||t==u}},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){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(1293),i=n(383),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},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(1294);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(1295),i=n(587);e.exports=function(e,t){return e&&r(e,t,i)}},function(e,t,n){(function(e){var r=n(232),i=n(1299),o=t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,u=(s?s.isBuffer:void 0)||i;e.exports=u}).call(this,n(231)(e))},function(e,t,n){var r=n(1300),i=n(1301),o=n(1302),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},function(e,t,n){var r=n(1308),i=n(1338),o=n(1342),a=n(259),s=n(1343);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(439),i=n(1310),o=n(1311),a=n(1312),s=n(1313),u=n(1314);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=u,e.exports=c},function(e,t,n){var r=n(1315),i=n(383);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(1316),i=n(1319),o=n(1320),a=1,s=2;e.exports=function(e,t,n,u,c,l){var f=n&a,d=e.length,p=t.length;if(d!=p&&!(f&&p>d))return!1;var h=l.get(e),v=l.get(t);if(h&&v)return h==t&&v==e;var g=-1,m=!0,y=n&s?new r:void 0;for(l.set(e,t),l.set(t,e);++g<d;){var b=e[g],x=t[g];if(u)var w=f?u(x,b,g,t,e,l):u(b,x,g,e,t,l);if(void 0!==w){if(w)continue;m=!1;break}if(y){if(!i(t,(function(e,t){if(!o(y,t)&&(b===e||c(b,e,n,u,l)))return y.push(t)}))){m=!1;break}}else if(b!==x&&!c(b,x,n,u,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},function(e,t,n){var r=n(584);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(712),i=n(442);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(1346),i=n(1347),o=n(1350),a=RegExp("['’]","g");e.exports=function(e){return function(t){return r(o(i(t).replace(a,"")),e,"")}}},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){"use strict";var r=n(267),i=Object(r.a)(1);t.a=i},function(e,t,n){"use strict";var r=n(29),i=n(479),o=n(269),a=n(143),s=Object(r.a)((function(e){return Object(o.a)(Object(a.a)(e),Object(i.a)(e))}));t.a=s},function(e,t,n){"use strict";var r=n(12),i=n(270),o=Object(r.a)((function(e,t){return Object(i.a)((function(e,t,n){return n}),e,t)}));t.a=o},function(e,t,n){"use strict";var r=n(215),i=n(12),o=Object(i.a)((function(e,t){return Object(r.a)({},e,t)}));t.a=o},function(e,t,n){"use strict";var r=n(34),i=n(174),o=n(480),a=Object(r.a)((function(e,t,n){return Object(o.a)(e,Object(i.a)(t),n)}));t.a=a},function(e,t,n){"use strict";var r=n(12),i=Object(r.a)((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));t.a=i},function(e,t,n){"use strict";var r=n(206),i=Object(r.a)(1,"split");t.a=i},function(e,t,n){"use strict";var r=n(12),i=Object(r.a)((function(e,t){return Number(e)-Number(t)}));t.a=i},function(e,t,n){"use strict";var r=n(29),i=n(85),o=Object(r.a)((function(e){var t=[];for(var n in e)Object(i.a)(n,e)&&(t[t.length]=[n,e[n]]);return t}));t.a=o},function(e,t,n){"use strict";var r=n(12),i=function(e){return{value:e,"fantasy-land/map":function(){return this}}},o=Object(r.a)((function(e,t){return e(i)(t).value}));t.a=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,n=null;return function(){for(var r=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];clearTimeout(n),n=setTimeout((function(){e.apply(r,o)}),t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SensorTabIndex=t.SensorClassName=t.SizeSensorId=void 0;t.SizeSensorId="size-sensor-id";t.SensorClassName="size-sensor-object";t.SensorTabIndex="-1"},function(e,t,n){"use strict";function r(e){return(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})(e)}e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==r(t)&&"object"==r(n)){if(t.constructor!==n.constructor)return!1;var i,o,a;if(Array.isArray(t)){if((i=t.length)!=n.length)return!1;for(o=i;0!=o--;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((i=(a=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(o=i;0!=o--;)if(!Object.prototype.hasOwnProperty.call(n,a[o]))return!1;for(o=i;0!=o--;){var s=a[o];if(!e(t[s],n[s]))return!1}return!0}return t!=t&&n!=n}},function(e,t,n){(function(t){function n(e){return(n="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)}var r="object"==(void 0===t?"undefined":n(t))&&t&&t.Object===Object&&t;e.exports=r}).call(this,n(189))},function(e,t,n){var r=n(747),i=n(386);e.exports=function(e,t){return e&&r(e,t,i)}},function(e,t,n){var r=n(1376)();e.exports=r},function(e,t,n){var r=n(1377),i=n(589),o=n(167),a=n(443),s=n(590),u=n(591),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),l=!n&&i(e),f=!n&&!l&&a(e),d=!n&&!l&&!f&&u(e),p=n||l||f||d,h=p?r(e.length,String):[],v=h.length;for(var g in e)!t&&!c.call(e,g)||p&&("length"==g||f&&("offset"==g||"parent"==g)||d&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,v))||h.push(g);return h}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(444);e.exports=function(e){return"function"==typeof e?e:r}},function(e,t,n){var r=n(301),i=n(597),o=n(204),a="[object Object]",s=Function.prototype,u=Object.prototype,c=s.toString,l=u.hasOwnProperty,f=c.call(Object);e.exports=function(e){if(!o(e)||r(e)!=a)return!1;var t=i(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==f}},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){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(1412),i=n(204);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(1413),i=n(1416),o=n(1417),a=1,s=2;e.exports=function(e,t,n,u,c,l){var f=n&a,d=e.length,p=t.length;if(d!=p&&!(f&&p>d))return!1;var h=l.get(e);if(h&&l.get(t))return h==t;var v=-1,g=!0,m=n&s?new r:void 0;for(l.set(e,t),l.set(t,e);++v<d;){var y=e[v],b=t[v];if(u)var x=f?u(b,y,v,t,e,l):u(y,b,v,e,t,l);if(void 0!==x){if(x)continue;g=!1;break}if(m){if(!i(t,(function(e,t){if(!o(m,t)&&(y===e||c(y,e,n,u,l)))return m.push(t)}))){g=!1;break}}else if(y!==b&&!c(y,b,n,u,l)){g=!1;break}}return l.delete(e),l.delete(t),g}},function(e,t,n){var r=n(190).Uint8Array;e.exports=r},function(e,t,n){var r=n(758),i=n(600),o=n(386);e.exports=function(e){return r(e,o,i)}},function(e,t,n){var r=n(759),i=n(167);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){e.exports=function(){return[]}},function(e,t,n){var r=n(179);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(764),i=n(452);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(167),i=n(601),o=n(1430),a=n(1433);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},function(e,t,n){var r=n(746),i=n(1442)(r);e.exports=i},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(602),i=n(387),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(302),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},function(e,t,n){(function(e){function r(e){return(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})(e)}var i=n(190),o="object"==r(t)&&t&&!t.nodeType&&t,a=o&&"object"==r(e)&&e&&!e.nodeType&&e,s=a&&a.exports===o?i.Buffer:void 0,u=s?s.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=u?u(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(231)(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,n){var r=n(759),i=n(597),o=n(600),a=n(760),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,n){var r=n(603);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(1458),i=n(597),o=n(595);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},function(e,t,n){var r=n(602),i=n(387);e.exports=function(e,t,n){(void 0===n||i(e[t],n))&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},function(e,t,n){var r=n(179),i=n(1489),o=n(1490),a="Expected a function",s=Math.max,u=Math.min;e.exports=function(e,t,n){var c,l,f,d,p,h,v=0,g=!1,m=!1,y=!0;if("function"!=typeof e)throw new TypeError(a);function b(t){var n=c,r=l;return c=l=void 0,v=t,d=e.apply(r,n)}function x(e){var n=e-h;return void 0===h||n>=t||n<0||m&&e-v>=f}function w(){var e=i();if(x(e))return _(e);p=setTimeout(w,function(e){var n=t-(e-h);return m?u(n,f-(e-v)):n}(e))}function _(e){return p=void 0,y&&c?b(e):(c=l=void 0,d)}function S(){var e=i(),n=x(e);if(c=arguments,l=this,h=e,n){if(void 0===p)return function(e){return v=e,p=setTimeout(w,t),g?b(e):d}(h);if(m)return clearTimeout(p),p=setTimeout(w,t),b(h)}return void 0===p&&(p=setTimeout(w,t)),d}return t=o(t)||0,r(n)&&(g=!!n.leading,f=(m="maxWait"in n)?s(o(n.maxWait)||0,t):f,y="trailing"in n?!!n.trailing:y),S.cancel=function(){void 0!==p&&clearTimeout(p),v=0,c=h=l=p=void 0},S.flush=function(){return void 0===p?d:_(i())},S}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorWrap=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=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(2),a=c(o),s=c(n(776)),u=c(n(191));function c(e){return e&&e.__esModule?e:{default:e}}var l=t.ColorWrap=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));return t.handleChange=function(e,n){if(u.default.simpleCheckForValidColor(e)){var r=u.default.toState(e,e.h||t.state.oldHue);t.setState(r),t.props.onChangeComplete&&t.debounce(t.props.onChangeComplete,r,n),t.props.onChange&&t.props.onChange(r,n)}},t.handleSwatchHover=function(e,n){if(u.default.simpleCheckForValidColor(e)){var r=u.default.toState(e,e.h||t.state.oldHue);t.props.onSwatchHover&&t.props.onSwatchHover(r,n)}},t.state=r({},u.default.toState(e.color,0)),t.debounce=(0,s.default)((function(e,t,n){e(t,n)}),100),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,t),i(n,[{key:"render",value:function(){var t={};return this.props.onSwatchHover&&(t.onSwatchHover=this.handleSwatchHover),a.default.createElement(e,r({},this.props,this.state,{onChange:this.handleChange},t))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return r({},u.default.toState(e.color,t.oldHue))}}]),n}(o.PureComponent||o.Component);return t.propTypes=r({},e.propTypes),t.defaultProps=r({},e.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),t};t.default=l},function(e,t,n){"use strict";n.r(t),n.d(t,"red",(function(){return r})),n.d(t,"pink",(function(){return i})),n.d(t,"purple",(function(){return o})),n.d(t,"deepPurple",(function(){return a})),n.d(t,"indigo",(function(){return s})),n.d(t,"blue",(function(){return u})),n.d(t,"lightBlue",(function(){return c})),n.d(t,"cyan",(function(){return l})),n.d(t,"teal",(function(){return f})),n.d(t,"green",(function(){return d})),n.d(t,"lightGreen",(function(){return p})),n.d(t,"lime",(function(){return h})),n.d(t,"yellow",(function(){return v})),n.d(t,"amber",(function(){return g})),n.d(t,"orange",(function(){return m})),n.d(t,"deepOrange",(function(){return y})),n.d(t,"brown",(function(){return b})),n.d(t,"grey",(function(){return x})),n.d(t,"blueGrey",(function(){return w})),n.d(t,"darkText",(function(){return _})),n.d(t,"lightText",(function(){return S})),n.d(t,"darkIcons",(function(){return O})),n.d(t,"lightIcons",(function(){return k})),n.d(t,"white",(function(){return E})),n.d(t,"black",(function(){return j}));var r={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},i={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},o={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},a={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},s={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},u={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},c={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},l={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},f={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},d={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},p={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},h={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},v={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},g={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},m={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},y={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},b={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},x={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121"},w={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},_={primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",dividers:"rgba(0, 0, 0, 0.12)"},S={primary:"rgba(255, 255, 255, 1)",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",dividers:"rgba(255, 255, 255, 0.12)"},O={active:"rgba(0, 0, 0, 0.54)",inactive:"rgba(0, 0, 0, 0.38)"},k={active:"rgba(255, 255, 255, 1)",inactive:"rgba(255, 255, 255, 0.5)"},E="#ffffff",j="#000000";t.default={red:r,pink:i,purple:o,deepPurple:a,indigo:s,blue:u,lightBlue:c,cyan:l,teal:f,green:d,lightGreen:p,lime:h,yellow:v,amber:g,orange:m,deepOrange:y,brown:b,grey:x,blueGrey:w,darkText:_,lightText:S,darkIcons:O,lightIcons:k,white:E,black:j}},,,,function(e,t,n){"use strict";var r=n(63),i=n(39),o=n(483),a=n(474),s=n(214),u=n(281),c=n(79),l=n(141);function f(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function d(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}n.d(t,"a",(function(){return p}));var p=function(){function e(e){void 0===e&&(e={}),this.queryCache=e.queryCache||new o.a,this.mutationCache=e.mutationCache||new a.a,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var e=this;this.unsubscribeFocus=s.a.subscribe((function(){s.a.isFocused()&&u.a.isOnline()&&(e.mutationCache.onFocus(),e.queryCache.onFocus())})),this.unsubscribeOnline=u.a.subscribe((function(){s.a.isFocused()&&u.a.isOnline()&&(e.mutationCache.onOnline(),e.queryCache.onOnline())}))},t.unmount=function(){var e,t;null==(e=this.unsubscribeFocus)||e.call(this),null==(t=this.unsubscribeOnline)||t.call(this)},t.isFetching=function(e,t){var n=Object(i.j)(e,t)[0];return n.fetching=!0,this.queryCache.findAll(n).length},t.isMutating=function(e){return this.mutationCache.findAll(Object(r.a)({},e,{fetching:!0})).length},t.getQueryData=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data},t.getQueriesData=function(e){return this.getQueryCache().findAll(e).map((function(e){return[e.queryKey,e.state.data]}))},t.setQueryData=function(e,t,n){var r=Object(i.l)(e),o=this.defaultQueryOptions(r);return this.queryCache.build(this,o).setData(t,n)},t.setQueriesData=function(e,t,n){var r=this;return c.a.batch((function(){return r.getQueryCache().findAll(e).map((function(e){var i=e.queryKey;return[i,r.setQueryData(i,t,n)]}))}))},t.getQueryState=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state},t.removeQueries=function(e,t){var n=Object(i.j)(e,t)[0],r=this.queryCache;c.a.batch((function(){r.findAll(n).forEach((function(e){r.remove(e)}))}))},t.resetQueries=function(e,t,n){var o=this,a=Object(i.j)(e,t,n),s=a[0],u=a[1],l=this.queryCache,f=Object(r.a)({},s,{active:!0});return c.a.batch((function(){return l.findAll(s).forEach((function(e){e.reset()})),o.refetchQueries(f,u)}))},t.cancelQueries=function(e,t,n){var r=this,o=Object(i.j)(e,t,n),a=o[0],s=o[1],u=void 0===s?{}:s;void 0===u.revert&&(u.revert=!0);var l=c.a.batch((function(){return r.queryCache.findAll(a).map((function(e){return e.cancel(u)}))}));return Promise.all(l).then(i.i).catch(i.i)},t.invalidateQueries=function(e,t,n){var o,a,s,u=this,l=Object(i.j)(e,t,n),f=l[0],d=l[1],p=Object(r.a)({},f,{active:null==(o=null!=(a=f.refetchActive)?a:f.active)||o,inactive:null!=(s=f.refetchInactive)&&s});return c.a.batch((function(){return u.queryCache.findAll(f).forEach((function(e){e.invalidate()})),u.refetchQueries(p,d)}))},t.refetchQueries=function(e,t,n){var r=this,o=Object(i.j)(e,t,n),a=o[0],s=o[1],u=c.a.batch((function(){return r.queryCache.findAll(a).map((function(e){return e.fetch(void 0,{meta:{refetchPage:null==a?void 0:a.refetchPage}})}))})),l=Promise.all(u).then(i.i);return(null==s?void 0:s.throwOnError)||(l=l.catch(i.i)),l},t.fetchQuery=function(e,t,n){var r=Object(i.l)(e,t,n),o=this.defaultQueryOptions(r);void 0===o.retry&&(o.retry=!1);var a=this.queryCache.build(this,o);return a.isStaleByTime(o.staleTime)?a.fetch(o):Promise.resolve(a.state.data)},t.prefetchQuery=function(e,t,n){return this.fetchQuery(e,t,n).then(i.i).catch(i.i)},t.fetchInfiniteQuery=function(e,t,n){var r=Object(i.l)(e,t,n);return r.behavior={onFetch:function(e){e.fetchFn=function(){var t,n,r,i,o,a,s,u=null==(t=e.fetchOptions)?void 0:null==(n=t.meta)?void 0:n.refetchPage,c=null==(r=e.fetchOptions)?void 0:null==(i=r.meta)?void 0:i.fetchMore,p=null==c?void 0:c.pageParam,h="forward"===(null==c?void 0:c.direction),v="backward"===(null==c?void 0:c.direction),g=(null==(o=e.state.data)?void 0:o.pages)||[],m=(null==(a=e.state.data)?void 0:a.pageParams)||[],y=m,b=!1,x=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},w=function(e,t,n,r){return y=r?[t].concat(y):[].concat(y,[t]),r?[n].concat(e):[].concat(e,[n])},_=function(t,n,r,i){if(b)return Promise.reject("Cancelled");if(void 0===r&&!n&&t.length)return Promise.resolve(t);var o={queryKey:e.queryKey,pageParam:r},a=x(o),s=Promise.resolve(a).then((function(e){return w(t,r,e,i)}));return Object(l.b)(a)&&(s.cancel=a.cancel),s};if(g.length)if(h){var S=void 0!==p,O=S?p:f(e.options,g);s=_(g,S,O)}else if(v){var k=void 0!==p,E=k?p:d(e.options,g);s=_(g,k,E,!0)}else!function(){y=[];var t=void 0===e.options.getNextPageParam,n=!u||!g[0]||u(g[0],0,g);s=n?_([],t,m[0]):Promise.resolve(w([],m[0],g[0]));for(var r=function(n){s=s.then((function(r){if(!u||!g[n]||u(g[n],n,g)){var i=t?m[n]:f(e.options,r);return _(r,t,i)}return Promise.resolve(w(r,m[n],g[n]))}))},i=1;i<g.length;i++)r(i)}();else s=_([]);var j=s.then((function(e){return{pages:e,pageParams:y}}));return j.cancel=function(){b=!0,Object(l.b)(s)&&s.cancel()},j}}},this.fetchQuery(r)},t.prefetchInfiniteQuery=function(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(i.i).catch(i.i)},t.cancelMutations=function(){var e=this,t=c.a.batch((function(){return e.mutationCache.getAll().map((function(e){return e.cancel()}))}));return Promise.all(t).then(i.i).catch(i.i)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(e){return this.mutationCache.build(this,e).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(e){this.defaultOptions=e},t.setQueryDefaults=function(e,t){var n=this.queryDefaults.find((function(t){return Object(i.c)(e)===Object(i.c)(t.queryKey)}));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})},t.getQueryDefaults=function(e){var t;return e?null==(t=this.queryDefaults.find((function(t){return Object(i.m)(e,t.queryKey)})))?void 0:t.defaultOptions:void 0},t.setMutationDefaults=function(e,t){var n=this.mutationDefaults.find((function(t){return Object(i.c)(e)===Object(i.c)(t.mutationKey)}));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})},t.getMutationDefaults=function(e){var t;return e?null==(t=this.mutationDefaults.find((function(t){return Object(i.m)(e,t.mutationKey)})))?void 0:t.defaultOptions:void 0},t.defaultQueryOptions=function(e){if(null==e?void 0:e._defaulted)return e;var t=Object(r.a)({},this.defaultOptions.queries,this.getQueryDefaults(null==e?void 0:e.queryKey),e,{_defaulted:!0});return!t.queryHash&&t.queryKey&&(t.queryHash=Object(i.d)(t.queryKey,t)),t},t.defaultQueryObserverOptions=function(e){return this.defaultQueryOptions(e)},t.defaultMutationOptions=function(e){return(null==e?void 0:e._defaulted)?e:Object(r.a)({},this.defaultOptions.mutations,this.getMutationDefaults(null==e?void 0:e.mutationKey),e,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}()},function(e,t,n){"use strict";var r=n(696),i=n(39),o=n(2),a=n.n(o),s=n(79),u=n(390),c=n(311),l=n(513);function f(e,t,n){return function(e,t){var n=a.a.useRef(!1),r=a.a.useState(0)[1],i=Object(c.b)(),o=Object(u.a)(),f=i.defaultQueryObserverOptions(e);f.optimisticResults=!0,f.onError&&(f.onError=s.a.batchCalls(f.onError)),f.onSuccess&&(f.onSuccess=s.a.batchCalls(f.onSuccess)),f.onSettled&&(f.onSettled=s.a.batchCalls(f.onSettled)),f.suspense&&"number"!=typeof f.staleTime&&(f.staleTime=1e3),(f.suspense||f.useErrorBoundary)&&(o.isReset()||(f.retryOnMount=!1));var d=a.a.useState((function(){return new t(i,f)}))[0],p=d.getOptimisticResult(f);if(a.a.useEffect((function(){n.current=!0,o.clearReset();var e=d.subscribe(s.a.batchCalls((function(){n.current&&r((function(e){return e+1}))})));return d.updateResult(),function(){n.current=!1,e()}}),[o,d]),a.a.useEffect((function(){d.setOptions(f,{listeners:!1})}),[f,d]),f.suspense&&p.isLoading)throw d.fetchOptimistic(f).then((function(e){var t=e.data;null==f.onSuccess||f.onSuccess(t),null==f.onSettled||f.onSettled(t,null)})).catch((function(e){o.clearReset(),null==f.onError||f.onError(e),null==f.onSettled||f.onSettled(void 0,e)}));if(p.isError&&!p.isFetching&&Object(l.a)(f.suspense,f.useErrorBoundary,p.error))throw p.error;return"tracked"===f.notifyOnChangeProps&&(p=d.trackResult(p)),p}(Object(i.l)(e,t,n),r.a)}n.d(t,"a",(function(){return f}))},function(e,t,n){"use strict";var r=n(12),i=n(70),o=n(142),a=n(54),s=function(){function e(e,t){this.xf=t,this.f=e,this.any=!1}return e.prototype["@@transducer/init"]=a.a.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=Object(o.a)(this.xf["@@transducer/step"](e,!0))),e},e}(),u=Object(r.a)((function(e,t){return new s(e,t)})),c=Object(r.a)(Object(i.a)(["any"],u,(function(e,t){for(var n=0;n<t.length;){if(e(t[n]))return!0;n+=1}return!1})));t.a=c},function(e,t,n){"use strict";t.a={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"}},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56zm2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z"}),"Language");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4z"}),"Videocam");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"m21 6.5-4 4V7c0-.55-.45-1-1-1H9.82L21 17.18V6.5zM3.27 2 2 3.27 4.73 6H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.21 0 .39-.08.54-.18L19.73 21 21 19.73 3.27 2z"}),"VideocamOff");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92z"}),"Share");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"InfoOutlined");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM7 13.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm5 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm5 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"}),"Pending");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"m7 14 5-5 5 5z"}),"ArrowDropUp");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"}),"Save");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M10 9V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z"}),"Reply");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}),"ArrowBack");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"KeyboardArrowRight");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4 6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2h7zm-1 7h5.5L14 6.5V12z"}),"FileCopy");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M18 10.48V6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4.48l4 3.98v-11l-4 3.98zM12 12l3 1.73-1 1.73-3-1.73V17H9v-3.27l-3 1.73-1-1.73L8 12l-3-1.73 1-1.73 3 1.73V7h2v3.27l3-1.73 1 1.73L12 12z"}),"EmergencyRecording");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}),"Error");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M20.01 15.38c-1.23 0-2.42-.2-3.53-.56-.35-.12-.74-.03-1.01.24l-1.57 1.97c-2.83-1.35-5.48-3.9-6.89-6.83l1.95-1.66c.27-.28.35-.67.24-1.02-.37-1.11-.56-2.3-.56-3.53 0-.54-.45-.99-.99-.99H4.19C3.65 3 3 3.24 3 3.99 3 13.28 10.73 21 20.01 21c.71 0 .99-.63.99-1.18v-3.45c0-.54-.45-.99-.99-.99z"}),"Call");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M21 3 3 10.53v.98l6.84 2.65L12.48 21h.98L21 3z"}),"NearMe");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)([(0,o.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"},"0"),(0,o.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8v10zm-2-8h-2v2h2v-2zm0 4h-2v2h2v-2z"}),"Business");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M20 5H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-9 3h2v2h-2V8zm0 3h2v2h-2v-2zM8 8h2v2H8V8zm0 3h2v2H8v-2zm-1 2H5v-2h2v2zm0-3H5V8h2v2zm9 7H8v-2h8v2zm0-4h-2v-2h2v2zm0-3h-2V8h2v2zm3 3h-2v-2h2v2zm0-3h-2V8h2v2z"}),"Keyboard");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M4 8h4V4H4v4zm6 12h4v-4h-4v4zm-6 0h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4h-4zm-6 4h4V4h-4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z"}),"Apps");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"m17 16-4-4V8.82C14.16 8.4 15 7.3 15 6c0-1.66-1.34-3-3-3S9 4.34 9 6c0 1.3.84 2.4 2 2.82V12l-4 4H3v5h5v-3.05l4-4.2 4 4.2V21h5v-5h-4z"}),"DeviceHub");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1c.61 0 1.1-.49 1.1-1.1s-.49-1.1-1.1-1.1zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm2.19 12.19L6 18l3.81-8.19L18 6l-3.81 8.19z"}),"Explore");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{fillRule:"evenodd",d:"m9 17 3-2.94c-.39-.04-.68-.06-1-.06-2.67 0-8 1.34-8 4v2h9l-3-3zm2-5c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m4.47 8.5L12 17l1.4-1.41 2.07 2.08 5.13-5.17 1.4 1.41z"}),"HowToReg");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"}),"People");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-6 0h-4V4h4v2z"}),"Work");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M3 17v2h6v-2H3zM3 5v2h10V5H3zm10 16v-2h8v-2h-8v-2h-2v6h2zM7 9v2H3v2h4v2h2V9H7zm14 4v-2H11v2h10zm-6-4h2V7h4V5h-4V3h-2v6z"}),"Tune");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}),"Settings");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm2 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z"}),"Assignment");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z"}),"Backup");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7 1.49 0 2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5S21.88 11 20.5 11z"}),"Extension");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M3 5v14c0 1.1.89 2 2 2h6V3H5c-1.11 0-2 .9-2 2zm16-2h-6v8h8V5c0-1.1-.9-2-2-2zm-6 18h6c1.1 0 2-.9 2-2v-6h-8v8z"}),"AutoAwesomeMosaic");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5H9z"}),"NorthEast");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M5 15h2V8.41L18.59 20 20 18.59 8.41 7H15V5H5v10z"}),"NorthWest");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M19 9h-2v6.59L5.41 4 4 5.41 15.59 17H9v2h10V9z"}),"SouthEast");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M15 19v-2H8.41L20 5.41 18.59 4 7 15.59V9H5v10h10z"}),"SouthWest");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"}),"Folder");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M18 17H6v-2h12v2zm0-4H6v-2h12v2zm0-4H6V7h12v2zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2 4.5 3.5 3 2v20z"}),"Receipt");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M11.5 2C6.81 2 3 5.81 3 10.5S6.81 19 11.5 19h.5v3c4.86-2.34 8-7 8-11.5C20 5.81 16.19 2 11.5 2zm1 14.5h-2v-2h2v2zm0-3.5h-2c0-3.25 3-3 3-5 0-1.1-.9-2-2-2s-2 .9-2 2h-2c0-2.21 1.79-4 4-4s4 1.79 4 4c0 2.5-3 2.75-3 5z"}),"ContactSupport");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"}),"InsertLink");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42zM10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3v-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5z"}),"FormatBold");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z"}),"FormatItalic");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-1 8h-3v3h-2v-3h-3v-2h3V9h2v3h3v2z"}),"CreateNewFolder");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVert");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M21 6h-7.59l3.29-3.29L16 2l-4 4-4-4-.71.71L10.59 6H3c-1.1 0-2 .89-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.11-.9-2-2-2zm0 14H3V8h18v12zM9 10v8l7-4z"}),"LiveTv");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M14 12c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2zm-2-9c-4.97 0-9 4.03-9 9H0l4 4 4-4H5c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.51 0-2.91-.49-4.06-1.3l-1.42 1.44C8.04 20.3 9.94 21 12 21c4.97 0 9-4.03 9-9s-4.03-9-9-9z"}),"SettingsBackupRestore");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"DragIndicator");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"}),"Room");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"}),"Help");t.default=a},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M4 18h2.5v-2.5H4V18zm0-4.75h2.5v-2.5H4v2.5zM4 8.5h2.5V6H4v2.5zM17.5 6v2.5H20V6h-2.5zM13 8.5h2.5V6H13v2.5zm4.5 9.5H20v-2.5h-2.5V18zm0-4.75H20v-2.5h-2.5v2.5zM8.5 18H11v-2.5H8.5V18zm4.5 0h2.5v-2.5H13V18zM8.5 8.5H11V6H8.5v2.5zm4.5 4.75h2.5v-2.5H13v2.5zm-4.5 0H11v-2.5H8.5v2.5z"}),"ViewCompact");t.default=a},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(138),i=n(152);function o(e){return Object(r.a)("MuiLinearProgress",e)}var a=Object(i.a)("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);t.a=a},function(e,t,n){"use strict";var r=n(1183).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},function(e,t,n){e.exports={parse:n(1187),stringify:n(1190)}},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(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)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(138),i=n(152);function o(e){return Object(r.a)("MuiDivider",e)}var a=Object(i.a)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);t.a=a},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(138),i=n(152);function o(e){return Object(r.a)("MuiListItemIcon",e)}var a=Object(i.a)("MuiListItemIcon",["root","alignItemsFlexStart"]);t.a=a},function(e,t){ /*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh <https://feross.org> * @license MIT */ e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},function(e,t){ /*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh <https://feross.org> * @license MIT */ e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},function(e,t,n){var r=n(1197);e.exports=function(e,t){var n,i=null;if(!e||"string"!=typeof e)return i;for(var o,a,s=r(e),u="function"==typeof t,c=0,l=s.length;c<l;c++)o=(n=s[c]).property,a=n.value,u?t(o,a,n):a&&(i||(i={}),i[o]=a);return i}},function(e,t,n){"use strict";function r(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===i(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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)}var o=n(139);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createFilterOptions",{enumerable:!0,get:function(){return d.createFilterOptions}}),t.default=void 0;var a,s,u=o(n(380)),c=o(n(203)),l=M(n(2)),f=(o(n(22)),o(n(17))),d=(n(27),n(19)),p=n(69),h=o(n(576)),v=o(n(1547)),g=o(n(229)),m=o(n(258)),y=o(n(1202)),b=o(n(1203)),x=o(n(1204)),w=o(n(1205)),_=o(n(1206)),S=o(n(1207)),O=o(n(1208)),k=o(n(1209)),E=o(n(1225)),j=M(n(1226)),T=o(n(1227)),C=n(5),A=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","value"];function P(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(P=function(e){return e?n:t})(e)}function M(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=P(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}var I=(0,E.default)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState,i=n.fullWidth,o=n.hasClearIcon,a=n.hasPopupIcon,s=n.inputFocused,u=n.size;return[r({},"& .".concat(j.default.tag),t.tag),r({},"& .".concat(j.default.tag),t["tagSize".concat((0,T.default)(u))]),r({},"& .".concat(j.default.inputRoot),t.inputRoot),r({},"& .".concat(j.default.input),t.input),r({},"& .".concat(j.default.input),s&&t.inputFocused),t.root,i&&t.fullWidth,a&&t.hasPopupIcon,o&&t.hasClearIcon]}})((function(e){var t=e.ownerState;return(0,c.default)(r(r({},"&.".concat(j.default.focused," .").concat(j.default.clearIndicator),{visibility:"visible"}),"@media (pointer: fine)",r({},"&:hover .".concat(j.default.clearIndicator),{visibility:"visible"})),t.fullWidth&&{width:"100%"},r(r(r(r(r(r(r(r(r(r({},"& .".concat(j.default.tag),(0,c.default)({margin:3,maxWidth:"calc(100% - 6px)"},"small"===t.size&&{margin:2,maxWidth:"calc(100% - 4px)"})),"& .".concat(j.default.inputRoot),r(r(r({flexWrap:"wrap"},".".concat(j.default.hasPopupIcon,"&, .").concat(j.default.hasClearIcon,"&"),{paddingRight:30}),".".concat(j.default.hasPopupIcon,".").concat(j.default.hasClearIcon,"&"),{paddingRight:56}),"& .".concat(j.default.input),{width:0,minWidth:30})),"& .".concat(b.default.root),{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}}),"& .".concat(b.default.root,".").concat(x.default.sizeSmall),r({},"& .".concat(b.default.input),{padding:"2px 4px 3px 0"})),"& .".concat(w.default.root),r(r(r(r({padding:9},".".concat(j.default.hasPopupIcon,"&, .").concat(j.default.hasClearIcon,"&"),{paddingRight:39}),".".concat(j.default.hasPopupIcon,".").concat(j.default.hasClearIcon,"&"),{paddingRight:65}),"& .".concat(j.default.input),{padding:"7.5px 4px 7.5px 6px"}),"& .".concat(j.default.endAdornment),{right:9})),"& .".concat(w.default.root,".").concat(x.default.sizeSmall),r({paddingTop:6,paddingBottom:6,paddingLeft:6},"& .".concat(j.default.input),{padding:"2.5px 4px 2.5px 6px"})),"& .".concat(_.default.root),r(r(r(r({paddingTop:19,paddingLeft:8},".".concat(j.default.hasPopupIcon,"&, .").concat(j.default.hasClearIcon,"&"),{paddingRight:39}),".".concat(j.default.hasPopupIcon,".").concat(j.default.hasClearIcon,"&"),{paddingRight:65}),"& .".concat(_.default.input),{padding:"7px 4px"}),"& .".concat(j.default.endAdornment),{right:9})),"& .".concat(_.default.root,".").concat(x.default.sizeSmall),r({paddingBottom:1},"& .".concat(_.default.input),{padding:"2.5px 4px"})),"& .".concat(x.default.hiddenLabel),{paddingTop:8}),"& .".concat(j.default.input),(0,c.default)({flexGrow:1,textOverflow:"ellipsis",opacity:0},t.inputFocused&&{opacity:1})))})),R=(0,E.default)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:function(e,t){return t.endAdornment}})({position:"absolute",right:0,top:"calc(50% - 14px)"}),D=(0,E.default)(m.default,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:function(e,t){return t.clearIndicator}})({marginRight:-2,padding:4,visibility:"hidden"}),L=(0,E.default)(m.default,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:function(e,t){var n=e.ownerState;return(0,c.default)({},t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen)}})((function(e){var t=e.ownerState;return(0,c.default)({padding:2,marginRight:-2},t.popupOpen&&{transform:"rotate(180deg)"})})),N=(0,E.default)(h.default,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:function(e,t){var n=e.ownerState;return[r({},"& .".concat(j.default.option),t.option),t.popper,n.disablePortal&&t.popperDisablePortal]}})((function(e){var t=e.theme,n=e.ownerState;return(0,c.default)({zIndex:(t.vars||t).zIndex.modal},n.disablePortal&&{position:"absolute"})})),F=(0,E.default)(g.default,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:function(e,t){return t.paper}})((function(e){var t=e.theme;return(0,c.default)({},t.typography.body1,{overflow:"auto"})})),B=(0,E.default)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:function(e,t){return t.loading}})((function(e){var t=e.theme;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),U=(0,E.default)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:function(e,t){return t.noOptions}})((function(e){var t=e.theme;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),z=(0,E.default)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:function(e,t){return t.listbox}})((function(e){var t=e.theme;return r({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto"},"& .".concat(j.default.option),r(r(r(r(r({minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16},t.breakpoints.up("sm"),{minHeight:"auto"}),"&.".concat(j.default.focused),{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}),'&[aria-disabled="true"]',{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"}),"&.".concat(j.default.focusVisible),{backgroundColor:(t.vars||t).palette.action.focus}),'&[aria-selected="true"]',r(r({backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,p.alpha)(t.palette.primary.main,t.palette.action.selectedOpacity)},"&.".concat(j.default.focused),{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,p.alpha)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}}),"&.".concat(j.default.focusVisible),{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,p.alpha)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)})))})),V=(0,E.default)(v.default,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:function(e,t){return t.groupLabel}})((function(e){var t=e.theme;return{backgroundColor:(t.vars||t).palette.background.paper,top:-8}})),H=(0,E.default)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:function(e,t){return t.groupUl}})(r({padding:0},"& .".concat(j.default.option),{paddingLeft:24})),W=l.forwardRef((function(e,t){var n,r,i,o,p,v=(0,k.default)({props:e,name:"MuiAutocomplete"}),m=(v.autoComplete,v.autoHighlight,v.autoSelect,v.blurOnSelect,v.ChipProps),b=v.className,x=v.clearIcon,w=void 0===x?a||(a=(0,C.jsx)(S.default,{fontSize:"small"})):x,_=v.clearOnBlur,E=(void 0===_&&v.freeSolo,v.clearOnEscape,v.clearText),P=void 0===E?"Clear":E,M=v.closeText,W=void 0===M?"Close":M,q=v.componentsProps,G=void 0===q?{}:q,Y=v.defaultValue,K=(void 0===Y&&v.multiple,v.disableClearable),$=void 0!==K&&K,X=(v.disableCloseOnSelect,v.disabled),Q=void 0!==X&&X,Z=(v.disabledItemsFocusable,v.disableListWrap,v.disablePortal),J=void 0!==Z&&Z,ee=(v.filterSelectedOptions,v.forcePopupIcon),te=void 0===ee?"auto":ee,ne=v.freeSolo,re=void 0!==ne&&ne,ie=v.fullWidth,oe=void 0!==ie&&ie,ae=v.getLimitTagsText,se=void 0===ae?function(e){return"+".concat(e)}:ae,ue=v.getOptionLabel,ce=void 0===ue?function(e){var t;return null!=(t=e.label)?t:e}:ue,le=v.groupBy,fe=v.handleHomeEndKeys,de=(void 0===fe&&v.freeSolo,v.includeInputInList,v.limitTags),pe=void 0===de?-1:de,he=v.ListboxComponent,ve=void 0===he?"ul":he,ge=v.ListboxProps,me=v.loading,ye=void 0!==me&&me,be=v.loadingText,xe=void 0===be?"Loading…":be,we=v.multiple,_e=void 0!==we&&we,Se=v.noOptionsText,Oe=void 0===Se?"No options":Se,ke=(v.openOnFocus,v.openText),Ee=void 0===ke?"Open":ke,je=v.PaperComponent,Te=void 0===je?g.default:je,Ce=v.PopperComponent,Ae=void 0===Ce?h.default:Ce,Pe=v.popupIcon,Me=void 0===Pe?s||(s=(0,C.jsx)(O.default,{})):Pe,Ie=v.readOnly,Re=void 0!==Ie&&Ie,De=v.renderGroup,Le=v.renderInput,Ne=v.renderOption,Fe=v.renderTags,Be=v.selectOnFocus,Ue=(void 0===Be&&v.freeSolo,v.size),ze=void 0===Ue?"medium":Ue,Ve=(0,u.default)(v,A),He=(0,d.useAutocomplete)((0,c.default)({},v,{componentName:"Autocomplete"})),We=He.getRootProps,qe=He.getInputProps,Ge=He.getInputLabelProps,Ye=He.getPopupIndicatorProps,Ke=He.getClearProps,$e=He.getTagProps,Xe=He.getListboxProps,Qe=He.getOptionProps,Ze=He.value,Je=He.dirty,et=He.id,tt=He.popupOpen,nt=He.focused,rt=He.focusedTag,it=He.anchorEl,ot=He.setAnchorEl,at=He.inputValue,st=He.groupedOptions,ut=!$&&!Q&&Je&&!Re,ct=(!re||!0===te)&&!1!==te,lt=(0,c.default)({},v,{disablePortal:J,focused:nt,fullWidth:oe,hasClearIcon:ut,hasPopupIcon:ct,inputFocused:-1===rt,popupOpen:tt,size:ze}),ft=function(e){var t=e.classes,n=e.disablePortal,r=e.focused,i=e.fullWidth,o=e.hasClearIcon,a=e.hasPopupIcon,s=e.inputFocused,u=e.popupOpen,c=e.size,l={root:["root",r&&"focused",i&&"fullWidth",o&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",s&&"inputFocused"],tag:["tag","tagSize".concat((0,T.default)(c))],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,d.unstable_composeClasses)(l,j.getAutocompleteUtilityClass,t)}(lt);if(_e&&Ze.length>0){var dt=function(e){return(0,c.default)({className:ft.tag,disabled:Q},$e(e))};p=Fe?Fe(Ze,dt,lt):Ze.map((function(e,t){return(0,C.jsx)(y.default,(0,c.default)({label:ce(e),size:ze},dt({index:t}),m))}))}if(pe>-1&&Array.isArray(p)){var pt=p.length-pe;!nt&&pt>0&&(p=p.splice(0,pe)).push((0,C.jsx)("span",{className:ft.tag,children:se(pt)},p.length))}var ht=De||function(e){return(0,C.jsxs)("li",{children:[(0,C.jsx)(V,{className:ft.groupLabel,ownerState:lt,component:"div",children:e.group}),(0,C.jsx)(H,{className:ft.groupUl,ownerState:lt,children:e.children})]},e.key)},vt=Ne||function(e,t){return(0,C.jsx)("li",(0,c.default)({},e,{children:ce(t)}))},gt=function(e,t){var n=Qe({option:e,index:t});return vt((0,c.default)({},n,{className:ft.option}),e,{selected:n["aria-selected"],inputValue:at})};return(0,C.jsxs)(l.Fragment,{children:[(0,C.jsx)(I,(0,c.default)({ref:t,className:(0,f.default)(ft.root,b),ownerState:lt},We(Ve),{children:Le({id:et,disabled:Q,fullWidth:!0,size:"small"===ze?"small":void 0,InputLabelProps:Ge(),InputProps:(0,c.default)({ref:ot,className:ft.inputRoot,startAdornment:p},(ut||ct)&&{endAdornment:(0,C.jsxs)(R,{className:ft.endAdornment,ownerState:lt,children:[ut?(0,C.jsx)(D,(0,c.default)({},Ke(),{"aria-label":P,title:P,ownerState:lt},G.clearIndicator,{className:(0,f.default)(ft.clearIndicator,null==(n=G.clearIndicator)?void 0:n.className),children:w})):null,ct?(0,C.jsx)(L,(0,c.default)({},Ye(),{disabled:Q,"aria-label":tt?W:Ee,title:tt?W:Ee,ownerState:lt},G.popupIndicator,{className:(0,f.default)(ft.popupIndicator,null==(r=G.popupIndicator)?void 0:r.className),children:Me})):null]})}),inputProps:(0,c.default)({className:ft.input,disabled:Q,readOnly:Re},qe())})})),it?(0,C.jsx)(N,(0,c.default)({as:Ae,disablePortal:J,style:{width:it?it.clientWidth:null},ownerState:lt,role:"presentation",anchorEl:it,open:tt},G.popper,{className:(0,f.default)(ft.popper,null==(i=G.popper)?void 0:i.className),children:(0,C.jsxs)(F,(0,c.default)({ownerState:lt,as:Te},G.paper,{className:(0,f.default)(ft.paper,null==(o=G.paper)?void 0:o.className),children:[ye&&0===st.length?(0,C.jsx)(B,{className:ft.loading,ownerState:lt,children:xe}):null,0!==st.length||re||ye?null:(0,C.jsx)(U,{className:ft.noOptions,ownerState:lt,role:"presentation",onMouseDown:function(e){e.preventDefault()},children:Oe}),st.length>0?(0,C.jsx)(z,(0,c.default)({as:ve,className:ft.listbox,ownerState:lt},Xe(),ge,{children:st.map((function(e,t){return le?ht({key:e.key,group:e.group,children:e.options.map((function(t,n){return gt(t,e.index+n)}))}):gt(e,t)}))})):null]}))})):null]})}));t.default=W},function(e,t,n){"use strict";t.a=function(){return!1}},function(e,t,n){"use strict";(function(e){var r=n(111);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)}var o="object"==("undefined"==typeof exports?"undefined":i(exports))&&exports&&!exports.nodeType&&exports,a=o&&"object"==i(e)&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.a.Buffer:void 0,u=s?s.allocUnsafe:void 0;t.a=function(e,t){if(t)return e.slice();var n=e.length,r=u?u(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(579)(e))},function(e,t,n){(function(e,n){function r(e){return(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})(e)}var i=200,o="Expected a function",a="__lodash_hash_undefined__",s=1,u=2,c=1/0,l=9007199254740991,f="[object Arguments]",d="[object Array]",p="[object Boolean]",h="[object Date]",v="[object Error]",g="[object Function]",m="[object GeneratorFunction]",y="[object Map]",b="[object Number]",x="[object Object]",w="[object RegExp]",_="[object Set]",S="[object String]",O="[object Symbol]",k="[object ArrayBuffer]",E="[object DataView]",j=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,T=/^\w*$/,C=/^\./,A=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,P=/\\(\\)?/g,M=/^\[object .+?Constructor\]$/,I=/^(?:0|[1-9]\d*)$/,R={};R["[object Float32Array]"]=R["[object Float64Array]"]=R["[object Int8Array]"]=R["[object Int16Array]"]=R["[object Int32Array]"]=R["[object Uint8Array]"]=R["[object Uint8ClampedArray]"]=R["[object Uint16Array]"]=R["[object Uint32Array]"]=!0,R[f]=R[d]=R[k]=R[p]=R[E]=R[h]=R[v]=R[g]=R[y]=R[b]=R[x]=R[w]=R[_]=R[S]=R["[object WeakMap]"]=!1;var D="object"==(void 0===e?"undefined":r(e))&&e&&e.Object===Object&&e,L="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,N=D||L||Function("return this")(),F="object"==r(t)&&t&&!t.nodeType&&t,B=F&&"object"==r(n)&&n&&!n.nodeType&&n,U=B&&B.exports===F&&D.process,z=function(){try{return U&&U.binding("util")}catch(e){}}(),V=z&&z.isTypedArray;function H(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}function W(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function q(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function G(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Y(e,t){return function(n){return e(t(n))}}function K(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var $,X=Array.prototype,Q=Function.prototype,Z=Object.prototype,J=N["__core-js_shared__"],ee=($=/[^.]+$/.exec(J&&J.keys&&J.keys.IE_PROTO||""))?"Symbol(src)_1."+$:"",te=Q.toString,ne=Z.hasOwnProperty,re=Z.toString,ie=RegExp("^"+te.call(ne).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),oe=N.Symbol,ae=N.Uint8Array,se=Y(Object.getPrototypeOf,Object),ue=Object.create,ce=Z.propertyIsEnumerable,le=X.splice,fe=Y(Object.keys,Object),de=qe(N,"DataView"),pe=qe(N,"Map"),he=qe(N,"Promise"),ve=qe(N,"Set"),ge=qe(N,"WeakMap"),me=qe(Object,"create"),ye=Je(de),be=Je(pe),xe=Je(he),we=Je(ve),_e=Je(ge),Se=oe?oe.prototype:void 0,Oe=Se?Se.valueOf:void 0,ke=Se?Se.toString:void 0;function Ee(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 je(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.__data__=new Te;++t<n;)this.add(e[t])}function Ae(e){this.__data__=new je(e)}function Pe(e,t){var n=rt(e)||nt(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&&!ne.call(e,o)||i&&("length"==o||Ye(o,r))||n.push(o);return n}function Me(e,t){for(var n=e.length;n--;)if(tt(e[n][0],t))return n;return-1}Ee.prototype.clear=function(){this.__data__=me?me(null):{}},Ee.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ee.prototype.get=function(e){var t=this.__data__;if(me){var n=t[e];return n===a?void 0:n}return ne.call(t,e)?t[e]:void 0},Ee.prototype.has=function(e){var t=this.__data__;return me?void 0!==t[e]:ne.call(t,e)},Ee.prototype.set=function(e,t){return this.__data__[e]=me&&void 0===t?a:t,this},je.prototype.clear=function(){this.__data__=[]},je.prototype.delete=function(e){var t=this.__data__,n=Me(t,e);return!(n<0)&&(n==t.length-1?t.pop():le.call(t,n,1),!0)},je.prototype.get=function(e){var t=this.__data__,n=Me(t,e);return n<0?void 0:t[n][1]},je.prototype.has=function(e){return Me(this.__data__,e)>-1},je.prototype.set=function(e,t){var n=this.__data__,r=Me(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Te.prototype.clear=function(){this.__data__={hash:new Ee,map:new(pe||je),string:new Ee}},Te.prototype.delete=function(e){return We(this,e).delete(e)},Te.prototype.get=function(e){return We(this,e).get(e)},Te.prototype.has=function(e){return We(this,e).has(e)},Te.prototype.set=function(e,t){return We(this,e).set(e,t),this},Ce.prototype.add=Ce.prototype.push=function(e){return this.__data__.set(e,a),this},Ce.prototype.has=function(e){return this.__data__.has(e)},Ae.prototype.clear=function(){this.__data__=new je},Ae.prototype.delete=function(e){return this.__data__.delete(e)},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 je){var r=n.__data__;if(!pe||r.length<i-1)return r.push([e,t]),this;n=this.__data__=new Te(r)}return n.set(e,t),this};var Ie,Re=function(e,t,n){for(var r=-1,i=Object(e),o=n(e),a=o.length;a--;){var s=o[Ie?a:++r];if(!1===t(i[s],s,i))break}return e};function De(e,t){return e&&Re(e,t,dt)}function Le(e,t){for(var n=0,r=(t=Ke(t,e)?[t]:Ve(t)).length;null!=e&&n<r;)e=e[Ze(t[n++])];return n&&n==r?e:void 0}function Ne(e,t){return null!=e&&t in Object(e)}function Fe(e,t,n,r,i){return e===t||(null==e||null==t||!st(e)&&!ut(t)?e!=e&&t!=t:function(e,t,n,r,i,o){var a=rt(e),c=rt(t),l=d,g=d;a||(l=(l=Ge(e))==f?x:l);c||(g=(g=Ge(t))==f?x:g);var m=l==x&&!q(e),j=g==x&&!q(t),T=l==g;if(T&&!m)return o||(o=new Ae),a||ft(e)?He(e,t,n,r,i,o):function(e,t,n,r,i,o,a){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case k:return!(e.byteLength!=t.byteLength||!r(new ae(e),new ae(t)));case p:case h:case b:return tt(+e,+t);case v:return e.name==t.name&&e.message==t.message;case w:case S:return e==t+"";case y:var c=G;case _:var l=o&u;if(c||(c=K),e.size!=t.size&&!l)return!1;var f=a.get(e);if(f)return f==t;o|=s,a.set(e,t);var d=He(c(e),c(t),r,i,o,a);return a.delete(e),d;case O:if(Oe)return Oe.call(e)==Oe.call(t)}return!1}(e,t,l,n,r,i,o);if(!(i&u)){var C=m&&ne.call(e,"__wrapped__"),A=j&&ne.call(t,"__wrapped__");if(C||A){var P=C?e.value():e,M=A?t.value():t;return o||(o=new Ae),n(P,M,r,i,o)}}if(!T)return!1;return o||(o=new Ae),function(e,t,n,r,i,o){var a=i&u,s=dt(e),c=s.length,l=dt(t).length;if(c!=l&&!a)return!1;var f=c;for(;f--;){var d=s[f];if(!(a?d in t:ne.call(t,d)))return!1}var p=o.get(e);if(p&&o.get(t))return p==t;var h=!0;o.set(e,t),o.set(t,e);var v=a;for(;++f<c;){d=s[f];var g=e[d],m=t[d];if(r)var y=a?r(m,g,d,t,e,o):r(g,m,d,e,t,o);if(!(void 0===y?g===m||n(g,m,r,i,o):y)){h=!1;break}v||(v="constructor"==d)}if(h&&!v){var b=e.constructor,x=t.constructor;b!=x&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof x&&x instanceof x)&&(h=!1)}return o.delete(e),o.delete(t),h}(e,t,n,r,i,o)}(e,t,Fe,n,r,i))}function Be(e){return!(!st(e)||(t=e,ee&&ee in t))&&(ot(e)||q(e)?ie:M).test(Je(e));var t}function Ue(e){return"function"==typeof e?e:null==e?pt:"object"==r(e)?rt(e)?function(e,t){if(Ke(e)&&$e(t))return Xe(Ze(e),t);return function(n){var r=function(e,t,n){var r=null==e?void 0:Le(e,t);return void 0===r?n:r}(n,e);return void 0===r&&r===t?function(e,t){return null!=e&&function(e,t,n){t=Ke(t,e)?[t]:Ve(t);var r,i=-1,o=t.length;for(;++i<o;){var a=Ze(t[i]);if(!(r=null!=e&&n(e,a)))break;e=e[a]}if(r)return r;return!!(o=e?e.length:0)&&at(o)&&Ye(a,o)&&(rt(e)||nt(e))}(e,t,Ne)}(n,e):Fe(t,r,void 0,s|u)}}(e[0],e[1]):function(e){var t=function(e){var t=dt(e),n=t.length;for(;n--;){var r=t[n],i=e[r];t[n]=[r,i,$e(i)]}return t}(e);if(1==t.length&&t[0][2])return Xe(t[0][0],t[0][1]);return function(n){return n===e||function(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=Object(e);i--;){var c=n[i];if(a&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<o;){var l=(c=n[i])[0],f=e[l],d=c[1];if(a&&c[2]){if(void 0===f&&!(l in e))return!1}else{var p=new Ae;if(r)var h=r(f,d,l,e,t,p);if(!(void 0===h?Fe(d,f,r,s|u,p):h))return!1}}return!0}(n,e,t)}}(e):Ke(t=e)?(n=Ze(t),function(e){return null==e?void 0:e[n]}):function(e){return function(t){return Le(t,e)}}(t);var t,n}function ze(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||Z,t!==r)return fe(e);var t,n,r,i=[];for(var o in Object(e))ne.call(e,o)&&"constructor"!=o&&i.push(o);return i}function Ve(e){return rt(e)?e:Qe(e)}function He(e,t,n,r,i,o){var a=i&u,c=e.length,l=t.length;if(c!=l&&!(a&&l>c))return!1;var f=o.get(e);if(f&&o.get(t))return f==t;var d=-1,p=!0,h=i&s?new Ce:void 0;for(o.set(e,t),o.set(t,e);++d<c;){var v=e[d],g=t[d];if(r)var m=a?r(g,v,d,t,e,o):r(v,g,d,e,t,o);if(void 0!==m){if(m)continue;p=!1;break}if(h){if(!W(t,(function(e,t){if(!h.has(t)&&(v===e||n(v,e,r,i,o)))return h.add(t)}))){p=!1;break}}else if(v!==g&&!n(v,g,r,i,o)){p=!1;break}}return o.delete(e),o.delete(t),p}function We(e,t){var n,i,o=e.__data__;return("string"==(i=r(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function qe(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Be(n)?n:void 0}var Ge=function(e){return re.call(e)};function Ye(e,t){return!!(t=null==t?l:t)&&("number"==typeof e||I.test(e))&&e>-1&&e%1==0&&e<t}function Ke(e,t){if(rt(e))return!1;var n=r(e);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ct(e))||(T.test(e)||!j.test(e)||null!=t&&e in Object(t))}function $e(e){return e==e&&!st(e)}function Xe(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}(de&&Ge(new de(new ArrayBuffer(1)))!=E||pe&&Ge(new pe)!=y||he&&"[object Promise]"!=Ge(he.resolve())||ve&&Ge(new ve)!=_||ge&&"[object WeakMap]"!=Ge(new ge))&&(Ge=function(e){var t=re.call(e),n=t==x?e.constructor:void 0,r=n?Je(n):void 0;if(r)switch(r){case ye:return E;case be:return y;case xe:return"[object Promise]";case we:return _;case _e:return"[object WeakMap]"}return t});var Qe=et((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(ct(e))return ke?ke.call(e):"";var t=e+"";return"0"==t&&1/e==-c?"-0":t}(t);var n=[];return C.test(e)&&n.push(""),e.replace(A,(function(e,t,r,i){n.push(r?i.replace(P,"$1"):t||e)})),n}));function Ze(e){if("string"==typeof e||ct(e))return e;var t=e+"";return"0"==t&&1/e==-c?"-0":t}function Je(e){if(null!=e){try{return te.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function et(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(o);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),a};return n.cache=new(et.Cache||Te),n}function tt(e,t){return e===t||e!=e&&t!=t}function nt(e){return function(e){return ut(e)&&it(e)}(e)&&ne.call(e,"callee")&&(!ce.call(e,"callee")||re.call(e)==f)}et.Cache=Te;var rt=Array.isArray;function it(e){return null!=e&&at(e.length)&&!ot(e)}function ot(e){var t=st(e)?re.call(e):"";return t==g||t==m}function at(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=l}function st(e){var t=r(e);return!!e&&("object"==t||"function"==t)}function ut(e){return!!e&&"object"==r(e)}function ct(e){return"symbol"==r(e)||ut(e)&&re.call(e)==O}var lt,ft=V?(lt=V,function(e){return lt(e)}):function(e){return ut(e)&&at(e.length)&&!!R[re.call(e)]};function dt(e){return it(e)?Pe(e):ze(e)}function pt(e){return e}n.exports=function(e,t,n){var r,i=rt(e)||ft(e);if(t=Ue(t),null==n)if(i||st(e)){var o=e.constructor;n=i?rt(e)?new o:[]:ot(o)?st(r=se(e))?ue(r):{}:{}}else n={};return(i?H:De)(e,(function(e,r,i){return t(n,e,r,i)})),n}}).call(this,n(189),n(231)(e))},function(e,t,n){"use strict";function r(e){return(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})(e)}var i=n(139);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){0;return(0,o.useTheme)(a.default)};!function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=o?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(i,a,u):i[a]=e[a]}i.default=e,n&&n.set(e,i)}(n(2));var o=n(69),a=i(n(578));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}},function(e,t,n){"use strict";var r=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(38)),o=n(5),a=(0,i.default)((0,o.jsx)("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"}),"OpenInNew");t.default=a},function(e,t,n){(function(t){var r;e.exports=(r=n(2),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="/dist/",n(n.s=5)}([function(e,t){e.exports=r},function(e,t,n){var r=n(2),i=n(3);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o=(r(i,{insert:"head",singleton:!1}),i.locals?i.locals:{});e.exports=o},function(e,t,n){"use strict";var r,i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),o=[];function a(e){for(var t=-1,n=0;n<o.length;n++)if(o[n].identifier===e){t=n;break}return t}function s(e,t){for(var n={},r=[],i=0;i<e.length;i++){var s=e[i],u=t.base?s[0]+t.base:s[0],c=n[u]||0,l="".concat(u," ").concat(c);n[u]=c+1;var f=a(l),d={css:s[1],media:s[2],sourceMap:s[3]};-1!==f?(o[f].references++,o[f].updater(d)):o.push({identifier:l,updater:v(d,t),references:1}),r.push(l)}return r}function u(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var c,l=(c=[],function(e,t){return c[e]=t,c.filter(Boolean).join("\n")});function f(e,t,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=l(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function d(e,t,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),o&&btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var p=null,h=0;function v(e,t){var n,r,i;if(t.singleton){var o=h++;n=p||(p=u(t)),r=f.bind(null,n,o,!1),i=f.bind(null,n,o,!0)}else n=u(t),r=d.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=(void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r));var n=s(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var i=a(n[r]);o[i].references--}for(var u=s(e,t),c=0;c<n.length;c++){var l=a(n[c]);0===o[l].references&&(o[l].updater(),o.splice(l,1))}n=u}}}},function(e,t,n){(t=n(4)(!1)).push([e.i,'._4e96{overflow:hidden}._132a{background-color:rgba(0,0,0,0.8);left:0;min-height:100vh;min-height:-webkit-fill-available;opacity:0;position:fixed;top:0;transition:opacity 0.2s ease-in;width:100vw;z-index:999999}._132a._7c0e{opacity:1;display:block}._132a.efc7{pointer-events:none;touch-action:none}@media (prefers-color-scheme: dark){._132a._20ef{background:rgba(10,10,10,0.5);color:rgba(235,235,245,0.6)}}._6733{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background-color:rgba(250,250,250,0.8);border-radius:10px;bottom:0;color:black;filter:brightness(1.1);left:0;margin:0 8px 10px;overflow:hidden;position:fixed;transform:translateY(calc(100% + 10px));transition:transform 0.4s cubic-bezier(0.4, 0.24, 0.3, 1);width:calc(100vw - 16px);z-index:999999}._6733._7c0e{transform:translateY(0);display:block}._6733.efc7{pointer-events:none;touch-action:none}._6733._20ef{background:rgba(255,255,255,0.6);filter:brightness(1.6)}@media (prefers-color-scheme: dark){._6733._20ef{background:rgba(65,65,65,0.7);filter:brightness(1.1)}}._199d{align-items:center;border-bottom:1px solid rgba(0,0,0,0.1);border-top:0px;border-left:0px;border-right:0px;border-width:0.5px;display:flex;flex-flow:row nowrap;justify-content:space-between;padding:13px 16px}._20ef ._199d{border-color:rgba(60,60,67,0.29)}@media (prefers-color-scheme: dark){._20ef ._199d{border-color:rgba(140,140,140,0.7)}}._199d .ab5d{color:#333;font-family:-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:18px;font-weight:500;line-height:1.125;margin:0;padding:0}._20ef ._199d .ab5d{color:#000}@media (prefers-color-scheme: dark){._20ef ._199d .ab5d{color:#fff}}._199d ._6a7e{color:#2d7cf6;font-size:16px;padding:0;margin:0;border:0;background:transparent}._20ef ._199d ._6a7e{color:#0055b3}@media (prefers-color-scheme: dark){._20ef ._199d ._6a7e{color:#0984ff}}.ebda{display:flex;width:100%}.ebda .a91e{border-bottom:1px solid rgba(0,0,0,0.1);border-top:0px;border-left:0px;border-right:0px;border-width:0.5px;color:inherit;margin:0 16px;padding:16px;width:100%}._20ef .ebda .a91e{border-color:rgba(60,60,67,0.29)}@media (prefers-color-scheme: dark){._20ef .ebda .a91e{border-color:rgba(140,140,140,0.7)}}._7d3c{color:#7b7b7a;font-family:-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:13px;line-height:17px;margin:0;padding:0}._7d3c.e161{font-weight:600}._20ef ._7d3c{color:rgba(60,60,67,0.6)}@media (prefers-color-scheme: dark){._20ef ._7d3c{border-color:rgba(235,235,245,0.6);color:rgba(235,235,245,0.6)}}.e6cc{color:inherit;margin:0 16px;padding:16px}.e6cc ._3183{align-items:center;display:flex;flex-flow:row nowrap;justify-content:flex-start;text-align:left;margin-bottom:16px}.e6cc ._3183:last-of-type{margin-bottom:0}.e6cc ._4408,.e6cc ._4b98{flex:0 0 auto;height:30px;margin-right:32px;width:25px}.e6cc ._4b98{color:#2d7cf6}._20ef .e6cc ._4b98{color:black;fill:black}@media (prefers-color-scheme: dark){._20ef .e6cc ._4b98{color:white;fill:white}}.e6cc ._4408{color:#2d7cf6;fill:#2d7cf6}._20ef .e6cc ._4408{color:#0055b3;fill:#0055b3}@media (prefers-color-scheme: dark){._20ef .e6cc ._4408{color:#0984ff;fill:#0984ff}}\n',""]),t.locals={noScroll:"_4e96",pwaPromptOverlay:"_132a",visible:"_7c0e",hidden:"efc7",modern:"_20ef",pwaPrompt:"_6733",pwaPromptHeader:"_199d",pwaPromptTitle:"ab5d",pwaPromptCancel:"_6a7e",pwaPromptBody:"ebda",pwaPromptDescription:"a91e",pwaPromptCopy:"_7d3c",bold:"e161",pwaPromptInstruction:"e6cc",pwaPromptInstructionStep:"_3183",pwaPromptShareIcon:"_4408",pwaPromptHomeIcon:"_4b98"},e.exports=t},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,r,i,o=e[1]||"",a=e[3];if(!a)return o;if(t&&"function"==typeof btoa){var s=(n=a,r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(i," */")),u=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[o].concat(u).concat([s]).join("\n")}return[o].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var s=0;s<e.length;s++){var u=[].concat(e[s]);r&&i[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),t.push(u))}},t}},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n.n(r),o=function(e){var t=e.className,n=e.modern;return void 0!==n&&n?i.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:t,viewBox:"0 0 566 670"},i.a.createElement("path",{d:"M255 12c4-4 10-8 16-8s12 3 16 8l94 89c3 4 6 7 8 12 2 6 0 14-5 19-7 8-20 9-28 2l-7-7-57-60 2 54v276c0 12-10 22-22 22-12 1-24-10-23-22V110l1-43-60 65c-5 5-13 8-21 6a19 19 0 0 1-16-17c-1-7 2-13 7-18l95-91z"}),i.a.createElement("path",{d:"M43 207c16-17 40-23 63-23h83v46h-79c-12 0-25 3-33 13-8 9-10 21-10 33v260c0 13 0 27 6 38 5 12 18 18 30 19l14 1h302c14 0 28 0 40-8 11-7 16-21 16-34V276c0-11-2-24-9-33-8-10-22-13-34-13h-78v-46h75c13 0 25 1 37 4 16 4 31 13 41 27 11 17 14 37 14 57v280c0 20-3 41-15 58a71 71 0 0 1-45 27c-11 2-23 3-34 3H109c-19-1-40-4-56-15-14-9-23-23-27-38-4-12-5-25-5-38V270c1-22 6-47 22-63z"})):i.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:t,viewBox:"0 0 120 169"},i.a.createElement("g",{fill:"currentColor"},i.a.createElement("path",{d:"M60 0l28 28-2 2a586 586 0 0 0-4 4L64 15v90h-8V15L38 34l-4-4-2-2L60 0z"}),i.a.createElement("path",{d:"M0 49h44v8H8v104h104V57H76v-8h44v120H0V49z"})))},a=function(e){var t=e.className,n=e.modern;return void 0!==n&&n?i.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:t,viewBox:"0 0 578 584"},i.a.createElement("path",{d:"M101 35l19-1h333c12 0 23 0 35 3 17 3 34 12 44 27 13 16 16 38 16 58v329c0 19 0 39-8 57a65 65 0 0 1-37 37c-18 7-38 7-57 7H130c-21 1-44 0-63-10-14-7-25-20-30-34-6-15-8-30-8-45V121c1-21 5-44 19-61 13-16 33-23 53-25m7 46c-10 1-19 6-24 14-7 8-9 20-9 31v334c0 12 2 25 10 34 9 10 23 12 35 12h336c14 1 30-3 38-15 6-9 8-20 8-31V125c0-12-2-24-10-33-9-9-22-12-35-12H121l-13 1z"}),i.a.createElement("path",{d:"M271 161c9-11 31-10 38 4 3 5 3 11 3 17v87h88c7 0 16 1 21 7 6 6 7 14 6 22a21 21 0 0 1-10 14c-5 4-11 5-17 5h-88v82c0 7-1 15-6 20-10 10-29 10-37-2-3-6-4-13-4-19v-81h-87c-8-1-17-3-23-9-5-6-6-15-4-22a21 21 0 0 1 11-14c6-3 13-3 19-3h84v-88c0-7 1-14 6-20z"})):i.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:t,viewBox:"55.99425507 31.98999977 157.76574707 157.76371765"},i.a.createElement("path",{fill:"#58595b",d:"M90.49 32.83a54.6 54.6 0 019.55-.84c23.98.03 47.96 0 71.94.01 8.5.07 17.3 1.74 24.4 6.65 10.94 7.28 16.52 20.54 17.35 33.3.06 26.03 0 52.06.03 78.08 0 10.16-3.59 20.56-10.95 27.73-7.93 7.61-18.94 11.43-29.79 11.98-25.71.03-51.42 0-77.12.01-10.37-.11-21.01-3.77-28.17-11.48-8.22-8.9-11.72-21.29-11.73-33.21.01-23.03-.03-46.05.02-69.07-.01-9.14 1.33-18.71 6.65-26.4 6.21-9.4 16.97-14.79 27.82-16.76m38.18 41.09c-.05 10.25.01 20.5 0 30.75-9.58-.03-19.16.02-28.75-.04-2.27.08-4.98-.25-6.68 1.61-2.84 2.34-2.75 7.12.01 9.48 1.8 1.69 4.46 1.57 6.75 1.64 9.56-.04 19.12-.01 28.67-.03.02 10.24-.06 20.48.01 30.72-.14 2.66 1.36 5.4 3.95 6.3 3.66 1.66 8.52-1.13 8.61-5.23.26-10.59.02-21.2.09-31.79 9.88 0 19.76.02 29.64.01 2.74.12 5.85-.67 7.14-3.34 2.23-3.75-.61-9.34-5.08-9.29-10.57-.14-21.14-.01-31.7-.04-.01-10.25.04-20.49 0-30.74.3-3.5-2.66-7.09-6.3-6.79-3.65-.33-6.66 3.26-6.36 6.78z"}),i.a.createElement("path",{fill:"transparent",d:"M128.67 73.92c-.3-3.52 2.71-7.11 6.36-6.78 3.64-.3 6.6 3.29 6.3 6.79.04 10.25-.01 20.49 0 30.74 10.56.03 21.13-.1 31.7.04 4.47-.05 7.31 5.54 5.08 9.29-1.29 2.67-4.4 3.46-7.14 3.34-9.88.01-19.76-.01-29.64-.01-.07 10.59.17 21.2-.09 31.79-.09 4.1-4.95 6.89-8.61 5.23-2.59-.9-4.09-3.64-3.95-6.3-.07-10.24.01-20.48-.01-30.72-9.55.02-19.11-.01-28.67.03-2.29-.07-4.95.05-6.75-1.64-2.76-2.36-2.85-7.14-.01-9.48 1.7-1.86 4.41-1.53 6.68-1.61 9.59.06 19.17.01 28.75.04.01-10.25-.05-20.5 0-30.75z"}))},s=n(1),u=n.n(s);function c(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 l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){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(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var p=function(e){var t=e.delay,n=e.copyTitle,s=e.copyBody,d=e.copyAddHomeButtonLabel,p=e.copyShareButtonLabel,h=e.copyClosePrompt,v=e.permanentlyHideOnDismiss,g=e.promptData,m=e.maxVisits,y=e.onClose,b=f(Object(r.useState)(!Boolean(t)),2),x=b[0],w=b[1];Object(r.useEffect)((function(){t&&setTimeout((function(){document.activeElement&&document.activeElement.blur(),w(!0)}),t)}),[]),Object(r.useEffect)((function(){x&&document.body.classList.add(u.a.noScroll)}),[x]);var _=/OS (13|14)/.test(window.navigator.userAgent),S=x?u.a.visible:u.a.hidden,O=_?u.a.modern:"legacy",k=function(e){document.body.classList.remove(u.a.noScroll),w(!1),v&&localStorage.setItem("iosPwaPrompt",JSON.stringify(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},g,{visits:m}))),"function"==typeof y&&y(e)},E=function(e){x||(e.currentTarget.style.display="none")};return i.a.createElement(r.Fragment,null,i.a.createElement("div",{className:"".concat(u.a.pwaPromptOverlay," ").concat(S," ").concat(O," iOSPWA-overlay"),"aria-label":"Close",role:"button",onClick:k,onTransitionEnd:E}),i.a.createElement("div",{className:"".concat(u.a.pwaPrompt," ").concat(S," ").concat(O," iOSPWA-container"),"aria-describedby":"pwa-prompt-description","aria-labelledby":"pwa-prompt-title",role:"dialog",onTransitionEnd:E},i.a.createElement("div",{className:"".concat(u.a.pwaPromptHeader," iOSPWA-header")},i.a.createElement("p",{id:"pwa-prompt-title",className:"".concat(u.a.pwaPromptTitle," iOSPWA-title")},n),i.a.createElement("button",{className:"".concat(u.a.pwaPromptCancel," iOSPWA-cancel"),onClick:k},h)),i.a.createElement("div",{className:"".concat(u.a.pwaPromptBody," iOSPWA-body")},i.a.createElement("div",{className:"".concat(u.a.pwaPromptDescription," iOSPWA-description")},i.a.createElement("p",{id:"pwa-prompt-description",className:"".concat(u.a.pwaPromptCopy," iOSPWA-description-copy")},s))),i.a.createElement("div",{className:"".concat(u.a.pwaPromptInstruction," iOSPWA-steps")},i.a.createElement("div",{className:"".concat(u.a.pwaPromptInstructionStep," iOSPWA-step1")},i.a.createElement(o,{className:"".concat(u.a.pwaPromptShareIcon," iOSPWA-step1-icon"),modern:_}),i.a.createElement("p",{className:"".concat(u.a.pwaPromptCopy," ").concat(u.a.bold," iOSPWA-step1-copy")},p)),i.a.createElement("div",{className:"".concat(u.a.pwaPromptInstructionStep," iOSPWA-step2")},i.a.createElement(a,{className:"".concat(u.a.pwaPromptHomeIcon," iOSPWA-step2-icon"),modern:_}),i.a.createElement("p",{className:"".concat(u.a.pwaPromptCopy," ").concat(u.a.bold," iOSPWA-step2-copy")},d)))))};function h(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 v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(e){var t,n,r,o=e.timesToShow,a=void 0===o?1:o,s=e.promptOnVisit,u=void 0===s?1:s,c=e.permanentlyHideOnDismiss,l=void 0===c||c,f=e.copyTitle,d=void 0===f?"Add to Home Screen":f,g=e.copyBody,m=void 0===g?"This website has app functionality. Add it to your home screen to use it in fullscreen and while offline.":g,y=e.copyShareButtonLabel,b=void 0===y?"1) Press the 'Share' button on the menu bar below.":y,x=e.copyAddHomeButtonLabel,w=void 0===x?"2) Press 'Add to Home Screen'.":x,_=e.copyClosePrompt,S=void 0===_?"Cancel":_,O=e.delay,k=void 0===O?1e3:O,E=e.debug,j=void 0!==E&&E,T=e.onClose,C=void 0===T?function(){}:T,A=JSON.parse(localStorage.getItem("iosPwaPrompt"));if(null===A&&(A={isiOS:(t=/iphone|ipad|ipod/.test(window.navigator.userAgent.toLowerCase()),n="MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,r="standalone"in window.navigator&&window.navigator.standalone,(t||n)&&!r),visits:0},localStorage.setItem("iosPwaPrompt",JSON.stringify(A))),A.isiOS||j){var P=A.visits+1>=u;if((A.visits+1<u+a||j)&&(localStorage.setItem("iosPwaPrompt",JSON.stringify(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},A,{visits:A.visits+1}))),P||j))return i.a.createElement(p,{delay:k,copyTitle:d,copyBody:m,copyAddHomeButtonLabel:w,copyShareButtonLabel:b,copyClosePrompt:S,permanentlyHideOnDismiss:l,promptData:A,maxVisits:a+u,onClose:C})}return null}}]))}).call(this,n(189))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return ve}));var r,i,o,a,s=n(52),u=n.n(s),c=n(861),l=n.n(c),f=n(198),d=n.n(f),p=n(2),h=n.n(p),v=n(389),g=n.n(v),m="bodyAttributes",y="htmlAttributes",b="titleAttributes",x={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},w=(Object.keys(x).map((function(e){return x[e]})),"charset"),_="cssText",S="href",O="http-equiv",k="innerHTML",E="itemprop",j="name",T="property",C="rel",A="src",P="target",M={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},I="defaultTitle",R="defer",D="encodeSpecialCharacters",L="onChangeClientState",N="titleTemplate",F=Object.keys(M).reduce((function(e,t){return e[M[t]]=t,e}),{}),B=[x.NOSCRIPT,x.SCRIPT,x.STYLE],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},z=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},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}}(),H=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){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},q=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},G=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!1===t?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},Y=function(e){var t=Z(e,x.TITLE),n=Z(e,N);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=Z(e,I);return t||r||void 0},K=function(e){return Z(e,L)||function(){}},$=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return H({},e,t)}),{})},X=function(e,t){return t.filter((function(e){return void 0!==e[x.BASE]})).map((function(e){return e[x.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),i=0;i<r.length;i++){var o=r[i].toLowerCase();if(-1!==e.indexOf(o)&&n[o])return t.concat(n)}return t}),[])},Q=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&re("Helmet: "+e+' should be of type "Array". Instead found type "'+U(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var i={};n.filter((function(e){for(var n=void 0,o=Object.keys(e),a=0;a<o.length;a++){var s=o[a],u=s.toLowerCase();-1===t.indexOf(u)||n===C&&"canonical"===e[n].toLowerCase()||u===C&&"stylesheet"===e[u].toLowerCase()||(n=u),-1===t.indexOf(s)||s!==k&&s!==_&&s!==E||(n=s)}if(!n||!e[n])return!1;var c=e[n].toLowerCase();return r[n]||(r[n]={}),i[n]||(i[n]={}),!r[n][c]&&(i[n][c]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var o=Object.keys(i),a=0;a<o.length;a++){var s=o[a],u=g()({},r[s],i[s]);r[s]=u}return e}),[]).reverse()},Z=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},J=(r=Date.now(),function(e){var t=Date.now();t-r>16?(r=t,e(t)):setTimeout((function(){J(e)}),0)}),ee=function(e){return clearTimeout(e)},te="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||J:e.requestAnimationFrame||J,ne="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||ee:e.cancelAnimationFrame||ee,re=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},ie=null,oe=function(e,t){var n=e.baseTag,r=e.bodyAttributes,i=e.htmlAttributes,o=e.linkTags,a=e.metaTags,s=e.noscriptTags,u=e.onChangeClientState,c=e.scriptTags,l=e.styleTags,f=e.title,d=e.titleAttributes;ue(x.BODY,r),ue(x.HTML,i),se(f,d);var p={baseTag:ce(x.BASE,n),linkTags:ce(x.LINK,o),metaTags:ce(x.META,a),noscriptTags:ce(x.NOSCRIPT,s),scriptTags:ce(x.SCRIPT,c),styleTags:ce(x.STYLE,l)},h={},v={};Object.keys(p).forEach((function(e){var t=p[e],n=t.newTags,r=t.oldTags;n.length&&(h[e]=n),r.length&&(v[e]=p[e].oldTags)})),t&&t(),u(e,h,v)},ae=function(e){return Array.isArray(e)?e.join(""):e},se=function(e,t){void 0!==e&&document.title!==e&&(document.title=ae(e)),ue(x.TITLE,t)},ue=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute("data-react-helmet"),i=r?r.split(","):[],o=[].concat(i),a=Object.keys(t),s=0;s<a.length;s++){var u=a[s],c=t[u]||"";n.getAttribute(u)!==c&&n.setAttribute(u,c),-1===i.indexOf(u)&&i.push(u);var l=o.indexOf(u);-1!==l&&o.splice(l,1)}for(var f=o.length-1;f>=0;f--)n.removeAttribute(o[f]);i.length===o.length?n.removeAttribute("data-react-helmet"):n.getAttribute("data-react-helmet")!==a.join(",")&&n.setAttribute("data-react-helmet",a.join(","))}},ce=function(e,t){var n=document.head||document.querySelector(x.HEAD),r=n.querySelectorAll(e+"[data-react-helmet]"),i=Array.prototype.slice.call(r),o=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===k)n.innerHTML=t.innerHTML;else if(r===_)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var s=void 0===t[r]?"":t[r];n.setAttribute(r,s)}n.setAttribute("data-react-helmet","true"),i.some((function(e,t){return a=t,n.isEqualNode(e)}))?i.splice(a,1):o.push(n)})),i.forEach((function(e){return e.parentNode.removeChild(e)})),o.forEach((function(e){return n.appendChild(e)})),{oldTags:i,newTags:o}},le=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},fe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[M[n]||n]=e[n],t}),t)},de=function(e,t,n){switch(e){case x.TITLE:return{toComponent:function(){return e=t.title,n=t.titleAttributes,(r={key:e})["data-react-helmet"]=!0,i=fe(n,r),[h.a.createElement(x.TITLE,i,e)];var e,n,r,i},toString:function(){return function(e,t,n,r){var i=le(n),o=ae(t);return i?"<"+e+' data-react-helmet="true" '+i+">"+G(o,r)+"</"+e+">":"<"+e+' data-react-helmet="true">'+G(o,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case m:case y:return{toComponent:function(){return fe(t)},toString:function(){return le(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,i=((r={key:n})["data-react-helmet"]=!0,r);return Object.keys(t).forEach((function(e){var n=M[e]||e;if(n===k||n===_){var r=t.innerHTML||t.cssText;i.dangerouslySetInnerHTML={__html:r}}else i[n]=t[e]})),h.a.createElement(e,i)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var i=Object.keys(r).filter((function(e){return!(e===k||e===_)})).reduce((function(e,t){var i=void 0===r[t]?t:t+'="'+G(r[t],n)+'"';return e?e+" "+i:i}),""),o=r.innerHTML||r.cssText||"",a=-1===B.indexOf(e);return t+"<"+e+' data-react-helmet="true" '+i+(a?"/>":">"+o+"</"+e+">")}),"")}(e,t,n)}}}},pe=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,i=e.htmlAttributes,o=e.linkTags,a=e.metaTags,s=e.noscriptTags,u=e.scriptTags,c=e.styleTags,l=e.title,f=void 0===l?"":l,d=e.titleAttributes;return{base:de(x.BASE,t,r),bodyAttributes:de(m,n,r),htmlAttributes:de(y,i,r),link:de(x.LINK,o,r),meta:de(x.META,a,r),noscript:de(x.NOSCRIPT,s,r),script:de(x.SCRIPT,u,r),style:de(x.STYLE,c,r),title:de(x.TITLE,{title:f,titleAttributes:d},r)}},he=l()((function(e){return{baseTag:X([S,P],e),bodyAttributes:$(m,e),defer:Z(e,R),encode:Z(e,D),htmlAttributes:$(y,e),linkTags:Q(x.LINK,[C,S],e),metaTags:Q(x.META,[j,w,O,T,E],e),noscriptTags:Q(x.NOSCRIPT,[k],e),onChangeClientState:K(e),scriptTags:Q(x.SCRIPT,[A,k],e),styleTags:Q(x.STYLE,[_],e),title:Y(e),titleAttributes:$(b,e)}}),(function(e){ie&&ne(ie),e.defer?ie=te((function(){oe(e,(function(){ie=null}))})):(oe(e),ie=null)}),pe)((function(){return null})),ve=(i=he,a=o=function(e){function t(){return z(this,t),q(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.shouldComponentUpdate=function(e){return!d()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case x.SCRIPT:case x.NOSCRIPT:return{innerHTML:t};case x.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,i=e.newChildProps,o=e.nestedChildren;return H({},r,((t={})[n.type]=[].concat(r[n.type]||[],[H({},i,this.mapNestedChildrenToProps(n,o))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,i=e.newProps,o=e.newChildProps,a=e.nestedChildren;switch(r.type){case x.TITLE:return H({},i,((t={})[r.type]=a,t.titleAttributes=H({},o),t));case x.BODY:return H({},i,{bodyAttributes:H({},o)});case x.HTML:return H({},i,{htmlAttributes:H({},o)})}return H({},i,((n={})[r.type]=H({},o),n))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=H({},t);return Object.keys(e).forEach((function(t){var r;n=H({},n,((r={})[t]=e[t],r))})),n},t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return h.a.Children.forEach(e,(function(e){if(e&&e.props){var i=e.props,o=i.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[F[n]||n]=e[n],t}),t)}(W(i,["children"]));switch(n.warnOnInvalidChildren(e,o),e.type){case x.LINK:case x.META:case x.NOSCRIPT:case x.SCRIPT:case x.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:a,nestedChildren:o});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:o})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},t.prototype.render=function(){var e=this.props,t=e.children,n=W(e,["children"]),r=H({},n);return t&&(r=this.mapChildrenToProps(t,r)),h.a.createElement(i,r)},V(t,null,[{key:"canUseDOM",set:function(e){i.canUseDOM=e}}]),t}(h.a.Component),o.propTypes={base:u.a.object,bodyAttributes:u.a.object,children:u.a.oneOfType([u.a.arrayOf(u.a.node),u.a.node]),defaultTitle:u.a.string,defer:u.a.bool,encodeSpecialCharacters:u.a.bool,htmlAttributes:u.a.object,link:u.a.arrayOf(u.a.object),meta:u.a.arrayOf(u.a.object),noscript:u.a.arrayOf(u.a.object),onChangeClientState:u.a.func,script:u.a.arrayOf(u.a.object),style:u.a.arrayOf(u.a.object),title:u.a.string,titleAttributes:u.a.object,titleTemplate:u.a.string},o.defaultProps={defer:!0,encodeSpecialCharacters:!0},o.peek=i.peek,o.rewind=function(){var e=i.rewind();return e||(e=pe({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},a);ve.renderStatic=ve.rewind}).call(this,n(189))},function(e,t,n){"use strict";var r,i=n(2),o=(r=i)&&"object"==typeof r&&"default"in r?r.default:r;function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=!("undefined"==typeof window||!window.document||!window.document.createElement);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(r){if("function"!=typeof r)throw new Error("Expected WrappedComponent to be a React component.");var u,c=[];function l(){u=e(c.map((function(e){return e.props}))),f.canUseDOM?t(u):n&&(u=n(u))}var f=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i.peek=function(){return u},i.rewind=function(){if(i.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=u;return u=void 0,c=[],e};var a=i.prototype;return a.UNSAFE_componentWillMount=function(){c.push(this),l()},a.componentDidUpdate=function(){l()},a.componentWillUnmount=function(){var e=c.indexOf(this);c.splice(e,1),l()},a.render=function(){return o.createElement(r,this.props)},i}(i.PureComponent);return a(f,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),a(f,"canUseDOM",s),f}}},,,,function(e,t,n){var r=n(1354),i=n(730)((function(e,t,n){return t=t.toLowerCase(),e+(n?r(t):t)}));e.exports=i},function(e,t,n){var r=n(719),i=n(720),o=n(723);e.exports=function(e,t){var n={};return t=o(t,3),i(e,(function(e,i,o){r(n,t(e,i,o),e)})),n}},function(e,t){function n(e,t){var n=e.length,r=new Array(n),i={},o=n,a=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var i=e[n];t.has(i[0])||t.set(i[0],new Set),t.has(i[1])||t.set(i[1],new Set),t.get(i[0]).add(i[1])}return t}(t),s=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}(e);for(t.forEach((function(e){if(!s.has(e[0])||!s.has(e[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")}));o--;)i[o]||u(e[o],o,new Set);return r;function u(e,t,o){if(o.has(e)){var c;try{c=", node was:"+JSON.stringify(e)}catch(e){c=""}throw new Error("Cyclic dependency"+c)}if(!s.has(e))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!i[t]){i[t]=!0;var l=a.get(e)||new Set;if(t=(l=Array.from(l)).length){o.add(e);do{var f=l[--t];u(f,s.get(f),o)}while(t);o.delete(e)}r[--n]=e}}}e.exports=function(e){return n(function(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var i=e[n];t.add(i[0]),t.add(i[1])}return Array.from(t)}(e),e)},e.exports.array=n},function(e,t,n){(function(e,n){var r,i,o,a;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)} /*! For license information please see index.js.LICENSE.txt */self,a=function(){return function(){var t={107:function(e,t,n){"use strict";var r=n(4228),i=n(3048),o="number";e.exports=function(e){if("string"!==e&&e!==o&&"default"!==e)throw TypeError("Incorrect hint");return i(r(this),e!=o)}},128:function(e){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},157:function(e,t,n){var r=n(7087),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},177:function(e,t,n){"use strict";var r=n(2127),i=n(1485),o=n(8942),a="startsWith",s=""[a];r(r.P+r.F*n(5203)(a),"String",{startsWith:function(e){var t=o(this,e,a),n=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return s?s.call(t,r,n):t.slice(n,n+r.length)===r}})},210:function(e,t,n){var r=n(2127);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},237:function(e,t,n){for(var r,i=n(7526),o=n(3341),a=n(4415),s=a("typed_array"),u=a("view"),c=!(!i.ArrayBuffer||!i.DataView),l=c,f=0,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");f<9;)(r=i[d[f++]])?(o(r.prototype,s,!0),o(r.prototype,u,!0)):l=!1;e.exports={ABV:c,CONSTR:l,TYPED:s,VIEW:u}},333:function(e,t,n){n(7209)("Uint8",1,(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0)},341:function(e,t,n){"use strict";var r=n(5411),i=n(4228),o=n(9190),a=n(8828),s=n(1485),u=n(2535),c=n(9600),l=n(9448),f=Math.min,d=[].push,p="split",h="length",v="lastIndex",g=4294967295,m=!l((function(){RegExp(g,"y")}));n(9228)("split",2,(function(e,t,n,l){var y;return y="c"=="abbc"[p](/(b)*/)[1]||4!="test"[p](/(?:)/,-1)[h]||2!="ab"[p](/(?:ab)*/)[h]||4!="."[p](/(.?)(.?)/)[h]||"."[p](/()()/)[h]>1||""[p](/.?/)[h]?function(e,t){var i=String(this);if(void 0===e&&0===t)return[];if(!r(e))return n.call(i,e,t);for(var o,a,s,u=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,p=void 0===t?g:t>>>0,m=new RegExp(e.source,l+"g");(o=c.call(m,i))&&!((a=m[v])>f&&(u.push(i.slice(f,o.index)),o[h]>1&&o.index<i[h]&&d.apply(u,o.slice(1)),s=o[0][h],f=a,u[h]>=p));)m[v]===o.index&&m[v]++;return f===i[h]?!s&&m.test("")||u.push(""):u.push(i.slice(f)),u[h]>p?u.slice(0,p):u}:"0"[p](void 0,0)[h]?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,r){var i=e(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,i,r):y.call(String(i),n,r)},function(e,t){var r=l(y,e,this,t,y!==n);if(r.done)return r.value;var c=i(e),d=String(this),p=o(c,RegExp),h=c.unicode,v=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(m?"y":"g"),b=new p(m?c:"^(?:"+c.source+")",v),x=void 0===t?g:t>>>0;if(0===x)return[];if(0===d.length)return null===u(b,d)?[d]:[];for(var w=0,_=0,S=[];_<d.length;){b.lastIndex=m?_:0;var O,k=u(b,m?d:d.slice(_));if(null===k||(O=f(s(b.lastIndex+(m?0:_)),d.length))===w)_=a(d,_,h);else{if(S.push(d.slice(w,_)),S.length===x)return S;for(var E=1;E<=k.length-1;E++)if(S.push(k[E]),S.length===x)return S;_=w=O}}return S.push(d.slice(w)),S}]}))},345:function(e,t,n){var r=n(2127);r(r.S,"Math",{sign:n(3733)})},489:function(e,t,n){var r=n(7967).f,i=Function.prototype,o=/^\s*function ([^ (]*)/,a="name";a in i||n(1763)&&r(i,a,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},571:function(e,t,n){var r=n(2127),i=n(2738);r(r.G+r.F*(parseInt!=i),{parseInt:i})},627:function(e,t,n){var r=n(7917),i=n(8270),o=n(766)("IE_PROTO"),a=Object.prototype;e.exports=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?a:null}},629:function(e,t,n){var r=n(2127),i=n(3344),o=n(9448),a=n(832),s="["+a+"]",u=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),l=function(e,t,n){var i={},s=o((function(){return!!a[e]()||" "!=" "[e]()})),u=i[e]=s?t(f):a[e];n&&(i[n]=u),r(r.P+r.F*s,"String",i)},f=l.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(u,"")),2&t&&(e=e.replace(c,"")),e};e.exports=l},660:function(e,t,n){var r=n(2127);r(r.G+r.W+r.F*!n(237).ABV,{DataView:n(8032).DataView})},762:function(e,t,n){var r=n(4848),i=n(7574)("iterator"),o=n(906);e.exports=n(6094).getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},766:function(e,t,n){var r=n(4556)("keys"),i=n(4415);e.exports=function(e){return r[e]||(r[e]=i(e))}},832:function(e){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},906:function(e){e.exports={}},923:function(e,t,n){var r=n(2127),i=n(6094),o=n(9448);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},935:function(e,t,n){var r=n(2127);r(r.S,"Object",{create:n(4719)})},957:function(e,t,n){"use strict";n(629)("trim",(function(e){return function(){return e(this,3)}}))},1060:function(e,t){t.f=Object.getOwnPropertySymbols},1104:function(e,t,n){var r=n(2127),i=n(627),o=n(4228);r(r.S,"Reflect",{getPrototypeOf:function(e){return i(o(e))}})},1158:function(e,t,n){"use strict";var r=n(4228);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}},1212:function(e,t,n){var r=n(7087),i=n(3344);e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),u=r(n),c=s.length;return u<0||u>=c?e?"":void 0:(o=s.charCodeAt(u))<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):a-56320+(o-55296<<10)+65536}}},1220:function(e,t,n){n(7209)("Int16",2,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},1249:function(e,t,n){var r=n(5089);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},1308:function(e,t,n){var r=n(7526).document;e.exports=r&&r.documentElement},1311:function(e,t,n){var r=n(4561),i=n(6140);e.exports=Object.keys||function(e){return r(e,i)}},1318:function(e,t,n){var r=n(2127);r(r.S,"Math",{fround:n(2122)})},1384:function(e,t,n){var r=n(7526),i=n(2780).set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,u="process"==n(5089)(a);e.exports=function(){var e,t,n,c=function(){var r,i;for(u&&(r=a.domain)&&r.exit();e;){i=e.fn,e=e.next;try{i()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(u)n=function(){a.nextTick(c)};else if(!o||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var l=s.resolve(void 0);n=function(){l.then(c)}}else n=function(){i.call(r,c)};else{var f=!0,d=document.createTextNode("");new o(c).observe(d,{characterData:!0}),n=function(){d.data=f=!f}}return function(r){var i={fn:r,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}},1430:function(e,t,n){var r=n(2127);r(r.S+r.F,"Object",{assign:n(8206)})},1449:function(e,t,n){"use strict";var r=n(2127),i=n(6543);r(r.P+r.F*!n(6884)([].reduce,!0),"Array",{reduce:function(e){return i(this,e,arguments.length,arguments[1],!1)}})},1464:function(e,t,n){var r=n(7221),i=n(1485),o=n(157);e.exports=function(e){return function(t,n,a){var s,u=r(t),c=i(u.length),l=o(a,c);if(e&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}}},1473:function(e){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},1485:function(e,t,n){var r=n(7087),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},1508:function(e,t,n){var r=n(906),i=n(7574)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},1626:function(e,t,n){var r=n(7967),i=n(4228),o=n(1311);e.exports=n(1763)?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),s=a.length,u=0;s>u;)r.f(e,n=a[u++],t[n]);return e}},1632:function(e,t,n){"use strict";var r=n(6197),i=n(2888);e.exports=n(8933)("Set",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return r.def(i(this,"Set"),e=0===e?0:e,e)}},r)},1763:function(e,t,n){e.exports=!n(9448)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},1879:function(e,t,n){var r=n(8641),i=n(627),o=n(7917),a=n(2127),s=n(3305),u=n(4228);a(a.S,"Reflect",{get:function e(t,n){var a,c,l=arguments.length<3?t:arguments[2];return u(t)===l?t[n]:(a=r.f(t,n))?o(a,"value")?a.value:void 0!==a.get?a.get.call(l):void 0:s(c=i(t))?e(c,n,l):void 0}})},1883:function(e,t,n){var r=n(2127);r(r.S,"Reflect",{has:function(e,t){return t in e}})},1895:function(e,t,n){n(923)("getOwnPropertyNames",(function(){return n(4765).f}))},1933:function(e,t,n){var r=n(2127),i=n(7526).isFinite;r(r.S,"Number",{isFinite:function(e){return"number"==typeof e&&i(e)}})},1996:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},2087:function(e,t,n){n(7209)("Uint16",2,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},2122:function(e,t,n){var r=n(3733),i=Math.pow,o=i(2,-52),a=i(2,-23),s=i(2,127)*(2-a),u=i(2,-126);e.exports=Math.fround||function(e){var t,n,i=Math.abs(e),c=r(e);return i<u?c*(i/u/a+1/o-1/o)*u*a:(n=(t=(1+a/o)*i)-(t-i))>s||n!=n?c*(1/0):c*n}},2127:function(e,t,n){var r=n(7526),i=n(6094),o=n(3341),a=n(8859),s=n(5052),u="prototype",c=function(e,t,n){var l,f,d,p,h=e&c.F,v=e&c.G,g=e&c.S,m=e&c.P,y=e&c.B,b=v?r:g?r[t]||(r[t]={}):(r[t]||{})[u],x=v?i:i[t]||(i[t]={}),w=x[u]||(x[u]={});for(l in v&&(n=t),n)d=((f=!h&&b&&void 0!==b[l])?b:n)[l],p=y&&f?s(d,r):m&&"function"==typeof d?s(Function.call,d):d,b&&a(b,l,d,e&c.U),x[l]!=d&&o(x,l,p),m&&w[l]!=d&&(w[l]=d)};r.core=i,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},2220:function(e,t,n){var r=n(2127),i=n(157),o=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,a=0;r>a;){if(t=+arguments[a++],i(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?o(t):o(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},2335:function(e,t,n){var r=n(2127),i=n(3733);r(r.S,"Math",{cbrt:function(e){return i(e=+e)*Math.pow(Math.abs(e),1/3)}})},2346:function(e,t,n){"use strict";var r=n(2127),i=n(8270),o=n(3048);r(r.P+r.F*n(9448)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(e){var t=i(this),n=o(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},2392:function(e,t,n){var r=n(2127),i=Math.atanh;r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},2405:function(e,t,n){"use strict";var r=n(2127),i=n(1212)(!1);r(r.P,"String",{codePointAt:function(e){return i(this,e)}})},2419:function(e,t,n){n(9650),n(935),n(6064),n(7067),n(2642),n(3e3),n(8647),n(1895),n(8236),n(3822),n(5572),n(9318),n(5032),n(9073),n(1430),n(8451),n(8132),n(7482),n(5049),n(489),n(5502),n(571),n(6108),n(4509),n(7727),n(6701),n(4419),n(1933),n(3157),n(9497),n(4104),n(210),n(6576),n(4437),n(8050),n(6648),n(5771),n(2392),n(2335),n(4896),n(4521),n(9147),n(1318),n(4352),n(5327),n(7509),n(5909),n(9584),n(345),n(9134),n(7901),n(6592),n(2220),n(3483),n(957),n(2975),n(2405),n(7224),n(8872),n(4894),n(177),n(7360),n(9011),n(4591),n(7334),n(7083),n(9213),n(8437),n(9839),n(6549),n(2818),n(8543),n(3559),n(4153),n(3292),n(2346),n(9429),n(7849),n(8951),n(7899),n(3863),n(4570),n(6511),n(5853),n(7075),n(3504),n(4913),n(9813),n(8892),n(8888),n(1449),n(7874),n(4609),n(3706),n(9620),n(7762),n(5144),n(5369),n(6209),n(5165),n(8301),n(4116),n(8604),n(9638),n(4040),n(8305),n(4701),n(341),n(6517),n(3386),n(1632),n(9397),n(8163),n(5706),n(660),n(8699),n(4702),n(333),n(1220),n(2087),n(8066),n(8537),n(7925),n(2490),n(7103),n(2586),n(2552),n(4376),n(5153),n(1879),n(2650),n(1104),n(1883),n(5433),n(5e3),n(5932),n(5443),n(6316),n(6094)},2468:function(e,t,n){var r=n(2127),i=n(9448),o=n(3344),a=/"/g,s=function(e,t,n,r){var i=String(o(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(r).replace(a,""")+'"'),s+">"+i+"</"+t+">"};e.exports=function(e,t){var n={};n[e]=t(s),r(r.P+r.F*i((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})),"String",n)}},2490:function(e,t,n){n(7209)("Float64",8,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},2535:function(e,t,n){"use strict";var r=n(4848),i=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var o=n.call(e,t);if("object"!=s(o))throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},2552:function(e,t,n){var r=n(7967),i=n(2127),o=n(4228),a=n(3048);i(i.S+i.F*n(9448)((function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(e,t,n){o(e),t=a(t,!0),o(n);try{return r.f(e,t,n),!0}catch(e){return!1}}})},2586:function(e,t,n){var r=n(2127),i=n(4719),o=n(3387),a=n(4228),s=n(3305),u=n(9448),c=n(5538),l=(n(7526).Reflect||{}).construct,f=u((function(){function e(){}return!(l((function(){}),[],e)instanceof e)})),d=!u((function(){l((function(){}))}));r(r.S+r.F*(f||d),"Reflect",{construct:function(e,t){o(e),a(t);var n=arguments.length<3?e:o(arguments[2]);if(d&&!f)return l(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 r=[null];return r.push.apply(r,t),new(c.apply(e,r))}var u=n.prototype,p=i(s(u)?u:Object.prototype),h=Function.apply.call(e,p,t);return s(h)?h:p}})},2642:function(e,t,n){var r=n(7221),i=n(8641).f;n(923)("getOwnPropertyDescriptor",(function(){return function(e,t){return i(r(e),t)}}))},2650:function(e,t,n){var r=n(8641),i=n(2127),o=n(4228);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return r.f(o(e),t)}})},2738:function(e,t,n){var r=n(7526).parseInt,i=n(629).trim,o=n(832),a=/^[-+]?0[xX]/;e.exports=8!==r(o+"08")||22!==r(o+"0x16")?function(e,t){var n=i(String(e),3);return r(n,t>>>0||(a.test(n)?16:10))}:r},2750:function(e){e.exports=!1},2780:function(e,t,n){var r,i,o,a=n(5052),s=n(4877),u=n(1308),c=n(6034),l=n(7526),f=l.process,d=l.setImmediate,p=l.clearImmediate,h=l.MessageChannel,v=l.Dispatch,g=0,m={},y="onreadystatechange",b=function(){var e=+this;if(m.hasOwnProperty(e)){var t=m[e];delete m[e],t()}},x=function(e){b.call(e.data)};d&&p||(d=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return m[++g]=function(){s("function"==typeof e?e:Function(e),t)},r(g),g},p=function(e){delete m[e]},"process"==n(5089)(f)?r=function(e){f.nextTick(a(b,e,1))}:v&&v.now?r=function(e){v.now(a(b,e,1))}:h?(o=(i=new h).port2,i.port1.onmessage=x,r=a(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(e){l.postMessage(e+"","*")},l.addEventListener("message",x,!1)):r=y in c("script")?function(e){u.appendChild(c("script"))[y]=function(){u.removeChild(this),b.call(e)}}:function(e){setTimeout(a(b,e,1),0)}),e.exports={set:d,clear:p}},2818:function(e,t,n){"use strict";n(2468)("small",(function(e){return function(){return e(this,"small","","")}}))},2888:function(e,t,n){var r=n(3305);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},2956:function(e,t,n){e.exports=!n(1763)&&!n(9448)((function(){return 7!=Object.defineProperty(n(6034)("div"),"a",{get:function(){return 7}}).a}))},2975:function(e,t,n){"use strict";var r=n(1212)(!0);n(8175)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},2988:function(e,t,n){var r=n(4415)("meta"),i=n(3305),o=n(7917),a=n(7967).f,u=0,c=Object.isExtensible||function(){return!0},l=!n(9448)((function(){return c(Object.preventExtensions({}))})),f=function(e){a(e,r,{value:{i:"O"+ ++u,w:{}}})},d=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==s(e)?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!c(e))return"F";if(!t)return"E";f(e)}return e[r].i},getWeak:function(e,t){if(!o(e,r)){if(!c(e))return!0;if(!t)return!1;f(e)}return e[r].w},onFreeze:function(e){return l&&d.NEED&&c(e)&&!o(e,r)&&f(e),e}}},3e3:function(e,t,n){var r=n(8270),i=n(627);n(923)("getPrototypeOf",(function(){return function(e){return i(r(e))}}))},3048:function(e,t,n){var r=n(3305);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")}},3133:function(e,t,n){var r=n(7087),i=n(1485);e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=i(t);if(t!==n)throw RangeError("Wrong length!");return n}},3157:function(e,t,n){var r=n(2127);r(r.S,"Number",{isInteger:n(3842)})},3191:function(e,t,n){var r=n(3606);e.exports=function(e,t){return new(r(e))(t)}},3292:function(e,t,n){var r=n(2127);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},3305:function(e){e.exports=function(e){return"object"==s(e)?null!==e:"function"==typeof e}},3341:function(e,t,n){var r=n(7967),i=n(1996);e.exports=n(1763)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},3344:function(e){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},3386:function(e,t,n){"use strict";var r=n(6197),i=n(2888),o="Map";e.exports=n(8933)(o,(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(e){var t=r.getEntry(i(this,o),e);return t&&t.v},set:function(e,t){return r.def(i(this,o),0===e?0:e,t)}},r,!0)},3387:function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},3483:function(e,t,n){var r=n(2127),i=n(7221),o=n(1485);r(r.S,"String",{raw:function(e){for(var t=i(e.raw),n=o(t.length),r=arguments.length,a=[],s=0;n>s;)a.push(String(t[s++])),s<r&&a.push(String(arguments[s]));return a.join("")}})},3504:function(e,t,n){"use strict";var r=n(2127),i=n(6179)(0),o=n(6884)([].forEach,!0);r(r.P+r.F*!o,"Array",{forEach:function(e){return i(this,e,arguments[1])}})},3559:function(e,t,n){"use strict";n(2468)("sub",(function(e){return function(){return e(this,"sub","","")}}))},3589:function(e,t,n){var r=n(7526).parseFloat,i=n(629).trim;e.exports=1/r(n(832)+"-0")!=-1/0?function(e){var t=i(String(e),3),n=r(t);return 0===n&&"-"==t.charAt(0)?-0:n}:r},3606:function(e,t,n){var r=n(3305),i=n(7981),o=n(7574)("species");e.exports=function(e){var t;return i(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&null===(t=t[o])&&(t=void 0)),void 0===t?Array:t}},3706:function(e,t,n){"use strict";var r=n(2127),i=n(7221),o=n(7087),a=n(1485),s=[].lastIndexOf,u=!!s&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(u||!n(6884)(s)),"Array",{lastIndexOf:function(e){if(u)return s.apply(this,arguments)||0;var t=i(this),n=a(t.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,o(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}})},3733:function(e){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},3822:function(e,t,n){var r=n(3305),i=n(2988).onFreeze;n(923)("seal",(function(e){return function(t){return e&&r(t)?e(i(t)):t}}))},3842:function(e,t,n){var r=n(3305),i=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&i(e)===e}},3844:function(e,t,n){var r=n(7967).f,i=n(7917),o=n(7574)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},3855:function(e,t,n){!function(e){var t=function(){try{return!!Symbol.iterator}catch(e){return!1}}(),n=function(e){var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t&&(n[Symbol.iterator]=function(){return n}),n},r=function(e){return encodeURIComponent(e).replace(/%20/g,"+")},i=function(e){return decodeURIComponent(String(e).replace(/\+/g," "))};(function(){try{var t=e.URLSearchParams;return"a=1"===new t("?a=1").toString()&&"function"==typeof t.prototype.set&&"function"==typeof t.prototype.entries}catch(e){return!1}})()||function(){var i=function(e){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var t=s(e);if("undefined"===t);else if("string"===t)""!==e&&this._fromString(e);else if(e instanceof i){var n=this;e.forEach((function(e,t){n.append(t,e)}))}else{if(null===e||"object"!==t)throw new TypeError("Unsupported input's type for URLSearchParams");if("[object Array]"===Object.prototype.toString.call(e))for(var r=0;r<e.length;r++){var o=e[r];if("[object Array]"!==Object.prototype.toString.call(o)&&2===o.length)throw new TypeError("Expected [string, any] as entry at index "+r+" of URLSearchParams's input");this.append(o[0],o[1])}else for(var a in e)e.hasOwnProperty(a)&&this.append(a,e[a])}},o=i.prototype;o.append=function(e,t){e in this._entries?this._entries[e].push(String(t)):this._entries[e]=[String(t)]},o.delete=function(e){delete this._entries[e]},o.get=function(e){return e in this._entries?this._entries[e][0]:null},o.getAll=function(e){return e in this._entries?this._entries[e].slice(0):[]},o.has=function(e){return e in this._entries},o.set=function(e,t){this._entries[e]=[String(t)]},o.forEach=function(e,t){var n;for(var r in this._entries)if(this._entries.hasOwnProperty(r)){n=this._entries[r];for(var i=0;i<n.length;i++)e.call(t,n[i],r,this)}},o.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),n(e)},o.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),n(e)},o.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),n(e)},t&&(o[Symbol.iterator]=o.entries),o.toString=function(){var e=[];return this.forEach((function(t,n){e.push(r(n)+"="+r(t))})),e.join("&")},Object.defineProperty(o,"size",{get:function(){return this._entries?Object.keys(this._entries).length:0}}),e.URLSearchParams=i}();var o=e.URLSearchParams.prototype;"function"!=typeof o.sort&&(o.sort=function(){var e=this,t=[];this.forEach((function(n,r){t.push([r,n]),e._entries||e.delete(r)})),t.sort((function(e,t){return e[0]<t[0]?-1:e[0]>t[0]?1:0})),e._entries&&(e._entries={});for(var n=0;n<t.length;n++)this.append(t[n][0],t[n][1])}),"function"!=typeof o._fromString&&Object.defineProperty(o,"_fromString",{enumerable:!1,configurable:!1,writable:!1,value:function(e){if(this._entries)this._entries={};else{var t=[];this.forEach((function(e,n){t.push(n)}));for(var n=0;n<t.length;n++)this.delete(t[n])}var r,o=(e=e.replace(/^\?/,"")).split("&");for(n=0;n<o.length;n++)r=o[n].split("="),this.append(i(r[0]),r.length>1?i(r.slice(1).join("=")):"")}})}(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this),function(e){if(function(){try{var t=new e.URL("b","http://a");return t.pathname="c d","http://a/c%20d"===t.href&&t.searchParams}catch(e){return!1}}()||function(){var t=e.URL,n=function(t,n){"string"!=typeof t&&(t=String(t)),n&&"string"!=typeof n&&(n=String(n));var r,i=document;if(n&&(void 0===e.location||n!==e.location.href)){n=n.toLowerCase(),(r=(i=document.implementation.createHTMLDocument("")).createElement("base")).href=n,i.head.appendChild(r);try{if(0!==r.href.indexOf(n))throw new Error(r.href)}catch(e){throw new Error("URL unable to set base "+n+" due to "+e)}}var o=i.createElement("a");o.href=t,r&&(i.body.appendChild(o),o.href=o.href);var a=i.createElement("input");if(a.type="url",a.value=t,":"===o.protocol||!/:/.test(o.href)||!a.checkValidity()&&!n)throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:o});var s=new e.URLSearchParams(this.search),u=!0,c=!0,l=this;["append","delete","set"].forEach((function(e){var t=s[e];s[e]=function(){t.apply(s,arguments),u&&(c=!1,l.search=s.toString(),c=!0)}})),Object.defineProperty(this,"searchParams",{value:s,enumerable:!0});var f=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==f&&(f=this.search,c&&(u=!1,this.searchParams._fromString(this.search),u=!0))}})},r=n.prototype;["hash","host","hostname","port","protocol"].forEach((function(e){!function(e){Object.defineProperty(r,e,{get:function(){return this._anchorElement[e]},set:function(t){this._anchorElement[e]=t},enumerable:!0})}(e)})),Object.defineProperty(r,"search",{get:function(){return this._anchorElement.search},set:function(e){this._anchorElement.search=e,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(r,{toString:{get:function(){var e=this;return function(){return e.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(e){this._anchorElement.href=e,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(e){this._anchorElement.pathname=e},enumerable:!0},origin:{get:function(){var e={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],t=this._anchorElement.port!=e&&""!==this._anchorElement.port;return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(t?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(e){},enumerable:!0},username:{get:function(){return""},set:function(e){},enumerable:!0}}),n.createObjectURL=function(e){return t.createObjectURL.apply(t,arguments)},n.revokeObjectURL=function(e){return t.revokeObjectURL.apply(t,arguments)},e.URL=n}(),void 0!==e.location&&!("origin"in e.location)){var t=function(){return e.location.protocol+"//"+e.location.hostname+(e.location.port?":"+e.location.port:"")};try{Object.defineProperty(e.location,"origin",{get:t,enumerable:!0})}catch(n){setInterval((function(){e.location.origin=t()}),100)}}}(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this)},3863:function(e,t,n){"use strict";var r=n(5052),i=n(2127),o=n(8270),a=n(7368),s=n(1508),u=n(1485),c=n(7227),l=n(762);i(i.S+i.F*!n(8931)((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,i,f,d=o(e),p="function"==typeof this?this:Array,h=arguments.length,v=h>1?arguments[1]:void 0,g=void 0!==v,m=0,y=l(d);if(g&&(v=r(v,h>2?arguments[2]:void 0,2)),null==y||p==Array&&s(y))for(n=new p(t=u(d.length));t>m;m++)c(n,m,g?v(d[m],m):d[m]);else for(f=y.call(d),n=new p;!(i=f.next()).done;m++)c(n,m,g?a(f,v,[i.value,m],!0):i.value);return n.length=m,n}})},4040:function(e,t,n){"use strict";var r=n(4228),i=n(1485),o=n(8828),a=n(2535);n(9228)("match",1,(function(e,t,n,s){return[function(n){var r=e(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=s(n,e,this);if(t.done)return t.value;var u=r(e),c=String(this);if(!u.global)return a(u,c);var l=u.unicode;u.lastIndex=0;for(var f,d=[],p=0;null!==(f=a(u,c));){var h=String(f[0]);d[p]=h,""===h&&(u.lastIndex=o(c,i(u.lastIndex),l)),p++}return 0===p?null:d}]}))},4104:function(e,t,n){var r=n(2127),i=n(3842),o=Math.abs;r(r.S,"Number",{isSafeInteger:function(e){return i(e)&&o(e)<=9007199254740991}})},4116:function(e,t,n){"use strict";var r=n(9600);n(2127)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},4153:function(e,t,n){"use strict";n(2468)("sup",(function(e){return function(){return e(this,"sup","","")}}))},4228:function(e,t,n){var r=n(3305);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},4258:function(e,t,n){"use strict";var r=n(3387);function i(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)}},4352:function(e,t,n){var r=n(2127),i=Math.abs;r(r.S,"Math",{hypot:function(e,t){for(var n,r,o=0,a=0,s=arguments.length,u=0;a<s;)u<(n=i(arguments[a++]))?(o=o*(r=u/n)*r+1,u=n):o+=n>0?(r=n/u)*r:n;return u===1/0?1/0:u*Math.sqrt(o)}})},4376:function(e,t,n){var r=n(2127),i=n(8641).f,o=n(4228);r(r.S,"Reflect",{deleteProperty:function(e,t){var n=i(o(e),t);return!(n&&!n.configurable)&&delete e[t]}})},4415:function(e){var t=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+n).toString(36))}},4419:function(e,t,n){var r=n(2127);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},4437:function(e,t,n){var r=n(2127),i=n(3589);r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},4438:function(e,t,n){"use strict";var r=n(8270),i=n(157),o=n(1485);e.exports=[].copyWithin||function(e,t){var n=r(this),a=o(n.length),s=i(e,a),u=i(t,a),c=arguments.length>2?arguments[2]:void 0,l=Math.min((void 0===c?a:i(c,a))-u,a-s),f=1;for(u<s&&s<u+l&&(f=-1,u+=l-1,s+=l-1);l-- >0;)u in n?n[s]=n[u]:delete n[s],s+=f,u+=f;return n}},4509:function(e,t,n){"use strict";var r=n(7526),i=n(7917),o=n(5089),a=n(8880),s=n(3048),u=n(9448),c=n(9415).f,l=n(8641).f,f=n(7967).f,d=n(629).trim,p="Number",h=r[p],v=h,g=h.prototype,m=o(n(4719)(g))==p,y="trim"in String.prototype,b=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){var n,r,i,o=(t=y?t.trim():d(t,3)).charCodeAt(0);if(43===o||45===o){if(88===(n=t.charCodeAt(2))||120===n)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+t}for(var a,u=t.slice(2),c=0,l=u.length;c<l;c++)if((a=u.charCodeAt(c))<48||a>i)return NaN;return parseInt(u,r)}}return+t};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof h&&(m?u((function(){g.valueOf.call(n)})):o(n)!=p)?a(new v(b(t)),n,h):b(t)};for(var x,w=n(1763)?c(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),_=0;w.length>_;_++)i(v,x=w[_])&&!i(h,x)&&f(h,x,l(v,x));h.prototype=g,g.constructor=h,n(8859)(r,p,h)}},4514:function(e,t,n){var r=n(7526).navigator;e.exports=r&&r.userAgent||""},4521:function(e,t,n){var r=n(2127),i=Math.exp;r(r.S,"Math",{cosh:function(e){return(i(e=+e)+i(-e))/2}})},4556:function(e,t,n){var r=n(6094),i=n(7526),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(2750)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},4561:function(e,t,n){var r=n(7917),i=n(7221),o=n(1464)(!1),a=n(766)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~o(c,n)||c.push(n));return c}},4570:function(e,t,n){"use strict";var r=n(2127),i=n(7227);r(r.S+r.F*n(9448)((function(){function e(){}return!(Array.of.call(e)instanceof e)})),"Array",{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)i(n,e,arguments[e++]);return n.length=t,n}})},4591:function(e,t,n){"use strict";n(2468)("blink",(function(e){return function(){return e(this,"blink","","")}}))},4609:function(e,t,n){"use strict";var r=n(2127),i=n(1464)(!1),o=[].indexOf,a=!!o&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(a||!n(6884)(o)),"Array",{indexOf:function(e){return a?o.apply(this,arguments)||0:i(this,e,arguments[1])}})},4701:function(e,t,n){"use strict";var r=n(4228),i=n(7359),o=n(2535);n(9228)("search",1,(function(e,t,n,a){return[function(n){var r=e(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=a(n,e,this);if(t.done)return t.value;var s=r(e),u=String(this),c=s.lastIndex;i(c,0)||(s.lastIndex=0);var l=o(s,u);return i(s.lastIndex,c)||(s.lastIndex=c),null===l?-1:l.index}]}))},4702:function(e,t,n){n(7209)("Uint8",1,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},4719:function(e,t,n){var r=n(4228),i=n(1626),o=n(6140),a=n(766)("IE_PROTO"),s=function(){},u="prototype",c=function(){var e,t=n(6034)("iframe"),r=o.length;for(t.style.display="none",n(1308).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;r--;)delete c[u][o[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[u]=r(e),n=new s,s[u]=null,n[a]=e):n=c(),void 0===t?n:i(n,t)}},4765:function(e,t,n){var r=n(7221),i=n(9415).f,o={}.toString,a="object"==("undefined"==typeof window?"undefined":s(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))}},4848:function(e,t,n){var r=n(5089),i=n(7574)("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}},4877:function(e){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},4894:function(e,t,n){var r=n(2127);r(r.P,"String",{repeat:n(7926)})},4896:function(e,t,n){var r=n(2127);r(r.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},4913:function(e,t,n){"use strict";var r=n(2127),i=n(6179)(1);r(r.P+r.F*!n(6884)([].map,!0),"Array",{map:function(e){return i(this,e,arguments[1])}})},4970:function(e){e.exports=function(e,t){return{value:t,done:!!e}}},4974:function(e){(e.exports=function(){this.events={}}).prototype={emit:function(e){var t=[].slice.call(arguments,1);[].slice.call(this.events[e]||[]).filter((function(e){e.apply(this,t)}))},on:function(e,t){return(this.events[e]=this.events[e]||[]).push(t),function(){this.events[e]=this.events[e].filter((function(e){return e!==t}))}.bind(this)}}},5e3:function(e,t,n){var r=n(2127);r(r.S,"Reflect",{ownKeys:n(6222)})},5032:function(e,t,n){var r=n(3305);n(923)("isSealed",(function(e){return function(t){return!r(t)||!!e&&e(t)}}))},5049:function(e,t,n){var r=n(2127);r(r.P,"Function",{bind:n(5538)})},5052:function(e,t,n){var r=n(3387);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){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)}}},5089:function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},5122:function(e,t,n){var r=n(5089);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=r(e))throw TypeError(t);return+e}},5144:function(e,t,n){"use strict";var r=n(2127),i=n(6179)(5),o="find",a=!0;o in[]&&Array(1)[o]((function(){a=!1})),r(r.P+r.F*a,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(8184)(o)},5153:function(e,t,n){"use strict";var r=n(2127),i=n(4228),o=function(e){this._t=i(e),this._i=0;var t,n=this._k=[];for(t in e)n.push(t)};n(6032)(o,"Object",(function(){var e,t=this,n=t._k;do{if(t._i>=n.length)return{value:void 0,done:!0}}while(!((e=n[t._i++])in t._t));return{value:e,done:!1}})),r(r.S,"Reflect",{enumerate:function(e){return new o(e)}})},5165:function(e,t,n){"use strict";var r=n(8184),i=n(4970),o=n(906),a=n(7221);e.exports=n(8175)(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},5170:function(e,t,n){var r=n(3305),i=n(4228),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(5052)(Function.call,n(8641).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},5203:function(e,t,n){var r=n(7574)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},5327:function(e,t,n){var r=n(2127),i=Math.imul;r(r.S+r.F*n(9448)((function(){return-5!=i(4294967295,5)||2!=i.length})),"Math",{imul:function(e,t){var n=65535,r=+e,i=+t,o=n&r,a=n&i;return 0|o*a+((n&r>>>16)*a+o*(n&i>>>16)<<16>>>0)}})},5369:function(e,t,n){"use strict";var r=n(2127),i=n(6179)(6),o="findIndex",a=!0;o in[]&&Array(1)[o]((function(){a=!1})),r(r.P+r.F*a,"Array",{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(8184)(o)},5385:function(e,t,n){"use strict";var r=n(9448),i=Date.prototype.getTime,o=Date.prototype.toISOString,a=function(e){return e>9?e:"0"+e};e.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-50000000000001))}))||!r((function(){o.call(new Date(NaN))}))?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),r=t<0?"-":t>9999?"+":"";return r+("00000"+Math.abs(t)).slice(r?-6:-4)+"-"+a(e.getUTCMonth()+1)+"-"+a(e.getUTCDate())+"T"+a(e.getUTCHours())+":"+a(e.getUTCMinutes())+":"+a(e.getUTCSeconds())+"."+(n>99?n:"0"+a(n))+"Z"}:o},5392:function(e,t,n){var r=n(7526),i=n(6094),o=n(2750),a=n(7960),s=n(7967).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},5411:function(e,t,n){var r=n(3305),i=n(5089),o=n(7574)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},5433:function(e,t,n){var r=n(2127),i=n(4228),o=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(e){return i(e),!o||o(e)}})},5443:function(e,t,n){var r=n(7967),i=n(8641),o=n(627),a=n(7917),s=n(2127),u=n(1996),c=n(4228),l=n(3305);s(s.S,"Reflect",{set:function e(t,n,s){var f,d,p=arguments.length<4?t:arguments[3],h=i.f(c(t),n);if(!h){if(l(d=o(t)))return e(d,n,s,p);h=u(0)}if(a(h,"value")){if(!1===h.writable||!l(p))return!1;if(f=i.f(p,n)){if(f.get||f.set||!1===f.writable)return!1;f.value=s,r.f(p,n,f)}else r.f(p,n,u(0,s));return!0}return void 0!==h.set&&(h.set.call(p,s),!0)}})},5502:function(e,t,n){"use strict";var r=n(3305),i=n(627),o=n(7574)("hasInstance"),a=Function.prototype;o in a||n(7967).f(a,o,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;for(;e=i(e);)if(this.prototype===e)return!0;return!1}})},5538:function(e,t,n){"use strict";var r=n(3387),i=n(3305),o=n(4877),a=[].slice,s={};e.exports=Function.bind||function(e){var t=r(this),n=a.call(arguments,1),u=function(){var r=n.concat(a.call(arguments));return this instanceof u?function(e,t,n){if(!(t in s)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";s[t]=Function("F,a","return new F("+r.join(",")+")")}return s[t](e,n)}(t,r.length,r):o(t,r,e)};return i(t.prototype)&&(u.prototype=t.prototype),u}},5551:function(e){var t=Math.expm1;e.exports=!t||t(10)>22025.465794806718||t(10)<22025.465794806718||-2e-17!=t(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:t},5564:function(e,t,n){"use strict";var r=n(8270),i=n(157),o=n(1485);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),u=a>2?arguments[2]:void 0,c=void 0===u?n:i(u,n);c>s;)t[s++]=e;return t}},5572:function(e,t,n){var r=n(3305),i=n(2988).onFreeze;n(923)("preventExtensions",(function(e){return function(t){return e&&r(t)?e(i(t)):t}}))},5706:function(e,t,n){"use strict";var r=n(2127),i=n(237),o=n(8032),a=n(4228),s=n(157),u=n(1485),c=n(3305),l=n(7526).ArrayBuffer,f=n(9190),d=o.ArrayBuffer,p=o.DataView,h=i.ABV&&l.isView,v=d.prototype.slice,g=i.VIEW,m="ArrayBuffer";r(r.G+r.W+r.F*(l!==d),{ArrayBuffer:d}),r(r.S+r.F*!i.CONSTR,m,{isView:function(e){return h&&h(e)||c(e)&&g in e}}),r(r.P+r.U+r.F*n(9448)((function(){return!new d(2).slice(1,void 0).byteLength})),m,{slice:function(e,t){if(void 0!==v&&void 0===t)return v.call(a(this),e);for(var n=a(this).byteLength,r=s(e,n),i=s(void 0===t?n:t,n),o=new(f(this,d))(u(i-r)),c=new p(this),l=new p(o),h=0;r<i;)l.setUint8(h++,c.getUint8(r++));return o}}),n(5762)(m)},5762:function(e,t,n){"use strict";var r=n(7526),i=n(7967),o=n(1763),a=n(7574)("species");e.exports=function(e){var t=r[e];o&&t&&!t[a]&&i.f(t,a,{configurable:!0,get:function(){return this}})}},5771:function(e,t,n){var r=n(2127),i=Math.asinh;r(r.S+r.F*!(i&&1/i(0)>0),"Math",{asinh:function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):Math.log(t+Math.sqrt(t*t+1)):t}})},5853:function(e,t,n){"use strict";var r=n(2127),i=n(1308),o=n(5089),a=n(157),s=n(1485),u=[].slice;r(r.P+r.F*n(9448)((function(){i&&u.call(i)})),"Array",{slice:function(e,t){var n=s(this.length),r=o(this);if(t=void 0===t?n:t,"Array"==r)return u.call(this,e,t);for(var i=a(e,n),c=a(t,n),l=s(c-i),f=new Array(l),d=0;d<l;d++)f[d]="String"==r?this.charAt(i+d):this[i+d];return f}})},5909:function(e,t,n){var r=n(2127);r(r.S,"Math",{log1p:n(1473)})},5932:function(e,t,n){var r=n(2127),i=n(4228),o=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(e){i(e);try{return o&&o(e),!0}catch(e){return!1}}})},5957:function(e,t,n){var r=n(4228),i=n(3305),o=n(4258);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}},5969:function(e,t,n){var r=n(1311),i=n(1060),o=n(8449);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var a,s=n(e),u=o.f,c=0;s.length>c;)u.call(e,a=s[c++])&&t.push(a);return t}},6032:function(e,t,n){"use strict";var r=n(4719),i=n(1996),o=n(3844),a={};n(3341)(a,n(7574)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},6034:function(e,t,n){var r=n(3305),i=n(7526).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},6064:function(e,t,n){var r=n(2127);r(r.S+r.F*!n(1763),"Object",{defineProperty:n(7967).f})},6065:function(e,t,n){var r=n(8859);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},6094:function(e){var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},6108:function(e,t,n){var r=n(2127),i=n(3589);r(r.G+r.F*(parseFloat!=i),{parseFloat:i})},6140:function(e){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},6179:function(e,t,n){var r=n(5052),i=n(1249),o=n(8270),a=n(1485),s=n(3191);e.exports=function(e,t){var n=1==e,u=2==e,c=3==e,l=4==e,f=6==e,d=5==e||f,p=t||s;return function(t,s,h){for(var v,g,m=o(t),y=i(m),b=r(s,h,3),x=a(y.length),w=0,_=n?p(t,x):u?p(t,0):void 0;x>w;w++)if((d||w in y)&&(g=b(v=y[w],w,m),e))if(n)_[w]=g;else if(g)switch(e){case 3:return!0;case 5:return v;case 6:return w;case 2:_.push(v)}else if(l)return!1;return f?-1:c||l?l:_}}},6197:function(e,t,n){"use strict";var r=n(7967).f,i=n(4719),o=n(6065),a=n(5052),s=n(6440),u=n(8790),c=n(8175),l=n(4970),f=n(5762),d=n(1763),p=n(2988).fastKey,h=n(2888),v=d?"_s":"size",g=function(e,t){var n,r=p(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,c){var l=e((function(e,r){s(e,l,t,"_i"),e._t=t,e._i=i(null),e._f=void 0,e._l=void 0,e[v]=0,null!=r&&u(r,n,e[c],e)}));return o(l.prototype,{clear:function(){for(var e=h(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[v]=0},delete:function(e){var n=h(this,t),r=g(n,e);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[v]--}return!!r},forEach:function(e){h(this,t);for(var n,r=a(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!g(h(this,t),e)}}),d&&r(l.prototype,"size",{get:function(){return h(this,t)[v]}}),l},def:function(e,t,n){var r,i,o=g(e,t);return o?o.v=n:(e._l=o={i:i=p(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=o),r&&(r.n=o),e[v]++,"F"!==i&&(e._i[i]=o)),e},getEntry:g,setStrong:function(e,t,n){c(e,t,(function(e,n){this._t=h(e,t),this._k=n,this._l=void 0}),(function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?l(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(e._t=void 0,l(1))}),n?"entries":"values",!n,!0),f(t)}}},6209:function(e,t,n){n(5762)("Array")},6222:function(e,t,n){var r=n(9415),i=n(1060),o=n(4228),a=n(7526).Reflect;e.exports=a&&a.ownKeys||function(e){var t=r.f(o(e)),n=i.f;return n?t.concat(n(e)):t}},6284:function(t,n,r){"use strict";function i(){return"[object process]"===Object.prototype.toString.call(void 0!==e?e:0)}function o(e,t){return e.require(t)}r.d(n,{fj:function(){return o},wD:function(){return i}}),t=r.hmd(t)},6316:function(e,t,n){var r=n(2127),i=n(5170);i&&r(r.S,"Reflect",{setPrototypeOf:function(e,t){i.check(e,t);try{return i.set(e,t),!0}catch(e){return!1}}})},6440:function(e){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},6511:function(e,t,n){"use strict";var r=n(2127),i=n(7221),o=[].join;r(r.P+r.F*(n(1249)!=Object||!n(6884)(o)),"Array",{join:function(e){return o.call(i(this),void 0===e?",":e)}})},6517:function(e,t,n){"use strict";var r,i,o,a,s=n(2750),u=n(7526),c=n(5052),l=n(4848),f=n(2127),d=n(3305),p=n(3387),h=n(6440),v=n(8790),g=n(9190),m=n(2780).set,y=n(1384)(),b=n(4258),x=n(128),w=n(4514),_=n(5957),S="Promise",O=u.TypeError,k=u.process,E=k&&k.versions,j=E&&E.v8||"",T=u[S],C="process"==l(k),A=function(){},P=i=b.f,M=!!function(){try{var e=T.resolve(1),t=(e.constructor={})[n(7574)("species")]=function(e){e(A,A)};return(C||"function"==typeof PromiseRejectionEvent)&&e.then(A)instanceof t&&0!==j.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(e){}}(),I=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},R=function(e,t){if(!e._n){e._n=!0;var n=e._c;y((function(){for(var r=e._v,i=1==e._s,o=0,a=function(t){var n,o,a,s=i?t.ok:t.fail,u=t.resolve,c=t.reject,l=t.domain;try{s?(i||(2==e._h&&N(e),e._h=1),!0===s?n=r:(l&&l.enter(),n=s(r),l&&(l.exit(),a=!0)),n===t.promise?c(O("Promise-chain cycle")):(o=I(n))?o.call(n,u,c):u(n)):c(r)}catch(e){l&&!a&&l.exit(),c(e)}};n.length>o;)a(n[o++]);e._c=[],e._n=!1,t&&!e._h&&D(e)}))}},D=function(e){m.call(u,(function(){var t,n,r,i=e._v,o=L(e);if(o&&(t=x((function(){C?k.emit("unhandledRejection",i,e):(n=u.onunhandledrejection)?n({promise:e,reason:i}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",i)})),e._h=C||L(e)?2:1),e._a=void 0,o&&t.e)throw t.v}))},L=function(e){return 1!==e._h&&0===(e._a||e._c).length},N=function(e){m.call(u,(function(){var t;C?k.emit("rejectionHandled",e):(t=u.onrejectionhandled)&&t({promise:e,reason:e._v})}))},F=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),R(t,!0))},B=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw O("Promise can't be resolved itself");(t=I(e))?y((function(){var r={_w:n,_d:!1};try{t.call(e,c(B,r,1),c(F,r,1))}catch(e){F.call(r,e)}})):(n._v=e,n._s=1,R(n,!1))}catch(e){F.call({_w:n,_d:!1},e)}}};M||(T=function(e){h(this,T,S,"_h"),p(e),r.call(this);try{e(c(B,this,1),c(F,this,1))}catch(e){F.call(this,e)}},(r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(6065)(T.prototype,{then:function(e,t){var n=P(g(this,T));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=C?k.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&R(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r;this.promise=e,this.resolve=c(B,e,1),this.reject=c(F,e,1)},b.f=P=function(e){return e===T||e===a?new o(e):i(e)}),f(f.G+f.W+f.F*!M,{Promise:T}),n(3844)(T,S),n(5762)(S),a=n(6094)[S],f(f.S+f.F*!M,S,{reject:function(e){var t=P(this);return(0,t.reject)(e),t.promise}}),f(f.S+f.F*(s||!M),S,{resolve:function(e){return _(s&&this===a?T:this,e)}}),f(f.S+f.F*!(M&&n(8931)((function(e){T.all(e).catch(A)}))),S,{all:function(e){var t=this,n=P(t),r=n.resolve,i=n.reject,o=x((function(){var n=[],o=0,a=1;v(e,!1,(function(e){var s=o++,u=!1;n.push(void 0),a++,t.resolve(e).then((function(e){u||(u=!0,n[s]=e,--a||r(n))}),i)})),--a||r(n)}));return o.e&&i(o.v),n.promise},race:function(e){var t=this,n=P(t),r=n.reject,i=x((function(){v(e,!1,(function(e){t.resolve(e).then(n.resolve,r)}))}));return i.e&&r(i.v),n.promise}})},6543:function(e,t,n){var r=n(3387),i=n(8270),o=n(1249),a=n(1485);e.exports=function(e,t,n,s,u){r(t);var c=i(e),l=o(c),f=a(c.length),d=u?f-1:0,p=u?-1:1;if(n<2)for(;;){if(d in l){s=l[d],d+=p;break}if(d+=p,u?d<0:f<=d)throw TypeError("Reduce of empty array with no initial value")}for(;u?d>=0:f>d;d+=p)d in l&&(s=t(s,l[d],d,c));return s}},6549:function(e,t,n){"use strict";n(2468)("link",(function(e){return function(t){return e(this,"a","href",t)}}))},6576:function(e,t,n){var r=n(2127);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},6592:function(e,t,n){var r=n(2127);r(r.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},6648:function(e,t,n){var r=n(2127),i=n(1473),o=Math.sqrt,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:i(e-1+o(e-1)*o(e+1))}})},6701:function(e,t,n){"use strict";var r=n(2127),i=n(9448),o=n(5122),a=1..toPrecision;r(r.P+r.F*(i((function(){return"1"!==a.call(1,void 0)}))||!i((function(){a.call({})}))),"Number",{toPrecision:function(e){var t=o(this,"Number#toPrecision: incorrect invocation!");return void 0===e?a.call(t):a.call(t,e)}})},6884:function(e,t,n){"use strict";var r=n(9448);e.exports=function(e,t){return!!e&&r((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},6936:function(e,t,n){"use strict";n.d(t,{$N:function(){return d},$X:function(){return u},Dl:function(){return s},FA:function(){return h},M6:function(){return f},VZ:function(){return o},eJ:function(){return a},gO:function(){return l},pq:function(){return c}});var r=n(6284),i={};function o(){return(0,r.wD)()?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function a(){var e=o(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function s(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}function u(e){if(e.message)return e.message;if(e.exception&&e.exception.values&&e.exception.values[0]){var t=e.exception.values[0];return t.type&&t.value?t.type+": "+t.value:t.type||t.value||e.event_id||"<unknown>"}return e.event_id||"<unknown>"}function c(e){var t=o();if(!("console"in t))return e();var n=t.console,r={};["debug","info","warn","error","log","assert"].forEach((function(e){e in t.console&&n[e].__sentry_original__&&(r[e]=n[e],n[e]=n[e].__sentry_original__)}));var i=e();return Object.keys(r).forEach((function(e){n[e]=r[e]})),i}function l(e,t,n){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].value=e.exception.values[0].value||t||"",e.exception.values[0].type=e.exception.values[0].type||n||"Error"}function f(e,t){void 0===t&&(t={});try{e.exception.values[0].mechanism=e.exception.values[0].mechanism||{},Object.keys(t).forEach((function(n){e.exception.values[0].mechanism[n]=t[n]}))}catch(e){}}function d(){try{return document.location.href}catch(e){return""}}var p=6e4;function h(e,t){if(!t)return p;var n=parseInt(""+t,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+t);return isNaN(r)?p:r-e}},6942:function(e){e.exports=function(e){e.events={}}},7067:function(e,t,n){var r=n(2127);r(r.S+r.F*!n(1763),"Object",{defineProperties:n(1626)})},7075:function(e,t,n){"use strict";var r=n(2127),i=n(3387),o=n(8270),a=n(9448),s=[].sort,u=[1,2,3];r(r.P+r.F*(a((function(){u.sort(void 0)}))||!a((function(){u.sort(null)}))||!n(6884)(s)),"Array",{sort:function(e){return void 0===e?s.call(o(this)):s.call(o(this),i(e))}})},7083:function(e,t,n){"use strict";n(2468)("fixed",(function(e){return function(){return e(this,"tt","","")}}))},7087:function(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},7103:function(e,t,n){var r=n(2127),i=n(3387),o=n(4228),a=(n(7526).Reflect||{}).apply,s=Function.apply;r(r.S+r.F*!n(9448)((function(){a((function(){}))})),"Reflect",{apply:function(e,t,n){var r=i(e),u=o(n);return a?a(r,t,u):s.call(r,t,u)}})},7209:function(e,t,n){"use strict";if(n(1763)){var r=n(2750),i=n(7526),o=n(9448),a=n(2127),u=n(237),c=n(8032),l=n(5052),f=n(6440),d=n(1996),p=n(3341),h=n(6065),v=n(7087),g=n(1485),m=n(3133),y=n(157),b=n(3048),x=n(7917),w=n(4848),_=n(3305),S=n(8270),O=n(1508),k=n(4719),E=n(627),j=n(9415).f,T=n(762),C=n(4415),A=n(7574),P=n(6179),M=n(1464),I=n(9190),R=n(5165),D=n(906),L=n(8931),N=n(5762),F=n(5564),B=n(4438),U=n(7967),z=n(8641),V=U.f,H=z.f,W=i.RangeError,q=i.TypeError,G=i.Uint8Array,Y="ArrayBuffer",K="Shared"+Y,$="BYTES_PER_ELEMENT",X="prototype",Q=Array[X],Z=c.ArrayBuffer,J=c.DataView,ee=P(0),te=P(2),ne=P(3),re=P(4),ie=P(5),oe=P(6),ae=M(!0),se=M(!1),ue=R.values,ce=R.keys,le=R.entries,fe=Q.lastIndexOf,de=Q.reduce,pe=Q.reduceRight,he=Q.join,ve=Q.sort,ge=Q.slice,me=Q.toString,ye=Q.toLocaleString,be=A("iterator"),xe=A("toStringTag"),we=C("typed_constructor"),_e=C("def_constructor"),Se=u.CONSTR,Oe=u.TYPED,ke=u.VIEW,Ee="Wrong length!",je=P(1,(function(e,t){return Me(I(e,e[_e]),t)})),Te=o((function(){return 1===new G(new Uint16Array([1]).buffer)[0]})),Ce=!!G&&!!G[X].set&&o((function(){new G(1).set({})})),Ae=function(e,t){var n=v(e);if(n<0||n%t)throw W("Wrong offset!");return n},Pe=function(e){if(_(e)&&Oe in e)return e;throw q(e+" is not a typed array!")},Me=function(e,t){if(!(_(e)&&we in e))throw q("It is not a typed array constructor!");return new e(t)},Ie=function(e,t){return Re(I(e,e[_e]),t)},Re=function(e,t){for(var n=0,r=t.length,i=Me(e,r);r>n;)i[n]=t[n++];return i},De=function(e,t,n){V(e,t,{get:function(){return this._d[n]}})},Le=function(e){var t,n,r,i,o,a,s=S(e),u=arguments.length,c=u>1?arguments[1]:void 0,f=void 0!==c,d=T(s);if(null!=d&&!O(d)){for(a=d.call(s),r=[],t=0;!(o=a.next()).done;t++)r.push(o.value);s=r}for(f&&u>2&&(c=l(c,arguments[2],2)),t=0,n=g(s.length),i=Me(this,n);n>t;t++)i[t]=f?c(s[t],t):s[t];return i},Ne=function(){for(var e=0,t=arguments.length,n=Me(this,t);t>e;)n[e]=arguments[e++];return n},Fe=!!G&&o((function(){ye.call(new G(1))})),Be=function(){return ye.apply(Fe?ge.call(Pe(this)):Pe(this),arguments)},Ue={copyWithin:function(e,t){return B.call(Pe(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return re(Pe(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return F.apply(Pe(this),arguments)},filter:function(e){return Ie(this,te(Pe(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return ie(Pe(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return oe(Pe(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){ee(Pe(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return se(Pe(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return ae(Pe(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return he.apply(Pe(this),arguments)},lastIndexOf:function(e){return fe.apply(Pe(this),arguments)},map:function(e){return je(Pe(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return de.apply(Pe(this),arguments)},reduceRight:function(e){return pe.apply(Pe(this),arguments)},reverse:function(){for(var e,t=this,n=Pe(t).length,r=Math.floor(n/2),i=0;i<r;)e=t[i],t[i++]=t[--n],t[n]=e;return t},some:function(e){return ne(Pe(this),e,arguments.length>1?arguments[1]:void 0)},sort:function(e){return ve.call(Pe(this),e)},subarray:function(e,t){var n=Pe(this),r=n.length,i=y(e,r);return new(I(n,n[_e]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,g((void 0===t?r:y(t,r))-i))}},ze=function(e,t){return Ie(this,ge.call(Pe(this),e,t))},Ve=function(e){Pe(this);var t=Ae(arguments[1],1),n=this.length,r=S(e),i=g(r.length),o=0;if(i+t>n)throw W(Ee);for(;o<i;)this[t+o]=r[o++]},He={entries:function(){return le.call(Pe(this))},keys:function(){return ce.call(Pe(this))},values:function(){return ue.call(Pe(this))}},We=function(e,t){return _(e)&&e[Oe]&&"symbol"!=s(t)&&t in e&&String(+t)==String(t)},qe=function(e,t){return We(e,t=b(t,!0))?d(2,e[t]):H(e,t)},Ge=function(e,t,n){return!(We(e,t=b(t,!0))&&_(n)&&x(n,"value"))||x(n,"get")||x(n,"set")||n.configurable||x(n,"writable")&&!n.writable||x(n,"enumerable")&&!n.enumerable?V(e,t,n):(e[t]=n.value,e)};Se||(z.f=qe,U.f=Ge),a(a.S+a.F*!Se,"Object",{getOwnPropertyDescriptor:qe,defineProperty:Ge}),o((function(){me.call({})}))&&(me=ye=function(){return he.call(this)});var Ye=h({},Ue);h(Ye,He),p(Ye,be,He.values),h(Ye,{slice:ze,set:Ve,constructor:function(){},toString:me,toLocaleString:Be}),De(Ye,"buffer","b"),De(Ye,"byteOffset","o"),De(Ye,"byteLength","l"),De(Ye,"length","e"),V(Ye,xe,{get:function(){return this[Oe]}}),e.exports=function(e,t,n,s){var c=e+((s=!!s)?"Clamped":"")+"Array",l="get"+e,d="set"+e,h=i[c],v=h||{},y=h&&E(h),b=!h||!u.ABV,x={},S=h&&h[X],O=function(e,n){V(e,n,{get:function(){return function(e,n){var r=e._d;return r.v[l](n*t+r.o,Te)}(this,n)},set:function(e){return function(e,n,r){var i=e._d;s&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),i.v[d](n*t+i.o,r,Te)}(this,n,e)},enumerable:!0})};b?(h=n((function(e,n,r,i){f(e,h,c,"_d");var o,a,s,u,l=0,d=0;if(_(n)){if(!(n instanceof Z||(u=w(n))==Y||u==K))return Oe in n?Re(h,n):Le.call(h,n);o=n,d=Ae(r,t);var v=n.byteLength;if(void 0===i){if(v%t)throw W(Ee);if((a=v-d)<0)throw W(Ee)}else if((a=g(i)*t)+d>v)throw W(Ee);s=a/t}else s=m(n),o=new Z(a=s*t);for(p(e,"_d",{b:o,o:d,l:a,e:s,v:new J(o)});l<s;)O(e,l++)})),S=h[X]=k(Ye),p(S,"constructor",h)):o((function(){h(1)}))&&o((function(){new h(-1)}))&&L((function(e){new h,new h(null),new h(1.5),new h(e)}),!0)||(h=n((function(e,n,r,i){var o;return f(e,h,c),_(n)?n instanceof Z||(o=w(n))==Y||o==K?void 0!==i?new v(n,Ae(r,t),i):void 0!==r?new v(n,Ae(r,t)):new v(n):Oe in n?Re(h,n):Le.call(h,n):new v(m(n))})),ee(y!==Function.prototype?j(v).concat(j(y)):j(v),(function(e){e in h||p(h,e,v[e])})),h[X]=S,r||(S.constructor=h));var T=S[be],C=!!T&&("values"==T.name||null==T.name),A=He.values;p(h,we,!0),p(S,Oe,c),p(S,ke,!0),p(S,_e,h),(s?new h(1)[xe]==c:xe in S)||V(S,xe,{get:function(){return c}}),x[c]=h,a(a.G+a.W+a.F*(h!=v),x),a(a.S,c,{BYTES_PER_ELEMENT:t}),a(a.S+a.F*o((function(){v.of.call(h,1)})),c,{from:Le,of:Ne}),$ in S||p(S,$,t),a(a.P,c,Ue),N(c),a(a.P+a.F*Ce,c,{set:Ve}),a(a.P+a.F*!C,c,He),r||S.toString==me||(S.toString=me),a(a.P+a.F*o((function(){new h(1).slice()})),c,{slice:ze}),a(a.P+a.F*(o((function(){return[1,2].toLocaleString()!=new h([1,2]).toLocaleString()}))||!o((function(){S.toLocaleString.call([1,2])}))),c,{toLocaleString:Be}),D[c]=C?T:A,r||C||p(S,be,A)}}else e.exports=function(){}},7221:function(e,t,n){var r=n(1249),i=n(3344);e.exports=function(e){return r(i(e))}},7224:function(e,t,n){"use strict";var r=n(2127),i=n(1485),o=n(8942),a="endsWith",s=""[a];r(r.P+r.F*n(5203)(a),"String",{endsWith:function(e){var t=o(this,e,a),n=arguments.length>1?arguments[1]:void 0,r=i(t.length),u=void 0===n?r:Math.min(i(n),r),c=String(e);return s?s.call(t,c,u):t.slice(u-c.length,u)===c}})},7227:function(e,t,n){"use strict";var r=n(7967),i=n(1996);e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},7334:function(e,t,n){"use strict";n(2468)("bold",(function(e){return function(){return e(this,"b","","")}}))},7359:function(e){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},7360:function(e,t,n){"use strict";n(2468)("anchor",(function(e){return function(t){return e(this,"a","name",t)}}))},7368:function(e,t,n){var r=n(4228);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}}},7482:function(e,t,n){"use strict";var r=n(4848),i={};i[n(7574)("toStringTag")]="z",i+""!="[object z]"&&n(8859)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},7509:function(e,t,n){var r=n(2127);r(r.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},7526:function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},7574:function(e,t,n){var r=n(4556)("wks"),i=n(4415),o=n(7526).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},7727:function(e,t,n){"use strict";var r=n(2127),i=n(7087),o=n(5122),a=n(7926),s=1..toFixed,u=Math.floor,c=[0,0,0,0,0,0],l="Number.toFixed: incorrect invocation!",f="0",d=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*c[n],c[n]=r%1e7,r=u(r/1e7)},p=function(e){for(var t=6,n=0;--t>=0;)n+=c[t],c[t]=u(n/e),n=n%e*1e7},h=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==c[e]){var n=String(c[e]);t=""===t?n:t+a.call(f,7-n.length)+n}return t},v=function(e,t,n){return 0===t?n:t%2==1?v(e,t-1,n*e):v(e*e,t/2,n)};r(r.P+r.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(9448)((function(){s.call({})}))),"Number",{toFixed:function(e){var t,n,r,s,u=o(this,l),c=i(e),g="",m=f;if(c<0||c>20)throw RangeError(l);if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(g="-",u=-u),u>1e-21)if(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(u*v(2,69,1))-69,n=t<0?u*v(2,-t,1):u/v(2,t,1),n*=4503599627370496,(t=52-t)>0){for(d(0,n),r=c;r>=7;)d(1e7,0),r-=7;for(d(v(10,r,1),0),r=t-1;r>=23;)p(1<<23),r-=23;p(1<<r),d(1,1),p(2),m=h()}else d(0,n),d(1<<-t,0),m=h()+a.call(f,c);return c>0?g+((s=m.length)<=c?"0."+a.call(f,c-s)+m:m.slice(0,s-c)+"."+m.slice(s-c)):g+m}})},7762:function(e,t,n){var r=n(2127);r(r.P,"Array",{fill:n(5564)}),n(8184)("fill")},7849:function(e,t,n){var r=Date.prototype,i="Invalid Date",o="toString",a=r[o],s=r.getTime;new Date(NaN)+""!=i&&n(8859)(r,o,(function(){var e=s.call(this);return e==e?a.call(this):i}))},7874:function(e,t,n){"use strict";var r=n(2127),i=n(6543);r(r.P+r.F*!n(6884)([].reduceRight,!0),"Array",{reduceRight:function(e){return i(this,e,arguments.length,arguments[1],!0)}})},7899:function(e,t,n){var r=n(2127);r(r.S,"Array",{isArray:n(7981)})},7901:function(e,t,n){var r=n(2127),i=n(5551),o=Math.exp;r(r.S,"Math",{tanh:function(e){var t=i(e=+e),n=i(-e);return t==1/0?1:n==1/0?-1:(t-n)/(o(e)+o(-e))}})},7917:function(e){var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},7925:function(e,t,n){n(7209)("Float32",4,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},7926:function(e,t,n){"use strict";var r=n(7087),i=n(3344);e.exports=function(e){var t=String(i(this)),n="",o=r(e);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(n+=t);return n}},7960:function(e,t,n){t.f=n(7574)},7967:function(e,t,n){var r=n(4228),i=n(2956),o=n(3048),a=Object.defineProperty;t.f=n(1763)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(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}},7981:function(e,t,n){var r=n(5089);e.exports=Array.isArray||function(e){return"Array"==r(e)}},8032:function(e,t,n){"use strict";var r=n(7526),i=n(1763),o=n(2750),a=n(237),s=n(3341),u=n(6065),c=n(9448),l=n(6440),f=n(7087),d=n(1485),p=n(3133),h=n(9415).f,v=n(7967).f,g=n(5564),m=n(3844),y="ArrayBuffer",b="DataView",x="prototype",w="Wrong index!",_=r[y],S=r[b],O=r.Math,k=r.RangeError,E=r.Infinity,j=_,T=O.abs,C=O.pow,A=O.floor,P=O.log,M=O.LN2,I="buffer",R="byteLength",D="byteOffset",L=i?"_b":I,N=i?"_l":R,F=i?"_o":D;function B(e,t,n){var r,i,o,a=new Array(n),s=8*n-t-1,u=(1<<s)-1,c=u>>1,l=23===t?C(2,-24)-C(2,-77):0,f=0,d=e<0||0===e&&1/e<0?1:0;for((e=T(e))!=e||e===E?(i=e!=e?1:0,r=u):(r=A(P(e)/M),e*(o=C(2,-r))<1&&(r--,o*=2),(e+=r+c>=1?l/o:l*C(2,1-c))*o>=2&&(r++,o/=2),r+c>=u?(i=0,r=u):r+c>=1?(i=(e*o-1)*C(2,t),r+=c):(i=e*C(2,c-1)*C(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}function U(e,t,n){var r,i=8*n-t-1,o=(1<<i)-1,a=o>>1,s=i-7,u=n-1,c=e[u--],l=127&c;for(c>>=7;s>0;l=256*l+e[u],u--,s-=8);for(r=l&(1<<-s)-1,l>>=-s,s+=t;s>0;r=256*r+e[u],u--,s-=8);if(0===l)l=1-a;else{if(l===o)return r?NaN:c?-E:E;r+=C(2,t),l-=a}return(c?-1:1)*r*C(2,l-t)}function z(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function V(e){return[255&e]}function H(e){return[255&e,e>>8&255]}function W(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function q(e){return B(e,52,8)}function G(e){return B(e,23,4)}function Y(e,t,n){v(e[x],t,{get:function(){return this[n]}})}function K(e,t,n,r){var i=p(+n);if(i+t>e[N])throw k(w);var o=e[L]._b,a=i+e[F],s=o.slice(a,a+t);return r?s:s.reverse()}function $(e,t,n,r,i,o){var a=p(+n);if(a+t>e[N])throw k(w);for(var s=e[L]._b,u=a+e[F],c=r(+i),l=0;l<t;l++)s[u+l]=c[o?l:t-l-1]}if(a.ABV){if(!c((function(){_(1)}))||!c((function(){new _(-1)}))||c((function(){return new _,new _(1.5),new _(NaN),_.name!=y}))){for(var X,Q=(_=function(e){return l(this,_),new j(p(e))})[x]=j[x],Z=h(j),J=0;Z.length>J;)(X=Z[J++])in _||s(_,X,j[X]);o||(Q.constructor=_)}var ee=new S(new _(2)),te=S[x].setInt8;ee.setInt8(0,2147483648),ee.setInt8(1,2147483649),!ee.getInt8(0)&&ee.getInt8(1)||u(S[x],{setInt8:function(e,t){te.call(this,e,t<<24>>24)},setUint8:function(e,t){te.call(this,e,t<<24>>24)}},!0)}else _=function(e){l(this,_,y);var t=p(e);this._b=g.call(new Array(t),0),this[N]=t},S=function(e,t,n){l(this,S,b),l(e,_,b);var r=e[N],i=f(t);if(i<0||i>r)throw k("Wrong offset!");if(i+(n=void 0===n?r-i:d(n))>r)throw k("Wrong length!");this[L]=e,this[F]=i,this[N]=n},i&&(Y(_,R,"_l"),Y(S,I,"_b"),Y(S,R,"_l"),Y(S,D,"_o")),u(S[x],{getInt8:function(e){return K(this,1,e)[0]<<24>>24},getUint8:function(e){return K(this,1,e)[0]},getInt16:function(e){var t=K(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=K(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return z(K(this,4,e,arguments[1]))},getUint32:function(e){return z(K(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return U(K(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return U(K(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){$(this,1,e,V,t)},setUint8:function(e,t){$(this,1,e,V,t)},setInt16:function(e,t){$(this,2,e,H,t,arguments[2])},setUint16:function(e,t){$(this,2,e,H,t,arguments[2])},setInt32:function(e,t){$(this,4,e,W,t,arguments[2])},setUint32:function(e,t){$(this,4,e,W,t,arguments[2])},setFloat32:function(e,t){$(this,4,e,G,t,arguments[2])},setFloat64:function(e,t){$(this,8,e,q,t,arguments[2])}});m(_,y),m(S,b),s(S[x],a.VIEW,!0),t[y]=_,t[b]=S},8050:function(e,t,n){var r=n(2127),i=n(2738);r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},8066:function(e,t,n){n(7209)("Int32",4,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},8132:function(e,t,n){var r=n(2127);r(r.S,"Object",{setPrototypeOf:n(5170).set})},8163:function(e,t,n){"use strict";var r=n(9882),i=n(2888),o="WeakSet";n(8933)(o,(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return r.def(i(this,o),e,!0)}},r,!1,!0)},8175:function(e,t,n){"use strict";var r=n(2750),i=n(2127),o=n(8859),a=n(3341),s=n(906),u=n(6032),c=n(3844),l=n(627),f=n(7574)("iterator"),d=!([].keys&&"next"in[].keys()),p="keys",h="values",v=function(){return this};e.exports=function(e,t,n,g,m,y,b){u(n,t,g);var x,w,_,S=function(e){if(!d&&e in j)return j[e];switch(e){case p:case h:return function(){return new n(this,e)}}return function(){return new n(this,e)}},O=t+" Iterator",k=m==h,E=!1,j=e.prototype,T=j[f]||j["@@iterator"]||m&&j[m],C=T||S(m),A=m?k?S("entries"):C:void 0,P="Array"==t&&j.entries||T;if(P&&(_=l(P.call(new e)))!==Object.prototype&&_.next&&(c(_,O,!0),r||"function"==typeof _[f]||a(_,f,v)),k&&T&&T.name!==h&&(E=!0,C=function(){return T.call(this)}),r&&!b||!d&&!E&&j[f]||a(j,f,C),s[t]=C,s[O]=v,m)if(x={values:k?C:S(h),keys:y?C:S(p),entries:A},b)for(w in x)w in j||o(j,w,x[w]);else i(i.P+i.F*(d||E),t,x);return x}},8184:function(e,t,n){var r=n(7574)("unscopables"),i=Array.prototype;null==i[r]&&n(3341)(i,r,{}),e.exports=function(e){i[r][e]=!0}},8206:function(e,t,n){"use strict";var r=n(1763),i=n(1311),o=n(1060),a=n(8449),s=n(8270),u=n(1249),c=Object.assign;e.exports=!c||n(9448)((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r}))?function(e,t){for(var n=s(e),c=arguments.length,l=1,f=o.f,d=a.f;c>l;)for(var p,h=u(arguments[l++]),v=f?i(h).concat(f(h)):i(h),g=v.length,m=0;g>m;)p=v[m++],r&&!d.call(h,p)||(n[p]=h[p]);return n}:c},8236:function(e,t,n){var r=n(3305),i=n(2988).onFreeze;n(923)("freeze",(function(e){return function(t){return e&&r(t)?e(i(t)):t}}))},8270:function(e,t,n){var r=n(3344);e.exports=function(e){return Object(r(e))}},8301:function(e,t,n){var r=n(7526),i=n(8880),o=n(7967).f,a=n(9415).f,s=n(5411),u=n(1158),c=r.RegExp,l=c,f=c.prototype,d=/a/g,p=/a/g,h=new c(d)!==d;if(n(1763)&&(!h||n(9448)((function(){return p[n(7574)("match")]=!1,c(d)!=d||c(p)==p||"/a/i"!=c(d,"i")})))){c=function(e,t){var n=this instanceof c,r=s(e),o=void 0===t;return!n&&r&&e.constructor===c&&o?e:i(h?new l(r&&!o?e.source:e,t):l((r=e instanceof c)?e.source:e,r&&o?u.call(e):t),n?this:f,c)};for(var v=function(e){e in c||o(c,e,{configurable:!0,get:function(){return l[e]},set:function(t){l[e]=t}})},g=a(l),m=0;g.length>m;)v(g[m++]);f.constructor=c,c.prototype=f,n(8859)(r,"RegExp",c)}n(5762)("RegExp")},8305:function(e,t,n){"use strict";var r=n(4228),i=n(8270),o=n(1485),a=n(7087),s=n(8828),u=n(2535),c=Math.max,l=Math.min,f=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;n(9228)("replace",2,(function(e,t,n,h){return[function(r,i){var o=e(this),a=null==r?void 0:r[t];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},function(e,t){var i=h(n,e,this,t);if(i.done)return i.value;var f=r(e),d=String(this),p="function"==typeof t;p||(t=String(t));var g=f.global;if(g){var m=f.unicode;f.lastIndex=0}for(var y=[];;){var b=u(f,d);if(null===b)break;if(y.push(b),!g)break;""===String(b[0])&&(f.lastIndex=s(d,o(f.lastIndex),m))}for(var x,w="",_=0,S=0;S<y.length;S++){b=y[S];for(var O=String(b[0]),k=c(l(a(b.index),d.length),0),E=[],j=1;j<b.length;j++)E.push(void 0===(x=b[j])?x:String(x));var T=b.groups;if(p){var C=[O].concat(E,k,d);void 0!==T&&C.push(T);var A=String(t.apply(void 0,C))}else A=v(O,d,k,E,T,t);k>=_&&(w+=d.slice(_,k)+A,_=k+O.length)}return w+d.slice(_)}];function v(e,t,r,o,a,s){var u=r+e.length,c=o.length,l=p;return void 0!==a&&(a=i(a),l=d),n.call(s,l,(function(n,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(u);case"<":s=a[i.slice(1,-1)];break;default:var l=+i;if(0===l)return n;if(l>c){var d=f(l/10);return 0===d?n:d<=c?void 0===o[d-1]?i.charAt(1):o[d-1]+i.charAt(1):n}s=o[l-1]}return void 0===s?"":s}))}}))},8437:function(e,t,n){"use strict";n(2468)("fontsize",(function(e){return function(t){return e(this,"font","size",t)}}))},8449:function(e,t){t.f={}.propertyIsEnumerable},8451:function(e,t,n){var r=n(2127);r(r.S,"Object",{is:n(7359)})},8537:function(e,t,n){n(7209)("Uint32",4,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},8543:function(e,t,n){"use strict";n(2468)("strike",(function(e){return function(){return e(this,"strike","","")}}))},8604:function(e,t,n){"use strict";n(9638);var r=n(4228),i=n(1158),o=n(1763),a="toString",s=/./[a],u=function(e){n(8859)(RegExp.prototype,a,e,!0)};n(9448)((function(){return"/a/b"!=s.call({source:"a",flags:"b"})}))?u((function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!o&&e instanceof RegExp?i.call(e):void 0)})):s.name!=a&&u((function(){return s.call(this)}))},8641:function(e,t,n){var r=n(8449),i=n(1996),o=n(7221),a=n(3048),s=n(7917),u=n(2956),c=Object.getOwnPropertyDescriptor;t.f=n(1763)?c:function(e,t){if(e=o(e),t=a(t,!0),u)try{return c(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},8647:function(e,t,n){var r=n(8270),i=n(1311);n(923)("keys",(function(){return function(e){return i(r(e))}}))},8699:function(e,t,n){n(7209)("Int8",1,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},8790:function(e,t,n){var r=n(5052),i=n(7368),o=n(1508),a=n(4228),s=n(1485),u=n(762),c={},l={},f=e.exports=function(e,t,n,f,d){var p,h,v,g,m=d?function(){return e}:u(e),y=r(n,f,t?2:1),b=0;if("function"!=typeof m)throw TypeError(e+" is not iterable!");if(o(m)){for(p=s(e.length);p>b;b++)if((g=t?y(a(h=e[b])[0],h[1]):y(e[b]))===c||g===l)return g}else for(v=m.call(e);!(h=v.next()).done;)if((g=i(v,y,h.value,t))===c||g===l)return g};f.BREAK=c,f.RETURN=l},8828:function(e,t,n){"use strict";var r=n(1212)(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},8859:function(e,t,n){var r=n(7526),i=n(3341),o=n(7917),a=n(4415)("src"),s=n(9461),u="toString",c=(""+s).split(u);n(6094).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var u="function"==typeof n;u&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(u&&(o(n,a)||i(n,a,e[t]?""+e[t]:c.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,u,(function(){return"function"==typeof this&&this[a]||s.call(this)}))},8872:function(e,t,n){"use strict";var r=n(2127),i=n(8942),o="includes";r(r.P+r.F*n(5203)(o),"String",{includes:function(e){return!!~i(this,e,o).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},8880:function(e,t,n){var r=n(3305),i=n(5170).set;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}},8888:function(e,t,n){"use strict";var r=n(2127),i=n(6179)(4);r(r.P+r.F*!n(6884)([].every,!0),"Array",{every:function(e){return i(this,e,arguments[1])}})},8892:function(e,t,n){"use strict";var r=n(2127),i=n(6179)(3);r(r.P+r.F*!n(6884)([].some,!0),"Array",{some:function(e){return i(this,e,arguments[1])}})},8931:function(e,t,n){var r=n(7574)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},e(o)}catch(e){}return n}},8933:function(e,t,n){"use strict";var r=n(7526),i=n(2127),o=n(8859),a=n(6065),s=n(2988),u=n(8790),c=n(6440),l=n(3305),f=n(9448),d=n(8931),p=n(3844),h=n(8880);e.exports=function(e,t,n,v,g,m){var y=r[e],b=y,x=g?"set":"add",w=b&&b.prototype,_={},S=function(e){var t=w[e];o(w,e,"delete"==e||"has"==e?function(e){return!(m&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!l(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof b&&(m||w.forEach&&!f((function(){(new b).entries().next()})))){var O=new b,k=O[x](m?{}:-0,1)!=O,E=f((function(){O.has(1)})),j=d((function(e){new b(e)})),T=!m&&f((function(){for(var e=new b,t=5;t--;)e[x](t,t);return!e.has(-0)}));j||((b=t((function(t,n){c(t,b,e);var r=h(new y,t,b);return null!=n&&u(n,g,r[x],r),r}))).prototype=w,w.constructor=b),(E||T)&&(S("delete"),S("has"),g&&S("get")),(T||k)&&S(x),m&&w.clear&&delete w.clear}else b=v.getConstructor(t,e,g,x),a(b.prototype,n),s.NEED=!0;return p(b,e),_[e]=b,i(i.G+i.W+i.F*(b!=y),_),m||v.setStrong(b,e,g),b}},8942:function(e,t,n){var r=n(5411),i=n(3344);e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},8951:function(e,t,n){var r=n(7574)("toPrimitive"),i=Date.prototype;r in i||n(3341)(i,r,n(107))},9011:function(e,t,n){"use strict";n(2468)("big",(function(e){return function(){return e(this,"big","","")}}))},9073:function(e,t,n){var r=n(3305);n(923)("isExtensible",(function(e){return function(t){return!!r(t)&&(!e||e(t))}}))},9134:function(e,t,n){var r=n(2127),i=n(5551),o=Math.exp;r(r.S+r.F*n(9448)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(i(e)-i(-e))/2:(o(e-1)-o(-e-1))*(Math.E/2)}})},9147:function(e,t,n){var r=n(2127),i=n(5551);r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},9190:function(e,t,n){var r=n(4228),i=n(3387),o=n(7574)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[o])?t:i(n)}},9213:function(e,t,n){"use strict";n(2468)("fontcolor",(function(e){return function(t){return e(this,"font","color",t)}}))},9228:function(e,t,n){"use strict";n(4116);var r=n(8859),i=n(3341),o=n(9448),a=n(3344),s=n(7574),u=n(9600),c=s("species"),l=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),f=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){var d=s(e),p=!o((function(){var t={};return t[d]=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[c]=function(){return n}),n[d](""),!t})):void 0;if(!p||!h||"replace"===e&&!l||"split"===e&&!f){var v=/./[d],g=n(a,d,""[e],(function(e,t,n,r,i){return t.exec===u?p&&!i?{done:!0,value:v.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),m=g[0],y=g[1];r(String.prototype,e,m),i(RegExp.prototype,d,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)})}}},9297:function(e,t,n){"use strict";n.d(t,{lu:function(){return u}});var r=n(6936),i=n(6284);e=n.hmd(e);var o={nowSeconds:function(){return Date.now()/1e3}},a=(0,i.wD)()?function(){try{return(0,i.fj)(e,"perf_hooks").performance}catch(e){return}}():function(){var e=(0,r.VZ)().performance;if(e&&e.now)return{now:function(){return e.now()},timeOrigin:Date.now()-e.now()}}(),s=void 0===a?o:{nowSeconds:function(){return(a.timeOrigin+a.now())/1e3}},u=o.nowSeconds.bind(o);s.nowSeconds.bind(s),function(){var e=(0,r.VZ)().performance;e&&(e.timeOrigin?e.timeOrigin:e.timing&&e.timing.navigationStart||Date.now())}()},9318:function(e,t,n){var r=n(3305);n(923)("isFrozen",(function(e){return function(t){return!r(t)||!!e&&e(t)}}))},9397:function(e,t,n){"use strict";var r,i=n(7526),o=n(6179)(0),a=n(8859),s=n(2988),u=n(8206),c=n(9882),l=n(3305),f=n(2888),d=n(2888),p=!i.ActiveXObject&&"ActiveXObject"in i,h="WeakMap",v=s.getWeak,g=Object.isExtensible,m=c.ufstore,y=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},b={get:function(e){if(l(e)){var t=v(e);return!0===t?m(f(this,h)).get(e):t?t[this._i]:void 0}},set:function(e,t){return c.def(f(this,h),e,t)}},x=e.exports=n(8933)(h,y,b,c,!0,!0);d&&p&&(u((r=c.getConstructor(y,h)).prototype,b),s.NEED=!0,o(["delete","has","get","set"],(function(e){var t=x.prototype,n=t[e];a(t,e,(function(t,i){if(l(t)&&!g(t)){this._f||(this._f=new r);var o=this._f[e](t,i);return"set"==e?this:o}return n.call(this,t,i)}))})))},9415:function(e,t,n){var r=n(4561),i=n(6140).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},9429:function(e,t,n){var r=n(2127),i=n(5385);r(r.P+r.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},9448:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},9461:function(e,t,n){e.exports=n(4556)("native-function-to-string",Function.toString)},9497:function(e,t,n){var r=n(2127);r(r.S,"Number",{isNaN:function(e){return e!=e}})},9584:function(e,t,n){var r=n(2127);r(r.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},9600:function(e,t,n){"use strict";var r,i,o=n(1158),a=RegExp.prototype.exec,s=String.prototype.replace,u=a,c="lastIndex",l=(r=/a/,i=/b*/g,a.call(r,"a"),a.call(i,"a"),0!==r[c]||0!==i[c]),f=void 0!==/()??/.exec("")[1];(l||f)&&(u=function(e){var t,n,r,i,u=this;return f&&(n=new RegExp("^"+u.source+"$(?!\\s)",o.call(u))),l&&(t=u[c]),r=a.call(u,e),l&&r&&(u[c]=u.global?r.index+r[0].length:t),f&&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=u},9620:function(e,t,n){var r=n(2127);r(r.P,"Array",{copyWithin:n(4438)}),n(8184)("copyWithin")},9638:function(e,t,n){n(1763)&&"g"!=/./g.flags&&n(7967).f(RegExp.prototype,"flags",{configurable:!0,get:n(1158)})},9650:function(e,t,n){"use strict";var r=n(7526),i=n(7917),o=n(1763),a=n(2127),u=n(8859),c=n(2988).KEY,l=n(9448),f=n(4556),d=n(3844),p=n(4415),h=n(7574),v=n(7960),g=n(5392),m=n(5969),y=n(7981),b=n(4228),x=n(3305),w=n(8270),_=n(7221),S=n(3048),O=n(1996),k=n(4719),E=n(4765),j=n(8641),T=n(1060),C=n(7967),A=n(1311),P=j.f,M=C.f,I=E.f,R=r.Symbol,D=r.JSON,L=D&&D.stringify,N="prototype",F=h("_hidden"),B=h("toPrimitive"),U={}.propertyIsEnumerable,z=f("symbol-registry"),V=f("symbols"),H=f("op-symbols"),W=Object[N],q="function"==typeof R&&!!T.f,G=r.QObject,Y=!G||!G[N]||!G[N].findChild,K=o&&l((function(){return 7!=k(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=P(W,t);r&&delete W[t],M(e,t,n),r&&e!==W&&M(W,t,r)}:M,$=function(e){var t=V[e]=k(R[N]);return t._k=e,t},X=q&&"symbol"==s(R.iterator)?function(e){return"symbol"==s(e)}:function(e){return e instanceof R},Q=function(e,t,n){return e===W&&Q(H,t,n),b(e),t=S(t,!0),b(n),i(V,t)?(n.enumerable?(i(e,F)&&e[F][t]&&(e[F][t]=!1),n=k(n,{enumerable:O(0,!1)})):(i(e,F)||M(e,F,O(1,{})),e[F][t]=!0),K(e,t,n)):M(e,t,n)},Z=function(e,t){b(e);for(var n,r=m(t=_(t)),i=0,o=r.length;o>i;)Q(e,n=r[i++],t[n]);return e},J=function(e){var t=U.call(this,e=S(e,!0));return!(this===W&&i(V,e)&&!i(H,e))&&(!(t||!i(this,e)||!i(V,e)||i(this,F)&&this[F][e])||t)},ee=function(e,t){if(e=_(e),t=S(t,!0),e!==W||!i(V,t)||i(H,t)){var n=P(e,t);return!n||!i(V,t)||i(e,F)&&e[F][t]||(n.enumerable=!0),n}},te=function(e){for(var t,n=I(_(e)),r=[],o=0;n.length>o;)i(V,t=n[o++])||t==F||t==c||r.push(t);return r},ne=function(e){for(var t,n=e===W,r=I(n?H:_(e)),o=[],a=0;r.length>a;)!i(V,t=r[a++])||n&&!i(W,t)||o.push(V[t]);return o};q||(u((R=function(){if(this instanceof R)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===W&&t.call(H,n),i(this,F)&&i(this[F],e)&&(this[F][e]=!1),K(this,e,O(1,n))};return o&&Y&&K(W,e,{configurable:!0,set:t}),$(e)})[N],"toString",(function(){return this._k})),j.f=ee,C.f=Q,n(9415).f=E.f=te,n(8449).f=J,T.f=ne,o&&!n(2750)&&u(W,"propertyIsEnumerable",J,!0),v.f=function(e){return $(h(e))}),a(a.G+a.W+a.F*!q,{Symbol:R});for(var re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ie=0;re.length>ie;)h(re[ie++]);for(var oe=A(h.store),ae=0;oe.length>ae;)g(oe[ae++]);a(a.S+a.F*!q,"Symbol",{for:function(e){return i(z,e+="")?z[e]:z[e]=R(e)},keyFor:function(e){if(!X(e))throw TypeError(e+" is not a symbol!");for(var t in z)if(z[t]===e)return t},useSetter:function(){Y=!0},useSimple:function(){Y=!1}}),a(a.S+a.F*!q,"Object",{create:function(e,t){return void 0===t?k(e):Z(k(e),t)},defineProperty:Q,defineProperties:Z,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:ne});var se=l((function(){T.f(1)}));a(a.S+a.F*se,"Object",{getOwnPropertySymbols:function(e){return T.f(w(e))}}),D&&a(a.S+a.F*(!q||l((function(){var e=R();return"[null]"!=L([e])||"{}"!=L({a:e})||"{}"!=L(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(x(t)||void 0!==e)&&!X(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!X(t))return t}),r[1]=t,L.apply(D,r)}}),R[N][B]||n(3341)(R[N],B,R[N].valueOf),d(R,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},9813:function(e,t,n){"use strict";var r=n(2127),i=n(6179)(2);r(r.P+r.F*!n(6884)([].filter,!0),"Array",{filter:function(e){return i(this,e,arguments[1])}})},9839:function(e,t,n){"use strict";n(2468)("italics",(function(e){return function(){return e(this,"i","","")}}))},9882:function(e,t,n){"use strict";var r=n(6065),i=n(2988).getWeak,o=n(4228),a=n(3305),s=n(6440),u=n(8790),c=n(6179),l=n(7917),f=n(2888),d=c(5),p=c(6),h=0,v=function(e){return e._l||(e._l=new g)},g=function(){this.a=[]},m=function(e,t){return d(e.a,(function(e){return e[0]===t}))};g.prototype={get:function(e){var t=m(this,e);if(t)return t[1]},has:function(e){return!!m(this,e)},set:function(e,t){var n=m(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=p(this.a,(function(t){return t[0]===e}));return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,o){var c=e((function(e,r){s(e,c,t,"_i"),e._t=t,e._i=h++,e._l=void 0,null!=r&&u(r,n,e[o],e)}));return r(c.prototype,{delete:function(e){if(!a(e))return!1;var n=i(e);return!0===n?v(f(this,t)).delete(e):n&&l(n,this._i)&&delete n[this._i]},has:function(e){if(!a(e))return!1;var n=i(e);return!0===n?v(f(this,t)).has(e):n&&l(n,this._i)}}),c},def:function(e,t,n){var r=i(o(t),!0);return!0===r?v(e).set(t,n):r[e._i]=n,e},ufstore:v}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==("undefined"==typeof globalThis?"undefined":s(globalThis)))return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==("undefined"==typeof window?"undefined":s(window)))return window}}(),r.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var i={};return function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==s(Symbol.iterator)?function(e){return s(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":s(e)})(t)}function t(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function n(e){return function(){var n=this,r=arguments;return new Promise((function(i,o){var a=e.apply(n,r);function s(e){t(a,i,o,s,u,"next",e)}function u(e){t(a,i,o,s,u,"throw",e)}s(void 0)}))}}function o(t){var n=function(t,n){if("object"!=e(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,n);if("object"!=e(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==e(n)?n:n+""}function a(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){a(e,t,n[t])}))}return e}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(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,o(r.key),r)}}function p(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function h(t,n){if(n&&("object"==e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t){return(g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function m(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}r.d(i,{default:function(){return wn}}),r(2419),r(3855);var y=function(){return(y=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function b(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function x(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}var w=function(){return(w=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function _(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function S(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(_(arguments[t]));return e}function O(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return I(e,Error)}}function k(e){return"[object ErrorEvent]"===Object.prototype.toString.call(e)}function E(e){return"[object DOMError]"===Object.prototype.toString.call(e)}function j(e){return"[object String]"===Object.prototype.toString.call(e)}function T(e){return null===e||"object"!=s(e)&&"function"!=typeof e}function C(e){return"[object Object]"===Object.prototype.toString.call(e)}function A(e){return"undefined"!=typeof Event&&I(e,Event)}function P(e){return"undefined"!=typeof Element&&I(e,Element)}function M(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function I(e,t){try{return e instanceof t}catch(e){return!1}}var R,D,L=r(9297);(D=R||(R={})).PENDING="PENDING",D.RESOLVED="RESOLVED",D.REJECTED="REJECTED";var N=function(){function e(e){var t=this;this._state=R.PENDING,this._handlers=[],this._resolve=function(e){t._setResult(R.RESOLVED,e)},this._reject=function(e){t._setResult(R.REJECTED,e)},this._setResult=function(e,n){t._state===R.PENDING&&(M(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._attachHandler=function(e){t._handlers=t._handlers.concat(e),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==R.PENDING){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e.done||(t._state===R.RESOLVED&&e.onfulfilled&&e.onfulfilled(t._value),t._state===R.REJECTED&&e.onrejected&&e.onrejected(t._value),e.done=!0)}))}};try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}return e.resolve=function(t){return new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){return new e((function(n,r){if(Array.isArray(t))if(0!==t.length){var i=t.length,o=[];t.forEach((function(t,a){e.resolve(t).then((function(e){o[a]=e,0==(i-=1)&&n(o)})).then(null,r)}))}else n([]);else r(new TypeError("Promise.all requires an array as input."))}))},e.prototype.then=function(t,n){var r=this;return new e((function(e,i){r._attachHandler({done:!1,onfulfilled:function(n){if(t)try{return void e(t(n))}catch(e){return void i(e)}else e(n)},onrejected:function(t){if(n)try{return void e(n(t))}catch(e){return void i(e)}else i(t)}})}))},e.prototype.catch=function(e){return this.then((function(e){return e}),e)},e.prototype.finally=function(t){var n=this;return new e((function(e,r){var i,o;return n.then((function(e){o=!1,i=e,t&&t()}),(function(e){o=!0,i=e,t&&t()})).then((function(){o?r(i):e(i)}))}))},e.prototype.toString=function(){return"[object SyncPromise]"},e}(),F=r(6936),B=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}return e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=S(t._breadcrumbs),n._tags=w({},t._tags),n._extra=w({},t._extra),n._contexts=w({},t._contexts),n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=S(t._eventProcessors)),n},e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype.setUser=function(e){return this._user=e||{},this._session&&this._session.update({user:e}),this._notifyScopeListeners(),this},e.prototype.getUser=function(){return this._user},e.prototype.setTags=function(e){return this._tags=w(w({},this._tags),e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=w(w({},this._tags),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=w(w({},this._extra),e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=w(w({},this._extra),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},e.prototype.setTransactionName=function(e){return this._transactionName=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this.setTransactionName(e)},e.prototype.setContext=function(e,t){var n;return null===t?delete this._contexts[e]:this._contexts=w(w({},this._contexts),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.prototype.getTransaction=function(){var e,t,n,r,i=this.getSpan();return(null===(e=i)||void 0===e?void 0:e.transaction)?null===(t=i)||void 0===t?void 0:t.transaction:(null===(r=null===(n=i)||void 0===n?void 0:n.spanRecorder)||void 0===r?void 0:r.spans[0])?i.spanRecorder.spans[0]:void 0},e.prototype.setSession=function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this},e.prototype.getSession=function(){return this._session},e.prototype.update=function(t){if(!t)return this;if("function"==typeof t){var n=t(this);return n instanceof e?n:this}return t instanceof e?(this._tags=w(w({},this._tags),t._tags),this._extra=w(w({},this._extra),t._extra),this._contexts=w(w({},this._contexts),t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint)):C(t)&&(this._tags=w(w({},this._tags),t.tags),this._extra=w(w({},this._extra),t.extra),this._contexts=w(w({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint)),this},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var n=w({timestamp:(0,L.lu)()},e);return this._breadcrumbs=void 0!==t&&t>=0?S(this._breadcrumbs,[n]).slice(-t):S(this._breadcrumbs,[n]),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype.applyToEvent=function(e,t){var n;if(this._extra&&Object.keys(this._extra).length&&(e.extra=w(w({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=w(w({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=w(w({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=w(w({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=w({trace:this._span.getTraceContext()},e.contexts);var r=null===(n=this._span.transaction)||void 0===n?void 0:n.name;r&&(e.tags=w({transaction:r},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=S(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,this._notifyEventProcessors(S(U(),this._eventProcessors),e,t)},e.prototype._notifyEventProcessors=function(e,t,n,r){var i=this;return void 0===r&&(r=0),new N((function(o,a){var s=e[r];if(null===t||"function"!=typeof s)o(t);else{var u=s(w({},t),n);M(u)?u.then((function(t){return i._notifyEventProcessors(e,t,n,r+1).then(o)})).then(null,a):i._notifyEventProcessors(e,u,n,r+1).then(o).then(null,a)}}))},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(t){t(e)})),this._notifyingListeners=!1)},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e}();function U(){var e=(0,F.VZ)();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}function z(e){U().push(e)}var V=(0,F.VZ)(),H="Sentry Logger ",W=function(){function e(){this._enabled=!1}return e.prototype.disable=function(){this._enabled=!1},e.prototype.enable=function(){this._enabled=!0},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&(0,F.pq)((function(){V.console.log(H+"[Log]: "+e.join(" "))}))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&(0,F.pq)((function(){V.console.warn(H+"[Warn]: "+e.join(" "))}))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&(0,F.pq)((function(){V.console.error(H+"[Error]: "+e.join(" "))}))},e}();V.__SENTRY__=V.__SENTRY__||{};var q,G,Y=V.__SENTRY__.logger||(V.__SENTRY__.logger=new W),K=r(6284);(G=q||(q={})).Ok="ok",G.Exited="exited",G.Crashed="crashed",G.Abnormal="abnormal";var $=function(e,t){return($=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},X=function(){return(X=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function Q(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Z(e){try{for(var t=e,n=[],r=0,i=0,o=void 0;t&&r++<5&&!("html"===(o=J(t))||r>1&&i+3*n.length+o.length>=80);)n.push(o),i+=o.length,t=t.parentNode;return n.reverse().join(" > ")}catch(e){return"<unknown>"}}function J(e){var t,n,r,i,o,a=e,s=[];if(!a||!a.tagName)return"";if(s.push(a.tagName.toLowerCase()),a.id&&s.push("#"+a.id),(t=a.className)&&j(t))for(n=t.split(/\s+/),o=0;o<n.length;o++)s.push("."+n[o]);var u=["type","name","title","alt"];for(o=0;o<u.length;o++)r=u[o],(i=a.getAttribute(r))&&s.push("["+r+'="'+i+'"]');return s.join("")}var ee=function(){function e(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return e.prototype.memoize=function(e){if(this._hasWeakSet)return!!this._inner.has(e)||(this._inner.add(e),!1);for(var t=0;t<this._inner.length;t++)if(this._inner[t]===e)return!0;return this._inner.push(e),!1},e.prototype.unmemoize=function(e){if(this._hasWeakSet)this._inner.delete(e);else for(var t=0;t<this._inner.length;t++)if(this._inner[t]===e){this._inner.splice(t,1);break}},e}(),te="<anonymous>";function ne(e){try{return e&&"function"==typeof e&&e.name||te}catch(e){return te}}function re(e,t){return void 0===t&&(t=0),"string"!=typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function ie(e,t){if(!Array.isArray(e))return"";for(var n=[],r=0;r<e.length;r++){var i=e[r];try{n.push(String(i))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function oe(e,t){return!!j(e)&&(n=t,"[object RegExp]"===Object.prototype.toString.call(n)?t.test(e):"string"==typeof t&&-1!==e.indexOf(t));var n}function ae(e,t,n){if(t in e){var r=e[t],i=n(r);if("function"==typeof i)try{i.prototype=i.prototype||{},Object.defineProperties(i,{__sentry_original__:{enumerable:!1,value:r}})}catch(e){}e[t]=i}}function se(e){if(O(e)){var t=e,n={message:t.message,name:t.name,stack:t.stack};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}if(A(e)){var i=e,o={};o.type=i.type;try{o.target=P(i.target)?Z(i.target):Object.prototype.toString.call(i.target)}catch(e){o.target="<unknown>"}try{o.currentTarget=P(i.currentTarget)?Z(i.currentTarget):Object.prototype.toString.call(i.currentTarget)}catch(e){o.currentTarget="<unknown>"}for(var r in"undefined"!=typeof CustomEvent&&I(e,CustomEvent)&&(o.detail=i.detail),i)Object.prototype.hasOwnProperty.call(i,r)&&(o[r]=i);return o}return e}function ue(e,t,n){void 0===t&&(t=3),void 0===n&&(n=102400);var r=le(e,t);return function(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}(r)>n?ue(e,t-1,n):r}function ce(e,t){return"domain"===t&&e&&"object"==s(e)&&e._events?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":void 0!==r.g&&e===r.g?"[Global]":"undefined"!=typeof window&&e===window?"[Window]":"undefined"!=typeof document&&e===document?"[Document]":C(n=e)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n?"[SyntheticEvent]":"number"==typeof e&&e!=e?"[NaN]":void 0===e?"[undefined]":"function"==typeof e?"[Function: "+ne(e)+"]":"symbol"==s(e)?"["+String(e)+"]":"bigint"==typeof e?"[BigInt: "+String(e)+"]":e;var n}function le(e,t){try{return JSON.parse(JSON.stringify(e,(function(e,n){return function e(t,n,r,i){if(void 0===r&&(r=1/0),void 0===i&&(i=new ee),0===r)return function(e){var t=Object.prototype.toString.call(e);if("string"==typeof e)return e;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var n=ce(e);return T(n)?n:t}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();var o=ce(n,t);if(T(o))return o;var a=se(n),s=Array.isArray(n)?[]:{};if(i.memoize(n))return"[Circular ~]";for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(s[u]=e(u,a[u],r-1,i));return i.unmemoize(n),s}(e,n,t)})))}catch(e){return"**non-serializable**"}}function fe(e,t){void 0===t&&(t=40);var n=Object.keys(se(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return re(n[0],t);for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:re(i,t)}return""}function de(e){var t,n;if(C(e)){var r=e,i={};try{for(var o=Q(Object.keys(r)),a=o.next();!a.done;a=o.next()){var s=a.value;void 0!==r[s]&&(i[s]=de(r[s]))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return i}return Array.isArray(e)?e.map(de):e}var pe=function(){function e(e){this.errors=0,this.sid=(0,F.eJ)(),this.timestamp=Date.now(),this.started=Date.now(),this.duration=0,this.status=q.Ok,e&&this.update(e)}return e.prototype.update=function(e){void 0===e&&(e={}),e.user&&(e.user.ip_address&&(this.ipAddress=e.user.ip_address),e.did||(this.did=e.user.id||e.user.email||e.user.username)),this.timestamp=e.timestamp||Date.now(),e.sid&&(this.sid=32===e.sid.length?e.sid:(0,F.eJ)()),e.did&&(this.did=""+e.did),"number"==typeof e.started&&(this.started=e.started),"number"==typeof e.duration?this.duration=e.duration:this.duration=this.timestamp-this.started,e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),e.ipAddress&&(this.ipAddress=e.ipAddress),e.userAgent&&(this.userAgent=e.userAgent),"number"==typeof e.errors&&(this.errors=e.errors),e.status&&(this.status=e.status)},e.prototype.close=function(e){e?this.update({status:e}):this.status===q.Ok?this.update({status:q.Exited}):this.update()},e.prototype.toJSON=function(){return de({sid:""+this.sid,init:!0,started:new Date(this.started).toISOString(),timestamp:new Date(this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:de({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},e}(),he=function(){function e(e,t,n){void 0===t&&(t=new B),void 0===n&&(n=3),this._version=n,this._stack=[{}],this.getStackTop().scope=t,this.bindClient(e)}return e.prototype.isOlderThan=function(e){return this._version<e},e.prototype.bindClient=function(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()},e.prototype.pushScope=function(){var e=B.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e},e.prototype.popScope=function(){return!(this.getStack().length<=1||!this.getStack().pop())},e.prototype.withScope=function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}},e.prototype.getClient=function(){return this.getStackTop().client},e.prototype.getScope=function(){return this.getStackTop().scope},e.prototype.getStack=function(){return this._stack},e.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},e.prototype.captureException=function(e,t){var n=this._lastEventId=(0,F.eJ)(),r=t;if(!t){var i=void 0;try{throw new Error("Sentry syntheticException")}catch(e){i=e}r={originalException:e,syntheticException:i}}return this._invokeClient("captureException",e,w(w({},r),{event_id:n})),n},e.prototype.captureMessage=function(e,t,n){var r=this._lastEventId=(0,F.eJ)(),i=n;if(!n){var o=void 0;try{throw new Error(e)}catch(e){o=e}i={originalException:e,syntheticException:o}}return this._invokeClient("captureMessage",e,t,w(w({},i),{event_id:r})),r},e.prototype.captureEvent=function(e,t){var n=this._lastEventId=(0,F.eJ)();return this._invokeClient("captureEvent",e,w(w({},t),{event_id:n})),n},e.prototype.lastEventId=function(){return this._lastEventId},e.prototype.addBreadcrumb=function(e,t){var n=this.getStackTop(),r=n.scope,i=n.client;if(r&&i){var o=i.getOptions&&i.getOptions()||{},a=o.beforeBreadcrumb,s=void 0===a?null:a,u=o.maxBreadcrumbs,c=void 0===u?100:u;if(!(c<=0)){var l=(0,L.lu)(),f=w({timestamp:l},e),d=s?(0,F.pq)((function(){return s(f,t)})):f;null!==d&&r.addBreadcrumb(d,Math.min(c,100))}}},e.prototype.setUser=function(e){var t=this.getScope();t&&t.setUser(e)},e.prototype.setTags=function(e){var t=this.getScope();t&&t.setTags(e)},e.prototype.setExtras=function(e){var t=this.getScope();t&&t.setExtras(e)},e.prototype.setTag=function(e,t){var n=this.getScope();n&&n.setTag(e,t)},e.prototype.setExtra=function(e,t){var n=this.getScope();n&&n.setExtra(e,t)},e.prototype.setContext=function(e,t){var n=this.getScope();n&&n.setContext(e,t)},e.prototype.configureScope=function(e){var t=this.getStackTop(),n=t.scope,r=t.client;n&&r&&e(n)},e.prototype.run=function(e){var t=ge(this);try{e(this)}finally{ge(t)}},e.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return Y.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},e.prototype.startSpan=function(e){return this._callExtensionMethod("startSpan",e)},e.prototype.startTransaction=function(e,t){return this._callExtensionMethod("startTransaction",e,t)},e.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},e.prototype.startSession=function(e){this.endSession();var t=this.getStackTop(),n=t.scope,r=t.client,i=r&&r.getOptions()||{},o=i.release,a=i.environment,s=new pe(w(w({release:o,environment:a},n&&{user:n.getUser()}),e));return n&&n.setSession(s),s},e.prototype.endSession=function(){var e=this.getStackTop(),t=e.scope,n=e.client;if(t){var r=t.getSession&&t.getSession();r&&(r.close(),n&&n.captureSession&&n.captureSession(r),t.setSession())}},e.prototype._invokeClient=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=this.getStackTop(),o=i.scope,a=i.client;a&&a[e]&&(t=a)[e].apply(t,S(n,[o]))},e.prototype._callExtensionMethod=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=ve().__SENTRY__;if(r&&r.extensions&&"function"==typeof r.extensions[e])return r.extensions[e].apply(this,t);Y.warn("Extension method "+e+" couldn't be found, doing nothing.")},e}();function ve(){var e=(0,F.VZ)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function ge(e){var t=ve(),n=be(t);return xe(t,e),n}function me(){var e=ve();return ye(e)&&!be(e).isOlderThan(3)||xe(e,new he),(0,K.wD)()?function(e){try{var t=(r=ve().__SENTRY__)&&r.extensions&&r.extensions.domain&&r.extensions.domain.active;if(!t)return be(e);if(!ye(t)||be(t).isOlderThan(3)){var n=be(e).getStackTop();xe(t,new he(n.client,B.clone(n.scope)))}return be(t)}catch(t){return be(e)}var r}(e):be(e)}function ye(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function be(e){return e&&e.__SENTRY__&&e.__SENTRY__.hub||(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=new he),e.__SENTRY__.hub}function xe(e,t){return!!e&&(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=t,!0)}var we,_e=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],Se=function(){function e(t){void 0===t&&(t={}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(){z((function(t){var n=me();if(!n)return t;var r=n.getIntegration(e);if(r){var i=n.getClient(),o=i?i.getOptions():{},a=r._mergeOptions(o);if(r._shouldDropEvent(t,a))return null}return t}))},e.prototype._shouldDropEvent=function(e,t){return this._isSentryError(e,t)?(Y.warn("Event dropped due to being internal Sentry Error.\nEvent: "+(0,F.$X)(e)),!0):this._isIgnoredError(e,t)?(Y.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+(0,F.$X)(e)),!0):this._isDeniedUrl(e,t)?(Y.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+(0,F.$X)(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0):!this._isAllowedUrl(e,t)&&(Y.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+(0,F.$X)(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0)},e.prototype._isSentryError=function(e,t){if(!t.ignoreInternal)return!1;try{return e&&e.exception&&e.exception.values&&e.exception.values[0]&&"SentryError"===e.exception.values[0].type||!1}catch(e){return!1}},e.prototype._isIgnoredError=function(e,t){return!(!t.ignoreErrors||!t.ignoreErrors.length)&&this._getPossibleEventMessages(e).some((function(e){return t.ignoreErrors.some((function(t){return oe(e,t)}))}))},e.prototype._isDeniedUrl=function(e,t){if(!t.denyUrls||!t.denyUrls.length)return!1;var n=this._getEventFilterUrl(e);return!!n&&t.denyUrls.some((function(e){return oe(n,e)}))},e.prototype._isAllowedUrl=function(e,t){if(!t.allowUrls||!t.allowUrls.length)return!0;var n=this._getEventFilterUrl(e);return!n||t.allowUrls.some((function(e){return oe(n,e)}))},e.prototype._mergeOptions=function(e){return void 0===e&&(e={}),{allowUrls:x(this._options.whitelistUrls||[],this._options.allowUrls||[],e.whitelistUrls||[],e.allowUrls||[]),denyUrls:x(this._options.blacklistUrls||[],this._options.denyUrls||[],e.blacklistUrls||[],e.denyUrls||[]),ignoreErrors:x(this._options.ignoreErrors||[],e.ignoreErrors||[],_e),ignoreInternal:void 0===this._options.ignoreInternal||this._options.ignoreInternal}},e.prototype._getPossibleEventMessages=function(e){if(e.message)return[e.message];if(e.exception)try{var t=e.exception.values&&e.exception.values[0]||{},n=t.type,r=void 0===n?"":n,i=t.value,o=void 0===i?"":i;return[""+o,r+": "+o]}catch(t){return Y.error("Cannot extract message for event "+(0,F.$X)(e)),[]}return[]},e.prototype._getEventFilterUrl=function(e){try{if(e.stacktrace){var t=e.stacktrace.frames;return t&&t[t.length-1].filename||null}if(e.exception){var n=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return n&&n[n.length-1].filename||null}return null}catch(t){return Y.error("Cannot extract url for event "+(0,F.$X)(e)),null}},e.id="InboundFilters",e}(),Oe=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){we=Function.prototype.toString,Function.prototype.toString=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.__sentry_original__||this;return we.apply(n,e)}},e.id="FunctionToString",e}(),ke=function(e,t){return(ke=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function Ee(e,t){function n(){this.constructor=e}ke(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var je=function(){return(je=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function Te(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ce(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function Ae(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Ce(arguments[t]));return e}var Pe,Me,Ie=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){return e.__proto__=t,e}:function(e,t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n]);return e}),Re=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return r.message=t,r.name=n.prototype.constructor.name,Ie(r,n.prototype),r}return function(e,t){function n(){this.constructor=e}$(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(Error),De=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,Le="Invalid Dsn",Ne=function(){function e(e){"string"==typeof e?this._fromString(e):this._fromComponents(e),this._validate()}return e.prototype.toString=function(e){void 0===e&&(e=!1);var t=this,n=t.host,r=t.path,i=t.pass,o=t.port,a=t.projectId;return t.protocol+"://"+t.user+(e&&i?":"+i:"")+"@"+n+(o?":"+o:"")+"/"+(r?r+"/":r)+a},e.prototype._fromString=function(e){var t=De.exec(e);if(!t)throw new Re(Le);var n=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}(t.slice(1),6),r=n[0],i=n[1],o=n[2],a=void 0===o?"":o,s=n[3],u=n[4],c=void 0===u?"":u,l="",f=n[5],d=f.split("/");if(d.length>1&&(l=d.slice(0,-1).join("/"),f=d.pop()),f){var p=f.match(/^\d+/);p&&(f=p[0])}this._fromComponents({host:s,pass:a,path:l,projectId:f,port:c,protocol:r,user:i})},e.prototype._fromComponents=function(e){this.protocol=e.protocol,this.user=e.user,this.pass=e.pass||"",this.host=e.host,this.port=e.port||"",this.path=e.path||"",this.projectId=e.projectId},e.prototype._validate=function(){var e=this;if(["protocol","user","host","projectId"].forEach((function(t){if(!e[t])throw new Re(Le+": "+t+" missing")})),!this.projectId.match(/^\d+$/))throw new Re(Le+": Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new Re(Le+": Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new Re(Le+": Invalid port "+this.port)},e}(),Fe=[],Be=function(){function e(e,t){this._integrations={},this._processing=0,this._backend=new e(t),this._options=t,t.dsn&&(this._dsn=new Ne(t.dsn))}return e.prototype.captureException=function(e,t,n){var r=this,i=t&&t.event_id;return this._process(this._getBackend().eventFromException(e,t).then((function(e){return r._captureEvent(e,t,n)})).then((function(e){i=e}))),i},e.prototype.captureMessage=function(e,t,n,r){var i=this,o=n&&n.event_id,a=T(e)?this._getBackend().eventFromMessage(String(e),t,n):this._getBackend().eventFromException(e,n);return this._process(a.then((function(e){return i._captureEvent(e,n,r)})).then((function(e){o=e}))),o},e.prototype.captureEvent=function(e,t,n){var r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((function(e){r=e}))),r},e.prototype.captureSession=function(e){e.release?this._sendSession(e):Y.warn("Discarded session because of missing release")},e.prototype.getDsn=function(){return this._dsn},e.prototype.getOptions=function(){return this._options},e.prototype.flush=function(e){var t=this;return this._isClientProcessing(e).then((function(n){return t._getBackend().getTransport().close(e).then((function(e){return n&&e}))}))},e.prototype.close=function(e){var t=this;return this.flush(e).then((function(e){return t.getOptions().enabled=!1,e}))},e.prototype.setupIntegrations=function(){this._isEnabled()&&(this._integrations=function(e){var t={};return function(e){var t=e.defaultIntegrations&&x(e.defaultIntegrations)||[],n=e.integrations,r=[];if(Array.isArray(n)){var i=n.map((function(e){return e.name})),o=[];t.forEach((function(e){-1===i.indexOf(e.name)&&-1===o.indexOf(e.name)&&(r.push(e),o.push(e.name))})),n.forEach((function(e){-1===o.indexOf(e.name)&&(r.push(e),o.push(e.name))}))}else"function"==typeof n?(r=n(t),r=Array.isArray(r)?r:[r]):r=x(t);var a=r.map((function(e){return e.name})),s="Debug";return-1!==a.indexOf(s)&&r.push.apply(r,x(r.splice(a.indexOf(s),1))),r}(e).forEach((function(e){t[e.name]=e,function(e){-1===Fe.indexOf(e.name)&&(e.setupOnce(z,me),Fe.push(e.name),Y.log("Integration installed: "+e.name))}(e)})),t}(this._options))},e.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){return Y.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},e.prototype._updateSessionFromEvent=function(e,t){var n,r,i,o=!1,a=!1,s=t.exception&&t.exception.values;if(s){a=!0;try{for(var u=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(s),c=u.next();!c.done;c=u.next()){var l=c.value.mechanism;if(l&&!1===l.handled){o=!0;break}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}var f=t.user;if(!e.userAgent){var d=t.request?t.request.headers:{};for(var p in d)if("user-agent"===p.toLowerCase()){i=d[p];break}}e.update(y(y({},o&&{status:q.Crashed}),{user:f,userAgent:i,errors:e.errors+Number(a||o)}))},e.prototype._sendSession=function(e){this._getBackend().sendSession(e)},e.prototype._isClientProcessing=function(e){var t=this;return new N((function(n){var r=0,i=setInterval((function(){0==t._processing?(clearInterval(i),n(!0)):(r+=1,e&&r>=e&&(clearInterval(i),n(!1)))}),1)}))},e.prototype._getBackend=function(){return this._backend},e.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},e.prototype._prepareEvent=function(e,t,n){var r=this,i=this.getOptions().normalizeDepth,o=void 0===i?3:i,a=y(y({},e),{event_id:e.event_id||(n&&n.event_id?n.event_id:(0,F.eJ)()),timestamp:e.timestamp||(0,L.lu)()});this._applyClientOptions(a),this._applyIntegrationsMetadata(a);var s=t;n&&n.captureContext&&(s=B.clone(s).update(n.captureContext));var u=N.resolve(a);return s&&(u=s.applyToEvent(a,n)),u.then((function(e){return"number"==typeof o&&o>0?r._normalizeEvent(e,o):e}))},e.prototype._normalizeEvent=function(e,t){if(!e)return null;var n=y(y(y(y(y({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return y(y({},e),e.data&&{data:le(e.data,t)})}))}),e.user&&{user:le(e.user,t)}),e.contexts&&{contexts:le(e.contexts,t)}),e.extra&&{extra:le(e.extra,t)});return e.contexts&&e.contexts.trace&&(n.contexts.trace=e.contexts.trace),n},e.prototype._applyClientOptions=function(e){var t=this.getOptions(),n=t.environment,r=t.release,i=t.dist,o=t.maxValueLength,a=void 0===o?250:o;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=re(e.message,a));var s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=re(s.value,a));var u=e.request;u&&u.url&&(u.url=re(u.url,a))},e.prototype._applyIntegrationsMetadata=function(e){var t=e.sdk,n=Object.keys(this._integrations);t&&n.length>0&&(t.integrations=n)},e.prototype._sendEvent=function(e){this._getBackend().sendEvent(e)},e.prototype._captureEvent=function(e,t,n){return this._processEvent(e,t,n).then((function(e){return e.event_id}),(function(e){Y.error(e)}))},e.prototype._processEvent=function(e,t,n){var r=this,i=this.getOptions(),o=i.beforeSend,a=i.sampleRate;if(!this._isEnabled())return N.reject(new Re("SDK not enabled, will not send event."));var s="transaction"===e.type;return!s&&"number"==typeof a&&Math.random()>a?N.reject(new Re("Discarding event because it's not included in the random sample (sampling rate = "+a+")")):this._prepareEvent(e,n,t).then((function(e){if(null===e)throw new Re("An event processor returned null, will not send event.");if(t&&t.data&&!0===t.data.__sentry__||s||!o)return e;var n=o(e,t);if(void 0===n)throw new Re("`beforeSend` method has to return `null` or a valid event.");return M(n)?n.then((function(e){return e}),(function(e){throw new Re("beforeSend rejected with "+e)})):n})).then((function(e){if(null===e)throw new Re("`beforeSend` returned `null`, will not send event.");var t=n&&n.getSession&&n.getSession();return!s&&t&&r._updateSessionFromEvent(t,e),r._sendEvent(e),e})).then(null,(function(e){if(e instanceof Re)throw e;throw r.captureException(e,{data:{__sentry__:!0},originalException:e}),new Re("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+e)}))},e.prototype._process=function(e){var t=this;this._processing+=1,e.then((function(e){return t._processing-=1,e}),(function(e){return t._processing-=1,e}))},e}();(Me=Pe||(Pe={})).Unknown="unknown",Me.Skipped="skipped",Me.Success="success",Me.RateLimit="rate_limit",Me.Invalid="invalid",Me.Failed="failed",function(e){e.fromHttpCode=function(t){return t>=200&&t<300?e.Success:429===t?e.RateLimit:t>=400&&t<500?e.Invalid:t>=500?e.Failed:e.Unknown}}(Pe||(Pe={}));var Ue,ze,Ve=function(){function e(){}return e.prototype.sendEvent=function(e){return N.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:Pe.Skipped})},e.prototype.close=function(e){return N.resolve(!0)},e}(),He=function(){function e(e){this._options=e,this._options.dsn||Y.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return e.prototype.eventFromException=function(e,t){throw new Re("Backend has to implement `eventFromException` method")},e.prototype.eventFromMessage=function(e,t,n){throw new Re("Backend has to implement `eventFromMessage` method")},e.prototype.sendEvent=function(e){this._transport.sendEvent(e).then(null,(function(e){Y.error("Error while sending event: "+e)}))},e.prototype.sendSession=function(e){this._transport.sendSession?this._transport.sendSession(e).then(null,(function(e){Y.error("Error while sending session: "+e)})):Y.warn("Dropping session because custom transport doesn't implement sendSession")},e.prototype.getTransport=function(){return this._transport},e.prototype._setupTransport=function(){return new Ve},e}();function We(){if(!("fetch"in(0,F.VZ)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function qe(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Ge(){if(!We())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}}(ze=Ue||(Ue={})).Fatal="fatal",ze.Error="error",ze.Warning="warning",ze.Log="log",ze.Info="info",ze.Debug="debug",ze.Critical="critical",function(e){e.fromString=function(t){switch(t){case"debug":return e.Debug;case"info":return e.Info;case"warn":case"warning":return e.Warning;case"error":return e.Error;case"fatal":return e.Fatal;case"critical":return e.Critical;default:return e.Log}}}(Ue||(Ue={}));var Ye="?",Ke=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,$e=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Xe=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Qe=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ze=/\((\S*)(?::(\d+))(?::(\d+))\)/,Je=/Minified React error #\d+;/i;function et(e){var t=null,n=0;e&&("number"==typeof e.framesToPop?n=e.framesToPop:Je.test(e.message)&&(n=1));try{if(t=function(e){if(!e||!e.stacktrace)return null;for(var t,n=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,r=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,i=e.stacktrace.split("\n"),o=[],a=0;a<i.length;a+=2){var s=null;(t=n.exec(i[a]))?s={url:t[2],func:t[3],args:[],line:+t[1],column:null}:(t=r.exec(i[a]))&&(s={url:t[6],func:t[3]||t[4],args:t[5]?t[5].split(","):[],line:+t[1],column:+t[2]}),s&&(!s.func&&s.line&&(s.func=Ye),o.push(s))}return o.length?{message:nt(e),name:e.name,stack:o}:null}(e))return tt(t,n)}catch(e){}try{if(t=function(e){if(!e||!e.stack)return null;for(var t,n,r,i=[],o=e.stack.split("\n"),a=0;a<o.length;++a){if(n=Ke.exec(o[a])){var s=n[2]&&0===n[2].indexOf("native");n[2]&&0===n[2].indexOf("eval")&&(t=Ze.exec(n[2]))&&(n[2]=t[1],n[3]=t[2],n[4]=t[3]),r={url:n[2]&&0===n[2].indexOf("address at ")?n[2].substr(11):n[2],func:n[1]||Ye,args:s?[n[2]]:[],line:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}else if(n=Xe.exec(o[a]))r={url:n[2],func:n[1]||Ye,args:[],line:+n[3],column:n[4]?+n[4]:null};else{if(!(n=$e.exec(o[a])))continue;n[3]&&n[3].indexOf(" > eval")>-1&&(t=Qe.exec(n[3]))?(n[1]=n[1]||"eval",n[3]=t[1],n[4]=t[2],n[5]=""):0!==a||n[5]||void 0===e.columnNumber||(i[0].column=e.columnNumber+1),r={url:n[3],func:n[1]||Ye,args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}!r.func&&r.line&&(r.func=Ye),i.push(r)}return i.length?{message:nt(e),name:e.name,stack:i}:null}(e))return tt(t,n)}catch(e){}return{message:nt(e),name:e&&e.name,stack:[],failed:!0}}function tt(e,t){try{return je(je({},e),{stack:e.stack.slice(t)})}catch(t){return e}}function nt(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function rt(e){var t=ot(e.stack),n={type:e.name,value:e.message};return t&&t.length&&(n.stacktrace={frames:t}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function it(e){return{exception:{values:[rt(e)]}}}function ot(e){if(!e||!e.length)return[];var t=e,n=t[0].func||"",r=t[t.length-1].func||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==r.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.slice(0,50).map((function(e){return{colno:null===e.column?void 0:e.column,filename:e.url||t[0].url,function:e.func||"?",in_app:!0,lineno:null===e.line?void 0:e.line}})).reverse()}function at(e,t,n){var r,i;if(void 0===n&&(n={}),k(e)&&e.error)return it(et(e=e.error));if(E(e)||(i=e,"[object DOMException]"===Object.prototype.toString.call(i))){var o=e,a=o.name||(E(o)?"DOMError":"DOMException"),s=o.message?a+": "+o.message:a;return r=st(s,t,n),(0,F.gO)(r,s),"code"in o&&(r.tags=je(je({},r.tags),{"DOMException.code":""+o.code})),r}return O(e)?r=it(et(e)):C(e)||A(e)?(r=function(e,t,n){var r={exception:{values:[{type:A(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+fe(e)}]},extra:{__serialized__:ue(e)}};if(t){var i=ot(et(t).stack);r.stacktrace={frames:i}}return r}(e,t,n.rejection),(0,F.M6)(r,{synthetic:!0}),r):(r=st(e,t,n),(0,F.gO)(r,""+e,void 0),(0,F.M6)(r,{synthetic:!0}),r)}function st(e,t,n){void 0===n&&(n={});var r={message:e};if(n.attachStacktrace&&t){var i=ot(et(t).stack);r.stacktrace={frames:i}}return r}function ut(e,t){return{body:JSON.stringify({sent_at:(new Date).toISOString()})+"\n"+JSON.stringify({type:"session"})+"\n"+JSON.stringify(e),type:"session",url:t.getEnvelopeEndpointWithUrlEncodedAuth()}}function ct(e,t){var n=e.tags||{},r=n.__sentry_samplingMethod,i=n.__sentry_sampleRate,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(n,["__sentry_samplingMethod","__sentry_sampleRate"]);e.tags=o;var a="transaction"===e.type,s={body:JSON.stringify(e),type:e.type||"event",url:a?t.getEnvelopeEndpointWithUrlEncodedAuth():t.getStoreEndpointWithUrlEncodedAuth()};if(a){var u=JSON.stringify({event_id:e.event_id,sent_at:(new Date).toISOString()})+"\n"+JSON.stringify({type:e.type,sample_rates:[{id:r,rate:i}]})+"\n"+s.body;s.body=u}return s}var lt=function(){function e(e){this.dsn=e,this._dsnObject=new Ne(e)}return e.prototype.getDsn=function(){return this._dsnObject},e.prototype.getBaseApiEndpoint=function(){var e=this._dsnObject,t=e.protocol?e.protocol+":":"",n=e.port?":"+e.port:"";return t+"//"+e.host+n+(e.path?"/"+e.path:"")+"/api/"},e.prototype.getStoreEndpoint=function(){return this._getIngestEndpoint("store")},e.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return this.getStoreEndpoint()+"?"+this._encodedAuth()},e.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return this._getEnvelopeEndpoint()+"?"+this._encodedAuth()},e.prototype.getStoreEndpointPath=function(){var e=this._dsnObject;return(e.path?"/"+e.path:"")+"/api/"+e.projectId+"/store/"},e.prototype.getRequestHeaders=function(e,t){var n=this._dsnObject,r=["Sentry sentry_version=7"];return r.push("sentry_client="+e+"/"+t),r.push("sentry_key="+n.user),n.pass&&r.push("sentry_secret="+n.pass),{"Content-Type":"application/json","X-Sentry-Auth":r.join(", ")}},e.prototype.getReportDialogEndpoint=function(e){void 0===e&&(e={});var t=this._dsnObject,n=this.getBaseApiEndpoint()+"embed/error-page/",r=[];for(var i in r.push("dsn="+t.toString()),e)if("dsn"!==i)if("user"===i){if(!e.user)continue;e.user.name&&r.push("name="+encodeURIComponent(e.user.name)),e.user.email&&r.push("email="+encodeURIComponent(e.user.email))}else r.push(encodeURIComponent(i)+"="+encodeURIComponent(e[i]));return r.length?n+"?"+r.join("&"):n},e.prototype._getEnvelopeEndpoint=function(){return this._getIngestEndpoint("envelope")},e.prototype._getIngestEndpoint=function(e){return""+this.getBaseApiEndpoint()+this._dsnObject.projectId+"/"+e+"/"},e.prototype._encodedAuth=function(){var e,t={sentry_key:this._dsnObject.user,sentry_version:"7"};return e=t,Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")},e}(),ft=function(){function e(e){this._limit=e,this._buffer=[]}return e.prototype.isReady=function(){return void 0===this._limit||this.length()<this._limit},e.prototype.add=function(e){var t=this;return this.isReady()?(-1===this._buffer.indexOf(e)&&this._buffer.push(e),e.then((function(){return t.remove(e)})).then(null,(function(){return t.remove(e).then(null,(function(){}))})),e):N.reject(new Re("Not adding Promise due to buffer limit reached."))},e.prototype.remove=function(e){return this._buffer.splice(this._buffer.indexOf(e),1)[0]},e.prototype.length=function(){return this._buffer.length},e.prototype.drain=function(e){var t=this;return new N((function(n){var r=setTimeout((function(){e&&e>0&&n(!1)}),e);N.all(t._buffer).then((function(){clearTimeout(r),n(!0)})).then(null,(function(){n(!0)}))}))},e}(),dt=function(){function e(e){this.options=e,this._buffer=new ft(30),this._rateLimits={},this._api=new lt(this.options.dsn),this.url=this._api.getStoreEndpointWithUrlEncodedAuth()}return e.prototype.sendEvent=function(e){throw new Re("Transport Class has to implement `sendEvent` method")},e.prototype.close=function(e){return this._buffer.drain(e)},e.prototype._handleResponse=function(e){var t=e.requestType,n=e.response,r=e.headers,i=e.resolve,o=e.reject,a=Pe.fromHttpCode(n.status);this._handleRateLimit(r)&&Y.warn("Too many requests, backing off until: "+this._disabledUntil(t)),a!==Pe.Success?o(n):i({status:a})},e.prototype._disabledUntil=function(e){return this._rateLimits[e]||this._rateLimits.all},e.prototype._isRateLimited=function(e){return this._disabledUntil(e)>new Date(Date.now())},e.prototype._handleRateLimit=function(e){var t,n,r,i,o=Date.now(),a=e["x-sentry-rate-limits"],s=e["retry-after"];if(a){try{for(var u=Te(a.trim().split(",")),c=u.next();!c.done;c=u.next()){var l=c.value.split(":",2),f=parseInt(l[0],10),d=1e3*(isNaN(f)?60:f);try{for(var p=(r=void 0,Te(l[1].split(";"))),h=p.next();!h.done;h=p.next()){var v=h.value;this._rateLimits[v||"all"]=new Date(o+d)}}catch(e){r={error:e}}finally{try{h&&!h.done&&(i=p.return)&&i.call(p)}finally{if(r)throw r.error}}}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return!0}return!!s&&(this._rateLimits.all=new Date(o+(0,F.FA)(o,s)),!0)},e}(),pt=(0,F.VZ)(),ht=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ee(t,e),t.prototype.sendEvent=function(e){return this._sendRequest(ct(e,this._api),e)},t.prototype.sendSession=function(e){return this._sendRequest(ut(e,this._api),e)},t.prototype._sendRequest=function(e,t){var n=this;if(this._isRateLimited(e.type))return Promise.reject({event:t,type:e.type,reason:"Transport locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429});var r={body:e.body,method:"POST",referrerPolicy:Ge()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(r,this.options.fetchParameters),void 0!==this.options.headers&&(r.headers=this.options.headers),this._buffer.add(new N((function(t,i){pt.fetch(e.url,r).then((function(r){var o={"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")};n._handleResponse({requestType:e.type,response:r,headers:o,resolve:t,reject:i})})).catch(i)})))},t}(dt),vt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ee(t,e),t.prototype.sendEvent=function(e){return this._sendRequest(ct(e,this._api),e)},t.prototype.sendSession=function(e){return this._sendRequest(ut(e,this._api),e)},t.prototype._sendRequest=function(e,t){var n=this;return this._isRateLimited(e.type)?Promise.reject({event:t,type:e.type,reason:"Transport locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429}):this._buffer.add(new N((function(t,r){var i=new XMLHttpRequest;for(var o in i.onreadystatechange=function(){if(4===i.readyState){var o={"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")};n._handleResponse({requestType:e.type,response:i,headers:o,resolve:t,reject:r})}},i.open("POST",e.url),n.options.headers)n.options.headers.hasOwnProperty(o)&&i.setRequestHeader(o,n.options.headers[o]);i.send(e.body)})))},t}(dt),gt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ee(t,e),t.prototype.eventFromException=function(e,t){return function(e,t,n){var r=at(t,n&&n.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return(0,F.M6)(r,{handled:!0,type:"generic"}),r.level=Ue.Error,n&&n.event_id&&(r.event_id=n.event_id),N.resolve(r)}(this._options,e,t)},t.prototype.eventFromMessage=function(e,t,n){return void 0===t&&(t=Ue.Info),function(e,t,n,r){void 0===n&&(n=Ue.Info);var i=st(t,r&&r.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),N.resolve(i)}(this._options,e,t,n)},t.prototype._setupTransport=function(){if(!this._options.dsn)return e.prototype._setupTransport.call(this);var t=je(je({},this._options.transportOptions),{dsn:this._options.dsn});return this._options.transport?new this._options.transport(t):We()?new ht(t):new vt(t)},t}(He);function mt(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function yt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=me();if(r&&r[e])return r[e].apply(r,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(mt(arguments[t]));return e}(t));throw new Error("No hub defined or "+e+" was not found on the hub, please open a bug report.")}function bt(e,t){var n;try{throw new Error("Sentry syntheticException")}catch(e){n=e}return yt("captureException",e,{captureContext:t,originalException:e,syntheticException:n})}var xt=0;function wt(){return xt>0}function _t(e,t,n){if(void 0===t&&(t={}),"function"!=typeof e)return e;try{if(e.__sentry__)return e;if(e.__sentry_wrapped__)return e.__sentry_wrapped__}catch(t){return e}var r=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var i=r.map((function(e){return _t(e,t)}));return e.handleEvent?e.handleEvent.apply(this,i):e.apply(this,i)}catch(e){throw xt+=1,setTimeout((function(){xt-=1})),yt("withScope",(function(n){n.addEventProcessor((function(e){var n=je({},e);return t.mechanism&&((0,F.gO)(n,void 0,void 0),(0,F.M6)(n,t.mechanism)),n.extra=je(je({},n.extra),{arguments:r}),n})),bt(e)})),e}};try{for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch(e){}e.prototype=e.prototype||{},r.prototype=e.prototype,Object.defineProperty(e,"__sentry_wrapped__",{enumerable:!1,value:r}),Object.defineProperties(r,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:e}});try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:function(){return e.name}})}catch(e){}return r}var St,Ot=(0,F.VZ)(),kt={},Et={};function jt(e){e&&"string"==typeof e.type&&"function"==typeof e.callback&&(kt[e.type]=kt[e.type]||[],kt[e.type].push(e.callback),function(e){if(!Et[e])switch(Et[e]=!0,e){case"console":"console"in Ot&&["debug","info","warn","error","log","assert"].forEach((function(e){e in Ot.console&&ae(Ot.console,e,(function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];Tt("console",{args:n,level:e}),t&&Function.prototype.apply.call(t,Ot.console,n)}}))}));break;case"dom":"document"in Ot&&(Ot.document.addEventListener("click",Dt("click",Tt.bind(null,"dom")),!1),Ot.document.addEventListener("keypress",Lt(Tt.bind(null,"dom")),!1),["EventTarget","Node"].forEach((function(e){var t=Ot[e]&&Ot[e].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&(ae(t,"addEventListener",(function(e){return function(t,n,r){return n&&n.handleEvent?("click"===t&&ae(n,"handleEvent",(function(e){return function(t){return Dt("click",Tt.bind(null,"dom"))(t),e.call(this,t)}})),"keypress"===t&&ae(n,"handleEvent",(function(e){return function(t){return Lt(Tt.bind(null,"dom"))(t),e.call(this,t)}}))):("click"===t&&Dt("click",Tt.bind(null,"dom"),!0)(this),"keypress"===t&&Lt(Tt.bind(null,"dom"))(this)),e.call(this,t,n,r)}})),ae(t,"removeEventListener",(function(e){return function(t,n,r){try{e.call(this,t,n.__sentry_wrapped__,r)}catch(e){}return e.call(this,t,n,r)}})))})));break;case"xhr":!function(){if("XMLHttpRequest"in Ot){var e=[],t=[],n=XMLHttpRequest.prototype;ae(n,"open",(function(n){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=this,a=r[1];o.__sentry_xhr__={method:j(r[0])?r[0].toUpperCase():r[0],url:r[1]},j(a)&&"POST"===o.__sentry_xhr__.method&&a.match(/sentry_key/)&&(o.__sentry_own_request__=!0);var s=function(){if(4===o.readyState){try{o.__sentry_xhr__&&(o.__sentry_xhr__.status_code=o.status)}catch(e){}try{var n=e.indexOf(o);if(-1!==n){e.splice(n);var i=t.splice(n)[0];o.__sentry_xhr__&&void 0!==i[0]&&(o.__sentry_xhr__.body=i[0])}}catch(e){}Tt("xhr",{args:r,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:o})}};return"onreadystatechange"in o&&"function"==typeof o.onreadystatechange?ae(o,"onreadystatechange",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return s(),e.apply(o,t)}})):o.addEventListener("readystatechange",s),n.apply(o,r)}})),ae(n,"send",(function(n){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return e.push(this),t.push(r),Tt("xhr",{args:r,startTimestamp:Date.now(),xhr:this}),n.apply(this,r)}}))}}();break;case"fetch":(function(){if(!We())return!1;var e=(0,F.VZ)();if(qe(e.fetch))return!0;var t=!1,n=e.document;if(n&&"function"==typeof n.createElement)try{var r=n.createElement("iframe");r.hidden=!0,n.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=qe(r.contentWindow.fetch)),n.head.removeChild(r)}catch(e){Y.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return t})()&&ae(Ot,"fetch",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r={args:t,fetchData:{method:Ct(t),url:At(t)},startTimestamp:Date.now()};return Tt("fetch",X({},r)),e.apply(Ot,t).then((function(e){return Tt("fetch",X(X({},r),{endTimestamp:Date.now(),response:e})),e}),(function(e){throw Tt("fetch",X(X({},r),{endTimestamp:Date.now(),error:e})),e}))}}));break;case"history":!function(){if(n=(t=(e=(0,F.VZ)()).chrome)&&t.app&&t.app.runtime,r="history"in e&&!!e.history.pushState&&!!e.history.replaceState,!n&&r){var e,t,n,r,i=Ot.onpopstate;Ot.onpopstate=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Ot.location.href,r=St;if(St=n,Tt("history",{from:r,to:n}),i)return i.apply(this,e)},ae(Ot.history,"pushState",o),ae(Ot.history,"replaceState",o)}function o(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.length>2?t[2]:void 0;if(r){var i=St,o=String(r);St=o,Tt("history",{from:i,to:o})}return e.apply(this,t)}}}();break;case"error":Nt=Ot.onerror,Ot.onerror=function(e,t,n,r,i){return Tt("error",{column:r,error:i,line:n,msg:e,url:t}),!!Nt&&Nt.apply(this,arguments)};break;case"unhandledrejection":Ft=Ot.onunhandledrejection,Ot.onunhandledrejection=function(e){return Tt("unhandledrejection",e),!Ft||Ft.apply(this,arguments)};break;default:Y.warn("unknown instrumentation type:",e)}}(e.type))}function Tt(e,t){var n,r;if(e&&kt[e])try{for(var i=Q(kt[e]||[]),o=i.next();!o.done;o=i.next()){var a=o.value;try{a(t)}catch(t){Y.error("Error while triggering instrumentation handler.\nType: "+e+"\nName: "+ne(a)+"\nError: "+t)}}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}function Ct(e){return void 0===e&&(e=[]),"Request"in Ot&&I(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function At(e){return void 0===e&&(e=[]),"string"==typeof e[0]?e[0]:"Request"in Ot&&I(e[0],Request)?e[0].url:String(e[0])}var Pt,Mt,It=1e3,Rt=0;function Dt(e,t,n){return void 0===n&&(n=!1),function(r){Pt=void 0,r&&Mt!==r&&(Mt=r,Rt&&clearTimeout(Rt),n?Rt=setTimeout((function(){t({event:r,name:e})})):t({event:r,name:e}))}}function Lt(e){return function(t){var n;try{n=t.target}catch(e){return}var r=n&&n.tagName;r&&("INPUT"===r||"TEXTAREA"===r||n.isContentEditable)&&(Pt||Dt("input",e)(t),clearTimeout(Pt),Pt=setTimeout((function(){Pt=void 0}),It))}}var Nt=null,Ft=null,Bt=function(){function e(t){this.name=e.id,this._options=je({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return e.prototype.addSentryBreadcrumb=function(e){this._options.sentry&&me().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:(0,F.$X)(e)},{event:e})},e.prototype.setupOnce=function(){var e=this;this._options.console&&jt({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._consoleBreadcrumb.apply(e,Ae(t))},type:"console"}),this._options.dom&&jt({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._domBreadcrumb.apply(e,Ae(t))},type:"dom"}),this._options.xhr&&jt({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._xhrBreadcrumb.apply(e,Ae(t))},type:"xhr"}),this._options.fetch&&jt({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._fetchBreadcrumb.apply(e,Ae(t))},type:"fetch"}),this._options.history&&jt({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._historyBreadcrumb.apply(e,Ae(t))},type:"history"})},e.prototype._consoleBreadcrumb=function(e){var t={category:"console",data:{arguments:e.args,logger:"console"},level:Ue.fromString(e.level),message:ie(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message="Assertion failed: "+(ie(e.args.slice(1)," ")||"console.assert"),t.data.arguments=e.args.slice(1)}me().addBreadcrumb(t,{input:e.args,level:e.level})},e.prototype._domBreadcrumb=function(e){var t;try{t=e.event.target?Z(e.event.target):Z(e.event)}catch(e){t="<unknown>"}0!==t.length&&me().addBreadcrumb({category:"ui."+e.name,message:t},{event:e.event,name:e.name})},e.prototype._xhrBreadcrumb=function(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;var t=e.xhr.__sentry_xhr__||{},n=t.method,r=t.url,i=t.status_code,o=t.body;me().addBreadcrumb({category:"xhr",data:{method:n,url:r,status_code:i},type:"http"},{xhr:e.xhr,input:o})}},e.prototype._fetchBreadcrumb=function(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?me().addBreadcrumb({category:"fetch",data:e.fetchData,level:Ue.Error,type:"http"},{data:e.error,input:e.args}):me().addBreadcrumb({category:"fetch",data:je(je({},e.fetchData),{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})))},e.prototype._historyBreadcrumb=function(e){var t=(0,F.VZ)(),n=e.from,r=e.to,i=(0,F.Dl)(t.location.href),o=(0,F.Dl)(n),a=(0,F.Dl)(r);o.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),me().addBreadcrumb({category:"navigation",data:{from:n,to:r}})},e.id="Breadcrumbs",e}(),Ut=function(e){function t(t){return void 0===t&&(t={}),e.call(this,gt,t)||this}return Ee(t,e),t.prototype.showReportDialog=function(e){void 0===e&&(e={}),(0,F.VZ)().document&&(this._isEnabled()?function(e){if(void 0===e&&(e={}),e.eventId)if(e.dsn){var t=document.createElement("script");t.async=!0,t.src=new lt(e.dsn).getReportDialogEndpoint(e),e.onLoad&&(t.onload=e.onLoad),(document.head||document.body).appendChild(t)}else Y.error("Missing dsn option in showReportDialog call");else Y.error("Missing eventId option in showReportDialog call")}(je(je({},e),{dsn:e.dsn||this.getDsn()})):Y.error("Trying to call showReportDialog with Sentry Client disabled"))},t.prototype._prepareEvent=function(t,n,r){return t.platform=t.platform||"javascript",t.sdk=je(je({},t.sdk),{name:"sentry.javascript.browser",packages:Ae(t.sdk&&t.sdk.packages||[],[{name:"npm:@sentry/browser",version:"5.30.0"}]),version:"5.30.0"}),e.prototype._prepareEvent.call(this,t,n,r)},t.prototype._sendEvent=function(t){var n=this.getIntegration(Bt);n&&n.addSentryBreadcrumb(t),e.prototype._sendEvent.call(this,t)},t}(Be),zt=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Vt=function(){function e(t){this.name=e.id,this._options=je({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}return e.prototype.setupOnce=function(){var e=(0,F.VZ)();this._options.setTimeout&&ae(e,"setTimeout",this._wrapTimeFunction.bind(this)),this._options.setInterval&&ae(e,"setInterval",this._wrapTimeFunction.bind(this)),this._options.requestAnimationFrame&&ae(e,"requestAnimationFrame",this._wrapRAF.bind(this)),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&ae(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),this._options.eventTarget&&(Array.isArray(this._options.eventTarget)?this._options.eventTarget:zt).forEach(this._wrapEventTarget.bind(this))},e.prototype._wrapTimeFunction=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t[0];return t[0]=_t(r,{mechanism:{data:{function:ne(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}},e.prototype._wrapRAF=function(e){return function(t){return e.call(this,_t(t,{mechanism:{data:{function:"requestAnimationFrame",handler:ne(e)},handled:!0,type:"instrument"}}))}},e.prototype._wrapEventTarget=function(e){var t=(0,F.VZ)(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(ae(n,"addEventListener",(function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=_t(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:ne(r),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.call(this,n,_t(r,{mechanism:{data:{function:"addEventListener",handler:ne(r),target:e},handled:!0,type:"instrument"}}),i)}})),ae(n,"removeEventListener",(function(e){return function(t,n,r){var i,o=n;try{var a=null===(i=o)||void 0===i?void 0:i.__sentry_wrapped__;a&&e.call(this,t,a,r)}catch(e){}return e.call(this,t,o,r)}})))},e.prototype._wrapXHR=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((function(e){e in r&&"function"==typeof r[e]&&ae(r,e,(function(t){var n={mechanism:{data:{function:e,handler:ne(t)},handled:!0,type:"instrument"}};return t.__sentry_original__&&(n.mechanism.data.handler=ne(t.__sentry_original__)),_t(t,n)}))})),e.apply(this,t)}},e.id="TryCatch",e}(),Ht=function(){function e(t){this.name=e.id,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=je({onerror:!0,onunhandledrejection:!0},t)}return e.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(Y.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&(Y.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},e.prototype._installGlobalOnErrorHandler=function(){var t=this;this._onErrorHandlerInstalled||(jt({callback:function(n){var r=n.error,i=me(),o=i.getIntegration(e),a=r&&!0===r.__sentry_own_request__;if(o&&!wt()&&!a){var s=i.getClient(),u=T(r)?t._eventFromIncompleteOnError(n.msg,n.url,n.line,n.column):t._enhanceEventWithInitialFrame(at(r,void 0,{attachStacktrace:s&&s.getOptions().attachStacktrace,rejection:!1}),n.url,n.line,n.column);(0,F.M6)(u,{handled:!1,type:"onerror"}),i.captureEvent(u,{originalException:r})}},type:"error"}),this._onErrorHandlerInstalled=!0)},e.prototype._installGlobalOnUnhandledRejectionHandler=function(){var t=this;this._onUnhandledRejectionHandlerInstalled||(jt({callback:function(n){var r=n;try{"reason"in n?r=n.reason:"detail"in n&&"reason"in n.detail&&(r=n.detail.reason)}catch(e){}var i=me(),o=i.getIntegration(e),a=r&&!0===r.__sentry_own_request__;if(!o||wt()||a)return!0;var s=i.getClient(),u=T(r)?t._eventFromRejectionWithPrimitive(r):at(r,void 0,{attachStacktrace:s&&s.getOptions().attachStacktrace,rejection:!0});u.level=Ue.Error,(0,F.M6)(u,{handled:!1,type:"onunhandledrejection"}),i.captureEvent(u,{originalException:r})},type:"unhandledrejection"}),this._onUnhandledRejectionHandlerInstalled=!0)},e.prototype._eventFromIncompleteOnError=function(e,t,n,r){var i,o=k(e)?e.message:e;if(j(o)){var a=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);a&&(i=a[1],o=a[2])}var s={exception:{values:[{type:i||"Error",value:o}]}};return this._enhanceEventWithInitialFrame(s,t,n,r)},e.prototype._eventFromRejectionWithPrimitive=function(e){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(e)}]}}},e.prototype._enhanceEventWithInitialFrame=function(e,t,n,r){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].stacktrace=e.exception.values[0].stacktrace||{},e.exception.values[0].stacktrace.frames=e.exception.values[0].stacktrace.frames||[];var i=isNaN(parseInt(r,10))?void 0:r,o=isNaN(parseInt(n,10))?void 0:n,a=j(t)&&t.length>0?t:(0,F.$N)();return 0===e.exception.values[0].stacktrace.frames.length&&e.exception.values[0].stacktrace.frames.push({colno:i,filename:a,function:"?",in_app:!0,lineno:o}),e},e.id="GlobalHandlers",e}(),Wt=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._key=t.key||"cause",this._limit=t.limit||5}return e.prototype.setupOnce=function(){z((function(t,n){var r=me().getIntegration(e);return r?r._handler(t,n):t}))},e.prototype._handler=function(e,t){if(!(e.exception&&e.exception.values&&t&&I(t.originalException,Error)))return e;var n=this._walkErrorTree(t.originalException,this._key);return e.exception.values=Ae(n,e.exception.values),e},e.prototype._walkErrorTree=function(e,t,n){if(void 0===n&&(n=[]),!I(e[t],Error)||n.length+1>=this._limit)return n;var r=rt(et(e[t]));return this._walkErrorTree(e[t],t,Ae([r],n))},e.id="LinkedErrors",e}(),qt=(0,F.VZ)(),Gt=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){z((function(t){var n,r,i;if(me().getIntegration(e)){if(!qt.navigator&&!qt.location&&!qt.document)return t;var o=(null===(n=t.request)||void 0===n?void 0:n.url)||(null===(r=qt.location)||void 0===r?void 0:r.href),a=(qt.document||{}).referrer,s=(qt.navigator||{}).userAgent,u=je(je(je({},null===(i=t.request)||void 0===i?void 0:i.headers),a&&{Referer:a}),s&&{"User-Agent":s}),c=je(je({},o&&{url:o}),{headers:u});return je(je({},t),{request:c})}return t}))},e.id="UserAgent",e}(),Yt=[new Se,new Oe,new Vt,new Bt,new Ht,new Wt,new Gt];function Kt(e){if(void 0===e&&(e={}),void 0===e.defaultIntegrations&&(e.defaultIntegrations=Yt),void 0===e.release){var t=(0,F.VZ)();t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id&&(e.release=t.SENTRY_RELEASE.id)}void 0===e.autoSessionTracking&&(e.autoSessionTracking=!1),function(e,t){!0===t.debug&&Y.enable();var n=me(),r=new e(t);n.bindClient(r)}(Ut,e),e.autoSessionTracking&&function(){var e=(0,F.VZ)(),t=me(),n="complete"===document.readyState,r=!1,i=function(){r&&n&&t.endSession()},o=function(){n=!0,i(),e.removeEventListener("load",o)};t.startSession(),n||e.addEventListener("load",o);try{var a=new PerformanceObserver((function(e,t){e.getEntries().forEach((function(e){"first-contentful-paint"===e.name&&e.startTime<s&&(t.disconnect(),r=!0,i())}))})),s="hidden"===document.visibilityState?0:1/0;document.addEventListener("visibilitychange",(function(e){s=Math.min(s,e.timeStamp)}),{once:!0}),a.observe({type:"paint",buffered:!0})}catch(e){r=!0,i()}}()}var $t={FAIL:"fail",PLAY:"play",DEBUG:"debug"},Xt={STREAMING:"streaming"},Qt={INITIALIZING:"initializing",STREAMING:"streaming",STOPPED:"stopped"},Zt="stalled",Jt="waiting",en="playing",tn="undefined"!=typeof window&&(window.RTCPeerConnection||window.mozRTCPeerConnection||window.webkitRTCPeerConnection),nn=("undefined"!=typeof window&&(window.RTCIceCandidate||window.mozRTCIceCandidate||window.RTCIceCandidate),"undefined"!=typeof window&&(window.RTCSessionDescription||window.mozRTCSessionDescription||window.RTCSessionDescription)),rn=r(4974),on=r.n(rn),an=r(6942),sn=r.n(an),un="",cn=function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=console).log.apply(e,n),un+="".concat(JSON.stringify(n),"\n")},ln=function(){},fn=p((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];f(this,e),this.url=t,this.emitter=new(on()),this.notify=this.emitter.emit.bind(this.emitter),this.log=r?cn:ln,this.isFirstMsgReceived=!1,this.retryMax=n.retryMax||1,this.retryDelay=n.retryDelay||3e3,this.retryCounter=this.retryMax,this.stopRetryTimeout=null,this.connectionTimeout=null}),[{key:"destroy",value:function(){clearTimeout(this.stopRetryTimeout),clearTimeout(this.connectionTimeout),sn()(this.emitter),"function"==typeof this.onDestroy&&this.onDestroy()}},{key:"stopRetry",value:function(e){this.isFirstMsgReceived=!1,this.retryCounter-=1,this.retryCounter>0?(clearTimeout(this.stopRetryTimeout),this.stopRetryTimeout=setTimeout(e.bind(this),this.retryDelay)):this.stop()}},{key:"stop",value:function(){this.shouldImplementError("stop")}},{key:"retryCounterReset",value:function(){this.retryCounter=this.retryMax}},{key:"on",value:function(){for(var e=this.emitter.on,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.apply(this.emitter,n)}},{key:"shouldImplementError",value:function(e){return function(){throw new Error("Custom ".concat(e," method should be implemented for WebRTCBase descendants"))}}},{key:"getVideoCardInfo",value:function(){var e="undefined"!=typeof document&&document.createElement("canvas").getContext("webgl");if(!e)return"";var t=e.getExtension("WEBGL_debug_renderer_info");return t?e.getParameter(t.UNMASKED_RENDERER_WEBGL):"no WEBGL_debug_renderer_info"}}],[{key:"version",get:function(){try{return"24.7.1"}catch(e){return""}}}]);function dn(){var e=(new Date).getTime(),t="undefined"!=typeof performance&&performance.now&&1e3*performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(n){var r=16*Math.random();return e>0?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(t+r)%16|0,t=Math.floor(t/16)),("x"===n?r:3&r|8).toString(16)}))}function pn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;console.debug(">onnegotiationneeded");var i=e.target;return new Promise((function(e,o){i.createOffer(n).then((function(n){i.setLocalDescription(n).then((function(){(function(e,t){var n=performance.now(),r=new Promise((function(t){setTimeout((function(){t(e.localDescription)}),250),e.onicegatheringstatechange=function(n){return"complete"===e.iceGatheringState&&t(e.localDescription)}}));return r.then((function(){console.debug("ice gather blocked for N ms:",Math.ceil(performance.now()-n))})),r})(i).then((function(n){var a=performance.now();console.debug("sending N line offer:",n.sdp.split(/\r\n|\r|\n/).length);var s={method:"POST",headers:{"Content-Type":"application/sdp"}};"string"==typeof r&&(s.headers.Authorization="Bearer ".concat(r)),s.body=n.sdp,fetch(t,s).then((function(t){201===t.status&&t.text().then((function(n){console.debug("got N line answer:",n.split(/\r\n|\r|\n/).length),i.signalingState&&"closed"!==i.signalingState&&i.setRemoteDescription(new RTCSessionDescription({type:"answer",sdp:n})).then((function(){var n=t.headers;e(n.get("X-Sid"))})).catch((function(e){o(e)}))}))})).catch((function(e){o(e)}));var u=(performance.now()-a)/1e3,c=new CustomEvent("downtime-msg",{detail:{status:-1,numsec:u}});i.dispatchEvent(c)}))}))}))}))}function hn(e){var t=e.target;console.debug(">iceconnectionstatechange",t.iceConnectionState),"failed"===t.iceConnectionState&&(console.debug("*** restarting ice"),t.restartIce())}var vn=["sdp"];function gn(){gn=function(){return n};var t,n={},r=Object.prototype,i=r.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(t){l=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),s=new P(r||[]);return o(a,"_invoke",{value:j(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=f;var p="suspendedStart",h="suspendedYield",v="executing",g="completed",m={};function y(){}function b(){}function x(){}var w={};l(w,s,(function(){return this}));var _=Object.getPrototypeOf,S=_&&_(_(M([])));S&&S!==r&&i.call(S,s)&&(w=S);var O=x.prototype=y.prototype=Object.create(w);function k(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function E(t,n){function r(o,a,s,u){var c=d(t[o],t,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==e(f)&&i.call(f,"__await")?n.resolve(f.__await).then((function(e){r("next",e,s,u)}),(function(e){r("throw",e,s,u)})):n.resolve(f).then((function(e){l.value=e,s(l)}),(function(e){return r("throw",e,s,u)}))}u(c.arg)}var a;o(this,"_invoke",{value:function(e,t){function i(){return new n((function(n,i){r(e,t,n,i)}))}return a=a?a.then(i,i):i()}})}function j(e,n,r){var i=p;return function(o,a){if(i===v)throw Error("Generator is already running");if(i===g){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=T(s,r);if(u){if(u===m)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===p)throw i=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=v;var c=d(e,n,r);if("normal"===c.type){if(i=r.done?g:h,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=g,r.method="throw",r.arg=c.arg)}}}function T(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,T(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=d(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function C(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 A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function M(n){if(n||""===n){var r=n[s];if(r)return r.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var o=-1,a=function e(){for(;++o<n.length;)if(i.call(n,o))return e.value=n[o],e.done=!1,e;return e.value=t,e.done=!0,e};return a.next=a}}throw new TypeError(e(n)+" is not iterable")}return b.prototype=x,o(O,"constructor",{value:x,configurable:!0}),o(x,"constructor",{value:b,configurable:!0}),b.displayName=l(x,c,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,l(e,c,"GeneratorFunction")),e.prototype=Object.create(O),e},n.awrap=function(e){return{__await:e}},k(E.prototype),l(E.prototype,u,(function(){return this})),n.AsyncIterator=E,n.async=function(e,t,r,i,o){void 0===o&&(o=Promise);var a=new E(f(e,t,r,i),o);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(O),l(O,c,"Generator"),l(O,s,(function(){return this})),l(O,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=M,P.prototype={constructor:P,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(A),!e)for(var n in this)"t"===n.charAt(0)&&i.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 r(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 r("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;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,m):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),m},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),A(n),m}},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;A(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:M(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},n}function mn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(mn=function(){return!!e})()}var yn=function(e){function t(e,n){var r,i,o,a,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(f(this,t),i=this,a=[n,s,u],o=v(o=t),r=h(i,mn()?Reflect.construct(o,a||[],v(i).constructor):o.apply(i,a)),!(e instanceof HTMLMediaElement))throw new Error("First argument must be html5 video tag");if(r.remoteVideo=e,r.remoteVideo.addEventListener("play",r.onVideoPlay.bind(r)),r.opts=s,"start_track"in s){if("string"!=typeof s.start_track)throw new Error("start_track must be string");r.start_track=s.start_track}if("videoDisabled"in s&&s.videoDisabled?r.opts.videoDisabled=!0:r.opts.videoDisabled=!1,"audioDisabled"in s&&s.audioDisabled){if(r.opts.videoDisabled)throw new Error("You must enable at least one transceiver");r.opts.audioDisabled=!0}else r.opts.audioDisabled=!1;return s.autoplay&&r.play(),s.sentryConfig&&s.sentryConfig.length&&(r.sentryConfig=s.sentryConfig),s.onMediaInfo&&(r.onMediaInfo=s.onMediaInfo),s.onTrackInfo&&(r.onTrackInfo=s.onTrackInfo),r.abr=!1,r.onEventCallback=s.onEvent,r.statsSendEnable=s.statsSendEnable||!0,r.statsSendTime=1e3*s.statsSendTime||6e4,r}return m(t,e),p(t,[{key:"resetStats",value:function(){this.playerStatsObject={proto:"webrtc",user_agent:navigator.userAgent,bytes:0,application:{application_name:"webrtc_player",application_version:fn.version?fn.version:null,stall_count:0,pause_count:0,error_count:0,reconnect_count:0,bitrate_change_count:0,live_duration:0,stall_duration:0,pause_duration:0,total_video_frames:0,dropped_video_frames:0,corrupted_video_frames:0}},(this.statsSendEnable||this.opts.statsSendEnable)&&this.startSendStats()}},{key:"onDestroy",value:function(){this.stop(),this.remoteVideo.removeEventListener("play",this.onVideoPlay)}},{key:"createPeerConnection",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.log("Player::createPeerConnection"),this.remotePc=new tn(t),this.remotePc.stream_id="remote1",this.opts.videoDisabled||this.remotePc.addTransceiver("video",{direction:"sendrecv"}),this.opts.audioDisabled||this.remotePc.addTransceiver("audio",{direction:"sendrecv"}),this.remotePc.addEventListener("iceconnectionstatechange",hn),this.remotePc.addEventListener("negotiationneeded",(function(t){pn(t,n,{offerToReceiveAudio:!e.opts.audioDisabled,offerToReceiveVideo:!e.opts.videoDisabled}).then((function(t){e.xsid=t})).catch((function(t){e.log("handleNegotiationNeeded",t),e.addPlayerStat("error_count"),e.addPlayerStat("reconnect_count"),e.stopRetry(e.play)}))})),this.remotePc.ontrack=this.gotRemoteTrack.bind(this),this.remotePc.onconnectionstatechange=function(){e.remotePc&&(e.log("Player::peer connection state:",e.remotePc.connectionState),"closed"===e.remotePc.connectionState||"disconnected"===e.remotePc.connectionState?(e.stop(),e.notify($t.FAIL,"peer_connection_closed")):"failed"===e.remotePc.connectionState&&e.stopRetry(e.play))},this.remotePc.ondatachannel=function(e){console.debug("!!! ice candidate on data channel:",e)},this.remotePc.oniceconnectionstatechange=function(t){e.remotePc&&(e.log("Player::ice connection change:",t,{iceConnectionState:e.remotePc.iceConnectionState}),"failed"===e.remotePc.iceConnectionState?(e.stopRetry(e.play),e.notify($t.FAIL,"ice_connection_fail")):"closed"!==e.remotePc.iceConnectionState&&"disconnected"!==e.remotePc.iceConnectionState&&void 0!==e.remotePc.iceConnectionState||(e.notify($t.FAIL,"ice_connection_closed"),e.stopRetry(e.play)),e.notify($t.DEBUG,["ICE connection state",e.remotePc&&e.remotePc.iceConnectionState]))},this.remotePc.onicegatheringstatechange=function(t){e.log("Player::ice gathering state",e.remotePc.iceGatheringState,t)},this.progressListener||this.startProgressListener()}},{key:"getUrl",value:function(){var e=new URL(this.url);return e.pathname="".concat(e.pathname,"/whep"),e.search=this.opts.authTokenName&&this.opts.tokenValue?"?".concat(this.opts.authTokenName,"=").concat(this.opts.tokenValue):"",this.start_track&&(e.search+="".concat(this.opts.authTokenName&&this.opts.tokenValue?"&":"?","start_track=").concat(this.start_track)),e.toString()}},{key:"play",value:function(){this.log("Player::play"),this.remotePc&&this.stop(),this.resetStats(),this.uuid=dn(),this.playerStatsObject.id=this.uuid,this.playerStatsObject.opened_at=Date.now(),this.stopRetryTimeout&&clearTimeout(this.stopRetryTimeout),this.addListeners();var e=this.getUrl();this.createPeerConnection({bundlePolicy:"max-bundle"},e),this.getMediaInfo(),this.sentryConfig&&(Kt({dsn:this.sentryConfig,environment:"production",release:"FlussonicWebrtcPlayer".concat(fn.version?"@".concat(fn.version):""),tracesSampleRate:1}),this.sentryEnabled=!0)}},{key:"stop",value:function(){if(this.isFirstMsgReceived=!1,this.retryCounterReset(),this.remotePc&&(this.remotePc.onconnectionstatechange=null,this.remotePc.ondatachannel=null,this.remotePc.onicecandidate=null,this.remotePc.onicecandidateerror=null,this.remotePc.oniceconnectionstatechange=null,this.remotePc.onicegatheringstatechange=null,this.remotePc.onremovestream=null,this.remotePc.ontrack=null,this.remotePc.close(),delete this.remotePc),this.stallingStarted){clearTimeout(this.probablyStalled);var e=this.playerStatsObject.application;if(e){var t=e.stall_duration;t+=Date.now()-this.stallingStarted,this.addPlayerStat("stall_duration",!1,t),delete this.stallingStarted}}delete this.frameWidth,this.playerStatsObject.closed_at=Date.now(),this.stopSendStats(),this.removeListeners(),this.progressListener&&(clearInterval(this.progressListener),delete this.progressListener);try{this.remoteVideo.srcObject=null}catch(e){this.remoteVideo.src=null}}},{key:"gotRemoteTrack",value:function(e){if(this.log("remote track",e),"video"===e.track.kind||"audio"===e.track.kind)try{if(this.remoteVideo.srcObject!==e.streams[0]){var t=l(e.streams,1)[0];this.remoteVideo.srcObject=t}}catch(t){this.sentryEnabled&&bt(t),this.addPlayerStat("error_count"),"undefined"!=typeof window&&(this.remoteVideo.src=window.URL.createObjectURL(e.streams[0]))}}},{key:"getSessionDescription",value:function(e){var t=e.sdp,n=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,vn);return new nn(u({},n,{sdp:t.replace(/profile-level-id=(\d|A|B|C|D|E|F)+;/,"profile-level-id=42E01F;")}))}},{key:"remoteCreateAnswer",value:function(){return this.log("Player::success adding offer"),this.remotePc.createAnswer()}},{key:"remoteSetLocalDescription",value:(r=n(gn().mark((function e(t){var n;return gn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.log("Player::now have answer",t.sdp),e.next=3,this.remotePc.setLocalDescription(t);case 3:return n=e.sent,e.abrupt("return",n);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"onDescriptionError",value:function(e){this.sentryEnabled&&bt(e),this.notify($t.DEBUG,["failed to set remote answer",e]),this.notify($t.FAIL,"set_remote_description_failed")}},{key:"onVideoPlay",value:function(){this.notify($t.PLAY)}},{key:"onGetMediaInfo",value:function(){if(this.onMediaInfo&&this.onMediaInfo(this.mediaInfoTracks,this.abr),this.mediaInfoTracks.length){var e=!1,t=!1;if(this.mediaInfoTracks.forEach((function(n){if(!e||!t){var r=n.content;"video"===r&&(e=!0),"audio"===r&&(t=!0)}})),e||(this.opts.videoDisabled=!0),!t){if(this.opts.videoDisabled)throw this.stop(),new Error("You have got no video and no audio transceiver");this.opts.audioDisabled=!0}}return this.mediaInfoTracks}},{key:"onPlayingInfo",value:function(e){this.onTrackInfo&&(this.addPlayerStat("bitrate_change_count"),this.onTrackInfo(e))}},{key:"changeTracks",value:function(e){Array.isArray(e)?("auto"===e[0]?this.trackSwitch([]):this.trackSwitch(e),this.addPlayerStat("bitrate_change_count")):console.error("tracks must be an array")}},{key:"getMediaInfo",value:function(){var e=this;fetch("".concat(this.url,"/media_info.json").concat(this.getAuthToken()),{headers:{Accept:"application/json","Content-Type":"application/json"},method:"GET"}).then((function(e){return e.json()})).then((function(t){e.mediaInfoTracks=t.tracks,e.onGetMediaInfo()})).catch((function(t){e.log("get MediaInfo error:",t),e.addPlayerStat("error_count"),e.addPlayerStat("reconnect_count"),e.stopRetry(e.play)}))}},{key:"trackSwitch",value:function(e){var t=this;fetch("".concat(this.url,"/sessions/").concat(this.xsid?this.xsid:"","/request_tracks").concat(this.getAuthToken()),{headers:{Accept:"application/json","Content-Type":"application/json"},method:"PUT",body:JSON.stringify({tracks:e})}).then((function(e){t.log("trackSwitch",e)})).catch((function(e){t.log("track switch error:",e)}))}},{key:"onEvent",value:function(e){var t=e.type,n=this.playerStatsObject.application;switch(t){case"playing":if(this.playerStatsObject.started_at||(this.playerStatsObject.started_at=Date.now(),this.playerStatsObject.updated_at=Date.now()),this.playbackSegmentStart=Date.now(),this.pauseStarted&&n){var r=n.pause_duration;r+=Date.now()-this.pauseStarted,this.addPlayerStat("pause_duration",!1,r),delete this.pauseStarted}this.progressListener||this.startProgressListener();break;case"pause":this.playerStatsObject.started_at&&(this.addPlayerStat("pause_count"),this.pauseStarted=Date.now()),this.progressListener&&(clearInterval(this.progressListener),delete this.progressListener);break;case"stalled":this.playerStatsObject.started_at&&(this.addPlayerStat("stall_count"),this.stallingStarted=Date.now()),this.progressListener&&(clearInterval(this.progressListener),delete this.progressListener)}this.onEventCallback&&this.onEventCallback(e)}},{key:"startProgressListener",value:function(){var e=this;this.progressListener=setInterval((function(){e.remotePc&&e.remotePc.getStats(null).then((function(t){t.forEach((function(t){if("transport"===t.type){var n=t.bytesReceived,r=t.timestamp;if(e.playerStatsObject.bytes=n,e.playerStatsObject.updated_at=Math.round(r),e.playbackSegmentStart){var i=e.playerStatsObject.application;if(i){var o=i.live_duration;o+=Date.now()-e.playbackSegmentStart,e.addPlayerStat("live_duration",!1,o),delete e.playbackSegmentStart}}e.playbackSegmentStart=r}else if("track"===t.type&&"kind"in t&&"video"===t.kind){if(t.frameWidth&&t.frameWidth>0&&(e.frameWidth?e.frameWidth!==t.frameWidth&&(e.addPlayerStat("bitrate_change_count"),e.frameWidth=t.frameWidth):e.frameWidth=t.frameWidth),t.framesReceived===e.playerStatsObject.application.total_video_frames)e.probablyStalled=setTimeout((function(){e.stallingStarted||(e.addPlayerStat("stall_count"),e.stallingStarted=Date.now())}),500);else{clearTimeout(e.probablyStalled);var a=e.playerStatsObject.application;if(e.stallingStarted&&a){var s=a.stall_duration;s+=Date.now()-e.stallingStarted,e.addPlayerStat("stall_duration",!1,s),delete e.stallingStarted}}var u=e.remoteVideo.getVideoPlaybackQuality().corruptedVideoFrames;e.addPlayerStat("total_video_frames",!1,t.framesReceived),e.addPlayerStat("dropped_video_frames",!1,t.framesDropped),e.addPlayerStat("corrupted_video_frames",!1,u)}}))}))}),1e3)}},{key:"addListeners",value:function(){this.remoteVideo.addEventListener(Zt,this.onEvent.bind(this),!0),this.remoteVideo.addEventListener(en,this.onEvent.bind(this),!0),this.remoteVideo.addEventListener(Jt,this.onEvent.bind(this),!0),this.remoteVideo.addEventListener("pause",this.onEvent.bind(this),!0)}},{key:"removeListeners",value:function(){this.remoteVideo.removeEventListener(Zt,this.onEvent,!0),this.remoteVideo.removeEventListener(en,this.onEvent,!0),this.remoteVideo.removeEventListener(Jt,this.onEvent,!0),this.remoteVideo.removeEventListener("pause",this.onEvent,!0)}},{key:"addPlayerStat",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.playerStatsObject.application;r&&(n?r[e]=Math.round(n):t&&(r[e]+=1),this.playerStatsObject.application=r)}},{key:"getStats",value:function(){return this.xsid&&(this.playerStatsObject.source_id=this.xsid),u({},this.playerStatsObject,{id:this.uuid})}},{key:"startSendStats",value:function(){var e=this;this.sendingInterval=setInterval((function(){e.postStats()}),this.statsSendTime||6e4)}},{key:"stopSendStats",value:function(){this.sendingInterval&&(clearInterval(this.sendingInterval),this.postStats())}},{key:"getStatsUrl",value:function(){return"".concat(this.url,"/sessions/").concat(this.xsid?this.xsid:"").concat(this.getAuthToken())}},{key:"getAuthToken",value:function(){return this.opts.authTokenName&&this.opts.tokenValue?"?".concat(this.opts.authTokenName,"=").concat(this.opts.tokenValue):""}},{key:"postStats",value:function(){var e=this;this.playerStatsObject.started_at&&fetch(this.getStatsUrl(),{headers:{Accept:"application/json","Content-Type":"application/json"},method:"PUT",body:JSON.stringify(this.getStats())}).then((function(){})).catch((function(t){e.log("Stat send error:",t)}))}}]);var r}(fn);function bn(){bn=function(){return n};var t,n={},r=Object.prototype,i=r.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(t){l=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),s=new P(r||[]);return o(a,"_invoke",{value:j(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=f;var p="suspendedStart",h="suspendedYield",v="executing",g="completed",m={};function y(){}function b(){}function x(){}var w={};l(w,s,(function(){return this}));var _=Object.getPrototypeOf,S=_&&_(_(M([])));S&&S!==r&&i.call(S,s)&&(w=S);var O=x.prototype=y.prototype=Object.create(w);function k(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function E(t,n){function r(o,a,s,u){var c=d(t[o],t,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==e(f)&&i.call(f,"__await")?n.resolve(f.__await).then((function(e){r("next",e,s,u)}),(function(e){r("throw",e,s,u)})):n.resolve(f).then((function(e){l.value=e,s(l)}),(function(e){return r("throw",e,s,u)}))}u(c.arg)}var a;o(this,"_invoke",{value:function(e,t){function i(){return new n((function(n,i){r(e,t,n,i)}))}return a=a?a.then(i,i):i()}})}function j(e,n,r){var i=p;return function(o,a){if(i===v)throw Error("Generator is already running");if(i===g){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=T(s,r);if(u){if(u===m)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===p)throw i=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=v;var c=d(e,n,r);if("normal"===c.type){if(i=r.done?g:h,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=g,r.method="throw",r.arg=c.arg)}}}function T(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,T(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=d(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function C(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 A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function M(n){if(n||""===n){var r=n[s];if(r)return r.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var o=-1,a=function e(){for(;++o<n.length;)if(i.call(n,o))return e.value=n[o],e.done=!1,e;return e.value=t,e.done=!0,e};return a.next=a}}throw new TypeError(e(n)+" is not iterable")}return b.prototype=x,o(O,"constructor",{value:x,configurable:!0}),o(x,"constructor",{value:b,configurable:!0}),b.displayName=l(x,c,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,l(e,c,"GeneratorFunction")),e.prototype=Object.create(O),e},n.awrap=function(e){return{__await:e}},k(E.prototype),l(E.prototype,u,(function(){return this})),n.AsyncIterator=E,n.async=function(e,t,r,i,o){void 0===o&&(o=Promise);var a=new E(f(e,t,r,i),o);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(O),l(O,c,"Generator"),l(O,s,(function(){return this})),l(O,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=M,P.prototype={constructor:P,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(A),!e)for(var n in this)"t"===n.charAt(0)&&i.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 r(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 r("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;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,m):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),m},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),A(n),m}},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;A(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:M(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},n}function xn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(xn=function(){return!!e})()}"undefined"!=typeof window&&(window._isGetUserMediaCalled=!!window._isGetUserMediaCalled);var wn={Player:yn,Publisher:function(e){function t(e){var n,r,i,o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];f(this,t),r=this,o=[e,a,s],i=v(i=t);var u=n=h(r,xn()?Reflect.construct(i,o||[],v(r).constructor):i.apply(r,o));n.status=Qt.INITIALIZING,n.opts=a,a.preview&&a.preview instanceof HTMLMediaElement&&(n.videoContainer=a.preview,a.previewOptions&&(n.videoContainer.autoplay=!1!==a.previewOptions.autoplay,n.videoContainer.controls=a.previewOptions.controls||!1,n.videoContainer.muted=!1!==a.previewOptions.muted),n.videoContainer.addEventListener("loadedmetadata",(function(){u.log("Local video videoWidth: ".concat(this.videoWidth,"px, videoHeight: ").concat(this.videoHeight,"px"))}))),"maxBitrate"in a&&(n.maxBitrate=a.maxBitrate),"canvasCallback"in a&&"function"==typeof a.canvasCallback&&(n.canvasCallback=a.canvasCallback,n.forCanvasCallback="undefined"!=typeof document&&document.createElement("canvas"),n.forCanvasCallback.id="forCanvasCallback",n.forCanvasCallback.style.width="320px",n.videoContainer?(n.videoContainer.after(n.forCanvasCallback),n.videoContainer.style.display="none"):"undefined"!=typeof document&&document.body.appendChild(n.forCanvasCallback),n.canvasCallback(n.forCanvasCallback),n.publishStreamFromCanvas=n.forCanvasCallback.captureStream()),a.sentryConfig&&a.sentryConfig.length&&(n.sentryConfig=a.sentryConfig),n.opts.radeonCheck=!("radeonCheck"in a)||a.radeonCheck,n.trackStats=a.trackStats,n.statsContainer=a.statsContainer,n.password=a.password,n.constraints=a.constraints,n.returnCapabilities=a.returnCapabilities;var c=("undefined"!=typeof window&&window.navigator).userAgent;n.onEventCallback=a.onEvent,n.statsSendEnable=a.statsSendEnable||!0,n.statsSendTime=1e3*a.statsSendTime||6e4;var l="undefined"!=typeof window&&window.RTCRtpTransceiver&&"setCodecPreferences"in window.RTCRtpTransceiver.prototype;if(n.prefferedCodec=-1,c.includes("Chrome/95")&&RTCRtpSender&&l&&RTCRtpSender.getCapabilities("video").codecs.forEach((function(e,t){"video/H264"===e.mimeType&&e.sdpFmtpLine&&(e.sdpFmtpLine.includes("profile-level-id=42e01f")&&e.sdpFmtpLine.includes("level-asymmetry-allowed=1")?(e.sdpFmtpLine.includes("packetization-mode=0")||e.sdpFmtpLine.includes("packetization-mode=1")&&-1===n.prefferedCodec)&&(n.prefferedCodec=t):e.sdpFmtpLine.includes("profile-level-id=42001f")&&e.sdpFmtpLine.includes("level-asymmetry-allowed=1")&&e.sdpFmtpLine.includes("packetization-mode=0")&&-1===n.prefferedCodec&&(n.prefferedCodec=t))})),n.opts.radeonCheck){var d=n.getVideoCardInfo();n.log("Checking for GPU model:",d),d.length&&d.includes("AMD Radeon(TM) Graphics")&&RTCRtpSender&&l&&(n.log("Detected AMD Radeon(TM) Graphics"),n.prefferedCodec=5)}return n}return m(t,e),p(t,[{key:"resetStats",value:function(){this.playerStatsObject={proto:"webrtc",user_agent:navigator.userAgent,bytes:0,application:{application_name:"webrtc_publisher",application_version:fn.version?fn.version:null,stall_count:0,pause_count:0,error_count:0,reconnect_count:0,bitrate_change_count:0,live_duration:0,stall_duration:0,pause_duration:0,total_video_frames:0,dropped_video_frames:0,corrupted_video_frames:0}},this.statsSendEnable&&this.startSendStats()}},{key:"getUrl",value:function(){var e=new URL(this.url);return e.protocol="https",e.pathname+="/whip",this.opts.authTokenName&&this.opts.tokenValue?this.password?e.search="?".concat(this.opts.authTokenName,"=").concat(this.opts.tokenValue,"&password=").concat(this.password):e.search="?".concat(this.opts.authTokenName,"=").concat(this.opts.tokenValue):this.password&&(e.search="?password=".concat(this.password)),e.toString()}},{key:"start",value:function(){var e=this;this.resetStats(),this.uuid=dn(),this.playerStatsObject.opened_at=Date.now();var t=this.getUrl();this.peerConnection=new tn,this.peerConnection.addEventListener("iceconnectionstatechange",hn),this.peerConnection.addEventListener("negotiationneeded",(function(n){var r=new Headers;r.append("X-Sid",e.uuid),pn(n,t,{},r).then((function(t){if(e.xsid=t,e.playerStatsObject.started_at=Date.now(),e.onEventCallback&&e.onEventCallback({type:"started",started_at:Date.now()}),e.playerStatsObject.updated_at=Date.now(),e.emitter.emit(Xt.STREAMING),e.videoSender){var n=e.videoSender.sender,r=n.getParameters();e.log("Publisher::maxBitrate is set to:",e.maxBitrate||1e8),r.encodings[0].maxBitrate=e.maxBitrate||1e8,r.encodings[0].priority="medium",r.encodings[0].networkPriority="medium",n.setParameters(r)}e.progressListener||e.startProgressListener()}))})),this.getMedia(this.opts?this.opts.getMediaOptions:null),this.startTrackStats(),this.createSilentAudio(10,44100),this.sentryConfig&&(Kt({dsn:this.sentryConfig,environment:"production",release:"FlussonicWebrtcPublisher".concat(fn.version?"@".concat(fn.version):""),tracesSampleRate:1}),this.sentryEnabled=!0)}},{key:"stop",value:function(){this.isFirstMsgReceived=!1,this.clearLocalStreamSource(),this.forCanvasCallback&&(this.forCanvasCallback.remove(),this.videoContainer&&(this.videoContainer.style.display="block")),this.peerConnection&&(this.peerConnection.close(),this.peerConnection=null),this.status=Qt.STOPPED,this.playerStatsObject.closed_at=Date.now(),this.onEventCallback&&this.onEventCallback({type:"closed",closed_at:Date.now()}),this.stopSendStats(),this.progressListener&&(clearInterval(this.progressListener),delete this.progressListener),this.restartTimeout&&(clearInterval(this.restartTimeout),delete this.restartTimeout),this.trackStatsInterval&&(clearInterval(this.trackStatsInterval),delete this.trackStatsInterval),this.sharingStream&&(this.sharingStream.getTracks().forEach((function(e){return e.stop()})),this.sharingStream=null)}},{key:"startTrackStats",value:function(){var e=this;this.trackStats&&(this.trackStatsInterval=window.setInterval((function(){e.peerConnection&&e.peerConnection.getStats(null).then((function(t){var n="";if(t.forEach((function(e){n+="<h2>Report: ".concat(e.type,"</h3>\n<strong>ID:</strong> ").concat(e.id,"<br>\n")+"<strong>Timestamp:</strong> ".concat(e.timestamp,"<br>\n"),Object.keys(e).forEach((function(t){"id"!==t&&"timestamp"!==t&&"type"!==t&&(n+="<strong>".concat(t,":</strong> ").concat(e[t],"<br>\n"))}))})),e.statsContainer){var r=e.statsContainer;r instanceof HTMLElement&&(r.innerHTML=n)}}))}),1e3))}},{key:"clearLocalStreamSource",value:function(){this.stream&&this.stream.getTracks().forEach((function(e){e.stop()}))}},{key:"getMedia",value:function(e,t){var n=this,r=u({},this.constraints);"video"in r||(r=u({},r,{video:!0})),this.opts.inputStreams?this.gotMedia(this.opts.inputStreams):this.getDevices().then((function(e){n.activeDeviceList=e,n.activeDeviceList.filter((function(e){return"audioinput"===e.kind})).length||(r.audio=!1),navigator.mediaDevices.getUserMedia(r).then((function(e){"undefined"!=typeof window&&(window._isGetUserMediaCalled=!0),n.log("Publisher::mediaDevices.getUserMedia success."),"function"==typeof t?t((function(){n.log("Publisher::getMedia::cb"),n.gotMedia(e)})):n.gotMedia(e),n.videoContainer&&(n.videoContainer.srcObject=n.stream)})).catch((function(e){n.log("Publisher::mediaDevices.getUserMedia exception occured.",e),n.opts&&n.opts.onGetUserMediaError&&n.opts.onGetUserMediaError(e),n.sendErrorLog()}))})),this.forCanvasCallback&&(n.dummyVideo=n.createDummyVideo("dummyVideo"),n.dummyVideo.srcObject=n.stream,n.dummyVideo.addEventListener("loadedmetadata",n.updateCanvasSize.bind(n),!1),n.dummyVideo.addEventListener("play",(function(){requestAnimationFrame(n.updateCanvas.bind(n))}),!1),this.canvasCallbackContext=this.forCanvasCallback.getContext("2d")),navigator.mediaDevices.ondevicechange=this.onDeviceChange.bind(this)}},{key:"updateCanvasSize",value:function(){this.forCanvasCallback.width=this.dummyVideo.videoWidth,this.forCanvasCallback.height=this.dummyVideo.videoHeight}},{key:"updateCanvas",value:function(){this.dummyVideo.ended||this.dummyVideo.paused||(this.forCanvasCallback&&this.canvasCallbackContext&&this.canvasCallbackContext.drawImage(this.dummyVideo,0,0,this.dummyVideo.videoWidth,this.dummyVideo.videoHeight),requestAnimationFrame(this.updateCanvas.bind(this)))}},{key:"getDevices",value:(r=n(bn().mark((function e(){var t,n,r=this;return bn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(navigator.mediaDevices&&navigator.mediaDevices.enumerateDevices){e.next=3;break}return this.log("enumerateDevices() not supported."),e.abrupt("return");case 3:return t=[],e.next=6,navigator.mediaDevices.enumerateDevices().then((function(e){return t=e})).catch((function(e){r.log("Publisher::mediaDevices.getUserMedia exception occured.",e),r.opts&&r.opts.onGetUserMediaError&&r.opts.onGetUserMediaError(e),r.sendErrorLog()}));case 6:return n=t.filter((function(e){return"audioinput"===e.kind||"videoinput"===e.kind})),this.log("Publisher:: Devices list ",n),e.abrupt("return",t);case 9:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"onDeviceChange",value:function(e){var t=this;this.addPlayerStat("bitrate_change_count"),this.log("Publisher::Device configuration changed",e);var n=[];this.getDevices.bind(this),this.getDevices().then((function(e){if(n=e.filter((function(e){return"audioinput"===e.kind})),t.audioSender&&t.audioSender.sender){if(n.length)0!==n.length&&(t.log("Publisher::New audio input device discovered"),navigator.mediaDevices.getUserMedia({audio:!0}).then((function(e){var n=e.getAudioTracks();n.length>0&&(t.log("Using audio device: ".concat(n[0].label)),t.audioSender.sender.replaceTrack(n[0]))})));else{t.log("Publisher::Audio input devices lost");var r=t.destination.stream.getAudioTracks();t.audioSender.sender.replaceTrack(r[0])}t.activeDeviceList=e}}))}},{key:"gotMedia",value:function(e){var t=this;this.stream=e,this.log("Publisher::got",this.stream),this.log("Publisher::gotMedia::peerConnection",this.peerConnection);var n=!1;if("video"in this.constraints&&(n=this.constraints.video),this.publishStreamFromCanvas){var r=l(this.publishStreamFromCanvas.getVideoTracks(),1)[0];this.videoTrack=r,this.videoSender=this.peerConnection.addTransceiver(this.videoTrack,{direction:"sendonly"})}else if(n){var i=l(e.getVideoTracks(),1)[0];this.videoTrack=i,this.videoTrack.contentHint="detail",this.videoTrack.applyConstraints({frameRate:{min:0,max:30}}),this.videoSender=this.peerConnection.addTransceiver(this.videoTrack,{direction:"sendonly"})}var o=e.getAudioTracks();if(o&&o.length>0&&(this.audioSender=this.peerConnection.addTransceiver(e.getAudioTracks()[0],{direction:"sendonly"})),-1!==this.prefferedCodec){var a=RTCRtpSender.getCapabilities("video").codecs,s=a[this.prefferedCodec];this.log("Publisher preffered codec:",this.prefferedCodec,s),a=[s],this.peerConnection.getTransceivers().find((function(e){return e.sender&&e.sender.track===t.videoTrack})).setCodecPreferences(a)}this.peerConnection.onconnectionstatechange=function(e){t.log("Publisher::peer connection state",t.peerConnection.connectionState,e),t.onEventCallback&&t.onEventCallback({type:"connection state",connection:t.peerConnection.connectionState})}}},{key:"restart",value:function(){this.addPlayerStat("reconnect_count"),this.stop(),this.restartTimeout=setTimeout(this.start.bind(this),1e3)}},{key:"mute",value:function(){this.stream.getTracks().forEach((function(e){"audio"===e.kind&&(e.enabled=!e.enabled)}))}},{key:"switchTrack",value:function(e){if(e instanceof MediaStreamTrack)if("video"===e.kind){if(!this.videoSender||!this.videoSender.sender)return;this.videoSender.sender.replaceTrack(e)}else{if(!this.audioSender||!this.audioSender.sender)return;this.audioSender.sender.replaceTrack(e)}else console.info("Publisher only get stream tracks to switch RTCRtpTransceiver sender")}},{key:"shareScreen",value:function(){var e=this;if(this.sharingStream){if(!this.videoSender||!this.videoSender.sender)return;this.videoSender.sender.replaceTrack(this.videoTrack),this.videoContainer.srcObject=this.stream,this.sharingStream.getTracks().forEach((function(e){return e.stop()})),this.sharingStream=null}else navigator.mediaDevices.getDisplayMedia({video:{cursor:"always"},audio:!1}).then((function(t){e.log("Publisher:: screen sharing stream acquired"),e.sharingStream=t,e.videoContainer.srcObject=t;var n=l(e.sharingStream.getVideoTracks(),1)[0];e.sharingScreen=n})).catch((function(t){e.log("Publisher:: screen sharing error",t)}))}},{key:"createSilentAudio",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:44100,n=e*t,r="undefined"!=typeof window&&(window.AudioContext||window.webkitAudioContext||window.mozAudioContext);r||this.log("No Audio Context");var i=new r,o=i.createBuffer(1,n,t);this.destination=i.createMediaStreamDestination(),this.silentSource=i.createBufferSource(),this.silentSource.buffer=o,this.silentSource.connect(i.destination),this.silentSource.loop=!0,this.silentSource.start(),this.silentSource.connect(this.destination)}},{key:"sendErrorLog",value:function(e){this.sentryEnabled&&bt(e)}},{key:"createDummyVideo",value:function(e){var t="undefined"!=typeof document&&document.createElement("video");return"undefined"!=typeof document&&document.querySelector("body").appendChild(t),t.setAttribute("id",e),t.setAttribute("autoplay",!0),t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.zIndex="-1",t.style.opacity=0,t.style.width="1px",t.style.height="1px",t.style.overflow="hidden",t.muted=!0,t}},{key:"startProgressListener",value:function(){var e=this;this.progressListener=setInterval((function(){e.peerConnection&&e.peerConnection.getStats(null).then((function(t){var n=[];t.forEach((function(t){if(n.push({type:t.type,id:t.id,timestamp:t.timestamp}),"transport"===t.type){var r=t.timestamp,i=t.bytesSent;if(e.playerStatsObject.bytes=i,e.playerStatsObject.updated_at=Math.round(r),e.playbackSegmentStart){var o=e.playerStatsObject.application;if(o){var a=o.live_duration;a+=r-e.playbackSegmentStart,e.addPlayerStat("live_duration",Math.round(a)),delete e.playbackSegmentStart}}e.playbackSegmentStart=r}}))}))}),1e3)}},{key:"addPlayerStat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.playerStatsObject.application;n&&(t?n[e]=Math.round(t):n[e]+=1,this.playerStatsObject.application=n)}},{key:"getStats",value:function(){return u({},this.playerStatsObject,{id:this.uuid})}},{key:"startSendStats",value:function(){var e=this;this.sendingInterval=setInterval((function(){e.postStats()}),this.statsSendTime)}},{key:"stopSendStats",value:function(){this.sendingInterval&&(clearInterval(this.sendingInterval),this.postStats())}},{key:"getStatsUrl",value:function(){var e=this.opts.authTokenName&&this.opts.tokenValue?"?".concat(this.opts.authTokenName,"=").concat(this.opts.tokenValue):"";return"".concat(this.url,"/sessions/").concat(this.xsid?this.xsid:"").concat(e)}},{key:"postStats",value:function(){this.playerStatsObject.started_at&&fetch(this.getStatsUrl(),{headers:{Accept:"application/json","Content-Type":"application/json"},method:"PUT",body:JSON.stringify(this.getStats())})}},{key:"userIsChangingTracks",value:function(e,t){console.log("userIsChangingTracks",{e:e,data:t})}},{key:"on",value:function(){for(var e=this.emitter.on,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.apply(this.emitter,n)}}]);var r}(fn),PUBLISHER_EVENTS:Xt,PLAYER_EVENTS:$t,PUBLISHER_STATUSES:Qt}}(),i.default}()},"object"==s(t)&&"object"==s(n)?n.exports=a():(i=[],void 0===(o="function"==typeof(r=a)?r.apply(t,i):r)||(n.exports=o))}).call(this,n(700),n(231)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomPicker=t.TwitterPicker=t.SwatchesPicker=t.SliderPicker=t.SketchPicker=t.PhotoshopPicker=t.MaterialPicker=t.HuePicker=t.GithubPicker=t.CompactPicker=t.ChromePicker=t.default=t.CirclePicker=t.BlockPicker=t.AlphaPicker=void 0;var r=n(1371);Object.defineProperty(t,"AlphaPicker",{enumerable:!0,get:function(){return y(r).default}});var i=n(1498);Object.defineProperty(t,"BlockPicker",{enumerable:!0,get:function(){return y(i).default}});var o=n(1500);Object.defineProperty(t,"CirclePicker",{enumerable:!0,get:function(){return y(o).default}});var a=n(1502);Object.defineProperty(t,"ChromePicker",{enumerable:!0,get:function(){return y(a).default}});var s=n(1507);Object.defineProperty(t,"CompactPicker",{enumerable:!0,get:function(){return y(s).default}});var u=n(1510);Object.defineProperty(t,"GithubPicker",{enumerable:!0,get:function(){return y(u).default}});var c=n(1512);Object.defineProperty(t,"HuePicker",{enumerable:!0,get:function(){return y(c).default}});var l=n(1514);Object.defineProperty(t,"MaterialPicker",{enumerable:!0,get:function(){return y(l).default}});var f=n(1515);Object.defineProperty(t,"PhotoshopPicker",{enumerable:!0,get:function(){return y(f).default}});var d=n(1521);Object.defineProperty(t,"SketchPicker",{enumerable:!0,get:function(){return y(d).default}});var p=n(1524);Object.defineProperty(t,"SliderPicker",{enumerable:!0,get:function(){return y(p).default}});var h=n(1528);Object.defineProperty(t,"SwatchesPicker",{enumerable:!0,get:function(){return y(h).default}});var v=n(1532);Object.defineProperty(t,"TwitterPicker",{enumerable:!0,get:function(){return y(v).default}});var g=n(777);Object.defineProperty(t,"CustomPicker",{enumerable:!0,get:function(){return y(g).default}});var m=y(a);function y(e){return e&&e.__esModule?e:{default:e}}t.default=m.default},,,function(e,t,n){(function(n){var r,i,o;function a(e){return(a="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)}i=[],void 0===(o="function"==typeof(r=function(){"use strict";function t(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){s(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function r(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function i(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var o="object"==("undefined"==typeof window?"undefined":a(window))&&window.window===window?window:"object"==("undefined"==typeof self?"undefined":a(self))&&self.self===self?self:"object"==(void 0===n?"undefined":a(n))&&n.global===n?n:void 0,s=o.saveAs||("object"!=("undefined"==typeof window?"undefined":a(window))||window!==o?function(){}:"download"in HTMLAnchorElement.prototype?function(e,n,a){var s=o.URL||o.webkitURL,u=document.createElement("a");n=n||e.name||"download",u.download=n,u.rel="noopener","string"==typeof e?(u.href=e,u.origin===location.origin?i(u):r(u.href)?t(e,n,a):i(u,u.target="_blank")):(u.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(u.href)}),4e4),setTimeout((function(){i(u)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,o){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=a(t)&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,o),n);else if(r(e))t(e,n,o);else{var s=document.createElement("a");s.href=e,s.target="_blank",setTimeout((function(){i(s)}))}}:function(e,n,r,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,r);var s="application/octet-stream"===e.type,u=/constructor/i.test(o.HTMLElement)||o.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||s&&u)&&"object"==("undefined"==typeof FileReader?"undefined":a(FileReader))){var l=new FileReader;l.onloadend=function(){var e=l.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},l.readAsDataURL(e)}else{var f=o.URL||o.webkitURL,d=f.createObjectURL(e);i?i.location=d:location.href=d,i=null,setTimeout((function(){f.revokeObjectURL(d)}),4e4)}});o.saveAs=s.saveAs=s,e.exports=s})?r.apply(t,i):r)||(e.exports=o)}).call(this,n(189))},,function(e,t,n){(function(e){var n,r,i,o;function a(e){return M(e)||f(e)||A(e)||C()}function s(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 u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=A(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function l(e){return function(e){if(Array.isArray(e))return P(e)}(e)||f(e)||A(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function d(){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=p(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function p(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=b(e)););return e}function h(e){var t="function"==typeof Map?new Map:void 0;return(h=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return v(e,arguments,b(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),w(r,e)})(e)}function v(e,t,n){return(v=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&w(i,n.prototype),i}).apply(null,arguments)}function g(e,t,n){return t=b(t),m(e,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){return!1}}()?Reflect.construct(t,n||[],b(e).constructor):t.apply(e,n))}function m(e,t){if(t&&("object"===I(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return y(e)}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function x(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&w(e,t)}function w(e,t){return(w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(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,j(r.key),r)}}function O(e,t,n){return t&&S(e.prototype,t),n&&S(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function k(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */k=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,i){var o=t&&t.prototype instanceof d?t:d,a=Object.create(o.prototype),s=new E(i||[]);return r(a,"_invoke",{value:w(e,n,s)}),a}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var f={};function d(){}function p(){}function h(){}var v={};u(v,o,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(j([])));m&&m!==t&&n.call(m,o)&&(v=m);var y=h.prototype=d.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){var i;r(this,"_invoke",{value:function(r,o){function a(){return new t((function(i,a){!function r(i,o,a,s){var u=l(e[i],e,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==I(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(u.arg)}(r,o,i,a)}))}return i=i?i.then(a,a):a()}})}function w(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return T()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=_(a,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=l(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function _(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,f;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}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 O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function j(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:T}}function T(){return{value:void 0,done:!0}}return p.prototype=h,r(y,"constructor",{value:h,configurable:!0}),r(h,"constructor",{value:p,configurable:!0}),p.displayName=u(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,s,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(x.prototype),u(x.prototype,a,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new x(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(y),u(y,s,"Generator"),u(y,o,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=j,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},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 t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.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,f):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),f},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),O(n),f}},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;O(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:j(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function E(e,t,n){return(t=j(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j(e){var t=function(e,t){if("object"!==I(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==I(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===I(t)?t:String(t)}function T(e,t){return M(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||A(e,t)||C()}function C(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function A(e,t){if(e){if("string"==typeof e)return P(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(e,t):void 0}}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function M(e){if(Array.isArray(e))return e}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)}o=function(){return 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"==I(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=464)}([function(e,t,n){"use strict";e.exports=n(945)},function(e,t,n){e.exports=n(959)()},function(e,t,n){"use strict";var r=n(10),i=n(56).f,o=n(50),a=n(28),s=n(226),u=n(135),c=n(155);e.exports=function(e,t){var n,l,f,d,p,h=e.target,v=e.global,g=e.stat;if(n=v?r:g?r[h]||s(h,{}):r[h]&&r[h].prototype)for(l in t){if(d=t[l],f=e.dontCallGetSet?(p=i(n,l))&&p.value:n[l],!c(v?l:h+(g?".":"#")+l,e.forced)&&void 0!==f){if(I(d)==I(f))continue;u(d,f)}(e.sham||f&&f.sham)&&o(d,"sham",!0),a(n,l,d,e)}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"e",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return u})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function s(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function u(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(s(arguments[t]));return e}},function(e,t,n){"use strict";var r=n(152),i=Function.prototype,o=i.call,a=r&&i.bind.bind(o,o);e.exports=r?a:function(e){return function(){return o.apply(e,arguments)}}},function(e,t,n){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(276);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n.d(t,"h",(function(){return i})),n.d(t,"l",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"i",(function(){return s})),n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return c})),n.d(t,"r",(function(){return l})),n.d(t,"w",(function(){return f})),n.d(t,"p",(function(){return d})),n.d(t,"n",(function(){return p})),n.d(t,"m",(function(){return h})),n.d(t,"o",(function(){return v})),n.d(t,"k",(function(){return g})),n.d(t,"j",(function(){return m})),n.d(t,"f",(function(){return y})),n.d(t,"e",(function(){return b})),n.d(t,"q",(function(){return x})),n.d(t,"s",(function(){return w})),n.d(t,"u",(function(){return _})),n.d(t,"g",(function(){return E})),n.d(t,"v",(function(){return j})),n.d(t,"t",(function(){return T})),n.d(t,"d",(function(){return C}));var r=n(14),i="undefined"==typeof window;function o(){}function a(e,t){return"function"==typeof e?e(t):e}function s(e){return"number"==typeof e&&e>=0&&e!==1/0}function u(e){return Array.isArray(e)?e:[e]}function c(e,t){return e.filter((function(e){return-1===t.indexOf(e)}))}function l(e,t,n){var r=e.slice(0);return r[t]=n,r}function f(e,t){return Math.max(e+(t||0)-Date.now(),0)}function d(e,t,n){return k(e)?"function"==typeof t?Object(r.a)({},n,{queryKey:e,queryFn:t}):Object(r.a)({},t,{queryKey:e}):e}function p(e,t,n){return k(e)?"function"==typeof t?Object(r.a)({},n,{mutationKey:e,mutationFn:t}):Object(r.a)({},t,{mutationKey:e}):"function"==typeof e?Object(r.a)({},t,{mutationFn:e}):Object(r.a)({},e)}function h(e,t,n){return k(e)?[Object(r.a)({},t,{queryKey:e}),n]:[e||{},t]}function v(e,t){return k(e)?Object(r.a)({},t,{mutationKey:e}):e}function g(e,t){var n=e.active,r=e.exact,i=e.fetching,o=e.inactive,a=e.predicate,s=e.queryKey,u=e.stale;if(k(s))if(r){if(t.queryHash!==y(s,t.options))return!1}else if(!x(t.queryKey,s))return!1;var c=function(e,t){return!0===e&&!0===t||null==e&&null==t?"all":!1===e&&!1===t?"none":(null!=e?e:!t)?"active":"inactive"}(n,o);if("none"===c)return!1;if("all"!==c){var l=t.isActive();if("active"===c&&!l)return!1;if("inactive"===c&&l)return!1}return!("boolean"==typeof u&&t.isStale()!==u||"boolean"==typeof i&&t.isFetching()!==i||a&&!a(t))}function m(e,t){var n=e.exact,r=e.fetching,i=e.predicate,o=e.mutationKey;if(k(o)){if(!t.options.mutationKey)return!1;if(n){if(b(t.options.mutationKey)!==b(o))return!1}else if(!x(t.options.mutationKey,o))return!1}return!("boolean"==typeof r&&"loading"===t.state.status!==r||i&&!i(t))}function y(e,t){return((null==t?void 0:t.queryKeyHashFn)||b)(e)}function b(e){var t;return t=u(e),JSON.stringify(t,(function(e,t){return S(t)?Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{}):t}))}function x(e,t){return function e(t,n){return t===n||I(t)==I(n)&&!(!t||!n||"object"!=I(t)||"object"!=I(n))&&!Object.keys(n).some((function(r){return!e(t[r],n[r])}))}(u(e),u(t))}function w(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||S(e)&&S(t)){for(var r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),o=i.length,a=n?[]:{},s=0,u=0;u<o;u++){var c=n?u:i[u];a[c]=w(e[c],t[c]),a[c]===e[c]&&s++}return r===o&&s===r?e:a}return t}function _(e,t){if(e&&!t||t&&!e)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}function S(e){if(!O(e))return!1;var t=e.constructor;if(void 0===t)return!0;var n=t.prototype;return!!O(n)&&!!n.hasOwnProperty("isPrototypeOf")}function O(e){return"[object Object]"===Object.prototype.toString.call(e)}function k(e){return"string"==typeof e||Array.isArray(e)}function E(e){return e instanceof Error}function j(e){return new Promise((function(t){setTimeout(t,e)}))}function T(e){Promise.resolve().then(e).catch((function(e){return setTimeout((function(){throw e}))}))}function C(){if("function"==typeof AbortController)return new AbortController}},function(e,t,n){"use strict";var r=n(15),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not an object")}},function(e,t,n){"use strict";var r=n(152),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},function(e,t,n){"use strict";(function(t){var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==("undefined"==typeof globalThis?"undefined":I(globalThis))&&globalThis)||n("object"==("undefined"==typeof window?"undefined":I(window))&&window)||n("object"==("undefined"==typeof self?"undefined":I(self))&&self)||n("object"==I(t)&&t)||n("object"==I(this)&&this)||function(){return this}()||Function("return this")()}).call(this,n(96))},function(e,t,n){"use strict";n.r(t),n.d(t,"mergeRanges",(function(){return s})),n.d(t,"diff",(function(){return u})),n.d(t,"substitute",(function(){return c})),n.d(t,"makeAppOpts",(function(){return l})),n.d(t,"hour",(function(){return f})),n.d(t,"setMinimalRange",(function(){return d})),n.d(t,"now",(function(){return p})),n.d(t,"floorToHour",(function(){return h})),n.d(t,"pad",(function(){return v})),n.d(t,"pad2",(function(){return g})),n.d(t,"humanTime",(function(){return m})),n.d(t,"humanDate",(function(){return y})),n.d(t,"throttle",(function(){return b})),n.d(t,"utc_to_relative",(function(){return x})),n.d(t,"getFirstHourSegmentIndex",(function(){return w})),n.d(t,"utcToRelative",(function(){return _})),n.d(t,"relativeToUtc",(function(){return S})),n.d(t,"getDayRangeByUtc",(function(){return O})),n.d(t,"isInRange",(function(){return k})),n.d(t,"intersection",(function(){return E})),n.d(t,"getNearLeftFrom",(function(){return j})),n.d(t,"currentUrl",(function(){return T})),n.d(t,"CheckInRange",(function(){return C})),n.d(t,"canFastSeek",(function(){return A})),n.d(t,"isIOS",(function(){return P})),n.d(t,"calculateScaleTimeline",(function(){return M}));var r=n(54),i=n(113),o=n.n(i),a=new RegExp("{([a-zA-Z]+)}","ig");function s(e,t){var n=[],r=[],i={},o=0,a=e.length,s=t.length;if(0===s)return e;for(;o<a;){for(var u=e[o].opened_at,c=e[o].closed_at,l=0;l<s;)v(u,c,t[l].opened_at,t[l].closed_at)&&(n.push(o),r.push(l),i[o]=l),l++;o++}var f=n.map((function(n){return{opened_at:Math.min(e[n].opened_at,t[i[n]].opened_at),closed_at:Math.max(e[n].closed_at,t[i[n]].closed_at)}})),d=e.filter((function(e,t){return-1===n.indexOf(t)})),p=t.filter((function(e,t){return-1===r.indexOf(t)})),h=d.concat(f,p);return h.sort((function(e,t){return e.closed_at<t.closed_at?-1:e.closed_at>t.closed_at?1:0})),h;function v(e,t,n,r){return e<=n&&t>=n||n<e&&r>=e}}function u(){for(var e,t,n,r,i,o=[].slice.call(arguments,0),a=o.length,s=o[0],u={},c=1;c<a;c++)for(e=o[c],n=(t=Object.keys(e)).length,i=0;i<n;i++)l(e[r=t[i]],s[r])||(u[r]=e[r]);return u;function l(e,t){return e===t}}function c(e,t){return e?t?e.replace(a,(function(e,n){return void 0!==t[n]?t[n]:e})):e:""}function l(e){var t="undefined"!=typeof window?window.location.search.substring(1).split("&").map((function(e){return e.split("=")})).reduce((function(e,t){return e[decodeURIComponent(t[0])]=decodeURIComponent(t[1]),e}),{}):{},n=parseInt(t.play_duration,10),r=t.autoplay,i={name:e.name,streamer_http:"undefined"!=typeof window?window.location.protocol+"//"+window.location.host:"",thumbnails_enabled:e.thumbnails_enabled,from:t.from?parseInt(t.from):null,zoom:t.zoom?parseInt(t.zoom):null,proto:t.proto,locale:t.locale||"en",debug:"true"==t.debug,play_duration:n&&!isNaN(n)?n:null,tracks:t.tracks,autoPlay:!r||"true"==r},o=t[e.auth_token];o&&(i.auth_token=e.auth_token+"="+o);var a=parseInt(e.rtmp_port,10);return a>0&&(i.streamer_rtmp="undefined"!=typeof window?"rtmp://"+window.location.hostname+":"+a:""),i}function f(e){return 3600*Math.floor(e/3600)}function d(e,t){return{from:f(e),to:f(t+3600)}}function p(){return Math.round((new Date).getTime()/1e3)}function h(e){return 3600*Math.floor(e/3600)}function v(e,t){var n=e+"";return"00000000000000000000".slice(0,t-n.length)+n}function g(e){return e<=9?"0"+e:e}function m(e,t){if(t=null==t||t,!(e>0))return"";var n=new Date;n.setTime(1e3*e);var r=!(!1===t),i=r?n.getHours():n.getUTCHours(),o=r?n.getMinutes():n.getUTCMinutes(),a=r?n.getSeconds():n.getUTCSeconds();return g(i)+":"+g(o)+":"+g(a)}function y(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(t){if(t=null==t||t,!(e>0))return"";var r=new Date;r.setTime(Math.round(1e3*e));var i=!(!1===t),o=i?r.getDate():r.getUTCDate(),a=(i?r.getMonth():r.getUTCMonth())+1,s=i?r.getFullYear():r.getUTCFullYear();return n?g(o)+"."+g(a)+"."+v(s,4):v(s,4)+"."+g(a)+"."+g(o)}(t)}function b(e,t){var n,r,i=!1;return function o(){if(i)return n=arguments,void(r=this);e.apply(this,arguments),i=!0,setTimeout((function(){i=!1,n&&r&&(o.apply(r,n),r=n=void 0)}),t)}}function x(e,t,n){if(!n)return 0;for(var r=0,i=0;i<n.length&&!(n[i].closed_at>=t);i++);if(i>=n.length)return 0;if(n[i].opened_at<t&&n[i].closed_at>=e)return e-t;if(n[i].opened_at<t&&(r+=n[i].closed_at-t,i++),i>=n.length)return e-t;for(;i<n.length&&n[i].opened_at<t+3600;i++){if(n[i].opened_at<=e&&e<=n[i].closed_at)return r+e-n[i].opened_at;r+=n[i].opened_at}return r}function w(e,t){for(var n=0,r=e.length;n<r&&!(e[n].closed_at>=t);n++);return(n>=r||n<r&&t>e[n].closed_at)&&(n=-1),n}function _(e,t,n){if(Math.trunc(e/3600)!==t/3600)throw new Error("utc should be into h");if(e<t)throw new Error("utc should be gt h");var r=this.getFirstHourSegmentIndex(n,t);if(-1===r)throw new Error("no segments to play");var i=t;n[r]&&n[r].opened_at>t&&(i=n[r].opened_at);for(var o=i,a=n.length,s=0;r<a;){var u=n[r],c=u.opened_at,l=u.closed_at;if(c>e)break;if(e<=l){o=e;break}if(r+1<a&&e>l&&e<n[r+1].opened_at)return void console.error("you click to empty range");r+1<a&&e>n[r+1].opened_at&&(o=n[r+1].opened_at,s+=n[r+1].opened_at-l),r++}return o-i-s}function S(e,t,n){for(var r=t,i=0;i<n.length&&!(n[i].closed_at>=e);)i++;if(i>=n.length)return e+t;if(n[i].opened_at<=e&&n[i].closed_at>=e){if(e+t<=n[i].closed_at)return e+t;r-=n[i].closed_at-n[i].opened_at-(e-n[i].opened_at),i++}for(;i<n.length;){if(r<=n[i].closed_at-n[i].opened_at)return n[i].opened_at+r;if(++i>=n.length||!n[i])break;r-=n[i].closed_at-n[i].opened_at}return e+t}function O(e){var t=new Date,n=new Date;return t.setTime(1e3*e),n.setTime(1e3*e),t.setHours(0,0,0,0),n.setHours(23,59,59,999),{start:Math.round(t.getTime()/1e3),end:Math.round(n.getTime()/1e3)}}function k(e,t){for(var n=t.length,r=0;r<n;){var i=t[r],o=i.opened_at,a=i.closed_at;if(e<o)return!1;if(e>a)r++;else{if(e>=o&&e<=a)return!0;r++}}return!1}function E(e,t){var n=e.start<t.start?e:t,r=n===e?t:e;return!(n.end<r.start)&&{start:r.start,end:n.end<r.end?n.end:r.end}}function j(e,t){for(var n=t.length,r=0;r<n;){var i=t[r],o=i.opened_at,a=i.closed_at;if(e<o)return o;if(e>a)r++;else{if(e>=o&&e<=a)return e;r++}}return"live"}function T(e,t){var n=new URL(e),i=Object(r.parse)(n.search.replace(/^\?/,"")),a=o()(i,{$merge:t});return n.search=Object(r.stringify)(a),n.toString()}Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var n=Object(e),r=1;r<arguments.length;r++){var i=arguments[r];if(null!=i)for(var o=Object.keys(Object(i)),a=0,s=o.length;a<s;a++){var u=o[a],c=Object.getOwnPropertyDescriptor(i,u);void 0!==c&&c.enumerable&&(n[u]=i[u])}}return n}}),Math.trunc||(Math.trunc=function(e){return e=+e,isFinite(e)?e-e%1||(e<0?-0:0===e?e:0):e}),Int8Array.__proto__&&!Int8Array.__proto__.opened_at&&(Int8Array.__proto__.opened_at=function(e,t,n){var r=Int8Array.__proto__;if("function"!=typeof this)throw new TypeError("# is not a constructor");if(this.__proto__!==r)throw new TypeError("this is not a typed array.");if("function"!=typeof(t=t||function(e){return e}))throw new TypeError("specified argument is not a function");if(!(e=Object(e)).length)return new this(0);for(var i=[],o=0;o<e.length;o++)i.push(e[o]);var a=new this((i=i.map(t,n)).length);for(o=0;o<a.length;o++)a[o]=i[o];return a});var C=function(e,t){if("string"==typeof t)return!1;for(var n=t.length,r=0;r<n;){var i=t[r],o=i.opened_at,a=i.closed_at;if(e<o)return;if(e>a)r++;else{if(e>=o&&e<=a){var s=a,u="live";return t[r+1]&&(u=t[r+1].opened_at),{sectionEnd:s,nextSection:u,playbackDuration:s-e}}r++}}};function A(e,t){if("string"!=typeof t){for(var n=t.length,r=0;r<n;){var i=t[r],o=i.opened_at,a=i.closed_at;if(e>=o&&e<=a)return!0;r++}return!1}}var P=function(){return/iPad|iPhone|iPod|iPad Simulator|iPhone Simulator|iPod Simulator/.test(navigator.userAgent)},M=function(e,t,n,r){var i=n?200:1e3,o="in"===t?-15:15;return e&&e.deltaY&&(o=n?e.deltaY/3:e.deltaY),r&&(o*=3),{requestAnimationStopTime:i,deltaYScaleCount:o}},I={mergeRanges:s,diff:u,substitute:c,makeAppOpts:l,hour:f,setMinimalRange:d,now:p,floorToHour:h,pad:v,pad2:g,humanTime:m,humanDate:y,throttle:b,utc_to_relative:x,getFirstHourSegmentIndex:w,utcToRelative:_,relativeToUtc:S,getDayRangeByUtc:O,isInRange:k,intersection:E,getNearLeftFrom:j,currentUrl:T,CheckInRange:C,canFastSeek:A,isIOS:P,calculateScaleTimeline:M};t.default=I},function(e,t,n){"use strict";var r=n(5);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){"use strict";var r=n(10),i=n(106),o=n(21),a=n(117),s=n(115),u=n(277),c=r.Symbol,l=i("wks"),f=u?c.for||c:c&&c.withoutSetter||a;e.exports=function(e){return o(l,e)||(l[e]=s&&o(c,e)?c[e]:f("Symbol."+e)),l[e]}},function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(19);e.exports=function(e){return"object"==I(e)?null!==e:r(e)}},function(e,t,n){"use strict";var r=n(10),i=n(19),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e]):r[e]&&r[e][t]}},function(e,t,n){"use strict";var r=n(19),i=n(116),o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a function")}},function(e,t,n){"use strict";var r=n(78),i=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return i(e)}},function(e,t,n){"use strict";var r="object"==("undefined"==typeof document?"undefined":I(document))&&document.all;e.exports=void 0===r&&void 0!==r?function(e){return"function"==typeof e||e===r}:function(e){return"function"==typeof e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(7),i=new(function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var t=e.prototype;return t.batch=function(e){var t;this.transactions++;try{t=e()}finally{this.transactions--,this.transactions||this.flush()}return t},t.schedule=function(e){var t=this;this.transactions?this.queue.push(e):Object(r.t)((function(){t.notifyFn(e)}))},t.batchCalls=function(e){var t=this;return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t.schedule((function(){e.apply(void 0,r)}))}},t.flush=function(){var e=this,t=this.queue;this.queue=[],t.length&&Object(r.t)((function(){e.batchNotifyFn((function(){t.forEach((function(t){e.notifyFn(t)}))}))}))},t.setNotifyFunction=function(e){this.notifyFn=e},t.setBatchNotifyFunction=function(e){this.batchNotifyFn=e},e}())},function(e,t,n){"use strict";var r=n(4),i=n(24),o=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},function(e,t,n){"use strict";var r,i,o,a=n(243),s=n(12),u=n(10),c=n(19),l=n(15),f=n(21),d=n(78),p=n(116),h=n(50),v=n(28),g=n(37),m=n(61),y=n(51),b=n(85),x=n(13),w=n(117),_=n(27),S=_.enforce,O=_.get,k=u.Int8Array,E=k&&k.prototype,j=u.Uint8ClampedArray,T=j&&j.prototype,C=k&&y(k),A=E&&y(E),P=Object.prototype,M=u.TypeError,I=x("toStringTag"),R=w("TYPED_ARRAY_TAG"),D=a&&!!b&&"Opera"!==d(u.opera),L=!1,N={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},F={BigInt64Array:8,BigUint64Array:8},B=function(e){var t=y(e);if(l(t)){var n=O(t);return n&&f(n,"TypedArrayConstructor")?n.TypedArrayConstructor:B(t)}},U=function(e){if(!l(e))return!1;var t=d(e);return f(N,t)||f(F,t)};for(r in N)(o=(i=u[r])&&i.prototype)?S(o).TypedArrayConstructor=i:D=!1;for(r in F)(o=(i=u[r])&&i.prototype)&&(S(o).TypedArrayConstructor=i);if((!D||!c(C)||C===Function.prototype)&&(C=function(){throw new M("Incorrect invocation")},D))for(r in N)u[r]&&b(u[r],C);if((!D||!A||A===P)&&(A=C.prototype,D))for(r in N)u[r]&&b(u[r].prototype,A);if(D&&y(T)!==A&&b(T,A),s&&!f(A,I))for(r in L=!0,g(A,I,{configurable:!0,get:function(){return l(this)?this[R]:void 0}}),N)u[r]&&h(u[r],R,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:D,TYPED_ARRAY_TAG:L&&R,aTypedArray:function(e){if(U(e))return e;throw new M("Target is not a typed array")},aTypedArrayConstructor:function(e){if(c(e)&&(!b||m(C,e)))return e;throw new M(p(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,r){if(s){if(n)for(var i in N){var o=u[i];if(o&&f(o.prototype,e))try{delete o.prototype[e]}catch(n){try{o.prototype[e]=t}catch(e){}}}A[e]&&!n||v(A,e,n?t:D&&E[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,i;if(s){if(b){if(n)for(r in N)if((i=u[r])&&f(i,e))try{delete i[e]}catch(e){}if(C[e]&&!n)return;try{return v(C,e,n?t:D&&C[e]||t)}catch(e){}}for(r in N)!(i=u[r])||i[e]&&!n||v(i,e,t)}},getTypedArrayConstructor:B,isView:function(e){if(!l(e))return!1;var t=d(e);return"DataView"===t||f(N,t)||f(F,t)},isTypedArray:U,TypedArray:C,TypedArrayPrototype:A}},function(e,t,n){"use strict";e.exports=!1},function(e,t,n){"use strict";var r=n(34),i=Object;e.exports=function(e){return i(r(e))}},function(e,t,n){"use strict";var r=n(77);e.exports=function(e){return r(e.length)}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r,i,o,a=n(281),s=n(10),u=n(15),c=n(50),l=n(21),f=n(177),d=n(181),p=n(153),h=s.TypeError,v=s.WeakMap;if(a||f.state){var g=f.state||(f.state=new v);g.get=g.get,g.has=g.has,g.set=g.set,r=function(e,t){if(g.has(e))throw new h("Object already initialized");return t.facade=e,g.set(e,t),t},i=function(e){return g.get(e)||{}},o=function(e){return g.has(e)}}else{var m=d("state");p[m]=!0,r=function(e,t){if(l(e,m))throw new h("Object already initialized");return t.facade=e,c(e,m,t),t},i=function(e){return l(e,m)?e[m]:{}},o=function(e){return l(e,m)}}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(!u(t)||(n=i(t)).type!==e)throw new h("Incompatible receiver, "+e+" required");return n}}}},function(e,t,n){"use strict";var r=n(19),i=n(33),o=n(179),a=n(226);e.exports=function(e,t,n,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:t;if(r(n)&&o(n,c,s),s.global)u?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(u=!0):delete e[t]}catch(e){}u?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},,function(e,t,n){"use strict";var r=n(119),i=n(17),o=n(152),a=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(276);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}e.exports=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(12),i=n(279),o=n(280),a=n(8),s=n(97),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor;t.f=r?o?function(e,t,n){if(a(e),t=s(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=l(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(a(e),t=s(t),a(n),i)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new u("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){"use strict";var r=n(49),i=TypeError;e.exports=function(e){if(r(e))throw new i("Can't call method on "+e);return e}},function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"e",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return u})),n.d(t,"l",(function(){return c})),n.d(t,"j",(function(){return l})),n.d(t,"i",(function(){return f})),n.d(t,"f",(function(){return d})),n.d(t,"c",(function(){return p})),n.d(t,"k",(function(){return h})),n.d(t,"n",(function(){return v})),n.d(t,"m",(function(){return g})),n.d(t,"h",(function(){return m})),n.d(t,"g",(function(){return y}));var r=Object.prototype.toString;function i(e){switch(r.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return y(e,Error)}}function o(e,t){return r.call(e)==="[object "+t+"]"}function a(e){return o(e,"ErrorEvent")}function s(e){return o(e,"DOMError")}function u(e){return o(e,"DOMException")}function c(e){return o(e,"String")}function l(e){return null===e||"object"!=I(e)&&"function"!=typeof e}function f(e){return o(e,"Object")}function d(e){return"undefined"!=typeof Event&&y(e,Event)}function p(e){return"undefined"!=typeof Element&&y(e,Element)}function h(e){return o(e,"RegExp")}function v(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function g(e){return f(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function m(e){return"number"==typeof e&&e!=e}function y(e,t){try{return e instanceof t}catch(e){return!1}}},function(e,t,n){"use strict";var r=n(283);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},function(e,t,n){"use strict";var r=n(179),i=n(33);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),i.f(e,t,n)}},function(e,t,n){"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},function(e,t,n){var r=n(90).default,i=n(957);e.exports=function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(958);e.exports=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(232),i=n(21),o=n(285),a=n(33).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){"use strict";var r=n(30),i=n(9),o=n(8),a=n(116),s=n(236),u=n(25),c=n(61),l=n(121),f=n(107),d=n(108),p=TypeError,h=function(e,t){this.stopped=e,this.result=t},v=h.prototype;e.exports=function(e,t,n){var g,m,y,b,x,w,_,S=n&&n.that,O=!(!n||!n.AS_ENTRIES),k=!(!n||!n.IS_RECORD),E=!(!n||!n.IS_ITERATOR),j=!(!n||!n.INTERRUPTED),T=r(t,S),C=function(e){return g&&d(g,"normal",e),new h(!0,e)},A=function(e){return O?(o(e),j?T(e[0],e[1],C):T(e[0],e[1])):j?T(e,C):T(e)};if(k)g=e.iterator;else if(E)g=e;else{if(!(m=f(e)))throw new p(a(e)+" is not iterable");if(s(m)){for(y=0,b=u(e);b>y;y++)if((x=A(e[y]))&&c(v,x))return x;return new h(!1)}g=l(e,m)}for(w=k?e.next:g.next;!(_=i(w,g)).done;){try{x=A(_.value)}catch(e){d(g,"throw",e)}if("object"==I(x)&&x&&c(v,x))return x}return new h(!1)}},function(e,t,n){"use strict";var r=n(13),i=n(45),o=n(33).f,a=r("unscopables"),s=Array.prototype;void 0===s[a]&&o(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},function(e,t,n){"use strict";var r=n(17),i=n(49);e.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},function(e,t,n){"use strict";var r,i=n(8),o=n(230),a=n(228),s=n(153),u=n(284),c=n(178),l=n(181)("IE_PROTO"),f=function(){},d=function(e){return"<script>"+e+"<\/script>"},p=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},h=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t;h="undefined"!=typeof document?document.domain&&r?p(r):((t=c("iframe")).style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):p(r);for(var n=a.length;n--;)delete h.prototype[a[n]];return h()};s[l]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f.prototype=i(e),n=new f,f.prototype=null,n[l]=e):n=h(),void 0===t?n:o.f(n,t)}},function(e,t,n){"use strict";var r=n(30),i=n(4),o=n(104),a=n(24),s=n(25),u=n(156),c=i([].push),l=function(e){var t=1===e,n=2===e,i=3===e,l=4===e,f=6===e,d=7===e,p=5===e||f;return function(h,v,g,m){for(var y,b,x=a(h),w=o(x),_=s(w),S=r(v,g),O=0,k=m||u,E=t?k(h,_):n||d?k(h,0):void 0;_>O;O++)if((p||O in w)&&(b=S(y=w[O],O,x),e))if(t)E[O]=b;else if(b)switch(e){case 3:return!0;case 5:return y;case 6:return O;case 2:c(E,y)}else switch(e){case 4:return!1;case 7:c(E,y)}return f?-1:i||l?l:E}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},function(e,t,n){"use strict";var r=n(0),i=n(990);if(void 0===r)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var o=(new r.Component).updater;e.exports=i(r.Component,r.isValidElement,o)},function(e,t,n){"use strict";var r=n(104),i=n(34);e.exports=function(e){return r(i(e))}},function(e,t,n){"use strict";e.exports=function(e){return null==e}},function(e,t,n){"use strict";var r=n(12),i=n(33),o=n(76);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,n){"use strict";var r=n(21),i=n(19),o=n(24),a=n(181),s=n(235),u=a("IE_PROTO"),c=Object,l=c.prototype;e.exports=s?c.getPrototypeOf:function(e){var t=o(e);if(r(t,u))return t[u];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof c?l:null}},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(947)},function(e,t,n){var r=n(987),i=n(988),o=n(415),a=n(989);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";t.decode=t.parse=n(952),t.encode=t.stringify=n(953)},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));var r=n(172),i={};function o(){return Object(r.b)()?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function a(e,t,n){var r=n||o(),i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}}).call(this,n(96))},function(e,t,n){"use strict";var r=n(12),i=n(9),o=n(175),a=n(76),s=n(48),u=n(97),c=n(21),l=n(279),f=Object.getOwnPropertyDescriptor;t.f=r?f:function(e,t){if(e=s(e),t=u(t),l)try{return f(e,t)}catch(e){}if(c(e,t))return a(!i(o.f,e,t),e[t])}},function(e,t,n){"use strict";e.exports=function(e,t){return{value:e,done:t}}},function(e,t,n){"use strict";var r=n(4),i=Set.prototype;e.exports={Set:Set,add:r(i.add),has:r(i.has),remove:r(i.delete),proto:i}},function(e,t,n){"use strict";var r,i=n(426),o=Object.prototype.toString,a=(r=Object.create(null),function(e){var t=o.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return a(t)===e}}function u(e){return Array.isArray(e)}function c(e){return void 0===e}var l=s("ArrayBuffer");function f(e){return null!==e&&"object"==I(e)}function d(e){if("object"!==a(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var p=s("Date"),h=s("File"),v=s("Blob"),g=s("FileList");function m(e){return"[object Function]"===o.call(e)}var y=s("URLSearchParams");function b(e,t){if(null!=e)if("object"!=I(e)&&(e=[e]),u(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)}var x,w=(x="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return x&&e instanceof x});e.exports={isArray:u,isArrayBuffer:l,isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return e&&("function"==typeof FormData&&e instanceof FormData||"[object FormData]"===o.call(e)||m(e.toString)&&"[object FormData]"===e.toString())},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&l(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:f,isPlainObject:d,isUndefined:c,isDate:p,isFile:h,isBlob:v,isFunction:m,isStream:function(e){return f(e)&&m(e.pipe)},isURLSearchParams:y,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:b,merge:function e(){var t={};function n(n,r){d(t[r])&&d(n)?t[r]=e(t[r],n):d(n)?t[r]=e({},n):u(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)b(arguments[r],n);return t},extend:function(e,t,n){return b(t,(function(t,r){e[r]=n&&"function"==typeof t?i(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var r,i,o,a={};t=t||{};do{for(i=(r=Object.getOwnPropertyNames(e)).length;i-- >0;)a[o=r[i]]||(t[o]=e[o],a[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:a,kindOfTest:s,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:w,isFileList:g}},function(e,t,n){"use strict";var r=n(4),i=r({}.toString),o=r("".slice);e.exports=function(e){return o(i(e),8,-1)}},function(e,t,n){"use strict";var r=n(4);e.exports=r({}.isPrototypeOf)},function(e,t,n){"use strict";var r=n(4),i=Map.prototype;e.exports={Map:Map,set:r(i.set),get:r(i.get),has:r(i.has),remove:r(i.delete),proto:i}},function(e,t,n){"use strict";var r=n(58).has;e.exports=function(e){return r(e),e}},function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return u})),n.d(t,"d",(function(){return c})),n.d(t,"b",(function(){return l}));var r=n(95),i=n(114),o=n(7);function a(e){return Math.min(1e3*Math.pow(2,e),3e4)}function s(e){return"function"==typeof(null==e?void 0:e.cancel)}var u=function(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent};function c(e){return e instanceof u}var l=function(e){var t,n,c,l,f=this,d=!1;this.abort=e.abort,this.cancel=function(e){return null==t?void 0:t(e)},this.cancelRetry=function(){d=!0},this.continueRetry=function(){d=!1},this.continue=function(){return null==n?void 0:n()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise((function(e,t){c=e,l=t}));var p=function(t){f.isResolved||(f.isResolved=!0,null==e.onSuccess||e.onSuccess(t),null==n||n(),c(t))},h=function(t){f.isResolved||(f.isResolved=!0,null==e.onError||e.onError(t),null==n||n(),l(t))};!function c(){if(!f.isResolved){var l;try{l=e.fn()}catch(e){l=Promise.reject(e)}t=function(e){if(!f.isResolved&&(h(new u(e)),null==f.abort||f.abort(),s(l)))try{l.cancel()}catch(e){}},f.isTransportCancelable=s(l),Promise.resolve(l).then(p).catch((function(t){var s,u;if(!f.isResolved){var l=null!=(s=e.retry)?s:3,p=null!=(u=e.retryDelay)?u:a,v="function"==typeof p?p(f.failureCount,t):p,g=!0===l||"number"==typeof l&&f.failureCount<l||"function"==typeof l&&l(f.failureCount,t);!d&&g?(f.failureCount++,null==e.onFail||e.onFail(f.failureCount,t),Object(o.v)(v).then((function(){if(!r.a.isFocused()||!i.a.isOnline())return new Promise((function(t){n=t,f.isPaused=!0,null==e.onPause||e.onPause()})).then((function(){n=void 0,f.isPaused=!1,null==e.onContinue||e.onContinue()}))})).then((function(){d?h(t):c()}))):h(t)}}))}}()}},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";var r=n(152),i=Function.prototype,o=i.apply,a=i.call;e.exports="object"==("undefined"==typeof Reflect?"undefined":I(Reflect))&&Reflect.apply||(r?a.bind(o):function(){return a.apply(o,arguments)})},function(e,t,n){"use strict";var r=n(61),i=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw new i("Incorrect invocation")}},function(e,t,n){"use strict";var r,i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),o=[];function a(e){for(var t=-1,n=0;n<o.length;n++)if(o[n].identifier===e){t=n;break}return t}function s(e,t){for(var n={},r=[],i=0;i<e.length;i++){var s=e[i],u=t.base?s[0]+t.base:s[0],c=n[u]||0,l="".concat(u," ").concat(c);n[u]=c+1;var f=a(l),d={css:s[1],media:s[2],sourceMap:s[3]};-1!==f?(o[f].references++,o[f].updater(d)):o.push({identifier:l,updater:v(d,t),references:1}),r.push(l)}return r}function u(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var c,l=(c=[],function(e,t){return c[e]=t,c.filter(Boolean).join("\n")});function f(e,t,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=l(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function d(e,t,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var p=null,h=0;function v(e,t){var n,r,i;if(t.singleton){var o=h++;n=p||(p=u(t)),r=f.bind(null,n,o,!1),i=f.bind(null,n,o,!0)}else n=u(t),r=d.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=(void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r));var n=s(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var i=a(n[r]);o[i].references--}for(var u=s(e,t),c=0;c<n.length;c++){var l=a(n[c]);0===o[l].references&&(o[l].updater(),o.splice(l,1))}n=u}}}},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,r,i,o=e[1]||"",a=e[3];if(!a)return o;if(t&&"function"==typeof btoa){var s=(n=a,r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(i," */")),u=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[o].concat(u).concat([s]).join("\n")}return[o].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var s=0;s<e.length;s++){var u=[].concat(e[s]);r&&i[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),t.push(u))}},t}},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return c}));var r=n(0),i=n.n(r),o=i.a.createContext(void 0),a=i.a.createContext(!1);function s(e){return e&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=o),window.ReactQueryClientContext):o}var u=function(){var e=i.a.useContext(s(i.a.useContext(a)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},c=function(e){var t=e.client,n=e.contextSharing,r=void 0!==n&&n,o=e.children;i.a.useEffect((function(){return t.mount(),function(){t.unmount()}}),[t]);var u=s(r);return i.a.createElement(a.Provider,{value:r},i.a.createElement(u.Provider,{value:t},o))}},function(e,t,n){"use strict";n.r(t),n.d(t,"Trans",(function(){return ae})),n.d(t,"TransWithoutContext",(function(){return G})),n.d(t,"useTranslation",(function(){return de})),n.d(t,"withTranslation",(function(){return ge})),n.d(t,"Translation",(function(){return ye})),n.d(t,"I18nextProvider",(function(){return be})),n.d(t,"withSSR",(function(){return Se})),n.d(t,"useSSR",(function(){return xe})),n.d(t,"initReactI18next",(function(){return Q})),n.d(t,"setDefaults",(function(){return R})),n.d(t,"getDefaults",(function(){return D})),n.d(t,"setI18n",(function(){return L})),n.d(t,"getI18n",(function(){return N})),n.d(t,"I18nContext",(function(){return ee})),n.d(t,"composeInitialProps",(function(){return ne})),n.d(t,"getInitialProps",(function(){return re})),n.d(t,"date",(function(){return Oe})),n.d(t,"time",(function(){return ke})),n.d(t,"number",(function(){return Ee})),n.d(t,"select",(function(){return je})),n.d(t,"plural",(function(){return Te})),n.d(t,"selectOrdinal",(function(){return Ce}));var r=n(6),i=n.n(r),o=n(91),a=n.n(o),s=n(0),u=n(90),c=n.n(u),l=n(437),f=n.n(l),d=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function p(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.name=n[1],(f.a[n[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var r=e.indexOf("--\x3e");return{type:"comment",comment:-1!==r?e.slice(4,r):""}}for(var i=new RegExp(d),o=null;null!==(o=i.exec(e));)if(o[0].trim())if(o[1]){var a=o[1].trim(),s=[a,""];a.indexOf("=")>-1&&(s=a.split("=")),t.attrs[s[0]]=s[1],i.lastIndex--}else o[2]&&(t.attrs[o[2]]=o[3].trim().substring(1,o[3].length-1));return t}var h=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,v=/^\s*$/,g=Object.create(null);function m(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(e){var t=[];for(var n in e)t.push(n+'="'+e[n]+'"');return t.length?" "+t.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(m,"")+"</"+t.name+">";case"comment":return e+"\x3c!--"+t.comment+"--\x3e"}}var y={parse:function(e,t){t||(t={}),t.components||(t.components=g);var n,r=[],i=[],o=-1,a=!1;if(0!==e.indexOf("<")){var s=e.indexOf("<");r.push({type:"text",content:-1===s?e:e.substring(0,s)})}return e.replace(h,(function(s,u){if(a){if(s!=="</"+n.name+">")return;a=!1}var c,l="/"!==s.charAt(1),f=s.startsWith("\x3c!--"),d=u+s.length,h=e.charAt(d);if(f){var g=p(s);return o<0?(r.push(g),r):((c=i[o]).children.push(g),r)}if(l&&(o++,"tag"===(n=p(s)).type&&t.components[n.name]&&(n.type="component",a=!0),n.voidElement||a||!h||"<"===h||n.children.push({type:"text",content:e.slice(d,e.indexOf("<",d))}),0===o&&r.push(n),(c=i[o-1])&&c.children.push(n),i[o]=n),(!l||n.voidElement)&&(o>-1&&(n.voidElement||n.name===s.slice(2,-1))&&(o--,n=-1===o?r:i[o]),!a&&"<"!==h&&h)){c=-1===o?r:i[o].children;var m=e.indexOf("<",d),y=e.slice(d,-1===m?void 0:m);v.test(y)&&(y=" "),(m>-1&&o+c.length>=0||" "!==y)&&c.push({type:"text",content:y})}})),r},stringify:function(e){return e.reduce((function(e,t){return e+m("",t)}),"")}};function b(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"string"==typeof n[0]&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var x={};function w(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&x[t[0]]||("string"==typeof t[0]&&(x[t[0]]=new Date),b.apply(void 0,t))}var _=function(e,t){return function(){e.isInitialized?t():e.on("initialized",(function n(){setTimeout((function(){e.off("initialized",n)}),0),t()}))}};function S(e,t,n){e.loadNamespaces(t,_(e,n))}function O(e,t,n,r){"string"==typeof n&&(n=[n]),n.forEach((function(t){e.options.ns.indexOf(t)<0&&e.options.ns.push(t)})),e.loadLanguages(t,_(e,r))}function k(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{lng:n.lng,precheck:function(t,r){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.languages[0],i=!!t.options&&t.options.fallbackLng,o=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)||!t.hasResourceBundle(r,e)&&t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages)&&(!a(r,e)||i&&!a(o,e)))}(e,t,n):(w("i18n.languages were undefined or empty",t.languages),!0)}function E(e){return e.displayName||e.name||("string"==typeof e&&e.length>0?e:"Unknown")}var j=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,T={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},C=function(e){return T[e]};function A(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 P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var M,I={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(j,C)}};function R(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};I=P(P({},I),e)}function D(){return I}function L(e){M=e}function N(){return M}var F=["format"],B=["children","count","parent","i18nKey","context","tOptions","values","defaults","components","ns","i18n","t","shouldUnescape"];function U(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 z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function V(e,t){if(!e)return!1;var n=e.props?e.props.children:e.children;return t?n.length>0:!!n}function H(e){return e?e.props?e.props.children:e.children:[]}function W(e){return Array.isArray(e)?e:[e]}function q(e,t,n,r,i,o){if(""===t)return[];var a=r.transKeepBasicHtmlNodesFor||[],u=t&&new RegExp(a.join("|")).test(t);if(!e&&!u)return[t];var l={};!function e(t){W(t).forEach((function(t){"string"!=typeof t&&(V(t)?e(H(t)):"object"!==c()(t)||Object(s.isValidElement)(t)||Object.assign(l,t))}))}(e);var f=y.parse("<0>".concat(t,"</0>")),d=z(z({},l),i);function p(e,t,n){var r=H(e),i=v(r,t.children,n);return function(e){return"[object Array]"===Object.prototype.toString.call(e)&&e.every((function(e){return Object(s.isValidElement)(e)}))}(r)&&0===i.length?r:i}function h(e,t,n,r,i){e.dummy&&(e.children=t),n.push(Object(s.cloneElement)(e,z(z({},e.props),{},{key:r}),i?void 0:t))}function v(t,i,l){var f=W(t);return W(i).reduce((function(t,i,g){var m,y,b,x=i.children&&i.children[0]&&i.children[0].content&&n.services.interpolator.interpolate(i.children[0].content,d,n.language);if("tag"===i.type){var w=f[parseInt(i.name,10)];!w&&1===l.length&&l[0][i.name]&&(w=l[0][i.name]),w||(w={});var _=0!==Object.keys(i.attrs).length?(m={props:i.attrs},(b=z({},y=w)).props=Object.assign(m.props,y.props),b):w,S=Object(s.isValidElement)(_),O=S&&V(i,!0)&&!i.voidElement,k=u&&"object"===c()(_)&&_.dummy&&!S,E="object"===c()(e)&&null!==e&&Object.hasOwnProperty.call(e,i.name);if("string"==typeof _){var j=n.services.interpolator.interpolate(_,d,n.language);t.push(j)}else if(V(_)||O)h(_,p(_,i,l),t,g);else if(k){var T=v(f,i.children,l);t.push(Object(s.cloneElement)(_,z(z({},_.props),{},{key:g}),T))}else if(Number.isNaN(parseFloat(i.name)))if(E)h(_,p(_,i,l),t,g,i.voidElement);else if(r.transSupportBasicHtmlNodes&&a.indexOf(i.name)>-1)if(i.voidElement)t.push(Object(s.createElement)(i.name,{key:"".concat(i.name,"-").concat(g)}));else{var C=v(f,i.children,l);t.push(Object(s.createElement)(i.name,{key:"".concat(i.name,"-").concat(g)},C))}else if(i.voidElement)t.push("<".concat(i.name," />"));else{var A=v(f,i.children,l);t.push("<".concat(i.name,">").concat(A,"</").concat(i.name,">"))}else if("object"!==c()(_)||S)1===i.children.length&&x?t.push(Object(s.cloneElement)(_,z(z({},_.props),{},{key:g}),x)):t.push(Object(s.cloneElement)(_,z(z({},_.props),{},{key:g})));else{var P=i.children[0]?x:null;P&&t.push(P)}}else if("text"===i.type){var M=r.transWrapTextNodes,I=o?r.unescape(n.services.interpolator.interpolate(i.content,d,n.language)):n.services.interpolator.interpolate(i.content,d,n.language);M?t.push(Object(s.createElement)(M,{key:"".concat(i.name,"-").concat(g)},I)):t.push(I)}return t}),[])}return H(v([{dummy:!0,children:e||[]}],f,W(e||[]))[0])}function G(e){var t=e.children,n=e.count,r=e.parent,i=e.i18nKey,o=e.context,u=e.tOptions,l=void 0===u?{}:u,f=e.values,d=e.defaults,p=e.components,h=e.ns,v=e.i18n,g=e.t,m=e.shouldUnescape,y=a()(e,B),x=v||N();if(!x)return w("You will need to pass in an i18next instance by using i18nextReactModule"),t;var _=g||x.t.bind(x)||function(e){return e};o&&(l.context=o);var S=z(z({},D()),x.options&&x.options.react),O=h||_.ns||x.options&&x.options.defaultNS;O="string"==typeof O?[O]:O||["translation"];var k=d||function e(t,n){if(!t)return"";var r="",i=W(t),o=n.transSupportBasicHtmlNodes&&n.transKeepBasicHtmlNodesFor?n.transKeepBasicHtmlNodesFor:[];return i.forEach((function(t,i){if("string"==typeof t)r+="".concat(t);else if(Object(s.isValidElement)(t)){var u=Object.keys(t.props).length,l=o.indexOf(t.type)>-1,f=t.props.children;if(!f&&l&&0===u)r+="<".concat(t.type,"/>");else if(f||l&&0===u)if(t.props.i18nIsDynamicList)r+="<".concat(i,"></").concat(i,">");else if(l&&1===u&&"string"==typeof f)r+="<".concat(t.type,">").concat(f,"</").concat(t.type,">");else{var d=e(f,n);r+="<".concat(i,">").concat(d,"</").concat(i,">")}else r+="<".concat(i,"></").concat(i,">")}else if(null===t)b("Trans: the passed in value is invalid - seems you passed in a null child.");else if("object"===c()(t)){var p=t.format,h=a()(t,F),v=Object.keys(h);if(1===v.length){var g=p?"".concat(v[0],", ").concat(p):v[0];r+="{{".concat(g,"}}")}else b("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",t)}else b("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",t)})),r}(t,S)||S.transEmptyNodeValue||i,E=S.hashTransKey,j=i||(E?E(k):k),T=f?l.interpolation:{interpolation:z(z({},l.interpolation),{},{prefix:"#$?",suffix:"?$#"})},C=z(z(z(z({},l),{},{count:n},f),T),{},{defaultValue:k,ns:O}),A=q(p||t,j?_(j,C):k,x,S,C,m),P=void 0!==r?r:S.defaultTransParent;return P?Object(s.createElement)(P,y,A):A}var Y=n(32),K=n.n(Y),$=n(31),X=n.n($),Q={type:"3rdParty",init:function(e){R(e.options.react),L(e)}};function Z(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 J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ee=Object(s.createContext)(),te=function(){function e(){K()(this,e),this.usedNamespaces={}}return X()(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function ne(e){return function(t){return new Promise((function(n){var r=re();e.getInitialProps?e.getInitialProps(t).then((function(e){n(J(J({},e),r))})):n(r)}))}}function re(){var e=N(),t=e.reportNamespaces?e.reportNamespaces.getUsedNamespaces():[],n={},r={};return e.languages.forEach((function(n){r[n]={},t.forEach((function(t){r[n][t]=e.getResourceBundle(n,t)||{}}))})),n.initialI18nStore=r,n.initialLanguage=e.language,n}var ie=["children","count","parent","i18nKey","context","tOptions","values","defaults","components","ns","i18n","t","shouldUnescape"];function oe(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 ae(e){var t=e.children,n=e.count,r=e.parent,o=e.i18nKey,u=e.context,c=e.tOptions,l=void 0===c?{}:c,f=e.values,d=e.defaults,p=e.components,h=e.ns,v=e.i18n,g=e.t,m=e.shouldUnescape,y=a()(e,ie),b=Object(s.useContext)(ee)||{},x=b.i18n,w=b.defaultNS,_=v||x||N(),S=g||_&&_.t.bind(_);return G(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({children:t,count:n,parent:r,i18nKey:o,context:u,tOptions:l,values:f,defaults:d,components:p,ns:h||S&&S.ns||w||_&&_.options&&_.options.defaultNS,i18n:_,t:g,shouldUnescape:m},y))}var se=n(53),ue=n.n(se);function ce(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 le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var fe=function(e,t){var n=Object(s.useRef)();return Object(s.useEffect)((function(){n.current=t?n.current:e}),[e,t]),n.current};function de(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.i18n,r=Object(s.useContext)(ee)||{},i=r.i18n,o=r.defaultNS,a=n||i||N();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new te),!a){w("You will need to pass in an i18next instance by using initReactI18next");var u=function(e,t){return"string"==typeof t?t:t&&"object"===c()(t)&&"string"==typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e},l=[u,{},!1];return l.t=u,l.i18n={},l.ready=!1,l}a.options.react&&void 0!==a.options.react.wait&&w("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var f=le(le(le({},D()),a.options.react),t),d=f.useSuspense,p=f.keyPrefix,h=e||o||a.options&&a.options.defaultNS;h="string"==typeof h?[h]:h||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(h);var v=(a.isInitialized||a.initializedStoreOnce)&&h.every((function(e){return k(e,a,f)}));function g(){return a.getFixedT(t.lng||null,"fallback"===f.nsMode?h:h[0],p)}var m=Object(s.useState)(g),y=ue()(m,2),b=y[0],x=y[1],_=h.join();t.lng&&(_="".concat(t.lng).concat(_));var E=fe(_),j=Object(s.useRef)(!0);Object(s.useEffect)((function(){var e=f.bindI18n,n=f.bindI18nStore;function r(){j.current&&x(g)}return j.current=!0,v||d||(t.lng?O(a,t.lng,h,(function(){j.current&&x(g)})):S(a,h,(function(){j.current&&x(g)}))),v&&E&&E!==_&&j.current&&x(g),e&&a&&a.on(e,r),n&&a&&a.store.on(n,r),function(){j.current=!1,e&&a&&e.split(" ").forEach((function(e){return a.off(e,r)})),n&&a&&n.split(" ").forEach((function(e){return a.store.off(e,r)}))}}),[a,_]);var T=Object(s.useRef)(!0);Object(s.useEffect)((function(){j.current&&!T.current&&x(g),T.current=!1}),[a,p]);var C=[b,a,v];if(C.t=b,C.i18n=a,C.ready=v,v)return C;if(!v&&!d)return C;throw new Promise((function(e){t.lng?O(a,t.lng,h,(function(){return e()})):S(a,h,(function(){return e()}))}))}var pe=["forwardedRef"];function he(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 ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ge(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){function r(r){var i=r.forwardedRef,o=a()(r,pe),u=de(e,ve(ve({},o),{},{keyPrefix:t.keyPrefix})),c=ue()(u,3),l=c[0],f=c[1],d=c[2],p=ve(ve({},o),{},{t:l,i18n:f,tReady:d});return t.withRef&&i?p.ref=i:!t.withRef&&i&&(p.forwardedRef=i),Object(s.createElement)(n,p)}return r.displayName="withI18nextTranslation(".concat(E(n),")"),r.WrappedComponent=n,t.withRef?Object(s.forwardRef)((function(e,t){return Object(s.createElement)(r,Object.assign({},e,{forwardedRef:t}))})):r}}var me=["ns","children"];function ye(e){var t=e.ns,n=e.children,r=de(t,a()(e,me)),i=ue()(r,3),o=i[0],s=i[1],u=i[2];return n(o,{i18n:s,lng:s.language},u)}function be(e){var t=e.i18n,n=e.defaultNS,r=e.children,i=Object(s.useMemo)((function(){return{i18n:t,defaultNS:n}}),[t,n]);return Object(s.createElement)(ee.Provider,{value:i},r)}function xe(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).i18n,r=(Object(s.useContext)(ee)||{}).i18n,i=n||r||N();i.options&&i.options.isClone||(e&&!i.initializedStoreOnce&&(i.services.resourceStore.data=e,i.options.ns=Object.values(e).reduce((function(e,t){return Object.keys(t).forEach((function(t){e.indexOf(t)<0&&e.push(t)})),e}),i.options.ns),i.initializedStoreOnce=!0,i.isInitialized=!0),t&&!i.initializedLanguageOnce&&(i.changeLanguage(t),i.initializedLanguageOnce=!0))}var we=["initialI18nStore","initialLanguage"];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 Se(){return function(e){function t(t){var n=t.initialI18nStore,r=t.initialLanguage,o=a()(t,we);return xe(n,r),Object(s.createElement)(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_e(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},o))}return t.getInitialProps=ne(e),t.displayName="withI18nextSSR(".concat(E(e),")"),t.WrappedComponent=e,t}}var Oe=function(){return""},ke=function(){return""},Ee=function(){return""},je=function(){return""},Te=function(){return""},Ce=function(){return""}},function(e,t,n){"use strict";var r=n(33).f,i=n(21),o=n(13)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!i(e,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){"use strict";var r=n(62).has;e.exports=function(e){return r(e),e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(e){var t=this,n=e||function(){};return this.listeners.push(n),this.onSubscribe(),function(){t.listeners=t.listeners.filter((function(e){return e!==n})),t.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}()},function(e,t,n){"use strict";n.d(t,"e",(function(){return s})),n.d(t,"a",(function(){return u})),n.d(t,"g",(function(){return c})),n.d(t,"f",(function(){return l})),n.d(t,"h",(function(){return f})),n.d(t,"b",(function(){return d})),n.d(t,"d",(function(){return v})),n.d(t,"c",(function(){return g}));var r=n(3),i=n(458),o=n(35),a=n(133);function s(e,t,n){if(t in e){var r=e[t],i=n(r);if("function"==typeof i)try{c(i,r)}catch(e){}e[t]=i}}function u(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}function c(e,t){var n=t.prototype||{};e.prototype=t.prototype=n,u(e,"__sentry_original__",t)}function l(e){return e.__sentry_original__}function f(e){return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")}function d(e){var t=e;if(Object(o.d)(e))t=Object(r.a)({message:e.message,name:e.name,stack:e.stack},h(e));else if(Object(o.f)(e)){var n=e;t=Object(r.a)({type:n.type,target:p(n.target),currentTarget:p(n.currentTarget)},h(n)),"undefined"!=typeof CustomEvent&&Object(o.g)(e,CustomEvent)&&(t.detail=n.detail)}return t}function p(e){try{return Object(o.c)(e)?Object(i.b)(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function h(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function v(e,t){void 0===t&&(t=40);var n=Object.keys(d(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Object(a.d)(n[0],t);for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:Object(a.d)(i,t)}return""}function g(e){var t,n;if(Object(o.i)(e)){var i={};try{for(var a=Object(r.e)(Object.keys(e)),s=a.next();!s.done;s=a.next()){var u=s.value;void 0!==e[u]&&(i[u]=g(e[u]))}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return i}return Array.isArray(e)?e.map(g):e}},function(e,t,n){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";var r=n(36),i=Math.min;e.exports=function(e){var t=r(e);return t>0?i(t,9007199254740991):0}},function(e,t,n){"use strict";var r=n(229),i=n(19),o=n(60),a=n(13)("toStringTag"),s=Object,u="Arguments"===o(function(){return arguments}());e.exports=r?o: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=s(e),a))?n:u?o(t):"Object"===(r=o(t))&&i(t.callee)?"Arguments":r}},function(e,t,n){"use strict";var r=n(4);e.exports=r([].slice)},function(e,t,n){"use strict";var r=n(4),i=n(112),o=n(58),a=o.Set,s=o.proto,u=r(s.forEach),c=r(s.keys),l=c(new a).next;e.exports=function(e,t,n){return n?i({iterator:c(e),next:l},t):u(e,t)}},function(e,t,n){"use strict";var r=n(4),i=n(34),o=n(18),a=/"/g,s=r("".replace);e.exports=function(e,t,n,r){var u=o(i(e)),c="<"+t;return""!==n&&(c+=" "+n+'="'+s(o(r),a,""")+'"'),c+">"+u+"</"+t+">"}},function(e,t,n){"use strict";var r=n(5);e.exports=function(e){return r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},function(e,t,n){var r=n(954),i=n(955),o=n(415),a=n(956);e.exports=function(e){return r(e)||i(e)||o(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=TypeError;e.exports=function(e,t){if(e<t)throw new r("Not enough arguments");return e}},function(e,t,n){"use strict";var r=n(183),i=n(15),o=n(34),a=n(291);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return o(n),a(r),i(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0)},function(e,t,n){"use strict";var r=n(12),i=n(33),o=n(76);e.exports=function(e,t,n){r?i.f(e,t,o(0,n)):e[t]=n}},function(e,t,n){"use strict";var r=n(5);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},function(e,t,n){"use strict";var r=n(28);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},function(e,t,n){"use strict";var r=n(4),i=n(112),o=n(62),a=o.Map,s=o.proto,u=r(s.forEach),c=r(s.entries),l=c(new a).next;e.exports=function(e,t,n){return n?i({iterator:c(e),next:l},(function(e){return t(e[1],e[0])})):u(e,t)}},function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==I(Symbol.iterator)?function(e){return I(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":I(e)},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(986);e.exports=function(e,t){if(null==e)return{};var n,i,o=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(36),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){"use strict";var r=n(60);e.exports=Array.isArray||function(e){return"Array"===r(e)}},function(e,t,n){"use strict";var r=n(4),i=n(5),o=n(19),a=n(78),s=n(16),u=n(180),c=function(){},l=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,d=r(f.exec),p=!f.test(c),h=function(e){if(!o(e))return!1;try{return l(c,[],e),!0}catch(e){return!1}},v=function(e){if(!o(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!d(f,u(e))}catch(e){return!0}};v.sham=!0,e.exports=!l||i((function(){var e;return h(h.call)||!h(Object)||!h((function(){e=!0}))||e}))?v:h},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(65),i=n(74),o=n(7),a=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!o.h&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),function(){window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}},t}Object(r.a)(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"==typeof e?n.setFocused(e):n.onFocus()}))},n.setFocused=function(e){this.focused=e,e&&this.onFocus()},n.onFocus=function(){this.listeners.forEach((function(e){e()}))},n.isFocused=function(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},t}(i.a))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==("undefined"==typeof window?"undefined":I(window))&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r=n(176),i=n(105);e.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},function(e,t,n){"use strict";var r,i,o=n(10),a=n(99),s=o.process,u=o.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l&&(i=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=+r[1]),e.exports=i},function(e,t,n){"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},function(e,t,n){"use strict";var r=n(17),i=TypeError,o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw new i("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},function(e,t,n){"use strict";var r=n(2),i=n(10),o=n(9),a=n(12),s=n(261),u=n(22),c=n(189),l=n(67),f=n(76),d=n(50),p=n(252),h=n(77),v=n(158),g=n(373),m=n(374),y=n(97),b=n(21),x=n(78),w=n(15),_=n(105),S=n(45),O=n(61),k=n(85),E=n(118).f,j=n(375),T=n(46).forEach,C=n(124),A=n(37),P=n(33),M=n(56),I=n(110),R=n(27),D=n(120),L=R.get,N=R.set,F=R.enforce,B=P.f,U=M.f,z=i.RangeError,V=c.ArrayBuffer,H=V.prototype,W=c.DataView,q=u.NATIVE_ARRAY_BUFFER_VIEWS,G=u.TYPED_ARRAY_TAG,Y=u.TypedArray,K=u.TypedArrayPrototype,$=u.isTypedArray,X=function(e,t){A(e,t,{configurable:!0,get:function(){return L(this)[t]}})},Q=function(e){var t;return O(H,e)||"ArrayBuffer"===(t=x(e))||"SharedArrayBuffer"===t},Z=function(e,t){return $(e)&&!_(t)&&t in e&&p(+t)&&t>=0},J=function(e,t){return t=y(t),Z(e,t)?f(2,e[t]):U(e,t)},ee=function(e,t,n){return t=y(t),!(Z(e,t)&&w(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?B(e,t,n):(e[t]=n.value,e)};a?(q||(M.f=J,P.f=ee,X(K,"buffer"),X(K,"byteOffset"),X(K,"byteLength"),X(K,"length")),r({target:"Object",stat:!0,forced:!q},{getOwnPropertyDescriptor:J,defineProperty:ee}),e.exports=function(e,t,n){var a=e.match(/\d+/)[0]/8,u=e+(n?"Clamped":"")+"Array",c="get"+e,f="set"+e,p=i[u],y=p,b=y&&y.prototype,x={},_=function(e,t){B(e,t,{get:function(){return function(e,t){var n=L(e);return n.view[c](t*a+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var i=L(e);i.view[f](t*a+i.byteOffset,n?m(r):r,!0)}(this,t,e)},enumerable:!0})};q?s&&(y=t((function(e,t,n,r){return l(e,b),D(w(t)?Q(t)?void 0!==r?new p(t,g(n,a),r):void 0!==n?new p(t,g(n,a)):new p(t):$(t)?I(y,t):o(j,y,t):new p(v(t)),e,y)})),k&&k(y,Y),T(E(p),(function(e){e in y||d(y,e,p[e])})),y.prototype=b):(y=t((function(e,t,n,r){l(e,b);var i,s,u,c=0,f=0;if(w(t)){if(!Q(t))return $(t)?I(y,t):o(j,y,t);i=t,f=g(n,a);var d=t.byteLength;if(void 0===r){if(d%a)throw new z("Wrong length");if((s=d-f)<0)throw new z("Wrong length")}else if((s=h(r)*a)+f>d)throw new z("Wrong length");u=s/a}else u=v(t),i=new V(s=u*a);for(N(e,{buffer:i,byteOffset:f,byteLength:s,length:u,view:new W(i)});c<u;)_(e,c++)})),k&&k(y,Y),b=y.prototype=S(K)),b.constructor!==y&&d(b,"constructor",y),F(b).TypedArrayConstructor=y,G&&d(b,G,u);var O=y!==p;x[u]=y,r({global:!0,constructor:!0,forced:O,sham:!q},x),"BYTES_PER_ELEMENT"in y||d(y,"BYTES_PER_ELEMENT",a),"BYTES_PER_ELEMENT"in b||d(b,"BYTES_PER_ELEMENT",a),C(u)}):e.exports=function(){}},function(e,t,n){"use strict";n(249),n(264);var r=n(16),i=n(4),o=n(106),a=r("Map"),s=r("WeakMap"),u=i([].push),c=o("metadata"),l=c.store||(c.store=new s),f=function(e,t,n){var r=l.get(e);if(!r){if(!n)return;l.set(e,r=new a)}var i=r.get(t);if(!i){if(!n)return;r.set(t,i=new a)}return i};e.exports={store:l,getMap:f,has:function(e,t,n){var r=f(t,n,!1);return void 0!==r&&r.has(e)},get:function(e,t,n){var r=f(t,n,!1);return void 0===r?void 0:r.get(e)},set:function(e,t,n,r){f(n,r,!0).set(e,t)},keys:function(e,t){var n=f(e,t,!1),r=[];return n&&n.forEach((function(e,t){u(r,t)})),r},toKey:function(e){return void 0===e||"symbol"==I(e)?e:String(e)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=console;function i(){return r}function o(e){r=e}},function(e,t,n){"use strict";var r=n(4),i=n(5),o=n(60),a=Object,s=r("".split);e.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===o(e)?s(e,""):a(e)}:a},function(e,t,n){"use strict";var r=n(16),i=n(19),o=n(61),a=n(277),s=Object;e.exports=a?function(e){return"symbol"==I(e)}:function(e){var t=r("Symbol");return i(t)&&o(t.prototype,s(e))}},function(e,t,n){"use strict";var r=n(177);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},function(e,t,n){"use strict";var r=n(78),i=n(44),o=n(49),a=n(138),s=n(13)("iterator");e.exports=function(e){if(!o(e))return i(e,s)||i(e,"@@iterator")||a[r(e)]}},function(e,t,n){"use strict";var r=n(9),i=n(8),o=n(44);e.exports=function(e,t,n){var a,s;i(e);try{if(!(a=o(e,"return"))){if("throw"===t)throw n;return n}a=r(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw n;if(s)throw a;return i(a),n}},function(e,t,n){"use strict";var r=n(10),i=n(60);e.exports="process"===i(r.process)},function(e,t,n){"use strict";var r=n(25);e.exports=function(e,t,n){for(var i=0,o=arguments.length>2?n:r(t),a=new e(o);o>i;)a[i]=t[i++];return a}},function(e,t,n){"use strict";var r=n(5);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(e,t,n){"use strict";var r=n(9);e.exports=function(e,t,n){for(var i,o,a=n?e:e.iterator,s=e.next;!(i=r(s,a)).done;)if(void 0!==(o=t(i.value)))return o}},function(e,t,n){var r=n(946),i=Object.prototype.hasOwnProperty,o=Array.prototype.splice,a=Object.prototype.toString,s=function(e){return a.call(e).slice(8,-1)},u=Object.assign||function(e,t){return c(t).forEach((function(n){i.call(t,n)&&(e[n]=t[n])})),e},c="function"==typeof Object.getOwnPropertySymbols?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.keys(e)};function l(e){if(Array.isArray(e))return u(e.constructor(e.length),e);if("Map"===s(e))return new Map(e);if("Set"===s(e))return new Set(e);if(e&&"object"==I(e)){var t=Object.getPrototypeOf(e);return u(Object.create(t),e)}return e}function f(){var e=u({},d);return t.extend=function(t,n){e[t]=n},t.isEquals=function(e,t){return e===t},t;function t(n,o){"function"==typeof o&&(o={$apply:o}),Array.isArray(n)&&Array.isArray(o)||r(!Array.isArray(o),"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."),r("object"==I(o)&&null!==o,"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the following commands: %s.",Object.keys(e).join(", "));var a=n;return c(o).forEach((function(r){if(i.call(e,r)){var u=n===a;a=e[r](o[r],a,o,n),u&&t.isEquals(a,n)&&(a=n)}else{var c="Map"===s(n)?t(n.get(r),o[r]):t(n[r],o[r]),f="Map"===s(a)?a.get(r):a[r];t.isEquals(c,f)&&(void 0!==c||i.call(n,r))||(a===n&&(a=l(n)),"Map"===s(a)?a.set(r,c):a[r]=c)}})),a}}var d={$push:function(e,t,n){return h(t,n,"$push"),e.length?t.concat(e):t},$unshift:function(e,t,n){return h(t,n,"$unshift"),e.length?e.concat(t):t},$splice:function(e,t,n,i){return function(e,t){r(Array.isArray(e),"Expected $splice target to be an array; got %s",e),g(t.$splice)}(t,n),e.forEach((function(e){g(e),t===i&&e.length&&(t=l(i)),o.apply(t,e)})),t},$set:function(e,t,n){return function(e){r(1===Object.keys(e).length,"Cannot have more than one key in an object with $set")}(n),e},$toggle:function(e,t){v(e,"$toggle");var n=e.length?l(t):t;return e.forEach((function(e){n[e]=!t[e]})),n},$unset:function(e,t,n,r){return v(e,"$unset"),e.forEach((function(e){Object.hasOwnProperty.call(t,e)&&(t===r&&(t=l(r)),delete t[e])})),t},$add:function(e,t,n,r){return m(t,"$add"),v(e,"$add"),"Map"===s(t)?e.forEach((function(e){var n=e[0],i=e[1];t===r&&t.get(n)!==i&&(t=l(r)),t.set(n,i)})):e.forEach((function(e){t!==r||t.has(e)||(t=l(r)),t.add(e)})),t},$remove:function(e,t,n,r){return m(t,"$remove"),v(e,"$remove"),e.forEach((function(e){t===r&&t.has(e)&&(t=l(r)),t.delete(e)})),t},$merge:function(e,t,n,i){var o,a;return o=t,r((a=e)&&"object"==I(a),"update(): $merge expects a spec of type 'object'; got %s",a),r(o&&"object"==I(o),"update(): $merge expects a target of type 'object'; got %s",o),c(e).forEach((function(n){e[n]!==t[n]&&(t===i&&(t=l(i)),t[n]=e[n])})),t},$apply:function(e,t){var n;return r("function"==typeof(n=e),"update(): expected spec of $apply to be a function; got %s.",n),e(t)}},p=f();function h(e,t,n){r(Array.isArray(e),"update(): expected target of %s to be an array; got %s.",n,e),v(t[n],n)}function v(e,t){r(Array.isArray(e),"update(): expected spec of %s to be an array; got %s. Did you forget to wrap your parameter in an array?",t,e)}function g(e){r(Array.isArray(e),"update(): expected spec of $splice to be an array of arrays; got %s. Did you forget to wrap your parameters in an array?",e)}function m(e,t){var n=s(e);r("Map"===n||"Set"===n,"update(): %s expects a target of type Set or Map; got %s",t,n)}e.exports=p,e.exports.default=p,e.exports.newContext=f},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(65),i=n(74),o=n(7),a=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!o.h&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("online",n,!1),window.addEventListener("offline",n,!1),function(){window.removeEventListener("online",n),window.removeEventListener("offline",n)}}},t}Object(r.a)(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"==typeof e?n.setOnline(e):n.onOnline()}))},n.setOnline=function(e){this.online=e,e&&this.onOnline()},n.onOnline=function(){this.listeners.forEach((function(e){e()}))},n.isOnline=function(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine},t}(i.a))},function(e,t,n){"use strict";var r=n(98),i=n(5),o=n(10).String;e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(e,t,n){"use strict";var r=String;e.exports=function(e){try{return r(e)}catch(e){return"Object"}}},function(e,t,n){"use strict";var r=n(4),i=0,o=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+o,36)}},function(e,t,n){"use strict";var r=n(282),i=n(228).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){"use strict";var r=n(60),i=n(4);e.exports=function(e){if("Function"===r(e))return i(e)}},function(e,t,n){"use strict";var r=n(19),i=n(15),o=n(85);e.exports=function(e,t,n){var a,s;return o&&r(a=t.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(e,s),e}},function(e,t,n){"use strict";var r=n(9),i=n(17),o=n(8),a=n(116),s=n(107),u=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(i(n))return o(r(n,e));throw new u(a(e)+" is not iterable")}},function(e,t,n){"use strict";var r=TypeError;e.exports=function(e){if(e>9007199254740991)throw r("Maximum allowed index exceeded");return e}},function(e,t,n){"use strict";var r=n(139).IteratorPrototype,i=n(45),o=n(76),a=n(72),s=n(138),u=function(){return this};e.exports=function(e,t,n,c){var l=t+" Iterator";return e.prototype=i(r,{next:o(+!c,n)}),a(e,l,!1,!0),s[l]=u,e}},function(e,t,n){"use strict";var r=n(16),i=n(37),o=n(13),a=n(12),s=o("species");e.exports=function(e){var t=r(e);a&&t&&!t[s]&&i(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(153),a=n(15),s=n(21),u=n(33).f,c=n(118),l=n(231),f=n(250),d=n(117),p=n(111),h=!1,v=d("meta"),g=0,m=function(e){u(e,v,{value:{objectID:"O"+g++,weakData:{}}})},y=e.exports={enable:function(){y.enable=function(){},h=!0;var e=c.f,t=i([].splice),n={};n[v]=1,e(n).length&&(c.f=function(n){for(var r=e(n),i=0,o=r.length;i<o;i++)if(r[i]===v){t(r,i,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==I(e)?e:("string"==typeof e?"S":"P")+e;if(!s(e,v)){if(!f(e))return"F";if(!t)return"E";m(e)}return e[v].objectID},getWeakData:function(e,t){if(!s(e,v)){if(!f(e))return!0;if(!t)return!1;m(e)}return e[v].weakData},onFreeze:function(e){return p&&h&&f(e)&&!s(e,v)&&m(e),e}};o[v]=!0},function(e,t,n){"use strict";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(17),i=n(8),o=n(9),a=n(36),s=n(38),u=RangeError,c=TypeError,l=Math.max,f=function(e,t){this.set=e,this.size=l(t,0),this.has=r(e.has),this.keys=r(e.keys)};f.prototype={getIterator:function(){return s(i(o(this.keys,this.set)))},includes:function(e){return o(this.has,this.set,e)}},e.exports=function(e){i(e);var t=+e.size;if(t!=t)throw new c("Invalid size");var n=a(t);if(n<0)throw new u("Invalid size");return new f(e,n)}},function(e,t,n){"use strict";var r=n(16),i=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}};e.exports=function(e){var t=r("Set");try{(new t)[e](i(0));try{return(new t)[e](i(-1)),!1}catch(e){return!0}}catch(e){return!1}}},function(e,t,n){"use strict";var r=n(16),i=n(19),o=n(847),a=n(15),s=r("Set");e.exports=function(e){return function(e){return a(e)&&"number"==typeof e.size&&i(e.has)&&i(e.keys)}(e)?e:o(e)?new s(e):e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(14),i=n(65),o=n(7),a=n(20),s=n(95),u=n(74),c=n(103),l=n(64),f=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.options=n,r.trackedProps=[],r.selectError=null,r.bindMethods(),r.setOptions(n),r}Object(i.a)(t,e);var n=t.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),d(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return p(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return p(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(e,t){var n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();var i=this.hasListeners();i&&h(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),!i||this.currentQuery===r&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();var o=this.computeRefetchInterval();!i||this.currentQuery===r&&this.options.enabled===n.enabled&&o===this.currentRefetchInterval||this.updateRefetchInterval(o)},n.getOptimisticResult=function(e){var t=this.client.defaultQueryObserverOptions(e),n=this.client.getQueryCache().build(this.client,t);return this.createResult(n,t)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(e,t){var n=this,r={},i=function(e){n.trackedProps.includes(e)||n.trackedProps.push(e)};return Object.keys(e).forEach((function(t){Object.defineProperty(r,t,{configurable:!1,enumerable:!0,get:function(){return i(t),e[t]}})})),(t.useErrorBoundary||t.suspense)&&i("error"),r},n.getNextResult=function(e){var t=this;return new Promise((function(n,r){var i=t.subscribe((function(t){t.isFetching||(i(),t.isError&&(null==e?void 0:e.throwOnError)?r(t.error):n(t))}))}))},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(e){return this.fetch(Object(r.a)({},e,{meta:{refetchPage:null==e?void 0:e.refetchPage}}))},n.fetchOptimistic=function(e){var t=this,n=this.client.defaultQueryObserverOptions(e),r=this.client.getQueryCache().build(this.client,n);return r.fetch().then((function(){return t.createResult(r,n)}))},n.fetch=function(e){var t=this;return this.executeFetch(e).then((function(){return t.updateResult(),t.currentResult}))},n.executeFetch=function(e){this.updateQuery();var t=this.currentQuery.fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(o.l)),t},n.updateStaleTimeout=function(){var e=this;if(this.clearStaleTimeout(),!o.h&&!this.currentResult.isStale&&Object(o.i)(this.options.staleTime)){var t=Object(o.w)(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((function(){e.currentResult.isStale||e.updateResult()}),t)}},n.computeRefetchInterval=function(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e},n.updateRefetchInterval=function(e){var t=this;this.clearRefetchInterval(),this.currentRefetchInterval=e,!o.h&&!1!==this.options.enabled&&Object(o.i)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((function(){(t.options.refetchIntervalInBackground||s.a.isFocused())&&t.executeFetch()}),this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(e,t){var n,r=this.currentQuery,i=this.options,a=this.currentResult,s=this.currentResultState,u=this.currentResultOptions,l=e!==r,f=l?e.state:this.currentQueryInitialState,p=l?this.currentResult:this.previousQueryResult,g=e.state,m=g.dataUpdatedAt,y=g.error,b=g.errorUpdatedAt,x=g.isFetching,w=g.status,_=!1,S=!1;if(t.optimisticResults){var O=this.hasListeners(),k=!O&&d(e,t),E=O&&h(e,r,t,i);(k||E)&&(x=!0,m||(w="loading"))}if(t.keepPreviousData&&!g.dataUpdateCount&&(null==p?void 0:p.isSuccess)&&"error"!==w)n=p.data,m=p.dataUpdatedAt,w=p.status,_=!0;else if(t.select&&void 0!==g.data)if(a&&g.data===(null==s?void 0:s.data)&&t.select===this.selectFn)n=this.selectResult;else try{this.selectFn=t.select,n=t.select(g.data),!1!==t.structuralSharing&&(n=Object(o.s)(null==a?void 0:a.data,n)),this.selectResult=n,this.selectError=null}catch(e){Object(c.a)().error(e),this.selectError=e}else n=g.data;if(void 0!==t.placeholderData&&void 0===n&&("loading"===w||"idle"===w)){var j;if((null==a?void 0:a.isPlaceholderData)&&t.placeholderData===(null==u?void 0:u.placeholderData))j=a.data;else if(j="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==j)try{j=t.select(j),!1!==t.structuralSharing&&(j=Object(o.s)(null==a?void 0:a.data,j)),this.selectError=null}catch(e){Object(c.a)().error(e),this.selectError=e}void 0!==j&&(w="success",n=j,S=!0)}return this.selectError&&(y=this.selectError,n=this.selectResult,b=Date.now(),w="error"),{status:w,isLoading:"loading"===w,isSuccess:"success"===w,isError:"error"===w,isIdle:"idle"===w,data:n,dataUpdatedAt:m,error:y,errorUpdatedAt:b,failureCount:g.fetchFailureCount,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>f.dataUpdateCount||g.errorUpdateCount>f.errorUpdateCount,isFetching:x,isRefetching:x&&"loading"!==w,isLoadingError:"error"===w&&0===g.dataUpdatedAt,isPlaceholderData:S,isPreviousData:_,isRefetchError:"error"===w&&0!==g.dataUpdatedAt,isStale:v(e,t),refetch:this.refetch,remove:this.remove}},n.shouldNotifyListeners=function(e,t){if(!t)return!0;var n=this.options,r=n.notifyOnChangeProps,i=n.notifyOnChangePropsExclusions;if(!r&&!i)return!0;if("tracked"===r&&!this.trackedProps.length)return!0;var o="tracked"===r?this.trackedProps:r;return Object.keys(e).some((function(n){var r=n,a=e[r]!==t[r],s=null==o?void 0:o.some((function(e){return e===n})),u=null==i?void 0:i.some((function(e){return e===n}));return a&&!u&&(!o||s)}))},n.updateResult=function(e){var t=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!Object(o.u)(this.currentResult,t)){var n={cache:!0};!1!==(null==e?void 0:e.listeners)&&this.shouldNotifyListeners(this.currentResult,t)&&(n.listeners=!0),this.notify(Object(r.a)({},n,e))}},n.updateQuery=function(){var e=this.client.getQueryCache().build(this.client,this.options);if(e!==this.currentQuery){var t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}},n.onQueryUpdate=function(e){var t={};"success"===e.type?t.onSuccess=!0:"error"!==e.type||Object(l.d)(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()},n.notify=function(e){var t=this;a.a.batch((function(){e.onSuccess?(null==t.options.onSuccess||t.options.onSuccess(t.currentResult.data),null==t.options.onSettled||t.options.onSettled(t.currentResult.data,null)):e.onError&&(null==t.options.onError||t.options.onError(t.currentResult.error),null==t.options.onSettled||t.options.onSettled(void 0,t.currentResult.error)),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)})),e.cache&&t.client.getQueryCache().notify({query:t.currentQuery,type:"observerResultsUpdated"})}))},t}(u.a);function d(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&p(e,t,t.refetchOnMount)}function p(e,t,n){if(!1!==t.enabled){var r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&v(e,t)}return!1}function h(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&v(e,n)}function v(e,t){return e.isStaleByTime(t.staleTime)}},function(e,t,n){"use strict";n.r(t);var r=n(149);for(var i in r)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(i);var o=n(418);for(var i in o)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i)},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return c}));var r=n(64),i=n(7);function o(){return{onFetch:function(e){e.fetchFn=function(){var t,n,o,u,c,l,f,d=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,p=null==(o=e.fetchOptions)||null==(u=o.meta)?void 0:u.fetchMore,h=null==p?void 0:p.pageParam,v="forward"===(null==p?void 0:p.direction),g="backward"===(null==p?void 0:p.direction),m=(null==(c=e.state.data)?void 0:c.pages)||[],y=(null==(l=e.state.data)?void 0:l.pageParams)||[],b=Object(i.d)(),x=null==b?void 0:b.signal,w=y,_=!1,S=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},O=function(e,t,n,r){return w=r?[t].concat(w):[].concat(w,[t]),r?[n].concat(e):[].concat(e,[n])},k=function(t,n,i,o){if(_)return Promise.reject("Cancelled");if(void 0===i&&!n&&t.length)return Promise.resolve(t);var a={queryKey:e.queryKey,signal:x,pageParam:i,meta:e.meta},s=S(a),u=Promise.resolve(s).then((function(e){return O(t,i,e,o)}));return Object(r.c)(s)&&(u.cancel=s.cancel),u};if(m.length)if(v){var E=void 0!==h,j=E?h:a(e.options,m);f=k(m,E,j)}else if(g){var T=void 0!==h,C=T?h:s(e.options,m);f=k(m,T,C,!0)}else!function(){w=[];var t=void 0===e.options.getNextPageParam,n=!d||!m[0]||d(m[0],0,m);f=n?k([],t,y[0]):Promise.resolve(O([],y[0],m[0]));for(var r=function(n){f=f.then((function(r){if(!d||!m[n]||d(m[n],n,m)){var i=t?y[n]:a(e.options,r);return k(r,t,i)}return Promise.resolve(O(r,y[n],m[n]))}))},i=1;i<m.length;i++)r(i)}();else f=k([]);var A=f.then((function(e){return{pages:e,pageParams:w}}));return A.cancel=function(){_=!0,null==b||b.abort(),Object(r.c)(f)&&f.cancel()},A}}}}function a(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function s(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}function u(e,t){if(e.getNextPageParam&&Array.isArray(t)){var n=a(e,t);return null!=n&&!1!==n}}function c(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){var n=s(e,t);return null!=n&&!1!==n}}},function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return s}));var r=n(35);function i(e,t){return void 0===t&&(t=0),"string"!=typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function o(e,t){var n=e,r=n.length;if(r<=150)return n;t>r&&(t=r);var i=Math.max(t-60,0);i<5&&(i=0);var o=Math.min(i+140,r);return o>r-5&&(o=r),o===r&&(i=Math.max(o-140,0)),n=n.slice(i,o),i>0&&(n="'{snip} "+n),o<r&&(n+=" {snip}"),n}function a(e,t){if(!Array.isArray(e))return"";for(var n=[],r=0;r<e.length;r++){var i=e[r];try{n.push(String(i))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function s(e,t){return!!Object(r.l)(e)&&(Object(r.k)(t)?t.test(e):"string"==typeof t&&-1!==e.indexOf(t))}},function(e,t,n){"use strict";var r=n(12),i=n(21),o=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=i(o,"name"),u=s&&"something"===function(){}.name,c=s&&(!r||r&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},function(e,t,n){"use strict";var r=n(21),i=n(227),o=n(56),a=n(33);e.exports=function(e,t,n){for(var s=i(t),u=a.f,c=o.f,l=0;l<s.length;l++){var f=s[l];r(e,f)||n&&r(n,f)||u(e,f,c(t,f))}}},function(e,t,n){"use strict";var r=n(282),i=n(228);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){"use strict";var r=n(18);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict";var r,i,o,a=n(5),s=n(19),u=n(15),c=n(45),l=n(51),f=n(28),d=n(13),p=n(23),h=d("iterator"),v=!1;[].keys&&("next"in(o=[].keys())?(i=l(l(o)))!==Object.prototype&&(r=i):v=!0),!u(r)||a((function(){var e={};return r[h].call(e)!==e}))?r={}:p&&(r=c(r)),s(r[h])||f(r,h,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}},function(e,t,n){"use strict";var r=n(8),i=n(190),o=n(49),a=n(13)("species");e.exports=function(e,t){var n,s=r(e).constructor;return void 0===s||o(n=r(s)[a])?t:i(n)}},function(e,t,n){"use strict";var r=n(4),i=n(34),o=n(18),a=n(142),s=r("".replace),u=RegExp("^["+a+"]+"),c=RegExp("(^|[^"+a+"])["+a+"]+$"),l=function(e){return function(t){var n=o(i(t));return 1&e&&(n=s(n,u,"")),2&e&&(n=s(n,c,"$1")),n}};e.exports={start:l(1),end:l(2),trim:l(3)}},function(e,t,n){"use strict";e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(e,t,n){"use strict";var r=n(10);e.exports=r.Promise},function(e,t,n){"use strict";var r=n(4),i=n(36),o=n(18),a=n(34),s=r("".charAt),u=r("".charCodeAt),c=r("".slice),l=function(e){return function(t,n){var r,l,f=o(a(t)),d=i(n),p=f.length;return d<0||d>=p?e?"":void 0:(r=u(f,d))<55296||r>56319||d+1===p||(l=u(f,d+1))<56320||l>57343?e?s(f,d):r:e?c(f,d,d+2):l-56320+(r-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},function(e,t,n){"use strict";var r=n(9),i=n(17),o=n(8),a=n(15),s=n(122),u=n(16),c=n(38),l=n(166),f=function(e){var t=0===e,n=1===e,f=2===e,d=3===e;return function(e,p,h){o(e);var v=void 0!==p;!v&&t||i(p);var g=c(e),m=u("Promise"),y=g.iterator,b=g.next,x=0;return new m((function(e,i){var u=function(e){l(y,i,e,i)},c=function(){try{if(v)try{s(x)}catch(e){u(e)}m.resolve(o(r(b,y))).then((function(r){try{if(o(r).done)t?(h.length=x,e(h)):e(!d&&(f||void 0));else{var s=r.value;try{if(v){var g=p(s,x),b=function(r){if(n)c();else if(f)r?c():l(y,e,!1,i);else if(t)try{h[x++]=r,c()}catch(e){u(e)}else r?l(y,e,d||s,i):c()};a(g)?m.resolve(g).then(b,u):b(g)}else h[x++]=s,c()}catch(e){u(e)}}}catch(e){i(e)}}),i)}catch(e){i(e)}};c()}))}};e.exports={toArray:f(0),forEach:f(1),every:f(2),some:f(3),find:f(4)}},function(e,t,n){"use strict";var r=n(9),i=n(126),o=n(8),a=n(45),s=n(50),u=n(88),c=n(13),l=n(27),f=n(16),d=n(44),p=n(165),h=n(57),v=n(108),g=f("Promise"),m=c("toStringTag"),y=l.set,b=function(e){var t=!e,n=l.getterFor(e?"WrapForValidAsyncIterator":"AsyncIteratorHelper"),s=function(e){var r=i((function(){return n(e)})),o=r.error,a=r.value;return o||t&&a.done?{exit:!0,value:o?g.reject(a):g.resolve(h(void 0,!0))}:{exit:!1,value:a}};return u(a(p),{next:function(){var e=s(this),t=e.value;if(e.exit)return t;var n=i((function(){return o(t.nextHandler(g))})),r=n.error,a=n.value;return r&&(t.done=!0),r?g.reject(a):g.resolve(a)},return:function(){var t=s(this),n=t.value;if(t.exit)return n;n.done=!0;var a,u,c=n.iterator,l=i((function(){if(n.inner)try{v(n.inner.iterator,"normal")}catch(e){return v(c,"throw",e)}return d(c,"return")}));return a=u=l.value,l.error?g.reject(u):void 0===a?g.resolve(h(void 0,!0)):(u=(l=i((function(){return r(a,c)}))).value,l.error?g.reject(u):e?g.resolve(u):g.resolve(u).then((function(e){return o(e),h(void 0,!0)})))}})},x=b(!0),w=b(!1);s(w,m,"Async Iterator Helper"),e.exports=function(e,t){var n=function(n,r){r?(r.iterator=n.iterator,r.next=n.next):r=n,r.type=t?"WrapForValidAsyncIterator":"AsyncIteratorHelper",r.nextHandler=e,r.counter=0,r.done=!1,y(this,r)};return n.prototype=t?x:w,n}},function(e,t,n){"use strict";var r=n(9),i=n(45),o=n(50),a=n(88),s=n(13),u=n(27),c=n(44),l=n(139).IteratorPrototype,f=n(57),d=n(108),p=s("toStringTag"),h=u.set,v=function(e){var t=u.getterFor(e?"WrapForValidIterator":"IteratorHelper");return a(i(l),{next:function(){var n=t(this);if(e)return n.nextHandler();try{var r=n.done?void 0:n.nextHandler();return f(r,n.done)}catch(e){throw n.done=!0,e}},return:function(){var n=t(this),i=n.iterator;if(n.done=!0,e){var o=c(i,"return");return o?r(o,i):f(void 0,!0)}if(n.inner)try{d(n.inner.iterator,"normal")}catch(e){return d(i,"throw",e)}return d(i,"normal"),f(void 0,!0)}})},g=v(!0),m=v(!1);o(m,p,"Iterator Helper"),e.exports=function(e,t){var n=function(n,r){r?(r.iterator=n.iterator,r.next=n.next):r=n,r.type=t?"WrapForValidIterator":"IteratorHelper",r.nextHandler=e,r.counter=0,r.done=!1,h(this,r)};return n.prototype=t?g:m,n}},function(e,t,n){"use strict";var r=n(4),i=WeakMap.prototype;e.exports={WeakMap:WeakMap,set:r(i.set),get:r(i.get),has:r(i.has),remove:r(i.delete)}},function(e,t,n){"use strict";n.r(t);var r=n(64);n.d(t,"CancelledError",(function(){return r.a}));var i=n(218);n.d(t,"QueryCache",(function(){return i.a}));var o=n(416);n.d(t,"QueryClient",(function(){return o.a}));var a=n(130);n.d(t,"QueryObserver",(function(){return a.a}));var s=n(214);n.d(t,"QueriesObserver",(function(){return s.a}));var u=n(215);n.d(t,"InfiniteQueryObserver",(function(){return u.a}));var c=n(213);n.d(t,"MutationCache",(function(){return c.a}));var l=n(216);n.d(t,"MutationObserver",(function(){return l.a}));var f=n(103);n.d(t,"setLogger",(function(){return f.b}));var d=n(20);n.d(t,"notifyManager",(function(){return d.a}));var p=n(95);n.d(t,"focusManager",(function(){return p.a}));var h=n(114);n.d(t,"onlineManager",(function(){return h.a}));var v=n(7);n.d(t,"hashQueryKey",(function(){return v.e})),n.d(t,"isError",(function(){return v.g})),n.d(t,"isCancelledError",(function(){return r.d}));var g=n(217);n.d(t,"dehydrate",(function(){return g.a})),n.d(t,"hydrate",(function(){return g.b}));var m=n(417);for(var y in m)["default","CancelledError","QueryCache","QueryClient","QueryObserver","QueriesObserver","InfiniteQueryObserver","MutationCache","MutationObserver","setLogger","notifyManager","focusManager","onlineManager","hashQueryKey","isError","isCancelledError","dehydrate","hydrate"].indexOf(y)<0&&function(e){n.d(t,e,(function(){return m[e]}))}(y)},function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.hls_fmp4_timeshift_rel_manifest=t.hls_fmp4_timeshift_abs_manifest_refetch=t.hls_fmp4_timeshift_abs_manifest_query=t.hls_fmp4_timeshift_abs_manifest=t.hls_fmp4_dvr_manifest_refetch=t.hls_fmp4_dvr_manifest_query=t.hls_fmp4_dvr_manifest=t.hls_fmp4_rewind_manifest_refetch=t.hls_fmp4_rewind_manifest_query=t.hls_fmp4_rewind_manifest=t.hls_fmp4_manifest_refetch=t.hls_fmp4_manifest_query=t.hls_fmp4_manifest=t.hls_thumbnail_get_refetch=t.hls_thumbnail_get_query=t.hls_thumbnail_get=t.hls_live_track_mono_manifest_refetch=t.hls_live_track_mono_manifest_query=t.hls_live_track_mono_manifest=t.hls_timeshift_rel_manifest_refetch=t.hls_timeshift_rel_manifest_query=t.hls_timeshift_rel_manifest=t.hls_timeshift_abs_manifest_refetch=t.hls_timeshift_abs_manifest_query=t.hls_timeshift_abs_manifest=t.hls_dvr_manifest_refetch=t.hls_dvr_manifest_query=t.hls_dvr_manifest=t.hls_rewind_manifest_refetch=t.hls_rewind_manifest_query=t.hls_rewind_manifest=t.hls_manifest_refetch=t.hls_manifest_query=t.hls_manifest=t.abstract_timeshift_rel_manifest_refetch=t.abstract_timeshift_rel_manifest_query=t.abstract_timeshift_rel_manifest=t.abstract_timeshift_abs_manifest_refetch=t.abstract_timeshift_abs_manifest_query=t.abstract_timeshift_abs_manifest=t.abstract_rewind_manifest_refetch=t.abstract_rewind_manifest_query=t.abstract_rewind_manifest=t.abstract_dvr_manifest_refetch=t.abstract_dvr_manifest_query=t.abstract_dvr_manifest=t.abstract_manifest_refetch=t.abstract_manifest_query=t.abstract_manifest=t.axiosInstance=void 0,t.jpeg_preview_refetch=t.jpeg_preview_query=t.jpeg_preview=t.ts_export_refetch=t.ts_export_query=t.ts_export=t.mp4_export_refetch=t.mp4_export_query=t.mp4_export=t.mss_dvr_manifest_refetch=t.mss_dvr_manifest_query=t.mss_dvr_manifest=t.mss_live_manifest_refetch=t.mss_live_manifest_query=t.mss_live_manifest=t.shoutcast_live_refetch=t.shoutcast_live_query=t.shoutcast_live=t.http_mpegts_timeshift_rel_refetch=t.http_mpegts_timeshift_rel_query=t.http_mpegts_timeshift_rel=t.http_mpegts_timeshift_abs_refetch=t.http_mpegts_timeshift_abs_query=t.http_mpegts_timeshift_abs=t.http_mpegts_live_publish=t.http_mpegts_live_play_refetch=t.http_mpegts_live_play_query=t.http_mpegts_live_play=t.webrtc_play=t.webrtc_publish=t.dash_thumbnail_get_refetch=t.dash_thumbnail_get_query=t.dash_thumbnail_get=t.dash_timeshift_abs_manifest_refetch=t.dash_timeshift_abs_manifest_query=t.dash_timeshift_abs_manifest=t.dash_dvr_manifest_refetch=t.dash_dvr_manifest_query=t.dash_dvr_manifest=t.dash_rewind_manifest_refetch=t.dash_rewind_manifest_query=t.dash_rewind_manifest=t.dash_manifest_refetch=t.dash_manifest_query=t.dash_manifest=t.llhls_live_manifest_refetch=t.llhls_live_manifest_query=t.llhls_live_manifest=t.hls_fmp4_timeshift_rel_manifest_refetch=t.hls_fmp4_timeshift_rel_manifest_query=void 0,t.streams_list_refetch=t.streams_list_query=t.streams_list=t.playlist_get_refetch=t.playlist_get_query=t.playlist_get=t.request_tracks=t.session_save=t.public_stream_get_refetch=t.public_stream_get_query=t.public_stream_get=t.media_info_refetch=t.media_info_query=t.media_info=t.ranges_list_refetch=t.ranges_list_query=t.ranges_list=t.recording_status_refetch=t.recording_status_query=t.recording_status=t.embed_html_refetch=t.embed_html_query=t.embed_html=t.media_logo_refetch=t.media_logo_query=t.media_logo=t.mp4_vod_refetch=t.mp4_vod_query=t.mp4_vod=t.mp4_dvr_refetch=t.mp4_dvr_query=t.mp4_dvr=t.mp4_preview_refetch=t.mp4_preview_query=t.mp4_preview=t.jpeg_preview_ondemand_refetch=t.jpeg_preview_ondemand_query=t.jpeg_preview_ondemand=t.jpeg_preview_dvr_refetch=t.jpeg_preview_dvr_query=t.jpeg_preview_dvr=void 0;var i=n(169),o=n(961),a=n(962),s=n(985),u=n(71),c=n(131);t.axiosInstance=(0,a.getAxiosInstance)(),t.abstract_manifest=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_abstract_manifest",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.abstract_manifest_query)({params:n,config:a})},options:r})},t.abstract_manifest_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/{name}/index.json",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.abstract_manifest_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_abstract_manifest"])}},t.abstract_dvr_manifest=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_abstract_dvr_manifest",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.abstract_dvr_manifest_query)({params:n,config:a})},options:r})},t.abstract_dvr_manifest_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/{name}/archive-{from}-{duration}.json",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.abstract_dvr_manifest_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_abstract_dvr_manifest"])}},t.abstract_rewind_manifest=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_abstract_rewind_manifest",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.abstract_rewind_manifest_query)({params:n,config:a})},options:r})},t.abstract_rewind_manifest_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/{name}/rewind-{ago}.json",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.abstract_rewind_manifest_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_abstract_rewind_manifest"])}},t.abstract_timeshift_abs_manifest=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_abstract_timeshift_abs_manifest",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.abstract_timeshift_abs_manifest_query)({params:n,config:a})},options:r})},t.abstract_timeshift_abs_manifest_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/{name}/timeshift_abs-{from}.json",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.abstract_timeshift_abs_manifest_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_abstract_timeshift_abs_manifest"])}},t.abstract_timeshift_rel_manifest=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_abstract_timeshift_rel_manifest",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.abstract_timeshift_rel_manifest_query)({params:n,config:a})},options:r})},t.abstract_timeshift_rel_manifest_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/{name}/timeshift_rel-{delay}.json",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.abstract_timeshift_rel_manifest_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_abstract_timeshift_rel_manifest"])}},t.hls_manifest=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_hls_manifest",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.hls_manifest_query)({params:n,config:a})},options:r})},t.hls_manifest_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/{name}/index.m3u8",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.hls_manifest_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_hls_manifest"])}},t.hls_rewind_manifest=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_hls_rewind_manifest",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.hls_rewind_manifest_query)({params:n,config:a})},options:r})},t.hls_rewind_manifest_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/{name}/rewind-{ago}.m3u8",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.hls_rewind_manifest_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_hls_rewind_manifest"])}},t.hls_dvr_manifest=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_hls_dvr_manifest",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.hls_dvr_manifest_query)({params:n,config:a})},options:r})},t.hls_dvr_manifest_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/{name}/archive-{from}-{duration}.m3u8",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.hls_dvr_manifest_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_hls_dvr_manifest"])}},t.hls_timeshift_abs_manifest=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_hls_timeshift_abs_manifest",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.hls_timeshift_abs_manifest_query)({params:n,config:a})},options:r})},t.hls_timeshift_abs_manifest_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/{name}/timeshift_abs-{from}.m3u8",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.hls_timeshift_abs_manifest_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_hls_timeshift_abs_manifest"])}},t.hls_timeshift_rel_manifest=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_hls_timeshift_rel_manifest",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.hls_timeshift_rel_manifest_query)({params:n,config:a})},options:r})},t.hls_timeshift_rel_manifest_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/{name}/timeshift_rel-{delay}.m3u8",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.hls_timeshift_rel_manifest_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_hls_timeshift_rel_manifest"])}},t.hls_live_track_mono_manifest=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_hls_live_track_mono_manifest",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.hls_live_track_mono_manifest_query)({params:n,config:a})},options:r})},t.hls_live_track_mono_manifest_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/{name}/tracks-{tracks}/mono.m3u8",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.hls_live_track_mono_manifest_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_hls_live_track_mono_manifest"])}},t.hls_thumbnail_get=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_hls_thumbnail_get",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.hls_thumbnail_get_query)({params:n,config:a})},options:r})},t.hls_thumbnail_get_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/{name}/images-{dimensions}/seg-{from}-{offset}.hls.jpg",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.hls_thumbnail_get_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_hls_thumbnail_get"])}},t.hls_fmp4_manifest=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_hls_fmp4_manifest",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.hls_fmp4_manifest_query)({params:n,config:a})},options:r})},t.hls_fmp4_manifest_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/{name}/index.fmp4.m3u8",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.hls_fmp4_manifest_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_hls_fmp4_manifest"])}},t.hls_fmp4_rewind_manifest=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_hls_fmp4_rewind_manifest",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.hls_fmp4_rewind_manifest_query)({params:n,config:a})},options:r})},t.hls_fmp4_rewind_manifest_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/{name}/rewind-{ago}.fmp4.m3u8",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.hls_fmp4_rewind_manifest_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_hls_fmp4_rewind_manifest"])}},t.hls_fmp4_dvr_manifest=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_hls_fmp4_dvr_manifest",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.hls_fmp4_dvr_manifest_query)({params:n,config:a})},options:r})},t.hls_fmp4_dvr_manifest_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/{name}/archive-{from}-{duration}.fmp4.m3u8",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.hls_fmp4_dvr_manifest_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_hls_fmp4_dvr_manifest"])}},t.hls_fmp4_timeshift_abs_manifest=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_hls_fmp4_timeshift_abs_manifest",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.hls_fmp4_timeshift_abs_manifest_query)({params:n,config:a})},options:r})},t.hls_fmp4_timeshift_abs_manifest_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/{name}/timeshift_abs-{from}.fmp4.m3u8",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.hls_fmp4_timeshift_abs_manifest_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_hls_fmp4_timeshift_abs_manifest"])}},t.hls_fmp4_timeshift_rel_manifest=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_hls_fmp4_timeshift_rel_manifest",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.hls_fmp4_timeshift_rel_manifest_query)({params:n,config:a})},options:r})},t.hls_fmp4_timeshift_rel_manifest_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/{name}/timeshift_rel-{delay}.fmp4.m3u8",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.hls_fmp4_timeshift_rel_manifest_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_hls_fmp4_timeshift_rel_manifest"])}},t.llhls_live_manifest=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_llhls_live_manifest",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.llhls_live_manifest_query)({params:n,config:a})},options:r})},t.llhls_live_manifest_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/{name}/index.ll.m3u8",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.llhls_live_manifest_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_llhls_live_manifest"])}},t.dash_manifest=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_dash_manifest",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.dash_manifest_query)({params:n,config:a})},options:r})},t.dash_manifest_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/{name}/Manifest.mpd",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.dash_manifest_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_dash_manifest"])}},t.dash_rewind_manifest=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_dash_rewind_manifest",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.dash_rewind_manifest_query)({params:n,config:a})},options:r})},t.dash_rewind_manifest_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/{name}/rewind-{ago}.mpd",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.dash_rewind_manifest_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_dash_rewind_manifest"])}},t.dash_dvr_manifest=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_dash_dvr_manifest",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.dash_dvr_manifest_query)({params:n,config:a})},options:r})},t.dash_dvr_manifest_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/{name}/archive-{from}-{duration}.mpd",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.dash_dvr_manifest_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_dash_dvr_manifest"])}},t.dash_timeshift_abs_manifest=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_dash_timeshift_abs_manifest",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.dash_timeshift_abs_manifest_query)({params:n,config:a})},options:r})},t.dash_timeshift_abs_manifest_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/{name}/timeshift_abs-{from}.mpd",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.dash_timeshift_abs_manifest_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_dash_timeshift_abs_manifest"])}},t.dash_thumbnail_get=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_dash_thumbnail_get",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.dash_thumbnail_get_query)({params:n,config:a})},options:r})},t.dash_thumbnail_get_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/{name}/images-{dimensions}/dvr-{from}-{offset}.m4v.jpg",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.dash_thumbnail_get_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_dash_thumbnail_get"])}},t.webrtc_publish=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.options,a=e.isAsync,c=e.mutationFn,l=e.showSuccessMessage,f=void 0===l||l,d=e.showErrorMessage,p=void 0===d||d,h=(0,u.useTranslation)(),v=h.t,g=(0,o.useMutationApi)((function(e){var n=e.params,r=e.body,o=e.config,a=(0,s.getPathWithParams)({path:"/{name}/whip",queryAndPathParams:n,encodeParams:(null==o?void 0:o.encodeParams)||!1}),u=a.pathWithParams,l=a.queryParams;return c&&(0,i.isFunction)(c)?c({params:n,body:r,config:o}):t.axiosInstance.post(u,r,Object.assign({params:l},o))}),(function(){return f&&v("webrtc_publish.successPostAlert")}),(0,i.isObject)(n)?n:{},p);return a?function(e){var t=e.params,n=e.body,i=e.config,o=r(e,["params","body","config"]);return g.mutateAsync(Object.assign({params:t,body:n,config:i},o))}:function(e){var t=e.params,n=e.body,i=e.config,o=r(e,["params","body","config"]);return g.mutate(Object.assign({params:t,body:n,config:i},o))}},t.webrtc_play=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.options,a=e.isAsync,c=e.mutationFn,l=e.showSuccessMessage,f=void 0===l||l,d=e.showErrorMessage,p=void 0===d||d,h=(0,u.useTranslation)(),v=h.t,g=(0,o.useMutationApi)((function(e){var n=e.params,r=e.body,o=e.config,a=(0,s.getPathWithParams)({path:"/{name}/whep",queryAndPathParams:n,encodeParams:(null==o?void 0:o.encodeParams)||!1}),u=a.pathWithParams,l=a.queryParams;return c&&(0,i.isFunction)(c)?c({params:n,body:r,config:o}):t.axiosInstance.post(u,r,Object.assign({params:l},o))}),(function(){return f&&v("webrtc_play.successPostAlert")}),(0,i.isObject)(n)?n:{},p);return a?function(e){var t=e.params,n=e.body,i=e.config,o=r(e,["params","body","config"]);return g.mutateAsync(Object.assign({params:t,body:n,config:i},o))}:function(e){var t=e.params,n=e.body,i=e.config,o=r(e,["params","body","config"]);return g.mutate(Object.assign({params:t,body:n,config:i},o))}},t.http_mpegts_live_play=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_http_mpegts_live_play",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.http_mpegts_live_play_query)({params:n,config:a})},options:r})},t.http_mpegts_live_play_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/{name}/mpegts",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.http_mpegts_live_play_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_http_mpegts_live_play"])}},t.http_mpegts_live_publish=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.options,a=e.isAsync,c=e.mutationFn,l=e.showSuccessMessage,f=void 0===l||l,d=e.showErrorMessage,p=void 0===d||d,h=(0,u.useTranslation)(),v=h.t,g=(0,o.useMutationApi)((function(e){var n=e.params,r=e.body,o=e.config,a=(0,s.getPathWithParams)({path:"/{name}/mpegts",queryAndPathParams:n,encodeParams:(null==o?void 0:o.encodeParams)||!1}),u=a.pathWithParams,l=a.queryParams;return c&&(0,i.isFunction)(c)?c({params:n,body:r,config:o}):t.axiosInstance.post(u,r,Object.assign({params:l},o))}),(function(){return f&&v("http_mpegts_live_publish.successPostAlert")}),(0,i.isObject)(n)?n:{},p);return a?function(e){var t=e.params,n=e.body,i=e.config,o=r(e,["params","body","config"]);return g.mutateAsync(Object.assign({params:t,body:n,config:i},o))}:function(e){var t=e.params,n=e.body,i=e.config,o=r(e,["params","body","config"]);return g.mutate(Object.assign({params:t,body:n,config:i},o))}},t.http_mpegts_timeshift_abs=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_http_mpegts_timeshift_abs",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.http_mpegts_timeshift_abs_query)({params:n,config:a})},options:r})},t.http_mpegts_timeshift_abs_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/{name}/timeshift_abs-{from}.ts",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.http_mpegts_timeshift_abs_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_http_mpegts_timeshift_abs"])}},t.http_mpegts_timeshift_rel=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_http_mpegts_timeshift_rel",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.http_mpegts_timeshift_rel_query)({params:n,config:a})},options:r})},t.http_mpegts_timeshift_rel_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/{name}/timeshift_rel-{delay}.ts",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.http_mpegts_timeshift_rel_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_http_mpegts_timeshift_rel"])}},t.shoutcast_live=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_shoutcast_live",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.shoutcast_live_query)({params:n,config:a})},options:r})},t.shoutcast_live_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/{name}/shoutcast",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.shoutcast_live_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_shoutcast_live"])}},t.mss_live_manifest=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_mss_live_manifest",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.mss_live_manifest_query)({params:n,config:a})},options:r})},t.mss_live_manifest_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/{name}.isml/manifest",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.mss_live_manifest_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_mss_live_manifest"])}},t.mss_dvr_manifest=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_mss_dvr_manifest",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.mss_dvr_manifest_query)({params:n,config:a})},options:r})},t.mss_dvr_manifest_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/{name}(archive={from}-{duration}).isml/manifest",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.mss_dvr_manifest_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_mss_dvr_manifest"])}},t.mp4_export=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_mp4_export",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.mp4_export_query)({params:n,config:a})},options:r})},t.mp4_export_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/{name}/archive-{from}-{duration}.mp4",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.mp4_export_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_mp4_export"])}},t.ts_export=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_ts_export",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.ts_export_query)({params:n,config:a})},options:r})},t.ts_export_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/{name}/archive-{from}-{duration}.ts",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.ts_export_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_ts_export"])}},t.jpeg_preview=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_jpeg_preview",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.jpeg_preview_query)({params:n,config:a})},options:r})},t.jpeg_preview_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/{name}/preview.jpg",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.jpeg_preview_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_jpeg_preview"])}},t.jpeg_preview_dvr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_jpeg_preview_dvr",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.jpeg_preview_dvr_query)({params:n,config:a})},options:r})},t.jpeg_preview_dvr_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/{name}/{from}.jpg",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.jpeg_preview_dvr_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_jpeg_preview_dvr"])}},t.jpeg_preview_ondemand=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_jpeg_preview_ondemand",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.jpeg_preview_ondemand_query)({params:n,config:a})},options:r})},t.jpeg_preview_ondemand_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/{name}/{from}-preview.jpg",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.jpeg_preview_ondemand_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_jpeg_preview_ondemand"])}},t.mp4_preview=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_mp4_preview",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.mp4_preview_query)({params:n,config:a})},options:r})},t.mp4_preview_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/{name}/preview.mp4",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.mp4_preview_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_mp4_preview"])}},t.mp4_dvr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_mp4_dvr",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.mp4_dvr_query)({params:n,config:a})},options:r})},t.mp4_dvr_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/{name}/{from}-preview.mp4",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.mp4_dvr_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_mp4_dvr"])}},t.mp4_vod=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_mp4_vod",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.mp4_vod_query)({params:n,config:a})},options:r})},t.mp4_vod_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/{name}/preview-{from}.mp4",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.mp4_vod_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_mp4_vod"])}},t.media_logo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_media_logo",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.media_logo_query)({params:n,config:a})},options:r})},t.media_logo_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/{name}/logo",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.media_logo_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_media_logo"])}},t.embed_html=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_embed_html",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.embed_html_query)({params:n,config:a})},options:r})},t.embed_html_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/{name}/embed.html",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.embed_html_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_embed_html"])}},t.recording_status=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_recording_status",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.recording_status_query)({params:n,config:a})},options:r})},t.recording_status_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/{name}/recording_status.json",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.recording_status_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_recording_status"])}},t.ranges_list=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_ranges_list",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.ranges_list_query)({params:n,config:a})},options:r})},t.ranges_list_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/{name}/ranges.json",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.ranges_list_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_ranges_list"])}},t.media_info=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_media_info",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.media_info_query)({params:n,config:a})},options:r})},t.media_info_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/{name}/media_info.json",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.media_info_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_media_info"])}},t.public_stream_get=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_public_stream_get",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.public_stream_get_query)({params:n,config:a})},options:r})},t.public_stream_get_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/{name}/info.json",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.public_stream_get_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_public_stream_get"])}},t.session_save=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.options,a=e.isAsync,c=e.mutationFn,l=e.showSuccessMessage,f=void 0===l||l,d=e.showErrorMessage,p=void 0===d||d,h=(0,u.useTranslation)(),v=h.t,g=(0,o.useMutationApi)((function(e){var n=e.params,r=e.body,o=e.config,a=(0,s.getPathWithParams)({path:"/{name}/sessions/{id}",queryAndPathParams:n,encodeParams:(null==o?void 0:o.encodeParams)||!1}),u=a.pathWithParams,l=a.queryParams;return c&&(0,i.isFunction)(c)?c({params:n,body:r,config:o}):t.axiosInstance.put(u,r,Object.assign({params:l},o))}),(function(){return f&&v("session_save.successPutAlert")}),(0,i.isObject)(n)?n:{},p);return a?function(e){var t=e.params,n=e.body,i=e.config,o=r(e,["params","body","config"]);return g.mutateAsync(Object.assign({params:t,body:n,config:i},o))}:function(e){var t=e.params,n=e.body,i=e.config,o=r(e,["params","body","config"]);return g.mutate(Object.assign({params:t,body:n,config:i},o))}},t.request_tracks=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.options,a=e.isAsync,c=e.mutationFn,l=e.showSuccessMessage,f=void 0===l||l,d=e.showErrorMessage,p=void 0===d||d,h=(0,u.useTranslation)(),v=h.t,g=(0,o.useMutationApi)((function(e){var n=e.params,r=e.body,o=e.config,a=(0,s.getPathWithParams)({path:"/{name}/sessions/{id}/request_tracks",queryAndPathParams:n,encodeParams:(null==o?void 0:o.encodeParams)||!1}),u=a.pathWithParams,l=a.queryParams;return c&&(0,i.isFunction)(c)?c({params:n,body:r,config:o}):t.axiosInstance.put(u,r,Object.assign({params:l},o))}),(function(){return f&&v("request_tracks.successPutAlert")}),(0,i.isObject)(n)?n:{},p);return a?function(e){var t=e.params,n=e.body,i=e.config,o=r(e,["params","body","config"]);return g.mutateAsync(Object.assign({params:t,body:n,config:i},o))}:function(e){var t=e.params,n=e.body,i=e.config,o=r(e,["params","body","config"]);return g.mutate(Object.assign({params:t,body:n,config:i},o))}},t.playlist_get=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_playlist_get",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.playlist_get_query)({params:n,config:a})},options:r})},t.playlist_get_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/tv/playlists/{name}",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.playlist_get_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_playlist_get"])}},t.streams_list=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.options,a=e.config,s=e.queryFn;return(0,o.useApi)({queryKey:["streaming_streams_list",n],queryFn:function(){return s&&(0,i.isFunction)(s)?s():(0,t.streams_list_query)({params:n,config:a})},options:r})},t.streams_list_query=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params,r=e.config,i=(0,s.getPathWithParams)({path:"/-/streams",queryAndPathParams:n,encodeParams:(null==r?void 0:r.encodeParams)||!1}),o=i.pathWithParams,a=i.queryParams;return t.axiosInstance.get(o,Object.assign({params:a},r))},t.streams_list_refetch=function(){var e=(0,c.useQueryClient)();return function(){return e.refetchQueries(["streaming_streams_list"])}}},function(e,t,n){"use strict";var r=n(59);function i(e,t,n,r,i){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}r.inherits(i,Error,{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,status:this.response&&this.response.status?this.response.status:null}}});var o=i.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){a[e]={value:e}})),Object.defineProperties(i,a),Object.defineProperty(o,"isAxiosError",{value:!0}),i.from=function(e,t,n,a,s,u){var c=Object.create(o);return r.toFlatObject(e,c,(function(e){return e!==Error.prototype})),i.call(c,e.message,t,n,a,s),c.name=e.name,u&&Object.assign(c,u),c},e.exports=i},function(e,t,n){"use strict";var r=n(5);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict";var r=n(48),i=n(92),o=n(25),a=function(e){return function(t,n,a){var s=r(t),u=o(s);if(0===u)return!e&&-1;var c,l=i(a,u);if(e&&n!=n){for(;u>l;)if((c=s[l++])!=c)return!0}else for(;u>l;l++)if((e||l in s)&&s[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,n){"use strict";var r=n(5),i=n(19),o=/#|\.prototype\./,a=function(e,t){var n=u[s(e)];return n===l||n!==c&&(i(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},u=a.data={},c=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a},function(e,t,n){"use strict";var r=n(470);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},function(e,t,n){"use strict";var r=n(5),i=n(13),o=n(98),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,n){"use strict";var r=n(36),i=n(77),o=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=i(t);if(t!==n)throw new o("Wrong length or index");return n}},function(e,t,n){"use strict";var r=n(10),i=n(143),o=n(19),a=n(155),s=n(180),u=n(13),c=n(323),l=n(248),f=n(23),d=n(98),p=i&&i.prototype,h=u("species"),v=!1,g=o(r.PromiseRejectionEvent),m=a("Promise",(function(){var e=s(i),t=e!==String(i);if(!t&&66===d)return!0;if(f&&(!p.catch||!p.finally))return!0;if(!d||d<51||!/native code/.test(e)){var n=new i((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};if((n.constructor={})[h]=r,!(v=n.then((function(){}))instanceof r))return!0}return!t&&(c||l)&&!g}));e.exports={CONSTRUCTOR:m,REJECTION_EVENT:g,SUBCLASSING:v}},function(e,t,n){"use strict";var r=n(9),i=n(21),o=n(61),a=n(253),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||i(e,"flags")||!o(s,e)?t:r(a,e)}},function(e,t,n){"use strict";var r=n(183),i=n(58);e.exports=r(i.proto,"size","get")||function(e){return e.size}},function(e,t,n){"use strict";var r=n(9),i=n(8),o=n(19),a=n(60),s=n(256),u=TypeError;e.exports=function(e,t){var n=e.exec;if(o(n)){var c=r(n,e,t);return null!==c&&i(c),c}if("RegExp"===a(e))return r(s,e,t);throw new u("RegExp#exec called on incompatible receiver")}},function(e,t,n){"use strict";var r=n(36),i=RangeError;e.exports=function(e){var t=r(e);if(t<0)throw new i("The argument can't be less than 0");return t}},function(e,t,n){"use strict";var r=n(22),i=n(140),o=r.aTypedArrayConstructor,a=r.getTypedArrayConstructor;e.exports=function(e){return o(i(e,a(e)))}},function(e,t,n){"use strict";var r,i,o=n(10),a=n(177),s=n(19),u=n(45),c=n(51),l=n(28),f=n(13),d=n(23),p=f("asyncIterator"),h=o.AsyncIterator,v=a.AsyncIteratorPrototype;if(v)r=v;else if(s(h))r=h.prototype;else if(a.USE_FUNCTION_CONSTRUCTOR||o.USE_FUNCTION_CONSTRUCTOR)try{i=c(c(c(Function("return async function*(){}()")()))),c(i)===Object.prototype&&(r=i)}catch(e){}r?d&&(r=u(r)):r={},s(r[p])||l(r,p,(function(){return this})),e.exports=r},function(e,t,n){"use strict";var r=n(9),i=n(16),o=n(44);e.exports=function(e,t,n,a){try{var s=o(e,"return");if(s)return i("Promise").resolve(r(s,e)).then((function(){t(n)}),(function(e){a(e)}))}catch(e){return a(e)}t(n)}},function(e,t,n){"use strict";var r=n(4),i=WeakSet.prototype;e.exports={WeakSet:WeakSet,add:r(i.add),has:r(i.has),remove:r(i.delete)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return u}));var r=n(0),i=n.n(r);function o(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var a=i.a.createContext(o()),s=function(){return i.a.useContext(a)},u=function(e){var t=e.children,n=i.a.useMemo((function(){return o()}),[]);return i.a.createElement(a.Provider,{value:n},"function"==typeof t?t(n):t)}},function(e,t,n){"use strict";function r(e){return null!=e&&"object"==I(e)&&!0===e["@@functional/placeholder"]}function i(e){return function t(n){return 0===arguments.length||r(n)?t:e.apply(this,arguments)}}function o(e){return function t(n,o){switch(arguments.length){case 0:return t;case 1:return r(n)?t:i((function(t){return e(n,t)}));default:return r(n)&&r(o)?t:r(n)?i((function(t){return e(t,o)})):r(o)?i((function(t){return e(n,t)})):e(n,o)}}}function a(e,t,n){for(var r=0,i=n.length;r<i;)t=e(t,n[r]),r+=1;return t}n.r(t),n.d(t,"isUndefined",(function(){return he})),n.d(t,"isNumber",(function(){return we})),n.d(t,"isFunction",(function(){return _e})),n.d(t,"isNotNil",(function(){return ve})),n.d(t,"isNotEmpty",(function(){return ge})),n.d(t,"isNotNilOrEmpty",(function(){return me})),n.d(t,"isObject",(function(){return xe})),n.d(t,"isNilOrEmpty",(function(){return ye}));var s=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function u(e){return"[object String]"===Object.prototype.toString.call(e)}var c=i((function(e){return!!s(e)||!!e&&"object"==I(e)&&!u(e)&&(0===e.length||e.length>0&&e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1))})),l="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function f(e,t,n){return function(r,i,o){if(c(o))return e(r,i,o);if(null==o)return i;if("function"==typeof o["fantasy-land/reduce"])return t(r,i,o,"fantasy-land/reduce");if(null!=o[l])return n(r,i,o[l]());if("function"==typeof o.next)return n(r,i,o);if("function"==typeof o.reduce)return t(r,i,o,"reduce");throw new TypeError("reduce: list must be array or iterable")}}var d=f(a,(function(e,t,n,r){return n[r](e,t)}),(function(e,t,n){for(var r=n.next();!r.done;)t=e(t,r.value),r=n.next();return t}));function p(e){return null!=e&&"function"==typeof e["@@transducer/step"]}function h(e,t,n){return function(){if(0===arguments.length)return n();var r=arguments[arguments.length-1];if(!s(r)){for(var i=0;i<e.length;){if("function"==typeof r[e[i]])return r[e[i]].apply(r,Array.prototype.slice.call(arguments,0,-1));i+=1}if(p(r)){var o=t.apply(null,Array.prototype.slice.call(arguments,0,-1));return o(r)}}return n.apply(this,arguments)}}function v(e,t){for(var n=0,r=t.length,i=Array(r);n<r;)i[n]=e(t[n]),n+=1;return i}var g=function(){return this.xf["@@transducer/init"]()},m=function(e){return this.xf["@@transducer/result"](e)},y=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=g,e.prototype["@@transducer/result"]=m,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();function b(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,u){return t.apply(this,arguments)};case 9:return function(e,n,r,i,o,a,s,u,c){return t.apply(this,arguments)};case 10:return function(e,n,r,i,o,a,s,u,c,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}var x=o((function(e,t){return 1===e?i(t):b(e,function e(t,n,i){return function(){for(var o=[],a=0,s=t,u=0,c=!1;u<n.length||a<arguments.length;){var l;u<n.length&&(!r(n[u])||a>=arguments.length)?l=n[u]:(l=arguments[a],a+=1),o[u]=l,r(l)?c=!0:s-=1,u+=1}return!c&&s<=0?i.apply(this,o):b(Math.max(0,s),e(t,o,i))}}(e,[],t))}));function w(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var _=Object.prototype.toString,S=function(){return"[object Arguments]"===_.call(arguments)?function(e){return"[object Arguments]"===_.call(e)}:function(e){return w("callee",e)}}(),O=!{toString:null}.propertyIsEnumerable("toString"),k=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],E=function(){return arguments.propertyIsEnumerable("length")}(),j=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},T="function"!=typeof Object.keys||E?i((function(e){if(Object(e)!==e)return[];var t,n,r=[],i=E&&S(e);for(t in e)!w(t,e)||i&&"length"===t||(r[r.length]=t);if(O)for(n=k.length-1;n>=0;)w(t=k[n],e)&&!j(r,t)&&(r[r.length]=t),n-=1;return r})):i((function(e){return Object(e)!==e?[]:Object.keys(e)})),C=o(h(["fantasy-land/map","map"],(function(e){return function(t){return new y(e,t)}}),(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return x(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}),{},T(t));default:return v(e,t)}}))),A=o((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))}:d((function(e,n){return 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}(e,C(n,t))}),[],e)})),P=o((function(e,t){var n=x(e,t);return x(e,(function(){return a(A,C(n,arguments[0]),Array.prototype.slice.call(arguments,1))}))})),M=i((function(e){return P(e.length,e)}))(i((function(e){return!e}))),R=i((function(e){return null==e}));function D(e){return"[object Object]"===Object.prototype.toString.call(e)}var L=i((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():s(e)?[]:u(e)?"":D(e)?{}:S(e)?function(){return arguments}():(t=e,"[object Uint8ClampedArray]"===(n=Object.prototype.toString.call(t))||"[object Int8Array]"===n||"[object Uint8Array]"===n||"[object Int16Array]"===n||"[object Uint16Array]"===n||"[object Int32Array]"===n||"[object Uint32Array]"===n||"[object Float32Array]"===n||"[object Float64Array]"===n||"[object BigInt64Array]"===n||"[object BigUint64Array]"===n?e.constructor.from(""):void 0);var t,n}));function N(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function F(e,t,n){for(var r=0,i=n.length;r<i;){if(e(t,n[r]))return!0;r+=1}return!1}var B="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},U=i((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function z(e,t,n,r){var i=N(e);function o(e,t){return V(e,t,n.slice(),r.slice())}return!F((function(e,t){return!F(o,t,e)}),N(t),i)}function V(e,t,n,r){if(B(e,t))return!0;var i,o,a=U(e);if(a!==U(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(a){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(i=e.constructor,null==(o=String(i).match(/^function (\w*)/))?"":o[1]))return e===t;break;case"Boolean":case"Number":case"String":if(I(e)!=I(t)||!B(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!B(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 s=n.length-1;s>=0;){if(n[s]===e)return r[s]===t;s-=1}switch(a){case"Map":return e.size===t.size&&z(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&z(e.values(),t.values(),n.concat([e]),r.concat([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 u=T(e);if(u.length!==T(t).length)return!1;var c=n.concat([e]),l=r.concat([t]);for(s=u.length-1;s>=0;){var f=u[s];if(!w(f,t)||!V(t[f],e[f],c,l))return!1;s-=1}return!0}var H=o((function(e,t){return V(e,t,[],[])})),W=i((function(e){return null!=e&&H(e,L(e))}));function q(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,'\\"')+'"'}var G=function(e){return(e<10?"0":"")+e},Y="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+G(e.getUTCMonth()+1)+"-"+G(e.getUTCDate())+"T"+G(e.getUTCHours())+":"+G(e.getUTCMinutes())+":"+G(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"},K=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=g,e.prototype["@@transducer/result"]=m,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}(),$=o(h(["fantasy-land/filter","filter"],(function(e){return function(t){return new K(e,t)}}),(function(e,t){return D(t)?a((function(n,r){return e(t[r])&&(n[r]=t[r]),n}),{},T(t)):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}(e,t)}))),X=o((function(e,t){return $((n=e,function(){return!n.apply(this,arguments)}),t);var n})),Q=i((function(e){return function e(t,n){var r=function(r){var i=n.concat([t]);return function(e,t){return function(e,t,n){var r,i;if("function"==typeof e.indexOf)switch(I(t)){case"number":if(0===t){for(r=1/t;n<e.length;){if(0===(i=e[n])&&1/i===r)return n;n+=1}return-1}if(t!=t){for(;n<e.length;){if("number"==typeof(i=e[n])&&i!=i)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(H(e[n],t))return n;n+=1}return-1}(t,e,0)>=0}(r,i)?"<Circular>":e(r,i)},i=function(e,t){return v((function(t){return q(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+v(r,t).join(", ")+"))";case"[object Array]":return"["+v(r,t).concat(i(t,X((function(e){return/^\d+$/.test(e)}),T(t)))).join(", ")+"]";case"[object Boolean]":return"object"==I(t)?"new Boolean("+r(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?r(NaN):q(Y(t)))+")";case"[object Map]":return"new Map("+r(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return"object"==I(t)?"new Number("+r(t.valueOf())+")":1/t==-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+r(Array.from(t).sort())+")";case"[object String]":return"object"==I(t)?"new String("+r(t.valueOf())+")":q(t);case"[object Undefined]":return"undefined";default:if("function"==typeof t.toString){var o=t.toString();if("[object Object]"!==o)return o}return"{"+i(t,T(t)).join(", ")+"}"}}(e,[])})),Z=o((function(e,t){if(e===t)return t;function n(e,t){if(e>t!=t>e)return t>e?t:e}var r=n(e,t);if(void 0!==r)return r;var i=n(I(e),I(t));if(void 0!==i)return i===I(e)?e:t;var o=Q(e),a=n(o,Q(t));return void 0!==a&&a===o?e:t})),J=Number.isInteger||function(e){return e<<0===e},ee=o((function(e,t){var n=e<0?t.length+e:e;return u(t)?t.charAt(n):t[n]})),te=o((function(e,t){if(null!=t)return J(e)?ee(e,t):t[e]})),ne=o((function(e,t){return C(te(e),t)}));function re(e){return function t(n,a,s){switch(arguments.length){case 0:return t;case 1:return r(n)?t:o((function(t,r){return e(n,t,r)}));case 2:return r(n)&&r(a)?t:r(n)?o((function(t,n){return e(t,a,n)})):r(a)?o((function(t,r){return e(n,t,r)})):i((function(t){return e(n,a,t)}));default:return r(n)&&r(a)&&r(s)?t:r(n)&&r(a)?o((function(t,n){return e(t,n,s)})):r(n)&&r(s)?o((function(t,n){return e(t,a,n)})):r(a)&&r(s)?o((function(t,r){return e(n,t,r)})):r(n)?i((function(t){return e(t,a,s)})):r(a)?i((function(t){return e(n,t,s)})):r(s)?i((function(t){return e(n,a,t)})):e(n,a,s)}}}var ie=o((function(e,t){return b(e.length,(function(){return e.apply(t,arguments)}))})),oe=f((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)}),(function(e,t,n,r){return e["@@transducer/result"](n[r](ie(e["@@transducer/step"],e),t))}),(function(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)})),ae=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}(),se=re((function(e,t,n){return oe("function"==typeof e?new ae(e):e,t,n)})),ue=i((function(e){return x(se(Z,0,ne("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 ce(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function le(e,t){return function(){var n=arguments.length;if(0===n)return t();var r=arguments[n-1];return s(r)||"function"!=typeof r[e]?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}var fe=i(le("tail",re(le("slice",(function(e,t,n){return Array.prototype.slice.call(n,e,t)})))(1,1/0)));function de(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return b(arguments[0].length,se(ce,arguments[0],fe(arguments)))}var pe=i((function(e){return u(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()})),he=function(e){return void 0===e},ve=M(R),ge=M(W),me=ue([ve,ge]),ye=M(me),be=function(e){return function(){if(0===arguments.length)throw new Error("compose requires at least one argument");return de.apply(this,pe(arguments))}(H(e),U)},xe=be("Object"),we=be("Number"),_e=be("Function")},function(e,t){function n(){return e.exports=n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,n.apply(null,arguments)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(1019).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},function(e,t,n){"use strict";(function(e,r){n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a}));var i=n(457);function o(){return!Object(i.a)()&&"[object process]"===Object.prototype.toString.call(void 0!==e?e:0)}function a(e,t){return e.require(t)}}).call(this,n(210),n(435)(e))},,,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){"use strict";var r=n(9),i=n(15),o=n(105),a=n(44),s=n(278),u=n(13),c=TypeError,l=u("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var n,u=a(e,l);if(u){if(void 0===t&&(t="default"),n=r(u,e,t),!i(n)||o(n))return n;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},function(e,t,n){"use strict";var r=n(23),i=n(10),o=n(226),a=e.exports=i["__core-js_shared__"]||o("__core-js_shared__",{});(a.versions||(a.versions=[])).push({version:"3.37.1",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},function(e,t,n){"use strict";var r=n(10),i=n(15),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},function(e,t,n){"use strict";var r=n(4),i=n(5),o=n(19),a=n(21),s=n(12),u=n(134).CONFIGURABLE,c=n(180),l=n(27),f=l.enforce,d=l.get,p=String,h=Object.defineProperty,v=r("".slice),g=r("".replace),m=r([].join),y=s&&!i((function(){return 8!==h((function(){}),"length",{value:8}).length})),b=String(String).split("String"),x=e.exports=function(e,t,n){"Symbol("===v(p(t),0,7)&&(t="["+g(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||u&&e.name!==t)&&(s?h(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&a(n,"arity")&&e.length!==n.arity&&h(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=f(e);return a(r,"source")||(r.source=m(b,"string"==typeof t?t:"")),e};Function.prototype.toString=x((function(){return o(this)&&d(this).source||c(this)}),"toString")},function(e,t,n){"use strict";var r=n(4),i=n(19),o=n(177),a=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},function(e,t,n){"use strict";var r=n(106),i=n(117),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},function(e,t,n){"use strict";t.f=Object.getOwnPropertySymbols},function(e,t,n){"use strict";var r=n(4),i=n(17);e.exports=function(e,t,n){try{return r(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},function(e,t,n){"use strict";var r=n(116),i=TypeError;e.exports=function(e,t){if(!delete e[t])throw new i("Cannot delete property "+r(t)+" of "+r(e))}},function(e,t,n){"use strict";var r=n(30),i=n(104),o=n(24),a=n(25),s=function(e){var t=1===e;return function(n,s,u){for(var c,l=o(n),f=i(l),d=a(f),p=r(s,u);d-- >0;)if(p(c=f[d],d,l))switch(e){case 0:return c;case 1:return d}return t?-1:void 0}};e.exports={findLast:s(0),findLastIndex:s(1)}},function(e,t,n){"use strict";var r=n(13)("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){try{if(!t&&!i)return!1}catch(e){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){"use strict";var r=n(48),i=n(43),o=n(138),a=n(27),s=n(33).f,u=n(239),c=n(57),l=n(23),f=n(12),d=a.set,p=a.getterFor("Array Iterator");e.exports=u(Array,"Array",(function(e,t){d(this,{type:"Array Iterator",target:r(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,c(void 0,!0);switch(e.kind){case"keys":return c(n,!1);case"values":return c(t[n],!1)}return c([n,t[n]],!1)}),"values");var h=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!l&&f&&"values"!==h.name)try{s(h,"name",{value:"values"})}catch(e){}},function(e,t,n){"use strict";var r=n(17),i=n(24),o=n(104),a=n(25),s=TypeError,u="Reduce of empty array with no initial value",c=function(e){return function(t,n,c,l){var f=i(t),d=o(f),p=a(f);if(r(n),0===p&&c<2)throw new s(u);var h=e?p-1:0,v=e?-1:1;if(c<2)for(;;){if(h in d){l=d[h],h+=v;break}if(h+=v,e?h<0:p<=h)throw new s(u)}for(;e?h>=0:p>h;h+=v)h in d&&(l=n(l,d[h],h,f));return l}};e.exports={left:c(!1),right:c(!0)}},function(e,t,n){"use strict";var r=n(10),i=n(4),o=n(12),a=n(243),s=n(134),u=n(50),c=n(37),l=n(88),f=n(5),d=n(67),p=n(36),h=n(77),v=n(158),g=n(244),m=n(246),y=n(51),b=n(85),x=n(237),w=n(79),_=n(120),S=n(135),O=n(72),k=n(27),E=s.PROPER,j=s.CONFIGURABLE,T=k.getterFor("ArrayBuffer"),C=k.getterFor("DataView"),A=k.set,P=r.ArrayBuffer,M=P,I=M&&M.prototype,R=r.DataView,D=R&&R.prototype,L=Object.prototype,N=r.Array,F=r.RangeError,B=i(x),U=i([].reverse),z=m.pack,V=m.unpack,H=function(e){return[255&e]},W=function(e){return[255&e,e>>8&255]},q=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},G=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},Y=function(e){return z(g(e),23,4)},K=function(e){return z(e,52,8)},$=function(e,t,n){c(e.prototype,t,{configurable:!0,get:function(){return n(this)[t]}})},X=function(e,t,n,r){var i=C(e),o=v(n),a=!!r;if(o+t>i.byteLength)throw new F("Wrong index");var s=i.bytes,u=o+i.byteOffset,c=w(s,u,u+t);return a?c:U(c)},Q=function(e,t,n,r,i,o){var a=C(e),s=v(n),u=r(+i),c=!!o;if(s+t>a.byteLength)throw new F("Wrong index");for(var l=a.bytes,f=s+a.byteOffset,d=0;d<t;d++)l[f+d]=u[c?d:t-d-1]};if(a){var Z=E&&"ArrayBuffer"!==P.name;f((function(){P(1)}))&&f((function(){new P(-1)}))&&!f((function(){return new P,new P(1.5),new P(NaN),1!==P.length||Z&&!j}))?Z&&j&&u(P,"name","ArrayBuffer"):((M=function(e){return d(this,I),_(new P(v(e)),this,M)}).prototype=I,I.constructor=M,S(M,P)),b&&y(D)!==L&&b(D,L);var J=new R(new M(2)),ee=i(D.setInt8);J.setInt8(0,2147483648),J.setInt8(1,2147483649),!J.getInt8(0)&&J.getInt8(1)||l(D,{setInt8:function(e,t){ee(this,e,t<<24>>24)},setUint8:function(e,t){ee(this,e,t<<24>>24)}},{unsafe:!0})}else I=(M=function(e){d(this,I);var t=v(e);A(this,{type:"ArrayBuffer",bytes:B(N(t),0),byteLength:t}),o||(this.byteLength=t,this.detached=!1)}).prototype,D=(R=function(e,t,n){d(this,D),d(e,I);var r=T(e),i=r.byteLength,a=p(t);if(a<0||a>i)throw new F("Wrong offset");if(a+(n=void 0===n?i-a:h(n))>i)throw new F("Wrong length");A(this,{type:"DataView",buffer:e,byteLength:n,byteOffset:a,bytes:r.bytes}),o||(this.buffer=e,this.byteLength=n,this.byteOffset=a)}).prototype,o&&($(M,"byteLength",T),$(R,"buffer",C),$(R,"byteLength",C),$(R,"byteOffset",C)),l(D,{getInt8:function(e){return X(this,1,e)[0]<<24>>24},getUint8:function(e){return X(this,1,e)[0]},getInt16:function(e){var t=X(this,2,e,arguments.length>1&&arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=X(this,2,e,arguments.length>1&&arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return G(X(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return G(X(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return V(X(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return V(X(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){Q(this,1,e,H,t)},setUint8:function(e,t){Q(this,1,e,H,t)},setInt16:function(e,t){Q(this,2,e,W,t,arguments.length>2&&arguments[2])},setUint16:function(e,t){Q(this,2,e,W,t,arguments.length>2&&arguments[2])},setInt32:function(e,t){Q(this,4,e,q,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){Q(this,4,e,q,t,arguments.length>2&&arguments[2])},setFloat32:function(e,t){Q(this,4,e,Y,t,arguments.length>2&&arguments[2])},setFloat64:function(e,t){Q(this,8,e,K,t,arguments.length>2&&arguments[2])}});O(M,"ArrayBuffer"),O(R,"DataView"),e.exports={ArrayBuffer:M,DataView:R}},function(e,t,n){"use strict";var r=n(94),i=n(116),o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a constructor")}},function(e,t,n){"use strict";var r=n(4),i=n(77),o=n(18),a=n(192),s=n(34),u=r(a),c=r("".slice),l=Math.ceil,f=function(e){return function(t,n,r){var a,f,d=o(s(t)),p=i(n),h=d.length,v=void 0===r?" ":o(r);return p<=h||""===v?d:((f=u(v,l((a=p-h)/v.length))).length>a&&(f=c(f,0,a)),e?d+f:f+d)}};e.exports={start:f(!1),end:f(!0)}},function(e,t,n){"use strict";var r=n(36),i=n(18),o=n(34),a=RangeError;e.exports=function(e){var t=i(o(this)),n="",s=r(e);if(s<0||s===1/0)throw new a("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(t+=t))1&s&&(n+=t);return n}},function(e,t,n){"use strict";var r=n(2),i=n(10),o=n(4),a=n(155),s=n(28),u=n(125),c=n(42),l=n(67),f=n(19),d=n(49),p=n(15),h=n(5),v=n(186),g=n(72),m=n(120);e.exports=function(e,t,n){var y=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),x=y?"set":"add",w=i[e],_=w&&w.prototype,S=w,O={},k=function(e){var t=o(_[e]);s(_,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(b&&!p(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return b&&!p(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(b&&!p(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(a(e,!f(w)||!(b||_.forEach&&!h((function(){(new w).entries().next()})))))S=n.getConstructor(t,e,y,x),u.enable();else if(a(e,!0)){var E=new S,j=E[x](b?{}:-0,1)!==E,T=h((function(){E.has(1)})),C=v((function(e){new w(e)})),A=!b&&h((function(){for(var e=new w,t=5;t--;)e[x](t,t);return!e.has(-0)}));C||((S=t((function(e,t){l(e,_);var n=m(new w,e,S);return d(t)||c(t,n[x],{that:n,AS_ENTRIES:y}),n}))).prototype=_,_.constructor=S),(T||A)&&(k("delete"),k("has"),y&&k("get")),(A||j)&&k(x),b&&_.clear&&delete _.clear}return O[e]=S,r({global:!0,constructor:!0,forced:S!==w},O),g(S,e),b||n.setStrong(S,e,y),S}},function(e,t,n){"use strict";var r=Math.expm1,i=Math.exp;e.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||-2e-17!==r(-2e-17)?function(e){var t=+e;return 0===t?t:t>-1e-6&&t<1e-6?t+t*t/2:i(t)-1}:r},function(e,t,n){"use strict";var r=n(4);e.exports=r(1..valueOf)},function(e,t,n){"use strict";var r=n(23),i=n(10),o=n(5),a=n(242);e.exports=r||!o((function(){if(!(a&&a<535)){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete i[e]}}))},function(e,t,n){"use strict";var r,i,o,a,s=n(10),u=n(66),c=n(30),l=n(19),f=n(21),d=n(5),p=n(284),h=n(79),v=n(178),g=n(84),m=n(339),y=n(109),b=s.setImmediate,x=s.clearImmediate,w=s.process,_=s.Dispatch,S=s.Function,O=s.MessageChannel,k=s.String,E=0,j={};d((function(){r=s.location}));var T=function(e){if(f(j,e)){var t=j[e];delete j[e],t()}},C=function(e){return function(){T(e)}},A=function(e){T(e.data)},P=function(e){s.postMessage(k(e),r.protocol+"//"+r.host)};b&&x||(b=function(e){g(arguments.length,1);var t=l(e)?e:S(e),n=h(arguments,1);return j[++E]=function(){u(t,void 0,n)},i(E),E},x=function(e){delete j[e]},y?i=function(e){w.nextTick(C(e))}:_&&_.now?i=function(e){_.now(C(e))}:O&&!m?(a=(o=new O).port2,o.port1.onmessage=A,i=c(a.postMessage,a)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!d(P)?(i=P,s.addEventListener("message",A,!1)):i="onreadystatechange"in v("script")?function(e){p.appendChild(v("script")).onreadystatechange=function(){p.removeChild(this),T(e)}}:function(e){setTimeout(C(e),0)}),e.exports={set:b,clear:x}},function(e,t,n){"use strict";var r=n(143),i=n(186),o=n(159).CONSTRUCTOR;e.exports=o||!i((function(e){r.all(e).then(void 0,(function(){}))}))},function(e,t,n){"use strict";var r=n(15),i=n(60),o=n(13)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"===i(e))}},function(e,t,n){"use strict";var r=n(5),i=n(10).RegExp,o=r((function(){var e=i("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),a=o||r((function(){return!i("a","y").sticky})),s=o||r((function(){var e=i("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:o}},function(e,t,n){"use strict";n(255);var r=n(9),i=n(28),o=n(256),a=n(5),s=n(13),u=n(50),c=s("species"),l=RegExp.prototype;e.exports=function(e,t,n,f){var d=s(e),p=!a((function(){var t={};return t[d]=function(){return 7},7!==""[e](t)})),h=p&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[d]=/./[d]),n.exec=function(){return t=!0,null},n[d](""),!t}));if(!p||!h||n){var v=/./[d],g=t(d,""[e],(function(e,t,n,i,a){var s=t.exec;return s===o||s===l.exec?p&&!a?{done:!0,value:r(v,t,n,i)}:{done:!0,value:r(e,n,t,i)}:{done:!1}}));i(String.prototype,e,g[0]),i(l,d,g[1])}f&&u(l[d],"sham",!0)}},function(e,t,n){"use strict";var r=n(144).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){"use strict";var r=n(176),i=TypeError;e.exports=function(e){var t=r(e,"number");if("number"==typeof t)throw new i("Can't convert number to bigint");return BigInt(t)}},function(e,t,n){"use strict";var r=n(9),i=n(8),o=n(45),a=n(44),s=n(88),u=n(27),c=n(16),l=n(165),f=n(57),d=c("Promise"),p=u.set,h=u.getterFor("AsyncFromSyncIterator"),v=function(e,t,n){var r=e.done;d.resolve(e.value).then((function(e){t(f(e,r))}),n)},g=function(e){e.type="AsyncFromSyncIterator",p(this,e)};g.prototype=s(o(l),{next:function(){var e=h(this);return new d((function(t,n){var o=i(r(e.next,e.iterator));v(o,t,n)}))},return:function(){var e=h(this).iterator;return new d((function(t,n){var o=a(e,"return");if(void 0===o)return t(f(void 0,!0));var s=i(r(o,e));v(s,t,n)}))}}),e.exports=g},function(e,t,n){"use strict";var r=RangeError;e.exports=function(e){if(e==e)return e;throw new r("NaN is not allowed")}},function(e,t,n){"use strict";var r=n(30),i=n(8),o=n(24),a=n(42);e.exports=function(e,t,n){return function(s){var u=o(s),c=arguments.length,l=c>1?arguments[1]:void 0,f=void 0!==l,d=f?r(l,c>2?arguments[2]:void 0):void 0,p=new e,h=0;return a(u,(function(e){var r=f?d(e,h++):e;n?t(p,i(r)[0],r[1]):t(p,r)})),p}}},function(e,t,n){"use strict";var r=n(8);e.exports=function(e,t,n){return function(){for(var i=new e,o=arguments.length,a=0;a<o;a++){var s=arguments[a];n?t(i,r(s)[0],s[1]):t(i,s)}return i}}},function(e,t,n){"use strict";var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=r+"+/",o=r+"-_",a=function(e){for(var t={},n=0;n<64;n++)t[e.charAt(n)]=n;return t};e.exports={i2c:i,c2i:a(i),i2cUrl:o,c2iUrl:a(o)}},function(e,t,n){"use strict";var r=n(5),i=n(13),o=n(12),a=n(23),s=i("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+e})),n.delete("a",2),n.delete("b",void 0),a&&(!e.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!t.size&&(a||!o)||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[s]||"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"!==r||"x"!==new URL("http://x",void 0).host}))},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 u,c=[],l=!1,f=-1;function d(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&p())}function p(){if(!l){var e=s(d);l=!0;for(var t=c.length;t;){for(u=c,c=[];++f<t;)u&&u[f].run();f=-1,t=c.length}u=null,l=!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 v(){}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||l||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=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,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){e.exports=n(963)},function(e,t,n){"use strict";var r=n(151);function i(e){r.call(this,null==e?"canceled":e,r.ERR_CANCELED),this.name="CanceledError"}n(59).inherits(i,r,{__CANCEL__:!0}),e.exports=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(65),i=n(20),o=n(219),a=n(7),s=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.mutations=[],n.mutationId=0,n}Object(r.a)(t,e);var n=t.prototype;return n.build=function(e,t,n){var r=new o.a({mutationCache:this,mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0,meta:t.meta});return this.add(r),r},n.add=function(e){this.mutations.push(e),this.notify(e)},n.remove=function(e){this.mutations=this.mutations.filter((function(t){return t!==e})),e.cancel(),this.notify(e)},n.clear=function(){var e=this;i.a.batch((function(){e.mutations.forEach((function(t){e.remove(t)}))}))},n.getAll=function(){return this.mutations},n.find=function(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find((function(t){return Object(a.j)(e,t)}))},n.findAll=function(e){return this.mutations.filter((function(t){return Object(a.j)(e,t)}))},n.notify=function(e){var t=this;i.a.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var e=this.mutations.filter((function(e){return e.state.isPaused}));return i.a.batch((function(){return e.reduce((function(e,t){return e.then((function(){return t.continue().catch(a.l)}))}),Promise.resolve())}))},t}(n(74).a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(65),i=n(7),o=n(20),a=n(130),s=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.queries=[],r.result=[],r.observers=[],r.observersMap={},n&&r.setQueries(n),r}Object(r.a)(t,e);var n=t.prototype;return n.onSubscribe=function(){var e=this;1===this.listeners.length&&this.observers.forEach((function(t){t.subscribe((function(n){e.onUpdate(t,n)}))}))},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.destroy=function(){this.listeners=[],this.observers.forEach((function(e){e.destroy()}))},n.setQueries=function(e,t){this.queries=e,this.updateObservers(t)},n.getCurrentResult=function(){return this.result},n.getOptimisticResult=function(e){return this.findMatchingObservers(e).map((function(e){return e.observer.getOptimisticResult(e.defaultedQueryOptions)}))},n.findMatchingObservers=function(e){var t=this,n=this.observers,r=e.map((function(e){return t.client.defaultQueryObserverOptions(e)})),i=r.flatMap((function(e){var t=n.find((function(t){return t.options.queryHash===e.queryHash}));return null!=t?[{defaultedQueryOptions:e,observer:t}]:[]})),o=i.map((function(e){return e.defaultedQueryOptions.queryHash})),a=r.filter((function(e){return!o.includes(e.queryHash)})),s=n.filter((function(e){return!i.some((function(t){return t.observer===e}))})),u=a.map((function(e,n){if(e.keepPreviousData){var r=s[n];if(void 0!==r)return{defaultedQueryOptions:e,observer:r}}return{defaultedQueryOptions:e,observer:t.getObserver(e)}}));return i.concat(u).sort((function(e,t){return r.indexOf(e.defaultedQueryOptions)-r.indexOf(t.defaultedQueryOptions)}))},n.getObserver=function(e){var t=this.client.defaultQueryObserverOptions(e),n=this.observersMap[t.queryHash];return null!=n?n:new a.a(this.client,t)},n.updateObservers=function(e){var t=this;o.a.batch((function(){var n=t.observers,r=t.findMatchingObservers(t.queries);r.forEach((function(t){return t.observer.setOptions(t.defaultedQueryOptions,e)}));var o=r.map((function(e){return e.observer})),a=Object.fromEntries(o.map((function(e){return[e.options.queryHash,e]}))),s=o.map((function(e){return e.getCurrentResult()})),u=o.some((function(e,t){return e!==n[t]}));(n.length!==o.length||u)&&(t.observers=o,t.observersMap=a,t.result=s,t.hasListeners()&&(Object(i.a)(n,o).forEach((function(e){e.destroy()})),Object(i.a)(o,n).forEach((function(e){e.subscribe((function(n){t.onUpdate(e,n)}))})),t.notify()))}))},n.onUpdate=function(e,t){var n=this.observers.indexOf(e);-1!==n&&(this.result=Object(i.r)(this.result,n,t),this.notify())},n.notify=function(){var e=this;o.a.batch((function(){e.listeners.forEach((function(t){t(e.result)}))}))},t}(n(74).a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(14),i=n(65),o=n(130),a=n(132),s=function(e){function t(t,n){return e.call(this,t,n)||this}Object(i.a)(t,e);var n=t.prototype;return n.bindMethods=function(){e.prototype.bindMethods.call(this),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)},n.setOptions=function(t,n){e.prototype.setOptions.call(this,Object(r.a)({},t,{behavior:Object(a.c)()}),n)},n.getOptimisticResult=function(t){return t.behavior=Object(a.c)(),e.prototype.getOptimisticResult.call(this,t)},n.fetchNextPage=function(e){var t;return this.fetch({cancelRefetch:null==(t=null==e?void 0:e.cancelRefetch)||t,throwOnError:null==e?void 0:e.throwOnError,meta:{fetchMore:{direction:"forward",pageParam:null==e?void 0:e.pageParam}}})},n.fetchPreviousPage=function(e){var t;return this.fetch({cancelRefetch:null==(t=null==e?void 0:e.cancelRefetch)||t,throwOnError:null==e?void 0:e.throwOnError,meta:{fetchMore:{direction:"backward",pageParam:null==e?void 0:e.pageParam}}})},n.createResult=function(t,n){var i,o,s,u,c,l,f=t.state,d=e.prototype.createResult.call(this,t,n);return Object(r.a)({},d,{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Object(a.a)(n,null==(i=f.data)?void 0:i.pages),hasPreviousPage:Object(a.b)(n,null==(o=f.data)?void 0:o.pages),isFetchingNextPage:f.isFetching&&"forward"===(null==(s=f.fetchMeta)||null==(u=s.fetchMore)?void 0:u.direction),isFetchingPreviousPage:f.isFetching&&"backward"===(null==(c=f.fetchMeta)||null==(l=c.fetchMore)?void 0:l.direction)})},t}(o.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(14),i=n(65),o=n(219),a=n(20),s=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.setOptions(n),r.bindMethods(),r.updateResult(),r}Object(i.a)(t,e);var n=t.prototype;return n.bindMethods=function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)},n.setOptions=function(e){this.options=this.client.defaultMutationOptions(e)},n.onUnsubscribe=function(){var e;this.listeners.length||null==(e=this.currentMutation)||e.removeObserver(this)},n.onMutationUpdate=function(e){this.updateResult();var t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)},n.getCurrentResult=function(){return this.currentResult},n.reset=function(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})},n.mutate=function(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,Object(r.a)({},this.options,{variables:void 0!==e?e:this.options.variables})),this.currentMutation.addObserver(this),this.currentMutation.execute()},n.updateResult=function(){var e=this.currentMutation?this.currentMutation.state:Object(o.b)(),t=Object(r.a)({},e,{isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset});this.currentResult=t},n.notify=function(e){var t=this;a.a.batch((function(){t.mutateOptions&&(e.onSuccess?(null==t.mutateOptions.onSuccess||t.mutateOptions.onSuccess(t.currentResult.data,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(t.currentResult.data,null,t.currentResult.variables,t.currentResult.context)):e.onError&&(null==t.mutateOptions.onError||t.mutateOptions.onError(t.currentResult.error,t.currentResult.variables,t.currentResult.context),null==t.mutateOptions.onSettled||t.mutateOptions.onSettled(void 0,t.currentResult.error,t.currentResult.variables,t.currentResult.context))),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)}))}))},t}(n(74).a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var r=n(14);function i(e){return e.state.isPaused}function o(e){return"success"===e.state.status}function a(e,t){var n,r,a=[],s=[];if(!1!==(null==(n=t=t||{})?void 0:n.dehydrateMutations)){var u=t.shouldDehydrateMutation||i;e.getMutationCache().getAll().forEach((function(e){u(e)&&a.push(function(e){return{mutationKey:e.options.mutationKey,state:e.state}}(e))}))}if(!1!==(null==(r=t)?void 0:r.dehydrateQueries)){var c=t.shouldDehydrateQuery||o;e.getQueryCache().getAll().forEach((function(e){c(e)&&s.push(function(e){return{state:e.state,queryKey:e.queryKey,queryHash:e.queryHash}}(e))}))}return{mutations:a,queries:s}}function s(e,t,n){if("object"==I(t)&&null!==t){var i=e.getMutationCache(),o=e.getQueryCache(),a=t.mutations||[],s=t.queries||[];a.forEach((function(t){var o;i.build(e,Object(r.a)({},null==n||null==(o=n.defaultOptions)?void 0:o.mutations,{mutationKey:t.mutationKey}),t.state)})),s.forEach((function(t){var i,a=o.get(t.queryHash);a?a.state.dataUpdatedAt<t.state.dataUpdatedAt&&a.setState(t.state):o.build(e,Object(r.a)({},null==n||null==(i=n.defaultOptions)?void 0:i.queries,{queryKey:t.queryKey,queryHash:t.queryHash}),t.state)}))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(65),i=n(7),o=n(14),a=n(20),s=n(103),u=n(64),c=function(){function e(e){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=e.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(e){var t;this.options=Object(o.a)({},this.defaultOptions,e),this.meta=null==e?void 0:e.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(t=this.options.cacheTime)?t:3e5)},t.setDefaultOptions=function(e){this.defaultOptions=e},t.scheduleGc=function(){var e=this;this.clearGcTimeout(),Object(i.i)(this.cacheTime)&&(this.gcTimeout=setTimeout((function(){e.optionalRemove()}),this.cacheTime))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(e,t){var n,r,o=this.state.data,a=Object(i.c)(e,o);return(null==(n=(r=this.options).isDataEqual)?void 0:n.call(r,o,a))?a=o:!1!==this.options.structuralSharing&&(a=Object(i.s)(o,a)),this.dispatch({data:a,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt}),a},t.setState=function(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})},t.cancel=function(e){var t,n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(i.l).catch(i.l):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some((function(e){return!1!==e.options.enabled}))},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((function(e){return e.getCurrentResult().isStale}))},t.isStaleByTime=function(e){return void 0===e&&(e=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!Object(i.w)(this.state.dataUpdatedAt,e)},t.onFocus=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnWindowFocus()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.onOnline=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnReconnect()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.addObserver=function(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))},t.removeObserver=function(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter((function(t){return t!==e})),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:e}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(e,t){var n,r,o,a=this;if(this.state.isFetching)if(this.state.dataUpdatedAt&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var c;return null==(c=this.retryer)||c.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){var l=this.observers.find((function(e){return e.options.queryFn}));l&&this.setOptions(l.options)}var f=Object(i.b)(this.queryKey),d=Object(i.d)(),p={queryKey:f,pageParam:void 0,meta:this.meta};Object.defineProperty(p,"signal",{enumerable:!0,get:function(){if(d)return a.abortSignalConsumed=!0,d.signal}});var h,v,g={fetchOptions:t,options:this.options,queryKey:f,state:this.state,fetchFn:function(){return a.options.queryFn?(a.abortSignalConsumed=!1,a.options.queryFn(p)):Promise.reject("Missing queryFn")},meta:this.meta};return(null==(n=this.options.behavior)?void 0:n.onFetch)&&(null==(h=this.options.behavior)||h.onFetch(g)),this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(r=g.fetchOptions)?void 0:r.meta)||this.dispatch({type:"fetch",meta:null==(v=g.fetchOptions)?void 0:v.meta}),this.retryer=new u.b({fn:g.fetchFn,abort:null==d||null==(o=d.abort)?void 0:o.bind(d),onSuccess:function(e){a.setData(e),null==a.cache.config.onSuccess||a.cache.config.onSuccess(e,a),0===a.cacheTime&&a.optionalRemove()},onError:function(e){Object(u.d)(e)&&e.silent||a.dispatch({type:"error",error:e}),Object(u.d)(e)||(null==a.cache.config.onError||a.cache.config.onError(e,a),Object(s.a)().error(e)),0===a.cacheTime&&a.optionalRemove()},onFail:function(){a.dispatch({type:"failed"})},onPause:function(){a.dispatch({type:"pause"})},onContinue:function(){a.dispatch({type:"continue"})},retry:g.options.retry,retryDelay:g.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(e){var t=this;this.state=this.reducer(this.state,e),a.a.batch((function(){t.observers.forEach((function(t){t.onQueryUpdate(e)})),t.cache.notify({query:t,type:"queryUpdated",action:e})}))},t.getDefaultState=function(e){var t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==e.initialData?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,r=void 0!==t;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:r?"success":"idle"}},t.reducer=function(e,t){var n,r;switch(t.type){case"failed":return Object(o.a)({},e,{fetchFailureCount:e.fetchFailureCount+1});case"pause":return Object(o.a)({},e,{isPaused:!0});case"continue":return Object(o.a)({},e,{isPaused:!1});case"fetch":return Object(o.a)({},e,{fetchFailureCount:0,fetchMeta:null!=(n=t.meta)?n:null,isFetching:!0,isPaused:!1},!e.dataUpdatedAt&&{error:null,status:"loading"});case"success":return Object(o.a)({},e,{data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(r=t.dataUpdatedAt)?r:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var i=t.error;return Object(u.d)(i)&&i.revert&&this.revertState?Object(o.a)({},this.revertState):Object(o.a)({},e,{error:i,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return Object(o.a)({},e,{isInvalidated:!0});case"setState":return Object(o.a)({},e,t.state);default:return e}},e}(),l=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.queries=[],n.queriesMap={},n}Object(r.a)(t,e);var n=t.prototype;return n.build=function(e,t,n){var r,o=t.queryKey,a=null!=(r=t.queryHash)?r:Object(i.f)(o,t),s=this.get(a);return s||(s=new c({cache:this,queryKey:o,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o),meta:t.meta}),this.add(s)),s},n.add=function(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"queryAdded",query:e}))},n.remove=function(e){var t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((function(t){return t!==e})),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"queryRemoved",query:e}))},n.clear=function(){var e=this;a.a.batch((function(){e.queries.forEach((function(t){e.remove(t)}))}))},n.get=function(e){return this.queriesMap[e]},n.getAll=function(){return this.queries},n.find=function(e,t){var n=Object(i.m)(e,t)[0];return void 0===n.exact&&(n.exact=!0),this.queries.find((function(e){return Object(i.k)(n,e)}))},n.findAll=function(e,t){var n=Object(i.m)(e,t)[0];return Object.keys(n).length>0?this.queries.filter((function(e){return Object(i.k)(n,e)})):this.queries},n.notify=function(e){var t=this;a.a.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},n.onFocus=function(){var e=this;a.a.batch((function(){e.queries.forEach((function(e){e.onFocus()}))}))},n.onOnline=function(){var e=this;a.a.batch((function(){e.queries.forEach((function(e){e.onOnline()}))}))},t}(n(74).a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return c}));var r=n(14),i=n(103),o=n(20),a=n(64),s=n(7),u=function(){function e(e){this.options=Object(r.a)({},e.defaultOptions,e.options),this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.observers=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0},this.meta=e.meta}var t=e.prototype;return t.setState=function(e){this.dispatch({type:"setState",state:e})},t.addObserver=function(e){-1===this.observers.indexOf(e)&&this.observers.push(e)},t.removeObserver=function(e){this.observers=this.observers.filter((function(t){return t!==e}))},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(s.l).catch(s.l)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var e,t=this,n="loading"===this.state.status,r=Promise.resolve();return n||(this.dispatch({type:"loading",variables:this.options.variables}),r=r.then((function(){null==t.mutationCache.config.onMutate||t.mutationCache.config.onMutate(t.state.variables,t)})).then((function(){return null==t.options.onMutate?void 0:t.options.onMutate(t.state.variables)})).then((function(e){e!==t.state.context&&t.dispatch({type:"loading",context:e,variables:t.state.variables})}))),r.then((function(){return t.executeMutation()})).then((function(n){e=n,null==t.mutationCache.config.onSuccess||t.mutationCache.config.onSuccess(e,t.state.variables,t.state.context,t)})).then((function(){return null==t.options.onSuccess?void 0:t.options.onSuccess(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(e,null,t.state.variables,t.state.context)})).then((function(){return t.dispatch({type:"success",data:e}),e})).catch((function(e){return null==t.mutationCache.config.onError||t.mutationCache.config.onError(e,t.state.variables,t.state.context,t),Object(i.a)().error(e),Promise.resolve().then((function(){return null==t.options.onError?void 0:t.options.onError(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(void 0,e,t.state.variables,t.state.context)})).then((function(){throw t.dispatch({type:"error",error:e}),e}))}))},t.executeMutation=function(){var e,t=this;return this.retryer=new a.b({fn:function(){return t.options.mutationFn?t.options.mutationFn(t.state.variables):Promise.reject("No mutationFn found")},onFail:function(){t.dispatch({type:"failed"})},onPause:function(){t.dispatch({type:"pause"})},onContinue:function(){t.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(e){var t=this;this.state=function(e,t){switch(t.type){case"failed":return Object(r.a)({},e,{failureCount:e.failureCount+1});case"pause":return Object(r.a)({},e,{isPaused:!0});case"continue":return Object(r.a)({},e,{isPaused:!1});case"loading":return Object(r.a)({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return Object(r.a)({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return Object(r.a)({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return Object(r.a)({},e,t.state);default:return e}}(this.state,e),o.a.batch((function(){t.observers.forEach((function(t){t.onMutationUpdate(e)})),t.mutationCache.notify(t)}))},e}();function c(){return{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0}}},function(e,t,n){"use strict";function r(e,t,n){return"function"==typeof t?t.apply(void 0,n):"boolean"==typeof t?t:!!e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(0),i=n.n(r),o=n(20),a=n(168),s=n(70),u=n(220);function c(e,t){var n=i.a.useRef(!1),r=i.a.useState(0)[1],c=Object(s.b)(),l=Object(a.b)(),f=c.defaultQueryObserverOptions(e);f.optimisticResults=!0,f.onError&&(f.onError=o.a.batchCalls(f.onError)),f.onSuccess&&(f.onSuccess=o.a.batchCalls(f.onSuccess)),f.onSettled&&(f.onSettled=o.a.batchCalls(f.onSettled)),f.suspense&&("number"!=typeof f.staleTime&&(f.staleTime=1e3),0===f.cacheTime&&(f.cacheTime=1)),(f.suspense||f.useErrorBoundary)&&(l.isReset()||(f.retryOnMount=!1));var d=i.a.useState((function(){return new t(c,f)}))[0],p=d.getOptimisticResult(f);if(i.a.useEffect((function(){n.current=!0,l.clearReset();var e=d.subscribe(o.a.batchCalls((function(){n.current&&r((function(e){return e+1}))})));return d.updateResult(),function(){n.current=!1,e()}}),[l,d]),i.a.useEffect((function(){d.setOptions(f,{listeners:!1})}),[f,d]),f.suspense&&p.isLoading)throw d.fetchOptimistic(f).then((function(e){var t=e.data;null==f.onSuccess||f.onSuccess(t),null==f.onSettled||f.onSettled(t,null)})).catch((function(e){l.clearReset(),null==f.onError||f.onError(e),null==f.onSettled||f.onSettled(void 0,e)}));if(p.isError&&!l.isReset()&&!p.isFetching&&Object(u.a)(f.suspense,f.useErrorBoundary,[p.error,d.getCurrentQuery()]))throw p.error;return"tracked"===f.notifyOnChangeProps&&(p=d.trackResult(p,f)),p}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var a=o(n(0)),s=n(71);n(1026),t.default=(0,a.memo)((function(e){var t=e.live,n=e.seekLiveFunc,r=(0,s.useTranslation)().t;return a.default.createElement("div",{className:"itsLive"+(t?"":" not"),"data-cy":"itsLive",onClick:function(){return t?null:n("live")}},!t&&a.default.createElement("span",{className:"icon-back"}),r(t?"dvr_live":"dvr_back_to_live"))}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n(3);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.sort((function(e,t){return e[0]-t[0]})).map((function(e){return e[1]}));return function(e,t){var i,o,a,s;void 0===t&&(t=0);var u=[];try{for(var c=Object(r.e)(e.split("\n").slice(t)),l=c.next();!l.done;l=c.next()){var f=l.value;try{for(var d=(a=void 0,Object(r.e)(n)),p=d.next();!p.done;p=d.next()){var h=(0,p.value)(f);if(h){u.push(h);break}}}catch(e){a={error:e}}finally{try{p&&!p.done&&(s=d.return)&&s.call(d)}finally{if(a)throw a.error}}}}catch(e){i={error:e}}finally{try{l&&!l.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}return function(e){if(!e.length)return[];var t=e,n=t[0].function||"",i=t[t.length-1].function||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==i.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.slice(0,50).map((function(e){return Object(r.a)(Object(r.a)({},e),{filename:e.filename||t[0].filename,function:e.function||"?"})})).reverse()}(u)}}function o(e){try{return e&&"function"==typeof e&&e.name||"<anonymous>"}catch(e){return"<anonymous>"}}},function(e,t,n){"use strict";(function(e){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Preview=void 0;var s=o(n(0)),u=n(54);n(1004);var c=a(n(1006)),l=n(150);t.Preview=function(t){var n=t.name,r=t.hasPreview,i=void 0!==r&&r,o=t.hidden,a=t.basicApiConfig,f=t.address,d=t.auth_token,p=t.from,h=T((0,s.useState)(!1),2),v=h[0],g=h[1],m=T((0,s.useState)(null),2),y=m[0],b=m[1],x={};if(d){var w=(0,u.decode)(d.replace(/^\?/,""));x=Object.assign(Object.assign({},x),w)}var _={params:{name:n,from:p},options:{refetchInterval:1e4,keepPreviousData:!0,onSuccess:function(t){b(e.from(t,"binary").toString("base64"))}},config:Object.assign(Object.assign({},a),{responseType:"arraybuffer",baseURL:f||a.baseURL,params:Object.assign(Object.assign({},a.params),x)})};return i?p?(0,l.jpeg_preview_dvr)(_):(0,l.jpeg_preview)(_):p?(0,l.mp4_dvr)(_):(0,l.mp4_preview)(_),(0,s.useEffect)((function(){o&&g(o)}),[o]),s.default.createElement("video",{src:"data:video/mp4;base64,"+y,className:(0,c.default)(["dvrp-preview",{_hidden:v}]),playsInline:!0,autoPlay:!0,loop:!0,controls:!1,muted:!0})}}).call(this,n(273).Buffer)},function(e){e.exports=JSON.parse('{"version":"24.12.1-20-g2cd76f5"}')},function(e,t,n){"use strict";var r=n(10),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},function(e,t,n){"use strict";var r=n(16),i=n(4),o=n(118),a=n(182),s=n(8),u=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(s(e)),n=a.f;return n?u(t,n(e)):t}},function(e,t,n){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,n){"use strict";var r={};r[n(13)("toStringTag")]="z",e.exports="[object z]"===String(r)},function(e,t,n){"use strict";var r=n(12),i=n(280),o=n(33),a=n(8),s=n(48),u=n(136);t.f=r&&!i?Object.defineProperties:function(e,t){a(e);for(var n,r=s(t),i=u(t),c=i.length,l=0;c>l;)o.f(e,n=i[l++],r[n]);return e}},function(e,t,n){"use strict";var r=n(60),i=n(48),o=n(118).f,a=n(79),s="object"==("undefined"==typeof window?"undefined":I(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"===r(e)?function(e){try{return o(e)}catch(e){return a(s)}}(e):o(i(e))}},function(e,t,n){"use strict";var r=n(10);e.exports=r},function(e,t,n){"use strict";var r=n(50),i=n(234),o=n(295),a=Error.captureStackTrace;e.exports=function(e,t,n,s){o&&(a?a(e,t):r(e,"stack",i(n,s)))}},function(e,t,n){"use strict";var r=n(4),i=Error,o=r("".replace),a=String(new i("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,u=s.test(a);e.exports=function(e,t){if(u&&"string"==typeof e&&!i.prepareStackTrace)for(;t--;)e=o(e,s,"");return e}},function(e,t,n){"use strict";var r=n(5);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){"use strict";var r=n(13),i=n(138),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},function(e,t,n){"use strict";var r=n(24),i=n(92),o=n(25);e.exports=function(e){for(var t=r(this),n=o(t),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),u=a>2?arguments[2]:void 0,c=void 0===u?n:i(u,n);c>s;)t[s++]=e;return t}},function(e,t,n){"use strict";var r=n(8),i=n(108);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){i(e,"throw",t)}}},function(e,t,n){"use strict";var r=n(2),i=n(9),o=n(23),a=n(134),s=n(19),u=n(123),c=n(51),l=n(85),f=n(72),d=n(50),p=n(28),h=n(13),v=n(138),g=n(139),m=a.PROPER,y=a.CONFIGURABLE,b=g.IteratorPrototype,x=g.BUGGY_SAFARI_ITERATORS,w=h("iterator"),_=function(){return this};e.exports=function(e,t,n,a,h,g,S){u(n,t,a);var O,k,E,j=function(e){if(e===h&&M)return M;if(!x&&e&&e in A)return A[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},T=t+" Iterator",C=!1,A=e.prototype,P=A[w]||A["@@iterator"]||h&&A[h],M=!x&&P||j(h),I="Array"===t&&A.entries||P;if(I&&(O=c(I.call(new e)))!==Object.prototype&&O.next&&(o||c(O)===b||(l?l(O,b):s(O[w])||p(O,w,_)),f(O,T,!0,!0),o&&(v[T]=_)),m&&"values"===h&&P&&"values"!==P.name&&(!o&&y?d(A,"name","values"):(C=!0,M=function(){return i(P,this)})),h)if(k={values:j("values"),keys:g?M:j("keys"),entries:j("entries")},S)for(E in k)(x||C||!(E in A))&&p(A,E,k[E]);else r({target:t,proto:!0,forced:x||C},k);return o&&!S||A[w]===M||p(A,w,M,{name:h}),v[t]=M,k}},function(e,t,n){"use strict";var r=n(12),i=n(93),o=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(i(e)&&!a(e,"length").writable)throw new o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},function(e,t,n){"use strict";var r=n(79),i=Math.floor,o=function(e,t){var n=e.length;if(n<8)for(var a,s,u=1;u<n;){for(s=u,a=e[u];s&&t(e[s-1],a)>0;)e[s]=e[--s];s!==u++&&(e[s]=a)}else for(var c=i(n/2),l=o(r(e,0,c),t),f=o(r(e,c),t),d=l.length,p=f.length,h=0,v=0;h<d||v<p;)e[h+v]=h<d&&v<p?t(l[h],f[v])<=0?l[h++]:f[v++]:h<d?l[h++]:f[v++];return e};e.exports=o},function(e,t,n){"use strict";var r=n(99).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},function(e,t,n){"use strict";e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(e,t,n){"use strict";var r=n(315);e.exports=Math.fround||function(e){return r(e,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)}},function(e,t,n){"use strict";e.exports=Math.sign||function(e){var t=+e;return 0===t||t!=t?t:t<0?-1:1}},function(e,t,n){"use strict";var r=Array,i=Math.abs,o=Math.pow,a=Math.floor,s=Math.log,u=Math.LN2;e.exports={pack:function(e,t,n){var c,l,f,d=r(n),p=8*n-t-1,h=(1<<p)-1,v=h>>1,g=23===t?o(2,-24)-o(2,-77):0,m=e<0||0===e&&1/e<0?1:0,y=0;for((e=i(e))!=e||e===1/0?(l=e!=e?1:0,c=h):(c=a(s(e)/u),e*(f=o(2,-c))<1&&(c--,f*=2),(e+=c+v>=1?g/f:g*o(2,1-v))*f>=2&&(c++,f/=2),c+v>=h?(l=0,c=h):c+v>=1?(l=(e*f-1)*o(2,t),c+=v):(l=e*o(2,v-1)*o(2,t),c=0));t>=8;)d[y++]=255&l,l/=256,t-=8;for(c=c<<t|l,p+=t;p>0;)d[y++]=255&c,c/=256,p-=8;return d[--y]|=128*m,d},unpack:function(e,t){var n,r=e.length,i=8*r-t-1,a=(1<<i)-1,s=a>>1,u=i-7,c=r-1,l=e[c--],f=127&l;for(l>>=7;u>0;)f=256*f+e[c--],u-=8;for(n=f&(1<<-u)-1,f>>=-u,u+=t;u>0;)n=256*n+e[c--],u-=8;if(0===f)f=1-s;else{if(f===a)return n?NaN:l?-1/0:1/0;n+=o(2,t),f-=s}return(l?-1:1)*n*o(2,f-t)}}},function(e,t,n){"use strict";var r=n(10),i=n(5),o=n(98),a=n(323),s=n(248),u=n(109),c=r.structuredClone;e.exports=!!c&&!i((function(){if(s&&o>92||u&&o>94||a&&o>97)return!1;var e=new ArrayBuffer(8),t=c(e,{transfer:[e]});return 0!==e.byteLength||8!==t.byteLength}))},function(e,t,n){"use strict";e.exports="object"==("undefined"==typeof Deno?"undefined":I(Deno))&&Deno&&"object"==I(Deno.version)},function(e,t,n){"use strict";n(542)},function(e,t,n){"use strict";var r=n(5),i=n(15),o=n(60),a=n(251),s=Object.isExtensible,u=r((function(){s(1)}));e.exports=u||a?function(e){return!!i(e)&&(!a||"ArrayBuffer"!==o(e))&&(!s||s(e))}:s},function(e,t,n){"use strict";var r=n(5);e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},function(e,t,n){"use strict";var r=n(15),i=Math.floor;e.exports=Number.isInteger||function(e){return!r(e)&&isFinite(e)&&i(e)===e}},function(e,t,n){"use strict";var r=n(8);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},function(e,t,n){"use strict";var r=n(5),i=n(10).RegExp;e.exports=r((function(){var e=i(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)}))},function(e,t,n){"use strict";var r=n(2),i=n(256);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},function(e,t,n){"use strict";var r,i,o=n(9),a=n(4),s=n(18),u=n(253),c=n(200),l=n(106),f=n(45),d=n(27).get,p=n(254),h=n(349),v=l("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,m=g,y=a("".charAt),b=a("".indexOf),x=a("".replace),w=a("".slice),_=(i=/b*/g,o(g,r=/a/,"a"),o(g,i,"a"),0!==r.lastIndex||0!==i.lastIndex),S=c.BROKEN_CARET,O=void 0!==/()??/.exec("")[1];(_||O||S||p||h)&&(m=function(e){var t,n,r,i,a,c,l,p=this,h=d(p),k=s(e),E=h.raw;if(E)return E.lastIndex=p.lastIndex,t=o(m,E,k),p.lastIndex=E.lastIndex,t;var j=h.groups,T=S&&p.sticky,C=o(u,p),A=p.source,P=0,M=k;if(T&&(C=x(C,"y",""),-1===b(C,"g")&&(C+="g"),M=w(k,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==y(k,p.lastIndex-1))&&(A="(?: "+A+")",M=" "+M,P++),n=new RegExp("^(?:"+A+")",C)),O&&(n=new RegExp("^"+A+"$(?!\\s)",C)),_&&(r=p.lastIndex),i=o(g,T?n:p,M),T?i?(i.input=w(i.input,P),i[0]=w(i[0],P),i.index=p.lastIndex,p.lastIndex+=i[0].length):p.lastIndex=0:_&&i&&(p.lastIndex=p.global?i.index+i[0].length:r),O&&i&&i.length>1&&o(v,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(i[a]=void 0)})),i&&j)for(i.groups=c=f(null),a=0;a<j.length;a++)c[(l=j[a])[0]]=i[l[1]];return i}),e.exports=m},function(e,t,n){"use strict";var r=n(58),i=n(80),o=r.Set,a=r.add;e.exports=function(e){var t=new o;return i(e,(function(e){a(t,e)})),t}},function(e,t,n){"use strict";var r=n(199),i=TypeError;e.exports=function(e){if(r(e))throw new i("The method doesn't accept regular expressions");return e}},function(e,t,n){"use strict";var r=n(13)("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(134).PROPER,i=n(5),o=n(142);e.exports=function(e){return i((function(){return!!o[e]()||" "!==" "[e]()||r&&o[e].name!==e}))}},function(e,t,n){"use strict";var r=n(10),i=n(5),o=n(186),a=n(22).NATIVE_ARRAY_BUFFER_VIEWS,s=r.ArrayBuffer,u=r.Int8Array;e.exports=!a||!i((function(){u(1)}))||!i((function(){new u(-1)}))||!o((function(e){new u,new u(null),new u(1.5),new u(e)}),!0)||i((function(){return 1!==new u(new s(2),1,void 0).length}))},function(e,t,n){"use strict";var r=n(78);e.exports=function(e){var t=r(e);return"BigInt64Array"===t||"BigUint64Array"===t}},function(e,t,n){"use strict";var r=n(110),i=n(164);e.exports=function(e,t){return r(i(e),t)}},function(e,t,n){"use strict";n(703)},function(e,t,n){"use strict";var r=n(30),i=n(4),o=n(104),a=n(24),s=n(97),u=n(25),c=n(45),l=n(110),f=Array,d=i([].push);e.exports=function(e,t,n,i){for(var p,h,v,g=a(e),m=o(g),y=r(t,n),b=c(null),x=u(m),w=0;x>w;w++)v=m[w],(h=s(y(v,w,g)))in b?d(b[h],v):b[h]=[v];if(i&&(p=i(g))!==f)for(h in b)b[h]=l(p,b[h]);return b}},function(e,t,n){"use strict";var r=n(4),i=n(17),o=n(49),a=n(25),s=n(24),u=n(62),c=n(89),l=u.Map,f=u.has,d=u.set,p=r([].push);e.exports=function(e){var t,n,r,u=s(this),h=a(u),v=[],g=new l,m=o(e)?function(e){return e}:i(e);for(t=0;t<h;t++)r=m(n=u[t]),f(g,r)||d(g,r,n);return c(g,(function(e){p(v,e)})),v}},function(e,t,n){"use strict";var r=n(27),i=n(123),o=n(57),a=n(49),s=n(15),u=n(37),c=n(12),l="Incorrect Iterator.range arguments",f=r.set,d=r.getterFor("NumericRangeIterator"),p=RangeError,h=TypeError,v=i((function(e,t,n,r,i,o){if(I(e)!=r||t!==1/0&&t!==-1/0&&I(t)!=r)throw new h(l);if(e===1/0||e===-1/0)throw new p(l);var u,d=t>e,v=!1;if(void 0===n)u=void 0;else if(s(n))u=n.step,v=!!n.inclusive;else{if(I(n)!=r)throw new h(l);u=n}if(a(u)&&(u=d?o:-o),I(u)!=r)throw new h(l);if(u===1/0||u===-1/0||u===i&&e!==t)throw new p(l);f(this,{type:"NumericRangeIterator",start:e,end:t,step:u,inclusive:v,hitsEnd:e!=e||t!=t||u!=u||t>e!=u>i,currentCount:i,zero:i}),c||(this.start=e,this.end=t,this.step=u,this.inclusive=v)}),"NumericRangeIterator",(function(){var e=d(this);if(e.hitsEnd)return o(void 0,!0);var t=e.start,n=e.end,r=t+e.step*e.currentCount++;r===n&&(e.hitsEnd=!0);var i=e.inclusive;return(n>t?i?r>n:r>=n:i?n>r:n>=r)?(e.hitsEnd=!0,o(void 0,!0)):o(r,!1)})),g=function(e){u(v.prototype,e,{get:function(){return d(this)[e]},set:function(){},configurable:!0,enumerable:!1})};c&&(g("start"),g("end"),g("inclusive"),g("step")),e.exports=v},function(e,t,n){"use strict";var r=n(9),i=n(17),o=n(19),a=n(8),s=TypeError;e.exports=function(e,t){var n,u=a(this),c=i(u.get),l=i(u.has),f=i(u.set),d=arguments.length>2?arguments[2]:void 0;if(!o(t)&&!o(d))throw new s("At least one callback required");return r(l,u,e)?(n=r(c,u,e),o(t)&&(n=t(n),r(f,u,e,n))):o(d)&&(n=d(),r(f,u,e,n)),n}},function(e,t,n){"use strict";var r=n(27),i=n(123),o=n(57),a=n(21),s=n(136),u=n(24),c=r.set,l=r.getterFor("Object Iterator");e.exports=i((function(e,t){var n=u(e);c(this,{type:"Object Iterator",mode:t,object:n,keys:s(n),index:0})}),"Object",(function(){for(var e=l(this),t=e.keys;;){if(null===t||e.index>=t.length)return e.object=e.keys=null,o(void 0,!0);var n=t[e.index++],r=e.object;if(a(r,n)){switch(e.mode){case"keys":return o(n,!1);case"values":return o(r[n],!1)}return o([n,r[n]],!1)}}}))},function(e,t,n){"use strict";var r,i=n(10),o=n(66),a=n(19),s=n(926),u=n(99),c=n(79),l=n(84),f=i.Function,d=/MSIE .\./.test(u)||s&&((r=i.Bun.version.split(".")).length<3||"0"===r[0]&&(r[1]<3||"3"===r[1]&&"0"===r[2]));e.exports=function(e,t){var n=t?2:1;return d?function(r,i){var s=l(arguments.length,1)>n,u=a(r)?r:f(r),d=s?c(arguments,n):[],p=s?function(){o(u,this,d)}:u;return t?e(p,i):e(p)}:e}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return u}));var r=n(0),i=n.n(r),o=n(217),a=n(70);function s(e,t){var n=Object(a.b)(),r=i.a.useRef(t);r.current=t,i.a.useMemo((function(){e&&Object(o.b)(n,e,r.current)}),[n,e])}var u=function(e){var t=e.children,n=e.options;return s(e.state,n),t}},function(e,t,n){"use strict";(function(t){var r=n(59),i=n(968),o=n(151),a=n(428),s=n(429),u={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var l,f={transitional:a,adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==t&&"[object process]"===Object.prototype.toString.call(t))&&(l=n(430)),l),transformRequest:[function(e,t){if(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))return e;if(r.isArrayBufferView(e))return e.buffer;if(r.isURLSearchParams(e))return c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,o=r.isObject(e),a=t&&t["Content-Type"];if((n=r.isFileList(e))||o&&"multipart/form-data"===a){var u=this.env&&this.env.FormData;return s(n?{"files[]":e}:e,u&&new u)}return o||"application/json"===a?(c(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(0,JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||f.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw o.from(e,o.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(979)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){f.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){f.headers[e]=r.merge(u)})),e.exports=f}).call(this,n(210))},function(e,t,n){"use strict";(function(e){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh <http://feross.org> * @license MIT */ var r=n(969),i=n(970),o=n(971);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(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 f(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");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=d(e,t),e}(e,t,n,r):"string"==typeof t?function(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!u.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);return i!==r&&(e=e.slice(0,i)),e}(e,t,n):function(e,t){if(u.isBuffer(t)){var n=0|p(t.length);return 0===(e=s(e,n)).length||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):d(e,t);if("Buffer"===t.type&&o(t.data))return d(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(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 f(e,t){if(l(t),e=s(e,t<0?0:0|p(t)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(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(u.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 z(e).length;default:if(r)return U(e).length;t=(""+t).toLowerCase(),r=!0}}function v(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 C(this,t,n);case"utf8":case"utf-8":return E(this,t,n);case"ascii":return j(this,t,n);case"latin1":case"binary":return T(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(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=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,i){var o,a=1,s=e.length,u=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,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=n;o<s;o++)if(c(e,o)===c(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*a}else-1!==l&&(o-=o-l),l=-1}else for(n+u>s&&(n=s-u),o=n;o>=0;o--){for(var f=!0,d=0;d<u;d++)if(c(e,o+d)!==c(t,d)){f=!1;break}if(f)return o}return-1}function b(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 x(e,t,n,r){return V(U(t,e.length-n),e,n,r)}function w(e,t,n,r){return V(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function _(e,t,n,r){return w(e,t,n,r)}function S(e,t,n,r){return V(z(t),e,n,r)}function O(e,t,n,r){return V(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function k(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function E(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,u,c=e[i],l=null,f=c>239?4:c>223?3:c>191?2:1;if(i+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}function j(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 T(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 C(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 A(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 P(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(!u.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 I(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 R(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 D(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 L(e,t,n,r,o){return o||D(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function N(e,t,n,r,o){return o||D(e,0,n,8),i.write(e,t,n,r,52,8),n+8}t.Buffer=u,t.SlowBuffer=function(e){return+e!=e&&(e=0),u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.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(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return c(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return function(e,t,n,r){return l(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)},u.allocUnsafe=function(e){return f(null,e)},u.allocUnsafeSlow=function(e){return f(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.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},u.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}},u.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},u.byteLength=h,u.prototype._isBuffer=!0,u.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)g(this,t,t+1);return this},u.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)g(this,t,t+3),g(this,t+1,t+2);return this},u.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)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?E(this,0,e):v.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.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+">"},u.prototype.compare=function(e,t,n,r,i){if(!u.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),l=e.slice(t,n),f=0;f<s;++f)if(c[f]!==l[f]){o=c[f],a=l[f];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},u.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 b(this,e,t,n);case"utf8":case"utf-8":return x(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return _(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},u.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),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=u.prototype;else{var i=t-e;n=new u(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||P(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},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||P(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},u.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!1,52,8)},u.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},u.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},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):R(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},u.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},u.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},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):I(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):I(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):R(this,e,t,!0),t+4},u.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),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return N(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return N(this,e,t,!1,n)},u.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||!u.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},u.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&&!u.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=u.isBuffer(e)?e:U(new u(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 z(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 V(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(96))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(54),i=n(0),o=n(150),a=n(11);t.default=(0,i.memo)((function(e){var t=e.name,n=e.address,s=e.returnData,u=e.setRanges,c=e.start,l=e.end,f=e.dvr_enabled,d=e.onRangesLoading,p=e.rangesLoading,h=e.liveCheck,v=e.basicApiConfig,g=e.auth_token,m=e.resolution,y=T((0,i.useState)(!1),2),b=y[0],x=y[1],w=T((0,i.useState)(null),2),_=w[0],S=w[1],O=T((0,i.useState)(!0),2),k=O[0],E=O[1],j={};if(g){var C=(0,r.decode)(g.replace(/^\?/,""));j=Object.assign(Object.assign({},j),C)}var A=Object.assign(Object.assign({},v),{params:Object.assign(Object.assign({},v.params),j),baseURL:n||v.baseURL,encodeParams:!1});(0,i.useEffect)((function(){d&&p&&d(!1)}),[p,d]);var P=function(e){return{closed_at_gte:Math.round((e?(0,a.now)()-300:c)*(k?1e3:1)),opened_at_lte:Math.round((e?(0,a.now)()+300:l)*(k?1e3:1))}},M=function(e){return e>1e10?Math.floor(e/1e3):e},I=(0,o.ranges_list)({params:Object.assign({name:t},P(h)),options:{keepPreviousData:!0,enabled:!b,refetchInterval:h?1e3:void 0,onSuccess:function(e){var n=e.ranges,r=e.next;if(n&&n.length>0){var i=n.map((function(e){return Object.assign(Object.assign({},e),{closed_at:e.closed_at?M(e.closed_at):e.closed_at,opened_at:e.opened_at?M(e.opened_at):e.opened_at})}));u(t,i,h),S(r||null),r?setTimeout((function(){return I()}),100):s("dvr_ranges_present",!0)}else k&&(E(!1),I())},onError:function(e){console.info("Fetch renges error:",e),x(!0),u(t,[{closed_at:(0,a.now)(),opened_at:(0,a.now)()}]),d&&d(!1)}},config:Object.assign(Object.assign({},A),{params:Object.assign(Object.assign(Object.assign({},A.params),P(h)),{limit:100,cursor:_,resolution:Math.floor(m)})})}).refetch;return(0,o.recording_status)({params:{name:t},options:{refetchInterval:h?1e3:2e3,keepPreviousData:!0,enabled:b,onSuccess:function(e){var n=e[0].ranges;if(n&&n.length)if(f){s("dvr_ranges_present",!0);var r=n.map((function(e){return e.from&&e.duration?{opened_at:e.from,closed_at:e.from+e.duration}:{}}));u(t,r)}else s("dvr_ranges_present",!1),u(t,[{closed_at:(0,a.now)(),opened_at:(0,a.now)()}]);else s("dvr_ranges_present",!1);d&&d(!0)},onError:function(e){console.error("Fetch renges error:",e),u(t,[{closed_at:(0,a.now)(),opened_at:(0,a.now)()}]),d&&d(!1)}},config:Object.assign(Object.assign({},v),{params:Object.assign(Object.assign({},v.params),Object.assign({from:h?Math.round((0,a.now)()-300):Math.round(c),to:h?Math.round((0,a.now)()+300):Math.round(l),request:"motion_log,ranges"},j)),baseURL:n||v.baseURL,encodeParams:!1})}),null}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=!1,n=0,r=0;return{handleMouseDown:function(e){t=!1,n=e.clientX,r=e.clientY},handleMouseMove:function(e){var i=Math.abs(e.clientX-n),o=Math.abs(e.clientY-r);(i>5||o>5)&&(t=!0)},handleMouseUp:function(n){t||e(n)},handleTouchMove:function(e){if(n&&r){var i=Math.abs(e.touches[0].clientX-n),o=Math.abs(e.touches[0].clientY-r);(i>5||o>5)&&(t=!0)}else n=e.touches[0].clientX,r=e.touches[0].clientY},handleTouchEnd:function(i){t||e(i),0===i.touches.length&&(t=!1,n=0,r=0)}}}},function(e,t,n){var r=n(90).default,i=n(465);e.exports=function(e){var t=i(e,"string");return"symbol"==r(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(115);e.exports=r&&!Symbol.sham&&"symbol"==I(Symbol.iterator)},function(e,t,n){"use strict";var r=n(9),i=n(19),o=n(15),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&i(n=e.toString)&&!o(s=r(n,e)))return s;if(i(n=e.valueOf)&&!o(s=r(n,e)))return s;if("string"!==t&&i(n=e.toString)&&!o(s=r(n,e)))return s;throw new a("Can't convert object to primitive value")}},function(e,t,n){"use strict";var r=n(12),i=n(5),o=n(178);e.exports=!r&&!i((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){"use strict";var r=n(12),i=n(5);e.exports=r&&i((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},function(e,t,n){"use strict";var r=n(10),i=n(19),o=r.WeakMap;e.exports=i(o)&&/native code/.test(String(o))},function(e,t,n){"use strict";var r=n(4),i=n(21),o=n(48),a=n(154).indexOf,s=n(153),u=r([].push);e.exports=function(e,t){var n,r=o(e),c=0,l=[];for(n in r)!i(s,n)&&i(r,n)&&u(l,n);for(;t.length>c;)i(r,n=t[c++])&&(~a(l,n)||u(l,n));return l}},function(e,t,n){"use strict";var r=Math.ceil,i=Math.floor;e.exports=Math.trunc||function(e){var t=+e;return(t>0?i:r)(t)}},function(e,t,n){"use strict";var r=n(16);e.exports=r("document","documentElement")},function(e,t,n){"use strict";var r=n(13);t.f=r},function(e,t,n){"use strict";var r=n(9),i=n(16),o=n(13),a=n(28);e.exports=function(){var e=i("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=o("toPrimitive");t&&!t[s]&&a(t,s,(function(e){return r(n,this)}),{arity:1})}},function(e,t,n){"use strict";var r=n(115);e.exports=r&&!!Symbol.for&&!!Symbol.keyFor},function(e,t,n){"use strict";var r=n(2),i=n(16),o=n(66),a=n(9),s=n(4),u=n(5),c=n(19),l=n(105),f=n(79),d=n(289),p=n(115),h=String,v=i("JSON","stringify"),g=s(/./.exec),m=s("".charAt),y=s("".charCodeAt),b=s("".replace),x=s(1..toString),w=/[\uD800-\uDFFF]/g,_=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,O=!p||u((function(){var e=i("Symbol")("stringify detection");return"[null]"!==v([e])||"{}"!==v({a:e})||"{}"!==v(Object(e))})),k=u((function(){return'"\\udf06\\ud834"'!==v("\udf06\ud834")||'"\\udead"'!==v("\udead")})),E=function(e,t){var n=f(arguments),r=d(t);if(c(r)||void 0!==e&&!l(e))return n[1]=function(e,t){if(c(r)&&(t=a(r,this,h(e),t)),!l(t))return t},o(v,null,n)},j=function(e,t,n){var r=m(n,t-1),i=m(n,t+1);return g(_,e)&&!g(S,i)||g(S,e)&&!g(_,r)?"\\u"+x(y(e,0),16):e};v&&r({target:"JSON",stat:!0,arity:3,forced:O||k},{stringify:function(e,t,n){var r=f(arguments),i=o(O?E:v,null,r);return k&&"string"==typeof i?b(i,w,j):i}})},function(e,t,n){"use strict";var r=n(4),i=n(93),o=n(19),a=n(60),s=n(18),u=r([].push);e.exports=function(e){if(o(e))return e;if(i(e)){for(var t=e.length,n=[],r=0;r<t;r++){var c=e[r];"string"==typeof c?u(n,c):"number"!=typeof c&&"Number"!==a(c)&&"String"!==a(c)||u(n,s(c))}var l=n.length,f=!0;return function(e,t){if(f)return f=!1,t;if(i(this))return t;for(var r=0;r<l;r++)if(n[r]===e)return t}}}},function(e,t,n){"use strict";var r=n(16),i=n(21),o=n(50),a=n(61),s=n(85),u=n(135),c=n(293),l=n(120),f=n(137),d=n(294),p=n(233),h=n(12),v=n(23);e.exports=function(e,t,n,g){var m=g?2:1,y=e.split("."),b=y[y.length-1],x=r.apply(null,y);if(x){var w=x.prototype;if(!v&&i(w,"cause")&&delete w.cause,!n)return x;var _=r("Error"),S=t((function(e,t){var n=f(g?t:e,void 0),r=g?new x(e):new x;return void 0!==n&&o(r,"message",n),p(r,S,r.stack,2),this&&a(w,this)&&l(r,this,S),arguments.length>m&&d(r,arguments[m]),r}));if(S.prototype=w,"Error"!==b?s?s(S,_):u(S,_,{name:!0}):h&&"stackTraceLimit"in x&&(c(S,x,"stackTraceLimit"),c(S,x,"prepareStackTrace")),u(S,x),!v)try{w.name!==b&&o(w,"name",b),w.constructor=S}catch(e){}return S}}},function(e,t,n){"use strict";var r=n(292),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o("Can't set "+i(e)+" as a prototype")}},function(e,t,n){"use strict";var r=n(15);e.exports=function(e){return r(e)||null===e}},function(e,t,n){"use strict";var r=n(33).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},function(e,t,n){"use strict";var r=n(15),i=n(50);e.exports=function(e,t){r(t)&&"cause"in t&&i(e,"cause",t.cause)}},function(e,t,n){"use strict";var r=n(5),i=n(76);e.exports=!r((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",i(1,7)),7!==e.stack)}))},function(e,t,n){"use strict";var r=n(12),i=n(5),o=n(8),a=n(137),s=Error.prototype.toString,u=i((function(){if(r){var e=Object.create(Object.defineProperty({},"name",{get:function(){return this===e}}));if("true"!==s.call(e))return!0}return"2: 1"!==s.call({message:1,name:2})||"Error"!==s.call({})}));e.exports=u?function(){var e=o(this),t=a(e.name,"Error"),n=a(e.message);return t?n?t+": "+n:t:n}:s},function(e,t,n){"use strict";n(490)},function(e,t,n){"use strict";var r=n(2),i=n(24),o=n(25),a=n(36),s=n(43);r({target:"Array",proto:!0},{at:function(e){var t=i(this),n=o(t),r=a(e),s=r>=0?r:n+r;return s<0||s>=n?void 0:t[s]}}),s("at")},function(e,t,n){"use strict";var r=n(24),i=n(92),o=n(25),a=n(184),s=Math.min;e.exports=[].copyWithin||function(e,t){var n=r(this),u=o(n),c=i(e,u),l=i(t,u),f=arguments.length>2?arguments[2]:void 0,d=s((void 0===f?u:i(f,u))-l,u-c),p=1;for(l<c&&c<l+d&&(p=-1,l+=d-1,c+=d-1);d-- >0;)l in n?n[c]=n[l]:a(n,c),c+=p,l+=p;return n}},function(e,t,n){"use strict";var r=n(2),i=n(185).findLast,o=n(43);r({target:"Array",proto:!0},{findLast:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("findLast")},function(e,t,n){"use strict";var r=n(2),i=n(185).findLastIndex,o=n(43);r({target:"Array",proto:!0},{findLastIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("findLastIndex")},function(e,t,n){"use strict";var r=n(93),i=n(25),o=n(122),a=n(30),s=function(e,t,n,u,c,l,f,d){for(var p,h,v=c,g=0,m=!!f&&a(f,d);g<u;)g in n&&(p=m?m(n[g],g,t):n[g],l>0&&r(p)?(h=i(p),v=s(e,t,p,h,v,l-1)-1):(o(v+1),e[v]=p),v++),g++;return v};e.exports=s},function(e,t,n){"use strict";var r=n(46).forEach,i=n(87)("forEach");e.exports=i?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},function(e,t,n){"use strict";var r=n(30),i=n(9),o=n(24),a=n(238),s=n(236),u=n(94),c=n(25),l=n(86),f=n(121),d=n(107),p=Array;e.exports=function(e){var t=o(e),n=u(this),h=arguments.length,v=h>1?arguments[1]:void 0,g=void 0!==v;g&&(v=r(v,h>2?arguments[2]:void 0));var m,y,b,x,w,_,S=d(t),O=0;if(!S||this===p&&s(S))for(m=c(t),y=n?new this(m):p(m);m>O;O++)_=g?v(t[O],O):t[O],l(y,O,_);else for(y=n?new this:[],w=(x=f(t,S)).next;!(b=i(w,x)).done;O++)_=g?a(x,v,[b.value,O],!0):b.value,l(y,O,_);return y.length=O,y}},function(e,t,n){"use strict";var r=n(66),i=n(48),o=n(36),a=n(25),s=n(87),u=Math.min,c=[].lastIndexOf,l=!!c&&1/[1].lastIndexOf(1,-0)<0,f=s("lastIndexOf"),d=l||!f;e.exports=d?function(e){if(l)return r(c,this,arguments)||0;var t=i(this),n=a(t);if(0===n)return-1;var s=n-1;for(arguments.length>1&&(s=u(s,o(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}:c},function(e,t,n){"use strict";var r=n(99).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},function(e,t,n){"use strict";var r=n(99);e.exports=/MSIE|Trident/.test(r)},function(e,t,n){"use strict";var r=n(2),i=n(309),o=n(48),a=n(43),s=Array;r({target:"Array",proto:!0},{toReversed:function(){return i(o(this),s)}}),a("toReversed")},function(e,t,n){"use strict";var r=n(25);e.exports=function(e,t){for(var n=r(e),i=new t(n),o=0;o<n;o++)i[o]=e[n-o-1];return i}},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(17),a=n(48),s=n(110),u=n(311),c=n(43),l=Array,f=i(u("Array","sort"));r({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&o(e);var t=a(this),n=s(l,t);return f(n,e)}}),c("toSorted")},function(e,t,n){"use strict";var r=n(10);e.exports=function(e,t){var n=r[e],i=n&&n.prototype;return i&&i[t]}},function(e,t,n){"use strict";var r=n(2),i=n(43),o=n(122),a=n(25),s=n(92),u=n(48),c=n(36),l=Array,f=Math.max,d=Math.min;r({target:"Array",proto:!0},{toSpliced:function(e,t){var n,r,i,p,h=u(this),v=a(h),g=s(e,v),m=arguments.length,y=0;for(0===m?n=r=0:1===m?(n=0,r=v-g):(n=m-2,r=d(f(c(t),0),v-g)),i=o(v+n-r),p=l(i);y<g;y++)p[y]=h[y];for(;y<g+n;y++)p[y]=arguments[y-g+2];for(;y<i;y++)p[y]=h[y+r-n];return p}}),i("toSpliced")},function(e,t,n){"use strict";var r=n(2),i=n(314),o=n(48),a=Array;r({target:"Array",proto:!0},{with:function(e,t){return i(o(this),a,e,t)}})},function(e,t,n){"use strict";var r=n(25),i=n(36),o=RangeError;e.exports=function(e,t,n,a){var s=r(e),u=i(n),c=u<0?s+u:u;if(c>=s||c<0)throw new o("Incorrect index");for(var l=new t(s),f=0;f<s;f++)l[f]=f===c?a:e[f];return l}},function(e,t,n){"use strict";var r=n(245),i=Math.abs;e.exports=function(e,t,n,o){var a=+e,s=i(a),u=r(a);if(s<o)return u*function(e){return e+4503599627370496-4503599627370496}(s/o/t)*o*t;var c=(1+t/2220446049250313e-31)*s,l=c-(c-s);return l>n||l!=l?u*(1/0):u*l}},function(e,t,n){"use strict";var r=n(12),i=n(37),o=n(317),a=ArrayBuffer.prototype;r&&!("detached"in a)&&i(a,"detached",{configurable:!0,get:function(){return o(this)}})},function(e,t,n){"use strict";var r=n(4),i=n(318),o=r(ArrayBuffer.prototype.slice);e.exports=function(e){if(0!==i(e))return!1;try{return o(e,0,0),!1}catch(e){return!0}}},function(e,t,n){"use strict";var r=n(183),i=n(60),o=TypeError;e.exports=r(ArrayBuffer.prototype,"byteLength","get")||function(e){if("ArrayBuffer"!==i(e))throw new o("ArrayBuffer expected");return e.byteLength}},function(e,t,n){"use strict";var r=n(2),i=n(320);i&&r({target:"ArrayBuffer",proto:!0},{transfer:function(){return i(this,arguments.length?arguments[0]:void 0,!0)}})},function(e,t,n){"use strict";var r=n(10),i=n(4),o=n(183),a=n(158),s=n(317),u=n(318),c=n(321),l=n(247),f=r.structuredClone,d=r.ArrayBuffer,p=r.DataView,h=r.TypeError,v=Math.min,g=d.prototype,m=p.prototype,y=i(g.slice),b=o(g,"resizable","get"),x=o(g,"maxByteLength","get"),w=i(m.getInt8),_=i(m.setInt8);e.exports=(l||c)&&function(e,t,n){var r,i=u(e),o=void 0===t?i:a(t),g=!b||!b(e);if(s(e))throw new h("ArrayBuffer is detached");if(l&&(e=f(e,{transfer:[e]}),i===o&&(n||g)))return e;if(i>=o&&(!n||g))r=y(e,0,o);else{var m=n&&!g&&x?{maxByteLength:x(e)}:void 0;r=new d(o,m);for(var S=new p(e),O=new p(r),k=v(o,i),E=0;E<k;E++)_(O,E,w(S,E))}return l||c(e),r}},function(e,t,n){"use strict";var r,i,o,a,s=n(10),u=n(322),c=n(247),l=s.structuredClone,f=s.ArrayBuffer,d=s.MessageChannel,p=!1;if(c)p=function(e){l(e,{transfer:[e]})};else if(f)try{d||(r=u("worker_threads"))&&(d=r.MessageChannel),d&&(i=new d,o=new f(2),a=function(e){i.port1.postMessage(null,[e])},2===o.byteLength&&(a(o),0===o.byteLength&&(p=a)))}catch(e){}e.exports=p},function(e,t,n){"use strict";var r=n(109);e.exports=function(e){try{if(r)return Function('return require("'+e+'")')()}catch(e){}}},function(e,t,n){"use strict";var r=n(248),i=n(109);e.exports=!r&&!i&&"object"==("undefined"==typeof window?"undefined":I(window))&&"object"==("undefined"==typeof document?"undefined":I(document))},function(e,t,n){"use strict";var r=n(2),i=n(320);i&&r({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return i(this,arguments.length?arguments[0]:void 0,!1)}})},function(e,t,n){"use strict";var r=n(4),i=n(17),o=n(15),a=n(21),s=n(79),u=n(152),c=Function,l=r([].concat),f=r([].join),d={},p=function(e,t,n){if(!a(d,t)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";d[t]=c("C,a","return new C("+f(r,",")+")")}return d[t](e,n)};e.exports=u?c.bind:function(e){var t=i(this),n=t.prototype,r=s(arguments,1),a=function(){var n=l(r,s(arguments));return this instanceof a?p(t,n.length,n):t.apply(e,n)};return o(n)&&(a.prototype=n),a}},function(e,t,n){"use strict";var r=n(2),i=n(10);r({global:!0,forced:i.globalThis!==i},{globalThis:i})},function(e,t,n){"use strict";var r=n(45),i=n(37),o=n(88),a=n(30),s=n(67),u=n(49),c=n(42),l=n(239),f=n(57),d=n(124),p=n(12),h=n(125).fastKey,v=n(27),g=v.set,m=v.getterFor;e.exports={getConstructor:function(e,t,n,l){var f=e((function(e,i){s(e,d),g(e,{type:t,index:r(null),first:void 0,last:void 0,size:0}),p||(e.size=0),u(i)||c(i,e[l],{that:e,AS_ENTRIES:n})})),d=f.prototype,v=m(t),y=function(e,t,n){var r,i,o=v(e),a=b(e,t);return a?a.value=n:(o.last=a={index:i=h(t,!0),key:t,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),p?o.size++:e.size++,"F"!==i&&(o.index[i]=a)),e},b=function(e,t){var n,r=v(e),i=h(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key===t)return n};return o(d,{clear:function(){for(var e=v(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=void 0),t=t.next;e.first=e.last=void 0,e.index=r(null),p?e.size=0:this.size=0},delete:function(e){var t=v(this),n=b(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),p?t.size--:this.size--}return!!n},forEach:function(e){for(var t,n=v(this),r=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!b(this,e)}}),o(d,n?{get:function(e){var t=b(this,e);return t&&t.value},set:function(e,t){return y(this,0===e?0:e,t)}}:{add:function(e){return y(this,e=0===e?0:e,e)}}),p&&i(d,"size",{configurable:!0,get:function(){return v(this).size}}),f},setStrong:function(e,t,n){var r=t+" Iterator",i=m(t),o=m(r);l(e,t,(function(e,t){g(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)?f("keys"===t?n.key:"values"===t?n.value:[n.key,n.value],!1):(e.target=void 0,f(void 0,!0))}),n?"entries":"values",!n,!0),d(t)}}},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(17),a=n(34),s=n(42),u=n(62),c=n(23),l=n(5),f=u.Map,d=u.has,p=u.get,h=u.set,v=i([].push),g=c||l((function(){return 1!==f.groupBy("ab",(function(e){return e})).get("a").length}));r({target:"Map",stat:!0,forced:c||g},{groupBy:function(e,t){a(e),o(t);var n=new f,r=0;return s(e,(function(e){var i=t(e,r++);d(n,i)?v(p(n,i),e):h(n,i,[e])})),n}})},function(e,t,n){"use strict";var r=Math.log;e.exports=Math.log1p||function(e){var t=+e;return t>-1e-8&&t<1e-8?t-t*t/2:r(1+t)}},function(e,t,n){"use strict";var r=Math.log,i=Math.LOG10E;e.exports=Math.log10||function(e){return r(e)*i}},function(e,t,n){"use strict";var r=n(10).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&r(e)}},function(e,t,n){"use strict";var r=n(10),i=n(5),o=n(4),a=n(18),s=n(141).trim,u=n(142),c=o("".charAt),l=r.parseFloat,f=r.Symbol,d=f&&f.iterator,p=1/l(u+"-0")!=-1/0||d&&!i((function(){l(Object(d))}));e.exports=p?function(e){var t=s(a(e)),n=l(t);return 0===n&&"-"===c(t,0)?-0:n}:l},function(e,t,n){"use strict";var r=n(10),i=n(5),o=n(4),a=n(18),s=n(141).trim,u=n(142),c=r.parseInt,l=r.Symbol,f=l&&l.iterator,d=/^[+-]?0x/i,p=o(d.exec),h=8!==c(u+"08")||22!==c(u+"0x16")||f&&!i((function(){c(Object(f))}));e.exports=h?function(e,t){var n=s(a(e));return c(n,t>>>0||(p(d,n)?16:10))}:c},function(e,t,n){"use strict";var r=n(12),i=n(4),o=n(9),a=n(5),s=n(136),u=n(182),c=n(175),l=n(24),f=n(104),d=Object.assign,p=Object.defineProperty,h=i([].concat);e.exports=!d||a((function(){if(r&&1!==d({b:1},d(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection");return e[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(e){t[e]=e})),7!==d({},e)[n]||"abcdefghijklmnopqrst"!==s(d({},t)).join("")}))?function(e,t){for(var n=l(e),i=arguments.length,a=1,d=u.f,p=c.f;i>a;)for(var v,g=f(arguments[a++]),m=d?h(s(g),d(g)):s(g),y=m.length,b=0;y>b;)v=m[b++],r&&!o(p,g,v)||(n[v]=g[v]);return n}:d},function(e,t,n){"use strict";var r=n(12),i=n(5),o=n(4),a=n(51),s=n(136),u=n(48),c=o(n(175).f),l=o([].push),f=r&&i((function(){var e=Object.create(null);return e[2]=2,!c(e,2)})),d=function(e){return function(t){for(var n,i=u(t),o=s(i),d=f&&null===a(i),p=o.length,h=0,v=[];p>h;)n=o[h++],r&&!(d?n in i:c(i,n))||l(v,e?[n,i[n]]:i[n]);return v}};e.exports={entries:d(!0),values:d(!1)}},function(e,t,n){"use strict";var r=n(2),i=n(16),o=n(4),a=n(17),s=n(34),u=n(97),c=n(42),l=n(5),f=Object.groupBy,d=i("Object","create"),p=o([].push);r({target:"Object",stat:!0,forced:!f||l((function(){return 1!==f("ab",(function(e){return e})).a.length}))},{groupBy:function(e,t){s(e),a(t);var n=d(null),r=0;return c(e,(function(e){var i=u(t(e,r++));i in n?p(n[i],e):n[i]=[e]})),n}})},function(e,t,n){"use strict";n(2)({target:"Object",stat:!0},{hasOwn:n(21)})},function(e,t,n){"use strict";e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){"use strict";var r=n(99);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},function(e,t,n){"use strict";var r,i,o,a,s,u=n(10),c=n(341),l=n(30),f=n(197).set,d=n(342),p=n(339),h=n(605),v=n(606),g=n(109),m=u.MutationObserver||u.WebKitMutationObserver,y=u.document,b=u.process,x=u.Promise,w=c("queueMicrotask");if(!w){var _=new d,S=function(){var e,t;for(g&&(e=b.domain)&&e.exit();t=_.get();)try{t()}catch(e){throw _.head&&r(),e}e&&e.enter()};p||g||v||!m||!y?!h&&x&&x.resolve?((a=x.resolve(void 0)).constructor=x,s=l(a.then,a),r=function(){s(S)}):g?r=function(){b.nextTick(S)}:(f=l(f,u),r=function(){f(S)}):(i=!0,o=y.createTextNode(""),new m(S).observe(o,{characterData:!0}),r=function(){o.data=i=!i}),w=function(e){_.head||r(),_.add(e)}}e.exports=w},function(e,t,n){"use strict";var r=n(10),i=n(12),o=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!i)return r[e];var t=o(r,e);return t&&t.value}},function(e,t,n){"use strict";var r=function(){this.head=null,this.tail=null};r.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=r},function(e,t,n){"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}},function(e,t,n){"use strict";var r=n(8),i=n(15),o=n(100);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(2),i=n(9),o=n(17),a=n(100),s=n(126),u=n(42);r({target:"Promise",stat:!0,forced:n(198)},{allSettled:function(e){var t=this,n=a.f(t),r=n.resolve,c=n.reject,l=s((function(){var n=o(t.resolve),a=[],s=0,c=1;u(e,(function(e){var o=s++,u=!1;c++,i(n,t,e).then((function(e){u||(u=!0,a[o]={status:"fulfilled",value:e},--c||r(a))}),(function(e){u||(u=!0,a[o]={status:"rejected",reason:e},--c||r(a))}))})),--c||r(a)}));return l.error&&c(l.value),n.promise}})},function(e,t,n){"use strict";var r=n(2),i=n(9),o=n(17),a=n(16),s=n(100),u=n(126),c=n(42);r({target:"Promise",stat:!0,forced:n(198)},{any:function(e){var t=this,n=a("AggregateError"),r=s.f(t),l=r.resolve,f=r.reject,d=u((function(){var r=o(t.resolve),a=[],s=0,u=1,d=!1;c(e,(function(e){var o=s++,c=!1;u++,i(r,t,e).then((function(e){c||d||(d=!0,l(e))}),(function(e){c||d||(c=!0,a[o]=e,--u||f(new n(a,"No one promise resolved")))}))})),--u||f(new n(a,"No one promise resolved"))}));return d.error&&f(d.value),r.promise}})},function(e,t,n){"use strict";var r=n(2),i=n(100);r({target:"Promise",stat:!0},{withResolvers:function(){var e=i.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}})},function(e,t,n){"use strict";var r=n(21);e.exports=function(e){return void 0!==e&&(r(e,"value")||r(e,"writable"))}},function(e,t,n){"use strict";var r=n(5),i=n(10).RegExp;e.exports=r((function(){var e=i("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},function(e,t,n){"use strict";var r=n(2),i=n(351);r({target:"Set",proto:!0,real:!0,forced:!n(128)("difference")},{difference:i})},function(e,t,n){"use strict";var r=n(63),i=n(58),o=n(257),a=n(161),s=n(127),u=n(80),c=n(112),l=i.has,f=i.remove;e.exports=function(e){var t=r(this),n=s(e),i=o(t);return a(t)<=n.size?u(t,(function(e){n.includes(e)&&f(i,e)})):c(n.getIterator(),(function(e){l(t,e)&&f(i,e)})),i}},function(e,t,n){"use strict";var r=n(2),i=n(5),o=n(353);r({target:"Set",proto:!0,real:!0,forced:!n(128)("intersection")||i((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}))},{intersection:o})},function(e,t,n){"use strict";var r=n(63),i=n(58),o=n(161),a=n(127),s=n(80),u=n(112),c=i.Set,l=i.add,f=i.has;e.exports=function(e){var t=r(this),n=a(e),i=new c;return o(t)>n.size?u(n.getIterator(),(function(e){f(t,e)&&l(i,e)})):s(t,(function(e){n.includes(e)&&l(i,e)})),i}},function(e,t,n){"use strict";var r=n(2),i=n(355);r({target:"Set",proto:!0,real:!0,forced:!n(128)("isDisjointFrom")},{isDisjointFrom:i})},function(e,t,n){"use strict";var r=n(63),i=n(58).has,o=n(161),a=n(127),s=n(80),u=n(112),c=n(108);e.exports=function(e){var t=r(this),n=a(e);if(o(t)<=n.size)return!1!==s(t,(function(e){if(n.includes(e))return!1}),!0);var l=n.getIterator();return!1!==u(l,(function(e){if(i(t,e))return c(l,"normal",!1)}))}},function(e,t,n){"use strict";var r=n(2),i=n(357);r({target:"Set",proto:!0,real:!0,forced:!n(128)("isSubsetOf")},{isSubsetOf:i})},function(e,t,n){"use strict";var r=n(63),i=n(161),o=n(80),a=n(127);e.exports=function(e){var t=r(this),n=a(e);return!(i(t)>n.size)&&!1!==o(t,(function(e){if(!n.includes(e))return!1}),!0)}},function(e,t,n){"use strict";var r=n(2),i=n(359);r({target:"Set",proto:!0,real:!0,forced:!n(128)("isSupersetOf")},{isSupersetOf:i})},function(e,t,n){"use strict";var r=n(63),i=n(58).has,o=n(161),a=n(127),s=n(112),u=n(108);e.exports=function(e){var t=r(this),n=a(e);if(o(t)<n.size)return!1;var c=n.getIterator();return!1!==s(c,(function(e){if(!i(t,e))return u(c,"normal",!1)}))}},function(e,t,n){"use strict";var r=n(2),i=n(361);r({target:"Set",proto:!0,real:!0,forced:!n(128)("symmetricDifference")},{symmetricDifference:i})},function(e,t,n){"use strict";var r=n(63),i=n(58),o=n(257),a=n(127),s=n(112),u=i.add,c=i.has,l=i.remove;e.exports=function(e){var t=r(this),n=a(e).getIterator(),i=o(t);return s(n,(function(e){c(t,e)?l(i,e):u(i,e)})),i}},function(e,t,n){"use strict";var r=n(2),i=n(363);r({target:"Set",proto:!0,real:!0,forced:!n(128)("union")},{union:i})},function(e,t,n){"use strict";var r=n(63),i=n(58).add,o=n(257),a=n(127),s=n(112);e.exports=function(e){var t=r(this),n=a(e).getIterator(),u=o(t);return s(n,(function(e){i(u,e)})),u}},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(34),a=n(18),s=i("".charCodeAt);r({target:"String",proto:!0},{isWellFormed:function(){for(var e=a(o(this)),t=e.length,n=0;n<t;n++){var r=s(e,n);if(55296==(63488&r)&&(r>=56320||++n>=t||56320!=(64512&s(e,n))))return!1}return!0}})},function(e,t,n){"use strict";var r=n(144).charAt,i=n(18),o=n(27),a=n(239),s=n(57),u=o.set,c=o.getterFor("String Iterator");a(String,"String",(function(e){u(this,{type:"String Iterator",string:i(e),index:0})}),(function(){var e,t=c(this),n=t.string,i=t.index;return i>=n.length?s(void 0,!0):(e=r(n,i),t.index+=e.length,s(e,!1))}))},function(e,t,n){"use strict";var r=n(2),i=n(9),o=n(119),a=n(123),s=n(57),u=n(34),c=n(77),l=n(18),f=n(8),d=n(49),p=n(60),h=n(199),v=n(160),g=n(44),m=n(28),y=n(5),b=n(13),x=n(140),w=n(202),_=n(162),S=n(27),O=n(23),k=b("matchAll"),E=S.set,j=S.getterFor("RegExp String Iterator"),T=RegExp.prototype,C=TypeError,A=o("".indexOf),P=o("".matchAll),M=!!P&&!y((function(){P("a",/./)})),I=a((function(e,t,n,r){E(this,{type:"RegExp String Iterator",regexp:e,string:t,global:n,unicode:r,done:!1})}),"RegExp String",(function(){var e=j(this);if(e.done)return s(void 0,!0);var t=e.regexp,n=e.string,r=_(t,n);return null===r?(e.done=!0,s(void 0,!0)):e.global?(""===l(r[0])&&(t.lastIndex=w(n,c(t.lastIndex),e.unicode)),s(r,!1)):(e.done=!0,s(r,!1))})),R=function(e){var t,n,r,i=f(this),o=l(e),a=x(i,RegExp),s=l(v(i));return t=new a(a===RegExp?i.source:i,s),n=!!~A(s,"g"),r=!!~A(s,"u"),t.lastIndex=c(i.lastIndex),new I(t,o,n,r)};r({target:"String",proto:!0,forced:M},{matchAll:function(e){var t,n,r,o,a=u(this);if(d(e)){if(M)return P(a,e)}else{if(h(e)&&(t=l(u(v(e))),!~A(t,"g")))throw new C("`.matchAll` does not allow non-global regexes");if(M)return P(a,e);if(void 0===(r=g(e,k))&&O&&"RegExp"===p(e)&&(r=R),r)return i(r,e,a)}return n=l(a),o=new RegExp(e,"g"),O?i(R,o,n):o[k](n)}}),O||k in T||m(T,k,R)},function(e,t,n){"use strict";var r=n(99);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},function(e,t,n){"use strict";var r=n(4),i=n(24),o=Math.floor,a=r("".charAt),s=r("".replace),u=r("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,f,d){var p=n+e.length,h=r.length,v=l;return void 0!==f&&(f=i(f),v=c),s(d,v,(function(i,s){var c;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return u(t,0,n);case"'":return u(t,p);case"<":c=f[u(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>h){var d=o(l/10);return 0===d?i:d<=h?void 0===r[d-1]?a(s,1):r[d-1]+a(s,1):i}c=r[l-1]}return void 0===c?"":c}))}},function(e,t,n){"use strict";var r=n(2),i=n(9),o=n(4),a=n(34),s=n(19),u=n(49),c=n(199),l=n(18),f=n(44),d=n(160),p=n(368),h=n(13),v=n(23),g=h("replace"),m=TypeError,y=o("".indexOf),b=o("".replace),x=o("".slice),w=Math.max;r({target:"String",proto:!0},{replaceAll:function(e,t){var n,r,o,h,_,S,O,k,E,j=a(this),T=0,C=0,A="";if(!u(e)){if((n=c(e))&&(r=l(a(d(e))),!~y(r,"g")))throw new m("`.replaceAll` does not allow non-global regexes");if(o=f(e,g))return i(o,e,j,t);if(v&&n)return b(l(j),e,t)}for(h=l(j),_=l(e),(S=s(t))||(t=l(t)),O=_.length,k=w(1,O),T=y(h,_);-1!==T;)E=S?l(t(_,T,h)):p(_,h,T,[],void 0,t),A+=x(h,C,T)+E,C=T+O,T=T+k>h.length?-1:y(h,_,T+k);return C<h.length&&(A+=x(h,C)),A}})},function(e,t,n){"use strict";var r=n(2),i=n(9),o=n(4),a=n(34),s=n(18),u=n(5),c=Array,l=o("".charAt),f=o("".charCodeAt),d=o([].join),p="".toWellFormed,h=p&&u((function(){return"1"!==i(p,1)}));r({target:"String",proto:!0,forced:h},{toWellFormed:function(){var e=s(a(this));if(h)return i(p,e);for(var t=e.length,n=c(t),r=0;r<t;r++){var o=f(e,r);55296!=(63488&o)?n[r]=l(e,r):o>=56320||r+1>=t||56320!=(64512&f(e,r+1))?n[r]="�":(n[r]=l(e,r),n[++r]=l(e,r))}return d(n,"")}})},function(e,t,n){"use strict";var r=n(141).end,i=n(260);e.exports=i("trimEnd")?function(){return r(this)}:"".trimEnd},function(e,t,n){"use strict";var r=n(141).start,i=n(260);e.exports=i("trimStart")?function(){return r(this)}:"".trimStart},function(e,t,n){"use strict";var r=n(163),i=RangeError;e.exports=function(e,t){var n=r(e);if(n%t)throw new i("Wrong offset");return n}},function(e,t,n){"use strict";var r=Math.round;e.exports=function(e){var t=r(e);return t<0?0:t>255?255:255&t}},function(e,t,n){"use strict";var r=n(30),i=n(9),o=n(190),a=n(24),s=n(25),u=n(121),c=n(107),l=n(236),f=n(262),d=n(22).aTypedArrayConstructor,p=n(203);e.exports=function(e){var t,n,h,v,g,m,y,b,x=o(this),w=a(e),_=arguments.length,S=_>1?arguments[1]:void 0,O=void 0!==S,k=c(w);if(k&&!l(k))for(b=(y=u(w,k)).next,w=[];!(m=i(b,y)).done;)w.push(m.value);for(O&&_>2&&(S=r(S,arguments[2])),n=s(w),h=new(d(x))(n),v=f(h),t=0;n>t;t++)g=O?S(w[t],t):w[t],h[t]=v?p(g):+g;return h}},function(e,t,n){"use strict";var r=n(22),i=n(25),o=n(36),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("at",(function(e){var t=a(this),n=i(t),r=o(e),s=r>=0?r:n+r;return s<0||s>=n?void 0:t[s]}))},function(e,t,n){"use strict";var r=n(22),i=n(185).findLast,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("findLast",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(22),i=n(185).findLastIndex,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("findLastIndex",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(309),i=n(22),o=i.aTypedArray,a=i.exportTypedArrayMethod,s=i.getTypedArrayConstructor;a("toReversed",(function(){return r(o(this),s(this))}))},function(e,t,n){"use strict";var r=n(22),i=n(4),o=n(17),a=n(110),s=r.aTypedArray,u=r.getTypedArrayConstructor,c=r.exportTypedArrayMethod,l=i(r.TypedArrayPrototype.sort);c("toSorted",(function(e){void 0!==e&&o(e);var t=s(this),n=a(u(t),t);return l(n,e)}))},function(e,t,n){"use strict";var r=n(314),i=n(22),o=n(262),a=n(36),s=n(203),u=i.aTypedArray,c=i.getTypedArrayConstructor,l=i.exportTypedArrayMethod,f=!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(e){return 8===e}}();l("with",{with:function(e,t){var n=u(this),i=a(e),l=o(n)?s(t):+t;return r(n,c(n),i,l)}}.with,!f)},function(e,t,n){"use strict";var r=n(4),i=n(88),o=n(125).getWeakData,a=n(67),s=n(8),u=n(49),c=n(15),l=n(42),f=n(46),d=n(21),p=n(27),h=p.set,v=p.getterFor,g=f.find,m=f.findIndex,y=r([].splice),b=0,x=function(e){return e.frozen||(e.frozen=new w)},w=function(){this.entries=[]},_=function(e,t){return g(e.entries,(function(e){return e[0]===t}))};w.prototype={get:function(e){var t=_(this,e);if(t)return t[1]},has:function(e){return!!_(this,e)},set:function(e,t){var n=_(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&&y(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,n,r){var f=e((function(e,i){a(e,p),h(e,{type:t,id:b++,frozen:void 0}),u(i)||l(i,e[r],{that:e,AS_ENTRIES:n})})),p=f.prototype,g=v(t),m=function(e,t,n){var r=g(e),i=o(s(t),!0);return!0===i?x(r).set(t,n):i[r.id]=n,e};return i(p,{delete:function(e){var t=g(this);if(!c(e))return!1;var n=o(e);return!0===n?x(t).delete(e):n&&d(n,t.id)&&delete n[t.id]},has:function(e){var t=g(this);if(!c(e))return!1;var n=o(e);return!0===n?x(t).has(e):n&&d(n,t.id)}}),i(p,n?{get:function(e){var t=g(this);if(c(e)){var n=o(e);return!0===n?x(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)}}),f}}},function(e,t,n){"use strict";var r=n(30),i=n(4),o=n(24),a=n(94),s=n(709),u=n(121),c=n(38),l=n(107),f=n(44),d=n(16),p=n(311),h=n(13),v=n(204),g=n(145).toArray,m=h("asyncIterator"),y=i(p("Array","values")),b=i(y([]).next),x=function(){return new w(this)},w=function(e){this.iterator=y(e)};w.prototype.next=function(){return b(this.iterator)},e.exports=function(e){var t=this,n=arguments.length,i=n>1?arguments[1]:void 0,p=n>2?arguments[2]:void 0;return new(d("Promise"))((function(n){var d=o(e);void 0!==i&&(i=r(i,p));var h=f(d,m),y=h?void 0:l(d)||x,b=a(t)?new t:[],w=h?s(d,h):new v(c(u(d,y)));n(g(w,i,b))}))}},function(e,t,n){"use strict";var r=n(30),i=n(4),o=n(104),a=n(24),s=n(25),u=n(62),c=u.Map,l=u.get,f=u.has,d=u.set,p=i([].push);e.exports=function(e){for(var t,n,i=a(this),u=o(i),h=r(e,arguments.length>1?arguments[1]:void 0),v=new c,g=s(u),m=0;g>m;m++)t=h(n=u[m],m,i),f(v,t)?p(l(v,t),n):d(v,t,[n]);return v}},function(e,t,n){"use strict";var r=n(9),i=n(4),o=n(30),a=n(8),s=n(17),u=n(49),c=n(44),l=n(13),f=l("asyncDispose"),d=l("dispose"),p=i([].push),h=function(e,t){if("async-dispose"===t){var n=c(e,f);return void 0!==n||void 0===(n=c(e,d))?n:function(){r(n,this)}}return c(e,d)},v=function(e,t,n){return arguments.length<3&&!u(e)&&(n=s(h(a(e),t))),void 0===n?function(){}:o(n,e)};e.exports=function(e,t,n,r){var i;if(arguments.length<4){if(u(t)&&"sync-dispose"===n)return;i=v(t,n)}else i=v(void 0,n,r);p(e.stack,i)}},function(e,t,n){"use strict";var r=n(9),i=n(387),o=function(e,t){return[t,e]};e.exports=function(){return r(i,this,o)}},function(e,t,n){"use strict";var r=n(9),i=n(17),o=n(8),a=n(15),s=n(38),u=n(146),c=n(57),l=n(166),f=u((function(e){var t=this,n=t.iterator,i=t.mapper;return new e((function(s,u){var f=function(e){t.done=!0,u(e)},d=function(e){l(n,f,e,f)};e.resolve(o(r(t.next,n))).then((function(n){try{if(o(n).done)t.done=!0,s(c(void 0,!0));else{var r=n.value;try{var u=i(r,t.counter++),l=function(e){s(c(e,!1))};a(u)?e.resolve(u).then(l,d):l(u)}catch(e){d(e)}}}catch(e){f(e)}}),f)}))}));e.exports=function(e){return o(this),i(e),new f(s(this),{mapper:e})}},function(e,t,n){"use strict";var r=n(9),i=n(19),o=n(8),a=n(38),s=n(107),u=n(44),c=n(13),l=n(204),f=c("asyncIterator");e.exports=function(e){var t,n=o(e),c=!0,d=u(n,f);return i(d)||(d=s(n),c=!1),void 0!==d?t=r(d,n):(t=n,c=!0),o(t),a(c?t:new l(a(t)))}},function(e,t,n){"use strict";var r=n(9),i=n(146);e.exports=i((function(){return r(this.next,this.iterator)}),!0)},function(e,t,n){"use strict";n(249),n(264);var r=n(16),i=n(45),o=n(15),a=Object,s=TypeError,u=r("Map"),c=r("WeakMap"),l=function(){this.object=null,this.symbol=null,this.primitives=null,this.objectsByIndex=i(null)};l.prototype.get=function(e,t){return this[e]||(this[e]=t())},l.prototype.next=function(e,t,n){var r=n?this.objectsByIndex[e]||(this.objectsByIndex[e]=new c):this.primitives||(this.primitives=new u),i=r.get(t);return i||r.set(t,i=new l),i};var f=new l;e.exports=function(){var e,t,n=f,r=arguments.length;for(e=0;e<r;e++)o(t=arguments[e])&&(n=n.next(e,t,!0));if(this===a&&n===f)throw new s("Composite keys must contain a non-primitive component");for(e=0;e<r;e++)o(t=arguments[e])||(n=n.next(e,t,!1));return n}},function(e,t,n){"use strict";var r=n(78),i=TypeError;e.exports=function(e){if("DataView"===r(e))return e;throw new i("Argument is not a DataView")}},function(e,t,n){"use strict";var r=n(315);e.exports=Math.f16round||function(e){return r(e,.0009765625,65504,6103515625e-14)}},function(e,t,n){"use strict";var r=n(4),i=n(17);e.exports=function(){return r(i(this))}},function(e,t,n){"use strict";var r=n(9),i=n(395),o=function(e,t){return[t,e]};e.exports=function(){return r(i,this,o)}},function(e,t,n){"use strict";var r=n(9),i=n(17),o=n(8),a=n(38),s=n(147),u=n(238),c=s((function(){var e=this.iterator,t=o(r(this.next,e));if(!(this.done=!!t.done))return u(e,this.mapper,[t.value,this.counter++],!0)}));e.exports=function(e){return o(this),i(e),new c(a(this),{mapper:e})}},function(e,t,n){"use strict";var r=n(9),i=n(8),o=n(38),a=n(107);e.exports=function(e,t){t&&"string"==typeof e||i(e);var n=a(e);return o(i(void 0!==n?r(n,e):e))}},function(e,t,n){"use strict";var r=n(5);e.exports=!r((function(){var e=JSON.rawJSON("9007199254740993");return!JSON.isRawJSON(e)||"9007199254740993"!==JSON.stringify(e)}))},function(e,t,n){"use strict";var r=n(15),i=n(27).get;e.exports=function(e){if(!r(e))return!1;var t=i(e);return!!t&&"RawJSON"===t.type}},function(e,t,n){"use strict";var r=n(4),i=n(21),o=SyntaxError,a=parseInt,s=String.fromCharCode,u=r("".charAt),c=r("".slice),l=r(/./.exec),f={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},d=/^[\da-f]{4}$/i,p=/^[\u0000-\u001F]$/;e.exports=function(e,t){for(var n=!0,r="";t<e.length;){var h=u(e,t);if("\\"===h){var v=c(e,t,t+2);if(i(f,v))r+=f[v],t+=2;else{if("\\u"!==v)throw new o('Unknown escape sequence: "'+v+'"');var g=c(e,t+=2,t+4);if(!l(d,g))throw new o("Bad Unicode escape at: "+t);r+=s(a(g,16)),t+=4}}else{if('"'===h){n=!1,t++;break}if(l(p,h))throw new o("Bad control character in string literal at: "+t);r+=h,t++}}if(n)throw new o("Unterminated string at: "+t);return{value:r,end:t}}},function(e,t,n){"use strict";e.exports=Math.scale||function(e,t,n,r,i){var o=+e,a=+t,s=+n,u=+r,c=+i;return o!=o||a!=a||s!=s||u!=u||c!=c?NaN:o===1/0||o===-1/0?o:(o-a)*(c-u)/(s-a)+u}},function(e,t,n){"use strict";var r=n(4),i=n(48),o=n(18),a=n(25),s=TypeError,u=r([].push),c=r([].join);e.exports=function(e){var t=i(e),n=a(t);if(!n)return"";for(var r=arguments.length,l=[],f=0;;){var d=t[f++];if(void 0===d)throw new s("Incorrect template");if(u(l,o(d)),f===n)return c(l,"");f<r&&u(l,o(arguments[f]))}}},function(e,t,n){"use strict";var r=n(16),i=n(4),o=r("Symbol"),a=o.keyFor,s=i(o.prototype.valueOf);e.exports=o.isRegisteredSymbol||function(e){try{return void 0!==a(s(e))}catch(e){return!1}}},function(e,t,n){"use strict";for(var r=n(106),i=n(16),o=n(4),a=n(105),s=n(13),u=i("Symbol"),c=u.isWellKnownSymbol,l=i("Object","getOwnPropertyNames"),f=o(u.prototype.valueOf),d=r("wks"),p=0,h=l(u),v=h.length;p<v;p++)try{var g=h[p];a(u[g])&&s(g)}catch(e){}e.exports=function(e){if(c&&c(e))return!0;try{for(var t=f(e),n=0,r=l(d),i=r.length;n<i;n++)if(d[r[n]]==t)return!0}catch(e){}return!1}},function(e,t,n){"use strict";var r=n(15),i=String,o=TypeError;e.exports=function(e){if(void 0===e||r(e))return e;throw new o(i(e)+" is not an object or undefined")}},function(e,t,n){"use strict";var r=TypeError;e.exports=function(e){if("string"==typeof e)return e;throw new r("Argument is not a string")}},function(e,t,n){"use strict";var r=TypeError;e.exports=function(e){var t=e&&e.alphabet;if(void 0===t||"base64"===t||"base64url"===t)return t||"base64";throw new r("Incorrect `alphabet` option")}},function(e,t,n){"use strict";var r=n(78),i=TypeError;e.exports=function(e){if("Uint8Array"===r(e))return e;throw new i("Argument is not an Uint8Array")}},function(e,t,n){"use strict";var r=n(148).has;e.exports=function(e){return r(e),e}},function(e,t,n){"use strict";var r=n(167).has;e.exports=function(e){return r(e),e}},function(e,t,n){"use strict";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=n(178)("span").classList,i=r&&r.constructor&&r.constructor.prototype;e.exports=i===Object.prototype?void 0:i},function(e,t,n){"use strict";e.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},function(e,t,n){"use strict";n(187);var r=n(2),i=n(10),o=n(341),a=n(9),s=n(4),u=n(12),c=n(209),l=n(28),f=n(37),d=n(88),p=n(72),h=n(123),v=n(27),g=n(67),m=n(19),y=n(21),b=n(30),x=n(78),w=n(8),_=n(15),S=n(18),O=n(45),k=n(76),E=n(121),j=n(107),T=n(57),C=n(84),A=n(13),P=n(241),M=A("iterator"),I=v.set,R=v.getterFor("URLSearchParams"),D=v.getterFor("URLSearchParamsIterator"),L=o("fetch"),N=o("Request"),F=o("Headers"),B=N&&N.prototype,U=F&&F.prototype,z=i.RegExp,V=i.TypeError,H=i.decodeURIComponent,W=i.encodeURIComponent,q=s("".charAt),G=s([].join),Y=s([].push),K=s("".replace),$=s([].shift),X=s([].splice),Q=s("".split),Z=s("".slice),J=/\+/g,ee=Array(4),te=function(e){return ee[e-1]||(ee[e-1]=z("((?:%[\\da-f]{2}){"+e+"})","gi"))},ne=function(e){try{return H(e)}catch(t){return e}},re=function(e){var t=K(e,J," "),n=4;try{return H(t)}catch(e){for(;n;)t=K(t,te(n--),ne);return t}},ie=/[!'()~]|%20/g,oe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ae=function(e){return oe[e]},se=function(e){return K(W(e),ie,ae)},ue=h((function(e,t){I(this,{type:"URLSearchParamsIterator",target:R(e).entries,index:0,kind:t})}),"URLSearchParams",(function(){var e=D(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,T(void 0,!0);var r=t[n];switch(e.kind){case"keys":return T(r.key,!1);case"values":return T(r.value,!1)}return T([r.key,r.value],!1)}),!0),ce=function(e){this.entries=[],this.url=null,void 0!==e&&(_(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===q(e,0)?Z(e,1):e:S(e)))};ce.prototype={type:"URLSearchParams",bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,i,o,s,u,c=this.entries,l=j(e);if(l)for(n=(t=E(e,l)).next;!(r=a(n,t)).done;){if(o=(i=E(w(r.value))).next,(s=a(o,i)).done||(u=a(o,i)).done||!a(o,i).done)throw new V("Expected sequence with length 2");Y(c,{key:S(s.value),value:S(u.value)})}else for(var f in e)y(e,f)&&Y(c,{key:f,value:S(e[f])})},parseQuery:function(e){if(e)for(var t,n,r=this.entries,i=Q(e,"&"),o=0;o<i.length;)(t=i[o++]).length&&(n=Q(t,"="),Y(r,{key:re($(n)),value:re(G(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],Y(n,se(e.key)+"="+se(e.value));return G(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var le=function(){g(this,fe);var e=arguments.length>0?arguments[0]:void 0,t=I(this,new ce(e));u||(this.size=t.entries.length)},fe=le.prototype;if(d(fe,{append:function(e,t){var n=R(this);C(arguments.length,2),Y(n.entries,{key:S(e),value:S(t)}),u||this.length++,n.updateURL()},delete:function(e){for(var t=R(this),n=C(arguments.length,1),r=t.entries,i=S(e),o=n<2?void 0:arguments[1],a=void 0===o?o:S(o),s=0;s<r.length;){var c=r[s];if(c.key!==i||void 0!==a&&c.value!==a)s++;else if(X(r,s,1),void 0!==a)break}u||(this.size=r.length),t.updateURL()},get:function(e){var t=R(this).entries;C(arguments.length,1);for(var n=S(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){var t=R(this).entries;C(arguments.length,1);for(var n=S(e),r=[],i=0;i<t.length;i++)t[i].key===n&&Y(r,t[i].value);return r},has:function(e){for(var t=R(this).entries,n=C(arguments.length,1),r=S(e),i=n<2?void 0:arguments[1],o=void 0===i?i:S(i),a=0;a<t.length;){var s=t[a++];if(s.key===r&&(void 0===o||s.value===o))return!0}return!1},set:function(e,t){var n=R(this);C(arguments.length,1);for(var r,i=n.entries,o=!1,a=S(e),s=S(t),c=0;c<i.length;c++)(r=i[c]).key===a&&(o?X(i,c--,1):(o=!0,r.value=s));o||Y(i,{key:a,value:s}),u||(this.size=i.length),n.updateURL()},sort:function(){var e=R(this);P(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=R(this).entries,r=b(e,arguments.length>1?arguments[1]:void 0),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new ue(this,"keys")},values:function(){return new ue(this,"values")},entries:function(){return new ue(this,"entries")}},{enumerable:!0}),l(fe,M,fe.entries,{name:"entries"}),l(fe,"toString",(function(){return R(this).serialize()}),{enumerable:!0}),u&&f(fe,"size",{get:function(){return R(this).entries.length},configurable:!0,enumerable:!0}),p(le,"URLSearchParams"),r({global:!0,constructor:!0,forced:!c},{URLSearchParams:le}),!c&&m(F)){var de=s(U.has),pe=s(U.set),he=function(e){if(_(e)){var t,n=e.body;if("URLSearchParams"===x(n))return t=e.headers?new F(e.headers):new F,de(t,"content-type")||pe(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),O(e,{body:k(0,S(n)),headers:k(0,t)})}return e};if(m(L)&&r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return L(e,arguments.length>1?he(arguments[1]):{})}}),m(N)){var ve=function(e){return g(this,B),new N(e,arguments.length>1?he(arguments[1]):{})};B.constructor=ve,ve.prototype=B,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ve})}}e.exports={URLSearchParams:le,getState:R}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(414);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(14),i=n(7),o=n(218),a=n(213),s=n(95),u=n(114),c=n(20),l=n(132),f=function(){function e(e){void 0===e&&(e={}),this.queryCache=e.queryCache||new o.a,this.mutationCache=e.mutationCache||new a.a,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var e=this;this.unsubscribeFocus=s.a.subscribe((function(){s.a.isFocused()&&u.a.isOnline()&&(e.mutationCache.onFocus(),e.queryCache.onFocus())})),this.unsubscribeOnline=u.a.subscribe((function(){s.a.isFocused()&&u.a.isOnline()&&(e.mutationCache.onOnline(),e.queryCache.onOnline())}))},t.unmount=function(){var e,t;null==(e=this.unsubscribeFocus)||e.call(this),null==(t=this.unsubscribeOnline)||t.call(this)},t.isFetching=function(e,t){var n=Object(i.m)(e,t)[0];return n.fetching=!0,this.queryCache.findAll(n).length},t.isMutating=function(e){return this.mutationCache.findAll(Object(r.a)({},e,{fetching:!0})).length},t.getQueryData=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data},t.getQueriesData=function(e){return this.getQueryCache().findAll(e).map((function(e){return[e.queryKey,e.state.data]}))},t.setQueryData=function(e,t,n){var r=Object(i.p)(e),o=this.defaultQueryOptions(r);return this.queryCache.build(this,o).setData(t,n)},t.setQueriesData=function(e,t,n){var r=this;return c.a.batch((function(){return r.getQueryCache().findAll(e).map((function(e){var i=e.queryKey;return[i,r.setQueryData(i,t,n)]}))}))},t.getQueryState=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state},t.removeQueries=function(e,t){var n=Object(i.m)(e,t)[0],r=this.queryCache;c.a.batch((function(){r.findAll(n).forEach((function(e){r.remove(e)}))}))},t.resetQueries=function(e,t,n){var o=this,a=Object(i.m)(e,t,n),s=a[0],u=a[1],l=this.queryCache,f=Object(r.a)({},s,{active:!0});return c.a.batch((function(){return l.findAll(s).forEach((function(e){e.reset()})),o.refetchQueries(f,u)}))},t.cancelQueries=function(e,t,n){var r=this,o=Object(i.m)(e,t,n),a=o[0],s=o[1],u=void 0===s?{}:s;void 0===u.revert&&(u.revert=!0);var l=c.a.batch((function(){return r.queryCache.findAll(a).map((function(e){return e.cancel(u)}))}));return Promise.all(l).then(i.l).catch(i.l)},t.invalidateQueries=function(e,t,n){var o,a,s,u=this,l=Object(i.m)(e,t,n),f=l[0],d=l[1],p=Object(r.a)({},f,{active:null==(o=null!=(a=f.refetchActive)?a:f.active)||o,inactive:null!=(s=f.refetchInactive)&&s});return c.a.batch((function(){return u.queryCache.findAll(f).forEach((function(e){e.invalidate()})),u.refetchQueries(p,d)}))},t.refetchQueries=function(e,t,n){var o=this,a=Object(i.m)(e,t,n),s=a[0],u=a[1],l=c.a.batch((function(){return o.queryCache.findAll(s).map((function(e){return e.fetch(void 0,Object(r.a)({},u,{meta:{refetchPage:null==s?void 0:s.refetchPage}}))}))})),f=Promise.all(l).then(i.l);return(null==u?void 0:u.throwOnError)||(f=f.catch(i.l)),f},t.fetchQuery=function(e,t,n){var r=Object(i.p)(e,t,n),o=this.defaultQueryOptions(r);void 0===o.retry&&(o.retry=!1);var a=this.queryCache.build(this,o);return a.isStaleByTime(o.staleTime)?a.fetch(o):Promise.resolve(a.state.data)},t.prefetchQuery=function(e,t,n){return this.fetchQuery(e,t,n).then(i.l).catch(i.l)},t.fetchInfiniteQuery=function(e,t,n){var r=Object(i.p)(e,t,n);return r.behavior=Object(l.c)(),this.fetchQuery(r)},t.prefetchInfiniteQuery=function(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(i.l).catch(i.l)},t.cancelMutations=function(){var e=this,t=c.a.batch((function(){return e.mutationCache.getAll().map((function(e){return e.cancel()}))}));return Promise.all(t).then(i.l).catch(i.l)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(e){return this.mutationCache.build(this,e).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(e){this.defaultOptions=e},t.setQueryDefaults=function(e,t){var n=this.queryDefaults.find((function(t){return Object(i.e)(e)===Object(i.e)(t.queryKey)}));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})},t.getQueryDefaults=function(e){var t;return e?null==(t=this.queryDefaults.find((function(t){return Object(i.q)(e,t.queryKey)})))?void 0:t.defaultOptions:void 0},t.setMutationDefaults=function(e,t){var n=this.mutationDefaults.find((function(t){return Object(i.e)(e)===Object(i.e)(t.mutationKey)}));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})},t.getMutationDefaults=function(e){var t;return e?null==(t=this.mutationDefaults.find((function(t){return Object(i.q)(e,t.mutationKey)})))?void 0:t.defaultOptions:void 0},t.defaultQueryOptions=function(e){if(null==e?void 0:e._defaulted)return e;var t=Object(r.a)({},this.defaultOptions.queries,this.getQueryDefaults(null==e?void 0:e.queryKey),e,{_defaulted:!0});return!t.queryHash&&t.queryKey&&(t.queryHash=Object(i.f)(t.queryKey,t)),t},t.defaultQueryObserverOptions=function(e){return this.defaultQueryOptions(e)},t.defaultMutationOptions=function(e){return(null==e?void 0:e._defaulted)?e:Object(r.a)({},this.defaultOptions.mutations,this.getMutationDefaults(null==e?void 0:e.mutationKey),e,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}()},function(e,t){},function(e,t,n){"use strict";n.r(t),n(1048),n(1049);var r=n(70);n.d(t,"QueryClientProvider",(function(){return r.a})),n.d(t,"useQueryClient",(function(){return r.b}));var i=n(168);n.d(t,"QueryErrorResetBoundary",(function(){return i.a})),n.d(t,"useQueryErrorResetBoundary",(function(){return i.b}));var o=n(419);n.d(t,"useIsFetching",(function(){return o.a}));var a=n(420);n.d(t,"useIsMutating",(function(){return a.a}));var s=n(421);n.d(t,"useMutation",(function(){return s.a}));var u=n(422);n.d(t,"useQuery",(function(){return u.a}));var c=n(423);n.d(t,"useQueries",(function(){return c.a}));var l=n(424);n.d(t,"useInfiniteQuery",(function(){return l.a}));var f=n(271);n.d(t,"useHydrate",(function(){return f.b})),n.d(t,"Hydrate",(function(){return f.a}));var d=n(425);for(var p in d)["default","QueryClientProvider","useQueryClient","QueryErrorResetBoundary","useQueryErrorResetBoundary","useIsFetching","useIsMutating","useMutation","useQuery","useQueries","useInfiniteQuery","useHydrate","Hydrate"].indexOf(p)<0&&function(e){n.d(t,e,(function(){return d[e]}))}(p)},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(0),i=n.n(r),o=n(20),a=n(7),s=n(70),u=function(e,t,n,r){var i=e.isFetching(t);n!==i&&r(i)};function c(e,t){var n=i.a.useRef(!1),r=Object(s.b)(),c=Object(a.m)(e,t)[0],l=i.a.useState(r.isFetching(c)),f=l[0],d=l[1],p=i.a.useRef(c);p.current=c;var h=i.a.useRef(f);return h.current=f,i.a.useEffect((function(){n.current=!0,u(r,p.current,h.current,d);var e=r.getQueryCache().subscribe(o.a.batchCalls((function(){n.current&&u(r,p.current,h.current,d)})));return function(){n.current=!1,e()}}),[r]),f}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(0),i=n.n(r),o=n(20),a=n(7),s=n(70);function u(e,t){var n=i.a.useRef(!1),r=Object(a.o)(e,t),u=Object(s.b)(),c=i.a.useState(u.isMutating(r)),l=c[0],f=c[1],d=i.a.useRef(r);d.current=r;var p=i.a.useRef(l);return p.current=l,i.a.useEffect((function(){n.current=!0;var e=u.getMutationCache().subscribe(o.a.batchCalls((function(){if(n.current){var e=u.isMutating(d.current);p.current!==e&&f(e)}})));return function(){n.current=!1,e()}}),[u]),l}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(14),i=n(0),o=n.n(i),a=n(20),s=n(7),u=n(216),c=n(70),l=n(220);function f(e,t,n){var i=o.a.useRef(!1),f=o.a.useState(0)[1],d=Object(s.n)(e,t,n),p=Object(c.b)(),h=o.a.useRef();h.current?h.current.setOptions(d):h.current=new u.a(p,d);var v=h.current.getCurrentResult();o.a.useEffect((function(){i.current=!0;var e=h.current.subscribe(a.a.batchCalls((function(){i.current&&f((function(e){return e+1}))})));return function(){i.current=!1,e()}}),[]);var g=o.a.useCallback((function(e,t){h.current.mutate(e,t).catch(s.l)}),[]);if(v.error&&Object(l.a)(void 0,h.current.options.useErrorBoundary,[v.error]))throw v.error;return Object(r.a)({},v,{mutate:g,mutateAsync:v.mutate})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(130),i=n(7),o=n(221);function a(e,t,n){var a=Object(i.p)(e,t,n);return Object(o.a)(a,r.a)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(0),i=n.n(r),o=n(20),a=n(214),s=n(70);function u(e){var t=i.a.useRef(!1),n=i.a.useState(0)[1],u=Object(s.b)(),c=Object(r.useMemo)((function(){return e.map((function(e){var t=u.defaultQueryObserverOptions(e);return t.optimisticResults=!0,t}))}),[e,u]),l=i.a.useState((function(){return new a.a(u,c)}))[0],f=l.getOptimisticResult(c);return i.a.useEffect((function(){t.current=!0;var e=l.subscribe(o.a.batchCalls((function(){t.current&&n((function(e){return e+1}))})));return function(){t.current=!1,e()}}),[l]),i.a.useEffect((function(){l.setQueries(c,{listeners:!1})}),[c,l]),f}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(215),i=n(7),o=n(221);function a(e,t,n){var a=Object(i.p)(e,t,n);return Object(o.a)(a,r.a)}},function(e,t){},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(59);function i(e){return encodeURIComponent(e).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={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},function(e,t,n){"use strict";(function(t){var r=n(59);e.exports=function(e,n){n=n||new FormData;var i=[];function o(e){return null===e?"":r.isDate(e)?e.toISOString():r.isArrayBuffer(e)||r.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):t.from(e):e}return function e(t,a){if(r.isPlainObject(t)||r.isArray(t)){if(-1!==i.indexOf(t))throw Error("Circular reference detected in "+a);i.push(t),r.forEach(t,(function(t,i){if(!r.isUndefined(t)){var s,u=a?a+"."+i:i;if(t&&!a&&"object"==I(t))if(r.endsWith(i,"{}"))t=JSON.stringify(t);else if(r.endsWith(i,"[]")&&(s=r.toArray(t)))return void s.forEach((function(e){!r.isUndefined(e)&&n.append(u,o(e))}));e(t,u)}})),i.pop()}else n.append(a,o(t))}(e),n}}).call(this,n(273).Buffer)},function(e,t,n){"use strict";var r=n(59),i=n(972),o=n(973),a=n(427),s=n(431),u=n(976),c=n(977),l=n(428),f=n(151),d=n(212),p=n(978);e.exports=function(e){return new Promise((function(t,n){var h,v=e.data,g=e.headers,m=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}r.isFormData(v)&&r.isStandardBrowserEnv()&&delete g["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var x=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";g.Authorization="Basic "+btoa(x+":"+w)}var _=s(e.baseURL,e.url);function S(){if(b){var r="getAllResponseHeaders"in b?u(b.getAllResponseHeaders()):null,o={data:m&&"text"!==m&&"json"!==m?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b};i((function(e){t(e),y()}),(function(e){n(e),y()}),o),b=null}}if(b.open(e.method.toUpperCase(),a(_,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=S:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(S)},b.onabort=function(){b&&(n(new f("Request aborted",f.ECONNABORTED,e,b)),b=null)},b.onerror=function(){n(new f("Network Error",f.ERR_NETWORK,e,b,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||l;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new f(t,r.clarifyTimeoutError?f.ETIMEDOUT:f.ECONNABORTED,e,b)),b=null},r.isStandardBrowserEnv()){var O=(e.withCredentials||c(_))&&e.xsrfCookieName?o.read(e.xsrfCookieName):void 0;O&&(g[e.xsrfHeaderName]=O)}"setRequestHeader"in b&&r.forEach(g,(function(e,t){void 0===v&&"content-type"===t.toLowerCase()?delete g[t]:b.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),m&&"json"!==m&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function(e){b&&(n(!e||e&&e.type?new d:e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),v||(v=null);var k=p(_);k&&-1===["http","https","file"].indexOf(k)?n(new f("Unsupported protocol "+k+":",f.ERR_BAD_REQUEST,e)):b.send(v)}))}},function(e,t,n){"use strict";var r=n(974),i=n(975);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";var r=n(59);e.exports=function(e,t){t=t||{};var n={};function i(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function o(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(e[n],t[n])}function a(e){if(!r.isUndefined(t[e]))return i(void 0,t[e])}function s(n){return r.isUndefined(t[n])?r.isUndefined(e[n])?void 0:i(void 0,e[n]):i(void 0,t[n])}function u(n){return n in t?i(e[n],t[n]):n in e?i(void 0,e[n]):void 0}var c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u};return r.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||o,i=t(e);r.isUndefined(i)&&t!==u||(n[e]=i)})),n}},function(e,t){e.exports={version:"0.27.2"}},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){"use strict";var r=n(52);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},function(e,t){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},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,o=n(54),a=n(0),s=r(n(211));t.default=(0,a.memo)((function(e){var t=e.name,n=e.start,r=e.end,u=e.episodes_url,c=e.headers,l=e.basicApiConfig,f=e.setMotions,d=T((0,a.useState)(void 0),2),p=d[0],h=d[1],v={},g="";if(u.length>1){var m="".concat(u.includes("https://")||u.includes("http://")?"":l.baseURL).concat(u),y=new URL(m),b=y.search,x=y.origin,w=y.pathname,_=(0,o.decode)(b.replace(/^\?/,""));x&&w&&(g="".concat(x).concat(w)),v=Object.assign(Object.assign(Object.assign({},v),_),{cursor:p,sort:"-opened_at"})}else g="".concat(l.baseURL,"/vsaas/api/v2/cameras/").concat(t,"/timeline-events"),v=Object.assign(Object.assign({},l.params),v);u.includes("v2")?v=Object.assign(Object.assign({},v),{from:Math.round(n),to:Math.round(r)}):u.includes("v3")&&(v=Object.assign(Object.assign({},v),{opened_at_gt:Math.round(1e3*n)}));var S=function(){s.default.get(g,{headers:c,params:v}).then((function(e){var n=e.data;(null==n?void 0:n.next)?h(n.next):h(void 0),f(t,n)})).catch((function(e){console.log(e)}))};return(0,a.useEffect)((function(){return h(void 0),i=setTimeout((function(){return S()}),700),function(){return clearTimeout(i)}}),[n,r,g,c,t]),(0,a.useEffect)((function(){p&&S()}),[p]),null}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(54),i=n(0),o=n(150);t.default=(0,i.memo)((function(e){var t=e.name,n=e.stats,a=e.address,s=e.statsSendTime,u=e.basicApiConfig,c=e.auth_token,l={};if(c){var f=(0,r.decode)(c.replace(/^\?/,""));l=Object.assign(Object.assign({},l),f)}var d=Object.assign(Object.assign({},u),{params:Object.assign(Object.assign({},u.params),l),baseURL:a||u.baseURL,encodeParams:!1}),p=(0,o.session_save)({showSuccessMessage:!1,showErrorMessage:!1}),h=(0,i.useRef)(!0),v=(0,i.useCallback)((function(){var e=n();if("started_at"in e){var r=JSON.stringify(e),i=JSON.parse(r);if(i&&i.source_id&&i.id){var o=i.source_id;p({params:{name:t,id:o},config:d,body:i})}}}),[t,p,n]);return(0,i.useEffect)((function(){var e=setTimeout((function(){h.current&&(v(),h.current=!1)}),3e3),t=setInterval((function(){v()}),s?1e3*s:6e4);return function(){clearTimeout(e),clearInterval(t)}}),[v]),null}))},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=n(54),o=n(0),a=r(n(211)),s=n(150);t.default=(0,o.memo)((function(e){var t,n=e.name,r=e.basicApiConfig,u=e.returnData,c=e.address,l=e.auth_token,f=e.info_url,d=e.isLive,p=T((0,o.useState)(),2),h=p[0],v=p[1],g={};if(l){var m=(0,i.decode)(l.replace(/^\?/,""));g=Object.assign(Object.assign({},g),m)}var y=Object.assign(Object.assign({},r),{baseURL:c||r.baseURL,params:Object.assign(Object.assign({},r.params),g)});(0,s.public_stream_get)({params:{name:n},options:{refetchInterval:5e3,keepPreviousData:!0,enabled:!f,onSuccess:function(e){u("networkError",!1),v(e)},onError:function(e){e&&"code"in e&&"ERR_NETWORK"===e.code&&d&&u("networkError",!0)}},config:y});var b=function(){return a.default.get("".concat(f,"/").concat(n,"/info.json"),{params:Object.assign({},y.params)}).then((function(e){v(null==e?void 0:e.data),u("info",null==e?void 0:e.data,n),u("networkError",!1)})).catch((function(e){console.log(e)}))};(0,o.useEffect)((function(){var e;return f&&l&&(b(),e=setTimeout((function(){b()}),5e3)),function(){return clearTimeout(e)}}),[l,f]),(0,o.useEffect)((function(){h&&Object.keys(h).length&&u("info",h,n)}),[h,u,n]);var x=(0,o.useMemo)((function(){var e;return!(!(null===(e=null==h?void 0:h.stats)||void 0===e?void 0:e.status)||"running"!==h.stats.status)}),[null===(t=null==h?void 0:h.stats)||void 0===t?void 0:t.status]);return(0,o.useEffect)((function(){u("streamIsLive",x,n)}),[x,u,n]),null}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.basicConfig=void 0;var r=n(54),i=n(150);t.basicConfig=function(e){var t=e.token,n=e.tokenName,o=e.auth_token,a=e.streamer_http,s={},u=n||"token";if(o){var c=(0,r.decode)(o.replace(/^\?/,""));s=Object.assign(Object.assign({},s),c)}return t&&(s=Object.assign(Object.assign({},s),E({},u,t))),{baseURL:a||i.axiosInstance.getUri(),params:s}}},function(e,t,n){"use strict";var r=this,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MSEPlayer=void 0;var u=a(n(0)),c=s(n(992));t.MSEPlayer=function(e){var t=e.name,n=e.url,i=e.setRef,o=e.muted,a=e.handleFullScreen,s=e.returnData,l=e.onMediaInfo,f=e.setNoLiveError,d=e.setNoVideoError,p=e.multiStream,h=e.isSelected,v=e.currentTime,g=e.newTracks,m=e.paused,y=e.debug,b=e.debugTimers,x=(0,u.useRef)(null),w=T((0,u.useState)([]),2),_=w[0],S=w[1],O=T((0,u.useState)([]),2),k=O[0],E=O[1],j=T((0,u.useState)(null),2),C=j[0],A=j[1],P=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mse",r=e.streams,i=e.activeStreams;S(r),E(i),l(Object.assign(Object.assign({},e),{streamName:t}),n),f(!1)};(0,u.useEffect)((function(){var e=new c.default(x.current,n,{debug:y,connectionRetries:0,errorsBeforeStop:0,retryMuted:!1,onCrashTryVideoOnly:!1,maxBufferDelay:2,progressUpdateTime:100,wsReconnect:!1,statsSendEnable:!1,onProgress:function(e){if(s("progressTimeForPlayers",e,t),h&&x.current){var n=x.current.getVideoPlaybackQuality();if(n){var r=n.corruptedVideoFrames,i=n.droppedVideoFrames,o=n.totalVideoFrames;s("vQuality",{corruptedVideoFrames:r,droppedVideoFrames:i,totalVideoFrames:o})}}},onDisconnect:function(e){console.log("Websocket status:",e)},onError:function(e){if(y&&console.log("••••• ERROR on:",t,e),s("playingTimeForPlayers","stop",t),s("playerProgressTime",(new Date).getTime()/1e3),s("playerReady",!0,t),"object"==I(e)&&"error"in e){var n=e.error;"playPromise reject - stream unavaible"!==n&&"play_promise_reject"!==n||(s("isStalling",!1),d(!0))}}.bind(r)});b&&(console.timeEnd("[DVRPlayer]: Playback Startup Time"),x.current&&(x.current.oncanplay=function(){console.timeEnd("[DVRPlayer]: Time to first frame")})),e.onMediaInfo=P,A(e),s("live",!0),s("playback_speed",1),h&&e&&s("playerLink",e);var a=T(g,2),u=a[0],l=a[1];return g&&g.length&&(l.length&&!Number.isNaN(Number(l))&&(l="a"+(Number(l)+1)),u.length&&!Number.isNaN(Number(u))&&(u=-1===Number(u)?"v1":"v"+(Number(u)+1))),e.play(u,l).then((function(){o||!x.current||function(){var e=performance.getEntriesByType("navigation")[0];return e&&"reload"===e.type}()?s("muted",!0):x.current.muted=o})).catch((function(e){return y&&console.log("Nothing to play",e),null})).finally((function(){if(s("playerReady",!0,t),s("isStalling",!1),i(x.current),p){var n=_.filter((function(e){return"v"===e.track_id.charAt(0)})),r=_.filter((function(e){return"a"===e.track_id.charAt(0)})),o=99999,a=99999,u="";if(n.forEach((function(e){e.width&&e.width<o&&(o=e.width,u=e.track_id),e.bitrate&&e.bitrate<a&&(a=e.bitrate,u=e.track_id)})),e){var c="";r.length&&(c=r[0].track_id),k.length&&k.video&&k.video!==u&&(y&&console.log("Selecting lowest bitrate track for ".concat(t," - "),u),e.setTracks([u,c]))}}b&&console.timeEnd("[DVRPlayer]: Player component play() start")})),function(){setTimeout((function(){e.stop(),x.current&&(x.current.src="",x.current.load())}),0)}}),[]),(0,u.useEffect)((function(){g&&!g.length||C&&C.setTracks&&C.setTracks(g)}),[g]),(0,u.useEffect)((function(){C&&(m?C.pause():C.play())}),[m]);try{return u.default.createElement("video",{ref:x,muted:o,onDoubleClick:a,style:{width:"100%",height:"100%"},autoPlay:!0,className:"video-js",controls:!1,playsInline:!0,"data-cy":"videoElement",key:"mse_"+v})}catch(t){return null}}},function(e,t,n){"use strict";var r=this,i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return o(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.HLSPlayer=void 0;var u=a(n(0)),c=s(n(993));t.HLSPlayer=function(e){var t=e.name,n=e.url,i=e.setRef,o=e.muted,a=e.handleFullScreen,s=e.returnData,l=e.onHlsEvent,f=e.onMediaInfo,d=e.setNoLiveError,p=e.setNoVideoError,h=e.isSelected,v=e.currentTime,g=e.speed,m=e.newTracks,y=e.ottConfig,b=e.debug,x=e.debugTimers,w=(0,u.useRef)(null),_=T((0,u.useState)(null),2),S=_[0],O=_[1],k=T((0,u.useState)(null),2),E=k[0],j=k[1],C=(0,u.useCallback)((function(e){if(E&&(s("progressTimeForPlayers",e,t),l({key:Date.now(),data:{event:"play_progress",type:"hls_dvr",time:e}}),h&&w.current)){var n=w.current.getVideoPlaybackQuality();if(n){var r=n.corruptedVideoFrames,i=n.droppedVideoFrames,o=n.totalVideoFrames;s("vQuality",{corruptedVideoFrames:r,droppedVideoFrames:i,totalVideoFrames:o})}}}),[E,t,l,s]),A=(0,u.useCallback)((function(){var e;if(w.current&&S){var t=S;"live"!==v&&"number"==typeof v&&(t=v),e=t+w.current.currentTime,C(e)}}),[S,v]),P=function(e){if(m&&m.length){var t=T(m,2),n=t[0],r=t[1],i=E;e&&!E&&(i=e),i&&(n&&!Number.isNaN(Number(n))&&i.currentLevel&&(i.currentLevel=Number(n)),Number.isNaN(Number(r))||(i.audioTrack=Number(r)))}},M=function(e,t){var n=t.frag,r=n.programDateTime,i=n.startPTS,o=Math.round((r+(i||0))/1e3);if(O((function(e){return null!=e?e:o})),h&&w.current){var a=w.current.getVideoPlaybackQuality(),u=a.corruptedVideoFrames,c=a.droppedVideoFrames,l=a.totalVideoFrames;s("vQuality",{corruptedVideoFrames:u,droppedVideoFrames:c,totalVideoFrames:l})}},I=function(e,t){l({key:Date.now(),data:Object.assign({event:"play_buffered",type:"hls_dvr"},t)})},R=function(){l({key:Date.now(),data:{event:"play_buffering"}})};(0,u.useEffect)((function(){var e=new c.default(function(){var e=T(m,1)[0];"string"==typeof e&&(e=e[1]);var t={debug:b,enableWorker:!0,lowLatencyMode:!0,progressive:!0,maxBufferHole:0};return t=y?Object.assign(Object.assign({},t),{autoStartLoad:!0,startPosition:-1,maxLoadingDelay:1,startFragPrefetch:!0}):Object.assign(Object.assign({},t),{maxMaxBufferLength:60,backBufferLength:90,startLevel:e&&!Number.isNaN(Number(e))?Number(e):-1}),Object.assign({},t)}());j(e),x&&console.timeEnd("[DVRPlayer]: Playback Startup Time");var o=function(n,r){w.current&&w.current.play().then((function(){i(w.current),s("playerReady",!0,t)})).catch((function(e){e instanceof Error&&"NotAllowedError"===e.name&&w.current&&(w.current.muted=!0,w.current.play().then((function(){i(w.current),s("volume",0),s("playerReady",!0,t)})).catch((function(e){console.error("Error after retrying play()",e)})))})).finally((function(){l({key:Date.now(),data:Object.assign({event:"play_loadedmetadata"},r)}),m&&m.length&&P(e),x&&console.timeEnd("[DVRPlayer]: Player component play() start")}))},a=function(e,t){f(t,"hls"),l({key:Date.now(),data:Object.assign({event:"play_manifestloaded"},t)})};return c.default.isSupported()&&w.current&&e&&(w.current.controls=!1,l({key:Date.now(),data:{event:"play_init",type:"hls_dvr"}}),e.attachMedia(w.current),x&&(w.current.oncanplay=function(){console.timeEnd("[DVRPlayer]: Time to first frame"),l({key:Date.now(),data:{event:"play_started",currentLevel:e?e.currentLevel:-1}})}),e.on(c.default.Events.BUFFER_CODECS,(function(e,t){l({key:Date.now(),data:Object.assign({event:"play_buffer_codecs",type:"hls_dvr"},t)})})),e.on(c.default.Events.MEDIA_ATTACHED,(function(){e.loadSource(n),e.on(c.default.Events.MANIFEST_PARSED,o.bind(r)),e.on(c.default.Events.MANIFEST_LOADED,a.bind(r))})),e.on(c.default.Events.LEVEL_UPDATED,(function(e,t){return function(e,t){var n=t.details.live;n&&s("liveType_isLive",n)}(0,t)})),e.on(c.default.Events.LEVEL_SWITCHED,(function(t,n){return function(t,n){var r=""+n.level;e&&(s("currentVideoTrack",r),s("currentAudioTrack",""+e.audioTrack))}(0,n)})),e.on(c.default.Events.FRAG_CHANGED,M),e.on(c.default.Events.FRAG_BUFFERED,I),e.on(c.default.Events.BUFFER_APPENDING,R),e.on(c.default.Events.ERROR,(function(n,r){var i=r.type,o=r.details,a=r.fatal,u=r.reason,l=r.response;switch(console.log({event:n,errorType:i,errorDetails:o,errorFatal:a,reason:u,response:l}),o){case c.default.ErrorDetails.BUFFER_SEEK_OVER_HOLE:console.log("BUFFER_SEEK_OVER_HOLE",n,r)}if("fragLoadError"===o&&y&&w.current&&(w.current.currentTime=o.frag.start+o.frag.duration+1),a){switch(i){case c.default.ErrorTypes.NETWORK_ERROR:s("networkError",!0);break;case c.default.ErrorTypes.MEDIA_ERROR:console.log("fatal media error encountered, try to recover"),e.recoverMediaError();break;default:e.destroy()}"live"===v&&(s("isStalling",!1),"bufferAppendError"===o?p(!0):d(!0)),s("playingTimeForPlayers","stop",t),s("playerReady",!0,t)}else switch(i){case c.default.ErrorTypes.MEDIA_ERROR:"no audio/video samples found"===u&&e.detachMedia()}}))),function(){w.current&&(w.current.ontimeupdate=null),setTimeout((function(){e&&e.destroy&&e.destroy()}),0),l({key:Date.now(),data:{event:"play_stop",type:"hls_dvr"}})}}),[O]);var D=function(e){var t=e||g;w.current&&(w.current.playbackRate="live"===v?1:t,l({key:Date.now(),data:{event:"play_options",type:"hls_dvr",currentSpeed:t}}))};return(0,u.useEffect)((function(){P(E)}),[m,E]),(0,u.useEffect)((function(){D(g)}),[g,v]),(0,u.useEffect)((function(){var e;return null===(e=w.current)||void 0===e||e.addEventListener("timeupdate",A.bind(r)),function(){var e;null===(e=w.current)||void 0===e||e.removeEventListener("timeupdate",A)}}),[w,S,A]),(0,u.useEffect)((function(){w.current&&(w.current.playbackRate=g)}),[w]),u.default.createElement(u.Fragment,null,b&&u.default.createElement("div",{style:{position:"absolute",color:"#fff",background:"#00000060",padding:"8px 12px",zIndex:50}},String(S)),u.default.createElement("video",{ref:w,muted:o,onDoubleClick:a,style:{width:"100%",height:"100%"},autoPlay:!0,className:"video-js",controls:!1,playsInline:!0,"data-cy":"videoElement",onCanPlay:function(){return D(g)},key:"dvr_player"}))}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.WebRTCPlayer=void 0;var a=o(n(0)),s=n(994);t.WebRTCPlayer=function(e){var t=e.name,n=e.url,r=e.setRef,i=e.muted,o=e.handleFullScreen,u=e.returnData,c=e.onEvent,l=(e.onMediaInfo,e.isSelected),f=e.authTokenName,d=e.tokenValue,p=e.debug,h=(0,a.useRef)(null);return(0,a.useEffect)((function(){var e=(new Date).getTime()/1e3,i={shouldLog:p,autoplay:!0,retryMax:0,statsSendEnable:!1,authTokenName:f,tokenValue:d},o=new s.Player(h.current,n,i);u("live",!0),u("playback_speed",1),c({key:Date.now(),data:{event:"play_init"}}),l&&o&&u("playerLink",o),o.on(s.PLAYER_EVENTS.PLAY,(function(){u("playerReady",!0,t),u("isStalling",!1),u("playerProgressTime",e),u("progressTimeForPlayers",e,t),c({key:Date.now(),data:{event:"play_started"}})})),o.on(s.PLAYER_EVENTS.FAIL,(function(){u("playingTimeForPlayers","stop",t),u("playerProgressTime",(new Date).getTime()/1e3),u("playerReady",!0,t)}));var a=setInterval((function(){if(h.current&&h.current.currentTime&&e){var t=e+h.current.currentTime;u("playerProgressTime",t),c({key:Date.now(),data:{event:"play_progress",time:t}})}}),250);return r(h.current),function(){clearInterval(a),o.destroy(),c({key:Date.now(),data:{event:"play_stop"}})}}),[]),a.default.createElement("video",{ref:h,muted:i,onDoubleClick:o,style:{width:"100%",height:"100%"},autoPlay:!0,className:"video-js",controls:!1,playsInline:!0,"data-cy":"videoElement",key:"webrtc_player"})}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.NativeiOSPlayer=void 0;var a=o(n(0));t.NativeiOSPlayer=function(e){var t=e.name,n=e.url,r=e.setRef,i=e.muted,o=e.handleFullScreen,s=e.returnData,u=e.setNoLiveError,c=e.currentTime,l=e.speed,f=e.debug,d=e.debugTimers,p=(0,a.useRef)(null),h=T((0,a.useState)(),2),v=h[0],g=h[1];return(0,a.useEffect)((function(){var e="live"===c?(new Date).getTime()/1e3:c,i=function(e){f&&console.log("Native ios hls error",e),"live"===c?u(!0):s("noDVR",!0),s("playerReady",!0,t),s("playingTimeForPlayers","stop",t),s("playerProgressTime",c)};return p.current&&p.current.canPlayType("application/vnd.apple.mpegurl")&&(p.current.src=n,d&&(console.timeEnd("[DVRPlayer]: Playback Startup Time"),p.current.oncanplay=function(){console.timeEnd("[DVRPlayer]: Time to first frame")}),p.current.addEventListener("loadedmetadata",(function(){p.current&&(p.current.play().then((function(){g(setInterval((function(){p.current&&p.current.currentTime&&e&&"number"==typeof e&&s("playerProgressTime",e+p.current.currentTime)}),250)),s("tracksAudio",[{text:"ios",track_id:"a1"}])})).finally((function(){s("playerReady",!0,t),s("isStalling",!1),d&&console.timeEnd("[DVRPlayer]: Player component play() start"),r(p.current),u(!1)})),p.current.addEventListener("error",i,!0))}))),function(){p.current&&(p.current.ontimeupdate=null),clearInterval(v)}}),[]),(0,a.useEffect)((function(){p.current&&p.current.currentTime>0&&function(e){var t=e||l;p.current&&(p.current.playbackRate="live"===c?1:t)}(l)}),[l,c]),a.default.createElement("video",{id:"video_"+t,crossOrigin:"anonymous",ref:p,muted:i,onDoubleClick:o,style:{width:"100%",height:"100%"},autoPlay:!0,className:"video-js",controls:!1,playsInline:!0,"data-cy":"videoElement",key:"native_ios_player"})}},function(e,t,n){"use strict";var r=n(995),i=n(996),o=n(998),a=n(999),s=n(1e3),u=s(),c=s(!0),l=n(1001),f=n(1002),d=n(1003);function p(e,t){var n=(t=t||{}).controller;if(n||(f.canAttach(e)?n=f(e,t):d.canAttach(e)&&(n=d(e,t))),!n)throw new Error("Cannot create panzoom for the current type of dom element");var s=n.getOwner(),p={x:0,y:0},v=!1,b=new l;n.initTransform&&n.initTransform(b);var x,w="function"==typeof t.filterKey?t.filterKey:g,_="number"==typeof t.pinchSpeed?t.pinchSpeed:1,S=t.bounds,O="number"==typeof t.maxZoom?t.maxZoom:Number.POSITIVE_INFINITY,k="number"==typeof t.minZoom?t.minZoom:0,E="number"==typeof t.boundsPadding?t.boundsPadding:.05,j="number"==typeof t.zoomDoubleClickSpeed?t.zoomDoubleClickSpeed:1.75,T=t.beforeWheel||g,C=t.beforeMouseDown||g,A="number"==typeof t.zoomSpeed?t.zoomSpeed:1,P=h(t.transformOrigin),M=t.enableTextSelection?c:u;!function(e){var t=I(e);if("undefined"!==t&&"boolean"!==t&&!(m(e.left)&&m(e.top)&&m(e.bottom)&&m(e.right)))throw new Error("Bounds object is not valid. It can be: undefined, boolean (true|false) or an object {left, top, right, bottom}")}(S),t.autocenter&&function(){var e,t,r=0,i=0,o=ae();if(o)r=o.left,i=o.top,e=o.right-o.left,t=o.bottom-o.top;else{var a=s.getBoundingClientRect();e=a.width,t=a.height}var u=n.getBBox();if(0!==u.width&&0!==u.height){var c=t/u.height,l=e/u.width,f=Math.min(l,c);b.x=-(u.left+u.width/2)*f+e/2+r,b.y=-(u.top+u.height/2)*f+t/2+i,b.scale=f}}();var R,D,L,N,F,B,U,z,V,H,W=0,q=0,G=0,Y=null,K=new Date,$=!1,X=!1;U="smoothScroll"in t&&!t.smoothScroll?{start:g,stop:g,cancel:g}:a((function(){return{x:b.x,y:b.y}}),(function(e,t){Ie(),re(e,t)}),t.smoothScroll);var Q=!1;fe();var Z={dispose:function(){de()},moveBy:le,moveTo:re,smoothMoveTo:function(e,t){le(e-b.x,t-b.y,!0)},centerOn:function(e){var t=e.ownerSVGElement;if(!t)throw new Error("ui element is required to be within the scene");var n=e.getBoundingClientRect(),r=n.left+n.width/2,i=n.top+n.height/2,o=t.getBoundingClientRect();le(o.width/2-r,o.height/2-i,!0)},zoomTo:Me,zoomAbs:ce,smoothZoom:Ae,smoothZoomAbs:function(e,t,n){var r={scale:b.scale},o={scale:n};U.cancel(),Ie(),V=i(r,o,{step:function(n){ce(e,t,n.scale)}})},showRectangle:function(e){var t=s.getBoundingClientRect(),n=ne(t.width,t.height),r=e.right-e.left,i=e.bottom-e.top;if(!Number.isFinite(r)||!Number.isFinite(i))throw new Error("Invalid rectangle");var o=n.x/r,a=n.y/i,u=Math.min(o,a);b.x=-(e.left+r/2)*u+n.x/2,b.y=-(e.top+i/2)*u+n.y/2,b.scale=u},pause:function(){de(),Q=!0},resume:function(){Q&&(fe(),Q=!1)},isPaused:function(){return Q},getTransform:function(){return b},getMinZoom:function(){return k},setMinZoom:function(e){k=e},getMaxZoom:function(){return O},setMaxZoom:function(e){O=e},getTransformOrigin:function(){return P},setTransformOrigin:function(e){P=h(e)},getZoomSpeed:function(){return A},setZoomSpeed:function(e){if(!Number.isFinite(e))throw new Error("Zoom speed should be a number");A=e}};o(Z);var J="number"==typeof t.initialX?t.initialX:b.x,ee="number"==typeof t.initialY?t.initialY:b.y,te="number"==typeof t.initialZoom?t.initialZoom:b.scale;return J==b.x&&ee==b.y&&te==b.scale||ce(J,ee,te),Z;function ne(e,t){if(n.getScreenCTM){var r=n.getScreenCTM(),i=r.a,o=r.d,a=r.e,s=r.f;p.x=e*i-a,p.y=t*o-s}else p.x=e,p.y=t;return p}function re(e,t){b.x=e,b.y=t,oe(),Fe("pan"),se()}function ie(e,t){re(b.x+e,b.y+t)}function oe(){var e=ae();if(e){var t,r,i,o,a=!1,s=(i=(t=n.getBBox()).left,o=t.top,{left:(r={x:i*b.scale+b.x,y:o*b.scale+b.y}).x,top:r.y,right:t.width*b.scale+r.x,bottom:t.height*b.scale+r.y}),u=e.left-s.right;return u>0&&(b.x+=u,a=!0),(u=e.right-s.left)<0&&(b.x+=u,a=!0),(u=e.top-s.bottom)>0&&(b.y+=u,a=!0),(u=e.bottom-s.top)<0&&(b.y+=u,a=!0),a}}function ae(){if(S){if("boolean"==typeof S){var e=s.getBoundingClientRect(),t=e.width,n=e.height;return{left:t*E,top:n*E,right:t*(1-E),bottom:n*(1-E)}}return S}}function se(){v=!0,x=window.requestAnimationFrame(pe)}function ue(e,t,n){if(y(e)||y(t)||y(n))throw new Error("zoom requires valid numbers");var r=b.scale*n;if(r<k){if(b.scale===k)return;n=k/b.scale}if(r>O){if(b.scale===O)return;n=O/b.scale}var i=ne(e,t);b.x=i.x-n*(i.x-b.x),b.y=i.y-n*(i.y-b.y),S&&1===E&&1===k?(b.scale*=n,oe()):oe()||(b.scale*=n),Fe("zoom"),se()}function ce(e,t,n){ue(e,t,n/b.scale)}function le(e,t,n){if(!n)return ie(e,t);z&&z.cancel();var r=0,o=0;z=i({x:0,y:0},{x:e,y:t},{step:function(e){ie(e.x-r,e.y-o),r=e.x,o=e.y}})}function fe(){s.addEventListener("mousedown",Se,{passive:!1}),s.addEventListener("dblclick",_e,{passive:!1}),s.addEventListener("touchstart",ve,{passive:!1}),s.addEventListener("keydown",he,{passive:!1}),r.addWheelListener(s,Te,{passive:!1}),se()}function de(){r.removeWheelListener(s,Te),s.removeEventListener("mousedown",Se),s.removeEventListener("keydown",he),s.removeEventListener("dblclick",_e),s.removeEventListener("touchstart",ve),x&&(window.cancelAnimationFrame(x),x=0),U.cancel(),Ee(),je(),M.release(),Le()}function pe(){v&&(v=!1,n.applyTransform(b),Fe("transform"),x=0)}function he(e){var t=0,n=0,r=0;if(38===e.keyCode?n=1:40===e.keyCode?n=-1:37===e.keyCode?t=1:39===e.keyCode?t=-1:189===e.keyCode||109===e.keyCode?r=1:187!==e.keyCode&&107!==e.keyCode||(r=-1),!w(e,t,n,r)){if(t||n){e.preventDefault(),e.stopPropagation();var i=s.getBoundingClientRect();le(.05*(o=Math.min(i.width,i.height))*t,.05*o*n)}if(r){var o,a=Re(100*r);Me((o=P?Pe():{x:(u=s.getBoundingClientRect()).width/2,y:u.height/2}).x,o.y,a)}var u}}function ve(e){if(function(e){t.onTouch&&!t.onTouch(e)||(e.stopPropagation(),e.preventDefault())}(e),ye(),1===e.touches.length)return function(e){q=new Date;var t=Ce(e.touches[0]);R=t;var n=ne(t.x,t.y);D=n.x,L=n.y,N=D,F=L,U.cancel(),ge()}(e,e.touches[0]);2===e.touches.length&&(B=we(e.touches[0],e.touches[1]),H=!0,ge())}function ge(){$||($=!0,document.addEventListener("touchmove",me),document.addEventListener("touchend",xe),document.addEventListener("touchcancel",xe))}function me(e){if(1===e.touches.length){e.stopPropagation();var t=ne((l=Ce(e.touches[0])).x,l.y),n=t.x-D,r=t.y-L;0!==n&&0!==r&&De(),D=t.x,L=t.y,le(n,r)}else if(2===e.touches.length){H=!0;var i=e.touches[0],o=e.touches[1],a=we(i,o),s=1+(a/B-1)*_,u=Ce(i),c=Ce(o);if(D=(u.x+c.x)/2,L=(u.y+c.y)/2,P){var l=Pe();D=l.x,L=l.y}Me(D,L,s),B=a,e.stopPropagation(),e.preventDefault()}}function ye(){G&&(clearTimeout(G),G=0)}function be(e){if(t.onClick){ye();var n=D-N,r=L-F;Math.sqrt(n*n+r*r)>5||(G=setTimeout((function(){G=0,t.onClick(e)}),300))}}function xe(e){if(ye(),e.touches.length>0){var t=ne((n=Ce(e.touches[0])).x,n.y);D=t.x,L=t.y}else{var n,r=new Date;r-W<300?P?Ae((n=Pe()).x,n.y,j):Ae(R.x,R.y,j):r-q<200&&be(e),W=r,Le(),je()}}function we(e,t){var n=e.clientX-t.clientX,r=e.clientY-t.clientY;return Math.sqrt(n*n+r*r)}function _e(e){!function(e){ye(),t.onDoubleClick&&!t.onDoubleClick(e)||(e.preventDefault(),e.stopPropagation())}(e);var n=Ce(e);P&&(n=Pe()),Ae(n.x,n.y,j)}function Se(e){if(ye(),!C(e)){if(Y=e,K=new Date,$)return e.stopPropagation(),!1;if(1===e.button&&null!==window.event||0===e.button){U.cancel();var t=Ce(e),n=ne(t.x,t.y);return N=D=n.x,F=L=n.y,document.addEventListener("mousemove",Oe),document.addEventListener("mouseup",ke),M.capture(e.target||e.srcElement),!1}}}function Oe(e){if(!$){De();var t=Ce(e),n=ne(t.x,t.y),r=n.x-D,i=n.y-L;D=n.x,L=n.y,le(r,i)}}function ke(){new Date-K<200&&be(Y),M.release(),Le(),Ee()}function Ee(){document.removeEventListener("mousemove",Oe),document.removeEventListener("mouseup",ke),X=!1}function je(){document.removeEventListener("touchmove",me),document.removeEventListener("touchend",xe),document.removeEventListener("touchcancel",xe),X=!1,H=!1,$=!1}function Te(e){if(!T(e)){U.cancel();var t=e.deltaY;e.deltaMode>0&&(t*=100);var n=Re(t);if(1!==n){var r=P?Pe():Ce(e);Me(r.x,r.y,n),e.preventDefault()}}}function Ce(e){var t=s.getBoundingClientRect();return{x:e.clientX-t.left,y:e.clientY-t.top}}function Ae(e,t,n){var r=b.scale,o={scale:r},a={scale:n*r};U.cancel(),Ie(),V=i(o,a,{step:function(n){ce(e,t,n.scale)},done:Ne})}function Pe(){var e=s.getBoundingClientRect();return{x:e.width*P.x,y:e.height*P.y}}function Me(e,t,n){return U.cancel(),Ie(),ue(e,t,n)}function Ie(){V&&(V.cancel(),V=null)}function Re(e){return 1-Math.sign(e)*Math.min(.25,Math.abs(A*e/128))}function De(){X||(Fe("panstart"),X=!0,U.start())}function Le(){X&&(H||U.stop(),Fe("panend"))}function Ne(){Fe("zoomend")}function Fe(e){Z.fire(e,Z)}}function h(e){if(e)return"object"==I(e)?(m(e.x)&&m(e.y)||v(e),e):void v()}function v(e){throw console.error(e),new Error(["Cannot parse transform origin.","Some good examples:",' "center center" can be achieved with {x: 0.5, y: 0.5}',' "top center" can be achieved with {x: 0.5, y: 0}',' "bottom right" can be achieved with {x: 1, y: 1}'].join("\n"))}function g(){}function m(e){return Number.isFinite(e)}function y(e){return Number.isNaN?Number.isNaN(e):e!=e}e.exports=p,function(){if("undefined"!=typeof document){var e=document.getElementsByTagName("script");if(e){for(var t,n=0;n<e.length;++n){var r=e[n];if(r.src&&r.src.match(/\bpanzoom(\.min)?\.js/)){t=r;break}}if(t){var i=t.getAttribute("query");if(i){var o=t.getAttribute("name")||"pz",a=Date.now();!function e(){var n=document.querySelector(i);if(!n)return Date.now()-a<2e3?void setTimeout(e,100):void console.error("Cannot find the panzoom element",o);var r=function(e){for(var t=e.attributes,n={},r=0;r<t.length;++r){var i=s(t[r]);i&&(n[i.name]=i.value)}return n}(t);console.log(r),window[o]=p(n,r)}()}}}}function s(e){if(e.name&&"p"===e.name[0]&&"z"===e.name[1]&&"-"===e.name[2])return{name:e.name.substr(3),value:JSON.parse(e.value)}}}()},function(e,t,n){(function(n){var r,i;void 0===(i="function"==typeof(r=function(){"use strict";function t(e,t,n){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){s(r.response,t,n)},r.onerror=function(){console.error("could not download file")},r.send()}function r(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function i(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var o="object"==("undefined"==typeof window?"undefined":I(window))&&window.window===window?window:"object"==("undefined"==typeof self?"undefined":I(self))&&self.self===self?self:"object"==I(n)&&n.global===n?n:void 0,a=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),s=o.saveAs||("object"!=("undefined"==typeof window?"undefined":I(window))||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(e,n,a){var s=o.URL||o.webkitURL,u=document.createElement("a");n=n||e.name||"download",u.download=n,u.rel="noopener","string"==typeof e?(u.href=e,u.origin===location.origin?i(u):r(u.href)?t(e,n,a):i(u,u.target="_blank")):(u.href=s.createObjectURL(e),setTimeout((function(){s.revokeObjectURL(u.href)}),4e4),setTimeout((function(){i(u)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,o){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=I(t)&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,o),n);else if(r(e))t(e,n,o);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout((function(){i(a)}))}}:function(e,n,r,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,r);var s="application/octet-stream"===e.type,u=/constructor/i.test(o.HTMLElement)||o.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||s&&u||a)&&"undefined"!=typeof FileReader){var l=new FileReader;l.onloadend=function(){var e=l.result;e=c?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},l.readAsDataURL(e)}else{var f=o.URL||o.webkitURL,d=f.createObjectURL(e);i?i.location=d:location.href=d,i=null,setTimeout((function(){f.revokeObjectURL(d)}),4e4)}});o.saveAs=s.saveAs=s,e.exports=s})?r.apply(t,[]):r)||(e.exports=i)}).call(this,n(96))},function(e,t,n){"use strict";(function(e){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0;var i=r(n(0)),o=n(169),a=n(150);t.Logo=function(t){var n=t.name,r=t.basicApiConfig,s=t.logoProperties,u=T(i.default.useState(null),2),c=u[0],l=u[1];(0,a.media_logo)({params:{name:n},options:{keepPreviousData:!0,onSuccess:function(t){l(e.from(t,"binary").toString("base64"))}},config:Object.assign(Object.assign({},r),{responseType:"arraybuffer"})});var f=(0,o.isUndefined)(s.top)&&(0,o.isUndefined)(s.bottom)&&(0,o.isUndefined)(s.left)&&(0,o.isUndefined)(s.right);return i.default.createElement("img",{src:"data:image/png;base64,"+c,alt:"Dvr Player stream logo",style:{position:"absolute",zIndex:49,pointerEvents:"none",top:f?"10px":s.top+"px",bottom:s.bottom+"px",left:f?"10px":s.left+"px",right:s.right+"px",width:s.width||60,height:s.height||60}})},t.default=t.Logo}).call(this,n(273).Buffer)},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Advert=void 0;var a=o(n(0));n(1007);var s=n(1009);t.Advert=function(e){var t=e.advert,n=e.returnData,r=e.onEvent,i=T((0,a.useState)(0),2),o=i[0],u=i[1],c=T((0,a.useState)([]),2),l=c[0],f=c[1];return(0,a.useEffect)((function(){o===t.length&&n("advert",[])}),[o,t,n]),a.default.createElement("div",{className:"adverts_block"},o<=t.length-1?a.default.createElement(s.AdvertPlayer,{url:t[o].clip_url,link:t[o].site_url,index:o,setActiveIndex:u,setAdvertDuration:function(e,t){if("number"==typeof e){var n=l;n[e]=t,f(n),function(){var e=0;l.forEach((function(t){e+=t})),r("",{key:Date.now(),data:{event:"advertising_duration",type:"advertising_duration",duration:e}})}()}},onEvent:r,key:"advert_player_"+o}):null)},t.default=t.Advert},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}),t.DvrNowMarker=void 0;var i=r(n(0));t.DvrNowMarker=function(e){var t=e.width,n=e.now;return i.default.createElement("div",{className:"now-marker","data-cy":"now-marker",style:{left:n/(t/100)+"%"}},i.default.createElement("div",null))}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DvrRanges=t.checkSegmentAndInvoke=void 0;var s=o(n(0)),u=a(n(1014));t.checkSegmentAndInvoke=function(e,t,n,r){e.some((function(e){return e.from>Number(t.utc)&&!(null==e?void 0:e.meta)}))&&(null==n?void 0:n.some((function(e){var n=T((null==e?void 0:e.key)?e.key.split("_"):[null,null],2),r=n[0];return"hit"===n[1]&&Number(r)>Number(t.utc)})))&&r()},t.DvrRanges=function(e){var n=e.left,r=e.width,i=e.motion,o=e.onUtcSeek,a=e.allRangeInfo,c=e.onHandleClick,l=T((0,s.useState)(),2),f=l[0],d=l[1],p=(0,s.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=r/100,i=[];return e.forEach((function(e){if("number"==typeof e.width&&!Number.isNaN(e.width)&&!Number.isNaN(e.left)){var o=Math.round(e.left+n),a=Math.round(e.width);if(!(o+a<=0||(o<0&&(a+=o,o=0),o>r))){o+a>r&&(a=r-o);var s={left:o/t,utc:e.utc,width:a/t,type:e.type};e.opacity&&(s.opacity=e.opacity),e.color&&(s.color=e.color),e.title&&(s.title=e.title),e.note&&(s.note=e.note),i.push(s)}}})),i}),[n,r]),h=function(e){if(e.preventDefault(),e.stopPropagation(),null!==e&&e.target instanceof HTMLElement){var t=e.target.dataset.utc;t&&o&&o(parseInt(t,10))}},v=(0,s.useCallback)((function(e){return p(e)||[]}),[p]);return(0,s.useEffect)((function(){Object.keys(a).forEach((function(e){var n,r=v(a[e].ranges).map((function(e){return s.default.createElement("div",{key:"".concat(e.utc,"_").concat(e.type),className:e.type,"data-cy":e.type,onClick:function(n){return function(e,n){if("hit"===e.type)c(n);else{var r=Object.values(a)[0];(0,t.checkSegmentAndInvoke)(r.segments,e,f,(function(){return c(n)}))}}(e,n)},style:e?{left:e.left+"%",width:e.width?e.width+"%":""}:{}})}));if((null==r?void 0:r.length)>0){var i=null===(n=r[r.length-1])||void 0===n?void 0:n.props.style.left;if(i&&i.endsWith("%")){var o=100-parseFloat(i.replace("%",""));r.push(s.default.createElement("div",{key:"backToLive",className:"backToLive","data-cy":"backToLive",onClick:function(e){return c(e)},style:{width:o+"%",right:"0%"}}))}}return d(r),r}))}),[a,v]),s.default.createElement(s.default.Fragment,null,s.default.createElement("div",{className:"recorded-ranges"},s.default.createElement("div",{className:"range-wrap","data-cy":"range-wrap"},f)),s.default.createElement("div",{className:"motion-wrap"},(p(i)||[]).map((function(e){return s.default.createElement("div",{key:"".concat(e.utc,"-").concat(e.type,"-").concat(e.left),"data-utc":e.utc,"data-type":e.type,className:e.type,"data-title":e.title,"data-note":e.note,onMouseDown:h,style:e?{left:e.left+"%",width:e.width+"%",opacity:e.opacity,background:e.color?e.color:"#f0ad4e",border:e.color?"3px solid "+e.color:"3px solid #f0ad4e"}:{}},s.default.createElement("div",{className:"tooltiptext"},s.default.createElement(u.default,{tooltipData:{title:e.title,note:e.note,utc:e.utc}})))}))))}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});var a=o(n(0)),s=n(11);n(1015),t.default=function(e){var t=e.now,n=e.locale,r=e.onChange,i=e.setTimelineZoom,o=e.toggleCalendar,u=e.calendarRanges,c=T((0,a.useState)(t),2),l=c[0],f=c[1],d=T((0,a.useState)((new Date).getTime()),2),p=d[0],h=d[1],v={ru:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],en:["January","February","March","April","May","June","July","August","September","October","November","December"]},g={ru:["Пн","Вт","Ср","Чт","Пт","Сб","Вс"],en:["Mon","Tue","Wen","Thu","Fri","Sat","Sun"]},m=function(e,t){if(e.preventDefault(),e.target instanceof HTMLDivElement&&t){var n=e.target.dataset,o=n.utc,a=n.start,s=n.end;a&&s&&i(a,s),r(o)}},y=function(e){var n=new Date;n.setTime(1e3*l);var r=n.getMonth(),i=[];u&&u.length&&(i=u.map((function(e){return{start:e.from,end:e.from+e.duration}}))),n.setDate(1);var o=n.getDay();n.setTime(n.getTime()-864e5*(o-1)),n.setHours(0,0,0,0);var c=n.getTime();0===e&&c!==p&&h(c);for(var f=[],d=function(){var e=new Date;return e=new Date(1e3*t),n.getDate()===e.getDate()&&n.getMonth()===e.getMonth()&&n.getFullYear()===e.getFullYear()},v=function(){n.setTime(c+86400*(7*e+g)*1e3);var t="day-entry "+(n.getMonth()===r?"current-month":"other-month");d()?t+=" selected-day ":n.getDate()===(new Date).getDate()&&n.getMonth()===(new Date).getMonth()&&n.getFullYear()===(new Date).getFullYear()?t+=" current-day ":t+=" other-day ";var o=(0,s.getDayRangeByUtc)(Math.round(n.getTime()/1e3)),u=function(e,t){for(var n=!1,r=0;r<t.length&&!(n=(0,s.intersection)(e,t[r]));r++);return n}(o,i),l=!!u,p=Math.round((new Date).getTime()/1e3);u&&(p=u.start),f.push(a.default.createElement("div",{className:"".concat(t).concat(l&&n.getTime()<(new Date).getTime()?"available":""),key:"".concat(g,"_").concat(n.getDate()),"data-date":n,"data-utc":p,"data-start":o.start,"data-end":o.end,"data-cy":"calendar_btn_".concat(n.getMonth(),"_").concat(n.getDate()),onClick:function(e){m(e,l)}},n.getDate()))},g=0;g<7;g+=1)v();return f};return(0,a.useEffect)((function(){!function(){var e=new Date,t=new Date;e.setTime(1e3*l),t=new Date(e.getFullYear(),e.getMonth()+1,e.getDate()),e.setDate(1),t.setDate(0),e.setHours(0,0,0),t.setHours(0,0,0)}()}),[o]),a.default.createElement("div",{className:"nd_calendar",id:"calendar"},a.default.createElement("div",{className:"month-selection"},a.default.createElement("div",{onClick:function(e){e.preventDefault();var t=new Date;t.setTime(1e3*l),0===t.getMonth()?(t.setFullYear(t.getFullYear()-1),t.setMonth(11)):t.setMonth(t.getMonth()-1),f(Math.round(t.getTime()/1e3))},className:"month-change month-prev","data-cy":"calendarPrevMonthBtn"},a.default.createElement("span",{className:"icon-date_two_player"})),a.default.createElement("div",{className:"month"},function(e){var t=new Date;return t.setTime(1e3*e),v[n||"en"][t.getMonth()]}(l)+", ",a.default.createElement("span",{className:"year"},function(e){var t=new Date;return t.setTime(1e3*e),t.getFullYear()}(l))),a.default.createElement("div",{onClick:function(e){e.preventDefault();var t=new Date;t.setTime(1e3*l),11===t.getMonth()?(t.setFullYear(t.getFullYear()+1),t.setMonth(0)):t.setMonth(t.getMonth()+1),t.getTime()<(new Date).getTime()&&f(Math.round(t.getTime()/1e3))},className:"month-change month-next"},a.default.createElement("span",{className:"icon-date_two_player"}))),a.default.createElement("div",{className:"clear"}),a.default.createElement("div",{className:"strap"}),a.default.createElement("div",{className:"days"},a.default.createElement("div",{className:"day-names"},function(){for(var e=g[n||"en"],t=[],r=0;r<7;r++)t.push(a.default.createElement("div",{className:"day-name",key:r},e[r%e.length]));return t}()),a.default.createElement("div",{className:"clear"}),a.default.createElement("div",{className:"day-entries"},y(0)),a.default.createElement("div",{className:"clear"}),a.default.createElement("div",{className:"day-entries"},y(1)),a.default.createElement("div",{className:"clear"}),a.default.createElement("div",{className:"day-entries"},y(2)),a.default.createElement("div",{className:"clear"}),a.default.createElement("div",{className:"day-entries"},y(3)),a.default.createElement("div",{className:"clear"}),a.default.createElement("div",{className:"day-entries"},y(4)),a.default.createElement("div",{className:"clear"}),a.default.createElement("div",{className:"day-entries"},y(5)),a.default.createElement("div",{className:"clear"})))}},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Timeline=void 0;var a=o(n(0));n(1028),t.Timeline=function(e){var t=e.video,n=e.from,r=e.to,i=e.playbackDuration,o=e.returnData,s=e.debug,u=T((0,a.useState)(!1),2),c=u[0],l=u[1],f=r-n||i,d=function(e){return e/(f/100)+"%"},p=t?t.currentTime:0,h=t?t.buffered:[],v=t?t.played:0,g=function(e,t){var n=[];if(e.length)for(var r=0;r<e.length;r+=1)n.push(a.default.createElement("div",{className:t,style:{left:d(e.start(r)),width:d(e.end(r)-e.start(r))},key:"".concat(t,"_").concat(Math.random())}));return n},m=function(e){var n=e.target,r=e.clientX,i=n.getBoundingClientRect(),o=i.width,a=i.left,s=Number(((r-a)/(o/f)).toFixed(6));t&&p>0&&t.currentTime!==s&&(t.currentTime=s)},y=(0,a.useCallback)((function(e){var n=e.code;t&&("ArrowRight"===n&&(t.currentTime+=.5),"ArrowLeft"===n&&(t.currentTime-=.5))}),[t]);return(0,a.useEffect)((function(){return document.addEventListener("keydown",y),function(){document.removeEventListener("keydown",y)}}),[y]),a.default.createElement("div",{className:"ott_timeline",onClick:m,onMouseMove:function(e){e.clientX,e.target.getBoundingClientRect().left,c&&m(e)},onMouseDown:function(){l(!0),o("paused",!0),t.pause()},onMouseUp:function(){l(!1),o("paused",!1),t.play()}},a.default.createElement("div",{className:"line"},g(h,"buffered"),s&&g(v,"played-debug"),a.default.createElement("div",{className:"played",style:{width:d(p)}})),a.default.createElement("div",{className:"now",style:{left:d(p)}}))},t.default=t.Timeline},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.TimeIndicator=void 0;var a=o(n(0));n(1030),t.TimeIndicator=function(e){var t=e.from,n=e.to,r=e.playbackDuration,i=e.video,o=i?i.currentTime:0,s=n-t||r,u=function(e){var t=Math.floor(e/60),n=e%60;return n=n<10?"0"+n:n,"".concat(t=t<10?"0"+t:t,":").concat(n)};return a.default.createElement("div",{className:"ott_time"},"".concat(u(Math.round(o))," / ").concat(u(s)))},t.default=(0,a.memo)(t.TimeIndicator)},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var u=o(n(0)),c=s(n(211)),l=n(71),f=n(1034);n(1035),t.default=(0,u.memo)((function(e){var t=e.headers,n=e.ptz_url,r=(0,l.useTranslation)().t,i=T((0,u.useState)(20),2),o=i[0],s=i[1],d=T((0,u.useState)(10),2),p=d[0],h=d[1],v=function(e,r,i){return a(void 0,void 0,void 0,k().mark((function a(){var s,u,l;return k().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return l={left:{left:s=r?0:o},right:{right:s},up:{up:s},down:{down:s},"north-west":{left:u=r?0:p,up:u},"north-east":{right:u,up:u},"south-west":{left:u,down:u},"south-east":{right:u,down:u},in:{in:s},out:{out:s}}[e]||{},a.next=3,c.default.post(n,l,{headers:t}).then((function(){return i?setTimeout((function(){v(e,!0)}),500):null}));case 3:case"end":return a.stop()}}),a)})))};return u.default.createElement("div",{className:"ptzWrapper"},u.default.createElement("div",{className:"ptzZoom"},u.default.createElement("div",null,u.default.createElement(f.CameraArrow,{direction:"in",Icon:u.default.createElement("span",{className:"material-symbols-outlined"},"add"),onMove:v})),u.default.createElement("div",null,u.default.createElement(f.CameraArrow,{direction:"out",Icon:u.default.createElement("span",{className:"material-symbols-outlined"},"remove"),onMove:v}))),u.default.createElement("div",{className:"ptzNavigation"},u.default.createElement("div",null,u.default.createElement(f.CameraArrow,{direction:"north-west",Icon:u.default.createElement("span",{className:"material-symbols-outlined"},"north_west"),onMove:v})),u.default.createElement("div",null,u.default.createElement(f.CameraArrow,{direction:"up",Icon:u.default.createElement("span",{className:"material-symbols-outlined"},"arrow_upward"),onMove:v})),u.default.createElement("div",null,u.default.createElement(f.CameraArrow,{direction:"north-east",Icon:u.default.createElement("span",{className:"material-symbols-outlined"},"north_east"),onMove:v})),u.default.createElement("div",null,u.default.createElement(f.CameraArrow,{direction:"left",Icon:u.default.createElement("span",{className:"material-symbols-outlined"},"arrow_back"),onMove:v})),u.default.createElement("div",null,u.default.createElement("div",{style:{width:36,height:36}})),u.default.createElement("div",null,u.default.createElement(f.CameraArrow,{direction:"right",Icon:u.default.createElement("span",{className:"material-symbols-outlined"},"arrow_forward"),onMove:v})),u.default.createElement("div",null,u.default.createElement(f.CameraArrow,{direction:"south-west",Icon:u.default.createElement("span",{className:"material-symbols-outlined"},"south_west"),onMove:v})),u.default.createElement("div",null,u.default.createElement(f.CameraArrow,{direction:"down",Icon:u.default.createElement("span",{className:"material-symbols-outlined"},"arrow_downward"),onMove:v})),u.default.createElement("div",null,u.default.createElement(f.CameraArrow,{direction:"south-east",Icon:u.default.createElement("span",{className:"material-symbols-outlined"},"south_east"),onMove:v}))),u.default.createElement("div",{className:"speedControl"},u.default.createElement("label",{htmlFor:"speedSlider"},r("ptz_speed")),u.default.createElement("input",{title:"".concat(r("ptz_speed"),": ").concat(o),type:"range",id:"speedSlider",min:"0",max:"100",value:o,onChange:function(e){var t=parseInt(e.target.value,10);s(t),h(t/2)},step:"1"})))}))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return c}));var r=n(55),i=n(172),o={nowSeconds:function(){return Date.now()/1e3}},a=Object(i.b)()?function(){try{return Object(i.a)(e,"perf_hooks").performance}catch(e){return}}():function(){var e=Object(r.a)().performance;if(e&&e.now)return{now:function(){return e.now()},timeOrigin:Date.now()-e.now()}}(),s=void 0===a?o:{nowSeconds:function(){return(a.timeOrigin+a.now())/1e3}},u=o.nowSeconds.bind(o),c=s.nowSeconds.bind(s);!function(){var e=Object(r.a)().performance;if(e&&e.now){var t=e.now(),n=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+t-n):36e5,o=i<36e5,a=e.timing&&e.timing.navigationStart,s="number"==typeof a?Math.abs(a+t-n):36e5;(o||s<36e5)&&i<=s&&e.timeOrigin}}()}).call(this,n(435)(e))},function(e,t,n){"use strict";function r(){return"undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&!!__SENTRY_BROWSER_BUNDLE__}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return s}));var r=n(55),i=n(35);function o(e,t){try{for(var n=e,r=[],i=0,o=0,s=" > ".length,u=void 0;n&&i++<5&&!("html"===(u=a(n,t))||i>1&&o+r.length*s+u.length>=80);)r.push(u),o+=u.length,n=n.parentNode;return r.reverse().join(" > ")}catch(e){return"<unknown>"}}function a(e,t){var n,r,o,a,s,u=e,c=[];if(!u||!u.tagName)return"";c.push(u.tagName.toLowerCase());var l=t&&t.length?t.filter((function(e){return u.getAttribute(e)})).map((function(e){return[e,u.getAttribute(e)]})):null;if(l&&l.length)l.forEach((function(e){c.push("["+e[0]+'="'+e[1]+'"]')}));else if(u.id&&c.push("#"+u.id),(n=u.className)&&Object(i.l)(n))for(r=n.split(/\s+/),s=0;s<r.length;s++)c.push("."+r[s]);var f=["type","name","title","alt"];for(s=0;s<f.length;s++)o=f[s],(a=u.getAttribute(o))&&c.push("["+o+'="'+a+'"]');return c.join("")}function s(){var e=Object(r.a)();try{return e.document.location.href}catch(e){return""}}},function(e){e.exports=JSON.parse('{"dvr_back_to_live":"Back to live","dvr_live":"LIVE","dvr_play":"Play","dvr_pause":"Pause","dvr_go_to_carret_position":"Go to carret position","dvr_slower":"Slower","dvr_faster":"Faster","dvr_select_export":"Select and export","dvr_calendar":"Calendar","dvr_ranges_loading":"Ranges loading ...","dvr_take_screenshot":"Take a screenshot","dvr_content_copied":"Content copied to clipboard","dvr_close":"Close","dvr_export_menu":"Export menu","dvr_download_mp4":"Download mp4","dvr_download_mp4_with_tracks":"Download mp4 with selected tracks","dvr_download_ts":"Download TS","dvr_download_ts_with_tracks":"Download TS with selected tracks","dvr_share_selected":"Share selected","dvr_copy_embed_url":"Copy embed URL","dvr_video_quality":"Video quality","dvr_audio_track":"Audio track","dvr_auto":"auto","dvr_mse_forbidden":"FORBIDDEN","dvr_mse_network_error":"NETWORK ERROR","dvr_mse_no_live_stream":"NO LIVE STREAM","dvr_mse_no_dvr":"NO DVR","dvr_mse_no_dvr_recording_here":"NO DVR RECORDING HERE","dvr_error_video_stream":"The video is unavailable. Try upgrade your browser.","dvr_episode_type_person":"Person","dvr_episode_type_plate":"Plate","dvr_episode_type_motion":"Motion","copy_debug_data":"Copy Debug Data","ptz_speed":"Speed"}')},function(e){e.exports=JSON.parse('{"dvr_back_to_live":"Вернуться к прямому эфиру","dvr_live":"ПРЯМОЙ ЭФИР","dvr_play":"Воспроизведение","dvr_pause":"Пауза","dvr_go_to_carret_position":"Перейти к каретке","dvr_slower":"Медленнее","dvr_faster":"Быстрее","dvr_select_export":"Выбрать и экспортировать","dvr_calendar":"Календарь","dvr_ranges_loading":"Загрузка рейнджей ...","dvr_take_screenshot":"Сделать скриншот","dvr_content_copied":"Данные скопированы","dvr_close":"Закрыть","dvr_export_menu":"Меню экспорта","dvr_download_mp4":"Загрузить mp4","dvr_download_mp4_with_tracks":"Загрузить mp4 с выбранными треками","dvr_download_ts":"Загрузить TS","dvr_download_ts_with_tracks":"Загрузить TS с выбранными треками","dvr_share_selected":"Поделиться выбранным","dvr_copy_embed_url":"Скопировать embed URL","dvr_video_quality":"Качество видео","dvr_audio_track":"Аудио трек","dvr_auto":"авто","dvr_mse_forbidden":"ДОСТУП ЗАПРЕЩËН","dvr_mse_network_error":"ОШИБКА СОЕДИНЕНИЯ","dvr_mse_no_live_stream":"ОТСУТСТВУЕТ ПРЯМОЙ ЭФИР","dvr_mse_no_dvr":"ОТСУТСТВУЕТ DVR","dvr_mse_no_dvr_recording_here":"ЗДЕСЬ ОТСУТСТВУЕТ DVR ЗАПИСЬ","dvr_error_video_stream":"Видео недоступно. Попробуйте обновить браузер.","dvr_episode_type_person":"Персона","dvr_episode_type_plate":"Номерной знак","dvr_episode_type_motion":"Движение","copy_debug_data":"Скопировать данные для отладки","ptz_speed":"Speed"}')},function(e,t,n){"use strict";function r(){var e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(var r=0;r<t.length;r++)if(t[r]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(var r=0;r<t.length;r++)if(t[r]===n){t.splice(r,1);break}}]}n.d(t,"a",(function(){return r}))},,,function(e,t,n){e.exports=n(1046)},function(e,t,n){var r=n(90).default;e.exports=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";e.exports=n(467)},function(e,t,n){"use strict";n(468),n(474),n(475),n(476),n(477),n(478),n(479),n(480),n(481),n(482),n(483),n(484),n(485),n(486),n(487),n(488),n(489),n(297),n(491),n(298),n(492),n(493),n(494),n(495),n(496),n(497),n(498),n(300),n(301),n(499),n(500),n(501),n(502),n(503),n(504),n(505),n(187),n(506),n(507),n(508),n(509),n(510),n(511),n(512),n(513),n(514),n(515),n(516),n(517),n(518),n(308),n(310),n(312),n(519),n(520),n(521),n(313),n(522),n(523),n(524),n(525),n(316),n(319),n(324),n(527),n(528),n(529),n(530),n(531),n(533),n(534),n(536),n(537),n(538),n(539),n(540),n(326),n(288),n(541),n(249),n(328),n(543),n(544),n(545),n(546),n(547),n(548),n(549),n(550),n(551),n(552),n(553),n(554),n(555),n(556),n(557),n(558),n(559),n(560),n(561),n(562),n(563),n(564),n(565),n(566),n(567),n(568),n(569),n(570),n(571),n(572),n(573),n(574),n(575),n(576),n(577),n(578),n(579),n(580),n(581),n(582),n(583),n(584),n(585),n(586),n(336),n(337),n(587),n(588),n(589),n(590),n(591),n(592),n(593),n(594),n(595),n(596),n(597),n(598),n(600),n(601),n(602),n(603),n(345),n(346),n(612),n(347),n(613),n(614),n(615),n(616),n(617),n(618),n(619),n(620),n(621),n(622),n(623),n(624),n(625),n(626),n(627),n(628),n(255),n(629),n(630),n(631),n(632),n(633),n(350),n(352),n(354),n(356),n(358),n(360),n(362),n(635),n(636),n(637),n(638),n(639),n(364),n(365),n(640),n(366),n(641),n(642),n(643),n(644),n(645),n(369),n(646),n(647),n(648),n(649),n(370),n(650),n(651),n(653),n(655),n(656),n(657),n(658),n(659),n(660),n(661),n(662),n(663),n(664),n(665),n(666),n(667),n(668),n(669),n(670),n(671),n(672),n(673),n(674),n(675),n(676),n(376),n(677),n(678),n(679),n(680),n(681),n(682),n(377),n(378),n(683),n(684),n(685),n(686),n(687),n(688),n(689),n(690),n(691),n(692),n(693),n(694),n(695),n(696),n(697),n(698),n(699),n(700),n(379),n(380),n(701),n(381),n(702),n(264),n(704),n(706),n(707),n(708),n(710),n(711),n(712),n(713),n(714),n(715),n(716),n(717),n(718),n(719),n(720),n(721),n(722),n(723),n(724),n(725),n(726),n(727),n(728),n(729),n(730),n(731),n(732),n(733),n(734),n(735),n(736),n(737),n(738),n(739),n(740),n(741),n(742),n(743),n(744),n(745),n(746),n(747),n(748),n(749),n(750),n(751),n(752),n(753),n(754),n(755),n(756),n(757),n(758),n(759),n(760),n(761),n(762),n(763),n(764),n(765),n(766),n(767),n(768),n(769),n(770),n(771),n(772),n(773),n(774),n(775),n(776),n(777),n(778),n(779),n(780),n(781),n(782),n(783),n(784),n(785),n(786),n(787),n(788),n(789),n(790),n(792),n(793),n(794),n(795),n(796),n(797),n(798),n(799),n(800),n(801),n(802),n(803),n(804),n(805),n(806),n(807),n(808),n(809),n(810),n(811),n(812),n(813),n(814),n(815),n(816),n(817),n(818),n(819),n(820),n(821),n(822),n(823),n(824),n(825),n(829),n(830),n(831),n(832),n(833),n(834),n(835),n(836),n(837),n(838),n(839),n(840),n(841),n(842),n(843),n(844),n(845),n(846),n(848),n(849),n(850),n(851),n(852),n(853),n(854),n(855),n(856),n(857),n(858),n(859),n(860),n(861),n(862),n(863),n(864),n(865),n(866),n(867),n(868),n(869),n(870),n(871),n(872),n(874),n(875),n(876),n(877),n(878),n(879),n(880),n(881),n(882),n(883),n(884),n(885),n(886),n(887),n(888),n(889),n(890),n(891),n(892),n(893),n(894),n(895),n(896),n(897),n(898),n(899),n(900),n(901),n(902),n(903),n(904),n(905),n(906),n(907),n(908),n(909),n(910),n(911),n(912),n(913),n(914),n(915),n(916),n(917),n(918),n(919),n(920),n(921),n(922),n(923),n(927),n(928),n(929),n(930),n(933),n(936),n(937),n(938),n(939),n(940),n(941),n(942),e.exports=n(232)},function(e,t,n){"use strict";n(469),n(471),n(472),n(288),n(473)},function(e,t,n){"use strict";var r=n(2),i=n(10),o=n(9),a=n(4),s=n(23),u=n(12),c=n(115),l=n(5),f=n(21),d=n(61),p=n(8),h=n(48),v=n(97),g=n(18),m=n(76),y=n(45),b=n(136),x=n(118),w=n(231),_=n(182),S=n(56),O=n(33),k=n(230),E=n(175),j=n(28),T=n(37),C=n(106),A=n(181),P=n(153),M=n(117),I=n(13),R=n(285),D=n(41),L=n(286),N=n(72),F=n(27),B=n(46).forEach,U=A("hidden"),z=F.set,V=F.getterFor("Symbol"),H=Object.prototype,W=i.Symbol,q=W&&W.prototype,G=i.RangeError,Y=i.TypeError,K=i.QObject,$=S.f,X=O.f,Q=w.f,Z=E.f,J=a([].push),ee=C("symbols"),te=C("op-symbols"),ne=C("wks"),re=!K||!K.prototype||!K.prototype.findChild,ie=function(e,t,n){var r=$(H,t);r&&delete H[t],X(e,t,n),r&&e!==H&&X(H,t,r)},oe=u&&l((function(){return 7!==y(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?ie:X,ae=function(e,t){var n=ee[e]=y(q);return z(n,{type:"Symbol",tag:e,description:t}),u||(n.description=t),n},se=function(e,t,n){e===H&&se(te,t,n),p(e);var r=v(t);return p(n),f(ee,r)?(n.enumerable?(f(e,U)&&e[U][r]&&(e[U][r]=!1),n=y(n,{enumerable:m(0,!1)})):(f(e,U)||X(e,U,m(1,y(null))),e[U][r]=!0),oe(e,r,n)):X(e,r,n)},ue=function(e,t){p(e);var n=h(t),r=b(n).concat(de(n));return B(r,(function(t){u&&!o(ce,n,t)||se(e,t,n[t])})),e},ce=function(e){var t=v(e),n=o(Z,this,t);return!(this===H&&f(ee,t)&&!f(te,t))&&(!(n||!f(this,t)||!f(ee,t)||f(this,U)&&this[U][t])||n)},le=function(e,t){var n=h(e),r=v(t);if(n!==H||!f(ee,r)||f(te,r)){var i=$(n,r);return!i||!f(ee,r)||f(n,U)&&n[U][r]||(i.enumerable=!0),i}},fe=function(e){var t=Q(h(e)),n=[];return B(t,(function(e){f(ee,e)||f(P,e)||J(n,e)})),n},de=function(e){var t=e===H,n=Q(t?te:h(e)),r=[];return B(n,(function(e){!f(ee,e)||t&&!f(H,e)||J(r,ee[e])})),r};c||(j(q=(W=function(){if(d(q,this))throw new Y("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,t=M(e),n=function(e){var r=void 0===this?i:this;r===H&&o(n,te,e),f(r,U)&&f(r[U],t)&&(r[U][t]=!1);var a=m(1,e);try{oe(r,t,a)}catch(e){if(!(e instanceof G))throw e;ie(r,t,a)}};return u&&re&&oe(H,t,{configurable:!0,set:n}),ae(t,e)}).prototype,"toString",(function(){return V(this).tag})),j(W,"withoutSetter",(function(e){return ae(M(e),e)})),E.f=ce,O.f=se,k.f=ue,S.f=le,x.f=w.f=fe,_.f=de,R.f=function(e){return ae(I(e),e)},u&&(T(q,"description",{configurable:!0,get:function(){return V(this).description}}),s||j(H,"propertyIsEnumerable",ce,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:W}),B(b(ne),(function(e){D(e)})),r({target:"Symbol",stat:!0,forced:!c},{useSetter:function(){re=!0},useSimple:function(){re=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!u},{create:function(e,t){return void 0===t?y(e):ue(y(e),t)},defineProperty:se,defineProperties:ue,getOwnPropertyDescriptor:le}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:fe}),L(),N(W,"Symbol"),P[U]=!0},function(e,t,n){"use strict";var r=n(93),i=n(94),o=n(15),a=n(13)("species"),s=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,(i(t)&&(t===s||r(t.prototype))||o(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},function(e,t,n){"use strict";var r=n(2),i=n(16),o=n(21),a=n(18),s=n(106),u=n(287),c=s("string-to-symbol-registry"),l=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{for:function(e){var t=a(e);if(o(c,t))return c[t];var n=i("Symbol")(t);return c[t]=n,l[n]=t,n}})},function(e,t,n){"use strict";var r=n(2),i=n(21),o=n(105),a=n(116),s=n(106),u=n(287),c=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{keyFor:function(e){if(!o(e))throw new TypeError(a(e)+" is not a symbol");if(i(c,e))return c[e]}})},function(e,t,n){"use strict";var r=n(2),i=n(115),o=n(5),a=n(182),s=n(24);r({target:"Object",stat:!0,forced:!i||o((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})},function(e,t,n){"use strict";var r=n(2),i=n(12),o=n(10),a=n(4),s=n(21),u=n(19),c=n(61),l=n(18),f=n(37),d=n(135),p=o.Symbol,h=p&&p.prototype;if(i&&u(p)&&(!("description"in h)||void 0!==p().description)){var v={},g=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),t=c(h,this)?new p(e):void 0===e?p():p(e);return""===e&&(v[t]=!0),t};d(g,p),g.prototype=h,h.constructor=g;var m="Symbol(description detection)"===String(p("description detection")),y=a(h.valueOf),b=a(h.toString),x=/^Symbol\((.*)\)[^)]+$/,w=a("".replace),_=a("".slice);f(h,"description",{configurable:!0,get:function(){var e=y(this);if(s(v,e))return"";var t=b(e),n=m?_(t,7,-1):w(t,x,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:g})}},function(e,t,n){"use strict";n(41)("asyncIterator")},function(e,t,n){"use strict";n(41)("hasInstance")},function(e,t,n){"use strict";n(41)("isConcatSpreadable")},function(e,t,n){"use strict";n(41)("iterator")},function(e,t,n){"use strict";n(41)("match")},function(e,t,n){"use strict";n(41)("matchAll")},function(e,t,n){"use strict";n(41)("replace")},function(e,t,n){"use strict";n(41)("search")},function(e,t,n){"use strict";n(41)("species")},function(e,t,n){"use strict";n(41)("split")},function(e,t,n){"use strict";var r=n(41),i=n(286);r("toPrimitive"),i()},function(e,t,n){"use strict";var r=n(16),i=n(41),o=n(72);i("toStringTag"),o(r("Symbol"),"Symbol")},function(e,t,n){"use strict";n(41)("unscopables")},function(e,t,n){"use strict";var r=n(2),i=n(10),o=n(66),a=n(290),s=i.WebAssembly,u=7!==new Error("e",{cause:7}).cause,c=function(e,t){var n={};n[e]=a(e,t,u),r({global:!0,constructor:!0,arity:1,forced:u},n)},l=function(e,t){if(s&&s[e]){var n={};n[e]=a("WebAssembly."+e,t,u),r({target:"WebAssembly",stat:!0,constructor:!0,arity:1,forced:u},n)}};c("Error",(function(e){return function(t){return o(e,this,arguments)}})),c("EvalError",(function(e){return function(t){return o(e,this,arguments)}})),c("RangeError",(function(e){return function(t){return o(e,this,arguments)}})),c("ReferenceError",(function(e){return function(t){return o(e,this,arguments)}})),c("SyntaxError",(function(e){return function(t){return o(e,this,arguments)}})),c("TypeError",(function(e){return function(t){return o(e,this,arguments)}})),c("URIError",(function(e){return function(t){return o(e,this,arguments)}})),l("CompileError",(function(e){return function(t){return o(e,this,arguments)}})),l("LinkError",(function(e){return function(t){return o(e,this,arguments)}})),l("RuntimeError",(function(e){return function(t){return o(e,this,arguments)}}))},function(e,t,n){"use strict";var r=n(28),i=n(296),o=Error.prototype;o.toString!==i&&r(o,"toString",i)},function(e,t,n){"use strict";var r=n(2),i=n(61),o=n(51),a=n(85),s=n(135),u=n(45),c=n(50),l=n(76),f=n(294),d=n(233),p=n(42),h=n(137),v=n(13)("toStringTag"),g=Error,m=[].push,y=function(e,t){var n,r=i(b,this);a?n=a(new g,r?o(this):b):(n=r?this:u(b),c(n,v,"Error")),void 0!==t&&c(n,"message",h(t)),d(n,y,n.stack,1),arguments.length>2&&f(n,arguments[2]);var s=[];return p(e,m,{that:s}),c(n,"errors",s),n};a?a(y,g):s(y,g,{name:!0});var b=y.prototype=u(g.prototype,{constructor:l(1,y),message:l(1,""),name:l(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:y})},function(e,t,n){"use strict";var r=n(2),i=n(16),o=n(66),a=n(5),s=n(290),u=i("AggregateError"),c=!a((function(){return 1!==u([1]).errors[0]}))&&a((function(){return 7!==u([1],"AggregateError",{cause:7}).cause}));r({global:!0,constructor:!0,arity:2,forced:c},{AggregateError:s("AggregateError",(function(e){return function(t,n){return o(e,this,arguments)}}),c,!0)})},function(e,t,n){"use strict";var r=n(2),i=n(5),o=n(93),a=n(15),s=n(24),u=n(25),c=n(122),l=n(86),f=n(156),d=n(157),p=n(13),h=n(98),v=p("isConcatSpreadable"),g=h>=51||!i((function(){var e=[];return e[v]=!1,e.concat()[0]!==e})),m=function(e){if(!a(e))return!1;var t=e[v];return void 0!==t?!!t:o(e)};r({target:"Array",proto:!0,arity:1,forced:!g||!d("concat")},{concat:function(e){var t,n,r,i,o,a=s(this),d=f(a,0),p=0;for(t=-1,r=arguments.length;t<r;t++)if(m(o=-1===t?a:arguments[t]))for(i=u(o),c(p+i),n=0;n<i;n++,p++)n in o&&l(d,p,o[n]);else c(p+1),l(d,p++,o);return d.length=p,d}})},function(e,t,n){"use strict";var r=n(2),i=n(299),o=n(43);r({target:"Array",proto:!0},{copyWithin:i}),o("copyWithin")},function(e,t,n){"use strict";var r=n(2),i=n(46).every;r({target:"Array",proto:!0,forced:!n(87)("every")},{every:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(2),i=n(237),o=n(43);r({target:"Array",proto:!0},{fill:i}),o("fill")},function(e,t,n){"use strict";var r=n(2),i=n(46).filter;r({target:"Array",proto:!0,forced:!n(157)("filter")},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(2),i=n(46).find,o=n(43),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("find")},function(e,t,n){"use strict";var r=n(2),i=n(46).findIndex,o=n(43),a=!0;"findIndex"in[]&&Array(1).findIndex((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("findIndex")},function(e,t,n){"use strict";var r=n(2),i=n(302),o=n(24),a=n(25),s=n(36),u=n(156);r({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=o(this),n=a(t),r=u(t,0);return r.length=i(r,t,t,n,0,void 0===e?1:s(e)),r}})},function(e,t,n){"use strict";var r=n(2),i=n(302),o=n(17),a=n(24),s=n(25),u=n(156);r({target:"Array",proto:!0},{flatMap:function(e){var t,n=a(this),r=s(n);return o(e),(t=u(n,0)).length=i(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},function(e,t,n){"use strict";var r=n(2),i=n(303);r({target:"Array",proto:!0,forced:[].forEach!==i},{forEach:i})},function(e,t,n){"use strict";var r=n(2),i=n(304);r({target:"Array",stat:!0,forced:!n(186)((function(e){Array.from(e)}))},{from:i})},function(e,t,n){"use strict";var r=n(2),i=n(154).includes,o=n(5),a=n(43);r({target:"Array",proto:!0,forced:o((function(){return!Array(1).includes()}))},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},function(e,t,n){"use strict";var r=n(2),i=n(119),o=n(154).indexOf,a=n(87),s=i([].indexOf),u=!!s&&1/s([1],1,-0)<0;r({target:"Array",proto:!0,forced:u||!a("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return u?s(this,e,t)||0:o(this,e,t)}})},function(e,t,n){"use strict";n(2)({target:"Array",stat:!0},{isArray:n(93)})},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(104),a=n(48),s=n(87),u=i([].join);r({target:"Array",proto:!0,forced:o!==Object||!s("join",",")},{join:function(e){return u(a(this),void 0===e?",":e)}})},function(e,t,n){"use strict";var r=n(2),i=n(305);r({target:"Array",proto:!0,forced:i!==[].lastIndexOf},{lastIndexOf:i})},function(e,t,n){"use strict";var r=n(2),i=n(46).map;r({target:"Array",proto:!0,forced:!n(157)("map")},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(2),i=n(5),o=n(94),a=n(86),s=Array;r({target:"Array",stat:!0,forced:i((function(){function e(){}return!(s.of.call(e)instanceof e)}))},{of:function(){for(var e=0,t=arguments.length,n=new(o(this)?this:s)(t);t>e;)a(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){"use strict";var r=n(2),i=n(24),o=n(25),a=n(240),s=n(122);r({target:"Array",proto:!0,arity:1,forced:n(5)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=i(this),n=o(t),r=arguments.length;s(n+r);for(var u=0;u<r;u++)t[n]=arguments[u],n++;return a(t,n),n}})},function(e,t,n){"use strict";var r=n(2),i=n(188).left,o=n(87),a=n(98);r({target:"Array",proto:!0,forced:!n(109)&&a>79&&a<83||!o("reduce")},{reduce:function(e){var t=arguments.length;return i(this,e,t,t>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(2),i=n(188).right,o=n(87),a=n(98);r({target:"Array",proto:!0,forced:!n(109)&&a>79&&a<83||!o("reduceRight")},{reduceRight:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(93),a=i([].reverse),s=[1,2];r({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),a(this)}})},function(e,t,n){"use strict";var r=n(2),i=n(93),o=n(94),a=n(15),s=n(92),u=n(25),c=n(48),l=n(86),f=n(13),d=n(157),p=n(79),h=d("slice"),v=f("species"),g=Array,m=Math.max;r({target:"Array",proto:!0,forced:!h},{slice:function(e,t){var n,r,f,d=c(this),h=u(d),y=s(e,h),b=s(void 0===t?h:t,h);if(i(d)&&(n=d.constructor,(o(n)&&(n===g||i(n.prototype))||a(n)&&null===(n=n[v]))&&(n=void 0),n===g||void 0===n))return p(d,y,b);for(r=new(void 0===n?g:n)(m(b-y,0)),f=0;y<b;y++,f++)y in d&&l(r,f,d[y]);return r.length=f,r}})},function(e,t,n){"use strict";var r=n(2),i=n(46).some;r({target:"Array",proto:!0,forced:!n(87)("some")},{some:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(17),a=n(24),s=n(25),u=n(184),c=n(18),l=n(5),f=n(241),d=n(87),p=n(306),h=n(307),v=n(98),g=n(242),m=[],y=i(m.sort),b=i(m.push),x=l((function(){m.sort(void 0)})),w=l((function(){m.sort(null)})),_=d("sort"),S=!l((function(){if(v)return v<70;if(!(p&&p>3)){if(h)return!0;if(g)return g<603;var e,t,n,r,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)m.push({k:t+r,v:n})}for(m.sort((function(e,t){return t.v-e.v})),r=0;r<m.length;r++)t=m[r].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}}));r({target:"Array",proto:!0,forced:x||!w||!_||!S},{sort:function(e){void 0!==e&&o(e);var t=a(this);if(S)return void 0===e?y(t):y(t,e);var n,r,i=[],l=s(t);for(r=0;r<l;r++)r in t&&b(i,t[r]);for(f(i,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:c(t)>c(n)?1:-1}}(e)),n=s(i),r=0;r<n;)t[r]=i[r++];for(;r<l;)u(t,r++);return t}})},function(e,t,n){"use strict";n(124)("Array")},function(e,t,n){"use strict";var r=n(2),i=n(24),o=n(92),a=n(36),s=n(25),u=n(240),c=n(122),l=n(156),f=n(86),d=n(184),p=n(157)("splice"),h=Math.max,v=Math.min;r({target:"Array",proto:!0,forced:!p},{splice:function(e,t){var n,r,p,g,m,y,b=i(this),x=s(b),w=o(e,x),_=arguments.length;for(0===_?n=r=0:1===_?(n=0,r=x-w):(n=_-2,r=v(h(a(t),0),x-w)),c(x+n-r),p=l(b,r),g=0;g<r;g++)(m=w+g)in b&&f(p,g,b[m]);if(p.length=r,n<r){for(g=w;g<x-r;g++)y=g+n,(m=g+r)in b?b[y]=b[m]:d(b,y);for(g=x;g>x-r+n;g--)d(b,g-1)}else if(n>r)for(g=x-r;g>w;g--)y=g+n-1,(m=g+r-1)in b?b[y]=b[m]:d(b,y);for(g=0;g<n;g++)b[g+w]=arguments[g+2];return u(b,x-r+n),p}})},function(e,t,n){"use strict";n(43)("flat")},function(e,t,n){"use strict";n(43)("flatMap")},function(e,t,n){"use strict";var r=n(2),i=n(24),o=n(25),a=n(240),s=n(184),u=n(122);r({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}()},{unshift:function(e){var t=i(this),n=o(t),r=arguments.length;if(r){u(n+r);for(var c=n;c--;){var l=c+r;c in t?t[l]=t[c]:s(t,l)}for(var f=0;f<r;f++)t[f]=arguments[f]}return a(t,n+r)}})},function(e,t,n){"use strict";var r=n(2),i=n(10),o=n(189),a=n(124),s=o.ArrayBuffer;r({global:!0,constructor:!0,forced:i.ArrayBuffer!==s},{ArrayBuffer:s}),a("ArrayBuffer")},function(e,t,n){"use strict";var r=n(2),i=n(22);r({target:"ArrayBuffer",stat:!0,forced:!i.NATIVE_ARRAY_BUFFER_VIEWS},{isView:i.isView})},function(e,t,n){"use strict";var r=n(2),i=n(119),o=n(5),a=n(189),s=n(8),u=n(92),c=n(77),l=n(140),f=a.ArrayBuffer,d=a.DataView,p=d.prototype,h=i(f.prototype.slice),v=i(p.getUint8),g=i(p.setUint8);r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:o((function(){return!new f(2).slice(1,void 0).byteLength}))},{slice:function(e,t){if(h&&void 0===t)return h(s(this),e);for(var n=s(this).byteLength,r=u(e,n),i=u(void 0===t?n:t,n),o=new(l(this,f))(c(i-r)),a=new d(this),p=new d(o),m=0;r<i;)g(p,m++,v(a,r++));return o}})},function(e,t,n){"use strict";n(526)},function(e,t,n){"use strict";var r=n(2),i=n(189);r({global:!0,constructor:!0,forced:!n(243)},{DataView:i.DataView})},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(5)((function(){return 120!==new Date(16e11).getYear()})),a=i(Date.prototype.getFullYear);r({target:"Date",proto:!0,forced:o},{getYear:function(){return a(this)-1900}})},function(e,t,n){"use strict";var r=n(2),i=n(4),o=Date,a=i(o.prototype.getTime);r({target:"Date",stat:!0},{now:function(){return a(new o)}})},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(36),a=Date.prototype,s=i(a.getTime),u=i(a.setFullYear);r({target:"Date",proto:!0},{setYear:function(e){s(this);var t=o(e);return u(this,t>=0&&t<=99?t+1900:t)}})},function(e,t,n){"use strict";n(2)({target:"Date",proto:!0},{toGMTString:Date.prototype.toUTCString})},function(e,t,n){"use strict";var r=n(2),i=n(532);r({target:"Date",proto:!0,forced:Date.prototype.toISOString!==i},{toISOString:i})},function(e,t,n){"use strict";var r=n(4),i=n(5),o=n(191).start,a=RangeError,s=isFinite,u=Math.abs,c=Date.prototype,l=c.toISOString,f=r(c.getTime),d=r(c.getUTCDate),p=r(c.getUTCFullYear),h=r(c.getUTCHours),v=r(c.getUTCMilliseconds),g=r(c.getUTCMinutes),m=r(c.getUTCMonth),y=r(c.getUTCSeconds);e.exports=i((function(){return"0385-07-25T07:06:39.999Z"!==l.call(new Date(-50000000000001))}))||!i((function(){l.call(new Date(NaN))}))?function(){if(!s(f(this)))throw new a("Invalid time value");var e=p(this),t=v(this),n=e<0?"-":e>9999?"+":"";return n+o(u(e),n?6:4,0)+"-"+o(m(this)+1,2,0)+"-"+o(d(this),2,0)+"T"+o(h(this),2,0)+":"+o(g(this),2,0)+":"+o(y(this),2,0)+"."+o(t,3,0)+"Z"}:l},function(e,t,n){"use strict";var r=n(2),i=n(5),o=n(24),a=n(176);r({target:"Date",proto:!0,arity:1,forced:i((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(e){var t=o(this),n=a(t,"number");return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},function(e,t,n){"use strict";var r=n(21),i=n(28),o=n(535),a=n(13)("toPrimitive"),s=Date.prototype;r(s,a)||i(s,a,o)},function(e,t,n){"use strict";var r=n(8),i=n(278),o=TypeError;e.exports=function(e){if(r(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw new o("Incorrect hint");return i(this,e)}},function(e,t,n){"use strict";var r=n(4),i=n(28),o=Date.prototype,a=r(o.toString),s=r(o.getTime);"Invalid Date"!==String(new Date(NaN))&&i(o,"toString",(function(){var e=s(this);return e==e?a(this):"Invalid Date"}))},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(18),a=i("".charAt),s=i("".charCodeAt),u=i(/./.exec),c=i(1..toString),l=i("".toUpperCase),f=/[\w*+\-./@]/,d=function(e,t){for(var n=c(e,16);n.length<t;)n="0"+n;return n};r({global:!0},{escape:function(e){for(var t,n,r=o(e),i="",c=r.length,p=0;p<c;)t=a(r,p++),u(f,t)?i+=t:i+=(n=s(t,0))<256?"%"+d(n,2):"%u"+l(d(n,4));return i}})},function(e,t,n){"use strict";var r=n(2),i=n(325);r({target:"Function",proto:!0,forced:Function.bind!==i},{bind:i})},function(e,t,n){"use strict";var r=n(19),i=n(15),o=n(33),a=n(61),s=n(13),u=n(179),c=s("hasInstance"),l=Function.prototype;c in l||o.f(l,c,{value:u((function(e){if(!r(this)||!i(e))return!1;var t=this.prototype;return i(t)?a(t,e):e instanceof this}),c)})},function(e,t,n){"use strict";var r=n(12),i=n(134).EXISTS,o=n(4),a=n(37),s=Function.prototype,u=o(s.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=o(c.exec);r&&!i&&a(s,"name",{configurable:!0,get:function(){try{return l(c,u(this))[1]}catch(e){return""}}})},function(e,t,n){"use strict";var r=n(10);n(72)(r.JSON,"JSON",!0)},function(e,t,n){"use strict";n(193)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(327))},function(e,t,n){"use strict";var r=n(2),i=n(329),o=Math.acosh,a=Math.log,s=Math.sqrt,u=Math.LN2;r({target:"Math",stat:!0,forced:!o||710!==Math.floor(o(Number.MAX_VALUE))||o(1/0)!==1/0},{acosh:function(e){var t=+e;return t<1?NaN:t>94906265.62425156?a(t)+u:i(t-1+s(t-1)*s(t+1))}})},function(e,t,n){"use strict";var r=n(2),i=Math.asinh,o=Math.log,a=Math.sqrt;r({target:"Math",stat:!0,forced:!(i&&1/i(0)>0)},{asinh:function e(t){var n=+t;return isFinite(n)&&0!==n?n<0?-e(-n):o(n+a(n*n+1)):n}})},function(e,t,n){"use strict";var r=n(2),i=Math.atanh,o=Math.log;r({target:"Math",stat:!0,forced:!(i&&1/i(-0)<0)},{atanh:function(e){var t=+e;return 0===t?t:o((1+t)/(1-t))/2}})},function(e,t,n){"use strict";var r=n(2),i=n(245),o=Math.abs,a=Math.pow;r({target:"Math",stat:!0},{cbrt:function(e){var t=+e;return i(t)*a(o(t),1/3)}})},function(e,t,n){"use strict";var r=n(2),i=Math.floor,o=Math.log,a=Math.LOG2E;r({target:"Math",stat:!0},{clz32:function(e){var t=e>>>0;return t?31-i(o(t+.5)*a):32}})},function(e,t,n){"use strict";var r=n(2),i=n(194),o=Math.cosh,a=Math.abs,s=Math.E;r({target:"Math",stat:!0,forced:!o||o(710)===1/0},{cosh:function(e){var t=i(a(e)-1)+1;return(t+1/(t*s*s))*(s/2)}})},function(e,t,n){"use strict";var r=n(2),i=n(194);r({target:"Math",stat:!0,forced:i!==Math.expm1},{expm1:i})},function(e,t,n){"use strict";n(2)({target:"Math",stat:!0},{fround:n(244)})},function(e,t,n){"use strict";var r=n(2),i=Math.hypot,o=Math.abs,a=Math.sqrt;r({target:"Math",stat:!0,arity:2,forced:!!i&&i(1/0,NaN)!==1/0},{hypot:function(e,t){for(var n,r,i=0,s=0,u=arguments.length,c=0;s<u;)c<(n=o(arguments[s++]))?(i=i*(r=c/n)*r+1,c=n):i+=n>0?(r=n/c)*r:n;return c===1/0?1/0:c*a(i)}})},function(e,t,n){"use strict";var r=n(2),i=n(5),o=Math.imul;r({target:"Math",stat:!0,forced:i((function(){return-5!==o(4294967295,5)||2!==o.length}))},{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){"use strict";n(2)({target:"Math",stat:!0},{log10:n(330)})},function(e,t,n){"use strict";n(2)({target:"Math",stat:!0},{log1p:n(329)})},function(e,t,n){"use strict";var r=n(2),i=Math.log,o=Math.LN2;r({target:"Math",stat:!0},{log2:function(e){return i(e)/o}})},function(e,t,n){"use strict";n(2)({target:"Math",stat:!0},{sign:n(245)})},function(e,t,n){"use strict";var r=n(2),i=n(5),o=n(194),a=Math.abs,s=Math.exp,u=Math.E;r({target:"Math",stat:!0,forced:i((function(){return-2e-17!==Math.sinh(-2e-17)}))},{sinh:function(e){var t=+e;return a(t)<1?(o(t)-o(-t))/2:(s(t-1)-s(-t-1))*(u/2)}})},function(e,t,n){"use strict";var r=n(2),i=n(194),o=Math.exp;r({target:"Math",stat:!0},{tanh:function(e){var t=+e,n=i(t),r=i(-t);return n===1/0?1:r===1/0?-1:(n-r)/(o(t)+o(-t))}})},function(e,t,n){"use strict";n(72)(Math,"Math",!0)},function(e,t,n){"use strict";n(2)({target:"Math",stat:!0},{trunc:n(283)})},function(e,t,n){"use strict";var r=n(2),i=n(23),o=n(12),a=n(10),s=n(232),u=n(4),c=n(155),l=n(21),f=n(120),d=n(61),p=n(105),h=n(176),v=n(5),g=n(118).f,m=n(56).f,y=n(33).f,b=n(195),x=n(141).trim,w=a.Number,_=s.Number,S=w.prototype,O=a.TypeError,k=u("".slice),E=u("".charCodeAt),j=function(e){var t=h(e,"number");return"bigint"==typeof t?t:T(t)},T=function(e){var t,n,r,i,o,a,s,u,c=h(e,"number");if(p(c))throw new O("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=x(c),43===(t=E(c,0))||45===t){if(88===(n=E(c,2))||120===n)return NaN}else if(48===t){switch(E(c,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+c}for(a=(o=k(c,2)).length,s=0;s<a;s++)if((u=E(o,s))<48||u>i)return NaN;return parseInt(o,r)}return+c},C=c("Number",!w(" 0o1")||!w("0b1")||w("+0x1")),A=function(e){return d(S,e)&&v((function(){b(e)}))},P=function(e){var t=arguments.length<1?0:w(j(e));return A(this)?f(Object(t),this,P):t};P.prototype=S,C&&!i&&(S.constructor=P),r({global:!0,constructor:!0,wrap:!0,forced:C},{Number:P});var M=function(e,t){for(var n,r=o?g(t):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),i=0;r.length>i;i++)l(t,n=r[i])&&!l(e,n)&&y(e,n,m(t,n))};i&&_&&M(s.Number,_),(C||i)&&M(s.Number,w)},function(e,t,n){"use strict";n(2)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},function(e,t,n){"use strict";n(2)({target:"Number",stat:!0},{isFinite:n(331)})},function(e,t,n){"use strict";n(2)({target:"Number",stat:!0},{isInteger:n(252)})},function(e,t,n){"use strict";n(2)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},function(e,t,n){"use strict";var r=n(2),i=n(252),o=Math.abs;r({target:"Number",stat:!0},{isSafeInteger:function(e){return i(e)&&o(e)<=9007199254740991}})},function(e,t,n){"use strict";n(2)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){"use strict";n(2)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){"use strict";var r=n(2),i=n(332);r({target:"Number",stat:!0,forced:Number.parseFloat!==i},{parseFloat:i})},function(e,t,n){"use strict";var r=n(2),i=n(333);r({target:"Number",stat:!0,forced:Number.parseInt!==i},{parseInt:i})},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(36),a=n(195),s=n(192),u=n(330),c=n(5),l=RangeError,f=String,d=isFinite,p=Math.abs,h=Math.floor,v=Math.pow,g=Math.round,m=i(1..toExponential),y=i(s),b=i("".slice),x="-6.9000e-11"===m(-69e-12,4)&&"1.25e+0"===m(1.255,2)&&"1.235e+4"===m(12345,3)&&"3e+1"===m(25,0);r({target:"Number",proto:!0,forced:!x||!(c((function(){m(1,1/0)}))&&c((function(){m(1,-1/0)})))||!!c((function(){m(1/0,1/0),m(NaN,1/0)}))},{toExponential:function(e){var t=a(this);if(void 0===e)return m(t);var n=o(e);if(!d(t))return String(t);if(n<0||n>20)throw new l("Incorrect fraction digits");if(x)return m(t,n);var r="",i="",s=0,c="",w="";if(t<0&&(r="-",t=-t),0===t)s=0,i=y("0",n+1);else{var _=u(t);s=h(_);var S=0,O=v(10,s-n);2*t>=(2*(S=g(t/O))+1)*O&&(S+=1),S>=v(10,n+1)&&(S/=10,s+=1),i=f(S)}return 0!==n&&(i=b(i,0,1)+"."+b(i,1)),0===s?(c="+",w="0"):(c=s>0?"+":"-",w=f(p(s))),r+(i+"e")+c+w}})},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(36),a=n(195),s=n(192),u=n(5),c=RangeError,l=String,f=Math.floor,d=i(s),p=i("".slice),h=i(1..toFixed),v=function(e,t,n){return 0===t?n:t%2==1?v(e,t-1,n*e):v(e*e,t/2,n)},g=function(e,t,n){for(var r=-1,i=n;++r<6;)i+=t*e[r],e[r]=i%1e7,i=f(i/1e7)},m=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=f(r/t),r=r%t*1e7},y=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=l(e[t]);n=""===n?r:n+d("0",7-r.length)+r}return n};r({target:"Number",proto:!0,forced:u((function(){return"0.000"!==h(8e-5,3)||"1"!==h(.9,0)||"1.25"!==h(1.255,2)||"1000000000000000128"!==h(0xde0b6b3a7640080,0)}))||!u((function(){h({})}))},{toFixed:function(e){var t,n,r,i,s=a(this),u=o(e),f=[0,0,0,0,0,0],h="",b="0";if(u<0||u>20)throw new c("Incorrect fraction digits");if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return l(s);if(s<0&&(h="-",s=-s),s>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}(s*v(2,69,1))-69)<0?s*v(2,-t,1):s/v(2,t,1),n*=4503599627370496,(t=52-t)>0){for(g(f,0,n),r=u;r>=7;)g(f,1e7,0),r-=7;for(g(f,v(10,r,1),0),r=t-1;r>=23;)m(f,1<<23),r-=23;m(f,1<<r),g(f,1,1),m(f,2),b=y(f)}else g(f,0,n),g(f,1<<-t,0),b=y(f)+d("0",u);return u>0?h+((i=b.length)<=u?"0."+d("0",u-i)+b:p(b,0,i-u)+"."+p(b,i-u)):h+b}})},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(5),a=n(195),s=i(1..toPrecision);r({target:"Number",proto:!0,forced:o((function(){return"1"!==s(1,void 0)}))||!o((function(){s({})}))},{toPrecision:function(e){return void 0===e?s(a(this)):s(a(this),e)}})},function(e,t,n){"use strict";var r=n(2),i=n(334);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign:i})},function(e,t,n){"use strict";n(2)({target:"Object",stat:!0,sham:!n(12)},{create:n(45)})},function(e,t,n){"use strict";var r=n(2),i=n(12),o=n(196),a=n(17),s=n(24),u=n(33);i&&r({target:"Object",proto:!0,forced:o},{__defineGetter__:function(e,t){u.f(s(this),e,{get:a(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";var r=n(2),i=n(12),o=n(230).f;r({target:"Object",stat:!0,forced:Object.defineProperties!==o,sham:!i},{defineProperties:o})},function(e,t,n){"use strict";var r=n(2),i=n(12),o=n(33).f;r({target:"Object",stat:!0,forced:Object.defineProperty!==o,sham:!i},{defineProperty:o})},function(e,t,n){"use strict";var r=n(2),i=n(12),o=n(196),a=n(17),s=n(24),u=n(33);i&&r({target:"Object",proto:!0,forced:o},{__defineSetter__:function(e,t){u.f(s(this),e,{set:a(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";var r=n(2),i=n(335).entries;r({target:"Object",stat:!0},{entries:function(e){return i(e)}})},function(e,t,n){"use strict";var r=n(2),i=n(111),o=n(5),a=n(15),s=n(125).onFreeze,u=Object.freeze;r({target:"Object",stat:!0,forced:o((function(){u(1)})),sham:!i},{freeze:function(e){return u&&a(e)?u(s(e)):e}})},function(e,t,n){"use strict";var r=n(2),i=n(42),o=n(86);r({target:"Object",stat:!0},{fromEntries:function(e){var t={};return i(e,(function(e,n){o(t,e,n)}),{AS_ENTRIES:!0}),t}})},function(e,t,n){"use strict";var r=n(2),i=n(5),o=n(48),a=n(56).f,s=n(12);r({target:"Object",stat:!0,forced:!s||i((function(){a(1)})),sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(o(e),t)}})},function(e,t,n){"use strict";var r=n(2),i=n(12),o=n(227),a=n(48),s=n(56),u=n(86);r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),i=s.f,c=o(r),l={},f=0;c.length>f;)void 0!==(n=i(r,t=c[f++]))&&u(l,t,n);return l}})},function(e,t,n){"use strict";var r=n(2),i=n(5),o=n(231).f;r({target:"Object",stat:!0,forced:i((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:o})},function(e,t,n){"use strict";var r=n(2),i=n(5),o=n(24),a=n(51),s=n(235);r({target:"Object",stat:!0,forced:i((function(){a(1)})),sham:!s},{getPrototypeOf:function(e){return a(o(e))}})},function(e,t,n){"use strict";n(2)({target:"Object",stat:!0},{is:n(338)})},function(e,t,n){"use strict";var r=n(2),i=n(250);r({target:"Object",stat:!0,forced:Object.isExtensible!==i},{isExtensible:i})},function(e,t,n){"use strict";var r=n(2),i=n(5),o=n(15),a=n(60),s=n(251),u=Object.isFrozen;r({target:"Object",stat:!0,forced:s||i((function(){u(1)}))},{isFrozen:function(e){return!o(e)||!(!s||"ArrayBuffer"!==a(e))||!!u&&u(e)}})},function(e,t,n){"use strict";var r=n(2),i=n(5),o=n(15),a=n(60),s=n(251),u=Object.isSealed;r({target:"Object",stat:!0,forced:s||i((function(){u(1)}))},{isSealed:function(e){return!o(e)||!(!s||"ArrayBuffer"!==a(e))||!!u&&u(e)}})},function(e,t,n){"use strict";var r=n(2),i=n(24),o=n(136);r({target:"Object",stat:!0,forced:n(5)((function(){o(1)}))},{keys:function(e){return o(i(e))}})},function(e,t,n){"use strict";var r=n(2),i=n(12),o=n(196),a=n(24),s=n(97),u=n(51),c=n(56).f;i&&r({target:"Object",proto:!0,forced:o},{__lookupGetter__:function(e){var t,n=a(this),r=s(e);do{if(t=c(n,r))return t.get}while(n=u(n))}})},function(e,t,n){"use strict";var r=n(2),i=n(12),o=n(196),a=n(24),s=n(97),u=n(51),c=n(56).f;i&&r({target:"Object",proto:!0,forced:o},{__lookupSetter__:function(e){var t,n=a(this),r=s(e);do{if(t=c(n,r))return t.set}while(n=u(n))}})},function(e,t,n){"use strict";var r=n(2),i=n(15),o=n(125).onFreeze,a=n(111),s=n(5),u=Object.preventExtensions;r({target:"Object",stat:!0,forced:s((function(){u(1)})),sham:!a},{preventExtensions:function(e){return u&&i(e)?u(o(e)):e}})},function(e,t,n){"use strict";var r=n(12),i=n(37),o=n(15),a=n(292),s=n(24),u=n(34),c=Object.getPrototypeOf,l=Object.setPrototypeOf,f=Object.prototype;if(r&&c&&l&&!("__proto__"in f))try{i(f,"__proto__",{configurable:!0,get:function(){return c(s(this))},set:function(e){var t=u(this);a(e)&&o(t)&&l(t,e)}})}catch(e){}},function(e,t,n){"use strict";var r=n(2),i=n(15),o=n(125).onFreeze,a=n(111),s=n(5),u=Object.seal;r({target:"Object",stat:!0,forced:s((function(){u(1)})),sham:!a},{seal:function(e){return u&&i(e)?u(o(e)):e}})},function(e,t,n){"use strict";n(2)({target:"Object",stat:!0},{setPrototypeOf:n(85)})},function(e,t,n){"use strict";var r=n(229),i=n(28),o=n(599);r||i(Object.prototype,"toString",o,{unsafe:!0})},function(e,t,n){"use strict";var r=n(229),i=n(78);e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},function(e,t,n){"use strict";var r=n(2),i=n(335).values;r({target:"Object",stat:!0},{values:function(e){return i(e)}})},function(e,t,n){"use strict";var r=n(2),i=n(332);r({global:!0,forced:parseFloat!==i},{parseFloat:i})},function(e,t,n){"use strict";var r=n(2),i=n(333);r({global:!0,forced:parseInt!==i},{parseInt:i})},function(e,t,n){"use strict";n(604),n(607),n(608),n(609),n(610),n(611)},function(e,t,n){"use strict";var r,i,o,a=n(2),s=n(23),u=n(109),c=n(10),l=n(9),f=n(28),d=n(85),p=n(72),h=n(124),v=n(17),g=n(19),m=n(15),y=n(67),b=n(140),x=n(197).set,w=n(340),_=n(343),S=n(126),O=n(342),k=n(27),E=n(143),j=n(159),T=n(100),C=j.CONSTRUCTOR,A=j.REJECTION_EVENT,P=j.SUBCLASSING,M=k.getterFor("Promise"),I=k.set,R=E&&E.prototype,D=E,L=R,N=c.TypeError,F=c.document,B=c.process,U=T.f,z=U,V=!!(F&&F.createEvent&&c.dispatchEvent),H=function(e){var t;return!(!m(e)||!g(t=e.then))&&t},W=function(e,t){var n,r,i,o=t.value,a=1===t.state,s=a?e.ok:e.fail,u=e.resolve,c=e.reject,f=e.domain;try{s?(a||(2===t.rejection&&$(t),t.rejection=1),!0===s?n=o:(f&&f.enter(),n=s(o),f&&(f.exit(),i=!0)),n===e.promise?c(new N("Promise-chain cycle")):(r=H(n))?l(r,n,u,c):u(n)):c(o)}catch(e){f&&!i&&f.exit(),c(e)}},q=function(e,t){e.notified||(e.notified=!0,w((function(){for(var n,r=e.reactions;n=r.get();)W(n,e);e.notified=!1,t&&!e.rejection&&Y(e)})))},G=function(e,t,n){var r,i;V?((r=F.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),c.dispatchEvent(r)):r={promise:t,reason:n},!A&&(i=c["on"+e])?i(r):"unhandledrejection"===e&&_("Unhandled promise rejection",n)},Y=function(e){l(x,c,(function(){var t,n=e.facade,r=e.value;if(K(e)&&(t=S((function(){u?B.emit("unhandledRejection",r,n):G("unhandledrejection",n,r)})),e.rejection=u||K(e)?2:1,t.error))throw t.value}))},K=function(e){return 1!==e.rejection&&!e.parent},$=function(e){l(x,c,(function(){var t=e.facade;u?B.emit("rejectionHandled",t):G("rejectionhandled",t,e.value)}))},X=function(e,t,n){return function(r){e(t,r,n)}},Q=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,q(e,!0))},Z=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new N("Promise can't be resolved itself");var r=H(t);r?w((function(){var n={done:!1};try{l(r,t,X(Z,n,e),X(Q,n,e))}catch(t){Q(n,t,e)}})):(e.value=t,e.state=1,q(e,!1))}catch(t){Q({done:!1},t,e)}}};if(C&&(L=(D=function(e){y(this,L),v(e),l(r,this);var t=M(this);try{e(X(Z,t),X(Q,t))}catch(e){Q(t,e)}}).prototype,(r=function(e){I(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new O,rejection:!1,state:0,value:void 0})}).prototype=f(L,"then",(function(e,t){var n=M(this),r=U(b(this,D));return n.parent=!0,r.ok=!g(e)||e,r.fail=g(t)&&t,r.domain=u?B.domain:void 0,0===n.state?n.reactions.add(r):w((function(){W(r,n)})),r.promise})),i=function(){var e=new r,t=M(e);this.promise=e,this.resolve=X(Z,t),this.reject=X(Q,t)},T.f=U=function(e){return e===D||void 0===e?new i(e):z(e)},!s&&g(E)&&R!==Object.prototype)){o=R.then,P||f(R,"then",(function(e,t){var n=this;return new D((function(e,t){l(o,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete R.constructor}catch(e){}d&&d(R,L)}a({global:!0,constructor:!0,wrap:!0,forced:C},{Promise:D}),p(D,"Promise",!1,!0),h("Promise")},function(e,t,n){"use strict";var r=n(99);e.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},function(e,t,n){"use strict";var r=n(99);e.exports=/web0s(?!.*chrome)/i.test(r)},function(e,t,n){"use strict";var r=n(2),i=n(9),o=n(17),a=n(100),s=n(126),u=n(42);r({target:"Promise",stat:!0,forced:n(198)},{all:function(e){var t=this,n=a.f(t),r=n.resolve,c=n.reject,l=s((function(){var n=o(t.resolve),a=[],s=0,l=1;u(e,(function(e){var o=s++,u=!1;l++,i(n,t,e).then((function(e){u||(u=!0,a[o]=e,--l||r(a))}),c)})),--l||r(a)}));return l.error&&c(l.value),n.promise}})},function(e,t,n){"use strict";var r=n(2),i=n(23),o=n(159).CONSTRUCTOR,a=n(143),s=n(16),u=n(19),c=n(28),l=a&&a.prototype;if(r({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(e){return this.then(void 0,e)}}),!i&&u(a)){var f=s("Promise").prototype.catch;l.catch!==f&&c(l,"catch",f,{unsafe:!0})}},function(e,t,n){"use strict";var r=n(2),i=n(9),o=n(17),a=n(100),s=n(126),u=n(42);r({target:"Promise",stat:!0,forced:n(198)},{race:function(e){var t=this,n=a.f(t),r=n.reject,c=s((function(){var a=o(t.resolve);u(e,(function(e){i(a,t,e).then(n.resolve,r)}))}));return c.error&&r(c.value),n.promise}})},function(e,t,n){"use strict";var r=n(2),i=n(100);r({target:"Promise",stat:!0,forced:n(159).CONSTRUCTOR},{reject:function(e){var t=i.f(this);return(0,t.reject)(e),t.promise}})},function(e,t,n){"use strict";var r=n(2),i=n(16),o=n(23),a=n(143),s=n(159).CONSTRUCTOR,u=n(344),c=i("Promise"),l=o&&!s;r({target:"Promise",stat:!0,forced:o||s},{resolve:function(e){return u(l&&this===c?a:this,e)}})},function(e,t,n){"use strict";var r=n(2),i=n(23),o=n(143),a=n(5),s=n(16),u=n(19),c=n(140),l=n(344),f=n(28),d=o&&o.prototype;if(r({target:"Promise",proto:!0,real:!0,forced:!!o&&a((function(){d.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=c(this,s("Promise")),n=u(e);return this.then(n?function(n){return l(t,e()).then((function(){return n}))}:e,n?function(n){return l(t,e()).then((function(){throw n}))}:e)}}),!i&&u(o)){var p=s("Promise").prototype.finally;d.finally!==p&&f(d,"finally",p,{unsafe:!0})}},function(e,t,n){"use strict";var r=n(2),i=n(66),o=n(17),a=n(8);r({target:"Reflect",stat:!0,forced:!n(5)((function(){Reflect.apply((function(){}))}))},{apply:function(e,t,n){return i(o(e),t,a(n))}})},function(e,t,n){"use strict";var r=n(2),i=n(16),o=n(66),a=n(325),s=n(190),u=n(8),c=n(15),l=n(45),f=n(5),d=i("Reflect","construct"),p=Object.prototype,h=[].push,v=f((function(){function e(){}return!(d((function(){}),[],e)instanceof e)})),g=!f((function(){d((function(){}))})),m=v||g;r({target:"Reflect",stat:!0,forced:m,sham:m},{construct:function(e,t){s(e),u(t);var n=arguments.length<3?e:s(arguments[2]);if(g&&!v)return d(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 r=[null];return o(h,r,t),new(o(a,e,r))}var i=n.prototype,f=l(c(i)?i:p),m=o(e,f,t);return c(m)?m:f}})},function(e,t,n){"use strict";var r=n(2),i=n(12),o=n(8),a=n(97),s=n(33);r({target:"Reflect",stat:!0,forced:n(5)((function(){Reflect.defineProperty(s.f({},1,{value:1}),1,{value:2})})),sham:!i},{defineProperty:function(e,t,n){o(e);var r=a(t);o(n);try{return s.f(e,r,n),!0}catch(e){return!1}}})},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(56).f;r({target:"Reflect",stat:!0},{deleteProperty:function(e,t){var n=o(i(e),t);return!(n&&!n.configurable)&&delete e[t]}})},function(e,t,n){"use strict";var r=n(2),i=n(9),o=n(15),a=n(8),s=n(348),u=n(56),c=n(51);r({target:"Reflect",stat:!0},{get:function e(t,n){var r,l,f=arguments.length<3?t:arguments[2];return a(t)===f?t[n]:(r=u.f(t,n))?s(r)?r.value:void 0===r.get?void 0:i(r.get,f):o(l=c(t))?e(l,n,f):void 0}})},function(e,t,n){"use strict";var r=n(2),i=n(12),o=n(8),a=n(56);r({target:"Reflect",stat:!0,sham:!i},{getOwnPropertyDescriptor:function(e,t){return a.f(o(e),t)}})},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(51);r({target:"Reflect",stat:!0,sham:!n(235)},{getPrototypeOf:function(e){return o(i(e))}})},function(e,t,n){"use strict";n(2)({target:"Reflect",stat:!0},{has:function(e,t){return t in e}})},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(250);r({target:"Reflect",stat:!0},{isExtensible:function(e){return i(e),o(e)}})},function(e,t,n){"use strict";n(2)({target:"Reflect",stat:!0},{ownKeys:n(227)})},function(e,t,n){"use strict";var r=n(2),i=n(16),o=n(8);r({target:"Reflect",stat:!0,sham:!n(111)},{preventExtensions:function(e){o(e);try{var t=i("Object","preventExtensions");return t&&t(e),!0}catch(e){return!1}}})},function(e,t,n){"use strict";var r=n(2),i=n(9),o=n(8),a=n(15),s=n(348),u=n(5),c=n(33),l=n(56),f=n(51),d=n(76);r({target:"Reflect",stat:!0,forced:u((function(){var e=function(){},t=c.f(new e,"a",{configurable:!0});return!1!==Reflect.set(e.prototype,"a",1,t)}))},{set:function e(t,n,r){var u,p,h,v=arguments.length<4?t:arguments[3],g=l.f(o(t),n);if(!g){if(a(p=f(t)))return e(p,n,r,v);g=d(0)}if(s(g)){if(!1===g.writable||!a(v))return!1;if(u=l.f(v,n)){if(u.get||u.set||!1===u.writable)return!1;u.value=r,c.f(v,n,u)}else c.f(v,n,d(0,r))}else{if(void 0===(h=g.set))return!1;i(h,v,r)}return!0}})},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(291),a=n(85);a&&r({target:"Reflect",stat:!0},{setPrototypeOf:function(e,t){i(e),o(t);try{return a(e,t),!0}catch(e){return!1}}})},function(e,t,n){"use strict";var r=n(2),i=n(10),o=n(72);r({global:!0},{Reflect:{}}),o(i.Reflect,"Reflect",!0)},function(e,t,n){"use strict";var r=n(12),i=n(10),o=n(4),a=n(155),s=n(120),u=n(50),c=n(45),l=n(118).f,f=n(61),d=n(199),p=n(18),h=n(160),v=n(200),g=n(293),m=n(28),y=n(5),b=n(21),x=n(27).enforce,w=n(124),_=n(13),S=n(254),O=n(349),k=_("match"),E=i.RegExp,j=E.prototype,T=i.SyntaxError,C=o(j.exec),A=o("".charAt),P=o("".replace),M=o("".indexOf),I=o("".slice),R=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,D=/a/g,L=/a/g,N=new E(D)!==D,F=v.MISSED_STICKY,B=v.UNSUPPORTED_Y;if(a("RegExp",r&&(!N||F||S||O||y((function(){return L[k]=!1,E(D)!==D||E(L)===L||"/a/i"!==String(E(D,"i"))}))))){for(var U=function(e,t){var n,r,i,o,a,l,v=f(j,this),g=d(e),m=void 0===t,y=[],w=e;if(!v&&g&&m&&e.constructor===U)return e;if((g||f(j,e))&&(e=e.source,m&&(t=h(w))),e=void 0===e?"":p(e),t=void 0===t?"":p(t),w=e,S&&"dotAll"in D&&(r=!!t&&M(t,"s")>-1)&&(t=P(t,/s/g,"")),n=t,F&&"sticky"in D&&(i=!!t&&M(t,"y")>-1)&&B&&(t=P(t,/y/g,"")),O&&(e=(o=function(e){for(var t,n=e.length,r=0,i="",o=[],a=c(null),s=!1,u=!1,l=0,f="";r<=n;r++){if("\\"===(t=A(e,r)))t+=A(e,++r);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:C(R,I(e,r+1))&&(r+=2,u=!0),i+=t,l++;continue;case">"===t&&u:if(""===f||b(a,f))throw new T("Invalid capture group name");a[f]=!0,o[o.length]=[f,l],u=!1,f="";continue}u?f+=t:i+=t}return[i,o]}(e))[0],y=o[1]),a=s(E(e,t),v?this:j,U),(r||i||y.length)&&(l=x(a),r&&(l.dotAll=!0,l.raw=U(function(e){for(var t,n=e.length,r=0,i="",o=!1;r<=n;r++)"\\"!==(t=A(e,r))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+A(e,++r);return i}(e),n)),i&&(l.sticky=!0),y.length&&(l.groups=y)),e!==w)try{u(a,"source",""===w?"(?:)":w)}catch(e){}return a},z=l(E),V=0;z.length>V;)g(U,E,z[V++]);j.constructor=U,U.prototype=j,m(i,"RegExp",U,{constructor:!0})}w("RegExp")},function(e,t,n){"use strict";var r=n(12),i=n(254),o=n(60),a=n(37),s=n(27).get,u=RegExp.prototype,c=TypeError;r&&i&&a(u,"dotAll",{configurable:!0,get:function(){if(this!==u){if("RegExp"===o(this))return!!s(this).dotAll;throw new c("Incompatible receiver, RegExp required")}}})},function(e,t,n){"use strict";var r=n(10),i=n(12),o=n(37),a=n(253),s=n(5),u=r.RegExp,c=u.prototype;i&&s((function(){var e=!0;try{u(".","d")}catch(t){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",i=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(o.hasIndices="d"),o)i(a,o[a]);return Object.getOwnPropertyDescriptor(c,"flags").get.call(t)!==r||n!==r}))&&o(c,"flags",{configurable:!0,get:a})},function(e,t,n){"use strict";var r=n(12),i=n(200).MISSED_STICKY,o=n(60),a=n(37),s=n(27).get,u=RegExp.prototype,c=TypeError;r&&i&&a(u,"sticky",{configurable:!0,get:function(){if(this!==u){if("RegExp"===o(this))return!!s(this).sticky;throw new c("Incompatible receiver, RegExp required")}}})},function(e,t,n){"use strict";n(255);var r,i,o=n(2),a=n(9),s=n(19),u=n(8),c=n(18),l=(r=!1,(i=/[ac]/).exec=function(){return r=!0,/./.exec.apply(this,arguments)},!0===i.test("abc")&&r),f=/./.test;o({target:"RegExp",proto:!0,forced:!l},{test:function(e){var t=u(this),n=c(e),r=t.exec;if(!s(r))return a(f,t,n);var i=a(r,t,n);return null!==i&&(u(i),!0)}})},function(e,t,n){"use strict";var r=n(134).PROPER,i=n(28),o=n(8),a=n(18),s=n(5),u=n(160),c=RegExp.prototype,l=c.toString,f=s((function(){return"/a/b"!==l.call({source:"a",flags:"b"})})),d=r&&"toString"!==l.name;(f||d)&&i(c,"toString",(function(){var e=o(this);return"/"+a(e.source)+"/"+a(u(e))}),{unsafe:!0})},function(e,t,n){"use strict";n(634)},function(e,t,n){"use strict";n(193)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(327))},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(34),a=n(36),s=n(18),u=n(5),c=i("".charAt);r({target:"String",proto:!0,forced:u((function(){return"\ud842"!=="𠮷".at(-2)}))},{at:function(e){var t=s(o(this)),n=t.length,r=a(e),i=r>=0?r:n+r;return i<0||i>=n?void 0:c(t,i)}})},function(e,t,n){"use strict";var r=n(2),i=n(144).codeAt;r({target:"String",proto:!0},{codePointAt:function(e){return i(this,e)}})},function(e,t,n){"use strict";var r,i=n(2),o=n(119),a=n(56).f,s=n(77),u=n(18),c=n(258),l=n(34),f=n(259),d=n(23),p=o("".slice),h=Math.min,v=f("endsWith");i({target:"String",proto:!0,forced:!(!d&&!v&&(r=a(String.prototype,"endsWith"),r&&!r.writable)||v)},{endsWith:function(e){var t=u(l(this));c(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,i=void 0===n?r:h(s(n),r),o=u(e);return p(t,i-o.length,i)===o}})},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(92),a=RangeError,s=String.fromCharCode,u=String.fromCodePoint,c=i([].join);r({target:"String",stat:!0,arity:1,forced:!!u&&1!==u.length},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,i=0;r>i;){if(t=+arguments[i++],o(t,1114111)!==t)throw new a(t+" is not a valid code point");n[i]=t<65536?s(t):s(55296+((t-=65536)>>10),t%1024+56320)}return c(n,"")}})},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(258),a=n(34),s=n(18),u=n(259),c=i("".indexOf);r({target:"String",proto:!0,forced:!u("includes")},{includes:function(e){return!!~c(s(a(this)),s(o(e)),arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(9),i=n(201),o=n(8),a=n(49),s=n(77),u=n(18),c=n(34),l=n(44),f=n(202),d=n(162);i("match",(function(e,t,n){return[function(t){var n=c(this),i=a(t)?void 0:l(t,e);return i?r(i,t,n):new RegExp(t)[e](u(n))},function(e){var r=o(this),i=u(e),a=n(t,r,i);if(a.done)return a.value;if(!r.global)return d(r,i);var c=r.unicode;r.lastIndex=0;for(var l,p=[],h=0;null!==(l=d(r,i));){var v=u(l[0]);p[h]=v,""===v&&(r.lastIndex=f(i,s(r.lastIndex),c)),h++}return 0===h?null:p}]}))},function(e,t,n){"use strict";var r=n(2),i=n(191).end;r({target:"String",proto:!0,forced:n(367)},{padEnd:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(2),i=n(191).start;r({target:"String",proto:!0,forced:n(367)},{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(48),a=n(24),s=n(18),u=n(25),c=i([].push),l=i([].join);r({target:"String",stat:!0},{raw:function(e){var t=o(a(e).raw),n=u(t);if(!n)return"";for(var r=arguments.length,i=[],f=0;;){if(c(i,s(t[f++])),f===n)return l(i,"");f<r&&c(i,s(arguments[f]))}}})},function(e,t,n){"use strict";n(2)({target:"String",proto:!0},{repeat:n(192)})},function(e,t,n){"use strict";var r=n(66),i=n(9),o=n(4),a=n(201),s=n(5),u=n(8),c=n(19),l=n(49),f=n(36),d=n(77),p=n(18),h=n(34),v=n(202),g=n(44),m=n(368),y=n(162),b=n(13)("replace"),x=Math.max,w=Math.min,_=o([].concat),S=o([].push),O=o("".indexOf),k=o("".slice),E="$0"==="a".replace(/./,"$0"),j=!!/./[b]&&""===/./[b]("a","$0");a("replace",(function(e,t,n){var o=j?"$":"$0";return[function(e,n){var r=h(this),o=l(e)?void 0:g(e,b);return o?i(o,e,r,n):i(t,p(r),e,n)},function(e,i){var a=u(this),s=p(e);if("string"==typeof i&&-1===O(i,o)&&-1===O(i,"$<")){var l=n(t,a,s,i);if(l.done)return l.value}var h=c(i);h||(i=p(i));var g,b=a.global;b&&(g=a.unicode,a.lastIndex=0);for(var E,j=[];null!==(E=y(a,s))&&(S(j,E),b);)""===p(E[0])&&(a.lastIndex=v(s,d(a.lastIndex),g));for(var T,C="",A=0,P=0;P<j.length;P++){for(var M,I=p((E=j[P])[0]),R=x(w(f(E.index),s.length),0),D=[],L=1;L<E.length;L++)S(D,void 0===(T=E[L])?T:String(T));var N=E.groups;if(h){var F=_([I],D,R,s);void 0!==N&&S(F,N),M=p(r(i,void 0,F))}else M=m(I,s,R,D,N,i);R>=A&&(C+=k(s,A,R)+M,A=R+I.length)}return C+k(s,A)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!E||j)},function(e,t,n){"use strict";var r=n(9),i=n(201),o=n(8),a=n(49),s=n(34),u=n(338),c=n(18),l=n(44),f=n(162);i("search",(function(e,t,n){return[function(t){var n=s(this),i=a(t)?void 0:l(t,e);return i?r(i,t,n):new RegExp(t)[e](c(n))},function(e){var r=o(this),i=c(e),a=n(t,r,i);if(a.done)return a.value;var s=r.lastIndex;u(s,0)||(r.lastIndex=0);var l=f(r,i);return u(r.lastIndex,s)||(r.lastIndex=s),null===l?-1:l.index}]}))},function(e,t,n){"use strict";var r=n(9),i=n(4),o=n(201),a=n(8),s=n(49),u=n(34),c=n(140),l=n(202),f=n(77),d=n(18),p=n(44),h=n(162),v=n(200),g=n(5),m=v.UNSUPPORTED_Y,y=Math.min,b=i([].push),x=i("".slice),w=!g((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]})),_="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;o("split",(function(e,t,n){var i="0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:r(t,this,e,n)}:t;return[function(t,n){var o=u(this),a=s(t)?void 0:p(t,e);return a?r(a,t,o,n):r(i,d(o),t,n)},function(e,r){var o=a(this),s=d(e);if(!_){var u=n(i,o,s,r,i!==t);if(u.done)return u.value}var p=c(o,RegExp),v=o.unicode,g=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(m?"g":"y"),w=new p(m?"^(?:"+o.source+")":o,g),S=void 0===r?4294967295:r>>>0;if(0===S)return[];if(0===s.length)return null===h(w,s)?[s]:[];for(var O=0,k=0,E=[];k<s.length;){w.lastIndex=m?0:k;var j,T=h(w,m?x(s,k):s);if(null===T||(j=y(f(w.lastIndex+(m?k:0)),s.length))===O)k=l(s,k,v);else{if(b(E,x(s,O,k)),E.length===S)return E;for(var C=1;C<=T.length-1;C++)if(b(E,T[C]),E.length===S)return E;k=O=j}}return b(E,x(s,O)),E}]}),_||!w,m)},function(e,t,n){"use strict";var r,i=n(2),o=n(119),a=n(56).f,s=n(77),u=n(18),c=n(258),l=n(34),f=n(259),d=n(23),p=o("".slice),h=Math.min,v=f("startsWith");i({target:"String",proto:!0,forced:!(!d&&!v&&(r=a(String.prototype,"startsWith"),r&&!r.writable)||v)},{startsWith:function(e){var t=u(l(this));c(e);var n=s(h(arguments.length>1?arguments[1]:void 0,t.length)),r=u(e);return p(t,n,n+r.length)===r}})},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(34),a=n(36),s=n(18),u=i("".slice),c=Math.max,l=Math.min;r({target:"String",proto:!0,forced:!"".substr||"b"!=="ab".substr(-1)},{substr:function(e,t){var n,r,i=s(o(this)),f=i.length,d=a(e);return d===1/0&&(d=0),d<0&&(d=c(f+d,0)),(n=void 0===t?f:a(t))<=0||n===1/0||d>=(r=l(d+n,f))?"":u(i,d,r)}})},function(e,t,n){"use strict";var r=n(2),i=n(141).trim;r({target:"String",proto:!0,forced:n(260)("trim")},{trim:function(){return i(this)}})},function(e,t,n){"use strict";n(652);var r=n(2),i=n(371);r({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==i},{trimEnd:i})},function(e,t,n){"use strict";var r=n(2),i=n(371);r({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==i},{trimRight:i})},function(e,t,n){"use strict";n(654);var r=n(2),i=n(372);r({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==i},{trimStart:i})},function(e,t,n){"use strict";var r=n(2),i=n(372);r({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==i},{trimLeft:i})},function(e,t,n){"use strict";var r=n(2),i=n(81);r({target:"String",proto:!0,forced:n(82)("anchor")},{anchor:function(e){return i(this,"a","name",e)}})},function(e,t,n){"use strict";var r=n(2),i=n(81);r({target:"String",proto:!0,forced:n(82)("big")},{big:function(){return i(this,"big","","")}})},function(e,t,n){"use strict";var r=n(2),i=n(81);r({target:"String",proto:!0,forced:n(82)("blink")},{blink:function(){return i(this,"blink","","")}})},function(e,t,n){"use strict";var r=n(2),i=n(81);r({target:"String",proto:!0,forced:n(82)("bold")},{bold:function(){return i(this,"b","","")}})},function(e,t,n){"use strict";var r=n(2),i=n(81);r({target:"String",proto:!0,forced:n(82)("fixed")},{fixed:function(){return i(this,"tt","","")}})},function(e,t,n){"use strict";var r=n(2),i=n(81);r({target:"String",proto:!0,forced:n(82)("fontcolor")},{fontcolor:function(e){return i(this,"font","color",e)}})},function(e,t,n){"use strict";var r=n(2),i=n(81);r({target:"String",proto:!0,forced:n(82)("fontsize")},{fontsize:function(e){return i(this,"font","size",e)}})},function(e,t,n){"use strict";var r=n(2),i=n(81);r({target:"String",proto:!0,forced:n(82)("italics")},{italics:function(){return i(this,"i","","")}})},function(e,t,n){"use strict";var r=n(2),i=n(81);r({target:"String",proto:!0,forced:n(82)("link")},{link:function(e){return i(this,"a","href",e)}})},function(e,t,n){"use strict";var r=n(2),i=n(81);r({target:"String",proto:!0,forced:n(82)("small")},{small:function(){return i(this,"small","","")}})},function(e,t,n){"use strict";var r=n(2),i=n(81);r({target:"String",proto:!0,forced:n(82)("strike")},{strike:function(){return i(this,"strike","","")}})},function(e,t,n){"use strict";var r=n(2),i=n(81);r({target:"String",proto:!0,forced:n(82)("sub")},{sub:function(){return i(this,"sub","","")}})},function(e,t,n){"use strict";var r=n(2),i=n(81);r({target:"String",proto:!0,forced:n(82)("sup")},{sup:function(){return i(this,"sup","","")}})},function(e,t,n){"use strict";n(101)("Float32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){"use strict";n(101)("Float64",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){"use strict";n(101)("Int8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){"use strict";n(101)("Int16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){"use strict";n(101)("Int32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){"use strict";n(101)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){"use strict";n(101)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0)},function(e,t,n){"use strict";n(101)("Uint16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){"use strict";n(101)("Uint32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){"use strict";var r=n(4),i=n(22),o=r(n(299)),a=i.aTypedArray;(0,i.exportTypedArrayMethod)("copyWithin",(function(e,t){return o(a(this),e,t,arguments.length>2?arguments[2]:void 0)}))},function(e,t,n){"use strict";var r=n(22),i=n(46).every,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("every",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(22),i=n(237),o=n(203),a=n(78),s=n(9),u=n(4),c=n(5),l=r.aTypedArray,f=r.exportTypedArrayMethod,d=u("".slice);f("fill",(function(e){var t=arguments.length;l(this);var n="Big"===d(a(this),0,3)?o(e):+e;return s(i,this,n,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),c((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})))},function(e,t,n){"use strict";var r=n(22),i=n(46).filter,o=n(263),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("filter",(function(e){var t=i(a(this),e,arguments.length>1?arguments[1]:void 0);return o(this,t)}))},function(e,t,n){"use strict";var r=n(22),i=n(46).find,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("find",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(22),i=n(46).findIndex,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("findIndex",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(22),i=n(46).forEach,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("forEach",(function(e){i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(261);(0,n(22).exportTypedArrayStaticMethod)("from",n(375),r)},function(e,t,n){"use strict";var r=n(22),i=n(154).includes,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("includes",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(22),i=n(154).indexOf,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("indexOf",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(10),i=n(5),o=n(4),a=n(22),s=n(187),u=n(13)("iterator"),c=r.Uint8Array,l=o(s.values),f=o(s.keys),d=o(s.entries),p=a.aTypedArray,h=a.exportTypedArrayMethod,v=c&&c.prototype,g=!i((function(){v[u].call([1])})),m=!!v&&v.values&&v[u]===v.values&&"values"===v.values.name,y=function(){return l(p(this))};h("entries",(function(){return d(p(this))}),g),h("keys",(function(){return f(p(this))}),g),h("values",y,g||!m,{name:"values"}),h(u,y,g||!m,{name:"values"})},function(e,t,n){"use strict";var r=n(22),i=n(4),o=r.aTypedArray,a=r.exportTypedArrayMethod,s=i([].join);a("join",(function(e){return s(o(this),e)}))},function(e,t,n){"use strict";var r=n(22),i=n(66),o=n(305),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return i(o,a(this),t>1?[e,arguments[1]]:[e])}))},function(e,t,n){"use strict";var r=n(22),i=n(46).map,o=n(164),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("map",(function(e){return i(a(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(o(e))(t)}))}))},function(e,t,n){"use strict";var r=n(22),i=n(261),o=r.aTypedArrayConstructor;(0,r.exportTypedArrayStaticMethod)("of",(function(){for(var e=0,t=arguments.length,n=new(o(this))(t);t>e;)n[e]=arguments[e++];return n}),i)},function(e,t,n){"use strict";var r=n(22),i=n(188).left,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return i(o(this),e,t,t>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(22),i=n(188).right,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return i(o(this),e,t,t>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(22),i=r.aTypedArray,o=r.exportTypedArrayMethod,a=Math.floor;o("reverse",(function(){for(var e,t=i(this).length,n=a(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(10),i=n(9),o=n(22),a=n(25),s=n(373),u=n(24),c=n(5),l=r.RangeError,f=r.Int8Array,d=f&&f.prototype,p=d&&d.set,h=o.aTypedArray,v=o.exportTypedArrayMethod,g=!c((function(){var e=new Uint8ClampedArray(2);return i(p,e,{length:1,0:3},1),3!==e[1]})),m=g&&o.NATIVE_ARRAY_BUFFER_VIEWS&&c((function(){var e=new f(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));v("set",(function(e){h(this);var t=s(arguments.length>1?arguments[1]:void 0,1),n=u(e);if(g)return i(p,this,n,t);var r=this.length,o=a(n),c=0;if(o+t>r)throw new l("Wrong length");for(;c<o;)this[t+c]=n[c++]}),!g||m)},function(e,t,n){"use strict";var r=n(22),i=n(164),o=n(5),a=n(79),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("slice",(function(e,t){for(var n=a(s(this),e,t),r=i(this),o=0,u=n.length,c=new r(u);u>o;)c[o]=n[o++];return c}),o((function(){new Int8Array(1).slice()})))},function(e,t,n){"use strict";var r=n(22),i=n(46).some,o=r.aTypedArray;(0,r.exportTypedArrayMethod)("some",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},function(e,t,n){"use strict";var r=n(10),i=n(119),o=n(5),a=n(17),s=n(241),u=n(22),c=n(306),l=n(307),f=n(98),d=n(242),p=u.aTypedArray,h=u.exportTypedArrayMethod,v=r.Uint16Array,g=v&&i(v.prototype.sort),m=!(!g||o((function(){g(new v(2),null)}))&&o((function(){g(new v(2),{})}))),y=!!g&&!o((function(){if(f)return f<74;if(c)return c<67;if(l)return!0;if(d)return d<602;var e,t,n=new v(516),r=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(g(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==r[e])return!0}));h("sort",(function(e){return void 0!==e&&a(e),y?g(this,e):s(p(this),function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!=n?-1:t!=t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}}(e))}),!y||m)},function(e,t,n){"use strict";var r=n(22),i=n(77),o=n(92),a=n(164),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("subarray",(function(e,t){var n=s(this),r=n.length,u=o(e,r);return new(a(n))(n.buffer,n.byteOffset+u*n.BYTES_PER_ELEMENT,i((void 0===t?r:o(t,r))-u))}))},function(e,t,n){"use strict";var r=n(10),i=n(66),o=n(22),a=n(5),s=n(79),u=r.Int8Array,c=o.aTypedArray,l=o.exportTypedArrayMethod,f=[].toLocaleString,d=!!u&&a((function(){f.call(new u(1))}));l("toLocaleString",(function(){return i(f,d?s(c(this)):c(this),s(arguments))}),a((function(){return[1,2].toLocaleString()!==new u([1,2]).toLocaleString()}))||!a((function(){u.prototype.toLocaleString.call([1,2])})))},function(e,t,n){"use strict";var r=n(22).exportTypedArrayMethod,i=n(5),o=n(10),a=n(4),s=o.Uint8Array,u=s&&s.prototype||{},c=[].toString,l=a([].join);i((function(){c.call({})}))&&(c=function(){return l(this)});var f=u.toString!==c;r("toString",c,f)},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(18),a=String.fromCharCode,s=i("".charAt),u=i(/./.exec),c=i("".slice),l=/^[\da-f]{2}$/i,f=/^[\da-f]{4}$/i;r({global:!0},{unescape:function(e){for(var t,n,r=o(e),i="",d=r.length,p=0;p<d;){if("%"===(t=s(r,p++)))if("u"===s(r,p)){if(n=c(r,p+1,p+5),u(f,n)){i+=a(parseInt(n,16)),p+=5;continue}}else if(n=c(r,p,p+2),u(l,n)){i+=a(parseInt(n,16)),p+=2;continue}i+=t}return i}})},function(e,t,n){"use strict";var r,i=n(111),o=n(10),a=n(4),s=n(88),u=n(125),c=n(193),l=n(382),f=n(15),d=n(27).enforce,p=n(5),h=n(281),v=Object,g=Array.isArray,m=v.isExtensible,y=v.isFrozen,b=v.isSealed,x=v.freeze,w=v.seal,_=!o.ActiveXObject&&"ActiveXObject"in o,S=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},O=c("WeakMap",S,l),k=O.prototype,E=a(k.set);if(h)if(_){r=l.getConstructor(S,"WeakMap",!0),u.enable();var j=a(k.delete),T=a(k.has),C=a(k.get);s(k,{delete:function(e){if(f(e)&&!m(e)){var t=d(this);return t.frozen||(t.frozen=new r),j(this,e)||t.frozen.delete(e)}return j(this,e)},has:function(e){if(f(e)&&!m(e)){var t=d(this);return t.frozen||(t.frozen=new r),T(this,e)||t.frozen.has(e)}return T(this,e)},get:function(e){if(f(e)&&!m(e)){var t=d(this);return t.frozen||(t.frozen=new r),T(this,e)?C(this,e):t.frozen.get(e)}return C(this,e)},set:function(e,t){if(f(e)&&!m(e)){var n=d(this);n.frozen||(n.frozen=new r),T(this,e)?E(this,e,t):n.frozen.set(e,t)}else E(this,e,t);return this}})}else i&&p((function(){var e=x([]);return E(new O,e,1),!y(e)}))&&s(k,{set:function(e,t){var n;return g(e)&&(y(e)?n=x:b(e)&&(n=w)),E(this,e,t),n&&n(e),this}})},function(e,t,n){"use strict";n(705)},function(e,t,n){"use strict";n(193)("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(382))},function(e,t,n){"use strict";n(297)},function(e,t,n){"use strict";var r=n(2),i=n(10),o=n(61),a=n(51),s=n(85),u=n(135),c=n(45),l=n(50),f=n(76),d=n(233),p=n(137),h=n(13),v=n(5),g=n(23),m=i.SuppressedError,y=h("toStringTag"),b=Error,x=!!m&&3!==m.length,w=!!m&&v((function(){return 4===new m(1,2,3,{cause:4}).cause})),_=x||w,S=function(e,t,n){var r,i=o(O,this);return s?r=!_||i&&a(this)!==O?s(new b,i?a(this):O):new m:(r=i?this:c(O),l(r,y,"Error")),void 0!==n&&l(r,"message",p(n)),d(r,S,r.stack,1),l(r,"error",e),l(r,"suppressed",t),r};s?s(S,b):u(S,b,{name:!0});var O=S.prototype=_?m.prototype:c(b.prototype,{constructor:f(1,S),message:f(1,""),name:f(1,"SuppressedError")});_&&!g&&(O.constructor=S),r({global:!0,constructor:!0,arity:3,forced:_},{SuppressedError:S})},function(e,t,n){"use strict";var r=n(2),i=n(383),o=n(5),a=Array.fromAsync;r({target:"Array",stat:!0,forced:!a||o((function(){var e=0;return a.call((function(){return e++,[]}),{length:0}),1!==e}))},{fromAsync:i})},function(e,t,n){"use strict";var r=n(9),i=n(204),o=n(8),a=n(121),s=n(38),u=n(44),c=n(13)("asyncIterator");e.exports=function(e,t){var n=arguments.length<2?u(e,c):t;return n?o(r(n,e)):new i(s(a(e)))}},function(e,t,n){"use strict";n(298)},function(e,t,n){"use strict";var r=n(2),i=n(46).filterReject,o=n(43);r({target:"Array",proto:!0,forced:!0},{filterOut:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("filterOut")},function(e,t,n){"use strict";var r=n(2),i=n(46).filterReject,o=n(43);r({target:"Array",proto:!0,forced:!0},{filterReject:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),o("filterReject")},function(e,t,n){"use strict";n(300)},function(e,t,n){"use strict";n(301)},function(e,t,n){"use strict";var r=n(2),i=n(265),o=n(43);r({target:"Array",proto:!0},{group:function(e){var t=arguments.length>1?arguments[1]:void 0;return i(this,e,t)}}),o("group")},function(e,t,n){"use strict";var r=n(2),i=n(265),o=n(87),a=n(43);r({target:"Array",proto:!0,forced:!o("groupBy")},{groupBy:function(e){var t=arguments.length>1?arguments[1]:void 0;return i(this,e,t)}}),a("groupBy")},function(e,t,n){"use strict";var r=n(2),i=n(87),o=n(43),a=n(384);r({target:"Array",proto:!0,name:"groupToMap",forced:n(23)||!i("groupByToMap")},{groupByToMap:a}),o("groupByToMap")},function(e,t,n){"use strict";var r=n(2),i=n(43),o=n(384);r({target:"Array",proto:!0,forced:n(23)},{groupToMap:o}),i("groupToMap")},function(e,t,n){"use strict";var r=n(2),i=n(93),o=Object.isFrozen,a=function(e,t){if(!o||!i(e)||!o(e))return!1;for(var n,r=0,a=e.length;r<a;)if(!("string"==typeof(n=e[r++])||t&&void 0===n))return!1;return 0!==a};r({target:"Array",stat:!0,sham:!0,forced:!0},{isTemplateObject:function(e){if(!a(e,!0))return!1;var t=e.raw;return t.length===e.length&&a(t,!1)}})},function(e,t,n){"use strict";var r=n(12),i=n(43),o=n(24),a=n(25),s=n(37);r&&(s(Array.prototype,"lastIndex",{configurable:!0,get:function(){var e=o(this),t=a(e);return 0===t?0:t-1}}),i("lastIndex"))},function(e,t,n){"use strict";var r=n(12),i=n(43),o=n(24),a=n(25),s=n(37);r&&(s(Array.prototype,"lastItem",{configurable:!0,get:function(){var e=o(this),t=a(e);return 0===t?void 0:e[t-1]},set:function(e){var t=o(this),n=a(t);return t[0===n?0:n-1]=e}}),i("lastItem"))},function(e,t,n){"use strict";n(308)},function(e,t,n){"use strict";n(310)},function(e,t,n){"use strict";n(312)},function(e,t,n){"use strict";var r=n(2),i=n(43);r({target:"Array",proto:!0,forced:!0},{uniqueBy:n(266)}),i("uniqueBy")},function(e,t,n){"use strict";n(313)},function(e,t,n){"use strict";n(316)},function(e,t,n){"use strict";n(319)},function(e,t,n){"use strict";n(324)},function(e,t,n){"use strict";var r=n(2),i=n(12),o=n(16),a=n(17),s=n(67),u=n(28),c=n(88),l=n(37),f=n(13),d=n(27),p=n(385),h=o("Promise"),v=o("SuppressedError"),g=ReferenceError,m=f("asyncDispose"),y=f("toStringTag"),b=d.set,x=d.getterFor("AsyncDisposableStack"),w="async-dispose",_=function(e){var t=x(e);if("disposed"===t.state)throw new g("AsyncDisposableStack already disposed");return t},S=function(){b(s(this,O),{type:"AsyncDisposableStack",state:"pending",stack:[]}),i||(this.disposed=!1)},O=S.prototype;c(O,{disposeAsync:function(){var e=this;return new h((function(t,n){var r=x(e);if("disposed"===r.state)return t(void 0);r.state="disposed",i||(e.disposed=!0);var o,a=r.stack,s=a.length,u=!1,c=function(e){u?o=new v(e,o):(u=!0,o=e),l()},l=function(){if(s){var e=a[--s];a[s]=void 0;try{h.resolve(e()).then(l,c)}catch(e){c(e)}}else r.stack=void 0,u?n(o):t(void 0)};l()}))},use:function(e){return p(_(this),e,w),e},adopt:function(e,t){var n=_(this);return a(t),p(n,void 0,w,(function(){return t(e)})),e},defer:function(e){var t=_(this);a(e),p(t,void 0,w,e)},move:function(){var e=_(this),t=new S;return x(t).stack=e.stack,e.stack=[],e.state="disposed",i||(this.disposed=!0),t}}),i&&l(O,"disposed",{configurable:!0,get:function(){return"disposed"===x(this).state}}),u(O,m,O.disposeAsync,{name:"disposeAsync"}),u(O,y,"AsyncDisposableStack",{nonWritable:!0}),r({global:!0,constructor:!0},{AsyncDisposableStack:S})},function(e,t,n){"use strict";var r=n(2),i=n(67),o=n(51),a=n(50),s=n(21),u=n(13),c=n(165),l=n(23),f=u("toStringTag"),d=TypeError,p=function(){if(i(this,c),o(this)===c)throw new d("Abstract class AsyncIterator not directly constructable")};p.prototype=c,s(c,f)||a(c,f,"AsyncIterator"),!l&&s(c,"constructor")&&c.constructor!==Object||a(c,"constructor",p),r({global:!0,constructor:!0,forced:l},{AsyncIterator:p})},function(e,t,n){"use strict";n(2)({target:"AsyncIterator",name:"indexed",proto:!0,real:!0,forced:!0},{asIndexedPairs:n(386)})},function(e,t,n){"use strict";var r=n(9),i=n(28),o=n(16),a=n(44),s=n(21),u=n(13),c=n(165),l=u("asyncDispose"),f=o("Promise");s(c,l)||i(c,l,(function(){var e=this;return new f((function(t,n){var i=a(e,"return");i?f.resolve(r(i,e)).then((function(){t(void 0)}),n):t(void 0)}))}))},function(e,t,n){"use strict";var r=n(2),i=n(9),o=n(8),a=n(38),s=n(205),u=n(163),c=n(146),l=n(57),f=n(23),d=c((function(e){var t=this;return new e((function(n,r){var a=function(e){t.done=!0,r(e)},s=function(){try{e.resolve(o(i(t.next,t.iterator))).then((function(e){try{o(e).done?(t.done=!0,n(l(void 0,!0))):t.remaining?(t.remaining--,s()):n(l(e.value,!1))}catch(e){a(e)}}),a)}catch(e){a(e)}};s()}))}));r({target:"AsyncIterator",proto:!0,real:!0,forced:f},{drop:function(e){o(this);var t=u(s(+e));return new d(a(this),{remaining:t})}})},function(e,t,n){"use strict";var r=n(2),i=n(145).every;r({target:"AsyncIterator",proto:!0,real:!0},{every:function(e){return i(this,e)}})},function(e,t,n){"use strict";var r=n(2),i=n(9),o=n(17),a=n(8),s=n(15),u=n(38),c=n(146),l=n(57),f=n(166),d=n(23),p=c((function(e){var t=this,n=t.iterator,r=t.predicate;return new e((function(o,u){var c=function(e){t.done=!0,u(e)},d=function(e){f(n,c,e,c)},p=function(){try{e.resolve(a(i(t.next,n))).then((function(n){try{if(a(n).done)t.done=!0,o(l(void 0,!0));else{var i=n.value;try{var u=r(i,t.counter++),f=function(e){e?o(l(i,!1)):p()};s(u)?e.resolve(u).then(f,d):f(u)}catch(e){d(e)}}}catch(e){c(e)}}),c)}catch(e){c(e)}};p()}))}));r({target:"AsyncIterator",proto:!0,real:!0,forced:d},{filter:function(e){return a(this),o(e),new p(u(this),{predicate:e})}})},function(e,t,n){"use strict";var r=n(2),i=n(145).find;r({target:"AsyncIterator",proto:!0,real:!0},{find:function(e){return i(this,e)}})},function(e,t,n){"use strict";var r=n(2),i=n(9),o=n(17),a=n(8),s=n(15),u=n(38),c=n(146),l=n(57),f=n(388),d=n(166),p=n(23),h=c((function(e){var t=this,n=t.iterator,r=t.mapper;return new e((function(o,u){var c=function(e){t.done=!0,u(e)},p=function(e){d(n,c,e,c)},h=function(){try{e.resolve(a(i(t.next,n))).then((function(n){try{if(a(n).done)t.done=!0,o(l(void 0,!0));else{var i=n.value;try{var u=r(i,t.counter++),d=function(e){try{t.inner=f(e),v()}catch(e){p(e)}};s(u)?e.resolve(u).then(d,p):d(u)}catch(e){p(e)}}}catch(e){c(e)}}),c)}catch(e){c(e)}},v=function(){var n=t.inner;if(n)try{e.resolve(a(i(n.next,n.iterator))).then((function(e){try{a(e).done?(t.inner=null,h()):o(l(e.value,!1))}catch(e){p(e)}}),p)}catch(e){p(e)}else h()};v()}))}));r({target:"AsyncIterator",proto:!0,real:!0,forced:p},{flatMap:function(e){return a(this),o(e),new h(u(this),{mapper:e,inner:null})}})},function(e,t,n){"use strict";var r=n(2),i=n(145).forEach;r({target:"AsyncIterator",proto:!0,real:!0},{forEach:function(e){return i(this,e)}})},function(e,t,n){"use strict";var r=n(2),i=n(24),o=n(61),a=n(388),s=n(165),u=n(389);r({target:"AsyncIterator",stat:!0,forced:n(23)},{from:function(e){var t=a("string"==typeof e?i(e):e);return o(s,t.iterator)?t.iterator:new u(t)}})},function(e,t,n){"use strict";n(2)({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{indexed:n(386)})},function(e,t,n){"use strict";var r=n(2),i=n(387);r({target:"AsyncIterator",proto:!0,real:!0,forced:n(23)},{map:i})},function(e,t,n){"use strict";var r=n(2),i=n(9),o=n(17),a=n(8),s=n(15),u=n(16),c=n(38),l=n(166),f=u("Promise"),d=TypeError;r({target:"AsyncIterator",proto:!0,real:!0},{reduce:function(e){a(this),o(e);var t=c(this),n=t.iterator,r=t.next,u=arguments.length<2,p=u?void 0:arguments[1],h=0;return new f((function(t,o){var c=function(e){l(n,o,e,o)},v=function(){try{f.resolve(a(i(r,n))).then((function(n){try{if(a(n).done)u?o(new d("Reduce of empty iterator with no initial value")):t(p);else{var r=n.value;if(u)u=!1,p=r,v();else try{var i=e(p,r,h),l=function(e){p=e,v()};s(i)?f.resolve(i).then(l,c):l(i)}catch(e){c(e)}}h++}catch(e){o(e)}}),o)}catch(e){o(e)}};v()}))}})},function(e,t,n){"use strict";var r=n(2),i=n(145).some;r({target:"AsyncIterator",proto:!0,real:!0},{some:function(e){return i(this,e)}})},function(e,t,n){"use strict";var r=n(2),i=n(9),o=n(8),a=n(38),s=n(205),u=n(163),c=n(146),l=n(57),f=n(23),d=c((function(e){var t,n=this,r=n.iterator;if(!n.remaining--){var a=l(void 0,!0);return n.done=!0,void 0!==(t=r.return)?e.resolve(i(t,r,void 0)).then((function(){return a})):a}return e.resolve(i(n.next,r)).then((function(e){return o(e).done?(n.done=!0,l(void 0,!0)):l(e.value,!1)})).then(null,(function(e){throw n.done=!0,e}))}));r({target:"AsyncIterator",proto:!0,real:!0,forced:f},{take:function(e){o(this);var t=u(s(+e));return new d(a(this),{remaining:t})}})},function(e,t,n){"use strict";var r=n(2),i=n(145).toArray;r({target:"AsyncIterator",proto:!0,real:!0},{toArray:function(){return i(this,void 0,[])}})},function(e,t,n){"use strict";var r=n(2),i=n(267);"function"==typeof BigInt&&r({target:"BigInt",stat:!0,forced:!0},{range:function(e,t,n){return new i(e,t,n,"bigint",BigInt(0),BigInt(1))}})},function(e,t,n){"use strict";var r=n(2),i=n(66),o=n(390),a=n(16),s=n(45),u=Object,c=function(){var e=a("Object","freeze");return e?e(s(null)):s(null)};r({global:!0,forced:!0},{compositeKey:function(){return i(o,u,arguments).get("object",c)}})},function(e,t,n){"use strict";var r=n(2),i=n(390),o=n(16),a=n(66);r({global:!0,forced:!0},{compositeSymbol:function(){return 1===arguments.length&&"string"==typeof arguments[0]?o("Symbol").for(arguments[0]):a(i,null,arguments).get("symbol",o("Symbol"))}})},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(246).unpack,a=i(DataView.prototype.getUint16);r({target:"DataView",proto:!0},{getFloat16:function(e){var t=a(this,e,arguments.length>1&&arguments[1]);return o([255&t,t>>8&255],10)}})},function(e,t,n){"use strict";var r=n(2),i=n(4)(DataView.prototype.getUint8);r({target:"DataView",proto:!0,forced:!0},{getUint8Clamped:function(e){return i(this,e)}})},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(391),a=n(158),s=n(246).pack,u=n(392),c=i(DataView.prototype.setUint16);r({target:"DataView",proto:!0},{setFloat16:function(e,t){o(this);var n=a(e),r=s(u(t),10,2);return c(this,n,r[1]<<8|r[0],arguments.length>2&&arguments[2])}})},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(391),a=n(158),s=n(374),u=i(DataView.prototype.setUint8);r({target:"DataView",proto:!0,forced:!0},{setUint8Clamped:function(e,t){o(this);var n=a(e);return u(this,n,s(t))}})},function(e,t,n){"use strict";var r=n(2),i=n(12),o=n(16),a=n(17),s=n(67),u=n(28),c=n(88),l=n(37),f=n(13),d=n(27),p=n(385),h=o("SuppressedError"),v=ReferenceError,g=f("dispose"),m=f("toStringTag"),y=d.set,b=d.getterFor("DisposableStack"),x="sync-dispose",w=function(e){var t=b(e);if("disposed"===t.state)throw new v("DisposableStack already disposed");return t},_=function(){y(s(this,S),{type:"DisposableStack",state:"pending",stack:[]}),i||(this.disposed=!1)},S=_.prototype;c(S,{dispose:function(){var e=b(this);if("disposed"!==e.state){e.state="disposed",i||(this.disposed=!0);for(var t,n=e.stack,r=n.length,o=!1;r;){var a=n[--r];n[r]=void 0;try{a()}catch(e){o?t=new h(e,t):(o=!0,t=e)}}if(e.stack=void 0,o)throw t}},use:function(e){return p(w(this),e,x),e},adopt:function(e,t){var n=w(this);return a(t),p(n,void 0,x,(function(){t(e)})),e},defer:function(e){var t=w(this);a(e),p(t,void 0,x,e)},move:function(){var e=w(this),t=new _;return b(t).stack=e.stack,e.stack=[],e.state="disposed",i||(this.disposed=!0),t}}),i&&l(S,"disposed",{configurable:!0,get:function(){return"disposed"===b(this).state}}),u(S,g,S.dispose,{name:"dispose"}),u(S,m,"DisposableStack",{nonWritable:!0}),r({global:!0,constructor:!0},{DisposableStack:_})},function(e,t,n){"use strict";n(2)({target:"Function",proto:!0,forced:!0},{demethodize:n(393)})},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(19),a=n(180),s=n(21),u=n(12),c=Object.getOwnPropertyDescriptor,l=/^\s*class\b/,f=i(l.exec);r({target:"Function",stat:!0,sham:!0,forced:!0},{isCallable:function(e){return o(e)&&!function(e){try{if(!u||!f(l,a(e)))return!1}catch(e){}var t=c(e,"prototype");return!!t&&s(t,"writable")&&!t.writable}(e)}})},function(e,t,n){"use strict";n(2)({target:"Function",stat:!0,forced:!0},{isConstructor:n(94)})},function(e,t,n){"use strict";var r=n(13),i=n(33).f,o=r("metadata"),a=Function.prototype;void 0===a[o]&&i(a,o,{value:null})},function(e,t,n){"use strict";n(2)({target:"Function",proto:!0,forced:!0,name:"demethodize"},{unThis:n(393)})},function(e,t,n){"use strict";n(326)},function(e,t,n){"use strict";var r=n(2),i=n(10),o=n(67),a=n(8),s=n(19),u=n(51),c=n(37),l=n(86),f=n(5),d=n(21),p=n(13),h=n(139).IteratorPrototype,v=n(12),g=n(23),m=p("toStringTag"),y=TypeError,b=i.Iterator,x=g||!s(b)||b.prototype!==h||!f((function(){b({})})),w=function(){if(o(this,h),u(this)===h)throw new y("Abstract class Iterator not directly constructable")},_=function(e,t){v?c(h,e,{configurable:!0,get:function(){return t},set:function(t){if(a(this),this===h)throw new y("You can't redefine this property");d(this,e)?this[e]=t:l(this,e,t)}}):h[e]=t};d(h,m)||_(m,"Iterator"),!x&&d(h,"constructor")&&h.constructor!==Object||_("constructor",w),w.prototype=h,r({global:!0,constructor:!0,forced:x},{Iterator:w})},function(e,t,n){"use strict";n(2)({target:"Iterator",name:"indexed",proto:!0,real:!0,forced:!0},{asIndexedPairs:n(394)})},function(e,t,n){"use strict";var r=n(9),i=n(28),o=n(44),a=n(21),s=n(13),u=n(139).IteratorPrototype,c=s("dispose");a(u,c)||i(u,c,(function(){var e=o(this,"return");e&&r(e,this)}))},function(e,t,n){"use strict";var r=n(2),i=n(9),o=n(8),a=n(38),s=n(205),u=n(163),c=n(147),l=n(23),f=c((function(){for(var e,t=this.iterator,n=this.next;this.remaining;)if(this.remaining--,e=o(i(n,t)),this.done=!!e.done)return;if(e=o(i(n,t)),!(this.done=!!e.done))return e.value}));r({target:"Iterator",proto:!0,real:!0,forced:l},{drop:function(e){o(this);var t=u(s(+e));return new f(a(this),{remaining:t})}})},function(e,t,n){"use strict";var r=n(2),i=n(42),o=n(17),a=n(8),s=n(38);r({target:"Iterator",proto:!0,real:!0},{every:function(e){a(this),o(e);var t=s(this),n=0;return!i(t,(function(t,r){if(!e(t,n++))return r()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},function(e,t,n){"use strict";var r=n(2),i=n(9),o=n(17),a=n(8),s=n(38),u=n(147),c=n(238),l=n(23),f=u((function(){for(var e,t,n=this.iterator,r=this.predicate,o=this.next;;){if(e=a(i(o,n)),this.done=!!e.done)return;if(t=e.value,c(n,r,[t,this.counter++],!0))return t}}));r({target:"Iterator",proto:!0,real:!0,forced:l},{filter:function(e){return a(this),o(e),new f(s(this),{predicate:e})}})},function(e,t,n){"use strict";var r=n(2),i=n(42),o=n(17),a=n(8),s=n(38);r({target:"Iterator",proto:!0,real:!0},{find:function(e){a(this),o(e);var t=s(this),n=0;return i(t,(function(t,r){if(e(t,n++))return r(t)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}})},function(e,t,n){"use strict";var r=n(2),i=n(9),o=n(17),a=n(8),s=n(38),u=n(396),c=n(147),l=n(108),f=n(23),d=c((function(){for(var e,t,n=this.iterator,r=this.mapper;;){if(t=this.inner)try{if(!(e=a(i(t.next,t.iterator))).done)return e.value;this.inner=null}catch(e){l(n,"throw",e)}if(e=a(i(this.next,n)),this.done=!!e.done)return;try{this.inner=u(r(e.value,this.counter++),!1)}catch(e){l(n,"throw",e)}}}));r({target:"Iterator",proto:!0,real:!0,forced:f},{flatMap:function(e){return a(this),o(e),new d(s(this),{mapper:e,inner:null})}})},function(e,t,n){"use strict";var r=n(2),i=n(42),o=n(17),a=n(8),s=n(38);r({target:"Iterator",proto:!0,real:!0},{forEach:function(e){a(this),o(e);var t=s(this),n=0;i(t,(function(t){e(t,n++)}),{IS_RECORD:!0})}})},function(e,t,n){"use strict";var r=n(2),i=n(9),o=n(24),a=n(61),s=n(139).IteratorPrototype,u=n(147),c=n(396),l=n(23),f=u((function(){return i(this.next,this.iterator)}),!0);r({target:"Iterator",stat:!0,forced:l},{from:function(e){var t=c("string"==typeof e?o(e):e,!0);return a(s,t.iterator)?t.iterator:new f(t)}})},function(e,t,n){"use strict";n(2)({target:"Iterator",proto:!0,real:!0,forced:!0},{indexed:n(394)})},function(e,t,n){"use strict";var r=n(2),i=n(395);r({target:"Iterator",proto:!0,real:!0,forced:n(23)},{map:i})},function(e,t,n){"use strict";var r=n(2),i=n(267),o=TypeError;r({target:"Iterator",stat:!0,forced:!0},{range:function(e,t,n){if("number"==typeof e)return new i(e,t,n,"number",0,1);if("bigint"==typeof e)return new i(e,t,n,"bigint",BigInt(0),BigInt(1));throw new o("Incorrect Iterator.range arguments")}})},function(e,t,n){"use strict";var r=n(2),i=n(42),o=n(17),a=n(8),s=n(38),u=TypeError;r({target:"Iterator",proto:!0,real:!0},{reduce:function(e){a(this),o(e);var t=s(this),n=arguments.length<2,r=n?void 0:arguments[1],c=0;if(i(t,(function(t){n?(n=!1,r=t):r=e(r,t,c),c++}),{IS_RECORD:!0}),n)throw new u("Reduce of empty iterator with no initial value");return r}})},function(e,t,n){"use strict";var r=n(2),i=n(42),o=n(17),a=n(8),s=n(38);r({target:"Iterator",proto:!0,real:!0},{some:function(e){a(this),o(e);var t=s(this),n=0;return i(t,(function(t,r){if(e(t,n++))return r()}),{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},function(e,t,n){"use strict";var r=n(2),i=n(9),o=n(8),a=n(38),s=n(205),u=n(163),c=n(147),l=n(108),f=n(23),d=c((function(){var e=this.iterator;if(!this.remaining--)return this.done=!0,l(e,"normal",void 0);var t=o(i(this.next,e));return(this.done=!!t.done)?void 0:t.value}));r({target:"Iterator",proto:!0,real:!0,forced:f},{take:function(e){o(this);var t=u(s(+e));return new d(a(this),{remaining:t})}})},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(42),a=n(38),s=[].push;r({target:"Iterator",proto:!0,real:!0},{toArray:function(){var e=[];return o(a(i(this)),s,{that:e,IS_RECORD:!0}),e}})},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(204),a=n(389),s=n(38);r({target:"Iterator",proto:!0,real:!0,forced:n(23)},{toAsync:function(){return new a(s(new o(s(i(this)))))}})},function(e,t,n){"use strict";n(2)({target:"JSON",stat:!0,forced:!n(397)},{isRawJSON:n(398)})},function(e,t,n){"use strict";var r=n(2),i=n(12),o=n(10),a=n(16),s=n(4),u=n(9),c=n(19),l=n(15),f=n(93),d=n(21),p=n(18),h=n(25),v=n(86),g=n(5),m=n(399),y=n(115),b=o.JSON,x=o.Number,w=o.SyntaxError,_=b&&b.parse,S=a("Object","keys"),O=Object.getOwnPropertyDescriptor,k=s("".charAt),E=s("".slice),j=s(/./.exec),T=s([].push),C=/^\d$/,A=/^[1-9]$/,P=/^(?:-|\d)$/,M=/^[\t\n\r ]$/,I=function(e,t,n,r){var i,o,a,s,c,p=e[t],v=r&&p===r.value,g=v&&"string"==typeof r.source?{source:r.source}:{};if(l(p)){var m=f(p),y=v?r.nodes:m?[]:{};if(m)for(i=y.length,a=h(p),s=0;s<a;s++)R(p,s,I(p,""+s,n,s<i?y[s]:void 0));else for(o=S(p),a=h(o),s=0;s<a;s++)c=o[s],R(p,c,I(p,c,n,d(y,c)?y[c]:void 0))}return u(n,e,t,p,g)},R=function(e,t,n){if(i){var r=O(e,t);if(r&&!r.configurable)return}void 0===n?delete e[t]:v(e,t,n)},D=function(e,t,n,r){this.value=e,this.end=t,this.source=n,this.nodes=r},L=function(e,t){this.source=e,this.index=t};L.prototype={fork:function(e){return new L(this.source,e)},parse:function(){var e=this.source,t=this.skip(M,this.index),n=this.fork(t),r=k(e,t);if(j(P,r))return n.number();switch(r){case"{":return n.object();case"[":return n.array();case'"':return n.string();case"t":return n.keyword(!0);case"f":return n.keyword(!1);case"n":return n.keyword(null)}throw new w('Unexpected character: "'+r+'" at: '+t)},node:function(e,t,n,r,i){return new D(t,r,e?null:E(this.source,n,r),i)},object:function(){for(var e=this.source,t=this.index+1,n=!1,r={},i={};t<e.length;){if(t=this.until(['"',"}"],t),"}"===k(e,t)&&!n){t++;break}var o=this.fork(t).string(),a=o.value;t=o.end,t=this.until([":"],t)+1,t=this.skip(M,t),o=this.fork(t).parse(),v(i,a,o),v(r,a,o.value),t=this.until([",","}"],o.end);var s=k(e,t);if(","===s)n=!0,t++;else if("}"===s){t++;break}}return this.node(1,r,this.index,t,i)},array:function(){for(var e=this.source,t=this.index+1,n=!1,r=[],i=[];t<e.length;){if(t=this.skip(M,t),"]"===k(e,t)&&!n){t++;break}var o=this.fork(t).parse();if(T(i,o),T(r,o.value),t=this.until([",","]"],o.end),","===k(e,t))n=!0,t++;else if("]"===k(e,t)){t++;break}}return this.node(1,r,this.index,t,i)},string:function(){var e=this.index,t=m(this.source,this.index+1);return this.node(0,t.value,e,t.end)},number:function(){var e=this.source,t=this.index,n=t;if("-"===k(e,n)&&n++,"0"===k(e,n))n++;else{if(!j(A,k(e,n)))throw new w("Failed to parse number at: "+n);n=this.skip(C,++n)}if("."===k(e,n)&&(n=this.skip(C,++n)),("e"===k(e,n)||"E"===k(e,n))&&(n++,"+"!==k(e,n)&&"-"!==k(e,n)||n++,n===(n=this.skip(C,n))))throw new w("Failed to parse number's exponent value at: "+n);return this.node(0,x(E(e,t,n)),t,n)},keyword:function(e){var t=""+e,n=this.index,r=n+t.length;if(E(this.source,n,r)!==t)throw new w("Failed to parse value at: "+n);return this.node(0,e,n,r)},skip:function(e,t){for(var n=this.source;t<n.length&&j(e,k(n,t));t++);return t},until:function(e,t){t=this.skip(M,t);for(var n=k(this.source,t),r=0;r<e.length;r++)if(e[r]===n)return t;throw new w('Unexpected character: "'+n+'" at: '+t)}};var N=g((function(){var e;return _("9007199254740993",(function(t,n,r){e=r.source})),"9007199254740993"!==e})),F=y&&!g((function(){return 1/_("-0 \t")!=-1/0}));r({target:"JSON",stat:!0,forced:N},{parse:function(e,t){return F&&!c(t)?_(e):function(e,t){e=p(e);var n=new L(e,0,""),r=n.parse(),i=r.value,o=n.skip(M,r.end);if(o<e.length)throw new w('Unexpected extra character: "'+k(e,o)+'" after the parsed data at: '+o);return c(t)?I({"":i},"",t,r):i}(e,t)}})},function(e,t,n){"use strict";var r=n(2),i=n(111),o=n(397),a=n(16),s=n(9),u=n(4),c=n(19),l=n(398),f=n(18),d=n(86),p=n(399),h=n(289),v=n(117),g=n(27).set,m=String,y=SyntaxError,b=a("JSON","parse"),x=a("JSON","stringify"),w=a("Object","create"),_=a("Object","freeze"),S=u("".charAt),O=u("".slice),k=u(/./.exec),E=u([].push),j=v(),T=j.length,C=/^[\t\n\r ]$/;r({target:"JSON",stat:!0,forced:!o},{rawJSON:function(e){var t=f(e);if(""===t||k(C,S(t,0))||k(C,S(t,t.length-1)))throw new y("Unacceptable as raw JSON");var n=b(t);if("object"==I(n)&&null!==n)throw new y("Unacceptable as raw JSON");var r=w(null);return g(r,{type:"RawJSON"}),d(r,"rawJSON",t),i?_(r):r}}),x&&r({target:"JSON",stat:!0,arity:3,forced:!o},{stringify:function(e,t,n){var r=h(t),i=[],o=x(e,(function(e,t){var n=c(r)?s(r,this,m(e),t):t;return l(n)?j+(E(i,n.rawJSON)-1):n}),n);if("string"!=typeof o)return o;for(var a="",u=o.length,f=0;f<u;f++){var d=S(o,f);if('"'===d){var v=p(o,++f).end-1,g=O(o,f,v);a+=O(g,0,T)===j?i[O(g,T)]:'"'+g+'"',f=v}else a+=d}return a}})},function(e,t,n){"use strict";var r=n(2),i=n(73),o=n(62).remove;r({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=i(this),n=!0,r=0,a=arguments.length;r<a;r++)e=o(t,arguments[r]),n=n&&e;return!!n}})},function(e,t,n){"use strict";var r=n(2),i=n(73),o=n(62),a=o.get,s=o.has,u=o.set;r({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var n,r,o=i(this);return s(o,e)?(n=a(o,e),"update"in t&&(n=t.update(n,e,o),u(o,e,n)),n):(r=t.insert(e,o),u(o,e,r),r)}})},function(e,t,n){"use strict";var r=n(2),i=n(30),o=n(73),a=n(89);r({target:"Map",proto:!0,real:!0,forced:!0},{every:function(e){var t=o(this),n=i(e,arguments.length>1?arguments[1]:void 0);return!1!==a(t,(function(e,r){if(!n(e,r,t))return!1}),!0)}})},function(e,t,n){"use strict";var r=n(2),i=n(30),o=n(73),a=n(62),s=n(89),u=a.Map,c=a.set;r({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(e){var t=o(this),n=i(e,arguments.length>1?arguments[1]:void 0),r=new u;return s(t,(function(e,i){n(e,i,t)&&c(r,i,e)})),r}})},function(e,t,n){"use strict";var r=n(2),i=n(30),o=n(73),a=n(89);r({target:"Map",proto:!0,real:!0,forced:!0},{find:function(e){var t=o(this),n=i(e,arguments.length>1?arguments[1]:void 0),r=a(t,(function(e,r){if(n(e,r,t))return{value:e}}),!0);return r&&r.value}})},function(e,t,n){"use strict";var r=n(2),i=n(30),o=n(73),a=n(89);r({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(e){var t=o(this),n=i(e,arguments.length>1?arguments[1]:void 0),r=a(t,(function(e,r){if(n(e,r,t))return{key:r}}),!0);return r&&r.key}})},function(e,t,n){"use strict";var r=n(2),i=n(62);r({target:"Map",stat:!0,forced:!0},{from:n(206)(i.Map,i.set,!0)})},function(e,t,n){"use strict";n(328)},function(e,t,n){"use strict";var r=n(2),i=n(791),o=n(73),a=n(89);r({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(e){return!0===a(o(this),(function(t){if(i(t,e))return!0}),!0)}})},function(e,t,n){"use strict";e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){"use strict";var r=n(2),i=n(9),o=n(42),a=n(19),s=n(17),u=n(62).Map;r({target:"Map",stat:!0,forced:!0},{keyBy:function(e,t){var n=new(a(this)?this:u);s(t);var r=s(n.set);return o(e,(function(e){i(r,n,t(e),e)})),n}})},function(e,t,n){"use strict";var r=n(2),i=n(73),o=n(89);r({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(e){var t=o(i(this),(function(t,n){if(t===e)return{key:n}}),!0);return t&&t.key}})},function(e,t,n){"use strict";var r=n(2),i=n(30),o=n(73),a=n(62),s=n(89),u=a.Map,c=a.set;r({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(e){var t=o(this),n=i(e,arguments.length>1?arguments[1]:void 0),r=new u;return s(t,(function(e,i){c(r,n(e,i,t),e)})),r}})},function(e,t,n){"use strict";var r=n(2),i=n(30),o=n(73),a=n(62),s=n(89),u=a.Map,c=a.set;r({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(e){var t=o(this),n=i(e,arguments.length>1?arguments[1]:void 0),r=new u;return s(t,(function(e,i){c(r,i,n(e,i,t))})),r}})},function(e,t,n){"use strict";var r=n(2),i=n(73),o=n(42),a=n(62).set;r({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(e){for(var t=i(this),n=arguments.length,r=0;r<n;)o(arguments[r++],(function(e,n){a(t,e,n)}),{AS_ENTRIES:!0});return t}})},function(e,t,n){"use strict";var r=n(2),i=n(62);r({target:"Map",stat:!0,forced:!0},{of:n(207)(i.Map,i.set,!0)})},function(e,t,n){"use strict";var r=n(2),i=n(17),o=n(73),a=n(89),s=TypeError;r({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=o(this),n=arguments.length<2,r=n?void 0:arguments[1];if(i(e),a(t,(function(i,o){n?(n=!1,r=i):r=e(r,i,o,t)})),n)throw new s("Reduce of empty map with no initial value");return r}})},function(e,t,n){"use strict";var r=n(2),i=n(30),o=n(73),a=n(89);r({target:"Map",proto:!0,real:!0,forced:!0},{some:function(e){var t=o(this),n=i(e,arguments.length>1?arguments[1]:void 0);return!0===a(t,(function(e,r){if(n(e,r,t))return!0}),!0)}})},function(e,t,n){"use strict";var r=n(2),i=n(17),o=n(73),a=n(62),s=TypeError,u=a.get,c=a.has,l=a.set;r({target:"Map",proto:!0,real:!0,forced:!0},{update:function(e,t){var n=o(this),r=arguments.length;i(t);var a=c(n,e);if(!a&&r<3)throw new s("Updating absent value");var f=a?u(n,e):i(r>2?arguments[2]:void 0)(e,n);return l(n,e,t(f,e,n)),n}})},function(e,t,n){"use strict";n(2)({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:n(268)})},function(e,t,n){"use strict";n(2)({target:"Map",proto:!0,real:!0,forced:!0},{upsert:n(268)})},function(e,t,n){"use strict";var r=n(2),i=Math.min,o=Math.max;r({target:"Math",stat:!0,forced:!0},{clamp:function(e,t,n){return i(n,o(t,e))}})},function(e,t,n){"use strict";n(2)({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{DEG_PER_RAD:Math.PI/180})},function(e,t,n){"use strict";var r=n(2),i=180/Math.PI;r({target:"Math",stat:!0,forced:!0},{degrees:function(e){return e*i}})},function(e,t,n){"use strict";var r=n(2),i=n(400),o=n(244);r({target:"Math",stat:!0,forced:!0},{fscale:function(e,t,n,r,a){return o(i(e,t,n,r,a))}})},function(e,t,n){"use strict";n(2)({target:"Math",stat:!0},{f16round:n(392)})},function(e,t,n){"use strict";n(2)({target:"Math",stat:!0,forced:!0},{iaddh:function(e,t,n,r){var i=e>>>0,o=n>>>0;return(t>>>0)+(r>>>0)+((i&o|(i|o)&~(i+o>>>0))>>>31)|0}})},function(e,t,n){"use strict";n(2)({target:"Math",stat:!0,forced:!0},{imulh:function(e,t){var n=+e,r=+t,i=65535&n,o=65535&r,a=n>>16,s=r>>16,u=(a*o>>>0)+(i*o>>>16);return a*s+(u>>16)+((i*s>>>0)+(65535&u)>>16)}})},function(e,t,n){"use strict";n(2)({target:"Math",stat:!0,forced:!0},{isubh:function(e,t,n,r){var i=e>>>0,o=n>>>0;return(t>>>0)-(r>>>0)-((~i&o|~(i^o)&i-o>>>0)>>>31)|0}})},function(e,t,n){"use strict";n(2)({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{RAD_PER_DEG:180/Math.PI})},function(e,t,n){"use strict";var r=n(2),i=Math.PI/180;r({target:"Math",stat:!0,forced:!0},{radians:function(e){return e*i}})},function(e,t,n){"use strict";n(2)({target:"Math",stat:!0,forced:!0},{scale:n(400)})},function(e,t,n){"use strict";var r=n(2),i=n(8),o=n(331),a=n(123),s=n(57),u=n(27),c=u.set,l=u.getterFor("Seeded Random Generator"),f=TypeError,d=a((function(e){c(this,{type:"Seeded Random Generator",seed:e%2147483647})}),"Seeded Random",(function(){var e=l(this),t=e.seed=(1103515245*e.seed+12345)%2147483647;return s((1073741823&t)/1073741823,!1)}));r({target:"Math",stat:!0,forced:!0},{seededPRNG:function(e){var t=i(e).seed;if(!o(t))throw new f('Math.seededPRNG() argument should have a "seed" field with a finite value.');return new d(t)}})},function(e,t,n){"use strict";n(2)({target:"Math",stat:!0,forced:!0},{signbit:function(e){var t=+e;return t==t&&0===t?1/t==-1/0:t<0}})},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(42),a=RangeError,s=TypeError,u=Math.abs,c=Math.pow,l=i([].push),f=c(2,1023),d=c(2,53)-1,p=Number.MAX_VALUE,h=c(2,971),v={},g={},m={},y={},b={},x=function(e,t){var n=e+t;return{hi:n,lo:t-(n-e)}};r({target:"Math",stat:!0,forced:!0},{sumPrecise:function(e){var t=[],n=0,r=y;switch(o(e,(function(e){if(++n>=d)throw new a("Maximum allowed index exceeded");if("number"!=typeof e)throw new s("Value is not a number");r!==v&&(e!=e?r=v:e===1/0?r=r===g?v:m:e===-1/0?r=r===m?v:g:0===e&&1/e!=1/0||r!==y&&r!==b||(r=b,l(t,e)))})),r){case v:return NaN;case g:return-1/0;case m:return 1/0;case y:return-0}for(var i,c,w,_,S,O,k=[],E=0,j=0;j<t.length;j++){i=t[j];for(var T=0,C=0;C<k.length;C++){if(c=k[C],u(i)<u(c)&&(O=i,i=c,c=O),_=(w=x(i,c)).hi,S=w.lo,u(_)===1/0){var A=_===1/0?1:-1;E+=A,u(i=i-A*f-A*f)<u(c)&&(O=i,i=c,c=O),_=(w=x(i,c)).hi,S=w.lo}0!==S&&(k[T++]=S),i=_}k.length=T,0!==i&&l(k,i)}var P=k.length-1;if(_=0,S=0,0!==E){var M=P>=0?k[P]:0;if(P--,u(E)>1||E>0&&M>0||E<0&&M<0)return E>0?1/0:-1/0;if(_=(w=x(E*f,M/2)).hi,S=w.lo,S*=2,u(2*_)===1/0)return _>0?_===f&&S===-h/2&&P>=0&&k[P]<0?p:1/0:_===-f&&S===h/2&&P>=0&&k[P]>0?-p:-1/0;0!==S&&(k[++P]=S,S=0),_*=2}for(;P>=0&&(_=(w=x(_,k[P--])).hi,0===(S=w.lo)););return P>=0&&(S<0&&k[P]<0||S>0&&k[P]>0)&&(c=2*S)==(i=_+c)-_&&(_=i),_}})},function(e,t,n){"use strict";n(2)({target:"Math",stat:!0,forced:!0},{umulh:function(e,t){var n=+e,r=+t,i=65535&n,o=65535&r,a=n>>>16,s=r>>>16,u=(a*o>>>0)+(i*o>>>16);return a*s+(u>>>16)+((i*s>>>0)+(65535&u)>>>16)}})},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(36),a=RangeError,s=SyntaxError,u=TypeError,c=parseInt,l=Math.pow,f=/^[\d.a-z]+$/,d=i("".charAt),p=i(f.exec),h=i(1..toString),v=i("".slice),g=i("".split);r({target:"Number",stat:!0,forced:!0},{fromString:function(e,t){var n=1;if("string"!=typeof e)throw new u("Invalid number representation");if(!e.length)throw new s("Invalid number representation");if("-"===d(e,0)&&(n=-1,!(e=v(e,1)).length))throw new s("Invalid number representation");var r=void 0===t?10:o(t);if(r<2||r>36)throw new a("Invalid radix");if(!p(f,e))throw new s("Invalid number representation");var i=g(e,"."),m=c(i[0],r);if(i.length>1&&(m+=c(i[1],r)/l(r,i[1].length)),10===r&&h(m,r)!==e)throw new s("Invalid number representation");return n*m}})},function(e,t,n){"use strict";var r=n(2),i=n(267);r({target:"Number",stat:!0,forced:!0},{range:function(e,t,n){return new i(e,t,n,"number",0,1)}})},function(e,t,n){"use strict";n(337)},function(e,t,n){"use strict";var r=n(2),i=n(269);r({target:"Object",stat:!0,forced:!0},{iterateEntries:function(e){return new i(e,"entries")}})},function(e,t,n){"use strict";var r=n(2),i=n(269);r({target:"Object",stat:!0,forced:!0},{iterateKeys:function(e){return new i(e,"keys")}})},function(e,t,n){"use strict";var r=n(2),i=n(269);r({target:"Object",stat:!0,forced:!0},{iterateValues:function(e){return new i(e,"values")}})},function(e,t,n){"use strict";n(336)},function(e,t,n){"use strict";n(826),n(827),n(828)},function(e,t,n){"use strict";var r=n(2),i=n(9),o=n(12),a=n(124),s=n(17),u=n(8),c=n(67),l=n(19),f=n(49),d=n(15),p=n(44),h=n(28),v=n(88),g=n(37),m=n(343),y=n(13),b=n(27),x=y("observable"),w=b.getterFor,_=b.set,S=w("Observable"),O=w("Subscription"),k=w("SubscriptionObserver"),E=function(e){this.observer=u(e),this.cleanup=void 0,this.subscriptionObserver=void 0};E.prototype={type:"Subscription",clean:function(){var e=this.cleanup;if(e){this.cleanup=void 0;try{e()}catch(e){m(e)}}},close:function(){if(!o){var e=this.facade,t=this.subscriptionObserver;e.closed=!0,t&&(t.closed=!0)}this.observer=void 0},isClosed:function(){return void 0===this.observer}};var j=function(e,t){var n,r=_(this,new E(e));o||(this.closed=!1);try{(n=p(e,"start"))&&i(n,e,this)}catch(e){m(e)}if(!r.isClosed()){var a=r.subscriptionObserver=new T(r);try{var u=t(a),c=u;f(u)||(r.cleanup=l(u.unsubscribe)?function(){c.unsubscribe()}:s(u))}catch(e){return void a.error(e)}r.isClosed()&&r.clean()}};j.prototype=v({},{unsubscribe:function(){var e=O(this);e.isClosed()||(e.close(),e.clean())}}),o&&g(j.prototype,"closed",{configurable:!0,get:function(){return O(this).isClosed()}});var T=function(e){_(this,{type:"SubscriptionObserver",subscriptionState:e}),o||(this.closed=!1)};T.prototype=v({},{next:function(e){var t=k(this).subscriptionState;if(!t.isClosed()){var n=t.observer;try{var r=p(n,"next");r&&i(r,n,e)}catch(e){m(e)}}},error:function(e){var t=k(this).subscriptionState;if(!t.isClosed()){var n=t.observer;t.close();try{var r=p(n,"error");r?i(r,n,e):m(e)}catch(e){m(e)}t.clean()}},complete:function(){var e=k(this).subscriptionState;if(!e.isClosed()){var t=e.observer;e.close();try{var n=p(t,"complete");n&&i(n,t)}catch(e){m(e)}e.clean()}}}),o&&g(T.prototype,"closed",{configurable:!0,get:function(){return k(this).subscriptionState.isClosed()}});var C=function(e){c(this,A),_(this,{type:"Observable",subscriber:s(e)})},A=C.prototype;v(A,{subscribe:function(e){var t=arguments.length;return new j(l(e)?{next:e,error:t>1?arguments[1]:void 0,complete:t>2?arguments[2]:void 0}:d(e)?e:{},S(this).subscriber)}}),h(A,x,(function(){return this})),r({global:!0,constructor:!0,forced:!0},{Observable:C}),a("Observable")},function(e,t,n){"use strict";var r=n(2),i=n(16),o=n(9),a=n(8),s=n(94),u=n(121),c=n(44),l=n(42),f=n(13)("observable");r({target:"Observable",stat:!0,forced:!0},{from:function(e){var t=s(this)?this:i("Observable"),n=c(a(e),f);if(n){var r=a(o(n,e));return r.constructor===t?r:new t((function(e){return r.subscribe(e)}))}var d=u(e);return new t((function(e){l(d,(function(t,n){if(e.next(t),e.closed)return n()}),{IS_ITERATOR:!0,INTERRUPTED:!0}),e.complete()}))}})},function(e,t,n){"use strict";var r=n(2),i=n(16),o=n(94),a=i("Array");r({target:"Observable",stat:!0,forced:!0},{of:function(){for(var e=o(this)?this:i("Observable"),t=arguments.length,n=a(t),r=0;r<t;)n[r]=arguments[r++];return new e((function(e){for(var r=0;r<t;r++)if(e.next(n[r]),e.closed)return;e.complete()}))}})},function(e,t,n){"use strict";n(345)},function(e,t,n){"use strict";n(346)},function(e,t,n){"use strict";var r=n(2),i=n(66),o=n(79),a=n(100),s=n(17),u=n(126);r({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=o(arguments,1),n=a.f(this),r=u((function(){return i(s(e),void 0,t)}));return(r.error?n.reject:n.resolve)(r.value),n.promise}})},function(e,t,n){"use strict";n(347)},function(e,t,n){"use strict";var r=n(2),i=n(102),o=n(8),a=i.toKey,s=i.set;r({target:"Reflect",stat:!0},{defineMetadata:function(e,t,n){var r=arguments.length<4?void 0:a(arguments[3]);s(e,t,o(n),r)}})},function(e,t,n){"use strict";var r=n(2),i=n(102),o=n(8),a=i.toKey,s=i.getMap,u=i.store;r({target:"Reflect",stat:!0},{deleteMetadata:function(e,t){var n=arguments.length<3?void 0:a(arguments[2]),r=s(o(t),n,!1);if(void 0===r||!r.delete(e))return!1;if(r.size)return!0;var i=u.get(t);return i.delete(n),!!i.size||u.delete(t)}})},function(e,t,n){"use strict";var r=n(2),i=n(102),o=n(8),a=n(51),s=i.has,u=i.get,c=i.toKey,l=function(e,t,n){if(s(e,t,n))return u(e,t,n);var r=a(t);return null!==r?l(e,r,n):void 0};r({target:"Reflect",stat:!0},{getMetadata:function(e,t){var n=arguments.length<3?void 0:c(arguments[2]);return l(e,o(t),n)}})},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(102),a=n(8),s=n(51),u=i(n(266)),c=i([].concat),l=o.keys,f=o.toKey,d=function(e,t){var n=l(e,t),r=s(e);if(null===r)return n;var i=d(r,t);return i.length?n.length?u(c(n,i)):i:n};r({target:"Reflect",stat:!0},{getMetadataKeys:function(e){var t=arguments.length<2?void 0:f(arguments[1]);return d(a(e),t)}})},function(e,t,n){"use strict";var r=n(2),i=n(102),o=n(8),a=i.get,s=i.toKey;r({target:"Reflect",stat:!0},{getOwnMetadata:function(e,t){var n=arguments.length<3?void 0:s(arguments[2]);return a(e,o(t),n)}})},function(e,t,n){"use strict";var r=n(2),i=n(102),o=n(8),a=i.keys,s=i.toKey;r({target:"Reflect",stat:!0},{getOwnMetadataKeys:function(e){var t=arguments.length<2?void 0:s(arguments[1]);return a(o(e),t)}})},function(e,t,n){"use strict";var r=n(2),i=n(102),o=n(8),a=n(51),s=i.has,u=i.toKey,c=function(e,t,n){if(s(e,t,n))return!0;var r=a(t);return null!==r&&c(e,r,n)};r({target:"Reflect",stat:!0},{hasMetadata:function(e,t){var n=arguments.length<3?void 0:u(arguments[2]);return c(e,o(t),n)}})},function(e,t,n){"use strict";var r=n(2),i=n(102),o=n(8),a=i.has,s=i.toKey;r({target:"Reflect",stat:!0},{hasOwnMetadata:function(e,t){var n=arguments.length<3?void 0:s(arguments[2]);return a(e,o(t),n)}})},function(e,t,n){"use strict";var r=n(2),i=n(102),o=n(8),a=i.toKey,s=i.set;r({target:"Reflect",stat:!0},{metadata:function(e,t){return function(n,r){s(e,t,o(n),a(r))}}})},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(18),a=n(191).start,s=n(142),u=i("".charCodeAt),c=i("".replace),l=i(1.1.toString),f=RegExp("[!\"#$%&'()*+,\\-./:;<=>?@[\\\\\\]^`{|}~"+s+"]","g");r({target:"RegExp",stat:!0,forced:!0},{escape:function(e){var t=o(e),n=u(t,0);return(n>47&&n<58?"\\x3":"")+c(t,f,(function(e){var t=l(u(e,0),16);return t.length<3?"\\x"+a(t,2,"0"):"\\u"+a(t,4,"0")}))}})},function(e,t,n){"use strict";var r=n(2),i=n(63),o=n(58).add;r({target:"Set",proto:!0,real:!0,forced:!0},{addAll:function(){for(var e=i(this),t=0,n=arguments.length;t<n;t++)o(e,arguments[t]);return e}})},function(e,t,n){"use strict";var r=n(2),i=n(63),o=n(58).remove;r({target:"Set",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=i(this),n=!0,r=0,a=arguments.length;r<a;r++)e=o(t,arguments[r]),n=n&&e;return!!n}})},function(e,t,n){"use strict";n(350)},function(e,t,n){"use strict";var r=n(2),i=n(9),o=n(129),a=n(351);r({target:"Set",proto:!0,real:!0,forced:!0},{difference:function(e){return i(a,this,o(e))}})},function(e,t,n){"use strict";var r=n(78),i=n(21),o=n(49),a=n(13),s=n(138),u=a("iterator"),c=Object;e.exports=function(e){if(o(e))return!1;var t=c(e);return void 0!==t[u]||"@@iterator"in t||i(s,r(t))}},function(e,t,n){"use strict";var r=n(2),i=n(30),o=n(63),a=n(80);r({target:"Set",proto:!0,real:!0,forced:!0},{every:function(e){var t=o(this),n=i(e,arguments.length>1?arguments[1]:void 0);return!1!==a(t,(function(e){if(!n(e,e,t))return!1}),!0)}})},function(e,t,n){"use strict";var r=n(2),i=n(30),o=n(63),a=n(58),s=n(80),u=a.Set,c=a.add;r({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(e){var t=o(this),n=i(e,arguments.length>1?arguments[1]:void 0),r=new u;return s(t,(function(e){n(e,e,t)&&c(r,e)})),r}})},function(e,t,n){"use strict";var r=n(2),i=n(30),o=n(63),a=n(80);r({target:"Set",proto:!0,real:!0,forced:!0},{find:function(e){var t=o(this),n=i(e,arguments.length>1?arguments[1]:void 0),r=a(t,(function(e){if(n(e,e,t))return{value:e}}),!0);return r&&r.value}})},function(e,t,n){"use strict";var r=n(2),i=n(58);r({target:"Set",stat:!0,forced:!0},{from:n(206)(i.Set,i.add,!1)})},function(e,t,n){"use strict";n(352)},function(e,t,n){"use strict";var r=n(2),i=n(9),o=n(129),a=n(353);r({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(e){return i(a,this,o(e))}})},function(e,t,n){"use strict";n(354)},function(e,t,n){"use strict";var r=n(2),i=n(9),o=n(129),a=n(355);r({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(e){return i(a,this,o(e))}})},function(e,t,n){"use strict";n(356)},function(e,t,n){"use strict";var r=n(2),i=n(9),o=n(129),a=n(357);r({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(e){return i(a,this,o(e))}})},function(e,t,n){"use strict";n(358)},function(e,t,n){"use strict";var r=n(2),i=n(9),o=n(129),a=n(359);r({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(e){return i(a,this,o(e))}})},function(e,t,n){"use strict";var r=n(2),i=n(4),o=n(63),a=n(80),s=n(18),u=i([].join),c=i([].push);r({target:"Set",proto:!0,real:!0,forced:!0},{join:function(e){var t=o(this),n=void 0===e?",":s(e),r=[];return a(t,(function(e){c(r,e)})),u(r,n)}})},function(e,t,n){"use strict";var r=n(2),i=n(30),o=n(63),a=n(58),s=n(80),u=a.Set,c=a.add;r({target:"Set",proto:!0,real:!0,forced:!0},{map:function(e){var t=o(this),n=i(e,arguments.length>1?arguments[1]:void 0),r=new u;return s(t,(function(e){c(r,n(e,e,t))})),r}})},function(e,t,n){"use strict";var r=n(2),i=n(58);r({target:"Set",stat:!0,forced:!0},{of:n(207)(i.Set,i.add,!1)})},function(e,t,n){"use strict";var r=n(2),i=n(17),o=n(63),a=n(80),s=TypeError;r({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=o(this),n=arguments.length<2,r=n?void 0:arguments[1];if(i(e),a(t,(function(i){n?(n=!1,r=i):r=e(r,i,i,t)})),n)throw new s("Reduce of empty set with no initial value");return r}})},function(e,t,n){"use strict";var r=n(2),i=n(30),o=n(63),a=n(80);r({target:"Set",proto:!0,real:!0,forced:!0},{some:function(e){var t=o(this),n=i(e,arguments.length>1?arguments[1]:void 0);return!0===a(t,(function(e){if(n(e,e,t))return!0}),!0)}})},function(e,t,n){"use strict";n(360)},function(e,t,n){"use strict";var r=n(2),i=n(9),o=n(129),a=n(361);r({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(e){return i(a,this,o(e))}})},function(e,t,n){"use strict";n(362)},function(e,t,n){"use strict";var r=n(2),i=n(9),o=n(129),a=n(363);r({target:"Set",proto:!0,real:!0,forced:!0},{union:function(e){return i(a,this,o(e))}})},function(e,t,n){"use strict";var r=n(2),i=n(144).charAt,o=n(34),a=n(36),s=n(18);r({target:"String",proto:!0,forced:!0},{at:function(e){var t=s(o(this)),n=t.length,r=a(e),u=r>=0?r:n+r;return u<0||u>=n?void 0:i(t,u)}})},function(e,t,n){"use strict";n(2)({target:"String",stat:!0,forced:!0},{cooked:n(401)})},function(e,t,n){"use strict";var r=n(2),i=n(123),o=n(57),a=n(34),s=n(18),u=n(27),c=n(144),l=c.codeAt,f=c.charAt,d=u.set,p=u.getterFor("String Iterator"),h=i((function(e){d(this,{type:"String Iterator",string:e,index:0})}),"String",(function(){var e,t=p(this),n=t.string,r=t.index;return r>=n.length?o(void 0,!0):(e=f(n,r),t.index+=e.length,o({codePoint:l(e,0),position:r},!1))}));r({target:"String",proto:!0,forced:!0},{codePoints:function(){return new h(s(a(this)))}})},function(e,t,n){"use strict";var r=n(111),i=n(2),o=n(179),a=n(4),s=n(66),u=n(8),c=n(24),l=n(19),f=n(25),d=n(33).f,p=n(79),h=n(148),v=n(401),g=n(873),m=n(142),y=new h.WeakMap,b=h.get,x=h.has,w=h.set,_=Array,S=TypeError,O=Object.freeze||Object,k=Object.isFrozen,E=Math.min,j=a("".charAt),T=a("".slice),C=a("".split),A=a(/./.exec),P=/([\n\u2028\u2029]|\r\n?)/g,M=RegExp("^["+m+"]*"),I=RegExp("[^"+m+"]"),R=function(e){var t=e.raw;if(r&&!k(t))throw new S("Raw template should be frozen");if(x(y,t))return b(y,t);var n=D(t),i=N(n);return d(i,"raw",{value:O(n)}),O(i),w(y,t,i),i},D=function(e){var t,n,r,i,o=c(e),a=f(o),s=_(a),u=_(a),l=0;if(!a)throw new S("Invalid tag");for(;l<a;l++){var d=o[l];if("string"!=typeof d)throw new S("Invalid tag");s[l]=C(d,P)}for(l=0;l<a;l++){var p=l+1===a;if(t=s[l],0===l){if(1===t.length||t[0].length>0)throw new S("Invalid opening line");t[1]=""}if(p){if(1===t.length||A(I,t[t.length-1]))throw new S("Invalid closing line");t[t.length-2]="",t[t.length-1]=""}for(var h=2;h<t.length;h+=2){var v=t[h],g=h+1===t.length&&!p,m=A(M,v)[0];g||m.length!==v.length?n=L(m,n):t[h]=""}}var y=n?n.length:0;for(l=0;l<a;l++){for(r=(t=s[l])[0],i=1;i<t.length;i+=2)r+=t[i]+T(t[i+1],y);u[l]=r}return u},L=function(e,t){if(void 0===t||e===t)return e;for(var n=0,r=E(e.length,t.length);n<r&&j(e,n)===j(t,n);n++);return T(e,0,n)},N=function(e){for(var t=0,n=e.length,r=_(n);t<n;t++)r[t]=g(e[t]);return r},F=function(e){return o((function(t){var n=p(arguments);return n[0]=R(u(t)),s(e,this,n)}),"")},B=F(v);i({target:"String",stat:!0,forced:!0},{dedent:function(e){return u(e),l(e)?F(e):s(B,this,arguments)}})},function(e,t,n){"use strict";var r=n(16),i=n(4),o=String.fromCharCode,a=r("String","fromCodePoint"),s=i("".charAt),u=i("".charCodeAt),c=i("".indexOf),l=i("".slice),f=function(e,t){var n=u(e,t);return n>=48&&n<=57},d=function(e,t,n){if(n>=e.length)return-1;for(var r=0;t<n;t++){var i=p(u(e,t));if(-1===i)return-1;r=16*r+i}return r},p=function(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-97+10:e>=65&&e<=70?e-65+10:-1};e.exports=function(e){for(var t,n="",r=0,i=0;(i=c(e,"\\",i))>-1;){if(n+=l(e,r,i),++i===e.length)return;var u=s(e,i++);switch(u){case"b":n+="\b";break;case"t":n+="\t";break;case"n":n+="\n";break;case"v":n+="\v";break;case"f":n+="\f";break;case"r":n+="\r";break;case"\r":i<e.length&&"\n"===s(e,i)&&++i;case"\n":case"\u2028":case"\u2029":break;case"0":if(f(e,i))return;n+="\0";break;case"x":if(-1===(t=d(e,i,i+2)))return;i+=2,n+=o(t);break;case"u":if(i<e.length&&"{"===s(e,i)){var p=c(e,"}",++i);if(-1===p)return;t=d(e,i,p),i=p+1}else t=d(e,i,i+4),i+=4;if(-1===t||t>1114111)return;n+=a(t);break;default:if(f(u,0))return;n+=u}r=i}return n+l(e,r)}},function(e,t,n){"use strict";n(364)},function(e,t,n){"use strict";n(366)},function(e,t,n){"use strict";n(369)},function(e,t,n){"use strict";n(370)},function(e,t,n){"use strict";var r=n(10),i=n(41),o=n(33).f,a=n(56).f,s=r.Symbol;if(i("asyncDispose"),s){var u=a(s,"asyncDispose");u.enumerable&&u.configurable&&u.writable&&o(s,"asyncDispose",{value:u.value,enumerable:!1,configurable:!1,writable:!1})}},function(e,t,n){"use strict";n(41)("customMatcher")},function(e,t,n){"use strict";var r=n(10),i=n(41),o=n(33).f,a=n(56).f,s=r.Symbol;if(i("dispose"),s){var u=a(s,"dispose");u.enumerable&&u.configurable&&u.writable&&o(s,"dispose",{value:u.value,enumerable:!1,configurable:!1,writable:!1})}},function(e,t,n){"use strict";n(2)({target:"Symbol",stat:!0},{isRegisteredSymbol:n(402)})},function(e,t,n){"use strict";n(2)({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:n(402)})},function(e,t,n){"use strict";n(2)({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:n(403)})},function(e,t,n){"use strict";n(2)({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:n(403)})},function(e,t,n){"use strict";n(41)("matcher")},function(e,t,n){"use strict";n(41)("metadata")},function(e,t,n){"use strict";n(41)("metadataKey")},function(e,t,n){"use strict";n(41)("observable")},function(e,t,n){"use strict";n(41)("patternMatch")},function(e,t,n){"use strict";n(41)("replaceAll")},function(e,t,n){"use strict";var r=n(16),i=n(190),o=n(383),a=n(22),s=n(110),u=a.aTypedArrayConstructor;(0,a.exportTypedArrayStaticMethod)("fromAsync",(function(e){var t=this,n=arguments.length,a=n>1?arguments[1]:void 0,c=n>2?arguments[2]:void 0;return new(r("Promise"))((function(n){i(t),n(o(e,a,c))})).then((function(e){return s(u(t),e)}))}),!0)},function(e,t,n){"use strict";n(376)},function(e,t,n){"use strict";var r=n(22),i=n(46).filterReject,o=n(263),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("filterOut",(function(e){var t=i(a(this),e,arguments.length>1?arguments[1]:void 0);return o(this,t)}),!0)},function(e,t,n){"use strict";var r=n(22),i=n(46).filterReject,o=n(263),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("filterReject",(function(e){var t=i(a(this),e,arguments.length>1?arguments[1]:void 0);return o(this,t)}),!0)},function(e,t,n){"use strict";n(377)},function(e,t,n){"use strict";n(378)},function(e,t,n){"use strict";var r=n(22),i=n(265),o=n(164),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("groupBy",(function(e){var t=arguments.length>1?arguments[1]:void 0;return i(a(this),e,t,o)}),!0)},function(e,t,n){"use strict";n(379)},function(e,t,n){"use strict";n(380)},function(e,t,n){"use strict";var r=n(22),i=n(25),o=n(262),a=n(92),s=n(203),u=n(36),c=n(5),l=r.aTypedArray,f=r.getTypedArrayConstructor,d=r.exportTypedArrayMethod,p=Math.max,h=Math.min;d("toSpliced",(function(e,t){var n,r,c,d,v,g,m,y=l(this),b=f(y),x=i(y),w=a(e,x),_=arguments.length,S=0;if(0===_)n=r=0;else if(1===_)n=0,r=x-w;else if(r=h(p(u(t),0),x-w),n=_-2){d=new b(n),c=o(d);for(var O=2;O<_;O++)v=arguments[O],d[O-2]=c?s(v):+v}for(m=new b(g=x+n-r);S<w;S++)m[S]=y[S];for(;S<w+n;S++)m[S]=d[S-w];for(;S<g;S++)m[S]=y[S+r-n];return m}),!!c((function(){var e=new Int8Array([1]),t=e.toSpliced(1,0,{valueOf:function(){return e[0]=2,3}});return 2!==t[0]||3!==t[1]})))},function(e,t,n){"use strict";var r=n(4),i=n(22),o=n(110),a=n(266),s=i.aTypedArray,u=i.getTypedArrayConstructor,c=i.exportTypedArrayMethod,l=r(a);c("uniqueBy",(function(e){return s(this),o(u(this),l(this,e))}),!0)},function(e,t,n){"use strict";n(381)},function(e,t,n){"use strict";var r=n(2),i=n(10),o=n(4),a=n(404),s=n(405),u=n(21),c=n(110),l=n(208),f=n(406),d=l.c2i,p=l.c2iUrl,h=i.Uint8Array,v=i.SyntaxError,g=o("".charAt),m=o("".replace),y=o("".slice),b=o([].push),x=/[\t\n\f\r ]/g;h&&r({target:"Uint8Array",stat:!0,forced:!0},{fromBase64:function(e){s(e);var t=arguments.length>1?a(arguments[1]):void 0,n="base64"===f(t)?d:p,r=!!t&&!!t.strict,i=r?e:m(e,x,"");if(i.length%4==0)"=="===y(i,-2)?i=y(i,0,-2):"="===y(i,-1)&&(i=y(i,0,-1));else if(r)throw new v("Input is not correctly padded");var o=i.length%4;switch(o){case 1:throw new v("Bad input length");case 2:i+="AA";break;case 3:i+="A"}for(var l=[],w=0,_=i.length,S=function(e){var t=g(i,w+e);if(!u(n,t))throw new v('Bad char in input: "'+t+'"');return n[t]<<18-6*e};w<_;w+=4){var O=S(0)+S(1)+S(2)+S(3);b(l,O>>16&255,O>>8&255,255&O)}var k=l.length;if(2===o){if(r&&0!==l[k-2])throw new v("Extra bits");k-=2}else if(3===o){if(r&&0!==l[k-1])throw new v("Extra bits");k--}return c(h,l,k)}})},function(e,t,n){"use strict";var r=n(2),i=n(10),o=n(4),a=n(405),s=i.Uint8Array,u=i.SyntaxError,c=i.parseInt,l=/[^\da-f]/i,f=o(l.exec),d=o("".slice);s&&r({target:"Uint8Array",stat:!0,forced:!0},{fromHex:function(e){a(e);var t=e.length;if(t%2)throw new u("String should have an even number of characters");if(f(l,e))throw new u("String should only contain hex characters");for(var n=new s(t/2),r=0;r<t;r+=2)n[r/2]=c(d(e,r,r+2),16);return n}})},function(e,t,n){"use strict";var r=n(2),i=n(10),o=n(4),a=n(404),s=n(407),u=n(208),c=n(406),l=u.i2c,f=u.i2cUrl,d=i.Uint8Array,p=o("".charAt);d&&r({target:"Uint8Array",proto:!0,forced:!0},{toBase64:function(){for(var e,t=s(this),n=arguments.length?a(arguments[0]):void 0,r="base64"===c(n)?l:f,i="",o=0,u=t.length,d=function(t){return p(r,e>>6*t&63)};o+2<u;o+=3)e=(t[o]<<16)+(t[o+1]<<8)+t[o+2],i+=d(3)+d(2)+d(1)+d(0);return o+2===u?(e=(t[o]<<16)+(t[o+1]<<8),i+=d(3)+d(2)+d(1)+"="):o+1===u&&(e=t[o]<<16,i+=d(3)+d(2)+"=="),i}})},function(e,t,n){"use strict";var r=n(2),i=n(10),o=n(4),a=n(407),s=i.Uint8Array,u=o(1..toString);s&&r({target:"Uint8Array",proto:!0,forced:!0},{toHex:function(){a(this);for(var e="",t=0,n=this.length;t<n;t++){var r=u(this[t],16);e+=1===r.length?"0"+r:r}return e}})},function(e,t,n){"use strict";var r=n(2),i=n(408),o=n(148).remove;r({target:"WeakMap",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=i(this),n=!0,r=0,a=arguments.length;r<a;r++)e=o(t,arguments[r]),n=n&&e;return!!n}})},function(e,t,n){"use strict";var r=n(2),i=n(148);r({target:"WeakMap",stat:!0,forced:!0},{from:n(206)(i.WeakMap,i.set,!0)})},function(e,t,n){"use strict";var r=n(2),i=n(148);r({target:"WeakMap",stat:!0,forced:!0},{of:n(207)(i.WeakMap,i.set,!0)})},function(e,t,n){"use strict";var r=n(2),i=n(408),o=n(148),a=o.get,s=o.has,u=o.set;r({target:"WeakMap",proto:!0,real:!0,forced:!0},{emplace:function(e,t){var n,r,o=i(this);return s(o,e)?(n=a(o,e),"update"in t&&(n=t.update(n,e,o),u(o,e,n)),n):(r=t.insert(e,o),u(o,e,r),r)}})},function(e,t,n){"use strict";n(2)({target:"WeakMap",proto:!0,real:!0,forced:!0},{upsert:n(268)})},function(e,t,n){"use strict";var r=n(2),i=n(409),o=n(167).add;r({target:"WeakSet",proto:!0,real:!0,forced:!0},{addAll:function(){for(var e=i(this),t=0,n=arguments.length;t<n;t++)o(e,arguments[t]);return e}})},function(e,t,n){"use strict";var r=n(2),i=n(409),o=n(167).remove;r({target:"WeakSet",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=i(this),n=!0,r=0,a=arguments.length;r<a;r++)e=o(t,arguments[r]),n=n&&e;return!!n}})},function(e,t,n){"use strict";var r=n(2),i=n(167);r({target:"WeakSet",stat:!0,forced:!0},{from:n(206)(i.WeakSet,i.add,!1)})},function(e,t,n){"use strict";var r=n(2),i=n(167);r({target:"WeakSet",stat:!0,forced:!0},{of:n(207)(i.WeakSet,i.add,!1)})},function(e,t,n){"use strict";var r=n(2),i=n(10),o=n(16),a=n(4),s=n(9),u=n(5),c=n(18),l=n(84),f=n(208).c2i,d=/[^\d+/a-z]/i,p=/[\t\n\f\r ]+/g,h=/[=]{1,2}$/,v=o("atob"),g=String.fromCharCode,m=a("".charAt),y=a("".replace),b=a(d.exec),x=!!v&&!u((function(){return"hi"!==v("aGk=")})),w=x&&u((function(){return""!==v(" ")})),_=x&&!u((function(){v("a")})),S=x&&!u((function(){v()})),O=x&&1!==v.length;r({global:!0,bind:!0,enumerable:!0,forced:!x||w||_||S||O},{atob:function(e){if(l(arguments.length,1),x&&!w&&!_)return s(v,i,e);var t,n,r,a=y(c(e),p,""),u="",S=0,O=0;if(a.length%4==0&&(a=y(a,h,"")),(t=a.length)%4==1||b(d,a))throw new(o("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;S<t;)n=m(a,S++),r=O%4?64*r+f[n]:f[n],O++%4&&(u+=g(255&r>>(-2*O&6)));return u}})},function(e,t,n){"use strict";var r=n(2),i=n(10),o=n(16),a=n(4),s=n(9),u=n(5),c=n(18),l=n(84),f=n(208).i2c,d=o("btoa"),p=a("".charAt),h=a("".charCodeAt),v=!!d&&!u((function(){return"aGk="!==d("hi")})),g=v&&!u((function(){d()})),m=v&&u((function(){return"bnVsbA=="!==d(null)})),y=v&&1!==d.length;r({global:!0,bind:!0,enumerable:!0,forced:!v||g||m||y},{btoa:function(e){if(l(arguments.length,1),v)return s(d,i,c(e));for(var t,n,r=c(e),a="",u=0,g=f;p(r,u)||(g="=",u%1);){if((n=h(r,u+=.75))>255)throw new(o("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");a+=p(g,63&(t=t<<8|n)>>8-u%1*8)}return a}})},function(e,t,n){"use strict";var r=n(10),i=n(410),o=n(411),a=n(303),s=n(50),u=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var c in i)i[c]&&u(r[c]&&r[c].prototype);u(o)},function(e,t,n){"use strict";var r=n(10),i=n(410),o=n(411),a=n(187),s=n(50),u=n(72),c=n(13)("iterator"),l=a.values,f=function(e,t){if(e){if(e[c]!==l)try{s(e,c,l)}catch(t){e[c]=l}if(u(e,t,!0),i[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(t){e[n]=a[n]}}};for(var d in i)f(r[d]&&r[d].prototype,d);f(o,"DOMTokenList")},function(e,t,n){"use strict";var r=n(2),i=n(322),o=n(16),a=n(5),s=n(45),u=n(76),c=n(33).f,l=n(28),f=n(37),d=n(21),p=n(67),h=n(8),v=n(296),g=n(137),m=n(412),y=n(234),b=n(27),x=n(12),w=n(23),_=o("Error"),S=o("DOMException")||function(){try{(new(o("MessageChannel")||i("worker_threads").MessageChannel)).port1.postMessage(new WeakMap)}catch(e){if("DATA_CLONE_ERR"===e.name&&25===e.code)return e.constructor}}(),O=S&&S.prototype,k=_.prototype,E=b.set,j=b.getterFor("DOMException"),T="stack"in new _("DOMException"),C=function(e){return d(m,e)&&m[e].m?m[e].c:0},A=function(){p(this,P);var e=arguments.length,t=g(e<1?void 0:arguments[0]),n=g(e<2?void 0:arguments[1],"Error"),r=C(n);if(E(this,{type:"DOMException",name:n,message:t,code:r}),x||(this.name=n,this.message=t,this.code=r),T){var i=new _(t);i.name="DOMException",c(this,"stack",u(1,y(i.stack,1)))}},P=A.prototype=s(k),M=function(e){return{enumerable:!0,configurable:!0,get:e}},I=function(e){return M((function(){return j(this)[e]}))};x&&(f(P,"code",I("code")),f(P,"message",I("message")),f(P,"name",I("name"))),c(P,"constructor",u(1,A));var R=a((function(){return!(new S instanceof _)})),D=R||a((function(){return k.toString!==v||"2: 1"!==String(new S(1,2))})),L=R||a((function(){return 25!==new S(1,"DataCloneError").code})),N=R||25!==S.DATA_CLONE_ERR||25!==O.DATA_CLONE_ERR,F=w?D||L||N:R;r({global:!0,constructor:!0,forced:F},{DOMException:F?A:S});var B=o("DOMException"),U=B.prototype;for(var z in D&&(w||S===B)&&l(U,"toString",v),L&&x&&S===B&&f(U,"code",M((function(){return C(h(this).name)}))),m)if(d(m,z)){var V=m[z],H=V.s,W=u(6,V.c);d(B,H)||c(B,H,W),d(U,H)||c(U,H,W)}},function(e,t,n){"use strict";var r=n(2),i=n(10),o=n(16),a=n(76),s=n(33).f,u=n(21),c=n(67),l=n(120),f=n(137),d=n(412),p=n(234),h=n(12),v=n(23),g=o("Error"),m=o("DOMException"),y=function(){c(this,b);var e=arguments.length,t=f(e<1?void 0:arguments[0]),n=f(e<2?void 0:arguments[1],"Error"),r=new m(t,n),i=new g(t);return i.name="DOMException",s(r,"stack",a(1,p(i.stack,1))),l(r,this,y),r},b=y.prototype=m.prototype,x="stack"in new g("DOMException"),w="stack"in new m(1,2),_=m&&h&&Object.getOwnPropertyDescriptor(i,"DOMException"),S=!(!_||_.writable&&_.configurable),O=x&&!S&&!w;r({global:!0,constructor:!0,forced:v||O},{DOMException:O?y:m});var k=o("DOMException"),E=k.prototype;if(E.constructor!==k)for(var j in v||s(E,"constructor",a(1,k)),d)if(u(d,j)){var T=d[j],C=T.s;u(k,C)||s(k,C,a(6,T.c))}},function(e,t,n){"use strict";var r=n(16);n(72)(r("DOMException"),"DOMException")},function(e,t,n){"use strict";n(924),n(925)},function(e,t,n){"use strict";var r=n(2),i=n(10),o=n(197).clear;r({global:!0,bind:!0,enumerable:!0,forced:i.clearImmediate!==o},{clearImmediate:o})},function(e,t,n){"use strict";var r=n(2),i=n(10),o=n(197).set,a=n(270),s=i.setImmediate?a(o,!1):o;r({global:!0,bind:!0,enumerable:!0,forced:i.setImmediate!==s},{setImmediate:s})},function(e,t,n){"use strict";e.exports="function"==typeof Bun&&Bun&&"string"==typeof Bun.version},function(e,t,n){"use strict";var r=n(2),i=n(10),o=n(340),a=n(17),s=n(84),u=n(5),c=n(12);r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:u((function(){return c&&1!==Object.getOwnPropertyDescriptor(i,"queueMicrotask").value.length}))},{queueMicrotask:function(e){s(arguments.length,1),o(a(e))}})},function(e,t,n){"use strict";var r=n(2),i=n(10),o=n(37),a=n(12),s=TypeError,u=Object.defineProperty,c=i.self!==i;try{if(a){var l=Object.getOwnPropertyDescriptor(i,"self");!c&&l&&l.get&&l.enumerable||o(i,"self",{get:function(){return i},set:function(e){if(this!==i)throw new s("Illegal invocation");u(i,"self",{value:e,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else r({global:!0,simple:!0,forced:c},{self:i})}catch(e){}},function(e,t,n){"use strict";var r,i=n(23),o=n(2),a=n(10),s=n(16),u=n(4),c=n(5),l=n(117),f=n(19),d=n(94),p=n(49),h=n(15),v=n(105),g=n(42),m=n(8),y=n(78),b=n(21),x=n(86),w=n(50),_=n(25),S=n(84),O=n(160),k=n(62),E=n(58),j=n(80),T=n(321),C=n(295),A=n(247),P=a.Object,M=a.Array,I=a.Date,R=a.Error,D=a.TypeError,L=a.PerformanceMark,N=s("DOMException"),F=k.Map,B=k.has,U=k.get,z=k.set,V=E.Set,H=E.add,W=E.has,q=s("Object","keys"),G=u([].push),Y=u((!0).valueOf),K=u(1..valueOf),$=u("".valueOf),X=u(I.prototype.getTime),Q=l("structuredClone"),Z=function(e){return!c((function(){var t=new a.Set([7]),n=e(t),r=e(P(7));return n===t||!n.has(7)||!h(r)||7!=+r}))&&e},J=function(e,t){return!c((function(){var n=new t,r=e({a:n,b:n});return!(r&&r.a===r.b&&r.a instanceof t&&r.a.stack===n.stack)}))},ee=a.structuredClone,te=i||!J(ee,R)||!J(ee,N)||(r=ee,!!c((function(){var e=r(new a.AggregateError([1],Q,{cause:3}));return"AggregateError"!==e.name||1!==e.errors[0]||e.message!==Q||3!==e.cause}))),ne=!ee&&Z((function(e){return new L(Q,{detail:e}).detail})),re=Z(ee)||ne,ie=function(e){throw new N("Uncloneable type: "+e,"DataCloneError")},oe=function(e,t){throw new N((t||"Cloning")+" of "+e+" cannot be properly polyfilled in this engine","DataCloneError")},ae=function(e,t){return re||oe(t),re(e)},se=function(e,t,n){if(B(t,e))return U(t,e);var r,i,o,s,u,c;if("SharedArrayBuffer"===(n||y(e)))r=re?re(e):e;else{var l=a.DataView;l||f(e.slice)||oe("ArrayBuffer");try{if(f(e.slice)&&!e.resizable)r=e.slice(0);else{i=e.byteLength,o="maxByteLength"in e?{maxByteLength:e.maxByteLength}:void 0,r=new ArrayBuffer(i,o),s=new l(e),u=new l(r);for(c=0;c<i;c++)u.setUint8(c,s.getUint8(c))}}catch(e){throw new N("ArrayBuffer is detached","DataCloneError")}}return z(t,e,r),r},ue=function(e,t){if(v(e)&&ie("Symbol"),!h(e))return e;if(t){if(B(t,e))return U(t,e)}else t=new F;var n,r,i,o,u,c,l,d,p=y(e);switch(p){case"Array":i=M(_(e));break;case"Object":i={};break;case"Map":i=new F;break;case"Set":i=new V;break;case"RegExp":i=new RegExp(e.source,O(e));break;case"Error":switch(r=e.name){case"AggregateError":i=new(s(r))([]);break;case"EvalError":case"RangeError":case"ReferenceError":case"SuppressedError":case"SyntaxError":case"TypeError":case"URIError":i=new(s(r));break;case"CompileError":case"LinkError":case"RuntimeError":i=new(s("WebAssembly",r));break;default:i=new R}break;case"DOMException":i=new N(e.message,e.name);break;case"ArrayBuffer":case"SharedArrayBuffer":i=se(e,t,p);break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float16Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":c="DataView"===p?e.byteLength:e.length,i=function(e,t,n,r,i){var o=a[t];return h(o)||oe(t),new o(se(e.buffer,i),n,r)}(e,p,e.byteOffset,c,t);break;case"DOMQuad":try{i=new DOMQuad(ue(e.p1,t),ue(e.p2,t),ue(e.p3,t),ue(e.p4,t))}catch(t){i=ae(e,p)}break;case"File":if(re)try{i=re(e),y(i)!==p&&(i=void 0)}catch(e){}if(!i)try{i=new File([e],e.name,e)}catch(e){}i||oe(p);break;case"FileList":if(o=function(){var e;try{e=new a.DataTransfer}catch(t){try{e=new a.ClipboardEvent("").clipboardData}catch(e){}}return e&&e.items&&e.files?e:null}()){for(u=0,c=_(e);u<c;u++)o.items.add(ue(e[u],t));i=o.files}else i=ae(e,p);break;case"ImageData":try{i=new ImageData(ue(e.data,t),e.width,e.height,{colorSpace:e.colorSpace})}catch(t){i=ae(e,p)}break;default:if(re)i=re(e);else switch(p){case"BigInt":i=P(e.valueOf());break;case"Boolean":i=P(Y(e));break;case"Number":i=P(K(e));break;case"String":i=P($(e));break;case"Date":i=new I(X(e));break;case"Blob":try{i=e.slice(0,e.size,e.type)}catch(e){oe(p)}break;case"DOMPoint":case"DOMPointReadOnly":n=a[p];try{i=n.fromPoint?n.fromPoint(e):new n(e.x,e.y,e.z,e.w)}catch(e){oe(p)}break;case"DOMRect":case"DOMRectReadOnly":n=a[p];try{i=n.fromRect?n.fromRect(e):new n(e.x,e.y,e.width,e.height)}catch(e){oe(p)}break;case"DOMMatrix":case"DOMMatrixReadOnly":n=a[p];try{i=n.fromMatrix?n.fromMatrix(e):new n(e)}catch(e){oe(p)}break;case"AudioData":case"VideoFrame":f(e.clone)||oe(p);try{i=e.clone()}catch(e){ie(p)}break;case"CropTarget":case"CryptoKey":case"FileSystemDirectoryHandle":case"FileSystemFileHandle":case"FileSystemHandle":case"GPUCompilationInfo":case"GPUCompilationMessage":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":oe(p);default:ie(p)}}switch(z(t,e,i),p){case"Array":case"Object":for(l=q(e),u=0,c=_(l);u<c;u++)d=l[u],x(i,d,ue(e[d],t));break;case"Map":e.forEach((function(e,n){z(i,ue(n,t),ue(e,t))}));break;case"Set":e.forEach((function(e){H(i,ue(e,t))}));break;case"Error":w(i,"message",ue(e.message,t)),b(e,"cause")&&w(i,"cause",ue(e.cause,t)),"AggregateError"===r?i.errors=ue(e.errors,t):"SuppressedError"===r&&(i.error=ue(e.error,t),i.suppressed=ue(e.suppressed,t));case"DOMException":C&&w(i,"stack",ue(e.stack,t))}return i},ce=function(e,t){if(!h(e))throw new D("Transfer option cannot be converted to a sequence");var n=[];g(e,(function(e){G(n,m(e))}));for(var r,i,o,s,u,c=0,l=_(n),p=new V;c<l;){if(r=n[c++],"ArrayBuffer"===(i=y(r))?W(p,r):B(t,r))throw new N("Duplicate transferable","DataCloneError");if("ArrayBuffer"!==i){if(A)s=ee(r,{transfer:[r]});else switch(i){case"ImageBitmap":o=a.OffscreenCanvas,d(o)||oe(i,"Transferring");try{(u=new o(r.width,r.height)).getContext("bitmaprenderer").transferFromImageBitmap(r),s=u.transferToImageBitmap()}catch(e){}break;case"AudioData":case"VideoFrame":f(r.clone)&&f(r.close)||oe(i,"Transferring");try{s=r.clone(),r.close()}catch(e){}break;case"MediaSourceHandle":case"MessagePort":case"OffscreenCanvas":case"ReadableStream":case"TransformStream":case"WritableStream":oe(i,"Transferring")}if(void 0===s)throw new N("This object cannot be transferred: "+i,"DataCloneError");z(t,r,s)}else H(p,r)}return p},le=function(e){j(e,(function(e){A?re(e,{transfer:[e]}):f(e.transfer)?e.transfer():T?T(e):oe("ArrayBuffer","Transferring")}))};o({global:!0,enumerable:!0,sham:!A,forced:te},{structuredClone:function(e){var t,n,r=S(arguments.length,1)>1&&!p(arguments[1])?m(arguments[1]):void 0,i=r?r.transfer:void 0;void 0!==i&&(t=new F,n=ce(i,t));var o=ue(e,t);return n&&le(n),o}})},function(e,t,n){"use strict";n(931),n(932)},function(e,t,n){"use strict";var r=n(2),i=n(10),o=n(270)(i.setInterval,!0);r({global:!0,bind:!0,forced:i.setInterval!==o},{setInterval:o})},function(e,t,n){"use strict";var r=n(2),i=n(10),o=n(270)(i.setTimeout,!0);r({global:!0,bind:!0,forced:i.setTimeout!==o},{setTimeout:o})},function(e,t,n){"use strict";n(934)},function(e,t,n){"use strict";n(365);var r,i=n(2),o=n(12),a=n(209),s=n(10),u=n(30),c=n(4),l=n(28),f=n(37),d=n(67),p=n(21),h=n(334),v=n(304),g=n(79),m=n(144).codeAt,y=n(935),b=n(18),x=n(72),w=n(84),_=n(413),S=n(27),O=S.set,k=S.getterFor("URL"),E=_.URLSearchParams,j=_.getState,T=s.URL,C=s.TypeError,A=s.parseInt,P=Math.floor,M=Math.pow,R=c("".charAt),D=c(/./.exec),L=c([].join),N=c(1..toString),F=c([].pop),B=c([].push),U=c("".replace),z=c([].shift),V=c("".split),H=c("".slice),W=c("".toLowerCase),q=c([].unshift),G=/[a-z]/i,Y=/[\d+-.a-z]/i,K=/\d/,$=/^0x/i,X=/^[0-7]+$/,Q=/^\d+$/,Z=/^[\da-f]+$/i,J=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ee=/[\0\t\n\r #/:<>?@[\\\]^|]/,te=/^[\u0000-\u0020]+/,ne=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,re=/[\t\n\r]/g,ie=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)q(t,e%256),e=P(e/256);return L(t,".")}if("object"==I(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+=N(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},oe={},ae=h({},oe,{" ":1,'"':1,"<":1,">":1,"`":1}),se=h({},ae,{"#":1,"?":1,"{":1,"}":1}),ue=h({},se,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ce=function(e,t){var n=m(e,0);return n>32&&n<127&&!p(t,e)?e:encodeURIComponent(e)},le={ftp:21,file:null,http:80,https:443,ws:80,wss:443},fe=function(e,t){var n;return 2===e.length&&D(G,R(e,0))&&(":"===(n=R(e,1))||!t&&"|"===n)},de=function(e){var t;return e.length>1&&fe(H(e,0,2))&&(2===e.length||"/"===(t=R(e,2))||"\\"===t||"?"===t||"#"===t)},pe=function(e){return"."===e||"%2e"===W(e)},he={},ve={},ge={},me={},ye={},be={},xe={},we={},_e={},Se={},Oe={},ke={},Ee={},je={},Te={},Ce={},Ae={},Pe={},Me={},Ie={},Re={},De=function(e,t,n){var r,i,o,a=b(e);if(t){if(i=this.parse(a))throw new C(i);this.searchParams=null}else{if(void 0!==n&&(r=new De(n,!0)),i=this.parse(a,null,r))throw new C(i);(o=j(new E)).bindURL(this),this.searchParams=o}};De.prototype={type:"URL",parse:function(e,t,n){var i,o,a,s,u,c=this,l=t||he,f=0,d="",h=!1,m=!1,y=!1;for(e=b(e),t||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=U(e,te,""),e=U(e,ne,"$1")),e=U(e,re,""),i=v(e);f<=i.length;){switch(o=i[f],l){case he:if(!o||!D(G,o)){if(t)return"Invalid scheme";l=ge;continue}d+=W(o),l=ve;break;case ve:if(o&&(D(Y,o)||"+"===o||"-"===o||"."===o))d+=W(o);else{if(":"!==o){if(t)return"Invalid scheme";d="",l=ge,f=0;continue}if(t&&(c.isSpecial()!==p(le,d)||"file"===d&&(c.includesCredentials()||null!==c.port)||"file"===c.scheme&&!c.host))return;if(c.scheme=d,t)return void(c.isSpecial()&&le[c.scheme]===c.port&&(c.port=null));d="","file"===c.scheme?l=je:c.isSpecial()&&n&&n.scheme===c.scheme?l=me:c.isSpecial()?l=we:"/"===i[f+1]?(l=ye,f++):(c.cannotBeABaseURL=!0,B(c.path,""),l=Me)}break;case ge:if(!n||n.cannotBeABaseURL&&"#"!==o)return"Invalid scheme";if(n.cannotBeABaseURL&&"#"===o){c.scheme=n.scheme,c.path=g(n.path),c.query=n.query,c.fragment="",c.cannotBeABaseURL=!0,l=Re;break}l="file"===n.scheme?je:be;continue;case me:if("/"!==o||"/"!==i[f+1]){l=be;continue}l=_e,f++;break;case ye:if("/"===o){l=Se;break}l=Pe;continue;case be:if(c.scheme=n.scheme,o===r)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=g(n.path),c.query=n.query;else if("/"===o||"\\"===o&&c.isSpecial())l=xe;else if("?"===o)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=g(n.path),c.query="",l=Ie;else{if("#"!==o){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=g(n.path),c.path.length--,l=Pe;continue}c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=g(n.path),c.query=n.query,c.fragment="",l=Re}break;case xe:if(!c.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,l=Pe;continue}l=Se}else l=_e;break;case we:if(l=_e,"/"!==o||"/"!==R(d,f+1))continue;f++;break;case _e:if("/"!==o&&"\\"!==o){l=Se;continue}break;case Se:if("@"===o){h&&(d="%40"+d),h=!0,a=v(d);for(var x=0;x<a.length;x++){var w=a[x];if(":"!==w||y){var _=ce(w,ue);y?c.password+=_:c.username+=_}else y=!0}d=""}else if(o===r||"/"===o||"?"===o||"#"===o||"\\"===o&&c.isSpecial()){if(h&&""===d)return"Invalid authority";f-=v(d).length+1,d="",l=Oe}else d+=o;break;case Oe:case ke:if(t&&"file"===c.scheme){l=Ce;continue}if(":"!==o||m){if(o===r||"/"===o||"?"===o||"#"===o||"\\"===o&&c.isSpecial()){if(c.isSpecial()&&""===d)return"Invalid host";if(t&&""===d&&(c.includesCredentials()||null!==c.port))return;if(s=c.parseHost(d))return s;if(d="",l=Ae,t)return;continue}"["===o?m=!0:"]"===o&&(m=!1),d+=o}else{if(""===d)return"Invalid host";if(s=c.parseHost(d))return s;if(d="",l=Ee,t===ke)return}break;case Ee:if(!D(K,o)){if(o===r||"/"===o||"?"===o||"#"===o||"\\"===o&&c.isSpecial()||t){if(""!==d){var S=A(d,10);if(S>65535)return"Invalid port";c.port=c.isSpecial()&&S===le[c.scheme]?null:S,d=""}if(t)return;l=Ae;continue}return"Invalid port"}d+=o;break;case je:if(c.scheme="file","/"===o||"\\"===o)l=Te;else{if(!n||"file"!==n.scheme){l=Pe;continue}switch(o){case r:c.host=n.host,c.path=g(n.path),c.query=n.query;break;case"?":c.host=n.host,c.path=g(n.path),c.query="",l=Ie;break;case"#":c.host=n.host,c.path=g(n.path),c.query=n.query,c.fragment="",l=Re;break;default:de(L(g(i,f),""))||(c.host=n.host,c.path=g(n.path),c.shortenPath()),l=Pe;continue}}break;case Te:if("/"===o||"\\"===o){l=Ce;break}n&&"file"===n.scheme&&!de(L(g(i,f),""))&&(fe(n.path[0],!0)?B(c.path,n.path[0]):c.host=n.host),l=Pe;continue;case Ce:if(o===r||"/"===o||"\\"===o||"?"===o||"#"===o){if(!t&&fe(d))l=Pe;else if(""===d){if(c.host="",t)return;l=Ae}else{if(s=c.parseHost(d))return s;if("localhost"===c.host&&(c.host=""),t)return;d="",l=Ae}continue}d+=o;break;case Ae:if(c.isSpecial()){if(l=Pe,"/"!==o&&"\\"!==o)continue}else if(t||"?"!==o)if(t||"#"!==o){if(o!==r&&(l=Pe,"/"!==o))continue}else c.fragment="",l=Re;else c.query="",l=Ie;break;case Pe:if(o===r||"/"===o||"\\"===o&&c.isSpecial()||!t&&("?"===o||"#"===o)){if(".."===(u=W(u=d))||"%2e."===u||".%2e"===u||"%2e%2e"===u?(c.shortenPath(),"/"===o||"\\"===o&&c.isSpecial()||B(c.path,"")):pe(d)?"/"===o||"\\"===o&&c.isSpecial()||B(c.path,""):("file"===c.scheme&&!c.path.length&&fe(d)&&(c.host&&(c.host=""),d=R(d,0)+":"),B(c.path,d)),d="","file"===c.scheme&&(o===r||"?"===o||"#"===o))for(;c.path.length>1&&""===c.path[0];)z(c.path);"?"===o?(c.query="",l=Ie):"#"===o&&(c.fragment="",l=Re)}else d+=ce(o,se);break;case Me:"?"===o?(c.query="",l=Ie):"#"===o?(c.fragment="",l=Re):o!==r&&(c.path[0]+=ce(o,oe));break;case Ie:t||"#"!==o?o!==r&&("'"===o&&c.isSpecial()?c.query+="%27":c.query+="#"===o?"%23":ce(o,oe)):(c.fragment="",l=Re);break;case Re:o!==r&&(c.fragment+=ce(o,ae))}f++}},parseHost:function(e){var t,n,r;if("["===R(e,0)){if("]"!==R(e,e.length-1))return"Invalid host";if(!(t=function(e){var t,n,r,i,o,a,s,u=[0,0,0,0,0,0,0,0],c=0,l=null,f=0,d=function(){return R(e,f)};if(":"===d()){if(":"!==R(e,1))return;f+=2,l=++c}for(;d();){if(8===c)return;if(":"!==d()){for(t=n=0;n<4&&D(Z,d());)t=16*t+A(d(),16),f++,n++;if("."===d()){if(0===n)return;if(f-=n,c>6)return;for(r=0;d();){if(i=null,r>0){if(!("."===d()&&r<4))return;f++}if(!D(K,d()))return;for(;D(K,d());){if(o=A(d(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;f++}u[c]=256*u[c]+i,2!=++r&&4!==r||c++}if(4!==r)return;break}if(":"===d()){if(f++,!d())return}else if(d())return;u[c++]=t}else{if(null!==l)return;f++,l=++c}}if(null!==l)for(a=c-l,c=7;0!==c&&a>0;)s=u[c],u[c--]=u[l+a-1],u[l+--a]=s;else if(8!==c)return;return u}(H(e,1,-1))))return"Invalid host";this.host=t}else if(this.isSpecial()){if(e=y(e),D(J,e))return"Invalid host";if(null===(t=function(e){var t,n,r,i,o,a,s,u=V(e,".");if(u.length&&""===u[u.length-1]&&u.length--,(t=u.length)>4)return e;for(n=[],r=0;r<t;r++){if(""===(i=u[r]))return e;if(o=10,i.length>1&&"0"===R(i,0)&&(o=D($,i)?16:8,i=H(i,8===o?1:2)),""===i)a=0;else{if(!D(10===o?Q:8===o?X:Z,i))return e;a=A(i,o)}B(n,a)}for(r=0;r<t;r++)if(a=n[r],r===t-1){if(a>=M(256,5-t))return null}else if(a>255)return null;for(s=F(n),r=0;r<n.length;r++)s+=n[r]*M(256,3-r);return s}(e)))return"Invalid host";this.host=t}else{if(D(ee,e))return"Invalid host";for(t="",n=v(e),r=0;r<n.length;r++)t+=ce(n[r],oe);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return p(le,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&fe(e[0],!0)||e.length--},serialize: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,u=e.fragment,c=t+":";return null!==i?(c+="//",e.includesCredentials()&&(c+=n+(r?":"+r:"")+"@"),c+=ie(i),null!==o&&(c+=":"+o)):"file"===t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+L(a,"/"):"",null!==s&&(c+="?"+s),null!==u&&(c+="#"+u),c},setHref:function(e){var t=this.parse(e);if(t)throw new C(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new Le(e.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+ie(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(b(e)+":",he)},getUsername:function(){return this.username},setUsername:function(e){var t=v(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=ce(t[n],ue)}},getPassword:function(){return this.password},setPassword:function(e){var t=v(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=ce(t[n],ue)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ie(e):ie(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Oe)},getHostname:function(){var e=this.host;return null===e?"":ie(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,ke)},getPort:function(){var e=this.port;return null===e?"":b(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=b(e))?this.port=null:this.parse(e,Ee))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+L(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Ae))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=b(e))?this.query=null:("?"===R(e,0)&&(e=H(e,1)),this.query="",this.parse(e,Ie)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=b(e))?("#"===R(e,0)&&(e=H(e,1)),this.fragment="",this.parse(e,Re)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Le=function(e){var t=d(this,Ne),n=w(arguments.length,1)>1?arguments[1]:void 0,r=O(t,new De(e,!1,n));o||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},Ne=Le.prototype,Fe=function(e,t){return{get:function(){return k(this)[e]()},set:t&&function(e){return k(this)[t](e)},configurable:!0,enumerable:!0}};if(o&&(f(Ne,"href",Fe("serialize","setHref")),f(Ne,"origin",Fe("getOrigin")),f(Ne,"protocol",Fe("getProtocol","setProtocol")),f(Ne,"username",Fe("getUsername","setUsername")),f(Ne,"password",Fe("getPassword","setPassword")),f(Ne,"host",Fe("getHost","setHost")),f(Ne,"hostname",Fe("getHostname","setHostname")),f(Ne,"port",Fe("getPort","setPort")),f(Ne,"pathname",Fe("getPathname","setPathname")),f(Ne,"search",Fe("getSearch","setSearch")),f(Ne,"searchParams",Fe("getSearchParams")),f(Ne,"hash",Fe("getHash","setHash"))),l(Ne,"toJSON",(function(){return k(this).serialize()}),{enumerable:!0}),l(Ne,"toString",(function(){return k(this).serialize()}),{enumerable:!0}),T){var Be=T.createObjectURL,Ue=T.revokeObjectURL;Be&&l(Le,"createObjectURL",u(Be,T)),Ue&&l(Le,"revokeObjectURL",u(Ue,T))}x(Le,"URL"),i({global:!0,constructor:!0,forced:!a,sham:!o},{URL:Le})},function(e,t,n){"use strict";var r=n(4),i=/[^\0-\u007E]/,o=/[.\u3002\uFF0E\uFF61]/g,a="Overflow: input needs wider integers to process",s=RangeError,u=r(o.exec),c=Math.floor,l=String.fromCharCode,f=r("".charCodeAt),d=r([].join),p=r([].push),h=r("".replace),v=r("".split),g=r("".toLowerCase),m=function(e){return e+22+75*(e<26)},y=function(e,t,n){var r=0;for(e=n?c(e/700):e>>1,e+=c(e/t);e>455;)e=c(e/35),r+=36;return c(r+36*e/(e+38))},b=function(e){var t,n,r=[],i=(e=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=f(e,n++);if(i>=55296&&i<=56319&&n<r){var o=f(e,n++);56320==(64512&o)?p(t,((1023&i)<<10)+(1023&o)+65536):(p(t,i),n--)}else p(t,i)}return t}(e)).length,o=128,u=0,h=72;for(t=0;t<e.length;t++)(n=e[t])<128&&p(r,l(n));var v=r.length,g=v;for(v&&p(r,"-");g<i;){var b=2147483647;for(t=0;t<e.length;t++)(n=e[t])>=o&&n<b&&(b=n);var x=g+1;if(b-o>c((2147483647-u)/x))throw new s(a);for(u+=(b-o)*x,o=b,t=0;t<e.length;t++){if((n=e[t])<o&&++u>2147483647)throw new s(a);if(n===o){for(var w=u,_=36;;){var S=_<=h?1:_>=h+26?26:_-h;if(w<S)break;var O=w-S,k=36-S;p(r,l(m(S+O%k))),w=c(O/k),_+=36}p(r,l(m(w))),h=y(u,x,g===v),u=0,g++}}u++,o++}return d(r,"")};e.exports=function(e){var t,n,r=[],a=v(h(g(e),o,"."),".");for(t=0;t<a.length;t++)n=a[t],p(r,u(i,n)?"xn--"+b(n):n);return d(r,".")}},function(e,t,n){"use strict";var r=n(2),i=n(16),o=n(5),a=n(84),s=n(18),u=n(209),c=i("URL"),l=u&&o((function(){c.canParse()})),f=o((function(){return 1!==c.canParse.length}));r({target:"URL",stat:!0,forced:!l||f},{canParse:function(e){var t=a(arguments.length,1),n=s(e),r=t<2||void 0===arguments[1]?void 0:s(arguments[1]);try{return!!new c(n,r)}catch(e){return!1}}})},function(e,t,n){"use strict";var r=n(2),i=n(16),o=n(84),a=n(18),s=n(209),u=i("URL");r({target:"URL",stat:!0,forced:!s},{parse:function(e){var t=o(arguments.length,1),n=a(e),r=t<2||void 0===arguments[1]?void 0:a(arguments[1]);try{return new u(n,r)}catch(e){return null}}})},function(e,t,n){"use strict";var r=n(2),i=n(9);r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return i(URL.prototype.toString,this)}})},function(e,t,n){"use strict";n(413)},function(e,t,n){"use strict";var r=n(28),i=n(4),o=n(18),a=n(84),s=URLSearchParams,u=s.prototype,c=i(u.append),l=i(u.delete),f=i(u.forEach),d=i([].push),p=new s("a=1&a=2&b=3");p.delete("a",1),p.delete("b",void 0),p+""!="a=2"&&r(u,"delete",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return l(this,e);var r=[];f(this,(function(e,t){d(r,{key:t,value:e})})),a(t,1);for(var i,s=o(e),u=o(n),p=0,h=0,v=!1,g=r.length;p<g;)i=r[p++],v||i.key===s?(v=!0,l(this,i.key)):h++;for(;h<g;)(i=r[h++]).key===s&&i.value===u||c(this,i.key,i.value)}),{enumerable:!0,unsafe:!0})},function(e,t,n){"use strict";var r=n(28),i=n(4),o=n(18),a=n(84),s=URLSearchParams,u=s.prototype,c=i(u.getAll),l=i(u.has),f=new s("a=1");!f.has("a",2)&&f.has("a",void 0)||r(u,"has",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return l(this,e);var r=c(this,e);a(t,1);for(var i=o(n),s=0;s<r.length;)if(r[s++]===i)return!0;return!1}),{enumerable:!0,unsafe:!0})},function(e,t,n){"use strict";var r=n(12),i=n(4),o=n(37),a=URLSearchParams.prototype,s=i(a.forEach);r&&!("size"in a)&&o(a,"size",{get:function(){var e=0;return s(this,(function(){e++})),e},configurable:!0,enumerable:!0})},function(e,t,n){"use strict";(function(e){var t="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==e&&e||{},n="URLSearchParams"in t,r="Symbol"in t&&"iterator"in Symbol,i="FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(e){return!1}}(),o="FormData"in t,a="ArrayBuffer"in t;if(a)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function c(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function l(e){return"string"!=typeof e&&(e=String(e)),e}function f(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function d(e){this.map={},e instanceof d?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function p(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function h(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function v(e){var t=new FileReader,n=h(t);return t.readAsArrayBuffer(e),n}function g(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:o&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&i&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=g(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,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):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=p(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(){if(this._bodyArrayBuffer)return p(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(i)return this.blob().then(v);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,r,i,o=p(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,n=h(t=new FileReader),i=(r=/charset=([A-Za-z0-9_-]+)/.exec(e.type))?r[1]:"utf-8",t.readAsText(e,i),n;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)},o&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(e,t){e=c(e),t=l(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},d.prototype.delete=function(e){delete this.map[c(e)]},d.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},d.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},d.prototype.set=function(e,t){this.map[c(e)]=l(t)},d.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},d.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),f(e)},d.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),f(e)},d.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),f(e)},r&&(d.prototype[Symbol.iterator]=d.prototype.entries);var y=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function b(e,n){if(!(this instanceof b))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,i,o=(n=n||{}).body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,n.headers||(this.headers=new d(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=n.credentials||this.credentials||"same-origin",!n.headers&&this.headers||(this.headers=new d(n.headers)),this.method=(i=(r=n.method||this.method||"GET").toUpperCase(),y.indexOf(i)>-1?i:r),this.mode=n.mode||this.mode||null,this.signal=n.signal||this.signal||function(){if("AbortController"in t)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==n.cache&&"no-cache"!==n.cache)){var a=/([?&])_=[^&]*/;a.test(this.url)?this.url=this.url.replace(a,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function x(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 w(e,t){if(!(this instanceof w))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new d(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},m.call(b.prototype),m.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var _=[301,302,303,307,308];w.redirect=function(e,t){if(-1===_.indexOf(t))throw new RangeError("Invalid status code");return new w(null,{status:t,headers:{location:e}})};var S=t.DOMException;try{new S}catch(e){(S=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),S.prototype.constructor=S}function O(e,n){return new Promise((function(r,o){var s=new b(e,n);if(s.signal&&s.signal.aborted)return o(new S("Aborted","AbortError"));var u=new XMLHttpRequest;function f(){u.abort()}if(u.onload=function(){var e,t,n={statusText:u.statusText,headers:(e=u.getAllResponseHeaders()||"",t=new d,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();try{t.append(r,i)}catch(e){console.warn("Response "+e.message)}}})),t)};0===s.url.indexOf("file://")&&(u.status<200||u.status>599)?n.status=200:n.status=u.status,n.url="responseURL"in u?u.responseURL:n.headers.get("X-Request-URL");var i="response"in u?u.response:u.responseText;setTimeout((function(){r(new w(i,n))}),0)},u.onerror=function(){setTimeout((function(){o(new TypeError("Network request failed"))}),0)},u.ontimeout=function(){setTimeout((function(){o(new TypeError("Network request timed out"))}),0)},u.onabort=function(){setTimeout((function(){o(new S("Aborted","AbortError"))}),0)},u.open(s.method,function(e){try{return""===e&&t.location.href?t.location.href:e}catch(t){return e}}(s.url),!0),"include"===s.credentials?u.withCredentials=!0:"omit"===s.credentials&&(u.withCredentials=!1),"responseType"in u&&(i?u.responseType="blob":a&&(u.responseType="arraybuffer")),n&&"object"==I(n.headers)&&!(n.headers instanceof d||t.Headers&&n.headers instanceof t.Headers)){var p=[];Object.getOwnPropertyNames(n.headers).forEach((function(e){p.push(c(e)),u.setRequestHeader(e,l(n.headers[e]))})),s.headers.forEach((function(e,t){-1===p.indexOf(t)&&u.setRequestHeader(t,e)}))}else s.headers.forEach((function(e,t){u.setRequestHeader(t,e)}));s.signal&&(s.signal.addEventListener("abort",f),u.onreadystatechange=function(){4===u.readyState&&s.signal.removeEventListener("abort",f)}),u.send(void 0===s._bodyInit?null:s._bodyInit)}))}O.polyfill=!0,t.fetch||(t.fetch=O,t.Headers=d,t.Request=b,t.Response=w)}).call(this,n(96))},function(e,t,n){(function(e){!function(e){var t=function(){try{return!!Symbol.iterator}catch(e){return!1}}(),n=function(e){var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t&&(n[Symbol.iterator]=function(){return n}),n},r=function(e){return encodeURIComponent(e).replace(/%20/g,"+")},i=function(e){return decodeURIComponent(String(e).replace(/\+/g," "))};(function(){try{var t=e.URLSearchParams;return"a=1"===new t("?a=1").toString()&&"function"==typeof t.prototype.set&&"function"==typeof t.prototype.entries}catch(e){return!1}})()||function(){var i=function(e){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var t=I(e);if("undefined"===t);else if("string"===t)""!==e&&this._fromString(e);else if(e instanceof i){var n=this;e.forEach((function(e,t){n.append(t,e)}))}else{if(null===e||"object"!==t)throw new TypeError("Unsupported input's type for URLSearchParams");if("[object Array]"===Object.prototype.toString.call(e))for(var r=0;r<e.length;r++){var o=e[r];if("[object Array]"!==Object.prototype.toString.call(o)&&2===o.length)throw new TypeError("Expected [string, any] as entry at index "+r+" of URLSearchParams's input");this.append(o[0],o[1])}else for(var a in e)e.hasOwnProperty(a)&&this.append(a,e[a])}},o=i.prototype;o.append=function(e,t){e in this._entries?this._entries[e].push(String(t)):this._entries[e]=[String(t)]},o.delete=function(e){delete this._entries[e]},o.get=function(e){return e in this._entries?this._entries[e][0]:null},o.getAll=function(e){return e in this._entries?this._entries[e].slice(0):[]},o.has=function(e){return e in this._entries},o.set=function(e,t){this._entries[e]=[String(t)]},o.forEach=function(e,t){var n;for(var r in this._entries)if(this._entries.hasOwnProperty(r)){n=this._entries[r];for(var i=0;i<n.length;i++)e.call(t,n[i],r,this)}},o.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),n(e)},o.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),n(e)},o.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),n(e)},t&&(o[Symbol.iterator]=o.entries),o.toString=function(){var e=[];return this.forEach((function(t,n){e.push(r(n)+"="+r(t))})),e.join("&")},e.URLSearchParams=i}();var o=e.URLSearchParams.prototype;"function"!=typeof o.sort&&(o.sort=function(){var e=this,t=[];this.forEach((function(n,r){t.push([r,n]),e._entries||e.delete(r)})),t.sort((function(e,t){return e[0]<t[0]?-1:e[0]>t[0]?1:0})),e._entries&&(e._entries={});for(var n=0;n<t.length;n++)this.append(t[n][0],t[n][1])}),"function"!=typeof o._fromString&&Object.defineProperty(o,"_fromString",{enumerable:!1,configurable:!1,writable:!1,value:function(e){if(this._entries)this._entries={};else{var t=[];this.forEach((function(e,n){t.push(n)}));for(var n=0;n<t.length;n++)this.delete(t[n])}var r,o=(e=e.replace(/^\?/,"")).split("&");for(n=0;n<o.length;n++)r=o[n].split("="),this.append(i(r[0]),r.length>1?i(r[1]):"")}})}(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this),function(e){if(function(){try{var t=new e.URL("b","http://a");return t.pathname="c d","http://a/c%20d"===t.href&&t.searchParams}catch(e){return!1}}()||function(){var t=e.URL,n=function(t,n){"string"!=typeof t&&(t=String(t)),n&&"string"!=typeof n&&(n=String(n));var r,i=document;if(n&&(void 0===e.location||n!==e.location.href)){n=n.toLowerCase(),(r=(i=document.implementation.createHTMLDocument("")).createElement("base")).href=n,i.head.appendChild(r);try{if(0!==r.href.indexOf(n))throw new Error(r.href)}catch(e){throw new Error("URL unable to set base "+n+" due to "+e)}}var o=i.createElement("a");o.href=t,r&&(i.body.appendChild(o),o.href=o.href);var a=i.createElement("input");if(a.type="url",a.value=t,":"===o.protocol||!/:/.test(o.href)||!a.checkValidity()&&!n)throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:o});var s=new e.URLSearchParams(this.search),u=!0,c=!0,l=this;["append","delete","set"].forEach((function(e){var t=s[e];s[e]=function(){t.apply(s,arguments),u&&(c=!1,l.search=s.toString(),c=!0)}})),Object.defineProperty(this,"searchParams",{value:s,enumerable:!0});var f=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==f&&(f=this.search,c&&(u=!1,this.searchParams._fromString(this.search),u=!0))}})},r=n.prototype;["hash","host","hostname","port","protocol"].forEach((function(e){!function(e){Object.defineProperty(r,e,{get:function(){return this._anchorElement[e]},set:function(t){this._anchorElement[e]=t},enumerable:!0})}(e)})),Object.defineProperty(r,"search",{get:function(){return this._anchorElement.search},set:function(e){this._anchorElement.search=e,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(r,{toString:{get:function(){var e=this;return function(){return e.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(e){this._anchorElement.href=e,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(e){this._anchorElement.pathname=e},enumerable:!0},origin:{get:function(){var e={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],t=this._anchorElement.port!=e&&""!==this._anchorElement.port;return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(t?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(e){},enumerable:!0},username:{get:function(){return""},set:function(e){},enumerable:!0}}),n.createObjectURL=function(e){return t.createObjectURL.apply(t,arguments)},n.revokeObjectURL=function(e){return t.revokeObjectURL.apply(t,arguments)},e.URL=n}(),void 0!==e.location&&!("origin"in e.location)){var t=function(){return e.location.protocol+"//"+e.location.hostname+(e.location.port?":"+e.location.port:"")};try{Object.defineProperty(e.location,"origin",{get:t,enumerable:!0})}catch(n){setInterval((function(){e.location.origin=t()}),100)}}}(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this)}).call(this,n(96))},function(e,t,n){"use strict"; /** * @license React * 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=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.iterator,v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||v}function b(){}function x(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||v}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=I(e)&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=y.prototype;var w=x.prototype=new b;w.constructor=x,g(w,y.prototype),w.isPureReactComponent=!0;var _=Array.isArray,S=Object.prototype.hasOwnProperty,O={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,n){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,i)&&!k.hasOwnProperty(i)&&(o[i]=t[i]);var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){for(var c=Array(u),l=0;l<u;l++)c[l]=arguments[l+2];o.children=c}if(e&&e.defaultProps)for(i in u=e.defaultProps)void 0===o[i]&&(o[i]=u[i]);return{$$typeof:r,type:e,key:a,ref:s,props:o,_owner:O.current}}function j(e){return"object"==I(e)&&null!==e&&e.$$typeof===r}var T=/\/+/g;function C(e,t){return"object"==I(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 A(e,t,n,o,a){var s=I(e);"undefined"!==s&&"boolean"!==s||(e=null);var u=!1;if(null===e)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case r:case i:u=!0}}if(u)return a=a(u=e),e=""===o?"."+C(u,0):o,_(a)?(n="",null!=e&&(n=e.replace(T,"$&/")+"/"),A(a,t,n,"",(function(e){return e}))):null!=a&&(j(a)&&(a=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||u&&u.key===a.key?"":(""+a.key).replace(T,"$&/")+"/")+e)),t.push(a)),1;if(u=0,o=""===o?".":o+":",_(e))for(var c=0;c<e.length;c++){var l=o+C(s=e[c],c);u+=A(s,t,n,l,a)}else if("function"==typeof(l=function(e){return null===e||"object"!=I(e)?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e)))for(e=l.call(e),c=0;!(s=e.next()).done;)u+=A(s=s.value,t,n,l=o+C(s,c++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return u}function P(e,t,n){if(null==e)return e;var r=[],i=0;return A(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function M(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var R={current:null},D={transition:null},L={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:D,ReactCurrentOwner:O};function N(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:P,forEach:function(e,t,n){P(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return P(e,(function(){t++})),t},toArray:function(e){return P(e,(function(e){return e}))||[]},only:function(e){if(!j(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=o,t.Profiler=s,t.PureComponent=x,t.StrictMode=a,t.Suspense=f,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,t.act=N,t.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=g({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=O.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)S.call(t,c)&&!k.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){u=Array(c);for(var l=0;l<c;l++)u[l]=arguments[l+2];i.children=u}return{$$typeof:r,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:c,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=j,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:M}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=D.transition;D.transition={};try{e()}finally{D.transition=t}},t.unstable_act=N,t.useCallback=function(e,t){return R.current.useCallback(e,t)},t.useContext=function(e){return R.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return R.current.useDeferredValue(e)},t.useEffect=function(e,t){return R.current.useEffect(e,t)},t.useId=function(){return R.current.useId()},t.useImperativeHandle=function(e,t,n){return R.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return R.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return R.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return R.current.useMemo(e,t)},t.useReducer=function(e,t,n){return R.current.useReducer(e,t,n)},t.useRef=function(e){return R.current.useRef(e)},t.useState=function(e){return R.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return R.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return R.current.useTransition()},t.version="18.3.1"},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i,o,a,s){if(!e){var u;if(void 0===t)u=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],l=0;(u=new Error(t.replace(/%s/g,(function(){return c[l++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(e,t,n){"use strict"; /** * @license React * 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(948);function o(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 a=new Set,s={};function u(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var l=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),f=Object.prototype.hasOwnProperty,d=/^[: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]*$/,p={},h={};function v(e,t,n,r,i,o,a){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,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var m=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=g.hasOwnProperty(t)?g[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(I(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!!f.call(h,e)||!f.call(p,e)&&(d.test(e)?h[e]=!0:(p[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))))}"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(m,y);g[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(m,y);g[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(m,y);g[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),_=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),j=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),M=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var R=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var D=Symbol.iterator;function L(e){return null===e||"object"!=I(e)?null:"function"==typeof(e=D&&e[D]||e["@@iterator"])?e:null}var N,F=Object.assign;function B(e){if(void 0===N)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);N=t&&t[1]||""}return"\n"+N+e}var U=!1;function z(e,t){if(!e||U)return"";U=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==("undefined"==typeof Reflect?"undefined":I(Reflect))&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var u="\n"+i[a].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=a&&0<=s);break}}}finally{U=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?B(e):""}function V(e){switch(e.tag){case 5:return B(e.type);case 16:return B("Lazy");case 13:return B("Suspense");case 19:return B("SuspenseList");case 0:case 2:case 15:return z(e.type,!1);case 11:return z(e.type.render,!1);case 1:return z(e.type,!0);default:return""}}function H(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return function e(t){if(null==t)return null;if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case S:return"Fragment";case _:return"Portal";case k:return"Profiler";case O:return"StrictMode";case C:return"Suspense";case A:return"SuspenseList"}if("object"==I(t))switch(t.$$typeof){case j:return(t.displayName||"Context")+".Consumer";case E:return(t._context.displayName||"Context")+".Provider";case T:var n=t.render;return(t=t.displayName)||(t=""!==(t=n.displayName||n.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case P:return null!==(n=t.displayName||null)?n:e(t.type)||"Memo";case M:n=t._payload,t=t._init;try{return e(t(n))}catch(e){}}return null}(t);case 8:return t===O?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function W(e){switch(I(e)){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function G(e){e._valueTracker||(e._valueTracker=function(e){var t=q(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 Y(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function K(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 $(e,t){var n=t.checked;return F({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=W(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 Q(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function Z(e,t){Q(e,t);var n=W(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")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(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 ee(e,t,n){"number"===t&&K(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(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=""+W(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 re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return F({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:W(n)}}function oe(e,t){var n=W(t.value),r=W(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 ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(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 ue(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,le=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var de={animationIterationCount:!0,aspectRatio:!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},pe=["Webkit","ms","Moz","O"];function he(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||de.hasOwnProperty(e)&&de[e]?(""+t).trim():t+"px"}function ve(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=he(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(de).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),de[t]=de[e]}))}));var ge=F({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 me(e,t){if(t){if(ge[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!=I(t.dangerouslySetInnerHTML)||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!=I(t.style))throw Error(o(62))}}function ye(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 be=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var we=null,_e=null,Se=null;function Oe(e){if(e=di(e)){if("function"!=typeof we)throw Error(o(280));var t=e.stateNode;t&&(t=hi(t),we(e.stateNode,e.type,t))}}function ke(e){_e?Se?Se.push(e):Se=[e]:_e=e}function Ee(){if(_e){var e=_e,t=Se;if(Se=_e=null,Oe(e),t)for(e=0;e<t.length;e++)Oe(t[e])}}function je(e,t){return e(t)}function Te(){}var Ce=!1;function Ae(e,t,n){if(Ce)return e(t,n);Ce=!0;try{return je(e,t,n)}finally{Ce=!1,(null!==_e||null!==Se)&&(Te(),Ee())}}function Pe(e,t){var n=e.stateNode;if(null===n)return null;var r=hi(n);if(null===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(o(231,t,I(n)));return n}var Me=!1;if(l)try{var Ie={};Object.defineProperty(Ie,"passive",{get:function(){Me=!0}}),window.addEventListener("test",Ie,Ie),window.removeEventListener("test",Ie,Ie)}catch(e){Me=!1}function Re(e,t,n,r,i,o,a,s,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var De=!1,Le=null,Ne=!1,Fe=null,Be={onError:function(e){De=!0,Le=e}};function Ue(e,t,n,r,i,o,a,s,u){De=!1,Le=null,Re.apply(Be,arguments)}function ze(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ve(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 He(e){if(ze(e)!==e)throw Error(o(188))}function We(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=ze(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return He(i),e;if(a===r)return He(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,u=i.child;u;){if(u===n){s=!0,n=i,r=a;break}if(u===r){s=!0,r=i,n=a;break}u=u.sibling}if(!s){for(u=a.child;u;){if(u===n){s=!0,n=a,r=i;break}if(u===r){s=!0,r=a,n=i;break}u=u.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?function e(t){if(5===t.tag||6===t.tag)return t;for(t=t.child;null!==t;){var n=e(t);if(null!==n)return n;t=t.sibling}return null}(e):null}var qe=i.unstable_scheduleCallback,Ge=i.unstable_cancelCallback,Ye=i.unstable_shouldYield,Ke=i.unstable_requestPaint,$e=i.unstable_now,Xe=i.unstable_getCurrentPriorityLevel,Qe=i.unstable_ImmediatePriority,Ze=i.unstable_UserBlockingPriority,Je=i.unstable_NormalPriority,et=i.unstable_LowPriority,tt=i.unstable_IdlePriority,nt=null,rt=null,it=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(ot(e)/at|0)|0},ot=Math.log,at=Math.LN2,st=64,ut=4194304;function ct(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function lt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=ct(s):0!=(o&=a)&&(r=ct(o))}else 0!=(a=n&~i)?r=ct(a):0!==o&&(r=ct(o));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!=(4194240&o)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-it(t)),r|=e[n],t&=~i;return r}function ft(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:default:return-1}}function dt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function pt(){var e=st;return 0==(4194240&(st<<=1))&&(st=64),e}function ht(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-it(t)]=n}function gt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var mt=0;function yt(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var bt,xt,wt,_t,St,Ot=!1,kt=[],Et=null,jt=null,Tt=null,Ct=new Map,At=new Map,Pt=[],Mt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function It(e,t){switch(e){case"focusin":case"focusout":Et=null;break;case"dragenter":case"dragleave":jt=null;break;case"mouseover":case"mouseout":Tt=null;break;case"pointerover":case"pointerout":Ct.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":At.delete(t.pointerId)}}function Rt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&null!==(t=di(t))&&xt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Dt(e){var t=fi(e.target);if(null!==t){var n=ze(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ve(n)))return e.blockedOn=t,void St(e.priority,(function(){wt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Lt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Yt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=di(n))&&xt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);be=r,n.target.dispatchEvent(r),be=null,t.shift()}return!0}function Nt(e,t,n){Lt(e)&&n.delete(t)}function Ft(){Ot=!1,null!==Et&&Lt(Et)&&(Et=null),null!==jt&&Lt(jt)&&(jt=null),null!==Tt&&Lt(Tt)&&(Tt=null),Ct.forEach(Nt),At.forEach(Nt)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,Ot||(Ot=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Ft)))}function Ut(e){function t(t){return Bt(t,e)}if(0<kt.length){Bt(kt[0],e);for(var n=1;n<kt.length;n++){var r=kt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Et&&Bt(Et,e),null!==jt&&Bt(jt,e),null!==Tt&&Bt(Tt,e),Ct.forEach(t),At.forEach(t),n=0;n<Pt.length;n++)(r=Pt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Pt.length&&null===(n=Pt[0]).blockedOn;)Dt(n),null===n.blockedOn&&Pt.shift()}var zt=x.ReactCurrentBatchConfig,Vt=!0;function Ht(e,t,n,r){var i=mt,o=zt.transition;zt.transition=null;try{mt=1,qt(e,t,n,r)}finally{mt=i,zt.transition=o}}function Wt(e,t,n,r){var i=mt,o=zt.transition;zt.transition=null;try{mt=4,qt(e,t,n,r)}finally{mt=i,zt.transition=o}}function qt(e,t,n,r){if(Vt){var i=Yt(e,t,n,r);if(null===i)Nr(e,t,r,Gt,n),It(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Et=Rt(Et,e,t,n,r,i),!0;case"dragenter":return jt=Rt(jt,e,t,n,r,i),!0;case"mouseover":return Tt=Rt(Tt,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Ct.set(o,Rt(Ct.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,At.set(o,Rt(At.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(It(e,r),4&t&&-1<Mt.indexOf(e)){for(;null!==i;){var o=di(i);if(null!==o&&bt(o),null===(o=Yt(e,t,n,r))&&Nr(e,t,r,Gt,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Nr(e,t,r,null,n)}}var Gt=null;function Yt(e,t,n,r){if(Gt=null,null!==(e=fi(e=xe(r))))if(null===(t=ze(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ve(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function Kt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xe()){case Qe:return 1;case Ze:return 4;case Je:case et:return 16;case tt:return 536870912;default:return 16}default:return 16}}var $t=null,Xt=null,Qt=null;function Zt(){if(Qt)return Qt;var e,t,n=Xt,r=n.length,i="value"in $t?$t.value:$t.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 Qt=i.slice(e,1<t?1-t:void 0)}function Jt(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}function en(){return!0}function tn(){return!1}function nn(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?en:tn,this.isPropagationStopped=tn,this}return F(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=en)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=en)},persist:function(){},isPersistent:en}),t}var rn,on,an,sn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=nn(sn),cn=F({},sn,{view:0,detail:0}),ln=nn(cn),fn=F({},cn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_n,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==an&&(an&&"mousemove"===e.type?(rn=e.screenX-an.screenX,on=e.screenY-an.screenY):on=rn=0,an=e),rn)},movementY:function(e){return"movementY"in e?e.movementY:on}}),dn=nn(fn),pn=nn(F({},fn,{dataTransfer:0})),hn=nn(F({},cn,{relatedTarget:0})),vn=nn(F({},sn,{animationName:0,elapsedTime:0,pseudoElement:0})),gn=nn(F({},sn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),mn=nn(F({},sn,{data:0})),yn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bn={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"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function _n(){return wn}var Sn=nn(F({},cn,{key:function(e){if(e.key){var t=yn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Jt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?bn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_n,charCode:function(e){return"keypress"===e.type?Jt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Jt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),On=nn(F({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),kn=nn(F({},cn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_n})),En=nn(F({},sn,{propertyName:0,elapsedTime:0,pseudoElement:0})),jn=nn(F({},fn,{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:0,deltaMode:0})),Tn=[9,13,27,32],Cn=l&&"CompositionEvent"in window,An=null;l&&"documentMode"in document&&(An=document.documentMode);var Pn=l&&"TextEvent"in window&&!An,Mn=l&&(!Cn||An&&8<An&&11>=An),In=String.fromCharCode(32),Rn=!1;function Dn(e,t){switch(e){case"keyup":return-1!==Tn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ln(e){return"object"==I(e=e.detail)&&"data"in e?e.data:null}var Nn=!1,Fn={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 Bn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Fn[e.type]:"textarea"===t}function Un(e,t,n,r){ke(r),0<(t=Br(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var zn=null,Vn=null;function Hn(e){Pr(e,0)}function Wn(e){if(Y(pi(e)))return e}function qn(e,t){if("change"===e)return t}var Gn=!1;if(l){var Yn;if(l){var Kn="oninput"in document;if(!Kn){var $n=document.createElement("div");$n.setAttribute("oninput","return;"),Kn="function"==typeof $n.oninput}Yn=Kn}else Yn=!1;Gn=Yn&&(!document.documentMode||9<document.documentMode)}function Xn(){zn&&(zn.detachEvent("onpropertychange",Qn),Vn=zn=null)}function Qn(e){if("value"===e.propertyName&&Wn(Vn)){var t=[];Un(t,Vn,e,xe(e)),Ae(Hn,t)}}function Zn(e,t,n){"focusin"===e?(Xn(),Vn=n,(zn=t).attachEvent("onpropertychange",Qn)):"focusout"===e&&Xn()}function Jn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Wn(Vn)}function er(e,t){if("click"===e)return Wn(t)}function tr(e,t){if("input"===e||"change"===e)return Wn(t)}var nr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function rr(e,t){if(nr(e,t))return!0;if("object"!=I(e)||null===e||"object"!=I(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++){var i=n[r];if(!f.call(t,i)||!nr(e[i],t[i]))return!1}return!0}function ir(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function or(e,t){var n,r=ir(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=ir(r)}}function ar(){for(var e=window,t=K();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=K((e=t.contentWindow).document)}return t}function sr(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 ur=l&&"documentMode"in document&&11>=document.documentMode,cr=null,lr=null,fr=null,dr=!1;function pr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;dr||null==cr||cr!==K(r)||(r="selectionStart"in(r=cr)&&sr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},fr&&rr(fr,r)||(fr=r,0<(r=Br(lr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=cr)))}function hr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var vr={animationend:hr("Animation","AnimationEnd"),animationiteration:hr("Animation","AnimationIteration"),animationstart:hr("Animation","AnimationStart"),transitionend:hr("Transition","TransitionEnd")},gr={},mr={};function yr(e){if(gr[e])return gr[e];if(!vr[e])return e;var t,n=vr[e];for(t in n)if(n.hasOwnProperty(t)&&t in mr)return gr[e]=n[t];return e}l&&(mr=document.createElement("div").style,"AnimationEvent"in window||(delete vr.animationend.animation,delete vr.animationiteration.animation,delete vr.animationstart.animation),"TransitionEvent"in window||delete vr.transitionend.transition);var br=yr("animationend"),xr=yr("animationiteration"),wr=yr("animationstart"),_r=yr("transitionend"),Sr=new Map,Or="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function kr(e,t){Sr.set(e,t),u(t,[e])}for(var Er=0;Er<Or.length;Er++){var jr=Or[Er];kr(jr.toLowerCase(),"on"+(jr[0].toUpperCase()+jr.slice(1)))}kr(br,"onAnimationEnd"),kr(xr,"onAnimationIteration"),kr(wr,"onAnimationStart"),kr("dblclick","onDoubleClick"),kr("focusin","onFocus"),kr("focusout","onBlur"),kr(_r,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Tr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Cr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Tr));function Ar(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,s,u,c){if(Ue.apply(this,arguments),De){if(!De)throw Error(o(198));var l=Le;De=!1,Le=null,Ne||(Ne=!0,Fe=l)}}(r,t,void 0,e),e.currentTarget=null}function Pr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],u=s.instance,c=s.currentTarget;if(s=s.listener,u!==o&&i.isPropagationStopped())break e;Ar(i,s,c),o=u}else for(a=0;a<r.length;a++){if(u=(s=r[a]).instance,c=s.currentTarget,s=s.listener,u!==o&&i.isPropagationStopped())break e;Ar(i,s,c),o=u}}}if(Ne)throw e=Fe,Ne=!1,Fe=null,e}function Mr(e,t){var n=t[ui];void 0===n&&(n=t[ui]=new Set);var r=e+"__bubble";n.has(r)||(Lr(t,e,2,!1),n.add(r))}function Ir(e,t,n){var r=0;t&&(r|=4),Lr(n,e,r,t)}var Rr="_reactListening"+Math.random().toString(36).slice(2);function Dr(e){if(!e[Rr]){e[Rr]=!0,a.forEach((function(t){"selectionchange"!==t&&(Cr.has(t)||Ir(t,!1,e),Ir(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Rr]||(t[Rr]=!0,Ir("selectionchange",!1,t))}}function Lr(e,t,n,r){switch(Kt(t)){case 1:var i=Ht;break;case 4:i=Wt;break;default:i=qt}n=i.bind(null,t,n,e),i=void 0,!Me||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Nr(e,t,n,r,i){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var u=a.tag;if((3===u||4===u)&&((u=a.stateNode.containerInfo)===i||8===u.nodeType&&u.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=fi(s)))return;if(5===(u=a.tag)||6===u){r=o=a;continue e}s=s.parentNode}}r=r.return}Ae((function(){var r=o,i=xe(n),a=[];e:{var s=Sr.get(e);if(void 0!==s){var u=un,c=e;switch(e){case"keypress":if(0===Jt(n))break e;case"keydown":case"keyup":u=Sn;break;case"focusin":c="focus",u=hn;break;case"focusout":c="blur",u=hn;break;case"beforeblur":case"afterblur":u=hn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=dn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=pn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=kn;break;case br:case xr:case wr:u=vn;break;case _r:u=En;break;case"scroll":u=ln;break;case"wheel":u=jn;break;case"copy":case"cut":case"paste":u=gn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=On}var l=0!=(4&t),f=!l&&"scroll"===e,d=l?null!==s?s+"Capture":null:s;l=[];for(var p,h=r;null!==h;){var v=(p=h).stateNode;if(5===p.tag&&null!==v&&(p=v,null!==d&&null!=(v=Pe(h,d))&&l.push(Fr(h,v,p))),f)break;h=h.return}0<l.length&&(s=new u(s,c,null,n,i),a.push({event:s,listeners:l}))}}if(0==(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===be||!(c=n.relatedTarget||n.fromElement)||!fi(c)&&!c[si])&&(u||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,u?(u=r,null!==(c=(c=n.relatedTarget||n.toElement)?fi(c):null)&&(c!==(f=ze(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(u=null,c=r),u!==c)){if(l=dn,v="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(l=On,v="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==u?s:pi(u),p=null==c?s:pi(c),(s=new l(v,h+"leave",u,n,i)).target=f,s.relatedTarget=p,v=null,fi(i)===r&&((l=new l(d,h+"enter",c,n,i)).target=p,l.relatedTarget=f,v=l),f=v,u&&c)e:{for(d=c,h=0,p=l=u;p;p=Ur(p))h++;for(p=0,v=d;v;v=Ur(v))p++;for(;0<h-p;)l=Ur(l),h--;for(;0<p-h;)d=Ur(d),p--;for(;h--;){if(l===d||null!==d&&l===d.alternate)break e;l=Ur(l),d=Ur(d)}l=null}else l=null;null!==u&&zr(a,s,u,l,!1),null!==c&&null!==f&&zr(a,f,c,l,!0)}if("select"===(u=(s=r?pi(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===u&&"file"===s.type)var g=qn;else if(Bn(s))if(Gn)g=tr;else{g=Jn;var m=Zn}else(u=s.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=er);switch(g&&(g=g(e,r))?Un(a,g,n,i):(m&&m(e,s,r),"focusout"===e&&(m=s._wrapperState)&&m.controlled&&"number"===s.type&&ee(s,"number",s.value)),m=r?pi(r):window,e){case"focusin":(Bn(m)||"true"===m.contentEditable)&&(cr=m,lr=r,fr=null);break;case"focusout":fr=lr=cr=null;break;case"mousedown":dr=!0;break;case"contextmenu":case"mouseup":case"dragend":dr=!1,pr(a,n,i);break;case"selectionchange":if(ur)break;case"keydown":case"keyup":pr(a,n,i)}var y;if(Cn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Nn?Dn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Mn&&"ko"!==n.locale&&(Nn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Nn&&(y=Zt()):(Xt="value"in($t=i)?$t.value:$t.textContent,Nn=!0)),0<(m=Br(r,b)).length&&(b=new mn(b,e,null,n,i),a.push({event:b,listeners:m}),y?b.data=y:null!==(y=Ln(n))&&(b.data=y))),(y=Pn?function(e,t){switch(e){case"compositionend":return Ln(t);case"keypress":return 32!==t.which?null:(Rn=!0,In);case"textInput":return(e=t.data)===In&&Rn?null:e;default:return null}}(e,n):function(e,t){if(Nn)return"compositionend"===e||!Cn&&Dn(e,t)?(e=Zt(),Qt=Xt=$t=null,Nn=!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 Mn&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))&&0<(r=Br(r,"onBeforeInput")).length&&(i=new mn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y)}Pr(a,t)}))}function Fr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Br(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Pe(e,n))&&r.unshift(Fr(e,o,i)),null!=(o=Pe(e,t))&&r.push(Fr(e,o,i))),e=e.return}return r}function Ur(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function zr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,u=s.alternate,c=s.stateNode;if(null!==u&&u===r)break;5===s.tag&&null!==c&&(s=c,i?null!=(u=Pe(n,o))&&a.unshift(Fr(n,u,s)):i||null!=(u=Pe(n,o))&&a.push(Fr(n,u,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Vr=/\r\n?/g,Hr=/\u0000|\uFFFD/g;function Wr(e){return("string"==typeof e?e:""+e).replace(Vr,"\n").replace(Hr,"")}function qr(e,t,n){if(t=Wr(t),Wr(e)!==t&&n)throw Error(o(425))}function Gr(){}var Yr=null,Kr=null;function $r(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==I(t.dangerouslySetInnerHTML)&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Xr="function"==typeof setTimeout?setTimeout:void 0,Qr="function"==typeof clearTimeout?clearTimeout:void 0,Zr="function"==typeof Promise?Promise:void 0,Jr="function"==typeof queueMicrotask?queueMicrotask:void 0!==Zr?function(e){return Zr.resolve(null).then(e).catch(ei)}:Xr;function ei(e){setTimeout((function(){throw e}))}function ti(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void Ut(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Ut(t)}function ni(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ri(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var ii=Math.random().toString(36).slice(2),oi="__reactFiber$"+ii,ai="__reactProps$"+ii,si="__reactContainer$"+ii,ui="__reactEvents$"+ii,ci="__reactListeners$"+ii,li="__reactHandles$"+ii;function fi(e){var t=e[oi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[si]||n[oi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ri(e);null!==e;){if(n=e[oi])return n;e=ri(e)}return t}n=(e=n).parentNode}return null}function di(e){return!(e=e[oi]||e[si])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function pi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function hi(e){return e[ai]||null}var vi=[],gi=-1;function mi(e){return{current:e}}function yi(e){0>gi||(e.current=vi[gi],vi[gi]=null,gi--)}function bi(e,t){gi++,vi[gi]=e.current,e.current=t}var xi={},wi=mi(xi),_i=mi(!1),Si=xi;function Oi(e,t){var n=e.type.contextTypes;if(!n)return xi;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 ki(e){return null!=e.childContextTypes}function Ei(){yi(_i),yi(wi)}function ji(e,t,n){if(wi.current!==xi)throw Error(o(168));bi(wi,t),bi(_i,n)}function Ti(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,H(e)||"Unknown",i));return F({},n,r)}function Ci(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||xi,Si=wi.current,bi(wi,e),bi(_i,_i.current),!0}function Ai(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Ti(e,t,Si),r.__reactInternalMemoizedMergedChildContext=e,yi(_i),yi(wi),bi(wi,e)):yi(_i),bi(_i,n)}var Pi=null,Mi=!1,Ii=!1;function Ri(e){null===Pi?Pi=[e]:Pi.push(e)}function Di(){if(!Ii&&null!==Pi){Ii=!0;var e=0,t=mt;try{var n=Pi;for(mt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Pi=null,Mi=!1}catch(t){throw null!==Pi&&(Pi=Pi.slice(e+1)),qe(Qe,Di),t}finally{mt=t,Ii=!1}}return null}var Li=[],Ni=0,Fi=null,Bi=0,Ui=[],zi=0,Vi=null,Hi=1,Wi="";function qi(e,t){Li[Ni++]=Bi,Li[Ni++]=Fi,Fi=e,Bi=t}function Gi(e,t,n){Ui[zi++]=Hi,Ui[zi++]=Wi,Ui[zi++]=Vi,Vi=e;var r=Hi;e=Wi;var i=32-it(r)-1;r&=~(1<<i),n+=1;var o=32-it(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Hi=1<<32-it(t)+i|n<<i|r,Wi=o+e}else Hi=1<<o|n<<i|r,Wi=e}function Yi(e){null!==e.return&&(qi(e,1),Gi(e,1,0))}function Ki(e){for(;e===Fi;)Fi=Li[--Ni],Li[Ni]=null,Bi=Li[--Ni],Li[Ni]=null;for(;e===Vi;)Vi=Ui[--zi],Ui[zi]=null,Wi=Ui[--zi],Ui[zi]=null,Hi=Ui[--zi],Ui[zi]=null}var $i=null,Xi=null,Qi=!1,Zi=null;function Ji(e,t){var n=bc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function eo(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,$i=e,Xi=ni(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,$i=e,Xi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Vi?{id:Hi,overflow:Wi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=bc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,$i=e,Xi=null,!0);default:return!1}}function to(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function no(e){if(Qi){var t=Xi;if(t){var n=t;if(!eo(e,t)){if(to(e))throw Error(o(418));t=ni(n.nextSibling);var r=$i;t&&eo(e,t)?Ji(r,n):(e.flags=-4097&e.flags|2,Qi=!1,$i=e)}}else{if(to(e))throw Error(o(418));e.flags=-4097&e.flags|2,Qi=!1,$i=e}}}function ro(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;$i=e}function io(e){if(e!==$i)return!1;if(!Qi)return ro(e),Qi=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!$r(e.type,e.memoizedProps)),t&&(t=Xi)){if(to(e))throw oo(),Error(o(418));for(;t;)Ji(e,t),t=ni(t.nextSibling)}if(ro(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Xi=ni(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Xi=null}}else Xi=$i?ni(e.stateNode.nextSibling):null;return!0}function oo(){for(var e=Xi;e;)e=ni(e.nextSibling)}function ao(){Xi=$i=null,Qi=!1}function so(e){null===Zi?Zi=[e]:Zi.push(e)}var uo=x.ReactCurrentBatchConfig;function co(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=I(e)){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:((t=function(e){var t=i.refs;null===e?delete t[a]:t[a]=e})._stringRef=a,t)}if("string"!=typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function lo(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function fo(e){return(0,e._init)(e._payload)}function po(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}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=wc(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=kc(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){var o=n.type;return o===S?f(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==I(o)&&null!==o&&o.$$typeof===M&&fo(o)===t.type)?((r=i(t,n.props)).ref=co(e,t,n),r.return=e,r):((r=_c(n.type,n.key,n.props,null,e.mode,r)).ref=co(e,t,n),r.return=e,r)}function l(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ec(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,o){return null===t||7!==t.tag?((t=Sc(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=kc(""+t,e.mode,n)).return=e,t;if("object"==I(t)&&null!==t){switch(t.$$typeof){case w:return(n=_c(t.type,t.key,t.props,null,e.mode,n)).ref=co(e,null,t),n.return=e,n;case _:return(t=Ec(t,e.mode,n)).return=e,t;case M:return d(e,(0,t._init)(t._payload),n)}if(te(t)||L(t))return(t=Sc(t,e.mode,n,null)).return=e,t;lo(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:u(e,t,""+n,r);if("object"==I(n)&&null!==n){switch(n.$$typeof){case w:return n.key===i?c(e,t,n,r):null;case _:return n.key===i?l(e,t,n,r):null;case M:return p(e,t,(i=n._init)(n._payload),r)}if(te(n)||L(n))return null!==i?null:f(e,t,n,r,null);lo(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,i);if("object"==I(r)&&null!==r){switch(r.$$typeof){case w:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case _:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i);case M:return h(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||L(r))return f(t,e=e.get(n)||null,r,i,null);lo(t,r)}return null}function v(i,o,s,u){for(var c=null,l=null,f=o,v=o=0,g=null;null!==f&&v<s.length;v++){f.index>v?(g=f,f=null):g=f.sibling;var m=p(i,f,s[v],u);if(null===m){null===f&&(f=g);break}e&&f&&null===m.alternate&&t(i,f),o=a(m,o,v),null===l?c=m:l.sibling=m,l=m,f=g}if(v===s.length)return n(i,f),Qi&&qi(i,v),c;if(null===f){for(;v<s.length;v++)null!==(f=d(i,s[v],u))&&(o=a(f,o,v),null===l?c=f:l.sibling=f,l=f);return Qi&&qi(i,v),c}for(f=r(i,f);v<s.length;v++)null!==(g=h(f,i,v,s[v],u))&&(e&&null!==g.alternate&&f.delete(null===g.key?v:g.key),o=a(g,o,v),null===l?c=g:l.sibling=g,l=g);return e&&f.forEach((function(e){return t(i,e)})),Qi&&qi(i,v),c}function g(i,s,u,c){var l=L(u);if("function"!=typeof l)throw Error(o(150));if(null==(u=l.call(u)))throw Error(o(151));for(var f=l=null,v=s,g=s=0,m=null,y=u.next();null!==v&&!y.done;g++,y=u.next()){v.index>g?(m=v,v=null):m=v.sibling;var b=p(i,v,y.value,c);if(null===b){null===v&&(v=m);break}e&&v&&null===b.alternate&&t(i,v),s=a(b,s,g),null===f?l=b:f.sibling=b,f=b,v=m}if(y.done)return n(i,v),Qi&&qi(i,g),l;if(null===v){for(;!y.done;g++,y=u.next())null!==(y=d(i,y.value,c))&&(s=a(y,s,g),null===f?l=y:f.sibling=y,f=y);return Qi&&qi(i,g),l}for(v=r(i,v);!y.done;g++,y=u.next())null!==(y=h(v,i,g,y.value,c))&&(e&&null!==y.alternate&&v.delete(null===y.key?g:y.key),s=a(y,s,g),null===f?l=y:f.sibling=y,f=y);return e&&v.forEach((function(e){return t(i,e)})),Qi&&qi(i,g),l}return function e(r,o,a,u){if("object"==I(a)&&null!==a&&a.type===S&&null===a.key&&(a=a.props.children),"object"==I(a)&&null!==a){switch(a.$$typeof){case w:e:{for(var c=a.key,l=o;null!==l;){if(l.key===c){if((c=a.type)===S){if(7===l.tag){n(r,l.sibling),(o=i(l,a.props.children)).return=r,r=o;break e}}else if(l.elementType===c||"object"==I(c)&&null!==c&&c.$$typeof===M&&fo(c)===l.type){n(r,l.sibling),(o=i(l,a.props)).ref=co(r,l,a),o.return=r,r=o;break e}n(r,l);break}t(r,l),l=l.sibling}a.type===S?((o=Sc(a.props.children,r.mode,u,a.key)).return=r,r=o):((u=_c(a.type,a.key,a.props,null,r.mode,u)).ref=co(r,o,a),u.return=r,r=u)}return s(r);case _:e:{for(l=a.key;null!==o;){if(o.key===l){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Ec(a,r.mode,u)).return=r,r=o}return s(r);case M:return e(r,o,(l=a._init)(a._payload),u)}if(te(a))return v(r,o,a,u);if(L(a))return g(r,o,a,u);lo(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=kc(a,r.mode,u)).return=r,r=o),s(r)):n(r,o)}}var ho=po(!0),vo=po(!1),go=mi(null),mo=null,yo=null,bo=null;function xo(){bo=yo=mo=null}function wo(e){var t=go.current;yi(go),e._currentValue=t}function _o(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function So(e,t){mo=e,bo=yo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(ds=!0),e.firstContext=null)}function Oo(e){var t=e._currentValue;if(bo!==e)if(e={context:e,memoizedValue:t,next:null},null===yo){if(null===mo)throw Error(o(308));yo=e,mo.dependencies={lanes:0,firstContext:e}}else yo=yo.next=e;return t}var ko=null;function Eo(e){null===ko?ko=[e]:ko.push(e)}function jo(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Eo(t)):(n.next=i.next,i.next=n),t.interleaved=n,To(e,r)}function To(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Co=!1;function Ao(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Po(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Mo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Io(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&gu)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,To(e,n)}return null===(i=r.interleaved)?(t.next=t,Eo(r)):(t.next=i.next,i.next=t),r.interleaved=t,To(e,n)}function Ro(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}function Do(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Lo(e,t,n,r){var i=e.updateQueue;Co=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var u=s,c=u.next;u.next=null,null===a?o=c:a.next=c,a=u;var l=e.alternate;null!==l&&(s=(l=l.updateQueue).lastBaseUpdate)!==a&&(null===s?l.firstBaseUpdate=c:s.next=c,l.lastBaseUpdate=u)}if(null!==o){var f=i.baseState;for(a=0,l=c=u=null,s=o;;){var d=s.lane,p=s.eventTime;if((r&d)===d){null!==l&&(l=l.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,v=s;switch(d=t,p=n,v.tag){case 1:if("function"==typeof(h=v.payload)){f=h.call(p,f,d);break e}f=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(d="function"==typeof(h=v.payload)?h.call(p,f,d):h))break e;f=F({},f,d);break e;case 2:Co=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(d=i.effects)?i.effects=[s]:d.push(s))}else p={eventTime:p,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===l?(c=l=p,u=f):l=l.next=p,a|=d;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(d=s).next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}if(null===l&&(u=f),i.baseState=u,i.firstBaseUpdate=c,i.lastBaseUpdate=l,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Ou|=a,e.lanes=a,e.memoizedState=f}}function No(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=n,"function"!=typeof i)throw Error(o(191,i));i.call(r)}}}var Fo={},Bo=mi(Fo),Uo=mi(Fo),zo=mi(Fo);function Vo(e){if(e===Fo)throw Error(o(174));return e}function Ho(e,t){switch(bi(zo,t),bi(Uo,e),bi(Bo,Fo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}yi(Bo),bi(Bo,t)}function Wo(){yi(Bo),yi(Uo),yi(zo)}function qo(e){Vo(zo.current);var t=Vo(Bo.current),n=ue(t,e.type);t!==n&&(bi(Uo,e),bi(Bo,n))}function Go(e){Uo.current===e&&(yi(Bo),yi(Uo))}var Yo=mi(0);function Ko(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))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}var $o=[];function Xo(){for(var e=0;e<$o.length;e++)$o[e]._workInProgressVersionPrimary=null;$o.length=0}var Qo=x.ReactCurrentDispatcher,Zo=x.ReactCurrentBatchConfig,Jo=0,ea=null,ta=null,na=null,ra=!1,ia=!1,oa=0,aa=0;function sa(){throw Error(o(321))}function ua(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!nr(e[n],t[n]))return!1;return!0}function ca(e,t,n,r,i,a){if(Jo=a,ea=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Qo.current=null===e||null===e.memoizedState?Ga:Ya,e=n(r,i),ia){a=0;do{if(ia=!1,oa=0,25<=a)throw Error(o(301));a+=1,na=ta=null,t.updateQueue=null,Qo.current=Ka,e=n(r,i)}while(ia)}if(Qo.current=qa,t=null!==ta&&null!==ta.next,Jo=0,na=ta=ea=null,ra=!1,t)throw Error(o(300));return e}function la(){var e=0!==oa;return oa=0,e}function fa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===na?ea.memoizedState=na=e:na=na.next=e,na}function da(){if(null===ta){var e=ea.alternate;e=null!==e?e.memoizedState:null}else e=ta.next;var t=null===na?ea.memoizedState:na.next;if(null!==t)na=t,ta=e;else{if(null===e)throw Error(o(310));e={memoizedState:(ta=e).memoizedState,baseState:ta.baseState,baseQueue:ta.baseQueue,queue:ta.queue,next:null},null===na?ea.memoizedState=na=e:na=na.next=e}return na}function pa(e,t){return"function"==typeof t?t(e):t}function ha(e){var t=da(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=ta,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var u=s=null,c=null,l=a;do{var f=l.lane;if((Jo&f)===f)null!==c&&(c=c.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),r=l.hasEagerState?l.eagerState:e(r,l.action);else{var d={lane:f,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};null===c?(u=c=d,s=r):c=c.next=d,ea.lanes|=f,Ou|=f}l=l.next}while(null!==l&&l!==a);null===c?s=r:c.next=u,nr(r,t.memoizedState)||(ds=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{a=i.lane,ea.lanes|=a,Ou|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function va(e){var t=da(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);nr(a,t.memoizedState)||(ds=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function ga(){}function ma(e,t){var n=ea,r=da(),i=t(),a=!nr(r.memoizedState,i);if(a&&(r.memoizedState=i,ds=!0),r=r.queue,Ca(xa.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==na&&1&na.memoizedState.tag){if(n.flags|=2048,Oa(9,ba.bind(null,n,r,i,t),void 0,null),null===mu)throw Error(o(349));0!=(30&Jo)||ya(n,t,i)}return i}function ya(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ea.updateQueue)?(t={lastEffect:null,stores:null},ea.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function ba(e,t,n,r){t.value=n,t.getSnapshot=r,wa(t)&&_a(e)}function xa(e,t,n){return n((function(){wa(t)&&_a(e)}))}function wa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!nr(e,n)}catch(e){return!0}}function _a(e){var t=To(e,1);null!==t&&Wu(t,e,1,-1)}function Sa(e){var t=fa();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:e},t.queue=e,e=e.dispatch=za.bind(null,ea,e),[t.memoizedState,e]}function Oa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ea.updateQueue)?(t={lastEffect:null,stores:null},ea.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 ka(){return da().memoizedState}function Ea(e,t,n,r){var i=fa();ea.flags|=e,i.memoizedState=Oa(1|t,n,void 0,void 0===r?null:r)}function ja(e,t,n,r){var i=da();r=void 0===r?null:r;var o=void 0;if(null!==ta){var a=ta.memoizedState;if(o=a.destroy,null!==r&&ua(r,a.deps))return void(i.memoizedState=Oa(t,n,o,r))}ea.flags|=e,i.memoizedState=Oa(1|t,n,o,r)}function Ta(e,t){return Ea(8390656,8,e,t)}function Ca(e,t){return ja(2048,8,e,t)}function Aa(e,t){return ja(4,2,e,t)}function Pa(e,t){return ja(4,4,e,t)}function Ma(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 Ia(e,t,n){return n=null!=n?n.concat([e]):null,ja(4,4,Ma.bind(null,t,e),n)}function Ra(){}function Da(e,t){var n=da();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ua(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function La(e,t){var n=da();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ua(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Na(e,t,n){return 0==(21&Jo)?(e.baseState&&(e.baseState=!1,ds=!0),e.memoizedState=n):(nr(n,t)||(n=pt(),ea.lanes|=n,Ou|=n,e.baseState=!0),t)}function Fa(e,t){var n=mt;mt=0!==n&&4>n?n:4,e(!0);var r=Zo.transition;Zo.transition={};try{e(!1),t()}finally{mt=n,Zo.transition=r}}function Ba(){return da().memoizedState}function Ua(e,t,n){var r=Hu(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Va(e)?Ha(t,n):null!==(n=jo(e,t,n,r))&&(Wu(n,e,r,Vu()),Wa(n,t,r))}function za(e,t,n){var r=Hu(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Va(e))Ha(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,nr(s,a)){var u=t.interleaved;return null===u?(i.next=i,Eo(t)):(i.next=u.next,u.next=i),void(t.interleaved=i)}}catch(e){}null!==(n=jo(e,t,i,r))&&(Wu(n,e,r,i=Vu()),Wa(n,t,r))}}function Va(e){var t=e.alternate;return e===ea||null!==t&&t===ea}function Ha(e,t){ia=ra=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Wa(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}var qa={readContext:Oo,useCallback:sa,useContext:sa,useEffect:sa,useImperativeHandle:sa,useInsertionEffect:sa,useLayoutEffect:sa,useMemo:sa,useReducer:sa,useRef:sa,useState:sa,useDebugValue:sa,useDeferredValue:sa,useTransition:sa,useMutableSource:sa,useSyncExternalStore:sa,useId:sa,unstable_isNewReconciler:!1},Ga={readContext:Oo,useCallback:function(e,t){return fa().memoizedState=[e,void 0===t?null:t],e},useContext:Oo,useEffect:Ta,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ea(4194308,4,Ma.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ea(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ea(4,2,e,t)},useMemo:function(e,t){var n=fa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=fa();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ua.bind(null,ea,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},fa().memoizedState=e},useState:Sa,useDebugValue:Ra,useDeferredValue:function(e){return fa().memoizedState=e},useTransition:function(){var e=Sa(!1),t=e[0];return e=Fa.bind(null,e[1]),fa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ea,i=fa();if(Qi){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===mu)throw Error(o(349));0!=(30&Jo)||ya(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Ta(xa.bind(null,r,a,e),[e]),r.flags|=2048,Oa(9,ba.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=fa(),t=mu.identifierPrefix;if(Qi){var n=Wi;t=":"+t+"R"+(n=(Hi&~(1<<32-it(Hi)-1)).toString(32)+n),0<(n=oa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=aa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Ya={readContext:Oo,useCallback:Da,useContext:Oo,useEffect:Ca,useImperativeHandle:Ia,useInsertionEffect:Aa,useLayoutEffect:Pa,useMemo:La,useReducer:ha,useRef:ka,useState:function(){return ha(pa)},useDebugValue:Ra,useDeferredValue:function(e){return Na(da(),ta.memoizedState,e)},useTransition:function(){return[ha(pa)[0],da().memoizedState]},useMutableSource:ga,useSyncExternalStore:ma,useId:Ba,unstable_isNewReconciler:!1},Ka={readContext:Oo,useCallback:Da,useContext:Oo,useEffect:Ca,useImperativeHandle:Ia,useInsertionEffect:Aa,useLayoutEffect:Pa,useMemo:La,useReducer:va,useRef:ka,useState:function(){return va(pa)},useDebugValue:Ra,useDeferredValue:function(e){var t=da();return null===ta?t.memoizedState=e:Na(t,ta.memoizedState,e)},useTransition:function(){return[va(pa)[0],da().memoizedState]},useMutableSource:ga,useSyncExternalStore:ma,useId:Ba,unstable_isNewReconciler:!1};function $a(e,t){if(e&&e.defaultProps){for(var n in t=F({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function Xa(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:F({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Qa={isMounted:function(e){return!!(e=e._reactInternals)&&ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Vu(),i=Hu(e),o=Mo(r,i);o.payload=t,null!=n&&(o.callback=n),null!==(t=Io(e,o,i))&&(Wu(t,e,i,r),Ro(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Vu(),i=Hu(e),o=Mo(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=Io(e,o,i))&&(Wu(t,e,i,r),Ro(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Vu(),r=Hu(e),i=Mo(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=Io(e,i,r))&&(Wu(t,e,r,n),Ro(t,e,r))}};function Za(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!(t.prototype&&t.prototype.isPureReactComponent&&rr(n,r)&&rr(i,o))}function Ja(e,t,n){var r=!1,i=xi,o=t.contextType;return"object"==I(o)&&null!==o?o=Oo(o):(i=ki(t)?Si:wi.current,o=(r=null!=(r=t.contextTypes))?Oi(e,i):xi),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Qa,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function es(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&&Qa.enqueueReplaceState(t,t.state,null)}function ts(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Ao(e);var o=t.contextType;"object"==I(o)&&null!==o?i.context=Oo(o):(o=ki(t)?Si:wi.current,i.context=Oi(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(Xa(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&&Qa.enqueueReplaceState(i,i.state,null),Lo(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function ns(e,t){try{var n="",r=t;do{n+=V(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function rs(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function is(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var os="function"==typeof WeakMap?WeakMap:Map;function as(e,t,n){(n=Mo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Mu||(Mu=!0,Iu=r),is(0,t)},n}function ss(e,t,n){(n=Mo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){is(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){is(0,t),"function"!=typeof r&&(null===Ru?Ru=new Set([this]):Ru.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function us(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new os;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=pc.bind(null,e,t,n),t.then(e,e))}function cs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ls(e,t,n,r,i){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Mo(-1,1)).tag=2,Io(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var fs=x.ReactCurrentOwner,ds=!1;function ps(e,t,n,r){t.child=null===e?vo(t,null,n,r):ho(t,e.child,n,r)}function hs(e,t,n,r,i){n=n.render;var o=t.ref;return So(t,i),r=ca(e,t,n,r,o,i),n=la(),null===e||ds?(Qi&&n&&Yi(t),t.flags|=1,ps(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ls(e,t,i))}function vs(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||xc(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=_c(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,gs(e,t,o,r,i))}if(o=e.child,0==(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:rr)(a,r)&&e.ref===t.ref)return Ls(e,t,i)}return t.flags|=1,(e=wc(o,r)).ref=t.ref,e.return=t,t.child=e}function gs(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(rr(o,r)&&e.ref===t.ref){if(ds=!1,t.pendingProps=r=o,0==(e.lanes&i))return t.lanes=e.lanes,Ls(e,t,i);0!=(131072&e.flags)&&(ds=!0)}}return bs(e,t,n,r,i)}function ms(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},bi(wu,xu),xu|=n;else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,bi(wu,xu),xu|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,bi(wu,xu),xu|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,bi(wu,xu),xu|=r;return ps(e,t,i,n),t.child}function ys(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function bs(e,t,n,r,i){var o=ki(n)?Si:wi.current;return o=Oi(t,o),So(t,i),n=ca(e,t,n,r,o,i),r=la(),null===e||ds?(Qi&&r&&Yi(t),t.flags|=1,ps(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ls(e,t,i))}function xs(e,t,n,r,i){if(ki(n)){var o=!0;Ci(t)}else o=!1;if(So(t,i),null===t.stateNode)Ds(e,t),Ja(t,n,r),ts(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var u=a.context,c=n.contextType;c="object"==I(c)&&null!==c?Oo(c):Oi(t,c=ki(n)?Si:wi.current);var l=n.getDerivedStateFromProps,f="function"==typeof l||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||u!==c)&&es(t,a,r,c),Co=!1;var d=t.memoizedState;a.state=d,Lo(t,r,a,i),u=t.memoizedState,s!==r||d!==u||_i.current||Co?("function"==typeof l&&(Xa(t,n,l,r),u=t.memoizedState),(s=Co||Za(t,n,s,r,d,u,c))?(f||"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.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Po(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:$a(t.type,s),a.props=c,f=t.pendingProps,d=a.context,u="object"==I(u=n.contextType)&&null!==u?Oo(u):Oi(t,u=ki(n)?Si:wi.current);var p=n.getDerivedStateFromProps;(l="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==f||d!==u)&&es(t,a,r,u),Co=!1,d=t.memoizedState,a.state=d,Lo(t,r,a,i);var h=t.memoizedState;s!==f||d!==h||_i.current||Co?("function"==typeof p&&(Xa(t,n,p,r),h=t.memoizedState),(c=Co||Za(t,n,c,r,d,h,u)||!1)?(l||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,u)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=u,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return ws(e,t,n,r,o,i)}function ws(e,t,n,r,i,o){ys(e,t);var a=0!=(128&t.flags);if(!r&&!a)return i&&Ai(t,n,!1),Ls(e,t,o);r=t.stateNode,fs.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=ho(t,e.child,null,o),t.child=ho(t,null,s,o)):ps(e,t,s,o),t.memoizedState=r.state,i&&Ai(t,n,!0),t.child}function _s(e){var t=e.stateNode;t.pendingContext?ji(0,t.pendingContext,t.pendingContext!==t.context):t.context&&ji(0,t.context,!1),Ho(e,t.containerInfo)}function Ss(e,t,n,r,i){return ao(),so(i),t.flags|=256,ps(e,t,n,r),t.child}var Os,ks,Es,js={dehydrated:null,treeContext:null,retryLane:0};function Ts(e){return{baseLanes:e,cachePool:null,transitions:null}}function Cs(e,t,n){var r,i=t.pendingProps,a=Yo.current,s=!1,u=0!=(128&t.flags);if((r=u)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),bi(Yo,1&a),null===e)return no(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(u=i.children,e=i.fallback,s?(i=t.mode,s=t.child,u={mode:"hidden",children:u},0==(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=u):s=Oc(u,i,0,null),e=Sc(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ts(n),t.memoizedState=js,e):As(t,u));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,i,a,s){if(n)return 256&t.flags?(t.flags&=-257,Ps(e,t,s,r=rs(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Oc({mode:"visible",children:r.children},i,0,null),(a=Sc(a,i,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!=(1&t.mode)&&ho(t,e.child,null,s),t.child.memoizedState=Ts(s),t.memoizedState=js,a);if(0==(1&t.mode))return Ps(e,t,s,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var u=r.dgst;return r=u,Ps(e,t,s,r=rs(a=Error(o(419)),r,void 0))}if(u=0!=(s&e.childLanes),ds||u){if(null!==(r=mu)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!=(i&(r.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,To(e,i),Wu(r,e,i,-1))}return rc(),Ps(e,t,s,r=rs(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=vc.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,Xi=ni(i.nextSibling),$i=t,Qi=!0,Zi=null,null!==e&&(Ui[zi++]=Hi,Ui[zi++]=Wi,Ui[zi++]=Vi,Hi=e.id,Wi=e.overflow,Vi=t),(t=As(t,r.children)).flags|=4096,t)}(e,t,u,i,r,a,n);if(s){s=i.fallback,u=t.mode,r=(a=e.child).sibling;var c={mode:"hidden",children:i.children};return 0==(1&u)&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=c,t.deletions=null):(i=wc(a,c)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=wc(r,s):(s=Sc(s,u,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,u=null===(u=e.child.memoizedState)?Ts(n):{baseLanes:u.baseLanes|n,cachePool:null,transitions:u.transitions},s.memoizedState=u,s.childLanes=e.childLanes&~n,t.memoizedState=js,i}return e=(s=e.child).sibling,i=wc(s,{mode:"visible",children:i.children}),0==(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function As(e,t){return(t=Oc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ps(e,t,n,r){return null!==r&&so(r),ho(t,e.child,null,n),(e=As(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ms(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),_o(e.return,t,n)}function Is(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Rs(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ps(e,t,r.children,n),0!=(2&(r=Yo.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ms(e,n,t);else if(19===e.tag)Ms(e,n,t);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(bi(Yo,r),0==(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Ko(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Is(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Ko(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Is(t,!0,n,null,o);break;case"together":Is(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ds(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ls(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ou|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=wc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=wc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ns(e,t){if(!Qi)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 Fs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Bs(e,t,n){var r=t.pendingProps;switch(Ki(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fs(t),null;case 1:return ki(t.type)&&Ei(),Fs(t),null;case 3:return r=t.stateNode,Wo(),yi(_i),yi(wi),Xo(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(io(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==Zi&&(Ku(Zi),Zi=null))),Fs(t),null;case 5:Go(t);var i=Vo(zo.current);if(n=t.type,null!==e&&null!=t.stateNode)ks(e,t,n,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return Fs(t),null}if(e=Vo(Bo.current),io(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[oi]=t,r[ai]=a,e=0!=(1&t.mode),n){case"dialog":Mr("cancel",r),Mr("close",r);break;case"iframe":case"object":case"embed":Mr("load",r);break;case"video":case"audio":for(i=0;i<Tr.length;i++)Mr(Tr[i],r);break;case"source":Mr("error",r);break;case"img":case"image":case"link":Mr("error",r),Mr("load",r);break;case"details":Mr("toggle",r);break;case"input":X(r,a),Mr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Mr("invalid",r);break;case"textarea":ie(r,a),Mr("invalid",r)}for(var u in me(n,a),i=null,a)if(a.hasOwnProperty(u)){var c=a[u];"children"===u?"string"==typeof c?r.textContent!==c&&(!0!==a.suppressHydrationWarning&&qr(r.textContent,c,e),i=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(!0!==a.suppressHydrationWarning&&qr(r.textContent,c,e),i=["children",""+c]):s.hasOwnProperty(u)&&null!=c&&"onScroll"===u&&Mr("scroll",r)}switch(n){case"input":G(r),J(r,a,!0);break;case"textarea":G(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Gr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{u=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[oi]=t,e[ai]=r,Os(e,t),t.stateNode=e;e:{switch(u=ye(n,r),n){case"dialog":Mr("cancel",e),Mr("close",e),i=r;break;case"iframe":case"object":case"embed":Mr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Tr.length;i++)Mr(Tr[i],e);i=r;break;case"source":Mr("error",e),i=r;break;case"img":case"image":case"link":Mr("error",e),Mr("load",e),i=r;break;case"details":Mr("toggle",e),i=r;break;case"input":X(e,r),i=$(e,r),Mr("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=F({},r,{value:void 0}),Mr("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),Mr("invalid",e);break;default:i=r}for(a in me(n,i),c=i)if(c.hasOwnProperty(a)){var l=c[a];"style"===a?ve(e,l):"dangerouslySetInnerHTML"===a?null!=(l=l?l.__html:void 0)&&le(e,l):"children"===a?"string"==typeof l?("textarea"!==n||""!==l)&&fe(e,l):"number"==typeof l&&fe(e,""+l):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=l&&"onScroll"===a&&Mr("scroll",e):null!=l&&b(e,a,l,u))}switch(n){case"input":G(e),J(e,r,!1);break;case"textarea":G(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+W(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Gr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Fs(t),null;case 6:if(e&&null!=t.stateNode)Es(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(o(166));if(n=Vo(zo.current),Vo(Bo.current),io(t)){if(r=t.stateNode,n=t.memoizedProps,r[oi]=t,(a=r.nodeValue!==n)&&null!==(e=$i))switch(e.tag){case 3:qr(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&qr(r.nodeValue,n,0!=(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[oi]=t,t.stateNode=r}return Fs(t),null;case 13:if(yi(Yo),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(Qi&&null!==Xi&&0!=(1&t.mode)&&0==(128&t.flags))oo(),ao(),t.flags|=98560,a=!1;else if(a=io(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[oi]=t}else ao(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Fs(t),a=!1}else null!==Zi&&(Ku(Zi),Zi=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&Yo.current)?0===_u&&(_u=3):rc())),null!==t.updateQueue&&(t.flags|=4),Fs(t),null);case 4:return Wo(),null===e&&Dr(t.stateNode.containerInfo),Fs(t),null;case 10:return wo(t.type._context),Fs(t),null;case 17:return ki(t.type)&&Ei(),Fs(t),null;case 19:if(yi(Yo),null===(a=t.memoizedState))return Fs(t),null;if(r=0!=(128&t.flags),null===(u=a.rendering))if(r)Ns(a,!1);else{if(0!==_u||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(u=Ko(e))){for(t.flags|=128,Ns(a,!1),null!==(r=u.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(u=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=u.childLanes,a.lanes=u.lanes,a.child=u.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=u.memoizedProps,a.memoizedState=u.memoizedState,a.updateQueue=u.updateQueue,a.type=u.type,e=u.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return bi(Yo,1&Yo.current|2),t.child}e=e.sibling}null!==a.tail&&$e()>Au&&(t.flags|=128,r=!0,Ns(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Ko(u))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ns(a,!0),null===a.tail&&"hidden"===a.tailMode&&!u.alternate&&!Qi)return Fs(t),null}else 2*$e()-a.renderingStartTime>Au&&1073741824!==n&&(t.flags|=128,r=!0,Ns(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=a.last)?n.sibling=u:t.child=u,a.last=u)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=$e(),t.sibling=null,n=Yo.current,bi(Yo,r?1&n|2:1&n),t):(Fs(t),null);case 22:case 23:return Ju(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&xu)&&(Fs(t),6&t.subtreeFlags&&(t.flags|=8192)):Fs(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Us(e,t){switch(Ki(t),t.tag){case 1:return ki(t.type)&&Ei(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Wo(),yi(_i),yi(wi),Xo(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Go(t),null;case 13:if(yi(Yo),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));ao()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return yi(Yo),null;case 4:return Wo(),null;case 10:return wo(t.type._context),null;case 22:case 23:return Ju(),null;case 24:default:return null}}Os=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}},ks=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Vo(Bo.current);var o,a=null;switch(n){case"input":i=$(e,i),r=$(e,r),a=[];break;case"select":i=F({},i,{value:void 0}),r=F({},r,{value:void 0}),a=[];break;case"textarea":i=re(e,i),r=re(e,r),a=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Gr)}for(l in me(n,r),n=null,i)if(!r.hasOwnProperty(l)&&i.hasOwnProperty(l)&&null!=i[l])if("style"===l){var u=i[l];for(o in u)u.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==l&&"children"!==l&&"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(s.hasOwnProperty(l)?a||(a=[]):(a=a||[]).push(l,null));for(l in r){var c=r[l];if(u=null!=i?i[l]:void 0,r.hasOwnProperty(l)&&c!==u&&(null!=c||null!=u))if("style"===l)if(u){for(o in u)!u.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&u[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(a||(a=[]),a.push(l,n)),n=c;else"dangerouslySetInnerHTML"===l?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(a=a||[]).push(l,c)):"children"===l?"string"!=typeof c&&"number"!=typeof c||(a=a||[]).push(l,""+c):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&(s.hasOwnProperty(l)?(null!=c&&"onScroll"===l&&Mr("scroll",e),a||u===c||(a=[])):(a=a||[]).push(l,c))}n&&(a=a||[]).push("style",n);var l=a;(t.updateQueue=l)&&(t.flags|=4)}},Es=function(e,t,n,r){n!==r&&(t.flags|=4)};var zs=!1,Vs=!1,Hs="function"==typeof WeakSet?WeakSet:Set,Ws=null;function qs(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){dc(e,t,n)}else n.current=null}function Gs(e,t,n){try{n()}catch(n){dc(e,t,n)}}var Ys=!1;function Ks(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&Gs(t,n,o)}i=i.next}while(i!==r)}}function $s(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 Xs(e){var t=e.ref;if(null!==t){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}"function"==typeof t?t(e):t.current=e}}function Qs(e){var t=e.alternate;null!==t&&(e.alternate=null,Qs(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[oi],delete t[ai],delete t[ui],delete t[ci],delete t[li]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Zs(e){return 5===e.tag||3===e.tag||4===e.tag}function Js(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Zs(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}var eu=null,tu=!1;function nu(e,t,n){for(n=n.child;null!==n;)ru(e,t,n),n=n.sibling}function ru(e,t,n){if(rt&&"function"==typeof rt.onCommitFiberUnmount)try{rt.onCommitFiberUnmount(nt,n)}catch(e){}switch(n.tag){case 5:Vs||qs(n,t);case 6:var r=eu,i=tu;eu=null,nu(e,t,n),tu=i,null!==(eu=r)&&(tu?(e=eu,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):eu.removeChild(n.stateNode));break;case 18:null!==eu&&(tu?(e=eu,n=n.stateNode,8===e.nodeType?ti(e.parentNode,n):1===e.nodeType&&ti(e,n),Ut(e)):ti(eu,n.stateNode));break;case 4:r=eu,i=tu,eu=n.stateNode.containerInfo,tu=!0,nu(e,t,n),eu=r,tu=i;break;case 0:case 11:case 14:case 15:if(!Vs&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!=(2&o)||0!=(4&o))&&Gs(n,t,a),i=i.next}while(i!==r)}nu(e,t,n);break;case 1:if(!Vs&&(qs(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){dc(n,t,e)}nu(e,t,n);break;case 21:nu(e,t,n);break;case 22:1&n.mode?(Vs=(r=Vs)||null!==n.memoizedState,nu(e,t,n),Vs=r):nu(e,t,n);break;default:nu(e,t,n)}}function iu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Hs),t.forEach((function(t){var r=gc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ou(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,s=t,u=s;e:for(;null!==u;){switch(u.tag){case 5:eu=u.stateNode,tu=!1;break e;case 3:case 4:eu=u.stateNode.containerInfo,tu=!0;break e}u=u.return}if(null===eu)throw Error(o(160));ru(a,s,i),eu=null,tu=!1;var c=i.alternate;null!==c&&(c.return=null),i.return=null}catch(e){dc(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)au(t,e),t=t.sibling}function au(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ou(t,e),su(e),4&r){try{Ks(3,e,e.return),$s(3,e)}catch(t){dc(e,e.return,t)}try{Ks(5,e,e.return)}catch(t){dc(e,e.return,t)}}break;case 1:ou(t,e),su(e),512&r&&null!==n&&qs(n,n.return);break;case 5:if(ou(t,e),su(e),512&r&&null!==n&&qs(n,n.return),32&e.flags){var i=e.stateNode;try{fe(i,"")}catch(t){dc(e,e.return,t)}}if(4&r&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,u=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===u&&"radio"===a.type&&null!=a.name&&Q(i,a),ye(u,s);var l=ye(u,a);for(s=0;s<c.length;s+=2){var f=c[s],d=c[s+1];"style"===f?ve(i,d):"dangerouslySetInnerHTML"===f?le(i,d):"children"===f?fe(i,d):b(i,f,d,l)}switch(u){case"input":Z(i,a);break;case"textarea":oe(i,a);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(i,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(i,!!a.multiple,a.defaultValue,!0):ne(i,!!a.multiple,a.multiple?[]:"",!1))}i[ai]=a}catch(t){dc(e,e.return,t)}}break;case 6:if(ou(t,e),su(e),4&r){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(t){dc(e,e.return,t)}}break;case 3:if(ou(t,e),su(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ut(t.containerInfo)}catch(t){dc(e,e.return,t)}break;case 4:ou(t,e),su(e);break;case 13:ou(t,e),su(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(Cu=$e())),4&r&&iu(e);break;case 22:if(f=null!==n&&null!==n.memoizedState,1&e.mode?(Vs=(l=Vs)||f,ou(t,e),Vs=l):ou(t,e),su(e),8192&r){if(l=null!==e.memoizedState,(e.stateNode.isHidden=l)&&!f&&0!=(1&e.mode))for(Ws=e,f=e.child;null!==f;){for(d=Ws=f;null!==Ws;){switch(h=(p=Ws).child,p.tag){case 0:case 11:case 14:case 15:Ks(4,p,p.return);break;case 1:qs(p,p.return);var v=p.stateNode;if("function"==typeof v.componentWillUnmount){r=p,n=p.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(e){dc(r,n,e)}}break;case 5:qs(p,p.return);break;case 22:if(null!==p.memoizedState){cu(d);continue}}null!==h?(h.return=p,Ws=h):cu(d)}f=f.sibling}e:for(f=null,d=e;;){if(5===d.tag){if(null===f){f=d;try{i=d.stateNode,l?"function"==typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(u=d.stateNode,s=null!=(c=d.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,u.style.display=he("display",s))}catch(t){dc(e,e.return,t)}}}else if(6===d.tag){if(null===f)try{d.stateNode.nodeValue=l?"":d.memoizedProps}catch(t){dc(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:ou(t,e),su(e),4&r&&iu(e);break;case 21:break;default:ou(t,e),su(e)}}function su(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(Zs(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(fe(i,""),r.flags&=-33),function e(t,n,r){var i=t.tag;if(5===i||6===i)t=t.stateNode,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,Js(e),i);break;case 3:case 4:var a=r.stateNode.containerInfo;!function e(t,n,r){var i=t.tag;if(5===i||6===i)t=t.stateNode,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!=(r=r._reactRootContainer)||null!==n.onclick||(n.onclick=Gr));else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,Js(e),a);break;default:throw Error(o(161))}}catch(t){dc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function uu(e){for(;null!==Ws;){var t=Ws;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Vs||$s(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Vs)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:$a(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&No(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}No(t,s,n)}break;case 5:var u=t.stateNode;if(null===n&&4&t.flags){n=u;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:break;case 13:if(null===t.memoizedState){var l=t.alternate;if(null!==l){var f=l.memoizedState;if(null!==f){var d=f.dehydrated;null!==d&&Ut(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(o(163))}Vs||512&t.flags&&Xs(t)}catch(e){dc(t,t.return,e)}}if(t===e){Ws=null;break}if(null!==(n=t.sibling)){n.return=t.return,Ws=n;break}Ws=t.return}}function cu(e){for(;null!==Ws;){var t=Ws;if(t===e){Ws=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Ws=n;break}Ws=t.return}}function lu(e){for(;null!==Ws;){var t=Ws;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{$s(4,t)}catch(e){dc(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(e){dc(t,i,e)}}var o=t.return;try{Xs(t)}catch(e){dc(t,o,e)}break;case 5:var a=t.return;try{Xs(t)}catch(e){dc(t,a,e)}}}catch(e){dc(t,t.return,e)}if(t===e){Ws=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Ws=s;break}Ws=t.return}}var fu,du=Math.ceil,pu=x.ReactCurrentDispatcher,hu=x.ReactCurrentOwner,vu=x.ReactCurrentBatchConfig,gu=0,mu=null,yu=null,bu=0,xu=0,wu=mi(0),_u=0,Su=null,Ou=0,ku=0,Eu=0,ju=null,Tu=null,Cu=0,Au=1/0,Pu=null,Mu=!1,Iu=null,Ru=null,Du=!1,Lu=null,Nu=0,Fu=0,Bu=null,Uu=-1,zu=0;function Vu(){return 0!=(6&gu)?$e():-1!==Uu?Uu:Uu=$e()}function Hu(e){return 0==(1&e.mode)?1:0!=(2&gu)&&0!==bu?bu&-bu:null!==uo.transition?(0===zu&&(zu=pt()),zu):0!==(e=mt)?e:e=void 0===(e=window.event)?16:Kt(e.type)}function Wu(e,t,n,r){if(50<Fu)throw Fu=0,Bu=null,Error(o(185));vt(e,n,r),0!=(2&gu)&&e===mu||(e===mu&&(0==(2&gu)&&(ku|=n),4===_u&&$u(e,bu)),qu(e,r),1===n&&0===gu&&0==(1&t.mode)&&(Au=$e()+500,Mi&&Di()))}function qu(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-it(o),s=1<<a,u=i[a];-1===u?0!=(s&n)&&0==(s&r)||(i[a]=ft(s,t)):u<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=lt(e,e===mu?bu:0);if(0===r)null!==n&&Ge(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ge(n),1===t)0===e.tag?function(e){Mi=!0,Ri(e)}(Xu.bind(null,e)):Ri(Xu.bind(null,e)),Jr((function(){0==(6&gu)&&Di()})),n=null;else{switch(yt(r)){case 1:n=Qe;break;case 4:n=Ze;break;case 16:n=Je;break;case 536870912:n=tt;break;default:n=Je}n=mc(n,Gu.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Gu(e,t){if(Uu=-1,zu=0,0!=(6&gu))throw Error(o(327));var n=e.callbackNode;if(lc()&&e.callbackNode!==n)return null;var r=lt(e,e===mu?bu:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=ic(e,r);else{t=r;var i=gu;gu|=2;var a=nc();for(mu===e&&bu===t||(Pu=null,Au=$e()+500,ec(e,t));;)try{ac();break}catch(t){tc(e,t)}xo(),pu.current=a,gu=i,null!==yu?t=0:(mu=null,bu=0,t=_u)}if(0!==t){if(2===t&&0!==(i=dt(e))&&(r=i,t=Yu(e,i)),1===t)throw n=Su,ec(e,0),$u(e,r),qu(e,$e()),n;if(6===t)$u(e,r);else{if(i=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!nr(o(),i))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=ic(e,r))&&0!==(a=dt(e))&&(r=a,t=Yu(e,a)),1===t))throw n=Su,ec(e,0),$u(e,r),qu(e,$e()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:cc(e,Tu,Pu);break;case 3:if($u(e,r),(130023424&r)===r&&10<(t=Cu+500-$e())){if(0!==lt(e,0))break;if(((i=e.suspendedLanes)&r)!==r){Vu(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Xr(cc.bind(null,e,Tu,Pu),t);break}cc(e,Tu,Pu);break;case 4:if($u(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-it(r);a=1<<s,(s=t[s])>i&&(i=s),r&=~a}if(r=i,10<(r=(120>(r=$e()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*du(r/1960))-r)){e.timeoutHandle=Xr(cc.bind(null,e,Tu,Pu),r);break}cc(e,Tu,Pu);break;case 5:cc(e,Tu,Pu);break;default:throw Error(o(329))}}}return qu(e,$e()),e.callbackNode===n?Gu.bind(null,e):null}function Yu(e,t){var n=ju;return e.current.memoizedState.isDehydrated&&(ec(e,t).flags|=256),2!==(e=ic(e,t))&&(t=Tu,Tu=n,null!==t&&Ku(t)),e}function Ku(e){null===Tu?Tu=e:Tu.push.apply(Tu,e)}function $u(e,t){for(t&=~Eu,t&=~ku,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-it(t),r=1<<n;e[n]=-1,t&=~r}}function Xu(e){if(0!=(6&gu))throw Error(o(327));lc();var t=lt(e,0);if(0==(1&t))return qu(e,$e()),null;var n=ic(e,t);if(0!==e.tag&&2===n){var r=dt(e);0!==r&&(t=r,n=Yu(e,r))}if(1===n)throw n=Su,ec(e,0),$u(e,t),qu(e,$e()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,cc(e,Tu,Pu),qu(e,$e()),null}function Qu(e,t){var n=gu;gu|=1;try{return e(t)}finally{0===(gu=n)&&(Au=$e()+500,Mi&&Di())}}function Zu(e){null!==Lu&&0===Lu.tag&&0==(6&gu)&&lc();var t=gu;gu|=1;var n=vu.transition,r=mt;try{if(vu.transition=null,mt=1,e)return e()}finally{mt=r,vu.transition=n,0==(6&(gu=t))&&Di()}}function Ju(){xu=wu.current,yi(wu)}function ec(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Qr(n)),null!==yu)for(n=yu.return;null!==n;){var r=n;switch(Ki(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ei();break;case 3:Wo(),yi(_i),yi(wi),Xo();break;case 5:Go(r);break;case 4:Wo();break;case 13:case 19:yi(Yo);break;case 10:wo(r.type._context);break;case 22:case 23:Ju()}n=n.return}if(mu=e,yu=e=wc(e.current,null),bu=xu=t,_u=0,Su=null,Eu=ku=Ou=0,Tu=ju=null,null!==ko){for(t=0;t<ko.length;t++)if(null!==(r=(n=ko[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}ko=null}return e}function tc(e,t){for(;;){var n=yu;try{if(xo(),Qo.current=qa,ra){for(var r=ea.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ra=!1}if(Jo=0,na=ta=ea=null,ia=!1,oa=0,hu.current=null,null===n||null===n.return){_u=1,Su=t,yu=null;break}e:{var a=e,s=n.return,u=n,c=t;if(t=bu,u.flags|=32768,null!==c&&"object"==I(c)&&"function"==typeof c.then){var l=c,f=u,d=f.tag;if(0==(1&f.mode)&&(0===d||11===d||15===d)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var h=cs(s);if(null!==h){h.flags&=-257,ls(h,s,u,0,t),1&h.mode&&us(a,l,t),c=l;var v=(t=h).updateQueue;if(null===v){var g=new Set;g.add(c),t.updateQueue=g}else v.add(c);break e}if(0==(1&t)){us(a,l,t),rc();break e}c=Error(o(426))}else if(Qi&&1&u.mode){var m=cs(s);if(null!==m){0==(65536&m.flags)&&(m.flags|=256),ls(m,s,u,0,t),so(ns(c,u));break e}}a=c=ns(c,u),4!==_u&&(_u=2),null===ju?ju=[a]:ju.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Do(a,as(0,c,t));break e;case 1:u=c;var y=a.type,b=a.stateNode;if(0==(128&a.flags)&&("function"==typeof y.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===Ru||!Ru.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Do(a,ss(a,u,t));break e}}a=a.return}while(null!==a)}uc(n)}catch(e){t=e,yu===n&&null!==n&&(yu=n=n.return);continue}break}}function nc(){var e=pu.current;return pu.current=qa,null===e?qa:e}function rc(){0!==_u&&3!==_u&&2!==_u||(_u=4),null===mu||0==(268435455&Ou)&&0==(268435455&ku)||$u(mu,bu)}function ic(e,t){var n=gu;gu|=2;var r=nc();for(mu===e&&bu===t||(Pu=null,ec(e,t));;)try{oc();break}catch(t){tc(e,t)}if(xo(),gu=n,pu.current=r,null!==yu)throw Error(o(261));return mu=null,bu=0,_u}function oc(){for(;null!==yu;)sc(yu)}function ac(){for(;null!==yu&&!Ye();)sc(yu)}function sc(e){var t=fu(e.alternate,e,xu);e.memoizedProps=e.pendingProps,null===t?uc(e):yu=t,hu.current=null}function uc(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Bs(n,t,xu)))return void(yu=n)}else{if(null!==(n=Us(n,t)))return n.flags&=32767,void(yu=n);if(null===e)return _u=6,void(yu=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(yu=t);yu=t=e}while(null!==t);0===_u&&(_u=5)}function cc(e,t,n){var r=mt,i=vu.transition;try{vu.transition=null,mt=1,function(e,t,n,r){do{lc()}while(null!==Lu);if(0!=(6&gu))throw Error(o(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-it(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,a),e===mu&&(yu=mu=null,bu=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||Du||(Du=!0,mc(Je,(function(){return lc(),null}))),a=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||a){a=vu.transition,vu.transition=null;var s=mt;mt=1;var u=gu;gu|=4,hu.current=null,function(e,t){if(Yr=Vt,sr(e=ar())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var s=0,u=-1,c=-1,l=0,f=0,d=e,p=null;t:for(;;){for(var h;d!==n||0!==i&&3!==d.nodeType||(u=s+i),d!==a||0!==r&&3!==d.nodeType||(c=s+r),3===d.nodeType&&(s+=d.nodeValue.length),null!==(h=d.firstChild);)p=d,d=h;for(;;){if(d===e)break t;if(p===n&&++l===i&&(u=s),p===a&&++f===r&&(c=s),null!==(h=d.nextSibling))break;p=(d=p).parentNode}d=h}n=-1===u||-1===c?null:{start:u,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Kr={focusedElem:e,selectionRange:n},Vt=!1,Ws=t;null!==Ws;)if(e=(t=Ws).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Ws=e;else for(;null!==Ws;){t=Ws;try{var v=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:break;case 1:if(null!==v){var g=v.memoizedProps,m=v.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:$a(t.type,g),m);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(e){dc(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Ws=e;break}Ws=t.return}v=Ys,Ys=!1}(e,n),au(n,e),function(e){var t=ar(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.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))))}(n.ownerDocument.documentElement,n)){if(null!==r&&sr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=or(n,o);var a=or(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}(Kr),Vt=!!Yr,Kr=Yr=null,e.current=n,function(e,t,n){Ws=e,function e(t,n,r){for(var i=0!=(1&t.mode);null!==Ws;){var o=Ws,a=o.child;if(22===o.tag&&i){var s=null!==o.memoizedState||zs;if(!s){var u=o.alternate,c=null!==u&&null!==u.memoizedState||Vs;u=zs;var l=Vs;if(zs=s,(Vs=c)&&!l)for(Ws=o;null!==Ws;)c=(s=Ws).child,22===s.tag&&null!==s.memoizedState?lu(o):null!==c?(c.return=s,Ws=c):lu(o);for(;null!==a;)Ws=a,e(a,n,r),a=a.sibling;Ws=o,zs=u,Vs=l}uu(t)}else 0!=(8772&o.subtreeFlags)&&null!==a?(a.return=o,Ws=a):uu(t)}}(e,t,n)}(n,e,i),Ke(),gu=u,mt=s,vu.transition=a}else e.current=n;if(Du&&(Du=!1,Lu=e,Nu=i),0===(a=e.pendingLanes)&&(Ru=null),function(e){if(rt&&"function"==typeof rt.onCommitFiberRoot)try{rt.onCommitFiberRoot(nt,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),qu(e,$e()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((i=t[n]).value,{componentStack:i.stack,digest:i.digest});if(Mu)throw Mu=!1,e=Iu,Iu=null,e;0!=(1&Nu)&&0!==e.tag&&lc(),0!=(1&(a=e.pendingLanes))?e===Bu?Fu++:(Fu=0,Bu=e):Fu=0,Di()}(e,t,n,r)}finally{vu.transition=i,mt=r}return null}function lc(){if(null!==Lu){var e=yt(Nu),t=vu.transition,n=mt;try{if(vu.transition=null,mt=16>e?16:e,null===Lu)var r=!1;else{if(e=Lu,Lu=null,Nu=0,0!=(6&gu))throw Error(o(331));var i=gu;for(gu|=4,Ws=e.current;null!==Ws;){var a=Ws,s=a.child;if(0!=(16&Ws.flags)){var u=a.deletions;if(null!==u){for(var c=0;c<u.length;c++){var l=u[c];for(Ws=l;null!==Ws;){var f=Ws;switch(f.tag){case 0:case 11:case 15:Ks(8,f,a)}var d=f.child;if(null!==d)d.return=f,Ws=d;else for(;null!==Ws;){var p=(f=Ws).sibling,h=f.return;if(Qs(f),f===l){Ws=null;break}if(null!==p){p.return=h,Ws=p;break}Ws=h}}}var v=a.alternate;if(null!==v){var g=v.child;if(null!==g){v.child=null;do{var m=g.sibling;g.sibling=null,g=m}while(null!==g)}}Ws=a}}if(0!=(2064&a.subtreeFlags)&&null!==s)s.return=a,Ws=s;else e:for(;null!==Ws;){if(0!=(2048&(a=Ws).flags))switch(a.tag){case 0:case 11:case 15:Ks(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Ws=y;break e}Ws=a.return}}var b=e.current;for(Ws=b;null!==Ws;){var x=(s=Ws).child;if(0!=(2064&s.subtreeFlags)&&null!==x)x.return=s,Ws=x;else e:for(s=b;null!==Ws;){if(0!=(2048&(u=Ws).flags))try{switch(u.tag){case 0:case 11:case 15:$s(9,u)}}catch(e){dc(u,u.return,e)}if(u===s){Ws=null;break e}var w=u.sibling;if(null!==w){w.return=u.return,Ws=w;break e}Ws=u.return}}if(gu=i,Di(),rt&&"function"==typeof rt.onPostCommitFiberRoot)try{rt.onPostCommitFiberRoot(nt,e)}catch(e){}r=!0}return r}finally{mt=n,vu.transition=t}}return!1}function fc(e,t,n){e=Io(e,t=as(0,t=ns(n,t),1),1),t=Vu(),null!==e&&(vt(e,1,t),qu(e,t))}function dc(e,t,n){if(3===e.tag)fc(e,e,n);else for(;null!==t;){if(3===t.tag){fc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ru||!Ru.has(r))){t=Io(t,e=ss(t,e=ns(n,e),1),1),e=Vu(),null!==t&&(vt(t,1,e),qu(t,e));break}}t=t.return}}function pc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Vu(),e.pingedLanes|=e.suspendedLanes&n,mu===e&&(bu&n)===n&&(4===_u||3===_u&&(130023424&bu)===bu&&500>$e()-Cu?ec(e,0):Eu|=n),qu(e,t)}function hc(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ut,0==(130023424&(ut<<=1))&&(ut=4194304)));var n=Vu();null!==(e=To(e,t))&&(vt(e,t,n),qu(e,n))}function vc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),hc(e,n)}function gc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),hc(e,n)}function mc(e,t){return qe(e,t)}function yc(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.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bc(e,t,n,r){return new yc(e,t,n,r)}function xc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function wc(e,t){var n=e.alternate;return null===n?((n=bc(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.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function _c(e,t,n,r,i,a){var s=2;if(r=e,"function"==typeof e)xc(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case S:return Sc(n.children,i,a,t);case O:s=8,i|=8;break;case k:return(e=bc(12,n,t,2|i)).elementType=k,e.lanes=a,e;case C:return(e=bc(13,n,t,i)).elementType=C,e.lanes=a,e;case A:return(e=bc(19,n,t,i)).elementType=A,e.lanes=a,e;case R:return Oc(n,i,a,t);default:if("object"==I(e)&&null!==e)switch(e.$$typeof){case E:s=10;break e;case j:s=9;break e;case T:s=11;break e;case P:s=14;break e;case M:s=16,r=null;break e}throw Error(o(130,null==e?e:I(e),""))}return(t=bc(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Sc(e,t,n,r){return(e=bc(7,e,r,t)).lanes=n,e}function Oc(e,t,n,r){return(e=bc(22,e,r,t)).elementType=R,e.lanes=n,e.stateNode={isHidden:!1},e}function kc(e,t,n){return(e=bc(6,e,null,t)).lanes=n,e}function Ec(e,t,n){return(t=bc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function jc(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ht(0),this.expirationTimes=ht(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ht(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Tc(e,t,n,r,i,o,a,s,u){return e=new jc(e,t,n,s,u),1===t?(t=1,!0===o&&(t|=8)):t=0,o=bc(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ao(o),e}function Cc(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:_,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Ac(e){if(!e)return xi;e:{if(ze(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ki(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(ki(n))return Ti(e,n,t)}return t}function Pc(e,t,n,r,i,o,a,s,u){return(e=Tc(n,r,!0,e,0,o,0,s,u)).context=Ac(null),n=e.current,(o=Mo(r=Vu(),i=Hu(n))).callback=null!=t?t:null,Io(n,o,i),e.current.lanes=i,vt(e,i,r),qu(e,r),e}function Mc(e,t,n,r){var i=t.current,o=Vu(),a=Hu(i);return n=Ac(n),null===t.context?t.context=n:t.pendingContext=n,(t=Mo(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Io(i,t,a))&&(Wu(e,i,a,o),Ro(e,i,a)),a}function Ic(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Rc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Dc(e,t){Rc(e,t),(e=e.alternate)&&Rc(e,t)}fu=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||_i.current)ds=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return ds=!1,function(e,t,n){switch(t.tag){case 3:_s(t),ao();break;case 5:qo(t);break;case 1:ki(t.type)&&Ci(t);break;case 4:Ho(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;bi(go,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(bi(Yo,1&Yo.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Cs(e,t,n):(bi(Yo,1&Yo.current),null!==(e=Ls(e,t,n))?e.sibling:null);bi(Yo,1&Yo.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Rs(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),bi(Yo,Yo.current),r)break;return null;case 22:case 23:return t.lanes=0,ms(e,t,n)}return Ls(e,t,n)}(e,t,n);ds=0!=(131072&e.flags)}else ds=!1,Qi&&0!=(1048576&t.flags)&&Gi(t,Bi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ds(e,t),e=t.pendingProps;var i=Oi(t,wi.current);So(t,n),i=ca(null,t,r,e,i,n);var a=la();return t.flags|=1,"object"==I(i)&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ki(r)?(a=!0,Ci(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Ao(t),i.updater=Qa,t.stateNode=i,i._reactInternals=t,ts(t,r,e,n),t=ws(null,t,r,!0,a,n)):(t.tag=0,Qi&&a&&Yi(t),ps(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ds(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"==typeof e)return xc(e)?1:0;if(null!=e){if((e=e.$$typeof)===T)return 11;if(e===P)return 14}return 2}(r),e=$a(r,e),i){case 0:t=bs(null,t,r,e,n);break e;case 1:t=xs(null,t,r,e,n);break e;case 11:t=hs(null,t,r,e,n);break e;case 14:t=vs(null,t,r,$a(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,bs(e,t,r,i=t.elementType===r?i:$a(r,i),n);case 1:return r=t.type,i=t.pendingProps,xs(e,t,r,i=t.elementType===r?i:$a(r,i),n);case 3:e:{if(_s(t),null===e)throw Error(o(387));r=t.pendingProps,i=(a=t.memoizedState).element,Po(e,t),Lo(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ss(e,t,r,n,i=ns(Error(o(423)),t));break e}if(r!==i){t=Ss(e,t,r,n,i=ns(Error(o(424)),t));break e}for(Xi=ni(t.stateNode.containerInfo.firstChild),$i=t,Qi=!0,Zi=null,n=vo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ao(),r===i){t=Ls(e,t,n);break e}ps(e,t,r,n)}t=t.child}return t;case 5:return qo(t),null===e&&no(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,$r(r,i)?s=null:null!==a&&$r(r,a)&&(t.flags|=32),ys(e,t),ps(e,t,s,n),t.child;case 6:return null===e&&no(t),null;case 13:return Cs(e,t,n);case 4:return Ho(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ho(t,null,r,n):ps(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,hs(e,t,r,i=t.elementType===r?i:$a(r,i),n);case 7:return ps(e,t,t.pendingProps,n),t.child;case 8:case 12:return ps(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,bi(go,r._currentValue),r._currentValue=s,null!==a)if(nr(a.value,s)){if(a.children===i.children&&!_i.current){t=Ls(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var u=a.dependencies;if(null!==u){s=a.child;for(var c=u.firstContext;null!==c;){if(c.context===r){if(1===a.tag){(c=Mo(-1,n&-n)).tag=2;var l=a.updateQueue;if(null!==l){var f=(l=l.shared).pending;null===f?c.next=c:(c.next=f.next,f.next=c),l.pending=c}}a.lanes|=n,null!==(c=a.alternate)&&(c.lanes|=n),_o(a.return,n,t),u.lanes|=n;break}c=c.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=n,null!==(u=s.alternate)&&(u.lanes|=n),_o(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}ps(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,So(t,n),r=r(i=Oo(i)),t.flags|=1,ps(e,t,r,n),t.child;case 14:return i=$a(r=t.type,t.pendingProps),vs(e,t,r,i=$a(r.type,i),n);case 15:return gs(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:$a(r,i),Ds(e,t),t.tag=1,ki(r)?(e=!0,Ci(t)):e=!1,So(t,n),Ja(t,r,i),ts(t,r,i,n),ws(null,t,r,!0,e,n);case 19:return Rs(e,t,n);case 22:return ms(e,t,n)}throw Error(o(156,t.tag))};var Lc="function"==typeof reportError?reportError:function(e){console.error(e)};function Nc(e){this._internalRoot=e}function Fc(e){this._internalRoot=e}function Bc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Uc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function zc(){}function Vc(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"==typeof i){var s=i;i=function(){var e=Ic(a);s.call(e)}}Mc(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var e=Ic(a);o.call(e)}}var a=Pc(t,r,e,0,null,!1,0,"",zc);return e._reactRootContainer=a,e[si]=a.current,Dr(8===e.nodeType?e.parentNode:e),Zu(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var s=r;r=function(){var e=Ic(u);s.call(e)}}var u=Tc(e,0,!1,null,0,!1,0,"",zc);return e._reactRootContainer=u,e[si]=u.current,Dr(8===e.nodeType?e.parentNode:e),Zu((function(){Mc(t,u,n,r)})),u}(n,t,e,i,r);return Ic(a)}Fc.prototype.render=Nc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Mc(e,t,null,null)},Fc.prototype.unmount=Nc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;Zu((function(){Mc(null,e,null,null)})),t[si]=null}},Fc.prototype.unstable_scheduleHydration=function(e){if(e){var t=_t();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Pt.length&&0!==t&&t<Pt[n].priority;n++);Pt.splice(n,0,e),0===n&&Dt(e)}},bt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ct(t.pendingLanes);0!==n&&(gt(t,1|n),qu(t,$e()),0==(6&gu)&&(Au=$e()+500,Di()))}break;case 13:Zu((function(){var t=To(e,1);if(null!==t){var n=Vu();Wu(t,e,1,n)}})),Dc(e,1)}},xt=function(e){if(13===e.tag){var t=To(e,134217728);null!==t&&Wu(t,e,134217728,Vu()),Dc(e,134217728)}},wt=function(e){if(13===e.tag){var t=Hu(e),n=To(e,t);null!==n&&Wu(n,e,t,Vu()),Dc(e,t)}},_t=function(){return mt},St=function(e,t){var n=mt;try{return mt=e,t()}finally{mt=n}},we=function(e,t,n){switch(t){case"input":if(Z(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=hi(r);if(!i)throw Error(o(90));Y(r),Z(r,i)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},je=Qu,Te=Zu;var Hc={usingClientEntryPoint:!1,Events:[di,pi,hi,ke,Ee,Qu]},Wc={findFiberByHostInstance:fi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},qc={bundleType:Wc.bundleType,version:Wc.version,rendererPackageName:Wc.rendererPackageName,rendererConfig:Wc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=We(e))?null:e.stateNode},findFiberByHostInstance:Wc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Gc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Gc.isDisabled&&Gc.supportsFiber)try{nt=Gc.inject(qc),rt=Gc}catch(e){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Hc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Bc(t))throw Error(o(200));return Cc(e,t,null,n)},t.createRoot=function(e,t){if(!Bc(e))throw Error(o(299));var n=!1,r="",i=Lc;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Tc(e,1,!1,null,0,n,0,r,i),e[si]=t.current,Dr(8===e.nodeType?e.parentNode:e),new Nc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return null===(e=We(t))?null:e.stateNode},t.flushSync=function(e){return Zu(e)},t.hydrate=function(e,t,n){if(!Uc(t))throw Error(o(200));return Vc(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Bc(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",s=Lc;if(null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Pc(t,null,e,1,null!=n?n:null,i,0,a,s),e[si]=t.current,Dr(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Fc(t)},t.render=function(e,t,n){if(!Uc(t))throw Error(o(200));return Vc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Uc(e))throw Error(o(40));return!!e._reactRootContainer&&(Zu((function(){Vc(null,null,e,!1,(function(){e._reactRootContainer=null,e[si]=null}))})),!0)},t.unstable_batchedUpdates=Qu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Uc(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return Vc(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},function(e,t,n){"use strict";e.exports=n(949)},function(e,t,n){"use strict";(function(e){ /** * @license React * 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. */ function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,u=e[s],c=s+1,l=e[c];if(0>o(u,n))c<i&&0>o(l,u)?(e[r]=l,e[c]=n,r=c):(e[r]=u,e[s]=n,r=s);else{if(!(c<i&&0>o(l,n)))break e;e[r]=l,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==("undefined"==typeof performance?"undefined":I(performance))&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}var c=[],l=[],f=1,d=null,p=3,h=!1,v=!1,g=!1,m="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b=void 0!==e?e:null;function x(e){for(var t=r(l);null!==t;){if(null===t.callback)i(l);else{if(!(t.startTime<=e))break;i(l),t.sortIndex=t.expirationTime,n(c,t)}t=r(l)}}function w(e){if(g=!1,x(e),!v)if(null!==r(c))v=!0,R(_);else{var t=r(l);null!==t&&D(w,t.startTime-e)}}function _(e,n){v=!1,g&&(g=!1,y(E),E=-1),h=!0;var o=p;try{for(x(n),d=r(c);null!==d&&(!(d.expirationTime>n)||e&&!C());){var a=d.callback;if("function"==typeof a){d.callback=null,p=d.priorityLevel;var s=a(d.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?d.callback=s:d===r(c)&&i(c),x(n)}else i(c);d=r(c)}if(null!==d)var u=!0;else{var f=r(l);null!==f&&D(w,f.startTime-n),u=!1}return u}finally{d=null,p=o,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,O=!1,k=null,E=-1,j=5,T=-1;function C(){return!(t.unstable_now()-T<j)}function A(){if(null!==k){var e=t.unstable_now();T=e;var n=!0;try{n=k(!0,e)}finally{n?S():(O=!1,k=null)}}else O=!1}if("function"==typeof b)S=function(){b(A)};else if("undefined"!=typeof MessageChannel){var P=new MessageChannel,M=P.port2;P.port1.onmessage=A,S=function(){M.postMessage(null)}}else S=function(){m(A,0)};function R(e){k=e,O||(O=!0,S())}function D(e,n){E=m((function(){e(t.unstable_now())}),n)}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(){v||h||(v=!0,R(_))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch(o="object"==I(o)&&null!==o&&"number"==typeof(o=o.delay)&&0<o?a+o:a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:f++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,n(l,e),null===r(c)&&e===r(l)&&(g?(y(E),E=-1):g=!0,D(w,o-a))):(e.sortIndex=s,n(c,e),v||h||(v=!0,R(_))),e},t.unstable_shouldYield=C,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}).call(this,n(950).setImmediate)},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,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(951),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(this,n(96))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i,o,a,s,u=1,c={},l=!1,f=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d: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}}()?(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,"*")}):e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){h(e.data)},r=function(e){o.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(i=f.documentElement,r=function(e){var t=f.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)},d.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[u]=i,r(u),u++},d.clearImmediate=p}function p(e){delete c[e]}function h(e){if(l)setTimeout(h,0,e);else{var t=c[e];if(t){l=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{p(e),l=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(96),n(210))},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 u=1e3;o&&"number"==typeof o.maxKeys&&(u=o.maxKeys);var c=e.length;u>0&&c>u&&(c=u);for(var l=0;l<c;++l){var f,d,p,h,v=e[l].replace(s,"%20"),g=v.indexOf(n);g>=0?(f=v.substr(0,g),d=v.substr(g+1)):(f=v,d=""),p=decodeURIComponent(f),h=decodeURIComponent(d),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(I(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"==I(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,n){var r=n(414);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t,r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(960);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";n.r(t),n.d(t,"useApi",(function(){return f})),n.d(t,"useMutationApi",(function(){return d}));var r=n(6),i=n.n(r),o=n(131),a=n(169),s=n(0);function u(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 c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){i()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l=function(){return{updateAuthIfNeeded:Object(s.useCallback)((function(){return new Promise((function(e){e()}))}),[]),catchAuthError:Object(s.useCallback)((function(e){throw 401===(null==e?void 0:e.response.status)&&logout(),e}),[])}},f=function(e){var t=e.queryKey,n=e.queryFn,r=e.options,i=void 0===r?{}:r,a=l(),s=a.updateAuthIfNeeded,u=a.catchAuthError;return Object(o.useQuery)(t,(function(){return s().then(n).then((function(e){return e.data})).catch(u)}),c({refetchInterval:!1,refetchOnWindowFocus:!1,retry:!1},i))},d=function(e,t,n,r){var i=l(),s=i.updateAuthIfNeeded,u=i.catchAuthError;return Object(o.useMutation)((function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return s().then((function(){return e.apply(void 0,n)})).catch(u)}),c({onSuccess:function(e,n){t(n),null!=n&&n.onSuccess&&Object(a.isFunction)(n.onSuccess)&&n.onSuccess(e,n)},onError:function(e,t){if(null!=t&&t.onError&&Object(a.isFunction)(t.onError)&&t.onError(e,t),r){var n=e.response.data;n.error,n.errors}}},n))}},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}),t.getAxiosInstance=t.getAuthorization=t.STREAMER_STORAGE_KEY=void 0;var i=r(n(211)),o=n(984),a="undefined"!=typeof window?new URLSearchParams(window.location.search):new URLSearchParams(""),s=a.get("host"),u="undefined"!=typeof window?"".concat(window.location.protocol,"//").concat(window.location.host):"";t.STREAMER_STORAGE_KEY="MediaServerAuth",t.getAuthorization=function(){var e=localStorage.getItem(t.STREAMER_STORAGE_KEY);if(e){var n=JSON.parse(e);return(0,o.loginHeader)({login:n.login,password:n.password})}},t.getAxiosInstance=function(){var e=i.default.create({baseURL:""+(a.get("streamer_host")||s||u),headers:Object.assign(Object.assign({},o.globalHeaders),{"Content-Type":"application/json"})});return e.interceptors.request.use((function(e){var n=(0,t.getAuthorization)();return n&&(e.headers=Object.assign(Object.assign({},e.headers),{Authorization:n})),e})),e}},function(e,t,n){"use strict";var r=n(59),i=n(426),o=n(964),a=n(433),s=function e(t){var n=new o(t),s=i(o.prototype.request,n);return r.extend(s,o.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(272));s.Axios=o,s.CanceledError=n(212),s.CancelToken=n(981),s.isCancel=n(432),s.VERSION=n(434).version,s.toFormData=n(429),s.AxiosError=n(151),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=n(982),s.isAxiosError=n(983),e.exports=s,e.exports.default=s},function(e,t,n){"use strict";var r=n(59),i=n(427),o=n(965),a=n(966),s=n(433),u=n(431),c=n(980),l=c.validators;function f(e){this.defaults=e,this.interceptors={request:new o,response:new o}}f.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&c.assertOptions(n,{silentJSONParsing:l.transitional(l.boolean),forcedJSONParsing:l.transitional(l.boolean),clarifyTimeoutError:l.transitional(l.boolean)},!1);var r=[],i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var o,u=[];if(this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)})),!i){var f=[a,void 0];for(Array.prototype.unshift.apply(f,r),f=f.concat(u),o=Promise.resolve(t);f.length;)o=o.then(f.shift(),f.shift());return o}for(var d=t;r.length;){var p=r.shift(),h=r.shift();try{d=p(d)}catch(e){h(e);break}}try{o=a(d)}catch(e){return Promise.reject(e)}for(;u.length;)o=o.then(u.shift(),u.shift());return o},f.prototype.getUri=function(e){e=s(this.defaults,e);var t=u(e.baseURL,e.url);return i(t,e.params,e.paramsSerializer)},r.forEach(["delete","get","head","options"],(function(e){f.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(s(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}f.prototype[e]=t(),f.prototype[e+"Form"]=t(!0)})),e.exports=f},function(e,t,n){"use strict";var r=n(59);function i(){this.handlers=[]}i.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),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(59),i=n(967),o=n(432),a=n(272),s=n(212);function u(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){return u(e),e.headers=e.headers||{},e.data=i.call(e,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 u(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(u(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(59),i=n(272);e.exports=function(e,t,n){var o=this||i;return r.forEach(n,(function(n){e=n.call(o,e,t)})),e}},function(e,t,n){"use strict";var r=n(59);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";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),a=r[0],s=r[1],u=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),l=0,f=s>0?a-4:a;for(n=0;n<f;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],u[l++]=t>>16&255,u[l++]=t>>8&255,u[l++]=255&t;return 2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,u[l++]=255&t),1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(l(e,a,a+16383>s?s:a+16383));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s<u;++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");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var i,o,a=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&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){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,c=u>>1,l=-7,f=n?i-1:0,d=n?-1:1,p=e[t+f];for(f+=d,o=p&(1<<-l)-1,p>>=-l,l+=s;l>0;o=256*o+e[t+f],f+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=d,l-=8);if(0===o)o=1-c;else{if(o===u)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,u,c=8*o-i-1,l=(1<<c)-1,f=l>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,h=r?1:-1,v=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=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?d/u:d*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-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*v}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";var r=n(151);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new r("Request failed with status code "+n.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},function(e,t,n){"use strict";var r=n(59);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";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(59),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(59);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";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},function(e,t){e.exports=null},function(e,t,n){"use strict";var r=n(434).version,i=n(151),o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function(n){return I(n)===e||"a"+(t<1?"n ":" ")+e}}));var a={};o.transitional=function(e,t,n){function o(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,s){if(!1===e)throw new i(o(r," has been removed"+(t?" in "+t:"")),i.ERR_DEPRECATED);return t&&!a[r]&&(a[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},e.exports={assertOptions:function(e,t,n){if("object"!=I(e))throw new i("options must be an object",i.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),o=r.length;o-- >0;){var a=r[o],s=t[a];if(s){var u=e[a],c=void 0===u||s(u,a,e);if(!0!==c)throw new i("option "+a+" must be "+c,i.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new i("Unknown option "+a,i.ERR_BAD_OPTION)}},validators:o}},function(e,t,n){"use strict";var r=n(212);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;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},i.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},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){"use strict";var r=n(59);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMediaServerHost=t.globalHeaders=t.loginHeader=t.getEncryptedAuth=void 0;var r=n(1047),i="undefined"!=typeof window?new URLSearchParams(window.location.search):new URLSearchParams(""),o=i.get("host"),a=i.get("streamer_host"),s="undefined"!=typeof window?"".concat(window.location.protocol,"//").concat(window.location.host):"";t.getEncryptedAuth=function(e){var t=e.login,n=e.password;return btoa("".concat(t,":").concat(n))},t.loginHeader=function(e){return"Bearer "+(0,t.getEncryptedAuth)({login:e.login,password:e.password})},t.globalHeaders={"X-Originator":"DvrPlayer",Session:(0,r.v4)()},t.getMediaServerHost=function(){return a||o||s}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPathWithParams=void 0,t.getPathWithParams=function(e){var t=e.path,n=e.queryAndPathParams,r=e.encodeParams,i=void 0===r||r,o={},a=t;return n&&Object.entries(n).forEach((function(e){var t=T(e,2),n=t[0],r=t[1];if(a.includes("{".concat(n,"}"))){var s=i?encodeURIComponent(r):r;a=a.replace("{".concat(n,"}"),s)}else o[n]=r})),{pathWithParams:a,queryParams:o}}},function(e,t){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(991),i={};function o(e,t,n,r,i,o,a,s){if(!e){var u;if(void 0===t)u=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],l=0;(u=new Error(t.replace(/%s/g,(function(){return c[l++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}e.exports=function(e,t,n){var a=[],s={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},u={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},c={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)f(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=r({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=r({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=p(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=r({},e.propTypes,t)},statics:function(e,t){!function(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){if(o(!(n in c),'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n),n in e)return o("DEFINE_MANY_MERGED"===(u.hasOwnProperty(n)?u[n]:null),"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),void(e[n]=p(e[n],r));e[n]=r}}}(e,t)},autobind:function(){}};function l(e,t){var n=s.hasOwnProperty(t)?s[t]:null;y.hasOwnProperty(t)&&o("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&o("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function f(e,n){if(n){o("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),o(!t(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var r=e.prototype,i=r.__reactAutoBindPairs;for(var a in n.hasOwnProperty("mixins")&&c.mixins(e,n.mixins),n)if(n.hasOwnProperty(a)&&"mixins"!==a){var u=n[a],f=r.hasOwnProperty(a);if(l(f,a),c.hasOwnProperty(a))c[a](e,u);else{var d=s.hasOwnProperty(a);if("function"!=typeof u||d||f||!1===n.autobind)if(f){var v=s[a];o(d&&("DEFINE_MANY_MERGED"===v||"DEFINE_MANY"===v),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",v,a),"DEFINE_MANY_MERGED"===v?r[a]=p(r[a],u):"DEFINE_MANY"===v&&(r[a]=h(r[a],u))}else r[a]=u;else i.push(a,u),r[a]=u}}}}function d(e,t){for(var n in o(e&&t&&"object"==I(e)&&"object"==I(t),"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects."),t)t.hasOwnProperty(n)&&(o(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function p(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var i={};return d(i,n),d(i,r),i}}function h(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function v(e,t){return t.bind(e)}var g={componentDidMount:function(){this.__isMounted=!0}},m={componentWillUnmount:function(){this.__isMounted=!1}},y={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}},b=function(){};return r(b.prototype,e.prototype,y),function(e){var t=function(e,r,a){this.__reactAutoBindPairs.length&&function(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],i=t[n+1];e[r]=v(e,i)}}(this),this.props=e,this.context=r,this.refs=i,this.updater=a||n,this.state=null;var s=this.getInitialState?this.getInitialState():null;o("object"==I(s)&&!Array.isArray(s),"%s.getInitialState(): must return an object or null",t.displayName||"ReactCompositeComponent"),this.state=s};for(var r in t.prototype=new b,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],a.forEach(f.bind(null,t)),f(t,g),f(t,e),f(t,m),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),o(t.prototype.render,"createClass(...): Class specification must implement a `render` method."),s)t.prototype[r]||(t.prototype[r]=null);return t}}},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;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}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,s,u=a(e),c=1;c<arguments.length;c++){for(var l in n=Object(arguments[c]))i.call(n,l)&&(u[l]=n[l]);if(r){s=r(n);for(var f=0;f<s.length;f++)o.call(n,s[f])&&(u[s[f]]=n[s[f]])}}return u}},function(e,t,n){var r;r=function(){return t={909:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return(0,i.default)("/******/ (() => { // webpackBootstrap\n(function () {\n let statsURL = null;\n let sendTime = 60000;\n let jsonTable = {};\n let sendingInterval = null;\n\n self.addEventListener(\n 'message',\n function (e) {\n let data = e.data;\n //Get command parameter to identify operation\n const { command, commandObj } = data;\n switch (command) {\n case 'start':\n statsURL = commandObj\n .replace(/ws:/, 'http:')\n .replace(/wss:/, 'https:')\n .replace(/mse_ld/, 'sessions');\n start();\n break;\n case 'time':\n correctSendTime(commandObj);\n break;\n case 'stop':\n stop();\n break;\n case 'add':\n addToTable(commandObj);\n break;\n default:\n break;\n }\n },\n false\n );\n\n function correctSendTime(time) {\n sendTime = time;\n }\n\n function start() {\n sendingInterval = this.setInterval(() => {\n post();\n }, sendTime);\n }\n\n function stop() {\n post();\n clearInterval(sendingInterval);\n }\n\n function addToTable(data) {\n jsonTable = { ...jsonTable, ...data };\n\n if (data.event && data.event === 'play_stop') {\n stop();\n }\n }\n\n // function roughSizeOfObject(object) {\n // let objectList = [];\n // let stack = [object];\n // let bytes = 0;\n\n // while (stack.length) {\n // let value = stack.pop();\n\n // if (typeof value === 'boolean') {\n // bytes += 4;\n // } else if (typeof value === 'string') {\n // bytes += value.length * 2;\n // } else if (typeof value === 'number') {\n // bytes += 8;\n // } else if (typeof value === 'object' && objectList.indexOf(value) === -1) {\n // objectList.push(value);\n\n // for (let i in value) {\n // stack.push(value[i]);\n // }\n // }\n // }\n // return bytes;\n // }\n\n function post() {\n if (!jsonTable.started_at) {\n return;\n }\n\n const { source_id } = jsonTable;\n const newUrl = statsURL.replace(/sessions/, `sessions/${source_id ? `${source_id}` : ''}`);\n fetch(newUrl, {\n headers: {\n Accept: 'application/json',\n 'Content-Type': 'application/json',\n },\n method: 'PUT',\n body: JSON.stringify(jsonTable),\n });\n }\n})();\n\n/******/ })()\n;","Worker",void 0,n.p+"stats.worker.js")};var r,i=(r=n(512))&&r.__esModule?r:{default:r};e.exports=t.default},220:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return(0,i.default)("/******/ (() => { // webpackBootstrap\n(function () {\n //Define WebSocket and protocol variables\n let websocket = null;\n let mustStop = false;\n\n //Receive message from WebSocketController\n self.addEventListener(\n 'message',\n function (e) {\n let data = e.data;\n //Get command parameter to identify operation\n let command = data.command;\n\n if (command === 'start') {\n //Establish WebSocket connection\n start(data.commandObj);\n } else if (command === 'disconnect') {\n //Terminate WebSocket connection\n disconnect();\n } else if (command === 'send') {\n sendOMMmessage(data.commandObj);\n }\n },\n false\n );\n\n /* ----------------- Application events functions ----------------- */\n\n //Establish WebSocket connection\n function start(wsURL) {\n websocket = new WebSocket(wsURL);\n websocket.binaryType = 'arraybuffer';\n websocket.onopen = onOpen;\n websocket.onmessage = onMessage;\n websocket.onerror = onError;\n websocket.onclose = onClose;\n }\n\n function disconnect() {\n if (websocket) {\n websocket.close();\n }\n mustStop = true;\n const disconnect_response = {\n command: 'disconnect',\n msg: 'Disconnected',\n };\n self.postMessage(disconnect_response);\n }\n\n //Send message to ADS WebSocket\n function sendOMMmessage(commandObj) {\n websocket.send(commandObj);\n }\n\n /* ----------------- WS events ----------------- */\n\n //Establish WebSocket connection success\n function onOpen() {\n const onOpen_response = {\n command: 'connect',\n msg: 'Connected',\n };\n self.postMessage(onOpen_response);\n }\n\n //Receives incoming message from WebSocket\n function onMessage(event) {\n const rawData = event.data;\n const isDataAB = rawData instanceof ArrayBuffer;\n const parsedData = !isDataAB ? JSON.parse(rawData) : void 0;\n self.postMessage({ rawData, parsedData, isDataAB });\n }\n\n function onError(event) {\n const onError_response = {\n command: 'error',\n msg: JSON.stringify(event),\n };\n self.postMessage(onError_response);\n }\n\n function onClose(e) {\n if (mustStop) {\n return;\n }\n const { code, reason } = e;\n const onClose_response = {\n command: 'close',\n data: { code, reason },\n };\n self.postMessage(onClose_response);\n }\n})();\n\n/******/ })()\n;","Worker",void 0,n.p+"ws.worker.js")};var r,i=(r=n(512))&&r.__esModule?r:{default:r};e.exports=t.default},813:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n=(n=n(624))&&n.__esModule?n:{default:n},t.default=n.default,e.exports=t.default},708:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(203),i=n(216),o=n(435),a=n(339);function s(e){return(s="function"==typeof Symbol&&"symbol"==I(Symbol.iterator)?function(e){return I(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":I(e)})(e)}var u="segments";t.default=function(){return e=function e(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=this,o=e;if(!(n instanceof o))throw new TypeError("Cannot call a class as a function");i.logger.log("create BuffersController"),this.media=t.media,this.init(t),this.doArrayBuffer=r.doArrayBuffer.bind(this),this.maybeAppend=this.maybeAppend.bind(this),this.onSBUpdateEnd=this.onSBUpdateEnd.bind(this),this.onAudioSBUpdateEnd=this.onAudioSBUpdateEnd.bind(this)},(t=[{key:"init",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};this.flushRange=[],this.appended=0,this.mediaSource=e.mediaSource,this.segmentsVideo=[],this.segmentsAudio=[],this.sourceBuffer={},this.totalBytesCollected=0}},{key:"setMediaSource",value:function(e){this.mediaSource=e}},{key:"createSourceBuffers",value:function(e){var t=this,n=this.sourceBuffer;e.tracks.forEach((function(e){var r=e.content===o.VIDEO,i=r?'video/mp4; codecs="avc1.4d401f"':'audio/mp4; codecs="mp4a.40.2"';e.mime_type&&(i=e.mime_type),n[e.content]=t.mediaSource.addSourceBuffer(i),n[e.content].mode=u,i=n[e.content],r?i.addEventListener(a.BUFFER_UPDATE_END,t.onSBUpdateEnd):i.addEventListener(a.BUFFER_UPDATE_END,t.onAudioSBUpdateEnd)}))}},{key:"onSBUpdateEnd",value:function(){var e,t;this._needsEos&&this.checkEos(),!this._needsFlush&&this.segmentsVideo.length&&(e=this.sourceBuffer.video)&&!e.updating&&(t=this.segmentsVideo[0],e.appendBuffer(t.data),this.segmentsVideo.shift(),this.videoBufferSize=this.videoBufferSize-t.data.byteLength,this.appended++)}},{key:"onAudioSBUpdateEnd",value:function(){var e,t;this._needsEos&&this.checkEos(),!this._needsFlush&&this.segmentsAudio.length&&(e=this.sourceBuffer.audio)&&!e.updating&&(t=this.segmentsAudio[0],e.appendBuffer(t.data),this.segmentsAudio.shift(),this.appended++)}},{key:"createTracks",value:function(e){var t=this;e.forEach((function(e){var n=(0,r.base64ToArrayBuffer)(e.payload);e={type:t.getTypeBytrackId(e.id),isInit:!0,data:n},t.maybeAppend(e)}))}},{key:"maybeAppend",value:function(e){var t;this._needsFlush||(!this.media||this.media.error?("audio"===e.type?this.segmentsAudio=[]:this.segmentsVideo=[],i.logger.error("trying to append although a media error occured, flush segment and abort"),this.media.error&&i.logger.error("Error code:",this.media.error)):(t=this.sourceBuffer[e.type])&&!t.updating&&(t.appendBuffer(e.data),("audio"===e.type?this.segmentsAudio:this.segmentsVideo).shift(),this.appended++))}},{key:"setTracksByType",value:function(e){var t=this,n=e.tracks?"tracks":"streams";1===e[n].length&&(this.audioTrackId=null),e[n].forEach((function(e,n){t[e.content===o.VIDEO?"videoTrackId":"audioTrackId"]={index:n,id:e.id}}))}},{key:"getTypeBytrackId",value:function(e){return this.audioTrackId&&this.audioTrackId.id===e?o.AUDIO:o.VIDEO}},{key:"procArrayBuffer",value:function(e){("audio"===(e=this.rawDataToSegmnet(e)).type?this.segmentsAudio:this.segmentsVideo).push(e),this.totalBytesCollected=this.totalBytesCollected+e.data.byteLength,this.doArrayBuffer(e),this.sourceBuffer&&(this.sourceBuffer.video&&!this.sourceBuffer.video.updating&&this.onSBUpdateEnd(),this.audioTrackId)&&this.sourceBuffer.audio&&!this.sourceBuffer.audio.updating&&this.onAudioSBUpdateEnd()}},{key:"seek",value:function(){for(var e in this.sourceBuffer)this.sourceBuffer[e].abort(),this.sourceBuffer[e].mode=u}},{key:"isBuffered",value:function(){var e,t=0,n=this.sourceBuffer;for(e in n)t+=n[e].buffered.length;return 0<t}},{key:"doFlush",value:function(){for(;this.flushRange.length;){var e=this.flushRange[0];if(!this.flushBuffer(e.start,e.end,e.type))return void(this._needsFlush=!0);this.flushRange.shift(),this.flushBufferCounter=0}if(0===this.flushRange.length){this._needsFlush=!1;var t=0,n=this.sourceBuffer;try{for(var r in n)t+=n[r].buffered.length}catch(e){i.logger.error("error while accessing sourceBuffer.buffered")}this.appended=t,this._setTracksFlag=!1}}},{key:"flushBuffer",value:function(e,t,n){var r,o,a,s,u,c,l=this.sourceBuffer;if(Object.keys(l).length){if(i.logger.log("flushBuffer,pos/start/end: ".concat(this.media.currentTime.toFixed(3),"/").concat(e,"/").concat(t)),this.flushBufferCounter<this.appended){for(var f in l)if(!n||f===n){if((r=l[f]).ended=!1,r.updating)return i.logger.warn("cannot flush, sb updating in progress"),!1;try{for(o=0;o<r.buffered.length;o++)if(a=r.buffered.start(o),s=r.buffered.end(o),c=-1!==navigator.userAgent.toLowerCase().indexOf("firefox")&&t===Number.POSITIVE_INFINITY?(u=e,t):(u=Math.max(a,e),Math.min(s,t)),.5<Math.min(c,s)-u)return this.flushBufferCounter++,i.logger.log("flush ".concat(f," [").concat(u,",").concat(c,"], of [").concat(a,",").concat(s,"], pos:").concat(this.media.currentTime)),r.remove(u,c),!1}catch(e){i.logger.warn("exception while accessing sourcebuffer, it might have been removed from MediaSource")}}}else i.logger.warn("abort flushing too many retries");i.logger.log("buffer flushed")}return!0}},{key:"rawDataToSegmnet",value:function(e){e=new Uint8Array(e);var t=(0,r.getTrackId)(e);return{type:this.getTypeBytrackId(t),data:e}}},{key:"onBufferEos",value:function(){var e,t=this.sourceBuffer,n=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).type;for(e in t)n&&e!==n||t[e].ended||(t[e].ended=!0,i.logger.log("".concat(e," sourceBuffer now EOS")));this.checkEos()}},{key:"checkEos",value:function(){var e=this.sourceBuffer,t=this.mediaSource;if(t&&"open"===t.readyState){for(var n in e){if(!(n=e[n]).ended)return;if(n.updating)return void(this._needsEos=!0)}i.logger.log("all media data available, signal endOfStream() to MediaSource and stop loading fragment");try{t.endOfStream()}catch(e){i.logger.warn("exception while calling mediaSource.endOfStream()")}}this._needsEos=!1}},{key:"addSourceBuffer",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"audio",t=((t=this.sourceBuffer)[e]=this.mediaSource.addSourceBuffer("video"===e?'video/mp4; codecs="avc1.4d401f"':'audio/mp4; codecs="mp4a.40.2"'),t[e].mode=u,t[e]);"video"===e?t.addEventListener(a.BUFFER_UPDATE_END,this.onSBUpdateEnd):t.addEventListener(a.BUFFER_UPDATE_END,this.onAudioSBUpdateEnd)}},{key:"removeSourceBuffer",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"audio",t=this.sourceBuffer[e];"audio"===e?t.removeEventListener(a.BUFFER_UPDATE_END,this.onAudioSBUpdateEnd):t.removeEventListener(a.BUFFER_UPDATE_END,this.onSBUpdateEnd),this.mediaSource.removeSourceBuffer(t),delete this.sourceBuffer[e]}},{key:"destroy",value:function(){this.init()}}])&&function(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,function(e){return e=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return String(e);if("object"!=s(n=n.call(e,"string")))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e),"symbol"==s(e)?e:e+""}(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}(),e.exports=t.default},97:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getWSURL=u;var r=a(n(189)),i=a(n(220)),o=n(216);function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return(s="function"==typeof Symbol&&"symbol"==I(Symbol.iterator)?function(e){return I(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":I(e)})(e)}function u(e,t,n,i){var a,s,u;return(s=(a="",r.default)({url:e})).query&&(a=s.query.split("&").map((function(e){return e.split("=")})).filter((function(e){return"from"!==e[0]&&"tracks"!==e[0]})).map((function(e){return e.join("=")})).join("&"),o.logger.log(a)),s="".concat(s.protocol,"//").concat(s.host).concat(s.pathname,"?"),u=!!n||!!i,"".concat(s).concat(u?"tracks=".concat(n).concat(i):"")+"".concat("").concat("")+"".concat(u&&a?"&":"").concat(a)}t.default=function(){return e=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.opts=t,this.init(),this.onwso=this.open.bind(this),this.onwsm=this.handleReceiveMessage.bind(this),this.onwse=this.handleError.bind(this),this.onwsc=this.onWSClose.bind(this)},(t=[{key:"init",value:function(){this.wsWorker&&delete this.wsWorker,this.opened=!1,this.connectionPromise=void 0,clearTimeout(this.reconnect),this.reconnect=void 0,window.Worker&&(this.wsWorker=new i.default,this.wsWorker.onmessage=this.onWorkerMessage.bind(this))}},{key:"onWorkerMessage",value:function(e){var t=e.data;switch(t.command){case"connect":this.open();break;case"close":this.onWSClose(t);break;case"error":this.handleError(t);break;default:this.handleReceiveMessage(t)}}},{key:"start",value:function(e,t){var n=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"",i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"";return this.connectionPromise=new Promise((function(o,a){n.socketURL={url:e,time:t,videoTrack:r,audioTack:i};var s=u(e,0,r,i);n.wsWorker.postMessage({command:"start",commandObj:s}),n._openingResolve=o,n._openingReject=a})),this.connectionPromise}},{key:"open",value:function(){this.opened||(this.opened=!0,this.paused=!0,this._openingResolve())}},{key:"send",value:function(e){this.wsWorker.postMessage({command:"send",commandObj:e})}},{key:"resume",value:function(){clearTimeout(this.reconnect),o.logger.log("ws: send resume"),this.send("resume"),this.paused=!1}},{key:"pause",value:function(){o.logger.log("ws: send pause"),this.send("pause"),this.paused=!0}},{key:"seek",value:function(e){var t="live"===e?"":"play_from=";o.logger.log("".concat(t).concat(e)),this.send("".concat(t).concat(e))}},{key:"setTracks",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;this.send("set_tracks=".concat(e).concat(t))}},{key:"sendStats",value:function(e){e=JSON.stringify(e),this.send(e)}},{key:"handleReceiveMessage",value:function(e){this.opts.message(e)}},{key:"handleError",value:function(){var e;this.opts.error&&(e=this.opts).error.apply(e,arguments)}},{key:"onWSClose",value:function(e){var t,n,r,i,a=this;o.logger.log("WebSocket lost connection with code ",e.code+" and reason: "+e.reason),this.opts.error&&this.opts.error({error:"WebSocket lost connection",err:"WebSocket lost connection with code ".concat(e.code," and reason: ").concat(e.reason),code:e.code}),this.opts.wsReconnect&&(e.wasClean&&1e3!==e.code&&1006!==e.code?(o.logger.log("Clean websocket stop"),this.destroy()):(t=this.socketURL,n=t.url,r=t.videoTrack,i=t.audioTack,this.reconnect=setTimeout((function(){a.start(n,r,i).then((function(){clearTimeout(a.reconnect)})).catch((function(){a.destroy()}))}),5e3))),this.opts.closed&&this.opts.closed(e)}},{key:"destroy",value:function(){this.wsWorker.postMessage({command:"disconnect"}),clearTimeout(this.reconnect),this.reconnect=void 0,this.init()}}])&&function(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,function(e){return e=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return String(e);if("object"!=s(n=n.call(e,"string")))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e),"symbol"==s(e)?e:e+""}(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}()},435:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.VIDEO=t.AUDIO=void 0,t.VIDEO="video",t.AUDIO="audio"},339:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={MEDIA_SOURCE_SOURCE_OPEN:"sourceopen",MEDIA_SOURCE_SOURCE_ENDED:"sourceended",MEDIA_SOURCE_SOURCE_CLOSE:"sourceclose",MEDIA_ELEMENT_PLAY:"play",MEDIA_ELEMENT_PAUSE:"pause",MEDIA_ELEMENT_PROGRESS:"progress",MEDIA_ELEMENT_EMPTIED:"emptied",MEDIA_ELEMENT_SUSPEND:"suspend",MEDIA_ELEMENT_STALLED:"stalled",MEDIA_ELEMENT_WAITING:"waiting",MEDIA_ELEMENT_RATECHANGE:"ratechange",MEDIA_ELEMENT_PLAYING:"playing",WS_OPEN:"open",WS_MESSAGE:"message",WS_ERROR:"error",WS_CLOSE:"close",BUFFER_UPDATE_END:"updateend",BUFFER_ERROR:"onerror",BUFFER_ABORT:"onabort"},e.exports=t.default},534:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={NOT_HTML_MEDIA_ELEMENT:"media should be an HTMLMediaElement instance"},e.exports=t.default},52:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MSE_MEDIA_SEGMENT=t.MSE_INIT_SEGMENT=t.EVENT_SEGMENT=void 0,t.EVENT_SEGMENT="event",t.MSE_INIT_SEGMENT="mse_init_segment",t.MSE_MEDIA_SEGMENT="mse_media_segment"},624:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n(97)),i=d(n(708)),o=d(n(909)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=p(e)&&"function"!=typeof e)return{default:e};if((t=function(e){var t,n;return"function"!=typeof WeakMap?null:(t=new WeakMap,n=new WeakMap,function(e){return e?n:t}(e))}(t))&&t.has(e))return t.get(e);var n,r,i={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(n in e)"default"!==n&&{}.hasOwnProperty.call(e,n)&&((r=o?Object.getOwnPropertyDescriptor(e,n):null)&&(r.get||r.set)?Object.defineProperty(i,n,r):i[n]=e[n]);return i.default=e,t&&t.set(e,i),i}(n(203)),s=n(216),u=n(52),c=n(435),l=d(n(339)),f=d(n(534));function d(e){return e&&e.__esModule?e:{default:e}}function p(e){return(p="function"==typeof Symbol&&"symbol"==I(Symbol.iterator)?function(e){return I(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":I(e)})(e)}function h(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)),r}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){var r,i;r=e,i=n[t=t],(t=x(t))in r?Object.defineProperty(r,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[t]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */g=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o=(w="function"==typeof Symbol?Symbol:{}).iterator||"@@iterator",a=w.asyncIterator||"@@asyncIterator",s=w.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(t,n,r,o){var a,s,u,c;return n=n&&n.prototype instanceof y?n:y,n=Object.create(n.prototype),o=new T(o||[]),i(n,"_invoke",{value:(a=t,s=r,u=o,c=f,function(t,n){if(c===h)throw Error("Generator is already running");if(c===v){if("throw"===t)throw n;return{value:e,done:!0}}for(u.method=t,u.arg=n;;){var r=u.delegate;if(r&&(r=function t(n,r){var i=r.method,o=n.iterator[i];return o===e?(r.delegate=null,"throw"===i&&n.iterator.return&&(r.method="return",r.arg=e,t(n,r),"throw"===r.method)||"return"!==i&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+i+"' method")),m):"throw"===(i=l(o,n.iterator,r.arg)).type?(r.method="throw",r.arg=i.arg,r.delegate=null,m):(o=i.arg)?o.done?(r[n.resultName]=o.value,r.next=n.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}(r,u))){if(r===m)continue;return r}if("next"===u.method)u.sent=u._sent=u.arg;else if("throw"===u.method){if(c===f)throw c=v,u.arg;u.dispatchException(u.arg)}else"return"===u.method&&u.abrupt("return",u.arg);if(c=h,"normal"===(r=l(a,s,u)).type){if(c=u.done?v:d,r.arg===m)continue;return{value:r.arg,done:u.done}}"throw"===r.type&&(c=v,u.method="throw",u.arg=r.arg)}})}),n}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var f="suspendedStart",d="suspendedYield",h="executing",v="completed",m={};function y(){}function b(){}function x(){}var w,_,S=(u(w={},o,(function(){return this})),(_=(_=Object.getPrototypeOf)&&_(_(C([]))))&&_!==n&&r.call(_,o)&&(w=_),x.prototype=y.prototype=Object.create(w));function O(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){var n;i(this,"_invoke",{value:function(i,o){function a(){return new t((function(n,a){!function n(i,o,a,s){var u;if("throw"!==(i=l(e[i],e,o)).type)return(o=(u=i.arg).value)&&"object"==p(o)&&r.call(o,"__await")?t.resolve(o.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(o).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}));s(i.arg)}(i,o,n,a)}))}return n=n?n.then(a,a):a()}})}function E(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 j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function C(t){if(t||""===t){var n,i=t[o];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return n=-1,(i=function i(){for(;++n<t.length;)if(r.call(t,n))return i.value=t[n],i.done=!1,i;return i.value=e,i.done=!0,i}).next=i}throw new TypeError(p(t)+" is not iterable")}return i(S,"constructor",{value:b.prototype=x,configurable:!0}),i(x,"constructor",{value:b,configurable:!0}),b.displayName=u(x,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){return!!(e="function"==typeof e&&e.constructor)&&(e===b||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,u(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},O(k.prototype),u(k.prototype,a,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new k(c(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(S),u(S,s,"Generator"),u(S,o,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t,n=Object(e),r=[];for(t in n)r.push(t);return r.reverse(),function e(){for(;r.length;){var t=r.pop();if(t in n)return e.value=t,e.done=!1,e}return e.done=!0,e}},t.values=C,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function i(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=e),!!i}for(var o=this.tryEntries.length-1;0<=o;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw 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;0<=n;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}var a=(o=o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc?null:o)?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):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),m},finish:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var n,r,i=this.tryEntries[t];if(i.tryLoc===e)return"throw"===(n=i.completion).type&&(r=n.arg,j(i)),r}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:C(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function m(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function y(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){m(o,r,i,a,s,"next",e)}function s(e){m(o,r,i,a,s,"throw",e)}a(void 0)}))}}function b(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,x(r.key),r)}}function x(e){return e=function(e,t){if("object"!=p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return String(e);if("object"!=p(n=n.call(e,"string")))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(e),"symbol"==p(e)?e:e+""}var w=c.VIDEO,_=c.AUDIO;t.default=function(){function e(t,u){var c=this,l=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},f=this;if(!(f instanceof e))throw new TypeError("Cannot call a class as a function");if(l.debug&&((0,s.enableLogs)(!0),window.humanTime=a.humanTime),s.logger.info("[mse-player]:",e.version),this.opts=l||{},this.media=t,this.url=u,this.firstStart=!0,this.opts.progressUpdateTime=this.opts.progressUpdateTime||500,this.opts.errorsBeforeStop=this.opts.errorsBeforeStop||1,"number"!=typeof this.opts.errorsBeforeStop||isNaN(this.opts.errorsBeforeStop))throw new Error("invalid errorsBeforeStop param, should be number");if(this.opts.connectionRetries=this.opts.connectionRetries||0,"number"!=typeof this.opts.connectionRetries||isNaN(this.opts.connectionRetries))throw new Error("invalid connectionRetries param, should be number");if(this.opts.wsReconnect=this.opts.wsReconnect||!1,"boolean"!=typeof this.opts.wsReconnect)throw new Error("invalid wsReconnect param, should be boolean");if(this.opts.preferHQ=this.opts.preferHQ||!1,"boolean"!=typeof this.opts.preferHQ)throw new Error("invalid preferHQ param, should be boolean");if(this.retry=0,this.retryConnectionTimer,this.opts.retryMuted=this.opts.retryMuted||!1,"boolean"!=typeof this.opts.retryMuted)throw new Error("invalid retryMuted param, should be boolean");if(this.opts.maxBufferDelay=this.opts.maxBufferDelay||2,f=navigator.userAgent,(/Edge/.test(f)||/trident.*rv:1\d/i.test(f))&&(this.opts.maxBufferDelay=10),"number"!=typeof this.opts.maxBufferDelay)throw new Error("invalid maxBufferDelay param, should be number");if(this.opts.videoQuality){if("string"!=typeof this.opts.videoQuality)throw new Error("invalid videoQuality param, should be string");if("highest"!==this.opts.videoQuality&&"lowest"!==this.opts.videoQuality)throw new Error("invalid videoQuality param, should be highest or lowest")}try{this.Sentry=n(Object(function(){var e=new Error("Cannot find module '@sentry/browser'");throw e.code="MODULE_NOT_FOUND",e}()))}catch(t){this.noSentry=!0}if(this.opts.sentryConfig=this.opts.sentryConfig||"","string"!=typeof this.opts.sentryConfig)throw new Error("invalid sentryConfig param, should be string");if(this.opts.sentryConfig.length&&!this.noSentry&&(this.Sentry.init({dsn:this.opts.sentryConfig,environment:"production",release:"Mse Player@"+e.version}),document.onerror=function(e){c.Sentry.captureException(e)}),"number"!=typeof this.opts.maxBufferDelay)throw new Error("invalid maxBufferDelay param, should be number");if(this.opts.statsSendEnable=!("statsSendEnable"in this.opts&&"boolean"==typeof this.opts.statsSendEnable&&!1===this.opts.statsSendEnable),window.Worker&&this.opts.statsSendEnable){if(this.statsWorker=new o.default,this.statsWorker.onmessage=this.onStatsWorkerMessage.bind(this),this.opts.statsSendTime){if("number"!=typeof this.opts.statsSendTime)throw new Error("invalid statsSendTime param, should be number");this.statsWorker.postMessage({command:"time",commandObj:1e3*this.opts.statsSendTime})}this.statsWorker.postMessage({command:"start",commandObj:this.url}),this.statsWorkerStarted=!0}this.resetStats=function(){c.playerStatsObject={proto:"mseld",user_agent:navigator.userAgent,bytes:0,application:{application_name:"mseld_player",application_version:e.version,stall_count:0,pause_count:0,error_count:0,reconnect_count:0,bitrate_change_count:0,live_duration:0,stall_duration:0,pause_duration:0,total_video_frames:0,dropped_video_frames:0,corrupted_video_frames:0}},c.addStat(c.playerStatsObject),!c.statsWorkerStarted&&c.opts.statsSendEnable&&(c.statsWorker.postMessage({command:"start",commandObj:c.url}),c.statsWorkerStarted=!0)},this.onProgress=l&&l.onProgress,l&&l.onDisconnect?this.onDisconnect=l&&l.onDisconnect:this.onDisconnect=function(e){s.logger.log("[websocket status]:",e)},this.onMediaInfo=l&&l.onMediaInfo,this.onError=l&&l.onError,this.onEventCallback=l&&l.onEvent,this.onAutoplay=l&&l.onAutoplay,this.onMuted=l&&l.onMuted,this.onStats=l&&l.onStats,this.onMessage=l&&l.onMessage,this.onPause=l&&l.onPause,this.onResume=l&&l.onResume,t instanceof HTMLMediaElement&&(t.WebKitPlaysInline=!0,t.controls=!1),this.ws=new r.default({message:this.dispatchMessage.bind(this),closed:this.onDisconnect.bind(this),error:this.onError,wsReconnect:this.opts.wsReconnect}),this.sb=new i.default({media:t}),this.messageTime=Date.now(),this.init()}return t=e,d=[{key:"version",get:function(){return"24.6.1"}},{key:"replaceHttpByWS",value:function(e){return a.replaceHttpByWS(e)}},{key:"isSupported",value:function(){return a.isSupportedMSE()}}],(c=[{key:"play",value:function(e,t){var n=this;if(s.logger.log("[mse-player]: play(".concat(e,", ").concat(t,")")),this.playing)s.logger.log("MSE is already playing");else{if(!this.ws||!this.ws.websocket||this._pause)return new Promise((function(r,i){n.mediaSource&&"open"===n.mediaSource.readyState?n._play():(n.mediaSource||n.onAttachMedia({media:n.media}).then((function(){n.onsoa=n._play.bind(n,e,t),n.sb.setMediaSource(n.mediaSource),n.mediaSource.addEventListener(l.default.MEDIA_SOURCE_SOURCE_OPEN,n.onsoa),s.logger.warn("mediaSource did not create"),n.resolveThenMediaSourceOpen=n.resolveThenMediaSourceOpen||r,n.rejectThenMediaSourceOpen=n.rejectThenMediaSourceOpen||i})),n.mediaSource&&"open"!==n.mediaSource.readyState&&(s.logger.warn('readyState is not "open", it\'s currently ',n.mediaSource.readyState),n.shouldPlay=!0,n.resolveThenMediaSourceOpen=n.resolveThenMediaSourceOpen||r,n.rejectThenMediaSourceOpen=n.rejectThenMediaSourceOpen||i))}));s.logger.log("[mse-player]: websocket already opened")}}},{key:"stop",value:function(){var e=this;this.playPromise?(this.onEvent({key:Date.now(),data:{event:"play_stop"}}),this.playerStatsObject.closed_at=Date.now(),this.addStat({closed_at:this.playerStatsObject.closed_at}),this.opts.statsSendEnable&&(this.statsWorkerStarted=!1),this.playPromise.catch(y(g().mark((function t(){return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.resetTimer&&(clearTimeout(e.resetTimer),e.resetTimer=void 0),e._stop)return s.logger.log("[mse-player]: already stopped"),t.abrupt("return");t.next=4;break;case 4:return t.next=6,e.onMediaDetaching();case 6:case"end":return t.stop()}}),t)})))).finally(y(g().mark((function t(){return g().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.resetTimer&&(clearTimeout(e.resetTimer),e.resetTimer=void 0),e._stop)return s.logger.log("[mse-player]: already stopped"),t.abrupt("return");t.next=4;break;case 4:return t.next=6,e.onMediaDetaching();case 6:case"end":return t.stop()}}),t)}))))):(this.resetTimer&&(clearTimeout(this.resetTimer),this.resetTimer=void 0),this.endProgressTimer(),s.logger.log("[mse-player]: no playPromise exists, nothing to stop")),this.firstStart=!0,delete this.uuid}},{key:"pause",value:function(){if(!function(){return!(!(!this._pause&&this.playing&&this.media&&this.ws&&this.mediaSource)||this.mediaSource&&"open"!==this.mediaSource.readyState||!this.playPromise)}.bind(this)())return s.logger.log("[mse:playback] can not do pause");var e=function(){if(this.ws.pause(),this.media.pause(),this._pause=!0,this.playing=!1,this.addPlayerStat("pause_count"),this.pauseStarted=Date.now(),this.onPause)try{this.onPause()}catch(e){s.logger.error("Error "+e.name+":"+e.message+"\n"+e.stack)}}.bind(this);this.playPromise.then(e,e).catch(e,e)}},{key:"restart",value:function(){var e=0<arguments.length&&void 0!==arguments[0]&&!arguments[0]?this.sb.lastLoadedUTC:void 0;this.playing=!1,this.ws.destroy(),this.ws.init(),this.ws.start(this.url,e,this.videoTrack,this.audioTrack),this.addPlayerStat("reconnect_count"),this.onEndStalling()}},{key:"retryConnection",value:function(){var e=this,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;this.retry>=this.opts.connectionRetries?clearInterval(this.retryConnectionTimer):(s.logger.log("%cconnectionRetry:","background: orange;","Retrying ".concat(this.retry+1)),this.mediaSource=void 0,this.init(),this.ws.destroy(),this.sb.destroy(),this.play(t,n).then((function(){e.onEndStalling()})),this.retry=this.retry+1)}},{key:"setTracks",value:function(e){var t,n,r,i,o,a=this;if(this.mediaInfo){if("lowest"===e)e=this.autoTrackSelection(!1);else if("highest"===e)e=this.autoTrackSelection(!0);else if(!Array.isArray(e))return void s.logger.error('tracks should be an Array instance: ["v1", "a1"]');this.playing?(t=this.mediaInfo.streams?"streams":"tracks",n=e.filter((function(e){var n=a.mediaInfo[t].find((function(t){return e===t.track_id}));return!!n&&n.content===w})).join(""),(r=e.filter((function(e){var n=a.mediaInfo[t].find((function(t){return e===t.track_id}));return n?!!n&&n.content===_:null})).join("")).length||n.length||(s.logger.warn("No such stream tracks! Setting to default parameters"),i=this.getVideoTracks(),(o=this.getAudioTracks()).length?r=o[0].track_id:s.logger.warn("No audio tracks"),i.length?n=i[0].track_id:s.logger.warn("No video tracks")),r.length||(this.sb.sourceBuffer.audio&&this.sb.removeSourceBuffer(),this.media.muted=!0,s.logger.warn("No audio tracks")),n.length&&r.length&&this.mediaSource.sourceBuffers.length<=1?(this.stop(),this.videoTrack=n,this.audioTrack=r,this._stop?this.play(n,r):setTimeout((function(){a.play(n,r)}),0)):(this.onStartStalling(),this.ws.setTracks(n,r),this.addPlayerStat("bitrate_change_count"),this.videoTrack=n,this.audioTrack=r,this._setTracksFlag=!0,this.waitForInitFrame=!0)):this.pendingTracks=e}else s.logger.warn("Media info did not loaded. Should try after onMediaInfo triggered or inside.")}},{key:"autoTrackSelection",value:function(e){var t,n,r,i,o,a,u,c,l;if(this.mediaInfo)return t=this.getVideoTracks(),n=this.getAudioTracks(),e?(1===t.length?r=t[0].track_id:(t[0].bitrate?a="bitrate":t[0].pixel_width&&(a="pixel_width"),o=t[0][a],r=t[0].track_id,t.forEach((function(e){e[a]>o&&(o=e[a],r=e.track_id)}))),n.length&&(1===n.length?i=n[0].track_id:(i=n[0].track_id,n.forEach((function(e){e.sample_rate>o&&(i=e.track_id)}))))):(1===t.length?r=t[0].track_id:(t[0].bitrate?c="bitrate":t[0].pixel_width&&(c="pixel_width"),u=t[0][c],r=t[0].track_id,t.forEach((function(e){e[c]<u&&(u=e[c],r=e.track_id)}))),n.length&&(1===n.length?i=n[0].track_id:(l=n[0].sample_rate,i=n[0].track_id,n.forEach((function(e){e.sample_rate<l&&(l=e.sample_rate,i=e.track_id)}))))),e=[],r&&r.length&&e.push(r),i&&i.length&&e.push(i),e;s.logger.warn("Media info did not loaded. Should try after onMediaInfo triggered or inside.")}},{key:"_play",value:function(e,t){var n=this;return this.opts.debug&&console.trace("_play",e,t),new Promise((function(r,i){var o;return s.logger.log("_play",e,t),n.playing?(s.logger.log(o="[mse-player] _play: terminate because already has been playing"),r({message:o})):n._pause?n.ws&&!1===n.ws.opened?(s.logger.log("WebSocket Closed, trying to restart it"),n._pause=!1,void n.restart(!0)):(s.logger.log("WebSocket is in opened state, resuming"),n._pause=!1,n._resume(),n.pauseStarted&&(r=n.playerStatsObject.application)&&(o=r.pause_duration,o+=Date.now()-n.pauseStarted,n.addPlayerStat("pause_duration",!1,o),delete n.pauseStarted),n.playPromise=n.media.play(),s.logger.log("_play: terminate because _paused and should resume"),n.playPromise):(n.resetStats(),n.playerStatsObject.opened_at=Date.now(),n.uuid=n.generateUUID(),n.addStat({opened_at:n.playerStatsObject.opened_at,id:n.uuid}),n.videoTrack=e,n.audioTrack=t,n._pause=!1,void new Promise((function(e,t){return!n.media.autoplay||!0===n.media.muted||n.opts.retryMuted?e():!n.onAutoplay||function(){var e=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod","Safari"];if(navigator.platform)for(;e.length;)if(navigator.platform===e.pop())return!0;return!1}()?(n.media.muted=!0,e()):(n.onAutoplay((function(){return n.media.muted=!1,e()})),void t())})).then((function(){n.liveError||n.ws.start(n.url,n.playTime,n.videoTrack,n.audioTrack).then((function(){return n.playPromise=n.media.play(),n.playPromise.then((function(){n.onStartStalling(),n.startProgressTimer(),n.resolveThenMediaSourceOpen&&(n._stop=!1,n.resolveThenMediaSourceOpen(),n.resolveThenMediaSourceOpen=void 0,n.rejectThenMediaSourceOpen=void 0,clearInterval(n.retryConnectionTimer),n.retry=0),n.onEvent({key:Date.now(),data:{event:"play_started"}})})).catch((function(r){s.logger.log("playPromise rejection.",r),n.ws.connectionPromise&&n.ws.connectionPromise.then((function(){return n.ws.destroy()})),n.opts.retryMuted&&0==n.media.muted&&(n.onMuted&&n.onMuted(),n.media.muted=!0,n._play(e,t)),n.onPlayerError({error:"play_promise_reject",err:r}),n.rejectThenMediaSourceOpen&&(n.rejectThenMediaSourceOpen(),n.resolveThenMediaSourceOpen=void 0,n.rejectThenMediaSourceOpen=void 0),n.opts.retryMuted||n.stop()})),n.playPromise}))})))}))}},{key:"init",value:function(){var t=0<arguments.length&&void 0!==arguments[0]&&arguments[0];this._pause=!1,this.playing=!1,this.liveError=!1,this.shouldPlay=!1,this.audioTrack="",this.videoTrack="",this.endProgressTimer(),t||this.onEvent({key:Date.now(),data:{event:"play_init",userInfo:window.navigator.userAgent,playerInfo:"MSEPlayer".concat(e.version?"@".concat(e.version):"")}})}},{key:"_resume",value:function(){this.ws.resume(),this.onEvent({key:Date.now(),data:{event:"play_websocket_resume"}})}},{key:"onMediaDetaching",value:function(){var e=this;if(this.stopRunning)s.logger.warn("stop is running.");else{if(this.stopRunning=!0,this.handlerMediaDetaching.bind(this),!this.playPromise)return this.handlerMediaDetaching();this.playPromise.catch((function(){return e.handlerMediaDetaching()})).finally((function(){return e.handlerMediaDetaching()}))}}},{key:"handlerMediaDetaching",value:function(){var e=this;return s.logger.info("media source detaching"),new Promise((function(t,n){if(e.removeMediaSource(),!e.media)return n("no media to detach");e.removeListeners(),e.oncvp=null,e.mediaSource=null,e.init(!0),e.ws.destroy(),e.sb.destroy(),e.media.onemptied=function(){return s.logger.log("[mse-player]: media emptied"),e.stopRunning=!1,e._stop=!0,delete e.playPromise,t()}}))}},{key:"removeMediaSource",value:function(){var e=this,t=this.mediaSource;if(t){if("open"===t.readyState)try{t.endOfStream()}catch(e){s.logger.warn("onMediaDetaching:".concat(e.message," while calling endOfStream"))}t.removeEventListener(l.default.MEDIA_SOURCE_SOURCE_OPEN,this.onmso),t.removeEventListener(l.default.MEDIA_SOURCE_SOURCE_ENDED,this.onmse),t.removeEventListener(l.default.MEDIA_SOURCE_SOURCE_CLOSE,this.onmsc),this.onmso=null,this.onmse=null,this.onmsc=null}function n(){e.media.src="",e.media.load(),e.resetTimer&&(clearTimeout(e.resetTimer),e.resetTimer=void 0)}this.playPromise&&this.playPromise.then((function(){n()})).catch((function(){n()}))}},{key:"onMediaElementEmptied",value:function(e){return this.onMediaElementEmptied&&this.media&&(this.media.removeEventListener(l.default.MEDIA_ELEMENT_EMPTIED,this.onMediaElementEmptied),this._onmee=void 0),e}},{key:"onAttachMedia",value:function(e){var t=this;if(this.media=e.media,!((e=this.media)instanceof HTMLMediaElement))throw new Error(f.default.NOT_HTML_MEDIA_ELEMENT);if(e){var n=this.mediaSource=new MediaSource;if(this.onmse=this.onMediaSourceEnded.bind(this),this.onmsc=this.onMediaSourceClose.bind(this),n.addEventListener(l.default.MEDIA_SOURCE_SOURCE_ENDED,this.onmse),n.addEventListener(l.default.MEDIA_SOURCE_SOURCE_CLOSE,this.onmsc),e.src=URL.createObjectURL(n),this.eventLog=function(e){t.onEvent&&t.onEvent(e)},this.addListeners(),!this.liveError)return new Promise((function(e){t.onmso=t.onMediaSourceOpen.bind(t,e),n.addEventListener(l.default.MEDIA_SOURCE_SOURCE_OPEN,t.onmso)}));this.player=void 0}}},{key:"onMediaSourceOpen",value:function(e){e(),(e=this.mediaSource)&&e.removeEventListener(l.default.MEDIA_SOURCE_SOURCE_OPEN,this.onmso),URL.revokeObjectURL(this.media.src),this.shouldPlay&&(this.shouldPlay=!1,s.logger.info("readyState now is ".concat(this.mediaSource.readyState,", and will be played"),this.videoTrack,this.audioTrack),this._play(this.videoTrack,this.audioTrack))}},{key:"onDisconnect",value:function(e){this.onEvent({key:Date.now(),data:{event:"play_diconnected"}}),this.opts.onDisconnect&&this.opts.onDisconnect(e)}},{key:"dispatchMessage",value:function(e){var t=this;if(!this.stopRunning){this.playerStatsObject.first_byte_at||(this.playerStatsObject.first_byte_at=Date.now(),this.addStat({first_byte_at:this.playerStatsObject.first_byte_at}));var n,r=e.rawData,i=e.parsedData;e=e.isDataAB,a.logDM(e,i);try{if(e){if(this.waitForInitFrame)return s.logger.log("old frames");this.sb.procArrayBuffer(r)}if(i&&i.type===u.EVENT_SEGMENT){var o=i[u.EVENT_SEGMENT];switch(s.logger.log("%c ".concat(i.type," ").concat("event"===i.type?i.event:"mse_init_segment"),"background: aquamarine;",i),o){case"resumed":this._pause&&!this.playing&&this.onStartStalling(),this.onResume&&this.onResume();break;case"paused":break;case"seeked":case"switched_to_live":if(this.seekValue=void 0,this.opts.onSeeked)try{this.opts.onSeeked()}catch(e){s.logger.error(e)}break;case"recordings_ended":this._eos=!0,this.sb.onBufferEos();break;case"stream_unavailable":if("static"in i&&0==i.static)s.logger.info("Stream is on on demand mode, waiting for init segment"),this.onStartStalling();else{if(s.logger.warn("do playPromise reject with error"),this.ws.connectionPromise&&this.ws.connectionPromise.then((function(){return t.ws.pause()})),!this.liveError)return this.onPlayerError({error:"playPromise reject - stream unavaible"}),this.liveError=!0,this.shouldPlay=!1,void(this.resetTimer&&(clearTimeout(this.resetTimer),this.resetTimer=void 0));this.rejectThenMediaSourceOpen&&(this.rejectThenMediaSourceOpen(),this.resolveThenMediaSourceOpen=void 0,this.rejectThenMediaSourceOpen=void 0),this.mediaSource.endOfStream()}break;case"tracks_switched":break;default:this.opts.onEvent&&this.opts.onEvent({error:"unhandled_event",event:o}),s.logger.warn("unknown type of event",o)}}else if(i&&i.type===u.MSE_INIT_SEGMENT)return this.procInitSegment(r)}catch(e){a.showDispatchError.bind(this)(e);try{this.media.error?(this.onPlayerError({error:"Media error",mediaError:this.media.error}),this.stop()):this.mediaInfo&&this.mediaInfo.activeStreams&&(n=this.mediaInfo.activeStreams,this.setTracks([n.video||"",n.audio||""]))}catch(e){this.ws.pause()}}}}},{key:"procInitSegment",value:function(t){var n=this;if((t=JSON.parse(t)).type!==u.MSE_INIT_SEGMENT)return s.logger.warn("type is not ".concat(u.MSE_INIT_SEGMENT));this.waitForInitFrame&&(this.waitForInitFrame=!1),this.resetTimer&&(clearTimeout(this.resetTimer),this.resetTimer=void 0),this.sb.isBuffered()&&(this.sb.doFlush(),this.sb.seek()),this.sb.setTracksByType(t);var r,i,o,a=v(v({},t.metadata),{},{tracks:t.metadata.streams||t.metadata.tracks,streams:t.metadata.streams||t.metadata.tracks}),c=t.metadata.streams,l=(t.metadata.tracks&&(c=t.metadata.tracks),{});if(c[o=this.sb.videoTrackId&&this.sb.videoTrackId.id-1]&&c[o].track_id){if(c[o].bitrate&&0===c[o].bitrate||0===c[o].height||0===c[o].width)return void this.onPlayerError({error:"Video track error"});l.video=c[o].track_id}(o=this.sb.audioTrackId&&this.sb.audioTrackId.id-1)&&c[o]&&c[o].track_id&&(c[o].bitrate&&0===c[o].bitrate?(this.onPlayerError({error:"Audio track error"}),t.tracks.forEach((function(e,t){e.id===n.sb.audioTrackId.id&&(r=t)})),t.tracks.splice(r,1),this.sb.sourceBuffer.audio&&(this.mediaSource.removeSourceBuffer(this.sb.sourceBuffer.audio),delete this.sb.sourceBuffer.audio)):l.audio=c[o].track_id),c=v(v({},a),{},{activeStreams:l,version:e.version}),this.playerStatsObject.source_id=t.session_id,this.addStat({source_id:this.playerStatsObject.source_id}),this.doMediaInfo(c),s.logger.log("%cprocInitSegment:","background: lightpink;",t),this.onEvent({key:Date.now(),data:v({event:"play_metadata"},c)}),this.mediaSource&&!this.mediaSource.sourceBuffers.length&&(this.sb.setMediaSource(this.mediaSource),this.sb.createSourceBuffers(t)),this.liveError||this.sb.createTracks(t.tracks),this.opts.videoQuality&&this.firstStart&&(this.firstStart=!1,"lowest"===this.opts.videoQuality?i=this.autoTrackSelection(!1):"highest"===this.opts.videoQuality&&(i=this.autoTrackSelection(!0)),this.ws.setTracks(i[0]||"",i[1]||"")),this.opts.preferHQ&&s.logger.info("[MSE]: preferHQ option is depricated. Use videoQuality(lowest/highest) instead"),this.ws.resume()}},{key:"doMediaInfo",value:function(e){if(s.logger.log("%cmediaInfo:","background: orange;",e),this.mediaInfo=e,this.onMediaInfo)try{this.onMediaInfo(e)}catch(e){s.logger.error(a.errorMsg(e))}}},{key:"getVideoTracks",value:function(){var e;if(this.mediaInfo)return e=this.mediaInfo.streams?"streams":"tracks",this.mediaInfo[e].filter((function(e){return e.content===w}))}},{key:"getAudioTracks",value:function(){var e;if(this.mediaInfo)return e=this.mediaInfo.streams?"streams":"tracks",this.mediaInfo[e].filter((function(e){return e.content===_}))}},{key:"immediateLevelSwitchEnd",value:function(){var e=this,t=this.media;t&&t.buffered.length&&(this.immediateSwitch=!1,this.previouslyPaused||(this.playPromise=t.play(),this.playPromise.then((function(){e._pause=!1,e.playing=!0}))))}},{key:"onStartStalling",value:function(){var e=this;this._pause||(this.resetTimer||(this.resetTimer=setTimeout((function(){e.restart()}),6e4)),this._stalling)||(this.opts.onStartStalling&&this.opts.onStartStalling(),this._stalling=!0,s.logger.log("onStartStalling"),this.playerStatsObject.started_at&&(this.addPlayerStat("stall_count"),this.startStallingTime=Date.now()),this.onEvent({key:Date.now(),data:{event:"play_stalled"}}))}},{key:"onEndStalling",value:function(){var e;this._stalling&&(this.opts.onEndStalling&&this.opts.onEndStalling(),this._stalling=!1,s.logger.log("onEndStalling"),clearTimeout(this.resetTimer),this.resetTimer=void 0,this.startStallingTime&&(e=this.playerStatsObject.application)&&(e=e.stall_duration,e+=Date.now()-this.startStallingTime,this.startStallingTime=null,this.addPlayerStat("stall_duration",!1,e)),this.onEvent({key:Date.now(),data:{event:"play_resumed"}}))}},{key:"startProgressTimer",value:function(){this.timer=setInterval(this.onTimer.bind(this),this.opts.progressUpdateTime)}},{key:"endProgressTimer",value:function(){clearInterval(this.timer),this.timer=void 0}},{key:"onTimer",value:function(){if(this._eos)return s.logger.log("nothing to play");if(this.immediateSwitch&&this.immediateLevelSwitchEnd(),this.sb.lastLoadedUTC!==this.utcPrev&&!this._stalling&&(this.utcPrev=this.sb.lastLoadedUTC,this.onProgress))try{this.onProgress(this.sb.lastLoadedUTC)}catch(e){s.logger.error(a.errorMsg(e))}}},{key:"onMediaSourceEnded",value:function(){s.logger.log("media source ended");try{this.opts.onEOS&&this.opts.onEOS()}catch(e){s.logger.error("error while proccessing onEOS")}}},{key:"onMediaSourceClose",value:function(){s.logger.log("media source closed")}},{key:"onConnectionRetry",value:function(){var e=this;this.retryConnectionTimer||this._stop?this.retry>=this.opts.connectionRetries&&clearInterval(this.retryConnectionTimer):this.retry<this.opts.connectionRetries&&(this.retryConnectionTimer=setInterval((function(){return e.retryConnection()}),5e3))}},{key:"loadingIndication",value:function(e){"playing"===(e=e.type)?(this.playing=!0,this.onEndStalling(),this.playerStatsObject.started_at||(this.playerStatsObject.started_at=Date.now(),this.addStat({started_at:this.playerStatsObject.started_at}))):"waiting"===e&&(this.playing=!1,this.onStartStalling())}},{key:"onEvent",value:function(e){this.onEventCallback&&this.onEventCallback(e)}},{key:"onPlayerError",value:function(e){this.playerStatsObject&&this.addPlayerStat("error_count"),this.onError&&this.onError(e)}},{key:"addListeners",value:function(){this.media&&(this.oncvp=a.checkVideoProgress(this.media,this).bind(this),this.media.addEventListener(l.default.MEDIA_ELEMENT_PROGRESS,this.oncvp),this.media.addEventListener(l.default.MEDIA_ELEMENT_PLAYING,this.loadingIndication.bind(this)),this.media.addEventListener(l.default.MEDIA_ELEMENT_WAITING,this.loadingIndication.bind(this)))}},{key:"removeListeners",value:function(){this.media&&(this.media.removeEventListener(l.default.MEDIA_ELEMENT_PROGRESS,this.oncvp),this.media.removeEventListener(l.default.MEDIA_ELEMENT_PLAYING,this.loadingIndication),this.media.removeEventListener(l.default.MEDIA_ELEMENT_WAITING,this.loadingIndication))}},{key:"generateUUID",value:function(){var e=(new Date).getTime(),t="undefined"!=typeof performance&&performance.now&&1e3*performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(n){var r=16*Math.random();return 0<e?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(t+r)%16|0,t=Math.floor(t/16)),("x"===n?r:3&r|8).toString(16)}))}},{key:"addPlayerStat",value:function(e){var t=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,r=this.playerStatsObject.application;r&&(n?r[e]=Math.round(n):t&&r[e]++,this.playerStatsObject.application=r,this.addStat({application:r}))}},{key:"addStat",value:function(e){this.statsWorker&&this.statsWorker.postMessage({command:"add",commandObj:e})}},{key:"getStats",value:function(){return v(v({},this.playerStatsObject),{},{id:this.uuid})}},{key:"onStatsWorkerMessage",value:function(){var e;this.playerStatsObject.started_at&&this.opts.statsSendEnable&&(e=(this.playerStatsObject&&this.playerStatsObject.source_id||{}).source_id,e=this.url.replace(/sessions/,"sessions/".concat(e?"".concat(e):"")),fetch(e,{headers:{Accept:"application/json","Content-Type":"application/json"},method:"PUT",body:JSON.stringify(this.getStats())}))}}])&&b(t.prototype,c),d&&b(t,d),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,c,d}(),e.exports=t.default},216:function(e,t,n){function r(e){return(r="function"==typeof Symbol&&"symbol"==I(Symbol.iterator)?function(e){return I(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":I(e)})(e)}function i(){}Object.defineProperty(t,"__esModule",{value:!0}),t.logger=t.enableLogs=void 0;var o={trace:i,debug:i,log:i,warn:i,info:i,error:i},a=o;function s(e){var t=n.g.console[e];return t?function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];i[0]&&(i[0]="["+e+"] > "+i[0]),i&&t.apply(n.g.console,i)}:i}t.enableLogs=function(e){if(!0===e||"object"===r(e)){!function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];n.forEach((function(t){a[t]=e[t]?e[t].bind(e):s(t)}))}(e,"trace","debug","log","info","warn","error");try{a.log()}catch(e){a=o}}else a=o},t.logger=a},203:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RawDataToUint8Array=function(e){return new Uint8Array(e)},t.base64ToArrayBuffer=function(e){return Uint8Array.from(atob(e),(function(e){return e.charCodeAt(0)}))},t.checkVideoProgress=void 0,t.debugData=s,t.doArrayBuffer=function(e){e.isInit||(this.utc=a(e.data),this.lastLoadedUTC=this.utc)},t.errorMsg=void 0,t.getMediaSource=i,t.getRealUtcFromData=a,t.getTrackId=function(e){return e[47]},t.humanTime=function(e){var t,n,r=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];return 0<e?(e=e,(t=new Date).setTime(1e3*e),r=(e=!(!1===r))?t.getHours():t.getUTCHours(),n=e?t.getMinutes():t.getUTCMinutes(),e=e?t.getSeconds():t.getUTCSeconds(),c(r)+":"+c(n)+":"+c(e)):""},t.isAndroid=o,t.isSupportedMSE=function(){if(o())return!1;var e=i(),t=window.SourceBuffer||window.WebKitSourceBuffer;return e=e&&"function"==typeof e.isTypeSupported&&e.isTypeSupported('video/mp4; codecs="avc1.4d401f,mp4a.40.2"'),t=!t||t.prototype&&"function"==typeof t.prototype.appendBuffer&&"function"==typeof t.prototype.remove,!!e&&!!t},t.logDM=function(e,t){t&&r.logger.log("%c ".concat(t.type," ").concat("event"===t.type?t.event:"mse_init_segment"),"background: aquamarine;",t)},t.pad2=c,t.replaceHttpByWS=void 0,t.showDispatchError=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"";"data"in e&&e.data instanceof ArrayBuffer&&r.logger.error("Data:",s(e.data)),r.logger.error(u(e),t),this.media&&"error"in this.media&&r.logger.error("MediaError:",this.media.error),++l>=this.opts.errorsBeforeStop&&(l=0,this.stopPromise=this.stop()),this.onError&&this.onError(t,e)};var r=n(216);function i(){if("undefined"!=typeof window)return window.MediaSource||window.WebKitMediaSource}function o(){return-1!==navigator.userAgent.indexOf("Android")}function a(e){return(e[92]<<24|e[93]<<16|e[94]<<8|e[95])+(e[96]<<24|e[97]<<16|e[98]<<8|e[99])/1e6}function s(e){return{trackId:(e=new Uint8Array(e))[47],utc:a(e),view:e}}t.checkVideoProgress=function(e,t){return function(){var n,i,o,a,s,u=e.currentTime,c=e.buffered,l=e.buffered.length;if(t)for(var f=t.sb.sourceBuffer,d=Object.keys(f),p=u-30,h=d.length-1;0<=h;h--){var v,g;(g=f[g=d[h]])&&0<(v=g.buffered).length&&p>v.start(0)&&function(e,t,n){try{for(var i=0;i<e.buffered.length;i++){var o=e.buffered.start(i),a=e.buffered.end(i),s=Math.max(o,0),u=Math.min(a,n);if(.5<Math.min(u,a)-s)return e.updating||e.remove(s,u)}}catch(e){r.logger.warn("removeBufferRange failed",e)}}(g,0,p)}t.media.readyState<=2&&2===t.media.networkState?t.onStartStalling():2<t.media.readyState&&t.onEndStalling(),l&&(c=c.end(l-1),n=Math.abs(c-u),t.playerStatsObject&&(t.playerStatsObject.bytes=t.sb.totalBytesCollected,t.playerStatsObject.updated_at=Date.now(),t.playing&&(t.playbackSegmentStart&&(s=t.playerStatsObject.application)&&(i=(a=t.media.getVideoPlaybackQuality()).corruptedVideoFrames,o=a.droppedVideoFrames,a=a.totalVideoFrames,s=s.live_duration,s+=t.playerStatsObject.updated_at-t.playbackSegmentStart,t.addPlayerStat("live_duration",!1,s),t.addPlayerStat("total_video_frames",!1,a),t.addPlayerStat("dropped_video_frames",!1,o),t.addPlayerStat("corrupted_video_frames",!1,i)),t.playbackSegmentStart=t.playerStatsObject.updated_at),t.addStat({updated_at:t.playerStatsObject.updated_at,bytes:t.sb.totalBytesCollected})),n<=t.opts.maxBufferDelay||(r.logger.log("nudge",u,"->",l?c:"-",u-c),e.currentTime=c-.2))}},t.replaceHttpByWS=function(e){return e.replace(/^http/,"ws")};var u=t.errorMsg=function(e){return"Error ".concat(e.name,": ").concat(e.message,"\n").concat(e.stack)};function c(e){return e<=9?"0"+e:""+e}var l=0},75:function(e,t,n){var r=n(453),i=n(487),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){return"function"==typeof(t=r(e,!!t))&&-1<o(e,".prototype.")?i(t):t}},487:function(e,t,n){function r(){return l(i,u,arguments)}var i=n(743),o=n(453),a=n(897),s=n(675),u=o("%Function.prototype.apply%"),c=o("%Function.prototype.call%"),l=o("%Reflect.apply%",!0)||i.call(c,u),f=(n=n(655),o("%Math.max%"));e.exports=function(e){if("function"!=typeof e)throw new s("a function is required");var t=l(i,c,arguments);return a(t,1+f(0,e.length-(arguments.length-1)),!0)},n?n(e.exports,"apply",{value:r}):e.exports.apply=r},41:function(e,t,n){var r=n(655),i=n(68),o=n(675),a=n(795);e.exports=function(e,t,n){if(!e||"object"!=I(e)&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=I(t))throw new o("`property` must be a string or a symbol`");if(3<arguments.length&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(4<arguments.length&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(5<arguments.length&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(6<arguments.length&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=3<arguments.length?arguments[3]:null,u=4<arguments.length?arguments[4]:null,c=5<arguments.length?arguments[5]:null,l=6<arguments.length&&arguments[6],f=!!a&&a(e,t);if(r)r(e,t,{configurable:null===c&&f?f.configurable:!c,enumerable:null===s&&f?f.enumerable:!s,value:n,writable:null===u&&f?f.writable:!u});else{if(!l&&(s||u||c))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}}},655:function(e,t,n){if(n=n(453)("%Object.defineProperty%",!0)||!1)try{n({},"a",{value:1})}catch(e){n=!1}e.exports=n},237:function(e){e.exports=EvalError},383:function(e){e.exports=Error},290:function(e){e.exports=RangeError},538:function(e){e.exports=ReferenceError},68:function(e){e.exports=SyntaxError},675:function(e){e.exports=TypeError},345:function(e){e.exports=URIError},353:function(e){function t(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n}var n=Object.prototype.toString,r=Math.max;e.exports=function(e){var i=this;if("function"!=typeof i||"[object Function]"!==n.apply(i))throw new TypeError("Function.prototype.bind called on incompatible "+i);for(var o,a,s=function(e,t){for(var n=[],r=1,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n}(arguments),u=r(0,i.length-s.length),c=[],l=0;l<u;l++)c[l]="$"+l;return o=Function("binder","return function ("+function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=",");return n}(c)+"){ return binder.apply(this,arguments); }")((function(){var n;return this instanceof o?(n=i.apply(this,t(s,arguments)),Object(n)===n?n:this):i.apply(e,t(s,arguments))})),i.prototype&&((a=function(){}).prototype=i.prototype,o.prototype=new a,a.prototype=null),o}},743:function(e,t,n){n=n(353),e.exports=Function.prototype.bind||n},453:function(e,t,n){var r,i=n(383),o=n(237),a=n(290),s=n(538),u=n(68),c=n(675),l=n(345),f=Function,d=function(e){try{return f('"use strict"; return ('+e+").constructor;")()}catch(e){}},p=Object.getOwnPropertyDescriptor;if(p)try{p({},"")}catch(e){p=null}function h(){throw new c}var v=p?function(){try{return h}catch(e){try{return p(arguments,"callee").get}catch(e){return h}}}():h,g=n(39)(),m=n(24)(),y=Object.getPrototypeOf||(m?function(e){return e.__proto__}:null),b={},x=(m="undefined"!=typeof Uint8Array&&y?y(Uint8Array):r,{__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":g&&y?y([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":b,"%AsyncGenerator%":b,"%AsyncGeneratorFunction%":b,"%AsyncIteratorPrototype%":b,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":o,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":f,"%GeneratorFunction%":b,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":g&&y?y(y([][Symbol.iterator]())):r,"%JSON%":"object"==("undefined"==typeof JSON?"undefined":I(JSON))?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&g&&y?y((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":a,"%ReferenceError%":s,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&g&&y?y((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&y?y(""[Symbol.iterator]()):r,"%Symbol%":g?Symbol:r,"%SyntaxError%":u,"%ThrowTypeError%":v,"%TypedArray%":m,"%TypeError%":c,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":l,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet});if(y)try{null.error}catch(e){i=y(y(e)),x["%Error.prototype%"]=i}function w(e){var t,n;return"%AsyncFunction%"===e?t=d("async function () {}"):"%GeneratorFunction%"===e?t=d("function* () {}"):"%AsyncGeneratorFunction%"===e?t=d("async function* () {}"):"%AsyncGenerator%"===e?(n=w("%AsyncGeneratorFunction%"))&&(t=n.prototype):"%AsyncIteratorPrototype%"===e&&(n=w("%AsyncGenerator%"))&&y&&(t=y(n.prototype)),x[e]=t}var _={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},S=(o=n(743),n(957)),O=o.call(Function.call,Array.prototype.concat),k=o.call(Function.apply,Array.prototype.splice),E=o.call(Function.call,String.prototype.replace),j=o.call(Function.call,String.prototype.slice),T=o.call(Function.call,RegExp.prototype.exec),C=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,A=/\\(\\)?/g;e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new c("intrinsic name must be a non-empty string");if(1<arguments.length&&"boolean"!=typeof t)throw new c('"allowMissing" argument must be a boolean');if(null===T(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n,r=function(e){var t=j(e,0,1),n=j(e,-1);if("%"===t&&"%"!==n)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new u("invalid intrinsic syntax, expected opening `%`");var r=[];return E(e,C,(function(e,t,n,i){r[r.length]=n?E(i,A,"$1"):t||e})),r}(e),i=0<r.length?r[0]:"",o=((n=function(e,t){var n,r=e;if(S(_,r)&&(r="%"+(n=_[r])[0]+"%"),S(x,r)){var i=x[r];if(void 0!==(i=i===b?w(r):i)||t)return{alias:n,name:r,value:i};throw new c("intrinsic "+e+" exists, but is not available. Please file an issue!")}throw new u("intrinsic "+e+" does not exist!")}("%"+i+"%",t)).name,n.value),a=!1;(n=n.alias)&&(i=n[0],k(r,O([0,1],n)));for(var s=1,l=!0;s<r.length;s+=1){var f=r[s],d=j(f,0,1),h=j(f,-1);if(('"'===d||"'"===d||"`"===d||'"'===h||"'"===h||"`"===h)&&d!==h)throw new u("property names with quotes must have matching quotes");if("constructor"!==f&&l||(a=!0),S(x,d="%"+(i+="."+f)+"%"))o=x[d];else if(null!=o){if(!(f in o)){if(t)return;throw new c("base intrinsic for "+e+" exists, but the property is not available.")}o=p&&s+1>=r.length?(l=!!(h=p(o,f)))&&"get"in h&&!("originalValue"in h.get)?h.get:o[f]:(l=S(o,f),o[f]),l&&!a&&(x[d]=o)}}return o}},795:function(e,t,n){if(n=n(453)("%Object.getOwnPropertyDescriptor%",!0))try{n([],"length")}catch(e){n=null}e.exports=n},592:function(e,t,n){function r(){return!!i}var i=n(655);r.hasArrayLengthDefineBug=function(){if(!i)return null;try{return 1!==i([],"length",{value:1}).length}catch(e){return!0}},e.exports=r},24:function(e){var t={__proto__:null,foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!(t instanceof n)}},39:function(e,t,n){var r="undefined"!=typeof Symbol&&Symbol,i=n(333);e.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==I(r("foo"))&&"symbol"==I(Symbol("bar"))&&i()}},333:function(e){e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"!=I(Symbol.iterator)){var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;if(1!==(n=Object.getOwnPropertySymbols(e)).length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor&&(42!==(n=Object.getOwnPropertyDescriptor(e,t)).value||!0!==n.enumerable))return!1}return!0}},957:function(e,t,n){var r=Function.prototype.call,i=Object.prototype.hasOwnProperty;n=n(743),e.exports=n.call(r,i)},859:function(e,t,n){var r="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"==typeof i.get?i.get:null,a=r&&Map.prototype.forEach,s=(i="function"==typeof Set&&Set.prototype,r=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,i&&r&&"function"==typeof r.get?r.get:null),u=i&&Set.prototype.forEach,c="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,l="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,p=Object.prototype.toString,h=Function.prototype.toString,v=String.prototype.match,g=String.prototype.slice,m=String.prototype.replace,y=String.prototype.toUpperCase,b=String.prototype.toLowerCase,x=RegExp.prototype.test,w=Array.prototype.concat,_=Array.prototype.join,S=Array.prototype.slice,O=Math.floor,k="function"==typeof BigInt?BigInt.prototype.valueOf:null,E=Object.getOwnPropertySymbols,j="function"==typeof Symbol&&"symbol"==I(Symbol.iterator)?Symbol.prototype.toString:null,T="function"==typeof Symbol&&"object"==I(Symbol.iterator),C="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,A=Object.prototype.propertyIsEnumerable,P=("function"==typeof Reflect?Reflect:Object).getPrototypeOf||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function M(e,t){if(e===1/0||e===-1/0||e!=e||e&&-1e3<e&&e<1e3||x.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-O(-e):O(e);if(r!==e)return e=String(r),r=g.call(t,e.length+1),m.call(e,n,"$&_")+"."+m.call(m.call(r,/([0-9]{3})/g,"$&_"),/_$/,"")}return m.call(t,n,"$&_")}var R=n(634),D=B(r=R.custom)?r:null;function L(e,t,n){return(n="double"===(n.quoteStyle||t)?'"':"'")+e+n}function N(e){return!("[object Array]"!==V(e)||C&&"object"==I(e)&&C in e)}function F(e){return!("[object RegExp]"!==V(e)||C&&"object"==I(e)&&C in e)}function B(e){if(T)return e&&"object"==I(e)&&e instanceof Symbol;if("symbol"==I(e))return 1;if(e&&"object"==I(e)&&j)try{return j.call(e),1}catch(e){}}e.exports=function e(t,r,i,p){var y=r||{};if(z(y,"quoteStyle")&&"single"!==y.quoteStyle&&"double"!==y.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(z(y,"maxStringLength")&&("number"==typeof y.maxStringLength?y.maxStringLength<0&&y.maxStringLength!==1/0:null!==y.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');if("boolean"!=typeof(r=!z(y,"customInspect")||y.customInspect)&&"symbol"!==r)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(z(y,"indent")&&null!==y.indent&&"\t"!==y.indent&&!(parseInt(y.indent,10)===y.indent&&0<y.indent))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(z(y,"numericSeparator")&&"boolean"!=typeof y.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var x=y.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,n){if(t.length>n.maxStringLength)return r="... "+(r=t.length-n.maxStringLength)+" more character"+(1<r?"s":""),e(g.call(t,0,n.maxStringLength),n)+r;var r=m.call(m.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,W);return L(r,"single",n)}(t,y);if("number"==typeof t)return 0===t?0<1/0/t?"0":"-0":(ee=String(t),x?M(t,ee):ee);if("bigint"==typeof t)return ee=String(t)+"n",x?M(t,ee):ee;if((x=void 0===y.depth?5:y.depth)<=(i=void 0===i?0:i)&&0<x&&"object"==I(t))return N(t)?"[Array]":"[Object]";var O,E,U,X,Q,Z,J,ee=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&0<e.indent))return null;n=_.call(Array(e.indent+1)," ")}return{base:n,prev:_.call(Array(t+1),n)}}(y,i);if(void 0===p)p=[];else if(0<=H(p,t))return"[Circular]";function te(t,n,r){return n&&(p=S.call(p)).push(n),r?(n={depth:y.depth},z(y,"quoteStyle")&&(n.quoteStyle=y.quoteStyle),e(t,n,i+1,p)):e(t,y,i+1,p)}if("function"==typeof t&&!F(t))return"[Function"+((E=function(e){return e.name||((e=v.call(h.call(e),/^function\s*([\w$]+)/))?e[1]:null)}(t))?": "+E:" (anonymous)")+"]"+(0<(E=$(t,te)).length?" { "+_.call(E,", ")+" }":"");if(B(t))return E=T?m.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):j.call(t),"object"!=I(t)||T?E:q(E);if(function(e){return e&&"object"==I(e)&&("undefined"!=typeof HTMLElement&&e instanceof HTMLElement||"string"==typeof e.nodeName&&"function"==typeof e.getAttribute)}(t)){for(var ne="<"+b.call(String(t.nodeName)),re=t.attributes||[],ie=0;ie<re.length;ie++)ne+=" "+re[ie].name+"="+L((O=re[ie].value,m.call(String(O),/"/g,""")),"double",y);return ne+=">",t.childNodes&&t.childNodes.length&&(ne+="..."),ne+"</"+b.call(String(t.nodeName))+">"}if(N(t))return 0===t.length?"[]":(E=$(t,te),ee&&!function(e){for(var t=0;t<e.length;t++)if(0<=H(e[t],"\n"))return;return 1}(E)?"["+K(E,ee)+"]":"[ "+_.call(E,", ")+" ]");if(!("[object Error]"!==V(E=t)||C&&"object"==I(E)&&C in E))return Q=$(t,te),"cause"in Error.prototype||!("cause"in t)||A.call(t,"cause")?0===Q.length?"["+String(t)+"]":"{ ["+String(t)+"] "+_.call(Q,", ")+" }":"{ ["+String(t)+"] "+_.call(w.call("[cause]: "+te(t.cause),Q),", ")+" }";if("object"==I(t)&&r){if(D&&"function"==typeof t[D]&&R)return R(t,{depth:x-i});if("symbol"!==r&&"function"==typeof t.inspect)return t.inspect()}return function(e){if(o&&e&&"object"==I(e))try{o.call(e);try{s.call(e)}catch(e){return 1}return e instanceof Map}catch(e){}}(t)?(U=[],a&&a.call(t,(function(e,n){U.push(te(n,t,!0)+" => "+te(e,t))})),Y("Map",o.call(t),U,ee)):function(e){if(s&&e&&"object"==I(e))try{s.call(e);try{o.call(e)}catch(e){return 1}return e instanceof Set}catch(e){}}(t)?(X=[],u&&u.call(t,(function(e){X.push(te(e,t))})),Y("Set",s.call(t),X,ee)):function(e){if(c&&e&&"object"==I(e))try{c.call(e,c);try{l.call(e,l)}catch(e){return 1}return e instanceof WeakMap}catch(e){}}(t)?G("WeakMap"):function(e){if(l&&e&&"object"==I(e))try{l.call(e,l);try{c.call(e,c)}catch(e){return 1}return e instanceof WeakSet}catch(e){}}(t)?G("WeakSet"):function(e){if(f&&e&&"object"==I(e))try{return f.call(e),1}catch(e){}}(t)?G("WeakRef"):"[object Number]"!==V(Q=t)||C&&"object"==I(Q)&&C in Q?function(e){if(e&&"object"==I(e)&&k)try{return k.call(e),1}catch(e){}}(t)?q(te(k.call(t))):"[object Boolean]"!==V(x=t)||C&&"object"==I(x)&&C in x?"[object String]"!==V(r=t)||C&&"object"==I(r)&&C in r?"undefined"!=typeof window&&t===window?"{ [object Window] }":"undefined"!=typeof globalThis&&t===globalThis||void 0!==n.g&&t===n.g?"{ [object globalThis] }":("[object Date]"!==V(x=t)||C&&"object"==I(x)&&C in x)&&!F(t)?(r=$(t,te),x=P?P(t)===Object.prototype:t instanceof Object||t.constructor===Object,Z=t instanceof Object?"":"null prototype",J=!x&&C&&Object(t)===t&&C in t?g.call(V(t),8,-1):Z?"Object":"",x=(!x&&"function"==typeof t.constructor&&t.constructor.name?t.constructor.name+" ":"")+(J||Z?"["+_.call(w.call([],J||[],Z||[]),": ")+"] ":""),0===r.length?x+"{}":ee?x+"{"+K(r,ee)+"}":x+"{ "+_.call(r,", ")+" }"):String(t):q(te(String(t))):q(d.call(t)):q(te(Number(t)))};var U=Object.prototype.hasOwnProperty||function(e){return e in this};function z(e,t){return U.call(e,t)}function V(e){return p.call(e)}function H(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function W(e){var t={8:"b",9:"t",10:"n",12:"f",13:"r"}[e=e.charCodeAt(0)];return t?"\\"+t:"\\x"+(e<16?"0":"")+y.call(e.toString(16))}function q(e){return"Object("+e+")"}function G(e){return e+" { ? }"}function Y(e,t,n,r){return e+" ("+t+") {"+(r?K(n,r):_.call(n,", "))+"}"}function K(e,t){var n;return 0===e.length?"":(n="\n"+t.prev+t.base)+_.call(e,","+n)+"\n"+t.prev}function $(e,t){var n=N(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=z(e,i)?t(e[i],e):""}var o,a="function"==typeof E?E(e):[];if(T)for(var s={},u=0;u<a.length;u++)s["$"+a[u]]=a[u];for(o in e)!z(e,o)||n&&String(Number(o))===o&&o<e.length||T&&s["$"+o]instanceof Symbol||(x.call(/[^\w$]/,o)?r.push(t(o,e)+": "+t(e[o],e)):r.push(o+": "+t(e[o],e)));if("function"==typeof E)for(var c=0;c<a.length;c++)A.call(e,a[c])&&r.push("["+t(a[c])+"]: "+t(e[a[c]],e));return r}},189:function(e,t,n){ /*! * parseurl * Copyright(c) 2014 Jonathan Ong * Copyright(c) 2014-2017 Douglas Christopher Wilson * MIT Licensed */ var r=(n=n(835)).parse,i=n.Url;function o(e){var t,n=e.url;if(void 0!==n)return s(n,t=e._parsedUrl)?t:((t=a(n))._raw=n,e._parsedUrl=t)}function a(e){if("string"!=typeof e||47!==e.charCodeAt(0))return r(e);for(var t=e,n=null,o=null,a=1;a<e.length;a++)switch(e.charCodeAt(a)){case 63:null===o&&(t=e.substring(0,a),n=e.substring(a+1),o=e.substring(a));break;case 9:case 10:case 12:case 13:case 32:case 35:case 160:case 65279:return r(e)}var s=void 0!==i?new i:{};return s.path=e,s.href=e,s.pathname=t,null!==o&&(s.query=n,s.search=o),s}function s(e,t){return"object"==I(t)&&null!==t&&(void 0===i||t instanceof i)&&t._raw===e}e.exports=o,e.exports.original=function(e){var t=e.originalUrl;if("string"!=typeof t)return o(e);var n=e._parsedOriginalUrl;return s(t,n)?n:((n=a(t))._raw=t,e._parsedOriginalUrl=n)}},897:function(e,t,n){var r=n(453),i=n(41),o=n(592)(),a=n(795),s=n(675),u=r("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new s("`fn` is not a function");if("number"!=typeof t||t<0||4294967295<t||u(t)!==t)throw new s("`length` must be a positive 32-bit integer");var n,r=2<arguments.length&&!!arguments[2],c=!0,l=!0;return"length"in e&&a&&((n=a(e,"length"))&&!n.configurable&&(c=!1),n)&&!n.writable&&(l=!1),!c&&!l&&r||(o?i(e,"length",t,!0,!0):i(e,"length",t)),e}},920:function(e,t,n){function r(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n}var i=n(453),o=n(75),a=n(859),s=n(675),u=i("%WeakMap%",!0),c=i("%Map%",!0),l=o("WeakMap.prototype.get",!0),f=o("WeakMap.prototype.set",!0),d=o("WeakMap.prototype.has",!0),p=o("Map.prototype.get",!0),h=o("Map.prototype.set",!0),v=o("Map.prototype.has",!0);e.exports=function(){var e,t,n,i={assert:function(e){if(!i.has(e))throw new s("Side channel does not contain "+a(e))},get:function(i){if(u&&i&&("object"==I(i)||"function"==typeof i)){if(e)return l(e,i)}else if(c){if(t)return p(t,i)}else{var o;if(n)return(o=r(o=n,i))&&o.value}},has:function(i){if(u&&i&&("object"==I(i)||"function"==typeof i)){if(e)return d(e,i)}else if(c){if(t)return v(t,i)}else if(n)return!!r(n,i);return!1},set:function(i,o){var a,s;u&&i&&("object"==I(i)||"function"==typeof i)?(e=e||new u,f(e,i,o)):c?(t=t||new c,h(t,i,o)):(o=o,(s=r(a=n=n||{key:{},next:null},i=i))?s.value=o:a.next={key:i,next:a.next,value:o})}};return i}},270:function(e,t,n){var r,i,o,a,s,u,c,l,f,d,p,h,v,g;/*! https://mths.be/punycode v1.4.1 by @mathias */function m(e){throw new RangeError(p[e])}function y(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function b(e,t){var n="",r=(1<(r=e.split("@")).length&&(n=r[0]+"@",e=r[1]),(e=e.replace(d,".")).split("."));return n+y(r,t).join(".")}function x(e){for(var t,n,r=[],i=0,o=e.length;i<o;)55296<=(t=e.charCodeAt(i++))&&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 w(e){return y(e,(function(e){var t="";return 65535<e&&(t+=g((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+g(e)})).join("")}function _(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function S(e,t,n){var r=0;for(e=n?v(e/c):e>>1,e+=v(e/t);h*s>>1<e;r+=a)e=v(e/h);return v(r+(h+1)*e/(e+u))}function O(e){var t,n,r,i,u,c,l,f=[],d=e.length,p=0,h=128,g=72,y=e.lastIndexOf("-");for(y<0&&(y=0),n=0;n<y;++n)128<=e.charCodeAt(n)&&m("not-basic"),f.push(e.charCodeAt(n));for(r=0<y?y+1:0;r<d;){for(i=p,u=1,c=a;d<=r&&m("invalid-input"),l=e.charCodeAt(r++),(a<=(l=l-48<10?l-22:l-65<26?l-65:l-97<26?l-97:a)||l>v((o-p)/u))&&m("overflow"),p+=l*u,!(l<(l=c<=g?1:g+s<=c?s:c-g));c+=a)u>v(o/(l=a-l))&&m("overflow"),u*=l;g=S(p-i,t=f.length+1,0==i),v(p/t)>o-h&&m("overflow"),h+=v(p/t),p%=t,f.splice(p++,0,h)}return w(f)}function k(e){for(var t,n,r,i,u,c,l,f,d,p,h=[],y=(e=x(e)).length,b=128,w=72,O=t=0;O<y;++O)(l=e[O])<128&&h.push(g(l));for(n=r=h.length,r&&h.push("-");n<y;){for(i=o,O=0;O<y;++O)b<=(l=e[O])&&l<i&&(i=l);for(i-b>v((o-t)/(f=n+1))&&m("overflow"),t+=(i-b)*f,b=i,O=0;O<y;++O)if((l=e[O])<b&&++t>o&&m("overflow"),l==b){for(u=t,c=a;!(u<(d=c<=w?1:w+s<=c?s:c-w));c+=a)h.push(g(_(d+(p=u-d)%(d=a-d),0))),u=v(p/d);h.push(g(_(u,0))),w=S(t,f,n==r),t=0,++n}++t,++b}return h.join("")}e=n.nmd(e),t&&t.nodeType,e&&e.nodeType,(r="object"==I(n.g)&&n.g).global!==r&&r.window!==r&&r.self,o=2147483647,s=26,u=38,c=700,l=/^xn--/,f=/[^\x20-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},h=(a=36)-1,v=Math.floor,g=String.fromCharCode,i={version:"1.4.1",ucs2:{decode:x,encode:w},decode:O,encode:k,toASCII:function(e){return b(e,(function(e){return f.test(e)?"xn--"+k(e):e}))},toUnicode:function(e){return b(e,(function(e){return l.test(e)?O(e.slice(4).toLowerCase()):e}))}},void 0!==(r=function(){return i}.call(t,n,t,e))&&(e.exports=r)},902:function(e){var t=String.prototype.replace,n=/%20/g,r="RFC3986";e.exports={default:r,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:r}},98:function(e,t,n){var r=n(207),i=n(969);n=n(902),e.exports={formats:n,parse:i,stringify:r}},969:function(e,t,n){function r(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=0<n.depth&&/(\[[^[\]]*])/.exec(i),c=[];if(e=s?i.slice(0,s.index):i){if(!n.plainObjects&&o.call(Object.prototype,e)&&!n.allowPrototypes)return;c.push(e)}for(var l=0;0<n.depth&&null!==(s=a.exec(i))&&l<n.depth;){if(l+=1,!n.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(s[1])}if(s){if(!0===n.strictDepth)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");c.push("["+i.slice(s.index)+"]")}for(var f=c,d=(e=t,n),p=r?e:u(e,d),h=f.length-1;0<=h;--h){var v,g,m,y=f[h];"[]"===y&&d.parseArrays?v=d.allowEmptyArrays&&(""===p||d.strictNullHandling&&null===p)?[]:[].concat(p):(v=d.plainObjects?Object.create(null):{},g="["===y.charAt(0)&&"]"===y.charAt(y.length-1)?y.slice(1,-1):y,g=d.decodeDotInKeys?g.replace(/%2E/g,"."):g,m=parseInt(g,10),d.parseArrays||""!==g?!isNaN(m)&&y!==g&&String(m)===g&&0<=m&&d.parseArrays&&m<=d.arrayLimit?(v=[])[m]=p:"__proto__"!==g&&(v[g]=p):v={0:p}),p=v}return p}}var i=n(176),o=Object.prototype.hasOwnProperty,a=Array.isArray,s={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:i.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},u=function(e,t){return e&&"string"==typeof e&&t.comma&&-1<e.indexOf(",")?e.split(","):e};e.exports=function(e,t){var n=function(e){if(!e)return s;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!=e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=(void 0===e.charset?s:e).charset,n=(void 0===e.duplicates?s:e).duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||s.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:s.allowEmptyArrays,allowPrototypes:("boolean"==typeof e.allowPrototypes?e:s).allowPrototypes,allowSparse:("boolean"==typeof e.allowSparse?e:s).allowSparse,arrayLimit:("number"==typeof e.arrayLimit?e:s).arrayLimit,charset:t,charsetSentinel:("boolean"==typeof e.charsetSentinel?e:s).charsetSentinel,comma:("boolean"==typeof e.comma?e:s).comma,decodeDotInKeys:("boolean"==typeof e.decodeDotInKeys?e:s).decodeDotInKeys,decoder:("function"==typeof e.decoder?e:s).decoder,delimiter:("string"==typeof e.delimiter||i.isRegExp(e.delimiter)?e:s).delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:s.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:("boolean"==typeof e.interpretNumericEntities?e:s).interpretNumericEntities,parameterLimit:("number"==typeof e.parameterLimit?e:s).parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:("boolean"==typeof e.plainObjects?e:s).plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:s.strictDepth,strictNullHandling:("boolean"==typeof e.strictNullHandling?e:s).strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var c="string"==typeof e?function(e,t){var n,r,c,l,f={__proto__:null},d=(e=(e=t.ignoreQueryPrefix?e.replace(/^\?/,""):e).replace(/%5B/gi,"[").replace(/%5D/gi,"]"),t.parameterLimit===1/0?void 0:t.parameterLimit),p=e.split(t.delimiter,d),h=-1,v=t.charset;if(t.charsetSentinel)for(n=0;n<p.length;++n)0===p[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===p[n]?v="utf-8":"utf8=%26%2310003%3B"===p[n]&&(v="iso-8859-1"),h=n,n=p.length);for(n=0;n<p.length;++n)n!==h&&((c=-1===(c=-1===(c=(l=p[n]).indexOf("]="))?l.indexOf("="):c+1)?(r=t.decoder(l,s.decoder,v,"key"),t.strictNullHandling?null:""):(r=t.decoder(l.slice(0,c),s.decoder,v,"key"),i.maybeMap(u(l.slice(c+1),t),(function(e){return t.decoder(e,s.decoder,v,"value")}))))&&t.interpretNumericEntities&&"iso-8859-1"===v&&(c=c.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))),-1<l.indexOf("[]=")&&(c=a(c)?[c]:c),(l=o.call(f,r))&&"combine"===t.duplicates?f[r]=i.combine(f[r],c):l&&"last"!==t.duplicates||(f[r]=c));return f}(e,n):e,l=n.plainObjects?Object.create(null):{},f=Object.keys(c),d=0;d<f.length;++d){var p=r(p=f[d],c[p],n,"string"==typeof e);l=i.merge(l,p,n)}return!0===n.allowSparse?l:i.compact(l)}},207:function(e,t,n){function r(e,t){f.apply(e,l(t)?t:[t])}function i(e,t,n,s,u,c,f,d,v,g,m,y,b,x,w,_,S,O){for(var k=e,E=O,j=0,T=!1;void 0!==(E=E.get(h))&&!T;){var C=E.get(e);if(j+=1,void 0!==C){if(C===j)throw new RangeError("Cyclic object value");T=!0}void 0===E.get(h)&&(j=0)}if("function"==typeof g?k=g(t,k):k instanceof Date?k=b(k):"comma"===n&&l(k)&&(k=a.maybeMap(k,(function(e){return e instanceof Date?b(e):e}))),null===k){if(c)return v&&!_?v(t,p.encoder,S,"key",x):t;k=""}if("string"==typeof(M=k)||"number"==typeof M||"boolean"==typeof M||"symbol"==I(M)||"bigint"==typeof M||a.isBuffer(k))return v?[w(_?t:v(t,p.encoder,S,"key",x))+"="+w(v(k,p.encoder,S,"value",x))]:[w(t)+"="+w(String(k))];var A=[];if(void 0!==k){P="comma"===n&&l(k)?[{value:0<(k=_&&v?a.maybeMap(k,v):k).length?k.join(",")||null:void 0}]:l(g)?g:(M=Object.keys(k),m?M.sort(m):M);var P,M=d?t.replace(/\./g,"%2E"):t,R=s&&l(k)&&1===k.length?M+"[]":M;if(u&&l(k)&&0===k.length)return R+"[]";for(var D=0;D<P.length;++D){var L,N=P[D],F="object"==I(N)&&void 0!==N.value?N.value:k[N];f&&null===F||(N=y&&d?N.replace(/\./g,"%2E"):N,N=l(k)?"function"==typeof n?n(R,N):R:R+(y?"."+N:"["+N+"]"),O.set(e,j),(L=o()).set(h,O),r(A,i(F,N,n,s,u,c,f,d,"comma"===n&&_&&l(k)?null:v,g,m,y,b,x,w,_,S,L)))}}return A}var o=n(920),a=n(176),s=n(902),u=Object.prototype.hasOwnProperty,c={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,f=Array.prototype.push,d=Date.prototype.toISOString,p=(n=s.default,{addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:a.encode,encodeValuesOnly:!1,format:n,formatter:s.formatters[n],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1}),h={};e.exports=function(e,t){var n=e,a=function(e){if(!e)return p;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!=e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||p.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=s.default;if(void 0!==e.format){if(!u.call(s.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r,i=s.formatters[n],o=p.filter;if("function"!=typeof e.filter&&!l(e.filter)||(o=e.filter),r=e.arrayFormat in c?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":p.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var a=void 0===e.allowDots?!0===e.encodeDotInKeys||p.allowDots:!!e.allowDots;return{addQueryPrefix:("boolean"==typeof e.addQueryPrefix?e:p).addQueryPrefix,allowDots:a,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:p.allowEmptyArrays,arrayFormat:r,charset:t,charsetSentinel:("boolean"==typeof e.charsetSentinel?e:p).charsetSentinel,commaRoundTrip:e.commaRoundTrip,delimiter:(void 0===e.delimiter?p:e).delimiter,encode:("boolean"==typeof e.encode?e:p).encode,encodeDotInKeys:("boolean"==typeof e.encodeDotInKeys?e:p).encodeDotInKeys,encoder:("function"==typeof e.encoder?e:p).encoder,encodeValuesOnly:("boolean"==typeof e.encodeValuesOnly?e:p).encodeValuesOnly,filter:o,format:n,formatter:i,serializeDate:("function"==typeof e.serializeDate?e:p).serializeDate,skipNulls:("boolean"==typeof e.skipNulls?e:p).skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:("boolean"==typeof e.strictNullHandling?e:p).strictNullHandling}}(t),f=("function"==typeof a.filter?n=(0,a.filter)("",n):l(a.filter)&&(v=a.filter),[]);if("object"!=I(n)||null===n)return"";var d=c[a.arrayFormat],h="comma"===d&&a.commaRoundTrip,v=v||Object.keys(n);a.sort&&v.sort(a.sort);for(var g=o(),m=0;m<v.length;++m){var y=v[m];a.skipNulls&&null===n[y]||r(f,i(n[y],y,d,h,a.allowEmptyArrays,a.strictNullHandling,a.skipNulls,a.encodeDotInKeys,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,g))}return e=f.join(a.delimiter),t=!0===a.addQueryPrefix?"?":"",a.charsetSentinel&&("iso-8859-1"===a.charset?t+="utf8=%26%2310003%3B&":t+="utf8=%E2%9C%93&"),0<e.length?t+e:""}},176:function(e,t,n){function r(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}var i=n(902),o=Object.prototype.hasOwnProperty,a=Array.isArray,s=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}();e.exports={arrayToObject:r,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},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],s=Object.keys(o),u=0;u<s.length;++u){var c=s[u],l=o[c];"object"==I(l)&&null!==l&&-1===n.indexOf(l)&&(t.push({obj:o,prop:c}),n.push(l))}for(var f=t;1<f.length;){var d=f.pop(),p=d.obj[d.prop];if(a(p)){for(var h=[],v=0;v<p.length;++v)void 0!==p[v]&&h.push(p[v]);d.obj[d.prop]=h}}return e},decode:function(e,t,n){if(e=e.replace(/\+/g," "),"iso-8859-1"===n)return e.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(e)}catch(t){return e}},encode:function(e,t,n,r,o){if(0===e.length)return e;var a=e;if("symbol"==I(e)?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===n)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var u="",c=0;c<a.length;c+=1024){for(var l=1024<=a.length?a.slice(c,c+1024):a,f=[],d=0;d<l.length;++d){var p=l.charCodeAt(d);45===p||46===p||95===p||126===p||48<=p&&p<=57||65<=p&&p<=90||97<=p&&p<=122||o===i.RFC1738&&(40===p||41===p)?f[f.length]=l.charAt(d):p<128?f[f.length]=s[p]:p<2048?f[f.length]=s[192|p>>6]+s[128|63&p]:p<55296||57344<=p?f[f.length]=s[224|p>>12]+s[128|p>>6&63]+s[128|63&p]:(d+=1,p=65536+((1023&p)<<10|1023&l.charCodeAt(d)),f[f.length]=s[240|p>>18]+s[128|p>>12&63]+s[128|p>>6&63]+s[128|63&p])}u+=f.join("")}return u},isBuffer:function(e){return!(!e||"object"!=I(e)||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(a(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,i){if(!n)return t;if("object"!=I(n)){if(a(t))t.push(n);else{if(!t||"object"!=I(t))return[t,n];(i&&(i.plainObjects||i.allowPrototypes)||!o.call(Object.prototype,n))&&(t[n]=!0)}return t}var s;return t&&"object"==I(t)?(a(s=t)&&!a(n)&&(s=r(t,i)),a(t)&&a(n)?(n.forEach((function(n,r){var a;o.call(t,r)?(a=t[r])&&"object"==I(a)&&n&&"object"==I(n)?t[r]=e(a,n,i):t.push(n):t[r]=n})),t):Object.keys(n).reduce((function(t,r){var a=n[r];return o.call(t,r)?t[r]=e(t[r],a,i):t[r]=a,t}),s)):[t].concat(n)}}},835:function(e,t,n){var r=n(270);function i(){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}var o=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,s=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,u=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(u),l=["%","/","?",";","#"].concat(c),f=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},m=n(98);function y(e,t,n){var r;return e&&"object"==I(e)&&e instanceof i?e:((r=new i).parse(e,t,n),r)}i.prototype.parse=function(e,t,n){if("string"!=typeof e)throw new TypeError("Parameter 'url' must be a string, not "+I(e));var i=-1!==(i=e.indexOf("?"))&&i<e.indexOf("#")?"?":"#",a=e.split(i);a[0]=a[0].replace(/\\/g,"/");var u,y=(y=e=a.join(i)).trim();if(!n&&1===e.split("#").length&&(a=s.exec(y)))return this.path=y,this.href=y,this.pathname=a[1],a[2]?(this.search=a[2],this.query=t?m.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this;if((i=o.exec(y))&&(u=(i=i[0]).toLowerCase(),this.protocol=u,y=y.substr(i.length)),!(n||i||y.match(/^\/\/[^@/]+@[^@/]+/))||!(M="//"===y.substr(0,2))||i&&v[i]||(y=y.substr(2),this.slashes=!0),!v[i]&&(M||i&&!g[i])){for(var b=-1,x=0;x<f.length;x++)-1!==(w=y.indexOf(f[x]))&&(-1===b||w<b)&&(b=w);var w;for(-1!==(e=-1===b?y.lastIndexOf("@"):y.lastIndexOf("@",b))&&(a=y.slice(0,e),y=y.slice(e+1),this.auth=decodeURIComponent(a)),b=-1,x=0;x<l.length;x++)-1!==(w=y.indexOf(l[x]))&&(-1===b||w<b)&&(b=w);if(-1===b&&(b=y.length),this.host=y.slice(0,b),y=y.slice(b),this.parseHost(),this.hostname=this.hostname||"",!(n="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1]))for(var _=this.hostname.split(/\./),S=(x=0,_.length);x<S;x++){var O=_[x];if(O&&!O.match(d)){for(var k="",E=0,j=O.length;E<j;E++)127<O.charCodeAt(E)?k+="x":k+=O[E];if(!k.match(d)){var T=_.slice(0,x),C=_.slice(x+1),A=O.match(p);A&&(T.push(A[1]),C.unshift(A[2])),C.length&&(y="/"+C.join(".")+y),this.hostname=T.join(".");break}}}255<this.hostname.length?this.hostname="":this.hostname=this.hostname.toLowerCase(),n||(this.hostname=r.toASCII(this.hostname));var P=this.port?":"+this.port:"",M=this.hostname||"";this.host=M+P,this.href+=this.host,n&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0])&&(y="/"+y)}if(!h[u])for(x=0,S=c.length;x<S;x++){var R,D=c[x];-1!==y.indexOf(D)&&((R=encodeURIComponent(D))===D&&(R=escape(D)),y=y.split(D).join(R))}return-1!==(i=y.indexOf("#"))&&(this.hash=y.substr(i),y=y.slice(0,i)),-1!==(e=y.indexOf("?"))?(this.search=y.substr(e),this.query=y.substr(e+1),t&&(this.query=m.parse(this.query)),y=y.slice(0,e)):t&&(this.search="",this.query={}),y&&(this.pathname=y),g[u]&&this.hostname&&!this.pathname&&(this.pathname="/"),(this.pathname||this.search)&&(P=this.pathname||"",a=this.search||"",this.path=P+a),this.href=this.format(),this},i.prototype.format=function(){var e=((o=this.auth||"")&&(o=(o=encodeURIComponent(o)).replace(/%3A/i,":"),o+="@"),this.protocol||""),t=this.pathname||"",n=this.hash||"",r=!1,i="",o=(this.host?r=o+this.host:this.hostname&&(r=o+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port)&&(r+=":"+this.port),this.query&&"object"==I(this.query)&&Object.keys(this.query).length&&(i=m.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1})),this.search||i&&"?"+i||"");return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||g[e])&&!1!==r?(r="//"+(r||""),t&&"/"!==t.charAt(0)&&(t="/"+t)):r=r||"",n&&"#"!==n.charAt(0)&&(n="#"+n),o&&"?"!==o.charAt(0)&&(o="?"+o),e+r+(t=t.replace(/[?#]/g,(function(e){return encodeURIComponent(e)})))+(o=o.replace("#","%23"))+n},i.prototype.resolve=function(e){return this.resolveObject(y(e,!1,!0)).format()},i.prototype.resolveObject=function(e){"string"==typeof e&&((p=new i).parse(e,!1,!0),e=p);for(var t=new i,n=Object.keys(this),r=0;r<n.length;r++){var o=n[r];t[o]=this[o]}if(t.hash=e.hash,""!==e.href)if(e.slashes&&!e.protocol){for(var a=Object.keys(e),s=0;s<a.length;s++){var u=a[s];"protocol"!==u&&(t[u]=e[u])}g[t.protocol]&&t.hostname&&!t.pathname&&(t.pathname="/",t.path=t.pathname)}else if(e.protocol&&e.protocol!==t.protocol)if(g[e.protocol]){if(t.protocol=e.protocol,e.host||v[e.protocol])t.pathname=e.pathname;else{for(var c=(e.pathname||"").split("/");c.length&&!(e.host=c.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==c[0]&&c.unshift(""),c.length<2&&c.unshift(""),t.pathname=c.join("/")}t.search=e.search,t.query=e.query,t.host=e.host||"",t.auth=e.auth,t.hostname=e.hostname||e.host,t.port=e.port,(t.pathname||t.search)&&(p=t.pathname||"",x=t.search||"",t.path=p+x),t.slashes=t.slashes||e.slashes}else for(var l=Object.keys(e),f=0;f<l.length;f++){var d=l[f];t[d]=e[d]}else{var p=t.pathname&&"/"===t.pathname.charAt(0),h=p=(x=e.host||e.pathname&&"/"===e.pathname.charAt(0))||p||t.host&&e.pathname,m=t.pathname&&t.pathname.split("/")||[],y=(c=e.pathname&&e.pathname.split("/")||[],t.protocol&&!g[t.protocol]);if(y&&(t.hostname="",t.port=null,t.host&&(""===m[0]?m[0]=t.host:m.unshift(t.host)),t.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===c[0]?c[0]=e.host:c.unshift(e.host)),e.host=null),p=p&&(""===c[0]||""===m[0])),x)t.host=(e.host||""===e.host?e:t).host,t.hostname=(e.hostname||""===e.hostname?e:t).hostname,t.search=e.search,t.query=e.query,m=c;else if(c.length)(m=m||[]).pop(),m=m.concat(c),t.search=e.search,t.query=e.query;else if(null!=e.search)return y&&(t.host=m.shift(),t.hostname=t.host,S=!!(t.host&&0<t.host.indexOf("@"))&&t.host.split("@"))&&(t.auth=S.shift(),t.hostname=S.shift(),t.host=t.hostname),t.search=e.search,t.query=e.query,null===t.pathname&&null===t.search||(t.path=(t.pathname||"")+(t.search||"")),t.href=t.format(),t;if(m.length){for(var b=m.slice(-1)[0],x=(t.host||e.host||1<m.length)&&("."===b||".."===b)||""===b,w=0,_=m.length;0<=_;_--)"."===(b=m[_])?m.splice(_,1):".."===b?(m.splice(_,1),w++):w&&(m.splice(_,1),w--);if(!p&&!h)for(;w--;)m.unshift("..");var S;!p||""===m[0]||m[0]&&"/"===m[0].charAt(0)||m.unshift(""),x&&"/"!==m.join("/").substr(-1)&&m.push(""),h=""===m[0]||m[0]&&"/"===m[0].charAt(0),y&&(t.hostname=!h&&m.length?m.shift():"",t.host=t.hostname,S=!!(t.host&&0<t.host.indexOf("@"))&&t.host.split("@"))&&(t.auth=S.shift(),t.hostname=S.shift(),t.host=t.hostname),(p=p||t.host&&m.length)&&!h&&m.unshift(""),0<m.length?t.pathname=m.join("/"):(t.pathname=null,t.path=null),null===t.pathname&&null===t.search||(t.path=(t.pathname||"")+(t.search||"")),t.auth=e.auth||t.auth,t.slashes=t.slashes||e.slashes}else t.pathname=null,t.search?t.path="/"+t.search:t.path=null}return t.href=t.format(),t},i.prototype.parseHost=function(){var e=this.host,t=a.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},t.parse=y,t.resolve=function(e,t){return y(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?y(e,!1,!0).resolveObject(t):t},t.format=function(e){return(e="string"==typeof e?y(e):e)instanceof i?e.format():i.prototype.format.call(e)},t.Url=i},512:function(e){e.exports=function(e,t,n,r){var i,o=self||window;try{try{try{i=new o.Blob([e])}catch(a){(i=new(o.BlobBuilder||o.WebKitBlobBuilder||o.MozBlobBuilder||o.MSBlobBuilder)).append(e),i=i.getBlob()}var a=o.URL||o.webkitURL,s=a.createObjectURL(i),u=new o[t](s,n);return a.revokeObjectURL(s),u}catch(a){return new o[t]("data:application/javascript,".concat(encodeURIComponent(e)),n)}}catch(a){if(r)return new o[t](r,n);throw Error("Inline worker is not supported")}}},634:function(){}},n={},e.g=function(){if("object"==("undefined"==typeof globalThis?"undefined":I(globalThis)))return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==("undefined"==typeof window?"undefined":I(window)))return window}}(),e.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},e.p="",e(813);function e(r){var i=n[r];return void 0!==i||(i=n[r]={id:r,loaded:!1,exports:{}},t[r].call(i.exports,i,i.exports,e),i.loaded=!0),i.exports}var t,n},e.exports=r()},function(e,t,n){"use strict";n.r(t),n.d(t,"AbrController",(function(){return jn})),n.d(t,"AttrList",(function(){return D})),n.d(t,"AudioStreamController",(function(){return yi})),n.d(t,"AudioTrackController",(function(){return bi})),n.d(t,"BasePlaylistController",(function(){return gn})),n.d(t,"BaseSegment",(function(){return V})),n.d(t,"BaseStreamController",(function(){return cr})),n.d(t,"BufferController",(function(){return ki})),n.d(t,"CMCDController",(function(){return Vo})),n.d(t,"CapLevelController",(function(){return mo})),n.d(t,"ChunkMetadata",(function(){return Nn})),n.d(t,"ContentSteeringController",(function(){return Ho})),n.d(t,"DateRange",(function(){return N})),n.d(t,"EMEController",(function(){return bo})),n.d(t,"ErrorActionFlags",(function(){return hn})),n.d(t,"ErrorController",(function(){return vn})),n.d(t,"ErrorDetails",(function(){return S})),n.d(t,"ErrorTypes",(function(){return w})),n.d(t,"Events",(function(){return m})),n.d(t,"FPSController",(function(){return yo})),n.d(t,"Fragment",(function(){return H})),n.d(t,"Hls",(function(){return la})),n.d(t,"HlsSkip",(function(){return qt})),n.d(t,"HlsUrlParameters",(function(){return Yt})),n.d(t,"KeySystemFormats",(function(){return X})),n.d(t,"KeySystems",(function(){return $})),n.d(t,"Level",(function(){return Kt})),n.d(t,"LevelDetails",(function(){return q})),n.d(t,"LevelKey",(function(){return Ge})),n.d(t,"LoadStats",(function(){return F})),n.d(t,"MetadataSchema",(function(){return Lt})),n.d(t,"NetworkErrorAction",(function(){return pn})),n.d(t,"Part",(function(){return W})),n.d(t,"PlaylistLevelType",(function(){return jt})),n.d(t,"SubtitleStreamController",(function(){return xi})),n.d(t,"SubtitleTrackController",(function(){return _i})),n.d(t,"TimelineController",(function(){return ho})),n.d(t,"default",(function(){return la})),n.d(t,"getMediaSource",(function(){return Je})),n.d(t,"isMSESupported",(function(){return aa})),n.d(t,"isSupported",(function(){return sa}));var r={exports:{}};!function(e,t){var n,r,i,o,a;n=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,r=/^(?=([^\/?#]*))\1([^]*)$/,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 u=r.exec(s.path);s.netLoc=u[1],s.path=u[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 l=s.path,f=l.substring(0,l.lastIndexOf("/")+1)+o.path;c.path=a.normalizePath(f)}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}(r);var i=r.exports;function o(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 a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=I(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=I(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==I(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(){return(u=Object.assign?Object.assign.bind():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 f=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)},p=Number.isSafeInteger||function(e){return"number"==typeof e&&Math.abs(e)<=v},v=Number.MAX_SAFE_INTEGER||9007199254740991,m=function(e){return e.MEDIA_ATTACHING="hlsMediaAttaching",e.MEDIA_ATTACHED="hlsMediaAttached",e.MEDIA_DETACHING="hlsMediaDetaching",e.MEDIA_DETACHED="hlsMediaDetached",e.BUFFER_RESET="hlsBufferReset",e.BUFFER_CODECS="hlsBufferCodecs",e.BUFFER_CREATED="hlsBufferCreated",e.BUFFER_APPENDING="hlsBufferAppending",e.BUFFER_APPENDED="hlsBufferAppended",e.BUFFER_EOS="hlsBufferEos",e.BUFFER_FLUSHING="hlsBufferFlushing",e.BUFFER_FLUSHED="hlsBufferFlushed",e.MANIFEST_LOADING="hlsManifestLoading",e.MANIFEST_LOADED="hlsManifestLoaded",e.MANIFEST_PARSED="hlsManifestParsed",e.LEVEL_SWITCHING="hlsLevelSwitching",e.LEVEL_SWITCHED="hlsLevelSwitched",e.LEVEL_LOADING="hlsLevelLoading",e.LEVEL_LOADED="hlsLevelLoaded",e.LEVEL_UPDATED="hlsLevelUpdated",e.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",e.LEVELS_UPDATED="hlsLevelsUpdated",e.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",e.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",e.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",e.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",e.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",e.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",e.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",e.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",e.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",e.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",e.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",e.CUES_PARSED="hlsCuesParsed",e.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",e.INIT_PTS_FOUND="hlsInitPtsFound",e.FRAG_LOADING="hlsFragLoading",e.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",e.FRAG_LOADED="hlsFragLoaded",e.FRAG_DECRYPTED="hlsFragDecrypted",e.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",e.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",e.FRAG_PARSING_METADATA="hlsFragParsingMetadata",e.FRAG_PARSED="hlsFragParsed",e.FRAG_BUFFERED="hlsFragBuffered",e.FRAG_CHANGED="hlsFragChanged",e.FPS_DROP="hlsFpsDrop",e.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",e.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",e.ERROR="hlsError",e.DESTROYING="hlsDestroying",e.KEY_LOADING="hlsKeyLoading",e.KEY_LOADED="hlsKeyLoaded",e.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",e.BACK_BUFFER_REACHED="hlsBackBufferReached",e.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",e}({}),w=function(e){return e.NETWORK_ERROR="networkError",e.MEDIA_ERROR="mediaError",e.KEY_SYSTEM_ERROR="keySystemError",e.MUX_ERROR="muxError",e.OTHER_ERROR="otherError",e}({}),S=function(e){return e.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",e.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",e.KEY_SYSTEM_NO_SESSION="keySystemNoSession",e.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",e.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",e.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",e.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",e.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",e.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",e.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",e.MANIFEST_LOAD_ERROR="manifestLoadError",e.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",e.MANIFEST_PARSING_ERROR="manifestParsingError",e.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",e.LEVEL_EMPTY_ERROR="levelEmptyError",e.LEVEL_LOAD_ERROR="levelLoadError",e.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",e.LEVEL_PARSING_ERROR="levelParsingError",e.LEVEL_SWITCH_ERROR="levelSwitchError",e.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",e.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",e.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",e.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",e.FRAG_LOAD_ERROR="fragLoadError",e.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",e.FRAG_DECRYPT_ERROR="fragDecryptError",e.FRAG_PARSING_ERROR="fragParsingError",e.FRAG_GAP="fragGap",e.REMUX_ALLOC_ERROR="remuxAllocError",e.KEY_LOAD_ERROR="keyLoadError",e.KEY_LOAD_TIMEOUT="keyLoadTimeOut",e.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",e.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",e.BUFFER_APPEND_ERROR="bufferAppendError",e.BUFFER_APPENDING_ERROR="bufferAppendingError",e.BUFFER_STALLED_ERROR="bufferStalledError",e.BUFFER_FULL_ERROR="bufferFullError",e.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",e.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",e.INTERNAL_EXCEPTION="internalException",e.INTERNAL_ABORTED="aborted",e.UNKNOWN="unknown",e}({}),k=function(){},j={trace:k,debug:k,log:k,warn:k,info:k,error:k},C=j;function A(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];n.forEach((function(t){C[t]=e[t]?e[t].bind(e):function(e){var t=self.console[e];return t?t.bind(self.console,"[".concat(e,"] >")):k}(t)}))}var P=C,M=/^(\d+)x(\d+)$/,R=/(.+?)=(".*?"|.*?)(?:,|$)/g,D=function(){return O((function e(t){_(this,e),"string"==typeof t&&(t=e.parseAttrList(t)),u(this,t)}),[{key:"clientAttrs",get:function(){return Object.keys(this).filter((function(e){return"X-"===e.substring(0,2)}))}},{key:"decimalInteger",value:function(e){var t=parseInt(this[e],10);return t>Number.MAX_SAFE_INTEGER?1/0:t}},{key:"hexadecimalInteger",value:function(e){if(this[e]){var t=(this[e]||"0x").slice(2);t=(1&t.length?"0":"")+t;for(var n=new Uint8Array(t.length/2),r=0;r<t.length/2;r++)n[r]=parseInt(t.slice(2*r,2*r+2),16);return n}return null}},{key:"hexadecimalIntegerAsNumber",value:function(e){var t=parseInt(this[e],16);return t>Number.MAX_SAFE_INTEGER?1/0:t}},{key:"decimalFloatingPoint",value:function(e){return parseFloat(this[e])}},{key:"optionalFloat",value:function(e,t){var n=this[e];return n?parseFloat(n):t}},{key:"enumeratedString",value:function(e){return this[e]}},{key:"bool",value:function(e){return"YES"===this[e]}},{key:"decimalResolution",value:function(e){var t=M.exec(this[e]);if(null!==t)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}}}],[{key:"parseAttrList",value:function(e){var t,n={};for(R.lastIndex=0;null!==(t=R.exec(e));){var r=t[2];0===r.indexOf('"')&&r.lastIndexOf('"')===r.length-1&&(r=r.slice(1,-1)),n[t[1].trim()]=r}return n}}])}();function L(e){return"SCTE35-OUT"===e||"SCTE35-IN"===e}var N=function(){return O((function e(t,n){if(_(this,e),this.attr=void 0,this._startDate=void 0,this._endDate=void 0,this._badValueForSameId=void 0,n){var r=n.attr;for(var i in r)if(Object.prototype.hasOwnProperty.call(t,i)&&t[i]!==r[i]){P.warn('DATERANGE tag attribute: "'.concat(i,'" does not match for tags with ID: "').concat(t.ID,'"')),this._badValueForSameId=i;break}t=u(new D({}),r,t)}if(this.attr=t,this._startDate=new Date(t["START-DATE"]),"END-DATE"in this.attr){var o=new Date(this.attr["END-DATE"]);f(o.getTime())&&(this._endDate=o)}}),[{key:"id",get:function(){return this.attr.ID}},{key:"class",get:function(){return this.attr.CLASS}},{key:"startDate",get:function(){return this._startDate}},{key:"endDate",get:function(){if(this._endDate)return this._endDate;var e=this.duration;return null!==e?new Date(this._startDate.getTime()+1e3*e):null}},{key:"duration",get:function(){if("DURATION"in this.attr){var e=this.attr.decimalFloatingPoint("DURATION");if(f(e))return e}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}},{key:"plannedDuration",get:function(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}},{key:"endOnNext",get:function(){return this.attr.bool("END-ON-NEXT")}},{key:"isValid",get:function(){return!!this.id&&!this._badValueForSameId&&f(this.startDate.getTime())&&(null===this.duration||this.duration>=0)&&(!this.endOnNext||!!this.class)}}])}(),F=O((function e(){_(this,e),this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}})),B="audio",U="video",z="audiovideo",V=function(){return O((function e(t){_(this,e),this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=E(E(E({},B,null),U,null),z,null),this.baseurl=t}),[{key:"setByteRange",value:function(e,t){var n,r=e.split("@",2);n=1===r.length?(null==t?void 0:t.byteRangeEndOffset)||0:parseInt(r[1]),this._byteRange=[n,parseInt(r[0])+n]}},{key:"byteRange",get:function(){return this._byteRange?this._byteRange:[]}},{key:"byteRangeStartOffset",get:function(){return this.byteRange[0]}},{key:"byteRangeEndOffset",get:function(){return this.byteRange[1]}},{key:"url",get:function(){return!this._url&&this.baseurl&&this.relurl&&(this._url=i.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""},set:function(e){this._url=e}}])}(),H=function(e){function t(e,n){var r;return _(this,t),(r=g(this,t,[n]))._decryptdata=null,r.rawProgramDateTime=null,r.programDateTime=null,r.tagList=[],r.duration=0,r.sn=0,r.levelkeys=void 0,r.type=void 0,r.loader=null,r.keyLoader=null,r.level=-1,r.cc=0,r.startPTS=void 0,r.endPTS=void 0,r.startDTS=void 0,r.endDTS=void 0,r.start=0,r.deltaPTS=void 0,r.maxStartPTS=void 0,r.minEndPTS=void 0,r.stats=new F,r.data=void 0,r.bitrateTest=!1,r.title=null,r.initSegment=null,r.endList=void 0,r.gap=void 0,r.urlId=0,r.type=e,r}return x(t,e),O(t,[{key:"decryptdata",get:function(){if(!this.levelkeys&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkeys&&!this.levelkeys.NONE){var e=this.levelkeys.identity;if(e)this._decryptdata=e.getDecryptData(this.sn);else{var t=Object.keys(this.levelkeys);if(1===t.length)return this._decryptdata=this.levelkeys[t[0]].getDecryptData(this.sn)}}return this._decryptdata}},{key:"end",get:function(){return this.start+this.duration}},{key:"endProgramDateTime",get:function(){if(null===this.programDateTime)return null;if(!f(this.programDateTime))return null;var e=f(this.duration)?this.duration:0;return this.programDateTime+1e3*e}},{key:"encrypted",get:function(){var e;if(null!=(e=this._decryptdata)&&e.encrypted)return!0;if(this.levelkeys){var t=Object.keys(this.levelkeys),n=t.length;if(n>1||1===n&&this.levelkeys[t[0]].encrypted)return!0}return!1}},{key:"setKeyFormat",value:function(e){if(this.levelkeys){var t=this.levelkeys[e];t&&!this._decryptdata&&(this._decryptdata=t.getDecryptData(this.sn))}}},{key:"abortRequests",value:function(){var e,t;null==(e=this.loader)||e.abort(),null==(t=this.keyLoader)||t.abort()}},{key:"setElementaryStreamInfo",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=this.elementaryStreams,s=a[e];s?(s.startPTS=Math.min(s.startPTS,t),s.endPTS=Math.max(s.endPTS,n),s.startDTS=Math.min(s.startDTS,r),s.endDTS=Math.max(s.endDTS,i)):a[e]={startPTS:t,endPTS:n,startDTS:r,endDTS:i,partial:o}}},{key:"clearElementaryStreamInfo",value:function(){var e=this.elementaryStreams;e[B]=null,e[U]=null,e[z]=null}}])}(V),W=function(e){function t(e,n,r,i,o){var a;_(this,t),(a=g(this,t,[r])).fragOffset=0,a.duration=0,a.gap=!1,a.independent=!1,a.relurl=void 0,a.fragment=void 0,a.index=void 0,a.stats=new F,a.duration=e.decimalFloatingPoint("DURATION"),a.gap=e.bool("GAP"),a.independent=e.bool("INDEPENDENT"),a.relurl=e.enumeratedString("URI"),a.fragment=n,a.index=i;var s=e.enumeratedString("BYTERANGE");return s&&a.setByteRange(s,o),o&&(a.fragOffset=o.fragOffset+o.duration),a}return x(t,e),O(t,[{key:"start",get:function(){return this.fragment.start+this.fragOffset}},{key:"end",get:function(){return this.start+this.duration}},{key:"loaded",get:function(){var e=this.elementaryStreams;return!!(e.audio||e.video||e.audiovideo)}}])}(V),q=function(){return O((function e(t){_(this,e),this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=t}),[{key:"reloaded",value:function(e){if(!e)return this.advanced=!0,void(this.updated=!0);var t=this.lastPartSn-e.lastPartSn,n=this.lastPartIndex-e.lastPartIndex;this.updated=this.endSN!==e.endSN||!!n||!!t||!this.live,this.advanced=this.endSN>e.endSN||t>0||0===t&&n>0,this.updated||this.advanced?this.misses=Math.floor(.6*e.misses):this.misses=e.misses+1,this.availabilityDelay=e.availabilityDelay}},{key:"hasProgramDateTime",get:function(){return!!this.fragments.length&&f(this.fragments[this.fragments.length-1].programDateTime)}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||10}},{key:"drift",get:function(){var e=this.driftEndTime-this.driftStartTime;return e>0?1e3*(this.driftEnd-this.driftStart)/e:1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var e;return null!=(e=this.partList)&&e.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var e;return null!=(e=this.fragments)&&e.length?this.fragments[this.fragments.length-1].end:0}},{key:"age",get:function(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}},{key:"lastPartIndex",get:function(){var e;return null!=(e=this.partList)&&e.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var e;return null!=(e=this.partList)&&e.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}])}();function G(e){return Uint8Array.from(atob(e),(function(e){return e.charCodeAt(0)}))}function Y(e){return Uint8Array.from(unescape(encodeURIComponent(e)),(function(e){return e.charCodeAt(0)}))}var K="undefined"!=typeof self?self:void 0,$={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},X={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function Q(e){switch(e){case X.FAIRPLAY:return $.FAIRPLAY;case X.PLAYREADY:return $.PLAYREADY;case X.WIDEVINE:return $.WIDEVINE;case X.CLEARKEY:return $.CLEARKEY}}var Z="edef8ba979d64acea3c827dcd51d21ed";function J(e){switch(e){case $.FAIRPLAY:return X.FAIRPLAY;case $.PLAYREADY:return X.PLAYREADY;case $.WIDEVINE:return X.WIDEVINE;case $.CLEARKEY:return X.CLEARKEY}}function ee(e){var t=e.drmSystems,n=e.widevineLicenseUrl,r=t?[$.FAIRPLAY,$.WIDEVINE,$.PLAYREADY,$.CLEARKEY].filter((function(e){return!!t[e]})):[];return!r[$.WIDEVINE]&&n&&r.push($.WIDEVINE),r}var te,ne=null!=K&&null!=(te=K.navigator)&&te.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null;function re(e,t,n){return Uint8Array.prototype.slice?e.slice(t,n):new Uint8Array(Array.prototype.slice.call(e,t,n))}var ie,oe=function(e,t){return t+10<=e.length&&73===e[t]&&68===e[t+1]&&51===e[t+2]&&e[t+3]<255&&e[t+4]<255&&e[t+6]<128&&e[t+7]<128&&e[t+8]<128&&e[t+9]<128},ae=function(e,t){return t+10<=e.length&&51===e[t]&&68===e[t+1]&&73===e[t+2]&&e[t+3]<255&&e[t+4]<255&&e[t+6]<128&&e[t+7]<128&&e[t+8]<128&&e[t+9]<128},se=function(e,t){for(var n=t,r=0;oe(e,t);)r+=10,r+=ue(e,t+6),ae(e,t+10)&&(r+=10),t+=r;if(r>0)return e.subarray(n,n+r)},ue=function(e,t){var n=0;return n=(127&e[t])<<21,n|=(127&e[t+1])<<14,n|=(127&e[t+2])<<7,n|=127&e[t+3]},ce=function(e,t){return oe(e,t)&&ue(e,t+6)+10<=e.length-t},le=function(e){for(var t=pe(e),n=0;n<t.length;n++){var r=t[n];if(fe(r))return ye(r)}},fe=function(e){return e&&"PRIV"===e.key&&"com.apple.streaming.transportStreamTimestamp"===e.info},de=function(e){var t=String.fromCharCode(e[0],e[1],e[2],e[3]),n=ue(e,4);return{type:t,size:n,data:e.subarray(10,10+n)}},pe=function(e){for(var t=0,n=[];oe(e,t);){for(var r=ue(e,t+6),i=(t+=10)+r;t+8<i;){var o=de(e.subarray(t)),a=he(o);a&&n.push(a),t+=o.size+10}ae(e,t)&&(t+=10)}return n},he=function(e){return"PRIV"===e.type?ve(e):"W"===e.type[0]?me(e):ge(e)},ve=function(e){if(!(e.size<2)){var t=be(e.data,!0),n=new Uint8Array(e.data.subarray(t.length+1));return{key:e.type,info:t,data:n.buffer}}},ge=function(e){if(!(e.size<2)){if("TXXX"===e.type){var t=1,n=be(e.data.subarray(t),!0);t+=n.length+1;var r=be(e.data.subarray(t));return{key:e.type,info:n,data:r}}var i=be(e.data.subarray(1));return{key:e.type,data:i}}},me=function(e){if("WXXX"===e.type){if(e.size<2)return;var t=1,n=be(e.data.subarray(t),!0);t+=n.length+1;var r=be(e.data.subarray(t));return{key:e.type,info:n,data:r}}var i=be(e.data);return{key:e.type,data:i}},ye=function(e){if(8===e.data.byteLength){var t=new Uint8Array(e.data),n=1&t[3],r=(t[4]<<23)+(t[5]<<15)+(t[6]<<7)+t[7];return r/=45,n&&(r+=47721858.84),Math.round(r)}},be=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=xe();if(n){var r=n.decode(e);if(t){var i=r.indexOf("\0");return-1!==i?r.substring(0,i):r}return r.replace(/\0/g,"")}for(var o,a,s,u=e.length,c="",l=0;l<u;){if(0===(o=e[l++])&&t)return c;if(0!==o&&3!==o)switch(o>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:c+=String.fromCharCode(o);break;case 12:case 13:a=e[l++],c+=String.fromCharCode((31&o)<<6|63&a);break;case 14:a=e[l++],s=e[l++],c+=String.fromCharCode((15&o)<<12|(63&a)<<6|(63&s)<<0)}}return c};function xe(){if(!navigator.userAgent.includes("PlayStation 4"))return ie||void 0===self.TextDecoder||(ie=new self.TextDecoder("utf-8")),ie}var we=function(e){for(var t="",n=0;n<e.length;n++){var r=e[n].toString(16);r.length<2&&(r="0"+r),t+=r}return t},_e=Math.pow(2,32)-1,Se=[].push,Oe={video:1,audio:2,id3:3,text:4};function ke(e){return String.fromCharCode.apply(null,e)}function Ee(e,t){var n=e[t]<<8|e[t+1];return n<0?65536+n:n}function je(e,t){var n=Ce(e,t);return n<0?4294967296+n:n}function Te(e,t){var n=je(e,t);return n*=Math.pow(2,32),n+=je(e,t+4)}function Ce(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function Ae(e,t,n){e[t]=n>>24,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n}function Pe(e,t){var n=[];if(!t.length)return n;for(var r=e.byteLength,i=0;i<r;){var o=je(e,i),a=o>1?i+o:r;if(ke(e.subarray(i+4,i+8))===t[0])if(1===t.length)n.push(e.subarray(i+8,a));else{var s=Pe(e.subarray(i+8,a),t.slice(1));s.length&&Se.apply(n,s)}i=a}return n}function Me(e){var t=[],n=e[0],r=8,i=je(e,r);r+=4;var o=0,a=0;0===n?(o=je(e,r),a=je(e,r+4),r+=8):(o=Te(e,r),a=Te(e,r+8),r+=16),r+=2;var s=e.length+a,u=Ee(e,r);r+=2;for(var c=0;c<u;c++){var l=r,f=je(e,l);l+=4;var d=2147483647&f;if(1==(2147483648&f)>>>31)return P.warn("SIDX has hierarchical references (not supported)"),null;var p=je(e,l);l+=4,t.push({referenceSize:d,subsegmentDuration:p,info:{duration:p/i,start:s,end:s+d-1}}),s+=d,r=l+=4}return{earliestPresentationTime:o,timescale:i,version:n,referencesCount:u,references:t}}function Ie(e){for(var t=[],n=Pe(e,["moov","trak"]),r=0;r<n.length;r++){var i=n[r],o=Pe(i,["tkhd"])[0];if(o){var s=o[0],u=je(o,0===s?12:20),c=Pe(i,["mdia","mdhd"])[0];if(c){var l=je(c,0===(s=c[0])?12:20),f=Pe(i,["mdia","hdlr"])[0];if(f){var d=ke(f.subarray(8,12)),p={soun:B,vide:U}[d];if(p){var h=Re(Pe(i,["mdia","minf","stbl","stsd"])[0]);t[u]={timescale:l,type:p},t[p]=a({timescale:l,id:u},h)}}}}}return Pe(e,["moov","mvex","trex"]).forEach((function(e){var n=je(e,4),r=t[n];r&&(r.default={duration:je(e,12),flags:je(e,20)})})),t}function Re(e){var t=e.subarray(8),n=t.subarray(86),r=ke(t.subarray(4,8)),i=r,o="enca"===r||"encv"===r;if(o){var a=Pe(t,[r])[0];Pe(a.subarray("enca"===r?28:78),["sinf"]).forEach((function(e){var t=Pe(e,["schm"])[0];if(t){var n=ke(t.subarray(4,8));if("cbcs"===n||"cenc"===n){var r=Pe(e,["frma"])[0];r&&(i=ke(r))}}}))}switch(i){case"avc1":case"avc2":case"avc3":case"avc4":var s=Pe(n,["avcC"])[0];i+="."+Le(s[1])+Le(s[2])+Le(s[3]);break;case"mp4a":var u=Pe(t,[r])[0],c=Pe(u.subarray(28),["esds"])[0];if(c&&c.length>12){var l=4;if(3!==c[l++])break;l=De(c,l),l+=2;var f=c[l++];if(128&f&&(l+=2),64&f&&(l+=c[l++]),4!==c[l++])break;l=De(c,l);var d=c[l++];if(64!==d)break;if(i+="."+Le(d),l+=12,5!==c[l++])break;l=De(c,l);var p=c[l++],h=(248&p)>>3;31===h&&(h+=1+((7&p)<<3)+((224&c[l])>>5)),i+="."+h}break;case"hvc1":case"hev1":var v=Pe(n,["hvcC"])[0],g=v[1],m=["","A","B","C"][g>>6],y=31&g,b=je(v,2),x=(32&g)>>5?"H":"L",w=v[12],_=v.subarray(6,12);i+="."+m+y,i+="."+b.toString(16).toUpperCase(),i+="."+x+w;for(var S="",O=_.length;O--;){var k=_[O];(k||S)&&(S="."+k.toString(16).toUpperCase()+S)}i+=S;break;case"dvh1":case"dvhe":var E=Pe(n,["dvcC"])[0],j=E[2]>>1&127,T=E[2]<<5&32|E[3]>>3&31;i+="."+Ne(j)+"."+Ne(T);break;case"vp09":var C=Pe(n,["vpcC"])[0],A=C[4],P=C[5],M=C[6]>>4&15;i+="."+Ne(A)+"."+Ne(P)+"."+Ne(M);break;case"av01":var I=Pe(n,["av1C"])[0],R=I[1]>>>5,D=31&I[1],L=I[2]>>>7?"H":"M",N=(64&I[2])>>6,F=(32&I[2])>>5,B=2===R&&N?F?12:10:N?10:8,U=(16&I[2])>>4,z=(8&I[2])>>3,V=(4&I[2])>>2,H=3&I[2];i+="."+R+"."+Ne(D)+L+"."+Ne(B)+"."+U+"."+z+V+H+"."+Ne(1)+"."+Ne(1)+"."+Ne(1)+".0"}return{codec:i,encrypted:o}}function De(e,t){for(var n=t+5;128&e[t++]&&t<n;);return t}function Le(e){return("0"+e.toString(16).toUpperCase()).slice(-2)}function Ne(e){return(e<10?"0":"")+e}function Fe(e){var t=Pe(e,["schm"])[0];if(t){var n=ke(t.subarray(4,8));if("cbcs"===n||"cenc"===n)return Pe(e,["schi","tenc"])[0]}return P.error("[eme] missing 'schm' box"),null}function Be(e){var t=je(e,0),n=8;1&t&&(n+=4),4&t&&(n+=4);for(var r=0,i=je(e,4),o=0;o<i;o++)256&t&&(r+=je(e,n),n+=4),512&t&&(n+=4),1024&t&&(n+=4),2048&t&&(n+=4);return r}function Ue(e,t){var n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function ze(e,t){var n=[],r=t.samples,i=t.timescale,o=t.id,a=!1;return Pe(r,["moof"]).map((function(s){var u=s.byteOffset-8;Pe(s,["traf"]).map((function(s){var c=Pe(s,["tfdt"]).map((function(e){var t=e[0],n=je(e,4);return 1===t&&(n*=Math.pow(2,32),n+=je(e,8)),n/i}))[0];return void 0!==c&&(e=c),Pe(s,["tfhd"]).map((function(c){var l=je(c,4),f=16777215&je(c,0),d=0,p=0!=(16&f),h=0,v=0!=(32&f),g=8;l===o&&(0!=(1&f)&&(g+=8),0!=(2&f)&&(g+=4),0!=(8&f)&&(d=je(c,g),g+=4),p&&(h=je(c,g),g+=4),v&&(g+=4),"video"===t.type&&(a=function(e){if(!e)return!1;var t=e.indexOf("."),n=t<0?e:e.substring(0,t);return"hvc1"===n||"hev1"===n||"dvh1"===n||"dvhe"===n}(t.codec)),Pe(s,["trun"]).map((function(o){var s=o[0],c=16777215&je(o,0),l=0!=(1&c),f=0,p=0!=(4&c),v=0!=(256&c),g=0,m=0!=(512&c),y=0,b=0!=(1024&c),x=0!=(2048&c),w=0,_=je(o,4),S=8;l&&(f=je(o,S),S+=4),p&&(S+=4);for(var O=f+u,k=0;k<_;k++){if(v?(g=je(o,S),S+=4):g=d,m?(y=je(o,S),S+=4):y=h,b&&(S+=4),x&&(w=0===s?je(o,S):Ce(o,S),S+=4),t.type===U)for(var E=0;E<y;){var j=je(r,O);Ve(a,r[O+=4])&&He(r.subarray(O,O+j),a?2:1,e+w/i,n),O+=j,E+=j+4}e+=g/i}})))}))}))})),n}function Ve(e,t){if(e){var n=t>>1&63;return 39===n||40===n}return 6==(31&t)}function He(e,t,n,r){var i=We(e),o=0;o+=t;for(var a=0,s=0,u=0;o<i.length;){a=0;do{if(o>=i.length)break;a+=u=i[o++]}while(255===u);s=0;do{if(o>=i.length)break;s+=u=i[o++]}while(255===u);var c=i.length-o,l=o;if(s<c)o+=s;else if(s>c){P.error("Malformed SEI payload. ".concat(s," is too small, only ").concat(c," bytes left to parse."));break}if(4===a){if(181===i[l++]){var f=Ee(i,l);if(l+=2,49===f){var d=je(i,l);if(l+=4,1195456820===d){var p=i[l++];if(3===p){var h=i[l++],v=64&h,g=v?2+3*(31&h):0,m=new Uint8Array(g);if(v){m[0]=h;for(var y=1;y<g;y++)m[y]=i[l++]}r.push({type:p,payloadType:a,pts:n,bytes:m})}}}}}else if(5===a&&s>16){for(var b=[],x=0;x<16;x++){var w=i[l++].toString(16);b.push(1==w.length?"0"+w:w),3!==x&&5!==x&&7!==x&&9!==x||b.push("-")}for(var _=s-16,S=new Uint8Array(_),O=0;O<_;O++)S[O]=i[l++];r.push({payloadType:a,pts:n,uuid:b.join(""),userData:be(S),userDataBytes:S})}}}function We(e){for(var t=e.byteLength,n=[],r=1;r<t-2;)0===e[r]&&0===e[r+1]&&3===e[r+2]?(n.push(r+2),r+=2):r++;if(0===n.length)return e;var i=t-n.length,o=new Uint8Array(i),a=0;for(r=0;r<i;a++,r++)a===n[0]&&(a++,n.shift()),o[r]=e[a];return o}var qe={},Ge=function(){function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[1],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;_(this,e),this.uri=void 0,this.method=void 0,this.keyFormat=void 0,this.keyFormatVersions=void 0,this.encrypted=void 0,this.isCommonEncryption=void 0,this.iv=null,this.key=null,this.keyId=null,this.pssh=null,this.method=t,this.uri=n,this.keyFormat=r,this.keyFormatVersions=i,this.iv=o,this.encrypted=!!t&&"NONE"!==t,this.isCommonEncryption=this.encrypted&&"AES-128"!==t}return O(e,[{key:"isSupported",value:function(){if(this.method){if("AES-128"===this.method||"NONE"===this.method)return!0;if("identity"===this.keyFormat)return"SAMPLE-AES"===this.method;switch(this.keyFormat){case X.FAIRPLAY:case X.WIDEVINE:case X.PLAYREADY:case X.CLEARKEY:return-1!==["ISO-23001-7","SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)}}return!1}},{key:"getDecryptData",value:function(t){if(!this.encrypted||!this.uri)return null;if("AES-128"===this.method&&this.uri&&!this.iv){"number"!=typeof t&&("AES-128"!==this.method||this.iv||P.warn('missing IV for initialization segment with method="'.concat(this.method,'" - compliance issue')),t=0);var n=function(e){for(var t=new Uint8Array(16),n=12;n<16;n++)t[n]=e>>8*(15-n)&255;return t}(t);return new e(this.method,this.uri,"identity",this.keyFormatVersions,n)}var r=function(e){var t=e.split(":"),n=null;if("data"===t[0]&&2===t.length){var r=t[1].split(";"),i=r[r.length-1].split(",");if(2===i.length){var o="base64"===i[0],a=i[1];o?(r.splice(-1,1),n=G(a)):n=function(e){var t=Y(e).subarray(0,16),n=new Uint8Array(16);return n.set(t,16-t.length),n}(a)}}return n}(this.uri);if(r)switch(this.keyFormat){case X.WIDEVINE:this.pssh=r,r.length>=22&&(this.keyId=r.subarray(r.length-22,r.length-6));break;case X.PLAYREADY:var i=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=function(e,t,n){if(16!==e.byteLength)throw new RangeError("Invalid system id");var r,i,o;if(t){r=1,i=new Uint8Array(16*t.length);for(var a=0;a<t.length;a++){var s=t[a];if(16!==s.byteLength)throw new RangeError("Invalid key");i.set(s,16*a)}}else r=0,i=new Uint8Array;r>0?(o=new Uint8Array(4),t.length>0&&new DataView(o.buffer).setUint32(0,t.length,!1)):o=new Uint8Array;var u=new Uint8Array(4);return n&&n.byteLength>0&&new DataView(u.buffer).setUint32(0,n.byteLength,!1),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];for(var i=n.length,o=8,a=i;a--;)o+=n[a].byteLength;var s=new Uint8Array(o);for(s[0]=o>>24&255,s[1]=o>>16&255,s[2]=o>>8&255,s[3]=255&o,s.set(e,4),a=0,o=8;a<i;a++)s.set(n[a],o),o+=n[a].byteLength;return s}([112,115,115,104],new Uint8Array([r,0,0,0]),e,o,i,u,n||new Uint8Array)}(i,null,r);var o=new Uint16Array(r.buffer,r.byteOffset,r.byteLength/2),a=String.fromCharCode.apply(null,Array.from(o)),s=a.substring(a.indexOf("<"),a.length),u=(new DOMParser).parseFromString(s,"text/xml").getElementsByTagName("KID")[0];if(u){var c=u.childNodes[0]?u.childNodes[0].nodeValue:u.getAttribute("VALUE");if(c){var l=G(c).subarray(0,16);!function(e){var t=function(e,t,n){var r=e[t];e[t]=e[n],e[n]=r};t(e,0,3),t(e,1,2),t(e,4,5),t(e,6,7)}(l),this.keyId=l}}break;default:var f=r.subarray(0,16);if(16!==f.length){var d=new Uint8Array(16);d.set(f,16-f.length),f=d}this.keyId=f}if(!this.keyId||16!==this.keyId.byteLength){var p=qe[this.uri];if(!p){var h=Object.keys(qe).length%Number.MAX_SAFE_INTEGER;p=new Uint8Array(16),new DataView(p.buffer,12,4).setUint32(0,h),qe[this.uri]=p}this.keyId=p}return this}}],[{key:"clearKeyUriToKeyIdMap",value:function(){qe={}}}])}(),Ye=/\{\$([a-zA-Z0-9-_]+)\}/g;function Ke(e){return Ye.test(e)}function $e(e,t,n){if(null!==e.variableList||e.hasVariableRefs)for(var r=n.length;r--;){var i=n[r],o=t[i];o&&(t[i]=Xe(e,o))}}function Xe(e,t){if(null!==e.variableList||e.hasVariableRefs){var n=e.variableList;return t.replace(Ye,(function(t){var r=t.substring(2,t.length-1),i=null==n?void 0:n[r];return void 0===i?(e.playlistParsingError||(e.playlistParsingError=new Error('Missing preceding EXT-X-DEFINE tag for Variable Reference: "'.concat(r,'"'))),t):i}))}return t}function Qe(e,t,n){var r,i,o=e.variableList;if(o||(e.variableList=o={}),"QUERYPARAM"in t){r=t.QUERYPARAM;try{var a=new self.URL(n).searchParams;if(!a.has(r))throw new Error('"'.concat(r,'" does not match any query parameter in URI: "').concat(n,'"'));i=a.get(r)}catch(t){e.playlistParsingError||(e.playlistParsingError=new Error("EXT-X-DEFINE QUERYPARAM: "+t.message))}}else r=t.NAME,i=t.VALUE;r in o?e.playlistParsingError||(e.playlistParsingError=new Error('EXT-X-DEFINE duplicate Variable Name declarations: "'.concat(r,'"'))):o[r]=i||""}function Ze(e,t,n){var r=t.IMPORT;if(n&&r in n){var i=e.variableList;i||(e.variableList=i={}),i[r]=n[r]}else e.playlistParsingError||(e.playlistParsingError=new Error('EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "'.concat(r,'"')))}function Je(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if("undefined"!=typeof self)return(e||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}var et={audio:{a3ds:1,"ac-3":.95,"ac-4":1,alac:.9,alaw:1,dra1:1,"dts+":1,"dts-":1,dtsc:1,dtse:1,dtsh:1,"ec-3":.9,enca:1,fLaC:.9,flac:.9,FLAC:.9,g719:1,g726:1,m4ae:1,mha1:1,mha2:1,mhm1:1,mhm2:1,mlpa:1,mp4a:1,"raw ":1,Opus:1,opus:1,samr:1,sawb:1,sawp:1,sevc:1,sqcp:1,ssmv:1,twos:1,ulaw:1},video:{avc1:1,avc2:1,avc3:1,avc4:1,avcp:1,av01:.8,drac:1,dva1:1,dvav:1,dvh1:.7,dvhe:.7,encv:1,hev1:.75,hvc1:.75,mjp2:1,mp4v:1,mvc1:1,mvc2:1,mvc3:1,mvc4:1,resv:1,rv60:1,s263:1,svc1:1,svc2:1,"vc-1":1,vp08:1,vp09:.9},text:{stpp:1,wvtt:1}};function tt(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return!e.split(",").some((function(e){return!nt(e,t,n)}))}function nt(e,t){var n,r=Je(!(arguments.length>2&&void 0!==arguments[2])||arguments[2]);return null!=(n=null==r?void 0:r.isTypeSupported(rt(e,t)))&&n}function rt(e,t){return"".concat(t,'/mp4;codecs="').concat(e,'"')}function it(e){if(e){var t=e.substring(0,4);return et.video[t]}return 2}function ot(e){return e.split(",").reduce((function(e,t){var n=et.video[t];return n?(2*n+e)/(e?3:2):(et.audio[t]+e)/(e?2:1)}),0)}var at={},st=/flac|opus/i;function ut(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.replace(st,(function(e){return function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(at[e])return at[e];for(var n={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"]}[e],r=0;r<n.length;r++)if(nt(n[r],"audio",t))return at[e]=n[r],n[r];return e}(e.toLowerCase(),t)}))}function ct(e,t){return e&&"mp4a"!==e?e:t?t.split(",")[0]:t}var lt=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-(SESSION-DATA|SESSION-KEY|DEFINE|CONTENT-STEERING|START):([^\r\n]*)[\r\n]+/g,ft=/#EXT-X-MEDIA:(.*)/g,dt=/^#EXT(?:INF|-X-TARGETDURATION):/m,pt=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),ht=new RegExp([/#(EXTM3U)/.source,/#EXT-X-(DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source,/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source,/#EXT-X-(DISCONTINUITY|ENDLIST|GAP|INDEPENDENT-SEGMENTS)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|")),vt=function(){function e(){_(this,e)}return O(e,null,[{key:"findGroup",value:function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.id===t)return r}}},{key:"resolve",value:function(e,t){return i.buildAbsoluteURL(t,e,{alwaysNormalize:!0})}},{key:"isMediaPlaylist",value:function(e){return dt.test(e)}},{key:"parseMasterPlaylist",value:function(t,n){var r,i={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:Ke(t)},o=[];for(lt.lastIndex=0;null!=(r=lt.exec(t));)if(r[1]){var a,s=new D(r[1]);$e(i,s,["CODECS","SUPPLEMENTAL-CODECS","ALLOWED-CPC","PATHWAY-ID","STABLE-VARIANT-ID","AUDIO","VIDEO","SUBTITLES","CLOSED-CAPTIONS","NAME"]);var u=Xe(i,r[2]),c={attrs:s,bitrate:s.decimalInteger("BANDWIDTH")||s.decimalInteger("AVERAGE-BANDWIDTH"),name:s.NAME,url:e.resolve(u,n)},l=s.decimalResolution("RESOLUTION");l&&(c.width=l.width,c.height=l.height),yt(s.CODECS,c),null!=(a=c.unknownCodecs)&&a.length||o.push(c),i.levels.push(c)}else if(r[3]){var f=r[3],d=r[4];switch(f){case"SESSION-DATA":var p=new D(d);$e(i,p,["DATA-ID","LANGUAGE","VALUE","URI"]);var h=p["DATA-ID"];h&&(null===i.sessionData&&(i.sessionData={}),i.sessionData[h]=p);break;case"SESSION-KEY":var v=gt(d,n,i);v.encrypted&&v.isSupported()?(null===i.sessionKeys&&(i.sessionKeys=[]),i.sessionKeys.push(v)):P.warn('[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "'.concat(d,'"'));break;case"DEFINE":var g=new D(d);$e(i,g,["NAME","VALUE","QUERYPARAM"]),Qe(i,g,n);break;case"CONTENT-STEERING":var m=new D(d);$e(i,m,["SERVER-URI","PATHWAY-ID"]),i.contentSteering={uri:e.resolve(m["SERVER-URI"],n),pathwayId:m["PATHWAY-ID"]||"."};break;case"START":i.startTimeOffset=mt(d)}}var y=o.length>0&&o.length<i.levels.length;return i.levels=y?o:i.levels,0===i.levels.length&&(i.playlistParsingError=new Error("no levels found in manifest")),i}},{key:"parseMasterPlaylistMedia",value:function(t,n,r){var i,o={},a=r.levels,s={AUDIO:a.map((function(e){return{id:e.attrs.AUDIO,audioCodec:e.audioCodec}})),SUBTITLES:a.map((function(e){return{id:e.attrs.SUBTITLES,textCodec:e.textCodec}})),"CLOSED-CAPTIONS":[]},u=0;for(ft.lastIndex=0;null!==(i=ft.exec(t));){var c=new D(i[1]),l=c.TYPE;if(l){var f=s[l],d=o[l]||[];o[l]=d,$e(r,c,["URI","GROUP-ID","LANGUAGE","ASSOC-LANGUAGE","STABLE-RENDITION-ID","NAME","INSTREAM-ID","CHARACTERISTICS","CHANNELS"]);var p=c.LANGUAGE,h=c["ASSOC-LANGUAGE"],v=c.CHANNELS,g=c.CHARACTERISTICS,m=c["INSTREAM-ID"],y={attrs:c,bitrate:0,id:u++,groupId:c["GROUP-ID"]||"",name:c.NAME||p||"",type:l,default:c.bool("DEFAULT"),autoselect:c.bool("AUTOSELECT"),forced:c.bool("FORCED"),lang:p,url:c.URI?e.resolve(c.URI,n):""};if(h&&(y.assocLang=h),v&&(y.channels=v),g&&(y.characteristics=g),m&&(y.instreamId=m),null!=f&&f.length){var b=e.findGroup(f,y.groupId)||f[0];bt(y,b,"audioCodec"),bt(y,b,"textCodec")}d.push(y)}}return o}},{key:"parseLevelPlaylist",value:function(e,t,n,r,i,o){var a,s,c,l=new q(t),d=l.fragments,p=null,h=0,v=0,g=0,m=0,y=null,b=new H(r,t),x=-1,w=!1,_=null;for(pt.lastIndex=0,l.m3u8=e,l.hasVariableRefs=Ke(e);null!==(a=pt.exec(e));){w&&(w=!1,(b=new H(r,t)).start=g,b.sn=h,b.cc=m,b.level=n,p&&(b.initSegment=p,b.rawProgramDateTime=p.rawProgramDateTime,p.rawProgramDateTime=null,_&&(b.setByteRange(_),_=null)));var S=a[1];if(S){b.duration=parseFloat(S);var O=(" "+a[2]).slice(1);b.title=O||null,b.tagList.push(O?["INF",S,O]:["INF",S])}else if(a[3]){if(f(b.duration)){b.start=g,c&&_t(b,c,l),b.sn=h,b.level=n,b.cc=m,d.push(b);var k=(" "+a[3]).slice(1);b.relurl=Xe(l,k),xt(b,y),y=b,g+=b.duration,h++,v=0,w=!0}}else if(a[4]){var E=(" "+a[4]).slice(1);y?b.setByteRange(E,y):b.setByteRange(E)}else if(a[5])b.rawProgramDateTime=(" "+a[5]).slice(1),b.tagList.push(["PROGRAM-DATE-TIME",b.rawProgramDateTime]),-1===x&&(x=d.length);else{if(!(a=a[0].match(ht))){P.warn("No matches on slow regex match for level playlist!");continue}for(s=1;s<a.length&&void 0===a[s];s++);var j=(" "+a[s]).slice(1),T=(" "+a[s+1]).slice(1),C=a[s+2]?(" "+a[s+2]).slice(1):"";switch(j){case"PLAYLIST-TYPE":l.type=T.toUpperCase();break;case"MEDIA-SEQUENCE":h=l.startSN=parseInt(T);break;case"SKIP":var A=new D(T);$e(l,A,["RECENTLY-REMOVED-DATERANGES"]);var M=A.decimalInteger("SKIPPED-SEGMENTS");if(f(M)){l.skippedSegments=M;for(var I=M;I--;)d.unshift(null);h+=M}var R=A.enumeratedString("RECENTLY-REMOVED-DATERANGES");R&&(l.recentlyRemovedDateranges=R.split("\t"));break;case"TARGETDURATION":l.targetduration=Math.max(parseInt(T),1);break;case"VERSION":l.version=parseInt(T);break;case"INDEPENDENT-SEGMENTS":case"EXTM3U":break;case"ENDLIST":l.live=!1;break;case"#":(T||C)&&b.tagList.push(C?[T,C]:[T]);break;case"DISCONTINUITY":m++,b.tagList.push(["DIS"]);break;case"GAP":b.gap=!0,b.tagList.push([j]);break;case"BITRATE":b.tagList.push([j,T]);break;case"DATERANGE":var L=new D(T);$e(l,L,["ID","CLASS","START-DATE","END-DATE","SCTE35-CMD","SCTE35-OUT","SCTE35-IN"]),$e(l,L,L.clientAttrs);var F=new N(L,l.dateRanges[L.ID]);F.isValid||l.skippedSegments?l.dateRanges[F.id]=F:P.warn('Ignoring invalid DATERANGE tag: "'.concat(T,'"')),b.tagList.push(["EXT-X-DATERANGE",T]);break;case"DEFINE":var B=new D(T);$e(l,B,["NAME","VALUE","IMPORT","QUERYPARAM"]),"IMPORT"in B?Ze(l,B,o):Qe(l,B,t);break;case"DISCONTINUITY-SEQUENCE":m=parseInt(T);break;case"KEY":var U=gt(T,t,l);if(U.isSupported()){if("NONE"===U.method){c=void 0;break}c||(c={}),c[U.keyFormat]&&(c=u({},c)),c[U.keyFormat]=U}else P.warn('[Keys] Ignoring invalid EXT-X-KEY tag: "'.concat(T,'"'));break;case"START":l.startTimeOffset=mt(T);break;case"MAP":var z=new D(T);if($e(l,z,["BYTERANGE","URI"]),b.duration){var V=new H(r,t);wt(V,z,n,c),p=V,b.initSegment=p,p.rawProgramDateTime&&!b.rawProgramDateTime&&(b.rawProgramDateTime=p.rawProgramDateTime)}else{var G=b.byteRangeEndOffset;if(G){var Y=b.byteRangeStartOffset;_="".concat(G-Y,"@").concat(Y)}else _=null;wt(b,z,n,c),p=b,w=!0}break;case"SERVER-CONTROL":var K=new D(T);l.canBlockReload=K.bool("CAN-BLOCK-RELOAD"),l.canSkipUntil=K.optionalFloat("CAN-SKIP-UNTIL",0),l.canSkipDateRanges=l.canSkipUntil>0&&K.bool("CAN-SKIP-DATERANGES"),l.partHoldBack=K.optionalFloat("PART-HOLD-BACK",0),l.holdBack=K.optionalFloat("HOLD-BACK",0);break;case"PART-INF":var $=new D(T);l.partTarget=$.decimalFloatingPoint("PART-TARGET");break;case"PART":var X=l.partList;X||(X=l.partList=[]);var Q=v>0?X[X.length-1]:void 0,Z=v++,J=new D(T);$e(l,J,["BYTERANGE","URI"]);var ee=new W(J,b,t,Z,Q);X.push(ee),b.duration+=ee.duration;break;case"PRELOAD-HINT":var te=new D(T);$e(l,te,["URI"]),l.preloadHint=te;break;case"RENDITION-REPORT":var ne=new D(T);$e(l,ne,["URI"]),l.renditionReports=l.renditionReports||[],l.renditionReports.push(ne);break;default:P.warn("line parsed but not handled: "+a)}}}y&&!y.relurl?(d.pop(),g-=y.duration,l.partList&&(l.fragmentHint=y)):l.partList&&(xt(b,y),b.cc=m,l.fragmentHint=b,c&&_t(b,c,l));var re=d.length,ie=d[0],oe=d[re-1];if((g+=l.skippedSegments*l.targetduration)>0&&re&&oe){l.averagetargetduration=g/re;var ae=oe.sn;l.endSN="initSegment"!==ae?ae:0,l.live||(oe.endList=!0),ie&&(l.startCC=ie.cc)}else l.endSN=0,l.startCC=0;return l.fragmentHint&&(g+=l.fragmentHint.duration),l.totalduration=g,l.endCC=m,x>0&&function(e,t){for(var n=e[t],r=t;r--;){var i=e[r];if(!i)return;i.programDateTime=n.programDateTime-1e3*i.duration,n=i}}(d,x),l}}])}();function gt(e,t,n){var r,i,o=new D(e);$e(n,o,["KEYFORMAT","KEYFORMATVERSIONS","URI","IV","URI"]);var a=null!=(r=o.METHOD)?r:"",s=o.URI,u=o.hexadecimalInteger("IV"),c=o.KEYFORMATVERSIONS,l=null!=(i=o.KEYFORMAT)?i:"identity";s&&o.IV&&!u&&P.error("Invalid IV: "+o.IV);var f=s?vt.resolve(s,t):"",d=(c||"1").split("/").map(Number).filter(Number.isFinite);return new Ge(a,f,l,d,u)}function mt(e){var t=new D(e).decimalFloatingPoint("TIME-OFFSET");return f(t)?t:null}function yt(e,t){var n=(e||"").split(/[ ,]+/).filter((function(e){return e}));["video","audio","text"].forEach((function(e){var r=n.filter((function(t){return function(e,t){var n=et[t];return!!n&&!!n[e.slice(0,4)]}(t,e)}));r.length&&(t[e+"Codec"]=r.join(","),n=n.filter((function(e){return-1===r.indexOf(e)})))})),t.unknownCodecs=n}function bt(e,t,n){var r=t[n];r&&(e[n]=r)}function xt(e,t){e.rawProgramDateTime?e.programDateTime=Date.parse(e.rawProgramDateTime):null!=t&&t.programDateTime&&(e.programDateTime=t.endProgramDateTime),f(e.programDateTime)||(e.programDateTime=null,e.rawProgramDateTime=null)}function wt(e,t,n,r){e.relurl=t.URI,t.BYTERANGE&&e.setByteRange(t.BYTERANGE),e.level=n,e.sn="initSegment",r&&(e.levelkeys=r),e.initSegment=null}function _t(e,t,n){e.levelkeys=t;var r=n.encryptedFragments;r.length&&r[r.length-1].levelkeys===t||!Object.keys(t).some((function(e){return t[e].isCommonEncryption}))||r.push(e)}var St="manifest",Ot="level",kt="audioTrack",Et="subtitleTrack",jt={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};function Tt(e){switch(e.type){case kt:return jt.AUDIO;case Et:return jt.SUBTITLE;default:return jt.MAIN}}function Ct(e,t){var n=e.url;return void 0!==n&&0!==n.indexOf("data:")||(n=t.url),n}var At=function(){return O((function e(t){_(this,e),this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.hls=t,this.registerListeners()}),[{key:"startLoad",value:function(e){}},{key:"stopLoad",value:function(){this.destroyInternalLoaders()}},{key:"registerListeners",value:function(){var e=this.hls;e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.LEVEL_LOADING,this.onLevelLoading,this),e.on(m.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.on(m.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}},{key:"unregisterListeners",value:function(){var e=this.hls;e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.LEVEL_LOADING,this.onLevelLoading,this),e.off(m.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.off(m.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}},{key:"createInternalLoader",value:function(e){var t=this.hls.config,n=t.pLoader,r=t.loader,i=new(n||r)(t);return this.loaders[e.type]=i,i}},{key:"getInternalLoader",value:function(e){return this.loaders[e.type]}},{key:"resetInternalLoader",value:function(e){this.loaders[e]&&delete this.loaders[e]}},{key:"destroyInternalLoaders",value:function(){for(var e in this.loaders){var t=this.loaders[e];t&&t.destroy(),this.resetInternalLoader(e)}}},{key:"destroy",value:function(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}},{key:"onManifestLoading",value:function(e,t){var n=t.url;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:St,url:n,deliveryDirectives:null})}},{key:"onLevelLoading",value:function(e,t){var n=t.id,r=t.level,i=t.pathwayId,o=t.url,a=t.deliveryDirectives;this.load({id:n,level:r,pathwayId:i,responseType:"text",type:Ot,url:o,deliveryDirectives:a})}},{key:"onAudioTrackLoading",value:function(e,t){var n=t.id,r=t.groupId,i=t.url,o=t.deliveryDirectives;this.load({id:n,groupId:r,level:null,responseType:"text",type:kt,url:i,deliveryDirectives:o})}},{key:"onSubtitleTrackLoading",value:function(e,t){var n=t.id,r=t.groupId,i=t.url,o=t.deliveryDirectives;this.load({id:n,groupId:r,level:null,responseType:"text",type:Et,url:i,deliveryDirectives:o})}},{key:"load",value:function(e){var t,n,r,i=this,o=this.hls.config,a=this.getInternalLoader(e);if(a){var s=a.context;if(s&&s.url===e.url&&s.level===e.level)return void P.trace("[playlist-loader]: playlist request ongoing");P.log("[playlist-loader]: aborting previous loader for type: "+e.type),a.abort()}if(n=e.type===St?o.manifestLoadPolicy.default:u({},o.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),a=this.createInternalLoader(e),f(null==(t=e.deliveryDirectives)?void 0:t.part)&&(e.type===Ot&&null!==e.level?r=this.hls.levels[e.level].details:e.type===kt&&null!==e.id?r=this.hls.audioTracks[e.id].details:e.type===Et&&null!==e.id&&(r=this.hls.subtitleTracks[e.id].details),r)){var c=r.partTarget,l=r.targetduration;if(c&&l){var d=1e3*Math.max(3*c,.8*l);n=u({},n,{maxTimeToFirstByteMs:Math.min(d,n.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(d,n.maxTimeToFirstByteMs)})}}var p=n.errorRetry||n.timeoutRetry||{},h={loadPolicy:n,timeout:n.maxLoadTimeMs,maxRetry:p.maxNumRetry||0,retryDelay:p.retryDelayMs||0,maxRetryDelay:p.maxRetryDelayMs||0},v={onSuccess:function(e,t,n,r){var o=i.getInternalLoader(n);i.resetInternalLoader(n.type);var a=e.data;0===a.indexOf("#EXTM3U")?(t.parsing.start=performance.now(),vt.isMediaPlaylist(a)?i.handleTrackOrLevelPlaylist(e,t,n,r||null,o):i.handleMasterPlaylist(e,t,n,r)):i.handleManifestParsingError(e,n,new Error("no EXTM3U delimiter"),r||null,t)},onError:function(e,t,n,r){i.handleNetworkError(t,n,!1,e,r)},onTimeout:function(e,t,n){i.handleNetworkError(t,n,!0,void 0,e)}};a.load(e,h,v)}},{key:"handleMasterPlaylist",value:function(e,t,n,r){var i=this.hls,o=e.data,a=Ct(e,n),s=vt.parseMasterPlaylist(o,a);if(s.playlistParsingError)this.handleManifestParsingError(e,n,s.playlistParsingError,r,t);else{var u=s.contentSteering,c=s.levels,l=s.sessionData,f=s.sessionKeys,d=s.startTimeOffset,p=s.variableList;this.variableList=p;var h=vt.parseMasterPlaylistMedia(o,a,s),v=h.AUDIO,g=void 0===v?[]:v,y=h.SUBTITLES,b=h["CLOSED-CAPTIONS"];g.length&&(g.some((function(e){return!e.url}))||!c[0].audioCodec||c[0].attrs.AUDIO||(P.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),g.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new D({}),bitrate:0,url:""}))),i.trigger(m.MANIFEST_LOADED,{levels:c,audioTracks:g,subtitles:y,captions:b,contentSteering:u,url:a,stats:t,networkDetails:r,sessionData:l,sessionKeys:f,startTimeOffset:d,variableList:p})}}},{key:"handleTrackOrLevelPlaylist",value:function(e,t,n,r,i){var o=this.hls,a=n.id,s=n.level,u=n.type,c=Ct(e,n),l=f(s)?s:f(a)?a:0,d=Tt(n),p=vt.parseLevelPlaylist(e.data,c,l,d,0,this.variableList);if(u===St){var h={attrs:new D({}),bitrate:0,details:p,name:"",url:c};o.trigger(m.MANIFEST_LOADED,{levels:[h],audioTracks:[],url:c,stats:t,networkDetails:r,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),n.levelDetails=p,this.handlePlaylistLoaded(p,e,t,n,r,i)}},{key:"handleManifestParsingError",value:function(e,t,n,r,i){this.hls.trigger(m.ERROR,{type:w.NETWORK_ERROR,details:S.MANIFEST_PARSING_ERROR,fatal:t.type===St,url:e.url,err:n,error:n,reason:n.message,response:e,context:t,networkDetails:r,stats:i})}},{key:"handleNetworkError",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o="A network ".concat(n?"timeout":"error"+(r?" (status "+r.code+")":"")," occurred while loading ").concat(e.type);e.type===Ot?o+=": ".concat(e.level," id: ").concat(e.id):e.type!==kt&&e.type!==Et||(o+=" id: ".concat(e.id,' group-id: "').concat(e.groupId,'"'));var s=new Error(o);P.warn("[playlist-loader]: "+o);var u=S.UNKNOWN,c=!1,l=this.getInternalLoader(e);switch(e.type){case St:u=n?S.MANIFEST_LOAD_TIMEOUT:S.MANIFEST_LOAD_ERROR,c=!0;break;case Ot:u=n?S.LEVEL_LOAD_TIMEOUT:S.LEVEL_LOAD_ERROR,c=!1;break;case kt:u=n?S.AUDIO_TRACK_LOAD_TIMEOUT:S.AUDIO_TRACK_LOAD_ERROR,c=!1;break;case Et:u=n?S.SUBTITLE_TRACK_LOAD_TIMEOUT:S.SUBTITLE_LOAD_ERROR,c=!1}l&&this.resetInternalLoader(e.type);var f={type:w.NETWORK_ERROR,details:u,fatal:c,url:e.url,loader:l,context:e,error:s,networkDetails:t,stats:i};if(r){var d=(null==t?void 0:t.url)||e.url;f.response=a({url:d,data:void 0},r)}this.hls.trigger(m.ERROR,f)}},{key:"handlePlaylistLoaded",value:function(e,t,n,r,i,o){var a=this.hls,s=r.type,u=r.level,c=r.id,l=r.groupId,f=r.deliveryDirectives,d=Ct(t,r),p=Tt(r),h="number"==typeof r.level&&p===jt.MAIN?u:void 0;if(e.fragments.length){e.targetduration||(e.playlistParsingError=new Error("Missing Target Duration"));var v=e.playlistParsingError;if(v)a.trigger(m.ERROR,{type:w.NETWORK_ERROR,details:S.LEVEL_PARSING_ERROR,fatal:!1,url:d,error:v,reason:v.message,response:t,context:r,level:h,parent:p,networkDetails:i,stats:n});else switch(e.live&&o&&(o.getCacheAge&&(e.ageHeader=o.getCacheAge()||0),o.getCacheAge&&!isNaN(e.ageHeader)||(e.ageHeader=0)),s){case St:case Ot:a.trigger(m.LEVEL_LOADED,{details:e,level:h||0,id:c||0,stats:n,networkDetails:i,deliveryDirectives:f});break;case kt:a.trigger(m.AUDIO_TRACK_LOADED,{details:e,id:c||0,groupId:l||"",stats:n,networkDetails:i,deliveryDirectives:f});break;case Et:a.trigger(m.SUBTITLE_TRACK_LOADED,{details:e,id:c||0,groupId:l||"",stats:n,networkDetails:i,deliveryDirectives:f})}}else{var g=new Error("No Segments found in Playlist");a.trigger(m.ERROR,{type:w.NETWORK_ERROR,details:S.LEVEL_EMPTY_ERROR,fatal:!1,url:d,error:g,reason:g.message,response:t,context:r,level:h,parent:p,networkDetails:i,stats:n})}}}])}();function Pt(e,t){var n;try{n=new Event("addtrack")}catch(e){(n=document.createEvent("Event")).initEvent("addtrack",!1,!1)}n.track=e,t.dispatchEvent(n)}function Mt(e,t){var n=e.mode;if("disabled"===n&&(e.mode="hidden"),e.cues&&!e.cues.getCueById(t.id))try{if(e.addCue(t),!e.cues.getCueById(t.id))throw new Error("addCue is failed for: "+t)}catch(n){P.debug("[texttrack-utils]: "+n);try{var r=new self.TextTrackCue(t.startTime,t.endTime,t.text);r.id=t.id,e.addCue(r)}catch(e){P.debug("[texttrack-utils]: Legacy TextTrackCue fallback failed: "+e)}}"disabled"===n&&(e.mode=n)}function It(e){var t=e.mode;if("disabled"===t&&(e.mode="hidden"),e.cues)for(var n=e.cues.length;n--;)e.removeCue(e.cues[n]);"disabled"===t&&(e.mode=t)}function Rt(e,t,n,r){var i=e.mode;if("disabled"===i&&(e.mode="hidden"),e.cues&&e.cues.length>0)for(var o=function(e,t,n){var r=[],i=function(e,t){if(t<e[0].startTime)return 0;var n=e.length-1;if(t>e[n].endTime)return-1;for(var r=0,i=n;r<=i;){var o=Math.floor((i+r)/2);if(t<e[o].startTime)i=o-1;else{if(!(t>e[o].startTime&&r<n))return o;r=o+1}}return e[r].startTime-t<t-e[i].startTime?r:i}(e,t);if(i>-1)for(var o=i,a=e.length;o<a;o++){var s=e[o];if(s.startTime>=t&&s.endTime<=n)r.push(s);else if(s.startTime>n)return r}return r}(e.cues,t,n),a=0;a<o.length;a++)r&&!r(o[a])||e.removeCue(o[a]);"disabled"===i&&(e.mode=i)}function Dt(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"subtitles"!==r.kind&&"captions"!==r.kind||!r.label||t.push(e[n])}return t}var Lt={audioId3:"org.id3",dateRange:"com.apple.quicktime.HLS",emsg:"https://aomedia.org/emsg/ID3"};function Nt(){if("undefined"!=typeof self)return self.VTTCue||self.TextTrackCue}function Ft(e,t,n,r,i){var o=new e(t,n,"");try{o.value=r,i&&(o.type=i)}catch(s){o=new e(t,n,JSON.stringify(i?a({type:i},r):r))}return o}var Bt=function(){var e=Nt();try{e&&new e(0,Number.POSITIVE_INFINITY,"")}catch(e){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY}();function Ut(e,t){return e.getTime()/1e3-t}var zt=function(){return O((function e(t){_(this,e),this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=t,this._registerListeners()}),[{key:"destroy",value:function(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=null}},{key:"_registerListeners",value:function(){var e=this.hls;e.on(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(m.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(m.LEVEL_UPDATED,this.onLevelUpdated,this)}},{key:"_unregisterListeners",value:function(){var e=this.hls;e.off(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(m.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(m.LEVEL_UPDATED,this.onLevelUpdated,this)}},{key:"onMediaAttached",value:function(e,t){this.media=t.media}},{key:"onMediaDetaching",value:function(){this.id3Track&&(It(this.id3Track),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={})}},{key:"onManifestLoading",value:function(){this.dateRangeCuesAppended={}}},{key:"createTrack",value:function(e){var t=this.getID3Track(e.textTracks);return t.mode="hidden",t}},{key:"getID3Track",value:function(e){if(this.media){for(var t=0;t<e.length;t++){var n=e[t];if("metadata"===n.kind&&"id3"===n.label)return Pt(n,this.media),n}return this.media.addTextTrack("metadata","id3")}}},{key:"onFragParsingMetadata",value:function(e,t){if(this.media){var n=this.hls.config,r=n.enableEmsgMetadataCues,i=n.enableID3MetadataCues;if(r||i){var o=t.samples;this.id3Track||(this.id3Track=this.createTrack(this.media));var a=Nt();if(a)for(var s=0;s<o.length;s++){var u=o[s].type;if((u!==Lt.emsg||r)&&i){var c=pe(o[s].data);if(c){var l=o[s].pts,f=l+o[s].duration;f>Bt&&(f=Bt),f-l<=0&&(f=l+.25);for(var d=0;d<c.length;d++){var p=c[d];if(!fe(p)){this.updateId3CueEnds(l,u);var h=Ft(a,l,f,p,u);h&&this.id3Track.addCue(h)}}}}}}}}},{key:"updateId3CueEnds",value:function(e,t){var n,r=null==(n=this.id3Track)?void 0:n.cues;if(r)for(var i=r.length;i--;){var o=r[i];o.type===t&&o.startTime<e&&o.endTime===Bt&&(o.endTime=e)}}},{key:"onBufferFlushing",value:function(e,t){var n=t.startOffset,r=t.endOffset,i=t.type,o=this.id3Track,a=this.hls;if(a){var s=a.config,u=s.enableEmsgMetadataCues,c=s.enableID3MetadataCues;o&&(u||c)&&Rt(o,n,r,"audio"===i?function(e){return e.type===Lt.audioId3&&c}:"video"===i?function(e){return e.type===Lt.emsg&&u}:function(e){return e.type===Lt.audioId3&&c||e.type===Lt.emsg&&u})}}},{key:"onLevelUpdated",value:function(e,t){var n=this,r=t.details;if(this.media&&r.hasProgramDateTime&&this.hls.config.enableDateRangeMetadataCues){var i=this.dateRangeCuesAppended,o=this.id3Track,a=r.dateRanges,s=Object.keys(a);if(o)for(var u=Object.keys(i).filter((function(e){return!s.includes(e)})),c=function(){var e=u[l];Object.keys(i[e].cues).forEach((function(t){o.removeCue(i[e].cues[t])})),delete i[e]},l=u.length;l--;)c();var d=r.fragments[r.fragments.length-1];if(0!==s.length&&f(null==d?void 0:d.programDateTime)){this.id3Track||(this.id3Track=this.createTrack(this.media));for(var p,h,v=d.programDateTime/1e3-d.start,g=Nt(),m=function(){var e=s[y],t=a[e],r=Ut(t.startDate,v),o=i[e],u=(null==o?void 0:o.cues)||{},c=(null==o?void 0:o.durationKnown)||!1,l=Bt,f=t.endDate;if(f)l=Ut(f,v),c=!0;else if(t.endOnNext&&!c){var d=s.reduce((function(e,n){if(n!==t.id){var r=a[n];if(r.class===t.class&&r.startDate>t.startDate&&(!e||t.startDate<e.startDate))return r}return e}),null);d&&(l=Ut(d.startDate,v),c=!0)}for(var m=Object.keys(t.attr),b=0;b<m.length;b++){var x=m[b];if("ID"!==(h=x)&&"CLASS"!==h&&"START-DATE"!==h&&"DURATION"!==h&&"END-DATE"!==h&&"END-ON-NEXT"!==h){var w=u[x];if(w)c&&!o.durationKnown&&(w.endTime=l);else if(g){var _=t.attr[x];L(x)&&(p=_,_=Uint8Array.from(p.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer);var S=Ft(g,r,l,{key:x,data:_},Lt.dateRange);S&&(S.id=e,n.id3Track.addCue(S),u[x]=S)}}}i[e]={cues:u,dateRange:t,durationKnown:c}},y=0;y<s.length;y++)m()}}}}])}(),Vt=function(){return O((function e(t){var n=this;_(this,e),this.hls=void 0,this.config=void 0,this.media=null,this.levelDetails=null,this.currentTime=0,this.stallCount=0,this._latency=null,this.timeupdateHandler=function(){return n.timeupdate()},this.hls=t,this.config=t.config,this.registerListeners()}),[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var e=this.config,t=this.levelDetails;return void 0!==e.liveMaxLatencyDuration?e.liveMaxLatencyDuration:t?e.liveMaxLatencyDurationCount*t.targetduration:0}},{key:"targetLatency",get:function(){var e=this.levelDetails;if(null===e)return null;var t=e.holdBack,n=e.partHoldBack,r=e.targetduration,i=this.config,o=i.liveSyncDuration,a=i.liveSyncDurationCount,s=i.lowLatencyMode,u=this.hls.userConfig,c=s&&n||t;(u.liveSyncDuration||u.liveSyncDurationCount||0===c)&&(c=void 0!==o?o:a*r);var l=r;return c+Math.min(1*this.stallCount,l)}},{key:"liveSyncPosition",get:function(){var e=this.estimateLiveEdge(),t=this.targetLatency,n=this.levelDetails;if(null===e||null===t||null===n)return null;var r=n.edge,i=e-t-this.edgeStalled,o=r-n.totalduration,a=r-(this.config.lowLatencyMode&&n.partTarget||n.targetduration);return Math.min(Math.max(o,i),a)}},{key:"drift",get:function(){var e=this.levelDetails;return null===e?1:e.drift}},{key:"edgeStalled",get:function(){var e=this.levelDetails;if(null===e)return 0;var t=3*(this.config.lowLatencyMode&&e.partTarget||e.targetduration);return Math.max(e.age-t,0)}},{key:"forwardBufferLength",get:function(){var e=this.media,t=this.levelDetails;if(!e||!t)return 0;var n=e.buffered.length;return(n?e.buffered.end(n-1):t.edge)-this.currentTime}},{key:"destroy",value:function(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null}},{key:"registerListeners",value:function(){this.hls.on(m.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(m.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(m.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(m.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(m.ERROR,this.onError,this)}},{key:"unregisterListeners",value:function(){this.hls.off(m.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(m.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.off(m.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(m.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.off(m.ERROR,this.onError,this)}},{key:"onMediaAttached",value:function(e,t){this.media=t.media,this.media.addEventListener("timeupdate",this.timeupdateHandler)}},{key:"onMediaDetaching",value:function(){this.media&&(this.media.removeEventListener("timeupdate",this.timeupdateHandler),this.media=null)}},{key:"onManifestLoading",value:function(){this.levelDetails=null,this._latency=null,this.stallCount=0}},{key:"onLevelUpdated",value:function(e,t){var n=t.details;this.levelDetails=n,n.advanced&&this.timeupdate(),!n.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)}},{key:"onError",value:function(e,t){var n;t.details===S.BUFFER_STALLED_ERROR&&(this.stallCount++,null!=(n=this.levelDetails)&&n.live&&P.warn("[playback-rate-controller]: Stall detected, adjusting target latency"))}},{key:"timeupdate",value:function(){var e=this.media,t=this.levelDetails;if(e&&t){this.currentTime=e.currentTime;var n=this.computeLatency();if(null!==n){this._latency=n;var r=this.config,i=r.lowLatencyMode,o=r.maxLiveSyncPlaybackRate;if(i&&1!==o&&t.live){var a=this.targetLatency;if(null!==a){var s=n-a;if(s<Math.min(this.maxLatency,a+t.targetduration)&&s>.05&&this.forwardBufferLength>1){var u=Math.min(2,Math.max(1,o)),c=Math.round(2/(1+Math.exp(-.75*s-this.edgeStalled))*20)/20;e.playbackRate=Math.min(u,Math.max(1,c))}else 1!==e.playbackRate&&0!==e.playbackRate&&(e.playbackRate=1)}}}}}},{key:"estimateLiveEdge",value:function(){var e=this.levelDetails;return null===e?null:e.edge+e.age}},{key:"computeLatency",value:function(){var e=this.estimateLiveEdge();return null===e?null:e-this.currentTime}}])}(),Ht=["NONE","TYPE-0","TYPE-1",null],Wt=["SDR","PQ","HLG"],qt={No:"",Yes:"YES",v2:"v2"};function Gt(e){var t=e.canSkipUntil,n=e.canSkipDateRanges,r=e.age;return t&&r<t/2?n?qt.v2:qt.Yes:qt.No}var Yt=function(){return O((function e(t,n,r){_(this,e),this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=t,this.part=n,this.skip=r}),[{key:"addDirectives",value:function(e){var t=new self.URL(e);return void 0!==this.msn&&t.searchParams.set("_HLS_msn",this.msn.toString()),void 0!==this.part&&t.searchParams.set("_HLS_part",this.part.toString()),this.skip&&t.searchParams.set("_HLS_skip",this.skip),t.href}}])}(),Kt=function(){return O((function e(t){_(this,e),this._attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.url=void 0,this.frameRate=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.videoCodec=void 0,this.width=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.supportedPromise=void 0,this.supportedResult=void 0,this._avgBitrate=0,this._audioGroups=void 0,this._subtitleGroups=void 0,this._urlId=0,this.url=[t.url],this._attrs=[t.attrs],this.bitrate=t.bitrate,t.details&&(this.details=t.details),this.id=t.id||0,this.name=t.name,this.width=t.width||0,this.height=t.height||0,this.frameRate=t.attrs.optionalFloat("FRAME-RATE",0),this._avgBitrate=t.attrs.decimalInteger("AVERAGE-BANDWIDTH"),this.audioCodec=t.audioCodec,this.videoCodec=t.videoCodec,this.codecSet=[t.videoCodec,t.audioCodec].filter((function(e){return!!e})).map((function(e){return e.substring(0,4)})).join(","),this.addGroupId("audio",t.attrs.AUDIO),this.addGroupId("text",t.attrs.SUBTITLES)}),[{key:"maxBitrate",get:function(){return Math.max(this.realBitrate,this.bitrate)}},{key:"averageBitrate",get:function(){return this._avgBitrate||this.realBitrate||this.bitrate}},{key:"attrs",get:function(){return this._attrs[0]}},{key:"codecs",get:function(){return this.attrs.CODECS||""}},{key:"pathwayId",get:function(){return this.attrs["PATHWAY-ID"]||"."}},{key:"videoRange",get:function(){return this.attrs["VIDEO-RANGE"]||"SDR"}},{key:"score",get:function(){return this.attrs.optionalFloat("SCORE",0)}},{key:"uri",get:function(){return this.url[0]||""}},{key:"hasAudioGroup",value:function(e){return $t(this._audioGroups,e)}},{key:"hasSubtitleGroup",value:function(e){return $t(this._subtitleGroups,e)}},{key:"audioGroups",get:function(){return this._audioGroups}},{key:"subtitleGroups",get:function(){return this._subtitleGroups}},{key:"addGroupId",value:function(e,t){if(t)if("audio"===e){var n=this._audioGroups;n||(n=this._audioGroups=[]),-1===n.indexOf(t)&&n.push(t)}else if("text"===e){var r=this._subtitleGroups;r||(r=this._subtitleGroups=[]),-1===r.indexOf(t)&&r.push(t)}}},{key:"urlId",get:function(){return 0},set:function(e){}},{key:"audioGroupIds",get:function(){return this.audioGroups?[this.audioGroupId]:void 0}},{key:"textGroupIds",get:function(){return this.subtitleGroups?[this.textGroupId]:void 0}},{key:"audioGroupId",get:function(){var e;return null==(e=this.audioGroups)?void 0:e[0]}},{key:"textGroupId",get:function(){var e;return null==(e=this.subtitleGroups)?void 0:e[0]}},{key:"addFallback",value:function(){}}])}();function $t(e,t){return!(!t||!e)&&-1!==e.indexOf(t)}function Xt(e,t){var n=t.startPTS;if(f(n)){var r,i=0;t.sn>e.sn?(i=n-e.start,r=e):(i=e.start-n,r=t),r.duration!==i&&(r.duration=i)}else t.sn>e.sn?e.cc===t.cc&&e.minEndPTS?t.start=e.start+(e.minEndPTS-e.start):t.start=e.start+e.duration:t.start=Math.max(e.start-t.duration,0)}function Qt(e,t,n,r,i,o){r-n<=0&&(P.warn("Fragment should have a positive duration",t),r=n+t.duration,o=i+t.duration);var a=n,s=r,u=t.startPTS,c=t.endPTS;if(f(u)){var l=Math.abs(u-n);f(t.deltaPTS)?t.deltaPTS=Math.max(l,t.deltaPTS):t.deltaPTS=l,a=Math.max(n,u),n=Math.min(n,u),i=Math.min(i,t.startDTS),s=Math.min(r,c),r=Math.max(r,c),o=Math.max(o,t.endDTS)}var d=n-t.start;0!==t.start&&(t.start=n),t.duration=r-t.start,t.startPTS=n,t.maxStartPTS=a,t.startDTS=i,t.endPTS=r,t.minEndPTS=s,t.endDTS=o;var p,h=t.sn;if(!e||h<e.startSN||h>e.endSN)return 0;var v=h-e.startSN,g=e.fragments;for(g[v]=t,p=v;p>0;p--)Xt(g[p],g[p-1]);for(p=v;p<g.length-1;p++)Xt(g[p],g[p+1]);return e.fragmentHint&&Xt(g[g.length-1],e.fragmentHint),e.PTSKnown=e.alignedSliding=!0,d}function Zt(e,t){var n=t.startSN+t.skippedSegments-e.startSN,r=e.fragments;n<0||n>=r.length||Jt(t,r[n].start)}function Jt(e,t){if(t){for(var n=e.fragments,r=e.skippedSegments;r<n.length;r++)n[r].start+=t;e.fragmentHint&&(e.fragmentHint.start+=t)}}function en(e,t,n){var r;return null!=e&&e.details?tn(null==(r=e.details)?void 0:r.partList,t,n):null}function tn(e,t,n){if(e)for(var r=e.length;r--;){var i=e[r];if(i.index===n&&i.fragment.sn===t)return i}return null}function nn(e){e.forEach((function(e,t){var n=e.details;null!=n&&n.fragments&&n.fragments.forEach((function(e){e.level=t}))}))}function rn(e){switch(e.details){case S.FRAG_LOAD_TIMEOUT:case S.KEY_LOAD_TIMEOUT:case S.LEVEL_LOAD_TIMEOUT:case S.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function on(e,t){var n=rn(t);return e.default[(n?"timeout":"error")+"Retry"]}function an(e,t){var n="linear"===e.backoff?1:Math.pow(2,t);return Math.min(n*e.retryDelayMs,e.maxRetryDelayMs)}function sn(e){return a(a({},e),{errorRetry:null,timeoutRetry:null})}function un(e,t,n,r){if(!e)return!1;var i=null==r?void 0:r.code,o=t<e.maxNumRetry&&(function(e){return 0===e&&!1===navigator.onLine||!!e&&(e<400||e>499)}(i)||!!n);return e.shouldRetry?e.shouldRetry(e,t,n,r,o):o}var cn=function(e,t){for(var n=0,r=e.length-1,i=null,o=null;n<=r;){var a=t(o=e[i=(n+r)/2|0]);if(a>0)n=i+1;else{if(!(a<0))return o;r=i-1}}return null};function ln(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.005,o=null;if(e){o=t[e.sn-t[0].sn+1]||null;var a=e.endDTS-n;a>0&&a<15e-7&&(n+=15e-7)}else 0===n&&0===t[0].start&&(o=t[0]);if(o&&((!e||e.level===o.level)&&0===fn(n,r,o)||function(e,t,n){if(t&&0===t.start&&t.level<e.level&&(t.endPTS||0)>0){var r=t.tagList.reduce((function(e,t){return"INF"===t[0]&&(e+=parseFloat(t[1])),e}),n);return e.start<=r}return!1}(o,e,Math.min(i,r))))return o;var s=cn(t,fn.bind(null,n,r));return!s||s===e&&o?o:s}function fn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;if(n.start<=e&&n.start+n.duration>e)return 0;var r=Math.min(t,n.duration+(n.deltaPTS?n.deltaPTS:0));return n.start+n.duration-r<=e?1:n.start-r>e&&n.start?-1:0}function dn(e,t,n){var r=1e3*Math.min(t,n.duration+(n.deltaPTS?n.deltaPTS:0));return(n.endProgramDateTime||0)-r>e}var pn={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},hn={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,SwitchToSDR:4},vn=function(){return O((function e(t){_(this,e),this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.log=void 0,this.warn=void 0,this.error=void 0,this.hls=t,this.log=P.log.bind(P,"[info]:"),this.warn=P.warn.bind(P,"[warning]:"),this.error=P.error.bind(P,"[error]:"),this.registerListeners()}),[{key:"registerListeners",value:function(){var e=this.hls;e.on(m.ERROR,this.onError,this),e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.LEVEL_UPDATED,this.onLevelUpdated,this)}},{key:"unregisterListeners",value:function(){var e=this.hls;e&&(e.off(m.ERROR,this.onError,this),e.off(m.ERROR,this.onErrorOut,this),e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.LEVEL_UPDATED,this.onLevelUpdated,this))}},{key:"destroy",value:function(){this.unregisterListeners(),this.hls=null,this.penalizedRenditions={}}},{key:"startLoad",value:function(e){}},{key:"stopLoad",value:function(){this.playlistError=0}},{key:"getVariantLevelIndex",value:function(e){return(null==e?void 0:e.type)===jt.MAIN?e.level:this.hls.loadLevel}},{key:"onManifestLoading",value:function(){this.playlistError=0,this.penalizedRenditions={}}},{key:"onLevelUpdated",value:function(){this.playlistError=0}},{key:"onError",value:function(e,t){var n,r;if(!t.fatal){var i=this.hls,o=t.context;switch(t.details){case S.FRAG_LOAD_ERROR:case S.FRAG_LOAD_TIMEOUT:case S.KEY_LOAD_ERROR:case S.KEY_LOAD_TIMEOUT:return void(t.errorAction=this.getFragRetryOrSwitchAction(t));case S.FRAG_PARSING_ERROR:if(null!=(n=t.frag)&&n.gap)return void(t.errorAction={action:pn.DoNothing,flags:hn.None});case S.FRAG_GAP:case S.FRAG_DECRYPT_ERROR:return t.errorAction=this.getFragRetryOrSwitchAction(t),void(t.errorAction.action=pn.SendAlternateToPenaltyBox);case S.LEVEL_EMPTY_ERROR:case S.LEVEL_PARSING_ERROR:var a,s,u=t.parent===jt.MAIN?t.level:i.loadLevel;return void(t.details===S.LEVEL_EMPTY_ERROR&&null!=(a=t.context)&&null!=(s=a.levelDetails)&&s.live?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,u):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,u)));case S.LEVEL_LOAD_ERROR:case S.LEVEL_LOAD_TIMEOUT:return void("number"==typeof(null==o?void 0:o.level)&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,o.level)));case S.AUDIO_TRACK_LOAD_ERROR:case S.AUDIO_TRACK_LOAD_TIMEOUT:case S.SUBTITLE_LOAD_ERROR:case S.SUBTITLE_TRACK_LOAD_TIMEOUT:if(o){var c=i.levels[i.loadLevel];if(c&&(o.type===kt&&c.hasAudioGroup(o.groupId)||o.type===Et&&c.hasSubtitleGroup(o.groupId)))return t.errorAction=this.getPlaylistRetryOrSwitchAction(t,i.loadLevel),t.errorAction.action=pn.SendAlternateToPenaltyBox,void(t.errorAction.flags=hn.MoveAllAlternatesMatchingHost)}return;case S.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:var l=i.levels[i.loadLevel],f=null==l?void 0:l.attrs["HDCP-LEVEL"];return void(f?t.errorAction={action:pn.SendAlternateToPenaltyBox,flags:hn.MoveAllAlternatesMatchingHDCP,hdcpLevel:f}:this.keySystemError(t));case S.BUFFER_ADD_CODEC_ERROR:case S.REMUX_ALLOC_ERROR:case S.BUFFER_APPEND_ERROR:return void(t.errorAction=this.getLevelSwitchAction(t,null!=(r=t.level)?r:i.loadLevel));case S.INTERNAL_EXCEPTION:case S.BUFFER_APPENDING_ERROR:case S.BUFFER_FULL_ERROR:case S.LEVEL_SWITCH_ERROR:case S.BUFFER_STALLED_ERROR:case S.BUFFER_SEEK_OVER_HOLE:case S.BUFFER_NUDGE_ON_STALL:return void(t.errorAction={action:pn.DoNothing,flags:hn.None})}t.type===w.KEY_SYSTEM_ERROR&&this.keySystemError(t)}}},{key:"keySystemError",value:function(e){var t=this.getVariantLevelIndex(e.frag);e.levelRetry=!1,e.errorAction=this.getLevelSwitchAction(e,t)}},{key:"getPlaylistRetryOrSwitchAction",value:function(e,t){var n=on(this.hls.config.playlistLoadPolicy,e),r=this.playlistError++;if(un(n,r,rn(e),e.response))return{action:pn.RetryRequest,flags:hn.None,retryConfig:n,retryCount:r};var i=this.getLevelSwitchAction(e,t);return n&&(i.retryConfig=n,i.retryCount=r),i}},{key:"getFragRetryOrSwitchAction",value:function(e){var t=this.hls,n=this.getVariantLevelIndex(e.frag),r=t.levels[n],i=t.config,o=i.fragLoadPolicy,a=i.keyLoadPolicy,s=on(e.details.startsWith("key")?a:o,e),u=t.levels.reduce((function(e,t){return e+t.fragmentError}),0);if(r&&(e.details!==S.FRAG_GAP&&r.fragmentError++,un(s,u,rn(e),e.response)))return{action:pn.RetryRequest,flags:hn.None,retryConfig:s,retryCount:u};var c=this.getLevelSwitchAction(e,n);return s&&(c.retryConfig=s,c.retryCount=u),c}},{key:"getLevelSwitchAction",value:function(e,t){var n=this.hls;null==t&&(t=n.loadLevel);var r=this.hls.levels[t];if(r){var i,o,a=e.details;r.loadError++,a===S.BUFFER_APPEND_ERROR&&r.fragmentError++;var s=-1,u=n.levels,c=n.loadLevel,l=n.minAutoLevel,f=n.maxAutoLevel;n.autoLevelEnabled||(n.loadLevel=-1);for(var d,p,h,v=null==(i=e.frag)?void 0:i.type,g=(v===jt.AUDIO&&a===S.FRAG_PARSING_ERROR||"audio"===e.sourceBufferName&&(a===S.BUFFER_ADD_CODEC_ERROR||a===S.BUFFER_APPEND_ERROR))&&u.some((function(e){var t=e.audioCodec;return r.audioCodec!==t})),m="video"===e.sourceBufferName&&(a===S.BUFFER_ADD_CODEC_ERROR||a===S.BUFFER_APPEND_ERROR)&&u.some((function(e){var t=e.codecSet,n=e.audioCodec;return r.codecSet!==t&&r.audioCodec===n})),y=null!=(o=e.context)?o:{},b=y.type,x=y.groupId,w=function(){var t=(_+c)%u.length;if(t!==c&&t>=l&&t<=f&&0===u[t].loadError){var n=u[t];if(a===S.FRAG_GAP&&v===jt.MAIN&&e.frag){var i=u[t].details;if(i){var o=ln(e.frag,i.fragments,e.frag.start);if(null!=o&&o.gap)return 0}}else{if(b===kt&&n.hasAudioGroup(x)||b===Et&&n.hasSubtitleGroup(x))return 0;if(v===jt.AUDIO&&null!=(d=r.audioGroups)&&d.some((function(e){return n.hasAudioGroup(e)}))||v===jt.SUBTITLE&&null!=(p=r.subtitleGroups)&&p.some((function(e){return n.hasSubtitleGroup(e)}))||g&&r.audioCodec===n.audioCodec||!g&&r.audioCodec!==n.audioCodec||m&&r.codecSet===n.codecSet)return 0}return s=t,1}},_=u.length;_--&&(0===(h=w())||1!==h););if(s>-1&&n.loadLevel!==s)return e.levelRetry=!0,this.playlistError=0,{action:pn.SendAlternateToPenaltyBox,flags:hn.None,nextAutoLevel:s}}return{action:pn.SendAlternateToPenaltyBox,flags:hn.MoveAllAlternatesMatchingHost}}},{key:"onErrorOut",value:function(e,t){var n;switch(null==(n=t.errorAction)?void 0:n.action){case pn.DoNothing:break;case pn.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(t),t.errorAction.resolved||t.details===S.FRAG_GAP?/MediaSource readyState: ended/.test(t.error.message)&&(this.warn('MediaSource ended after "'.concat(t.sourceBufferName,'" sourceBuffer append error. Attempting to recover from media error.')),this.hls.recoverMediaError()):t.fatal=!0;break;case pn.RetryRequest:}t.fatal&&this.hls.stopLoad()}},{key:"sendAlternateToPenaltyBox",value:function(e){var t=this.hls,n=e.errorAction;if(n){var r=n.flags,i=n.hdcpLevel,o=n.nextAutoLevel;switch(r){case hn.None:this.switchLevel(e,o);break;case hn.MoveAllAlternatesMatchingHDCP:i&&(t.maxHdcpLevel=Ht[Ht.indexOf(i)-1],n.resolved=!0),this.warn('Restricting playback to HDCP-LEVEL of "'.concat(t.maxHdcpLevel,'" or lower'))}n.resolved||this.switchLevel(e,o)}}},{key:"switchLevel",value:function(e,t){void 0!==t&&e.errorAction&&(this.warn("switching to level ".concat(t," after ").concat(e.details)),this.hls.nextAutoLevel=t,e.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel)}}])}(),gn=function(){return O((function e(t,n){_(this,e),this.hls=void 0,this.timer=-1,this.requestScheduled=-1,this.canLoad=!1,this.log=void 0,this.warn=void 0,this.log=P.log.bind(P,n+":"),this.warn=P.warn.bind(P,n+":"),this.hls=t}),[{key:"destroy",value:function(){this.clearTimer(),this.hls=this.log=this.warn=null}},{key:"clearTimer",value:function(){-1!==this.timer&&(self.clearTimeout(this.timer),this.timer=-1)}},{key:"startLoad",value:function(){this.canLoad=!0,this.requestScheduled=-1,this.loadPlaylist()}},{key:"stopLoad",value:function(){this.canLoad=!1,this.clearTimer()}},{key:"switchParams",value:function(e,t,n){var r=null==t?void 0:t.renditionReports;if(r){for(var i=-1,o=0;o<r.length;o++){var a=r[o],s=void 0;try{s=new self.URL(a.URI,t.url).href}catch(e){P.warn("Could not construct new URL for Rendition Report: "+e),s=a.URI||""}if(s===e){i=o;break}s===e.substring(0,s.length)&&(i=o)}if(-1!==i){var u=r[i],c=parseInt(u["LAST-MSN"])||(null==t?void 0:t.lastPartSn),l=parseInt(u["LAST-PART"])||(null==t?void 0:t.lastPartIndex);if(this.hls.config.lowLatencyMode){var f=Math.min(t.age-t.partTarget,t.targetduration);l>=0&&f>t.partTarget&&(l+=1)}var d=n&&Gt(n);return new Yt(c,l>=0?l:void 0,d)}}}},{key:"loadPlaylist",value:function(e){-1===this.requestScheduled&&(this.requestScheduled=self.performance.now())}},{key:"shouldLoadPlaylist",value:function(e){return this.canLoad&&!!e&&!!e.url&&(!e.details||e.details.live)}},{key:"shouldReloadPlaylist",value:function(e){return-1===this.timer&&-1===this.requestScheduled&&this.shouldLoadPlaylist(e)}},{key:"playlistLoaded",value:function(e,t,n){var r=this,i=t.details,o=t.stats,a=self.performance.now(),s=o.loading.first?Math.max(0,a-o.loading.first):0;if(i.advancedDateTime=Date.now()-s,i.live||null!=n&&n.live){if(i.reloaded(n),n&&this.log("live playlist ".concat(e," ").concat(i.advanced?"REFRESHED "+i.lastPartSn+"-"+i.lastPartIndex:i.updated?"UPDATED":"MISSED")),n&&i.fragments.length>0&&function(e,t){for(var n=null,r=e.fragments,i=r.length-1;i>=0;i--){var o=r[i].initSegment;if(o){n=o;break}}e.fragmentHint&&delete e.fragmentHint.endPTS;var a,s=0;if(function(e,t,n){for(var r=t.skippedSegments,i=Math.max(e.startSN,t.startSN)-t.startSN,o=(e.fragmentHint?1:0)+(r?t.endSN:Math.min(e.endSN,t.endSN))-t.startSN,a=t.startSN-e.startSN,s=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments,u=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments,c=i;c<=o;c++){var l=u[a+c],f=s[c];r&&!f&&c<r&&(f=t.fragments[c]=l),l&&f&&n(l,f)}}(e,t,(function(e,r){e.relurl&&(s=e.cc-r.cc),f(e.startPTS)&&f(e.endPTS)&&(r.start=r.startPTS=e.startPTS,r.startDTS=e.startDTS,r.maxStartPTS=e.maxStartPTS,r.endPTS=e.endPTS,r.endDTS=e.endDTS,r.minEndPTS=e.minEndPTS,r.duration=e.endPTS-e.startPTS,r.duration&&(a=r),t.PTSKnown=t.alignedSliding=!0),r.elementaryStreams=e.elementaryStreams,r.loader=e.loader,r.stats=e.stats,e.initSegment&&(r.initSegment=e.initSegment,n=e.initSegment)})),n&&(t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments).forEach((function(e){var t;!e||e.initSegment&&e.initSegment.relurl!==(null==(t=n)?void 0:t.relurl)||(e.initSegment=n)})),t.skippedSegments)if(t.deltaUpdateFailed=t.fragments.some((function(e){return!e})),t.deltaUpdateFailed){P.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var c=t.skippedSegments;c--;)t.fragments.shift();t.startSN=t.fragments[0].sn,t.startCC=t.fragments[0].cc}else t.canSkipDateRanges&&(t.dateRanges=function(e,t,n){var r=u({},e);return n&&n.forEach((function(e){delete r[e]})),Object.keys(t).forEach((function(e){var n=new N(t[e].attr,r[e]);n.isValid?r[e]=n:P.warn('Ignoring invalid Playlist Delta Update DATERANGE tag: "'.concat(JSON.stringify(t[e].attr),'"'))})),r}(e.dateRanges,t.dateRanges,t.recentlyRemovedDateranges));var l=t.fragments;if(s){P.warn("discontinuity sliding from playlist, take drift into account");for(var d=0;d<l.length;d++)l[d].cc+=s}t.skippedSegments&&(t.startCC=t.fragments[0].cc),function(e,t,n){if(e&&t)for(var r=0,i=0,o=e.length;i<=o;i++){var a=e[i],s=t[i+r];a&&s&&a.index===s.index&&a.fragment.sn===s.fragment.sn?n(a,s):r--}}(e.partList,t.partList,(function(e,t){t.elementaryStreams=e.elementaryStreams,t.stats=e.stats})),a?Qt(t,a,a.startPTS,a.endPTS,a.startDTS,a.endDTS):Zt(e,t),l.length&&(t.totalduration=t.edge-l[0].start),t.driftStartTime=e.driftStartTime,t.driftStart=e.driftStart;var p=t.advancedDateTime;if(t.advanced&&p){var h=t.edge;t.driftStart||(t.driftStartTime=p,t.driftStart=h),t.driftEndTime=p,t.driftEnd=h}else t.driftEndTime=e.driftEndTime,t.driftEnd=e.driftEnd,t.advancedDateTime=e.advancedDateTime}(n,i),!this.canLoad||!i.live)return;var c,l=void 0,d=void 0;if(i.canBlockReload&&i.endSN&&i.advanced){var p=this.hls.config.lowLatencyMode,h=i.lastPartSn,v=i.endSN,g=i.lastPartIndex,m=h===v;-1!==g?(l=m?v+1:h,d=m?p?0:g:g+1):l=v+1;var y=i.age,b=y+i.ageHeader,x=Math.min(b-i.partTarget,1.5*i.targetduration);if(x>0){if(n&&x>n.tuneInGoal)this.warn("CDN Tune-in goal increased from: ".concat(n.tuneInGoal," to: ").concat(x," with playlist age: ").concat(i.age)),x=0;else{var w=Math.floor(x/i.targetduration);l+=w,void 0!==d&&(d+=Math.round(x%i.targetduration/i.partTarget)),this.log("CDN Tune-in age: ".concat(i.ageHeader,"s last advanced ").concat(y.toFixed(2),"s goal: ").concat(x," skip sn ").concat(w," to part ").concat(d))}i.tuneInGoal=x}if(c=this.getDeliveryDirectives(i,t.deliveryDirectives,l,d),p||!m)return void this.loadPlaylist(c)}else(i.canBlockReload||i.canSkipUntil)&&(c=this.getDeliveryDirectives(i,t.deliveryDirectives,l,d));var _=this.hls.mainForwardBufferInfo,S=_?_.end-_.len:0,O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,n=1e3*e.targetduration;if(e.updated){var r=e.fragments,i=4;if(r.length&&n*i>t){var o=1e3*r[r.length-1].duration;o<n&&(n=o)}}else n/=2;return Math.round(n)}(i,1e3*(i.edge-S));i.updated&&a>this.requestScheduled+O&&(this.requestScheduled=o.loading.start),void 0!==l&&i.canBlockReload?this.requestScheduled=o.loading.first+O-(1e3*i.partTarget||1e3):-1===this.requestScheduled||this.requestScheduled+O<a?this.requestScheduled=a:this.requestScheduled-a<=0&&(this.requestScheduled+=O);var k=this.requestScheduled-a;k=Math.max(0,k),this.log("reload live playlist ".concat(e," in ").concat(Math.round(k)," ms")),this.timer=self.setTimeout((function(){return r.loadPlaylist(c)}),k)}else this.clearTimer()}},{key:"getDeliveryDirectives",value:function(e,t,n,r){var i=Gt(e);return null!=t&&t.skip&&e.deltaUpdateFailed&&(n=t.msn,r=t.part,i=qt.No),new Yt(n,r,i)}},{key:"checkRetry",value:function(e){var t=this,n=e.details,r=rn(e),i=e.errorAction,o=i||{},a=o.action,s=o.retryCount,u=void 0===s?0:s,c=o.retryConfig,l=!!i&&!!c&&(a===pn.RetryRequest||!i.resolved&&a===pn.SendAlternateToPenaltyBox);if(l){var f;if(this.requestScheduled=-1,u>=c.maxNumRetry)return!1;if(r&&null!=(f=e.context)&&f.deliveryDirectives)this.warn("Retrying playlist loading ".concat(u+1,"/").concat(c.maxNumRetry,' after "').concat(n,'" without delivery-directives')),this.loadPlaylist();else{var d=an(c,u);this.timer=self.setTimeout((function(){return t.loadPlaylist()}),d),this.warn("Retrying playlist loading ".concat(u+1,"/").concat(c.maxNumRetry,' after "').concat(n,'" in ').concat(d,"ms"))}e.levelRetry=!0,i.resolved=!0}return l}}])}(),mn=function(){return O((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;_(this,e),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=t,this.alpha_=t?Math.exp(Math.log(.5)/t):0,this.estimate_=n,this.totalWeight_=r}),[{key:"sample",value:function(e,t){var n=Math.pow(this.alpha_,e);this.estimate_=t*(1-n)+n*this.estimate_,this.totalWeight_+=e}},{key:"getTotalWeight",value:function(){return this.totalWeight_}},{key:"getEstimate",value:function(){if(this.alpha_){var e=1-Math.pow(this.alpha_,this.totalWeight_);if(e)return this.estimate_/e}return this.estimate_}}])}(),yn=function(){return O((function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:100;_(this,e),this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=r,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new mn(t),this.fast_=new mn(n),this.defaultTTFB_=i,this.ttfb_=new mn(t)}),[{key:"update",value:function(e,t){var n=this.slow_,r=this.fast_,i=this.ttfb_;n.halfLife!==e&&(this.slow_=new mn(e,n.getEstimate(),n.getTotalWeight())),r.halfLife!==t&&(this.fast_=new mn(t,r.getEstimate(),r.getTotalWeight())),i.halfLife!==e&&(this.ttfb_=new mn(e,i.getEstimate(),i.getTotalWeight()))}},{key:"sample",value:function(e,t){var n=(e=Math.max(e,this.minDelayMs_))/1e3,r=8*t/n;this.fast_.sample(n,r),this.slow_.sample(n,r)}},{key:"sampleTTFB",value:function(e){var t=e/1e3,n=Math.sqrt(2)*Math.exp(-Math.pow(t,2)/2);this.ttfb_.sample(n,Math.max(e,5))}},{key:"canEstimate",value:function(){return this.fast_.getTotalWeight()>=this.minWeight_}},{key:"getEstimate",value:function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_}},{key:"getEstimateTTFB",value:function(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_}},{key:"destroy",value:function(){}}])}(),bn={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]},xn={};function wn(e,t,n){var r=e.videoCodec,i=e.audioCodec;if(!r||!i||!n)return Promise.resolve(bn);var o={width:e.width,height:e.height,bitrate:Math.ceil(Math.max(.9*e.bitrate,e.averageBitrate)),framerate:e.frameRate||30},s=e.videoRange;"SDR"!==s&&(o.transferFunction=s.toLowerCase());var u=r.split(",").map((function(e){return{type:"media-source",video:a(a({},o),{},{contentType:rt(e,"video")})}}));return i&&e.audioGroups&&e.audioGroups.forEach((function(e){var n;e&&(null==(n=t.groups[e])||n.tracks.forEach((function(t){if(t.groupId===e){var n=t.channels||"",r=parseFloat(n);f(r)&&r>2&&u.push.apply(u,i.split(",").map((function(e){return{type:"media-source",audio:{contentType:rt(e,"audio"),channels:""+r}}})))}})))})),Promise.all(u.map((function(e){var t=function(e){var t=e.audio,n=e.video,r=n||t;if(r){var i=r.contentType.split('"')[1];if(n)return"r".concat(n.height,"x").concat(n.width,"f").concat(Math.ceil(n.framerate)).concat(n.transferFunction||"sd","_").concat(i,"_").concat(Math.ceil(n.bitrate/1e5));if(t)return"c".concat(t.channels).concat(t.spatialRendering?"s":"n","_").concat(i)}return""}(e);return xn[t]||(xn[t]=n.decodingInfo(e))}))).then((function(e){return{supported:!e.some((function(e){return!e.supported})),configurations:u,decodingInfoResults:e}})).catch((function(e){return{supported:!1,configurations:u,decodingInfoResults:[],error:e}}))}function _n(e,t){P.log('[abr] start candidates with "'.concat(e,'" ignored because ').concat(t))}function Sn(e,t,n){if("attrs"in e){var r=t.indexOf(e);if(-1!==r)return r}for(var i=0;i<t.length;i++)if(On(e,t[i],n))return i;return-1}function On(e,t,n){var r=e.groupId,i=e.name,o=e.lang,a=e.assocLang,s=e.characteristics,u=e.default,c=e.forced;return(void 0===r||t.groupId===r)&&(void 0===i||t.name===i)&&(void 0===o||t.lang===o)&&(void 0===o||t.assocLang===a)&&(void 0===u||t.default===u)&&(void 0===c||t.forced===c)&&(void 0===s||function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.split(","),r=t.split(",");return n.length===r.length&&!n.some((function(e){return-1===r.indexOf(e)}))}(s,t.characteristics))&&(void 0===n||n(e,t))}function kn(e,t){var n=e.audioCodec,r=e.channels;return!(void 0!==n&&(t.audioCodec||"").substring(0,4)!==n.substring(0,4)||void 0!==r&&r!==(t.channels||"2"))}function En(e,t,n){for(var r=t;r;r--)if(n(e[r]))return r;for(var i=t+1;i<e.length;i++)if(n(e[i]))return i;return-1}var jn=function(){return O((function e(t){var n=this;_(this,e),this.hls=void 0,this.lastLevelLoadSec=0,this.lastLoadedFragLevel=-1,this.firstSelection=-1,this._nextAutoLevel=-1,this.nextAutoLevelKey="",this.audioTracksByGroup=null,this.codecTiers=null,this.timer=-1,this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.bwEstimator=void 0,this._abandonRulesCheck=function(){var e=n.fragCurrent,t=n.partCurrent,r=n.hls,i=r.autoLevelEnabled,o=r.media;if(e&&o){var a=performance.now(),s=t?t.stats:e.stats,u=t?t.duration:e.duration,c=a-s.loading.start,l=r.minAutoLevel;if(s.aborted||s.loaded&&s.loaded===s.total||e.level<=l)return n.clearTimer(),void(n._nextAutoLevel=-1);if(i&&!o.paused&&o.playbackRate&&o.readyState){var d=r.mainForwardBufferInfo;if(null!==d){var p=n.bwEstimator.getEstimateTTFB(),h=Math.abs(o.playbackRate);if(!(c<=Math.max(p,u/(2*h)*1e3))){var v=d.len/h,g=s.loading.first?s.loading.first-s.loading.start:-1,y=s.loaded&&g>-1,b=n.getBwEstimate(),x=r.levels,w=x[e.level],_=s.total||Math.max(s.loaded,Math.round(u*w.averageBitrate/8)),S=y?c-g:c;S<1&&y&&(S=Math.min(c,8*s.loaded/b));var O=y?1e3*s.loaded/S:0,k=O?(_-s.loaded)/O:8*_/b+p/1e3;if(!(k<=v)){var E,j=O?8*O:b,T=Number.POSITIVE_INFINITY;for(E=e.level-1;E>l;E--){var C=x[E].maxBitrate;if((T=n.getTimeToLoadFrag(p/1e3,j,u*C,!x[E].details))<v)break}if(!(T>=k||T>10*u)){r.nextLoadLevel=r.nextAutoLevel=E,y?n.bwEstimator.sample(c-Math.min(p,g),s.loaded):n.bwEstimator.sampleTTFB(c);var A=x[E].maxBitrate;n.getBwEstimate()*n.hls.config.abrBandWidthUpFactor>A&&n.resetEstimator(A),n.clearTimer(),P.warn("[abr] Fragment ".concat(e.sn).concat(t?" part "+t.index:""," of level ").concat(e.level," is loading too slowly;\n Time to underbuffer: ").concat(v.toFixed(3)," s\n Estimated load time for current fragment: ").concat(k.toFixed(3)," s\n Estimated load time for down switch fragment: ").concat(T.toFixed(3)," s\n TTFB estimate: ").concat(0|g," ms\n Current BW estimate: ").concat(f(b)?0|b:"Unknown"," bps\n New BW estimate: ").concat(0|n.getBwEstimate()," bps\n Switching to level ").concat(E," @ ").concat(0|A," bps")),r.trigger(m.FRAG_LOAD_EMERGENCY_ABORTED,{frag:e,part:t,stats:s})}}}}}}},this.hls=t,this.bwEstimator=this.initEstimator(),this.registerListeners()}),[{key:"resetEstimator",value:function(e){e&&(P.log("setting initial bwe to "+e),this.hls.config.abrEwmaDefaultEstimate=e),this.firstSelection=-1,this.bwEstimator=this.initEstimator()}},{key:"initEstimator",value:function(){var e=this.hls.config;return new yn(e.abrEwmaSlowVoD,e.abrEwmaFastVoD,e.abrEwmaDefaultEstimate)}},{key:"registerListeners",value:function(){var e=this.hls;e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.FRAG_LOADING,this.onFragLoading,this),e.on(m.FRAG_LOADED,this.onFragLoaded,this),e.on(m.FRAG_BUFFERED,this.onFragBuffered,this),e.on(m.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(m.LEVEL_LOADED,this.onLevelLoaded,this),e.on(m.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(m.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.on(m.ERROR,this.onError,this)}},{key:"unregisterListeners",value:function(){var e=this.hls;e&&(e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.FRAG_LOADING,this.onFragLoading,this),e.off(m.FRAG_LOADED,this.onFragLoaded,this),e.off(m.FRAG_BUFFERED,this.onFragBuffered,this),e.off(m.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(m.LEVEL_LOADED,this.onLevelLoaded,this),e.off(m.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(m.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.off(m.ERROR,this.onError,this))}},{key:"destroy",value:function(){this.unregisterListeners(),this.clearTimer(),this.hls=this._abandonRulesCheck=null,this.fragCurrent=this.partCurrent=null}},{key:"onManifestLoading",value:function(e,t){this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.lastLevelLoadSec=0,this.fragCurrent=this.partCurrent=null,this.onLevelsUpdated(),this.clearTimer()}},{key:"onLevelsUpdated",value:function(){this.lastLoadedFragLevel>-1&&this.fragCurrent&&(this.lastLoadedFragLevel=this.fragCurrent.level),this._nextAutoLevel=-1,this.onMaxAutoLevelUpdated(),this.codecTiers=null,this.audioTracksByGroup=null}},{key:"onMaxAutoLevelUpdated",value:function(){this.firstSelection=-1,this.nextAutoLevelKey=""}},{key:"onFragLoading",value:function(e,t){var n,r=t.frag;this.ignoreFragment(r)||(r.bitrateTest||(this.fragCurrent=r,this.partCurrent=null!=(n=t.part)?n:null),this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100))}},{key:"onLevelSwitching",value:function(e,t){this.clearTimer()}},{key:"onError",value:function(e,t){if(!t.fatal)switch(t.details){case S.BUFFER_ADD_CODEC_ERROR:case S.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case S.FRAG_LOAD_TIMEOUT:var n=t.frag,r=this.fragCurrent,i=this.partCurrent;if(n&&r&&n.sn===r.sn&&n.level===r.level){var o=performance.now(),a=i?i.stats:n.stats,s=o-a.loading.start,u=a.loading.first?a.loading.first-a.loading.start:-1;if(a.loaded&&u>-1){var c=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(s-Math.min(c,u),a.loaded)}else this.bwEstimator.sampleTTFB(s)}}}},{key:"getTimeToLoadFrag",value:function(e,t,n,r){return e+n/t+(r?this.lastLevelLoadSec:0)}},{key:"onLevelLoaded",value:function(e,t){var n=this.hls.config,r=t.stats.loading,i=r.end-r.start;f(i)&&(this.lastLevelLoadSec=i/1e3),t.details.live?this.bwEstimator.update(n.abrEwmaSlowLive,n.abrEwmaFastLive):this.bwEstimator.update(n.abrEwmaSlowVoD,n.abrEwmaFastVoD)}},{key:"onFragLoaded",value:function(e,t){var n=t.frag,r=t.part,i=r?r.stats:n.stats;if(n.type===jt.MAIN&&this.bwEstimator.sampleTTFB(i.loading.first-i.loading.start),!this.ignoreFragment(n)){if(this.clearTimer(),n.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){var o=r?r.duration:n.duration,a=this.hls.levels[n.level],s=(a.loaded?a.loaded.bytes:0)+i.loaded,u=(a.loaded?a.loaded.duration:0)+o;a.loaded={bytes:s,duration:u},a.realBitrate=Math.round(8*s/u)}if(n.bitrateTest){var c={stats:i,frag:n,part:r,id:n.type};this.onFragBuffered(m.FRAG_BUFFERED,c),n.bitrateTest=!1}else this.lastLoadedFragLevel=n.level}}},{key:"onFragBuffered",value:function(e,t){var n=t.frag,r=t.part,i=null!=r&&r.stats.loaded?r.stats:n.stats;if(!i.aborted&&!this.ignoreFragment(n)){var o=i.parsing.end-i.loading.start-Math.min(i.loading.first-i.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(o,i.loaded),i.bwEstimate=this.getBwEstimate(),n.bitrateTest?this.bitrateTestDelay=o/1e3:this.bitrateTestDelay=0}}},{key:"ignoreFragment",value:function(e){return e.type!==jt.MAIN||"initSegment"===e.sn}},{key:"clearTimer",value:function(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)}},{key:"firstAutoLevel",get:function(){var e=this.hls,t=e.maxAutoLevel,n=e.minAutoLevel,r=this.getBwEstimate(),i=this.hls.config.maxStarvationDelay,o=this.findBestLevel(r,n,t,0,i,1,1);if(o>-1)return o;var a=this.hls.firstLevel,s=Math.min(Math.max(a,n),t);return P.warn("[abr] Could not find best starting auto level. Defaulting to first in playlist ".concat(a," clamped to ").concat(s)),s}},{key:"forcedAutoLevel",get:function(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}},{key:"nextAutoLevel",get:function(){var e=this.forcedAutoLevel,t=this.bwEstimator.canEstimate(),n=this.lastLoadedFragLevel>-1;if(!(-1===e||t&&n&&this.nextAutoLevelKey!==this.getAutoLevelKey()))return e;var r=t&&n?this.getNextABRAutoLevel():this.firstAutoLevel;if(-1!==e){var i=this.hls.levels;if(i.length>Math.max(e,r)&&i[e].loadError<=i[r].loadError)return e}return this._nextAutoLevel=r,this.nextAutoLevelKey=this.getAutoLevelKey(),r},set:function(e){var t=this.hls,n=t.maxAutoLevel,r=t.minAutoLevel,i=Math.min(Math.max(e,r),n);this._nextAutoLevel!==i&&(this.nextAutoLevelKey="",this._nextAutoLevel=i)}},{key:"getAutoLevelKey",value:function(){return"".concat(this.getBwEstimate(),"_").concat(this.getStarvationDelay().toFixed(2))}},{key:"getNextABRAutoLevel",value:function(){var e=this.fragCurrent,t=this.partCurrent,n=this.hls,r=n.maxAutoLevel,i=n.config,o=n.minAutoLevel,a=t?t.duration:e?e.duration:0,s=this.getBwEstimate(),u=this.getStarvationDelay(),c=i.abrBandWidthFactor,l=i.abrBandWidthUpFactor;if(u){var f=this.findBestLevel(s,o,r,u,0,c,l);if(f>=0)return f}var d=a?Math.min(a,i.maxStarvationDelay):i.maxStarvationDelay;if(!u){var p=this.bitrateTestDelay;p&&(d=(a?Math.min(a,i.maxLoadingDelay):i.maxLoadingDelay)-p,P.info("[abr] bitrate test took ".concat(Math.round(1e3*p),"ms, set first fragment max fetchDuration to ").concat(Math.round(1e3*d)," ms")),c=l=1)}var h=this.findBestLevel(s,o,r,u,d,c,l);if(P.info("[abr] ".concat(u?"rebuffering expected":"buffer is empty",", optimal quality level ").concat(h)),h>-1)return h;var v=n.levels[o],g=n.levels[n.loadLevel];return(null==v?void 0:v.bitrate)<(null==g?void 0:g.bitrate)?o:n.loadLevel}},{key:"getStarvationDelay",value:function(){var e=this.hls,t=e.media;if(!t)return 1/0;var n=t&&0!==t.playbackRate?Math.abs(t.playbackRate):1,r=e.mainForwardBufferInfo;return(r?r.len:0)/n}},{key:"getBwEstimate",value:function(){return this.bwEstimator.canEstimate()?this.bwEstimator.getEstimate():this.hls.config.abrEwmaDefaultEstimate}},{key:"findBestLevel",value:function(e,t,n,r,i,o,a){var s,u=this,c=r+i,l=this.lastLoadedFragLevel,d=-1===l?this.hls.firstLevel:l,p=this.fragCurrent,h=this.partCurrent,v=this.hls,g=v.levels,m=v.allAudioTracks,y=v.loadLevel,b=v.config;if(1===g.length)return 0;var x,w=g[d],_=!(null==w||null==(s=w.details)||!s.live),S=-1===y||-1===l,O="SDR",k=(null==w?void 0:w.frameRate)||0,E=b.audioPreference,j=b.videoPreference,T=this.audioTracksByGroup||(this.audioTracksByGroup=function(e){return e.reduce((function(e,t){var n=e.groups[t.groupId];n||(n=e.groups[t.groupId]={tracks:[],channels:{2:0},hasDefault:!1,hasAutoSelect:!1}),n.tracks.push(t);var r=t.channels||"2";return n.channels[r]=(n.channels[r]||0)+1,n.hasDefault=n.hasDefault||t.default,n.hasAutoSelect=n.hasAutoSelect||t.autoselect,n.hasDefault&&(e.hasDefaultAudio=!0),n.hasAutoSelect&&(e.hasAutoSelectAudio=!0),e}),{hasDefaultAudio:!1,hasAutoSelectAudio:!1,groups:{}})}(m));if(S){if(-1!==this.firstSelection)return this.firstSelection;var C=function(e,t,n,r,i){for(var o=Object.keys(e),a=null==r?void 0:r.channels,s=null==r?void 0:r.audioCodec,u=a&&2===parseInt(a),c=!0,l=!1,d=1/0,p=1/0,h=1/0,v=0,g=[],m=function(e,t){var n=!1,r=[];return e&&(n="SDR"!==e,r=[e]),t&&(r=t.allowedVideoRanges||Wt.slice(0),r=(n=void 0!==t.preferHDR?t.preferHDR:function(){if("function"==typeof matchMedia){var e=matchMedia("(dynamic-range: high)"),t=matchMedia("bad query");if(e.media!==t.media)return!0===e.matches}return!1}())?r.filter((function(e){return"SDR"!==e})):["SDR"]),{preferHDR:n,allowedVideoRanges:r}}(t,i),y=m.preferHDR,b=m.allowedVideoRanges,x=function(){var t=e[o[w]];c=t.channels[2]>0,d=Math.min(d,t.minHeight),p=Math.min(p,t.minFramerate),h=Math.min(h,t.minBitrate);var n=b.filter((function(e){return t.videoRanges[e]>0}));n.length>0&&(l=!0,g=n)},w=o.length;w--;)x();d=f(d)?d:0,p=f(p)?p:0;var _=Math.max(1080,d),S=Math.max(30,p);return h=f(h)?h:n,n=Math.max(h,n),l||(t=void 0,g=[]),{codecSet:o.reduce((function(t,r){var i=e[r];if(r===t)return t;if(i.minBitrate>n)return _n(r,"min bitrate of ".concat(i.minBitrate," > current estimate of ").concat(n)),t;if(!i.hasDefaultAudio)return _n(r,"no renditions with default or auto-select sound found"),t;if(s&&r.indexOf(s.substring(0,4))%5!=0)return _n(r,'audio codec preference "'.concat(s,'" not found')),t;if(a&&!u){if(!i.channels[a])return _n(r,"no renditions with ".concat(a," channel sound found (channels options: ").concat(Object.keys(i.channels),")")),t}else if((!s||u)&&c&&0===i.channels[2])return _n(r,"no renditions with stereo sound found"),t;return i.minHeight>_?(_n(r,"min resolution of ".concat(i.minHeight," > maximum of ").concat(_)),t):i.minFramerate>S?(_n(r,"min framerate of ".concat(i.minFramerate," > maximum of ").concat(S)),t):g.some((function(e){return i.videoRanges[e]>0}))?i.maxScore<v?(_n(r,"max score of ".concat(i.maxScore," < selected max of ").concat(v)),t):t&&(ot(r)>=ot(t)||i.fragmentError>e[t].fragmentError)?t:(v=i.maxScore,r):(_n(r,"no variants with VIDEO-RANGE of ".concat(JSON.stringify(g)," found")),t)}),void 0),videoRanges:g,preferHDR:y,minFramerate:p,minBitrate:h}}(this.codecTiers||(this.codecTiers=function(e,t,n,r){return e.slice(n,r+1).reduce((function(e,n){if(!n.codecSet)return e;var r=n.audioGroups,i=e[n.codecSet];i||(e[n.codecSet]=i={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!r,fragmentError:0}),i.minBitrate=Math.min(i.minBitrate,n.bitrate);var o=Math.min(n.height,n.width);return i.minHeight=Math.min(i.minHeight,o),i.minFramerate=Math.min(i.minFramerate,n.frameRate),i.maxScore=Math.max(i.maxScore,n.score),i.fragmentError+=n.fragmentError,i.videoRanges[n.videoRange]=(i.videoRanges[n.videoRange]||0)+1,r&&r.forEach((function(e){if(e){var n=t.groups[e];n&&(i.hasDefaultAudio=i.hasDefaultAudio||t.hasDefaultAudio?n.hasDefault:n.hasAutoSelect||!t.hasDefaultAudio&&!t.hasAutoSelectAudio,Object.keys(n.channels).forEach((function(e){i.channels[e]=(i.channels[e]||0)+n.channels[e]})))}})),e}),{})}(g,T,t,n)),O,e,E,j),A=C.codecSet,M=C.videoRanges,I=C.minFramerate,R=C.minBitrate,D=C.preferHDR;x=A,O=D?M[M.length-1]:M[0],k=I,e=Math.max(e,R),P.log("[abr] picked start tier "+JSON.stringify(C))}else x=null==w?void 0:w.codecSet,O=null==w?void 0:w.videoRange;for(var L,N,F=h?h.duration:p?p.duration:0,B=this.bwEstimator.getEstimateTTFB()/1e3,U=[],z=function(){var t=g[V],s=V>d;if(!t)return 0;if(b.useMediaCapabilities&&!t.supportedResult&&!t.supportedPromise){var p=navigator.mediaCapabilities;"function"==typeof(null==p?void 0:p.decodingInfo)&&function(e,t,n,r,i,o){var a=e.audioCodec?e.audioGroups:null,s=null==o?void 0:o.audioCodec,u=null==o?void 0:o.channels,c=u?parseInt(u):s?1/0:2,l=null;if(null!=a&&a.length)try{l=1===a.length&&a[0]?t.groups[a[0]].channels:a.reduce((function(e,n){if(n){var r=t.groups[n];if(!r)throw new Error("Audio track group ".concat(n," not found"));Object.keys(r.channels).forEach((function(t){e[t]=(e[t]||0)+r.channels[t]}))}return e}),{2:0})}catch(e){return!0}return void 0!==e.videoCodec&&(e.width>1920&&e.height>1088||e.height>1920&&e.width>1088||e.frameRate>Math.max(r,30)||"SDR"!==e.videoRange&&e.videoRange!==n||e.bitrate>Math.max(i,8e6))||!!l&&f(c)&&Object.keys(l).some((function(e){return parseInt(e)>c}))}(t,T,O,k,e,E)?(t.supportedPromise=wn(t,T,p),t.supportedPromise.then((function(e){if(u.hls){t.supportedResult=e;var n=u.hls.levels,r=n.indexOf(t);e.error?P.warn('[abr] MediaCapabilities decodingInfo error: "'.concat(e.error,'" for level ').concat(r," ").concat(JSON.stringify(e))):e.supported||(P.warn("[abr] Unsupported MediaCapabilities decodingInfo result for level ".concat(r," ").concat(JSON.stringify(e))),r>-1&&n.length>1&&(P.log("[abr] Removing unsupported level "+r),u.hls.removeLevel(r)))}}))):t.supportedResult=bn}if(x&&t.codecSet!==x||O&&t.videoRange!==O||s&&k>t.frameRate||!s&&k>0&&k<t.frameRate||t.supportedResult&&(null==(L=t.supportedResult.decodingInfoResults)||!L[0].smooth))return U.push(V),0;var v,m=t.details,j=(h?null==m?void 0:m.partTarget:null==m?void 0:m.averagetargetduration)||F;v=s?a*e:o*e;var C=F&&r>=2*F&&0===i?g[V].averageBitrate:g[V].maxBitrate,A=u.getTimeToLoadFrag(B,v,C*j,void 0===m);if(v>=C&&(V===l||0===t.loadError&&0===t.fragmentError)&&(A<=B||!f(A)||_&&!u.bitrateTestDelay||A<c)){var M=u.forcedAutoLevel;return{v:(V===y||-1!==M&&M===y||(U.length&&P.trace("[abr] Skipped level(s) ".concat(U.join(",")," of ").concat(n,' max with CODECS and VIDEO-RANGE:"').concat(g[U[0]].codecs,'" ').concat(g[U[0]].videoRange,'; not compatible with "').concat(w.codecs,'" ').concat(O)),P.info("[abr] switch candidate:".concat(d,"->").concat(V," adjustedbw(").concat(Math.round(v),")-bitrate=").concat(Math.round(v-C)," ttfb:").concat(B.toFixed(1)," avgDuration:").concat(j.toFixed(1)," maxFetchDuration:").concat(c.toFixed(1)," fetchDuration:").concat(A.toFixed(1)," firstSelection:").concat(S," codecSet:").concat(x," videoRange:").concat(O," hls.loadLevel:").concat(y))),S&&(u.firstSelection=V),V)}}},V=n;V>=t;V--)if(0!==(N=z())&&N)return N.v;return-1}}])}(),Tn="NOT_LOADED",Cn="APPENDING",An="PARTIAL",Pn="OK",Mn=function(){return O((function e(t){_(this,e),this.activePartLists=Object.create(null),this.endListFragments=Object.create(null),this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hasGaps=!1,this.hls=t,this._registerListeners()}),[{key:"_registerListeners",value:function(){var e=this.hls;e.on(m.BUFFER_APPENDED,this.onBufferAppended,this),e.on(m.FRAG_BUFFERED,this.onFragBuffered,this),e.on(m.FRAG_LOADED,this.onFragLoaded,this)}},{key:"_unregisterListeners",value:function(){var e=this.hls;e.off(m.BUFFER_APPENDED,this.onBufferAppended,this),e.off(m.FRAG_BUFFERED,this.onFragBuffered,this),e.off(m.FRAG_LOADED,this.onFragLoaded,this)}},{key:"destroy",value:function(){this._unregisterListeners(),this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null}},{key:"getAppendedFrag",value:function(e,t){var n=this.activePartLists[t];if(n)for(var r=n.length;r--;){var i=n[r];if(!i)break;var o=i.end;if(i.start<=e&&null!==o&&e<=o)return i}return this.getBufferedFrag(e,t)}},{key:"getBufferedFrag",value:function(e,t){for(var n=this.fragments,r=Object.keys(n),i=r.length;i--;){var o=n[r[i]];if((null==o?void 0:o.body.type)===t&&o.buffered){var a=o.body;if(a.start<=e&&e<=a.end)return a}}return null}},{key:"detectEvictedFragments",value:function(e,t,n,r){var i=this;this.timeRanges&&(this.timeRanges[e]=t);var o=(null==r?void 0:r.fragment.sn)||-1;Object.keys(this.fragments).forEach((function(r){var a=i.fragments[r];if(a&&!(o>=a.body.sn))if(a.buffered||a.loaded){var s=a.range[e];s&&s.time.some((function(e){var n=!i.isTimeBuffered(e.startPTS,e.endPTS,t);return n&&i.removeFragment(a.body),n}))}else a.body.type===n&&i.removeFragment(a.body)}))}},{key:"detectPartialFragments",value:function(e){var t=this,n=this.timeRanges,r=e.frag,i=e.part;if(n&&"initSegment"!==r.sn){var o=Rn(r),a=this.fragments[o];if(!(!a||a.buffered&&r.gap)){var s=!r.relurl;Object.keys(n).forEach((function(e){var o=r.elementaryStreams[e];if(o){var u=n[e],c=s||!0===o.partial;a.range[e]=t.getBufferedTimes(r,i,c,u)}})),a.loaded=null,Object.keys(a.range).length?(a.buffered=!0,(a.body.endList=r.endList||a.body.endList)&&(this.endListFragments[a.body.type]=a),In(a)||this.removeParts(r.sn-1,r.type)):this.removeFragment(a.body)}}}},{key:"removeParts",value:function(e,t){var n=this.activePartLists[t];n&&(this.activePartLists[t]=n.filter((function(t){return t.fragment.sn>=e})))}},{key:"fragBuffered",value:function(e,t){var n=Rn(e),r=this.fragments[n];!r&&t&&(r=this.fragments[n]={body:e,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},e.gap&&(this.hasGaps=!0)),r&&(r.loaded=null,r.buffered=!0)}},{key:"getBufferedTimes",value:function(e,t,n,r){for(var i={time:[],partial:n},o=e.start,a=e.end,s=e.minEndPTS||a,u=e.maxStartPTS||o,c=0;c<r.length;c++){var l=r.start(c)-this.bufferPadding,f=r.end(c)+this.bufferPadding;if(u>=l&&s<=f){i.time.push({startPTS:Math.max(o,r.start(c)),endPTS:Math.min(a,r.end(c))});break}if(o<f&&a>l){var d=Math.max(o,r.start(c)),p=Math.min(a,r.end(c));p>d&&(i.partial=!0,i.time.push({startPTS:d,endPTS:p}))}else if(a<=l)break}return i}},{key:"getPartialFragment",value:function(e){var t,n,r,i=null,o=0,a=this.bufferPadding,s=this.fragments;return Object.keys(s).forEach((function(u){var c=s[u];c&&In(c)&&(n=c.body.start-a,r=c.body.end+a,e>=n&&e<=r&&(t=Math.min(e-n,r-e),o<=t&&(i=c.body,o=t)))})),i}},{key:"isEndListAppended",value:function(e){var t=this.endListFragments[e];return void 0!==t&&(t.buffered||In(t))}},{key:"getState",value:function(e){var t=Rn(e),n=this.fragments[t];return n?n.buffered?In(n)?An:Pn:Cn:Tn}},{key:"isTimeBuffered",value:function(e,t,n){for(var r,i,o=0;o<n.length;o++){if(r=n.start(o)-this.bufferPadding,i=n.end(o)+this.bufferPadding,e>=r&&t<=i)return!0;if(t<=r)return!1}return!1}},{key:"onFragLoaded",value:function(e,t){var n=t.frag,r=t.part;if("initSegment"!==n.sn&&!n.bitrateTest){var i=r?null:t,o=Rn(n);this.fragments[o]={body:n,appendedPTS:null,loaded:i,buffered:!1,range:Object.create(null)}}}},{key:"onBufferAppended",value:function(e,t){var n=this,r=t.frag,i=t.part,o=t.timeRanges;if("initSegment"!==r.sn){var a=r.type;if(i){var s=this.activePartLists[a];s||(this.activePartLists[a]=s=[]),s.push(i)}this.timeRanges=o,Object.keys(o).forEach((function(e){var t=o[e];n.detectEvictedFragments(e,t,a,i)}))}}},{key:"onFragBuffered",value:function(e,t){this.detectPartialFragments(t)}},{key:"hasFragment",value:function(e){var t=Rn(e);return!!this.fragments[t]}},{key:"hasParts",value:function(e){var t;return!(null==(t=this.activePartLists[e])||!t.length)}},{key:"removeFragmentsInRange",value:function(e,t,n,r,i){var o=this;r&&!this.hasGaps||Object.keys(this.fragments).forEach((function(a){var s=o.fragments[a];if(s){var u=s.body;u.type!==n||r&&!u.gap||u.start<t&&u.end>e&&(s.buffered||i)&&o.removeFragment(u)}}))}},{key:"removeFragment",value:function(e){var t=Rn(e);e.stats.loaded=0,e.clearElementaryStreamInfo();var n=this.activePartLists[e.type];if(n){var r=e.sn;this.activePartLists[e.type]=n.filter((function(e){return e.fragment.sn!==r}))}delete this.fragments[t],e.endList&&delete this.endListFragments[e.type]}},{key:"removeAllFragments",value:function(){this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1}}])}();function In(e){var t,n,r;return e.buffered&&(e.body.gap||(null==(t=e.range.video)?void 0:t.partial)||(null==(n=e.range.audio)?void 0:n.partial)||(null==(r=e.range.audiovideo)?void 0:r.partial))}function Rn(e){return"".concat(e.type,"_").concat(e.level,"_").concat(e.sn)}var Dn={length:0,start:function(){return 0},end:function(){return 0}},Ln=function(){function e(){_(this,e)}return O(e,null,[{key:"isBuffered",value:function(t,n){try{if(t)for(var r=e.getBuffered(t),i=0;i<r.length;i++)if(n>=r.start(i)&&n<=r.end(i))return!0}catch(t){}return!1}},{key:"bufferInfo",value:function(t,n,r){try{if(t){var i,o=e.getBuffered(t),a=[];for(i=0;i<o.length;i++)a.push({start:o.start(i),end:o.end(i)});return this.bufferedInfo(a,n,r)}}catch(t){}return{len:0,start:n,end:n,nextStart:void 0}}},{key:"bufferedInfo",value:function(e,t,n){t=Math.max(0,t),e.sort((function(e,t){return e.start-t.start||t.end-e.end}));var r=[];if(n)for(var i=0;i<e.length;i++){var o=r.length;if(o){var a=r[o-1].end;e[i].start-a<n?e[i].end>a&&(r[o-1].end=e[i].end):r.push(e[i])}else r.push(e[i])}else r=e;for(var s,u=0,c=t,l=t,f=0;f<r.length;f++){var d=r[f].start,p=r[f].end;if(t+n>=d&&t<p)c=d,u=(l=p)-t;else if(t+n<d){s=d;break}}return{len:u,start:c||0,end:l||0,nextStart:s}}},{key:"getBuffered",value:function(e){try{return e.buffered}catch(e){return P.log("failed to get media.buffered",e),Dn}}}])}(),Nn=O((function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];_(this,e),this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing={start:0,executeStart:0,executeEnd:0,end:0},this.buffering={audio:{start:0,executeStart:0,executeEnd:0,end:0},video:{start:0,executeStart:0,executeEnd:0,end:0},audiovideo:{start:0,executeStart:0,executeEnd:0,end:0}},this.level=t,this.sn=n,this.id=r,this.size=i,this.part=o,this.partial=a}));function Fn(e,t){for(var n=0,r=e.length;n<r;n++){var i;if((null==(i=e[n])?void 0:i.cc)===t)return e[n]}return null}function Bn(e,t){if(e){var n=e.start+t;e.start=e.startPTS=n,e.endPTS=n+e.duration}}function Un(e,t){for(var n=t.fragments,r=0,i=n.length;r<i;r++)Bn(n[r],e);t.fragmentHint&&Bn(t.fragmentHint,e),t.alignedSliding=!0}function zn(e,t){if(e.hasProgramDateTime&&t.hasProgramDateTime){var n=e.fragments,r=t.fragments;if(n.length&&r.length){var i,o,a=Math.min(t.endCC,e.endCC);t.startCC<a&&e.startCC<a&&(i=Fn(r,a),o=Fn(n,a)),i&&o||(o=Fn(n,(i=r[Math.floor(r.length/2)]).cc)||n[Math.floor(n.length/2)]);var s=i.programDateTime,u=o.programDateTime;s&&u&&Un((u-s)/1e3-(o.start-i.start),e)}}}var Vn=Math.pow(2,17),Hn=function(){return O((function e(t){_(this,e),this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=t}),[{key:"destroy",value:function(){this.loader&&(this.loader.destroy(),this.loader=null)}},{key:"abort",value:function(){this.loader&&this.loader.abort()}},{key:"load",value:function(e,t){var n=this,r=e.url;if(!r)return Promise.reject(new Gn({type:w.NETWORK_ERROR,details:S.FRAG_LOAD_ERROR,fatal:!1,frag:e,error:new Error("Fragment does not have a "+(r?"part list":"url")),networkDetails:null}));this.abort();var i=this.config,o=i.fLoader,s=i.loader;return new Promise((function(u,c){if(n.loader&&n.loader.destroy(),e.gap){if(e.tagList.some((function(e){return"GAP"===e[0]})))return void c(qn(e));e.gap=!1}var l=n.loader=e.loader=o?new o(i):new s(i),f=Wn(e),d=sn(i.fragLoadPolicy.default),p={loadPolicy:d,timeout:d.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:"initSegment"===e.sn?1/0:Vn};e.stats=l.stats,l.load(f,p,{onSuccess:function(t,r,i,o){n.resetLoader(e,l);var a=t.data;i.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(a.slice(0,16)),a=a.slice(16)),u({frag:e,part:null,payload:a,networkDetails:o})},onError:function(t,i,o,s){n.resetLoader(e,l),c(new Gn({type:w.NETWORK_ERROR,details:S.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:a({url:r,data:void 0},t),error:new Error("HTTP Error ".concat(t.code," ").concat(t.text)),networkDetails:o,stats:s}))},onAbort:function(t,r,i){n.resetLoader(e,l),c(new Gn({type:w.NETWORK_ERROR,details:S.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:i,stats:t}))},onTimeout:function(t,r,i){n.resetLoader(e,l),c(new Gn({type:w.NETWORK_ERROR,details:S.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error("Timeout after ".concat(p.timeout,"ms")),networkDetails:i,stats:t}))},onProgress:function(n,r,i,o){t&&t({frag:e,part:null,payload:i,networkDetails:o})}})}))}},{key:"loadPart",value:function(e,t,n){var r=this;this.abort();var i=this.config,o=i.fLoader,s=i.loader;return new Promise((function(u,c){if(r.loader&&r.loader.destroy(),e.gap||t.gap)c(qn(e,t));else{var l=r.loader=e.loader=o?new o(i):new s(i),f=Wn(e,t),d=sn(i.fragLoadPolicy.default),p={loadPolicy:d,timeout:d.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:Vn};t.stats=l.stats,l.load(f,p,{onSuccess:function(i,o,a,s){r.resetLoader(e,l),r.updateStatsFromPart(e,t);var c={frag:e,part:t,payload:i.data,networkDetails:s};n(c),u(c)},onError:function(n,i,o,s){r.resetLoader(e,l),c(new Gn({type:w.NETWORK_ERROR,details:S.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:a({url:f.url,data:void 0},n),error:new Error("HTTP Error ".concat(n.code," ").concat(n.text)),networkDetails:o,stats:s}))},onAbort:function(n,i,o){e.stats.aborted=t.stats.aborted,r.resetLoader(e,l),c(new Gn({type:w.NETWORK_ERROR,details:S.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:new Error("Aborted"),networkDetails:o,stats:n}))},onTimeout:function(n,i,o){r.resetLoader(e,l),c(new Gn({type:w.NETWORK_ERROR,details:S.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:new Error("Timeout after ".concat(p.timeout,"ms")),networkDetails:o,stats:n}))}})}}))}},{key:"updateStatsFromPart",value:function(e,t){var n=e.stats,r=t.stats,i=r.total;if(n.loaded+=r.loaded,i){var o=Math.round(e.duration/t.duration),a=Math.min(Math.round(n.loaded/i),o),s=(o-a)*Math.round(n.loaded/a);n.total=n.loaded+s}else n.total=Math.max(n.loaded,n.total);var u=n.loading,c=r.loading;u.start?u.first+=c.first-c.start:(u.start=c.start,u.first=c.first),u.end=c.end}},{key:"resetLoader",value:function(e,t){e.loader=null,this.loader===t&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),t.destroy()}}])}();function Wn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t||e,r={frag:e,part:t,responseType:"arraybuffer",url:n.url,headers:{},rangeStart:0,rangeEnd:0},i=n.byteRangeStartOffset,o=n.byteRangeEndOffset;if(f(i)&&f(o)){var a,s=i,u=o;if("initSegment"===e.sn&&"AES-128"===(null==(a=e.decryptdata)?void 0:a.method)){var c=o-i;c%16&&(u=o+(16-c%16)),0!==i&&(r.resetIV=!0,s=i-16)}r.rangeStart=s,r.rangeEnd=u}return r}function qn(e,t){var n=new Error("GAP ".concat(e.gap?"tag":"attribute"," found")),r={type:w.MEDIA_ERROR,details:S.FRAG_GAP,fatal:!1,frag:e,error:n,networkDetails:null};return t&&(r.part=t),(t||e).stats.aborted=!0,new Gn(r)}var Gn=function(e){function t(e){var n;return _(this,t),(n=g(this,t,[e.error.message])).data=void 0,n.data=e,n}return x(t,e),O(t)}(h(Error)),Yn=function(){return O((function e(t,n){_(this,e),this.subtle=void 0,this.aesIV=void 0,this.subtle=t,this.aesIV=n}),[{key:"decrypt",value:function(e,t){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e)}}])}(),Kn=function(){return O((function e(t,n){_(this,e),this.subtle=void 0,this.key=void 0,this.subtle=t,this.key=n}),[{key:"expandKey",value:function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])}}])}(),$n=function(){return O((function e(){_(this,e),this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}),[{key:"uint8ArrayToUint32Array_",value:function(e){for(var t=new DataView(e),n=new Uint32Array(4),r=0;r<4;r++)n[r]=t.getUint32(4*r);return n}},{key:"initTable",value:function(){var e=this.sBox,t=this.invSBox,n=this.subMix,r=n[0],i=n[1],o=n[2],a=n[3],s=this.invSubMix,u=s[0],c=s[1],l=s[2],f=s[3],d=new Uint32Array(256),p=0,h=0,v=0;for(v=0;v<256;v++)d[v]=v<128?v<<1:v<<1^283;for(v=0;v<256;v++){var g=h^h<<1^h<<2^h<<3^h<<4;g=g>>>8^255&g^99,e[p]=g,t[g]=p;var m=d[p],y=d[m],b=d[y],x=257*d[g]^16843008*g;r[p]=x<<24|x>>>8,i[p]=x<<16|x>>>16,o[p]=x<<8|x>>>24,a[p]=x,x=16843009*b^65537*y^257*m^16843008*p,u[g]=x<<24|x>>>8,c[g]=x<<16|x>>>16,l[g]=x<<8|x>>>24,f[g]=x,p?(p=m^d[d[d[b^m]]],h^=d[d[h]]):p=h=1}}},{key:"expandKey",value:function(e){for(var t=this.uint8ArrayToUint32Array_(e),n=!0,r=0;r<t.length&&n;)n=t[r]===this.key[r],r++;if(!n){this.key=t;var i=this.keySize=t.length;if(4!==i&&6!==i&&8!==i)throw new Error("Invalid aes key size="+i);var o,a,s,u,c=this.ksRows=4*(i+6+1),l=this.keySchedule=new Uint32Array(c),f=this.invKeySchedule=new Uint32Array(c),d=this.sBox,p=this.rcon,h=this.invSubMix,v=h[0],g=h[1],m=h[2],y=h[3];for(o=0;o<c;o++)o<i?s=l[o]=t[o]:(u=s,o%i==0?(u=d[(u=u<<8|u>>>24)>>>24]<<24|d[u>>>16&255]<<16|d[u>>>8&255]<<8|d[255&u],u^=p[o/i|0]<<24):i>6&&o%i==4&&(u=d[u>>>24]<<24|d[u>>>16&255]<<16|d[u>>>8&255]<<8|d[255&u]),l[o]=s=(l[o-i]^u)>>>0);for(a=0;a<c;a++)o=c-a,u=3&a?l[o]:l[o-4],f[a]=a<4||o<=4?u:v[d[u>>>24]]^g[d[u>>>16&255]]^m[d[u>>>8&255]]^y[d[255&u]],f[a]=f[a]>>>0}}},{key:"networkToHostOrderSwap",value:function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24}},{key:"decrypt",value:function(e,t,n){for(var r,i,o,a,s,u,c,l,f,d,p,h,v,g,m=this.keySize+6,y=this.invKeySchedule,b=this.invSBox,x=this.invSubMix,w=x[0],_=x[1],S=x[2],O=x[3],k=this.uint8ArrayToUint32Array_(n),E=k[0],j=k[1],T=k[2],C=k[3],A=new Int32Array(e),P=new Int32Array(A.length),M=this.networkToHostOrderSwap;t<A.length;){for(f=M(A[t]),d=M(A[t+1]),p=M(A[t+2]),h=M(A[t+3]),s=f^y[0],u=h^y[1],c=p^y[2],l=d^y[3],v=4,g=1;g<m;g++)r=w[s>>>24]^_[u>>16&255]^S[c>>8&255]^O[255&l]^y[v],i=w[u>>>24]^_[c>>16&255]^S[l>>8&255]^O[255&s]^y[v+1],o=w[c>>>24]^_[l>>16&255]^S[s>>8&255]^O[255&u]^y[v+2],a=w[l>>>24]^_[s>>16&255]^S[u>>8&255]^O[255&c]^y[v+3],s=r,u=i,c=o,l=a,v+=4;r=b[s>>>24]<<24^b[u>>16&255]<<16^b[c>>8&255]<<8^b[255&l]^y[v],i=b[u>>>24]<<24^b[c>>16&255]<<16^b[l>>8&255]<<8^b[255&s]^y[v+1],o=b[c>>>24]<<24^b[l>>16&255]<<16^b[s>>8&255]<<8^b[255&u]^y[v+2],a=b[l>>>24]<<24^b[s>>16&255]<<16^b[u>>8&255]<<8^b[255&c]^y[v+3],P[t]=M(r^E),P[t+1]=M(a^j),P[t+2]=M(o^T),P[t+3]=M(i^C),E=f,j=d,T=p,C=h,t+=4}return P.buffer}}])}(),Xn=function(){return O((function e(t){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).removePKCS7Padding,r=void 0===n||n;if(_(this,e),this.logEnabled=!0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.useSoftware=void 0,this.useSoftware=t.enableSoftwareAES,this.removePKCS7Padding=r,r)try{var i=self.crypto;i&&(this.subtle=i.subtle||i.webkitSubtle)}catch(t){}this.useSoftware=!this.subtle}),[{key:"destroy",value:function(){this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null}},{key:"isSync",value:function(){return this.useSoftware}},{key:"flush",value:function(){var e=this.currentResult,t=this.remainderData;if(!e||t)return this.reset(),null;var n=new Uint8Array(e);return this.reset(),this.removePKCS7Padding?function(e){var t=e.byteLength,n=t&&new DataView(e.buffer).getUint8(t-1);return n?re(e,0,t-n):e}(n):n}},{key:"reset",value:function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}},{key:"decrypt",value:function(e,t,n){var r=this;return this.useSoftware?new Promise((function(i,o){r.softwareDecrypt(new Uint8Array(e),t,n);var a=r.flush();a?i(a.buffer):o(new Error("[softwareDecrypt] Failed to decrypt data"))})):this.webCryptoDecrypt(new Uint8Array(e),t,n)}},{key:"softwareDecrypt",value:function(e,t,n){var r=this.currentIV,i=this.currentResult,o=this.remainderData;this.logOnce("JS AES decrypt"),o&&(e=Ue(o,e),this.remainderData=null);var a=this.getValidChunk(e);if(!a.length)return null;r&&(n=r);var s=this.softwareDecrypter;s||(s=this.softwareDecrypter=new $n),s.expandKey(t);var u=i;return this.currentResult=s.decrypt(a.buffer,0,n),this.currentIV=re(a,-16).buffer,u||null}},{key:"webCryptoDecrypt",value:function(e,t,n){var r=this;if(this.key!==t||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(e,t,n));this.key=t,this.fastAesKey=new Kn(this.subtle,t)}return this.fastAesKey.expandKey().then((function(t){return r.subtle?(r.logOnce("WebCrypto AES decrypt"),new Yn(r.subtle,new Uint8Array(n)).decrypt(e.buffer,t)):Promise.reject(new Error("web crypto not initialized"))})).catch((function(i){return P.warn("[decrypter]: WebCrypto Error, disable WebCrypto API, ".concat(i.name,": ").concat(i.message)),r.onWebCryptoError(e,t,n)}))}},{key:"onWebCryptoError",value:function(e,t,n){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(e,t,n);var r=this.flush();if(r)return r.buffer;throw new Error("WebCrypto and softwareDecrypt: failed to decrypt data")}},{key:"getValidChunk",value:function(e){var t=e,n=e.length-e.length%16;return n!==e.length&&(t=re(e,0,n),this.remainderData=re(e,n)),t}},{key:"logOnce",value:function(e){this.logEnabled&&(P.log("[decrypter]: "+e),this.logEnabled=!1)}}])}(),Qn="STOPPED",Zn="IDLE",Jn="KEY_LOADING",er="FRAG_LOADING",tr="FRAG_LOADING_WAITING_RETRY",nr="WAITING_TRACK",rr="PARSING",ir="PARSED",or="ENDED",ar="ERROR",sr="WAITING_INIT_PTS",ur="WAITING_LEVEL",cr=function(e){function t(e,n,r,i,o){var a;return _(this,t),(a=g(this,t)).hls=void 0,a.fragPrevious=null,a.fragCurrent=null,a.fragmentTracker=void 0,a.transmuxer=null,a._state=Qn,a.playlistType=void 0,a.media=null,a.mediaBuffer=null,a.config=void 0,a.bitrateTest=!1,a.lastCurrentTime=0,a.nextLoadPosition=0,a.startPosition=0,a.startTimeOffset=null,a.loadedmetadata=!1,a.retryDate=0,a.levels=null,a.fragmentLoader=void 0,a.keyLoader=void 0,a.levelLastLoaded=null,a.startFragRequested=!1,a.decrypter=void 0,a.initPTS=[],a.onvseeking=null,a.onvended=null,a.logPrefix="",a.log=void 0,a.warn=void 0,a.playlistType=o,a.logPrefix=i,a.log=P.log.bind(P,i+":"),a.warn=P.warn.bind(P,i+":"),a.hls=e,a.fragmentLoader=new Hn(e.config),a.keyLoader=r,a.fragmentTracker=n,a.config=e.config,a.decrypter=new Xn(e.config),e.on(m.MANIFEST_LOADED,a.onManifestLoaded,y(a)),a}return x(t,e),O(t,[{key:"doTick",value:function(){this.onTickEnd()}},{key:"onTickEnd",value:function(){}},{key:"startLoad",value:function(e){}},{key:"stopLoad",value:function(){this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);var e=this.fragCurrent;null!=e&&e.loader&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=Qn}},{key:"_streamEnded",value:function(e,t){if(t.live||e.nextStart||!e.end||!this.media)return!1;var n=t.partList;if(null!=n&&n.length){var r=n[n.length-1];return Ln.isBuffered(this.media,r.start+r.duration/2)}var i=t.fragments[t.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(i)}},{key:"getLevelDetails",value:function(){var e;if(this.levels&&null!==this.levelLastLoaded)return null==(e=this.levelLastLoaded)?void 0:e.details}},{key:"onMediaAttached",value:function(e,t){var n=this.media=this.mediaBuffer=t.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),n.addEventListener("seeking",this.onvseeking),n.addEventListener("ended",this.onvended);var r=this.config;this.levels&&r.autoStartLoad&&this.state===Qn&&this.startLoad(r.startPosition)}},{key:"onMediaDetaching",value:function(){var e=this.media;null!=e&&e.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),e&&this.onvseeking&&this.onvended&&(e.removeEventListener("seeking",this.onvseeking),e.removeEventListener("ended",this.onvended),this.onvseeking=this.onvended=null),this.keyLoader&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()}},{key:"onMediaSeeking",value:function(){var e=this.config,t=this.fragCurrent,n=this.media,r=this.mediaBuffer,i=this.state,o=n?n.currentTime:0,a=Ln.bufferInfo(r||n,o,e.maxBufferHole);if(this.log("media seeking to ".concat(f(o)?o.toFixed(3):o,", state: ").concat(i)),this.state===or)this.resetLoadingState();else if(t){var s=e.maxFragLookUpTolerance,u=t.start-s,c=t.start+t.duration+s;if(!a.len||c<a.start||u>a.end){var l=o>c;(o<u||l)&&(l&&t.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),t.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}n&&(this.fragmentTracker.removeFragmentsInRange(o,1/0,this.playlistType,!0),this.lastCurrentTime=o),this.loadedmetadata||a.len||(this.nextLoadPosition=this.startPosition=o),this.tickImmediate()}},{key:"onMediaEnded",value:function(){this.startPosition=this.lastCurrentTime=0}},{key:"onManifestLoaded",value:function(e,t){this.startTimeOffset=t.startTimeOffset,this.initPTS=[]}},{key:"onHandlerDestroying",value:function(){this.hls.off(m.MANIFEST_LOADED,this.onManifestLoaded,this),this.stopLoad(),d(b(t.prototype),"onHandlerDestroying",this).call(this),this.hls=null}},{key:"onHandlerDestroyed",value:function(){this.state=Qn,this.fragmentLoader&&this.fragmentLoader.destroy(),this.keyLoader&&this.keyLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.keyLoader=this.fragmentLoader=this.fragmentTracker=null,d(b(t.prototype),"onHandlerDestroyed",this).call(this)}},{key:"loadFragment",value:function(e,t,n){this._loadFragForPlayback(e,t,n)}},{key:"_loadFragForPlayback",value:function(e,t,n){var r=this;this._doFragLoad(e,t,n,(function(t){if(r.fragContextChanged(e))return r.warn("Fragment ".concat(e.sn).concat(t.part?" p: "+t.part.index:""," of level ").concat(e.level," was dropped during download.")),void r.fragmentTracker.removeFragment(e);e.stats.chunkCount++,r._handleFragmentLoadProgress(t)})).then((function(t){if(t){var n=r.state;r.fragContextChanged(e)?(n===er||!r.fragCurrent&&n===rr)&&(r.fragmentTracker.removeFragment(e),r.state=Zn):("payload"in t&&(r.log("Loaded fragment ".concat(e.sn," of level ").concat(e.level)),r.hls.trigger(m.FRAG_LOADED,t)),r._handleFragmentLoadComplete(t))}})).catch((function(t){r.state!==Qn&&r.state!==ar&&(r.warn("Frag error: "+((null==t?void 0:t.message)||t)),r.resetFragmentLoading(e))}))}},{key:"clearTrackerIfNeeded",value:function(e){var t,n=this.fragmentTracker;if(n.getState(e)===Cn){var r=e.type,i=this.getFwdBufferInfo(this.mediaBuffer,r),o=Math.max(e.duration,i?i.len:this.config.maxBufferLength),a=this.backtrackFragment;(1==(a?e.sn-a.sn:0)||this.reduceMaxBufferLength(o,e.duration))&&n.removeFragment(e)}else 0===(null==(t=this.mediaBuffer)?void 0:t.buffered.length)?n.removeAllFragments():n.hasParts(e.type)&&(n.detectPartialFragments({frag:e,part:null,stats:e.stats,id:e.type}),n.getState(e)===An&&n.removeFragment(e))}},{key:"checkLiveUpdate",value:function(e){if(e.updated&&!e.live){var t=e.fragments[e.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:t,part:null,stats:t.stats,id:t.type})}e.fragments[0]||(e.deltaUpdateFailed=!0)}},{key:"flushMainBuffer",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(e-t){var r={startOffset:e,endOffset:t,type:n};this.hls.trigger(m.BUFFER_FLUSHING,r)}}},{key:"_loadInitSegment",value:function(e,t){var n=this;this._doFragLoad(e,t).then((function(t){if(!t||n.fragContextChanged(e)||!n.levels)throw new Error("init load aborted");return t})).then((function(t){var r=n.hls,i=t.payload,o=e.decryptdata;if(i&&i.byteLength>0&&null!=o&&o.key&&o.iv&&"AES-128"===o.method){var a=self.performance.now();return n.decrypter.decrypt(new Uint8Array(i),o.key.buffer,o.iv.buffer).catch((function(t){throw r.trigger(m.ERROR,{type:w.MEDIA_ERROR,details:S.FRAG_DECRYPT_ERROR,fatal:!1,error:t,reason:t.message,frag:e}),t})).then((function(i){var o=self.performance.now();return r.trigger(m.FRAG_DECRYPTED,{frag:e,payload:i,stats:{tstart:a,tdecrypt:o}}),t.payload=i,n.completeInitSegmentLoad(t)}))}return n.completeInitSegmentLoad(t)})).catch((function(t){n.state!==Qn&&n.state!==ar&&(n.warn(t),n.resetFragmentLoading(e))}))}},{key:"completeInitSegmentLoad",value:function(e){if(!this.levels)throw new Error("init load aborted, missing levels");var t=e.frag.stats;this.state=Zn,e.frag.data=new Uint8Array(e.payload),t.parsing.start=t.buffering.start=self.performance.now(),t.parsing.end=t.buffering.end=self.performance.now(),this.tick()}},{key:"fragContextChanged",value:function(e){var t=this.fragCurrent;return!e||!t||e.sn!==t.sn||e.level!==t.level}},{key:"fragBufferedComplete",value:function(e,t){var n,r,i,o,a=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log("Buffered ".concat(e.type," sn: ").concat(e.sn).concat(t?" part: "+t.index:""," of ").concat(this.playlistType===jt.MAIN?"level":"track"," ").concat(e.level," (frag:[").concat((null!=(n=e.startPTS)?n:NaN).toFixed(3),"-").concat((null!=(r=e.endPTS)?r:NaN).toFixed(3),"] > buffer:").concat(a?function(e){for(var t="",n=e.length,r=0;r<n;r++)t+="[".concat(e.start(r).toFixed(3),"-").concat(e.end(r).toFixed(3),"]");return t}(Ln.getBuffered(a)):"(detached)",")")),"initSegment"!==e.sn){var s;if(e.type!==jt.SUBTITLE){var u=e.elementaryStreams;if(!Object.keys(u).some((function(e){return!!u[e]})))return void(this.state=Zn)}var c=null==(s=this.levels)?void 0:s[e.level];null!=c&&c.fragmentError&&(this.log("Resetting level fragment error count of ".concat(c.fragmentError," on frag buffered")),c.fragmentError=0)}this.state=Zn,a&&(!this.loadedmetadata&&e.type==jt.MAIN&&a.buffered.length&&(null==(i=this.fragCurrent)?void 0:i.sn)===(null==(o=this.fragPrevious)?void 0:o.sn)&&(this.loadedmetadata=!0,this.seekToStartPos()),this.tick())}},{key:"seekToStartPos",value:function(){}},{key:"_handleFragmentLoadComplete",value:function(e){var t=this.transmuxer;if(t){var n=e.frag,r=e.part,i=e.partsLoaded,o=!i||0===i.length||i.some((function(e){return!e})),a=new Nn(n.level,n.sn,n.stats.chunkCount+1,0,r?r.index:-1,!o);t.flush(a)}}},{key:"_handleFragmentLoadProgress",value:function(e){}},{key:"_doFragLoad",value:function(e,t){var n,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3?arguments[3]:void 0,a=null==t?void 0:t.details;if(!this.levels||!a)throw new Error("frag load aborted, missing level".concat(a?"":" detail","s"));var s=null;if(!e.encrypted||null!=(n=e.decryptdata)&&n.key?!e.encrypted&&a.encryptedFragments.length&&this.keyLoader.loadClear(e,a.encryptedFragments):(this.log("Loading key for ".concat(e.sn," of [").concat(a.startSN,"-").concat(a.endSN,"], ").concat("[stream-controller]"===this.logPrefix?"level":"track"," ").concat(e.level)),this.state=Jn,this.fragCurrent=e,s=this.keyLoader.load(e).then((function(e){if(!r.fragContextChanged(e.frag))return r.hls.trigger(m.KEY_LOADED,e),r.state===Jn&&(r.state=Zn),e})),this.hls.trigger(m.KEY_LOADING,{frag:e}),null===this.fragCurrent&&(s=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING")))),i=Math.max(e.start,i||0),this.config.lowLatencyMode&&"initSegment"!==e.sn){var u=a.partList;if(u&&o){i>e.end&&a.fragmentHint&&(e=a.fragmentHint);var c=this.getNextPart(u,e,i);if(c>-1){var l,d=u[c];return this.log("Loading part sn: ".concat(e.sn," p: ").concat(d.index," cc: ").concat(e.cc," of playlist [").concat(a.startSN,"-").concat(a.endSN,"] parts [0-").concat(c,"-").concat(u.length-1,"] ").concat("[stream-controller]"===this.logPrefix?"level":"track",": ").concat(e.level,", target: ").concat(parseFloat(i.toFixed(3)))),this.nextLoadPosition=d.start+d.duration,this.state=er,l=s?s.then((function(n){return!n||r.fragContextChanged(n.frag)?null:r.doFragPartsLoad(e,d,t,o)})).catch((function(e){return r.handleFragLoadError(e)})):this.doFragPartsLoad(e,d,t,o).catch((function(e){return r.handleFragLoadError(e)})),this.hls.trigger(m.FRAG_LOADING,{frag:e,part:d,targetBufferTime:i}),null===this.fragCurrent?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):l}if(!e.url||this.loadedEndOfParts(u,i))return Promise.resolve(null)}}this.log("Loading fragment ".concat(e.sn," cc: ").concat(e.cc," ").concat(a?"of ["+a.startSN+"-"+a.endSN+"] ":"").concat("[stream-controller]"===this.logPrefix?"level":"track",": ").concat(e.level,", target: ").concat(parseFloat(i.toFixed(3)))),f(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=er;var p,h=this.config.progressive;return p=h&&s?s.then((function(t){return!t||r.fragContextChanged(null==t?void 0:t.frag)?null:r.fragmentLoader.load(e,o)})).catch((function(e){return r.handleFragLoadError(e)})):Promise.all([this.fragmentLoader.load(e,h?o:void 0),s]).then((function(e){var t=T(e,1)[0];return!h&&t&&o&&o(t),t})).catch((function(e){return r.handleFragLoadError(e)})),this.hls.trigger(m.FRAG_LOADING,{frag:e,targetBufferTime:i}),null===this.fragCurrent?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):p}},{key:"doFragPartsLoad",value:function(e,t,n,r){var i=this;return new Promise((function(o,a){var s,u=[],c=null==(s=n.details)?void 0:s.partList,l=function(t){i.fragmentLoader.loadPart(e,t,r).then((function(r){u[t.index]=r;var a=r.part;i.hls.trigger(m.FRAG_LOADED,r);var s=en(n,e.sn,t.index+1)||tn(c,e.sn,t.index+1);if(!s)return o({frag:e,part:a,partsLoaded:u});l(s)})).catch(a)};l(t)}))}},{key:"handleFragLoadError",value:function(e){if("data"in e){var t=e.data;e.data&&t.details===S.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):this.hls.trigger(m.ERROR,t)}else this.hls.trigger(m.ERROR,{type:w.OTHER_ERROR,details:S.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null}},{key:"_handleTransmuxerFlush",value:function(e){var t=this.getCurrentContext(e);if(t&&this.state===rr){var n=t.frag,r=t.part,i=t.level,o=self.performance.now();n.stats.parsing.end=o,r&&(r.stats.parsing.end=o),this.updateLevelTiming(n,r,i,e.partial)}else this.fragCurrent||this.state===Qn||this.state===ar||(this.state=Zn)}},{key:"getCurrentContext",value:function(e){var t=this.levels,n=this.fragCurrent,r=e.level,i=e.sn,o=e.part;if(null==t||!t[r])return this.warn("Levels object was unset while buffering fragment ".concat(i," of level ").concat(r,". The current chunk will not be buffered.")),null;var a=t[r],s=o>-1?en(a,i,o):null,u=s?s.fragment:function(e,t,n){if(null==e||!e.details)return null;var r=e.details,i=r.fragments[t-r.startSN];return i||((i=r.fragmentHint)&&i.sn===t?i:t<r.startSN&&n&&n.sn===t?n:null)}(a,i,n);return u?(n&&n!==u&&(u.stats=n.stats),{frag:u,part:s,level:a}):null}},{key:"bufferFragmentData",value:function(e,t,n,r,i){var o;if(e&&this.state===rr){var a=e.data1,s=e.data2,u=a;if(a&&s&&(u=Ue(a,s)),null!=(o=u)&&o.length){var c={type:e.type,frag:t,part:n,chunkMeta:r,parent:t.type,data:u};if(this.hls.trigger(m.BUFFER_APPENDING,c),e.dropped&&e.independent&&!n){if(i)return;this.flushBufferGap(t)}}}}},{key:"flushBufferGap",value:function(e){var t=this.media;if(t)if(Ln.isBuffered(t,t.currentTime)){var n=t.currentTime,r=Ln.bufferInfo(t,n,0),i=e.duration,o=Math.min(2*this.config.maxFragLookUpTolerance,.25*i),a=Math.max(Math.min(e.start-o,r.end-o),n+o);e.start-a>o&&this.flushMainBuffer(a,e.start)}else this.flushMainBuffer(0,e.start)}},{key:"getFwdBufferInfo",value:function(e,t){var n=this.getLoadPosition();return f(n)?this.getFwdBufferInfoAtPos(e,n,t):null}},{key:"getFwdBufferInfoAtPos",value:function(e,t,n){var r=this.config.maxBufferHole,i=Ln.bufferInfo(e,t,r);if(0===i.len&&void 0!==i.nextStart){var o=this.fragmentTracker.getBufferedFrag(t,n);if(o&&i.nextStart<o.end)return Ln.bufferInfo(e,t,Math.max(i.nextStart,r))}return i}},{key:"getMaxBufferLength",value:function(e){var t,n=this.config;return t=e?Math.max(8*n.maxBufferSize/e,n.maxBufferLength):n.maxBufferLength,Math.min(t,n.maxMaxBufferLength)}},{key:"reduceMaxBufferLength",value:function(e,t){var n=this.config,r=Math.max(Math.min(e-t,n.maxBufferLength),t),i=Math.max(e-3*t,n.maxMaxBufferLength/2,r);return i>=r&&(n.maxMaxBufferLength=i,this.warn("Reduce max buffer length to ".concat(i,"s")),!0)}},{key:"getAppendedFrag",value:function(e){arguments.length>1&&void 0!==arguments[1]?arguments[1]:jt.MAIN;var t=this.fragmentTracker.getAppendedFrag(e,jt.MAIN);return t&&"fragment"in t?t.fragment:t}},{key:"getNextFragment",value:function(e,t){var n=t.fragments,r=n.length;if(!r)return null;var i,o=this.config,a=n[0].start;if(t.live){var s=o.initialLiveManifestSize;if(r<s)return this.warn("Not enough fragments to start playback (have: ".concat(r,", need: ").concat(s,")")),null;(!t.PTSKnown&&!this.startFragRequested&&-1===this.startPosition||e<a)&&(i=this.getInitialLiveFragment(t,n),this.startPosition=this.nextLoadPosition=i?this.hls.liveSyncPosition||i.start:e)}else e<=a&&(i=n[0]);if(!i){var u=o.lowLatencyMode?t.partEnd:t.fragmentEnd;i=this.getFragmentAtPosition(e,u,t)}return this.mapToInitFragWhenRequired(i)}},{key:"isLoopLoading",value:function(e,t){var n=this.fragmentTracker.getState(e);return(n===Pn||n===An&&!!e.gap)&&this.nextLoadPosition>t}},{key:"getNextFragmentLoopLoading",value:function(e,t,n,r,i){var o=e.gap,a=this.getNextFragment(this.nextLoadPosition,t);if(null===a)return a;if(e=a,o&&e&&!e.gap&&n.nextStart){var s=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,n.nextStart,r);if(null!==s&&n.len+s.len>=i)return this.log('buffer full after gaps in "'.concat(r,'" playlist starting at sn: ').concat(e.sn)),null}return e}},{key:"mapToInitFragWhenRequired",value:function(e){return null==e||!e.initSegment||null!=e&&e.initSegment.data||this.bitrateTest?e:e.initSegment}},{key:"getNextPart",value:function(e,t,n){for(var r=-1,i=!1,o=!0,a=0,s=e.length;a<s;a++){var u=e[a];if(o=o&&!u.independent,r>-1&&n<u.start)break;var c=u.loaded;c?r=-1:(i||u.independent||o)&&u.fragment===t&&(r=a),i=c}return r}},{key:"loadedEndOfParts",value:function(e,t){var n=e[e.length-1];return n&&t>n.start&&n.loaded}},{key:"getInitialLiveFragment",value:function(e,t){var n=this.fragPrevious,r=null;if(n){if(e.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+n.programDateTime),r=function(e,t,n){if(null===t||!Array.isArray(e)||!e.length||!f(t))return null;if(t<(e[0].programDateTime||0))return null;if(t>=(e[e.length-1].endProgramDateTime||0))return null;n=n||0;for(var r=0;r<e.length;++r){var i=e[r];if(dn(t,n,i))return i}return null}(t,n.endProgramDateTime,this.config.maxFragLookUpTolerance)),!r){var i=n.sn+1;if(i>=e.startSN&&i<=e.endSN){var o=t[i-e.startSN];n.cc===o.cc&&(r=o,this.log("Live playlist, switching playlist, load frag with next SN: "+r.sn))}r||(r=function(e,t){return cn(e,(function(e){return e.cc<t?1:e.cc>t?-1:0}))}(t,n.cc))&&this.log("Live playlist, switching playlist, load frag with same CC: "+r.sn)}}else{var a=this.hls.liveSyncPosition;null!==a&&(r=this.getFragmentAtPosition(a,this.bitrateTest?e.fragmentEnd:e.edge,e))}return r}},{key:"getFragmentAtPosition",value:function(e,t,n){var r,i=this.config,o=this.fragPrevious,a=n.fragments,s=n.endSN,u=n.fragmentHint,c=i.maxFragLookUpTolerance,l=n.partList,f=!!(i.lowLatencyMode&&null!=l&&l.length&&u);if(f&&u&&!this.bitrateTest&&(a=a.concat(u),s=u.sn),r=e<t?ln(o,a,e,e>t-c?0:c):a[a.length-1]){var d=r.sn-n.startSN,p=this.fragmentTracker.getState(r);if((p===Pn||p===An&&r.gap)&&(o=r),o&&r.sn===o.sn&&(!f||l[0].fragment.sn>r.sn)&&o&&r.level===o.level){var h=a[d+1];r=r.sn<s&&this.fragmentTracker.getState(h)!==Pn?h:null}}return r}},{key:"synchronizeToLiveEdge",value:function(e){var t=this.config,n=this.media;if(n){var r=this.hls.liveSyncPosition,i=n.currentTime,o=e.fragments[0].start,a=e.edge,s=i>=o-t.maxFragLookUpTolerance&&i<=a;if(null!==r&&n.duration>r&&(i<r||!s)){var u=void 0!==t.liveMaxLatencyDuration?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;(!s&&n.readyState<4||i<a-u)&&(this.loadedmetadata||(this.nextLoadPosition=r),n.readyState&&(this.warn("Playback: ".concat(i.toFixed(3)," is located too far from the end of live sliding playlist: ").concat(a,", reset currentTime to : ").concat(r.toFixed(3))),n.currentTime=r))}}}},{key:"alignPlaylists",value:function(e,t,n){var r=e.fragments.length;if(!r)return this.warn("No fragments in live playlist"),0;var i=e.fragments[0].start,o=!t,a=e.alignedSliding&&f(i);if(o||!a&&!i){var s=this.fragPrevious;!function(e,t,n){t&&(function(e,t,n){if(function(e,t,n){return!(!t||!(n.endCC>n.startCC||e&&e.cc<n.startCC))}(e,n,t)){var r=function(e,t){var n=e.fragments,r=t.fragments;if(r.length&&n.length){var i=Fn(n,r[0].cc);if(i&&(!i||i.startPTS))return i;P.log("No frag in previous level to align on")}else P.log("No fragments to align")}(n,t);r&&f(r.start)&&(P.log("Adjusting PTS using last level due to CC increase within current level "+t.url),Un(r.start,t))}}(e,n,t),!n.alignedSliding&&t&&zn(n,t),n.alignedSliding||!t||n.skippedSegments||Zt(t,n))}(s,n,e);var u=e.fragments[0].start;return this.log("Live playlist sliding: ".concat(u.toFixed(2)," start-sn: ").concat(t?t.startSN:"na","->").concat(e.startSN," prev-sn: ").concat(s?s.sn:"na"," fragments: ").concat(r)),u}return i}},{key:"waitForCdnTuneIn",value:function(e){return e.live&&e.canBlockReload&&e.partTarget&&e.tuneInGoal>Math.max(e.partHoldBack,3*e.partTarget)}},{key:"setStartPosition",value:function(e,t){var n=this.startPosition;if(n<t&&(n=-1),-1===n||-1===this.lastCurrentTime){var r=null!==this.startTimeOffset,i=r?this.startTimeOffset:e.startTimeOffset;null!==i&&f(i)?(n=t+i,i<0&&(n+=e.totalduration),n=Math.min(Math.max(t,n),t+e.totalduration),this.log("Start time offset ".concat(i," found in ").concat(r?"multivariant":"media"," playlist, adjust startPosition to ").concat(n)),this.startPosition=n):e.live?n=this.hls.liveSyncPosition||t:this.startPosition=n=0,this.lastCurrentTime=n}this.nextLoadPosition=n}},{key:"getLoadPosition",value:function(){var e=this.media,t=0;return this.loadedmetadata&&e?t=e.currentTime:this.nextLoadPosition&&(t=this.nextLoadPosition),t}},{key:"handleFragLoadAborted",value:function(e,t){this.transmuxer&&"initSegment"!==e.sn&&e.stats.aborted&&(this.warn("Fragment ".concat(e.sn).concat(t?" part "+t.index:""," of level ").concat(e.level," was aborted")),this.resetFragmentLoading(e))}},{key:"resetFragmentLoading",value:function(e){this.fragCurrent&&(this.fragContextChanged(e)||this.state===tr)||(this.state=Zn)}},{key:"onFragmentOrKeyLoadError",value:function(e,t){if(t.chunkMeta&&!t.frag){var n=this.getCurrentContext(t.chunkMeta);n&&(t.frag=n.frag)}var r,i=t.frag;if(i&&i.type===e&&this.levels)if(this.fragContextChanged(i))this.warn("Frag load error must match current frag to retry ".concat(i.url," > ").concat(null==(r=this.fragCurrent)?void 0:r.url));else{var o=t.details===S.FRAG_GAP;o&&this.fragmentTracker.fragBuffered(i,!0);var a=t.errorAction,s=a||{},u=s.action,c=s.retryCount,l=void 0===c?0:c,f=s.retryConfig;if(a&&u===pn.RetryRequest&&f){this.resetStartWhenNotLoaded(this.levelLastLoaded);var d=an(f,l);this.warn("Fragment ".concat(i.sn," of ").concat(e," ").concat(i.level," errored with ").concat(t.details,", retrying loading ").concat(l+1,"/").concat(f.maxNumRetry," in ").concat(d,"ms")),a.resolved=!0,this.retryDate=self.performance.now()+d,this.state=tr}else if(f&&a){if(this.resetFragmentErrors(e),!(l<f.maxNumRetry))return void P.warn("".concat(t.details," reached or exceeded max retry (").concat(l,")"));o||u===pn.RemoveAlternatePermanently||(a.resolved=!0)}else(null==a?void 0:a.action)===pn.SendAlternateToPenaltyBox?this.state=ur:this.state=ar;this.tickImmediate()}}},{key:"reduceLengthAndFlushBuffer",value:function(e){if(this.state===rr||this.state===ir){var t=e.frag,n=e.parent,r=this.getFwdBufferInfo(this.mediaBuffer,n),i=r&&r.len>.5;i&&this.reduceMaxBufferLength(r.len,(null==t?void 0:t.duration)||10);var o=!i;return o&&this.warn("Buffer full error while media.currentTime is not buffered, flush ".concat(n," buffer")),t&&(this.fragmentTracker.removeFragment(t),this.nextLoadPosition=t.start),this.resetLoadingState(),o}return!1}},{key:"resetFragmentErrors",value:function(e){e===jt.AUDIO&&(this.fragCurrent=null),this.loadedmetadata||(this.startFragRequested=!1),this.state!==Qn&&(this.state=Zn)}},{key:"afterBufferFlushed",value:function(e,t,n){if(e){var r=Ln.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,r,n),this.state===or&&this.resetLoadingState()}}},{key:"resetLoadingState",value:function(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state=Zn}},{key:"resetStartWhenNotLoaded",value:function(e){if(!this.loadedmetadata){this.startFragRequested=!1;var t=e?e.details:null;null!=t&&t.live?(this.startPosition=-1,this.setStartPosition(t,0),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}},{key:"resetWhenMissingContext",value:function(e){this.warn("The loading context changed while buffering fragment ".concat(e.sn," of level ").concat(e.level,". This chunk will not be buffered.")),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState()}},{key:"removeUnbufferedFrags",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.fragmentTracker.removeFragmentsInRange(e,1/0,this.playlistType,!1,!0)}},{key:"updateLevelTiming",value:function(e,t,n,r){var i,o=this,a=n.details;if(a){if(!Object.keys(e.elementaryStreams).reduce((function(t,i){var s=e.elementaryStreams[i];if(s){var u=s.endPTS-s.startPTS;if(u<=0)return o.warn("Could not parse fragment ".concat(e.sn," ").concat(i," duration reliably (").concat(u,")")),t||!1;var c=r?0:Qt(a,e,s.startPTS,s.endPTS,s.startDTS,s.endDTS);return o.hls.trigger(m.LEVEL_PTS_UPDATED,{details:a,level:n,drift:c,type:i,frag:e,start:s.startPTS,end:s.endPTS}),!0}return t}),!1)&&null===(null==(i=this.transmuxer)?void 0:i.error)){var s=new Error("Found no media in fragment ".concat(e.sn," of level ").concat(e.level," resetting transmuxer to fallback to playlist timing"));if(0===n.fragmentError&&(n.fragmentError++,e.gap=!0,this.fragmentTracker.removeFragment(e),this.fragmentTracker.fragBuffered(e,!0)),this.warn(s.message),this.hls.trigger(m.ERROR,{type:w.MEDIA_ERROR,details:S.FRAG_PARSING_ERROR,fatal:!1,error:s,frag:e,reason:"Found no media in msn ".concat(e.sn,' of level "').concat(n.url,'"')}),!this.hls)return;this.resetTransmuxer()}this.state=ir,this.hls.trigger(m.FRAG_PARSED,{frag:e,part:t})}else this.warn("level.details undefined")}},{key:"resetTransmuxer",value:function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)}},{key:"recoverWorkerError",value:function(e){"demuxerWorker"===e.event&&(this.fragmentTracker.removeAllFragments(),this.resetTransmuxer(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState())}},{key:"state",get:function(){return this._state},set:function(e){var t=this._state;t!==e&&(this._state=e,this.log("".concat(t,"->").concat(e)))}}])}(function(){return O((function e(){_(this,e),this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}),[{key:"destroy",value:function(){this.onHandlerDestroying(),this.onHandlerDestroyed()}},{key:"onHandlerDestroying",value:function(){this.clearNextTick(),this.clearInterval()}},{key:"onHandlerDestroyed",value:function(){}},{key:"hasInterval",value:function(){return!!this._tickInterval}},{key:"hasNextTick",value:function(){return!!this._tickTimer}},{key:"setInterval",value:function(e){return!this._tickInterval&&(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,e),!0)}},{key:"clearInterval",value:function(){return!!this._tickInterval&&(self.clearInterval(this._tickInterval),this._tickInterval=null,!0)}},{key:"clearNextTick",value:function(){return!!this._tickTimer&&(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0)}},{key:"tick",value:function(){this._tickCallCount++,1===this._tickCallCount&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)}},{key:"tickImmediate",value:function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}},{key:"doTick",value:function(){}}])}()),lr=function(){return O((function e(){_(this,e),this.chunks=[],this.dataLength=0}),[{key:"push",value:function(e){this.chunks.push(e),this.dataLength+=e.length}},{key:"flush",value:function(){var e,t=this.chunks,n=this.dataLength;return t.length?(e=1===t.length?t[0]:function(e,t){for(var n=new Uint8Array(t),r=0,i=0;i<e.length;i++){var o=e[i];n.set(o,r),r+=o.length}return n}(t,n),this.reset(),e):new Uint8Array(0)}},{key:"reset",value:function(){this.chunks.length=0,this.dataLength=0}}])}();function fr(){return{type:arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",id:-1,pid:-1,inputTimeScale:arguments.length>1&&void 0!==arguments[1]?arguments[1]:9e4,sequenceNumber:-1,samples:[],dropped:0}}var dr=function(){return O((function e(){_(this,e),this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.basePTS=null,this.initPTS=null,this.lastPTS=null}),[{key:"resetInitSegment",value:function(e,t,n,r){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}}},{key:"resetTimeStamp",value:function(e){this.initPTS=e,this.resetContiguity()}},{key:"resetContiguity",value:function(){this.basePTS=null,this.lastPTS=null,this.frameIndex=0}},{key:"canParse",value:function(e,t){return!1}},{key:"appendFrame",value:function(e,t,n){}},{key:"demux",value:function(e,t){this.cachedData&&(e=Ue(this.cachedData,e),this.cachedData=null);var n,r=se(e,0),i=r?r.length:0,o=this._audioTrack,a=this._id3Track,s=r?le(r):void 0,u=e.length;for((null===this.basePTS||0===this.frameIndex&&f(s))&&(this.basePTS=pr(s,t,this.initPTS),this.lastPTS=this.basePTS),null===this.lastPTS&&(this.lastPTS=this.basePTS),r&&r.length>0&&a.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:Lt.audioId3,duration:Number.POSITIVE_INFINITY});i<u;){if(this.canParse(e,i)){var c=this.appendFrame(o,e,i);c?(this.frameIndex++,this.lastPTS=c.sample.pts,n=i+=c.length):i=u}else ce(e,i)?(r=se(e,i),a.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:Lt.audioId3,duration:Number.POSITIVE_INFINITY}),n=i+=r.length):i++;if(i===u&&n!==u){var l=re(e,n);this.cachedData?this.cachedData=Ue(this.cachedData,l):this.cachedData=l}}return{audioTrack:o,videoTrack:fr(),id3Track:a,textTrack:fr()}}},{key:"demuxSampleAes",value:function(e,t,n){return Promise.reject(new Error("[".concat(this,"] This demuxer does not support Sample-AES decryption")))}},{key:"flush",value:function(e){var t=this.cachedData;return t&&(this.cachedData=null,this.demux(t,0)),{audioTrack:this._audioTrack,videoTrack:fr(),id3Track:this._id3Track,textTrack:fr()}}},{key:"destroy",value:function(){}}])}(),pr=function(e,t,n){return f(e)?90*e:9e4*t+(n?9e4*n.baseTime/n.timescale:0)};function hr(e,t){return 255===e[t]&&240==(246&e[t+1])}function vr(e,t){return 1&e[t+1]?7:9}function gr(e,t){return(3&e[t+3])<<11|e[t+4]<<3|(224&e[t+5])>>>5}function mr(e,t){return t+1<e.length&&hr(e,t)}function yr(e,t){if(mr(e,t)){var n=vr(e,t);if(t+n>=e.length)return!1;var r=gr(e,t);if(r<=n)return!1;var i=t+r;return i===e.length||mr(e,i)}return!1}function br(e,t,n,r,i){if(!e.samplerate){var o=function(e,t,n,r){var i,o,a,s,u=navigator.userAgent.toLowerCase(),c=r,l=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];i=1+((192&t[n+2])>>>6);var f=(60&t[n+2])>>>2;if(!(f>l.length-1))return a=(1&t[n+2])<<2,a|=(192&t[n+3])>>>6,P.log("manifest codec:".concat(r,", ADTS type:").concat(i,", samplingIndex:").concat(f)),/firefox/i.test(u)?f>=6?(i=5,s=new Array(4),o=f-3):(i=2,s=new Array(2),o=f):-1!==u.indexOf("android")?(i=2,s=new Array(2),o=f):(i=5,s=new Array(4),r&&(-1!==r.indexOf("mp4a.40.29")||-1!==r.indexOf("mp4a.40.5"))||!r&&f>=6?o=f-3:((r&&-1!==r.indexOf("mp4a.40.2")&&(f>=6&&1===a||/vivaldi/i.test(u))||!r&&1===a)&&(i=2,s=new Array(2)),o=f)),s[0]=i<<3,s[0]|=(14&f)>>1,s[1]|=(1&f)<<7,s[1]|=a<<3,5===i&&(s[1]|=(14&o)>>1,s[2]=(1&o)<<7,s[2]|=8,s[3]=0),{config:s,samplerate:l[f],channelCount:a,codec:"mp4a.40."+i,manifestCodec:c};var d=new Error("invalid ADTS sampling index:"+f);e.emit(m.ERROR,m.ERROR,{type:w.MEDIA_ERROR,details:S.FRAG_PARSING_ERROR,fatal:!0,error:d,reason:d.message})}(t,n,r,i);if(!o)return;e.config=o.config,e.samplerate=o.samplerate,e.channelCount=o.channelCount,e.codec=o.codec,e.manifestCodec=o.manifestCodec,P.log("parsed codec:".concat(e.codec,", rate:").concat(o.samplerate,", channels:").concat(o.channelCount))}}function xr(e){return 9216e4/e}function wr(e,t,n,r,i){var o,a=r+i*xr(e.samplerate),s=function(e,t){var n=vr(e,t);if(t+n<=e.length){var r=gr(e,t)-n;if(r>0)return{headerLength:n,frameLength:r}}}(t,n);if(s){var u=s.frameLength,c=s.headerLength,l=c+u,f=Math.max(0,n+l-t.length);f?(o=new Uint8Array(l-c)).set(t.subarray(n+c,t.length),0):o=t.subarray(n+c,n+l);var d={unit:o,pts:a};return f||e.samples.push(d),{sample:d,length:l,missing:f}}var p=t.length-n;return(o=new Uint8Array(p)).set(t.subarray(n,t.length),0),{sample:{unit:o,pts:a},length:p,missing:-1}}var _r=null,Sr=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],Or=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],kr=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],Er=[0,1,1,4];function jr(e,t,n,r,i){if(!(n+24>t.length)){var o=Tr(t,n);if(o&&n+o.frameLength<=t.length){var a=r+i*(9e4*o.samplesPerFrame/o.sampleRate),s={unit:t.subarray(n,n+o.frameLength),pts:a,dts:a};return e.config=[],e.channelCount=o.channelCount,e.samplerate=o.sampleRate,e.samples.push(s),{sample:s,length:o.frameLength,missing:0}}}}function Tr(e,t){var n=e[t+1]>>3&3,r=e[t+1]>>1&3,i=e[t+2]>>4&15,o=e[t+2]>>2&3;if(1!==n&&0!==i&&15!==i&&3!==o){var a=e[t+2]>>1&1,s=e[t+3]>>6,u=1e3*Sr[14*(3===n?3-r:3===r?3:4)+i-1],c=Or[3*(3===n?0:2===n?1:2)+o],l=3===s?1:2,f=kr[n][r],d=Er[r],p=8*f*d,h=Math.floor(f*u/c+a)*d;if(null===_r){var v=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);_r=v?parseInt(v[1]):0}return!!_r&&_r<=87&&2===r&&u>=224e3&&0===s&&(e[t+3]=128|e[t+3]),{sampleRate:c,channelCount:l,frameLength:h,samplesPerFrame:p}}}function Cr(e,t){return 255===e[t]&&224==(224&e[t+1])&&0!=(6&e[t+1])}function Ar(e,t){return t+1<e.length&&Cr(e,t)}function Pr(e,t){if(t+1<e.length&&Cr(e,t)){var n=Tr(e,t),r=4;null!=n&&n.frameLength&&(r=n.frameLength);var i=t+r;return i===e.length||Ar(e,i)}return!1}var Mr=/\/emsg[-/]ID3/i,Ir=function(e,t){var n=0,r=5;t+=r;for(var i=new Uint32Array(1),o=new Uint32Array(1),a=new Uint8Array(1);r>0;){a[0]=e[t];var s=Math.min(r,8),u=8-s;o[0]=4278190080>>>24+u<<u,i[0]=(a[0]&o[0])>>u,n=n?n<<s|i[0]:i[0],t+=1,r-=s}return n},Rr=function(e){function t(e){var n;return _(this,t),(n=g(this,t)).observer=void 0,n.observer=e,n}return x(t,e),O(t,[{key:"resetInitSegment",value:function(e,n,r,i){d(b(t.prototype),"resetInitSegment",this).call(this,e,n,r,i),this._audioTrack={container:"audio/ac-3",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"ac3",samples:[],manifestCodec:n,duration:i,inputTimeScale:9e4,dropped:0}}},{key:"canParse",value:function(e,t){return t+64<e.length}},{key:"appendFrame",value:function(e,t,n){var r=Dr(e,t,n,this.basePTS,this.frameIndex);if(-1!==r)return{sample:e.samples[e.samples.length-1],length:r,missing:0}}}],[{key:"probe",value:function(e){if(!e)return!1;var t=se(e,0);if(!t)return!1;var n=t.length;return 11===e[n]&&119===e[n+1]&&void 0!==le(t)&&Ir(e,n)<16}}])}(dr);function Dr(e,t,n,r,i){if(n+8>t.length)return-1;if(11!==t[n]||119!==t[n+1])return-1;var o=t[n+4]>>6;if(o>=3)return-1;var a=[48e3,44100,32e3][o],s=63&t[n+4],u=2*[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][3*s+o];if(n+u>t.length)return-1;var c=t[n+6]>>5,l=0;2===c?l+=2:(1&c&&1!==c&&(l+=2),4&c&&(l+=2));var f=(t[n+6]<<8|t[n+7])>>12-l&1,d=[2,1,2,3,3,4,4,5][c]+f,p=t[n+5]>>3,h=7&t[n+5],v=new Uint8Array([o<<6|p<<1|h>>2,(3&h)<<6|c<<3|f<<2|s>>4,s<<4&224]),g=r+i*(1536/a*9e4),m=t.subarray(n,n+u);return e.config=v,e.channelCount=d,e.samplerate=a,e.samples.push({unit:m,pts:g}),u}var Lr=function(){return O((function e(t){_(this,e),this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=t,this.bytesAvailable=t.byteLength,this.word=0,this.bitsAvailable=0}),[{key:"loadWord",value:function(){var e=this.data,t=this.bytesAvailable,n=e.byteLength-t,r=new Uint8Array(4),i=Math.min(4,t);if(0===i)throw new Error("no bytes available");r.set(e.subarray(n,n+i)),this.word=new DataView(r.buffer).getUint32(0),this.bitsAvailable=8*i,this.bytesAvailable-=i}},{key:"skipBits",value:function(e){var t;e=Math.min(e,8*this.bytesAvailable+this.bitsAvailable),this.bitsAvailable>e?(this.word<<=e,this.bitsAvailable-=e):(t=(e-=this.bitsAvailable)>>3,e-=t<<3,this.bytesAvailable-=t,this.loadWord(),this.word<<=e,this.bitsAvailable-=e)}},{key:"readBits",value:function(e){var t=Math.min(this.bitsAvailable,e),n=this.word>>>32-t;if(e>32&&P.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=t,this.bitsAvailable>0)this.word<<=t;else{if(!(this.bytesAvailable>0))throw new Error("no bits available");this.loadWord()}return(t=e-t)>0&&this.bitsAvailable?n<<t|this.readBits(t):n}},{key:"skipLZ",value:function(){var e;for(e=0;e<this.bitsAvailable;++e)if(0!=(this.word&2147483648>>>e))return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()}},{key:"skipUEG",value:function(){this.skipBits(1+this.skipLZ())}},{key:"skipEG",value:function(){this.skipBits(1+this.skipLZ())}},{key:"readUEG",value:function(){var e=this.skipLZ();return this.readBits(e+1)-1}},{key:"readEG",value:function(){var e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)}},{key:"readBoolean",value:function(){return 1===this.readBits(1)}},{key:"readUByte",value:function(){return this.readBits(8)}},{key:"readUShort",value:function(){return this.readBits(16)}},{key:"readUInt",value:function(){return this.readBits(32)}},{key:"skipScalingList",value:function(e){for(var t=8,n=8,r=0;r<e;r++)0!==n&&(n=(t+this.readEG()+256)%256),t=0===n?t:n}},{key:"readSPS",value:function(){var e,t,n,r=0,i=0,o=0,a=0,s=this.readUByte.bind(this),u=this.readBits.bind(this),c=this.readUEG.bind(this),l=this.readBoolean.bind(this),f=this.skipBits.bind(this),d=this.skipEG.bind(this),p=this.skipUEG.bind(this),h=this.skipScalingList.bind(this);s();var v=s();if(u(5),f(3),s(),p(),100===v||110===v||122===v||244===v||44===v||83===v||86===v||118===v||128===v){var g=c();if(3===g&&f(1),p(),p(),f(1),l())for(t=3!==g?8:12,n=0;n<t;n++)l()&&h(n<6?16:64)}p();var m=c();if(0===m)c();else if(1===m)for(f(1),d(),d(),e=c(),n=0;n<e;n++)d();p(),f(1);var y=c(),b=c(),x=u(1);0===x&&f(1),f(1),l()&&(r=c(),i=c(),o=c(),a=c());var w=[1,1];if(l()&&l())switch(s()){case 1:w=[1,1];break;case 2:w=[12,11];break;case 3:w=[10,11];break;case 4:w=[16,11];break;case 5:w=[40,33];break;case 6:w=[24,11];break;case 7:w=[20,11];break;case 8:w=[32,11];break;case 9:w=[80,33];break;case 10:w=[18,11];break;case 11:w=[15,11];break;case 12:w=[64,33];break;case 13:w=[160,99];break;case 14:w=[4,3];break;case 15:w=[3,2];break;case 16:w=[2,1];break;case 255:w=[s()<<8|s(),s()<<8|s()]}return{width:Math.ceil(16*(y+1)-2*r-2*i),height:(2-x)*(b+1)*16-(x?2:4)*(o+a),pixelRatio:w}}},{key:"readSliceType",value:function(){return this.readUByte(),this.readUEG(),this.readUEG()}}])}(),Nr=function(e){function t(){return _(this,t),g(this,t,arguments)}return x(t,e),O(t,[{key:"parseAVCPES",value:function(e,t,n,r,i){var o,a=this,s=this.parseAVCNALu(e,n.data),u=this.VideoSample,c=!1;n.data=null,u&&s.length&&!e.audFound&&(this.pushAccessUnit(u,e),u=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts,"")),s.forEach((function(r){var s;switch(r.type){case 1:var l=!1;o=!0;var f,d=r.data;if(c&&d.length>4){var p=new Lr(d).readSliceType();2!==p&&4!==p&&7!==p&&9!==p||(l=!0)}l&&null!=(f=u)&&f.frame&&!u.key&&(a.pushAccessUnit(u,e),u=a.VideoSample=null),u||(u=a.VideoSample=a.createVideoSample(!0,n.pts,n.dts,"")),u.frame=!0,u.key=l;break;case 5:o=!0,null!=(s=u)&&s.frame&&!u.key&&(a.pushAccessUnit(u,e),u=a.VideoSample=null),u||(u=a.VideoSample=a.createVideoSample(!0,n.pts,n.dts,"")),u.key=!0,u.frame=!0;break;case 6:o=!0,He(r.data,1,n.pts,t.samples);break;case 7:var h,v;o=!0,c=!0;var g=r.data,m=new Lr(g).readSPS();if(!e.sps||e.width!==m.width||e.height!==m.height||(null==(h=e.pixelRatio)?void 0:h[0])!==m.pixelRatio[0]||(null==(v=e.pixelRatio)?void 0:v[1])!==m.pixelRatio[1]){e.width=m.width,e.height=m.height,e.pixelRatio=m.pixelRatio,e.sps=[g],e.duration=i;for(var y=g.subarray(1,4),b="avc1.",x=0;x<3;x++){var w=y[x].toString(16);w.length<2&&(w="0"+w),b+=w}e.codec=b}break;case 8:o=!0,e.pps=[r.data];break;case 9:o=!0,e.audFound=!0,u&&a.pushAccessUnit(u,e),u=a.VideoSample=a.createVideoSample(!1,n.pts,n.dts,"");break;case 12:o=!0;break;default:o=!1,u&&(u.debug+="unknown NAL "+r.type+" ")}u&&o&&u.units.push(r)})),r&&u&&(this.pushAccessUnit(u,e),this.VideoSample=null)}},{key:"parseAVCNALu",value:function(e,t){var n,r,i=t.byteLength,o=e.naluState||0,a=o,s=[],u=0,c=-1,l=0;for(-1===o&&(c=0,l=31&t[0],o=0,u=1);u<i;)if(n=t[u++],o)if(1!==o)if(n)if(1===n){if(r=u-o-1,c>=0){var f={data:t.subarray(c,r),type:l};s.push(f)}else{var d=this.getLastNalUnit(e.samples);d&&(a&&u<=4-a&&d.state&&(d.data=d.data.subarray(0,d.data.byteLength-a)),r>0&&(d.data=Ue(d.data,t.subarray(0,r)),d.state=0))}u<i?(c=u,l=31&t[u],o=0):o=-1}else o=0;else o=3;else o=n?0:2;else o=n?0:1;if(c>=0&&o>=0){var p={data:t.subarray(c,i),type:l,state:o};s.push(p)}if(0===s.length){var h=this.getLastNalUnit(e.samples);h&&(h.data=Ue(h.data,t))}return e.naluState=o,s}}])}(function(){return O((function e(){_(this,e),this.VideoSample=null}),[{key:"createVideoSample",value:function(e,t,n,r){return{key:e,frame:!1,pts:t,dts:n,units:[],debug:r,length:0}}},{key:"getLastNalUnit",value:function(e){var t,n,r=this.VideoSample;if(r&&0!==r.units.length||(r=e[e.length-1]),null!=(t=r)&&t.units){var i=r.units;n=i[i.length-1]}return n}},{key:"pushAccessUnit",value:function(e,t){if(e.units.length&&e.frame){if(void 0===e.pts){var n=t.samples,r=n.length;if(!r)return void t.dropped++;var i=n[r-1];e.pts=i.pts,e.dts=i.dts}t.samples.push(e)}e.debug.length&&P.log(e.pts+"/"+e.dts+":"+e.debug)}}])}()),Fr=function(){return O((function e(t,n,r){_(this,e),this.keyData=void 0,this.decrypter=void 0,this.keyData=r,this.decrypter=new Xn(n,{removePKCS7Padding:!1})}),[{key:"decryptBuffer",value:function(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer)}},{key:"decryptAacSample",value:function(e,t,n){var r=this,i=e[t].unit;if(!(i.length<=16)){var o=i.subarray(16,i.length-i.length%16),a=o.buffer.slice(o.byteOffset,o.byteOffset+o.length);this.decryptBuffer(a).then((function(o){var a=new Uint8Array(o);i.set(a,16),r.decrypter.isSync()||r.decryptAacSamples(e,t+1,n)}))}}},{key:"decryptAacSamples",value:function(e,t,n){for(;;t++){if(t>=e.length)return void n();if(!(e[t].unit.length<32||(this.decryptAacSample(e,t,n),this.decrypter.isSync())))return}}},{key:"getAvcEncryptedData",value:function(e){for(var t=16*Math.floor((e.length-48)/160)+16,n=new Int8Array(t),r=0,i=32;i<e.length-16;i+=160,r+=16)n.set(e.subarray(i,i+16),r);return n}},{key:"getAvcDecryptedUnit",value:function(e,t){for(var n=new Uint8Array(t),r=0,i=32;i<e.length-16;i+=160,r+=16)e.set(n.subarray(r,r+16),i);return e}},{key:"decryptAvcSample",value:function(e,t,n,r,i){var o=this,a=We(i.data),s=this.getAvcEncryptedData(a);this.decryptBuffer(s.buffer).then((function(s){i.data=o.getAvcDecryptedUnit(a,s),o.decrypter.isSync()||o.decryptAvcSamples(e,t,n+1,r)}))}},{key:"decryptAvcSamples",value:function(e,t,n,r){if(e instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;t++,n=0){if(t>=e.length)return void r();for(var i=e[t].units;!(n>=i.length);n++){var o=i[n];if(!(o.data.length<=48||1!==o.type&&5!==o.type||(this.decryptAvcSample(e,t,n,r,o),this.decrypter.isSync())))return}}}}])}(),Br=function(){function e(t,n,r){_(this,e),this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._duration=0,this._pmtId=-1,this._videoTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.remainderData=null,this.videoParser=void 0,this.observer=t,this.config=n,this.typeSupported=r,this.videoParser=new Nr}return O(e,[{key:"resetInitSegment",value:function(t,n,r,i){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=e.createTrack("video"),this._audioTrack=e.createTrack("audio",i),this._id3Track=e.createTrack("id3"),this._txtTrack=e.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.remainderData=null,this.audioCodec=n,this.videoCodec=r,this._duration=i}},{key:"resetTimeStamp",value:function(){}},{key:"resetContiguity",value:function(){var e=this._audioTrack,t=this._videoTrack,n=this._id3Track;e&&(e.pesData=null),t&&(t.pesData=null),n&&(n.pesData=null),this.aacOverFlow=null,this.remainderData=null}},{key:"demux",value:function(t,n){var r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];i||(this.sampleAes=null);var a=this._videoTrack,s=this._audioTrack,u=this._id3Track,c=this._txtTrack,l=a.pid,f=a.pesData,d=s.pid,p=u.pid,h=s.pesData,v=u.pesData,g=null,m=this.pmtParsed,y=this._pmtId,b=t.length;if(this.remainderData&&(b=(t=Ue(this.remainderData,t)).length,this.remainderData=null),b<188&&!o)return this.remainderData=t,{audioTrack:s,videoTrack:a,id3Track:u,textTrack:c};var x=Math.max(0,e.syncOffset(t));(b-=(b-x)%188)<t.byteLength&&!o&&(this.remainderData=new Uint8Array(t.buffer,b,t.buffer.byteLength-b));for(var w=0,_=x;_<b;_+=188)if(71===t[_]){var S=!!(64&t[_+1]),O=Ur(t,_),k=void 0;if((48&t[_+3])>>4>1){if((k=_+5+t[_+4])===_+188)continue}else k=_+4;switch(O){case l:S&&(f&&(r=qr(f))&&this.videoParser.parseAVCPES(a,c,r,!1,this._duration),f={data:[],size:0}),f&&(f.data.push(t.subarray(k,_+188)),f.size+=_+188-k);break;case d:if(S){if(h&&(r=qr(h)))switch(s.segmentCodec){case"aac":this.parseAACPES(s,r);break;case"mp3":this.parseMPEGPES(s,r);break;case"ac3":this.parseAC3PES(s,r)}h={data:[],size:0}}h&&(h.data.push(t.subarray(k,_+188)),h.size+=_+188-k);break;case p:S&&(v&&(r=qr(v))&&this.parseID3PES(u,r),v={data:[],size:0}),v&&(v.data.push(t.subarray(k,_+188)),v.size+=_+188-k);break;case 0:S&&(k+=t[k]+1),y=this._pmtId=zr(t,k);break;case y:S&&(k+=t[k]+1);var E=Vr(t,k,this.typeSupported,i,this.observer);(l=E.videoPid)>0&&(a.pid=l,a.segmentCodec=E.segmentVideoCodec),(d=E.audioPid)>0&&(s.pid=d,s.segmentCodec=E.segmentAudioCodec),(p=E.id3Pid)>0&&(u.pid=p),null===g||m||(P.warn("MPEG-TS PMT found at ".concat(_," after unknown PID '").concat(g,"'. Backtracking to sync byte @").concat(x," to parse all TS packets.")),g=null,_=x-188),m=this.pmtParsed=!0;break;case 17:case 8191:break;default:g=O}}else w++;w>0&&Hr(this.observer,new Error("Found ".concat(w," TS packet/s that do not start with 0x47"))),a.pesData=f,s.pesData=h,u.pesData=v;var j={audioTrack:s,videoTrack:a,id3Track:u,textTrack:c};return o&&this.extractRemainingSamples(j),j}},{key:"flush",value:function(){var e,t=this.remainderData;return this.remainderData=null,e=t?this.demux(t,-1,!1,!0):{videoTrack:this._videoTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(e),this.sampleAes?this.decrypt(e,this.sampleAes):e}},{key:"extractRemainingSamples",value:function(e){var t,n=e.audioTrack,r=e.videoTrack,i=e.id3Track,o=e.textTrack,a=r.pesData,s=n.pesData,u=i.pesData;if(a&&(t=qr(a))?(this.videoParser.parseAVCPES(r,o,t,!0,this._duration),r.pesData=null):r.pesData=a,s&&(t=qr(s))){switch(n.segmentCodec){case"aac":this.parseAACPES(n,t);break;case"mp3":this.parseMPEGPES(n,t);break;case"ac3":this.parseAC3PES(n,t)}n.pesData=null}else null!=s&&s.size&&P.log("last AAC PES packet truncated,might overlap between fragments"),n.pesData=s;u&&(t=qr(u))?(this.parseID3PES(i,t),i.pesData=null):i.pesData=u}},{key:"demuxSampleAes",value:function(e,t,n){var r=this.demux(e,n,!0,!this.config.progressive),i=this.sampleAes=new Fr(this.observer,this.config,t);return this.decrypt(r,i)}},{key:"decrypt",value:function(e,t){return new Promise((function(n){var r=e.audioTrack,i=e.videoTrack;r.samples&&"aac"===r.segmentCodec?t.decryptAacSamples(r.samples,0,(function(){i.samples?t.decryptAvcSamples(i.samples,0,0,(function(){n(e)})):n(e)})):i.samples&&t.decryptAvcSamples(i.samples,0,0,(function(){n(e)}))}))}},{key:"destroy",value:function(){this._duration=0}},{key:"parseAACPES",value:function(e,t){var n,r,i,o=0,a=this.aacOverFlow,s=t.data;if(a){this.aacOverFlow=null;var u=a.missing,c=a.sample.unit.byteLength;if(-1===u)s=Ue(a.sample.unit,s);else{var l=c-u;a.sample.unit.set(s.subarray(0,u),l),e.samples.push(a.sample),o=a.missing}}for(n=o,r=s.length;n<r-1&&!mr(s,n);n++);if(n!==o){var f,d=n<r-1;if(f=d?"AAC PES did not start with ADTS header,offset:"+n:"No ADTS header found in AAC PES",Hr(this.observer,new Error(f),d),!d)return}if(br(e,this.observer,s,n,this.audioCodec),void 0!==t.pts)i=t.pts;else{if(!a)return void P.warn("[tsdemuxer]: AAC PES unknown PTS");var p=xr(e.samplerate);i=a.sample.pts+p}for(var h,v=0;n<r;){if(n+=(h=wr(e,s,n,i,v)).length,h.missing){this.aacOverFlow=h;break}for(v++;n<r-1&&!mr(s,n);n++);}}},{key:"parseMPEGPES",value:function(e,t){var n=t.data,r=n.length,i=0,o=0,a=t.pts;if(void 0!==a)for(;o<r;)if(Ar(n,o)){var s=jr(e,n,o,a,i);if(!s)break;o+=s.length,i++}else o++;else P.warn("[tsdemuxer]: MPEG PES unknown PTS")}},{key:"parseAC3PES",value:function(e,t){var n=t.data,r=t.pts;if(void 0!==r)for(var i,o=n.length,a=0,s=0;s<o&&(i=Dr(e,n,s,r,a++))>0;)s+=i;else P.warn("[tsdemuxer]: AC3 PES unknown PTS")}},{key:"parseID3PES",value:function(e,t){if(void 0!==t.pts){var n=u({},t,{type:this._videoTrack?Lt.emsg:Lt.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(n)}else P.warn("[tsdemuxer]: ID3 PES unknown PTS")}}],[{key:"probe",value:function(t){var n=e.syncOffset(t);return n>0&&P.warn("MPEG2-TS detected but first sync word found @ offset "+n),-1!==n}},{key:"syncOffset",value:function(e){for(var t=e.length,n=Math.min(940,t-188)+1,r=0;r<n;){for(var i=!1,o=-1,a=0,s=r;s<t;s+=188){if(71!==e[s]||t-s!=188&&71!==e[s+188]){if(a)return-1;break}if(a++,-1===o&&0!==(o=s)&&(n=Math.min(o+18612,e.length-188)+1),i||(i=0===Ur(e,s)),i&&a>1&&(0===o&&a>2||s+188>n))return o}r++}return-1}},{key:"createTrack",value:function(e,t){return{container:"video"===e||"audio"===e?"video/mp2t":void 0,type:e,id:Oe[e],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:"audio"===e?t:void 0}}}])}();function Ur(e,t){return((31&e[t+1])<<8)+e[t+2]}function zr(e,t){return(31&e[t+10])<<8|e[t+11]}function Vr(e,t,n,r,i){var o={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},a=t+3+((15&e[t+1])<<8|e[t+2])-4;for(t+=12+((15&e[t+10])<<8|e[t+11]);t<a;){var s=Ur(e,t),u=(15&e[t+3])<<8|e[t+4];switch(e[t]){case 207:if(!r){Wr("ADTS AAC");break}case 15:-1===o.audioPid&&(o.audioPid=s);break;case 21:-1===o.id3Pid&&(o.id3Pid=s);break;case 219:if(!r){Wr("H.264");break}case 27:-1===o.videoPid&&(o.videoPid=s,o.segmentVideoCodec="avc");break;case 3:case 4:n.mpeg||n.mp3?-1===o.audioPid&&(o.audioPid=s,o.segmentAudioCodec="mp3"):P.log("MPEG audio found, not supported in this browser");break;case 193:if(!r){Wr("AC-3");break}case 129:n.ac3?-1===o.audioPid&&(o.audioPid=s,o.segmentAudioCodec="ac3"):P.log("AC-3 audio found, not supported in this browser");break;case 6:if(-1===o.audioPid&&u>0)for(var c=t+5,l=u;l>2;){switch(e[c]){case 106:!0!==n.ac3?P.log("AC-3 audio found, not supported in this browser for now"):(o.audioPid=s,o.segmentAudioCodec="ac3")}var f=e[c+1]+2;c+=f,l-=f}break;case 194:case 135:return Hr(i,new Error("Unsupported EC-3 in M2TS found")),o;case 36:return Hr(i,new Error("Unsupported HEVC in M2TS found")),o}t+=u+5}return o}function Hr(e,t,n){P.warn("parsing error: "+t.message),e.emit(m.ERROR,m.ERROR,{type:w.MEDIA_ERROR,details:S.FRAG_PARSING_ERROR,fatal:!1,levelRetry:n,error:t,reason:t.message})}function Wr(e){P.log(e+" with AES-128-CBC encryption found in unencrypted stream")}function qr(e){var t,n,r,i,o,a=0,s=e.data;if(!e||0===e.size)return null;for(;s[0].length<19&&s.length>1;)s[0]=Ue(s[0],s[1]),s.splice(1,1);if(1===((t=s[0])[0]<<16)+(t[1]<<8)+t[2]){if((n=(t[4]<<8)+t[5])&&n>e.size-6)return null;var u=t[7];192&u&&(i=536870912*(14&t[9])+4194304*(255&t[10])+16384*(254&t[11])+128*(255&t[12])+(254&t[13])/2,64&u?i-(o=536870912*(14&t[14])+4194304*(255&t[15])+16384*(254&t[16])+128*(255&t[17])+(254&t[18])/2)>54e5&&(P.warn(Math.round((i-o)/9e4)+"s delta between PTS and DTS, align them"),i=o):o=i);var c=(r=t[8])+9;if(e.size<=c)return null;e.size-=c;for(var l=new Uint8Array(e.size),f=0,d=s.length;f<d;f++){var p=(t=s[f]).byteLength;if(c){if(c>p){c-=p;continue}t=t.subarray(c),p-=c,c=0}l.set(t,a),a+=p}return n&&(n-=r+3),{data:l,pts:i,dts:o,len:n}}return null}var Gr=function(){return O((function e(){_(this,e)}),null,[{key:"getSilentFrame",value:function(e,t){switch(e){case"mp4a.40.2":if(1===t)return new Uint8Array([0,200,0,128,35,128]);if(2===t)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(1===t)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(3===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}}}])}(),Yr=Math.pow(2,32)-1,Kr=function(){function e(){_(this,e)}return O(e,null,[{key:"init",value:function(){var t;for(t in e.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],dac3:[],"ac-3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]},e.types)e.types.hasOwnProperty(t)&&(e.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);var n=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]),r=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]);e.HDLR_TYPES={video:n,audio:r};var i=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),o=new Uint8Array([0,0,0,0,0,0,0,0]);e.STTS=e.STSC=e.STCO=o,e.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),e.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),e.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),e.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var a=new Uint8Array([105,115,111,109]),s=new Uint8Array([97,118,99,49]),u=new Uint8Array([0,0,0,1]);e.FTYP=e.box(e.types.ftyp,a,u,a,s),e.DINF=e.box(e.types.dinf,e.box(e.types.dref,i))}},{key:"box",value: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];for(var i=8,o=n.length,a=o;o--;)i+=n[o].byteLength;var s=new Uint8Array(i);for(s[0]=i>>24&255,s[1]=i>>16&255,s[2]=i>>8&255,s[3]=255&i,s.set(e,4),o=0,i=8;o<a;o++)s.set(n[o],i),i+=n[o].byteLength;return s}},{key:"hdlr",value:function(t){return e.box(e.types.hdlr,e.HDLR_TYPES[t])}},{key:"mdat",value:function(t){return e.box(e.types.mdat,t)}},{key:"mdhd",value:function(t,n){n*=t;var r=Math.floor(n/(Yr+1)),i=Math.floor(n%(Yr+1));return e.box(e.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,255&t,r>>24,r>>16&255,r>>8&255,255&r,i>>24,i>>16&255,i>>8&255,255&i,85,196,0,0]))}},{key:"mdia",value:function(t){return e.box(e.types.mdia,e.mdhd(t.timescale,t.duration),e.hdlr(t.type),e.minf(t))}},{key:"mfhd",value:function(t){return e.box(e.types.mfhd,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,255&t]))}},{key:"minf",value:function(t){return"audio"===t.type?e.box(e.types.minf,e.box(e.types.smhd,e.SMHD),e.DINF,e.stbl(t)):e.box(e.types.minf,e.box(e.types.vmhd,e.VMHD),e.DINF,e.stbl(t))}},{key:"moof",value:function(t,n,r){return e.box(e.types.moof,e.mfhd(t),e.traf(r,n))}},{key:"moov",value:function(t){for(var n=t.length,r=[];n--;)r[n]=e.trak(t[n]);return e.box.apply(null,[e.types.moov,e.mvhd(t[0].timescale,t[0].duration)].concat(r).concat(e.mvex(t)))}},{key:"mvex",value:function(t){for(var n=t.length,r=[];n--;)r[n]=e.trex(t[n]);return e.box.apply(null,[e.types.mvex].concat(r))}},{key:"mvhd",value:function(t,n){n*=t;var r=Math.floor(n/(Yr+1)),i=Math.floor(n%(Yr+1)),o=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,255&t,r>>24,r>>16&255,r>>8&255,255&r,i>>24,i>>16&255,i>>8&255,255&i,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 e.box(e.types.mvhd,o)}},{key:"sdtp",value:function(t){var n,r,i=t.samples||[],o=new Uint8Array(4+i.length);for(n=0;n<i.length;n++)r=i[n].flags,o[n+4]=r.dependsOn<<4|r.isDependedOn<<2|r.hasRedundancy;return e.box(e.types.sdtp,o)}},{key:"stbl",value:function(t){return e.box(e.types.stbl,e.stsd(t),e.box(e.types.stts,e.STTS),e.box(e.types.stsc,e.STSC),e.box(e.types.stsz,e.STSZ),e.box(e.types.stco,e.STCO))}},{key:"avc1",value:function(t){var n,r,i,o=[],a=[];for(n=0;n<t.sps.length;n++)i=(r=t.sps[n]).byteLength,o.push(i>>>8&255),o.push(255&i),o=o.concat(Array.prototype.slice.call(r));for(n=0;n<t.pps.length;n++)i=(r=t.pps[n]).byteLength,a.push(i>>>8&255),a.push(255&i),a=a.concat(Array.prototype.slice.call(r));var s=e.box(e.types.avcC,new Uint8Array([1,o[3],o[4],o[5],255,224|t.sps.length].concat(o).concat([t.pps.length]).concat(a))),u=t.width,c=t.height,l=t.pixelRatio[0],f=t.pixelRatio[1];return e.box(e.types.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,u>>8&255,255&u,c>>8&255,255&c,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),s,e.box(e.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),e.box(e.types.pasp,new Uint8Array([l>>24,l>>16&255,l>>8&255,255&l,f>>24,f>>16&255,f>>8&255,255&f])))}},{key:"esds",value:function(e){var t=e.config.length;return new Uint8Array([0,0,0,0,3,23+t,0,1,0,4,15+t,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([t]).concat(e.config).concat([6,1,2]))}},{key:"audioStsd",value:function(e){var t=e.samplerate;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount,0,16,0,0,0,0,t>>8&255,255&t,0,0])}},{key:"mp4a",value:function(t){return e.box(e.types.mp4a,e.audioStsd(t),e.box(e.types.esds,e.esds(t)))}},{key:"mp3",value:function(t){return e.box(e.types[".mp3"],e.audioStsd(t))}},{key:"ac3",value:function(t){return e.box(e.types["ac-3"],e.audioStsd(t),e.box(e.types.dac3,t.config))}},{key:"stsd",value:function(t){return"audio"===t.type?"mp3"===t.segmentCodec&&"mp3"===t.codec?e.box(e.types.stsd,e.STSD,e.mp3(t)):"ac3"===t.segmentCodec?e.box(e.types.stsd,e.STSD,e.ac3(t)):e.box(e.types.stsd,e.STSD,e.mp4a(t)):e.box(e.types.stsd,e.STSD,e.avc1(t))}},{key:"tkhd",value:function(t){var n=t.id,r=t.duration*t.timescale,i=t.width,o=t.height,a=Math.floor(r/(Yr+1)),s=Math.floor(r%(Yr+1));return e.box(e.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,n>>24&255,n>>16&255,n>>8&255,255&n,0,0,0,0,a>>24,a>>16&255,a>>8&255,255&a,s>>24,s>>16&255,s>>8&255,255&s,0,0,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,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,i>>8&255,255&i,0,0,o>>8&255,255&o,0,0]))}},{key:"traf",value:function(t,n){var r=e.sdtp(t),i=t.id,o=Math.floor(n/(Yr+1)),a=Math.floor(n%(Yr+1));return e.box(e.types.traf,e.box(e.types.tfhd,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,255&i])),e.box(e.types.tfdt,new Uint8Array([1,0,0,0,o>>24,o>>16&255,o>>8&255,255&o,a>>24,a>>16&255,a>>8&255,255&a])),e.trun(t,r.length+16+20+8+16+8+8),r)}},{key:"trak",value:function(t){return t.duration=t.duration||4294967295,e.box(e.types.trak,e.tkhd(t),e.mdia(t))}},{key:"trex",value:function(t){var n=t.id;return e.box(e.types.trex,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,255&n,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}},{key:"trun",value:function(t,n){var r,i,o,a,s,u,c=t.samples||[],l=c.length,f=12+16*l,d=new Uint8Array(f);for(n+=8+f,d.set(["video"===t.type?1:0,0,15,1,l>>>24&255,l>>>16&255,l>>>8&255,255&l,n>>>24&255,n>>>16&255,n>>>8&255,255&n],0),r=0;r<l;r++)o=(i=c[r]).duration,a=i.size,s=i.flags,u=i.cts,d.set([o>>>24&255,o>>>16&255,o>>>8&255,255&o,a>>>24&255,a>>>16&255,a>>>8&255,255&a,s.isLeading<<2|s.dependsOn,s.isDependedOn<<6|s.hasRedundancy<<4|s.paddingValue<<1|s.isNonSync,61440&s.degradPrio,15&s.degradPrio,u>>>24&255,u>>>16&255,u>>>8&255,255&u],12+16*r);return e.box(e.types.trun,d)}},{key:"initSegment",value:function(t){e.types||e.init();var n=e.moov(t);return Ue(e.FTYP,n)}}])}();function $r(e,t){var n=e*t*(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1);return arguments.length>3&&void 0!==arguments[3]&&arguments[3]?Math.round(n):n}function Xr(e){return $r(e,1e3,1/9e4,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}Kr.types=void 0,Kr.HDLR_TYPES=void 0,Kr.STTS=void 0,Kr.STSC=void 0,Kr.STCO=void 0,Kr.STSZ=void 0,Kr.VMHD=void 0,Kr.SMHD=void 0,Kr.STSD=void 0,Kr.FTYP=void 0,Kr.DINF=void 0;var Qr,Zr=null,Jr=null,ei=function(){return O((function e(t,n,r){if(arguments.length>3&&void 0!==arguments[3]&&arguments[3],_(this,e),this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextAvcDts=null,this.nextAudioPts=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.videoTrackConfig=void 0,this.observer=t,this.config=n,this.typeSupported=r,this.ISGenerated=!1,null===Zr){var i=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Zr=i?parseInt(i[1]):0}if(null===Jr){var o=navigator.userAgent.match(/Safari\/(\d+)/i);Jr=o?parseInt(o[1]):0}}),[{key:"destroy",value:function(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}},{key:"resetTimeStamp",value:function(e){P.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=e}},{key:"resetNextTimestamp",value:function(){P.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}},{key:"resetInitSegment",value:function(){P.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0}},{key:"getVideoStartPts",value:function(e){var t=!1,n=e.reduce((function(e,n){var r=n.pts-e;return r<-4294967296?(t=!0,ti(e,n.pts)):r>0?e:n.pts}),e[0].pts);return t&&P.debug("PTS rollover detected"),n}},{key:"remux",value:function(e,t,n,r,i,o,a,s){var u,c,l,f,d,p,h=i,v=i,g=e.pid>-1,m=t.pid>-1,y=t.samples.length,b=e.samples.length>0,x=a&&y>0||y>1;if((!g||b)&&(!m||x)||this.ISGenerated||a){if(this.ISGenerated){var w,_,S,O,k=this.videoTrackConfig;!k||t.width===k.width&&t.height===k.height&&(null==(w=t.pixelRatio)?void 0:w[0])===(null==(_=k.pixelRatio)?void 0:_[0])&&(null==(S=t.pixelRatio)?void 0:S[1])===(null==(O=k.pixelRatio)?void 0:O[1])||this.resetInitSegment()}else l=this.generateIS(e,t,i,o);var E,j=this.isVideoContiguous,T=-1;if(x&&(T=function(e){for(var t=0;t<e.length;t++)if(e[t].key)return t;return-1}(t.samples),!j&&this.config.forceKeyFrameOnDiscontinuity))if(p=!0,T>0){P.warn("[mp4-remuxer]: Dropped ".concat(T," out of ").concat(y," video samples due to a missing keyframe"));var C=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(T),t.dropped+=T,E=v+=(t.samples[0].pts-C)/t.inputTimeScale}else-1===T&&(P.warn("[mp4-remuxer]: No keyframe found out of ".concat(y," video samples")),p=!1);if(this.ISGenerated){if(b&&x){var A=this.getVideoStartPts(t.samples),M=(ti(e.samples[0].pts,A)-A)/t.inputTimeScale;h+=Math.max(0,M),v+=Math.max(0,-M)}if(b){if(e.samplerate||(P.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),l=this.generateIS(e,t,i,o)),c=this.remuxAudio(e,h,this.isAudioContiguous,o,m||x||s===jt.AUDIO?v:void 0),x){var I=c?c.endPTS-c.startPTS:0;t.inputTimeScale||(P.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),l=this.generateIS(e,t,i,o)),u=this.remuxVideo(t,v,j,I)}}else x&&(u=this.remuxVideo(t,v,j,0));u&&(u.firstKeyFrame=T,u.independent=-1!==T,u.firstKeyFramePTS=E)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(n.samples.length&&(d=ni(n,i,this._initPTS,this._initDTS)),r.samples.length&&(f=ri(r,i,this._initPTS))),{audio:c,video:u,initSegment:l,independent:p,text:f,id3:d}}},{key:"generateIS",value:function(e,t,n,r){var i,o,a,s=e.samples,u=t.samples,c=this.typeSupported,l={},f=this._initPTS,d=!f||r,p="audio/mp4";if(d&&(i=o=1/0),e.config&&s.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":c.mpeg?(p="audio/mpeg",e.codec=""):c.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3"}l.audio={id:"audio",container:p,codec:e.codec,initSegment:"mp3"===e.segmentCodec&&c.mpeg?new Uint8Array(0):Kr.initSegment([e]),metadata:{channelCount:e.channelCount}},d&&(a=e.inputTimeScale,f&&a===f.timescale?d=!1:i=o=s[0].pts-Math.round(a*n))}if(t.sps&&t.pps&&u.length){if(t.timescale=t.inputTimeScale,l.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:Kr.initSegment([t]),metadata:{width:t.width,height:t.height}},d)if(a=t.inputTimeScale,f&&a===f.timescale)d=!1;else{var h=this.getVideoStartPts(u),v=Math.round(a*n);o=Math.min(o,ti(u[0].dts,h)-v),i=Math.min(i,h-v)}this.videoTrackConfig={width:t.width,height:t.height,pixelRatio:t.pixelRatio}}if(Object.keys(l).length)return this.ISGenerated=!0,d?(this._initPTS={baseTime:i,timescale:a},this._initDTS={baseTime:o,timescale:a}):i=a=void 0,{tracks:l,initPTS:i,timescale:a}}},{key:"remuxVideo",value:function(e,t,n,r){var i,o,a=e.inputTimeScale,s=e.samples,c=[],l=s.length,f=this._initPTS,d=this.nextAvcDts,p=8,h=this.videoSampleDuration,v=Number.POSITIVE_INFINITY,g=Number.NEGATIVE_INFINITY,y=!1;if(!n||null===d){var b=t*a,x=s[0].pts-ti(s[0].dts,s[0].pts);Zr&&null!==d&&Math.abs(b-x-d)<15e3?n=!0:d=b-x}for(var _=f.baseTime*a/f.timescale,O=0;O<l;O++){var k=s[O];k.pts=ti(k.pts-_,d),k.dts=ti(k.dts-_,d),k.dts<s[O>0?O-1:O].dts&&(y=!0)}y&&s.sort((function(e,t){var n=e.dts-t.dts,r=e.pts-t.pts;return n||r})),i=s[0].dts;var E=(o=s[s.length-1].dts)-i,j=E?Math.round(E/(l-1)):h||e.inputTimeScale/30;if(n){var T=i-d,C=T>j,A=T<-1;if((C||A)&&(C?P.warn("AVC: ".concat(Xr(T,!0)," ms (").concat(T,"dts) hole between fragments detected at ").concat(t.toFixed(3))):P.warn("AVC: ".concat(Xr(-T,!0)," ms (").concat(T,"dts) overlapping between fragments detected at ").concat(t.toFixed(3))),!A||d>=s[0].pts||Zr)){i=d;var M=s[0].pts-T;if(C)s[0].dts=i,s[0].pts=M;else for(var I=0;I<s.length&&!(s[I].dts>M);I++)s[I].dts-=T,s[I].pts-=T;P.log("Video: Initial PTS/DTS adjusted: ".concat(Xr(M,!0),"/").concat(Xr(i,!0),", delta: ").concat(Xr(T,!0)," ms"))}}for(var R=0,D=0,L=i=Math.max(0,i),N=0;N<l;N++){for(var F=s[N],B=F.units,U=B.length,z=0,V=0;V<U;V++)z+=B[V].data.length;D+=z,R+=U,F.length=z,F.dts<L?(F.dts=L,L+=j/4|0||1):L=F.dts,v=Math.min(F.pts,v),g=Math.max(F.pts,g)}o=s[l-1].dts;var H,W=D+4*R+8;try{H=new Uint8Array(W)}catch(e){return void this.observer.emit(m.ERROR,m.ERROR,{type:w.MUX_ERROR,details:S.REMUX_ALLOC_ERROR,fatal:!1,error:e,bytes:W,reason:"fail allocating video mdat "+W})}var q=new DataView(H.buffer);q.setUint32(0,W),H.set(Kr.types.mdat,4);for(var G=!1,Y=Number.POSITIVE_INFINITY,K=Number.POSITIVE_INFINITY,$=Number.NEGATIVE_INFINITY,X=Number.NEGATIVE_INFINITY,Q=0;Q<l;Q++){for(var Z=s[Q],J=Z.units,ee=void 0,te=0,ne=0,re=J.length;ne<re;ne++){var ie=J[ne],oe=ie.data,ae=ie.data.byteLength;q.setUint32(p,ae),p+=4,H.set(oe,p),p+=ae,te+=4+ae}if(Q<l-1)h=s[Q+1].dts-Z.dts,ee=s[Q+1].pts-Z.pts;else{var se=this.config,ue=Q>0?Z.dts-s[Q-1].dts:j;if(ee=Q>0?Z.pts-s[Q-1].pts:j,se.stretchShortVideoTrack&&null!==this.nextAudioPts){var ce=Math.floor(se.maxBufferHole*a),le=(r?v+r*a:this.nextAudioPts)-Z.pts;le>ce?((h=le-ue)<0?h=ue:G=!0,P.log("[mp4-remuxer]: It is approximately ".concat(le/90," ms to the next segment; using duration ").concat(h/90," ms for the last video frame."))):h=ue}else h=ue}var fe=Math.round(Z.pts-Z.dts);Y=Math.min(Y,h),$=Math.max($,h),K=Math.min(K,ee),X=Math.max(X,ee),c.push(new ii(Z.key,h,te,fe))}if(c.length)if(Zr){if(Zr<70){var de=c[0].flags;de.dependsOn=2,de.isNonSync=0}}else if(Jr&&X-K<$-Y&&j/$<.025&&0===c[0].cts){P.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");for(var pe=i,he=0,ve=c.length;he<ve;he++){var ge=pe+c[he].duration,me=pe+c[he].cts;if(he<ve-1){var ye=ge+c[he+1].cts;c[he].duration=ye-me}else c[he].duration=he?c[he-1].duration:j;c[he].cts=0,pe=ge}}h=G||!h?j:h,this.nextAvcDts=d=o+h,this.videoSampleDuration=h,this.isVideoContiguous=!0;var be={data1:Kr.moof(e.sequenceNumber++,i,u({},e,{samples:c})),data2:H,startPTS:v/a,endPTS:(g+h)/a,startDTS:i/a,endDTS:d/a,type:"video",hasAudio:!1,hasVideo:!0,nb:c.length,dropped:e.dropped};return e.samples=[],e.dropped=0,be}},{key:"getSamplesPerFrame",value:function(e){switch(e.segmentCodec){case"mp3":return 1152;case"ac3":return 1536;default:return 1024}}},{key:"remuxAudio",value:function(e,t,n,r,i){var o=e.inputTimeScale,a=o/(e.samplerate?e.samplerate:o),s=this.getSamplesPerFrame(e),c=s*a,l=this._initPTS,f="mp3"===e.segmentCodec&&this.typeSupported.mpeg,d=[],p=void 0!==i,h=e.samples,v=f?0:8,g=this.nextAudioPts||-1,y=t*o,b=l.baseTime*o/l.timescale;if(this.isAudioContiguous=n=n||h.length&&g>0&&(r&&Math.abs(y-g)<9e3||Math.abs(ti(h[0].pts-b,y)-g)<20*c),h.forEach((function(e){e.pts=ti(e.pts-b,y)})),!n||g<0){if(!(h=h.filter((function(e){return e.pts>=0}))).length)return;g=0===i?0:r&&!p?Math.max(0,y):h[0].pts}if("aac"===e.segmentCodec)for(var x=this.config.maxAudioFramesDrift,_=0,O=g;_<h.length;_++){var k=h[_],E=k.pts,j=E-O,T=Math.abs(1e3*j/o);if(j<=-x*c&&p)0===_&&(P.warn("Audio frame @ ".concat((E/o).toFixed(3),"s overlaps nextAudioPts by ").concat(Math.round(1e3*j/o)," ms.")),this.nextAudioPts=g=O=E);else if(j>=x*c&&T<1e4&&p){var C=Math.round(j/c);(O=E-C*c)<0&&(C--,O+=c),0===_&&(this.nextAudioPts=g=O),P.warn("[mp4-remuxer]: Injecting ".concat(C," audio frame @ ").concat((O/o).toFixed(3),"s due to ").concat(Math.round(1e3*j/o)," ms gap."));for(var A=0;A<C;A++){var M=Math.max(O,0),I=Gr.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);I||(P.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),I=k.unit.subarray()),h.splice(_,0,{unit:I,pts:M}),O+=c,_++}}k.pts=O,O+=c}for(var R,D=null,L=null,N=0,F=h.length;F--;)N+=h[F].unit.byteLength;for(var B=0,U=h.length;B<U;B++){var z=h[B],V=z.unit,H=z.pts;if(null!==L)d[B-1].duration=Math.round((H-L)/a);else{if(n&&"aac"===e.segmentCodec&&(H=g),D=H,!(N>0))return;N+=v;try{R=new Uint8Array(N)}catch(e){return void this.observer.emit(m.ERROR,m.ERROR,{type:w.MUX_ERROR,details:S.REMUX_ALLOC_ERROR,fatal:!1,error:e,bytes:N,reason:"fail allocating audio mdat "+N})}f||(new DataView(R.buffer).setUint32(0,N),R.set(Kr.types.mdat,4))}R.set(V,v);var W=V.byteLength;v+=W,d.push(new ii(!0,s,W,0)),L=H}var q=d.length;if(q){var G=d[d.length-1];this.nextAudioPts=g=L+a*G.duration;var Y=f?new Uint8Array(0):Kr.moof(e.sequenceNumber++,D/a,u({},e,{samples:d}));e.samples=[];var K=D/o,$=g/o,X={data1:Y,data2:R,startPTS:K,endPTS:$,startDTS:K,endDTS:$,type:"audio",hasAudio:!0,hasVideo:!1,nb:q};return this.isAudioContiguous=!0,X}}},{key:"remuxEmptyAudio",value:function(e,t,n,r){var i=e.inputTimeScale,o=i/(e.samplerate?e.samplerate:i),a=this.nextAudioPts,s=this._initDTS,u=9e4*s.baseTime/s.timescale,c=(null!==a?a:r.startDTS*i)+u,l=r.endDTS*i+u,f=1024*o,d=Math.ceil((l-c)/f),p=Gr.getSilentFrame(e.manifestCodec||e.codec,e.channelCount);if(P.warn("[mp4-remuxer]: remux empty Audio"),p){for(var h=[],v=0;v<d;v++){var g=c+v*f;h.push({unit:p,pts:g,dts:g})}return e.samples=h,this.remuxAudio(e,t,n,!1)}P.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec")}}])}();function ti(e,t){var n;if(null===t)return e;for(n=t<e?-8589934592:8589934592;Math.abs(e-t)>4294967296;)e+=n;return e}function ni(e,t,n,r){var i=e.samples.length;if(i){for(var o=e.inputTimeScale,a=0;a<i;a++){var s=e.samples[a];s.pts=ti(s.pts-n.baseTime*o/n.timescale,t*o)/o,s.dts=ti(s.dts-r.baseTime*o/r.timescale,t*o)/o}var u=e.samples;return e.samples=[],{samples:u}}}function ri(e,t,n){var r=e.samples.length;if(r){for(var i=e.inputTimeScale,o=0;o<r;o++){var a=e.samples[o];a.pts=ti(a.pts-n.baseTime*i/n.timescale,t*i)/i}e.samples.sort((function(e,t){return e.pts-t.pts}));var s=e.samples;return e.samples=[],{samples:s}}}var ii=O((function e(t,n,r,i){_(this,e),this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=n,this.size=r,this.cts=i,this.flags={isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:t?2:1,isNonSync:t?0:1}}));function oi(e,t){var n=null==e?void 0:e.codec;return n&&n.length>4?n:t===B?"ec-3"===n||"ac-3"===n||"alac"===n?n:"fLaC"===n||"Opus"===n?ut(n,!1):(P.info('Parsed audio codec "'.concat(n,'" or audio object type not handled. Using "').concat("mp4a.40.5",'"')),"mp4a.40.5"):(P.warn('Unhandled video codec "'.concat(n,'"')),"hvc1"===n||"hev1"===n?"hvc1.1.6.L120.90":"av01"===n?"av01.0.04M.08":"avc1.42e01e")}try{Qr=self.performance.now.bind(self.performance)}catch(e){P.debug("Unable to use Performance API on this environment"),Qr=null==K?void 0:K.Date.now}var ai=[{demux:function(){return O((function e(t,n){_(this,e),this.remainderData=null,this.timeOffset=0,this.config=void 0,this.videoTrack=void 0,this.audioTrack=void 0,this.id3Track=void 0,this.txtTrack=void 0,this.config=n}),[{key:"resetTimeStamp",value:function(){}},{key:"resetInitSegment",value:function(e,t,n,r){var i=this.videoTrack=fr("video",1),o=this.audioTrack=fr("audio",1),a=this.txtTrack=fr("text",1);if(this.id3Track=fr("id3",1),this.timeOffset=0,null!=e&&e.byteLength){var s=Ie(e);if(s.video){var u=s.video,c=u.id,l=u.timescale,f=u.codec;i.id=c,i.timescale=a.timescale=l,i.codec=f}if(s.audio){var d=s.audio,p=d.id,h=d.timescale,v=d.codec;o.id=p,o.timescale=h,o.codec=v}a.id=Oe.text,i.sampleDuration=0,i.duration=o.duration=r}}},{key:"resetContiguity",value:function(){this.remainderData=null}},{key:"demux",value:function(e,t){this.timeOffset=t;var n=e,r=this.videoTrack,i=this.txtTrack;if(this.config.progressive){this.remainderData&&(n=Ue(this.remainderData,e));var o=function(e){var t={valid:null,remainder:null},n=Pe(e,["moof"]);if(n.length<2)return t.remainder=e,t;var r=n[n.length-1];return t.valid=re(e,0,r.byteOffset-8),t.remainder=re(e,r.byteOffset-8),t}(n);this.remainderData=o.remainder,r.samples=o.valid||new Uint8Array}else r.samples=n;var a=this.extractID3Track(r,t);return i.samples=ze(t,r),{videoTrack:r,audioTrack:this.audioTrack,id3Track:a,textTrack:this.txtTrack}}},{key:"flush",value:function(){var e=this.timeOffset,t=this.videoTrack,n=this.txtTrack;t.samples=this.remainderData||new Uint8Array,this.remainderData=null;var r=this.extractID3Track(t,this.timeOffset);return n.samples=ze(e,t),{videoTrack:t,audioTrack:fr(),id3Track:r,textTrack:fr()}}},{key:"extractID3Track",value:function(e,t){var n=this.id3Track;if(e.samples.length){var r=Pe(e.samples,["emsg"]);r&&r.forEach((function(e){var r=function(e){var t=e[0],n="",r="",i=0,o=0,a=0,s=0,u=0,c=0;if(0===t){for(;"\0"!==ke(e.subarray(c,c+1));)n+=ke(e.subarray(c,c+1)),c+=1;for(n+=ke(e.subarray(c,c+1)),c+=1;"\0"!==ke(e.subarray(c,c+1));)r+=ke(e.subarray(c,c+1)),c+=1;r+=ke(e.subarray(c,c+1)),c+=1,i=je(e,12),o=je(e,16),s=je(e,20),u=je(e,24),c=28}else if(1===t){i=je(e,c+=4);var l=je(e,c+=4),f=je(e,c+=4);for(c+=4,a=Math.pow(2,32)*l+f,p(a)||(a=Number.MAX_SAFE_INTEGER,P.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),s=je(e,c),u=je(e,c+=4),c+=4;"\0"!==ke(e.subarray(c,c+1));)n+=ke(e.subarray(c,c+1)),c+=1;for(n+=ke(e.subarray(c,c+1)),c+=1;"\0"!==ke(e.subarray(c,c+1));)r+=ke(e.subarray(c,c+1)),c+=1;r+=ke(e.subarray(c,c+1)),c+=1}return{schemeIdUri:n,value:r,timeScale:i,presentationTime:a,presentationTimeDelta:o,eventDuration:s,id:u,payload:e.subarray(c,e.byteLength)}}(e);if(Mr.test(r.schemeIdUri)){var i=f(r.presentationTime)?r.presentationTime/r.timeScale:t+r.presentationTimeDelta/r.timeScale,o=4294967295===r.eventDuration?Number.POSITIVE_INFINITY:r.eventDuration/r.timeScale;o<=.001&&(o=Number.POSITIVE_INFINITY);var a=r.payload;n.samples.push({data:a,len:a.byteLength,dts:i,pts:i,type:Lt.emsg,duration:o})}}))}return n}},{key:"demuxSampleAes",value:function(e,t,n){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}},{key:"destroy",value:function(){}}],[{key:"probe",value:function(e){return function(e){for(var t=e.byteLength,n=0;n<t;){var r=je(e,n);if(r>8&&109===e[n+4]&&111===e[n+5]&&111===e[n+6]&&102===e[n+7])return!0;n=r>1?n+r:t}return!1}(e)}}])}(),remux:function(){return O((function e(){_(this,e),this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null}),[{key:"destroy",value:function(){}},{key:"resetTimeStamp",value:function(e){this.initPTS=e,this.lastEndTime=null}},{key:"resetNextTimestamp",value:function(){this.lastEndTime=null}},{key:"resetInitSegment",value:function(e,t,n,r){this.audioCodec=t,this.videoCodec=n,this.generateInitSegment(function(e,t){if(!e||!t)return e;var n=t.keyId;return n&&t.isCommonEncryption&&Pe(e,["moov","trak"]).forEach((function(e){var t=Pe(e,["mdia","minf","stbl","stsd"])[0].subarray(8),r=Pe(t,["enca"]),i=r.length>0;i||(r=Pe(t,["encv"])),r.forEach((function(e){Pe(i?e.subarray(28):e.subarray(78),["sinf"]).forEach((function(e){var t=Fe(e);if(t){var r=t.subarray(8,24);r.some((function(e){return 0!==e}))||(P.log("[eme] Patching keyId in 'enc".concat(i?"a":"v",">sinf>>tenc' box: ").concat(we(r)," -> ").concat(we(n))),t.set(n,8))}}))}))})),e}(e,r)),this.emitInitSegment=!0}},{key:"generateInitSegment",value:function(e){var t=this.audioCodec,n=this.videoCodec;if(null==e||!e.byteLength)return this.initTracks=void 0,void(this.initData=void 0);var r=this.initData=Ie(e);r.audio&&(t=oi(r.audio,B)),r.video&&(n=oi(r.video,U));var i={};r.audio&&r.video?i.audiovideo={container:"video/mp4",codec:t+","+n,initSegment:e,id:"main"}:r.audio?i.audio={container:"audio/mp4",codec:t,initSegment:e,id:"audio"}:r.video?i.video={container:"video/mp4",codec:n,initSegment:e,id:"main"}:P.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=i}},{key:"remux",value:function(e,t,n,r,i,o){var a,s,u=this.initPTS,c=this.lastEndTime,l={audio:void 0,video:void 0,text:r,id3:n,initSegment:void 0};f(c)||(c=this.lastEndTime=i||0);var d=t.samples;if(null==d||!d.length)return l;var p={initPTS:void 0,timescale:1},h=this.initData;if(null!=(a=h)&&a.length||(this.generateInitSegment(d),h=this.initData),null==(s=h)||!s.length)return P.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),l;this.emitInitSegment&&(p.tracks=this.initTracks,this.emitInitSegment=!1);var v=function(e,t){for(var n=0,r=0,i=0,o=Pe(e,["moof","traf"]),a=0;a<o.length;a++){var s=o[a],u=Pe(s,["tfhd"])[0],c=t[je(u,4)];if(c){var l=c.default,d=je(u,0)|(null==l?void 0:l.flags),p=null==l?void 0:l.duration;8&d&&(p=je(u,2&d?12:8));for(var h=c.timescale||9e4,v=Pe(s,["trun"]),g=0;g<v.length;g++)!(n=Be(v[g]))&&p&&(n=p*je(v[g],4)),c.type===U?r+=n/h:c.type===B&&(i+=n/h)}}if(0===r&&0===i){for(var m=1/0,y=0,b=0,x=Pe(e,["sidx"]),w=0;w<x.length;w++){var _=Me(x[w]);if(null!=_&&_.references){m=Math.min(m,_.earliestPresentationTime/_.timescale);var S=_.references.reduce((function(e,t){return e+t.info.duration||0}),0);b=(y=Math.max(y,S+_.earliestPresentationTime/_.timescale))-m}}if(b&&f(b))return b}return r||i}(d,h),g=function(e,t){return Pe(t,["moof","traf"]).reduce((function(t,n){var r=Pe(n,["tfdt"])[0],i=r[0],o=Pe(n,["tfhd"]).reduce((function(t,n){var o=je(n,4),a=e[o];if(a){var s=je(r,4);if(1===i){if(s===_e)return P.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),t;s*=_e+1,s+=je(r,8)}var u=s/(a.timescale||9e4);if(f(u)&&(null===t||u<t))return u}return t}),null);return null!==o&&f(o)&&(null===t||o<t)?o:t}),null)}(h,d),m=null===g?i:g;(function(e,t,n,r){if(null===e)return!0;var i=Math.max(r,1),o=t-e.baseTime/e.timescale;return Math.abs(o-n)>i}(u,m,i,v)||p.timescale!==u.timescale&&o)&&(p.initPTS=m-i,u&&1===u.timescale&&P.warn("Adjusting initPTS by "+(p.initPTS-u.baseTime)),this.initPTS=u={baseTime:p.initPTS,timescale:1});var y=e?m-u.baseTime/u.timescale:c,b=y+v;!function(e,t,n){Pe(t,["moof","traf"]).forEach((function(t){Pe(t,["tfhd"]).forEach((function(r){var i=je(r,4),o=e[i];if(o){var a=o.timescale||9e4;Pe(t,["tfdt"]).forEach((function(e){var t=e[0],r=n*a;if(r){var i=je(e,4);if(0===t)i-=r,Ae(e,4,i=Math.max(i,0));else{i*=Math.pow(2,32),i+=je(e,8),i-=r,i=Math.max(i,0);var o=Math.floor(i/(_e+1)),s=Math.floor(i%(_e+1));Ae(e,4,o),Ae(e,8,s)}}}))}}))}))}(h,d,u.baseTime/u.timescale),v>0?this.lastEndTime=b:(P.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var x=!!h.audio,w=!!h.video,_="";x&&(_+="audio"),w&&(_+="video");var S={data1:d,startPTS:y,startDTS:y,endPTS:b,endDTS:b,type:_,hasAudio:x,hasVideo:w,nb:1,dropped:0};return l.audio="audio"===S.type?S:void 0,l.video="audio"!==S.type?S:void 0,l.initSegment=p,l.id3=ni(n,i,u,u),r.samples.length&&(l.text=ri(r,i,u)),l}}])}()},{demux:Br,remux:ei},{demux:function(e){function t(e,n){var r;return _(this,t),(r=g(this,t)).observer=void 0,r.config=void 0,r.observer=e,r.config=n,r}return x(t,e),O(t,[{key:"resetInitSegment",value:function(e,n,r,i){d(b(t.prototype),"resetInitSegment",this).call(this,e,n,r,i),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:n,duration:i,inputTimeScale:9e4,dropped:0}}},{key:"canParse",value:function(e,t){return function(e,t){return function(e,t){return t+5<e.length}(e,t)&&hr(e,t)&&gr(e,t)<=e.length-t}(e,t)}},{key:"appendFrame",value:function(e,t,n){br(e,this.observer,t,n,e.manifestCodec);var r=wr(e,t,n,this.basePTS,this.frameIndex);if(r&&0===r.missing)return r}}],[{key:"probe",value:function(e){if(!e)return!1;var t=se(e,0),n=(null==t?void 0:t.length)||0;if(Pr(e,n))return!1;for(var r=e.length;n<r;n++)if(yr(e,n))return P.log("ADTS sync word found !"),!0;return!1}}])}(dr),remux:ei},{demux:function(e){function t(){return _(this,t),g(this,t,arguments)}return x(t,e),O(t,[{key:"resetInitSegment",value:function(e,n,r,i){d(b(t.prototype),"resetInitSegment",this).call(this,e,n,r,i),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:n,duration:i,inputTimeScale:9e4,dropped:0}}},{key:"canParse",value:function(e,t){return function(e,t){return Cr(e,t)&&4<=e.length-t}(e,t)}},{key:"appendFrame",value:function(e,t,n){if(null!==this.basePTS)return jr(e,t,n,this.basePTS,this.frameIndex)}}],[{key:"probe",value:function(e){if(!e)return!1;var t=se(e,0),n=(null==t?void 0:t.length)||0;if(t&&11===e[n]&&119===e[n+1]&&void 0!==le(t)&&Ir(e,n)<=16)return!1;for(var r=e.length;n<r;n++)if(Pr(e,n))return P.log("MPEG Audio sync word found !"),!0;return!1}}])}(dr),remux:ei}];ai.splice(2,0,{demux:Rr,remux:ei});var si=function(){return O((function e(t,n,r,i,o){_(this,e),this.async=!1,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.vendor=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=t,this.typeSupported=n,this.config=r,this.vendor=i,this.id=o}),[{key:"configure",value:function(e){this.transmuxConfig=e,this.decrypter&&this.decrypter.reset()}},{key:"push",value:function(e,t,n,r){var i=this,o=n.transmuxing;o.executeStart=Qr();var a=new Uint8Array(e),s=this.currentTransmuxState,u=this.transmuxConfig;r&&(this.currentTransmuxState=r);var c=r||s,l=c.contiguous,f=c.discontinuity,d=c.trackSwitch,p=c.accurateTimeOffset,h=c.timeOffset,v=c.initSegmentChange,g=u.audioCodec,y=u.videoCodec,b=u.defaultInitPts,x=u.duration,_=u.initSegmentData,O=function(e,t){var n=null;return e.byteLength>0&&null!=(null==t?void 0:t.key)&&null!==t.iv&&null!=t.method&&(n=t),n}(a,t);if(O&&"AES-128"===O.method){var k=this.getDecrypter();if(!k.isSync())return this.decryptionPromise=k.webCryptoDecrypt(a,O.key.buffer,O.iv.buffer).then((function(e){var t=i.push(e,null,n);return i.decryptionPromise=null,t})),this.decryptionPromise;var E=k.softwareDecrypt(a,O.key.buffer,O.iv.buffer);if(n.part>-1&&(E=k.flush()),!E)return o.executeEnd=Qr(),ui(n);a=new Uint8Array(E)}var j=this.needsProbing(f,d);if(j){var T=this.configureTransmuxer(a);if(T)return P.warn("[transmuxer] "+T.message),this.observer.emit(m.ERROR,m.ERROR,{type:w.MEDIA_ERROR,details:S.FRAG_PARSING_ERROR,fatal:!1,error:T,reason:T.message}),o.executeEnd=Qr(),ui(n)}(f||d||v||j)&&this.resetInitSegment(_,g,y,x,t),(f||v||j)&&this.resetInitialTimestamp(b),l||this.resetContiguity();var C=this.transmux(a,O,h,p,n),A=this.currentTransmuxState;return A.contiguous=!0,A.discontinuity=!1,A.trackSwitch=!1,o.executeEnd=Qr(),C}},{key:"flush",value:function(e){var t=this,n=e.transmuxing;n.executeStart=Qr();var r=this.decrypter,i=this.currentTransmuxState,o=this.decryptionPromise;if(o)return o.then((function(){return t.flush(e)}));var a=[],s=i.timeOffset;if(r){var u=r.flush();u&&a.push(this.push(u,null,e))}var c=this.demuxer,l=this.remuxer;if(!c||!l)return n.executeEnd=Qr(),[ui(e)];var f=c.flush(s);return ci(f)?f.then((function(n){return t.flushRemux(a,n,e),a})):(this.flushRemux(a,f,e),a)}},{key:"flushRemux",value:function(e,t,n){var r=t.audioTrack,i=t.videoTrack,o=t.id3Track,a=t.textTrack,s=this.currentTransmuxState,u=s.accurateTimeOffset,c=s.timeOffset;P.log("[transmuxer.ts]: Flushed fragment ".concat(n.sn).concat(n.part>-1?" p: "+n.part:""," of level ").concat(n.level));var l=this.remuxer.remux(r,i,o,a,c,u,!0,this.id);e.push({remuxResult:l,chunkMeta:n}),n.transmuxing.executeEnd=Qr()}},{key:"resetInitialTimestamp",value:function(e){var t=this.demuxer,n=this.remuxer;t&&n&&(t.resetTimeStamp(e),n.resetTimeStamp(e))}},{key:"resetContiguity",value:function(){var e=this.demuxer,t=this.remuxer;e&&t&&(e.resetContiguity(),t.resetNextTimestamp())}},{key:"resetInitSegment",value:function(e,t,n,r,i){var o=this.demuxer,a=this.remuxer;o&&a&&(o.resetInitSegment(e,t,n,r),a.resetInitSegment(e,t,n,i))}},{key:"destroy",value:function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}},{key:"transmux",value:function(e,t,n,r,i){return t&&"SAMPLE-AES"===t.method?this.transmuxSampleAes(e,t,n,r,i):this.transmuxUnencrypted(e,n,r,i)}},{key:"transmuxUnencrypted",value:function(e,t,n,r){var i=this.demuxer.demux(e,t,!1,!this.config.progressive),o=i.audioTrack,a=i.videoTrack,s=i.id3Track,u=i.textTrack;return{remuxResult:this.remuxer.remux(o,a,s,u,t,n,!1,this.id),chunkMeta:r}}},{key:"transmuxSampleAes",value:function(e,t,n,r,i){var o=this;return this.demuxer.demuxSampleAes(e,t,n).then((function(e){return{remuxResult:o.remuxer.remux(e.audioTrack,e.videoTrack,e.id3Track,e.textTrack,n,r,!1,o.id),chunkMeta:i}}))}},{key:"configureTransmuxer",value:function(e){for(var t,n=this.config,r=this.observer,i=this.typeSupported,o=this.vendor,a=0,s=ai.length;a<s;a++){var u;if(null!=(u=ai[a].demux)&&u.probe(e)){t=ai[a];break}}if(!t)return new Error("Failed to find demuxer by probing fragment data");var c=this.demuxer,l=this.remuxer,f=t.remux,d=t.demux;l&&l instanceof f||(this.remuxer=new f(r,n,i,o)),c&&c instanceof d||(this.demuxer=new d(r,n,i),this.probe=d.probe)}},{key:"needsProbing",value:function(e,t){return!this.demuxer||!this.remuxer||e||t}},{key:"getDecrypter",value:function(){var e=this.decrypter;return e||(e=this.decrypter=new Xn(this.config)),e}}])}(),ui=function(e){return{remuxResult:{},chunkMeta:e}};function ci(e){return"then"in e&&e.then instanceof Function}var li=O((function e(t,n,r,i,o){_(this,e),this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=t,this.videoCodec=n,this.initSegmentData=r,this.duration=i,this.defaultInitPts=o||null})),fi=O((function e(t,n,r,i,o,a){_(this,e),this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=t,this.contiguous=n,this.accurateTimeOffset=r,this.trackSwitch=i,this.timeOffset=o,this.initSegmentChange=a})),di={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,r,o,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new i(r,o||e,a),u=n?n+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],s]:e._events[u].push(s):(e._events[u]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,a=new Array(o);i<o;i++)a[i]=r[i].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,i,o,a){var s=n?n+e:e;if(!this._events[s])return!1;var u,c,l=this._events[s],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,r),!0;case 4:return l.fn.call(l.context,t,r,i),!0;case 5:return l.fn.call(l.context,t,r,i,o),!0;case 6:return l.fn.call(l.context,t,r,i,o,a),!0}for(c=1,u=new Array(f-1);c<f;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var d,p=l.length;for(c=0;c<p;c++)switch(l[c].once&&this.removeListener(e,l[c].fn,void 0,!0),f){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,t);break;case 3:l[c].fn.call(l[c].context,t,r);break;case 4:l[c].fn.call(l[c].context,t,r,i);break;default:if(!u)for(d=1,u=new Array(f-1);d<f;d++)u[d-1]=arguments[d];l[c].fn.apply(l[c].context,u)}}return!0},s.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,i){var o=n?n+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var s=this._events[o];if(s.fn)s.fn!==t||i&&!s.once||r&&s.context!==r||a(this,o);else{for(var u=0,c=[],l=s.length;u<l;u++)(s[u].fn!==t||i&&!s[u].once||r&&s[u].context!==r)&&c.push(s[u]);c.length?this._events[o]=1===c.length?c[0]:c:a(this,o)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s}(di);var pi=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(di.exports),hi=function(){return O((function e(t,n,r,i){var o=this;_(this,e),this.error=null,this.hls=void 0,this.id=void 0,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.onwmsg=void 0,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0;var a=t.config;this.hls=t,this.id=n,this.useWorker=!!a.enableWorker,this.onTransmuxComplete=r,this.onFlush=i;var s=function(e,t){(t=t||{}).frag=o.frag,t.id=o.id,e===m.ERROR&&(o.error=t.error),o.hls.trigger(e,t)};this.observer=new pi,this.observer.on(m.FRAG_DECRYPTED,s),this.observer.on(m.ERROR,s);var u=Je(a.preferManagedMediaSource)||{isTypeSupported:function(){return!1}},c={mpeg:u.isTypeSupported("audio/mpeg"),mp3:u.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:u.isTypeSupported('audio/mp4; codecs="ac-3"')};if(!this.useWorker||"undefined"==typeof Worker||!a.workerPath&&"function"!=typeof __HLS_WORKER_BUNDLE__)this.transmuxer=new si(this.observer,c,a,"",n);else try{a.workerPath?(P.log("loading Web Worker ".concat(a.workerPath,' for "').concat(n,'"')),this.workerContext=function(e){var t=new self.URL(e,self.location.href).href;return{worker:new self.Worker(t),scriptURL:t}}(a.workerPath)):(P.log('injecting Web Worker for "'.concat(n,'"')),this.workerContext=function(){var e=new self.Blob(["var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(".concat(__HLS_WORKER_BUNDLE__.toString(),")(true);")],{type:"text/javascript"}),t=self.URL.createObjectURL(e);return{worker:new self.Worker(t),objectURL:t}}()),this.onwmsg=function(e){return o.onWorkerMessage(e)};var l=this.workerContext.worker;l.addEventListener("message",this.onwmsg),l.onerror=function(e){var t=new Error("".concat(e.message," (").concat(e.filename,":").concat(e.lineno,")"));a.enableWorker=!1,P.warn('Error in "'.concat(n,'" Web Worker, fallback to inline')),o.hls.trigger(m.ERROR,{type:w.OTHER_ERROR,details:S.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:t})},l.postMessage({cmd:"init",typeSupported:c,vendor:"",id:n,config:JSON.stringify(a)})}catch(t){P.warn('Error setting up "'.concat(n,'" Web Worker, fallback to inline'),t),this.resetWorker(),this.error=null,this.transmuxer=new si(this.observer,c,a,"",n)}}),[{key:"resetWorker",value:function(){if(this.workerContext){var e=this.workerContext,t=e.worker,n=e.objectURL;n&&self.URL.revokeObjectURL(n),t.removeEventListener("message",this.onwmsg),t.onerror=null,t.terminate(),this.workerContext=null}}},{key:"destroy",value:function(){if(this.workerContext)this.resetWorker(),this.onwmsg=void 0;else{var e=this.transmuxer;e&&(e.destroy(),this.transmuxer=null)}var t=this.observer;t&&t.removeAllListeners(),this.frag=null,this.observer=null,this.hls=null}},{key:"push",value:function(e,t,n,r,i,o,a,s,u,c){var l,f,d=this;u.transmuxing.start=self.performance.now();var p=this.transmuxer,h=o?o.start:i.start,v=i.decryptdata,g=this.frag,m=!(g&&i.cc===g.cc),y=!(g&&u.level===g.level),b=g?u.sn-g.sn:-1,x=this.part?u.part-this.part.index:-1,w=0===b&&u.id>1&&u.id===(null==g?void 0:g.stats.chunkCount),_=!y&&(1===b||0===b&&(1===x||w&&x<=0)),S=self.performance.now();(y||b||0===i.stats.parsing.start)&&(i.stats.parsing.start=S),!o||!x&&_||(o.stats.parsing.start=S);var O=!(g&&(null==(l=i.initSegment)?void 0:l.url)===(null==(f=g.initSegment)?void 0:f.url)),k=new fi(m,_,s,y,h,O);if(!_||m||O){P.log("[transmuxer-interface, ".concat(i.type,"]: Starting new transmux session for sn: ").concat(u.sn," p: ").concat(u.part," level: ").concat(u.level," id: ").concat(u.id,"\n discontinuity: ").concat(m,"\n trackSwitch: ").concat(y,"\n contiguous: ").concat(_,"\n accurateTimeOffset: ").concat(s,"\n timeOffset: ").concat(h,"\n initSegmentChange: ").concat(O));var E=new li(n,r,t,a,c);this.configureTransmuxer(E)}if(this.frag=i,this.part=o,this.workerContext)this.workerContext.worker.postMessage({cmd:"demux",data:e,decryptdata:v,chunkMeta:u,state:k},e instanceof ArrayBuffer?[e]:[]);else if(p){var j=p.push(e,v,u,k);ci(j)?(p.async=!0,j.then((function(e){d.handleTransmuxComplete(e)})).catch((function(e){d.transmuxerError(e,u,"transmuxer-interface push error")}))):(p.async=!1,this.handleTransmuxComplete(j))}}},{key:"flush",value:function(e){var t=this;e.transmuxing.start=self.performance.now();var n=this.transmuxer;if(this.workerContext)this.workerContext.worker.postMessage({cmd:"flush",chunkMeta:e});else if(n){var r=n.flush(e);ci(r)||n.async?(ci(r)||(r=Promise.resolve(r)),r.then((function(n){t.handleFlushResult(n,e)})).catch((function(n){t.transmuxerError(n,e,"transmuxer-interface flush error")}))):this.handleFlushResult(r,e)}}},{key:"transmuxerError",value:function(e,t,n){this.hls&&(this.error=e,this.hls.trigger(m.ERROR,{type:w.MEDIA_ERROR,details:S.FRAG_PARSING_ERROR,chunkMeta:t,frag:this.frag||void 0,fatal:!1,error:e,err:e,reason:n}))}},{key:"handleFlushResult",value:function(e,t){var n=this;e.forEach((function(e){n.handleTransmuxComplete(e)})),this.onFlush(t)}},{key:"onWorkerMessage",value:function(e){var t=e.data;if(null!=t&&t.event){var n=this.hls;if(this.hls)switch(t.event){case"init":var r,i=null==(r=this.workerContext)?void 0:r.objectURL;i&&self.URL.revokeObjectURL(i);break;case"transmuxComplete":this.handleTransmuxComplete(t.data);break;case"flush":this.onFlush(t.data);break;case"workerLog":P[t.data.logType]&&P[t.data.logType](t.data.message);break;default:t.data=t.data||{},t.data.frag=this.frag,t.data.id=this.id,n.trigger(t.event,t.data)}}else P.warn("worker message received with no "+(t?"event name":"data"))}},{key:"configureTransmuxer",value:function(e){var t=this.transmuxer;this.workerContext?this.workerContext.worker.postMessage({cmd:"configure",config:e}):t&&t.configure(e)}},{key:"handleTransmuxComplete",value:function(e){e.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(e)}}])}();function vi(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!gi(e[n].attrs,t[n].attrs))return!1;return!0}function gi(e,t,n){var r=e["STABLE-RENDITION-ID"];return r&&!n?r===t["STABLE-RENDITION-ID"]:!(n||["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED","ASSOC-LANGUAGE"]).some((function(n){return e[n]!==t[n]}))}function mi(e,t){return t.label.toLowerCase()===e.name.toLowerCase()&&(!t.language||t.language.toLowerCase()===(e.lang||"").toLowerCase())}var yi=function(e){function t(e,n,r){var i;return _(this,t),(i=g(this,t,[e,n,r,"[audio-stream-controller]",jt.AUDIO])).videoBuffer=null,i.videoTrackCC=-1,i.waitingVideoCC=-1,i.bufferedTrack=null,i.switchingTrack=null,i.trackId=-1,i.waitingData=null,i.mainDetails=null,i.flushing=!1,i.bufferFlushed=!1,i.cachedTrackLoadedData=null,i._registerListeners(),i}return x(t,e),O(t,[{key:"onHandlerDestroying",value:function(){this._unregisterListeners(),d(b(t.prototype),"onHandlerDestroying",this).call(this),this.mainDetails=null,this.bufferedTrack=null,this.switchingTrack=null}},{key:"_registerListeners",value:function(){var e=this.hls;e.on(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.LEVEL_LOADED,this.onLevelLoaded,this),e.on(m.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.on(m.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(m.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(m.ERROR,this.onError,this),e.on(m.BUFFER_RESET,this.onBufferReset,this),e.on(m.BUFFER_CREATED,this.onBufferCreated,this),e.on(m.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(m.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(m.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(m.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"_unregisterListeners",value:function(){var e=this.hls;e.off(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.LEVEL_LOADED,this.onLevelLoaded,this),e.off(m.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.off(m.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(m.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(m.ERROR,this.onError,this),e.off(m.BUFFER_RESET,this.onBufferReset,this),e.off(m.BUFFER_CREATED,this.onBufferCreated,this),e.off(m.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(m.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(m.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(m.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"onInitPtsFound",value:function(e,t){var n=t.frag,r=t.id,i=t.initPTS,o=t.timescale;if("main"===r){var a=n.cc;this.initPTS[n.cc]={baseTime:i,timescale:o},this.log("InitPTS for cc: ".concat(a," found from main: ").concat(i)),this.videoTrackCC=a,this.state===sr&&this.tick()}}},{key:"startLoad",value:function(e){if(!this.levels)return this.startPosition=e,void(this.state=Qn);var t=this.lastCurrentTime;this.stopLoad(),this.setInterval(100),t>0&&-1===e?(this.log("Override startPosition with lastCurrentTime @"+t.toFixed(3)),e=t,this.state=Zn):(this.loadedmetadata=!1,this.state=nr),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}},{key:"doTick",value:function(){switch(this.state){case Zn:this.doTickIdle();break;case nr:var e,n=this.levels,r=this.trackId,i=null==n||null==(e=n[r])?void 0:e.details;if(i){if(this.waitForCdnTuneIn(i))break;this.state=sr}break;case tr:var o,a=performance.now(),s=this.retryDate;if(!s||a>=s||null!=(o=this.media)&&o.seeking){var u=this.levels,c=this.trackId;this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded((null==u?void 0:u[c])||null),this.state=Zn}break;case sr:var l=this.waitingData;if(l){var f=l.frag,p=l.part,h=l.cache,v=l.complete;if(void 0!==this.initPTS[f.cc]){this.waitingData=null,this.waitingVideoCC=-1,this.state=er;var g={frag:f,part:p,payload:h.flush(),networkDetails:null};this._handleFragmentLoadProgress(g),v&&d(b(t.prototype),"_handleFragmentLoadComplete",this).call(this,g)}else if(this.videoTrackCC!==this.waitingVideoCC)this.log("Waiting fragment cc (".concat(f.cc,") cancelled because video is at cc ").concat(this.videoTrackCC)),this.clearWaitingFragment();else{var m=this.getLoadPosition(),y=Ln.bufferInfo(this.mediaBuffer,m,this.config.maxBufferHole);fn(y.end,this.config.maxFragLookUpTolerance,f)<0&&(this.log("Waiting fragment cc (".concat(f.cc,") @ ").concat(f.start," cancelled because another fragment at ").concat(y.end," is needed")),this.clearWaitingFragment())}}else this.state=Zn}this.onTickEnd()}},{key:"clearWaitingFragment",value:function(){var e=this.waitingData;e&&(this.fragmentTracker.removeFragment(e.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=Zn)}},{key:"resetLoadingState",value:function(){this.clearWaitingFragment(),d(b(t.prototype),"resetLoadingState",this).call(this)}},{key:"onTickEnd",value:function(){var e=this.media;null!=e&&e.readyState&&(this.lastCurrentTime=e.currentTime)}},{key:"doTickIdle",value:function(){var e=this.hls,t=this.levels,n=this.media,r=this.trackId,i=e.config;if((n||!this.startFragRequested&&i.startFragPrefetch)&&null!=t&&t[r]){var o=t[r],a=o.details;if(!a||a.live&&this.levelLastLoaded!==o||this.waitForCdnTuneIn(a))this.state=nr;else{var s=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&s&&(this.bufferFlushed=!1,this.afterBufferFlushed(s,B,jt.AUDIO));var u=this.getFwdBufferInfo(s,jt.AUDIO);if(null!==u){var c=this.bufferedTrack,l=this.switchingTrack;if(!l&&this._streamEnded(u,a))return e.trigger(m.BUFFER_EOS,{type:"audio"}),void(this.state=or);var f=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,jt.MAIN),d=u.len,p=this.getMaxBufferLength(null==f?void 0:f.len),h=a.fragments,v=h[0].start,g=this.flushing?this.getLoadPosition():u.end;if(l&&n){var y=this.getLoadPosition();c&&!gi(l.attrs,c.attrs)&&(g=y),a.PTSKnown&&y<v&&(u.end>v||u.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),n.currentTime=v+.05)}if(!(d>=p&&!l&&g<h[h.length-1].start)){var b=this.getNextFragment(g,a),x=!1;if(b&&this.isLoopLoading(b,g)&&(x=!!b.gap,b=this.getNextFragmentLoopLoading(b,a,u,jt.MAIN,p)),b){var w=f&&b.start>f.end+a.targetduration;if(w||(null==f||!f.len)&&u.len){var _=this.getAppendedFrag(b.start,jt.MAIN);if(null===_)return;if(x||(x=!!_.gap||!!w&&0===f.len),w&&!x||x&&u.nextStart&&u.nextStart<_.end)return}this.loadFragment(b,o,g)}else this.bufferFlushed=!0}}}}}},{key:"getMaxBufferLength",value:function(e){var n=d(b(t.prototype),"getMaxBufferLength",this).call(this);return e?Math.min(Math.max(n,e),this.config.maxMaxBufferLength):n}},{key:"onMediaDetaching",value:function(){this.videoBuffer=null,this.bufferFlushed=this.flushing=!1,d(b(t.prototype),"onMediaDetaching",this).call(this)}},{key:"onAudioTracksUpdated",value:function(e,t){var n=t.audioTracks;this.resetTransmuxer(),this.levels=n.map((function(e){return new Kt(e)}))}},{key:"onAudioTrackSwitching",value:function(e,t){var n=!!t.url;this.trackId=t.id;var r=this.fragCurrent;r&&(r.abortRequests(),this.removeUnbufferedFrags(r.start)),this.resetLoadingState(),n?this.setInterval(100):this.resetTransmuxer(),n?(this.switchingTrack=t,this.state=Zn,this.flushAudioIfNeeded(t)):(this.switchingTrack=null,this.bufferedTrack=t,this.state=Qn),this.tick()}},{key:"onManifestLoading",value:function(){this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=this.flushing=!1,this.levels=this.mainDetails=this.waitingData=this.bufferedTrack=this.cachedTrackLoadedData=this.switchingTrack=null,this.startFragRequested=!1,this.trackId=this.videoTrackCC=this.waitingVideoCC=-1}},{key:"onLevelLoaded",value:function(e,t){this.mainDetails=t.details,null!==this.cachedTrackLoadedData&&(this.hls.trigger(m.AUDIO_TRACK_LOADED,this.cachedTrackLoadedData),this.cachedTrackLoadedData=null)}},{key:"onAudioTrackLoaded",value:function(e,t){var n;if(null!=this.mainDetails){var r=this.levels,i=t.details,o=t.id;if(r){this.log("Audio track ".concat(o," loaded [").concat(i.startSN,",").concat(i.endSN,"]").concat(i.lastPartSn?"[part-".concat(i.lastPartSn,"-").concat(i.lastPartIndex,"]"):"",",duration:").concat(i.totalduration));var a=r[o],s=0;if(i.live||null!=(n=a.details)&&n.live){this.checkLiveUpdate(i);var u,c=this.mainDetails;if(i.deltaUpdateFailed||!c)return;!a.details&&i.hasProgramDateTime&&c.hasProgramDateTime?(zn(i,c),s=i.fragments[0].start):s=this.alignPlaylists(i,a.details,null==(u=this.levelLastLoaded)?void 0:u.details)}a.details=i,this.levelLastLoaded=a,this.startFragRequested||!this.mainDetails&&i.live||this.setStartPosition(this.mainDetails||i,s),this.state!==nr||this.waitForCdnTuneIn(i)||(this.state=Zn),this.tick()}else this.warn("Audio tracks were reset while loading level "+o)}else this.cachedTrackLoadedData=t}},{key:"_handleFragmentLoadProgress",value:function(e){var t,n=e.frag,r=e.part,i=e.payload,o=this.config,a=this.trackId,s=this.levels;if(s){var u=s[a];if(u){var c=u.details;if(!c)return this.warn("Audio track details undefined on fragment load progress"),void this.removeUnbufferedFrags(n.start);var l=o.defaultAudioCodec||u.audioCodec||"mp4a.40.2",f=this.transmuxer;f||(f=this.transmuxer=new hi(this.hls,jt.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var d=this.initPTS[n.cc],p=null==(t=n.initSegment)?void 0:t.data;if(void 0!==d){var h=r?r.index:-1,v=-1!==h,g=new Nn(n.level,n.sn,n.stats.chunkCount,i.byteLength,h,v);f.push(i,p,l,"",n,r,c.totalduration,!1,g,d)}else this.log("Unknown video PTS for cc ".concat(n.cc,", waiting for video PTS before demuxing audio frag ").concat(n.sn," of [").concat(c.startSN," ,").concat(c.endSN,"],track ").concat(a)),(this.waitingData=this.waitingData||{frag:n,part:r,cache:new lr,complete:!1}).cache.push(new Uint8Array(i)),this.waitingVideoCC=this.videoTrackCC,this.state=sr}else this.warn("Audio track is undefined on fragment load progress")}else this.warn("Audio tracks were reset while fragment load was in progress. Fragment ".concat(n.sn," of level ").concat(n.level," will not be buffered"))}},{key:"_handleFragmentLoadComplete",value:function(e){this.waitingData?this.waitingData.complete=!0:d(b(t.prototype),"_handleFragmentLoadComplete",this).call(this,e)}},{key:"onBufferReset",value:function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1}},{key:"onBufferCreated",value:function(e,t){var n=t.tracks.audio;n&&(this.mediaBuffer=n.buffer||null),t.tracks.video&&(this.videoBuffer=t.tracks.video.buffer||null)}},{key:"onFragBuffered",value:function(e,t){var n=t.frag,r=t.part;if(n.type===jt.AUDIO)if(this.fragContextChanged(n))this.warn("Fragment ".concat(n.sn).concat(r?" p: "+r.index:""," of level ").concat(n.level," finished buffering, but was aborted. state: ").concat(this.state,", audioSwitch: ").concat(this.switchingTrack?this.switchingTrack.name:"false"));else{if("initSegment"!==n.sn){this.fragPrevious=n;var i=this.switchingTrack;i&&(this.bufferedTrack=i,this.switchingTrack=null,this.hls.trigger(m.AUDIO_TRACK_SWITCHED,a({},i)))}this.fragBufferedComplete(n,r)}else if(!this.loadedmetadata&&n.type===jt.MAIN){var o=this.videoBuffer||this.media;o&&Ln.getBuffered(o).length&&(this.loadedmetadata=!0)}}},{key:"onError",value:function(e,n){var r;if(n.fatal)this.state=ar;else switch(n.details){case S.FRAG_GAP:case S.FRAG_PARSING_ERROR:case S.FRAG_DECRYPT_ERROR:case S.FRAG_LOAD_ERROR:case S.FRAG_LOAD_TIMEOUT:case S.KEY_LOAD_ERROR:case S.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(jt.AUDIO,n);break;case S.AUDIO_TRACK_LOAD_ERROR:case S.AUDIO_TRACK_LOAD_TIMEOUT:case S.LEVEL_PARSING_ERROR:n.levelRetry||this.state!==nr||(null==(r=n.context)?void 0:r.type)!==kt||(this.state=Zn);break;case S.BUFFER_APPEND_ERROR:case S.BUFFER_FULL_ERROR:if(!n.parent||"audio"!==n.parent)return;if(n.details===S.BUFFER_APPEND_ERROR)return void this.resetLoadingState();this.reduceLengthAndFlushBuffer(n)&&(this.bufferedTrack=null,d(b(t.prototype),"flushMainBuffer",this).call(this,0,Number.POSITIVE_INFINITY,"audio"));break;case S.INTERNAL_EXCEPTION:this.recoverWorkerError(n)}}},{key:"onBufferFlushing",value:function(e,t){t.type!==U&&(this.flushing=!0)}},{key:"onBufferFlushed",value:function(e,t){var n=t.type;if(n!==U){this.flushing=!1,this.bufferFlushed=!0,this.state===or&&(this.state=Zn);var r=this.mediaBuffer||this.media;r&&(this.afterBufferFlushed(r,n,jt.AUDIO),this.tick())}}},{key:"_handleTransmuxComplete",value:function(e){var t,n="audio",r=this.hls,i=e.remuxResult,o=e.chunkMeta,a=this.getCurrentContext(o);if(a){var s=a.frag,c=a.part,l=a.level,f=l.details,d=i.audio,p=i.text,h=i.id3,v=i.initSegment;if(!this.fragContextChanged(s)&&f){if(this.state=rr,this.switchingTrack&&d&&this.completeAudioSwitch(this.switchingTrack),null!=v&&v.tracks){var g=s.initSegment||s;this._bufferInitSegment(l,v.tracks,g,o),r.trigger(m.FRAG_PARSING_INIT_SEGMENT,{frag:g,id:n,tracks:v.tracks})}if(d){var y=d.startPTS,b=d.endPTS,x=d.startDTS,w=d.endDTS;c&&(c.elementaryStreams[B]={startPTS:y,endPTS:b,startDTS:x,endDTS:w}),s.setElementaryStreamInfo(B,y,b,x,w),this.bufferFragmentData(d,s,c,o)}if(null!=h&&null!=(t=h.samples)&&t.length){var _=u({id:n,frag:s,details:f},h);r.trigger(m.FRAG_PARSING_METADATA,_)}if(p){var S=u({id:n,frag:s,details:f},p);r.trigger(m.FRAG_PARSING_USERDATA,S)}}else this.fragmentTracker.removeFragment(s)}else this.resetWhenMissingContext(o)}},{key:"_bufferInitSegment",value:function(e,t,n,r){if(this.state===rr){t.video&&delete t.video;var i=t.audio;if(i){i.id="audio";var o=e.audioCodec;this.log("Init audio buffer, container:".concat(i.container,", codecs[level/parsed]=[").concat(o,"/").concat(i.codec,"]")),o&&1===o.split(",").length&&(i.levelCodec=o),this.hls.trigger(m.BUFFER_CODECS,t);var a=i.initSegment;if(null!=a&&a.byteLength){var s={type:"audio",frag:n,part:null,chunkMeta:r,parent:n.type,data:a};this.hls.trigger(m.BUFFER_APPENDING,s)}this.tickImmediate()}}}},{key:"loadFragment",value:function(e,n,r){var i,o=this.fragmentTracker.getState(e);if(this.fragCurrent=e,this.switchingTrack||o===Tn||o===An)if("initSegment"===e.sn)this._loadInitSegment(e,n);else if(null!=(i=n.details)&&i.live&&!this.initPTS[e.cc]){this.log("Waiting for video PTS in continuity counter ".concat(e.cc," of live stream before loading audio fragment ").concat(e.sn," of level ").concat(this.trackId)),this.state=sr;var a=this.mainDetails;a&&a.fragments[0].start!==n.details.fragments[0].start&&zn(n.details,a)}else this.startFragRequested=!0,d(b(t.prototype),"loadFragment",this).call(this,e,n,r);else this.clearTrackerIfNeeded(e)}},{key:"flushAudioIfNeeded",value:function(e){var n=this.media,r=this.bufferedTrack,i=null==r?void 0:r.attrs,o=e.attrs;n&&i&&(i.CHANNELS!==o.CHANNELS||r.name!==e.name||r.lang!==e.lang)&&(this.log("Switching audio track : flushing all audio"),d(b(t.prototype),"flushMainBuffer",this).call(this,0,Number.POSITIVE_INFINITY,"audio"),this.bufferedTrack=null)}},{key:"completeAudioSwitch",value:function(e){var t=this.hls;this.flushAudioIfNeeded(e),this.bufferedTrack=e,this.switchingTrack=null,t.trigger(m.AUDIO_TRACK_SWITCHED,a({},e))}}])}(cr),bi=function(e){function t(e){var n;return _(this,t),(n=g(this,t,[e,"[audio-track-controller]"])).tracks=[],n.groupIds=null,n.tracksInGroup=[],n.trackId=-1,n.currentTrack=null,n.selectDefaultTrack=!0,n.registerListeners(),n}return x(t,e),O(t,[{key:"registerListeners",value:function(){var e=this.hls;e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.MANIFEST_PARSED,this.onManifestParsed,this),e.on(m.LEVEL_LOADING,this.onLevelLoading,this),e.on(m.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(m.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(m.ERROR,this.onError,this)}},{key:"unregisterListeners",value:function(){var e=this.hls;e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.MANIFEST_PARSED,this.onManifestParsed,this),e.off(m.LEVEL_LOADING,this.onLevelLoading,this),e.off(m.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(m.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(m.ERROR,this.onError,this)}},{key:"destroy",value:function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,d(b(t.prototype),"destroy",this).call(this)}},{key:"onManifestLoading",value:function(){this.tracks=[],this.tracksInGroup=[],this.groupIds=null,this.currentTrack=null,this.trackId=-1,this.selectDefaultTrack=!0}},{key:"onManifestParsed",value:function(e,t){this.tracks=t.audioTracks||[]}},{key:"onAudioTrackLoaded",value:function(e,t){var n=t.id,r=t.groupId,i=t.details,o=this.tracksInGroup[n];if(o&&o.groupId===r){var a=o.details;o.details=t.details,this.log("Audio track ".concat(n,' "').concat(o.name,'" lang:').concat(o.lang," group:").concat(r," loaded [").concat(i.startSN,"-").concat(i.endSN,"]")),n===this.trackId&&this.playlistLoaded(n,t,a)}else this.warn("Audio track with id:".concat(n," and group:").concat(r," not found in active group ").concat(null==o?void 0:o.groupId))}},{key:"onLevelLoading",value:function(e,t){this.switchLevel(t.level)}},{key:"onLevelSwitching",value:function(e,t){this.switchLevel(t.level)}},{key:"switchLevel",value:function(e){var t=this.hls.levels[e];if(t){var n=t.audioGroups||null,r=this.groupIds,i=this.currentTrack;if(!n||(null==r?void 0:r.length)!==(null==n?void 0:n.length)||null!=n&&n.some((function(e){return-1===(null==r?void 0:r.indexOf(e))}))){this.groupIds=n,this.trackId=-1,this.currentTrack=null;var o=this.tracks.filter((function(e){return!n||-1!==n.indexOf(e.groupId)}));if(o.length)this.selectDefaultTrack&&!o.some((function(e){return e.default}))&&(this.selectDefaultTrack=!1),o.forEach((function(e,t){e.id=t}));else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=o;var a=this.hls.config.audioPreference;if(!i&&a){var s=Sn(a,o,kn);if(s>-1)i=o[s];else{var u=Sn(a,this.tracks);i=this.tracks[u]}}var c=this.findTrackId(i);-1===c&&i&&(c=this.findTrackId(null));var l={audioTracks:o};this.log("Updating audio tracks, ".concat(o.length," track(s) found in group(s): ").concat(null==n?void 0:n.join(","))),this.hls.trigger(m.AUDIO_TRACKS_UPDATED,l);var f=this.trackId;if(-1!==c&&-1===f)this.setAudioTrack(c);else if(o.length&&-1===f){var d,p=new Error("No audio track selected for current audio group-ID(s): ".concat(null==(d=this.groupIds)?void 0:d.join(",")," track count: ").concat(o.length));this.warn(p.message),this.hls.trigger(m.ERROR,{type:w.MEDIA_ERROR,details:S.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:p})}}else this.shouldReloadPlaylist(i)&&this.setAudioTrack(this.trackId)}}},{key:"onError",value:function(e,t){!t.fatal&&t.context&&(t.context.type!==kt||t.context.id!==this.trackId||this.groupIds&&-1===this.groupIds.indexOf(t.context.groupId)||(this.requestScheduled=-1,this.checkRetry(t)))}},{key:"allAudioTracks",get:function(){return this.tracks}},{key:"audioTracks",get:function(){return this.tracksInGroup}},{key:"audioTrack",get:function(){return this.trackId},set:function(e){this.selectDefaultTrack=!1,this.setAudioTrack(e)}},{key:"setAudioOption",value:function(e){var t=this.hls;if(t.config.audioPreference=e,e){var n=this.allAudioTracks;if(this.selectDefaultTrack=!1,n.length){var r=this.currentTrack;if(r&&On(e,r,kn))return r;var i=Sn(e,this.tracksInGroup,kn);if(i>-1){var o=this.tracksInGroup[i];return this.setAudioTrack(i),o}if(r){var a=t.loadLevel;-1===a&&(a=t.firstAutoLevel);var s=function(e,t,n,r,i){var o=t[r],a=t.reduce((function(e,t,n){var r=t.uri;return(e[r]||(e[r]=[])).push(n),e}),{})[o.uri];a.length>1&&(r=Math.max.apply(Math,a));var s=o.videoRange,u=o.frameRate,c=o.codecSet.substring(0,4),l=En(t,r,(function(t){if(t.videoRange!==s||t.frameRate!==u||t.codecSet.substring(0,4)!==c)return!1;var r=t.audioGroups,o=n.filter((function(e){return!r||-1!==r.indexOf(e.groupId)}));return Sn(e,o,i)>-1}));return l>-1?l:En(t,r,(function(t){var r=t.audioGroups,o=n.filter((function(e){return!r||-1!==r.indexOf(e.groupId)}));return Sn(e,o,i)>-1}))}(e,t.levels,n,a,kn);if(-1===s)return null;t.nextLoadLevel=s}if(e.channels||e.audioCodec){var u=Sn(e,n);if(u>-1)return n[u]}}}return null}},{key:"setAudioTrack",value:function(e){var t=this.tracksInGroup;if(e<0||e>=t.length)this.warn("Invalid audio track id: "+e);else{this.clearTimer(),this.selectDefaultTrack=!1;var n=this.currentTrack,r=t[e],i=r.details&&!r.details.live;if(!(e===this.trackId&&r===n&&i||(this.log("Switching to audio-track ".concat(e,' "').concat(r.name,'" lang:').concat(r.lang," group:").concat(r.groupId," channels:").concat(r.channels)),this.trackId=e,this.currentTrack=r,this.hls.trigger(m.AUDIO_TRACK_SWITCHING,a({},r)),i))){var o=this.switchParams(r.url,null==n?void 0:n.details,r.details);this.loadPlaylist(o)}}}},{key:"findTrackId",value:function(e){for(var t=this.tracksInGroup,n=0;n<t.length;n++){var r=t[n];if((!this.selectDefaultTrack||r.default)&&(!e||On(e,r,kn)))return n}if(e){for(var i=e.name,o=e.lang,a=e.assocLang,s=e.characteristics,u=e.audioCodec,c=e.channels,l=0;l<t.length;l++)if(On({name:i,lang:o,assocLang:a,characteristics:s,audioCodec:u,channels:c},t[l],kn))return l;for(var f=0;f<t.length;f++){var d=t[f];if(gi(e.attrs,d.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return f}for(var p=0;p<t.length;p++){var h=t[p];if(gi(e.attrs,h.attrs,["LANGUAGE"]))return p}}return-1}},{key:"loadPlaylist",value:function(e){var n=this.currentTrack;if(this.shouldLoadPlaylist(n)&&n){d(b(t.prototype),"loadPlaylist",this).call(this);var r=n.id,i=n.groupId,o=n.url;if(e)try{o=e.addDirectives(o)}catch(e){this.warn("Could not construct new URL with HLS Delivery Directives: "+e)}this.log("loading audio-track playlist ".concat(r,' "').concat(n.name,'" lang:').concat(n.lang," group:").concat(i)),this.clearTimer(),this.hls.trigger(m.AUDIO_TRACK_LOADING,{url:o,id:r,groupId:i,deliveryDirectives:e||null})}}}])}(gn),xi=function(e){function t(e,n,r){var i;return _(this,t),(i=g(this,t,[e,n,r,"[subtitle-stream-controller]",jt.SUBTITLE])).currentTrackId=-1,i.tracksBuffered=[],i.mainDetails=null,i._registerListeners(),i}return x(t,e),O(t,[{key:"onHandlerDestroying",value:function(){this._unregisterListeners(),d(b(t.prototype),"onHandlerDestroying",this).call(this),this.mainDetails=null}},{key:"_registerListeners",value:function(){var e=this.hls;e.on(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.LEVEL_LOADED,this.onLevelLoaded,this),e.on(m.ERROR,this.onError,this),e.on(m.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(m.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(m.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(m.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.on(m.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(m.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"_unregisterListeners",value:function(){var e=this.hls;e.off(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.LEVEL_LOADED,this.onLevelLoaded,this),e.off(m.ERROR,this.onError,this),e.off(m.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(m.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(m.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(m.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.off(m.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(m.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"startLoad",value:function(e){this.stopLoad(),this.state=Zn,this.setInterval(500),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}},{key:"onManifestLoading",value:function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()}},{key:"onMediaDetaching",value:function(){this.tracksBuffered=[],d(b(t.prototype),"onMediaDetaching",this).call(this)}},{key:"onLevelLoaded",value:function(e,t){this.mainDetails=t.details}},{key:"onSubtitleFragProcessed",value:function(e,t){var n=t.frag,r=t.success;if(this.fragPrevious=n,this.state=Zn,r){var i=this.tracksBuffered[this.currentTrackId];if(i){for(var o,a=n.start,s=0;s<i.length;s++)if(a>=i[s].start&&a<=i[s].end){o=i[s];break}var u=n.start+n.duration;o?o.end=u:(o={start:a,end:u},i.push(o)),this.fragmentTracker.fragBuffered(n),this.fragBufferedComplete(n,null)}}}},{key:"onBufferFlushing",value:function(e,t){var n=t.startOffset,r=t.endOffset;if(0===n&&r!==Number.POSITIVE_INFINITY){var i=r-1;if(i<=0)return;t.endOffsetSubtitles=Math.max(0,i),this.tracksBuffered.forEach((function(e){for(var t=0;t<e.length;)if(e[t].end<=i)e.shift();else{if(!(e[t].start<i))break;e[t].start=i,t++}})),this.fragmentTracker.removeFragmentsInRange(n,i,jt.SUBTITLE)}}},{key:"onFragBuffered",value:function(e,t){var n;this.loadedmetadata||t.frag.type!==jt.MAIN||null!=(n=this.media)&&n.buffered.length&&(this.loadedmetadata=!0)}},{key:"onError",value:function(e,t){var n=t.frag;(null==n?void 0:n.type)===jt.SUBTITLE&&(t.details===S.FRAG_GAP&&this.fragmentTracker.fragBuffered(n,!0),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==Qn&&(this.state=Zn))}},{key:"onSubtitleTracksUpdated",value:function(e,t){var n=this,r=t.subtitleTracks;this.levels&&vi(this.levels,r)?this.levels=r.map((function(e){return new Kt(e)})):(this.tracksBuffered=[],this.levels=r.map((function(e){var t=new Kt(e);return n.tracksBuffered[t.id]=[],t})),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,jt.SUBTITLE),this.fragPrevious=null,this.mediaBuffer=null)}},{key:"onSubtitleTrackSwitch",value:function(e,t){var n;if(this.currentTrackId=t.id,null!=(n=this.levels)&&n.length&&-1!==this.currentTrackId){var r=this.levels[this.currentTrackId];null!=r&&r.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,r&&this.setInterval(500)}else this.clearInterval()}},{key:"onSubtitleTrackLoaded",value:function(e,t){var n,r=this.currentTrackId,i=this.levels,o=t.details,a=t.id;if(i){var s=i[a];if(!(a>=i.length)&&s){this.log("Subtitle track ".concat(a," loaded [").concat(o.startSN,",").concat(o.endSN,"]").concat(o.lastPartSn?"[part-".concat(o.lastPartSn,"-").concat(o.lastPartIndex,"]"):"",",duration:").concat(o.totalduration)),this.mediaBuffer=this.mediaBufferTimeRanges;var u=0;if(o.live||null!=(n=s.details)&&n.live){var c=this.mainDetails;if(o.deltaUpdateFailed||!c)return;var l,f=c.fragments[0];s.details?0===(u=this.alignPlaylists(o,s.details,null==(l=this.levelLastLoaded)?void 0:l.details))&&f&&Jt(o,u=f.start):o.hasProgramDateTime&&c.hasProgramDateTime?(zn(o,c),u=o.fragments[0].start):f&&Jt(o,u=f.start)}s.details=o,this.levelLastLoaded=s,a===r&&(this.startFragRequested||!this.mainDetails&&o.live||this.setStartPosition(this.mainDetails||o,u),this.tick(),o.live&&!this.fragCurrent&&this.media&&this.state===Zn)&&(ln(null,o.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),s.details=void 0))}}else this.warn("Subtitle tracks were reset while loading level "+a)}},{key:"_handleFragmentLoadComplete",value:function(e){var t=this,n=e.frag,r=e.payload,i=n.decryptdata,o=this.hls;if(!this.fragContextChanged(n)&&r&&r.byteLength>0&&null!=i&&i.key&&i.iv&&"AES-128"===i.method){var a=performance.now();this.decrypter.decrypt(new Uint8Array(r),i.key.buffer,i.iv.buffer).catch((function(e){throw o.trigger(m.ERROR,{type:w.MEDIA_ERROR,details:S.FRAG_DECRYPT_ERROR,fatal:!1,error:e,reason:e.message,frag:n}),e})).then((function(e){var t=performance.now();o.trigger(m.FRAG_DECRYPTED,{frag:n,payload:e,stats:{tstart:a,tdecrypt:t}})})).catch((function(e){t.warn("".concat(e.name,": ").concat(e.message)),t.state=Zn}))}}},{key:"doTick",value:function(){if(this.media){if(this.state===Zn){var e=this.currentTrackId,t=this.levels,n=null==t?void 0:t[e];if(!n||!t.length||!n.details)return;var r=this.config,i=this.getLoadPosition(),o=Ln.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],i,r.maxBufferHole),a=o.end,s=o.len,u=this.getFwdBufferInfo(this.media,jt.MAIN),c=n.details;if(s>this.getMaxBufferLength(null==u?void 0:u.len)+c.levelTargetDuration)return;var l=c.fragments,f=l.length,d=c.edge,p=null,h=this.fragPrevious;if(a<d){var v=r.maxFragLookUpTolerance,g=a>d-v?0:v;!(p=ln(h,l,Math.max(l[0].start,a),g))&&h&&h.start<l[0].start&&(p=l[0])}else p=l[f-1];if(!p)return;if("initSegment"!==(p=this.mapToInitFragWhenRequired(p)).sn){var m=l[p.sn-c.startSN-1];m&&m.cc===p.cc&&this.fragmentTracker.getState(m)===Tn&&(p=m)}this.fragmentTracker.getState(p)===Tn&&this.loadFragment(p,n,a)}}else this.state=Zn}},{key:"getMaxBufferLength",value:function(e){var n=d(b(t.prototype),"getMaxBufferLength",this).call(this);return e?Math.max(n,e):n}},{key:"loadFragment",value:function(e,n,r){this.fragCurrent=e,"initSegment"===e.sn?this._loadInitSegment(e,n):(this.startFragRequested=!0,d(b(t.prototype),"loadFragment",this).call(this,e,n,r))}},{key:"mediaBufferTimeRanges",get:function(){return new wi(this.tracksBuffered[this.currentTrackId]||[])}}])}(cr),wi=O((function e(t){_(this,e),this.buffered=void 0;var n=function(e,n,r){if((n>>>=0)>r-1)throw new DOMException("Failed to execute '".concat(e,"' on 'TimeRanges': The index provided (").concat(n,") is greater than the maximum bound (").concat(r,")"));return t[n][e]};this.buffered={get length(){return t.length},end:function(e){return n("end",e,t.length)},start:function(e){return n("start",e,t.length)}}})),_i=function(e){function t(e){var n;return _(this,t),(n=g(this,t,[e,"[subtitle-track-controller]"])).media=null,n.tracks=[],n.groupIds=null,n.tracksInGroup=[],n.trackId=-1,n.currentTrack=null,n.selectDefaultTrack=!0,n.queuedDefaultTrack=-1,n.asyncPollTrackChange=function(){return n.pollTrackChange(0)},n.useTextTrackPolling=!1,n.subtitlePollingInterval=-1,n._subtitleDisplay=!0,n.onTextTracksChanged=function(){if(n.useTextTrackPolling||self.clearInterval(n.subtitlePollingInterval),n.media&&n.hls.config.renderTextTracksNatively){for(var e=null,t=Dt(n.media.textTracks),r=0;r<t.length;r++)if("hidden"===t[r].mode)e=t[r];else if("showing"===t[r].mode){e=t[r];break}var i=n.findTrackForTextTrack(e);n.subtitleTrack!==i&&n.setSubtitleTrack(i)}},n.registerListeners(),n}return x(t,e),O(t,[{key:"destroy",value:function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,this.onTextTracksChanged=this.asyncPollTrackChange=null,d(b(t.prototype),"destroy",this).call(this)}},{key:"subtitleDisplay",get:function(){return this._subtitleDisplay},set:function(e){this._subtitleDisplay=e,this.trackId>-1&&this.toggleTrackModes()}},{key:"registerListeners",value:function(){var e=this.hls;e.on(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.MANIFEST_PARSED,this.onManifestParsed,this),e.on(m.LEVEL_LOADING,this.onLevelLoading,this),e.on(m.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(m.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(m.ERROR,this.onError,this)}},{key:"unregisterListeners",value:function(){var e=this.hls;e.off(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.MANIFEST_PARSED,this.onManifestParsed,this),e.off(m.LEVEL_LOADING,this.onLevelLoading,this),e.off(m.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(m.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(m.ERROR,this.onError,this)}},{key:"onMediaAttached",value:function(e,t){this.media=t.media,this.media&&(this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange))}},{key:"pollTrackChange",value:function(e){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.onTextTracksChanged,e)}},{key:"onMediaDetaching",value:function(){this.media&&(self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||this.media.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),Dt(this.media.textTracks).forEach((function(e){It(e)})),this.subtitleTrack=-1,this.media=null)}},{key:"onManifestLoading",value:function(){this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0}},{key:"onManifestParsed",value:function(e,t){this.tracks=t.subtitleTracks}},{key:"onSubtitleTrackLoaded",value:function(e,t){var n=t.id,r=t.groupId,i=t.details,o=this.tracksInGroup[n];if(o&&o.groupId===r){var a=o.details;o.details=t.details,this.log("Subtitle track ".concat(n,' "').concat(o.name,'" lang:').concat(o.lang," group:").concat(r," loaded [").concat(i.startSN,"-").concat(i.endSN,"]")),n===this.trackId&&this.playlistLoaded(n,t,a)}else this.warn("Subtitle track with id:".concat(n," and group:").concat(r," not found in active group ").concat(null==o?void 0:o.groupId))}},{key:"onLevelLoading",value:function(e,t){this.switchLevel(t.level)}},{key:"onLevelSwitching",value:function(e,t){this.switchLevel(t.level)}},{key:"switchLevel",value:function(e){var t=this.hls.levels[e];if(t){var n=t.subtitleGroups||null,r=this.groupIds,i=this.currentTrack;if(!n||(null==r?void 0:r.length)!==(null==n?void 0:n.length)||null!=n&&n.some((function(e){return-1===(null==r?void 0:r.indexOf(e))}))){this.groupIds=n,this.trackId=-1,this.currentTrack=null;var o=this.tracks.filter((function(e){return!n||-1!==n.indexOf(e.groupId)}));if(o.length)this.selectDefaultTrack&&!o.some((function(e){return e.default}))&&(this.selectDefaultTrack=!1),o.forEach((function(e,t){e.id=t}));else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=o;var a=this.hls.config.subtitlePreference;if(!i&&a){this.selectDefaultTrack=!1;var s=Sn(a,o);if(s>-1)i=o[s];else{var u=Sn(a,this.tracks);i=this.tracks[u]}}var c=this.findTrackId(i);-1===c&&i&&(c=this.findTrackId(null));var l={subtitleTracks:o};this.log("Updating subtitle tracks, ".concat(o.length,' track(s) found in "').concat(null==n?void 0:n.join(","),'" group-id')),this.hls.trigger(m.SUBTITLE_TRACKS_UPDATED,l),-1!==c&&-1===this.trackId&&this.setSubtitleTrack(c)}else this.shouldReloadPlaylist(i)&&this.setSubtitleTrack(this.trackId)}}},{key:"findTrackId",value:function(e){for(var t=this.tracksInGroup,n=this.selectDefaultTrack,r=0;r<t.length;r++){var i=t[r];if((!n||i.default)&&(n||e)&&(!e||On(i,e)))return r}if(e){for(var o=0;o<t.length;o++){var a=t[o];if(gi(e.attrs,a.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return o}for(var s=0;s<t.length;s++){var u=t[s];if(gi(e.attrs,u.attrs,["LANGUAGE"]))return s}}return-1}},{key:"findTrackForTextTrack",value:function(e){if(e)for(var t=this.tracksInGroup,n=0;n<t.length;n++)if(mi(t[n],e))return n;return-1}},{key:"onError",value:function(e,t){!t.fatal&&t.context&&(t.context.type!==Et||t.context.id!==this.trackId||this.groupIds&&-1===this.groupIds.indexOf(t.context.groupId)||this.checkRetry(t))}},{key:"allSubtitleTracks",get:function(){return this.tracks}},{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(e){this.selectDefaultTrack=!1,this.setSubtitleTrack(e)}},{key:"setSubtitleOption",value:function(e){if(this.hls.config.subtitlePreference=e,e){var t=this.allSubtitleTracks;if(this.selectDefaultTrack=!1,t.length){var n=this.currentTrack;if(n&&On(e,n))return n;var r=Sn(e,this.tracksInGroup);if(r>-1){var i=this.tracksInGroup[r];return this.setSubtitleTrack(r),i}if(n)return null;var o=Sn(e,t);if(o>-1)return t[o]}}return null}},{key:"loadPlaylist",value:function(e){d(b(t.prototype),"loadPlaylist",this).call(this);var n=this.currentTrack;if(this.shouldLoadPlaylist(n)&&n){var r=n.id,i=n.groupId,o=n.url;if(e)try{o=e.addDirectives(o)}catch(e){this.warn("Could not construct new URL with HLS Delivery Directives: "+e)}this.log("Loading subtitle playlist for id "+r),this.hls.trigger(m.SUBTITLE_TRACK_LOADING,{url:o,id:r,groupId:i,deliveryDirectives:e||null})}}},{key:"toggleTrackModes",value:function(){var e=this.media;if(e){var t,n=Dt(e.textTracks),r=this.currentTrack;if(r&&((t=n.filter((function(e){return mi(r,e)}))[0])||this.warn('Unable to find subtitle TextTrack with name "'.concat(r.name,'" and language "').concat(r.lang,'"'))),[].slice.call(n).forEach((function(e){"disabled"!==e.mode&&e!==t&&(e.mode="disabled")})),t){var i=this.subtitleDisplay?"showing":"hidden";t.mode!==i&&(t.mode=i)}}}},{key:"setSubtitleTrack",value:function(e){var t=this.tracksInGroup;if(this.media)if(e<-1||e>=t.length||!f(e))this.warn("Invalid subtitle track id: "+e);else{this.clearTimer(),this.selectDefaultTrack=!1;var n=this.currentTrack,r=t[e]||null;if(this.trackId=e,this.currentTrack=r,this.toggleTrackModes(),r){var i=!!r.details&&!r.details.live;if(e!==this.trackId||r!==n||!i){this.log("Switching to subtitle-track "+e+(r?' "'.concat(r.name,'" lang:').concat(r.lang," group:").concat(r.groupId):""));var o=r.id,a=r.groupId,s=void 0===a?"":a,u=r.name,c=r.type,l=r.url;this.hls.trigger(m.SUBTITLE_TRACK_SWITCH,{id:o,groupId:s,name:u,type:c,url:l});var d=this.switchParams(r.url,null==n?void 0:n.details,r.details);this.loadPlaylist(d)}}else this.hls.trigger(m.SUBTITLE_TRACK_SWITCH,{id:e})}else this.queuedDefaultTrack=e}}])}(gn),Si=function(){return O((function e(t){_(this,e),this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=t}),[{key:"append",value:function(e,t,n){var r=this.queues[t];r.push(e),1!==r.length||n||this.executeNext(t)}},{key:"insertAbort",value:function(e,t){this.queues[t].unshift(e),this.executeNext(t)}},{key:"appendBlocker",value:function(e){var t,n=new Promise((function(e){t=e})),r={execute:t,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(r,e),n}},{key:"executeNext",value:function(e){var t=this.queues[e];if(t.length){var n=t[0];try{n.execute()}catch(t){P.warn('[buffer-operation-queue]: Exception executing "'.concat(e,'" SourceBuffer operation: ').concat(t)),n.onError(t);var r=this.buffers[e];null!=r&&r.updating||this.shiftAndExecuteNext(e)}}}},{key:"shiftAndExecuteNext",value:function(e){this.queues[e].shift(),this.executeNext(e)}},{key:"current",value:function(e){return this.queues[e][0]}}])}(),Oi=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,ki=function(){return O((function e(t){var n=this;_(this,e),this.details=null,this._objectUrl=null,this.operationQueue=void 0,this.listeners=void 0,this.hls=void 0,this.bufferCodecEventsExpected=0,this._bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.appendSource=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.tracks={},this.pendingTracks={},this.sourceBuffer=void 0,this.log=void 0,this.warn=void 0,this.error=void 0,this._onEndStreaming=function(e){n.hls&&n.hls.pauseBuffering()},this._onStartStreaming=function(e){n.hls&&n.hls.resumeBuffering()},this._onMediaSourceOpen=function(){var e=n.media,t=n.mediaSource;n.log("Media source opened"),e&&(e.removeEventListener("emptied",n._onMediaEmptied),n.updateMediaElementDuration(),n.hls.trigger(m.MEDIA_ATTACHED,{media:e,mediaSource:t})),t&&t.removeEventListener("sourceopen",n._onMediaSourceOpen),n.checkPendingTracks()},this._onMediaSourceClose=function(){n.log("Media source closed")},this._onMediaSourceEnded=function(){n.log("Media source ended")},this._onMediaEmptied=function(){var e=n.mediaSrc,t=n._objectUrl;e!==t&&P.error("Media element src was set while attaching MediaSource (".concat(t," > ").concat(e,")"))},this.hls=t;var r,i="[buffer-controller]";this.appendSource=(r=Je(t.config.preferManagedMediaSource),"undefined"!=typeof self&&r===self.ManagedMediaSource),this.log=P.log.bind(P,i),this.warn=P.warn.bind(P,i),this.error=P.error.bind(P,i),this._initSourceBuffer(),this.registerListeners()}),[{key:"hasSourceTypes",value:function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0}},{key:"destroy",value:function(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=null,this.hls=null}},{key:"registerListeners",value:function(){var e=this.hls;e.on(m.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.MANIFEST_PARSED,this.onManifestParsed,this),e.on(m.BUFFER_RESET,this.onBufferReset,this),e.on(m.BUFFER_APPENDING,this.onBufferAppending,this),e.on(m.BUFFER_CODECS,this.onBufferCodecs,this),e.on(m.BUFFER_EOS,this.onBufferEos,this),e.on(m.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(m.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(m.FRAG_PARSED,this.onFragParsed,this),e.on(m.FRAG_CHANGED,this.onFragChanged,this)}},{key:"unregisterListeners",value:function(){var e=this.hls;e.off(m.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.MANIFEST_PARSED,this.onManifestParsed,this),e.off(m.BUFFER_RESET,this.onBufferReset,this),e.off(m.BUFFER_APPENDING,this.onBufferAppending,this),e.off(m.BUFFER_CODECS,this.onBufferCodecs,this),e.off(m.BUFFER_EOS,this.onBufferEos,this),e.off(m.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(m.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(m.FRAG_PARSED,this.onFragParsed,this),e.off(m.FRAG_CHANGED,this.onFragChanged,this)}},{key:"_initSourceBuffer",value:function(){this.sourceBuffer={},this.operationQueue=new Si(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]},this.appendErrors={audio:0,video:0,audiovideo:0},this.lastMpegAudioChunk=null}},{key:"onManifestLoading",value:function(){this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=0,this.details=null}},{key:"onManifestParsed",value:function(e,t){var n=2;(t.audio&&!t.video||!t.altAudio)&&(n=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=n,this.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")}},{key:"onMediaAttaching",value:function(e,t){var n=this.media=t.media,r=Je(this.appendSource);if(n&&r){var i,o=this.mediaSource=new r;this.log("created media source: "+(null==(i=o.constructor)?void 0:i.name)),o.addEventListener("sourceopen",this._onMediaSourceOpen),o.addEventListener("sourceended",this._onMediaSourceEnded),o.addEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(o.addEventListener("startstreaming",this._onStartStreaming),o.addEventListener("endstreaming",this._onEndStreaming));var a=this._objectUrl=self.URL.createObjectURL(o);if(this.appendSource)try{n.removeAttribute("src");var s=self.ManagedMediaSource;n.disableRemotePlayback=n.disableRemotePlayback||s&&o instanceof s,Ei(n),function(e,t){var n=self.document.createElement("source");n.type="video/mp4",n.src=t,e.appendChild(n)}(n,a),n.load()}catch(e){n.src=a}else n.src=a;n.addEventListener("emptied",this._onMediaEmptied)}}},{key:"onMediaDetaching",value:function(){var e=this.media,t=this.mediaSource,n=this._objectUrl;if(t){if(this.log("media source detaching"),"open"===t.readyState)try{t.endOfStream()}catch(e){this.warn("onMediaDetaching: ".concat(e.message," while calling endOfStream"))}this.onBufferReset(),t.removeEventListener("sourceopen",this._onMediaSourceOpen),t.removeEventListener("sourceended",this._onMediaSourceEnded),t.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(t.removeEventListener("startstreaming",this._onStartStreaming),t.removeEventListener("endstreaming",this._onEndStreaming)),e&&(e.removeEventListener("emptied",this._onMediaEmptied),n&&self.URL.revokeObjectURL(n),this.mediaSrc===n?(e.removeAttribute("src"),this.appendSource&&Ei(e),e.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={}}this.hls.trigger(m.MEDIA_DETACHED,void 0)}},{key:"onBufferReset",value:function(){var e=this;this.getSourceBufferTypes().forEach((function(t){e.resetBuffer(t)})),this._initSourceBuffer()}},{key:"resetBuffer",value:function(e){var t=this.sourceBuffer[e];try{var n;t&&(this.removeBufferListeners(e),this.sourceBuffer[e]=void 0,null!=(n=this.mediaSource)&&n.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(t))}catch(t){this.warn("onBufferReset "+e,t)}}},{key:"onBufferCodecs",value:function(e,t){var n=this,r=this.getSourceBufferTypes().length,i=Object.keys(t);if(i.forEach((function(e){if(r){var i=n.tracks[e];if(i&&"function"==typeof i.buffer.changeType){var o,a=t[e],s=a.id,u=a.codec,c=a.levelCodec,l=a.container,f=a.metadata,d=ct(i.codec,i.levelCodec),p=null==d?void 0:d.replace(Oi,"$1"),h=ct(u,c),v=null==(o=h)?void 0:o.replace(Oi,"$1");if(h&&p!==v){"audio"===e.slice(0,5)&&(h=ut(h,n.appendSource));var g="".concat(l,";codecs=").concat(h);n.appendChangeType(e,g),n.log("switching codec ".concat(d," to ").concat(h)),n.tracks[e]={buffer:i.buffer,codec:u,container:l,levelCodec:c,metadata:f,id:s}}}}else n.pendingTracks[e]=t[e]})),!r){var o=Math.max(this.bufferCodecEventsExpected-1,0);this.bufferCodecEventsExpected!==o&&(this.log("".concat(o," bufferCodec event(s) expected ").concat(i.join(","))),this.bufferCodecEventsExpected=o),this.mediaSource&&"open"===this.mediaSource.readyState&&this.checkPendingTracks()}}},{key:"appendChangeType",value:function(e,t){var n=this,r=this.operationQueue,i={execute:function(){var i=n.sourceBuffer[e];i&&(n.log("changing ".concat(e," sourceBuffer type to ").concat(t)),i.changeType(t)),r.shiftAndExecuteNext(e)},onStart:function(){},onComplete:function(){},onError:function(t){n.warn("Failed to change ".concat(e," SourceBuffer type"),t)}};r.append(i,e,!!this.pendingTracks[e])}},{key:"onBufferAppending",value:function(e,t){var n=this,r=this.hls,i=this.operationQueue,o=this.tracks,a=t.data,s=t.type,u=t.frag,c=t.part,l=t.chunkMeta,f=l.buffering[s],d=self.performance.now();f.start=d;var p=u.stats.buffering,h=c?c.stats.buffering:null;0===p.start&&(p.start=d),h&&0===h.start&&(h.start=d);var v=o.audio,g=!1;"audio"===s&&"audio/mpeg"===(null==v?void 0:v.container)&&(g=!this.lastMpegAudioChunk||1===l.id||this.lastMpegAudioChunk.sn!==l.sn,this.lastMpegAudioChunk=l);var y=u.start,b={execute:function(){if(f.executeStart=self.performance.now(),g){var e=n.sourceBuffer[s];if(e){var t=y-e.timestampOffset;Math.abs(t)>=.1&&(n.log("Updating audio SourceBuffer timestampOffset to ".concat(y," (delta: ").concat(t,") sn: ").concat(u.sn,")")),e.timestampOffset=y)}}n.appendExecutor(a,s)},onStart:function(){},onComplete:function(){var e=self.performance.now();f.executeEnd=f.end=e,0===p.first&&(p.first=e),h&&0===h.first&&(h.first=e);var t=n.sourceBuffer,r={};for(var i in t)r[i]=Ln.getBuffered(t[i]);n.appendErrors[s]=0,"audio"===s||"video"===s?n.appendErrors.audiovideo=0:(n.appendErrors.audio=0,n.appendErrors.video=0),n.hls.trigger(m.BUFFER_APPENDED,{type:s,frag:u,part:c,chunkMeta:l,parent:u.type,timeRanges:r})},onError:function(e){var t={type:w.MEDIA_ERROR,parent:u.type,details:S.BUFFER_APPEND_ERROR,sourceBufferName:s,frag:u,part:c,chunkMeta:l,error:e,err:e,fatal:!1};if(e.code===DOMException.QUOTA_EXCEEDED_ERR)t.details=S.BUFFER_FULL_ERROR;else{var i=++n.appendErrors[s];t.details=S.BUFFER_APPEND_ERROR,n.warn("Failed ".concat(i,"/").concat(r.config.appendErrorMaxRetry,' times to append segment in "').concat(s,'" sourceBuffer')),i>=r.config.appendErrorMaxRetry&&(t.fatal=!0)}r.trigger(m.ERROR,t)}};i.append(b,s,!!this.pendingTracks[s])}},{key:"onBufferFlushing",value:function(e,t){var n=this,r=this.operationQueue,i=function(e){return{execute:n.removeExecutor.bind(n,e,t.startOffset,t.endOffset),onStart:function(){},onComplete:function(){n.hls.trigger(m.BUFFER_FLUSHED,{type:e})},onError:function(t){n.warn("Failed to remove from ".concat(e," SourceBuffer"),t)}}};t.type?r.append(i(t.type),t.type):this.getSourceBufferTypes().forEach((function(e){r.append(i(e),e)}))}},{key:"onFragParsed",value:function(e,t){var n=this,r=t.frag,i=t.part,o=[],a=i?i.elementaryStreams:r.elementaryStreams;a[z]?o.push("audiovideo"):(a[B]&&o.push("audio"),a[U]&&o.push("video")),0===o.length&&this.warn("Fragments must have at least one ElementaryStreamType set. type: ".concat(r.type," level: ").concat(r.level," sn: ").concat(r.sn)),this.blockBuffers((function(){var e=self.performance.now();r.stats.buffering.end=e,i&&(i.stats.buffering.end=e);var t=i?i.stats:r.stats;n.hls.trigger(m.FRAG_BUFFERED,{frag:r,part:i,stats:t,id:r.type})}),o)}},{key:"onFragChanged",value:function(e,t){this.trimBuffers()}},{key:"onBufferEos",value:function(e,t){var n=this;this.getSourceBufferTypes().reduce((function(e,r){var i=n.sourceBuffer[r];return!i||t.type&&t.type!==r||(i.ending=!0,i.ended||(i.ended=!0,n.log(r+" sourceBuffer now EOS"))),e&&!(i&&!i.ended)}),!0)&&(this.log("Queueing mediaSource.endOfStream()"),this.blockBuffers((function(){n.getSourceBufferTypes().forEach((function(e){var t=n.sourceBuffer[e];t&&(t.ending=!1)}));var e=n.mediaSource;e&&"open"===e.readyState?(n.log("Calling mediaSource.endOfStream()"),e.endOfStream()):e&&n.log("Could not call mediaSource.endOfStream(). mediaSource.readyState: "+e.readyState)})))}},{key:"onLevelUpdated",value:function(e,t){var n=t.details;n.fragments.length&&(this.details=n,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration())}},{key:"trimBuffers",value:function(){var e=this.hls,t=this.details,n=this.media;if(n&&null!==t&&this.getSourceBufferTypes().length){var r=e.config,i=n.currentTime,o=t.levelTargetDuration,a=t.live&&null!==r.liveBackBufferLength?r.liveBackBufferLength:r.backBufferLength;if(f(a)&&a>0){var s=Math.max(a,o),u=Math.floor(i/o)*o-s;this.flushBackBuffer(i,o,u)}if(f(r.frontBufferFlushThreshold)&&r.frontBufferFlushThreshold>0){var c=Math.max(r.maxBufferLength,r.frontBufferFlushThreshold),l=Math.max(c,o),d=Math.floor(i/o)*o+l;this.flushFrontBuffer(i,o,d)}}}},{key:"flushBackBuffer",value:function(e,t,n){var r=this,i=this.details,o=this.sourceBuffer;this.getSourceBufferTypes().forEach((function(a){var s=o[a];if(s){var u=Ln.getBuffered(s);if(u.length>0&&n>u.start(0)){if(r.hls.trigger(m.BACK_BUFFER_REACHED,{bufferEnd:n}),null!=i&&i.live)r.hls.trigger(m.LIVE_BACK_BUFFER_REACHED,{bufferEnd:n});else if(s.ended&&u.end(u.length-1)-e<2*t)return void r.log("Cannot flush ".concat(a," back buffer while SourceBuffer is in ended state"));r.hls.trigger(m.BUFFER_FLUSHING,{startOffset:0,endOffset:n,type:a})}}}))}},{key:"flushFrontBuffer",value:function(e,t,n){var r=this,i=this.sourceBuffer;this.getSourceBufferTypes().forEach((function(o){var a=i[o];if(a){var s=Ln.getBuffered(a),u=s.length;if(u<2)return;var c=s.start(u-1),l=s.end(u-1);if(n>c||e>=c&&e<=l)return;if(a.ended&&e-l<2*t)return void r.log("Cannot flush ".concat(o," front buffer while SourceBuffer is in ended state"));r.hls.trigger(m.BUFFER_FLUSHING,{startOffset:c,endOffset:1/0,type:o})}}))}},{key:"updateMediaElementDuration",value:function(){if(this.details&&this.media&&this.mediaSource&&"open"===this.mediaSource.readyState){var e=this.details,t=this.hls,n=this.media,r=this.mediaSource,i=e.fragments[0].start+e.totalduration,o=n.duration,a=f(r.duration)?r.duration:0;e.live&&t.config.liveDurationInfinity?(r.duration=1/0,this.updateSeekableRange(e)):(i>a&&i>o||!f(o))&&(this.log("Updating Media Source duration to "+i.toFixed(3)),r.duration=i)}}},{key:"updateSeekableRange",value:function(e){var t=this.mediaSource,n=e.fragments;if(n.length&&e.live&&null!=t&&t.setLiveSeekableRange){var r=Math.max(0,n[0].start),i=Math.max(r,r+e.totalduration);this.log("Media Source duration is set to ".concat(t.duration,". Setting seekable range to ").concat(r,"-").concat(i,".")),t.setLiveSeekableRange(r,i)}}},{key:"checkPendingTracks",value:function(){var e=this.bufferCodecEventsExpected,t=this.operationQueue,n=this.pendingTracks,r=Object.keys(n).length;if(r&&(!e||2===r||"audiovideo"in n)){this.createSourceBuffers(n),this.pendingTracks={};var i=this.getSourceBufferTypes();if(i.length)this.hls.trigger(m.BUFFER_CREATED,{tracks:this.tracks}),i.forEach((function(e){t.executeNext(e)}));else{var o=new Error("could not create source buffer for media codec(s)");this.hls.trigger(m.ERROR,{type:w.MEDIA_ERROR,details:S.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:o,reason:o.message})}}}},{key:"createSourceBuffers",value:function(e){var t=this,n=this.sourceBuffer,r=this.mediaSource;if(!r)throw Error("createSourceBuffers called when mediaSource was null");var i,o=function(o){if(!n[o]){var a=e[o];if(!a)throw Error("source buffer exists for track ".concat(o,", however track does not"));var s=-1===(null==(i=a.levelCodec)?void 0:i.indexOf(","))?a.levelCodec:a.codec;s&&"audio"===o.slice(0,5)&&(s=ut(s,t.appendSource));var u="".concat(a.container,";codecs=").concat(s);t.log("creating sourceBuffer(".concat(u,")"));try{var c=n[o]=r.addSourceBuffer(u),l=o;t.addBufferListener(l,"updatestart",t._onSBUpdateStart),t.addBufferListener(l,"updateend",t._onSBUpdateEnd),t.addBufferListener(l,"error",t._onSBUpdateError),t.appendSource&&t.addBufferListener(l,"bufferedchange",(function(e,n){var r=n.removedRanges;null!=r&&r.length&&t.hls.trigger(m.BUFFER_FLUSHED,{type:o})})),t.tracks[o]={buffer:c,codec:s,container:a.container,levelCodec:a.levelCodec,metadata:a.metadata,id:a.id}}catch(e){t.error("error while trying to add sourceBuffer: "+e.message),t.hls.trigger(m.ERROR,{type:w.MEDIA_ERROR,details:S.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:e,sourceBufferName:o,mimeType:u})}}};for(var a in e)o(a)}},{key:"mediaSrc",get:function(){var e,t=(null==(e=this.media)?void 0:e.firstChild)||this.media;return null==t?void 0:t.src}},{key:"_onSBUpdateStart",value:function(e){this.operationQueue.current(e).onStart()}},{key:"_onSBUpdateEnd",value:function(e){var t;if("closed"!==(null==(t=this.mediaSource)?void 0:t.readyState)){var n=this.operationQueue;n.current(e).onComplete(),n.shiftAndExecuteNext(e)}else this.resetBuffer(e)}},{key:"_onSBUpdateError",value:function(e,t){var n,r=new Error("".concat(e," SourceBuffer error. MediaSource readyState: ").concat(null==(n=this.mediaSource)?void 0:n.readyState));this.error(""+r,t),this.hls.trigger(m.ERROR,{type:w.MEDIA_ERROR,details:S.BUFFER_APPENDING_ERROR,sourceBufferName:e,error:r,fatal:!1});var i=this.operationQueue.current(e);i&&i.onError(r)}},{key:"removeExecutor",value:function(e,t,n){var r=this.media,i=this.mediaSource,o=this.operationQueue,a=this.sourceBuffer[e];if(!r||!i||!a)return this.warn("Attempting to remove from the ".concat(e," SourceBuffer, but it does not exist")),void o.shiftAndExecuteNext(e);var s=f(r.duration)?r.duration:1/0,u=f(i.duration)?i.duration:1/0,c=Math.max(0,t),l=Math.min(n,s,u);l>c&&(!a.ending||a.ended)?(a.ended=!1,this.log("Removing [".concat(c,",").concat(l,"] from the ").concat(e," SourceBuffer")),a.remove(c,l)):o.shiftAndExecuteNext(e)}},{key:"appendExecutor",value:function(e,t){var n=this.sourceBuffer[t];if(n)n.ended=!1,n.appendBuffer(e);else if(!this.pendingTracks[t])throw new Error("Attempting to append to the ".concat(t," SourceBuffer, but it does not exist"))}},{key:"blockBuffers",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getSourceBufferTypes();if(!n.length)return this.log("Blocking operation requested, but no SourceBuffers exist"),void Promise.resolve().then(e);var r=this.operationQueue,i=n.map((function(e){return r.appendBlocker(e)}));Promise.all(i).then((function(){e(),n.forEach((function(e){var n=t.sourceBuffer[e];null!=n&&n.updating||r.shiftAndExecuteNext(e)}))}))}},{key:"getSourceBufferTypes",value:function(){return Object.keys(this.sourceBuffer)}},{key:"addBufferListener",value:function(e,t,n){var r=this.sourceBuffer[e];if(r){var i=n.bind(this,e);this.listeners[e].push({event:t,listener:i}),r.addEventListener(t,i)}}},{key:"removeBufferListeners",value:function(e){var t=this.sourceBuffer[e];t&&this.listeners[e].forEach((function(e){t.removeEventListener(e.event,e.listener)}))}}])}();function Ei(e){var t=e.querySelectorAll("source");[].slice.call(t).forEach((function(t){e.removeChild(t)}))}var ji={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},Ti=function(e){return String.fromCharCode(ji[e]||e)},Ci={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},Ai={17:2,18:4,21:6,22:8,23:10,19:13,20:15},Pi={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},Mi={25:2,26:4,29:6,30:8,31:10,27:13,28:15},Ii=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],Ri=function(){return O((function e(){_(this,e),this.time=null,this.verboseLevel=0}),[{key:"log",value:function(e,t){if(this.verboseLevel>=e){var n="function"==typeof t?t():t;P.log("".concat(this.time," [").concat(e,"] ").concat(n))}}}])}(),Di=function(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].toString(16));return t},Li=function(){return O((function e(){_(this,e),this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}),[{key:"reset",value:function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}},{key:"setStyles",value:function(e){for(var t=["foreground","underline","italics","background","flash"],n=0;n<t.length;n++){var r=t[n];e.hasOwnProperty(r)&&(this[r]=e[r])}}},{key:"isDefault",value:function(){return"white"===this.foreground&&!this.underline&&!this.italics&&"black"===this.background&&!this.flash}},{key:"equals",value:function(e){return this.foreground===e.foreground&&this.underline===e.underline&&this.italics===e.italics&&this.background===e.background&&this.flash===e.flash}},{key:"copy",value:function(e){this.foreground=e.foreground,this.underline=e.underline,this.italics=e.italics,this.background=e.background,this.flash=e.flash}},{key:"toString",value:function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash}}])}(),Ni=function(){return O((function e(){_(this,e),this.uchar=" ",this.penState=new Li}),[{key:"reset",value:function(){this.uchar=" ",this.penState.reset()}},{key:"setChar",value:function(e,t){this.uchar=e,this.penState.copy(t)}},{key:"setPenState",value:function(e){this.penState.copy(e)}},{key:"equals",value:function(e){return this.uchar===e.uchar&&this.penState.equals(e.penState)}},{key:"copy",value:function(e){this.uchar=e.uchar,this.penState.copy(e.penState)}},{key:"isEmpty",value:function(){return" "===this.uchar&&this.penState.isDefault()}}])}(),Fi=function(){return O((function e(t){_(this,e),this.chars=[],this.pos=0,this.currPenState=new Li,this.cueStartTime=null,this.logger=void 0;for(var n=0;n<100;n++)this.chars.push(new Ni);this.logger=t}),[{key:"equals",value:function(e){for(var t=0;t<100;t++)if(!this.chars[t].equals(e.chars[t]))return!1;return!0}},{key:"copy",value:function(e){for(var t=0;t<100;t++)this.chars[t].copy(e.chars[t])}},{key:"isEmpty",value:function(){for(var e=!0,t=0;t<100;t++)if(!this.chars[t].isEmpty()){e=!1;break}return e}},{key:"setCursor",value:function(e){this.pos!==e&&(this.pos=e),this.pos<0?(this.logger.log(3,"Negative cursor position "+this.pos),this.pos=0):this.pos>100&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=100)}},{key:"moveCursor",value:function(e){var t=this.pos+e;if(e>1)for(var n=this.pos+1;n<t+1;n++)this.chars[n].setPenState(this.currPenState);this.setCursor(t)}},{key:"backSpace",value:function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)}},{key:"insertChar",value:function(e){var t=this;e>=144&&this.backSpace();var n=Ti(e);this.pos>=100?this.logger.log(0,(function(){return"Cannot insert "+e.toString(16)+" ("+n+") at position "+t.pos+". Skipping it!"})):(this.chars[this.pos].setChar(n,this.currPenState),this.moveCursor(1))}},{key:"clearFromPos",value:function(e){var t;for(t=e;t<100;t++)this.chars[t].reset()}},{key:"clear",value:function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()}},{key:"clearToEndOfRow",value:function(){this.clearFromPos(this.pos)}},{key:"getTextString",value:function(){for(var e=[],t=!0,n=0;n<100;n++){var r=this.chars[n].uchar;" "!==r&&(t=!1),e.push(r)}return t?"":e.join("")}},{key:"setPenStyles",value:function(e){this.currPenState.setStyles(e),this.chars[this.pos].setPenState(this.currPenState)}}])}(),Bi=function(){return O((function e(t){_(this,e),this.rows=[],this.currRow=14,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(var n=0;n<15;n++)this.rows.push(new Fi(t));this.logger=t}),[{key:"reset",value:function(){for(var e=0;e<15;e++)this.rows[e].clear();this.currRow=14}},{key:"equals",value:function(e){for(var t=!0,n=0;n<15;n++)if(!this.rows[n].equals(e.rows[n])){t=!1;break}return t}},{key:"copy",value:function(e){for(var t=0;t<15;t++)this.rows[t].copy(e.rows[t])}},{key:"isEmpty",value:function(){for(var e=!0,t=0;t<15;t++)if(!this.rows[t].isEmpty()){e=!1;break}return e}},{key:"backSpace",value:function(){this.rows[this.currRow].backSpace()}},{key:"clearToEndOfRow",value:function(){this.rows[this.currRow].clearToEndOfRow()}},{key:"insertChar",value:function(e){this.rows[this.currRow].insertChar(e)}},{key:"setPen",value:function(e){this.rows[this.currRow].setPenStyles(e)}},{key:"moveCursor",value:function(e){this.rows[this.currRow].moveCursor(e)}},{key:"setCursor",value:function(e){this.logger.log(2,"setCursor: "+e),this.rows[this.currRow].setCursor(e)}},{key:"setPAC",value:function(e){this.logger.log(2,(function(){return"pacData = "+JSON.stringify(e)}));var t=e.row-1;if(this.nrRollUpRows&&t<this.nrRollUpRows-1&&(t=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==t){for(var n=0;n<15;n++)this.rows[n].clear();var r=this.currRow+1-this.nrRollUpRows,i=this.lastOutputScreen;if(i){var o=i.rows[r].cueStartTime,a=this.logger.time;if(null!==o&&null!==a&&o<a)for(var s=0;s<this.nrRollUpRows;s++)this.rows[t-this.nrRollUpRows+s+1].copy(i.rows[r+s])}}this.currRow=t;var u=this.rows[this.currRow];if(null!==e.indent){var c=e.indent,l=Math.max(c-1,0);u.setCursor(e.indent),e.color=u.chars[l].penState.foreground}var f={foreground:e.color,underline:e.underline,italics:e.italics,background:"black",flash:!1};this.setPen(f)}},{key:"setBkgData",value:function(e){this.logger.log(2,(function(){return"bkgData = "+JSON.stringify(e)})),this.backSpace(),this.setPen(e),this.insertChar(32)}},{key:"setRollUpRows",value:function(e){this.nrRollUpRows=e}},{key:"rollUp",value:function(){var e=this;if(null!==this.nrRollUpRows){this.logger.log(1,(function(){return e.getDisplayText()}));var t=this.currRow+1-this.nrRollUpRows,n=this.rows.splice(t,1)[0];n.clear(),this.rows.splice(this.currRow,0,n),this.logger.log(2,"Rolling up")}else this.logger.log(3,"roll_up but nrRollUpRows not set yet")}},{key:"getDisplayText",value:function(e){e=e||!1;for(var t=[],n="",r=-1,i=0;i<15;i++){var o=this.rows[i].getTextString();o&&(r=i+1,e?t.push("Row "+r+": '"+o+"'"):t.push(o.trim()))}return t.length>0&&(n=e?"["+t.join(" | ")+"]":t.join("\n")),n}},{key:"getTextAndFormat",value:function(){return this.rows}}])}(),Ui=function(){return O((function e(t,n,r){_(this,e),this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=t,this.outputFilter=n,this.mode=null,this.verbose=0,this.displayedMemory=new Bi(r),this.nonDisplayedMemory=new Bi(r),this.lastOutputScreen=new Bi(r),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=r}),[{key:"reset",value:function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}},{key:"getHandler",value:function(){return this.outputFilter}},{key:"setHandler",value:function(e){this.outputFilter=e}},{key:"setPAC",value:function(e){this.writeScreen.setPAC(e)}},{key:"setBkgData",value:function(e){this.writeScreen.setBkgData(e)}},{key:"setMode",value:function(e){e!==this.mode&&(this.mode=e,this.logger.log(2,(function(){return"MODE="+e})),"MODE_POP-ON"===this.mode?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),"MODE_ROLL-UP"!==this.mode&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=e)}},{key:"insertChars",value:function(e){for(var t=this,n=0;n<e.length;n++)this.writeScreen.insertChar(e[n]);var r=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(2,(function(){return r+": "+t.writeScreen.getDisplayText(!0)})),"MODE_PAINT-ON"!==this.mode&&"MODE_ROLL-UP"!==this.mode||(this.logger.log(1,(function(){return"DISPLAYED: "+t.displayedMemory.getDisplayText(!0)})),this.outputDataUpdate())}},{key:"ccRCL",value:function(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")}},{key:"ccBS",value:function(){this.logger.log(2,"BS - BackSpace"),"MODE_TEXT"!==this.mode&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())}},{key:"ccAOF",value:function(){}},{key:"ccAON",value:function(){}},{key:"ccDER",value:function(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()}},{key:"ccRU",value:function(e){this.logger.log(2,"RU("+e+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(e)}},{key:"ccFON",value:function(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:!0})}},{key:"ccRDC",value:function(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")}},{key:"ccTR",value:function(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT")}},{key:"ccRTD",value:function(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT")}},{key:"ccEDM",value:function(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)}},{key:"ccCR",value:function(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)}},{key:"ccENM",value:function(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()}},{key:"ccEOC",value:function(){var e=this;if(this.logger.log(2,"EOC - End Of Caption"),"MODE_POP-ON"===this.mode){var t=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=t,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,(function(){return"DISP: "+e.displayedMemory.getDisplayText()}))}this.outputDataUpdate(!0)}},{key:"ccTO",value:function(e){this.logger.log(2,"TO("+e+") - Tab Offset"),this.writeScreen.moveCursor(e)}},{key:"ccMIDROW",value:function(e){var t={flash:!1};if(t.underline=e%2==1,t.italics=e>=46,t.italics)t.foreground="white";else{var n=Math.floor(e/2)-16;t.foreground=["white","green","blue","cyan","red","yellow","magenta"][n]}this.logger.log(2,"MIDROW: "+JSON.stringify(t)),this.writeScreen.setPen(t)}},{key:"outputDataUpdate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.logger.time;null!==t&&this.outputFilter&&(null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,t,this.lastOutputScreen),e&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:t):this.cueStartTime=t,this.lastOutputScreen.copy(this.displayedMemory))}},{key:"cueSplitAtTime",value:function(e){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.displayedMemory),this.cueStartTime=e))}}])}(),zi=function(){return O((function e(t,n,r){_(this,e),this.channels=void 0,this.currentChannel=0,this.cmdHistory={a:null,b:null},this.logger=void 0;var i=this.logger=new Ri;this.channels=[null,new Ui(t,n,i),new Ui(t+1,r,i)]}),[{key:"getHandler",value:function(e){return this.channels[e].getHandler()}},{key:"setHandler",value:function(e,t){this.channels[e].setHandler(t)}},{key:"addData",value:function(e,t){var n=this;this.logger.time=e;for(var r=function(e){var r=127&t[e],i=127&t[e+1],o=!1,a=null;if(0===r&&0===i)return 0;n.logger.log(3,(function(){return"["+Di([t[e],t[e+1]])+"] -> ("+Di([r,i])+")"}));var s=n.cmdHistory;if(r>=16&&r<=31){if(function(e,t,n){return n.a===e&&n.b===t}(r,i,s))return Vi(null,null,s),n.logger.log(3,(function(){return"Repeated command ("+Di([r,i])+") is dropped"})),0;Vi(r,i,n.cmdHistory),(o=n.parseCmd(r,i))||(o=n.parseMidrow(r,i)),o||(o=n.parsePAC(r,i)),o||(o=n.parseBackgroundAttributes(r,i))}else Vi(null,null,s);if(!o&&(a=n.parseChars(r,i))){var u=n.currentChannel;u&&u>0?n.channels[u].insertChars(a):n.logger.log(2,"No channel found yet. TEXT-MODE?")}o||a||n.logger.log(2,(function(){return"Couldn't parse cleaned data "+Di([r,i])+" orig: "+Di([t[e],t[e+1]])}))},i=0;i<t.length;i+=2)r(i)}},{key:"parseCmd",value:function(e,t){if(!((20===e||28===e||21===e||29===e)&&t>=32&&t<=47||(23===e||31===e)&&t>=33&&t<=35))return!1;var n=20===e||21===e||23===e?1:2,r=this.channels[n];return 20===e||21===e||28===e||29===e?32===t?r.ccRCL():33===t?r.ccBS():34===t?r.ccAOF():35===t?r.ccAON():36===t?r.ccDER():37===t?r.ccRU(2):38===t?r.ccRU(3):39===t?r.ccRU(4):40===t?r.ccFON():41===t?r.ccRDC():42===t?r.ccTR():43===t?r.ccRTD():44===t?r.ccEDM():45===t?r.ccCR():46===t?r.ccENM():47===t&&r.ccEOC():r.ccTO(t-32),this.currentChannel=n,!0}},{key:"parseMidrow",value:function(e,t){var n=0;if((17===e||25===e)&&t>=32&&t<=47){if((n=17===e?1:2)!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;var r=this.channels[n];return!!r&&(r.ccMIDROW(t),this.logger.log(3,(function(){return"MIDROW ("+Di([e,t])+")"})),!0)}return!1}},{key:"parsePAC",value:function(e,t){var n;if(!((e>=17&&e<=23||e>=25&&e<=31)&&t>=64&&t<=127||(16===e||24===e)&&t>=64&&t<=95))return!1;var r=e<=23?1:2;n=t>=64&&t<=95?1===r?Ci[e]:Pi[e]:1===r?Ai[e]:Mi[e];var i=this.channels[r];return!!i&&(i.setPAC(this.interpretPAC(n,t)),this.currentChannel=r,!0)}},{key:"interpretPAC",value:function(e,t){var n,r={color:null,italics:!1,indent:null,underline:!1,row:e};return n=t>95?t-96:t-64,r.underline=1==(1&n),n<=13?r.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(n/2)]:n<=15?(r.italics=!0,r.color="white"):r.indent=4*Math.floor((n-16)/2),r}},{key:"parseChars",value:function(e,t){var n,r,i=null,o=null;return e>=25?(n=2,o=e-8):(n=1,o=e),o>=17&&o<=19?(r=17===o?t+80:18===o?t+112:t+144,this.logger.log(2,(function(){return"Special char '"+Ti(r)+"' in channel "+n})),i=[r]):e>=32&&e<=127&&(i=0===t?[e]:[e,t]),i&&this.logger.log(3,(function(){return"Char codes = "+Di(i).join(",")})),i}},{key:"parseBackgroundAttributes",value:function(e,t){if(!((16===e||24===e)&&t>=32&&t<=47||(23===e||31===e)&&t>=45&&t<=47))return!1;var n,r={};16===e||24===e?(n=Math.floor((t-32)/2),r.background=Ii[n],t%2==1&&(r.background=r.background+"_semi")):45===t?r.background="transparent":(r.foreground="black",47===t&&(r.underline=!0));var i=e<=23?1:2;return this.channels[i].setBkgData(r),!0}},{key:"reset",value:function(){for(var e=0;e<Object.keys(this.channels).length;e++){var t=this.channels[e];t&&t.reset()}Vi(null,null,this.cmdHistory)}},{key:"cueSplitAtTime",value:function(e){for(var t=0;t<this.channels.length;t++){var n=this.channels[t];n&&n.cueSplitAtTime(e)}}}])}();function Vi(e,t,n){n.a=e,n.b=t}var Hi=function(){return O((function e(t,n){_(this,e),this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=t,this.trackName=n}),[{key:"dispatchCue",value:function(){null!==this.startTime&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)}},{key:"newCue",value:function(e,t,n){(null===this.startTime||this.startTime>e)&&(this.startTime=e),this.endTime=t,this.screen=n,this.timelineController.createCaptionsTrack(this.trackName)}},{key:"reset",value:function(){this.cueRanges=[],this.startTime=null}}])}(),Wi=function(){if(null!=K&&K.VTTCue)return self.VTTCue;var e=["","lr","rl"],t=["start","middle","end","left","right"];function n(e,t){if("string"!=typeof t)return!1;if(!Array.isArray(e))return!1;var n=t.toLowerCase();return!!~e.indexOf(n)&&n}function r(e){return n(t,e)}function i(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=1;i<arguments.length;i++){var o=arguments[i];for(var a in o)e[a]=o[a]}return e}function o(t,o,a){var s=this,u={enumerable:!0};s.hasBeenReset=!1;var c="",l=!1,f=t,d=o,p=a,h=null,v="",g=!0,m="auto",y="start",b=50,x="middle",w=50,_="middle";Object.defineProperty(s,"id",i({},u,{get:function(){return c},set:function(e){c=""+e}})),Object.defineProperty(s,"pauseOnExit",i({},u,{get:function(){return l},set:function(e){l=!!e}})),Object.defineProperty(s,"startTime",i({},u,{get:function(){return f},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");f=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"endTime",i({},u,{get:function(){return d},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");d=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"text",i({},u,{get:function(){return p},set:function(e){p=""+e,this.hasBeenReset=!0}})),Object.defineProperty(s,"region",i({},u,{get:function(){return h},set:function(e){h=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"vertical",i({},u,{get:function(){return v},set:function(t){var r=function(t){return n(e,t)}(t);if(!1===r)throw new SyntaxError("An invalid or illegal string was specified.");v=r,this.hasBeenReset=!0}})),Object.defineProperty(s,"snapToLines",i({},u,{get:function(){return g},set:function(e){g=!!e,this.hasBeenReset=!0}})),Object.defineProperty(s,"line",i({},u,{get:function(){return m},set:function(e){if("number"!=typeof e&&"auto"!==e)throw new SyntaxError("An invalid number or illegal string was specified.");m=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"lineAlign",i({},u,{get:function(){return y},set:function(e){var t=r(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");y=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"position",i({},u,{get:function(){return b},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");b=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"positionAlign",i({},u,{get:function(){return x},set:function(e){var t=r(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");x=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"size",i({},u,{get:function(){return w},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");w=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"align",i({},u,{get:function(){return _},set:function(e){var t=r(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");_=t,this.hasBeenReset=!0}})),s.displayState=void 0}return o.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},o}(),qi=function(){return O((function e(){_(this,e)}),[{key:"decode",value:function(e,t){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}])}();function Gi(e){function t(e,t,n,r){return 3600*(0|e)+60*(0|t)+(0|n)+parseFloat(r||0)}var n=e.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return n?parseFloat(n[2])>59?t(n[2],n[3],0,n[4]):t(n[1],n[2],n[3],n[4]):null}var Yi=function(){return O((function e(){_(this,e),this.values=Object.create(null)}),[{key:"set",value:function(e,t){this.get(e)||""===t||(this.values[e]=t)}},{key:"get",value:function(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t}},{key:"has",value:function(e){return e in this.values}},{key:"alt",value:function(e,t,n){for(var r=0;r<n.length;++r)if(t===n[r]){this.set(e,t);break}}},{key:"integer",value:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))}},{key:"percent",value:function(e,t){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(t)){var n=parseFloat(t);if(n>=0&&n<=100)return this.set(e,n),!0}return!1}}])}();function Ki(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);2===a.length&&t(a[0],a[1])}}var $i=new Wi(0,0,""),Xi="middle"===$i.align?"middle":"center";function Qi(e,t,n){var r=e;function i(){var t=Gi(e);if(null===t)throw new Error("Malformed timestamp: "+r);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function o(){e=e.replace(/^\s+/,"")}if(o(),t.startTime=i(),o(),"--\x3e"!==e.slice(0,3))throw new Error("Malformed time stamp (time stamps must be separated by '--\x3e'): "+r);e=e.slice(3),o(),t.endTime=i(),o(),function(e,t){var r=new Yi;Ki(e,(function(e,t){var i;switch(e){case"region":for(var o=n.length-1;o>=0;o--)if(n[o].id===t){r.set(e,n[o].region);break}break;case"vertical":r.alt(e,t,["rl","lr"]);break;case"line":i=t.split(","),r.integer(e,i[0]),r.percent(e,i[0])&&r.set("snapToLines",!1),r.alt(e,i[0],["auto"]),2===i.length&&r.alt("lineAlign",i[1],["start",Xi,"end"]);break;case"position":i=t.split(","),r.percent(e,i[0]),2===i.length&&r.alt("positionAlign",i[1],["start",Xi,"end","line-left","line-right","auto"]);break;case"size":r.percent(e,t);break;case"align":r.alt(e,t,["start",Xi,"end","left","right"])}}),/:/,/\s/),t.region=r.get("region",null),t.vertical=r.get("vertical","");var i=r.get("line","auto");"auto"===i&&-1===$i.line&&(i=-1),t.line=i,t.lineAlign=r.get("lineAlign","start"),t.snapToLines=r.get("snapToLines",!0),t.size=r.get("size",100),t.align=r.get("align",Xi);var o=r.get("position","auto");"auto"===o&&50===$i.position&&(o="start"===t.align||"left"===t.align?0:"end"===t.align||"right"===t.align?100:50),t.position=o}(e,t)}function Zi(e){return e.replace(/<br(?: \/)?>/gi,"\n")}var Ji=function(){return O((function e(){_(this,e),this.state="INITIAL",this.buffer="",this.decoder=new qi,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}),[{key:"parse",value:function(e){var t=this;function n(){var e=t.buffer,n=0;for(e=Zi(e);n<e.length&&"\r"!==e[n]&&"\n"!==e[n];)++n;var r=e.slice(0,n);return"\r"===e[n]&&++n,"\n"===e[n]&&++n,t.buffer=e.slice(n),r}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{var r="";if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;var i=(r=n()).match(/^()?WEBVTT([ \t].*)?$/);if(null==i||!i[0])throw new Error("Malformed WebVTT signature.");t.state="HEADER"}for(var o=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(o?o=!1:r=n(),t.state){case"HEADER":/:/.test(r)?Ki(r,(function(e,t){}),/:/):r||(t.state="ID");continue;case"NOTE":r||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(r)){t.state="NOTE";break}if(!r)continue;if(t.cue=new Wi(0,0,""),t.state="CUE",-1===r.indexOf("--\x3e")){t.cue.id=r;continue}case"CUE":if(!t.cue){t.state="BADCUE";continue}try{Qi(r,t.cue,t.regionList)}catch(e){t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var a=-1!==r.indexOf("--\x3e");if(!r||a&&(o=!0)){t.oncue&&t.cue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}if(null===t.cue)continue;t.cue.text&&(t.cue.text+="\n"),t.cue.text+=r;continue;case"BADCUE":r||(t.state="ID")}}}catch(e){"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this}},{key:"flush",value:function(){var e=this;try{if((e.cue||"HEADER"===e.state)&&(e.buffer+="\n\n",e.parse()),"INITIAL"===e.state||"BADWEBVTT"===e.state)throw new Error("Malformed WebVTT signature.")}catch(t){e.onparsingerror&&e.onparsingerror(t)}return e.onflush&&e.onflush(),this}}])}(),eo=/\r\n|\n\r|\n|\r/g,to=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return e.slice(n,n+t.length)===t},no=function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return(t>>>0).toString()};function ro(e,t,n){return no(e.toString())+no(t.toString())+no(n)}var io=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,oo=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,ao={left:"start",center:"center",right:"end",start:"start",end:"end"};function so(e,t,n,r){var i=Pe(new Uint8Array(e),["mdat"]);if(0!==i.length){var o=i.map((function(e){return be(e)})),a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return $r(e,t,1/n,r)}(t.baseTime,1,t.timescale);try{o.forEach((function(e){return n(function(e,t){var n=(new DOMParser).parseFromString(e,"text/xml").getElementsByTagName("tt")[0];if(!n)throw new Error("Invalid ttml");var r={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},i=Object.keys(r).reduce((function(e,t){return e[t]=n.getAttribute("ttp:"+t)||r[t],e}),{}),o="preserve"!==n.getAttribute("xml:space"),a=co(uo(n,"styling","style")),s=co(uo(n,"layout","region")),c=uo(n,"body","[begin]");return[].map.call(c,(function(e){var n=function e(t,n){return[].slice.call(t.childNodes).reduce((function(t,r,i){var o;return"br"===r.nodeName&&i?t+"\n":null!=(o=r.childNodes)&&o.length?e(r,n):n?t+r.textContent.trim().replace(/\s+/g," "):t+r.textContent}),"")}(e,o);if(!n||!e.hasAttribute("begin"))return null;var r=po(e.getAttribute("begin"),i),c=po(e.getAttribute("dur"),i),l=po(e.getAttribute("end"),i);if(null===r)throw fo(e);if(null===l){if(null===c)throw fo(e);l=r+c}var f=new Wi(r-t,l-t,n);f.id=ro(f.startTime,f.endTime,f.text);var d=function(e,t,n){var r="http://www.w3.org/ns/ttml#styling",i=null,o=null!=e&&e.hasAttribute("style")?e.getAttribute("style"):null;return o&&n.hasOwnProperty(o)&&(i=n[o]),["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"].reduce((function(n,o){var a=lo(t,r,o)||lo(e,r,o)||lo(i,r,o);return a&&(n[o]=a),n}),{})}(s[e.getAttribute("region")],a[e.getAttribute("style")],a),p=d.textAlign;if(p){var h=ao[p];h&&(f.lineAlign=h),f.align=p}return u(f,d),f})).filter((function(e){return null!==e}))}(e,a))}))}catch(e){r(e)}}else r(new Error("Could not parse IMSC1 mdat"))}function uo(e,t,n){var r=e.getElementsByTagName(t)[0];return r?[].slice.call(r.querySelectorAll(n)):[]}function co(e){return e.reduce((function(e,t){var n=t.getAttribute("xml:id");return n&&(e[n]=t),e}),{})}function lo(e,t,n){return e&&e.hasAttributeNS(t,n)?e.getAttributeNS(t,n):null}function fo(e){return new Error("Could not parse ttml timestamp "+e)}function po(e,t){if(!e)return null;var n=Gi(e);return null===n&&(io.test(e)?n=function(e,t){var n=io.exec(e),r=(0|n[4])+(0|n[5])/t.subFrameRate;return 3600*(0|n[1])+60*(0|n[2])+(0|n[3])+r/t.frameRate}(e,t):oo.test(e)&&(n=function(e,t){var n=oo.exec(e),r=Number(n[1]);switch(n[2]){case"h":return 3600*r;case"m":return 60*r;case"ms":return 1e3*r;case"f":return r/t.frameRate;case"t":return r/t.tickRate}return r}(e,t))),n}var ho=function(){return O((function e(t){_(this,e),this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}},this.captionsProperties=void 0,this.hls=t,this.config=t.config,this.Cues=t.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},t.on(m.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(m.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(m.MANIFEST_LOADING,this.onManifestLoading,this),t.on(m.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(m.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(m.FRAG_LOADING,this.onFragLoading,this),t.on(m.FRAG_LOADED,this.onFragLoaded,this),t.on(m.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.on(m.FRAG_DECRYPTED,this.onFragDecrypted,this),t.on(m.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(m.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.on(m.BUFFER_FLUSHING,this.onBufferFlushing,this)}),[{key:"destroy",value:function(){var e=this.hls;e.off(m.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(m.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(m.FRAG_LOADING,this.onFragLoading,this),e.off(m.FRAG_LOADED,this.onFragLoaded,this),e.off(m.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.off(m.FRAG_DECRYPTED,this.onFragDecrypted,this),e.off(m.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(m.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.off(m.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=null,this.cea608Parser1=this.cea608Parser2=void 0}},{key:"initCea608Parsers",value:function(){if(this.config.enableCEA708Captions&&(!this.cea608Parser1||!this.cea608Parser2)){var e=new Hi(this,"textTrack1"),t=new Hi(this,"textTrack2"),n=new Hi(this,"textTrack3"),r=new Hi(this,"textTrack4");this.cea608Parser1=new zi(1,e,t),this.cea608Parser2=new zi(3,n,r)}}},{key:"addCues",value:function(e,t,n,r,i){for(var o,a,s,u,c=!1,l=i.length;l--;){var f=i[l],d=(o=f[0],a=f[1],s=t,u=n,Math.min(a,u)-Math.max(o,s));if(d>=0&&(f[0]=Math.min(f[0],t),f[1]=Math.max(f[1],n),c=!0,d/(n-t)>.5))return}if(c||i.push([t,n]),this.config.renderTextTracksNatively){var p=this.captionsTracks[e];this.Cues.newCue(p,t,n,r)}else{var h=this.Cues.newCue(null,t,n,r);this.hls.trigger(m.CUES_PARSED,{type:"captions",cues:h,track:e})}}},{key:"onInitPtsFound",value:function(e,t){var n=this,r=t.frag,i=t.id,o=t.initPTS,a=t.timescale,s=this.unparsedVttFrags;"main"===i&&(this.initPTS[r.cc]={baseTime:o,timescale:a}),s.length&&(this.unparsedVttFrags=[],s.forEach((function(e){n.onFragLoaded(m.FRAG_LOADED,e)})))}},{key:"getExistingTrack",value:function(e,t){var n=this.media;if(n)for(var r=0;r<n.textTracks.length;r++){var i=n.textTracks[r];if(go(i,{name:e,lang:t,attrs:{}}))return i}return null}},{key:"createCaptionsTrack",value:function(e){this.config.renderTextTracksNatively?this.createNativeTrack(e):this.createNonNativeTrack(e)}},{key:"createNativeTrack",value:function(e){if(!this.captionsTracks[e]){var t=this.captionsProperties,n=this.captionsTracks,r=this.media,i=t[e],o=i.label,a=i.languageCode,s=this.getExistingTrack(o,a);if(s)n[e]=s,It(n[e]),Pt(n[e],r);else{var u=this.createTextTrack("captions",o,a);u&&(u[e]=!0,n[e]=u)}}}},{key:"createNonNativeTrack",value:function(e){if(!this.nonNativeCaptionsTracks[e]){var t=this.captionsProperties[e];if(t){var n={_id:e,label:t.label,kind:"captions",default:!!t.media&&!!t.media.default,closedCaptions:t.media};this.nonNativeCaptionsTracks[e]=n,this.hls.trigger(m.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[n]})}}}},{key:"createTextTrack",value:function(e,t,n){var r=this.media;if(r)return r.addTextTrack(e,t,n)}},{key:"onMediaAttaching",value:function(e,t){this.media=t.media,this._cleanTracks()}},{key:"onMediaDetaching",value:function(){var e=this.captionsTracks;Object.keys(e).forEach((function(t){It(e[t]),delete e[t]})),this.nonNativeCaptionsTracks={}}},{key:"onManifestLoading",value:function(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}},this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())}},{key:"_cleanTracks",value:function(){var e=this.media;if(e){var t=e.textTracks;if(t)for(var n=0;n<t.length;n++)It(t[n])}}},{key:"onSubtitleTracksUpdated",value:function(e,t){var n=this,r=t.subtitleTracks||[],i=r.some((function(e){return"stpp.ttml.im1t"===e.textCodec}));if(this.config.enableWebVTT||i&&this.config.enableIMSC1){if(vi(this.tracks,r))return void(this.tracks=r);if(this.textTracks=[],this.tracks=r,this.config.renderTextTracksNatively){var o=this.media,a=o?Dt(o.textTracks):null;if(this.tracks.forEach((function(e,t){var r;if(a){for(var i=null,o=0;o<a.length;o++)if(a[o]&&go(a[o],e)){i=a[o],a[o]=null;break}i&&(r=i)}if(r)It(r);else{var s=vo(e);(r=n.createTextTrack(s,e.name,e.lang))&&(r.mode="disabled")}r&&n.textTracks.push(r)})),null!=a&&a.length){var s=a.filter((function(e){return null!==e})).map((function(e){return e.label}));s.length&&P.warn("Media element contains unused subtitle tracks: ".concat(s.join(", "),". Replace media element for each source to clear TextTracks and captions menu."))}}else if(this.tracks.length){var u=this.tracks.map((function(e){return{label:e.name,kind:e.type.toLowerCase(),default:e.default,subtitleTrack:e}}));this.hls.trigger(m.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:u})}}}},{key:"onManifestLoaded",value:function(e,t){var n=this;this.config.enableCEA708Captions&&t.captions&&t.captions.forEach((function(e){var t=/(?:CC|SERVICE)([1-4])/.exec(e.instreamId);if(t){var r="textTrack"+t[1],i=n.captionsProperties[r];i&&(i.label=e.name,e.lang&&(i.languageCode=e.lang),i.media=e)}}))}},{key:"closedCaptionsForLevel",value:function(e){var t=this.hls.levels[e.level];return null==t?void 0:t.attrs["CLOSED-CAPTIONS"]}},{key:"onFragLoading",value:function(e,t){if(this.enabled&&t.frag.type===jt.MAIN){var n,r,i=this.cea608Parser1,o=this.cea608Parser2,a=this.lastSn,s=t.frag,u=s.cc,c=s.sn,l=null!=(n=null==(r=t.part)?void 0:r.index)?n:-1;i&&o&&(c!==a+1||c===a&&l!==this.lastPartIndex+1||u!==this.lastCc)&&(i.reset(),o.reset()),this.lastCc=u,this.lastSn=c,this.lastPartIndex=l}}},{key:"onFragLoaded",value:function(e,t){var n=t.frag,r=t.payload;if(n.type===jt.SUBTITLE)if(r.byteLength){var i=n.decryptdata,o="stats"in t;if(null==i||!i.encrypted||o){var a=this.tracks[n.level],s=this.vttCCs;s[n.cc]||(s[n.cc]={start:n.start,prevCC:this.prevCC,new:!0},this.prevCC=n.cc),a&&"stpp.ttml.im1t"===a.textCodec?this._parseIMSC1(n,r):this._parseVTTs(t)}}else this.hls.trigger(m.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:new Error("Empty subtitle payload")})}},{key:"_parseIMSC1",value:function(e,t){var n=this,r=this.hls;so(t,this.initPTS[e.cc],(function(t){n._appendCues(t,e.level),r.trigger(m.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e})}),(function(t){P.log("Failed to parse IMSC1: "+t),r.trigger(m.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e,error:t})}))}},{key:"_parseVTTs",value:function(e){var t,n=this,r=e.frag,i=e.payload,o=this.initPTS,a=this.unparsedVttFrags,s=o.length-1;if(o[r.cc]||-1!==s){var u=this.hls;!function(e,t,n,r,i,o,a){var s,u=new Ji,c=be(new Uint8Array(e)).trim().replace(eo,"\n").split("\n"),l=[],d=t?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return $r(e,9e4,1/t)}(t.baseTime,t.timescale):0,p="00:00.000",h=0,v=0,g=!0;u.oncue=function(e){var o=n[r],a=n.ccOffset,u=(h-d)/9e4;if(null!=o&&o.new&&(void 0!==v?a=n.ccOffset=o.start:function(e,t,n){var r=e[t],i=e[r.prevCC];if(!i||!i.new&&r.new)return e.ccOffset=e.presentationOffset=r.start,void(r.new=!1);for(;null!=(o=i)&&o.new;){var o;e.ccOffset+=r.start-i.start,r.new=!1,i=e[(r=i).prevCC]}e.presentationOffset=n}(n,r,u)),u){if(!t)return void(s=new Error("Missing initPTS for VTT MPEGTS"));a=u-n.presentationOffset}var c=e.endTime-e.startTime,f=ti(9e4*(e.startTime+a-v),9e4*i)/9e4;e.startTime=Math.max(f,0),e.endTime=Math.max(f+c,0);var p=e.text.trim();e.text=decodeURIComponent(encodeURIComponent(p)),e.id||(e.id=ro(e.startTime,e.endTime,p)),e.endTime>0&&l.push(e)},u.onparsingerror=function(e){s=e},u.onflush=function(){s?a(s):o(l)},c.forEach((function(e){if(g){if(to(e,"X-TIMESTAMP-MAP=")){g=!1,e.slice(16).split(",").forEach((function(e){to(e,"LOCAL:")?p=e.slice(6):to(e,"MPEGTS:")&&(h=parseInt(e.slice(7)))}));try{v=function(e){var t=parseInt(e.slice(-3)),n=parseInt(e.slice(-6,-4)),r=parseInt(e.slice(-9,-7)),i=e.length>9?parseInt(e.substring(0,e.indexOf(":"))):0;if(!(f(t)&&f(n)&&f(r)&&f(i)))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+e);return t+=1e3*n,t+=6e4*r,t+=36e5*i}(p)/1e3}catch(e){s=e}return}""===e&&(g=!1)}u.parse(e+"\n")})),u.flush()}(null!=(t=r.initSegment)&&t.data?Ue(r.initSegment.data,new Uint8Array(i)):i,this.initPTS[r.cc],this.vttCCs,r.cc,r.start,(function(e){n._appendCues(e,r.level),u.trigger(m.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:r})}),(function(t){var o="Missing initPTS for VTT MPEGTS"===t.message;o?a.push(e):n._fallbackToIMSC1(r,i),P.log("Failed to parse VTT cue: "+t),o&&s>r.cc||u.trigger(m.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:t})}))}else a.push(e)}},{key:"_fallbackToIMSC1",value:function(e,t){var n=this,r=this.tracks[e.level];r.textCodec||so(t,this.initPTS[e.cc],(function(){r.textCodec="stpp.ttml.im1t",n._parseIMSC1(e,t)}),(function(){r.textCodec="wvtt"}))}},{key:"_appendCues",value:function(e,t){var n=this.hls;if(this.config.renderTextTracksNatively){var r=this.textTracks[t];if(!r||"disabled"===r.mode)return;e.forEach((function(e){return Mt(r,e)}))}else{var i=this.tracks[t];if(!i)return;var o=i.default?"default":"subtitles"+t;n.trigger(m.CUES_PARSED,{type:"subtitles",cues:e,track:o})}}},{key:"onFragDecrypted",value:function(e,t){t.frag.type===jt.SUBTITLE&&this.onFragLoaded(m.FRAG_LOADED,t)}},{key:"onSubtitleTracksCleared",value:function(){this.tracks=[],this.captionsTracks={}}},{key:"onFragParsingUserdata",value:function(e,t){this.initCea608Parsers();var n=this.cea608Parser1,r=this.cea608Parser2;if(this.enabled&&n&&r){var i=t.frag,o=t.samples;if(i.type!==jt.MAIN||"NONE"!==this.closedCaptionsForLevel(i))for(var a=0;a<o.length;a++){var s=o[a].bytes;if(s){var u=this.extractCea608Data(s);n.addData(o[a].pts,u[0]),r.addData(o[a].pts,u[1])}}}}},{key:"onBufferFlushing",value:function(e,t){var n=t.startOffset,r=t.endOffset,i=t.endOffsetSubtitles,o=t.type,a=this.media;if(a&&!(a.currentTime<r)){if(!o||"video"===o){var s=this.captionsTracks;Object.keys(s).forEach((function(e){return Rt(s[e],n,r)}))}if(this.config.renderTextTracksNatively&&0===n&&void 0!==i){var u=this.textTracks;Object.keys(u).forEach((function(e){return Rt(u[e],n,i)}))}}}},{key:"extractCea608Data",value:function(e){for(var t=[[],[]],n=31&e[0],r=2,i=0;i<n;i++){var o=e[r++],a=127&e[r++],s=127&e[r++];if((0!==a||0!==s)&&0!=(4&o)){var u=3&o;0!==u&&1!==u||(t[u].push(a),t[u].push(s))}}return t}}])}();function vo(e){return e.characteristics&&/transcribes-spoken-dialog/gi.test(e.characteristics)&&/describes-music-and-sound/gi.test(e.characteristics)?"captions":"subtitles"}function go(e,t){return!!e&&e.kind===vo(t)&&mi(t,e)}var mo=function(){function e(t){_(this,e),this.hls=void 0,this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.clientRect=void 0,this.streamController=void 0,this.hls=t,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}return O(e,[{key:"setStreamController",value:function(e){this.streamController=e}},{key:"destroy",value:function(){this.hls&&this.unregisterListener(),this.timer&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null}},{key:"registerListeners",value:function(){var e=this.hls;e.on(m.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.on(m.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(m.MANIFEST_PARSED,this.onManifestParsed,this),e.on(m.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(m.BUFFER_CODECS,this.onBufferCodecs,this),e.on(m.MEDIA_DETACHING,this.onMediaDetaching,this)}},{key:"unregisterListener",value:function(){var e=this.hls;e.off(m.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.off(m.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(m.MANIFEST_PARSED,this.onManifestParsed,this),e.off(m.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(m.BUFFER_CODECS,this.onBufferCodecs,this),e.off(m.MEDIA_DETACHING,this.onMediaDetaching,this)}},{key:"onFpsDropLevelCapping",value:function(e,t){var n=this.hls.levels[t.droppedLevel];this.isLevelAllowed(n)&&this.restrictedLevels.push({bitrate:n.bitrate,height:n.height,width:n.width})}},{key:"onMediaAttaching",value:function(e,t){this.media=t.media instanceof HTMLVideoElement?t.media:null,this.clientRect=null,this.timer&&this.hls.levels.length&&this.detectPlayerSize()}},{key:"onManifestParsed",value:function(e,t){var n=this.hls;this.restrictedLevels=[],this.firstLevel=t.firstLevel,n.config.capLevelToPlayerSize&&t.video&&this.startCapping()}},{key:"onLevelsUpdated",value:function(e,t){this.timer&&f(this.autoLevelCapping)&&this.detectPlayerSize()}},{key:"onBufferCodecs",value:function(e,t){this.hls.config.capLevelToPlayerSize&&t.video&&this.startCapping()}},{key:"onMediaDetaching",value:function(){this.stopCapping()}},{key:"detectPlayerSize",value:function(){if(this.media){if(this.mediaHeight<=0||this.mediaWidth<=0)return void(this.clientRect=null);var e=this.hls.levels;if(e.length){var t=this.hls,n=this.getMaxLevel(e.length-1);n!==this.autoLevelCapping&&P.log("Setting autoLevelCapping to ".concat(n,": ").concat(e[n].height,"p@").concat(e[n].bitrate," for media ").concat(this.mediaWidth,"x").concat(this.mediaHeight)),t.autoLevelCapping=n,t.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=t.autoLevelCapping}}}},{key:"getMaxLevel",value:function(t){var n=this,r=this.hls.levels;if(!r.length)return-1;var i=r.filter((function(e,r){return n.isLevelAllowed(e)&&r<=t}));return this.clientRect=null,e.getMaxLevelByMediaSize(i,this.mediaWidth,this.mediaHeight)}},{key:"startCapping",value:function(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())}},{key:"stopCapping",value:function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)}},{key:"getDimensions",value:function(){if(this.clientRect)return this.clientRect;var e=this.media,t={width:0,height:0};if(e){var n=e.getBoundingClientRect();t.width=n.width,t.height=n.height,t.width||t.height||(t.width=n.right-n.left||e.width||0,t.height=n.bottom-n.top||e.height||0)}return this.clientRect=t,t}},{key:"mediaWidth",get:function(){return this.getDimensions().width*this.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*this.contentScaleFactor}},{key:"contentScaleFactor",get:function(){var e=1;if(!this.hls.config.ignoreDevicePixelRatio)try{e=self.devicePixelRatio}catch(e){}return e}},{key:"isLevelAllowed",value:function(e){return!this.restrictedLevels.some((function(t){return e.bitrate===t.bitrate&&e.width===t.width&&e.height===t.height}))}}],[{key:"getMaxLevelByMediaSize",value:function(e,t,n){if(null==e||!e.length)return-1;for(var r,i,o=e.length-1,a=Math.max(t,n),s=0;s<e.length;s+=1){var u=e[s];if((u.width>=a||u.height>=a)&&(r=u,!(i=e[s+1])||r.width!==i.width||r.height!==i.height)){o=s;break}}return o}}])}(),yo=function(){return O((function e(t){_(this,e),this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=t,this.registerListeners()}),[{key:"setStreamController",value:function(e){this.streamController=e}},{key:"registerListeners",value:function(){this.hls.on(m.MEDIA_ATTACHING,this.onMediaAttaching,this)}},{key:"unregisterListeners",value:function(){this.hls.off(m.MEDIA_ATTACHING,this.onMediaAttaching,this)}},{key:"destroy",value:function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}},{key:"onMediaAttaching",value:function(e,t){var n=this.hls.config;if(n.capLevelOnFPSDrop){var r=t.media instanceof self.HTMLVideoElement?t.media:null;this.media=r,r&&"function"==typeof r.getVideoPlaybackQuality&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),n.fpsDroppedMonitoringPeriod)}}},{key:"checkFPS",value:function(e,t,n){var r=performance.now();if(t){if(this.lastTime){var i=r-this.lastTime,o=n-this.lastDroppedFrames,a=t-this.lastDecodedFrames,s=1e3*o/i,u=this.hls;if(u.trigger(m.FPS_DROP,{currentDropped:o,currentDecoded:a,totalDroppedFrames:n}),s>0&&o>u.config.fpsDroppedMonitoringThreshold*a){var c=u.currentLevel;P.warn("drop FPS ratio greater than max allowed value for currentLevel: "+c),c>0&&(-1===u.autoLevelCapping||u.autoLevelCapping>=c)&&(c-=1,u.trigger(m.FPS_DROP_LEVEL_CAPPING,{level:c,droppedLevel:u.currentLevel}),u.autoLevelCapping=c,this.streamController.nextLevelSwitch())}}this.lastTime=r,this.lastDroppedFrames=n,this.lastDecodedFrames=t}}},{key:"checkFPSInterval",value:function(){var e=this.media;if(e)if(this.isVideoPlaybackQualityAvailable){var t=e.getVideoPlaybackQuality();this.checkFPS(e,t.totalVideoFrames,t.droppedVideoFrames)}else this.checkFPS(e,e.webkitDecodedFrameCount,e.webkitDroppedFrameCount)}}])}(),bo=function(){function e(t){_(this,e),this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.setMediaKeysQueue=e.CDMCleanupPromise?[e.CDMCleanupPromise]:[],this.onMediaEncrypted=this._onMediaEncrypted.bind(this),this.onWaitingForKey=this._onWaitingForKey.bind(this),this.debug=P.debug.bind(P,"[eme]"),this.log=P.log.bind(P,"[eme]"),this.warn=P.warn.bind(P,"[eme]"),this.error=P.error.bind(P,"[eme]"),this.hls=t,this.config=t.config,this.registerListeners()}return O(e,[{key:"destroy",value:function(){this.unregisterListeners(),this.onMediaDetached();var e=this.config;e.requestMediaKeySystemAccessFunc=null,e.licenseXhrSetup=e.licenseResponseCallback=void 0,e.drmSystems=e.drmSystemOptions={},this.hls=this.onMediaEncrypted=this.onWaitingForKey=this.keyIdToKeySessionPromise=null,this.config=null}},{key:"registerListeners",value:function(){this.hls.on(m.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(m.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(m.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(m.MANIFEST_LOADED,this.onManifestLoaded,this)}},{key:"unregisterListeners",value:function(){this.hls.off(m.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(m.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(m.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(m.MANIFEST_LOADED,this.onManifestLoaded,this)}},{key:"getLicenseServerUrl",value:function(e){var t=this.config,n=t.drmSystems,r=t.widevineLicenseUrl,i=n[e];if(i)return i.licenseUrl;if(e===$.WIDEVINE&&r)return r;throw new Error('no license server URL configured for key-system "'.concat(e,'"'))}},{key:"getServerCertificateUrl",value:function(e){var t=this.config.drmSystems[e];if(t)return t.serverCertificateUrl;this.log('No Server Certificate in config.drmSystems["'.concat(e,'"]'))}},{key:"attemptKeySystemAccess",value:function(e){var t=this,n=this.hls.levels,r=function(e,t,n){return!!e&&n.indexOf(e)===t},i=n.map((function(e){return e.audioCodec})).filter(r),o=n.map((function(e){return e.videoCodec})).filter(r);return i.length+o.length===0&&o.push("avc1.42e01e"),new Promise((function(n,r){var a=function(e){var s=e.shift();t.getMediaKeysPromise(s,i,o).then((function(e){return n({keySystem:s,mediaKeys:e})})).catch((function(t){e.length?a(e):r(t instanceof So?t:new So({type:w.KEY_SYSTEM_ERROR,details:S.KEY_SYSTEM_NO_ACCESS,error:t,fatal:!0},t.message))}))};a(e)}))}},{key:"requestMediaKeySystemAccess",value:function(e,t){var n=this.config.requestMediaKeySystemAccessFunc;if("function"!=typeof n){var r="Configured requestMediaKeySystemAccess is not a function "+n;return null===ne&&"http:"===self.location.protocol&&(r="navigator.requestMediaKeySystemAccess is not available over insecure protocol "+location.protocol),Promise.reject(new Error(r))}return n(e,t)}},{key:"getMediaKeysPromise",value:function(e,t,n){var r=this,i=function(e,t,n,r){var i;switch(e){case $.FAIRPLAY:i=["cenc","sinf"];break;case $.WIDEVINE:case $.PLAYREADY:i=["cenc"];break;case $.CLEARKEY:i=["cenc","keyids"];break;default:throw new Error("Unknown key-system: "+e)}return function(e,t,n,r){return[{initDataTypes:e,persistentState:r.persistentState||"optional",distinctiveIdentifier:r.distinctiveIdentifier||"optional",sessionTypes:r.sessionTypes||[r.sessionType||"temporary"],audioCapabilities:t.map((function(e){return{contentType:'audio/mp4; codecs="'.concat(e,'"'),robustness:r.audioRobustness||"",encryptionScheme:r.audioEncryptionScheme||null}})),videoCapabilities:n.map((function(e){return{contentType:'video/mp4; codecs="'.concat(e,'"'),robustness:r.videoRobustness||"",encryptionScheme:r.videoEncryptionScheme||null}}))}]}(i,t,n,r)}(e,t,n,this.config.drmSystemOptions),o=this.keySystemAccessPromises[e],a=null==o?void 0:o.keySystemAccess;if(!a){this.log('Requesting encrypted media "'.concat(e,'" key-system access with config: ').concat(JSON.stringify(i))),a=this.requestMediaKeySystemAccess(e,i);var s=this.keySystemAccessPromises[e]={keySystemAccess:a};return a.catch((function(t){r.log('Failed to obtain access to key-system "'.concat(e,'": ').concat(t))})),a.then((function(t){r.log('Access for key-system "'.concat(t.keySystem,'" obtained'));var n=r.fetchServerCertificate(e);return r.log('Create media-keys for "'.concat(e,'"')),s.mediaKeys=t.createMediaKeys().then((function(t){return r.log('Media-keys created for "'.concat(e,'"')),n.then((function(n){return n?r.setMediaKeysServerCertificate(t,e,n):t}))})),s.mediaKeys.catch((function(t){r.error('Failed to create media-keys for "'.concat(e,'"}: ').concat(t))})),s.mediaKeys}))}return a.then((function(){return o.mediaKeys}))}},{key:"createMediaKeySessionContext",value:function(e){var t=e.decryptdata,n=e.keySystem,r=e.mediaKeys;this.log('Creating key-system session "'.concat(n,'" keyId: ').concat(we(t.keyId||[])));var i=r.createSession(),o={decryptdata:t,keySystem:n,mediaKeys:r,mediaKeysSession:i,keyStatus:"status-pending"};return this.mediaKeySessions.push(o),o}},{key:"renewKeySession",value:function(e){var t=e.decryptdata;if(t.pssh){var n=this.createMediaKeySessionContext(e),r=this.getKeyIdString(t);this.keyIdToKeySessionPromise[r]=this.generateRequestWithPreferredKeySession(n,"cenc",t.pssh,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(e)}},{key:"getKeyIdString",value:function(e){if(!e)throw new Error("Could not read keyId of undefined decryptdata");if(null===e.keyId)throw new Error("keyId is null");return we(e.keyId)}},{key:"updateKeySession",value:function(e,t){var n,r=e.mediaKeysSession;return this.log('Updating key-session "'.concat(r.sessionId,'" for keyID ').concat(we((null==(n=e.decryptdata)?void 0:n.keyId)||[]),"\n } (data length: ").concat(t?t.byteLength:t,")")),r.update(t)}},{key:"selectKeySystemFormat",value:function(e){var t=Object.keys(e.levelkeys||{});return this.keyFormatPromise||(this.log("Selecting key-system from fragment (sn: ".concat(e.sn," ").concat(e.type,": ").concat(e.level,") key formats ").concat(t.join(", "))),this.keyFormatPromise=this.getKeyFormatPromise(t)),this.keyFormatPromise}},{key:"getKeyFormatPromise",value:function(e){var t=this;return new Promise((function(n,r){var i=ee(t.config),o=e.map(Q).filter((function(e){return!!e&&-1!==i.indexOf(e)}));return t.getKeySystemSelectionPromise(o).then((function(e){var t=e.keySystem,i=J(t);i?n(i):r(new Error('Unable to find format for key-system "'.concat(t,'"')))})).catch(r)}))}},{key:"loadKey",value:function(e){var t=this,n=e.keyInfo.decryptdata,r=this.getKeyIdString(n),i="(keyId: ".concat(r,' format: "').concat(n.keyFormat,'" method: ').concat(n.method," uri: ").concat(n.uri,")");this.log("Starting session for key "+i);var o=this.keyIdToKeySessionPromise[r];return o||(o=this.keyIdToKeySessionPromise[r]=this.getKeySystemForKeyPromise(n).then((function(r){var o=r.keySystem,a=r.mediaKeys;return t.throwIfDestroyed(),t.log("Handle encrypted media sn: ".concat(e.frag.sn," ").concat(e.frag.type,": ").concat(e.frag.level," using key ").concat(i)),t.attemptSetMediaKeys(o,a).then((function(){t.throwIfDestroyed();var e=t.createMediaKeySessionContext({keySystem:o,mediaKeys:a,decryptdata:n});return t.generateRequestWithPreferredKeySession(e,"cenc",n.pssh,"playlist-key")}))}))).catch((function(e){return t.handleError(e)})),o}},{key:"throwIfDestroyed",value:function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0],!this.hls)throw new Error("invalid state")}},{key:"handleError",value:function(e){this.hls&&(this.error(e.message),e instanceof So?this.hls.trigger(m.ERROR,e.data):this.hls.trigger(m.ERROR,{type:w.KEY_SYSTEM_ERROR,details:S.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0}))}},{key:"getKeySystemForKeyPromise",value:function(e){var t=this.getKeyIdString(e),n=this.keyIdToKeySessionPromise[t];if(!n){var r=Q(e.keyFormat),i=r?[r]:ee(this.config);return this.attemptKeySystemAccess(i)}return n}},{key:"getKeySystemSelectionPromise",value:function(e){if(e.length||(e=ee(this.config)),0===e.length)throw new So({type:w.KEY_SYSTEM_ERROR,details:S.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},"Missing key-system license configuration options "+JSON.stringify({drmSystems:this.config.drmSystems}));return this.attemptKeySystemAccess(e)}},{key:"_onMediaEncrypted",value:function(e){var t=this,n=e.initDataType,r=e.initData;if(this.debug('"'.concat(e.type,'" event: init data type: "').concat(n,'"')),null!==r){var i,o;if("sinf"===n&&this.config.drmSystems[$.FAIRPLAY]){var a=ke(new Uint8Array(r));try{var s=G(JSON.parse(a).sinf),u=Fe(new Uint8Array(s));if(!u)return;i=u.subarray(8,24),o=$.FAIRPLAY}catch(e){return void this.warn('Failed to parse sinf "encrypted" event message initData')}}else{var c=function(e){if(!(e instanceof ArrayBuffer)||e.byteLength<32)return null;var t={version:0,systemId:"",kids:null,data:null},n=new DataView(e),r=n.getUint32(0);if(e.byteLength!==r&&r>44)return null;if(1886614376!==n.getUint32(4))return null;if(t.version=n.getUint32(8)>>>24,t.version>1)return null;t.systemId=we(new Uint8Array(e,12,16));var i=n.getUint32(28);if(0===t.version){if(r-32<i)return null;t.data=new Uint8Array(e,32,i)}else if(1===t.version){t.kids=[];for(var o=0;o<i;o++)t.kids.push(new Uint8Array(e,32+16*o,16))}return t}(r);if(null===c)return;0===c.version&&c.systemId===Z&&c.data&&(i=c.data.subarray(8,24)),o=function(e){if(e===Z)return $.WIDEVINE}(c.systemId)}if(o&&i){for(var l,f=we(i),d=this.keyIdToKeySessionPromise,p=this.mediaKeySessions,h=d[f],v=function(){var e=p[g],o=e.decryptdata;if(o.pssh||!o.keyId)return 0;var a=we(o.keyId);return f===a||-1!==o.uri.replace(/-/g,"").indexOf(f)?(h=d[a],delete d[a],o.pssh=new Uint8Array(r),o.keyId=i,h=d[f]=h.then((function(){return t.generateRequestWithPreferredKeySession(e,n,r,"encrypted-event-key-match")})),1):void 0},g=0;g<p.length&&(0===(l=v())||1!==l);g++);h||(h=d[f]=this.getKeySystemSelectionPromise([o]).then((function(e){var o,a=e.keySystem,s=e.mediaKeys;t.throwIfDestroyed();var u=new Ge("ISO-23001-7",f,null!=(o=J(a))?o:"");return u.pssh=new Uint8Array(r),u.keyId=i,t.attemptSetMediaKeys(a,s).then((function(){t.throwIfDestroyed();var e=t.createMediaKeySessionContext({decryptdata:u,keySystem:a,mediaKeys:s});return t.generateRequestWithPreferredKeySession(e,n,r,"encrypted-event-no-match")}))}))),h.catch((function(e){return t.handleError(e)}))}}}},{key:"_onWaitingForKey",value:function(e){this.log('"'.concat(e.type,'" event'))}},{key:"attemptSetMediaKeys",value:function(e,t){var n=this,r=this.setMediaKeysQueue.slice();this.log('Setting media-keys for "'.concat(e,'"'));var i=Promise.all(r).then((function(){if(!n.media)throw new Error("Attempted to set mediaKeys without media element attached");return n.media.setMediaKeys(t)}));return this.setMediaKeysQueue.push(i),i.then((function(){n.log('Media-keys set for "'.concat(e,'"')),r.push(i),n.setMediaKeysQueue=n.setMediaKeysQueue.filter((function(e){return-1===r.indexOf(e)}))}))}},{key:"generateRequestWithPreferredKeySession",value:function(e,t,n,r){var i,o,a=this,s=null==(i=this.config.drmSystems)||null==(o=i[e.keySystem])?void 0:o.generateRequest;if(s)try{var u=s.call(this.hls,t,n,e);if(!u)throw new Error("Invalid response from configured generateRequest filter");t=u.initDataType,n=e.decryptdata.pssh=u.initData?new Uint8Array(u.initData):null}catch(e){var c;if(this.warn(e.message),null!=(c=this.hls)&&c.config.debug)throw e}if(null===n)return this.log('Skipping key-session request for "'.concat(r,'" (no initData)')),Promise.resolve(e);var l=this.getKeyIdString(e.decryptdata);this.log('Generating key-session request for "'.concat(r,'": ').concat(l," (init data type: ").concat(t," length: ").concat(n?n.byteLength:null,")"));var f=new pi,d=e._onmessage=function(t){var n=e.mediaKeysSession;if(n){var r=t.messageType,i=t.message;a.log('"'.concat(r,'" message event for session "').concat(n.sessionId,'" message size: ').concat(i.byteLength)),"license-request"===r||"license-renewal"===r?a.renewLicense(e,i).catch((function(e){a.handleError(e),f.emit("error",e)})):"license-release"===r?e.keySystem===$.FAIRPLAY&&(a.updateKeySession(e,Y("acknowledged")),a.removeSession(e)):a.warn('unhandled media key message type "'.concat(r,'"'))}else f.emit("error",new Error("invalid state"))},p=e._onkeystatuseschange=function(t){if(e.mediaKeysSession){a.onKeyStatusChange(e);var n=e.keyStatus;f.emit("keyStatus",n),"expired"===n&&(a.warn("".concat(e.keySystem," expired for key ").concat(l)),a.renewKeySession(e))}else f.emit("error",new Error("invalid state"))};e.mediaKeysSession.addEventListener("message",d),e.mediaKeysSession.addEventListener("keystatuseschange",p);var h=new Promise((function(e,t){f.on("error",t),f.on("keyStatus",(function(n){n.startsWith("usable")?e():"output-restricted"===n?t(new So({type:w.KEY_SYSTEM_ERROR,details:S.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):"internal-error"===n?t(new So({type:w.KEY_SYSTEM_ERROR,details:S.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},'key status changed to "'.concat(n,'"'))):"expired"===n?t(new Error("key expired while generating request")):a.warn('unhandled key status change "'.concat(n,'"'))}))}));return e.mediaKeysSession.generateRequest(t,n).then((function(){var t;a.log('Request generated for key-session "'.concat(null==(t=e.mediaKeysSession)?void 0:t.sessionId,'" keyId: ').concat(l))})).catch((function(e){throw new So({type:w.KEY_SYSTEM_ERROR,details:S.KEY_SYSTEM_NO_SESSION,error:e,fatal:!1},"Error generating key-session request: "+e)})).then((function(){return h})).catch((function(t){throw f.removeAllListeners(),a.removeSession(e),t})).then((function(){return f.removeAllListeners(),e}))}},{key:"onKeyStatusChange",value:function(e){var t=this;e.mediaKeysSession.keyStatuses.forEach((function(n,r){t.log('key status change "'.concat(n,'" for keyStatuses keyId: ').concat(we("buffer"in r?new Uint8Array(r.buffer,r.byteOffset,r.byteLength):new Uint8Array(r))," session keyId: ").concat(we(new Uint8Array(e.decryptdata.keyId||[]))," uri: ").concat(e.decryptdata.uri)),e.keyStatus=n}))}},{key:"fetchServerCertificate",value:function(e){var t=this.config,n=new(0,t.loader)(t),r=this.getServerCertificateUrl(e);return r?(this.log('Fetching server certificate for "'.concat(e,'"')),new Promise((function(i,o){var s={responseType:"arraybuffer",url:r},u=t.certLoadPolicy.default,c={loadPolicy:u,timeout:u.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},l={onSuccess:function(e,t,n,r){i(e.data)},onError:function(t,n,i,u){o(new So({type:w.KEY_SYSTEM_ERROR,details:S.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:i,response:a({url:s.url,data:void 0},t)},'"'.concat(e,'" certificate request failed (').concat(r,"). Status: ").concat(t.code," (").concat(t.text,")")))},onTimeout:function(t,n,i){o(new So({type:w.KEY_SYSTEM_ERROR,details:S.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:i,response:{url:s.url,data:void 0}},'"'.concat(e,'" certificate request timed out (').concat(r,")")))},onAbort:function(e,t,n){o(new Error("aborted"))}};n.load(s,c,l)}))):Promise.resolve()}},{key:"setMediaKeysServerCertificate",value:function(e,t,n){var r=this;return new Promise((function(i,o){e.setServerCertificate(n).then((function(o){r.log("setServerCertificate ".concat(o?"success":"not supported by CDM"," (").concat(null==n?void 0:n.byteLength,') on "').concat(t,'"')),i(e)})).catch((function(e){o(new So({type:w.KEY_SYSTEM_ERROR,details:S.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:e,fatal:!0},e.message))}))}))}},{key:"renewLicense",value:function(e,t){var n=this;return this.requestLicense(e,new Uint8Array(t)).then((function(t){return n.updateKeySession(e,new Uint8Array(t)).catch((function(e){throw new So({type:w.KEY_SYSTEM_ERROR,details:S.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:e,fatal:!0},e.message)}))}))}},{key:"unpackPlayReadyKeyMessage",value:function(e,t){var n=String.fromCharCode.apply(null,new Uint16Array(t.buffer));if(!n.includes("PlayReadyKeyMessage"))return e.setRequestHeader("Content-Type","text/xml; charset=utf-8"),t;var r=(new DOMParser).parseFromString(n,"application/xml"),i=r.querySelectorAll("HttpHeader");if(i.length>0)for(var o,a=0,s=i.length;a<s;a++){var u,c,l=null==(u=(o=i[a]).querySelector("name"))?void 0:u.textContent,f=null==(c=o.querySelector("value"))?void 0:c.textContent;l&&f&&e.setRequestHeader(l,f)}var d=r.querySelector("Challenge"),p=null==d?void 0:d.textContent;if(!p)throw new Error("Cannot find <Challenge> in key message");return Y(atob(p))}},{key:"setupLicenseXHR",value:function(e,t,n,r){var i=this,o=this.config.licenseXhrSetup;return o?Promise.resolve().then((function(){if(!n.decryptdata)throw new Error("Key removed");return o.call(i.hls,e,t,n,r)})).catch((function(a){if(!n.decryptdata)throw a;return e.open("POST",t,!0),o.call(i.hls,e,t,n,r)})).then((function(n){return e.readyState||e.open("POST",t,!0),{xhr:e,licenseChallenge:n||r}})):(e.open("POST",t,!0),Promise.resolve({xhr:e,licenseChallenge:r}))}},{key:"requestLicense",value:function(e,t){var n=this,r=this.config.keyLoadPolicy.default;return new Promise((function(i,o){var a=n.getLicenseServerUrl(e.keySystem);n.log("Sending license request to URL: "+a);var s=new XMLHttpRequest;s.responseType="arraybuffer",s.onreadystatechange=function(){if(!n.hls||!e.mediaKeysSession)return o(new Error("invalid state"));if(4===s.readyState)if(200===s.status){n._requestLicenseFailureCount=0;var u=s.response;n.log("License received "+(u instanceof ArrayBuffer?u.byteLength:u));var c=n.config.licenseResponseCallback;if(c)try{u=c.call(n.hls,s,a,e)}catch(e){n.error(e)}i(u)}else{var l=r.errorRetry,f=l?l.maxNumRetry:0;if(n._requestLicenseFailureCount++,n._requestLicenseFailureCount>f||s.status>=400&&s.status<500)o(new So({type:w.KEY_SYSTEM_ERROR,details:S.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:s,response:{url:a,data:void 0,code:s.status,text:s.statusText}},"License Request XHR failed (".concat(a,"). Status: ").concat(s.status," (").concat(s.statusText,")")));else{var d=f-n._requestLicenseFailureCount+1;n.warn("Retrying license request, ".concat(d," attempts left")),n.requestLicense(e,t).then(i,o)}}},e.licenseXhr&&e.licenseXhr.readyState!==XMLHttpRequest.DONE&&e.licenseXhr.abort(),e.licenseXhr=s,n.setupLicenseXHR(s,a,e,t).then((function(t){var r=t.xhr,i=t.licenseChallenge;e.keySystem==$.PLAYREADY&&(i=n.unpackPlayReadyKeyMessage(r,i)),r.send(i)}))}))}},{key:"onMediaAttached",value:function(e,t){if(this.config.emeEnabled){var n=t.media;this.media=n,n.addEventListener("encrypted",this.onMediaEncrypted),n.addEventListener("waitingforkey",this.onWaitingForKey)}}},{key:"onMediaDetached",value:function(){var t=this,n=this.media,r=this.mediaKeySessions;n&&(n.removeEventListener("encrypted",this.onMediaEncrypted),n.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null),this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},Ge.clearKeyUriToKeyIdMap();var i=r.length;e.CDMCleanupPromise=Promise.all(r.map((function(e){return t.removeSession(e)})).concat(null==n?void 0:n.setMediaKeys(null).catch((function(e){t.log("Could not clear media keys: "+e)})))).then((function(){i&&(t.log("finished closing key sessions and clearing media keys"),r.length=0)})).catch((function(e){t.log("Could not close sessions and clear media keys: "+e)}))}},{key:"onManifestLoading",value:function(){this.keyFormatPromise=null}},{key:"onManifestLoaded",value:function(e,t){var n=t.sessionKeys;if(n&&this.config.emeEnabled&&!this.keyFormatPromise){var r=n.reduce((function(e,t){return-1===e.indexOf(t.keyFormat)&&e.push(t.keyFormat),e}),[]);this.log("Selecting key-system from session-keys "+r.join(", ")),this.keyFormatPromise=this.getKeyFormatPromise(r)}}},{key:"removeSession",value:function(e){var t=this,n=e.mediaKeysSession,r=e.licenseXhr;if(n){this.log("Remove licenses and keys and close session "+n.sessionId),e._onmessage&&(n.removeEventListener("message",e._onmessage),e._onmessage=void 0),e._onkeystatuseschange&&(n.removeEventListener("keystatuseschange",e._onkeystatuseschange),e._onkeystatuseschange=void 0),r&&r.readyState!==XMLHttpRequest.DONE&&r.abort(),e.mediaKeysSession=e.decryptdata=e.licenseXhr=void 0;var i=this.mediaKeySessions.indexOf(e);return i>-1&&this.mediaKeySessions.splice(i,1),n.remove().catch((function(e){t.log("Could not remove session: "+e)})).then((function(){return n.close()})).catch((function(e){t.log("Could not close session: "+e)}))}}}])}();bo.CDMCleanupPromise=void 0;var xo,wo,_o,So=function(e){function t(e,n){var r;return _(this,t),(r=g(this,t,[n])).data=void 0,e.error||(e.error=new Error(n)),r.data=e,e.err=e.error,r}return x(t,e),O(t)}(h(Error));!function(e){e.MANIFEST="m",e.AUDIO="a",e.VIDEO="v",e.MUXED="av",e.INIT="i",e.CAPTION="c",e.TIMED_TEXT="tt",e.KEY="k",e.OTHER="o"}(xo||(xo={})),function(e){e.DASH="d",e.HLS="h",e.SMOOTH="s",e.OTHER="o"}(wo||(wo={})),function(e){e.OBJECT="CMCD-Object",e.REQUEST="CMCD-Request",e.SESSION="CMCD-Session",e.STATUS="CMCD-Status"}(_o||(_o={}));var Oo=E(E(E(E({},_o.OBJECT,["br","d","ot","tb"]),_o.REQUEST,["bl","dl","mtp","nor","nrr","su"]),_o.SESSION,["cid","pr","sf","sid","st","v"]),_o.STATUS,["bs","rtp"]),ko=O((function e(t,n){_(this,e),this.value=void 0,this.params=void 0,Array.isArray(t)&&(t=t.map((function(t){return t instanceof e?t:new e(t)}))),this.value=t,this.params=n})),Eo=O((function e(t){_(this,e),this.description=void 0,this.description=t})),jo=/[\x00-\x1f\x7f]+/;function To(e,t,n){return function(e,t,n,r){return new Error("failed to ".concat(e,' "').concat((i=t,Array.isArray(i)?JSON.stringify(i):i instanceof Map?"Map{}":i instanceof Set?"Set{}":"object"==I(i)?JSON.stringify(i):String(i)),'" as ').concat(n),{cause:r});var i}("serialize",e,t,n)}function Co(e){if(function(e){return e<-999999999999999||999999999999999<e}(e))throw To(e,"Integer");return e.toString()}function Ao(e){var t,n=(t=e).description||t.toString().slice(7,-1);if(!1===/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(n))throw To(n,"Token");return n}function Po(e){switch(I(e)){case"number":if(!f(e))throw To(e,"Bare Item");return Number.isInteger(e)?Co(e):function(e){var t=function e(t,n){if(t<0)return-e(-t,n);var r=Math.pow(10,n);if(Math.abs(t*r%1-.5)<Number.EPSILON){var i=Math.floor(t*r);return(i%2==0?i:i+1)/r}return Math.round(t*r)/r}(e,3);if(Math.floor(Math.abs(t)).toString().length>12)throw To(e,"Decimal");var n=t.toString();return n.includes(".")?n:n+".0"}(e);case"string":return function(e){if(jo.test(e))throw To(e,"String");return'"'.concat(e.replace(/\\/g,"\\\\").replace(/"/g,'\\"'),'"')}(e);case"symbol":return Ao(e);case"boolean":return function(e){if("boolean"!=typeof e)throw To(e,"Boolean");return e?"?1":"?0"}(e);case"object":if(e instanceof Date)return function(e){return"@"+Co(e.getTime()/1e3)}(e);if(e instanceof Uint8Array)return function(e){if(!1===ArrayBuffer.isView(e))throw To(e,"Byte Sequence");return":".concat((t=e,btoa(String.fromCharCode.apply(String,l(t)))),":");var t}(e);if(e instanceof Eo)return Ao(e);default:throw To(e,"Bare Item")}}function Mo(e){if(!1===/^[a-z*][a-z0-9\-_.*]*$/.test(e))throw To(e,"Key");return e}function Io(e){return null==e?"":Object.entries(e).map((function(e){var t=T(e,2),n=t[0],r=t[1];return!0===r?";"+Mo(n):";".concat(Mo(n),"=").concat(Po(r))})).join("")}function Ro(e){return e instanceof ko?"".concat(Po(e.value)).concat(Io(e.params)):Po(e)}var Do=function(e){return Math.round(e)},Lo=function(e){return 100*Do(e/100)},No={br:Do,d:Do,bl:Lo,dl:Lo,mtp:Lo,nor:function(e,t){return null!=t&&t.baseUrl&&(e=function(e,t){var n=new URL(e),r=new URL(t);if(n.origin!==r.origin)return e;for(var i=n.pathname.split("/").slice(1),o=r.pathname.split("/").slice(1,-1);i[0]===o[0];)i.shift(),o.shift();for(;o.length;)o.shift(),i.unshift("..");return i.join("/")}(e,t.baseUrl)),encodeURIComponent(e)},rtp:Lo,tb:Do};function Fo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e?function(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{whitespace:!0};if("object"!=I(e))throw To(e,"Dict");var n=e instanceof Map?e.entries():Object.entries(e),r=null!=t&&t.whitespace?" ":"";return Array.from(n).map((function(e){var t=T(e,2),n=t[0],r=t[1];r instanceof ko==0&&(r=new ko(r));var i,o=Mo(n);return!0===r.value?o+=Io(r.params):(o+="=",Array.isArray(r.value)?o+="(".concat((i=r).value.map(Ro).join(" "),")").concat(Io(i.params)):o+=Ro(r)),o})).join(","+r)}(e,t)}(function(e,t){var n={};if(null==e||"object"!=I(e))return n;var r=Object.keys(e).sort(),i=u({},No,null==t?void 0:t.formatters),o=null==t?void 0:t.filter;return r.forEach((function(r){if(null==o||!o(r)){var a=e[r],s=i[r];s&&(a=s(a,t)),"v"===r&&1===a||"pr"==r&&1===a||function(e){return"number"==typeof e?f(e):null!=e&&""!==e&&!1!==e}(a)&&(function(e){return"ot"===e||"sf"===e||"st"===e}(r)&&"string"==typeof a&&(a=new Eo(a)),n[r]=a)}})),n}(e,t),u({whitespace:!1},t)):""}function Bo(e,t,n){return u(e,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return{};var n=Object.entries(e),r=Object.entries(Oo).concat(Object.entries((null==t?void 0:t.customHeaderMap)||{})),i=n.reduce((function(e,t){var n,i=T(t,2),o=i[0],a=i[1],s=(null==(n=r.find((function(e){return e[1].includes(o)})))?void 0:n[0])||_o.REQUEST;return null!=e[s]||(e[s]={}),e[s][o]=a,e}),{});return Object.entries(i).reduce((function(e,n){var r=T(n,2),i=r[0],o=r[1];return e[i]=Fo(o,t),e}),{})}(t,n))}var Uo=/CMCD=[^&#]+/;function zo(e,t,n){var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return"";var n=Fo(e,t);return"CMCD="+encodeURIComponent(n)}(t,n);if(!r)return e;if(Uo.test(e))return e.replace(Uo,r);var i=e.includes("?")?"&":"?";return"".concat(e).concat(i).concat(r)}var Vo=function(){return O((function e(t){var n=this;_(this,e),this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.includeKeys=void 0,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=function(){n.initialized&&(n.starved=!0),n.buffering=!0},this.onPlaying=function(){n.initialized||(n.initialized=!0),n.buffering=!1},this.applyPlaylistData=function(e){try{n.apply(e,{ot:xo.MANIFEST,su:!n.initialized})}catch(e){P.warn("Could not generate manifest CMCD data.",e)}},this.applyFragmentData=function(e){try{var t=e.frag,r=n.hls.levels[t.level],i=n.getObjectType(t),o={d:1e3*t.duration,ot:i};i!==xo.VIDEO&&i!==xo.AUDIO&&i!=xo.MUXED||(o.br=r.bitrate/1e3,o.tb=n.getTopBandwidth(i)/1e3,o.bl=n.getBufferLength(i)),n.apply(e,o)}catch(e){P.warn("Could not generate segment CMCD data.",e)}},this.hls=t;var r=this.config=t.config,i=r.cmcd;null!=i&&(r.pLoader=this.createPlaylistLoader(),r.fLoader=this.createFragmentLoader(),this.sid=i.sessionId||function(){try{return crypto.randomUUID()}catch(r){try{var e=URL.createObjectURL(new Blob),t=e.toString();return URL.revokeObjectURL(e),t.slice(t.lastIndexOf("/")+1)}catch(e){var n=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=(n+16*Math.random())%16|0;return n=Math.floor(n/16),("x"==e?t:3&t|8).toString(16)}))}}}(),this.cid=i.contentId,this.useHeaders=!0===i.useHeaders,this.includeKeys=i.includeKeys,this.registerListeners())}),[{key:"registerListeners",value:function(){var e=this.hls;e.on(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(m.MEDIA_DETACHED,this.onMediaDetached,this),e.on(m.BUFFER_CREATED,this.onBufferCreated,this)}},{key:"unregisterListeners",value:function(){var e=this.hls;e.off(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(m.MEDIA_DETACHED,this.onMediaDetached,this),e.off(m.BUFFER_CREATED,this.onBufferCreated,this)}},{key:"destroy",value:function(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=null}},{key:"onMediaAttached",value:function(e,t){this.media=t.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)}},{key:"onMediaDetached",value:function(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)}},{key:"onBufferCreated",value:function(e,t){var n,r;this.audioBuffer=null==(n=t.tracks.audio)?void 0:n.buffer,this.videoBuffer=null==(r=t.tracks.video)?void 0:r.buffer}},{key:"createData",value:function(){var e;return{v:1,sf:wo.HLS,sid:this.sid,cid:this.cid,pr:null==(e=this.media)?void 0:e.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}},{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u(t,this.createData());var n=t.ot===xo.INIT||t.ot===xo.VIDEO||t.ot===xo.MUXED;this.starved&&n&&(t.bs=!0,t.su=!0,this.starved=!1),null==t.su&&(t.su=this.buffering);var r=this.includeKeys;r&&(t=Object.keys(t).reduce((function(e,n){return r.includes(n)&&(e[n]=t[n]),e}),{})),this.useHeaders?(e.headers||(e.headers={}),Bo(e.headers,t)):e.url=zo(e.url,t)}},{key:"getObjectType",value:function(e){var t=e.type;return"subtitle"===t?xo.TIMED_TEXT:"initSegment"===e.sn?xo.INIT:"audio"===t?xo.AUDIO:"main"===t?this.hls.audioTracks.length?xo.VIDEO:xo.MUXED:void 0}},{key:"getTopBandwidth",value:function(e){var t,n=0,r=this.hls;if(e===xo.AUDIO)t=r.audioTracks;else{var i=r.maxAutoLevel,o=i>-1?i+1:r.levels.length;t=r.levels.slice(0,o)}var a,s=c(t);try{for(s.s();!(a=s.n()).done;){var u=a.value;u.bitrate>n&&(n=u.bitrate)}}catch(e){s.e(e)}finally{s.f()}return n>0?n:NaN}},{key:"getBufferLength",value:function(e){var t=this.hls.media,n=e===xo.AUDIO?this.audioBuffer:this.videoBuffer;return n&&t?1e3*Ln.bufferInfo(n,t.currentTime,this.config.maxBufferHole).len:NaN}},{key:"createPlaylistLoader",value:function(){var e=this.config.pLoader,t=this.applyPlaylistData,n=e||this.config.loader;return(function(){return O((function e(t){_(this,e),this.loader=void 0,this.loader=new n(t)}),[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}},{key:"destroy",value:function(){this.loader.destroy()}},{key:"abort",value:function(){this.loader.abort()}},{key:"load",value:function(e,n,r){t(e),this.loader.load(e,n,r)}}])}())}},{key:"createFragmentLoader",value:function(){var e=this.config.fLoader,t=this.applyFragmentData,n=e||this.config.loader;return(function(){return O((function e(t){_(this,e),this.loader=void 0,this.loader=new n(t)}),[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}},{key:"destroy",value:function(){this.loader.destroy()}},{key:"abort",value:function(){this.loader.abort()}},{key:"load",value:function(e,n,r){t(e),this.loader.load(e,n,r)}}])}())}}])}(),Ho=function(){return O((function e(t){_(this,e),this.hls=void 0,this.log=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this.pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=t,this.log=P.log.bind(P,"[content-steering]:"),this.registerListeners()}),[{key:"registerListeners",value:function(){var e=this.hls;e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(m.MANIFEST_PARSED,this.onManifestParsed,this),e.on(m.ERROR,this.onError,this)}},{key:"unregisterListeners",value:function(){var e=this.hls;e&&(e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(m.MANIFEST_PARSED,this.onManifestParsed,this),e.off(m.ERROR,this.onError,this))}},{key:"startLoad",value:function(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){var e=1e3*this.timeToLoad-(performance.now()-this.updated);if(e>0)return void this.scheduleRefresh(this.uri,e)}this.loadSteeringManifest(this.uri)}}},{key:"stopLoad",value:function(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()}},{key:"clearTimeout",value:function(){-1!==this.reloadTimer&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)}},{key:"destroy",value:function(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}},{key:"removeLevel",value:function(e){var t=this.levels;t&&(this.levels=t.filter((function(t){return t!==e})))}},{key:"onManifestLoading",value:function(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null}},{key:"onManifestLoaded",value:function(e,t){var n=t.contentSteering;null!==n&&(this.pathwayId=n.pathwayId,this.uri=n.uri,this.started&&this.startLoad())}},{key:"onManifestParsed",value:function(e,t){this.audioTracks=t.audioTracks,this.subtitleTracks=t.subtitleTracks}},{key:"onError",value:function(e,t){var n=t.errorAction;if((null==n?void 0:n.action)===pn.SendAlternateToPenaltyBox&&n.flags===hn.MoveAllAlternatesMatchingHost){var r=this.levels,i=this.pathwayPriority,o=this.pathwayId;if(t.context){var a=t.context,s=a.groupId,u=a.pathwayId,c=a.type;s&&r?o=this.getPathwayForGroupId(s,c,o):u&&(o=u)}o in this.penalizedPathways||(this.penalizedPathways[o]=performance.now()),!i&&r&&(i=r.reduce((function(e,t){return-1===e.indexOf(t.pathwayId)&&e.push(t.pathwayId),e}),[])),i&&i.length>1&&(this.updatePathwayPriority(i),n.resolved=this.pathwayId!==o),n.resolved||P.warn("Could not resolve ".concat(t.details,' ("').concat(t.error.message,'") with content-steering for Pathway: ').concat(o," levels: ").concat(r?r.length:r," priorities: ").concat(JSON.stringify(i)," penalized: ").concat(JSON.stringify(this.penalizedPathways)))}}},{key:"filterParsedLevels",value:function(e){this.levels=e;var t=this.getLevelsForPathway(this.pathwayId);if(0===t.length){var n=e[0].pathwayId;this.log("No levels found in Pathway ".concat(this.pathwayId,'. Setting initial Pathway to "').concat(n,'"')),t=this.getLevelsForPathway(n),this.pathwayId=n}return t.length!==e.length?(this.log("Found ".concat(t.length,"/").concat(e.length,' levels in Pathway "').concat(this.pathwayId,'"')),t):e}},{key:"getLevelsForPathway",value:function(e){return null===this.levels?[]:this.levels.filter((function(t){return e===t.pathwayId}))}},{key:"updatePathwayPriority",value:function(e){var t;this.pathwayPriority=e;var n=this.penalizedPathways,r=performance.now();Object.keys(n).forEach((function(e){r-n[e]>3e5&&delete n[e]}));for(var i=0;i<e.length;i++){var o=e[i];if(!(o in n)){if(o===this.pathwayId)return;var a=this.hls.nextLoadLevel,s=this.hls.levels[a];if((t=this.getLevelsForPathway(o)).length>0){this.log('Setting Pathway to "'.concat(o,'"')),this.pathwayId=o,nn(t),this.hls.trigger(m.LEVELS_UPDATED,{levels:t});var u=this.hls.levels[a];s&&u&&this.levels&&(u.attrs["STABLE-VARIANT-ID"]!==s.attrs["STABLE-VARIANT-ID"]&&u.bitrate!==s.bitrate&&this.log("Unstable Pathways change from bitrate ".concat(s.bitrate," to ").concat(u.bitrate)),this.hls.nextLoadLevel=a);break}}}}},{key:"getPathwayForGroupId",value:function(e,t,n){for(var r=this.getLevelsForPathway(n).concat(this.levels||[]),i=0;i<r.length;i++)if(t===kt&&r[i].hasAudioGroup(e)||t===Et&&r[i].hasSubtitleGroup(e))return r[i].pathwayId;return n}},{key:"clonePathways",value:function(e){var t=this,n=this.levels;if(n){var r={},i={};e.forEach((function(e){var o=e.ID,a=e["BASE-ID"],s=e["URI-REPLACEMENT"];if(!n.some((function(e){return e.pathwayId===o}))){var u=t.getLevelsForPathway(a).map((function(e){var t=new D(e.attrs);t["PATHWAY-ID"]=o;var n=t.AUDIO&&"".concat(t.AUDIO,"_clone_").concat(o),a=t.SUBTITLES&&"".concat(t.SUBTITLES,"_clone_").concat(o);n&&(r[t.AUDIO]=n,t.AUDIO=n),a&&(i[t.SUBTITLES]=a,t.SUBTITLES=a);var u=qo(e.uri,t["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",s),c=new Kt({attrs:t,audioCodec:e.audioCodec,bitrate:e.bitrate,height:e.height,name:e.name,url:u,videoCodec:e.videoCodec,width:e.width});if(e.audioGroups)for(var l=1;l<e.audioGroups.length;l++)c.addGroupId("audio","".concat(e.audioGroups[l],"_clone_").concat(o));if(e.subtitleGroups)for(var f=1;f<e.subtitleGroups.length;f++)c.addGroupId("text","".concat(e.subtitleGroups[f],"_clone_").concat(o));return c}));n.push.apply(n,l(u)),Wo(t.audioTracks,r,s,o),Wo(t.subtitleTracks,i,s,o)}}))}}},{key:"loadSteeringManifest",value:function(e){var t,n=this,r=this.hls.config,i=r.loader;this.loader&&this.loader.destroy(),this.loader=new i(r);try{t=new self.URL(e)}catch(r){return this.enabled=!1,void this.log("Failed to parse Steering Manifest URI: "+e)}if("data:"!==t.protocol){var o=0|(this.hls.bandwidthEstimate||r.abrEwmaDefaultEstimate);t.searchParams.set("_HLS_pathway",this.pathwayId),t.searchParams.set("_HLS_throughput",""+o)}var a={responseType:"json",url:t.href},s=r.steeringManifestLoadPolicy.default,u=s.errorRetry||s.timeoutRetry||{},c={loadPolicy:s,timeout:s.maxLoadTimeMs,maxRetry:u.maxNumRetry||0,retryDelay:u.retryDelayMs||0,maxRetryDelay:u.maxRetryDelayMs||0},l={onSuccess:function(e,r,i,o){n.log('Loaded steering manifest: "'.concat(t,'"'));var a=e.data;if(1===a.VERSION){n.updated=performance.now(),n.timeToLoad=a.TTL;var s=a["RELOAD-URI"],u=a["PATHWAY-CLONES"],c=a["PATHWAY-PRIORITY"];if(s)try{n.uri=new self.URL(s,t).href}catch(e){return n.enabled=!1,void n.log("Failed to parse Steering Manifest RELOAD-URI: "+s)}n.scheduleRefresh(n.uri||i.url),u&&n.clonePathways(u);var l={steeringManifest:a,url:t.toString()};n.hls.trigger(m.STEERING_MANIFEST_LOADED,l),c&&n.updatePathwayPriority(c)}else n.log("Steering VERSION ".concat(a.VERSION," not supported!"))},onError:function(e,t,r,i){if(n.log("Error loading steering manifest: ".concat(e.code," ").concat(e.text," (").concat(t.url,")")),n.stopLoad(),410===e.code)return n.enabled=!1,void n.log("Steering manifest ".concat(t.url," no longer available"));var o=1e3*n.timeToLoad;if(429!==e.code)n.scheduleRefresh(n.uri||t.url,o);else{var a=n.loader;if("function"==typeof(null==a?void 0:a.getResponseHeader)){var s=a.getResponseHeader("Retry-After");s&&(o=1e3*parseFloat(s))}n.log("Steering manifest ".concat(t.url," rate limited"))}},onTimeout:function(e,t,r){n.log("Timeout loading steering manifest (".concat(t.url,")")),n.scheduleRefresh(n.uri||t.url)}};this.log("Requesting steering manifest: "+t),this.loader.load(a,c,l)}},{key:"scheduleRefresh",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3*this.timeToLoad;this.clearTimeout(),this.reloadTimer=self.setTimeout((function(){var n,r=null==(n=t.hls)?void 0:n.media;!r||r.ended?t.scheduleRefresh(e,1e3*t.timeToLoad):t.loadSteeringManifest(e)}),n)}}])}();function Wo(e,t,n,r){e&&Object.keys(t).forEach((function(i){var o=e.filter((function(e){return e.groupId===i})).map((function(e){var o=u({},e);return o.details=void 0,o.attrs=new D(o.attrs),o.url=o.attrs.URI=qo(e.url,e.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",n),o.groupId=o.attrs["GROUP-ID"]=t[i],o.attrs["PATHWAY-ID"]=r,o}));e.push.apply(e,l(o))}))}function qo(e,t,n,r){var i,o=r.HOST,a=r.PARAMS,s=r[n];t&&(i=null==s?void 0:s[t])&&(e=i);var u=new self.URL(e);return o&&!i&&(u.host=o),a&&Object.keys(a).sort().forEach((function(e){e&&u.searchParams.set(e,a[e])})),u.href}var Go=/^age:\s*[\d.]+\s*$/im,Yo=function(){return O((function e(t){_(this,e),this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=null,this.loader=null,this.stats=void 0,this.xhrSetup=t&&t.xhrSetup||null,this.stats=new F,this.retryDelay=0}),[{key:"destroy",value:function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null,this.context=null,this.xhrSetup=null}},{key:"abortInternal",value:function(){var e=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),e&&(e.onreadystatechange=null,e.onprogress=null,4!==e.readyState&&(this.stats.aborted=!0,e.abort()))}},{key:"abort",value:function(){var e;this.abortInternal(),null!=(e=this.callbacks)&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)}},{key:"load",value:function(e,t,n){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=e,this.config=t,this.callbacks=n,this.loadInternal()}},{key:"loadInternal",value:function(){var e=this,t=this.config,n=this.context;if(t&&n){var r=this.loader=new self.XMLHttpRequest,i=this.stats;i.loading.first=0,i.loaded=0,i.aborted=!1;var o=this.xhrSetup;o?Promise.resolve().then((function(){if(e.loader===r&&!e.stats.aborted)return o(r,n.url)})).catch((function(t){if(e.loader===r&&!e.stats.aborted)return r.open("GET",n.url,!0),o(r,n.url)})).then((function(){e.loader!==r||e.stats.aborted||e.openAndSendXhr(r,n,t)})).catch((function(t){e.callbacks.onError({code:r.status,text:t.message},n,r,i)})):this.openAndSendXhr(r,n,t)}}},{key:"openAndSendXhr",value:function(e,t,n){e.readyState||e.open("GET",t.url,!0);var r=t.headers,i=n.loadPolicy,o=i.maxTimeToFirstByteMs,a=i.maxLoadTimeMs;if(r)for(var s in r)e.setRequestHeader(s,r[s]);t.rangeEnd&&e.setRequestHeader("Range","bytes="+t.rangeStart+"-"+(t.rangeEnd-1)),e.onreadystatechange=this.readystatechange.bind(this),e.onprogress=this.loadprogress.bind(this),e.responseType=t.responseType,self.clearTimeout(this.requestTimeout),n.timeout=o&&f(o)?o:a,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout),e.send()}},{key:"readystatechange",value:function(){var e=this.context,t=this.loader,n=this.stats;if(e&&t){var r=t.readyState,i=this.config;if(!n.aborted&&r>=2&&(0===n.loading.first&&(n.loading.first=Math.max(self.performance.now(),n.loading.start),i.timeout!==i.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),i.timeout=i.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),i.loadPolicy.maxLoadTimeMs-(n.loading.first-n.loading.start)))),4===r)){self.clearTimeout(this.requestTimeout),t.onreadystatechange=null,t.onprogress=null;var o=t.status,a="text"!==t.responseType;if(o>=200&&o<300&&(a&&t.response||null!==t.responseText)){n.loading.end=Math.max(self.performance.now(),n.loading.first);var s=a?t.response:t.responseText,u="arraybuffer"===t.responseType?s.byteLength:s.length;if(n.loaded=n.total=u,n.bwEstimate=8e3*n.total/(n.loading.end-n.loading.first),!this.callbacks)return;var c=this.callbacks.onProgress;if(c&&c(n,e,s,t),!this.callbacks)return;var l={url:t.responseURL,data:s,code:o};this.callbacks.onSuccess(l,n,e,t)}else{var f=i.loadPolicy.errorRetry;un(f,n.retry,!1,{url:e.url,data:void 0,code:o})?this.retry(f):(P.error("".concat(o," while loading ").concat(e.url)),this.callbacks.onError({code:o,text:t.statusText},e,t,n))}}}}},{key:"loadtimeout",value:function(){if(this.config){var e=this.config.loadPolicy.timeoutRetry;if(un(e,this.stats.retry,!0))this.retry(e);else{var t;P.warn("timeout while loading "+(null==(t=this.context)?void 0:t.url));var n=this.callbacks;n&&(this.abortInternal(),n.onTimeout(this.stats,this.context,this.loader))}}}},{key:"retry",value:function(e){var t=this.context,n=this.stats;this.retryDelay=an(e,n.retry),n.retry++,P.warn("".concat(status?"HTTP Status "+status:"Timeout"," while loading ").concat(null==t?void 0:t.url,", retrying ").concat(n.retry,"/").concat(e.maxNumRetry," in ").concat(this.retryDelay,"ms")),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)}},{key:"loadprogress",value:function(e){var t=this.stats;t.loaded=e.loaded,e.lengthComputable&&(t.total=e.total)}},{key:"getCacheAge",value:function(){var e=null;if(this.loader&&Go.test(this.loader.getAllResponseHeaders())){var t=this.loader.getResponseHeader("age");e=t?parseFloat(t):null}return e}},{key:"getResponseHeader",value:function(e){return this.loader&&new RegExp("^".concat(e,":\\s*[\\d.]+\\s*$"),"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(e):null}}])}(),Ko=/(\d+)-(\d+)\/(\d+)/,$o=function(){return O((function e(t){_(this,e),this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=null,this.response=null,this.controller=void 0,this.context=null,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=t.fetchSetup||Xo,this.controller=new self.AbortController,this.stats=new F}),[{key:"destroy",value:function(){this.loader=this.callbacks=this.context=this.config=this.request=null,this.abortInternal(),this.response=null,this.fetchSetup=this.controller=this.stats=null}},{key:"abortInternal",value:function(){this.controller&&!this.stats.loading.end&&(this.stats.aborted=!0,this.controller.abort())}},{key:"abort",value:function(){var e;this.abortInternal(),null!=(e=this.callbacks)&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)}},{key:"load",value:function(e,t,n){var r=this,i=this.stats;if(i.loading.start)throw new Error("Loader can only be used once.");i.loading.start=self.performance.now();var o=function(e,t){var n={method:"GET",mode:"cors",credentials:"same-origin",signal:t,headers:new self.Headers(u({},e.headers))};return e.rangeEnd&&n.headers.set("Range","bytes="+e.rangeStart+"-"+String(e.rangeEnd-1)),n}(e,this.controller.signal),a=n.onProgress,s="arraybuffer"===e.responseType,c=s?"byteLength":"length",l=t.loadPolicy,d=l.maxTimeToFirstByteMs,p=l.maxLoadTimeMs;this.context=e,this.config=t,this.callbacks=n,this.request=this.fetchSetup(e,o),self.clearTimeout(this.requestTimeout),t.timeout=d&&f(d)?d:p,this.requestTimeout=self.setTimeout((function(){r.abortInternal(),n.onTimeout(i,e,r.response)}),t.timeout),self.fetch(this.request).then((function(o){r.response=r.loader=o;var u=Math.max(self.performance.now(),i.loading.start);if(self.clearTimeout(r.requestTimeout),t.timeout=p,r.requestTimeout=self.setTimeout((function(){r.abortInternal(),n.onTimeout(i,e,r.response)}),p-(u-i.loading.start)),!o.ok){var c=o.status,l=o.statusText;throw new Zo(l||"fetch, bad network response",c,o)}return i.loading.first=u,i.total=function(e){var t=e.get("Content-Range");if(t){var n=function(e){var t=Ko.exec(e);if(t)return parseInt(t[2])-parseInt(t[1])+1}(t);if(f(n))return n}var r=e.get("Content-Length");if(r)return parseInt(r)}(o.headers)||i.total,a&&f(t.highWaterMark)?r.loadProgressively(o,i,e,t.highWaterMark,a):s?o.arrayBuffer():"json"===e.responseType?o.json():o.text()})).then((function(o){var s=r.response;if(!s)throw new Error("loader destroyed");self.clearTimeout(r.requestTimeout),i.loading.end=Math.max(self.performance.now(),i.loading.first);var u=o[c];u&&(i.loaded=i.total=u);var l={url:s.url,data:o,code:s.status};a&&!f(t.highWaterMark)&&a(i,e,o,s),n.onSuccess(l,i,e,s)})).catch((function(t){if(self.clearTimeout(r.requestTimeout),!i.aborted){var o=t&&t.code||0,a=t?t.message:null;n.onError({code:o,text:a},e,t?t.details:null,i)}}))}},{key:"getCacheAge",value:function(){var e=null;if(this.response){var t=this.response.headers.get("age");e=t?parseFloat(t):null}return e}},{key:"getResponseHeader",value:function(e){return this.response?this.response.headers.get(e):null}},{key:"loadProgressively",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4?arguments[4]:void 0,o=new lr,a=e.body.getReader(),s=function(){return a.read().then((function(a){if(a.done)return o.dataLength&&i(t,n,o.flush(),e),Promise.resolve(new ArrayBuffer(0));var u=a.value,c=u.length;return t.loaded+=c,c<r||o.dataLength?(o.push(u),o.dataLength>=r&&i(t,n,o.flush(),e)):i(t,n,u,e),s()})).catch((function(){return Promise.reject()}))};return s()}}])}();function Xo(e,t){return new self.Request(e.url,t)}var Qo,Zo=function(e){function t(e,n,r){var i;return _(this,t),(i=g(this,t,[e])).code=void 0,i.details=void 0,i.code=n,i.details=r,i}return x(t,e),O(t)}(h(Error)),Jo=/\s/,ea=a(a({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,maxBufferSize:6e7,maxBufferHole:.1,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:Yo,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:jn,bufferController:ki,capLevelController:mo,errorController:vn,fpsController:yo,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrEwmaDefaultEstimateMax:5e6,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:ne,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableID3MetadataCues:!0,useMediaCapabilities:!0,certLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null}},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},{cueHandler:{newCue:function(e,t,n,r){for(var i,o,a,s,u,c=[],l=self.VTTCue||self.TextTrackCue,f=0;f<r.rows.length;f++)if(a=!0,s=0,u="",!(i=r.rows[f]).isEmpty()){for(var d,p=0;p<i.chars.length;p++)Jo.test(i.chars[p].uchar)&&a?s++:(u+=i.chars[p].uchar,a=!1);i.cueStartTime=t,t===n&&(n+=1e-4),s>=16?s--:s++;var h=Zi(u.trim()),v=ro(t,n,h);null!=e&&null!=(d=e.cues)&&d.getCueById(v)||((o=new l(t,n,h)).id=v,o.line=f+1,o.align="left",o.position=10+Math.min(80,10*Math.floor(8*s/32)),c.push(o))}return e&&c.length&&(c.sort((function(e,t){return"auto"===e.line||"auto"===t.line?0:e.line>8&&t.line>8?t.line-e.line:e.line-t.line})),c.forEach((function(t){return Mt(e,t)}))),c}},enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}),{},{subtitleStreamController:xi,subtitleTrackController:_i,timelineController:ho,audioStreamController:yi,audioTrackController:bi,emeController:bo,cmcdController:Vo,contentSteeringController:Ho});function ta(e){return e&&"object"==I(e)?Array.isArray(e)?e.map(ta):Object.keys(e).reduce((function(t,n){return t[n]=ta(e[n]),t}),{}):e}var na=function(e){function t(e,n){var r;return _(this,t),(r=g(this,t,[e,"[level-controller]"]))._levels=[],r._firstLevel=-1,r._maxAutoLevel=-1,r._startLevel=void 0,r.currentLevel=null,r.currentLevelIndex=-1,r.manualLevelIndex=-1,r.steering=void 0,r.onParsedComplete=void 0,r.steering=n,r._registerListeners(),r}return x(t,e),O(t,[{key:"_registerListeners",value:function(){var e=this.hls;e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(m.LEVEL_LOADED,this.onLevelLoaded,this),e.on(m.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(m.FRAG_BUFFERED,this.onFragBuffered,this),e.on(m.ERROR,this.onError,this)}},{key:"_unregisterListeners",value:function(){var e=this.hls;e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(m.LEVEL_LOADED,this.onLevelLoaded,this),e.off(m.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(m.FRAG_BUFFERED,this.onFragBuffered,this),e.off(m.ERROR,this.onError,this)}},{key:"destroy",value:function(){this._unregisterListeners(),this.steering=null,this.resetLevels(),d(b(t.prototype),"destroy",this).call(this)}},{key:"stopLoad",value:function(){this._levels.forEach((function(e){e.loadError=0,e.fragmentError=0})),d(b(t.prototype),"stopLoad",this).call(this)}},{key:"resetLevels",value:function(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[],this._maxAutoLevel=-1}},{key:"onManifestLoading",value:function(e,t){this.resetLevels()}},{key:"onManifestLoaded",value:function(e,t){var n=this.hls.config.preferManagedMediaSource,r=[],i={},o={},a=!1,s=!1,u=!1;t.levels.forEach((function(e){var t,c,l=e.attrs,f=e.audioCodec,d=e.videoCodec;-1!==(null==(t=f)?void 0:t.indexOf("mp4a.40.34"))&&(Qo||(Qo=/chrome|firefox/i.test(navigator.userAgent)),Qo&&(e.audioCodec=f=void 0)),f&&(e.audioCodec=f=ut(f,n)),0===(null==(c=d)?void 0:c.indexOf("avc1"))&&(d=e.videoCodec=function(e){for(var t=e.split(","),n=0;n<t.length;n++){var r=t[n].split(".");if(r.length>2){var i=r.shift()+".";i+=parseInt(r.shift()).toString(16),i+=("000"+parseInt(r.shift()).toString(16)).slice(-4),t[n]=i}}return t.join(",")}(d));var p=e.width,h=e.height,v=e.unknownCodecs;if(a||(a=!(!p||!h)),s||(s=!!d),u||(u=!!f),!(null!=v&&v.length||f&&!tt(f,"audio",n)||d&&!tt(d,"video",n))){var g=l.CODECS,m=l["FRAME-RATE"],y=l["HDCP-LEVEL"],b=l["PATHWAY-ID"],x=l.RESOLUTION,w=l["VIDEO-RANGE"],_="".concat((b||".")+"-").concat(e.bitrate,"-").concat(x,"-").concat(m,"-").concat(g,"-").concat(w,"-").concat(y);if(i[_])if(i[_].uri===e.url||e.attrs["PATHWAY-ID"])i[_].addGroupId("audio",l.AUDIO),i[_].addGroupId("text",l.SUBTITLES);else{var S=o[_]+=1;e.attrs["PATHWAY-ID"]=new Array(S+1).join(".");var O=new Kt(e);i[_]=O,r.push(O)}else{var k=new Kt(e);i[_]=k,o[_]=1,r.push(k)}}})),this.filterAndSortMediaOptions(r,t,a,s,u)}},{key:"filterAndSortMediaOptions",value:function(e,t,n,r,i){var o=this,a=[],s=[],u=e;if((n||r)&&i&&(u=u.filter((function(e){var t,n=e.videoCodec,r=e.videoRange,i=e.width,o=e.height;return(!!n||!(!i||!o))&&!!(t=r)&&Wt.indexOf(t)>-1}))),0!==u.length){if(t.audioTracks){var c=this.hls.config.preferManagedMediaSource;ra(a=t.audioTracks.filter((function(e){return!e.audioCodec||tt(e.audioCodec,"audio",c)})))}t.subtitles&&ra(s=t.subtitles);var l=u.slice(0);u.sort((function(e,t){if(e.attrs["HDCP-LEVEL"]!==t.attrs["HDCP-LEVEL"])return(e.attrs["HDCP-LEVEL"]||"")>(t.attrs["HDCP-LEVEL"]||"")?1:-1;if(n&&e.height!==t.height)return e.height-t.height;if(e.frameRate!==t.frameRate)return e.frameRate-t.frameRate;if(e.videoRange!==t.videoRange)return Wt.indexOf(e.videoRange)-Wt.indexOf(t.videoRange);if(e.videoCodec!==t.videoCodec){var r=it(e.videoCodec),i=it(t.videoCodec);if(r!==i)return i-r}if(e.uri===t.uri&&e.codecSet!==t.codecSet){var o=ot(e.codecSet),a=ot(t.codecSet);if(o!==a)return a-o}return e.averageBitrate!==t.averageBitrate?e.averageBitrate-t.averageBitrate:0}));var f=l[0];if(this.steering&&(u=this.steering.filterParsedLevels(u)).length!==l.length)for(var d=0;d<l.length;d++)if(l[d].pathwayId===u[0].pathwayId){f=l[d];break}this._levels=u;for(var p=0;p<u.length;p++)if(u[p]===f){var h;this._firstLevel=p;var v=f.bitrate,g=this.hls.bandwidthEstimate;if(this.log("manifest loaded, ".concat(u.length," level(s) found, first bitrate: ").concat(v)),void 0===(null==(h=this.hls.userConfig)?void 0:h.abrEwmaDefaultEstimate)){var y=Math.min(v,this.hls.config.abrEwmaDefaultEstimateMax);y>g&&g===ea.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=y)}break}var b=i&&!r,x={levels:u,audioTracks:a,subtitleTracks:s,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:i,video:r,altAudio:!b&&a.some((function(e){return!!e.url}))};this.hls.trigger(m.MANIFEST_PARSED,x),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}else Promise.resolve().then((function(){if(o.hls){t.levels.length&&o.warn("One or more CODECS in variant not supported: "+JSON.stringify(t.levels[0].attrs));var e=new Error("no level with compatible codecs found in manifest");o.hls.trigger(m.ERROR,{type:w.MEDIA_ERROR,details:S.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:e,reason:e.message})}}))}},{key:"levels",get:function(){return 0===this._levels.length?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(e){var t=this._levels;if(0!==t.length){if(e<0||e>=t.length){var n=new Error("invalid level idx"),r=e<0;if(this.hls.trigger(m.ERROR,{type:w.OTHER_ERROR,details:S.LEVEL_SWITCH_ERROR,level:e,fatal:r,error:n,reason:n.message}),r)return;e=Math.min(e,t.length-1)}var i=this.currentLevelIndex,o=this.currentLevel,a=o?o.attrs["PATHWAY-ID"]:void 0,s=t[e],u=s.attrs["PATHWAY-ID"];if(this.currentLevelIndex=e,this.currentLevel=s,i!==e||!s.details||!o||a!==u){this.log("Switching to level ".concat(e," (").concat(s.height?s.height+"p ":"").concat(s.videoRange?s.videoRange+" ":"").concat(s.codecSet?s.codecSet+" ":"","@").concat(s.bitrate,")").concat(u?" with Pathway "+u:""," from level ").concat(i).concat(a?" with Pathway "+a:""));var c={level:e,attrs:s.attrs,details:s.details,bitrate:s.bitrate,averageBitrate:s.averageBitrate,maxBitrate:s.maxBitrate,realBitrate:s.realBitrate,width:s.width,height:s.height,codecSet:s.codecSet,audioCodec:s.audioCodec,videoCodec:s.videoCodec,audioGroups:s.audioGroups,subtitleGroups:s.subtitleGroups,loaded:s.loaded,loadError:s.loadError,fragmentError:s.fragmentError,name:s.name,id:s.id,uri:s.uri,url:s.url,urlId:0,audioGroupIds:s.audioGroupIds,textGroupIds:s.textGroupIds};this.hls.trigger(m.LEVEL_SWITCHING,c);var l=s.details;if(!l||l.live){var f=this.switchParams(s.uri,null==o?void 0:o.details,l);this.loadPlaylist(f)}}}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(e){this.manualLevelIndex=e,void 0===this._startLevel&&(this._startLevel=e),-1!==e&&(this.level=e)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(e){this._firstLevel=e}},{key:"startLevel",get:function(){if(void 0===this._startLevel){var e=this.hls.config.startLevel;return void 0!==e?e:this.hls.firstAutoLevel}return this._startLevel},set:function(e){this._startLevel=e}},{key:"onError",value:function(e,t){!t.fatal&&t.context&&t.context.type===Ot&&t.context.level===this.level&&this.checkRetry(t)}},{key:"onFragBuffered",value:function(e,t){var n=t.frag;if(void 0!==n&&n.type===jt.MAIN){var r=n.elementaryStreams;if(!Object.keys(r).some((function(e){return!!r[e]})))return;var i=this._levels[n.level];null!=i&&i.loadError&&(this.log("Resetting level error count of ".concat(i.loadError," on frag buffered")),i.loadError=0)}}},{key:"onLevelLoaded",value:function(e,t){var n,r,i=t.level,o=t.details,a=this._levels[i];if(!a)return this.warn("Invalid level index "+i),void(null!=(r=t.deliveryDirectives)&&r.skip&&(o.deltaUpdateFailed=!0));i===this.currentLevelIndex?(0===a.fragmentError&&(a.loadError=0),this.playlistLoaded(i,t,a.details)):null!=(n=t.deliveryDirectives)&&n.skip&&(o.deltaUpdateFailed=!0)}},{key:"loadPlaylist",value:function(e){d(b(t.prototype),"loadPlaylist",this).call(this);var n=this.currentLevelIndex,r=this.currentLevel;if(r&&this.shouldLoadPlaylist(r)){var i=r.uri;if(e)try{i=e.addDirectives(i)}catch(e){this.warn("Could not construct new URL with HLS Delivery Directives: "+e)}var o=r.attrs["PATHWAY-ID"];this.log("Loading level index ".concat(n).concat(void 0!==(null==e?void 0:e.msn)?" at sn "+e.msn+" part "+e.part:""," with").concat(o?" Pathway "+o:""," ").concat(i)),this.clearTimer(),this.hls.trigger(m.LEVEL_LOADING,{url:i,level:n,pathwayId:r.attrs["PATHWAY-ID"],id:0,deliveryDirectives:e||null})}}},{key:"nextLoadLevel",get:function(){return-1!==this.manualLevelIndex?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(e){this.level=e,-1===this.manualLevelIndex&&(this.hls.nextAutoLevel=e)}},{key:"removeLevel",value:function(e){var t,n=this,r=this._levels.filter((function(t,r){return r!==e||(n.steering&&n.steering.removeLevel(t),t===n.currentLevel&&(n.currentLevel=null,n.currentLevelIndex=-1,t.details&&t.details.fragments.forEach((function(e){return e.level=-1}))),!1)}));nn(r),this._levels=r,this.currentLevelIndex>-1&&null!=(t=this.currentLevel)&&t.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.hls.trigger(m.LEVELS_UPDATED,{levels:r})}},{key:"onLevelsUpdated",value:function(e,t){var n=t.levels;this._levels=n}},{key:"checkMaxAutoUpdated",value:function(){var e=this.hls,t=e.autoLevelCapping,n=e.maxAutoLevel,r=e.maxHdcpLevel;this._maxAutoLevel!==n&&(this._maxAutoLevel=n,this.hls.trigger(m.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:t,levels:this.levels,maxAutoLevel:n,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:r}))}}])}(gn);function ra(e){var t={};e.forEach((function(e){var n=e.groupId||"";e.id=t[n]=t[n]||0,t[n]++}))}var ia=function(){return O((function e(t){_(this,e),this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=t}),[{key:"abort",value:function(e){for(var t in this.keyUriToKeyInfo){var n=this.keyUriToKeyInfo[t].loader;if(n){var r;if(e&&e!==(null==(r=n.context)?void 0:r.frag.type))return;n.abort()}}}},{key:"detach",value:function(){for(var e in this.keyUriToKeyInfo){var t=this.keyUriToKeyInfo[e];(t.mediaKeySessionContext||t.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[e]}}},{key:"destroy",value:function(){for(var e in this.detach(),this.keyUriToKeyInfo){var t=this.keyUriToKeyInfo[e].loader;t&&t.destroy()}this.keyUriToKeyInfo={}}},{key:"createKeyLoadError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S.KEY_LOAD_ERROR,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return new Gn({type:w.NETWORK_ERROR,details:t,fatal:!1,frag:e,response:i,error:n,networkDetails:r})}},{key:"loadClear",value:function(e,t){var n=this;if(this.emeController&&this.config.emeEnabled)for(var r=e.sn,i=e.cc,o=function(){var e=t[a];if(i<=e.cc&&("initSegment"===r||"initSegment"===e.sn||r<e.sn))return n.emeController.selectKeySystemFormat(e).then((function(t){e.setKeyFormat(t)})),1},a=0;a<t.length&&!o();a++);}},{key:"load",value:function(e){var t=this;return!e.decryptdata&&e.encrypted&&this.emeController?this.emeController.selectKeySystemFormat(e).then((function(n){return t.loadInternal(e,n)})):this.loadInternal(e)}},{key:"loadInternal",value:function(e,t){var n,r;t&&e.setKeyFormat(t);var i=e.decryptdata;if(!i){var o=new Error(t?"Expected frag.decryptdata to be defined after setting format "+t:"Missing decryption data on fragment in onKeyLoading");return Promise.reject(this.createKeyLoadError(e,S.KEY_LOAD_ERROR,o))}var a=i.uri;if(!a)return Promise.reject(this.createKeyLoadError(e,S.KEY_LOAD_ERROR,new Error('Invalid key URI: "'.concat(a,'"'))));var s,u=this.keyUriToKeyInfo[a];if(null!=(n=u)&&n.decryptdata.key)return i.key=u.decryptdata.key,Promise.resolve({frag:e,keyInfo:u});if(null!=(r=u)&&r.keyLoadPromise)switch(null==(s=u.mediaKeySessionContext)?void 0:s.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return u.keyLoadPromise.then((function(t){return i.key=t.keyInfo.decryptdata.key,{frag:e,keyInfo:u}}))}switch(u=this.keyUriToKeyInfo[a]={decryptdata:i,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},i.method){case"ISO-23001-7":case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return"identity"===i.keyFormat?this.loadKeyHTTP(u,e):this.loadKeyEME(u,e);case"AES-128":return this.loadKeyHTTP(u,e);default:return Promise.reject(this.createKeyLoadError(e,S.KEY_LOAD_ERROR,new Error('Key supplied with unsupported METHOD: "'.concat(i.method,'"'))))}}},{key:"loadKeyEME",value:function(e,t){var n={frag:t,keyInfo:e};if(this.emeController&&this.config.emeEnabled){var r=this.emeController.loadKey(n);if(r)return(e.keyLoadPromise=r.then((function(t){return e.mediaKeySessionContext=t,n}))).catch((function(t){throw e.keyLoadPromise=null,t}))}return Promise.resolve(n)}},{key:"loadKeyHTTP",value:function(e,t){var n=this,r=this.config,i=new(0,r.loader)(r);return t.keyLoader=e.loader=i,e.keyLoadPromise=new Promise((function(o,s){var u={keyInfo:e,frag:t,responseType:"arraybuffer",url:e.decryptdata.uri},c=r.keyLoadPolicy.default,l={loadPolicy:c,timeout:c.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},f={onSuccess:function(e,t,r,i){var a=r.frag,u=r.keyInfo,c=r.url;if(!a.decryptdata||u!==n.keyUriToKeyInfo[c])return s(n.createKeyLoadError(a,S.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),i));u.decryptdata.key=a.decryptdata.key=new Uint8Array(e.data),a.keyLoader=null,u.loader=null,o({frag:a,keyInfo:u})},onError:function(e,r,i,o){n.resetLoader(r),s(n.createKeyLoadError(t,S.KEY_LOAD_ERROR,new Error("HTTP Error ".concat(e.code," loading key ").concat(e.text)),i,a({url:u.url,data:void 0},e)))},onTimeout:function(e,r,i){n.resetLoader(r),s(n.createKeyLoadError(t,S.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),i))},onAbort:function(e,r,i){n.resetLoader(r),s(n.createKeyLoadError(t,S.INTERNAL_ABORTED,new Error("key loading aborted"),i))}};i.load(u,l,f)}))}},{key:"resetLoader",value:function(e){var t=e.frag,n=e.keyInfo,r=e.url,i=n.loader;t.keyLoader===i&&(t.keyLoader=null,n.loader=null),delete this.keyUriToKeyInfo[r],i&&i.destroy()}}])}();function oa(){return self.SourceBuffer||self.WebKitSourceBuffer}function aa(){if(!Je())return!1;var e=oa();return!e||e.prototype&&"function"==typeof e.prototype.appendBuffer&&"function"==typeof e.prototype.remove}function sa(){if(!aa())return!1;var e=Je();return"function"==typeof(null==e?void 0:e.isTypeSupported)&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some((function(t){return e.isTypeSupported(rt(t,"video"))}))||["mp4a.40.2","fLaC"].some((function(t){return e.isTypeSupported(rt(t,"audio"))})))}var ua=function(){return O((function e(t,n,r,i){_(this,e),this.config=void 0,this.media=null,this.fragmentTracker=void 0,this.hls=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.config=t,this.media=n,this.fragmentTracker=r,this.hls=i}),[{key:"destroy",value:function(){this.media=null,this.hls=this.fragmentTracker=null}},{key:"poll",value:function(e,t){var n=this.config,r=this.media,i=this.stalled;if(null!==r){var o=r.currentTime,a=r.seeking,s=this.seeking&&!a,u=!this.seeking&&a;if(this.seeking=a,o===e)if(u||s)this.stalled=null;else if(r.paused&&!a||r.ended||0===r.playbackRate||!Ln.getBuffered(r).length)this.nudgeRetry=0;else{var c=Ln.bufferInfo(r,o,0),l=c.nextStart||0;if(a){var f=c.len>2,d=!l||t&&t.start<=o||l-o>2&&!this.fragmentTracker.getPartialFragment(o);if(f||d)return;this.moved=!1}if(!this.moved&&null!==this.stalled){var p;if(!(c.len>0||l))return;var h=Math.max(l,c.start||0)-o,v=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,g=(null==v||null==(p=v.details)?void 0:p.live)?2*v.details.targetduration:2,m=this.fragmentTracker.getPartialFragment(o);if(h>0&&(h<=g||m))return void(r.paused||this._trySkipBufferHole(m))}var y=self.performance.now();if(null!==i){var b=y-i;if(a||!(b>=250)||(this._reportStall(c),this.media)){var x=Ln.bufferInfo(r,o,n.maxBufferHole);this._tryFixBufferStall(x,b)}}else this.stalled=y}else if(this.moved=!0,a||(this.nudgeRetry=0),null!==i){if(this.stallReported){var w=self.performance.now()-i;P.warn("playback not stuck anymore @".concat(o,", after ").concat(Math.round(w),"ms")),this.stallReported=!1}this.stalled=null}}}},{key:"_tryFixBufferStall",value:function(e,t){var n=this.config,r=this.fragmentTracker,i=this.media;if(null!==i){var o=i.currentTime,a=r.getPartialFragment(o);(!a||!this._trySkipBufferHole(a)&&this.media)&&(e.len>n.maxBufferHole||e.nextStart&&e.nextStart-o<n.maxBufferHole)&&t>1e3*n.highBufferWatchdogPeriod&&(P.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())}}},{key:"_reportStall",value:function(e){var t=this.hls,n=this.media;if(!this.stallReported&&n){this.stallReported=!0;var r=new Error("Playback stalling at @".concat(n.currentTime," due to low buffer (").concat(JSON.stringify(e),")"));P.warn(r.message),t.trigger(m.ERROR,{type:w.MEDIA_ERROR,details:S.BUFFER_STALLED_ERROR,fatal:!1,error:r,buffer:e.len})}}},{key:"_trySkipBufferHole",value:function(e){var t=this.config,n=this.hls,r=this.media;if(null===r)return 0;var i=r.currentTime,o=Ln.bufferInfo(r,i,0),a=i<o.start?o.start:o.nextStart;if(a){var s=o.len<=t.maxBufferHole,u=o.len>0&&o.len<1&&r.readyState<3,c=a-i;if(c>0&&(s||u)){if(c>t.maxBufferHole){var l=this.fragmentTracker,f=!1;if(0===i){var d=l.getAppendedFrag(0,jt.MAIN);d&&a<d.end&&(f=!0)}if(!f){var p=e||l.getAppendedFrag(i,jt.MAIN);if(p){for(var h=!1,v=p.end;v<a;){var g=l.getPartialFragment(v);if(!g){h=!0;break}v+=g.duration}if(h)return 0}}}var y=Math.max(a+.05,i+.1);if(P.warn("skipping hole, adjusting currentTime from ".concat(i," to ").concat(y)),this.moved=!0,this.stalled=null,r.currentTime=y,e&&!e.gap){var b=new Error("fragment loaded with buffer holes, seeking from ".concat(i," to ").concat(y));n.trigger(m.ERROR,{type:w.MEDIA_ERROR,details:S.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:b,reason:b.message,frag:e})}return y}}return 0}},{key:"_tryNudgeBuffer",value:function(){var e=this.config,t=this.hls,n=this.media,r=this.nudgeRetry;if(null!==n){var i=n.currentTime;if(this.nudgeRetry++,r<e.nudgeMaxRetry){var o=i+(r+1)*e.nudgeOffset,a=new Error("Nudging 'currentTime' from ".concat(i," to ").concat(o));P.warn(a.message),n.currentTime=o,t.trigger(m.ERROR,{type:w.MEDIA_ERROR,details:S.BUFFER_NUDGE_ON_STALL,error:a,fatal:!1})}else{var s=new Error("Playhead still not moving while enough data buffered @".concat(i," after ").concat(e.nudgeMaxRetry," nudges"));P.error(s.message),t.trigger(m.ERROR,{type:w.MEDIA_ERROR,details:S.BUFFER_STALLED_ERROR,error:s,fatal:!0})}}}}])}(),ca=function(e){function t(e,n,r){var i;return _(this,t),(i=g(this,t,[e,n,r,"[stream-controller]",jt.MAIN])).audioCodecSwap=!1,i.gapController=null,i.level=-1,i._forceStartLoad=!1,i.altAudio=!1,i.audioOnly=!1,i.fragPlaying=null,i.onvplaying=null,i.onvseeked=null,i.fragLastKbps=0,i.couldBacktrack=!1,i.backtrackFragment=null,i.audioCodecSwitch=!1,i.videoBuffer=null,i._registerListeners(),i}return x(t,e),O(t,[{key:"_registerListeners",value:function(){var e=this.hls;e.on(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(m.MANIFEST_LOADING,this.onManifestLoading,this),e.on(m.MANIFEST_PARSED,this.onManifestParsed,this),e.on(m.LEVEL_LOADING,this.onLevelLoading,this),e.on(m.LEVEL_LOADED,this.onLevelLoaded,this),e.on(m.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.on(m.ERROR,this.onError,this),e.on(m.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(m.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.on(m.BUFFER_CREATED,this.onBufferCreated,this),e.on(m.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(m.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(m.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"_unregisterListeners",value:function(){var e=this.hls;e.off(m.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(m.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(m.MANIFEST_LOADING,this.onManifestLoading,this),e.off(m.MANIFEST_PARSED,this.onManifestParsed,this),e.off(m.LEVEL_LOADED,this.onLevelLoaded,this),e.off(m.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.off(m.ERROR,this.onError,this),e.off(m.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(m.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.off(m.BUFFER_CREATED,this.onBufferCreated,this),e.off(m.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(m.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(m.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"onHandlerDestroying",value:function(){this._unregisterListeners(),d(b(t.prototype),"onHandlerDestroying",this).call(this)}},{key:"startLoad",value:function(e){if(this.levels){var t=this.lastCurrentTime,n=this.hls;if(this.stopLoad(),this.setInterval(100),this.level=-1,!this.startFragRequested){var r=n.startLevel;-1===r&&(n.config.testBandwidth&&this.levels.length>1?(r=0,this.bitrateTest=!0):r=n.firstAutoLevel),n.nextLoadLevel=r,this.level=n.loadLevel,this.loadedmetadata=!1}t>0&&-1===e&&(this.log("Override startPosition with lastCurrentTime @"+t.toFixed(3)),e=t),this.state=Zn,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=e,this.tick()}else this._forceStartLoad=!0,this.state=Qn}},{key:"stopLoad",value:function(){this._forceStartLoad=!1,d(b(t.prototype),"stopLoad",this).call(this)}},{key:"doTick",value:function(){switch(this.state){case ur:var e=this.levels,t=this.level,n=null==e?void 0:e[t],r=null==n?void 0:n.details;if(r&&(!r.live||this.levelLastLoaded===n)){if(this.waitForCdnTuneIn(r))break;this.state=Zn;break}if(this.hls.nextLoadLevel!==this.level){this.state=Zn;break}break;case tr:var i,o=self.performance.now(),a=this.retryDate;if(!a||o>=a||null!=(i=this.media)&&i.seeking){var s=this.levels,u=this.level,c=null==s?void 0:s[u];this.resetStartWhenNotLoaded(c||null),this.state=Zn}}this.state===Zn&&this.doTickIdle(),this.onTickEnd()}},{key:"onTickEnd",value:function(){d(b(t.prototype),"onTickEnd",this).call(this),this.checkBuffer(),this.checkFragmentChanged()}},{key:"doTickIdle",value:function(){var e=this.hls,t=this.levelLastLoaded,n=this.levels,r=this.media;if(null!==t&&(r||!this.startFragRequested&&e.config.startFragPrefetch)&&(!this.altAudio||!this.audioOnly)){var i=e.nextLoadLevel;if(null!=n&&n[i]){var o=n[i],a=this.getMainFwdBufferInfo();if(null!==a){var s=this.getLevelDetails();if(s&&this._streamEnded(a,s)){var u={};return this.altAudio&&(u.type="video"),this.hls.trigger(m.BUFFER_EOS,u),void(this.state=or)}e.loadLevel!==i&&-1===e.manualLevel&&this.log("Adapting to level ".concat(i," from level ").concat(this.level)),this.level=e.nextLoadLevel=i;var c=o.details;if(!c||this.state===ur||c.live&&this.levelLastLoaded!==o)return this.level=i,void(this.state=ur);var l=a.len,f=this.getMaxBufferLength(o.maxBitrate);if(!(l>=f)){this.backtrackFragment&&this.backtrackFragment.start>a.end&&(this.backtrackFragment=null);var d=this.backtrackFragment?this.backtrackFragment.start:a.end,p=this.getNextFragment(d,c);if(this.couldBacktrack&&!this.fragPrevious&&p&&"initSegment"!==p.sn&&this.fragmentTracker.getState(p)!==Pn){var h,v=(null!=(h=this.backtrackFragment)?h:p).sn-c.startSN,g=c.fragments[v-1];g&&p.cc===g.cc&&(p=g,this.fragmentTracker.removeFragment(g))}else this.backtrackFragment&&a.len&&(this.backtrackFragment=null);if(p&&this.isLoopLoading(p,d)){if(!p.gap){var y=this.audioOnly&&!this.altAudio?B:U,b=(y===U?this.videoBuffer:this.mediaBuffer)||this.media;b&&this.afterBufferFlushed(b,y,jt.MAIN)}p=this.getNextFragmentLoopLoading(p,c,a,jt.MAIN,f)}p&&(!p.initSegment||p.initSegment.data||this.bitrateTest||(p=p.initSegment),this.loadFragment(p,o,d))}}}}}},{key:"loadFragment",value:function(e,n,r){var i=this.fragmentTracker.getState(e);this.fragCurrent=e,i===Tn||i===An?"initSegment"===e.sn?this._loadInitSegment(e,n):this.bitrateTest?(this.log("Fragment ".concat(e.sn," of level ").concat(e.level," is being downloaded to test bitrate and will not be buffered")),this._loadBitrateTestFrag(e,n)):(this.startFragRequested=!0,d(b(t.prototype),"loadFragment",this).call(this,e,n,r)):this.clearTrackerIfNeeded(e)}},{key:"getBufferedFrag",value:function(e){return this.fragmentTracker.getBufferedFrag(e,jt.MAIN)}},{key:"followingBufferedFrag",value:function(e){return e?this.getBufferedFrag(e.end+.5):null}},{key:"immediateLevelSwitch",value:function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}},{key:"nextLevelSwitch",value:function(){var e=this.levels,t=this.media;if(null!=t&&t.readyState){var n,r=this.getAppendedFrag(t.currentTime);r&&r.start>1&&this.flushMainBuffer(0,r.start-1);var i=this.getLevelDetails();if(null!=i&&i.live){var o=this.getMainFwdBufferInfo();if(!o||o.len<2*i.targetduration)return}if(!t.paused&&e){var a=e[this.hls.nextLoadLevel],s=this.fragLastKbps;n=s&&this.fragCurrent?this.fragCurrent.duration*a.maxBitrate/(1e3*s)+1:0}else n=0;var u=this.getBufferedFrag(t.currentTime+n);if(u){var c=this.followingBufferedFrag(u);if(c){this.abortCurrentFrag();var l=c.maxStartPTS?c.maxStartPTS:c.start,f=c.duration,d=Math.max(u.end,l+Math.min(Math.max(f-this.config.maxFragLookUpTolerance,f*(this.couldBacktrack?.5:.125)),f*(this.couldBacktrack?.75:.25)));this.flushMainBuffer(d,Number.POSITIVE_INFINITY)}}}}},{key:"abortCurrentFrag",value:function(){var e=this.fragCurrent;switch(this.fragCurrent=null,this.backtrackFragment=null,e&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.state){case Jn:case er:case tr:case rr:case ir:this.state=Zn}this.nextLoadPosition=this.getLoadPosition()}},{key:"flushMainBuffer",value:function(e,n){d(b(t.prototype),"flushMainBuffer",this).call(this,e,n,this.altAudio?"video":null)}},{key:"onMediaAttached",value:function(e,n){d(b(t.prototype),"onMediaAttached",this).call(this,e,n);var r=n.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),r.addEventListener("playing",this.onvplaying),r.addEventListener("seeked",this.onvseeked),this.gapController=new ua(this.config,r,this.fragmentTracker,this.hls)}},{key:"onMediaDetaching",value:function(){var e=this.media;e&&this.onvplaying&&this.onvseeked&&(e.removeEventListener("playing",this.onvplaying),e.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),d(b(t.prototype),"onMediaDetaching",this).call(this)}},{key:"onMediaPlaying",value:function(){this.tick()}},{key:"onMediaSeeked",value:function(){var e=this.media,t=e?e.currentTime:null;f(t)&&this.log("Media seeked to "+t.toFixed(3));var n=this.getMainFwdBufferInfo();null!==n&&0!==n.len?this.tick():this.warn('Main forward buffer length on "seeked" event '.concat(n?n.len:"empty",")"))}},{key:"onManifestLoading",value:function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(m.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=!1,this.startPosition=this.lastCurrentTime=this.fragLastKbps=0,this.levels=this.fragPlaying=this.backtrackFragment=this.levelLastLoaded=null,this.altAudio=this.audioOnly=this.startFragRequested=!1}},{key:"onManifestParsed",value:function(e,t){var n=!1,r=!1;t.levels.forEach((function(e){var t=e.audioCodec;t&&(n=n||-1!==t.indexOf("mp4a.40.2"),r=r||-1!==t.indexOf("mp4a.40.5"))})),this.audioCodecSwitch=n&&r&&!function(){var e,t=oa();return"function"==typeof(null==t||null==(e=t.prototype)?void 0:e.changeType)}(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=t.levels,this.startFragRequested=!1}},{key:"onLevelLoading",value:function(e,t){var n=this.levels;if(n&&this.state===Zn){var r=n[t.level];(!r.details||r.details.live&&this.levelLastLoaded!==r||this.waitForCdnTuneIn(r.details))&&(this.state=ur)}}},{key:"onLevelLoaded",value:function(e,t){var n,r=this.levels,i=t.level,o=t.details,a=o.totalduration;if(r){this.log("Level ".concat(i," loaded [").concat(o.startSN,",").concat(o.endSN,"]").concat(o.lastPartSn?"[part-".concat(o.lastPartSn,"-").concat(o.lastPartIndex,"]"):"",", cc [").concat(o.startCC,", ").concat(o.endCC,"] duration:").concat(a));var s=r[i],u=this.fragCurrent;!u||this.state!==er&&this.state!==tr||u.level!==t.level&&u.loader&&this.abortCurrentFrag();var c=0;if(o.live||null!=(n=s.details)&&n.live){var l;if(this.checkLiveUpdate(o),o.deltaUpdateFailed)return;c=this.alignPlaylists(o,s.details,null==(l=this.levelLastLoaded)?void 0:l.details)}if(s.details=o,this.levelLastLoaded=s,this.hls.trigger(m.LEVEL_UPDATED,{details:o,level:i}),this.state===ur){if(this.waitForCdnTuneIn(o))return;this.state=Zn}this.startFragRequested?o.live&&this.synchronizeToLiveEdge(o):this.setStartPosition(o,c),this.tick()}else this.warn("Levels were reset while loading level "+i)}},{key:"_handleFragmentLoadProgress",value:function(e){var t,n=e.frag,r=e.part,i=e.payload,o=this.levels;if(o){var a=o[n.level],s=a.details;if(!s)return this.warn("Dropping fragment ".concat(n.sn," of level ").concat(n.level," after level details were reset")),void this.fragmentTracker.removeFragment(n);var u=a.videoCodec,c=s.PTSKnown||!s.live,l=null==(t=n.initSegment)?void 0:t.data,f=this._getAudioCodec(a),d=this.transmuxer=this.transmuxer||new hi(this.hls,jt.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),p=r?r.index:-1,h=-1!==p,v=new Nn(n.level,n.sn,n.stats.chunkCount,i.byteLength,p,h),g=this.initPTS[n.cc];d.push(i,l,f,u,n,r,s.totalduration,c,v,g)}else this.warn("Levels were reset while fragment load was in progress. Fragment ".concat(n.sn," of level ").concat(n.level," will not be buffered"))}},{key:"onAudioTrackSwitching",value:function(e,t){var n=this.altAudio;if(!t.url){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var r=this.fragCurrent;r&&(this.log("Switching to main audio track, cancel main fragment load"),r.abortRequests(),this.fragmentTracker.removeFragment(r)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var i=this.hls;n&&(i.trigger(m.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null}),this.fragmentTracker.removeAllFragments()),i.trigger(m.AUDIO_TRACK_SWITCHED,t)}}},{key:"onAudioTrackSwitched",value:function(e,t){var n=t.id,r=!!this.hls.audioTracks[n].url;if(r){var i=this.videoBuffer;i&&this.mediaBuffer!==i&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=i)}this.altAudio=r,this.tick()}},{key:"onBufferCreated",value:function(e,t){var n,r,i=t.tracks,o=!1;for(var a in i){var s=i[a];if("main"===s.id){if(r=a,n=s,"video"===a){var u=i[a];u&&(this.videoBuffer=u.buffer)}}else o=!0}o&&n?(this.log("Alternate track found, use ".concat(r,".buffered to schedule main fragment loading")),this.mediaBuffer=n.buffer):this.mediaBuffer=this.media}},{key:"onFragBuffered",value:function(e,t){var n=t.frag,r=t.part;if(!n||n.type===jt.MAIN){if(this.fragContextChanged(n))return this.warn("Fragment ".concat(n.sn).concat(r?" p: "+r.index:""," of level ").concat(n.level," finished buffering, but was aborted. state: ").concat(this.state)),void(this.state===ir&&(this.state=Zn));var i=r?r.stats:n.stats;this.fragLastKbps=Math.round(8*i.total/(i.buffering.end-i.loading.first)),"initSegment"!==n.sn&&(this.fragPrevious=n),this.fragBufferedComplete(n,r)}}},{key:"onError",value:function(e,t){var n;if(t.fatal)this.state=ar;else switch(t.details){case S.FRAG_GAP:case S.FRAG_PARSING_ERROR:case S.FRAG_DECRYPT_ERROR:case S.FRAG_LOAD_ERROR:case S.FRAG_LOAD_TIMEOUT:case S.KEY_LOAD_ERROR:case S.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(jt.MAIN,t);break;case S.LEVEL_LOAD_ERROR:case S.LEVEL_LOAD_TIMEOUT:case S.LEVEL_PARSING_ERROR:t.levelRetry||this.state!==ur||(null==(n=t.context)?void 0:n.type)!==Ot||(this.state=Zn);break;case S.BUFFER_APPEND_ERROR:case S.BUFFER_FULL_ERROR:if(!t.parent||"main"!==t.parent)return;if(t.details===S.BUFFER_APPEND_ERROR)return void this.resetLoadingState();this.reduceLengthAndFlushBuffer(t)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case S.INTERNAL_EXCEPTION:this.recoverWorkerError(t)}}},{key:"checkBuffer",value:function(){var e=this.media,t=this.gapController;if(e&&t&&e.readyState){if(this.loadedmetadata||!Ln.getBuffered(e).length){var n=this.state!==Zn?this.fragCurrent:null;t.poll(this.lastCurrentTime,n)}this.lastCurrentTime=e.currentTime}}},{key:"onFragLoadEmergencyAborted",value:function(){this.state=Zn,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()}},{key:"onBufferFlushed",value:function(e,t){var n=t.type;if(n!==B||this.audioOnly&&!this.altAudio){var r=(n===U?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(r,n,jt.MAIN),this.tick()}}},{key:"onLevelsUpdated",value:function(e,t){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level),this.levels=t.levels}},{key:"swapAudioCodec",value:function(){this.audioCodecSwap=!this.audioCodecSwap}},{key:"seekToStartPos",value:function(){var e=this.media;if(e){var t=e.currentTime,n=this.startPosition;if(n>=0&&t<n){if(e.seeking)return void this.log("could not seek to ".concat(n,", already seeking at ").concat(t));var r=Ln.getBuffered(e),i=(r.length?r.start(0):0)-n;i>0&&(i<this.config.maxBufferHole||i<this.config.maxFragLookUpTolerance)&&(this.log("adjusting start position by ".concat(i," to match buffer start")),n+=i,this.startPosition=n),this.log("seek to target start position ".concat(n," from current time ").concat(t)),e.currentTime=n}}}},{key:"_getAudioCodec",value:function(e){var t=this.config.defaultAudioCodec||e.audioCodec;return this.audioCodecSwap&&t&&(this.log("Swapping audio codec"),t=-1!==t.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5"),t}},{key:"_loadBitrateTestFrag",value:function(e,t){var n=this;e.bitrateTest=!0,this._doFragLoad(e,t).then((function(r){var i=n.hls;if(r&&!n.fragContextChanged(e)){t.fragmentError=0,n.state=Zn,n.startFragRequested=!1,n.bitrateTest=!1;var o=e.stats;o.parsing.start=o.parsing.end=o.buffering.start=o.buffering.end=self.performance.now(),i.trigger(m.FRAG_LOADED,r),e.bitrateTest=!1}}))}},{key:"_handleTransmuxComplete",value:function(e){var t,n="main",r=this.hls,i=e.remuxResult,o=e.chunkMeta,a=this.getCurrentContext(o);if(a){var s=a.frag,u=a.part,c=a.level,l=i.video,d=i.text,p=i.id3,h=i.initSegment,v=c.details,g=this.altAudio?void 0:i.audio;if(this.fragContextChanged(s))this.fragmentTracker.removeFragment(s);else{if(this.state=rr,h){if(null!=h&&h.tracks){var y=s.initSegment||s;this._bufferInitSegment(c,h.tracks,y,o),r.trigger(m.FRAG_PARSING_INIT_SEGMENT,{frag:y,id:n,tracks:h.tracks})}var b=h.initPTS,x=h.timescale;f(b)&&(this.initPTS[s.cc]={baseTime:b,timescale:x},r.trigger(m.INIT_PTS_FOUND,{frag:s,id:n,initPTS:b,timescale:x}))}if(l&&v&&"initSegment"!==s.sn){var w=v.fragments[s.sn-1-v.startSN],_=s.sn===v.startSN,S=!w||s.cc>w.cc;if(!1!==i.independent){var O=l.startPTS,k=l.endPTS,E=l.startDTS,j=l.endDTS;if(u)u.elementaryStreams[l.type]={startPTS:O,endPTS:k,startDTS:E,endDTS:j};else if(l.firstKeyFrame&&l.independent&&1===o.id&&!S&&(this.couldBacktrack=!0),l.dropped&&l.independent){var T=this.getMainFwdBufferInfo(),C=(T?T.end:this.getLoadPosition())+this.config.maxBufferHole,A=l.firstKeyFramePTS?l.firstKeyFramePTS:O;if(!_&&C<A-this.config.maxBufferHole&&!S)return void this.backtrack(s);S&&(s.gap=!0),s.setElementaryStreamInfo(l.type,s.start,k,s.start,j,!0)}else _&&O>2&&(s.gap=!0);s.setElementaryStreamInfo(l.type,O,k,E,j),this.backtrackFragment&&(this.backtrackFragment=s),this.bufferFragmentData(l,s,u,o,_||S)}else{if(!_&&!S)return void this.backtrack(s);s.gap=!0}}if(g){var P=g.startPTS,M=g.endPTS,I=g.startDTS,R=g.endDTS;u&&(u.elementaryStreams[B]={startPTS:P,endPTS:M,startDTS:I,endDTS:R}),s.setElementaryStreamInfo(B,P,M,I,R),this.bufferFragmentData(g,s,u,o)}if(v&&null!=p&&null!=(t=p.samples)&&t.length){var D={id:n,frag:s,details:v,samples:p.samples};r.trigger(m.FRAG_PARSING_METADATA,D)}if(v&&d){var L={id:n,frag:s,details:v,samples:d.samples};r.trigger(m.FRAG_PARSING_USERDATA,L)}}}else this.resetWhenMissingContext(o)}},{key:"_bufferInitSegment",value:function(e,t,n,r){var i=this;if(this.state===rr){this.audioOnly=!!t.audio&&!t.video,this.altAudio&&!this.audioOnly&&delete t.audio;var o=t.audio,a=t.video,s=t.audiovideo;if(o){var u=e.audioCodec,c=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){u&&(u=-1!==u.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5");var l=o.metadata;l&&"channelCount"in l&&1!==(l.channelCount||1)&&-1===c.indexOf("firefox")&&(u="mp4a.40.5")}u&&-1!==u.indexOf("mp4a.40.5")&&-1!==c.indexOf("android")&&"audio/mpeg"!==o.container&&(u="mp4a.40.2",this.log("Android: force audio codec to "+u)),e.audioCodec&&e.audioCodec!==u&&this.log('Swapping manifest audio codec "'.concat(e.audioCodec,'" for "').concat(u,'"')),o.levelCodec=u,o.id="main",this.log("Init audio buffer, container:".concat(o.container,", codecs[selected/level/parsed]=[").concat(u||"","/").concat(e.audioCodec||"","/").concat(o.codec,"]"))}a&&(a.levelCodec=e.videoCodec,a.id="main",this.log("Init video buffer, container:".concat(a.container,", codecs[level/parsed]=[").concat(e.videoCodec||"","/").concat(a.codec,"]"))),s&&this.log("Init audiovideo buffer, container:".concat(s.container,", codecs[level/parsed]=[").concat(e.codecs,"/").concat(s.codec,"]")),this.hls.trigger(m.BUFFER_CODECS,t),Object.keys(t).forEach((function(e){var o=t[e].initSegment;null!=o&&o.byteLength&&i.hls.trigger(m.BUFFER_APPENDING,{type:e,data:o,frag:n,part:null,chunkMeta:r,parent:n.type})})),this.tickImmediate()}}},{key:"getMainFwdBufferInfo",value:function(){return this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,jt.MAIN)}},{key:"backtrack",value:function(e){this.couldBacktrack=!0,this.backtrackFragment=e,this.resetTransmuxer(),this.flushBufferGap(e),this.fragmentTracker.removeFragment(e),this.fragPrevious=null,this.nextLoadPosition=e.start,this.state=Zn}},{key:"checkFragmentChanged",value:function(){var e=this.media,t=null;if(e&&e.readyState>1&&!1===e.seeking){var n=e.currentTime;if(Ln.isBuffered(e,n)?t=this.getAppendedFrag(n):Ln.isBuffered(e,n+.1)&&(t=this.getAppendedFrag(n+.1)),t){this.backtrackFragment=null;var r=this.fragPlaying,i=t.level;r&&t.sn===r.sn&&r.level===i||(this.fragPlaying=t,this.hls.trigger(m.FRAG_CHANGED,{frag:t}),r&&r.level===i||this.hls.trigger(m.LEVEL_SWITCHED,{level:i}))}}}},{key:"nextLevel",get:function(){var e=this.nextBufferedFrag;return e?e.level:-1}},{key:"currentFrag",get:function(){var e=this.media;return e?this.fragPlaying||this.getAppendedFrag(e.currentTime):null}},{key:"currentProgramDateTime",get:function(){var e=this.media;if(e){var t=e.currentTime,n=this.currentFrag;if(n&&f(t)&&f(n.programDateTime)){var r=n.programDateTime+1e3*(t-n.start);return new Date(r)}}return null}},{key:"currentLevel",get:function(){var e=this.currentFrag;return e?e.level:-1}},{key:"nextBufferedFrag",get:function(){var e=this.currentFrag;return e?this.followingBufferedFrag(e):null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}])}(cr),la=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};_(this,e),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this.started=!1,this._emitter=new pi,this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this.url=null,this.triggeringException=void 0,function(e,t){if("object"==("undefined"==typeof console?"undefined":I(console))&&!0===e||"object"==I(e)){A(e,"debug","log","info","warn","error");try{C.log('Debug logs enabled for "'.concat("Hls instance",'" in hls.js version 1.5.13'))}catch(e){C=j}}else C=j}(t.debug||!1);var n=this.config=function(e,t){if((t.liveSyncDurationCount||t.liveMaxLatencyDurationCount)&&(t.liveSyncDuration||t.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(void 0!==t.liveMaxLatencyDurationCount&&(void 0===t.liveSyncDurationCount||t.liveMaxLatencyDurationCount<=t.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(void 0!==t.liveMaxLatencyDuration&&(void 0===t.liveSyncDuration||t.liveMaxLatencyDuration<=t.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');var n=ta(e),r=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return["manifest","level","frag"].forEach((function(e){var i=("level"===e?"playlist":e)+"LoadPolicy",o=void 0===t[i],a=[];r.forEach((function(r){var s="".concat(e,"Loading").concat(r),u=t[s];if(void 0!==u&&o){a.push(s);var c=n[i].default;switch(t[i]={default:c},r){case"TimeOut":c.maxLoadTimeMs=u,c.maxTimeToFirstByteMs=u;break;case"MaxRetry":c.errorRetry.maxNumRetry=u,c.timeoutRetry.maxNumRetry=u;break;case"RetryDelay":c.errorRetry.retryDelayMs=u,c.timeoutRetry.retryDelayMs=u;break;case"MaxRetryTimeout":c.errorRetry.maxRetryDelayMs=u,c.timeoutRetry.maxRetryDelayMs=u}}})),a.length&&P.warn('hls.js config: "'.concat(a.join('", "'),'" setting(s) are deprecated, use "').concat(i,'": ').concat(JSON.stringify(t[i])))})),a(a({},n),t)}(e.DefaultConfig,t);this.userConfig=t,n.progressive&&function(e){var t=e.loader;t!==$o&&t!==Yo?(P.log("[config]: Custom loader detected, cannot enable progressive streaming"),e.progressive=!1):function(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(e){}return!1}()&&(e.loader=$o,e.progressive=!0,e.enableSoftwareAES=!0,P.log("[config]: Progressive streaming enabled, using FetchLoader"))}(n);var r=n.abrController,i=n.bufferController,o=n.capLevelController,s=n.errorController,u=n.fpsController,c=new s(this),l=this.abrController=new r(this),f=this.bufferController=new i(this),d=this.capLevelController=new o(this),p=new u(this),h=new At(this),v=new zt(this),g=n.contentSteeringController,y=g?new g(this):null,b=this.levelController=new na(this,y),x=new Mn(this),w=new ia(this.config),S=this.streamController=new ca(this,x,w);d.setStreamController(S),p.setStreamController(S);var O=[h,b,S];y&&O.splice(1,0,y),this.networkControllers=O;var k=[l,f,d,p,v,x];this.audioTrackController=this.createController(n.audioTrackController,O);var E=n.audioStreamController;E&&O.push(new E(this,x,w)),this.subtitleTrackController=this.createController(n.subtitleTrackController,O);var T=n.subtitleStreamController;T&&O.push(new T(this,x,w)),this.createController(n.timelineController,k),w.emeController=this.emeController=this.createController(n.emeController,k),this.cmcdController=this.createController(n.cmcdController,k),this.latencyController=this.createController(Vt,k),this.coreComponents=k,O.push(c);var M=c.onErrorOut;"function"==typeof M&&this.on(m.ERROR,M,c)}return O(e,[{key:"createController",value:function(e,t){if(e){var n=new e(this);return t&&t.push(n),n}return null}},{key:"on",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;this._emitter.on(e,t,n)}},{key:"once",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;this._emitter.once(e,t,n)}},{key:"removeAllListeners",value:function(e){this._emitter.removeAllListeners(e)}},{key:"off",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this,r=arguments.length>3?arguments[3]:void 0;this._emitter.off(e,t,n,r)}},{key:"listeners",value:function(e){return this._emitter.listeners(e)}},{key:"emit",value:function(e,t,n){return this._emitter.emit(e,t,n)}},{key:"trigger",value:function(e,t){if(this.config.debug)return this.emit(e,e,t);try{return this.emit(e,e,t)}catch(t){if(P.error("An internal error happened while handling event "+e+'. Error message: "'+t.message+'". Here is a stacktrace:',t),!this.triggeringException){this.triggeringException=!0;var n=e===m.ERROR;this.trigger(m.ERROR,{type:w.OTHER_ERROR,details:S.INTERNAL_EXCEPTION,fatal:n,event:e,error:t}),this.triggeringException=!1}}return!1}},{key:"listenerCount",value:function(e){return this._emitter.listenerCount(e)}},{key:"destroy",value:function(){P.log("destroy"),this.trigger(m.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach((function(e){return e.destroy()})),this.networkControllers.length=0,this.coreComponents.forEach((function(e){return e.destroy()})),this.coreComponents.length=0;var e=this.config;e.xhrSetup=e.fetchSetup=void 0,this.userConfig=null}},{key:"attachMedia",value:function(e){P.log("attachMedia"),this._media=e,this.trigger(m.MEDIA_ATTACHING,{media:e})}},{key:"detachMedia",value:function(){P.log("detachMedia"),this.trigger(m.MEDIA_DETACHING,void 0),this._media=null}},{key:"loadSource",value:function(e){this.stopLoad();var t=this.media,n=this.url,r=this.url=i.buildAbsoluteURL(self.location.href,e,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,P.log("loadSource:"+r),t&&n&&(n!==r||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(t)),this.trigger(m.MANIFEST_LOADING,{url:e})}},{key:"startLoad",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;P.log("startLoad(".concat(e,")")),this.started=!0,this.networkControllers.forEach((function(t){t.startLoad(e)}))}},{key:"stopLoad",value:function(){P.log("stopLoad"),this.started=!1,this.networkControllers.forEach((function(e){e.stopLoad()}))}},{key:"resumeBuffering",value:function(){this.started&&this.networkControllers.forEach((function(e){"fragmentLoader"in e&&e.startLoad(-1)}))}},{key:"pauseBuffering",value:function(){this.networkControllers.forEach((function(e){"fragmentLoader"in e&&e.stopLoad()}))}},{key:"swapAudioCodec",value:function(){P.log("swapAudioCodec"),this.streamController.swapAudioCodec()}},{key:"recoverMediaError",value:function(){P.log("recoverMediaError");var e=this._media;this.detachMedia(),e&&this.attachMedia(e)}},{key:"removeLevel",value:function(e){this.levelController.removeLevel(e)}},{key:"levels",get:function(){return this.levelController.levels||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(e){P.log("set currentLevel:"+e),this.levelController.manualLevel=e,this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(e){P.log("set nextLevel:"+e),this.levelController.manualLevel=e,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(e){P.log("set loadLevel:"+e),this.levelController.manualLevel=e}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(e){this.levelController.nextLoadLevel=e}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(e){P.log("set firstLevel:"+e),this.levelController.firstLevel=e}},{key:"startLevel",get:function(){var e=this.levelController.startLevel;return-1===e&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:e},set:function(e){P.log("set startLevel:"+e),-1!==e&&(e=Math.max(e,this.minAutoLevel)),this.levelController.startLevel=e}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(e){var t=!!e;t!==this.config.capLevelToPlayerSize&&(t?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=t)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(e){this._autoLevelCapping!==e&&(P.log("set autoLevelCapping:"+e),this._autoLevelCapping=e,this.levelController.checkMaxAutoUpdated())}},{key:"bandwidthEstimate",get:function(){var e=this.abrController.bwEstimator;return e?e.getEstimate():NaN},set:function(e){this.abrController.resetEstimator(e)}},{key:"ttfbEstimate",get:function(){var e=this.abrController.bwEstimator;return e?e.getEstimateTTFB():NaN}},{key:"maxHdcpLevel",get:function(){return this._maxHdcpLevel},set:function(e){(function(e){return Ht.indexOf(e)>-1})(e)&&this._maxHdcpLevel!==e&&(this._maxHdcpLevel=e,this.levelController.checkMaxAutoUpdated())}},{key:"autoLevelEnabled",get:function(){return-1===this.levelController.manualLevel}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var e=this.levels,t=this.config.minAutoBitrate;if(!e)return 0;for(var n=e.length,r=0;r<n;r++)if(e[r].maxBitrate>=t)return r;return 0}},{key:"maxAutoLevel",get:function(){var e,t=this.levels,n=this.autoLevelCapping,r=this.maxHdcpLevel;if(e=-1===n&&null!=t&&t.length?t.length-1:n,r)for(var i=e;i--;){var o=t[i].attrs["HDCP-LEVEL"];if(o&&o<=r)return i}return e}},{key:"firstAutoLevel",get:function(){return this.abrController.firstAutoLevel}},{key:"nextAutoLevel",get:function(){return this.abrController.nextAutoLevel},set:function(e){this.abrController.nextAutoLevel=e}},{key:"playingDate",get:function(){return this.streamController.currentProgramDateTime}},{key:"mainForwardBufferInfo",get:function(){return this.streamController.getMainFwdBufferInfo()}},{key:"setAudioOption",value:function(e){var t;return null==(t=this.audioTrackController)?void 0:t.setAudioOption(e)}},{key:"setSubtitleOption",value:function(e){var t;return null==(t=this.subtitleTrackController)||t.setSubtitleOption(e),null}},{key:"allAudioTracks",get:function(){var e=this.audioTrackController;return e?e.allAudioTracks:[]}},{key:"audioTracks",get:function(){var e=this.audioTrackController;return e?e.audioTracks:[]}},{key:"audioTrack",get:function(){var e=this.audioTrackController;return e?e.audioTrack:-1},set:function(e){var t=this.audioTrackController;t&&(t.audioTrack=e)}},{key:"allSubtitleTracks",get:function(){var e=this.subtitleTrackController;return e?e.allSubtitleTracks:[]}},{key:"subtitleTracks",get:function(){var e=this.subtitleTrackController;return e?e.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var e=this.subtitleTrackController;return e?e.subtitleTrack:-1},set:function(e){var t=this.subtitleTrackController;t&&(t.subtitleTrack=e)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var e=this.subtitleTrackController;return!!e&&e.subtitleDisplay},set:function(e){var t=this.subtitleTrackController;t&&(t.subtitleDisplay=e)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(e){this.config.lowLatencyMode=e}},{key:"liveSyncPosition",get:function(){return this.latencyController.liveSyncPosition}},{key:"latency",get:function(){return this.latencyController.latency}},{key:"maxLatency",get:function(){return this.latencyController.maxLatency}},{key:"targetLatency",get:function(){return this.latencyController.targetLatency}},{key:"drift",get:function(){return this.latencyController.drift}},{key:"forceStartLoad",get:function(){return this.streamController.forceStartLoad}}],[{key:"version",get:function(){return"1.5.13"}},{key:"isMSESupported",value:function(){return aa()}},{key:"isSupported",value:function(){return sa()}},{key:"getMediaSource",value:function(){return Je()}},{key:"Events",get:function(){return m}},{key:"ErrorTypes",get:function(){return w}},{key:"ErrorDetails",get:function(){return S}},{key:"DefaultConfig",get:function(){return e.defaultConfig?e.defaultConfig:ea},set:function(t){e.defaultConfig=t}}])}();la.defaultConfig=void 0},function(e,t,n){(function(t){var n;self,n=function(){return function(){var e={6936:function(e,t,n){"use strict";n.d(t,{$N:function(){return d},$X:function(){return u},Dl:function(){return s},FA:function(){return p},M6:function(){return f},VZ:function(){return o},eJ:function(){return a},gO:function(){return l},pq:function(){return c}});var r=n(6284),i={};function o(){return(0,r.wD)()?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:i}function a(){var e=o(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function s(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}function u(e){if(e.message)return e.message;if(e.exception&&e.exception.values&&e.exception.values[0]){var t=e.exception.values[0];return t.type&&t.value?t.type+": "+t.value:t.type||t.value||e.event_id||"<unknown>"}return e.event_id||"<unknown>"}function c(e){var t=o();if(!("console"in t))return e();var n=t.console,r={};["debug","info","warn","error","log","assert"].forEach((function(e){e in t.console&&n[e].__sentry_original__&&(r[e]=n[e],n[e]=n[e].__sentry_original__)}));var i=e();return Object.keys(r).forEach((function(e){n[e]=r[e]})),i}function l(e,t,n){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].value=e.exception.values[0].value||t||"",e.exception.values[0].type=e.exception.values[0].type||n||"Error"}function f(e,t){void 0===t&&(t={});try{e.exception.values[0].mechanism=e.exception.values[0].mechanism||{},Object.keys(t).forEach((function(n){e.exception.values[0].mechanism[n]=t[n]}))}catch(e){}}function d(){try{return document.location.href}catch(e){return""}}function p(e,t){if(!t)return 6e4;var n=parseInt(""+t,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+t);return isNaN(r)?6e4:r-e}},6284:function(e,n,r){"use strict";function i(){return"[object process]"===Object.prototype.toString.call(void 0!==t?t:0)}function o(e,t){return e.require(t)}r.d(n,{fj:function(){return o},wD:function(){return i}}),e=r.hmd(e)},9297:function(e,t,n){"use strict";n.d(t,{lu:function(){return u}});var r=n(6936),i=n(6284);e=n.hmd(e);var o={nowSeconds:function(){return Date.now()/1e3}},a=(0,i.wD)()?function(){try{return(0,i.fj)(e,"perf_hooks").performance}catch(e){return}}():function(){var e=(0,r.VZ)().performance;if(e&&e.now)return{now:function(){return e.now()},timeOrigin:Date.now()-e.now()}}(),s=void 0===a?o:{nowSeconds:function(){return(a.timeOrigin+a.now())/1e3}},u=o.nowSeconds.bind(o);s.nowSeconds.bind(s),function(){var e=(0,r.VZ)().performance;e&&(e.timeOrigin?e.timeOrigin:e.timing&&e.timing.navigationStart||Date.now())}()},2419:function(e,t,n){n(9650),n(935),n(6064),n(7067),n(2642),n(3e3),n(8647),n(1895),n(8236),n(3822),n(5572),n(9318),n(5032),n(9073),n(1430),n(8451),n(8132),n(7482),n(5049),n(489),n(5502),n(571),n(6108),n(4509),n(7727),n(6701),n(4419),n(1933),n(3157),n(9497),n(4104),n(210),n(6576),n(4437),n(8050),n(6648),n(5771),n(2392),n(2335),n(4896),n(4521),n(9147),n(1318),n(4352),n(5327),n(7509),n(5909),n(9584),n(345),n(9134),n(7901),n(6592),n(2220),n(3483),n(957),n(2975),n(2405),n(7224),n(8872),n(4894),n(177),n(7360),n(9011),n(4591),n(7334),n(7083),n(9213),n(8437),n(9839),n(6549),n(2818),n(8543),n(3559),n(4153),n(3292),n(2346),n(9429),n(7849),n(8951),n(7899),n(3863),n(4570),n(6511),n(5853),n(7075),n(3504),n(4913),n(9813),n(8892),n(8888),n(1449),n(7874),n(4609),n(3706),n(9620),n(7762),n(5144),n(5369),n(6209),n(5165),n(8301),n(4116),n(8604),n(9638),n(4040),n(8305),n(4701),n(341),n(6517),n(3386),n(1632),n(9397),n(8163),n(5706),n(660),n(8699),n(4702),n(333),n(1220),n(2087),n(8066),n(8537),n(7925),n(2490),n(7103),n(2586),n(2552),n(4376),n(5153),n(1879),n(2650),n(1104),n(1883),n(5433),n(5e3),n(5932),n(5443),n(6316),n(6094)},3387:function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},5122:function(e,t,n){var r=n(5089);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=r(e))throw TypeError(t);return+e}},8184:function(e,t,n){var r=n(7574)("unscopables"),i=Array.prototype;null==i[r]&&n(3341)(i,r,{}),e.exports=function(e){i[r][e]=!0}},8828:function(e,t,n){"use strict";var r=n(1212)(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},6440:function(e){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},4228:function(e,t,n){var r=n(3305);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},4438:function(e,t,n){"use strict";var r=n(8270),i=n(157),o=n(1485);e.exports=[].copyWithin||function(e,t){var n=r(this),a=o(n.length),s=i(e,a),u=i(t,a),c=arguments.length>2?arguments[2]:void 0,l=Math.min((void 0===c?a:i(c,a))-u,a-s),f=1;for(u<s&&s<u+l&&(f=-1,u+=l-1,s+=l-1);l-- >0;)u in n?n[s]=n[u]:delete n[s],s+=f,u+=f;return n}},5564:function(e,t,n){"use strict";var r=n(8270),i=n(157),o=n(1485);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),u=a>2?arguments[2]:void 0,c=void 0===u?n:i(u,n);c>s;)t[s++]=e;return t}},1464:function(e,t,n){var r=n(7221),i=n(1485),o=n(157);e.exports=function(e){return function(t,n,a){var s,u=r(t),c=i(u.length),l=o(a,c);if(e&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}}},6179:function(e,t,n){var r=n(5052),i=n(1249),o=n(8270),a=n(1485),s=n(3191);e.exports=function(e,t){var n=1==e,u=2==e,c=3==e,l=4==e,f=6==e,d=5==e||f,p=t||s;return function(t,s,h){for(var v,g,m=o(t),y=i(m),b=r(s,h,3),x=a(y.length),w=0,_=n?p(t,x):u?p(t,0):void 0;x>w;w++)if((d||w in y)&&(g=b(v=y[w],w,m),e))if(n)_[w]=g;else if(g)switch(e){case 3:return!0;case 5:return v;case 6:return w;case 2:_.push(v)}else if(l)return!1;return f?-1:c||l?l:_}}},6543:function(e,t,n){var r=n(3387),i=n(8270),o=n(1249),a=n(1485);e.exports=function(e,t,n,s,u){r(t);var c=i(e),l=o(c),f=a(c.length),d=u?f-1:0,p=u?-1:1;if(n<2)for(;;){if(d in l){s=l[d],d+=p;break}if(d+=p,u?d<0:f<=d)throw TypeError("Reduce of empty array with no initial value")}for(;u?d>=0:f>d;d+=p)d in l&&(s=t(s,l[d],d,c));return s}},3606:function(e,t,n){var r=n(3305),i=n(7981),o=n(7574)("species");e.exports=function(e){var t;return i(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&null===(t=t[o])&&(t=void 0)),void 0===t?Array:t}},3191:function(e,t,n){var r=n(3606);e.exports=function(e,t){return new(r(e))(t)}},5538:function(e,t,n){"use strict";var r=n(3387),i=n(3305),o=n(4877),a=[].slice,s={};e.exports=Function.bind||function(e){var t=r(this),n=a.call(arguments,1),u=function(){var r=n.concat(a.call(arguments));return this instanceof u?function(e,t,n){if(!(t in s)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";s[t]=Function("F,a","return new F("+r.join(",")+")")}return s[t](e,n)}(t,r.length,r):o(t,r,e)};return i(t.prototype)&&(u.prototype=t.prototype),u}},4848:function(e,t,n){var r=n(5089),i=n(7574)("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}},5089:function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},6197:function(e,t,n){"use strict";var r=n(7967).f,i=n(4719),o=n(6065),a=n(5052),s=n(6440),u=n(8790),c=n(8175),l=n(4970),f=n(5762),d=n(1763),p=n(2988).fastKey,h=n(2888),v=d?"_s":"size",g=function(e,t){var n,r=p(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,c){var l=e((function(e,r){s(e,l,t,"_i"),e._t=t,e._i=i(null),e._f=void 0,e._l=void 0,e[v]=0,null!=r&&u(r,n,e[c],e)}));return o(l.prototype,{clear:function(){for(var e=h(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[v]=0},delete:function(e){var n=h(this,t),r=g(n,e);if(r){var i=r.n,o=r.p;delete n._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),n._f==r&&(n._f=i),n._l==r&&(n._l=o),n[v]--}return!!r},forEach:function(e){h(this,t);for(var n,r=a(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!g(h(this,t),e)}}),d&&r(l.prototype,"size",{get:function(){return h(this,t)[v]}}),l},def:function(e,t,n){var r,i,o=g(e,t);return o?o.v=n:(e._l=o={i:i=p(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=o),r&&(r.n=o),e[v]++,"F"!==i&&(e._i[i]=o)),e},getEntry:g,setStrong:function(e,t,n){c(e,t,(function(e,n){this._t=h(e,t),this._k=n,this._l=void 0}),(function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?l(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(e._t=void 0,l(1))}),n?"entries":"values",!n,!0),f(t)}}},9882:function(e,t,n){"use strict";var r=n(6065),i=n(2988).getWeak,o=n(4228),a=n(3305),s=n(6440),u=n(8790),c=n(6179),l=n(7917),f=n(2888),d=c(5),p=c(6),h=0,v=function(e){return e._l||(e._l=new g)},g=function(){this.a=[]},m=function(e,t){return d(e.a,(function(e){return e[0]===t}))};g.prototype={get:function(e){var t=m(this,e);if(t)return t[1]},has:function(e){return!!m(this,e)},set:function(e,t){var n=m(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=p(this.a,(function(t){return t[0]===e}));return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,o){var c=e((function(e,r){s(e,c,t,"_i"),e._t=t,e._i=h++,e._l=void 0,null!=r&&u(r,n,e[o],e)}));return r(c.prototype,{delete:function(e){if(!a(e))return!1;var n=i(e);return!0===n?v(f(this,t)).delete(e):n&&l(n,this._i)&&delete n[this._i]},has:function(e){if(!a(e))return!1;var n=i(e);return!0===n?v(f(this,t)).has(e):n&&l(n,this._i)}}),c},def:function(e,t,n){var r=i(o(t),!0);return!0===r?v(e).set(t,n):r[e._i]=n,e},ufstore:v}},8933:function(e,t,n){"use strict";var r=n(7526),i=n(2127),o=n(8859),a=n(6065),s=n(2988),u=n(8790),c=n(6440),l=n(3305),f=n(9448),d=n(8931),p=n(3844),h=n(8880);e.exports=function(e,t,n,v,g,m){var y=r[e],b=y,x=g?"set":"add",w=b&&b.prototype,_={},S=function(e){var t=w[e];o(w,e,"delete"==e||"has"==e?function(e){return!(m&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!l(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof b&&(m||w.forEach&&!f((function(){(new b).entries().next()})))){var O=new b,k=O[x](m?{}:-0,1)!=O,E=f((function(){O.has(1)})),j=d((function(e){new b(e)})),T=!m&&f((function(){for(var e=new b,t=5;t--;)e[x](t,t);return!e.has(-0)}));j||((b=t((function(t,n){c(t,b,e);var r=h(new y,t,b);return null!=n&&u(n,g,r[x],r),r}))).prototype=w,w.constructor=b),(E||T)&&(S("delete"),S("has"),g&&S("get")),(T||k)&&S(x),m&&w.clear&&delete w.clear}else b=v.getConstructor(t,e,g,x),a(b.prototype,n),s.NEED=!0;return p(b,e),_[e]=b,i(i.G+i.W+i.F*(b!=y),_),m||v.setStrong(b,e,g),b}},6094:function(e){var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},7227:function(e,t,n){"use strict";var r=n(7967),i=n(1996);e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},5052:function(e,t,n){var r=n(3387);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){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)}}},5385:function(e,t,n){"use strict";var r=n(9448),i=Date.prototype.getTime,o=Date.prototype.toISOString,a=function(e){return e>9?e:"0"+e};e.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-50000000000001))}))||!r((function(){o.call(new Date(NaN))}))?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),r=t<0?"-":t>9999?"+":"";return r+("00000"+Math.abs(t)).slice(r?-6:-4)+"-"+a(e.getUTCMonth()+1)+"-"+a(e.getUTCDate())+"T"+a(e.getUTCHours())+":"+a(e.getUTCMinutes())+":"+a(e.getUTCSeconds())+"."+(n>99?n:"0"+a(n))+"Z"}:o},107:function(e,t,n){"use strict";var r=n(4228),i=n(3048),o="number";e.exports=function(e){if("string"!==e&&e!==o&&"default"!==e)throw TypeError("Incorrect hint");return i(r(this),e!=o)}},3344:function(e){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},1763:function(e,t,n){e.exports=!n(9448)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},6034:function(e,t,n){var r=n(3305),i=n(7526).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},6140:function(e){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},5969:function(e,t,n){var r=n(1311),i=n(1060),o=n(8449);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var a,s=n(e),u=o.f,c=0;s.length>c;)u.call(e,a=s[c++])&&t.push(a);return t}},2127:function(e,t,n){var r=n(7526),i=n(6094),o=n(3341),a=n(8859),s=n(5052),u="prototype",c=function(e,t,n){var l,f,d,p,h=e&c.F,v=e&c.G,g=e&c.S,m=e&c.P,y=e&c.B,b=v?r:g?r[t]||(r[t]={}):(r[t]||{})[u],x=v?i:i[t]||(i[t]={}),w=x[u]||(x[u]={});for(l in v&&(n=t),n)d=((f=!h&&b&&void 0!==b[l])?b:n)[l],p=y&&f?s(d,r):m&&"function"==typeof d?s(Function.call,d):d,b&&a(b,l,d,e&c.U),x[l]!=d&&o(x,l,p),m&&w[l]!=d&&(w[l]=d)};r.core=i,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},5203:function(e,t,n){var r=n(7574)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},9448:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},9228:function(e,t,n){"use strict";n(4116);var r=n(8859),i=n(3341),o=n(9448),a=n(3344),s=n(7574),u=n(9600),c=s("species"),l=!o((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),f=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){var d=s(e),p=!o((function(){var t={};return t[d]=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[c]=function(){return n}),n[d](""),!t})):void 0;if(!p||!h||"replace"===e&&!l||"split"===e&&!f){var v=/./[d],g=n(a,d,""[e],(function(e,t,n,r,i){return t.exec===u?p&&!i?{done:!0,value:v.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),m=g[0],y=g[1];r(String.prototype,e,m),i(RegExp.prototype,d,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)})}}},1158:function(e,t,n){"use strict";var r=n(4228);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}},8790:function(e,t,n){var r=n(5052),i=n(7368),o=n(1508),a=n(4228),s=n(1485),u=n(762),c={},l={},f=e.exports=function(e,t,n,f,d){var p,h,v,g,m=d?function(){return e}:u(e),y=r(n,f,t?2:1),b=0;if("function"!=typeof m)throw TypeError(e+" is not iterable!");if(o(m)){for(p=s(e.length);p>b;b++)if((g=t?y(a(h=e[b])[0],h[1]):y(e[b]))===c||g===l)return g}else for(v=m.call(e);!(h=v.next()).done;)if((g=i(v,y,h.value,t))===c||g===l)return g};f.BREAK=c,f.RETURN=l},9461:function(e,t,n){e.exports=n(4556)("native-function-to-string",Function.toString)},7526:function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},7917:function(e){var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},3341:function(e,t,n){var r=n(7967),i=n(1996);e.exports=n(1763)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},1308:function(e,t,n){var r=n(7526).document;e.exports=r&&r.documentElement},2956:function(e,t,n){e.exports=!n(1763)&&!n(9448)((function(){return 7!=Object.defineProperty(n(6034)("div"),"a",{get:function(){return 7}}).a}))},8880:function(e,t,n){var r=n(3305),i=n(5170).set;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}},4877:function(e){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},1249:function(e,t,n){var r=n(5089);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},1508:function(e,t,n){var r=n(906),i=n(7574)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},7981:function(e,t,n){var r=n(5089);e.exports=Array.isArray||function(e){return"Array"==r(e)}},3842:function(e,t,n){var r=n(3305),i=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&i(e)===e}},3305:function(e){e.exports=function(e){return"object"==I(e)?null!==e:"function"==typeof e}},5411:function(e,t,n){var r=n(3305),i=n(5089),o=n(7574)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},7368:function(e,t,n){var r=n(4228);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}}},6032:function(e,t,n){"use strict";var r=n(4719),i=n(1996),o=n(3844),a={};n(3341)(a,n(7574)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},8175:function(e,t,n){"use strict";var r=n(2750),i=n(2127),o=n(8859),a=n(3341),s=n(906),u=n(6032),c=n(3844),l=n(627),f=n(7574)("iterator"),d=!([].keys&&"next"in[].keys()),p="keys",h="values",v=function(){return this};e.exports=function(e,t,n,g,m,y,b){u(n,t,g);var x,w,_,S=function(e){if(!d&&e in j)return j[e];switch(e){case p:case h:return function(){return new n(this,e)}}return function(){return new n(this,e)}},O=t+" Iterator",k=m==h,E=!1,j=e.prototype,T=j[f]||j["@@iterator"]||m&&j[m],C=T||S(m),A=m?k?S("entries"):C:void 0,P="Array"==t&&j.entries||T;if(P&&(_=l(P.call(new e)))!==Object.prototype&&_.next&&(c(_,O,!0),r||"function"==typeof _[f]||a(_,f,v)),k&&T&&T.name!==h&&(E=!0,C=function(){return T.call(this)}),r&&!b||!d&&!E&&j[f]||a(j,f,C),s[t]=C,s[O]=v,m)if(x={values:k?C:S(h),keys:y?C:S(p),entries:A},b)for(w in x)w in j||o(j,w,x[w]);else i(i.P+i.F*(d||E),t,x);return x}},8931:function(e,t,n){var r=n(7574)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},e(o)}catch(e){}return n}},4970:function(e){e.exports=function(e,t){return{value:t,done:!!e}}},906:function(e){e.exports={}},2750:function(e){e.exports=!1},5551:function(e){var t=Math.expm1;e.exports=!t||t(10)>22025.465794806718||t(10)<22025.465794806718||-2e-17!=t(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:t},2122:function(e,t,n){var r=n(3733),i=Math.pow,o=i(2,-52),a=i(2,-23),s=i(2,127)*(2-a),u=i(2,-126);e.exports=Math.fround||function(e){var t,n,i=Math.abs(e),c=r(e);return i<u?c*(i/u/a+1/o-1/o)*u*a:(n=(t=(1+a/o)*i)-(t-i))>s||n!=n?c*(1/0):c*n}},1473:function(e){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},3733:function(e){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},2988:function(e,t,n){var r=n(4415)("meta"),i=n(3305),o=n(7917),a=n(7967).f,s=0,u=Object.isExtensible||function(){return!0},c=!n(9448)((function(){return u(Object.preventExtensions({}))})),l=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},f=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==I(e)?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!u(e))return"F";if(!t)return"E";l(e)}return e[r].i},getWeak:function(e,t){if(!o(e,r)){if(!u(e))return!0;if(!t)return!1;l(e)}return e[r].w},onFreeze:function(e){return c&&f.NEED&&u(e)&&!o(e,r)&&l(e),e}}},1384:function(e,t,n){var r=n(7526),i=n(2780).set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,u="process"==n(5089)(a);e.exports=function(){var e,t,n,c=function(){var r,i;for(u&&(r=a.domain)&&r.exit();e;){i=e.fn,e=e.next;try{i()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(u)n=function(){a.nextTick(c)};else if(!o||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var l=s.resolve(void 0);n=function(){l.then(c)}}else n=function(){i.call(r,c)};else{var f=!0,d=document.createTextNode("");new o(c).observe(d,{characterData:!0}),n=function(){d.data=f=!f}}return function(r){var i={fn:r,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}},4258:function(e,t,n){"use strict";var r=n(3387);function i(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)}},8206:function(e,t,n){"use strict";var r=n(1763),i=n(1311),o=n(1060),a=n(8449),s=n(8270),u=n(1249),c=Object.assign;e.exports=!c||n(9448)((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r}))?function(e,t){for(var n=s(e),c=arguments.length,l=1,f=o.f,d=a.f;c>l;)for(var p,h=u(arguments[l++]),v=f?i(h).concat(f(h)):i(h),g=v.length,m=0;g>m;)p=v[m++],r&&!d.call(h,p)||(n[p]=h[p]);return n}:c},4719:function(e,t,n){var r=n(4228),i=n(1626),o=n(6140),a=n(766)("IE_PROTO"),s=function(){},u="prototype",c=function(){var e,t=n(6034)("iframe"),r=o.length;for(t.style.display="none",n(1308).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;r--;)delete c[u][o[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[u]=r(e),n=new s,s[u]=null,n[a]=e):n=c(),void 0===t?n:i(n,t)}},7967:function(e,t,n){var r=n(4228),i=n(2956),o=n(3048),a=Object.defineProperty;t.f=n(1763)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(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}},1626:function(e,t,n){var r=n(7967),i=n(4228),o=n(1311);e.exports=n(1763)?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),s=a.length,u=0;s>u;)r.f(e,n=a[u++],t[n]);return e}},8641:function(e,t,n){var r=n(8449),i=n(1996),o=n(7221),a=n(3048),s=n(7917),u=n(2956),c=Object.getOwnPropertyDescriptor;t.f=n(1763)?c:function(e,t){if(e=o(e),t=a(t,!0),u)try{return c(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},4765:function(e,t,n){var r=n(7221),i=n(9415).f,o={}.toString,a="object"==("undefined"==typeof window?"undefined":I(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))}},9415:function(e,t,n){var r=n(4561),i=n(6140).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},1060:function(e,t){t.f=Object.getOwnPropertySymbols},627:function(e,t,n){var r=n(7917),i=n(8270),o=n(766)("IE_PROTO"),a=Object.prototype;e.exports=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?a:null}},4561:function(e,t,n){var r=n(7917),i=n(7221),o=n(1464)(!1),a=n(766)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~o(c,n)||c.push(n));return c}},1311:function(e,t,n){var r=n(4561),i=n(6140);e.exports=Object.keys||function(e){return r(e,i)}},8449:function(e,t){t.f={}.propertyIsEnumerable},923:function(e,t,n){var r=n(2127),i=n(6094),o=n(9448);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},6222:function(e,t,n){var r=n(9415),i=n(1060),o=n(4228),a=n(7526).Reflect;e.exports=a&&a.ownKeys||function(e){var t=r.f(o(e)),n=i.f;return n?t.concat(n(e)):t}},3589:function(e,t,n){var r=n(7526).parseFloat,i=n(629).trim;e.exports=1/r(n(832)+"-0")!=-1/0?function(e){var t=i(String(e),3),n=r(t);return 0===n&&"-"==t.charAt(0)?-0:n}:r},2738:function(e,t,n){var r=n(7526).parseInt,i=n(629).trim,o=n(832),a=/^[-+]?0[xX]/;e.exports=8!==r(o+"08")||22!==r(o+"0x16")?function(e,t){var n=i(String(e),3);return r(n,t>>>0||(a.test(n)?16:10))}:r},128:function(e){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},5957:function(e,t,n){var r=n(4228),i=n(3305),o=n(4258);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}},1996:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},6065:function(e,t,n){var r=n(8859);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},8859:function(e,t,n){var r=n(7526),i=n(3341),o=n(7917),a=n(4415)("src"),s=n(9461),u="toString",c=(""+s).split(u);n(6094).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var u="function"==typeof n;u&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(u&&(o(n,a)||i(n,a,e[t]?""+e[t]:c.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,u,(function(){return"function"==typeof this&&this[a]||s.call(this)}))},2535:function(e,t,n){"use strict";var r=n(4848),i=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var o=n.call(e,t);if("object"!=I(o))throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},9600:function(e,t,n){"use strict";var r,i,o=n(1158),a=RegExp.prototype.exec,s=String.prototype.replace,u=a,c="lastIndex",l=(r=/a/,i=/b*/g,a.call(r,"a"),a.call(i,"a"),0!==r[c]||0!==i[c]),f=void 0!==/()??/.exec("")[1];(l||f)&&(u=function(e){var t,n,r,i,u=this;return f&&(n=new RegExp("^"+u.source+"$(?!\\s)",o.call(u))),l&&(t=u[c]),r=a.call(u,e),l&&r&&(u[c]=u.global?r.index+r[0].length:t),f&&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=u},7359:function(e){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},5170:function(e,t,n){var r=n(3305),i=n(4228),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(5052)(Function.call,n(8641).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},5762:function(e,t,n){"use strict";var r=n(7526),i=n(7967),o=n(1763),a=n(7574)("species");e.exports=function(e){var t=r[e];o&&t&&!t[a]&&i.f(t,a,{configurable:!0,get:function(){return this}})}},3844:function(e,t,n){var r=n(7967).f,i=n(7917),o=n(7574)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},766:function(e,t,n){var r=n(4556)("keys"),i=n(4415);e.exports=function(e){return r[e]||(r[e]=i(e))}},4556:function(e,t,n){var r=n(6094),i=n(7526),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(2750)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},9190:function(e,t,n){var r=n(4228),i=n(3387),o=n(7574)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[o])?t:i(n)}},6884:function(e,t,n){"use strict";var r=n(9448);e.exports=function(e,t){return!!e&&r((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},1212:function(e,t,n){var r=n(7087),i=n(3344);e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),u=r(n),c=s.length;return u<0||u>=c?e?"":void 0:(o=s.charCodeAt(u))<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):a-56320+(o-55296<<10)+65536}}},8942:function(e,t,n){var r=n(5411),i=n(3344);e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},2468:function(e,t,n){var r=n(2127),i=n(9448),o=n(3344),a=/"/g,s=function(e,t,n,r){var i=String(o(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(r).replace(a,""")+'"'),s+">"+i+"</"+t+">"};e.exports=function(e,t){var n={};n[e]=t(s),r(r.P+r.F*i((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})),"String",n)}},7926:function(e,t,n){"use strict";var r=n(7087),i=n(3344);e.exports=function(e){var t=String(i(this)),n="",o=r(e);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(n+=t);return n}},629:function(e,t,n){var r=n(2127),i=n(3344),o=n(9448),a=n(832),s="["+a+"]",u=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),l=function(e,t,n){var i={},s=o((function(){return!!a[e]()||" "!=" "[e]()})),u=i[e]=s?t(f):a[e];n&&(i[n]=u),r(r.P+r.F*s,"String",i)},f=l.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(u,"")),2&t&&(e=e.replace(c,"")),e};e.exports=l},832:function(e){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},2780:function(e,t,n){var r,i,o,a=n(5052),s=n(4877),u=n(1308),c=n(6034),l=n(7526),f=l.process,d=l.setImmediate,p=l.clearImmediate,h=l.MessageChannel,v=l.Dispatch,g=0,m={},y="onreadystatechange",b=function(){var e=+this;if(m.hasOwnProperty(e)){var t=m[e];delete m[e],t()}},x=function(e){b.call(e.data)};d&&p||(d=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return m[++g]=function(){s("function"==typeof e?e:Function(e),t)},r(g),g},p=function(e){delete m[e]},"process"==n(5089)(f)?r=function(e){f.nextTick(a(b,e,1))}:v&&v.now?r=function(e){v.now(a(b,e,1))}:h?(o=(i=new h).port2,i.port1.onmessage=x,r=a(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(e){l.postMessage(e+"","*")},l.addEventListener("message",x,!1)):r=y in c("script")?function(e){u.appendChild(c("script"))[y]=function(){u.removeChild(this),b.call(e)}}:function(e){setTimeout(a(b,e,1),0)}),e.exports={set:d,clear:p}},157:function(e,t,n){var r=n(7087),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},3133:function(e,t,n){var r=n(7087),i=n(1485);e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=i(t);if(t!==n)throw RangeError("Wrong length!");return n}},7087:function(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},7221:function(e,t,n){var r=n(1249),i=n(3344);e.exports=function(e){return r(i(e))}},1485:function(e,t,n){var r=n(7087),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},8270:function(e,t,n){var r=n(3344);e.exports=function(e){return Object(r(e))}},3048:function(e,t,n){var r=n(3305);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")}},7209:function(e,t,n){"use strict";if(n(1763)){var r=n(2750),i=n(7526),o=n(9448),a=n(2127),s=n(237),u=n(8032),c=n(5052),l=n(6440),f=n(1996),d=n(3341),p=n(6065),h=n(7087),v=n(1485),g=n(3133),m=n(157),y=n(3048),b=n(7917),x=n(4848),w=n(3305),_=n(8270),S=n(1508),O=n(4719),k=n(627),E=n(9415).f,j=n(762),T=n(4415),C=n(7574),A=n(6179),P=n(1464),M=n(9190),R=n(5165),D=n(906),L=n(8931),N=n(5762),F=n(5564),B=n(4438),U=n(7967),z=n(8641),V=U.f,H=z.f,W=i.RangeError,q=i.TypeError,G=i.Uint8Array,Y="ArrayBuffer",K="Shared"+Y,$="BYTES_PER_ELEMENT",X="prototype",Q=Array[X],Z=u.ArrayBuffer,J=u.DataView,ee=A(0),te=A(2),ne=A(3),re=A(4),ie=A(5),oe=A(6),ae=P(!0),se=P(!1),ue=R.values,ce=R.keys,le=R.entries,fe=Q.lastIndexOf,de=Q.reduce,pe=Q.reduceRight,he=Q.join,ve=Q.sort,ge=Q.slice,me=Q.toString,ye=Q.toLocaleString,be=C("iterator"),xe=C("toStringTag"),we=T("typed_constructor"),_e=T("def_constructor"),Se=s.CONSTR,Oe=s.TYPED,ke=s.VIEW,Ee="Wrong length!",je=A(1,(function(e,t){return Me(M(e,e[_e]),t)})),Te=o((function(){return 1===new G(new Uint16Array([1]).buffer)[0]})),Ce=!!G&&!!G[X].set&&o((function(){new G(1).set({})})),Ae=function(e,t){var n=h(e);if(n<0||n%t)throw W("Wrong offset!");return n},Pe=function(e){if(w(e)&&Oe in e)return e;throw q(e+" is not a typed array!")},Me=function(e,t){if(!(w(e)&&we in e))throw q("It is not a typed array constructor!");return new e(t)},Ie=function(e,t){return Re(M(e,e[_e]),t)},Re=function(e,t){for(var n=0,r=t.length,i=Me(e,r);r>n;)i[n]=t[n++];return i},De=function(e,t,n){V(e,t,{get:function(){return this._d[n]}})},Le=function(e){var t,n,r,i,o,a,s=_(e),u=arguments.length,l=u>1?arguments[1]:void 0,f=void 0!==l,d=j(s);if(null!=d&&!S(d)){for(a=d.call(s),r=[],t=0;!(o=a.next()).done;t++)r.push(o.value);s=r}for(f&&u>2&&(l=c(l,arguments[2],2)),t=0,n=v(s.length),i=Me(this,n);n>t;t++)i[t]=f?l(s[t],t):s[t];return i},Ne=function(){for(var e=0,t=arguments.length,n=Me(this,t);t>e;)n[e]=arguments[e++];return n},Fe=!!G&&o((function(){ye.call(new G(1))})),Be=function(){return ye.apply(Fe?ge.call(Pe(this)):Pe(this),arguments)},Ue={copyWithin:function(e,t){return B.call(Pe(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return re(Pe(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return F.apply(Pe(this),arguments)},filter:function(e){return Ie(this,te(Pe(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return ie(Pe(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return oe(Pe(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){ee(Pe(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return se(Pe(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return ae(Pe(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return he.apply(Pe(this),arguments)},lastIndexOf:function(e){return fe.apply(Pe(this),arguments)},map:function(e){return je(Pe(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return de.apply(Pe(this),arguments)},reduceRight:function(e){return pe.apply(Pe(this),arguments)},reverse:function(){for(var e,t=this,n=Pe(t).length,r=Math.floor(n/2),i=0;i<r;)e=t[i],t[i++]=t[--n],t[n]=e;return t},some:function(e){return ne(Pe(this),e,arguments.length>1?arguments[1]:void 0)},sort:function(e){return ve.call(Pe(this),e)},subarray:function(e,t){var n=Pe(this),r=n.length,i=m(e,r);return new(M(n,n[_e]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,v((void 0===t?r:m(t,r))-i))}},ze=function(e,t){return Ie(this,ge.call(Pe(this),e,t))},Ve=function(e){Pe(this);var t=Ae(arguments[1],1),n=this.length,r=_(e),i=v(r.length),o=0;if(i+t>n)throw W(Ee);for(;o<i;)this[t+o]=r[o++]},He={entries:function(){return le.call(Pe(this))},keys:function(){return ce.call(Pe(this))},values:function(){return ue.call(Pe(this))}},We=function(e,t){return w(e)&&e[Oe]&&"symbol"!=I(t)&&t in e&&String(+t)==String(t)},qe=function(e,t){return We(e,t=y(t,!0))?f(2,e[t]):H(e,t)},Ge=function(e,t,n){return!(We(e,t=y(t,!0))&&w(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?V(e,t,n):(e[t]=n.value,e)};Se||(z.f=qe,U.f=Ge),a(a.S+a.F*!Se,"Object",{getOwnPropertyDescriptor:qe,defineProperty:Ge}),o((function(){me.call({})}))&&(me=ye=function(){return he.call(this)});var Ye=p({},Ue);p(Ye,He),d(Ye,be,He.values),p(Ye,{slice:ze,set:Ve,constructor:function(){},toString:me,toLocaleString:Be}),De(Ye,"buffer","b"),De(Ye,"byteOffset","o"),De(Ye,"byteLength","l"),De(Ye,"length","e"),V(Ye,xe,{get:function(){return this[Oe]}}),e.exports=function(e,t,n,u){var c=e+((u=!!u)?"Clamped":"")+"Array",f="get"+e,p="set"+e,h=i[c],m=h||{},y=h&&k(h),b=!h||!s.ABV,_={},S=h&&h[X],j=function(e,n){V(e,n,{get:function(){return function(e,n){var r=e._d;return r.v[f](n*t+r.o,Te)}(this,n)},set:function(e){return function(e,n,r){var i=e._d;u&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),i.v[p](n*t+i.o,r,Te)}(this,n,e)},enumerable:!0})};b?(h=n((function(e,n,r,i){l(e,h,c,"_d");var o,a,s,u,f=0,p=0;if(w(n)){if(!(n instanceof Z||(u=x(n))==Y||u==K))return Oe in n?Re(h,n):Le.call(h,n);o=n,p=Ae(r,t);var m=n.byteLength;if(void 0===i){if(m%t)throw W(Ee);if((a=m-p)<0)throw W(Ee)}else if((a=v(i)*t)+p>m)throw W(Ee);s=a/t}else s=g(n),o=new Z(a=s*t);for(d(e,"_d",{b:o,o:p,l:a,e:s,v:new J(o)});f<s;)j(e,f++)})),S=h[X]=O(Ye),d(S,"constructor",h)):o((function(){h(1)}))&&o((function(){new h(-1)}))&&L((function(e){new h,new h(null),new h(1.5),new h(e)}),!0)||(h=n((function(e,n,r,i){var o;return l(e,h,c),w(n)?n instanceof Z||(o=x(n))==Y||o==K?void 0!==i?new m(n,Ae(r,t),i):void 0!==r?new m(n,Ae(r,t)):new m(n):Oe in n?Re(h,n):Le.call(h,n):new m(g(n))})),ee(y!==Function.prototype?E(m).concat(E(y)):E(m),(function(e){e in h||d(h,e,m[e])})),h[X]=S,r||(S.constructor=h));var T=S[be],C=!!T&&("values"==T.name||null==T.name),A=He.values;d(h,we,!0),d(S,Oe,c),d(S,ke,!0),d(S,_e,h),(u?new h(1)[xe]==c:xe in S)||V(S,xe,{get:function(){return c}}),_[c]=h,a(a.G+a.W+a.F*(h!=m),_),a(a.S,c,{BYTES_PER_ELEMENT:t}),a(a.S+a.F*o((function(){m.of.call(h,1)})),c,{from:Le,of:Ne}),$ in S||d(S,$,t),a(a.P,c,Ue),N(c),a(a.P+a.F*Ce,c,{set:Ve}),a(a.P+a.F*!C,c,He),r||S.toString==me||(S.toString=me),a(a.P+a.F*o((function(){new h(1).slice()})),c,{slice:ze}),a(a.P+a.F*(o((function(){return[1,2].toLocaleString()!=new h([1,2]).toLocaleString()}))||!o((function(){S.toLocaleString.call([1,2])}))),c,{toLocaleString:Be}),D[c]=C?T:A,r||C||d(S,be,A)}}else e.exports=function(){}},8032:function(e,t,n){"use strict";var r=n(7526),i=n(1763),o=n(2750),a=n(237),s=n(3341),u=n(6065),c=n(9448),l=n(6440),f=n(7087),d=n(1485),p=n(3133),h=n(9415).f,v=n(7967).f,g=n(5564),m=n(3844),y="ArrayBuffer",b="DataView",x="prototype",w="Wrong index!",_=r[y],S=r[b],O=r.Math,k=r.RangeError,E=r.Infinity,j=_,T=O.abs,C=O.pow,A=O.floor,P=O.log,M=O.LN2,I="buffer",R="byteLength",D="byteOffset",L=i?"_b":I,N=i?"_l":R,F=i?"_o":D;function B(e,t,n){var r,i,o,a=new Array(n),s=8*n-t-1,u=(1<<s)-1,c=u>>1,l=23===t?C(2,-24)-C(2,-77):0,f=0,d=e<0||0===e&&1/e<0?1:0;for((e=T(e))!=e||e===E?(i=e!=e?1:0,r=u):(r=A(P(e)/M),e*(o=C(2,-r))<1&&(r--,o*=2),(e+=r+c>=1?l/o:l*C(2,1-c))*o>=2&&(r++,o/=2),r+c>=u?(i=0,r=u):r+c>=1?(i=(e*o-1)*C(2,t),r+=c):(i=e*C(2,c-1)*C(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}function U(e,t,n){var r,i=8*n-t-1,o=(1<<i)-1,a=o>>1,s=i-7,u=n-1,c=e[u--],l=127&c;for(c>>=7;s>0;l=256*l+e[u],u--,s-=8);for(r=l&(1<<-s)-1,l>>=-s,s+=t;s>0;r=256*r+e[u],u--,s-=8);if(0===l)l=1-a;else{if(l===o)return r?NaN:c?-E:E;r+=C(2,t),l-=a}return(c?-1:1)*r*C(2,l-t)}function z(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function V(e){return[255&e]}function H(e){return[255&e,e>>8&255]}function W(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function q(e){return B(e,52,8)}function G(e){return B(e,23,4)}function Y(e,t,n){v(e[x],t,{get:function(){return this[n]}})}function K(e,t,n,r){var i=p(+n);if(i+t>e[N])throw k(w);var o=e[L]._b,a=i+e[F],s=o.slice(a,a+t);return r?s:s.reverse()}function $(e,t,n,r,i,o){var a=p(+n);if(a+t>e[N])throw k(w);for(var s=e[L]._b,u=a+e[F],c=r(+i),l=0;l<t;l++)s[u+l]=c[o?l:t-l-1]}if(a.ABV){if(!c((function(){_(1)}))||!c((function(){new _(-1)}))||c((function(){return new _,new _(1.5),new _(NaN),_.name!=y}))){for(var X,Q=(_=function(e){return l(this,_),new j(p(e))})[x]=j[x],Z=h(j),J=0;Z.length>J;)(X=Z[J++])in _||s(_,X,j[X]);o||(Q.constructor=_)}var ee=new S(new _(2)),te=S[x].setInt8;ee.setInt8(0,2147483648),ee.setInt8(1,2147483649),!ee.getInt8(0)&&ee.getInt8(1)||u(S[x],{setInt8:function(e,t){te.call(this,e,t<<24>>24)},setUint8:function(e,t){te.call(this,e,t<<24>>24)}},!0)}else _=function(e){l(this,_,y);var t=p(e);this._b=g.call(new Array(t),0),this[N]=t},S=function(e,t,n){l(this,S,b),l(e,_,b);var r=e[N],i=f(t);if(i<0||i>r)throw k("Wrong offset!");if(i+(n=void 0===n?r-i:d(n))>r)throw k("Wrong length!");this[L]=e,this[F]=i,this[N]=n},i&&(Y(_,R,"_l"),Y(S,I,"_b"),Y(S,R,"_l"),Y(S,D,"_o")),u(S[x],{getInt8:function(e){return K(this,1,e)[0]<<24>>24},getUint8:function(e){return K(this,1,e)[0]},getInt16:function(e){var t=K(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=K(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return z(K(this,4,e,arguments[1]))},getUint32:function(e){return z(K(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return U(K(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return U(K(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){$(this,1,e,V,t)},setUint8:function(e,t){$(this,1,e,V,t)},setInt16:function(e,t){$(this,2,e,H,t,arguments[2])},setUint16:function(e,t){$(this,2,e,H,t,arguments[2])},setInt32:function(e,t){$(this,4,e,W,t,arguments[2])},setUint32:function(e,t){$(this,4,e,W,t,arguments[2])},setFloat32:function(e,t){$(this,4,e,G,t,arguments[2])},setFloat64:function(e,t){$(this,8,e,q,t,arguments[2])}});m(_,y),m(S,b),s(S[x],a.VIEW,!0),t[y]=_,t[b]=S},237:function(e,t,n){for(var r,i=n(7526),o=n(3341),a=n(4415),s=a("typed_array"),u=a("view"),c=!(!i.ArrayBuffer||!i.DataView),l=c,f=0,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");f<9;)(r=i[d[f++]])?(o(r.prototype,s,!0),o(r.prototype,u,!0)):l=!1;e.exports={ABV:c,CONSTR:l,TYPED:s,VIEW:u}},4415:function(e){var t=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+n).toString(36))}},4514:function(e,t,n){var r=n(7526).navigator;e.exports=r&&r.userAgent||""},2888:function(e,t,n){var r=n(3305);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},5392:function(e,t,n){var r=n(7526),i=n(6094),o=n(2750),a=n(7960),s=n(7967).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},7960:function(e,t,n){t.f=n(7574)},7574:function(e,t,n){var r=n(4556)("wks"),i=n(4415),o=n(7526).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},762:function(e,t,n){var r=n(4848),i=n(7574)("iterator"),o=n(906);e.exports=n(6094).getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||o[r(e)]}},9620:function(e,t,n){var r=n(2127);r(r.P,"Array",{copyWithin:n(4438)}),n(8184)("copyWithin")},8888:function(e,t,n){"use strict";var r=n(2127),i=n(6179)(4);r(r.P+r.F*!n(6884)([].every,!0),"Array",{every:function(e){return i(this,e,arguments[1])}})},7762:function(e,t,n){var r=n(2127);r(r.P,"Array",{fill:n(5564)}),n(8184)("fill")},9813:function(e,t,n){"use strict";var r=n(2127),i=n(6179)(2);r(r.P+r.F*!n(6884)([].filter,!0),"Array",{filter:function(e){return i(this,e,arguments[1])}})},5369:function(e,t,n){"use strict";var r=n(2127),i=n(6179)(6),o="findIndex",a=!0;o in[]&&Array(1)[o]((function(){a=!1})),r(r.P+r.F*a,"Array",{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(8184)(o)},5144:function(e,t,n){"use strict";var r=n(2127),i=n(6179)(5),o="find",a=!0;o in[]&&Array(1)[o]((function(){a=!1})),r(r.P+r.F*a,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(8184)(o)},3504:function(e,t,n){"use strict";var r=n(2127),i=n(6179)(0),o=n(6884)([].forEach,!0);r(r.P+r.F*!o,"Array",{forEach:function(e){return i(this,e,arguments[1])}})},3863:function(e,t,n){"use strict";var r=n(5052),i=n(2127),o=n(8270),a=n(7368),s=n(1508),u=n(1485),c=n(7227),l=n(762);i(i.S+i.F*!n(8931)((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,i,f,d=o(e),p="function"==typeof this?this:Array,h=arguments.length,v=h>1?arguments[1]:void 0,g=void 0!==v,m=0,y=l(d);if(g&&(v=r(v,h>2?arguments[2]:void 0,2)),null==y||p==Array&&s(y))for(n=new p(t=u(d.length));t>m;m++)c(n,m,g?v(d[m],m):d[m]);else for(f=y.call(d),n=new p;!(i=f.next()).done;m++)c(n,m,g?a(f,v,[i.value,m],!0):i.value);return n.length=m,n}})},4609:function(e,t,n){"use strict";var r=n(2127),i=n(1464)(!1),o=[].indexOf,a=!!o&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(a||!n(6884)(o)),"Array",{indexOf:function(e){return a?o.apply(this,arguments)||0:i(this,e,arguments[1])}})},7899:function(e,t,n){var r=n(2127);r(r.S,"Array",{isArray:n(7981)})},5165:function(e,t,n){"use strict";var r=n(8184),i=n(4970),o=n(906),a=n(7221);e.exports=n(8175)(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},6511:function(e,t,n){"use strict";var r=n(2127),i=n(7221),o=[].join;r(r.P+r.F*(n(1249)!=Object||!n(6884)(o)),"Array",{join:function(e){return o.call(i(this),void 0===e?",":e)}})},3706:function(e,t,n){"use strict";var r=n(2127),i=n(7221),o=n(7087),a=n(1485),s=[].lastIndexOf,u=!!s&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(u||!n(6884)(s)),"Array",{lastIndexOf:function(e){if(u)return s.apply(this,arguments)||0;var t=i(this),n=a(t.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,o(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}})},4913:function(e,t,n){"use strict";var r=n(2127),i=n(6179)(1);r(r.P+r.F*!n(6884)([].map,!0),"Array",{map:function(e){return i(this,e,arguments[1])}})},4570:function(e,t,n){"use strict";var r=n(2127),i=n(7227);r(r.S+r.F*n(9448)((function(){function e(){}return!(Array.of.call(e)instanceof e)})),"Array",{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)i(n,e,arguments[e++]);return n.length=t,n}})},7874:function(e,t,n){"use strict";var r=n(2127),i=n(6543);r(r.P+r.F*!n(6884)([].reduceRight,!0),"Array",{reduceRight:function(e){return i(this,e,arguments.length,arguments[1],!0)}})},1449:function(e,t,n){"use strict";var r=n(2127),i=n(6543);r(r.P+r.F*!n(6884)([].reduce,!0),"Array",{reduce:function(e){return i(this,e,arguments.length,arguments[1],!1)}})},5853:function(e,t,n){"use strict";var r=n(2127),i=n(1308),o=n(5089),a=n(157),s=n(1485),u=[].slice;r(r.P+r.F*n(9448)((function(){i&&u.call(i)})),"Array",{slice:function(e,t){var n=s(this.length),r=o(this);if(t=void 0===t?n:t,"Array"==r)return u.call(this,e,t);for(var i=a(e,n),c=a(t,n),l=s(c-i),f=new Array(l),d=0;d<l;d++)f[d]="String"==r?this.charAt(i+d):this[i+d];return f}})},8892:function(e,t,n){"use strict";var r=n(2127),i=n(6179)(3);r(r.P+r.F*!n(6884)([].some,!0),"Array",{some:function(e){return i(this,e,arguments[1])}})},7075:function(e,t,n){"use strict";var r=n(2127),i=n(3387),o=n(8270),a=n(9448),s=[].sort,u=[1,2,3];r(r.P+r.F*(a((function(){u.sort(void 0)}))||!a((function(){u.sort(null)}))||!n(6884)(s)),"Array",{sort:function(e){return void 0===e?s.call(o(this)):s.call(o(this),i(e))}})},6209:function(e,t,n){n(5762)("Array")},3292:function(e,t,n){var r=n(2127);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},9429:function(e,t,n){var r=n(2127),i=n(5385);r(r.P+r.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},2346:function(e,t,n){"use strict";var r=n(2127),i=n(8270),o=n(3048);r(r.P+r.F*n(9448)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(e){var t=i(this),n=o(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},8951:function(e,t,n){var r=n(7574)("toPrimitive"),i=Date.prototype;r in i||n(3341)(i,r,n(107))},7849:function(e,t,n){var r=Date.prototype,i="Invalid Date",o="toString",a=r[o],s=r.getTime;new Date(NaN)+""!=i&&n(8859)(r,o,(function(){var e=s.call(this);return e==e?a.call(this):i}))},5049:function(e,t,n){var r=n(2127);r(r.P,"Function",{bind:n(5538)})},5502:function(e,t,n){"use strict";var r=n(3305),i=n(627),o=n(7574)("hasInstance"),a=Function.prototype;o in a||n(7967).f(a,o,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;for(;e=i(e);)if(this.prototype===e)return!0;return!1}})},489:function(e,t,n){var r=n(7967).f,i=Function.prototype,o=/^\s*function ([^ (]*)/,a="name";a in i||n(1763)&&r(i,a,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},3386:function(e,t,n){"use strict";var r=n(6197),i=n(2888),o="Map";e.exports=n(8933)(o,(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(e){var t=r.getEntry(i(this,o),e);return t&&t.v},set:function(e,t){return r.def(i(this,o),0===e?0:e,t)}},r,!0)},6648:function(e,t,n){var r=n(2127),i=n(1473),o=Math.sqrt,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:i(e-1+o(e-1)*o(e+1))}})},5771:function(e,t,n){var r=n(2127),i=Math.asinh;r(r.S+r.F*!(i&&1/i(0)>0),"Math",{asinh:function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):Math.log(t+Math.sqrt(t*t+1)):t}})},2392:function(e,t,n){var r=n(2127),i=Math.atanh;r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},2335:function(e,t,n){var r=n(2127),i=n(3733);r(r.S,"Math",{cbrt:function(e){return i(e=+e)*Math.pow(Math.abs(e),1/3)}})},4896:function(e,t,n){var r=n(2127);r(r.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},4521:function(e,t,n){var r=n(2127),i=Math.exp;r(r.S,"Math",{cosh:function(e){return(i(e=+e)+i(-e))/2}})},9147:function(e,t,n){var r=n(2127),i=n(5551);r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},1318:function(e,t,n){var r=n(2127);r(r.S,"Math",{fround:n(2122)})},4352:function(e,t,n){var r=n(2127),i=Math.abs;r(r.S,"Math",{hypot:function(e,t){for(var n,r,o=0,a=0,s=arguments.length,u=0;a<s;)u<(n=i(arguments[a++]))?(o=o*(r=u/n)*r+1,u=n):o+=n>0?(r=n/u)*r:n;return u===1/0?1/0:u*Math.sqrt(o)}})},5327:function(e,t,n){var r=n(2127),i=Math.imul;r(r.S+r.F*n(9448)((function(){return-5!=i(4294967295,5)||2!=i.length})),"Math",{imul:function(e,t){var n=65535,r=+e,i=+t,o=n&r,a=n&i;return 0|o*a+((n&r>>>16)*a+o*(n&i>>>16)<<16>>>0)}})},7509:function(e,t,n){var r=n(2127);r(r.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},5909:function(e,t,n){var r=n(2127);r(r.S,"Math",{log1p:n(1473)})},9584:function(e,t,n){var r=n(2127);r(r.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},345:function(e,t,n){var r=n(2127);r(r.S,"Math",{sign:n(3733)})},9134:function(e,t,n){var r=n(2127),i=n(5551),o=Math.exp;r(r.S+r.F*n(9448)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(i(e)-i(-e))/2:(o(e-1)-o(-e-1))*(Math.E/2)}})},7901:function(e,t,n){var r=n(2127),i=n(5551),o=Math.exp;r(r.S,"Math",{tanh:function(e){var t=i(e=+e),n=i(-e);return t==1/0?1:n==1/0?-1:(t-n)/(o(e)+o(-e))}})},6592:function(e,t,n){var r=n(2127);r(r.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},4509:function(e,t,n){"use strict";var r=n(7526),i=n(7917),o=n(5089),a=n(8880),s=n(3048),u=n(9448),c=n(9415).f,l=n(8641).f,f=n(7967).f,d=n(629).trim,p="Number",h=r[p],v=h,g=h.prototype,m=o(n(4719)(g))==p,y="trim"in String.prototype,b=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){var n,r,i,o=(t=y?t.trim():d(t,3)).charCodeAt(0);if(43===o||45===o){if(88===(n=t.charCodeAt(2))||120===n)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+t}for(var a,u=t.slice(2),c=0,l=u.length;c<l;c++)if((a=u.charCodeAt(c))<48||a>i)return NaN;return parseInt(u,r)}}return+t};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof h&&(m?u((function(){g.valueOf.call(n)})):o(n)!=p)?a(new v(b(t)),n,h):b(t)};for(var x,w=n(1763)?c(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),_=0;w.length>_;_++)i(v,x=w[_])&&!i(h,x)&&f(h,x,l(v,x));h.prototype=g,g.constructor=h,n(8859)(r,p,h)}},4419:function(e,t,n){var r=n(2127);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},1933:function(e,t,n){var r=n(2127),i=n(7526).isFinite;r(r.S,"Number",{isFinite:function(e){return"number"==typeof e&&i(e)}})},3157:function(e,t,n){var r=n(2127);r(r.S,"Number",{isInteger:n(3842)})},9497:function(e,t,n){var r=n(2127);r(r.S,"Number",{isNaN:function(e){return e!=e}})},4104:function(e,t,n){var r=n(2127),i=n(3842),o=Math.abs;r(r.S,"Number",{isSafeInteger:function(e){return i(e)&&o(e)<=9007199254740991}})},210:function(e,t,n){var r=n(2127);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},6576:function(e,t,n){var r=n(2127);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},4437:function(e,t,n){var r=n(2127),i=n(3589);r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},8050:function(e,t,n){var r=n(2127),i=n(2738);r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},7727:function(e,t,n){"use strict";var r=n(2127),i=n(7087),o=n(5122),a=n(7926),s=1..toFixed,u=Math.floor,c=[0,0,0,0,0,0],l="Number.toFixed: incorrect invocation!",f="0",d=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*c[n],c[n]=r%1e7,r=u(r/1e7)},p=function(e){for(var t=6,n=0;--t>=0;)n+=c[t],c[t]=u(n/e),n=n%e*1e7},h=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==c[e]){var n=String(c[e]);t=""===t?n:t+a.call(f,7-n.length)+n}return t},v=function(e,t,n){return 0===t?n:t%2==1?v(e,t-1,n*e):v(e*e,t/2,n)};r(r.P+r.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(9448)((function(){s.call({})}))),"Number",{toFixed:function(e){var t,n,r,s,u=o(this,l),c=i(e),g="",m=f;if(c<0||c>20)throw RangeError(l);if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(g="-",u=-u),u>1e-21)if(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(u*v(2,69,1))-69,n=t<0?u*v(2,-t,1):u/v(2,t,1),n*=4503599627370496,(t=52-t)>0){for(d(0,n),r=c;r>=7;)d(1e7,0),r-=7;for(d(v(10,r,1),0),r=t-1;r>=23;)p(1<<23),r-=23;p(1<<r),d(1,1),p(2),m=h()}else d(0,n),d(1<<-t,0),m=h()+a.call(f,c);return c>0?g+((s=m.length)<=c?"0."+a.call(f,c-s)+m:m.slice(0,s-c)+"."+m.slice(s-c)):g+m}})},6701:function(e,t,n){"use strict";var r=n(2127),i=n(9448),o=n(5122),a=1..toPrecision;r(r.P+r.F*(i((function(){return"1"!==a.call(1,void 0)}))||!i((function(){a.call({})}))),"Number",{toPrecision:function(e){var t=o(this,"Number#toPrecision: incorrect invocation!");return void 0===e?a.call(t):a.call(t,e)}})},1430:function(e,t,n){var r=n(2127);r(r.S+r.F,"Object",{assign:n(8206)})},935:function(e,t,n){var r=n(2127);r(r.S,"Object",{create:n(4719)})},7067:function(e,t,n){var r=n(2127);r(r.S+r.F*!n(1763),"Object",{defineProperties:n(1626)})},6064:function(e,t,n){var r=n(2127);r(r.S+r.F*!n(1763),"Object",{defineProperty:n(7967).f})},8236:function(e,t,n){var r=n(3305),i=n(2988).onFreeze;n(923)("freeze",(function(e){return function(t){return e&&r(t)?e(i(t)):t}}))},2642:function(e,t,n){var r=n(7221),i=n(8641).f;n(923)("getOwnPropertyDescriptor",(function(){return function(e,t){return i(r(e),t)}}))},1895:function(e,t,n){n(923)("getOwnPropertyNames",(function(){return n(4765).f}))},3e3:function(e,t,n){var r=n(8270),i=n(627);n(923)("getPrototypeOf",(function(){return function(e){return i(r(e))}}))},9073:function(e,t,n){var r=n(3305);n(923)("isExtensible",(function(e){return function(t){return!!r(t)&&(!e||e(t))}}))},9318:function(e,t,n){var r=n(3305);n(923)("isFrozen",(function(e){return function(t){return!r(t)||!!e&&e(t)}}))},5032:function(e,t,n){var r=n(3305);n(923)("isSealed",(function(e){return function(t){return!r(t)||!!e&&e(t)}}))},8451:function(e,t,n){var r=n(2127);r(r.S,"Object",{is:n(7359)})},8647:function(e,t,n){var r=n(8270),i=n(1311);n(923)("keys",(function(){return function(e){return i(r(e))}}))},5572:function(e,t,n){var r=n(3305),i=n(2988).onFreeze;n(923)("preventExtensions",(function(e){return function(t){return e&&r(t)?e(i(t)):t}}))},3822:function(e,t,n){var r=n(3305),i=n(2988).onFreeze;n(923)("seal",(function(e){return function(t){return e&&r(t)?e(i(t)):t}}))},8132:function(e,t,n){var r=n(2127);r(r.S,"Object",{setPrototypeOf:n(5170).set})},7482:function(e,t,n){"use strict";var r=n(4848),i={};i[n(7574)("toStringTag")]="z",i+""!="[object z]"&&n(8859)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},6108:function(e,t,n){var r=n(2127),i=n(3589);r(r.G+r.F*(parseFloat!=i),{parseFloat:i})},571:function(e,t,n){var r=n(2127),i=n(2738);r(r.G+r.F*(parseInt!=i),{parseInt:i})},6517:function(e,t,n){"use strict";var r,i,o,a,s=n(2750),u=n(7526),c=n(5052),l=n(4848),f=n(2127),d=n(3305),p=n(3387),h=n(6440),v=n(8790),g=n(9190),m=n(2780).set,y=n(1384)(),b=n(4258),x=n(128),w=n(4514),_=n(5957),S="Promise",O=u.TypeError,k=u.process,E=k&&k.versions,j=E&&E.v8||"",T=u[S],C="process"==l(k),A=function(){},P=i=b.f,M=!!function(){try{var e=T.resolve(1),t=(e.constructor={})[n(7574)("species")]=function(e){e(A,A)};return(C||"function"==typeof PromiseRejectionEvent)&&e.then(A)instanceof t&&0!==j.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(e){}}(),I=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},R=function(e,t){if(!e._n){e._n=!0;var n=e._c;y((function(){for(var r=e._v,i=1==e._s,o=0,a=function(t){var n,o,a,s=i?t.ok:t.fail,u=t.resolve,c=t.reject,l=t.domain;try{s?(i||(2==e._h&&N(e),e._h=1),!0===s?n=r:(l&&l.enter(),n=s(r),l&&(l.exit(),a=!0)),n===t.promise?c(O("Promise-chain cycle")):(o=I(n))?o.call(n,u,c):u(n)):c(r)}catch(e){l&&!a&&l.exit(),c(e)}};n.length>o;)a(n[o++]);e._c=[],e._n=!1,t&&!e._h&&D(e)}))}},D=function(e){m.call(u,(function(){var t,n,r,i=e._v,o=L(e);if(o&&(t=x((function(){C?k.emit("unhandledRejection",i,e):(n=u.onunhandledrejection)?n({promise:e,reason:i}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",i)})),e._h=C||L(e)?2:1),e._a=void 0,o&&t.e)throw t.v}))},L=function(e){return 1!==e._h&&0===(e._a||e._c).length},N=function(e){m.call(u,(function(){var t;C?k.emit("rejectionHandled",e):(t=u.onrejectionhandled)&&t({promise:e,reason:e._v})}))},F=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),R(t,!0))},B=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw O("Promise can't be resolved itself");(t=I(e))?y((function(){var r={_w:n,_d:!1};try{t.call(e,c(B,r,1),c(F,r,1))}catch(e){F.call(r,e)}})):(n._v=e,n._s=1,R(n,!1))}catch(e){F.call({_w:n,_d:!1},e)}}};M||(T=function(e){h(this,T,S,"_h"),p(e),r.call(this);try{e(c(B,this,1),c(F,this,1))}catch(e){F.call(this,e)}},(r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(6065)(T.prototype,{then:function(e,t){var n=P(g(this,T));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=C?k.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&R(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r;this.promise=e,this.resolve=c(B,e,1),this.reject=c(F,e,1)},b.f=P=function(e){return e===T||e===a?new o(e):i(e)}),f(f.G+f.W+f.F*!M,{Promise:T}),n(3844)(T,S),n(5762)(S),a=n(6094)[S],f(f.S+f.F*!M,S,{reject:function(e){var t=P(this);return(0,t.reject)(e),t.promise}}),f(f.S+f.F*(s||!M),S,{resolve:function(e){return _(s&&this===a?T:this,e)}}),f(f.S+f.F*!(M&&n(8931)((function(e){T.all(e).catch(A)}))),S,{all:function(e){var t=this,n=P(t),r=n.resolve,i=n.reject,o=x((function(){var n=[],o=0,a=1;v(e,!1,(function(e){var s=o++,u=!1;n.push(void 0),a++,t.resolve(e).then((function(e){u||(u=!0,n[s]=e,--a||r(n))}),i)})),--a||r(n)}));return o.e&&i(o.v),n.promise},race:function(e){var t=this,n=P(t),r=n.reject,i=x((function(){v(e,!1,(function(e){t.resolve(e).then(n.resolve,r)}))}));return i.e&&r(i.v),n.promise}})},7103:function(e,t,n){var r=n(2127),i=n(3387),o=n(4228),a=(n(7526).Reflect||{}).apply,s=Function.apply;r(r.S+r.F*!n(9448)((function(){a((function(){}))})),"Reflect",{apply:function(e,t,n){var r=i(e),u=o(n);return a?a(r,t,u):s.call(r,t,u)}})},2586:function(e,t,n){var r=n(2127),i=n(4719),o=n(3387),a=n(4228),s=n(3305),u=n(9448),c=n(5538),l=(n(7526).Reflect||{}).construct,f=u((function(){function e(){}return!(l((function(){}),[],e)instanceof e)})),d=!u((function(){l((function(){}))}));r(r.S+r.F*(f||d),"Reflect",{construct:function(e,t){o(e),a(t);var n=arguments.length<3?e:o(arguments[2]);if(d&&!f)return l(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 r=[null];return r.push.apply(r,t),new(c.apply(e,r))}var u=n.prototype,p=i(s(u)?u:Object.prototype),h=Function.apply.call(e,p,t);return s(h)?h:p}})},2552:function(e,t,n){var r=n(7967),i=n(2127),o=n(4228),a=n(3048);i(i.S+i.F*n(9448)((function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(e,t,n){o(e),t=a(t,!0),o(n);try{return r.f(e,t,n),!0}catch(e){return!1}}})},4376:function(e,t,n){var r=n(2127),i=n(8641).f,o=n(4228);r(r.S,"Reflect",{deleteProperty:function(e,t){var n=i(o(e),t);return!(n&&!n.configurable)&&delete e[t]}})},5153:function(e,t,n){"use strict";var r=n(2127),i=n(4228),o=function(e){this._t=i(e),this._i=0;var t,n=this._k=[];for(t in e)n.push(t)};n(6032)(o,"Object",(function(){var e,t=this,n=t._k;do{if(t._i>=n.length)return{value:void 0,done:!0}}while(!((e=n[t._i++])in t._t));return{value:e,done:!1}})),r(r.S,"Reflect",{enumerate:function(e){return new o(e)}})},2650:function(e,t,n){var r=n(8641),i=n(2127),o=n(4228);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return r.f(o(e),t)}})},1104:function(e,t,n){var r=n(2127),i=n(627),o=n(4228);r(r.S,"Reflect",{getPrototypeOf:function(e){return i(o(e))}})},1879:function(e,t,n){var r=n(8641),i=n(627),o=n(7917),a=n(2127),s=n(3305),u=n(4228);a(a.S,"Reflect",{get:function e(t,n){var a,c,l=arguments.length<3?t:arguments[2];return u(t)===l?t[n]:(a=r.f(t,n))?o(a,"value")?a.value:void 0!==a.get?a.get.call(l):void 0:s(c=i(t))?e(c,n,l):void 0}})},1883:function(e,t,n){var r=n(2127);r(r.S,"Reflect",{has:function(e,t){return t in e}})},5433:function(e,t,n){var r=n(2127),i=n(4228),o=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(e){return i(e),!o||o(e)}})},5e3:function(e,t,n){var r=n(2127);r(r.S,"Reflect",{ownKeys:n(6222)})},5932:function(e,t,n){var r=n(2127),i=n(4228),o=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(e){i(e);try{return o&&o(e),!0}catch(e){return!1}}})},6316:function(e,t,n){var r=n(2127),i=n(5170);i&&r(r.S,"Reflect",{setPrototypeOf:function(e,t){i.check(e,t);try{return i.set(e,t),!0}catch(e){return!1}}})},5443:function(e,t,n){var r=n(7967),i=n(8641),o=n(627),a=n(7917),s=n(2127),u=n(1996),c=n(4228),l=n(3305);s(s.S,"Reflect",{set:function e(t,n,s){var f,d,p=arguments.length<4?t:arguments[3],h=i.f(c(t),n);if(!h){if(l(d=o(t)))return e(d,n,s,p);h=u(0)}if(a(h,"value")){if(!1===h.writable||!l(p))return!1;if(f=i.f(p,n)){if(f.get||f.set||!1===f.writable)return!1;f.value=s,r.f(p,n,f)}else r.f(p,n,u(0,s));return!0}return void 0!==h.set&&(h.set.call(p,s),!0)}})},8301:function(e,t,n){var r=n(7526),i=n(8880),o=n(7967).f,a=n(9415).f,s=n(5411),u=n(1158),c=r.RegExp,l=c,f=c.prototype,d=/a/g,p=/a/g,h=new c(d)!==d;if(n(1763)&&(!h||n(9448)((function(){return p[n(7574)("match")]=!1,c(d)!=d||c(p)==p||"/a/i"!=c(d,"i")})))){c=function(e,t){var n=this instanceof c,r=s(e),o=void 0===t;return!n&&r&&e.constructor===c&&o?e:i(h?new l(r&&!o?e.source:e,t):l((r=e instanceof c)?e.source:e,r&&o?u.call(e):t),n?this:f,c)};for(var v=function(e){e in c||o(c,e,{configurable:!0,get:function(){return l[e]},set:function(t){l[e]=t}})},g=a(l),m=0;g.length>m;)v(g[m++]);f.constructor=c,c.prototype=f,n(8859)(r,"RegExp",c)}n(5762)("RegExp")},4116:function(e,t,n){"use strict";var r=n(9600);n(2127)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},9638:function(e,t,n){n(1763)&&"g"!=/./g.flags&&n(7967).f(RegExp.prototype,"flags",{configurable:!0,get:n(1158)})},4040:function(e,t,n){"use strict";var r=n(4228),i=n(1485),o=n(8828),a=n(2535);n(9228)("match",1,(function(e,t,n,s){return[function(n){var r=e(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=s(n,e,this);if(t.done)return t.value;var u=r(e),c=String(this);if(!u.global)return a(u,c);var l=u.unicode;u.lastIndex=0;for(var f,d=[],p=0;null!==(f=a(u,c));){var h=String(f[0]);d[p]=h,""===h&&(u.lastIndex=o(c,i(u.lastIndex),l)),p++}return 0===p?null:d}]}))},8305:function(e,t,n){"use strict";var r=n(4228),i=n(8270),o=n(1485),a=n(7087),s=n(8828),u=n(2535),c=Math.max,l=Math.min,f=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;n(9228)("replace",2,(function(e,t,n,h){return[function(r,i){var o=e(this),a=null==r?void 0:r[t];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},function(e,t){var i=h(n,e,this,t);if(i.done)return i.value;var f=r(e),d=String(this),p="function"==typeof t;p||(t=String(t));var g=f.global;if(g){var m=f.unicode;f.lastIndex=0}for(var y=[];;){var b=u(f,d);if(null===b)break;if(y.push(b),!g)break;""===String(b[0])&&(f.lastIndex=s(d,o(f.lastIndex),m))}for(var x,w="",_=0,S=0;S<y.length;S++){b=y[S];for(var O=String(b[0]),k=c(l(a(b.index),d.length),0),E=[],j=1;j<b.length;j++)E.push(void 0===(x=b[j])?x:String(x));var T=b.groups;if(p){var C=[O].concat(E,k,d);void 0!==T&&C.push(T);var A=String(t.apply(void 0,C))}else A=v(O,d,k,E,T,t);k>=_&&(w+=d.slice(_,k)+A,_=k+O.length)}return w+d.slice(_)}];function v(e,t,r,o,a,s){var u=r+e.length,c=o.length,l=p;return void 0!==a&&(a=i(a),l=d),n.call(s,l,(function(n,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(u);case"<":s=a[i.slice(1,-1)];break;default:var l=+i;if(0===l)return n;if(l>c){var d=f(l/10);return 0===d?n:d<=c?void 0===o[d-1]?i.charAt(1):o[d-1]+i.charAt(1):n}s=o[l-1]}return void 0===s?"":s}))}}))},4701:function(e,t,n){"use strict";var r=n(4228),i=n(7359),o=n(2535);n(9228)("search",1,(function(e,t,n,a){return[function(n){var r=e(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=a(n,e,this);if(t.done)return t.value;var s=r(e),u=String(this),c=s.lastIndex;i(c,0)||(s.lastIndex=0);var l=o(s,u);return i(s.lastIndex,c)||(s.lastIndex=c),null===l?-1:l.index}]}))},341:function(e,t,n){"use strict";var r=n(5411),i=n(4228),o=n(9190),a=n(8828),s=n(1485),u=n(2535),c=n(9600),l=n(9448),f=Math.min,d=[].push,p="split",h="length",v="lastIndex",g=4294967295,m=!l((function(){RegExp(g,"y")}));n(9228)("split",2,(function(e,t,n,l){var y;return y="c"=="abbc"[p](/(b)*/)[1]||4!="test"[p](/(?:)/,-1)[h]||2!="ab"[p](/(?:ab)*/)[h]||4!="."[p](/(.?)(.?)/)[h]||"."[p](/()()/)[h]>1||""[p](/.?/)[h]?function(e,t){var i=String(this);if(void 0===e&&0===t)return[];if(!r(e))return n.call(i,e,t);for(var o,a,s,u=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,p=void 0===t?g:t>>>0,m=new RegExp(e.source,l+"g");(o=c.call(m,i))&&!((a=m[v])>f&&(u.push(i.slice(f,o.index)),o[h]>1&&o.index<i[h]&&d.apply(u,o.slice(1)),s=o[0][h],f=a,u[h]>=p));)m[v]===o.index&&m[v]++;return f===i[h]?!s&&m.test("")||u.push(""):u.push(i.slice(f)),u[h]>p?u.slice(0,p):u}:"0"[p](void 0,0)[h]?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,r){var i=e(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,i,r):y.call(String(i),n,r)},function(e,t){var r=l(y,e,this,t,y!==n);if(r.done)return r.value;var c=i(e),d=String(this),p=o(c,RegExp),h=c.unicode,v=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(m?"y":"g"),b=new p(m?c:"^(?:"+c.source+")",v),x=void 0===t?g:t>>>0;if(0===x)return[];if(0===d.length)return null===u(b,d)?[d]:[];for(var w=0,_=0,S=[];_<d.length;){b.lastIndex=m?_:0;var O,k=u(b,m?d:d.slice(_));if(null===k||(O=f(s(b.lastIndex+(m?0:_)),d.length))===w)_=a(d,_,h);else{if(S.push(d.slice(w,_)),S.length===x)return S;for(var E=1;E<=k.length-1;E++)if(S.push(k[E]),S.length===x)return S;_=w=O}}return S.push(d.slice(w)),S}]}))},8604:function(e,t,n){"use strict";n(9638);var r=n(4228),i=n(1158),o=n(1763),a="toString",s=/./[a],u=function(e){n(8859)(RegExp.prototype,a,e,!0)};n(9448)((function(){return"/a/b"!=s.call({source:"a",flags:"b"})}))?u((function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!o&&e instanceof RegExp?i.call(e):void 0)})):s.name!=a&&u((function(){return s.call(this)}))},1632:function(e,t,n){"use strict";var r=n(6197),i=n(2888);e.exports=n(8933)("Set",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return r.def(i(this,"Set"),e=0===e?0:e,e)}},r)},7360:function(e,t,n){"use strict";n(2468)("anchor",(function(e){return function(t){return e(this,"a","name",t)}}))},9011:function(e,t,n){"use strict";n(2468)("big",(function(e){return function(){return e(this,"big","","")}}))},4591:function(e,t,n){"use strict";n(2468)("blink",(function(e){return function(){return e(this,"blink","","")}}))},7334:function(e,t,n){"use strict";n(2468)("bold",(function(e){return function(){return e(this,"b","","")}}))},2405:function(e,t,n){"use strict";var r=n(2127),i=n(1212)(!1);r(r.P,"String",{codePointAt:function(e){return i(this,e)}})},7224:function(e,t,n){"use strict";var r=n(2127),i=n(1485),o=n(8942),a="endsWith",s=""[a];r(r.P+r.F*n(5203)(a),"String",{endsWith:function(e){var t=o(this,e,a),n=arguments.length>1?arguments[1]:void 0,r=i(t.length),u=void 0===n?r:Math.min(i(n),r),c=String(e);return s?s.call(t,c,u):t.slice(u-c.length,u)===c}})},7083:function(e,t,n){"use strict";n(2468)("fixed",(function(e){return function(){return e(this,"tt","","")}}))},9213:function(e,t,n){"use strict";n(2468)("fontcolor",(function(e){return function(t){return e(this,"font","color",t)}}))},8437:function(e,t,n){"use strict";n(2468)("fontsize",(function(e){return function(t){return e(this,"font","size",t)}}))},2220:function(e,t,n){var r=n(2127),i=n(157),o=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,a=0;r>a;){if(t=+arguments[a++],i(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?o(t):o(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},8872:function(e,t,n){"use strict";var r=n(2127),i=n(8942),o="includes";r(r.P+r.F*n(5203)(o),"String",{includes:function(e){return!!~i(this,e,o).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},9839:function(e,t,n){"use strict";n(2468)("italics",(function(e){return function(){return e(this,"i","","")}}))},2975:function(e,t,n){"use strict";var r=n(1212)(!0);n(8175)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},6549:function(e,t,n){"use strict";n(2468)("link",(function(e){return function(t){return e(this,"a","href",t)}}))},3483:function(e,t,n){var r=n(2127),i=n(7221),o=n(1485);r(r.S,"String",{raw:function(e){for(var t=i(e.raw),n=o(t.length),r=arguments.length,a=[],s=0;n>s;)a.push(String(t[s++])),s<r&&a.push(String(arguments[s]));return a.join("")}})},4894:function(e,t,n){var r=n(2127);r(r.P,"String",{repeat:n(7926)})},2818:function(e,t,n){"use strict";n(2468)("small",(function(e){return function(){return e(this,"small","","")}}))},177:function(e,t,n){"use strict";var r=n(2127),i=n(1485),o=n(8942),a="startsWith",s=""[a];r(r.P+r.F*n(5203)(a),"String",{startsWith:function(e){var t=o(this,e,a),n=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return s?s.call(t,r,n):t.slice(n,n+r.length)===r}})},8543:function(e,t,n){"use strict";n(2468)("strike",(function(e){return function(){return e(this,"strike","","")}}))},3559:function(e,t,n){"use strict";n(2468)("sub",(function(e){return function(){return e(this,"sub","","")}}))},4153:function(e,t,n){"use strict";n(2468)("sup",(function(e){return function(){return e(this,"sup","","")}}))},957:function(e,t,n){"use strict";n(629)("trim",(function(e){return function(){return e(this,3)}}))},9650:function(e,t,n){"use strict";var r=n(7526),i=n(7917),o=n(1763),a=n(2127),s=n(8859),u=n(2988).KEY,c=n(9448),l=n(4556),f=n(3844),d=n(4415),p=n(7574),h=n(7960),v=n(5392),g=n(5969),m=n(7981),y=n(4228),b=n(3305),x=n(8270),w=n(7221),_=n(3048),S=n(1996),O=n(4719),k=n(4765),E=n(8641),j=n(1060),T=n(7967),C=n(1311),A=E.f,P=T.f,M=k.f,R=r.Symbol,D=r.JSON,L=D&&D.stringify,N="prototype",F=p("_hidden"),B=p("toPrimitive"),U={}.propertyIsEnumerable,z=l("symbol-registry"),V=l("symbols"),H=l("op-symbols"),W=Object[N],q="function"==typeof R&&!!j.f,G=r.QObject,Y=!G||!G[N]||!G[N].findChild,K=o&&c((function(){return 7!=O(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=A(W,t);r&&delete W[t],P(e,t,n),r&&e!==W&&P(W,t,r)}:P,$=function(e){var t=V[e]=O(R[N]);return t._k=e,t},X=q&&"symbol"==I(R.iterator)?function(e){return"symbol"==I(e)}:function(e){return e instanceof R},Q=function(e,t,n){return e===W&&Q(H,t,n),y(e),t=_(t,!0),y(n),i(V,t)?(n.enumerable?(i(e,F)&&e[F][t]&&(e[F][t]=!1),n=O(n,{enumerable:S(0,!1)})):(i(e,F)||P(e,F,S(1,{})),e[F][t]=!0),K(e,t,n)):P(e,t,n)},Z=function(e,t){y(e);for(var n,r=g(t=w(t)),i=0,o=r.length;o>i;)Q(e,n=r[i++],t[n]);return e},J=function(e){var t=U.call(this,e=_(e,!0));return!(this===W&&i(V,e)&&!i(H,e))&&(!(t||!i(this,e)||!i(V,e)||i(this,F)&&this[F][e])||t)},ee=function(e,t){if(e=w(e),t=_(t,!0),e!==W||!i(V,t)||i(H,t)){var n=A(e,t);return!n||!i(V,t)||i(e,F)&&e[F][t]||(n.enumerable=!0),n}},te=function(e){for(var t,n=M(w(e)),r=[],o=0;n.length>o;)i(V,t=n[o++])||t==F||t==u||r.push(t);return r},ne=function(e){for(var t,n=e===W,r=M(n?H:w(e)),o=[],a=0;r.length>a;)!i(V,t=r[a++])||n&&!i(W,t)||o.push(V[t]);return o};q||(s((R=function(){if(this instanceof R)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===W&&t.call(H,n),i(this,F)&&i(this[F],e)&&(this[F][e]=!1),K(this,e,S(1,n))};return o&&Y&&K(W,e,{configurable:!0,set:t}),$(e)})[N],"toString",(function(){return this._k})),E.f=ee,T.f=Q,n(9415).f=k.f=te,n(8449).f=J,j.f=ne,o&&!n(2750)&&s(W,"propertyIsEnumerable",J,!0),h.f=function(e){return $(p(e))}),a(a.G+a.W+a.F*!q,{Symbol:R});for(var re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ie=0;re.length>ie;)p(re[ie++]);for(var oe=C(p.store),ae=0;oe.length>ae;)v(oe[ae++]);a(a.S+a.F*!q,"Symbol",{for:function(e){return i(z,e+="")?z[e]:z[e]=R(e)},keyFor:function(e){if(!X(e))throw TypeError(e+" is not a symbol!");for(var t in z)if(z[t]===e)return t},useSetter:function(){Y=!0},useSimple:function(){Y=!1}}),a(a.S+a.F*!q,"Object",{create:function(e,t){return void 0===t?O(e):Z(O(e),t)},defineProperty:Q,defineProperties:Z,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:ne});var se=c((function(){j.f(1)}));a(a.S+a.F*se,"Object",{getOwnPropertySymbols:function(e){return j.f(x(e))}}),D&&a(a.S+a.F*(!q||c((function(){var e=R();return"[null]"!=L([e])||"{}"!=L({a:e})||"{}"!=L(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(b(t)||void 0!==e)&&!X(e))return m(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!X(t))return t}),r[1]=t,L.apply(D,r)}}),R[N][B]||n(3341)(R[N],B,R[N].valueOf),f(R,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},5706:function(e,t,n){"use strict";var r=n(2127),i=n(237),o=n(8032),a=n(4228),s=n(157),u=n(1485),c=n(3305),l=n(7526).ArrayBuffer,f=n(9190),d=o.ArrayBuffer,p=o.DataView,h=i.ABV&&l.isView,v=d.prototype.slice,g=i.VIEW,m="ArrayBuffer";r(r.G+r.W+r.F*(l!==d),{ArrayBuffer:d}),r(r.S+r.F*!i.CONSTR,m,{isView:function(e){return h&&h(e)||c(e)&&g in e}}),r(r.P+r.U+r.F*n(9448)((function(){return!new d(2).slice(1,void 0).byteLength})),m,{slice:function(e,t){if(void 0!==v&&void 0===t)return v.call(a(this),e);for(var n=a(this).byteLength,r=s(e,n),i=s(void 0===t?n:t,n),o=new(f(this,d))(u(i-r)),c=new p(this),l=new p(o),h=0;r<i;)l.setUint8(h++,c.getUint8(r++));return o}}),n(5762)(m)},660:function(e,t,n){var r=n(2127);r(r.G+r.W+r.F*!n(237).ABV,{DataView:n(8032).DataView})},7925:function(e,t,n){n(7209)("Float32",4,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},2490:function(e,t,n){n(7209)("Float64",8,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},1220:function(e,t,n){n(7209)("Int16",2,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},8066:function(e,t,n){n(7209)("Int32",4,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},8699:function(e,t,n){n(7209)("Int8",1,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},2087:function(e,t,n){n(7209)("Uint16",2,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},8537:function(e,t,n){n(7209)("Uint32",4,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},4702:function(e,t,n){n(7209)("Uint8",1,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},333:function(e,t,n){n(7209)("Uint8",1,(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0)},9397:function(e,t,n){"use strict";var r,i=n(7526),o=n(6179)(0),a=n(8859),s=n(2988),u=n(8206),c=n(9882),l=n(3305),f=n(2888),d=n(2888),p=!i.ActiveXObject&&"ActiveXObject"in i,h="WeakMap",v=s.getWeak,g=Object.isExtensible,m=c.ufstore,y=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},b={get:function(e){if(l(e)){var t=v(e);return!0===t?m(f(this,h)).get(e):t?t[this._i]:void 0}},set:function(e,t){return c.def(f(this,h),e,t)}},x=e.exports=n(8933)(h,y,b,c,!0,!0);d&&p&&(u((r=c.getConstructor(y,h)).prototype,b),s.NEED=!0,o(["delete","has","get","set"],(function(e){var t=x.prototype,n=t[e];a(t,e,(function(t,i){if(l(t)&&!g(t)){this._f||(this._f=new r);var o=this._f[e](t,i);return"set"==e?this:o}return n.call(this,t,i)}))})))},8163:function(e,t,n){"use strict";var r=n(9882),i=n(2888),o="WeakSet";n(8933)(o,(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return r.def(i(this,o),e,!0)}},r,!1,!0)},4974:function(e){(e.exports=function(){this.events={}}).prototype={emit:function(e){var t=[].slice.call(arguments,1);[].slice.call(this.events[e]||[]).filter((function(e){e.apply(this,t)}))},on:function(e,t){return(this.events[e]=this.events[e]||[]).push(t),function(){this.events[e]=this.events[e].filter((function(e){return e!==t}))}.bind(this)}}},6942:function(e){e.exports=function(e){e.events={}}},3855:function(e,t,n){!function(e){var t=function(){try{return!!Symbol.iterator}catch(e){return!1}}(),n=function(e){var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t&&(n[Symbol.iterator]=function(){return n}),n},r=function(e){return encodeURIComponent(e).replace(/%20/g,"+")},i=function(e){return decodeURIComponent(String(e).replace(/\+/g," "))};(function(){try{var t=e.URLSearchParams;return"a=1"===new t("?a=1").toString()&&"function"==typeof t.prototype.set&&"function"==typeof t.prototype.entries}catch(e){return!1}})()||function(){var i=function(e){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var t=I(e);if("undefined"===t);else if("string"===t)""!==e&&this._fromString(e);else if(e instanceof i){var n=this;e.forEach((function(e,t){n.append(t,e)}))}else{if(null===e||"object"!==t)throw new TypeError("Unsupported input's type for URLSearchParams");if("[object Array]"===Object.prototype.toString.call(e))for(var r=0;r<e.length;r++){var o=e[r];if("[object Array]"!==Object.prototype.toString.call(o)&&2===o.length)throw new TypeError("Expected [string, any] as entry at index "+r+" of URLSearchParams's input");this.append(o[0],o[1])}else for(var a in e)e.hasOwnProperty(a)&&this.append(a,e[a])}},o=i.prototype;o.append=function(e,t){e in this._entries?this._entries[e].push(String(t)):this._entries[e]=[String(t)]},o.delete=function(e){delete this._entries[e]},o.get=function(e){return e in this._entries?this._entries[e][0]:null},o.getAll=function(e){return e in this._entries?this._entries[e].slice(0):[]},o.has=function(e){return e in this._entries},o.set=function(e,t){this._entries[e]=[String(t)]},o.forEach=function(e,t){var n;for(var r in this._entries)if(this._entries.hasOwnProperty(r)){n=this._entries[r];for(var i=0;i<n.length;i++)e.call(t,n[i],r,this)}},o.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),n(e)},o.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),n(e)},o.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),n(e)},t&&(o[Symbol.iterator]=o.entries),o.toString=function(){var e=[];return this.forEach((function(t,n){e.push(r(n)+"="+r(t))})),e.join("&")},e.URLSearchParams=i}();var o=e.URLSearchParams.prototype;"function"!=typeof o.sort&&(o.sort=function(){var e=this,t=[];this.forEach((function(n,r){t.push([r,n]),e._entries||e.delete(r)})),t.sort((function(e,t){return e[0]<t[0]?-1:e[0]>t[0]?1:0})),e._entries&&(e._entries={});for(var n=0;n<t.length;n++)this.append(t[n][0],t[n][1])}),"function"!=typeof o._fromString&&Object.defineProperty(o,"_fromString",{enumerable:!1,configurable:!1,writable:!1,value:function(e){if(this._entries)this._entries={};else{var t=[];this.forEach((function(e,n){t.push(n)}));for(var n=0;n<t.length;n++)this.delete(t[n])}var r,o=(e=e.replace(/^\?/,"")).split("&");for(n=0;n<o.length;n++)r=o[n].split("="),this.append(i(r[0]),r.length>1?i(r[1]):"")}})}(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this),function(e){if(function(){try{var t=new e.URL("b","http://a");return t.pathname="c d","http://a/c%20d"===t.href&&t.searchParams}catch(e){return!1}}()||function(){var t=e.URL,n=function(t,n){"string"!=typeof t&&(t=String(t)),n&&"string"!=typeof n&&(n=String(n));var r,i=document;if(n&&(void 0===e.location||n!==e.location.href)){n=n.toLowerCase(),(r=(i=document.implementation.createHTMLDocument("")).createElement("base")).href=n,i.head.appendChild(r);try{if(0!==r.href.indexOf(n))throw new Error(r.href)}catch(e){throw new Error("URL unable to set base "+n+" due to "+e)}}var o=i.createElement("a");o.href=t,r&&(i.body.appendChild(o),o.href=o.href);var a=i.createElement("input");if(a.type="url",a.value=t,":"===o.protocol||!/:/.test(o.href)||!a.checkValidity()&&!n)throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:o});var s=new e.URLSearchParams(this.search),u=!0,c=!0,l=this;["append","delete","set"].forEach((function(e){var t=s[e];s[e]=function(){t.apply(s,arguments),u&&(c=!1,l.search=s.toString(),c=!0)}})),Object.defineProperty(this,"searchParams",{value:s,enumerable:!0});var f=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==f&&(f=this.search,c&&(u=!1,this.searchParams._fromString(this.search),u=!0))}})},r=n.prototype;["hash","host","hostname","port","protocol"].forEach((function(e){!function(e){Object.defineProperty(r,e,{get:function(){return this._anchorElement[e]},set:function(t){this._anchorElement[e]=t},enumerable:!0})}(e)})),Object.defineProperty(r,"search",{get:function(){return this._anchorElement.search},set:function(e){this._anchorElement.search=e,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(r,{toString:{get:function(){var e=this;return function(){return e.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(e){this._anchorElement.href=e,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(e){this._anchorElement.pathname=e},enumerable:!0},origin:{get:function(){var e={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],t=this._anchorElement.port!=e&&""!==this._anchorElement.port;return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(t?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(e){},enumerable:!0},username:{get:function(){return""},set:function(e){},enumerable:!0}}),n.createObjectURL=function(e){return t.createObjectURL.apply(t,arguments)},n.revokeObjectURL=function(e){return t.revokeObjectURL.apply(t,arguments)},e.URL=n}(),void 0!==e.location&&!("origin"in e.location)){var t=function(){return e.location.protocol+"//"+e.location.hostname+(e.location.port?":"+e.location.port:"")};try{Object.defineProperty(e.location,"origin",{get:t,enumerable:!0})}catch(n){setInterval((function(){e.location.origin=t()}),100)}}}(void 0!==n.g?n.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this)}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={id:t,loaded:!1,exports:{}};return e[t].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==("undefined"==typeof globalThis?"undefined":I(globalThis)))return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==("undefined"==typeof window?"undefined":I(window)))return window}}(),r.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var i={};return function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==I(Symbol.iterator)?function(e){return I(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":I(e)})(t)}function t(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function n(e){return function(){var n=this,r=arguments;return new Promise((function(i,o){var a=e.apply(n,r);function s(e){t(a,i,o,s,u,"next",e)}function u(e){t(a,i,o,s,u,"throw",e)}s(void 0)}))}}function o(t){var n=function(t,n){if("object"!=e(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,"string");if("object"!=e(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==e(n)?n:n+""}function a(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){a(e,t,n[t])}))}return e}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(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,o(r.key),r)}}function d(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function p(t,n){if(n&&("object"==e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t){return(v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function g(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}r.d(i,{default:function(){return pn}}),r(2419),r(3855);var m=function(){return(m=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function y(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function b(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(y(arguments[t]));return e}var x=function(){return(x=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function w(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function _(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(w(arguments[t]));return e}function S(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return M(e,Error)}}function O(e){return"[object ErrorEvent]"===Object.prototype.toString.call(e)}function k(e){return"[object DOMError]"===Object.prototype.toString.call(e)}function E(e){return"[object String]"===Object.prototype.toString.call(e)}function j(e){return null===e||"object"!=I(e)&&"function"!=typeof e}function T(e){return"[object Object]"===Object.prototype.toString.call(e)}function C(e){return"undefined"!=typeof Event&&M(e,Event)}function A(e){return"undefined"!=typeof Element&&M(e,Element)}function P(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function M(e,t){try{return e instanceof t}catch(e){return!1}}var R,D=r(9297);!function(e){e.PENDING="PENDING",e.RESOLVED="RESOLVED",e.REJECTED="REJECTED"}(R||(R={}));var L=function(){function e(e){var t=this;this._state=R.PENDING,this._handlers=[],this._resolve=function(e){t._setResult(R.RESOLVED,e)},this._reject=function(e){t._setResult(R.REJECTED,e)},this._setResult=function(e,n){t._state===R.PENDING&&(P(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._attachHandler=function(e){t._handlers=t._handlers.concat(e),t._executeHandlers()},this._executeHandlers=function(){if(t._state!==R.PENDING){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e.done||(t._state===R.RESOLVED&&e.onfulfilled&&e.onfulfilled(t._value),t._state===R.REJECTED&&e.onrejected&&e.onrejected(t._value),e.done=!0)}))}};try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}return e.resolve=function(t){return new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){return new e((function(n,r){if(Array.isArray(t))if(0!==t.length){var i=t.length,o=[];t.forEach((function(t,a){e.resolve(t).then((function(e){o[a]=e,0==(i-=1)&&n(o)})).then(null,r)}))}else n([]);else r(new TypeError("Promise.all requires an array as input."))}))},e.prototype.then=function(t,n){var r=this;return new e((function(e,i){r._attachHandler({done:!1,onfulfilled:function(n){if(t)try{return void e(t(n))}catch(e){return void i(e)}else e(n)},onrejected:function(t){if(n)try{return void e(n(t))}catch(e){return void i(e)}else i(t)}})}))},e.prototype.catch=function(e){return this.then((function(e){return e}),e)},e.prototype.finally=function(t){var n=this;return new e((function(e,r){var i,o;return n.then((function(e){o=!1,i=e,t&&t()}),(function(e){o=!0,i=e,t&&t()})).then((function(){o?r(i):e(i)}))}))},e.prototype.toString=function(){return"[object SyncPromise]"},e}(),N=r(6936),F=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}return e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=_(t._breadcrumbs),n._tags=x({},t._tags),n._extra=x({},t._extra),n._contexts=x({},t._contexts),n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=_(t._eventProcessors)),n},e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype.setUser=function(e){return this._user=e||{},this._session&&this._session.update({user:e}),this._notifyScopeListeners(),this},e.prototype.getUser=function(){return this._user},e.prototype.setTags=function(e){return this._tags=x(x({},this._tags),e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=x(x({},this._tags),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=x(x({},this._extra),e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=x(x({},this._extra),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},e.prototype.setTransactionName=function(e){return this._transactionName=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this.setTransactionName(e)},e.prototype.setContext=function(e,t){var n;return null===t?delete this._contexts[e]:this._contexts=x(x({},this._contexts),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.prototype.getTransaction=function(){var e,t,n,r,i=this.getSpan();return(null===(e=i)||void 0===e?void 0:e.transaction)?null===(t=i)||void 0===t?void 0:t.transaction:(null===(r=null===(n=i)||void 0===n?void 0:n.spanRecorder)||void 0===r?void 0:r.spans[0])?i.spanRecorder.spans[0]:void 0},e.prototype.setSession=function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this},e.prototype.getSession=function(){return this._session},e.prototype.update=function(t){if(!t)return this;if("function"==typeof t){var n=t(this);return n instanceof e?n:this}return t instanceof e?(this._tags=x(x({},this._tags),t._tags),this._extra=x(x({},this._extra),t._extra),this._contexts=x(x({},this._contexts),t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint)):T(t)&&(this._tags=x(x({},this._tags),t.tags),this._extra=x(x({},this._extra),t.extra),this._contexts=x(x({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint)),this},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var n=x({timestamp:(0,D.lu)()},e);return this._breadcrumbs=void 0!==t&&t>=0?_(this._breadcrumbs,[n]).slice(-t):_(this._breadcrumbs,[n]),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype.applyToEvent=function(e,t){var n;if(this._extra&&Object.keys(this._extra).length&&(e.extra=x(x({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=x(x({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=x(x({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=x(x({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=x({trace:this._span.getTraceContext()},e.contexts);var r=null===(n=this._span.transaction)||void 0===n?void 0:n.name;r&&(e.tags=x({transaction:r},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=_(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,this._notifyEventProcessors(_(B(),this._eventProcessors),e,t)},e.prototype._notifyEventProcessors=function(e,t,n,r){var i=this;return void 0===r&&(r=0),new L((function(o,a){var s=e[r];if(null===t||"function"!=typeof s)o(t);else{var u=s(x({},t),n);P(u)?u.then((function(t){return i._notifyEventProcessors(e,t,n,r+1).then(o)})).then(null,a):i._notifyEventProcessors(e,u,n,r+1).then(o).then(null,a)}}))},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(t){t(e)})),this._notifyingListeners=!1)},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e}();function B(){var e=(0,N.VZ)();return e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.globalEventProcessors=e.__SENTRY__.globalEventProcessors||[],e.__SENTRY__.globalEventProcessors}function U(e){B().push(e)}var z=(0,N.VZ)(),V="Sentry Logger ",H=function(){function e(){this._enabled=!1}return e.prototype.disable=function(){this._enabled=!1},e.prototype.enable=function(){this._enabled=!0},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&(0,N.pq)((function(){z.console.log(V+"[Log]: "+e.join(" "))}))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&(0,N.pq)((function(){z.console.warn(V+"[Warn]: "+e.join(" "))}))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._enabled&&(0,N.pq)((function(){z.console.error(V+"[Error]: "+e.join(" "))}))},e}();z.__SENTRY__=z.__SENTRY__||{};var W,q=z.__SENTRY__.logger||(z.__SENTRY__.logger=new H),G=r(6284);!function(e){e.Ok="ok",e.Exited="exited",e.Crashed="crashed",e.Abnormal="abnormal"}(W||(W={}));var Y=function(e,t){return(Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},K=function(){return(K=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function $(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function X(e){try{for(var t=e,n=[],r=0,i=0,o=void 0;t&&r++<5&&!("html"===(o=Q(t))||r>1&&i+3*n.length+o.length>=80);)n.push(o),i+=o.length,t=t.parentNode;return n.reverse().join(" > ")}catch(e){return"<unknown>"}}function Q(e){var t,n,r,i,o,a=e,s=[];if(!a||!a.tagName)return"";if(s.push(a.tagName.toLowerCase()),a.id&&s.push("#"+a.id),(t=a.className)&&E(t))for(n=t.split(/\s+/),o=0;o<n.length;o++)s.push("."+n[o]);var u=["type","name","title","alt"];for(o=0;o<u.length;o++)r=u[o],(i=a.getAttribute(r))&&s.push("["+r+'="'+i+'"]');return s.join("")}var Z=function(){function e(){this._hasWeakSet="function"==typeof WeakSet,this._inner=this._hasWeakSet?new WeakSet:[]}return e.prototype.memoize=function(e){if(this._hasWeakSet)return!!this._inner.has(e)||(this._inner.add(e),!1);for(var t=0;t<this._inner.length;t++)if(this._inner[t]===e)return!0;return this._inner.push(e),!1},e.prototype.unmemoize=function(e){if(this._hasWeakSet)this._inner.delete(e);else for(var t=0;t<this._inner.length;t++)if(this._inner[t]===e){this._inner.splice(t,1);break}},e}(),J="<anonymous>";function ee(e){try{return e&&"function"==typeof e&&e.name||J}catch(e){return J}}function te(e,t){return void 0===t&&(t=0),"string"!=typeof e||0===t||e.length<=t?e:e.substr(0,t)+"..."}function ne(e,t){if(!Array.isArray(e))return"";for(var n=[],r=0;r<e.length;r++){var i=e[r];try{n.push(String(i))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function re(e,t){return!!E(e)&&(n=t,"[object RegExp]"===Object.prototype.toString.call(n)?t.test(e):"string"==typeof t&&-1!==e.indexOf(t));var n}function ie(e,t,n){if(t in e){var r=e[t],i=n(r);if("function"==typeof i)try{i.prototype=i.prototype||{},Object.defineProperties(i,{__sentry_original__:{enumerable:!1,value:r}})}catch(e){}e[t]=i}}function oe(e){if(S(e)){var t=e,n={message:t.message,name:t.name,stack:t.stack};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}if(C(e)){var i=e,o={};o.type=i.type;try{o.target=A(i.target)?X(i.target):Object.prototype.toString.call(i.target)}catch(e){o.target="<unknown>"}try{o.currentTarget=A(i.currentTarget)?X(i.currentTarget):Object.prototype.toString.call(i.currentTarget)}catch(e){o.currentTarget="<unknown>"}for(var r in"undefined"!=typeof CustomEvent&&M(e,CustomEvent)&&(o.detail=i.detail),i)Object.prototype.hasOwnProperty.call(i,r)&&(o[r]=i);return o}return e}function ae(e,t,n){void 0===t&&(t=3),void 0===n&&(n=102400);var r=ue(e,t);return function(e){return function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(e))}(r)>n?ae(e,t-1,n):r}function se(e,t){return"domain"===t&&e&&"object"==I(e)&&e._events?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":void 0!==r.g&&e===r.g?"[Global]":"undefined"!=typeof window&&e===window?"[Window]":"undefined"!=typeof document&&e===document?"[Document]":T(n=e)&&"nativeEvent"in n&&"preventDefault"in n&&"stopPropagation"in n?"[SyntheticEvent]":"number"==typeof e&&e!=e?"[NaN]":void 0===e?"[undefined]":"function"==typeof e?"[Function: "+ee(e)+"]":"symbol"==I(e)?"["+String(e)+"]":"bigint"==typeof e?"[BigInt: "+String(e)+"]":e;var n}function ue(e,t){try{return JSON.parse(JSON.stringify(e,(function(e,n){return function e(t,n,r,i){if(void 0===r&&(r=1/0),void 0===i&&(i=new Z),0===r)return function(e){var t=Object.prototype.toString.call(e);if("string"==typeof e)return e;if("[object Object]"===t)return"[Object]";if("[object Array]"===t)return"[Array]";var n=se(e);return j(n)?n:t}(n);if(null!=n&&"function"==typeof n.toJSON)return n.toJSON();var o=se(n,t);if(j(o))return o;var a=oe(n),s=Array.isArray(n)?[]:{};if(i.memoize(n))return"[Circular ~]";for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(s[u]=e(u,a[u],r-1,i));return i.unmemoize(n),s}(e,n,t)})))}catch(e){return"**non-serializable**"}}function ce(e,t){void 0===t&&(t=40);var n=Object.keys(oe(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return te(n[0],t);for(var r=n.length;r>0;r--){var i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:te(i,t)}return""}function le(e){var t,n;if(T(e)){var r=e,i={};try{for(var o=$(Object.keys(r)),a=o.next();!a.done;a=o.next()){var s=a.value;void 0!==r[s]&&(i[s]=le(r[s]))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return i}return Array.isArray(e)?e.map(le):e}var fe=function(){function e(e){this.errors=0,this.sid=(0,N.eJ)(),this.timestamp=Date.now(),this.started=Date.now(),this.duration=0,this.status=W.Ok,e&&this.update(e)}return e.prototype.update=function(e){void 0===e&&(e={}),e.user&&(e.user.ip_address&&(this.ipAddress=e.user.ip_address),e.did||(this.did=e.user.id||e.user.email||e.user.username)),this.timestamp=e.timestamp||Date.now(),e.sid&&(this.sid=32===e.sid.length?e.sid:(0,N.eJ)()),e.did&&(this.did=""+e.did),"number"==typeof e.started&&(this.started=e.started),"number"==typeof e.duration?this.duration=e.duration:this.duration=this.timestamp-this.started,e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),e.ipAddress&&(this.ipAddress=e.ipAddress),e.userAgent&&(this.userAgent=e.userAgent),"number"==typeof e.errors&&(this.errors=e.errors),e.status&&(this.status=e.status)},e.prototype.close=function(e){e?this.update({status:e}):this.status===W.Ok?this.update({status:W.Exited}):this.update()},e.prototype.toJSON=function(){return le({sid:""+this.sid,init:!0,started:new Date(this.started).toISOString(),timestamp:new Date(this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:le({release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent})})},e}(),de=function(){function e(e,t,n){void 0===t&&(t=new F),void 0===n&&(n=3),this._version=n,this._stack=[{}],this.getStackTop().scope=t,this.bindClient(e)}return e.prototype.isOlderThan=function(e){return this._version<e},e.prototype.bindClient=function(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()},e.prototype.pushScope=function(){var e=F.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e},e.prototype.popScope=function(){return!(this.getStack().length<=1||!this.getStack().pop())},e.prototype.withScope=function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}},e.prototype.getClient=function(){return this.getStackTop().client},e.prototype.getScope=function(){return this.getStackTop().scope},e.prototype.getStack=function(){return this._stack},e.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},e.prototype.captureException=function(e,t){var n=this._lastEventId=(0,N.eJ)(),r=t;if(!t){var i=void 0;try{throw new Error("Sentry syntheticException")}catch(e){i=e}r={originalException:e,syntheticException:i}}return this._invokeClient("captureException",e,x(x({},r),{event_id:n})),n},e.prototype.captureMessage=function(e,t,n){var r=this._lastEventId=(0,N.eJ)(),i=n;if(!n){var o=void 0;try{throw new Error(e)}catch(e){o=e}i={originalException:e,syntheticException:o}}return this._invokeClient("captureMessage",e,t,x(x({},i),{event_id:r})),r},e.prototype.captureEvent=function(e,t){var n=this._lastEventId=(0,N.eJ)();return this._invokeClient("captureEvent",e,x(x({},t),{event_id:n})),n},e.prototype.lastEventId=function(){return this._lastEventId},e.prototype.addBreadcrumb=function(e,t){var n=this.getStackTop(),r=n.scope,i=n.client;if(r&&i){var o=i.getOptions&&i.getOptions()||{},a=o.beforeBreadcrumb,s=void 0===a?null:a,u=o.maxBreadcrumbs,c=void 0===u?100:u;if(!(c<=0)){var l=(0,D.lu)(),f=x({timestamp:l},e),d=s?(0,N.pq)((function(){return s(f,t)})):f;null!==d&&r.addBreadcrumb(d,Math.min(c,100))}}},e.prototype.setUser=function(e){var t=this.getScope();t&&t.setUser(e)},e.prototype.setTags=function(e){var t=this.getScope();t&&t.setTags(e)},e.prototype.setExtras=function(e){var t=this.getScope();t&&t.setExtras(e)},e.prototype.setTag=function(e,t){var n=this.getScope();n&&n.setTag(e,t)},e.prototype.setExtra=function(e,t){var n=this.getScope();n&&n.setExtra(e,t)},e.prototype.setContext=function(e,t){var n=this.getScope();n&&n.setContext(e,t)},e.prototype.configureScope=function(e){var t=this.getStackTop(),n=t.scope,r=t.client;n&&r&&e(n)},e.prototype.run=function(e){var t=he(this);try{e(this)}finally{he(t)}},e.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return q.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},e.prototype.startSpan=function(e){return this._callExtensionMethod("startSpan",e)},e.prototype.startTransaction=function(e,t){return this._callExtensionMethod("startTransaction",e,t)},e.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},e.prototype.startSession=function(e){this.endSession();var t=this.getStackTop(),n=t.scope,r=t.client,i=r&&r.getOptions()||{},o=i.release,a=i.environment,s=new fe(x(x({release:o,environment:a},n&&{user:n.getUser()}),e));return n&&n.setSession(s),s},e.prototype.endSession=function(){var e=this.getStackTop(),t=e.scope,n=e.client;if(t){var r=t.getSession&&t.getSession();r&&(r.close(),n&&n.captureSession&&n.captureSession(r),t.setSession())}},e.prototype._invokeClient=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=this.getStackTop(),o=i.scope,a=i.client;a&&a[e]&&(t=a)[e].apply(t,_(n,[o]))},e.prototype._callExtensionMethod=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=pe().__SENTRY__;if(r&&r.extensions&&"function"==typeof r.extensions[e])return r.extensions[e].apply(this,t);q.warn("Extension method "+e+" couldn't be found, doing nothing.")},e}();function pe(){var e=(0,N.VZ)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function he(e){var t=pe(),n=me(t);return ye(t,e),n}function ve(){var e=pe();return ge(e)&&!me(e).isOlderThan(3)||ye(e,new de),(0,G.wD)()?function(e){try{var t=(r=pe().__SENTRY__)&&r.extensions&&r.extensions.domain&&r.extensions.domain.active;if(!t)return me(e);if(!ge(t)||me(t).isOlderThan(3)){var n=me(e).getStackTop();ye(t,new de(n.client,F.clone(n.scope)))}return me(t)}catch(t){return me(e)}var r}(e):me(e)}function ge(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function me(e){return e&&e.__SENTRY__&&e.__SENTRY__.hub||(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=new de),e.__SENTRY__.hub}function ye(e,t){return!!e&&(e.__SENTRY__=e.__SENTRY__||{},e.__SENTRY__.hub=t,!0)}var be,xe=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],we=function(){function e(t){void 0===t&&(t={}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(){U((function(t){var n=ve();if(!n)return t;var r=n.getIntegration(e);if(r){var i=n.getClient(),o=i?i.getOptions():{},a=r._mergeOptions(o);if(r._shouldDropEvent(t,a))return null}return t}))},e.prototype._shouldDropEvent=function(e,t){return this._isSentryError(e,t)?(q.warn("Event dropped due to being internal Sentry Error.\nEvent: "+(0,N.$X)(e)),!0):this._isIgnoredError(e,t)?(q.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+(0,N.$X)(e)),!0):this._isDeniedUrl(e,t)?(q.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+(0,N.$X)(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0):!this._isAllowedUrl(e,t)&&(q.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+(0,N.$X)(e)+".\nUrl: "+this._getEventFilterUrl(e)),!0)},e.prototype._isSentryError=function(e,t){if(!t.ignoreInternal)return!1;try{return e&&e.exception&&e.exception.values&&e.exception.values[0]&&"SentryError"===e.exception.values[0].type||!1}catch(e){return!1}},e.prototype._isIgnoredError=function(e,t){return!(!t.ignoreErrors||!t.ignoreErrors.length)&&this._getPossibleEventMessages(e).some((function(e){return t.ignoreErrors.some((function(t){return re(e,t)}))}))},e.prototype._isDeniedUrl=function(e,t){if(!t.denyUrls||!t.denyUrls.length)return!1;var n=this._getEventFilterUrl(e);return!!n&&t.denyUrls.some((function(e){return re(n,e)}))},e.prototype._isAllowedUrl=function(e,t){if(!t.allowUrls||!t.allowUrls.length)return!0;var n=this._getEventFilterUrl(e);return!n||t.allowUrls.some((function(e){return re(n,e)}))},e.prototype._mergeOptions=function(e){return void 0===e&&(e={}),{allowUrls:b(this._options.whitelistUrls||[],this._options.allowUrls||[],e.whitelistUrls||[],e.allowUrls||[]),denyUrls:b(this._options.blacklistUrls||[],this._options.denyUrls||[],e.blacklistUrls||[],e.denyUrls||[]),ignoreErrors:b(this._options.ignoreErrors||[],e.ignoreErrors||[],xe),ignoreInternal:void 0===this._options.ignoreInternal||this._options.ignoreInternal}},e.prototype._getPossibleEventMessages=function(e){if(e.message)return[e.message];if(e.exception)try{var t=e.exception.values&&e.exception.values[0]||{},n=t.type,r=void 0===n?"":n,i=t.value,o=void 0===i?"":i;return[""+o,r+": "+o]}catch(t){return q.error("Cannot extract message for event "+(0,N.$X)(e)),[]}return[]},e.prototype._getEventFilterUrl=function(e){try{if(e.stacktrace){var t=e.stacktrace.frames;return t&&t[t.length-1].filename||null}if(e.exception){var n=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return n&&n[n.length-1].filename||null}return null}catch(t){return q.error("Cannot extract url for event "+(0,N.$X)(e)),null}},e.id="InboundFilters",e}(),_e=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){be=Function.prototype.toString,Function.prototype.toString=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.__sentry_original__||this;return be.apply(n,e)}},e.id="FunctionToString",e}(),Se=function(e,t){return(Se=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function Oe(e,t){function n(){this.constructor=e}Se(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var ke=function(){return(ke=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function Ee(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function je(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function Te(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(je(arguments[t]));return e}var Ce,Ae=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){return e.__proto__=t,e}:function(e,t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n]);return e}),Pe=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return r.message=t,r.name=n.prototype.constructor.name,Ae(r,n.prototype),r}return function(e,t){function n(){this.constructor=e}Y(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(Error),Me=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/,Ie="Invalid Dsn",Re=function(){function e(e){"string"==typeof e?this._fromString(e):this._fromComponents(e),this._validate()}return e.prototype.toString=function(e){void 0===e&&(e=!1);var t=this,n=t.host,r=t.path,i=t.pass,o=t.port,a=t.projectId;return t.protocol+"://"+t.user+(e&&i?":"+i:"")+"@"+n+(o?":"+o:"")+"/"+(r?r+"/":r)+a},e.prototype._fromString=function(e){var t=Me.exec(e);if(!t)throw new Pe(Ie);var n=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}(t.slice(1),6),r=n[0],i=n[1],o=n[2],a=void 0===o?"":o,s=n[3],u=n[4],c=void 0===u?"":u,l="",f=n[5],d=f.split("/");if(d.length>1&&(l=d.slice(0,-1).join("/"),f=d.pop()),f){var p=f.match(/^\d+/);p&&(f=p[0])}this._fromComponents({host:s,pass:a,path:l,projectId:f,port:c,protocol:r,user:i})},e.prototype._fromComponents=function(e){this.protocol=e.protocol,this.user=e.user,this.pass=e.pass||"",this.host=e.host,this.port=e.port||"",this.path=e.path||"",this.projectId=e.projectId},e.prototype._validate=function(){var e=this;if(["protocol","user","host","projectId"].forEach((function(t){if(!e[t])throw new Pe(Ie+": "+t+" missing")})),!this.projectId.match(/^\d+$/))throw new Pe(Ie+": Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new Pe(Ie+": Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new Pe(Ie+": Invalid port "+this.port)},e}(),De=[],Le=function(){function e(e,t){this._integrations={},this._processing=0,this._backend=new e(t),this._options=t,t.dsn&&(this._dsn=new Re(t.dsn))}return e.prototype.captureException=function(e,t,n){var r=this,i=t&&t.event_id;return this._process(this._getBackend().eventFromException(e,t).then((function(e){return r._captureEvent(e,t,n)})).then((function(e){i=e}))),i},e.prototype.captureMessage=function(e,t,n,r){var i=this,o=n&&n.event_id,a=j(e)?this._getBackend().eventFromMessage(String(e),t,n):this._getBackend().eventFromException(e,n);return this._process(a.then((function(e){return i._captureEvent(e,n,r)})).then((function(e){o=e}))),o},e.prototype.captureEvent=function(e,t,n){var r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((function(e){r=e}))),r},e.prototype.captureSession=function(e){e.release?this._sendSession(e):q.warn("Discarded session because of missing release")},e.prototype.getDsn=function(){return this._dsn},e.prototype.getOptions=function(){return this._options},e.prototype.flush=function(e){var t=this;return this._isClientProcessing(e).then((function(n){return t._getBackend().getTransport().close(e).then((function(e){return n&&e}))}))},e.prototype.close=function(e){var t=this;return this.flush(e).then((function(e){return t.getOptions().enabled=!1,e}))},e.prototype.setupIntegrations=function(){this._isEnabled()&&(this._integrations=function(e){var t={};return function(e){var t=e.defaultIntegrations&&b(e.defaultIntegrations)||[],n=e.integrations,r=[];if(Array.isArray(n)){var i=n.map((function(e){return e.name})),o=[];t.forEach((function(e){-1===i.indexOf(e.name)&&-1===o.indexOf(e.name)&&(r.push(e),o.push(e.name))})),n.forEach((function(e){-1===o.indexOf(e.name)&&(r.push(e),o.push(e.name))}))}else"function"==typeof n?(r=n(t),r=Array.isArray(r)?r:[r]):r=b(t);var a=r.map((function(e){return e.name})),s="Debug";return-1!==a.indexOf(s)&&r.push.apply(r,b(r.splice(a.indexOf(s),1))),r}(e).forEach((function(e){t[e.name]=e,function(e){-1===De.indexOf(e.name)&&(e.setupOnce(U,ve),De.push(e.name),q.log("Integration installed: "+e.name))}(e)})),t}(this._options))},e.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){return q.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},e.prototype._updateSessionFromEvent=function(e,t){var n,r,i,o=!1,a=!1,s=t.exception&&t.exception.values;if(s){a=!0;try{for(var u=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(s),c=u.next();!c.done;c=u.next()){var l=c.value.mechanism;if(l&&!1===l.handled){o=!0;break}}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}var f=t.user;if(!e.userAgent){var d=t.request?t.request.headers:{};for(var p in d)if("user-agent"===p.toLowerCase()){i=d[p];break}}e.update(m(m({},o&&{status:W.Crashed}),{user:f,userAgent:i,errors:e.errors+Number(a||o)}))},e.prototype._sendSession=function(e){this._getBackend().sendSession(e)},e.prototype._isClientProcessing=function(e){var t=this;return new L((function(n){var r=0,i=setInterval((function(){0==t._processing?(clearInterval(i),n(!0)):(r+=1,e&&r>=e&&(clearInterval(i),n(!1)))}),1)}))},e.prototype._getBackend=function(){return this._backend},e.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},e.prototype._prepareEvent=function(e,t,n){var r=this,i=this.getOptions().normalizeDepth,o=void 0===i?3:i,a=m(m({},e),{event_id:e.event_id||(n&&n.event_id?n.event_id:(0,N.eJ)()),timestamp:e.timestamp||(0,D.lu)()});this._applyClientOptions(a),this._applyIntegrationsMetadata(a);var s=t;n&&n.captureContext&&(s=F.clone(s).update(n.captureContext));var u=L.resolve(a);return s&&(u=s.applyToEvent(a,n)),u.then((function(e){return"number"==typeof o&&o>0?r._normalizeEvent(e,o):e}))},e.prototype._normalizeEvent=function(e,t){if(!e)return null;var n=m(m(m(m(m({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return m(m({},e),e.data&&{data:ue(e.data,t)})}))}),e.user&&{user:ue(e.user,t)}),e.contexts&&{contexts:ue(e.contexts,t)}),e.extra&&{extra:ue(e.extra,t)});return e.contexts&&e.contexts.trace&&(n.contexts.trace=e.contexts.trace),n},e.prototype._applyClientOptions=function(e){var t=this.getOptions(),n=t.environment,r=t.release,i=t.dist,o=t.maxValueLength,a=void 0===o?250:o;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=te(e.message,a));var s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=te(s.value,a));var u=e.request;u&&u.url&&(u.url=te(u.url,a))},e.prototype._applyIntegrationsMetadata=function(e){var t=e.sdk,n=Object.keys(this._integrations);t&&n.length>0&&(t.integrations=n)},e.prototype._sendEvent=function(e){this._getBackend().sendEvent(e)},e.prototype._captureEvent=function(e,t,n){return this._processEvent(e,t,n).then((function(e){return e.event_id}),(function(e){q.error(e)}))},e.prototype._processEvent=function(e,t,n){var r=this,i=this.getOptions(),o=i.beforeSend,a=i.sampleRate;if(!this._isEnabled())return L.reject(new Pe("SDK not enabled, will not send event."));var s="transaction"===e.type;return!s&&"number"==typeof a&&Math.random()>a?L.reject(new Pe("Discarding event because it's not included in the random sample (sampling rate = "+a+")")):this._prepareEvent(e,n,t).then((function(e){if(null===e)throw new Pe("An event processor returned null, will not send event.");if(t&&t.data&&!0===t.data.__sentry__||s||!o)return e;var n=o(e,t);if(void 0===n)throw new Pe("`beforeSend` method has to return `null` or a valid event.");return P(n)?n.then((function(e){return e}),(function(e){throw new Pe("beforeSend rejected with "+e)})):n})).then((function(e){if(null===e)throw new Pe("`beforeSend` returned `null`, will not send event.");var t=n&&n.getSession&&n.getSession();return!s&&t&&r._updateSessionFromEvent(t,e),r._sendEvent(e),e})).then(null,(function(e){if(e instanceof Pe)throw e;throw r.captureException(e,{data:{__sentry__:!0},originalException:e}),new Pe("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+e)}))},e.prototype._process=function(e){var t=this;this._processing+=1,e.then((function(e){return t._processing-=1,e}),(function(e){return t._processing-=1,e}))},e}();!function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.Invalid="invalid",e.Failed="failed"}(Ce||(Ce={})),function(e){e.fromHttpCode=function(t){return t>=200&&t<300?e.Success:429===t?e.RateLimit:t>=400&&t<500?e.Invalid:t>=500?e.Failed:e.Unknown}}(Ce||(Ce={}));var Ne,Fe=function(){function e(){}return e.prototype.sendEvent=function(e){return L.resolve({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:Ce.Skipped})},e.prototype.close=function(e){return L.resolve(!0)},e}(),Be=function(){function e(e){this._options=e,this._options.dsn||q.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return e.prototype.eventFromException=function(e,t){throw new Pe("Backend has to implement `eventFromException` method")},e.prototype.eventFromMessage=function(e,t,n){throw new Pe("Backend has to implement `eventFromMessage` method")},e.prototype.sendEvent=function(e){this._transport.sendEvent(e).then(null,(function(e){q.error("Error while sending event: "+e)}))},e.prototype.sendSession=function(e){this._transport.sendSession?this._transport.sendSession(e).then(null,(function(e){q.error("Error while sending session: "+e)})):q.warn("Dropping session because custom transport doesn't implement sendSession")},e.prototype.getTransport=function(){return this._transport},e.prototype._setupTransport=function(){return new Fe},e}();function Ue(){if(!("fetch"in(0,N.VZ)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function ze(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Ve(){if(!Ue())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}}!function(e){e.Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical"}(Ne||(Ne={})),function(e){e.fromString=function(t){switch(t){case"debug":return e.Debug;case"info":return e.Info;case"warn":case"warning":return e.Warning;case"error":return e.Error;case"fatal":return e.Fatal;case"critical":return e.Critical;default:return e.Log}}}(Ne||(Ne={}));var He=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,We=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,qe=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Ge=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ye=/\((\S*)(?::(\d+))(?::(\d+))\)/,Ke=/Minified React error #\d+;/i;function $e(e){var t=null,n=0;e&&("number"==typeof e.framesToPop?n=e.framesToPop:Ke.test(e.message)&&(n=1));try{if(t=function(e){if(!e||!e.stacktrace)return null;for(var t,n=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,r=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,i=e.stacktrace.split("\n"),o=[],a=0;a<i.length;a+=2){var s=null;(t=n.exec(i[a]))?s={url:t[2],func:t[3],args:[],line:+t[1],column:null}:(t=r.exec(i[a]))&&(s={url:t[6],func:t[3]||t[4],args:t[5]?t[5].split(","):[],line:+t[1],column:+t[2]}),s&&(!s.func&&s.line&&(s.func="?"),o.push(s))}return o.length?{message:Qe(e),name:e.name,stack:o}:null}(e))return Xe(t,n)}catch(e){}try{if(t=function(e){if(!e||!e.stack)return null;for(var t,n,r,i=[],o=e.stack.split("\n"),a=0;a<o.length;++a){if(n=He.exec(o[a])){var s=n[2]&&0===n[2].indexOf("native");n[2]&&0===n[2].indexOf("eval")&&(t=Ye.exec(n[2]))&&(n[2]=t[1],n[3]=t[2],n[4]=t[3]),r={url:n[2]&&0===n[2].indexOf("address at ")?n[2].substr(11):n[2],func:n[1]||"?",args:s?[n[2]]:[],line:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}else if(n=qe.exec(o[a]))r={url:n[2],func:n[1]||"?",args:[],line:+n[3],column:n[4]?+n[4]:null};else{if(!(n=We.exec(o[a])))continue;n[3]&&n[3].indexOf(" > eval")>-1&&(t=Ge.exec(n[3]))?(n[1]=n[1]||"eval",n[3]=t[1],n[4]=t[2],n[5]=""):0!==a||n[5]||void 0===e.columnNumber||(i[0].column=e.columnNumber+1),r={url:n[3],func:n[1]||"?",args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}!r.func&&r.line&&(r.func="?"),i.push(r)}return i.length?{message:Qe(e),name:e.name,stack:i}:null}(e))return Xe(t,n)}catch(e){}return{message:Qe(e),name:e&&e.name,stack:[],failed:!0}}function Xe(e,t){try{return ke(ke({},e),{stack:e.stack.slice(t)})}catch(t){return e}}function Qe(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function Ze(e){var t=et(e.stack),n={type:e.name,value:e.message};return t&&t.length&&(n.stacktrace={frames:t}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function Je(e){return{exception:{values:[Ze(e)]}}}function et(e){if(!e||!e.length)return[];var t=e,n=t[0].func||"",r=t[t.length-1].func||"";return-1===n.indexOf("captureMessage")&&-1===n.indexOf("captureException")||(t=t.slice(1)),-1!==r.indexOf("sentryWrapped")&&(t=t.slice(0,-1)),t.slice(0,50).map((function(e){return{colno:null===e.column?void 0:e.column,filename:e.url||t[0].url,function:e.func||"?",in_app:!0,lineno:null===e.line?void 0:e.line}})).reverse()}function tt(e,t,n){var r,i;if(void 0===n&&(n={}),O(e)&&e.error)return Je($e(e=e.error));if(k(e)||(i=e,"[object DOMException]"===Object.prototype.toString.call(i))){var o=e,a=o.name||(k(o)?"DOMError":"DOMException"),s=o.message?a+": "+o.message:a;return r=nt(s,t,n),(0,N.gO)(r,s),"code"in o&&(r.tags=ke(ke({},r.tags),{"DOMException.code":""+o.code})),r}return S(e)?r=Je($e(e)):T(e)||C(e)?(r=function(e,t,n){var r={exception:{values:[{type:C(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+ce(e)}]},extra:{__serialized__:ae(e)}};if(t){var i=et($e(t).stack);r.stacktrace={frames:i}}return r}(e,t,n.rejection),(0,N.M6)(r,{synthetic:!0}),r):(r=nt(e,t,n),(0,N.gO)(r,""+e,void 0),(0,N.M6)(r,{synthetic:!0}),r)}function nt(e,t,n){void 0===n&&(n={});var r={message:e};if(n.attachStacktrace&&t){var i=et($e(t).stack);r.stacktrace={frames:i}}return r}function rt(e,t){return{body:JSON.stringify({sent_at:(new Date).toISOString()})+"\n"+JSON.stringify({type:"session"})+"\n"+JSON.stringify(e),type:"session",url:t.getEnvelopeEndpointWithUrlEncodedAuth()}}function it(e,t){var n=e.tags||{},r=n.__sentry_samplingMethod,i=n.__sentry_sampleRate,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(n,["__sentry_samplingMethod","__sentry_sampleRate"]);e.tags=o;var a="transaction"===e.type,s={body:JSON.stringify(e),type:e.type||"event",url:a?t.getEnvelopeEndpointWithUrlEncodedAuth():t.getStoreEndpointWithUrlEncodedAuth()};if(a){var u=JSON.stringify({event_id:e.event_id,sent_at:(new Date).toISOString()})+"\n"+JSON.stringify({type:e.type,sample_rates:[{id:r,rate:i}]})+"\n"+s.body;s.body=u}return s}var ot=function(){function e(e){this.dsn=e,this._dsnObject=new Re(e)}return e.prototype.getDsn=function(){return this._dsnObject},e.prototype.getBaseApiEndpoint=function(){var e=this._dsnObject,t=e.protocol?e.protocol+":":"",n=e.port?":"+e.port:"";return t+"//"+e.host+n+(e.path?"/"+e.path:"")+"/api/"},e.prototype.getStoreEndpoint=function(){return this._getIngestEndpoint("store")},e.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return this.getStoreEndpoint()+"?"+this._encodedAuth()},e.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return this._getEnvelopeEndpoint()+"?"+this._encodedAuth()},e.prototype.getStoreEndpointPath=function(){var e=this._dsnObject;return(e.path?"/"+e.path:"")+"/api/"+e.projectId+"/store/"},e.prototype.getRequestHeaders=function(e,t){var n=this._dsnObject,r=["Sentry sentry_version=7"];return r.push("sentry_client="+e+"/"+t),r.push("sentry_key="+n.user),n.pass&&r.push("sentry_secret="+n.pass),{"Content-Type":"application/json","X-Sentry-Auth":r.join(", ")}},e.prototype.getReportDialogEndpoint=function(e){void 0===e&&(e={});var t=this._dsnObject,n=this.getBaseApiEndpoint()+"embed/error-page/",r=[];for(var i in r.push("dsn="+t.toString()),e)if("dsn"!==i)if("user"===i){if(!e.user)continue;e.user.name&&r.push("name="+encodeURIComponent(e.user.name)),e.user.email&&r.push("email="+encodeURIComponent(e.user.email))}else r.push(encodeURIComponent(i)+"="+encodeURIComponent(e[i]));return r.length?n+"?"+r.join("&"):n},e.prototype._getEnvelopeEndpoint=function(){return this._getIngestEndpoint("envelope")},e.prototype._getIngestEndpoint=function(e){return""+this.getBaseApiEndpoint()+this._dsnObject.projectId+"/"+e+"/"},e.prototype._encodedAuth=function(){var e,t={sentry_key:this._dsnObject.user,sentry_version:"7"};return e=t,Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")},e}(),at=function(){function e(e){this._limit=e,this._buffer=[]}return e.prototype.isReady=function(){return void 0===this._limit||this.length()<this._limit},e.prototype.add=function(e){var t=this;return this.isReady()?(-1===this._buffer.indexOf(e)&&this._buffer.push(e),e.then((function(){return t.remove(e)})).then(null,(function(){return t.remove(e).then(null,(function(){}))})),e):L.reject(new Pe("Not adding Promise due to buffer limit reached."))},e.prototype.remove=function(e){return this._buffer.splice(this._buffer.indexOf(e),1)[0]},e.prototype.length=function(){return this._buffer.length},e.prototype.drain=function(e){var t=this;return new L((function(n){var r=setTimeout((function(){e&&e>0&&n(!1)}),e);L.all(t._buffer).then((function(){clearTimeout(r),n(!0)})).then(null,(function(){n(!0)}))}))},e}(),st=function(){function e(e){this.options=e,this._buffer=new at(30),this._rateLimits={},this._api=new ot(this.options.dsn),this.url=this._api.getStoreEndpointWithUrlEncodedAuth()}return e.prototype.sendEvent=function(e){throw new Pe("Transport Class has to implement `sendEvent` method")},e.prototype.close=function(e){return this._buffer.drain(e)},e.prototype._handleResponse=function(e){var t=e.requestType,n=e.response,r=e.headers,i=e.resolve,o=e.reject,a=Ce.fromHttpCode(n.status);this._handleRateLimit(r)&&q.warn("Too many requests, backing off until: "+this._disabledUntil(t)),a!==Ce.Success?o(n):i({status:a})},e.prototype._disabledUntil=function(e){return this._rateLimits[e]||this._rateLimits.all},e.prototype._isRateLimited=function(e){return this._disabledUntil(e)>new Date(Date.now())},e.prototype._handleRateLimit=function(e){var t,n,r,i,o=Date.now(),a=e["x-sentry-rate-limits"],s=e["retry-after"];if(a){try{for(var u=Ee(a.trim().split(",")),c=u.next();!c.done;c=u.next()){var l=c.value.split(":",2),f=parseInt(l[0],10),d=1e3*(isNaN(f)?60:f);try{for(var p=(r=void 0,Ee(l[1].split(";"))),h=p.next();!h.done;h=p.next()){var v=h.value;this._rateLimits[v||"all"]=new Date(o+d)}}catch(e){r={error:e}}finally{try{h&&!h.done&&(i=p.return)&&i.call(p)}finally{if(r)throw r.error}}}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return!0}return!!s&&(this._rateLimits.all=new Date(o+(0,N.FA)(o,s)),!0)},e}(),ut=(0,N.VZ)(),ct=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Oe(t,e),t.prototype.sendEvent=function(e){return this._sendRequest(it(e,this._api),e)},t.prototype.sendSession=function(e){return this._sendRequest(rt(e,this._api),e)},t.prototype._sendRequest=function(e,t){var n=this;if(this._isRateLimited(e.type))return Promise.reject({event:t,type:e.type,reason:"Transport locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429});var r={body:e.body,method:"POST",referrerPolicy:Ve()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(r,this.options.fetchParameters),void 0!==this.options.headers&&(r.headers=this.options.headers),this._buffer.add(new L((function(t,i){ut.fetch(e.url,r).then((function(r){var o={"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")};n._handleResponse({requestType:e.type,response:r,headers:o,resolve:t,reject:i})})).catch(i)})))},t}(st),lt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Oe(t,e),t.prototype.sendEvent=function(e){return this._sendRequest(it(e,this._api),e)},t.prototype.sendSession=function(e){return this._sendRequest(rt(e,this._api),e)},t.prototype._sendRequest=function(e,t){var n=this;return this._isRateLimited(e.type)?Promise.reject({event:t,type:e.type,reason:"Transport locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429}):this._buffer.add(new L((function(t,r){var i=new XMLHttpRequest;for(var o in i.onreadystatechange=function(){if(4===i.readyState){var o={"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")};n._handleResponse({requestType:e.type,response:i,headers:o,resolve:t,reject:r})}},i.open("POST",e.url),n.options.headers)n.options.headers.hasOwnProperty(o)&&i.setRequestHeader(o,n.options.headers[o]);i.send(e.body)})))},t}(st),ft=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Oe(t,e),t.prototype.eventFromException=function(e,t){return function(e,t,n){var r=tt(t,n&&n.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return(0,N.M6)(r,{handled:!0,type:"generic"}),r.level=Ne.Error,n&&n.event_id&&(r.event_id=n.event_id),L.resolve(r)}(this._options,e,t)},t.prototype.eventFromMessage=function(e,t,n){return void 0===t&&(t=Ne.Info),function(e,t,n,r){void 0===n&&(n=Ne.Info);var i=nt(t,r&&r.syntheticException||void 0,{attachStacktrace:e.attachStacktrace});return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),L.resolve(i)}(this._options,e,t,n)},t.prototype._setupTransport=function(){if(!this._options.dsn)return e.prototype._setupTransport.call(this);var t=ke(ke({},this._options.transportOptions),{dsn:this._options.dsn});return this._options.transport?new this._options.transport(t):Ue()?new ct(t):new lt(t)},t}(Be);function dt(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function pt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=ve();if(r&&r[e])return r[e].apply(r,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(dt(arguments[t]));return e}(t));throw new Error("No hub defined or "+e+" was not found on the hub, please open a bug report.")}function ht(e,t){var n;try{throw new Error("Sentry syntheticException")}catch(e){n=e}return pt("captureException",e,{captureContext:t,originalException:e,syntheticException:n})}var vt=0;function gt(){return vt>0}function mt(e,t,n){if(void 0===t&&(t={}),"function"!=typeof e)return e;try{if(e.__sentry__)return e;if(e.__sentry_wrapped__)return e.__sentry_wrapped__}catch(t){return e}var r=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var i=r.map((function(e){return mt(e,t)}));return e.handleEvent?e.handleEvent.apply(this,i):e.apply(this,i)}catch(e){throw vt+=1,setTimeout((function(){vt-=1})),pt("withScope",(function(n){n.addEventProcessor((function(e){var n=ke({},e);return t.mechanism&&((0,N.gO)(n,void 0,void 0),(0,N.M6)(n,t.mechanism)),n.extra=ke(ke({},n.extra),{arguments:r}),n})),ht(e)})),e}};try{for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch(e){}e.prototype=e.prototype||{},r.prototype=e.prototype,Object.defineProperty(e,"__sentry_wrapped__",{enumerable:!1,value:r}),Object.defineProperties(r,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:e}});try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:function(){return e.name}})}catch(e){}return r}var yt,bt=(0,N.VZ)(),xt={},wt={};function _t(e){e&&"string"==typeof e.type&&"function"==typeof e.callback&&(xt[e.type]=xt[e.type]||[],xt[e.type].push(e.callback),function(e){if(!wt[e])switch(wt[e]=!0,e){case"console":"console"in bt&&["debug","info","warn","error","log","assert"].forEach((function(e){e in bt.console&&ie(bt.console,e,(function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];St("console",{args:n,level:e}),t&&Function.prototype.apply.call(t,bt.console,n)}}))}));break;case"dom":"document"in bt&&(bt.document.addEventListener("click",Ct("click",St.bind(null,"dom")),!1),bt.document.addEventListener("keypress",At(St.bind(null,"dom")),!1),["EventTarget","Node"].forEach((function(e){var t=bt[e]&&bt[e].prototype;t&&t.hasOwnProperty&&t.hasOwnProperty("addEventListener")&&(ie(t,"addEventListener",(function(e){return function(t,n,r){return n&&n.handleEvent?("click"===t&&ie(n,"handleEvent",(function(e){return function(t){return Ct("click",St.bind(null,"dom"))(t),e.call(this,t)}})),"keypress"===t&&ie(n,"handleEvent",(function(e){return function(t){return At(St.bind(null,"dom"))(t),e.call(this,t)}}))):("click"===t&&Ct("click",St.bind(null,"dom"),!0)(this),"keypress"===t&&At(St.bind(null,"dom"))(this)),e.call(this,t,n,r)}})),ie(t,"removeEventListener",(function(e){return function(t,n,r){try{e.call(this,t,n.__sentry_wrapped__,r)}catch(e){}return e.call(this,t,n,r)}})))})));break;case"xhr":!function(){if("XMLHttpRequest"in bt){var e=[],t=[],n=XMLHttpRequest.prototype;ie(n,"open",(function(n){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=this,a=r[1];o.__sentry_xhr__={method:E(r[0])?r[0].toUpperCase():r[0],url:r[1]},E(a)&&"POST"===o.__sentry_xhr__.method&&a.match(/sentry_key/)&&(o.__sentry_own_request__=!0);var s=function(){if(4===o.readyState){try{o.__sentry_xhr__&&(o.__sentry_xhr__.status_code=o.status)}catch(e){}try{var n=e.indexOf(o);if(-1!==n){e.splice(n);var i=t.splice(n)[0];o.__sentry_xhr__&&void 0!==i[0]&&(o.__sentry_xhr__.body=i[0])}}catch(e){}St("xhr",{args:r,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:o})}};return"onreadystatechange"in o&&"function"==typeof o.onreadystatechange?ie(o,"onreadystatechange",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return s(),e.apply(o,t)}})):o.addEventListener("readystatechange",s),n.apply(o,r)}})),ie(n,"send",(function(n){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return e.push(this),t.push(r),St("xhr",{args:r,startTimestamp:Date.now(),xhr:this}),n.apply(this,r)}}))}}();break;case"fetch":(function(){if(!Ue())return!1;var e=(0,N.VZ)();if(ze(e.fetch))return!0;var t=!1,n=e.document;if(n&&"function"==typeof n.createElement)try{var r=n.createElement("iframe");r.hidden=!0,n.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=ze(r.contentWindow.fetch)),n.head.removeChild(r)}catch(e){q.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return t})()&&ie(bt,"fetch",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r={args:t,fetchData:{method:Ot(t),url:kt(t)},startTimestamp:Date.now()};return St("fetch",K({},r)),e.apply(bt,t).then((function(e){return St("fetch",K(K({},r),{endTimestamp:Date.now(),response:e})),e}),(function(e){throw St("fetch",K(K({},r),{endTimestamp:Date.now(),error:e})),e}))}}));break;case"history":!function(){if(function(){var e=(0,N.VZ)(),t=e.chrome,n=t&&t.app&&t.app.runtime,r="history"in e&&!!e.history.pushState&&!!e.history.replaceState;return!n&&r}()){var e=bt.onpopstate;bt.onpopstate=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=bt.location.href,i=yt;if(yt=r,St("history",{from:i,to:r}),e)return e.apply(this,t)},ie(bt.history,"pushState",t),ie(bt.history,"replaceState",t)}function t(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.length>2?t[2]:void 0;if(r){var i=yt,o=String(r);yt=o,St("history",{from:i,to:o})}return e.apply(this,t)}}}();break;case"error":Pt=bt.onerror,bt.onerror=function(e,t,n,r,i){return St("error",{column:r,error:i,line:n,msg:e,url:t}),!!Pt&&Pt.apply(this,arguments)};break;case"unhandledrejection":Mt=bt.onunhandledrejection,bt.onunhandledrejection=function(e){return St("unhandledrejection",e),!Mt||Mt.apply(this,arguments)};break;default:q.warn("unknown instrumentation type:",e)}}(e.type))}function St(e,t){var n,r;if(e&&xt[e])try{for(var i=$(xt[e]||[]),o=i.next();!o.done;o=i.next()){var a=o.value;try{a(t)}catch(t){q.error("Error while triggering instrumentation handler.\nType: "+e+"\nName: "+ee(a)+"\nError: "+t)}}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}function Ot(e){return void 0===e&&(e=[]),"Request"in bt&&M(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function kt(e){return void 0===e&&(e=[]),"string"==typeof e[0]?e[0]:"Request"in bt&&M(e[0],Request)?e[0].url:String(e[0])}var Et,jt,Tt=0;function Ct(e,t,n){return void 0===n&&(n=!1),function(r){Et=void 0,r&&jt!==r&&(jt=r,Tt&&clearTimeout(Tt),n?Tt=setTimeout((function(){t({event:r,name:e})})):t({event:r,name:e}))}}function At(e){return function(t){var n;try{n=t.target}catch(e){return}var r=n&&n.tagName;r&&("INPUT"===r||"TEXTAREA"===r||n.isContentEditable)&&(Et||Ct("input",e)(t),clearTimeout(Et),Et=setTimeout((function(){Et=void 0}),1e3))}}var Pt=null,Mt=null,It=function(){function e(t){this.name=e.id,this._options=ke({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return e.prototype.addSentryBreadcrumb=function(e){this._options.sentry&&ve().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:(0,N.$X)(e)},{event:e})},e.prototype.setupOnce=function(){var e=this;this._options.console&&_t({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._consoleBreadcrumb.apply(e,Te(t))},type:"console"}),this._options.dom&&_t({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._domBreadcrumb.apply(e,Te(t))},type:"dom"}),this._options.xhr&&_t({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._xhrBreadcrumb.apply(e,Te(t))},type:"xhr"}),this._options.fetch&&_t({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._fetchBreadcrumb.apply(e,Te(t))},type:"fetch"}),this._options.history&&_t({callback:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e._historyBreadcrumb.apply(e,Te(t))},type:"history"})},e.prototype._consoleBreadcrumb=function(e){var t={category:"console",data:{arguments:e.args,logger:"console"},level:Ne.fromString(e.level),message:ne(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message="Assertion failed: "+(ne(e.args.slice(1)," ")||"console.assert"),t.data.arguments=e.args.slice(1)}ve().addBreadcrumb(t,{input:e.args,level:e.level})},e.prototype._domBreadcrumb=function(e){var t;try{t=e.event.target?X(e.event.target):X(e.event)}catch(e){t="<unknown>"}0!==t.length&&ve().addBreadcrumb({category:"ui."+e.name,message:t},{event:e.event,name:e.name})},e.prototype._xhrBreadcrumb=function(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;var t=e.xhr.__sentry_xhr__||{},n=t.method,r=t.url,i=t.status_code,o=t.body;ve().addBreadcrumb({category:"xhr",data:{method:n,url:r,status_code:i},type:"http"},{xhr:e.xhr,input:o})}},e.prototype._fetchBreadcrumb=function(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?ve().addBreadcrumb({category:"fetch",data:e.fetchData,level:Ne.Error,type:"http"},{data:e.error,input:e.args}):ve().addBreadcrumb({category:"fetch",data:ke(ke({},e.fetchData),{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})))},e.prototype._historyBreadcrumb=function(e){var t=(0,N.VZ)(),n=e.from,r=e.to,i=(0,N.Dl)(t.location.href),o=(0,N.Dl)(n),a=(0,N.Dl)(r);o.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),ve().addBreadcrumb({category:"navigation",data:{from:n,to:r}})},e.id="Breadcrumbs",e}(),Rt=function(e){function t(t){return void 0===t&&(t={}),e.call(this,ft,t)||this}return Oe(t,e),t.prototype.showReportDialog=function(e){void 0===e&&(e={}),(0,N.VZ)().document&&(this._isEnabled()?function(e){if(void 0===e&&(e={}),e.eventId)if(e.dsn){var t=document.createElement("script");t.async=!0,t.src=new ot(e.dsn).getReportDialogEndpoint(e),e.onLoad&&(t.onload=e.onLoad),(document.head||document.body).appendChild(t)}else q.error("Missing dsn option in showReportDialog call");else q.error("Missing eventId option in showReportDialog call")}(ke(ke({},e),{dsn:e.dsn||this.getDsn()})):q.error("Trying to call showReportDialog with Sentry Client disabled"))},t.prototype._prepareEvent=function(t,n,r){return t.platform=t.platform||"javascript",t.sdk=ke(ke({},t.sdk),{name:"sentry.javascript.browser",packages:Te(t.sdk&&t.sdk.packages||[],[{name:"npm:@sentry/browser",version:"5.30.0"}]),version:"5.30.0"}),e.prototype._prepareEvent.call(this,t,n,r)},t.prototype._sendEvent=function(t){var n=this.getIntegration(It);n&&n.addSentryBreadcrumb(t),e.prototype._sendEvent.call(this,t)},t}(Le),Dt=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Lt=function(){function e(t){this.name=e.id,this._options=ke({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}return e.prototype.setupOnce=function(){var e=(0,N.VZ)();this._options.setTimeout&&ie(e,"setTimeout",this._wrapTimeFunction.bind(this)),this._options.setInterval&&ie(e,"setInterval",this._wrapTimeFunction.bind(this)),this._options.requestAnimationFrame&&ie(e,"requestAnimationFrame",this._wrapRAF.bind(this)),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&ie(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),this._options.eventTarget&&(Array.isArray(this._options.eventTarget)?this._options.eventTarget:Dt).forEach(this._wrapEventTarget.bind(this))},e.prototype._wrapTimeFunction=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t[0];return t[0]=mt(r,{mechanism:{data:{function:ee(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}},e.prototype._wrapRAF=function(e){return function(t){return e.call(this,mt(t,{mechanism:{data:{function:"requestAnimationFrame",handler:ee(e)},handled:!0,type:"instrument"}}))}},e.prototype._wrapEventTarget=function(e){var t=(0,N.VZ)(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(ie(n,"addEventListener",(function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=mt(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:ee(r),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.call(this,n,mt(r,{mechanism:{data:{function:"addEventListener",handler:ee(r),target:e},handled:!0,type:"instrument"}}),i)}})),ie(n,"removeEventListener",(function(e){return function(t,n,r){var i,o=n;try{var a=null===(i=o)||void 0===i?void 0:i.__sentry_wrapped__;a&&e.call(this,t,a,r)}catch(e){}return e.call(this,t,o,r)}})))},e.prototype._wrapXHR=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((function(e){e in r&&"function"==typeof r[e]&&ie(r,e,(function(t){var n={mechanism:{data:{function:e,handler:ee(t)},handled:!0,type:"instrument"}};return t.__sentry_original__&&(n.mechanism.data.handler=ee(t.__sentry_original__)),mt(t,n)}))})),e.apply(this,t)}},e.id="TryCatch",e}(),Nt=function(){function e(t){this.name=e.id,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=ke({onerror:!0,onunhandledrejection:!0},t)}return e.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(q.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&(q.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},e.prototype._installGlobalOnErrorHandler=function(){var t=this;this._onErrorHandlerInstalled||(_t({callback:function(n){var r=n.error,i=ve(),o=i.getIntegration(e),a=r&&!0===r.__sentry_own_request__;if(o&&!gt()&&!a){var s=i.getClient(),u=j(r)?t._eventFromIncompleteOnError(n.msg,n.url,n.line,n.column):t._enhanceEventWithInitialFrame(tt(r,void 0,{attachStacktrace:s&&s.getOptions().attachStacktrace,rejection:!1}),n.url,n.line,n.column);(0,N.M6)(u,{handled:!1,type:"onerror"}),i.captureEvent(u,{originalException:r})}},type:"error"}),this._onErrorHandlerInstalled=!0)},e.prototype._installGlobalOnUnhandledRejectionHandler=function(){var t=this;this._onUnhandledRejectionHandlerInstalled||(_t({callback:function(n){var r=n;try{"reason"in n?r=n.reason:"detail"in n&&"reason"in n.detail&&(r=n.detail.reason)}catch(e){}var i=ve(),o=i.getIntegration(e),a=r&&!0===r.__sentry_own_request__;if(!o||gt()||a)return!0;var s=i.getClient(),u=j(r)?t._eventFromRejectionWithPrimitive(r):tt(r,void 0,{attachStacktrace:s&&s.getOptions().attachStacktrace,rejection:!0});u.level=Ne.Error,(0,N.M6)(u,{handled:!1,type:"onunhandledrejection"}),i.captureEvent(u,{originalException:r})},type:"unhandledrejection"}),this._onUnhandledRejectionHandlerInstalled=!0)},e.prototype._eventFromIncompleteOnError=function(e,t,n,r){var i,o=O(e)?e.message:e;if(E(o)){var a=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);a&&(i=a[1],o=a[2])}var s={exception:{values:[{type:i||"Error",value:o}]}};return this._enhanceEventWithInitialFrame(s,t,n,r)},e.prototype._eventFromRejectionWithPrimitive=function(e){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(e)}]}}},e.prototype._enhanceEventWithInitialFrame=function(e,t,n,r){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].stacktrace=e.exception.values[0].stacktrace||{},e.exception.values[0].stacktrace.frames=e.exception.values[0].stacktrace.frames||[];var i=isNaN(parseInt(r,10))?void 0:r,o=isNaN(parseInt(n,10))?void 0:n,a=E(t)&&t.length>0?t:(0,N.$N)();return 0===e.exception.values[0].stacktrace.frames.length&&e.exception.values[0].stacktrace.frames.push({colno:i,filename:a,function:"?",in_app:!0,lineno:o}),e},e.id="GlobalHandlers",e}(),Ft=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._key=t.key||"cause",this._limit=t.limit||5}return e.prototype.setupOnce=function(){U((function(t,n){var r=ve().getIntegration(e);return r?r._handler(t,n):t}))},e.prototype._handler=function(e,t){if(!(e.exception&&e.exception.values&&t&&M(t.originalException,Error)))return e;var n=this._walkErrorTree(t.originalException,this._key);return e.exception.values=Te(n,e.exception.values),e},e.prototype._walkErrorTree=function(e,t,n){if(void 0===n&&(n=[]),!M(e[t],Error)||n.length+1>=this._limit)return n;var r=Ze($e(e[t]));return this._walkErrorTree(e[t],t,Te([r],n))},e.id="LinkedErrors",e}(),Bt=(0,N.VZ)(),Ut=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){U((function(t){var n,r,i;if(ve().getIntegration(e)){if(!Bt.navigator&&!Bt.location&&!Bt.document)return t;var o=(null===(n=t.request)||void 0===n?void 0:n.url)||(null===(r=Bt.location)||void 0===r?void 0:r.href),a=(Bt.document||{}).referrer,s=(Bt.navigator||{}).userAgent,u=ke(ke(ke({},null===(i=t.request)||void 0===i?void 0:i.headers),a&&{Referer:a}),s&&{"User-Agent":s}),c=ke(ke({},o&&{url:o}),{headers:u});return ke(ke({},t),{request:c})}return t}))},e.id="UserAgent",e}(),zt=[new we,new _e,new Lt,new It,new Nt,new Ft,new Ut];function Vt(e){if(void 0===e&&(e={}),void 0===e.defaultIntegrations&&(e.defaultIntegrations=zt),void 0===e.release){var t=(0,N.VZ)();t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id&&(e.release=t.SENTRY_RELEASE.id)}void 0===e.autoSessionTracking&&(e.autoSessionTracking=!1),function(e,t){!0===t.debug&&q.enable();var n=ve(),r=new e(t);n.bindClient(r)}(Rt,e),e.autoSessionTracking&&function(){var e=(0,N.VZ)(),t=ve(),n="complete"===document.readyState,r=!1,i=function(){r&&n&&t.endSession()},o=function(){n=!0,i(),e.removeEventListener("load",o)};t.startSession(),n||e.addEventListener("load",o);try{var a=new PerformanceObserver((function(e,t){e.getEntries().forEach((function(e){"first-contentful-paint"===e.name&&e.startTime<s&&(t.disconnect(),r=!0,i())}))})),s="hidden"===document.visibilityState?0:1/0;document.addEventListener("visibilitychange",(function(e){s=Math.min(s,e.timeStamp)}),{once:!0}),a.observe({type:"paint",buffered:!0})}catch(e){r=!0,i()}}()}var Ht={FAIL:"fail",PLAY:"play",DEBUG:"debug"},Wt={STREAMING:"streaming"},qt={INITIALIZING:"initializing",STREAMING:"streaming",STOPPED:"stopped"},Gt="stalled",Yt="waiting",Kt="playing",$t="undefined"!=typeof window&&(window.RTCPeerConnection||window.mozRTCPeerConnection||window.webkitRTCPeerConnection),Xt=("undefined"!=typeof window&&(window.RTCIceCandidate||window.mozRTCIceCandidate||window.RTCIceCandidate),"undefined"!=typeof window&&(window.RTCSessionDescription||window.mozRTCSessionDescription||window.RTCSessionDescription)),Qt=r(4974),Zt=r.n(Qt),Jt=r(6942),en=r.n(Jt),tn="",nn=function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=console).log.apply(e,n),tn+="".concat(JSON.stringify(n),"\n")},rn=function(){},on=d((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];l(this,e),this.url=t,this.emitter=new(Zt()),this.notify=this.emitter.emit.bind(this.emitter),this.log=r?nn:rn,this.isFirstMsgReceived=!1,this.retryMax=n.retryMax||1,this.retryDelay=n.retryDelay||3e3,this.retryCounter=this.retryMax,this.stopRetryTimeout=null,this.connectionTimeout=null}),[{key:"destroy",value:function(){clearTimeout(this.stopRetryTimeout),clearTimeout(this.connectionTimeout),en()(this.emitter),"function"==typeof this.onDestroy&&this.onDestroy()}},{key:"stopRetry",value:function(e){this.isFirstMsgReceived=!1,this.retryCounter-=1,this.retryCounter>0?(clearTimeout(this.stopRetryTimeout),this.stopRetryTimeout=setTimeout(e.bind(this),this.retryDelay)):this.stop()}},{key:"stop",value:function(){this.shouldImplementError("stop")}},{key:"retryCounterReset",value:function(){this.retryCounter=this.retryMax}},{key:"on",value:function(){for(var e=this.emitter.on,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.apply(this.emitter,n)}},{key:"shouldImplementError",value:function(e){return function(){throw new Error("Custom ".concat(e," method should be implemented for WebRTCBase descendants"))}}},{key:"getVideoCardInfo",value:function(){var e="undefined"!=typeof document&&document.createElement("canvas").getContext("webgl");if(!e)return"";var t=e.getExtension("WEBGL_debug_renderer_info");return t?e.getParameter(t.UNMASKED_RENDERER_WEBGL):"no WEBGL_debug_renderer_info"}}],[{key:"version",get:function(){try{return"24.7.1"}catch(e){return""}}}]);function an(){var e=(new Date).getTime(),t="undefined"!=typeof performance&&performance.now&&1e3*performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(n){var r=16*Math.random();return e>0?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(t+r)%16|0,t=Math.floor(t/16)),("x"===n?r:3&r|8).toString(16)}))}function sn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;console.debug(">onnegotiationneeded");var i=e.target;return new Promise((function(e,o){i.createOffer(n).then((function(n){i.setLocalDescription(n).then((function(){(function(e,t){var n=performance.now(),r=new Promise((function(t){setTimeout((function(){t(e.localDescription)}),250),e.onicegatheringstatechange=function(n){return"complete"===e.iceGatheringState&&t(e.localDescription)}}));return r.then((function(){console.debug("ice gather blocked for N ms:",Math.ceil(performance.now()-n))})),r})(i).then((function(n){var a=performance.now();console.debug("sending N line offer:",n.sdp.split(/\r\n|\r|\n/).length);var s={method:"POST",headers:{"Content-Type":"application/sdp"}};"string"==typeof r&&(s.headers.Authorization="Bearer ".concat(r)),s.body=n.sdp,fetch(t,s).then((function(t){201===t.status&&t.text().then((function(n){console.debug("got N line answer:",n.split(/\r\n|\r|\n/).length),i.signalingState&&"closed"!==i.signalingState&&i.setRemoteDescription(new RTCSessionDescription({type:"answer",sdp:n})).then((function(){var n=t.headers;e(n.get("X-Sid"))})).catch((function(e){o(e)}))}))})).catch((function(e){o(e)}));var u=(performance.now()-a)/1e3,c=new CustomEvent("downtime-msg",{detail:{status:-1,numsec:u}});i.dispatchEvent(c)}))}))}))}))}function un(e){var t=e.target;console.debug(">iceconnectionstatechange",t.iceConnectionState),"failed"===t.iceConnectionState&&(console.debug("*** restarting ice"),t.restartIce())}var cn=["sdp"];function ln(){ln=function(){return n};var t,n={},r=Object.prototype,i=r.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(t){l=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var i=t&&t.prototype instanceof m?t:m,a=Object.create(i.prototype),s=new A(r||[]);return o(a,"_invoke",{value:E(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=f;var p="suspendedStart",h="executing",v="completed",g={};function m(){}function y(){}function b(){}var x={};l(x,s,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(P([])));_&&_!==r&&i.call(_,s)&&(x=_);var S=b.prototype=m.prototype=Object.create(x);function O(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function k(t,n){function r(o,a,s,u){var c=d(t[o],t,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==e(f)&&i.call(f,"__await")?n.resolve(f.__await).then((function(e){r("next",e,s,u)}),(function(e){r("throw",e,s,u)})):n.resolve(f).then((function(e){l.value=e,s(l)}),(function(e){return r("throw",e,s,u)}))}u(c.arg)}var a;o(this,"_invoke",{value:function(e,t){function i(){return new n((function(n,i){r(e,t,n,i)}))}return a=a?a.then(i,i):i()}})}function E(e,n,r){var i=p;return function(o,a){if(i===h)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=j(s,r);if(u){if(u===g)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===p)throw i=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=h;var c=d(e,n,r);if("normal"===c.type){if(i=r.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=v,r.method="throw",r.arg=c.arg)}}}function j(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=d(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(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 C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function P(n){if(n||""===n){var r=n[s];if(r)return r.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var o=-1,a=function e(){for(;++o<n.length;)if(i.call(n,o))return e.value=n[o],e.done=!1,e;return e.value=t,e.done=!0,e};return a.next=a}}throw new TypeError(e(n)+" is not iterable")}return y.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:y,configurable:!0}),y.displayName=l(b,c,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,l(e,c,"GeneratorFunction")),e.prototype=Object.create(S),e},n.awrap=function(e){return{__await:e}},O(k.prototype),l(k.prototype,u,(function(){return this})),n.AsyncIterator=k,n.async=function(e,t,r,i,o){void 0===o&&(o=Promise);var a=new k(f(e,t,r,i),o);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(S),l(S,c,"Generator"),l(S,s,(function(){return this})),l(S,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=P,A.prototype={constructor:A,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(C),!e)for(var n in this)"t"===n.charAt(0)&&i.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 r(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 r("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;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,g):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),g},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),C(n),g}},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;C(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},n}var fn=function(e){function t(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(l(this,t),r=function(e,t,n){return t=h(t),p(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return!!e}()?Reflect.construct(t,n||[],h(e).constructor):t.apply(e,n))}(this,t,[n,i,o]),!(e instanceof HTMLMediaElement))throw new Error("First argument must be html5 video tag");if(r.remoteVideo=e,r.remoteVideo.addEventListener("play",r.onVideoPlay.bind(r)),r.opts=i,"start_track"in i){if("string"!=typeof i.start_track)throw new Error("start_track must be string");r.start_track=i.start_track}if("videoDisabled"in i&&i.videoDisabled?r.opts.videoDisabled=!0:r.opts.videoDisabled=!1,"audioDisabled"in i&&i.audioDisabled){if(r.opts.videoDisabled)throw new Error("You must enable at least one transceiver");r.opts.audioDisabled=!0}else r.opts.audioDisabled=!1;return i.autoplay&&r.play(),i.sentryConfig&&i.sentryConfig.length&&(r.sentryConfig=i.sentryConfig),i.onMediaInfo&&(r.onMediaInfo=i.onMediaInfo),i.onTrackInfo&&(r.onTrackInfo=i.onTrackInfo),r.abr=!1,r.onEventCallback=i.onEvent,r.statsSendEnable=i.statsSendEnable||!0,r.statsSendTime=1e3*i.statsSendTime||6e4,r}return g(t,e),d(t,[{key:"resetStats",value:function(){this.playerStatsObject={proto:"webrtc",user_agent:navigator.userAgent,bytes:0,application:{application_name:"webrtc_player",application_version:on.version?on.version:null,stall_count:0,pause_count:0,error_count:0,reconnect_count:0,bitrate_change_count:0,live_duration:0,stall_duration:0,pause_duration:0,total_video_frames:0,dropped_video_frames:0,corrupted_video_frames:0}},(this.statsSendEnable||this.opts.statsSendEnable)&&this.startSendStats()}},{key:"onDestroy",value:function(){this.stop(),this.remoteVideo.removeEventListener("play",this.onVideoPlay)}},{key:"createPeerConnection",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.log("Player::createPeerConnection"),this.remotePc=new $t(t),this.remotePc.stream_id="remote1",this.opts.videoDisabled||this.remotePc.addTransceiver("video",{direction:"sendrecv"}),this.opts.audioDisabled||this.remotePc.addTransceiver("audio",{direction:"sendrecv"}),this.remotePc.addEventListener("iceconnectionstatechange",un),this.remotePc.addEventListener("negotiationneeded",(function(t){sn(t,n,{offerToReceiveAudio:!e.opts.audioDisabled,offerToReceiveVideo:!e.opts.videoDisabled}).then((function(t){e.xsid=t})).catch((function(t){e.log("handleNegotiationNeeded",t),e.addPlayerStat("error_count"),e.addPlayerStat("reconnect_count"),e.stopRetry(e.play)}))})),this.remotePc.ontrack=this.gotRemoteTrack.bind(this),this.remotePc.onconnectionstatechange=function(){e.remotePc&&(e.log("Player::peer connection state:",e.remotePc.connectionState),"closed"===e.remotePc.connectionState||"disconnected"===e.remotePc.connectionState?(e.stop(),e.notify(Ht.FAIL,"peer_connection_closed")):"failed"===e.remotePc.connectionState&&e.stopRetry(e.play))},this.remotePc.ondatachannel=function(e){console.debug("!!! ice candidate on data channel:",e)},this.remotePc.oniceconnectionstatechange=function(t){e.remotePc&&(e.log("Player::ice connection change:",t,{iceConnectionState:e.remotePc.iceConnectionState}),"failed"===e.remotePc.iceConnectionState?(e.stopRetry(e.play),e.notify(Ht.FAIL,"ice_connection_fail")):"closed"!==e.remotePc.iceConnectionState&&"disconnected"!==e.remotePc.iceConnectionState&&void 0!==e.remotePc.iceConnectionState||(e.notify(Ht.FAIL,"ice_connection_closed"),e.stopRetry(e.play)),e.notify(Ht.DEBUG,["ICE connection state",e.remotePc&&e.remotePc.iceConnectionState]))},this.remotePc.onicegatheringstatechange=function(t){e.log("Player::ice gathering state",e.remotePc.iceGatheringState,t)},this.progressListener||this.startProgressListener()}},{key:"getUrl",value:function(){var e=new URL(this.url);return e.pathname="".concat(e.pathname,"/whep"),e.search=this.opts.authTokenName&&this.opts.tokenValue?"?".concat(this.opts.authTokenName,"=").concat(this.opts.tokenValue):"",this.start_track&&(e.search+="".concat(this.opts.authTokenName&&this.opts.tokenValue?"&":"?","start_track=").concat(this.start_track)),e.toString()}},{key:"play",value:function(){this.log("Player::play"),this.remotePc&&this.stop(),this.resetStats(),this.uuid=an(),this.playerStatsObject.id=this.uuid,this.playerStatsObject.opened_at=Date.now(),this.stopRetryTimeout&&clearTimeout(this.stopRetryTimeout),this.addListeners();var e=this.getUrl();this.createPeerConnection({bundlePolicy:"max-bundle"},e),this.getMediaInfo(),this.sentryConfig&&(Vt({dsn:this.sentryConfig,environment:"production",release:"FlussonicWebrtcPlayer".concat(on.version?"@".concat(on.version):""),tracesSampleRate:1}),this.sentryEnabled=!0)}},{key:"stop",value:function(){if(this.isFirstMsgReceived=!1,this.retryCounterReset(),this.remotePc&&(this.remotePc.onconnectionstatechange=null,this.remotePc.ondatachannel=null,this.remotePc.onicecandidate=null,this.remotePc.onicecandidateerror=null,this.remotePc.oniceconnectionstatechange=null,this.remotePc.onicegatheringstatechange=null,this.remotePc.onremovestream=null,this.remotePc.ontrack=null,this.remotePc.close(),delete this.remotePc),this.stallingStarted){clearTimeout(this.probablyStalled);var e=this.playerStatsObject.application;if(e){var t=e.stall_duration;t+=Date.now()-this.stallingStarted,this.addPlayerStat("stall_duration",!1,t),delete this.stallingStarted}}delete this.frameWidth,this.playerStatsObject.closed_at=Date.now(),this.stopSendStats(),this.removeListeners(),this.progressListener&&(clearInterval(this.progressListener),delete this.progressListener);try{this.remoteVideo.srcObject=null}catch(e){this.remoteVideo.src=null}}},{key:"gotRemoteTrack",value:function(e){if(this.log("remote track",e),"video"===e.track.kind||"audio"===e.track.kind)try{if(this.remoteVideo.srcObject!==e.streams[0]){var t=c(e.streams,1)[0];this.remoteVideo.srcObject=t}}catch(t){this.sentryEnabled&&ht(t),this.addPlayerStat("error_count"),"undefined"!=typeof window&&(this.remoteVideo.src=window.URL.createObjectURL(e.streams[0]))}}},{key:"getSessionDescription",value:function(e){var t=e.sdp,n=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,cn);return new Xt(s({},n,{sdp:t.replace(/profile-level-id=(\d|A|B|C|D|E|F)+;/,"profile-level-id=42E01F;")}))}},{key:"remoteCreateAnswer",value:function(){return this.log("Player::success adding offer"),this.remotePc.createAnswer()}},{key:"remoteSetLocalDescription",value:(r=n(ln().mark((function e(t){var n;return ln().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.log("Player::now have answer",t.sdp),e.next=3,this.remotePc.setLocalDescription(t);case 3:return n=e.sent,e.abrupt("return",n);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"onDescriptionError",value:function(e){this.sentryEnabled&&ht(e),this.notify(Ht.DEBUG,["failed to set remote answer",e]),this.notify(Ht.FAIL,"set_remote_description_failed")}},{key:"onVideoPlay",value:function(){this.notify(Ht.PLAY)}},{key:"onGetMediaInfo",value:function(){if(this.onMediaInfo&&this.onMediaInfo(this.mediaInfoTracks,this.abr),this.mediaInfoTracks.length){var e=!1,t=!1;if(this.mediaInfoTracks.forEach((function(n){if(!e||!t){var r=n.content;"video"===r&&(e=!0),"audio"===r&&(t=!0)}})),e||(this.opts.videoDisabled=!0),!t){if(this.opts.videoDisabled)throw this.stop(),new Error("You have got no video and no audio transceiver");this.opts.audioDisabled=!0}}return this.mediaInfoTracks}},{key:"onPlayingInfo",value:function(e){this.onTrackInfo&&(this.addPlayerStat("bitrate_change_count"),this.onTrackInfo(e))}},{key:"changeTracks",value:function(e){Array.isArray(e)?("auto"===e[0]?this.trackSwitch([]):this.trackSwitch(e),this.addPlayerStat("bitrate_change_count")):console.error("tracks must be an array")}},{key:"getMediaInfo",value:function(){var e=this;fetch("".concat(this.url,"/media_info.json").concat(this.getAuthToken()),{headers:{Accept:"application/json","Content-Type":"application/json"},method:"GET"}).then((function(e){return e.json()})).then((function(t){e.mediaInfoTracks=t.tracks,e.onGetMediaInfo()})).catch((function(t){e.log("get MediaInfo error:",t),e.addPlayerStat("error_count"),e.addPlayerStat("reconnect_count"),e.stopRetry(e.play)}))}},{key:"trackSwitch",value:function(e){var t=this;fetch("".concat(this.url,"/sessions/").concat(this.xsid?this.xsid:"","/request_tracks").concat(this.getAuthToken()),{headers:{Accept:"application/json","Content-Type":"application/json"},method:"PUT",body:JSON.stringify({tracks:e})}).then((function(e){t.log("trackSwitch",e)})).catch((function(e){t.log("track switch error:",e)}))}},{key:"onEvent",value:function(e){var t=e.type,n=this.playerStatsObject.application;switch(t){case"playing":if(this.playerStatsObject.started_at||(this.playerStatsObject.started_at=Date.now(),this.playerStatsObject.updated_at=Date.now()),this.playbackSegmentStart=Date.now(),this.pauseStarted&&n){var r=n.pause_duration;r+=Date.now()-this.pauseStarted,this.addPlayerStat("pause_duration",!1,r),delete this.pauseStarted}this.progressListener||this.startProgressListener();break;case"pause":this.playerStatsObject.started_at&&(this.addPlayerStat("pause_count"),this.pauseStarted=Date.now()),this.progressListener&&(clearInterval(this.progressListener),delete this.progressListener);break;case"stalled":this.playerStatsObject.started_at&&(this.addPlayerStat("stall_count"),this.stallingStarted=Date.now()),this.progressListener&&(clearInterval(this.progressListener),delete this.progressListener)}this.onEventCallback&&this.onEventCallback(e)}},{key:"startProgressListener",value:function(){var e=this;this.progressListener=setInterval((function(){e.remotePc&&e.remotePc.getStats(null).then((function(t){t.forEach((function(t){if("transport"===t.type){var n=t.bytesReceived,r=t.timestamp;if(e.playerStatsObject.bytes=n,e.playerStatsObject.updated_at=Math.round(r),e.playbackSegmentStart){var i=e.playerStatsObject.application;if(i){var o=i.live_duration;o+=Date.now()-e.playbackSegmentStart,e.addPlayerStat("live_duration",!1,o),delete e.playbackSegmentStart}}e.playbackSegmentStart=r}else if("track"===t.type&&"kind"in t&&"video"===t.kind){if(t.frameWidth&&t.frameWidth>0&&(e.frameWidth?e.frameWidth!==t.frameWidth&&(e.addPlayerStat("bitrate_change_count"),e.frameWidth=t.frameWidth):e.frameWidth=t.frameWidth),t.framesReceived===e.playerStatsObject.application.total_video_frames)e.probablyStalled=setTimeout((function(){e.stallingStarted||(e.addPlayerStat("stall_count"),e.stallingStarted=Date.now())}),500);else{clearTimeout(e.probablyStalled);var a=e.playerStatsObject.application;if(e.stallingStarted&&a){var s=a.stall_duration;s+=Date.now()-e.stallingStarted,e.addPlayerStat("stall_duration",!1,s),delete e.stallingStarted}}var u=e.remoteVideo.getVideoPlaybackQuality().corruptedVideoFrames;e.addPlayerStat("total_video_frames",!1,t.framesReceived),e.addPlayerStat("dropped_video_frames",!1,t.framesDropped),e.addPlayerStat("corrupted_video_frames",!1,u)}}))}))}),1e3)}},{key:"addListeners",value:function(){this.remoteVideo.addEventListener(Gt,this.onEvent.bind(this),!0),this.remoteVideo.addEventListener(Kt,this.onEvent.bind(this),!0),this.remoteVideo.addEventListener(Yt,this.onEvent.bind(this),!0),this.remoteVideo.addEventListener("pause",this.onEvent.bind(this),!0)}},{key:"removeListeners",value:function(){this.remoteVideo.removeEventListener(Gt,this.onEvent,!0),this.remoteVideo.removeEventListener(Kt,this.onEvent,!0),this.remoteVideo.removeEventListener(Yt,this.onEvent,!0),this.remoteVideo.removeEventListener("pause",this.onEvent,!0)}},{key:"addPlayerStat",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.playerStatsObject.application;r&&(n?r[e]=Math.round(n):t&&(r[e]+=1),this.playerStatsObject.application=r)}},{key:"getStats",value:function(){return this.xsid&&(this.playerStatsObject.source_id=this.xsid),s({},this.playerStatsObject,{id:this.uuid})}},{key:"startSendStats",value:function(){var e=this;this.sendingInterval=setInterval((function(){e.postStats()}),this.statsSendTime||6e4)}},{key:"stopSendStats",value:function(){this.sendingInterval&&(clearInterval(this.sendingInterval),this.postStats())}},{key:"getStatsUrl",value:function(){return"".concat(this.url,"/sessions/").concat(this.xsid?this.xsid:"").concat(this.getAuthToken())}},{key:"getAuthToken",value:function(){return this.opts.authTokenName&&this.opts.tokenValue?"?".concat(this.opts.authTokenName,"=").concat(this.opts.tokenValue):""}},{key:"postStats",value:function(){var e=this;this.playerStatsObject.started_at&&fetch(this.getStatsUrl(),{headers:{Accept:"application/json","Content-Type":"application/json"},method:"PUT",body:JSON.stringify(this.getStats())}).then((function(){})).catch((function(t){e.log("Stat send error:",t)}))}}]);var r}(on);function dn(){dn=function(){return n};var t,n={},r=Object.prototype,i=r.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(t){l=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var i=t&&t.prototype instanceof m?t:m,a=Object.create(i.prototype),s=new A(r||[]);return o(a,"_invoke",{value:E(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=f;var p="suspendedStart",h="executing",v="completed",g={};function m(){}function y(){}function b(){}var x={};l(x,s,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(P([])));_&&_!==r&&i.call(_,s)&&(x=_);var S=b.prototype=m.prototype=Object.create(x);function O(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function k(t,n){function r(o,a,s,u){var c=d(t[o],t,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==e(f)&&i.call(f,"__await")?n.resolve(f.__await).then((function(e){r("next",e,s,u)}),(function(e){r("throw",e,s,u)})):n.resolve(f).then((function(e){l.value=e,s(l)}),(function(e){return r("throw",e,s,u)}))}u(c.arg)}var a;o(this,"_invoke",{value:function(e,t){function i(){return new n((function(n,i){r(e,t,n,i)}))}return a=a?a.then(i,i):i()}})}function E(e,n,r){var i=p;return function(o,a){if(i===h)throw Error("Generator is already running");if(i===v){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=j(s,r);if(u){if(u===g)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===p)throw i=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=h;var c=d(e,n,r);if("normal"===c.type){if(i=r.done?v:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=v,r.method="throw",r.arg=c.arg)}}}function j(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=d(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function T(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 C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function P(n){if(n||""===n){var r=n[s];if(r)return r.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var o=-1,a=function e(){for(;++o<n.length;)if(i.call(n,o))return e.value=n[o],e.done=!1,e;return e.value=t,e.done=!0,e};return a.next=a}}throw new TypeError(e(n)+" is not iterable")}return y.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:y,configurable:!0}),y.displayName=l(b,c,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,l(e,c,"GeneratorFunction")),e.prototype=Object.create(S),e},n.awrap=function(e){return{__await:e}},O(k.prototype),l(k.prototype,u,(function(){return this})),n.AsyncIterator=k,n.async=function(e,t,r,i,o){void 0===o&&(o=Promise);var a=new k(f(e,t,r,i),o);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(S),l(S,c,"Generator"),l(S,s,(function(){return this})),l(S,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=P,A.prototype={constructor:A,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(C),!e)for(var n in this)"t"===n.charAt(0)&&i.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 r(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 r("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;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,g):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),g},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),C(n),g}},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;C(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},n}"undefined"!=typeof window&&(window._isGetUserMediaCalled=!!window._isGetUserMediaCalled);var pn={Player:fn,Publisher:function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];l(this,t);var o=n=function(e,t,n){return t=h(t),p(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return!!e}()?Reflect.construct(t,n||[],h(e).constructor):t.apply(e,n))}(this,t,[e,r,i]);n.status=qt.INITIALIZING,n.opts=r,r.preview&&r.preview instanceof HTMLMediaElement&&(n.videoContainer=r.preview,r.previewOptions&&(n.videoContainer.autoplay=!1!==r.previewOptions.autoplay,n.videoContainer.controls=r.previewOptions.controls||!1,n.videoContainer.muted=!1!==r.previewOptions.muted),n.videoContainer.addEventListener("loadedmetadata",(function(){o.log("Local video videoWidth: ".concat(this.videoWidth,"px, videoHeight: ").concat(this.videoHeight,"px"))}))),"maxBitrate"in r&&(n.maxBitrate=r.maxBitrate),"canvasCallback"in r&&"function"==typeof r.canvasCallback&&(n.canvasCallback=r.canvasCallback,n.forCanvasCallback="undefined"!=typeof document&&document.createElement("canvas"),n.forCanvasCallback.id="forCanvasCallback",n.forCanvasCallback.style.width="320px",n.videoContainer?(n.videoContainer.after(n.forCanvasCallback),n.videoContainer.style.display="none"):"undefined"!=typeof document&&document.body.appendChild(n.forCanvasCallback),n.canvasCallback(n.forCanvasCallback),n.publishStreamFromCanvas=n.forCanvasCallback.captureStream()),r.sentryConfig&&r.sentryConfig.length&&(n.sentryConfig=r.sentryConfig),n.opts.radeonCheck=!("radeonCheck"in r)||r.radeonCheck,n.trackStats=r.trackStats,n.statsContainer=r.statsContainer,n.password=r.password,n.constraints=r.constraints,n.returnCapabilities=r.returnCapabilities;var a=("undefined"!=typeof window&&window.navigator).userAgent;n.onEventCallback=r.onEvent,n.statsSendEnable=r.statsSendEnable||!0,n.statsSendTime=1e3*r.statsSendTime||6e4;var s="undefined"!=typeof window&&window.RTCRtpTransceiver&&"setCodecPreferences"in window.RTCRtpTransceiver.prototype;if(n.prefferedCodec=-1,a.includes("Chrome/95")&&RTCRtpSender&&s&&RTCRtpSender.getCapabilities("video").codecs.forEach((function(e,t){"video/H264"===e.mimeType&&e.sdpFmtpLine&&(e.sdpFmtpLine.includes("profile-level-id=42e01f")&&e.sdpFmtpLine.includes("level-asymmetry-allowed=1")?(e.sdpFmtpLine.includes("packetization-mode=0")||e.sdpFmtpLine.includes("packetization-mode=1")&&-1===n.prefferedCodec)&&(n.prefferedCodec=t):e.sdpFmtpLine.includes("profile-level-id=42001f")&&e.sdpFmtpLine.includes("level-asymmetry-allowed=1")&&e.sdpFmtpLine.includes("packetization-mode=0")&&-1===n.prefferedCodec&&(n.prefferedCodec=t))})),n.opts.radeonCheck){var u=n.getVideoCardInfo();n.log("Checking for GPU model:",u),u.length&&u.includes("AMD Radeon(TM) Graphics")&&RTCRtpSender&&s&&(n.log("Detected AMD Radeon(TM) Graphics"),n.prefferedCodec=5)}return n}return g(t,e),d(t,[{key:"resetStats",value:function(){this.playerStatsObject={proto:"webrtc",user_agent:navigator.userAgent,bytes:0,application:{application_name:"webrtc_publisher",application_version:on.version?on.version:null,stall_count:0,pause_count:0,error_count:0,reconnect_count:0,bitrate_change_count:0,live_duration:0,stall_duration:0,pause_duration:0,total_video_frames:0,dropped_video_frames:0,corrupted_video_frames:0}},this.statsSendEnable&&this.startSendStats()}},{key:"getUrl",value:function(){var e=new URL(this.url);return e.protocol="https",e.pathname+="/whip",this.opts.authTokenName&&this.opts.tokenValue?this.password?e.search="?".concat(this.opts.authTokenName,"=").concat(this.opts.tokenValue,"&password=").concat(this.password):e.search="?".concat(this.opts.authTokenName,"=").concat(this.opts.tokenValue):this.password&&(e.search="?password=".concat(this.password)),e.toString()}},{key:"start",value:function(){var e=this;this.resetStats(),this.uuid=an(),this.playerStatsObject.opened_at=Date.now();var t=this.getUrl();this.peerConnection=new $t,this.peerConnection.addEventListener("iceconnectionstatechange",un),this.peerConnection.addEventListener("negotiationneeded",(function(n){var r=new Headers;r.append("X-Sid",e.uuid),sn(n,t,{},r).then((function(t){if(e.xsid=t,e.playerStatsObject.started_at=Date.now(),e.onEventCallback&&e.onEventCallback({type:"started",started_at:Date.now()}),e.playerStatsObject.updated_at=Date.now(),e.emitter.emit(Wt.STREAMING),e.videoSender){var n=e.videoSender.sender,r=n.getParameters();e.log("Publisher::maxBitrate is set to:",e.maxBitrate||1e8),r.encodings[0].maxBitrate=e.maxBitrate||1e8,r.encodings[0].priority="medium",r.encodings[0].networkPriority="medium",n.setParameters(r)}e.progressListener||e.startProgressListener()}))})),this.getMedia(this.opts?this.opts.getMediaOptions:null),this.startTrackStats(),this.createSilentAudio(10,44100),this.sentryConfig&&(Vt({dsn:this.sentryConfig,environment:"production",release:"FlussonicWebrtcPublisher".concat(on.version?"@".concat(on.version):""),tracesSampleRate:1}),this.sentryEnabled=!0)}},{key:"stop",value:function(){this.isFirstMsgReceived=!1,this.clearLocalStreamSource(),this.forCanvasCallback&&(this.forCanvasCallback.remove(),this.videoContainer&&(this.videoContainer.style.display="block")),this.peerConnection&&(this.peerConnection.close(),this.peerConnection=null),this.status=qt.STOPPED,this.playerStatsObject.closed_at=Date.now(),this.onEventCallback&&this.onEventCallback({type:"closed",closed_at:Date.now()}),this.stopSendStats(),this.progressListener&&(clearInterval(this.progressListener),delete this.progressListener),this.restartTimeout&&(clearInterval(this.restartTimeout),delete this.restartTimeout),this.trackStatsInterval&&(clearInterval(this.trackStatsInterval),delete this.trackStatsInterval),this.sharingStream&&(this.sharingStream.getTracks().forEach((function(e){return e.stop()})),this.sharingStream=null)}},{key:"startTrackStats",value:function(){var e=this;this.trackStats&&(this.trackStatsInterval=window.setInterval((function(){e.peerConnection&&e.peerConnection.getStats(null).then((function(t){var n="";if(t.forEach((function(e){n+="<h2>Report: ".concat(e.type,"</h3>\n<strong>ID:</strong> ").concat(e.id,"<br>\n")+"<strong>Timestamp:</strong> ".concat(e.timestamp,"<br>\n"),Object.keys(e).forEach((function(t){"id"!==t&&"timestamp"!==t&&"type"!==t&&(n+="<strong>".concat(t,":</strong> ").concat(e[t],"<br>\n"))}))})),e.statsContainer){var r=e.statsContainer;r instanceof HTMLElement&&(r.innerHTML=n)}}))}),1e3))}},{key:"clearLocalStreamSource",value:function(){this.stream&&this.stream.getTracks().forEach((function(e){e.stop()}))}},{key:"getMedia",value:function(e,t){var n=this,r=s({},this.constraints);"video"in r||(r=s({},r,{video:!0})),this.opts.inputStreams?this.gotMedia(this.opts.inputStreams):this.getDevices().then((function(e){n.activeDeviceList=e,n.activeDeviceList.filter((function(e){return"audioinput"===e.kind})).length||(r.audio=!1),navigator.mediaDevices.getUserMedia(r).then((function(e){"undefined"!=typeof window&&(window._isGetUserMediaCalled=!0),n.log("Publisher::mediaDevices.getUserMedia success."),"function"==typeof t?t((function(){n.log("Publisher::getMedia::cb"),n.gotMedia(e)})):n.gotMedia(e),n.videoContainer&&(n.videoContainer.srcObject=n.stream)})).catch((function(e){n.log("Publisher::mediaDevices.getUserMedia exception occured.",e),n.opts&&n.opts.onGetUserMediaError&&n.opts.onGetUserMediaError(e),n.sendErrorLog()}))})),this.forCanvasCallback&&(n.dummyVideo=n.createDummyVideo("dummyVideo"),n.dummyVideo.srcObject=n.stream,n.dummyVideo.addEventListener("loadedmetadata",n.updateCanvasSize.bind(n),!1),n.dummyVideo.addEventListener("play",(function(){requestAnimationFrame(n.updateCanvas.bind(n))}),!1),this.canvasCallbackContext=this.forCanvasCallback.getContext("2d")),navigator.mediaDevices.ondevicechange=this.onDeviceChange.bind(this)}},{key:"updateCanvasSize",value:function(){this.forCanvasCallback.width=this.dummyVideo.videoWidth,this.forCanvasCallback.height=this.dummyVideo.videoHeight}},{key:"updateCanvas",value:function(){this.dummyVideo.ended||this.dummyVideo.paused||(this.forCanvasCallback&&this.canvasCallbackContext&&this.canvasCallbackContext.drawImage(this.dummyVideo,0,0,this.dummyVideo.videoWidth,this.dummyVideo.videoHeight),requestAnimationFrame(this.updateCanvas.bind(this)))}},{key:"getDevices",value:(r=n(dn().mark((function e(){var t,n,r=this;return dn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(navigator.mediaDevices&&navigator.mediaDevices.enumerateDevices){e.next=3;break}return this.log("enumerateDevices() not supported."),e.abrupt("return");case 3:return t=[],e.next=6,navigator.mediaDevices.enumerateDevices().then((function(e){return t=e})).catch((function(e){r.log("Publisher::mediaDevices.getUserMedia exception occured.",e),r.opts&&r.opts.onGetUserMediaError&&r.opts.onGetUserMediaError(e),r.sendErrorLog()}));case 6:return n=t.filter((function(e){return"audioinput"===e.kind||"videoinput"===e.kind})),this.log("Publisher:: Devices list ",n),e.abrupt("return",t);case 9:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"onDeviceChange",value:function(e){var t=this;this.addPlayerStat("bitrate_change_count"),this.log("Publisher::Device configuration changed",e);var n=[];this.getDevices.bind(this),this.getDevices().then((function(e){if(n=e.filter((function(e){return"audioinput"===e.kind})),t.audioSender&&t.audioSender.sender){if(n.length)0!==n.length&&(t.log("Publisher::New audio input device discovered"),navigator.mediaDevices.getUserMedia({audio:!0}).then((function(e){var n=e.getAudioTracks();n.length>0&&(t.log("Using audio device: ".concat(n[0].label)),t.audioSender.sender.replaceTrack(n[0]))})));else{t.log("Publisher::Audio input devices lost");var r=t.destination.stream.getAudioTracks();t.audioSender.sender.replaceTrack(r[0])}t.activeDeviceList=e}}))}},{key:"gotMedia",value:function(e){var t=this;this.stream=e,this.log("Publisher::got",this.stream),this.log("Publisher::gotMedia::peerConnection",this.peerConnection);var n=!1;if("video"in this.constraints&&(n=this.constraints.video),this.publishStreamFromCanvas){var r=c(this.publishStreamFromCanvas.getVideoTracks(),1)[0];this.videoTrack=r,this.videoSender=this.peerConnection.addTransceiver(this.videoTrack,{direction:"sendonly"})}else if(n){var i=c(e.getVideoTracks(),1)[0];this.videoTrack=i,this.videoTrack.contentHint="detail",this.videoSender=this.peerConnection.addTransceiver(this.videoTrack,{direction:"sendonly"})}if(this.audioSender=this.peerConnection.addTransceiver(e.getAudioTracks()[0],{direction:"sendonly"}),-1!==this.prefferedCodec){var o=RTCRtpSender.getCapabilities("video").codecs,a=o[this.prefferedCodec];this.log("Publisher preffered codec:",this.prefferedCodec,a),o=[a],this.peerConnection.getTransceivers().find((function(e){return e.sender&&e.sender.track===t.videoTrack})).setCodecPreferences(o)}this.peerConnection.onconnectionstatechange=function(e){t.log("Publisher::peer connection state",t.peerConnection.connectionState,e),t.onEventCallback&&t.onEventCallback({type:"connection state",connection:t.peerConnection.connectionState})}}},{key:"restart",value:function(){this.addPlayerStat("reconnect_count"),this.stop(),this.restartTimeout=setTimeout(this.start.bind(this),1e3)}},{key:"mute",value:function(){this.stream.getTracks().forEach((function(e){"audio"===e.kind&&(e.enabled=!e.enabled)}))}},{key:"switchTrack",value:function(e){if(e instanceof MediaStreamTrack)if("video"===e.kind){if(!this.videoSender||!this.videoSender.sender)return;this.videoSender.sender.replaceTrack(e)}else{if(!this.audioSender||!this.audioSender.sender)return;this.audioSender.sender.replaceTrack(e)}else console.info("Publisher only get stream tracks to switch RTCRtpTransceiver sender")}},{key:"shareScreen",value:function(){var e=this;if(this.sharingStream){if(!this.videoSender||!this.videoSender.sender)return;this.videoSender.sender.replaceTrack(this.videoTrack),this.videoContainer.srcObject=this.stream,this.sharingStream.getTracks().forEach((function(e){return e.stop()})),this.sharingStream=null}else navigator.mediaDevices.getDisplayMedia({video:{cursor:"always"},audio:!1}).then((function(t){e.sharingStream=t,e.videoContainer.srcObject=t;var n=c(e.sharingStream.getVideoTracks(),1)[0];e.sharingScreen=n,e.videoSender&&e.videoSender.sender&&e.videoSender.sender.replaceTrack(e.sharingScreen)})).catch((function(t){e.log("Publisher:: screen sharing error",t)}))}},{key:"createSilentAudio",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:44100,n=e*t,r="undefined"!=typeof window&&(window.AudioContext||window.webkitAudioContext||window.mozAudioContext);r||this.log("No Audio Context");var i=new r,o=i.createBuffer(1,n,t);this.destination=i.createMediaStreamDestination(),this.silentSource=i.createBufferSource(),this.silentSource.buffer=o,this.silentSource.connect(i.destination),this.silentSource.loop=!0,this.silentSource.start(),this.silentSource.connect(this.destination)}},{key:"sendErrorLog",value:function(e){this.sentryEnabled&&ht(e)}},{key:"createDummyVideo",value:function(e){var t="undefined"!=typeof document&&document.createElement("video");return"undefined"!=typeof document&&document.querySelector("body").appendChild(t),t.setAttribute("id",e),t.setAttribute("autoplay",!0),t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.zIndex="-1",t.style.opacity=0,t.style.width="1px",t.style.height="1px",t.style.overflow="hidden",t.muted=!0,t}},{key:"startProgressListener",value:function(){var e=this;this.progressListener=setInterval((function(){e.peerConnection&&e.peerConnection.getStats(null).then((function(t){var n=[];t.forEach((function(t){if(n.push({type:t.type,id:t.id,timestamp:t.timestamp}),"transport"===t.type){var r=t.timestamp,i=t.bytesSent;if(e.playerStatsObject.bytes=i,e.playerStatsObject.updated_at=Math.round(r),e.playbackSegmentStart){var o=e.playerStatsObject.application;if(o){var a=o.live_duration;a+=r-e.playbackSegmentStart,e.addPlayerStat("live_duration",Math.round(a)),delete e.playbackSegmentStart}}e.playbackSegmentStart=r}}))}))}),1e3)}},{key:"addPlayerStat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.playerStatsObject.application;n&&(t?n[e]=Math.round(t):n[e]+=1,this.playerStatsObject.application=n)}},{key:"getStats",value:function(){return s({},this.playerStatsObject,{id:this.uuid})}},{key:"startSendStats",value:function(){var e=this;this.sendingInterval=setInterval((function(){e.postStats()}),this.statsSendTime)}},{key:"stopSendStats",value:function(){this.sendingInterval&&(clearInterval(this.sendingInterval),this.postStats())}},{key:"getStatsUrl",value:function(){var e=this.opts.authTokenName&&this.opts.tokenValue?"?".concat(this.opts.authTokenName,"=").concat(this.opts.tokenValue):"";return"".concat(this.url,"/sessions/").concat(this.xsid?this.xsid:"").concat(e)}},{key:"postStats",value:function(){this.playerStatsObject.started_at&&fetch(this.getStatsUrl(),{headers:{Accept:"application/json","Content-Type":"application/json"},method:"PUT",body:JSON.stringify(this.getStats())})}},{key:"userIsChangingTracks",value:function(e,t){console.log("userIsChangingTracks",{e:e,data:t})}},{key:"on",value:function(){for(var e=this.emitter.on,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.apply(this.emitter,n)}}]);var r}(on),PUBLISHER_EVENTS:Wt,PLAYER_EVENTS:Ht,PUBLISHER_STATUSES:qt}}(),i.default}()},e.exports=n()}).call(this,n(210))},function(e,t){function n(e,t,n){e.addEventListener("wheel",t,n)}e.exports=n,e.exports.addWheelListener=n,e.exports.removeWheelListener=function(e,t,n){e.removeEventListener("wheel",t,n)}},function(e,t,n){var r=n(997),i={ease:r(.25,.1,.25,1),easeIn:r(.42,0,1,1),easeOut:r(0,0,.58,1),easeInOut:r(.42,0,.58,1),linear:r(0,0,1,1)};function o(){}function a(){var e=new Set,t=new Set,n=0;return{next:r,cancel:r,clearAll:function(){e.clear(),t.clear(),cancelAnimationFrame(n),n=0}};function r(e){t.add(e),n||(n=requestAnimationFrame(i))}function i(){n=0;var r=t;t=e,(e=r).forEach((function(e){e()})),e.clear()}}e.exports=function(e,t,n){var r=Object.create(null),a=Object.create(null),s="function"==typeof(n=n||{}).easing?n.easing:i[n.easing];s||(n.easing&&console.warn("Unknown easing function in amator: "+n.easing),s=i.ease);var u="function"==typeof n.step?n.step:o,c="function"==typeof n.done?n.done:o,l=function(e){if(!e)return"undefined"!=typeof window&&window.requestAnimationFrame?{next:window.requestAnimationFrame.bind(window),cancel:window.cancelAnimationFrame.bind(window)}:{next:function(e){return setTimeout(e,1e3/60)},cancel:function(e){return clearTimeout(e)}};if("function"!=typeof e.next)throw new Error("Scheduler is supposed to have next(cb) function");if("function"!=typeof e.cancel)throw new Error("Scheduler is supposed to have cancel(handle) function");return e}(n.scheduler),f=Object.keys(t);f.forEach((function(n){r[n]=e[n],a[n]=t[n]-e[n]}));var d,p="number"==typeof n.duration?n.duration:400,h=Math.max(1,.06*p),v=0;return d=l.next((function t(){var n=s(v/h);v+=1,function(t){f.forEach((function(n){e[n]=a[n]*t+r[n]}))}(n),v<=h?(d=l.next(t),u(e)):(d=0,setTimeout((function(){c(e)}),0))})),{cancel:function(){l.cancel(d),d=0}}},e.exports.makeAggregateRaf=a,e.exports.sharedScheduler=a()},function(e,t){var n="function"==typeof Float32Array;function r(e,t){return 1-3*t+3*e}function i(e,t){return 3*t-6*e}function o(e){return 3*e}function a(e,t,n){return((r(t,n)*e+i(t,n))*e+o(t))*e}function s(e,t,n){return 3*r(t,n)*e*e+2*i(t,n)*e+o(t)}function u(e){return e}e.exports=function(e,t,r,i){if(!(0<=e&&e<=1&&0<=r&&r<=1))throw new Error("bezier x values must be in [0, 1] range");if(e===t&&r===i)return u;for(var o=n?new Float32Array(11):new Array(11),c=0;c<11;++c)o[c]=a(.1*c,e,r);function l(t){for(var n=0,i=1;10!==i&&o[i]<=t;++i)n+=.1;--i;var u=n+(t-o[i])/(o[i+1]-o[i])*.1,c=s(u,e,r);return c>=.001?function(e,t,n,r){for(var i=0;i<4;++i){var o=s(t,n,r);if(0===o)return t;t-=(a(t,n,r)-e)/o}return t}(t,u,e,r):0===c?u:function(e,t,n,r,i){var o,s,u=0;do{(o=a(s=t+(n-t)/2,r,i)-e)>0?n=s:t=s}while(Math.abs(o)>1e-7&&++u<10);return s}(t,n,n+.1,e,r)}return function(e){return 0===e?0:1===e?1:a(l(e),t,i)}}},function(e,t){e.exports=function(e){!function(e){if(!e)throw new Error("Eventify cannot use falsy object as events subject");for(var t=["on","fire","off"],n=0;n<t.length;++n)if(e.hasOwnProperty(t[n]))throw new Error("Subject cannot be eventified, since it already has property '"+t[n]+"'")}(e);var t=function(e){var t=Object.create(null);return{on:function(n,r,i){if("function"!=typeof r)throw new Error("callback is expected to be a function");var o=t[n];return o||(o=t[n]=[]),o.push({callback:r,ctx:i}),e},off:function(n,r){if(void 0===n)return t=Object.create(null),e;if(t[n])if("function"!=typeof r)delete t[n];else for(var i=t[n],o=0;o<i.length;++o)i[o].callback===r&&i.splice(o,1);return e},fire:function(n){var r,i=t[n];if(!i)return e;arguments.length>1&&(r=Array.prototype.splice.call(arguments,1));for(var o=0;o<i.length;++o){var a=i[o];a.callback.apply(a.ctx,r)}return e}}}(e);return e.on=t.on,e.off=t.off,e.fire=t.fire,e}},function(e,t){e.exports=function(e,t,n){"object"!=I(n)&&(n={});var r,i,o,a,s,u,c,l,f,d,p="number"==typeof n.minVelocity?n.minVelocity:5,h="number"==typeof n.amplitude?n.amplitude:.25,v="function"==typeof n.cancelAnimationFrame?n.cancelAnimationFrame:"function"==typeof cancelAnimationFrame?cancelAnimationFrame:clearTimeout,g="function"==typeof n.requestAnimationFrame?n.requestAnimationFrame:"function"==typeof requestAnimationFrame?requestAnimationFrame:function(e){return setTimeout(e,16)};return{start:function(){r=e(),u=f=a=c=0,i=new Date,v(o),v(d),o=g(m)},stop:function(){v(o),v(d);var t=e();s=t.x,l=t.y,i=Date.now(),(a<-p||a>p)&&(s+=u=h*a),(c<-p||c>p)&&(l+=f=h*c),d=g(y)},cancel:function(){v(o),v(d)}};function m(){var t=Date.now(),n=t-i;i=t;var s=e(),u=s.x-r.x,l=s.y-r.y;r=s;var f=1e3/(1+n);a=.8*u*f+.2*a,c=.8*l*f+.2*c,o=g(m)}function y(){var e=Date.now()-i,n=!1,r=0,o=0;u&&((r=-u*Math.exp(-e/342))>.5||r<-.5?n=!0:r=u=0),f&&((o=-f*Math.exp(-e/342))>.5||o<-.5?n=!0:o=f=0),n&&(t(s+r,l+o),d=g(y))}}},function(e,t){function n(e){return e.stopPropagation(),!1}function r(){}e.exports=function(e){if(e)return{capture:r,release:r};var t,i,o,a=!1;return{capture:function(e){a=!0,i=window.document.onselectstart,o=window.document.ondragstart,window.document.onselectstart=n,(t=e).ondragstart=n},release:function(){a&&(a=!1,window.document.onselectstart=i,t&&(t.ondragstart=o))}}}},function(e,t){e.exports=function(){this.x=0,this.y=0,this.scale=1}},function(e,t){function n(e){return e&&e.ownerSVGElement&&e.getCTM}e.exports=function(e,t){if(!n(e))throw new Error("svg element is required for svg.panzoom to work");var r=e.ownerSVGElement;if(!r)throw new Error("Do not apply panzoom to the root <svg> element. Use its child instead (e.g. <g></g>). As of March 2016 only FireFox supported transform on the root element");return t.disableKeyboardInteraction||r.setAttribute("tabindex",0),{getBBox:function(){var t=e.getBBox();return{left:t.x,top:t.y,width:t.width,height:t.height}},getScreenCTM:function(){var e=r.getCTM();return e||r.getScreenCTM()},getOwner:function(){return r},applyTransform:function(t){e.setAttribute("transform","matrix("+t.scale+" 0 0 "+t.scale+" "+t.x+" "+t.y+")")},initTransform:function(t){var n=e.getCTM();null===n&&(n=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGMatrix()),t.x=n.e,t.y=n.f,t.scale=n.a,r.removeAttributeNS(null,"viewBox")}}},e.exports.canAttach=n},function(e,t){function n(e){return e&&e.parentElement&&e.style}e.exports=function(e,t){if(!n(e))throw new Error("panzoom requires DOM element to be attached to the DOM tree");var r=e.parentElement;return e.scrollTop=0,t.disableKeyboardInteraction||r.setAttribute("tabindex",0),{getBBox:function(){return{left:0,top:0,width:e.clientWidth,height:e.clientHeight}},getOwner:function(){return r},applyTransform:function(t){e.style.transformOrigin="0 0 0",e.style.transform="matrix("+t.scale+", 0, 0, "+t.scale+", "+t.x+", "+t.y+")"}}},e.exports.canAttach=n},function(e,t,n){var r=n(68),i=n(1005);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{insert:"head",singleton:!1}),e.exports=i.locals||{}},function(e,t,n){(t=n(69)(!1)).push([e.i,".dvrp-preview{position:absolute;left:0;top:0;width:100%;height:100%;opacity:1;pointer-events:none;z-index:1;transition:.1s ease}.dvrp-preview._hidden{opacity:0}",""]),e.exports=t},function(e,t,n){"use strict";n.r(t),t.default=function(e){return e.map((function(e){return"string"==typeof e?e:Object.keys(e).filter((function(t){return!!e[t]})).join(" ")})).join(" ")}},function(e,t,n){var r=n(68),i=n(1008);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{insert:"head",singleton:!1}),e.exports=i.locals||{}},function(e,t,n){(t=n(69)(!1)).push([e.i,".adverts_block{width:100%;height:100%;background:#000;position:absolute;z-index:40}.adverts_block a{display:flex;width:100%;height:100%}.adverts_block .muted_placeholder{position:absolute;height:48px;width:48px;display:flex;justify-content:center;align-items:center;left:0;bottom:0;z-index:41}",""]),e.exports=t},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.AdvertPlayer=void 0;var a=o(n(0));t.AdvertPlayer=function(e){var t=e.url,n=e.link,r=e.index,i=e.setActiveIndex,o=e.setAdvertDuration,s=e.onEvent,u=(0,a.useRef)(null),c=T((0,a.useState)(!1),2),l=c[0],f=c[1],d=T((0,a.useState)(!0),2),p=d[0],h=d[1],v=T((0,a.useState)(),2),g=v[0],m=v[1],y=function(){i(r+1)},b=(0,a.useCallback)((function(){var e;u.current&&u.current.currentTime&&o(r,null===(e=u.current)||void 0===e?void 0:e.currentTime)}),[r,o]),x=function(){g||m(setInterval((function(){b()}),250)),s("",{key:Date.now(),data:{event:"advertising",type:"advertising"}})};return(0,a.useEffect)((function(){if(u.current){var e=u.current;e.src=t,e.play().then((function(){f(!0)})).catch((function(e){console.info("advert error:",e),y()})),e.addEventListener("play",x,!1),e.addEventListener("ended",y,!1)}return function(){var e,t;null===(e=u.current)||void 0===e||e.removeEventListener("play",x,!1),null===(t=u.current)||void 0===t||t.removeEventListener("ended",y,!1),clearInterval(g)}}),[t]),a.default.createElement(a.Fragment,null,a.default.createElement("a",{href:n,target:"_blank","aria-label":"advertise-link",rel:"noreferrer"},a.default.createElement("video",{ref:u,className:"advert-player",style:{width:"100%",height:"100%"},autoPlay:!0,playsInline:!0,muted:!0,controls:!1,"data-cy":"videoAdvertElement",key:"advert_player"})),l&&a.default.createElement("div",{className:"muted_placeholder"},a.default.createElement("button",{type:"button",className:"dvrp-button dvrp-volume-button",onClick:function(){if(u.current){if(0===u.current.currentTime)return;u.current.muted=!u.current.muted,h(!p)}},"data-cy":"DVR_mute_button"},p?a.default.createElement("span",{className:"icon-volume_off"}):a.default.createElement("span",{className:"icon-volume"}))))}},function(e,t,n){var r=n(68),i=n(1011);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{insert:"head",singleton:!1}),e.exports=i.locals||{}},function(e,t,n){(t=n(69)(!1)).push([e.i,'.arrow-effect{position:absolute;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;pointer-events:none;flex-direction:column;z-index:2;opacity:0;background-color:rgba(40,40,40,.3);height:100%;width:33%;transition:opacity .3s ease}.arrow-effect.left{left:0}.arrow-effect.right{right:0}.arrow-effect.animate{opacity:1}.arrow-effect.left::before,.arrow-effect.right::before{content:"";position:absolute;top:0;bottom:0;width:100%;background-color:rgba(40,40,40,.3);z-index:-1}.arrow-effect.left::before{left:-100%}.arrow-effect.right::before{right:-100%}.arrows{display:flex;align-items:center;gap:10px}.arrow-triangle{width:0;height:0;border-style:solid;border-width:10px 14px 10px 0;border-color:rgba(0,0,0,0) rgba(255,255,255,.5) rgba(0,0,0,0) rgba(0,0,0,0);opacity:1;transition:border-color .3s ease}.arrow-effect.right .arrow-triangle{transform:rotate(180deg);border-width:10px 14px 10px 0;border-color:rgba(0,0,0,0) rgba(255,255,255,.5) rgba(0,0,0,0) rgba(0,0,0,0)}@keyframes arrowColorChangeLeft{0%,100%{border-color:rgba(0,0,0,0) rgba(255,255,255,.5) rgba(0,0,0,0) rgba(0,0,0,0)}50%{border-color:rgba(0,0,0,0) #fff rgba(0,0,0,0) rgba(0,0,0,0)}}@keyframes arrowColorChangeRight{0%,100%{border-color:rgba(0,0,0,0) rgba(255,255,255,.5) rgba(0,0,0,0) rgba(0,0,0,0)}50%{border-color:rgba(0,0,0,0) #fff rgba(0,0,0,0) rgba(0,0,0,0)}}.arrow-effect.right.animate .arrow-triangle:nth-child(1){animation:arrowColorChangeRight 1s ease-in-out infinite;animation-delay:0s}.arrow-effect.right.animate .arrow-triangle:nth-child(2){animation:arrowColorChangeRight 1s ease-in-out infinite;animation-delay:.15s}.arrow-effect.right.animate .arrow-triangle:nth-child(3){animation:arrowColorChangeRight 1s ease-in-out infinite;animation-delay:.3s}.arrow-effect.left.animate .arrow-triangle:nth-child(1){animation:arrowColorChangeLeft 1s ease-in-out infinite;animation-delay:.3s}.arrow-effect.left.animate .arrow-triangle:nth-child(2){animation:arrowColorChangeLeft 1s ease-in-out infinite;animation-delay:.15s}.arrow-effect.left.animate .arrow-triangle:nth-child(3){animation:arrowColorChangeLeft 1s ease-in-out infinite;animation-delay:0s}.time-label{margin-top:10px;font-size:18px;color:#fff}',""]),e.exports=t},function(e,t,n){var r=n(68),i=n(1013);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{insert:"head",singleton:!1}),e.exports=i.locals||{}},function(e,t,n){(t=n(69)(!1)).push([e.i,".dvrp-bottom-gradient{position:absolute;bottom:0;width:100%;height:104px;background:linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.9) 100%);pointer-events:none;opacity:0;transition:opacity .25s cubic-bezier(0, 0, 0.2, 1);z-index:2}.dvrp-bottom-gradient._visible{opacity:1}.dvrp-top{position:absolute;top:0;left:0;right:0;height:48px;padding:0 12px;opacity:0;z-index:3;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;transform:matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)}.dvrp-top *{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.dvrp-top._visible{opacity:1}.dvrp-top .dvrp-controls{height:48px;line-height:48px;display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-start;transform:matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)}.dvrp-top .dvrp-controls .timeStamp{color:#fff;font-size:12px;font-style:normal;font-weight:500;line-height:19px;padding:0 6px;margin-right:12px;border-radius:4px;background:rgba(124,121,121,.3);backdrop-filter:blur(7.5px)}.dvrp-top .dvrp-controls .timeStamp>a{text-decoration:none;color:#fff}.dvrp-top .dvrp-controls .dvrp-button{margin-left:auto}.dvrp-footer{cursor:grab;position:absolute;bottom:0;left:0;right:0;padding:0 12px;color:#fff;background:#000;margin:auto;opacity:0;transition:opacity .25s cubic-bezier(0, 0, 0.2, 1);transform:matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);box-sizing:border-box;z-index:3}.dvrp-footer.ott{cursor:default;background:none}.dvrp-footer._visible{opacity:1}.dvrp-footer .dvrp-controls{position:relative;z-index:4;height:48px;line-height:48px;display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center}.dvrp-footer .dvrp-controls .dropDownWrapper{height:auto;width:auto;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.dvrp-footer .dvrp-controls .dropDownWrapper .dvrp-button{height:100%}.dvrp-footer .dvrp-controls .dvrp-button a{text-decoration:none;color:#fff}.dvrp-footer .dvrp-controls .dvrp-button .icon-share_player{font-size:19px}.dvrp-footer .dvrp-controls .dvrp-button .options{background:#504f59;color:#fff;position:absolute;bottom:48px;border-radius:4px;right:0;z-index:60;box-sizing:border-box;display:flex;flex-direction:column;box-shadow:2px 2px 3px 1px rgba(0,0,0,.45);overflow:hidden}.dvrp-footer .dvrp-controls .dvrp-button .options div,.dvrp-footer .dvrp-controls .dvrp-button .options a{white-space:nowrap;padding:8px 12px;box-sizing:border-box;height:100%;text-decoration:none;color:#fff}.dvrp-footer .dvrp-controls .dvrp-button .options div:hover,.dvrp-footer .dvrp-controls .dvrp-button .options a:hover{background:#33323a}.dvrp-footer .dvrp-controls .dvrp-left-controls{flex:1;order:1;display:flex;align-items:center;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.dvrp-footer .dvrp-controls .dvrp-left-controls *{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.dvrp-footer .dvrp-controls .dvrp-right-controls{order:2;display:flex;align-items:center}.dvrp-top .dvrp-controls .dvrp-button,.dvrp-footer .dvrp-controls .dvrp-button{color:#fff;width:32px;height:100%;cursor:pointer;padding:0 2px;opacity:.8;border:none;position:relative;background-color:rgba(0,0,0,0);transition:opacity .1s cubic-bezier(0, 0, 0.2, 1);font-size:14px;font-weight:400;min-height:32px;display:flex;justify-content:center;align-items:center;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;position:relative}.dvrp-top .dvrp-controls .dvrp-button *,.dvrp-footer .dvrp-controls .dvrp-button *{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.dvrp-top .dvrp-controls .dvrp-button:hover,.dvrp-footer .dvrp-controls .dvrp-button:hover{opacity:1}.bigRoundButton{cursor:pointer;font-size:9px;border-radius:50%;display:flex;justify-content:center;align-items:center;border:none;color:#fff;width:30px;height:30px;background:rgba(87,87,90,.5)}.bigRoundButton:hover{background:rgba(87,87,90,.75)}.bigRoundButton.green{line-height:8px;background:#10b981}.bigRoundButton.green:hover{background:#0c6346}",""]),e.exports=t},function(e,t,n){"use strict";n.r(t);var r=n(32),i=n.n(r),o=n(31),a=n.n(o),s=n(39),u=n.n(s),c=n(26),l=n.n(c),f=n(40),d=n.n(f),p=n(0),h=n.n(p),v=n(1),g=n.n(v),m=n(11),y=function(e){function t(){return i()(this,t),function(e,t,n){return t=l()(t),u()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return!!e}()?Reflect.construct(t,n||[],l()(e).constructor):t.apply(e,n))}(this,t,arguments)}return d()(t,e),a()(t,[{key:"render",value:function(){var e=this.props.tooltipData,t=e.title,n=e.note,r=e.utc;return h.a.createElement("div",{className:"motionTooltip"},h.a.createElement("p",null,m.default.humanTime(r)),h.a.createElement("p",{className:"motionTitle"},t),h.a.createElement("h2",null,n))}}])}(p.Component);y.propTypes={tooltipData:g.a.any},t.default=y},function(e,t,n){var r=n(68),i=n(1016);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{insert:"head",singleton:!1}),e.exports=i.locals||{}},function(e,t,n){(t=n(69)(!1)).push([e.i,".calendar{position:absolute;right:16px;bottom:116px;padding:16px;z-index:3;border-radius:10px;border:.5px solid rgba(235,235,245,.2);background:rgba(40,40,40,.9)}.calendar .nd_calendar .month-selection{color:#fff;display:flex;justify-content:space-between;font-size:15px;font-style:normal;font-weight:400;line-height:20px;letter-spacing:-0.3px}.calendar .nd_calendar .month-selection .month-change{cursor:pointer}.calendar .nd_calendar .month-selection .month-change.month-next{transform:rotateY(180deg)}.calendar .nd_calendar .strap{height:1px;width:100%;background:rgba(255,255,255,.15);margin:16px 0 32px}.calendar .nd_calendar .days{display:flex;vertical-align:top;width:100%;flex-direction:column;align-content:center;justify-content:center;align-items:stretch}.calendar .nd_calendar .day-names{font-size:13px;font-style:normal;font-weight:400;line-height:16px;letter-spacing:-0.3px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;margin-bottom:8px}.calendar .nd_calendar .day-names .day-name{display:inline-block;vertical-align:top;width:40px;padding:6px 0;color:#fff;text-align:center}.calendar .nd_calendar .day-entries{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.calendar .nd_calendar .day-entries .day-entry{display:flex;justify-content:center;align-items:center;width:36px;height:36px;border-radius:50%;margin:4px;text-align:center;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:#fff;font-size:15px;font-style:normal;line-height:20px;letter-spacing:-0.3px}.calendar .nd_calendar .day-entries .day-entry:hover{color:#000;background:#fff}.calendar .nd_calendar .day-entries .day-entry.other-day{color:#9e9e9e}.calendar .nd_calendar .day-entries .day-entry.current-day{font-weight:500}.calendar .nd_calendar .day-entries .day-entry.available{color:#fff;background:rgba(17,124,88,.7529411765);cursor:pointer}.calendar .nd_calendar .day-entries .day-entry.available:hover{color:#fff;background:#117c59}.calendar .nd_calendar .day-entries .day-entry.selected-day{color:#fff;background:#002dab}.calendar .nd_calendar .day-entries .day-entry.selected-day:hover{color:#fff;background:#002999}@media only screen and (max-width: 1200px){.calendar{padding:7px;bottom:102px}.calendar .nd_calendar .strap{margin:5px 0 0}.calendar .nd_calendar .days .day-names{margin-bottom:0px}.calendar .nd_calendar .days .day-entries .day-entry{width:25px;height:25px;margin:2px}}@media only screen and (max-width: 600px),(max-height: 380px){.calendar{right:5px;left:5px;padding:5px;bottom:97px}}",""]),e.exports=t},function(e,t,n){var r=n(68),i=n(1018);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{insert:"head",singleton:!1}),e.exports=i.locals||{}},function(e,t,n){(t=n(69)(!1)).push([e.i,'.dvrp-volume-button:before{content:"";position:absolute;top:12px;left:10px;width:2px;height:0;background-color:#fff;transform-origin:top;transform:rotate(-45deg);transition:height .1s cubic-bezier(0, 0, 0.2, 1)}.dvrp-volume-control{display:flex;justify-content:center;align-items:center;height:100%}.dvrp-volume-panel{display:inline-block;height:100%;transition:margin .2s cubic-bezier(0.4, 0, 1, 1),width .1s cubic-bezier(0.4, 0, 1, 1);cursor:pointer;outline:0;margin-right:3px;width:0;overflow:hidden}.dvrp-volume-panel.visible{width:52px}.dvrp-volume-slider{height:100%;min-height:36px;position:relative;overflow:hidden}.dvrp-volume-slider-handle{position:absolute;top:50%;width:12px;height:12px;border-radius:6px;margin-top:-6px;background:#fff}.dvrp-volume-slider-handle:before,.dvrp-volume-slider-handle:after{content:"";position:absolute;display:block;top:50%;left:0;height:3px;margin-top:-2px;width:64px}.dvrp-volume-slider-handle:before{left:-58px;background:#fff}.dvrp-volume-slider-handle:after{left:6px;background:rgba(255,255,255,.2)}',""]),e.exports=t},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==I(Symbol.iterator)?function(e){return I(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":I(e)})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var i=s(n(0)),o=s(n(1020)),a=["text","onCopy","options","children"];function s(e){return e&&e.__esModule?e:{default:e}}function u(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 c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return 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 f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}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 g=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(s,e);var t,n,r=function(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var i=h(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d(this,n)}}(s);function s(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return v(p(e=r.call.apply(r,[this].concat(n))),"onClick",(function(t){var n=e.props,r=n.text,a=n.onCopy,s=n.children,u=n.options,c=i.default.Children.only(s),l=(0,o.default)(r,u);a&&a(r,l),c&&c.props&&"function"==typeof c.props.onClick&&c.props.onClick(t)})),e}return t=s,(n=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=function(e,t){if(null==e)return{};var n,r,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,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,a),r=i.default.Children.only(t);return i.default.cloneElement(r,c(c({},n),{},{onClick:this.onClick}))}}])&&l(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(i.default.PureComponent);t.CopyToClipboard=g,v(g,"defaultProps",{onCopy:void 0,options:void 0})},function(e,t,n){"use strict";var r=n(1021),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,o,a,s,u,c,l=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),u=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=i[t.format]||i.default;window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(c),s.selectNodeContents(c),u.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");l=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),o=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(s):u.removeAllRanges()),c&&document.body.removeChild(c),a()}return l}},function(e,t){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},function(e,t,n){var r=n(68),i=n(1023);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{insert:"head",singleton:!1}),e.exports=i.locals||{}},function(e,t,n){(t=n(69)(!1)).push([e.i,"#forDownloadModal .control{display:flex;justify-content:center;align-items:center;flex-wrap:nowrap;color:#fff;height:32px;max-height:32px;box-sizing:border-box;white-space:nowrap}#forDownloadModal .control .focus_btn{line-height:18px;background:none;border:none;border-radius:4px;text-align:center;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#fff;width:0;overflow:hidden;max-width:0;min-width:0;padding:0;height:32px;transition:150ms ease-in-out;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}#forDownloadModal .control .focus_btn:hover{background-color:#66666d}#forDownloadModal .control .focus_btn.active{width:32px;min-width:32px}#forDownloadModal .control .download{display:flex;justify-content:center;align-items:center;flex-wrap:nowrap;text-decoration:none;color:#fff;cursor:pointer;background:#209c61;border-radius:4px;line-height:24px}#forDownloadModal .control .download i{margin-right:8px}#forDownloadModal .control .download.cancel{background:#56595e;margin-left:16px}#forDownloadModal .control .download.disabled{background:#56595e}#forDownloadModal .control .download-text{display:flex;justify-content:center;align-items:center}#forDownloadModal .control .download-text .inputWrapper{padding:4px 12px;border-radius:8px;background:var(--grey-900, #1c1c1c)}#forDownloadModal .control .download-text .inputWrapper .inputBlock{display:inline-flex;flex-direction:column;justify-content:center;align-items:center}#forDownloadModal .control .download-text .inputWrapper .inputBlock span{font-size:12px;margin:-20px 0 8px;color:#c1c1c3}#forDownloadModal .control .download-text .inputWrapper .inputBlock input{height:24px;width:35px;margin:0px 1px;font-size:14px;border:none;color:#fff;background:none;text-align:center}#forDownloadModal .control .download-text .inputWrapper .inputBlock input.locked{color:#ffcc80;font-weight:500}#forDownloadModal .control .download-text .separator{color:var(--grey-50, #fcfcfc);font-size:14px;margin:0 8px}#forDownloadModal .control .download-text .verticalLine{width:1px;height:32px;background:#1c1c1c;margin:0 12px}#forDownloadModal .control .dropDown{font-size:14px;border:.5px solid rgba(235,235,245,.2);margin-bottom:8px}#forDownloadModal .control .dropDown a{color:#fff;text-decoration:none;width:100%}#forDownloadModal .control .popup{position:absolute;z-index:46;opacity:0;top:200px;border-radius:8px;padding:0;background:rgba(0,0,0,.75);transition:150ms ease-in-out}#forDownloadModal .control .popup.enabled{top:8px;padding:8px 12px;opacity:1}@media only screen and (min-device-width: 240px)and (max-device-width: 960px)and (orientation: portrait){#forDownloadModal .control .download-text .inputWrapper{padding:4px 8px}#forDownloadModal .control .download-text .separator{margin:0 4px}#forDownloadModal .control .download-text .verticalLine{margin:0 8px}}",""]),e.exports=t},function(e,t,n){var r=n(68),i=n(1025);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{insert:"head",singleton:!1}),e.exports=i.locals||{}},function(e,t,n){(t=n(69)(!1)).push([e.i,".settingsButton{padding:0;text-align:center;display:flex;justify-content:center;align-items:center;background:#66666d;color:#fff;font-weight:400;max-height:32px;border-radius:4px;border:none;cursor:pointer;min-height:28px;min-width:32px;box-sizing:border-box;margin-left:4px}.settingsButton svg{fill:#fff;height:24px;width:24px}.clearDropdown{position:absolute;left:0;right:0;top:0;bottom:0;z-index:40}.dropDown{background-color:#1e1e1f;padding:8px 0;border-radius:8px;position:absolute;bottom:48px;right:12px;z-index:45;opacity:0;transition:opacity 250ms cubic-bezier(0, 0, 0.2, 1) 0ms;width:0;height:0;overflow:hidden}.dropDown.border{border:.5px solid rgba(235,235,245,.2)}.dropDown.visible{width:auto;height:auto;opacity:1}.dropDown .item{background-color:#1e1e1f;text-align:left;line-height:24px;padding:8px 24px 8px 16px;color:#fff;display:flex;align-items:center;text-decoration:none}.dropDown .item.unclickable:hover{cursor:default;background-color:#1e1e1f}.dropDown .item:hover{background-color:#48484d;cursor:pointer}.dropDown .item.active{color:#00ff86}.dropDown .item .left{display:flex;align-items:center;user-select:none}.dropDown .item .ddicon{font-size:22px;line-height:16px;margin-right:12px}.dropDown .item .smicon{font-size:16px;line-height:16px;margin-right:12px}.dropDown .item .text{text-wrap:nowrap}.dropDown .item .right{display:flex;align-items:center;justify-content:flex-end;margin-left:64px;flex:1;user-select:none}.dropDown .firstRow{width:0;height:0;overflow:hidden;transition:150ms ease-in-out}.dropDown .firstRow.visible{width:100%;height:auto}.dropDown .secondRow{width:0;height:0;overflow:hidden;transition:150ms ease-in-out}.dropDown .secondRow.visible{width:100%;height:auto}.dropDown .hr{background-color:#66666d;height:1px;width:100%}.dropDown .popupCopyDebug{position:absolute;z-index:46;opacity:0;top:8px;border-radius:8px;padding:8px 12px;background:#000;transition:150ms ease-in-out;color:#fff}.dropDown .popupCopyDebug.enabled{opacity:1}",""]),e.exports=t},function(e,t,n){var r=n(68),i=n(1027);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{insert:"head",singleton:!1}),e.exports=i.locals||{}},function(e,t,n){(t=n(69)(!1)).push([e.i,".itsLive{font-size:12px;font-style:normal;font-weight:500;line-height:19px;color:#fff;background:#c11030;height:19px;padding:0 8px;margin:auto 0;border-radius:4px;display:flex;text-align:center;align-items:center;justify-content:center;box-sizing:border-box;transform:matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);-webkit-user-select:none;-ms-user-select:none;user-select:none}.itsLive.not{cursor:pointer;background-color:#666}.itsLive span{margin-right:8px;font-size:9px;line-height:18px}@media only screen and (min-device-width: 240px)and (max-device-width: 960px)and (orientation: portrait){.itsLive{font-size:11px;padding:0px 4px}}",""]),e.exports=t},function(e,t,n){var r=n(68),i=n(1029);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{insert:"head",singleton:!1}),e.exports=i.locals||{}},function(e,t,n){(t=n(69)(!1)).push([e.i,".ott_timeline{width:calc(100% - 16px);padding-top:24px;padding-bottom:8px;margin:0 8px;position:relative;border-radius:2px;cursor:pointer;z-index:0}.ott_timeline .line{height:3px;width:100%;max-width:100%;position:relative;border-radius:2px;overflow:hidden;background:#1b1b1b}.ott_timeline .line .buffered{position:absolute;left:0;height:100%;background:#646464;z-index:1;pointer-events:none}.ott_timeline .line .played{position:absolute;left:0;height:100%;background:#117c59;z-index:2;pointer-events:none}.ott_timeline .line .played-debug{position:absolute;left:0;height:100%;background:#b82424;z-index:4;pointer-events:none}.ott_timeline .now{bottom:6px;position:absolute;width:8px;height:8px;margin-left:-4px;border-radius:50%;background:#fff;box-shadow:-1px 1px 5px rgba(0,0,0,.2509803922);z-index:5;pointer-events:none}",""]),e.exports=t},function(e,t,n){var r=n(68),i=n(1031);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{insert:"head",singleton:!1}),e.exports=i.locals||{}},function(e,t,n){(t=n(69)(!1)).push([e.i,".ott_time{font-size:13px;margin-left:8px}",""]),e.exports=t},function(e,t,n){var r=n(68),i=n(1033);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{insert:"head",singleton:!1}),e.exports=i.locals||{}},function(e,t,n){(t=n(69)(!1)).push([e.i,".dvrp-button{color:#fff;width:32px;height:100%;cursor:pointer;padding:0 2px;opacity:.8;border:none;position:relative;background-color:rgba(0,0,0,0);transition:opacity .1s cubic-bezier(0, 0, 0.2, 1);font-size:14px;font-weight:400;min-height:32px;display:flex;justify-content:center;align-items:center;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;position:relative}.dvrp-button *{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.dvrp-button:hover{opacity:1}.dvrp-footer{position:absolute;bottom:0;left:0;right:0;padding:0 12px;color:#fff;margin:auto;opacity:0;transition:opacity .25s cubic-bezier(0, 0, 0.2, 1);z-index:3}.dvrp-footer._visible{opacity:1}.dvrp-footer .dvrp-controls{height:48px;line-height:48px;display:flex;flex-wrap:nowrap;justify-content:space-between}.dvrp-footer .dvrp-controls .dropDownWrapper{height:auto;width:auto}.dvrp-footer .dvrp-controls .dropDownWrapper .dvrp-button{height:100%}.dvrp-footer .dvrp-controls .dvrp-button{color:#fff;width:32px;height:100%;cursor:pointer;padding:0 2px;opacity:.8;border:none;position:relative;background-color:rgba(0,0,0,0);transition:opacity .1s cubic-bezier(0, 0, 0.2, 1);font-size:14px;font-weight:100}.dvrp-footer .dvrp-controls .dvrp-button:hover{opacity:1}.dvrp-footer .dvrp-controls .dvrp-left-controls{flex:1;order:1;display:flex;align-items:center}.dvrp-footer .dvrp-controls .dvrp-right-controls{order:2;display:flex;align-items:center}.dvrp-top{position:absolute;top:0;left:0;right:0;height:48px;padding:0 12px;opacity:0;z-index:3;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.dvrp-top *{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.dvrp-top._visible{opacity:1}.dvrp-top .dvrp-controls{height:48px;line-height:48px;display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-start}.dvrp-top .dvrp-controls .timeStamp{color:#fff;font-size:12px;font-style:normal;font-weight:500;line-height:19px;padding:0 6px;margin-right:12px;border-radius:4px;background:rgba(124,121,121,.3);backdrop-filter:blur(7.5px)}.dvrp-top .dvrp-controls .timeStamp>a{text-decoration:none;color:#fff}.dvrp-top .dvrp-controls .dvrp-button{margin-left:auto}",""]),e.exports=t},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.CameraArrow=void 0;var a=o(n(0));t.CameraArrow=function(e){var t=e.direction,n=e.Icon,r=e.onMove,i=T((0,a.useState)(!1),2),o=i[0],s=i[1],u=T((0,a.useState)(!1),2),c=u[0],l=u[1];(0,a.useEffect)((function(){if(o){var e=setInterval((function(){r(t),l(!0)}),500);return function(){return clearInterval(e)}}}),[o,t,r]);var f=function(){s(!0),l(!1)},d=function(){s(!1),c&&setTimeout((function(){return r(t,!0)}),0)};return a.default.createElement("button",{className:"ptzButton",onMouseDown:f,onMouseUp:d,onTouchStart:f,onTouchEnd:d,onClick:function(){o||c||r(t,!1,!0)},type:"button"},n)}},function(e,t,n){var r=n(68),i=n(1036);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{insert:"head",singleton:!1}),e.exports=i.locals||{}},function(e,t,n){(t=n(69)(!1)).push([e.i,"input[type='range'] {\n margin: 0;\n padding: 0;\n width: 100%;\n height: 15px;\n border-radius: 5px;\n outline: none;\n cursor: pointer;\n accent-color: rgba(87, 87, 90, 0.8);\n}\n\ninput[type='range']::-webkit-slider-thumb,\ninput[type='range']::-moz-range-thumb {\n appearance: none;\n width: 15px;\n height: 15px;\n border-radius: 50%;\n cursor: pointer;\n accent-color: rgba(87, 87, 90, 0.8);\n}\n\n.speedControl {\n margin-top: 10px;\n display: flex;\n}\n\n.speedControl > label {\n display: block;\n color: white;\n font-size: 13px;\n margin-right: 4px;\n}\n",""]),e.exports=t},function(e,t,n){var r=n(68),i=n(1038);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{insert:"head",singleton:!1}),e.exports=i.locals||{}},function(e,t,n){(t=n(69)(!1)).push([e.i,'body{margin:0}button i{pointer-events:none}button svg{pointer-events:none}button:focus{outline:none;box-shadow:none}.dvrContainer{position:relative;box-sizing:border-box;height:100%;width:100%;max-height:100%;max-width:100%;overflow:hidden;margin:0;font:14px "Helvetica Neue",Helvetica,Arial,sans-serif;font-family:"Fira Sans",sans-serif;font-weight:400;display:flex;flex-direction:column;-webkit-font-smoothing:subpixel-antialiased;background:#000;z-index:0}.dvrContainer .video-js{-webkit-filter:brightness(108.5%) blur(0);filter:brightness(108.5%) blur(0);max-height:100%;max-width:100%}.dvrContainer *{user-select:none;outline:none;box-sizing:border-box}.dvrContainer.noDvr .dvr-timeline{display:flex;flex:1}.dvrContainer .videoThumbnail{width:0;height:0}.dvrContainer .reconnect{position:absolute;top:60%;left:0;right:0;z-index:50;color:#fff;font-size:24px;text-align:center}.dvrContainer input:focus,.dvrContainer textarea:focus,.dvrContainer select:focus{outline:none}.dvrContainer #forPopup{z-index:50}.dvrContainer .playersContainer{display:flex;width:100%;min-height:100px;height:calc(100% - 97px);flex-wrap:wrap;background:#000;overflow:hidden;position:relative;transform:matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);z-index:1}.dvrContainer .playersContainer.ott{height:100%}.dvrContainer .playersContainer.large{height:100%}.dvrContainer .playersContainer .seekContainer{width:100%;height:auto;min-height:10%;bottom:0;left:0;overflow:hidden;position:absolute;z-index:49;user-select:none;pointer-events:none}.dvrContainer .playersContainer .seekContainer .buttonGroup{display:flex;width:100%;padding:16px;box-sizing:border-box;position:absolute;bottom:0;left:0;z-index:99}.dvrContainer .playersContainer .seekContainer .buttonGroup button{margin:0 8px;width:48px;height:48px;border-radius:48px;border:none;text-align:center;color:#fff;background:none;cursor:pointer;display:flex;justify-content:center;align-items:center;pointer-events:all}.dvrContainer .playersContainer .seekContainer .buttonGroup button:hover{background-color:#188451}.dvrContainer .playersContainer .seekContainer .buttonGroup div{margin:0 auto}.dvrContainer .arrow-effect{position:absolute;top:50%;font-size:2em;z-index:2;color:#fff;opacity:.8;transform:translateY(-50%);transition:opacity .3s ease-in-out}.dvrContainer .arrow-effect.left{left:10%}.dvrContainer .arrow-effect.right{right:10%}.dvrContainer .menuGroup{display:flex;align-items:center;width:100%;height:100%;padding-top:8px;row-gap:8px}.dvrContainer .menuGroup .separator{width:8px;height:24px;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dvrContainer .menuGroup.liveType{height:auto}.dvrContainer .menuGroup .volumeBlock{display:flex;flex-wrap:nowrap;position:relative}.dvrContainer .menuGroup .timeline__snapshotControl{display:inline-block}.dvrContainer .menuGroup .timeline__snapshotControl .btn{padding:4px 8px;height:32px}.dvrContainer .menuGroup .timeline__snapshotControl .btn:focus{outline:none}.dvrContainer .menuGroup .timeline__snapshotControl .btn .icon{height:24px;width:24px}.dvrContainer .menuGroup button{margin-bottom:0;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dvrContainer .menuGroup .btn{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dvrContainer .menuGroup .blanker{margin-left:auto;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dvrContainer .dvr-timeline{margin-bottom:0;margin-top:auto;transform:matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);z-index:1;display:block;position:relative;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.dvrContainer .dvr-timeline *{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.dvrContainer .dvr-timeline .selectionControls{position:absolute;width:100%;top:0;left:0;z-index:46}.dvrContainer .dvr-timeline .selectionControls .dvrSelector{display:flex;justify-content:center;align-items:center;cursor:pointer;position:absolute;top:35px;height:39px;width:16px;background:#5da4f9;z-index:43}.dvrContainer .dvr-timeline .selectionControls .dvrSelector.right{border-radius:0 4px 4px 0}.dvrContainer .dvr-timeline .selectionControls .dvrSelector.right>span{transform:rotate(180deg)}.dvrContainer .dvr-timeline .selectionControls .dvrSelector.left{border-radius:4px 0 0 4px;margin-left:-16px}.dvrContainer .dvr-timeline .selectionControls .dvrSelector>span{font-size:21px}.dvrContainer .dvr-timeline .selectionControls .selection_thumbnail{position:absolute;bottom:124px}.dvrContainer .dvr-timeline .selectionControls .selectionLength{position:absolute;overflow:hidden;top:35px;height:4px;text-align:center;color:#fff;background:#5da4f9;user-select:none;transition:height 150ms ease-in-out}.dvrContainer .dvr-timeline .selectionControls .selectionLength.second{top:70px}.dvrContainer .dvr-timeline .btn{background:#66666d;color:#fff;font-weight:400;padding:8px 10px;max-height:32px;border-radius:4px;border:none;cursor:pointer;min-width:32px;box-sizing:border-box;display:flex;justify-content:center;align-items:center}.dvrContainer .dvr-timeline .btn:hover{background-color:#6e6e75}.dvrContainer .dvr-timeline .btn:active{background-color:#58585f}.dvrContainer .dvr-timeline .btn.menu{padding:8px 0;margin-right:8px;margin-left:-6px;border-radius:0 8px 8px 0;min-width:25px;box-shadow:inset -2px 2px 2px 0px rgba(0,0,0,.15)}.dvrContainer .dvr-timeline .btn.menu i{margin-left:-1px}.dvrContainer .dvr-timeline .btn.menu:hover{background:#ffcc80}.dvrContainer .dvr-timeline .btn.menuHighlight{background:#1da664;height:48px;max-height:48px;width:48px;padding:0;margin:0;position:absolute;top:0;left:0;z-index:42}.dvrContainer .dvr-timeline .btn.menuHighlight:hover{background:#f0ad4e}.dvrContainer .dvr-timeline .recorded-ranges{height:16px;width:100%;cursor:pointer;display:block;position:relative}.dvrContainer .dvr-timeline .recorded-ranges .range-wrap{height:4px;width:100%;left:0;bottom:7px;background:#c5c5c5;position:absolute;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition:150ms ease-in-out}.dvrContainer .dvr-timeline .motion-wrap{height:4px;width:100%;top:12px;position:absolute;z-index:1000;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dvrContainer .dvr-timeline .icon{width:14px;height:16px;display:block}.dvrContainer .dvr-timeline .motion-wrap>div{position:absolute;height:100%;border-radius:5px}.dvrContainer .dvr-timeline .motion-wrap{position:absolute;height:100%;border-radius:5px}.dvrContainer .dvr-timeline .motion-wrap .tooltiptext{visibility:hidden;width:120px;background:#403f49;color:#fff;text-align:center;padding:5px 0;border-radius:6px;position:absolute;z-index:1;top:-49px;left:0;right:0;font-size:12px;margin:auto}.dvrContainer .dvr-timeline .motion-wrap div:hover .tooltiptext{visibility:visible}.dvrContainer .dvr-timeline .recorded-ranges .range-wrap div{position:absolute;height:100%}.dvrContainer .dvr-timeline .recorded-ranges .range,.dvrContainer .dvr-timeline .recorded-ranges .miss,.dvrContainer .dvr-timeline .recorded-ranges .hit{position:relative}.dvrContainer .dvr-timeline .recorded-ranges .range::before,.dvrContainer .dvr-timeline .recorded-ranges .miss::before,.dvrContainer .dvr-timeline .recorded-ranges .hit::before{content:"";position:absolute;top:-10px;bottom:-10px;left:0;right:0;z-index:-1}.dvrContainer .dvr-timeline .recorded-ranges .hit{background:#117c59;z-index:1}.dvrContainer .dvr-timeline .recorded-ranges .miss{background:#c11030;z-index:0}.dvrContainer .dvr-timeline .recorded-ranges .live{background:#6ba0de;z-index:2}.dvrContainer .dvr-timeline .recorded-ranges .motion{background:#f0ad4e;border:3px solid #f0ad4e;border-radius:4px;box-shadow:4px 2px 5px 1px rgba(0,0,0,.3411764706)}.dvrContainer .dvr-timeline .time-markers{display:block;position:relative;width:100%;height:33px;cursor:pointer;pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dvrContainer .dvr-timeline .time-markers span{font-size:12px;line-height:18px;letter-spacing:-0.078px;position:absolute;color:#fff;white-space:nowrap;transform:translateX(-50%);top:11px;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dvrContainer .dvr-timeline .time-markers span.day{top:11px;font-weight:500}.dvrContainer .dvr-timeline .time-markers span .marker{position:absolute;height:8px;top:19px;left:calc(50% - 1px);width:1px;background:rgba(255,255,255,.35)}.dvrContainer .dvr-timeline .time-markers span .marker.day{background-color:#ce8a13}.dvrContainer .dvr-timeline .dvr-marker-left,.dvrContainer .dvr-timeline .dvr-marker-right{cursor:e-resize;display:block;width:15px;height:26px;position:absolute;top:-15px;display:none}.dvrContainer .dvr-timeline .dvr-marker-left{left:0;height:70px;margin-left:0px}.dvrContainer .dvr-timeline .dvr-marker-left svg{margin:38px 0 0 -16px;transform:scale(-2, 2);-webkit-transform:scale(-2, 2)}.dvrContainer .dvr-timeline .dvr-marker-right{width:12px;height:70px}.dvrContainer .dvr-timeline .dvr-marker-right svg{margin:38px 0 0 4px;transform:scale(2, 2);-webkit-transform:scale(2, 2)}.dvrContainer .dvr-timeline .play-marker{width:10px;height:10px;background:#fff;opacity:.9;border-radius:5px;top:10px}.dvrContainer .dvr-timeline .progress-wrapper .progress-bar{position:absolute;float:none}.dvrContainer .dvr-timeline .progress-wrapper .progress-bar-success{background:#209a60}.dvrContainer .dvr-timeline .progress-wrapper .progress-bar-danger{background:#ce2738}.dvrContainer .dvr-timeline .progress-wrapper .progress-bar-info{background:#6ba0de}.dvrContainer .dvr-timeline.closed{width:48px;height:48px;border-radius:50%;margin:16px;overflow:hidden;box-shadow:2px 2px 3px 1px rgba(0,0,0,.45)}.dvrContainer #forOverlays{display:flex;justify-content:center;align-items:center}.dvrContainer .downloadBlock{position:absolute;bottom:130px;z-index:3;display:flex;justify-content:center;align-items:center;flex-wrap:nowrap;height:48px;max-height:48px;padding:12px;margin:0 16px;border-radius:6px;border:1px solid rgba(235,235,245,.1);background:#212329;box-sizing:border-box}.dvrContainer .downloadBlock button.download{height:32px;width:auto;background:none;border:0;padding:0;margin:0;display:flex;box-sizing:border-box;align-items:center;justify-content:center}.dvrContainer .downloadBlock button.download:hover a:hover{background:#24bf74}.dvrContainer .downloadBlock button.download a{width:100%;height:100%}.dvrContainer .downloadBlock a.download{min-width:auto}.dvrContainer .downloadBlock a.carret{position:relative;width:16px;min-width:auto;padding:8px 6px;background:#209c61;border-radius:0 4px 4px 0;border-left:1px solid #188451}.dvrContainer .downloadBlock a.carret:before{color:#fff;display:inline-block;width:0;height:0;margin-left:-2px;vertical-align:.255em;content:"";border-top:.3em solid;border-right:.3em solid rgba(0,0,0,0);border-bottom:0;border-left:.3em solid rgba(0,0,0,0)}.dvrContainer .downloadBlock a.carret div{position:absolute;bottom:30px;right:0;opacity:0;height:0;width:0;background:#56595e;box-shadow:2px 2px 2px 2px rgba(0,0,0,.2117647059);border-radius:2px;z-index:44}.dvrContainer .downloadBlock a.carret div ul{list-style-type:none;margin:0;padding:0}.dvrContainer .downloadBlock a.carret div ul li{padding:8px 12px;white-space:nowrap;text-align:left}.dvrContainer .downloadBlock a.carret div ul li:hover{background:#7e8186}.dvrContainer .downloadBlock a.carret:hover div{width:auto;height:auto;opacity:1}.dvrContainer .clear{width:100%;clear:both}.dvrContainer .btn{outline:none !important}.dvrContainer .dvr-player .failure-message{color:#c12e2a;padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee;margin-left:30px;margin-right:30px}.dvrContainer .dvr-player{height:100%}.dvrContainer .dvr-player-wrapper{display:block;width:100%;position:absolute;left:0;right:0;top:0}.dvrContainer .dvr-player-wrapper .no-live-wrapper{margin:0 auto}.dvrContainer .dvr-player-wrapper>div{margin:0 auto;max-width:100%;max-height:100%}.dvrContainer ::-webkit-scrollbar{width:12px;height:12px}.dvrContainer ::-webkit-scrollbar-track{background:rgba(0,0,0,0);border:none}.dvrContainer ::-webkit-scrollbar-thumb{background:rgba(0,0,0,.4);border:none}.dvrContainer .dvr-player-wrapper{display:block;justify-content:center;align-items:center;overflow:hidden;width:100%;position:absolute;left:0;right:0;top:0}.dvrContainer .dvr-player-wrapper:focus{outline:0}.dvrContainer .clickToPlay{display:flex;align-items:center;justify-content:center;width:160px;height:160px;opacity:.8;margin:auto;cursor:pointer}.dvrContainer .clickToPlay:hover{opacity:1}.dvrContainer .clickToPlay svg{fill:#fff}.dvrContainer .zIndexMax{z-index:999}.dvrContainer .clickToRestart{display:flex;align-items:center;justify-content:center;width:160px;height:160px;opacity:.8;margin:auto;cursor:pointer;z-index:10}.dvrContainer .clickToRestart:hover{opacity:1}.dvrContainer .clickToRestart span{font-size:136px;color:#fff}.dvrContainer .resetZoomBtn{position:absolute;padding:4px;margin:0;right:12px;top:calc(50% - 8px);width:32px;height:32px;border-radius:4px;border:none;cursor:pointer;background:#66666d;color:#fff;outline:none;z-index:49;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.dvrContainer .resetZoomBtn:hover{background:#209c61}.dvrContainer .zoomWrapper{max-height:100%;position:relative;height:100%;transition:150ms ease-in-out}.dvrContainer .flexTransform{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:center;justify-content:center}.dvrContainer .pause-wrapper{position:absolute;z-index:48;font-size:100px;font-weight:500;color:#fff;left:calc(50% - 30px);top:calc(50% - 50px)}.dvrContainer .no-live-wrapper{position:absolute;top:0;left:0;z-index:46;font-size:14px;color:#fff;width:100%;height:100%;text-align:center;display:flex;justify-content:center;align-items:center;flex-direction:column;pointer-events:none}.dvrContainer .no-live-wrapper p{margin-bottom:0}.dvrContainer .no-live-wrapper p:first-child{margin-top:0}.dvrContainer .btn--rightmost{border-top-left-radius:0 !important;border-bottom-left-radius:0 !important;border-left:1px solid rgba(255,255,255,.2) !important}.dvrContainer .btn--leftmost{border-top-right-radius:0 !important;border-bottom-right-radius:0 !important;border-right:1px solid rgba(0,0,0,.2) !important}.dvrContainer .timeline__timelineView{display:block;position:relative;overflow:hidden;width:100%;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dvrContainer .timeline__timelineView .line_wrapper{position:relative;transition:150ms ease-in-out}.dvrContainer .timeline__timelineView .line_wrapper.large{height:48px}.dvrContainer .timeline__timelineView .line_wrapper.large .recorded-ranges{height:100%}.dvrContainer .timeline__timelineView .line_wrapper.large .range-wrap{height:39px}.dvrContainer .timeline__timelineView .line_wrapper.large .motion-wrap{top:33px;height:12px;z-index:45}.dvrContainer .timeline__timelineView .line_wrapper.large .now-marker{top:2px}.dvrContainer .timeline__timelineView .line_wrapper.large .now-marker div{width:3px;height:39px;border-radius:4px}.dvrContainer .timeline__timelineView .line_wrapper .now-marker{position:absolute;top:calc(50% - 8px);transform:matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);z-index:6}.dvrContainer .timeline__timelineView .line_wrapper .now-marker div{position:absolute;z-index:5;height:14px;width:14px;margin-left:-7px;border-radius:50%;background:#fff;box-shadow:1px 1px 2px 2px rgba(0,0,0,.1450980392)}.dvrContainer .markers_wrapper{position:relative;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dvrContainer .timeline__zoomoutControl{display:inline-block;vertical-align:top}.dvrContainer .timeline__zoominControl{display:inline-block;vertical-align:top}.dvrContainer .timeline__seekLeftControl{display:inline-block;vertical-align:top}.dvrContainer .timeline__seekRightControl{display:inline-block;vertical-align:top}.dvrContainer .volume{width:100px;height:32px;background-color:#33323a;position:relative;border-radius:0 4px 4px 0;overflow:hidden;cursor:pointer}.dvrContainer .volume .volumePos{position:absolute;top:0;left:0;height:32px;background-color:#1da664;z-index:41}.dvrContainer .timeline__speedControls{display:flex;justify-content:center;align-items:center;flex-direction:row;flex-wrap:nowrap;border-radius:4px;width:auto;overflow:hidden;max-height:34px;white-space:nowrap;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.dvrContainer .timeline__speedControls>div{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.dvrContainer .timeline__speedControls.hidden{visibility:hidden;width:0;display:none}.dvrContainer .timeline__speedControls__slower{display:inline-block;vertical-align:middle;border-right-color:#282828 !important}.dvrContainer .timeline__speedControls__currentSpeed{display:inline-block;vertical-align:middle;width:40px;height:30px;line-height:30px;text-align:center;color:#fff;border-top:1px solid #282828;border-bottom:1px solid #605f69;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dvrContainer .timeline__speedControls__faster{display:inline-block;vertical-align:middle}.dvrContainer .timeline__perFrameSeek{display:flex;justify-content:center;align-items:center}.dvrContainer .timeline__perFrameSeek:hover{background-color:#188451 !important}.dvrContainer .timeline__perFrameSeek.enabled{background-color:#1da664}.dvrContainer .timeline__perFrameSeek i{pointer-events:none}.dvrContainer .timeline__perFrameSeek svg{pointer-events:none}.dvrContainer .timeline__timeControl{display:inline-block;vertical-align:top;padding:4px 15px;line-height:26px;color:#fff;background:#66666d;border-radius:4px;text-align:center;min-width:90px;box-sizing:border-box}.dvrContainer .timeline__timeControl__current{color:#fff;text-decoration:none}.dvrContainer .timeline__downloadControls{display:none}.dvrContainer .noDvr_message{color:#fff;margin-left:16px}.dvrContainer .live_message{color:#fff;margin-left:16px;padding:0;border:0;font-size:100%;vertical-align:baseline}.dvrContainer .live_message:before{content:"";display:inline-block;position:relative;width:7px;height:7px;border-radius:3.5px;margin-right:4px;background-color:#ff0101}.dvrContainer input[type=number]{-moz-appearance:textfield}.dvrContainer input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.dvrContainer input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.dvrContainer .timeline__snapshotControl{display:inline-block}.dvrContainer .timeline__calendarControl{display:flex;vertical-align:middle;line-height:12px;box-sizing:border-box;height:32px;padding:0 8px !important;cursor:pointer;overflow:hidden}.dvrContainer .timeline__calendar__current{display:flex;justify-content:end;align-items:center;padding:0 4px;user-select:none}.dvrContainer .timeline__calendar__current i{margin-right:4px;user-select:none}.dvrContainer .timeline__calendarContent{display:block;width:100%;overflow-x:auto;background-color:#504f59}.dvrContainer .timeline__calendarContent .calendar{display:flex;vertical-align:top;width:auto;padding-top:10px;background:#504f59;color:#fff;white-space:nowrap;position:absolute;top:0;bottom:0;z-index:50;padding:8px;width:100%;box-sizing:border-box;border-radius:8px;flex-direction:column;justify-content:center;align-content:center;align-items:center;user-select:none}.dvrContainer .timeline__calendarContent .calendar .month-selection{text-align:center}.dvrContainer .timeline__calendarContent .calendar .calendar_close{position:absolute;font-size:24px;right:-12px;top:-12px;background:#8a8698;border-radius:50%;width:24px;height:24px;text-align:center;line-height:19px;box-shadow:rgba(0,0,0,.4) 0px 1px 22.8px 2px;cursor:pointer;display:flex;justify-content:center;align-items:center;align-content:center}.dvrContainer .timeline__calendarContent .calendar .calendar_close:hover{background:#1da664}.dvrContainer .timeline__calendarContent .calendar .month-change{display:inline-block;vertical-align:top;width:72px;height:32px;line-height:36px;text-align:center;background-position:center center;background-repeat:no-repeat;cursor:pointer}.dvrContainer .timeline__calendarContent .calendar .month-change:active{background-color:rgba(255,255,255,.05)}.dvrContainer .timeline__calendarContent .calendar .month{display:inline-block;vertical-align:top;margin:8px 0;text-align:center;padding:0 24px;border-left:1px solid #56595e;border-right:1px solid #56595e}.dvrContainer .timeline__calendarContent .calendar .month .year{color:#a6a8aa;margin-left:8px}.dvrContainer .timeline__calendarContent .calendar .days{display:flex;vertical-align:top;width:100%;height:85%;max-height:85%;flex-direction:column;align-content:center;justify-content:center;align-items:stretch}.dvrContainer .timeline__calendarContent .calendar .day-names{height:54px;display:flex;flex-direction:row;align-items:center;justify-content:space-between}.dvrContainer .timeline__calendarContent .calendar .day-name{display:inline-block;vertical-align:top;width:100%;padding:6px 0;color:#1da664;text-align:center}.dvrContainer .timeline__calendarContent .calendar .day-entries{height:64px;display:flex;flex-direction:row;align-items:center;justify-content:space-between}.dvrContainer .timeline__calendarContent .calendar .day-entries:first-child{border-top:1px solid rgba(255,255,255,.15)}.dvrContainer .timeline__calendarContent .calendar .day-entries:nth-child(3){border-top:1px solid rgba(255,255,255,.15)}.dvrContainer .timeline__calendarContent .calendar .day-entry{display:flex;justify-content:center;align-items:center;width:100%;height:100%;text-align:center;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-left:1px solid rgba(255,255,255,.15);border-bottom:1px solid rgba(255,255,255,.15)}.dvrContainer .timeline__calendarContent .calendar .day-entry.available{background:#57b186;cursor:pointer}.dvrContainer .timeline__calendarContent .calendar .day-entry.available:hover{color:#fff;background:blue}.dvrContainer .timeline__calendarContent .calendar .day-entry:last-child{border-right:1px solid rgba(255,255,255,.15)}.dvrContainer .timeline__calendarContent .calendar .day-entry:hover{font-weight:500;color:#000;background:#fff}.dvrContainer .timeline__calendarContent .calendar .day-entry.other-month{color:gray}.dvrContainer .timeline__calendarContent .calendar .day-entry.current-day{background:green}.dvrContainer .timeline__calendarContent .calendar .day-entry.selected-day{background:blue}.dvrContainer .timeline__thumbnail{user-select:none;position:absolute;background:rgba(0,0,0,.4);z-index:48}.dvrContainer .timeline__thumbnail__image{user-select:none;display:block;position:relative;box-sizing:content-box;width:0;height:0}.dvrContainer .timeline__thumbnail__caption{white-space:nowrap;height:24px;line-height:24px;padding:0 6px;background-color:rgba(0,0,0,.5);border-top:1px solid rgba(0,0,0,.4);color:#fff;position:relative;width:auto;display:block}.dvrContainer .dvr-marker-drag{cursor:e-resize}.dvrContainer .dvr-marker-drag.locked{cursor:unset}.dvrContainer .dvr-marker-drag.locked svg path{fill:orange !important;stroke:orange !important}.dvrContainer .dvr-marker-drag .drag-tooltip{background:#fff;color:#000;padding:4px 6px;font-size:12px;border-radius:4px;position:absolute;top:0;left:-28px;z-index:42;opacity:0;transition:300ms ease-in-out;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dvrContainer .dvr-marker-drag .drag-tooltip.visible{opacity:1}@media only screen and (min-width: 240px)and (max-width: 960px){.dvrContainer .menuGroup{flex-wrap:wrap}}@media only screen and (min-device-width: 240px)and (max-device-width: 960px)and (orientation: portrait){.dvrContainer .dvr-timeline{box-sizing:border-box;max-width:100%;width:auto}.dvrContainer .dvr-timeline .time-markers span{font-size:10px}.dvrContainer .dvr-timeline .selectionControls{margin:auto -7px auto -7px;width:calc(100% + 14px)}.dvrContainer .dvr-timeline .timeline__timelineView{box-sizing:border-box;width:auto;max-width:calc(100% + 14px);margin:auto -7px auto -7px}.dvrContainer .dvr-timeline .menuGroup{flex-wrap:wrap;margin-bottom:8px}.dvrContainer .dvr-timeline .menuGroup .timeline__timeControl{margin-top:8px;margin-left:16px}.dvrContainer .dvr-timeline .menuGroup .btn{background:none}.dvrContainer .dvr-timeline .menuGroup .separator{width:2px}.dvrContainer .timeline__calendar__current{padding:0;text-align:center;justify-content:center}.dvrContainer .timeline__calendar__current i{text-align:center;margin-right:0}.dvrContainer .volumeBlock:hover .volume{height:100px}.dvrContainer .volumeBlock .volume{width:32px;height:0;position:absolute;bottom:100%;border-radius:4px}.dvrContainer .volumeBlock .volume .volumePos{height:100px;width:32px;bottom:0;top:unset}.dvrContainer .downloadBlock{padding:8px}}@media only screen and (max-device-width: 1024px)and (orientation: landscape){.dvrContainer .dvr-timeline{box-sizing:border-box;max-width:100%;width:auto}.dvrContainer .dvr-timeline .menuGroup button{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dvrContainer .dvr-timeline .menuGroup button i{font-size:10px;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.dvrContainer .volumeBlock:hover .volume{height:100px}.dvrContainer .volumeBlock .volume{width:32px;height:0;position:absolute;bottom:100%;border-radius:4px}.dvrContainer .volumeBlock .volume .volumePos{height:100px;width:32px;bottom:0;top:unset}}@media only screen and (min-device-width: 768px)and (max-device-width: 1024px)and (orientation: landscape){.dvrContainer .menuGroup .separator{width:4px}}@media only screen and (min-device-width: 768px)and (max-device-width: 1024px)and (orientation: portrait){.dvrContainer .menuGroup .separator{width:4px}}@media screen and (max-width: 480px){.dvrContainer .timeline__timeControl{padding:4px 8px;min-width:auto}.dvrContainer .volumeBlock:hover .volume{height:100px}.dvrContainer .volumeBlock .volume{width:32px;height:0;position:absolute;bottom:100%;border-radius:4px}.dvrContainer .volumeBlock .volume .volumePos{height:100px;width:32px;bottom:0;top:unset}}@media screen and (min-width: 480px){.dvrContainer .dvr-timeline .btn .dvr-timeline .btn.menu{margin-left:-14px}.dvrContainer .dvr-timeline .btn .dvr-timeline .btn.menuHighlight{background:#1da664;height:48px;max-height:48px;width:48px;padding:0;margin:0;position:absolute;top:0;left:0;z-index:41}.dvrContainer .dvr-timeline .btn .dvr-timeline .btn.menuHighlight:hover{background:#f0ad4e}.dvrContainer .timeline__timeControl{padding:4px 12px;min-width:auto}.dvrContainer .timeline__calendarControl{visibility:visible}.dvrContainer .timeline__calendarControl.inactive{visibility:hidden}.dvrContainer .timeline__calendar__current{padding:0}.dvrContainer .timeline__thumbnail{transform:none}.dvrContainer .timeline__thumbnail__image{height:160px}.dvrContainer .timeline__calendar__current{padding:0;text-align:center;justify-content:center}.dvrContainer .timeline__calendar__current i{text-align:center;margin-right:0}}@media screen and (min-width: 568px){.dvrContainer .dvr-timeline .btn.menu{margin-left:-8px}.dvrContainer .dvr-timeline .btn.menuHighlight{margin-left:0}}@media screen and (min-width: 720px){.dvrContainer .timeLineCursor{position:absolute;top:34px;width:1px;height:6px;background-color:orange;pointer-events:none}.dvrContainer .dvr-timeline .btn.menu{margin-left:-14px}.dvrContainer .dvr-timeline .btn.menu.menuHighlight{margin-left:0}.dvrContainer .timeline__timeControl{padding:4px 12px;min-width:auto}.dvrContainer .timeline__downloadControls{display:inline-block}.dvrContainer .timeline__calendar__current i{margin-right:4px}.dvrContainer .dvr-timeline .dvr-marker-left,.dvrContainer .dvr-timeline .dvr-marker-right{display:block}}@media screen and (max-width: 1280px){.dvrContainer .menuGroup .btn{padding:0 !important;text-align:center;display:flex;justify-content:center;align-items:center}.dvrContainer .menuGroup button{width:28px !important;height:28px !important;line-height:28px;min-width:28px}.dvrContainer .menuGroup button.download{background:#209c61 !important;border-radius:4px}.dvrContainer .menuGroup button i{display:flex;justify-content:center;align-items:center}.dvrContainer .menuGroup button i svg{width:12px !important;height:12px !important}.dvrContainer .menuGroup .timeline__speedControls{display:flex;height:28px;flex-wrap:nowrap;justify-content:center;align-items:center}.dvrContainer .menuGroup .timeline__calendarControl{height:28px;padding:0 2px !important}.dvrContainer .menuGroup .timeline__calendarControl i{width:20px !important;height:20px !important}.dvrContainer .menuGroup .timeline__calendarControl i svg{width:20px !important;height:20px !important}.dvrContainer .menuGroup .timeline__calendarControl span{font-size:10px}.dvrContainer .menuGroup .volumeBlock svg{width:20px !important;height:20px !important}.dvrContainer .menuGroup .volume{height:28px}.dvrContainer .menuGroup .share{height:28px}}@media screen and (min-width: 1000px){.dvrContainer .dvr-timeline .btn.menu{margin-left:-30px}.dvrContainer .dvr-timeline .btn.menuHighlight i{width:48px !important;margin-left:0}.dvrContainer button.btn{height:32px}.dvrContainer button.btn i{line-height:1;display:flex;align-items:center;justify-content:center}}.dvrContainer .spinnerThreeBounce{position:absolute;margin:0 auto;width:70px;text-align:center;z-index:48;left:0;right:0;margin-left:auto;margin-right:auto;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%)}.dvrContainer .bounce{width:18px;height:18px;background-color:#fff;border-radius:100%;display:inline-block;-webkit-animation-name:bouncedelay;animation-name:bouncedelay;-webkit-animation-duration:1.4s;animation-duration:1.4s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out;-webkit-animation-fill-mode:both;animation-fill-mode:both}@-webkit-keyframes bouncedelay{0%,80%,100%{-webkit-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes bouncedelay{0%,80%,100%{-webkit-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1);transform:scale(1)}}.dvrContainer .bounce1{-webkit-animation-delay:-0.32s;animation-delay:-0.32s}.dvrContainer .bounce2{-webkit-animation-delay:-0.16s;animation-delay:-0.16s}.dvrContainer .Loading{position:absolute;top:calc(50% - 10px);left:calc(50% - 35px);z-index:1;visibility:hidden}.dvrContainer .Loading.visible{visibility:visible}.dvrContainer .PlayerInstance{height:auto;position:relative;box-sizing:border-box;order:999;opacity:1}.dvrContainer .PlayerInstance.hidden{width:0 !important;height:0 !important;opacity:0}.dvrContainer .PlayerInstance.fullscreen{width:100% !important;height:100% !important}.dvrContainer .PlayerInstance .dvr-player-wrapper{bottom:0 !important;position:relative;height:100%;max-height:100%;box-sizing:border-box;z-index:0}.dvrContainer .timelineLoading{position:absolute;width:100%;height:100%;text-align:center;z-index:45}.dvrContainer .PlayerInstance .CameraName{position:absolute;top:8px;left:calc(50% - 50px);color:#fff;font-size:20px;z-index:46;background:rgba(0,0,0,.4901960784);padding:8px 16px;border-radius:4px;opacity:0}.dvrContainer .PlayerInstance:hover .CameraName{opacity:1}.dvrContainer .PlayerInstance.visible .CameraName{opacity:1}.dvrContainer .noData{height:auto;position:relative;box-sizing:border-box;display:flex;align-items:center;justify-content:center;color:#fff}.dvrContainer .noData .CameraName{position:absolute;top:8px;left:8px;color:#fff;font-size:20px;z-index:46;background:rgba(0,0,0,.4901960784);padding:8px 16px;border-radius:4px;opacity:0}.dvrContainer .noData:hover .CameraName{opacity:1}.dvrContainer .noDvr{color:#fff;font-size:16px;text-align:center;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;width:100%;z-index:48}.dvrContainer .mainPlayer{color:#fff;font-size:16px;text-align:center;position:absolute;right:8px;top:8px;z-index:40}.dvrContainer .mainPlayer>span{font-size:24px;margin-right:4px;vertical-align:middle;color:#1da664}.dvrContainer .rangesLoading{position:absolute;z-index:48;left:8px;bottom:2px;color:#fff;opacity:0}.dvrContainer .rangesLoading.visible{opacity:1}.dvrContainer .rangesLoading span{margin-right:4px;color:red}.dvrContainer .flashingPopup{color:#fff;background:rgba(0,0,0,.45);padding:8px 12px;border-radius:8px;position:absolute;bottom:20%;left:0;right:0;text-align:center;max-width:200px;margin:0 auto;z-index:20}.dvrContainer #forClearout{z-index:0}.dvrContainer .ptzButton{cursor:pointer;font-size:9px;border-radius:5px;display:flex;justify-content:center;align-items:center;border:none;color:#fff;width:36px;height:36px;background:rgba(87,87,90,.8)}.dvrContainer .ptzButton:hover{background:rgba(87,87,90,.9)}.dvrContainer .ptzWrapper{position:absolute;width:120px;right:4px;top:12px;z-index:1}@media(min-width: 768px){.dvrContainer .ptzWrapper{top:40px}}.dvrContainer .ptzNavigation{display:flex;flex-wrap:wrap}.dvrContainer .ptzNavigation>div{margin:2px}.dvrContainer .ptzZoom{margin:0 10px 10px;display:flex;justify-content:space-between}.live-player-volume-animation-mask{stroke:#000;stroke-opacity:.15;stroke-width:2px;fill:none}.motionTooltip p{margin:0}.motionTooltip h2{margin:0;font-size:11px}.testTimeline{width:100%;height:36px;margin-bottom:16px}.testTimeline .track{width:100%;background:#18181b;height:16px;border-radius:4px;position:relative;overflow:hidden}.testTimeline .track .buffered{position:absolute;background:#1da664;height:16px;top:0;z-index:2}.testTimeline .track .hoverMarker{position:absolute;background:#ff0101;width:3px;height:16px;top:0;z-index:3}.testTimeline .track .nowMarker{position:absolute;background:#fff;width:2px;height:16px;top:0;z-index:2}.testTimeline .time{color:#fff;float:right;margin-bottom:4px}',""]),e.exports=t},function(e,t,n){var r=n(68),i=n(1040);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]),r(i,{insert:"head",singleton:!1}),e.exports=i.locals||{}},function(e,t,n){var r=n(69),i=n(1041),o=n(1042),a=n(1043),s=n(1044),u=n(1045);t=r(!1);var c=i(o),l=i(o,{hash:"#iefix"}),f=i(a),d=i(s),p=i(u);t.push([e.i,"@font-face {\n font-family: 'icomoon';\n src: url("+c+");\n src: url("+l+") format('embedded-opentype'),\n url("+f+") format('truetype'),\n url("+d+") format('woff');\n font-weight: normal;\n font-style: normal;\n font-display: block;\n}\n\n[class^='icon-'],\n[class*=' icon-'] {\n /* use !important to prevent issues with browser extensions that change fonts */\n font-family: 'icomoon' !important;\n speak: never;\n font-style: normal;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n\n /* Better Font Rendering =========== */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n@font-face {\n font-family: \"Material Symbols Outlined\";\n font-style: normal;\n font-weight: 100 700;\n font-display: block;\n src: url("+p+") format(\"woff2\");\n}\n.material-symbols-outlined {\n font-family: \"Material Symbols Outlined\";\n font-weight: normal;\n font-style: normal;\n font-size: 24px;\n line-height: 1;\n letter-spacing: normal;\n text-transform: none;\n display: inline-block;\n white-space: nowrap;\n word-wrap: normal;\n direction: ltr;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-rendering: optimizeLegibility;\n font-feature-settings: \"liga\";\n}\n\n.icon-timelapse:before {\n content: '\\e900';\n}\n.icon-arrow_player:before {\n content: '\\e901';\n}\n.icon-audio_streams:before {\n content: '\\e902';\n}\n.icon-back:before {\n content: '\\e903';\n}\n.icon-bitrate_streams:before {\n content: '\\e904';\n}\n.icon-clients:before {\n content: '\\e905';\n}\n.icon-close:before {\n content: '\\e906';\n}\n.icon-copy_embed:before {\n content: '\\e907';\n}\n.icon-date_player:before {\n content: '\\e908';\n}\n.icon-date_two_player:before {\n content: '\\e909';\n}\n.icon-down:before {\n content: '\\e90a';\n}\n.icon-export_player:before {\n content: '\\e90b';\n}\n.icon-export:before {\n content: '\\e90c';\n}\n.icon-full:before {\n content: '\\e90d';\n}\n.icon-hd:before {\n content: '\\e90e';\n}\n.icon-info_player:before {\n content: '\\e90f';\n}\n.icon-not_working_player:before {\n content: '\\e910';\n}\n.icon-one:before {\n content: '\\e911';\n}\n.icon-pause_player:before {\n content: '\\e912';\n}\n.icon-play_player:before {\n content: '\\e913';\n}\n.icon-screen_player:before {\n content: '\\e914';\n}\n.icon-screen:before {\n content: '\\e915';\n}\n.icon-settings_player:before {\n content: '\\e916';\n}\n.icon-share_player:before {\n content: '\\e917';\n}\n.icon-sound_0:before {\n content: '\\e918';\n}\n.icon-sound_1:before {\n content: '\\e919';\n}\n.icon-speed:before {\n content: '\\e91a';\n}\n.icon-subtitles_player:before {\n content: '\\e91b';\n}\n.icon-track_player:before {\n content: '\\e91c';\n}\n.icon-url:before {\n content: '\\e91d';\n}\n.icon-video:before {\n content: '\\e91e';\n}\n.icon-volume_off:before {\n content: '\\e91f';\n}\n.icon-volume_two:before {\n content: '\\e920';\n}\n.icon-volume:before {\n content: '\\e921';\n}\n",""]),e.exports=t},function(e,t,n){"use strict";e.exports=function(e,t){return t||(t={}),"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},function(e,t,n){"use strict";n.r(t),t.default=n.p+"70a2619575920ff5f3e768452466040b.eot"},function(e,t,n){"use strict";n.r(t),t.default=n.p+"d06a9185c1632b7a9a255a25bb9f901d.ttf"},function(e,t,n){"use strict";n.r(t),t.default=n.p+"46d10a04f3c077bc6f511a1f17e4108c.woff"},function(e,t,n){"use strict";n.r(t),t.default=n.p+"bd6b4a7bfe5141f1366f23bc48a9d006.woff2"},function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"FunctionToString",(function(){return C})),n.d(r,"InboundFilters",(function(){return Y}));var i,o,s=n(31),f=n.n(s),d=n(32),p=n.n(d),h=n(6),v=n.n(h),b=(n(466),n(943),n(944),n(0)),w=n.n(b),S=n(113),k=n.n(S),E=n(3),j=n(75),C=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){i=Function.prototype.toString,Function.prototype.toString=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object(j.f)(this)||this;return i.apply(n,e)}},e.id="FunctionToString",e}(),A="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,P=n(55),M=Object(P.a)(),R=["debug","info","warn","error","log","assert"];function D(e){var t=Object(P.a)();if(!("console"in t))return e();var n=t.console,r={};R.forEach((function(e){var i=n[e]&&n[e].__sentry_original__;e in t.console&&i&&(r[e]=n[e],n[e]=i)}));try{return e()}finally{Object.keys(r).forEach((function(e){n[e]=r[e]}))}}function L(){var e=!1,t={enable:function(){e=!0},disable:function(){e=!1}};return A?R.forEach((function(n){t[n]=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];e&&D((function(){var e;(e=M.console)[n].apply(e,Object(E.d)(["Sentry Logger ["+n+"]:"],t))}))}})):R.forEach((function(e){t[e]=function(){}})),t}o=A?Object(P.b)("logger",L):L();var N=n(133);function F(){var e=Object(P.a)(),t=e.crypto||e.msCrypto;if(void 0!==t&&t.getRandomValues){var n=new Uint16Array(8);t.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function B(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],relative:t[5]+n+r}}function U(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function z(e){var t=e.message,n=e.event_id;if(t)return t;var r=U(e);return r?r.type&&r.value?r.type+": "+r.value:r.type||r.value||n||"<unknown>":n||"<unknown>"}function V(e,t,n){var r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function H(e,t){var n=U(e);if(n){var r=n.mechanism;if(n.mechanism=Object(E.a)(Object(E.a)(Object(E.a)({},{type:"generic",handled:!0}),r),t),t&&"data"in t){var i=Object(E.a)(Object(E.a)({},r&&r.data),t.data);n.mechanism.data=i}}}function W(e){if(e&&e.__sentry_captured__)return!0;try{Object(j.a)(e,"__sentry_captured__",!0)}catch(e){}return!1}var q="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,G=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],Y=function(){function e(t){void 0===t&&(t={}),this._options=t,this.name=e.id}return e.prototype.setupOnce=function(t,n){t((function(t){var r=n();if(r){var i=r.getIntegration(e);if(i){var a=r.getClient(),s=a?a.getOptions():{};return function(e,t){return t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(q&&o.warn("Event dropped due to being internal Sentry Error.\nEvent: "+z(e)),!0):function(e,t){return!(!t||!t.length)&&function(e){if(e.message)return[e.message];if(e.exception)try{var t=e.exception.values&&e.exception.values[0]||{},n=t.type,r=void 0===n?"":n,i=t.value,a=void 0===i?"":i;return[""+a,r+": "+a]}catch(t){return q&&o.error("Cannot extract message for event "+z(e)),[]}return[]}(e).some((function(e){return t.some((function(t){return Object(N.a)(e,t)}))}))}(e,t.ignoreErrors)?(q&&o.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: "+z(e)),!0):function(e,t){if(!t||!t.length)return!1;var n=$(e);return!!n&&t.some((function(e){return Object(N.a)(n,e)}))}(e,t.denyUrls)?(q&&o.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: "+z(e)+".\nUrl: "+$(e)),!0):!function(e,t){if(!t||!t.length)return!0;var n=$(e);return!n||t.some((function(e){return Object(N.a)(n,e)}))}(e,t.allowUrls)&&(q&&o.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+z(e)+".\nUrl: "+$(e)),!0)}(t,function(e,t){return void 0===e&&(e={}),void 0===t&&(t={}),{allowUrls:Object(E.d)(e.whitelistUrls||[],e.allowUrls||[],t.whitelistUrls||[],t.allowUrls||[]),denyUrls:Object(E.d)(e.blacklistUrls||[],e.denyUrls||[],t.blacklistUrls||[],t.denyUrls||[]),ignoreErrors:Object(E.d)(e.ignoreErrors||[],t.ignoreErrors||[],G),ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(i._options,s))?null:t}}return t}))},e.id="InboundFilters",e}();function K(e){void 0===e&&(e=[]);for(var t=e.length-1;t>=0;t--){var n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}function $(e){try{if(e.stacktrace)return K(e.stacktrace.frames);var t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?K(t):null}catch(t){return q&&o.error("Cannot extract url for event "+z(e)),null}}var X=n(456),Q=n(172),Z="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,J=n(35);function ee(e){return new ne((function(t){t(e)}))}function te(e){return new ne((function(t,n){n(e)}))}var ne=function(){function e(e){var t=this;this._state=0,this._handlers=[],this._resolve=function(e){t._setResult(1,e)},this._reject=function(e){t._setResult(2,e)},this._setResult=function(e,n){0===t._state&&(Object(J.n)(n)?n.then(t._resolve,t._reject):(t._state=e,t._value=n,t._executeHandlers()))},this._executeHandlers=function(){if(0!==t._state){var e=t._handlers.slice();t._handlers=[],e.forEach((function(e){e[0]||(1===t._state&&e[1](t._value),2===t._state&&e[2](t._value),e[0]=!0)}))}};try{e(this._resolve,this._reject)}catch(e){this._reject(e)}}return e.prototype.then=function(t,n){var r=this;return new e((function(e,i){r._handlers.push([!1,function(n){if(t)try{e(t(n))}catch(e){i(e)}else e(n)},function(t){if(n)try{e(n(t))}catch(e){i(e)}else i(t)}]),r._executeHandlers()}))},e.prototype.catch=function(e){return this.then((function(e){return e}),e)},e.prototype.finally=function(t){var n=this;return new e((function(e,r){var i,o;return n.then((function(e){o=!1,i=e,t&&t()}),(function(e){o=!0,i=e,t&&t()})).then((function(){o?r(i):e(i)}))}))},e}(),re=function(){function e(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}return e.clone=function(t){var n=new e;return t&&(n._breadcrumbs=Object(E.d)(t._breadcrumbs),n._tags=Object(E.a)({},t._tags),n._extra=Object(E.a)({},t._extra),n._contexts=Object(E.a)({},t._contexts),n._user=t._user,n._level=t._level,n._span=t._span,n._session=t._session,n._transactionName=t._transactionName,n._fingerprint=t._fingerprint,n._eventProcessors=Object(E.d)(t._eventProcessors),n._requestSession=t._requestSession),n},e.prototype.addScopeListener=function(e){this._scopeListeners.push(e)},e.prototype.addEventProcessor=function(e){return this._eventProcessors.push(e),this},e.prototype.setUser=function(e){return this._user=e||{},this._session&&this._session.update({user:e}),this._notifyScopeListeners(),this},e.prototype.getUser=function(){return this._user},e.prototype.getRequestSession=function(){return this._requestSession},e.prototype.setRequestSession=function(e){return this._requestSession=e,this},e.prototype.setTags=function(e){return this._tags=Object(E.a)(Object(E.a)({},this._tags),e),this._notifyScopeListeners(),this},e.prototype.setTag=function(e,t){var n;return this._tags=Object(E.a)(Object(E.a)({},this._tags),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setExtras=function(e){return this._extra=Object(E.a)(Object(E.a)({},this._extra),e),this._notifyScopeListeners(),this},e.prototype.setExtra=function(e,t){var n;return this._extra=Object(E.a)(Object(E.a)({},this._extra),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setFingerprint=function(e){return this._fingerprint=e,this._notifyScopeListeners(),this},e.prototype.setLevel=function(e){return this._level=e,this._notifyScopeListeners(),this},e.prototype.setTransactionName=function(e){return this._transactionName=e,this._notifyScopeListeners(),this},e.prototype.setTransaction=function(e){return this.setTransactionName(e)},e.prototype.setContext=function(e,t){var n;return null===t?delete this._contexts[e]:this._contexts=Object(E.a)(Object(E.a)({},this._contexts),((n={})[e]=t,n)),this._notifyScopeListeners(),this},e.prototype.setSpan=function(e){return this._span=e,this._notifyScopeListeners(),this},e.prototype.getSpan=function(){return this._span},e.prototype.getTransaction=function(){var e=this.getSpan();return e&&e.transaction},e.prototype.setSession=function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this},e.prototype.getSession=function(){return this._session},e.prototype.update=function(t){if(!t)return this;if("function"==typeof t){var n=t(this);return n instanceof e?n:this}return t instanceof e?(this._tags=Object(E.a)(Object(E.a)({},this._tags),t._tags),this._extra=Object(E.a)(Object(E.a)({},this._extra),t._extra),this._contexts=Object(E.a)(Object(E.a)({},this._contexts),t._contexts),t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession)):Object(J.i)(t)&&(t=t,this._tags=Object(E.a)(Object(E.a)({},this._tags),t.tags),this._extra=Object(E.a)(Object(E.a)({},this._extra),t.extra),this._contexts=Object(E.a)(Object(E.a)({},this._contexts),t.contexts),t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession)),this},e.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},e.prototype.addBreadcrumb=function(e,t){var n="number"==typeof t?Math.min(t,100):100;if(n<=0)return this;var r=Object(E.a)({timestamp:Object(X.a)()},e);return this._breadcrumbs=Object(E.d)(this._breadcrumbs,[r]).slice(-n),this._notifyScopeListeners(),this},e.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},e.prototype.applyToEvent=function(e,t){if(this._extra&&Object.keys(this._extra).length&&(e.extra=Object(E.a)(Object(E.a)({},this._extra),e.extra)),this._tags&&Object.keys(this._tags).length&&(e.tags=Object(E.a)(Object(E.a)({},this._tags),e.tags)),this._user&&Object.keys(this._user).length&&(e.user=Object(E.a)(Object(E.a)({},this._user),e.user)),this._contexts&&Object.keys(this._contexts).length&&(e.contexts=Object(E.a)(Object(E.a)({},this._contexts),e.contexts)),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts=Object(E.a)({trace:this._span.getTraceContext()},e.contexts);var n=this._span.transaction&&this._span.transaction.name;n&&(e.tags=Object(E.a)({transaction:n},e.tags))}return this._applyFingerprint(e),e.breadcrumbs=Object(E.d)(e.breadcrumbs||[],this._breadcrumbs),e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata=this._sdkProcessingMetadata,this._notifyEventProcessors(Object(E.d)(ie(),this._eventProcessors),e,t)},e.prototype.setSDKProcessingMetadata=function(e){return this._sdkProcessingMetadata=Object(E.a)(Object(E.a)({},this._sdkProcessingMetadata),e),this},e.prototype._notifyEventProcessors=function(e,t,n,r){var i=this;return void 0===r&&(r=0),new ne((function(o,a){var s=e[r];if(null===t||"function"!=typeof s)o(t);else{var u=s(Object(E.a)({},t),n);Object(J.n)(u)?u.then((function(t){return i._notifyEventProcessors(e,t,n,r+1).then(o)})).then(null,a):i._notifyEventProcessors(e,u,n,r+1).then(o).then(null,a)}}))},e.prototype._notifyScopeListeners=function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(t){t(e)})),this._notifyingListeners=!1)},e.prototype._applyFingerprint=function(e){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint},e}();function ie(){return Object(P.b)("globalEventProcessors",(function(){return[]}))}function oe(e){ie().push(e)}var ae=function(){function e(e){this.errors=0,this.sid=F(),this.duration=0,this.status="ok",this.init=!0,this.ignoreDuration=!1;var t=Object(X.b)();this.timestamp=t,this.started=t,e&&this.update(e)}return e.prototype.update=function(e){if(void 0===e&&(e={}),e.user&&(!this.ipAddress&&e.user.ip_address&&(this.ipAddress=e.user.ip_address),this.did||e.did||(this.did=e.user.id||e.user.email||e.user.username)),this.timestamp=e.timestamp||Object(X.b)(),e.ignoreDuration&&(this.ignoreDuration=e.ignoreDuration),e.sid&&(this.sid=32===e.sid.length?e.sid:F()),void 0!==e.init&&(this.init=e.init),!this.did&&e.did&&(this.did=""+e.did),"number"==typeof e.started&&(this.started=e.started),this.ignoreDuration)this.duration=void 0;else if("number"==typeof e.duration)this.duration=e.duration;else{var t=this.timestamp-this.started;this.duration=t>=0?t:0}e.release&&(this.release=e.release),e.environment&&(this.environment=e.environment),!this.ipAddress&&e.ipAddress&&(this.ipAddress=e.ipAddress),!this.userAgent&&e.userAgent&&(this.userAgent=e.userAgent),"number"==typeof e.errors&&(this.errors=e.errors),e.status&&(this.status=e.status)},e.prototype.close=function(e){e?this.update({status:e}):"ok"===this.status?this.update({status:"exited"}):this.update()},e.prototype.toJSON=function(){return Object(j.c)({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:{release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent}})},e}(),se=function(){function e(e,t,n){void 0===t&&(t=new re),void 0===n&&(n=4),this._version=n,this._stack=[{}],this.getStackTop().scope=t,e&&this.bindClient(e)}return e.prototype.isOlderThan=function(e){return this._version<e},e.prototype.bindClient=function(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()},e.prototype.pushScope=function(){var e=re.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e},e.prototype.popScope=function(){return!(this.getStack().length<=1||!this.getStack().pop())},e.prototype.withScope=function(e){var t=this.pushScope();try{e(t)}finally{this.popScope()}},e.prototype.getClient=function(){return this.getStackTop().client},e.prototype.getScope=function(){return this.getStackTop().scope},e.prototype.getStack=function(){return this._stack},e.prototype.getStackTop=function(){return this._stack[this._stack.length-1]},e.prototype.captureException=function(e,t){var n=this._lastEventId=t&&t.event_id?t.event_id:F(),r=t;if(!t){var i=void 0;try{throw new Error("Sentry syntheticException")}catch(e){i=e}r={originalException:e,syntheticException:i}}return this._invokeClient("captureException",e,Object(E.a)(Object(E.a)({},r),{event_id:n})),n},e.prototype.captureMessage=function(e,t,n){var r=this._lastEventId=n&&n.event_id?n.event_id:F(),i=n;if(!n){var o=void 0;try{throw new Error(e)}catch(e){o=e}i={originalException:e,syntheticException:o}}return this._invokeClient("captureMessage",e,t,Object(E.a)(Object(E.a)({},i),{event_id:r})),r},e.prototype.captureEvent=function(e,t){var n=t&&t.event_id?t.event_id:F();return"transaction"!==e.type&&(this._lastEventId=n),this._invokeClient("captureEvent",e,Object(E.a)(Object(E.a)({},t),{event_id:n})),n},e.prototype.lastEventId=function(){return this._lastEventId},e.prototype.addBreadcrumb=function(e,t){var n=this.getStackTop(),r=n.scope,i=n.client;if(r&&i){var o=i.getOptions&&i.getOptions()||{},a=o.beforeBreadcrumb,s=void 0===a?null:a,u=o.maxBreadcrumbs,c=void 0===u?100:u;if(!(c<=0)){var l=Object(X.a)(),f=Object(E.a)({timestamp:l},e),d=s?D((function(){return s(f,t)})):f;null!==d&&r.addBreadcrumb(d,c)}}},e.prototype.setUser=function(e){var t=this.getScope();t&&t.setUser(e)},e.prototype.setTags=function(e){var t=this.getScope();t&&t.setTags(e)},e.prototype.setExtras=function(e){var t=this.getScope();t&&t.setExtras(e)},e.prototype.setTag=function(e,t){var n=this.getScope();n&&n.setTag(e,t)},e.prototype.setExtra=function(e,t){var n=this.getScope();n&&n.setExtra(e,t)},e.prototype.setContext=function(e,t){var n=this.getScope();n&&n.setContext(e,t)},e.prototype.configureScope=function(e){var t=this.getStackTop(),n=t.scope,r=t.client;n&&r&&e(n)},e.prototype.run=function(e){var t=ce(this);try{e(this)}finally{ce(t)}},e.prototype.getIntegration=function(e){var t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(t){return Z&&o.warn("Cannot retrieve integration "+e.id+" from the current Hub"),null}},e.prototype.startSpan=function(e){return this._callExtensionMethod("startSpan",e)},e.prototype.startTransaction=function(e,t){return this._callExtensionMethod("startTransaction",e,t)},e.prototype.traceHeaders=function(){return this._callExtensionMethod("traceHeaders")},e.prototype.captureSession=function(e){if(void 0===e&&(e=!1),e)return this.endSession();this._sendSessionUpdate()},e.prototype.endSession=function(){var e=this.getStackTop(),t=e&&e.scope,n=t&&t.getSession();n&&n.close(),this._sendSessionUpdate(),t&&t.setSession()},e.prototype.startSession=function(e){var t=this.getStackTop(),n=t.scope,r=t.client,i=r&&r.getOptions()||{},o=i.release,a=i.environment,s=(Object(P.a)().navigator||{}).userAgent,u=new ae(Object(E.a)(Object(E.a)(Object(E.a)({release:o,environment:a},n&&{user:n.getUser()}),s&&{userAgent:s}),e));if(n){var c=n.getSession&&n.getSession();c&&"ok"===c.status&&c.update({status:"exited"}),this.endSession(),n.setSession(u)}return u},e.prototype._sendSessionUpdate=function(){var e=this.getStackTop(),t=e.scope,n=e.client;if(t){var r=t.getSession&&t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}},e.prototype._invokeClient=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=this.getStackTop(),o=i.scope,a=i.client;a&&a[e]&&(t=a)[e].apply(t,Object(E.d)(n,[o]))},e.prototype._callExtensionMethod=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=ue(),i=r.__SENTRY__;if(i&&i.extensions&&"function"==typeof i.extensions[e])return i.extensions[e].apply(this,t);Z&&o.warn("Extension method "+e+" couldn't be found, doing nothing.")},e}();function ue(){var e=Object(P.a)();return e.__SENTRY__=e.__SENTRY__||{extensions:{},hub:void 0},e}function ce(e){var t=ue(),n=de(t);return pe(t,e),n}function le(){var e=ue();return fe(e)&&!de(e).isOlderThan(4)||pe(e,new se),Object(Q.b)()?function(e){try{var t=ue().__SENTRY__,n=t&&t.extensions&&t.extensions.domain&&t.extensions.domain.active;if(!n)return de(e);if(!fe(n)||de(n).isOlderThan(4)){var r=de(e).getStackTop();pe(n,new se(r.client,re.clone(r.scope)))}return de(n)}catch(t){return de(e)}}(e):de(e)}function fe(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function de(e){return Object(P.b)("hub",(function(){return new se}),e)}function pe(e,t){return!!e&&((e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0)}var he=n(223);function ve(){if(!("fetch"in Object(P.a)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(e){return!1}}function ge(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function me(){if(!ve())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(e){return!1}}var ye,be,xe,we=Object(P.a)(),_e={},Se={};function Oe(e,t){_e[e]=_e[e]||[],_e[e].push(t),function(e){if(!Se[e])switch(Se[e]=!0,e){case"console":"console"in we&&R.forEach((function(e){e in we.console&&Object(j.e)(we.console,e,(function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];ke("console",{args:n,level:e}),t&&t.apply(we.console,n)}}))}));break;case"dom":!function(){if("document"in we){var e=ke.bind(null,"dom"),t=Te(e,!0);we.document.addEventListener("click",t,!1),we.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((function(t){var n=we[t]&&we[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Object(j.e)(n,"addEventListener",(function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{var o=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},a=o[n]=o[n]||{refCount:0};if(!a.handler){var s=Te(e);a.handler=s,t.call(this,n,s,i)}a.refCount+=1}catch(e){}return t.call(this,n,r,i)}})),Object(j.e)(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{var i=this.__sentry_instrumentation_handlers__||{},o=i[t];o&&(o.refCount-=1,o.refCount<=0&&(e.call(this,t,o.handler,r),o.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}}();break;case"xhr":!function(){if("XMLHttpRequest"in we){var e=XMLHttpRequest.prototype;Object(j.e)(e,"open",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this,i=t[1],o=r.__sentry_xhr__={method:Object(J.l)(t[0])?t[0].toUpperCase():t[0],url:t[1]};Object(J.l)(i)&&"POST"===o.method&&i.match(/sentry_key/)&&(r.__sentry_own_request__=!0);var a=function(){if(4===r.readyState){try{o.status_code=r.status}catch(e){}ke("xhr",{args:t,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:r})}};return"onreadystatechange"in r&&"function"==typeof r.onreadystatechange?Object(j.e)(r,"onreadystatechange",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return a(),e.apply(r,t)}})):r.addEventListener("readystatechange",a),e.apply(r,t)}})),Object(j.e)(e,"send",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return this.__sentry_xhr__&&void 0!==t[0]&&(this.__sentry_xhr__.body=t[0]),ke("xhr",{args:t,startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}}();break;case"fetch":(function(){if(!ve())return!1;var e=Object(P.a)();if(ge(e.fetch))return!0;var t=!1,n=e.document;if(n&&"function"==typeof n.createElement)try{var r=n.createElement("iframe");r.hidden=!0,n.head.appendChild(r),r.contentWindow&&r.contentWindow.fetch&&(t=ge(r.contentWindow.fetch)),n.head.removeChild(r)}catch(e){A&&o.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return t})()&&Object(j.e)(we,"fetch",(function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r={args:t,fetchData:{method:Ee(t),url:je(t)},startTimestamp:Date.now()};return ke("fetch",Object(E.a)({},r)),e.apply(we,t).then((function(e){return ke("fetch",Object(E.a)(Object(E.a)({},r),{endTimestamp:Date.now(),response:e})),e}),(function(e){throw ke("fetch",Object(E.a)(Object(E.a)({},r),{endTimestamp:Date.now(),error:e})),e}))}}));break;case"history":!function(){if(n=(t=(e=Object(P.a)()).chrome)&&t.app&&t.app.runtime,r="history"in e&&!!e.history.pushState&&!!e.history.replaceState,!n&&r){var e,t,n,r,i=we.onpopstate;we.onpopstate=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=we.location.href,r=ye;if(ye=n,ke("history",{from:r,to:n}),i)try{return i.apply(this,e)}catch(e){}},Object(j.e)(we.history,"pushState",o),Object(j.e)(we.history,"replaceState",o)}function o(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.length>2?t[2]:void 0;if(r){var i=ye,o=String(r);ye=o,ke("history",{from:i,to:o})}return e.apply(this,t)}}}();break;case"error":Ce=we.onerror,we.onerror=function(e,t,n,r,i){return ke("error",{column:r,error:i,line:n,msg:e,url:t}),!!Ce&&Ce.apply(this,arguments)};break;case"unhandledrejection":Ae=we.onunhandledrejection,we.onunhandledrejection=function(e){return ke("unhandledrejection",e),!Ae||Ae.apply(this,arguments)};break;default:A&&o.warn("unknown instrumentation type:",e)}}(e)}function ke(e,t){var n,r;if(e&&_e[e])try{for(var i=Object(E.e)(_e[e]||[]),a=i.next();!a.done;a=i.next()){var s=a.value;try{s(t)}catch(t){A&&o.error("Error while triggering instrumentation handler.\nType: "+e+"\nName: "+Object(he.b)(s)+"\nError:",t)}}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}function Ee(e){return void 0===e&&(e=[]),"Request"in we&&Object(J.g)(e[0],Request)&&e[0].method?String(e[0].method).toUpperCase():e[1]&&e[1].method?String(e[1].method).toUpperCase():"GET"}function je(e){return void 0===e&&(e=[]),"string"==typeof e[0]?e[0]:"Request"in we&&Object(J.g)(e[0],Request)?e[0].url:String(e[0])}function Te(e,t){return void 0===t&&(t=!1),function(n){if(n&&xe!==n&&!function(e){if("keypress"!==e.type)return!1;try{var t=e.target;if(!t||!t.tagName)return!0;if("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)return!1}catch(e){}return!0}(n)){var r="keypress"===n.type?"input":n.type;(void 0===be||function(e,t){if(!e)return!0;if(e.type!==t.type)return!0;try{if(e.target!==t.target)return!0}catch(e){}return!1}(xe,n))&&(e({event:n,name:r,global:t}),xe=n),clearTimeout(be),be=we.setTimeout((function(){be=void 0}),1e3)}}}var Ce=null,Ae=null,Pe=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){return e.__proto__=t,e}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(e,n)||(e[n]=t[n]);return e}),Me=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return r.message=t,r.name=n.prototype.constructor.name,Pe(r,n.prototype),r}return Object(E.b)(t,e),t}(Error),Ie=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Re(e,t){void 0===t&&(t=!1);var n=e.host,r=e.path,i=e.pass,o=e.port,a=e.projectId;return e.protocol+"://"+e.publicKey+(t&&i?":"+i:"")+"@"+n+(o?":"+o:"")+"/"+(r?r+"/":r)+a}function De(e){return"user"in e&&!("publicKey"in e)&&(e.publicKey=e.user),{user:e.publicKey||"",protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function Le(e){var t="string"==typeof e?function(e){var t=Ie.exec(e);if(!t)throw new Me("Invalid Sentry Dsn: "+e);var n=Object(E.c)(t.slice(1),6),r=n[0],i=n[1],o=n[2],a=void 0===o?"":o,s=n[3],u=n[4],c=void 0===u?"":u,l="",f=n[5],d=f.split("/");if(d.length>1&&(l=d.slice(0,-1).join("/"),f=d.pop()),f){var p=f.match(/^\d+/);p&&(f=p[0])}return De({host:s,pass:a,path:l,projectId:f,port:c,protocol:r,publicKey:i})}(e):De(e);return function(e){if(A){var t=e.port,n=e.projectId,r=e.protocol;if(["protocol","publicKey","host","projectId"].forEach((function(t){if(!e[t])throw new Me("Invalid Sentry Dsn: "+t+" missing")})),!n.match(/^\d+$/))throw new Me("Invalid Sentry Dsn: Invalid projectId "+n);if(!function(e){return"http"===e||"https"===e}(r))throw new Me("Invalid Sentry Dsn: Invalid protocol "+r);if(t&&isNaN(parseInt(t,10)))throw new Me("Invalid Sentry Dsn: Invalid port "+t)}}(t),t}var Ne=n(1052),Fe=[];function Be(e){return e.reduce((function(e,t){return e.every((function(e){return t.name!==e.name}))&&e.push(t),e}),[])}var Ue="Not capturing exception because it's already been captured.",ze=function(){function e(e,t){this._integrations={},this._numProcessing=0,this._backend=new e(t),this._options=t,t.dsn&&(this._dsn=Le(t.dsn))}return e.prototype.captureException=function(e,t,n){var r=this;if(!W(e)){var i=t&&t.event_id;return this._process(this._getBackend().eventFromException(e,t).then((function(e){return r._captureEvent(e,t,n)})).then((function(e){i=e}))),i}q&&o.log(Ue)},e.prototype.captureMessage=function(e,t,n,r){var i=this,o=n&&n.event_id,a=Object(J.j)(e)?this._getBackend().eventFromMessage(String(e),t,n):this._getBackend().eventFromException(e,n);return this._process(a.then((function(e){return i._captureEvent(e,n,r)})).then((function(e){o=e}))),o},e.prototype.captureEvent=function(e,t,n){if(!(t&&t.originalException&&W(t.originalException))){var r=t&&t.event_id;return this._process(this._captureEvent(e,t,n).then((function(e){r=e}))),r}q&&o.log(Ue)},e.prototype.captureSession=function(e){this._isEnabled()?"string"!=typeof e.release?q&&o.warn("Discarded session because of missing or non-string release"):(this._sendSession(e),e.update({init:!1})):q&&o.warn("SDK not enabled, will not capture session.")},e.prototype.getDsn=function(){return this._dsn},e.prototype.getOptions=function(){return this._options},e.prototype.getTransport=function(){return this._getBackend().getTransport()},e.prototype.flush=function(e){var t=this;return this._isClientDoneProcessing(e).then((function(n){return t.getTransport().close(e).then((function(e){return n&&e}))}))},e.prototype.close=function(e){var t=this;return this.flush(e).then((function(e){return t.getOptions().enabled=!1,e}))},e.prototype.setupIntegrations=function(){this._isEnabled()&&!this._integrations.initialized&&(this._integrations=function(e){var t={};return function(e){var t=e.defaultIntegrations&&Object(E.d)(e.defaultIntegrations)||[],n=e.integrations,r=Object(E.d)(Be(t));Array.isArray(n)?r=Object(E.d)(r.filter((function(e){return n.every((function(t){return t.name!==e.name}))})),Be(n)):"function"==typeof n&&(r=n(r),r=Array.isArray(r)?r:[r]);var i=r.map((function(e){return e.name}));return-1!==i.indexOf("Debug")&&r.push.apply(r,Object(E.d)(r.splice(i.indexOf("Debug"),1))),r}(e).forEach((function(e){t[e.name]=e,function(e){-1===Fe.indexOf(e.name)&&(e.setupOnce(oe,le),Fe.push(e.name),q&&o.log("Integration installed: "+e.name))}(e)})),Object(j.a)(t,"initialized",!0),t}(this._options))},e.prototype.getIntegration=function(e){try{return this._integrations[e.id]||null}catch(t){return q&&o.warn("Cannot retrieve integration "+e.id+" from the current Client"),null}},e.prototype._updateSessionFromEvent=function(e,t){var n,r,i=!1,o=!1,a=t.exception&&t.exception.values;if(a){o=!0;try{for(var s=Object(E.e)(a),u=s.next();!u.done;u=s.next()){var c=u.value.mechanism;if(c&&!1===c.handled){i=!0;break}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}}var l="ok"===e.status;(l&&0===e.errors||l&&i)&&(e.update(Object(E.a)(Object(E.a)({},i&&{status:"crashed"}),{errors:e.errors||Number(o||i)})),this.captureSession(e))},e.prototype._sendSession=function(e){this._getBackend().sendSession(e)},e.prototype._isClientDoneProcessing=function(e){var t=this;return new ne((function(n){var r=0,i=setInterval((function(){0==t._numProcessing?(clearInterval(i),n(!0)):(r+=1,e&&r>=e&&(clearInterval(i),n(!1)))}),1)}))},e.prototype._getBackend=function(){return this._backend},e.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},e.prototype._prepareEvent=function(e,t,n){var r=this,i=this.getOptions(),o=i.normalizeDepth,a=void 0===o?3:o,s=i.normalizeMaxBreadth,u=void 0===s?1e3:s,c=Object(E.a)(Object(E.a)({},e),{event_id:e.event_id||(n&&n.event_id?n.event_id:F()),timestamp:e.timestamp||Object(X.a)()});this._applyClientOptions(c),this._applyIntegrationsMetadata(c);var l=t;n&&n.captureContext&&(l=re.clone(l).update(n.captureContext));var f=ee(c);return l&&(f=l.applyToEvent(c,n)),f.then((function(e){return e&&(e.sdkProcessingMetadata=Object(E.a)(Object(E.a)({},e.sdkProcessingMetadata),{normalizeDepth:Object(Ne.a)(a)+" ("+I(a)+")"})),"number"==typeof a&&a>0?r._normalizeEvent(e,a,u):e}))},e.prototype._normalizeEvent=function(e,t,n){if(!e)return null;var r=Object(E.a)(Object(E.a)(Object(E.a)(Object(E.a)(Object(E.a)({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return Object(E.a)(Object(E.a)({},e),e.data&&{data:Object(Ne.a)(e.data,t,n)})}))}),e.user&&{user:Object(Ne.a)(e.user,t,n)}),e.contexts&&{contexts:Object(Ne.a)(e.contexts,t,n)}),e.extra&&{extra:Object(Ne.a)(e.extra,t,n)});return e.contexts&&e.contexts.trace&&(r.contexts.trace=e.contexts.trace),r.sdkProcessingMetadata=Object(E.a)(Object(E.a)({},r.sdkProcessingMetadata),{baseClientNormalized:!0}),r},e.prototype._applyClientOptions=function(e){var t=this.getOptions(),n=t.environment,r=t.release,i=t.dist,o=t.maxValueLength,a=void 0===o?250:o;"environment"in e||(e.environment="environment"in t?n:"production"),void 0===e.release&&void 0!==r&&(e.release=r),void 0===e.dist&&void 0!==i&&(e.dist=i),e.message&&(e.message=Object(N.d)(e.message,a));var s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=Object(N.d)(s.value,a));var u=e.request;u&&u.url&&(u.url=Object(N.d)(u.url,a))},e.prototype._applyIntegrationsMetadata=function(e){var t=Object.keys(this._integrations);t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=Object(E.d)(e.sdk.integrations||[],t))},e.prototype._sendEvent=function(e){this._getBackend().sendEvent(e)},e.prototype._captureEvent=function(e,t,n){return this._processEvent(e,t,n).then((function(e){return e.event_id}),(function(e){q&&o.error(e)}))},e.prototype._processEvent=function(e,t,n){var r=this,i=this.getOptions(),o=i.beforeSend,a=i.sampleRate,s=this.getTransport();function u(e,t){s.recordLostEvent&&s.recordLostEvent(e,t)}if(!this._isEnabled())return te(new Me("SDK not enabled, will not capture event."));var c="transaction"===e.type;return!c&&"number"==typeof a&&Math.random()>a?(u("sample_rate","event"),te(new Me("Discarding event because it's not included in the random sample (sampling rate = "+a+")"))):this._prepareEvent(e,n,t).then((function(n){if(null===n)throw u("event_processor",e.type||"event"),new Me("An event processor returned null, will not send event.");return t&&t.data&&!0===t.data.__sentry__||c||!o?n:function(e){var t="`beforeSend` method has to return `null` or a valid event.";if(Object(J.n)(e))return e.then((function(e){if(!Object(J.i)(e)&&null!==e)throw new Me(t);return e}),(function(e){throw new Me("beforeSend rejected with "+e)}));if(!Object(J.i)(e)&&null!==e)throw new Me(t);return e}(o(n,t))})).then((function(t){if(null===t)throw u("before_send",e.type||"event"),new Me("`beforeSend` returned `null`, will not send event.");var i=n&&n.getSession&&n.getSession();return!c&&i&&r._updateSessionFromEvent(i,t),r._sendEvent(t),t})).then(null,(function(e){if(e instanceof Me)throw e;throw r.captureException(e,{data:{__sentry__:!0},originalException:e}),new Me("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+e)}))},e.prototype._process=function(e){var t=this;this._numProcessing+=1,e.then((function(e){return t._numProcessing-=1,e}),(function(e){return t._numProcessing-=1,e}))},e}();function Ve(e,t,n){return{initDsn:e,metadata:t||{},dsn:Le(e),tunnel:n}}function He(e){var t=e.protocol?e.protocol+":":"",n=e.port?":"+e.port:"";return t+"//"+e.host+n+(e.path?"/"+e.path:"")+"/api/"}function We(e,t){return""+He(e)+e.projectId+"/"+t+"/"}function qe(e){return Object(j.h)({sentry_key:e.publicKey,sentry_version:"7"})}function Ge(e){return We(e,"store")}function Ye(e){return Ge(e)+"?"+qe(e)}function Ke(e,t){return t||function(e){return We(e,"envelope")}(e)+"?"+qe(e)}function $e(e,t){return void 0===t&&(t=[]),[e,t]}function Xe(e){var t=Object(E.c)(e,2),n=t[0],r=t[1],i=JSON.stringify(n);return r.reduce((function(e,t){var n=Object(E.c)(t,2),r=n[0],i=n[1],o=Object(J.j)(i)?String(i):JSON.stringify(i);return e+"\n"+JSON.stringify(r)+"\n"+o}),i)}function Qe(e){if(e.metadata&&e.metadata.sdk){var t=e.metadata.sdk;return{name:t.name,version:t.version}}}function Ze(e,t){return t?(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=Object(E.d)(e.sdk.integrations||[],t.integrations||[]),e.sdk.packages=Object(E.d)(e.sdk.packages||[],t.packages||[]),e):e}function Je(e,t){var n=Qe(t),r="aggregates"in e?"sessions":"session";return[$e(Object(E.a)(Object(E.a)({sent_at:(new Date).toISOString()},n&&{sdk:n}),!!t.tunnel&&{dsn:Re(t.dsn)}),[[{type:r},e]]),r]}!function(){function e(e,t,n){void 0===t&&(t={}),this.dsn=e,this._dsnObject=Le(e),this.metadata=t,this._tunnel=n}e.prototype.getDsn=function(){return this._dsnObject},e.prototype.forceEnvelope=function(){return!!this._tunnel},e.prototype.getBaseApiEndpoint=function(){return He(this._dsnObject)},e.prototype.getStoreEndpoint=function(){return Ge(this._dsnObject)},e.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return Ye(this._dsnObject)},e.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return Ke(this._dsnObject,this._tunnel)}}();var et,tt=function(){function e(){}return e.prototype.sendEvent=function(e){return ee({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:"skipped"})},e.prototype.close=function(e){return ee(!0)},e}(),nt=function(){function e(e){this._options=e,this._options.dsn||q&&o.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return e.prototype.eventFromException=function(e,t){throw new Me("Backend has to implement `eventFromException` method")},e.prototype.eventFromMessage=function(e,t,n){throw new Me("Backend has to implement `eventFromMessage` method")},e.prototype.sendEvent=function(e){if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var t=function(e,t){var n=Qe(t),r=e.type||"event",i=(e.sdkProcessingMetadata||{}).transactionSampling||{},o=i.method,a=i.rate;return Ze(e,t.metadata.sdk),e.tags=e.tags||{},e.extra=e.extra||{},e.sdkProcessingMetadata&&e.sdkProcessingMetadata.baseClientNormalized||(e.tags.skippedNormalization=!0,e.extra.normalizeDepth=e.sdkProcessingMetadata?e.sdkProcessingMetadata.normalizeDepth:"unset"),delete e.sdkProcessingMetadata,$e(Object(E.a)(Object(E.a)({event_id:e.event_id,sent_at:(new Date).toISOString()},n&&{sdk:n}),!!t.tunnel&&{dsn:Re(t.dsn)}),[[{type:r,sample_rates:[{id:o,rate:a}]},e]])}(e,Ve(this._options.dsn,this._options._metadata,this._options.tunnel));this._newTransport.send(t).then(null,(function(e){q&&o.error("Error while sending event:",e)}))}else this._transport.sendEvent(e).then(null,(function(e){q&&o.error("Error while sending event:",e)}))},e.prototype.sendSession=function(e){if(this._transport.sendSession)if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var t=Ve(this._options.dsn,this._options._metadata,this._options.tunnel),n=Object(E.c)(Je(e,t),1)[0];this._newTransport.send(n).then(null,(function(e){q&&o.error("Error while sending session:",e)}))}else this._transport.sendSession(e).then(null,(function(e){q&&o.error("Error while sending session:",e)}));else q&&o.warn("Dropping session because custom transport doesn't implement sendSession")},e.prototype.getTransport=function(){return this._transport},e.prototype._setupTransport=function(){return new tt},e}();function rt(e,t,n,r){var i={filename:e,function:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}!function(e){e.Fatal="fatal",e.Error="error",e.Warning="warning",e.Log="log",e.Info="info",e.Debug="debug",e.Critical="critical"}(et||(et={}));var it=/^\s*at (?:(.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,ot=/\((\S*)(?::(\d+))(?::(\d+))\)/,at=[30,function(e){var t=it.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){var n=ot.exec(t[2]);n&&(t[2]=n[1],t[3]=n[2],t[4]=n[3])}var r=Object(E.c)(gt(t[1]||"?",t[2]),2),i=r[0];return rt(r[1],i,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],st=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,ut=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,ct=[50,function(e){var t,n=st.exec(e);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){var r=ut.exec(n[3]);r&&(n[1]=n[1]||"eval",n[3]=r[1],n[4]=r[2],n[5]="")}var i=n[3],o=n[1]||"?";return o=(t=Object(E.c)(gt(o,i),2))[0],rt(i=t[1],o,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}}],lt=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,ft=[40,function(e){var t=lt.exec(e);return t?rt(t[2],t[1]||"?",+t[3],t[4]?+t[4]:void 0):void 0}],dt=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,pt=[10,function(e){var t=dt.exec(e);return t?rt(t[2],t[3]||"?",+t[1]):void 0}],ht=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,vt=[20,function(e){var t=ht.exec(e);return t?rt(t[5],t[3]||t[4]||"?",+t[1],+t[2]):void 0}],gt=function(e,t){var n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:"?",n?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]};function mt(e){var t=bt(e),n={type:e&&e.name,value:wt(e)};return t.length&&(n.stacktrace={frames:t}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function yt(e){return{exception:{values:[mt(e)]}}}function bt(e){var t=e.stacktrace||e.stack||"",n=function(e){if(e){if("number"==typeof e.framesToPop)return e.framesToPop;if(xt.test(e.message))return 1}return 0}(e);try{return Object(he.a)(pt,vt,at,ft,ct)(t,n)}catch(e){}return[]}var xt=/Minified React error #\d+;/i;function wt(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:t:"No error message"}function _t(e,t,n,r){var i;if(Object(J.e)(e)&&e.error)return yt(e.error);if(Object(J.a)(e)||Object(J.b)(e)){var o=e;if("stack"in e)i=yt(e);else{var a=o.name||(Object(J.a)(o)?"DOMError":"DOMException"),s=o.message?a+": "+o.message:a;V(i=St(s,t,n),s)}return"code"in o&&(i.tags=Object(E.a)(Object(E.a)({},i.tags),{"DOMException.code":""+o.code})),i}return Object(J.d)(e)?yt(e):Object(J.i)(e)||Object(J.f)(e)?(H(i=function(e,t,n){var r={exception:{values:[{type:Object(J.f)(e)?e.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+Object(j.d)(e)}]},extra:{__serialized__:Object(Ne.b)(e)}};if(t){var i=bt(t);i.length&&(r.stacktrace={frames:i})}return r}(e,t,r),{synthetic:!0}),i):(V(i=St(e,t,n),""+e,void 0),H(i,{synthetic:!0}),i)}function St(e,t,n){var r={message:e};if(n&&t){var i=bt(t);i.length&&(r.stacktrace={frames:i})}return r}function Ot(e){var t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return te(new Me("Not adding Promise due to buffer limit reached."));var i=r();return-1===t.indexOf(i)&&t.push(i),i.then((function(){return n(i)})).then(null,(function(){return n(i).then(null,(function(){}))})),i},drain:function(e){return new ne((function(n,r){var i=t.length;if(!i)return n(!0);var o=setTimeout((function(){e&&e>0&&n(!1)}),e);t.forEach((function(e){ee(e).then((function(){--i||(clearTimeout(o),n(!0))}),r)}))}))}}}function kt(e,t){return e[t]||e.all||0}function Et(e,t,n){return void 0===n&&(n=Date.now()),kt(e,t)>n}function jt(e,t,n){var r,i,o,a;void 0===n&&(n=Date.now());var s=Object(E.a)({},e),u=t["x-sentry-rate-limits"],c=t["retry-after"];if(u)try{for(var l=Object(E.e)(u.trim().split(",")),f=l.next();!f.done;f=l.next()){var d=f.value.split(":",2),p=parseInt(d[0],10),h=1e3*(isNaN(p)?60:p);if(d[1])try{for(var v=(o=void 0,Object(E.e)(d[1].split(";"))),g=v.next();!g.done;g=v.next())s[g.value]=n+h}catch(e){o={error:e}}finally{try{g&&!g.done&&(a=v.return)&&a.call(v)}finally{if(o)throw o.error}}else s.all=n+h}}catch(e){r={error:e}}finally{try{f&&!f.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}else c&&(s.all=n+function(e,t){void 0===t&&(t=Date.now());var n=parseInt(""+e,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+e);return isNaN(r)?6e4:r-t}(c,n));return s}function Tt(e){return e>=200&&e<300?"success":429===e?"rate_limit":e>=400&&e<500?"invalid":e>=500?"failed":"unknown"}function Ct(e,t,n){void 0===n&&(n=Ot(e.bufferSize||30));var r={};return{send:function(e){var i=function(e){var t=Object(E.c)(e,2),n=Object(E.c)(t[1],1);return Object(E.c)(n[0],1)[0].type}(e),o="event"===i?"error":i,a={category:o,body:Xe(e)};return Et(r,o)?te({status:"rate_limit",reason:At(r,o)}):n.add((function(){return t(a).then((function(e){var t=e.body,n=e.headers,i=e.reason,a=Tt(e.statusCode);return n&&(r=jt(r,n)),"success"===a?ee({status:a,reason:i}):te({status:a,reason:i||t||("rate_limit"===a?At(r,o):"Unknown transport error")})}))}))},flush:function(e){return n.drain(e)}}}function At(e,t){return"Too many "+t+" requests, backing off until: "+new Date(kt(e,t)).toISOString()}var Pt,Mt="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,It=Object(P.a)();function Rt(){if(Pt)return Pt;if(ge(It.fetch))return Pt=It.fetch.bind(It);var e=It.document,t=It.fetch;if(e&&"function"==typeof e.createElement)try{var n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);var r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(e){Mt&&o.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return Pt=t.bind(It)}function Dt(e){return"event"===e?"error":e}var Lt=Object(P.a)(),Nt=function(){function e(e){var t=this;this.options=e,this._buffer=Ot(30),this._rateLimits={},this._outcomes={},this._api=Ve(e.dsn,e._metadata,e.tunnel),this.url=Ye(this._api.dsn),this.options.sendClientReports&&Lt.document&&Lt.document.addEventListener("visibilitychange",(function(){"hidden"===Lt.document.visibilityState&&t._flushOutcomes()}))}return e.prototype.sendEvent=function(e){return this._sendRequest(function(e,t){var n,r=Qe(t),i=e.type||"event",o="transaction"===i||!!t.tunnel,a=(e.sdkProcessingMetadata||{}).transactionSampling||{},s=a.method,u=a.rate;Ze(e,t.metadata.sdk),e.tags=e.tags||{},e.extra=e.extra||{},e.sdkProcessingMetadata&&e.sdkProcessingMetadata.baseClientNormalized||(e.tags.skippedNormalization=!0,e.extra.normalizeDepth=e.sdkProcessingMetadata?e.sdkProcessingMetadata.normalizeDepth:"unset"),delete e.sdkProcessingMetadata;try{n=JSON.stringify(e)}catch(t){e.tags.JSONStringifyError=!0,e.extra.JSONStringifyError=t;try{n=JSON.stringify(Object(Ne.a)(e))}catch(e){var c=e;n=JSON.stringify({message:"JSON.stringify error after renormalization",extra:{message:c.message,stack:c.stack}})}}var l={body:n,type:i,url:o?Ke(t.dsn,t.tunnel):Ye(t.dsn)};if(o){var f=$e(Object(E.a)(Object(E.a)({event_id:e.event_id,sent_at:(new Date).toISOString()},r&&{sdk:r}),!!t.tunnel&&{dsn:Re(t.dsn)}),[[{type:i,sample_rates:[{id:s,rate:u}]},l.body]]);l.body=Xe(f)}return l}(e,this._api),e)},e.prototype.sendSession=function(e){return this._sendRequest(function(e,t){var n=Object(E.c)(Je(e,t),2),r=n[0],i=n[1];return{body:Xe(r),type:i,url:Ke(t.dsn,t.tunnel)}}(e,this._api),e)},e.prototype.close=function(e){return this._buffer.drain(e)},e.prototype.recordLostEvent=function(e,t){var n;if(this.options.sendClientReports){var r=Dt(t)+":"+e;Mt&&o.log("Adding outcome: "+r),this._outcomes[r]=(null!=(n=this._outcomes[r])?n:0)+1}},e.prototype._flushOutcomes=function(){if(this.options.sendClientReports){var e=this._outcomes;if(this._outcomes={},Object.keys(e).length){Mt&&o.log("Flushing outcomes:\n"+JSON.stringify(e,null,2));var t,n,r=Ke(this._api.dsn,this._api.tunnel),i=Object.keys(e).map((function(t){var n=Object(E.c)(t.split(":"),2),r=n[0];return{reason:n[1],category:r,quantity:e[t]}})),a=(t=i,$e((n=this._api.tunnel&&Re(this._api.dsn))?{dsn:n}:{},[[{type:"client_report"},{timestamp:Object(X.a)(),discarded_events:t}]]));try{!function(e,t){if("[object Navigator]"===Object.prototype.toString.call(It&&It.navigator)&&"function"==typeof It.navigator.sendBeacon)return It.navigator.sendBeacon.bind(It.navigator)(e,t);ve()&&Rt()(e,{body:t,method:"POST",credentials:"omit",keepalive:!0}).then(null,(function(e){console.error(e)}))}(r,Xe(a))}catch(e){Mt&&o.error(e)}}else Mt&&o.log("No outcomes to flush")}},e.prototype._handleResponse=function(e){var t=e.requestType,n=e.response,r=e.headers,i=e.resolve,a=e.reject,s=Tt(n.status);this._rateLimits=jt(this._rateLimits,r),this._isRateLimited(t)&&Mt&&o.warn("Too many "+t+" requests, backing off until: "+this._disabledUntil(t)),"success"!==s?a(n):i({status:s})},e.prototype._disabledUntil=function(e){var t=Dt(e);return new Date(kt(this._rateLimits,t))},e.prototype._isRateLimited=function(e){var t=Dt(e);return Et(this._rateLimits,t)},e}(),Ft=function(e){function t(t,n){void 0===n&&(n=Rt());var r=e.call(this,t)||this;return r._fetch=n,r}return Object(E.b)(t,e),t.prototype._sendRequest=function(e,t){var n=this;if(this._isRateLimited(e.type))return this.recordLostEvent("ratelimit_backoff",e.type),Promise.reject({event:t,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429});var r={body:e.body,method:"POST",referrerPolicy:me()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(r,this.options.fetchParameters),void 0!==this.options.headers&&(r.headers=this.options.headers),this._buffer.add((function(){return new ne((function(t,i){n._fetch(e.url,r).then((function(r){var o={"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")};n._handleResponse({requestType:e.type,response:r,headers:o,resolve:t,reject:i})})).catch(i)}))})).then(void 0,(function(t){throw t instanceof Me?n.recordLostEvent("queue_overflow",e.type):n.recordLostEvent("network_error",e.type),t}))},t}(Nt),Bt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(E.b)(t,e),t.prototype._sendRequest=function(e,t){var n=this;return this._isRateLimited(e.type)?(this.recordLostEvent("ratelimit_backoff",e.type),Promise.reject({event:t,type:e.type,reason:"Transport for "+e.type+" requests locked till "+this._disabledUntil(e.type)+" due to too many requests.",status:429})):this._buffer.add((function(){return new ne((function(t,r){var i=new XMLHttpRequest;for(var o in i.onreadystatechange=function(){if(4===i.readyState){var o={"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")};n._handleResponse({requestType:e.type,response:i,headers:o,resolve:t,reject:r})}},i.open("POST",e.url),n.options.headers)Object.prototype.hasOwnProperty.call(n.options.headers,o)&&i.setRequestHeader(o,n.options.headers[o]);i.send(e.body)}))})).then(void 0,(function(t){throw t instanceof Me?n.recordLostEvent("queue_overflow",e.type):n.recordLostEvent("network_error",e.type),t}))},t}(Nt),Ut=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(E.b)(t,e),t.prototype.eventFromException=function(e,t){return function(e,t,n){var r=_t(e,t&&t.syntheticException||void 0,n);return H(r),r.level=et.Error,t&&t.event_id&&(r.event_id=t.event_id),ee(r)}(e,t,this._options.attachStacktrace)},t.prototype.eventFromMessage=function(e,t,n){return void 0===t&&(t=et.Info),function(e,t,n,r){void 0===t&&(t=et.Info);var i=St(e,n&&n.syntheticException||void 0,r);return i.level=t,n&&n.event_id&&(i.event_id=n.event_id),ee(i)}(e,t,n,this._options.attachStacktrace)},t.prototype._setupTransport=function(){if(!this._options.dsn)return e.prototype._setupTransport.call(this);var t,n,r=Object(E.a)(Object(E.a)({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,sendClientReports:this._options.sendClientReports,_metadata:this._options._metadata}),i=Ve(r.dsn,r._metadata,r.tunnel),o=Ke(i.dsn,i.tunnel);if(this._options.transport)return new this._options.transport(r);if(ve()){var a=Object(E.a)({},r.fetchParameters);return this._newTransport=(t={requestOptions:a,url:o},void 0===n&&(n=Rt()),Ct({bufferSize:t.bufferSize},(function(e){var r=Object(E.a)({body:e.body,method:"POST",referrerPolicy:"origin"},t.requestOptions);return n(t.url,r).then((function(e){return e.text().then((function(t){return{body:t,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")},reason:e.statusText,statusCode:e.status}}))}))}))),new Ft(r)}return this._newTransport=function(e){return Ct({bufferSize:e.bufferSize},(function(t){return new ne((function(n,r){var i=new XMLHttpRequest;for(var o in i.onreadystatechange=function(){if(4===i.readyState){var e={body:i.response,headers:{"x-sentry-rate-limits":i.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":i.getResponseHeader("Retry-After")},reason:i.statusText,statusCode:i.status};n(e)}},i.open("POST",e.url),e.headers)Object.prototype.hasOwnProperty.call(e.headers,o)&&i.setRequestHeader(o,e.headers[o]);i.send(t.body)}))}))}({url:o,headers:r.headers}),new Bt(r)},t}(nt);function zt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=le();if(r&&r[e])return r[e].apply(r,Object(E.d)(t));throw new Error("No hub defined or "+e+" was not found on the hub, please open a bug report.")}function Vt(e,t){return zt("captureException",e,{captureContext:t,originalException:e,syntheticException:new Error("Sentry syntheticException")})}function Ht(e){zt("withScope",e)}var Wt=Object(P.a)(),qt=0;function Gt(){return qt>0}function Yt(){qt+=1,setTimeout((function(){qt-=1}))}function Kt(e,t,n){if(void 0===t&&(t={}),"function"!=typeof e)return e;try{var r=e.__sentry_wrapped__;if(r)return r;if(Object(j.f)(e))return e}catch(t){return e}var i=function(){var r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var i=r.map((function(e){return Kt(e,t)}));return e.apply(this,i)}catch(e){throw Yt(),Ht((function(n){n.addEventProcessor((function(e){return t.mechanism&&(V(e,void 0,void 0),H(e,t.mechanism)),e.extra=Object(E.a)(Object(E.a)({},e.extra),{arguments:r}),e})),Vt(e)})),e}};try{for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(i[o]=e[o])}catch(e){}Object(j.g)(i,e),Object(j.a)(e,"__sentry_wrapped__",i);try{Object.getOwnPropertyDescriptor(i,"name").configurable&&Object.defineProperty(i,"name",{get:function(){return e.name}})}catch(e){}return i}var $t=n(458),Xt=["fatal","error","warning","log","info","debug","critical"];function Qt(e){return"warn"===e?et.Warning:function(e){return-1!==Xt.indexOf(e)}(e)?e:et.Log}var Zt=function(){function e(t){this.name=e.id,this._options=Object(E.a)({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},t)}return e.prototype.addSentryBreadcrumb=function(e){this._options.sentry&&le().addBreadcrumb({category:"sentry."+("transaction"===e.type?"transaction":"event"),event_id:e.event_id,level:e.level,message:z(e)},{event:e})},e.prototype.setupOnce=function(){var e;this._options.console&&Oe("console",Jt),this._options.dom&&Oe("dom",(e=this._options.dom,function(t){var n,r="object"==I(e)?e.serializeAttribute:void 0;"string"==typeof r&&(r=[r]);try{n=t.event.target?Object($t.b)(t.event.target,r):Object($t.b)(t.event,r)}catch(e){n="<unknown>"}0!==n.length&&le().addBreadcrumb({category:"ui."+t.name,message:n},{event:t.event,name:t.name,global:t.global})})),this._options.xhr&&Oe("xhr",en),this._options.fetch&&Oe("fetch",tn),this._options.history&&Oe("history",nn)},e.id="Breadcrumbs",e}();function Jt(e){var t={category:"console",data:{arguments:e.args,logger:"console"},level:Qt(e.level),message:Object(N.b)(e.args," ")};if("assert"===e.level){if(!1!==e.args[0])return;t.message="Assertion failed: "+(Object(N.b)(e.args.slice(1)," ")||"console.assert"),t.data.arguments=e.args.slice(1)}le().addBreadcrumb(t,{input:e.args,level:e.level})}function en(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;var t=e.xhr.__sentry_xhr__||{},n=t.method,r=t.url,i=t.status_code,o=t.body;le().addBreadcrumb({category:"xhr",data:{method:n,url:r,status_code:i},type:"http"},{xhr:e.xhr,input:o})}}function tn(e){e.endTimestamp&&(e.fetchData.url.match(/sentry_key/)&&"POST"===e.fetchData.method||(e.error?le().addBreadcrumb({category:"fetch",data:e.fetchData,level:et.Error,type:"http"},{data:e.error,input:e.args}):le().addBreadcrumb({category:"fetch",data:Object(E.a)(Object(E.a)({},e.fetchData),{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response})))}function nn(e){var t=Object(P.a)(),n=e.from,r=e.to,i=B(t.location.href),o=B(n),a=B(r);o.path||(o=i),i.protocol===a.protocol&&i.host===a.host&&(r=a.relative),i.protocol===o.protocol&&i.host===o.host&&(n=o.relative),le().addBreadcrumb({category:"navigation",data:{from:n,to:r}})}var rn=function(e){function t(t){return void 0===t&&(t={}),t._metadata=t._metadata||{},t._metadata.sdk=t._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:"6.19.7"}],version:"6.19.7"},e.call(this,Ut,t)||this}return Object(E.b)(t,e),t.prototype.showReportDialog=function(e){void 0===e&&(e={}),Object(P.a)().document&&(this._isEnabled()?function(e){if(void 0===e&&(e={}),Wt.document)if(e.eventId)if(e.dsn){var t=Wt.document.createElement("script");t.async=!0,t.src=function(e,t){var n=Le(e),r=He(n)+"embed/error-page/",i="dsn="+Re(n);for(var o in t)if("dsn"!==o)if("user"===o){if(!t.user)continue;t.user.name&&(i+="&name="+encodeURIComponent(t.user.name)),t.user.email&&(i+="&email="+encodeURIComponent(t.user.email))}else i+="&"+encodeURIComponent(o)+"="+encodeURIComponent(t[o]);return r+"?"+i}(e.dsn,e),e.onLoad&&(t.onload=e.onLoad);var n=Wt.document.head||Wt.document.body;n&&n.appendChild(t)}else Mt&&o.error("Missing dsn option in showReportDialog call");else Mt&&o.error("Missing eventId option in showReportDialog call")}(Object(E.a)(Object(E.a)({},e),{dsn:e.dsn||this.getDsn()})):Mt&&o.error("Trying to call showReportDialog with Sentry Client disabled"))},t.prototype._prepareEvent=function(t,n,r){return t.platform=t.platform||"javascript",e.prototype._prepareEvent.call(this,t,n,r)},t.prototype._sendEvent=function(t){var n=this.getIntegration(Zt);n&&n.addSentryBreadcrumb(t),e.prototype._sendEvent.call(this,t)},t}(ze),on=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],an=function(){function e(t){this.name=e.id,this._options=Object(E.a)({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},t)}return e.prototype.setupOnce=function(){var e=Object(P.a)();this._options.setTimeout&&Object(j.e)(e,"setTimeout",sn),this._options.setInterval&&Object(j.e)(e,"setInterval",sn),this._options.requestAnimationFrame&&Object(j.e)(e,"requestAnimationFrame",un),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&Object(j.e)(XMLHttpRequest.prototype,"send",cn);var t=this._options.eventTarget;t&&(Array.isArray(t)?t:on).forEach(ln)},e.id="TryCatch",e}();function sn(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t[0];return t[0]=Kt(r,{mechanism:{data:{function:Object(he.b)(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}}function un(e){return function(t){return e.apply(this,[Kt(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Object(he.b)(e)},handled:!0,type:"instrument"}})])}}function cn(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=this,i=["onload","onerror","onprogress","onreadystatechange"];return i.forEach((function(e){e in r&&"function"==typeof r[e]&&Object(j.e)(r,e,(function(t){var n={mechanism:{data:{function:e,handler:Object(he.b)(t)},handled:!0,type:"instrument"}},r=Object(j.f)(t);return r&&(n.mechanism.data.handler=Object(he.b)(r)),Kt(t,n)}))})),e.apply(this,t)}}function ln(e){var t=Object(P.a)(),n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(Object(j.e)(n,"addEventListener",(function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=Kt(r.handleEvent.bind(r),{mechanism:{data:{function:"handleEvent",handler:Object(he.b)(r),target:e},handled:!0,type:"instrument"}}))}catch(e){}return t.apply(this,[n,Kt(r,{mechanism:{data:{function:"addEventListener",handler:Object(he.b)(r),target:e},handled:!0,type:"instrument"}}),i])}})),Object(j.e)(n,"removeEventListener",(function(e){return function(t,n,r){var i=n;try{var o=i&&i.__sentry_wrapped__;o&&e.call(this,t,o,r)}catch(e){}return e.call(this,t,i,r)}})))}var fn=function(){function e(t){this.name=e.id,this._installFunc={onerror:dn,onunhandledrejection:pn},this._options=Object(E.a)({onerror:!0,onunhandledrejection:!0},t)}return e.prototype.setupOnce=function(){Error.stackTraceLimit=50;var e,t=this._options;for(var n in t){var r=this._installFunc[n];r&&t[n]&&(e=n,Mt&&o.log("Global Handler attached: "+e),r(),this._installFunc[n]=void 0)}},e.id="GlobalHandlers",e}();function dn(){Oe("error",(function(e){var t=Object(E.c)(gn(),2),n=t[0],r=t[1];if(n.getIntegration(fn)){var i=e.msg,o=e.url,a=e.line,s=e.column,u=e.error;if(!(Gt()||u&&u.__sentry_own_request__)){var c=void 0===u&&Object(J.l)(i)?function(e,t,n,r){var i=Object(J.e)(e)?e.message:e,o="Error",a=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return a&&(o=a[1],i=a[2]),hn({exception:{values:[{type:o,value:i}]}},t,n,r)}(i,o,a,s):hn(_t(u||i,void 0,r,!1),o,a,s);c.level=et.Error,vn(n,u,c,"onerror")}}}))}function pn(){Oe("unhandledrejection",(function(e){var t=Object(E.c)(gn(),2),n=t[0],r=t[1];if(n.getIntegration(fn)){var i=e;try{"reason"in e?i=e.reason:"detail"in e&&"reason"in e.detail&&(i=e.detail.reason)}catch(e){}if(Gt()||i&&i.__sentry_own_request__)return!0;var o=Object(J.j)(i)?{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(i)}]}}:_t(i,void 0,r,!0);o.level=et.Error,vn(n,i,o,"onunhandledrejection")}}))}function hn(e,t,n,r){var i=e.exception=e.exception||{},o=i.values=i.values||[],a=o[0]=o[0]||{},s=a.stacktrace=a.stacktrace||{},u=s.frames=s.frames||[],c=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,f=Object(J.l)(t)&&t.length>0?t:Object($t.a)();return 0===u.length&&u.push({colno:c,filename:f,function:"?",in_app:!0,lineno:l}),e}function vn(e,t,n,r){H(n,{handled:!1,type:r}),e.captureEvent(n,{originalException:t})}function gn(){var e=le(),t=e.getClient();return[e,t&&t.getOptions().attachStacktrace]}var mn=function(){function e(t){void 0===t&&(t={}),this.name=e.id,this._key=t.key||"cause",this._limit=t.limit||5}return e.prototype.setupOnce=function(){oe((function(t,n){var r=le().getIntegration(e);return r?function(e,t,n,r){if(!(n.exception&&n.exception.values&&r&&Object(J.g)(r.originalException,Error)))return n;var i=function e(t,n,r,i){if(void 0===i&&(i=[]),!Object(J.g)(n[r],Error)||i.length+1>=t)return i;var o=mt(n[r]);return e(t,n[r],r,Object(E.d)([o],i))}(t,r.originalException,e);return n.exception.values=Object(E.d)(i,n.exception.values),n}(r._key,r._limit,t,n):t}))},e.id="LinkedErrors",e}(),yn=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(t,n){t((function(t){var r=n().getIntegration(e);if(r){try{if(function(e,t){return!(!t||!function(e,t){var n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!xn(e,t)||!bn(e,t))}(e,t)&&!function(e,t){var n=wn(t),r=wn(e);return!!(n&&r&&n.type===r.type&&n.value===r.value&&xn(e,t)&&bn(e,t))}(e,t))}(t,r._previousEvent))return Mt&&o.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){return r._previousEvent=t}return r._previousEvent=t}return t}))},e.id="Dedupe",e}();function bn(e,t){var n=_n(e),r=_n(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(n=n,(r=r).length!==n.length)return!1;for(var i=0;i<r.length;i++){var o=r[i],a=n[i];if(o.filename!==a.filename||o.lineno!==a.lineno||o.colno!==a.colno||o.function!==a.function)return!1}return!0}function xn(e,t){var n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function wn(e){return e.exception&&e.exception.values&&e.exception.values[0]}function _n(e){var t=e.exception;if(t)try{return t.values[0].stacktrace.frames}catch(e){return}else if(e.stacktrace)return e.stacktrace.frames}var Sn=Object(P.a)(),On=function(){function e(){this.name=e.id}return e.prototype.setupOnce=function(){oe((function(t){if(le().getIntegration(e)){if(!Sn.navigator&&!Sn.location&&!Sn.document)return t;var n=t.request&&t.request.url||Sn.location&&Sn.location.href,r=(Sn.document||{}).referrer,i=(Sn.navigator||{}).userAgent,o=Object(E.a)(Object(E.a)(Object(E.a)({},t.request&&t.request.headers),r&&{Referer:r}),i&&{"User-Agent":i}),a=Object(E.a)(Object(E.a)({},n&&{url:n}),{headers:o});return Object(E.a)(Object(E.a)({},t),{request:a})}return t}))},e.id="UserAgent",e}(),kn=[new r.InboundFilters,new r.FunctionToString,new an,new Zt,new fn,new mn,new yn,new On];function En(e){if(void 0===e&&(e={}),void 0===e.defaultIntegrations&&(e.defaultIntegrations=kn),void 0===e.release){var t=Object(P.a)();t.SENTRY_RELEASE&&t.SENTRY_RELEASE.id&&(e.release=t.SENTRY_RELEASE.id)}void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0),function(e,t){!0===t.debug&&(q?o.enable():console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle."));var n=le(),r=n.getScope();r&&r.update(t.initialScope);var i=new e(t);n.bindClient(i)}(rn,e),e.autoSessionTracking&&function(){if(void 0!==Object(P.a)().document){var e=le();e.captureSession&&(jn(e),Oe("history",(function(e){var t=e.from,n=e.to;void 0!==t&&t!==n&&jn(le())})))}else Mt&&o.warn("Session tracking in non-browser environment with @sentry/browser is not supported.")}()}function jn(e){e.startSession({ignoreDuration:!0}),e.captureSession()}var Tn=n(436),Cn=n(54),An=n(83),Pn=n.n(An),Mn=n(39),In=n.n(Mn),Rn=n(26),Dn=n.n(Rn),Ln=n(40),Nn=n.n(Ln),Fn=n(1),Bn=n.n(Fn),Un={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},zn=new(function(){function e(t){_(this,e);var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(t,n)}return O(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||Un,this.options=t,this.debug=t.debug}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,u({prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}},{key:"clone",value:function(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}}])}()),Vn=function(){return O((function e(){_(this,e),this.observers={}}),[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]||(n.observers[e]=new Map);var r=n.observers[e].get(t)||0;n.observers[e].set(t,r+1)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}},{key:"emit",value: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];this.observers[e]&&Array.from(this.observers[e].entries()).forEach((function(e){for(var t=T(e,2),r=t[0],i=t[1],o=0;o<i;o++)r.apply(void 0,n)})),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach((function(t){for(var r=T(t,2),i=r[0],o=r[1],a=0;a<o;a++)i.apply(i,[e].concat(n))}))}}])}();function Hn(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function Wn(e){return null==e?"":""+e}var qn=/###/g;function Gn(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(qn,"."):e}function i(){return!e||"string"==typeof e}for(var o="string"!=typeof t?t:t.split("."),a=0;a<o.length-1;){if(i())return{};var s=r(o[a]);!e[s]&&n&&(e[s]=new n),e=Object.prototype.hasOwnProperty.call(e,s)?e[s]:{},++a}return i()?{}:{obj:e,k:r(o[a])}}function Yn(e,t,n){var r=Gn(e,t,Object),i=r.obj,o=r.k;if(void 0===i&&1!==t.length){for(var a=t[t.length-1],s=t.slice(0,t.length-1),u=Gn(e,s,Object);void 0===u.obj&&s.length;)a="".concat(s[s.length-1],".").concat(a),(u=Gn(e,s=s.slice(0,s.length-1),Object))&&u.obj&&void 0!==u.obj["".concat(u.k,".").concat(a)]&&(u.obj=void 0);u.obj["".concat(u.k,".").concat(a)]=n}else i[o]=n}function Kn(e,t){var n=Gn(e,t),r=n.obj,i=n.k;if(r)return r[i]}function $n(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Xn={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function Qn(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return Xn[e]})):e}var Zn=[" ",",","?","!",";"],Jn=new(function(){return O((function e(t){_(this,e),this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}),[{key:"getRegExp",value:function(e){var t=this.regExpMap.get(e);if(void 0!==t)return t;var n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}])}())(20);function er(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,o=0;o<r.length;){if(!i||"object"!=I(i))return;for(var a=void 0,s="",u=o;u<r.length;++u)if(u!==o&&(s+=n),void 0!==(a=i[s+=r[u]])){if(["string","number","boolean"].indexOf(I(a))>-1&&u<r.length-1)continue;o+=u-o+1;break}i=a}return i}}function tr(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}var nr=function(e){function t(e){var n;_(this,t);var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return(n=g(this,t)).data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),void 0===n.options.ignoreJSONStructure&&(n.options.ignoreJSONStructure=!0),n}return x(t,e),O(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r,i,o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=void 0!==a.keySeparator?a.keySeparator:this.options.keySeparator,u=void 0!==a.ignoreJSONStructure?a.ignoreJSONStructure:this.options.ignoreJSONStructure;e.indexOf(".")>-1?o=e.split("."):(o=[e,t],n&&(Array.isArray(n)?(r=o).push.apply(r,l(n)):"string"==typeof n&&s?(i=o).push.apply(i,l(n.split(s))):o.push(n)));var c=Kn(this.data,o);return!c&&!t&&!n&&e.indexOf(".")>-1&&(e=o[0],t=o[1],n=o.slice(2).join(".")),c||!u||"string"!=typeof n?c:er(this.data&&this.data[e]&&this.data[e][t],n,s)}},{key:"addResource",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,a=[e,t];n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),Yn(this.data,a,r),i.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var i in n)("string"==typeof n[i]||Array.isArray(n[i]))&&this.addResource(e,t,i,n[i],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var s=Kn(this.data,a)||{};o.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?function e(t,n,r){for(var i in n)"__proto__"!==i&&"constructor"!==i&&(i in t?"string"==typeof t[i]||t[i]instanceof String||"string"==typeof n[i]||n[i]instanceof String?r&&(t[i]=n[i]):e(t[i],n[i],r):t[i]=n[i]);return t}(s,n,i):s=u(u({},s),n),Yn(this.data,a,s),o.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?u({},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((function(e){return t[e]&&Object.keys(t[e]).length>0}))}},{key:"toJSON",value:function(){return this.data}}])}(Vn),rr={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,i){var o=this;return e.forEach((function(e){o.processors[e]&&(t=o.processors[e].process(t,n,r,i))})),t}},ir={},or=function(e){function t(e){var n;_(this,t);var r,i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n=g(this,t),r=e,i=y(n),["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach((function(e){r[e]&&(i[e]=r[e])})),n.options=o,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=zn.create("translator"),n}return x(t,e),O(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=t.ns||this.options.defaultNS||[],o=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";var r=Zn.filter((function(e){return t.indexOf(e)<0&&n.indexOf(e)<0}));if(0===r.length)return!0;var i=Jn.getRegExp("(".concat(r.map((function(e){return"?"===e?"\\?":e})).join("|"),")")),o=!i.test(e);if(!o){var a=e.indexOf(n);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o}(e,n,r));if(o&&!a){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:i};var u=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),e=u.join(r)}return"string"==typeof i&&(i=[i]),{key:e,namespaces:i}}},{key:"translate",value:function(e,n,r){var i=this;if("object"!=I(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),"object"==I(n)&&(n=u({},n)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var o=void 0!==n.returnDetails?n.returnDetails:this.options.returnDetails,a=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],n),c=s.key,l=s.namespaces,f=l[l.length-1],d=n.lng||this.language,p=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(p){var h=n.nsSeparator||this.options.nsSeparator;return o?{res:"".concat(f).concat(h).concat(c),usedKey:c,exactUsedKey:c,usedLng:d,usedNS:f,usedParams:this.getUsedParamsDetails(n)}:"".concat(f).concat(h).concat(c)}return o?{res:c,usedKey:c,exactUsedKey:c,usedLng:d,usedNS:f,usedParams:this.getUsedParamsDetails(n)}:c}var v=this.resolve(e,n),g=v&&v.res,m=v&&v.usedKey||c,y=v&&v.exactUsedKey||c,b=Object.prototype.toString.apply(g),x=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject;if(w&&g&&"string"!=typeof g&&"boolean"!=typeof g&&"number"!=typeof g&&["[object Number]","[object Function]","[object RegExp]"].indexOf(b)<0&&("string"!=typeof x||!Array.isArray(g))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var _=this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,g,u(u({},n),{},{ns:l})):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");return o?(v.res=_,v.usedParams=this.getUsedParamsDetails(n),v):_}if(a){var S=Array.isArray(g),O=S?[]:{},k=S?y:m;for(var E in g)if(Object.prototype.hasOwnProperty.call(g,E)){var j="".concat(k).concat(a).concat(E);O[E]=this.translate(j,u(u({},n),{},{joinArrays:!1,ns:l})),O[E]===j&&(O[E]=g[E])}g=O}}else if(w&&"string"==typeof x&&Array.isArray(g))(g=g.join(x))&&(g=this.extendTranslation(g,e,n,r));else{var T=!1,C=!1,A=void 0!==n.count&&"string"!=typeof n.count,P=t.hasDefaultValue(n),M=A?this.pluralResolver.getSuffix(d,n.count,n):"",R=n.ordinal&&A?this.pluralResolver.getSuffix(d,n.count,{ordinal:!1}):"",D=A&&!n.ordinal&&0===n.count&&this.pluralResolver.shouldUseIntlApi(),L=D&&n["defaultValue".concat(this.options.pluralSeparator,"zero")]||n["defaultValue"+M]||n["defaultValue"+R]||n.defaultValue;!this.isValidLookup(g)&&P&&(T=!0,g=L),this.isValidLookup(g)||(C=!0,g=c);var N=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&C?void 0:g,F=P&&L!==g&&this.options.updateMissing;if(C||T||F){if(this.logger.log(F?"updateKey":"missingKey",d,f,c,F?L:g),a){var B=this.resolve(c,u(u({},n),{},{keySeparator:!1}));B&&B.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var U=[],z=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&z&&z[0])for(var V=0;V<z.length;V++)U.push(z[V]);else"all"===this.options.saveMissingTo?U=this.languageUtils.toResolveHierarchy(n.lng||this.language):U.push(n.lng||this.language);var H=function(e,t,r){var o=P&&r!==g?r:N;i.options.missingKeyHandler?i.options.missingKeyHandler(e,f,t,o,F,n):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,f,t,o,F,n),i.emit("missingKey",e,f,t,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&A?U.forEach((function(e){var t=i.pluralResolver.getSuffixes(e,n);D&&n["defaultValue".concat(i.options.pluralSeparator,"zero")]&&t.indexOf(i.options.pluralSeparator+"zero")<0&&t.push(i.options.pluralSeparator+"zero"),t.forEach((function(t){H([e],c+t,n["defaultValue"+t]||L)}))})):H(U,c,L))}g=this.extendTranslation(g,e,n,v,r),C&&g===c&&this.options.appendNamespaceToMissingKey&&(g="".concat(f,":").concat(c)),(C||T)&&this.options.parseMissingKeyHandler&&(g="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(f,":").concat(c):c,T?g:void 0):this.options.parseMissingKeyHandler(g))}return o?(v.res=g,v.usedParams=this.getUsedParamsDetails(n),v):g}},{key:"extendTranslation",value:function(e,t,n,r,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,u(u({},this.options.interpolation.defaultVariables),n),n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(u(u({},n),{},{interpolation:u(u({},this.options.interpolation),n.interpolation)}));var a,s="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(s){var c=e.match(this.interpolator.nestingRegexp);a=c&&c.length}var l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l=u(u({},this.options.interpolation.defaultVariables),l)),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),s){var f=e.match(this.interpolator.nestingRegexp);a<(f&&f.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&r&&r.res&&(n.lng=r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return i&&i[0]===r[0]&&!n.context?(o.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):o.translate.apply(o,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var d=n.postProcess||this.options.postProcess,p="string"==typeof d?[d]:d;return null!=e&&p&&p.length&&!1!==n.applyPostProcessor&&(e=rr.handle(p,e,t,this.options&&this.options.postProcessPassResolved?u({i18nResolved:u(u({},r),{},{usedParams:this.getUsedParamsDetails(n)})},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,i,o,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var u=a.extractFromKey(e,s),c=u.key;n=c;var l=u.namespaces;a.options.fallbackNS&&(l=l.concat(a.options.fallbackNS));var f=void 0!==s.count&&"string"!=typeof s.count,d=f&&!s.ordinal&&0===s.count&&a.pluralResolver.shouldUseIntlApi(),p=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,h=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);l.forEach((function(e){a.isValidLookup(t)||(o=e,!ir["".concat(h[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(o)&&(ir["".concat(h[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach((function(n){if(!a.isValidLookup(t)){i=n;var o,u=[c];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(u,c,n,e,s);else{var l;f&&(l=a.pluralResolver.getSuffix(n,s.count,s));var h=a.options.pluralSeparator+"zero",v="".concat(a.options.pluralSeparator,"ordinal").concat(a.options.pluralSeparator);if(f&&(u.push(c+l),s.ordinal&&0===l.indexOf(v)&&u.push(c+l.replace(v,a.options.pluralSeparator)),d&&u.push(c+h)),p){var g="".concat(c).concat(a.options.contextSeparator).concat(s.context);u.push(g),f&&(u.push(g+l),s.ordinal&&0===l.indexOf(v)&&u.push(g+l.replace(v,a.options.pluralSeparator)),d&&u.push(g+h))}}for(;o=u.pop();)a.isValidLookup(t)||(r=o,t=a.getResource(n,e,o,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}},{key:"getUsedParamsDetails",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&"string"!=typeof e.replace,r=n?e.replace:e;if(n&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r=u(u({},this.options.interpolation.defaultVariables),r)),!n){r=u({},r);var i,o=c(t);try{for(o.s();!(i=o.n()).done;){var a=i.value;delete r[a]}}catch(e){o.e(e)}finally{o.f()}}return r}}],[{key:"hasDefaultValue",value:function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,"defaultValue".length)&&void 0!==e[t])return!0;return!1}}])}(Vn);function ar(e){return e.charAt(0).toUpperCase()+e.slice(1)}var sr=function(){return O((function e(t){_(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=zn.create("languageUtils")}),[{key:"getScriptPartFromCode",value:function(e){if(!(e=tr(e))||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!(e=tr(e))||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=ar(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=ar(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=ar(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){return e===r?e:e.indexOf("-")<0&&r.indexOf("-")<0?void 0:e.indexOf("-")>0&&r.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===r||0===e.indexOf(r)&&r.length>1?e:void 0}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],o=function(e){e&&(n.isSupportedCode(e)?i.push(e):n.logger.warn("rejecting language code not found in supportedLngs: "+e))};return"string"==typeof e&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),r.forEach((function(e){i.indexOf(e)<0&&o(n.formatLanguageCode(e))})),i}}])}(),ur=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],cr={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},lr=["v1","v2","v3"],fr=["v4"],dr={zero:0,one:1,two:2,few:3,many:4,other:5},pr=function(){return O((function e(t){_(this,e);var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=zn.create("pluralResolver"),this.options.compatibilityJSON&&!fr.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){var e={};return ur.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:cr[t.fc]}}))})),e}()}),[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(tr("dev"===e?"en":e),{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((function(e){return"".concat(t).concat(e)}))}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((function(e,t){return dr[e]-dr[t]})).map((function(e){return"".concat(t.options.prepend).concat(n.ordinal?"ordinal"+t.options.prepend:"").concat(e)})):r.numbers.map((function(r){return t.getSuffix(e,r,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(n.ordinal?"ordinal"+this.options.prepend:"").concat(r.select(t)):this.getSuffixRetroCompatible(r,t):(this.logger.warn("no plural rule found for: "+e),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),i=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var o=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_"+i.toString():o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}},{key:"shouldUseIntlApi",value:function(){return!lr.includes(this.options.compatibilityJSON)}}])}();function hr(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=function(e,t,n){var r=Kn(e,n);return void 0!==r?r:Kn(t,n)}(e,t,n);return!o&&i&&"string"==typeof n&&void 0===(o=er(e,n,r))&&(o=er(t,n,r)),o}var vr=function(){return O((function e(){_(this,e);var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=zn.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}),[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation,n=t.escape,r=t.escapeValue,i=t.useRawValueToEscape,o=t.prefix,a=t.prefixEscaped,s=t.suffix,u=t.suffixEscaped,c=t.formatSeparator,l=t.unescapeSuffix,f=t.unescapePrefix,d=t.nestingPrefix,p=t.nestingPrefixEscaped,h=t.nestingSuffix,v=t.nestingSuffixEscaped,g=t.nestingOptionsSeparator,m=t.maxReplaces,y=t.alwaysFormat;this.escape=void 0!==n?n:Qn,this.escapeValue=void 0===r||r,this.useRawValueToEscape=void 0!==i&&i,this.prefix=o?$n(o):a||"{{",this.suffix=s?$n(s):u||"}}",this.formatSeparator=c||",",this.unescapePrefix=l?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":l||"",this.nestingPrefix=d?$n(d):p||$n("$t("),this.nestingSuffix=h?$n(h):v||$n(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=m||1e3,this.alwaysFormat=void 0!==y&&y,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e=function(e,t){return e&&e.source===t?(e.lastIndex=0,e):new RegExp(t,"g")};this.regexp=e(this.regexp,"".concat(this.prefix,"(.+?)").concat(this.suffix)),this.regexpUnescape=e(this.regexpUnescape,"".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix)),this.nestingRegexp=e(this.nestingRegexp,"".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix))}},{key:"interpolate",value:function(e,t,n,r){var i,o,a,s=this,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var f=function(e){if(e.indexOf(s.formatSeparator)<0){var i=hr(t,c,e,s.options.keySeparator,s.options.ignoreJSONStructure);return s.alwaysFormat?s.format(i,void 0,n,u(u(u({},r),t),{},{interpolationkey:e})):i}var o=e.split(s.formatSeparator),a=o.shift().trim(),l=o.join(s.formatSeparator).trim();return s.format(hr(t,c,a,s.options.keySeparator,s.options.ignoreJSONStructure),l,n,u(u(u({},r),t),{},{interpolationkey:a}))};this.resetRegExp();var d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,p=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?l(s.escape(e)):l(e)}}].forEach((function(t){for(a=0;i=t.regex.exec(e);){var n=i[1].trim();if(void 0===(o=f(n)))if("function"==typeof d){var u=d(e,i,r);o="string"==typeof u?u:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))o="";else{if(p){o=i[0];continue}s.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),o=""}else"string"==typeof o||s.useRawValueToEscape||(o=Wn(o));var c=t.safeValue(o);if(e=e.replace(i[0],c),p?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,++a>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,i,o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function s(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp(n+"[ ]*{")),o="{"+r[1];e=r[0];var a=(o=this.interpolate(o,i)).match(/'/g),s=o.match(/"/g);(a&&a.length%2==0&&!s||s.length%2!=0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),t&&(i=u(u({},t),i))}catch(t){return this.logger.warn("failed parsing options string in nesting for key "+e,t),"".concat(e).concat(n).concat(o)}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,e}for(;n=this.nestingRegexp.exec(e);){var c=[];(i=(i=u({},a)).replace&&"string"!=typeof i.replace?i.replace:i).applyPostProcessor=!1,delete i.defaultValue;var l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var f=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=f.shift(),c=f,l=!0}if((r=t(s.call(this,n[1].trim(),i),i))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=Wn(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),l&&(r=c.reduce((function(e,t){return o.format(e,t,a.lng,u(u({},a),{},{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}])}();function gr(e){var t={};return function(n,r,i){var o=r+JSON.stringify(i),a=t[o];return a||(a=e(tr(r),i),t[o]=a),a(n)}}var mr=function(){return O((function e(){_(this,e);var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=zn.create("formatter"),this.options=t,this.formats={number:gr((function(e,t){var n=new Intl.NumberFormat(e,u({},t));return function(e){return n.format(e)}})),currency:gr((function(e,t){var n=new Intl.NumberFormat(e,u(u({},t),{},{style:"currency"}));return function(e){return n.format(e)}})),datetime:gr((function(e,t){var n=new Intl.DateTimeFormat(e,u({},t));return function(e){return n.format(e)}})),relativetime:gr((function(e,t){var n=new Intl.RelativeTimeFormat(e,u({},t));return function(e){return n.format(e,t.range||"day")}})),list:gr((function(e,t){var n=new Intl.ListFormat(e,u({},t));return function(e){return n.format(e)}}))},this.init(t)}),[{key:"init",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=gr(t)}},{key:"format",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return t.split(this.formatSeparator).reduce((function(e,t){var o=function(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);"currency"===t&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):"relativetime"===t&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach((function(e){if(e){var t=a(e.split(":")),r=t[0],i=t.slice(1).join(":").trim().replace(/^'+|'+$/g,""),o=r.trim();n[o]||(n[o]=i),"false"===i&&(n[o]=!1),"true"===i&&(n[o]=!0),isNaN(i)||(n[o]=parseInt(i,10))}}))}return{formatName:t,formatOptions:n}}(t),s=o.formatName,c=o.formatOptions;if(r.formats[s]){var l=e;try{var f=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},d=f.locale||f.lng||i.locale||i.lng||n;l=r.formats[s](e,d,u(u(u({},c),i),f))}catch(e){r.logger.warn(e)}return l}return r.logger.warn("there was no format function for "+s),e}),e)}}])}(),yr=function(e){function t(e,n,r){var i;_(this,t);var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(i=g(this,t)).backend=e,i.store=n,i.services=r,i.languageUtils=r.languageUtils,i.options=o,i.logger=zn.create("backendConnector"),i.waitingReads=[],i.maxParallelReads=o.maxParallelReads||10,i.readingCalls=0,i.maxRetries=o.maxRetries>=0?o.maxRetries:5,i.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,o.backend,o),i}return x(t,e),O(t,[{key:"queueLoad",value:function(e,t,n,r){var i=this,o={},a={},s={},u={};return e.forEach((function(e){var r=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&i.store.hasResourceBundle(e,t)?i.state[s]=2:i.state[s]<0||(1===i.state[s]?void 0===a[s]&&(a[s]=!0):(i.state[s]=1,r=!1,void 0===a[s]&&(a[s]=!0),void 0===o[s]&&(o[s]=!0),void 0===u[t]&&(u[t]=!0)))})),r||(s[e]=!0)})),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(u)}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),i=r[0],o=r[1];t&&this.emit("failedLoading",i,o,t),n&&this.store.addResourceBundle(i,o,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){!function(e,t,n,r){var i=Gn(e,t,Object),o=i.obj,a=i.k;o[a]=o[a]||[],o[a].push(n)}(n.loaded,[i],o),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]={});var t=n.loaded[e];t.length&&t.forEach((function(t){void 0===a[e][t]&&(a[e][t]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads)this.waitingReads.push({lng:e,ns:t,fcName:n,tried:i,wait:o,callback:a});else{this.readingCalls++;var s=function(s,u){if(r.readingCalls--,r.waitingReads.length>0){var c=r.waitingReads.shift();r.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}s&&u&&i<r.maxRetries?setTimeout((function(){r.read.call(r,e,t,n,i+1,2*o,a)}),o):a(s,u)},u=this.backend[n].bind(this.backend);if(2!==u.length)return u(e,t,s);try{var c=u(e,t);c&&"function"==typeof c.then?c.then((function(e){return s(null,e)})).catch(s):s(null,c)}catch(e){s(e)}}}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var o=this.queueLoad(e,t,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(o," for language ").concat(i," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(o," for language ").concat(i),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){var s=u(u({},o),{},{isUpdate:i}),c=this.backend.create.bind(this.backend);if(c.length<6)try{var l;(l=5===c.length?c(e,t,n,r,s):c(e,t,n,r))&&"function"==typeof l.then?l.then((function(e){return a(null,e)})).catch(a):a(null,l)}catch(e){a(e)}else c(e,t,n,r,a,s)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}])}(Vn);function br(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"==I(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"==I(e[2])||"object"==I(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function xr(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function wr(){}var _r=function(e){function t(){var e;_(this,t);var n,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if((e=g(this,t)).options=xr(r),e.services={},e.logger=zn,e.modules={external:[]},n=y(e),Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((function(e){"function"==typeof n[e]&&(n[e]=n[e].bind(n))})),i&&!e.isInitialized&&!r.isClone){if(!e.options.initImmediate)return m(e,(e.init(r,i),y(e)));setTimeout((function(){e.init(r,i)}),0)}return e}return x(t,e),O(t,[{key:"init",value:function(){var e=this,t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof n&&(r=n,n={}),!n.defaultNS&&!1!==n.defaultNS&&n.ns&&("string"==typeof n.ns?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));var i=br();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options=u(u(u({},i),this.options),xr(n)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=u(u({},i.interpolation),this.options.interpolation)),void 0!==n.keySeparator&&(this.options.userDefinedKeySeparator=n.keySeparator),void 0!==n.nsSeparator&&(this.options.userDefinedNsSeparator=n.nsSeparator),!this.options.isClone){var a;this.modules.logger?zn.init(o(this.modules.logger),this.options):zn.init(null,this.options),this.modules.formatter?a=this.modules.formatter:"undefined"!=typeof Intl&&(a=mr);var s=new sr(this.options);this.store=new nr(this.options.resources,this.options);var c=this.services;c.logger=zn,c.resourceStore=this.store,c.languageUtils=s,c.pluralResolver=new pr(s,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!a||this.options.interpolation.format&&this.options.interpolation.format!==i.interpolation.format||(c.formatter=o(a),c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new vr(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new yr(o(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",(function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];t.emit.apply(t,[e].concat(r))})),this.modules.languageDetector&&(c.languageDetector=o(this.modules.languageDetector),c.languageDetector.init&&c.languageDetector.init(c,this.options.detection,this.options)),this.modules.i18nFormat&&(c.i18nFormat=o(this.modules.i18nFormat),c.i18nFormat.init&&c.i18nFormat.init(this)),this.translator=new or(this.services,this.options),this.translator.on("*",(function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];t.emit.apply(t,[e].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.format=this.options.interpolation.format,r||(r=wr),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.length>0&&"dev"!==l[0]&&(this.options.lng=l[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((function(n){e[n]=function(){var e;return(e=t.store)[n].apply(e,arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((function(n){e[n]=function(){var e;return(e=t.store)[n].apply(e,arguments),t}}));var f=Hn(),d=function(){var t=function(t,n){e.isInitializing=!1,e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),f.resolve(n),r(t,n)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),f}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wr,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return n();var i=[],o=function(e){e&&"cimode"!==e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){"cimode"!==e&&i.indexOf(e)<0&&i.push(e)}))};r?o(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(e){return o(e)})),this.options.preload&&this.options.preload.forEach((function(e){return o(e)})),this.services.backendConnector.load(i,this.options.ns,(function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),n(e)}))}else n(null)}},{key:"reloadResources",value:function(e,t,n){var r=Hn();return e||(e=this.languages),t||(t=this.options.ns),n||(n=wr),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&rr.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var n=this.languages[t];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(e,t){var n=this,r=this;this.isLanguageChangingTo=e;var i=Hn();this.emit("languageChanging",e);var o=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},a=function(e,a){a?(o(a),n.translator.changeLanguage(a),n.isLanguageChangingTo=void 0,n.emit("languageChanged",a),n.logger.log("languageChanged",a)):n.isLanguageChangingTo=void 0,i.resolve((function(){return r.t.apply(r,arguments)})),t&&t(e,(function(){return r.t.apply(r,arguments)}))},s=function(t){e||t||!n.services.languageDetector||(t=[]);var r="string"==typeof t?t:n.services.languageUtils.getBestMatchFromCodes(t);r&&(n.language||o(r),n.translator.language||n.translator.changeLanguage(r),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage&&n.services.languageDetector.cacheUserLanguage(r)),n.loadResources(r,(function(e){a(e,r)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(e):s(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(e,t,n){var r=this,i=function(e,t){var o;if("object"!=I(t)){for(var a=arguments.length,s=new Array(a>2?a-2:0),c=2;c<a;c++)s[c-2]=arguments[c];o=r.options.overloadTranslationOptionHandler([e,t].concat(s))}else o=u({},t);o.lng=o.lng||i.lng,o.lngs=o.lngs||i.lngs,o.ns=o.ns||i.ns,o.keyPrefix=o.keyPrefix||n||i.keyPrefix;var l,f=r.options.keySeparator||".";return l=o.keyPrefix&&Array.isArray(e)?e.map((function(e){return"".concat(o.keyPrefix).concat(f).concat(e)})):o.keyPrefix?"".concat(o.keyPrefix).concat(f).concat(e):e,r.t(l,o)};return"string"==typeof e?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=n.lng||this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!this.hasResourceBundle(r,e)||!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!a(r,e)||i&&!a(o,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=Hn();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=this,r=Hn();"string"==typeof e&&(e=[e]);var i=this.options.preload||[],o=e.filter((function(e){return i.indexOf(e)<0&&n.services.languageUtils.isSupportedCode(e)}));return o.length?(this.options.preload=i.concat(o),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";var t=this.services&&this.services.languageUtils||new sr(br());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:wr,i=n.forkResourceStore;i&&delete n.forkResourceStore;var o=u(u(u({},this.options),n),{},{isClone:!0}),a=new t(o);return void 0===n.debug&&void 0===n.prefix||(a.logger=a.logger.clone(n)),["store","services","language"].forEach((function(t){a[t]=e[t]})),a.services=u({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},i&&(a.store=new nr(this.store.data,o),a.services.resourceStore=a.store),a.translator=new or(a.services,o),a.translator.on("*",(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];a.emit.apply(a,[e].concat(n))})),a.init(o,r),a.translator.options=o,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}],[{key:"createInstance",value:function(){return new t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}}])}(Vn),Sr=_r.createInstance();Sr.createInstance=_r.createInstance,Sr.createInstance,Sr.dir,Sr.init,Sr.loadResources,Sr.reloadResources,Sr.use,Sr.changeLanguage,Sr.getFixedT,Sr.t,Sr.exists,Sr.setDefaultNamespace,Sr.hasLoadedNamespace,Sr.loadNamespaces,Sr.loadLanguages;var Or=n(52),kr=n(131),Er=n(274),jr=n.n(Er),Tr=n(438),Cr=n.n(Tr),Ar=n(439),Pr=n.n(Ar),Mr=n(440),Ir=n.n(Mr),Rr=n(441),Dr=n(11),Lr=w.a.memo((function(){return w.a.createElement("div",{className:"spinnerThreeBounce"},w.a.createElement("div",{className:"bounce bounce1"}),w.a.createElement("div",{className:"bounce bounce2"}),w.a.createElement("div",{className:"bounce bounce3"}))})),Nr=n(170),Fr=n.n(Nr),Br=n(53),Ur=n.n(Br),zr=n(47),Vr=n.n(zr),Hr=n(71),Wr=n(442),qr=n(443),Gr=n(444),Yr=n(445),Kr=n(446),$r=n.n(Kr),Xr=n(447),Qr=function(e,t,n){var r;return function(){var i=this,o=arguments,a=function(){r=null,n||e.apply(i,o)},s=n&&!r;clearTimeout(r),r=setTimeout(a,t),s&&e.apply(i,o)}};function Zr(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 Jr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zr(Object(n),!0).forEach((function(t){v()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ei={MSEPlayer:Wr.MSEPlayer,HLSPlayer:qr.HLSPlayer,WebRTCPlayer:Gr.WebRTCPlayer,NativeiOSPlayer:Yr.NativeiOSPlayer},ti=function(e){function t(){var e;return p()(this,t),(e=function(e,t,n){return t=Dn()(t),In()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return!!e}()?Reflect.construct(t,n||[],Dn()(e).constructor):t.apply(e,n))}(this,t)).playEnded=e.playEnded.bind(e),e.getMetadata=e.getMetadata.bind(e),e.changeSpeed=e.changeSpeed.bind(e),e.play=e.play.bind(e),e.getPlayListUrl=e.getPlayListUrl.bind(e),e._getPlayListUrl=e._getPlayListUrl.bind(e),e.handleFullScreen=e.handleFullScreen.bind(e),e.handleTouchEnd=e.handleTouchEnd.bind(e),e.handlePause=e.handlePause.bind(e),e.onHlsEvent=e.onHlsEvent.bind(e),e.takeSnapshot=e.takeSnapshot.bind(e),e.setSnapshotRef=e.setSnapshotRef.bind(e),e.calculatePos=e.calculatePos.bind(e),e.resetZoom=e.resetZoom.bind(e),e.refreshZoom=Qr(e.refreshZoom.bind(e),150),e.setRef=e.setRef.bind(e),e.state={tracks:[],streams:[],videoStream:{},audioStream:{},utc_timer:void 0,noDvrHere:!1,shouldStartPlay:!1,scale:1,isSelected:!1,currentHlsPosition:null,shouldChangeTracks:!1,players:[],noLive:!1,noVideo:!1},e.lastTap=0,e}return Nn()(t,e),f()(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.currentTime,n=e.selected,r=e.name,i=e.returnData;this._video&&(this._video.addEventListener("ended",this.playEnded,!1),this._video.addEventListener("touchend",this.handleTouchEnd),this._video.controls=!1),t&&"stop"!==t&&this.play(t),n===r&&(this.setState({isSelected:!0}),i("playerRef",this))}},{key:"componentWillUpdate",value:function(e,t){var n=this.props,r=n.currentTime,i=n.networkError,o=n.noDVR,a=n.streamIsLive,s=n.returnData,u=e.currentTime,c=e.networkError,l=e.playSegmentDuration;if(!a&&e.streamIsLive&&this.setState({noDvrHere:!1}),r&&r!==u&&"stop"!==u)this.setState({noDvrHere:!1,noLive:!1}),this.play(u,l);else if(r!==u)if("stop"===u)o||s("playerReady",!0,this.props.name),this.setState({players:[],noDvrHere:!0});else if(!(u<=r+5||u>=r-5)){if(this.props.noDVR&&"live"!==u)return;this.setState({noDvrHere:!1,noLive:!1}),this.play(u,l)}if("stop"===r&&"stop"!==u&&this.setState({noDvrHere:!1}),this.props.playback_speed!==e.playback_speed&&this.changeSpeed(e.playback_speed),this.props.paused!==e.paused&&("live"===e.currentTime&&!0===e.paused&&s("livePausedAt",Math.round(this.state.snapshotTime)),this.handlePause()),i!==c&&c&&s("playerReady",!0,this.props.name),this.props.playerType!==e.playerType&&this.play(u,l),""!==e.fastSeekingTo){if(this.currentFastSeek===e.fastSeekingTo)return;this.currentFastSeek=e.fastSeekingTo,"forward"===e.fastSeekingTo?this._video.currentTime+=10:"backward"===e.fastSeekingTo&&(this._video.currentTime-=10),s("fastSeekingTo","")}else this.currentFastSeek=""}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.currentTime,i=n.streamIsLive,o=n.selected,a=n.name,s=this.state,u=s.shouldStartPlay,c=s.noLive;e.volume!==this.props.volume&&this._video&&(this._video.volume=this.props.volume/100),(!t.shouldStartPlay&&u||u&&"live"===r&&i&&!e.streamIsLive)&&this.play("live"),e.selected!==o&&(o===a?this.setState({isSelected:!0}):this.setState({isSelected:!1})),!t.noLive&&c&&this.setState({players:t.players.filter((function(){return null}))})}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.refreshZoom),this.zoomElement&&this.zoomElement.dispose(),this._video&&(this._video.removeEventListener("ended",this.playEnded,!1),this._video.removeEventListener("touchend",this.handleTouchEnd),this._video.removeEventListener("error",this.onError),this._video.ontimeupdate=null,this._video.pause(),this._video.removeAttribute("src"),this._video.load(),delete this._video)}},{key:"componentDidCatch",value:function(){console.error("CATCH AN ERROR!")}},{key:"playEnded",value:function(){this.props.returnData("playingTimeForPlayers","stop",this.props.name),this.props.returnData("playerReady",!0,this.props.name)}},{key:"handleTouchEnd",value:function(e){var t=this,n=(new Date).getTime(),r=n-this.lastTap;clearTimeout(this.timeout),r<500&&r>0?(e.preventDefault(),this.handleFullScreen()):this.timeout=setTimeout((function(){clearTimeout(t.timeout)}),500),this.lastTap=n}},{key:"getMetadata",value:function(){return{width:this._video?this._video.videoWidth:0,height:this._video?this._video.videoHeight:0}}},{key:"changeSpeed",value:function(e){"live"!==this.props.currentTime&&this.onHlsEvent({key:Date.now(),data:{event:"play_options",type:"hls_dvr",speed:e}})}},{key:"play",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=this.props,i=r.name,o=r.debug,a=r.debugTimers,s=r.networkError,u=r.onMediaInfo,c=r.selected,l=r.playerType,f=r.tracksAudio,d=r.multiStream,p=r.autoVideoTrack,h=r.newTracks,g=r.streamer_http,m=r.auth_token,y=r.returnData,b=r.ui,x=this.state,w=x.players,_=x.shouldChangeTracks;if(o&&console.log("[dvr]: play",e,i),a&&(console.timeEnd("[DVRPlayer]: Init Time"),console.time("[DVRPlayer]: Player component play() start")),e&&"stop"!==e&&!s){window.removeEventListener("resize",this.refreshZoom);var S="live"===e;this._video=null,y("playerLink",null);var O={name:i,currentTime:e,onMediaInfo:u,setRef:this.setRef,isSelected:c===i,handleFullScreen:this.handleFullScreen,newTracks:h,debug:o,debugTimers:a},k=this.getPlayListUrl(e,S?void 0:n,S);if(!Dr.default.isIOS()||"MediaSource"in window||"webrtc"===l)if(S&&"mse"===l)k=this.getMseUrl(),w.push(Jr(Jr({type:"MSEPlayer",url:k,onEvent:this.onHlsEvent,tracksAudio:f,multiStream:d,shouldChangeTracks:_,setNoLiveError:function(e){t.setState({noLive:e})},setNoVideoError:function(e){t.setState({noVideo:e})}},O),{},{key:"mse_player_".concat(e,"_").concat(w.length+1)}));else if(S&&"webrtc"===l){var E="".concat(g,"/").concat(i),j=Object(Cn.decode)(m),T=Object.keys(j),C=Ur()(T,1),A=C[0];w.push(Jr(Jr({type:"WebRTCPlayer",url:E,onEvent:this.onHlsEvent,tracksAudio:f,multiStream:d,shouldChangeTracks:_,authTokenName:A,tokenValue:j[A]},O),{},{key:"webrtc_player_".concat(e,"_").concat(w.length+1)}))}else w.push(Jr(Jr(v()(v()({type:"HLSPlayer",url:k,onHlsEvent:this.onHlsEvent,setNoLiveError:function(e){t.setState({noLive:e})},autoVideoTrack:p,ottConfig:"ott"===b},"setNoLiveError",(function(e){t.setState({noLive:e})})),"setNoVideoError",(function(e){t.setState({noVideo:e})})),O),{},{key:"hls_player_".concat(e,"_").concat(w.length+1)}));else w.push(Jr(Jr({type:"NativeiOSPlayer",url:k,setNoLiveError:function(e){t.setState({noLive:e})}},O),{},{key:"ios_player_".concat(e,"_").concat(w.length+1)}));w=w.filter((function(e,t){if(t===w.length-1)return e})),this.setState({players:w})}}},{key:"getPlayListUrl",value:function(e,t,n){var r=this.props,i=r.name,o=r.streamer_http,a=r.auth_token,s=r.basicApiConfig,u=r.token,c=s.params,l=t||3600;return this._getPlayListUrl(o,i,e,l,a||Object(Cn.stringify)(c),n,u)}},{key:"_getPlayListUrl",value:function(e,t,n,r,i,o,a){var s="string"==typeof i&&i.trim().length>0?"?".concat(i):a?"?token=".concat(a):"";return r>3600&&(r=3600),"".concat(e,"/").concat(t,"/index").concat(o?"":"-".concat(n,"-").concat(r),".fmp4.m3u8").concat(s)}},{key:"getMseUrl",value:function(){var e=this.props,t=e.name,n=e.streamer_http,r=e.auth_token,i=e.tracks,o=e.basicApiConfig.params;return"".concat(n.replace(/^http/,"ws"),"/").concat(t,"/mse_ld?").concat([r||Object(Cn.stringify)(o),i].filter((function(e){return e})).join("&"))}},{key:"handleFullScreen",value:function(){this.props.allowFullscreen}},{key:"handlePause",value:function(){var e=this.props.paused;this._video&&this._video&&(e?(this._video.play(),this.onHlsEvent({key:Date.now(),data:{event:"play_resume"}})):(this._video.pause(),this.onHlsEvent({key:Date.now(),data:{event:"play_pause"}})))}},{key:"takeSnapshot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.snapshotRef,n=this._video,r=t.getContext("2d"),i=n.videoWidth,o=n.videoHeight;return t.width=i,t.height=o,r.fillRect(0,0,i,o),r.drawImage(n,0,0,i,o),new Promise((function(n,r){t.toBlob((function(t){if(!t)return r();Object(Xr.saveAs)(t,"snapshot_".concat(e,".png")),n()}))}))}},{key:"setSnapshotRef",value:function(e){!this.snapshotRef&&e&&(this.snapshotRef=e)}},{key:"setRef",value:function(e){var t=this,n=this.props,r=n.setPlayersRef,i=n.name,o=n.panzoomEnable;if(this._video&&(this._video=null),e&&(this._video=e,r(i,e)),o)try{this.zoomElement=$r()(e,{maxZoom:10,minZoom:1,smoothScroll:!1,zoomDoubleClickSpeed:1,filterKey:function(){return!0},onDoubleClick:function(e){return!1}}),this.zoomElement.on("transform",(function(e){t.calculatePos(e)})),window.addEventListener("resize",this.refreshZoom),this.zoomElement.smoothZoomAbs(0,0,1)}catch(e){return}}},{key:"calculatePos",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(t)e=t.getTransform();else{if(!this.zoomElement)return;e=this.zoomElement.getTransform()}var n=function(e){return Math.floor(100*e)/100};if(e){var r=e,i=r.x,o=r.y,a=r.scale;this.setState({scale:n(a)});var s=i,u=o,c=!1;if(!this.wrapper)return;if(!this._video)return;var l=this.wrapper.getBoundingClientRect(),f=this._video.getBoundingClientRect();if(Math.round(f.left)>Math.round(l.left)&&(s=l.left-l.x,c=!0),Math.round(f.top)>Math.round(l.top)&&(u=l.top-l.y,c=!0),Math.round(f.right)<Math.round(l.right)&&(s=l.right-l.left-f.width,c=!0),Math.round(f.bottom)<Math.round(l.bottom)&&(u=l.bottom-f.height,c=!0),Math.round(f.width)<Math.round(l.width)&&(s=(l.width-f.width)/2,c=!0),Math.round(f.height)<Math.round(l.height)&&(u=(l.height-f.height)/2,c=!0),c){if(n(s)===n(i)&&n(u)===n(o))return;this.zoomElement.moveTo(s,u)}}}},{key:"resetZoom",value:function(e){e.stopPropagation(),this.zoomElement&&(this.zoomElement.smoothZoomAbs(0,0,1),this.zoomElement.moveTo(0,0),this.zoomElement.moveBy(0,0,!1))}},{key:"refreshZoom",value:function(){this.calculatePos()}},{key:"onHlsEvent",value:function(e){var t=this.props,n=t.onEvent,r=t.name;n&&n(r,e)}},{key:"render",value:function(){var e,t,n,r,i,o,a,s,u=this,c=this.state,l=c.scale,f=c.players,d=c.noLive,p=this.props,h=p.currentTime,v=p.name,g=p.t,m=p.returnData,y=p.muted,x=p.paused,_=p.newTracks,S=p.playback_speed,O=p.ui,k=d||this.props.noDVR&&"live"!==h||this.state.noDvrHere&&!this.props.noDVR&&"live"!==h,E=f.map((function(e){var t=ei[e.type];return w.a.createElement(t,Fr()({},e,{muted:y,paused:x,newTracks:_,speed:S,returnData:m}))})),j=w.a.createElement("div",{className:"dvr-player-wrapper",ref:function(e){u.wrapper=e},style:!1===this.props.panzoomEnable?{display:"flex",justifyContent:"center",alignItems:"center"}:null},this.zoomElement&&1!==l?w.a.createElement("button",{className:"resetZoomBtn",onMouseDown:this.resetZoom,onTouchEnd:this.resetZoom},w.a.createElement(ri,null)):null,w.a.createElement("div",{className:"no-live-wrapper","data-cy":"playErrorWraper",style:{opacity:"".concat(k?"1":"0"),fontSize:"14px"}},(t=(e=u.props).noAuth,n=e.networkError,r=e.noDVR,o=(i=u.state).noDvrHere,a=i.noVideo,s=[],t?s=[].concat(Pn()(s),[w.a.createElement("p",{key:"forbidden_".concat(v)},g("dvr_mse_forbidden"))]):(n&&(s=[].concat(Pn()(s),[w.a.createElement("p",{key:"caution_networkError_".concat(v)},g("dvr_mse_network_error"))])),d&&(s=[].concat(Pn()(s),[w.a.createElement("p",{key:"caution_noLive_".concat(v)},g("dvr_mse_no_live_stream"))])),r&&"ott"!==O&&"live"!==h&&(s=[].concat(Pn()(s),[w.a.createElement("p",{key:"caution_currentTime_".concat(v)},g("dvr_mse_no_dvr"))])),!o||r||a||(s=[].concat(Pn()(s),[w.a.createElement("p",{key:"caution_noDvrHere_".concat(v)},g("dvr_mse_no_dvr_recording_here"))])),a&&(s=[].concat(Pn()(s),[w.a.createElement("p",{key:"caution_noVideo_".concat(v)},g("dvr_error_video_stream"))]))),s)),E,w.a.createElement("canvas",{className:"dvr-player-snapshot",style:{display:"none"},ref:this.setSnapshotRef}));return w.a.createElement(b.Fragment,null,"function"==typeof this.props.customItemWrapper?this.props.customItemWrapper(j,this.props.item,this.props.index):j)}}])}(b.Component);ti.propTypes={returnData:Bn.a.func.isRequired,playback_speed:Bn.a.number,currentTime:Bn.a.oneOfType([Bn.a.number,Bn.a.string]),muted:Bn.a.bool.isRequired,volume:Bn.a.number,streamer_http:Bn.a.string.isRequired,name:Bn.a.string.isRequired,selected:Bn.a.string,auth_token:Bn.a.string,paused:Bn.a.bool,debug:Bn.a.bool,debugTimers:Bn.a.bool,tracks:Bn.a.string,onPlayingChangeHandler:Bn.a.func,onProgress:Bn.a.func,onSpeedChanged:Bn.a.func,changeUTC:Bn.a.func,hls:Bn.a.bool,noDVR:Bn.a.bool,networkError:Bn.a.bool,panzoomEnable:Bn.a.bool,playerType:Bn.a.string,index:Bn.a.number,item:Bn.a.shape({}),multiStream:Bn.a.bool,fastSeekingTo:Bn.a.string,from:Bn.a.number,onEvent:Bn.a.func,setPlayersRef:Bn.a.func,fixedRange:Bn.a.bool,ui:Bn.a.oneOf(["ott","nvr"]),startingUTC:Bn.a.number,allowFullscreen:Bn.a.bool,autoVideoTrack:Bn.a.bool,streamIsLive:Bn.a.bool,browser:Bn.a.string,playSegmentDuration:Bn.a.number,newTracks:Bn.a.array,basicApiConfig:Bn.a.shape({token:Bn.a.string,tokenName:Bn.a.string,auth_token:Bn.a.string,streamer_http:Bn.a.string})},ti.defaultProps={muted:!0,allowFullscreen:!0,playback_speed:1};var ni=Object(Hr.withTranslation)()(ti),ri=Vr()({displayName:"ResetZoomBtn",render:function(){return w.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 8.467 7.753",style:{width:"24px",height:"24px"},fill:"#fff"},w.a.createElement("defs",null),w.a.createElement("path",{d:"M7.32 7.712c-.057-.023-.533-.465-1.058-.983l-.954-.94-.198.125c-.7.444-1.668.575-2.514.34-.49-.136-1.19-.534-1.19-.678 0-.083.596-.558.7-.558.035 0 .147.048.25.107.311.18.694.278 1.081.278.67 0 1.184-.215 1.622-.682.677-.72.82-1.69.379-2.565A2.235 2.235 0 003.452.948c-.409 0-.708.076-1.08.272-.246.13-.751.574-.751.66 0 .05.245.095.52.096.223 0 .307.068.286.23-.017.13-1.63 1.655-1.75 1.655-.067 0-.213-.103-.213-.15 0-.009-.106-.47-.235-1.026-.246-1.056-.27-1.215-.184-1.3.059-.06.212-.068.272-.015.022.02.11.078.196.129l.156.093.137-.214c.239-.372.762-.824 1.21-1.045.51-.252.876-.337 1.447-.334C4.707.003 5.756.66 6.314 1.784c.257.516.331.887.308 1.542-.015.417-.04.578-.136.856l-.118.343 1.03 1.007c.9.88 1.033 1.027 1.058 1.169.105.595-.602 1.224-1.135 1.011z"}))}}),ii=function(){return w.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",style:{width:"20%",height:"20%",position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",zIndex:1},fill:"#fff"},w.a.createElement("circle",{cx:"30",cy:"30",r:"30",fill:"gray",opacity:"0.7"}),w.a.createElement("path",{d:"M45.563 29.174l-22-15A1 1 0 0022 15v30a.999.999 0 001.563.826l22-15a1 1 0 000-1.652z",fill:"#fff"}),w.a.createElement("path",{d:" M30 0C13.458 0 0 13.458 0 30s13.458 30 30 30 30-13.458 30-30S46.542 0 30 0zm0 58C14.561 58 2 45.439 2 30S14.561 2 30 2s28 12.561 28 28 -12.561 28-28 28z ",fill:"none"}))},oi=Vr()({displayName:"LtBtn",className:"LtBtn",render:function(){return w.a.createElement("i",{style:{width:"14px",height:"14px"}},w.a.createElement("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"#fff",style:{width:"14px",height:"14px"},viewBox:"0 0 14 14"},w.a.createElement("path",{fill:"none",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3",d:"M9 2L4 7l5 5h0"})))}}),ai=w.a.memo(oi),si=Vr()({displayName:"GtBtn",className:"GtBtn",render:function(){return w.a.createElement("i",{style:{width:"14px",height:"14px"}},w.a.createElement("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"#fff",style:{width:"14px",height:"14px"},viewBox:"0 0 14 14"},w.a.createElement("path",{fill:"none",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3",d:"M5 2l5 5-5 5h0"})))}}),ui=w.a.memo(si),ci=function(e){function t(){return p()(this,t),function(e,t,n){return t=Dn()(t),In()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return!!e}()?Reflect.construct(t,n||[],Dn()(e).constructor):t.apply(e,n))}(this,t,arguments)}return Nn()(t,e),f()(t,[{key:"render",value:function(){var e=this.props.frameSeek;return w.a.createElement("div",{className:"seekContainer"},w.a.createElement("div",{className:"buttonGroup"},w.a.createElement("button",{"data-cy":"btnFiveFramesBack",onTouchEnd:function(t){t.stopPropagation(),e(-5)},onMouseUp:function(t){t.stopPropagation(),e(-5)}},w.a.createElement(ai,null),w.a.createElement("b",null,"5")),w.a.createElement("button",{"data-cy":"btnFrameBack",onTouchEnd:function(t){t.stopPropagation(),e(-1)},onMouseUp:function(t){t.stopPropagation(),e(-1)}},w.a.createElement(ai,null)),w.a.createElement("div",null),w.a.createElement("button",{"data-cy":"btnFrameForward",onTouchEnd:function(t){t.stopPropagation(),e(1)},onMouseUp:function(t){t.stopPropagation(),e(1)}},w.a.createElement(ui,null)),w.a.createElement("button",{"data-cy":"btnFiveFramesForward",onTouchEnd:function(t){t.stopPropagation(),e(5)},onMouseUp:function(t){t.stopPropagation(),e(5)}},w.a.createElement("b",null,"5"),w.a.createElement(ui,null))))}}])}(b.Component);ci.propTypes={frameSeek:Bn.a.func.isRequired};var li,fi=ci,di=n(224),pi=n(448),hi=n.n(pi),vi=n(449),gi=function(){return w.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 60 60",style:{width:"20%",height:"20%",position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",zIndex:1},fill:"#fff"},w.a.createElement("circle",{cx:"30",cy:"30",r:"30",fill:"gray",opacity:"0.7"}),w.a.createElement("path",{d:"M22 15h6v30h-6zM32 15h6v30h-6z",fill:"#fff"}))},mi=(n(1010),function(e){var t=e.direction,n=e.seek,r=e.isAnimating;return w.a.createElement("div",{className:"arrow-effect ".concat(t," ").concat(r?"animate":"")},w.a.createElement("div",{className:"arrows"},w.a.createElement("div",{className:"arrow-triangle"}),w.a.createElement("div",{className:"arrow-triangle"}),w.a.createElement("div",{className:"arrow-triangle"})),w.a.createElement("div",{className:"time-label"},"left"===t?"-".concat(n," сек"):"+".concat(n," сек")))}),yi=n(275),bi=n.n(yi);function xi(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 wi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xi(Object(n),!0).forEach((function(t){v()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _i=function(e){function t(){var e;return p()(this,t),e=function(e,t,n){return t=Dn()(t),In()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return!!e}()?Reflect.construct(t,n||[],Dn()(e).constructor):t.apply(e,n))}(this,t),v()(e,"handleChildClick",(function(){setTimeout(e.handleTogglePlayer,0)})),e.packPlayers=e.packPlayers.bind(e),e.autoFormatPlayers=e.autoFormatPlayers.bind(e),e.selectPlayer=e.selectPlayer.bind(e),e.setPlayersRef=e.setPlayersRef.bind(e),e.frameSeek=e.frameSeek.bind(e),e.handleTogglePlayer=e.handleTogglePlayer.bind(e),e.callIfMouseStill=bi()(e.handleChildClick),e.callIfTouchStill=bi()(e.handleTogglePlayer),e.state={rows:0,cols:0,autoformat:!1,streamsNum:0,playersRefs:{},showArrow:!1,arrowDirection:""},e.autoPlayChecked=!1,e}return Nn()(t,e),f()(t,[{key:"componentDidMount",value:function(){var e=this.props.streamingChannels;if(e&&(e.rows?this.setState({rows:e.rows}):this.setState({autoformat:!0}),e.cols?this.setState({cols:e.cols}):this.setState({autoformat:!0}),e.streams)){var t=Object.keys(e.streams).length;this.setState({streamsNum:t}),this.autoFormatPlayers(t)}}},{key:"componentWillReceiveProps",value:function(e){if(e.streamingChannels.streams){var t=Object.keys(e.streamingChannels.streams).length;t!==this.state.streamsNum&&0!==this.state.streamsNum&&(this.autoFormatPlayers(t),this.setState({streamsNum:t}))}}},{key:"setPlayersRef",value:function(e,t){var n=this.state.playersRefs;n[e]=t,this.setState({playersRefs:n})}},{key:"frameSeek",value:function(e){var t=this.state.playersRefs;Object.keys(t).forEach((function(n){t[n].currentTime=t[n].currentTime+e/30}))}},{key:"packPlayers",value:function(){var e=this,t=this.state,n=t.rows,r=t.cols,i=this.props,o=i.returnData,a=i.playback_speed,s=i.playerType,u=i.name,c=i.autoPlay,l=i.token,f=i.muted,d=i.paused,p=i.debug,h=i.debugTimers,v=i.streamingChannels,g=i.isStalling,m=i.allRanges,y=i.onMediaInfo,x=i.customItemWrapper,_=i.showPlayButton,S=i.volume,O=i.getStats,k=i.onEvent,E=i.noAuth,j=i.onDoubleClick,T=i.autoVideoTrack,C=i.streamIsLive,A=i.browser,P=i.isPlaying,M=i.logoProperties,I=i.basicApiConfig,R=i.playSegmentDurationForPlayers,D=i.dvr_enabled,L=i.newTracks,N=i.ui,F=i.from,B=i.selected,U=i.advert,z=i.showSelectedOnly,V=v.streams[0],H={name:V.subName,address:V.address||"",auth_token:V.auth_token||"",hidden:!_&&!g,hasPreview:!1,basicApiConfig:I},W=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:w.a.createElement(ii,null);return w.a.createElement("div",{"data-cy":"clickToPlay",className:t,onClick:e.props.onClickToPlay},n)},q=function(){return U.length>0&&w.a.createElement(vi.Advert,{advert:U,returnData:o,onEvent:k})};if(_)return"ott"===N&&void 0===F?w.a.createElement(b.Fragment,null,q(),W("clickToPlay zIndexMax"),w.a.createElement(di.Preview,H)):"ott"===N?w.a.createElement(b.Fragment,null,q(),W("clickToRestart",w.a.createElement("span",{className:"icon-one"})),w.a.createElement(di.Preview,Fr()({},H,{from:F}))):W("clickToPlay");var G=function(t){var n={};switch(t){case"mse":n.tracks=e.props.tracks}return n}(s);return v.streams.map((function(t,i){var b=B===t.subName;return t.subName?Object.keys(t).length?w.a.createElement("div",{className:"PlayerInstance".concat(b?" visible":"").concat(z&&!b?" hidden":"").concat(z&&b?" fullscreen":""),onClick:e.selectPlayer,"data-name":t.subName,style:{width:"".concat(100/r,"%"),height:"".concat(100/n,"%"),order:"".concat(t.order||null)},onDoubleClick:j,key:"player_".concat(t.subName).concat(i)},!1===v.renderTitles||!1===t.renderTitle?null:w.a.createElement("div",{className:"CameraName"},b?w.a.createElement("span",null,"• "):"",t.title?t.title:t.subName),(!P||_)&&!c&&w.a.createElement(di.Preview,{name:t.subName,address:t.address||"",auth_token:t.auth_token||"",hidden:!_&&!g,hasPreview:!1,basicApiConfig:I,from:F}),Object.keys(M).length>0&&M[t.subName]&&w.a.createElement(hi.a,{name:t.subName,logoProperties:M,basicApiConfig:I}),o&&w.a.createElement(ni,Fr()({},wi(wi({},G),{},{name:t.subName||u,main:t.main,item:t,index:i,noDVR:!(!(m&&m[t.subName]&&0==m[t.subName].length||"string"==typeof m[t.subName])&&D),networkError:"string"==typeof m[t.subName],noAuth:E[t.subName]||!1,streamer_http:t.address?t.address:e.props.streamer_http,currentTime:m&&m[t.subName]&&e.props.playingTimeForPlayers&&e.props.playingTimeForPlayers[t.subName]&&0!==m[t.subName].length||e.props.playingTimeForPlayers&&"live"===e.props.playingTimeForPlayers[t.subName]||"ott"===e.props.ui?e.props.playingTimeForPlayers[t.subName]:"stop",playSegmentDuration:R[t.subName],auth_token:t.auth_token?t.auth_token:e.props.auth_token,multiStream:e.state.streamsNum>1,fastSeekingTo:e.props.fastSeekingTo,from:F,fixedRange:e.props.fixedRange,ui:e.props.ui,setPlayersRef:e.setPlayersRef,allowFullscreen:"nvr"===e.props.ui,streamIsLive:C[t.subName],browser:A,returnData:o,playback_speed:a,autoPlay:c,token:l,muted:f,volume:S,debug:p,paused:d,debugTimers:h,selected:e.props.selected,playerType:s,playing:e.props.playingStarted,basicApiConfig:I,isStalling:g,onMediaInfo:y,newTracks:L,panzoomEnable:e.props.panzoom,customItemWrapper:x,onEvent:k,getStats:O,autoVideoTrack:T}),{key:"DvrPlayerWrapper_".concat(t.subName)}))):w.a.createElement("div",{className:"PlayerInstance",style:{width:"".concat(100/r,"%"),maxHeight:"".concat(100/n,"%"),order:"".concat(i)},onDoubleClick:j,key:"empty_player_".concat(i)},"function"==typeof e.props.customItemWrapper?e.props.customItemWrapper(null,null,i):null):null}))}},{key:"autoFormatPlayers",value:function(e){var t=Math.round(Math.sqrt(e)),n=t,r=t;e>t*t&&(n+=1),this.setState({cols:n,rows:r})}},{key:"selectPlayer",value:function(e){var t=e.currentTarget.dataset.name;this.props.returnData("selected",t)}},{key:"showControl",value:function(e){var t=this;switch(e){case"play":this.setState({showPlayButton:!0,showPauseButton:!1});break;case"stop":this.setState({showPlayButton:!1,showPauseButton:!0});break;default:this.hideControls()}this.hideControlsTimeout&&clearTimeout(this.hideControlsTimeout),this.hideControlsTimeout=setTimeout((function(){t.hideControls()}),1500)}},{key:"hideControls",value:function(){this.setState({showPlayButton:!1,showPauseButton:!1}),this.hideControlsTimeout&&(clearTimeout(this.hideControlsTimeout),this.hideControlsTimeout=null)}},{key:"handlePause",value:function(){var e=this.props;(0,e.returnData)("paused",!e.paused)}},{key:"perFrameSeek",value:function(e){var t=this.props,n=t.paused,r=t.seekFrameEnabled,i=t.returnData;n&&!r?i("seekFrameEnabled",!0):(i("seekFrameEnabled",!n),this.handlePause())}},{key:"showArrow",value:function(e,t){var n=this;clearTimeout(this.hideArrowTimeout),clearTimeout(this.animationStartTimeout),this.setState({showArrow:!0,arrowDirection:e,countSeek:t,isAnimating:!1}),this.animationStartTimeout=setTimeout((function(){n.setState({isAnimating:!0}),n.hideArrowTimeout=setTimeout((function(){n.setState({showArrow:!1,isAnimating:!1})}),1e3)}),300)}},{key:"actionTogglePlayPause",value:function(){var e=this.props,t=e.paused,n=e.ui,r=e.live;t?this.showControl("stop"):this.showControl("play"),"ott"===n||r?this.handlePause():this.perFrameSeek()}},{key:"isTouchDevice",value:function(){return"ontouchstart"in window||navigator.maxTouchPoints>0}},{key:"handleTogglePlayer",value:function(e){var t=this,n=this.props,r=n.live,i=n.playerProgressTime,o=n.fastSeek,a=n.onSeek,s=n.ui;if(!1!==n.autoPlay||this.autoPlayChecked)if(this.isTouchDevice()){var u=e.changedTouches[0],c=e.currentTarget.getBoundingClientRect(),l=u.clientX-c.left,f=e.currentTarget.offsetWidth/3,d=Date.now();if(this.lastTap&&d-this.lastTap<300){if(clearTimeout(this.singleTapTimeout),this.hideControls(),"ott"===s)return;this.tapCount&&d-this.lastTap<500?this.tapCount+=1:this.tapCount=1;var p=10*this.tapCount;if(l<f){var h=Math.min(p,i);if(r)return void a(i-60);o(i-h,"backward"),this.showArrow("left",h)}else l>2*f&&(r||o(i+p,"forward"),this.showArrow("right",p));this.lastTap=d}else this.lastTap=d,this.tapCount=0,this.singleTapTimeout=setTimeout((function(){t.actionTogglePlayPause()}),300)}else this.actionTogglePlayPause();else this.autoPlayChecked=!0}},{key:"render",value:function(){var e=this.props,t=e.seekFrameEnabled,n=e.dvr_enabled,r=e.playerType,i=e.currentTime,o=e.ui,a=e.advert,s=this.state,u=s.showArrow,c=s.arrowDirection,l=s.countSeek,f=s.showPauseButton,d=s.showPlayButton,p=s.isAnimating,h="webrtc"===r&&"live"===i;return w.a.createElement("div",{className:"playersContainer".concat(n?"":" large").concat("ott"===o?" ott":""),style:{zIndex:d&&a.length?10:"initial"},onMouseDown:this.callIfMouseStill.handleMouseDown,onMouseMove:this.callIfMouseStill.handleMouseMove,onMouseUp:this.callIfMouseStill.handleMouseUp,onTouchMove:this.callIfTouchStill.handleTouchMove,onTouchEnd:this.callIfTouchStill.handleTouchEnd},t&&!h&&w.a.createElement(fi,{frameSeek:this.frameSeek}),this.packPlayers(),f&&w.a.createElement(gi,null),d&&w.a.createElement(ii,null),u&&w.a.createElement(mi,{direction:c,seek:l,isAnimating:p}))}}])}(b.Component);_i.propTypes=(li={returnData:Bn.a.func.isRequired,playback_speed:Bn.a.number,playerType:Bn.a.string,playingTimeForPlayers:Bn.a.any,debug:Bn.a.bool,debugTimers:Bn.a.bool,autoPlay:Bn.a.bool,muted:Bn.a.bool,name:Bn.a.string,isStalling:Bn.a.bool},v()(v()(v()(v()(v()(v()(v()(v()(v()(v()(li,"debug",Bn.a.bool),"auth_token",Bn.a.any),"streamer_http",Bn.a.string),"paused",Bn.a.bool),"allRanges",Bn.a.any),"noAuth",Bn.a.any),"selected",Bn.a.string),"streamingChannels",Bn.a.shape({cols:Bn.a.number,rows:Bn.a.number,streams:Bn.a.arrayOf(Bn.a.any)})),"onMediaInfo",Bn.a.func),"panzoom",Bn.a.bool),v()(v()(v()(v()(v()(v()(v()(v()(v()(v()(li,"customItemWrapper",Bn.a.func),"showPlayButton",Bn.a.bool),"fastSeekingTo",Bn.a.string),"from",Bn.a.number),"volume",Bn.a.number),"onEvent",Bn.a.func),"getStats",Bn.a.func),"seekFrameEnabled",Bn.a.bool),"fixedRange",Bn.a.bool),"ui",Bn.a.oneOf(["ott","nvr"])),v()(v()(v()(v()(v()(v()(v()(v()(v()(v()(li,"onDoubleClick",Bn.a.func),"newTracks",Bn.a.array),"autoVideoTrack",Bn.a.bool),"isPlaying",Bn.a.bool),"basicApiConfig",Bn.a.shape({token:Bn.a.string,tokenName:Bn.a.string,auth_token:Bn.a.string,streamer_http:Bn.a.string})),"streamIsLive",Bn.a.shape({})),"logoProperties",Bn.a.any),"browser",Bn.a.string),"playSegmentDurationForPlayers",Bn.a.any),"dvr_enabled",Bn.a.bool),v()(v()(v()(v()(v()(v()(v()(v()(li,"advert",Bn.a.array),"autoPlay",Bn.a.bool),"showSelectedOnly",Bn.a.bool),"fastSeek",Bn.a.func),"onSeek",Bn.a.func),"playerProgressTime",Bn.a.oneOfType([Bn.a.string,Bn.a.number])),"live",Bn.a.bool),"token",Bn.a.string)),_i.defaultProps={playerType:"mse",showPlayButton:!1};var Si=w.a.memo(_i),Oi=(n(1012),Vr()({displayName:"DvrTimeMarkers",className:"DvrTimeMarkers",propTypes:{duration:Bn.a.number.isRequired,from:Bn.a.number,localTime:Bn.a.bool,width:Bn.a.number.isRequired},shouldComponentUpdate:function(e){return this.props.duration!==e.duration||this.props.from!==e.from||this.props.localTime!==e.localTime||this.props.width!==e.width},currentStep:function(){return this.time_unit().time},label:function(e,t){var n=new Date;n.setTime(1e3*e);var r=!1!==this.props.localTime,i=r?n.getHours():n.getUTCHours(),o=r?n.getMinutes():n.getUTCMinutes();if(t<60){var a=r?n.getSeconds():n.getUTCSeconds();return"".concat(Object(Dr.pad2)(i),":").concat(Object(Dr.pad2)(o),":").concat(Object(Dr.pad2)(a))}var s=function(){return"".concat(Object(Dr.pad2)(i),":").concat(Object(Dr.pad2)(o))},u=function(){var e=r?n.getDate():n.getUTCDate(),t=(r?n.getMonth():n.getUTCMonth())+1,i=r?n.getFullYear():n.getUTCFullYear();return"".concat(Object(Dr.pad2)(i),"-").concat(Object(Dr.pad2)(t),"-").concat(Object(Dr.pad2)(e))};return t<=3600?0===i&&0===o?u():1===i&&3600===t?"":s():t>=86400||i>=0&&i<Math.ceil(t/3600)?u():s()},time_units:[{name:"min1",time:60},{name:"min2",time:120},{name:"min5",time:300},{name:"min15",time:900},{name:"min30",time:1800},{name:"hour1",time:3600},{name:"hour2",time:14400},{name:"hour12",time:43200},{name:"day1",time:86400},{name:"day7",time:604800},{name:"month1",time:2592e3}],time_unit:function(){for(var e=this.props,t=e.duration,n=e.width,r=Math.round(150*t/n),i=1;i<this.time_units.length;i++)if(this.time_units[i].time>r||i===this.time_units.length-1)return k()(this.time_units[i-1],{$merge:{i:i-1}})},entries:function(e){for(var t=[],n=this.props,r=n.from,i=n.duration,o=Math.floor(r/e)*e;o<=r+i;)t.push({time:e,utc:o,label:this.label(o,e)}),o+=e;return t},timeMarkers:function(){var e=this.props,t=e.from,n=e.duration,r=e.width,i=this.time_unit();return this.entries(i.time).map(function(e){var o=Math.round((e.utc-t)*r/n);return w.a.createElement("span",{key:e.utc,style:{left:o},className:"".concat(e.label.length>5?"day":"")},w.a.createElement("span",{className:"marker".concat(e.label.length>5?" day":"")}),this.label(e.utc,i.time))}.bind(this))},render:function(){return w.a.createElement("div",{className:"time-markers","data-cy":"time-markers"},this.timeMarkers())}})),ki=w.a.memo(Oi),Ei=n(450),ji=n(451),Ti=function(e,t,n,r){var i=function(e){var n=Math.max(e.from,t),r=n-t,i=e.from>t?e.duration:e.duration-(t-e.from);return{utc:n,start:r,end:r+i,duration:i,meta:e.meta}};return e.reduce((function(e,n){if(n.from+n.duration>t)if(0===e.length)e.push(i(n));else{var o=e[e.length-1],a=n.from-(o.utc+o.duration);a>=r?e.push(i(n)):(o.duration+=a+n.duration,o.end+=a+n.duration)}return e}),[])},Ci=function(e,t,n,r,i){if(0===r||n<10)return[];var o=Math.floor(n/r)||1,a=function(e){return Math.floor(e*r/n)},s=Ti(e,t,0,o);if(0===s.length)return t+n>i?[{utc:t,duration:n,left:0,type:"miss",width:a(i-t)}]:[{utc:t,duration:n,left:0,type:"miss",width:r}];var u=[];return s.forEach((function(e,r,o){if(0===r)e.start>0&&u.push({utc:t,duration:n,type:"miss",left:0,width:a(e.start)}),u.push({utc:e.utc,type:"hit",left:a(e.start),width:a(e.duration)});else{var s=o[r-1];u.push({utc:s.utc+s.duration,type:"miss",left:a(s.end),width:a(e.start-s.end)}),u.push({utc:e.utc,type:"hit",left:a(e.start),width:a(e.duration)}),r===o.length-1&&e.utc+e.duration<t+n&&e.utc+e.duration<i&&u.push({utc:e.utc+e.duration,type:"miss",left:a(e.end),width:a(Math.min(i,t+n)-(e.utc+e.duration))}),e.meta&&u.push({utc:e.utc,type:"live",left:a(e.start),width:a(e.duration)})}})),u},Ai=function(e,t,n,r,i){var o=Math.round(i/200);return e.reduce((function(e,t){var n=0===e.length?null:e[e.length-1];return n&&t.from-(n.utc+n.width)<=o?(n.width=t.from+t.duration-n.utc,n.weight+=t.duration):e.push({utc:t.from,width:t.duration,type:"motion",weight:t.duration,color:t.color,title:t.title,note:t.note}),e}),[]).map((function(e){return e.opacity=Math.round(100*e.weight/e.width)/10,e.width=e.width*r/n,e.left=(e.utc-t)*r/n,e}))};function Pi(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 Mi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pi(Object(n),!0).forEach((function(t){v()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ii=function(e){function t(){var e;return p()(this,t),(e=function(e,t,n){return t=Dn()(t),In()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return!!e}()?Reflect.construct(t,n||[],Dn()(e).constructor):t.apply(e,n))}(this,t)).utc_change=e.utc_change.bind(e),e.domSizes=e.domSizes.bind(e),e.afterResize=e.afterResize.bind(e),e.loadRanges=e.loadRanges.bind(e),e.refreshMotion=e.refreshMotion.bind(e),e.refreshRanges=e.refreshRanges.bind(e),e.reduceThumbnails=e.reduceThumbnails.bind(e),e.jpeg_url=e.jpeg_url.bind(e),e.onSeekTo=e.onSeekTo.bind(e),e.onMotionSeek=e.onMotionSeek.bind(e),e.startScrollLeft=e.startScrollLeft.bind(e),e.startScrollRight=e.startScrollRight.bind(e),e.stopScroll=e.stopScroll.bind(e),e.scrollToPoint=e.scrollToPoint.bind(e),e.startScale=e.startScale.bind(e),e.stopScale=e.stopScale.bind(e),e.visualTick=e.visualTick.bind(e),e.scale=e.scale.bind(e),e.scroll=e.scroll.bind(e),e.requestAnimationFrame=e.requestAnimationFrame.bind(e),e.recheck_borders=e.recheck_borders.bind(e),e.now=e.now.bind(e),e.now_ms=e.now_ms.bind(e),e.toggleCalendar=e.toggleCalendar.bind(e),e.onThumbnail=e.onThumbnail.bind(e),e.onMouseEnter=e.onMouseEnter.bind(e),e.onMouseLeave=e.onMouseLeave.bind(e),e.onMouseClick=e.onMouseClick.bind(e),e.onMouseMove=e.onMouseMove.bind(e),e.onHoverMove=e.onHoverMove.bind(e),e.controlBtn=e.controlBtn.bind(e),e.setWindowRef=e.setWindowRef.bind(e),e.setTimeMarkersRef=e.setTimeMarkersRef.bind(e),e.dataChange=e.dataChange.bind(e),e.setPercent=e.setPercent.bind(e),e.onDragStart=e.onDragStart.bind(e),e.onDragEnd=e.onDragEnd.bind(e),e.onDrag=e.onDrag.bind(e),e.state={ranges:[],motion:[],now:e.now(),visualDelay:150,visible_offset:0,visible_width:86400,v_duration:86400,renderRanges:{},pLeft:0,pRight:100,window_width:0,cursorPos:null,dragging:!1,dragCenter:null,liveInView:!1},e}return Nn()(t,e),f()(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.zoom,n=e.now,r=e.lockViewLeft,i=e.lockViewRight,o=e.fixedRange,a=e.returnData,s=(t<300?300:t)||3600,u=(this.props.from||n||this.now())-2*s/3,c=(this.props.from||n||this.now())+1*s/3;o&&(r||i)&&(r&&(u=r),c=i||this.now()+300),this.setState({v_from:u,v_duration:c-u,real_from:u,real_to:c,real_duration:c-u,visible_width:this.domSizes().window_width}),a("observableRanges",{start:u,end:u+(c-u)}),a("resolution",(c-u)/this.domSizes().window_width)}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.observableRanges,i=n.returnData,o=n.now,a=n.allRangeInfo,s=this.state,u=s.v_from,c=s.v_duration,l=s.visible_offset,f=s.wrapper_width,d=s.liveInView;if(u!==t.v_from||c!==t.v_duration||l!==t.visible_offset||f!==t.wrapper_width){var p=!1,h=(new Date).getTime()/1e3;h>u&&h<u+c&&(p=!0),i("liveInView",p),this.setState({liveInView:p});var v=u,g=u+c,m=(new Date).getTime()/1e3+300;i("observableRanges",{start:Math.round(v),end:Math.round(g)>m?r.end:Math.round(g)}),this.props.returnVisual({real_from:u,real_to:u+c}),this.dataChange(a,!0)}JSON.stringify(e.allRangeInfo)!==JSON.stringify(a)&&this.dataChange(a,!0),e.now!==o&&(this.setState(this.utc_change(this.props.now,this.state)),d&&this.dataChange(a,!0))}},{key:"dataChange",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.allRangeInfo,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={};if(Object.keys(t).length&&Object.keys(t).forEach((function(n){var i=e.loadRanges(t[n]||[],e.state,e.now(),n);r=Mi(Mi({},r),i)})),n){var i=this.afterResize(this.state);r=Mi(Mi({},r),i)}this.props.multiTimeline||r.renderRanges&&r.renderRanges[this.props.selected]&&(r.renderRanges=v()({},this.props.selected,r.renderRanges[this.props.selected]));var o=this.utc_change(this.props.now,this.state);r=Mi(Mi({},r),o),this.setState(r)}},{key:"setPercent",value:function(e,t){this.setState(v()({},e,t))}},{key:"utc_change",value:function(e,t){if(!e)return{};var n=Math.round((e-t.v_from)*t.visible_width/t.v_duration),r={};n!==t.play_progress&&(r.play_progress=n),e!==t.utc&&(r.utc=e);var i=!0;(this.state.scrolling||this.state.scroll_ended_at&&this.now_ms()-this.state.scroll_ended_at<this.state.visualDelay)&&(i=!1),(this.state.scaling||this.state.scale_ended_at&&this.now_ms()-this.state.scale_ended_at<this.state.visualDelay)&&(i=!1);var o={showBackToCursor:!1};return i&&(e<=t.v_from||e>=t.v_from+t.v_duration)&&(o={showBackToCursor:!0}),k()(r,{$merge:o})}},{key:"domSizes",value:function(){if(!this.windowRef)return!1;var e={},t=this.windowRef,n=t.getBoundingClientRect();if(e.window_width=n.width,e.top=n.top,n.width||n.height){var r=t.ownerDocument,i=r.documentElement,o=r.defaultView;e.window_left=n.left+o.pageXOffset-i.clientLeft}return this.props.returnDomSizes(e),this.setState({window_width:n.width}),e}},{key:"afterResize",value:function(e){return void 0!==e.v_from&&void 0!==e.real_from?{visible_offset:Math.round(-(e.v_from-e.real_from)*e.visible_width/e.v_duration),wrapper_width:Math.round(e.real_duration*e.visible_width/e.v_duration)}:{visible_offset:0,wrapper_width:0}}},{key:"loadRanges",value:function(e,t,n,r){var i={};if(!e)return{};if(e.loaded_at===t.range_loaded_at)return{};var o=t.renderRanges,a=Pn()(e.motion),s=[];if(e.ranges){("string"!=typeof e.ranges||e.ranges)&&(e.ranges.forEach((function(e){"opened_at"in e&&"closed_at"in e&&s.push({from:e.opened_at,duration:e.closed_at-e.opened_at})})),s.push({from:n,duration:15,meta:"pseudolive"}));var u=this.refreshRanges(s,t,n),c={range_loaded_at:e.loaded_at};o[r]=Mi(Mi(Mi({},o[r]),u),c),i=Mi(Mi({},i),{},{renderRanges:o});var l=this.recheck_borders(this.state);if(r===this.props.selected){var f=this.reduceThumbnails(e.brief_thumbnails,t),d=this.refreshMotion(a,t);i=Mi(Mi(Mi(Mi({},i),f),d),l)}return i}}},{key:"refreshMotion",value:function(e,t){return e?{motion_data:e,motion:Ai(e,t.real_from,t.real_duration,t.wrapper_width,t.v_duration)}:{}}},{key:"refreshRanges",value:function(e,t,n){return e?{segments:e,ranges:Ci(e,t.real_from,t.real_duration,t.wrapper_width,n)}:{}}},{key:"reduceThumbnails",value:function(e){if(!e)return{thumbnails:{}};var t={jpegs:{},utcs:{}},n=this.state.visible_width||600;t.step=10*this.state.v_duration/n;for(var r=0;r<e.length;r++){var i=Math.floor(e[r]/t.step);t.jpegs[i]||(t.jpegs[i]=this.jpeg_url(e[r]),t.utcs[i]=e[r])}return{thumbnails:t}}},{key:"jpeg_url",value:function(e){var t=new Date;return t.setTime(1e3*e),"".concat(this.props.http_stream_url,"/").concat(t.getUTCFullYear(),"/").concat(pad2(t.getUTCMonth()+1),"/").concat(pad2(t.getUTCDate()),"/").concat(pad2(t.getUTCHours()),"/").concat(pad2(t.getUTCMinutes()),"/").concat(pad2(t.getUTCSeconds()),".jpg").concat(this.props.auth_token?"?".concat(this.props.auth_token):"")}},{key:"onSeekTo",value:function(e){var t=this.domSizes(),n=(e-t.window_left)/t.window_width,r=Math.round(n*this.state.v_duration+this.state.v_from);r>this.now()?this.props.onSeek("live"):this.props.onSeek(r)}},{key:"onMotionSeek",value:function(e){this.props.downloadModal||this.props.onSeek&&this.props.onSeek(e)}},{key:"startScrollLeft",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.01,r=this.props.is_mobile;!t&&!r&&e.preventDefault(),this.setState({scrolling:"left",scroll_count:0,scroll_step:Math.round(this.state.v_duration*n),started:this.now_ms(),start_from:this.state.v_from}),this.requestAnimationFrame(this.visualTick),t&&setTimeout(this.stopScroll,300)}},{key:"startScrollRight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.01,r=this.props.is_mobile;!t&&!r&&e.preventDefault(),this.setState({scrolling:"right",scroll_count:0,scroll_step:Math.round(this.state.v_duration*n),started:this.now_ms(),start_from:this.state.v_from}),this.requestAnimationFrame(this.visualTick),t&&setTimeout(this.stopScroll,300)}},{key:"stopScroll",value:function(){this.setState({scrolling:void 0,scroll_count:void 0,scroll_step:void 0,scroll_ended_at:this.now_ms()})}},{key:"scrollToPoint",value:function(e){this.setState({scrolling:"toPoint",scroll_count:0,goUtc:e,scroll_ended_at:e}),this.toPoint=e,this.requestAnimationFrame(this.visualTick)}},{key:"startScale",value:function(e,t,n){var r=this.props.is_mobile,i=Dr.default.calculateScaleTimeline(e,t,n,r),o=i.requestAnimationStopTime,a=i.deltaYScaleCount;clearTimeout(this.stopScaleTimer),n||r||e.preventDefault(),this.setState({scalling:t,scale_count:a,started:this.now_ms()}),this.requestAnimationFrame(this.visualTick),this.stopScaleTimer=setTimeout(this.stopScale,o)}},{key:"stopScale",value:function(){this.setState({scalling:void 0,scale_count:0,scale_ended_at:this.now_ms()})}},{key:"visualTick",value:function(){var e=this.props.zoomSensivity,t=this.state,n=t.scrolling,r=t.scalling,i=t.scroll_count,o=t.started,a=t.scroll_step,s=t.v_duration,u=t.start_from,c=t.scale_count,l=this.now_ms();"left"===n&&(this.setState({scroll_count:i+1}),this.scroll(u-a*(l-o)/20)),"right"===n&&(this.setState({scroll_count:i+1}),this.scroll(u+a*(l-o)/20)),this.toPoint&&(this.scroll(this.toPoint-s/2),this.toPoint=void 0),"out"!==r&&"in"!==r||this.scale((1+c/800)*e),(n||r)&&this.requestAnimationFrame(this.visualTick)}},{key:"scale",value:function(e){var t=this.state,n=t.real_from,r=t.real_duration,i=t.cursorPos,o=t.v_from,a=t.v_duration,s=t.utc,u=t.visible_width,c=this.props.returnData;if(n&&r&&!(e<=0||e<1&&r*e<1e3||e>1&&r*e>2592e3)){var l=o+a/2;i&&i>=o&&i<=o+a?l=i:s>o+a/10&&s<o+.9*a&&(l=s),this.setState({v_from:(l-o)*(1-e)+o,v_duration:e*a}),c("resolution",a/u)}}},{key:"scroll",value:function(e){this.setState({v_from:e})}},{key:"requestAnimationFrame",value:function(e){("undefined"!=typeof window?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame:function(e){setTimeout(e,1e3/120)})(e)}},{key:"recheck_borders",value:function(e){var t=e.v_from-e.real_from,n=e.real_to-(e.v_from+e.v_duration),r={too_few_left:[-t/e.v_duration,-.3],too_few_right:[-n/e.v_duration,-.3],too_much_left:[t/e.v_duration,1.3],too_much_right:[n/e.v_duration,1.3]};for(var i in r)if(r.hasOwnProperty(i)&&r[i][0]>r[i][1])return{real_from:e.v_from-Math.round(2.4*e.v_duration/3),real_duration:2.4*e.v_duration,real_to:e.v_from+Math.round(4.8*e.v_duration/3)};return{}}},{key:"now",value:function(){return Math.round(this.now_ms()/1e3)}},{key:"now_ms",value:function(){return Math.round((new Date).getTime())}},{key:"toggleCalendar",value:function(e){e.preventDefault(),this.state.calendarOpened?this.setState({calendarOpened:!1}):this.setState({calendarOpened:!0}),this.props.onCalendarToggle&&this.props.onCalendarToggle(!this.state.calendarOpened)}},{key:"onThumbnail",value:function(e,t,n,r,i){var o=this.props,a=o.is_mobile,s=o.onCallThumbnail;a||s&&s(e,t,n,r,i,this.state.visible_width)}},{key:"onMouseEnter",value:function(e){return this.setState({over_timeline:!0,thumbnail_url:void 0}),this.onHoverMove(e.pageX)}},{key:"onMouseLeave",value:function(){this.setState({over_timeline:!1,thumbnail_url:void 0}),this.onThumbnail("clear")}},{key:"onMouseClick",value:function(e){e.target!==this.backBtnRef&&(this.props.downloadModal||(e.preventDefault(),this.onSeekTo(e.pageX)))}},{key:"onMouseMove",value:function(e){return this.onHoverMove(e.pageX)}},{key:"onHoverMove",value:function(e){if(this.state.over_timeline&&this.state.visible_width){var t=this.domSizes(),n=e-t.window_left,r=t.top,i=n/t.window_width,o=Math.round(i*this.state.v_duration+this.state.v_from),a=this.state.renderRanges[this.props.selected]&&this.state.renderRanges[this.props.selected].segments?this.state.renderRanges[this.props.selected].segments:[];this.setState({cursorPos:o}),function(e,t){if(!e)return!1;for(var n=0;n<e.length;n++){if(t<e[n].from)return!1;if(t<e[n].from+e[n].duration)return!0}return!1}(a,o)?this.props.is_mobile?this.onThumbnail("canvas",o,n,r,t.window_left):this.onThumbnail("video",o,n,r,t.window_left):this.onThumbnail("clear")}}},{key:"controlBtn",value:function(e,t,n){var r="btn btn-xs ".concat(e);return w.a.createElement("button",{onMouseDown:t,onTouchStart:t,onMouseUp:n,onTouchEnd:n,type:"button",className:r},w.a.createElement("span",{className:"icon"}))}},{key:"setWindowRef",value:function(e){!this.windowRef&&e&&(this.windowRef=e,this.windowRef.addEventListener("selectstart",(function(){return!1})))}},{key:"setTimeMarkersRef",value:function(e){!this.timeMarkersRef&&e&&(this.timeMarkersRef=e)}},{key:"onDragStart",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.clientX;if(t){var r=e.targetTouches,i=Ur()(r,1),o=i[0];n=o.clientX}var a=this.state,s=a.window_width,u=a.v_from,c=a.v_duration,l=n/(s/100),f=Math.round(u+c/100*l);this.setState({dragging:!0,dragCenter:f})}},{key:"onDragEnd",value:function(){var e=this.state.window_width;this.setState({dragging:!1,dragCenter:e/2}),this.stopScroll()}},{key:"onDrag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.state,r=n.dragging,i=n.dragCenter;if(r&&i){var o=this.state,a=o.window_width,s=o.v_from,u=o.v_duration,c=e.clientX;if(t){var l=e.targetTouches,f=Ur()(l,1),d=f[0];c=d.clientX}var p=c/(a/100),h=Math.round(s+u/100*p),v=i-h;this.setState({v_from:s+v})}}},{key:"render",value:function(){var e=this.props,t=e.selectionTimeline,n=e.localTime,r=e.debug,i=e.pointSelectTime,o=this.state,a=o.v_from,s=o.v_duration,u=o.window_width,c=o.visible_width,l=o.renderRanges,f=o.motion,d=o.visible_offset,p=o.play_progress;return w.a.createElement("div",{ref:this.setWindowRef,className:"timeline__timelineView","data-cy":"timelineView",onDoubleClick:i},c&&w.a.createElement("div",{className:"markers_wrapper",draggable:!1},w.a.createElement(ki,{ref:this.setTimeMarkersRef,from:a,duration:s,width:u||0,localTime:n})),c&&w.a.createElement("div",{className:"line_wrapper".concat(t?" large":""),onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onMouseMove:this.onMouseMove,onDragStart:function(){return!1},draggable:!1},p&&p>0&&p<c&&w.a.createElement(Ei.DvrNowMarker,{now:p,width:c}),w.a.createElement(ji.DvrRanges,{allRangeInfo:l,motion:f,debug:r,left:d,width:c,onUtcSeek:this.onMotionSeek,onHandleClick:this.onMouseClick})))}}])}(b.Component);Ii.propTypes={utc:Bn.a.any,onRangesRequested:Bn.a.func,onSeek:Bn.a.func,onCalendarToggle:Bn.a.func,onCallThumbnail:Bn.a.func,thumbnails_enabled:Bn.a.bool,locale:Bn.a.oneOf(["ru","en"]),from:Bn.a.number,now:Bn.a.oneOfType([Bn.a.string,Bn.a.number]),range_info:Bn.a.object,zoom:Bn.a.number,debug:Bn.a.bool,localTime:Bn.a.bool,is_mobile:Bn.a.bool,http_stream_url:Bn.a.string,auth_token:Bn.a.string,currentTime:Bn.a.any,playerUtc:Bn.a.number,returnData:Bn.a.func,observableRanges:Bn.a.shape({start:Bn.a.number,end:Bn.a.number}),allRangeInfo:Bn.a.any,multiTimeline:Bn.a.bool,selected:Bn.a.string,downloadModal:Bn.a.bool,toggleDownload:Bn.a.func,returnDomSizes:Bn.a.func,returnVisual:Bn.a.func,fixedRange:Bn.a.bool,lockViewLeft:Bn.a.number,lockViewRight:Bn.a.number,pointSelectTime:Bn.a.func,selectionTimeline:Bn.a.bool,zoomSensivity:Bn.a.number},Ii.defaultProps={};var Ri=Ii;function Di(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 Li(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Di(Object(n),!0).forEach((function(t){v()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Di(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ni=function(e){function t(){var e;return p()(this,t),(e=function(e,t,n){return t=Dn()(t),In()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return!!e}()?Reflect.construct(t,n||[],Dn()(e).constructor):t.apply(e,n))}(this,t)).utcToPath=e.utcToPath.bind(e),e.humanify=e.humanify.bind(e),e.buildSourceUrl=e.buildSourceUrl.bind(e),e.setThumbnailCapturerRef=e.setThumbnailCapturerRef.bind(e),e.setVideoThumbnailRef=e.setVideoThumbnailRef.bind(e),e.captureImageFromVideo=e.captureImageFromVideo.bind(e),e.state={},e}return Nn()(t,e),f()(t,[{key:"setThumbnailCapturerRef",value:function(e){!this.thumbnailCapturer&&e&&(this.thumbnailCapturer=e)}},{key:"setVideoThumbnailRef",value:function(e){!this.videoThumbnail&&e&&(this.videoThumbnail=e)}},{key:"utcToPath",value:function(e){var t=new Date(1e3*e);return this.path=Object(Dr.substitute)("{year}/{month}/{day}/{hours}/{minutes}/{seconds}",{year:t.getUTCFullYear(),month:Object(Dr.pad2)(t.getUTCMonth()+1),day:Object(Dr.pad2)(t.getUTCDate()),hours:Object(Dr.pad2)(t.getUTCHours()),minutes:Object(Dr.pad2)(t.getUTCMinutes()),seconds:Object(Dr.pad2)(t.getUTCSeconds())}),this.path}},{key:"humanify",value:function(e){var t=this.props.localTime;return"".concat(Object(Dr.humanDate)(e,t)," ").concat(Object(Dr.humanTime)(e,t))}},{key:"buildSourceUrl",value:function(e,t){var n=this.props,r=n.authToken,i=n.streamUrl,o=n.thumbnailsEnabled,a=n.basicApiConfig.params,s=r?"?".concat(r):"";return Object(Dr.substitute)("{streamUrl}/{path}{postfix}{authToken}",{streamUrl:i,path:this.utcToPath(e),postfix:"video"===t&&!1===o?"-preview.mp4":".jpg",authToken:s||"?".concat(Object(Cn.stringify)(a))})}},{key:"captureImageFromVideo",value:function(){var e=this.refs.thumbnailCapturer,t=this.refs.videoThumbnail;if(this.refs&&e){var n=e.getContext("2d"),r=t.videoWidth,i=t.videoHeight;e.width=r,e.height=i,n.fillRect(0,0,r,i),n.drawImage(t,0,0,r,i)}}},{key:"render",value:function(){var e=this.props,t=e.thumbnail,n=e.frameSeek,r=e.isSelector,i=e.thumbnailsEnabled,o=e.selectionTimeline,a=e.isMobile,s=this.state,u=s.height,c=s.width,l=t.utc,f=t.position,d=t.type,p={height:u,width:c||213};if(document.getElementById("thumbnailVideo")&&document.getElementById("thumbnailVideo").videoHeight){var h=document.getElementById("thumbnailVideo").videoHeight/document.getElementById("thumbnailVideo").videoWidth;if(document.getElementById("thumbnailVideo").videoHeight*h<=160)p={height:document.getElementById("thumbnailVideo").videoHeight*h,width:document.getElementById("thumbnailVideo").videoWidth*h};else{var v=160/document.getElementById("thumbnailVideo").videoHeight;p={height:document.getElementById("thumbnailVideo").videoHeight*v,width:document.getElementById("thumbnailVideo").videoWidth*v}}}var g={left:f,bottom:105},m={position:"absolute",zIndex:1,border:"1px solid",bottom:0,left:"-".concat(p.width/2,"px")||!1};return(n||a)&&(g={left:0,top:0,width:"100%",height:"100%"},p={width:"100%",height:"100%"}),r&&(g=Li(Li({},g),{},{left:-p.width/2})),w.a.createElement("div",{style:a?{left:"8px",right:"8px",bottom:"200px"}:{left:"".concat(f||0,"px"),bottom:"".concat(o?180:100,"px")}||g,className:"timeline__thumbnail".concat(a?" isMobile":"")},w.a.createElement("div",{style:a?{width:"100%"}:m},"video"===d&&!1===i&&w.a.createElement("video",{className:"timeline__thumbnail__image",style:p,id:"thumbnailVideo",src:this.buildSourceUrl(l,d),playsInline:!0,autoPlay:!0,loop:!0,controls:!1,muted:!0},w.a.createElement("track",{kind:"captions"})),"image"===d||!0===i&&w.a.createElement("img",{className:"timeline__thumbnail__image",style:{height:u},src:this.buildSourceUrl(l,d),alt:"timeline thumbnail"}),"canvas"===d&&w.a.createElement("canvas",{className:"timeline__thumbnail__image",ref:this.setThumbnailCapturerRef,style:p}),"canvas"===d&&w.a.createElement("video",{ref:this.setVideoThumbnailRef,onLoadedData:this.captureImageFromVideo,className:"timeline__thumbnail__hidden",style:p,src:this.buildSourceUrl(l,"video"),playsInline:!0,autoPlay:!0,loop:!0,controls:!1,muted:!0},w.a.createElement("track",{kind:"captions"})),w.a.createElement("span",{className:"timeline__thumbnail__caption"},this.humanify(l))))}}])}(b.Component);Ni.propTypes={thumbnail:Bn.a.shape({type:Bn.a.oneOf(["image","video","canvas"]).isRequired,utc:Bn.a.number.isRequired,position:Bn.a.oneOfType([Bn.a.number,Bn.a.string]).isRequired,pageY:Bn.a.number,timelineLeft:Bn.a.number,visibleWidth:Bn.a.number.isRequired}),media:Bn.a.shape({width:Bn.a.number,height:Bn.a.number}).isRequired,streamUrl:Bn.a.string.isRequired,authToken:Bn.a.string,thumbnailsEnabled:Bn.a.bool,frameSeek:Bn.a.bool,localTime:Bn.a.bool,isSelector:Bn.a.bool,selectionTimeline:Bn.a.bool,isMobile:Bn.a.bool,basicApiConfig:Bn.a.shape({token:Bn.a.string,tokenName:Bn.a.string,auth_token:Bn.a.string,streamer_http:Bn.a.string})};var Fi=Ni,Bi=Vr()({displayName:"DvrSnapshotControl",className:"DvrSnapshotControl",propTypes:{onTakeSnapshotClick:Bn.a.func.isRequired,locked:Bn.a.bool},render:function(){return w.a.createElement("button",{className:"dvrp-button",onClick:this.props.onTakeSnapshotClick,title:this.props.t("dvr_take_screenshot"),"data-cy":"snapshot-button"},w.a.createElement("span",{className:"icon-screen"}))}}),Ui=Object(b.memo)(Object(Hr.withTranslation)()(Bi)),zi=n(452),Vi=n.n(zi),Hi=(n(1017),function(e){var t=e.isMuted,n=e.onChangeMuted,r=e.volume,i=e.onChangeVolume,o=e.isMobile,a=Object(b.useRef)(null),s=Object(b.useRef)(null),u=r?r/100*40:0;t&&(u=0);var c=function(e){var r=e.currentTarget.getBoundingClientRect(),o=Math.round(e.clientX-6-r.left);o>40?o=40:o<0&&(o=0);var a=o/40*100;a>0&&t&&n(!1),i(a)},l=t||0===r;return w.a.createElement("div",{className:"dvrp-volume-control","data-cy":"dvrp-volume-control"},w.a.createElement("button",{type:"button",className:"dvrp-button dvrp-volume-button",onClick:function(){0===r||t?(i(r>0?r:100),n(!1)):n(!0)},"data-cy":"DVR_mute_button"},l?w.a.createElement("span",{className:"icon-volume_off"}):w.a.createElement("span",{className:"icon-volume"})),!o&&w.a.createElement("div",{className:"dvrp-volume-panel".concat(l?"":" visible"),"data-cy":"dvrp-volume-panel",ref:a,onPointerDown:function(e){0===e.button&&(s.current=e.pointerId,a.current.setPointerCapture(e.pointerId),c(e))},onPointerMove:function(e){null!==s.current&&c(e)},onPointerUp:function(e){null!==s.current&&0===e.button&&(a.current.releasePointerCapture(s.current),s.current=null)}},w.a.createElement("div",{className:"dvrp-volume-slider"},w.a.createElement("div",{className:"dvrp-volume-slider-handle",style:{left:u}}))))});Hi.propTypes={isMuted:Bn.a.bool.isRequired,onChangeMuted:Bn.a.func.isRequired,volume:Bn.a.number.isRequired,onChangeVolume:Bn.a.func.isRequired};var Wi=Object(b.memo)(Hi),qi=Vr()({displayName:"FocusBtn",className:"FocusBtn",render:function(){return w.a.createElement("i",{style:{width:"30px",height:"30px"}},w.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",x:"0px",y:"0px",viewBox:"0 0 1000 1000",fill:"#fff",style:{width:"18px",height:"30px"}},w.a.createElement("g",null,w.a.createElement("path",{d:"M898.9,557.6c-25.3,176.6-164.8,316-341.3,341.4v91H442.4v-91.1c-176.6-25.3-316-164.8-341.4-341.3H10V442.4h91c25.3-176.5,164.8-316,341.4-341.3V10h115.3v91.1c176.6,25.3,316,164.8,341.4,341.3h91v115.3H898.9z M557.6,199.9c0,0,0,18.2,0,40.7c0,31.8-25.8,57.6-57.6,57.6c-31.9,0-57.6-25.8-57.6-57.6c0-22.5,0-40.7,0-40.7c-122.6,23.5-219.1,120-242.5,242.5c0,0,18.2,0,40.7,0c31.8,0,57.6,25.8,57.6,57.6s-25.8,57.6-57.6,57.6c-22.5,0-40.7,0-40.7,0c23.4,122.5,119.9,219.1,242.5,242.5c0,0,0-18.2,0-40.7c0-31.8,25.8-57.6,57.6-57.6c31.8,0,57.6,25.8,57.6,57.6c0,17,0,40.7,0,40.7c122.5-23.4,219-119.9,242.5-242.5c0,0-18.2,0-40.7,0c-31.8,0-57.6-25.8-57.6-57.6c0-31.9,25.8-57.6,57.6-57.6c22.5,0,40.7,0,40.7,0C776.7,319.8,680.2,223.3,557.6,199.9z"}))))}}),Gi=w.a.memo(qi),Yi=Vr()({displayName:"MinusBtn",className:"MinusBtn",render:function(){return w.a.createElement("i",{style:{width:"14px",height:"14px"}},w.a.createElement("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"#fff",style:{width:"14px",height:"14px"},viewBox:"0 0 14 14"},w.a.createElement("path",{fill:"#fff",d:"M1 6h11v3H1z"})))}}),Ki=w.a.memo(Yi),$i=Vr()({displayName:"PlusBtn",className:"PlusBtn",render:function(){return w.a.createElement("i",{style:{width:"14px",height:"14px"}},w.a.createElement("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"#fff",style:{width:"14px",height:"14px"},viewBox:"0 0 14 14"},w.a.createElement("path",{fill:"#fff",d:"M1 6h11v3H1z"}),w.a.createElement("path",{fill:"#fff",d:"M5 2h3v11H5z"})))}}),Xi=w.a.memo($i),Qi=Vr()({displayName:"SpeedBtn",className:"SpeedBtn",render:function(){var e={width:"14px",height:"14px",transform:"".concat(this.props.rotate?"rotate(180deg)":"")};return w.a.createElement("i",{style:e},w.a.createElement("svg",{width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",fill:"#fff",style:{width:"16px",height:"16px"},viewBox:"0 0 14 14"},w.a.createElement("g",null,w.a.createElement("path",{d:"M 1,1 6,6 1,11"}),w.a.createElement("path",{d:"m 8,1 5,5 -5,5"}))))}}),Zi=w.a.memo(Qi),Ji=Vr()({displayName:"SpeedBtnLeft",className:"SpeedBtnLeft",render:function(){return w.a.createElement("i",{style:{width:"14px",height:"14px"}},w.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 3.704 3.704"},w.a.createElement("path",{d:"m1 1 5 5-5 5M8 1l5 5-5 5",fill:"#fff",style:{width:"16px",height:"16px"},transform:"rotate(180 2.007 1.852) scale(.3088)"})))}}),eo=w.a.memo(Ji),to=n(171);n(1022);var no=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e?Number.isNaN(Number(e))?e:-1===Number(e)?"v1":(t?"a":"v")+(Number(e)+1):""},ro=function(e){function t(){var e;return p()(this,t),(e=function(e,t,n){return t=Dn()(t),In()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return!!e}()?Reflect.construct(t,n||[],Dn()(e).constructor):t.apply(e,n))}(this,t)).form_url=e.form_url.bind(e),e.humanTime=e.humanTime.bind(e),e.handleChange=e.handleChange.bind(e),e.handleSendTime=e.handleSendTime.bind(e),e.linkToEmbed=e.linkToEmbed.bind(e),e.showPopup=e.showPopup.bind(e),e.state={timeStart:{},timeStop:{},inputStart:null,inputStop:null,isMenuOpened:!1,popupEnabled:!1,popupText:""},e}return Nn()(t,e),f()(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.start,n=e.stop;this.setState({timeStop:this.humanTime(n),timeStart:this.humanTime(t)})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.start,r=t.stop,i=e.start,o=e.stop;r===o&&o||this.setState({timeStop:this.humanTime(r)}),n===i&&i||this.setState({timeStart:this.humanTime(n)})}},{key:"handleSendTime",value:function(e){e.persist();var t,n=e.target.dataset.type,r=this.state,i=r.inputStart,o=r.inputStop,a=this.props.handleChangeSelection;(t="start"===n?i:o)&&a(t,"start"===n?"left":"right"),this.setState({inputStop:null,inputStart:null})}},{key:"handleChange",value:function(e){e.persist();var t=e.target,n=t.value,r=t.dataset,i=r.name,o=r.type;n=Number.parseInt(n,10);var a=new Date;switch(a.setTime(1e3*this.props[o]),n<0&&(n=0),i){case"h":n>23&&(n=23),a.setHours(n);break;case"m":n>59&&(n=59),a.setMinutes(n);break;case"s":n>59&&(n=59),a.setSeconds(n)}var s=Math.round(a.getTime()/1e3);"start"===o?this.setState({inputStart:s,timeStart:this.humanTime(s)}):this.setState({inputStop:s,timeStop:this.humanTime(s)})}},{key:"form_url",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.props,i=r.name,o=r.basicApiConfig,a=r.form,s=5;if(a){var u=o.baseURL,c=o.params,l=a.state,f=l.left_selected,d=l.right_selected,p=d-f<=0?s:d-f,h=new URL("".concat(u,"/").concat(i,"/archive-").concat(Math.round(f),"-").concat(Math.round(p),".").concat(n?"ts":"mp4"));return Object.keys(c).length&&Object.keys(c).forEach((function(e){h.searchParams.append([e],c[e])})),e&&h.searchParams.append("filter.tracks",t),h}}},{key:"humanTime",value:function(e){var t=this.props.localTime;if(!(e>0))return"";var n=new Date;n.setTime(1e3*e);var r=!(!1===t),i=r?n.getHours():n.getUTCHours(),o=r?n.getMinutes():n.getUTCMinutes(),a=r?n.getSeconds():n.getUTCSeconds();return{h:i<10?"0".concat(i):i.toString(),m:o<10?"0".concat(o):o.toString(),s:a<10?"0".concat(a):a.toString()}}},{key:"linkToEmbed",value:function(){var e=this.props,t=e.basicApiConfig,n=e.playerProgressTime,r=e.name,i=t.baseURL,o=t.params,a=new URL("".concat(i,"/").concat(r,"/embed.html?dvr=true"));return Object.keys(o).length&&Object.keys(o).forEach((function(e){a.searchParams.append([e],o[e])})),n&&(a+="&from=".concat(Math.round(n))),a}},{key:"showPopup",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.t("dvr_content_copied"),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1500;this.setState({popupEnabled:!0,popupText:t}),setTimeout((function(){e.setState({popupEnabled:!1,popupText:""})}),n)}},{key:"render",value:function(){var e=this,t=this.state,n=t.timeStart,r=t.timeStop,i=t.isMenuOpened,o=t.popupEnabled,a=t.popupText,s=this.props,u=s.closeExportMenu,c=s.isTrackSelectAvaible,l=s.activeAudioTrack,f=s.activeVideoTrack,d=s.downloadOptions,p=s.start,h=s.stop,v=s.t,g=document.getElementById("forClearout"),m=document.getElementById("forClearoutTimeline"),y="".concat(no(f,!1)).concat(no(l,!0)),b=this.form_url(),x=this.form_url(!0,y),_=this.form_url(!1,void 0,!0),S=this.form_url(!0,y,!0);return w.a.createElement("div",{className:"control"},w.a.createElement("div",{className:"popup".concat(o?" enabled":"")},a),w.a.createElement("div",{className:"download-text"},w.a.createElement("button",{className:"bigRoundButton",onClick:u,type:"button","aria-label":v("dvr_close"),title:v("dvr_close")},w.a.createElement("span",{className:"icon-close"})),w.a.createElement("div",{className:"verticalLine"}),w.a.createElement("div",{className:"inputWrapper"},w.a.createElement("div",{className:"inputBlock"},w.a.createElement("input",{type:"number",maxLength:"2","data-type":"start","data-name":"h","data-cy":"time-select-start-h",value:n.h||"00",onChange:function(t){e.handleChange(t)},onKeyDown:function(t){t.key&&"Enter"===t.key&&e.handleSendTime(t)},onClick:function(e){e.target.focus(),e.target.select()},onBlur:this.handleSendTime,min:"0",max:"23"})),":",w.a.createElement("div",{className:"inputBlock"},w.a.createElement("input",{type:"number",maxLength:"2","data-type":"start","data-name":"m","data-cy":"time-select-start-m",value:n.m||"00",onChange:function(t){e.handleChange(t)},onKeyDown:function(t){t.key&&"Enter"===t.key&&e.handleSendTime(t)},onClick:function(e){e.target.focus(),e.target.select()},onBlur:this.handleSendTime,min:"0",max:"59"})),":",w.a.createElement("div",{className:"inputBlock"},w.a.createElement("input",{type:"number",maxLength:"2","data-type":"start","data-name":"s","data-cy":"time-select-start-s",value:n.s||"00",onChange:function(t){e.handleChange(t)},onKeyDown:function(t){t.key&&"Enter"===t.key&&e.handleSendTime(t)},onClick:function(e){e.target.focus(),e.target.select()},onBlur:this.handleSendTime,min:"0",max:"59"}))),w.a.createElement("span",{className:"separator"},"—"),w.a.createElement("div",{className:"inputWrapper"},w.a.createElement("div",{className:"inputBlock"},w.a.createElement("input",{type:"number",maxLength:"2","data-type":"stop","data-name":"h","data-cy":"time-select-end-h",value:r.h||"00",onChange:function(t){e.handleChange(t)},onKeyDown:function(t){t.key&&"Enter"===t.key&&e.handleSendTime(t)},onClick:function(e){e.target.focus(),e.target.select()},onBlur:this.handleSendTime,min:"0",max:"23"})),":",w.a.createElement("div",{className:"inputBlock"},w.a.createElement("input",{type:"number",maxLength:"2","data-type":"stop","data-name":"m","data-cy":"time-select-end-m",value:r.m||"00",onChange:function(t){e.handleChange(t)},onKeyDown:function(t){t.key&&"Enter"===t.key&&e.handleSendTime(t)},onClick:function(e){e.target.focus(),e.target.select()},onBlur:this.handleSendTime,min:0,max:59})),":",w.a.createElement("div",{className:"inputBlock"},w.a.createElement("input",{type:"number",maxLength:"2","data-type":"stop","data-name":"s","data-cy":"time-select-end-s",value:r.s||"00",onChange:function(t){e.handleChange(t)},onKeyDown:function(t){t.key&&"Enter"===t.key&&e.handleSendTime(t)},onClick:function(e){e.target.focus(),e.target.select()},onBlur:this.handleSendTime,min:"0",max:"59"}))),w.a.createElement("div",{className:"verticalLine"}),w.a.createElement("button",{className:"bigRoundButton green",onClick:function(){return e.setState({isMenuOpened:!i})},type:"button","aria-label":v("dvr_export_menu"),title:v("dvr_export_menu"),"data-cy":"open-download-menu"},w.a.createElement("span",{className:"icon-export_player"})),w.a.createElement("div",{className:"dropDown".concat(i?" visible":""),"data-cy":"download-dropdown-menu"},w.a.createElement("div",{className:"firstRow visible"},w.a.createElement("div",{className:"item",onClick:function(){return e.setState({isMenuOpened:!1})},onBlur:function(){return e.setState({isMenuOpened:!1})},title:b},w.a.createElement("a",{target:"_blank",rel:"noreferrer",href:b,title:b,onBlur:function(){return e.setState({isMenuOpened:!1})},"data-cy":"mp4-download-button"},w.a.createElement("span",{className:"smicon"},w.a.createElement("span",{className:"icon-down"})),v("dvr_download_mp4"))),c&&y.length&&w.a.createElement("a",{className:"item",href:x,title:x,target:"_blank",rel:"noreferrer"},w.a.createElement("span",{className:"smicon"},w.a.createElement("span",{className:"icon-track_player"})),w.a.createElement("span",{className:"text"},v("dvr_download_mp4_with_tracks"))),w.a.createElement("a",{className:"item",target:"_blank",href:_,title:_,rel:"noreferrer"},w.a.createElement("span",{className:"smicon"},w.a.createElement("span",{className:"icon-down"})),w.a.createElement("span",{className:"text"},v("dvr_download_ts"))),c&&y.length&&w.a.createElement("a",{className:"item",target:"_blank",href:S,title:S,rel:"noreferrer"},w.a.createElement("span",{className:"smicon"},w.a.createElement("span",{className:"icon-track_player"})),w.a.createElement("span",{className:"text"},v("dvr_download_ts_with_tracks"))),w.a.createElement(to.CopyToClipboard,{onCopy:function(){e.showPopup()},text:this.form_url()},w.a.createElement("div",{className:"item"},w.a.createElement("span",{className:"smicon"},w.a.createElement("span",{className:"icon-share_player"})),w.a.createElement("span",{className:"text"},v("dvr_share_selected")))),w.a.createElement(to.CopyToClipboard,{onCopy:function(){e.showPopup()},text:this.linkToEmbed()},w.a.createElement("div",{className:"item"},w.a.createElement("span",{className:"smicon"},w.a.createElement("span",{className:"icon-copy_embed"})),w.a.createElement("span",{className:"text"},v("dvr_copy_embed_url")))),d&&d.map((function(t){return w.a.createElement("div",{className:"item",key:t.title,onClick:function(){return t.callback({url:e.form_url(),duration:h-p})}},w.a.createElement("span",{className:"smicon"},w.a.createElement("span",{className:"icon-timelapse"})),w.a.createElement("span",{className:"text"},t.title))}))))),i&&Object(Or.createPortal)(w.a.createElement("div",{className:"clearDropdown",onClick:function(){return e.setState({isMenuOpened:!1})}}),g),i&&Object(Or.createPortal)(w.a.createElement("div",{className:"clearDropdown",onClick:function(){return e.setState({isMenuOpened:!1})}}),m))}}])}(w.a.Component);ro.propTypes={start:Bn.a.number.isRequired,stop:Bn.a.number.isRequired,localTime:Bn.a.bool,handleChangeSelection:Bn.a.func,closeExportMenu:Bn.a.func,basicApiConfig:Bn.a.shape({token:Bn.a.string,tokenName:Bn.a.string,auth_token:Bn.a.string,streamer_http:Bn.a.string}),activeAudioTrack:Bn.a.string,activeVideoTrack:Bn.a.oneOfType([Bn.a.string,Bn.a.number]),isTrackSelectAvaible:Bn.a.bool,playerProgressTime:Bn.a.oneOfType([Bn.a.string,Bn.a.number]),form:Bn.a.any,downloadOptions:Bn.a.arrayOf(Bn.a.shape({title:Bn.a.string,callback:Bn.a.func}))};var io=Object(Hr.withTranslation)()(ro),oo=function(e){function t(){var e;return p()(this,t),(e=function(e,t,n){return t=Dn()(t),In()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return!!e}()?Reflect.construct(t,n||[],Dn()(e).constructor):t.apply(e,n))}(this,t)).mouseDown=e.mouseDown.bind(e),e.mouseMove=e.mouseMove.bind(e),e.mouseUp=e.mouseUp.bind(e),e.unmountListeners=e.unmountListeners.bind(e),e.touchStart=e.touchStart.bind(e),e.touchMove=e.touchMove.bind(e),e.touchEnd=e.touchEnd.bind(e),e.state={moving:!1},e}return Nn()(t,e),f()(t,[{key:"mouseDown",value:function(e){e.preventDefault(),e.stopPropagation();var t=this.props.onMoveStart;this.setState({moving:!0}),t(),document.addEventListener("mousemove",this.mouseMove),document.addEventListener("mouseup",this.mouseUp)}},{key:"mouseUp",value:function(e){e.preventDefault(e);var t=this.props,n=t.gettingCoordinates,r=t.dom,i=t.direction,o=t.onMoveEnd;n&&n(e.pageX-r.window_left,i,!0),this.setState({moving:!1}),this.unmountListeners(),o()}},{key:"mouseMove",value:function(e){e.preventDefault(e);var t=this.props,n=t.gettingCoordinates,r=t.dom,i=t.direction;n&&n(e.pageX-r.window_left,i)}},{key:"touchStart",value:function(e){e.persist(),e.stopPropagation&&e.stopPropagation();var t=this.props.onMoveStart;this.state.moving||(this.setState({moving:!0}),t())}},{key:"touchMove",value:function(e){e.persist(),e.stopPropagation&&e.stopPropagation();var t=e.targetTouches,n=Ur()(t,1)[0].pageX,r=this.props,i=r.gettingCoordinates,o=r.dom,a=r.direction;i&&i(n-o.window_left,a)}},{key:"touchEnd",value:function(e){e.persist(),e.stopPropagation&&e.stopPropagation();var t=this.props.onMoveEnd;this.setState({moving:!1}),t()}},{key:"unmountListeners",value:function(){document.removeEventListener("mousemove",this.mouseMove),document.removeEventListener("mouseup",this.mouseUp)}},{key:"render",value:function(){var e=this.props,t=e.playerRef,n=e.streamUrl,r=e.authToken,i=e.thumbnailsEnabled,o=e.localTime,a=e.realUtc,s=e.dom,u=e.position,c=e.direction,l=e.is_mobile,f=e.basicApiConfig,d=this.state.moving,p=u<0||u>100?0:1,h=t&&t.getMetadata()||{height:0,width:0},v=document.getElementById("forPopup");return w.a.createElement("div",{className:"dvrSelector ".concat(c),style:{left:"".concat(u,"%"),opacity:p},tabIndex:"0",role:"button",onMouseDown:this.mouseDown,onTouchStart:this.touchStart,onTouchMove:this.touchMove,onTouchEnd:this.touchEnd},d&&a&&(l?Object(Or.createPortal)(w.a.createElement(Fi,{thumbnail:{utc:a,type:"video",position:0,pageY:-60,timelineLeft:s.window_left,visibleWidth:s.window_width},media:h,streamUrl:n,authToken:r,basicApiConfig:f,thumbnailsEnabled:i,localTime:o,isSelector:!0,isMobile:l}),v):w.a.createElement("div",{className:"selection_thumbnail"},w.a.createElement(Fi,{thumbnail:{utc:a,type:"video",position:0,pageY:-60,timelineLeft:s.window_left,visibleWidth:s.window_width},media:h,streamUrl:n,authToken:r,basicApiConfig:f,thumbnailsEnabled:i,localTime:o,isSelector:!0}))),w.a.createElement("span",{className:"icon-arrow_player"}))}}])}(w.a.Component);oo.propTypes={position:Bn.a.number.isRequired,gettingCoordinates:Bn.a.func.isRequired,onMoveStart:Bn.a.func.isRequired,onMoveEnd:Bn.a.func.isRequired,dom:Bn.a.any,direction:Bn.a.string.isRequired,playerRef:Bn.a.any,realUtc:Bn.a.number.isRequired,streamUrl:Bn.a.string.isRequired,authToken:Bn.a.string,thumbnailsEnabled:Bn.a.bool,localTime:Bn.a.bool,is_mobile:Bn.a.bool,basicApiConfig:Bn.a.shape({token:Bn.a.string,tokenName:Bn.a.string,auth_token:Bn.a.string,streamer_http:Bn.a.string})},oo.defaultProps={dom:{},authToken:"",thumbnailsEnabled:!0,localTime:!0};var ao=oo,so=function(e,t){var n,r,i=!1;return function o(){if(i)return n=arguments,void(r=this);e.apply(this,arguments),i=!0,setTimeout((function(){i=!1,n&&(o.apply(r,n),n=r=null)}),t)}};function uo(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 co(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uo(Object(n),!0).forEach((function(t){v()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var lo=function(e){function t(){var e;return p()(this,t),(e=function(e,t,n){return t=Dn()(t),In()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return!!e}()?Reflect.construct(t,n||[],Dn()(e).constructor):t.apply(e,n))}(this,t)).gettingCoordinates=so(e.gettingCoordinates.bind(e),100),e.handleChangeSelection=e.handleChangeSelection.bind(e),e.timeDiff=e.timeDiff.bind(e),e.setLock=e.setLock.bind(e),e.preciecePercent=e.preciecePercent.bind(e),e.focusSelection=e.focusSelection.bind(e),e.state={left:0,right:100,left_time:"",right_time:"",left_selected:0,right_selected:0,direction:""},e}return Nn()(t,e),f()(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.real_from,n=e.real_to,r=e.maxDuration;if("number"==typeof t&&"number"==typeof n){var i=n-t,o=i/100,a=Math.round((new Date).getTime()/1e3),s=10800>r?r:10800,u=n-30*o;i+2<s&&(s=30*o),a<n&&a>t&&(u=a),this.setState({left_selected:u-s,right_selected:u,left:(u-s-t)/o,right:(u-t)/o})}}},{key:"componentDidUpdate",value:function(e,t){var n=this.props,r=n.real_from,i=n.real_to,o=n.changeSelectors,a=n.maxDuration,s=this.state,u=s.left,c=s.right,l=s.left_selected,f=s.right_selected;if(!e.real_from||!e.real_to){var d=(i-r)/100;this.setState({left_selected:Math.round(r+u*d),right_selected:Math.round(r+c*d)})}if(e.real_from!==r||e.real_to!==i){var p=(i-r)/100,h={},v=(l-r)/p,g=(f-r)/p;v===u&&g===c||(h=co(co({},h),{},{left:v,right:g})),Object.keys(h).length&&this.setState(h)}o(a&&f-l>a?{from:l,duration:a}:{from:l,duration:f-l})}},{key:"gettingCoordinates",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.props,i=r.dom,o=r.real_from,a=r.real_to,s=r.maxDuration,u=i.window_width,c=this.state,l=c.left,f=c.left_time,d=c.left_selected,p=c.right,h=c.right_time,g=c.right_selected,m=this.preciecePercent(e/(u/100)),y=function(e,t){return"left"===t&&e>p-1?p-1:"right"===t&&e<l+1?l+1:e};m=y(m,t);var b=a-o,x=b/100,w=Math.round(o+m*x),_=v()(v()(v()({},t,m),"".concat(t,"_time"),Dr.default.humanTime(w)),"".concat(t,"_selected"),Math.round(w));if(n){if("left"===t&&m>p){var S=co({},_);_={left:p,left_time:h,left_selected:g,right:S.left,right_time:S.left_time,right_selected:S.left_selected}}else if("right"===t&&m<l){var O=co({},_);_={right:l,right_time:f,right_selected:d,left:O.right,left_time:O.right_time,left_selected:O.right_selected}}if(s)if("left"===t&&g-_.left_selected>s){var k=_.left_selected+s;_=co(co({},_),{},{right:Math.round((k-o)/x),right_time:Dr.default.humanTime(k),right_selected:k})}else if(_.right_selected-d>s){var E=_.right_selected-s;_=co(co({},_),{},{left:Math.round((E-o)/x),left_time:Dr.default.humanTime(E),left_selected:E})}}s&&(_=co(co({},_),{},{direction:n?"":t})),this.setState(_)}},{key:"handleChangeSelection",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.props,i=r.real_from,o=r.real_to,a=r.maxDuration,s=this.state,u=s.left,c=s.left_selected,l=s.right,f=s.right_selected,d=5,p=o-i,h=p/100;Number.isNaN(e)&&(e="right"===t?o:i);var g=e,m=this.preciecePercent((g-i)/h),y=v()(v()(v()({},t,m),"".concat(t,"_time"),Dr.default.humanTime(e)),"".concat(t,"_selected"),Math.round(e));if("left"===t&&m>l){var b=f-d;g=b,y={left:Math.round(b/h),left_time:Dr.default.humanTime(b),left_selected:b}}else if("right"===t&&m<u){var x=c+d;g=x,y={right:Math.round(x/h),right_time:Dr.default.humanTime(x),right_selected:x}}if(g!==e&&(y[t]=this.preciecePercent((g-i)/h)),a)if("left"===t&&f-y.left_selected>a){var w=y.left_selected+a;y=co(co({},y),{},{right:Math.round((w-i)/h),right_time:Dr.default.humanTime(w),right_selected:w})}else if(y.right_selected-c>a){var _=y.right_selected-a;y=co(co({},y),{},{left:Math.round((_-i)/h),left_time:Dr.default.humanTime(_),left_selected:_})}if(n)return y;this.setState(y)}},{key:"timeDiff",value:function(e){var t=Math.floor(e/3600),n=Math.floor(e/60)-60*t,r=Math.floor(e)-60*t*60-60*n;return"".concat(t,":").concat(n<10?"0".concat(n):n,":").concat(r<10?"0".concat(r):r)}},{key:"setLock",value:function(e){this.setState(v()({},"".concat(e,"_lock"),!this.state["".concat(e,"_lock")]))}},{key:"preciecePercent",value:function(e){return Math.round(1e4*e)/1e4}},{key:"focusSelection",value:function(){var e=this.state,t=e.left_selected,n=e.right_selected;this.props.setFocus(t-1e3,n-t+2e3)}},{key:"render",value:function(){var e=this.state,t=e.left,n=e.right,r=e.left_time,i=e.right_time,o=e.left_selected,a=e.right_selected,s=this.props,u=s.name,c=s.dom,l=s.toggleDownload,f=s.real_from,d=s.real_to,p=s.closeExportMenu,h=s.basicApiConfig,v=s.playerProgressTime,g=s.isTrackSelectAvaible,m=s.activeAudioTrack,y=s.activeVideoTrack,b=s.form,x=s.is_mobile,_=s.downloadOptions,S=document.getElementById("forOverlays"),O=t<0?0:t,k=n>100?100:n,E=k-O;return w.a.createElement("div",{className:"selectionControls"},w.a.createElement(ao,{position:t,title:r,realUtc:o,dom:c,gettingCoordinates:this.gettingCoordinates,direction:"left",playerRef:this.props.playerRef,streamUrl:this.props.streamUrl,authToken:this.props.authToken,thumbnailsEnabled:this.props.thumbnailsEnabled,localTime:this.props.localTime,onMoveStart:this.props.onMoveStart,onMoveEnd:this.props.onMoveEnd,is_mobile:x,basicApiConfig:h}),0!==o&&0!==a&&w.a.createElement("div",{className:"selectionLength",style:{left:"".concat(O,"%"),right:"".concat(k,"%"),width:"".concat(E,"%"),opacity:"".concat(t<0&&n<0||t>100&&n>100||n-t<3?0:1)}}),0!==o&&0!==a&&w.a.createElement("div",{className:"selectionLength second",style:{left:"".concat(O,"%"),right:"".concat(k,"%"),width:"".concat(E,"%"),opacity:"".concat(t<0&&n<0||t>100&&n>100||n-t<3?0:1)}}),w.a.createElement(ao,{position:n,title:i,realUtc:a,dom:c,gettingCoordinates:this.gettingCoordinates,direction:"right",playerRef:this.props.playerRef,streamUrl:this.props.streamUrl,authToken:this.props.authToken,thumbnailsEnabled:this.props.thumbnailsEnabled,localTime:this.props.localTime,onMoveStart:this.props.onMoveStart,onMoveEnd:this.props.onMoveEnd,is_mobile:x,basicApiConfig:h}),S&&Object(Or.createPortal)(w.a.createElement("div",{className:"downloadBlock","data-cy":"downloadBlock"},w.a.createElement("div",{id:"forDownloadModal"},w.a.createElement(io,{name:u,url:this.props.http_stream_url,auth_token:this.props.auth_token,start:o,stop:a,locale:this.props.locale,focusSelection:this.focusSelection,handleChangeSelection:this.handleChangeSelection,toggleDownload:l,downloadActive:t>=0&&n>=0,focusAvailable:o<f||a>d,closeExportMenu:p,basicApiConfig:h,playerProgressTime:v,isTrackSelectAvaible:g,activeAudioTrack:m,activeVideoTrack:y,form:b,downloadOptions:_}))),S))}}])}(w.a.Component);lo.propTypes={real_from:Bn.a.number,real_to:Bn.a.number,dom:Bn.a.any,http_stream_url:Bn.a.string,auth_token:Bn.a.string,name:Bn.a.string,locale:Bn.a.oneOf(["ru","en"]),toggleDownload:Bn.a.func,changeSelectors:Bn.a.func,maxDuration:Bn.a.number,setFocus:Bn.a.func,playerRef:Bn.a.any,media:Bn.a.shape({width:Bn.a.number,height:Bn.a.number}),streamUrl:Bn.a.string,authToken:Bn.a.string,thumbnailsEnabled:Bn.a.bool,frameSeek:Bn.a.bool,localTime:Bn.a.bool,closeExportMenu:Bn.a.func,basicApiConfig:Bn.a.shape({token:Bn.a.string,tokenName:Bn.a.string,auth_token:Bn.a.string,streamer_http:Bn.a.string}),activeAudioTrack:Bn.a.string,activeVideoTrack:Bn.a.oneOfType([Bn.a.string,Bn.a.number]),isTrackSelectAvaible:Bn.a.bool,onMoveStart:Bn.a.func.isRequired,onMoveEnd:Bn.a.func.isRequired,playerProgressTime:Bn.a.oneOfType([Bn.a.string,Bn.a.number]),form:Bn.a.any,is_mobile:Bn.a.bool,downloadOptions:Bn.a.arrayOf(Bn.a.shape({title:Bn.a.string,callback:Bn.a.func}))},lo.defaultProps={};var fo=lo,po=(n(1024),n(225)),ho=function(e){function t(){var e;return p()(this,t),(e=function(e,t,n){return t=Dn()(t),In()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return!!e}()?Reflect.construct(t,n||[],Dn()(e).constructor):t.apply(e,n))}(this,t)).handleTrackChange=e.handleTrackChange.bind(e),e.setDropdownVisible=e.setDropdownVisible.bind(e),e.showSubmenu=e.showSubmenu.bind(e),e.closeSubmenu=e.closeSubmenu.bind(e),e.showPopup=e.showPopup.bind(e),e.state={dropdownVisible:!1,secondRow:!1,secondRowContent:"",popupEnabled:!1,popupText:"",debugData:""},e}return Nn()(t,e),f()(t,[{key:"componentDidMount",value:function(){var e;this.setState({debugData:(e=null==po?void 0:po.version,"Build version: ".concat(e))})}},{key:"setDropdownVisible",value:function(){this.setState({dropdownVisible:!this.state.dropdownVisible,secondRow:!1})}},{key:"handleTrackChange",value:function(e,t){var n=this.props.returnData,r=e.target.dataset.value;n("autoVideoTrack","-1"===r),n(t,r||"0"),n("forceStartTrack",!1),this.setState({secondRow:!1})}},{key:"showSubmenu",value:function(e){this.setState({secondRow:!0,secondRowContent:e})}},{key:"closeSubmenu",value:function(){this.setState({secondRow:!1,secondRowContent:""})}},{key:"showPopup",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.t("dvr_content_copied"),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1500;this.setState({popupEnabled:!0,popupText:t}),setTimeout((function(){e.setState({popupEnabled:!1,popupText:""})}),n)}},{key:"render",value:function(){var e=this,t=this.props,n=t.tracksVideo,r=t.tracksAudio,i=t.ott,o=t.live,a=t.t,s=t.activeVideoTrack,u=t.activeAudioTrack,c=this.state,l=c.dropdownVisible,f=c.secondRow,d=c.secondRowContent,p=c.popupText,h=c.popupEnabled,v=c.debugData,g="auto",m="auto";n.forEach((function(e){s==e.track_id&&(g=e.text)})),r.forEach((function(e){u==e.track_id&&(m=e.text)}));var y=document.getElementById("forOverlays"),x=document.getElementById("forClearout"),_=document.getElementById("forClearoutTimeline");return w.a.createElement(b.Fragment,null,w.a.createElement("div",{className:"dropDownWrapper"},w.a.createElement("button",{className:"dvrp-button",onClick:this.setDropdownVisible},w.a.createElement("span",{className:"icon-settings_player"}))),l&&Object(Or.createPortal)(w.a.createElement("div",{className:"dropDown".concat(l?" visible":"")},w.a.createElement("div",{className:"firstRow".concat(f?"":" visible")},this.props.tracksVideo.length>1&&w.a.createElement("div",{className:"item",onClick:function(){e.showSubmenu("tracksVideo")}},w.a.createElement("div",{className:"left"},w.a.createElement("span",{className:"ddicon"},w.a.createElement("span",{className:"icon-hd"})),a("dvr_video_quality")),w.a.createElement("div",{className:"right"},g)),this.props.tracksAudio.length>1&&w.a.createElement("div",{className:"item",onClick:function(){e.showSubmenu("tracksAudio")}},w.a.createElement("div",{className:"left"},w.a.createElement("span",{className:"ddicon"},w.a.createElement("span",{className:"icon-track_player"})),a("dvr_audio_track")),w.a.createElement("div",{className:"right"},m))),w.a.createElement("div",{className:"secondRow".concat(f?" visible":"")},w.a.createElement("div",{className:"item",onClick:this.closeSubmenu},w.a.createElement("span",{className:"ddicon"},w.a.createElement("span",{className:"icon-date_two_player"})),a("tracksVideo"===d?"dvr_video_quality":"dvr_audio_track")),d&&"tracksVideo"===d&&(!o||i)&&w.a.createElement(go,{key:"drop_auto",value:"-1",text:a("dvr_auto"),active:"auto"===g,handleTrackChange:function(t){e.handleTrackChange(t,"activeVideoTrack")}}),d&&this.props[d]&&this.props[d].map((function(t){var n="tracksVideo"===d?g:m;return w.a.createElement(go,{key:"drop_".concat(t.track_id),value:t.track_id,text:t.text,active:n==t.text,handleTrackChange:function(t){e.handleTrackChange(t,"tracksVideo"===d?"activeVideoTrack":"activeAudioTrack")}})}))),w.a.createElement(to.CopyToClipboard,{text:v,onCopy:function(){e.showPopup()}},w.a.createElement("div",{className:"item"},a("copy_debug_data"))),w.a.createElement("div",{className:"popupCopyDebug".concat(h?" enabled":"")},p)),y),l&&Object(Or.createPortal)(w.a.createElement("div",{className:"clearDropdown",onClick:this.setDropdownVisible}),x),l&&Object(Or.createPortal)(w.a.createElement("div",{className:"clearDropdown",onClick:this.setDropdownVisible}),_))}}])}(b.Component);ho.propTypes={returnData:Bn.a.func,tracksAudio:Bn.a.array,tracksVideo:Bn.a.array,activeAudioTrack:Bn.a.string,activeVideoTrack:Bn.a.oneOfType([Bn.a.string,Bn.a.number]),live:Bn.a.bool,ott:Bn.a.bool},ho.defaultProps={ott:!1};var vo=Object(Hr.withTranslation)()(ho);function go(e){return w.a.createElement("div",{className:"item".concat(e.active?" active":""),"data-value":e.value,onClick:e.handleTrackChange},e.text)}var mo=n(222),yo=n.n(mo),bo=function(e){var t=e.isFullscreen,n=e.onChangeFullscreenState;return w.a.createElement("button",{onClick:function(e){n(!t),e.target.blur()},type:"button",className:"dvrp-button","data-cy":"DVR_fullscreen_button"},t?w.a.createElement("span",{className:"icon-screen_player"}):w.a.createElement("span",{className:"icon-full"}))};bo.propTypes={isFullscreen:Bn.a.bool.isRequired,onChangeFullscreenState:Bn.a.func.isRequired};var xo=Object(b.memo)(bo),wo=function(e){function t(){var e;return p()(this,t),e=function(e,t,n){return t=Dn()(t),In()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return!!e}()?Reflect.construct(t,n||[],Dn()(e).constructor):t.apply(e,n))}(this,t),v()(e,"formRef",w.a.createRef()),e.onRangesLoaded=e.onRangesLoaded.bind(e),e.onThumbnail=so(e.onThumbnail.bind(e),250),e.faster=e.faster.bind(e),e.slower=e.slower.bind(e),e.toggleCalendar=e.toggleCalendar.bind(e),e.setTimelineZoom=e.setTimelineZoom.bind(e),e.calendarDayChanged=e.calendarDayChanged.bind(e),e.controlBtn=e.controlBtn.bind(e),e.startScale=e.startScale.bind(e),e.stopScale=e.stopScale.bind(e),e.startScrollLeft=e.startScrollLeft.bind(e),e.startScrollRight=e.startScrollRight.bind(e),e.stopScroll=e.stopScroll.bind(e),e.scrollToPoint=e.scrollToPoint.bind(e),e.handlePause=e.handlePause.bind(e),e.setDvrTimelineRef=e.setDvrTimelineRef.bind(e),e.onTakeSnapshotStarted=e.onTakeSnapshotStarted.bind(e),e.onTakeSnapshotFinished=e.onTakeSnapshotFinished.bind(e),e.onTakeSnapshotClick=e.onTakeSnapshotClick.bind(e),e.keyListener=e.keyListener.bind(e),e.mobileVolumeClick=e.mobileVolumeClick.bind(e),e.toggleDownload=e.toggleDownload.bind(e),e.domSizes=e.domSizes.bind(e),e.returnVisual=e.returnVisual.bind(e),e.changeSelectors=e.changeSelectors.bind(e),e.perFrameSeek=e.perFrameSeek.bind(e),e.setFocus=e.setFocus.bind(e),e.pointSelectTime=e.pointSelectTime.bind(e),e.changeVolumeHandler=e.changeVolumeHandler.bind(e),e.wheelChange=e.wheelChange.bind(e),e.dragGesture=e.dragGesture.bind(e),e.handleDvrSelectionMovingStart=e.handleDvrSelectionMovingStart.bind(e),e.handleDvrSelectionMovingEnd=e.handleDvrSelectionMovingEnd.bind(e),e.changeFullscreenStateHandler=e.changeFullscreenStateHandler.bind(e),e.seekLiveFunc=e.seekLiveFunc.bind(e),e.dragGesture.active=!0,e.hasEpisodesChanged=e.hasEpisodesChanged.bind(e),e.state={range_info:{ranges:[],motion:[]},allRangeInfo:{},calendarOpened:!1,takingSnapshot:!1,mobileVolumeClicked:!1,downloadModal:!0,real_from:0,real_to:86400,duration:10,thumbnail:{},isFooterVisible:!0,selectionTimeline:!1,isDvrSelectionMoving:!1,timeInfo:{url:"",time:""}},e.timelineRef=w.a.createRef(),e.timeoutIdRef=w.a.createRef(),e.preventDefault=function(e){return e.preventDefault()},e}return Nn()(t,e),f()(t,[{key:"componentDidMount",value:function(){this.keydown=document.addEventListener("keydown",this.keyListener);var e=this.props,t=e.from,n=e.now,r=e.fixedRange,i=e.to,o=e.zoom,a=(o<300?300:o)||3600,s=(t||n||this.now())-2*a/3,u=(t||n||this.now())+1*a/3;r&&(t||i)&&(s=t),this.setState({real_from:s,real_to:u});var c=this.timelineRef.current;c&&c.addEventListener("wheel",this.preventDefault)}},{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.props,r=n.allRanges,i=n.multiTimeline,o=n.selected,a=n.forceScrollToPoint,s=n.returnData;if(!r.loaded_at&&e.allRanges.loaded_at||r.loaded_at&&e.allRanges.loaded_at&&r.loaded_at!==e.allRanges.loaded_at||o!==e.selected||this.hasEpisodesChanged(e.motion_log)){var u={};i?(Object.keys(e.allRanges).forEach((function(n){u[n]=t.onRangesLoaded({ranges:e.allRanges[n],motion_log:e.motion_log},n)})),this.setState({allRangeInfo:u})):(u[e.selected]=this.onRangesLoaded({ranges:e.allRanges[e.selected],motion_log:e.motion_log},e.selected),this.setState({allRangeInfo:u}))}a&&(this.scrollToPoint(),s("forceScrollToPoint",!1))}},{key:"shouldComponentUpdate",value:function(e,t){var n=this.props.maxDuration,r=this.state.duration;return!(r!==t.duration&&r>n)}},{key:"componentDidUpdate",value:function(e,t){var n=this.props.playerProgressTime;if(e.playerProgressTime!==n){var r=Object(Dr.currentUrl)(document.location.href,{from:Math.round(n)});this.setState({timeInfo:{url:r,time:Object(Dr.humanTime)(n)}})}}},{key:"componentDidCatch",value:function(e){console.log(e)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.keyListener);var e=this.timelineRef.current;e&&e.removeEventListener("wheel",this.preventDefault)}},{key:"handlePause",value:function(e){var t=this.props;(0,t.returnData)("paused",!t.paused),e&&e.target.blur()}},{key:"handleDvrSelectionMovingStart",value:function(){this.setState({isDvrSelectionMoving:!0})}},{key:"handleDvrSelectionMovingEnd",value:function(){this.setState({isDvrSelectionMoving:!1})}},{key:"onRangesLoaded",value:function(e,t){var n=this.props.t,r=this.state,i=(r.allRangeInfo,r.range_info),o=e.ranges,a=[],s=!1;e.motion_log&&("episodes"in e.motion_log?(a=e.motion_log.episodes,s=!0):a=e.motion_log);var u="#f0ad4e";a=a.filter((function(e){return s?e:"motion"===e.type&&"range"===e.subtype&&!!e.data})).map((function(e){var t,r={};if(s){var i,o,a="";switch(e.episode_type){case"face":i=n("dvr_episode_type_person"),o="#197f70",a=null===(t=e.matched_persons)||void 0===t?void 0:t.map((function(e){return e.person.name||""})).join(", ");break;case"vehicle":i=n("dvr_episode_type_plate"),o="#2f4858",a=e.license_plate_text;break;case"generic":i=n("dvr_episode_type_motion"),o=u}r={from:Math.round(e.opened_at/1e3)||e.at,duration:Math.round((e.closed_at-e.opened_at)/1e3)||10,color:o||u,title:i||"",note:a||""}}else r={from:e.data.start||e.at,duration:e.data.duration||10,color:e.color||"",title:e.title||"",note:e.note||""};return r}));var c=[];Array.prototype.push.apply(c,i.brief_thumbnails),Array.prototype.push.apply(c,e.brief_thumbnails),c.sort();for(var l=0;l<c.length-1;)c[l]===c[l+1]?c.splice(l,1):l++;return{ranges:o,motion:a,brief_thumbnails:c,loaded_at:this.now_ms()}}},{key:"onThumbnail",value:function(e,t,n,r,i,o){this.state.isDvrSelectionMoving||("clear"===e&&this.setState({thumbnail:null}),this.setState({thumbnail:{utc:t,type:e,position:n,pageY:r,timelineLeft:i,visibleWidth:o}}))}},{key:"onTakeSnapshotStarted",value:function(){this.setState({takingSnapshot:!0})}},{key:"onTakeSnapshotFinished",value:function(){this.setState({takingSnapshot:!1})}},{key:"onTakeSnapshotClick",value:function(){(0,this.props.onTakeSnapshotClick)(this.onTakeSnapshotStarted,this.onTakeSnapshotFinished)}},{key:"setDvrTimelineRef",value:function(e){!this.dvrTimelineRef&&e&&(this.dvrTimelineRef=e)}},{key:"setFocus",value:function(e,t){this.dvrTimelineRef.setState({v_from:e,v_duration:t})}},{key:"setIsFooterVisible",value:function(e){var t=this.state.isFooterVisible;this.setState({isFooterVisible:e||!t})}},{key:"now",value:function(){return Math.round(this.now_ms()/1e3)}},{key:"now_ms",value:function(){return Math.round((new Date).getTime())}},{key:"faster",value:function(e){e.preventDefault();var t=this.props;(0,t.changeSpeed)(2*(t.playback_speed||1)),e&&e.target.blur()}},{key:"slower",value:function(e){e.preventDefault();var t=this.props;(0,t.changeSpeed)(.5*(t.playback_speed||1)),e&&e.target.blur()}},{key:"toggleCalendar",value:function(e){e.preventDefault();var t=this.props.onCalendarToggle,n=this.state.calendarOpened;n?this.setState({calendarOpened:!1}):this.setState({calendarOpened:!0}),t&&t(!n)}},{key:"setTimelineZoom",value:function(e,t){var n=this.props,r=n.playerRef,i=n.returnData;this&&this.dvrTimelineRef&&(this.dvrTimelineRef.setState({v_from:Number(e)-3600,v_duration:Number(t)-Number(e)+3600}),i("resolution",(t-e)/r.wrapper.offsetWidth))}},{key:"calendarDayChanged",value:function(e){var t=this;setTimeout((function(){(0,t.props.onSeek)(e,!0),t.dvrTimelineRef.dataChange()}),0)}},{key:"startScale",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this&&this.dvrTimelineRef)return this.dvrTimelineRef.startScale(e,t,n)}},{key:"stopScale",value:function(){if(this&&this.dvrTimelineRef)return this.dvrTimelineRef.stopScale()}},{key:"startScrollLeft",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this&&this.dvrTimelineRef)return this.dvrTimelineRef.startScrollLeft(e,t)}},{key:"startScrollRight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this&&this.dvrTimelineRef)return this.dvrTimelineRef.startScrollRight(e,t)}},{key:"stopScroll",value:function(e){if(this&&this.dvrTimelineRef)return this.dvrTimelineRef.stopScroll(e)}},{key:"scrollToPoint",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.playerProgressTime,t=e;if(this&&this.dvrTimelineRef)return this.dvrTimelineRef.scrollToPoint(t)}},{key:"controlBtn",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=arguments.length>4?arguments[4]:void 0,o="".concat(e);return w.a.createElement("button",{onMouseDown:t,onTouchStart:t,onMouseUp:n,onTouchEnd:n,type:"button",className:o,"data-cy":r},i)}},{key:"mobileVolumeClick",value:function(e){var t=this.state.mobileVolumeClicked;this.setState({mobileVolumeClicked:!t}),e&&e.target.blur()}},{key:"toggleDownload",value:function(){var e=this.state.downloadModal;this.setState({downloadModal:!e,calendarOpened:!1})}},{key:"domSizes",value:function(e){this.setState({dom:e})}},{key:"returnVisual",value:function(e){this.setState(e)}},{key:"pointSelectTime",value:function(e){var t=e.clientX,n=this.formRef.current;if(n){var r,i=n.state,o=i.left,a=i.right,s=this.state.dom,u=s.window_width,c=s.window_left,l=n.preciecePercent(t/((u-c)/100));r=l<o?"left":l>a?"right":l<o+(a-o)/2?"left":"right",n.gettingCoordinates(t-c,r,!0)}}},{key:"changeSelectors",value:function(e){var t=this.state,n=t.from,r=t.duration,i={};n!==e.from&&(i.from=e.from),r!==e.duration&&(i.duration=e.duration),Object.keys(i).length&&this.setState(i)}},{key:"perFrameSeek",value:function(e){var t=this.props,n=t.paused,r=t.seekFrameEnabled,i=t.returnData;n&&!r?i("seekFrameEnabled",!0):(i("seekFrameEnabled",!n),this.handlePause()),e&&e.target.blur()}},{key:"changeVolumeHandler",value:function(e){(0,this.props.returnData)("volume",e)}},{key:"keyListener",value:function(e){var t=this.props,n=t.live,r=t.playerProgressTime,i=t.fastSeek,o=t.onSeek;if("Space"===e.code&&(n?this.handlePause():this.perFrameSeek()),"ArrowUp"===e.code&&this.scrollToPoint(),"NumpadAdd"!==e.code&&"Equal"!==e.code||this.startScale(null,"in",!0),"NumpadSubtract"!==e.code&&"Minus"!==e.code||this.startScale(null,"out",!0),!e.ctrlKey||"ArrowRight"!==e.code&&39!==e.which||this.startScrollRight(null,!0),!e.ctrlKey||"ArrowLeft"!==e.code&&37!==e.which||this.startScrollLeft(null,!0),"ArrowRight"!==e.code||n||i(r+10,"forward"),"ArrowLeft"===e.code){if(n)return void o(r-60);i(r-10,"backward")}}},{key:"wheelChange",value:function(e){var t=e.deltaY,n=this.stopScale();return this.prevDelta&&(this.prevDelta<0&&t>0||this.prevDelta>0&&t<0)?n=this.stopScale():t<0?n=this.startScale(e,"in",!0):t>0&&(n=this.startScale(e,"out",!0)),this.prevDelta=t,n}},{key:"dragGesture",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];e.persist();var r=this.props.dvr_enabled;if(r){var i="targetTouches"in e;if(e.stopPropagation&&e.stopPropagation(),i||e.preventDefault&&e.preventDefault(),e.cancelBubble=!0,e.returnValue=!1,n){if(i){var o=e.targetTouches,a=Ur()(o,1),s=a[0],u=s.clientX,c=s.clientY;this.prevTouch,this.prevTouch={clientX:u,clientY:c}}if(t){var l=e.clientX,f=e.clientY;this.dvrTimelineRef.onDragStart(e,i),this.touchStarted=!0,this.prevTouch={clientX:l,clientY:f}}else if(this.touchStarted){var d=e.movementX,p=e.movementY;d?this.dvrTimelineRef.onDrag(e,i):p&&(p<-1?this.toggleSelectionTimeline(!0):p>1&&this.toggleSelectionTimeline(!1))}i&&this.dvrTimelineRef.onDrag(e,i)}}}},{key:"toggleSelectionTimeline",value:function(e){this.props.allowExport&&this.setState({selectionTimeline:e})}},{key:"changeFullscreenStateHandler",value:function(e){(0,this.props.returnData)("fullscreen",e)}},{key:"seekLiveFunc",value:function(){(0,this.props.onSeek)("live"),this.scrollToPoint(Math.round(this.now()))}},{key:"hasEpisodesChanged",value:function(e){var t=this.props.motion_log;return t.episodes&&e.episodes&&t.episodes.length!==e.episodes.length}},{key:"render",value:function(){var e=this,t=this.props,n=t.selected,r=t.auth_token,i=t.basicApiConfig,o=t.dvr_ranges_present,a=t.onSeek,s=t.from,u=t.now,c=t.zoom,l=t.debug,f=t.thumbnails_enabled,d=t.onRangesRequested,p=t.is_mobile,h=t.http_stream_url,v=t.currentTime,g=t.returnData,m=t.observableRanges,y=t.multiTimeline,x=t.fixedRange,_=t.localTime,S=t.ui,O=t.playerRef,k=t.onMetadataRequest,E=t.paused,j=t.muted,T=t.onToggleMuted,C=t.playerProgressTime,A=t.volume,P=t.live,M=t.playback_speed,I=t.locale,R=t.maxDuration,D=t.enableMp4Download,L=t.downloadOptions,N=t.activeVideoTrack,F=t.activeAudioTrack,B=t.tracksVideo,U=t.tracksAudio,z=t.rangesLoading,V=t.dvr_enabled,H=t.isFullscreen,W=t.noFullscreen,q=t.zoomSensivity,G=t.calendarRanges,Y=t.t,K=t.allowExport,$=this.state,X=$.real_from,Q=$.real_to,Z=$.thumbnail,J=$.range_info,ee=$.allRangeInfo,te=$.takingSnapshot,ne=$.dom,re=$.calendarOpened,ie=$.isFooterVisible,oe=$.selectionTimeline,ae=$.timeInfo,se=Z&&Z.position,ue=document.getElementById("videoThumbnail"),ce=document.getElementById("forCalendar");return w.a.createElement(b.Fragment,null,w.a.createElement("div",{id:"forOverlays"}),w.a.createElement("div",{className:"dvrp-top".concat(ie?" _visible":""),"data-cy":"dvrp-top"},w.a.createElement("div",{className:"dvrp-controls"},C&&w.a.createElement("div",{className:"timeStamp","data-cy":"timeStamp"},w.a.createElement("a",{href:ae.url},ae.time)),w.a.createElement(yo.a,{live:P,seekLiveFunc:this.seekLiveFunc}))),w.a.createElement("div",{className:"dvrp-bottom-gradient".concat(ie?" _visible":"")}),w.a.createElement("div",{className:"dvrp-footer".concat(ie?" _visible":""),"data-cy":"dvrp-footer",onWheel:function(t){V&&e.wheelChange(t)},onContextMenu:function(t){var n=t||window.event;e.dragGesture(n,!1,!1)},onMouseDown:function(t){e.dragGesture(t,!0)},onMouseUp:function(){e.touchStarted=!1,V&&e.dvrTimelineRef&&e.dvrTimelineRef.onDragEnd()},onMouseLeave:function(){e.touchStarted=!1,V&&e.dvrTimelineRef&&e.dvrTimelineRef.onDragEnd()},onMouseMove:function(t){e.touchStarted&&e.dragGesture(t,!1)},onTouchStart:function(t){e.dragGesture(t,!0)},onTouchMove:function(t){e.dragGesture(t)},onTouchEnd:this.dvrTimelineRef&&this.dvrTimelineRef.onDragEnd,onDragStart:function(){return!1},draggable:!1},w.a.createElement("div",{className:"dvr-timeline","data-cy":"dvr-timeline",ref:this.timelineRef},V&&w.a.createElement(Ri,{ref:this.setDvrTimelineRef,onSeek:a,from:s,now:u,zoom:c,utc:u,debug:l,thumbnails_enabled:f,onRangesRequested:d,onCallThumbnail:this.onThumbnail,range_info:J,is_mobile:p,auth_token:r,http_stream_url:h,currentTime:v,returnData:g,observableRanges:m,allRangeInfo:ee,multiTimeline:y,selected:n,toggleDownload:this.toggleDownload,returnDomSizes:this.domSizes,returnVisual:this.returnVisual,fixedRange:x,localTime:_,pointSelectTime:this.pointSelectTime,selectionTimeline:oe,zoomSensivity:q}),Z&&Z.utc&&ue&&!p&&Object(Or.createPortal)(w.a.createElement(Fi,{thumbnail:Z,media:k(),streamUrl:h,authToken:r,thumbnailsEnabled:f,localTime:_,selectionTimeline:oe,basicApiConfig:i}),ue),se>0&&w.a.createElement("div",{className:"timeLineCursor",style:{left:"".concat(se,"px")}}),oe&&V&&o&&D&&w.a.createElement(fo,{ref:this.formRef,dom:ne,real_from:X,real_to:Q,name:n,http_stream_url:h,auth_token:r,locale:I,toggleDownload:this.toggleDownload,changeSelectors:this.changeSelectors,maxDuration:R,setFocus:this.setFocus,streamUrl:h,authToken:r,thumbnailsEnabled:f,localTime:_,playerRef:O,closeExportMenu:function(){e.toggleSelectionTimeline(!1)},basicApiConfig:i,activeVideoTrack:N,activeAudioTrack:F,isTrackSelectAvaible:B.length>1||U.length>1,playerProgressTime:C,form:this.formRef.current,onMoveStart:this.handleDvrSelectionMovingStart,onMoveEnd:this.handleDvrSelectionMovingEnd,is_mobile:p,downloadOptions:L})),w.a.createElement("div",{className:"dvrp-controls","data-cy":"dvrp-controls"},w.a.createElement("div",{className:"dvrp-left-controls","data-cy":"dvrp-left-controls"},V&&w.a.createElement("button",{type:"button",className:"dvrp-button","data-cy":"DVR_play_button",onClick:P?this.handlePause:this.perFrameSeek,title:Y(E?"dvr_play":"dvr_pause")},E?w.a.createElement("span",{className:"icon-play_player"}):w.a.createElement("span",{className:"icon-pause_player"})),U.length>0&&w.a.createElement(Wi,{isMuted:j,volume:A,onChangeMuted:T,onChangeVolume:this.changeVolumeHandler,isMobile:p}),V&&w.a.createElement("button",{className:"dvrp-button",id:"centerZoom","data-cy":"centerZoom",onClick:function(t){e.scrollToPoint(),t&&t.target.blur()},type:"button",title:Y("dvr_go_to_carret_position"),"aria-label":Y("dvr_go_to_carret_position")},w.a.createElement(Gi,null)),V&&w.a.createElement("div",{style:{display:"flex"}},this.controlBtn("dvrp-button",(function(t){e.startScale(t,"out",!1)}),this.stopScale,"zoom_out",w.a.createElement(Ki,null)),this.controlBtn("dvrp-button",(function(t){e.startScale(t,"in",!1)}),this.stopScale,"zoom_in",w.a.createElement(Xi,null))),V&&!p&&this.controlBtn("dvrp-button",this.startScrollLeft,this.stopScroll,"seek_left",w.a.createElement(ai,null)),V&&!p&&this.controlBtn("dvrp-button",this.startScrollRight,this.stopScroll,"seek_right",w.a.createElement(ui,null)),V&&w.a.createElement("div",{className:"timeline__speedControls".concat(P?" hidden":"")},w.a.createElement("button",{className:"dvrp-button",onClick:this.slower,title:Y("dvr_slower"),type:"button","data-cy":"slower","aria-label":Y("dvr_slower")},w.a.createElement(eo,null)),w.a.createElement("div",null,"x".concat(M)),w.a.createElement("button",{className:"dvrp-button",onClick:this.faster,title:Y("dvr_faster"),type:"button","data-cy":"faster","aria-label":Y("dvr_faster")},w.a.createElement(Zi,null)))),w.a.createElement("div",{className:"dvrp-right-controls","data-cy":"dvrp-right-controls"},h&&w.a.createElement(b.Fragment,null,w.a.createElement("div",{className:"timeline__snapshotControl"},w.a.createElement(Ui,{onTakeSnapshotClick:this.onTakeSnapshotClick,locked:te}))),"ott"!==S&&V&&K&&w.a.createElement("button",{className:"dvrp-button",onClick:function(){e.toggleSelectionTimeline(!oe)},title:Y("dvr_select_export"),type:"button","data-cy":"select_export","aria-label":Y("dvr_select_export")},w.a.createElement("span",{className:"icon-export"})),V&&G.length>0&&w.a.createElement("button",{id:"calendarControl","data-cy":"calendarControl",className:"dvrp-button",onClick:this.toggleCalendar,type:"button",title:Y("dvr_calendar"),"aria-label":Y("dvr_calendar")},w.a.createElement("span",{className:"icon-date_player"})),w.a.createElement(vo,{tracksAudio:U,tracksVideo:B,activeAudioTrack:F,activeVideoTrack:N,returnData:g,live:P,openExportMenu:function(){e.toggleSelectionTimeline(!0)}}),!W&&w.a.createElement(xo,{isFullscreen:H,onChangeFullscreenState:this.changeFullscreenStateHandler})),re&&Object(Or.createPortal)(w.a.createElement("div",{id:"calendarModal",className:"calendar"},w.a.createElement(Vi.a,{now:u||this.now(),onChange:this.calendarDayChanged,locale:I,toggleCalendar:this.toggleCalendar,calendarRanges:G,setTimelineZoom:this.setTimelineZoom,isMobile:p})),ce)),w.a.createElement("div",{id:"forClearoutTimeline"})),l&&w.a.createElement("div",{className:"rangesLoading".concat(z?" visible":"")},w.a.createElement("span",null,"•"),Y("dvr_ranges_loading")))}}])}(b.Component);wo.propTypes={playerProgressTime:Bn.a.oneOfType([Bn.a.string,Bn.a.number]),ranges:Bn.a.shape({brief_thumbnails:Bn.a.arrayOf(Bn.a.any),motion_log:Bn.a.any,ranges:Bn.a.arrayOf(Bn.a.shape({opened_at:Bn.a.number,closed_at:Bn.a.number})),stream:Bn.a.string}),observableRanges:Bn.a.shape({start:Bn.a.number,end:Bn.a.number}),calendarRanges:Bn.a.arrayOf(Bn.a.shape({from:Bn.a.number,duration:Bn.a.number})),returnData:Bn.a.func,live:Bn.a.bool,muted:Bn.a.bool,thumbnails_enabled:Bn.a.bool,changeSpeed:Bn.a.func,playback_speed:Bn.a.number,locale:Bn.a.oneOf(["ru","en"]),from:Bn.a.number,now:Bn.a.oneOfType([Bn.a.string,Bn.a.number]),zoom:Bn.a.number,debug:Bn.a.bool,localTime:Bn.a.bool,is_mobile:Bn.a.bool,http_stream_url:Bn.a.string,auth_token:Bn.a.string,onMetadataRequest:Bn.a.func,onToggleMuted:Bn.a.func,onTakeSnapshotClick:Bn.a.func,onSeek:Bn.a.func,onCalendarToggle:Bn.a.func,currentTime:Bn.a.any,dvr_ranges_present:Bn.a.bool,dvr_enabled:Bn.a.bool,paused:Bn.a.bool,multiTimeline:Bn.a.bool,selected:Bn.a.string,rangesLoading:Bn.a.bool,fastSeek:Bn.a.func,volume:Bn.a.number,enableMp4Download:Bn.a.bool,downloadOptions:Bn.a.arrayOf(Bn.a.shape({title:Bn.a.string,callback:Bn.a.func})),seekFrameEnabled:Bn.a.bool,fixedRange:Bn.a.bool,ui:Bn.a.oneOf(["ott","nvr"]),playerRef:Bn.a.any,maxDuration:Bn.a.number,tracksAudio:Bn.a.array,tracksVideo:Bn.a.array,activeAudioTrack:Bn.a.string,activeVideoTrack:Bn.a.oneOfType([Bn.a.string,Bn.a.number]),basicApiConfig:Bn.a.shape({token:Bn.a.string,tokenName:Bn.a.string,auth_token:Bn.a.string,streamer_http:Bn.a.string}),streams:Bn.a.any,isFullscreen:Bn.a.bool.isRequired,noFullscreen:Bn.a.bool.isRequired,zoomSensivity:Bn.a.number,allowExport:Bn.a.bool};var _o=Object(Hr.withTranslation)()(wo),So=function(e){var t=e.isPaused,n=e.onChangePlayState;return w.a.createElement("button",{onClick:function(e){n(!t),e.target.blur()},type:"button",className:"dvrp-button","data-cy":"DVR_play_button"},t?w.a.createElement("span",{className:"icon-play_player"}):w.a.createElement("span",{className:"icon-pause_player"}))};So.propTypes={isPaused:Bn.a.bool.isRequired,onChangePlayState:Bn.a.func.isRequired};var Oo=Object(b.memo)(So),ko=n(453),Eo=n(454),jo=(n(1032),function(e){var t=e.isPaused,n=e.returnData,r=e.isMuted,i=e.volume,o=e.isFullscreen,a=e.tracksAudio,s=e.tracksVideo,u=e.activeAudioTrack,c=e.activeVideoTrack,l=e.showPlayButton,f=e.live,d=e.onSeek,p=e.noFullscreen,h=e.video,v=e.from,g=e.to,m=e.playbackDuration,y=e.debug,x=Object(b.useRef)(),_=Object(b.useState)(!0),S=Ur()(_,2),O=S[0],k=S[1],E=Object(b.useState)(!1),j=Ur()(E,2),T=j[0],C=j[1],A=Object(b.useState)(null),P=Ur()(A,2),M=P[0],I=P[1];Object(b.useEffect)((function(){h&&I(h)}),[h]);var R=function(e){n("paused",e)};Object(b.useEffect)((function(){return window.clearTimeout(x.current),T||t?k(!0):x.current=window.setTimeout((function(){k(!1)}),3e3),function(){window.clearTimeout(x.current)}}),[t,T]);var D=Object(b.useCallback)((function(e){"Space"===e.code&&R(!t)}),[R,t]);return Object(b.useEffect)((function(){return document.addEventListener("keydown",D),function(){document.removeEventListener("keydown",D)}}),[t,D]),w.a.createElement(b.Fragment,null,w.a.createElement("div",{id:"forOverlays"}),w.a.createElement("div",{className:"dvrp-top"},w.a.createElement("div",{className:"dvrp-controls"},!(v&&g||v&&m)&&!l&&w.a.createElement(yo.a,{live:f,seekLiveFunc:function(){return d("live")}}))),w.a.createElement("div",{className:"dvrp-bottom-gradient".concat(O?" _visible":""),"data-cy":"dvrp-bottom-gradient"}),w.a.createElement("div",{className:"dvrp-footer ott".concat(O?" _visible":""),"data-cy":"dvrp-footer",onMouseMove:function(){C(!0)},onMouseLeave:function(){C(!1)},style:{position:"absolute"}},(v&&g||v&&m)&&!l&&M&&w.a.createElement(ko.Timeline,{video:M,from:v,to:g,playbackDuration:m,returnData:n,debug:y}),w.a.createElement("div",{className:"dvrp-controls","data-cy":"dvrp-controls"},w.a.createElement("div",{className:"dvrp-left-controls","data-cy":"dvrp-left-controls"},!l&&w.a.createElement(b.Fragment,null,w.a.createElement(Oo,{isPaused:t,onChangePlayState:R}),a.length>0&&w.a.createElement(Wi,{isMuted:r,volume:i,onChangeMuted:function(e){n("muted",e)},onChangeVolume:function(e){n("volume",e)}}),M&&v&&(g||m)&&w.a.createElement(Eo.TimeIndicator,{video:M,from:v,to:g,playbackDuration:m}))),!l&&w.a.createElement("div",{className:"dvrp-right-controls","data-cy":"dvrp-right-controls"},w.a.createElement(vo,{tracksAudio:a,tracksVideo:s,activeAudioTrack:u,activeVideoTrack:c,returnData:n,live:!0,ott:!0}),!p&&w.a.createElement(xo,{isFullscreen:o,onChangeFullscreenState:function(e){n("fullscreen",e)}}))),w.a.createElement("div",{id:"forClearoutTimeline"})))});jo.propTypes={isPaused:Bn.a.bool.isRequired,returnData:Bn.a.func.isRequired,isMuted:Bn.a.bool.isRequired,volume:Bn.a.number.isRequired,isFullscreen:Bn.a.bool.isRequired,showPlayButton:Bn.a.bool,tracksAudio:Bn.a.array,tracksVideo:Bn.a.array,activeAudioTrack:Bn.a.string,activeVideoTrack:Bn.a.oneOfType([Bn.a.string,Bn.a.number]),live:Bn.a.bool,onSeek:Bn.a.func,noFullscreen:Bn.a.bool.isRequired,video:Bn.a.any,from:Bn.a.number,to:Bn.a.number,playbackDuration:Bn.a.number,debug:Bn.a.bool},jo.defaultProps={tracksAudio:[],tracksVideo:[],activeVideoTrack:"v1",activeAudioTrack:"a1",showPlayButton:!1,live:!0};var To=jo,Co=n(455),Ao=n.n(Co);function Po(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 Mo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Po(Object(n),!0).forEach((function(t){v()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Po(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}n(1037),n(1039);var Io=new kr.QueryClient,Ro=!1,Do=function(e){function t(e){var n,r,i;return p()(this,t),(n=function(e,t,n){return t=Dn()(t),In()(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return!!e}()?Reflect.construct(t,n||[],Dn()(e).constructor):t.apply(e,n))}(this,t,[e])).preparePlayer=n.preparePlayer.bind(n),n.setStateSafe=n.setStateSafe.bind(n),n.timeline=n.timeline.bind(n),n.returnData=n.returnData.bind(n),n.setRanges=n.setRanges.bind(n),n.onTimelineSeek=n.onTimelineSeek.bind(n),n.changeSpeed=n.changeSpeed.bind(n),n.onMetadataRequest=n.onMetadataRequest.bind(n),n.onTakeSnapshotClick=n.onTakeSnapshotClick.bind(n),n.handleToggleMuted=n.handleToggleMuted.bind(n),n.setMotions=n.setMotions.bind(n),n.checkAuth=n.checkAuth.bind(n),n.getProgress=n.getProgress.bind(n),n.checkSegment=n.checkSegment.bind(n),n.checkProgressTime=n.checkProgressTime.bind(n),n.calculateNearLeft=n.calculateNearLeft.bind(n),n.stop=n.stop.bind(n),n.setTimeStop=n.setTimeStop.bind(n),n.refreshPlaying=n.refreshPlaying.bind(n),n.onRangesLoading=n.onRangesLoading.bind(n),n.play=n.play.bind(n),n.onClickToPlay=n.onClickToPlay.bind(n),n.fastSeek=n.fastSeek.bind(n),n.onEventCallback=n.onEventCallback.bind(n),n.stop=n.stop.bind(n),n.restartPlayer=n.restartPlayer.bind(n),n.changeLanguage=n.changeLanguage.bind(n),n.getStats=n.getStats.bind(n),n.addPlayerStat=n.addPlayerStat.bind(n),n.getPlayerStats=n.getPlayerStats.bind(n),n.toggleFullScreen=n.toggleFullScreen.bind(n),n.requestFullscreen=n.requestFullscreen.bind(n),n.exitFullscreen=n.exitFullscreen.bind(n),n.iOSexitHandler=n.iOSexitHandler.bind(n),n.dvrMediaInfo=n.dvrMediaInfo.bind(n),n.tabListener=n.tabListener.bind(n),n.checkIfStreamsAlive=n.checkIfStreamsAlive.bind(n),n.containerRef=w.a.createRef(),n.state={calendarFull:!1,playingStarted:!1,showPlayButton:!1,is_mobile:!1,player:"mse",playback_speed:1,paused:!!navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform),live:!0,isStalling:!0,muted:!0,volume:0,playerProgressTime:Dr.default.now(),liveInView:!1,observableRanges:{},dvr_enabled:!0,dvr_ranges_present:!1,forceScrollToPoint:!1,selected:null,streamingChannels:{},allRanges:{},calendarRanges:[],allMotions:{},playingTimeForPlayers:{},progressTimeForPlayers:{},playSegmentDurationForPlayers:{},sectionInfo:{},selectedUrl:void 0,selectedAuth:void 0,playerReady:{},noAuth:{},rangesLoading:!1,fastSeekingTo:"",livePausedAt:null,isPlaying:!1,networkError:!1,restartTime:null,playerLink:null,vQuality:{corruptedVideoFrames:0,droppedVideoFrames:0,totalVideoFrames:0},seekFrameEnabled:!1,lockViewLeft:null,lockViewRight:null,fullscreen:!1,showSelectedOnly:!1,tracksVideo:[],tracksAudio:[],activeVideoTrack:"",activeAudioTrack:"",currentVideoTrack:"",currentAudioTrack:"",autoVideoTrack:!0,forceStartTrack:!1,streamIsLive:{},info:{},logoProperties:{},advert:[],allowExport:!0,browser:(i=navigator.userAgent,i.includes("OPR/")||i.includes("Opera/")?r="Opera":!i.includes("Safari/")||i.includes("Chrome/")||i.includes("Chromium/")?!i.includes("Chrome/")||i.includes("Edg.")||i.includes("Chromium/")?i.includes("Chromium/")?r="Chromium":i.includes("Edge/")?r="Edge":i.includes("Firefox/")&&!i.includes("Seamonkey/")?r="Firefox":i.includes("Seamonkey/")&&(r="Seamonkey"):r="Chrome":r="Safari",r),ui:"nvr",noFullscreen:!1,locale:e.locale,shouldStop:!1,playDurationStopTime:null,medianStopTime:[],playerRef:null,newTracks:[],basicApiConfig:{},resolution:1},n.resetStats=function(){n.playerStatsObject={user_agent:navigator.userAgent,bytes:0,application:{application_name:"dvr_player",application_version:n.props.version,stall_count:0,pause_count:0,error_count:0,reconnect_count:0,bitrate_change_count:0,stall_duration:0,pause_duration:0,live_duration:0,total_video_frames:0,dropped_video_frames:0,corrupted_video_frames:0,advertising:!1,advertising_duration:0}}},n.uuid=n.generateUUID(),n.timeToDurationStop=null,n}return Nn()(t,e),f()(t,[{key:"componentWillMount",value:function(){var e=this.props,t=e.name,n=e.streamingChannels,r=e.streams,i=e.proto,o=e.fixedRange,a=e.streamer_http,s=e.auth_token,u=e.autoPlay,c=e.muted,l=e.from,f=e.start_track,d=e.dvr,p=e.ui,h=e.enoughBufferTime,g=e.debugTimers,m=e.allow_export,y={};p&&(this.setState({ui:p}),"ott"===p?y=Mo(Mo({},y),{},{player:"hls"}):Ro=!0),"hls"===i&&(y=Mo(Mo({},y),{},{player:"hls"})),"mse"===i&&(y="undefined"!=typeof window&&"MediaSource"in window?Mo(Mo({},y),{},{player:"mse"}):Mo(Mo({},y),{},{player:"hls"})),"webrtc"===i&&(y="undefined"!=typeof window&&(window.RTCPeerConnection||window.mozRTCPeerConnection||window.webkitRTCPeerConnection)?Mo(Mo({},y),{},{player:"webrtc"}):"undefined"!=typeof window&&"MediaSource"in window?Mo(Mo({},y),{},{player:"mse"}):Mo(Mo({},y),{},{player:"hls"})),o&&(y=Mo(Mo({},y),{},{player:"hls"}));var b,x,w=(x=!1,b=navigator.userAgent||navigator.vendor||"undefined"!=typeof window&&window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(b)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(b.substr(0,4)))&&(x=!0),x),_=navigator,S=_.userAgent,O=_.userAgentData;if((S.includes("iPad")||S.includes("iPhone")||S.includes("Android")||O&&O.mobile||w)&&(y=Mo(Mo({},y),{},{is_mobile:!0})),n&&n.streams){var k;n.renderTitles||(1===n.streams.length?n.renderTitles=!1:n.renderTitles=!0),n.streams.forEach((function(e,t){Object.keys(e).length&&e.subName&&(k=t)})),y=Mo(Mo({},y),{},void 0===k?{streamingChannels:{renderTitles:!1,streams:[{subName:t,auth_token:s,main:!0}]}}:{streamingChannels:n,selected:n.streams[k||0].subName||t,selectedUrl:n.streams[k||0].address||a,selectedAuth:n.streams[k||0].auth_token||s})}else{var E={renderTitles:!1,streams:[{subName:t,auth_token:s,main:!0}]};if(r&&r.length){var j=[];r.forEach((function(e){j.push({subName:e})})),E.streams=j,j.length>=1&&(E.renderTitles=!0)}y=Mo(Mo({},y),{},{streamingChannels:E,selected:r&&r[0]||t,selectedAuth:s,playerReady:v()({},t,!1)})}"false"===c&&(y=Mo(Mo({},y),{},{volume:100})),u?(y=Mo(Mo({},y),{},{paused:!1,playerProgressTime:Dr.default.now()}),l&&(y=Mo(Mo({},y),{},{playerProgressTime:1e3*l,live:!1}))):(y=Mo(Mo({},y),{},{showPlayButton:!0,isStalling:!1,paused:!0,playingStarted:!0}),Ro=!0,l&&(y=Mo(Mo({},y),{},{playerProgressTime:1e3*l,live:!1}))),f&&(y=Mo(Mo({},y),{},{forceStartTrack:!0})),d||(y=Mo(Mo({},y),{},{dvr_enabled:!1,ui:"ott"})),this.enoughBufferTime=h||.1,l&&(y=Mo(Mo({},y),{},{playerProgressTime:l,live:!1})),"boolean"==typeof m&&(y=Mo(Mo({},y),{},{allowExport:m})),g&&(console.time("[DVRPlayer]: Init Time"),console.time("[DVRPlayer]: Playback Startup Time"),console.time("[DVRPlayer]: Time to first frame")),this.setStateSafe(y)}},{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.muted,r=t.debug,i=t.version,o=t.autoPlay,a=t.token,s=t.tokenName,u=t.auth_token,c=t.streamer_http,l=this.state,f=l.ui,d=l.selectedAuth,p=l.selectedUrl;if(n){var h="true"==n;this.setStateSafe({muted:h})}r&&console.info("DVRPlayer@".concat(i)),this.resetStats(),this.containerRef.current&&this.containerRef.current.addEventListener("fullscreenchange",(function(t){!document.fullscreenElement&&e.state.fullscreen&&e.setState({fullscreen:!1})})),document.addEventListener("visibilitychange",this.tabListener),"ott"===f&&o&&this.onClickToPlay();var v=d||u;this.setState({basicApiConfig:Object(Rr.basicConfig)({token:a,tokenName:s,auth_token:v,streamer_http:c||p})})}},{key:"componentDidUpdate",value:function(e,t){var n=this,r=this.state,i=r.playerProgressTime,o=r.playingTimeForPlayers,a=r.progressTimeForPlayers,s=r.live,u=r.selected,c=r.allRanges,l=r.streamingChannels,f=r.restartTime,d=r.networkError,p=r.info,h=r.paused,v=r.fullscreen,g=r.player,m=r.ui,y=r.dvr_enabled,b=r.shouldStop,x=r.playDurationStopTime,w=r.medianStopTime,_=r.playerRef,S=r.currentAudioTrack,O=r.currentVideoTrack,k=r.activeVideoTrack,E=r.activeAudioTrack,j=r.autoVideoTrack,T=r.newTracks,C=r.advert,A=r.showPlayButton,P=r.playingStarted,M=this.props,I=M.autoPlay,R=M.auth_token,D=M.from,L=M.to,N=M.reportState,F=M.play_duration,B=l.streams,U=B.length>1,z=Object.keys(p);if(!Object.keys(t.info).length&&z.length&&z.forEach((function(e){var t=p[e],r=t.protocols,i=t.advert,o=t.logo,a=t.stats,s=t.permissions;if(r&&!r.mseld&&(_&&(_.playerType="hls"),n.setState({player:"hls"})),o&&n.returnData("logoProperties",o,e),i&&i.length&&(n.stop(),n.setState({advert:i,isPlaying:!1})),a&&Object.keys(a).length){if("dvr_info"in a&&null!=a&&a.dvr_info){var u=a.dvr_info;if("ranges"in u&&null!=u&&u.ranges){var c=u.ranges;n.setState({calendarRanges:c})}}"status"in a&&"error"===a.status&&_&&_.props.name===e&&_.setState({noLive:!0})}s&&Object.keys(s).length&&"export"in s&&n.setState({allowExport:s.export})})),t.dvr_enabled===y||y||this.setState({ui:"ott",player:"hls"}),!P&&I&&this.preparePlayer(),!t.networkError&&d?(null===f&&this.setState({restartTime:Math.round(i)}),this.setTimeStop()):t.networkError&&!d&&this.restartPlayer(),t.playerProgressTime&&t.playerProgressTime!==i){if(this.state.paused||this.setState({isPlaying:!0,seekFrameEnabled:!1}),F){var V=w;V.length<3?(V.push(i+F),this.setStateSafe({medianStopTime:V})):3===V.length&&this.setStateSafe({playDurationStopTime:Math.min.apply(Math,Pn()(V))}),this.timeToDurationStop=x-i,F&&x&&i>=x&&this.setStateSafe({shouldStop:!0})}L&&i>=L&&this.stop()}else!t.playerProgressTime&&i&&F&&this.setStateSafe({medianStopTime:[i+F]});if(t.selected!==u&&B.forEach((function(e){if(e.subName&&e.subName===u&&(e.address?n.setState({selectedUrl:e.address}):n.setState({selectedUrl:void 0}),e.auth_token?n.setState({selectedAuth:e.auth_token}):n.setState({selectedAuth:R}),e&&e.subName in p)){var t=p[e.subName].stats;if(t&&Object.keys(t).length&&"dvr_info"in t&&null!=t&&t.dvr_info){var r=t.dvr_info;if("ranges"in r&&null!=r&&r.ranges){var i=r.ranges;n.setState({calendarRanges:i})}}}})),0==t.paused&&h&&!t.isPlaying&&this.setState({isPlaying:!1}),t.paused&&0==h&&null!==t.livePausedAt&&(t.livePausedAt<=Dr.default.now()-30&&this.onTimelineSeek(t.livePausedAt),this.setState({livePausedAt:null})),JSON.stringify(a)!==JSON.stringify(t.progressTimeForPlayers)){var H=this.getProgress(a);if(H){var W=this.state,q=W.isStalling,G=W.playerRef;if(!1!==W.playerReady[u]){if(a[u]!==t.progressTimeForPlayers[u]&&G&&"_video"in G){var Y=G._video;Y&&Y.currentTime&&Y.currentTime>this.enoughBufferTime&&(q=!1)}U&&(q=!1),s||null!=t.livePausedAt||this.checkProgressTime(),this.setState({playerProgressTime:H,isStalling:q})}}}else{var K=!0,$=o&&Object.keys(o)||[];$.length&&$.forEach((function(e){"stop"!==o[e]&&(K=!1)})),$.length===B.length&&K&&(A||s||F||"ott"===m||D&&L||d||this.onTimelineSeek(Math.round(i)+1))}if(!Object.keys(t.allRanges).length&&Object.keys(c).length&&(D?I?this.onTimelineSeek(D):(Ro=!0,this.setState({playerProgressTime:D})):I&&this.onClickToPlay()),"ott"===!m&&(!t.muted&&this.state.muted?this.setState({volume:0}):t.muted&&!this.state.muted&&this.setState({volume:100})),"function"==typeof N&&N(this.state,this.getPlayerStats,this),v&&!t.fullscreen)if(Dr.default.isIOS()){var X=this.state.selected,Q=document.getElementById("video_".concat(X));Q&&Q.webkitSupportsFullscreen&&(Q.webkitEnterFullscreen(),Q.addEventListener("webkitendfullscreen",this.iOSexitHandler,!1))}else document.fullscreenEnabled?this.requestFullscreen(this.containerRef.current):this.setState({noFullscreen:!0});if(!v&&t.fullscreen&&(this.exitFullscreen(),this.setState({showSelectedOnly:!1})),!U){if(s!==t.live){if("hls"===g)return;var Z,J=k;"v0"==(J=k?s?"v"+(Number(k)+1):j?"-1":Number(k.replace(/[^0-9]/g,""))-1+"":s?"v1":"-1")&&(J="v1"),Z=E?s?"a"+(Number(E)+1):Number(E.replace(/[^0-9]/g,""))-1+"":s?"a1":"0",this.setState({tracksVideo:[],tracksAudio:[],activeVideoTrack:J,activeAudioTrack:Z})}Object.keys(t.info).length!==z.length&&z.forEach((function(e){var t=p[e].stats;t&&"dvr_enabled"in t&&(t.dvr_enabled||n.setState({dvr_enabled:!1}))}))}!E&&S&&this.setState({activeAudioTrack:S}),!k&&O&&this.setState({activeVideoTrack:O}),E&&S&&O&&JSON.stringify([k||"0",E])!=JSON.stringify(T)&&(E==S&&k==O||JSON.stringify([k,E])==JSON.stringify(T)||this.setState({newTracks:[k,E]})),!t.shouldStop&&b&&(this.stop(),this.setState({shouldStop:!1})),t.advert&&t.advert.length&&!C.length&&(this.continueFrom=null,this.onClickToPlay())}},{key:"componentDidCatch",value:function(e,t){var n=this.props.sentryConfig;n&&n.length&&Vt(e)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("visibilitychange",this.tabListener)}},{key:"setStateSafe",value:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];this.isUnmounted?(e=console).log.apply(e,["DVRPlayer's setState called for unmounted component with args: "].concat(n)):this.setState.apply(this,n)}},{key:"changeLanguage",value:function(e){this.setState({locale:e}),Sr.changeLanguage(e)}},{key:"returnData",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(n){var r=Mo(Mo({},this.state[e]),{},v()({},n,t));if(null==t)return;r[n]=t,this.setState(v()({},e,r))}else this.setState(v()({},e,t))}},{key:"setMotions",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.state.allMotions,o=(null===(n=i[e])||void 0===n?void 0:n.episodes)||[],a=Mo({},i),s=Pn()(o),u=s.map((function(e){return e.opened_at}));null==t||t.episodes.forEach((function(e){var t=u.indexOf(e.opened_at);-1===t?s.push(e):(s[t].closed_at>e.closed_at||r)&&(s[t]=e)})),a[e]=Mo(Mo({},a[e]),{},{episodes:s.sort((function(e,t){return e.opened_at-t.opened_at}))}),this.setState({allMotions:a})}},{key:"setRanges",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.state.allRanges,i=r[e];if(i){var o=Pn()(i),a=o.map((function(e){return e.opened_at}));t.forEach((function(e){if(a.includes(e.opened_at)){var t=a.indexOf(e.opened_at);i[t].closed_at>e.closed_at&&(i[t]=e),n&&(i[t]=e)}else i.push(e)})),r[e]=i.sort((function(e,t){return e.opened_at<t.opened_at?-1:e.opened_at>t.opened_at?1:0})),this.setState({allRanges:Mo(Mo({},r),{},{loaded_at:(new Date).getTime()})})}else r[e]=t,this.setState({allRanges:Mo(Mo({},r),{},{loaded_at:(new Date).getTime()})})}},{key:"preparePlayer",value:function(){var e=this.props,t=e.autoPlay,n=e.fixedRange,r=e.from,i=e.to,o=this.state,a=o.ui,s=o.dvr_enabled,u=o.streamingChannels;if(t){var c={},l={},f={};if(r){u.streams.forEach((function(e){Object.keys(e).length&&(c[e.subName]=r,l[e.subName]={nextSection:"live"},f[e.subName]=!0)}));var d={playingTimeForPlayers:c,playerReady:f,sectionInfo:l,playingStarted:!0};"ott"!==a&&(d=Mo(Mo({},d),{},{observableRanges:{start:r-300,end:Dr.default.now()+300}})),this.setState(d)}else u.streams.forEach((function(e){Object.keys(e).length&&(c[e.subName]="live",l[e.subName]={nextSection:"live"},f[e.subName]=!1)})),this.setStateSafe({playingTimeForPlayers:c,sectionInfo:l,playerReady:f,live:!0,playingStarted:!0}),s||this.setState({observableRanges:{start:Dr.default.now()-300,end:Dr.default.now()+300}}),"ott"!==a&&this.checkProgressTime()}else Ro=!0,r?this.setStateSafe({observableRanges:{start:r-300,end:Dr.default.now()+300}}):this.setStateSafe({observableRanges:{start:Dr.default.now()-300,end:Dr.default.now()+300}});if(n&&r){var p=Dr.default.now()+300;i&&(p=i,this.setStateSafe({lockViewRight:i})),this.setStateSafe({observableRanges:{start:r-300,end:p},lockViewLeft:r})}}},{key:"play",value:function(){this.onClickToPlay()}},{key:"onClickToPlay",value:function(e,t){var n=this;e&&e.stopPropagation();var r=this.state,i=r.ui,o=r.streamingChannels;if(this.setState({showPlayButton:!1,isStalling:!0,paused:!1}),this.resetStats(),this.props.from){var a={},s={};o.streams.forEach((function(e){Object.keys(e).length&&(a[e.subName]=n.props.from,s[e.subName]=!1)})),this.setStateSafe({observableRanges:{start:this.props.from-300,end:Dr.default.now()+300},live:!1,playingTimeForPlayers:a,playerReady:s})}else{var u={},c={},l={};o.streams.forEach((function(e){Object.keys(e).length&&(u[e.subName]=n.continueFrom||t?n.continueFrom||t:"live",c[e.subName]=n.continueFrom?{}:{nextSection:"live"},l[e.subName]=!1)})),this.setStateSafe({playingTimeForPlayers:u,sectionInfo:c,playerReady:l,live:!this.continueFrom&&!t}),"ott"!==i&&this.checkProgressTime()}this.continueFrom=null}},{key:"onRangesLoading",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.setState({rangesLoading:e});var t=this.props.element;if(t&&t.dispatchEvent){var n=new CustomEvent("rangesLoading",{detail:e});t.dispatchEvent(n)}}},{key:"onMetadataRequest",value:function(){var e=this.state.playerRef;return e?e.getMetadata():{width:0,height:0}}},{key:"onTakeSnapshotClick",value:function(e,t){var n=this.state,r=n.playerRef,i=n.playerProgressTime;e(),r&&r.takeSnapshot(Math.round(i)).then(t,t)}},{key:"onTimelineSeek",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.state,i=r.playerRef,o=r.playerReady,a=r.allRanges,s=r.showPlayButton,u=r.info,c=r.selected;if("ott"!==this.state.ui){var l=e||"live",f=Object.keys(u);if(s&&this.onClickToPlay(void 0,e),!this.state.live||!(l>=Dr.default.now()||"live"===l)){"live"!==e?this.setState({live:!1}):this.setState({live:!0});var d={},p=Mo({},a),h=Object.keys(p).filter((function(e){if("loaded_at"!==e)return e}));if(n)return h.forEach((function(e){d[e]=l})),void this.setState({playingTimeForPlayers:d,playerProgressTime:l,progressTimeForPlayers:{}});if(null!==this.state.livePausedAt&&!l)return h.forEach((function(e){d[e]=l})),void this.setState({playingTimeForPlayers:d,playerProgressTime:l,progressTimeForPlayers:{}});null!==this.state.livePausedAt?f.forEach((function(e){d[e]=t.state.livePausedAt})):d=this.checkSegment(l);var v={};Object.keys(o).forEach((function(e){d&&"stop"===d[e]||"string"==typeof a[e]?v[e]=!0:v[e]=!1}));var g=this.getProgress(d);if(this.checkIfStreamsAlive()&&(l>=Dr.default.now()||"live"===l)&&(g=Dr.default.now()),i&&1===f){var m=i._video;m&&m.pause&&m.pause()}this.timeToDurationStop=null,this.setState({playerReady:v,playingTimeForPlayers:d,isStalling:!0,progressTimeForPlayers:{},playerProgressTime:g||Dr.default.now(),forceScrollToPoint:this.props.centeredSeek,paused:!1,noAuth:{},playDurationStopTime:null,medianStopTime:[]}),this.uuid=this.generateUUID()}}else if("live"!==e){var y=document.getElementById("video_".concat(c));y.currentTime=e,this.setState({live:!1})}}},{key:"checkSegment",value:function(e){if(e){var t=Mo({},this.state.allRanges),n={},r={},i={},o=Object.keys(t).filter((function(e){if("loaded_at"!==e)return e})),a=!1;if(e>=Dr.default.now()||"live"===e)return o.forEach((function(e){r[e]="live"})),r;if(o&&o.length){if(o.forEach((function(o){if(t[o]){var s=Dr.default.CheckInRange(e,t[o]);if(n[o]||(n[o]={}),n[o]=s,s)a=!0,r=Mo(Mo({},r),{},v()({},o,e)),i=Mo(Mo({},i),{},v()({},o,s.playbackDuration));else{var u=Dr.default.getNearLeftFrom(e,t[o]);n[o]={nextSection:u},r=Mo(Mo({},r),{},v()({},o,"stop"))}}else n[o]={nextSection:"live"}})),this.setState({sectionInfo:n,playSegmentDurationForPlayers:i}),!a){var s=this.calculateNearLeft(e);return this.checkSegment(s)}return r}return r}}},{key:"getProgress",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.progressTimeForPlayers;return Object.keys(t).length&&Object.keys(t).forEach((function(n){"number"==typeof t[n]&&(e<t[n]||!e)&&(e=t[n])})),e}},{key:"checkProgressTime",value:function(){var e=this,t=this.state,n=t.sectionInfo,r=t.playingTimeForPlayers,i=t.playerProgressTime,o=t.playerReady,a=t.showPlayButton;"number"==typeof i&&Object.keys(r).forEach((function(t){if(n[t]&&Math.round(i)>=Math.round(n[t].sectionEnd-.5)&&Math.round(i)<=Math.round(n[t].nextSection-.5))e.setState({playingTimeForPlayers:Mo(Mo({},r),{},v()({},t,"stop"))});else if("stop"==r[t]){if(!1===o[t]&&e.returnData("playerReady",!0,t),n[t]&&Math.round(i)>Math.round(n[t].nextSection)){var s=Math.round(i);e.checkSegment(s),e.setState({playingTimeForPlayers:Mo(Mo({},r),{},v()({},t,s))})}}else n[t]&&"live"===n[t].nextSection&&!a&&Math.round(i)>=Dr.default.now()-10&&e.onTimelineSeek("live")}))}},{key:"calculateNearLeft",value:function(e){var t=this.state.allRanges,n=Number.POSITIVE_INFINITY;if(Object.keys(t).filter((function(e){if("loaded_at"!==e)return e})).forEach((function(r){var i=Dr.default.getNearLeftFrom(e,t[r]);(i<n||"live"===i)&&(n=i)})),n!==1/0)return n}},{key:"changeSpeed",value:function(e){e>=1/8&&e<=16&&this.setStateSafe({playback_speed:e})}},{key:"handleToggleMuted",value:function(e){this.setStateSafe({muted:!this.state.muted})}},{key:"refreshPlaying",value:function(){this.onTimelineSeek(this.state.playerProgressTime)}},{key:"fastSeek",value:function(e,t){var n=Mo({},this.state.allRanges),r=Object.keys(n),i=!0;r.forEach((function(t){n[t]&&"array"==typeof n[t]&&(Dr.default.canFastSeek(e,n[t])||(i=!1))})),i&&this.setState({fastSeekingTo:t})}},{key:"setTimeStop",value:function(){var e={},t={};this.state.streamingChannels.streams.forEach((function(n){Object.keys(n).length&&(e[n.subName]="stop",t[n.subName]=!0)})),this.setState({playingTimeForPlayers:e,playerReady:t})}},{key:"stop",value:function(){var e=this.state.playerProgressTime;this.setTimeStop(),e&&(this.continueFrom=Math.round(e)),this.setState({showPlayButton:!0,isStalling:!1,playingStarted:!1,paused:!0,playDurationStopTime:null,medianStopTime:[]}),this.timeToDurationStop=null}},{key:"restartPlayer",value:function(){var e=this.state.restartTime;null!==e&&(this.onTimelineSeek(e),this.setState({restartTime:null}))}},{key:"onEventCallback",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.selected,t=arguments.length>1?arguments[1]:void 0;if(e===this.state.selected||"ott"===this.props.ui){var n=t.key,r=t.data,i=r.event,o=n||Date.now();switch(i){case"play_init":this.playerStatsObject.proto="hls",this.playerStatsObject.opened_at=o;break;case"play_buffer_codecs":this.playerStatsObject.first_byte_at=o;break;case"play_started":this.playerStatsObject.started_at=o;break;case"play_resume":if(this.pauseStartedAt){var a=this.playerStatsObject.application;if(a){var s=a.pause_duration;s+=o-this.pauseStartedAt,this.addPlayerStat("pause_duration",!1,s),delete this.pauseStartedAt}}break;case"play_stalled":this.addPlayerStat("stall_count");break;case"play_buffering":this.buferingStart=o;break;case"play_buffered":var u=r.stats,c=u.loaded,l=void 0===c?0:c;if(this.playerStatsObject.bytes+=l,this.buferingStart){var f=this.playerStatsObject.application;if(f){var d=f.stall_duration;d+=o-this.buferingStart,this.addPlayerStat("stall_duration",!1,d),delete this.buferingStart}}break;case"play_loadedmetadata":this.addPlayerStat("bitrate_change_count");break;case"play_error":this.addPlayerStat("error_count");break;case"play_stop":this.playerStatsObject.closed_at=o;break;case"play_pause":this.addPlayerStat("pause_count"),this.pauseStartedAt=o;break;case"play_manifestloaded":var p=r.networkDetails;this.playerStatsObject.source_id=p.headers.get("X-Sid");break;case"play_progress":if(this.segmentStart){var h=this.playerStatsObject.application;if(h){var v=h.live_duration;v+=o-this.segmentStart,this.addPlayerStat("live_duration",!1,v),delete this.segmentStart;var g=this.state.vQuality,m=g.corruptedVideoFrames,y=g.droppedVideoFrames,b=g.totalVideoFrames;this.addPlayerStat("total_video_frames",!1,b),this.addPlayerStat("dropped_video_frames",!1,y),this.addPlayerStat("corrupted_video_frames",!1,m)}}else this.segmentStart=o;this.playerStatsObject.updated_at=o;break;case"advertising":this.addPlayerStat("advertising",!1,!0),delete this.playerStatsObject.closed_at,this.playerStatsObject.started_at||(this.playerStatsObject.started_at=o);break;case"advertising_duration":var x=r.duration;this.addPlayerStat("advertising_duration",!1,x)}}this.props.onEvent&&this.props.onEvent(e,t)}},{key:"addPlayerStat",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.playerStatsObject.application;r&&(n?r[e]=n:t&&r[e]++,this.playerStatsObject.application=r)}},{key:"getStats",value:function(){return Mo(Mo({},this.playerStatsObject),{},{id:this.uuid})}},{key:"getPlayerStats",value:function(){var e=this.state,t=e.playerLink,n=e.live,r=e.ui;if(n){if("ott"===r)return this.getStats();if(t){var i=t.getStats(),o=i.application;return o&&(o.application_name="dvr_player",o.application_version=this.props.version),delete i.uuid,i=Mo(Mo({},i),{},{application:o}),this.playerStatsObject=Mo(Mo(Mo({},this.playerStatsObject),i),{},{id:this.uuid}),this.playerStatsObject}}return this.getStats()}},{key:"dvrMediaInfo",value:function(e,t){var n=[],r=[];if("mse"===t||"webrtc"===t){var i=e.tracks,o=e.activeStreams,a=i.filter((function(e){return e.content&&"audio"===e.content})),s=o.audio,u=void 0===s?"a1":s,c=o.video,l=void 0===c?"v1":c;i.forEach((function(e){e.content&&"audio"!==e.content&&n.push({text:"".concat(e.width,"x").concat(e.height),width:e.width,height:e.height,track_id:e.track_id})})),a.forEach((function(e,t){r.push({text:e.language?e.language:"audio track ".concat(t+1),track_id:e.track_id})})),this.setState({tracksAudio:r,tracksVideo:n,currentVideoTrack:l||"v1",currentAudioTrack:u||"a1"})}else{var f=e.audioTracks;e.levels.forEach((function(e,t){n.push({text:"".concat(e.width,"x").concat(e.height),width:e.width,height:e.height,track_id:t})})),f.forEach((function(e,t){r.push({text:e.lang||"audio track ".concat(t+1),track_id:t})})),this.setState({tracksAudio:r,tracksVideo:n})}var d=this.props.start_track;if(this.state.forceStartTrack&&d){if(n.length<=1)return;if("lowest"===d){var p,h=999999;n.forEach((function(e){e.width<h&&(h=e.width,p=e.track_id)})),this.setState({activeVideoTrack:p,autoVideoTrack:!1})}else if("best"===d){var v,g=1;n.forEach((function(e){e.width>g&&(g=e.width,v=e.track_id)})),this.setState({activeVideoTrack:v,autoVideoTrack:!1})}else this.setState({activeVideoTrack:d,autoVideoTrack:!1})}if(this.props.onMediaInfo&&"function"==typeof this.props.onMediaInfo)if("mse"===t)this.props.onMediaInfo(Mo(Mo({},e),{},{streamType:t}));else{var m=e.audioTracks,y=e.levels,b=[];m.forEach((function(e){var t=e.audioCodec,n=e.bitrate,r=e.lang,i=e.name;b.push({codec:t,bitrate:n,language:r,track_id:i,content:"audio"})})),y.forEach((function(e){var t=e.videoCodec,n=e.bitrate,r=e.height,i=e.width;b.push({codec:t,bitrate:n,height:r,width:i,content:"video"})})),this.props.onMediaInfo({streamType:t,streamName:this.state.selected,streams:b,tracks:b})}}},{key:"checkAuth",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.selectedAuth;return void 0!==e?"?".concat(e):void 0!==this.props.auth_token?"?".concat(this.props.auth_token):""}},{key:"generateUUID",value:function(){var e=(new Date).getTime(),t="undefined"!=typeof performance&&performance.now&&1e3*performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(n){var r=16*Math.random();return e>0?(r=(e+r)%16|0,e=Math.floor(e/16)):(r=(t+r)%16|0,t=Math.floor(t/16)),("x"===n?r:3&r|8).toString(16)}))}},{key:"toggleFullScreen",value:function(){this.setState((function(e){return{fullscreen:!e.fullscreen}}))}},{key:"requestFullscreen",value:function(e){e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullScreen&&e.webkitRequestFullScreen()}},{key:"exitFullscreen",value:function(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()}},{key:"iOSexitHandler",value:function(){if(!document.webkitIsFullScreen&&!document.mozFullScreen&&!document.msFullscreenElement){var e=this.state.selected,t=document.getElementById("video_".concat(e));this.setState({fullscreen:!1,paused:!1}),t.removeEventListener("webkitendfullscreen",this.iOSexitHandler),setTimeout((function(){t.paused&&t.play()}),500)}}},{key:"tabListener",value:function(){document.hidden?this.timeToDurationStop&&this.timeToDurationStop<3e4?this.stopTimer=setTimeout(this.stop,this.timeToDurationStop):this.stopTimer=setTimeout(this.stop,3e4):this.stopTimer&&clearTimeout(this.stopTimer)}},{key:"checkIfStreamsAlive",value:function(){var e=this.state.streamIsLive,t=Object.keys(e),n=!1;return t.length?(t.forEach((function(t){e[t]&&(n=!0)})),n):n}},{key:"timeline",value:function(e,t){var n=this.state,r=n.rangesLoading,i=n.seekFrameEnabled,o=n.playingTimeForPlayers,a=n.playerProgressTime,s=n.selected,u=n.lockViewLeft,c=n.lockViewRight,l=n.showPlayButton,f=n.tracksAudio,d=n.tracksVideo,p=n.activeAudioTrack,h=n.activeVideoTrack,v=n.browser,g=n.streamingChannels,m=n.fullscreen,y=n.muted,b=n.volume,x=n.paused,_=n.live,S=n.isStalling,O=n.dvr_ranges_present,k=n.dvr_enabled,E=n.ui,j=n.noFullscreen,T=n.forceScrollToPoint,C=n.allMotions,A=n.allRanges,P=n.player,M=n.playback_speed,I=n.is_mobile,R=n.observableRanges,D=n.locale,L=n.playerRef,N=n.basicApiConfig,F=n.calendarRanges,B=n.allowExport,U=this.props,z=U.from,V=U.to,H=U.play_duration,W=U.zoom,q=U.thumbnails_enabled,G=U.noMenu,Y=U.debug,K=U.timeLineElement,$=U.info_url,X=null;L&&"_video"in L&&(X=L._video);var Q=G?null:w.a.createElement(w.a.Fragment,null,"ott"===E&&w.a.createElement(To,{isPaused:x,returnData:this.returnData,volume:b,isMuted:y,isFullscreen:m||!1,tracksAudio:f,tracksVideo:d,activeAudioTrack:p,activeVideoTrack:h,showPlayButton:l,live:_,onSeek:this.onTimelineSeek,noFullscreen:j,video:X,from:z,to:V,playbackDuration:H,debug:Y,info_url:$}),"nvr"===E&&w.a.createElement(_o,{http_stream_url:e,muted:y,thumbnails_enabled:q,playback_speed:M,locale:D,from:z,zoom:W,player:P,debug:Y,is_mobile:I,auth_token:t,changeSpeed:this.changeSpeed,onToggleMuted:this.handleToggleMuted,onMetadataRequest:this.onMetadataRequest,onSeek:this.onTimelineSeek,onTakeSnapshotClick:this.onTakeSnapshotClick,currentTime:o&&s&&s in o?o[s]:{},playerProgressTime:a,now:a,allRanges:A,ranges:A&&A[s]?{ranges:"string"!=typeof A[s]?A[s]:[],motion_log:C&&C[s]?C[s]:[],stream:s}:{ranges:[],stream:s},motion_log:C&&C[s]?C[s]:[],observableRanges:R,calendarRanges:F,returnData:this.returnData,live:_,loading:S,dvr_ranges_present:O,dvr_enabled:k,paused:x,forceScrollToPoint:T,multiTimeline:this.props.multiTimeline,selected:s,rangesLoading:r,fastSeek:this.fastSeek,volume:b,enableMp4Download:this.props.enableMp4Download,downloadOptions:this.props.downloadOptions,seekFrameEnabled:i,fixedRange:this.props.fixedRange,lockViewLeft:u,lockViewRight:c,ui:E,playerRef:L,localTime:this.props.localtime,maxDuration:this.props.export_limit,tracksAudio:f,tracksVideo:d,activeAudioTrack:p,activeVideoTrack:h,basicApiConfig:N,browser:v,streams:g.streams,isFullscreen:m,noFullscreen:j,zoomSensivity:1,allowExport:B}));return K?Object(Or.createPortal)(Q,K):Q}},{key:"render",value:function(){var e=this,t=this.state,n=t.ranges,r=t.playingTimeForPlayers,i=t.playerProgressTime,o=t.muted,a=t.playback_speed,s=t.allRanges,u=t.showPlayButton,c=t.fastSeekingTo,l=t.networkError,f=t.seekFrameEnabled,d=t.selectedUrl,p=t.noAuth,h=t.autoVideoTrack,v=t.observableRanges,g=t.selected,m=t.streamingChannels,y=t.rangesLoading,b=t.isPlaying,x=t.streamIsLive,_=t.selectedAuth,S=t.logoProperties,O=t.browser,k=t.playSegmentDurationForPlayers,E=t.isStalling,j=t.dvr_enabled,T=t.ui,C=t.volume,A=t.newTracks,P=t.basicApiConfig,M=t.advert,I=t.live,R=t.liveInView,D=t.info,L=t.playerRef,N=t.showSelectedOnly,F=t.resolution,B=this.props,U=B.episodes_url,z=B.auth_token,V=B.statsSendEnable,H=B.statsSendTime,W=B.headers,q=B.from,G=B.to,Y=B.play_duration,K=B.autoPlay,$=B.token,X=B.info_url,Q=B.streamer_http,Z=B.streamer_rtmp,J=B.debug,ee=B.debugTimers,te=B.panzoom,ne=B.customItemWrapper,re=B.fixedRange,ie=B.tracks,oe=B.ptz,ae=v.start,se=v.end,ue="".concat(d||Q,"/").concat(g),ce=_||z;L&&"_video"in L&&L._video&&"currentTime"in L._video&&L._video.currentTime>.25&&(Ro=!0);var le=w.a.createElement(Si,{returnData:this.returnData,playerType:this.state.player,playingTimeForPlayers:r,name:this.props.name,muted:o,auth_token:ce,tracks:ie,streamer_http:Q||d,streamer_rtmp:Z,playback_speed:a,ranges:n,debug:J,debugTimers:ee,paused:this.state.paused,isStalling:E,onMediaInfo:this.dvrMediaInfo,streamingChannels:m,allRanges:s,noAuth:p,selected:g,panzoom:te,customItemWrapper:ne,refreshPlaying:this.refreshPlaying,showPlayButton:u,onClickToPlay:this.onClickToPlay,fastSeekingTo:c,from:q,volume:C,getStats:this.getPlayerStats,onEvent:this.onEventCallback,seekFrameEnabled:f,fixedRange:re,onDoubleClick:function(){e.toggleFullScreen(),e.setState({showSelectedOnly:!N})},showSelectedOnly:N,ui:T,newTracks:A,autoVideoTrack:h,isPlaying:b,basicApiConfig:P,streamIsLive:x,logoProperties:S,browser:O,playSegmentDurationForPlayers:k,dvr_enabled:j,autoPlay:K,advert:M,onSeek:this.onTimelineSeek,fastSeek:this.fastSeek,playerProgressTime:i,live:I,token:$});return w.a.createElement(kr.QueryClientProvider,{client:Io},w.a.createElement("div",{className:"dvrContainer".concat(j?"":" noDvr"),ref:this.containerRef,"data-cy":"dvrContainer"},(null==oe?void 0:oe.show_ptz_controls)&&I&&w.a.createElement(Ao.a,{headers:W,ptz_url:null==oe?void 0:oe.api_url}),le,Ro&&this.timeline(ue,ce,P),l&&w.a.createElement("div",{className:"reconnect"},w.a.createElement("p",null,"Trying to reconnect...")),w.a.createElement("div",{id:"videoThumbnail",className:"videoThumbnail"}),w.a.createElement("div",{id:"forCalendar"}),w.a.createElement("div",{id:"forPopup"}),w.a.createElement("div",{id:"forClearout"}),Ro&&b&&w.a.createElement("div",{className:"Loading".concat(E?" visible":""),"data-cy":"loadingIndicator"},w.a.createElement(Lr,null)),g&&!("ott"===T&&(q&&G||q&&Y))&&Object.keys(P).length&&m.streams.map((function(t,n){if(t.subName){if(t.ureachable)return;return w.a.createElement(Ir.a,{name:t.subName,auth_token:t.auth_token||_,address:t.address||"",basicApiConfig:P,returnData:e.returnData,info_url:X,isLive:I,key:"info_".concat(t.subName,"_").concat(n)})}})),g&&ae&&se&&"ott"!==T&&!l&&m.streams.map((function(t,n){if(t.subName){if(t.ureachable)return;return w.a.createElement(jr.a,{name:t.subName,address:t.address||Q,auth_token:t.auth_token||"",start:ae,end:se,returnData:e.returnData,setRanges:e.setRanges,dvr_enabled:j,onRangesLoading:t.subName===g?e.onRangesLoading:void 0,rangesLoading:y,liveCheck:!1,basicApiConfig:P,key:"".concat(t.subName,"_").concat(n),resolution:F})}})),g&&R&&"ott"!==T&&!l&&Object.keys(D).length&&m.streams.map((function(t,n){if(t.subName===g)return w.a.createElement(jr.a,{name:t.subName,address:t.address,auth_token:t.auth_token||"",returnData:e.returnData,setRanges:e.setRanges,dvr_enabled:j,onRangesLoading:e.onRangesLoading,rangesLoading:y,liveCheck:!0,basicApiConfig:P,key:"".concat(t.subName,"_").concat(n,"_live"),resolution:F})})),Object.keys(P).length&&j&&U&&g&&!l&&"ott"!==T&&w.a.createElement(Cr.a,{name:g,start:ae,end:se,episodes_url:U,headers:W,basicApiConfig:P,setMotions:this.setMotions}),V&&!l&&m.streams.map((function(t){if(t.subName){if(t.ureachable)return;return w.a.createElement(Pr.a,{name:t.subName,stats:e.getPlayerStats,basicApiConfig:P,statsSendTime:H,key:"session_".concat(t.subName)})}}))))}}])}(b.Component);Do.propTypes={ui:Bn.a.oneOf(["ott","nvr"]),fixedRange:Bn.a.bool,proto:Bn.a.string,from:Bn.a.number,to:Bn.a.number,play_duration:Bn.a.number,streamer_http:Bn.a.string,streamer_rtmp:Bn.a.string,thumbnails_enabled:Bn.a.bool,auth_token:Bn.a.string,autoPlay:Bn.a.bool,locale:Bn.a.oneOf(["ru","en"]),name:Bn.a.string,zoom:Bn.a.number,debug:Bn.a.bool,debugTimers:Bn.a.bool,tracks:Bn.a.string,timeLineElement:Bn.a.object,onMediaInfo:Bn.a.func,panzoom:Bn.a.bool,noMenu:Bn.a.bool,customItemWrapper:Bn.a.func,centeredSeek:Bn.a.bool,multiTimeline:Bn.a.bool,element:Bn.a.instanceOf(Element),episodes_url:Bn.a.string,reportState:Bn.a.func,streams:Bn.a.array,streamingChannels:Bn.a.any,enableMp4Download:Bn.a.bool,sentryConfig:Bn.a.string,version:Bn.a.string,downloadOptions:Bn.a.arrayOf(Bn.a.shape({title:Bn.a.string,callback:Bn.a.func})),statsSendEnable:Bn.a.bool,statsSendTime:Bn.a.number,onEvent:Bn.a.func,localtime:Bn.a.bool,allow_export:Bn.a.bool,export_limit:Bn.a.number,start_track:Bn.a.string,tokenName:Bn.a.string,token:Bn.a.string,dvr:Bn.a.bool,localTime:Bn.a.bool,headers:Bn.a.shape({}),enoughBufferTime:Bn.a.number,ptz:Bn.a.shape({show_ptz_controls:Bn.a.bool,api_url:Bn.a.string})},Do.defaultProps={autoPlay:!0,timelineElement:void 0,panzoom:!0,centeredSeek:!1,multiTimeline:!1,enableMp4Download:!0,statsSendEnable:!0,statsSendTime:60,fixedRange:!1,ui:"nvr",export_limit:86400,dvr:!0,tokenName:"token",enoughBufferTime:.1,localTime:!0,debug:!1,debugTimers:!1,ptz:{show_ptz_controls:!1,api_url:null}};var Lo=Do,No=n(459),Fo=n(460);function Bo(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 Uo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bo(Object(n),!0).forEach((function(t){v()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Sr.use(Hr.initReactI18next);var zo=function(e){Sr.init({lng:e,fallbackLng:"en",keySeparator:!1,interpolation:{escapeValue:!1},resources:{en:{translation:Uo({},No)},ru:{translation:Uo({},Fo)}}})},Vo=f()((function e(){var t=this;p()(this,e),v()(this,"subscribe",(function(e,n,r){t.state=e,t.getStats=n,t.main=r})),v()(this,"setRoot",(function(e){t.root=e})),v()(this,"isPlaying",(function(){return!t.state.isStalling&&t.state.isPlaying})),v()(this,"metrics",(function(){var e=t.state;return{ranges:e.allRanges,motions:e.allMotions,playerProgressTime:e.playerProgressTime,playerReady:e.playerReady,playback_speed:e.playback_speed}})),v()(this,"isDvrInUse",(function(){return!t.state.live})),v()(this,"DvrInstance",(function(){return t.main})),v()(this,"DvrUnmount",(function(){t.root.unmount()}))}));Lo.load=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r={timeLineElement:n};if(e.query){var i=Object(Cn.decode)(e.query.replace(/^\?/,"")),o=i.auth_token_name||e.auth_token_name||"token";r.tokenName=i.tokenName||e.tokenName||o,o&&i[o]&&(r.auth_token=o+"="+encodeURIComponent(i[o]),r.token=encodeURIComponent(i[o])),i.play_duration&&parseInt(i.play_duration)>0&&(r.play_duration=parseInt(i.play_duration)),i.locale?(r.locale=i.locale,zo(i.locale)):zo((null==e?void 0:e.locale)||"en"),i.info_url&&(r.info_url=i.info_url),i.track&&(r.track=i.track),i.from&&parseInt(i.from)>0&&(r.from=parseInt(i.from)),i.to&&parseInt(i.to)>0&&(r.to=parseInt(i.to)),i.zoom&&parseInt(i.zoom)>0&&(r.zoom=parseInt(i.zoom)),(i.auto_play||i.autoplay||i.autoPlay)&&(r.autoPlay="true"==i.autoplay||"true"==i.autoPlay||"yes"==i.autoPlay),i.allow_export&&("false"==i.allow_export?r.allow_export=!1:"true"==i.allow_export&&(r.allow_export=!0)),i.name&&(r.name=i.name),i.host&&(r.streamer_http=i.host),i.proto&&(r.proto=i.proto),i.muted&&(r.muted=i.muted),i.panzoom&&("false"==i.panzoom?r.panzoom=!1:"true"==i.panzoom&&(r.panzoom=!0)),i.centeredSeek&&(r.centeredSeek="true"==i.centeredSeek),i.multiTimeline&&(r.multiTimeline="true"==i.multiTimeline);var a=i.noMenu||i.nomenu||i.no_menu;a&&(r.noMenu="true"==a),r.element=t,i.episodes_url&&(r.episodes_url=i.episodes_url),i.streams&&(r.streams=i.streams.split(",")),i.enableMp4Download&&(r.enableMp4Download="false"!=i.enableMp4Download),i.sentryConfig&&(r.sentryConfig=i.sentryConfig),i.statsSendEnable&&(r.statsSendEnable="true"===i.statsSendEnable),i.statsSendTime&&(r.statsSendTime=Number(i.statsSendTime)),i.fixedRange&&(r.fixedRange="false"!=i.fixedRange),i.ui&&(r.ui=i.ui),i.localtime&&(r.localtime="false"!==i.localtime),i.export_limit&&(r.export_limit=Number(i.export_limit)),i.start_track&&(r.start_track=i.start_track),i.dvr&&(r.dvr="false"!==i.dvr),i.headers&&(r.headers=i.headers||{}),i.enoughBufferTime&&(r.enoughBufferTime=Number(i.enoughBufferTime)),i.debug&&(r.debug=!0),i.debugTimers&&(r.debugTimers=!0)}else zo((null==e?void 0:e.locale)||"en"),r.info_url=e.info_url;var s=new Vo;r.reportState=s.subscribe;var u="";u="24.12.1",r.version=u;var c=k()(e,{$merge:r});c.thumbnails_enabled||(c.thumbnails_enabled=!1),c.sentryConfig&&c.sentryConfig.length&&En({dsn:c.sentryConfig,environment:"production",release:"DvrPlayer@"+u});var l=Object(Tn.createRoot)(t);return c.close=function(){l.unmount()},l.render(w.a.createElement(Lo,c)),s.setRoot(l),s},t.default=Lo},function(e,t,n){"use strict";var r;n.r(t),n.d(t,"v1",(function(){return v})),n.d(t,"v3",(function(){return k})),n.d(t,"v4",(function(){return E})),n.d(t,"v5",(function(){return C})),n.d(t,"NIL",(function(){return A})),n.d(t,"version",(function(){return P})),n.d(t,"validate",(function(){return s})),n.d(t,"stringify",(function(){return d})),n.d(t,"parse",(function(){return g}));var i=new Uint8Array(16);function o(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)}for(var a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,s=function(e){return"string"==typeof e&&a.test(e)},u=[],c=0;c<256;++c)u.push((c+256).toString(16).substr(1));var l,f,d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(u[e[t+0]]+u[e[t+1]]+u[e[t+2]]+u[e[t+3]]+"-"+u[e[t+4]]+u[e[t+5]]+"-"+u[e[t+6]]+u[e[t+7]]+"-"+u[e[t+8]]+u[e[t+9]]+"-"+u[e[t+10]]+u[e[t+11]]+u[e[t+12]]+u[e[t+13]]+u[e[t+14]]+u[e[t+15]]).toLowerCase();if(!s(n))throw TypeError("Stringified UUID is invalid");return n},p=0,h=0,v=function(e,t,n){var r=t&&n||0,i=t||new Array(16),a=(e=e||{}).node||l,s=void 0!==e.clockseq?e.clockseq:f;if(null==a||null==s){var u=e.random||(e.rng||o)();null==a&&(a=l=[1|u[0],u[1],u[2],u[3],u[4],u[5]]),null==s&&(s=f=16383&(u[6]<<8|u[7]))}var c=void 0!==e.msecs?e.msecs:Date.now(),v=void 0!==e.nsecs?e.nsecs:h+1,g=c-p+(v-h)/1e4;if(g<0&&void 0===e.clockseq&&(s=s+1&16383),(g<0||c>p)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");p=c,h=v,f=s;var m=(1e4*(268435455&(c+=122192928e5))+v)%4294967296;i[r++]=m>>>24&255,i[r++]=m>>>16&255,i[r++]=m>>>8&255,i[r++]=255&m;var y=c/4294967296*1e4&268435455;i[r++]=y>>>8&255,i[r++]=255&y,i[r++]=y>>>24&15|16,i[r++]=y>>>16&255,i[r++]=s>>>8|128,i[r++]=255&s;for(var b=0;b<6;++b)i[r+b]=a[b];return t||d(i)},g=function(e){if(!s(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n},m=function(e,t,n){function r(e,r,i,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=g(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var a=new Uint8Array(16+e.length);if(a.set(r),a.set(e,r.length),(a=n(a))[6]=15&a[6]|t,a[8]=63&a[8]|128,i){o=o||0;for(var s=0;s<16;++s)i[o+s]=a[s];return i}return d(a)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r};function y(e){return 14+(e+64>>>9<<4)+1}function b(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function x(e,t,n,r,i,o){return b((a=b(b(t,e),b(r,o)))<<(s=i)|a>>>32-s,n);var a,s}function w(e,t,n,r,i,o,a){return x(t&n|~t&r,e,t,i,o,a)}function _(e,t,n,r,i,o,a){return x(t&r|n&~r,e,t,i,o,a)}function S(e,t,n,r,i,o,a){return x(t^n^r,e,t,i,o,a)}function O(e,t,n,r,i,o,a){return x(n^(t|~r),e,t,i,o,a)}var k=m("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,r=0;r<n;r+=8){var i=e[r>>5]>>>r%32&255,o=parseInt("0123456789abcdef".charAt(i>>>4&15)+"0123456789abcdef".charAt(15&i),16);t.push(o)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[y(t)-1]=t;for(var n=1732584193,r=-271733879,i=-1732584194,o=271733878,a=0;a<e.length;a+=16){var s=n,u=r,c=i,l=o;n=w(n,r,i,o,e[a],7,-680876936),o=w(o,n,r,i,e[a+1],12,-389564586),i=w(i,o,n,r,e[a+2],17,606105819),r=w(r,i,o,n,e[a+3],22,-1044525330),n=w(n,r,i,o,e[a+4],7,-176418897),o=w(o,n,r,i,e[a+5],12,1200080426),i=w(i,o,n,r,e[a+6],17,-1473231341),r=w(r,i,o,n,e[a+7],22,-45705983),n=w(n,r,i,o,e[a+8],7,1770035416),o=w(o,n,r,i,e[a+9],12,-1958414417),i=w(i,o,n,r,e[a+10],17,-42063),r=w(r,i,o,n,e[a+11],22,-1990404162),n=w(n,r,i,o,e[a+12],7,1804603682),o=w(o,n,r,i,e[a+13],12,-40341101),i=w(i,o,n,r,e[a+14],17,-1502002290),n=_(n,r=w(r,i,o,n,e[a+15],22,1236535329),i,o,e[a+1],5,-165796510),o=_(o,n,r,i,e[a+6],9,-1069501632),i=_(i,o,n,r,e[a+11],14,643717713),r=_(r,i,o,n,e[a],20,-373897302),n=_(n,r,i,o,e[a+5],5,-701558691),o=_(o,n,r,i,e[a+10],9,38016083),i=_(i,o,n,r,e[a+15],14,-660478335),r=_(r,i,o,n,e[a+4],20,-405537848),n=_(n,r,i,o,e[a+9],5,568446438),o=_(o,n,r,i,e[a+14],9,-1019803690),i=_(i,o,n,r,e[a+3],14,-187363961),r=_(r,i,o,n,e[a+8],20,1163531501),n=_(n,r,i,o,e[a+13],5,-1444681467),o=_(o,n,r,i,e[a+2],9,-51403784),i=_(i,o,n,r,e[a+7],14,1735328473),n=S(n,r=_(r,i,o,n,e[a+12],20,-1926607734),i,o,e[a+5],4,-378558),o=S(o,n,r,i,e[a+8],11,-2022574463),i=S(i,o,n,r,e[a+11],16,1839030562),r=S(r,i,o,n,e[a+14],23,-35309556),n=S(n,r,i,o,e[a+1],4,-1530992060),o=S(o,n,r,i,e[a+4],11,1272893353),i=S(i,o,n,r,e[a+7],16,-155497632),r=S(r,i,o,n,e[a+10],23,-1094730640),n=S(n,r,i,o,e[a+13],4,681279174),o=S(o,n,r,i,e[a],11,-358537222),i=S(i,o,n,r,e[a+3],16,-722521979),r=S(r,i,o,n,e[a+6],23,76029189),n=S(n,r,i,o,e[a+9],4,-640364487),o=S(o,n,r,i,e[a+12],11,-421815835),i=S(i,o,n,r,e[a+15],16,530742520),n=O(n,r=S(r,i,o,n,e[a+2],23,-995338651),i,o,e[a],6,-198630844),o=O(o,n,r,i,e[a+7],10,1126891415),i=O(i,o,n,r,e[a+14],15,-1416354905),r=O(r,i,o,n,e[a+5],21,-57434055),n=O(n,r,i,o,e[a+12],6,1700485571),o=O(o,n,r,i,e[a+3],10,-1894986606),i=O(i,o,n,r,e[a+10],15,-1051523),r=O(r,i,o,n,e[a+1],21,-2054922799),n=O(n,r,i,o,e[a+8],6,1873313359),o=O(o,n,r,i,e[a+15],10,-30611744),i=O(i,o,n,r,e[a+6],15,-1560198380),r=O(r,i,o,n,e[a+13],21,1309151649),n=O(n,r,i,o,e[a+4],6,-145523070),o=O(o,n,r,i,e[a+11],10,-1120210379),i=O(i,o,n,r,e[a+2],15,718787259),r=O(r,i,o,n,e[a+9],21,-343485551),n=b(n,s),r=b(r,u),i=b(i,c),o=b(o,l)}return[n,r,i,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(y(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))})),E=function(e,t,n){var r=(e=e||{}).random||(e.rng||o)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return d(r)};function j(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function T(e,t){return e<<t|e>>>32-t}var C=m("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var i=0;i<r.length;++i)e.push(r.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,a=Math.ceil(o/16),s=new Array(a),u=0;u<a;++u){for(var c=new Uint32Array(16),l=0;l<16;++l)c[l]=e[64*u+4*l]<<24|e[64*u+4*l+1]<<16|e[64*u+4*l+2]<<8|e[64*u+4*l+3];s[u]=c}s[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295;for(var f=0;f<a;++f){for(var d=new Uint32Array(80),p=0;p<16;++p)d[p]=s[f][p];for(var h=16;h<80;++h)d[h]=T(d[h-3]^d[h-8]^d[h-14]^d[h-16],1);for(var v=n[0],g=n[1],m=n[2],y=n[3],b=n[4],x=0;x<80;++x){var w=Math.floor(x/20),_=T(v,5)+j(w,g,m,y)+b+t[w]+d[x]>>>0;b=y,y=m,m=T(g,30)>>>0,g=v,v=_}n[0]=n[0]+v>>>0,n[1]=n[1]+g>>>0,n[2]=n[2]+m>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+b>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]})),A="00000000-0000-0000-0000-000000000000",P=function(e){if(!s(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},function(e,t,n){"use strict";var r=n(20),i=n(52),o=n.n(i).a.unstable_batchedUpdates;r.a.setBatchNotifyFunction(o)},function(e,t,n){"use strict";var r=n(103),i=console;Object(r.b)(i)},,,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return c}));var r=n(3),i=n(35),o=n(461),a=n(75),s=n(223);function u(t,n,u){void 0===n&&(n=1/0),void 0===u&&(u=1/0);try{return function t(n,u,c,l,f){void 0===c&&(c=1/0),void 0===l&&(l=1/0),void 0===f&&(f=Object(o.a)());var d=Object(r.c)(f,2),p=d[0],h=d[1],v=u;if(v&&"function"==typeof v.toJSON)try{return v.toJSON()}catch(e){}if(null===u||["number","boolean","string"].includes(I(u))&&!Object(i.h)(u))return u;var g=function(t,n){try{return"domain"===t&&n&&"object"==I(n)&&n._events?"[Domain]":"domainEmitter"===t?"[DomainEmitter]":void 0!==e&&n===e?"[Global]":"undefined"!=typeof window&&n===window?"[Window]":"undefined"!=typeof document&&n===document?"[Document]":Object(i.m)(n)?"[SyntheticEvent]":"number"==typeof n&&n!=n?"[NaN]":void 0===n?"[undefined]":"function"==typeof n?"[Function: "+Object(s.b)(n)+"]":"symbol"==I(n)?"["+String(n)+"]":"bigint"==typeof n?"[BigInt: "+String(n)+"]":"[object "+Object.getPrototypeOf(n).constructor.name+"]"}catch(e){return"**non-serializable** ("+e+")"}}(n,u);if(!g.startsWith("[object "))return g;if(0===c)return g.replace("object ","");if(p(u))return"[Circular ~]";var m=Array.isArray(u)?[]:{},y=0,b=Object(i.d)(u)||Object(i.f)(u)?Object(a.b)(u):u;for(var x in b)if(Object.prototype.hasOwnProperty.call(b,x)){if(y>=l){m[x]="[MaxProperties ~]";break}var w=b[x];m[x]=t(x,w,c-1,l,f),y+=1}return h(u),m}("",t,n,u)}catch(e){return{ERROR:"**non-serializable** ("+e+")"}}}function c(e,t,n){void 0===t&&(t=3),void 0===n&&(n=102400);var r,i=u(e,t);return r=i,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(r))>n?c(e,t-1,n):i}}).call(this,n(96))}])},"object"==I(t)&&"object"==I(e)?e.exports=o():(r=[],void 0===(i="function"==typeof(n=o)?n.apply(t,r):n)||(e.exports=i))}).call(this,n(231)(e))},function(e,t,n){"use strict";function r(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}}function i(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o={p:i,P:function(e,t){var n,o=e.match(/(P+)(p+)?/),a=o[1],s=o[2];if(!s)return r(e,t);switch(a){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",r(a,t)).replace("{{time}}",i(s,t))}};t.default=o,e.exports=t.default},function(e,t,n){"use strict";var r={};n.r(r),n.d(r,"create",(function(){return S})),n.d(r,"copy",(function(){return O})),n.d(r,"clone",(function(){return k})),n.d(r,"set",(function(){return E})),n.d(r,"add",(function(){return j})),n.d(r,"scaleAndAdd",(function(){return T})),n.d(r,"sub",(function(){return C})),n.d(r,"len",(function(){return A})),n.d(r,"length",(function(){return P})),n.d(r,"lenSquare",(function(){return M})),n.d(r,"lengthSquare",(function(){return I})),n.d(r,"mul",(function(){return R})),n.d(r,"div",(function(){return D})),n.d(r,"dot",(function(){return L})),n.d(r,"scale",(function(){return N})),n.d(r,"normalize",(function(){return F})),n.d(r,"distance",(function(){return B})),n.d(r,"dist",(function(){return U})),n.d(r,"distanceSquare",(function(){return z})),n.d(r,"distSquare",(function(){return V})),n.d(r,"negate",(function(){return H})),n.d(r,"lerp",(function(){return W})),n.d(r,"applyTransform",(function(){return q})),n.d(r,"min",(function(){return G})),n.d(r,"max",(function(){return Y}));var i={};n.r(i),n.d(i,"create",(function(){return xe})),n.d(i,"identity",(function(){return we})),n.d(i,"copy",(function(){return _e})),n.d(i,"mul",(function(){return Se})),n.d(i,"translate",(function(){return Oe})),n.d(i,"rotate",(function(){return ke})),n.d(i,"scale",(function(){return Ee})),n.d(i,"invert",(function(){return je})),n.d(i,"clone",(function(){return Te}));var o={};n.r(o),n.d(o,"init",(function(){return dr})),n.d(o,"dispose",(function(){return pr})),n.d(o,"disposeAll",(function(){return hr})),n.d(o,"getInstance",(function(){return vr})),n.d(o,"registerPainter",(function(){return gr})),n.d(o,"version",(function(){return mr}));var a={};n.r(a),n.d(a,"updateProps",(function(){return Us})),n.d(a,"initProps",(function(){return zs})),n.d(a,"removeElement",(function(){return Hs})),n.d(a,"removeElementWithFadeOut",(function(){return qs})),n.d(a,"isElementRemoved",(function(){return Vs})),n.d(a,"extendShape",(function(){return eh})),n.d(a,"extendPath",(function(){return nh})),n.d(a,"registerShape",(function(){return rh})),n.d(a,"getShapeClass",(function(){return ih})),n.d(a,"makePath",(function(){return oh})),n.d(a,"makeImage",(function(){return ah})),n.d(a,"mergePath",(function(){return uh})),n.d(a,"resizePath",(function(){return ch})),n.d(a,"subPixelOptimizeLine",(function(){return lh})),n.d(a,"subPixelOptimizeRect",(function(){return fh})),n.d(a,"subPixelOptimize",(function(){return dh})),n.d(a,"getTransform",(function(){return ph})),n.d(a,"applyTransform",(function(){return hh})),n.d(a,"transformDirection",(function(){return vh})),n.d(a,"groupTransition",(function(){return mh})),n.d(a,"clipPointsByRect",(function(){return yh})),n.d(a,"clipRectByRect",(function(){return bh})),n.d(a,"createIcon",(function(){return xh})),n.d(a,"linePolygonIntersect",(function(){return wh})),n.d(a,"lineLineIntersect",(function(){return _h})),n.d(a,"setTooltipConfig",(function(){return Oh})),n.d(a,"traverseElements",(function(){return Eh})),n.d(a,"Group",(function(){return ur})),n.d(a,"Image",(function(){return ua})),n.d(a,"Text",(function(){return Ma})),n.d(a,"Circle",(function(){return Zd})),n.d(a,"Ellipse",(function(){return tp})),n.d(a,"Sector",(function(){return mp})),n.d(a,"Ring",(function(){return xp})),n.d(a,"Polygon",(function(){return Op})),n.d(a,"Polyline",(function(){return jp})),n.d(a,"Rect",(function(){return ga})),n.d(a,"Line",(function(){return Pp})),n.d(a,"BezierCurve",(function(){return Lp})),n.d(a,"Arc",(function(){return Bp})),n.d(a,"IncrementalDisplayable",(function(){return Xp})),n.d(a,"CompoundPath",(function(){return Up})),n.d(a,"LinearGradient",(function(){return Vp})),n.d(a,"RadialGradient",(function(){return Hp})),n.d(a,"BoundingRect",(function(){return Fe})),n.d(a,"OrientedBoundingRect",(function(){return Kp})),n.d(a,"Point",(function(){return Ce})),n.d(a,"Path",(function(){return ta}));var s={};n.r(s),n.d(s,"createList",(function(){return Vb})),n.d(s,"getLayoutRect",(function(){return kc})),n.d(s,"createDimensions",(function(){return wy})),n.d(s,"dataStack",(function(){return Hb})),n.d(s,"createSymbol",(function(){return Vv})),n.d(s,"createScale",(function(){return Wb})),n.d(s,"mixinAxisModelCommonMethods",(function(){return qb})),n.d(s,"getECData",(function(){return Ia})),n.d(s,"enableHoverEmphasis",(function(){return js})),n.d(s,"createTextStyle",(function(){return Gb}));var u={};n.r(u),n.d(u,"linearMap",(function(){return xr})),n.d(u,"round",(function(){return _r})),n.d(u,"asc",(function(){return Sr})),n.d(u,"getPrecision",(function(){return Or})),n.d(u,"getPrecisionSafe",(function(){return kr})),n.d(u,"getPixelPrecision",(function(){return Er})),n.d(u,"getPercentWithPrecision",(function(){return jr})),n.d(u,"MAX_SAFE_INTEGER",(function(){return Ar})),n.d(u,"remRadian",(function(){return Pr})),n.d(u,"isRadianAroundZero",(function(){return Mr})),n.d(u,"parseDate",(function(){return Rr})),n.d(u,"quantity",(function(){return Dr})),n.d(u,"quantityExponent",(function(){return Lr})),n.d(u,"nice",(function(){return Nr})),n.d(u,"quantile",(function(){return Fr})),n.d(u,"reformIntervals",(function(){return Br})),n.d(u,"isNumeric",(function(){return zr})),n.d(u,"numericToNumber",(function(){return Ur}));var c={};n.r(c),n.d(c,"parse",(function(){return Rr})),n.d(c,"format",(function(){return qu}));var l={};n.r(l),n.d(l,"extendShape",(function(){return eh})),n.d(l,"extendPath",(function(){return nh})),n.d(l,"makePath",(function(){return oh})),n.d(l,"makeImage",(function(){return ah})),n.d(l,"mergePath",(function(){return uh})),n.d(l,"resizePath",(function(){return ch})),n.d(l,"createIcon",(function(){return xh})),n.d(l,"updateProps",(function(){return Us})),n.d(l,"initProps",(function(){return zs})),n.d(l,"getTransform",(function(){return ph})),n.d(l,"clipPointsByRect",(function(){return yh})),n.d(l,"clipRectByRect",(function(){return bh})),n.d(l,"registerShape",(function(){return rh})),n.d(l,"getShapeClass",(function(){return ih})),n.d(l,"Group",(function(){return ur})),n.d(l,"Image",(function(){return ua})),n.d(l,"Text",(function(){return Ma})),n.d(l,"Circle",(function(){return Zd})),n.d(l,"Ellipse",(function(){return tp})),n.d(l,"Sector",(function(){return mp})),n.d(l,"Ring",(function(){return xp})),n.d(l,"Polygon",(function(){return Op})),n.d(l,"Polyline",(function(){return jp})),n.d(l,"Rect",(function(){return ga})),n.d(l,"Line",(function(){return Pp})),n.d(l,"BezierCurve",(function(){return Lp})),n.d(l,"Arc",(function(){return Bp})),n.d(l,"IncrementalDisplayable",(function(){return Xp})),n.d(l,"CompoundPath",(function(){return Up})),n.d(l,"LinearGradient",(function(){return Vp})),n.d(l,"RadialGradient",(function(){return Hp})),n.d(l,"BoundingRect",(function(){return Fe}));var f={};n.r(f),n.d(f,"addCommas",(function(){return uc})),n.d(f,"toCamelCase",(function(){return cc})),n.d(f,"normalizeCssArray",(function(){return lc})),n.d(f,"encodeHTML",(function(){return ae})),n.d(f,"formatTpl",(function(){return hc})),n.d(f,"getTooltipMarker",(function(){return vc})),n.d(f,"formatTime",(function(){return gc})),n.d(f,"capitalFirst",(function(){return mc})),n.d(f,"truncateText",(function(){return Ri})),n.d(f,"getTextRect",(function(){return sx}));var d={};n.r(d),n.d(d,"map",(function(){return x.map})),n.d(d,"each",(function(){return x.each})),n.d(d,"indexOf",(function(){return x.indexOf})),n.d(d,"inherits",(function(){return x.inherits})),n.d(d,"reduce",(function(){return x.reduce})),n.d(d,"filter",(function(){return x.filter})),n.d(d,"bind",(function(){return x.bind})),n.d(d,"curry",(function(){return x.curry})),n.d(d,"isArray",(function(){return x.isArray})),n.d(d,"isString",(function(){return x.isString})),n.d(d,"isObject",(function(){return x.isObject})),n.d(d,"isFunction",(function(){return x.isFunction})),n.d(d,"extend",(function(){return x.extend})),n.d(d,"defaults",(function(){return x.defaults})),n.d(d,"clone",(function(){return x.clone})),n.d(d,"merge",(function(){return x.merge}));var p={};n.r(p),n.d(p,"version",(function(){return Eg})),n.d(p,"dependencies",(function(){return jg})),n.d(p,"PRIORITY",(function(){return Pg})),n.d(p,"init",(function(){return bm})),n.d(p,"connect",(function(){return xm})),n.d(p,"disConnect",(function(){return wm})),n.d(p,"disconnect",(function(){return _m})),n.d(p,"dispose",(function(){return Sm})),n.d(p,"getInstanceByDom",(function(){return Om})),n.d(p,"getInstanceById",(function(){return km})),n.d(p,"registerTheme",(function(){return Em})),n.d(p,"registerPreprocessor",(function(){return jm})),n.d(p,"registerProcessor",(function(){return Tm})),n.d(p,"registerPostInit",(function(){return Cm})),n.d(p,"registerPostUpdate",(function(){return Am})),n.d(p,"registerUpdateLifecycle",(function(){return Pm})),n.d(p,"registerAction",(function(){return Mm})),n.d(p,"registerCoordinateSystem",(function(){return Im})),n.d(p,"getCoordinateSystemDimensions",(function(){return Rm})),n.d(p,"registerLocale",(function(){return Mu})),n.d(p,"registerLayout",(function(){return Dm})),n.d(p,"registerVisual",(function(){return Lm})),n.d(p,"registerLoading",(function(){return Bm})),n.d(p,"setCanvasCreator",(function(){return Um})),n.d(p,"registerMap",(function(){return zm})),n.d(p,"getMap",(function(){return Vm})),n.d(p,"registerTransform",(function(){return Hm})),n.d(p,"dataTool",(function(){return Wm})),n.d(p,"zrender",(function(){return o})),n.d(p,"matrix",(function(){return i})),n.d(p,"vector",(function(){return r})),n.d(p,"zrUtil",(function(){return x})),n.d(p,"color",(function(){return Ut})),n.d(p,"throttle",(function(){return Bh})),n.d(p,"helper",(function(){return s})),n.d(p,"use",(function(){return Ym})),n.d(p,"setPlatformAPI",(function(){return Vn.e})),n.d(p,"parseGeoJSON",(function(){return ax})),n.d(p,"parseGeoJson",(function(){return ax})),n.d(p,"number",(function(){return u})),n.d(p,"time",(function(){return c})),n.d(p,"graphic",(function(){return l})),n.d(p,"format",(function(){return f})),n.d(p,"util",(function(){return d})),n.d(p,"env",(function(){return b.a})),n.d(p,"List",(function(){return xy})),n.d(p,"Model",(function(){return _u})),n.d(p,"Axis",(function(){return bx})),n.d(p,"ComponentModel",(function(){return Ic})),n.d(p,"ComponentView",(function(){return Td})),n.d(p,"SeriesModel",(function(){return Ed})),n.d(p,"ChartView",(function(){return Dh})),n.d(p,"innerDrawElementOnCanvas",(function(){return hg})),n.d(p,"extendComponentModel",(function(){return xx})),n.d(p,"extendComponentView",(function(){return wx})),n.d(p,"extendSeriesModel",(function(){return _x})),n.d(p,"extendChartView",(function(){return Sx})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ var h=function(e,t){return(h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function v(e,t){function n(){this.constructor=e}h(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var g=function(){return(g=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)}; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var m=function(e,t){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function y(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}m(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;Object.create;var b=n(47),x=n(3),w=function(e,t){return(w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function _(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}w(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;Object.create;function S(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function O(e,t){return e[0]=t[0],e[1]=t[1],e}function k(e){return[e[0],e[1]]}function E(e,t,n){return e[0]=t,e[1]=n,e}function j(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function T(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function C(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function A(e){return Math.sqrt(M(e))}var P=A;function M(e){return e[0]*e[0]+e[1]*e[1]}var I=M;function R(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function D(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function L(e,t){return e[0]*t[0]+e[1]*t[1]}function N(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function F(e,t){var n=A(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function B(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var U=B;function z(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var V=z;function H(e,t){return e[0]=-t[0],e[1]=-t[1],e}function W(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function q(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function G(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function Y(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var K=function(e,t){this.target=e,this.topTarget=t&&t.topTarget},$=function(){function e(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new K(t,e),"dragstart",e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,o=r-this._y;this._x=n,this._y=r,t.drift(i,o,e),this.handler.dispatchToElement(new K(t,e),"drag",e.event);var a=this.handler.findHover(n,r,t).target,s=this._dropTarget;this._dropTarget=a,t!==a&&(s&&a!==s&&this.handler.dispatchToElement(new K(s,e),"dragleave",e.event),a&&a!==s&&this.handler.dispatchToElement(new K(a,e),"dragenter",e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new K(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new K(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},e}(),X=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof t&&(r=n,n=t,t=null),!n||!e)return this;var o=this._$eventProcessor;null!=t&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var a=0;a<i[e].length;a++)if(i[e][a].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},u=i[e].length-1,c=i[e][u];return c&&c.callAtLast?i[e].splice(u,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,o=n[e].length;i<o;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&0===n[e].length&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var o=t.length,a=r.length,s=0;s<a;s++){var u=r[s];if(!i||!i.filter||null==u.query||i.filter(e,u.query))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t)}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var o=t.length,a=t[o-1],s=r.length,u=0;u<s;u++){var c=r[u];if(!i||!i.filter||null==c.query||i.filter(e,c.query))switch(o){case 0:c.h.call(a);break;case 1:c.h.call(a,t[0]);break;case 2:c.h.call(a,t[0],t[1]);break;default:c.h.apply(a,t.slice(1,o-1))}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e}(),Q=Math.log(2);function Z(e,t,n,r,i,o){var a=r+"-"+i,s=e.length;if(o.hasOwnProperty(a))return o[a];if(1===t){var u=Math.round(Math.log((1<<s)-1&~i)/Q);return e[n][u]}for(var c=r|1<<n,l=n+1;r&1<<l;)l++;for(var f=0,d=0,p=0;d<s;d++){var h=1<<d;h&i||(f+=(p%2?-1:1)*e[n][d]*Z(e,t-1,l,c,i|h,o),p++)}return o[a]=f,f}function J(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=Z(n,8,0,0,0,r);if(0!==i){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*Z(n,7,0===a?1:0,1<<a,1<<s,r)/i*t[a];return function(e,t,n){var r=t*o[6]+n*o[7]+1;e[0]=(t*o[0]+n*o[1]+o[2])/r,e[1]=(t*o[3]+n*o[4]+o[5])/r}}}var ee="___zrEVENTSAVED",te=[];function ne(e,t,n,r,i){if(t.getBoundingClientRect&&b.a.domSupported&&!re(t)){var o=t[ee]||(t[ee]={}),a=function(e,t,n){for(var r=n?"invTrans":"trans",i=t[r],o=t.srcCoords,a=[],s=[],u=!0,c=0;c<4;c++){var l=e[c].getBoundingClientRect(),f=2*c,d=l.left,p=l.top;a.push(d,p),u=u&&o&&d===o[f]&&p===o[f+1],s.push(e[c].offsetLeft,e[c].offsetTop)}return u&&i?i:(t.srcCoords=a,t[r]=n?J(s,a):J(a,s))}(function(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=["left","right"],i=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,u=o%2,c=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[u]+":0",i[c]+":0",r[1-u]+":auto",i[1-c]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return n}(t,o),o,i);if(a)return a(e,n,r),!0}return!1}function re(e){return"CANVAS"===e.nodeName.toUpperCase()}var ie=/([&<>"'])/g,oe={"&":"&","<":"<",">":">",'"':""","'":"'"};function ae(e){return null==e?"":(e+"").replace(ie,(function(e,t){return oe[t]}))}var se=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ue=[],ce=b.a.browser.firefox&&+b.a.browser.version.split(".")[0]<39;function le(e,t,n,r){return n=n||{},r?fe(e,t,n):ce&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):fe(e,t,n),n}function fe(e,t,n){if(b.a.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(re(e)){var o=e.getBoundingClientRect();return n.zrX=r-o.left,void(n.zrY=i-o.top)}if(ne(ue,e,r,i))return n.zrX=ue[0],void(n.zrY=ue[1])}n.zrX=n.zrY=0}function de(e){return e||window.event}function pe(e,t,n){if(null!=(t=de(t)).zrX)return t;var r=t.type;if(r&&r.indexOf("touch")>=0){var i="touchend"!==r?t.targetTouches[0]:t.changedTouches[0];i&&le(e,i,t,n)}else{le(e,t,t,n);var o=function(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(null==n||null==r)return t;return 3*(0!==r?Math.abs(r):Math.abs(n))*(r>0?-1:r<0?1:n>0?-1:1)}(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var a=t.button;return null==t.which&&void 0!==a&&se.test(t.type)&&(t.which=1&a?1:2&a?3:4&a?2:0),t}function he(e,t,n,r){e.addEventListener(t,n,r)}var ve=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function ge(e){return 2===e.which||3===e.which}var me=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},o=0,a=r.length;o<a;o++){var s=r[o],u=le(n,s,{});i.points.push([u.zrX,u.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in be)if(be.hasOwnProperty(t)){var n=be[t](this._track,e);if(n)return n}},e}();function ye(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}var be={pinch:function(e,t){var n=e.length;if(n){var r,i=(e[n-1]||{}).points,o=(e[n-2]||{}).points||i;if(o&&o.length>1&&i&&i.length>1){var a=ye(i)/ye(o);!isFinite(a)&&(a=1),t.pinchScale=a;var s=[((r=i)[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2];return t.pinchX=s[0],t.pinchY=s[1],{type:"pinch",target:e[0].target,event:t}}}}};function xe(){return[1,0,0,1,0,0]}function we(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function _e(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Se(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],o=t[0]*n[2]+t[2]*n[3],a=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],u=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=o,e[3]=a,e[4]=s,e[5]=u,e}function Oe(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function ke(e,t,n){var r=t[0],i=t[2],o=t[4],a=t[1],s=t[3],u=t[5],c=Math.sin(n),l=Math.cos(n);return e[0]=r*l+a*c,e[1]=-r*c+a*l,e[2]=i*l+s*c,e[3]=-i*c+l*s,e[4]=l*o+c*u,e[5]=l*u-c*o,e}function Ee(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function je(e,t){var n=t[0],r=t[2],i=t[4],o=t[1],a=t[3],s=t[5],u=n*a-o*r;return u?(u=1/u,e[0]=a*u,e[1]=-o*u,e[2]=-r*u,e[3]=n*u,e[4]=(r*s-a*i)*u,e[5]=(o*i-n*s)*u,e):null}function Te(e){var t=[1,0,0,1,0,0];return _e(t,e),t}var Ce=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}(),Ae=Math.min,Pe=Math.max,Me=new Ce,Ie=new Ce,Re=new Ce,De=new Ce,Le=new Ce,Ne=new Ce,Fe=function(){function e(e,t,n,r){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r),this.x=e,this.y=t,this.width=n,this.height=r}return e.prototype.union=function(e){var t=Ae(e.x,this.x),n=Ae(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Pe(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Pe(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,r=e.height/t.height,i=[1,0,0,1,0,0];return Oe(i,i,[-t.x,-t.y]),Ee(i,i,[n,r]),Oe(i,i,[e.x,e.y]),i},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,i=r.x,o=r.x+r.width,a=r.y,s=r.y+r.height,u=t.x,c=t.x+t.width,l=t.y,f=t.y+t.height,d=!(o<u||c<i||s<l||f<a);if(n){var p=1/0,h=0,v=Math.abs(o-u),g=Math.abs(c-i),m=Math.abs(s-l),y=Math.abs(f-a),b=Math.min(v,g),x=Math.min(m,y);o<u||c<i?b>h&&(h=b,v<g?Ce.set(Ne,-v,0):Ce.set(Ne,g,0)):b<p&&(p=b,v<g?Ce.set(Le,v,0):Ce.set(Le,-g,0)),s<l||f<a?x>h&&(h=x,m<y?Ce.set(Ne,0,-m):Ce.set(Ne,0,y)):b<p&&(p=b,m<y?Ce.set(Le,0,m):Ce.set(Le,0,-y))}return n&&Ce.copy(n,d?Le:Ne),d},e.prototype.contain=function(e,t){return e>=this.x&&e<=this.x+this.width&&t>=this.y&&t<=this.y+this.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return 0===this.width||0===this.height},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];return t.x=n.x*i+a,t.y=n.y*o+s,t.width=n.width*i,t.height=n.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}Me.x=Re.x=n.x,Me.y=De.y=n.y,Ie.x=De.x=n.x+n.width,Ie.y=Re.y=n.y+n.height,Me.transform(r),De.transform(r),Ie.transform(r),Re.transform(r),t.x=Ae(Me.x,Ie.x,Re.x,De.x),t.y=Ae(Me.y,Ie.y,Re.y,De.y);var u=Pe(Me.x,Ie.x,Re.x,De.x),c=Pe(Me.y,Ie.y,Re.y,De.y);t.width=u-t.x,t.height=c-t.y}else t!==n&&e.copy(t,n)},e}(),Be="silent";function Ue(){ve(this.event)}var ze=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return _(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(X),Ve=function(e,t){this.x=e,this.y=t},He=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],We=new Fe(0,0,0,0),qe=function(e){function t(t,n,r,i,o){var a=e.call(this)||this;return a._hovered=new Ve(0,0),a.storage=t,a.painter=n,a.painterRoot=i,a._pointerSize=o,r=r||new ze,a.proxy=null,a.setHandlerProxy(r),a._draggingMgr=new $(a),a}return _(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(x.each(He,(function(t){e.on&&e.on(t,this[t],this)}),this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=Ke(this,t,n),i=this._hovered,o=i.target;o&&!o.__zr&&(o=(i=this.findHover(i.x,i.y)).target);var a=this._hovered=r?new Ve(t,n):this.findHover(t,n),s=a.target,u=this.proxy;u.setCursor&&u.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(i,"mouseout",e),this.dispatchToElement(a,"mousemove",e),s&&s!==o&&this.dispatchToElement(a,"mouseover",e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Ve(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){var r=(e=e||{}).target;if(!r||!r.silent){for(var i="on"+t,o=function(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Ue}}(t,e,n);r&&(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(t,o),r=r.__hostTarget?r.__hostTarget:r.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(t,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(e){"function"==typeof e[i]&&e[i].call(e,o),e.trigger&&e.trigger(t,o)})))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new Ve(e,t);if(Ye(r,i,e,t,n),this._pointerSize&&!i.target){for(var o=[],a=this._pointerSize,s=a/2,u=new Fe(e-s,t-s,a,a),c=r.length-1;c>=0;c--){var l=r[c];l===n||l.ignore||l.ignoreCoarsePointer||l.parent&&l.parent.ignoreCoarsePointer||(We.copy(l.getBoundingRect()),l.transform&&We.applyTransform(l.transform),We.intersect(u)&&o.push(l))}if(o.length)for(var f=Math.PI/12,d=2*Math.PI,p=0;p<s;p+=4)for(var h=0;h<d;h+=f){if(Ye(o,i,e+p*Math.cos(h),t+p*Math.sin(h),n),i.target)return i}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||(this._gestureMgr=new me);var n=this._gestureMgr;"start"===t&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===t&&n.clear(),r){var i=r.type;e.gestureEvent=i;var o=new Ve;o.target=r.target,this.dispatchToElement(o,i,r.event)}},t}(X);function Ge(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var r=e,i=void 0,o=!1;r;){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(t,n))return!1;r.silent&&(i=!0)}var s=r.__hostTarget;r=s||r.parent}return!i||Be}return!1}function Ye(e,t,n,r,i){for(var o=e.length-1;o>=0;o--){var a=e[o],s=void 0;if(a!==i&&!a.ignore&&(s=Ge(a,n,r))&&(!t.topTarget&&(t.topTarget=a),s!==Be)){t.target=a;break}}}function Ke(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}x.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(e){qe.prototype[e]=function(t){var n,r,i=t.zrX,o=t.zrY,a=Ke(this,i,o);if("mouseup"===e&&a||(r=(n=this.findHover(i,o)).target),"mousedown"===e)this._downEl=r,this._downPoint=[t.zrX,t.zrY],this._upEl=r;else if("mouseup"===e)this._upEl=r;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||U(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}}));var $e=qe,Xe=32,Qe=7;function Ze(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;!function(e,t,n){n--;for(;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function Je(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var o,a=e[r],s=t,u=r;s<u;)i(a,e[o=s+u>>>1])<0?u=o:s=o+1;var c=r-s;switch(c){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:for(;c>0;)e[s+c]=e[s+c-1],c--}e[s]=a}}function et(e,t,n,r,i,o){var a=0,s=0,u=1;if(o(e,t[n+i])>0){for(s=r-i;u<s&&o(e,t[n+i+u])>0;)a=u,(u=1+(u<<1))<=0&&(u=s);u>s&&(u=s),a+=i,u+=i}else{for(s=i+1;u<s&&o(e,t[n+i-u])<=0;)a=u,(u=1+(u<<1))<=0&&(u=s);u>s&&(u=s);var c=a;a=i-u,u=i-c}for(a++;a<u;){var l=a+(u-a>>>1);o(e,t[n+l])>0?a=l+1:u=l}return u}function tt(e,t,n,r,i,o){var a=0,s=0,u=1;if(o(e,t[n+i])<0){for(s=i+1;u<s&&o(e,t[n+i-u])<0;)a=u,(u=1+(u<<1))<=0&&(u=s);u>s&&(u=s);var c=a;a=i-u,u=i-c}else{for(s=r-i;u<s&&o(e,t[n+i+u])>=0;)a=u,(u=1+(u<<1))<=0&&(u=s);u>s&&(u=s),a+=i,u+=i}for(a++;a<u;){var l=a+(u-a>>>1);o(e,t[n+l])<0?u=l:a=l+1}return u}function nt(e,t){var n,r,i,o=Qe,a=0;n=e.length;var s=[];function u(n){var u=r[n],c=i[n],l=r[n+1],f=i[n+1];i[n]=c+f,n===a-3&&(r[n+1]=r[n+2],i[n+1]=i[n+2]),a--;var d=tt(e[l],e,u,c,0,t);u+=d,0!==(c-=d)&&0!==(f=et(e[u+c-1],e,l,f,f-1,t))&&(c<=f?function(n,r,i,a){var u=0;for(u=0;u<r;u++)s[u]=e[n+u];var c=0,l=i,f=n;if(e[f++]=e[l++],0==--a){for(u=0;u<r;u++)e[f+u]=s[c+u];return}if(1===r){for(u=0;u<a;u++)e[f+u]=e[l+u];return void(e[f+a]=s[c])}var d,p,h,v=o;for(;;){d=0,p=0,h=!1;do{if(t(e[l],s[c])<0){if(e[f++]=e[l++],p++,d=0,0==--a){h=!0;break}}else if(e[f++]=s[c++],d++,p=0,1==--r){h=!0;break}}while((d|p)<v);if(h)break;do{if(0!==(d=tt(e[l],s,c,r,0,t))){for(u=0;u<d;u++)e[f+u]=s[c+u];if(f+=d,c+=d,(r-=d)<=1){h=!0;break}}if(e[f++]=e[l++],0==--a){h=!0;break}if(0!==(p=et(s[c],e,l,a,0,t))){for(u=0;u<p;u++)e[f+u]=e[l+u];if(f+=p,l+=p,0===(a-=p)){h=!0;break}}if(e[f++]=s[c++],1==--r){h=!0;break}v--}while(d>=Qe||p>=Qe);if(h)break;v<0&&(v=0),v+=2}if((o=v)<1&&(o=1),1===r){for(u=0;u<a;u++)e[f+u]=e[l+u];e[f+a]=s[c]}else{if(0===r)throw new Error;for(u=0;u<r;u++)e[f+u]=s[c+u]}}(u,c,l,f):function(n,r,i,a){var u=0;for(u=0;u<a;u++)s[u]=e[i+u];var c=n+r-1,l=a-1,f=i+a-1,d=0,p=0;if(e[f--]=e[c--],0==--r){for(d=f-(a-1),u=0;u<a;u++)e[d+u]=s[u];return}if(1===a){for(p=(f-=r)+1,d=(c-=r)+1,u=r-1;u>=0;u--)e[p+u]=e[d+u];return void(e[f]=s[l])}var h=o;for(;;){var v=0,g=0,m=!1;do{if(t(s[l],e[c])<0){if(e[f--]=e[c--],v++,g=0,0==--r){m=!0;break}}else if(e[f--]=s[l--],g++,v=0,1==--a){m=!0;break}}while((v|g)<h);if(m)break;do{if(0!==(v=r-tt(s[l],e,n,r,r-1,t))){for(r-=v,p=(f-=v)+1,d=(c-=v)+1,u=v-1;u>=0;u--)e[p+u]=e[d+u];if(0===r){m=!0;break}}if(e[f--]=s[l--],1==--a){m=!0;break}if(0!==(g=a-et(e[c],s,0,a,a-1,t))){for(a-=g,p=(f-=g)+1,d=(l-=g)+1,u=0;u<g;u++)e[p+u]=s[d+u];if(a<=1){m=!0;break}}if(e[f--]=e[c--],0==--r){m=!0;break}h--}while(v>=Qe||g>=Qe);if(m)break;h<0&&(h=0),h+=2}(o=h)<1&&(o=1);if(1===a){for(p=(f-=r)+1,d=(c-=r)+1,u=r-1;u>=0;u--)e[p+u]=e[d+u];e[f]=s[l]}else{if(0===a)throw new Error;for(d=f-(a-1),u=0;u<a;u++)e[d+u]=s[u]}}(u,c,l,f))}return n<120?5:n<1542?10:n<119151?19:40,r=[],i=[],{mergeRuns:function(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]<i[e+1]&&e--;else if(i[e]>i[e+1])break;u(e)}},forceMergeRuns:function(){for(;a>1;){var e=a-2;e>0&&i[e-1]<i[e+1]&&e--,u(e)}},pushRun:function(e,t){r[a]=e,i[a]=t,a+=1}}}function rt(e,t,n,r){n||(n=0),r||(r=e.length);var i=r-n;if(!(i<2)){var o=0;if(i<Xe)Je(e,n,r,n+(o=Ze(e,n,r,t)),t);else{var a=nt(e,t),s=function(e){for(var t=0;e>=Xe;)t|=1&e,e>>=1;return e+t}(i);do{if((o=Ze(e,n,r,t))<s){var u=i;u>s&&(u=s),Je(e,n,n+u,n+o,t),o=u}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(0!==i);a.forceMergeRuns()}}}var it=1,ot=4,at=!1;function st(){at||(at=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function ut(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var ct=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=ut}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return!e&&n.length||this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,i=t.length;r<i;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,rt(n,ut)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath();if(e.ignoreClip)t=null;else if(r){t=t?t.slice():[];for(var i=r,o=e;i;)i.parent=o,i.updateTransform(),t.push(i),o=i,i=i.getClipPath()}if(e.childrenRef){for(var a=e.childrenRef(),s=0;s<a.length;s++){var u=a[s];e.__dirty&&(u.__dirty|=it),this._updateAndAddDisplayable(u,t,n)}e.__dirty=0}else{var c=e;t&&t.length?c.__clipPaths=t:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(st(),c.z=0),isNaN(c.z2)&&(st(),c.z2=0),isNaN(c.zlevel)&&(st(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var l=e.getDecalElement&&e.getDecalElement();l&&this._updateAndAddDisplayable(l,t,n);var f=e.getTextGuideLine();f&&this._updateAndAddDisplayable(f,t,n);var d=e.getTextContent();d&&this._updateAndAddDisplayable(d,t,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);else{var r=x.indexOf(this._roots,e);r>=0&&this._roots.splice(r,1)}},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),lt=b.a.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},ft={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return.5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/.4))},elasticOut:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/.4)+1)},elasticInOut:function(e){var t,n=.1;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/.4)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-ft.bounceOut(1-e)},bounceOut: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},bounceInOut:function(e){return e<.5?.5*ft.bounceIn(2*e):.5*ft.bounceOut(2*e-1)+.5}},dt=ft,pt=Math.pow,ht=Math.sqrt,vt=1e-8,gt=1e-4,mt=ht(3),yt=1/3,bt=S(),xt=S(),wt=S();function _t(e){return e>-vt&&e<vt}function St(e){return e>vt||e<-vt}function Ot(e,t,n,r,i){var o=1-i;return o*o*(o*e+3*i*t)+i*i*(i*r+3*o*n)}function kt(e,t,n,r,i){var o=1-i;return 3*(((t-e)*o+2*(n-t)*i)*o+(r-n)*i*i)}function Et(e,t,n,r,i,o){var a=r+3*(t-n)-e,s=3*(n-2*t+e),u=3*(t-e),c=e-i,l=s*s-3*a*u,f=s*u-9*a*c,d=u*u-3*s*c,p=0;if(_t(l)&&_t(f)){if(_t(s))o[0]=0;else(O=-u/s)>=0&&O<=1&&(o[p++]=O)}else{var h=f*f-4*l*d;if(_t(h)){var v=f/l,g=-v/2;(O=-s/a+v)>=0&&O<=1&&(o[p++]=O),g>=0&&g<=1&&(o[p++]=g)}else if(h>0){var m=ht(h),y=l*s+1.5*a*(-f+m),b=l*s+1.5*a*(-f-m);(O=(-s-((y=y<0?-pt(-y,yt):pt(y,yt))+(b=b<0?-pt(-b,yt):pt(b,yt))))/(3*a))>=0&&O<=1&&(o[p++]=O)}else{var x=(2*l*s-3*a*f)/(2*ht(l*l*l)),w=Math.acos(x)/3,_=ht(l),S=Math.cos(w),O=(-s-2*_*S)/(3*a),k=(g=(-s+_*(S+mt*Math.sin(w)))/(3*a),(-s+_*(S-mt*Math.sin(w)))/(3*a));O>=0&&O<=1&&(o[p++]=O),g>=0&&g<=1&&(o[p++]=g),k>=0&&k<=1&&(o[p++]=k)}}return p}function jt(e,t,n,r,i){var o=6*n-12*t+6*e,a=9*t+3*r-3*e-9*n,s=3*t-3*e,u=0;if(_t(a)){if(St(o))(l=-s/o)>=0&&l<=1&&(i[u++]=l)}else{var c=o*o-4*a*s;if(_t(c))i[0]=-o/(2*a);else if(c>0){var l,f=ht(c),d=(-o-f)/(2*a);(l=(-o+f)/(2*a))>=0&&l<=1&&(i[u++]=l),d>=0&&d<=1&&(i[u++]=d)}}return u}function Tt(e,t,n,r,i,o){var a=(t-e)*i+e,s=(n-t)*i+t,u=(r-n)*i+n,c=(s-a)*i+a,l=(u-s)*i+s,f=(l-c)*i+c;o[0]=e,o[1]=a,o[2]=c,o[3]=f,o[4]=f,o[5]=l,o[6]=u,o[7]=r}function Ct(e,t,n,r,i,o,a,s,u,c,l){var f,d,p,h,v,g=.005,m=1/0;bt[0]=u,bt[1]=c;for(var y=0;y<1;y+=.05)xt[0]=Ot(e,n,i,a,y),xt[1]=Ot(t,r,o,s,y),(h=V(bt,xt))<m&&(f=y,m=h);m=1/0;for(var b=0;b<32&&!(g<gt);b++)d=f-g,p=f+g,xt[0]=Ot(e,n,i,a,d),xt[1]=Ot(t,r,o,s,d),h=V(xt,bt),d>=0&&h<m?(f=d,m=h):(wt[0]=Ot(e,n,i,a,p),wt[1]=Ot(t,r,o,s,p),v=V(wt,bt),p<=1&&v<m?(f=p,m=v):g*=.5);return l&&(l[0]=Ot(e,n,i,a,f),l[1]=Ot(t,r,o,s,f)),ht(m)}function At(e,t,n,r,i,o,a,s,u){for(var c=e,l=t,f=0,d=1/u,p=1;p<=u;p++){var h=p*d,v=Ot(e,n,i,a,h),g=Ot(t,r,o,s,h),m=v-c,y=g-l;f+=Math.sqrt(m*m+y*y),c=v,l=g}return f}function Pt(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function Mt(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function It(e,t,n){var r=e+n-2*t;return 0===r?.5:(e-t)/r}function Rt(e,t,n,r,i){var o=(t-e)*r+e,a=(n-t)*r+t,s=(a-o)*r+o;i[0]=e,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function Dt(e,t,n,r,i,o,a,s,u){var c,l=.005,f=1/0;bt[0]=a,bt[1]=s;for(var d=0;d<1;d+=.05){xt[0]=Pt(e,n,i,d),xt[1]=Pt(t,r,o,d),(g=V(bt,xt))<f&&(c=d,f=g)}f=1/0;for(var p=0;p<32&&!(l<gt);p++){var h=c-l,v=c+l;xt[0]=Pt(e,n,i,h),xt[1]=Pt(t,r,o,h);var g=V(xt,bt);if(h>=0&&g<f)c=h,f=g;else{wt[0]=Pt(e,n,i,v),wt[1]=Pt(t,r,o,v);var m=V(wt,bt);v<=1&&m<f?(c=v,f=m):l*=.5}}return u&&(u[0]=Pt(e,n,i,c),u[1]=Pt(t,r,o,c)),ht(f)}function Lt(e,t,n,r,i,o,a){for(var s=e,u=t,c=0,l=1/a,f=1;f<=a;f++){var d=f*l,p=Pt(e,n,i,d),h=Pt(t,r,o,d),v=p-s,g=h-u;c+=Math.sqrt(v*v+g*g),s=p,u=h}return c}var Nt=/cubic-bezier\(([0-9,\.e ]+)\)/;function Ft(e){var t=e&&Nt.exec(e);if(t){var n=t[1].split(","),r=+Object(x.trim)(n[0]),i=+Object(x.trim)(n[1]),o=+Object(x.trim)(n[2]),a=+Object(x.trim)(n[3]);if(isNaN(r+i+o+a))return;var s=[];return function(e){return e<=0?0:e>=1?1:Et(0,r,o,1,e,s)&&Ot(0,i,a,1,s[0])}}}var Bt=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||x.noop,this.ondestroy=e.ondestroy||x.noop,this.onrestart=e.onrestart||x.noop,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),!this._paused){var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,a=o?o(i):i;if(this.onframe(a),1===i){if(!this.loop)return!0;var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=t},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Object(x.isFunction)(e)?e:dt[e]||Ft(e)},e}(),Ut=n(58),zt=n(67),Vt=Array.prototype.slice;function Ht(e,t,n){return(t-e)*n+e}function Wt(e,t,n,r){for(var i=t.length,o=0;o<i;o++)e[o]=Ht(t[o],n[o],r);return e}function qt(e,t,n,r){for(var i=t.length,o=0;o<i;o++)e[o]=t[o]+n[o]*r;return e}function Gt(e,t,n,r){for(var i=t.length,o=i&&t[0].length,a=0;a<i;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=t[a][s]+n[a][s]*r}return e}function Yt(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,r);s++)i.push({offset:a.offset,color:a.color.slice()})}function Kt(e,t,n){var r=e,i=t;if(r.push&&i.push){var o=r.length,a=i.length;if(o!==a)if(o>a)r.length=a;else for(var s=o;s<a;s++)r.push(1===n?i[s]:Vt.call(i[s]));var u=r[0]&&r[0].length;for(s=0;s<r.length;s++)if(1===n)isNaN(r[s])&&(r[s]=i[s]);else for(var c=0;c<u;c++)isNaN(r[s][c])&&(r[s][c]=i[s][c])}}function $t(e){if(Object(x.isArrayLike)(e)){var t=e.length;if(Object(x.isArrayLike)(e[0])){for(var n=[],r=0;r<t;r++)n.push(Vt.call(e[r]));return n}return Vt.call(e)}return e}function Xt(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=null==e[3]?1:e[3],"rgba("+e.join(",")+")"}var Qt=1,Zt=2,Jt=4,en=5;function tn(e){return e===Jt||e===en}function nn(e){return e===Qt||e===Zt}var rn=[0,0,0,0],on=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,o=!1,a=6,s=t;if(Object(x.isArrayLike)(t)){var u=function(e){return Object(x.isArrayLike)(e&&e[0])?2:1}(t);a=u,(1===u&&!Object(x.isNumber)(t[0])||2===u&&!Object(x.isNumber)(t[0][0]))&&(o=!0)}else if(Object(x.isNumber)(t)&&!Object(x.eqNaN)(t))a=0;else if(Object(x.isString)(t))if(isNaN(+t)){var c=Ut.parse(t);c&&(s=c,a=3)}else a=0;else if(Object(x.isGradientObject)(t)){var l=Object(x.extend)({},s);l.colorStops=Object(x.map)(t.colorStops,(function(e){return{offset:e.offset,color:Ut.parse(e.color)}})),Object(zt.m)(t)?a=Jt:Object(zt.o)(t)&&(a=en),s=l}0===i?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var f={time:e,value:s,rawValue:t,percent:0};return n&&(f.easing=n,f.easingFunc=Object(x.isFunction)(n)?n:dt[n]||Ft(n)),r.push(f),f},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort((function(e,t){return e.time-t.time}));for(var r=this.valType,i=n.length,o=n[i-1],a=this.discrete,s=nn(r),u=tn(r),c=0;c<i;c++){var l=n[c],f=l.value,d=o.value;l.percent=l.time/e,a||(s&&c!==i-1?Kt(f,d,r):u&&Yt(f.colorStops,d.colorStops))}if(!a&&r!==en&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;var p=n[0].value;for(c=0;c<i;c++)0===r?n[c].additiveValue=n[c].value-p:3===r?n[c].additiveValue=qt([],n[c].value,p,-1):nn(r)&&(n[c].additiveValue=r===Qt?qt([],n[c].value,p,-1):Gt([],n[c].value,p,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r,i,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,u=this.keyframes,c=u.length,l=this.propName,f=3===s,d=this._lastFr,p=Math.min;if(1===c)r=i=u[0];else{if(t<0)n=0;else if(t<this._lastFrP){for(n=p(d+1,c-1);n>=0&&!(u[n].percent<=t);n--);n=p(n,c-2)}else{for(n=d;n<c&&!(u[n].percent>t);n++);n=p(n-1,c-2)}i=u[n+1],r=u[n]}if(r&&i){this._lastFr=n,this._lastFrP=t;var h=i.percent-r.percent,v=0===h?1:p((t-r.percent)/h,1);i.easingFunc&&(v=i.easingFunc(v));var g=o?this._additiveValue:f?rn:e[l];if(!nn(s)&&!f||g||(g=this._additiveValue=[]),this.discrete)e[l]=v<1?r.rawValue:i.rawValue;else if(nn(s))s===Qt?Wt(g,r[a],i[a],v):function(e,t,n,r){for(var i=t.length,o=i&&t[0].length,a=0;a<i;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=Ht(t[a][s],n[a][s],r)}}(g,r[a],i[a],v);else if(tn(s)){var m=r[a],y=i[a],b=s===Jt;e[l]={type:b?"linear":"radial",x:Ht(m.x,y.x,v),y:Ht(m.y,y.y,v),colorStops:Object(x.map)(m.colorStops,(function(e,t){var n=y.colorStops[t];return{offset:Ht(e.offset,n.offset,v),color:Xt(Wt([],e.color,n.color,v))}})),global:y.global},b?(e[l].x2=Ht(m.x2,y.x2,v),e[l].y2=Ht(m.y2,y.y2,v)):e[l].r=Ht(m.r,y.r,v)}else if(f)Wt(g,r[a],i[a],v),o||(e[l]=Xt(g));else{var w=Ht(r[a],i[a],v);o?this._additiveValue=w:e[l]=w}o&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;0===t?e[n]=e[n]+r:3===t?(Ut.parse(e[n],rn),qt(rn,rn,r,1),e[n]=Xt(rn)):t===Qt?qt(e[n],e[n],r,1):t===Zt&&Gt(e[n],e[n],r,1)},e}(),an=function(){function e(e,t,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r?Object(x.logError)("Can' use additive animation on looped animation."):(this._additiveAnimators=r,this._allowDiscrete=n)}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,Object(x.keys)(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,o=0;o<n.length;o++){var a=n[o],s=i[a];if(!s){s=i[a]=new on(a);var u=void 0,c=this._getAdditiveTrack(a);if(c){var l=c.keyframes,f=l[l.length-1];u=f&&f.value,3===c.valType&&u&&(u=Xt(u))}else u=this._target[a];if(null==u)continue;e>0&&s.addKeyframe(0,$t(u),r),this._trackKeys.push(a)}s.addKeyframe(e,$t(t[a]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],a=this._tracks[o],s=this._getAdditiveTrack(o),u=a.keyframes,c=u.length;if(a.prepare(r,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var l=u[c-1];l&&(t._target[a.propName]=l.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var f=new Bt({life:r,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var r=t._additiveAnimators;if(r){for(var i=!1,o=0;o<r.length;o++)if(r[o]._clip){i=!0;break}i||(t._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(t._target,e);var a=t._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=f,this.animation&&this.animation.addClip(f),e&&f.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return Object(x.map)(this._trackKeys,(function(t){return e._tracks[t]}))},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var o=n[e[i]];o&&!o.isFinished()&&(t?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(i=0;i<r.length;i++)if(!n[r[i]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},e.prototype.saveTo=function(e,t,n){if(e){t=t||this._trackKeys;for(var r=0;r<t.length;r++){var i=t[r],o=this._tracks[i];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(e[i]=$t(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t=t||Object(x.keys)(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var o=i.keyframes;if(o.length>1){var a=o.pop();i.addKeyframe(a.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();function sn(){return(new Date).getTime()}var un,cn,ln=function(e){function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return _(t,e),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=sn()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0,lt((function t(){e._running&&(lt(t),!e._paused&&e.update())}))},t.prototype.start=function(){this._running||(this._time=sn(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=sn(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=sn()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return null==this._head},t.prototype.animate=function(e,t){t=t||{},this.start();var n=new an(e,t.loop);return this.addAnimator(n),n},t}(X),fn=b.a.domSupported,dn=(cn={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:un=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:x.map(un,(function(e){var t=e.replace("mouse","pointer");return cn.hasOwnProperty(t)?t:e}))}),pn={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},hn=!1;function vn(e){var t=e.pointerType;return"pen"===t||"touch"===t}function gn(e){e&&(e.zrByTouch=!0)}function mn(e,t){for(var n=t,r=!1;n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var yn=function(e,t){this.stopPropagation=x.noop,this.stopImmediatePropagation=x.noop,this.preventDefault=x.noop,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY},bn={mousedown:function(e){e=pe(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=pe(this.dom,e);var t=this.__mayPointerCapture;!t||e.zrX===t[0]&&e.zrY===t[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=pe(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){mn(this,(e=pe(this.dom,e)).toElement||e.relatedTarget)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){hn=!0,e=pe(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){hn||(e=pe(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){gn(e=pe(this.dom,e)),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),bn.mousemove.call(this,e),bn.mousedown.call(this,e)},touchmove:function(e){gn(e=pe(this.dom,e)),this.handler.processGesture(e,"change"),bn.mousemove.call(this,e)},touchend:function(e){gn(e=pe(this.dom,e)),this.handler.processGesture(e,"end"),bn.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<300&&bn.click.call(this,e)},pointerdown:function(e){bn.mousedown.call(this,e)},pointermove:function(e){vn(e)||bn.mousemove.call(this,e)},pointerup:function(e){bn.mouseup.call(this,e)},pointerout:function(e){vn(e)||bn.mouseout.call(this,e)}};x.each(["click","dblclick","contextmenu"],(function(e){bn[e]=function(t){t=pe(this.dom,t),this.trigger(e,t)}}));var xn={pointermove:function(e){vn(e)||xn.mousemove.call(this,e)},pointerup:function(e){xn.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function wn(e,t){var n=t.domHandlers;b.a.pointerEventsSupported?x.each(dn.pointer,(function(r){Sn(t,r,(function(t){n[r].call(e,t)}))})):(b.a.touchEventsSupported&&x.each(dn.touch,(function(r){Sn(t,r,(function(i){n[r].call(e,i),function(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout((function(){e.touching=!1,e.touchTimer=null}),700)}(t)}))})),x.each(dn.mouse,(function(r){Sn(t,r,(function(i){i=de(i),t.touching||n[r].call(e,i)}))})))}function _n(e,t){function n(n){Sn(t,n,(function(r){r=de(r),mn(e,r.target)||(r=function(e,t){return pe(e.dom,new yn(e,t),!0)}(e,r),t.domHandlers[n].call(e,r))}),{capture:!0})}b.a.pointerEventsSupported?x.each(pn.pointer,n):b.a.touchEventsSupported||x.each(pn.mouse,n)}function Sn(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,he(e.domTarget,t,n,r)}function On(e){var t,n,r,i,o=e.mounted;for(var a in o)o.hasOwnProperty(a)&&(t=e.domTarget,n=a,r=o[a],i=e.listenerOpts[a],t.removeEventListener(n,r,i));e.mounted={}}var kn=function(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t},En=function(e){function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new kn(t,bn),fn&&(r._globalHandlerScope=new kn(document,xn)),wn(r,r._localHandlerScope),r}return _(t,e),t.prototype.dispose=function(){On(this._localHandlerScope),fn&&On(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,fn&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?_n(this,t):On(t)}},t}(X),jn=1;b.a.hasGlobalWindow&&(jn=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Tn=jn,Cn=.4,An=we,Pn=5e-5;function Mn(e){return e>Pn||e<-Pn}var In=[],Rn=[],Dn=[1,0,0,1,0,0],Ln=Math.abs,Nn=function(){function e(){}var t;return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return Mn(this.rotation)||Mn(this.x)||Mn(this.y)||Mn(this.scaleX-1)||Mn(this.scaleY-1)||Mn(this.skewX)||Mn(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n=n||[1,0,0,1,0,0],t?this.getLocalTransform(n):An(n),e&&(t?Se(n,e,n):_e(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&An(n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(In);var n=In[0]<0?-1:1,r=In[1]<0?-1:1,i=((In[0]-n)*t+n)/In[0]||0,o=((In[1]-r)*t+r)/In[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],je(this.invTransform,e)},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(Se(Rn,e.invTransform,t),t=Rn);var n=this.originX,r=this.originY;(n||r)&&(Dn[4]=n,Dn[5]=r,Se(Rn,t,Dn),Rn[4]-=n,Rn[5]-=r,t=Rn),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&q(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&q(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&Ln(e[0]-1)>1e-10&&Ln(e[3]-1)>1e-10?Math.sqrt(Ln(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){Bn(this,e)},e.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,o=e.scaleY,a=e.anchorX,s=e.anchorY,u=e.rotation||0,c=e.x,l=e.y,f=e.skewX?Math.tan(e.skewX):0,d=e.skewY?Math.tan(-e.skewY):0;if(n||r||a||s){var p=n+a,h=r+s;t[4]=-p*i-f*h*o,t[5]=-h*o-d*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=d*i,t[2]=f*o,u&&ke(t,t,u),t[4]+=n+c,t[5]+=r+l,t},e.initDefaultProps=((t=e.prototype).scaleX=t.scaleY=t.globalScaleRatio=1,void(t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0)),e}(),Fn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Bn(e,t){for(var n=0;n<Fn.length;n++){var r=Fn[n];e[r]=t[r]}}var Un=Nn,zn=n(216),Vn=n(82),Hn={};function Wn(e,t){t=t||Vn.a;var n=Hn[t];n||(n=Hn[t]=new zn.a(500));var r=n.get(e);return null==r&&(r=Vn.d.measureText(e,t).width,n.put(e,r)),r}function qn(e,t,n,r){var i=Wn(e,t),o=$n(t),a=Yn(0,i,n),s=Kn(0,o,r);return new Fe(a,s,i,o)}function Gn(e,t,n,r){var i=((e||"")+"").split("\n");if(1===i.length)return qn(i[0],t,n,r);for(var o=new Fe(0,0,0,0),a=0;a<i.length;a++){var s=qn(i[a],t,n,r);0===a?o.copy(s):o.union(s)}return o}function Yn(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function Kn(e,t,n){return"middle"===n?e-=t/2:"bottom"===n&&(e-=t),e}function $n(e){return Wn("国",e)}function Xn(e,t){return"string"==typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function Qn(e,t,n){var r=t.position||"inside",i=null!=t.distance?t.distance:5,o=n.height,a=n.width,s=o/2,u=n.x,c=n.y,l="left",f="top";if(r instanceof Array)u+=Xn(r[0],n.width),c+=Xn(r[1],n.height),l=null,f=null;else switch(r){case"left":u-=i,c+=s,l="right",f="middle";break;case"right":u+=i+a,c+=s,f="middle";break;case"top":u+=a/2,c-=i,l="center",f="bottom";break;case"bottom":u+=a/2,c+=o+i,l="center";break;case"inside":u+=a/2,c+=s,l="center",f="middle";break;case"insideLeft":u+=i,c+=s,f="middle";break;case"insideRight":u+=a-i,c+=s,l="right",f="middle";break;case"insideTop":u+=a/2,c+=i,l="center";break;case"insideBottom":u+=a/2,c+=o-i,l="center",f="bottom";break;case"insideTopLeft":u+=i,c+=i;break;case"insideTopRight":u+=a-i,c+=i,l="right";break;case"insideBottomLeft":u+=i,c+=o-i,f="bottom";break;case"insideBottomRight":u+=a-i,c+=o-i,l="right",f="bottom"}return(e=e||{}).x=u,e.y=c,e.align=l,e.verticalAlign=f,e}var Zn=Fn.concat(["ignore"]),Jn=Object(x.reduce)(Fn,(function(e,t){return e[t]=!0,e}),{ignore:!1}),er={},tr=new Fe(0,0,0,0),nr=function(){function e(e){this.id=Object(x.guid)(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=t.innerTransformable,o=void 0,a=void 0,s=!1;i.parent=r?this:null;var u=!1;if(i.copyTransform(t),null!=n.position){var c=tr;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),r||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(er,n,c):Qn(er,n,c),i.x=er.x,i.y=er.y,o=er.align,a=er.verticalAlign;var l=n.origin;if(l&&null!=n.rotation){var f=void 0,d=void 0;"center"===l?(f=.5*c.width,d=.5*c.height):(f=Xn(l[0],c.width),d=Xn(l[1],c.height)),u=!0,i.originX=-i.x+f+(r?0:c.x),i.originY=-i.y+d+(r?0:c.y)}}null!=n.rotation&&(i.rotation=n.rotation);var p=n.offset;p&&(i.x+=p[0],i.y+=p[1],u||(i.originX=-p[0],i.originY=-p[1]));var h=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,v=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),g=void 0,m=void 0,y=void 0;h&&this.canBeInsideText()?(g=n.insideFill,m=n.insideStroke,null!=g&&"auto"!==g||(g=this.getInsideTextFill()),null!=m&&"auto"!==m||(m=this.getInsideTextStroke(g),y=!0)):(g=n.outsideFill,m=n.outsideStroke,null!=g&&"auto"!==g||(g=this.getOutsideFill()),null!=m&&"auto"!==m||(m=this.getOutsideStroke(g),y=!0)),(g=g||"#000")===v.fill&&m===v.stroke&&y===v.autoStroke&&o===v.align&&a===v.verticalAlign||(s=!0,v.fill=g,v.stroke=m,v.autoStroke=y,v.align=o,v.verticalAlign=a,t.setDefaultTextStyle(v)),t.__dirty|=it,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(e){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?"#ccc":"#333"},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof t&&Object(Ut.parse)(t);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+(i?0:255)*(1-r);return n[3]=1,Object(Ut.stringify)(n,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},Object(x.extend)(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if("string"==typeof e)this.attrKV(e,t);else if(Object(x.isObject)(e))for(var n=e,r=Object(x.keys)(n),i=0;i<r.length;i++){var o=r[i];this.attrKV(o,e[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&"__zr_normal__"!==i)){var o=r.targetName,a=o?t[o]:t;r.saveTo(a)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,Zn)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];null==e[i]||i in t||(t[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState("__zr_normal__",!1,e)},e.prototype.useState=function(e,t,n,r){var i="__zr_normal__"===e;if(this.hasState()||!i){var o=this.currentStates,a=this.stateTransition;if(!(Object(x.indexOf)(o,e)>=0)||!t&&1!==o.length){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||(s=this.states&&this.states[e]),s||i){i||this.saveCurrentToNormalState(s);var u=!!(s&&s.hoverLayer||r);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,s,this._normalState,t,!n&&!this.__inHover&&a&&a.duration>0,a);var c=this._textContent,l=this._textGuide;return c&&c.useState(e,t,n,u),l&&l.useState(e,t,n,u),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~it),s}Object(x.logError)("State "+e+" not exists.")}}},e.prototype.useStates=function(e,t,n){if(e.length){var r=[],i=this.currentStates,o=e.length,a=o===i.length;if(a)for(var s=0;s<o;s++)if(e[s]!==i[s]){a=!1;break}if(a)return;for(s=0;s<o;s++){var u=e[s],c=void 0;this.stateProxy&&(c=this.stateProxy(u,e)),c||(c=this.states[u]),c&&r.push(c)}var l=r[o-1],f=!!(l&&l.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(r),p=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(e.join(","),d,this._normalState,!1,!t&&!this.__inHover&&p&&p.duration>0,p);var h=this._textContent,v=this._textGuide;h&&h.useStates(e,t,f),v&&v.useStates(e,t,f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~it)}else this.clearStates()},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=Object(x.indexOf)(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=Object(x.indexOf)(r,e),o=Object(x.indexOf)(r,t)>=0;i>=0?o?r.splice(i,1):r[i]=t:n&&!o&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,n={},r=0;r<e.length;r++){var i=e[r];Object(x.extend)(n,i),i.textConfig&&(t=t||{},Object(x.extend)(t,i.textConfig))}return t&&(n.textConfig=t),n},e.prototype._applyStateObj=function(e,t,n,r,i,o){var a=!(t&&r);t&&t.textConfig?(this.textConfig=Object(x.extend)({},r?this.textConfig:n.textConfig),Object(x.extend)(this.textConfig,t.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},u=!1,c=0;c<Zn.length;c++){var l=Zn[c],f=i&&Jn[l];t&&null!=t[l]?f?(u=!0,s[l]=t[l]):this[l]=t[l]:a&&null!=n[l]&&(f?(u=!0,s[l]=n[l]):this[l]=n[l])}if(!i)for(c=0;c<this.animators.length;c++){var d=this.animators[c],p=d.targetName;d.getLoop()||d.__changeFinalValue(p?(t||n)[p]:t||n)}u&&this._transitionState(e,s,o)},e.prototype._attachComponent=function(e){if((!e.__zr||e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new Un,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),Object(x.extend)(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=it;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var r=e?this[e]:this;var i=new an(r,t,n);return e&&(i.targetName=e),this.addAnimator(i,e),i},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during((function(){r.updateDuringAnimation(t)})).done((function(){var t=r.animators,n=Object(x.indexOf)(t,e);n>=0&&t.splice(n,1)})),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],o=0;o<r;o++){var a=n[o];e&&e!==a.scope?i.push(a):a.stop(t)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){rr(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){rr(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=rr(this,t,n,r),o=0;o<i.length;o++)i[o].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=it;function n(e,n,r,i){function o(e,t){Object.defineProperty(t,0,{get:function(){return e[r]},set:function(t){e[r]=t}}),Object.defineProperty(t,1,{get:function(){return e[i]},set:function(t){e[i]=t}})}Object.defineProperty(t,e,{get:function(){this[n]||o(this,this[n]=[]);return this[n]},set:function(e){this[r]=e[0],this[i]=e[1],this[n]=e,o(this,e)}})}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),e}();function rr(e,t,n,r,i){var o=[];!function e(t,n,r,i,o,a,s,u){for(var c=Object(x.keys)(i),l=o.duration,f=o.delay,d=o.additive,p=o.setToFinal,h=!Object(x.isObject)(a),v=t.animators,g=[],m=0;m<c.length;m++){var y=c[m],b=i[y];if(null!=b&&null!=r[y]&&(h||a[y]))if(!Object(x.isObject)(b)||Object(x.isArrayLike)(b)||Object(x.isGradientObject)(b))g.push(y);else{if(n){u||(r[y]=b,t.updateDuringAnimation(n));continue}e(t,y,r[y],b,o,a&&a[y],s,u)}else u||(r[y]=b,t.updateDuringAnimation(n),g.push(y))}var w=g.length;if(!d&&w)for(var _=0;_<v.length;_++){if((O=v[_]).targetName===n)if(O.stopTracks(g)){var S=Object(x.indexOf)(v,O);v.splice(S,1)}}o.force||(g=Object(x.filter)(g,(function(e){return t=i[e],n=r[e],!(t===n||Object(x.isArrayLike)(t)&&Object(x.isArrayLike)(n)&&function(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}(t,n));var t,n})),w=g.length);if(w>0||o.force&&!s.length){var O,k=void 0,E=void 0,j=void 0;if(u){E={},p&&(k={});for(_=0;_<w;_++){y=g[_];E[y]=r[y],p?k[y]=i[y]:r[y]=i[y]}}else if(p){j={};for(_=0;_<w;_++){y=g[_];j[y]=$t(r[y]),or(r,i,y)}}(O=new an(r,!1,!1,d?Object(x.filter)(v,(function(e){return e.targetName===n})):null)).targetName=n,o.scope&&(O.scope=o.scope),p&&k&&O.whenWithKeys(0,k,g),j&&O.whenWithKeys(0,j,g),O.whenWithKeys(null==l?500:l,u?E:i,g).delay(f||0),t.addAnimator(O,n),s.push(O)}}(e,"",e,t,n=n||{},r,o,i);var a=o.length,s=!1,u=n.done,c=n.aborted,l=function(){s=!0,--a<=0&&(s?u&&u():c&&c())},f=function(){--a<=0&&(s?u&&u():c&&c())};a||u&&u(),o.length>0&&n.during&&o[0].during((function(e,t){n.during(t)}));for(var d=0;d<o.length;d++){var p=o[d];l&&p.done(l),f&&p.aborted(f),n.force&&p.duration(n.duration),p.start(n.easing)}return o}function ir(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function or(e,t,n){if(Object(x.isArrayLike)(t[n]))if(Object(x.isArrayLike)(e[n])||(e[n]=[]),Object(x.isTypedArray)(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),ir(e[n],t[n],r))}else{var i=t[n],o=e[n],a=i.length;if(c=i,Object(x.isArrayLike)(c[0]))for(var s=i[0].length,u=0;u<a;u++)o[u]?ir(o[u],i[u],s):o[u]=Array.prototype.slice.call(i[u]);else ir(o,i,a);o.length=i.length}else e[n]=t[n];var c}Object(x.mixin)(nr,X),Object(x.mixin)(nr,Un);var ar=nr,sr=function(e){function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return _(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=x.indexOf(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=x.indexOf(n,e);return r<0?this:(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=e.call(t,r);r.isGroup&&!i&&r.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++){this._children[n].addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++){this._children[n].removeSelfFromZr(t)}},t.prototype.getBoundingRect=function(e){for(var t=new Fe(0,0,0,0),n=e||this._children,r=[],i=null,o=0;o<n.length;o++){var a=n[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),u=a.getLocalTransform(r);u?(Fe.applyTransform(t,s,u),(i=i||t.clone()).union(t)):(i=i||s.clone()).union(s)}}return i||t},t}(ar);sr.prototype.type="group";var ur=sr,cr={},lr={}; /*! * ZRender, a high performance 2d drawing library. * * Copyright (c) 2013, Baidu Inc. * All rights reserved. * * LICENSE * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt */var fr=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var i=new ct,o=n.renderer||"canvas";cr[o]||(o=x.keys(cr)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var a=new cr[o](t,i,n,e),s=n.ssr||a.ssrOnly;this.storage=i,this.painter=a;var u,c=b.a.node||b.a.worker||s?null:new En(a.getViewportRoot(),a.root),l=n.useCoarsePointer;(null==l||"auto"===l?b.a.touchEventsSupported:!!l)&&(u=x.retrieve2(n.pointerSize,44)),this.handler=new $e(i,a,c,a.root,u),this.animation=new ln({stage:{update:s?null:function(){return r._flush(!0)}}}),s||this.animation.start()}return e.prototype.add=function(e){e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh()},e.prototype.setBackgroundColor=function(e){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=function(e){if(!e)return!1;if("string"==typeof e)return Object(Ut.lum)(e,1)<Cn;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=Object(Ut.lum)(t[i].color,1);return(n/=r)<Cn}return!1}(e)},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},e.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},e.prototype.flush=function(){this._flush(!1)},e.prototype._flush=function(e){var t,n=sn();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var r=sn();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:r-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},e.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this.handler.off(e,t)},e.prototype.trigger=function(e,t){this.handler.trigger(e,t)},e.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof ur&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},e.prototype.dispose=function(){var e;this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,e=this.id,delete lr[e]},e}();function dr(e,t){var n=new fr(x.guid(),e,t);return lr[n.id]=n,n}function pr(e){e.dispose()}function hr(){for(var e in lr)lr.hasOwnProperty(e)&&lr[e].dispose();lr={}}function vr(e){return lr[e]}function gr(e,t){cr[e]=t}var mr="5.4.0",yr=1e-4,br=20;function xr(e,t,n,r){var i=t[0],o=t[1],a=n[0],s=n[1],u=o-i,c=s-a;if(0===u)return 0===c?a:(a+s)/2;if(r)if(u>0){if(e<=i)return a;if(e>=o)return s}else{if(e>=i)return a;if(e<=o)return s}else{if(e===i)return a;if(e===o)return s}return(e-i)/u*c+a}function wr(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%"}return x.isString(e)?(n=e,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e;var n}function _r(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),br),e=(+e).toFixed(t),n?e:+e}function Sr(e){return e.sort((function(e,t){return e-t})),e}function Or(e){if(e=+e,isNaN(e))return 0;if(e>1e-14)for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n;return kr(e)}function kr(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,o=t.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}function Er(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),o=Math.round(n(Math.abs(t[1]-t[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function jr(e,t,n){return e[t]&&Tr(e,n)[t]||0}function Tr(e,t){var n=x.reduce(e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===n)return[];for(var r=Math.pow(10,t),i=x.map(e,(function(e){return(isNaN(e)?0:e)/n*r*100})),o=100*r,a=x.map(i,(function(e){return Math.floor(e)})),s=x.reduce(a,(function(e,t){return e+t}),0),u=x.map(i,(function(e,t){return e-a[t]}));s<o;){for(var c=Number.NEGATIVE_INFINITY,l=null,f=0,d=u.length;f<d;++f)u[f]>c&&(c=u[f],l=f);++a[l],u[l]=0,++s}return x.map(a,(function(e){return e/r}))}function Cr(e,t){var n=Math.max(Or(e),Or(t)),r=e+t;return n>br?r:_r(r,n)}var Ar=9007199254740991;function Pr(e){var t=2*Math.PI;return(e%t+t)%t}function Mr(e){return e>-yr&&e<yr}var Ir=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Rr(e){if(e instanceof Date)return e;if(x.isString(e)){var t=Ir.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}return null==e?new Date(NaN):new Date(Math.round(e))}function Dr(e){return Math.pow(10,Lr(e))}function Lr(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function Nr(e,t){var n=Lr(e),r=Math.pow(10,n),i=e/r;return e=(t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,n>=-20?+e.toFixed(n<0?-n:0):e}function Fr(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),i=+e[r-1],o=n-r;return o?i+o*(e[r]-i):i}function Br(e){e.sort((function(e,t){return function e(t,n,r){return t.interval[r]<n.interval[r]||t.interval[r]===n.interval[r]&&(t.close[r]-n.close[r]==(r?-1:1)||!r&&e(t,n,1))}(e,t,0)?-1:1}));for(var t=-1/0,n=1,r=0;r<e.length;){for(var i=e[r].interval,o=e[r].close,a=0;a<2;a++)i[a]<=t&&(i[a]=t,o[a]=a?1:1-n),t=i[a],n=o[a];i[0]===i[1]&&o[0]*o[1]!=1?e.splice(r,1):r++}return e}function Ur(e){var t=parseFloat(e);return t==e&&(0!==t||!x.isString(e)||e.indexOf("x")<=0)?t:NaN}function zr(e){return!isNaN(Ur(e))}function Vr(){return Math.round(9*Math.random())}function Hr(e,t){return null==e?t:null==t?e:e*t/function e(t,n){return 0===n?t:e(n,t%n)}(e,t)}function Wr(e,t,n){return(t-e)*n+e}var qr="series\0",Gr="\0_ec_\0";function Yr(e){return e instanceof Array?e:null==e?[]:[e]}function Kr(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var o=n[r];!e.emphasis[t].hasOwnProperty(o)&&e[t].hasOwnProperty(o)&&(e.emphasis[t][o]=e[t][o])}}}var $r=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Xr(e){return!Object(x.isObject)(e)||Object(x.isArray)(e)||e instanceof Date?e:e.value}function Qr(e){return Object(x.isObject)(e)&&!(e instanceof Array)}function Zr(e,t,n){var r="normalMerge"===n,i="replaceMerge"===n,o="replaceAll"===n;e=e||[],t=(t||[]).slice();var a=Object(x.createHashMap)();Object(x.each)(t,(function(e,n){Object(x.isObject)(e)||(t[n]=null)}));var s,u,c=function(e,t,n){var r=[];if("replaceAll"===n)return r;for(var i=0;i<e.length;i++){var o=e[i];o&&null!=o.id&&t.set(o.id,i),r.push({existing:"replaceMerge"===n||ri(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}(e,a,n);return(r||i)&&function(e,t,n,r){Object(x.each)(r,(function(i,o){if(i&&null!=i.id){var a=ei(i.id),s=n.get(a);if(null!=s){var u=e[s];Object(x.assert)(!u.newOption,'Duplicated option on id "'+a+'".'),u.newOption=i,u.existing=t[s],r[o]=null}}}))}(c,e,a,t),r&&function(e,t){Object(x.each)(t,(function(n,r){if(n&&null!=n.name)for(var i=0;i<e.length;i++){var o=e[i].existing;if(!e[i].newOption&&o&&(null==o.id||null==n.id)&&!ri(n)&&!ri(o)&&Jr("name",o,n))return e[i].newOption=n,void(t[r]=null)}}))}(c,t),r||i?function(e,t,n){Object(x.each)(t,(function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||ri(r.existing)||r.existing&&null!=t.id&&!Jr("id",t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}}))}(c,t,i):o&&function(e,t){Object(x.each)(t,(function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})}))}(c,t),s=c,u=Object(x.createHashMap)(),Object(x.each)(s,(function(e){var t=e.existing;t&&u.set(t.id,e)})),Object(x.each)(s,(function(e){var t=e.newOption;Object(x.assert)(!t||null==t.id||!u.get(t.id)||u.get(t.id)===e,"id duplicates: "+(t&&t.id)),t&&null!=t.id&&u.set(t.id,e),!e.keyInfo&&(e.keyInfo={})})),Object(x.each)(s,(function(e,t){var n=e.existing,r=e.newOption,i=e.keyInfo;if(Object(x.isObject)(r)){if(i.name=null!=r.name?ei(r.name):n?n.name:qr+t,n)i.id=ei(n.id);else if(null!=r.id)i.id=ei(r.id);else{var o=0;do{i.id="\0"+i.name+"\0"+o++}while(u.get(i.id))}u.set(i.id,e)}})),c}function Jr(e,t,n){var r=ti(t[e],null),i=ti(n[e],null);return null!=r&&null!=i&&r===i}function ei(e){return ti(e,"")}function ti(e,t){return null==e?t:Object(x.isString)(e)?e:Object(x.isNumber)(e)||Object(x.isStringSafe)(e)?e+"":t}function ni(e){var t=e.name;return!(!t||!t.indexOf(qr))}function ri(e){return e&&null!=e.id&&0===ei(e.id).indexOf(Gr)}function ii(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?Object(x.isArray)(t.dataIndex)?Object(x.map)(t.dataIndex,(function(t){return e.indexOfRawIndex(t)})):e.indexOfRawIndex(t.dataIndex):null!=t.name?Object(x.isArray)(t.name)?Object(x.map)(t.name,(function(t){return e.indexOfName(t)})):e.indexOfName(t.name):void 0}function oi(){var e="__ec_inner_"+ai++;return function(t){return t[e]||(t[e]={})}}var ai=Vr();function si(e,t,n){var r=ui(t,n),i=r.mainTypeSpecified,o=r.queryOptionMap,a=r.others,s=n?n.defaultMainType:null;return!i&&s&&o.set(s,{}),o.each((function(t,r){var i=fi(e,r,t,{useDefault:s===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});a[r+"Models"]=i.models,a[r+"Model"]=i.models[0]})),a}function ui(e,t){var n;if(Object(x.isString)(e)){var r={};r[e+"Index"]=0,n=r}else n=e;var i=Object(x.createHashMap)(),o={},a=!1;return Object(x.each)(n,(function(e,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],u=(r[2]||"").toLowerCase();if(s&&u&&!(t&&t.includeMainTypes&&Object(x.indexOf)(t.includeMainTypes,s)<0))a=a||!!s,(i.get(s)||i.set(s,{}))[u]=e}else o[n]=e})),{mainTypeSpecified:a,queryOptionMap:i,others:o}}var ci={useDefault:!0,enableAll:!1,enableNone:!1},li={useDefault:!1,enableAll:!0,enableNone:!0};function fi(e,t,n,r){r=r||ci;var i=n.index,o=n.id,a=n.name,s={models:null,specified:null!=i||null!=o||null!=a};if(!s.specified){var u=void 0;return s.models=r.useDefault&&(u=e.getComponent(t))?[u]:[],s}return"none"===i||!1===i?(Object(x.assert)(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):("all"===i&&(Object(x.assert)(r.enableAll,'`"all"` is not a valid value on index option.'),i=o=a=null),s.models=e.queryComponents({mainType:t,index:i,id:o,name:a}),s)}function di(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function pi(e,t){var n=Object(x.createHashMap)(),r=[];return Object(x.each)(e,(function(e){var i=t(e);(n.get(i)||(r.push(i),n.set(i,[]))).push(e)})),{keys:r,buckets:n}}function hi(e,t,n,r,i){var o=null==t||"auto"===t;if(null==r)return r;if(Object(x.isNumber)(r))return _r(h=Wr(n||0,r,i),o?Math.max(Or(n||0),Or(r)):t);if(Object(x.isString)(r))return i<1?n:r;for(var a=[],s=n,u=r,c=Math.max(s?s.length:0,u.length),l=0;l<c;++l){var f=e.getDimensionInfo(l);if(f&&"ordinal"===f.type)a[l]=(i<1&&s?s:u)[l];else{var d=s&&s[l]?s[l]:0,p=u[l],h=Wr(d,p,i);a[l]=_r(h,o?Math.max(Or(d),Or(p)):t)}}return a}var vi=".",gi="___EC__COMPONENT__CONTAINER___",mi="___EC__EXTENDED_CLASS___";function yi(e){var t={main:"",sub:""};if(e){var n=e.split(vi);t.main=n[0]||"",t.sub=n[1]||""}return t}function bi(e,t){e.$constructor=e,e.extend=function(e){var t,n,r=this;return n=r,x.isFunction(n)&&/^class\s/.test(Function.prototype.toString.call(n))?t=function(e){function t(){return e.apply(this,arguments)||this}return y(t,e),t}(r):(t=function(){(e.$constructor||r).apply(this,arguments)},x.inherits(t,this)),x.extend(t.prototype,e),t[mi]=!0,t.extend=this.extend,t.superCall=_i,t.superApply=Si,t.superClass=r,t}}function xi(e,t){e.extend=t.extend}var wi=Math.round(10*Math.random());function _i(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[t].apply(e,n)}function Si(e,t,n){return this.superClass.prototype[t].apply(e,n)}function Oi(e){var t={};e.registerClass=function(e){var n,r=e.type||e.prototype.type;if(r){n=r,x.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n),'componentType "'+n+'" illegal'),e.prototype.type=r;var i=yi(r);if(i.sub){if(i.sub!==gi){(function(e){var n=t[e.main];n&&n[gi]||((n=t[e.main]={})[gi]=!0);return n}(i))[i.sub]=e}}else t[i.main]=e}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[gi]&&(i=n?i[n]:null),r&&!i)throw new Error(n?"Component "+e+"."+(n||"")+" is used but not imported.":e+".type should be specified.");return i},e.getClassesByMainType=function(e){var n=yi(e),r=[],i=t[n.main];return i&&i[gi]?x.each(i,(function(e,t){t!==gi&&r.push(e)})):r.push(i),r},e.hasClass=function(e){var n=yi(e);return!!t[n.main]},e.getAllClassMainTypes=function(){var e=[];return x.each(t,(function(t,n){e.push(n)})),e},e.hasSubTypes=function(e){var n=yi(e),r=t[n.main];return r&&r[gi]}}function ki(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(n,r,i){for(var o={},a=0;a<e.length;a++){var s=e[a][1];if(!(r&&x.indexOf(r,s)>=0||i&&x.indexOf(i,s)<0)){var u=n.getShallow(s,t);null!=u&&(o[e[a][0]]=u)}}return o}}var Ei=ki([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),ji=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return Ei(this,e,t)},e}(),Ti=new zn.a(50);function Ci(e){if("string"==typeof e){var t=Ti.get(e);return t&&t.image}return e}function Ai(e,t,n,r,i){if(e){if("string"==typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var o=Ti.get(e),a={hostEl:n,cb:r,cbPayload:i};return o?!Mi(t=o.image)&&o.pending.push(a):((t=Vn.d.loadImage(e,Pi,Pi)).__zrImageSrc=e,Ti.put(e,t.__cachedImgObj={image:t,pending:[a]})),t}return e}return t}function Pi(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function Mi(e){return e&&e.width&&e.height}var Ii=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Ri(e,t,n,r,i){if(!t)return"";var o=(e+"").split("\n");i=Di(t,n,r,i);for(var a=0,s=o.length;a<s;a++)o[a]=Li(o[a],i);return o.join("\n")}function Di(e,t,n,r){r=r||{};var i=Object(x.extend)({},r);i.font=t,n=Object(x.retrieve2)(n,"..."),i.maxIterations=Object(x.retrieve2)(r.maxIterations,2);var o=i.minChar=Object(x.retrieve2)(r.minChar,0);i.cnCharWidth=Wn("国",t);var a=i.ascCharWidth=Wn("a",t);i.placeholder=Object(x.retrieve2)(r.placeholder,"");for(var s=e=Math.max(0,e-1),u=0;u<o&&s>=a;u++)s-=a;var c=Wn(n,t);return c>s&&(n="",c=0),s=e-c,i.ellipsis=n,i.ellipsisWidth=c,i.contentWidth=s,i.containerWidth=e,i}function Li(e,t){var n=t.containerWidth,r=t.font,i=t.contentWidth;if(!n)return"";var o=Wn(e,r);if(o<=n)return e;for(var a=0;;a++){if(o<=i||a>=t.maxIterations){e+=t.ellipsis;break}var s=0===a?Ni(e,i,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*i/o):0;o=Wn(e=e.substr(0,s),r)}return""===e&&(e=t.placeholder),e}function Ni(e,t,n,r){for(var i=0,o=0,a=e.length;o<a&&i<t;o++){var s=e.charCodeAt(o);i+=0<=s&&s<=127?n:r}return o}var Fi=function(){},Bi=function(e){this.tokens=[],e&&(this.tokens=e)},Ui=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]};function zi(e,t,n,r,i){var o,a,s=""===t,u=i&&n.rich[i]||{},c=e.lines,l=u.font||n.font,f=!1;if(r){var d=u.padding,p=d?d[1]+d[3]:0;if(null!=u.width&&"auto"!==u.width){var h=Xn(u.width,r.width)+p;c.length>0&&h+r.accumWidth>r.width&&(o=t.split("\n"),f=!0),r.accumWidth=h}else{var v=Wi(t,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=v.accumWidth+p,a=v.linesWidths,o=v.lines}}else o=t.split("\n");for(var g=0;g<o.length;g++){var m=o[g],y=new Fi;if(y.styleName=i,y.text=m,y.isLineHolder=!m&&!s,"number"==typeof u.width?y.width=u.width:y.width=a?a[g]:Wn(m,l),g||f)c.push(new Bi([y]));else{var b=(c[c.length-1]||(c[0]=new Bi)).tokens,x=b.length;1===x&&b[0].isLineHolder?b[0]=y:(m||!x||s)&&b.push(y)}}}var Vi=Object(x.reduce)(",&?/;] ".split(""),(function(e,t){return e[t]=!0,e}),{});function Hi(e){return!function(e){var t=e.charCodeAt(0);return t>=33&&t<=383}(e)||!!Vi[e]}function Wi(e,t,n,r,i){for(var o=[],a=[],s="",u="",c=0,l=0,f=0;f<e.length;f++){var d=e.charAt(f);if("\n"!==d){var p=Wn(d,t),h=!r&&!Hi(d);(o.length?l+p>n:i+l+p>n)?l?(s||u)&&(h?(s||(s=u,u="",l=c=0),o.push(s),a.push(l-c),u+=d,s="",l=c+=p):(u&&(s+=u,u="",c=0),o.push(s),a.push(l),s=d,l=p)):h?(o.push(u),a.push(c),u=d,c=p):(o.push(d),a.push(p)):(l+=p,h?(u+=d,c+=p):(u&&(s+=u,u="",c=0),s+=d))}else u&&(s+=u,l+=c),o.push(s),a.push(l),s="",u="",c=0,l=0}return o.length||s||(s=e,u="",c=0),u&&(s+=u),s&&(o.push(s),a.push(l)),1===o.length&&(l+=i),{accumWidth:l,lines:o,linesWidths:a}}var qi="__zr_style_"+Math.round(10*Math.random()),Gi={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Yi={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Gi[qi]=!0;var Ki=["z","z2","invisible"],$i=["invisible"],Xi=function(e){function t(t){return e.call(this,t)||this}var n;return _(t,e),t.prototype._init=function(t){for(var n=Object(x.keys)(t),r=0;r<n.length;r++){var i=n[r];"style"===i?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var i=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(e,t,n){Qi.copy(e.getBoundingRect()),e.transform&&Qi.applyTransform(e.transform);return Zi.width=t,Zi.height=n,!Qi.intersect(Zi)}(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(r&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,o=r.shadowOffsetX||0,a=r.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new Fe(0,0,0,0)),t?Fe.applyTransform(e,n,t):e.copy(n),(i||o||a)&&(e.width+=2*i+Math.abs(o),e.height+=2*i+Math.abs(a),e.x=Math.min(e.x,e.x+o-i),e.y=Math.min(e.y,e.y+a-i));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+2*s),e.height=Math.ceil(e.height+1+2*s))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new Fe(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){"style"!==t?e.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(e,t){return"string"==typeof e?this.style[e]=t:Object(x.extend)(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(2&this.__dirty)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return Object(x.createObject)(Gi,e)},t.prototype.useStyle=function(e){e[qi]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[qi]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,Ki)},t.prototype._applyStateObj=function(t,n,r,i,o,a){e.prototype._applyStateObj.call(this,t,n,r,i,o,a);var s,u=!(n&&i);if(n&&n.style?o?i?s=n.style:(s=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(s,n.style)):u&&(s=r.style),s)if(o){var c=this.style;if(this.style=this.createStyle(u?{}:c),u)for(var l=Object(x.keys)(c),f=0;f<l.length;f++){(p=l[f])in s&&(s[p]=s[p],this.style[p]=c[p])}var d=Object(x.keys)(s);for(f=0;f<d.length;f++){var p=d[f];this.style[p]=this.style[p]}this._transitionState(t,{style:s},a,this.getAnimationStyleProps())}else this.useStyle(s);var h=this.__inHover?$i:Ki;for(f=0;f<h.length;f++){p=h[f];n&&null!=n[p]?this[p]=n[p]:u&&null!=r[p]&&(this[p]=r[p])}},t.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(r.style=n),r},t.prototype._mergeStyle=function(e,t){return Object(x.extend)(e,t),e},t.prototype.getAnimationStyleProps=function(){return Yi},t.initDefaultProps=((n=t.prototype).type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,void(n.__dirty=2|it)),t}(ar),Qi=new Fe(0,0,0,0),Zi=new Fe(0,0,0,0);var Ji=Xi,eo=Math.min,to=Math.max,no=Math.sin,ro=Math.cos,io=2*Math.PI,oo=S(),ao=S(),so=S();function uo(e,t,n){if(0!==e.length){for(var r=e[0],i=r[0],o=r[0],a=r[1],s=r[1],u=1;u<e.length;u++)r=e[u],i=eo(i,r[0]),o=to(o,r[0]),a=eo(a,r[1]),s=to(s,r[1]);t[0]=i,t[1]=a,n[0]=o,n[1]=s}}function co(e,t,n,r,i,o){i[0]=eo(e,n),i[1]=eo(t,r),o[0]=to(e,n),o[1]=to(t,r)}var lo=[],fo=[];function po(e,t,n,r,i,o,a,s,u,c){var l=jt,f=Ot,d=l(e,n,i,a,lo);u[0]=1/0,u[1]=1/0,c[0]=-1/0,c[1]=-1/0;for(var p=0;p<d;p++){var h=f(e,n,i,a,lo[p]);u[0]=eo(h,u[0]),c[0]=to(h,c[0])}d=l(t,r,o,s,fo);for(p=0;p<d;p++){var v=f(t,r,o,s,fo[p]);u[1]=eo(v,u[1]),c[1]=to(v,c[1])}u[0]=eo(e,u[0]),c[0]=to(e,c[0]),u[0]=eo(a,u[0]),c[0]=to(a,c[0]),u[1]=eo(t,u[1]),c[1]=to(t,c[1]),u[1]=eo(s,u[1]),c[1]=to(s,c[1])}function ho(e,t,n,r,i,o,a,s){var u=It,c=Pt,l=to(eo(u(e,n,i),1),0),f=to(eo(u(t,r,o),1),0),d=c(e,n,i,l),p=c(t,r,o,f);a[0]=eo(e,i,d),a[1]=eo(t,o,p),s[0]=to(e,i,d),s[1]=to(t,o,p)}function vo(e,t,n,r,i,o,a,s,u){var c=G,l=Y,f=Math.abs(i-o);if(f%io<1e-4&&f>1e-4)return s[0]=e-n,s[1]=t-r,u[0]=e+n,void(u[1]=t+r);if(oo[0]=ro(i)*n+e,oo[1]=no(i)*r+t,ao[0]=ro(o)*n+e,ao[1]=no(o)*r+t,c(s,oo,ao),l(u,oo,ao),(i%=io)<0&&(i+=io),(o%=io)<0&&(o+=io),i>o&&!a?o+=io:i<o&&a&&(i+=io),a){var d=o;o=i,i=d}for(var p=0;p<o;p+=Math.PI/2)p>i&&(so[0]=ro(p)*n+e,so[1]=no(p)*r+t,c(s,so,s),l(u,so,u))}var go={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},mo=[],yo=[],bo=[],xo=[],wo=[],_o=[],So=Math.min,Oo=Math.max,ko=Math.cos,Eo=Math.sin,jo=Math.abs,To=Math.PI,Co=2*To,Ao="undefined"!=typeof Float32Array,Po=[];function Mo(e){return Math.round(e/To*1e8)/1e8%2*To}function Io(e,t){var n=Mo(e[0]);n<0&&(n+=Co);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=Co?i=n+Co:t&&n-i>=Co?i=n-Co:!t&&n>i?i=n+(Co-Mo(n-i)):t&&n<i&&(i=n-(Co-Mo(i-n))),e[0]=n,e[1]=i}var Ro=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}var t;return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){(n=n||0)>0&&(this._ux=jo(n/Tn/e)||0,this._uy=jo(n/Tn/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(go.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=jo(e-this._xi),r=jo(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(go.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=n*n+r*r;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,o){return this._drawPendingPt(),this.addData(go.C,e,t,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,o),this._xi=i,this._yi=o,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(go.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,o){this._drawPendingPt(),Po[0]=r,Po[1]=i,Io(Po,o),r=Po[0];var a=(i=Po[1])-r;return this.addData(go.A,e,t,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,r,i,o),this._xi=ko(i)*n+e,this._yi=Eo(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(go.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(go.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){var t=e.length;this.data&&this.data.length===t||!Ao||(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},e.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();Ao&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+n));for(i=0;i<t;i++)for(var o=e[i].data,a=0;a<o.length;a++)this.data[r++]=o[a];this._len=r},e.prototype.addData=function(e,t,n,r,i,o,a,s,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var l=0;l<arguments.length;l++)c[this._len++]=arguments[l]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,Ao&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){bo[0]=bo[1]=wo[0]=wo[1]=Number.MAX_VALUE,xo[0]=xo[1]=_o[0]=_o[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,r=0,i=0,o=0;for(e=0;e<this._len;){var a=t[e++],s=1===e;switch(s&&(i=n=t[e],o=r=t[e+1]),a){case go.M:n=i=t[e++],r=o=t[e++],wo[0]=i,wo[1]=o,_o[0]=i,_o[1]=o;break;case go.L:co(n,r,t[e],t[e+1],wo,_o),n=t[e++],r=t[e++];break;case go.C:po(n,r,t[e++],t[e++],t[e++],t[e++],t[e],t[e+1],wo,_o),n=t[e++],r=t[e++];break;case go.Q:ho(n,r,t[e++],t[e++],t[e],t[e+1],wo,_o),n=t[e++],r=t[e++];break;case go.A:var u=t[e++],c=t[e++],l=t[e++],f=t[e++],d=t[e++],p=t[e++]+d;e+=1;var h=!t[e++];s&&(i=ko(d)*l+u,o=Eo(d)*f+c),vo(u,c,l,f,d,p,h,wo,_o),n=ko(p)*l+u,r=Eo(p)*f+c;break;case go.R:co(i=n=t[e++],o=r=t[e++],i+t[e++],o+t[e++],wo,_o);break;case go.Z:n=i,r=o}G(bo,bo,wo),Y(xo,xo,_o)}return 0===e&&(bo[0]=bo[1]=xo[0]=xo[1]=0),new Fe(bo[0],bo[1],xo[0]-bo[0],xo[1]-bo[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,l=0,f=0;f<t;){var d=e[f++],p=1===f;p&&(a=i=e[f],s=o=e[f+1]);var h=-1;switch(d){case go.M:i=a=e[f++],o=s=e[f++];break;case go.L:var v=e[f++],g=(b=e[f++])-o;(jo(C=v-i)>n||jo(g)>r||f===t-1)&&(h=Math.sqrt(C*C+g*g),i=v,o=b);break;case go.C:var m=e[f++],y=e[f++],b=(v=e[f++],e[f++]),x=e[f++],w=e[f++];h=At(i,o,m,y,v,b,x,w,10),i=x,o=w;break;case go.Q:h=Lt(i,o,m=e[f++],y=e[f++],v=e[f++],b=e[f++],10),i=v,o=b;break;case go.A:var _=e[f++],S=e[f++],O=e[f++],k=e[f++],E=e[f++],j=e[f++],T=j+E;f+=1;e[f++];p&&(a=ko(E)*O+_,s=Eo(E)*k+S),h=Oo(O,k)*So(Co,Math.abs(j)),i=ko(T)*O+_,o=Eo(T)*k+S;break;case go.R:a=i=e[f++],s=o=e[f++],h=2*e[f++]+2*e[f++];break;case go.Z:var C=a-i;g=s-o;h=Math.sqrt(C*C+g*g),i=a,o=s}h>=0&&(u[l++]=h,c+=h)}return this._pathLen=c,c},e.prototype.rebuildPath=function(e,t){var n,r,i,o,a,s,u,c,l,f,d=this.data,p=this._ux,h=this._uy,v=this._len,g=t<1,m=0,y=0,b=0;if(!g||(this._pathSegLen||this._calculateLength(),u=this._pathSegLen,c=t*this._pathLen))e:for(var x=0;x<v;){var w=d[x++],_=1===x;switch(_&&(n=i=d[x],r=o=d[x+1]),w!==go.L&&b>0&&(e.lineTo(l,f),b=0),w){case go.M:n=i=d[x++],r=o=d[x++],e.moveTo(i,o);break;case go.L:a=d[x++],s=d[x++];var S=jo(a-i),O=jo(s-o);if(S>p||O>h){if(g){if(m+(K=u[y++])>c){var k=(c-m)/K;e.lineTo(i*(1-k)+a*k,o*(1-k)+s*k);break e}m+=K}e.lineTo(a,s),i=a,o=s,b=0}else{var E=S*S+O*O;E>b&&(l=a,f=s,b=E)}break;case go.C:var j=d[x++],T=d[x++],C=d[x++],A=d[x++],P=d[x++],M=d[x++];if(g){if(m+(K=u[y++])>c){Tt(i,j,C,P,k=(c-m)/K,mo),Tt(o,T,A,M,k,yo),e.bezierCurveTo(mo[1],yo[1],mo[2],yo[2],mo[3],yo[3]);break e}m+=K}e.bezierCurveTo(j,T,C,A,P,M),i=P,o=M;break;case go.Q:j=d[x++],T=d[x++],C=d[x++],A=d[x++];if(g){if(m+(K=u[y++])>c){Rt(i,j,C,k=(c-m)/K,mo),Rt(o,T,A,k,yo),e.quadraticCurveTo(mo[1],yo[1],mo[2],yo[2]);break e}m+=K}e.quadraticCurveTo(j,T,C,A),i=C,o=A;break;case go.A:var I=d[x++],R=d[x++],D=d[x++],L=d[x++],N=d[x++],F=d[x++],B=d[x++],U=!d[x++],z=D>L?D:L,V=jo(D-L)>.001,H=N+F,W=!1;if(g)m+(K=u[y++])>c&&(H=N+F*(c-m)/K,W=!0),m+=K;if(V&&e.ellipse?e.ellipse(I,R,D,L,B,N,H,U):e.arc(I,R,z,N,H,U),W)break e;_&&(n=ko(N)*D+I,r=Eo(N)*L+R),i=ko(H)*D+I,o=Eo(H)*L+R;break;case go.R:n=i=d[x],r=o=d[x+1],a=d[x++],s=d[x++];var q=d[x++],G=d[x++];if(g){if(m+(K=u[y++])>c){var Y=c-m;e.moveTo(a,s),e.lineTo(a+So(Y,q),s),(Y-=q)>0&&e.lineTo(a+q,s+So(Y,G)),(Y-=G)>0&&e.lineTo(a+Oo(q-Y,0),s+G),(Y-=q)>0&&e.lineTo(a,s+Oo(G-Y,0));break e}m+=K}e.rect(a,s,q,G);break;case go.Z:if(g){var K;if(m+(K=u[y++])>c){k=(c-m)/K;e.lineTo(i*(1-k)+n*k,o*(1-k)+r*k);break e}m+=K}e.closePath(),i=n,o=r}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=go,e.initDefaultProps=((t=e.prototype)._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,void(t._version=0)),e}();function Do(e,t,n,r,i,o,a){if(0===i)return!1;var s=i,u=0;if(a>t+s&&a>r+s||a<t-s&&a<r-s||o>e+s&&o>n+s||o<e-s&&o<n-s)return!1;if(e===n)return Math.abs(o-e)<=s/2;var c=(u=(t-r)/(e-n))*o-a+(e*r-n*t)/(e-n);return c*c/(u*u+1)<=s/2*s/2}function Lo(e,t,n,r,i,o,a,s,u,c,l){if(0===u)return!1;var f=u;return!(l>t+f&&l>r+f&&l>o+f&&l>s+f||l<t-f&&l<r-f&&l<o-f&&l<s-f||c>e+f&&c>n+f&&c>i+f&&c>a+f||c<e-f&&c<n-f&&c<i-f&&c<a-f)&&Ct(e,t,n,r,i,o,a,s,c,l,null)<=f/2}function No(e,t,n,r,i,o,a,s,u){if(0===a)return!1;var c=a;return!(u>t+c&&u>r+c&&u>o+c||u<t-c&&u<r-c&&u<o-c||s>e+c&&s>n+c&&s>i+c||s<e-c&&s<n-c&&s<i-c)&&Dt(e,t,n,r,i,o,s,u,null)<=c/2}var Fo=2*Math.PI;function Bo(e){return(e%=Fo)<0&&(e+=Fo),e}var Uo=2*Math.PI;function zo(e,t,n,r,i,o,a,s,u){if(0===a)return!1;var c=a;s-=e,u-=t;var l=Math.sqrt(s*s+u*u);if(l-c>n||l+c<n)return!1;if(Math.abs(r-i)%Uo<1e-4)return!0;if(o){var f=r;r=Bo(i),i=Bo(f)}else r=Bo(r),i=Bo(i);r>i&&(i+=Uo);var d=Math.atan2(u,s);return d<0&&(d+=Uo),d>=r&&d<=i||d+Uo>=r&&d+Uo<=i}function Vo(e,t,n,r,i,o){if(o>t&&o>r||o<t&&o<r)return 0;if(r===t)return 0;var a=(o-t)/(r-t),s=r<t?1:-1;1!==a&&0!==a||(s=r<t?.5:-.5);var u=a*(n-e)+e;return u===i?1/0:u>i?s:0}var Ho=Ro.CMD,Wo=2*Math.PI,qo=1e-4;var Go=[-1,-1,-1],Yo=[-1,-1];function Ko(e,t,n,r,i,o,a,s,u,c){if(c>t&&c>r&&c>o&&c>s||c<t&&c<r&&c<o&&c<s)return 0;var l,f=Et(t,r,o,s,c,Go);if(0===f)return 0;for(var d=0,p=-1,h=void 0,v=void 0,g=0;g<f;g++){var m=Go[g],y=0===m||1===m?.5:1;Ot(e,n,i,a,m)<u||(p<0&&(p=jt(t,r,o,s,Yo),Yo[1]<Yo[0]&&p>1&&(l=void 0,l=Yo[0],Yo[0]=Yo[1],Yo[1]=l),h=Ot(t,r,o,s,Yo[0]),p>1&&(v=Ot(t,r,o,s,Yo[1]))),2===p?m<Yo[0]?d+=h<t?y:-y:m<Yo[1]?d+=v<h?y:-y:d+=s<v?y:-y:m<Yo[0]?d+=h<t?y:-y:d+=s<h?y:-y)}return d}function $o(e,t,n,r,i,o,a,s){if(s>t&&s>r&&s>o||s<t&&s<r&&s<o)return 0;var u=function(e,t,n,r,i){var o=e-2*t+n,a=2*(t-e),s=e-r,u=0;if(_t(o)){if(St(a))(l=-s/a)>=0&&l<=1&&(i[u++]=l)}else{var c=a*a-4*o*s;if(_t(c))(l=-a/(2*o))>=0&&l<=1&&(i[u++]=l);else if(c>0){var l,f=ht(c),d=(-a-f)/(2*o);(l=(-a+f)/(2*o))>=0&&l<=1&&(i[u++]=l),d>=0&&d<=1&&(i[u++]=d)}}return u}(t,r,o,s,Go);if(0===u)return 0;var c=It(t,r,o);if(c>=0&&c<=1){for(var l=0,f=Pt(t,r,o,c),d=0;d<u;d++){var p=0===Go[d]||1===Go[d]?.5:1;Pt(e,n,i,Go[d])<a||(Go[d]<c?l+=f<t?p:-p:l+=o<f?p:-p)}return l}p=0===Go[0]||1===Go[0]?.5:1;return Pt(e,n,i,Go[0])<a?0:o<t?p:-p}function Xo(e,t,n,r,i,o,a,s){if((s-=t)>n||s<-n)return 0;var u=Math.sqrt(n*n-s*s);Go[0]=-u,Go[1]=u;var c=Math.abs(r-i);if(c<1e-4)return 0;if(c>=Wo-1e-4){r=0,i=Wo;var l=o?1:-1;return a>=Go[0]+e&&a<=Go[1]+e?l:0}if(r>i){var f=r;r=i,i=f}r<0&&(r+=Wo,i+=Wo);for(var d=0,p=0;p<2;p++){var h=Go[p];if(h+e>a){var v=Math.atan2(s,h);l=o?1:-1;v<0&&(v=Wo+v),(v>=r&&v<=i||v+Wo>=r&&v+Wo<=i)&&(v>Math.PI/2&&v<1.5*Math.PI&&(l=-l),d+=l)}}return d}function Qo(e,t,n,r,i){for(var o,a,s,u,c=e.data,l=e.len(),f=0,d=0,p=0,h=0,v=0,g=0;g<l;){var m=c[g++],y=1===g;switch(m===Ho.M&&g>1&&(n||(f+=Vo(d,p,h,v,r,i))),y&&(h=d=c[g],v=p=c[g+1]),m){case Ho.M:d=h=c[g++],p=v=c[g++];break;case Ho.L:if(n){if(Do(d,p,c[g],c[g+1],t,r,i))return!0}else f+=Vo(d,p,c[g],c[g+1],r,i)||0;d=c[g++],p=c[g++];break;case Ho.C:if(n){if(Lo(d,p,c[g++],c[g++],c[g++],c[g++],c[g],c[g+1],t,r,i))return!0}else f+=Ko(d,p,c[g++],c[g++],c[g++],c[g++],c[g],c[g+1],r,i)||0;d=c[g++],p=c[g++];break;case Ho.Q:if(n){if(No(d,p,c[g++],c[g++],c[g],c[g+1],t,r,i))return!0}else f+=$o(d,p,c[g++],c[g++],c[g],c[g+1],r,i)||0;d=c[g++],p=c[g++];break;case Ho.A:var b=c[g++],x=c[g++],w=c[g++],_=c[g++],S=c[g++],O=c[g++];g+=1;var k=!!(1-c[g++]);o=Math.cos(S)*w+b,a=Math.sin(S)*_+x,y?(h=o,v=a):f+=Vo(d,p,o,a,r,i);var E=(r-b)*_/w+b;if(n){if(zo(b,x,_,S,S+O,k,t,E,i))return!0}else f+=Xo(b,x,_,S,S+O,k,E,i);d=Math.cos(S+O)*w+b,p=Math.sin(S+O)*_+x;break;case Ho.R:if(h=d=c[g++],v=p=c[g++],o=h+c[g++],a=v+c[g++],n){if(Do(h,v,o,v,t,r,i)||Do(o,v,o,a,t,r,i)||Do(o,a,h,a,t,r,i)||Do(h,a,h,v,t,r,i))return!0}else f+=Vo(o,v,o,a,r,i),f+=Vo(h,a,h,v,r,i);break;case Ho.Z:if(n){if(Do(d,p,h,v,t,r,i))return!0}else f+=Vo(d,p,h,v,r,i);d=h,p=v}}return n||(s=p,u=v,Math.abs(s-u)<qo)||(f+=Vo(d,p,h,v,r,i)||0),0!==f}var Zo=Object(x.defaults)({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Gi),Jo={style:Object(x.defaults)({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Yi.style)},ea=Fn.concat(["invisible","culling","z","z2","zlevel","parent"]),ta=function(e){function t(t){return e.call(this,t)||this}var n;return _(t,e),t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s<ea.length;++s)i[ea[s]]=this[ea[s]];i.__dirty|=it}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=Object(x.keys)(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var o=n[i],a=t[o];"style"===o?this.style?Object(x.extend)(this.style,a):this.useStyle(a):"shape"===o?Object(x.extend)(this.shape,a):e.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if("none"!==e){if(Object(x.isString)(e)){var t=Object(Ut.lum)(e,0);return t>.5?"#333":t>.2?"#eee":"#ccc"}if(e)return"#ccc"}return"#333"},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(Object(x.isString)(t)){var n=this.__zr;if(!(!n||!n.isDarkMode())===Object(Ut.lum)(e,0)<Cn)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=~ot},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new Ro(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&ot)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){o.copy(e);var a=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;s=Math.max(s,null==u?4:u)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var o=this.path;if(this.hasStroke()){var a=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(e,t,n,r){return Qo(e,t,!0,n,r)}(o,a/s,e,t)))return!0}if(this.hasFill())return function(e,t,n){return Qo(e,0,!1,t,n)}(o,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=ot,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){"shape"===t?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),"string"==typeof e?n[e]=t:Object(x.extend)(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&ot)},t.prototype.createStyle=function(e){return Object(x.createObject)(Zo,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=Object(x.extend)({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,o,a){e.prototype._applyStateObj.call(this,t,n,r,i,o,a);var s,u=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=Object(x.extend)({},r.shape),Object(x.extend)(s,n.shape)):(s=Object(x.extend)({},i?this.shape:r.shape),Object(x.extend)(s,n.shape)):u&&(s=r.shape),s)if(o){this.shape=Object(x.extend)({},this.shape);for(var c={},l=Object(x.keys)(s),f=0;f<l.length;f++){var d=l[f];"object"==typeof s[d]?this.shape[d]=s[d]:c[d]=s[d]}this._transitionState(t,{shape:c},a)}else this.shape=s,this.dirtyShape()},t.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(r.shape=n),r},t.prototype.getAnimationStyleProps=function(){return Jo},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return _(n,t),n.prototype.getDefaultStyle=function(){return Object(x.clone)(e.style)},n.prototype.getDefaultShape=function(){return Object(x.clone)(e.shape)},n}(t);for(var r in e)"function"==typeof e[r]&&(n.prototype[r]=e[r]);return n},t.initDefaultProps=((n=t.prototype).type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,void(n.__dirty=2|it|ot)),t}(Ji),na=Object(x.defaults)({strokeFirst:!0,font:Vn.a,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Zo),ra=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _(t,e),t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return null!=t&&"none"!==t&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.createStyle=function(e){return Object(x.createObject)(na,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;null!=t?t+="":t="";var n=Gn(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var r=e.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},t.initDefaultProps=void(t.prototype.dirtyRectTolerance=10),t}(Ji);ra.prototype.type="tspan";var ia=ra,oa=Object(x.defaults)({x:0,y:0},Gi),aa={style:Object(x.defaults)({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Yi.style)};var sa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _(t,e),t.prototype.createStyle=function(e){return Object(x.createObject)(oa,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(null!=n)return n;var r,i=(r=t.image)&&"string"!=typeof r&&r.width&&r.height?t.image:this.__image;if(!i)return 0;var o="width"===e?"height":"width",a=t[o];return null==a?i[e]:i[e]/i[o]*a},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return aa},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new Fe(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Ji);sa.prototype.type="image";var ua=sa;var ca=Math.round;function la(e,t,n){if(t){var r=t.x1,i=t.x2,o=t.y1,a=t.y2;e.x1=r,e.x2=i,e.y1=o,e.y2=a;var s=n&&n.lineWidth;return s?(ca(2*r)===ca(2*i)&&(e.x1=e.x2=da(r,s,!0)),ca(2*o)===ca(2*a)&&(e.y1=e.y2=da(o,s,!0)),e):e}}function fa(e,t,n){if(t){var r=t.x,i=t.y,o=t.width,a=t.height;e.x=r,e.y=i,e.width=o,e.height=a;var s=n&&n.lineWidth;return s?(e.x=da(r,s,!0),e.y=da(i,s,!0),e.width=Math.max(da(r+o,s,!1)-e.x,0===o?0:1),e.height=Math.max(da(i+a,s,!1)-e.y,0===a?0:1),e):e}}function da(e,t,n){if(!t)return e;var r=ca(2*e);return(r+ca(t))%2==0?r/2:(r+(n?1:-1))/2}var pa=function(){this.x=0,this.y=0,this.width=0,this.height=0},ha={},va=function(e){function t(t){return e.call(this,t)||this}return _(t,e),t.prototype.getDefaultShape=function(){return new pa},t.prototype.buildPath=function(e,t){var n,r,i,o;if(this.subPixelOptimize){var a=fa(ha,t,this.style);n=a.x,r=a.y,i=a.width,o=a.height,a.r=t.r,t=a}else n=t.x,r=t.y,i=t.width,o=t.height;t.r?function(e,t){var n,r,i,o,a,s=t.x,u=t.y,c=t.width,l=t.height,f=t.r;c<0&&(s+=c,c=-c),l<0&&(u+=l,l=-l),"number"==typeof f?n=r=i=o=f:f instanceof Array?1===f.length?n=r=i=o=f[0]:2===f.length?(n=i=f[0],r=o=f[1]):3===f.length?(n=f[0],r=o=f[1],i=f[2]):(n=f[0],r=f[1],i=f[2],o=f[3]):n=r=i=o=0,n+r>c&&(n*=c/(a=n+r),r*=c/a),i+o>c&&(i*=c/(a=i+o),o*=c/a),r+i>l&&(r*=l/(a=r+i),i*=l/a),n+o>l&&(n*=l/(a=n+o),o*=l/a),e.moveTo(s+n,u),e.lineTo(s+c-r,u),0!==r&&e.arc(s+c-r,u+r,r,-Math.PI/2,0),e.lineTo(s+c,u+l-i),0!==i&&e.arc(s+c-i,u+l-i,i,0,Math.PI/2),e.lineTo(s+o,u+l),0!==o&&e.arc(s+o,u+l-o,o,Math.PI/2,Math.PI),e.lineTo(s,u+n),0!==n&&e.arc(s+n,u+n,n,Math.PI,1.5*Math.PI)}(e,t):e.rect(n,r,i,o)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(ta);va.prototype.type="rect";var ga=va,ma={fill:"#000"},ya={style:Object(x.defaults)({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Yi.style)},ba=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=ma,n.attr(t),n}return _(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){var e;this._childCursor=0,Ea(e=this.style),Object(x.each)(e.rich,Ea),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new Fe(0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var o=t[i],a=o.getBoundingRect(),s=o.getLocalTransform(n);s?(e.copy(a),e.applyTransform(s),(r=r||e.clone()).union(e)):(r=r||a.clone()).union(a)}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||ma},t.prototype.setTextContent=function(e){0},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return Object(x.extend)(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=Object(x.keys)(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},Object(x.extend)(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return ya},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return t&&t instanceof e||(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||Vn.a,n=e.padding,r=function(e,t){null!=e&&(e+="");var n,r=t.overflow,i=t.padding,o=t.font,a="truncate"===r,s=$n(o),u=Object(x.retrieve2)(t.lineHeight,s),c=!!t.backgroundColor,l="truncate"===t.lineOverflow,f=t.width,d=(n=null==f||"break"!==r&&"breakAll"!==r?e?e.split("\n"):[]:e?Wi(e,t.font,f,"breakAll"===r,0).lines:[]).length*u,p=Object(x.retrieve2)(t.height,d);if(d>p&&l){var h=Math.floor(p/u);n=n.slice(0,h)}if(e&&a&&null!=f)for(var v=Di(f,o,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;g<n.length;g++)n[g]=Li(n[g],v);var m=p,y=0;for(g=0;g<n.length;g++)y=Math.max(Wn(n[g],o),y);null==f&&(f=y);var b=y;return i&&(m+=i[0]+i[2],b+=i[1]+i[3],f+=i[1]+i[3]),c&&(b=f),{lines:n,height:p,outerWidth:b,outerHeight:m,lineHeight:u,calculatedLineHeight:s,contentWidth:y,contentHeight:d,width:f}}(Aa(e),e),i=Pa(e),o=!!e.backgroundColor,a=r.outerHeight,s=r.outerWidth,u=r.contentWidth,c=r.lines,l=r.lineHeight,f=this._defaultStyle,d=e.x||0,p=e.y||0,h=e.align||f.align||"left",v=e.verticalAlign||f.verticalAlign||"top",g=d,m=Kn(p,r.contentHeight,v);if(i||n){var y=Yn(d,s,h),b=Kn(p,a,v);i&&this._renderBackground(e,e,y,b,s,a)}m+=l/2,n&&(g=Ca(d,h,n),"top"===v?m+=n[0]:"bottom"===v&&(m-=n[2]));for(var w=0,_=!1,S=(Ta("fill"in e?e.fill:(_=!0,f.fill))),O=(ja("stroke"in e?e.stroke:o||f.autoStroke&&!_?null:(w=2,f.stroke))),k=e.textShadowBlur>0,E=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),j=r.calculatedLineHeight,T=0;T<c.length;T++){var C=this._getOrCreateChild(ia),A=C.createStyle();C.useStyle(A),A.text=c[T],A.x=g,A.y=m,h&&(A.textAlign=h),A.textBaseline="middle",A.opacity=e.opacity,A.strokeFirst=!0,k&&(A.shadowBlur=e.textShadowBlur||0,A.shadowColor=e.textShadowColor||"transparent",A.shadowOffsetX=e.textShadowOffsetX||0,A.shadowOffsetY=e.textShadowOffsetY||0),A.stroke=O,A.fill=S,O&&(A.lineWidth=e.lineWidth||w,A.lineDash=e.lineDash,A.lineDashOffset=e.lineDashOffset||0),A.font=t,Oa(A,e),m+=l,E&&C.setBoundingRect(new Fe(Yn(A.x,e.width,A.textAlign),Kn(A.y,j,A.textBaseline),u,j))}},t.prototype._updateRichTexts=function(){var e=this.style,t=function(e,t){var n=new Ui;if(null!=e&&(e+=""),!e)return n;for(var r,i=t.width,o=t.height,a=t.overflow,s="break"!==a&&"breakAll"!==a||null==i?null:{width:i,accumWidth:0,breakAll:"breakAll"===a},u=Ii.lastIndex=0;null!=(r=Ii.exec(e));){var c=r.index;c>u&&zi(n,e.substring(u,c),t,s),zi(n,r[2],t,s,r[1]),u=Ii.lastIndex}u<e.length&&zi(n,e.substring(u,e.length),t,s);var l=[],f=0,d=0,p=t.padding,h="truncate"===a,v="truncate"===t.lineOverflow;function g(e,t,n){e.width=t,e.lineHeight=n,f+=n,d=Math.max(d,t)}e:for(var m=0;m<n.lines.length;m++){for(var y=n.lines[m],b=0,w=0,_=0;_<y.tokens.length;_++){var S=(I=y.tokens[_]).styleName&&t.rich[I.styleName]||{},O=I.textPadding=S.padding,k=O?O[1]+O[3]:0,E=I.font=S.font||t.font;I.contentHeight=$n(E);var j=Object(x.retrieve2)(S.height,I.contentHeight);if(I.innerHeight=j,O&&(j+=O[0]+O[2]),I.height=j,I.lineHeight=Object(x.retrieve3)(S.lineHeight,t.lineHeight,j),I.align=S&&S.align||t.align,I.verticalAlign=S&&S.verticalAlign||"middle",v&&null!=o&&f+I.lineHeight>o){_>0?(y.tokens=y.tokens.slice(0,_),g(y,w,b),n.lines=n.lines.slice(0,m+1)):n.lines=n.lines.slice(0,m);break e}var T=S.width,C=null==T||"auto"===T;if("string"==typeof T&&"%"===T.charAt(T.length-1))I.percentWidth=T,l.push(I),I.contentWidth=Wn(I.text,E);else{if(C){var A=S.backgroundColor,P=A&&A.image;P&&Mi(P=Ci(P))&&(I.width=Math.max(I.width,P.width*j/P.height))}var M=h&&null!=i?i-w:null;null!=M&&M<I.width?!C||M<k?(I.text="",I.width=I.contentWidth=0):(I.text=Ri(I.text,M-k,E,t.ellipsis,{minChar:t.truncateMinChar}),I.width=I.contentWidth=Wn(I.text,E)):I.contentWidth=Wn(I.text,E)}I.width+=k,w+=I.width,S&&(b=Math.max(b,I.lineHeight))}g(y,w,b)}for(n.outerWidth=n.width=Object(x.retrieve2)(i,d),n.outerHeight=n.height=Object(x.retrieve2)(o,f),n.contentHeight=f,n.contentWidth=d,p&&(n.outerWidth+=p[1]+p[3],n.outerHeight+=p[0]+p[2]),m=0;m<l.length;m++){var I,R=(I=l[m]).percentWidth;I.width=parseInt(R,10)/100*n.width}return n}(Aa(e),e),n=t.width,r=t.outerWidth,i=t.outerHeight,o=e.padding,a=e.x||0,s=e.y||0,u=this._defaultStyle,c=e.align||u.align,l=e.verticalAlign||u.verticalAlign,f=Yn(a,r,c),d=Kn(s,i,l),p=f,h=d;o&&(p+=o[3],h+=o[0]);var v=p+n;Pa(e)&&this._renderBackground(e,e,f,d,r,i);for(var g=!!e.backgroundColor,m=0;m<t.lines.length;m++){for(var y=t.lines[m],b=y.tokens,w=b.length,_=y.lineHeight,S=y.width,O=0,k=p,E=v,j=w-1,T=void 0;O<w&&(!(T=b[O]).align||"left"===T.align);)this._placeToken(T,e,_,h,k,"left",g),S-=T.width,k+=T.width,O++;for(;j>=0&&"right"===(T=b[j]).align;)this._placeToken(T,e,_,h,E,"right",g),S-=T.width,E-=T.width,j--;for(k+=(n-(k-p)-(v-E)-S)/2;O<=j;)T=b[O],this._placeToken(T,e,_,h,k+T.width/2,"center",g),k+=T.width,O++;h+=_}},t.prototype._placeToken=function(e,t,n,r,i,o,a){var s=t.rich[e.styleName]||{};s.text=e.text;var u=e.verticalAlign,c=r+n/2;"top"===u?c=r+e.height/2:"bottom"===u&&(c=r+n-e.height/2),!e.isLineHolder&&Pa(s)&&this._renderBackground(s,t,"right"===o?i-e.width:"center"===o?i-e.width/2:i,c-e.height/2,e.width,e.height);var l=!!s.backgroundColor,f=e.textPadding;f&&(i=Ca(i,o,f),c-=e.height/2-f[0]-e.innerHeight/2);var d=this._getOrCreateChild(ia),p=d.createStyle();d.useStyle(p);var h=this._defaultStyle,v=!1,g=0,m=Ta("fill"in s?s.fill:"fill"in t?t.fill:(v=!0,h.fill)),y=ja("stroke"in s?s.stroke:"stroke"in t?t.stroke:l||a||h.autoStroke&&!v?null:(g=2,h.stroke)),b=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=c,b&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||"transparent",p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=o,p.textBaseline="middle",p.font=e.font||Vn.a,p.opacity=Object(x.retrieve3)(s.opacity,t.opacity,1),Oa(p,s),y&&(p.lineWidth=Object(x.retrieve3)(s.lineWidth,t.lineWidth,g),p.lineDash=Object(x.retrieve2)(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),m&&(p.fill=m);var w=e.contentWidth,_=e.contentHeight;d.setBoundingRect(new Fe(Yn(p.x,w,p.textAlign),Kn(p.y,_,p.textBaseline),w,_))},t.prototype._renderBackground=function(e,t,n,r,i,o){var a,s,u,c=e.backgroundColor,l=e.borderWidth,f=e.borderColor,d=c&&c.image,p=c&&!d,h=e.borderRadius,v=this;if(p||e.lineHeight||l&&f){(a=this._getOrCreateChild(ga)).useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=n,g.y=r,g.width=i,g.height=o,g.r=h,a.dirtyShape()}if(p)(u=a.style).fill=c||null,u.fillOpacity=Object(x.retrieve2)(e.fillOpacity,1);else if(d){(s=this._getOrCreateChild(ua)).onload=function(){v.dirtyStyle()};var m=s.style;m.image=c.image,m.x=n,m.y=r,m.width=i,m.height=o}l&&f&&((u=a.style).lineWidth=l,u.stroke=f,u.strokeOpacity=Object(x.retrieve2)(e.strokeOpacity,1),u.lineDash=e.borderDash,u.lineDashOffset=e.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(u.strokeFirst=!0,u.lineWidth*=2));var y=(a||s).style;y.shadowBlur=e.shadowBlur||0,y.shadowColor=e.shadowColor||"transparent",y.shadowOffsetX=e.shadowOffsetX||0,y.shadowOffsetY=e.shadowOffsetY||0,y.opacity=Object(x.retrieve3)(e.opacity,t.opacity,1)},t.makeFont=function(e){var t="";return ka(e)&&(t=[e.fontStyle,e.fontWeight,Sa(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),t&&Object(x.trim)(t)||e.textFont||e.font},t}(Ji),xa={left:!0,right:1,center:1},wa={top:1,bottom:1,middle:1},_a=["fontStyle","fontWeight","fontSize","fontFamily"];function Sa(e){return"string"!=typeof e||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?Vn.c+"px":e+"px":e}function Oa(e,t){for(var n=0;n<_a.length;n++){var r=_a[n],i=t[r];null!=i&&(e[r]=i)}}function ka(e){return null!=e.fontSize||e.fontFamily||e.fontWeight}function Ea(e){if(e){e.font=ba.makeFont(e);var t=e.align;"middle"===t&&(t="center"),e.align=null==t||xa[t]?t:"left";var n=e.verticalAlign;"center"===n&&(n="middle"),e.verticalAlign=null==n||wa[n]?n:"top",e.padding&&(e.padding=Object(x.normalizeCssArray)(e.padding))}}function ja(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function Ta(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function Ca(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}function Aa(e){var t=e.text;return null!=t&&(t+=""),t}function Pa(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var Ma=ba,Ia=oi(),Ra=function(e,t,n,r){if(r){var i=Ia(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,"group"===r.type&&r.traverse((function(r){var i=Ia(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t}))}},Da=1,La={},Na=oi(),Fa=oi(),Ba=0,Ua=1,za=2,Va=["emphasis","blur","select"],Ha=["normal","emphasis","blur","select"],Wa=10,qa=9,Ga="highlight",Ya="downplay",Ka="select",$a="unselect",Xa="toggleSelect";function Qa(e){return null!=e&&"none"!==e}var Za=new zn.a(100);function Ja(e){if(Object(x.isString)(e)){var t=Za.get(e);return t||(t=Ut.lift(e,-.1),Za.put(e,t)),t}if(Object(x.isGradientObject)(e)){var n=Object(x.extend)({},e);return n.colorStops=Object(x.map)(e.colorStops,(function(e){return{offset:e.offset,color:Ut.lift(e.color,-.1)}})),n}return e}function es(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function ts(e){es(e,"emphasis",za)}function ns(e){e.hoverState===za&&es(e,"normal",Ba)}function rs(e){es(e,"blur",Ua)}function is(e){e.hoverState===Ua&&es(e,"normal",Ba)}function os(e){e.selected=!0}function as(e){e.selected=!1}function ss(e,t,n){t(e,n)}function us(e,t,n){ss(e,t,n),e.isGroup&&e.traverse((function(e){ss(e,t,n)}))}function cs(e,t){switch(t){case"emphasis":e.hoverState=za;break;case"normal":e.hoverState=Ba;break;case"blur":e.hoverState=Ua;break;case"select":e.selected=!0}}function ls(e,t){var n=this.states[e];if(this.style){if("emphasis"===e)return function(e,t,n,r){var i=n&&Object(x.indexOf)(n,"select")>=0,o=!1;if(e instanceof ta){var a=Na(e),s=i&&a.selectFill||a.normalFill,u=i&&a.selectStroke||a.normalStroke;if(Qa(s)||Qa(u)){var c=(r=r||{}).style||{};"inherit"===c.fill?(o=!0,r=Object(x.extend)({},r),(c=Object(x.extend)({},c)).fill=s):!Qa(c.fill)&&Qa(s)?(o=!0,r=Object(x.extend)({},r),(c=Object(x.extend)({},c)).fill=Ja(s)):!Qa(c.stroke)&&Qa(u)&&(o||(r=Object(x.extend)({},r),c=Object(x.extend)({},c)),c.stroke=Ja(u)),r.style=c}}if(r&&null==r.z2){o||(r=Object(x.extend)({},r));var l=e.z2EmphasisLift;r.z2=e.z2+(null!=l?l:Wa)}return r}(this,0,t,n);if("blur"===e)return function(e,t,n){var r=Object(x.indexOf)(e.currentStates,t)>=0,i=e.style.opacity,o=r?null:function(e,t,n,r){for(var i=e.style,o={},a=0;a<t.length;a++){var s=t[a],u=i[s];o[s]=null==u?r&&r[s]:u}for(a=0;a<e.animators.length;a++){var c=e.animators[a];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&"style"===c.targetName&&c.saveTo(o,t)}return o}(e,["opacity"],t,{opacity:1}),a=(n=n||{}).style||{};return null==a.opacity&&(n=Object(x.extend)({},n),a=Object(x.extend)({opacity:r?i:.1*o.opacity},a),n.style=a),n}(this,e,n);if("select"===e)return function(e,t,n){if(n&&null==n.z2){n=Object(x.extend)({},n);var r=e.z2SelectLift;n.z2=e.z2+(null!=r?r:qa)}return n}(this,0,n)}return n}function fs(e){e.stateProxy=ls;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=ls),n&&(n.stateProxy=ls)}function ds(e,t){!xs(e,t)&&!e.__highByOuter&&us(e,ts)}function ps(e,t){!xs(e,t)&&!e.__highByOuter&&us(e,ns)}function hs(e,t){e.__highByOuter|=1<<(t||0),us(e,ts)}function vs(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&us(e,ns)}function gs(e){us(e,rs)}function ms(e){us(e,is)}function ys(e){us(e,os)}function bs(e){us(e,as)}function xs(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function ws(e){var t=e.getModel(),n=[],r=[];t.eachComponent((function(t,i){var o=Fa(i),a="series"===t,s=a?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!a&&r.push(s),o.isBlured&&(s.group.traverse((function(e){is(e)})),a&&n.push(i)),o.isBlured=!1})),Object(x.each)(r,(function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)}))}function _s(e,t,n,r){var i=r.getModel();function o(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&ms(r)}}if(n=n||"coordinateSystem",null!=e&&t&&"none"!==t){var a=i.getSeriesByIndex(e),s=a.coordinateSystem;s&&s.master&&(s=s.master);var u=[];i.eachSeries((function(e){var i=a===e,c=e.coordinateSystem;if(c&&c.master&&(c=c.master),!("series"===n&&!i||"coordinateSystem"===n&&!(c&&s?c===s:i)||"series"===t&&i)){if(r.getViewOfSeriesModel(e).group.traverse((function(e){rs(e)})),Object(x.isArrayLike)(t))o(e.getData(),t);else if(Object(x.isObject)(t))for(var l=Object(x.keys)(t),f=0;f<l.length;f++)o(e.getData(l[f]),t[l[f]]);u.push(e),Fa(e).isBlured=!0}})),i.eachComponent((function(e,t){if("series"!==e){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(u,!0,i)}}))}}function Ss(e,t,n){if(null!=e&&null!=t){var r=n.getModel().getComponent(e,t);if(r){Fa(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse((function(e){rs(e)}))}}}function Os(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(null==e||"series"===e||null==t||null==n)return i;var o=r.getModel().getComponent(e,t);if(!o)return i;var a=r.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return i;for(var s,u=a.findHighDownDispatchers(n),c=0;c<u.length;c++)if("self"===Ia(u[c]).focus){s=!0;break}return{focusSelf:s,dispatchers:u}}function ks(e){var t=e.getAllData();Object(x.each)(t,(function(t){var n=t.data,r=t.type;n.eachItemGraphicEl((function(t,n){e.isSelected(n,r)?ys(t):bs(t)}))}))}function Es(e){var t=[];return e.eachSeries((function(e){var n=e.getAllData();Object(x.each)(n,(function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var o={dataIndex:i,seriesIndex:e.seriesIndex};null!=r&&(o.dataType=r),t.push(o)}}))})),t}function js(e,t,n){Is(e,!0),us(e,fs),Cs(e,t,n)}function Ts(e,t,n,r){r?function(e){Is(e,!1)}(e):js(e,t,n)}function Cs(e,t,n){var r=Ia(e);null!=t?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var As=["emphasis","blur","select"],Ps={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Ms(e,t,n,r){n=n||"itemStyle";for(var i=0;i<As.length;i++){var o=As[i],a=t.getModel([o,n]);e.ensureState(o).style=r?r(a):a[Ps[n]]()}}function Is(e,t){var n=!1===t,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),n&&!r.__highDownDispatcher||(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function Rs(e){return!(!e||!e.__highDownDispatcher)}function Ds(e){var t=e.type;return t===Ka||t===$a||t===Xa}function Ls(e){var t=e.type;return t===Ga||t===Ya}var Ns=oi();function Fs(e,t,n,r,i){var o;if(t&&t.ecModel){var a=t.ecModel.getUpdatePayload();o=a&&a.animation}var s="update"===e;if(t&&t.isAnimationEnabled()){var u=void 0,c=void 0,l=void 0;return r?(u=Object(x.retrieve2)(r.duration,200),c=Object(x.retrieve2)(r.easing,"cubicOut"),l=0):(u=t.getShallow(s?"animationDurationUpdate":"animationDuration"),c=t.getShallow(s?"animationEasingUpdate":"animationEasing"),l=t.getShallow(s?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(u=o.duration),null!=o.easing&&(c=o.easing),null!=o.delay&&(l=o.delay)),Object(x.isFunction)(l)&&(l=l(n,i)),Object(x.isFunction)(u)&&(u=u(n)),{duration:u||0,delay:l,easing:c}}return null}function Bs(e,t,n,r,i,o,a){var s,u=!1;Object(x.isFunction)(i)?(a=o,o=i,i=null):Object(x.isObject)(i)&&(o=i.cb,a=i.during,u=i.isFrom,s=i.removeOpt,i=i.dataIndex);var c="leave"===e;c||t.stopAnimation("leave");var l=Fs(e,r,i,c?s||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(l&&l.duration>0){var f={duration:l.duration,delay:l.delay||0,easing:l.easing,done:o,force:!!o||!!a,setToFinal:!c,scope:e,during:a};u?t.animateFrom(n,f):t.animateTo(n,f)}else t.stopAnimation(),!u&&t.attr(n),a&&a(1),o&&o()}function Us(e,t,n,r,i,o){Bs("update",e,t,n,r,i,o)}function zs(e,t,n,r,i,o){Bs("enter",e,t,n,r,i,o)}function Vs(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){if("leave"===e.animators[t].scope)return!0}return!1}function Hs(e,t,n,r,i,o){Vs(e)||Bs("leave",e,t,n,r,i,o)}function Ws(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),Hs(e,{style:{opacity:0}},t,n,r)}function qs(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse((function(e){e.isGroup||Ws(e,t,n,r)})):Ws(e,t,n,r)}function Gs(e){Ns(e).oldStyle=e.style}var Ys={};function Ks(e,t){for(var n=0;n<Va.length;n++){var r=Va[n],i=t[r],o=e.ensureState(r);o.style=o.style||{},o.style.text=i}var a=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(a,!0)}function $s(e,t,n){var r,i=e.labelFetcher,o=e.labelDataIndex,a=e.labelDimIndex,s=t.normal;i&&(r=i.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==r&&(r=Object(x.isFunction)(e.defaultText)?e.defaultText(o,e,n):e.defaultText);for(var u={normal:r},c=0;c<Va.length;c++){var l=Va[c],f=t[l];u[l]=Object(x.retrieve2)(i?i.getFormattedLabel(o,l,null,a,f&&f.get("formatter")):null,r)}return u}function Xs(e,t,n,r){n=n||Ys;for(var i=e instanceof Ma,o=!1,a=0;a<Ha.length;a++){if((d=t[Ha[a]])&&d.getShallow("show")){o=!0;break}}var s=i?e:e.getTextContent();if(o){i||(s||(s=new Ma,e.setTextContent(s)),e.stateProxy&&(s.stateProxy=e.stateProxy));var u=$s(n,t),c=t.normal,l=!!c.getShallow("show"),f=Zs(c,r&&r.normal,n,!1,!i);f.text=u.normal,i||e.setTextConfig(Js(c,n,!1));for(a=0;a<Va.length;a++){var d,p=Va[a];if(d=t[p]){var h=s.ensureState(p),v=!!Object(x.retrieve2)(d.getShallow("show"),l);if(v!==l&&(h.ignore=!v),h.style=Zs(d,r&&r[p],n,!0,!i),h.style.text=u[p],!i)e.ensureState(p).textConfig=Js(d,n,!0)}}s.silent=!!c.getShallow("silent"),null!=s.style.x&&(f.x=s.style.x),null!=s.style.y&&(f.y=s.style.y),s.ignore=!l,s.useStyle(f),s.dirty(),n.enableTextSetter&&(ou(s).setLabelText=function(e){var r=$s(n,t,e);Ks(s,r)})}else s&&(s.ignore=!0);e.dirty()}function Qs(e,t){t=t||"label";for(var n={normal:e.getModel(t)},r=0;r<Va.length;r++){var i=Va[r];n[i]=e.getModel([i,t])}return n}function Zs(e,t,n,r,i){var o={};return function(e,t,n,r,i){n=n||Ys;var o,a=t.ecModel,s=a&&a.option.textStyle,u=function(e){var t;for(;e&&e!==e.ecModel;){var n=(e.option||Ys).rich;if(n){t=t||{};for(var r=Object(x.keys)(n),i=0;i<r.length;i++){var o=r[i];t[o]=1}}e=e.parentModel}return t}(t);if(u)for(var c in o={},u)if(u.hasOwnProperty(c)){var l=t.getModel(["rich",c]);ru(o[c]={},l,s,n,r,i,!1,!0)}o&&(e.rich=o);var f=t.get("overflow");f&&(e.overflow=f);var d=t.get("minMargin");null!=d&&(e.margin=d);ru(e,t,s,n,r,i,!0,!1)}(o,e,n,r,i),t&&Object(x.extend)(o,t),o}function Js(e,t,n){t=t||{};var r,i={},o=e.getShallow("rotate"),a=Object(x.retrieve2)(e.getShallow("distance"),n?null:5),s=e.getShallow("offset");return"outside"===(r=e.getShallow("position")||(n?null:"inside"))&&(r=t.defaultOutsidePosition||"top"),null!=r&&(i.position=r),null!=s&&(i.offset=s),null!=o&&(o*=Math.PI/180,i.rotation=o),null!=a&&(i.distance=a),i.outsideFill="inherit"===e.get("color")?t.inheritColor||null:"auto",i}var eu=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],tu=["align","lineHeight","width","height","tag","verticalAlign"],nu=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function ru(e,t,n,r,i,o,a,s){n=!i&&n||Ys;var u=r&&r.inheritColor,c=t.getShallow("color"),l=t.getShallow("textBorderColor"),f=Object(x.retrieve2)(t.getShallow("opacity"),n.opacity);"inherit"!==c&&"auto"!==c||(c=u||null),"inherit"!==l&&"auto"!==l||(l=u||null),o||(c=c||n.color,l=l||n.textBorderColor),null!=c&&(e.fill=c),null!=l&&(e.stroke=l);var d=Object(x.retrieve2)(t.getShallow("textBorderWidth"),n.textBorderWidth);null!=d&&(e.lineWidth=d);var p=Object(x.retrieve2)(t.getShallow("textBorderType"),n.textBorderType);null!=p&&(e.lineDash=p);var h=Object(x.retrieve2)(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=h&&(e.lineDashOffset=h),i||null!=f||s||(f=r&&r.defaultOpacity),null!=f&&(e.opacity=f),i||o||null==e.fill&&r.inheritColor&&(e.fill=r.inheritColor);for(var v=0;v<eu.length;v++){var g=eu[v];null!=(y=Object(x.retrieve2)(t.getShallow(g),n[g]))&&(e[g]=y)}for(v=0;v<tu.length;v++){g=tu[v];null!=(y=t.getShallow(g))&&(e[g]=y)}if(null==e.verticalAlign){var m=t.getShallow("baseline");null!=m&&(e.verticalAlign=m)}if(!a||!r.disableBox){for(v=0;v<nu.length;v++){var y;g=nu[v];null!=(y=t.getShallow(g))&&(e[g]=y)}var b=t.getShallow("borderType");null!=b&&(e.borderDash=b),"auto"!==e.backgroundColor&&"inherit"!==e.backgroundColor||!u||(e.backgroundColor=u),"auto"!==e.borderColor&&"inherit"!==e.borderColor||!u||(e.borderColor=u)}}function iu(e,t){var n=t&&t.getModel("textStyle");return Object(x.trim)([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var ou=oi();function au(e,t,n,r){if(e){var i=ou(e);i.prevValue=i.value,i.value=n;var o=t.normal;i.valueAnimation=o.get("valueAnimation"),i.valueAnimation&&(i.precision=o.get("precision"),i.defaultInterpolatedText=r,i.statesModels=t)}}function su(e,t,n,r,i){var o=ou(e);if(o.valueAnimation&&o.prevValue!==o.value){var a=o.defaultInterpolatedText,s=Object(x.retrieve2)(o.interpolatedValue,o.prevValue),u=o.value;e.percent=0,(null==o.prevValue?zs:Us)(e,{percent:1},r,t,null,(function(r){var c=hi(n,o.precision,s,u,r);o.interpolatedValue=1===r?null:c;var l=$s({labelDataIndex:t,labelFetcher:i,defaultText:a?a(c):c+""},o.statesModels,c);Ks(e,l)}))}}var uu=["textStyle","color"],cu=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],lu=new Ma,fu=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(uu):null)},e.prototype.getFont=function(){return iu({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<cu.length;n++)t[cu[n]]=this.getShallow(cu[n]);return lu.useStyle(t),lu.update(),lu.getBoundingRect()},e}(),du=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],pu=ki(du),hu=function(){function e(){}return e.prototype.getLineStyle=function(e){return pu(this,e)},e}(),vu=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],gu=ki(vu),mu=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return gu(this,e,t)},e}();function yu(e){return(yu="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)}var bu,xu,wu=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i]},e.prototype.mergeOption=function(e,t){Object(x.merge)(this.option,e,!0)},e.prototype.get=function(e,t){return null==e?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=null==n?n:n[e];if(null==r&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=null!=t,i=r?this.parsePath(t):null;return new e(r?this._doGet(i):this.option,n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),this.ecModel)},e.prototype.isEmpty=function(){return null==this.option},e.prototype.restoreData=function(){},e.prototype.clone=function(){return new(0,this.constructor)(Object(x.clone)(this.option))},e.prototype.parsePath=function(e){return"string"==typeof e?e.split("."):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!b.a.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length&&(!e[r]||null!=(n=n&&"object"===yu(n)?n[e[r]]:null));r++);return null==n&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();bi(wu),bu=wu,xu=["__\0is_clz",wi++].join("_"),bu.prototype[xu]=!0,bu.isInstance=function(e){return!(!e||!e[xu])},Object(x.mixin)(wu,hu),Object(x.mixin)(wu,mu),Object(x.mixin)(wu,ji),Object(x.mixin)(wu,fu);var _u=wu,Su=Math.round(10*Math.random());function Ou(e){return[e||"",Su++].join("_")}function ku(e,t){return x.merge(x.merge({},e,!0),t,!0)}var Eu="ZH",ju="EN",Tu=ju,Cu={},Au={},Pu=b.a.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf(Eu)>-1?Eu:Tu;function Mu(e,t){e=e.toUpperCase(),Au[e]=new _u(t),Cu[e]=t}function Iu(e){return Au[e]}Mu(ju,{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),Mu(Eu,{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}});var Ru=1e3,Du=60*Ru,Lu=60*Du,Nu=24*Lu,Fu=365*Nu,Bu={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Uu={year:"{yyyy}",month:"{yyyy}-{MM}",day:"{yyyy}-{MM}-{dd}",hour:"{yyyy}-{MM}-{dd} "+Bu.hour,minute:"{yyyy}-{MM}-{dd} "+Bu.minute,second:"{yyyy}-{MM}-{dd} "+Bu.second,millisecond:Bu.none},zu=["year","month","day","hour","minute","second","millisecond"],Vu=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Hu(e,t){return"0000".substr(0,t-(e+="").length)+e}function Wu(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function qu(e,t,n,r){var i=Rr(e),o=i[Ku(n)](),a=i[$u(n)]()+1,s=Math.floor((a-1)/3)+1,u=i[Xu(n)](),c=i["get"+(n?"UTC":"")+"Day"](),l=i[Qu(n)](),f=(l-1)%12+1,d=i[Zu(n)](),p=i[Ju(n)](),h=i[ec(n)](),v=(r instanceof _u?r:Iu(r||Pu)||Au[Tu]).getModel("time"),g=v.get("month"),m=v.get("monthAbbr"),y=v.get("dayOfWeek"),b=v.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,g[a-1]).replace(/{MMM}/g,m[a-1]).replace(/{MM}/g,Hu(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Hu(u,2)).replace(/{d}/g,u+"").replace(/{eeee}/g,y[c]).replace(/{ee}/g,b[c]).replace(/{e}/g,c+"").replace(/{HH}/g,Hu(l,2)).replace(/{H}/g,l+"").replace(/{hh}/g,Hu(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Hu(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Hu(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,Hu(h,3)).replace(/{S}/g,h+"")}function Gu(e,t){var n=Rr(e),r=n[$u(t)]()+1,i=n[Xu(t)](),o=n[Qu(t)](),a=n[Zu(t)](),s=n[Ju(t)](),u=0===n[ec(t)](),c=u&&0===s,l=c&&0===a,f=l&&0===o,d=f&&1===i;return d&&1===r?"year":d?"month":f?"day":l?"hour":c?"minute":u?"second":"millisecond"}function Yu(e,t,n){var r=x.isNumber(e)?Rr(e):e;switch(t=t||Gu(e,n)){case"year":return r[Ku(n)]();case"half-year":return r[$u(n)]()>=6?1:0;case"quarter":return Math.floor((r[$u(n)]()+1)/4);case"month":return r[$u(n)]();case"day":return r[Xu(n)]();case"half-day":return r[Qu(n)]()/24;case"hour":return r[Qu(n)]();case"minute":return r[Zu(n)]();case"second":return r[Ju(n)]();case"millisecond":return r[ec(n)]()}}function Ku(e){return e?"getUTCFullYear":"getFullYear"}function $u(e){return e?"getUTCMonth":"getMonth"}function Xu(e){return e?"getUTCDate":"getDate"}function Qu(e){return e?"getUTCHours":"getHours"}function Zu(e){return e?"getUTCMinutes":"getMinutes"}function Ju(e){return e?"getUTCSeconds":"getSeconds"}function ec(e){return e?"getUTCMilliseconds":"getMilliseconds"}function tc(e){return e?"setUTCFullYear":"setFullYear"}function nc(e){return e?"setUTCMonth":"setMonth"}function rc(e){return e?"setUTCDate":"setDate"}function ic(e){return e?"setUTCHours":"setHours"}function oc(e){return e?"setUTCMinutes":"setMinutes"}function ac(e){return e?"setUTCSeconds":"setSeconds"}function sc(e){return e?"setUTCMilliseconds":"setMilliseconds"}function uc(e){if(!zr(e))return x.isString(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function cc(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var lc=x.normalizeCssArray;function fc(e,t,n){function r(e){return e&&x.trim(e)?e:"-"}function i(e){return!(null==e||isNaN(e)||!isFinite(e))}var o="time"===t,a=e instanceof Date;if(o||a){var s=o?Rr(e):e;if(!isNaN(+s))return qu(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===t)return x.isStringSafe(e)?r(e):x.isNumber(e)&&i(e)?e+"":"-";var u=Ur(e);return i(u)?uc(u):x.isStringSafe(e)?r(e):"boolean"==typeof e?e+"":"-"}var dc=["a","b","c","d","e","f","g"],pc=function(e,t){return"{"+e+(null==t?"":t)+"}"};function hc(e,t,n){x.isArray(t)||(t=[t]);var r=t.length;if(!r)return"";for(var i=t[0].$vars||[],o=0;o<i.length;o++){var a=dc[o];e=e.replace(pc(a),pc(a,0))}for(var s=0;s<r;s++)for(var u=0;u<i.length;u++){var c=t[s][i[u]];e=e.replace(pc(dc[u],s),n?ae(c):c)}return e}function vc(e,t){var n=x.isString(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var o=n.renderMode||"html";return r?"html"===o?"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+ae(r)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+ae(r)+";"+(t||"")+'"></span>':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:""}function gc(e,t,n){"week"!==e&&"month"!==e&&"quarter"!==e&&"half-year"!==e&&"year"!==e||(e="MM-dd\nyyyy");var r=Rr(t),i=n?"getUTC":"get",o=r[i+"FullYear"](),a=r[i+"Month"]()+1,s=r[i+"Date"](),u=r[i+"Hours"](),c=r[i+"Minutes"](),l=r[i+"Seconds"](),f=r[i+"Milliseconds"]();return e=e.replace("MM",Hu(a,2)).replace("M",a).replace("yyyy",o).replace("yy",Hu(o%100+"",2)).replace("dd",Hu(s,2)).replace("d",s).replace("hh",Hu(u,2)).replace("h",u).replace("mm",Hu(c,2)).replace("m",c).replace("ss",Hu(l,2)).replace("s",l).replace("SSS",Hu(f,3))}function mc(e){return e?e.charAt(0).toUpperCase()+e.substr(1):e}function yc(e,t){return t=t||"transparent",x.isString(e)?e:x.isObject(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function bc(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var xc=x.each,wc=["left","right","top","bottom","width","height"],_c=[["width","left","right"],["height","top","bottom"]];function Sc(e,t,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;t.eachChild((function(u,c){var l,f,d=u.getBoundingRect(),p=t.childAt(c+1),h=p&&p.getBoundingRect();if("horizontal"===e){var v=d.width+(h?-h.x+d.x:0);(l=o+v)>r||u.newline?(o=0,l=v,a+=s+n,s=d.height):s=Math.max(s,d.height)}else{var g=d.height+(h?-h.y+d.y:0);(f=a+g)>i||u.newline?(o+=s+n,a=0,f=g,s=d.width):s=Math.max(s,d.width)}u.newline||(u.x=o,u.y=a,u.markRedraw(),"horizontal"===e?o=l+n:a=f+n)}))}var Oc=Sc;x.curry(Sc,"vertical"),x.curry(Sc,"horizontal");function kc(e,t,n){n=lc(n||0);var r=t.width,i=t.height,o=wr(e.left,r),a=wr(e.top,i),s=wr(e.right,r),u=wr(e.bottom,i),c=wr(e.width,r),l=wr(e.height,i),f=n[2]+n[0],d=n[1]+n[3],p=e.aspect;switch(isNaN(c)&&(c=r-s-d-o),isNaN(l)&&(l=i-u-f-a),null!=p&&(isNaN(c)&&isNaN(l)&&(p>r/i?c=.8*r:l=.8*i),isNaN(c)&&(c=p*l),isNaN(l)&&(l=c/p)),isNaN(o)&&(o=r-s-c-d),isNaN(a)&&(a=i-u-l-f),e.left||e.right){case"center":o=r/2-c/2-n[3];break;case"right":o=r-c-d}switch(e.top||e.bottom){case"middle":case"center":a=i/2-l/2-n[0];break;case"bottom":a=i-l-f}o=o||0,a=a||0,isNaN(c)&&(c=r-d-o-(s||0)),isNaN(l)&&(l=i-f-a-(u||0));var h=new Fe(o+n[3],a+n[0],c,l);return h.margin=n,h}function Ec(e,t,n,r,i,o){var a,s=!i||!i.hv||i.hv[0],u=!i||!i.hv||i.hv[1],c=i&&i.boundingMode||"all";if((o=o||e).x=e.x,o.y=e.y,!s&&!u)return!1;if("raw"===c)a="group"===e.type?new Fe(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(a=e.getBoundingRect(),e.needLocalTransform()){var l=e.getLocalTransform();(a=a.clone()).applyTransform(l)}var f=kc(x.defaults({width:a.width,height:a.height},t),n,r),d=s?f.x-a.x:0,p=u?f.y-a.y:0;return"raw"===c?(o.x=d,o.y=p):(o.x+=d,o.y+=p),o===e&&e.markRedraw(),!0}function jc(e){var t=e.layoutMode||e.constructor.layoutMode;return x.isObject(t)?t:t?{type:t}:null}function Tc(e,t,n){var r=n&&n.ignoreSize;!x.isArray(r)&&(r=[r,r]);var i=a(_c[0],0),o=a(_c[1],1);function a(n,i){var o={},a=0,c={},l=0;if(xc(n,(function(t){c[t]=e[t]})),xc(n,(function(e){s(t,e)&&(o[e]=c[e]=t[e]),u(o,e)&&a++,u(c,e)&&l++})),r[i])return u(t,n[1])?c[n[2]]=null:u(t,n[2])&&(c[n[1]]=null),c;if(2!==l&&a){if(a>=2)return o;for(var f=0;f<n.length;f++){var d=n[f];if(!s(o,d)&&s(e,d)){o[d]=e[d];break}}return o}return c}function s(e,t){return e.hasOwnProperty(t)}function u(e,t){return null!=e[t]&&"auto"!==e[t]}function c(e,t,n){xc(e,(function(e){t[e]=n[e]}))}c(_c[0],e,i),c(_c[1],e,o)}function Cc(e){return Ac({},e)}function Ac(e,t){return t&&e&&xc(wc,(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}var Pc=oi(),Mc=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=Ou("ec_cpt_model"),i}var n;return y(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=jc(this),r=n?Cc(e):{},i=t.getTheme();x.merge(e,i.get(this.mainType)),x.merge(e,this.getDefaultOption()),n&&Tc(e,r,n)},t.prototype.mergeOption=function(e,t){x.merge(this.option,e,!0);var n=jc(this);n&&Tc(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!function(e){return!(!e||!e[mi])}(e))return e.defaultOption;var t=Pc(this);if(!t.defaultOption){for(var n=[],r=e;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var o={},a=n.length-1;a>=0;a--)o=x.merge(o,n[a],!0);t.defaultOption=o}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+"Index",r=e+"Id";return fi(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=((n=t.prototype).type="component",n.id="",n.name="",n.mainType="",n.subType="",void(n.componentIndex=0)),t}(_u);xi(Mc,_u),Oi(Mc),function(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=yi(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var o=yi(n).main;e.hasSubTypes(n)&&t[o]&&(i=t[o](r))}return i}}(Mc),function(e,t){function n(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}e.topologicalTravel=function(e,r,i,o){if(e.length){var a=function(e){var r={},i=[];return x.each(e,(function(o){var a=n(r,o),s=function(e,t){var n=[];return x.each(e,(function(e){x.indexOf(t,e)>=0&&n.push(e)})),n}(a.originalDeps=t(o),e);a.entryCount=s.length,0===a.entryCount&&i.push(o),x.each(s,(function(e){x.indexOf(a.predecessor,e)<0&&a.predecessor.push(e);var t=n(r,e);x.indexOf(t.successor,e)<0&&t.successor.push(o)}))})),{graph:r,noEntryList:i}}(r),s=a.graph,u=a.noEntryList,c={};for(x.each(e,(function(e){c[e]=!0}));u.length;){var l=u.pop(),f=s[l],d=!!c[l];d&&(i.call(o,l,f.originalDeps.slice()),delete c[l]),x.each(f.successor,d?h:p)}x.each(c,(function(){throw new Error("")}))}function p(e){s[e].entryCount--,0===s[e].entryCount&&u.push(e)}function h(e){c[e]=!0,p(e)}}}(Mc,(function(e){var t=[];x.each(Mc.getClassesByMainType(e),(function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])})),t=x.map(t,(function(e){return yi(e).main})),"dataset"!==e&&x.indexOf(t,"dataset")<=0&&t.unshift("dataset");return t}));var Ic=Mc,Rc="";"undefined"!=typeof navigator&&(Rc=navigator.platform||"");var Dc="rgba(0, 0, 0, 0.2)",Lc={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Dc,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Dc,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Dc,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Dc,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Dc,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Dc,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Rc.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},Nc=Object(x.createHashMap)(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Fc="original",Bc="arrayRows",Uc="objectRows",zc="keyedColumns",Vc="typedArray",Hc="unknown",Wc="column",qc="row",Gc={Must:1,Might:2,Not:3},Yc=oi();function Kc(e,t,n){var r={},i=Xc(t);if(!i||!e)return r;var o,a,s=[],u=[],c=t.ecModel,l=Yc(c).datasetMap,f=i.uid+"_"+n.seriesLayoutBy;e=e.slice(),Object(x.each)(e,(function(t,n){var i=Object(x.isObject)(t)?t:e[n]={name:t};"ordinal"===i.type&&null==o&&(o=n,a=h(i)),r[i.name]=[]}));var d=l.get(f)||l.set(f,{categoryWayDim:a,valueWayDim:0});function p(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function h(e){var t=e.dimsDef;return t?t.length:1}return Object(x.each)(e,(function(e,t){var n=e.name,i=h(e);if(null==o){var a=d.valueWayDim;p(r[n],a,i),p(u,a,i),d.valueWayDim+=i}else if(o===t)p(r[n],0,i),p(s,0,i);else{a=d.categoryWayDim;p(r[n],a,i),p(u,a,i),d.categoryWayDim+=i}})),s.length&&(r.itemName=s),u.length&&(r.seriesName=u),r}function $c(e,t,n){var r={};if(!Xc(e))return r;var i,o=t.sourceFormat,a=t.dimensionsDefine;o!==Uc&&o!==zc||Object(x.each)(a,(function(e,t){"name"===(Object(x.isObject)(e)?e.name:e)&&(i=t)}));var s=function(){for(var e={},r={},s=[],u=0,c=Math.min(5,n);u<c;u++){var l=Zc(t.data,o,t.seriesLayoutBy,a,t.startIndex,u);s.push(l);var f=l===Gc.Not;if(f&&null==e.v&&u!==i&&(e.v=u),(null==e.n||e.n===e.v||!f&&s[e.n]===Gc.Not)&&(e.n=u),d(e)&&s[e.n]!==Gc.Not)return e;f||(l===Gc.Might&&null==r.v&&u!==i&&(r.v=u),null!=r.n&&r.n!==r.v||(r.n=u))}function d(e){return null!=e.v&&null!=e.n}return d(e)?e:d(r)?r:null}();if(s){r.value=[s.v];var u=null!=i?i:s.n;r.itemName=[u],r.seriesName=[u]}return r}function Xc(e){if(!e.get("data",!0))return fi(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},ci).models[0]}function Qc(e,t){return Zc(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function Zc(e,t,n,r,i,o){var a,s,u;if(Object(x.isTypedArray)(e))return Gc.Not;if(r){var c=r[o];Object(x.isObject)(c)?(s=c.name,u=c.type):Object(x.isString)(c)&&(s=c)}if(null!=u)return"ordinal"===u?Gc.Must:Gc.Not;if(t===Bc){var l=e;if(n===qc){for(var f=l[o],d=0;d<(f||[]).length&&d<5;d++)if(null!=(a=b(f[i+d])))return a}else for(d=0;d<l.length&&d<5;d++){var p=l[i+d];if(p&&null!=(a=b(p[o])))return a}}else if(t===Uc){var h=e;if(!s)return Gc.Not;for(d=0;d<h.length&&d<5;d++){if((m=h[d])&&null!=(a=b(m[s])))return a}}else if(t===zc){var v=e;if(!s)return Gc.Not;if(!(f=v[s])||Object(x.isTypedArray)(f))return Gc.Not;for(d=0;d<f.length&&d<5;d++)if(null!=(a=b(f[d])))return a}else if(t===Fc){var g=e;for(d=0;d<g.length&&d<5;d++){var m,y=Xr(m=g[d]);if(!Object(x.isArray)(y))return Gc.Not;if(null!=(a=b(y[o])))return a}}function b(e){var t=Object(x.isString)(e);return null!=e&&isFinite(e)&&""!==e?t?Gc.Might:Gc.Not:t&&"-"!==e?Gc.Must:void 0}return Gc.Not}var Jc=Object(x.createHashMap)();var el=oi(),tl=oi(),nl=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=Yr(this.get("color",!0)),i=this.get("colorLayer",!0);return il(this,el,r,i,e,t,n)},e.prototype.clearColorPalette=function(){var e,t;(t=el)(e=this).paletteIdx=0,t(e).paletteNameMap={}},e}();function rl(e,t,n,r){var i=Yr(e.get(["aria","decal","decals"]));return il(e,tl,i,null,t,n,r)}function il(e,t,n,r,i,o,a){var s=t(o=o||e),u=s.paletteIdx||0,c=s.paletteNameMap=s.paletteNameMap||{};if(c.hasOwnProperty(i))return c[i];var l=null!=a&&r?function(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}(r,a):n;if((l=l||n)&&l.length){var f=l[u];return i&&(c[i]=f),s.paletteIdx=(u+1)%l.length,f}}var ol,al,sl;"undefined"!=typeof console&&console.warn&&console.log;function ul(e){0}function cl(e){throw new Error(e)}function ll(e){return(ll="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)}var fl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t.prototype.init=function(e,t,n,r,i,o){r=r||{},this.option=null,this._theme=new _u(r),this._locale=new _u(i),this._optionManager=o},t.prototype.setOption=function(e,t,n){var r=hl(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,hl(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||"recreate"===e){var i=r.mountOption("recreate"===e);0,this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(i,t)):sl(this,i),n=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var o=r.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,t))}if(!e||"recreate"===e||"media"===e){var a=r.getMediaOption(this);a.length&&Object(x.each)(a,(function(e){n=!0,this._mergeOption(e,t)}),this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,o=[],a=Object(x.createHashMap)(),s=t&&t.replaceMergeMainTypeMap;Yc(this).datasetMap=Object(x.createHashMap)(),Object(x.each)(e,(function(e,t){null!=e&&(Ic.hasClass(t)?t&&(o.push(t),a.set(t,!0)):n[t]=null==n[t]?Object(x.clone)(e):Object(x.merge)(n[t],e,!0))})),s&&s.each((function(e,t){Ic.hasClass(t)&&!a.get(t)&&(o.push(t),a.set(t,!0))})),Ic.topologicalTravel(o,Ic.getAllClassMainTypes(),(function(t){var o=function(e,t,n){var r=Jc.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}(this,t,Yr(e[t])),a=r.get(t),u=a?s&&s.get(t)?"replaceMerge":"normalMerge":"replaceAll",c=Zr(a,o,u);(function(e,t,n){Object(x.each)(e,(function(e){var r=e.newOption;Object(x.isObject)(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=function(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}(t,r,e.existing,n))}))})(c,t,Ic),n[t]=null,r.set(t,null),i.set(t,0);var l,f=[],d=[],p=0;Object(x.each)(c,(function(e,n){var r=e.existing,i=e.newOption;if(i){var o="series"===t,a=Ic.getClass(t,e.keyInfo.subType,!o);if(!a)return;if("tooltip"===t){if(l)return void 0;l=!0}if(r&&r.constructor===a)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=Object(x.extend)({componentIndex:n},e.keyInfo);r=new a(i,this,this,s),Object(x.extend)(r,s),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(f.push(r.option),d.push(r),p++):(f.push(void 0),d.push(void 0))}),this),n[t]=f,r.set(t,d),i.set(t,p),"series"===t&&ol(this)}),this),this._seriesIndices||ol(this)},t.prototype.getOption=function(){var e=Object(x.clone)(this.option);return Object(x.each)(e,(function(t,n){if(Ic.hasClass(n)){for(var r=Yr(t),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!ri(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,e[n]=r}})),delete e["\0_ec_inner"],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(null==t)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n,r=e.index,i=e.id,o=e.name,a=this._componentsMap.get(t);return a&&a.length?(null!=r?(n=[],Object(x.each)(Yr(r),(function(e){a[e]&&n.push(a[e])}))):n=null!=i?dl("id",i,a):null!=o?dl("name",o,a):Object(x.filter)(a,(function(e){return!!e})),pl(n,e)):[]},t.prototype.findComponents=function(e){var t,n,r,i,o,a=e.query,s=e.mainType,u=(n=s+"Index",r=s+"Id",i=s+"Name",!(t=a)||null==t[n]&&null==t[r]&&null==t[i]?null:{mainType:s,index:t[n],id:t[r],name:t[i]}),c=u?this.queryComponents(u):Object(x.filter)(this._componentsMap.get(s),(function(e){return!!e}));return o=pl(c,e),e.filter?Object(x.filter)(o,e.filter):o},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(Object(x.isFunction)(e)){var i=t,o=e;r.each((function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&o.call(i,t,r,r.componentIndex)}}))}else for(var a=Object(x.isString)(e)?r.get(e):Object(x.isObject)(e)?this.findComponents(e):null,s=0;a&&s<a.length;s++){var u=a[s];u&&t.call(n,u,u.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=ti(e,null);return Object(x.filter)(this._componentsMap.get("series"),(function(e){return!!e&&null!=t&&e.name===t}))},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return Object(x.filter)(this._componentsMap.get("series"),(function(t){return!!t&&t.subType===e}))},t.prototype.getSeries=function(){return Object(x.filter)(this._componentsMap.get("series"),(function(e){return!!e}))},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,t){al(this),Object(x.each)(this._seriesIndices,(function(n){var r=this._componentsMap.get("series")[n];e.call(t,r,n)}),this)},t.prototype.eachRawSeries=function(e,t){Object(x.each)(this._componentsMap.get("series"),(function(n){n&&e.call(t,n,n.componentIndex)}))},t.prototype.eachSeriesByType=function(e,t,n){al(this),Object(x.each)(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];i.subType===e&&t.call(n,i,r)}),this)},t.prototype.eachRawSeriesByType=function(e,t,n){return Object(x.each)(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return al(this),null==this._seriesIndicesMap.get(e.componentIndex)},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){al(this);var n=[];Object(x.each)(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];e.call(t,i,r)&&n.push(r)}),this),this._seriesIndices=n,this._seriesIndicesMap=Object(x.createHashMap)(n)},t.prototype.restoreData=function(e){ol(this);var t=this._componentsMap,n=[];t.each((function(e,t){Ic.hasClass(t)&&n.push(t)})),Ic.topologicalTravel(n,Ic.getAllClassMainTypes(),(function(n){Object(x.each)(t.get(n),(function(t){!t||"series"===n&&function(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return null!=n&&e.componentIndex!==n||null!=r&&e.id!==r||null!=i&&e.name!==i}}(t,e)||t.restoreData()}))}))},t.internalField=(ol=function(e){var t=e._seriesIndices=[];Object(x.each)(e._componentsMap.get("series"),(function(e){e&&t.push(e.componentIndex)})),e._seriesIndicesMap=Object(x.createHashMap)(t)},al=function(e){},void(sl=function(e,t){e.option={},e.option["\0_ec_inner"]=1,e._componentsMap=Object(x.createHashMap)({series:[]}),e._componentsCount=Object(x.createHashMap)();var n,r,i,o=t.aria;Object(x.isObject)(o)&&null==o.enabled&&(o.enabled=!0),n=t,r=e._theme.option,i=n.color&&!n.colorLayer,Object(x.each)(r,(function(e,t){"colorLayer"===t&&i||Ic.hasClass(t)||("object"===ll(e)?n[t]=n[t]?Object(x.merge)(n[t],e,!1):Object(x.clone)(e):null==n[t]&&(n[t]=e))})),Object(x.merge)(t,Lc,!1),e._mergeOption(t,null)})),t}(_u);function dl(e,t,n){if(Object(x.isArray)(t)){var r=Object(x.createHashMap)();return Object(x.each)(t,(function(e){null!=e&&(null!=ti(e,null)&&r.set(e,!0))})),Object(x.filter)(n,(function(t){return t&&r.get(t[e])}))}var i=ti(t,null);return Object(x.filter)(n,(function(t){return t&&null!=i&&t[e]===i}))}function pl(e,t){return t.hasOwnProperty("subType")?Object(x.filter)(e,(function(e){return e&&e.subType===t.subType})):e}function hl(e){var t=Object(x.createHashMap)();return e&&Object(x.each)(Yr(e.replaceMerge),(function(e){t.set(e,!0)})),{replaceMergeMainTypeMap:t}}Object(x.mixin)(fl,nl);var vl=fl,gl=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],ml=function(e){x.each(gl,(function(t){this[t]=x.bind(e[t],e)}),this)},yl={},bl=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];x.each(yl,(function(r,i){var o=r.create(e,t);n=n.concat(o||[])})),this._coordinateSystems=n},e.prototype.update=function(e,t){x.each(this._coordinateSystems,(function(n){n.update&&n.update(e,t)}))},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){yl[e]=t},e.get=function(e){return yl[e]},e}(),xl=/^(min|max)?(.+)$/;function wl(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return Object(x.each)(e,(function(e,t){var n=t.match(xl);if(n&&n[1]&&n[2]){var o=n[1],a=n[2].toLowerCase();(function(e,t,n){return"min"===n?e>=t:"max"===n?e<=t:e===t})(r[a],e,o)||(i=!1)}})),i}var _l=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(Object(x.each)(Yr(e.series),(function(e){e&&e.data&&Object(x.isTypedArray)(e.data)&&Object(x.setAsPrimitive)(e.data)})),Object(x.each)(Yr(e.dataset),(function(e){e&&e.source&&Object(x.isTypedArray)(e.source)&&Object(x.setAsPrimitive)(e.source)}))),e=Object(x.clone)(e);var r=this._optionBackup,i=function(e,t,n){var r,i,o=[],a=e.baseOption,s=e.timeline,u=e.options,c=e.media,l=!!e.media,f=!!(u||s||a&&a.timeline);a?(i=a).timeline||(i.timeline=s):((f||l)&&(e.options=e.media=null),i=e);l&&Object(x.isArray)(c)&&Object(x.each)(c,(function(e){e&&e.option&&(e.query?o.push(e):r||(r=e))}));function d(e){Object(x.each)(t,(function(t){t(e,n)}))}return d(i),Object(x.each)(u,(function(e){return d(e)})),Object(x.each)(o,(function(e){return d(e.option)})),{baseOption:i,timelineOptions:u||[],mediaDefault:r,mediaList:o}}(e,t,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],Object(x.clone)(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent("timeline");r&&(t=Object(x.clone)(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t,n,r=this._api.getWidth(),i=this._api.getHeight(),o=this._mediaList,a=this._mediaDefault,s=[],u=[];if(!o.length&&!a)return u;for(var c=0,l=o.length;c<l;c++)wl(o[c].query,r,i)&&s.push(c);return!s.length&&a&&(s=[-1]),s.length&&(t=s,n=this._currentMediaIndices,t.join(",")!==n.join(","))&&(u=Object(x.map)(s,(function(e){return Object(x.clone)(-1===e?a.option:o[e].option)}))),this._currentMediaIndices=s,u},e}(),Sl=x.each,Ol=x.isObject,kl=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function El(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=kl.length;n<r;n++){var i=kl[n],o=t.normal,a=t.emphasis;o&&o[i]&&(e[i]=e[i]||{},e[i].normal?x.merge(e[i].normal,o[i]):e[i].normal=o[i],o[i]=null),a&&a[i]&&(e[i]=e[i]||{},e[i].emphasis?x.merge(e[i].emphasis,a[i]):e[i].emphasis=a[i],a[i]=null)}}function jl(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,x.defaults(e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function Tl(e){jl(e,"itemStyle"),jl(e,"lineStyle"),jl(e,"areaStyle"),jl(e,"label"),jl(e,"labelLine"),jl(e,"upperLabel"),jl(e,"edgeLabel")}function Cl(e,t){var n=Ol(e)&&e[t],r=Ol(n)&&n.textStyle;if(r){0;for(var i=0,o=$r.length;i<o;i++){var a=$r[i];r.hasOwnProperty(a)&&(n[a]=r[a])}}}function Al(e){e&&(Tl(e),Cl(e,"label"),e.emphasis&&Cl(e.emphasis,"label"))}function Pl(e){return x.isArray(e)?e:e?[e]:[]}function Ml(e){return(x.isArray(e)?e[0]:e)||{}}function Il(e,t){Sl(Pl(e.series),(function(e){Ol(e)&&function(e){if(Ol(e)){El(e),Tl(e),Cl(e,"label"),Cl(e,"upperLabel"),Cl(e,"edgeLabel"),e.emphasis&&(Cl(e.emphasis,"label"),Cl(e.emphasis,"upperLabel"),Cl(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(El(t),Al(t));var n=e.markLine;n&&(El(n),Al(n));var r=e.markArea;r&&Al(r);var i=e.data;if("graph"===e.type){i=i||e.nodes;var o=e.links||e.edges;if(o&&!x.isTypedArray(o))for(var a=0;a<o.length;a++)Al(o[a]);x.each(e.categories,(function(e){Tl(e)}))}if(i&&!x.isTypedArray(i))for(a=0;a<i.length;a++)Al(i[a]);if((t=e.markPoint)&&t.data){var s=t.data;for(a=0;a<s.length;a++)Al(s[a])}if((n=e.markLine)&&n.data){var u=n.data;for(a=0;a<u.length;a++)x.isArray(u[a])?(Al(u[a][0]),Al(u[a][1])):Al(u[a])}"gauge"===e.type?(Cl(e,"axisLabel"),Cl(e,"title"),Cl(e,"detail")):"treemap"===e.type?(jl(e.breadcrumb,"itemStyle"),x.each(e.levels,(function(e){Tl(e)}))):"tree"===e.type&&Tl(e.leaves)}}(e)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Sl(n,(function(t){Sl(Pl(e[t]),(function(e){e&&(Cl(e,"axisLabel"),Cl(e.axisPointer,"label"))}))})),Sl(Pl(e.parallel),(function(e){var t=e&&e.parallelAxisDefault;Cl(t,"axisLabel"),Cl(t&&t.axisPointer,"label")})),Sl(Pl(e.calendar),(function(e){jl(e,"itemStyle"),Cl(e,"dayLabel"),Cl(e,"monthLabel"),Cl(e,"yearLabel")})),Sl(Pl(e.radar),(function(e){Cl(e,"name"),e.name&&null==e.axisName&&(e.axisName=e.name,delete e.name),null!=e.nameGap&&null==e.axisNameGap&&(e.axisNameGap=e.nameGap,delete e.nameGap)})),Sl(Pl(e.geo),(function(e){Ol(e)&&(Al(e),Sl(Pl(e.regions),(function(e){Al(e)})))})),Sl(Pl(e.timeline),(function(e){Al(e),jl(e,"label"),jl(e,"itemStyle"),jl(e,"controlStyle",!0);var t=e.data;x.isArray(t)&&x.each(t,(function(e){x.isObject(e)&&(jl(e,"label"),jl(e,"itemStyle"))}))})),Sl(Pl(e.toolbox),(function(e){jl(e,"iconStyle"),Sl(e.feature,(function(e){jl(e,"iconStyle")}))})),Cl(Ml(e.axisPointer),"label"),Cl(Ml(e.tooltip).axisPointer,"label")}function Rl(e){return(Rl="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 Dl(e){e&&Object(x.each)(Ll,(function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])}))}var Ll=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Nl=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Fl=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Bl(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<Fl.length;n++){var r=Fl[n][1],i=Fl[n][0];null!=t[r]&&(t[i]=t[r])}}function Ul(e){e&&"edge"===e.alignTo&&null!=e.margin&&null==e.edgeDistance&&(e.edgeDistance=e.margin)}function zl(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function Vl(e,t){Il(e,t),e.series=Yr(e.series),Object(x.each)(e.series,(function(e){if(Object(x.isObject)(e)){var t=e.type;if("line"===t)null!=e.clipOverflow&&(e.clip=e.clipOverflow);else if("pie"===t||"gauge"===t){if(null!=e.clockWise&&(e.clockwise=e.clockWise),Ul(e.label),(i=e.data)&&!Object(x.isTypedArray)(i))for(var n=0;n<i.length;n++)Ul(i[n]);null!=e.hoverOffset&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if("gauge"===t){var r=function(e,t){for(var n=t.split(","),r=e,i=0;i<n.length&&null!=(r=r&&r[n[i]]);i++);return r}(e,"pointer.color");null!=r&&function(e,t,n,r){for(var i,o=t.split(","),a=e,s=0;s<o.length-1;s++)null==a[i=o[s]]&&(a[i]={}),a=a[i];(r||null==a[o[s]])&&(a[o[s]]=n)}(e,"itemStyle.color",r)}else if("bar"===t){var i;if(Bl(e),Bl(e.backgroundStyle),Bl(e.emphasis),(i=e.data)&&!Object(x.isTypedArray)(i))for(n=0;n<i.length;n++)"object"===Rl(i[n])&&(Bl(i[n]),Bl(i[n]&&i[n].emphasis))}else if("sunburst"===t){var o=e.highlightPolicy;o&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=o)),zl(e),function e(t,n){if(t)for(var r=0;r<t.length;r++)n(t[r]),t[r]&&e(t[r].children,n)}(e.data,zl)}else"graph"===t||"sankey"===t?function(e){e&&null!=e.focusNodeAdjacency&&(e.emphasis=e.emphasis||{},null==e.emphasis.focus&&(e.emphasis.focus="adjacency"))}(e):"map"===t&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&Object(x.defaults)(e,e.mapLocation));null!=e.hoverAnimation&&(e.emphasis=e.emphasis||{},e.emphasis&&null==e.emphasis.scale&&(e.emphasis.scale=e.hoverAnimation)),Dl(e)}})),e.dataRange&&(e.visualMap=e.dataRange),Object(x.each)(Nl,(function(t){var n=e[t];n&&(Object(x.isArray)(n)||(n=[n]),Object(x.each)(n,(function(e){Dl(e)})))}))}function Hl(e){Object(x.each)(e,(function(t,n){var r=[],i=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,u=t.seriesModel.get("stackStrategy")||"samesign";a.modify(o,(function(o,c,l){var f,d,p=a.get(t.stackedDimension,l);if(isNaN(p))return i;s?d=a.getRawIndex(l):f=a.get(t.stackedByDimension,l);for(var h=NaN,v=n-1;v>=0;v--){var g=e[v];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,f)),d>=0){var m=g.data.getByRawIndex(g.stackResultDimension,d);if("all"===u||"positive"===u&&m>0||"negative"===u&&m<0||"samesign"===u&&p>=0&&m>0||"samesign"===u&&p<=0&&m<0){p=Cr(p,m),h=m;break}}}return r[0]=p,r[1]=h,r}))}))}var Wl,ql,Gl,Yl,Kl,$l=function(e){this.data=e.data||(e.sourceFormat===zc?{}:[]),this.sourceFormat=e.sourceFormat||Hc,this.seriesLayoutBy=e.seriesLayoutBy||Wc,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var r=t[n];null==r.type&&Qc(this,n)===Gc.Must&&(r.type="ordinal")}};function Xl(e){return e instanceof $l}function Ql(e,t,n){n=n||Jl(e);var r=t.seriesLayoutBy,i=function(e,t,n,r,i){var o,a;if(!e)return{dimensionsDefine:ef(i),startIndex:a,dimensionsDetectedCount:o};if(t===Bc){var s=e;"auto"===r||null==r?tf((function(e){null!=e&&"-"!==e&&(Object(x.isString)(e)?null==a&&(a=1):a=0)}),n,s,10):a=Object(x.isNumber)(r)?r:r?1:0,i||1!==a||(i=[],tf((function(e,t){i[t]=null!=e?e+"":""}),n,s,1/0)),o=i?i.length:n===qc?s.length:s[0]?s[0].length:null}else if(t===Uc)i||(i=function(e){var t,n=0;for(;n<e.length&&!(t=e[n++]););if(t){var r=[];return Object(x.each)(t,(function(e,t){r.push(t)})),r}}(e));else if(t===zc)i||(i=[],Object(x.each)(e,(function(e,t){i.push(t)})));else if(t===Fc){var u=Xr(e[0]);o=Object(x.isArray)(u)&&u.length||1}return{startIndex:a,dimensionsDefine:ef(i),dimensionsDetectedCount:o}}(e,n,r,t.sourceHeader,t.dimensions);return new $l({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:Object(x.clone)(t)})}function Zl(e){return new $l({data:e,sourceFormat:Object(x.isTypedArray)(e)?Vc:Fc})}function Jl(e){var t=Hc;if(Object(x.isTypedArray)(e))t=Vc;else if(Object(x.isArray)(e)){0===e.length&&(t=Bc);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(null!=i){if(Object(x.isArray)(i)){t=Bc;break}if(Object(x.isObject)(i)){t=Uc;break}}}}else if(Object(x.isObject)(e))for(var o in e)if(Object(x.hasOwn)(e,o)&&Object(x.isArrayLike)(e[o])){t=zc;break}return t}function ef(e){if(e){var t=Object(x.createHashMap)();return Object(x.map)(e,(function(e,n){var r={name:(e=Object(x.isObject)(e)?e:{name:e}).name,displayName:e.displayName,type:e.type};if(null==r.name)return r;r.name+="",null==r.displayName&&(r.displayName=r.name);var i=t.get(r.name);return i?r.name+="-"+i.count++:t.set(r.name,{count:1}),r}))}}function tf(e,t,n,r){if(t===qc)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else{var o=n[0]||[];for(i=0;i<o.length&&i<r;i++)e(o[i],i)}}function nf(e){var t=e.sourceFormat;return t===Uc||t===zc}var rf=function(){function e(e,t){var n=Xl(e)?e:Zl(e);this._source=n;var r=this._data=n.data;n.sourceFormat===Vc&&(this._offset=0,this._dimSize=t,this._data=r),Kl(this,r,n)}var t;return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=((t=e.prototype).pure=!1,void(t.persistent=!0)),e.internalField=function(){var e;Kl=function(e,i,o){var a=o.sourceFormat,s=o.seriesLayoutBy,u=o.startIndex,c=o.dimensionsDefine,l=Yl[hf(a,s)];if(Object(x.extend)(e,l),a===Vc)e.getItem=t,e.count=r,e.fillStorage=n;else{var f=sf(a,s);e.getItem=Object(x.bind)(f,null,i,u,c);var d=lf(a,s);e.count=Object(x.bind)(d,null,i,u,c)}};var t=function(e,t){e-=this._offset,t=t||[];for(var n=this._data,r=this._dimSize,i=r*e,o=0;o<r;o++)t[o]=n[i+o];return t},n=function(e,t,n,r){for(var i=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=r[a],u=null==s[0]?1/0:s[0],c=null==s[1]?-1/0:s[1],l=t-e,f=n[a],d=0;d<l;d++){var p=i[d*o+a];f[e+d]=p,p<u&&(u=p),p>c&&(c=p)}s[0]=u,s[1]=c}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}(e={})[Bc+"_"+Wc]={pure:!0,appendData:i},e[Bc+"_"+qc]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Uc]={pure:!0,appendData:i},e[zc]={pure:!0,appendData:function(e){var t=this._data;Object(x.each)(e,(function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])}))}},e[Fc]={appendData:i},e[Vc]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},Yl=e}(),e}(),of=function(e,t,n,r){return e[r]},af=((Wl={})[Bc+"_"+Wc]=function(e,t,n,r){return e[r+t]},Wl[Bc+"_"+qc]=function(e,t,n,r,i){r+=t;for(var o=i||[],a=e,s=0;s<a.length;s++){var u=a[s];o[s]=u?u[r]:null}return o},Wl[Uc]=of,Wl[zc]=function(e,t,n,r,i){for(var o=i||[],a=0;a<n.length;a++){0;var s=e[n[a].name];o[a]=s?s[r]:null}return o},Wl[Fc]=of,Wl);function sf(e,t){return af[hf(e,t)]}var uf=function(e,t,n){return e.length},cf=((ql={})[Bc+"_"+Wc]=function(e,t,n){return Math.max(0,e.length-t)},ql[Bc+"_"+qc]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},ql[Uc]=uf,ql[zc]=function(e,t,n){var r=e[n[0].name];return r?r.length:0},ql[Fc]=uf,ql);function lf(e,t){return cf[hf(e,t)]}var ff=function(e,t,n){return e[t]},df=((Gl={})[Bc]=ff,Gl[Uc]=function(e,t,n){return e[n]},Gl[zc]=ff,Gl[Fc]=function(e,t,n){var r=Xr(e);return r instanceof Array?r[t]:r},Gl[Vc]=ff,Gl);function pf(e){return df[e]}function hf(e,t){return e===Bc?e+"_"+t:e}function vf(e,t,n){if(e){var r=e.getRawDataItem(t);if(null!=r){var i=e.getStore(),o=i.getSource().sourceFormat;if(null!=n){var a=e.getDimensionIndex(n),s=i.getDimensionProperty(a);return pf(o)(r,a,s)}var u=r;return o===Fc&&(u=Xr(r)),u}}}var gf=/\{@(.+?)\}/g,mf=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),o=n.getName(e),a=n.getRawDataItem(e),s=n.getItemVisual(e,"style"),u=s&&s[n.getItemVisual(e,"drawType")||"fill"],c=s&&s.stroke,l=this.mainType,f="series"===l,d=n.userOutput&&n.userOutput.get();return{componentType:l,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:f?this.subType:null,seriesIndex:this.seriesIndex,seriesId:f?this.id:null,seriesName:f?this.name:null,name:o,dataIndex:i,data:a,dataType:t,value:r,color:u,borderColor:c,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,o){t=t||"normal";var a=this.getData(n),s=this.getDataParams(e,n);(o&&(s.value=o.interpolatedValue),null!=r&&x.isArray(s.value)&&(s.value=s.value[r]),i)||(i=a.getItemModel(e).get("normal"===t?["label","formatter"]:[t,"label","formatter"]));return x.isFunction(i)?(s.status=t,s.dimensionIndex=r,i(s)):x.isString(i)?hc(i,s).replace(gf,(function(t,n){var r=n.length,i=n;"["===i.charAt(0)&&"]"===i.charAt(r-1)&&(i=+i.slice(1,r-1));var s=vf(a,e,i);if(o&&x.isArray(o.interpolatedValue)){var u=a.getDimensionIndex(i);u>=0&&(s=o.interpolatedValue[u])}return null!=s?s+"":""})):void 0},e.prototype.getRawValue=function(e,t){return vf(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function yf(e){var t,n;return x.isObject(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function bf(e){return new xf(e)}var xf=function(){function e(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t,n=this._upstream,r=e&&e.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(t=this._plan(this.context));var o,a=l(this._modBy),s=this._modDataCount||0,u=l(e&&e.modBy),c=e&&e.modDataCount||0;function l(e){return!(e>=1)&&(e=1),e}a===u&&s===c||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,o=this._doReset(r)),this._modBy=u,this._modDataCount=c;var f=e&&e.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,p=Math.min(null!=f?this._dueIndex+f:1/0,this._dueEnd);if(!r&&(o||d<p)){var h=this._progress;if(Object(x.isArray)(h))for(var v=0;v<h.length;v++)this._doProgress(h[v],d,p,u,c);else this._doProgress(h,d,p,u,c)}this._dueIndex=p;var g=null!=this._settedOutputEnd?this._settedOutputEnd:p;0,this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,r,i){wf.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:wf.next},this.context)},e.prototype._doReset=function(e){var t,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!e&&this._reset&&((t=this._reset(this.context))&&t.progress&&(n=t.forceFirstProgress,t=t.progress),Object(x.isArray)(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),wf=function(){var e,t,n,r,i,o={reset:function(u,c,l,f){t=u,e=c,n=l,r=f,i=Math.ceil(r/n),o.next=n>1&&r>0?s:a}};return o;function a(){return t<e?t++:null}function s(){var o=t%i*n+Math.ceil(t/i),a=t>=e?null:o<r?o:t;return t++,a}}();function _f(e){return(_f="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 Sf(e,t){var n=t&&t.type;return"ordinal"===n?e:("time"!==n||Object(x.isNumber)(e)||null==e||"-"===e||(e=+Rr(e)),null==e||""===e?NaN:+e)}var Of=Object(x.createHashMap)({number:function(e){return parseFloat(e)},time:function(e){return+Rr(e)},trim:function(e){return Object(x.isString)(e)?Object(x.trim)(e):e}});function kf(e){return Of.get(e)}var Ef={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},jf=function(){function e(e,t){if(!Object(x.isNumber)(t)){0,cl("")}this._opFn=Ef[e],this._rvalFloat=Ur(t)}return e.prototype.evaluate=function(e){return Object(x.isNumber)(e)?this._opFn(e,this._rvalFloat):this._opFn(Ur(e),this._rvalFloat)},e}(),Tf=function(){function e(e,t){var n="desc"===e;this._resultLT=n?1:-1,null==t&&(t=n?"min":"max"),this._incomparable="min"===t?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=Object(x.isNumber)(e)?e:Ur(e),r=Object(x.isNumber)(t)?t:Ur(t),i=isNaN(n),o=isNaN(r);if(i&&(n=this._incomparable),o&&(r=this._incomparable),i&&o){var a=Object(x.isString)(e),s=Object(x.isString)(t);a&&(n=s?e:0),s&&(r=a?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},e}(),Cf=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=_f(t),this._rvalFloat=Ur(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=_f(e);n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(t=Ur(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function Af(e,t){return"eq"===e||"ne"===e?new Cf("eq"===e,t):Object(x.hasOwn)(Ef,e)?new jf(e,t):null}var Pf=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(e){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return Sf(e,t)},e}();function Mf(e){if(!Ff(e.sourceFormat)){0,cl("")}return e.data}function If(e){var t=e.sourceFormat,n=e.data;if(!Ff(t)){0,cl("")}if(t===Bc){for(var r=[],i=0,o=n.length;i<o;i++)r.push(n[i].slice());return r}if(t===Uc){for(r=[],i=0,o=n.length;i<o;i++)r.push(Object(x.extend)({},n[i]));return r}}function Rf(e,t,n){if(null!=n)return Object(x.isNumber)(n)||!isNaN(n)&&!Object(x.hasOwn)(t,n)?e[n]:Object(x.hasOwn)(t,n)?t[n]:void 0}function Df(e){return Object(x.clone)(e)}var Lf=Object(x.createHashMap)();function Nf(e,t,n,r){t.length||cl(""),Object(x.isObject)(e)||cl("");var i=e.type,o=Lf.get(i);o||cl("");var a=Object(x.map)(t,(function(e){return function(e,t){var n=new Pf,r=e.data,i=n.sourceFormat=e.sourceFormat,o=e.startIndex;e.seriesLayoutBy!==Wc&&cl("");var a=[],s={},u=e.dimensionsDefine;if(u)Object(x.each)(u,(function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};if(a.push(r),null!=n){Object(x.hasOwn)(s,n)&&cl(""),s[n]=r}}));else for(var c=0;c<e.dimensionsDetectedCount;c++)a.push({index:c});var l=sf(i,Wc);t.__isBuiltIn&&(n.getRawDataItem=function(e){return l(r,o,a,e)},n.getRawData=Object(x.bind)(Mf,null,e)),n.cloneRawData=Object(x.bind)(If,null,e);var f=lf(i,Wc);n.count=Object(x.bind)(f,null,r,o,a);var d=pf(i);n.retrieveValue=function(e,t){var n=l(r,o,a,e);return p(n,t)};var p=n.retrieveValueFromItem=function(e,t){if(null!=e){var n=a[t];return n?d(e,t,n.name):void 0}};return n.getDimensionInfo=Object(x.bind)(Rf,null,a,s),n.cloneAllDimensionInfo=Object(x.bind)(Df,null,a),n}(e,o)})),s=Yr(o.transform({upstream:a[0],upstreamList:a,config:Object(x.clone)(e.config)}));return Object(x.map)(s,(function(e,n){var r;Object(x.isObject)(e)||cl(""),e.data||cl(""),Ff(Jl(e.data))||cl("");var i=t[0];if(i&&0===n&&!e.dimensions){var o=i.startIndex;o&&(e.data=i.data.slice(0,o).concat(e.data)),r={seriesLayoutBy:Wc,sourceHeader:o,dimensions:i.metaRawOption.dimensions}}else r={seriesLayoutBy:Wc,sourceHeader:0,dimensions:e.dimensions};return Ql(e.data,r,null)}))}function Ff(e){return e===Bc||e===Uc}function Bf(e){return(Bf="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)}var Uf,zf="undefined"===("undefined"==typeof Uint32Array?"undefined":Bf(Uint32Array))?Array:Uint32Array,Vf="undefined"===("undefined"==typeof Uint16Array?"undefined":Bf(Uint16Array))?Array:Uint16Array,Hf="undefined"===("undefined"==typeof Int32Array?"undefined":Bf(Int32Array))?Array:Int32Array,Wf="undefined"===("undefined"==typeof Float64Array?"undefined":Bf(Float64Array))?Array:Float64Array,qf={float:Wf,int:Hf,ordinal:Array,number:Array,time:Wf};function Gf(e){return e>65535?zf:Vf}function Yf(e,t,n,r,i){var o=qf[n||"float"];if(i){var a=e[t],s=a&&a.length;if(s!==r){for(var u=new o(r),c=0;c<s;c++)u[c]=a[c];e[t]=u}}else e[t]=new o(r)}var Kf=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Object(x.createHashMap)()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=Uf[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[];nf(r);this._dimensions=Object(x.map)(t,(function(e){return{type:e.type,property:e.property}})),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(e);if(null!=i){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new qf[t||"float"](this._rawCount),this._rawExtent[i]=[1/0,-1/0],i},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,o=r.ordinalOffset||0,a=n.length;0===o&&(i[e]=[1/0,-1/0]);for(var s=i[e],u=o;u<a;u++){var c=n[u]=t.parseAndCollect(n[u]);isNaN(c)||(s[0]=Math.min(c,s[0]),s[1]=Math.max(c,s[1]))}r.ordinalMeta=t,r.ordinalOffset=a,r.type="ordinal"},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,i=r.length,o=this._rawExtent,a=this.count(),s=a+Math.max(e.length,t||0),u=0;u<i;u++){Yf(n,u,(p=r[u]).type,s,!0)}for(var c=[],l=a;l<s;l++)for(var f=l-a,d=0;d<i;d++){var p=r[d],h=Uf.arrayRows.call(this,e[f]||c,p.property,f,d);n[d][l]=h;var v=o[d];h<v[0]&&(v[0]=h),h>v[1]&&(v[1]=h)}return this._rawCount=this._count=s,{start:a,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,u=Object(x.map)(o,(function(e){return e.property})),c=0;c<a;c++){var l=o[c];s[c]||(s[c]=[1/0,-1/0]),Yf(i,c,l.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,s);else for(var f=[],d=e;d<t;d++){f=r.getItem(d,f);for(var p=0;p<a;p++){var h=i[p],v=this._dimValueGetter(f,u[p],d,p);h[d]=v;var g=s[p];v<g[0]&&(g[0]=v),v>g[1]&&(g[1]=v)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],r=[];if(null==t){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;i=0;for(var o=r.length;i<o;i++)n.push(this.get(r[i],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=0;if(this._chunks[e])for(var n=0,r=this.count();n<r;n++){var i=this.get(e,n);isNaN(i)||(t+=i)}return t},e.prototype.getMedian=function(e){var t=[];this.each([e],(function(e){isNaN(e)||t.push(e)}));var n=t.sort((function(e,t){return e-t})),r=this.count();return 0===r?0:r%2==1?n[(r-1)/2]:(n[r/2]+n[r/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&n<this._count&&n===e)return e;for(var r=0,i=this._count-1;r<=i;){var o=(r+i)/2|0;if(t[o]<e)r=o+1;else{if(!(t[o]>e))return o;i=o-1}}return-1},e.prototype.indicesOfNearest=function(e,t,n){var r=this._chunks[e],i=[];if(!r)return i;null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,u=0,c=this.count();u<c;u++){var l=t-r[this.getRawIndex(u)],f=Math.abs(l);f<=n&&((f<o||f===o&&l>=0&&a<0)&&(o=f,a=l,s=0),l===a&&(i[s++]=u))}return i.length=s,i},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else{e=new(n=Gf(this._rawCount))(this.count());for(i=0;i<e.length;i++)e[i]=i}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(Gf(n._rawCount))(r),o=[],a=e.length,s=0,u=e[0],c=n._chunks,l=0;l<r;l++){var f=void 0,d=n.getRawIndex(l);if(0===a)f=t(l);else if(1===a){f=t(c[u][d],l)}else{for(var p=0;p<a;p++)o[p]=c[e[p]][d];o[p]=l,f=t.apply(null,o)}f&&(i[s++]=d)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=Object(x.keys)(e),i=r.length;if(!i)return this;var o=t.count(),a=new(Gf(t._rawCount))(o),s=0,u=r[0],c=e[u][0],l=e[u][1],f=t._chunks,d=!1;if(!t._indices){var p=0;if(1===i){for(var h=f[r[0]],v=0;v<n;v++){((b=h[v])>=c&&b<=l||isNaN(b))&&(a[s++]=p),p++}d=!0}else if(2===i){h=f[r[0]];var g=f[r[1]],m=e[r[1]][0],y=e[r[1]][1];for(v=0;v<n;v++){var b=h[v],w=g[v];(b>=c&&b<=l||isNaN(b))&&(w>=m&&w<=y||isNaN(w))&&(a[s++]=p),p++}d=!0}}if(!d)if(1===i)for(v=0;v<o;v++){var _=t.getRawIndex(v);((b=f[r[0]][_])>=c&&b<=l||isNaN(b))&&(a[s++]=_)}else for(v=0;v<o;v++){for(var S=!0,O=(_=t.getRawIndex(v),0);O<i;O++){var k=r[O];((b=f[k][_])<e[k][0]||b>e[k][1])&&(S=!1)}S&&(a[s++]=t.getRawIndex(v))}return s<o&&(t._indices=a),t._count=s,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,i=[],o=t.length,a=e.count(),s=[],u=e._rawExtent,c=0;c<t.length;c++)u[t[c]]=[1/0,-1/0];for(var l=0;l<a;l++){for(var f=e.getRawIndex(l),d=0;d<o;d++)s[d]=r[t[d]][f];s[o]=l;var p=n&&n.apply(null,s);if(null!=p){"object"!==Bf(p)&&(i[0]=p,p=i);for(c=0;c<p.length;c++){var h=t[c],v=p[c],g=u[h],m=r[h];m&&(m[f]=v),v<g[0]&&(g[0]=v),v>g[1]&&(g[1]=v)}}}},e.prototype.lttbDownSample=function(e,t){var n,r,i,o=this.clone([e],!0),a=o._chunks[e],s=this.count(),u=0,c=Math.floor(1/t),l=this.getRawIndex(0),f=new(Gf(this._rawCount))(Math.min(2*(Math.ceil(s/c)+2),s));f[u++]=l;for(var d=1;d<s-1;d+=c){for(var p=Math.min(d+c,s-1),h=Math.min(d+2*c,s),v=(h+p)/2,g=0,m=p;m<h;m++){var y=a[k=this.getRawIndex(m)];isNaN(y)||(g+=y)}g/=h-p;var b=d,x=Math.min(d+c,s),w=d-1,_=a[l];n=-1,i=b;var S=-1,O=0;for(m=b;m<x;m++){var k;y=a[k=this.getRawIndex(m)];isNaN(y)?(O++,S<0&&(S=k)):(r=Math.abs((w-v)*(y-_)-(w-m)*(g-_)))>n&&(n=r,i=k)}O>0&&O<x-b&&(f[u++]=Math.min(S,i),i=Math.max(S,i)),f[u++]=i,l=i}return f[u++]=this.getRawIndex(s-1),o._count=u,o._indices=f,o.getRawIndex=this._getRawIdx,o},e.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),o=i._chunks,a=[],s=Math.floor(1/t),u=o[e],c=this.count(),l=i._rawExtent[e]=[1/0,-1/0],f=new(Gf(this._rawCount))(Math.ceil(c/s)),d=0,p=0;p<c;p+=s){s>c-p&&(s=c-p,a.length=s);for(var h=0;h<s;h++){var v=this.getRawIndex(p+h);a[h]=u[v]}var g=n(a),m=this.getRawIndex(Math.min(p+r(a,g)||0,c-1));u[m]=g,g<l[0]&&(l[0]=g),g>l[1]&&(l[1]=g),f[d++]=m}return i._count=d,i._indices=f,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,o=this.count();i<o;i++){var a=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(r[e[0]][a],i);break;case 2:t(r[e[0]][a],r[e[1]][a],i);break;default:for(var s=0,u=[];s<n;s++)u[s]=r[e[s]][a];u[s]=i,t.apply(null,u)}}},e.prototype.getDataExtent=function(e){var t=this._chunks[e],n=[1/0,-1/0];if(!t)return n;var r,i=this.count();if(!this._indices)return this._rawExtent[e].slice();if(r=this._extent[e])return r.slice();for(var o=(r=n)[0],a=r[1],s=0;s<i;s++){var u=t[this.getRawIndex(s)];u<o&&(o=u),u>a&&(a=u)}return r=[o,a],this._extent[e]=r,r},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][t]);return n},e.prototype.clone=function(t,n){var r,i,o=new e,a=this._chunks,s=t&&Object(x.reduce)(t,(function(e,t){return e[t]=!0,e}),{});if(s)for(var u=0;u<a.length;u++)o._chunks[u]=s[u]?(r=a[u],i=void 0,(i=r.constructor)===Array?r.slice():new i(r)):a[u];else o._chunks=a;return this._copyCommonProps(o),n||(o._indices=this._cloneIndices()),o._updateGetRawIdx(),o},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=Object(x.clone)(this._extent),e._rawExtent=Object(x.clone)(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var r=0;r<n;r++)t[r]=this._indices[r]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return Sf(e[r],this._dimensions[r])}Uf={arrayRows:e,objectRows:function(e,t,n,r){return Sf(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(null==e.value?e:e.value);return Sf(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),$f=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e,t,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(Qf(n)){var o=n,a=void 0,s=void 0,u=void 0;if(i){var c=r[0];c.prepareSource(),a=(u=c.getSource()).data,s=u.sourceFormat,t=[c._getVersionSign()]}else a=o.get("data",!0),s=Object(x.isTypedArray)(a)?Vc:Fc,t=[];var l=this._getSourceMetaRawOption()||{},f=u&&u.metaRawOption||{},d=Object(x.retrieve2)(l.seriesLayoutBy,f.seriesLayoutBy)||null,p=Object(x.retrieve2)(l.sourceHeader,f.sourceHeader),h=Object(x.retrieve2)(l.dimensions,f.dimensions);e=d!==f.seriesLayoutBy||!!p!=!!f.sourceHeader||h?[Ql(a,{seriesLayoutBy:d,sourceHeader:p,dimensions:h},s)]:[]}else{var v=n;if(i){var g=this._applyTransform(r);e=g.sourceList,t=g.upstreamSignList}else{e=[Ql(v.get("source",!0),this._getSourceMetaRawOption(),null)],t=[]}}this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if(null!=i){1!==e.length&&Zf("")}var o,a=[],s=[];return Object(x.each)(e,(function(e){e.prepareSource();var t=e.getSource(i||0);null==i||t||Zf(""),a.push(t),s.push(e._getVersionSign())})),r?t=function(e,t,n){var r=Yr(e),i=r.length;i||cl("");for(var o=0,a=i;o<a;o++){t=Nf(r[o],t,n,1===i?null:o),o!==a-1&&(t.length=Math.max(t.length,1))}return t}(r,a,{datasetIndex:n.componentIndex}):null!=i&&(t=[(o=a[0],new $l({data:o.data,sourceFormat:o.sourceFormat,seriesLayoutBy:o.seriesLayoutBy,dimensionsDefine:Object(x.clone)(o.dimensionsDefine),startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount}))]),{sourceList:t,upstreamSignList:s}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var r=this._storeList,i=r[0];i||(i=r[0]={});var o=i[n];if(!o){var a=this._getUpstreamSourceManagers()[0];Qf(this._sourceHost)&&a?o=a._innerGetDataStore(e,t,n):(o=new Kf).initData(new rf(t,e.length),e),i[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Qf(e)){var t=Xc(e);return t?[t.getSourceManager()]:[]}return Object(x.map)(function(e){return e.get("transform",!0)||e.get("fromTransformResult",!0)?fi(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},ci).models:[]}(e),(function(e){return e.getSourceManager()}))},e.prototype._getSourceMetaRawOption=function(){var e,t,n,r=this._sourceHost;if(Qf(r))e=r.get("seriesLayoutBy",!0),t=r.get("sourceHeader",!0),n=r.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=r;e=i.get("seriesLayoutBy",!0),t=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:t,dimensions:n}},e}();function Xf(e){e.option.transform&&Object(x.setAsPrimitive)(e.option.transform)}function Qf(e){return"series"===e.mainType}function Zf(e){throw new Error(e)}var Jf="line-height:1";function ed(e,t){var n=e.color||"#6e7079",r=e.fontSize||12,i=e.fontWeight||"400",o=e.color||"#464646",a=e.fontSize||14,s=e.fontWeight||"900";return"html"===t?{nameStyle:"font-size:"+ae(r+"")+"px;color:"+ae(n)+";font-weight:"+ae(i+""),valueStyle:"font-size:"+ae(a+"")+"px;color:"+ae(o)+";font-weight:"+ae(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var td=[0,10,20,30],nd=["","\n","\n\n","\n\n\n"];function rd(e,t){return t.type=e,t}function id(e){return"section"===e.type}function od(e){return id(e)?ad:sd}function ad(e,t,n,r){var i,o=t.noHeader,a=(i=function e(t){if(id(t)){var n=0,r=t.blocks.length,i=r>1||r>0&&!t.noHeader;return Object(x.each)(t.blocks,(function(t){var r=e(t);r>=n&&(n=r+ +(i&&(!r||id(t)&&!t.noHeader)))})),n}return 0}(t),{html:td[i],richText:nd[i]}),s=[],u=t.blocks||[];Object(x.assert)(!u||Object(x.isArray)(u)),u=u||[];var c=e.orderMode;if(t.sortBlocks&&c){u=u.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(Object(x.hasOwn)(l,c)){var f=new Tf(l[c],null);u.sort((function(e,t){return f.evaluate(e.sortParam,t.sortParam)}))}else"seriesDesc"===c&&u.reverse()}Object(x.each)(u,(function(n,i){var o=t.valueFormatter,u=od(n)(o?Object(x.extend)(Object(x.extend)({},e),{valueFormatter:o}):e,n,i>0?a.html:0,r);null!=u&&s.push(u)}));var d="richText"===e.renderMode?s.join(a.richText):cd(s.join(""),o?n:a.html);if(o)return d;var p=fc(t.header,"ordinal",e.useUTC),h=ed(r,e.renderMode).nameStyle;return"richText"===e.renderMode?ld(e,p,h)+a.richText+d:cd('<div style="'+h+";"+Jf+';">'+ae(p)+"</div>"+d,n)}function sd(e,t,n,r){var i=e.renderMode,o=t.noName,a=t.noValue,s=!t.markerType,u=t.name,c=e.useUTC,l=t.valueFormatter||e.valueFormatter||function(e){return e=Object(x.isArray)(e)?e:[e],Object(x.map)(e,(function(e,t){return fc(e,Object(x.isArray)(p)?p[t]:p,c)}))};if(!o||!a){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),d=o?"":fc(u,"ordinal",c),p=t.valueType,h=a?[]:l(t.value),v=!s||!o,g=!s&&o,m=ed(r,i),y=m.nameStyle,b=m.valueStyle;return"richText"===i?(s?"":f)+(o?"":ld(e,d,y))+(a?"":function(e,t,n,r,i){var o=[i],a=r?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Object(x.isArray)(t)?t.join(" "):t,o)}(e,h,v,g,b)):cd((s?"":f)+(o?"":function(e,t,n){return'<span style="'+n+";"+(t?"margin-left:2px":"")+'">'+ae(e)+"</span>"}(d,!s,y))+(a?"":function(e,t,n,r){var i=n?"10px":"20px",o=t?"float:right;margin-left:"+i:"";return e=Object(x.isArray)(e)?e:[e],'<span style="'+o+";"+r+'">'+Object(x.map)(e,(function(e){return ae(e)})).join(" ")+"</span>"}(h,v,g,b)),n)}}function ud(e,t,n,r,i,o){if(e)return od(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,o)}function cd(e,t){return'<div style="'+("margin: "+t+"px 0 0")+";"+Jf+';">'+e+'<div style="clear:both"></div></div>'}function ld(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function fd(e,t){return yc(e.getData().getItemVisual(t,"style")[e.visualDrawType])}function dd(e,t){var n=e.get("padding");return null!=n?n:"richText"===t?[8,10]:10}var pd=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Vr()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r="richText"===n?this._generateStyleName():null,i=vc({color:t,type:e,renderMode:n,markerId:r});return Object(x.isString)(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};Object(x.isArray)(t)?Object(x.each)(t,(function(e){return Object(x.extend)(n,e)})):Object(x.extend)(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+e+"}"},e}();function hd(e){var t,n,r,i,o=e.series,a=e.dataIndex,s=e.multipleSeries,u=o.getData(),c=u.mapDimensionsAll("defaultedTooltip"),l=c.length,f=o.getRawValue(a),d=Object(x.isArray)(f),p=fd(o,a);if(l>1||d&&!l){var h=function(e,t,n,r,i){var o=t.getData(),a=Object(x.reduce)(e,(function(e,t,n){var r=o.getDimensionInfo(n);return e||r&&!1!==r.tooltip&&null!=r.displayName}),!1),s=[],u=[],c=[];function l(e,t){var n=o.getDimensionInfo(t);n&&!1!==n.otherDims.tooltip&&(a?c.push(rd("nameValue",{markerType:"subItem",markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),u.push(n.type)))}return r.length?Object(x.each)(r,(function(e){l(vf(o,n,e),e)})):Object(x.each)(e,l),{inlineValues:s,inlineValueTypes:u,blocks:c}}(f,o,a,c,p);t=h.inlineValues,n=h.inlineValueTypes,r=h.blocks,i=h.inlineValues[0]}else if(l){var v=u.getDimensionInfo(c[0]);i=t=vf(u,a,c[0]),n=v.type}else i=t=d?f[0]:f;var g=ni(o),m=g&&o.name||"",y=u.getName(a),b=s?m:y;return rd("section",{header:m,noHeader:s||!g,sortParam:i,blocks:[rd("nameValue",{markerType:"item",markerColor:p,name:b,noName:!Object(x.trim)(b),value:t,valueType:n})].concat(r||[])})}var vd=oi();function gd(e,t){return e.getName(t)||e.getId(t)}var md="__universalTransitionEnabled",yd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}var n;return y(t,e),t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=bf({count:xd,reset:wd}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(vd(this).sourceManager=new $f(this)).prepareSource();var r=this.getInitialData(e,n);Sd(r,this),this.dataTask.context.data=r,vd(this).dataBeforeProcessed=r,bd(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=jc(this),r=n?Cc(e):{},i=this.subType;Ic.hasClass(i)&&(i+="Series"),x.merge(e,t.getTheme().get(this.subType)),x.merge(e,this.getDefaultOption()),Kr(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Tc(e,r,n)},t.prototype.mergeOption=function(e,t){e=x.merge(this.option,e,!0),this.fillDataTextStyle(e.data);var n=jc(this);n&&Tc(this.option,e,n);var r=vd(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);Sd(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,vd(this).dataBeforeProcessed=i,bd(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!x.isTypedArray(e))for(var t=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&Kr(e[n],"label",t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){this.getRawData().appendData(e.data)},t.prototype.getData=function(e){var t=kd(this);if(t){var n=t.context.data;return null==e?n:n.getLinkedData(e)}return vd(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=kd(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}vd(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return x.createHashMap(e)},t.prototype.getSourceManager=function(){return vd(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return vd(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get("colorBy")||"series"},t.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,t,n){return hd({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(b.a.node&&(!e||!e.ssr))return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=nl.prototype.getColorFromPalette.call(this,e,t,n);return i||(i=r.getColorFromPalette(e,t,n)),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o<e.length;o++){var a=gd(i,e[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],r=0;r<e.length;r++)n[0]=e[r],this.isSelected(e[r],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=x.keys(e),n=[],r=0;r<t.length;r++){var i=e[t[r]];i>=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return("all"===n||n[gd(r,e)])&&!r.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[md])return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,o=i.selectedMode,a=t.length;if(o&&a)if("series"===o)i.selectedMap="all";else if("multiple"===o){x.isObject(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,u=0;u<a;u++){var c=t[u];s[f=gd(e,c)]=!0,this._selectedDataIndicesMap[f]=e.getRawIndex(c)}}else if("single"===o||!0===o){var l=t[a-1],f=gd(e,l);i.selectedMap=((n={})[f]=!0,n),this._selectedDataIndicesMap=((r={})[f]=e.getRawIndex(l),r)}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each((function(n){var r=e.getRawDataItem(n);r&&r.selected&&t.push(n)})),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return Ic.registerClass(e)},t.protoInitialize=((n=t.prototype).type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",void(n.visualDrawType="fill")),t}(Ic);function bd(e){var t=e.name;ni(e)||(e.name=function(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return x.each(n,(function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)})),r.join(" ")}(e)||t)}function xd(e){return e.model.getRawData().count()}function wd(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),_d}function _d(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Sd(e,t){x.each(x.concatArray(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),(function(n){e.wrapMethod(n,x.curry(Od,t))}))}function Od(e,t){var n=kd(e);return n&&n.setOutputEnd((t||this).count()),t}function kd(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}x.mixin(yd,mf),x.mixin(yd,nl),xi(yd,Ic);var Ed=yd,jd=function(){function e(){this.group=new ur,this.uid=Ou("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();bi(jd),Oi(jd);var Td=jd;function Cd(){var e=oi();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===a&&o===s)&&"reset"}}var Ad=Ro.CMD,Pd=[[],[],[]],Md=Math.sqrt,Id=Math.atan2;function Rd(e,t){if(t){var n,r,i,o,a,s,u=e.data,c=e.len(),l=Ad.M,f=Ad.C,d=Ad.L,p=Ad.R,h=Ad.A,v=Ad.Q;for(i=0,o=0;i<c;){switch(n=u[i++],o=i,r=0,n){case l:case d:r=1;break;case f:r=3;break;case v:r=2;break;case h:var g=t[4],m=t[5],y=Md(t[0]*t[0]+t[1]*t[1]),b=Md(t[2]*t[2]+t[3]*t[3]),x=Id(-t[1]/b,t[0]/y);u[i]*=y,u[i++]+=g,u[i]*=b,u[i++]+=m,u[i++]*=y,u[i++]*=b,u[i++]+=x,u[i++]+=x,o=i+=2;break;case p:s[0]=u[i++],s[1]=u[i++],q(s,s,t),u[o++]=s[0],u[o++]=s[1],s[0]+=u[i++],s[1]+=u[i++],q(s,s,t),u[o++]=s[0],u[o++]=s[1]}for(a=0;a<r;a++){var w=Pd[a];w[0]=u[i++],w[1]=u[i++],q(w,w,t),u[o++]=w[0],u[o++]=w[1]}}e.increaseVersion()}}var Dd=Math.sqrt,Ld=Math.sin,Nd=Math.cos,Fd=Math.PI;function Bd(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Ud(e,t){return(e[0]*t[0]+e[1]*t[1])/(Bd(e)*Bd(t))}function zd(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Ud(e,t))}function Vd(e,t,n,r,i,o,a,s,u,c,l){var f=u*(Fd/180),d=Nd(f)*(e-n)/2+Ld(f)*(t-r)/2,p=-1*Ld(f)*(e-n)/2+Nd(f)*(t-r)/2,h=d*d/(a*a)+p*p/(s*s);h>1&&(a*=Dd(h),s*=Dd(h));var v=(i===o?-1:1)*Dd((a*a*(s*s)-a*a*(p*p)-s*s*(d*d))/(a*a*(p*p)+s*s*(d*d)))||0,g=v*a*p/s,m=v*-s*d/a,y=(e+n)/2+Nd(f)*g-Ld(f)*m,b=(t+r)/2+Ld(f)*g+Nd(f)*m,x=zd([1,0],[(d-g)/a,(p-m)/s]),w=[(d-g)/a,(p-m)/s],_=[(-1*d-g)/a,(-1*p-m)/s],S=zd(w,_);if(Ud(w,_)<=-1&&(S=Fd),Ud(w,_)>=1&&(S=0),S<0){var O=Math.round(S/Fd*1e6)/1e6;S=2*Fd+O%2*Fd}l.addData(c,y,b,a,s,x,S,f,o)}var Hd=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Wd=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var qd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _(t,e),t.prototype.applyTransform=function(e){},t}(ta);function Gd(e){return null!=e.setData}function Yd(e,t){var n=function(e){var t=new Ro;if(!e)return t;var n,r=0,i=0,o=r,a=i,s=Ro.CMD,u=e.match(Hd);if(!u)return t;for(var c=0;c<u.length;c++){for(var l=u[c],f=l.charAt(0),d=void 0,p=l.match(Wd)||[],h=p.length,v=0;v<h;v++)p[v]=parseFloat(p[v]);for(var g=0;g<h;){var m=void 0,y=void 0,b=void 0,x=void 0,w=void 0,_=void 0,S=void 0,O=r,k=i,E=void 0,j=void 0;switch(f){case"l":r+=p[g++],i+=p[g++],d=s.L,t.addData(d,r,i);break;case"L":r=p[g++],i=p[g++],d=s.L,t.addData(d,r,i);break;case"m":r+=p[g++],i+=p[g++],d=s.M,t.addData(d,r,i),o=r,a=i,f="l";break;case"M":r=p[g++],i=p[g++],d=s.M,t.addData(d,r,i),o=r,a=i,f="L";break;case"h":r+=p[g++],d=s.L,t.addData(d,r,i);break;case"H":r=p[g++],d=s.L,t.addData(d,r,i);break;case"v":i+=p[g++],d=s.L,t.addData(d,r,i);break;case"V":i=p[g++],d=s.L,t.addData(d,r,i);break;case"C":d=s.C,t.addData(d,p[g++],p[g++],p[g++],p[g++],p[g++],p[g++]),r=p[g-2],i=p[g-1];break;case"c":d=s.C,t.addData(d,p[g++]+r,p[g++]+i,p[g++]+r,p[g++]+i,p[g++]+r,p[g++]+i),r+=p[g-2],i+=p[g-1];break;case"S":m=r,y=i,E=t.len(),j=t.data,n===s.C&&(m+=r-j[E-4],y+=i-j[E-3]),d=s.C,O=p[g++],k=p[g++],r=p[g++],i=p[g++],t.addData(d,m,y,O,k,r,i);break;case"s":m=r,y=i,E=t.len(),j=t.data,n===s.C&&(m+=r-j[E-4],y+=i-j[E-3]),d=s.C,O=r+p[g++],k=i+p[g++],r+=p[g++],i+=p[g++],t.addData(d,m,y,O,k,r,i);break;case"Q":O=p[g++],k=p[g++],r=p[g++],i=p[g++],d=s.Q,t.addData(d,O,k,r,i);break;case"q":O=p[g++]+r,k=p[g++]+i,r+=p[g++],i+=p[g++],d=s.Q,t.addData(d,O,k,r,i);break;case"T":m=r,y=i,E=t.len(),j=t.data,n===s.Q&&(m+=r-j[E-4],y+=i-j[E-3]),r=p[g++],i=p[g++],d=s.Q,t.addData(d,m,y,r,i);break;case"t":m=r,y=i,E=t.len(),j=t.data,n===s.Q&&(m+=r-j[E-4],y+=i-j[E-3]),r+=p[g++],i+=p[g++],d=s.Q,t.addData(d,m,y,r,i);break;case"A":b=p[g++],x=p[g++],w=p[g++],_=p[g++],S=p[g++],Vd(O=r,k=i,r=p[g++],i=p[g++],_,S,b,x,w,d=s.A,t);break;case"a":b=p[g++],x=p[g++],w=p[g++],_=p[g++],S=p[g++],Vd(O=r,k=i,r+=p[g++],i+=p[g++],_,S,b,x,w,d=s.A,t)}}"z"!==f&&"Z"!==f||(d=s.Z,t.addData(d),r=o,i=a),n=d}return t.toStatic(),t}(e),r=Object(x.extend)({},t);return r.buildPath=function(e){if(Gd(e)){e.setData(n.data),(t=e.getContext())&&e.rebuildPath(t,1)}else{var t=e;n.rebuildPath(t,1)}},r.applyTransform=function(e){Rd(n,e),this.dirtyShape()},r}function Kd(e,t){return new qd(Yd(e,t))}function $d(e,t){t=t||{};var n=new ta;return e.shape&&n.setShape(e.shape),n.setStyle(e.style),t.bakeTransform?Rd(n.path,e.getComputedTransform()):t.toLocal?n.setLocalTransform(e.getComputedTransform()):n.copyTransform(e),n.buildPath=e.buildPath,n.applyTransform=n.applyTransform,n.z=e.z,n.z2=e.z2,n.zlevel=e.zlevel,n}var Xd=function(){this.cx=0,this.cy=0,this.r=0},Qd=function(e){function t(t){return e.call(this,t)||this}return _(t,e),t.prototype.getDefaultShape=function(){return new Xd},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI)},t}(ta);Qd.prototype.type="circle";var Zd=Qd,Jd=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},ep=function(e){function t(t){return e.call(this,t)||this}return _(t,e),t.prototype.getDefaultShape=function(){return new Jd},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,o=t.rx,a=t.ry,s=o*n,u=a*n;e.moveTo(r-o,i),e.bezierCurveTo(r-o,i-u,r-s,i-a,r,i-a),e.bezierCurveTo(r+s,i-a,r+o,i-u,r+o,i),e.bezierCurveTo(r+o,i+u,r+s,i+a,r,i+a),e.bezierCurveTo(r-s,i+a,r-o,i+u,r-o,i),e.closePath()},t}(ta);ep.prototype.type="ellipse";var tp=ep,np=Math.PI,rp=2*np,ip=Math.sin,op=Math.cos,ap=Math.acos,sp=Math.atan2,up=Math.abs,cp=Math.sqrt,lp=Math.max,fp=Math.min,dp=1e-4;function pp(e,t,n,r,i,o,a){var s=e-n,u=t-r,c=(a?o:-o)/cp(s*s+u*u),l=c*u,f=-c*s,d=e+l,p=t+f,h=n+l,v=r+f,g=(d+h)/2,m=(p+v)/2,y=h-d,b=v-p,x=y*y+b*b,w=i-o,_=d*v-h*p,S=(b<0?-1:1)*cp(lp(0,w*w*x-_*_)),O=(_*b-y*S)/x,k=(-_*y-b*S)/x,E=(_*b+y*S)/x,j=(-_*y+b*S)/x,T=O-g,C=k-m,A=E-g,P=j-m;return T*T+C*C>A*A+P*P&&(O=E,k=j),{cx:O,cy:k,x0:-l,y0:-f,x1:O*(i/w-1),y1:k*(i/w-1)}}function hp(e,t){var n,r=lp(t.r,0),i=lp(t.r0||0,0),o=r>0;if(o||i>0){if(o||(r=i,i=0),i>r){var a=r;r=i,i=a}var s=t.startAngle,u=t.endAngle;if(!isNaN(s)&&!isNaN(u)){var c=t.cx,l=t.cy,f=!!t.clockwise,d=up(u-s),p=d>rp&&d%rp;if(p>dp&&(d=p),r>dp)if(d>rp-dp)e.moveTo(c+r*op(s),l+r*ip(s)),e.arc(c,l,r,s,u,!f),i>dp&&(e.moveTo(c+i*op(u),l+i*ip(u)),e.arc(c,l,i,u,s,f));else{var h=void 0,v=void 0,g=void 0,m=void 0,y=void 0,b=void 0,w=void 0,_=void 0,S=void 0,O=void 0,k=void 0,E=void 0,j=void 0,T=void 0,C=void 0,A=void 0,P=r*op(s),M=r*ip(s),I=i*op(u),R=i*ip(u),D=d>dp;if(D){var L=t.cornerRadius;L&&(h=(n=function(e){var t;if(Object(x.isArray)(e)){var n=e.length;if(!n)return e;t=1===n?[e[0],e[0],0,0]:2===n?[e[0],e[0],e[1],e[1]]:3===n?e.concat(e[2]):e}else t=[e,e,e,e];return t}(L))[0],v=n[1],g=n[2],m=n[3]);var N=up(r-i)/2;if(y=fp(N,g),b=fp(N,m),w=fp(N,h),_=fp(N,v),k=S=lp(y,b),E=O=lp(w,_),(S>dp||O>dp)&&(j=r*op(u),T=r*ip(u),C=i*op(s),A=i*ip(s),d<np)){var F=function(e,t,n,r,i,o,a,s){var u=n-e,c=r-t,l=a-i,f=s-o,d=f*u-l*c;if(!(d*d<dp))return[e+(d=(l*(t-o)-f*(e-i))/d)*u,t+d*c]}(P,M,C,A,j,T,I,R);if(F){var B=P-F[0],U=M-F[1],z=j-F[0],V=T-F[1],H=1/ip(ap((B*z+U*V)/(cp(B*B+U*U)*cp(z*z+V*V)))/2),W=cp(F[0]*F[0]+F[1]*F[1]);k=fp(S,(r-W)/(H+1)),E=fp(O,(i-W)/(H-1))}}}if(D)if(k>dp){var q=fp(g,k),G=fp(m,k),Y=pp(C,A,P,M,r,q,f),K=pp(j,T,I,R,r,G,f);e.moveTo(c+Y.cx+Y.x0,l+Y.cy+Y.y0),k<S&&q===G?e.arc(c+Y.cx,l+Y.cy,k,sp(Y.y0,Y.x0),sp(K.y0,K.x0),!f):(q>0&&e.arc(c+Y.cx,l+Y.cy,q,sp(Y.y0,Y.x0),sp(Y.y1,Y.x1),!f),e.arc(c,l,r,sp(Y.cy+Y.y1,Y.cx+Y.x1),sp(K.cy+K.y1,K.cx+K.x1),!f),G>0&&e.arc(c+K.cx,l+K.cy,G,sp(K.y1,K.x1),sp(K.y0,K.x0),!f))}else e.moveTo(c+P,l+M),e.arc(c,l,r,s,u,!f);else e.moveTo(c+P,l+M);if(i>dp&&D)if(E>dp){q=fp(h,E),Y=pp(I,R,j,T,i,-(G=fp(v,E)),f),K=pp(P,M,C,A,i,-q,f);e.lineTo(c+Y.cx+Y.x0,l+Y.cy+Y.y0),E<O&&q===G?e.arc(c+Y.cx,l+Y.cy,E,sp(Y.y0,Y.x0),sp(K.y0,K.x0),!f):(G>0&&e.arc(c+Y.cx,l+Y.cy,G,sp(Y.y0,Y.x0),sp(Y.y1,Y.x1),!f),e.arc(c,l,i,sp(Y.cy+Y.y1,Y.cx+Y.x1),sp(K.cy+K.y1,K.cx+K.x1),f),q>0&&e.arc(c+K.cx,l+K.cy,q,sp(K.y1,K.x1),sp(K.y0,K.x0),!f))}else e.lineTo(c+I,l+R),e.arc(c,l,i,u,s,f);else e.lineTo(c+I,l+R)}else e.moveTo(c,l);e.closePath()}}}var vp=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},gp=function(e){function t(t){return e.call(this,t)||this}return _(t,e),t.prototype.getDefaultShape=function(){return new vp},t.prototype.buildPath=function(e,t){hp(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(ta);gp.prototype.type="sector";var mp=gp,yp=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},bp=function(e){function t(t){return e.call(this,t)||this}return _(t,e),t.prototype.getDefaultShape=function(){return new yp},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=2*Math.PI;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(ta);bp.prototype.type="ring";var xp=bp;function wp(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var o=function(e,t,n,r){var i,o,a,s,u=[],c=[],l=[],f=[];if(r){a=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,p=e.length;d<p;d++)G(a,a,e[d]),Y(s,s,e[d]);G(a,a,r[0]),Y(s,s,r[1])}for(d=0,p=e.length;d<p;d++){var h=e[d];if(n)i=e[d?d-1:p-1],o=e[(d+1)%p];else{if(0===d||d===p-1){u.push(k(e[d]));continue}i=e[d-1],o=e[d+1]}C(c,o,i),N(c,c,t);var v=B(h,i),g=B(h,o),m=v+g;0!==m&&(v/=m,g/=m),N(l,c,-v),N(f,c,g);var y=j([],h,l),b=j([],h,f);r&&(Y(y,y,a),G(y,y,s),Y(b,b,a),G(b,b,s)),u.push(y),u.push(b)}return n&&u.push(u.shift()),u}(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var u=o[2*s],c=o[2*s+1],l=i[(s+1)%a];e.bezierCurveTo(u[0],u[1],c[0],c[1],l[0],l[1])}}else{e.moveTo(i[0][0],i[0][1]);s=1;for(var f=i.length;s<f;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}var _p=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},Sp=function(e){function t(t){return e.call(this,t)||this}return _(t,e),t.prototype.getDefaultShape=function(){return new _p},t.prototype.buildPath=function(e,t){wp(e,t,!0)},t}(ta);Sp.prototype.type="polygon";var Op=Sp,kp=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},Ep=function(e){function t(t){return e.call(this,t)||this}return _(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new kp},t.prototype.buildPath=function(e,t){wp(e,t,!1)},t}(ta);Ep.prototype.type="polyline";var jp=Ep,Tp={},Cp=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},Ap=function(e){function t(t){return e.call(this,t)||this}return _(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Cp},t.prototype.buildPath=function(e,t){var n,r,i,o;if(this.subPixelOptimize){var a=la(Tp,t,this.style);n=a.x1,r=a.y1,i=a.x2,o=a.y2}else n=t.x1,r=t.y1,i=t.x2,o=t.y2;var s=t.percent;0!==s&&(e.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,o=r*(1-s)+o*s),e.lineTo(i,o))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(ta);Ap.prototype.type="line";var Pp=Ap,Mp=[],Ip=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function Rp(e,t,n){var r=e.cpx2,i=e.cpy2;return null!=r||null!=i?[(n?kt:Ot)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?kt:Ot)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?Mt:Pt)(e.x1,e.cpx1,e.x2,t),(n?Mt:Pt)(e.y1,e.cpy1,e.y2,t)]}var Dp=function(e){function t(t){return e.call(this,t)||this}return _(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Ip},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,o=t.y2,a=t.cpx1,s=t.cpy1,u=t.cpx2,c=t.cpy2,l=t.percent;0!==l&&(e.moveTo(n,r),null==u||null==c?(l<1&&(Rt(n,a,i,l,Mp),a=Mp[1],i=Mp[2],Rt(r,s,o,l,Mp),s=Mp[1],o=Mp[2]),e.quadraticCurveTo(a,s,i,o)):(l<1&&(Tt(n,a,u,i,l,Mp),a=Mp[1],u=Mp[2],i=Mp[3],Tt(r,s,c,o,l,Mp),s=Mp[1],c=Mp[2],o=Mp[3]),e.bezierCurveTo(a,s,u,c,i,o)))},t.prototype.pointAt=function(e){return Rp(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=Rp(this.shape,e,!0);return F(t,t)},t}(ta);Dp.prototype.type="bezier-curve";var Lp=Dp,Np=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Fp=function(e){function t(t){return e.call(this,t)||this}return _(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Np},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),o=t.startAngle,a=t.endAngle,s=t.clockwise,u=Math.cos(o),c=Math.sin(o);e.moveTo(u*i+n,c*i+r),e.arc(n,r,i,o,a,!s)},t}(ta);Fp.prototype.type="arc";var Bp=Fp,Up=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="compound",t}return _(t,e),t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t=t||e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ta.prototype.getBoundingRect.call(this)},t}(ta),zp=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),Vp=function(e){function t(t,n,r,i,o,a){var s=e.call(this,o)||this;return s.x=null==t?0:t,s.y=null==n?0:n,s.x2=null==r?1:r,s.y2=null==i?0:i,s.type="linear",s.global=a||!1,s}return _(t,e),t}(zp),Hp=function(e){function t(t,n,r,i,o){var a=e.call(this,i)||this;return a.x=null==t?.5:t,a.y=null==n?.5:n,a.r=null==r?.5:r,a.type="radial",a.global=o||!1,a}return _(t,e),t}(zp),Wp=[0,0],qp=[0,0],Gp=new Ce,Yp=new Ce,Kp=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Ce;for(n=0;n<2;n++)this._axes[n]=new Ce;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,i=e.x,o=e.y,a=i+e.width,s=o+e.height;if(n[0].set(i,o),n[1].set(a,o),n[2].set(a,s),n[3].set(i,s),t)for(var u=0;u<4;u++)n[u].transform(t);Ce.sub(r[0],n[1],n[0]),Ce.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(u=0;u<2;u++)this._origin[u]=r[u].dot(n[0])},e.prototype.intersect=function(e,t){var n=!0,r=!t;return Gp.set(1/0,1/0),Yp.set(0,0),!this._intersectCheckOneSide(this,e,Gp,Yp,r,1)&&(n=!1,r)?n:!this._intersectCheckOneSide(e,this,Gp,Yp,r,-1)&&(n=!1,r)?n:(r||Ce.copy(t,n?Gp:Yp),n)},e.prototype._intersectCheckOneSide=function(e,t,n,r,i,o){for(var a=!0,s=0;s<2;s++){var u=this._axes[s];if(this._getProjMinMaxOnAxis(s,e._corners,Wp),this._getProjMinMaxOnAxis(s,t._corners,qp),Wp[1]<qp[0]||Wp[0]>qp[1]){if(a=!1,i)return a;var c=Math.abs(qp[0]-Wp[1]),l=Math.abs(Wp[0]-qp[1]);Math.min(c,l)>r.len()&&(c<l?Ce.scale(r,u,-c*o):Ce.scale(r,u,l*o))}else if(n){c=Math.abs(qp[0]-Wp[1]),l=Math.abs(Wp[0]-qp[1]);Math.min(c,l)<n.len()&&(c<l?Ce.scale(n,u,c*o):Ce.scale(n,u,-l*o))}}return a},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,o=t[0].dot(r)+i[e],a=o,s=o,u=1;u<t.length;u++){var c=t[u].dot(r)+i[e];a=Math.min(c,a),s=Math.max(c,s)}n[0]=a,n[1]=s},e}(),$p=[],Xp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return _(t,e),t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t=t||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){(t=this._displayables[e]).parent=this,t.update(),t.parent=null}for(e=0;e<this._temporaryDisplayables.length;e++){var t;(t=this._temporaryDisplayables[e]).parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new Fe(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform($p)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1]))for(var r=0;r<this._displayables.length;r++){if(this._displayables[r].contain(e,t))return!0}return!1},t}(Ji),Qp=Math.max,Zp=Math.min,Jp={};function eh(e){return ta.extend(e)}var th=function(e,t){var n=Yd(e,t);return function(e){function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return _(t,e),t}(qd)};function nh(e,t){return th(e,t)}function rh(e,t){Jp[e]=t}function ih(e){if(Jp.hasOwnProperty(e))return Jp[e]}function oh(e,t,n,r){var i=Kd(e,t);return n&&("center"===r&&(n=sh(n,i.getBoundingRect())),ch(i,n)),i}function ah(e,t,n){var r=new ua({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===n){var i={width:e.width,height:e.height};r.setStyle(sh(t,i))}}});return r}function sh(e,t){var n,r=t.width/t.height,i=e.height*r;return n=i<=e.width?e.height:(i=e.width)/r,{x:e.x+e.width/2-i/2,y:e.y+e.height/2-n/2,width:i,height:n}}var uh=function(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var o=e[i];n.push(o.getUpdatedPathProxy(!0))}var a=new ta(t);return a.createPathProxy(),a.buildPath=function(e){if(Gd(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},a};function ch(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function lh(e,t){return la(e,e,{lineWidth:t}),e}function fh(e){return fa(e.shape,e.shape,e.style),e}var dh=da;function ph(e,t){for(var n=we([]);e&&e!==t;)Se(n,e.getLocalTransform(),n),e=e.parent;return n}function hh(e,t,n){return t&&!Object(x.isArrayLike)(t)&&(t=Un.getLocalTransform(t)),n&&(t=je([],t)),q([],e,t)}function vh(e,t,n){var r=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),i=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),o=["left"===e?-r:"right"===e?r:0,"top"===e?-i:"bottom"===e?i:0];return o=hh(o,t,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function gh(e){return!e.isGroup}function mh(e,t,n){if(e&&t){var r,i=(r={},e.traverse((function(e){gh(e)&&e.anid&&(r[e.anid]=e)})),r);t.traverse((function(e){if(gh(e)&&e.anid){var t=i[e.anid];if(t){var r=o(e);e.attr(o(t)),Us(e,r,n,Ia(e).dataIndex)}}}))}function o(e){var t={x:e.x,y:e.y,rotation:e.rotation};return function(e){return null!=e.shape}(e)&&(t.shape=Object(x.extend)({},e.shape)),t}}function yh(e,t){return Object(x.map)(e,(function(e){var n=e[0];n=Qp(n,t.x),n=Zp(n,t.x+t.width);var r=e[1];return r=Qp(r,t.y),[n,r=Zp(r,t.y+t.height)]}))}function bh(e,t){var n=Qp(e.x,t.x),r=Zp(e.x+e.width,t.x+t.width),i=Qp(e.y,t.y),o=Zp(e.y+e.height,t.y+t.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}}function xh(e,t,n){var r=Object(x.extend)({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(i.image=e.slice(8),Object(x.defaults)(i,n),new ua(r)):oh(e.replace("path://",""),r,n,"center")}function wh(e,t,n,r,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(_h(e,t,n,r,s[0],s[1],a[0],a[1]))return!0;a=s}}function _h(e,t,n,r,i,o,a,s){var u,c=n-e,l=r-t,f=a-i,d=s-o,p=Sh(f,d,c,l);if((u=p)<=1e-6&&u>=-1e-6)return!1;var h=e-i,v=t-o,g=Sh(h,v,c,l)/p;if(g<0||g>1)return!1;var m=Sh(h,v,f,d)/p;return!(m<0||m>1)}function Sh(e,t,n,r){return e*r-n*t}function Oh(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=Object(x.isString)(t)?{formatter:t}:t,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var u=e.formatterParamsExtra;u&&Object(x.each)(Object(x.keys)(u),(function(e){Object(x.hasOwn)(s,e)||(s[e]=u[e],s.$vars.push(e))}));var c=Ia(e.el);c.componentMainType=o,c.componentIndex=a,c.tooltipConfig={name:r,option:Object(x.defaults)({content:r,formatterParams:s},i)}}function kh(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function Eh(e,t){if(e)if(Object(x.isArray)(e))for(var n=0;n<e.length;n++)kh(e[n],t);else kh(e,t)}rh("circle",Zd),rh("ellipse",tp),rh("sector",mp),rh("ring",xp),rh("polygon",Op),rh("polyline",jp),rh("rect",ga),rh("line",Pp),rh("bezierCurve",Lp),rh("arc",Bp);var jh=oi(),Th=Cd(),Ch=function(){function e(){this.group=new ur,this.uid=Ou("viewChart"),this.renderTask=bf({plan:Mh,reset:Ih}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){0},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&Ph(i,r,"emphasis")},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&Ph(i,r,"normal")},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateLayout=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){Eh(this.group,e)},e.markUpdateMethod=function(e,t){jh(e).updateMethod=t},e.protoInitialize=void(e.prototype.type="chart"),e}();function Ah(e,t,n){e&&Rs(e)&&("emphasis"===t?hs:vs)(e,n)}function Ph(e,t,n){var r=ii(e,t),i=t&&null!=t.highlightKey?function(e){var t=La[e];return null==t&&Da<=32&&(t=La[e]=Da++),t}(t.highlightKey):null;null!=r?Object(x.each)(Yr(r),(function(t){Ah(e.getItemGraphicEl(t),n,i)})):e.eachItemGraphicEl((function(e){Ah(e,n,i)}))}function Mh(e){return Th(e.model)}function Ih(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,o=t.pipelineContext.progressiveRender,a=e.view,s=i&&jh(i).updateMethod,u=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==u&&a[u](t,n,r,i),Rh[u]}bi(Ch),Oi(Ch);var Rh={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Dh=Ch,Lh="\0__throttleOriginMethod",Nh="\0__throttleRate",Fh="\0__throttleType";function Bh(e,t,n){var r,i,o,a,s,u=0,c=0,l=null;function f(){c=(new Date).getTime(),l=null,e.apply(o,a||[])}t=t||0;var d=function(){for(var e=[],d=0;d<arguments.length;d++)e[d]=arguments[d];r=(new Date).getTime(),o=this,a=e;var p=s||t,h=s||n;s=null,i=r-(h?u:c)-p,clearTimeout(l),h?l=setTimeout(f,p):i>=0?f():l=setTimeout(f,-i),u=r};return d.clear=function(){l&&(clearTimeout(l),l=null)},d.debounceNextCall=function(e){s=e},d}function Uh(e,t,n,r){var i=e[t];if(i){var o=i[Lh]||i,a=i[Fh];if(i[Nh]!==n||a!==r){if(null==n||!r)return e[t]=o;(i=e[t]=Bh(o,n,"debounce"===r))[Lh]=o,i[Fh]=r,i[Nh]=n}return i}}function zh(e,t){var n=e[t];n&&n[Lh]&&(n.clear&&n.clear(),e[t]=n[Lh])}var Vh=oi(),Hh={itemStyle:ki(vu,!0),lineStyle:ki(du,!0)},Wh={lineStyle:"stroke",itemStyle:"fill"};function qh(e,t){var n=e.visualStyleMapper||Hh[t];return n||(console.warn("Unkown style type '"+t+"'."),Hh.itemStyle)}function Gh(e,t){var n=e.visualDrawType||Wh[t];return n||(console.warn("Unkown style type '"+t+"'."),"fill")}var Yh={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),o=qh(e,r)(i),a=i.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=Gh(e,r),u=o[s],c=Object(x.isFunction)(u)?u:null,l="auto"===o.fill||"auto"===o.stroke;if(!o[s]||c||l){var f=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[s]||(o[s]=f,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||Object(x.isFunction)(o.fill)?f:o.fill,o.stroke="auto"===o.stroke||Object(x.isFunction)(o.stroke)?f:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!t.isSeriesFiltered(e)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=Object(x.extend)({},o);i[s]=c(r),t.setItemVisual(n,"style",i)}}}},Kh=new _u,$h={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=qh(e,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){Kh.option=n[r];var a=i(Kh),s=e.ensureUniqueItemVisual(t,"style");Object(x.extend)(s,a),Kh.option.decal&&(e.setItemVisual(t,"decal",Kh.option.decal),Kh.option.decal.dirty=!0),o in a&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}},Xh={performRawSeries:!0,overallReset:function(e){var t=Object(x.createHashMap)();e.eachSeries((function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var r=e.type+"-"+n,i=t.get(r);i||(i={},t.set(r,i)),Vh(e).scope=i}})),e.eachSeries((function(t){if(!t.isColorBySeries()&&!e.isSeriesFiltered(t)){var n=t.getRawData(),r={},i=t.getData(),o=Vh(t).scope,a=t.visualStyleAccessPath||"itemStyle",s=Gh(t,a);i.each((function(e){var t=i.getRawIndex(e);r[t]=e})),n.each((function(e){var a=r[e];if(i.getItemVisual(a,"colorFromPalette")){var u=i.ensureUniqueItemVisual(a,"style"),c=n.getName(e)||e+"",l=n.count();u[s]=t.getColorFromPalette(c,o,l)}}))}}))}},Qh=Math.PI;var Zh=function(){function e(e,t,n,r){this._stageTaskMap=Object(x.createHashMap)(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each((function(e){var t=e.overallTask;t&&t.dirty()}))},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,o=r&&r.modDataCount;return{step:i,modBy:null!=o?Math.ceil(o/i):null,modDataCount:o}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),r=e.getData().count(),i=n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,o=e.get("large")&&r>=e.get("largeThreshold"),a="mod"===e.get("progressiveChunkMode")?r:null;e.pipelineContext=n.context={progressiveRender:i,modDataCount:a,large:o}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=Object(x.createHashMap)();e.eachSeries((function(e){var r=e.getProgressive(),i=e.uid;n.set(i,{id:i,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),t._pipe(e,e.dataTask)}))},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;Object(x.each)(this._allHandlers,(function(r){var i=e.get(r.uid)||e.set(r.uid,{});Object(x.assert)(!(r.reset&&r.overallReset),""),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)}),this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=n,o.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r=r||{};var i=!1,o=this;function a(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}Object(x.each)(e,(function(e,s){if(!r.visualType||r.visualType===e.visualType){var u=o._stageTaskMap.get(e.uid),c=u.seriesTaskMap,l=u.overallTask;if(l){var f,d=l.agentStubMap;d.each((function(e){a(r,e)&&(e.dirty(),f=!0)})),f&&l.dirty(),o.updatePayload(l,n);var p=o.getPerformArgs(l,r.block);d.each((function(e){e.perform(p)})),l.perform(p)&&(i=!0)}else c&&c.each((function(s,u){a(r,s)&&s.dirty();var c=o.getPerformArgs(s,r.block);c.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(c)&&(i=!0)}))}})),this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries((function(e){t=e.dataTask.perform()||t})),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each((function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)}))},e.prototype.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,o=t.seriesTaskMap,a=t.seriesTaskMap=Object(x.createHashMap)(),s=e.seriesType,u=e.getTargetSeries;function c(t){var s=t.uid,u=a.set(s,o&&o.get(s)||bf({plan:rv,reset:iv,count:sv}));u.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,u)}e.createOnAllSeries?n.eachRawSeries(c):s?n.eachRawSeriesByType(s,c):u&&u(n,r).each(c)},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,o=t.overallTask=t.overallTask||bf({reset:Jh});o.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var a=o.agentStubMap,s=o.agentStubMap=Object(x.createHashMap)(),u=e.seriesType,c=e.getTargetSeries,l=!0,f=!1;function d(e){var t=e.uid,n=s.set(t,a&&a.get(t)||(f=!0,bf({reset:ev,onDirty:nv})));n.context={model:e,overallProgress:l},n.agent=o,n.__block=l,i._pipe(e,n)}Object(x.assert)(!e.createOnAllSeries,""),u?n.eachRawSeriesByType(u,d):c?c(n,r).each(d):(l=!1,Object(x.each)(n.getSeries(),d)),f&&o.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return Object(x.isFunction)(e)&&(e={overallReset:e,seriesType:uv(e)}),e.uid=Ou("stageHandler"),t&&(e.visualType=t),e},e}();function Jh(e){e.overallReset(e.ecModel,e.api,e.payload)}function ev(e){return e.overallProgress&&tv}function tv(){this.agent.dirty(),this.getDownstream().dirty()}function nv(){this.agent&&this.agent.dirty()}function rv(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function iv(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Yr(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Object(x.map)(t,(function(e,t){return av(t)})):ov}var ov=av(0);function av(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var o=t.start;o<t.end;o++)i.dataEach(r,o);else i&&i.progress&&i.progress(t,r)}}function sv(e){return e.data.count()}function uv(e){cv=null;try{e(lv,fv)}catch(e){}return cv}var cv,lv={},fv={};function dv(e,t){for(var n in t.prototype)e[n]=x.noop}dv(lv,vl),dv(fv,ml),lv.eachSeriesByType=lv.eachRawSeriesByType=function(e){cv=e},lv.eachComponent=function(e){"series"===e.mainType&&e.subType&&(cv=e.subType)};var pv=Zh,hv=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],vv={color:hv,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],hv]},gv=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],mv={darkMode:!0,color:gv,backgroundColor:"#100C2A",axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:"#B9B8CE"}},textStyle:{color:"#B9B8CE"},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:"#B9B8CE"}},dataZoom:{borderColor:"#71708A",textStyle:{color:"#B9B8CE"},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:"#B9B8CE"}},timeline:{lineStyle:{color:"#B9B8CE"},label:{color:"#B9B8CE"},controlStyle:{color:"#B9B8CE",borderColor:"#B9B8CE"}},calendar:{itemStyle:{color:"#100C2A"},dayLabel:{color:"#B9B8CE"},monthLabel:{color:"#B9B8CE"},yearLabel:{color:"#B9B8CE"}},timeAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}},logAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}},valueAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}},categoryAxis:{axisLine:{lineStyle:{color:"#B9B8CE"}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}},line:{symbol:"circle"},graph:{color:gv},gauge:{title:{color:"#B9B8CE"},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:"#B9B8CE"},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};mv.categoryAxis.splitLine.show=!1;var yv=mv,bv=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(x.isString(e)){var i=yi(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};x.each(e,(function(e,i){for(var s=!1,u=0;u<o.length;u++){var c=o[u],l=i.lastIndexOf(c);if(l>0&&l===i.length-c.length){var f=i.slice(0,l);"data"!==f&&(t.mainType=f,t[c.toLowerCase()]=e,s=!0)}}a.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)}))}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=t.cptQuery,u=t.dataQuery;return c(s,o,"mainType")&&c(s,o,"subType")&&c(s,o,"index","componentIndex")&&c(s,o,"name")&&c(s,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(e,t.otherQuery,r,i));function c(e,t,n,r){return null==e[n]||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),xv=["symbol","symbolSize","symbolRotate","symbolOffset"],wv=xv.concat(["symbolKeepAspect"]),_v={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var r={},i={},o=!1,a=0;a<xv.length;a++){var s=xv[a],u=e.get(s);Object(x.isFunction)(u)?(o=!0,i[s]=u):r[s]=u}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(Object(x.extend)({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},r)),!t.isSeriesFiltered(e)){var c=Object(x.keys)(i);return{dataEach:o?function(t,n){for(var r=e.getRawValue(n),o=e.getDataParams(n),a=0;a<c.length;a++){var s=c[a];t.setItemVisual(n,s,i[s](r,o))}}:null}}}}},Sv={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(e.hasSymbolVisual&&!t.isSeriesFiltered(e))return{dataEach:e.getData().hasItemOption?function(e,t){for(var n=e.getItemModel(t),r=0;r<wv.length;r++){var i=wv[r],o=n.getShallow(i,!0);null!=o&&e.setItemVisual(t,i,o)}}:null}}};function Ov(e,t,n){switch(n){case"color":return e.getItemVisual(t,"style")[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n);default:0}}function kv(e,t){switch(t){case"color":return e.getVisual("style")[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t);default:0}}function Ev(e,t,n,r){switch(n){case"color":e.ensureUniqueItemVisual(t,"style")[e.getVisual("drawType")]=r,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,n,r);break;default:0}}function jv(e,t){function n(t,n){var r=[];return t.eachComponent({mainType:"series",subType:e,query:n},(function(e){r.push(e.seriesIndex)})),r}Object(x.each)([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],(function(e){t(e[0],(function(t,r,i){t=Object(x.extend)({},t),i.dispatchAction(Object(x.extend)(t,{type:e[1],seriesIndex:n(r,t)}))}))}))}function Tv(e,t,n,r,i){var o=e+t;n.isSilent(o)||r.eachComponent({mainType:"series",subType:"pie"},(function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,a=i.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===t){var u=e.getData(),c=ii(u,i.fromActionPayload);n.trigger(o,{type:o,seriesId:e.id,name:Object(x.isArray)(c)?u.getName(c[0]):u.getName(c),selected:Object(x.isString)(r)?r:Object(x.extend)({},r)})}}))}function Cv(e,t,n){for(var r;e&&(!t(e)||(r=e,!n));)e=e.__hostTarget||e.parent;return r}var Av=Math.round(9*Math.random()),Pv="function"==typeof Object.defineProperty,Mv=function(){function e(){this._id="__ec_inner_"+Av++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return Pv?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype.delete=function(e){return!!this.has(e)&&(delete this._guard(e)[this._id],!0)},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},e}(),Iv=ta.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,o=t.height/2;e.moveTo(n,r-o),e.lineTo(n+i,r+o),e.lineTo(n-i,r+o),e.closePath()}}),Rv=ta.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,o=t.height/2;e.moveTo(n,r-o),e.lineTo(n+i,r),e.lineTo(n,r+o),e.lineTo(n-i,r),e.closePath()}}),Dv=ta.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,o=Math.max(i,t.height),a=i/2,s=a*a/(o-a),u=r-o+a+s,c=Math.asin(s/a),l=Math.cos(c)*a,f=Math.sin(c),d=Math.cos(c),p=.6*a,h=.7*a;e.moveTo(n-l,u+s),e.arc(n,u,a,Math.PI-c,2*Math.PI+c),e.bezierCurveTo(n+l-f*p,u+s+d*p,n,r-h,n,r),e.bezierCurveTo(n,r-h,n-l+f*p,u+s+d*p,n-l,u+s),e.closePath()}}),Lv=ta.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,o=t.y,a=r/3*2;e.moveTo(i,o),e.lineTo(i+a,o+n),e.lineTo(i,o+n/4*3),e.lineTo(i-a,o+n),e.lineTo(i,o),e.closePath()}}),Nv={line:Pp,rect:ga,roundRect:ga,square:ga,circle:Zd,diamond:Rv,pin:Dv,arrow:Lv,triangle:Iv},Fv={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var o=Math.min(n,r);i.x=e,i.y=t,i.width=o,i.height=o},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},Bv={};Object(x.each)(Nv,(function(e,t){Bv[t]=new e}));var Uv=ta.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=Qn(e,t,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===t.position&&(r.y=n.y+.4*n.height),r},buildPath:function(e,t,n){var r=t.symbolType;if("none"!==r){var i=Bv[r];i||(i=Bv[r="rect"]),Fv[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function zv(e,t){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=e:n.fill=e,this.markRedraw()}}function Vv(e,t,n,r,i,o,a){var s,u=0===e.indexOf("empty");return u&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),(s=0===e.indexOf("image://")?ah(e.slice(8),new Fe(t,n,r,i),a?"center":"cover"):0===e.indexOf("path://")?oh(e.slice(7),{},new Fe(t,n,r,i),a?"center":"cover"):new Uv({shape:{symbolType:e,x:t,y:n,width:r,height:i}})).__isEmptyBrush=u,s.setColor=zv,o&&s.setColor(o),s}function Hv(e){return Object(x.isArray)(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Wv(e,t){if(null!=e)return Object(x.isArray)(e)||(e=[e,e]),[wr(e[0],t[0])||0,wr(Object(x.retrieve2)(e[1],e[0]),t[1])||0]}function qv(e){return isFinite(e)}function Gv(e,t,n){for(var r="radial"===t.type?function(e,t,n){var r=n.width,i=n.height,o=Math.min(r,i),a=null==t.x?.5:t.x,s=null==t.y?.5:t.y,u=null==t.r?.5:t.r;return t.global||(a=a*r+n.x,s=s*i+n.y,u*=o),a=qv(a)?a:.5,s=qv(s)?s:.5,u=u>=0&&qv(u)?u:.5,e.createRadialGradient(a,s,0,a,s,u)}(e,t,n):function(e,t,n){var r=null==t.x?0:t.x,i=null==t.x2?1:t.x2,o=null==t.y?0:t.y,a=null==t.y2?0:t.y2;return t.global||(r=r*n.width+n.x,i=i*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),r=qv(r)?r:0,i=qv(i)?i:1,o=qv(o)?o:0,a=qv(a)?a:0,e.createLinearGradient(r,o,i,a)}(e,t,n),i=t.colorStops,o=0;o<i.length;o++)r.addColorStop(i[o].offset,i[o].color);return r}function Yv(e){return parseInt(e,10)}function Kv(e,t,n){var r=["width","height"][t],i=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(null!=n[r]&&"auto"!==n[r])return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||Yv(s[r])||Yv(e.style[r]))-(Yv(s[o])||0)-(Yv(s[a])||0)|0}function $v(e){var t,n,r=e.style,i=r.lineDash&&r.lineWidth>0&&(t=r.lineDash,n=r.lineWidth,t&&"solid"!==t&&n>0?"dashed"===t?[4*n,2*n]:"dotted"===t?[n]:Object(x.isNumber)(t)?[t]:Object(x.isArray)(t)?t:null:null),o=r.lineDashOffset;if(i){var a=r.strokeNoScale&&e.getLineScale?e.getLineScale():1;a&&1!==a&&(i=Object(x.map)(i,(function(e){return e/a})),o/=a)}return[i,o]}var Xv=new Ro(!0);function Qv(e){var t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))}function Zv(e){return"string"==typeof e&&"none"!==e}function Jv(e){var t=e.fill;return null!=t&&"none"!==t}function eg(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function tg(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function ng(e,t,n){var r=Ai(t.image,t.__image,n);if(Mi(r)){var i=e.createPattern(r,t.repeat||"repeat");if("function"==typeof DOMMatrix&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*x.RADIAN_TO_DEGREE),o.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(o)}return i}}var rg=["shadowBlur","shadowOffsetX","shadowOffsetY"],ig=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function og(e,t,n,r,i){var o=!1;if(!r&&t===(n=n||{}))return!1;if(r||t.opacity!==n.opacity){dg(e,i),o=!0;var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?Gi.opacity:a}(r||t.blend!==n.blend)&&(o||(dg(e,i),o=!0),e.globalCompositeOperation=t.blend||Gi.blend);for(var s=0;s<rg.length;s++){var u=rg[s];(r||t[u]!==n[u])&&(o||(dg(e,i),o=!0),e[u]=e.dpr*(t[u]||0))}return(r||t.shadowColor!==n.shadowColor)&&(o||(dg(e,i),o=!0),e.shadowColor=t.shadowColor||Gi.shadowColor),o}function ag(e,t,n,r,i){var o=pg(t,i.inHover),a=r?null:n&&pg(n,i.inHover)||{};if(o===a)return!1;var s=og(e,o,a,r,i);if((r||o.fill!==a.fill)&&(s||(dg(e,i),s=!0),Zv(o.fill)&&(e.fillStyle=o.fill)),(r||o.stroke!==a.stroke)&&(s||(dg(e,i),s=!0),Zv(o.stroke)&&(e.strokeStyle=o.stroke)),(r||o.opacity!==a.opacity)&&(s||(dg(e,i),s=!0),e.globalAlpha=null==o.opacity?1:o.opacity),t.hasStroke()){var u=o.lineWidth/(o.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(dg(e,i),s=!0),e.lineWidth=u)}for(var c=0;c<ig.length;c++){var l=ig[c],f=l[0];(r||o[f]!==a[f])&&(s||(dg(e,i),s=!0),e[f]=o[f]||l[1])}return s}function sg(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}var ug=1,cg=2,lg=3,fg=4;function dg(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function pg(e,t){return t&&e.__hoverStyle||e.style}function hg(e,t){vg(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function vg(e,t,n,r){var i=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return t.__dirty&=~it,void(t.__isRendered=!1);var o=t.__clipPaths,a=n.prevElClipPaths,s=!1,u=!1;if(a&&!function(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}(o,a)||(a&&a.length&&(dg(e,n),e.restore(),u=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(dg(e,n),e.save(),function(e,t,n){for(var r=!1,i=0;i<e.length;i++){var o=e[i];r=r||o.isZeroArea(),sg(t,o),t.beginPath(),o.buildPath(t,o.shape),t.clip()}n.allClipped=r}(o,e,n),s=!0),n.prevElClipPaths=o),n.allClipped)t.__isRendered=!1;else{t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var c=n.prevEl;c||(u=s=!0);var l,f,d=t instanceof ta&&t.autoBatch&&function(e){var t=Jv(e),n=Qv(e);return!(e.lineDash||!(+t^+n)||t&&"string"!=typeof e.fill||n&&"string"!=typeof e.stroke||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}(t.style);s||(l=i,f=c.transform,l&&f?l[0]!==f[0]||l[1]!==f[1]||l[2]!==f[2]||l[3]!==f[3]||l[4]!==f[4]||l[5]!==f[5]:l||f)?(dg(e,n),sg(e,t)):d||dg(e,n);var p=pg(t,n.inHover);t instanceof ta?(n.lastDrawType!==ug&&(u=!0,n.lastDrawType=ug),ag(e,t,c,u,n),d&&(n.batchFill||n.batchStroke)||e.beginPath(),function(e,t,n,r){var i,o=Qv(n),a=Jv(n),s=n.strokePercent,u=s<1,c=!t.path;t.silent&&!u||!c||t.createPathProxy();var l=t.path||Xv,f=t.__dirty;if(!r){var d=n.fill,p=n.stroke,h=a&&!!d.colorStops,v=o&&!!p.colorStops,g=a&&!!d.image,m=o&&!!p.image,y=void 0,b=void 0,x=void 0,w=void 0,_=void 0;(h||v)&&(_=t.getBoundingRect()),h&&(y=f?Gv(e,d,_):t.__canvasFillGradient,t.__canvasFillGradient=y),v&&(b=f?Gv(e,p,_):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),g&&(x=f||!t.__canvasFillPattern?ng(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=x),m&&(w=f||!t.__canvasStrokePattern?ng(e,p,t):t.__canvasStrokePattern,t.__canvasStrokePattern=x),h?e.fillStyle=y:g&&(x?e.fillStyle=x:a=!1),v?e.strokeStyle=b:m&&(w?e.strokeStyle=w:o=!1)}var S,O,k=t.getGlobalScale();l.setScale(k[0],k[1],t.segmentIgnoreThreshold),e.setLineDash&&n.lineDash&&(S=(i=$v(t))[0],O=i[1]);var E=!0;(c||f&ot)&&(l.setDPR(e.dpr),u?l.setContext(null):(l.setContext(e),E=!1),l.reset(),t.buildPath(l,t.shape,r),l.toStatic(),t.pathUpdated()),E&&l.rebuildPath(e,u?s:1),S&&(e.setLineDash(S),e.lineDashOffset=O),r||(n.strokeFirst?(o&&tg(e,n),a&&eg(e,n)):(a&&eg(e,n),o&&tg(e,n))),S&&e.setLineDash([])}(e,t,p,d),d&&(n.batchFill=p.fill||"",n.batchStroke=p.stroke||"")):t instanceof ia?(n.lastDrawType!==lg&&(u=!0,n.lastDrawType=lg),ag(e,t,c,u,n),function(e,t,n){var r,i=n.text;if(null!=i&&(i+=""),i){e.font=n.font||Vn.a,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var o=void 0,a=void 0;e.setLineDash&&n.lineDash&&(o=(r=$v(t))[0],a=r[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),n.strokeFirst?(Qv(n)&&e.strokeText(i,n.x,n.y),Jv(n)&&e.fillText(i,n.x,n.y)):(Jv(n)&&e.fillText(i,n.x,n.y),Qv(n)&&e.strokeText(i,n.x,n.y)),o&&e.setLineDash([])}}(e,t,p)):t instanceof ua?(n.lastDrawType!==cg&&(u=!0,n.lastDrawType=cg),function(e,t,n,r,i){og(e,pg(t,i.inHover),n&&pg(n,i.inHover),r,i)}(e,t,c,u,n),function(e,t,n){var r=t.__image=Ai(n.image,t.__image,t,t.onload);if(r&&Mi(r)){var i=n.x||0,o=n.y||0,a=t.getWidth(),s=t.getHeight(),u=r.width/r.height;if(null==a&&null!=s?a=s*u:null==s&&null!=a?s=a/u:null==a&&null==s&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var c=n.sx||0,l=n.sy||0;e.drawImage(r,c,l,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){var f=a-(c=n.sx),d=s-(l=n.sy);e.drawImage(r,c,l,f,d,i,o,a,s)}else e.drawImage(r,i,o,a,s)}}(e,t,p)):t.getTemporalDisplayables&&(n.lastDrawType!==fg&&(u=!0,n.lastDrawType=fg),function(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=t.getCursor(),a=r.length;o<a;o++){(l=r[o]).beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),vg(e,l,s,o===a-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}for(var u=0,c=i.length;u<c;u++){var l;(l=i[u]).beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),vg(e,l,s,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}(e,t,n)),d&&r&&dg(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}}function gg(e){return(gg="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)}var mg=new Mv,yg=new zn.a(100),bg=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function xg(e,t){if("none"===e)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i="svg"===r.painter.type;e.dirty&&mg.delete(e);var o=mg.get(e);if(o)return o;var a=Object(x.defaults)(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return function(e){for(var t,o=[n],s=!0,u=0;u<bg.length;++u){var c=a[bg[u]];if(null!=c&&!Object(x.isArray)(c)&&!Object(x.isString)(c)&&!Object(x.isNumber)(c)&&"boolean"!=typeof c){s=!1;break}o.push(c)}if(s){t=o.join(",")+(i?"-svg":"");var l=yg.get(t);l&&(i?e.svgElement=l:e.image=l)}var f,d=function e(t){if(!t||0===t.length)return[[0,0]];if(Object(x.isNumber)(t)){return[[o=Math.ceil(t),o]]}for(var n=!0,r=0;r<t.length;++r)if(!Object(x.isNumber)(t[r])){n=!1;break}if(n)return e([t]);var i=[];for(r=0;r<t.length;++r)if(Object(x.isNumber)(t[r])){var o=Math.ceil(t[r]);i.push([o,o])}else{(o=Object(x.map)(t[r],(function(e){return Math.ceil(e)}))).length%2==1?i.push(o.concat(o)):i.push(o)}return i}(a.dashArrayX),p=function(e){if(!e||"object"===gg(e)&&0===e.length)return[0,0];if(Object(x.isNumber)(e)){var t=Math.ceil(e);return[t,t]}var n=Object(x.map)(e,(function(e){return Math.ceil(e)}));return e.length%2?n.concat(n):n}(a.dashArrayY),h=function e(t){if(!t||0===t.length)return[["rect"]];if(Object(x.isString)(t))return[[t]];for(var n=!0,r=0;r<t.length;++r)if(!Object(x.isString)(t[r])){n=!1;break}if(n)return e([t]);var i=[];for(r=0;r<t.length;++r)Object(x.isString)(t[r])?i.push([t[r]]):i.push(t[r]);return i}(a.symbol),v=(w=d,Object(x.map)(w,(function(e){return wg(e)}))),g=wg(p),m=!i&&Vn.d.createCanvas(),y=i&&{tag:"g",attrs:{},key:"dcl",children:[]},b=function(){for(var e=1,t=0,n=v.length;t<n;++t)e=Hr(e,v[t]);var r=1;for(t=0,n=h.length;t<n;++t)r=Hr(r,h[t].length);e*=r;var i=g*v.length*h.length;0;return{width:Math.max(1,Math.min(e,a.maxTileWidth)),height:Math.max(1,Math.min(i,a.maxTileHeight))}}();var w;m&&(m.width=b.width*n,m.height=b.height*n,f=m.getContext("2d"));(function(){f&&(f.clearRect(0,0,m.width,m.height),a.backgroundColor&&(f.fillStyle=a.backgroundColor,f.fillRect(0,0,m.width,m.height)));for(var e=0,t=0;t<p.length;++t)e+=p[t];if(e<=0)return;var o=-g,s=0,u=0,c=0;for(;o<b.height;){if(s%2==0){for(var l=u/2%h.length,v=0,x=0,w=0;v<2*b.width;){var _=0;for(t=0;t<d[c].length;++t)_+=d[c][t];if(_<=0)break;if(x%2==0){var S=.5*(1-a.symbolSize),O=v+d[c][x]*S,k=o+p[s]*S,E=d[c][x]*a.symbolSize,j=p[s]*a.symbolSize,T=w/2%h[l].length;C(O,k,E,j,h[l][T])}v+=d[c][x],++w,++x===d[c].length&&(x=0)}++c===d.length&&(c=0)}o+=p[s],++u,++s===p.length&&(s=0)}function C(e,t,o,s,u){var c=i?1:n,l=Vv(u,e*c,t*c,o*c,s*c,a.color,a.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(l);d&&y.children.push(d)}else hg(f,l)}})(),s&&yg.put(t,m||y);e.image=m,e.svgElement=y,e.svgWidth=b.width,e.svgHeight=b.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=i?1:1/n,mg.set(e,s),e.dirty=!1,s}function wg(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?2*t:t}var _g=new X,Sg={};function Og(e){return Sg[e]}var kg="undefined"!=typeof window,Eg="5.4.0",jg={zrender:"5.4.0"},Tg=2e3,Cg=1e3,Ag=3e3,Pg={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:Cg,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:Ag,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},Mg=/^[a-zA-Z0-9_]+$/,Ig="__connectUpdateStatus";function Rg(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!this.isDisposed())return Lg(this,e,t);am(this.id)}}function Dg(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Lg(this,e,t)}}function Lg(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),X.prototype[t].apply(e,n)}var Ng,Fg,Bg,Ug,zg,Vg,Hg,Wg,qg,Gg,Yg,Kg,$g,Xg,Qg,Zg,Jg,em,tm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t}(X),nm=tm.prototype;nm.on=Dg("on"),nm.off=Dg("off");var rm=function(e){function t(t,n,r){var i=e.call(this,new bv)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r=r||{},Object(x.isString)(n)&&(n=dm[n]),i._dom=t;var o=i._zr=dr(t,{renderer:r.renderer||"canvas",devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:Object(x.retrieve2)(r.useDirtyRect,!1),useCoarsePointer:Object(x.retrieve2)(r.useCoarsePointer,"auto"),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=Bh(Object(x.bind)(o.flush,o),17),(n=Object(x.clone)(n))&&Vl(n,!0),i._theme=n,i._locale=function(e){if(Object(x.isString)(e)){var t=Cu[e.toUpperCase()]||{};return e===Eu||e===ju?Object(x.clone)(t):Object(x.merge)(Object(x.clone)(t),Object(x.clone)(Cu[Tu]),!1)}return Object(x.merge)(Object(x.clone)(e),Object(x.clone)(Cu[Tu]),!1)}(r.locale||Pu),i._coordSysMgr=new bl;var a=i._api=Qg(i);function s(e,t){return e.__prio-t.__prio}return rt(fm,s),rt(cm,s),i._scheduler=new pv(i,a,cm,fm),i._messageCenter=new tm,i._initEvents(),i.resize=Object(x.bind)(i.resize,i),o.animation.on("frame",i._onframe,i),Gg(o,i),Yg(o,i),Object(x.setAsPrimitive)(i),i}return y(t,e),t.prototype._onframe=function(){if(!this._disposed){em(this);var e=this._scheduler;if(this.__pendingUpdate){var t=this.__pendingUpdate.silent;this.__flagInMainProcess=!0;try{Ng(this),Ug.update.call(this,null,this.__pendingUpdate.updateParams)}catch(e){throw this.__flagInMainProcess=!1,this.__pendingUpdate=null,e}this._zr.flush(),this.__flagInMainProcess=!1,this.__pendingUpdate=null,Wg.call(this,t),qg.call(this,t)}else if(e.unfinished){var n=1,r=this._model,i=this._api;e.unfinished=!1;do{var o=+new Date;e.performSeriesTasks(r),e.performDataProcessorTasks(r),Vg(this,r),e.performVisualTasks(r),Xg(this,this._model,i,"remain",{}),n-=+new Date-o}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this.__flagInMainProcess)if(this._disposed)am(this.id);else{var r,i,o;if(Object(x.isObject)(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,o=t.transition,t=t.notMerge),this.__flagInMainProcess=!0,!this._model||t){var a=new _l(this._api),s=this._theme,u=this._model=new vl;u.scheduler=this._scheduler,u.ssr=this._ssr,u.init(null,null,null,s,this._locale,a)}this._model.setOption(e,{replaceMerge:i},lm);var c={seriesTransition:o,optionChanged:!0};if(n)this.__pendingUpdate={silent:r,updateParams:c},this.__flagInMainProcess=!1,this.getZr().wakeUp();else{try{Ng(this),Ug.update.call(this,null,c)}catch(e){throw this.__pendingUpdate=null,this.__flagInMainProcess=!1,e}this._ssr||this._zr.flush(),this.__pendingUpdate=null,this.__flagInMainProcess=!1,Wg.call(this,r),qg.call(this,r)}}},t.prototype.setTheme=function(){ul()},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||kg&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e=e||{},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e=e||{},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(b.a.svgSupported){var e=this._zr,t=e.storage.getDisplayList();return Object(x.each)(t,(function(e){e.stopAnimation(null,!0)})),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){var t=(e=e||{}).excludeComponents,n=this._model,r=[],i=this;Object(x.each)(t,(function(e){n.eachComponent({mainType:e},(function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return Object(x.each)(r,(function(e){e.group.ignore=!1})),o}am(this.id)},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var t="svg"===e.type,n=this.group,r=Math.min,i=Math.max;if(vm[n]){var o=1/0,a=1/0,s=-1/0,u=-1/0,c=[],l=e&&e.pixelRatio||this.getDevicePixelRatio();Object(x.each)(hm,(function(l,f){if(l.group===n){var d=t?l.getZr().painter.getSvgDom().innerHTML:l.renderToCanvas(Object(x.clone)(e)),p=l.getDom().getBoundingClientRect();o=r(p.left,o),a=r(p.top,a),s=i(p.right,s),u=i(p.bottom,u),c.push({dom:d,left:p.left,top:p.top})}}));var f=(s*=l)-(o*=l),d=(u*=l)-(a*=l),p=Vn.d.createCanvas(),h=dr(p,{renderer:t?"svg":"canvas"});if(h.resize({width:f,height:d}),t){var v="";return Object(x.each)(c,(function(e){var t=e.left-o,n=e.top-a;v+='<g transform="translate('+t+","+n+')">'+e.dom+"</g>"})),h.painter.getSvgRoot().innerHTML=v,e.connectedBackgroundColor&&h.painter.setBackgroundColor(e.connectedBackgroundColor),h.refreshImmediately(),h.painter.toDataURL()}return e.connectedBackgroundColor&&h.add(new ga({shape:{x:0,y:0,width:f,height:d},style:{fill:e.connectedBackgroundColor}})),Object(x.each)(c,(function(e){var t=new ua({style:{x:e.left*l-o,y:e.top*l-a,image:e.dom}});h.add(t)})),h.refreshImmediately(),p.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}am(this.id)},t.prototype.convertToPixel=function(e,t){return zg(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return zg(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){if(!this._disposed){var n,r=si(this._model,e);return Object(x.each)(r,(function(e,r){r.indexOf("Models")>=0&&Object(x.each)(e,(function(e){var i=e.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(t);else if("seriesModels"===r){var o=this._chartsMap[e.__viewId];o&&o.containPoint&&(n=n||o.containPoint(t,e))}else 0}),this)}),this),!!n}am(this.id)},t.prototype.getVisual=function(e,t){var n=si(this._model,e,{defaultMainType:"series"});var r=n.seriesModel.getData(),i=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?r.indexOfRawIndex(n.dataIndex):null;return null!=i?Ov(r,i,t):kv(r,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e,t,n,r=this;Object(x.each)(om,(function(e){var t=function(t){var n,i=r.getModel(),o=t.target;if("globalout"===e?n={}:o&&Cv(o,(function(e){var t=Ia(e);if(t&&null!=t.dataIndex){var r=t.dataModel||i.getSeriesByIndex(t.seriesIndex);return n=r&&r.getDataParams(t.dataIndex,t.dataType)||{},!0}if(t.eventData)return n=Object(x.extend)({},t.eventData),!0}),!0),n){var a=n.componentType,s=n.componentIndex;"markLine"!==a&&"markPoint"!==a&&"markArea"!==a||(a="series",s=n.seriesIndex);var u=a&&null!=s&&i.getComponent(a,s),c=u&&r["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];0,n.event=t,n.type=e,r._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:u,view:c},r.trigger(e,n)}};t.zrEventfulCallAtLast=!0,r._zr.on(e,t,r)})),Object(x.each)(um,(function(e,t){r._messageCenter.on(t,(function(e){this.trigger(t,e)}),r)})),Object(x.each)(["selectchanged"],(function(e){r._messageCenter.on(e,(function(t){this.trigger(e,t)}),r)})),e=this._messageCenter,t=this,n=this._api,e.on("selectchanged",(function(e){var r=n.getModel();e.isFromClick?(Tv("map","selectchanged",t,r,e),Tv("pie","selectchanged",t,r,e)):"select"===e.fromAction?(Tv("map","selected",t,r,e),Tv("pie","selected",t,r,e)):"unselect"===e.fromAction&&(Tv("map","unselected",t,r,e),Tv("pie","unselected",t,r,e))}))},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?am(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)am(this.id);else{this._disposed=!0,this.getDom()&&di(this.getDom(),ym,"");var e=this._api,t=this._model;Object(x.each)(this._componentsViews,(function(n){n.dispose(t,e)})),Object(x.each)(this._chartsViews,(function(n){n.dispose(t,e)})),this._zr.dispose(),this._dom=this._model=this._chartsMap=this._componentsMap=this._chartsViews=this._componentsViews=this._scheduler=this._api=this._zr=this._throttledZrFlush=this._theme=this._coordSysMgr=this._messageCenter=null,delete hm[this.id]}},t.prototype.resize=function(e){if(!this.__flagInMainProcess)if(this._disposed)am(this.id);else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),r=e&&e.silent;this.__pendingUpdate&&(null==r&&(r=this.__pendingUpdate.silent),n=!0,this.__pendingUpdate=null),this.__flagInMainProcess=!0;try{n&&Ng(this),Ug.update.call(this,{type:"resize",animation:Object(x.extend)({duration:0},e&&e.animation)})}catch(e){throw this.__flagInMainProcess=!1,e}this.__flagInMainProcess=!1,Wg.call(this,r),qg.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed)am(this.id);else if(Object(x.isObject)(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),pm[e]){var n=pm[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){this._disposed?am(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=Object(x.extend)({},e);return t.type=um[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)am(this.id);else if(Object(x.isObject)(t)||(t={silent:!!t}),sm[e.type]&&this._model)if(this.__flagInMainProcess)this._pendingActions.push(e);else{var n=t.silent;Hg.call(this,e,n);var r=t.flush;r?this._zr.flush():!1!==r&&b.a.browser.weChat&&this._throttledZrFlush(),Wg.call(this,n),qg.call(this,n)}},t.prototype.updateLabelLayout=function(){_g.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)am(this.id);else{var t=e.seriesIndex;0,this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(e){e.clearColorPalette(),e.eachSeries((function(e){e.clearColorPalette()}))}function t(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];"emphasis"!==i&&"blur"!==i&&"select"!==i&&t.push(i)}e.selected&&e.states.select&&t.push("select"),e.hoverState===za&&e.states.emphasis?t.push("emphasis"):e.hoverState===Ua&&e.states.blur&&t.push("blur"),e.useStates(t)}function n(e,t){if(!e.preventAutoZ){var n=e.get("z")||0,r=e.get("zlevel")||0;t.eachRendered((function(e){return function e(t,n,r,i){var o=t.getTextContent(),a=t.getTextGuideLine();if(t.isGroup)for(var s=t.childrenRef(),u=0;u<s.length;u++)i=Math.max(e(s[u],n,r,i),i);else t.z=n,t.zlevel=r,i=Math.max(t.z2,i);o&&(o.z=n,o.zlevel=r,isFinite(i)&&(o.z2=i+2));if(a){var c=t.textGuideLineConfig;a.z=n,a.zlevel=r,isFinite(i)&&(a.z2=i+(c&&c.showAbove?1:-1))}return i}(e,n,r,-1/0),!0}))}}function r(e,t){t.eachRendered((function(e){if(!Vs(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&(e.stateTransition=null),t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&(e.prevStates=null)}}))}function i(e,n){var r=e.getModel("stateAnimation"),i=e.isAnimationEnabled(),o=r.get("duration"),a=o>0?{duration:o,delay:r.get("delay"),easing:r.get("easing")}:null;n.eachRendered((function(e){if(e.states&&e.states.emphasis){if(Vs(e))return;if(e instanceof ta&&function(e){var t=Na(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}(e),e.__dirty){var n=e.prevStates;n&&e.useStates(n)}if(i){e.stateTransition=a;var r=e.getTextContent(),o=e.getTextGuideLine();r&&(r.stateTransition=a),o&&(o.stateTransition=a)}e.__dirty&&t(e)}}))}Ng=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),Fg(e,!0),Fg(e,!1),t.plan()},Fg=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,o=t?e._componentsMap:e._chartsMap,a=e._zr,s=e._api,u=0;u<i.length;u++)i[u].__alive=!1;function c(e){var u=e.__requireNewView;e.__requireNewView=!1;var c="_ec_"+e.id+"_"+e.type,l=!u&&o[c];if(!l){var f=yi(e.type);0,(l=new(t?Td.getClass(f.main,f.sub):Dh.getClass(f.sub))).init(n,s),o[c]=l,i.push(l),a.add(l.group)}e.__viewId=l.__id=c,l.__alive=!0,l.__model=e,l.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(l,e,n,s)}t?n.eachComponent((function(e,t){"series"!==e&&c(t)})):n.eachSeries(c);for(u=0;u<i.length;){var l=i[u];l.__alive?u++:(!t&&l.renderTask.dispose(),a.remove(l.group),l.dispose(n,s),i.splice(u,1),o[l.__id]===l&&delete o[l.__id],l.__id=l.group.__ecComponentInfo=null)}},Bg=function(e,t,n,r,i){var o=e._model;if(o.setUpdatePayload(n),r){var a={};a[r+"Id"]=n[r+"Id"],a[r+"Index"]=n[r+"Index"],a[r+"Name"]=n[r+"Name"];var s={mainType:r,query:a};i&&(s.subType=i);var u,c=n.excludeSeriesId;null!=c&&(u=Object(x.createHashMap)(),Object(x.each)(Yr(c),(function(e){var t=ti(e,null);null!=t&&u.set(t,!0)}))),o&&o.eachComponent(s,(function(t){if(!(u&&null!==u.get(t.id)))if(Ls(n))if(t instanceof Ed)n.type!==Ga||n.notBlur||t.get(["emphasis","disabled"])||function(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var o=ii(i,t);o=(Object(x.isArray)(o)?o[0]:o)||0;var a=i.getItemGraphicEl(o);if(!a)for(var s=i.count(),u=0;!a&&u<s;)a=i.getItemGraphicEl(u++);if(a){var c=Ia(a);_s(r,c.focus,c.blurScope,n)}else{var l=e.get(["emphasis","focus"]),f=e.get(["emphasis","blurScope"]);null!=l&&_s(r,l,f,n)}}}(t,n,e._api);else{var r=Os(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,o=r.dispatchers;n.type===Ga&&i&&!n.notBlur&&Ss(t.mainType,t.componentIndex,e._api),o&&Object(x.each)(o,(function(e){n.type===Ga?hs(e):vs(e)}))}else Ds(n)&&t instanceof Ed&&(!function(e,t,n){if(Ds(t)){var r=t.dataType,i=ii(e.getData(r),t);Object(x.isArray)(i)||(i=[i]),e[t.type===Xa?"toggleSelect":t.type===Ka?"select":"unselect"](i,r)}}(t,n,e._api),ks(t),Jg(e))}),e),o&&o.eachComponent(s,(function(t){u&&null!==u.get(t.id)||l(e["series"===r?"_chartsMap":"_componentsMap"][t.__viewId])}),e)}else Object(x.each)([].concat(e._componentsViews).concat(e._chartsViews),l);function l(r){r&&r.__alive&&r[t]&&r[t](r.__model,o,e._api,n)}},Ug={prepareAndUpdate:function(e){Ng(this),Ug.update.call(this,e,{optionChanged:null!=e.newOption})},update:function(t,n){var r=this._model,i=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(r){r.setUpdatePayload(t),s.restoreData(r,t),s.performSeriesTasks(r),a.create(r,i),s.performDataProcessorTasks(r,t),Vg(this,r),a.update(r,i),e(r),s.performVisualTasks(r,t),Kg(this,r,i,t,n);var u=r.get("backgroundColor")||"transparent",c=r.get("darkMode");o.setBackgroundColor(u),null!=c&&"auto"!==c&&o.setDarkMode(c),_g.trigger("afterupdate",r,i)}},updateTransform:function(t){var n=this,r=this._model,i=this._api;if(r){r.setUpdatePayload(t);var o=[];r.eachComponent((function(e,a){if("series"!==e){var s=n.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var u=s.updateTransform(a,r,i,t);u&&u.update&&o.push(s)}else o.push(s)}}));var a=Object(x.createHashMap)();r.eachSeries((function(e){var o=n._chartsMap[e.__viewId];if(o.updateTransform){var s=o.updateTransform(e,r,i,t);s&&s.update&&a.set(e.uid,1)}else a.set(e.uid,1)})),e(r),this._scheduler.performVisualTasks(r,t,{setDirty:!0,dirtyMap:a}),Xg(this,r,i,t,{},a),_g.trigger("afterupdate",r,i)}},updateView:function(t){var n=this._model;n&&(n.setUpdatePayload(t),Dh.markUpdateMethod(t,"updateView"),e(n),this._scheduler.performVisualTasks(n,t,{setDirty:!0}),Kg(this,n,this._api,t,{}),_g.trigger("afterupdate",n,this._api))},updateVisual:function(t){var n=this,r=this._model;r&&(r.setUpdatePayload(t),r.eachSeries((function(e){e.getData().clearAllVisual()})),Dh.markUpdateMethod(t,"updateVisual"),e(r),this._scheduler.performVisualTasks(r,t,{visualType:"visual",setDirty:!0}),r.eachComponent((function(e,i){if("series"!==e){var o=n.getViewOfComponentModel(i);o&&o.__alive&&o.updateVisual(i,r,n._api,t)}})),r.eachSeries((function(e){n._chartsMap[e.__viewId].updateVisual(e,r,n._api,t)})),_g.trigger("afterupdate",r,this._api))},updateLayout:function(e){Ug.update.call(this,e)}},zg=function(e,t,n,r){if(e._disposed)am(e.id);else{for(var i,o=e._model,a=e._coordSysMgr.getCoordinateSystems(),s=si(o,n),u=0;u<a.length;u++){var c=a[u];if(c[t]&&null!=(i=c[t](o,s,r)))return i}0}},Vg=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries((function(e){r.updateStreamModes(e,n[e.__viewId])}))},Hg=function(e,t){var n=this,r=this.getModel(),i=e.type,o=e.escapeConnect,a=sm[i],s=a.actionInfo,u=(s.update||"update").split(":"),c=u.pop(),l=null!=u[0]&&yi(u[0]);this.__flagInMainProcess=!0;var f=[e],d=!1;e.batch&&(d=!0,f=Object(x.map)(e.batch,(function(t){return(t=Object(x.defaults)(Object(x.extend)({},t),e)).batch=null,t})));var p,h=[],v=Ds(e),g=Ls(e);if(g&&ws(this._api),Object(x.each)(f,(function(t){if((p=(p=a.action(t,n._model,n._api))||Object(x.extend)({},t)).type=s.event||p.type,h.push(p),g){var r=ui(e),i=r.queryOptionMap,o=r.mainTypeSpecified?i.keys()[0]:"series";Bg(n,c,t,o),Jg(n)}else v?(Bg(n,c,t,"series"),Jg(n)):l&&Bg(n,c,t,l.main,l.sub)})),"none"!==c&&!g&&!v&&!l)try{this.__pendingUpdate?(Ng(this),Ug.update.call(this,e),this.__pendingUpdate=null):Ug[c].call(this,e)}catch(e){throw this.__flagInMainProcess=!1,e}if(p=d?{type:s.event||i,escapeConnect:o,batch:h}:h[0],this.__flagInMainProcess=!1,!t){var m=this._messageCenter;if(m.trigger(p.type,p),v){var y={type:"selectchanged",escapeConnect:o,selected:Es(r),isFromClick:e.isFromClick||!1,fromAction:e.type,fromActionPayload:e};m.trigger(y.type,y)}}},Wg=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();Hg.call(this,n,e)}},qg=function(e){!e&&this.trigger("updated")},Gg=function(e,t){e.on("rendered",(function(n){t.trigger("rendered",n),!e.animation.isFinished()||t.__pendingUpdate||t._scheduler.unfinished||t._pendingActions.length||t.trigger("finished")}))},Yg=function(e,t){e.on("mouseover",(function(e){var n=Cv(e.target,Rs);n&&(!function(e,t,n){var r=Ia(e),i=Os(r.componentMainType,r.componentIndex,r.componentHighDownName,n),o=i.dispatchers,a=i.focusSelf;o?(a&&Ss(r.componentMainType,r.componentIndex,n),Object(x.each)(o,(function(e){return ds(e,t)}))):(_s(r.seriesIndex,r.focus,r.blurScope,n),"self"===r.focus&&Ss(r.componentMainType,r.componentIndex,n),ds(e,t))}(n,e,t._api),Jg(t))})).on("mouseout",(function(e){var n=Cv(e.target,Rs);n&&(!function(e,t,n){ws(n);var r=Ia(e),i=Os(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?Object(x.each)(i,(function(e){return ps(e,t)})):ps(e,t)}(n,e,t._api),Jg(t))})).on("click",(function(e){var n=Cv(e.target,(function(e){return null!=Ia(e).dataIndex}),!0);if(n){var r=n.selected?"unselect":"select",i=Ia(n);t._api.dispatchAction({type:r,dataType:i.dataType,dataIndexInside:i.dataIndex,seriesIndex:i.seriesIndex,isFromClick:!0})}}))},Kg=function(e,t,n,r,i){!function(e){var t=[],n=[],r=!1;if(e.eachComponent((function(e,i){var o=i.get("zlevel")||0,a=i.get("z")||0,s=i.getZLevelKey();r=r||!!s,("series"===e?n:t).push({zlevel:o,z:a,idx:i.componentIndex,type:e,key:s})})),r){var i,o,a=t.concat(n);rt(a,(function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel})),Object(x.each)(a,(function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,a=t.key;null!=i&&(r=Math.max(i,r)),a?(r===i&&a!==o&&r++,o=a):o&&(r===i&&r++,o=""),i=r,n.setZLevel(r)}))}}(t),$g(e,t,n,r,i),Object(x.each)(e._chartsViews,(function(e){e.__alive=!1})),Xg(e,t,n,r,i),Object(x.each)(e._chartsViews,(function(e){e.__alive||e.remove(t,n)}))},$g=function(e,t,o,a,s,u){Object(x.each)(u||e._componentsViews,(function(e){var s=e.__model;r(s,e),e.render(s,t,o,a),n(s,e),i(s,e)}))},Xg=function(e,t,o,a,s,u){var c=e._scheduler;s=Object(x.extend)(s||{},{updatedSeries:t.getSeries()}),_g.trigger("series:beforeupdate",t,o,s);var l=!1;t.eachSeries((function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var i=n.renderTask;c.updatePayload(i,a),r(t,n),u&&u.get(t.uid)&&i.dirty(),i.perform(c.getPerformArgs(i))&&(l=!0),n.group.silent=!!t.get("silent"),function(e,t){var n=e.get("blendMode")||null;t.eachRendered((function(e){e.isGroup||(e.style.blend=n)}))}(t,n),ks(t)})),c.unfinished=l||c.unfinished,_g.trigger("series:layoutlabels",t,o,s),_g.trigger("series:transition",t,o,s),t.eachSeries((function(t){var r=e._chartsMap[t.__viewId];n(t,r),i(t,r)})),function(e,t){var n=e._zr.storage,r=0;n.traverse((function(e){e.isGroup||r++})),r>t.get("hoverLayerThreshold")&&!b.a.node&&!b.a.worker&&t.eachSeries((function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered((function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)}))}}))}(e,t),_g.trigger("series:afterupdate",t,o,s)},Jg=function(e){e.__needsUpdateStatus=!0,e.getZr().wakeUp()},em=function(e){e.__needsUpdateStatus&&(e.getZr().storage.traverse((function(e){Vs(e)||t(e)})),e.__needsUpdateStatus=!1)},Qg=function(e){return new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return y(n,t),n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){hs(t,n),Jg(e)},n.prototype.leaveEmphasis=function(t,n){vs(t,n),Jg(e)},n.prototype.enterBlur=function(t){gs(t),Jg(e)},n.prototype.leaveBlur=function(t){ms(t),Jg(e)},n.prototype.enterSelect=function(t){ys(t),Jg(e)},n.prototype.leaveSelect=function(t){bs(t),Jg(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n}(ml))(e)},Zg=function(e){function t(e,t){for(var n=0;n<e.length;n++){e[n][Ig]=t}}Object(x.each)(um,(function(n,r){e._messageCenter.on(r,(function(n){if(vm[e.group]&&0!==e[Ig]){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];Object(x.each)(hm,(function(t){t!==e&&t.group===e.group&&i.push(t)})),t(i,0),Object(x.each)(i,(function(e){1!==e[Ig]&&e.dispatchAction(r)})),t(i,2)}}))}))}}(),t}(X),im=rm.prototype;im.on=Rg("on"),im.off=Rg("off"),im.one=function(e,t,n){var r=this;ul(),this.on.call(this,e,(function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&t.apply&&t.apply(this,i),r.off(e,n)}),n)};var om=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function am(e){0}var sm={},um={},cm=[],lm=[],fm=[],dm={},pm={},hm={},vm={},gm=+new Date-0,mm=+new Date-0,ym="_echarts_instance_";function bm(e,t,n){var r=!(n&&n.ssr);if(r){0;var i=Om(e);if(i)return i;0}var o=new rm(e,t,n);return o.id="ec_"+gm++,hm[o.id]=o,r&&di(e,ym,o.id),Zg(o),_g.trigger("afterinit",o),o}function xm(e){if(Object(x.isArray)(e)){var t=e;e=null,Object(x.each)(t,(function(t){null!=t.group&&(e=t.group)})),e=e||"g_"+mm++,Object(x.each)(t,(function(t){t.group=e}))}return vm[e]=!0,e}function wm(e){vm[e]=!1}var _m=wm;function Sm(e){Object(x.isString)(e)?e=hm[e]:e instanceof rm||(e=Om(e)),e instanceof rm&&!e.isDisposed()&&e.dispose()}function Om(e){return hm[function(e,t){return e.getAttribute?e.getAttribute(t):e[t]}(e,ym)]}function km(e){return hm[e]}function Em(e,t){dm[e]=t}function jm(e){Object(x.indexOf)(lm,e)<0&&lm.push(e)}function Tm(e,t){Fm(cm,e,t,Tg)}function Cm(e){Pm("afterinit",e)}function Am(e){Pm("afterupdate",e)}function Pm(e,t){_g.on(e,t)}function Mm(e,t,n){Object(x.isFunction)(t)&&(n=t,t="");var r=Object(x.isObject)(e)?e.type:[e,e={event:t}][0];e.event=(e.event||r).toLowerCase(),t=e.event,um[t]||(Object(x.assert)(Mg.test(r)&&Mg.test(t)),sm[r]||(sm[r]={action:n,actionInfo:e}),um[t]=r)}function Im(e,t){bl.register(e,t)}function Rm(e){var t=bl.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function Dm(e,t){Fm(fm,e,t,Cg,"layout")}function Lm(e,t){Fm(fm,e,t,Ag,"visual")}var Nm=[];function Fm(e,t,n,r,i){if((Object(x.isFunction)(t)||Object(x.isObject)(t))&&(n=t,t=r),!(Object(x.indexOf)(Nm,n)>=0)){Nm.push(n);var o=pv.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function Bm(e,t){pm[e]=t}function Um(e){Object(Vn.e)({createCanvas:e})}function zm(e,t,n){var r=Og("registerMap");r&&r(e,t,n)}function Vm(e){var t=Og("getMap");return t&&t(e)}var Hm=function(e){var t=(e=Object(x.clone)(e)).type;t||cl("");var n=t.split(":");2!==n.length&&cl("");var r=!1;"echarts"===n[0]&&(t=n[1],r=!0),e.__isBuiltIn=r,Lf.set(t,e)};Lm(2e3,Yh),Lm(4500,$h),Lm(4500,Xh),Lm(2e3,_v),Lm(4500,Sv),Lm(7e3,(function(e,t){e.eachRawSeries((function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each((function(e){var n=r.getItemVisual(e,"decal");n&&(r.ensureUniqueItemVisual(e,"style").decal=xg(n,t))}));var i=r.getVisual("decal");if(i)r.getVisual("style").decal=xg(i,t)}}))})),jm(Vl),Tm(900,(function(e){var t=Object(x.createHashMap)();e.eachSeries((function(e){var n=e.get("stack");if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:e};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;r.length&&i.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(o)}})),t.each(Hl)})),Bm("default",(function(e,t){t=t||{},x.defaults(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new ur,r=new ga({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i,o=new Ma({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new ga({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return n.add(a),t.showSpinner&&((i=new Bp({shape:{startAngle:-Qh/2,endAngle:-Qh/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*Qh/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*Qh/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=o.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-2*s-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),c=e.getHeight()/2;t.showSpinner&&i.setShape({cx:u,cy:c}),a.setShape({x:u-s,y:c-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n})),Mm({type:Ga,event:Ga,update:Ga},x.noop),Mm({type:Ya,event:Ya,update:Ya},x.noop),Mm({type:Ka,event:Ka,update:Ka},x.noop),Mm({type:$a,event:$a,update:$a},x.noop),Mm({type:Xa,event:Xa,update:Xa},x.noop),Em("light",vv),Em("dark",yv);var Wm={},qm=[],Gm={registerPreprocessor:jm,registerProcessor:Tm,registerPostInit:Cm,registerPostUpdate:Am,registerUpdateLifecycle:Pm,registerAction:Mm,registerCoordinateSystem:Im,registerLayout:Dm,registerVisual:Lm,registerTransform:Hm,registerLoading:Bm,registerMap:zm,registerImpl:function(e,t){Sg[e]=t},PRIORITY:Pg,ComponentModel:Ic,ComponentView:Td,SeriesModel:Ed,ChartView:Dh,registerComponentModel:function(e){Ic.registerClass(e)},registerComponentView:function(e){Td.registerClass(e)},registerSeriesModel:function(e){Ed.registerClass(e)},registerChartView:function(e){Dh.registerClass(e)},registerSubTypeDefaulter:function(e,t){Ic.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){gr(e,t)}};function Ym(e){Object(x.isArray)(e)?Object(x.each)(e,(function(e){Ym(e)})):Object(x.indexOf)(qm,e)>=0||(qm.push(e),Object(x.isFunction)(e)&&(e={install:e}),e.install(Gm))}function Km(e){return null==e?0:e.length||1}function $m(e){return e}var Xm=function(){function e(e,t,n,r,i,o){this._old=e,this._new=t,this._oldKeyGetter=n||$m,this._newKeyGetter=r||$m,this.context=i,this._diffModeMultiple="multiple"===o}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,r,"_oldKeyGetter"),this._initIndexMap(t,n,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var a=r[o],s=n[a],u=Km(s);if(u>1){var c=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(c,o)}else 1===u?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],o=[];this._initIndexMap(e,n,i,"_oldKeyGetter"),this._initIndexMap(t,r,o,"_newKeyGetter");for(var a=0;a<i.length;a++){var s=i[a],u=n[s],c=r[s],l=Km(u),f=Km(c);if(l>1&&1===f)this._updateManyToOne&&this._updateManyToOne(c,u),r[s]=null;else if(1===l&&f>1)this._updateOneToMany&&this._updateOneToMany(c,u),r[s]=null;else if(1===l&&1===f)this._update&&this._update(c,u),r[s]=null;else if(l>1&&f>1)this._updateManyToMany&&this._updateManyToMany(c,u),r[s]=null;else if(l>1)for(var d=0;d<l;d++)this._remove&&this._remove(u[d]);else this._remove&&this._remove(u)}this._performRestAdd(o,r)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[r],o=Km(i);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(i[a]);else 1===o&&this._add&&this._add(i);t[r]=null}},e.prototype._initIndexMap=function(e,t,n,r){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var a="_ec_"+this[r](e[o],o);if(i||(n[o]=a),t){var s=t[a],u=Km(s);0===u?(t[a]=o,i&&n.push(a)):1===u?t[a]=[s,o]:s.push(o)}}},e}(),Qm=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function Zm(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function Jm(e){return"category"===e?"ordinal":"time"===e?"time":"float"}var ey=function(e){this.otherDims={},null!=e&&x.extend(this,e)},ty=oi(),ny={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},ry=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=ay(this.source)))},e.prototype.getSourceDimensionIndex=function(e){return Object(x.retrieve2)(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=nf(this.source),n=!sy(e),r="",i=[],o=0,a=0;o<e;o++){var s=void 0,u=void 0,c=void 0,l=this.dimensions[a];if(l&&l.storeDimIndex===o)s=t?l.name:null,u=l.type,c=l.ordinalMeta,a++;else{var f=this.getSourceDimension(o);f&&(s=t?f.name:null,u=f.type)}i.push({property:s,type:u,ordinalMeta:c}),!t||null==s||l&&l.isCalculationCoord||(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+="$",r+=ny[u]||"f",c&&(r+=c.uid),r+="$"}var d=this.source;return{dimensions:i,hash:[d.seriesLayoutBy,d.startIndex,r].join("$$")}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(r=i.name),n++;else{var o=this.getSourceDimension(t);o&&(r=o.name)}e.push(r)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function iy(e){return e instanceof ry}function oy(e){for(var t=Object(x.createHashMap)(),n=0;n<(e||[]).length;n++){var r=e[n],i=Object(x.isObject)(r)?r.name:r;null!=i&&null==t.get(i)&&t.set(i,n)}return t}function ay(e){var t=ty(e);return t.dimNameMap||(t.dimNameMap=oy(e.dimensionsDefine))}function sy(e){return e>30}var uy,cy,ly,fy,dy,py,hy,vy=x.isObject,gy=x.map,my="undefined"==typeof Int32Array?Array:Int32Array,yy=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],by=["_approximateExtent"],xy=function(){function e(e,t){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r=!1;iy(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n=n||["x","y"];for(var i={},o=[],a={},s=!1,u={},c=0;c<n.length;c++){var l=n[c],f=x.isString(l)?new ey({name:l}):l instanceof ey?l:new ey(l),d=f.name;f.type=f.type||"float",f.coordDim||(f.coordDim=d,f.coordDimIndex=0);var p=f.otherDims=f.otherDims||{};o.push(d),i[d]=f,null!=u[d]&&(s=!0),f.createInvertedIndices&&(a[d]=[]),0===p.itemName&&(this._nameDimIdx=c),0===p.itemId&&(this._idDimIdx=c),r&&(f.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=a,this._dimOmitted){var h=this._dimIdxToName=x.createHashMap();x.each(o,(function(e){h.set(i[e].storeDimIndex,e)}))}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(null==t)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(null!=n)return n;var r=this._schema.getSourceDimension(t);return r?r.name:void 0},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(null!=t)return t;if(null==e)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(x.isNumber(e)||null!=e&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(null==t)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var r,i=this;if(e instanceof Kf&&(r=e),!r){var o=this.dimensions,a=Xl(e)||x.isArrayLike(e)?new rf(e,o.length):e;r=new Kf;var s=gy(o,(function(e){return{type:i._dimInfos[e].type,property:e}}));r.initData(a,s,n)}this._store=r,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),this._dimSummary=function(e,t){var n={},r=n.encode={},i=Object(x.createHashMap)(),o=[],a=[],s={};Object(x.each)(e.dimensions,(function(t){var n,u=e.getDimensionInfo(t),c=u.coordDim;if(c){0;var l=u.coordDimIndex;Zm(r,c)[l]=t,u.isExtraCoord||(i.set(c,1),"ordinal"!==(n=u.type)&&"time"!==n&&(o[0]=t),Zm(s,c)[l]=e.getDimensionIndex(u.name)),u.defaultTooltip&&a.push(t)}Nc.each((function(e,t){var n=Zm(r,t),i=u.otherDims[t];null!=i&&!1!==i&&(n[i]=u.name)}))}));var u=[],c={};i.each((function(e,t){var n=r[t];c[t]=n[0],u=u.concat(n)})),n.dataDimsOnCoord=u,n.dataDimIndicesOnCoord=Object(x.map)(u,(function(t){return e.getDimensionInfo(t).storeDimIndex})),n.encodeFirstDimNotExtra=c;var l=r.label;l&&l.length&&(o=l.slice());var f=r.tooltip;return f&&f.length?a=f.slice():a.length||(a=o.slice()),r.defaultedLabel=o,r.defaultedTooltip=a,n.userOutput=new Qm(s,t),n}(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t.length),r=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var a=r;a<i;a++){var s=a-r;this._nameList[a]=t[s],o&&hy(this,a)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var r=this._dimInfos[t[n]];r.ordinalMeta&&e.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return null==this._idDimIdx&&e.getSource().sourceFormat!==Vc&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===Fc&&!n.pure)for(var o=[],a=e;a<t;a++){var s=n.getItem(a,o);if(!this.hasItemOption&&Qr(s)&&(this.hasItemOption=!0),s){var u=s.name;null==r[a]&&null!=u&&(r[a]=ti(u,null));var c=s.id;null==i[a]&&null!=c&&(i[a]=ti(c,null))}}if(this._shouldMakeIdFromName())for(a=e;a<t;a++)hy(this,a);uy(this)}},e.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){vy(e)?x.extend(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return null==n&&null!=this._nameDimIdx&&(n=ly(this,this._nameDimIdx,t)),null==n&&(n=""),n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),r=this._store.getOrdinalMeta(e);return r?r.categories[n]:n},e.prototype.getId=function(e){return cy(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.get(r.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.getByRawIndex(r.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,r=this._store;return x.isArray(e)?r.getValues(gy(e,(function(e){return n._getStoreDimIndex(e)})),t):r.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=(e&&this._invertedIndicesMap[e])[t];return null==n||isNaN(n)?-1:n},e.prototype.indicesOfNearest=function(e,t,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,n)},e.prototype.each=function(e,t,n){x.isFunction(e)&&(n=t,t=e,e=[]);var r=n||this,i=gy(fy(e),this._getStoreDimIndex,this);this._store.each(i,r?x.bind(t,r):t)},e.prototype.filterSelf=function(e,t,n){x.isFunction(e)&&(n=t,t=e,e=[]);var r=n||this,i=gy(fy(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?x.bind(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={},r=x.keys(e),i=[];return x.each(r,(function(r){var o=t._getStoreDimIndex(r);n[o]=e[r],i.push(o)})),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){x.isFunction(e)&&(n=t,t=e,e=[]),n=n||this;var r=[];return this.each(e,(function(){r.push(t&&t.apply(this,arguments))}),n),r},e.prototype.map=function(e,t,n,r){var i=n||r||this,o=gy(fy(e),this._getStoreDimIndex,this),a=py(this);return a._store=this._store.map(o,i?x.bind(t,i):t),a},e.prototype.modify=function(e,t,n,r){var i=n||r||this;var o=gy(fy(e),this._getStoreDimIndex,this);this._store.modify(o,i?x.bind(t,i):t)},e.prototype.downSample=function(e,t,n,r){var i=py(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.lttbDownSample=function(e,t){var n=py(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new _u(n,t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new Xm(e?e.getStore().getIndices():[],this.getStore().getIndices(),(function(t){return cy(e,t)}),(function(e){return cy(t,e)}))},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},vy(e)?x.extend(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],r=n&&n[t];return null==r?this.getVisual(t):r},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||(r=n[e]={});var i=r[t];return null==i&&(i=this.getVisual(t),x.isArray(i)?i=i.slice():vy(i)&&(i=x.extend({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,vy(t)?x.extend(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){vy(e)?x.extend(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?x.extend(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;Ra(n,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){x.each(this._graphicEls,(function(n,r){n&&e&&e.call(t,n,r)}))},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:gy(this.dimensions,this._getDimInfo,this),this.hostModel)),dy(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];x.isFunction(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(x.slice(arguments)))})},e.internalField=(uy=function(e){var t=e._invertedIndicesMap;x.each(t,(function(n,r){var i=e._dimInfos[r],o=i.ordinalMeta,a=e._store;if(o){n=t[r]=new my(o.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<a.count();s++)n[a.get(i.storeDimIndex,s)]=s}}))},ly=function(e,t,n){return ti(e._getCategory(t,n),null)},cy=function(e,t){var n=e._idList[t];return null==n&&null!=e._idDimIdx&&(n=ly(e,e._idDimIdx,t)),null==n&&(n="e\0\0"+t),n},fy=function(e){return x.isArray(e)||(e=null!=e?[e]:[]),e},py=function(t){var n=new e(t._schema?t._schema:gy(t.dimensions,t._getDimInfo,t),t.hostModel);return dy(n,t),n},dy=function(e,t){x.each(yy.concat(t.__wrappedMethods||[]),(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e.__wrappedMethods=t.__wrappedMethods,x.each(by,(function(n){e[n]=x.clone(t[n])})),e._calculationInfo=x.extend({},t._calculationInfo)},void(hy=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,o=e._idDimIdx,a=n[t],s=r[t];if(null==a&&null!=i&&(n[t]=a=ly(e,i,t)),null==s&&null!=o&&(r[t]=s=ly(e,o,t)),null==s&&null!=a){var u=e._nameRepeatCount,c=u[a]=(u[a]||0)+1;s=a,c>1&&(s+="__ec__"+c),r[t]=s}})),e}();function wy(e,t){return _y(e,t).dimensions}function _y(e,t){Xl(e)||(e=Zl(e));var n=(t=t||{}).coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=Object(x.createHashMap)(),o=[],a=function(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return Object(x.each)(t,(function(e){var t;Object(x.isObject)(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))})),i}(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&sy(a),u=r===e.dimensionsDefine,c=u?ay(e):oy(r),l=t.encodeDefine;!l&&t.encodeDefaulter&&(l=t.encodeDefaulter(e,a));for(var f=Object(x.createHashMap)(l),d=new Hf(a),p=0;p<d.length;p++)d[p]=-1;function h(e){var t=d[e];if(t<0){var n=r[e],i=Object(x.isObject)(n)?n:{name:n},a=new ey,s=i.name;null!=s&&null!=c.get(s)&&(a.name=a.displayName=s),null!=i.type&&(a.type=i.type),null!=i.displayName&&(a.displayName=i.displayName);var u=o.length;return d[e]=u,a.storeDimIndex=e,o.push(a),a}return o[t]}if(!s)for(p=0;p<a;p++)h(p);f.each((function(e,t){var n=Yr(e).slice();if(1===n.length&&!Object(x.isString)(n[0])&&n[0]<0)f.set(t,!1);else{var r=f.set(t,[]);Object(x.each)(n,(function(e,n){var i=Object(x.isString)(e)?c.get(e):e;null!=i&&i<a&&(r[n]=i,g(h(i),t,n))}))}}));var v=0;function g(e,t,n){null!=Nc.get(t)?e.otherDims[t]=n:(e.coordDim=t,e.coordDimIndex=n,i.set(t,!0))}Object(x.each)(n,(function(e){var t,n,r,i;if(Object(x.isString)(e))t=e,i={};else{t=(i=e).name;var o=i.ordinalMeta;i.ordinalMeta=null,(i=Object(x.extend)({},i)).ordinalMeta=o,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=f.get(t);if(!1!==s){if(!(s=Yr(s)).length)for(var c=0;c<(n&&n.length||1);c++){for(;v<a&&null!=h(v).coordDim;)v++;v<a&&s.push(v++)}Object(x.each)(s,(function(e,o){var a=h(e);if(u&&null!=i.type&&(a.type=i.type),g(Object(x.defaults)(a,i),t,o),null==a.name&&n){var s=n[o];!Object(x.isObject)(s)&&(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}r&&Object(x.defaults)(a.otherDims,r)}))}}));var m=t.generateCoord,y=t.generateCoordCount,b=null!=y;y=m?y||1:0;var w=m||"value";function _(e){null==e.name&&(e.name=e.coordDim)}if(s)Object(x.each)(o,(function(e){_(e)})),o.sort((function(e,t){return e.storeDimIndex-t.storeDimIndex}));else for(var S=0;S<a;S++){var O=h(S);null==O.coordDim&&(O.coordDim=Sy(w,i,b),O.coordDimIndex=0,(!m||y<=0)&&(O.isExtraCoord=!0),y--),_(O),null!=O.type||Qc(e,S)!==Gc.Must&&(!O.isExtraCoord||null==O.otherDims.itemName&&null==O.otherDims.seriesName)||(O.type="ordinal")}return function(e){for(var t=Object(x.createHashMap)(),n=0;n<e.length;n++){var r=e[n],i=r.name,o=t.get(i)||0;o>0&&(r.name=i+(o-1)),o++,t.set(i,o)}}(o),new ry({source:e,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function Sy(e,t,n){var r=t.data;if(n||r.hasOwnProperty(e)){for(var i=0;r.hasOwnProperty(e+i);)i++;e+=i}return t.set(e,!0),e}var Oy=function(e){this.coordSysDims=[],this.axisMap=Object(x.createHashMap)(),this.categoryAxisMap=Object(x.createHashMap)(),this.coordSysName=e};var ky={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents("xAxis",ci).models[0],o=e.getReferringComponents("yAxis",ci).models[0];t.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),Ey(i)&&(r.set("x",i),t.firstCategoryDimIndex=0),Ey(o)&&(r.set("y",o),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var i=e.getReferringComponents("singleAxis",ci).models[0];t.coordSysDims=["single"],n.set("single",i),Ey(i)&&(r.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents("polar",ci).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),Ey(o)&&(r.set("radius",o),t.firstCategoryDimIndex=0),Ey(a)&&(r.set("angle",a),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var i=e.ecModel,o=i.getComponent("parallel",e.get("parallelIndex")),a=t.coordSysDims=o.dimensions.slice();Object(x.each)(o.parallelAxisIndex,(function(e,o){var s=i.getComponent("parallelAxis",e),u=a[o];n.set(u,s),Ey(s)&&(r.set(u,s),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=o))}))}};function Ey(e){return"category"===e.get("type")}function jy(e,t,n){var r,i,o,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;!function(e){return!iy(e.schema)}(t)?(i=t.schema,r=i.dimensions,o=t.store):r=t;var u,c,l,f,d=!(!e||!e.get("stack"));if(Object(x.each)(r,(function(e,t){Object(x.isString)(e)&&(r[t]=e={name:e}),d&&!e.isExtraCoord&&(a||u||!e.ordinalMeta||(u=e),c||"ordinal"===e.type||"time"===e.type||s&&s!==e.coordDim||(c=e))})),!c||a||u||(a=!0),c){l="__\0ecstackresult_"+e.id,f="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var p=c.coordDim,h=c.type,v=0;Object(x.each)(r,(function(e){e.coordDim===p&&v++}));var g={name:l,coordDim:p,coordDimIndex:v,type:h,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},m={name:f,coordDim:f,coordDimIndex:v+1,type:h,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};i?(o&&(g.storeDimIndex=o.ensureCalculationDimension(f,h),m.storeDimIndex=o.ensureCalculationDimension(l,h)),i.appendCalculationDimension(g),i.appendCalculationDimension(m)):(r.push(g),r.push(m))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:f,stackResultDimension:l}}function Ty(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function Cy(e,t){return Ty(e,t)?e.getCalculationInfo("stackResultDimension"):t}var Ay=function(e,t,n){n=n||{};var r,i=t.getSourceManager(),o=!1;e?(o=!0,r=Zl(e)):o=(r=i.getSource()).sourceFormat===Fc;var a=function(e){var t=e.get("coordinateSystem"),n=new Oy(t),r=ky[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}(t),s=function(e,t){var n,r=e.get("coordinateSystem"),i=bl.get(r);return t&&t.coordSysDims&&(n=x.map(t.coordSysDims,(function(e){var n={name:e},r=t.axisMap.get(e);if(r){var i=r.get("type");n.type=Jm(i)}return n}))),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}(t,a),u=n.useEncodeDefaulter,c=x.isFunction(u)?u:u?x.curry(Kc,s,t):null,l=_y(r,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!o}),f=function(e,t,n){var r,i;return n&&x.each(e,(function(e,o){var a=e.coordDim,s=n.categoryAxisMap.get(a);s&&(null==r&&(r=o),e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(i=!0)})),i||null==r||(e[r].otherDims.itemName=0),r}(l.dimensions,n.createInvertedIndices,a),d=o?null:i.getSharedDataStore(l),p=jy(t,{schema:l,store:d}),h=new xy(l,t);h.setCalculationInfo(p);var v=null!=f&&function(e){if(e.sourceFormat===Fc){var t=function(e){var t=0;for(;t<e.length&&null==e[t];)t++;return e[t]}(e.data||[]);return!x.isArray(Xr(t))}}(r)?function(e,t,n,r){return r===f?n:this.defaultDimValueGetter(e,t,n,r)}:null;return h.hasItemOption=!1,h.initData(o?r:d,null,v),h},Py=function(){function e(e){this._setting=e||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},e.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();Oi(Py);var My=Py,Iy=0;function Ry(e){return Object(x.isObject)(e)&&null!=e.value?e.value:e+""}var Dy=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++Iy}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&Object(x.map)(r,Ry);return new e({categories:i,needCollect:!i,deduplication:!1!==n.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!Object(x.isString)(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var r=this._getOrCreateMap();return null==(t=r.get(e))&&(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(x.createHashMap)(this.categories))},e}();function Ly(e){return"interval"===e.type||"log"===e.type}function Ny(e,t,n,r){var i={},o=e[1]-e[0],a=i.interval=Nr(o/t,!0);null!=n&&a<n&&(a=i.interval=n),null!=r&&a>r&&(a=i.interval=r);var s=i.intervalPrecision=By(a);return function(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Uy(e,0,t),Uy(e,1,t),e[0]>e[1]&&(e[0]=e[1])}(i.niceTickExtent=[_r(Math.ceil(e[0]/a)*a,s),_r(Math.floor(e[1]/a)*a,s)],e),i}function Fy(e){var t=Math.pow(10,Lr(e)),n=e/t;return n?2===n?n=3:3===n?n=5:n*=2:n=1,_r(n*t)}function By(e){return Or(e)+2}function Uy(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function zy(e,t){return e>=t[0]&&e<=t[1]}function Vy(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Hy(e,t){return e*(t[1]-t[0])+t[0]}var Wy=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new Dy({})),Object(x.isArray)(r)&&(r=new Dy({categories:Object(x.map)(r,(function(e){return Object(x.isObject)(e)?e.value:e}))})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return y(t,e),t.prototype.parse=function(e){return null==e?NaN:Object(x.isString)(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return zy(e=this.parse(e),this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return Vy(e=this._getTickNumber(this.parse(e)),this._extent)},t.prototype.scale=function(e){return e=Math.round(Hy(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],t=this._extent,n=t[0];n<=t[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null!=e){for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,o=this._ordinalMeta.categories.length,a=Math.min(o,t.length);i<a;++i){var s=t[i];n[i]=s,r[s]=i}for(var u=0;i<o;++i){for(;null!=r[u];)u++;n.push(u),r[u]=i}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return null==n?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(My);My.registerClass(Wy);var qy=Wy,Gy=_r,Yy=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return y(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return zy(e,this._extent)},t.prototype.normalize=function(e){return Vy(e,this._extent)},t.prototype.scale=function(e){return Hy(e,this._extent)},t.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},t.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=By(e)},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(!t)return o;n[0]<r[0]&&(e?o.push({value:Gy(r[0]-t,i)}):o.push({value:n[0]}));for(var a=r[0];a<=r[1]&&(o.push({value:a}),(a=Gy(a+t,i))!==o[o.length-1].value);)if(o.length>1e4)return[];var s=o.length?o[o.length-1].value:r[1];return n[1]>s&&(e?o.push({value:Gy(s+t,i)}):o.push({value:n[1]})),o},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],r=this.getExtent(),i=1;i<t.length;i++){for(var o=t[i],a=t[i-1],s=0,u=[],c=(o.value-a.value)/e;s<e-1;){var l=Gy(a.value+(s+1)*c);l>r[0]&&l<r[1]&&u.push(l),s++}n.push(u)}return n},t.prototype.getLabel=function(e,t){if(null==e)return"";var n=t&&t.precision;return null==n?n=Or(e.value)||0:"auto"===n&&(n=this._intervalPrecision),uc(Gy(e.value,n,!0))},t.prototype.calcNiceTicks=function(e,t,n){e=e||5;var r=this._extent,i=r[1]-r[0];if(isFinite(i)){i<0&&(i=-i,r.reverse());var o=Ny(r,e,t,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1])if(0!==t[0]){var n=Math.abs(t[0]);e.fixMax?t[0]-=n/2:(t[1]+=n/2,t[0]-=n/2)}else t[1]=1;var r=t[1]-t[0];isFinite(r)||(t[0]=0,t[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var i=this._interval;e.fixMin||(t[0]=Gy(Math.floor(t[0]/i)*i)),e.fixMax||(t[1]=Gy(Math.ceil(t[1]/i)*i))},t.prototype.setNiceExtent=function(e,t){this._niceExtent=[e,t]},t.type="interval",t}(My);My.registerClass(Yy);var Ky=Yy,$y="undefined"!=typeof Float32Array,Xy=$y?Float32Array:Array;function Qy(e){return Object(x.isArray)(e)?$y?new Float32Array(e):e:new Xy(e)}var Zy="__ec_stack_";function Jy(e){return e.get("stack")||Zy+e.seriesIndex}function eb(e){return e.dim+e.index}function tb(e,t){var n=[];return t.eachSeriesByType(e,(function(e){ab(e)&&n.push(e)})),n}function nb(e){var t=function(e){var t={};Object(x.each)(e,(function(e){var n=e.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var r=e.getData(),i=n.dim+"_"+n.index,o=r.getDimensionIndex(r.mapDimension(n.dim)),a=r.getStore(),s=0,u=a.count();s<u;++s){var c=a.get(o,s);t[i]?t[i].push(c):t[i]=[c]}}));var n={};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if(i){i.sort((function(e,t){return e-t}));for(var o=null,a=1;a<i.length;++a){var s=i[a]-i[a-1];s>0&&(o=null===o?s:Math.min(o,s))}n[r]=o}}return n}(e),n=[];return Object(x.each)(e,(function(e){var r,i=e.coordinateSystem.getBaseAxis(),o=i.getExtent();if("category"===i.type)r=i.getBandWidth();else if("value"===i.type||"time"===i.type){var a=i.dim+"_"+i.index,s=t[a],u=Math.abs(o[1]-o[0]),c=i.scale.getExtent(),l=Math.abs(c[1]-c[0]);r=s?u/l*s:u}else{var f=e.getData();r=Math.abs(o[1]-o[0])/f.count()}var d=wr(e.get("barWidth"),r),p=wr(e.get("barMaxWidth"),r),h=wr(e.get("barMinWidth")||(sb(e)?.5:1),r),v=e.get("barGap"),g=e.get("barCategoryGap");n.push({bandWidth:r,barWidth:d,barMaxWidth:p,barMinWidth:h,barGap:v,barCategoryGap:g,axisKey:eb(i),stackId:Jy(e)})})),rb(n)}function rb(e){var t={};Object(x.each)(e,(function(e,n){var r=e.axisKey,i=e.bandWidth,o=t[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;t[r]=o;var s=e.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var u=e.barWidth;u&&!a[s].width&&(a[s].width=u,u=Math.min(o.remainedWidth,u),o.remainedWidth-=u);var c=e.barMaxWidth;c&&(a[s].maxWidth=c);var l=e.barMinWidth;l&&(a[s].minWidth=l);var f=e.barGap;null!=f&&(o.gap=f);var d=e.barCategoryGap;null!=d&&(o.categoryGap=d)}));var n={};return Object(x.each)(t,(function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,o=e.categoryGap;if(null==o){var a=Object(x.keys)(r).length;o=Math.max(35-4*a,15)+"%"}var s=wr(o,i),u=wr(e.gap,1),c=e.remainedWidth,l=e.autoWidthCount,f=(c-s)/(l+(l-1)*u);f=Math.max(f,0),Object(x.each)(r,(function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){r=e.width;t&&(r=Math.min(r,t)),n&&(r=Math.max(r,n)),e.width=r,c-=r+u*r,l--}else{var r=f;t&&t<r&&(r=Math.min(t,c)),n&&n>r&&(r=n),r!==f&&(e.width=r,c-=r+u*r,l--)}})),f=(c-s)/(l+(l-1)*u),f=Math.max(f,0);var d,p=0;Object(x.each)(r,(function(e,t){e.width||(e.width=f),d=e,p+=e.width*(1+u)})),d&&(p-=d.width*u);var h=-p/2;Object(x.each)(r,(function(e,r){n[t][r]=n[t][r]||{bandWidth:i,offset:h,width:e.width},h+=e.width*(1+u)}))})),n}function ib(e,t){var n=tb(e,t),r=nb(n);Object(x.each)(n,(function(e){var t=e.getData(),n=e.coordinateSystem.getBaseAxis(),i=Jy(e),o=r[eb(n)][i],a=o.offset,s=o.width;t.setLayout({bandWidth:o.bandWidth,offset:a,size:s})}))}function ob(e){return{seriesType:e,plan:Cd(),reset:function(e){if(ab(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),o=t.getDimensionIndex(t.mapDimension(i.dim)),a=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get("showBackground",!0),u=t.mapDimension(i.dim),c=t.getCalculationInfo("stackResultDimension"),l=Ty(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),f=i.isHorizontal(),d=function(e,t){return t.toGlobalCoord(t.dataToCoord("log"===t.type?1:0))}(0,i),p=sb(e),h=e.get("barMinHeight")||0,v=c&&t.getDimensionIndex(c),g=t.getLayout("size"),m=t.getLayout("offset");return{progress:function(e,t){for(var r,i=e.count,u=p&&Qy(3*i),c=p&&s&&Qy(3*i),y=p&&Qy(i),b=n.master.getRect(),x=f?b.width:b.height,w=t.getStore(),_=0;null!=(r=e.next());){var S=w.get(l?v:o,r),O=w.get(a,r),k=d,E=void 0;l&&(E=+S-w.get(o,r));var j=void 0,T=void 0,C=void 0,A=void 0;if(f){var P=n.dataToPoint([S,O]);if(l)k=n.dataToPoint([E,O])[0];j=k,T=P[1]+m,C=P[0]-k,A=g,Math.abs(C)<h&&(C=(C<0?-1:1)*h)}else{P=n.dataToPoint([O,S]);if(l)k=n.dataToPoint([O,E])[1];j=P[0]+m,T=k,C=g,A=P[1]-k,Math.abs(A)<h&&(A=(A<=0?-1:1)*h)}p?(u[_]=j,u[_+1]=T,u[_+2]=f?C:A,c&&(c[_]=f?b.x:j,c[_+1]=f?T:b.y,c[_+2]=x),y[r]=r):t.setItemLayout(r,{x:j,y:T,width:C,height:A}),_+=3}p&&t.setLayout({largePoints:u,largeDataIndices:y,largeBackgroundPoints:c,valueAxisHorizontal:f})}}}}}}function ab(e){return e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type}function sb(e){return e.pipelineContext&&e.pipelineContext.large}var ub=function(e){function t(t){var n=e.call(this,t)||this;return n.type="time",n}return y(t,e),t.prototype.getLabel=function(e){var t=this.getSetting("useUTC");return qu(e.value,Uu[function(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(Wu(this._minLevelUnit))]||Uu.second,t,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,t,n){var r=this.getSetting("useUTC");return function(e,t,n,r,i){var o=null;if(x.isString(n))o=n;else if(x.isFunction(n))o=n(e.value,t,{level:e.level});else{var a=x.extend({},Bu);if(e.level>0)for(var s=0;s<zu.length;++s)a[zu[s]]="{primary|"+a[zu[s]]+"}";var u=n?!1===n.inherit?n:x.defaults(n,a):a,c=Gu(e.value,i);if(u[c])o=u[c];else if(u.inherit){for(s=Vu.indexOf(c)-1;s>=0;--s)if(u[c]){o=u[c];break}o=o||a.none}if(x.isArray(o)){var l=null==e.level?0:e.level>=0?e.level:o.length+e.level;o=o[l=Math.min(l,o.length-1)]}}return qu(new Date(e.value),o,i,r)}(e,t,n,this.getSetting("locale"),r)},t.prototype.getTicks=function(){var e=this._interval,t=this._extent,n=[];if(!e)return n;n.push({value:t[0],level:0});var r=this.getSetting("useUTC"),i=function(e,t,n,r){var i=Vu,o=0;function a(e,t,n,i,o,a,s){for(var u=new Date(t),c=t,l=u[i]();c<n&&c<=r[1];)s.push({value:c}),l+=e,u[o](l),c=u.getTime();s.push({value:c,notAdd:!0})}function s(e,i,o){var s=[],u=!i.length;if(!function(e,t,n,r){var i=Rr(t),o=Rr(n),a=function(e){return Yu(i,e,r)===Yu(o,e,r)},s=function(){return a("year")},u=function(){return s()&&a("month")},c=function(){return u()&&a("day")},l=function(){return c()&&a("hour")},f=function(){return l()&&a("minute")},d=function(){return f()&&a("second")};switch(e){case"year":return s();case"month":return u();case"day":return c();case"hour":return l();case"minute":return f();case"second":return d();case"millisecond":return d()&&a("millisecond")}}(Wu(e),r[0],r[1],n)){u&&(i=[{value:vb(new Date(r[0]),e,n)},{value:r[1]}]);for(var c=0;c<i.length-1;c++){var l=i[c].value,f=i[c+1].value;if(l!==f){var d=void 0,p=void 0,h=void 0;switch(e){case"year":d=Math.max(1,Math.round(t/Nu/365)),p=Ku(n),h=tc(n);break;case"half-year":case"quarter":case"month":d=fb(t),p=$u(n),h=nc(n);break;case"week":case"half-week":case"day":d=lb(t,31),p=Xu(n),h=rc(n),!0;break;case"half-day":case"quarter-day":case"hour":d=db(t),p=Qu(n),h=ic(n);break;case"minute":d=pb(t,!0),p=Zu(n),h=oc(n);break;case"second":d=pb(t,!1),p=Ju(n),h=ac(n);break;case"millisecond":d=hb(t),p=ec(n),h=sc(n)}a(d,l,f,p,h,0,s),"year"===e&&o.length>1&&0===c&&o.unshift({value:o[0].value-d})}}for(c=0;c<s.length;c++)o.push(s[c]);return s}}for(var u=[],c=[],l=0,f=0,d=0;d<i.length&&o++<1e4;++d){var p=Wu(i[d]);if((b=i[d])===Wu(b)){s(i[d],u[u.length-1]||[],c);var h=i[d+1]?Wu(i[d+1]):null;if(p!==h){if(c.length){f=l,c.sort((function(e,t){return e.value-t.value}));for(var v=[],g=0;g<c.length;++g){var m=c[g].value;0!==g&&c[g-1].value===m||(v.push(c[g]),m>=r[0]&&m<=r[1]&&l++)}var y=(r[1]-r[0])/t;if(l>1.5*y&&f>y/1.5)break;if(u.push(v),l>y||e===i[d])break}c=[]}}}var b;0;var w=Object(x.filter)(Object(x.map)(u,(function(e){return Object(x.filter)(e,(function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd}))})),(function(e){return e.length>0})),_=[],S=w.length-1;for(d=0;d<w.length;++d)for(var O=w[d],k=0;k<O.length;++k)_.push({value:O[k].value,level:S-d});_.sort((function(e,t){return e.value-t.value}));var E=[];for(d=0;d<_.length;++d)0!==d&&_[d].value===_[d-1].value||E.push(_[d]);return E}(this._minLevelUnit,this._approxInterval,r,t);return(n=n.concat(i)).push({value:t[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var t=this._extent;if(t[0]===t[1]&&(t[0]-=Nu,t[1]+=Nu),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-Nu}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,t,n){e=e||10;var r=this._extent,i=r[1]-r[0];this._approxInterval=i/e,null!=t&&this._approxInterval<t&&(this._approxInterval=t),null!=n&&this._approxInterval>n&&(this._approxInterval=n);var o=cb.length,a=Math.min(function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n}(cb,this._approxInterval,0,o),o-1);this._interval=cb[a][1],this._minLevelUnit=cb[Math.max(a-1,0)][0]},t.prototype.parse=function(e){return Object(x.isNumber)(e)?e:+Rr(e)},t.prototype.contain=function(e){return zy(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Vy(this.parse(e),this._extent)},t.prototype.scale=function(e){return Hy(e,this._extent)},t.type="time",t}(Ky),cb=[["second",Ru],["minute",Du],["hour",Lu],["quarter-day",6*Lu],["half-day",12*Lu],["day",1.2*Nu],["half-week",3.5*Nu],["week",7*Nu],["month",31*Nu],["quarter",95*Nu],["half-year",Fu/2],["year",Fu]];function lb(e,t){return(e/=Nu)>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function fb(e){return(e/=30*Nu)>6?6:e>3?3:e>2?2:1}function db(e){return(e/=Lu)>12?12:e>6?6:e>3.5?4:e>2?2:1}function pb(e,t){return(e/=t?Du:Ru)>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function hb(e){return Nr(e,!0)}function vb(e,t,n){var r=new Date(e);switch(Wu(t)){case"year":case"month":r[nc(n)](0);case"day":r[rc(n)](1);case"hour":r[ic(n)](0);case"minute":r[oc(n)](0);case"second":r[ac(n)](0),r[sc(n)](0)}return r.getTime()}My.registerClass(ub);var gb=ub,mb=My.prototype,yb=Ky.prototype,bb=_r,xb=Math.floor,wb=Math.ceil,_b=Math.pow,Sb=Math.log,Ob=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new Ky,t._interval=0,t}return y(t,e),t.prototype.getTicks=function(e){var t=this._originalScale,n=this._extent,r=t.getExtent(),i=yb.getTicks.call(this,e);return x.map(i,(function(e){var t=e.value,i=_r(_b(this.base,t));return i=t===n[0]&&this._fixMin?Eb(i,r[0]):i,{value:i=t===n[1]&&this._fixMax?Eb(i,r[1]):i}}),this)},t.prototype.setExtent=function(e,t){var n=Sb(this.base);e=Sb(Math.max(0,e))/n,t=Sb(Math.max(0,t))/n,yb.setExtent.call(this,e,t)},t.prototype.getExtent=function(){var e=this.base,t=mb.getExtent.call(this);t[0]=_b(e,t[0]),t[1]=_b(e,t[1]);var n=this._originalScale.getExtent();return this._fixMin&&(t[0]=Eb(t[0],n[0])),this._fixMax&&(t[1]=Eb(t[1],n[1])),t},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var t=this.base;e[0]=Sb(e[0])/Sb(t),e[1]=Sb(e[1])/Sb(t),mb.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},t.prototype.calcNiceTicks=function(e){e=e||10;var t=this._extent,n=t[1]-t[0];if(!(n===1/0||n<=0)){var r=Dr(n);for(e/n*r<=.5&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var i=[_r(wb(t[0]/r)*r),_r(xb(t[1]/r)*r)];this._interval=r,this._niceExtent=i}},t.prototype.calcNiceExtent=function(e){yb.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return zy(e=Sb(e)/Sb(this.base),this._extent)},t.prototype.normalize=function(e){return Vy(e=Sb(e)/Sb(this.base),this._extent)},t.prototype.scale=function(e){return e=Hy(e,this._extent),_b(this.base,e)},t.type="log",t}(My),kb=Ob.prototype;function Eb(e,t){return bb(e,Or(t))}kb.getMinorTicks=yb.getMinorTicks,kb.getLabel=yb.getLabel,My.registerClass(Ob);var jb=Ob,Tb=function(){function e(e,t,n){this._prepareParams(e,t,n)}return e.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var r=this._isOrdinal="ordinal"===e.type;this._needCrossZero="interval"===e.type&&t.getNeedCrossZero&&t.getNeedCrossZero();var i=this._modelMinRaw=t.get("min",!0);Object(x.isFunction)(i)?this._modelMinNum=Mb(e,i({min:n[0],max:n[1]})):"dataMin"!==i&&(this._modelMinNum=Mb(e,i));var o=this._modelMaxRaw=t.get("max",!0);if(Object(x.isFunction)(o)?this._modelMaxNum=Mb(e,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=Mb(e,o)),r)this._axisDataLen=t.getCategories().length;else{var a=t.get("boundaryGap"),s=Object(x.isArray)(a)?a:[a||0,a||0];"boolean"==typeof s[0]||"boolean"==typeof s[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Xn(s[0],1),Xn(s[1],1)]}},e.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,r=this._axisDataLen,i=this._boundaryGapInner,o=e?null:n-t||Math.abs(t),a="dataMin"===this._modelMinRaw?t:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,u=null!=a,c=null!=s;null==a&&(a=e?r?0:NaN:t-i[0]*o),null==s&&(s=e?r?r-1:NaN:n+i[1]*o),(null==a||!isFinite(a))&&(a=NaN),(null==s||!isFinite(s))&&(s=NaN);var l=Object(x.eqNaN)(a)||Object(x.eqNaN)(s)||e&&!r;this._needCrossZero&&(a>0&&s>0&&!u&&(a=0),a<0&&s<0&&!c&&(s=0));var f=this._determinedMin,d=this._determinedMax;return null!=f&&(a=f,u=!0),null!=d&&(s=d,c=!0),{min:a,max:s,minFixed:u,maxFixed:c,isBlank:l}},e.prototype.modifyDataMinMax=function(e,t){this[Ab[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){this[Cb[e]]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),Cb={min:"_determinedMin",max:"_determinedMax"},Ab={min:"_dataMin",max:"_dataMax"};function Pb(e,t,n){var r=e.rawExtentInfo;return r||(r=new Tb(e,t,n),e.rawExtentInfo=r,r)}function Mb(e,t){return null==t?null:Object(x.eqNaN)(t)?NaN:e.parse(t)}function Ib(e,t){var n=e.type,r=Pb(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var i=r.min,o=r.max,a=t.ecModel;if(a&&"time"===n){var s=tb("bar",a),u=!1;if(x.each(s,(function(e){u=u||e.getBaseAxis()===t.axis})),u){var c=nb(s),l=function(e,t,n,r){var i=n.axis.getExtent(),o=i[1]-i[0],a=function(e,t,n){if(e&&t){var r=e[eb(t)];return null!=r&&null!=n?r[Jy(n)]:r}}(r,n.axis);if(void 0===a)return{min:e,max:t};var s=1/0;x.each(a,(function(e){s=Math.min(e.offset,s)}));var u=-1/0;x.each(a,(function(e){u=Math.max(e.offset+e.width,u)})),s=Math.abs(s),u=Math.abs(u);var c=s+u,l=t-e,f=l/(1-(s+u)/o)-l;return{min:e-=f*(s/c),max:t+=f*(u/c)}}(i,o,t,c);i=l.min,o=l.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function Rb(e,t){var n=t,r=Ib(e,n),i=r.extent,o=n.get("splitNumber");e instanceof jb&&(e.base=n.get("logBase"));var a=e.type,s=n.get("interval"),u="interval"===a||"time"===a;e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:u?n.get("minInterval"):null,maxInterval:u?n.get("maxInterval"):null}),null!=s&&e.setInterval&&e.setInterval(s)}function Db(e,t){if(t=t||e.get("type"))switch(t){case"category":return new qy({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new gb({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(My.getClass(t)||Ky)}}function Lb(e){var t,n,r=e.getLabelModel().get("formatter"),i="category"===e.type?e.scale.getExtent()[0]:null;return"time"===e.scale.type?(n=r,function(t,r){return e.scale.getFormattedLabel(t,r,n)}):x.isString(r)?function(t){return function(n){var r=e.scale.getLabel(n);return t.replace("{value}",null!=r?r:"")}}(r):x.isFunction(r)?(t=r,function(n,r){return null!=i&&(r=n.value-i),t(Nb(e,n),r,null!=n.level?{level:n.level}:null)}):function(t){return e.scale.getLabel(t)}}function Nb(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function Fb(e){var t=e.get("interval");return null==t?"auto":t}function Bb(e){return"category"===e.type&&0===Fb(e.getLabelModel())}function Ub(e,t){var n={};return x.each(e.mapDimensionsAll(t),(function(t){n[Cy(e,t)]=!0})),x.keys(n)}var zb=function(){function e(){}return e.prototype.getNeedCrossZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}();function Vb(e){return Ay(null,e)}var Hb={isDimensionStacked:Ty,enableDataStack:jy,getStackedDimension:Cy};function Wb(e,t){var n=t;t instanceof _u||(n=new _u(t));var r=Db(n);return r.setExtent(e[0],e[1]),Rb(r,n),r}function qb(e){x.mixin(e,zb)}function Gb(e,t){return Zs(e,null,null,"normal"!==(t=t||{}).state)}var Yb=1e-8;function Kb(e,t){return Math.abs(e-t)<Yb}function $b(e,t,n){var r=0,i=e[0];if(!i)return!1;for(var o=1;o<e.length;o++){var a=e[o];r+=Vo(i[0],i[1],a[0],a[1],t,n),i=a}var s=e[0];return Kb(i[0],s[0])&&Kb(i[1],s[1])||(r+=Vo(i[0],i[1],s[0],s[1],t,n)),0!==r}var Xb=[];function Qb(e,t){for(var n=0;n<e.length;n++)q(e[n],e[n],t)}function Zb(e,t,n,r){for(var i=0;i<e.length;i++){var o=e[i];r&&(o=r.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(G(t,t,o),Y(n,n,o))}}var Jb=function(){function e(e){this.name=e}return e.prototype.setCenter=function(e){this._center=e},e.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},e}(),ex=function(e,t){this.type="polygon",this.exterior=e,this.interiors=t},tx=function(e){this.type="linestring",this.points=e},nx=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.type="geoJSON",i.geometries=n,i._center=r&&[r[0],r[1]],i}return y(t,e),t.prototype.calcCenter=function(){for(var e,t=this.geometries,n=0,r=0;r<t.length;r++){var i=t[r],o=i.exterior,a=o&&o.length;a>n&&(e=i,n=a)}if(e)return function(e){for(var t=0,n=0,r=0,i=e.length,o=e[i-1][0],a=e[i-1][1],s=0;s<i;s++){var u=e[s][0],c=e[s][1],l=o*c-u*a;t+=l,n+=(o+u)*l,r+=(a+c)*l,o=u,a=c}return t?[n/t/3,r/t/3,t]:[e[0][0]||0,e[0][1]||0]}(e.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},t.prototype.getBoundingRect=function(e){var t=this._rect;if(t&&!e)return t;var n=[1/0,1/0],r=[-1/0,-1/0],i=this.geometries;return Object(x.each)(i,(function(t){"polygon"===t.type?Zb(t.exterior,n,r,e):Object(x.each)(t.points,(function(t){Zb(t,n,r,e)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),t=new Fe(n[0],n[1],r[0]-n[0],r[1]-n[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;e:for(var r=0,i=n.length;r<i;r++){var o=n[r];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if($b(a,e[0],e[1])){for(var u=0;u<(s?s.length:0);u++)if($b(s[u],e[0],e[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(e,t,n,r){var i=this.getBoundingRect(),o=i.width/i.height;n?r||(r=n/o):n=o*r;for(var a=new Fe(e,t,n,r),s=i.calculateTransform(a),u=this.geometries,c=0;c<u.length;c++){var l=u[c];"polygon"===l.type?(Qb(l.exterior,s),Object(x.each)(l.interiors,(function(e){Qb(e,s)}))):Object(x.each)(l.points,(function(e){Qb(e,s)}))}(i=this._rect).copy(a),this._center=[i.x+i.width/2,i.y+i.height/2]},t.prototype.cloneShallow=function(e){null==e&&(e=this.name);var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(Jb),rx=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type="geoSVG",r._elOnlyForCalculate=n,r}return y(t,e),t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,t=e.getBoundingRect(),n=[t.x+t.width/2,t.y+t.height/2],r=we(Xb),i=e;i&&!i.isGeoSVGGraphicRoot;)Se(r,i.getLocalTransform(),r),i=i.parent;return je(r,r),q(n,n,r),n},t}(Jb);function ix(e,t,n){for(var r=0;r<e.length;r++)e[r]=ox(e[r],t[r],n)}function ox(e,t,n){for(var r=[],i=t[0],o=t[1],a=0;a<e.length;a+=2){var s=e.charCodeAt(a)-64,u=e.charCodeAt(a+1)-64;s=s>>1^-(1&s),u=u>>1^-(1&u),i=s+=i,o=u+=o,r.push([s/n,u/n])}return r}function ax(e,t){return e=function(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;null==n&&(n=1024);var r=t.features;return x.each(r,(function(e){var t=e.geometry,r=t.encodeOffsets,i=t.coordinates;if(r)switch(t.type){case"LineString":t.coordinates=ox(i,r,n);break;case"Polygon":case"MultiLineString":ix(i,r,n);break;case"MultiPolygon":x.each(i,(function(e,t){return ix(e,r[t],n)}))}})),t.UTF8Encoding=!1,t}(e),x.map(x.filter(e.features,(function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0})),(function(e){var n=e.properties,r=e.geometry,i=[];switch(r.type){case"Polygon":var o=r.coordinates;i.push(new ex(o[0],o.slice(1)));break;case"MultiPolygon":x.each(r.coordinates,(function(e){e[0]&&i.push(new ex(e[0],e.slice(1)))}));break;case"LineString":i.push(new tx([r.coordinates]));break;case"MultiLineString":i.push(new tx(r.coordinates))}var a=new nx(n[t||"name"],i,n.cp);return a.properties=n,a}))}function sx(e,t,n,r,i,o,a,s){return new Ma({style:{text:e,font:t,align:n,verticalAlign:r,padding:i,rich:o,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()}var ux=oi();function cx(e){return"category"===e.type?function(e){var t=e.getLabelModel(),n=fx(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(e):function(e){var t=e.scale.getTicks(),n=Lb(e);return{labels:x.map(t,(function(t,r){return{level:t.level,formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tickValue:t.value}}))}}(e)}function lx(e,t){return"category"===e.type?function(e,t){var n,r,i=dx(e,"ticks"),o=Fb(t),a=px(i,o);if(a)return a;t.get("show")&&!e.scale.isBlank()||(n=[]);if(x.isFunction(o))n=gx(e,o,!0);else if("auto"===o){var s=fx(e,e.getLabelModel());r=s.labelCategoryInterval,n=x.map(s.labels,(function(e){return e.tickValue}))}else n=vx(e,r=o,!0);return hx(i,o,{ticks:n,tickCategoryInterval:r})}(e,t):{ticks:x.map(e.scale.getTicks(),(function(e){return e.value}))}}function fx(e,t){var n,r,i=dx(e,"labels"),o=Fb(t),a=px(i,o);return a||(x.isFunction(o)?n=gx(e,o):(r="auto"===o?function(e){var t=ux(e).autoInterval;return null!=t?t:ux(e).autoInterval=e.calculateCategoryInterval()}(e):o,n=vx(e,r)),hx(i,o,{labels:n,labelCategoryInterval:r}))}function dx(e,t){return ux(e)[t]||(ux(e)[t]=[])}function px(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function hx(e,t,n){return e.push({key:t,value:n}),n}function vx(e,t,n){var r=Lb(e),i=e.scale,o=i.getExtent(),a=e.getLabelModel(),s=[],u=Math.max((t||0)+1,1),c=o[0],l=i.count();0!==c&&u>1&&l/u>2&&(c=Math.round(Math.ceil(c/u)*u));var f=Bb(e),d=a.get("showMinLabel")||f,p=a.get("showMaxLabel")||f;d&&c!==o[0]&&v(o[0]);for(var h=c;h<=o[1];h+=u)v(h);function v(e){var t={value:e};s.push(n?e:{formattedLabel:r(t),rawLabel:i.getLabel(t),tickValue:e})}return p&&h-u!==o[1]&&v(o[1]),s}function gx(e,t,n){var r=e.scale,i=Lb(e),o=[];return x.each(r.getTicks(),(function(e){var a=r.getLabel(e),s=e.value;t(e.value,a)&&o.push(n?s:{formattedLabel:i(e),rawLabel:a,tickValue:s})})),o}var mx=[0,1];function yx(e,t){var n=(e[1]-e[0])/t/2;e[0]+=n,e[1]-=n}var bx=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(e)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return Er(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this._extent,r=this.scale;return e=r.normalize(e),this.onBand&&"ordinal"===r.type&&yx(n=n.slice(),r.count()),xr(e,mx,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&yx(n=n.slice(),r.count());var i=xr(e,n,mx,t);return this.scale.scale(i)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){var t=(e=e||{}).tickModel||this.getTickModel(),n=lx(this,t).ticks,r=Object(x.map)(n,(function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}}),this);return function(e,t,n,r){var i=t.length;if(!e.onBand||n||!i)return;var o,a,s=e.getExtent();if(1===i)t[0].coord=s[0],o=t[1]={coord:s[0]};else{var u=t[i-1].tickValue-t[0].tickValue,c=(t[i-1].coord-t[0].coord)/u;Object(x.each)(t,(function(e){e.coord-=c/2}));var l=e.scale.getExtent();a=1+l[1]-t[i-1].tickValue,o={coord:t[i-1].coord+c*a},t.push(o)}var f=s[0]>s[1];d(t[0].coord,s[0])&&(r?t[0].coord=s[0]:t.shift());r&&d(s[0],t[0].coord)&&t.unshift({coord:s[0]});d(s[1],o.coord)&&(r?o.coord=s[1]:t.pop());r&&d(o.coord,s[1])&&t.push({coord:s[1]});function d(e,t){return e=_r(e),t=_r(t),f?e>t:e<t}}(this,r,t.get("alignWithLabel"),e.clamp),r},e.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick").get("splitNumber");e>0&&e<100||(e=5);var t=this.scale.getMinorTicks(e);return Object(x.map)(t,(function(e){return Object(x.map)(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this)},e.prototype.getViewLabels=function(){return cx(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(e[1]-e[0]);return Math.abs(r)/n},e.prototype.calculateCategoryInterval=function(){return function(e){var t=function(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}(e),n=Lb(e),r=(t.axisRotate-t.labelRotate)/180*Math.PI,i=e.scale,o=i.getExtent(),a=i.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var u=o[0],c=e.dataToCoord(u+1)-e.dataToCoord(u),l=Math.abs(c*Math.cos(r)),f=Math.abs(c*Math.sin(r)),d=0,p=0;u<=o[1];u+=s){var h,v,g=Gn(n({value:u}),t.font,"center","top");h=1.3*g.width,v=1.3*g.height,d=Math.max(d,h,7),p=Math.max(p,v,7)}var m=d/l,y=p/f;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var b=Math.max(0,Math.floor(Math.min(m,y))),x=ux(e.model),w=e.getExtent(),_=x.lastAutoInterval,S=x.lastTickCount;return null!=_&&null!=S&&Math.abs(_-b)<=1&&Math.abs(S-a)<=1&&_>b&&x.axisExtent0===w[0]&&x.axisExtent1===w[1]?b=_:(x.lastTickCount=a,x.lastAutoInterval=b,x.axisExtent0=w[0],x.axisExtent1=w[1]),b}(this)},e}();function xx(e){var t=Ic.extend(e);return Ic.registerClass(t),t}function wx(e){var t=Td.extend(e);return Td.registerClass(t),t}function _x(e){var t=Ed.extend(e);return Ed.registerClass(t),t}function Sx(e){var t=Dh.extend(e);return Dh.registerClass(t),t}var Ox=2*Math.PI,kx=Ro.CMD,Ex=["top","right","bottom","left"];function jx(e,t,n,r,i){var o=n.width,a=n.height;switch(e){case"top":r.set(n.x+o/2,n.y-t),i.set(0,-1);break;case"bottom":r.set(n.x+o/2,n.y+a+t),i.set(0,1);break;case"left":r.set(n.x-t,n.y+a/2),i.set(-1,0);break;case"right":r.set(n.x+o+t,n.y+a/2),i.set(1,0)}}function Tx(e,t,n,r,i,o,a,s,u){a-=e,s-=t;var c=Math.sqrt(a*a+s*s),l=(a/=c)*n+e,f=(s/=c)*n+t;if(Math.abs(r-i)%Ox<1e-4)return u[0]=l,u[1]=f,c-n;if(o){var d=r;r=Bo(i),i=Bo(d)}else r=Bo(r),i=Bo(i);r>i&&(i+=Ox);var p=Math.atan2(s,a);if(p<0&&(p+=Ox),p>=r&&p<=i||p+Ox>=r&&p+Ox<=i)return u[0]=l,u[1]=f,c-n;var h=n*Math.cos(r)+e,v=n*Math.sin(r)+t,g=n*Math.cos(i)+e,m=n*Math.sin(i)+t,y=(h-a)*(h-a)+(v-s)*(v-s),b=(g-a)*(g-a)+(m-s)*(m-s);return y<b?(u[0]=h,u[1]=v,Math.sqrt(y)):(u[0]=g,u[1]=m,Math.sqrt(b))}function Cx(e,t,n,r,i,o,a,s){var u=i-e,c=o-t,l=n-e,f=r-t,d=Math.sqrt(l*l+f*f),p=(u*(l/=d)+c*(f/=d))/d;s&&(p=Math.min(Math.max(p,0),1)),p*=d;var h=a[0]=e+p*l,v=a[1]=t+p*f;return Math.sqrt((h-i)*(h-i)+(v-o)*(v-o))}function Ax(e,t,n,r,i,o,a){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r);var s=e+n,u=t+r,c=a[0]=Math.min(Math.max(i,e),s),l=a[1]=Math.min(Math.max(o,t),u);return Math.sqrt((c-i)*(c-i)+(l-o)*(l-o))}var Px=[];function Mx(e,t,n){var r=Ax(t.x,t.y,t.width,t.height,e.x,e.y,Px);return n.set(Px[0],Px[1]),r}function Ix(e,t,n){for(var r,i,o=0,a=0,s=0,u=0,c=1/0,l=t.data,f=e.x,d=e.y,p=0;p<l.length;){var h=l[p++];1===p&&(s=o=l[p],u=a=l[p+1]);var v=c;switch(h){case kx.M:o=s=l[p++],a=u=l[p++];break;case kx.L:v=Cx(o,a,l[p],l[p+1],f,d,Px,!0),o=l[p++],a=l[p++];break;case kx.C:v=Ct(o,a,l[p++],l[p++],l[p++],l[p++],l[p],l[p+1],f,d,Px),o=l[p++],a=l[p++];break;case kx.Q:v=Dt(o,a,l[p++],l[p++],l[p],l[p+1],f,d,Px),o=l[p++],a=l[p++];break;case kx.A:var g=l[p++],m=l[p++],y=l[p++],b=l[p++],x=l[p++],w=l[p++];p+=1;var _=!!(1-l[p++]);r=Math.cos(x)*y+g,i=Math.sin(x)*b+m,p<=1&&(s=r,u=i),v=Tx(g,m,b,x,x+w,_,(f-g)*b/y+g,d,Px),o=Math.cos(x+w)*y+g,a=Math.sin(x+w)*b+m;break;case kx.R:v=Ax(s=o=l[p++],u=a=l[p++],l[p++],l[p++],f,d,Px);break;case kx.Z:v=Cx(o,a,s,u,f,d,Px,!0),o=s,a=u}v<c&&(c=v,n.set(Px[0],Px[1]))}return c}var Rx=new Ce,Dx=new Ce,Lx=new Ce,Nx=new Ce,Fx=new Ce;function Bx(e,t){if(e){var n=e.getTextGuideLine(),r=e.getTextContent();if(r&&n){var i=e.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=i.candidates||Ex,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var u=1/0,c=i.anchor,l=e.getComputedTransform(),f=l&&je([],l),d=t.get("length2")||0;c&&Lx.copy(c);for(var p=0;p<a.length;p++){jx(a[p],0,s,Rx,Nx),Ce.scaleAndAdd(Dx,Rx,Nx,d),Dx.transform(f);var h=e.getBoundingRect(),v=c?c.distance(Dx):e instanceof ta?Ix(Dx,e.path,Lx):Mx(Dx,h,Lx);v<u&&(u=v,Dx.transform(l),Lx.transform(l),Lx.toArray(o[0]),Dx.toArray(o[1]),Rx.toArray(o[2]))}Vx(o,t.get("minTurnAngle")),n.setShape({points:o})}}}var Ux=[],zx=new Ce;function Vx(e,t){if(t<=180&&t>0){t=t/180*Math.PI,Rx.fromArray(e[0]),Dx.fromArray(e[1]),Lx.fromArray(e[2]),Ce.sub(Nx,Rx,Dx),Ce.sub(Fx,Lx,Dx);var n=Nx.len(),r=Fx.len();if(!(n<.001||r<.001)){Nx.scale(1/n),Fx.scale(1/r);var i=Nx.dot(Fx);if(Math.cos(t)<i){var o=Cx(Dx.x,Dx.y,Lx.x,Lx.y,Rx.x,Rx.y,Ux,!1);zx.fromArray(Ux),zx.scaleAndAdd(Fx,o/Math.tan(Math.PI-t));var a=Lx.x!==Dx.x?(zx.x-Dx.x)/(Lx.x-Dx.x):(zx.y-Dx.y)/(Lx.y-Dx.y);if(isNaN(a))return;a<0?Ce.copy(zx,Dx):a>1&&Ce.copy(zx,Lx),zx.toArray(e[1])}}}}function Hx(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,Rx.fromArray(e[0]),Dx.fromArray(e[1]),Lx.fromArray(e[2]),Ce.sub(Nx,Dx,Rx),Ce.sub(Fx,Lx,Dx);var r=Nx.len(),i=Fx.len();if(!(r<.001||i<.001))if(Nx.scale(1/r),Fx.scale(1/i),Nx.dot(t)<Math.cos(n)){var o=Cx(Dx.x,Dx.y,Lx.x,Lx.y,Rx.x,Rx.y,Ux,!1);zx.fromArray(Ux);var a=Math.PI/2,s=a+Math.acos(Fx.dot(t))-n;if(s>=a)Ce.copy(zx,Lx);else{zx.scaleAndAdd(Fx,o/Math.tan(Math.PI/2-s));var u=Lx.x!==Dx.x?(zx.x-Dx.x)/(Lx.x-Dx.x):(zx.y-Dx.y)/(Lx.y-Dx.y);if(isNaN(u))return;u<0?Ce.copy(zx,Dx):u>1&&Ce.copy(zx,Lx)}zx.toArray(e[1])}}}function Wx(e,t,n,r){var i="normal"===n,o=i?e:e.ensureState(n);o.ignore=t;var a=r.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=r.getModel("lineStyle").getLineStyle();i?e.useStyle(s):o.style=s}function qx(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=U(r[0],r[1]),o=U(r[1],r[2]);if(!i||!o)return e.lineTo(r[1][0],r[1][1]),void e.lineTo(r[2][0],r[2][1]);var a=Math.min(i,o)*n,s=W([],r[1],r[0],a/i),u=W([],r[1],r[2],a/o),c=W([],s,u,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],c[0],c[1]),e.bezierCurveTo(u[0],u[1],u[0],u[1],r[2][0],r[2][1])}else for(var l=1;l<r.length;l++)e.lineTo(r[l][0],r[l][1])}function Gx(e,t,n){var r=e.getTextGuideLine(),i=e.getTextContent();if(i){for(var o=t.normal,a=o.get("show"),s=i.ignore,u=0;u<Ha.length;u++){var c=Ha[u],l=t[c],f="normal"===c;if(l){var d=l.get("show");if((f?s:Object(x.retrieve2)(i.states[c]&&i.states[c].ignore,s))||!Object(x.retrieve2)(d,a)){var p=f?r:r&&r.states[c];p&&(p.ignore=!0);continue}r||(r=new jp,e.setTextGuideLine(r),f||!s&&a||Wx(r,!0,"normal",t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),Wx(r,!1,c,l)}}if(r){Object(x.defaults)(r.style,n),r.style.fill=null;var h=o.get("showAbove");(e.textGuideLineConfig=e.textGuideLineConfig||{}).showAbove=h||!1,r.buildPath=qx}}else r&&e.removeTextGuideLine()}function Yx(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},r=0;r<Va.length;r++){var i=Va[r];n[i]=e.getModel([i,t])}return n}function Kx(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(!r.defaultAttr.ignore){var i=r.label,o=i.getComputedTransform(),a=i.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,u=i.style.margin||0,c=a.clone();c.applyTransform(o),c.x-=u/2,c.y-=u/2,c.width+=u,c.height+=u;var l=s?new Kp(a,o):null;t.push({label:i,labelLine:r.labelLine,rect:c,localRect:a,obb:l,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:o})}}return t}function $x(e,t,n,r,i,o){var a=e.length;if(!(a<2)){e.sort((function(e,n){return e.rect[t]-n.rect[t]}));for(var s,u=0,c=!1,l=[],f=0,d=0;d<a;d++){var p=e[d],h=p.rect;(s=h[t]-u)<0&&(h[t]-=s,p.label[t]-=s,c=!0);var v=Math.max(-s,0);l.push(v),f+=v,u=h[t]+h[n]}f>0&&o&&_(-f/a,0,a);var g,m,y=e[0],b=e[a-1];return x(),g<0&&S(-g,.8),m<0&&S(m,.8),x(),w(g,m,1),w(m,g,-1),x(),g<0&&O(-g),m<0&&O(m),c}function x(){g=y.rect[t]-r,m=i-b.rect[t]-b.rect[n]}function w(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){_(r*n,0,a);var i=r+e;i<0&&S(-i*n,1)}else S(-e*n,1)}}function _(n,r,i){0!==n&&(c=!0);for(var o=r;o<i;o++){var a=e[o];a.rect[t]+=n,a.label[t]+=n}}function S(r,i){for(var o=[],s=0,u=1;u<a;u++){var c=e[u-1].rect,l=Math.max(e[u].rect[t]-c[t]-c[n],0);o.push(l),s+=l}if(s){var f=Math.min(Math.abs(r)/s,i);if(r>0)for(u=0;u<a-1;u++){_(o[u]*f,0,u+1)}else for(u=a-1;u>0;u--){_(-(o[u-1]*f),u,a)}}}function O(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),r=0;r<a-1;r++)if(t>0?_(n,0,r+1):_(-n,a-r-1,a),(e-=n)<=0)return}}function Xx(e,t,n,r){return $x(e,"y","height",t,n,r)}function Qx(e){var t=[];e.sort((function(e,t){return t.priority-e.priority}));var n=new Fe(0,0,0,0);function r(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var i=0;i<e.length;i++){var o=e[i],a=o.axisAligned,s=o.localRect,u=o.transform,c=o.label,l=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var f=o.obb,d=!1,p=0;p<t.length;p++){var h=t[p];if(n.intersect(h.rect)){if(a&&h.axisAligned){d=!0;break}if(h.obb||(h.obb=new Kp(h.localRect,h.transform)),f||(f=new Kp(s,u)),f.intersect(h.obb)){d=!0;break}}}d?(r(c),l&&r(l)):(c.attr("ignore",o.defaultAttr.ignore),l&&l.attr("ignore",o.defaultAttr.labelGuideIgnore),t.push(o))}}function Zx(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function Jx(e,t){var n=e.label,r=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:Zx(r&&r.shape.points)}}var ew=["align","verticalAlign","width","height","fontSize"],tw=new Un,nw=oi(),rw=oi();function iw(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];null!=t[i]&&(e[i]=t[i])}}var ow=["x","y","rotation"],aw=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(e,t,n,r,i){var o=r.style,a=r.__hostTarget.textConfig||{},s=r.getComputedTransform(),u=r.getBoundingRect().plain();Fe.applyTransform(u,u,s),s?tw.setLocalTransform(s):(tw.x=tw.y=tw.rotation=tw.originX=tw.originY=0,tw.scaleX=tw.scaleY=1);var c,l=r.__hostTarget;if(l){c=l.getBoundingRect().plain();var f=l.getComputedTransform();Fe.applyTransform(c,c,f)}var d=c&&l.getTextGuideLine();this._labelList.push({label:r,labelLine:d,seriesModel:n,dataIndex:e,dataType:t,layoutOption:i,computedLayoutOption:null,rect:u,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:d&&d.ignore,x:tw.x,y:tw.y,scaleX:tw.scaleX,scaleY:tw.scaleY,rotation:tw.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:r.cursor,attachedPos:a.position,attachedRot:a.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,r=n.get("labelLayout");(Object(x.isFunction)(r)||Object(x.keys)(r).length)&&e.group.traverse((function(e){if(e.ignore)return!0;var i=e.getTextContent(),o=Ia(e);i&&!i.disableLabelLayout&&t._addLabel(o.dataIndex,o.dataType,n,i,r)}))},e.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function r(e,t){return function(){Bx(e,t)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],a=o.label,s=a.__hostTarget,u=o.defaultAttr,c=void 0;c=(c=Object(x.isFunction)(o.layoutOption)?o.layoutOption(Jx(o,s)):o.layoutOption)||{},o.computedLayoutOption=c;var l=Math.PI/180;s&&s.setTextConfig({local:!1,position:null!=c.x||null!=c.y?null:u.attachedPos,rotation:null!=c.rotate?c.rotate*l:u.attachedRot,offset:[c.dx||0,c.dy||0]});var f=!1;if(null!=c.x?(a.x=wr(c.x,t),a.setStyle("x",0),f=!0):(a.x=u.x,a.setStyle("x",u.style.x)),null!=c.y?(a.y=wr(c.y,n),a.setStyle("y",0),f=!0):(a.y=u.y,a.setStyle("y",u.style.y)),c.labelLinePoints){var d=s.getTextGuideLine();d&&(d.setShape({points:c.labelLinePoints}),f=!1)}nw(a).needsUpdateLabelLine=f,a.rotation=null!=c.rotate?c.rotate*l:u.rotation,a.scaleX=u.scaleX,a.scaleY=u.scaleY;for(var p=0;p<ew.length;p++){var h=ew[p];a.setStyle(h,null!=c[h]?c[h]:u.style[h])}if(c.draggable){if(a.draggable=!0,a.cursor="move",s){var v=o.seriesModel;if(null!=o.dataIndex)v=o.seriesModel.getData(o.dataType).getItemModel(o.dataIndex);a.on("drag",r(s,v.getModel("labelLine")))}}else a.off("drag"),a.cursor=u.cursor}},e.prototype.layout=function(e){var t,n=e.getWidth(),r=e.getHeight(),i=Kx(this._labelList),o=Object(x.filter)(i,(function(e){return"shiftX"===e.layoutOption.moveOverlap})),a=Object(x.filter)(i,(function(e){return"shiftY"===e.layoutOption.moveOverlap}));$x(o,"x","width",0,n,t),Xx(a,0,r),Qx(Object(x.filter)(i,(function(e){return e.layoutOption.hideOverlap})))},e.prototype.processLabelsOverall=function(){var e=this;Object(x.each)(this._chartViewList,(function(t){var n=t.__model,r=t.ignoreLabelLineUpdate,i=n.isAnimationEnabled();t.group.traverse((function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var o=!r,a=t.getTextContent();!o&&a&&(o=nw(a).needsUpdateLabelLine),o&&e._updateLabelLine(t,n),i&&e._animateLabels(t,n)}))}))},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),r=Ia(e),i=r.dataIndex;if(n&&null!=i){var o=t.getData(r.dataType),a=o.getItemModel(i),s={},u=o.getItemVisual(i,"style"),c=o.getVisual("drawType");s.stroke=u[c];var l=a.getModel("labelLine");Gx(e,Yx(a),s),Bx(e,l)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),r=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!Vs(e))){var i=(p=nw(n)).oldLayout,o=Ia(e),a=o.dataIndex,s={x:n.x,y:n.y,rotation:n.rotation},u=t.getData(o.dataType);if(i){n.attr(i);var c=e.prevStates;c&&(Object(x.indexOf)(c,"select")>=0&&n.attr(p.oldLayoutSelect),Object(x.indexOf)(c,"emphasis")>=0&&n.attr(p.oldLayoutEmphasis)),Us(n,s,t,a)}else if(n.attr(s),!ou(n).valueAnimation){var l=Object(x.retrieve2)(n.style.opacity,1);n.style.opacity=0,zs(n,{style:{opacity:l}},t,a)}if(p.oldLayout=s,n.states.select){var f=p.oldLayoutSelect={};iw(f,s,ow),iw(f,n.states.select,ow)}if(n.states.emphasis){var d=p.oldLayoutEmphasis={};iw(d,s,ow),iw(d,n.states.emphasis,ow)}su(n,a,u,t,t)}if(r&&!r.ignore&&!r.invisible){i=(p=rw(r)).oldLayout;var p,h={points:r.shape.points};i?(r.attr({shape:i}),Us(r,{shape:h},t)):(r.setShape(h),r.style.strokePercent=0,zs(r,{style:{strokePercent:1}},t)),p.oldLayout=h}},e}(),sw=oi();function uw(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){var r=sw(t).labelManager;r||(r=sw(t).labelManager=new aw),r.clearLabels()})),e.registerUpdateLifecycle("series:layoutlabels",(function(e,t,n){var r=sw(t).labelManager;n.updatedSeries.forEach((function(e){r.addLabelsOfSeries(t.getViewOfSeriesModel(e))})),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()}))}function cw(e,t,n){var r=Vn.d.createCanvas(),i=t.getWidth(),o=t.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",e)),r.width=i*n,r.height=o*n,r}Ym(uw);var lw=function(e){function t(t,n,r){var i,o=e.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,r=r||Tn,"string"==typeof t?i=cw(t,n,r):x.isObject(t)&&(t=(i=t).id),o.id=t,o.dom=i;var a=i.style;return a&&(x.disableUserSelect(i),i.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=r,o}return _(t,e),t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=cw("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i,o=[],a=this.maxRepaintRectCount,s=!1,u=new Fe(0,0,0,0);function c(e){if(e.isFinite()&&!e.isZero())if(0===o.length){(t=new Fe(0,0,0,0)).copy(e),o.push(t)}else{for(var t,n=!1,r=1/0,i=0,c=0;c<o.length;++c){var l=o[c];if(l.intersect(e)){var f=new Fe(0,0,0,0);f.copy(l),f.union(e),o[c]=f,n=!0;break}if(s){u.copy(e),u.union(l);var d=e.width*e.height,p=l.width*l.height,h=u.width*u.height-d-p;h<r&&(r=h,i=c)}}if(s&&(o[i].union(e),n=!0),!n)(t=new Fe(0,0,0,0)).copy(e),o.push(t);s||(s=o.length>=a)}}for(var l=this.__startIndex;l<this.__endIndex;++l){if(p=e[l]){var f=p.shouldBePainted(n,r,!0,!0);(h=p.__isRendered&&(p.__dirty&it||!f)?p.getPrevPaintRect():null)&&c(h);var d=f&&(p.__dirty&it||!p.__isRendered)?p.getPaintRect():null;d&&c(d)}}for(l=this.__prevStartIndex;l<this.__prevEndIndex;++l){var p,h;f=(p=t[l]).shouldBePainted(n,r,!0,!0);if(p&&(!f||!p.__zr)&&p.__isRendered)(h=p.getPrevPaintRect())&&c(h)}do{i=!1;for(l=0;l<o.length;)if(o[l].isZero())o.splice(l,1);else{for(var v=l+1;v<o.length;)o[l].intersect(o[v])?(i=!0,o[l].union(o[v]),o.splice(v,1)):v++;l++}}while(i);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,i=r.style,o=this.domBack;i&&(i.width=e+"px",i.height=t+"px"),r.width=e*n,r.height=t*n,o&&(o.width=e*n,o.height=t*n,1!==n&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var r=this.dom,i=this.ctx,o=r.width,a=r.height;t=t||this.clearColor;var s=this.motionBlur&&!e,u=this.lastFrameAlpha,c=this.dpr,l=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,o/c,a/c));var f=this.domBack;function d(e,n,r,o){if(i.clearRect(e,n,r,o),t&&"transparent"!==t){var a=void 0;x.isGradientObject(t)?(a=t.__canvasGradient||Gv(i,t,{x:0,y:0,width:r,height:o}),t.__canvasGradient=a):x.isImagePatternObject(t)&&(t.scaleX=t.scaleX||c,t.scaleY=t.scaleY||c,a=ng(i,t,{dirty:function(){l.setUnpainted(),l.__painter.refresh()}})),i.save(),i.fillStyle=a||t,i.fillRect(e,n,r,o),i.restore()}s&&(i.save(),i.globalAlpha=u,i.drawImage(f,e,n,r,o),i.restore())}!n||s?d(0,0,o,a):n.length&&x.each(n,(function(e){d(e.x*c,e.y*c,e.width*c,e.height*c)}))},t}(X),fw=314159;var dw=function(){function e(e,t,n,r){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!e.nodeName||"CANVAS"===e.nodeName.toUpperCase();this._opts=n=x.extend({},n||{}),this.dpr=n.devicePixelRatio||Tn,this._singleCanvas=i,this.root=e,e.style&&(x.disableUserSelect(e),e.innerHTML=""),this.storage=t;var o=this._zlevelList;this._prevDisplayList=[];var a=this._layers;if(i){var s=e,u=s.width,c=s.height;null!=n.width&&(u=n.width),null!=n.height&&(c=n.height),this.dpr=n.devicePixelRatio||1,s.width=u*this.dpr,s.height=c*this.dpr,this._width=u,this._height=c;var l=new lw(s,this,this.dpr);l.__builtin__=!0,l.initContext(),a[fw]=l,l.zlevel=fw,o.push(fw),this._domRoot=e}else{this._width=Kv(e,0,n),this._height=Kv(e,1,n);var f=this._domRoot=function(e,t){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}(this._width,this._height);e.appendChild(f)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var i=0;i<r.length;i++){var o=r[i],a=this._layers[o];if(!a.__builtin__&&a.refresh){var s=0===i?this._backgroundColor:null;a.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),t){for(var r,i={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<t;o++){var a=e[o];a.__inHover&&(n||(n=this._hoverlayer=this.getLayer(1e5)),r||(r=n.ctx).save(),vg(r,a,i,o===t-1))}r&&r.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(1e5)},e.prototype.paintOne=function(e,t){hg(e,t)},e.prototype._paintList=function(e,t,n,r){if(this._redrawId===r){n=n||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,t,n),o=i.finished,a=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),a&&this._paintHoverList(e),o)this.eachLayer((function(e){e.afterBrush&&e.afterBrush()}));else{var s=this;lt((function(){s._paintList(e,t,n,r)}))}}},e.prototype._compositeManually=function(){var e=this.getLayer(fw).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer((function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)}))},e.prototype._doPaintList=function(e,t,n){for(var r=this,i=[],o=this._opts.useDirtyRect,a=0;a<this._zlevelList.length;a++){var s=this._zlevelList[a],u=this._layers[s];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&i.push(u)}for(var c=!0,l=!1,f=function(a){var s,u=i[a],f=u.ctx,p=o&&u.createRepaintRects(e,t,d._width,d._height),h=n?u.__startIndex:u.__drawIndex,v=!n&&u.incremental&&Date.now,g=v&&Date.now(),m=u.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(u.__startIndex===u.__endIndex)u.clear(!1,m,p);else if(h===u.__startIndex){var y=e[h];y.incremental&&y.notClear&&!n||u.clear(!1,m,p)}-1===h&&(console.error("For some unknown reason. drawIndex is -1"),h=u.__startIndex);var b=function(t){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(s=h;s<u.__endIndex;s++){var i=e[s];if(i.__inHover&&(l=!0),r._doPaintEl(i,u,o,t,n,s===u.__endIndex-1),v)if(Date.now()-g>15)break}n.prevElClipPaths&&f.restore()};if(p)if(0===p.length)s=u.__endIndex;else for(var x=d.dpr,w=0;w<p.length;++w){var _=p[w];f.save(),f.beginPath(),f.rect(_.x*x,_.y*x,_.width*x,_.height*x),f.clip(),b(_),f.restore()}else f.save(),b(),f.restore();u.__drawIndex=s,u.__drawIndex<u.__endIndex&&(c=!1)},d=this,p=0;p<i.length;p++)f(p);return b.a.wxa&&x.each(this._layers,(function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()})),{finished:c,needsRefreshHover:l}},e.prototype._doPaintEl=function(e,t,n,r,i,o){var a=t.ctx;if(n){var s=e.getPaintRect();(!r||s&&s.intersect(r))&&(vg(a,e,i,o),e.setPrevPaintRect(s))}else vg(a,e,i,o)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=fw);var n=this._layers[e];return n||((n=new lw("zr_"+e,this,this.dpr)).zlevel=e,n.__builtin__=!0,this._layerConfig[e]?x.merge(n,this._layerConfig[e],!0):this._layerConfig[e-.01]&&x.merge(n,this._layerConfig[e-.01],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},e.prototype.insertLayer=function(e,t){var n=this._layers,r=this._zlevelList,i=r.length,o=this._domRoot,a=null,s=-1;if(!n[e]&&function(e){return!!e&&(!!e.__builtin__||"function"==typeof e.resize&&"function"==typeof e.refresh)}(t)){if(i>0&&e>r[0]){for(s=0;s<i-1&&!(r[s]<e&&r[s+1]>e);s++);a=n[r[s]]}if(r.splice(s+1,0,e),n[e]=t,!t.virtual)if(a){var u=a.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.__painter=this}},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r];e.call(t,this._layers[i],i)}},e.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__&&e.call(t,o,i)}},e.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],o=this._layers[i];o.__builtin__||e.call(t,o,i)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(e){function t(e){o&&(o.__endIndex!==e&&(o.__dirty=!0),o.__endIndex=e)}if(this.eachBuiltinLayer((function(e,t){e.__dirty=e.__used=!1})),this._singleCanvas)for(var n=1;n<e.length;n++){if((s=e[n]).zlevel!==e[n-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}}var r,i,o=null,a=0;for(i=0;i<e.length;i++){var s,u=(s=e[i]).zlevel,c=void 0;r!==u&&(r=u,a=0),s.incremental?((c=this.getLayer(u+.001,this._needsManuallyCompositing)).incremental=!0,a=1):c=this.getLayer(u+(a>0?.01:0),this._needsManuallyCompositing),c.__builtin__||x.logError("ZLevel "+u+" has been used by unkown layer "+c.id),c!==o&&(c.__used=!0,c.__startIndex!==i&&(c.__dirty=!0),c.__startIndex=i,c.incremental?c.__drawIndex=-1:c.__drawIndex=i,t(i),o=c),s.__dirty&it&&!s.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=i))}t(i),this.eachBuiltinLayer((function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)}))},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,x.each(this._layers,(function(e){e.setUnpainted()}))},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?x.merge(n[e],t,!0):n[e]=t;for(var r=0;r<this._zlevelList.length;r++){var i=this._zlevelList[r];if(i===e||i===e+.01){var o=this._layers[i];x.merge(o,n[e],!0)}}}},e.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,r=t[e];r&&(r.dom.parentNode.removeChild(r.dom),delete t[e],n.splice(x.indexOf(n,e),1))},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var r=this._opts,i=this.root;if(null!=e&&(r.width=e),null!=t&&(r.height=t),e=Kv(i,0,r),t=Kv(i,1,r),n.style.display="",this._width!==e||t!==this._height){for(var o in n.style.width=e+"px",n.style.height=t+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(null==e||null==t)return;this._width=e,this._height=t,this.getLayer(fw).resize(e,t)}return this},e.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[fw].dom;var t=new lw("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var r=t.dom.width,i=t.dom.height;this.eachLayer((function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())}))}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,u=a.length;s<u;s++){var c=a[s];vg(n,c,o,s===u-1)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();var pw=Math.sin,hw=Math.cos,vw=Math.PI,gw=2*Math.PI,mw=180/vw,yw=function(){function e(){}return e.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},e.prototype.moveTo=function(e,t){this._add("M",e,t)},e.prototype.lineTo=function(e,t){this._add("L",e,t)},e.prototype.bezierCurveTo=function(e,t,n,r,i,o){this._add("C",e,t,n,r,i,o)},e.prototype.quadraticCurveTo=function(e,t,n,r){this._add("Q",e,t,n,r)},e.prototype.arc=function(e,t,n,r,i,o){this.ellipse(e,t,n,n,0,r,i,o)},e.prototype.ellipse=function(e,t,n,r,i,o,a,s){var u=a-o,c=!s,l=Math.abs(u),f=Object(zt.j)(l-gw)||(c?u>=gw:-u>=gw),d=u>0?u%gw:u%gw+gw,p=!1;p=!!f||!Object(zt.j)(l)&&d>=vw==!!c;var h=e+n*hw(o),v=t+r*pw(o);this._start&&this._add("M",h,v);var g=Math.round(i*mw);if(f){var m=1/this._p,y=(c?1:-1)*(gw-m);this._add("A",n,r,g,1,+c,e+n*hw(o+y),t+r*pw(o+y)),m>.01&&this._add("A",n,r,g,0,+c,h,v)}else{var b=e+n*hw(a),x=t+r*pw(a);this._add("A",n,r,g,+p,+c,b,x)}},e.prototype.rect=function(e,t,n,r){this._add("M",e,t),this._add("l",n,0),this._add("l",0,r),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(e,t,n,r,i,o,a,s,u){for(var c=[],l=this._p,f=1;f<arguments.length;f++){var d=arguments[f];if(isNaN(d))return void(this._invalid=!0);c.push(Math.round(d*l)/l)}this._d.push(e+c.join(" ")),this._start="Z"===e},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),bw="none",xw=Math.round;var ww=["lineCap","miterLimit","lineJoin"],_w=Object(x.map)(ww,(function(e){return"stroke-"+e.toLowerCase()}));function Sw(e,t,n,r){var i=null==t.opacity?1:t.opacity;if(n instanceof ua)e("opacity",i);else{if(function(e){var t=e.fill;return null!=t&&t!==bw}(t)){var o=Object(zt.p)(t.fill);e("fill",o.color);var a=null!=t.fillOpacity?t.fillOpacity*o.opacity*i:o.opacity*i;(r||a<1)&&e("fill-opacity",a)}else e("fill",bw);if(function(e){var t=e.stroke;return null!=t&&t!==bw}(t)){var s=Object(zt.p)(t.stroke);e("stroke",s.color);var u=t.strokeNoScale?n.getLineScale():1,c=u?(t.lineWidth||0)/u:0,l=null!=t.strokeOpacity?t.strokeOpacity*s.opacity*i:s.opacity*i,f=t.strokeFirst;if((r||1!==c)&&e("stroke-width",c),(r||f)&&e("paint-order",f?"stroke":"fill"),(r||l<1)&&e("stroke-opacity",l),t.lineDash){var d=$v(n),p=d[0],h=d[1];p&&(h=xw(h||0),e("stroke-dasharray",p.join(",")),(h||r)&&e("stroke-dashoffset",h))}else r&&e("stroke-dasharray",bw);for(var v=0;v<ww.length;v++){var g=ww[v];if(r||t[g]!==Zo[g]){var m=t[g]||Zo[g];m&&e(_w[v],m)}}}else r&&e("stroke",bw)}}var Ow="http://www.w3.org/2000/svg",kw="http://www.w3.org/1999/xlink",Ew="http://www.w3.org/2000/xmlns/",jw="http://www.w3.org/XML/1998/namespace";function Tw(e){return document.createElementNS(Ow,e)}function Cw(e,t,n,r,i){return{tag:e,attrs:n||{},children:r,text:i,key:t}}function Aw(e,t){var n=(t=t||{}).newline?"\n":"";return function e(t){var r=t.children,i=t.tag;return function(e,t){var n=[];if(t)for(var r in t){var i=t[r],o=r;!1!==i&&(!0!==i&&null!=i&&(o+='="'+i+'"'),n.push(o))}return"<"+e+" "+n.join(" ")+">"}(i,t.attrs)+ae(t.text)+(r?""+n+Object(x.map)(r,(function(t){return e(t)})).join(n)+n:"")+("</"+i+">")}(e)}function Pw(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Mw(e,t,n,r){return Cw("svg","root",{width:e,height:t,xmlns:Ow,"xmlns:xlink":kw,version:"1.1",baseProfile:"full",viewBox:!!r&&"0 0 "+e+" "+t},n)}var Iw={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Rw="transform-origin";function Dw(e,t,n){var r=Object(x.extend)({},e.shape);Object(x.extend)(r,t),e.buildPath(n,r);var i=new yw;return i.reset(Object(zt.f)(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function Lw(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[Rw]=n+"px "+r+"px")}var Nw={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function Fw(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function Bw(e){return Object(x.isString)(e)?Iw[e]?"cubic-bezier("+Iw[e]+")":Ft(e)?e:"":""}function Uw(e,t,n,r){var i=e.animators,o=i.length,a=[];if(e instanceof Up){if(g=function(e,t,n){var r,i,o=e.shape.paths,a={};if(Object(x.each)(o,(function(e){var t=Pw(n.zrId);t.animation=!0,Uw(e,{},t,!0);var o=t.cssAnims,s=t.cssNodes,u=Object(x.keys)(o),c=u.length;if(c){var l=o[i=u[c-1]];for(var f in l){var d=l[f];a[f]=a[f]||{d:""},a[f].d+=d.d||""}for(var p in s){var h=s[p].animation;h.indexOf(i)>=0&&(r=h)}}})),r){t.d=!1;var s=Fw(a,n);return r.replace(i,s)}}(e,t,n))a.push(g);else if(!o)return}else if(!o)return;for(var s={},u=0;u<o;u++){var c=i[u],l=[c.getMaxTime()/1e3+"s"],f=Bw(c.getClip().easing),d=c.getDelay();f?l.push(f):l.push("linear"),d&&l.push(d/1e3+"s"),c.getLoop()&&l.push("infinite");var p=l.join(" ");s[p]=s[p]||[p,[]],s[p][1].push(c)}function h(i){var o,a=i[1],s=a.length,u={},c={},l={},f="animation-timing-function";function d(e,t,n){for(var r=e.getTracks(),i=e.getMaxTime(),o=0;o<r.length;o++){var a=r[o];if(a.needsAnimate()){var s=a.keyframes,u=a.propName;if(n&&(u=n(u)),u)for(var c=0;c<s.length;c++){var l=s[c],d=Math.round(l.time/i*100)+"%",p=Bw(l.easing),h=l.rawValue;(Object(x.isString)(h)||Object(x.isNumber)(h))&&(t[d]=t[d]||{},t[d][u]=l.rawValue,p&&(t[d][f]=p))}}}}for(var p=0;p<s;p++){(O=(S=a[p]).targetName)?"shape"===O&&d(S,c):!r&&d(S,u)}for(var h in u){var v={};Bn(v,e),Object(x.extend)(v,u[h]);var g=Object(zt.g)(v),m=u[h][f];l[h]=g?{transform:g}:{},Lw(l[h],v),m&&(l[h][f]=m)}var y=!0;for(var h in c){l[h]=l[h]||{};var b=!o;m=c[h][f];b&&(o=new Ro);var w=o.len();o.reset(),l[h].d=Dw(e,c[h],o);var _=o.len();if(!b&&w!==_){y=!1;break}m&&(l[h][f]=m)}if(!y)for(var h in l)delete l[h].d;if(!r)for(p=0;p<s;p++){var S,O;"style"===(O=(S=a[p]).targetName)&&d(S,l,(function(e){return Nw[e]}))}var k,E=Object(x.keys)(l),j=!0;for(p=1;p<E.length;p++){var T=E[p-1],C=E[p];if(l[T][Rw]!==l[C][Rw]){j=!1;break}k=l[T][Rw]}if(j&&k){for(var h in l)l[h][Rw]&&delete l[h][Rw];t[Rw]=k}if(Object(x.filter)(E,(function(e){return Object(x.keys)(l[e]).length>0})).length)return Fw(l,n)+" "+i[0]+" both"}for(var v in s){var g;(g=h(s[v]))&&a.push(g)}if(a.length){var m=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+m]={animation:a.join(",")},t.class=m}}var zw=Math.round;function Vw(e){return e&&Object(x.isString)(e.src)}function Hw(e){return e&&Object(x.isFunction)(e.toDataURL)}function Ww(e,t,n,r){Sw((function(i,o){var a="fill"===i||"stroke"===i;a&&Object(zt.k)(o)?function(e,t,n,r){var i,o=e[n],a={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if(Object(zt.m)(o))i="linearGradient",a.x1=o.x,a.y1=o.y,a.x2=o.x2,a.y2=o.y2;else{if(!Object(zt.o)(o))return void 0;i="radialGradient",a.cx=Object(x.retrieve2)(o.x,.5),a.cy=Object(x.retrieve2)(o.y,.5),a.r=Object(x.retrieve2)(o.r,.5)}for(var s=o.colorStops,u=[],c=0,l=s.length;c<l;++c){var f=100*Object(zt.q)(s[c].offset)+"%",d=s[c].color,p=Object(zt.p)(d),h=p.color,v=p.opacity,g={offset:f};g["stop-color"]=h,v<1&&(g["stop-opacity"]=v),u.push(Cw("stop",c+"",g))}var m=Aw(Cw(i,"",a,u)),y=r.gradientCache,b=y[m];b||(b=r.zrId+"-g"+r.gradientIdx++,y[m]=b,a.id=b,r.defs[b]=Cw(i,b,a,u));t[n]=Object(zt.d)(b)}(t,e,i,r):a&&Object(zt.n)(o)?function(e,t,n,r){var i,o=e.style[n],a={patternUnits:"userSpaceOnUse"};if(Object(zt.l)(o)){var s=o.imageWidth,u=o.imageHeight,c=void 0,l=o.image;if(Object(x.isString)(l)?c=l:Vw(l)?c=l.src:Hw(l)&&(c=l.toDataURL()),"undefined"==typeof Image){var f="Image width/height must been given explictly in svg-ssr renderer.";Object(x.assert)(s,f),Object(x.assert)(u,f)}else if(null==s||null==u){var d=function(e,t){if(e){var n=e.elm,r=e.attrs.width=s||t.width,i=e.attrs.height=u||t.height;n&&(n.setAttribute("width",r),n.setAttribute("height",i))}},p=Ai(c,null,e,(function(e){d(h,e),d(i,e)}));p&&p.width&&p.height&&(s=s||p.width,u=u||p.height)}i=Cw("image","img",{href:c,width:s,height:u}),a.width=s,a.height=u}else o.svgElement&&(i=Object(x.clone)(o.svgElement),a.width=o.svgWidth,a.height=o.svgHeight);if(!i)return;a.patternTransform=Object(zt.g)(o);var h=Cw("pattern","",a,[i]),v=Aw(h),g=r.patternCache,m=g[v];m||(m=r.zrId+"-p"+r.patternIdx++,g[v]=m,a.id=m,h=r.defs[m]=Cw("pattern",m,a,[i]));t[n]=Object(zt.d)(m)}(n,e,i,r):e[i]=o}),t,n,!1),function(e,t,n){var r=e.style;if(Object(zt.i)(r)){var i=Object(zt.h)(e),o=n.shadowCache,a=o[i];if(!a){var s=e.getGlobalScale(),u=s[0],c=s[1];if(!u||!c)return;var l=r.shadowOffsetX||0,f=r.shadowOffsetY||0,d=r.shadowBlur,p=Object(zt.p)(r.shadowColor),h=p.opacity,v=p.color,g=d/2/u+" "+d/2/c;a=n.zrId+"-s"+n.shadowIdx++,n.defs[a]=Cw("filter",a,{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Cw("feDropShadow","",{dx:l/u,dy:f/c,stdDeviation:g,"flood-color":v,"flood-opacity":h})]),o[i]=a}t.filter=Object(zt.d)(a)}}(n,e,r)}function qw(e){return Object(zt.j)(e[0]-1)&&Object(zt.j)(e[1])&&Object(zt.j)(e[2])&&Object(zt.j)(e[3]-1)}function Gw(e,t,n){if(t&&(!function(e){return Object(zt.j)(e[4])&&Object(zt.j)(e[5])}(t)||!qw(t))){var r=n?10:1e4;e.transform=qw(t)?"translate("+zw(t[4]*r)/r+" "+zw(t[5]*r)/r+")":Object(zt.e)(t)}}function Yw(e,t,n){for(var r=e.points,i=[],o=0;o<r.length;o++)i.push(zw(r[o][0]*n)/n),i.push(zw(r[o][1]*n)/n);t.points=i.join(" ")}function Kw(e){return!e.smooth}var $w,Xw,Qw={circle:[($w=["cx","cy","r"],Xw=Object(x.map)($w,(function(e){return"string"==typeof e?[e,e]:e})),function(e,t,n){for(var r=0;r<Xw.length;r++){var i=Xw[r],o=e[i[0]];null!=o&&(t[i[1]]=zw(o*n)/n)}})],polyline:[Yw,Kw],polygon:[Yw,Kw]};function Zw(e,t){var n=e.style,r=e.shape,i=Qw[e.type],o={},a=t.animation,s="path",u=e.style.strokePercent,c=t.compress&&Object(zt.f)(e)||4;if(!i||t.willUpdate||i[1]&&!i[1](r)||a&&function(e){for(var t=e.animators,n=0;n<t.length;n++)if("shape"===t[n].targetName)return!0;return!1}(e)||u<1){e.path||e.createPathProxy();var l=e.path;e.shapeChanged()&&(l.beginPath(),e.buildPath(l,e.shape),e.pathUpdated());var f=l.getVersion(),d=e,p=d.__svgPathBuilder;d.__svgPathVersion===f&&p&&u===d.__svgPathStrokePercent||(p||(p=d.__svgPathBuilder=new yw),p.reset(c),l.rebuildPath(p,u),p.generateStr(),d.__svgPathVersion=f,d.__svgPathStrokePercent=u),o.d=p.getStr()}else{s=e.type;var h=Math.pow(10,c);i[0](r,o,h)}return Gw(o,e.transform),Ww(o,n,e,t),t.animation&&Uw(e,o,t),Cw(s,e.id+"",o)}function Jw(e,t){return e instanceof ta?Zw(e,t):e instanceof ua?function(e,t){var n=e.style,r=n.image;if(r&&!Object(x.isString)(r)&&(Vw(r)?r=r.src:Hw(r)&&(r=r.toDataURL())),r){var i=n.x||0,o=n.y||0,a={href:r,width:n.width,height:n.height};return i&&(a.x=i),o&&(a.y=o),Gw(a,e.transform),Ww(a,n,e,t),t.animation&&Uw(e,a,t),Cw("image",e.id+"",a)}}(e,t):e instanceof ia?function(e,t){var n=e.style,r=n.text;if(null!=r&&(r+=""),r&&!isNaN(n.x)&&!isNaN(n.y)){var i=n.font||Vn.a,o=n.x||0,a=Object(zt.b)(n.y||0,$n(i),n.textBaseline),s={"dominant-baseline":"central","text-anchor":zt.a[n.textAlign]||n.textAlign};if(ka(n)){var u="",c=n.fontStyle,l=Sa(n.fontSize);if(!parseFloat(l))return;var f=n.fontFamily||Vn.b,d=n.fontWeight;u+="font-size:"+l+";font-family:"+f+";",c&&"normal"!==c&&(u+="font-style:"+c+";"),d&&"normal"!==d&&(u+="font-weight:"+d+";"),s.style=u}else s.style="font: "+i;return r.match(/\s/)&&(s["xml:space"]="preserve"),o&&(s.x=o),a&&(s.y=a),Gw(s,e.transform),Ww(s,n,e,t),t.animation&&Uw(e,s,t),Cw("text",e.id+"",s,void 0,r)}}(e,t):void 0}function e_(e,t,n){var r=n.clipPathCache,i=n.defs,o=r[e.id];if(!o){var a={id:o=n.zrId+"-c"+n.clipPathIdx++};r[e.id]=o,i[o]=Cw("clipPath",o,a,[Zw(e,n)])}t["clip-path"]=Object(zt.d)(o)}function t_(e){return document.createTextNode(e)}function n_(e,t,n){e.insertBefore(t,n)}function r_(e,t){e.removeChild(t)}function i_(e,t){e.appendChild(t)}function o_(e){return e.parentNode}function a_(e){return e.nextSibling}function s_(e,t){e.textContent=t}var u_=58,c_=120,l_=Cw("","");function f_(e){return void 0===e}function d_(e){return void 0!==e}function p_(e,t,n){for(var r={},i=t;i<=n;++i){var o=e[i].key;void 0!==o&&(r[o]=i)}return r}function h_(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function v_(e){var t,n=e.children,r=e.tag;if(d_(r)){var i=e.elm=Tw(r);if(y_(l_,e),Object(x.isArray)(n))for(t=0;t<n.length;++t){var o=n[t];null!=o&&i_(i,v_(o))}else d_(e.text)&&!Object(x.isObject)(e.text)&&i_(i,t_(e.text))}else e.elm=t_(e.text);return e.elm}function g_(e,t,n,r,i){for(;r<=i;++r){var o=n[r];null!=o&&n_(e,v_(o),t)}}function m_(e,t,n,r){for(;n<=r;++n){var i=t[n];if(null!=i)if(d_(i.tag))r_(o_(i.elm),i.elm);else r_(e,i.elm)}}function y_(e,t){var n,r=t.elm,i=e&&e.attrs||{},o=t.attrs||{};if(i!==o){for(n in o){var a=o[n];i[n]!==a&&(!0===a?r.setAttribute(n,""):!1===a?r.removeAttribute(n):n.charCodeAt(0)!==c_?r.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?r.setAttributeNS(Ew,n,a):n.charCodeAt(3)===u_?r.setAttributeNS(jw,n,a):n.charCodeAt(5)===u_?r.setAttributeNS(kw,n,a):r.setAttribute(n,a))}for(n in i)n in o||r.removeAttribute(n)}}function b_(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(y_(e,t),f_(t.text)?d_(r)&&d_(i)?r!==i&&function(e,t,n){for(var r,i,o,a=0,s=0,u=t.length-1,c=t[0],l=t[u],f=n.length-1,d=n[0],p=n[f];a<=u&&s<=f;)null==c?c=t[++a]:null==l?l=t[--u]:null==d?d=n[++s]:null==p?p=n[--f]:h_(c,d)?(b_(c,d),c=t[++a],d=n[++s]):h_(l,p)?(b_(l,p),l=t[--u],p=n[--f]):h_(c,p)?(b_(c,p),n_(e,c.elm,a_(l.elm)),c=t[++a],p=n[--f]):h_(l,d)?(b_(l,d),n_(e,l.elm,c.elm),l=t[--u],d=n[++s]):(f_(r)&&(r=p_(t,a,u)),f_(i=r[d.key])?n_(e,v_(d),c.elm):(o=t[i]).tag!==d.tag?n_(e,v_(d),c.elm):(b_(o,d),t[i]=void 0,n_(e,o.elm,c.elm)),d=n[++s]);(a<=u||s<=f)&&(a>u?g_(e,null==n[f+1]?null:n[f+1].elm,n,s,f):m_(e,t,a,u))}(n,r,i):d_(i)?(d_(e.text)&&s_(n,""),g_(n,null,i,0,i.length-1)):d_(r)?m_(n,r,0,r.length-1):d_(e.text)&&s_(n,""):e.text!==t.text&&(d_(r)&&m_(n,r,0,r.length-1),s_(n,t.text)))}var x_=0;var w_=function(){function e(e,t,n){if(this.type="svg",this.refreshHover=function(){0},this.configLayer=function(){0},this.storage=t,this._opts=n=Object(x.extend)({},n),this.root=e,this._id="zr"+x_++,this._oldVNode=Mw(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement("div");r.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=Tw("svg");y_(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",function(e,t){if(h_(e,t))b_(e,t);else{var n=e.elm,r=o_(n);v_(t),null!==r&&(n_(r,t.elm,a_(n)),m_(r,[e],0,0))}}(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return Jw(e,Pw(this._id))},e.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._backgroundColor,r=this._width,i=this._height,o=Pw(this._id);o.animation=e.animation,o.willUpdate=e.willUpdate,o.compress=e.compress;var a=[];if(n&&"none"!==n){var s=Object(zt.p)(n),u=s.color,c=s.opacity;this._bgVNode=Cw("rect","bg",{width:r,height:i,x:"0",y:"0",id:"0",fill:u,"fill-opacity":c}),a.push(this._bgVNode)}else this._bgVNode=null;var l=e.compress?null:this._mainVNode=Cw("g","main",{},[]);this._paintList(t,o,l?l.children:a),l&&a.push(l);var f=Object(x.map)(Object(x.keys)(o.defs),(function(e){return o.defs[e]}));if(f.length&&a.push(Cw("defs","defs",{},f)),e.animation){var d=function(e,t,n){var r=(n=n||{}).newline?"\n":"",i=" {"+r,o=r+"}",a=Object(x.map)(Object(x.keys)(e),(function(t){return t+i+Object(x.map)(Object(x.keys)(e[t]),(function(n){return n+":"+e[t][n]+";"})).join(r)+o})).join(r),s=Object(x.map)(Object(x.keys)(t),(function(e){return"@keyframes "+e+i+Object(x.map)(Object(x.keys)(t[e]),(function(n){return n+i+Object(x.map)(Object(x.keys)(t[e][n]),(function(r){var i=t[e][n][r];return"d"===r&&(i='path("'+i+'")'),r+":"+i+";"})).join(r)+o})).join(r)+o})).join(r);return a||s?["<![CDATA[",a,s,"]]>"].join(r):""}(o.cssNodes,o.cssAnims,{newline:!0});if(d){var p=Cw("style","stl",{},[],d);a.push(p)}}return Mw(r,i,a,e.useViewBox)},e.prototype.renderToString=function(e){return e=e||{},Aw(this.renderToVNode({animation:Object(x.retrieve2)(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Object(x.retrieve2)(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e;var t=this._bgVNode;if(t&&t.elm){var n=Object(zt.p)(e),r=n.color,i=n.opacity;t.elm.setAttribute("fill",r),i<1&&t.elm.setAttribute("fill-opacity",i)}},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r,i,o=e.length,a=[],s=0,u=0,c=0;c<o;c++){var l=e[c];if(!l.invisible){var f=l.__clipPaths,d=f&&f.length||0,p=i&&i.length||0,h=void 0;for(h=Math.max(d-1,p-1);h>=0&&(!f||!i||f[h]!==i[h]);h--);for(var v=p-1;v>h;v--)r=a[--s-1];for(var g=h+1;g<d;g++){var m={};e_(f[g],m,t);var y=Cw("g","clip-g-"+u++,m,[]);(r?r.children:n).push(y),a[s++]=y,r=y}i=f;var b=Jw(l,t);b&&(r?r.children:n).push(b)}}},e.prototype.resize=function(e,t){var n=this._opts,r=this.root,i=this._viewport;if(null!=e&&(n.width=e),null!=t&&(n.height=t),r&&i&&(i.style.display="none",e=Kv(r,0,n),t=Kv(r,1,n),i.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,i){var o=i.style;o.width=e+"px",o.height=t+"px"}var a=this._svgDom;a&&(a.setAttribute("width",e),a.setAttribute("height",t))}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(e){var t=encodeURIComponent(this.renderToString()),n="data:image/svg+xml;";return e?(t=Object(zt.c)(t))&&n+"base64,"+t:n+"charset=UTF-8,"+t},e}();var __=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return y(t,e),t.prototype.getInitialData=function(e){return Ay(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new ur,n=Vv("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var r=this.getData().getVisual("symbol"),i=this.getData().getVisual("symbolRotate"),o="none"===r?"circle":r,a=.8*e.itemHeight,s=Vv(o,(e.itemWidth-a)/2,(e.itemHeight-a)/2,a,a,e.itemStyle.fill);t.add(s),s.setStyle(e.itemStyle);var u="inherit"===e.iconRotate?i:e.iconRotate||0;return s.rotation=u*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),t},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Ed);function S_(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var i=vf(e,t,n[0]);return null!=i?i+"":null}if(r){for(var o=[],a=0;a<n.length;a++)o.push(vf(e,t,n[a]));return o.join(" ")}}function O_(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!Object(x.isArray)(t))return t+"";for(var r=[],i=0;i<n.length;i++){var o=e.getDimensionIndex(n[i]);o>=0&&r.push(t[o])}return r.join(" ")}function k_(e,t){this.parent.drift(e,t)}var E_=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.updateData(t,n,r,i),o}return y(t,e),t.prototype._createSymbol=function(e,t,n,r,i){this.removeAll();var o=Vv(e,-1,-1,2,2,null,i);o.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=k_,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){hs(this.childAt(0))},t.prototype.downplay=function(){vs(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?"move":n.cursor},t.prototype.updateData=function(e,n,r,i){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",a=e.hostModel,s=t.getSymbolSize(e,n),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var l=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,s,l)}else{(d=this.childAt(0)).silent=!1;var f={scaleX:s[0]/2,scaleY:s[1]/2};c?d.attr(f):Us(d,f,a,n),Gs(d)}if(this._updateCommon(e,n,s,r,i),u){var d=this.childAt(0);if(!c){f={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,zs(d,f,a,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,t,n,r,i){var o,a,s,u,c,l,f,d,p,h=this.childAt(0),v=e.hostModel;if(r&&(o=r.emphasisItemStyle,a=r.blurItemStyle,s=r.selectItemStyle,u=r.focus,c=r.blurScope,f=r.labelStatesModels,d=r.hoverScale,p=r.cursorStyle,l=r.emphasisDisabled),!r||e.hasItemOption){var g=r&&r.itemModel?r.itemModel:e.getItemModel(t),m=g.getModel("emphasis");o=m.getModel("itemStyle").getItemStyle(),s=g.getModel(["select","itemStyle"]).getItemStyle(),a=g.getModel(["blur","itemStyle"]).getItemStyle(),u=m.get("focus"),c=m.get("blurScope"),l=m.get("disabled"),f=Qs(g),d=m.getShallow("scale"),p=g.getShallow("cursor")}var y=e.getItemVisual(t,"symbolRotate");h.attr("rotation",(y||0)*Math.PI/180||0);var b=Wv(e.getItemVisual(t,"symbolOffset"),n);b&&(h.x=b[0],h.y=b[1]),p&&h.attr("cursor",p);var w=e.getItemVisual(t,"style"),_=w.fill;if(h instanceof ua){var S=h.style;h.useStyle(Object(x.extend)({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},w))}else h.__isEmptyBrush?h.useStyle(Object(x.extend)({},w)):h.useStyle(w),h.style.decal=null,h.setColor(_,i&&i.symbolInnerColor),h.style.strokeNoScale=!0;var O=e.getItemVisual(t,"liftZ"),k=this._z2;null!=O?null==k&&(this._z2=h.z2,h.z2+=O):null!=k&&(h.z2=k,this._z2=null);var E=i&&i.useNameLabel;Xs(h,f,{labelFetcher:v,labelDataIndex:t,defaultText:function(t){return E?e.getName(t):S_(e,t)},inheritColor:_,defaultOpacity:w.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var j=h.ensureState("emphasis");j.style=o,h.ensureState("select").style=s,h.ensureState("blur").style=a;var T=null==d||!0===d?Math.max(1.1,3/this._sizeY):isFinite(d)&&d>0?+d:1;j.scaleX=this._sizeX*T,j.scaleY=this._sizeY*T,this.setSymbolScale(1),Ts(this,u,c,l)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=Ia(this).dataIndex,o=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var a=r.getTextContent();a&&Hs(a,{style:{opacity:0}},t,{dataIndex:i,removeOpt:o,cb:function(){r.removeTextContent()}})}else r.removeTextContent();Hs(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:o})},t.getSymbolSize=function(e,t){return Hv(e.getItemVisual(t,"symbolSize"))},t}(ur);function j_(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function T_(e){return null==e||Object(x.isObject)(e)||(e={isIgnore:e}),e||{}}function C_(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Qs(t),cursorStyle:t.get("cursor")}}var A_=function(){function e(e){this.group=new ur,this._SymbolCtor=e||E_}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=T_(t);var n=this.group,r=e.hostModel,i=this._data,o=this._SymbolCtor,a=t.disableAnimation,s=C_(e),u={disableAnimation:a},c=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add((function(r){var i=c(r);if(j_(e,i,r,t)){var a=new o(e,r,s,u);a.setPosition(i),e.setItemGraphicEl(r,a),n.add(a)}})).update((function(l,f){var d=i.getItemGraphicEl(f),p=c(l);if(j_(e,p,l,t)){var h=e.getItemVisual(l,"symbol")||"circle",v=d&&d.getSymbolType&&d.getSymbolType();if(!d||v&&v!==h)n.remove(d),(d=new o(e,l,s,u)).setPosition(p);else{d.updateData(e,l,s,u);var g={x:p[0],y:p[1]};a?d.attr(g):Us(d,g,r)}n.add(d),e.setItemGraphicEl(l,d)}else n.remove(d)})).remove((function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut((function(){n.remove(t)}),r)})).execute(),this._getSymbolPoint=c,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl((function(t,n){var r=e._getSymbolPoint(n);t.setPosition(r),t.markRedraw()}))},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=C_(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){function r(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=T_(n);for(var i=e.start;i<e.end;i++){var o=t.getItemLayout(i);if(j_(t,o,i,n)){var a=new this._SymbolCtor(t,i,this._seriesScope);a.traverse(r),a.setPosition(o),this.group.add(a),t.setItemGraphicEl(i,a),this._progressiveEls.push(a)}}},e.prototype.eachRendered=function(e){Eh(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl((function(e){e.fadeOut((function(){t.remove(e)}),n.hostModel)})):t.removeAll()},e}();function P_(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),o=function(e,t){var n=0,r=e.scale.getExtent();"start"===t?n=r[0]:"end"===t?n=r[1]:Object(x.isNumber)(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]);return n}(i,n),a=r.dim,s=i.dim,u=t.mapDimension(s),c=t.mapDimension(a),l="x"===s||"radius"===s?1:0,f=Object(x.map)(e.dimensions,(function(e){return t.mapDimension(e)})),d=!1,p=t.getCalculationInfo("stackResultDimension");return Ty(t,f[0])&&(d=!0,f[0]=p),Ty(t,f[1])&&(d=!0,f[1]=p),{dataDimsForPoint:f,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!d,valueDim:u,baseDim:c,baseDataOffset:l,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function M_(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=e.valueStart);var o=e.baseDataOffset,a=[];return a[o]=n.get(e.baseDim,r),a[1-o]=i,t.dataToPoint(a)}var I_=Math.min,R_=Math.max;function D_(e,t){return isNaN(e)||isNaN(t)}function L_(e,t,n,r,i,o,a,s,u){for(var c,l,f,d,p,h,v=n,g=0;g<r;g++){var m=t[2*v],y=t[2*v+1];if(v>=i||v<0)break;if(D_(m,y)){if(u){v+=o;continue}break}if(v===n)e[o>0?"moveTo":"lineTo"](m,y),f=m,d=y;else{var b=m-c,x=y-l;if(b*b+x*x<.5){v+=o;continue}if(a>0){for(var w=v+o,_=t[2*w],S=t[2*w+1];_===m&&S===y&&g<r;)g++,v+=o,_=t[2*(w+=o)],S=t[2*w+1],b=(m=t[2*v])-c,x=(y=t[2*v+1])-l;var O=g+1;if(u)for(;D_(_,S)&&O<r;)O++,_=t[2*(w+=o)],S=t[2*w+1];var k=.5,E=0,j=0,T=void 0,C=void 0;if(O>=r||D_(_,S))p=m,h=y;else{E=_-c,j=S-l;var A=m-c,P=_-m,M=y-l,I=S-y,R=void 0,D=void 0;if("x"===s){var L=E>0?1:-1;p=m-L*(R=Math.abs(A))*a,h=y,T=m+L*(D=Math.abs(P))*a,C=y}else if("y"===s){var N=j>0?1:-1;p=m,h=y-N*(R=Math.abs(M))*a,T=m,C=y+N*(D=Math.abs(I))*a}else R=Math.sqrt(A*A+M*M),p=m-E*a*(1-(k=(D=Math.sqrt(P*P+I*I))/(D+R))),h=y-j*a*(1-k),C=y+j*a*k,T=I_(T=m+E*a*k,R_(_,m)),C=I_(C,R_(S,y)),T=R_(T,I_(_,m)),h=y-(j=(C=R_(C,I_(S,y)))-y)*R/D,p=I_(p=m-(E=T-m)*R/D,R_(c,m)),h=I_(h,R_(l,y)),T=m+(E=m-(p=R_(p,I_(c,m))))*D/R,C=y+(j=y-(h=R_(h,I_(l,y))))*D/R}e.bezierCurveTo(f,d,p,h,m,y),f=T,d=C}else e.lineTo(m,y)}c=m,l=y,v+=o}return g}var N_=function(){this.smooth=0,this.smoothConstraint=!0},F_=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polyline",n}return y(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new N_},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0&&D_(n[2*i-2],n[2*i-1]);i--);for(;r<i&&D_(n[2*r],n[2*r+1]);r++);}for(;r<i;)r+=L_(e,n,r,i,i,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,r,i=this.path.data,o=Ro.CMD,a="x"===t,s=[],u=0;u<i.length;){var c=void 0,l=void 0,f=void 0,d=void 0,p=void 0,h=void 0,v=void 0;switch(i[u++]){case o.M:n=i[u++],r=i[u++];break;case o.L:if(c=i[u++],l=i[u++],(v=a?(e-n)/(c-n):(e-r)/(l-r))<=1&&v>=0){var g=a?(l-r)*v+r:(c-n)*v+n;return a?[e,g]:[g,e]}n=c,r=l;break;case o.C:c=i[u++],l=i[u++],f=i[u++],d=i[u++],p=i[u++],h=i[u++];var m=a?Et(n,c,f,p,e,s):Et(r,l,d,h,e,s);if(m>0)for(var y=0;y<m;y++){var b=s[y];if(b<=1&&b>=0){g=a?Ot(r,l,d,h,b):Ot(n,c,f,p,b);return a?[e,g]:[g,e]}}n=p,r=h}}},t}(ta),B_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t}(N_),U_=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polygon",n}return y(t,e),t.prototype.getDefaultShape=function(){return new B_},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,o=n.length/2,a=t.smoothMonotone;if(t.connectNulls){for(;o>0&&D_(n[2*o-2],n[2*o-1]);o--);for(;i<o&&D_(n[2*i],n[2*i+1]);i++);}for(;i<o;){var s=L_(e,n,i,o,o,1,t.smooth,a,t.connectNulls);L_(e,r,i+s-1,s,o,-1,t.stackedOnSmooth,a,t.connectNulls),i+=s+1,e.closePath()}},t}(ta);function z_(e,t,n,r,i){var o=e.getArea(),a=o.x,s=o.y,u=o.width,c=o.height,l=n.get(["lineStyle","width"])||2;a-=l/2,s-=l/2,u+=l,c+=l,a=Math.floor(a),u=Math.round(u);var f=new ga({shape:{x:a,y:s,width:u,height:c}});if(t){var d=e.getBaseAxis(),p=d.isHorizontal(),h=d.inverse;p?(h&&(f.shape.x+=u),f.shape.width=0):(h||(f.shape.y+=c),f.shape.height=0);var v=Object(x.isFunction)(i)?function(e){i(e,f)}:null;zs(f,{shape:{width:u,height:c,x:a,y:s}},n,null,r,v)}return f}function V_(e,t,n){var r=e.getArea(),i=_r(r.r0,1),o=_r(r.r,1),a=new mp({shape:{cx:_r(e.cx,1),cy:_r(e.cy,1),r0:i,r:o,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});t&&("angle"===e.getBaseAxis().dim?a.shape.endAngle=r.startAngle:a.shape.r=i,zs(a,{shape:{endAngle:r.endAngle,r:o}},n));return a}function H_(e,t,n,r,i){return e?"polar"===e.type?V_(e,t,n):"cartesian2d"===e.type?z_(e,t,n,r,i):null:null}function W_(e,t){return e.type===t}function q_(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function G_(e){for(var t=1/0,n=1/0,r=-1/0,i=-1/0,o=0;o<e.length;){var a=e[o++],s=e[o++];isNaN(a)||(t=Math.min(a,t),r=Math.max(a,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[t,n],[r,i]]}function Y_(e,t){var n=G_(e),r=n[0],i=n[1],o=G_(t),a=o[0],s=o[1];return Math.max(Math.abs(r[0]-a[0]),Math.abs(r[1]-a[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function K_(e){return x.isNumber(e)?e:e?.5:0}function $_(e,t,n,r){var i=t.getBaseAxis(),o="x"===i.dim||"radius"===i.dim?0:1,a=[],s=0,u=[],c=[],l=[],f=[];if(r){for(s=0;s<e.length;s+=2)isNaN(e[s])||isNaN(e[s+1])||f.push(e[s],e[s+1]);e=f}for(s=0;s<e.length-2;s+=2)switch(l[0]=e[s+2],l[1]=e[s+3],c[0]=e[s],c[1]=e[s+1],a.push(c[0],c[1]),n){case"end":u[o]=l[o],u[1-o]=c[1-o],a.push(u[0],u[1]);break;case"middle":var d=(c[o]+l[o])/2,p=[];u[o]=p[o]=d,u[1-o]=c[1-o],p[1-o]=l[1-o],a.push(u[0],u[1]),a.push(p[0],p[1]);break;default:u[o]=c[o],u[1-o]=l[1-o],a.push(u[0],u[1])}return a.push(e[s++],e[s++]),a}function X_(e,t,n){var r=e.getVisual("visualMeta");if(r&&r.length&&e.count()&&"cartesian2d"===t.type){for(var i,o,a=r.length-1;a>=0;a--){var s=e.getDimensionInfo(r[a].dimension);if("x"===(i=s&&s.coordDim)||"y"===i){o=r[a];break}}if(o){var u=t.getAxis(i),c=x.map(o.stops,(function(e){return{coord:u.toGlobalCoord(u.dataToCoord(e.value)),color:e.color}})),l=c.length,f=o.outerColors.slice();l&&c[0].coord>c[l-1].coord&&(c.reverse(),f.reverse());var d=function(e,t){var n,r,i=[],o=e.length;function a(e,t,n){var r=e.coord,i=(n-r)/(t.coord-r);return{coord:n,color:Object(Ut.lerp)(i,[e.color,t.color])}}for(var s=0;s<o;s++){var u=e[s],c=u.coord;if(c<0)n=u;else{if(c>t){r?i.push(a(r,u,t)):n&&i.push(a(n,u,0),a(n,u,t));break}n&&(i.push(a(n,u,0)),n=null),i.push(u),r=u}}return i}(c,"x"===i?n.getWidth():n.getHeight()),p=d.length;if(!p&&l)return c[0].coord<0?f[1]?f[1]:c[l-1].color:f[0]?f[0]:c[0].color;var h=d[0].coord-10,v=d[p-1].coord+10,g=v-h;if(g<.001)return"transparent";x.each(d,(function(e){e.offset=(e.coord-h)/g})),d.push({offset:p?d[p-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:f[0]||"transparent"});var m=new Vp(0,0,0,0,d,!0);return m[i]=h,m[i+"2"]=v,m}}}function Q_(e,t,n){var r=e.get("showAllSymbol"),i="auto"===r;if(!r||i){var o=n.getAxesByScale("ordinal")[0];if(o&&(!i||!function(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),o=Math.max(1,Math.round(i/5)),a=0;a<i;a+=o)if(1.5*E_.getSymbolSize(t,a)[e.isHorizontal()?1:0]>r)return!1;return!0}(o,t))){var a=t.mapDimension(o.dim),s={};return x.each(o.getViewLabels(),(function(e){var t=o.scale.getRawOrdinalNumber(e.tickValue);s[t]=1})),function(e){return!s.hasOwnProperty(t.get(a,e))}}}}function Z_(e,t){return[e[2*t],e[2*t+1]]}function J_(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<Va.length;t++)if(e.get([Va[t],"endLabel","show"]))return!0;return!1}function eS(e,t,n,r){if(W_(t,"cartesian2d")){var i=r.getModel("endLabel"),o=i.get("valueAnimation"),a=r.getData(),s={lastFrameIndex:0},u=J_(r)?function(n,r){e._endLabelOnDuring(n,r,a,s,o,i,t)}:null,c=t.getBaseAxis().isHorizontal(),l=z_(t,n,r,(function(){var t=e._endLabel;t&&n&&null!=s.originalX&&t.attr({x:s.originalX,y:s.originalY})}),u);if(!r.get("clip",!0)){var f=l.shape,d=Math.max(f.width,f.height);c?(f.y-=d,f.height+=2*d):(f.x-=d,f.width+=2*d)}return u&&u(1,l),l}return V_(t,n,r)}var tS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t.prototype.init=function(){var e=new ur,t=new A_;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e},t.prototype.render=function(e,t,n){var r=this,i=e.coordinateSystem,o=this.group,a=e.getData(),s=e.getModel("lineStyle"),u=e.getModel("areaStyle"),c=a.getLayout("points")||[],l="polar"===i.type,f=this._coordSys,d=this._symbolDraw,p=this._polyline,h=this._polygon,v=this._lineGroup,g=e.get("animation"),m=!u.isEmpty(),y=u.get("origin"),b=P_(i,a,y),w=m&&function(e,t,n){if(!n.valueDim)return[];for(var r=t.count(),i=Qy(2*r),o=0;o<r;o++){var a=M_(n,e,t,o);i[2*o]=a[0],i[2*o+1]=a[1]}return i}(i,a,b),_=e.get("showSymbol"),S=e.get("connectNulls"),O=_&&!l&&Q_(e,a,i),k=this._data;k&&k.eachItemGraphicEl((function(e,t){e.__temp&&(o.remove(e),k.setItemGraphicEl(t,null))})),_||d.remove(),o.add(v);var E,j=!l&&e.get("step");i&&i.getArea&&e.get("clip",!0)&&(null!=(E=i.getArea()).width?(E.x-=.1,E.y-=.1,E.width+=.2,E.height+=.2):E.r0&&(E.r0-=.5,E.r+=.5)),this._clipShapeForSymbol=E;var T=X_(a,i,n)||a.getVisual("style")[a.getVisual("drawType")];if(p&&f.type===i.type&&j===this._step){m&&!h?h=this._newPolygon(c,w):h&&!m&&(v.remove(h),h=this._polygon=null),l||this._initOrUpdateEndLabel(e,i,yc(T));var C=v.getClipPath();if(C)zs(C,{shape:eS(this,i,!1,e).shape},e);else v.setClipPath(eS(this,i,!0,e));_&&d.updateData(a,{isIgnore:O,clipShape:E,disableAnimation:!0,getSymbolPoint:function(e){return[c[2*e],c[2*e+1]]}}),q_(this._stackedOnPoints,w)&&q_(this._points,c)||(g?this._doUpdateAnimation(a,w,i,n,j,y,S):(j&&(c=$_(c,i,j,S),w&&(w=$_(w,i,j,S))),p.setShape({points:c}),h&&h.setShape({points:c,stackedOnPoints:w})))}else _&&d.updateData(a,{isIgnore:O,clipShape:E,disableAnimation:!0,getSymbolPoint:function(e){return[c[2*e],c[2*e+1]]}}),g&&this._initSymbolLabelAnimation(a,i,E),j&&(c=$_(c,i,j,S),w&&(w=$_(w,i,j,S))),p=this._newPolyline(c),m?h=this._newPolygon(c,w):h&&(v.remove(h),h=this._polygon=null),l||this._initOrUpdateEndLabel(e,i,yc(T)),v.setClipPath(eS(this,i,!0,e));var A=e.getModel("emphasis"),P=A.get("focus"),M=A.get("blurScope"),I=A.get("disabled");(p.useStyle(x.defaults(s.getLineStyle(),{fill:"none",stroke:T,lineJoin:"bevel"})),Ms(p,e,"lineStyle"),p.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"]))&&(p.getState("emphasis").style.lineWidth=+p.style.lineWidth+1);Ia(p).seriesIndex=e.seriesIndex,Ts(p,P,M,I);var R=K_(e.get("smooth")),D=e.get("smoothMonotone");if(p.setShape({smooth:R,smoothMonotone:D,connectNulls:S}),h){var L=a.getCalculationInfo("stackedOnSeries"),N=0;h.useStyle(x.defaults(u.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),L&&(N=K_(L.get("smooth"))),h.setShape({smooth:R,stackedOnSmooth:N,smoothMonotone:D,connectNulls:S}),Ms(h,e,"areaStyle"),Ia(h).seriesIndex=e.seriesIndex,Ts(h,P,M,I)}var F=function(e){r._changePolyState(e)};a.eachItemGraphicEl((function(e){e&&(e.onHoverStateChange=F)})),this._polyline.onHoverStateChange=F,this._data=a,this._coordSys=i,this._stackedOnPoints=w,this._points=c,this._step=j,this._valueOrigin=y,e.get("triggerLineEvent")&&(this.packEventData(e,p),h&&this.packEventData(e,h))},t.prototype.packEventData=function(e,t){Ia(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),o=ii(i,r);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=i.getLayout("points"),s=i.getItemGraphicEl(o);if(!s){var u=a[2*o],c=a[2*o+1];if(isNaN(u)||isNaN(c))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(u,c))return;var l=e.get("zlevel")||0,f=e.get("z")||0;(s=new E_(i,o)).x=u,s.y=c,s.setZ(l,f);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=l,d.z=f,d.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else Dh.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),o=ii(i,r);if(this._changePolyState("normal"),null!=o&&o>=0){var a=i.getItemGraphicEl(o);a&&(a.__temp?(i.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else Dh.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;cs(this._polyline,e),t&&cs(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new F_({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new U_({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,o=t.getBaseAxis(),a=o.inverse;"cartesian2d"===t.type?(r=o.isHorizontal(),i=!1):"polar"===t.type&&(r="angle"===o.dim,i=!0);var s=e.hostModel,u=s.get("animationDuration");x.isFunction(u)&&(u=u(null));var c=s.get("animationDelay")||0,l=x.isFunction(c)?c(null):c;e.eachItemGraphicEl((function(e,o){var s=e;if(s){var f=[e.x,e.y],d=void 0,p=void 0,h=void 0;if(n)if(i){var v=n,g=t.pointToCoord(f);r?(d=v.startAngle,p=v.endAngle,h=-g[1]/180*Math.PI):(d=v.r0,p=v.r,h=g[0])}else{var m=n;r?(d=m.x,p=m.x+m.width,h=e.x):(d=m.y+m.height,p=m.y,h=e.y)}var y=p===d?0:(h-d)/(p-d);a&&(y=1-y);var b=x.isFunction(c)?c(o):u*y+l,w=s.getSymbolPath(),_=w.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:b}),_&&_.animateFrom({style:{opacity:0}},{duration:300,delay:b}),w.disableLabelAnimation=!0}}))},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel("endLabel");if(J_(e)){var i=e.getData(),o=this._polyline,a=i.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new Ma({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var u=function(e){for(var t,n,r=e.length/2;r>0&&(t=e[2*r-2],n=e[2*r-1],isNaN(t)||isNaN(n));r--);return r-1}(a);u>=0&&(Xs(o,Qs(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:u,defaultText:function(e,t,n){return null!=n?O_(i,n):S_(i,e)},enableTextSetter:!0},function(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,o=r?i?"right":"left":"center",a=r?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||o,verticalAlign:e.get("verticalAlign")||a}}}(r,t)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,o,a){var s=this._endLabel,u=this._polyline;if(s){e<1&&null==r.originalX&&(r.originalX=s.x,r.originalY=s.y);var c=n.getLayout("points"),l=n.hostModel,f=l.get("connectNulls"),d=o.get("precision"),p=o.get("distance")||0,h=a.getBaseAxis(),v=h.isHorizontal(),g=h.inverse,m=t.shape,y=g?v?m.x:m.y+m.height:v?m.x+m.width:m.y,b=(v?p:0)*(g?-1:1),x=(v?0:-p)*(g?-1:1),w=v?"x":"y",_=function(e,t,n){for(var r,i,o=e.length/2,a="x"===n?0:1,s=0,u=-1,c=0;c<o;c++)if(i=e[2*c+a],!isNaN(i)&&!isNaN(e[2*c+1-a]))if(0!==c){if(r<=t&&i>=t||r>=t&&i<=t){u=c;break}s=c,r=i}else r=i;return{range:[s,u],t:(t-r)/(i-r)}}(c,y,w),S=_.range,O=S[1]-S[0],k=void 0;if(O>=1){if(O>1&&!f){var E=Z_(c,S[0]);s.attr({x:E[0]+b,y:E[1]+x}),i&&(k=l.getRawValue(S[0]))}else{(E=u.getPointOn(y,w))&&s.attr({x:E[0]+b,y:E[1]+x});var j=l.getRawValue(S[0]),T=l.getRawValue(S[1]);i&&(k=hi(n,d,j,T,_.t))}r.lastFrameIndex=S[0]}else{var C=1===e||r.lastFrameIndex>0?S[0]:0;E=Z_(c,C);i&&(k=l.getRawValue(C)),s.attr({x:E[0]+b,y:E[1]+x})}i&&ou(s).setLabelText(k)}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,o,a){var s=this._polyline,u=this._polygon,c=e.hostModel,l=function(e,t,n,r,i,o,a,s){for(var u=function(e,t){var n=[];return t.diff(e).add((function(e){n.push({cmd:"+",idx:e})})).update((function(e,t){n.push({cmd:"=",idx:t,idx1:e})})).remove((function(e){n.push({cmd:"-",idx:e})})).execute(),n}(e,t),c=[],l=[],f=[],d=[],p=[],h=[],v=[],g=P_(i,t,a),m=e.getLayout("points")||[],y=t.getLayout("points")||[],b=0;b<u.length;b++){var x=u[b],w=!0,_=void 0,S=void 0;switch(x.cmd){case"=":_=2*x.idx,S=2*x.idx1;var O=m[_],k=m[_+1],E=y[S],j=y[S+1];(isNaN(O)||isNaN(k))&&(O=E,k=j),c.push(O,k),l.push(E,j),f.push(n[_],n[_+1]),d.push(r[S],r[S+1]),v.push(t.getRawIndex(x.idx1));break;case"+":var T=x.idx,C=g.dataDimsForPoint,A=i.dataToPoint([t.get(C[0],T),t.get(C[1],T)]);S=2*T,c.push(A[0],A[1]),l.push(y[S],y[S+1]);var P=M_(g,i,t,T);f.push(P[0],P[1]),d.push(r[S],r[S+1]),v.push(t.getRawIndex(T));break;case"-":w=!1}w&&(p.push(x),h.push(h.length))}h.sort((function(e,t){return v[e]-v[t]}));var M=c.length,I=Qy(M),R=Qy(M),D=Qy(M),L=Qy(M),N=[];for(b=0;b<h.length;b++){var F=h[b],B=2*b,U=2*F;I[B]=c[U],I[B+1]=c[U+1],R[B]=l[U],R[B+1]=l[U+1],D[B]=f[U],D[B+1]=f[U+1],L[B]=d[U],L[B+1]=d[U+1],N[b]=p[F]}return{current:I,next:R,stackedOnCurrent:D,stackedOnNext:L,status:N}}(this._data,e,this._stackedOnPoints,t,this._coordSys,0,this._valueOrigin),f=l.current,d=l.stackedOnCurrent,p=l.next,h=l.stackedOnNext;if(i&&(f=$_(l.current,n,i,a),d=$_(l.stackedOnCurrent,n,i,a),p=$_(l.next,n,i,a),h=$_(l.stackedOnNext,n,i,a)),Y_(f,p)>3e3||u&&Y_(d,h)>3e3)return s.stopAnimation(),s.setShape({points:p}),void(u&&(u.stopAnimation(),u.setShape({points:p,stackedOnPoints:h})));s.shape.__points=l.current,s.shape.points=f;var v={shape:{points:p}};l.current!==f&&(v.shape.__points=l.next),s.stopAnimation(),Us(s,v,c),u&&(u.setShape({points:f,stackedOnPoints:d}),u.stopAnimation(),Us(u,{shape:{stackedOnPoints:h}},c),s.shape.points!==u.shape.points&&(u.shape.points=s.shape.points));for(var g=[],m=l.status,y=0;y<m.length;y++){if("="===m[y].cmd){var b=e.getItemGraphicEl(m[y].idx1);b&&g.push({el:b,ptIdx:y})}}s.animators&&s.animators.length&&s.animators[0].during((function(){u&&u.dirtyShape();for(var e=s.shape.__points,t=0;t<g.length;t++){var n=g[t].el,r=2*g[t].ptIdx;n.x=e[r],n.y=e[r+1],n.markRedraw()}}))},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl((function(e,r){e.__temp&&(t.remove(e),n.setItemGraphicEl(r,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(Dh);function nS(e,t){return{seriesType:e,plan:Cd(),reset:function(e){var n=e.getData(),r=e.coordinateSystem,i=e.pipelineContext,o=t||i.large;if(r){var a=Object(x.map)(r.dimensions,(function(e){return n.mapDimension(e)})).slice(0,2),s=a.length,u=n.getCalculationInfo("stackResultDimension");Ty(n,a[0])&&(a[0]=u),Ty(n,a[1])&&(a[1]=u);var c=n.getStore(),l=n.getDimensionIndex(a[0]),f=n.getDimensionIndex(a[1]);return s&&{progress:function(e,t){for(var n=e.end-e.start,i=o&&Qy(n*s),a=[],u=[],d=e.start,p=0;d<e.end;d++){var h=void 0;if(1===s){var v=c.get(l,d);h=r.dataToPoint(v,null,u)}else a[0]=c.get(l,d),a[1]=c.get(f,d),h=r.dataToPoint(a,null,u);o?(i[p++]=h[0],i[p++]=h[1]):t.setItemLayout(d,h.slice())}o&&t.setLayout("points",i)}}}}}}var rS={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return 0===n?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},iS=function(e){return Math.round(e.length/2)};function oS(e){return{seriesType:e,reset:function(e,t,n){var r=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,a=r.count();if(a>10&&"cartesian2d"===o.type&&i){var s=o.getBaseAxis(),u=o.getOtherAxis(s),c=s.getExtent(),l=n.getDevicePixelRatio(),f=Math.abs(c[1]-c[0])*(l||1),d=Math.round(a/f);if(isFinite(d)&&d>1){"lttb"===i&&e.setData(r.lttbDownSample(r.mapDimension(u.dim),1/d));var p=void 0;Object(x.isString)(i)?p=rS[i]:Object(x.isFunction)(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(u.dim),1/d,p,iS))}}}}}var aS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.getInitialData=function(e,t){return Ay(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e){var t=this.coordinateSystem;if(t&&t.clampData){var n=t.dataToPoint(t.clampData(e)),r=this.getData(),i=r.getLayout("offset"),o=r.getLayout("size");return n[t.getBaseAxis().isHorizontal()?0:1]+=i+o/2,n}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(Ed);Ed.registerClass(aS);var sS=aS,uS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.getInitialData=function(){return Ay(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=ku(sS.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(sS),cS=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},lS=function(e){function t(t){var n=e.call(this,t)||this;return n.type="sausage",n}return y(t,e),t.prototype.getDefaultShape=function(){return new cS},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),o=Math.max(t.r,0),a=.5*(o-i),s=i+a,u=t.startAngle,c=t.endAngle,l=t.clockwise,f=2*Math.PI,d=l?c-u<f:u-c<f;d||(u=c-(l?f:-f));var p=Math.cos(u),h=Math.sin(u),v=Math.cos(c),g=Math.sin(c);d?(e.moveTo(p*i+n,h*i+r),e.arc(p*s+n,h*s+r,a,-Math.PI+u,u,!l)):e.moveTo(p*o+n,h*o+r),e.arc(n,r,o,u,c,!l),e.arc(v*s+n,g*s+r,a,c-2*Math.PI,c-Math.PI,!l),0!==i&&e.arc(n,r,i,c,u,l)},t}(ta);function fS(e,t,n){return t*Math.sin(e)*(n?-1:1)}function dS(e,t,n){return t*Math.cos(e)*(n?1:-1)}var pS=Math.max,hS=Math.min;var vS=function(e){function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return y(t,e),t.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var i=e.get("coordinateSystem");("cartesian2d"===i||"polar"===i)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,r))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){Eh(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,r){var i,o=this.group,a=e.getData(),s=this._data,u=e.coordinateSystem,c=u.getBaseAxis();"cartesian2d"===u.type?i=c.isHorizontal():"polar"===u.type&&(i="angle"===c.dim);var l=e.isAnimationEnabled()?e:null,f=function(e,t){var n=e.get("realtimeSort",!0),r=t.getBaseAxis();0;if(n&&"category"===r.type&&"cartesian2d"===t.type)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}(e,u);f&&this._enableRealtimeSort(f,a,n);var d=e.get("clip",!0)||f,p=function(e,t){var n=e.getArea&&e.getArea();if(W_(e,"cartesian2d")){var r=e.getBaseAxis();if("category"!==r.type||!r.onBand){var i=t.getLayout("bandWidth");r.isHorizontal()?(n.x-=i,n.width+=2*i):(n.y-=i,n.height+=2*i)}}return n}(u,a);o.removeClipPath();var h=e.get("roundCap",!0),v=e.get("showBackground",!0),g=e.getModel("backgroundStyle"),m=g.get("borderRadius")||0,y=[],b=this._backgroundEls,x=r&&r.isInitSort,w=r&&"changeAxisOrder"===r.type;function _(e){var t=SS[u.type](a,e),n=function(e,t,n){return new("polar"===e.type?mp:ga)({shape:AS(t,n,e),silent:!0,z2:0})}(u,i,t);return n.useStyle(g.getItemStyle()),"cartesian2d"===u.type&&n.setShape("r",m),y[e]=n,n}a.diff(s).add((function(t){var n=a.getItemModel(t),r=SS[u.type](a,t,n);if(v&&_(t),a.hasValue(t)&&_S[u.type](r)){var s=!1;d&&(s=gS[u.type](p,r));var g=mS[u.type](e,a,t,r,i,l,c.model,!1,h);f&&(g.forceLabelAnimation=!0),kS(g,a,t,n,r,e,i,"polar"===u.type),x?g.attr({shape:r}):f?yS(f,l,g,r,t,i,!1,!1):zs(g,{shape:r},e,t),a.setItemGraphicEl(t,g),o.add(g),g.ignore=s}})).update((function(t,n){var r=a.getItemModel(t),S=SS[u.type](a,t,r);if(v){var O=void 0;0===b.length?O=_(n):((O=b[n]).useStyle(g.getItemStyle()),"cartesian2d"===u.type&&O.setShape("r",m),y[t]=O);var k=SS[u.type](a,t);Us(O,{shape:AS(i,k,u)},l,t)}var E=s.getItemGraphicEl(n);if(a.hasValue(t)&&_S[u.type](S)){var j=!1;if(d&&(j=gS[u.type](p,S))&&o.remove(E),E?Gs(E):E=mS[u.type](e,a,t,S,i,l,c.model,!!E,h),f&&(E.forceLabelAnimation=!0),w){var T=E.getTextContent();if(T){var C=ou(T);null!=C.prevValue&&(C.prevValue=C.value)}}else kS(E,a,t,r,S,e,i,"polar"===u.type);x?E.attr({shape:S}):f?yS(f,l,E,S,t,i,!0,w):Us(E,{shape:S},e,t,null),a.setItemGraphicEl(t,E),E.ignore=j,o.add(E)}else o.remove(E)})).remove((function(t){var n=s.getItemGraphicEl(t);n&&qs(n,e,t)})).execute();var S=this._backgroundGroup||(this._backgroundGroup=new ur);S.removeAll();for(var O=0;O<y.length;++O)S.add(y[O]);o.add(S),this._backgroundEls=y,this._data=a},t.prototype._renderLarge=function(e,t,n){this._clear(),TS(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),TS(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get("clip",!0)&&H_(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var r=this;if(t.count()){var i=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var o=function(e){var n=t.getItemGraphicEl(e),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(t,o,i,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var r=[];return e.each(e.mapDimension(t.dim),(function(e,t){var i=n(t);i=null==i?NaN:i,r.push({dataIndex:t,mappedValue:i,ordinalNumber:e})})),r.sort((function(e,t){return t.mappedValue-e.mappedValue})),{ordinalNumbers:Object(x.map)(r,(function(e){return e.ordinalNumber}))}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var r=n.scale,i=e.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=r.getOrdinalMeta().categories.length;a<s;++a){var u=e.rawIndexOf(i,r.getRawOrdinalNumber(a)),c=u<0?Number.MIN_VALUE:t(e.indexOfRawIndex(u));if(c>o)return!0;o=c}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),o=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=o;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,(function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(t){qs(t,e,Ia(t).dataIndex)}))):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Dh),gS={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,o=e.y+e.height,a=pS(t.x,e.x),s=hS(t.x+t.width,i),u=pS(t.y,e.y),c=hS(t.y+t.height,o),l=s<a,f=c<u;return t.x=l&&a>i?s:a,t.y=f&&u>o?c:u,t.width=l?0:s-a,t.height=f?0:c-u,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),l||f},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=hS(t.r,e.r),o=pS(t.r0,e.r0);t.r=i,t.r0=o;var a=i-o<0;if(n<0){r=t.r;t.r=t.r0,t.r0=r}return a}},mS={cartesian2d:function(e,t,n,r,i,o,a,s,u){var c=new ga({shape:Object(x.extend)({},r),z2:1});(c.__dataIndex=n,c.name="item",o)&&(c.shape[i?"height":"width"]=0);return c},polar:function(e,t,n,r,i,o,a,s,u){var c=!i&&u?lS:mp,l=new c({shape:r,z2:1});l.name="item";var f,d,p=OS(i);if(l.calculateTextPosition=(f=p,d=({isRoundCap:c===lS}||{}).isRoundCap,function(e,t,n){var r=t.position;if(!r||r instanceof Array)return Qn(e,t,n);var i=f(r),o=null!=t.distance?t.distance:5,a=this.shape,s=a.cx,u=a.cy,c=a.r,l=a.r0,p=(c+l)/2,h=a.startAngle,v=a.endAngle,g=(h+v)/2,m=d?Math.abs(c-l)/2:0,y=Math.cos,b=Math.sin,x=s+c*y(h),w=u+c*b(h),_="left",S="top";switch(i){case"startArc":x=s+(l-o)*y(g),w=u+(l-o)*b(g),_="center",S="top";break;case"insideStartArc":x=s+(l+o)*y(g),w=u+(l+o)*b(g),_="center",S="bottom";break;case"startAngle":x=s+p*y(h)+fS(h,o+m,!1),w=u+p*b(h)+dS(h,o+m,!1),_="right",S="middle";break;case"insideStartAngle":x=s+p*y(h)+fS(h,-o+m,!1),w=u+p*b(h)+dS(h,-o+m,!1),_="left",S="middle";break;case"middle":x=s+p*y(g),w=u+p*b(g),_="center",S="middle";break;case"endArc":x=s+(c+o)*y(g),w=u+(c+o)*b(g),_="center",S="bottom";break;case"insideEndArc":x=s+(c-o)*y(g),w=u+(c-o)*b(g),_="center",S="top";break;case"endAngle":x=s+p*y(v)+fS(v,o+m,!0),w=u+p*b(v)+dS(v,o+m,!0),_="left",S="middle";break;case"insideEndAngle":x=s+p*y(v)+fS(v,-o+m,!0),w=u+p*b(v)+dS(v,-o+m,!0),_="right",S="middle";break;default:return Qn(e,t,n)}return(e=e||{}).x=x,e.y=w,e.align=_,e.verticalAlign=S,e}),o){var h=i?"r":"endAngle",v={};l.shape[h]=i?0:r.startAngle,v[h]=r[h],(s?Us:zs)(l,{shape:v},o)}return l}};function yS(e,t,n,r,i,o,a,s){var u,c;o?(c={x:r.x,width:r.width},u={y:r.y,height:r.height}):(c={y:r.y,height:r.height},u={x:r.x,width:r.width}),s||(a?Us:zs)(n,{shape:u},t,i,null),(a?Us:zs)(n,{shape:c},t?e.baseAxis.model:null,i)}function bS(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var xS=["x","y","width","height"],wS=["cx","cy","r","startAngle","endAngle"],_S={cartesian2d:function(e){return!bS(e,xS)},polar:function(e){return!bS(e,wS)}},SS={cartesian2d:function(e,t,n){var r=e.getItemLayout(t),i=n?function(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var r=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),o=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,o)}(n,r):0,o=r.width>0?1:-1,a=r.height>0?1:-1;return{x:r.x+o*i/2,y:r.y+a*i/2,width:r.width-o*i,height:r.height-a*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function OS(e){return function(e){var t=e?"Arc":"Angle";return function(e){switch(e){case"start":case"insideStart":case"end":case"insideEnd":return e+t;default:return e}}}(e)}function kS(e,t,n,r,i,o,a,s){var u=t.getItemVisual(n,"style");s||e.setShape("r",r.get(["itemStyle","borderRadius"])||0),e.useStyle(u);var c=r.getShallow("cursor");c&&e.attr("cursor",c);var l=s?a?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":a?i.height>=0?"bottom":"top":i.width>=0?"right":"left",f=Qs(r);Xs(e,f,{labelFetcher:o,labelDataIndex:n,defaultText:S_(o.getData(),n),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:l});var d=e.getTextContent();if(s&&d){var p=r.get(["label","position"]);e.textConfig.inside="middle"===p||null,function(e,t,n,r){if(Object(x.isNumber)(r))e.setTextConfig({rotation:r});else if(Object(x.isArray)(t))e.setTextConfig({rotation:0});else{var i,o=e.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,u=(a+s)/2,c=n(t);switch(c){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":i=u;break;case"startAngle":case"insideStartAngle":i=a;break;case"endAngle":case"insideEndAngle":i=s;break;default:return void e.setTextConfig({rotation:0})}var l=1.5*Math.PI-i;"middle"===c&&l>Math.PI/2&&l<1.5*Math.PI&&(l-=Math.PI),e.setTextConfig({rotation:l})}}(e,"outside"===p?l:p,OS(a),r.get(["label","rotate"]))}au(d,f,o.getRawValue(n),(function(e){return O_(t,e)}));var h=r.getModel(["emphasis"]);Ts(e,h.get("focus"),h.get("blurScope"),h.get("disabled")),Ms(e,r),function(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}(i)&&(e.style.fill="none",e.style.stroke="none",Object(x.each)(e.states,(function(e){e.style&&(e.style.fill=e.style.stroke="none")})))}var ES=function(){},jS=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeBar",n}return y(t,e),t.prototype.getDefaultShape=function(){return new ES},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,u=0;u<n.length;u+=3)a[r]=s,a[i]=n[u+2],o[r]=n[u+r],o[i]=n[u+i],e.rect(o[0],o[1],a[0],a[1])},t}(ta);function TS(e,t,n,r){var i=e.getData(),o=i.getLayout("valueAxisHorizontal")?1:0,a=i.getLayout("largeDataIndices"),s=i.getLayout("size"),u=e.getModel("backgroundStyle"),c=i.getLayout("largeBackgroundPoints");if(c){var l=new jS({shape:{points:c},incremental:!!r,silent:!0,z2:0});l.baseDimIdx=o,l.largeDataIndices=a,l.barWidth=s,l.useStyle(u.getItemStyle()),t.add(l),n&&n.push(l)}var f=new jS({shape:{points:i.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=o,f.largeDataIndices=a,f.barWidth=s,t.add(f),f.useStyle(i.getVisual("style")),Ia(f).seriesIndex=e.seriesIndex,e.get("silent")||(f.on("mousedown",CS),f.on("mousemove",CS)),n&&n.push(f)}var CS=Bh((function(e){var t=function(e,t,n){for(var r=e.baseDimIdx,i=1-r,o=e.shape.points,a=e.largeDataIndices,s=[],u=[],c=e.barWidth,l=0,f=o.length/3;l<f;l++){var d=3*l;if(u[r]=c,u[i]=o[d+2],s[r]=o[d+r],s[i]=o[d+i],u[i]<0&&(s[i]+=u[i],u[i]=-u[i]),t>=s[0]&&t<=s[0]+u[0]&&n>=s[1]&&n<=s[1]+u[1])return a[l]}return-1}(this,e.offsetX,e.offsetY);Ia(this).dataIndex=t>=0?t:null}),30,!1);function AS(e,t,n){if(W_(n,"cartesian2d")){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}var o=t;return{cx:(i=n.getArea()).cx,cy:i.cy,r0:e?i.r0:o.r0,r:e?i.r:o.r,startAngle:e?o.startAngle:0,endAngle:e?o.endAngle:2*Math.PI}}var PS=vS;var MS=2*Math.PI,IS=Math.PI/180;function RS(e,t){return kc(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function DS(e,t){var n=RS(e,t),r=e.get("center"),i=e.get("radius");x.isArray(i)||(i=[0,i]),x.isArray(r)||(r=[r,r]);var o,a,s=wr(n.width,t.getWidth()),u=wr(n.height,t.getHeight()),c=Math.min(s,u),l=wr(i[0],c/2),f=wr(i[1],c/2),d=e.coordinateSystem;if(d){var p=d.dataToPoint(r);o=p[0]||0,a=p[1]||0}else o=wr(r[0],s)+n.x,a=wr(r[1],u)+n.y;return{cx:o,cy:a,r0:l,r:f}}function LS(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.getData(),r=t.mapDimension("value"),i=RS(e,n),o=DS(e,n),a=o.cx,s=o.cy,u=o.r,c=o.r0,l=-e.get("startAngle")*IS,f=e.get("minAngle")*IS,d=0;t.each(r,(function(e){!isNaN(e)&&d++}));var p=t.getSum(r),h=Math.PI/(p||d)*2,v=e.get("clockwise"),g=e.get("roseType"),m=e.get("stillShowZeroSum"),y=t.getDataExtent(r);y[0]=0;var b=MS,x=0,w=l,_=v?1:-1;if(t.setLayout({viewRect:i,r:u}),t.each(r,(function(e,n){var r;if(isNaN(e))t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:v,cx:a,cy:s,r0:c,r:g?NaN:u});else{(r="area"!==g?0===p&&m?h:e*h:MS/d)<f?(r=f,b-=f):x+=e;var i=w+_*r;t.setItemLayout(n,{angle:r,startAngle:w,endAngle:i,clockwise:v,cx:a,cy:s,r0:c,r:g?xr(e,y,[c,u]):u}),w=i}})),b<MS&&d)if(b<=.001){var S=MS/d;t.each(r,(function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n);r.angle=S,r.startAngle=l+_*n*S,r.endAngle=l+_*(n+1)*S}}))}else h=b/x,w=l,t.each(r,(function(e,n){if(!isNaN(e)){var r=t.getItemLayout(n),i=r.angle===f?f:e*h;r.startAngle=w,r.endAngle=w+_*i,w+=_*i}}))}))}function NS(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(n&&n.length){var r=e.getData();r.filterSelf((function(e){for(var t=r.getName(e),i=0;i<n.length;i++)if(!n[i].isSelected(t))return!1;return!0}))}}}}var FS=Math.PI/180;function BS(e,t,n,r,i,o,a,s,u,c){if(!(e.length<2)){for(var l=e.length,f=0;f<l;f++)if("outer"===e[f].position&&"labelLine"===e[f].labelAlignTo){var d=e[f].label.x-c;e[f].linePoints[1][0]+=d,e[f].label.x=c}Xx(e,u,u+a)&&function(e){for(var o={list:[],maxY:0},a={list:[],maxY:0},s=0;s<e.length;s++)if("none"===e[s].labelAlignTo){var u=e[s],c=u.label.y>n?a:o,l=Math.abs(u.label.y-n);if(l>=c.maxY){var f=u.label.x-t-u.len2*i,d=r+u.len,h=Math.abs(f)<d?Math.sqrt(l*l/(1-f*f/d/d)):d;c.rB=h,c.maxY=l}c.list.push(u)}p(o),p(a)}(e)}function p(e){for(var o=e.rB,a=o*o,s=0;s<e.list.length;s++){var u=e.list[s],c=Math.abs(u.label.y-n),l=r+u.len,f=l*l,d=Math.sqrt((1-Math.abs(c*c/a))*f),p=t+(d+u.len2)*i,h=p-u.label.x;US(u,u.targetTextWidth-h*i,!0),u.label.x=p}}}function US(e,t,n){if(void 0===n&&(n=!1),null==e.labelStyleWidth){var r=e.label,i=r.style,o=e.rect,a=i.backgroundColor,s=i.padding,u=s?s[1]+s[3]:0,c=i.overflow,l=o.width+(a?0:u);if(t<l||n){var f=o.height;if(c&&c.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",t-u);var d=r.getBoundingRect();r.setStyle("width",Math.ceil(d.width)),r.setStyle("backgroundColor",a)}else{var p=t-u,h=t<l?p:n?p>e.unconstrainedWidth?null:p:null;r.setStyle("width",h)}var v=r.getBoundingRect();o.width=v.width;var g=(r.style.margin||0)+2.1;o.height=v.height+g,o.y-=(o.height-f)/2}}}function zS(e){return"center"===e.position}function VS(e){var t,n,r=e.getData(),i=[],o=!1,a=(e.get("minShowLabelAngle")||0)*FS,s=r.getLayout("viewRect"),u=r.getLayout("r"),c=s.width,l=s.x,f=s.y,d=s.height;function p(e){e.ignore=!0}r.each((function(e){var s=r.getItemGraphicEl(e),f=s.shape,d=s.getTextContent(),h=s.getTextGuideLine(),v=r.getItemModel(e),g=v.getModel("label"),m=g.get("position")||v.get(["emphasis","label","position"]),y=g.get("distanceToLabelLine"),b=g.get("alignTo"),w=wr(g.get("edgeDistance"),c),_=g.get("bleedMargin"),S=v.getModel("labelLine"),O=S.get("length");O=wr(O,c);var k=S.get("length2");if(k=wr(k,c),Math.abs(f.endAngle-f.startAngle)<a)return Object(x.each)(d.states,p),Object(x.each)(h.states,p),void(d.ignore=h.ignore=!0);if(function(e){if(!e.ignore)return!0;for(var t in e.states)if(!1===e.states[t].ignore)return!0;return!1}(d)){var E,j,T,C,A=(f.startAngle+f.endAngle)/2,P=Math.cos(A),M=Math.sin(A);t=f.cx,n=f.cy;var I="inside"===m||"inner"===m;if("center"===m)E=f.cx,j=f.cy,C="center";else{var R=(I?(f.r+f.r0)/2*P:f.r*P)+t,D=(I?(f.r+f.r0)/2*M:f.r*M)+n;if(E=R+3*P,j=D+3*M,!I){var L=R+P*(O+u-f.r),N=D+M*(O+u-f.r),F=L+(P<0?-1:1)*k;E="edge"===b?P<0?l+w:l+c-w:F+(P<0?-y:y),j=N,T=[[R,D],[L,N],[F,N]]}C=I?"center":"edge"===b?P>0?"right":"left":P>0?"left":"right"}var B=Math.PI,U=0,z=g.get("rotate");if(Object(x.isNumber)(z))U=z*(B/180);else if("center"===m)U=0;else if("radial"===z||!0===z){U=P<0?-A+B:-A}else if("tangential"===z&&"outside"!==m&&"outer"!==m){var V=Math.atan2(P,M);V<0&&(V=2*B+V),M>0&&(V=B+V),U=V-B}if(o=!!U,d.x=E,d.y=j,d.rotation=U,d.setStyle({verticalAlign:"middle"}),I){d.setStyle({align:C});var H=d.states.select;H&&(H.x+=d.x,H.y+=d.y)}else{var W=d.getBoundingRect().clone();W.applyTransform(d.getComputedTransform());var q=(d.style.margin||0)+2.1;W.y-=q/2,W.height+=q,i.push({label:d,labelLine:h,position:m,len:O,len2:k,minTurnAngle:S.get("minTurnAngle"),maxSurfaceAngle:S.get("maxSurfaceAngle"),surfaceNormal:new Ce(P,M),linePoints:T,textAlign:C,labelDistance:y,labelAlignTo:b,edgeDistance:w,bleedMargin:_,rect:W,unconstrainedWidth:W.width,labelStyleWidth:d.style.width})}s.setTextConfig({inside:I})}})),!o&&e.get("avoidLabelOverlap")&&function(e,t,n,r,i,o,a,s){for(var u=[],c=[],l=Number.MAX_VALUE,f=-Number.MAX_VALUE,d=0;d<e.length;d++){var p=e[d].label;zS(e[d])||(p.x<t?(l=Math.min(l,p.x),u.push(e[d])):(f=Math.max(f,p.x),c.push(e[d])))}for(d=0;d<e.length;d++){if(!zS(g=e[d])&&g.linePoints){if(null!=g.labelStyleWidth)continue;p=g.label;var h=g.linePoints,v=void 0;v="edge"===g.labelAlignTo?p.x<t?h[2][0]-g.labelDistance-a-g.edgeDistance:a+i-g.edgeDistance-h[2][0]-g.labelDistance:"labelLine"===g.labelAlignTo?p.x<t?l-a-g.bleedMargin:a+i-f-g.bleedMargin:p.x<t?p.x-a-g.bleedMargin:a+i-p.x-g.bleedMargin,g.targetTextWidth=v,US(g,v)}}for(BS(c,t,n,r,1,0,o,0,s,f),BS(u,t,n,r,-1,0,o,0,s,l),d=0;d<e.length;d++){var g;if(!zS(g=e[d])&&g.linePoints){p=g.label,h=g.linePoints;var m="edge"===g.labelAlignTo,y=p.style.padding,b=y?y[1]+y[3]:0,x=p.style.backgroundColor?0:b,w=g.rect.width+x,_=h[1][0]-h[2][0];m?p.x<t?h[2][0]=a+g.edgeDistance+w+g.labelDistance:h[2][0]=a+i-g.edgeDistance-w-g.labelDistance:(p.x<t?h[2][0]=p.x+g.labelDistance:h[2][0]=p.x-g.labelDistance,h[1][0]=h[2][0]+_),h[1][1]=h[2][1]=p.y}}}(i,t,n,u,c,d,l,f);for(var h=0;h<i.length;h++){var v=i[h],g=v.label,m=v.labelLine,y=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:v.textAlign}),y&&(Object(x.each)(g.states,p),g.ignore=!0);var b=g.states.select;b&&(b.x+=g.x,b.y+=g.y)}if(m){var w=v.linePoints;y||!w?(Object(x.each)(m.states,p),m.ignore=!0):(Vx(w,v.minTurnAngle),Hx(w,v.surfaceNormal,v.maxSurfaceAngle),m.setShape({points:w}),g.__hostTarget.textGuideLineConfig={anchor:new Ce(w[0][0],w[0][1])})}}}function HS(e,t,n){var r=e.get("borderRadius");if(null==r)return n?{cornerRadius:0}:null;Object(x.isArray)(r)||(r=[r,r,r,r]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Object(x.map)(r,(function(e){return Xn(e,i)}))}}var WS=function(e){function t(t,n,r){var i=e.call(this)||this;i.z2=2;var o=new Ma;return i.setTextContent(o),i.updateData(t,n,r,!0),i}return y(t,e),t.prototype.updateData=function(e,t,n,r){var i=e.hostModel,o=e.getItemModel(t),a=o.getModel("emphasis"),s=e.getItemLayout(t),u=Object(x.extend)(HS(o.getModel("itemStyle"),s,!0),s);if(isNaN(u.startAngle))this.setShape(u);else{if(r){this.setShape(u);var c=i.getShallow("animationType");i.ecModel.ssr?(zs(this,{scaleX:0,scaleY:0},i,{dataIndex:t,isFrom:!0}),this.originX=u.cx,this.originY=u.cy):"scale"===c?(this.shape.r=s.r0,zs(this,{shape:{r:s.r}},i,t)):null!=n?(this.setShape({startAngle:n,endAngle:n}),zs(this,{shape:{startAngle:s.startAngle,endAngle:s.endAngle}},i,t)):(this.shape.endAngle=s.startAngle,Us(this,{shape:{endAngle:s.endAngle}},i,t))}else Gs(this),Us(this,{shape:u},i,t);this.useStyle(e.getItemVisual(t,"style")),Ms(this,o);var l=(s.startAngle+s.endAngle)/2,f=i.get("selectedOffset"),d=Math.cos(l)*f,p=Math.sin(l)*f,h=o.getShallow("cursor");h&&this.attr("cursor",h),this._updateLabel(i,e,t),this.ensureState("emphasis").shape=Object(x.extend)({r:s.r+(a.get("scale")&&a.get("scaleSize")||0)},HS(a.getModel("itemStyle"),s)),Object(x.extend)(this.ensureState("select"),{x:d,y:p,shape:HS(o.getModel(["select","itemStyle"]),s)}),Object(x.extend)(this.ensureState("blur"),{shape:HS(o.getModel(["blur","itemStyle"]),s)});var v=this.getTextGuideLine(),g=this.getTextContent();v&&Object(x.extend)(v.ensureState("select"),{x:d,y:p}),Object(x.extend)(g.ensureState("select"),{x:d,y:p}),Ts(this,a.get("focus"),a.get("blurScope"),a.get("disabled"))}},t.prototype._updateLabel=function(e,t,n){var r=t.getItemModel(n),i=r.getModel("labelLine"),o=t.getItemVisual(n,"style"),a=o&&o.fill,s=o&&o.opacity;Xs(this,Qs(r),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:a,defaultOpacity:s,defaultText:e.getFormattedLabel(n,"normal")||t.getName(n)});var u=this.getTextContent();this.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var c=e.get(["label","position"]);if("outside"!==c&&"outer"!==c)this.removeTextGuideLine();else{var l=this.getTextGuideLine();l||(l=new jp,this.setTextGuideLine(l)),Gx(this,Yx(r),{stroke:a,opacity:Object(x.retrieve3)(i.get(["lineStyle","opacity"]),s,1)})}},t}(mp),qS=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return y(t,e),t.prototype.render=function(e,t,n,r){var i,o=e.getData(),a=this._data,s=this.group;if(!a&&o.count()>0){for(var u=o.getItemLayout(0),c=1;isNaN(u&&u.startAngle)&&c<o.count();++c)u=o.getItemLayout(c);u&&(i=u.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===o.count()&&e.get("showEmptyCircle")){var l=new mp({shape:DS(e,n)});l.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=l,s.add(l)}o.diff(a).add((function(e){var t=new WS(o,e,i);o.setItemGraphicEl(e,t),s.add(t)})).update((function(e,t){var n=a.getItemGraphicEl(t);n.updateData(o,e,i),n.off("click"),s.add(n),o.setItemGraphicEl(e,n)})).remove((function(t){qs(a.getItemGraphicEl(t),e,t)})).execute(),VS(e),"expansion"!==e.get("animationTypeUpdate")&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,i=e[1]-n.cy,o=Math.sqrt(r*r+i*i);return o<=n.r&&o>=n.r0}},t.type="pie",t}(Dh);function GS(e,t,n){t=Object(x.isArray)(t)&&{coordDimensions:t}||Object(x.extend)({encodeDefine:e.getEncode()},t);var r=e.getSource(),i=_y(r,t).dimensions,o=new xy(i,e);return o.initData(r,n),o}var YS=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){return this._getRawData().indexOfName(e)>=0},e.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},e.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},e}(),KS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new YS(x.bind(this.getData,this),x.bind(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){var e=GS(this,{coordDimensions:["value"],encodeDefaulter:x.curry($c,this)}),t=[];return e.each(e.mapDimension("value"),(function(e){t.push(e)})),this.seats=Tr(t,e.hostModel.get("percentPrecision")),e},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.call(this,t);return n.percent=this.seats[t],n.$vars.push("percent"),n},t.prototype._defaultLabelLine=function(e){Kr(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(Ed);var $S=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return y(t,e),t.prototype.getInitialData=function(e,t){return Ay(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(Ed),XS=function(){},QS=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return y(t,e),t.prototype.getDefaultShape=function(){return new XS},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,t){var n,r=t.points,i=t.size,o=this.symbolProxy,a=o.shape,s=e.getContext?e.getContext():e,u=s&&i[0]<4,c=this.softClipShape;if(u)this._ctx=s;else{for(this._ctx=null,n=this._off;n<r.length;){var l=r[n++],f=r[n++];isNaN(l)||isNaN(f)||(c&&!c.contain(l,f)||(a.x=l-i[0]/2,a.y=f-i[1]/2,a.width=i[0],a.height=i[1],o.buildPath(e,a,!0)))}this.incremental&&(this._off=n,this.notClear=!0)}},t.prototype.afterBrush=function(){var e,t=this.shape,n=t.points,r=t.size,i=this._ctx,o=this.softClipShape;if(i){for(e=this._off;e<n.length;){var a=n[e++],s=n[e++];isNaN(a)||isNaN(s)||(o&&!o.contain(a,s)||i.fillRect(a-r[0]/2,s-r[1]/2,r[0],r[1]))}this.incremental&&(this._off=e,this.notClear=!0)}},t.prototype.findDataIndex=function(e,t){for(var n=this.shape,r=n.points,i=n.size,o=Math.max(i[0],4),a=Math.max(i[1],4),s=r.length/2-1;s>=0;s--){var u=2*s,c=r[u]-o/2,l=r[u+1]-a/2;if(e>=c&&t>=l&&e<=c+o&&t<=l+a)return s}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();return e=n[0],t=n[1],r.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.points,r=t.size,i=r[0],o=r[1],a=1/0,s=1/0,u=-1/0,c=-1/0,l=0;l<n.length;){var f=n[l++],d=n[l++];a=Math.min(f,a),u=Math.max(f,u),s=Math.min(d,s),c=Math.max(d,c)}e=this._rect=new Fe(a-i/2,s-o/2,u-a+i,c-s+o)}return e},t}(ta),ZS=function(){function e(){this.group=new ur}return e.prototype.updateData=function(e,t){this._clear();var n=this._create();n.setShape({points:e.getLayout("points")}),this._setCommon(n,e,t)},e.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild((function(e){if(null!=e.startIndex){var n=2*(e.endIndex-e.startIndex),r=4*e.startIndex*2;t=new Float32Array(t.buffer,r,n)}e.setShape("points",t),e.reset()}))},e.prototype.incrementalPrepareUpdate=function(e){this._clear()},e.prototype.incrementalUpdate=function(e,t,n){var r=this._newAdded[0],i=t.getLayout("points"),o=r&&r.shape.points;if(o&&o.length<2e4){var a=o.length,s=new Float32Array(a+i.length);s.set(o),s.set(i,a),r.endIndex=e.end,r.setShape({points:s})}else{this._newAdded=[];var u=this._create();u.startIndex=e.start,u.endIndex=e.end,u.incremental=!0,u.setShape({points:i}),this._setCommon(u,t,n)}},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new QS({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},e.prototype._setCommon=function(e,t,n){var r=t.hostModel;n=n||{};var i=t.getVisual("symbolSize");e.setShape("size",i instanceof Array?i:[i,i]),e.softClipShape=n.clipShape||null,e.symbolProxy=Vv(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<4;e.useStyle(r.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var a=t.getVisual("style"),s=a&&a.fill;s&&e.setColor(s);var u=Ia(e);u.seriesIndex=r.seriesIndex,e.on("mousemove",(function(t){u.dataIndex=null;var n=e.hoverDataIdx;n>=0&&(u.dataIndex=n+(e.startIndex||0))}))},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),JS=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.render=function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).updateData(r,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData();this._updateSymbolDraw(r,e).incrementalPrepareUpdate(r),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var r=e.getData();if(this.group.dirty(),!this._finished||r.count()>1e4)return{update:!0};var i=nS("").reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(r)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,r=t.pipelineContext.large;return n&&r===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=r?new ZS:new A_,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Dh),eO=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(Ic),tO=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ci).models[0]},t.type="cartesian2dAxis",t}(Ic);x.mixin(tO,zb);var nO={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},rO=x.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},nO),iO=x.merge({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},nO),oO={category:rO,value:iO,time:x.merge({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},iO),log:x.defaults({logBase:10},iO)},aO={value:1,category:1,time:1,log:1};function sO(e,t,n,r){Object(x.each)(aO,(function(i,o){var a=Object(x.merge)(Object(x.merge)({},oO[o],!0),r,!0),s=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t+"Axis."+o,n}return y(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=jc(this),r=n?Cc(e):{},i=t.getTheme();Object(x.merge)(e,i.get(o+"Axis")),Object(x.merge)(e,this.getDefaultOption()),e.type=uO(e),n&&Tc(e,r,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=Dy.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=t+"Axis."+o,n.defaultOption=a,n}(n);e.registerComponentModel(s)})),e.registerSubTypeDefaulter(t+"Axis",uO)}function uO(e){return e.type||(e.data?"category":"value")}var cO=function(){function e(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return x.map(this._dimList,(function(e){return this._axes[e]}),this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),x.filter(this.getAxes(),(function(t){return t.scale.type===e}))},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),lO=["x","y"];function fO(e){return"interval"===e.type||"time"===e.type}var dO=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=lO,t}return y(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if(fO(e)&&fO(t)){var n=e.getExtent(),r=t.getExtent(),i=this.dataToPoint([n[0],r[0]]),o=this.dataToPoint([n[1],r[1]]),a=n[1]-n[0],s=r[1]-r[0];if(a&&s){var u=(o[0]-i[0])/a,c=(o[1]-i[1])/s,l=i[0]-n[0]*u,f=i[1]-r[0]*c,d=this._transform=[u,0,0,c,l,f];this._invTransform=je([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var t=this.getAxis("x"),n=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),o=new Fe(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(o)},t.prototype.dataToPoint=function(e,t,n){n=n||[];var r=e[0],i=e[1];if(this._transform&&null!=r&&isFinite(r)&&null!=i&&isFinite(i))return q(n,e,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(r,t)),n[1]=a.toGlobalCoord(a.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),o=r.getExtent(),a=n.parse(e[0]),s=r.parse(e[1]);return(t=t||[])[0]=Math.min(Math.max(Math.min(i[0],i[1]),a),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),t},t.prototype.pointToData=function(e,t){var n=[];if(this._invTransform)return q(n,e,this._invTransform);var r=this.getAxis("x"),i=this.getAxis("y");return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),t=this.getAxis("y").getGlobalExtent(),n=Math.min(e[0],e[1]),r=Math.min(t[0],t[1]),i=Math.max(e[0],e[1])-n,o=Math.max(t[0],t[1])-r;return new Fe(n,r,i,o)},t}(cO),pO=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r)||this;return a.index=0,a.type=i||"value",a.position=o||"bottom",a}return y(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(bx);function hO(e,t,n){n=n||{};var r=e.coordinateSystem,i=t.axis,o={},a=i.getAxesOnZeroOf()[0],s=i.position,u=a?"onZero":s,c=i.dim,l=r.getRect(),f=[l.x,l.x+l.width,l.y,l.y+l.height],d={left:0,right:1,top:0,bottom:1,onZero:2},p=t.get("offset")||0,h="x"===c?[f[2]-p,f[3]+p]:[f[0]-p,f[1]+p];if(a){var v=a.toGlobalCoord(a.dataToCoord(0));h[d.onZero]=Math.max(Math.min(v,h[1]),h[0])}o.position=["y"===c?h[d[u]]:f[0],"x"===c?h[d[u]]:f[3]],o.rotation=Math.PI/2*("x"===c?0:1);o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],o.labelOffset=a?h[d[s]]-h[d.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),x.retrieve(n.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var g=t.get(["axisLabel","rotate"]);return o.labelRotate="top"===u?-g:g,o.z2=1,o}function vO(e){return"cartesian2d"===e.get("coordinateSystem")}function gO(e){var t={xAxisModel:null,yAxisModel:null};return x.each(t,(function(n,r){var i=r.replace(/Model$/,""),o=e.getReferringComponents(i,ci).models[0];t[r]=o})),t}var mO=Math.log;function yO(e,t,n){var r=Ky.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,!0),a=i.length-1,s=r.getInterval.call(n),u=Ib(e,t),c=u.extent,l=u.fixMin,f=u.fixMax;if("log"===e.type){var d=mO(e.base);c=[mO(c[0])/d,mO(c[1])/d]}e.setExtent(c[0],c[1]),e.calcNiceExtent({splitNumber:a,fixMin:l,fixMax:f});var p=r.getExtent.call(e);l&&(c[0]=p[0]),f&&(c[1]=p[1]);var h=r.getInterval.call(e),v=c[0],g=c[1];if(l&&f)h=(g-v)/a;else if(l)for(g=c[0]+h*a;g<c[1]&&isFinite(g)&&isFinite(c[1]);)h=Fy(h),g=c[0]+h*a;else if(f)for(v=c[1]-h*a;v>c[0]&&isFinite(v)&&isFinite(c[0]);)h=Fy(h),v=c[1]-h*a;else{e.getTicks().length-1>a&&(h=Fy(h));var m=h*a;(v=_r((g=Math.ceil(c[1]/h)*h)-m))<0&&c[0]>=0?(v=0,g=_r(m)):g>0&&c[1]<=0&&(g=0,v=-_r(m))}var y=(i[0].value-o[0].value)/s,b=(i[a].value-o[a].value)/s;r.setExtent.call(e,v+h*y,g+h*b),r.setInterval.call(e,h),(y||b)&&r.setNiceExtent.call(e,v+h,g-h)}function bO(e,t){return e.getCoordSysModel()===t}function xO(e,t,n,r){n.getAxesOnZeroOf=function(){return i?[i]:[]};var i,o=e[t],a=n.model,s=a.get(["axisLine","onZero"]),u=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=u)wO(o[u])&&(i=o[u]);else for(var c in o)if(o.hasOwnProperty(c)&&wO(o[c])&&!r[l(o[c])]){i=o[c];break}i&&(r[l(i)]=!0)}function l(e){return e.dim+"_"+e.index}}function wO(e){return e&&"category"!==e.type&&"time"!==e.type&&function(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}(e)}var _O=function(){function e(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=lO,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;function r(e){var t,n=Object(x.keys)(e),r=n.length;if(r){for(var i=[],o=r-1;o>=0;o--){var a=e[+n[o]],s=a.model,u=a.scale;Ly(u)&&s.get("alignTicks")&&null==s.get("interval")?i.push(a):(Rb(u,s),Ly(u)&&(t=a))}i.length&&(t||Rb((t=i.pop()).scale,t.model),Object(x.each)(i,(function(e){yO(e.scale,e.model,t.scale)})))}}this._updateScale(e,this.model),r(n.x),r(n.y);var i={};Object(x.each)(n.x,(function(e){xO(n,"y",e,i)})),Object(x.each)(n.y,(function(e){xO(n,"x",e,i)})),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=e.getBoxLayoutParams(),i=!n&&e.get("containLabel"),o=kc(r,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var a=this._axesList;function s(){Object(x.each)(a,(function(e){var t=e.isHorizontal(),n=t?[0,o.width]:[0,o.height],r=e.inverse?1:0;e.setExtent(n[r],n[1-r]),function(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return r-e+t}}(e,t?o.x:o.y)}))}s(),i&&(Object(x.each)(a,(function(e){if(!e.model.get(["axisLabel","inside"])){var t=function(e){var t=e.model,n=e.scale;if(t.get(["axisLabel","show"])&&!n.isBlank()){var r,i,o=n.getExtent();i=n instanceof qy?n.count():(r=n.getTicks()).length;var a,s,u,c,l,f,d,p,h=e.getLabelModel(),v=Lb(e),g=1;i>40&&(g=Math.ceil(i/40));for(var m=0;m<i;m+=g){var y=v(r?r[m]:{value:o[0]+m},m),b=h.getTextRect(y),x=(s=b,u=h.get("rotate")||0,c=void 0,l=void 0,f=void 0,d=void 0,p=void 0,void 0,c=u*Math.PI/180,l=s.width,f=s.height,d=l*Math.abs(Math.cos(c))+Math.abs(f*Math.sin(c)),p=l*Math.abs(Math.sin(c))+Math.abs(f*Math.cos(c)),new Fe(s.x,s.y,d,p));a?a.union(x):a=x}return a}}(e);if(t){var n=e.isHorizontal()?"height":"width",r=e.model.get(["axisLabel","margin"]);o[n]-=t[n]+r,"top"===e.position?o.y+=t.height+r:"left"===e.position&&(o.x+=t.width+r)}}})),s()),Object(x.each)(this._coordsList,(function(e){e.calcAffineTransform()}))},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(null!=e&&null!=t){var n="x"+e+"y"+t;return this._coordsMap[n]}Object(x.isObject)(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis("x").index===e||i[r].getAxis("y").index===t)return i[r]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t,n,r=e.seriesModel,i=e.xAxisModel||r&&r.getReferringComponents("xAxis",ci).models[0],o=e.yAxisModel||r&&r.getReferringComponents("yAxis",ci).models[0],a=e.gridModel,s=this._coordsList;if(r)t=r.coordinateSystem,Object(x.indexOf)(s,t)<0&&(t=null);else if(i&&o)t=this.getCartesian(i.componentIndex,o.componentIndex);else if(i)n=this.getAxis("x",i.componentIndex);else if(o)n=this.getAxis("y",o.componentIndex);else if(a){a.coordinateSystem===this&&(t=this._coordsList[0])}return{cartesian:t,axis:n}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var r=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(t.eachComponent("xAxis",u("x"),this),t.eachComponent("yAxis",u("y"),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function u(t){return function(n,r){if(bO(n,e)){var u=n.get("position");"x"===t?"top"!==u&&"bottom"!==u&&(u=o.bottom?"top":"bottom"):"left"!==u&&"right"!==u&&(u=o.left?"right":"left"),o[u]=!0;var c=new pO(t,Db(n),[0,0],n.get("type"),u),l="category"===c.type;c.onBand=l&&n.get("boundaryGap"),c.inverse=n.get("inverse"),n.axis=c,c.model=n,c.grid=i,c.index=r,i._axesList.push(c),a[t][r]=c,s[t]++}}}this._axesMap=a,Object(x.each)(a.x,(function(t,n){Object(x.each)(a.y,(function(i,o){var a="x"+n+"y"+o,s=new dO(a);s.master=r,s.model=e,r._coordsMap[a]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)}))}))},e.prototype._updateScale=function(e,t){function n(e,t){Object(x.each)(Ub(e,t.dim),(function(n){t.scale.unionExtentFromData(e,n)}))}Object(x.each)(this._axesList,(function(e){if(e.scale.setExtent(1/0,-1/0),"category"===e.type){var t=e.model.get("categorySortInfo");e.scale.setSortInfo(t)}})),e.eachSeries((function(e){if(vO(e)){var r=gO(e),i=r.xAxisModel,o=r.yAxisModel;if(!bO(i,t)||!bO(o,t))return;var a=this.getCartesian(i.componentIndex,o.componentIndex),s=e.getData(),u=a.getAxis("x"),c=a.getAxis("y");n(s,u),n(s,c)}}),this)},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return Object(x.each)(this.getCartesians(),(function(r){var i=null!=e&&"auto"!==e?r.getAxis(e):r.getBaseAxis(),o=r.getOtherAxis(i);Object(x.indexOf)(t,i)<0&&t.push(i),Object(x.indexOf)(n,o)<0&&n.push(o)})),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var r=[];return t.eachComponent("grid",(function(i,o){var a=new e(i,t,n);a.name="grid_"+o,a.resize(i,n,!0),i.coordinateSystem=a,r.push(a)})),t.eachSeries((function(e){if(vO(e)){var t=gO(e),n=t.xAxisModel,r=t.yAxisModel;0;var i=n.getCoordSysModel().coordinateSystem;e.coordinateSystem=i.getCartesian(n.componentIndex,r.componentIndex)}})),r},e.dimensions=lO,e}(),SO=Math.PI,OO=function(){function e(e,t){this.group=new ur,this.opt=t,this.axisModel=e,Object(x.defaults)(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new ur({x:t.position[0],y:t.position[1],rotation:t.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(e){return!!kO[e]},e.prototype.add=function(e){kO[e](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(e,t,n){var r,i,o=Pr(t-e);return Mr(o)?(i=n>0?"top":"bottom",r="center"):Mr(o-SO)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o<SO?n>0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:i}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},e}(),kO={axisLine:function(e,t,n,r){var i=t.get(["axisLine","show"]);if("auto"===i&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),i){var o=t.axis.getExtent(),a=r.transform,s=[o[0],0],u=[o[1],0],c=s[0]>u[0];a&&(q(s,s,a),q(u,u,a));var l=Object(x.extend)({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new Pp({shape:{x1:s[0],y1:s[1],x2:u[0],y2:u[1]},style:l,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});lh(f.shape,f.style.lineWidth),f.anid="line",n.add(f);var d=t.get(["axisLine","symbol"]);if(null!=d){var p=t.get(["axisLine","symbolSize"]);Object(x.isString)(d)&&(d=[d,d]),(Object(x.isString)(p)||Object(x.isNumber)(p))&&(p=[p,p]);var h=Wv(t.get(["axisLine","symbolOffset"])||0,p),v=p[0],g=p[1];Object(x.each)([{rotate:e.rotation+Math.PI/2,offset:h[0],r:0},{rotate:e.rotation-Math.PI/2,offset:h[1],r:Math.sqrt((s[0]-u[0])*(s[0]-u[0])+(s[1]-u[1])*(s[1]-u[1]))}],(function(t,r){if("none"!==d[r]&&null!=d[r]){var i=Vv(d[r],-v/2,-g/2,v,g,l.stroke,!0),o=t.r+t.offset,a=c?u:s;i.attr({rotation:t.rotate,x:a[0]+o*Math.cos(e.rotation),y:a[1]-o*Math.sin(e.rotation),silent:!0,z2:11}),n.add(i)}}))}}},axisTickLabel:function(e,t,n,r){var i=function(e,t,n,r){var i=n.axis,o=n.getModel("axisTick"),a=o.get("show");"auto"===a&&r.handleAutoShown&&(a=r.handleAutoShown("axisTick"));if(!a||i.scale.isBlank())return;for(var s=o.getModel("lineStyle"),u=r.tickDirection*o.get("length"),c=CO(i.getTicksCoords(),t.transform,u,Object(x.defaults)(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),l=0;l<c.length;l++)e.add(c[l]);return c}(n,r,t,e),o=function(e,t,n,r){var i=n.axis;if(!Object(x.retrieve)(r.axisLabelShow,n.get(["axisLabel","show"]))||i.scale.isBlank())return;var o=n.getModel("axisLabel"),a=o.get("margin"),s=i.getViewLabels(),u=(Object(x.retrieve)(r.labelRotate,o.get("rotate"))||0)*SO/180,c=OO.innerTextLayout(r.rotation,u,r.labelDirection),l=n.getCategories&&n.getCategories(!0),f=[],d=OO.isLabelSilent(n),p=n.get("triggerEvent");return Object(x.each)(s,(function(s,u){var h="ordinal"===i.scale.type?i.scale.getRawOrdinalNumber(s.tickValue):s.tickValue,v=s.formattedLabel,g=s.rawLabel,m=o;if(l&&l[h]){var y=l[h];Object(x.isObject)(y)&&y.textStyle&&(m=new _u(y.textStyle,o,n.ecModel))}var b=m.getTextColor()||n.get(["axisLine","lineStyle","color"]),w=i.dataToCoord(h),_=new Ma({x:w,y:r.labelOffset+r.labelDirection*a,rotation:c.rotation,silent:d,z2:10+(s.level||0),style:Zs(m,{text:v,align:m.getShallow("align",!0)||c.textAlign,verticalAlign:m.getShallow("verticalAlign",!0)||m.getShallow("baseline",!0)||c.textVerticalAlign,fill:Object(x.isFunction)(b)?b("category"===i.type?g:"value"===i.type?h+"":h,u):b})});if(_.anid="label_"+h,p){var S=OO.makeAxisEventDataBase(n);S.targetType="axisLabel",S.value=g,S.tickIndex=u,"category"===i.type&&(S.dataIndex=h),Ia(_).eventData=S}t.add(_),_.updateTransform(),f.push(_),e.add(_),_.decomposeTransform()})),f}(n,r,t,e);(function(e,t,n){if(Bb(e.axis))return;var r=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);n=n||[];var o=(t=t||[])[0],a=t[1],s=t[t.length-1],u=t[t.length-2],c=n[0],l=n[1],f=n[n.length-1],d=n[n.length-2];!1===r?(EO(o),EO(c)):jO(o,a)&&(r?(EO(a),EO(l)):(EO(o),EO(c)));!1===i?(EO(s),EO(f)):jO(u,s)&&(i?(EO(u),EO(d)):(EO(s),EO(f)))}(t,o,i),function(e,t,n,r){var i=n.axis,o=n.getModel("minorTick");if(!o.get("show")||i.scale.isBlank())return;var a=i.getMinorTicksCoords();if(!a.length)return;for(var s=o.getModel("lineStyle"),u=r*o.get("length"),c=Object(x.defaults)(s.getLineStyle(),Object(x.defaults)(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),l=0;l<a.length;l++)for(var f=CO(a[l],t.transform,u,c,"minorticks_"+l),d=0;d<f.length;d++)e.add(f[d])}(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"]))&&Qx(Kx(Object(x.map)(o,(function(e){return{label:e,priority:e.z2,defaultAttr:{ignore:e.ignore}}}))))},axisName:function(e,t,n,r){var i=Object(x.retrieve)(e.axisName,t.get("name"));if(i){var o,a,s=t.get("nameLocation"),u=e.nameDirection,c=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,f=t.axis.getExtent(),d=f[0]>f[1]?-1:1,p=["start"===s?f[0]-d*l:"end"===s?f[1]+d*l:(f[0]+f[1])/2,TO(s)?e.labelOffset+u*l:0],h=t.get("nameRotate");null!=h&&(h=h*SO/180),TO(s)?o=OO.innerTextLayout(e.rotation,null!=h?h:e.rotation,u):(o=function(e,t,n,r){var i,o,a=Pr(n-e),s=r[0]>r[1],u="start"===t&&!s||"start"!==t&&s;Mr(a-SO/2)?(o=u?"bottom":"top",i="center"):Mr(a-1.5*SO)?(o=u?"top":"bottom",i="center"):(o="middle",i=a<1.5*SO&&a>SO/2?u?"left":"right":u?"right":"left");return{rotation:a,textAlign:i,textVerticalAlign:o}}(e.rotation,s,h||0,f),null!=(a=e.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var v=c.getFont(),g=t.get("nameTruncate",!0)||{},m=g.ellipsis,y=Object(x.retrieve)(e.nameTruncateMaxWidth,g.maxWidth,a),b=new Ma({x:p[0],y:p[1],rotation:o.rotation,silent:OO.isLabelSilent(t),style:Zs(c,{text:i,font:v,overflow:"truncate",width:y,ellipsis:m,fill:c.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:c.get("align")||o.textAlign,verticalAlign:c.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(Oh({el:b,componentModel:t,itemName:i}),b.__fullText=i,b.anid="name",t.get("triggerEvent")){var w=OO.makeAxisEventDataBase(t);w.targetType="axisName",w.name=i,Ia(b).eventData=w}r.add(b),b.updateTransform(),n.add(b),b.decomposeTransform()}}};function EO(e){e&&(e.ignore=!0)}function jO(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(n&&r){var i=we([]);return ke(i,i,-e.rotation),n.applyTransform(Se([],i,e.getLocalTransform())),r.applyTransform(Se([],i,t.getLocalTransform())),n.intersect(r)}}function TO(e){return"middle"===e||"center"===e}function CO(e,t,n,r,i){for(var o=[],a=[],s=[],u=0;u<e.length;u++){var c=e[u].coord;a[0]=c,a[1]=0,s[0]=c,s[1]=n,t&&(q(a,a,t),q(s,s,t));var l=new Pp({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});lh(l.shape,l.style.lineWidth),l.anid=i+"_"+e[u].tickValue,o.push(l)}return o}var AO=OO;function PO(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(e,t,n){var r=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];Object(x.each)(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=LO(n.model),u=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var c=n.model.getModel("tooltip",r);if(Object(x.each)(n.getAxes(),Object(x.curry)(p,!1,null)),n.getTooltipAxes&&r&&c.get("show")){var l="axis"===c.get("trigger"),f="cross"===c.get(["axisPointer","type"]),d=n.getTooltipAxes(c.get(["axisPointer","axis"]));(l||f)&&Object(x.each)(d.baseAxes,Object(x.curry)(p,!f||"cross",l)),f&&Object(x.each)(d.otherAxes,Object(x.curry)(p,"cross",!1))}}function p(r,s,l){var f=l.model.getModel("axisPointer",i),d=f.get("show");if(d&&("auto"!==d||r||DO(f))){null==s&&(s=f.get("triggerTooltip"));var p=(f=r?function(e,t,n,r,i,o){var a=t.getModel("axisPointer"),s={};Object(x.each)(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(e){s[e]=Object(x.clone)(a.get(e))})),s.snap="category"!==e.type&&!!o,"cross"===a.get("type")&&(s.type="line");var u=s.label||(s.label={});if(null==u.show&&(u.show=!1),"cross"===i){var c=a.get(["label","show"]);if(u.show=null==c||c,!o){var l=s.lineStyle=a.get("crossStyle");l&&Object(x.defaults)(u,l.textStyle)}}return e.model.getModel("axisPointer",new _u(s,n,r))}(l,c,i,t,r,s):f).get("snap"),h=LO(l.model),v=s||p||"category"===l.type,g=e.axesInfo[h]={key:h,axis:l,coordSys:n,axisPointerModel:f,triggerTooltip:s,involveSeries:v,snap:p,useHandle:DO(f),seriesModels:[],linkGroup:null};u[h]=g,e.seriesInvolved=e.seriesInvolved||v;var m=function(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var o=e[i]||{};if(MO(o[r+"AxisId"],n.id)||MO(o[r+"AxisIndex"],n.componentIndex)||MO(o[r+"AxisName"],n.name))return i}}(o,l);if(null!=m){var y=a[m]||(a[m]={axesInfo:{}});y.axesInfo[h]=g,y.mapper=o[m].mapper,g.linkGroup=y}}}}))}(n,e,t),n.seriesInvolved&&function(e,t){t.eachSeries((function(t){var n=t.coordinateSystem,r=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);n&&"none"!==r&&!1!==r&&"item"!==r&&!1!==i&&!1!==t.get(["axisPointer","show"],!0)&&Object(x.each)(e.coordSysAxesInfo[LO(n.model)],(function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),null==e.seriesDataCount&&(e.seriesDataCount=0),e.seriesDataCount+=t.getData().count())}))}))}(n,e),n}function MO(e,t){return"all"===e||Object(x.isArray)(e)&&Object(x.indexOf)(e,t)>=0||e===t}function IO(e){var t=RO(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=r.parse(a));var s=DO(n);null==o&&(i.status=s?"show":"hide");var u=r.getExtent().slice();u[0]>u[1]&&u.reverse(),(null==a||a>u[1])&&(a=u[1]),a<u[0]&&(a=u[0]),i.value=a,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function RO(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[LO(e)]}function DO(e){return!!e.get(["handle","show"])}function LO(e){return e.type+"||"+e.id}var NO={},FO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.render=function(t,n,r,i){this.axisPointerClass&&IO(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},t.prototype.updateAxisPointer=function(e,t,n,r){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,r){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var o=function(e){var t=RO(e);return t&&t.axisPointerModel}(e);o?(this._axisPointer||(this._axisPointer=new i)).render(e,o,n,r):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){NO[e]=t},t.getAxisPointerClass=function(e){return e&&NO[e]},t.type="axis",t}(Td),BO=oi();function UO(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),u=r.coordinateSystem.getRect(),c=i.getTicksCoords({tickModel:o,clamp:!0});if(c.length){var l=s.length,f=BO(e).splitAreaColors,d=x.createHashMap(),p=0;if(f)for(var h=0;h<c.length;h++){var v=f.get(c[h].tickValue);if(null!=v){p=(v+(l-1)*h)%l;break}}var g=i.toGlobalCoord(c[0].coord),m=a.getAreaStyle();s=x.isArray(s)?s:[s];for(h=1;h<c.length;h++){var y=i.toGlobalCoord(c[h].coord),b=void 0,w=void 0,_=void 0,S=void 0;i.isHorizontal()?(b=g,w=u.y,_=y-b,S=u.height,g=b+_):(b=u.x,w=g,_=u.width,g=w+(S=y-w));var O=c[h-1].tickValue;null!=O&&d.set(O,p),t.add(new ga({anid:null!=O?"area_"+O:null,shape:{x:b,y:w,width:_,height:S},style:x.defaults({fill:s[p]},m),autoBatch:!0,silent:!0})),p=(p+1)%l}BO(e).splitAreaColors=d}}}function zO(e){BO(e).splitAreaColors=null}var VO=["axisLine","axisTickLabel","axisName"],HO=["splitArea","splitLine","minorSplitLine"],WO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return y(t,e),t.prototype.render=function(t,n,r,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new ur,this.group.add(this._axisGroup),t.get("show")){var a=t.getCoordSysModel(),s=hO(a,t),u=new AO(t,x.extend({handleAutoShown:function(e){for(var n=a.coordinateSystem.getCartesians(),r=0;r<n.length;r++)if(Ly(n[r].getOtherAxis(t.axis).scale))return!0;return!1}},s));x.each(VO,u.add,u),this._axisGroup.add(u.getGroup()),x.each(HO,(function(e){t.get([e,"show"])&&qO[e](this,this._axisGroup,t,a)}),this),i&&"changeAxisOrder"===i.type&&i.isInitSort||mh(o,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i)}},t.prototype.remove=function(){zO(this)},t.type="cartesianAxis",t}(FO),qO={splitLine:function(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=x.isArray(s)?s:[s];for(var u=r.coordinateSystem.getRect(),c=i.isHorizontal(),l=0,f=i.getTicksCoords({tickModel:o}),d=[],p=[],h=a.getLineStyle(),v=0;v<f.length;v++){var g=i.toGlobalCoord(f[v].coord);c?(d[0]=g,d[1]=u.y,p[0]=g,p[1]=u.y+u.height):(d[0]=u.x,d[1]=g,p[0]=u.x+u.width,p[1]=g);var m=l++%s.length,y=f[v].tickValue,b=new Pp({anid:null!=y?"line_"+f[v].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:p[0],y2:p[1]},style:x.defaults({stroke:s[m]},h),silent:!0});lh(b.shape,h.lineWidth),t.add(b)}}},minorSplitLine:function(e,t,n,r){var i=n.axis,o=n.getModel("minorSplitLine").getModel("lineStyle"),a=r.coordinateSystem.getRect(),s=i.isHorizontal(),u=i.getMinorTicksCoords();if(u.length)for(var c=[],l=[],f=o.getLineStyle(),d=0;d<u.length;d++)for(var p=0;p<u[d].length;p++){var h=i.toGlobalCoord(u[d][p].coord);s?(c[0]=h,c[1]=a.y,l[0]=h,l[1]=a.y+a.height):(c[0]=a.x,c[1]=h,l[0]=a.x+a.width,l[1]=h);var v=new Pp({anid:"minor_line_"+u[d][p].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:l[0],y2:l[1]},style:f,silent:!0});lh(v.shape,f.lineWidth),t.add(v)}},splitArea:function(e,t,n,r){UO(e,t,n,r)}},GO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.type="xAxis",t}(WO),YO=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=GO.type,t}return y(t,e),t.type="yAxis",t}(WO),KO=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="grid",t}return y(t,e),t.prototype.render=function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new ga({shape:e.coordinateSystem.getRect(),style:Object(x.defaults)({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Td),$O={offset:0};function XO(e){e.registerComponentView(KO),e.registerComponentModel(eO),e.registerCoordinateSystem("cartesian2d",_O),sO(e,"x",tO,$O),sO(e,"y",tO,$O),e.registerComponentView(GO),e.registerComponentView(YO),e.registerPreprocessor((function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})}))}function QO(e){e.eachSeriesByType("radar",(function(e){var t=e.getData(),n=[],r=e.coordinateSystem;if(r){var i=r.getIndicatorAxes();x.each(i,(function(e,o){t.each(t.mapDimension(i[o].dim),(function(e,t){n[t]=n[t]||[];var i=r.dataToPoint(e,o);n[t][o]=ZO(i)?i:JO(r)}))})),t.each((function(e){var i=x.find(n[e],(function(e){return ZO(e)}))||JO(r);n[e].push(i.slice()),t.setItemLayout(e,n[e])}))}}))}function ZO(e){return!isNaN(e[0])&&!isNaN(e[1])}function JO(e){return[e.cx,e.cy]}function ek(e){var t=e.polar;if(t){x.isArray(t)||(t=[t]);var n=[];x.each(t,(function(t,r){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),e.radar=e.radar||[],x.isArray(e.radar)||(e.radar=[e.radar]),e.radar.push(t)):n.push(t)})),e.polar=n}x.each(e.series,(function(e){e&&"radar"===e.type&&e.polarIndex&&(e.radarIndex=e.polarIndex)}))}var tk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.render=function(e,t,n){var r=e.coordinateSystem,i=this.group,o=e.getData(),s=this._data;function u(e,t){var n=e.getItemVisual(t,"symbol")||"circle";if("none"!==n){var r=Hv(e.getItemVisual(t,"symbolSize")),i=Vv(n,-1,-1,2,2),o=e.getItemVisual(t,"symbolRotate")||0;return i.attr({style:{strokeNoScale:!0},z2:100,scaleX:r[0]/2,scaleY:r[1]/2,rotation:o*Math.PI/180||0}),i}}function c(t,n,r,i,o,s){r.removeAll();for(var c=0;c<n.length-1;c++){var l=u(i,o);l&&(l.__dimIdx=c,t[c]?(l.setPosition(t[c]),a[s?"initProps":"updateProps"](l,{x:n[c][0],y:n[c][1]},e,o)):l.setPosition(n[c]),r.add(l))}}function l(e){return x.map(e,(function(e){return[r.cx,r.cy]}))}o.diff(s).add((function(t){var n=o.getItemLayout(t);if(n){var r=new Op,i=new jp,a={shape:{points:n}};r.shape.points=l(n),i.shape.points=l(n),zs(r,a,e,t),zs(i,a,e,t);var s=new ur,u=new ur;s.add(i),s.add(r),s.add(u),c(i.shape.points,n,u,o,t,!0),o.setItemGraphicEl(t,s)}})).update((function(t,n){var r=s.getItemGraphicEl(n),i=r.childAt(0),a=r.childAt(1),u=r.childAt(2),l={shape:{points:o.getItemLayout(t)}};l.shape.points&&(c(i.shape.points,l.shape.points,u,o,t,!1),Gs(a),Gs(i),Us(i,l,e),Us(a,l,e),o.setItemGraphicEl(t,r))})).remove((function(e){i.remove(s.getItemGraphicEl(e))})).execute(),o.eachItemGraphicEl((function(e,t){var n=o.getItemModel(t),r=e.childAt(0),a=e.childAt(1),s=e.childAt(2),u=o.getItemVisual(t,"style"),c=u.fill;i.add(e),r.useStyle(x.defaults(n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:c})),Ms(r,n,"lineStyle"),Ms(a,n,"areaStyle");var l=n.getModel("areaStyle"),f=l.isEmpty()&&l.parentModel.isEmpty();a.ignore=f,x.each(["emphasis","select","blur"],(function(e){var t=n.getModel([e,"areaStyle"]),r=t.isEmpty()&&t.parentModel.isEmpty();a.ensureState(e).ignore=r&&f})),a.useStyle(x.defaults(l.getAreaStyle(),{fill:c,opacity:.7,decal:u.decal}));var d=n.getModel("emphasis"),p=d.getModel("itemStyle").getItemStyle();s.eachChild((function(e){if(e instanceof ua){var r=e.style;e.useStyle(x.extend({image:r.image,x:r.x,y:r.y,width:r.width,height:r.height},u))}else e.useStyle(u),e.setColor(c),e.style.strokeNoScale=!0;e.ensureState("emphasis").style=x.clone(p);var i=o.getStore().get(o.getDimensionIndex(e.__dimIdx),t);(null==i||isNaN(i))&&(i=""),Xs(e,Qs(n),{labelFetcher:o.hostModel,labelDataIndex:t,labelDimIndex:e.__dimIdx,defaultText:i,inheritColor:c,defaultOpacity:u.opacity})})),Ts(e,d.get("focus"),d.get("blurScope"),d.get("disabled"))})),this._data=o},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(Dh),nk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return y(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new YS(x.bind(this.getData,this),x.bind(this.getRawData,this))},t.prototype.getInitialData=function(e,t){return GS(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.coordinateSystem.getIndicatorAxes(),o=this.getData().getName(e),a=""===o?this.name:o,s=fd(this,e);return rd("section",{header:a,sortBlocks:!0,blocks:x.map(i,(function(t){var n=r.get(r.mapDimension(t.dim),e);return rd("nameValue",{markerType:"subItem",markerColor:s,name:t.name,value:n,sortParam:n})}))})},t.prototype.getTooltipPosition=function(e){if(null!=e)for(var t=this.getData(),n=this.coordinateSystem,r=t.getValues(x.map(n.dimensions,(function(e){return t.mapDimension(e)})),e),i=0,o=r.length;i<o;i++)if(!isNaN(r[i])){var a=n.getIndicatorAxes();return n.coordToPoint(a[i].dataToCoord(r[i]),i)}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(Ed),rk=oO.value;function ik(e,t){return x.defaults({show:t},e)}var ok=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),t=this.get("splitNumber"),n=this.get("scale"),r=this.get("axisLine"),i=this.get("axisTick"),o=this.get("axisLabel"),a=this.get("axisName"),s=this.get(["axisName","show"]),u=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),l=this.get("triggerEvent"),f=x.map(this.get("indicator")||[],(function(f){null!=f.max&&f.max>0&&!f.min?f.min=0:null!=f.min&&f.min<0&&!f.max&&(f.max=0);var d=a;null!=f.color&&(d=x.defaults({color:f.color},a));var p=x.merge(x.clone(f),{boundaryGap:e,splitNumber:t,scale:n,axisLine:r,axisTick:i,axisLabel:o,name:f.text,showName:s,nameLocation:"end",nameGap:c,nameTextStyle:d,triggerEvent:l},!1);if(x.isString(u)){var h=p.name;p.name=u.replace("{value}",null!=h?h:"")}else x.isFunction(u)&&(p.name=u(p.name,p));var v=new _u(p,null,this.ecModel);return x.mixin(v,zb.prototype),v.mainType="radar",v.componentIndex=this.componentIndex,v}),this);this._indicatorModels=f},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:x.merge({lineStyle:{color:"#bbb"}},rk.axisLine),axisLabel:ik(rk.axisLabel,!1),axisTick:ik(rk.axisTick,!1),splitLine:ik(rk.splitLine,!0),splitArea:ik(rk.splitArea,!0),indicator:[]},t}(Ic),ak=["axisLine","axisTickLabel","axisName"],sk=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.render=function(e,t,n){this.group.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes(),r=x.map(n,(function(e){var n=e.model.get("showName")?e.name:"";return new AO(e.model,{axisName:n,position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}));x.each(r,(function(e){x.each(ak,e.add,e),this.group.add(e.getGroup())}),this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(n.length){var r=e.get("shape"),i=e.getModel("splitLine"),o=e.getModel("splitArea"),a=i.getModel("lineStyle"),s=o.getModel("areaStyle"),u=i.get("show"),c=o.get("show"),l=a.get("color"),f=s.get("color"),d=x.isArray(l)?l:[l],p=x.isArray(f)?f:[f],h=[],v=[];if("circle"===r)for(var g=n[0].getTicksCoords(),m=t.cx,y=t.cy,b=0;b<g.length;b++){if(u)h[T(h,d,b)].push(new Zd({shape:{cx:m,cy:y,r:g[b].coord}}));if(c&&b<g.length-1)v[T(v,p,b)].push(new xp({shape:{cx:m,cy:y,r0:g[b].coord,r:g[b+1].coord}}))}else{var w,_=x.map(n,(function(e,n){var r=e.getTicksCoords();return w=null==w?r.length-1:Math.min(r.length-1,w),x.map(r,(function(e){return t.coordToPoint(e.coord,n)}))})),S=[];for(b=0;b<=w;b++){for(var O=[],k=0;k<n.length;k++)O.push(_[k][b]);if(O[0]&&O.push(O[0].slice()),u)h[T(h,d,b)].push(new jp({shape:{points:O}}));if(c&&S)v[T(v,p,b-1)].push(new Op({shape:{points:O.concat(S)}}));S=O.slice().reverse()}}var E=a.getLineStyle(),j=s.getAreaStyle();x.each(v,(function(e,t){this.group.add(uh(e,{style:x.defaults({stroke:"none",fill:p[t%p.length]},j),silent:!0}))}),this),x.each(h,(function(e,t){this.group.add(uh(e,{style:x.defaults({fill:"none",stroke:d[t%d.length]},E),silent:!0}))}),this)}function T(e,t,n){var r=n%t.length;return e[r]=e[r]||[],r}},t.type="radar",t}(Td),uk=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.type="value",i.angle=0,i.name="",i}return y(t,e),t}(bx),ck=function(){function e(e,t,n){this.dimensions=[],this._model=e,this._indicatorAxes=Object(x.map)(e.getIndicatorModels(),(function(e,t){var n="indicator_"+t,r=new uk(n,new Ky);return r.name=e.get("name"),r.model=e,e.axis=r,this.dimensions.push(n),r}),this),this.resize(e,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},e.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t].angle;return[this.cx+e*Math.cos(n),this.cy-e*Math.sin(n)]},e.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=Math.sqrt(t*t+n*n);t/=r,n/=r;for(var i,o=Math.atan2(-n,t),a=1/0,s=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],l=Math.abs(o-c.angle);l<a&&(i=c,s=u,a=l)}return[s,+(i&&i.coordToData(r))]},e.prototype.resize=function(e,t){var n=e.get("center"),r=t.getWidth(),i=t.getHeight(),o=Math.min(r,i)/2;this.cx=wr(n[0],r),this.cy=wr(n[1],i),this.startAngle=e.get("startAngle")*Math.PI/180;var a=e.get("radius");(Object(x.isString)(a)||Object(x.isNumber)(a))&&(a=[0,a]),this.r0=wr(a[0],o),this.r=wr(a[1],o),Object(x.each)(this._indicatorAxes,(function(e,t){e.setExtent(this.r0,this.r);var n=this.startAngle+t*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),e.angle=n}),this)},e.prototype.update=function(e,t){var n=this._indicatorAxes,r=this._model;Object(x.each)(n,(function(e){e.scale.setExtent(1/0,-1/0)})),e.eachSeriesByType("radar",(function(t,i){if("radar"===t.get("coordinateSystem")&&e.getComponent("radar",t.get("radarIndex"))===r){var o=t.getData();Object(x.each)(n,(function(e){e.scale.unionExtentFromData(o,o.mapDimension(e.dim))}))}}),this);var i=r.get("splitNumber"),o=new Ky;o.setExtent(0,i),o.setInterval(1),Object(x.each)(n,(function(e,t){yO(e.scale,e.model,o)}))},e.prototype.convertToPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(e,t,n){return console.warn("Not implemented."),null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.create=function(t,n){var r=[];return t.eachComponent("radar",(function(i){var o=new e(i,t,n);r.push(o),i.coordinateSystem=o})),t.eachSeriesByType("radar",(function(e){"radar"===e.get("coordinateSystem")&&(e.coordinateSystem=r[e.get("radarIndex")||0])})),r},e.dimensions=[],e}();function lk(e){e.registerCoordinateSystem("radar",ck),e.registerComponentModel(ok),e.registerComponentView(sk),e.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each((function(e){t.setItemVisual(e,"legendIcon","roundRect")})),t.setVisual("legendIcon","roundRect")}})}var fk="\0_ec_interaction_mutex";function dk(e,t){return!!pk(e)[t]}function pk(e){return e[fk]||(e[fk]={})}function hk(e,t,n,r,i){e.pointerChecker&&e.pointerChecker(r,i.originX,i.originY)&&(ve(r.event),vk(e,t,n,r,i))}function vk(e,t,n,r,i){i.isAvailableBehavior=Object(x.bind)(gk,null,n,r),e.trigger(t,i)}function gk(e,t,n){var r=n[e];return!e||r&&(!Object(x.isString)(r)||t.event[r+"Key"])}Mm({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},x.noop);var mk=function(e){function t(t){var n=e.call(this)||this;n._zr=t;var r=Object(x.bind)(n._mousedownHandler,n),i=Object(x.bind)(n._mousemoveHandler,n),o=Object(x.bind)(n._mouseupHandler,n),a=Object(x.bind)(n._mousewheelHandler,n),s=Object(x.bind)(n._pinchHandler,n);return n.enable=function(e,n){this.disable(),this._opt=Object(x.defaults)(Object(x.clone)(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==e&&(e=!0),!0!==e&&"move"!==e&&"pan"!==e||(t.on("mousedown",r),t.on("mousemove",i),t.on("mouseup",o)),!0!==e&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",a),t.on("pinch",s))},n.disable=function(){t.off("mousedown",r),t.off("mousemove",i),t.off("mouseup",o),t.off("mousewheel",a),t.off("pinch",s)},n}return y(t,e),t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!ge(e)){for(var t=e.target;t;){if(t.draggable)return;t=t.__hostTarget||t.parent}var n=e.offsetX,r=e.offsetY;this.pointerChecker&&this.pointerChecker(e,n,r)&&(this._x=n,this._y=r,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(this._dragging&&gk("moveOnMouseMove",e,this._opt)&&"pinch"!==e.gestureEvent&&!dk(this._zr,"globalPan")){var t=e.offsetX,n=e.offsetY,r=this._x,i=this._y,o=t-r,a=n-i;this._x=t,this._y=n,this._opt.preventDefaultMouseMove&&ve(e.event),vk(this,"pan","moveOnMouseMove",e,{dx:o,dy:a,oldX:r,oldY:i,newX:t,newY:n,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){ge(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var t=gk("zoomOnMouseWheel",e,this._opt),n=gk("moveOnMouseWheel",e,this._opt),r=e.wheelDelta,i=Math.abs(r),o=e.offsetX,a=e.offsetY;if(0!==r&&(t||n)){if(t){var s=i>3?1.4:i>1?1.2:1.1;hk(this,"zoom","zoomOnMouseWheel",e,{scale:r>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(n){var u=Math.abs(r);hk(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:(r>0?1:-1)*(u>3?.4:u>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){dk(this._zr,"globalPan")||hk(this,"zoom",null,e,{scale:e.pinchScale>1?1.1:1/1.1,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})},t}(X);function yk(e,t,n){var r=e.target;r.x+=t,r.y+=n,r.dirty()}function bk(e,t,n,r){var i=e.target,o=e.zoomLimit,a=e.zoom=e.zoom||1;if(a*=t,o){var s=o.min||0,u=o.max||1/0;a=Math.max(Math.min(u,a),s)}var c=a/e.zoom;e.zoom=a,i.x-=(n-i.x)*(c-1),i.y-=(r-i.y)*(c-1),i.scaleX*=c,i.scaleY*=c,i.dirty()}var xk,wk={axisPointer:1,tooltip:1,brush:1};function _k(e,t,n){var r=t.getComponentByElement(e.topTarget),i=r&&r.coordinateSystem;return r&&r!==n&&!wk.hasOwnProperty(r.mainType)&&i&&i.model!==n}function Sk(e){Object(x.isString)(e)&&(e=(new DOMParser).parseFromString(e,"text/xml"));var t=e;for(9===t.nodeType&&(t=t.firstChild);"svg"!==t.nodeName.toLowerCase()||1!==t.nodeType;)t=t.nextSibling;return t}var Ok={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},kk=Object(x.keys)(Ok),Ek={"alignment-baseline":"textBaseline","stop-color":"stopColor"},jk=Object(x.keys)(Ek),Tk=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t=t||{};var n=Sk(e);this._defsUsePending=[];var r=new ur;this._root=r;var i=[],o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||t.width),s=parseFloat(n.getAttribute("height")||t.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),Rk(n,r,null,!0,!1);for(var u,c,l=n.firstChild;l;)this._parseNode(l,r,i,null,!1,!1),l=l.nextSibling;if(function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r[0].style[r[1]]=e[r[2]]}}(this._defs,this._defsUsePending),this._defsUsePending=[],o){var f=Fk(o);f.length>=4&&(u={x:parseFloat(f[0]||0),y:parseFloat(f[1]||0),width:parseFloat(f[2]),height:parseFloat(f[3])})}if(u&&null!=a&&null!=s&&(c=Hk(u,{x:0,y:0,width:a,height:s}),!t.ignoreViewBox)){var d=r;(r=new ur).add(d),d.scaleX=d.scaleY=c.scale,d.x=c.x,d.y=c.y}return t.ignoreRootClip||null==a||null==s||r.setClipPath(new ga({shape:{x:0,y:0,width:a,height:s}})),{root:r,width:a,height:s,viewBoxRect:u,viewBoxTransform:c,named:i}},e.prototype._parseNode=function(e,t,n,r,i,o){var a,s=e.nodeName.toLowerCase(),u=r;if("defs"===s&&(i=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=t;else{if(!i){var c=xk[s];if(c&&Object(x.hasOwn)(xk,s)){a=c.call(this,e,t);var l=e.getAttribute("name");if(l){var f={name:l,namedFrom:null,svgNodeTagLower:s,el:a};n.push(f),"g"===s&&(u=f)}else r&&n.push({name:r.name,namedFrom:r,svgNodeTagLower:s,el:a});t.add(a)}}var d=Ck[s];if(d&&Object(x.hasOwn)(Ck,s)){var p=d.call(this,e),h=e.getAttribute("id");h&&(this._defs[h]=p)}}if(a&&a.isGroup)for(var v=e.firstChild;v;)1===v.nodeType?this._parseNode(v,a,n,u,i,o):3===v.nodeType&&o&&this._parseText(v,a),v=v.nextSibling},e.prototype._parseText=function(e,t){var n=new ia({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Mk(t,n),Rk(e,n,this._defsUsePending,!1,!1),function(e,t){var n=t.__selfStyle;if(n){var r=n.textBaseline,i=r;r&&"auto"!==r?"baseline"===r?i="alphabetic":"before-edge"===r||"text-before-edge"===r?i="top":"after-edge"===r||"text-after-edge"===r?i="bottom":"central"!==r&&"mathematical"!==r||(i="middle"):i="alphabetic",e.style.textBaseline=i}var o=t.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),e.style.textAlign=s)}}(n,t);var r=n.style,i=r.fontSize;i&&i<9&&(r.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+"px",r.fontFamily||"sans-serif"].join(" ");r.font=o;var a=n.getBoundingRect();return this._textX+=a.width,t.add(n),n},e.internalField=void(xk={g:function(e,t){var n=new ur;return Mk(t,n),Rk(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new ga;return Mk(t,n),Rk(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(e,t){var n=new Zd;return Mk(t,n),Rk(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,t){var n=new Pp;return Mk(t,n),Rk(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(e,t){var n=new tp;return Mk(t,n),Rk(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(e,t){var n,r=e.getAttribute("points");r&&(n=Ik(r));var i=new Op({shape:{points:n||[]},silent:!0});return Mk(t,i),Rk(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var n,r=e.getAttribute("points");r&&(n=Ik(r));var i=new jp({shape:{points:n||[]},silent:!0});return Mk(t,i),Rk(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var n=new ua;return Mk(t,n),Rk(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute("x")||"0",r=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(r)+parseFloat(o);var a=new ur;return Mk(t,a),Rk(e,a,this._defsUsePending,!1,!0),a},tspan:function(e,t){var n=e.getAttribute("x"),r=e.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=r&&(this._textY=parseFloat(r));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",a=new ur;return Mk(t,a),Rk(e,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),a},path:function(e,t){var n=Kd(e.getAttribute("d")||"");return Mk(t,n),Rk(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),e}(),Ck={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),n=parseInt(e.getAttribute("y1")||"0",10),r=parseInt(e.getAttribute("x2")||"10",10),i=parseInt(e.getAttribute("y2")||"0",10),o=new Vp(t,n,r,i);return Ak(e,o),Pk(e,o),o},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),n=parseInt(e.getAttribute("cy")||"0",10),r=parseInt(e.getAttribute("r")||"0",10),i=new Hp(t,n,r);return Ak(e,i),Pk(e,i),i}};function Ak(e,t){"userSpaceOnUse"===e.getAttribute("gradientUnits")&&(t.global=!0)}function Pk(e,t){for(var n=e.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var r=n.getAttribute("offset"),i=void 0;i=r&&r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var o={};Vk(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:a})}n=n.nextSibling}}function Mk(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Object(x.defaults)(t.__inheritedStyle,e.__inheritedStyle))}function Ik(e){for(var t=Fk(e),n=[],r=0;r<t.length;r+=2){var i=parseFloat(t[r]),o=parseFloat(t[r+1]);n.push([i,o])}return n}function Rk(e,t,n,r,i){var o=t,a=o.__inheritedStyle=o.__inheritedStyle||{},s={};1===e.nodeType&&(function(e,t){var n=e.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=[],i=null;n.replace(Bk,(function(e,t,n){return r.push(t,n),""}));for(var o=r.length-1;o>0;o-=2){var a=r[o],s=r[o-1],u=Fk(a);switch(i=i||[1,0,0,1,0,0],s){case"translate":Oe(i,i,[parseFloat(u[0]),parseFloat(u[1]||"0")]);break;case"scale":Ee(i,i,[parseFloat(u[0]),parseFloat(u[1]||u[0])]);break;case"rotate":ke(i,i,-parseFloat(u[0])*Uk);break;case"skewX":var c=Math.tan(parseFloat(u[0])*Uk);Se(i,[1,0,c,1,0,0],i);break;case"skewY":var l=Math.tan(parseFloat(u[0])*Uk);Se(i,[1,l,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(u[0]),i[1]=parseFloat(u[1]),i[2]=parseFloat(u[2]),i[3]=parseFloat(u[3]),i[4]=parseFloat(u[4]),i[5]=parseFloat(u[5])}}t.setLocalTransform(i)}}(e,t),Vk(e,a,s),r||function(e,t,n){for(var r=0;r<kk.length;r++){var i=kk[r];null!=(o=e.getAttribute(i))&&(t[Ok[i]]=o)}for(r=0;r<jk.length;r++){var o;i=jk[r];null!=(o=e.getAttribute(i))&&(n[Ek[i]]=o)}}(e,a,s)),o.style=o.style||{},null!=a.fill&&(o.style.fill=Lk(o,"fill",a.fill,n)),null!=a.stroke&&(o.style.stroke=Lk(o,"stroke",a.stroke,n)),Object(x.each)(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(e){null!=a[e]&&(o.style[e]=parseFloat(a[e]))})),Object(x.each)(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(e){null!=a[e]&&(o.style[e]=a[e])})),i&&(o.__selfStyle=s),a.lineDash&&(o.style.lineDash=Object(x.map)(Fk(a.lineDash),(function(e){return parseFloat(e)}))),"hidden"!==a.visibility&&"collapse"!==a.visibility||(o.invisible=!0),"none"===a.display&&(o.ignore=!0)}var Dk=/^url\(\s*#(.*?)\)/;function Lk(e,t,n,r){var i=n&&n.match(Dk);if(!i)return"none"===n&&(n=null),n;var o=Object(x.trim)(i[1]);r.push([e,t,o])}var Nk=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Fk(e){return e.match(Nk)||[]}var Bk=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Uk=Math.PI/180;var zk=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Vk(e,t,n){var r,i=e.getAttribute("style");if(i)for(zk.lastIndex=0;null!=(r=zk.exec(i));){var o=r[1],a=Object(x.hasOwn)(Ok,o)?Ok[o]:null;a&&(t[a]=r[2]);var s=Object(x.hasOwn)(Ek,o)?Ek[o]:null;s&&(n[s]=r[2])}}function Hk(e,t){var n=t.width/e.width,r=t.height/e.height,i=Math.min(n,r);return{scale:i,x:-(e.x+e.width/2)*i+(t.x+t.width/2),y:-(e.y+e.height/2)*i+(t.y+t.height/2)}}var Wk=Object(x.createHashMap)(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),qk=function(){function e(e,t){this.type="geoSVG",this._usedGraphicMap=Object(x.createHashMap)(),this._freedGraphics=[],this._mapName=e,this._parsedXML=Sk(t)}return e.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=function(e){var t=[],n=Object(x.createHashMap)();return Object(x.each)(e,(function(e){if(null==e.namedFrom){var r=new rx(e.name,e.el);t.push(r),n.set(e.name,r)}})),{regions:t,regionsMap:n}}(e.named),n=t.regions,r=t.regionsMap;this._regions=n,this._regionsMap=r}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(e){var t,n,r,i;try{n=(t=e&&(r=e,i={ignoreViewBox:!0,ignoreRootClip:!0},(new Tk).parse(r,i))||{}).root,Object(x.assert)(null!=n)}catch(e){throw new Error("Invalid svg format\n"+e.message)}var o=new ur;o.add(n),o.isGeoSVGGraphicRoot=!0;var a=t.width,s=t.height,u=t.viewBoxRect,c=this._boundingRect;if(!c){var l=void 0,f=void 0,d=void 0,p=void 0;if(null!=a?(l=0,d=a):u&&(l=u.x,d=u.width),null!=s?(f=0,p=s):u&&(f=u.y,p=u.height),null==l||null==f){var h=n.getBoundingRect();null==l&&(l=h.x,d=h.width),null==f&&(f=h.y,p=h.height)}c=this._boundingRect=new Fe(l,f,d,p)}if(u){var v=Hk(u,c);n.scaleX=n.scaleY=v.scale,n.x=v.x,n.y=v.y}o.setClipPath(new ga({shape:c.plain()}));var g=[];return Object(x.each)(t.named,(function(e){var t;null!=Wk.get(e.svgNodeTagLower)&&(g.push(e),(t=e.el).silent=!1,t.isGroup&&t.traverse((function(e){e.silent=!1})))})),{root:o,boundingRect:c,named:g}},e.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n),n)},e.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},e}();for(var Gk=[126,25],Yk="南海诸岛",Kk=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],$k=0;$k<Kk.length;$k++)for(var Xk=0;Xk<Kk[$k].length;Xk++)Kk[$k][Xk][0]/=10.5,Kk[$k][Xk][1]/=-14,Kk[$k][Xk][0]+=Gk[0],Kk[$k][Xk][1]+=Gk[1];var Qk={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};var Zk=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];var Jk=function(){function e(e,t,n){var r;this.type="geoJSON",this._parsedMap=Object(x.createHashMap)(),this._mapName=e,this._specialAreas=n,this._geoJSON=(r=t,Object(x.isString)(r)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r)}return e.prototype.load=function(e,t){t=t||"name";var n=this._parsedMap.get(t);if(!n){var r=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:r,boundingRect:eE(r)})}var i=Object(x.createHashMap)(),o=[];return Object(x.each)(n.regions,(function(t){var n=t.name;e&&Object(x.hasOwn)(e,n)&&(t=t.cloneShallow(n=e[n])),o.push(t),i.set(n,t)})),{regions:o,boundingRect:n.boundingRect||new Fe(0,0,0,0),regionsMap:i}},e.prototype._parseToRegions=function(e){var t,n=this._mapName,r=this._geoJSON;try{t=r?ax(r,e):[]}catch(e){throw new Error("Invalid geoJson format\n"+e.message)}return function(e,t){if("china"===e){for(var n=0;n<t.length;n++)if(t[n].name===Yk)return;t.push(new nx(Yk,x.map(Kk,(function(e){return{type:"polygon",exterior:e}})),Gk))}}(n,t),Object(x.each)(t,(function(e){var t=e.name;!function(e,t){if("china"===e){var n=Qk[t.name];if(n){var r=t.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/14,t.setCenter(r)}}}(n,e),function(e,t){"china"===e&&"台湾"===t.name&&t.geometries.push({type:"polygon",exterior:Zk[0]})}(n,e);var r=this._specialAreas&&this._specialAreas[t];r&&e.transformTo(r.left,r.top,r.width,r.height)}),this),t},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function eE(e){for(var t,n=0;n<e.length;n++){var r=e[n].getBoundingRect();(t=t||r.clone()).union(r)}return t}var tE=Object(x.createHashMap)(),nE={registerMap:function(e,t,n){if(t.svg){var r=new qk(e,t.svg);tE.set(e,r)}else{var i=t.geoJson||t.geoJSON;i&&!t.features?n=t.specialAreas:i=t;r=new Jk(e,i,n);tE.set(e,r)}},getGeoResource:function(e){return tE.get(e)},getMapForUser:function(e){var t=tE.get(e);return t&&"geoJSON"===t.type&&t.getMapForUser()},load:function(e,t,n){var r=tE.get(e);if(r)return r.load(t,n)}},rE=["rect","circle","line","ellipse","polygon","polyline","path"],iE=x.createHashMap(rE),oE=x.createHashMap(rE.concat(["g"])),aE=x.createHashMap(rE.concat(["g"])),sE=oi();function uE(e){var t=e.getItemStyle(),n=e.get("areaColor");return null!=n&&(t.fill=n),t}function cE(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}function lE(e,t,n,r){var i=r.getModel("itemStyle"),o=r.getModel(["emphasis","itemStyle"]),a=r.getModel(["blur","itemStyle"]),s=r.getModel(["select","itemStyle"]),u=uE(i),c=uE(o),l=uE(s),f=uE(a),d=e.data;if(d){var p=d.getItemVisual(n,"style"),h=d.getItemVisual(n,"decal");e.isVisualEncodedByVisualMap&&p.fill&&(u.fill=p.fill),h&&(u.decal=xg(h,e.api))}t.setStyle(u),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=c,t.ensureState("select").style=l,t.ensureState("blur").style=f,fs(t)}function fE(e,t,n,r,i,o,a){var s=e.data,u=e.isGeo,c=s&&isNaN(s.get(s.mapDimension("value"),o)),l=s&&s.getItemLayout(o);if(u||c||l&&l.showLabel){var f=u?n:o,d=void 0;(!s||o>=0)&&(d=i);var p=a?{normal:{align:"center",verticalAlign:"middle"}}:null;Xs(t,Qs(r),{labelFetcher:d,labelDataIndex:f,defaultText:n},p);var h=t.getTextContent();if(h&&(sE(h).ignore=h.ignore,t.textConfig&&a)){var v=t.getBoundingRect().clone();t.textConfig.layoutRect=v,t.textConfig.position=[(a[0]-v.x)/v.width*100+"%",(a[1]-v.y)/v.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function dE(e,t,n,r,i,o){e.data?e.data.setItemGraphicEl(o,t):Ia(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function pE(e,t,n,r,i){e.data||Oh({el:t,componentModel:i,itemName:n,itemTooltipOption:r.get("tooltip")})}function hE(e,t,n,r,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var o=r.getModel("emphasis"),a=o.get("focus");return Ts(t,a,o.get("blurScope"),o.get("disabled")),e.isGeo&&function(e,t,n){var r=Ia(e);r.componentMainType=t.mainType,r.componentIndex=t.componentIndex,r.componentHighDownName=n}(t,i,n),a}function vE(e,t,n){var r,i=[];function o(){r=[]}function a(){r.length&&(i.push(r),r=[])}var s=t({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(e,t){isFinite(e)&&isFinite(t)&&r.push([e,t])},sphere:function(){}});return!n&&s.polygonStart(),x.each(e,(function(e){s.lineStart();for(var t=0;t<e.length;t++)s.point(e[t][0],e[t][1]);s.lineEnd()})),!n&&s.polygonEnd(),i}var gE=function(){function e(e){var t=new ur;this.uid=Ou("ec_map_draw"),this._controller=new mk(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new ur),t.add(this._svgGroup=new ur)}return e.prototype.draw=function(e,t,n,r,i){var o="geo"===e.mainType,a=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},(function(t){a||t.getHostGeoModel()!==e||(a=t.getData())}));var s=e.coordinateSystem,u=this._regionsGroup,c=this.group,l=s.getTransformInfo(),f=l.raw,d=l.roam;!u.childAt(0)||i?(c.x=d.x,c.y=d.y,c.scaleX=d.scaleX,c.scaleY=d.scaleY,c.dirty()):Us(c,d,e);var p=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,h={api:n,geo:s,mapOrGeoModel:e,data:a,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:f};"geoJSON"===s.resourceType?this._buildGeoJSON(h):"geoSVG"===s.resourceType&&this._buildSVG(h),this._updateController(e,t,n),this._updateMapSelectHandler(e,u,n,r)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=x.createHashMap(),n=x.createHashMap(),r=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,a=e.data,s=e.geo.projection,u=s&&s.stream;function c(e,t){return t&&(e=t(e)),e&&[e[0]*i.scaleX+i.x,e[1]*i.scaleY+i.y]}function l(e){for(var t=[],n=!u&&s&&s.project,r=0;r<e.length;++r){var i=c(e[r],n);i&&t.push(i)}return t}function f(e){return{shape:{points:l(e)}}}r.removeAll(),x.each(e.geo.regions,(function(i){var l=i.name,d=t.get(l),p=n.get(l)||{},h=p.dataIdx,v=p.regionModel;d||(d=t.set(l,new ur),r.add(d),h=a?a.indexOfName(l):null,v=e.isGeo?o.getRegionModel(l):a?a.getItemModel(h):null,n.set(l,{dataIdx:h,regionModel:v}));var g=[],m=[];x.each(i.geometries,(function(e){if("polygon"===e.type){var t=[e.exterior].concat(e.interiors||[]);u&&(t=vE(t,u)),x.each(t,(function(e){g.push(new Op(f(e)))}))}else{var n=e.points;u&&(n=vE(n,u,!0)),x.each(n,(function(e){m.push(new jp(f(e)))}))}}));var y=c(i.getCenter(),s&&s.project);function b(t,n){if(t.length){var r=new Up({culling:!0,segmentIgnoreThreshold:1,shape:{paths:t}});d.add(r),lE(e,r,h,v),fE(e,r,l,v,o,h,y),n&&(cE(r),x.each(r.states,cE))}}b(g),b(m,!0)})),t.each((function(t,r){var i=n.get(r),a=i.dataIdx,s=i.regionModel;dE(e,t,r,s,o,a),pE(e,t,r,s,o),hE(e,t,r,s,o)}),this)},e.prototype._buildSVG=function(e){var t=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var r=this._svgDispatcherMap=x.createHashMap(),i=!1;x.each(this._svgGraphicRecord.named,(function(t){var n=t.name,o=e.mapOrGeoModel,a=e.data,s=t.svgNodeTagLower,u=t.el,c=a?a.indexOfName(n):null,l=o.getRegionModel(n);(null!=iE.get(s)&&u instanceof Ji&&lE(e,u,c,l),u instanceof Ji&&(u.culling=!0),u.z2EmphasisLift=0,t.namedFrom)||(null!=aE.get(s)&&fE(e,u,n,l,o,c,null),dE(e,u,n,l,o,c),pE(e,u,n,l,o),null!=oE.get(s)&&("self"===hE(e,u,n,l,o)&&(i=!0),(r.get(n)||r.set(n,[])).push(u)))}),this),this._enableBlurEntireSVG(i,e)},e.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var n=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse((function(e){if(!e.isGroup){fs(e);var t=e.ensureState("blur").style||{};null==t.opacity&&null!=n&&(t.opacity=n),e.ensureState("emphasis")}}))}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(e,t){if(null==e)return[];var n=t.coordinateSystem;if("geoJSON"===n.resourceType){var r=this._regionsGroupByName;if(r){var i=r.get(e);return i?[i]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},e.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},e.prototype._useSVG=function(e){var t=nE.getGeoResource(e);if(t&&"geoSVG"===t.type){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},e.prototype._freeSVG=function(){var e=this._svgMapName;if(null!=e){var t=nE.getGeoResource(e);t&&"geoSVG"===t.type&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(e,t,n){var r=e.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=r.getZoom(),i.enable(e.get("roam")||!1);var a=e.mainType;function s(){var t={type:"geoRoam",componentType:a};return t[a+"Id"]=e.id,t}i.off("pan").on("pan",(function(e){this._mouseDownFlag=!1,yk(o,e.dx,e.dy),n.dispatchAction(x.extend(s(),{dx:e.dx,dy:e.dy,animation:{duration:0}}))}),this),i.off("zoom").on("zoom",(function(e){this._mouseDownFlag=!1,bk(o,e.scale,e.originX,e.originY),n.dispatchAction(x.extend(s(),{zoom:e.scale,originX:e.originX,originY:e.originY,animation:{duration:0}}))}),this),i.setPointerChecker((function(t,i,o){return r.containPoint([i,o])&&!_k(t,n,e)}))},e.prototype.resetForLabelLayout=function(){this.group.traverse((function(e){var t=e.getTextContent();t&&(t.ignore=sE(t).ignore)}))},e.prototype._updateMapSelectHandler=function(e,t,n,r){var i=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",(function(){i._mouseDownFlag=!0})),t.on("click",(function(e){i._mouseDownFlag&&(i._mouseDownFlag=!1)})))},e}(),mE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.render=function(e,t,n,r){if(!r||"mapToggleSelect"!==r.type||r.from!==this.uid){var i=this.group;if(i.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&r&&"geoRoam"===r.type&&this._mapDraw.resetForLabelLayout(),r&&"geoRoam"===r.type&&"series"===r.componentType&&r.seriesId===e.id)(o=this._mapDraw)&&i.add(o.group);else if(e.needsDrawMap){var o=this._mapDraw||new gE(n);i.add(o.group),o.draw(e,t,n,this,r),this._mapDraw=o}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,n)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,t,n){var r=e.originalData,i=this.group;r.each(r.mapDimension("value"),(function(t,n){if(!isNaN(t)){var o=r.getItemLayout(n);if(o&&o.point){var a=o.point,s=o.offset,u=new Zd({style:{fill:e.getData().getVisual("style").fill},shape:{cx:a[0]+9*s,cy:a[1],r:3},silent:!0,z2:8+(s?0:Wa+1)});if(!s){var c=e.mainSeries.getData(),l=r.getName(n),f=c.indexOfName(l),d=r.getItemModel(n),p=d.getModel("label"),h=c.getItemGraphicEl(f);Xs(u,Qs(d),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(f,n)}},defaultText:l}),u.disableLabelAnimation=!0,p.get("position")||u.setTextConfig({position:"bottom"}),h.onHoverStateChange=function(e){cs(u,e)}}i.add(u)}}}))},t.type="map",t}(Dh),yE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(e){if(null!=e){var t=this.getData().getName(e),n=this.coordinateSystem,r=n.getRegion(t);return r&&n.dataToPoint(r.getCenter())}},n}return y(t,e),t.prototype.getInitialData=function(e){for(var t=GS(this,{coordDimensions:["value"],encodeDefaulter:x.curry($c,this)}),n=x.createHashMap(),r=[],i=0,o=t.count();i<o;i++){var a=t.getName(i);n.set(a,!0)}var s=nE.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return x.each(s.regions,(function(e){var t=e.name;n.get(t)||r.push(t)})),t.appendValues([],r),t},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return null!=e?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var t=this.getData();return t.get(t.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},t.prototype.formatTooltip=function(e,t,n){for(var r=this.getData(),i=this.getRawValue(e),o=r.getName(e),a=this.seriesGroup,s=[],u=0;u<a.length;u++){var c=a[u].originalData.indexOfName(o),l=r.mapDimension("value");isNaN(a[u].originalData.get(l,c))||s.push(a[u].name)}return rd("section",{header:s.join(", "),noHeader:!s.length,blocks:[rd("nameValue",{name:o,value:i})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var t=e.icon||"roundRect",n=Vv(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return n.setStyle(e.itemStyle),n.style.stroke="none",t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(Ed);function bE(e){var t={};e.eachSeriesByType("map",(function(e){var n=e.getHostGeoModel(),r=n?"o"+n.id:"i"+e.getMapType();(t[r]=t[r]||[]).push(e)})),x.each(t,(function(e,t){for(var n,r,i,o=(n=x.map(e,(function(e){return e.getData()})),r=e[0].get("mapValueCalculation"),i={},x.each(n,(function(e){e.each(e.mapDimension("value"),(function(t,n){var r="ec-"+e.getName(n);i[r]=i[r]||[],isNaN(t)||i[r].push(t)}))})),n[0].map(n[0].mapDimension("value"),(function(e,t){for(var o,a="ec-"+n[0].getName(t),s=0,u=1/0,c=-1/0,l=i[a].length,f=0;f<l;f++)u=Math.min(u,i[a][f]),c=Math.max(c,i[a][f]),s+=i[a][f];return o="min"===r?u:"max"===r?c:"average"===r?s/l:s,0===l?NaN:o}))),a=0;a<e.length;a++)e[a].originalData=e[a].getData();for(a=0;a<e.length;a++)e[a].seriesGroup=e,e[a].needsDrawMap=0===a&&!e[a].getHostGeoModel(),e[a].setData(o.cloneShallow()),e[a].mainSeries=e[0]}))}function xE(e){var t={};e.eachSeriesByType("map",(function(n){var r=n.getMapType();if(!n.getHostGeoModel()&&!t[r]){var i={};x.each(n.seriesGroup,(function(t){var n=t.coordinateSystem,r=t.originalData;t.get("showLegendSymbol")&&e.getComponent("legend")&&r.each(r.mapDimension("value"),(function(e,t){var o=r.getName(t),a=n.getRegion(o);if(a&&!isNaN(e)){var s=i[o]||0,u=n.dataToPoint(a.getCenter());i[o]=s+1,r.setItemLayout(t,{point:u,offset:s})}}))}));var o=n.getData();o.each((function(e){var t=o.getName(e),n=o.getItemLayout(e)||{};n.showLabel=!i[t],o.setItemLayout(e,n)})),t[r]=!0}}))}var wE=q;function _E(e){var t=e.seriesModel;return t?t.coordinateSystem:null}var SE=function(e){function t(t){var n=e.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new Un,n._rawTransformable=new Un,n.name=t,n}return y(t,e),t.prototype.setBoundingRect=function(e,t,n,r){return this._rect=new Fe(e,t,n,r),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,t,n,r){this._transformTo(e,t,n,r),this._viewRect=new Fe(e,t,n,r)},t.prototype._transformTo=function(e,t,n,r){var i=this.getBoundingRect(),o=this._rawTransformable;o.transform=i.calculateTransform(new Fe(e,t,n,r));var a=o.parent;o.parent=null,o.decomposeTransform(),o.parent=a,this._updateTransform()},t.prototype.setCenter=function(e,t){e&&(this._center=[wr(e[0],t.getWidth()),wr(e[1],t.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var t=this.zoomLimit;t&&(null!=t.max&&(e=Math.min(t.max,e)),null!=t.min&&(e=Math.max(t.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect();return[e.x+e.width/2,e.y+e.height/2]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),t=this._roamTransformable,n=this.getDefaultCenter(),r=this.getCenter(),i=this.getZoom();r=q([],r,e),n=q([],n,e),t.originX=r[0],t.originY=r[1],t.x=n[0]-r[0],t.y=n[1]-r[1],t.scaleX=t.scaleY=i,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,t=this._rawTransformable;t.parent=e,e.updateTransform(),t.updateTransform(),_e(this.transform||(this.transform=[]),t.transform||[1,0,0,1,0,0]),this._rawTransform=t.getLocalTransform(),this.invTransform=this.invTransform||[],je(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,t=this._roamTransformable,n=new Un;return n.transform=t.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,t,n){var r=t?this._rawTransform:this.transform;return n=n||[],r?wE(n,e,r):O(n,e)},t.prototype.pointToData=function(e){var t=this.invTransform;return t?wE([],e,t):[e[0],e[1]]},t.prototype.convertToPixel=function(e,t,n){var r=_E(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=_E(t);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(Un),OE={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},kE=["lng","lat"],EE=function(e){function t(t,n,r){var i=e.call(this,t)||this;i.dimensions=kE,i.type="geo",i._nameCoordMap=x.createHashMap(),i.map=n;var o,a=r.projection,s=nE.load(n,r.nameMap,r.nameProperty),u=nE.getGeoResource(n),c=(i.resourceType=u?u.type:null,i.regions=s.regions),l=OE[u.type];if(i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=a,a)for(var f=0;f<c.length;f++){var d=c[f].getBoundingRect(a);(o=o||d.clone()).union(d)}else o=s.boundingRect;return i.setBoundingRect(o.x,o.y,o.width,o.height),i.aspectScale=a?1:x.retrieve2(r.aspectScale,l.aspectScale),i._invertLongitute=!a&&l.invertLongitute,i}return y(t,e),t.prototype._transformTo=function(e,t,n,r){var i=this.getBoundingRect(),o=this._invertLongitute;i=i.clone(),o&&(i.y=-i.y-i.height);var a=this._rawTransformable;a.transform=i.calculateTransform(new Fe(e,t,n,r));var s=a.parent;a.parent=null,a.decomposeTransform(),a.parent=s,o&&(a.scaleY=-a.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var t=this.regions,n=0;n<t.length;n++){var r=t[n];if("geoJSON"===r.type&&r.contain(e))return t[n]}},t.prototype.addGeoCoord=function(e,t){this._nameCoordMap.set(e,t)},t.prototype.getGeoCoord=function(e){var t=this._regionsMap.get(e);return this._nameCoordMap.get(e)||t&&t.getCenter()},t.prototype.dataToPoint=function(e,t,n){if(x.isString(e)&&(e=this.getGeoCoord(e)),e){var r=this.projection;return r&&(e=r.project(e)),e&&this.projectedToPoint(e,t,n)}},t.prototype.pointToData=function(e){var t=this.projection;return t&&(e=t.unproject(e)),e&&this.pointToProjected(e)},t.prototype.pointToProjected=function(t){return e.prototype.pointToData.call(this,t)},t.prototype.projectedToPoint=function(t,n,r){return e.prototype.dataToPoint.call(this,t,n,r)},t.prototype.convertToPixel=function(e,t,n){var r=jE(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=jE(t);return r===this?r.pointToData(n):null},t}(SE);function jE(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",ci).models[0]||{}).coordinateSystem:null}x.mixin(EE,SE);var TE=EE;function CE(e,t){var n=e.get("boundingCoords");if(null!=n){var r=n[0],i=n[1];if(isFinite(r[0])&&isFinite(r[1])&&isFinite(i[0])&&isFinite(i[1])){var o=this.projection;if(o){var a=r[0],s=r[1],u=i[0],c=i[1];r=[1/0,1/0],i=[-1/0,-1/0];var l=function(e,t,n,a){for(var s=n-e,u=a-t,c=0;c<=100;c++){var l=c/100,f=o.project([e+s*l,t+u*l]);G(r,r,f),Y(i,i,f)}};l(a,s,u,s),l(u,s,u,c),l(u,c,a,c),l(a,c,u,s)}this.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1])}else 0}var f,d,p,h=this.getBoundingRect(),v=e.get("layoutCenter"),g=e.get("layoutSize"),m=t.getWidth(),y=t.getHeight(),b=h.width/h.height*this.aspectScale,x=!1;if(v&&g&&(f=[wr(v[0],m),wr(v[1],y)],d=wr(g,Math.min(m,y)),isNaN(f[0])||isNaN(f[1])||isNaN(d)||(x=!0)),x)p={},b>1?(p.width=d,p.height=d/b):(p.height=d,p.width=d*b),p.y=f[1]-p.height/2,p.x=f[0]-p.width/2;else{var w=e.getBoxLayoutParams();w.aspect=b,p=kc(w,{width:m,height:y})}this.setViewRect(p.x,p.y,p.width,p.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}var AE=new(function(){function e(){this.dimensions=kE}return e.prototype.create=function(e,t){var n=[];function r(e){return{nameProperty:e.get("nameProperty"),aspectScale:e.get("aspectScale"),projection:e.get("projection")}}e.eachComponent("geo",(function(e,i){var o=e.get("map"),a=new TE(o+i,o,x.extend({nameMap:e.get("nameMap")},r(e)));a.zoomLimit=e.get("scaleLimit"),n.push(a),e.coordinateSystem=a,a.model=e,a.resize=CE,a.resize(e,t)})),e.eachSeries((function(e){if("geo"===e.get("coordinateSystem")){var t=e.get("geoIndex")||0;e.coordinateSystem=n[t]}}));var i={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();i[t]=i[t]||[],i[t].push(e)}})),x.each(i,(function(e,i){var o=x.map(e,(function(e){return e.get("nameMap")})),a=new TE(i,i,x.extend({nameMap:x.mergeAll(o)},r(e[0])));a.zoomLimit=x.retrieve.apply(null,x.map(e,(function(e){return e.get("scaleLimit")}))),n.push(a),a.resize=CE,a.resize(e[0],t),x.each(e,(function(e){e.coordinateSystem=a,function(e,t){x.each(t.get("geoCoord"),(function(t,n){e.addGeoCoord(n,t)}))}(a,e)}))})),n},e.prototype.getFilledRegions=function(e,t,n,r){for(var i=(e||[]).slice(),o=x.createHashMap(),a=0;a<i.length;a++)o.set(i[a].name,i[a]);var s=nE.load(t,n,r);return x.each(s.regions,(function(e){var t=e.name;!o.get(t)&&i.push({name:t})})),i},e}()),PE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.init=function(e,t,n){var r=nE.getGeoResource(e.map);if(r&&"geoJSON"===r.type){var i=e.itemStyle=e.itemStyle||{};"color"in i||(i.color="#eee")}this.mergeDefaultAndTheme(e,n),Kr(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,t=this.option;t.regions=AE.getFilledRegions(t.regions,t.map,t.nameMap,t.nameProperty);var n={};this._optionModelMap=x.reduce(t.regions||[],(function(t,r){var i=r.name;return i&&(t.set(i,new _u(r,e,e.ecModel)),r.selected&&(n[i]=!0)),t}),x.createHashMap()),t.selectedMap||(t.selectedMap=n)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new _u(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,t){var n=this.getRegionModel(e),r="normal"===t?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),i={name:e};return x.isFunction(r)?(i.status=t,r(i)):x.isString(r)?r.replace("{a}",null!=e?e:""):void 0},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var t=this.option,n=t.selectedMode;n&&("multiple"!==n&&(t.selectedMap=null),(t.selectedMap||(t.selectedMap={}))[e]=!0)},t.prototype.unSelect=function(e){var t=this.option.selectedMap;t&&(t[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var t=this.option.selectedMap;return!(!t||!t[e])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(Ic);function ME(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function IE(e,t,n,r){var i=e.getZoom(),o=e.getCenter(),a=t.zoom,s=e.projectedToPoint?e.projectedToPoint(o):e.dataToPoint(o);if(null!=t.dx&&null!=t.dy&&(s[0]-=t.dx,s[1]-=t.dy,e.setCenter(ME(e,s),r)),null!=a){if(n){var u=n.min||0,c=n.max||1/0;a=Math.max(Math.min(i*a,c),u)/i}e.scaleX*=a,e.scaleY*=a;var l=(t.originX-e.x)*(a-1),f=(t.originY-e.y)*(a-1);e.x-=l,e.y-=f,e.updateTransform(),e.setCenter(ME(e,s),r),e.setZoom(a*i)}return{center:e.getCenter(),zoom:e.getZoom()}}var RE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.focusBlurEnabled=!0,n}return y(t,e),t.prototype.init=function(e,t){this._api=t},t.prototype.render=function(e,t,n,r){if(this._model=e,!e.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new gE(n));var i=this._mapDraw;i.draw(e,t,n,this,r),i.group.on("click",this._handleRegionClick,this),i.group.silent=e.get("silent"),this.group.add(i.group),this.updateSelectStatus(e,t,n)},t.prototype._handleRegionClick=function(e){var t;Cv(e.target,(function(e){return null!=(t=Ia(e).eventData)}),!0),t&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:t.name})},t.prototype.updateSelectStatus=function(e,t,n){var r=this;this._mapDraw.group.traverse((function(e){var t=Ia(e).eventData;if(t)return r._model.isSelected(t.name)?n.enterSelect(e):n.leaveSelect(e),!0}))},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(Td);function DE(e,t,n){nE.registerMap(e,t,n)}function LE(e){function t(t,n){n.update="geo:updateSelectStatus",e.registerAction(n,(function(e,n){var r={},i=[];return n.eachComponent({mainType:"geo",query:e},(function(n){n[t](e.name);var o=n.coordinateSystem;Object(x.each)(o.regions,(function(e){r[e.name]=n.isSelected(e.name)||!1}));var a=[];Object(x.each)(r,(function(e,t){r[t]&&a.push(t)})),i.push({geoIndex:n.componentIndex,name:a})})),{selected:r,allSelected:i,name:e.name}}))}e.registerCoordinateSystem("geo",AE),e.registerComponentModel(PE),e.registerComponentView(RE),e.registerImpl("registerMap",DE),e.registerImpl("getMap",(function(e){return nE.getMapForUser(e)})),t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(e,t,n){var r=e.componentType||"series";t.eachComponent({mainType:r,query:e},(function(t){var i=t.coordinateSystem;if("geo"===i.type){var o=IE(i,e,t.get("scaleLimit"),n);t.setCenter&&t.setCenter(o.center),t.setZoom&&t.setZoom(o.zoom),"series"===r&&Object(x.each)(t.seriesGroup,(function(e){e.setCenter(o.center),e.setZoom(o.zoom)}))}}))}))}function NE(e,t){var n=e.isExpand?e.children:[],r=e.parentNode.children,i=e.hierNode.i?r[e.hierNode.i-1]:null;if(n.length){!function(e){var t=e.children,n=t.length,r=0,i=0;for(;--n>=0;){var o=t[n];o.hierNode.prelim+=r,o.hierNode.modifier+=r,i+=o.hierNode.change,r+=o.hierNode.shift+i}}(e);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-o):e.hierNode.prelim=o}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=function(e,t,n,r){if(t){for(var i=e,o=e,a=o.parentNode.children[0],s=t,u=i.hierNode.modifier,c=o.hierNode.modifier,l=a.hierNode.modifier,f=s.hierNode.modifier;s=zE(s),o=VE(o),s&&o;){i=zE(i),a=VE(a),i.hierNode.ancestor=e;var d=s.hierNode.prelim+f-o.hierNode.prelim-c+r(s,o);d>0&&(WE(HE(s,e,n),e,d),c+=d,u+=d),f+=s.hierNode.modifier,c+=o.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier}s&&!zE(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=f-u),o&&!VE(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=c-l,n=e)}return n}(e,i,e.parentNode.hierNode.defaultAncestor||r[0],t)}function FE(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function BE(e){return arguments.length?e:qE}function UE(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function zE(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function VE(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function HE(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function WE(e,t,n){var r=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=r,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=r}function qE(e,t){return e.parentNode===t.parentNode?1:2}var GE=function(){this.parentPoint=[],this.childPoints=[]},YE=function(e){function t(t){return e.call(this,t)||this}return y(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new GE},t.prototype.buildPath=function(e,t){var n=t.childPoints,r=n.length,i=t.parentPoint,o=n[0],a=n[r-1];if(1===r)return e.moveTo(i[0],i[1]),void e.lineTo(o[0],o[1]);var s=t.orient,u="TB"===s||"BT"===s?0:1,c=1-u,l=wr(t.forkPosition,1),f=[];f[u]=i[u],f[c]=i[c]+(a[c]-i[c])*l,e.moveTo(i[0],i[1]),e.lineTo(f[0],f[1]),e.moveTo(o[0],o[1]),f[u]=o[u],e.lineTo(f[0],f[1]),f[u]=a[u],e.lineTo(f[0],f[1]),e.lineTo(a[0],a[1]);for(var d=1;d<r-1;d++){var p=n[d];e.moveTo(p[0],p[1]),f[u]=p[u],e.lineTo(f[0],f[1])}},t}(ta);function KE(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function $E(e,t,n,r,i){var o=!n,a=e.tree.getNodeByDataIndex(t),s=a.getModel(),u=a.getVisual("style").fill,c=!1===a.isExpand&&0!==a.children.length?u:"#fff",l=e.tree.root,f=a.parentNode===l?a:a.parentNode||a,d=e.getItemGraphicEl(f.dataIndex),p=f.getLayout(),h=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:p,v=a.getLayout();o?((n=new E_(e,t,null,{symbolInnerColor:c,useNameLabel:!0})).x=h.x,n.y=h.y):n.updateData(e,t,null,{symbolInnerColor:c,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=v.rawX,n.__radialRawY=v.rawY,r.add(n),e.setItemGraphicEl(t,n),n.__oldX=n.x,n.__oldY=n.y,Us(n,{x:v.x,y:v.y},i);var g=n.getSymbolPath();if("radial"===i.get("layout")){var m=l.children[0],y=m.getLayout(),b=m.children.length,w=void 0,_=void 0;if(v.x===y.x&&!0===a.isExpand&&m.children.length){var S={x:(m.children[0].getLayout().x+m.children[b-1].getLayout().x)/2,y:(m.children[0].getLayout().y+m.children[b-1].getLayout().y)/2};(w=Math.atan2(S.y-y.y,S.x-y.x))<0&&(w=2*Math.PI+w),(_=S.x<y.x)&&(w-=Math.PI)}else(w=Math.atan2(v.y-y.y,v.x-y.x))<0&&(w=2*Math.PI+w),0===a.children.length||0!==a.children.length&&!1===a.isExpand?(_=v.x<y.x)&&(w-=Math.PI):(_=v.x>y.x)||(w-=Math.PI);var O=_?"left":"right",k=s.getModel("label"),E=k.get("rotate"),j=E*(Math.PI/180),T=g.getTextContent();T&&(g.setTextConfig({position:k.get("position")||O,rotation:null==E?-w:j,origin:"center"}),T.setStyle("verticalAlign","middle"))}var C=s.get(["emphasis","focus"]),A="relative"===C?x.concatArray(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===C?a.getAncestorsIndices():"descendant"===C?a.getDescendantIndices():null;A&&(Ia(n).focus=A),function(e,t,n,r,i,o,a,s){var u=t.getModel(),c=e.get("edgeShape"),l=e.get("layout"),f=e.getOrient(),d=e.get(["lineStyle","curveness"]),p=e.get("edgeForkPosition"),h=u.getModel("lineStyle").getLineStyle(),v=r.__edge;if("curve"===c)t.parentNode&&t.parentNode!==n&&(v||(v=r.__edge=new Lp({shape:JE(l,f,d,i,i)})),Us(v,{shape:JE(l,f,d,o,a)},e));else if("polyline"===c)if("orthogonal"===l){if(t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var g=t.children,m=[],y=0;y<g.length;y++){var b=g[y].getLayout();m.push([b.x,b.y])}v||(v=r.__edge=new YE({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:f,forkPosition:p}})),Us(v,{shape:{parentPoint:[a.x,a.y],childPoints:m}},e)}}else 0;v&&("polyline"!==c||t.isExpand)&&(v.useStyle(x.defaults({strokeNoScale:!0,fill:null},h)),Ms(v,u,"lineStyle"),fs(v),s.add(v))}(i,a,l,n,h,p,v,r),n.__edge&&(n.onHoverStateChange=function(t){if("blur"!==t){var r=a.parentNode&&e.getItemGraphicEl(a.parentNode.dataIndex);r&&r.hoverState===Ua||cs(n.__edge,t)}})}function XE(e,t,n,r,i){var o=QE(t.tree.root,e),a=o.source,s=o.sourceLayout,u=t.getItemGraphicEl(e.dataIndex);if(u){var c=t.getItemGraphicEl(a.dataIndex).__edge,l=u.__edge||(!1===a.isExpand||1===a.children.length?c:void 0),f=r.get("edgeShape"),d=r.get("layout"),p=r.get("orient"),h=r.get(["lineStyle","curveness"]);l&&("curve"===f?Hs(l,{shape:JE(d,p,h,s,s),style:{opacity:0}},r,{cb:function(){n.remove(l)},removeOpt:i}):"polyline"===f&&"orthogonal"===r.get("layout")&&Hs(l,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},r,{cb:function(){n.remove(l)},removeOpt:i}))}}function QE(e,t){for(var n,r=t.parentNode===e?t:t.parentNode||t;null==(n=r.getLayout());)r=r.parentNode===e?r:r.parentNode||r;return{source:r,sourceLayout:n}}function ZE(e,t,n,r,i){var o=e.tree.getNodeByDataIndex(t),a=QE(e.tree.root,o).sourceLayout,s={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};Hs(n,{x:a.x+1,y:a.y+1},i,{cb:function(){r.remove(n),e.setItemGraphicEl(t,null)},removeOpt:s}),n.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:s}),o.children.forEach((function(t){XE(t,e,r,i,s)})),XE(o,e,r,i,s)}function JE(e,t,n,r,i){var o,a,s,u,c,l,f,d;if("radial"===e){c=r.rawX,f=r.rawY,l=i.rawX,d=i.rawY;var p=UE(c,f),h=UE(c,f+(d-f)*n),v=UE(l,d+(f-d)*n),g=UE(l,d);return{x1:p.x||0,y1:p.y||0,x2:g.x||0,y2:g.y||0,cpx1:h.x||0,cpy1:h.y||0,cpx2:v.x||0,cpy2:v.y||0}}return c=r.x,f=r.y,l=i.x,d=i.y,"LR"!==t&&"RL"!==t||(o=c+(l-c)*n,a=f,s=l+(c-l)*n,u=d),"TB"!==t&&"BT"!==t||(o=c,a=f+(d-f)*n,s=l,u=d+(f-d)*n),{x1:c,y1:f,x2:l,y2:d,cpx1:o,cpy1:a,cpx2:s,cpy2:u}}var ej=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new ur,n}return y(t,e),t.prototype.init=function(e,t){this._controller=new mk(t.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,t,n){var r=e.getData(),i=e.layoutInfo,o=this._mainGroup;"radial"===e.get("layout")?(o.x=i.x+i.width/2,o.y=i.y+i.height/2):(o.x=i.x,o.y=i.y),this._updateViewCoordSys(e,n),this._updateController(e,t,n);var a=this._data;r.diff(a).add((function(t){KE(r,t)&&$E(r,t,null,o,e)})).update((function(t,n){var i=a.getItemGraphicEl(n);KE(r,t)?$E(r,t,i,o,e):i&&ZE(a,n,i,o,e)})).remove((function(t){var n=a.getItemGraphicEl(t);n&&ZE(a,t,n,o,e)})).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),!0===e.get("expandAndCollapse")&&r.eachItemGraphicEl((function(t,r){t.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:r})}))})),this._data=r},t.prototype._updateViewCoordSys=function(e,t){var n=e.getData(),r=[];n.each((function(e){var t=n.getItemLayout(e);!t||isNaN(t.x)||isNaN(t.y)||r.push([+t.x,+t.y])}));var i=[],o=[];uo(r,i,o);var a=this._min,s=this._max;o[0]-i[0]==0&&(i[0]=a?a[0]:i[0]-1,o[0]=s?s[0]:o[0]+1),o[1]-i[1]==0&&(i[1]=a?a[1]:i[1]-1,o[1]=s?s[1]:o[1]+1);var u=e.coordinateSystem=new SE;u.zoomLimit=e.get("scaleLimit"),u.setBoundingRect(i[0],i[1],o[0]-i[0],o[1]-i[1]),u.setCenter(e.get("center"),t),u.setZoom(e.get("zoom")),this.group.attr({x:u.x,y:u.y,scaleX:u.scaleX,scaleY:u.scaleY}),this._min=i,this._max=o},t.prototype._updateController=function(e,t,n){var r=this,i=this._controller,o=this._controllerHost,a=this.group;i.setPointerChecker((function(t,r,i){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(r,i)&&!_k(t,n,e)})),i.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(t){yk(o,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"treeRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){bk(o,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),r._updateNodeAndLinkScale(e),n.updateLabelLayout()}))},t.prototype._updateNodeAndLinkScale=function(e){var t=e.getData(),n=this._getNodeGlobalScale(e);t.eachItemGraphicEl((function(e,t){e.setSymbolScale(n)}))},t.prototype._getNodeGlobalScale=function(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=this._nodeScaleRatio,r=t.scaleX||1;return((t.getZoom()-1)*n+1)/r},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(Dh),tj=oi();function nj(e,t){if(tj(r=this).mainData===r){var n=Object(x.extend)({},tj(this).datas);n[this.dataType]=t,sj(t,n,e)}else uj(t,this.dataType,tj(this).mainData,e);var r;return t}function rj(e,t){return e.struct&&e.struct.update(),t}function ij(e,t){return Object(x.each)(tj(t).datas,(function(n,r){n!==t&&uj(n.cloneShallow(),r,t,e)})),t}function oj(e){var t=tj(this).mainData;return null==e||null==t?t:tj(t).datas[e]}function aj(){var e=tj(this).mainData;return null==e?[{data:e}]:Object(x.map)(Object(x.keys)(tj(e).datas),(function(t){return{type:t,data:tj(e).datas[t]}}))}function sj(e,t,n){tj(e).datas={},Object(x.each)(t,(function(t,r){uj(t,r,e,n)}))}function uj(e,t,n,r){tj(n).datas[t]=e,tj(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=oj,e.getLinkedDataAll=aj}var cj=function(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,sj(t,n,e),Object(x.each)(n,(function(n){Object(x.each)(t.TRANSFERABLE_METHODS,(function(t){n.wrapMethod(t,Object(x.curry)(nj,e))}))})),t.wrapMethod("cloneShallow",Object(x.curry)(ij,e)),Object(x.each)(t.CHANGABLE_METHODS,(function(n){t.wrapMethod(n,Object(x.curry)(rj,e))})),Object(x.assert)(n[t.dataType]===t)},lj=function(){function e(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(e,t,n){x.isFunction(e)&&(n=t,t=e,e=null),e=e||{},x.isString(e)&&(e={order:e});var r,i=e.order||"preorder",o=this[e.attr||"children"];"preorder"===i&&(r=t.call(n,this));for(var a=0;!r&&a<o.length;a++)o[a].eachNode(e,t,n);"postorder"===i&&t.call(n,this)},e.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var r=this.children[n];r.updateDepthAndHeight(e+1),r.height>t&&(t=r.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,r=n.length;t<r;t++){var i=n[t].getNodeById(e);if(i)return i}},e.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,r=n.length;t<r;t++){var i=n[t].contains(e);if(i)return i}},e.prototype.getAncestors=function(e){for(var t=[],n=e?this:this.parentNode;n;)t.push(n),n=n.parentNode;return t.reverse(),t},e.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},e.prototype.getDescendantIndices=function(){var e=[];return this.eachNode((function(t){e.push(t.dataIndex)})),e},e.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},e.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(e)},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},e.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},e.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},e}();var fj=function(){function e(e){this.type="tree",this._nodes=[],this.hostModel=e}return e.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},e.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},e.prototype.getNodeById=function(e){return this.root.getNodeById(e)},e.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,r=t.length;n<r;n++)t[n].dataIndex=-1;for(n=0,r=e.count();n<r;n++)t[e.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,n,r){var i=new e(n),o=[],a=1;!function e(t,n){var r=t.value;a=Math.max(a,x.isArray(r)?r.length:1),o.push(t);var s=new lj(ti(t.name,""),i);n?function(e,t){var n=t.children;if(e.parentNode===t)return;n.push(e),e.parentNode=t}(s,n):i.root=s,i._nodes.push(s);var u=t.children;if(u)for(var c=0;c<u.length;c++)e(u[c],s)}(t),i.root.updateDepthAndHeight(0);var s=_y(o,{coordDimensions:["value"],dimensionsCount:a}).dimensions,u=new xy(s,n);return u.initData(o),r&&r(u),cj({mainData:u,struct:i,structAttr:"tree"}),i.update(),i},e}();function dj(e,t,n){if(e&&x.indexOf(t,e.type)>=0){var r=n.getData().tree.root,i=e.targetNode;if(x.isString(i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var o=e.targetNodeId;if(null!=o&&(i=r.getNodeById(o)))return{node:i}}}function pj(e){for(var t=[];e;)(e=e.parentNode)&&t.push(e);return t.reverse()}function hj(e,t){var n=pj(e);return x.indexOf(n,t)>=0}function vj(e,t){for(var n=[];e;){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}var gj=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return y(t,e),t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=e.leaves||{},r=new _u(n,this,this.ecModel),i=fj.createTree(t,this,(function(e){e.wrapMethod("getItemModel",(function(e,t){var n=i.getNodeByDataIndex(t);return n&&n.children.length&&n.isExpand||(e.parentModel=r),e}))}));var o=0;i.eachNode("preorder",(function(e){e.depth>o&&(o=e.depth)}));var a=e.expandAndCollapse&&e.initialTreeDepth>=0?e.initialTreeDepth:o;return i.root.eachNode("preorder",(function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=a})),i.data},t.prototype.getOrient=function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,t,n){for(var r=this.getData().tree,i=r.root.children[0],o=r.getNodeByDataIndex(e),a=o.getValue(),s=o.name;o&&o!==i;)s=o.parentNode.name+"."+s,o=o.parentNode;return rd("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=vj(r,this),n.collapsed=!r.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(Ed);function mj(e,t){for(var n,r=[e];n=r.pop();)if(t(n),n.isExpand){var i=n.children;if(i.length)for(var o=i.length-1;o>=0;o--)r.push(i[o])}}function yj(e,t){e.eachSeriesByType("tree",(function(e){!function(e,t){var n=function(e,t){return kc(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t);e.layoutInfo=n;var r=e.get("layout"),i=0,o=0,a=null;"radial"===r?(i=2*Math.PI,o=Math.min(n.height,n.width)/2,a=BE((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(i=n.width,o=n.height,a=BE());var s=e.getData().tree.root,u=s.children[0];if(u){!function(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n,r,i=[t];n=i.pop();)if(r=n.children,n.isExpand&&r.length)for(var o=r.length-1;o>=0;o--){var a=r[o];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},i.push(a)}}(s),function(e,t,n){for(var r,i=[e],o=[];r=i.pop();)if(o.push(r),r.isExpand){var a=r.children;if(a.length)for(var s=0;s<a.length;s++)i.push(a[s])}for(;r=o.pop();)t(r,n)}(u,NE,a),s.hierNode.modifier=-u.hierNode.prelim,mj(u,FE);var c=u,l=u,f=u;mj(u,(function(e){var t=e.getLayout().x;t<c.getLayout().x&&(c=e),t>l.getLayout().x&&(l=e),e.depth>f.depth&&(f=e)}));var d=c===l?1:a(c,l)/2,p=d-c.getLayout().x,h=0,v=0,g=0,m=0;if("radial"===r)h=i/(l.getLayout().x+d+p),v=o/(f.depth-1||1),mj(u,(function(e){g=(e.getLayout().x+p)*h,m=(e.depth-1)*v;var t=UE(g,m);e.setLayout({x:t.x,y:t.y,rawX:g,rawY:m},!0)}));else{var y=e.getOrient();"RL"===y||"LR"===y?(v=o/(l.getLayout().x+d+p),h=i/(f.depth-1||1),mj(u,(function(e){m=(e.getLayout().x+p)*v,g="LR"===y?(e.depth-1)*h:i-(e.depth-1)*h,e.setLayout({x:g,y:m},!0)}))):"TB"!==y&&"BT"!==y||(h=i/(l.getLayout().x+d+p),v=o/(f.depth-1||1),mj(u,(function(e){g=(e.getLayout().x+p)*h,m="TB"===y?(e.depth-1)*v:o-(e.depth-1)*v,e.setLayout({x:g,y:m},!0)})))}}}(e,t)}))}function bj(e){e.eachSeriesByType("tree",(function(e){var t=e.getData();t.tree.eachNode((function(e){var n=e.getModel().getModel("itemStyle").getItemStyle(),r=t.ensureUniqueItemVisual(e.dataIndex,"style");Object(x.extend)(r,n)}))}))}var xj=["treemapZoomToNode","treemapRender","treemapMove"];function wj(e){var t=e.getData().tree,n={};t.eachNode((function(t){for(var r=t;r&&r.depth>1;)r=r.parentNode;var i=rl(e.ecModel,r.name||r.dataIndex+"",n);t.setVisual("decal",i)}))}var _j=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return y(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};!function e(t){var n=0;x.each(t.children,(function(t){e(t);var r=t.value;x.isArray(r)&&(r=r[0]),n+=r}));var r=t.value;x.isArray(r)&&(r=r[0]);(null==r||isNaN(r))&&(r=n);r<0&&(r=0);x.isArray(t.value)?t.value[0]=r:t.value=r}(n);var r=e.levels||[],i=this.designatedVisualItemStyle={},o=new _u({itemStyle:i},this,t);r=e.levels=function(e,t){var n,r,i=Yr(t.get("color")),o=Yr(t.get(["aria","decal","decals"]));if(!i)return;e=e||[],x.each(e,(function(e){var t=new _u(e),i=t.get("color"),o=t.get("decal");(t.get(["itemStyle","color"])||i&&"none"!==i)&&(n=!0),(t.get(["itemStyle","decal"])||o&&"none"!==o)&&(r=!0)}));var a=e[0]||(e[0]={});n||(a.color=i.slice());!r&&o&&(a.decal=o.slice());return e}(r,t);var a=x.map(r||[],(function(e){return new _u(e,o,t)}),this),s=fj.createTree(n,this,(function(e){e.wrapMethod("getItemModel",(function(e,t){var n=s.getNodeByDataIndex(t),r=n?a[n.depth]:null;return e.parentModel=r||o,e}))}));return s.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e);return rd("nameValue",{name:r.getName(e),value:i})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=vj(r,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},x.extend(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=x.createHashMap(),this._idIndexMapCount=0);var n=t.get(e);return null==n&&t.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){wj(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(Ed),Sj=5;function Oj(e,t,n,r,i,o){var a=[[i?e:e-Sj,t],[e+n,t],[e+n,t+r],[i?e:e-Sj,t+r]];return!o&&a.splice(2,0,[e+n+Sj,t+r/2]),!i&&a.push([e,t+r/2]),a}function kj(e,t,n){Ia(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&vj(n,t)}}var Ej=function(){function e(e){this.group=new ur,e.add(this.group)}return e.prototype.render=function(e,t,n,r){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),i.get("show")&&n){var a=i.getModel("itemStyle"),s=i.getModel("emphasis"),u=a.getModel("textStyle"),c=s.getModel(["itemStyle","textStyle"]),l={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,l,u),this._renderContent(e,l,a,s,u,c,r),Ec(o,l.pos,l.box)}},e.prototype._prepare=function(e,t,n){for(var r=e;r;r=r.parentNode){var i=ti(r.getModel().get("name"),""),o=n.getTextRect(i),a=Math.max(o.width+16,t.emptyItemWidth);t.totalWidth+=a+8,t.renderList.push({node:r,text:i,width:a})}},e.prototype._renderContent=function(e,t,n,r,i,o,a){for(var s,u,c,l,f,d,p,h,v,g=0,m=t.emptyItemWidth,y=e.get(["breadcrumb","height"]),b=(s=t.pos,u=t.box,l=u.width,f=u.height,d=wr(s.left,l),p=wr(s.top,f),h=wr(s.right,l),v=wr(s.bottom,f),(isNaN(d)||isNaN(parseFloat(s.left)))&&(d=0),(isNaN(h)||isNaN(parseFloat(s.right)))&&(h=l),(isNaN(p)||isNaN(parseFloat(s.top)))&&(p=0),(isNaN(v)||isNaN(parseFloat(s.bottom)))&&(v=f),c=lc(c||0),{width:Math.max(h-d-c[1]-c[3],0),height:Math.max(v-p-c[0]-c[2],0)}),w=t.totalWidth,_=t.renderList,S=r.getModel("itemStyle").getItemStyle(),O=_.length-1;O>=0;O--){var k=_[O],E=k.node,j=k.width,T=k.text;w>b.width&&(w-=j-m,j=m,T=null);var C=new Op({shape:{points:Oj(g,0,j,y,O===_.length-1,0===O)},style:Object(x.defaults)(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Ma({style:Zs(i,{text:T})}),textConfig:{position:"inside"},z2:1e4*Wa,onclick:Object(x.curry)(a,E)});C.disableLabelAnimation=!0,C.getTextContent().ensureState("emphasis").style=Zs(o,{text:T}),C.ensureState("emphasis").style=S,Ts(C,r.get("focus"),r.get("blurScope"),r.get("disabled")),this.group.add(C),kj(C,e,E),g+=j+8}},e.prototype.remove=function(){this.group.removeAll()},e}(),jj=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,r,i){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:r,easing:i}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){--t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},r=0,i=this._storage.length;r<i;r++){var o=this._storage[r];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},e}();var Tj=ur,Cj=ga,Aj="label",Pj="upperLabel",Mj=10*Wa,Ij=2*Wa,Rj=3*Wa,Dj=ki([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),Lj=function(e){var t=Dj(e);return t.stroke=t.fill=t.lineWidth=null,t},Nj=oi();var Fj=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._state="ready",n._storage={nodeGroup:[],background:[],content:[]},n}return y(t,e),t.prototype.render=function(e,t,n,r){var i=t.findComponents({mainType:"series",subType:"treemap",query:r});if(!(Object(x.indexOf)(i,e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var o=dj(r,["treemapZoomToNode","treemapRootToNode"],e),a=r&&r.type,s=e.layoutInfo,u=!this._oldTree,c=this._storage,l="treemapRootToNode"===a&&o&&c?{rootNodeGroup:c.nodeGroup[o.node.getRawIndex()],direction:r.direction}:null,f=this._giveContainerGroup(s),d=e.get("animation"),p=this._doRender(f,e,l);!d||u||a&&"treemapZoomToNode"!==a&&"treemapRootToNode"!==a?p.renderFinally():this._doAnimation(f,p,e,l),this._resetController(n),this._renderBreadcrumb(e,n,o)}},t.prototype._giveContainerGroup=function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new Tj,this._initEvents(t),this.group.add(t)),t.x=e.x,t.y=e.y,t},t.prototype._doRender=function(e,t,n){var r=t.getData().tree,i=this._oldTree,o={nodeGroup:[],background:[],content:[]},a={nodeGroup:[],background:[],content:[]},s=this._storage,u=[];function c(e,r,i,c){return function(e,t,n,r,i,o,a,s,u,c){if(!a)return;var l=a.getLayout(),f=e.getData(),d=a.getModel();if(f.setItemGraphicEl(a.dataIndex,null),!l||!l.isInView)return;var p=l.width,h=l.height,v=l.borderWidth,g=l.invisible,m=a.getRawIndex(),y=s&&s.getRawIndex(),b=a.viewChildren,w=l.upperHeight,_=b&&b.length,S=d.getModel("itemStyle"),O=d.getModel(["emphasis","itemStyle"]),k=d.getModel(["blur","itemStyle"]),E=d.getModel(["select","itemStyle"]),j=S.get("borderRadius")||0,T=B("nodeGroup",Tj);if(!T)return;if(u.add(T),T.x=l.x||0,T.y=l.y||0,T.markRedraw(),Nj(T).nodeWidth=p,Nj(T).nodeHeight=h,l.isAboveViewRoot)return T;var C=B("background",Cj,c,Ij);C&&function(t,n,r){var i=Ia(n);if(i.dataIndex=a.dataIndex,i.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:p,height:h,r:j}),g)L(n);else{n.invisible=!1;var o=a.getVisual("style"),s=o.stroke,u=Lj(S);u.fill=s;var c=Dj(O);c.fill=O.get("borderColor");var l=Dj(k);l.fill=k.get("borderColor");var f=Dj(E);if(f.fill=E.get("borderColor"),r){var d=p-2*v;N(n,s,o.opacity,{x:v,y:0,width:d,height:w})}else n.removeTextContent();n.setStyle(u),n.ensureState("emphasis").style=c,n.ensureState("blur").style=l,n.ensureState("select").style=f,fs(n)}t.add(n)}(T,C,_&&l.upperLabelHeight);var A=d.getModel("emphasis"),P=A.get("focus"),M=A.get("blurScope"),I=A.get("disabled"),R="ancestor"===P?a.getAncestorsIndices():"descendant"===P?a.getDescendantIndices():P;if(_)Rs(T)&&Is(T,!1),C&&(Is(C,!I),f.setItemGraphicEl(a.dataIndex,C),Cs(C,R,M));else{var D=B("content",Cj,c,Rj);D&&function(t,n){var r=Ia(n);r.dataIndex=a.dataIndex,r.seriesIndex=e.seriesIndex;var i=Math.max(p-2*v,0),o=Math.max(h-2*v,0);if(n.culling=!0,n.setShape({x:v,y:v,width:i,height:o,r:j}),g)L(n);else{n.invisible=!1;var s=a.getVisual("style"),u=s.fill,c=Lj(S);c.fill=u,c.decal=s.decal;var l=Dj(O),f=Dj(k),d=Dj(E);N(n,u,s.opacity,null),n.setStyle(c),n.ensureState("emphasis").style=l,n.ensureState("blur").style=f,n.ensureState("select").style=d,fs(n)}t.add(n)}(T,D),C.disableMorphing=!0,C&&Rs(C)&&Is(C,!1),Is(T,!I),f.setItemGraphicEl(a.dataIndex,T),Cs(T,R,M)}return T;function L(e){!e.invisible&&o.push(e)}function N(t,n,r,i){var o=d.getModel(i?Pj:Aj),s=ti(d.get("name"),null),u=o.getShallow("show");Xs(t,Qs(d,i?Pj:Aj),{defaultText:u?s:null,inheritColor:n,defaultOpacity:r,labelFetcher:e,labelDataIndex:a.dataIndex});var c=t.getTextContent();if(c){var f=c.style,p=Object(x.normalizeCssArray)(f.padding||0);i&&(t.setTextConfig({layoutRect:i}),c.disableLabelLayout=!0),c.beforeUpdate=function(){var e=Math.max((i?i.width:t.shape.width)-p[1]-p[3],0),n=Math.max((i?i.height:t.shape.height)-p[0]-p[2],0);f.width===e&&f.height===n||c.setStyle({width:e,height:n})},f.truncateMinChar=2,f.lineOverflow="truncate",F(f,i,l);var h=c.getState("emphasis");F(h?h.style:null,i,l)}}function F(t,n,r){var i=t?t.text:null;if(!n&&r.isLeafRoot&&null!=i){var o=e.get("drillDownIcon",!0);t.text=o?o+" "+i:i}}function B(e,o,s,u){var c=null!=y&&n[e][y],l=i[e];return c?(n[e][y]=null,function(e,t){var n=e[m]={};t instanceof Tj?(n.oldX=t.x,n.oldY=t.y):n.oldShape=Object(x.extend)({},t.shape)}(l,c)):g||((c=new o)instanceof Ji&&(c.z2=function(e,t){return e*Mj+t}(s,u)),function(e,t){var n=e[m]={},o=a.parentNode,s=t instanceof ur;if(o&&(!r||"drillDown"===r.direction)){var u=0,c=0,l=i.background[o.getRawIndex()];!r&&l&&l.oldShape&&(u=l.oldShape.width,c=l.oldShape.height),s?(n.oldX=0,n.oldY=c):n.oldShape={x:u,y:c,width:0,height:0}}n.fadein=!s}(l,c)),t[e][m]=c}}(t,a,s,n,o,u,e,r,i,c)}!function e(t,n,r,i,o){i?(n=t,Object(x.each)(t,(function(e,t){!e.isRemoved()&&s(t,t)}))):new Xm(n,t,a,a).add(s).update(s).remove(Object(x.curry)(s,null)).execute();function a(e){return e.getId()}function s(a,s){var u=null!=a?t[a]:null,l=null!=s?n[s]:null,f=c(u,l,r,o);f&&e(u&&u.viewChildren||[],l&&l.viewChildren||[],f,i,o+1)}}(r.root?[r.root]:[],i&&i.root?[i.root]:[],e,r===i||!i,0);var l=function(e){var t={nodeGroup:[],background:[],content:[]};return e&&Object(x.each)(e,(function(e,n){var r=t[n];Object(x.each)(e,(function(e){e&&(r.push(e),Nj(e).willDelete=!0)}))})),t}(s);return this._oldTree=r,this._storage=a,{lastsForAnimation:o,willDeleteEls:l,renderFinally:function(){Object(x.each)(l,(function(e){Object(x.each)(e,(function(e){e.parent&&e.parent.remove(e)}))})),Object(x.each)(u,(function(e){e.invisible=!0,e.dirty()}))}}},t.prototype._doAnimation=function(e,t,n,r){var i=n.get("animationDurationUpdate"),o=n.get("animationEasing"),a=(Object(x.isFunction)(i)?0:i)||0,s=(Object(x.isFunction)(o)?null:o)||"cubicOut",u=new jj;Object(x.each)(t.willDeleteEls,(function(e,t){Object(x.each)(e,(function(e,n){if(!e.invisible){var i,o=e.parent,c=Nj(o);if(r&&"drillDown"===r.direction)i=o===r.rootNodeGroup?{shape:{x:0,y:0,width:c.nodeWidth,height:c.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var l=0,f=0;c.willDelete||(l=c.nodeWidth/2,f=c.nodeHeight/2),i="nodeGroup"===t?{x:l,y:f,style:{opacity:0}}:{shape:{x:l,y:f,width:0,height:0},style:{opacity:0}}}i&&u.add(e,i,a,0,s)}}))})),Object(x.each)(this._storage,(function(e,n){Object(x.each)(e,(function(e,r){var i=t.lastsForAnimation[n][r],o={};i&&(e instanceof ur?null!=i.oldX&&(o.x=e.x,o.y=e.y,e.x=i.oldX,e.y=i.oldY):(i.oldShape&&(o.shape=Object(x.extend)({},e.shape),e.setShape(i.oldShape)),i.fadein?(e.setStyle("opacity",0),o.style={opacity:1}):1!==e.style.opacity&&(o.style={opacity:1})),u.add(e,o,a,0,s))}))}),this),this._state="animating",u.finished(Object(x.bind)((function(){this._state="ready",t.renderFinally()}),this)).start()},t.prototype._resetController=function(e){var t=this._controller;t||((t=this._controller=new mk(e.getZr())).enable(this.seriesModel.get("roam")),t.on("pan",Object(x.bind)(this._onPan,this)),t.on("zoom",Object(x.bind)(this._onZoom,this)));var n=new Fe(0,0,e.getWidth(),e.getHeight());t.setPointerChecker((function(e,t,r){return n.contain(t,r)}))},t.prototype._clearController=function(){var e=this._controller;e&&(e.dispose(),e=null)},t.prototype._onPan=function(e){if("animating"!==this._state&&(Math.abs(e.dx)>3||Math.abs(e.dy)>3)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY;if("animating"!==this._state){var r=this.seriesModel.getData().tree.root;if(!r)return;var i=r.getLayout();if(!i)return;var o=new Fe(i.x,i.y,i.width,i.height),a=this.seriesModel.layoutInfo,s=[1,0,0,1,0,0];Oe(s,s,[-(t-=a.x),-(n-=a.y)]),Ee(s,s,[e.scale,e.scale]),Oe(s,s,[t,n]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},t.prototype._initEvents=function(e){var t=this;e.on("click",(function(e){if("ready"===t._state){var n=t.seriesModel.get("nodeClick",!0);if(n){var r=t.findTarget(e.offsetX,e.offsetY);if(r){var i=r.node;if(i.getLayout().isLeafRoot)t._rootToNode(r);else if("zoomToNode"===n)t._zoomToNode(r);else if("link"===n){var o=i.hostTree.data.getItemModel(i.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&bc(a,s)}}}}}),this)},t.prototype._renderBreadcrumb=function(e,t,n){var r=this;n||(n=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2))||(n={node:e.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new Ej(this.group))).render(e,t,n.node,(function(t){"animating"!==r._state&&(hj(e.getViewRoot(),t)?r._rootToNode({node:t}):r._zoomToNode({node:t}))}))},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},(function(r){var i=this._storage.background[r.getRawIndex()];if(i){var o=i.transformCoordToLocal(e,t),a=i.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:r,offsetX:o[0],offsetY:o[1]}}}),this),n},t.type="treemap",t}(Dh),Bj=x.each,Uj=x.isObject,zj=-1,Vj=function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=x.clone(t);this.type=r,this.mappingMethod=n,this._normalizeData=Zj[n];var o=e.visualHandlers[r];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(Hj(i),function(e){var t=e.pieceList;e.hasSpecialVisual=!1,x.each(t,(function(t,n){t.originIndex=n,null!=t.visual&&(e.hasSpecialVisual=!0)}))}(i)):"category"===n?i.categories?function(e){var t=e.categories,n=e.categoryMap={},r=e.visual;if(Bj(t,(function(e,t){n[e]=t})),!x.isArray(r)){var i=[];x.isObject(r)?Bj(r,(function(e,t){var r=n[t];i[null!=r?r:zj]=e})):i[zj]=r,r=Qj(e,i)}for(var o=t.length-1;o>=0;o--)null==r[o]&&(delete n[t[o]],t.pop())}(i):Hj(i,!0):(x.assert("linear"!==n||i.dataExtent),Hj(i))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return x.bind(this._normalizeData,this)},e.listVisualTypes=function(){return x.keys(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){x.isObject(e)?x.each(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,r){var i,o=x.isArray(t)?[]:x.isObject(t)?{}:(i=!0,null);return e.eachVisual(t,(function(e,t){var a=n.call(r,e,t);i?o=a:o[t]=a})),o},e.retrieveVisuals=function(t){var n,r={};return t&&Bj(e.visualHandlers,(function(e,i){t.hasOwnProperty(i)&&(r[i]=t[i],n=!0)})),n?r:null},e.prepareVisualTypes=function(e){if(x.isArray(e))e=e.slice();else{if(!Uj(e))return[];var t=[];Bj(e,(function(e,n){t.push(n)})),e=t}return e.sort((function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1})),e},e.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},e.findPieceIndex=function(e,t,n){for(var r,i=1/0,o=0,a=t.length;o<a;o++){var s=t[o].value;if(null!=s){if(s===e||x.isString(s)&&s===e+"")return o;n&&f(s,o)}}for(o=0,a=t.length;o<a;o++){var u=t[o],c=u.interval,l=u.close;if(c){if(c[0]===-1/0){if(Jj(l[1],e,c[1]))return o}else if(c[1]===1/0){if(Jj(l[0],c[0],e))return o}else if(Jj(l[0],c[0],e)&&Jj(l[1],e,c[1]))return o;n&&f(c[0],o),n&&f(c[1],o)}}if(n)return e===1/0?t.length-1:e===-1/0?0:r;function f(t,n){var o=Math.abs(t-e);o<i&&(i=o,r=n)}},e.visualHandlers={color:{applyVisual:Gj("color"),getColorMapper:function(){var e=this.option;return x.bind("category"===e.mappingMethod?function(e,t){return!t&&(e=this._normalizeData(e)),Yj.call(this,e)}:function(t,n,r){var i=!!r;return!n&&(t=this._normalizeData(t)),r=Ut.fastLerp(t,e.parsedVisual,r),i?r:Ut.stringify(r,"rgba")},this)},_normalizedToVisual:{linear:function(e){return Ut.stringify(Ut.fastLerp(e,this.option.parsedVisual),"rgba")},category:Yj,piecewise:function(e,t){var n=Xj.call(this,t);return null==n&&(n=Ut.stringify(Ut.fastLerp(e,this.option.parsedVisual),"rgba")),n},fixed:Kj}},colorHue:Wj((function(e,t){return Ut.modifyHSL(e,t)})),colorSaturation:Wj((function(e,t){return Ut.modifyHSL(e,null,t)})),colorLightness:Wj((function(e,t){return Ut.modifyHSL(e,null,null,t)})),colorAlpha:Wj((function(e,t){return Ut.modifyAlpha(e,t)})),decal:{applyVisual:Gj("decal"),_normalizedToVisual:{linear:null,category:Yj,piecewise:null,fixed:null}},opacity:{applyVisual:Gj("opacity"),_normalizedToVisual:$j([0,1])},liftZ:{applyVisual:Gj("liftZ"),_normalizedToVisual:{linear:Kj,category:Kj,piecewise:Kj,fixed:Kj}},symbol:{applyVisual:function(e,t,n){n("symbol",this.mapValueToVisual(e))},_normalizedToVisual:{linear:qj,category:Yj,piecewise:function(e,t){var n=Xj.call(this,t);return null==n&&(n=qj.call(this,e)),n},fixed:Kj}},symbolSize:{applyVisual:Gj("symbolSize"),_normalizedToVisual:$j([0,1])}},e}();function Hj(e,t){var n=e.visual,r=[];x.isObject(n)?Bj(n,(function(e){r.push(e)})):null!=n&&r.push(n);t||1!==r.length||{color:1,symbol:1}.hasOwnProperty(e.type)||(r[1]=r[0]),Qj(e,r)}function Wj(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r("color",e(n("color"),i))},_normalizedToVisual:$j([0,1])}}function qj(e){var t=this.option.visual;return t[Math.round(xr(e,[0,1],[0,t.length-1],!0))]||{}}function Gj(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function Yj(e){var t=this.option.visual;return t[this.option.loop&&e!==zj?e%t.length:e]}function Kj(){return this.option.visual[0]}function $j(e){return{linear:function(t){return xr(t,e,this.option.visual,!0)},category:Yj,piecewise:function(t,n){var r=Xj.call(this,n);return null==r&&(r=xr(t,e,this.option.visual,!0)),r},fixed:Kj}}function Xj(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=n[Vj.findPieceIndex(e,n)];if(r&&r.visual)return r.visual[this.type]}}function Qj(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=x.map(t,(function(e){var t=Ut.parse(e);return t||[0,0,0,1]}))),t}var Zj={linear:function(e){return xr(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=Vj.findPieceIndex(e,t,!0);if(null!=n)return xr(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?zj:t},fixed:x.noop};function Jj(e,t,n){return e?t<=n:t<n}var eT=Vj,tT="itemStyle",nT=oi(),rT={seriesType:"treemap",reset:function(e){var t=e.getData().tree.root;t.isRemoved()||function e(t,n,r,i){var o=t.getModel(),a=t.getLayout(),s=t.hostTree.data;if(!a||a.invisible||!a.isInView)return;var u,c=o.getModel(tT),l=function(e,t,n){var r=Object(x.extend)({},t),i=n.designatedVisualItemStyle;return Object(x.each)(["color","colorAlpha","colorSaturation"],(function(n){i[n]=t[n];var o=e.get(n);i[n]=null,null!=o&&(r[n]=o)})),r}(c,n,i),f=s.ensureUniqueItemVisual(t.dataIndex,"style"),d=c.get("borderColor"),p=c.get("borderColorSaturation");null!=p&&(u=iT(l),d=function(e,t){return null!=t?Object(Ut.modifyHSL)(t,null,null,e):null}(p,u));f.stroke=d;var h=t.viewChildren;if(h&&h.length){var v=function(e,t,n,r,i,o){if(!o||!o.length)return;var a=aT(t,"color")||null!=i.color&&"none"!==i.color&&(aT(t,"colorAlpha")||aT(t,"colorSaturation"));if(!a)return;var s=t.get("visualMin"),u=t.get("visualMax"),c=n.dataExtent.slice();null!=s&&s<c[0]&&(c[0]=s),null!=u&&u>c[1]&&(c[1]=u);var l=t.get("colorMappingBy"),f={type:a.name,dataExtent:c,visual:a.range};"color"!==f.type||"index"!==l&&"id"!==l?f.mappingMethod="linear":(f.mappingMethod="category",f.loop=!0);var d=new eT(f);return nT(d).drColorMappingBy=l,d}(0,o,a,0,l,h);Object(x.each)(h,(function(t,n){if(t.depth>=r.length||t===r[t.depth]){var a=function(e,t,n,r,i,o){var a=Object(x.extend)({},t);if(i){var s=i.type,u="color"===s&&nT(i).drColorMappingBy,c="index"===u?r:"id"===u?o.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));a[s]=i.mapValueToVisual(c)}return a}(o,l,t,n,v,i);e(t,a,r,i)}}))}else u=iT(l),f.fill=u}(t,{},e.getViewRoot().getAncestors(),e)}};function iT(e){var t=oT(e,"color");if(t){var n=oT(e,"colorAlpha"),r=oT(e,"colorSaturation");return r&&(t=Object(Ut.modifyHSL)(t,null,null,r)),n&&(t=Object(Ut.modifyAlpha)(t,n)),t}}function oT(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function aT(e,t){var n=e.get(t);return Object(x.isArray)(n)&&n.length?{name:t,range:n}:null}var sT=Math.max,uT=Math.min,cT=x.retrieve,lT=x.each,fT=["itemStyle","borderWidth"],dT=["itemStyle","gapWidth"],pT=["upperLabel","show"],hT=["upperLabel","height"],vT={seriesType:"treemap",reset:function(e,t,n,r){var i=n.getWidth(),o=n.getHeight(),a=e.option,s=kc(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),u=a.size||[],c=wr(cT(s.width,u[0]),i),l=wr(cT(s.height,u[1]),o),f=r&&r.type,d=dj(r,["treemapZoomToNode","treemapRootToNode"],e),p="treemapRender"===f||"treemapMove"===f?r.rootRect:null,h=e.getViewRoot(),v=pj(h);if("treemapMove"!==f){var g="treemapZoomToNode"===f?function(e,t,n,r,i){var o,a=(t||{}).node,s=[r,i];if(!a||a===n)return s;var u=r*i,c=u*e.option.zoomToNodeRatio;for(;o=a.parentNode;){for(var l=0,f=o.children,d=0,p=f.length;d<p;d++)l+=f[d].getValue();var h=a.getValue();if(0===h)return s;c*=l/h;var v=o.getModel(),g=v.get(fT),m=Math.max(g,yT(v));(c+=4*g*g+(3*g+m)*Math.pow(c,.5))>Ar&&(c=Ar),a=o}c<u&&(c=u);var y=Math.pow(c/u,.5);return[r*y,i*y]}(e,d,h,c,l):p?[p.width,p.height]:[c,l],m=a.sort;m&&"asc"!==m&&"desc"!==m&&(m="desc");var y={squareRatio:a.squareRatio,sort:m,leafDepth:a.leafDepth};h.hostTree.clearLayouts();var b={x:0,y:0,width:g[0],height:g[1],area:g[0]*g[1]};h.setLayout(b),function e(t,n,r,i){var o,a;if(t.isRemoved())return;var s=t.getLayout();o=s.width,a=s.height;var u=t.getModel(),c=u.get(fT),l=u.get(dT)/2,f=yT(u),d=Math.max(c,f),p=c-l,h=d-l;t.setLayout({borderWidth:c,upperHeight:d,upperLabelHeight:f},!0),o=sT(o-2*p,0),a=sT(a-p-h,0);var v=o*a,g=function(e,t,n,r,i,o){var a=e.children||[],s=r.sort;"asc"!==s&&"desc"!==s&&(s=null);var u=null!=r.leafDepth&&r.leafDepth<=o;if(i&&!u)return e.viewChildren=[];!function(e,t){t&&e.sort((function(e,n){var r="asc"===t?e.getValue()-n.getValue():n.getValue()-e.getValue();return 0===r?"asc"===t?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:r}))}(a=x.filter(a,(function(e){return!e.isRemoved()})),s);var c=function(e,t,n){for(var r=0,i=0,o=t.length;i<o;i++)r+=t[i].getValue();var a,s=e.get("visualDimension");t&&t.length?"value"===s&&n?(a=[t[t.length-1].getValue(),t[0].getValue()],"asc"===n&&a.reverse()):(a=[1/0,-1/0],lT(t,(function(e){var t=e.getValue(s);t<a[0]&&(a[0]=t),t>a[1]&&(a[1]=t)}))):a=[NaN,NaN];return{sum:r,dataExtent:a}}(t,a,s);if(0===c.sum)return e.viewChildren=[];if(c.sum=function(e,t,n,r,i){if(!r)return n;for(var o=e.get("visibleMin"),a=i.length,s=a,u=a-1;u>=0;u--){var c=i["asc"===r?a-u-1:u].getValue();c/n*t<o&&(s=u,n-=c)}return"asc"===r?i.splice(0,a-s):i.splice(s,a-s),n}(t,n,c.sum,s,a),0===c.sum)return e.viewChildren=[];for(var l=0,f=a.length;l<f;l++){var d=a[l].getValue()/c.sum*n;a[l].setLayout({area:d})}u&&(a.length&&e.setLayout({isLeafRoot:!0},!0),a.length=0);return e.viewChildren=a,e.setLayout({dataExtent:c.dataExtent},!0),a}(t,u,v,n,r,i);if(!g.length)return;var m={x:p,y:h,width:o,height:a},y=uT(o,a),b=1/0,w=[];w.area=0;for(var _=0,S=g.length;_<S;){var O=g[_];w.push(O),w.area+=O.getLayout().area;var k=gT(w,y,n.squareRatio);k<=b?(_++,b=k):(w.area-=w.pop().getLayout().area,mT(w,y,m,l,!1),y=uT(m.width,m.height),w.length=w.area=0,b=1/0)}w.length&&mT(w,y,m,l,!0);if(!r){var E=u.get("childrenVisibleMin");null!=E&&v<E&&(r=!0)}for(_=0,S=g.length;_<S;_++)e(g[_],n,r,i+1)}(h,y,!1,0),b=h.getLayout(),lT(v,(function(e,t){var n=(v[t+1]||h).getValue();e.setLayout(x.extend({dataExtent:[n,n],borderWidth:0,upperHeight:0},b))}))}var w=e.getData().tree.root;w.setLayout(function(e,t,n){if(t)return{x:t.x,y:t.y};var r={x:0,y:0};if(!n)return r;var i=n.node,o=i.getLayout();if(!o)return r;var a=[o.width/2,o.height/2],s=i;for(;s;){var u=s.getLayout();a[0]+=u.x,a[1]+=u.y,s=s.parentNode}return{x:e.width/2-a[0],y:e.height/2-a[1]}}(s,p,d),!0),e.setLayoutInfo(s),function e(t,n,r,i,o){var a=t.getLayout(),s=r[o],u=s&&s===t;if(s&&!u||o===r.length&&t!==i)return;t.setLayout({isInView:!0,invisible:!u&&!n.intersect(a),isAboveViewRoot:u},!0);var c=new Fe(n.x-a.x,n.y-a.y,n.width,n.height);lT(t.viewChildren||[],(function(t){e(t,c,r,i,o+1)}))}(w,new Fe(-s.x,-s.y,i,o),v,h,0)}};function gT(e,t,n){for(var r=0,i=1/0,o=0,a=void 0,s=e.length;o<s;o++)(a=e[o].getLayout().area)&&(a<i&&(i=a),a>r&&(r=a));var u=e.area*e.area,c=t*t*n;return u?sT(c*r/u,u/(c*i)):1/0}function mT(e,t,n,r,i){var o=t===n.width?0:1,a=1-o,s=["x","y"],u=["width","height"],c=n[s[o]],l=t?e.area/t:0;(i||l>n[u[a]])&&(l=n[u[a]]);for(var f=0,d=e.length;f<d;f++){var p=e[f],h={},v=l?p.getLayout().area/l:0,g=h[u[a]]=sT(l-2*r,0),m=n[s[o]]+n[u[o]]-c,y=f===d-1||m<v?m:v,b=h[u[o]]=sT(y-2*r,0);h[s[a]]=n[s[a]]+uT(r,g/2),h[s[o]]=c+uT(r,b/2),c+=y,p.setLayout(h,!0)}n[s[a]]+=l,n[u[a]]-=l}function yT(e){return e.get(pT)?e.get(hT):0}function bT(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),r=e.getGraph().data,i=n.mapArray(n.getName);r.filterSelf((function(e){var n=r.getItemModel(e).getShallow("category");if(null!=n){Object(x.isNumber)(n)&&(n=i[n]);for(var o=0;o<t.length;o++)if(!t[o].isSelected(n))return!1}return!0}))}))}function xT(e){var t={};e.eachSeriesByType("graph",(function(e){var n=e.getCategoriesData(),r=e.getData(),i={};n.each((function(r){var o=n.getName(r);i["ec-"+o]=r;var a=n.getItemModel(r),s=a.getModel("itemStyle").getItemStyle();s.fill||(s.fill=e.getColorFromPalette(o,t)),n.setItemVisual(r,"style",s);for(var u=["symbol","symbolSize","symbolKeepAspect"],c=0;c<u.length;c++){var l=a.getShallow(u[c],!0);null!=l&&n.setItemVisual(r,u[c],l)}})),n.count()&&r.each((function(e){var t=r.getItemModel(e).getShallow("category");if(null!=t){Object(x.isString)(t)&&(t=i["ec-"+t]);var o=n.getItemVisual(t,"style"),a=r.ensureUniqueItemVisual(e,"style");Object(x.extend)(a,o);for(var s=["symbol","symbolSize","symbolKeepAspect"],u=0;u<s.length;u++)r.setItemVisual(e,s[u],n.getItemVisual(t,s[u]))}}))}))}function wT(e){return e instanceof Array||(e=[e,e]),e}function _T(e){e.eachSeriesByType("graph",(function(e){var t=e.getGraph(),n=e.getEdgeData(),r=wT(e.get("edgeSymbol")),i=wT(e.get("edgeSymbolSize"));n.setVisual("fromSymbol",r&&r[0]),n.setVisual("toSymbol",r&&r[1]),n.setVisual("fromSymbolSize",i&&i[0]),n.setVisual("toSymbolSize",i&&i[1]),n.setVisual("style",e.getModel("lineStyle").getLineStyle()),n.each((function(e){var r=n.getItemModel(e),i=t.getEdgeByIndex(e),o=wT(r.getShallow("symbol",!0)),a=wT(r.getShallow("symbolSize",!0)),s=r.getModel("lineStyle").getLineStyle(),u=n.ensureUniqueItemVisual(e,"style");switch(Object(x.extend)(u,s),u.stroke){case"source":var c=i.node1.getVisual("style");u.stroke=c&&c.fill;break;case"target":c=i.node2.getVisual("style");u.stroke=c&&c.fill}o[0]&&i.setVisual("fromSymbol",o[0]),o[1]&&i.setVisual("toSymbol",o[1]),a[0]&&i.setVisual("fromSymbolSize",a[0]),a[1]&&i.setVisual("toSymbolSize",a[1])}))}))}var ST=function(e){return e.get("autoCurveness")||null},OT=function(e,t){var n=ST(e),r=20,i=[];if(x.isNumber(n))r=n;else if(x.isArray(n))return void(e.__curvenessList=n);t>r&&(r=t);var o=r%2?r+2:r+3;i=[];for(var a=0;a<o;a++)i.push((a%2?a+1:a)/10*(a%2?-1:1));e.__curvenessList=i},kT=function(e,t,n){var r=[e.id,e.dataIndex].join("."),i=[t.id,t.dataIndex].join(".");return[n.uid,r,i].join("--\x3e")},ET=function(e){var t=e.split("--\x3e");return[t[0],t[2],t[1]].join("--\x3e")},jT=function(e,t){var n=kT(e.node1,e.node2,t);return t.__edgeMap[n]},TT=function(e,t){return CT(kT(e.node1,e.node2,t),t)+CT(kT(e.node2,e.node1,t),t)},CT=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function AT(e,t,n,r){var i=ST(t),o=x.isArray(i);if(!i)return null;var a=jT(e,t);if(!a)return null;for(var s=-1,u=0;u<a.length;u++)if(a[u]===n){s=u;break}var c=TT(e,t);OT(t,c),e.lineStyle=e.lineStyle||{};var l=kT(e.node1,e.node2,t),f=t.__curvenessList,d=o?0:c%2?0:1;if(a.isForward)return f[d+s];var p=ET(l),h=CT(p,t),v=f[s+h+d];return r?o?i&&0===i[0]?(h+d)%2?v:-v:((h%2?0:1)+d)%2?v:-v:(h+d)%2?v:-v:f[s+h+d]}function PT(e){var t=e.coordinateSystem;if(!t||"view"===t.type){var n=e.getGraph();n.eachNode((function(e){var t=e.getModel();e.setLayout([+t.get("x"),+t.get("y")])})),MT(n,e)}}function MT(e,t){e.eachEdge((function(e,n){var r=x.retrieve3(e.getModel().get(["lineStyle","curveness"]),-AT(e,t,n,!0),0),i=k(e.node1.getLayout()),o=k(e.node2.getLayout()),a=[i,o];+r&&a.push([(i[0]+o[0])/2-(i[1]-o[1])*r,(i[1]+o[1])/2-(o[0]-i[0])*r]),e.setLayout(a)}))}function IT(e,t){e.eachSeriesByType("graph",(function(e){var t=e.get("layout"),n=e.coordinateSystem;if(n&&"view"!==n.type){var r=e.getData(),i=[];Object(x.each)(n.dimensions,(function(e){i=i.concat(r.mapDimensionsAll(e))}));for(var o=0;o<r.count();o++){for(var a=[],s=!1,u=0;u<i.length;u++){var c=r.get(i[u],o);isNaN(c)||(s=!0),a.push(c)}s?r.setItemLayout(o,n.dataToPoint(a)):r.setItemLayout(o,[NaN,NaN])}MT(r.graph,e)}else t&&"none"!==t||PT(e)}))}function RT(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=e.option.nodeScaleRatio,r=t.scaleX;return((t.getZoom()-1)*n+1)/r}function DT(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var LT=Math.PI,NT=[];function FT(e,t,n,r){var i=e.coordinateSystem;if(!i||"view"===i.type){var o=i.getBoundingRect(),a=e.getData(),s=a.graph,u=o.width/2+o.x,c=o.height/2+o.y,l=Math.min(o.width,o.height)/2,f=a.count();if(a.setLayout({cx:u,cy:c}),f){if(n){var d=i.pointToData(r),p=d[0],h=d[1],v=[p-u,h-c];F(v,v),N(v,v,l),n.setLayout([u+v[0],c+v[1]],!0),UT(n,e.get(["circular","rotateLabel"]),u,c)}BT[t](e,s,a,l,u,c,f),s.eachEdge((function(t,n){var r,i=x.retrieve3(t.getModel().get(["lineStyle","curveness"]),AT(t,e,n),0),o=k(t.node1.getLayout()),a=k(t.node2.getLayout()),s=(o[0]+a[0])/2,l=(o[1]+a[1])/2;+i&&(r=[u*(i*=3)+s*(1-i),c*i+l*(1-i)]),t.setLayout([o,a,r])}))}}}var BT={value:function(e,t,n,r,i,o,a){var s=0,u=n.getSum("value"),c=2*Math.PI/(u||a);t.eachNode((function(e){var t=e.getValue("value"),n=c*(u?t:1)/2;s+=n,e.setLayout([r*Math.cos(s)+i,r*Math.sin(s)+o]),s+=n}))},symbolSize:function(e,t,n,r,i,o,a){var s=0;NT.length=a;var u=RT(e);t.eachNode((function(e){var t=DT(e);isNaN(t)&&(t=2),t<0&&(t=0),t*=u;var n=Math.asin(t/2/r);isNaN(n)&&(n=LT/2),NT[e.dataIndex]=n,s+=2*n}));var c=(2*LT-s)/a/2,l=0;t.eachNode((function(e){var t=c+NT[e.dataIndex];l+=t,(!e.getLayout()||!e.getLayout().fixed)&&e.setLayout([r*Math.cos(l)+i,r*Math.sin(l)+o]),l+=t}))}};function UT(e,t,n,r){var i=e.getGraphicEl();if(i){var o=e.getModel().get(["label","rotate"])||0,a=i.getSymbolPath();if(t){var s=e.getLayout(),u=Math.atan2(s[1]-r,s[0]-n);u<0&&(u=2*Math.PI+u);var c=s[0]<n;c&&(u-=Math.PI);var l=c?"left":"right";a.setTextConfig({rotation:-u,position:l,origin:"center"});var f=a.ensureState("emphasis");x.extend(f.textConfig||(f.textConfig={}),{position:l})}else a.setTextConfig({rotation:o*=Math.PI/180})}}function zT(e){e.eachSeriesByType("graph",(function(e){"circular"===e.get("layout")&&FT(e,"symbolSize")}))}var VT=T;function HT(e){e.eachSeriesByType("graph",(function(e){var t=e.coordinateSystem;if(!t||"view"===t.type)if("force"===e.get("layout")){var n=e.preservedPoints||{},r=e.getGraph(),i=r.data,o=r.edgeData,a=e.getModel("force"),s=a.get("initLayout");e.preservedPoints?i.each((function(e){var t=i.getId(e);i.setItemLayout(e,n[t]||[NaN,NaN])})):s&&"none"!==s?"circular"===s&&FT(e,"value"):PT(e);var u=i.getDataExtent("value"),c=o.getDataExtent("value"),l=a.get("repulsion"),f=a.get("edgeLength"),d=x.isArray(l)?l:[l,l],p=x.isArray(f)?f:[f,f];p=[p[1],p[0]];var h=i.mapArray("value",(function(e,t){var n=i.getItemLayout(t),r=xr(e,u,d);return isNaN(r)&&(r=(d[0]+d[1])/2),{w:r,rep:r,fixed:i.getItemModel(t).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),v=o.mapArray("value",(function(t,n){var i=r.getEdgeByIndex(n),o=xr(t,c,p);isNaN(o)&&(o=(p[0]+p[1])/2);var a=i.getModel(),s=x.retrieve3(i.getModel().get(["lineStyle","curveness"]),-AT(i,e,n,!0),0);return{n1:h[i.node1.dataIndex],n2:h[i.node2.dataIndex],d:o,curveness:s,ignoreForceLayout:a.get("ignoreForceLayout")}})),g=t.getBoundingRect(),m=function(e,t,n){for(var r=e,i=t,o=n.rect,a=o.width,s=o.height,u=[o.x+a/2,o.y+s/2],c=null==n.gravity?.1:n.gravity,l=0;l<r.length;l++){var f=r[l];f.p||(f.p=S(a*(Math.random()-.5)+u[0],s*(Math.random()-.5)+u[1])),f.pp=k(f.p),f.edges=null}var d,p,h=null==n.friction?.6:n.friction,v=h;return{warmUp:function(){v=.8*h},setFixed:function(e){r[e].fixed=!0},setUnfixed:function(e){r[e].fixed=!1},beforeStep:function(e){d=e},afterStep:function(e){p=e},step:function(e){d&&d(r,i);for(var t=[],n=r.length,o=0;o<i.length;o++){var a=i[o];if(!a.ignoreForceLayout){var s=a.n1;C(t,(g=a.n2).p,s.p);var l=A(t)-a.d,f=g.w/(s.w+g.w);isNaN(f)&&(f=0),F(t,t),!s.fixed&&VT(s.p,s.p,t,f*l*v),!g.fixed&&VT(g.p,g.p,t,-(1-f)*l*v)}}for(o=0;o<n;o++){(b=r[o]).fixed||(C(t,u,b.p),VT(b.p,b.p,t,c*v))}for(o=0;o<n;o++){s=r[o];for(var h=o+1;h<n;h++){var g;C(t,(g=r[h]).p,s.p),0===(l=A(t))&&(E(t,Math.random()-.5,Math.random()-.5),l=1);var m=(s.rep+g.rep)/l/l;!s.fixed&&VT(s.pp,s.pp,t,m),!g.fixed&&VT(g.pp,g.pp,t,-m)}}var y=[];for(o=0;o<n;o++){var b;(b=r[o]).fixed||(C(y,b.p,b.pp),VT(b.p,b.p,y,v),O(b.pp,b.p))}var x=(v*=.992)<.01;p&&p(r,i,x),e&&e(x)}}}(h,v,{rect:g,gravity:a.get("gravity"),friction:a.get("friction")});m.beforeStep((function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].fixed&&O(e[n].p,r.getNodeByIndex(n).getLayout())})),m.afterStep((function(e,t,o){for(var a=0,s=e.length;a<s;a++)e[a].fixed||r.getNodeByIndex(a).setLayout(e[a].p),n[i.getId(a)]=e[a].p;for(a=0,s=t.length;a<s;a++){var u=t[a],c=r.getEdgeByIndex(a),l=u.n1.p,f=u.n2.p,d=c.getLayout();(d=d?d.slice():[])[0]=d[0]||[],d[1]=d[1]||[],O(d[0],l),O(d[1],f),+u.curveness&&(d[2]=[(l[0]+f[0])/2-(l[1]-f[1])*u.curveness,(l[1]+f[1])/2-(f[0]-l[0])*u.curveness]),c.setLayout(d)}})),e.forceLayout=m,e.preservedPoints=n,m.step()}else e.forceLayout=null}))}function WT(e,t){var n=[];return e.eachSeriesByType("graph",(function(e){var r=e.get("coordinateSystem");if(!r||"view"===r){var i=e.getData(),o=[],a=[];uo(i.mapArray((function(e){var t=i.getItemModel(e);return[+t.get("x"),+t.get("y")]})),o,a),a[0]-o[0]==0&&(a[0]+=1,o[0]-=1),a[1]-o[1]==0&&(a[1]+=1,o[1]-=1);var s=(a[0]-o[0])/(a[1]-o[1]),u=function(e,t,n){return kc(Object(x.extend)(e.getBoxLayoutParams(),{aspect:n}),{width:t.getWidth(),height:t.getHeight()})}(e,t,s);isNaN(s)&&(o=[u.x,u.y],a=[u.x+u.width,u.y+u.height]);var c=a[0]-o[0],l=a[1]-o[1],f=u.width,d=u.height,p=e.coordinateSystem=new SE;p.zoomLimit=e.get("scaleLimit"),p.setBoundingRect(o[0],o[1],c,l),p.setViewRect(u.x,u.y,f,d),p.setCenter(e.get("center"),t),p.setZoom(e.get("zoom")),n.push(p)}})),n}var qT=Pp.prototype,GT=Lp.prototype,YT=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1};!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}y(t,e)}(YT);function KT(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var $T=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-line",n}return y(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new YT},t.prototype.buildPath=function(e,t){KT(t)?qT.buildPath.call(this,e,t):GT.buildPath.call(this,e,t)},t.prototype.pointAt=function(e){return KT(this.shape)?qT.pointAt.call(this,e):GT.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var t=this.shape,n=KT(t)?[t.x2-t.x1,t.y2-t.y1]:GT.tangentAt.call(this,e);return F(n,n)},t}(ta),XT=["fromSymbol","toSymbol"];function QT(e){return"_"+e+"Type"}function ZT(e,t,n){var r=t.getItemVisual(n,e);if(r&&"none"!==r){var i=t.getItemVisual(n,e+"Size"),o=t.getItemVisual(n,e+"Rotate"),a=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),u=Hv(i),c=Wv(a||0,u),l=Vv(r,-u[0]/2+c[0],-u[1]/2+c[1],u[0],u[1],null,s);return l.__specifiedRotation=null==o||isNaN(o)?void 0:+o*Math.PI/180||0,l.name=e,l}}function JT(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var n=t[2];n?(e.cpx1=n[0],e.cpy1=n[1]):(e.cpx1=NaN,e.cpy1=NaN)}var eC=function(e){function t(t,n,r){var i=e.call(this)||this;return i._createLine(t,n,r),i}return y(t,e),t.prototype._createLine=function(e,t,n){var r=e.hostModel,i=function(e){var t=new $T({name:"line",subPixelOptimize:!0});return JT(t.shape,e),t}(e.getItemLayout(t));i.shape.percent=0,zs(i,{shape:{percent:1}},r,t),this.add(i),Object(x.each)(XT,(function(n){var r=ZT(n,e,t);this.add(r),this[QT(n)]=e.getItemVisual(t,n)}),this),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var r=e.hostModel,i=this.childOfName("line"),o=e.getItemLayout(t),a={shape:{}};JT(a.shape,o),Us(i,a,r,t),Object(x.each)(XT,(function(n){var r=e.getItemVisual(t,n),i=QT(n);if(this[i]!==r){this.remove(this.childOfName(n));var o=ZT(n,e,t);this.add(o)}this[i]=r}),this),this._updateCommonStl(e,t,n)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,t,n){var r=e.hostModel,i=this.childOfName("line"),o=n&&n.emphasisLineStyle,a=n&&n.blurLineStyle,s=n&&n.selectLineStyle,u=n&&n.labelStatesModels,c=n&&n.emphasisDisabled,l=n&&n.focus,f=n&&n.blurScope;if(!n||e.hasItemOption){var d=e.getItemModel(t),p=d.getModel("emphasis");o=p.getModel("lineStyle").getLineStyle(),a=d.getModel(["blur","lineStyle"]).getLineStyle(),s=d.getModel(["select","lineStyle"]).getLineStyle(),c=p.get("disabled"),l=p.get("focus"),f=p.get("blurScope"),u=Qs(d)}var h=e.getItemVisual(t,"style"),v=h.stroke;i.useStyle(h),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=o,i.ensureState("blur").style=a,i.ensureState("select").style=s,Object(x.each)(XT,(function(e){var t=this.childOfName(e);if(t){t.setColor(v),t.style.opacity=h.opacity;for(var n=0;n<Va.length;n++){var r=Va[n],o=i.getState(r);if(o){var a=o.style||{},s=t.ensureState(r),u=s.style||(s.style={});null!=a.stroke&&(u[t.__isEmptyBrush?"stroke":"fill"]=a.stroke),null!=a.opacity&&(u.opacity=a.opacity)}}t.markRedraw()}}),this);var g=r.getRawValue(t);Xs(this,u,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,n){return r.getFormattedLabel(t,n,e.dataType)}},inheritColor:v||"#000",defaultOpacity:h.opacity,defaultText:(null==g?e.getName(t):isFinite(g)?_r(g):g)+""});var m=this.getTextContent();if(m){var y=u.normal;m.__align=m.style.align,m.__verticalAlign=m.style.verticalAlign,m.__position=y.get("position")||"middle";var b=y.get("distance");Object(x.isArray)(b)||(b=[b,b]),m.__labelDistance=b}this.setTextConfig({position:null,local:!0,inside:!1}),Ts(this,l,f,c)},t.prototype.highlight=function(){hs(this)},t.prototype.downplay=function(){vs(this)},t.prototype.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},t.prototype.setLinePoints=function(e){var t=this.childOfName("line");JT(t.shape,e),t.dirty()},t.prototype.beforeUpdate=function(){var e=this.childOfName("fromSymbol"),t=this.childOfName("toSymbol"),n=this.getTextContent();if(e||t||n&&!n.ignore){for(var r=1,i=this.parent;i;)i.scaleX&&(r/=i.scaleX),i=i.parent;var o=this.childOfName("line");if(this.__dirty||o.__dirty){var a=o.shape.percent,s=o.pointAt(0),u=o.pointAt(a),c=C([],u,s);if(F(c,c),e&&(e.setPosition(s),_(e,0),e.scaleX=e.scaleY=r*a,e.markRedraw()),t&&(t.setPosition(u),_(t,1),t.scaleX=t.scaleY=r*a,t.markRedraw()),n&&!n.ignore){n.x=n.y=0,n.originX=n.originY=0;var l=void 0,f=void 0,d=n.__labelDistance,p=d[0]*r,h=d[1]*r,v=a/2,g=o.tangentAt(v),m=[g[1],-g[0]],y=o.pointAt(v);m[1]>0&&(m[0]=-m[0],m[1]=-m[1]);var b=g[0]<0?-1:1;if("start"!==n.__position&&"end"!==n.__position){var x=-Math.atan2(g[1],g[0]);u[0]<s[0]&&(x=Math.PI+x),n.rotation=x}var w=void 0;switch(n.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":w=-h,f="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":w=h,f="top";break;default:w=0,f="middle"}switch(n.__position){case"end":n.x=c[0]*p+u[0],n.y=c[1]*h+u[1],l=c[0]>.8?"left":c[0]<-.8?"right":"center",f=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":n.x=-c[0]*p+s[0],n.y=-c[1]*h+s[1],l=c[0]>.8?"right":c[0]<-.8?"left":"center",f=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=p*b+s[0],n.y=s[1]+w,l=g[0]<0?"right":"left",n.originX=-p*b,n.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=y[0],n.y=y[1]+w,l="center",n.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-p*b+u[0],n.y=u[1]+w,l=g[0]>=0?"right":"left",n.originX=p*b,n.originY=-w}n.scaleX=n.scaleY=r,n.setStyle({verticalAlign:n.__verticalAlign||f,align:n.__align||l})}}}function _(e,t){var n=e.__specifiedRotation;if(null==n){var r=o.tangentAt(t);e.attr("rotation",(1===t?-1:1)*Math.PI/2-Math.atan2(r[1],r[0]))}else e.attr("rotation",n)}},t}(ur);function tC(e){var t=e.hostModel,n=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:Qs(t)}}function nC(e){return isNaN(e[0])||isNaN(e[1])}function rC(e){return e&&!nC(e[0])&&!nC(e[1])}var iC=function(){function e(e){this.group=new ur,this._LineCtor=e||eC}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this.group,r=this._lineData;this._lineData=e,r||n.removeAll();var i=tC(e);e.diff(r).add((function(n){t._doAdd(e,n,i)})).update((function(n,o){t._doUpdate(r,e,o,n,i)})).remove((function(e){n.remove(r.getItemGraphicEl(e))})).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl((function(t,n){t.updateLayout(e,n)}),this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=tC(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){function n(e){e.isGroup||function(e){return e.animators&&e.animators.length>0}(e)||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var r=e.start;r<e.end;r++){if(rC(t.getItemLayout(r))){var i=new this._LineCtor(t,r,this._seriesScope);i.traverse(n),this.group.add(i),t.setItemGraphicEl(r,i),this._progressiveEls.push(i)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(e){Eh(this._progressiveEls||this.group,e)},e.prototype._doAdd=function(e,t,n){if(rC(e.getItemLayout(t))){var r=new this._LineCtor(e,t,n);e.setItemGraphicEl(t,r),this.group.add(r)}},e.prototype._doUpdate=function(e,t,n,r,i){var o=e.getItemGraphicEl(n);rC(t.getItemLayout(r))?(o?o.updateData(t,r,i):o=new this._LineCtor(t,r,i),t.setItemGraphicEl(r,o),this.group.add(o)):this.group.remove(o)},e}(),oC=[],aC=[],sC=[],uC=Pt,cC=V,lC=Math.abs;function fC(e,t,n){for(var r,i=e[0],o=e[1],a=e[2],s=1/0,u=n*n,c=.1,l=.1;l<=.9;l+=.1){oC[0]=uC(i[0],o[0],a[0],l),oC[1]=uC(i[1],o[1],a[1],l),(p=lC(cC(oC,t)-u))<s&&(s=p,r=l)}for(var f=0;f<32;f++){var d=r+c;aC[0]=uC(i[0],o[0],a[0],r),aC[1]=uC(i[1],o[1],a[1],r),sC[0]=uC(i[0],o[0],a[0],d),sC[1]=uC(i[1],o[1],a[1],d);var p=cC(aC,t)-u;if(lC(p)<.01)break;var h=cC(sC,t)-u;c/=2,p<0?h>=0?r+=c:r-=c:h>=0?r-=c:r+=c}return r}function dC(e,t){var n=[],r=Rt,i=[[],[],[]],o=[[],[]],a=[];t/=2,e.eachEdge((function(e,s){var u=e.getLayout(),c=e.getVisual("fromSymbol"),l=e.getVisual("toSymbol");u.__original||(u.__original=[k(u[0]),k(u[1])],u[2]&&u.__original.push(k(u[2])));var f=u.__original;if(null!=u[2]){if(O(i[0],f[0]),O(i[1],f[2]),O(i[2],f[1]),c&&"none"!==c){var d=DT(e.node1),p=fC(i,f[0],d*t);r(i[0][0],i[1][0],i[2][0],p,n),i[0][0]=n[3],i[1][0]=n[4],r(i[0][1],i[1][1],i[2][1],p,n),i[0][1]=n[3],i[1][1]=n[4]}if(l&&"none"!==l){d=DT(e.node2),p=fC(i,f[1],d*t);r(i[0][0],i[1][0],i[2][0],p,n),i[1][0]=n[1],i[2][0]=n[2],r(i[0][1],i[1][1],i[2][1],p,n),i[1][1]=n[1],i[2][1]=n[2]}O(u[0],i[0]),O(u[1],i[2]),O(u[2],i[1])}else{if(O(o[0],f[0]),O(o[1],f[1]),C(a,o[1],o[0]),F(a,a),c&&"none"!==c){d=DT(e.node1);T(o[0],o[0],a,d*t)}if(l&&"none"!==l){d=DT(e.node2);T(o[1],o[1],a,-d*t)}O(u[0],o[0]),O(u[1],o[1])}}))}function pC(e){return"view"===e.type}var hC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.init=function(e,t){var n=new A_,r=new iC,i=this.group;this._controller=new mk(t.getZr()),this._controllerHost={target:i},i.add(n.group),i.add(r.group),this._symbolDraw=n,this._lineDraw=r,this._firstRender=!0},t.prototype.render=function(e,t,n){var r=this,i=e.coordinateSystem;this._model=e;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(pC(i)){var u={x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY};this._firstRender?s.attr(u):Us(s,u,e)}dC(e.getGraph(),RT(e));var c=e.getData();o.updateData(c);var l=e.getEdgeData();a.updateData(l),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var f=e.forceLayout,d=e.get(["force","layoutAnimation"]);f&&this._startForceLayoutIteration(f,d);var p=e.get("layout");c.graph.eachNode((function(t){var n=t.dataIndex,i=t.getGraphicEl(),o=t.getModel();if(i){i.off("drag").off("dragend");var a=o.get("draggable");a&&i.on("drag",(function(o){switch(p){case"force":f.warmUp(),!r._layouting&&r._startForceLayoutIteration(f,d),f.setFixed(n),c.setItemLayout(n,[i.x,i.y]);break;case"circular":c.setItemLayout(n,[i.x,i.y]),t.setLayout({fixed:!0},!0),FT(e,"symbolSize",t,[o.offsetX,o.offsetY]),r.updateLayout(e);break;case"none":default:c.setItemLayout(n,[i.x,i.y]),MT(e.getGraph(),e),r.updateLayout(e)}})).on("dragend",(function(){f&&f.setUnfixed(n)})),i.setDraggable(a&&!!f,!!o.get("cursor")),"adjacency"===o.get(["emphasis","focus"])&&(Ia(i).focus=t.getAdjacentDataIndices())}})),c.graph.eachEdge((function(e){var t=e.getGraphicEl(),n=e.getModel().get(["emphasis","focus"]);t&&"adjacency"===n&&(Ia(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})}));var h="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),v=c.getLayout("cx"),g=c.getLayout("cy");c.graph.eachNode((function(e){UT(e,h,v,g)})),this._firstRender=!1},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,t){var n=this;!function r(){e.step((function(e){n.updateLayout(n._model),(n._layouting=!e)&&(t?n._layoutTimeout=setTimeout(r,16):r())}))}()},t.prototype._updateController=function(e,t,n){var r=this,i=this._controller,o=this._controllerHost,a=this.group;i.setPointerChecker((function(t,r,i){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(r,i)&&!_k(t,n,e)})),pC(e.coordinateSystem)?(i.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(t){yk(o,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){bk(o,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),r._updateNodeAndLinkScale(),dC(e.getGraph(),RT(e)),r._lineDraw.updateLayout(),n.updateLabelLayout()}))):i.disable()},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=RT(e);t.eachItemGraphicEl((function(e,t){e&&e.setSymbolScale(n)}))},t.prototype.updateLayout=function(e){dC(e.getGraph(),RT(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(Dh);function vC(e){return"_EC_"+e}var gC=function(){function e(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(e,t){e=null==e?""+t:""+e;var n=this._nodesMap;if(!n[vC(e)]){var r=new mC(e,t);return r.hostGraph=this,this.nodes.push(r),n[vC(e)]=r,r}},e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},e.prototype.getNodeById=function(e){return this._nodesMap[vC(e)]},e.prototype.addEdge=function(e,t,n){var r=this._nodesMap,i=this._edgesMap;if(x.isNumber(e)&&(e=this.nodes[e]),x.isNumber(t)&&(t=this.nodes[t]),e instanceof mC||(e=r[vC(e)]),t instanceof mC||(t=r[vC(t)]),e&&t){var o=e.id+"-"+t.id,a=new yC(e,t,n);return a.hostGraph=this,this._directed&&(e.outEdges.push(a),t.inEdges.push(a)),e.edges.push(a),e!==t&&t.edges.push(a),this.edges.push(a),i[o]=a,a}},e.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},e.prototype.getEdge=function(e,t){e instanceof mC&&(e=e.id),t instanceof mC&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},e.prototype.eachNode=function(e,t){for(var n=this.nodes,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&e.call(t,n[i],i)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&e.call(t,n[i],i)},e.prototype.breadthFirstTraverse=function(e,t,n,r){if(t instanceof mC||(t=this._nodesMap[vC(t)]),t){for(var i="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(r,t,null))for(var a=[t];a.length;){var s=a.shift(),u=s[i];for(o=0;o<u.length;o++){var c=u[o],l=c.node1===s?c.node2:c.node1;if(!l.__visited){if(e.call(r,l,s))return;a.push(l),l.__visited=!0}}}}},e.prototype.update=function(){for(var e=this.data,t=this.edgeData,n=this.nodes,r=this.edges,i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(i=0,o=e.count();i<o;i++)n[e.getRawIndex(i)].dataIndex=i;t.filterSelf((function(e){var n=r[t.getRawIndex(e)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0}));for(i=0,o=r.length;i<o;i++)r[i].dataIndex=-1;for(i=0,o=t.count();i<o;i++)r[t.getRawIndex(i)].dataIndex=i},e.prototype.clone=function(){for(var t=new e(this._directed),n=this.nodes,r=this.edges,i=0;i<n.length;i++)t.addNode(n[i].id,n[i].dataIndex);for(i=0;i<r.length;i++){var o=r[i];t.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return t},e}(),mC=function(){function e(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==e?"":e,this.dataIndex=null==t?-1:t}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var n=this.edges[t];n.dataIndex<0||(e.edge.push(n.dataIndex),e.node.push(n.node1.dataIndex,n.node2.dataIndex))}return e},e}(),yC=function(){function e(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=null==n?-1:n}return e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e}();function bC(e,t){return{getValue:function(n){var r=this[e][t];return r.getStore().get(r.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}x.mixin(mC,bC("hostGraph","data")),x.mixin(yC,bC("hostGraph","edgeData"));var xC=gC;function wC(e,t,n,r,i){for(var o=new xC(r),a=0;a<e.length;a++)o.addNode(x.retrieve(e[a].id,e[a].name,a),a);var s=[],u=[],c=0;for(a=0;a<t.length;a++){var l=t[a],f=l.source,d=l.target;o.addEdge(f,d,c)&&(u.push(l),s.push(x.retrieve(ti(l.id,null),f+" > "+d)),c++)}var p,h=n.get("coordinateSystem");if("cartesian2d"===h||"polar"===h)p=Ay(e,n);else{var v=bl.get(h),g=v&&v.dimensions||[];x.indexOf(g,"value")<0&&g.concat(["value"]);var m=_y(e,{coordDimensions:g,encodeDefine:n.getEncode()}).dimensions;(p=new xy(m,n)).initData(e)}var y=new xy(["value"],n);return y.initData(u,s),i&&i(p,y),cj({mainData:p,struct:o,structAttr:"graph",datas:{node:p,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var _C=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return y(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function r(){return n._categoriesData}this.legendVisualProvider=new YS(r,r),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),Kr(t,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,t){var n,r=e.edges||e.links||[],i=e.data||e.nodes||[],o=this;if(i&&r){ST(n=this)&&(n.__curvenessList=[],n.__edgeMap={},OT(n));var a=wC(i,r,this,!0,(function(e,t){e.wrapMethod("getItemModel",(function(e){var t=o._categoriesModels[e.getShallow("category")];return t&&(t.parentModel=e.parentModel,e.parentModel=t),e}));var n=_u.prototype.getModel;function r(e,t){var r=n.call(this,e,t);return r.resolveParentPath=i,r}function i(e){if(e&&("label"===e[0]||"label"===e[1])){var t=e.slice();return"label"===e[0]?t[0]="edgeLabel":"label"===e[1]&&(t[1]="edgeLabel"),t}return e}t.wrapMethod("getItemModel",(function(e){return e.resolveParentPath=i,e.getModel=r,e}))}));return x.each(a.edges,(function(e){!function(e,t,n,r){if(ST(n)){var i=kT(e,t,n),o=n.__edgeMap,a=o[ET(i)];o[i]&&!a?o[i].isForward=!0:a&&o[i]&&(a.isForward=!0,o[i].isForward=!1),o[i]=o[i]||[],o[i].push(r)}}(e.node1,e.node2,this,e.dataIndex)}),this),a.data}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,t,n){if("edge"===n){var r=this.getData(),i=this.getDataParams(e,n),o=r.graph.getEdgeByIndex(e),a=r.getName(o.node1.dataIndex),s=r.getName(o.node2.dataIndex),u=[];return null!=a&&u.push(a),null!=s&&u.push(s),rd("nameValue",{name:u.join(" > "),value:i.value,noValue:null==i.value})}return hd({series:this,dataIndex:e,multipleSeries:t})},t.prototype._updateCategoriesData=function(){var e=x.map(this.option.categories||[],(function(e){return null!=e.value?e:x.extend({value:0},e)})),t=new xy(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray((function(e){return t.getItemModel(e)}))},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Ed),SC={type:"graphRoam",event:"graphRoam",update:"none"};var OC=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},kC=function(e){function t(t){var n=e.call(this,t)||this;return n.type="pointer",n}return y(t,e),t.prototype.getDefaultShape=function(){return new OC},t.prototype.buildPath=function(e,t){var n=Math.cos,r=Math.sin,i=t.r,o=t.width,a=t.angle,s=t.x-n(a)*o*(o>=i/3?1:2),u=t.y-r(a)*o*(o>=i/3?1:2);a=t.angle-Math.PI/2,e.moveTo(s,u),e.lineTo(t.x+n(a)*o,t.y+r(a)*o),e.lineTo(t.x+n(t.angle)*i,t.y+r(t.angle)*i),e.lineTo(t.x-n(a)*o,t.y-r(a)*o),e.lineTo(s,u)},t}(ta);function EC(e,t){var n=null==e?"":e+"";return t&&(Object(x.isString)(t)?n=t.replace("{value}",n):Object(x.isFunction)(t)&&(n=t(e))),n}var jC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.render=function(e,t,n){this.group.removeAll();var r=e.get(["axisLine","lineStyle","color"]),i=function(e,t){var n=e.get("center"),r=t.getWidth(),i=t.getHeight(),o=Math.min(r,i);return{cx:wr(n[0],t.getWidth()),cy:wr(n[1],t.getHeight()),r:wr(e.get("radius"),o/2)}}(e,n);this._renderMain(e,t,n,r,i),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,r,i){var o=this.group,a=e.get("clockwise"),s=-e.get("startAngle")/180*Math.PI,u=-e.get("endAngle")/180*Math.PI,c=e.getModel("axisLine"),l=c.get("roundCap")?lS:mp,f=c.get("show"),d=c.getModel("lineStyle"),p=d.get("width"),h=[s,u];Io(h,!a);for(var v=(u=h[1])-(s=h[0]),g=s,m=0;f&&m<r.length;m++){var y=new l({shape:{startAngle:g,endAngle:u=s+v*Math.min(Math.max(r[m][0],0),1),cx:i.cx,cy:i.cy,clockwise:a,r0:i.r-p,r:i.r},silent:!0});y.setStyle({fill:r[m][1]}),y.setStyle(d.getLineStyle(["color","width"])),o.add(y),g=u}var b=function(e){if(e<=0)return r[0][1];var t;for(t=0;t<r.length;t++)if(r[t][0]>=e&&(0===t?0:r[t-1][0])<e)return r[t][1];return r[t-1][1]};this._renderTicks(e,t,n,b,i,s,u,a,p),this._renderTitleAndDetail(e,t,n,b,i),this._renderAnchor(e,i),this._renderPointer(e,t,n,b,i,s,u,a,p)},t.prototype._renderTicks=function(e,t,n,r,i,o,a,s,u){for(var c,l,f=this.group,d=i.cx,p=i.cy,h=i.r,v=+e.get("min"),g=+e.get("max"),m=e.getModel("splitLine"),y=e.getModel("axisTick"),b=e.getModel("axisLabel"),w=e.get("splitNumber"),_=y.get("splitNumber"),S=wr(m.get("length"),h),O=wr(y.get("length"),h),k=o,E=(a-o)/w,j=E/_,T=m.getModel("lineStyle").getLineStyle(),C=y.getModel("lineStyle").getLineStyle(),A=m.get("distance"),P=0;P<=w;P++){if(c=Math.cos(k),l=Math.sin(k),m.get("show")){var M=new Pp({shape:{x1:c*(h-(I=A?A+u:u))+d,y1:l*(h-I)+p,x2:c*(h-S-I)+d,y2:l*(h-S-I)+p},style:T,silent:!0});"auto"===T.stroke&&M.setStyle({stroke:r(P/w)}),f.add(M)}if(b.get("show")){var I=b.get("distance")+A,R=EC(_r(P/w*(g-v)+v),b.get("formatter")),D=r(P/w),L=c*(h-S-I)+d,N=l*(h-S-I)+p,F=b.get("rotate"),B=0;"radial"===F?(B=-k+2*Math.PI)>Math.PI/2&&(B+=Math.PI):"tangential"===F?B=-k-Math.PI/2:Object(x.isNumber)(F)&&(B=F*Math.PI/180),0===B?f.add(new Ma({style:Zs(b,{text:R,x:L,y:N,verticalAlign:l<-.8?"top":l>.8?"bottom":"middle",align:c<-.4?"left":c>.4?"right":"center"},{inheritColor:D}),silent:!0})):f.add(new Ma({style:Zs(b,{text:R,x:L,y:N,verticalAlign:"middle",align:"center"},{inheritColor:D}),silent:!0,originX:L,originY:N,rotation:B}))}if(y.get("show")&&P!==w){I=(I=y.get("distance"))?I+u:u;for(var U=0;U<=_;U++){c=Math.cos(k),l=Math.sin(k);var z=new Pp({shape:{x1:c*(h-I)+d,y1:l*(h-I)+p,x2:c*(h-O-I)+d,y2:l*(h-O-I)+p},silent:!0,style:C});"auto"===C.stroke&&z.setStyle({stroke:r((P+U/_)/w)}),f.add(z),k+=j}k-=j}else k+=E}},t.prototype._renderPointer=function(e,t,n,r,i,o,a,s,u){var c=this.group,l=this._data,f=this._progressEls,d=[],p=e.get(["pointer","show"]),h=e.getModel("progress"),v=h.get("show"),g=e.getData(),m=g.mapDimension("value"),y=+e.get("min"),b=+e.get("max"),w=[y,b],_=[o,a];function S(t,n){var r,o=g.getItemModel(t).getModel("pointer"),a=wr(o.get("width"),i.r),s=wr(o.get("length"),i.r),u=e.get(["pointer","icon"]),c=o.get("offsetCenter"),l=wr(c[0],i.r),f=wr(c[1],i.r),d=o.get("keepAspect");return(r=u?Vv(u,l-a/2,f-s,a,s,null,d):new kC({shape:{angle:-Math.PI/2,width:a,r:s,x:l,y:f}})).rotation=-(n+Math.PI/2),r.x=i.cx,r.y=i.cy,r}function O(e,t){var n=h.get("roundCap")?lS:mp,r=h.get("overlap"),a=r?h.get("width"):u/g.count(),c=r?i.r-a:i.r-(e+1)*a,l=r?i.r:i.r-e*a,f=new n({shape:{startAngle:o,endAngle:t,cx:i.cx,cy:i.cy,clockwise:s,r0:c,r:l}});return r&&(f.z2=b-g.get(m,e)%b),f}(v||p)&&(g.diff(l).add((function(t){var n=g.get(m,t);if(p){var r=S(t,o);zs(r,{rotation:-((isNaN(+n)?_[0]:xr(n,w,_,!0))+Math.PI/2)},e),c.add(r),g.setItemGraphicEl(t,r)}if(v){var i=O(t,o),a=h.get("clip");zs(i,{shape:{endAngle:xr(n,w,_,a)}},e),c.add(i),Ra(e.seriesIndex,g.dataType,t,i),d[t]=i}})).update((function(t,n){var r=g.get(m,t);if(p){var i=l.getItemGraphicEl(n),a=i?i.rotation:o,s=S(t,a);s.rotation=a,Us(s,{rotation:-((isNaN(+r)?_[0]:xr(r,w,_,!0))+Math.PI/2)},e),c.add(s),g.setItemGraphicEl(t,s)}if(v){var u=f[n],y=O(t,u?u.shape.endAngle:o),b=h.get("clip");Us(y,{shape:{endAngle:xr(r,w,_,b)}},e),c.add(y),Ra(e.seriesIndex,g.dataType,t,y),d[t]=y}})).execute(),g.each((function(e){var t=g.getItemModel(e),n=t.getModel("emphasis"),i=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(p){var s=g.getItemGraphicEl(e),u=g.getItemVisual(e,"style"),c=u.fill;if(s instanceof ua){var l=s.style;s.useStyle(Object(x.extend)({image:l.image,x:l.x,y:l.y,width:l.width,height:l.height},u))}else s.useStyle(u),"pointer"!==s.type&&s.setColor(c);s.setStyle(t.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",r(xr(g.get(m,e),w,[0,1],!0))),s.z2EmphasisLift=0,Ms(s,t),Ts(s,i,o,a)}if(v){var f=d[e];f.useStyle(g.getItemVisual(e,"style")),f.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),f.z2EmphasisLift=0,Ms(f,t),Ts(f,i,o,a)}})),this._progressEls=d)},t.prototype._renderAnchor=function(e,t){var n=e.getModel("anchor");if(n.get("show")){var r=n.get("size"),i=n.get("icon"),o=n.get("offsetCenter"),a=n.get("keepAspect"),s=Vv(i,t.cx-r/2+wr(o[0],t.r),t.cy-r/2+wr(o[1],t.r),r,r,null,a);s.z2=n.get("showAbove")?1:0,s.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(s)}},t.prototype._renderTitleAndDetail=function(e,t,n,r,i){var o=this,a=e.getData(),s=a.mapDimension("value"),u=+e.get("min"),c=+e.get("max"),l=new ur,f=[],d=[],p=e.isAnimationEnabled(),h=e.get(["pointer","showAbove"]);a.diff(this._data).add((function(e){f[e]=new Ma({silent:!0}),d[e]=new Ma({silent:!0})})).update((function(e,t){f[e]=o._titleEls[t],d[e]=o._detailEls[t]})).execute(),a.each((function(t){var n=a.getItemModel(t),o=a.get(s,t),v=new ur,g=r(xr(o,[u,c],[0,1],!0)),m=n.getModel("title");if(m.get("show")){var y=m.get("offsetCenter"),b=i.cx+wr(y[0],i.r),x=i.cy+wr(y[1],i.r);(T=f[t]).attr({z2:h?0:2,style:Zs(m,{x:b,y:x,text:a.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:g})}),v.add(T)}var w=n.getModel("detail");if(w.get("show")){var _=w.get("offsetCenter"),S=i.cx+wr(_[0],i.r),O=i.cy+wr(_[1],i.r),k=wr(w.get("width"),i.r),E=wr(w.get("height"),i.r),j=e.get(["progress","show"])?a.getItemVisual(t,"style").fill:g,T=d[t],C=w.get("formatter");T.attr({z2:h?0:2,style:Zs(w,{x:S,y:O,text:EC(o,C),width:isNaN(k)?null:k,height:isNaN(E)?null:E,align:"center",verticalAlign:"middle"},{inheritColor:j})}),au(T,{normal:w},o,(function(e){return EC(e,C)})),p&&su(T,t,a,e,{getFormattedLabel:function(e,t,n,r,i,a){return EC(a?a.interpolatedValue:o,C)}}),v.add(T)}l.add(v)})),this.group.add(l),this._titleEls=f,this._detailEls=d},t.type="gauge",t}(Dh),TC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return y(t,e),t.prototype.getInitialData=function(e,t){return GS(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(Ed);var CC=["itemStyle","opacity"],AC=function(e){function t(t,n){var r=e.call(this)||this,i=r,o=new jp,a=new Ma;return i.setTextContent(a),r.setTextGuideLine(o),r.updateData(t,n,!0),r}return y(t,e),t.prototype.updateData=function(e,t,n){var r=e.hostModel,i=e.getItemModel(t),o=e.getItemLayout(t),a=i.getModel("emphasis"),s=i.get(CC);s=null==s?1:s,n||Gs(this),this.useStyle(e.getItemVisual(t,"style")),this.style.lineJoin="round",n?(this.setShape({points:o.points}),this.style.opacity=0,zs(this,{style:{opacity:s}},r,t)):Us(this,{style:{opacity:s},shape:{points:o.points}},r,t),Ms(this,i),this._updateLabel(e,t),Ts(this,a.get("focus"),a.get("blurScope"),a.get("disabled"))},t.prototype._updateLabel=function(e,t){var n=this.getTextGuideLine(),r=this.getTextContent(),i=e.hostModel,o=e.getItemModel(t),a=e.getItemLayout(t).label,s=e.getItemVisual(t,"style"),u=s.fill;Xs(r,Qs(o),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:s.opacity,defaultText:e.getName(t)},{normal:{align:a.textAlign,verticalAlign:a.verticalAlign}}),this.setTextConfig({local:!0,inside:!!a.inside,insideStroke:u,outsideFill:u});var c=a.linePoints;n.setShape({points:c}),this.textGuideLineConfig={anchor:c?new Ce(c[0][0],c[0][1]):null},Us(r,{style:{x:a.x,y:a.y}},i,t),r.attr({rotation:a.rotation,originX:a.x,originY:a.y,z2:10}),Gx(this,Yx(o),{stroke:u})},t}(Op),PC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return y(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this._data,o=this.group;r.diff(i).add((function(e){var t=new AC(r,e);r.setItemGraphicEl(e,t),o.add(t)})).update((function(e,t){var n=i.getItemGraphicEl(t);n.updateData(r,e),o.add(n),r.setItemGraphicEl(e,n)})).remove((function(t){qs(i.getItemGraphicEl(t),e,t)})).execute(),this._data=r},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(Dh),MC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new YS(x.bind(this.getData,this),x.bind(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return GS(this,{coordDimensions:["value"],encodeDefaulter:x.curry($c,this)})},t.prototype._defaultLabelLine=function(e){Kr(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var n=this.getData(),r=e.prototype.getDataParams.call(this,t),i=n.mapDimension("value"),o=n.getSum(i);return r.percent=o?+(n.get(i,t)/o*100).toFixed(2):0,r.$vars.push("percent"),r},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(Ed);function IC(e,t){e.eachSeriesByType("funnel",(function(e){var n=e.getData(),r=n.mapDimension("value"),i=e.get("sort"),o=function(e,t){return kc(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t),a=e.get("orient"),s=o.width,u=o.height,c=function(e,t){for(var n=e.mapDimension("value"),r=e.mapArray(n,(function(e){return e})),i=[],o="ascending"===t,a=0,s=e.count();a<s;a++)i[a]=a;return Object(x.isFunction)(t)?i.sort(t):"none"!==t&&i.sort((function(e,t){return o?r[e]-r[t]:r[t]-r[e]})),i}(n,i),l=o.x,f=o.y,d="horizontal"===a?[wr(e.get("minSize"),u),wr(e.get("maxSize"),u)]:[wr(e.get("minSize"),s),wr(e.get("maxSize"),s)],p=n.getDataExtent(r),h=e.get("min"),v=e.get("max");null==h&&(h=Math.min(p[0],0)),null==v&&(v=p[1]);var g=e.get("funnelAlign"),m=e.get("gap"),y=(("horizontal"===a?s:u)-m*(n.count()-1))/n.count(),b=function(e,t){if("horizontal"===a){var i=xr(n.get(r,e)||0,[h,v],d,!0),o=void 0;switch(g){case"top":o=f;break;case"center":o=f+(u-i)/2;break;case"bottom":o=f+(u-i)}return[[t,o],[t,o+i]]}var c,p=xr(n.get(r,e)||0,[h,v],d,!0);switch(g){case"left":c=l;break;case"center":c=l+(s-p)/2;break;case"right":c=l+s-p}return[[c,t],[c+p,t]]};"ascending"===i&&(y=-y,m=-m,"horizontal"===a?l+=s:f+=u,c=c.reverse());for(var w=0;w<c.length;w++){var _=c[w],S=c[w+1],O=n.getItemModel(_);if("horizontal"===a){var k=O.get(["itemStyle","width"]);null==k?k=y:(k=wr(k,s),"ascending"===i&&(k=-k));var E=b(_,l),j=b(S,l+k);l+=k+m,n.setItemLayout(_,{points:E.concat(j.slice().reverse())})}else{var T=O.get(["itemStyle","height"]);null==T?T=y:(T=wr(T,u),"ascending"===i&&(T=-T));E=b(_,f),j=b(S,f+T);f+=T+m,n.setItemLayout(_,{points:E.concat(j.slice().reverse())})}}!function(e){var t=e.hostModel.get("orient");e.each((function(n){var r,i,o,a,s=e.getItemModel(n),u=s.getModel("label").get("position"),c=s.getModel("labelLine"),l=e.getItemLayout(n),f=l.points,d="inner"===u||"inside"===u||"center"===u||"insideLeft"===u||"insideRight"===u;if(d)"insideLeft"===u?(i=(f[0][0]+f[3][0])/2+5,o=(f[0][1]+f[3][1])/2,r="left"):"insideRight"===u?(i=(f[1][0]+f[2][0])/2-5,o=(f[1][1]+f[2][1])/2,r="right"):(i=(f[0][0]+f[1][0]+f[2][0]+f[3][0])/4,o=(f[0][1]+f[1][1]+f[2][1]+f[3][1])/4,r="center"),a=[[i,o],[i,o]];else{var p=void 0,h=void 0,v=void 0,g=void 0,m=c.get("length");0,"left"===u?(p=(f[3][0]+f[0][0])/2,h=(f[3][1]+f[0][1])/2,i=(v=p-m)-5,r="right"):"right"===u?(p=(f[1][0]+f[2][0])/2,h=(f[1][1]+f[2][1])/2,i=(v=p+m)+5,r="left"):"top"===u?(p=(f[3][0]+f[0][0])/2,o=(g=(h=(f[3][1]+f[0][1])/2)-m)-5,r="center"):"bottom"===u?(p=(f[1][0]+f[2][0])/2,o=(g=(h=(f[1][1]+f[2][1])/2)+m)+5,r="center"):"rightTop"===u?(p="horizontal"===t?f[3][0]:f[1][0],h="horizontal"===t?f[3][1]:f[1][1],"horizontal"===t?(o=(g=h-m)-5,r="center"):(i=(v=p+m)+5,r="top")):"rightBottom"===u?(p=f[2][0],h=f[2][1],"horizontal"===t?(o=(g=h+m)+5,r="center"):(i=(v=p+m)+5,r="bottom")):"leftTop"===u?(p=f[0][0],h="horizontal"===t?f[0][1]:f[1][1],"horizontal"===t?(o=(g=h-m)-5,r="center"):(i=(v=p-m)-5,r="right")):"leftBottom"===u?(p="horizontal"===t?f[1][0]:f[3][0],h="horizontal"===t?f[1][1]:f[2][1],"horizontal"===t?(o=(g=h+m)+5,r="center"):(i=(v=p-m)-5,r="right")):(p=(f[1][0]+f[2][0])/2,h=(f[1][1]+f[2][1])/2,"horizontal"===t?(o=(g=h+m)+5,r="center"):(i=(v=p+m)+5,r="left")),"horizontal"===t?i=v=p:o=g=h,a=[[p,h],[v,g]]}l.label={linePoints:a,x:i,y:o,verticalAlign:"middle",textAlign:r,inside:d}}))}(n)}))}var RC=.3;function DC(e,t,n,r){for(var i,o=[],a=0;a<n.length;a++){var s=n[a],u=e.get(e.mapDimension(s),t);i=u,("category"===r.getAxis(s).type?null==i:null==i||isNaN(i))||o.push(r.dataToPoint(u,s))}return o}function LC(e,t,n,r,i){var o=DC(e,n,r,i),a=new jp({shape:{points:o},z2:10});return t.add(a),e.setItemGraphicEl(n,a),a}function NC(e){var t=e.get("smooth",!0);return!0===t&&(t=RC),t=Ur(t),Object(x.eqNaN)(t)&&(t=0),{smooth:t}}function FC(e,t,n,r){e.useStyle(t.getItemVisual(n,"style")),e.style.fill=null,e.setShape("smooth",r.smooth);var i=t.getItemModel(n),o=i.getModel("emphasis");Ms(e,i,"lineStyle"),Ts(e,o.get("focus"),o.get("blurScope"),o.get("disabled"))}var BC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new ur,n._initialized=!1,n}return y(t,e),t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,t,n,r){this._progressiveEls=null;var i=this._dataGroup,o=e.getData(),a=this._data,s=e.coordinateSystem,u=s.dimensions,c=NC(e);if(o.diff(a).add((function(e){FC(LC(o,i,e,u,s),o,e,c)})).update((function(t,n){var r=a.getItemGraphicEl(n),i=DC(o,t,u,s);o.setItemGraphicEl(t,r),Us(r,{shape:{points:i}},e,t),Gs(r),FC(r,o,t,c)})).remove((function(e){var t=a.getItemGraphicEl(e);i.remove(t)})).execute(),!this._initialized){this._initialized=!0;var l=function(e,t,n){var r=e.model,i=e.getRect(),o=new ga({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),a="horizontal"===r.get("layout")?"width":"height";return o.setShape(a,0),zs(o,{shape:{width:i.width,height:i.height}},t,n),o}(s,e,(function(){setTimeout((function(){i.removeClipPath()}))}));i.setClipPath(l)}this._data=o},t.prototype.incrementalPrepareRender=function(e,t,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,t,n){for(var r=t.getData(),i=t.coordinateSystem,o=i.dimensions,a=NC(t),s=this._progressiveEls=[],u=e.start;u<e.end;u++){var c=LC(r,this._dataGroup,u,o,i);c.incremental=!0,FC(c,r,u,a),s.push(c)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(Dh);function UC(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var n={};return Object(x.each)(t.dimensions,(function(e){var t=+e.replace("dim","");n[e]=t})),n}}var zC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return y(t,e),t.prototype.getInitialData=function(e,t){return Ay(null,this,{useEncodeDefaulter:Object(x.bind)(UC,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var t=this.coordinateSystem,n=this.getData(),r=[];return t.eachActiveState(n,(function(t,i){e===t&&r.push(n.getRawIndex(i))})),r},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(Ed),VC=["lineStyle","opacity"],HC={seriesType:"parallel",reset:function(e,t){var n=e.coordinateSystem,r={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(e,t){n.eachActiveState(t,(function(e,n){var i=r[e];if("normal"===e&&t.hasItemOption){var o=t.getItemModel(n).get(VC,!0);null!=o&&(i=o)}t.ensureUniqueItemVisual(n,"style").opacity=i}),e.start,e.end)}}}};function WC(e){!function(e){if(e.parallel)return;var t=!1;x.each(e.series,(function(e){e&&"parallel"===e.type&&(t=!0)})),t&&(e.parallel=[{}])}(e),function(e){var t=Yr(e.parallelAxis);x.each(t,(function(t){if(x.isObject(t)){var n=t.parallelIndex||0,r=Yr(e.parallel)[n];r&&r.parallelAxisDefault&&x.merge(t,r.parallelAxisDefault,!1)}}))}(e)}var qC=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.render=function(e,t,n){this._model=e,this._api=n,this._handlers||(this._handlers={},Object(x.each)(GC,(function(e,t){n.getZr().on(t,this._handlers[t]=Object(x.bind)(e,this))}),this)),Uh(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,t){zh(this,"_throttledDispatchExpand"),Object(x.each)(this._handlers,(function(e,n){t.getZr().off(n,e)})),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(Object(x.extend)({type:"parallelAxisExpand"},e))},t.type="parallel",t}(Td),GC={mousedown:function(e){YC(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(YC(this,"click")&&t){var n=[e.offsetX,e.offsetY];if(Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2)>5)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==r.behavior&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&YC(this,"mousemove")){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),r=n.behavior;"jump"===r&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===r?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===r?null:{duration:0}})}}};function YC(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}var KC=qC,$C=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&x.merge(t,e,!0),this._initDimensions()},t.prototype.contains=function(e,t){var n=e.get("parallelIndex");return null!=n&&t.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){x.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])}),this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[],n=x.filter(this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(e){return(e.get("parallelIndex")||0)===this.componentIndex}),this);x.each(n,(function(n){e.push("dim"+n.get("dim")),t.push(n.componentIndex)}))},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(Ic),XC=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r)||this;return a.type=i||"value",a.axisIndex=o,a}return y(t,e),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}(bx);function QC(e,t,n,r,i,o){e=e||0;var a=n[1]-n[0];if(null!=i&&(i=JC(i,[0,a])),null!=o&&(o=Math.max(o,null!=i?i:0)),"all"===r){var s=Math.abs(t[1]-t[0]);s=JC(s,[0,a]),i=o=JC(s,[i,o]),r=0}t[0]=JC(t[0],n),t[1]=JC(t[1],n);var u=ZC(t,r);t[r]+=e;var c,l=i||0,f=n.slice();return u.sign<0?f[0]+=l:f[1]-=l,t[r]=JC(t[r],f),c=ZC(t,r),null!=i&&(c.sign!==u.sign||c.span<i)&&(t[1-r]=t[r]+u.sign*i),c=ZC(t,r),null!=o&&c.span>o&&(t[1-r]=t[r]+c.sign*o),t}function ZC(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function JC(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}var eA=x.each,tA=Math.min,nA=Math.max,rA=Math.floor,iA=Math.ceil,oA=_r,aA=Math.PI;function sA(e,t){return tA(nA(e,t[0]),t[1])}function uA(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function cA(e,t){var n,r,i=t.layoutLength,o=t.axisExpandWidth,a=t.axisCount,s=t.axisCollapseWidth,u=t.winInnerIndices,c=s,l=!1;return e<u[0]?(n=e*s,r=s):e<=u[1]?(n=t.axisExpandWindow0Pos+e*o-t.axisExpandWindow[0],c=o,l=!0):(n=i-(a-1-e)*s,r=s),{position:n,axisNameAvailableWidth:c,axisLabelShow:l,nameTruncateMaxWidth:r}}var lA=function(){function e(e,t,n){this.type="parallel",this._axesMap=x.createHashMap(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var r=e.dimensions,i=e.parallelAxisIndex;eA(r,(function(e,n){var r=i[n],o=t.getComponent("parallelAxis",r),a=this._axesMap.set(e,new XC(e,Db(o),[0,0],o.get("type"),r)),s="category"===a.type;a.onBand=s&&o.get("boundaryGap"),a.inverse=o.get("inverse"),o.axis=a,a.model=o,a.coordinateSystem=o.coordinateSystem=this}),this)},e.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,r=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],a=e[i];return o>=n&&o<=n+t.axisLength&&a>=r&&a<=r+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(e,t){t.eachSeries((function(n){if(e.contains(n,t)){var r=n.getData();eA(this.dimensions,(function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(r,r.mapDimension(e)),Rb(t.scale,t.model)}),this)}}),this)},e.prototype.resize=function(e,t){this._rect=kc(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e,t=this._model,n=this._rect,r=["x","y"],i=["width","height"],o=t.get("layout"),a="horizontal"===o?0:1,s=n[i[a]],u=[0,s],c=this.dimensions.length,l=sA(t.get("axisExpandWidth"),u),f=sA(t.get("axisExpandCount")||0,[0,c]),d=t.get("axisExpandable")&&c>3&&c>f&&f>1&&l>0&&s>0,p=t.get("axisExpandWindow");p?(e=sA(p[1]-p[0],u),p[1]=p[0]+e):(e=sA(l*(f-1),u),(p=[l*(t.get("axisExpandCenter")||rA(c/2))-e/2])[1]=p[0]+e);var h=(s-e)/(c-f);h<3&&(h=0);var v=[rA(oA(p[0]/l,1))+1,iA(oA(p[1]/l,1))-1],g=h/l*p[0];return{layout:o,pixelDimIndex:a,layoutBase:n[r[a]],layoutLength:s,axisBase:n[r[1-a]],axisLength:n[i[1-a]],axisExpandable:d,axisExpandWidth:l,axisCollapseWidth:h,axisExpandWindow:p,axisCount:c,winInnerIndices:v,axisExpandWindow0Pos:g}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,r=this._makeLayoutInfo(),i=r.layout;t.each((function(e){var t=[0,r.axisLength],n=e.inverse?1:0;e.setExtent(t[n],t[1-n])})),eA(n,(function(t,n){var o=(r.axisExpandable?cA:uA)(n,r),a={horizontal:{x:o.position,y:r.axisLength},vertical:{x:0,y:o.position}},s={horizontal:aA/2,vertical:0},u=[a[i].x+e.x,a[i].y+e.y],c=s[i],l=[1,0,0,1,0,0];ke(l,l,c),Oe(l,l,u),this._axesLayout[t]={position:u,rotation:c,transform:l,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},e.prototype.getAxis=function(e){return this._axesMap.get(e)},e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},e.prototype.eachActiveState=function(e,t,n,r){null==n&&(n=0),null==r&&(r=e.count());var i=this._axesMap,o=this.dimensions,a=[],s=[];x.each(o,(function(t){a.push(e.mapDimension(t)),s.push(i.get(t).model)}));for(var u=this.hasAxisBrushed(),c=n;c<r;c++){var l=void 0;if(u){l="active";for(var f=e.getValues(a,c),d=0,p=o.length;d<p;d++){if("inactive"===s[d].getActiveState(f[d])){l="inactive";break}}}else l="normal";t(l,c)}},e.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,r=0,i=e.length;r<i;r++)"normal"!==t.get(e[r]).model.getActiveState()&&(n=!0);return n},e.prototype.axisCoordToPoint=function(e,t){return hh([e,0],this._axesLayout[t].transform)},e.prototype.getAxisLayout=function(e){return x.clone(this._axesLayout[e])},e.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,r=t.axisExpandWindow.slice(),i=r[1]-r[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:r};var a,s=e[n]-t.layoutBase-t.axisExpandWindow0Pos,u="slide",c=t.axisCollapseWidth,l=this._model.get("axisExpandSlideTriggerArea"),f=null!=l[0];if(c)f&&c&&s<i*l[0]?(u="jump",a=s-i*l[2]):f&&c&&s>i*(1-l[0])?(u="jump",a=s-i*(1-l[2])):(a=s-i*l[1])>=0&&(a=s-i*(1-l[1]))<=0&&(a=0),(a*=t.axisExpandWidth/c)?QC(a,r,o,"all"):u="none";else{var d=r[1]-r[0];(r=[nA(0,o[1]*s/d-d/2)])[1]=tA(o[1],r[0]+d),r[0]=r[1]-d}return{axisExpandWindow:r,behavior:u}},e}();var fA={create:function(e,t){var n=[];return e.eachComponent("parallel",(function(r,i){var o=new lA(r,e,t);o.name="parallel_"+i,o.resize(r,t),r.coordinateSystem=o,o.model=r,n.push(o)})),e.eachSeries((function(e){if("parallel"===e.get("coordinateSystem")){var t=e.getReferringComponents("parallel",ci).models[0];e.coordinateSystem=t.coordinateSystem}})),n}},dA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.activeIntervals=[],n}return y(t,e),t.prototype.getAreaSelectStyle=function(){return ki([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var t=this.activeIntervals=x.clone(e);if(t)for(var n=t.length-1;n>=0;n--)Sr(t[n])},t.prototype.getActiveState=function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(+e))return"inactive";if(1===t.length){var n=t[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var r=0,i=t.length;r<i;r++)if(t[r][0]<=e&&e<=t[r][1])return"active";return"inactive"},t}(Ic);x.mixin(dA,zb);var pA=dA,hA=!0,vA=Math.min,gA=Math.max,mA=Math.pow,yA=1e4,bA=6,xA=6,wA={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},_A={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},SA={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},OA=0,kA=function(e){function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new ur,n._uid="brushController_"+OA++,Object(x.each)(ZA,(function(e,t){this._handlers[t]=Object(x.bind)(e,this)}),n),n}return y(t,e),t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var t=this._zr;this._enableGlobalPan||function(e,t,n){pk(e)[t]=n}(t,"globalPan",this._uid),Object(x.each)(this._handlers,(function(e,n){t.on(n,e)})),this._brushType=e.brushType,this._brushOption=Object(x.merge)(Object(x.clone)(SA),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;!function(e,t,n){var r=pk(e);r[t]===n&&(r[t]=null)}(e,"globalPan",this._uid),Object(x.each)(this._handlers,(function(t,n){e.off(n,t)})),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};Object(x.each)(e,(function(e){t[e.panelId]=Object(x.clone)(e)}))}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=t.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=Object(x.map)(e,(function(e){return Object(x.merge)(Object(x.clone)(SA),e,!0)}));var t="\0-brush-index-",n=this._covers,r=this._covers=[],i=this,o=this._creatingCover;return new Xm(n,e,(function(e,t){return a(e.__brushOption,t)}),a).add(s).update(s).remove((function(e){n[e]!==o&&i.group.remove(n[e])})).execute(),this;function a(e,n){return(null!=e.id?e.id:t+n)+"-"+e.brushType}function s(t,a){var s=e[t];if(null!=a&&n[a]===o)r[t]=n[a];else{var u=r[t]=null!=a?(n[a].__brushOption=s,n[a]):jA(i,EA(i,s));AA(i,u)}}},t.prototype.unmount=function(){return this.enableBrush(!1),RA(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(X);function EA(e,t){var n=eP[t.brushType].createCover(e,t);return n.__brushOption=t,CA(n,t),e.group.add(n),n}function jA(e,t){var n=PA(t);return n.endCreating&&(n.endCreating(e,t),CA(t,t.__brushOption)),t}function TA(e,t){var n=t.__brushOption;PA(t).updateCoverShape(e,t,n.range,n)}function CA(e,t){var n=t.z;null==n&&(n=yA),e.traverse((function(e){e.z=n,e.z2=n}))}function AA(e,t){PA(t).updateCommon(e,t),TA(e,t)}function PA(e){return eP[e.__brushOption.brushType]}function MA(e,t,n){var r,i=e._panels;if(!i)return hA;var o=e._transform;return Object(x.each)(i,(function(e){e.isTargetByCursor(t,n,o)&&(r=e)})),r}function IA(e,t){var n=e._panels;if(!n)return hA;var r=t.__brushOption.panelId;return null!=r?n[r]:hA}function RA(e){var t=e._covers,n=t.length;return Object(x.each)(t,(function(t){e.group.remove(t)}),e),t.length=0,!!n}function DA(e,t){var n=Object(x.map)(e._covers,(function(e){var t=e.__brushOption,n=Object(x.clone)(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}}));e.trigger("brush",{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function LA(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function NA(e,t,n,r){var i=new ur;return i.add(new ga({name:"main",style:zA(n),silent:!0,draggable:!0,cursor:"move",drift:Object(x.curry)(WA,e,t,i,["n","s","w","e"]),ondragend:Object(x.curry)(DA,t,{isEnd:!0})})),Object(x.each)(r,(function(n){i.add(new ga({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(x.curry)(WA,e,t,i,n),ondragend:Object(x.curry)(DA,t,{isEnd:!0})}))})),i}function FA(e,t,n,r){var i=r.brushStyle.lineWidth||0,o=gA(i,xA),a=n[0][0],s=n[1][0],u=a-i/2,c=s-i/2,l=n[0][1],f=n[1][1],d=l-o+i/2,p=f-o+i/2,h=l-a,v=f-s,g=h+i,m=v+i;UA(e,t,"main",a,s,h,v),r.transformable&&(UA(e,t,"w",u,c,o,m),UA(e,t,"e",d,c,o,m),UA(e,t,"n",u,c,g,o),UA(e,t,"s",u,p,g,o),UA(e,t,"nw",u,c,o,o),UA(e,t,"ne",d,c,o,o),UA(e,t,"sw",u,p,o,o),UA(e,t,"se",d,p,o,o))}function BA(e,t){var n=t.__brushOption,r=n.transformable,i=t.childAt(0);i.useStyle(zA(n)),i.attr({silent:!r,cursor:r?"move":"default"}),Object(x.each)([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var i=t.childOfName(n.join("")),o=1===n.length?HA(e,n[0]):function(e,t){var n=[HA(e,t[0]),HA(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}(e,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?_A[o]+"-resize":null})}))}function UA(e,t,n,r,i,o,a){var s,u,c,l,f,d=t.childOfName(n);d&&d.setShape((s=YA(e,t,[[r,i],[r+o,i+a]]),u=vA(s[0][0],s[1][0]),c=vA(s[0][1],s[1][1]),l=gA(s[0][0],s[1][0]),f=gA(s[0][1],s[1][1]),{x:u,y:c,width:l-u,height:f-c}))}function zA(e){return Object(x.defaults)({strokeNoScale:!0},e.brushStyle)}function VA(e,t,n,r){var i=[vA(e,n),vA(t,r)],o=[gA(e,n),gA(t,r)];return[[i[0],o[0]],[i[1],o[1]]]}function HA(e,t){return{left:"w",right:"e",top:"n",bottom:"s"}[vh({w:"left",e:"right",n:"top",s:"bottom"}[t],function(e){return ph(e.group)}(e))]}function WA(e,t,n,r,i,o){var a=n.__brushOption,s=e.toRectRange(a.range),u=GA(t,i,o);Object(x.each)(r,(function(e){var t=wA[e];s[t[0]][t[1]]+=u[t[0]]})),a.range=e.fromRectRange(VA(s[0][0],s[1][0],s[0][1],s[1][1])),AA(t,n),DA(t,{isEnd:!1})}function qA(e,t,n,r){var i=t.__brushOption.range,o=GA(e,n,r);Object(x.each)(i,(function(e){e[0]+=o[0],e[1]+=o[1]})),AA(e,t),DA(e,{isEnd:!1})}function GA(e,t,n){var r=e.group,i=r.transformCoordToLocal(t,n),o=r.transformCoordToLocal(0,0);return[i[0]-o[0],i[1]-o[1]]}function YA(e,t,n){var r=IA(e,t);return r&&r!==hA?r.clipPath(n,e._transform):Object(x.clone)(n)}function KA(e){var t=e.event;t.preventDefault&&t.preventDefault()}function $A(e,t,n){return e.childOfName("main").contain(t,n)}function XA(e,t,n,r){var i,o=e._creatingCover,a=e._creatingPanel,s=e._brushOption;if(e._track.push(n.slice()),function(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],r=t[0],i=n[0]-r[0],o=n[1]-r[1];return mA(i*i+o*o,.5)>bA}(e)||o){if(a&&!o){"single"===s.brushMode&&RA(e);var u=Object(x.clone)(s);u.brushType=QA(u.brushType,a),u.panelId=a===hA?null:a.panelId,o=e._creatingCover=EA(e,u),e._covers.push(o)}if(o){var c=eP[QA(e._brushType,a)];o.__brushOption.range=c.getCreatingRange(YA(e,o,e._track)),r&&(jA(e,o),c.updateCommon(e,o)),TA(e,o),i={isEnd:r}}}else r&&"single"===s.brushMode&&s.removeOnClick&&MA(e,t,n)&&RA(e)&&(i={isEnd:r,removeOnClick:!0});return i}function QA(e,t){return"auto"===e?t.defaultBrushType:e}var ZA={mousedown:function(e){if(this._dragging)JA(this,e);else if(!e.target||!e.target.draggable){KA(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null,(this._creatingPanel=MA(this,e,t))&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,r=this.group.transformCoordToLocal(t,n);if(function(e,t,n){if(e._brushType&&!function(e,t,n){var r=e._zr;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}(e,t.offsetX,t.offsetY)){var r=e._zr,i=e._covers,o=MA(e,t,n);if(!e._dragging)for(var a=0;a<i.length;a++){var s=i[a].__brushOption;if(o&&(o===hA||s.panelId===o.panelId)&&eP[s.brushType].contain(i[a],n[0],n[1]))return}o&&r.setCursorStyle("crosshair")}}(this,e,r),this._dragging){KA(e);var i=XA(this,e,r,!1);i&&DA(this,i)}},mouseup:function(e){JA(this,e)}};function JA(e,t){if(e._dragging){KA(t);var n=t.offsetX,r=t.offsetY,i=e.group.transformCoordToLocal(n,r),o=XA(e,t,i,!0);e._dragging=!1,e._track=[],e._creatingCover=null,o&&DA(e,o)}}var eP={lineX:tP(0),lineY:tP(1),rect:{createCover:function(e,t){function n(e){return e}return NA({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=LA(e);return VA(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){FA(e,t,n,r)},updateCommon:BA,contain:$A},polygon:{createCover:function(e,t){var n=new ur;return n.add(new jp({name:"main",style:zA(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Op({name:"main",draggable:!0,drift:Object(x.curry)(qA,e,t),ondragend:Object(x.curry)(DA,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:YA(e,t,n)})},updateCommon:BA,contain:$A}};function tP(e){return{createCover:function(t,n){return NA({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var n=LA(t);return[vA(n[0][e],n[1][e]),gA(n[0][e],n[1][e])]},updateCoverShape:function(t,n,r,i){var o,a=IA(t,n);if(a!==hA&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(e);else{var s=t._zr;o=[0,[s.getWidth(),s.getHeight()][1-e]]}var u=[r,o];e&&u.reverse(),FA(t,n,u,i)},updateCommon:BA,contain:$A}}var nP=kA;function rP(e){return e=aP(e),function(t){return yh(t,e)}}function iP(e,t){return e=aP(e),function(n){var r=null!=t?t:n,i=r?e.width:e.height,o=r?e.x:e.y;return[o,o+(i||0)]}}function oP(e,t,n){var r=aP(e);return function(e,i){return r.contain(i[0],i[1])&&!_k(e,t,n)}}function aP(e){return Fe.create(e)}var sP=["axisLine","axisTickLabel","axisName"];var uP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new nP(n.getZr())).on("brush",x.bind(this._onBrush,this))},t.prototype.render=function(e,t,n,r){if(!function(e,t,n){return n&&"axisAreaSelect"===n.type&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}(e,t,r)){this.axisModel=e,this.api=n,this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new ur,this.group.add(this._axisGroup),e.get("show")){var o=function(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}(e,t),a=o.coordinateSystem,s=e.getAreaSelectStyle(),u=s.width,c=e.axis.dim,l=a.getAxisLayout(c),f=x.extend({strokeContainThreshold:u},l),d=new AO(e,f);x.each(sP,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(f,s,e,o,u,n),mh(i,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,r,i,o){var a=n.axis.getExtent(),s=a[1]-a[0],u=Math.min(30,.1*Math.abs(s)),c=Fe.create({x:a[0],y:-i/2,width:s,height:i});c.x-=u,c.width+=2*u,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:rP(c),isTargetByCursor:oP(c,o,r),getLinearBrushOtherExtent:iP(c,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(function(e){var t=e.axis;return x.map(e.activeIntervals,(function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}}))}(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,r=n.axis,i=x.map(t,(function(e){return[r.coordToData(e.range[0],!0),r.coordToData(e.range[1],!0)]}));(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:i})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(Td),cP={type:"axisAreaSelect",event:"axisAreaSelected"};var lP={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function fP(e){e.registerComponentView(KC),e.registerComponentModel($C),e.registerCoordinateSystem("parallel",fA),e.registerPreprocessor(WC),e.registerComponentModel(pA),e.registerComponentView(uP),sO(e,"parallel",pA,lP),function(e){e.registerAction(cP,(function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},(function(t){t.axis.model.setActiveIntervals(e.intervals)}))})),e.registerAction("parallelAxisExpand",(function(e,t){t.eachComponent({mainType:"parallel",query:e},(function(t){t.setAxisExpand(e)}))}))}(e)}var dP=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0},pP=function(e){function t(t){return e.call(this,t)||this}return y(t,e),t.prototype.getDefaultShape=function(){return new dP},t.prototype.buildPath=function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),"vertical"===t.orient?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},t.prototype.highlight=function(){hs(this)},t.prototype.downplay=function(){vs(this)},t}(ta);var hP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return y(t,e),t.prototype.render=function(e,t,n){var r=this,i=e.getGraph(),o=this.group,a=e.layoutInfo,s=a.width,u=a.height,c=e.getData(),l=e.getData("edge"),f=e.get("orient");this._model=e,o.removeAll(),o.x=a.x,o.y=a.y,i.eachEdge((function(t){var n=new pP,r=Ia(n);r.dataIndex=t.dataIndex,r.seriesIndex=e.seriesIndex,r.dataType="edge";var i,a,c,d,p,h,v,g,m=t.getModel(),y=m.getModel("lineStyle"),b=y.get("curveness"),w=t.node1.getLayout(),_=t.node1.getModel(),S=_.get("localX"),O=_.get("localY"),k=t.node2.getLayout(),E=t.node2.getModel(),j=E.get("localX"),T=E.get("localY"),C=t.getLayout();switch(n.shape.extent=Math.max(1,C.dy),n.shape.orient=f,"vertical"===f?(i=(null!=S?S*s:w.x)+C.sy,a=(null!=O?O*u:w.y)+w.dy,c=(null!=j?j*s:k.x)+C.ty,p=i,h=a*(1-b)+(d=null!=T?T*u:k.y)*b,v=c,g=a*b+d*(1-b)):(i=(null!=S?S*s:w.x)+w.dx,a=(null!=O?O*u:w.y)+C.sy,p=i*(1-b)+(c=null!=j?j*s:k.x)*b,h=a,v=i*b+c*(1-b),g=d=(null!=T?T*u:k.y)+C.ty),n.setShape({x1:i,y1:a,x2:c,y2:d,cpx1:p,cpy1:h,cpx2:v,cpy2:g}),n.useStyle(y.getItemStyle()),n.style.fill){case"source":n.style.fill=t.node1.getVisual("color"),n.style.decal=t.node1.getVisual("style").decal;break;case"target":n.style.fill=t.node2.getVisual("color"),n.style.decal=t.node2.getVisual("style").decal;break;case"gradient":var A=t.node1.getVisual("color"),P=t.node2.getVisual("color");Object(x.isString)(A)&&Object(x.isString)(P)&&(n.style.fill=new Vp(0,0,+("horizontal"===f),+("vertical"===f),[{color:A,offset:0},{color:P,offset:1}]))}var M=m.getModel("emphasis");Ms(n,m,"lineStyle",(function(e){return e.getItemStyle()})),o.add(n),l.setItemGraphicEl(t.dataIndex,n);var I=M.get("focus");Ts(n,"adjacency"===I?t.getAdjacentDataIndices():I,M.get("blurScope"),M.get("disabled")),Ia(n).dataType="edge"})),i.eachNode((function(t){var n=t.getLayout(),r=t.getModel(),i=r.get("localX"),a=r.get("localY"),l=r.getModel("emphasis"),f=new ga({shape:{x:null!=i?i*s:n.x,y:null!=a?a*u:n.y,width:n.dx,height:n.dy},style:r.getModel("itemStyle").getItemStyle(),z2:10});Xs(f,Qs(r),{labelFetcher:e,labelDataIndex:t.dataIndex,defaultText:t.id}),f.disableLabelAnimation=!0,f.setStyle("fill",t.getVisual("color")),f.setStyle("decal",t.getVisual("style").decal),Ms(f,r),o.add(f),c.setItemGraphicEl(t.dataIndex,f),Ia(f).dataType="node";var d=l.get("focus");Ts(f,"adjacency"===d?t.getAdjacentDataIndices():d,l.get("blurScope"),l.get("disabled"))})),c.eachItemGraphicEl((function(t,i){c.getItemModel(i).get("draggable")&&(t.drift=function(t,o){r._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:c.getRawIndex(i),localX:this.shape.x/s,localY:this.shape.y/u})},t.ondragend=function(){r._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")})),!this._data&&e.isAnimationEnabled()&&o.setClipPath(function(e,t,n){var r=new ga({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return zs(r,{shape:{width:e.width+20}},t,n),r}(o.getBoundingRect(),e,(function(){o.removeClipPath()}))),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(Dh),vP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.getInitialData=function(e,t){var n=e.edges||e.links,r=e.data||e.nodes,i=e.levels;this.levelModels=[];for(var o=this.levelModels,a=0;a<i.length;a++)null!=i[a].depth&&i[a].depth>=0&&(o[i[a].depth]=new _u(i[a],this,t));if(r&&n)return wC(r,n,this,!0,(function(e,t){e.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,r=n.getData().getItemLayout(t);if(r){var i=r.depth,o=n.levelModels[i];o&&(e.parentModel=o)}return e})),t.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,r=n.getGraph().getEdgeByIndex(t).node1.getLayout();if(r){var i=r.depth,o=n.levelModels[i];o&&(e.parentModel=o)}return e}))})).data},t.prototype.setNodePosition=function(e,t){var n=(this.option.data||this.option.nodes)[e];n.localX=t[0],n.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function r(e){return isNaN(e)||null==e}if("edge"===n){var i=this.getDataParams(e,n),o=i.data,a=i.value;return rd("nameValue",{name:o.source+" -- "+o.target,value:a,noValue:r(a)})}var s=this.getGraph().getNodeByIndex(e).getLayout().value,u=this.getDataParams(e,n).data.name;return rd("nameValue",{name:null!=u?u+"":null,value:s,noValue:r(s)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var r=e.prototype.getDataParams.call(this,t,n);if(null==r.value&&"node"===n){var i=this.getGraph().getNodeByIndex(t).getLayout().value;r.value=i}return r},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(Ed);function gP(e,t){e.eachSeriesByType("sankey",(function(e){var n=e.get("nodeWidth"),r=e.get("nodeGap"),i=function(e,t){return kc(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t);e.layoutInfo=i;var o=i.width,a=i.height,s=e.getGraph(),u=s.nodes,c=s.edges;!function(e){x.each(e,(function(e){var t=EP(e.outEdges,kP),n=EP(e.inEdges,kP),r=e.getValue()||0,i=Math.max(t,n,r);e.setLayout({value:i},!0)}))}(u),function(e,t,n,r,i,o,a,s,u){(function(e,t,n,r,i,o,a){for(var s=[],u=[],c=[],l=[],f=0,d=0;d<t.length;d++)s[d]=1;for(d=0;d<e.length;d++)u[d]=e[d].inEdges.length,0===u[d]&&c.push(e[d]);var p=-1;for(;c.length;){for(var h=0;h<c.length;h++){var v=c[h],g=v.hostGraph.data.getRawDataItem(v.dataIndex),m=null!=g.depth&&g.depth>=0;m&&g.depth>p&&(p=g.depth),v.setLayout({depth:m?g.depth:f},!0),"vertical"===o?v.setLayout({dy:n},!0):v.setLayout({dx:n},!0);for(var y=0;y<v.outEdges.length;y++){var b=v.outEdges[y],w=t.indexOf(b);s[w]=0;var _=b.node2,S=e.indexOf(_);0==--u[S]&&l.indexOf(_)<0&&l.push(_)}}++f,c=l,l=[]}for(d=0;d<s.length;d++)if(1===s[d])throw new Error("Sankey is a DAG, the original data has cycle!");var O=p>f-1?p:f-1;a&&"left"!==a&&function(e,t,n,r){if("right"===t){for(var i=[],o=e,a=0;o.length;){for(var s=0;s<o.length;s++){var u=o[s];u.setLayout({skNodeHeight:a},!0);for(var c=0;c<u.inEdges.length;c++){var l=u.inEdges[c];i.indexOf(l.node1)<0&&i.push(l.node1)}}o=i,i=[],++a}x.each(e,(function(e){mP(e)||e.setLayout({depth:Math.max(0,r-e.getLayout().skNodeHeight)},!0)}))}else"justify"===t&&function(e,t){x.each(e,(function(e){mP(e)||e.outEdges.length||e.setLayout({depth:t},!0)}))}(e,r)}(e,a,0,O);!function(e,t,n){x.each(e,(function(e){var r=e.getLayout().depth*t;"vertical"===n?e.setLayout({y:r},!0):e.setLayout({x:r},!0)}))}(e,"vertical"===o?(i-n)/O:(r-n)/O,o)})(e,t,n,i,o,s,u),function(e,t,n,r,i,o,a){var s=function(e,t){var n=[],r="vertical"===t?"y":"x",i=pi(e,(function(e){return e.getLayout()[r]}));return i.keys.sort((function(e,t){return e-t})),x.each(i.keys,(function(e){n.push(i.buckets.get(e))})),n}(e,a);(function(e,t,n,r,i,o){var a=1/0;x.each(e,(function(e){var t=e.length,s=0;x.each(e,(function(e){s+=e.getLayout().value}));var u="vertical"===o?(r-(t-1)*i)/s:(n-(t-1)*i)/s;u<a&&(a=u)})),x.each(e,(function(e){x.each(e,(function(e,t){var n=e.getLayout().value*a;"vertical"===o?(e.setLayout({x:t},!0),e.setLayout({dx:n},!0)):(e.setLayout({y:t},!0),e.setLayout({dy:n},!0))}))})),x.each(t,(function(e){var t=+e.getValue()*a;e.setLayout({dy:t},!0)}))})(s,t,n,r,i,a),yP(s,i,n,r,a);for(var u=1;o>0;o--)bP(s,u*=.99,a),yP(s,i,n,r,a),jP(s,u,a),yP(s,i,n,r,a)}(e,t,o,i,r,a,s),function(e,t){var n="vertical"===t?"x":"y";x.each(e,(function(e){e.outEdges.sort((function(e,t){return e.node2.getLayout()[n]-t.node2.getLayout()[n]})),e.inEdges.sort((function(e,t){return e.node1.getLayout()[n]-t.node1.getLayout()[n]}))})),x.each(e,(function(e){var t=0,n=0;x.each(e.outEdges,(function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy})),x.each(e.inEdges,(function(e){e.setLayout({ty:n},!0),n+=e.getLayout().dy}))}))}(e,s)}(u,c,n,r,o,a,0!==x.filter(u,(function(e){return 0===e.getLayout().value})).length?0:e.get("layoutIterations"),e.get("orient"),e.get("nodeAlign"))}))}function mP(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function yP(e,t,n,r,i){var o="vertical"===i?"x":"y";x.each(e,(function(e){var a,s,u;e.sort((function(e,t){return e.getLayout()[o]-t.getLayout()[o]}));for(var c=0,l=e.length,f="vertical"===i?"dx":"dy",d=0;d<l;d++)(u=c-(s=e[d]).getLayout()[o])>0&&(a=s.getLayout()[o]+u,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),c=s.getLayout()[o]+s.getLayout()[f]+t;if((u=c-t-("vertical"===i?r:n))>0){a=s.getLayout()[o]-u,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0),c=a;for(d=l-2;d>=0;--d)(u=(s=e[d]).getLayout()[o]+s.getLayout()[f]+t-c)>0&&(a=s.getLayout()[o]-u,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),c=s.getLayout()[o]}}))}function bP(e,t,n){x.each(e.slice().reverse(),(function(e){x.each(e,(function(e){if(e.outEdges.length){var r=EP(e.outEdges,xP,n)/EP(e.outEdges,kP);if(isNaN(r)){var i=e.outEdges.length;r=i?EP(e.outEdges,wP,n)/i:0}if("vertical"===n){var o=e.getLayout().x+(r-OP(e,n))*t;e.setLayout({x:o},!0)}else{var a=e.getLayout().y+(r-OP(e,n))*t;e.setLayout({y:a},!0)}}}))}))}function xP(e,t){return OP(e.node2,t)*e.getValue()}function wP(e,t){return OP(e.node2,t)}function _P(e,t){return OP(e.node1,t)*e.getValue()}function SP(e,t){return OP(e.node1,t)}function OP(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function kP(e){return e.getValue()}function EP(e,t,n){for(var r=0,i=e.length,o=-1;++o<i;){var a=+t(e[o],n);isNaN(a)||(r+=a)}return r}function jP(e,t,n){x.each(e,(function(e){x.each(e,(function(e){if(e.inEdges.length){var r=EP(e.inEdges,_P,n)/EP(e.inEdges,kP);if(isNaN(r)){var i=e.inEdges.length;r=i?EP(e.inEdges,SP,n)/i:0}if("vertical"===n){var o=e.getLayout().x+(r-OP(e,n))*t;e.setLayout({x:o},!0)}else{var a=e.getLayout().y+(r-OP(e,n))*t;e.setLayout({y:a},!0)}}}))}))}function TP(e){e.eachSeriesByType("sankey",(function(e){var t=e.getGraph().nodes;if(t.length){var n=1/0,r=-1/0;x.each(t,(function(e){var t=e.getLayout().value;t<n&&(n=t),t>r&&(r=t)})),x.each(t,(function(t){var i=new eT({type:"color",mappingMethod:"linear",dataExtent:[n,r],visual:e.get("color")}).mapValueToVisual(t.getLayout().value),o=t.getModel().get(["itemStyle","color"]);null!=o?(t.setVisual("color",o),t.setVisual("style",{fill:o})):(t.setVisual("color",i),t.setVisual("style",{fill:i}))}))}}))}var CP=function(){function e(){}return e.prototype.getInitialData=function(e,t){var n,r,i=t.getComponent("xAxis",this.get("xAxisIndex")),o=t.getComponent("yAxis",this.get("yAxisIndex")),a=i.get("type"),s=o.get("type");"category"===a?(e.layout="horizontal",n=i.getOrdinalMeta(),r=!0):"category"===s?(e.layout="vertical",n=o.getOrdinalMeta(),r=!0):e.layout=e.layout||"horizontal";var u=["x","y"],c="horizontal"===e.layout?0:1,l=this._baseAxisDim=u[c],f=u[1-c],d=[i,o],p=d[c].get("type"),h=d[1-c].get("type"),v=e.data;if(v&&r){var g=[];x.each(v,(function(e,t){var n;x.isArray(e)?(n=e.slice(),e.unshift(t)):x.isArray(e.value)?((n=x.extend({},e)).value=n.value.slice(),e.value.unshift(t)):n=e,g.push(n)})),e.data=g}var m=this.defaultValueDimensions,y=[{name:l,type:Jm(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:f,type:Jm(h),dimsDef:m.slice()}];return GS(this,{coordDimensions:y,dimensionsCount:m.length+1,encodeDefaulter:x.curry(Kc,y,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},e}(),AP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return y(t,e),t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(Ed);Object(x.mixin)(AP,CP,!0);var PP=AP,MP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this.group,o=this._data;this._data||i.removeAll();var a="horizontal"===e.get("layout")?1:0;r.diff(o).add((function(e){if(r.hasValue(e)){var t=DP(r.getItemLayout(e),r,e,a,!0);r.setItemGraphicEl(e,t),i.add(t)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(r.hasValue(e)){var s=r.getItemLayout(e);n?(Gs(n),LP(s,n,r,e)):n=DP(s,r,e,a),i.add(n),r.setItemGraphicEl(e,n)}else i.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&i.remove(t)})).execute(),this._data=r},t.prototype.remove=function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(e){e&&t.remove(e)}))},t.type="boxplot",t}(Dh),IP=function(){},RP=function(e){function t(t){var n=e.call(this,t)||this;return n.type="boxplotBoxPath",n}return y(t,e),t.prototype.getDefaultShape=function(){return new IP},t.prototype.buildPath=function(e,t){var n=t.points,r=0;for(e.moveTo(n[r][0],n[r][1]),r++;r<4;r++)e.lineTo(n[r][0],n[r][1]);for(e.closePath();r<n.length;r++)e.moveTo(n[r][0],n[r][1]),r++,e.lineTo(n[r][0],n[r][1])},t}(ta);function DP(e,t,n,r,i){var o=e.ends,a=new RP({shape:{points:i?NP(o,r,e):o}});return LP(e,a,t,n,i),a}function LP(e,t,n,r,i){var o=n.hostModel;(0,a[i?"initProps":"updateProps"])(t,{shape:{points:e.ends}},o,r),t.useStyle(n.getItemVisual(r,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=n.getItemModel(r),u=s.getModel("emphasis");Ms(t,s),Ts(t,u.get("focus"),u.get("blurScope"),u.get("disabled"))}function NP(e,t,n){return x.map(e,(function(e){return(e=e.slice())[t]=n.initBaseline,e}))}var FP=MP;function BP(e,t){}var UP=x.each;function zP(e){var t=function(e){var t=[],n=[];return e.eachSeriesByType("boxplot",(function(e){var r=e.getBaseAxis(),i=x.indexOf(n,r);i<0&&(i=n.length,n[i]=r,t[i]={axis:r,seriesModels:[]}),t[i].seriesModels.push(e)})),t}(e);UP(t,(function(e){var t=e.seriesModels;t.length&&(!function(e){var t,n=e.axis,r=e.seriesModels,i=r.length,o=e.boxWidthList=[],a=e.boxOffsetList=[],s=[];if("category"===n.type)t=n.getBandWidth();else{var u=0;UP(r,(function(e){u=Math.max(u,e.getData().count())}));var c=n.getExtent();t=Math.abs(c[1]-c[0])/u}UP(r,(function(e){var n=e.get("boxWidth");x.isArray(n)||(n=[n,n]),s.push([wr(n[0],t)||0,wr(n[1],t)||0])}));var l=.8*t-2,f=l/i*.3,d=(l-f*(i-1))/i,p=d/2-l/2;UP(r,(function(e,t){a.push(p),p+=f+d,o.push(Math.min(Math.max(d,s[t][0]),s[t][1]))}))}(e),UP(t,(function(t,n){!function(e,t,n){var r=e.coordinateSystem,i=e.getData(),o=n/2,a="horizontal"===e.get("layout")?0:1,s=1-a,u=["x","y"],c=i.mapDimension(u[a]),l=i.mapDimensionsAll(u[s]);if(null==c||l.length<5)return;for(var f=0;f<i.count();f++){var d=i.get(c,f),p=b(d,l[2],f),h=b(d,l[0],f),v=b(d,l[1],f),g=b(d,l[3],f),m=b(d,l[4],f),y=[];x(y,v,!1),x(y,g,!0),y.push(h,v,m,g),w(y,h),w(y,m),w(y,p),i.setItemLayout(f,{initBaseline:p[s],ends:y})}function b(e,n,o){var u,c=i.get(n,o),l=[];return l[a]=e,l[s]=c,isNaN(e)||isNaN(c)?u=[NaN,NaN]:(u=r.dataToPoint(l))[a]+=t,u}function x(e,t,n){var r=t.slice(),i=t.slice();r[a]+=o,i[a]-=o,n?e.push(r,i):e.push(i,r)}function w(e,t){var n=t.slice(),r=t.slice();n[a]-=o,r[a]+=o,e.push(n,r)}}(t,e.boxOffsetList[n],e.boxWidthList[n])})))}))}var VP={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==Bc){0,cl("")}var n=function(e,t){for(var n=[],r=[],i=(t=t||{}).boundIQR,o="none"===i||0===i,a=0;a<e.length;a++){var s=Sr(e[a].slice()),u=Fr(s,.25),c=Fr(s,.5),l=Fr(s,.75),f=s[0],d=s[s.length-1],p=(null==i?1.5:i)*(l-u),h=o?f:Math.max(f,u-p),v=o?d:Math.min(d,l+p),g=t.itemNameFormatter,m=Object(x.isFunction)(g)?g({value:a}):Object(x.isString)(g)?g.replace("{value}",a+""):a+"";n.push([m,h,u,c,l,v]);for(var y=0;y<s.length;y++){var b=s[y];if(b<h||b>v){var w=[m,b];r.push(w)}}}return{boxData:n,outliers:r}}(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};var HP=["color","borderColor"],WP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.render=function(e,t,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,n,r){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){Eh(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),n=this._data,r=this.group,i=t.getLayout("isSimpleBox"),o=e.get("clip",!0),a=e.coordinateSystem,s=a.getArea&&a.getArea();this._data||r.removeAll(),t.diff(n).add((function(n){if(t.hasValue(n)){var a=t.getItemLayout(n);if(o&&KP(s,a))return;var u=YP(a,n,!0);zs(u,{shape:{points:a.ends}},e,n),$P(u,t,n,i),r.add(u),t.setItemGraphicEl(n,u)}})).update((function(a,u){var c=n.getItemGraphicEl(u);if(t.hasValue(a)){var l=t.getItemLayout(a);o&&KP(s,l)?r.remove(c):(c?(Us(c,{shape:{points:l.ends}},e,a),Gs(c)):c=YP(l,a),$P(c,t,a,i),r.add(c),t.setItemGraphicEl(a,c))}else r.remove(c)})).remove((function(e){var t=n.getItemGraphicEl(e);t&&r.remove(t)})).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),JP(e,this.group);var t=e.get("clip",!0)?H_(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){for(var n,r=t.getData(),i=r.getLayout("isSimpleBox");null!=(n=e.next());){var o=YP(r.getItemLayout(n),n);$P(o,r,n,i),o.incremental=!0,this.group.add(o),this._progressiveEls.push(o)}},t.prototype._incrementalRenderLarge=function(e,t){JP(t,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(Dh),qP=function(){},GP=function(e){function t(t){var n=e.call(this,t)||this;return n.type="normalCandlestickBox",n}return y(t,e),t.prototype.getDefaultShape=function(){return new qP},t.prototype.buildPath=function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(ta);function YP(e,t,n){var r=e.ends;return new GP({shape:{points:n?XP(r,e):r},z2:100})}function KP(e,t){for(var n=!0,r=0;r<t.ends.length;r++)if(e.contain(t.ends[r][0],t.ends[r][1])){n=!1;break}return n}function $P(e,t,n,r){var i=t.getItemModel(n);e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.__simpleBox=r,Ms(e,i)}function XP(e,t){return x.map(e,(function(e){return(e=e.slice())[1]=t.initBaseline,e}))}var QP=function(){},ZP=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeCandlestickBox",n}return y(t,e),t.prototype.getDefaultShape=function(){return new QP},t.prototype.buildPath=function(e,t){for(var n=t.points,r=0;r<n.length;)if(this.__sign===n[r++]){var i=n[r++];e.moveTo(i,n[r++]),e.lineTo(i,n[r++])}else r+=3},t}(ta);function JP(e,t,n,r){var i=e.getData(),o=i.getLayout("largePoints"),a=new ZP({shape:{points:o},__sign:1,ignoreCoarsePointer:!0});t.add(a);var s=new ZP({shape:{points:o},__sign:-1,ignoreCoarsePointer:!0});t.add(s),eM(1,a,e,i),eM(-1,s,e,i),r&&(a.incremental=!0,s.incremental=!0),n&&n.push(a,s)}function eM(e,t,n,r){var i=n.get(["itemStyle",e>0?"borderColor":"borderColor0"])||n.get(["itemStyle",e>0?"color":"color0"]),o=n.getModel("itemStyle").getItemStyle(HP);t.useStyle(o),t.style.fill=null,t.style.stroke=i}var tM=WP,nM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return y(t,e),t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,t,n){var r=t.getItemLayout(e);return r&&n.rect(r.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(Ed);Object(x.mixin)(nM,CP,!0);var rM=nM;function iM(e){e&&x.isArray(e.series)&&x.each(e.series,(function(e){x.isObject(e)&&"k"===e.type&&(e.type="candlestick")}))}var oM=["itemStyle","borderColor"],aM=["itemStyle","borderColor0"],sM=["itemStyle","color"],uM=["itemStyle","color0"],cM={seriesType:"candlestick",plan:Cd(),performRawSeries:!0,reset:function(e,t){function n(e,t){return t.get(e>0?sM:uM)}function r(e,t){return t.get(e>0?oM:aM)}if(!t.isSeriesFiltered(e))return!e.pipelineContext.large&&{progress:function(e,t){for(var i;null!=(i=e.next());){var o=t.getItemModel(i),a=t.getItemLayout(i).sign,s=o.getItemStyle();s.fill=n(a,o),s.stroke=r(a,o)||s.fill;var u=t.ensureUniqueItemVisual(i,"style");Object(x.extend)(u,s)}}}}};function lM(e,t,n,r,i){return n>r?-1:n<r?1:t>0?e.get(i,t-1)<=r?1:-1:1}var fM={seriesType:"candlestick",plan:Cd(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),r=function(e,t){var n,r=e.getBaseAxis(),i="category"===r.type?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/t.count()),o=wr(Object(x.retrieve2)(e.get("barMaxWidth"),i),i),a=wr(Object(x.retrieve2)(e.get("barMinWidth"),1),i),s=e.get("barWidth");return null!=s?wr(s,i):Math.max(Math.min(i/2,o),a)}(e,n),i=0,o=1,a=["x","y"],s=n.getDimensionIndex(n.mapDimension(a[i])),u=Object(x.map)(n.mapDimensionsAll(a[o]),n.getDimensionIndex,n),c=u[0],l=u[1],f=u[2],d=u[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),!(s<0||u.length<4))return{progress:e.pipelineContext.large?function(e,n){var r,a,u=Qy(4*e.count),p=0,h=[],v=[],g=n.getStore();for(;null!=(a=e.next());){var m=g.get(s,a),y=g.get(c,a),b=g.get(l,a),x=g.get(f,a),w=g.get(d,a);isNaN(m)||isNaN(x)||isNaN(w)?(u[p++]=NaN,p+=3):(u[p++]=lM(g,a,y,b,l),h[i]=m,h[o]=x,r=t.dataToPoint(h,null,v),u[p++]=r?r[0]:NaN,u[p++]=r?r[1]:NaN,h[o]=w,r=t.dataToPoint(h,null,v),u[p++]=r?r[1]:NaN)}n.setLayout("largePoints",u)}:function(e,n){var a,u=n.getStore();for(;null!=(a=e.next());){var p=u.get(s,a),h=u.get(c,a),v=u.get(l,a),g=u.get(f,a),m=u.get(d,a),y=Math.min(h,v),b=Math.max(h,v),x=k(y,p),w=k(b,p),_=k(g,p),S=k(m,p),O=[];E(O,w,0),E(O,x,1),O.push(T(S),T(w),T(_),T(x)),n.setItemLayout(a,{sign:lM(u,a,h,v,l),initBaseline:h>v?w[o]:x[o],ends:O,brushRect:j(g,m,p)})}function k(e,n){var r=[];return r[i]=n,r[o]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(r)}function E(e,t,n){var o=t.slice(),a=t.slice();o[i]=dh(o[i]+r/2,1,!1),a[i]=dh(a[i]-r/2,1,!0),n?e.push(o,a):e.push(a,o)}function j(e,t,n){var a=k(e,n),s=k(t,n);return a[i]-=r/2,s[i]-=r/2,{x:a[0],y:a[1],width:o?r:s[0]-a[0],height:o?s[1]-a[1]:r}}function T(e){return e[i]=dh(e[i],1),e}}}}};function dM(e,t){var n=t.rippleEffectColor||t.color;e.eachChild((function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?n:null,fill:"fill"===t.brushType?n:null}})}))}var pM=function(e){function t(t,n){var r=e.call(this)||this,i=new E_(t,n),o=new ur;return r.add(i),r.add(o),r.updateData(t,n),r}return y(t,e),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,r=e.rippleNumber,i=this.childAt(1),o=0;o<r;o++){var a=Vv(t,-1,-1,2,2,n);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-o/r*e.period+e.effectOffset;a.animate("",!0).when(e.period,{scaleX:e.rippleScale/2,scaleY:e.rippleScale/2}).delay(s).start(),a.animateStyle(!0).when(e.period,{opacity:0}).delay(s).start(),i.add(a)}dM(i,e)},t.prototype.updateEffectAnimation=function(e){for(var t=this._effectCfg,n=this.childAt(1),r=["symbolType","period","rippleScale","rippleNumber"],i=0;i<r.length;i++){var o=r[i];if(t[o]!==e[o])return this.stopEffectAnimation(),void this.startEffectAnimation(e)}dM(n,e)},t.prototype.highlight=function(){hs(this)},t.prototype.downplay=function(){vs(this)},t.prototype.getSymbolType=function(){var e=this.childAt(0);return e&&e.getSymbolType()},t.prototype.updateData=function(e,t){var n=this,r=e.hostModel;this.childAt(0).updateData(e,t);var i=this.childAt(1),o=e.getItemModel(t),a=e.getItemVisual(t,"symbol"),s=Hv(e.getItemVisual(t,"symbolSize")),u=e.getItemVisual(t,"style"),c=u&&u.fill,l=o.getModel("emphasis");i.setScale(s),i.traverse((function(e){e.setStyle("fill",c)}));var f=Wv(e.getItemVisual(t,"symbolOffset"),s);f&&(i.x=f[0],i.y=f[1]);var d=e.getItemVisual(t,"symbolRotate");i.rotation=(d||0)*Math.PI/180||0;var p={};p.showEffectOn=r.get("showEffectOn"),p.rippleScale=o.get(["rippleEffect","scale"]),p.brushType=o.get(["rippleEffect","brushType"]),p.period=1e3*o.get(["rippleEffect","period"]),p.effectOffset=t/e.count(),p.z=r.getShallow("z")||0,p.zlevel=r.getShallow("zlevel")||0,p.symbolType=a,p.color=c,p.rippleEffectColor=o.get(["rippleEffect","color"]),p.rippleNumber=o.get(["rippleEffect","number"]),"render"===p.showEffectOn?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(e){"emphasis"===e?"render"!==p.showEffectOn&&n.startEffectAnimation(p):"normal"===e&&"render"!==p.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=p,Ts(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))},t.prototype.fadeOut=function(e){e&&e()},t}(ur),hM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.init=function(){this._symbolDraw=new A_(pM)},t.prototype.render=function(e,t,n){var r=e.getData(),i=this._symbolDraw;i.updateData(r,{clipShape:this._getClipShape(e)}),this.group.add(i.group)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},t.prototype.updateTransform=function(e,t,n){var r=e.getData();this.group.dirty();var i=nS("").reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(e){var t=e.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=Te(t.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(Dh),vM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return y(t,e),t.prototype.getInitialData=function(e,t){return Ay(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(Ed);var gM=function(e){function t(t,n,r){var i=e.call(this)||this;return i.add(i.createLine(t,n,r)),i._updateEffectSymbol(t,n),i}return y(t,e),t.prototype.createLine=function(e,t,n){return new eC(e,t,n)},t.prototype._updateEffectSymbol=function(e,t){var n=e.getItemModel(t).getModel("effect"),r=n.get("symbolSize"),i=n.get("symbol");x.isArray(r)||(r=[r,r]);var o=e.getItemVisual(t,"style"),a=n.get("color")||o&&o.stroke,s=this.childAt(1);this._symbolType!==i&&(this.remove(s),(s=Vv(i,-.5,-.5,1,1,a)).z2=100,s.culling=!0,this.add(s)),s&&(s.setStyle("shadowColor",a),s.setStyle(n.getItemStyle(["color"])),s.scaleX=r[0],s.scaleY=r[1],s.setColor(a),this._symbolType=i,this._symbolScale=r,this._updateEffectAnimation(e,n,t))},t.prototype._updateEffectAnimation=function(e,t,n){var r=this.childAt(1);if(r){var i=e.getItemLayout(n),o=1e3*t.get("period"),a=t.get("loop"),s=t.get("roundTrip"),u=t.get("constantSpeed"),c=x.retrieve(t.get("delay"),(function(t){return t/e.count()*o/3}));if(r.ignore=!0,this._updateAnimationPoints(r,i),u>0&&(o=this._getLineLength(r)/u*1e3),o!==this._period||a!==this._loop||s!==this._roundTrip){r.stopAnimation();var l=void 0;l=x.isFunction(c)?c(n):c,r.__t>0&&(l=-o*r.__t),this._animateSymbol(r,o,l,a,s)}this._period=o,this._loop=a,this._roundTrip=s}},t.prototype._animateSymbol=function(e,t,n,r,i){if(t>0){e.__t=0;var o=this,a=e.animate("",r).when(i?2*t:t,{__t:i?2:1}).delay(n).during((function(){o._updateSymbolPosition(e)}));r||a.done((function(){o.remove(e)})),a.start()}},t.prototype._getLineLength=function(e){return U(e.__p1,e.__cp1)+U(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},t.prototype.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,r=e.__cp1,i=e.__t<1?e.__t:2-e.__t,o=[e.x,e.y],a=o.slice(),s=Pt,u=Mt;o[0]=s(t[0],r[0],n[0],i),o[1]=s(t[1],r[1],n[1],i);var c=e.__t<1?u(t[0],r[0],n[0],i):u(n[0],r[0],t[0],1-i),l=e.__t<1?u(t[1],r[1],n[1],i):u(n[1],r[1],t[1],1-i);e.rotation=-Math.atan2(l,c)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==e.__lastT&&e.__lastT<e.__t?(e.scaleY=1.05*U(a,o),1===i&&(o[0]=a[0]+(o[0]-a[0])/2,o[1]=a[1]+(o[1]-a[1])/2)):1===e.__lastT?e.scaleY=2*U(t,o):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=o[0],e.y=o[1]},t.prototype.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var n=e.getItemModel(t).getModel("effect");this._updateEffectAnimation(e,n,t)},t}(ur),mM=function(e){function t(t,n,r){var i=e.call(this)||this;return i._createPolyline(t,n,r),i}return y(t,e),t.prototype._createPolyline=function(e,t,n){var r=e.getItemLayout(t),i=new jp({shape:{points:r}});this.add(i),this._updateCommonStl(e,t,n)},t.prototype.updateData=function(e,t,n){var r=e.hostModel;Us(this.childAt(0),{shape:{points:e.getItemLayout(t)}},r,t),this._updateCommonStl(e,t,n)},t.prototype._updateCommonStl=function(e,t,n){var r=this.childAt(0),i=e.getItemModel(t),o=n&&n.emphasisLineStyle,a=n&&n.focus,s=n&&n.blurScope,u=n&&n.emphasisDisabled;if(!n||e.hasItemOption){var c=i.getModel("emphasis");o=c.getModel("lineStyle").getLineStyle(),u=c.get("disabled"),a=c.get("focus"),s=c.get("blurScope")}r.useStyle(e.getItemVisual(t,"style")),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState("emphasis").style=o,Ts(this,a,s,u)},t.prototype.updateLayout=function(e,t){this.childAt(0).setShape("points",e.getItemLayout(t))},t}(ur),yM=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return y(t,e),t.prototype.createLine=function(e,t,n){return new mM(e,t,n)},t.prototype._updateAnimationPoints=function(e,t){this._points=t;for(var n=[0],r=0,i=1;i<t.length;i++){var o=t[i-1],a=t[i];r+=U(o,a),n.push(r)}if(0!==r){for(i=0;i<n.length;i++)n[i]/=r;this._offsets=n,this._length=r}else this._length=0},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var t=e.__t<1?e.__t:2-e.__t,n=this._points,r=this._offsets,i=n.length;if(r){var o,a=this._lastFrame;if(t<this._lastFramePercent){for(o=Math.min(a+1,i-1);o>=0&&!(r[o]<=t);o--);o=Math.min(o,i-2)}else{for(o=a;o<i&&!(r[o]>t);o++);o=Math.min(o-1,i-2)}var s=(t-r[o])/(r[o+1]-r[o]),u=n[o],c=n[o+1];e.x=u[0]*(1-s)+s*c[0],e.y=u[1]*(1-s)+s*c[1];var l=e.__t<1?c[0]-u[0]:u[0]-c[0],f=e.__t<1?c[1]-u[1]:u[1]-c[1];e.rotation=-Math.atan2(f,l)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=t,e.ignore=!1}},t}(gM),bM=function(){this.polyline=!1,this.curveness=0,this.segs=[]},xM=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return y(t,e),t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new bM},t.prototype.buildPath=function(e,t){var n,r=t.segs,i=t.curveness;if(t.polyline)for(n=this._off;n<r.length;){var o=r[n++];if(o>0){e.moveTo(r[n++],r[n++]);for(var a=1;a<o;a++)e.lineTo(r[n++],r[n++])}}else for(n=this._off;n<r.length;){var s=r[n++],u=r[n++],c=r[n++],l=r[n++];if(e.moveTo(s,u),i>0){var f=(s+c)/2-(u-l)*i,d=(u+l)/2-(c-s)*i;e.quadraticCurveTo(f,d,c,l)}else e.lineTo(c,l)}this.incremental&&(this._off=n,this.notClear=!0)},t.prototype.findDataIndex=function(e,t){var n=this.shape,r=n.segs,i=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s<r.length;){var u=r[s++];if(u>0)for(var c=r[s++],l=r[s++],f=1;f<u;f++){if(Do(c,l,d=r[s++],p=r[s++],o,e,t))return a}a++}else for(a=0,s=0;s<r.length;){c=r[s++],l=r[s++];var d=r[s++],p=r[s++];if(i>0){if(No(c,l,(c+d)/2-(l-p)*i,(l+p)/2-(d-c)*i,d,p,o,e,t))return a}else if(Do(c,l,d,p,o,e,t))return a;a++}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();return e=n[0],t=n[1],r.contain(e,t)?(this.hoverDataIdx=this.findDataIndex(e,t))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape.segs,n=1/0,r=1/0,i=-1/0,o=-1/0,a=0;a<t.length;){var s=t[a++],u=t[a++];n=Math.min(s,n),i=Math.max(s,i),r=Math.min(u,r),o=Math.max(u,o)}e=this._rect=new Fe(n,r,i,o)}return e},t}(ta),wM=function(){function e(){this.group=new ur}return e.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},e.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(e,t){var n=this._newAdded[0],r=t.getLayout("linesPoints"),i=n&&n.shape.segs;if(i&&i.length<2e4){var o=i.length,a=new Float32Array(o+r.length);a.set(i),a.set(r,o),n.setShape({segs:a})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:r}),this._setCommon(s,t),s.__startIndex=e.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},e.prototype._create=function(){var e=new xM({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},e.prototype._setCommon=function(e,t,n){var r=t.hostModel;e.setShape({polyline:r.get("polyline"),curveness:r.get(["lineStyle","curveness"])}),e.useStyle(r.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var i=t.getVisual("style");i&&i.stroke&&e.setStyle("stroke",i.stroke),e.setStyle("fill",null);var o=Ia(e);o.seriesIndex=r.seriesIndex,e.on("mousemove",(function(t){o.dataIndex=null;var n=e.hoverDataIdx;n>0&&(o.dataIndex=n+e.__startIndex)}))},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),_M={seriesType:"lines",plan:Cd(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get("polyline"),r=e.pipelineContext.large;return{progress:function(i,o){var a=[];if(r){var s=void 0,u=i.end-i.start;if(n){for(var c=0,l=i.start;l<i.end;l++)c+=e.getLineCoordsCount(l);s=new Float32Array(u+2*c)}else s=new Float32Array(4*u);var f=0,d=[];for(l=i.start;l<i.end;l++){var p=e.getLineCoords(l,a);n&&(s[f++]=p);for(var h=0;h<p;h++)d=t.dataToPoint(a[h],!1,d),s[f++]=d[0],s[f++]=d[1]}o.setLayout("linesPoints",s)}else for(l=i.start;l<i.end;l++){var v=o.getItemModel(l),g=(p=e.getLineCoords(l,a),[]);if(n)for(var m=0;m<p;m++)g.push(t.dataToPoint(a[m]));else{g[0]=t.dataToPoint(a[0]),g[1]=t.dataToPoint(a[1]);var y=v.get(["lineStyle","curveness"]);+y&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*y,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*y])}o.setItemLayout(l,g)}}}}}},SM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this._updateLineDraw(r,e),o=e.get("zlevel"),a=e.get(["effect","trailLength"]),s=n.getZr(),u="svg"===s.painter.getType();u||s.painter.getLayer(o).clear(!0),null==this._lastZlevel||u||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&a>0&&(u||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),i.updateData(r);var c=e.get("clip",!0)&&H_(e.coordinateSystem,!1,e);c?this.group.setClipPath(c):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData();this._updateLineDraw(r,e).incrementalPrepareUpdate(r),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,t,n){var r=e.getData(),i=e.pipelineContext;if(!this._finished||i.large||i.progressiveRender)return{update:!0};var o=_M.reset(e,t,n);o.progress&&o.progress({start:0,end:r.count(),count:r.count()},r),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,r=this._showEffect(t),i=!!t.get("polyline"),o=t.pipelineContext.large;return n&&r===this._hasEffet&&i===this._isPolyline&&o===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=o?new wM:new iC(i?r?yM:mM:r?gM:eC),this._hasEffet=r,this._isPolyline=i,this._isLargeDraw=o),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var t=e.getZr();"svg"===t.painter.getType()||null==this._lastZlevel||t.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.type="lines",t}(Dh),OM="undefined"==typeof Uint32Array?Array:Uint32Array,kM="undefined"==typeof Float64Array?Array:Float64Array;function EM(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=Object(x.map)(t,(function(e){var t={coords:[e[0].coord,e[1].coord]};return e[0].name&&(t.fromName=e[0].name),e[1].name&&(t.toName=e[1].name),Object(x.mergeAll)([t,e[0],e[1]])})))}var jM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return y(t,e),t.prototype.init=function(t){t.data=t.data||[],EM(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(EM(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=Object(x.concatArray)(this._flatCoords,t.flatCoords),this._flatCoordsOffset=Object(x.concatArray)(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e);return t.option instanceof Array?t.option:t.getShallow("coords")},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*e],r=this._flatCoordsOffset[2*e+1],i=0;i<r;i++)t[i]=t[i]||[],t[i][0]=this._flatCoords[n+2*i],t[i][1]=this._flatCoords[n+2*i+1];return r}var o=this._getCoordsFromItemModel(e);for(i=0;i<o.length;i++)t[i]=t[i]||[],t[i][0]=o[i][0],t[i][1]=o[i][1];return o.length},t.prototype._processFlatCoordsArray=function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),Object(x.isNumber)(e[0])){for(var n=e.length,r=new OM(n),i=new kM(n),o=0,a=0,s=0,u=0;u<n;){s++;var c=e[u++];r[a++]=o+t,r[a++]=c;for(var l=0;l<c;l++){var f=e[u++],d=e[u++];i[o++]=f,i[o++]=d}}return{flatCoordsOffset:new Uint32Array(r.buffer,0,a),flatCoords:i,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,t){var n=new xy(["value"],this);return n.hasItemOption=!1,n.initData(e.data,[],(function(e,t,r,i){if(e instanceof Array)return NaN;n.hasItemOption=!0;var o=e.value;return null!=o?o instanceof Array?o[i]:o:void 0})),n},t.prototype.formatTooltip=function(e,t,n){var r=this.getData().getItemModel(e),i=r.get("name");if(i)return i;var o=r.get("fromName"),a=r.get("toName"),s=[];return null!=o&&s.push(o),null!=a&&s.push(a),rd("nameValue",{name:s.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),t=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&t>0?t+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(Ed);function TM(e){return e instanceof Array||(e=[e,e]),e}var CM={seriesType:"lines",reset:function(e){var t=TM(e.get("symbol")),n=TM(e.get("symbolSize")),r=e.getData();return r.setVisual("fromSymbol",t&&t[0]),r.setVisual("toSymbol",t&&t[1]),r.setVisual("fromSymbolSize",n&&n[0]),r.setVisual("toSymbolSize",n&&n[1]),{dataEach:r.hasItemOption?function(e,t){var n=e.getItemModel(t),r=TM(n.getShallow("symbol",!0)),i=TM(n.getShallow("symbolSize",!0));r[0]&&e.setItemVisual(t,"fromSymbol",r[0]),r[1]&&e.setItemVisual(t,"toSymbol",r[1]),i[0]&&e.setItemVisual(t,"fromSymbolSize",i[0]),i[1]&&e.setItemVisual(t,"toSymbolSize",i[1])}:null}}};var AM=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Vn.d.createCanvas();this.canvas=e}return e.prototype.update=function(e,t,n,r,i,o){var a=this._getBrush(),s=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,l=this.canvas,f=l.getContext("2d"),d=e.length;l.width=t,l.height=n;for(var p=0;p<d;++p){var h=e[p],v=h[0],g=h[1],m=r(h[2]);f.globalAlpha=m,f.drawImage(a,v-c,g-c)}if(!l.width||!l.height)return l;for(var y=f.getImageData(0,0,l.width,l.height),b=y.data,x=0,w=b.length,_=this.minOpacity,S=this.maxOpacity-_;x<w;){m=b[x+3]/256;var O=4*Math.floor(255*m);if(m>0){var k=o(m)?s:u;m>0&&(m=m*S+_),b[x++]=k[O],b[x++]=k[O+1],b[x++]=k[O+2],b[x++]=k[O+3]*m*256}else x+=4}return f.putImageData(y,0,0),l},e.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Vn.d.createCanvas()),t=this.pointSize+this.blurSize,n=2*t;e.width=n,e.height=n;var r=e.getContext("2d");return r.clearRect(0,0,n,n),r.shadowOffsetX=n,r.shadowBlur=this.blurSize,r.shadowColor="#000",r.beginPath(),r.arc(-t,t,this.pointSize,0,2*Math.PI,!0),r.closePath(),r.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,r=n[t]||(n[t]=new Uint8ClampedArray(1024)),i=[0,0,0,0],o=0,a=0;a<256;a++)e[t](a/255,!0,i),r[o++]=i[0],r[o++]=i[1],r[o++]=i[2],r[o++]=i[3];return r},e}();function PM(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var MM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.render=function(e,t,n){var r;t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(n){n===e&&(r=t)}))})),this._progressiveEls=null,this.group.removeAll();var i=e.coordinateSystem;"cartesian2d"===i.type||"calendar"===i.type?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):PM(i)&&this._renderOnGeo(i,e,r,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,r){var i=t.coordinateSystem;i&&(PM(i)?this.render(t,n,r):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(t,r,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){Eh(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,t,n,r,i){var o,a,s,u,c=e.coordinateSystem,l=W_(c,"cartesian2d");if(l){var f=c.getAxis("x"),d=c.getAxis("y");0,o=f.getBandWidth()+.5,a=d.getBandWidth()+.5,s=f.scale.getExtent(),u=d.scale.getExtent()}for(var p=this.group,h=e.getData(),v=e.getModel(["emphasis","itemStyle"]).getItemStyle(),g=e.getModel(["blur","itemStyle"]).getItemStyle(),m=e.getModel(["select","itemStyle"]).getItemStyle(),y=e.get(["itemStyle","borderRadius"]),b=Qs(e),x=e.getModel("emphasis"),w=x.get("focus"),_=x.get("blurScope"),S=x.get("disabled"),O=l?[h.mapDimension("x"),h.mapDimension("y"),h.mapDimension("value")]:[h.mapDimension("time"),h.mapDimension("value")],k=n;k<r;k++){var E=void 0,j=h.getItemVisual(k,"style");if(l){var T=h.get(O[0],k),C=h.get(O[1],k);if(isNaN(h.get(O[2],k))||T<s[0]||T>s[1]||C<u[0]||C>u[1])continue;var A=c.dataToPoint([T,C]);E=new ga({shape:{x:A[0]-o/2,y:A[1]-a/2,width:o,height:a},style:j})}else{if(isNaN(h.get(O[1],k)))continue;E=new ga({z2:1,shape:c.dataToRect([h.get(O[0],k)]).contentShape,style:j})}if(h.hasItemOption){var P=h.getItemModel(k),M=P.getModel("emphasis");v=M.getModel("itemStyle").getItemStyle(),g=P.getModel(["blur","itemStyle"]).getItemStyle(),m=P.getModel(["select","itemStyle"]).getItemStyle(),y=P.get(["itemStyle","borderRadius"]),w=M.get("focus"),_=M.get("blurScope"),S=M.get("disabled"),b=Qs(P)}E.shape.r=y;var I=e.getRawValue(k),R="-";I&&null!=I[2]&&(R=I[2]+""),Xs(E,b,{labelFetcher:e,labelDataIndex:k,defaultOpacity:j.opacity,defaultText:R}),E.ensureState("emphasis").style=v,E.ensureState("blur").style=g,E.ensureState("select").style=m,Ts(E,w,_,S),E.incremental=i,i&&(E.states.emphasis.hoverLayer=!0),p.add(E),h.setItemGraphicEl(k,E),this._progressiveEls&&this._progressiveEls.push(E)}},t.prototype._renderOnGeo=function(e,t,n,r){var i=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=t.getData(),s=this._hmLayer||this._hmLayer||new AM;s.blurSize=t.get("blurSize"),s.pointSize=t.get("pointSize"),s.minOpacity=t.get("minOpacity"),s.maxOpacity=t.get("maxOpacity");var u=e.getViewRect().clone(),c=e.getRoamTransform();u.applyTransform(c);var l=Math.max(u.x,0),f=Math.max(u.y,0),d=Math.min(u.width+u.x,r.getWidth()),p=Math.min(u.height+u.y,r.getHeight()),h=d-l,v=p-f,g=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],m=a.mapArray(g,(function(t,n,r){var i=e.dataToPoint([t,n]);return i[0]-=l,i[1]-=f,i.push(r),i})),y=n.getExtent(),b="visualMap.continuous"===n.type?function(e,t){var n=e[1]-e[0];return t=[(t[0]-e[0])/n,(t[1]-e[0])/n],function(e){return e>=t[0]&&e<=t[1]}}(y,n.option.range):function(e,t,n){var r=e[1]-e[0],i=(t=x.map(t,(function(t){return{interval:[(t.interval[0]-e[0])/r,(t.interval[1]-e[0])/r]}}))).length,o=0;return function(e){var r;for(r=o;r<i;r++){if((a=t[r].interval)[0]<=e&&e<=a[1]){o=r;break}}if(r===i)for(r=o-1;r>=0;r--){var a;if((a=t[r].interval)[0]<=e&&e<=a[1]){o=r;break}}return r>=0&&r<i&&n[r]}}(y,n.getPieceList(),n.option.selected);s.update(m,h,v,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:o.color.getColorMapper()},b);var w=new ua({style:{width:h,height:v,x:l,y:f,image:s.canvas},silent:!0});this.group.add(w)},t.type="heatmap",t}(Dh),IM=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.getInitialData=function(e,t){return Ay(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=bl.get(this.get("coordinateSystem"));if(e&&e.dimensions)return"lng"===e.dimensions[0]&&"lat"===e.dimensions[1]},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(Ed);var RM=["itemStyle","borderWidth"],DM=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],LM=new Zd;function NM(e,t,n,r){var i=e.getItemLayout(t),o=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",u=(n.get("symbolRotate")||0)*Math.PI/180||0,c=n.get("symbolPatternSize")||2,l=n.isAnimationEnabled(),f={dataIndex:t,layout:i,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:l?n:null,hoverScale:l&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};!function(e,t,n,r,i){var o,a=r.valueDim,s=e.get("symbolBoundingData"),u=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),c=u.toGlobalCoord(u.dataToCoord(0)),l=1-+(n[a.wh]<=0);if(x.isArray(s)){var f=[FM(u,s[0])-c,FM(u,s[1])-c];f[1]<f[0]&&f.reverse(),o=f[l]}else o=null!=s?FM(u,s)-c:t?r.coordSysExtent[a.index][l]-c:n[a.wh];i.boundingLength=o,t&&(i.repeatCutLength=n[a.wh]);i.pxSign=o>0?1:-1}(n,o,i,r,f),function(e,t,n,r,i,o,a,s,u,c){var l,f=u.valueDim,d=u.categoryDim,p=Math.abs(n[d.wh]),h=e.getItemVisual(t,"symbolSize");l=x.isArray(h)?h.slice():null==h?["100%","100%"]:[h,h];l[d.index]=wr(l[d.index],p),l[f.index]=wr(l[f.index],r?p:Math.abs(o)),c.symbolSize=l,(c.symbolScale=[l[0]/s,l[1]/s])[f.index]*=(u.isHorizontal?-1:1)*a}(e,t,i,o,0,f.boundingLength,f.pxSign,c,r,f),function(e,t,n,r,i){var o=e.get(RM)||0;o&&(LM.attr({scaleX:t[0],scaleY:t[1],rotation:n}),LM.updateTransform(),o/=LM.getLineScale(),o*=t[r.valueDim.index]);i.valueLineWidth=o||0}(n,f.symbolScale,u,r,f);var d=f.symbolSize,p=Wv(n.get("symbolOffset"),d);return function(e,t,n,r,i,o,a,s,u,c,l,f){var d=l.categoryDim,p=l.valueDim,h=f.pxSign,v=Math.max(t[p.index]+s,0),g=v;if(r){var m=Math.abs(u),y=x.retrieve(e.get("symbolMargin"),"15%")+"",b=!1;y.lastIndexOf("!")===y.length-1&&(b=!0,y=y.slice(0,y.length-1));var w=wr(y,t[p.index]),_=Math.max(v+2*w,0),S=b?0:2*w,O=zr(r),k=O?r:JM((m+S)/_);w=(m-k*v)/2/(b?k:Math.max(k-1,1)),_=v+2*w,S=b?0:2*w,O||"fixed"===r||(k=c?JM((Math.abs(c)+S)/_):0),g=k*_-S,f.repeatTimes=k,f.symbolMargin=w}var E=h*(g/2),j=f.pathPosition=[];j[d.index]=n[d.wh]/2,j[p.index]="start"===a?E:"end"===a?u-E:u/2,o&&(j[0]+=o[0],j[1]+=o[1]);var T=f.bundlePosition=[];T[d.index]=n[d.xy],T[p.index]=n[p.xy];var C=f.barRectShape=x.extend({},n);C[p.wh]=h*Math.max(Math.abs(n[p.wh]),Math.abs(j[p.index]+E)),C[d.wh]=n[d.wh];var A=f.clipShape={};A[d.xy]=-n[d.xy],A[d.wh]=l.ecSize[d.wh],A[p.xy]=0,A[p.wh]=n[p.wh]}(n,d,i,o,0,p,s,f.valueLineWidth,f.boundingLength,f.repeatCutLength,r,f),f}function FM(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function BM(e){var t=e.symbolPatternSize,n=Vv(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function UM(e,t,n,r){var i=e.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,u=t.valueDim,c=n.repeatTimes||0,l=0,f=o[t.valueDim.index]+a+2*n.symbolMargin;for(XM(e,(function(e){e.__pictorialAnimationIndex=l,e.__pictorialRepeatTimes=c,l<c?QM(e,null,h(l),n,r):QM(e,null,{scaleX:0,scaleY:0},n,r,(function(){i.remove(e)})),l++}));l<c;l++){var d=BM(n);d.__pictorialAnimationIndex=l,d.__pictorialRepeatTimes=c,i.add(d);var p=h(l);QM(d,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},n,r)}function h(e){var t=s.slice(),r=n.pxSign,i=e;return("start"===n.symbolRepeatDirection?r>0:r<0)&&(i=c-1-e),t[u.index]=f*(i-c/2+.5)+s[u.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function zM(e,t,n,r){var i=e.__pictorialBundle,o=e.__pictorialMainPath;o?QM(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(o=e.__pictorialMainPath=BM(n),i.add(o),QM(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function VM(e,t,n){var r=x.extend({},t.barRectShape),i=e.__pictorialBarRect;i?QM(i,null,{shape:r},t,n):((i=e.__pictorialBarRect=new ga({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,e.add(i))}function HM(e,t,n,r){if(n.symbolClip){var i=e.__pictorialClipPath,o=x.extend({},n.clipShape),s=t.valueDim,u=n.animationModel,c=n.dataIndex;if(i)Us(i,{shape:o},u,c);else{o[s.wh]=0,i=new ga({shape:o}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var l={};l[s.wh]=n.clipShape[s.wh],a[r?"updateProps":"initProps"](i,{shape:l},u,c)}}}function WM(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=qM,n.isAnimationEnabled=GM,n}function qM(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function GM(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function YM(e,t,n,r){var i=new ur,o=new ur;return i.add(o),i.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?UM(i,t,n):zM(i,0,n),VM(i,n,r),HM(i,t,n,r),i.__pictorialShapeStr=$M(e,n),i.__pictorialSymbolMeta=n,i}function KM(e,t,n,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var o=[];XM(r,(function(e){o.push(e)})),r.__pictorialMainPath&&o.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),x.each(o,(function(e){Hs(e,{scaleX:0,scaleY:0},n,t,(function(){r.parent&&r.parent.remove(r)}))})),e.setItemGraphicEl(t,null)}function $M(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function XM(e,t,n){x.each(e.__pictorialBundle.children(),(function(r){r!==e.__pictorialBarRect&&t.call(n,r)}))}function QM(e,t,n,r,i,o){t&&e.attr(t),r.symbolClip&&!i?n&&e.attr(n):n&&a[i?"updateProps":"initProps"](e,n,r.animationModel,r.dataIndex,o)}function ZM(e,t,n){var r=n.dataIndex,i=n.itemModel,o=i.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),u=i.getModel(["select","itemStyle"]).getItemStyle(),c=i.getShallow("cursor"),l=o.get("focus"),f=o.get("blurScope"),d=o.get("scale");XM(e,(function(e){if(e instanceof ua){var t=e.style;e.useStyle(x.extend({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var r=e.ensureState("emphasis");r.style=a,d&&(r.scaleX=1.1*e.scaleX,r.scaleY=1.1*e.scaleY),e.ensureState("blur").style=s,e.ensureState("select").style=u,c&&(e.cursor=c),e.z2=n.z2}));var p=t.valueDim.posDesc[+(n.boundingLength>0)];Xs(e.__pictorialBarRect,Qs(i),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:S_(t.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),Ts(e,l,f,o.get("disabled"))}function JM(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var eI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.render=function(e,t,n){var r=this.group,i=e.getData(),o=this._data,a=e.coordinateSystem,s=a.getBaseAxis().isHorizontal(),u=a.master.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:a,coordSysExtent:[[u.x,u.x+u.width],[u.y,u.y+u.height]],isHorizontal:s,valueDim:DM[+s],categoryDim:DM[1-+s]};return i.diff(o).add((function(e){if(i.hasValue(e)){var t=WM(i,e),n=NM(i,e,t,c),o=YM(i,c,n);i.setItemGraphicEl(e,o),r.add(o),ZM(o,c,n)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(i.hasValue(e)){var a=WM(i,e),s=NM(i,e,a,c),u=$M(i,s);n&&u!==n.__pictorialShapeStr&&(r.remove(n),i.setItemGraphicEl(e,null),n=null),n?function(e,t,n){var r=n.animationModel,i=n.dataIndex;Us(e.__pictorialBundle,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?UM(e,t,n,!0):zM(e,t,n,!0);VM(e,n,!0),HM(e,t,n,!0)}(n,c,s):n=YM(i,c,s,!0),i.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=s,r.add(n),ZM(n,c,s)}else r.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&KM(o,e,t.__pictorialSymbolMeta.animationModel,t)})).execute(),this._data=i,this.group},t.prototype.remove=function(e,t){var n=this.group,r=this._data;e.get("animation")?r&&r.eachItemGraphicEl((function(t){KM(r,Ia(t).dataIndex,e,t)})):n.removeAll()},t.type="pictorialBar",t}(Dh),tI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return y(t,e),t.prototype.getInitialData=function(t){return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=ku(sS.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(sS);var nI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return y(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this,o=this.group,a=e.getLayerSeries(),s=r.getLayout("layoutInfo"),u=s.rect,c=s.boundaryGap;function l(e){return e.name}o.x=0,o.y=u.y+c[0];var f=new Xm(this._layersSeries||[],a,l,l),d=[];function p(t,n,s){var u=i._layers;if("remove"!==t){for(var c,l,f=[],p=[],h=a[n].indices,v=0;v<h.length;v++){var g=r.getItemLayout(h[v]),m=g.x,y=g.y0,b=g.y;f.push(m,y),p.push(m,y+b),c=r.getItemVisual(h[v],"style")}var x=r.getItemLayout(h[0]),w=e.getModel("label").get("margin"),_=e.getModel("emphasis");if("add"===t){var S=d[n]=new ur;l=new U_({shape:{points:f,stackedOnPoints:p,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),S.add(l),o.add(S),e.isAnimationEnabled()&&l.setClipPath(function(e,t,n){var r=new ga({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return zs(r,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,n),r}(l.getBoundingRect(),e,(function(){l.removeClipPath()})))}else{S=u[s];l=S.childAt(0),o.add(S),d[n]=S,Us(l,{shape:{points:f,stackedOnPoints:p}},e),Gs(l)}Xs(l,Qs(e),{labelDataIndex:h[v-1],defaultText:r.getName(h[v-1]),inheritColor:c.fill},{normal:{verticalAlign:"middle"}}),l.setTextConfig({position:null,local:!0});var O=l.getTextContent();O&&(O.x=x.x-w,O.y=x.y0+x.y/2),l.useStyle(c),r.setItemGraphicEl(n,l),Ms(l,e),Ts(l,_.get("focus"),_.get("blurScope"),_.get("disabled"))}else o.remove(u[n])}f.add(Object(x.bind)(p,this,"add")).update(Object(x.bind)(p,this,"update")).remove(Object(x.bind)(p,this,"remove")).execute(),this._layersSeries=a,this._layers=d},t.type="themeRiver",t}(Dh),rI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new YS(x.bind(this.getData,this),x.bind(this.getRawData,this))},t.prototype.fixData=function(e){var t=e.length,n={},r=pi(e,(function(e){return n.hasOwnProperty(e[0]+"")||(n[e[0]+""]=-1),e[2]})),i=[];r.buckets.each((function(e,t){i.push({name:t,dataList:e})}));for(var o=i.length,a=0;a<o;++a){for(var s=i[a].name,u=0;u<i[a].dataList.length;++u){var c=i[a].dataList[u][0]+"";n[c]=a}for(var c in n)n.hasOwnProperty(c)&&n[c]!==a&&(n[c]=a,e[t]=[c,0,s],t++)}return e},t.prototype.getInitialData=function(e,t){for(var n=this.getReferringComponents("singleAxis",ci).models[0].get("type"),r=x.filter(e.data,(function(e){return void 0!==e[2]})),i=this.fixData(r||[]),o=[],a=this.nameMap=x.createHashMap(),s=0,u=0;u<i.length;++u)o.push(i[u][2]),a.get(i[u][2])||(a.set(i[u][2],s),s++);var c=_y(i,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Jm(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,l=new xy(c,this);return l.initData(i),l},t.prototype.getLayerSeries=function(){for(var e=this.getData(),t=e.count(),n=[],r=0;r<t;++r)n[r]=r;var i=e.mapDimension("single"),o=pi(n,(function(t){return e.get("name",t)})),a=[];return o.buckets.each((function(t,n){t.sort((function(t,n){return e.get(i,t)-e.get(i,n)})),a.push({name:n,indices:t})})),a},t.prototype.getAxisTooltipData=function(e,t,n){x.isArray(e)||(e=e?[e]:[]);for(var r,i=this.getData(),o=this.getLayerSeries(),a=[],s=o.length,u=0;u<s;++u){for(var c=Number.MAX_VALUE,l=-1,f=o[u].indices.length,d=0;d<f;++d){var p=i.get(e[0],o[u].indices[d]),h=Math.abs(p-t);h<=c&&(r=p,c=h,l=o[u].indices[d])}a.push(l)}return{dataIndices:a,nestestValue:r}},t.prototype.formatTooltip=function(e,t,n){var r=this.getData();return rd("nameValue",{name:r.getName(e),value:r.get(r.mapDimension("value"),e)})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(Ed);function iI(e,t){e.eachSeriesByType("themeRiver",(function(e){var t=e.getData(),n=e.coordinateSystem,r={},i=n.getRect();r.rect=i;var o=e.get("boundaryGap"),a=n.getAxis();(r.boundaryGap=o,"horizontal"===a.orient)?(o[0]=wr(o[0],i.height),o[1]=wr(o[1],i.height),oI(t,e,i.height-o[0]-o[1])):(o[0]=wr(o[0],i.width),o[1]=wr(o[1],i.width),oI(t,e,i.width-o[0]-o[1]));t.setLayout("layoutInfo",r)}))}function oI(e,t,n){if(e.count())for(var r,i=t.coordinateSystem,o=t.getLayerSeries(),a=e.mapDimension("single"),s=e.mapDimension("value"),u=x.map(o,(function(t){return x.map(t.indices,(function(t){var n=i.dataToPoint(e.get(a,t));return n[1]=e.get(s,t),n}))})),c=function(e){for(var t=e.length,n=e[0].length,r=[],i=[],o=0,a=0;a<n;++a){for(var s=0,u=0;u<t;++u)s+=e[u][a][1];s>o&&(o=s),r.push(s)}for(var c=0;c<n;++c)i[c]=(o-r[c])/2;o=0;for(var l=0;l<n;++l){var f=r[l]+i[l];f>o&&(o=f)}return{y0:i,max:o}}(u),l=c.y0,f=n/c.max,d=o.length,p=o[0].indices.length,h=0;h<p;++h){r=l[h]*f,e.setItemLayout(o[0].indices[h],{layerIndex:0,x:u[0][h][0],y0:r,y:u[0][h][1]*f});for(var v=1;v<d;++v)r+=u[v-1][h][1]*f,e.setItemLayout(o[v].indices[h],{layerIndex:v,x:u[v][h][0],y0:r,y:u[v][h][1]*f})}}var aI=2,sI=4,uI=function(e){function t(t,n,r,i){var o=e.call(this)||this;o.z2=aI,o.textConfig={inside:!0},Ia(o).seriesIndex=n.seriesIndex;var a=new Ma({z2:sI,silent:t.getModel().get(["label","silent"])});return o.setTextContent(a),o.updateData(!0,t,n,r,i),o}return y(t,e),t.prototype.updateData=function(e,t,n,r,i){this.node=t,t.piece=this,n=n||this._seriesModel,r=r||this._ecModel;var o=this;Ia(o).dataIndex=t.dataIndex;var a=t.getModel(),s=a.getModel("emphasis"),u=t.getLayout(),c=x.extend({},u);c.label=null;var l=t.getVisual("style");l.lineJoin="bevel";var f=t.getVisual("decal");f&&(l.decal=xg(f,i));var d=HS(a.getModel("itemStyle"),c,!0);x.extend(c,d),x.each(Va,(function(e){var t=o.ensureState(e),n=a.getModel([e,"itemStyle"]);t.style=n.getItemStyle();var r=HS(n,c);r&&(t.shape=r)})),e?(o.setShape(c),o.shape.r=u.r0,Us(o,{shape:{r:u.r}},n,t.dataIndex)):(Us(o,{shape:c},n),Gs(o)),o.useStyle(l),this._updateLabel(n);var p=a.getShallow("cursor");p&&o.attr("cursor",p),this._seriesModel=n||this._seriesModel,this._ecModel=r||this._ecModel;var h=s.get("focus");Ts(this,"ancestor"===h?t.getAncestorsIndices():"descendant"===h?t.getDescendantIndices():h,s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),r=n.getModel("label"),i=this.node.getLayout(),o=i.endAngle-i.startAngle,a=(i.startAngle+i.endAngle)/2,s=Math.cos(a),u=Math.sin(a),c=this,l=c.getTextContent(),f=this.node.dataIndex,d=r.get("minAngle")/180*Math.PI,p=r.get("show")&&!(null!=d&&Math.abs(o)<d);function h(e,t){var n=e.get(t);return null==n?r.get(t):n}l.ignore=!p,x.each(Ha,(function(r){var d="normal"===r?n.getModel("label"):n.getModel([r,"label"]),p="normal"===r,v=p?l:l.ensureState(r),g=e.getFormattedLabel(f,r);p&&(g=g||t.node.name),v.style=Zs(d,{},null,"normal"!==r,!0),g&&(v.style.text=g);var m=d.get("show");null==m||p||(v.ignore=!m);var y,b=h(d,"position"),w=p?c:c.states[r],_=w.style.fill;w.textConfig={outsideFill:"inherit"===d.get("color")?_:null,inside:"outside"!==b};var S=h(d,"distance")||0,O=h(d,"align");"outside"===b?(y=i.r+S,O=a>Math.PI/2?"right":"left"):O&&"center"!==O?"left"===O?(y=i.r0+S,a>Math.PI/2&&(O="right")):"right"===O&&(y=i.r-S,a>Math.PI/2&&(O="left")):(y=o===2*Math.PI&&0===i.r0?0:(i.r+i.r0)/2,O="center"),v.style.align=O,v.style.verticalAlign=h(d,"verticalAlign")||"middle",v.x=y*s+i.cx,v.y=y*u+i.cy;var k=h(d,"rotate"),E=0;"radial"===k?(E=-a)<-Math.PI/2&&(E+=Math.PI):"tangential"===k?(E=Math.PI/2-a)>Math.PI/2?E-=Math.PI:E<-Math.PI/2&&(E+=Math.PI):x.isNumber(k)&&(E=k*Math.PI/180),v.rotation=E})),l.dirtyStyle()},t}(mp),cI="sunburstRootToNode",lI="sunburstHighlight",fI="sunburstUnhighlight";var dI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.render=function(e,t,n,r){var i=this;this.seriesModel=e,this.api=n,this.ecModel=t;var o=e.getData(),a=o.tree.root,s=e.getViewRoot(),u=this.group,c=e.get("renderLabelForZeroData"),l=[];s.eachNode((function(e){l.push(e)}));var f=this._oldChildren||[];!function(r,i){if(0===r.length&&0===i.length)return;function s(e){return e.getId()}function l(s,l){!function(r,i){c||!r||r.getValue()||(r=null);if(r!==a&&i!==a)if(i&&i.piece)r?(i.piece.updateData(!1,r,e,t,n),o.setItemGraphicEl(r.dataIndex,i.piece)):function(e){if(!e)return;e.piece&&(u.remove(e.piece),e.piece=null)}(i);else if(r){var s=new uI(r,e,t,n);u.add(s),o.setItemGraphicEl(r.dataIndex,s)}}(null==s?null:r[s],null==l?null:i[l])}new Xm(i,r,s,s).add(l).update(l).remove(x.curry(l,null)).execute()}(l,f),function(r,o){o.depth>0?(i.virtualPiece?i.virtualPiece.updateData(!1,r,e,t,n):(i.virtualPiece=new uI(r,e,t,n),u.add(i.virtualPiece)),o.piece.off("click"),i.virtualPiece.on("click",(function(e){i._rootToNode(o.parentNode)}))):i.virtualPiece&&(u.remove(i.virtualPiece),i.virtualPiece=null)}(a,s),this._initEvents(),this._oldChildren=l},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",(function(t){var n=!1;e.seriesModel.getViewRoot().eachNode((function(r){if(!n&&r.piece&&r.piece===t.target){var i=r.getModel().get("nodeClick");if("rootToNode"===i)e._rootToNode(r);else if("link"===i){var o=r.getModel(),a=o.get("link");if(a)bc(a,o.get("target",!0)||"_blank")}n=!0}}))}))},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:cI,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,i=e[1]-n.cy,o=Math.sqrt(r*r+i*i);return o<=n.r&&o>=n.r0}},t.type="sunburst",t}(Dh);var pI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return y(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};!function e(t){var n=0;x.each(t.children,(function(t){e(t);var r=t.value;x.isArray(r)&&(r=r[0]),n+=r}));var r=t.value;x.isArray(r)&&(r=r[0]);(null==r||isNaN(r))&&(r=n);r<0&&(r=0);x.isArray(t.value)?t.value[0]=r:t.value=r}(n);var r=this._levelModels=x.map(e.levels||[],(function(e){return new _u(e,this,t)}),this),i=fj.createTree(n,this,(function(e){e.wrapMethod("getItemModel",(function(e,t){var n=i.getNodeByDataIndex(t),o=r[n.depth];return o&&(e.parentModel=o),e}))}));return i.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=vj(r,this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){wj(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(Ed),hI=Math.PI/180;function vI(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.get("center"),r=e.get("radius");x.isArray(r)||(r=[0,r]),x.isArray(t)||(t=[t,t]);var i=n.getWidth(),o=n.getHeight(),a=Math.min(i,o),s=wr(t[0],i),u=wr(t[1],o),c=wr(r[0],a/2),l=wr(r[1],a/2),f=-e.get("startAngle")*hI,d=e.get("minAngle")*hI,p=e.getData().tree.root,h=e.getViewRoot(),v=h.depth,g=e.get("sort");null!=g&&function e(t,n){var r=t.children||[];t.children=function(e,t){if(x.isFunction(t)){var n=x.map(e,(function(e,t){var n=e.getValue();return{params:{depth:e.depth,height:e.height,dataIndex:e.dataIndex,getValue:function(){return n}},index:t}}));return n.sort((function(e,n){return t(e.params,n.params)})),x.map(n,(function(t){return e[t.index]}))}var r="asc"===t;return e.sort((function(e,t){var n=(e.getValue()-t.getValue())*(r?1:-1);return 0===n?(e.dataIndex-t.dataIndex)*(r?-1:1):n}))}(r,n),r.length&&x.each(t.children,(function(t){e(t,n)}))}(h,g);var m=0;x.each(h.children,(function(e){!isNaN(e.getValue())&&m++}));var y=h.getValue(),b=Math.PI/(y||m)*2,w=h.depth>0,_=h.height-(w?-1:1),S=(l-c)/(_||1),O=e.get("clockwise"),k=e.get("stillShowZeroSum"),E=O?1:-1,j=function(t,n){if(t){var r=n;if(t!==p){var i=t.getValue(),o=0===y&&k?b:i*b;o<d&&(o=d),r=n+E*o;var l=t.depth-v-(w?-1:1),f=c+S*l,h=c+S*(l+1),g=e.getLevelModel(t);if(g){var m=g.get("r0",!0),_=g.get("r",!0),T=g.get("radius",!0);null!=T&&(m=T[0],_=T[1]),null!=m&&(f=wr(m,a/2)),null!=_&&(h=wr(_,a/2))}t.setLayout({angle:o,startAngle:n,endAngle:r,clockwise:O,cx:s,cy:u,r0:f,r:h})}if(t.children&&t.children.length){var C=0;x.each(t.children,(function(e){C+=j(e,n+C)}))}return r-n}};if(w){var T=c,C=c+S,A=2*Math.PI;p.setLayout({angle:A,startAngle:f,endAngle:f+A,clockwise:O,cx:s,cy:u,r0:T,r:C})}j(h,f)}))}function gI(e){var t={};e.eachSeriesByType("sunburst",(function(e){var n=e.getData(),r=n.tree;r.eachNode((function(i){var o=i.getModel().getModel("itemStyle").getItemStyle();o.fill||(o.fill=function(e,n,r){for(var i=e;i&&i.depth>1;)i=i.parentNode;var o=n.getColorFromPalette(i.name||i.dataIndex+"",t);return e.depth>1&&Object(x.isString)(o)&&(o=Object(Ut.lift)(o,(e.depth-1)/(r-1)*.5)),o}(i,e,r.root.height));var a=n.ensureUniqueItemVisual(i.dataIndex,"style");Object(x.extend)(a,o)}))}))}var mI={color:"fill",borderColor:"stroke"},yI={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},bI=oi(),xI=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,t){return Ay(null,this)},t.prototype.getDataParams=function(t,n,r){var i=e.prototype.getDataParams.call(this,t,n);return r&&(i.info=bI(r).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(Ed);function wI(e,t){return t=t||[0,0],x.map(["x","y"],(function(n,r){var i=this.getAxis(n),o=t[r],a=e[r]/2;return"category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(o-a)-i.dataToCoord(o+a))}),this)}function _I(e,t){return t=t||[0,0],x.map([0,1],(function(n){var r=t[n],i=e[n]/2,o=[],a=[];return o[n]=r-i,a[n]=r+i,o[1-n]=a[1-n]=t[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])}),this)}function SI(e,t){var n=this.getAxis(),r=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}function OI(e,t){return t=t||[0,0],x.map(["Radius","Angle"],(function(n,r){var i=this["get"+n+"Axis"](),o=t[r],a=e[r]/2,s="category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(o-a)-i.dataToCoord(o+a));return"Angle"===n&&(s=s*Math.PI/180),s}),this)}function kI(e,t,n,r){return e&&(e.legacy||!1!==e.legacy&&!n&&!r&&"tspan"!==t&&("text"===t||Object(x.hasOwn)(e,"text")))}function EI(e,t,n){var r,i,o,a=e;if("text"===t)o=a;else{o={},Object(x.hasOwn)(a,"text")&&(o.text=a.text),Object(x.hasOwn)(a,"rich")&&(o.rich=a.rich),Object(x.hasOwn)(a,"textFill")&&(o.fill=a.textFill),Object(x.hasOwn)(a,"textStroke")&&(o.stroke=a.textStroke),Object(x.hasOwn)(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Object(x.hasOwn)(a,"fontSize")&&(o.fontSize=a.fontSize),Object(x.hasOwn)(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Object(x.hasOwn)(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},r={};var s=Object(x.hasOwn)(a,"textPosition");n?r.position=s?a.textPosition:"inside":s&&(r.position=a.textPosition),Object(x.hasOwn)(a,"textPosition")&&(r.position=a.textPosition),Object(x.hasOwn)(a,"textOffset")&&(r.offset=a.textOffset),Object(x.hasOwn)(a,"textRotation")&&(r.rotation=a.textRotation),Object(x.hasOwn)(a,"textDistance")&&(r.distance=a.textDistance)}return jI(o,e),Object(x.each)(o.rich,(function(e){jI(e,e)})),{textConfig:r,textContent:i}}function jI(e,t){t&&(t.font=t.textFont||t.font,Object(x.hasOwn)(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Object(x.hasOwn)(t,"textAlign")&&(e.align=t.textAlign),Object(x.hasOwn)(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Object(x.hasOwn)(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Object(x.hasOwn)(t,"textWidth")&&(e.width=t.textWidth),Object(x.hasOwn)(t,"textHeight")&&(e.height=t.textHeight),Object(x.hasOwn)(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Object(x.hasOwn)(t,"textPadding")&&(e.padding=t.textPadding),Object(x.hasOwn)(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Object(x.hasOwn)(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Object(x.hasOwn)(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Object(x.hasOwn)(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Object(x.hasOwn)(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Object(x.hasOwn)(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Object(x.hasOwn)(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function TI(e,t,n){var r=e;r.textPosition=r.textPosition||n.position||"inside",null!=n.offset&&(r.textOffset=n.offset),null!=n.rotation&&(r.textRotation=n.rotation),null!=n.distance&&(r.textDistance=n.distance);var i=r.textPosition.indexOf("inside")>=0,o=e.fill||"#000";CI(r,t);var a=null==r.textFill;return i?a&&(r.textFill=n.insideFill||"#fff",!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=o),null==r.textStrokeWidth&&(r.textStrokeWidth=2)):(a&&(r.textFill=e.fill||n.outsideFill||"#000"),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=t.text,r.rich=t.rich,Object(x.each)(t.rich,(function(e){CI(e,e)})),r}function CI(e,t){t&&(Object(x.hasOwn)(t,"fill")&&(e.textFill=t.fill),Object(x.hasOwn)(t,"stroke")&&(e.textStroke=t.fill),Object(x.hasOwn)(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Object(x.hasOwn)(t,"font")&&(e.font=t.font),Object(x.hasOwn)(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Object(x.hasOwn)(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Object(x.hasOwn)(t,"fontSize")&&(e.fontSize=t.fontSize),Object(x.hasOwn)(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Object(x.hasOwn)(t,"align")&&(e.textAlign=t.align),Object(x.hasOwn)(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Object(x.hasOwn)(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Object(x.hasOwn)(t,"width")&&(e.textWidth=t.width),Object(x.hasOwn)(t,"height")&&(e.textHeight=t.height),Object(x.hasOwn)(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Object(x.hasOwn)(t,"padding")&&(e.textPadding=t.padding),Object(x.hasOwn)(t,"borderColor")&&(e.textBorderColor=t.borderColor),Object(x.hasOwn)(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Object(x.hasOwn)(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Object(x.hasOwn)(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Object(x.hasOwn)(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Object(x.hasOwn)(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Object(x.hasOwn)(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Object(x.hasOwn)(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Object(x.hasOwn)(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Object(x.hasOwn)(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Object(x.hasOwn)(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var AI={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},PI=Object(x.keys)(AI),MI=(Object(x.reduce)(Fn,(function(e,t){return e[t]=1,e}),{}),Fn.join(", "),["","style","shape","extra"]),II=oi();function RI(e,t,n,r,i){var o=e+"Animation",a=Fs(e,r,i)||{},s=II(t).userDuring;return a.duration>0&&(a.during=s?Object(x.bind)(zI,{el:t,userDuring:s}):null,a.setToFinal=!0,a.scope=e),Object(x.extend)(a,n[o]),a}function DI(e,t,n,r){var i=(r=r||{}).dataIndex,o=r.isInit,a=r.clearStyle,s=n.isAnimationEnabled(),u=II(e),c=t.style;u.userDuring=t.during;var l={},f={};if(function(e,t,n){for(var r=0;r<PI.length;r++){var i=PI[r],o=AI[i],a=t[i];a&&(n[o[0]]=a[0],n[o[1]]=a[1])}for(r=0;r<Fn.length;r++){var s=Fn[r];null!=t[s]&&(n[s]=t[s])}}(0,t,f),HI("shape",t,f),HI("extra",t,f),!o&&s&&(function(e,t,n){for(var r=t.transition,i=FI(r)?Fn:Yr(r||[]),o=0;o<i.length;o++){var a=i[o];if("style"!==a&&"shape"!==a&&"extra"!==a){var s=e[a];0,n[a]=s}}}(e,t,l),VI("shape",e,t,l),VI("extra",e,t,l),function(e,t,n,r){if(!n)return;var i,o=e.style;if(o){var a=n.transition,s=t.transition;if(a&&!FI(a)){var u=Yr(a);!i&&(i=r.style={});for(var c=0;c<u.length;c++){var l=u[c],f=o[l];i[l]=f}}else if(e.getAnimationStyleProps&&(FI(s)||FI(a)||Object(x.indexOf)(s,"style")>=0)){var d=e.getAnimationStyleProps(),p=d?d.style:null;if(p){!i&&(i=r.style={});var h=Object(x.keys)(n);for(c=0;c<h.length;c++){l=h[c];if(p[l]){f=o[l];i[l]=f}}}}}}(e,t,c,l)),f.style=c,function(e,t,n){var r=t.style;if(!e.isGroup&&r){if(n){e.useStyle({});for(var i=e.animators,o=0;o<i.length;o++){var a=i[o];"style"===a.targetName&&a.changeTarget(e.style)}}e.setStyle(r)}t&&(t.style=null,t&&e.attr(t),t.style=r)}(e,f,a),function(e,t){Object(x.hasOwn)(t,"silent")&&(e.silent=t.silent),Object(x.hasOwn)(t,"ignore")&&(e.ignore=t.ignore),e instanceof Ji&&Object(x.hasOwn)(t,"invisible")&&(e.invisible=t.invisible);e instanceof ta&&Object(x.hasOwn)(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}(e,t),s)if(o){var d={};Object(x.each)(MI,(function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(d[e]=d[e]||{}),Object(x.extend)(e?d[e]:d,n.enterFrom))}));var p=RI("enter",e,t,n,i);p.duration>0&&e.animateFrom(d,p)}else!function(e,t,n,r,i){if(i){var o=RI("update",e,t,r,n);o.duration>0&&e.animateFrom(i,o)}}(e,t,i||0,n,l);LI(e,t),c?e.dirty():e.markRedraw()}function LI(e,t){for(var n=II(e).leaveToProps,r=0;r<MI.length;r++){var i=MI[r],o=i?t[i]:t;o&&o.leaveTo&&(n||(n=II(e).leaveToProps={}),i&&(n[i]=n[i]||{}),Object(x.extend)(i?n[i]:n,o.leaveTo))}}function NI(e,t,n,r){if(e){var i=e.parent,o=II(e).leaveToProps;if(o){var a=RI("update",e,t,n,0);a.done=function(){i.remove(e),r&&r()},e.animateTo(o,a)}else i.remove(e),r&&r()}}function FI(e){return"all"===e}var BI={},UI={setTransform:function(e,t){return BI.el[e]=t,this},getTransform:function(e){return BI.el[e]},setShape:function(e,t){var n=BI.el;return(n.shape||(n.shape={}))[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=BI.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=BI.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=BI.el.style;if(t)return t[e]},setExtra:function(e,t){return(BI.el.extra||(BI.el.extra={}))[e]=t,this},getExtra:function(e){var t=BI.el.extra;if(t)return t[e]}};function zI(){var e=this.el;if(e){var t=II(e).userDuring,n=this.userDuring;t===n?(BI.el=e,n(UI)):this.el=this.userDuring=null}}function VI(e,t,n,r){var i=n[e];if(i){var o,a=t[e];if(a){var s=n.transition,u=i.transition;if(u)if(!o&&(o=r[e]={}),FI(u))Object(x.extend)(o,a);else for(var c=Yr(u),l=0;l<c.length;l++){var f=a[p=c[l]];o[p]=f}else if(FI(s)||Object(x.indexOf)(s,e)>=0){!o&&(o=r[e]={});var d=Object(x.keys)(a);for(l=0;l<d.length;l++){var p;f=a[p=d[l]];WI(i[p],f)&&(o[p]=f)}}}}}function HI(e,t,n){var r=t[e];if(r)for(var i=n[e]={},o=Object(x.keys)(r),a=0;a<o.length;a++){var s=o[a];i[s]=$t(r[s])}}function WI(e,t){return Object(x.isArrayLike)(e)?e!==t:null!=e&&isFinite(e)}var qI=oi(),GI=["percent","easing","shape","style","extra"];function YI(e){e.stopAnimation("keyframe"),e.attr(qI(e))}function KI(e,t,n){if(n.isAnimationEnabled()&&t)if(Object(x.isArray)(t))Object(x.each)(t,(function(t){KI(e,t,n)}));else{var r=t.keyframes,i=t.duration;if(n&&null==i){var o=Fs("enter",n,0);i=o&&o.duration}if(r&&i){var a=qI(e);Object(x.each)(MI,(function(n){if(!n||e[n]){var o;r.sort((function(e,t){return e.percent-t.percent})),Object(x.each)(r,(function(r){var s=e.animators,u=n?r[n]:r;if(u){var c=Object(x.keys)(u);if(n||(c=Object(x.filter)(c,(function(e){return Object(x.indexOf)(GI,e)<0}))),c.length){o||((o=e.animate(n,t.loop,!0)).scope="keyframe");for(var l=0;l<s.length;l++)s[l]!==o&&s[l].targetName===o.targetName&&s[l].stopTracks(c);n&&(a[n]=a[n]||{});var f=n?a[n]:a;Object(x.each)(c,(function(t){f[t]=((n?e[n]:e)||{})[t]})),o.whenWithKeys(i*r.percent,u,c,r.easing)}}})),o&&o.delay(t.delay||0).duration(i).start(t.easing)}}))}}}var $I="emphasis",XI="normal",QI=[XI,$I,"blur","select"],ZI={normal:["itemStyle"],emphasis:[$I,"itemStyle"],blur:["blur","itemStyle"],select:["select","itemStyle"]},JI={normal:["label"],emphasis:[$I,"label"],blur:["blur","label"],select:["select","label"]},eR=["x","y"],tR="e\0\0",nR={normal:{},emphasis:{},blur:{},select:{}},rR={cartesian2d:function(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:x.bind(wI,e)}}},geo:function(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:x.bind(_I,e)}}},single:function(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:Object(x.bind)(SI,e)}}},polar:function(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),r=t.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:r[1],r0:r[0]},api:{coord:function(r){var i=t.dataToRadius(r[0]),o=n.dataToAngle(r[1]),a=e.coordToPoint([i,o]);return a.push(i,o*Math.PI/180),a},size:x.bind(OI,e)}}},calendar:function(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)}}}}};function iR(e){return e instanceof ta}function oR(e){return e instanceof Ji}var aR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.render=function(e,t,n,r){this._progressiveEls=null;var i=this._data,o=e.getData(),a=this.group,s=fR(e,o,t,n);i||a.removeAll(),o.diff(i).add((function(t){pR(n,null,t,s(t,r),e,a,o)})).remove((function(t){var n=i.getItemGraphicEl(t);n&&NI(n,bI(n).option,e)})).update((function(t,u){var c=i.getItemGraphicEl(u);pR(n,c,t,s(t,r),e,a,o)})).execute();var u=e.get("clip",!0)?H_(e.coordinateSystem,!1,e):null;u?a.setClipPath(u):a.removeClipPath(),this._data=o},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,t,n,r,i){var o=t.getData(),a=fR(t,o,n,r),s=this._progressiveEls=[];function u(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}for(var c=e.start;c<e.end;c++){var l=pR(null,null,c,a(c,i),t,this.group,o);l&&(l.traverse(u),s.push(l))}},t.prototype.eachRendered=function(e){Eh(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,t,n,r){var i=t.element;if(null==i||n.name===i)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===i)return!0;return!1},t.type="custom",t}(Dh);function sR(e){var t,n=e.type;if("path"===n){var r=e.shape,i=null!=r.width&&null!=r.height?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,o=SR(r);t=oh(o,null,i,r.layout||"center"),bI(t).customPathData=o}else if("image"===n)t=new ua({}),bI(t).customImagePath=e.style.image;else if("text"===n)t=new Ma({});else if("group"===n)t=new ur;else{if("compoundPath"===n)throw new Error('"compoundPath" is not supported yet.');var a=ih(n);if(!a){0,cl("")}t=new a}return bI(t).customGraphicType=n,t.name=e.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function uR(e,t,n,r,i,o,a){YI(t);var s=i&&i.normal.cfg;s&&t.setTextConfig(s),r&&null==r.transition&&(r.transition=eR);var u=r&&r.style;if(u){if("text"===t.type){var c=u;Object(x.hasOwn)(c,"textFill")&&(c.fill=c.textFill),Object(x.hasOwn)(c,"textStroke")&&(c.stroke=c.textStroke)}var l=void 0,f=iR(t)?u.decal:null;e&&f&&(f.dirty=!0,l=xg(f,e)),u.__decalPattern=l}oR(t)&&(u&&(l=u.__decalPattern)&&(u.decal=l));DI(t,r,o,{dataIndex:n,isInit:a,clearStyle:!0}),KI(t,r.keyframeAnimation,o)}function cR(e,t,n,r,i){var o=t.isGroup?null:t,a=i&&i[e].cfg;if(o){var s=o.ensureState(e);if(!1===r){var u=o.getState(e);u&&(u.style=null)}else s.style=r||null;a&&(s.textConfig=a),fs(o)}}function lR(e,t,n){var r=n===XI,i=r?t:mR(t,n),o=i?i.z2:null;null!=o&&((r?e:e.ensureState(n)).z2=o||0)}function fR(e,t,n,r){var i=e.get("renderItem"),o=e.coordinateSystem,a={};o&&(a=o.prepareCustoms?o.prepareCustoms(o):rR[o.type](o));for(var s,u,c=Object(x.defaults)({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:function(e,n){return null==n&&(n=s),t.getStore().get(t.getDimensionIndex(e||0),n)},style:function(n,r){0;null==r&&(r=s);var i=t.getItemVisual(r,"style"),o=i&&i.fill,a=i&&i.opacity,u=y(r,XI).getItemStyle();null!=o&&(u.fill=o),null!=a&&(u.opacity=a);var c={inheritColor:Object(x.isString)(o)?o:"#000"},l=b(r,XI),f=Zs(l,null,c,!1,!0);f.text=l.getShallow("show")?Object(x.retrieve2)(e.getFormattedLabel(r,XI),S_(t,r)):null;var d=Js(l,c,!1);return _(n,u),u=TI(u,f,d),n&&w(u,n),u.legacy=!0,u},ordinalRawValue:function(e,n){null==n&&(n=s),e=e||0;var r=t.getDimensionInfo(e);if(!r){var i=t.getDimensionIndex(e);return i>=0?t.getStore().get(i,n):void 0}var o=t.get(r.name,n),a=r&&r.ordinalMeta;return a?a.categories[o]:o},styleEmphasis:function(n,r){0;null==r&&(r=s);var i=y(r,$I).getItemStyle(),o=b(r,$I),a=Zs(o,null,null,!0,!0);a.text=o.getShallow("show")?Object(x.retrieve3)(e.getFormattedLabel(r,$I),e.getFormattedLabel(r,XI),S_(t,r)):null;var u=Js(o,null,!0);return _(n,i),i=TI(i,a,u),n&&w(i,n),i.legacy=!0,i},visual:function(e,n){if(null==n&&(n=s),Object(x.hasOwn)(mI,e)){var r=t.getItemVisual(n,"style");return r?r[mI[e]]:null}if(Object(x.hasOwn)(yI,e))return t.getItemVisual(n,e)},barLayout:function(e){if("cartesian2d"===o.type){var t=o.getBaseAxis();return function(e){var t=[],n=e.axis;if("category"===n.type){for(var r=n.getBandWidth(),i=0;i<e.count;i++)t.push(Object(x.defaults)({bandWidth:r,axisKey:"axis0",stackId:Zy+i},e));var o=rb(t),a=[];for(i=0;i<e.count;i++){var s=o.axis0[Zy+i];s.offsetCenter=s.offset+s.width/2,a.push(s)}return a}}(Object(x.defaults)({axis:t},e))}},currentSeriesIndices:function(){return n.getCurrentSeriesIndices()},font:function(e){return iu(e,n)}},a.api||{}),l={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:a.coordSys,dataInsideLength:t.count(),encode:dR(e.getData())},f={},d={},p={},h={},v=0;v<QI.length;v++){var g=QI[v];p[g]=e.getModel(ZI[g]),h[g]=e.getModel(JI[g])}function m(e){return e===s?u||(u=t.getItemModel(e)):t.getItemModel(e)}function y(e,n){return t.hasItemOption?e===s?f[n]||(f[n]=m(e).getModel(ZI[n])):m(e).getModel(ZI[n]):p[n]}function b(e,n){return t.hasItemOption?e===s?d[n]||(d[n]=m(e).getModel(JI[n])):m(e).getModel(JI[n]):h[n]}return function(e,n){return s=e,u=null,f={},d={},i&&i(Object(x.defaults)({dataIndexInside:e,dataIndex:t.getRawIndex(e),actionType:n?n.type:null},l),c)};function w(e,t){for(var n in t)Object(x.hasOwn)(t,n)&&(e[n]=t[n])}function _(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}}function dR(e){var t={};return Object(x.each)(e.dimensions,(function(n){var r=e.getDimensionInfo(n);if(!r.isExtraCoord){var i=r.coordDim;(t[i]=t[i]||[])[r.coordDimIndex]=e.getDimensionIndex(n)}})),t}function pR(e,t,n,r,i,o,a){if(r){var s=hR(e,t,n,r,i,o);return s&&a.setItemGraphicEl(n,s),s&&Ts(s,r.focus,r.blurScope,r.emphasisDisabled),s}o.remove(t)}function hR(e,t,n,r,i,o){var a=-1,s=t;t&&vR(t,r,i)&&(a=Object(x.indexOf)(o.childrenRef(),t),t=null);var u,c,l=!t,f=t;f?f.clearStates():(f=sR(r),s&&(u=s,(c=f).copyTransform(u),oR(c)&&oR(u)&&(c.setStyle(u.style),c.z=u.z,c.z2=u.z2,c.zlevel=u.zlevel,c.invisible=u.invisible,c.ignore=u.ignore,iR(c)&&iR(u)&&c.setShape(u.shape)))),!1===r.morph?f.disableMorphing=!0:f.disableMorphing&&(f.disableMorphing=!1),nR.normal.cfg=nR.normal.conOpt=nR.emphasis.cfg=nR.emphasis.conOpt=nR.blur.cfg=nR.blur.conOpt=nR.select.cfg=nR.select.conOpt=null,nR.isLegacy=!1,function(e,t,n,r,i,o){if(e.isGroup)return;gR(n,null,o),gR(n,$I,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,u=o.blur.conOpt,c=o.select.conOpt;if(null!=a||null!=s||null!=c||null!=u){var l=e.getTextContent();if(!1===a)l&&e.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},l?l.clearStates():(l=sR(a),e.setTextContent(l)),uR(null,l,t,a,null,r,i);for(var f=a&&a.style,d=0;d<QI.length;d++){var p=QI[d];if(p!==XI){var h=o[p].conOpt;cR(p,l,0,yR(a,h,p),null)}}f?l.dirty():l.markRedraw()}}}(f,n,r,i,l,nR),function(e,t,n,r,i){var o=n.clipPath;if(!1===o)e&&e.getClipPath()&&e.removeClipPath();else if(o){var a=e.getClipPath();a&&vR(a,o,r)&&(a=null),a||(a=sR(o),e.setClipPath(a)),uR(null,a,t,o,null,r,i)}}(f,n,r,i,l),uR(e,f,n,r,nR,i,l),Object(x.hasOwn)(r,"info")&&(bI(f).info=r.info);for(var d=0;d<QI.length;d++){var p=QI[d];if(p!==XI){var h=mR(r,p);cR(p,f,0,yR(r,h,p),nR)}}return function(e,t,n){if(!e.isGroup){var r=e,i=n.currentZ,o=n.currentZLevel;r.z=i,r.zlevel=o;var a=t.z2;null!=a&&(r.z2=a||0);for(var s=0;s<QI.length;s++)lR(r,t,QI[s])}}(f,r,i),"group"===r.type&&function(e,t,n,r,i){var o=r.children,a=o?o.length:0,s=r.$mergeChildren,u="byName"===s||r.diffChildrenByName,c=!1===s;if(!a&&!u&&!c)return;if(u)return l={api:e,oldChildren:t.children()||[],newChildren:o||[],dataIndex:n,seriesModel:i,group:t},void new Xm(l.oldChildren,l.newChildren,xR,xR,l).add(wR).update(wR).remove(_R).execute();var l;c&&t.removeAll();for(var f=0;f<a;f++){var d=o[f],p=t.childAt(f);d?(null==d.ignore&&(d.ignore=!1),hR(e,p,n,d,i,t)):p.ignore=!0}for(var h=t.childCount()-1;h>=f;h--){var v=t.childAt(h);bR(t,v,i)}}(e,f,n,r,i),a>=0?o.replaceAt(f,a):o.add(f),f}function vR(e,t,n){var r,i=bI(e),o=t.type,a=t.shape,s=t.style;return n.isUniversalTransitionEnabled()||null!=o&&o!==i.customGraphicType||"path"===o&&((r=a)&&(Object(x.hasOwn)(r,"pathData")||Object(x.hasOwn)(r,"d")))&&SR(a)!==i.customPathData||"image"===o&&Object(x.hasOwn)(s,"image")&&s.image!==i.customImagePath}function gR(e,t,n){var r=t?mR(e,t):e,i=t?yR(e,r,$I):e.style,o=e.type,a=r?r.textConfig:null,s=e.textContent,u=s?t?mR(s,t):s:null;if(i&&(n.isLegacy||kI(i,o,!!a,!!u))){n.isLegacy=!0;var c=EI(i,o,!t);!a&&c.textConfig&&(a=c.textConfig),!u&&c.textContent&&(u=c.textContent)}if(!t&&u){var l=u;!l.type&&(l.type="text")}var f=t?n[t]:n.normal;f.cfg=a,f.conOpt=u}function mR(e,t){return t?e?e[t]:null:e}function yR(e,t,n){var r=t&&t.style;return null==r&&n===$I&&e&&(r=e.styleEmphasis),r}function bR(e,t,n){t&&NI(t,bI(e).option,n)}function xR(e,t){var n=e&&e.name;return null!=n?n:tR+t}function wR(e,t){var n=this.context,r=null!=e?n.newChildren[e]:null,i=null!=t?n.oldChildren[t]:null;hR(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function _R(e){var t=this.context,n=t.oldChildren[e];n&&NI(n,bI(n).option,t.seriesModel)}function SR(e){return e&&(e.pathData||e.d)}var OR=oi(),kR=x.clone,ER=x.bind;function jR(e,t,n,r){(function e(t,n){if(x.isObject(t)&&x.isObject(n)){var r=!0;return x.each(n,(function(n,i){r=r&&e(t[i],n)})),!!r}return t===n})(OR(n).lastProp,r)||(OR(n).lastProp=r,t?Us(n,r,e):(n.stopAnimation(),n.attr(r)))}function TR(e,t){e[t.get(["label","show"])?"show":"hide"]()}function CR(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function AR(e,t,n){var r=t.get("z"),i=t.get("zlevel");e&&e.traverse((function(e){"group"!==e.type&&(null!=r&&(e.z=r),null!=i&&(e.zlevel=i),e.silent=n)}))}var PR=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,r||this._lastValue!==i||this._lastStatus!==o){this._lastValue=i,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var u={};this.makeElOption(u,i,e,t,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var l=this._moveAnimation=this.determineAnimation(e,t);if(a){var f=x.curry(jR,t,l);this.updatePointerEl(a,u,f),this.updateLabelEl(a,u,f,t)}else a=this._group=new ur,this.createPointerEl(a,u,e,t),this.createLabelEl(a,u,e,t),n.getZr().add(a);AR(a,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get("animation"),r=e.axis,i="category"===r.type,o=t.get("snap");if(!o&&!i)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(i&&r.getBandWidth()>a)return!0;if(o){var s=RO(e).seriesDataCount,u=r.getExtent();return Math.abs(u[0]-u[1])/s>a}return!1}return!0===n},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var o=OR(e).pointerEl=new a[i.type](kR(t.pointer));e.add(o)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=OR(e).labelEl=new Ma(kR(t.label));e.add(i),TR(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=OR(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=OR(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),TR(i,r))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return i&&r.remove(i),void(this._handle=null);this._handle||(t=!0,i=this._handle=xh(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){ve(e.event)},onmousedown:ER(this._onHandleDragMove,this,0,0),drift:ER(this._onHandleDragMove,this),ondragend:ER(this._onHandleDragEnd,this)}),r.add(i)),AR(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");x.isArray(s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,Uh(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){jR(this._axisPointerModel,!t&&this._moveAnimation,this._handle,CR(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(CR(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(CR(r)),OR(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),zh(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return{x:e[n=n||0],y:e[1-n],width:t[n],height:t[1-n]}},e}();function MR(e){var t,n=e.get("type"),r=e.getModel(n+"Style");return"line"===n?(t=r.getLineStyle()).fill=null:"shadow"===n&&((t=r.getAreaStyle()).stroke=null),t}function IR(e,t,n,r,i){var o=RR(n.get("value"),t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),s=lc(a.get("padding")||0),u=a.getFont(),c=Gn(o,u),l=i.position,f=c.width+s[1]+s[3],d=c.height+s[0]+s[2],p=i.align;"right"===p&&(l[0]-=f),"center"===p&&(l[0]-=f/2);var h=i.verticalAlign;"bottom"===h&&(l[1]-=d),"middle"===h&&(l[1]-=d/2),function(e,t,n,r){var i=r.getWidth(),o=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,o)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}(l,f,d,r);var v=a.get("backgroundColor");v&&"auto"!==v||(v=t.get(["axisLine","lineStyle","color"])),e.label={x:l[0],y:l[1],style:Zs(a,{text:o,font:u,fill:a.getTextColor(),padding:s,backgroundColor:v}),z2:10}}function RR(e,t,n,r,i){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:i.precision}),a=i.formatter;if(a){var s={value:Nb(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};x.each(r,(function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)})),x.isString(a)?o=a.replace("{value}",o):x.isFunction(a)&&(o=a(s))}return o}function DR(e,t,n){var r=[1,0,0,1,0,0];return ke(r,r,n.rotation),Oe(r,r,n.position),hh([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function LR(e,t,n,r,i,o){var a=AO.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),IR(t,r,i,o,{position:DR(r.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function NR(e,t,n){return{x1:e[n=n||0],y1:e[1-n],x2:t[n],y2:t[1-n]}}function FR(e,t,n){return{x:e[n=n||0],y:e[1-n],width:t[n],height:t[1-n]}}function BR(e,t,n,r,i,o){return{cx:e,cy:t,r0:n,r:r,startAngle:i,endAngle:o,clockwise:!0}}var UR=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var o=n.axis,a=o.grid,s=r.get("type"),u=zR(a,o).getOtherAxis(o).getGlobalExtent(),c=o.toGlobalCoord(o.dataToCoord(t,!0));if(s&&"none"!==s){var l=MR(r),f=VR[s](o,c,u);f.style=l,e.graphicKey=f.type,e.pointer=f}LR(t,e,hO(a.model,n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=hO(t.axis.grid.model,t,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=DR(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,o=i.grid,a=i.getGlobalExtent(!0),s=zR(o,i).getOtherAxis(i).getGlobalExtent(),u="x"===i.dim?0:1,c=[e.x,e.y];c[u]+=t[u],c[u]=Math.min(a[1],c[u]),c[u]=Math.max(a[0],c[u]);var l=(s[1]+s[0])/2,f=[l,l];f[u]=c[u];return{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:f,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][u]}},t}(PR);function zR(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var VR={line:function(e,t,n){return{type:"Line",subPixelOptimize:!0,shape:NR([t,n[0]],[t,n[1]],HR(e))}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:FR([t-r/2,n[0]],[r,i],HR(e))}}};function HR(e){return"x"===e.dim?0:1}var WR=UR,qR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(Ic),GR=oi(),YR=x.each;function KR(e,t,n){if(!b.a.node){var r=t.getZr();GR(r).records||(GR(r).records={}),function(e,t){if(GR(e).initialized)return;function n(n,r){e.on(n,(function(n){var i=function(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}(t);YR(GR(e).records,(function(e){e&&r(e,n,i.dispatchAction)})),function(e,t){var n,r=e.showTip.length,i=e.hideTip.length;r?n=e.showTip[r-1]:i&&(n=e.hideTip[i-1]);n&&(n.dispatchAction=null,t.dispatchAction(n))}(i.pendings,t)}))}GR(e).initialized=!0,n("click",x.curry(XR,"click")),n("mousemove",x.curry(XR,"mousemove")),n("globalout",$R)}(r,t),(GR(r).records[e]||(GR(r).records[e]={})).handler=n}}function $R(e,t,n){e.handler("leave",null,n)}function XR(e,t,n,r){t.handler(e,n,r)}function QR(e,t){if(!b.a.node){var n=t.getZr();(GR(n).records||{})[e]&&(GR(n).records[e]=null)}}var ZR=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.render=function(e,t,n){var r=t.getComponent("tooltip"),i=e.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";KR("axisPointer",n,(function(e,t,n){"none"!==i&&("leave"===e||i.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})}))},t.prototype.remove=function(e,t){QR("axisPointer",t)},t.prototype.dispose=function(e,t){QR("axisPointer",t)},t.type="axisPointer",t}(Td);function JR(e,t){var n,r=[],i=e.seriesIndex;if(null==i||!(n=t.getSeriesByIndex(i)))return{point:[]};var o=n.getData(),a=ii(o,e);if(null==a||a<0||x.isArray(a))return{point:[]};var s=o.getItemGraphicEl(a),u=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(a)||[];else if(u&&u.dataToPoint)if(e.isStacked){var c=u.getBaseAxis(),l=u.getOtherAxis(c).dim,f=c.dim,d="x"===l||"radius"===l?1:0,p=o.mapDimension(f),h=[];h[d]=o.get(p,a),h[1-d]=o.get(o.getCalculationInfo("stackResultDimension"),a),r=u.dataToPoint(h)||[]}else r=u.dataToPoint(o.getValues(x.map(u.dimensions,(function(e){return o.mapDimension(e)})),a))||[];else if(s){var v=s.getBoundingRect().clone();v.applyTransform(s.transform),r=[v.x+v.width/2,v.y+v.height/2]}return{point:r,el:s}}var eD=oi();function tD(e,t,n){var r=e.currTrigger,i=[e.x,e.y],o=e,a=e.dispatchAction||Object(x.bind)(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){aD(i)&&(i=JR({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var u=aD(i),c=o.axesInfo,l=s.axesInfo,f="leave"===r||aD(i),d={},p={},h={list:[],map:{}},v={showPointer:Object(x.curry)(rD,p),showTooltip:Object(x.curry)(iD,h)};Object(x.each)(s.coordSysMap,(function(e,t){var n=u||e.containPoint(i);Object(x.each)(s.coordSysAxesInfo[t],(function(e,t){var r=e.axis,o=function(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}(c,e);if(!f&&n&&(!c||o)){var a=o&&o.value;null!=a||u||(a=r.pointToData(i)),null!=a&&nD(e,a,v,!1,d)}}))}));var g={};return Object(x.each)(l,(function(e,t){var n=e.linkGroup;n&&!p[t]&&Object(x.each)(n.axesInfo,(function(t,r){var i=p[r];if(t!==e&&i){var o=i.value;n.mapper&&(o=e.axis.scale.parse(n.mapper(o,oD(t),oD(e)))),g[e.key]=o}}))})),Object(x.each)(g,(function(e,t){nD(l[t],e,v,!0,d)})),function(e,t,n){var r=n.axesInfo=[];Object(x.each)(t,(function(t,n){var i=t.axisPointerModel.option,o=e[n];o?(!t.useHandle&&(i.status="show"),i.value=o.value,i.seriesDataIndices=(o.payloadBatch||[]).slice()):!t.useHandle&&(i.status="hide"),"show"===i.status&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})}))}(p,l,d),function(e,t,n,r){if(aD(t)||!e.list.length)return void r({type:"hideTip"});var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}(h,i,e,a),function(e,t,n){var r=n.getZr(),i=eD(r).axisPointerLastHighlights||{},o=eD(r).axisPointerLastHighlights={};Object(x.each)(e,(function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&Object(x.each)(n.seriesDataIndices,(function(e){var t=e.seriesIndex+" | "+e.dataIndex;o[t]=e}))}));var a=[],s=[];Object(x.each)(i,(function(e,t){!o[t]&&s.push(e)})),Object(x.each)(o,(function(e,t){!i[t]&&a.push(e)})),s.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:s}),a.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:a})}(l,0,n),d}}function nD(e,t,n,r,i){var o=e.axis;if(!o.scale.isBlank()&&o.containData(t))if(e.involveSeries){var a=function(e,t){var n=t.axis,r=n.dim,i=e,o=[],a=Number.MAX_VALUE,s=-1;return Object(x.each)(t.seriesModels,(function(t,u){var c,l,f=t.getData().mapDimensionsAll(r);if(t.getAxisTooltipData){var d=t.getAxisTooltipData(f,e,n);l=d.dataIndices,c=d.nestestValue}else{if(!(l=t.getData().indicesOfNearest(f[0],e,"category"===n.type?.5:null)).length)return;c=t.getData().get(f[0],l[0])}if(null!=c&&isFinite(c)){var p=e-c,h=Math.abs(p);h<=a&&((h<a||p>=0&&s<0)&&(a=h,s=p,i=c,o.length=0),Object(x.each)(l,(function(e){o.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})})))}})),{payloadBatch:o,snapToValue:i}}(t,e),s=a.payloadBatch,u=a.snapToValue;s[0]&&null==i.seriesIndex&&Object(x.extend)(i,s[0]),!r&&e.snap&&o.containData(u)&&null!=u&&(t=u),n.showPointer(e,t,s),n.showTooltip(e,a,u)}else n.showPointer(e,t)}function rD(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function iD(e,t,n,r){var i=n.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(t.triggerTooltip&&i.length){var u=t.coordSys.model,c=LO(u),l=e.map[c];l||(l=e.map[c]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},e.list.push(l)),l.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function oD(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function aD(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}function sD(e){FO.registerAxisPointerClass("CartesianAxisPointer",WR),e.registerComponentModel(qR),e.registerComponentView(ZR),e.registerPreprocessor((function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!Object(x.isArray)(t)&&(e.axisPointer.link=[t])}})),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,(function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=PO(e,t)})),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},tD)}var uD=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var o=n.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var a=o.polar,s=a.getOtherAxis(o).getExtent(),u=o.dataToCoord(t),c=r.get("type");if(c&&"none"!==c){var l=MR(r),f=cD[c](o,a,u,s);f.style=l,e.graphicKey=f.type,e.pointer=f}var d=function(e,t,n,r,i){var o=t.axis,a=o.dataToCoord(e),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var u,c,l,f=r.getRadiusAxis().getExtent();if("radius"===o.dim){var d=[1,0,0,1,0,0];ke(d,d,s),Oe(d,d,[r.cx,r.cy]),u=hh([a,-i],d);var p=t.getModel("axisLabel").get("rotate")||0,h=AO.innerTextLayout(s,p*Math.PI/180,-1);c=h.textAlign,l=h.textVerticalAlign}else{var v=f[1];u=r.coordToPoint([v+i,a]);var g=r.cx,m=r.cy;c=Math.abs(u[0]-g)/v<.3?"center":u[0]>g?"left":"right",l=Math.abs(u[1]-m)/v<.3?"middle":u[1]>m?"top":"bottom"}return{position:u,align:c,verticalAlign:l}}(t,n,0,a,r.get(["label","margin"]));IR(e,n,r,i,d)},t}(PR);var cD={line:function(e,t,n,r){return"angle"===e.dim?{type:"Line",shape:NR(t.coordToPoint([r[0],n]),t.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,r){var i=Math.max(1,e.getBandWidth()),o=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:BR(t.cx,t.cy,r[0],r[1],(-n-i/2)*o,(i/2-n)*o)}:{type:"Sector",shape:BR(t.cx,t.cy,n-i/2,n+i/2,0,2*Math.PI)}}},lD=uD,fD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.findAxisModel=function(e){var t;return this.ecModel.eachComponent(e,(function(e){e.getCoordSysModel()===this&&(t=e)}),this),t},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(Ic),dD=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ci).models[0]},t.type="polarAxis",t}(Ic);x.mixin(dD,zb);var pD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.type="angleAxis",t}(dD),hD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.type="radiusAxis",t}(dD),vD=function(e){function t(t,n){return e.call(this,"radius",t,n)||this}return y(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t}(bx);vD.prototype.dataToRadius=bx.prototype.dataToCoord,vD.prototype.radiusToData=bx.prototype.coordToData;var gD=vD,mD=oi(),yD=function(e){function t(t,n){return e.call(this,"angle",t,n||[0,360])||this}return y(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this.getLabelModel(),t=this.scale,n=t.getExtent(),r=t.count();if(n[1]-n[0]<1)return 0;var i=n[0],o=this.dataToCoord(i+1)-this.dataToCoord(i),a=Math.abs(o),s=Gn(null==i?"":i+"",e.getFont(),"center","top"),u=Math.max(s.height,7)/a;isNaN(u)&&(u=1/0);var c=Math.max(0,Math.floor(u)),l=mD(this.model),f=l.lastAutoInterval,d=l.lastTickCount;return null!=f&&null!=d&&Math.abs(f-c)<=1&&Math.abs(d-r)<=1&&f>c?c=f:(l.lastTickCount=r,l.lastAutoInterval=c),c},t}(bx);yD.prototype.dataToAngle=bx.prototype.dataToCoord,yD.prototype.angleToData=bx.prototype.coordToData;var bD=yD,xD=["radius","angle"];function wD(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var _D=function(){function e(e){this.dimensions=xD,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new gD,this._angleAxis=new bD,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){return this["_"+e+"Axis"]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,r=this._radiusAxis;return n.scale.type===e&&t.push(n),r.scale.type===e&&t.push(r),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},e.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,r=this.getAngleAxis(),i=r.getExtent(),o=Math.min(i[0],i[1]),a=Math.max(i[0],i[1]);r.inverse?o=a-360:a=o+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;for(var u=Math.atan2(-n,t)/Math.PI*180,c=u<o?1:-1;u<o||u>a;)u+=360*c;return[s,u]},e.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI;return[Math.cos(n)*t+this.cx,-Math.sin(n)*t+this.cy]},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis().getExtent().slice();t[0]>t[1]&&t.reverse();var n=e.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:t[0],r:t[1],startAngle:-n[0]*r,endAngle:-n[1]*r,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,r=t-this.cy,i=n*n+r*r-1e-4,o=this.r,a=this.r0;return i<=o*o&&i>=a*a}}},e.prototype.convertToPixel=function(e,t,n){return wD(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return wD(t)===this?this.pointToData(n):null},e}();function SD(e,t){var n=this,r=n.getAngleAxis(),i=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===n){var t=e.getData();x.each(Ub(t,"radius"),(function(e){i.scale.unionExtentFromData(t,e)})),x.each(Ub(t,"angle"),(function(e){r.scale.unionExtentFromData(t,e)}))}})),Rb(r.scale,r.model),Rb(i.scale,i.model),"category"===r.type&&!r.onBand){var o=r.getExtent(),a=360/r.scale.count();r.inverse?o[1]+=a:o[1]-=a,r.setExtent(o[0],o[1])}}function OD(e,t){if(e.type=t.get("type"),e.scale=Db(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),function(e){return"angleAxis"===e.mainType}(t)){e.inverse=e.inverse!==t.get("clockwise");var n=t.get("startAngle");e.setExtent(n,n+(e.inverse?-360:360))}t.axis=e,e.model=t}var kD={dimensions:xD,create:function(e,t){var n=[];return e.eachComponent("polar",(function(e,r){var i=new _D(r+"");i.update=SD;var o=i.getRadiusAxis(),a=i.getAngleAxis(),s=e.findAxisModel("radiusAxis"),u=e.findAxisModel("angleAxis");OD(o,s),OD(a,u),function(e,t,n){var r=t.get("center"),i=n.getWidth(),o=n.getHeight();e.cx=wr(r[0],i),e.cy=wr(r[1],o);var a=e.getRadiusAxis(),s=Math.min(i,o)/2,u=t.get("radius");null==u?u=[0,"100%"]:x.isArray(u)||(u=[0,u]);var c=[wr(u[0],s),wr(u[1],s)];a.inverse?a.setExtent(c[1],c[0]):a.setExtent(c[0],c[1])}(i,e,t),n.push(i),e.coordinateSystem=i,i.model=e})),e.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var t=e.getReferringComponents("polar",ci).models[0];0,e.coordinateSystem=t.coordinateSystem}})),n}},ED=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function jD(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var r=e.coordToPoint([t[0],n]),i=e.coordToPoint([t[1],n]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function TD(e){return e.getRadiusAxis().inverse?0:1}function CD(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var AD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return y(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,r=n.polar,i=r.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=x.map(n.getViewLabels(),(function(e){e=x.clone(e);var t=n.scale,r="ordinal"===t.type?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(r),e}));CD(s),CD(o),x.each(ED,(function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||PD[t](this.group,e,r,o,a,i,s)}),this)}},t.type="angleAxis",t}(FO),PD={axisLine:function(e,t,n,r,i,o){var a,s=t.getModel(["axisLine","lineStyle"]),u=TD(n),c=u?0:1;(a=0===o[c]?new Zd({shape:{cx:n.cx,cy:n.cy,r:o[u]},style:s.getLineStyle(),z2:1,silent:!0}):new xp({shape:{cx:n.cx,cy:n.cy,r:o[u],r0:o[c]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null,e.add(a)},axisTick:function(e,t,n,r,i,o){var a=t.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),u=o[TD(n)],c=x.map(r,(function(e){return new Pp({shape:jD(n,[u,u+s],e.coord)})}));e.add(uh(c,{style:x.defaults(a.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,r,i,o){if(i.length){for(var a=t.getModel("axisTick"),s=t.getModel("minorTick"),u=(a.get("inside")?-1:1)*s.get("length"),c=o[TD(n)],l=[],f=0;f<i.length;f++)for(var d=0;d<i[f].length;d++)l.push(new Pp({shape:jD(n,[c,c+u],i[f][d].coord)}));e.add(uh(l,{style:x.defaults(s.getModel("lineStyle").getLineStyle(),x.defaults(a.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,n,r,i,o,a){var s=t.getCategories(!0),u=t.getModel("axisLabel"),c=u.get("margin"),l=t.get("triggerEvent");x.each(a,(function(r,i){var a=u,f=r.tickValue,d=o[TD(n)],p=n.coordToPoint([d+c,r.coord]),h=n.cx,v=n.cy,g=Math.abs(p[0]-h)/d<.3?"center":p[0]>h?"left":"right",m=Math.abs(p[1]-v)/d<.3?"middle":p[1]>v?"top":"bottom";if(s&&s[f]){var y=s[f];x.isObject(y)&&y.textStyle&&(a=new _u(y.textStyle,u,u.ecModel))}var b=new Ma({silent:AO.isLabelSilent(t),style:Zs(a,{x:p[0],y:p[1],fill:a.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:r.formattedLabel,align:g,verticalAlign:m})});if(e.add(b),l){var w=AO.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=r.rawLabel,Ia(b).eventData=w}}),this)},splitLine:function(e,t,n,r,i,o){var a=t.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),u=0;s=s instanceof Array?s:[s];for(var c=[],l=0;l<r.length;l++){var f=u++%s.length;c[f]=c[f]||[],c[f].push(new Pp({shape:jD(n,o,r[l].coord)}))}for(l=0;l<c.length;l++)e.add(uh(c[l],{style:x.defaults({stroke:s[l%s.length]},a.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,n,r,i,o){if(i.length){for(var a=t.getModel("minorSplitLine").getModel("lineStyle"),s=[],u=0;u<i.length;u++)for(var c=0;c<i[u].length;c++)s.push(new Pp({shape:jD(n,o,i[u][c].coord)}));e.add(uh(s,{style:a.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,n,r,i,o){if(r.length){var a=t.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),u=0;s=s instanceof Array?s:[s];for(var c=[],l=Math.PI/180,f=-r[0].coord*l,d=Math.min(o[0],o[1]),p=Math.max(o[0],o[1]),h=t.get("clockwise"),v=1,g=r.length;v<=g;v++){var m=v===g?r[0].coord:r[v].coord,y=u++%s.length;c[y]=c[y]||[],c[y].push(new mp({shape:{cx:n.cx,cy:n.cy,r0:d,r:p,startAngle:f,endAngle:-m*l,clockwise:h},silent:!0})),f=-m*l}for(v=0;v<c.length;v++)e.add(uh(c[v],{style:x.defaults({fill:s[v%s.length]},a.getAreaStyle()),silent:!0}))}}},MD=AD,ID=["axisLine","axisTickLabel","axisName"],RD=["splitLine","splitArea","minorSplitLine"],DD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return y(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=this._axisGroup,r=this._axisGroup=new ur;this.group.add(r);var i=e.axis,o=i.polar,a=o.getAngleAxis(),s=i.getTicksCoords(),u=i.getMinorTicksCoords(),c=a.getExtent()[0],l=i.getExtent(),f=function(e,t,n){return{position:[e.cx,e.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}(o,e,c),d=new AO(e,f);x.each(ID,d.add,d),r.add(d.getGroup()),mh(n,r,e),x.each(RD,(function(t){e.get([t,"show"])&&!i.scale.isBlank()&&LD[t](this.group,e,o,c,l,s,u)}),this)}},t.type="radiusAxis",t}(FO),LD={splitLine:function(e,t,n,r,i,o){var a=t.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),u=0;s=s instanceof Array?s:[s];for(var c=[],l=0;l<o.length;l++){var f=u++%s.length;c[f]=c[f]||[],c[f].push(new Zd({shape:{cx:n.cx,cy:n.cy,r:Math.max(o[l].coord,0)}}))}for(l=0;l<c.length;l++)e.add(uh(c[l],{style:x.defaults({stroke:s[l%s.length],fill:null},a.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,n,r,i,o,a){if(a.length){for(var s=t.getModel("minorSplitLine").getModel("lineStyle"),u=[],c=0;c<a.length;c++)for(var l=0;l<a[c].length;l++)u.push(new Zd({shape:{cx:n.cx,cy:n.cy,r:a[c][l].coord}}));e.add(uh(u,{style:x.defaults({fill:null},s.getLineStyle()),silent:!0}))}},splitArea:function(e,t,n,r,i,o){if(o.length){var a=t.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),u=0;s=s instanceof Array?s:[s];for(var c=[],l=o[0].coord,f=1;f<o.length;f++){var d=u++%s.length;c[d]=c[d]||[],c[d].push(new mp({shape:{cx:n.cx,cy:n.cy,r0:l,r:o[f].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),l=o[f].coord}for(f=0;f<c.length;f++)e.add(uh(c[f],{style:x.defaults({fill:s[f%s.length]},a.getAreaStyle()),silent:!0}))}}};var ND=DD;function FD(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function BD(e,t){return t.dim+e.model.componentIndex}var UD=function(e,t,n){var r={},i=function(e){var t={};x.each(e,(function(e,n){var r=e.getData(),i=e.coordinateSystem,o=i.getBaseAxis(),a=BD(i,o),s=o.getExtent(),u="category"===o.type?o.getBandWidth():Math.abs(s[1]-s[0])/r.count(),c=t[a]||{bandWidth:u,remainedWidth:u,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},l=c.stacks;t[a]=c;var f=FD(e);l[f]||c.autoWidthCount++,l[f]=l[f]||{width:0,maxWidth:0};var d=wr(e.get("barWidth"),u),p=wr(e.get("barMaxWidth"),u),h=e.get("barGap"),v=e.get("barCategoryGap");d&&!l[f].width&&(d=Math.min(c.remainedWidth,d),l[f].width=d,c.remainedWidth-=d),p&&(l[f].maxWidth=p),null!=h&&(c.gap=h),null!=v&&(c.categoryGap=v)}));var n={};return x.each(t,(function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,o=wr(e.categoryGap,i),a=wr(e.gap,1),s=e.remainedWidth,u=e.autoWidthCount,c=(s-o)/(u+(u-1)*a);c=Math.max(c,0),x.each(r,(function(e,t){var n=e.maxWidth;n&&n<c&&(n=Math.min(n,s),e.width&&(n=Math.min(n,e.width)),s-=n,e.width=n,u--)})),c=(s-o)/(u+(u-1)*a),c=Math.max(c,0);var l,f=0;x.each(r,(function(e,t){e.width||(e.width=c),l=e,f+=e.width*(1+a)})),l&&(f-=l.width*a);var d=-f/2;x.each(r,(function(e,r){n[t][r]=n[t][r]||{offset:d,width:e.width},d+=e.width*(1+a)}))})),n}(x.filter(t.getSeriesByType(e),(function(e){return!t.isSeriesFiltered(e)&&e.coordinateSystem&&"polar"===e.coordinateSystem.type})));t.eachSeriesByType(e,(function(e){if("polar"===e.coordinateSystem.type){var t=e.getData(),n=e.coordinateSystem,o=n.getBaseAxis(),a=BD(n,o),s=FD(e),u=i[a][s],c=u.offset,l=u.width,f=n.getOtherAxis(o),d=e.coordinateSystem.cx,p=e.coordinateSystem.cy,h=e.get("barMinHeight")||0,v=e.get("barMinAngle")||0;r[s]=r[s]||[];for(var g=t.mapDimension(f.dim),m=t.mapDimension(o.dim),y=Ty(t,g),b="radius"!==o.dim||!e.get("roundCap",!0),x=f.dataToCoord(0),w=0,_=t.count();w<_;w++){var S=t.get(g,w),O=t.get(m,w),k=S>=0?"p":"n",E=x;y&&(r[s][O]||(r[s][O]={p:x,n:x}),E=r[s][O][k]);var j=void 0,T=void 0,C=void 0,A=void 0;if("radius"===f.dim){var P=f.dataToCoord(S)-x,M=o.dataToCoord(O);Math.abs(P)<h&&(P=(P<0?-1:1)*h),j=E,T=E+P,A=(C=M-c)-l,y&&(r[s][O][k]=T)}else{var I=f.dataToCoord(S,b)-x,R=o.dataToCoord(O);Math.abs(I)<v&&(I=(I<0?-1:1)*v),T=(j=R+c)+l,C=E,A=E+I,y&&(r[s][O][k]=A)}t.setItemLayout(w,{cx:d,cy:p,r0:j,r:T,startAngle:-C*Math.PI/180,endAngle:-A*Math.PI/180,clockwise:C>=A})}}}))},zD={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},VD={splitNumber:5},HD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.type="polar",t}(Td);function WD(e,t){t=t||{};var n=e.coordinateSystem,r=e.axis,i={},o=r.position,a=r.orient,s=n.getRect(),u=[s.x,s.x+s.width,s.y,s.y+s.height],c={horizontal:{top:u[2],bottom:u[3]},vertical:{left:u[0],right:u[1]}};i.position=["vertical"===a?c.vertical[o]:u[0],"horizontal"===a?c.horizontal[o]:u[3]];i.rotation=Math.PI/2*{horizontal:0,vertical:1}[a];i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,right:1,left:-1}[o],e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),x.retrieve(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var l=t.rotate;return null==l&&(l=e.get(["axisLabel","rotate"])),i.labelRotation="top"===o?-l:l,i.z2=1,i}var qD=["axisLine","axisTickLabel","axisName"],GD=["splitArea","splitLine"],YD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="SingleAxisPointer",n}return y(t,e),t.prototype.render=function(t,n,r,i){var o=this.group;o.removeAll();var a=this._axisGroup;this._axisGroup=new ur;var s=WD(t),u=new AO(t,s);x.each(qD,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),x.each(GD,(function(e){t.get([e,"show"])&&KD[e](this,this.group,this._axisGroup,t)}),this),mh(a,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i)},t.prototype.remove=function(){zO(this)},t.type="singleAxis",t}(FO),KD={splitLine:function(e,t,n,r){var i=r.axis;if(!i.scale.isBlank()){var o=r.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=s instanceof Array?s:[s];for(var u=a.get("width"),c=r.coordinateSystem.getRect(),l=i.isHorizontal(),f=[],d=0,p=i.getTicksCoords({tickModel:o}),h=[],v=[],g=0;g<p.length;++g){var m=i.toGlobalCoord(p[g].coord);l?(h[0]=m,h[1]=c.y,v[0]=m,v[1]=c.y+c.height):(h[0]=c.x,h[1]=m,v[0]=c.x+c.width,v[1]=m);var y=new Pp({shape:{x1:h[0],y1:h[1],x2:v[0],y2:v[1]},silent:!0});lh(y.shape,u);var b=d++%s.length;f[b]=f[b]||[],f[b].push(y)}var w=a.getLineStyle(["color"]);for(g=0;g<f.length;++g)t.add(uh(f[g],{style:x.defaults({stroke:s[g%s.length]},w),silent:!0}))}},splitArea:function(e,t,n,r){UO(e,n,r,r)}},$D=YD,XD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t}(Ic);Object(x.mixin)(XD,zb.prototype);var QD=XD,ZD=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r)||this;return a.type=i||"value",a.position=o||"bottom",a}return y(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.pointToData=function(e,t){return this.coordinateSystem.pointToData(e)[0]},t}(bx),JD=["single"];function eL(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var tL=function(){function e(e,t,n){this.type="single",this.dimension="single",this.dimensions=JD,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var r=this.dimension,i=new ZD(r,Db(e),[0,0],e.get("type"),e.get("position")),o="category"===i.type;i.onBand=o&&e.get("boundaryGap"),i.inverse=e.get("inverse"),i.orient=e.get("orient"),e.axis=i,i.model=e,i.coordinateSystem=this,this._axis=i},e.prototype.update=function(e,t){e.eachSeries((function(e){if(e.coordinateSystem===this){var t=e.getData();Object(x.each)(t.mapDimensionsAll(this.dimension),(function(e){this._axis.scale.unionExtentFromData(t,e)}),this),Rb(this._axis.scale,this._axis.model)}}),this)},e.prototype.resize=function(e,t){this._rect=kc({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,n=t.isHorizontal(),r=n?[0,e.width]:[0,e.height],i=t.inverse?1:0;t.setExtent(r[i],r[1-i]),this._updateAxisTransform(t,n?e.x:e.y)},e.prototype._updateAxisTransform=function(e,t){var n=e.getExtent(),r=n[0]+n[1],i=e.isHorizontal();e.toGlobalCoord=i?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=i?function(e){return e-t}:function(e){return r-e+t}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(e){var t=this.getRect(),n=this.getAxis();return"horizontal"===n.orient?n.contain(n.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},e.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},e.prototype.dataToPoint=function(e){var t=this.getAxis(),n=this.getRect(),r=[],i="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),r[i]=t.toGlobalCoord(t.dataToCoord(+e)),r[1-i]=0===i?n.y+n.height/2:n.x+n.width/2,r},e.prototype.convertToPixel=function(e,t,n){return eL(t)===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){return eL(t)===this?this.pointToData(n):null},e}();var nL={create:function(e,t){var n=[];return e.eachComponent("singleAxis",(function(r,i){var o=new tL(r,e,t);o.name="single_"+i,o.resize(r,t),r.coordinateSystem=o,n.push(o)})),e.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var t=e.getReferringComponents("singleAxis",ci).models[0];e.coordinateSystem=t&&t.coordinateSystem}})),n},dimensions:JD},rL=["x","y"],iL=["width","height"],oL=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var o=n.axis,a=o.coordinateSystem,s=uL(a,1-sL(o)),u=a.dataToPoint(t)[0],c=r.get("type");if(c&&"none"!==c){var l=MR(r),f=aL[c](o,u,s);f.style=l,e.graphicKey=f.type,e.pointer=f}LR(t,e,WD(n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=WD(t,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=DR(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,o=i.coordinateSystem,a=sL(i),s=uL(o,a),u=[e.x,e.y];u[a]+=t[a],u[a]=Math.min(s[1],u[a]),u[a]=Math.max(s[0],u[a]);var c=uL(o,1-a),l=(c[1]+c[0])/2,f=[l,l];return f[a]=u[a],{x:u[0],y:u[1],rotation:e.rotation,cursorPoint:f,tooltipOption:{verticalAlign:"middle"}}},t}(PR),aL={line:function(e,t,n){return{type:"Line",subPixelOptimize:!0,shape:NR([t,n[0]],[t,n[1]],sL(e))}},shadow:function(e,t,n){var r=e.getBandWidth(),i=n[1]-n[0];return{type:"Rect",shape:FR([t-r/2,n[0]],[r,i],sL(e))}}};function sL(e){return e.isHorizontal()?0:1}function uL(e,t){var n=e.getRect();return[n[rL[t]],n[rL[t]]+n[iL[t]]]}var cL=oL,lL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.type="single",t}(Td);function fL(e,t){var n,r=e.cellSize;1===(n=x.isArray(r)?r:e.cellSize=[r,r]).length&&(n[1]=n[0]);var i=x.map([0,1],(function(e){return function(e,t){return null!=e[_c[t][0]]||null!=e[_c[t][1]]&&null!=e[_c[t][2]]}(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]}));Tc(e,t,{type:"box",ignoreSize:i})}var dL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.init=function(t,n,r){var i=Cc(t);e.prototype.init.apply(this,arguments),fL(t,i)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),fL(this.option,t)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(Ic),pL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.render=function(e,t,n){var r=this.group;r.removeAll();var i=e.coordinateSystem,o=i.getRangeInfo(),a=i.getOrient(),s=t.getLocaleModel();this._renderDayRect(e,o,r),this._renderLines(e,o,a,r),this._renderYearText(e,o,a,r),this._renderMonthText(e,s,a,r),this._renderWeekText(e,s,o,a,r)},t.prototype._renderDayRect=function(e,t,n){for(var r=e.coordinateSystem,i=e.getModel("itemStyle").getItemStyle(),o=r.getCellWidth(),a=r.getCellHeight(),s=t.start.time;s<=t.end.time;s=r.getNextNDay(s,1).time){var u=r.dataToRect([s],!1).tl,c=new ga({shape:{x:u[0],y:u[1],width:o,height:a},cursor:"default",style:i});n.add(c)}},t.prototype._renderLines=function(e,t,n,r){var i=this,o=e.coordinateSystem,a=e.getModel(["splitLine","lineStyle"]).getLineStyle(),s=e.get(["splitLine","show"]),u=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=t.start,l=0;c.time<=t.end.time;l++){d(c.formatedDate),0===l&&(c=o.getDateInfo(t.start.y+"-"+t.start.m));var f=c.date;f.setMonth(f.getMonth()+1),c=o.getDateInfo(f)}function d(t){i._firstDayOfMonth.push(o.getDateInfo(t)),i._firstDayPoints.push(o.dataToRect([t],!1).tl);var u=i._getLinePointsOfOneWeek(e,t,n);i._tlpoints.push(u[0]),i._blpoints.push(u[u.length-1]),s&&i._drawSplitline(u,a,r)}d(o.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(i._getEdgesPoints(i._tlpoints,u,n),a,r),s&&this._drawSplitline(i._getEdgesPoints(i._blpoints,u,n),a,r)},t.prototype._getEdgesPoints=function(e,t,n){var r=[e[0].slice(),e[e.length-1].slice()],i="horizontal"===n?0:1;return r[0][i]=r[0][i]-t/2,r[1][i]=r[1][i]+t/2,r},t.prototype._drawSplitline=function(e,t,n){var r=new jp({z2:20,shape:{points:e},style:t});n.add(r)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var r=e.coordinateSystem,i=r.getDateInfo(t),o=[],a=0;a<7;a++){var s=r.getNextNDay(i.time,a),u=r.dataToRect([s.time],!1);o[2*s.day]=u.tl,o[2*s.day+1]=u["horizontal"===n?"bl":"tr"]}return o},t.prototype._formatterLabel=function(e,t){return Object(x.isString)(e)&&e?(n=e,r=t,x.each(r,(function(e,t){n=n.replace("{"+t+"}",i?ae(e):e)})),n):Object(x.isFunction)(e)?e(t):t.nameMap;var n,r,i},t.prototype._yearTextPositionControl=function(e,t,n,r,i){var o=t[0],a=t[1],s=["center","bottom"];"bottom"===r?(a+=i,s=["center","top"]):"left"===r?o-=i:"right"===r?(o+=i,s=["center","top"]):a-=i;var u=0;return"left"!==r&&"right"!==r||(u=Math.PI/2),{rotation:u,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,n,r){var i=e.getModel("yearLabel");if(i.get("show")){var o=i.get("margin"),a=i.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],u=(s[0][0]+s[1][0])/2,c=(s[0][1]+s[1][1])/2,l="horizontal"===n?0:1,f={top:[u,s[l][1]],bottom:[u,s[1-l][1]],left:[s[1-l][0],c],right:[s[l][0],c]},d=t.start.y;+t.end.y>+t.start.y&&(d=d+"-"+t.end.y);var p=i.get("formatter"),h={start:t.start.y,end:t.end.y,nameMap:d},v=this._formatterLabel(p,h),g=new Ma({z2:30,style:Zs(i,{text:v})});g.attr(this._yearTextPositionControl(g,f[a],n,a,o)),r.add(g)}},t.prototype._monthTextPositionControl=function(e,t,n,r,i){var o="left",a="top",s=e[0],u=e[1];return"horizontal"===n?(u+=i,t&&(o="center"),"start"===r&&(a="bottom")):(s+=i,t&&(a="middle"),"start"===r&&(o="right")),{x:s,y:u,align:o,verticalAlign:a}},t.prototype._renderMonthText=function(e,t,n,r){var i=e.getModel("monthLabel");if(i.get("show")){var o=i.get("nameMap"),a=i.get("margin"),s=i.get("position"),u=i.get("align"),c=[this._tlpoints,this._blpoints];o&&!Object(x.isString)(o)||(o&&(t=Iu(o)||t),o=t.get(["time","monthAbbr"])||[]);var l="start"===s?0:1,f="horizontal"===n?0:1;a="start"===s?-a:a;for(var d="center"===u,p=0;p<c[l].length-1;p++){var h=c[l][p].slice(),v=this._firstDayOfMonth[p];if(d){var g=this._firstDayPoints[p];h[f]=(g[f]+c[0][p+1][f])/2}var m=i.get("formatter"),y=o[+v.m-1],b={yyyy:v.y,yy:(v.y+"").slice(2),MM:v.m,M:+v.m,nameMap:y},w=this._formatterLabel(m,b),_=new Ma({z2:30,style:Object(x.extend)(Zs(i,{text:w}),this._monthTextPositionControl(h,d,n,s,a))});r.add(_)}}},t.prototype._weekTextPositionControl=function(e,t,n,r,i){var o="center",a="middle",s=e[0],u=e[1],c="start"===n;return"horizontal"===t?(s=s+r+(c?1:-1)*i[0]/2,o=c?"right":"left"):(u=u+r+(c?1:-1)*i[1]/2,a=c?"bottom":"top"),{x:s,y:u,align:o,verticalAlign:a}},t.prototype._renderWeekText=function(e,t,n,r,i){var o=e.getModel("dayLabel");if(o.get("show")){var a=e.coordinateSystem,s=o.get("position"),u=o.get("nameMap"),c=o.get("margin"),l=a.getFirstDayOfWeek();if(!u||Object(x.isString)(u))u&&(t=Iu(u)||t),u=t.get(["time","dayOfWeekShort"])||Object(x.map)(t.get(["time","dayOfWeekAbbr"]),(function(e){return e[0]}));var f=a.getNextNDay(n.end.time,7-n.lweek).time,d=[a.getCellWidth(),a.getCellHeight()];c=wr(c,Math.min(d[1],d[0])),"start"===s&&(f=a.getNextNDay(n.start.time,-(7+n.fweek)).time,c=-c);for(var p=0;p<7;p++){var h,v=a.getNextNDay(f,p),g=a.dataToRect([v.time],!1).center;h=Math.abs((p+l)%7);var m=new Ma({z2:30,style:Object(x.extend)(Zs(o,{text:u[h]}),this._weekTextPositionControl(g,r,s,c,d))});i.add(m)}}},t.type="calendar",t}(Td);function hL(e){var t=e.calendarModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem:null}var vL=function(){function e(t,n,r){this.type="calendar",this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t}return e.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},e.prototype.getDateInfo=function(e){var t=(e=Rr(e)).getFullYear(),n=e.getMonth()+1,r=n<10?"0"+n:""+n,i=e.getDate(),o=i<10?"0"+i:""+i,a=e.getDay();return{y:t+"",m:r,d:o,day:a=Math.abs((a+7-this.getFirstDayOfWeek())%7),time:e.getTime(),formatedDate:t+"-"+r+"-"+o,date:e}},e.prototype.getNextNDay=function(e,t){return 0===(t=t||0)?this.getDateInfo(e):((e=new Date(this.getDateInfo(e).time)).setDate(e.getDate()+t),this.getDateInfo(e))},e.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,r=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),a="horizontal"===this._orient?[n,7]:[7,n];x.each([0,1],(function(e){c(i,e)&&(o[r[e]]=i[e]*a[e])}));var s={width:t.getWidth(),height:t.getHeight()},u=this._rect=kc(o,s);function c(e,t){return null!=e[t]&&"auto"!==e[t]}x.each([0,1],(function(e){c(i,e)||(i[e]=u[r[e]]/a[e])})),this._sw=i[0],this._sh=i[1]},e.prototype.dataToPoint=function(e,t){x.isArray(e)&&(e=e[0]),null==t&&(t=!0);var n=this.getDateInfo(e),r=this._rangeInfo,i=n.formatedDate;if(t&&!(n.time>=r.start.time&&n.time<r.end.time+864e5))return[NaN,NaN];var o=n.day,a=this._getRangeInfo([r.start.time,i]).nthWeek;return"vertical"===this._orient?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]:[this._rect.x+a*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},e.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},e.prototype.dataToRect=function(e,t){var n=this.dataToPoint(e,t);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},e.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,r=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,t-1,r):this._getDateByWeeksAndDay(t,n-1,r)},e.prototype.convertToPixel=function(e,t,n){var r=hL(t);return r===this?r.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var r=hL(t);return r===this?r.pointToData(n):null},e.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},e.prototype._initRangeOption=function(){var e,t=this._model.get("range");if(x.isArray(t)&&1===t.length&&(t=t[0]),x.isArray(t))e=t;else{var n=t.toString();if(/^\d{4}$/.test(n)&&(e=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var r=this.getDateInfo(n),i=r.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);e=[r.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(e=[n,n])}if(!e)return t;var a=this._getRangeInfo(e);return a.start.time>a.end.time&&e.reverse(),e},e.prototype._getRangeInfo=function(e){var t,n=[this.getDateInfo(e[0]),this.getDateInfo(e[1])];n[0].time>n[1].time&&(t=!0,n.reverse());var r=Math.floor(n[1].time/864e5)-Math.floor(n[0].time/864e5)+1,i=new Date(n[0].time),o=i.getDate(),a=n[1].date.getDate();i.setDate(o+r-1);var s=i.getDate();if(s!==a)for(var u=i.getTime()-n[1].time>0?1:-1;(s=i.getDate())!==a&&(i.getTime()-n[1].time)*u>0;)r-=u,i.setDate(s-u);var c=Math.floor((r+n[0].day+6)/7),l=t?1-c:c-1;return t&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:r,weeks:c,nthWeek:l,fweek:n[0].day,lweek:n[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var r=this._getRangeInfo(n);if(e>r.weeks||0===e&&t<r.fweek||e===r.weeks&&t>r.lweek)return null;var i=7*(e-1)-r.fweek+t,o=new Date(r.start.time);return o.setDate(+r.start.d+i),this.getDateInfo(o)},e.create=function(t,n){var r=[];return t.eachComponent("calendar",(function(i){var o=new e(i,t,n);r.push(o),i.coordinateSystem=o})),t.eachSeries((function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=r[e.get("calendarIndex")||0])})),r},e.dimensions=["time","value"],e}();function gL(e,t){var n;return x.each(t,(function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)})),n}var mL=["transition","enterFrom","leaveTo"],yL=mL.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function bL(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),e&&t)for(var r=n?mL:yL,i=0;i<r.length;i++){var o=r[i];null==e[o]&&null!=t[o]&&(e[o]=t[o])}}var xL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return y(t,e),t.prototype.mergeOption=function(t,n){var r=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=r},t.prototype.optionUpdated=function(e,t){var n=this.option,r=(t?n:e).elements,i=n.elements=t?[]:n.elements,o=[];this._flatten(r,o,null);var a=Zr(i,o,"normalMerge"),s=this._elOptionsToUpdate=[];x.each(a,(function(e,t){var n=e.newOption;n&&(s.push(n),function(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),null==t.parentId){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}(e,n),function(e,t,n){var r=x.extend({},n),i=e[t],o=n.$action||"merge";"merge"===o?i?(x.merge(i,r,!0),Tc(i,r,{ignoreSize:!0}),Ac(n,i),bL(n,i),bL(n,i,"shape"),bL(n,i,"style"),bL(n,i,"extra"),n.clipPath=i.clipPath):e[t]=r:"replace"===o?e[t]=r:"remove"===o&&i&&(e[t]=null)}(i,t,n),function(e,t){if(e&&(e.hv=t.hv=[gL(t,["left","right"]),gL(t,["top","bottom"])],"group"===e.type)){var n=e,r=t;null==n.width&&(n.width=r.width=0),null==n.height&&(n.height=r.height=0)}}(i[t],n))}),this),n.elements=x.filter(i,(function(e){return e&&delete e.$action,null!=e}))},t.prototype._flatten=function(e,t,n){x.each(e,(function(e){if(e){n&&(e.parentOption=n),t.push(e);var r=e.children;r&&r.length&&this._flatten(r,t,e),delete e.children}}),this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(Ic),wL={path:null,compoundPath:null,group:ur,image:ua,text:Ma},_L=oi(),SL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.init=function(){this._elMap=x.createHashMap()},t.prototype.render=function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,r=this.group,i=e.get("z"),o=e.get("zlevel");x.each(t,(function(t){var a=ti(t.id,null),s=null!=a?n.get(a):null,u=ti(t.parentId,null),c=null!=u?n.get(u):r,l=t.type,f=t.style;"text"===l&&f&&t.hv&&t.hv[1]&&(f.textVerticalAlign=f.textBaseline=f.verticalAlign=f.align=null);var d=t.textContent,p=t.textConfig;if(f&&kI(f,l,!!p,!!d)){var h=EI(f,l,!0);!p&&h.textConfig&&(p=t.textConfig=h.textConfig),!d&&h.textContent&&(d=h.textContent)}var v=function(e){return e=x.extend({},e),x.each(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(wc),(function(t){delete e[t]})),e}(t);var g=t.$action||"merge",m="merge"===g,y="replace"===g;if(m){var b=s;(j=!s)?b=kL(a,c,t.type,n):(b&&(_L(b).isNew=!1),YI(b)),b&&(DI(b,v,e,{isInit:j}),jL(b,t,i,o))}else if(y){EL(s,t,n,e);var w=kL(a,c,t.type,n);w&&(DI(w,v,e,{isInit:!0}),jL(w,t,i,o))}else"remove"===g&&(LI(s,t),EL(s,t,n,e));var _=n.get(a);if(_&&d)if(m){var S=_.getTextContent();S?S.attr(d):_.setTextContent(new Ma(d))}else y&&_.setTextContent(new Ma(d));if(_){var O=t.clipPath;if(O){var k=O.type,E=void 0,j=!1;if(m){var T=_.getClipPath();E=(j=!T||_L(T).type!==k)?OL(k):T}else y&&(j=!0,E=OL(k));_.setClipPath(E),DI(E,O,e,{isInit:j}),KI(E,O.keyframeAnimation,e)}var C=_L(_);_.setTextConfig(p),C.option=t,function(e,t,n){var r=Ia(e).eventData;e.silent||e.ignore||r||(r=Ia(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name});r&&(r.info=n.info)}(_,e,t),Oh({el:_,componentModel:e,itemName:_.name,itemTooltipOption:t.tooltip}),KI(_,t.keyframeAnimation,e)}}))}},t.prototype._relocate=function(e,t){for(var n=e.option.elements,r=this.group,i=this._elMap,o=t.getWidth(),a=t.getHeight(),s=["x","y"],u=0;u<n.length;u++){if((h=null!=(p=ti((d=n[u]).id,null))?i.get(p):null)&&h.isGroup){var c=(v=h.parent)===r,l=_L(h),f=_L(v);l.width=wr(l.option.width,c?o:f.width)||0,l.height=wr(l.option.height,c?a:f.height)||0}}for(u=n.length-1;u>=0;u--){var d,p,h;if(h=null!=(p=ti((d=n[u]).id,null))?i.get(p):null){var v=h.parent,g=(f=_L(v),{}),m=Ec(h,d,v===r?{width:o,height:a}:{width:f.width,height:f.height},null,{hv:d.hv,boundingMode:d.bounding},g);if(!_L(h).isNew&&m){for(var y=d.transition,b={},w=0;w<s.length;w++){var _=s[w],S=g[_];y&&(FI(y)||x.indexOf(y,_)>=0)?b[_]=S:h[_]=S}Us(h,b,e,0)}else h.attr(g)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each((function(n){EL(n,_L(n).option,t,e._lastGraphicModel)})),this._elMap=x.createHashMap()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Td);function OL(e){var t=new(x.hasOwn(wL,e)?wL[e]:ih(e))({});return _L(t).type=e,t}function kL(e,t,n,r){var i=OL(n);return t.add(i),r.set(e,i),_L(i).id=e,_L(i).isNew=!0,i}function EL(e,t,n,r){e&&e.parent&&("group"===e.type&&e.traverse((function(e){EL(e,t,n,r)})),NI(e,t,r),n.removeKey(_L(e).id))}function jL(e,t,n,r){e.isGroup||x.each([["cursor",Ji.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],(function(n){var r=n[0];x.hasOwn(t,r)?e[r]=x.retrieve2(t[r],n[1]):null==e[r]&&(e[r]=n[1])})),x.each(x.keys(t),(function(n){if(0===n.indexOf("on")){var r=t[n];e[n]=x.isFunction(r)?r:null}})),x.hasOwn(t,"draggable")&&(e.draggable=t.draggable),null!=t.name&&(e.name=t.name),null!=t.id&&(e.id=t.id)}var TL=["x","y","radius","angle","single"],CL=["cartesian2d","polar","singleAxis"];function AL(e){return e+"Axis"}function PL(e,t){var n,r=Object(x.createHashMap)(),i=[],o=Object(x.createHashMap)();e.eachComponent({mainType:"dataZoom",query:t},(function(e){o.get(e.uid)||s(e)}));do{n=!1,e.eachComponent("dataZoom",a)}while(n);function a(e){!o.get(e.uid)&&function(e){var t=!1;return e.eachTargetAxis((function(e,n){var i=r.get(e);i&&i[n]&&(t=!0)})),t}(e)&&(s(e),n=!0)}function s(e){o.set(e.uid,!0),i.push(e),e.eachTargetAxis((function(e,t){(r.get(e)||r.set(e,[]))[t]=!0}))}return i}function ML(e){var t=e.ecModel,n={infoList:[],infoMap:Object(x.createHashMap)()};return e.eachTargetAxis((function(e,r){var i=t.getComponent(AL(e),r);if(i){var o=i.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(i)}}})),n}var IL=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}();function RL(e){var t={};return Object(x.each)(["start","end","startValue","endValue","throttle"],(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}var DL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return y(t,e),t.prototype.init=function(e,t,n){var r=RL(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},t.prototype.mergeOption=function(e){var t=RL(e);Object(x.merge)(this.option,e,!0),Object(x.merge)(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;Object(x.each)([["start","startValue"],["end","endValue"]],(function(e,r){"value"===this._rangePropMode[r]&&(t[e[0]]=n[e[0]]=null)}),this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),t=this._targetAxisInfoMap=Object(x.createHashMap)();this._fillSpecifiedTargetAxis(t)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each((function(e){e.indexList.length&&(this._noTarget=!1)}),this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return Object(x.each)(TL,(function(n){var r=this.getReferringComponents(AL(n),li);if(r.specified){t=!0;var i=new IL;Object(x.each)(r.models,(function(e){i.add(e.componentIndex)})),e.set(n,i)}}),this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,r=!0;if(r){var i="vertical"===t?"y":"x";o(n.findComponents({mainType:i+"Axis"}),i)}r&&o(n.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}}),"single");function o(t,n){var i=t[0];if(i){var o=new IL;if(o.add(i.componentIndex),e.set(n,o),r=!1,"x"===n||"y"===n){var a=i.getReferringComponents("grid",ci).models[0];a&&Object(x.each)(t,(function(e){i.componentIndex!==e.componentIndex&&a===e.getReferringComponents("grid",ci).models[0]&&o.add(e.componentIndex)}))}}}r&&Object(x.each)(TL,(function(t){if(r){var i=n.findComponents({mainType:AL(t),filter:function(e){return"category"===e.get("type",!0)}});if(i[0]){var o=new IL;o.add(i[0].componentIndex),e.set(t,o),r=!1}}}),this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis((function(t){!e&&(e=t)}),this),"y"===e?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get("rangeMode");Object(x.each)([["start","startValue"],["end","endValue"]],(function(r,i){var o=null!=e[r[0]],a=null!=e[r[1]];o&&!a?t[i]="percent":!o&&a?t[i]="value":n?t[i]=n[i]:o&&(t[i]="percent")}))},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis((function(t,n){null==e&&(e=this.ecModel.getComponent(AL(t),n))}),this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each((function(n,r){Object(x.each)(n.indexList,(function(n){e.call(t,r,n)}))}))},t.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(AL(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;Object(x.each)([["start","startValue"],["end","endValue"]],(function(r){null==e[r[0]]&&null==e[r[1]]||(t[r[0]]=n[r[0]]=e[r[0]],t[r[1]]=n[r[1]]=e[r[1]])}),this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;Object(x.each)(["start","startValue","end","endValue"],(function(n){t[n]=e[n]}))},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,n=this._targetAxisInfoMap.keys(),r=0;r<n.length;r++)for(var i=n[r],o=this._targetAxisInfoMap.get(i),a=0;a<o.indexList.length;a++){var s=this.getAxisProxy(i,o.indexList[a]);if(s.hostedBy(this))return s;t||(t=s)}return t},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(Ic),LL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.type="dataZoom.select",t}(DL),NL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.render=function(e,t,n,r){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type="dataZoom",t}(Td),FL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.type="dataZoom.select",t}(NL),BL=x.each,UL=Sr;var zL=function(){function e(e,t,n,r){this._dimName=e,this._axisIndex=t,this.ecModel=r,this._dataZoomModel=n}return e.prototype.hostedBy=function(e){return this._dataZoomModel===e},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries((function(t){if(function(e){var t=e.get("coordinateSystem");return Object(x.indexOf)(CL,t)>=0}(t)){var n=AL(this._dimName),r=t.getReferringComponents(n,ci).models[0];r&&this._axisIndex===r.componentIndex&&e.push(t)}}),this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return x.clone(this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t,n=this._dataExtent,r=this.getAxisModel().axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],a=[],s=[];BL(["start","end"],(function(u,c){var l=e[u],f=e[u+"Value"];"percent"===i[c]?(null==l&&(l=o[c]),f=r.parse(xr(l,o,n))):(t=!0,l=xr(f=null==f?n[c]:r.parse(f),n,o)),s[c]=f,a[c]=l})),UL(s),UL(a);var u=this._minMaxSpan;function c(e,t,n,i,o){var a=o?"Span":"ValueSpan";QC(0,e,n,"all",u["min"+a],u["max"+a]);for(var s=0;s<2;s++)t[s]=xr(e[s],n,i,!0),o&&(t[s]=r.parse(t[s]))}return t?c(s,a,n,o,!1):c(a,s,o,n,!0),{valueWindow:s,percentWindow:a}},e.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=function(e,t,n){var r=[1/0,-1/0];BL(n,(function(e){!function(e,t,n){t&&x.each(Ub(t,n),(function(n){var r=t.getApproximateExtent(n);r[0]<e[0]&&(e[0]=r[0]),r[1]>e[1]&&(e[1]=r[1])}))}(r,e.getData(),t)}));var i=e.getAxisModel(),o=Pb(i.axis.scale,i,r).calculate();return[o.min,o.max]}(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(e,t){if(e===this._dataZoomModel){var n=this._dimName,r=this.getTargetSeriesModels(),i=e.get("filterMode"),o=this._valueWindow;"none"!==i&&BL(r,(function(e){var t=e.getData(),r=t.mapDimensionsAll(n);if(r.length){if("weakFilter"===i){var a=t.getStore(),s=x.map(r,(function(e){return t.getDimensionIndex(e)}),t);t.filterSelf((function(e){for(var t,n,i,u=0;u<r.length;u++){var c=a.get(s[u],e),l=!isNaN(c),f=c<o[0],d=c>o[1];if(l&&!f&&!d)return!0;l&&(i=!0),f&&(t=!0),d&&(n=!0)}return i&&t&&n}))}else BL(r,(function(n){if("empty"===i)e.setData(t=t.map(n,(function(e){return function(e){return e>=o[0]&&e<=o[1]}(e)?e:NaN})));else{var r={};r[n]=o,t.selectRange(r)}}));BL(r,(function(e){t.setApproximateExtent(o,e)}))}}))}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;BL(["min","max"],(function(r){var i=t.get(r+"Span"),o=t.get(r+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?i=xr(n[0]+o,n,[0,100],!0):null!=i&&(o=xr(i,[0,100],n,!0)-n[0]),e[r+"Span"]=i,e[r+"ValueSpan"]=o}),this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var r=Er(n,[0,500]);r=Math.min(r,20);var i=e.axis.scale.rawExtentInfo;0!==t[0]&&i.setDeterminedMinMax("min",+n[0].toFixed(r)),100!==t[1]&&i.setDeterminedMinMax("max",+n[1].toFixed(r)),i.freeze()}},e}(),VL={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(r,i){var o=e.getComponent(AL(r),i);t(r,i,o,n)}))}))}t((function(e,t,n,r){n.__dzAxisProxy=null}));var n=[];t((function(t,r,i,o){i.__dzAxisProxy||(i.__dzAxisProxy=new zL(t,r,o,e),n.push(i.__dzAxisProxy))}));var r=Object(x.createHashMap)();return Object(x.each)(n,(function(e){Object(x.each)(e.getTargetSeriesModels(),(function(e){r.set(e.uid,e)}))})),r},overallReset:function(e,t){e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(t,n){e.getAxisProxy(t,n).reset(e)})),e.eachTargetAxis((function(n,r){e.getAxisProxy(n,r).filterData(e,t)}))})),e.eachComponent("dataZoom",(function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),r=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:r[0],endValue:r[1]})}}))}};var HL=!1;function WL(e){HL||(HL=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,VL),function(e){e.registerAction("dataZoom",(function(e,t){var n=PL(t,e);Object(x.each)(n,(function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))}(e),e.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function qL(e){e.registerComponentModel(LL),e.registerComponentView(FL),WL(e)}var GL=function(){},YL={};function KL(e,t){YL[e]=t}function $L(e){return YL[e]}var XL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;x.each(this.option.feature,(function(e,n){var r=$L(n);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(t)),x.merge(e,r.defaultOption))}))},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(Ic);function QL(e,t){var n=lc(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new ga({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1})}var ZL=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t.prototype.render=function(e,t,n,r){var i=this.group;if(i.removeAll(),e.get("show")){var o=+e.get("itemSize"),a="vertical"===e.get("orient"),s=e.get("feature")||{},u=this._features||(this._features={}),c=[];x.each(s,(function(e,t){c.push(t)})),new Xm(this._featureNames||[],c).add(l).update(l).remove(x.curry(l,null)).execute(),this._featureNames=c,function(e,t,n){var r=t.getBoxLayoutParams(),i=t.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=kc(r,o,i);Oc(t.get("orient"),e,t.get("itemGap"),a.width,a.height),Ec(e,r,o,i)}(i,e,n),i.add(QL(i.getBoundingRect(),e)),a||i.eachChild((function(e){var t=e.__title,r=e.ensureState("emphasis"),a=r.textConfig||(r.textConfig={}),s=e.getTextContent(),u=s&&s.ensureState("emphasis");if(u&&!x.isFunction(u)&&t){var c=u.style||(u.style={}),l=Gn(t,Ma.makeFont(c)),f=e.x+i.x,d=!1;e.y+i.y+o+l.height>n.getHeight()&&(a.position="top",d=!0);var p=d?-5-l.height:o+10;f+l.width/2>n.getWidth()?(a.position=["100%",p],c.align="right"):f-l.width/2<0&&(a.position=[0,p],c.align="left")}}))}function l(l,f){var d,p=c[l],h=c[f],v=s[p],g=new _u(v,e,e.ecModel);if(r&&null!=r.newTitle&&r.featureName===p&&(v.title=r.newTitle),p&&!h){if(function(e){return 0===e.indexOf("my")}(p))d={onclick:g.option.onclick,featureName:p};else{var m=$L(p);if(!m)return;d=new m}u[p]=d}else if(!(d=u[h]))return;d.uid=Ou("toolbox-feature"),d.model=g,d.ecModel=t,d.api=n;var y=d instanceof GL;p||!h?!g.get("show")||y&&d.unusable?y&&d.remove&&d.remove(t,n):(!function(r,s,u){var c,l,f=r.getModel("iconStyle"),d=r.getModel(["emphasis","iconStyle"]),p=s instanceof GL&&s.getIcons?s.getIcons():r.get("icon"),h=r.get("title")||{};x.isString(p)?(c={})[u]=p:c=p;x.isString(h)?(l={})[u]=h:l=h;var v=r.iconPaths={};x.each(c,(function(u,c){var p=xh(u,{},{x:-o/2,y:-o/2,width:o,height:o});p.setStyle(f.getItemStyle()),p.ensureState("emphasis").style=d.getItemStyle();var h=new Ma({style:{text:l[c],align:d.get("textAlign"),borderRadius:d.get("textBorderRadius"),padding:d.get("textPadding"),fill:null},ignore:!0});p.setTextContent(h),Oh({el:p,componentModel:e,itemName:c,formatterParamsExtra:{title:l[c]}}),p.__title=l[c],p.on("mouseover",(function(){var t=d.getItemStyle(),r=a?null==e.get("right")&&"right"!==e.get("left")?"right":"left":null==e.get("bottom")&&"bottom"!==e.get("top")?"bottom":"top";h.setStyle({fill:d.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:d.get("textBackgroundColor")}),p.setTextConfig({position:d.get("textPosition")||r}),h.ignore=!e.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==r.get(["iconStatus",c])&&n.leaveEmphasis(this),h.hide()})),("emphasis"===r.get(["iconStatus",c])?hs:vs)(p),i.add(p),p.on("click",x.bind(s.onclick,s,t,n,c)),v[c]=p}))}(g,d,p),g.setIconStatus=function(e,t){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,r[e]&&("emphasis"===t?hs:vs)(r[e])},d instanceof GL&&d.render&&d.render(g,t,n,r)):y&&d.dispose&&d.dispose(t,n)}},t.prototype.updateView=function(e,t,n,r){x.each(this._features,(function(e){e instanceof GL&&e.updateView&&e.updateView(e.model,t,n,r)}))},t.prototype.remove=function(e,t){x.each(this._features,(function(n){n instanceof GL&&n.remove&&n.remove(e,t)})),this.group.removeAll()},t.prototype.dispose=function(e,t){x.each(this._features,(function(n){n instanceof GL&&n.dispose&&n.dispose(e,t)}))},t.type="toolbox",t}(Td),JL=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t.prototype.onclick=function(e,t){var n=this.model,r=n.get("name")||e.get("title.0.text")||"echarts",i="svg"===t.getZr().painter.getType(),o=i?"svg":n.get("type",!0)||"png",a=t.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=b.a.browser;if(Object(x.isFunction)(MouseEvent)&&(s.newEdge||!s.ie&&!s.edge)){var u=document.createElement("a");u.download=r+"."+o,u.target="_blank",u.href=a;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});u.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||i){var l=a.split(","),f=l[0].indexOf("base64")>-1,d=i?decodeURIComponent(l[1]):l[1];f&&(d=window.atob(d));var p=r+"."+o;if(window.navigator.msSaveOrOpenBlob){for(var h=d.length,v=new Uint8Array(h);h--;)v[h]=d.charCodeAt(h);var g=new Blob([v]);window.navigator.msSaveOrOpenBlob(g,p)}else{var m=document.createElement("iframe");document.body.appendChild(m);var y=m.contentWindow,w=y.document;w.open("image/svg+xml","replace"),w.write(d),w.close(),y.focus(),w.execCommand("SaveAs",!0,p),document.body.removeChild(m)}}else{var _=n.get("lang"),S='<body style="margin:0;"><img src="'+a+'" style="max-width:100%;" title="'+(_&&_[0]||"")+'" /></body>',O=window.open();O.document.write(S),O.document.title=r}},t.getDefaultOption=function(e){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},t}(GL),eN=[["line","bar"],["stack"]],tN=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return x.each(e.get("type"),(function(e){t[e]&&(n[e]=t[e])})),n},t.getDefaultOption=function(e){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},t.prototype.onclick=function(e,t,n){var r=this.model,i=r.get(["seriesIndex",n]);if(nN[n]){var o,a={series:[]};x.each(eN,(function(e){x.indexOf(e,n)>=0&&x.each(e,(function(e){r.setIconStatus(e,"normal")}))})),r.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==i?null:{seriesIndex:i}},(function(e){var t=e.subType,i=e.id,o=nN[n](t,i,e,r);o&&(x.defaults(o,e.option),a.series.push(o));var s=e.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var u=s.getAxesByScale("ordinal")[0];if(u){var c=u.dim+"Axis",l=e.getReferringComponents(c,ci).models[0].componentIndex;a[c]=a[c]||[];for(var f=0;f<=l;f++)a[c][l]=a[c][l]||{};a[c][l].boundaryGap="bar"===n}}}));var s=n;"stack"===n&&(o=x.merge({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),"emphasis"!==r.get(["iconStatus",n])&&(s="tiled")),t.dispatchAction({type:"changeMagicType",currentType:s,newOption:a,newTitle:o,featureName:"magicType"})}},t}(GL),nN={line:function(e,t,n,r){if("bar"===e)return x.merge({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(e,t,n,r){if("line"===e)return x.merge({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(e,t,n,r){var i="__ec_magicType_stack__"===n.get("stack");if("line"===e||"bar"===e)return r.setIconStatus("stack",i?"normal":"emphasis"),x.merge({id:t,stack:i?"":"__ec_magicType_stack__"},r.get(["option","stack"])||{},!0)}};Mm({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)}));var rN=tN,iN=new Array(60).join("-"),oN="\t";function aN(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var sN=new RegExp("["+oN+"]+","g");function uN(e,t){var n=e.split(new RegExp("\n*"+iN+"\n*","g")),r={series:[]};return x.each(n,(function(e,n){if(function(e){if(e.slice(0,e.indexOf("\n")).indexOf(oN)>=0)return!0}(e)){var i=function(e){for(var t=e.split(/\n+/g),n=aN(t.shift()).split(sN),r=[],i=x.map(n,(function(e){return{name:e,data:[]}})),o=0;o<t.length;o++){var a=aN(t[o]).split(sN);r.push(a.shift());for(var s=0;s<a.length;s++)i[s]&&(i[s].data[o]=a[s])}return{series:i,categories:r}}(e),o=t[n],a=o.axisDim+"Axis";o&&(r[a]=r[a]||[],r[a][o.axisIndex]={data:i.categories},r.series=r.series.concat(i.series))}else{i=function(e){for(var t=e.split(/\n+/g),n=aN(t.shift()),r=[],i=0;i<t.length;i++){var o=aN(t[i]);if(o){var a=o.split(sN),s="",u=void 0,c=!1;isNaN(a[0])?(c=!0,s=a[0],a=a.slice(1),r[i]={name:s,value:[]},u=r[i].value):u=r[i]=[];for(var l=0;l<a.length;l++)u.push(+a[l]);1===u.length&&(c?r[i].value=u[0]:r[i]=u[0])}}return{name:n,data:r}}(e);r.series.push(i)}})),r}var cN=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t.prototype.onclick=function(e,t){setTimeout((function(){t.dispatchAction({type:"hideTip"})}));var n=t.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var i=document.createElement("div");i.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",i.style.backgroundColor=r.get("backgroundColor")||"#fff";var o=document.createElement("h4"),a=r.get("lang")||[];o.innerHTML=a[0]||r.get("title"),o.style.cssText="margin:10px 20px",o.style.color=r.get("textColor");var s=document.createElement("div"),u=document.createElement("textarea");s.style.cssText="overflow:auto";var c=r.get("optionToContent"),l=r.get("contentToOption"),f=function(e){var t,n,r,i=function(e){var t={},n=[],r=[];return e.eachRawSeries((function(e){var i=e.coordinateSystem;if(!i||"cartesian2d"!==i.type&&"polar"!==i.type)n.push(e);else{var o=i.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;t[a]||(t[a]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),t[a].series.push(e)}else n.push(e)}})),{seriesGroupByCategoryAxis:t,other:n,meta:r}}(e);return{value:x.filter([(n=i.seriesGroupByCategoryAxis,r=[],x.each(n,(function(e,t){var n=e.categoryAxis,i=e.valueAxis.dim,o=[" "].concat(x.map(e.series,(function(e){return e.name}))),a=[n.model.getCategories()];x.each(e.series,(function(e){var t=e.getRawData();a.push(e.getRawData().mapArray(t.mapDimension(i),(function(e){return e})))}));for(var s=[o.join(oN)],u=0;u<a[0].length;u++){for(var c=[],l=0;l<a.length;l++)c.push(a[l][u]);s.push(c.join(oN))}r.push(s.join("\n"))})),r.join("\n\n"+iN+"\n\n")),(t=i.other,x.map(t,(function(e){var t=e.getRawData(),n=[e.name],r=[];return t.each(t.dimensions,(function(){for(var e=arguments.length,i=arguments[e-1],o=t.getName(i),a=0;a<e-1;a++)r[a]=arguments[a];n.push((o?o+oN:"")+r.join(oN))})),n.join("\n")})).join("\n\n"+iN+"\n\n"))],(function(e){return!!e.replace(/[\n\t\s]/g,"")})).join("\n\n"+iN+"\n\n"),meta:i.meta}}(e);if(x.isFunction(c)){var d=c(t.getOption());x.isString(d)?s.innerHTML=d:x.isDom(d)&&s.appendChild(d)}else{u.readOnly=r.get("readOnly");var p=u.style;p.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=r.get("textColor"),p.borderColor=r.get("textareaBorderColor"),p.backgroundColor=r.get("textareaColor"),u.value=f.value,s.appendChild(u)}var h=f.meta,v=document.createElement("div");v.style.cssText="position:absolute;bottom:5px;left:0;right:0";var g="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",m=document.createElement("div"),y=document.createElement("div");g+=";background-color:"+r.get("buttonColor"),g+=";color:"+r.get("buttonTextColor");var b=this;function w(){n.removeChild(i),b._dom=null}he(m,"click",w),he(y,"click",(function(){if(null==l&&null!=c||null!=l&&null==c)w();else{var e;try{e=x.isFunction(l)?l(s,t.getOption()):uN(u.value,h)}catch(e){throw w(),new Error("Data view format error "+e)}e&&t.dispatchAction({type:"changeDataView",newOption:e}),w()}})),m.innerHTML=a[1],y.innerHTML=a[2],y.style.cssText=m.style.cssText=g,!r.get("readOnly")&&v.appendChild(y),v.appendChild(m),i.appendChild(o),i.appendChild(s),i.appendChild(v),s.style.height=n.clientHeight-80+"px",n.appendChild(i),this._dom=i},t.prototype.remove=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.getDefaultOption=function(e){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"}},t}(GL);function lN(e,t){return x.map(e,(function(e,n){var r=t&&t[n];if(x.isObject(r)&&!x.isArray(r)){x.isObject(e)&&!x.isArray(e)||(e={value:e});var i=null!=r.name&&null==e.name;return e=x.defaults(e,r),i&&delete e.name,e}return e}))}Mm({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(e,t){var n=[];x.each(e.newOption.series,(function(e){var r=t.getSeriesByName(e.name)[0];if(r){var i=r.get("data");n.push({name:e.name,data:lN(e.data,i)})}else n.push(x.extend({type:"scatter"},e))})),t.mergeOption(x.defaults({series:n},e.newOption))}));var fN=cN,dN=x.each,pN=oi();function hN(e){var t=pN(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var vN=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t.prototype.onclick=function(e,t){!function(e){pN(e).snapshots=null}(e),t.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){return{show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])}},t}(GL);Mm({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(e,t){t.resetOption("recreate")}));var gN=vN,mN=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],yN=function(){function e(e,t,n){var r=this;this._targetInfoList=[];var i=xN(t,e);Object(x.each)(wN,(function(e,t){(!n||!n.include||Object(x.indexOf)(n.include,t)>=0)&&e(i,r._targetInfoList)}))}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,(function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var r=ON[e.brushType](0,n,t);e.__rangeOffset={offset:EN[e.brushType](r.values,e.range,[1,1]),xyMinMax:r.xyMinMax}}})),e},e.prototype.matchOutputRanges=function(e,t,n){Object(x.each)(e,(function(e){var r=this.findTargetInfo(e,t);r&&!0!==r&&Object(x.each)(r.coordSyses,(function(r){var i=ON[e.brushType](1,r,e.range,!0);n(e,i.values,r,t)}))}),this)},e.prototype.setInputRanges=function(e,t){Object(x.each)(e,(function(e){var n,r,i,o,a,s=this.findTargetInfo(e,t);if(e.range=e.range||[],s&&!0!==s){e.panelId=s.panelId;var u=ON[e.brushType](0,s.coordSys,e.coordRange),c=e.__rangeOffset;e.range=c?EN[e.brushType](u.values,c.offset,(n=u.xyMinMax,r=c.xyMinMax,i=TN(n),o=TN(r),a=[i[0]/o[0],i[1]/o[1]],isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a)):u.values}}),this)},e.prototype.makePanelOpts=function(e,t){return Object(x.map)(this._targetInfoList,(function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:rP(r),isTargetByCursor:oP(r,e,n.coordSysModel),getLinearBrushOtherExtent:iP(r)}}))},e.prototype.controlSeries=function(e,t,n){var r=this.findTargetInfo(e,n);return!0===r||r&&Object(x.indexOf)(r.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,r=xN(t,e),i=0;i<n.length;i++){var o=n[i],a=e.panelId;if(a){if(o.panelId===a)return o}else for(var s=0;s<_N.length;s++)if(_N[s](r,o))return o}return!0},e}();function bN(e){return e[0]>e[1]&&e.reverse(),e}function xN(e,t){return si(e,t,{includeMainTypes:mN})}var wN={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,i=e.gridModels,o=Object(x.createHashMap)(),a={},s={};(n||r||i)&&(Object(x.each)(n,(function(e){var t=e.axis.grid.model;o.set(t.id,t),a[t.id]=!0})),Object(x.each)(r,(function(e){var t=e.axis.grid.model;o.set(t.id,t),s[t.id]=!0})),Object(x.each)(i,(function(e){o.set(e.id,e),a[e.id]=!0,s[e.id]=!0})),o.each((function(e){var i=e.coordinateSystem,o=[];Object(x.each)(i.getCartesians(),(function(e,t){(Object(x.indexOf)(n,e.getAxis("x").model)>=0||Object(x.indexOf)(r,e.getAxis("y").model)>=0)&&o.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:o[0],coordSyses:o,getPanelRect:SN.grid,xAxisDeclared:a[e.id],yAxisDeclared:s[e.id]})})))},geo:function(e,t){Object(x.each)(e.geoModels,(function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:SN.geo})}))}},_N=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,i=e.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],SN={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(ph(e)),t}},ON={lineX:Object(x.curry)(kN,0),lineY:Object(x.curry)(kN,1),rect:function(e,t,n,r){var i=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),o=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),a=[bN([i[0],o[0]]),bN([i[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(e,t,n,r){var i=[[1/0,-1/0],[1/0,-1/0]];return{values:Object(x.map)(n,(function(n){var o=e?t.pointToData(n,r):t.dataToPoint(n,r);return i[0][0]=Math.min(i[0][0],o[0]),i[1][0]=Math.min(i[1][0],o[1]),i[0][1]=Math.max(i[0][1],o[0]),i[1][1]=Math.max(i[1][1],o[1]),o})),xyMinMax:i}}};function kN(e,t,n,r){var i=n.getAxis(["x","y"][e]),o=bN(Object(x.map)([0,1],(function(e){return t?i.coordToData(i.toLocalCoord(r[e]),!0):i.toGlobalCoord(i.dataToCoord(r[e]))}))),a=[];return a[e]=o,a[1-e]=[NaN,NaN],{values:o,xyMinMax:a}}var EN={lineX:Object(x.curry)(jN,0),lineY:Object(x.curry)(jN,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return Object(x.map)(e,(function(e,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]}))}};function jN(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function TN(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var CN,AN,PN=yN,MN=x.each,IN=Gr+"toolbox-dataZoom_",RN=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t.prototype.render=function(e,t,n,r){this._brushController||(this._brushController=new nP(n.getZr()),this._brushController.on("brush",x.bind(this._onBrush,this)).mount()),function(e,t,n,r,i){var o=n._isZoomActive;r&&"takeGlobalCursor"===r.type&&(o="dataZoomSelect"===r.key&&r.dataZoomSelectActive);n._isZoomActive=o,e.setIconStatus("zoom",o?"emphasis":"normal");var a=new PN(LN(e),t,{include:["grid"]}).makePanelOpts(i,(function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(a).enableBrush(!(!o||!a.length)&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}(e,t,this,r,n),function(e,t){e.setIconStatus("back",function(e){return hN(e).length}(t)>1?"emphasis":"normal")}(e,t)},t.prototype.onclick=function(e,t,n){DN[n].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(e.isEnd&&t.length){var n={},r=this.ecModel;this._brushController.updateCovers([]),new PN(LN(this.model),r,{include:["grid"]}).matchOutputRanges(t,r,(function(e,t,n){if("cartesian2d"===n.type){var r=e.brushType;"rect"===r?(i("x",n,t[0]),i("y",n,t[1])):i({lineX:"x",lineY:"y"}[r],n,t)}})),function(e,t){var n=hN(e);dN(t,(function(t,r){for(var i=n.length-1;i>=0;i--){if(n[i][r])break}if(i<0){var o=e.queryComponents({mainType:"dataZoom",subType:"select",id:r})[0];if(o){var a=o.getPercentRange();n[0][r]={dataZoomId:r,start:a[0],end:a[1]}}}})),n.push(t)}(r,n),this._dispatchZoomAction(n)}function i(e,t,i){var o=t.getAxis(e),a=o.model,s=function(e,t,n){var r;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){n.getAxisModel(e,t.componentIndex)&&(r=n)})),r}(e,a,r),u=s.findRepresentativeAxisProxy(a).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(i=QC(0,i.slice(),o.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:i[0],endValue:i[1]})}},t.prototype._dispatchZoomAction=function(e){var t=[];MN(e,(function(e,n){t.push(x.clone(e))})),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},t.getDefaultOption=function(e){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},t}(GL),DN={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(function(e){var t=hN(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return dN(n,(function(e,n){for(var i=t.length-1;i>=0;i--)if(e=t[i][n]){r[n]=e;break}})),r}(this.ecModel))}};function LN(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return null==t.xAxisIndex&&null==t.xAxisId&&(t.xAxisIndex="all"),null==t.yAxisIndex&&null==t.yAxisId&&(t.yAxisIndex="all"),t}CN="dataZoom",AN=function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(t&&null!=t.get(n)){var r=t.getModel(n),i=[],o=si(e,LN(r));return MN(o.xAxisModels,(function(e){return a(e,"xAxis","xAxisIndex")})),MN(o.yAxisModels,(function(e){return a(e,"yAxis","yAxisIndex")})),i}function a(e,t,n){var o=e.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:IN+t+o};a[n]=o,i.push(a)}},Object(x.assert)(null==Jc.get(CN)&&AN),Jc.set(CN,AN);var NN=RN;var FN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(Ic);function BN(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}function UN(e){if(b.a.domSupported)for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}var zN=UN(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function VN(e,t){if(!e)return t;t=cc(t,!0);var n=e.indexOf(t);return(e=-1===n?t:"-"+e.slice(0,n)+"-"+t).toLowerCase()}var HN=VN(UN(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),WN=VN(zN,"transform"),qN="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(b.a.transform3dSupported?"will-change:transform;":"");function GN(e,t,n){var r=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!b.a.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=b.a.transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+WN+":"+a+";":[["top",0],["left",0],[zN,a]]}function YN(e,t,n){var r=[],i=e.get("transitionDuration"),o=e.get("backgroundColor"),a=e.get("shadowBlur"),s=e.get("shadowColor"),u=e.get("shadowOffsetX"),c=e.get("shadowOffsetY"),l=e.getModel("textStyle"),f=dd(e,"html"),d=u+"px "+c+"px "+a+"px "+s;return r.push("box-shadow:"+d),t&&i&&r.push(function(e,t){var n=" "+e/2+"s cubic-bezier(0.23,1,0.32,1)",r="opacity"+n+",visibility"+n;return t||(n=" "+e+"s cubic-bezier(0.23,1,0.32,1)",r+=b.a.transformSupported?","+WN+n:",left"+n+",top"+n),HN+":"+r}(i,n)),o&&r.push("background-color:"+o),Object(x.each)(["width","color","radius"],(function(t){var n="border-"+t,i=cc(n),o=e.get(i);null!=o&&r.push(n+":"+o+("color"===t?"":"px"))})),r.push(function(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(3*n/2)+"px");var i=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,a=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+a+"px "+s+"px "+o+"px "+i),Object(x.each)(["decoration","align"],(function(n){var r=e.get(n);r&&t.push("text-"+n+":"+r)})),t.join(";")}(l)),null!=f&&r.push("padding:"+lc(f).join("px ")+"px"),r.join(";")+";"}function KN(e,t,n,r,i){var o=t&&t.painter;if(n){var a=o&&o.getViewportRoot();a&&function(e,t,n,r,i){ne(te,t,r,i,!0)&&ne(e,n,te[0],te[1])}(e,a,document.body,r,i)}else{e[0]=r,e[1]=i;var s=o&&o.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var $N=function(){function e(e,t,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,b.a.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var i=this._zr=t.getZr(),o=this._appendToBody=n&&n.appendToBody;KN(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(r):e.appendChild(r),this._container=e;var a=this;r.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},r.onmousemove=function(e){if(e=e||window.event,!a._enterable){var t=i.handler;pe(i.painter.getViewportRoot(),e,!0),t.dispatch("mousemove",e)}},r.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return e.prototype.update=function(e){var t,n,r,i=this._container,o=(n="position",(r=(t=i).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t))?n?r[n]:r:null),a=i.style;"absolute"!==a.position&&"absolute"!==o&&(a.position="relative"),e.get("alwaysShowContent")&&this._moveIfResized(),this.el.className=e.get("className")||""},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=qN+YN(e,!this._firstShow,this._longHide)+GN(i[0],i[1],!0)+"border-color:"+yc(t)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var o=this.el;if(null!=e){var a="";if(Object(x.isString)(i)&&"item"===n.get("trigger")&&!BN(n)&&(a=function(e,t,n){if(!Object(x.isString)(n)||"inside"===n)return"";var r=e.get("backgroundColor"),i=e.get("borderWidth");t=yc(t);var o,a,s=o="left"===(o=n)?"right":"right"===o?"left":"top"===o?"bottom":"top",u=Math.max(1.5*Math.round(i),6),c="",l=WN+":";Object(x.indexOf)(["left","right"],s)>-1?(c+="top:50%",l+="translateY(-50%) rotate("+(a="left"===s?-225:-45)+"deg)"):(c+="left:50%",l+="translateX(-50%) rotate("+(a="top"===s?225:45)+"deg)");var f=a*Math.PI/180,d=u+i,p=d*Math.abs(Math.cos(f))+d*Math.abs(Math.sin(f)),h=t+" solid "+i+"px;";return'<div style="'+["position:absolute;width:"+u+"px;height:"+u+"px;",(c+=";"+s+":-"+Math.round(100*((p-Math.SQRT2*i)/2+Math.SQRT2*i-(p-d)/2))/100+"px")+";"+l+";","border-bottom:"+h,"border-right:"+h,"background-color:"+r+";"].join("")+'"></div>'}(n,r,i)),Object(x.isString)(e))o.innerHTML=e+a;else if(e){o.innerHTML="",Object(x.isArray)(e)||(e=[e]);for(var s=0;s<e.length;s++)Object(x.isDom)(e[s])&&e[s].parentNode!==o&&o.appendChild(e[s]);if(a&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=a,o.appendChild(u)}}}else o.innerHTML=""},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return[e.offsetWidth,e.offsetHeight]},e.prototype.moveTo=function(e,t){var n=this._styleCoord;if(KN(n,this._zr,this._appendToBody,e,t),null!=n[0]&&null!=n[1]){var r=this.el.style,i=GN(n[0],n[1]);Object(x.each)(i,(function(e){r[e[0]]=e[1]}))}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",b.a.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return e._longHide=!0}),500)},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Object(x.bind)(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},e}();function XN(e){return Math.max(0,e)}function QN(e){var t=XN(e.shadowBlur||0),n=XN(e.shadowOffsetX||0),r=XN(e.shadowOffsetY||0);return{left:XN(t-n),right:XN(t+n),top:XN(t-r),bottom:XN(t+r)}}function ZN(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var JN=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=e.getZr(),ZN(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){e.get("alwaysShowContent")&&this._moveIfResized()},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,r,i){var o=this;x.isObject(e)&&cl(""),this.el&&this._zr.remove(this.el);var a=n.getModel("textStyle");this.el=new Ma({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:dd(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),x.each(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(e){o.el.style[e]=n.get(e)})),x.each(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(e){o.el.style[e]=a.get(e)||0})),this._zr.add(this.el);var s=this;this.el.on("mouseover",(function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0})),this.el.on("mouseout",(function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1}))},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=QN(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var r=this._styleCoord;ZN(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,o=XN(i.borderWidth||0),a=QN(i);n.x=e+o+a.left,n.y=t+o+a.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(x.bind(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}(),eF=new ga({shape:{x:-1,y:-1,width:2,height:2}});function tF(e,t,n){var r,i=t.ecModel;n?(r=new _u(n,i,i),r=new _u(t.option,r,i)):r=t;for(var o=e.length-1;o>=0;o--){var a=e[o];a&&(a instanceof _u&&(a=a.get("tooltip",!0)),Object(x.isString)(a)&&(a={formatter:a}),a&&(r=new _u(a,r,i)))}return r}function nF(e,t){return e.dispatchAction||Object(x.bind)(t.dispatchAction,t)}function rF(e){return"center"===e||"middle"===e}var iF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.init=function(e,t){if(!b.a.node&&t.getDom()){var n,r=e.getComponent("tooltip"),i=this._renderMode="auto"===(n=r.get("renderMode"))?b.a.domSupported?"html":"richText":n||"html";this._tooltipContent="richText"===i?new JN(t):new $N(t.getDom(),t,{appendToBody:r.get("appendToBody",!0)})}},t.prototype.render=function(e,t,n){if(!b.a.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n,this._alwaysShowContent=e.get("alwaysShowContent");var r=this._tooltipContent;r.update(e),r.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&e.get("transitionDuration")?Uh(this,"_updatePosition",50,"fixRate"):zh(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get("triggerOn");KR("itemTooltip",this._api,Object(x.bind)((function(t,n,r){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,r):"leave"===t&&this._hide(r))}),this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==r&&"click"!==r){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})}))}},t.prototype.manuallyShowTip=function(e,t,n,r){if(r.from!==this.uid&&!b.a.node&&n.getDom()){var i=nF(r,n);this._ticket="";var o=r.dataByCoordSys,a=function(e,t,n){var r=ui(e).queryOptionMap,i=r.keys()[0];if(!i||"series"===i)return;var o,a=fi(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(!a)return;if(n.getViewOfComponentModel(a).group.traverse((function(t){var n=Ia(t).tooltipConfig;if(n&&n.name===e.name)return o=t,!0})),o)return{componentMainType:i,componentIndex:a.componentIndex,el:o}}(r,t,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:r.position,positionDefault:"bottom"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y){var u=eF;u.x=r.x,u.y=r.y,u.update(),Ia(u).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:u},i)}else if(o)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:o,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,r))return;var c=JR(r,t),l=c.point[0],f=c.point[1];null!=l&&null!=f&&this._tryShow({offsetX:l,offsetY:f,target:c.el,position:r.position,positionDefault:"bottom"},i)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(nF(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,o=r.dataIndex,a=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=o&&null!=a){var s=t.getSeriesByIndex(i);if(s)if("axis"===tF([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:o,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){var i,o;this._lastDataByCoordSys=null,Cv(n,(function(e){return null!=Ia(e).dataIndex?(i=e,!0):null!=Ia(e).tooltipConfig?(o=e,!0):void 0}),!0),i?this._showSeriesItemTooltip(e,i,t):o?this._showComponentItemTooltip(e,o,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get("showDelay");t=Object(x.bind)(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],o=tF([t.tooltipOption],r),a=this._renderMode,s=[],u=rd("section",{blocks:[],noHeader:!0}),c=[],l=new pd;Object(x.each)(e,(function(e){Object(x.each)(e.dataByAxis,(function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),i=e.value;if(t&&null!=i){var o=RR(i,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),f=rd("section",{header:o,noHeader:!Object(x.trim)(o),sortBlocks:!0,blocks:[]});u.blocks.push(f),Object(x.each)(e.seriesDataIndices,(function(u){var d=n.getSeriesByIndex(u.seriesIndex),p=u.dataIndexInside,h=d.getDataParams(p);if(!(h.dataIndex<0)){h.axisDim=e.axisDim,h.axisIndex=e.axisIndex,h.axisType=e.axisType,h.axisId=e.axisId,h.axisValue=Nb(t.axis,{value:i}),h.axisValueLabel=o,h.marker=l.makeTooltipMarker("item",yc(h.color),a);var v=yf(d.formatTooltip(p,!0,null)),g=v.frag;if(g){var m=tF([d],r).get("valueFormatter");f.blocks.push(m?Object(x.extend)({valueFormatter:m},g):g)}v.text&&c.push(v.text),s.push(h)}}))}}))})),u.blocks.reverse(),c.reverse();var f=t.position,d=o.get("order"),p=ud(u,l,a,d,n.get("useUTC"),o.get("textStyle"));p&&c.unshift(p);var h="richText"===a?"\n\n":"<br/>",v=c.join(h);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(o,f,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(o,v,s,Math.random()+"",i[0],i[1],f,null,l)}))},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=Ia(t),o=i.seriesIndex,a=r.getSeriesByIndex(o),s=i.dataModel||a,u=i.dataIndex,c=i.dataType,l=s.getData(c),f=this._renderMode,d=e.positionDefault,p=tF([l.getItemModel(u),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),h=p.get("trigger");if(null==h||"item"===h){var v=s.getDataParams(u,c),g=new pd;v.marker=g.makeTooltipMarker("item",yc(v.color),f);var m=yf(s.formatTooltip(u,!1,c)),y=p.get("order"),b=p.get("valueFormatter"),w=m.frag,_=w?ud(b?Object(x.extend)({valueFormatter:b},w):w,g,f,y,r.get("useUTC"),p.get("textStyle")):m.text,S="item_"+s.name+"_"+u;this._showOrMove(p,(function(){this._showTooltipContent(p,_,v,S,e.offsetX,e.offsetY,e.position,e.target,g)})),n({type:"showTip",dataIndexInside:u,dataIndex:l.getRawIndex(u),seriesIndex:o,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=Ia(t),i=r.tooltipConfig.option||{};if(Object(x.isString)(i)){i={content:i,formatter:i}}var o=[i],a=this._ecModel.getComponent(r.componentMainType,r.componentIndex);a&&o.push(a),o.push({formatter:i.content});var s=e.positionDefault,u=tF(o,this._tooltipModel,s?{position:s}:null),c=u.get("content"),l=Math.random()+"",f=new pd;this._showOrMove(u,(function(){var n=Object(x.clone)(u.get("formatterParams")||{});this._showTooltipContent(u,c,n,l,e.offsetX,e.offsetY,e.position,t,f)})),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,o,a,s,u){if(this._ticket="",e.get("showContent")&&e.get("show")){var c=this._tooltipContent;c.setEnterable(e.get("enterable"));var l=e.get("formatter");a=a||e.get("position");var f=t,d=this._getNearestPoint([i,o],n,e.get("trigger"),e.get("borderColor")).color;if(l)if(Object(x.isString)(l)){var p=e.ecModel.get("useUTC"),h=Object(x.isArray)(n)?n[0]:n;f=l,h&&h.axisType&&h.axisType.indexOf("time")>=0&&(f=qu(h.axisValue,f,p)),f=hc(f,n,!0)}else if(Object(x.isFunction)(l)){var v=Object(x.bind)((function(t,r){t===this._ticket&&(c.setContent(r,u,e,d,a),this._updatePosition(e,a,i,o,c,n,s))}),this);this._ticket=r,f=l(n,r,v)}else f=l;c.setContent(f,u,e,d,a),c.show(e,d),this._updatePosition(e,a,i,o,c,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r){return"axis"===n||Object(x.isArray)(t)?{color:r||("html"===this._renderMode?"#fff":"none")}:Object(x.isArray)(t)?void 0:{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,o,a){var s=this._api.getWidth(),u=this._api.getHeight();t=t||e.get("position");var c=i.getSize(),l=e.get("align"),f=e.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),Object(x.isFunction)(t)&&(t=t([n,r],o,i.el,d,{viewSize:[s,u],contentSize:c.slice()})),Object(x.isArray)(t))n=wr(t[0],s),r=wr(t[1],u);else if(Object(x.isObject)(t)){var p=t;p.width=c[0],p.height=c[1];var h=kc(p,{width:s,height:u});n=h.x,r=h.y,l=null,f=null}else if(Object(x.isString)(t)&&a){var v=function(e,t,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,u=0,c=t.width,l=t.height;switch(e){case"inside":s=t.x+c/2-i/2,u=t.y+l/2-o/2;break;case"top":s=t.x+c/2-i/2,u=t.y-o-a;break;case"bottom":s=t.x+c/2-i/2,u=t.y+l+a;break;case"left":s=t.x-i-a,u=t.y+l/2-o/2;break;case"right":s=t.x+c+a,u=t.y+l/2-o/2}return[s,u]}(t,d,c,e.get("borderWidth"));n=v[0],r=v[1]}else{v=function(e,t,n,r,i,o,a){var s=n.getSize(),u=s[0],c=s[1];null!=o&&(e+u+o+2>r?e-=u+o:e+=o);null!=a&&(t+c+a>i?t-=c+a:t+=a);return[e,t]}(n,r,i,s,u,l?null:20,f?null:20);n=v[0],r=v[1]}if(l&&(n-=rF(l)?c[0]/2:"right"===l?c[0]:0),f&&(r-=rF(f)?c[1]/2:"bottom"===f?c[1]:0),BN(e)){v=function(e,t,n,r,i){var o=n.getSize(),a=o[0],s=o[1];return e=Math.min(e+a,r)-a,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}(n,r,i,s,u);n=v[0],r=v[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&Object(x.each)(n,(function(n,o){var a=n.dataByAxis||[],s=(e[o]||{}).dataByAxis||[];(i=i&&a.length===s.length)&&Object(x.each)(a,(function(e,n){var o=s[n]||{},a=e.seriesDataIndices||[],u=o.seriesDataIndices||[];(i=i&&e.value===o.value&&e.axisType===o.axisType&&e.axisId===o.axisId&&a.length===u.length)&&Object(x.each)(a,(function(e,t){var n=u[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex})),r&&Object(x.each)(e.seriesDataIndices,(function(e){var n=e.seriesIndex,o=t[n],a=r[n];o&&a&&a.data!==o.data&&(i=!1)}))}))})),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,t){!b.a.node&&t.getDom()&&(zh(this,"_updatePosition"),this._tooltipContent.dispose(),QR("itemTooltip",t))},t.type="tooltip",t}(Td);var oF=["rect","polygon","keep","clear"];function aF(e,t){var n=Yr(e?e.brush:[]);if(n.length){var r=[];x.each(n,(function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(r=r.concat(t))}));var i=e&&e.toolbox;x.isArray(i)&&(i=i[0]),i||(i={feature:{}},e.toolbox=[i]);var o,a,s=i.feature||(i.feature={}),u=s.brush||(s.brush={}),c=u.type||(u.type=[]);c.push.apply(c,r),o=c,a={},x.each(o,(function(e){a[e]=1})),o.length=0,x.each(a,(function(e,t){o.push(t)})),t&&!c.length&&c.push.apply(c,oF)}}var sF=x.each;function uF(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function cF(e,t,n){var r={};return sF(t,(function(t){var i,o=r[t]=((i=function(){}).prototype.__hidden=i.prototype,new i);sF(e[t],(function(e,r){if(eT.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),o[r]=new eT(i),"opacity"===r&&((i=x.clone(i)).type="colorAlpha",o.__hidden.__alphaForOpacity=new eT(i))}}))})),r}function lF(e,t,n){var r;x.each(n,(function(e){t.hasOwnProperty(e)&&uF(t[e])&&(r=!0)})),r&&x.each(n,(function(n){t.hasOwnProperty(n)&&uF(t[n])?e[n]=x.clone(t[n]):delete e[n]}))}var fF={lineX:dF(0),lineY:dF(1),rect:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])},rect:function(e,t,n){return e&&n.boundingRect.intersect(e)}},polygon:{point:function(e,t,n){return e&&n.boundingRect.contain(e[0],e[1])&&$b(n.range,e[0],e[1])},rect:function(e,t,n){var r=n.range;if(!e||r.length<=1)return!1;var i=e.x,o=e.y,a=e.width,s=e.height,u=r[0];return!!($b(r,i,o)||$b(r,i+a,o)||$b(r,i,o+s)||$b(r,i+a,o+s)||Fe.create(e).contain(u[0],u[1])||wh(i,o,i+a,o,r)||wh(i,o,i,o+s,r)||wh(i+a,o,i+a,o+s,r)||wh(i,o+s,i+a,o+s,r))||void 0}}};function dF(e){var t=["x","y"],n=["width","height"];return{point:function(t,n,r){if(t){var i=r.range;return pF(t[e],i)}},rect:function(r,i,o){if(r){var a=o.range,s=[r[t[e]],r[t[e]]+r[n[e]]];return s[1]<s[0]&&s.reverse(),pF(s[0],a)||pF(s[1],a)||pF(a[0],s)||pF(a[1],s)}}}}function pF(e,t){return t[0]<=e&&e<=t[1]}var hF=["inBrush","outOfBrush"],vF="__ecBrushSelect",gF="__ecInBrushSelectEvent";function mF(e){e.eachComponent({mainType:"brush"},(function(t){(t.brushTargetManager=new PN(t.option,e)).setInputRanges(t.areas,e)}))}function yF(e,t,n){var r,i,o=[];e.eachComponent({mainType:"brush"},(function(e){n&&"takeGlobalCursor"===n.type&&e.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),mF(e),e.eachComponent({mainType:"brush"},(function(t,n){var a={brushId:t.id,brushIndex:n,brushName:t.name,areas:x.clone(t.areas),selected:[]};o.push(a);var s=t.option,u=s.brushLink,c=[],l=[],f=[],d=!1;n||(r=s.throttleType,i=s.throttleDelay);var p=x.map(t.areas,(function(e){var t=wF[e.brushType],n=x.defaults({boundingRect:t?t(e):void 0},e);return n.selectors=function(e){var t=e.brushType,n={point:function(r){return fF[t].point(r,n,e)},rect:function(r){return fF[t].rect(r,n,e)}};return n}(n),n})),h=cF(t.option,hF,(function(e){e.mappingMethod="fixed"}));function v(e){return"all"===u||!!c[e]}function g(e){return!!e.length}x.isArray(u)&&x.each(u,(function(e){c[e]=1})),e.eachSeries((function(n,r){var i=f[r]=[];"parallel"===n.subType?function(e,t){var n=e.coordinateSystem;d=d||n.hasAxisBrushed(),v(t)&&n.eachActiveState(e.getData(),(function(e,t){"active"===e&&(l[t]=1)}))}(n,r):function(n,r,i){if(!n.brushSelector||function(e,t){var n=e.option.seriesIndex;return null!=n&&"all"!==n&&(x.isArray(n)?x.indexOf(n,t)<0:t!==n)}(t,r))return;if(x.each(p,(function(r){t.brushTargetManager.controlSeries(r,n,e)&&i.push(r),d=d||g(i)})),v(r)&&g(i)){var o=n.getData();o.each((function(e){xF(n,i,o,e)&&(l[e]=1)}))}}(n,r,i)})),e.eachSeries((function(e,t){var n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};a.selected.push(n);var r=f[t],i=e.getData(),o=v(t)?function(e){return l[e]?(n.dataIndex.push(i.getRawIndex(e)),"inBrush"):"outOfBrush"}:function(t){return xF(e,r,i,t)?(n.dataIndex.push(i.getRawIndex(t)),"inBrush"):"outOfBrush"};(v(t)?d:g(r))&&function(e,t,n,r,i,o){var a,s={};function u(e){return Ov(n,a,e)}function c(e,t){Ev(n,a,e,t)}function l(e,l){a=null==o?e:l;var f=n.getRawDataItem(a);if(!f||!1!==f.visualMap)for(var d=r.call(i,e),p=t[d],h=s[d],v=0,g=h.length;v<g;v++){var m=h[v];p[m]&&p[m].applyVisual(e,u,c)}}x.each(e,(function(e){var n=eT.prepareVisualTypes(t[e]);s[e]=n})),null==o?n.each(l):n.each([o],l)}(hF,h,i,o)}))})),function(e,t,n,r,i){if(!i)return;var o=e.getZr();if(o[gF])return;o[vF]||(o[vF]=bF);Uh(o,vF,n,t)(e,r)}(t,r,i,o,n)}function bF(e,t){if(!e.isDisposed()){var n=e.getZr();n[gF]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[gF]=!1}}function xF(e,t,n,r){for(var i=0,o=t.length;i<o;i++){var a=t[i];if(e.brushSelector(r,n,a.selectors,a))return!0}}var wF={rect:function(e){return _F(e.range)},polygon:function(e){for(var t,n=e.range,r=0,i=n.length;r<i;r++){t=t||[[1/0,-1/0],[1/0,-1/0]];var o=n[r];o[0]<t[0][0]&&(t[0][0]=o[0]),o[0]>t[0][1]&&(t[0][1]=o[0]),o[1]<t[1][0]&&(t[1][0]=o[1]),o[1]>t[1][1]&&(t[1][1]=o[1])}return t&&_F(t)}};function _F(e){return new Fe(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var SF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new nP(t.getZr())).on("brush",x.bind(this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,r){this.model=e,this._updateController(e,t,n,r)},t.prototype.updateTransform=function(e,t,n,r){mF(t),this._updateController(e,t,n,r)},t.prototype.updateVisual=function(e,t,n,r){this.updateTransform(e,t,n,r)},t.prototype.updateView=function(e,t,n,r){this._updateController(e,t,n,r)},t.prototype._updateController=function(e,t,n,r){(!r||r.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:t,areas:x.clone(n),$from:t}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:x.clone(n),$from:t})},t.type="brush",t}(Td);function OF(e,t){return x.merge({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new _u(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var kF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return y(t,e),t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&lF(n,e,["inBrush","outOfBrush"]);var r=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},r.hasOwnProperty("liftZ")||(r.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=x.map(e,(function(e){return OF(this.option,e)}),this))},t.prototype.setBrushOption=function(e){this.brushOption=OF(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(Ic),EF=["rect","polygon","lineX","lineY","keep","clear"],jF=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t.prototype.render=function(e,t,n){var r,i,o;t.eachComponent({mainType:"brush"},(function(e){r=e.brushType,i=e.brushOption.brushMode||"single",o=o||!!e.areas.length})),this._brushType=r,this._brushMode=i,x.each(e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===i:"clear"===t?o:t===r)?"emphasis":"normal")}))},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get("icon",!0),n={};return x.each(e.get("type",!0),(function(e){t[e]&&(n[e]=t[e])})),n},t.prototype.onclick=function(e,t,n){var r=this._brushType,i=this._brushMode;"clear"===n?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?r:r!==n&&n,brushMode:"keep"===n?"multiple"===i?"single":"multiple":i}})},t.getDefaultOption=function(e){return{show:!0,type:EF.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])}},t}(GL);var TF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return y(t,e),t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(Ic),CF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get("show")){var r=this.group,i=e.getModel("textStyle"),o=e.getModel("subtextStyle"),a=e.get("textAlign"),s=x.retrieve2(e.get("textBaseline"),e.get("textVerticalAlign")),u=new Ma({style:Zs(i,{text:e.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),c=u.getBoundingRect(),l=e.get("subtext"),f=new Ma({style:Zs(o,{text:l,fill:o.getTextColor(),y:c.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),p=e.get("sublink"),h=e.get("triggerEvent",!0);u.silent=!d&&!h,f.silent=!p&&!h,d&&u.on("click",(function(){bc(d,"_"+e.get("target"))})),p&&f.on("click",(function(){bc(p,"_"+e.get("subtarget"))})),Ia(u).eventData=Ia(f).eventData=h?{componentType:"title",componentIndex:e.componentIndex}:null,r.add(u),l&&r.add(f);var v=r.getBoundingRect(),g=e.getBoxLayoutParams();g.width=v.width,g.height=v.height;var m=kc(g,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));a||("middle"===(a=e.get("left")||e.get("right"))&&(a="center"),"right"===a?m.x+=m.width:"center"===a&&(m.x+=m.width/2)),s||("center"===(s=e.get("top")||e.get("bottom"))&&(s="middle"),"bottom"===s?m.y+=m.height:"middle"===s&&(m.y+=m.height/2),s=s||"top"),r.x=m.x,r.y=m.y,r.markRedraw();var y={align:a,verticalAlign:s};u.setStyle(y),f.setStyle(y),v=r.getBoundingRect();var b=m.margin,w=e.getItemStyle(["color","opacity"]);w.fill=e.get("backgroundColor");var _=new ga({shape:{x:v.x-b[3],y:v.y-b[0],width:v.width+b[1]+b[3],height:v.height+b[0]+b[2],r:e.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});r.add(_)}},t.type="title",t}(Td);var AF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return y(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e,t=this.option,n=t.data||[],r=t.axisType,i=this._names=[];"category"===r?(e=[],Object(x.each)(n,(function(t,n){var r,o=ti(Xr(t),"");Object(x.isObject)(t)?(r=Object(x.clone)(t)).value=n:r=n,e.push(r),i.push(o)}))):e=n;var o={category:"ordinal",time:"time",value:"number"}[r]||"number";(this._data=new xy([{name:"value",type:o}],this)).initData(e,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(Ic),PF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.type="timeline.slider",t.defaultOption=ku(AF.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(AF);Object(x.mixin)(PF,mf.prototype);var MF=PF,IF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.type="timeline",t}(Td),RF=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r)||this;return o.type=i||"value",o}return y(t,e),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(bx),DF=Math.PI,LF=oi();function NF(e,t,n,r,i,o){var a=t.get("color");i?(i.setColor(a),n.add(i),o&&o.onUpdate(i)):((i=Vv(e.get("symbol"),-1,-1,2,2,a)).setStyle("strokeNoScale",!0),n.add(i),o&&o.onCreate(i));var s=t.getItemStyle(["color"]);i.setStyle(s),r=Object(x.merge)({rectHover:!0,z2:100},r,!0);var u=Hv(e.get("symbolSize"));r.scaleX=u[0]/2,r.scaleY=u[1]/2;var c=Wv(e.get("symbolOffset"),u);c&&(r.x=(r.x||0)+c[0],r.y=(r.y||0)+c[1]);var l=e.get("symbolRotate");return r.rotation=(l||0)*Math.PI/180||0,i.attr(r),i.updateTransform(),i}function FF(e,t,n,r,i,o){if(!e.dragging){var a=i.getModel("checkpointStyle"),s=r.dataToCoord(i.getData().get("value",n));if(o||!a.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var u={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},u),t&&t.animateTo({shape:{x2:s}},u)}}}var BF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var r=this._layout(e,n),i=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(r,e);e.formatTooltip=function(e){return rd("nameValue",{noName:!0,value:a.scale.getLabel({value:e})})},Object(x.each)(["AxisLine","AxisTick","Control","CurrentPointer"],(function(t){this["_render"+t](r,i,a,e)}),this),this._renderAxisLabel(r,o,a,e),this._position(r,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var n,r,i,o,a=e.get(["label","position"]),s=e.get("orient"),u=function(e,t){return kc(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}(e,t),c={horizontal:"center",vertical:(n=null==a||"auto"===a?"horizontal"===s?u.y+u.height/2<t.getHeight()/2?"-":"+":u.x+u.width/2<t.getWidth()/2?"+":"-":Object(x.isString)(a)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[s][a]:a)>=0||"+"===n?"left":"right"},l={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:DF/2},d="vertical"===s?u.height:u.width,p=e.getModel("controlStyle"),h=p.get("show",!0),v=h?p.get("itemSize"):0,g=h?p.get("itemGap"):0,m=v+g,y=e.get(["label","rotate"])||0;y=y*DF/180;var b=p.get("position",!0),w=h&&p.get("showPlayBtn",!0),_=h&&p.get("showPrevBtn",!0),S=h&&p.get("showNextBtn",!0),O=0,k=d;"left"===b||"bottom"===b?(w&&(r=[0,0],O+=m),_&&(i=[O,0],O+=m),S&&(o=[k-v,0],k-=m)):(w&&(r=[k-v,0],k-=m),_&&(i=[0,0],O+=m),S&&(o=[k-v,0],k-=m));var E=[O,k];return e.get("inverse")&&E.reverse(),{viewRect:u,mainLength:d,orient:s,rotation:f[s],labelRotation:y,labelPosOpt:n,labelAlign:e.get(["label","align"])||c[s],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||l[s],playPosition:r,prevBtnPosition:i,nextBtnPosition:o,axisExtent:E,controlSize:v,controlGap:g}},t.prototype._position=function(e,t){var n=this._mainGroup,r=this._labelGroup,i=e.viewRect;if("vertical"===e.orient){var o=[1,0,0,1,0,0],a=i.x,s=i.y+i.height;Oe(o,o,[-a,-s]),ke(o,o,-DF/2),Oe(o,o,[a,s]),(i=i.clone()).applyTransform(o)}var u=g(i),c=g(n.getBoundingRect()),l=g(r.getBoundingRect()),f=[n.x,n.y],d=[r.x,r.y];d[0]=f[0]=u[0][0];var p,h=e.labelPosOpt;null==h||Object(x.isString)(h)?(m(f,c,u,1,p="+"===h?0:1),m(d,l,u,1,1-p)):(m(f,c,u,1,p=h>=0?0:1),d[1]=f[1]+h);function v(e){e.originX=u[0][0]-e.x,e.originY=u[1][0]-e.y}function g(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function m(e,t,n,r,i){e[r]+=n[r][i]-t[r][i]}n.setPosition(f),r.setPosition(d),n.rotation=r.rotation=e.rotation,v(n),v(r)},t.prototype._createAxis=function(e,t){var n=t.getData(),r=t.get("axisType"),i=function(e,t){if(t=t||e.get("type"))switch(t){case"category":return new qy({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new gb({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new Ky}}(t,r);i.getTicks=function(){return n.mapArray(["value"],(function(e){return{value:e}}))};var o=n.getDataExtent("value");i.setExtent(o[0],o[1]),i.calcNiceTicks();var a=new RF("value",i,e.axisExtent,r);return a.model=t,a},t.prototype._createGroup=function(e){var t=this[e]=new ur;return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,r){var i=n.getExtent();if(r.get(["lineStyle","show"])){var o=new Pp({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:Object(x.extend)({lineCap:"round"},r.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});t.add(o);var a=this._progressLine=new Pp({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:Object(x.defaults)({lineCap:"round",lineWidth:o.style.lineWidth},r.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});t.add(a)}},t.prototype._renderAxisTick=function(e,t,n,r){var i=this,o=r.getData(),a=n.scale.getTicks();this._tickSymbols=[],Object(x.each)(a,(function(e){var a=n.dataToCoord(e.value),s=o.getItemModel(e.value),u=s.getModel("itemStyle"),c=s.getModel(["emphasis","itemStyle"]),l=s.getModel(["progress","itemStyle"]),f={x:a,y:0,onclick:Object(x.bind)(i._changeTimeline,i,e.value)},d=NF(s,u,t,f);d.ensureState("emphasis").style=c.getItemStyle(),d.ensureState("progress").style=l.getItemStyle(),js(d);var p=Ia(d);s.get("tooltip")?(p.dataIndex=e.value,p.dataModel=r):p.dataIndex=p.dataModel=null,i._tickSymbols.push(d)}))},t.prototype._renderAxisLabel=function(e,t,n,r){var i=this;if(n.getLabelModel().get("show")){var o=r.getData(),a=n.getViewLabels();this._tickLabels=[],Object(x.each)(a,(function(r){var a=r.tickValue,s=o.getItemModel(a),u=s.getModel("label"),c=s.getModel(["emphasis","label"]),l=s.getModel(["progress","label"]),f=n.dataToCoord(r.tickValue),d=new Ma({x:f,y:0,rotation:e.labelRotation-e.rotation,onclick:Object(x.bind)(i._changeTimeline,i,a),silent:!1,style:Zs(u,{text:r.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});d.ensureState("emphasis").style=Zs(c),d.ensureState("progress").style=Zs(l),t.add(d),js(d),LF(d).dataIndex=a,i._tickLabels.push(d)}))}},t.prototype._renderControl=function(e,t,n,r){var i=e.controlSize,o=e.rotation,a=r.getModel("controlStyle").getItemStyle(),s=r.getModel(["emphasis","controlStyle"]).getItemStyle(),u=r.getPlayState(),c=r.get("inverse",!0);function l(e,n,u,c){if(e){var l=Xn(Object(x.retrieve2)(r.get(["controlStyle",n+"BtnSize"]),i),i),f=function(e,t,n,r){var i=r.style,o=xh(e.get(["controlStyle",t]),r||{},new Fe(n[0],n[1],n[2],n[3]));i&&o.setStyle(i);return o}(r,n+"Icon",[0,-l/2,l,l],{x:e[0],y:e[1],originX:i/2,originY:0,rotation:c?-o:0,rectHover:!0,style:a,onclick:u});f.ensureState("emphasis").style=s,t.add(f),js(f)}}l(e.nextBtnPosition,"next",Object(x.bind)(this._changeTimeline,this,c?"-":"+")),l(e.prevBtnPosition,"prev",Object(x.bind)(this._changeTimeline,this,c?"+":"-")),l(e.playPosition,u?"stop":"play",Object(x.bind)(this._handlePlayClick,this,!u),!0)},t.prototype._renderCurrentPointer=function(e,t,n,r){var i=r.getData(),o=r.getCurrentIndex(),a=i.getItemModel(o).getModel("checkpointStyle"),s=this,u={onCreate:function(e){e.draggable=!0,e.drift=Object(x.bind)(s._handlePointerDrag,s),e.ondragend=Object(x.bind)(s._handlePointerDragend,s),FF(e,s._progressLine,o,n,r,!0)},onUpdate:function(e){FF(e,s._progressLine,o,n,r)}};this._currentPointer=NF(a,a,this._mainGroup,{},this._currentPointer,u)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],r=Sr(this._axis.getExtent().slice());n>r[1]&&(n=r[1]),n<r[0]&&(n=r[0]),this._currentPointer.x=n,this._currentPointer.markRedraw(),this._progressLine.shape.x2=n,this._progressLine.dirty();var i=this._findNearestTick(n),o=this.model;(t||i!==o.getCurrentIndex()&&o.get("realtime"))&&this._changeTimeline(i)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var t=e.model;e._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){return hh(e,this._mainGroup.getLocalTransform(),!0)},t.prototype._findNearestTick=function(e){var t,n=this.model.getData(),r=1/0,i=this._axis;return n.each(["value"],(function(n,o){var a=i.dataToCoord(n),s=Math.abs(a-e);s<r&&(r=s,t=o)})),t},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var t=this.model.getCurrentIndex();"+"===e?e=t+1:"-"===e&&(e=t-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),t=this._tickSymbols,n=this._tickLabels;if(t)for(var r=0;r<t.length;r++)t&&t[r]&&t[r].toggleState("progress",r<e);if(n)for(r=0;r<n.length;r++)n&&n[r]&&n[r].toggleState("progress",LF(n[r]).dataIndex<=e)},t.type="timeline.slider",t}(IF);function UF(e){var t=e&&e.timeline;x.isArray(t)||(t=t?[t]:[]),x.each(t,(function(e){e&&function(e){var t=e.type,n={number:"value",time:"time"};n[t]&&(e.axisType=n[t],delete e.type);if(zF(e),VF(e,"controlPosition")){var r=e.controlStyle||(e.controlStyle={});VF(r,"position")||(r.position=e.controlPosition),"none"!==r.position||VF(r,"show")||(r.show=!1,delete r.position),delete e.controlPosition}x.each(e.data||[],(function(e){x.isObject(e)&&!x.isArray(e)&&(!VF(e,"value")&&VF(e,"name")&&(e.value=e.name),zF(e))}))}(e)}))}function zF(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),r=e.label||e.label||{},i=r.normal||(r.normal={}),o={normal:1,emphasis:1};x.each(r,(function(e,t){o[t]||VF(i,t)||(i[t]=e)})),n.label&&!VF(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function VF(e,t){return e.hasOwnProperty(t)}function HF(e,t){if(!e)return!1;for(var n=Object(x.isArray)(e)?e:[e],r=0;r<n.length;r++)if(n[r]&&n[r][t])return!0;return!1}function WF(e){Kr(e,"label",["show"])}var qF=oi(),GF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.createdBySelf=!1,n}return y(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if(b.a.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,t){this._mergeOption(e,t,!1,!1)},t.prototype._mergeOption=function(e,t,n,r){var i=this.mainType;n||t.eachSeries((function(e){var n=e.get(this.mainType,!0),o=qF(e)[i];n&&n.data?(o?o._mergeOption(n,t,!0):(r&&WF(n),x.each(n.data,(function(e){e instanceof Array?(WF(e[0]),WF(e[1])):WF(e)})),o=this.createMarkerModelFromSeries(n,this,t),x.extend(o,{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),o.__hostSeries=e),qF(e)[i]=o):qF(e)[i]=null}),this)},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e),o=r.getName(e);return rd("section",{header:this.name,blocks:[rd("nameValue",{name:o,value:i,noName:!o,noValue:null==i})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.getMarkerModelFromSeries=function(e,t){return qF(e)[t]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(Ic);x.mixin(GF,mf.prototype);var YF=GF,KF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(YF);function $F(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function XF(e,t,n,r,i,o){var a=[],s=Ty(t,r)?t.getCalculationInfo("stackResultDimension"):r,u=nB(t,s,e),c=t.indicesOfNearest(s,u)[0];a[i]=t.get(n,c),a[o]=t.get(s,c);var l=t.get(r,c),f=Or(t.get(r,c));return(f=Math.min(f,20))>=0&&(a[o]=+a[o].toFixed(f)),[a,l]}var QF={min:Object(x.curry)(XF,"min"),max:Object(x.curry)(XF,"max"),average:Object(x.curry)(XF,"average"),median:Object(x.curry)(XF,"median")};function ZF(e,t){var n=e.getData(),r=e.coordinateSystem;if(t&&!function(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}(t)&&!Object(x.isArray)(t.coord)&&r){var i=r.dimensions,o=JF(t,n,r,e);if((t=Object(x.clone)(t)).type&&QF[t.type]&&o.baseAxis&&o.valueAxis){var a=Object(x.indexOf)(i,o.baseAxis.dim),s=Object(x.indexOf)(i,o.valueAxis.dim),u=QF[t.type](n,o.baseDataDim,o.valueDataDim,a,s);t.coord=u[0],t.value=u[1]}else{for(var c=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis],l=0;l<2;l++)QF[c[l]]&&(c[l]=nB(n,n.mapDimension(i[l]),c[l]));t.coord=c}}return t}function JF(e,t,n,r){var i={};return null!=e.valueIndex||null!=e.valueDim?(i.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,i.valueAxis=n.getAxis(function(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function eB(e,t){return!(e&&e.containData&&t.coord&&!$F(t))||e.containData(t.coord)}function tB(e,t){return e?function(e,n,r,i){return Sf(i<2?e.coord&&e.coord[i]:e.value,t[i])}:function(e,n,r,i){return Sf(e.value,t[i])}}function nB(e,t,n){if("average"===n){var r=0,i=0;return e.each(t,(function(e,t){isNaN(e)||(r+=e,i++)})),r/i}return"median"===n?e.getMedian(t):e.getDataExtent(t)["max"===n?1:0]}var rB=oi(),iB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.init=function(){this.markerGroupMap=Object(x.createHashMap)()},t.prototype.render=function(e,t,n){var r=this,i=this.markerGroupMap;i.each((function(e){rB(e).keep=!1})),t.eachSeries((function(e){var i=YF.getMarkerModelFromSeries(e,r.type);i&&r.renderSeries(e,i,t,n)})),i.each((function(e){!rB(e).keep&&r.group.remove(e.group)}))},t.prototype.markKeep=function(e){rB(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;Object(x.each)(e,(function(e){var r=YF.getMarkerModelFromSeries(e,n.type);r&&r.getData().eachItemGraphicEl((function(e){e&&(t?gs(e):ms(e))}))}))},t.type="marker",t}(Td);function oB(e,t,n){var r=t.coordinateSystem;e.each((function(i){var o,a=e.getItemModel(i),s=wr(a.get("x"),n.getWidth()),u=wr(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(u)){if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,i));else if(r){var c=e.get(r.dimensions[0],i),l=e.get(r.dimensions[1],i);o=r.dataToPoint([c,l])}}else o=[s,u];isNaN(s)||(o[0]=s),isNaN(u)||(o[1]=u),e.setItemLayout(i,o)}))}var aB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=YF.getMarkerModelFromSeries(e,"markPoint");t&&(oB(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())}),this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,u=s.get(o)||s.set(o,new A_),c=function(e,t,n){var r;r=e?Object(x.map)(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return Object(x.extend)(Object(x.extend)({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var i=new xy(r,n),o=Object(x.map)(n.get("data"),Object(x.curry)(ZF,t));e&&(o=Object(x.filter)(o,Object(x.curry)(eB,e)));var a=tB(!!e,r);return i.initData(o,null,a),i}(i,e,t);t.setData(c),oB(t.getData(),e,r),c.each((function(e){var n=c.getItemModel(e),r=n.getShallow("symbol"),i=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),u=n.getShallow("symbolKeepAspect");if(Object(x.isFunction)(r)||Object(x.isFunction)(i)||Object(x.isFunction)(o)||Object(x.isFunction)(s)){var l=t.getRawValue(e),f=t.getDataParams(e);Object(x.isFunction)(r)&&(r=r(l,f)),Object(x.isFunction)(i)&&(i=i(l,f)),Object(x.isFunction)(o)&&(o=o(l,f)),Object(x.isFunction)(s)&&(s=s(l,f))}var d=n.getModel("itemStyle").getItemStyle(),p=kv(a,"color");d.fill||(d.fill=p),c.setItemVisual(e,{symbol:r,symbolSize:i,symbolRotate:o,symbolOffset:s,symbolKeepAspect:u,style:d})})),u.updateData(c),this.group.add(u.group),c.eachItemGraphicEl((function(e){e.traverse((function(e){Ia(e).dataModel=t}))})),this.markKeep(u),u.group.silent=t.get("silent")||e.get("silent")},t.type="markPoint",t}(iB);var sB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(YF),uB=oi(),cB=function(e,t,n,r){var i,o=e.getData();if(Object(x.isArray)(r))i=r;else{var a=r.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=r.xAxis||null!=r.yAxis){var s=void 0,u=void 0;if(null!=r.yAxis||null!=r.xAxis)s=t.getAxis(null!=r.yAxis?"y":"x"),u=Object(x.retrieve)(r.yAxis,r.xAxis);else{var c=JF(r,o,t,e);s=c.valueAxis,u=nB(o,Cy(o,c.valueDataDim),a)}var l="x"===s.dim?0:1,f=1-l,d=Object(x.clone)(r),p={coord:[]};d.type=null,d.coord=[],d.coord[f]=-1/0,p.coord[f]=1/0;var h=n.get("precision");h>=0&&Object(x.isNumber)(u)&&(u=+u.toFixed(Math.min(h,20))),d.coord[l]=p.coord[l]=u,i=[d,p,{type:a,valueIndex:r.valueIndex,value:u}]}else i=[]}var v=[ZF(e,i[0]),ZF(e,i[1]),Object(x.extend)({},i[2])];return v[2].type=v[2].type||null,Object(x.merge)(v[2],v[0]),Object(x.merge)(v[2],v[1]),v};function lB(e){return!isNaN(e)&&!isFinite(e)}function fB(e,t,n,r){var i=1-e,o=r.dimensions[e];return lB(t[i])&&lB(n[i])&&t[e]===n[e]&&r.getAxis(o).containData(t[e])}function dB(e,t){if("cartesian2d"===e.type){var n=t[0].coord,r=t[1].coord;if(n&&r&&(fB(1,n,r,e)||fB(0,n,r,e)))return!0}return eB(e,t[0])&&eB(e,t[1])}function pB(e,t,n,r,i){var o,a=r.coordinateSystem,s=e.getItemModel(t),u=wr(s.get("x"),i.getWidth()),c=wr(s.get("y"),i.getHeight());if(isNaN(u)||isNaN(c)){if(r.getMarkerPosition)o=r.getMarkerPosition(e.getValues(e.dimensions,t));else{var l=a.dimensions,f=e.get(l[0],t),d=e.get(l[1],t);o=a.dataToPoint([f,d])}if(W_(a,"cartesian2d")){var p=a.getAxis("x"),h=a.getAxis("y");l=a.dimensions;lB(e.get(l[0],t))?o[0]=p.toGlobalCoord(p.getExtent()[n?0:1]):lB(e.get(l[1],t))&&(o[1]=h.toGlobalCoord(h.getExtent()[n?0:1]))}isNaN(u)||(o[0]=u),isNaN(c)||(o[1]=c)}else o=[u,c];e.setItemLayout(t,o)}var hB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=YF.getMarkerModelFromSeries(e,"markLine");if(t){var r=t.getData(),i=uB(t).from,o=uB(t).to;i.each((function(t){pB(i,t,!0,e,n),pB(o,t,!1,e,n)})),r.each((function(e){r.setItemLayout(e,[i.getItemLayout(e),o.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,u=s.get(o)||s.set(o,new iC);this.group.add(u.group);var c=function(e,t,n){var r;r=e?Object(x.map)(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return Object(x.extend)(Object(x.extend)({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var i=new xy(r,n),o=new xy(r,n),a=new xy([],n),s=Object(x.map)(n.get("data"),Object(x.curry)(cB,t,e,n));e&&(s=Object(x.filter)(s,Object(x.curry)(dB,e)));var u=tB(!!e,r);return i.initData(Object(x.map)(s,(function(e){return e[0]})),null,u),o.initData(Object(x.map)(s,(function(e){return e[1]})),null,u),a.initData(Object(x.map)(s,(function(e){return e[2]}))),a.hasItemOption=!0,{from:i,to:o,line:a}}(i,e,t),l=c.from,f=c.to,d=c.line;uB(t).from=l,uB(t).to=f,t.setData(d);var p=t.get("symbol"),h=t.get("symbolSize"),v=t.get("symbolRotate"),g=t.get("symbolOffset");function m(t,n,i){var o=t.getItemModel(n);pB(t,n,i,e,r);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=kv(a,"color")),t.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:Object(x.retrieve2)(o.get("symbolOffset",!0),g[i?0:1]),symbolRotate:Object(x.retrieve2)(o.get("symbolRotate",!0),v[i?0:1]),symbolSize:Object(x.retrieve2)(o.get("symbolSize"),h[i?0:1]),symbol:Object(x.retrieve2)(o.get("symbol",!0),p[i?0:1]),style:s})}Object(x.isArray)(p)||(p=[p,p]),Object(x.isArray)(h)||(h=[h,h]),Object(x.isArray)(v)||(v=[v,v]),Object(x.isArray)(g)||(g=[g,g]),c.from.each((function(e){m(l,e,!0),m(f,e,!1)})),d.each((function(e){var t=d.getItemModel(e).getModel("lineStyle").getLineStyle();d.setItemLayout(e,[l.getItemLayout(e),f.getItemLayout(e)]),null==t.stroke&&(t.stroke=l.getItemVisual(e,"style").fill),d.setItemVisual(e,{fromSymbolKeepAspect:l.getItemVisual(e,"symbolKeepAspect"),fromSymbolOffset:l.getItemVisual(e,"symbolOffset"),fromSymbolRotate:l.getItemVisual(e,"symbolRotate"),fromSymbolSize:l.getItemVisual(e,"symbolSize"),fromSymbol:l.getItemVisual(e,"symbol"),toSymbolKeepAspect:f.getItemVisual(e,"symbolKeepAspect"),toSymbolOffset:f.getItemVisual(e,"symbolOffset"),toSymbolRotate:f.getItemVisual(e,"symbolRotate"),toSymbolSize:f.getItemVisual(e,"symbolSize"),toSymbol:f.getItemVisual(e,"symbol"),style:t})})),u.updateData(d),c.line.eachItemGraphicEl((function(e){Ia(e).dataModel=t,e.traverse((function(e){Ia(e).dataModel=t}))})),this.markKeep(u),u.group.silent=t.get("silent")||e.get("silent")},t.type="markLine",t}(iB);var vB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(YF),gB=oi(),mB=function(e,t,n,r){var i=ZF(e,r[0]),o=ZF(e,r[1]),a=i.coord,s=o.coord;a[0]=Object(x.retrieve)(a[0],-1/0),a[1]=Object(x.retrieve)(a[1],-1/0),s[0]=Object(x.retrieve)(s[0],1/0),s[1]=Object(x.retrieve)(s[1],1/0);var u=Object(x.mergeAll)([{},i,o]);return u.coord=[i.coord,o.coord],u.x0=i.x,u.y0=i.y,u.x1=o.x,u.y1=o.y,u};function yB(e){return!isNaN(e)&&!isFinite(e)}function bB(e,t,n,r){var i=1-e;return yB(t[i])&&yB(n[i])}function xB(e,t){var n=t.coord[0],r=t.coord[1],i={coord:n,x:t.x0,y:t.y0},o={coord:r,x:t.x1,y:t.y1};return W_(e,"cartesian2d")?!(!n||!r||!bB(1,n,r)&&!bB(0,n,r))||function(e,t,n){return!(e&&e.containZone&&t.coord&&n.coord&&!$F(t)&&!$F(n))||e.containZone(t.coord,n.coord)}(e,i,o):eB(e,i)||eB(e,o)}function wB(e,t,n,r,i){var o,a=r.coordinateSystem,s=e.getItemModel(t),u=wr(s.get(n[0]),i.getWidth()),c=wr(s.get(n[1]),i.getHeight());if(isNaN(u)||isNaN(c)){if(r.getMarkerPosition)o=r.getMarkerPosition(e.getValues(n,t));else{var l=[p=e.get(n[0],t),h=e.get(n[1],t)];a.clampData&&a.clampData(l,l),o=a.dataToPoint(l,!0)}if(W_(a,"cartesian2d")){var f=a.getAxis("x"),d=a.getAxis("y"),p=e.get(n[0],t),h=e.get(n[1],t);yB(p)?o[0]=f.toGlobalCoord(f.getExtent()["x0"===n[0]?0:1]):yB(h)&&(o[1]=d.toGlobalCoord(d.getExtent()["y0"===n[1]?0:1]))}isNaN(u)||(o[0]=u),isNaN(c)||(o[1]=c)}else o=[u,c];return o}var _B=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];var SB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=YF.getMarkerModelFromSeries(e,"markArea");if(t){var r=t.getData();r.each((function(t){var i=Object(x.map)(_B,(function(i){return wB(r,t,i,e,n)}));r.setItemLayout(t,i),r.getItemGraphicEl(t).setShape("points",i)}))}}),this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,u=s.get(o)||s.set(o,{group:new ur});this.group.add(u.group),this.markKeep(u);var c=function(e,t,n){var r,i;if(e){var o=Object(x.map)(e&&e.dimensions,(function(e){var n=t.getData(),r=n.getDimensionInfo(n.mapDimension(e))||{};return Object(x.extend)(Object(x.extend)({},r),{name:e,ordinalMeta:null})}));i=Object(x.map)(["x0","y0","x1","y1"],(function(e,t){return{name:e,type:o[t%2].type}})),r=new xy(i,n)}else r=new xy(i=[{name:"value",type:"float"}],n);var a=Object(x.map)(n.get("data"),Object(x.curry)(mB,t,e,n));e&&(a=Object(x.filter)(a,Object(x.curry)(xB,e)));var s=e?function(e,t,n,r){return Sf(e.coord[Math.floor(r/2)][r%2],i[r])}:function(e,t,n,r){return Sf(e.value,i[r])};return r.initData(a,null,s),r.hasItemOption=!0,r}(i,e,t);t.setData(c),c.each((function(t){var n=Object(x.map)(_B,(function(n){return wB(c,t,n,e,r)})),o=i.getAxis("x").scale,s=i.getAxis("y").scale,u=o.getExtent(),l=s.getExtent(),f=[o.parse(c.get("x0",t)),o.parse(c.get("x1",t))],d=[s.parse(c.get("y0",t)),s.parse(c.get("y1",t))];Sr(f),Sr(d);var p=!!(u[0]>f[1]||u[1]<f[0]||l[0]>d[1]||l[1]<d[0]);c.setItemLayout(t,{points:n,allClipped:p});var h=c.getItemModel(t).getModel("itemStyle").getItemStyle(),v=kv(a,"color");h.fill||(h.fill=v,Object(x.isString)(h.fill)&&(h.fill=Ut.modifyAlpha(h.fill,.4))),h.stroke||(h.stroke=v),c.setItemVisual(t,"style",h)})),c.diff(gB(u).data).add((function(e){var t=c.getItemLayout(e);if(!t.allClipped){var n=new Op({shape:{points:t.points}});c.setItemGraphicEl(e,n),u.group.add(n)}})).update((function(e,n){var r=gB(u).data.getItemGraphicEl(n),i=c.getItemLayout(e);i.allClipped?r&&u.group.remove(r):(r?Us(r,{shape:{points:i.points}},t,e):r=new Op({shape:{points:i.points}}),c.setItemGraphicEl(e,r),u.group.add(r))})).remove((function(e){var t=gB(u).data.getItemGraphicEl(e);u.group.remove(t)})).execute(),c.eachItemGraphicEl((function(e,n){var r=c.getItemModel(n),i=c.getItemVisual(n,"style");e.useStyle(c.getItemVisual(n,"style")),Xs(e,Qs(r),{labelFetcher:t,labelDataIndex:n,defaultText:c.getName(n)||"",inheritColor:Object(x.isString)(i.fill)?Ut.modifyAlpha(i.fill,1):"#000"}),Ms(e,r),Ts(e,null,null,r.get(["emphasis","disabled"])),Ia(e).dataModel=t})),gB(u).data=c,u.group.silent=t.get("silent")||e.get("silent")},t.type="markArea",t}(iB);var OB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return y(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;!0===t&&(t=e.selector=["all","inverse"]),x.isArray(t)&&x.each(t,(function(e,r){x.isString(e)&&(e={type:e}),t[r]=x.merge(e,function(e,t){return"all"===t?{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(n,e.type))}))},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){for(var t=!1,n=0;n<e.length;n++){var r=e[n].get("name");if(this.isSelected(r)){this.select(r),t=!0;break}}!t&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries((function(r){var i,o=r.name;if(n.push(o),r.legendVisualProvider){var a=r.legendVisualProvider.getAllNames();e.isSeriesFiltered(r)||(n=n.concat(a)),a.length?t=t.concat(a):i=!0}else i=!0;i&&ni(r)&&t.push(r.name)})),this._availableNames=n;var r=this.get("data")||t,i=x.map(r,(function(e){return(x.isString(e)||x.isNumber(e))&&(e={name:e}),new _u(e,this,this.ecModel)}),this);this._data=i},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected;if("single"===this.get("selectedMode")){var n=this._data;x.each(n,(function(e){t[e.get("name")]=!1}))}t[e]=!0},t.prototype.unSelect=function(e){"single"!==this.get("selectedMode")&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;x.each(e,(function(e){t[e.get("name",!0)]=!0}))},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;x.each(e,(function(e){var n=e.get("name",!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]}))},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&x.indexOf(this._availableNames,e)>=0},t.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(Ic),kB=x.curry,EB=x.each,jB=ur;function TB(e,t,n,r){PB(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),AB(e,t,n,r)}function CB(e){for(var t,n=e.getZr().storage.getDisplayList(),r=0,i=n.length;r<i&&!(t=n[r].states.emphasis);)r++;return t&&t.hoverLayer}function AB(e,t,n,r){CB(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:r})}function PB(e,t,n,r){CB(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:r})}var MB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return y(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new jB),this.group.add(this._selectorGroup=new jB),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var i=e.get("align"),o=e.get("orient");i&&"auto"!==i||(i="right"===e.get("left")&&"vertical"===o?"right":"left");var a=e.get("selector",!0),s=e.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(i,e,t,n,a,o,s);var u=e.getBoxLayoutParams(),c={width:n.getWidth(),height:n.getHeight()},l=e.get("padding"),f=kc(u,c,l),d=this.layoutInner(e,i,f,r,a,s),p=kc(x.defaults({width:d.width,height:d.height},u),c,l);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=QL(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,o,a){var s=this.getContentGroup(),u=x.createHashMap(),c=t.get("selectedMode"),l=[];n.eachRawSeries((function(e){!e.get("legendHoverLink")&&l.push(e.id)})),EB(t.getData(),(function(i,o){var a=i.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var f=new jB;return f.newline=!0,void s.add(f)}var d=n.getSeriesByName(a)[0];if(!u.get(a)){if(d){var p=d.getData(),h=p.getVisual("legendLineStyle")||{},v=p.getVisual("legendIcon"),g=p.getVisual("style");this._createItem(d,a,o,i,t,e,h,g,v,c,r).on("click",kB(TB,a,null,r,l)).on("mouseover",kB(AB,d.name,null,r,l)).on("mouseout",kB(PB,d.name,null,r,l)),u.set(a,!0)}else n.eachRawSeries((function(n){if(!u.get(a)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(a))return;var f=s.indexOfName(a),d=s.getItemVisual(f,"style"),p=s.getItemVisual(f,"legendIcon"),h=Object(Ut.parse)(d.fill);h&&0===h[3]&&(h[3]=.2,d=x.extend(x.extend({},d),{fill:Object(Ut.stringify)(h,"rgba")})),this._createItem(n,a,o,i,t,e,{},d,p,c,r).on("click",kB(TB,null,a,r,l)).on("mouseover",kB(AB,null,a,r,l)).on("mouseout",kB(PB,null,a,r,l)),u.set(a,!0)}}),this);0}}),this),i&&this._createSelector(i,t,r,o,a)},t.prototype._createSelector=function(e,t,n,r,i){var o=this.getSelectorGroup();EB(e,(function(e){var r=e.type,i=new Ma({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});o.add(i),Xs(i,{normal:t.getModel("selectorLabel"),emphasis:t.getModel(["emphasis","selectorLabel"])},{defaultText:e.title}),js(i)}))},t.prototype._createItem=function(e,t,n,r,i,o,a,s,u,c,l){var f=e.visualDrawType,d=i.get("itemWidth"),p=i.get("itemHeight"),h=i.isSelected(t),v=r.get("symbolRotate"),g=r.get("symbolKeepAspect"),m=r.get("icon"),y=function(e,t,n,r,i,o,a){function s(e,t){"auto"===e.lineWidth&&(e.lineWidth=t.lineWidth>0?2:0),EB(e,(function(n,r){"inherit"===e[r]&&(e[r]=t[r])}))}var u=t.getModel("itemStyle"),c=u.getItemStyle(),l=0===e.lastIndexOf("empty",0)?"fill":"stroke",f=u.getShallow("decal");c.decal=f&&"inherit"!==f?xg(f,a):r.decal,"inherit"===c.fill&&(c.fill=r[i]);"inherit"===c.stroke&&(c.stroke=r[l]);"inherit"===c.opacity&&(c.opacity=("fill"===i?r:n).opacity);s(c,r);var d=t.getModel("lineStyle"),p=d.getLineStyle();if(s(p,n),"auto"===c.fill&&(c.fill=r.fill),"auto"===c.stroke&&(c.stroke=r.fill),"auto"===p.stroke&&(p.stroke=r.fill),!o){var h=t.get("inactiveBorderWidth"),v=c[l];c.lineWidth="auto"===h?r.lineWidth>0&&v?2:0:c.lineWidth,c.fill=t.get("inactiveColor"),c.stroke=t.get("inactiveBorderColor"),p.stroke=d.get("inactiveColor"),p.lineWidth=d.get("inactiveWidth")}return{itemStyle:c,lineStyle:p}}(u=m||u||"roundRect",r,a,s,f,h,l),b=new jB,w=r.getModel("textStyle");if(!x.isFunction(e.getLegendIcon)||m&&"inherit"!==m){var _="inherit"===m&&e.getData().getVisual("symbol")?"inherit"===v?e.getData().getVisual("symbolRotate"):v:0;b.add(function(e){var t=e.icon||"roundRect",n=Vv(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2);return n}({itemWidth:d,itemHeight:p,icon:u,iconRotate:_,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:g}))}else b.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:u,iconRotate:v,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:g}));var S="left"===o?d+5:-5,O=o,k=i.get("formatter"),E=t;x.isString(k)&&k?E=k.replace("{name}",null!=t?t:""):x.isFunction(k)&&(E=k(t));var j=r.get("inactiveColor");b.add(new Ma({style:Zs(w,{text:E,x:S,y:p/2,fill:h?w.getTextColor():j,align:O,verticalAlign:"middle"})}));var T=new ga({shape:b.getBoundingRect(),invisible:!0}),C=r.getModel("tooltip");return C.get("show")&&Oh({el:T,componentModel:i,itemName:t,itemTooltipOption:C.option}),b.add(T),b.eachChild((function(e){e.silent=!0})),T.silent=!c,this.getContentGroup().add(b),js(b),b.__legendDataIndex=n,b},t.prototype.layoutInner=function(e,t,n,r,i,o){var a=this.getContentGroup(),s=this.getSelectorGroup();Oc(e.get("orient"),a,e.get("itemGap"),n.width,n.height);var u=a.getBoundingRect(),c=[-u.x,-u.y];if(s.markRedraw(),a.markRedraw(),i){Oc("horizontal",s,e.get("selectorItemGap",!0));var l=s.getBoundingRect(),f=[-l.x,-l.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,h=0===p?"width":"height",v=0===p?"height":"width",g=0===p?"y":"x";"end"===o?f[p]+=u[h]+d:c[p]+=l[h]+d,f[1-p]+=u[v]/2-l[v]/2,s.x=f[0],s.y=f[1],a.x=c[0],a.y=c[1];var m={x:0,y:0};return m[h]=u[h]+d+l[h],m[v]=Math.max(u[v],l[v]),m[g]=Math.min(0,l[g]+f[1-p]),m}return a.x=c[0],a.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Td);function IB(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries((function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0}))}function RB(e,t,n){var r,i={},o="toggleSelected"===e;return n.eachComponent("legend",(function(n){o&&null!=r?n[r?"select":"unSelect"](t.name):"allSelect"===e||"inverseSelect"===e?n[e]():(n[e](t.name),r=n.isSelected(t.name));var a=n.getData();Object(x.each)(a,(function(e){var t=e.get("name");if("\n"!==t&&""!==t){var r=n.isSelected(t);i.hasOwnProperty(t)?i[t]=i[t]&&r:i[t]=r}}))})),"allSelect"===e||"inverseSelect"===e?{selected:i}:{name:t.name,selected:i}}function DB(e){e.registerComponentModel(OB),e.registerComponentView(MB),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,IB),e.registerSubTypeDefaulter("legend",(function(){return"plain"})),function(e){e.registerAction("legendToggleSelect","legendselectchanged",Object(x.curry)(RB,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Object(x.curry)(RB,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Object(x.curry)(RB,"inverseSelect")),e.registerAction("legendSelect","legendselected",Object(x.curry)(RB,"select")),e.registerAction("legendUnSelect","legendunselected",Object(x.curry)(RB,"unSelect"))}(e)}function LB(e,t,n){var r=[1,1];r[e.getOrient().index]=0,Tc(t,n,{type:"box",ignoreSize:!!r})}var NB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,r){var i=Cc(t);e.prototype.init.call(this,t,n,r),LB(this,t,i)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),LB(this,this.option,t)},t.type="legend.scroll",t.defaultOption=ku(OB.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(OB),FB=ur,BB=["width","height"],UB=["x","y"],zB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return y(t,e),t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new FB),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new FB)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,r,i,o,a,s){var u=this;e.prototype.renderInner.call(this,t,n,r,i,o,a,s);var c=this._controllerGroup,l=n.get("pageIconSize",!0),f=x.isArray(l)?l:[l,l];p("pagePrev",0);var d=n.getModel("pageTextStyle");function p(e,t){var r=e+"DataIndex",o=xh(n.get("pageIcons",!0)[n.getOrient().name][t],{onclick:x.bind(u._pageGo,u,r,n,i)},{x:-f[0]/2,y:-f[1]/2,width:f[0],height:f[1]});o.name=e,c.add(o)}c.add(new Ma({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1)},t.prototype.layoutInner=function(e,t,n,r,i,o){var a=this.getSelectorGroup(),s=e.getOrient().index,u=BB[s],c=UB[s],l=BB[1-s],f=UB[1-s];i&&Oc("horizontal",a,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),p=a.getBoundingRect(),h=[-p.x,-p.y],v=x.clone(n);i&&(v[u]=n[u]-p[u]-d);var g=this._layoutContentAndController(e,r,v,s,u,l,f,c);if(i){if("end"===o)h[s]+=g[u]+d;else{var m=p[u]+d;h[s]-=m,g[c]-=m}g[u]+=p[u]+d,h[1-s]+=g[f]+g[l]/2-p[l]/2,g[l]=Math.max(g[l],p[l]),g[f]=Math.min(g[f],p[f]+h[1-s]),a.x=h[0],a.y=h[1],a.markRedraw()}return g},t.prototype._layoutContentAndController=function(e,t,n,r,i,o,a,s){var u=this.getContentGroup(),c=this._containerGroup,l=this._controllerGroup;Oc(e.get("orient"),u,e.get("itemGap"),r?n.width:null,r?null:n.height),Oc("horizontal",l,e.get("pageButtonItemGap",!0));var f=u.getBoundingRect(),d=l.getBoundingRect(),p=this._showController=f[i]>n[i],h=[-f.x,-f.y];t||(h[r]=u[s]);var v=[0,0],g=[-d.x,-d.y],m=x.retrieve2(e.get("pageButtonGap",!0),e.get("itemGap",!0));p&&("end"===e.get("pageButtonPosition",!0)?g[r]+=n[i]-d[i]:v[r]+=d[i]+m);g[1-r]+=f[o]/2-d[o]/2,u.setPosition(h),c.setPosition(v),l.setPosition(g);var y={x:0,y:0};if(y[i]=p?n[i]:f[i],y[o]=Math.max(f[o],d[o]),y[a]=Math.min(0,d[a]+g[1-r]),c.__rectSize=n[i],p){var b={x:0,y:0};b[i]=Math.max(n[i]-d[i]-m,0),b[o]=y[o],c.setClipPath(new ga({shape:b})),c.__rectSize=b[i]}else l.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var w=this._getPageInfo(e);return null!=w.pageIndex&&Us(u,{x:w.contentPosition[0],y:w.contentPosition[1]},p?e:null),this._updatePageInfoView(e,w),y},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;x.each(["pagePrev","pageNext"],(function(r){var i=null!=t[r+"DataIndex"],o=n.childOfName(r);o&&(o.setStyle("fill",i?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),o.cursor=i?"pointer":"default")}));var r=n.childOfName("pageText"),i=e.get("pageFormatter"),o=t.pageIndex,a=null!=o?o+1:0,s=t.pageCount;r&&i&&r.setStyle("text",x.isString(i)?i.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):i({current:a,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,o=BB[i],a=UB[i],s=this._findTargetItemIndex(t),u=n.children(),c=u[s],l=u.length,f=l?1:0,d={contentPosition:[n.x,n.y],pageCount:f,pageIndex:f-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var p=y(c);d.contentPosition[i]=-p.s;for(var h=s+1,v=p,g=p,m=null;h<=l;++h)(!(m=y(u[h]))&&g.e>v.s+r||m&&!b(m,v.s))&&(v=g.i>v.i?g:m)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=v.i),++d.pageCount),g=m;for(h=s-1,v=p,g=p,m=null;h>=-1;--h)(m=y(u[h]))&&b(g,m.s)||!(v.i<g.i)||(g=v,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=v.i),++d.pageCount,++d.pageIndex),v=m;return d;function y(e){if(e){var t=e.getBoundingRect(),n=t[a]+e[a];return{s:n,e:n+t[o],i:e.__legendDataIndex}}}function b(e,t){return e.e>=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){return this._showController?(this.getContentGroup().eachChild((function(r,i){var o=r.__legendDataIndex;null==n&&null!=o&&(n=i),o===e&&(t=i)})),null!=t?t:n):0;var t,n},t.type="legend.scroll",t}(MB);function VB(e){Ym(DB),e.registerComponentModel(NB),e.registerComponentView(zB),function(e){e.registerAction("legendScroll","legendscroll",(function(e,t){var n=e.scrollDataIndex;null!=n&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},(function(e){e.setScrollDataIndex(n)}))}))}(e)}var HB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.type="dataZoom.inside",t.defaultOption=ku(DL.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(DL),WB=oi();function qB(e,t,n){WB(e).coordSysRecordMap.each((function(e){var r=e.dataZoomInfoMap.get(t.uid);r&&(r.getRange=n)}))}function GB(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function YB(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function KB(e,t,n,r){return e.coordinateSystem.containPoint([n,r])}function $B(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,(function(e,t){var n=WB(t),r=n.coordSysRecordMap||(n.coordSysRecordMap=Object(x.createHashMap)());r.each((function(e){e.dataZoomInfoMap=null})),e.eachComponent({mainType:"dataZoom",subType:"inside"},(function(e){var n=ML(e);Object(x.each)(n.infoList,(function(n){var i=n.model.uid,o=r.get(i)||r.set(i,function(e,t){var n={model:t,containsPoint:Object(x.curry)(KB,t),dispatchAction:Object(x.curry)(YB,e),dataZoomInfoMap:null,controller:null},r=n.controller=new mk(e.getZr());return Object(x.each)(["pan","zoom","scrollMove"],(function(e){r.on(e,(function(t){var r=[];n.dataZoomInfoMap.each((function(i){if(t.isAvailableBehavior(i.model.option)){var o=(i.getRange||{})[e],a=o&&o(i.dzReferCoordSysInfo,n.model.mainType,n.controller,t);!i.model.get("disabled",!0)&&a&&r.push({dataZoomId:i.model.id,start:a[0],end:a[1]})}})),r.length&&n.dispatchAction(r)}))})),n}(t,n.model));(o.dataZoomInfoMap||(o.dataZoomInfoMap=Object(x.createHashMap)())).set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})}))})),r.each((function(e){var t,n=e.controller,i=e.dataZoomInfoMap;if(i){var o=i.keys()[0];null!=o&&(t=i.get(o))}if(t){var a=function(e){var t,n={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return e.each((function(e){var i=e.model,o=!i.get("disabled",!0)&&(!i.get("zoomLock",!0)||"move");n["type_"+o]>n["type_"+t]&&(t=o),r=r&&i.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}(i);n.enable(a.controlType,a.opt),n.setPointerChecker(e.containsPoint),Uh(e,"dispatchAction",t.model.get("throttle",!0),"fixRate")}else GB(r,e)}))}))}var XB=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return y(t,e),t.prototype.render=function(t,n,r){e.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),qB(r,t,{pan:Object(x.bind)(QB.pan,this),zoom:Object(x.bind)(QB.zoom,this),scrollMove:Object(x.bind)(QB.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){!function(e,t){for(var n=WB(e).coordSysRecordMap,r=n.keys(),i=0;i<r.length;i++){var o=r[i],a=n.get(o),s=a.dataZoomInfoMap;if(s){var u=t.uid;s.get(u)&&(s.removeKey(u),s.keys().length||GB(n,a))}}}(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(NL),QB={zoom:function(e,t,n,r){var i=this.range,o=i.slice(),a=e.axisModels[0];if(a){var s=JB[t](null,[r.originX,r.originY],a,n,e),u=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],c=Math.max(1/r.scale,0);o[0]=(o[0]-u)*c+u,o[1]=(o[1]-u)*c+u;var l=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return QC(0,o,[0,100],0,l.minSpan,l.maxSpan),this.range=o,i[0]!==o[0]||i[1]!==o[1]?o:void 0}},pan:ZB((function(e,t,n,r,i,o){var a=JB[r]([o.oldX,o.oldY],[o.newX,o.newY],t,i,n);return a.signal*(e[1]-e[0])*a.pixel/a.pixelLength})),scrollMove:ZB((function(e,t,n,r,i,o){return JB[r]([0,0],[o.scrollDelta,o.scrollDelta],t,i,n).signal*(e[1]-e[0])*o.scrollDelta}))};function ZB(e){return function(t,n,r,i){var o=this.range,a=o.slice(),s=t.axisModels[0];if(s)return QC(e(a,s,t,n,r,i),a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}var JB={grid:function(e,t,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem.getRect();return e=e||[0,0],"x"===o.dim?(a.pixel=t[0]-e[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(e,t,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem,u=s.getRadiusAxis().getExtent(),c=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),"radiusAxis"===n.mainType?(a.pixel=t[0]-e[0],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=c[1]-c[0],a.pixelStart=c[0],a.signal=o.inverse?-1:1),a},singleAxis:function(e,t,n,r,i){var o=n.axis,a=i.model.coordinateSystem.getRect(),s={};return e=e||[0,0],"horizontal"===o.orient?(s.pixel=t[0]-e[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},eU=XB;function tU(e){WL(e),e.registerComponentModel(HB),e.registerComponentView(eU),$B(e)}var nU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=ku(DL.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(DL),rU=ga,iU="horizontal",oU=5,aU=["line","bar","candlestick","scatter"],sU={easing:"cubicOut",duration:100,delay:0};function uU(e){return"vertical"===e?"ns-resize":"ew-resize"}var cU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return y(t,e),t.prototype.init=function(e,t){this.api=t,this._onBrush=Object(x.bind)(this._onBrush,this),this._onBrushEnd=Object(x.bind)(this._onBrushEnd,this)},t.prototype.render=function(t,n,r,i){if(e.prototype.render.apply(this,arguments),Uh(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")){if(t.noTarget())return this._clear(),void this.group.removeAll();i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){zh(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new ur;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get("brushSelect")?7:0,r=this._findCoordRect(),i={width:t.getWidth(),height:t.getHeight()},o=this._orient===iU?{right:i.width-r.x-r.width,top:i.height-30-7-n,width:r.width,height:30}:{right:7,top:r.y,width:30,height:r.height},a=Cc(e.option);Object(x.each)(["right","top","width","height"],(function(e){"ph"===a[e]&&(a[e]=o[e])}));var s=kc(a,i);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],"vertical"===this._orient&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==iU||i?n===iU&&i?{scaleY:a?1:-1,scaleX:-1}:"vertical"!==n||i?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=e.getBoundingRect([o]);e.x=t.x-s.x,e.y=t.y-s.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,r=e.get("brushSelect");n.add(new rU({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var i=new rU({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:Object(x.bind)(this._onClickPanel,this)}),o=this.api.getZr();r?(i.on("mousedown",this._onBrushStart,this),i.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(i)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var t=this._size,n=this._shadowSize||[],r=e.series,i=r.getRawData(),o=r.getShadowDim&&r.getShadowDim(),a=o&&i.getDimensionInfo(o)?r.getShadowDim():e.otherDim;if(null!=a){var s=this._shadowPolygonPts,u=this._shadowPolylinePts;if(i!==this._shadowData||a!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var c=i.getDataExtent(a),l=.3*(c[1]-c[0]);c=[c[0]-l,c[1]+l];var f,d=[0,t[1]],p=[0,t[0]],h=[[t[0],0],[0,0]],v=[],g=p[1]/(i.count()-1),m=0,y=Math.round(i.count()/t[0]);i.each([a],(function(e,t){if(y>0&&t%y)m+=g;else{var n=null==e||isNaN(e)||""===e,r=n?0:xr(e,c,d,!0);n&&!f&&t?(h.push([h[h.length-1][0],0]),v.push([v[v.length-1][0],0])):!n&&f&&(h.push([m,0]),v.push([m,0])),h.push([m,r]),v.push([m,r]),m+=g,f=n}})),s=this._shadowPolygonPts=h,u=this._shadowPolylinePts=v}this._shadowData=i,this._shadowDim=a,this._shadowSize=[t[0],t[1]];for(var b=this.dataZoomModel,x=0;x<3;x++){var w=_(1===x);this._displayables.sliderGroup.add(w),this._displayables.dataShadowSegs.push(w)}}}function _(e){var t=b.getModel(e?"selectedDataBackground":"dataBackground"),n=new ur,r=new Op({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),i=new jp({shape:{points:u},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var n,r=this.ecModel;return e.eachTargetAxis((function(i,o){var a=e.getAxisProxy(i,o).getTargetSeriesModels();Object(x.each)(a,(function(e){if(!(n||!0!==t&&Object(x.indexOf)(aU,e.get("type"))<0)){var a,s=r.getComponent(AL(i),o).axis,u={x:"y",y:"x",radius:"angle",angle:"radius"}[i],c=e.coordinateSystem;null!=u&&c.getOtherAxis&&(a=c.getOtherAxis(s).inverse),u=e.getData().mapDimension(u),n={thisAxis:s,series:e,thisDim:i,otherDim:u,otherAxisInverse:a}}}),this)}),this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],r=t.handleLabels=[null,null],i=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,u=a.get("borderRadius")||0,c=a.get("brushSelect"),l=t.filler=new rU({silent:c,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});i.add(l),i.add(new rU({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:u},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),Object(x.each)([0,1],(function(t){var o=a.get("handleIcon");!Bv[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=Vv(o,-1,0,2,2,null,!0);s.attr({cursor:uU(this._orient),draggable:!0,drift:Object(x.bind)(this._onDragMove,this,t),ondragend:Object(x.bind)(this._onDragEnd,this),onmouseover:Object(x.bind)(this._showDataInfo,this,!0),onmouseout:Object(x.bind)(this._showDataInfo,this,!1),z2:5});var u=s.getBoundingRect(),c=a.get("handleSize");this._handleHeight=wr(c,this._size[1]),this._handleWidth=u.width/u.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),js(s);var l=a.get("handleColor");null!=l&&(s.style.fill=l),i.add(n[t]=s);var f=a.getModel("textStyle");e.add(r[t]=new Ma({silent:!0,invisible:!0,style:Zs(f,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:f.getTextColor(),font:f.getFont()}),z2:10}))}),this);var f=l;if(c){var d=wr(a.get("moveHandleSize"),o[1]),p=t.moveHandle=new ga({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:d}}),h=.8*d,v=t.moveHandleIcon=Vv(a.get("moveHandleIcon"),-h/2,-h/2,h,h,"#fff",!0);v.silent=!0,v.y=o[1]+d/2-.5,p.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var g=Math.min(o[1]/2,Math.max(d,10));(f=t.moveZone=new ga({invisible:!0,shape:{y:o[1]-g,height:d+g}})).on("mouseover",(function(){s.enterEmphasis(p)})).on("mouseout",(function(){s.leaveEmphasis(p)})),i.add(p),i.add(v),i.add(f)}f.attr({draggable:!0,cursor:uU(this._orient),drift:Object(x.bind)(this._onDragMove,this,"all"),ondragstart:Object(x.bind)(this._showDataInfo,this,!0),ondragend:Object(x.bind)(this._onDragEnd,this),onmouseover:Object(x.bind)(this._showDataInfo,this,!0),onmouseout:Object(x.bind)(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[xr(e[0],[0,100],t,!0),xr(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];QC(t,r,i,n.get("zoomLock")?"all":e,null!=o.minSpan?xr(o.minSpan,a,i,!0):null,null!=o.maxSpan?xr(o.maxSpan,a,i,!0):null);var s=this._range,u=this._range=Sr([xr(r[0],i,a,!0),xr(r[1],i,a,!0)]);return!s||s[0]!==u[0]||s[1]!==u[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,r=Sr(n.slice()),i=this._size;Object(x.each)([0,1],(function(e){var r=t.handles[e],o=this._handleHeight;r.attr({scaleX:o/2,scaleY:o/2,x:n[e]+(e?-1:1),y:i[1]/2-o/2})}),this),t.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var o={x:r[0],width:r[1]-r[0]};t.moveHandle&&(t.moveHandle.setShape(o),t.moveZone.setShape(o),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=t.dataShadowSegs,s=[0,r[0],r[1],i[0]],u=0;u<a.length;u++){var c=a[u],l=c.getClipPath();l||(l=new ga,c.setClipPath(l)),l.setShape({x:s[u],y:0,width:s[u+1]-s[u],height:i[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var t=this.dataZoomModel,n=this._displayables,r=n.handleLabels,i=this._orient,o=["",""];if(t.get("showDetail")){var a=t.findRepresentativeAxisProxy();if(a){var s=a.getAxisModel().axis,u=this._range,c=e?a.calculateDataWindow({start:u[0],end:u[1]}).valueWindow:a.getDataValueWindow();o=[this._formatLabel(c[0],s),this._formatLabel(c[1],s)]}}var l=Sr(this._handleEnds.slice());function f(e){var t=ph(n.handles[e].parent,this.group),a=vh(0===e?"right":"left",t),s=this._handleWidth/2+oU,u=hh([l[e]+(0===e?-s:s),this._size[1]/2],t);r[e].setStyle({x:u[0],y:u[1],verticalAlign:i===iU?"middle":a,align:i===iU?a:"center",text:o[e]})}f.call(this,0),f.call(this,1)},t.prototype._formatLabel=function(e,t){var n=this.dataZoomModel,r=n.get("labelFormatter"),i=n.get("labelPrecision");null!=i&&"auto"!==i||(i=t.getPixelPrecision());var o=null==e||isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(i,20));return Object(x.isFunction)(r)?r(e,o):Object(x.isString)(r)?r.replace("{value}",o):o},t.prototype._showDataInfo=function(e){e=this._dragging||e;var t=this._displayables,n=t.handleLabels;n[0].attr("invisible",!e),n[1].attr("invisible",!e),t.moveHandle&&this.api[e?"enterEmphasis":"leaveEmphasis"](t.moveHandle,1)},t.prototype._onDragMove=function(e,t,n,r){this._dragging=!0,ve(r.event);var i=hh([t,n],this._displayables.sliderGroup.getLocalTransform(),!0),o=this._updateInterval(e,i[0]),a=this.dataZoomModel.get("realtime");this._updateView(!a),o&&a&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var t=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>t[0]||n[1]<0||n[1]>t[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,o=this._updateInterval("all",n[0]-i);this._updateView(),o&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new Ce(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr("ignore",!0);var n=t.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),i=[0,100];this._range=Sr([xr(n.x,r,i,!0),xr(n.x+n.width,r,i,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(ve(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new rU({silent:!0,style:r.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(i)),i.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(e,t),u=a.transformCoordToLocal(o.x,o.y),c=this._size;s[0]=Math.max(Math.min(c[0],s[0]),0),i.setShape({x:u[0],y:0,width:s[0]-u[0],height:c[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?sU:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=ML(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var r=this.api.getWidth(),i=this.api.getHeight();e={x:.2*r,y:.2*i,width:.6*r,height:.6*i}}return e},t.type="dataZoom.slider",t}(NL);function lU(e){e.registerComponentModel(nU),e.registerComponentView(cU),WL(e)}var fU={get:function(e,t,n){var r=x.clone((dU[e]||{})[t]);return n&&x.isArray(r)?r[r.length-1]:r}},dU={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},pU=fU,hU=eT.mapVisual,vU=eT.eachVisual,gU=x.isArray,mU=x.each,yU=Sr,bU=xr,xU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return y(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&lF(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=x.bind(e,this),this.controllerVisuals=cF(this.option.controller,t,e),this.targetVisuals=cF(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,t=[];return null==e||"all"===e?this.ecModel.eachSeries((function(e,n){t.push(n)})):t=Yr(e),t},t.prototype.eachTargetSeries=function(e,t){x.each(this.getTargetSeriesIndices(),(function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)}),this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries((function(n){n===e&&(t=!0)})),t},t.prototype.formatValueText=function(e,t,n){var r,i=this.option,o=i.precision,a=this.dataBound,s=i.formatter;n=n||["<",">"],x.isArray(e)&&(e=e.slice(),r=!0);var u=t?e:r?[c(e[0]),c(e[1])]:c(e);return x.isString(s)?s.replace("{value}",r?u[0]:u).replace("{value2}",r?u[1]:u):x.isFunction(s)?r?s(e[0],e[1]):s(e):r?e[0]===a[0]?n[0]+" "+u[1]:e[1]===a[1]?n[1]+" "+u[0]:u[0]+" - "+u[1]:u;function c(e){return e===a[0]?"min":e===a[1]?"max":(+e).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,t=yU([e.min,e.max]);this._dataExtent=t},t.prototype.getDataDimensionIndex=function(e){var t=this.option.dimension;if(null!=t)return e.getDimensionIndex(t);for(var n=e.dimensions,r=n.length-1;r>=0;r--){var i=n[r],o=e.getDimensionInfo(i);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||(t.target={}),i=t.controller||(t.controller={});x.merge(r,n),x.merge(i,n);var o=this.isCategory();function a(n){gU(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get("gradientColor")}}a.call(this,r),a.call(this,i),function(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},mU(r,(function(e,t){if(eT.isValidType(t)){var n=pU.get(t,"inactive",o);null!=n&&(i[t]=n,"color"!==t||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}})))}.call(this,r,"inRange","outOfRange"),function(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get("inactiveColor"),i=this.getItemSymbol()||"roundRect";mU(this.stateList,(function(a){var s=this.itemSize,u=e[a];u||(u=e[a]={color:o?r:[r]}),null==u.symbol&&(u.symbol=t&&x.clone(t)||(o?i:[i])),null==u.symbolSize&&(u.symbolSize=n&&x.clone(n)||(o?s[0]:[s[0],s[0]])),u.symbol=hU(u.symbol,(function(e){return"none"===e?i:e}));var c=u.symbolSize;if(null!=c){var l=-1/0;vU(c,(function(e){e>l&&(l=e)})),u.symbolSize=hU(c,(function(e){return bU(e,[0,l],[0,s[0]],!0)}))}}),this)}.call(this,i)},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(Ic),wU=[20,140];function _U(e,t,n){if(n[0]===n[1])return n.slice();for(var r=(n[1]-n[0])/200,i=n[0],o=[],a=0;a<=200&&i<n[1];a++)o.push(i),i+=r;return o.push(n[1]),o}var SU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()})),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(null==t[0]||isNaN(t[0]))&&(t[0]=wU[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=wU[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):x.isArray(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),x.each(this.stateList,(function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)}),this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=Sr((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},t.prototype.getValueState=function(e){var t=this.option.range,n=this.getExtent();return(t[0]<=n[0]||t[0]<=e)&&(t[1]>=n[1]||e<=t[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries((function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),(function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)}),this),t.push({seriesId:n.id,dataIndex:r})}),this),t},t.prototype.getVisualMeta=function(e){var t=_U(this,"outOfRange",this.getExtent()),n=_U(this,"inRange",this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var o=0,a=0,s=n.length,u=t.length;a<u&&(!n.length||t[a]<=n[0]);a++)t[a]<n[o]&&i(t[a],"outOfRange");for(var c=1;o<s;o++,c=0)c&&r.length&&i(n[o],"outOfRange"),i(n[o],"inRange");for(c=1;a<u;a++)(!n.length||n[n.length-1]<t[a])&&(c&&(r.length&&i(r[r.length-1].value,"outOfRange"),c=0),i(t[a],"outOfRange"));var l=r.length;return{stops:r,outerColors:[l?r[0].color:"transparent",l?r[l-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=ku(xU.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(xU),OU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return y(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t},t.prototype.render=function(e,t,n,r){this.visualMapModel=e,!1!==e.get("show")?this.doRender(e,t,n,r):this.group.removeAll()},t.prototype.renderBackground=function(e){var t=this.visualMapModel,n=lc(t.get("padding")||0),r=e.getBoundingRect();e.add(new ga({z2:-1,silent:!0,shape:{x:r.x-n[3],y:r.y-n[0],width:r.width+n[3]+n[1],height:r.height+n[0]+n[2]},style:{fill:t.get("backgroundColor"),stroke:t.get("borderColor"),lineWidth:t.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,t,n){var r=(n=n||{}).forceState,i=this.visualMapModel,o={};if("color"===t){var a=i.get("contentColor");o.color=a}function s(e){return o[e]}function u(e,t){o[e]=t}var c=i.controllerVisuals[r||i.getValueState(e)],l=eT.prepareVisualTypes(c);return x.each(l,(function(r){var i=c[r];n.convertOpacityToAlpha&&"opacity"===r&&(r="colorAlpha",i=c.__alphaForOpacity),eT.dependsOn(r,t)&&i&&i.applyVisual(e,s,u)})),o[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api;Ec(e,t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},t.prototype.doRender=function(e,t,n,r){},t.type="visualMap",t}(Td),kU=[["left","right","width"],["top","bottom","height"]];function EU(e,t,n){var r=e.option,i=r.align;if(null!=i&&"auto"!==i)return i;for(var o={width:t.getWidth(),height:t.getHeight()},a="horizontal"===r.orient?1:0,s=kU[a],u=[0,null,10],c={},l=0;l<3;l++)c[kU[1-a][l]]=u[l],c[s[l]]=2===l?n[0]:r[s[l]];var f=[["x","width",3],["y","height",0]][a],d=kc(c,o,r.padding);return s[(d.margin[f[2]]||0)+d[f[0]]+.5*d[f[1]]<.5*o[f[1]]?0:1]}function jU(e,t){return x.each(e||[],(function(e){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")})),e}var TU=xr,CU=x.each,AU=Math.min,PU=Math.max,MU=12;function IU(e,t,n,r){return new Op({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){ve(e.event)},ondragend:r})}function RU(e){var t=e.get("hoverLinkOnHandle");return!!(null==t?e.get("realtime"):t)}function DU(e){return"vertical"===e?"ns-resize":"ew-resize"}var LU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return y(t,e),t.prototype.doRender=function(e,t,n,r){this._api=n,r&&"selectDataRange"===r.type&&r.from===this.uid||this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(t);var n=e.get("text");this._renderEndsText(t,n,0),this._renderEndsText(t,n,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},t.prototype._renderEndsText=function(e,t,n){if(t){var r=t[1-n];r=null!=r?r+"":"";var i=this.visualMapModel,o=i.get("textGap"),a=i.itemSize,s=this._shapes.mainGroup,u=this._applyTransform([a[0]/2,0===n?-o:a[1]+o],s),c=this._applyTransform(0===n?"bottom":"top",s),l=this._orient,f=this.visualMapModel.textStyleModel;this.group.add(new Ma({style:Zs(f,{x:u[0],y:u[1],verticalAlign:"horizontal"===l?"middle":c,align:"horizontal"===l?c:"center",text:r})}))}},t.prototype._renderBar=function(e){var t=this.visualMapModel,n=this._shapes,r=t.itemSize,i=this._orient,o=this._useHandle,a=EU(t,this.api,r),s=n.mainGroup=this._createBarGroup(a),u=new ur;s.add(u),u.add(n.outOfRange=IU()),u.add(n.inRange=IU(null,o?DU(this._orient):null,x.bind(this._dragHandle,this,"all",!1),x.bind(this._dragHandle,this,"all",!0))),u.setClipPath(new ga({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var c=t.textStyleModel.getTextRect("国"),l=PU(c.width,c.height);o&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(t,s,0,r,l,i),this._createHandle(t,s,1,r,l,i)),this._createIndicator(t,s,r,l,i),e.add(s)},t.prototype._createHandle=function(e,t,n,r,i,o){var a=x.bind(this._dragHandle,this,n,!1),s=x.bind(this._dragHandle,this,n,!0),u=Xn(e.get("handleSize"),r[0]),c=Vv(e.get("handleIcon"),-u/2,-u/2,u,u,null,!0),l=DU(this._orient);c.attr({cursor:l,draggable:!0,drift:a,ondragend:s,onmousemove:function(e){ve(e.event)}}),c.x=r[0]/2,c.useStyle(e.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),Is(c,!0),t.add(c);var f=this.visualMapModel.textStyleModel,d=new Ma({cursor:l,draggable:!0,drift:a,onmousemove:function(e){ve(e.event)},ondragend:s,style:Zs(f,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[u,0],h=this._shapes;h.handleThumbs[n]=c,h.handleLabelPoints[n]=p,h.handleLabels[n]=d},t.prototype._createIndicator=function(e,t,n,r,i){var o=Xn(e.get("indicatorSize"),n[0]),a=Vv(e.get("indicatorIcon"),-o/2,-o/2,o,o,null,!0);a.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var s=e.getModel("indicatorStyle").getItemStyle();if(a instanceof ua){var u=a.style;a.useStyle(x.extend({image:u.image,x:u.x,y:u.y,width:u.width,height:u.height},s))}else a.useStyle(s);t.add(a);var c=this.visualMapModel.textStyleModel,l=new Ma({silent:!0,invisible:!0,style:Zs(c,{x:0,y:0,text:""})});this.group.add(l);var f=[("horizontal"===i?r/2:6)+n[0]/2,0],d=this._shapes;d.indicator=a,d.indicatorLabel=l,d.indicatorLabelPoint=f,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,n,r){if(this._useHandle){if(this._dragging=!t,!t){var i=this._applyTransform([n,r],this._shapes.mainGroup,!0);this._updateInterval(e,i[1]),this._hideIndicator(),this._updateView()}t===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():RU(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),r=[0,e.itemSize[1]];this._handleEnds=[TU(t[0],n,r,!0),TU(t[1],n,r,!0)]},t.prototype._updateInterval=function(e,t){t=t||0;var n=this.visualMapModel,r=this._handleEnds,i=[0,n.itemSize[1]];QC(t,r,i,e,0);var o=n.getExtent();this._dataInterval=[TU(r[0],i,o,!0),TU(r[1],i,o,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,n=t.getExtent(),r=this._shapes,i=[0,t.itemSize[1]],o=e?i:this._handleEnds,a=this._createBarVisual(this._dataInterval,n,o,"inRange"),s=this._createBarVisual(n,n,i,"outOfRange");r.inRange.setStyle({fill:a.barColor}).setShape("points",a.barPoints),r.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(o,a)},t.prototype._createBarVisual=function(e,t,n,r){var i={forceState:r,convertOpacityToAlpha:!0},o=this._makeColorGradient(e,i),a=[this.getControllerVisual(e[0],"symbolSize",i),this.getControllerVisual(e[1],"symbolSize",i)],s=this._createBarPoints(n,a);return{barColor:new Vp(0,0,0,1,o),barPoints:s,handlesColor:[o[0].color,o[o.length-1].color]}},t.prototype._makeColorGradient=function(e,t){var n=[],r=(e[1]-e[0])/100;n.push({color:this.getControllerVisual(e[0],"color",t),offset:0});for(var i=1;i<100;i++){var o=e[0]+r*i;if(o>e[1])break;n.push({color:this.getControllerVisual(o,"color",t),offset:i/100})}return n.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),n},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get("inverse");return new ur("horizontal"!==t||n?"horizontal"===t&&n?{scaleX:"bottom"===e?-1:1,rotation:-Math.PI/2}:"vertical"!==t||n?{scaleX:"left"===e?1:-1}:{scaleX:"left"===e?1:-1,scaleY:-1}:{scaleX:"bottom"===e?1:-1,rotation:Math.PI/2})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,o=n.handleLabels,a=r.itemSize,s=r.getExtent();CU([0,1],(function(u){var c=i[u];c.setStyle("fill",t.handlesColor[u]),c.y=e[u];var l=TU(e[u],[0,a[1]],s,!0),f=this.getControllerVisual(l,"symbolSize");c.scaleX=c.scaleY=f/a[0],c.x=a[0]-f/2;var d=hh(n.handleLabelPoints[u],ph(c,this.group));o[u].setStyle({x:d[0],y:d[1],text:r.formatValueText(this._dataInterval[u]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},t.prototype._showIndicator=function(e,t,n,r){var i=this.visualMapModel,o=i.getExtent(),a=i.itemSize,s=[0,a[1]],u=this._shapes,c=u.indicator;if(c){c.attr("invisible",!1);var l=this.getControllerVisual(e,"color",{convertOpacityToAlpha:!0}),f=this.getControllerVisual(e,"symbolSize"),d=TU(e,o,s,!0),p=a[0]-f/2,h={x:c.x,y:c.y};c.y=d,c.x=p;var v=hh(u.indicatorLabelPoint,ph(c,this.group)),g=u.indicatorLabel;g.attr("invisible",!1);var m=this._applyTransform("left",u.mainGroup),y="horizontal"===this._orient;g.setStyle({text:(n||"")+i.formatValueText(t),verticalAlign:y?m:"middle",align:y?"center":m});var b={x:p,y:d,style:{fill:l}},x={style:{x:v[0],y:v[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var w={duration:100,easing:"cubicInOut",additive:!0};c.x=h.x,c.y=h.y,c.animateTo(b,w),g.animateTo(x,w)}else c.attr(b),g.attr(x);this._firstShowIndicator=!1;var _=this._shapes.handleLabels;if(_)for(var S=0;S<_.length;S++)this._api.enterBlur(_[S])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",(function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,r=e._applyTransform([t.offsetX,t.offsetY],e._shapes.mainGroup,!0,!0);r[1]=AU(PU(0,r[1]),n[1]),e._doHoverLinkToSeries(r[1],0<=r[0]&&r[0]<=n[0])}})).on("mouseout",(function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()}))},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,t){var n=this.visualMapModel,r=n.itemSize;if(n.option.hoverLink){var i=[0,r[1]],o=n.getExtent();e=AU(PU(i[0],e),i[1]);var a=function(e,t,n){var r=MU/2,i=e.get("hoverLinkDataSize");i&&(r=TU(i,t,n,!0)/2);return r}(n,o,i),s=[e-a,e+a],u=TU(e,i,o,!0),c=[TU(s[0],i,o,!0),TU(s[1],i,o,!0)];s[0]<i[0]&&(c[0]=-1/0),s[1]>i[1]&&(c[1]=1/0),t&&(c[0]===-1/0?this._showIndicator(u,c[1],"< ",a):c[1]===1/0?this._showIndicator(u,c[0],"> ",a):this._showIndicator(u,u,"≈ ",a));var l=this._hoverLinkDataIndices,f=[];(t||RU(n))&&(f=this._hoverLinkDataIndices=n.findTargetDataIndices(c));var d=function(e,t){var n={},r={};return i(e||[],n),i(t||[],r,n),[o(n),o(r)];function i(e,t,n){for(var r=0,i=e.length;r<i;r++){var o=ti(e[r].seriesId,null);if(null==o)return;for(var a=Yr(e[r].dataIndex),s=n&&n[o],u=0,c=a.length;u<c;u++){var l=a[u];s&&s[l]?s[l]=null:(t[o]||(t[o]={}))[l]=1}}}function o(e,t){var n=[];for(var r in e)if(e.hasOwnProperty(r)&&null!=e[r])if(t)n.push(+r);else{var i=o(e[r],!0);i.length&&n.push({seriesId:r,dataIndex:i})}return n}}(l,f);this._dispatchHighDown("downplay",jU(d[0],n)),this._dispatchHighDown("highlight",jU(d[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(Cv(e.target,(function(e){var n=Ia(e);if(null!=n.dataIndex)return t=n,!0}),!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(t.dataType),o=i.getStore().get(r.getDataDimensionIndex(i),t.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n<t.length;n++)this._api.leaveBlur(t[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",jU(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,t,n,r){var i=ph(t,r?null:this.group);return x.isArray(e)?hh(e,i,n):vh(e,i,n)},t.prototype._dispatchHighDown=function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(OU),NU={type:"selectDataRange",event:"dataRangeSelected",update:"update"},FU=function(e,t){t.eachComponent({mainType:"visualMap",query:e},(function(t){t.setSelected(e.selected)}))},BU=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent("visualMap",(function(t){var r,i,o,a,s,u=e.pipelineContext;!t.isTargetSeries(e)||u&&u.large||n.push((r=t.stateList,i=t.targetVisuals,o=x.bind(t.getValueState,t),a=t.getDataDimensionIndex(e.getData()),s={},x.each(r,(function(e){var t=eT.prepareVisualTypes(i[e]);s[e]=t})),{progress:function(e,t){var n,r;function u(e){return Ov(t,r,e)}function c(e,n){Ev(t,r,e,n)}null!=a&&(n=t.getDimensionIndex(a));for(var l=t.getStore();null!=(r=e.next());){var f=t.getRawDataItem(r);if(!f||!1!==f.visualMap)for(var d=null!=a?l.get(n,r):r,p=o(d),h=i[p],v=s[p],g=0,m=v.length;g<m;g++){var y=v[g];h[y]&&h[y].applyVisual(d,u,c)}}}}))})),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),r=[];t.eachComponent("visualMap",(function(t){if(t.isTargetSeries(e)){var i=t.getVisualMeta(x.bind(UU,null,e,t))||{stops:[],outerColors:[]},o=t.getDataDimensionIndex(n);o>=0&&(i.dimension=o,r.push(i))}})),e.getData().setVisual("visualMeta",r)}}];function UU(e,t,n,r){for(var i=t.targetVisuals[r],o=eT.prepareVisualTypes(i),a={color:kv(e.getData(),"color")},s=0,u=o.length;s<u;s++){var c=o[s],l=i["opacity"===c?"__alphaForOpacity":c];l&&l.applyVisual(n,f,d)}return a.color;function f(e){return a[e]}function d(e,t){a[e]=t}}var zU=x.each;function VU(e){var t=e&&e.visualMap;x.isArray(t)||(t=t?[t]:[]),zU(t,(function(e){if(e){HU(e,"splitList")&&!HU(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&x.isArray(t)&&zU(t,(function(e){x.isObject(e)&&(HU(e,"start")&&!HU(e,"min")&&(e.min=e.start),HU(e,"end")&&!HU(e,"max")&&(e.max=e.end))}))}}))}function HU(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var WU=!1;function qU(e){WU||(WU=!0,e.registerSubTypeDefaulter("visualMap",(function(e){return e.categories||(e.pieces?e.pieces.length>0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"})),e.registerAction(NU,FU),Object(x.each)(BU,(function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)})),e.registerPreprocessor(VU))}function GU(e){e.registerComponentModel(SU),e.registerComponentView(LU),qU(e)}var YU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return y(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],KU[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual((function(e,t){"categories"===r?(e.mappingMethod="category",e.categories=x.clone(i)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=x.map(this._pieceList,(function(e){return e=x.clone(e),"inRange"!==t&&(e.visual=null),e})))}))},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=eT.listVisualTypes(),i=this.isCategory();function o(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}x.each(t.pieces,(function(e){x.each(r,(function(t){e.hasOwnProperty(t)&&(n[t]=1)}))})),x.each(n,(function(e,n){var r=!1;x.each(this.stateList,(function(e){r=r||o(t,e,n)||o(t.target,e,n)}),this),!r&&x.each(this.stateList,(function(e){(t[e]||(t[e]={}))[n]=pU.get(n,"inRange"===e?"active":"inactive",i)}))}),this),e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,x.each(r,(function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)}),this),"single"===n.selectedMode){var o=!1;x.each(r,(function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(o?i[n]=!1:o=!0)}),this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return"categories"===this._mode?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=x.clone(e)},t.prototype.getValueState=function(e){var t=eT.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries((function(r){var i=[],o=r.getData();o.each(this.getDataDimensionIndex(o),(function(t,r){eT.findPieceIndex(t,n)===e&&i.push(r)}),this),t.push({seriesId:r.id,dataIndex:i})}),this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var t=[],n=["",""],r=this,i=this._pieceList.slice();if(i.length){var o=i[0].interval[0];o!==-1/0&&i.unshift({interval:[-1/0,o]}),(o=i[i.length-1].interval[1])!==1/0&&i.push({interval:[o,1/0]})}else i.push({interval:[-1/0,1/0]});var a=-1/0;return x.each(i,(function(e){var t=e.interval;t&&(t[0]>a&&s([a,t[0]],"outOfRange"),s(t.slice()),a=t[1])}),this),{stops:t,outerColors:n}}function s(i,o){var a=r.getRepresentValue({interval:i});o||(o=r.getValueState(a));var s=e(a,o);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}},t.type="visualMap.piecewise",t.defaultOption=ku(xU.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(xU),KU={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var o=(r[1]-r[0])/i;+o.toFixed(n)!==o&&n<5;)n++;t.precision=n,o=+o.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var a=0,s=r[0];a<i;s+=o,a++){var u=a===i-1?r[1]:s+o;e.push({interval:[s,u],close:[1,1]})}t.maxOpen&&e.push({interval:[r[1],1/0],close:[0,0]}),Br(e),x.each(e,(function(e,t){e.index=t,e.text=this.formatValueText(e.interval)}),this)},categories:function(e){var t=this.option;x.each(t.categories,(function(t){e.push({text:this.formatValueText(t,!0),value:t})}),this),$U(t,e)},pieces:function(e){var t=this.option;x.each(t.pieces,(function(t,n){x.isObject(t)||(t={value:t});var r={text:"",index:n};if(null!=t.label&&(r.text=t.label),t.hasOwnProperty("value")){var i=r.value=t.value;r.interval=[i,i],r.close=[1,1]}else{for(var o=r.interval=[],a=r.close=[0,0],s=[1,0,1],u=[-1/0,1/0],c=[],l=0;l<2;l++){for(var f=[["gte","gt","min"],["lte","lt","max"]][l],d=0;d<3&&null==o[l];d++)o[l]=t[f[d]],a[l]=s[d],c[l]=2===d;null==o[l]&&(o[l]=u[l])}c[0]&&o[1]===1/0&&(a[0]=0),c[1]&&o[0]===-1/0&&(a[1]=0),o[0]===o[1]&&a[0]&&a[1]&&(r.value=o[0])}r.visual=eT.retrieveVisuals(t),e.push(r)}),this),$U(t,e),Br(e),x.each(e,(function(e){var t=e.close,n=[["<","≤"][t[1]],[">","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,n)}),this)}};function $U(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}var XU=YU,QU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return y(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),r=t.textStyleModel,i=r.getFont(),o=r.getTextColor(),a=this._getItemAlign(),s=t.itemSize,u=this._getViewData(),c=u.endsText,l=x.retrieve(t.get("showLabel",!0),!c);c&&this._renderEndsText(e,c[0],s,l,a),x.each(u.viewPieceList,(function(r){var u=r.piece,c=new ur;c.onclick=x.bind(this._onItemClick,this,u),this._enableHoverLink(c,r.indexInModelPieceList);var f=t.getRepresentValue(u);if(this._createItemSymbol(c,f,[0,0,s[0],s[1]]),l){var d=this.visualMapModel.getValueState(f);c.add(new Ma({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:u.text,verticalAlign:"middle",align:a,font:i,fill:o,opacity:"outOfRange"===d?.5:1}}))}e.add(c)}),this),c&&this._renderEndsText(e,c[1],s,l,a),Oc(t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on("mouseover",(function(){return r("highlight")})).on("mouseout",(function(){return r("downplay")}));var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:jU(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return EU(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},t.prototype._renderEndsText=function(e,t,n,r,i){if(t){var o=new ur,a=this.visualMapModel.textStyleModel;o.add(new Ma({style:Zs(a,{x:r?"right"===i?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:r?i:"center",text:t})})),e.add(o)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=x.map(e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),n=e.get("text"),r=e.get("orient"),i=e.get("inverse");return("horizontal"===r?i:!i)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n){e.add(Vv(this.getControllerVisual(t,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(t,"color")))},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=n.selectedMode;if(r){var i=x.clone(n.selected),o=t.getSelectedMapKey(e);"single"===r||!0===r?(i[o]=!0,x.each(i,(function(e,t){i[t]=t===o}))):i[o]=!i[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},t.type="visualMap.piecewise",t}(OU);function ZU(e){e.registerComponentModel(XU),e.registerComponentView(QU),qU(e)}var JU={label:{enabled:!0},decal:{show:!1}},ez=oi(),tz={};function nz(e,t){var n=e.getModel("aria");if(n.get("enabled")){var r=x.clone(JU);x.merge(r.label,e.getLocaleModel().get("aria"),!1),x.merge(n.option,r,!1),function(){if(n.getModel("decal").get("show")){var t=x.createHashMap();e.eachSeries((function(e){if(!e.isColorBySeries()){var n=t.get(e.type);n||(n={},t.set(e.type,n)),ez(e).scope=n}})),e.eachRawSeries((function(t){if(!e.isSeriesFiltered(t))if(x.isFunction(t.enableAriaDecal))t.enableAriaDecal();else{var n=t.getData();if(t.isColorBySeries()){var r=rl(t.ecModel,t.name,tz,e.getSeriesCount()),i=n.getVisual("decal");n.setVisual("decal",c(i,r))}else{var o=t.getRawData(),a={},s=ez(t).scope;n.each((function(e){var t=n.getRawIndex(e);a[t]=e}));var u=o.count();o.each((function(e){var r=a[e],i=o.getName(e)||e+"",l=rl(t.ecModel,i,s,u),f=n.getItemVisual(r,"decal");n.setItemVisual(r,"decal",c(f,l))}))}}function c(e,t){var n=e?x.extend(x.extend({},t),e):t;return n.dirty=!0,n}}))}}(),function(){var r=e.getLocaleModel().get("aria"),o=n.getModel("label");if(o.option=x.defaults(o.option,r),!o.get("enabled"))return;var a=t.getZr().dom;if(o.get("description"))return void a.setAttribute("aria-label",o.get("description"));var s,u=e.getSeriesCount(),c=o.get(["data","maxCount"])||10,l=o.get(["series","maxCount"])||10,f=Math.min(u,l);if(u<1)return;var d=function(){var t=e.get("title");t&&t.length&&(t=t[0]);return t&&t.text}();if(d){var p=o.get(["general","withTitle"]);s=i(p,{title:d})}else s=o.get(["general","withoutTitle"]);var h=[],v=u>1?o.get(["series","multiple","prefix"]):o.get(["series","single","prefix"]);s+=i(v,{seriesCount:u}),e.eachSeries((function(t,n){if(n<f){var r=void 0,a=t.get("name")?"withName":"withoutName";r=i(r=u>1?o.get(["series","multiple",a]):o.get(["series","single",a]),{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:(b=t.subType,e.getLocaleModel().get(["series","typeNames"])[b]||"自定义图")});var s=t.getData();if(s.count()>c)r+=i(o.get(["data","partialData"]),{displayCnt:c});else r+=o.get(["data","allData"]);for(var l=o.get(["data","separator","middle"]),d=o.get(["data","separator","end"]),p=[],v=0;v<s.count();v++)if(v<c){var g=s.getName(v),m=s.getValues(v),y=o.get(["data",g?"withName":"withoutName"]);p.push(i(y,{name:g,value:m.join(l)}))}r+=p.join(l)+d,h.push(r)}var b}));var g=o.getModel(["series","multiple","separator"]),m=g.get("middle"),y=g.get("end");s+=h.join(m)+y,a.setAttribute("aria-label",s)}()}function i(e,t){if(!x.isString(e))return e;var n=e;return x.each(t,(function(e,t){n=n.replace(new RegExp("\\{\\s*"+t+"\\s*\\}","g"),e)})),n}}function rz(e){if(e&&e.aria){var t=e.aria;null!=t.show&&(t.enabled=t.show),t.label=t.label||{},x.each(["description","general","series","data"],(function(e){null!=t[e]&&(t.label[e]=t[e])}))}}function iz(e){return(iz="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)}var oz={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},az=function(){function e(e){if(null==(this._condVal=Object(x.isString)(e)?new RegExp(e):Object(x.isRegExp)(e)?e:null)){0,cl("")}}return e.prototype.evaluate=function(e){var t=iz(e);return Object(x.isString)(t)?this._condVal.test(e):!!Object(x.isNumber)(t)&&this._condVal.test(e+"")},e}(),sz=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),uz=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},e}(),cz=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},e}(),lz=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),fz=function(){function e(){}return e.prototype.evaluate=function(){for(var e=!!this.valueParser,t=(0,this.getValue)(this.valueGetterParam),n=e?this.valueParser(t):null,r=0;r<this.subCondList.length;r++)if(!this.subCondList[r].evaluate(e?n:t))return!1;return!0},e}();function dz(e,t){if(!0===e||!1===e){var n=new sz;return n.value=e,n}return hz(e)||cl(""),e.and?pz("and",e,t):e.or?pz("or",e,t):e.not?function(e,t){var n=e.not;0;hz(n)||cl("");var r=new lz;r.child=dz(n,t),r.child||cl("");return r}(e,t):function(e,t){for(var n=t.prepareGetValue(e),r=[],i=Object(x.keys)(e),o=e.parser,a=o?kf(o):null,s=0;s<i.length;s++){var u=i[s];if("parser"!==u&&!t.valueGetterAttrMap.get(u)){var c=Object(x.hasOwn)(oz,u)?oz[u]:u,l=e[u],f=a?a(l):l,d=Af(c,f)||"reg"===c&&new az(f);d||cl(""),r.push(d)}}r.length||cl("");var p=new fz;return p.valueGetterParam=n,p.valueParser=a,p.getValue=t.getValue,p.subCondList=r,p}(e,t)}function pz(e,t,n){var r=t[e];Object(x.isArray)(r)||cl(""),r.length||cl("");var i="and"===e?new uz:new cz;return i.children=Object(x.map)(r,(function(e){return dz(e,n)})),i.children.length||cl(""),i}function hz(e){return Object(x.isObject)(e)&&!Object(x.isArrayLike)(e)}var vz=function(){function e(e,t){this._cond=dz(e,t)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();var gz={type:"echarts:filter",transform:function(e){for(var t,n=e.upstream,r=function(e,t){return new vz(e,t)}(e.config,{valueGetterAttrMap:Object(x.createHashMap)({dimension:!0}),prepareGetValue:function(e){var t=e.dimension;Object(x.hasOwn)(e,"dimension")||cl("");var r=n.getDimensionInfo(t);return r||cl(""),{dimIdx:r.index}},getValue:function(e){return n.retrieveValueFromItem(t,e.dimIdx)}}),i=[],o=0,a=n.count();o<a;o++)t=n.getRawDataItem(o),r.evaluate()&&i.push(t);return{data:i}}};var mz={type:"echarts:sort",transform:function(e){var t=e.upstream,n=e.config,r=Yr(n);r.length||cl("");var i=[];Object(x.each)(r,(function(e){var n=e.dimension,r=e.order,o=e.parser,a=e.incomparable;if(null==n&&cl(""),"asc"!==r&&"desc"!==r&&cl(""),a&&"min"!==a&&"max"!==a){0,cl("")}if("asc"!==r&&"desc"!==r){0,cl("")}var s=t.getDimensionInfo(n);s||cl("");var u=o?kf(o):null;o&&!u&&cl(""),i.push({dimIdx:s.index,parser:u,comparator:new Tf(r,a)})}));var o=t.sourceFormat;o!==Bc&&o!==Uc&&cl("");for(var a=[],s=0,u=t.count();s<u;s++)a.push(t.getRawDataItem(s));return a.sort((function(e,n){for(var r=0;r<i.length;r++){var o=i[r],a=t.retrieveValueFromItem(e,o.dimIdx),s=t.retrieveValueFromItem(n,o.dimIdx);o.parser&&(a=o.parser(a),s=o.parser(s));var u=o.comparator.evaluate(a,s);if(0!==u)return u}return 0})),{data:a}}};var yz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return y(t,e),t.prototype.init=function(t,n,r){e.prototype.init.call(this,t,n,r),this._sourceManager=new $f(this),Xf(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),Xf(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:Wc},t}(Ic),bz=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataset",t}return y(t,e),t.type="dataset",t}(Td);var xz=Ro.CMD;function wz(e,t){return Math.abs(e-t)<1e-5}function _z(e){var t,n,r,i,o,a=e.data,s=e.len(),u=[],c=0,l=0,f=0,d=0;function p(e,n){t&&t.length>2&&u.push(t),t=[e,n]}function h(e,n,r,i){wz(e,r)&&wz(n,i)||t.push(e,n,r,i,r,i)}function v(e,n,r,i,o,a){var s=Math.abs(n-e),u=4*Math.tan(s/4)/3,c=n<e?-1:1,l=Math.cos(e),f=Math.sin(e),d=Math.cos(n),p=Math.sin(n),h=l*o+r,v=f*a+i,g=d*o+r,m=p*a+i,y=o*u*c,b=a*u*c;t.push(h-y*f,v+b*l,g+y*p,m-b*d,g,m)}for(var g=0;g<s;){var m=a[g++],y=1===g;switch(y&&(f=c=a[g],d=l=a[g+1],m!==xz.L&&m!==xz.C&&m!==xz.Q||(t=[f,d])),m){case xz.M:c=f=a[g++],l=d=a[g++],p(f,d);break;case xz.L:h(c,l,n=a[g++],r=a[g++]),c=n,l=r;break;case xz.C:t.push(a[g++],a[g++],a[g++],a[g++],c=a[g++],l=a[g++]);break;case xz.Q:n=a[g++],r=a[g++],i=a[g++],o=a[g++],t.push(c+2/3*(n-c),l+2/3*(r-l),i+2/3*(n-i),o+2/3*(r-o),i,o),c=i,l=o;break;case xz.A:var b=a[g++],x=a[g++],w=a[g++],_=a[g++],S=a[g++],O=a[g++]+S;g+=1;var k=!a[g++];n=Math.cos(S)*w+b,r=Math.sin(S)*_+x,y?p(f=n,d=r):h(c,l,n,r),c=Math.cos(O)*w+b,l=Math.sin(O)*_+x;for(var E=(k?-1:1)*Math.PI/2,j=S;k?j>O:j<O;j+=E){v(j,k?Math.max(j+E,O):Math.min(j+E,O),b,x,w,_)}break;case xz.R:f=c=a[g++],d=l=a[g++],n=f+a[g++],r=d+a[g++],p(n,d),h(n,d,n,r),h(n,r,f,r),h(f,r,f,d),h(f,d,n,d);break;case xz.Z:t&&h(c,l,f,d),c=f,l=d}}return t&&t.length>2&&u.push(t),u}function Sz(e,t,n,r,i,o,a,s,u,c){if(wz(e,n)&&wz(t,r)&&wz(i,a)&&wz(o,s))u.push(a,s);else{var l=2/c,f=l*l,d=a-e,p=s-t,h=Math.sqrt(d*d+p*p);d/=h,p/=h;var v=n-e,g=r-t,m=i-a,y=o-s,b=v*v+g*g,x=m*m+y*y;if(b<f&&x<f)u.push(a,s);else{var w=d*v+p*g,_=-d*m-p*y;if(b-w*w<f&&w>=0&&x-_*_<f&&_>=0)u.push(a,s);else{var S=[],O=[];Tt(e,n,i,a,.5,S),Tt(t,r,o,s,.5,O),Sz(S[0],O[0],S[1],O[1],S[2],O[2],S[3],O[3],u,c),Sz(S[4],O[4],S[5],O[5],S[6],O[6],S[7],O[7],u,c)}}}}function Oz(e,t,n){var r=e[t],i=e[1-t],o=Math.abs(r/i),a=Math.ceil(Math.sqrt(o*n)),s=Math.floor(n/a);0===s&&(s=1,a=n);for(var u=[],c=0;c<a;c++)u.push(s);var l=n-a*s;if(l>0)for(c=0;c<l;c++)u[c%a]+=1;return u}function kz(e,t,n){for(var r=e.r0,i=e.r,o=e.startAngle,a=e.endAngle,s=Math.abs(a-o),u=s*i,c=i-r,l=u>Math.abs(c),f=Oz([u,c],l?0:1,t),d=(l?s:c)/f.length,p=0;p<f.length;p++)for(var h=(l?c:s)/f[p],v=0;v<f[p];v++){var g={};l?(g.startAngle=o+d*p,g.endAngle=o+d*(p+1),g.r0=r+h*v,g.r=r+h*(v+1)):(g.startAngle=o+h*v,g.endAngle=o+h*(v+1),g.r0=r+d*p,g.r=r+d*(p+1)),g.clockwise=e.clockwise,g.cx=e.cx,g.cy=e.cy,n.push(g)}}function Ez(e,t,n,r){return e*r-n*t}function jz(e,t,n,r,i,o,a,s){var u=n-e,c=r-t,l=a-i,f=s-o,d=Ez(l,f,u,c);if(Math.abs(d)<1e-6)return null;var p=Ez(e-i,t-o,l,f)/d;return p<0||p>1?null:new Ce(p*u+e,p*c+t)}function Tz(e,t,n){var r=new Ce;Ce.sub(r,n,t),r.normalize();var i=new Ce;return Ce.sub(i,e,t),i.dot(r)}function Cz(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function Az(e){var t=e.points,n=[],r=[];uo(t,n,r);var i=new Fe(n[0],n[1],r[0]-n[0],r[1]-n[1]),o=i.width,a=i.height,s=i.x,u=i.y,c=new Ce,l=new Ce;return o>a?(c.x=l.x=s+o/2,c.y=u,l.y=u+a):(c.y=l.y=u+a/2,c.x=s,l.x=s+o),function(e,t,n){for(var r=e.length,i=[],o=0;o<r;o++){var a=e[o],s=e[(o+1)%r],u=jz(a[0],a[1],s[0],s[1],t.x,t.y,n.x,n.y);u&&i.push({projPt:Tz(u,t,n),pt:u,idx:o})}if(i.length<2)return[{points:e},{points:e}];i.sort((function(e,t){return e.projPt-t.projPt}));var c=i[0],l=i[i.length-1];if(l.idx<c.idx){var f=c;c=l,l=f}var d=[c.pt.x,c.pt.y],p=[l.pt.x,l.pt.y],h=[d],v=[p];for(o=c.idx+1;o<=l.idx;o++)Cz(h,e[o].slice());for(Cz(h,p),Cz(h,d),o=l.idx+1;o<=c.idx+r;o++)Cz(v,e[o%r].slice());return Cz(v,d),Cz(v,p),[{points:h},{points:v}]}(t,c,l)}function Pz(e,t,n,r){if(1===n)r.push(t);else{var i=Math.floor(n/2),o=e(t);Pz(e,o[0],i,r),Pz(e,o[1],n-i,r)}return r}function Mz(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function Iz(e,t){var n,r=[],i=e.shape;switch(e.type){case"rect":!function(e,t,n){for(var r=e.width,i=e.height,o=r>i,a=Oz([r,i],o?0:1,t),s=o?"width":"height",u=o?"height":"width",c=o?"x":"y",l=o?"y":"x",f=e[s]/a.length,d=0;d<a.length;d++)for(var p=e[u]/a[d],h=0;h<a[d];h++){var v={};v[c]=d*f,v[l]=h*p,v[s]=f,v[u]=p,v.x+=e.x,v.y+=e.y,n.push(v)}}(i,t,r),n=ga;break;case"sector":kz(i,t,r),n=mp;break;case"circle":kz({r0:0,r:i.r,startAngle:0,endAngle:2*Math.PI,cx:i.cx,cy:i.cy},t,r),n=mp;break;default:var o=e.getComputedTransform(),a=o?Math.sqrt(Math.max(o[0]*o[0]+o[1]*o[1],o[2]*o[2]+o[3]*o[3])):1,s=Object(x.map)(function(e,t){var n=_z(e),r=[];t=t||1;for(var i=0;i<n.length;i++){var o=n[i],a=[],s=o[0],u=o[1];a.push(s,u);for(var c=2;c<o.length;){var l=o[c++],f=o[c++],d=o[c++],p=o[c++],h=o[c++],v=o[c++];Sz(s,u,l,f,d,p,h,v,a,t),s=h,u=v}r.push(a)}return r}(e.getUpdatedPathProxy(),a),(function(e){return function(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}(e)})),u=s.length;if(0===u)Pz(Az,{points:s[0]},t,r);else if(u===t)for(var c=0;c<u;c++)r.push({points:s[c]});else{var l=0,f=Object(x.map)(s,(function(e){var t=[],n=[];uo(e,t,n);var r=(n[1]-t[1])*(n[0]-t[0]);return l+=r,{poly:e,area:r}}));f.sort((function(e,t){return t.area-e.area}));var d=t;for(c=0;c<u;c++){var p=f[c];if(d<=0)break;var h=c===u-1?d:Math.ceil(p.area/l*t);h<0||(Pz(Az,{points:p.poly},h,r),d-=h)}}n=Op}if(!n)return function(e,t){for(var n=[],r=0;r<t;r++)n.push($d(e));return n}(e,t);var v=[];for(c=0;c<r.length;c++){var g=new n;g.setShape(r[c]),Mz(e,g),v.push(g)}return v}function Rz(e,t){var n=e.length,r=t.length;if(n===r)return[e,t];for(var i=[],o=[],a=n<r?e:t,s=Math.min(n,r),u=Math.abs(r-n)/6,c=(s-2)/6,l=Math.ceil(u/c)+1,f=[a[0],a[1]],d=u,p=2;p<s;){var h=a[p-2],v=a[p-1],g=a[p++],m=a[p++],y=a[p++],b=a[p++],x=a[p++],w=a[p++];if(d<=0)f.push(g,m,y,b,x,w);else{for(var _=Math.min(d,l-1)+1,S=1;S<=_;S++){var O=S/_;Tt(h,g,y,x,O,i),Tt(v,m,b,w,O,o),h=i[3],v=o[3],f.push(i[1],o[1],i[2],o[2],h,v),g=i[5],m=o[5],y=i[6],b=o[6]}d-=_-1}}return a===e?[f,t]:[e,f]}function Dz(e,t){for(var n=e.length,r=e[n-2],i=e[n-1],o=[],a=0;a<t.length;)o[a++]=r,o[a++]=i;return o}function Lz(e){for(var t=0,n=0,r=0,i=e.length,o=0,a=i-2;o<i;a=o,o+=2){var s=e[a],u=e[a+1],c=e[o],l=e[o+1],f=s*l-c*u;t+=f,n+=(s+c)*f,r+=(u+l)*f}return 0===t?[e[0]||0,e[1]||0]:[n/t/3,r/t/3,t]}function Nz(e,t,n,r){for(var i=(e.length-2)/6,o=1/0,a=0,s=e.length,u=s-2,c=0;c<i;c++){for(var l=6*c,f=0,d=0;d<s;d+=2){var p=0===d?l:(l+d-2)%u+2,h=e[p]-n[0],v=e[p+1]-n[1],g=t[d]-r[0]-h,m=t[d+1]-r[1]-v;f+=g*g+m*m}f<o&&(o=f,a=c)}return a}function Fz(e){for(var t=[],n=e.length,r=0;r<n;r+=2)t[r]=e[n-r-2],t[r+1]=e[n-r-1];return t}function Bz(e){return e.__isCombineMorphing}var Uz="__mOriginal_";function zz(e,t,n){var r=Uz+t,i=e[r]||e[t];e[r]||(e[r]=e[t]);var o=n.replace,a=n.after,s=n.before;e[t]=function(){var e,t=arguments;return s&&s.apply(this,t),e=o?o.apply(this,t):i.apply(this,t),a&&a.apply(this,t),e}}function Vz(e,t){var n=Uz+t;e[n]&&(e[t]=e[n],e[n]=null)}function Hz(e,t){for(var n=0;n<e.length;n++)for(var r=e[n],i=0;i<r.length;){var o=r[i],a=r[i+1];r[i++]=t[0]*o+t[2]*a+t[4],r[i++]=t[1]*o+t[3]*a+t[5]}}function Wz(e,t){var n=e.getUpdatedPathProxy(),r=t.getUpdatedPathProxy(),i=function(e,t){for(var n,r,i,o=[],a=[],s=0;s<Math.max(e.length,t.length);s++){var u=e[s],c=t[s],l=void 0,f=void 0;u?c?(r=l=(n=Rz(u,c))[0],i=f=n[1]):(f=Dz(i||u,u),l=u):(l=Dz(r||c,c),f=c),o.push(l),a.push(f)}return[o,a]}(_z(n),_z(r)),o=i[0],a=i[1],s=e.getComputedTransform(),u=t.getComputedTransform();s&&Hz(o,s),u&&Hz(a,u),zz(t,"updateTransform",{replace:function(){this.transform=null}}),t.transform=null;var c=function(e,t,n,r){for(var i,o=[],a=0;a<e.length;a++){var s=e[a],u=t[a],c=Lz(s),l=Lz(u);null==i&&(i=c[2]<0!=l[2]<0);var f=[],d=[],p=0,h=1/0,v=[],g=s.length;i&&(s=Fz(s));for(var m=6*Nz(s,u,c,l),y=g-2,b=0;b<y;b+=2){var x=(m+b)%y+2;f[b+2]=s[x]-c[0],f[b+3]=s[x+1]-c[1]}if(f[0]=s[m]-c[0],f[1]=s[m+1]-c[1],n>0)for(var w=r/n,_=-r/2;_<=r/2;_+=w){var S=Math.sin(_),O=Math.cos(_),k=0;for(b=0;b<s.length;b+=2){var E=f[b],j=f[b+1],T=u[b]-l[0],C=u[b+1]-l[1],A=T*O-C*S,P=T*S+C*O;v[b]=A,v[b+1]=P;var M=A-E,I=P-j;k+=M*M+I*I}if(k<h){h=k,p=_;for(var R=0;R<v.length;R++)d[R]=v[R]}}else for(var D=0;D<g;D+=2)d[D]=u[D]-l[0],d[D+1]=u[D+1]-l[1];o.push({from:f,to:d,fromCp:c,toCp:l,rotation:-p})}return o}(o,a,10,Math.PI),l=[];zz(t,"buildPath",{replace:function(e){for(var n=t.__morphT,r=1-n,i=[],o=0;o<c.length;o++){var a=c[o],s=a.from,u=a.to,f=a.rotation*n,d=a.fromCp,p=a.toCp,h=Math.sin(f),v=Math.cos(f);W(i,d,p,n);for(var g=0;g<s.length;g+=2){var m=s[g],y=s[g+1],b=m*r+(S=u[g])*n,x=y*r+(O=u[g+1])*n;l[g]=b*v-x*h+i[0],l[g+1]=b*h+x*v+i[1]}var w=l[0],_=l[1];e.moveTo(w,_);for(g=2;g<s.length;){var S=l[g++],O=l[g++],k=l[g++],E=l[g++],j=l[g++],T=l[g++];w===S&&_===O&&k===j&&E===T?e.lineTo(j,T):e.bezierCurveTo(S,O,k,E,j,T),w=j,_=T}}}})}function qz(e,t,n){if(!e||!t)return t;var r=n.done,i=n.during;return Wz(e,t),t.__morphT=0,t.animateTo({__morphT:1},Object(x.defaults)({during:function(e){t.dirtyShape(),i&&i(e)},done:function(){Vz(t,"buildPath"),Vz(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape(),r&&r()}},n)),t}function Gz(e,t,n,r,i,o){e=i===n?0:Math.round(32767*(e-n)/(i-n)),t=o===r?0:Math.round(32767*(t-r)/(o-r));for(var a,s=0,u=32768;u>0;u/=2){var c=0,l=0;(e&u)>0&&(c=1),(t&u)>0&&(l=1),s+=u*u*(3*c^l),0===l&&(1===c&&(e=u-1-e,t=u-1-t),a=e,e=t,t=a)}return s}function Yz(e){var t=1/0,n=1/0,r=-1/0,i=-1/0,o=Object(x.map)(e,(function(e){var o=e.getBoundingRect(),a=e.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),u=o.y+o.height/2+(a?a[5]:0);return t=Math.min(s,t),n=Math.min(u,n),r=Math.max(s,r),i=Math.max(u,i),[s,u]}));return Object(x.map)(o,(function(o,a){return{cp:o,z:Gz(o[0],o[1],t,n,r,i),path:e[a]}})).sort((function(e,t){return e.z-t.z})).map((function(e){return e.path}))}function Kz(e){return Iz(e.path,e.count)}function $z(e){return Object(x.isArray)(e[0])}function Xz(e,t){for(var n=[],r=e.length,i=0;i<r;i++)n.push({one:e[i],many:[]});for(i=0;i<t.length;i++){var o=t[i].length,a=void 0;for(a=0;a<o;a++)n[a%r].many.push(t[i][a])}var s=0;for(i=r-1;i>=0;i--)if(!n[i].many.length){var u=n[s].many;if(u.length<=1){if(!s)return n;s=0}o=u.length;var c=Math.ceil(o/2);n[i].many=u.slice(c,o),n[s].many=u.slice(0,c),s++}return n}var Qz={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),r=0;r<e.count;r++){var i=$d(e.path);i.setStyle("opacity",n),t.push(i)}return t},split:null};function Zz(e,t,n,r,i,o){if(e.length&&t.length){var a=Fs("update",r,i);if(a&&a.duration>0){var s,u,c=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},a);$z(e)&&(s=e,u=t),$z(t)&&(s=t,u=e);for(var f=s?s===e:e.length>t.length,d=s?Xz(u,s):Xz(f?t:e,[f?e:t]),p=0,h=0;h<d.length;h++)p+=d[h].many.length;var v=0;for(h=0;h<d.length;h++)g(d[h],f,v,p),v+=d[h].many.length}}function g(e,t,r,i,a){var s=e.many,u=e.one;if(1!==s.length||a)for(var f=Object(x.defaults)({dividePath:Qz[n],individualDelay:c&&function(e,t,n,o){return c(e+r,i)}},l),d=t?function(e,t,n){var r=[];!function e(t){for(var n=0;n<t.length;n++){var i=t[n];Bz(i)?e(i.childrenRef()):i instanceof ta&&r.push(i)}}(e);var i=r.length;if(!i)return{fromIndividuals:[],toIndividuals:[],count:0};var o=(n.dividePath||Kz)({path:t,count:i});if(o.length!==i)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0};r=Yz(r),o=Yz(o);for(var a=n.done,s=n.during,u=n.individualDelay,c=new Un,l=0;l<i;l++){var f=r[l],d=o[l];d.parent=t,d.copyTransform(c),u||Wz(f,d)}function p(e){for(var t=0;t<o.length;t++)o[t].addSelfToZr(e)}function h(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,Vz(t,"addSelfToZr"),Vz(t,"removeSelfFromZr")}t.__isCombineMorphing=!0,t.childrenRef=function(){return o},zz(t,"addSelfToZr",{after:function(e){p(e)}}),zz(t,"removeSelfFromZr",{after:function(e){for(var t=0;t<o.length;t++)o[t].removeSelfFromZr(e)}});var v=o.length;if(u){var g=v,m=function(){0===--g&&(h(),a&&a())};for(l=0;l<v;l++){var y=u?Object(x.defaults)({delay:(n.delay||0)+u(l,v,r[l],o[l]),done:m},n):n;qz(r[l],o[l],y)}}else t.__morphT=0,t.animateTo({__morphT:1},Object(x.defaults)({during:function(e){for(var n=0;n<v;n++){var r=o[n];r.__morphT=t.__morphT,r.dirtyShape()}s&&s(e)},done:function(){h();for(var t=0;t<e.length;t++)Vz(e[t],"updateTransform");a&&a()}},n));return t.__zr&&p(t.__zr),{fromIndividuals:r,toIndividuals:o,count:v}}(s,u,f):function(e,t,n){var r=t.length,i=[],o=n.dividePath||Kz;if(Bz(e)){!function e(t){for(var n=0;n<t.length;n++){var r=t[n];Bz(r)?e(r.childrenRef()):r instanceof ta&&i.push(r)}}(e.childrenRef());var a=i.length;if(a<r)for(var s=0,u=a;u<r;u++)i.push($d(i[s++%a]));i.length=r}else{i=o({path:e,count:r});var c=e.getComputedTransform();for(u=0;u<i.length;u++)i[u].setLocalTransform(c);if(i.length!==r)return console.error("Invalid morphing: unmatched splitted path"),{fromIndividuals:[],toIndividuals:[],count:0}}i=Yz(i),t=Yz(t);var l=n.individualDelay;for(u=0;u<r;u++){var f=l?Object(x.defaults)({delay:(n.delay||0)+l(u,r,i[u],t[u])},n):n;qz(i[u],t[u],f)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}(u,s,f),p=d.fromIndividuals,h=d.toIndividuals,v=p.length,m=0;m<v;m++){y=c?Object(x.defaults)({delay:c(m,v)},l):l;o(p[m],h[m],t?s[m]:e.one,t?e.one:s[m],y)}else{var y,b=t?s[0]:u,w=t?u:s[0];if(Bz(b))g({many:[b],one:w},!0,r,i,!0);else qz(b,w,y=c?Object(x.defaults)({delay:c(r,i)},l):l),o(b,w,b,w,y)}}}function Jz(e){if(!e)return[];if(Object(x.isArray)(e)){for(var t=[],n=0;n<e.length;n++)t.push(Jz(e[n]));return t}var r=[];return e.traverse((function(e){e instanceof ta&&!e.disableMorphing&&!e.invisible&&!e.ignore&&r.push(e)})),r}var eV=1e4,tV=oi();function nV(e){var t=[];return Object(x.each)(e,(function(e){var n=e.data;if(!(n.count()>eV))for(var r=n.getIndices(),i=function(e){for(var t=e.dimensions,n=0;n<t.length;n++){var r=e.getDimensionInfo(t[n]);if(r&&0===r.otherDims.itemGroupId)return t[n]}}(n),o=0;o<r.length;o++)t.push({data:n,dim:e.dim||i,divide:e.divide,dataIndex:o})})),t}function rV(e,t,n){e.traverse((function(e){e instanceof ta&&zs(e,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})}))}function iV(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function oV(e){e.stopAnimation(),e.isGroup&&e.traverse((function(e){e.stopAnimation()}))}function aV(e,t,n){var r=Fs("update",n,t);r&&e.traverse((function(e){if(e instanceof Ji){var t=function(e){return Ns(e).oldStyle}(e);t&&e.animateFrom({style:t},r)}}))}function sV(e,t,n){var r=nV(e),i=nV(t);function o(e,t,n,r,i){(n||e)&&t.animateFrom({style:n&&n!==e?Object(x.extend)(Object(x.extend)({},n.style),e.style):e.style},i)}function a(e){for(var t=0;t<e.length;t++)if(e[t].dim)return e[t].dim}var s=a(r),u=a(i),c=!1;function l(e,t){return function(n){var r=n.data,i=n.dataIndex;if(t)return r.getId(i);var o=r.hostModel&&r.hostModel.get("dataGroupId"),a=e?s||u:u||s,c=a&&r.getDimensionInfo(a),l=c&&c.ordinalMeta;if(c){var f=r.get(c.name,i);return l&&l.categories[f]||f+""}var d=r.getRawDataItem(i);return d&&d.groupId?d.groupId+"":o||r.getId(i)}}var f=function(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++){var i=e[r],o=t[r];if(i.data.getId(i.dataIndex)!==o.data.getId(o.dataIndex))return!1}return!0}(r,i),d={};if(!f)for(var p=0;p<i.length;p++){var h=i[p],v=h.data.getItemGraphicEl(h.dataIndex);v&&(d[v.id]=!0)}function g(e,t){var n=r[t],a=i[e],s=a.data.hostModel,u=n.data.getItemGraphicEl(n.dataIndex),l=a.data.getItemGraphicEl(a.dataIndex);u!==l?u&&d[u.id]||l&&(oV(l),u?(oV(u),iV(u),c=!0,Zz(Jz(u),Jz(l),a.divide,s,e,o)):rV(l,s,e)):l&&aV(l,a.dataIndex,s)}new Xm(r,i,l(!0,f),l(!1,f),null,"multiple").update(g).updateManyToOne((function(e,t){var n=i[e],a=n.data,s=a.hostModel,u=a.getItemGraphicEl(n.dataIndex),l=Object(x.filter)(Object(x.map)(t,(function(e){return r[e].data.getItemGraphicEl(r[e].dataIndex)})),(function(e){return e&&e!==u&&!d[e.id]}));u&&(oV(u),l.length?(Object(x.each)(l,(function(e){oV(e),iV(e)})),c=!0,Zz(Jz(l),Jz(u),n.divide,s,e,o)):rV(u,s,n.dataIndex))})).updateOneToMany((function(e,t){var n=r[t],a=n.data.getItemGraphicEl(n.dataIndex);if(!a||!d[a.id]){var s=Object(x.filter)(Object(x.map)(e,(function(e){return i[e].data.getItemGraphicEl(i[e].dataIndex)})),(function(e){return e&&e!==a})),u=i[e[0]].data.hostModel;s.length&&(Object(x.each)(s,(function(e){return oV(e)})),a?(oV(a),iV(a),c=!0,Zz(Jz(a),Jz(s),n.divide,u,e[0],o)):Object(x.each)(s,(function(t){return rV(t,u,e[0])})))}})).updateManyToMany((function(e,t){new Xm(t,e,(function(e){return r[e].data.getId(r[e].dataIndex)}),(function(e){return i[e].data.getId(i[e].dataIndex)})).update((function(n,r){g(e[n],t[r])})).execute()})).execute(),c&&Object(x.each)(t,(function(e){var t=e.data.hostModel,r=t&&n.getViewOfSeriesModel(t),i=Fs("update",t,0);r&&t.isAnimationEnabled()&&i&&i.duration>0&&r.group.traverse((function(e){e instanceof ta&&!e.animators.length&&e.animateFrom({style:{opacity:0}},i)}))}))}function uV(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function cV(e){return Object(x.isArray)(e)?e.sort().join(","):e}function lV(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function fV(e,t){for(var n=0;n<e.length;n++){if(null!=t.seriesIndex&&t.seriesIndex===e[n].seriesIndex||null!=t.seriesId&&t.seriesId===e[n].id)return n}}Ym([function(e){e.registerPainter("canvas",dw)}]),Ym([function(e){e.registerPainter("svg",w_)}]),Ym([function(e){e.registerChartView(tS),e.registerSeriesModel(__),e.registerLayout(nS("line",!0)),e.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,oS("line"))},function(e){e.registerChartView(PS),e.registerSeriesModel(uS),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,x.curry(ib,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,ob("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,oS("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},(function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)}))}))},function(e){e.registerChartView(qS),e.registerSeriesModel(KS),jv("pie",e.registerAction),e.registerLayout(Object(x.curry)(LS,"pie")),e.registerProcessor(NS("pie")),e.registerProcessor({seriesType:"pie",reset:function(e,t){var n=e.getData();n.filterSelf((function(e){var t=n.mapDimension("value"),r=n.get(t,e);return!(Object(x.isNumber)(r)&&!isNaN(r)&&r<0)}))}})},function(e){Ym(XO),e.registerSeriesModel($S),e.registerChartView(JS),e.registerLayout(nS("scatter"))},function(e){Ym(lk),e.registerChartView(tk),e.registerSeriesModel(nk),e.registerLayout(QO),e.registerProcessor(NS("radar")),e.registerPreprocessor(ek)},function(e){Ym(LE),e.registerChartView(mE),e.registerSeriesModel(yE),e.registerLayout(xE),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,bE),jv("map",e.registerAction)},function(e){e.registerChartView(ej),e.registerSeriesModel(gj),e.registerLayout(yj),e.registerVisual(bj),function(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=e.dataIndex,r=t.getData().tree.getNodeByDataIndex(n);r.isExpand=!r.isExpand}))})),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t,n){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var r=IE(t.coordinateSystem,e,void 0,n);t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom)}))}))}(e)},function(e){e.registerSeriesModel(_j),e.registerChartView(Fj),e.registerVisual(rT),e.registerLayout(vT),function(e){for(var t=0;t<xj.length;t++)e.registerAction({type:xj[t],update:"updateView"},x.noop);e.registerAction({type:"treemapRootToNode",update:"updateView"},(function(e,t){t.eachComponent({mainType:"series",subType:"treemap",query:e},(function(t,n){var r=dj(e,["treemapZoomToNode","treemapRootToNode"],t);if(r){var i=t.getViewRoot();i&&(e.direction=hj(i,r.node)?"rollUp":"drillDown"),t.resetViewRoot(r.node)}}))}))}(e)},function(e){e.registerChartView(hC),e.registerSeriesModel(_C),e.registerProcessor(bT),e.registerVisual(xT),e.registerVisual(_T),e.registerLayout(IT),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,zT),e.registerLayout(HT),e.registerCoordinateSystem("graphView",{dimensions:SE.dimensions,create:WT}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},x.noop),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},x.noop),e.registerAction(SC,(function(e,t,n){t.eachComponent({mainType:"series",query:e},(function(t){var r=IE(t.coordinateSystem,e,void 0,n);t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom)}))}))},function(e){e.registerChartView(jC),e.registerSeriesModel(TC)},function(e){e.registerChartView(PC),e.registerSeriesModel(MC),e.registerLayout(IC),e.registerProcessor(NS("funnel"))},function(e){Ym(fP),e.registerChartView(BC),e.registerSeriesModel(zC),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,HC)},function(e){e.registerChartView(hP),e.registerSeriesModel(vP),e.registerLayout(gP),e.registerVisual(TP),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},(function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])}))}))},function(e){e.registerSeriesModel(PP),e.registerChartView(FP),e.registerVisual(BP),e.registerLayout(zP),e.registerTransform(VP)},function(e){e.registerChartView(tM),e.registerSeriesModel(rM),e.registerPreprocessor(iM),e.registerVisual(cM),e.registerLayout(fM)},function(e){e.registerChartView(hM),e.registerSeriesModel(vM),e.registerLayout(nS("effectScatter"))},function(e){e.registerChartView(SM),e.registerSeriesModel(jM),e.registerLayout(_M),e.registerVisual(CM)},function(e){e.registerChartView(MM),e.registerSeriesModel(IM)},function(e){e.registerChartView(eI),e.registerSeriesModel(tI),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Object(x.curry)(ib,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,ob("pictorialBar"))},function(e){e.registerChartView(nI),e.registerSeriesModel(rI),e.registerLayout(iI),e.registerProcessor(NS("themeRiver"))},function(e){e.registerChartView(dI),e.registerSeriesModel(pI),e.registerLayout(Object(x.curry)(vI,"sunburst")),e.registerProcessor(Object(x.curry)(NS,"sunburst")),e.registerVisual(gI),function(e){e.registerAction({type:cI,update:"updateView"},(function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},(function(t,n){var r=dj(e,[cI],t);if(r){var i=t.getViewRoot();i&&(e.direction=hj(i,r.node)?"rollUp":"drillDown"),t.resetViewRoot(r.node)}}))})),e.registerAction({type:lI,update:"none"},(function(e,t,n){e=Object(x.extend)({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},(function(t){var n=dj(e,[lI],t);n&&(e.dataIndex=n.node.dataIndex)})),n.dispatchAction(Object(x.extend)(e,{type:"highlight"}))})),e.registerAction({type:fI,update:"updateView"},(function(e,t,n){e=Object(x.extend)({},e),n.dispatchAction(Object(x.extend)(e,{type:"downplay"}))}))}(e)},function(e){e.registerChartView(aR),e.registerSeriesModel(xI)}]),Ym((function(e){Ym(XO),Ym(sD)})),Ym((function(e){Ym(sD),FO.registerAxisPointerClass("PolarAxisPointer",lD),e.registerCoordinateSystem("polar",kD),e.registerComponentModel(fD),e.registerComponentView(HD),sO(e,"angle",pD,zD),sO(e,"radius",hD,VD),e.registerComponentView(MD),e.registerComponentView(ND),e.registerLayout(Object(x.curry)(UD,"bar"))})),Ym(LE),Ym((function(e){Ym(sD),FO.registerAxisPointerClass("SingleAxisPointer",cL),e.registerComponentView(lL),e.registerComponentView($D),e.registerComponentModel(QD),sO(e,"single",QD,QD.defaultOption),e.registerCoordinateSystem("single",nL)})),Ym(fP),Ym((function(e){e.registerComponentModel(dL),e.registerComponentView(pL),e.registerCoordinateSystem("calendar",vL)})),Ym((function(e){e.registerComponentModel(xL),e.registerComponentView(SL),e.registerPreprocessor((function(e){var t=e.graphic;Object(x.isArray)(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])}))})),Ym((function(e){e.registerComponentModel(XL),e.registerComponentView(ZL),KL("saveAsImage",JL),KL("magicType",rN),KL("dataView",fN),KL("dataZoom",NN),KL("restore",gN),Ym(qL)})),Ym((function(e){Ym(sD),e.registerComponentModel(FN),e.registerComponentView(iF),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},x.noop),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},x.noop)})),Ym(sD),Ym((function(e){e.registerComponentView(SF),e.registerComponentModel(kF),e.registerPreprocessor(aF),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,yF),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(e,t){t.eachComponent({mainType:"brush",query:e},(function(t){t.setAreas(e.areas)}))})),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},x.noop),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},x.noop),KL("brush",jF)})),Ym((function(e){e.registerComponentModel(TF),e.registerComponentView(CF)})),Ym((function(e){e.registerComponentModel(MF),e.registerComponentView(BF),e.registerSubTypeDefaulter("timeline",(function(){return"slider"})),function(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(e,t,n){var r=t.getComponent("timeline");return r&&null!=e.currentIndex&&(r.setCurrentIndex(e.currentIndex),!r.get("loop",!0)&&r.isIndexMax()&&r.getPlayState()&&(r.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:r.get("replaceMerge",!0)}),Object(x.defaults)({currentIndex:r.option.currentIndex},e)})),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(e,t){var n=t.getComponent("timeline");n&&null!=e.playState&&n.setPlayState(e.playState)}))}(e),e.registerPreprocessor(UF)})),Ym((function(e){e.registerComponentModel(KF),e.registerComponentView(aB),e.registerPreprocessor((function(e){HF(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})}))})),Ym((function(e){e.registerComponentModel(sB),e.registerComponentView(hB),e.registerPreprocessor((function(e){HF(e.series,"markLine")&&(e.markLine=e.markLine||{})}))})),Ym((function(e){e.registerComponentModel(vB),e.registerComponentView(SB),e.registerPreprocessor((function(e){HF(e.series,"markArea")&&(e.markArea=e.markArea||{})}))})),Ym((function(e){Ym(DB),Ym(VB)})),Ym((function(e){Ym(tU),Ym(lU)})),Ym(tU),Ym(lU),Ym((function(e){Ym(GU),Ym(ZU)})),Ym(GU),Ym(ZU),Ym((function(e){e.registerPreprocessor(rz),e.registerVisual(e.PRIORITY.VISUAL.ARIA,nz)})),Ym((function(e){e.registerTransform(gz),e.registerTransform(mz)})),Ym((function(e){e.registerComponentModel(yz),e.registerComponentView(bz)})),Ym((function(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){Object(x.each)(Yr(n.seriesTransition),(function(e){Object(x.each)(Yr(e.to),(function(e){for(var t=n.updatedSeries,r=0;r<t.length;r++)(null!=e.seriesIndex&&e.seriesIndex===t[r].seriesIndex||null!=e.seriesId&&e.seriesId===t[r].id)&&(t[r][md]=!0)}))}))})),e.registerUpdateLifecycle("series:transition",(function(e,t,n){var r=tV(t);if(r.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)Object(x.each)(Yr(i),(function(e){!function(e,t,n,r){var i=[],o=[];Object(x.each)(Yr(e.from),(function(e){var n=fV(t.oldSeries,e);n>=0&&i.push({data:t.oldData[n],divide:lV(t.oldData[n]),dim:e.dimension})})),Object(x.each)(Yr(e.to),(function(e){var t=fV(n.updatedSeries,e);if(t>=0){var r=n.updatedSeries[t].getData();o.push({data:r,divide:lV(r),dim:e.dimension})}})),i.length>0&&o.length>0&&sV(i,o,r)}(e,r,n,t)}));else{var o=function(e,t){var n=Object(x.createHashMap)(),r=Object(x.createHashMap)(),i=Object(x.createHashMap)();return Object(x.each)(e.oldSeries,(function(t,n){var o=e.oldData[n],a=uV(t),s=cV(a);r.set(s,o),Object(x.isArray)(a)&&Object(x.each)(a,(function(e){i.set(e,{data:o,key:s})}))})),Object(x.each)(t.updatedSeries,(function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.getData(),o=uV(e),a=cV(o),s=r.get(a);if(s)n.set(a,{oldSeries:[{divide:lV(s),data:s}],newSeries:[{divide:lV(t),data:t}]});else if(Object(x.isArray)(o)){0;var u=[];Object(x.each)(o,(function(e){var t=r.get(e);t&&u.push({divide:lV(t),data:t})})),u.length&&n.set(a,{oldSeries:u,newSeries:[{data:t,divide:lV(t)}]})}else{var c=i.get(o);if(c){var l=n.get(c.key);l||(l={oldSeries:[{data:c.data,divide:lV(c.data)}],newSeries:[]},n.set(c.key,l)),l.newSeries.push({data:t,divide:lV(t)})}}}})),n}(r,n);Object(x.each)(o.keys(),(function(e){var n=o.get(e);sV(n.oldSeries,n.newSeries,t)}))}Object(x.each)(n.updatedSeries,(function(e){e[md]&&(e[md]=!1)}))}for(var a=e.getSeries(),s=r.oldSeries=[],u=r.oldData=[],c=0;c<a.length;c++){var l=a[c].getData();l.count()<eV&&(s.push(a[c]),u.push(l))}}))})),Ym(uw);var dV=n(2),pV=n.n(dV),hV=n(626);function vV(e,t){var n={};return t.forEach((function(t){n[t]=e[t]})),n}function gV(e){return"function"==typeof e}var mV=n(744),yV=n.n(mV),bV=function(e){function t(t){var n=e.call(this,t)||this;return n.echarts=p,n}return v(t,e),t}(function(e){function t(t){var n=e.call(this,t)||this;return n.echarts=t.echarts,n.ele=null,n.isInitialResize=!0,n}return v(t,e),t.prototype.componentDidMount=function(){this.renderNewEcharts()},t.prototype.componentDidUpdate=function(e){var t=this.props.shouldSetOption;if(!gV(t)||t(e,this.props)){if(!yV()(e.theme,this.props.theme)||!yV()(e.opts,this.props.opts)||!yV()(e.onEvents,this.props.onEvents))return this.dispose(),void this.renderNewEcharts();var n=["option","notMerge","lazyUpdate","showLoading","loadingOption"];yV()(vV(this.props,n),vV(e,n))||this.updateEChartsOption(),yV()(e.style,this.props.style)&&yV()(e.className,this.props.className)||this.resize()}},t.prototype.componentWillUnmount=function(){this.dispose()},t.prototype.getEchartsInstance=function(){return this.echarts.getInstanceByDom(this.ele)||this.echarts.init(this.ele,this.props.theme,this.props.opts)},t.prototype.dispose=function(){if(this.ele){try{Object(hV.clear)(this.ele)}catch(e){console.warn(e)}this.echarts.dispose(this.ele)}},t.prototype.renderNewEcharts=function(){var e=this,t=this.props,n=t.onEvents,r=t.onChartReady,i=this.updateEChartsOption();this.bindEvents(i,n||{}),gV(r)&&r(i),this.ele&&Object(hV.bind)(this.ele,(function(){e.resize()}))},t.prototype.bindEvents=function(e,t){function n(t,n){"string"==typeof t&&gV(n)&&e.on(t,(function(t){n(t,e)}))}for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n(r,t[r])},t.prototype.updateEChartsOption=function(){var e=this.props,t=e.option,n=e.notMerge,r=void 0!==n&&n,i=e.lazyUpdate,o=void 0!==i&&i,a=e.showLoading,s=e.loadingOption,u=void 0===s?null:s,c=this.getEchartsInstance();return c.setOption(t,r,o),a?c.showLoading(u):c.hideLoading(),c},t.prototype.resize=function(){var e=this.getEchartsInstance();if(!this.isInitialResize)try{e.resize()}catch(e){console.warn(e)}this.isInitialResize=!1},t.prototype.render=function(){var e=this,t=this.props,n=t.style,r=t.className,i=void 0===r?"":r,o=g({height:300},n);return pV.a.createElement("div",{ref:function(t){e.ele=t},style:o,className:"echarts-for-react "+i})},t}(dV.PureComponent));t.a=bV},function(e,t,n){"use strict";var r=n(362),i=n(522),o=n(28);function a(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t=t||{})t.hasOwnProperty(n)&&(e[n]=t[n]);return e}var s=n(523),u=n(220),c=n(223),l=n(43),f=n(360),d=n(21);function p(e,t,n){Object(d.a)(2,arguments);var r=n||{},i=r.locale,a=i&&i.options&&i.options.weekStartsOn,s=null==a?0:Object(l.a)(a),u=null==r.weekStartsOn?s:Object(l.a)(r.weekStartsOn);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=Object(o.a)(e),f=Object(l.a)(t),p=((f%7+7)%7<u?7:0)+f-c.getUTCDay();return c.setUTCDate(c.getUTCDate()+p),c}var h=n(534);var v=n(533);var g=n(221),m=n(197),y=36e5,b=6e4,x=1e3,w={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},_=/^([+-])(\d{2})(\d{2})?|Z/,S=/^([+-])(\d{2})(\d{2})|Z/,O=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,k=/^([+-])(\d{2}):(\d{2})|Z/,E=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function j(e,t,n){var r=t.match(e);if(!r)return null;var i=parseInt(r[0],10);return{value:n?n(i):i,rest:t.slice(r[0].length)}}function T(e,t){var n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};var r="+"===n[1]?1:-1,i=n[2]?parseInt(n[2],10):0,o=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:r*(i*y+o*b+a*x),rest:t.slice(n[0].length)}}function C(e,t){return j(w.anyDigitsSigned,e,t)}function A(e,t,n){switch(e){case 1:return j(w.singleDigit,t,n);case 2:return j(w.twoDigits,t,n);case 3:return j(w.threeDigits,t,n);case 4:return j(w.fourDigits,t,n);default:return j(new RegExp("^\\d{1,"+e+"}"),t,n)}}function P(e,t,n){switch(e){case 1:return j(w.singleDigitSigned,t,n);case 2:return j(w.twoDigitsSigned,t,n);case 3:return j(w.threeDigitsSigned,t,n);case 4:return j(w.fourDigitsSigned,t,n);default:return j(new RegExp("^-?\\d{1,"+e+"}"),t,n)}}function M(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function I(e,t){var n,r=t>0,i=r?t:1-t;if(i<=50)n=e||100;else{var o=i+50;n=e+100*Math.floor(o/100)-(e>=o%100?100:0)}return r?n:1-n}var R=[31,28,31,30,31,30,31,31,30,31,30,31],D=[31,29,31,30,31,30,31,31,30,31,30,31];function L(e){return e%400==0||e%4==0&&e%100!=0}var N={G:{priority:140,parse:function(e,t,n,r){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});case"GGGG":default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}},set:function(e,t,n,r){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(e,t,n,r){var i=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return A(4,e,i);case"yo":return n.ordinalNumber(e,{unit:"year",valueCallback:i});default:return A(t.length,e,i)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,r){var i=e.getUTCFullYear();if(n.isTwoDigitYear){var o=I(n.year,i);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(e,t,n,r){var i=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return A(4,e,i);case"Yo":return n.ordinalNumber(e,{unit:"year",valueCallback:i});default:return A(t.length,e,i)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,r){var i=Object(f.a)(e,r);if(n.isTwoDigitYear){var o=I(n.year,i);return e.setUTCFullYear(o,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Object(m.a)(e,r)}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Object(m.a)(e,r)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(e,t,n,r){return P("R"===t?4:t.length,e)},set:function(e,t,n,r){var i=new Date(0);return i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0),Object(g.a)(i)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(e,t,n,r){return P("u"===t?4:t.length,e)},set:function(e,t,n,r){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(e,t,n,r){switch(t){case"Q":case"QQ":return A(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,r){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(e,t,n,r){switch(t){case"q":case"qq":return A(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,r){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(e,t,n,r){var i=function(e){return e-1};switch(t){case"M":return j(w.month,e,i);case"MM":return A(2,e,i);case"Mo":return n.ordinalNumber(e,{unit:"month",valueCallback:i});case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(e,t,n,r){var i=function(e){return e-1};switch(t){case"L":return j(w.month,e,i);case"LL":return A(2,e,i);case"Lo":return n.ordinalNumber(e,{unit:"month",valueCallback:i});case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(e,t,n,r){switch(t){case"w":return j(w.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return A(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return Object(m.a)(function(e,t,n){Object(d.a)(2,arguments);var r=Object(o.a)(e),i=Object(l.a)(t),a=Object(v.a)(r,n)-i;return r.setUTCDate(r.getUTCDate()-7*a),r}(e,n,r),r)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(e,t,n,r){switch(t){case"I":return j(w.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return A(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return Object(g.a)(function(e,t){Object(d.a)(2,arguments);var n=Object(o.a)(e),r=Object(l.a)(t),i=Object(h.a)(n)-r;return n.setUTCDate(n.getUTCDate()-7*i),n}(e,n,r),r)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,parse:function(e,t,n,r){switch(t){case"d":return j(w.date,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return A(t.length,e)}},validate:function(e,t,n){var r=L(e.getUTCFullYear()),i=e.getUTCMonth();return r?t>=1&&t<=D[i]:t>=1&&t<=R[i]},set:function(e,t,n,r){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,parse:function(e,t,n,r){switch(t){case"D":case"DD":return j(w.dayOfYear,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return A(t.length,e)}},validate:function(e,t,n){return L(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365},set:function(e,t,n,r){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(e,t,n,r){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=p(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return A(t.length,e,i);case"eo":return n.ordinalNumber(e,{unit:"day",valueCallback:i});case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=p(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return A(t.length,e,i);case"co":return n.ordinalNumber(e,{unit:"day",valueCallback:i});case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=p(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(e,t,n,r){var i=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return A(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return n.day(e,{width:"abbreviated",context:"formatting",valueCallback:i})||n.day(e,{width:"short",context:"formatting",valueCallback:i})||n.day(e,{width:"narrow",context:"formatting",valueCallback:i});case"iiiii":return n.day(e,{width:"narrow",context:"formatting",valueCallback:i});case"iiiiii":return n.day(e,{width:"short",context:"formatting",valueCallback:i})||n.day(e,{width:"narrow",context:"formatting",valueCallback:i});case"iiii":default:return n.day(e,{width:"wide",context:"formatting",valueCallback:i})||n.day(e,{width:"abbreviated",context:"formatting",valueCallback:i})||n.day(e,{width:"short",context:"formatting",valueCallback:i})||n.day(e,{width:"narrow",context:"formatting",valueCallback:i})}},validate:function(e,t,n){return t>=1&&t<=7},set:function(e,t,n,r){return(e=function(e,t){Object(d.a)(2,arguments);var n=Object(l.a)(t);n%7==0&&(n-=7);var r=Object(o.a)(e),i=((n%7+7)%7<1?7:0)+n-r.getUTCDay();return r.setUTCDate(r.getUTCDate()+i),r}(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:{priority:80,parse:function(e,t,n,r){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(M(n),0,0,0),e},incompatibleTokens:["b","B","H","K","k","t","T"]},b:{priority:80,parse:function(e,t,n,r){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(M(n),0,0,0),e},incompatibleTokens:["a","B","H","K","k","t","T"]},B:{priority:80,parse:function(e,t,n,r){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(M(n),0,0,0),e},incompatibleTokens:["a","b","t","T"]},h:{priority:70,parse:function(e,t,n,r){switch(t){case"h":return j(w.hour12h,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return A(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=12},set:function(e,t,n,r){var i=e.getUTCHours()>=12;return i&&n<12?e.setUTCHours(n+12,0,0,0):i||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(e,t,n,r){switch(t){case"H":return j(w.hour23h,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return A(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=23},set:function(e,t,n,r){return e.setUTCHours(n,0,0,0),e},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(e,t,n,r){switch(t){case"K":return j(w.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return A(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e},incompatibleTokens:["a","b","h","H","k","t","T"]},k:{priority:70,parse:function(e,t,n,r){switch(t){case"k":return j(w.hour24h,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return A(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=24},set:function(e,t,n,r){var i=n<=24?n%24:n;return e.setUTCHours(i,0,0,0),e},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(e,t,n,r){switch(t){case"m":return j(w.minute,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return A(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,r){return e.setUTCMinutes(n,0,0),e},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(e,t,n,r){switch(t){case"s":return j(w.second,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return A(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,r){return e.setUTCSeconds(n,0),e},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(e,t,n,r){return A(t.length,e,(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))},set:function(e,t,n,r){return e.setUTCMilliseconds(n),e},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(e,t,n,r){switch(t){case"X":return T(_,e);case"XX":return T(S,e);case"XXXX":return T(O,e);case"XXXXX":return T(E,e);case"XXX":default:return T(k,e)}},set:function(e,t,n,r){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(e,t,n,r){switch(t){case"x":return T(_,e);case"xx":return T(S,e);case"xxxx":return T(O,e);case"xxxxx":return T(E,e);case"xxx":default:return T(k,e)}},set:function(e,t,n,r){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(e,t,n,r){return C(e)},set:function(e,t,n,r){return[new Date(1e3*n),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(e,t,n,r){return C(e)},set:function(e,t,n,r){return[new Date(n),{timestampIsSet:!0}]},incompatibleTokens:"*"}};n.d(t,"a",(function(){return q}));var F=10,B=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,U=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,z=/^'([^]*?)'?$/,V=/''/g,H=/\S/,W=/[a-zA-Z]/;function q(e,t,n,f){Object(d.a)(3,arguments);var p=String(e),h=String(t),v=f||{},g=v.locale||r.a;if(!g.match)throw new RangeError("locale must contain match property");var m=g.options&&g.options.firstWeekContainsDate,y=null==m?1:Object(l.a)(m),b=null==v.firstWeekContainsDate?y:Object(l.a)(v.firstWeekContainsDate);if(!(b>=1&&b<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var x=g.options&&g.options.weekStartsOn,w=null==x?0:Object(l.a)(x),_=null==v.weekStartsOn?w:Object(l.a)(v.weekStartsOn);if(!(_>=0&&_<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===h)return""===p?Object(o.a)(n):new Date(NaN);var S,O={firstWeekContainsDate:b,weekStartsOn:_,locale:g},k=[{priority:F,set:G,index:0}],E=h.match(U).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,s.a[t])(e,g.formatLong,O):e})).join("").match(B),j=[];for(S=0;S<E.length;S++){var T=E[S];!v.useAdditionalWeekYearTokens&&Object(c.b)(T)&&Object(c.c)(T),!v.useAdditionalDayOfYearTokens&&Object(c.a)(T)&&Object(c.c)(T);var C=T[0],A=N[C];if(A){var P=A.incompatibleTokens;if(Array.isArray(P)){for(var M=void 0,I=0;I<j.length;I++){var R=j[I].token;if(-1!==P.indexOf(R)||R===C){M=j[I];break}}if(M)throw new RangeError("The format string mustn't contain `".concat(M.fullToken,"` and `").concat(T,"` at the same time"))}else if("*"===A.incompatibleTokens&&j.length)throw new RangeError("The format string mustn't contain `".concat(T,"` and any other token at the same time"));j.push({token:C,fullToken:T});var D=A.parse(p,T,g.match,O);if(!D)return new Date(NaN);k.push({priority:A.priority,set:A.set,validate:A.validate,value:D.value,index:k.length}),p=D.rest}else{if(C.match(W))throw new RangeError("Format string contains an unescaped latin alphabet character `"+C+"`");if("''"===T?T="'":"'"===C&&(T=T.match(z)[1].replace(V,"'")),0!==p.indexOf(T))return new Date(NaN);p=p.slice(T.length)}}if(p.length>0&&H.test(p))return new Date(NaN);var L=k.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return k.filter((function(t){return t.priority===e})).reverse()})).map((function(e){return e[0]})),q=Object(o.a)(n);if(isNaN(q))return new Date(NaN);var Y=Object(i.a)(q,Object(u.a)(q)),K={};for(S=0;S<L.length;S++){var $=L[S];if($.validate&&!$.validate(Y,$.value,O))return new Date(NaN);var X=$.set(Y,K,$.value,O);X[0]?(Y=X[0],a(K,X[1])):Y=X}return Y}function G(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}},function(e,t,n){"use strict";function r(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 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(e){return(o="function"==typeof Symbol&&"symbol"===i(Symbol.iterator)?function(e){return i(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":i(e)})(e)}function a(e){return(a="function"==typeof Symbol&&"symbol"===o(Symbol.iterator)?function(e){return o(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":o(e)})(e)}var s=[],u=s.forEach,c=s.slice;function l(e){return u.call(c.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e}function f(e,t){if(t&&"object"===a(t)){var n="",r=encodeURIComponent;for(var i in t)n+="&"+r(i)+"="+r(t[i]);if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e}function d(e,t,n,r,i){r&&"object"===a(r)&&(i||(r._t=new Date),r=f("",r).slice(1)),t.queryStringParams&&(e=f(e,t.queryStringParams));try{var o;(o=XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("MSXML2.XMLHTTP.3.0")).open(r?"POST":"GET",e,1),t.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!t.withCredentials,r&&o.setRequestHeader("Content-type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var s=t.customHeaders;if(s="function"==typeof s?s():s)for(var u in s)o.setRequestHeader(u,s[u]);o.onreadystatechange=function(){o.readyState>3&&n&&n(o.responseText,o)},o.send(r)}catch(e){console&&console.log(e)}}function p(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",allowMultiLoading:!1,parse:JSON.parse,parsePayload:function(e,t,n){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n||"")},crossDomain:!1,ajax:d}}var h=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.init(t,n),this.type="backend"}var t,n,i;return t=e,(n=[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.services=e,this.options=l(t,this.options||{},p())}},{key:"readMulti",value:function(e,t,n){var r=this.options.loadPath;"function"==typeof this.options.loadPath&&(r=this.options.loadPath(e,t));var i=this.services.interpolator.interpolate(r,{lng:e.join("+"),ns:t.join("+")});this.loadUrl(i,n)}},{key:"read",value:function(e,t,n){var r=this.options.loadPath;"function"==typeof this.options.loadPath&&(r=this.options.loadPath([e],[t]));var i=this.services.interpolator.interpolate(r,{lng:e,ns:t});this.loadUrl(i,n)}},{key:"loadUrl",value:function(e,t){var n=this;this.options.ajax(e,this.options,(function(r,i){if(i.status>=500&&i.status<600)return t("failed loading "+e,!0);if(i.status>=400&&i.status<500)return t("failed loading "+e,!1);var o,a;try{o=n.options.parse(r,e)}catch(t){a="failed parsing "+e+" to json"}if(a)return t(a,!1);t(null,o)}))}},{key:"create",value:function(e,t,n,r){var i=this;"string"==typeof e&&(e=[e]);var o=this.options.parsePayload(t,n,r);e.forEach((function(e){var n=i.services.interpolator.interpolate(i.options.addPath,{lng:e,ns:t});i.options.ajax(n,i.options,(function(e,t){}),o)}))}}])&&r(t.prototype,n),i&&r(t,i),e}();h.type="backend";t.a=h},function(e,t,n){"use strict";var r=n(359),i=n(362),o=n(522),a=n(28),s=n(71),u={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return Object(s.a)("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):Object(s.a)(n+1,2)},d:function(e,t){return Object(s.a)(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":case"aaa":return n.toUpperCase();case"aaaaa":return n[0];case"aaaa":default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return Object(s.a)(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Object(s.a)(e.getUTCHours(),t.length)},m:function(e,t){return Object(s.a)(e.getUTCMinutes(),t.length)},s:function(e,t){return Object(s.a)(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds(),i=Math.floor(r*Math.pow(10,n-3));return Object(s.a)(i,t.length)}},c=n(21),l=864e5;var f=n(534),d=n(524),p=n(533),h=n(360),v="midnight",g="noon",m="morning",y="afternoon",b="evening",x="night";function w(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var a=t||"";return n+String(i)+a+Object(s.a)(o,2)}function _(e,t){return e%60==0?(e>0?"-":"+")+Object(s.a)(Math.abs(e)/60,2):S(e,t)}function S(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e);return r+Object(s.a)(Math.floor(i/60),2)+n+Object(s.a)(i%60,2)}var O={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return u.y(e,t)},Y:function(e,t,n,r){var i=Object(h.a)(e,r),o=i>0?i:1-i;if("YY"===t){var a=o%100;return Object(s.a)(a,2)}return"Yo"===t?n.ordinalNumber(o,{unit:"year"}):Object(s.a)(o,t.length)},R:function(e,t){var n=Object(d.a)(e);return Object(s.a)(n,t.length)},u:function(e,t){var n=e.getUTCFullYear();return Object(s.a)(n,t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Object(s.a)(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Object(s.a)(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return u.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return Object(s.a)(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var i=Object(p.a)(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):Object(s.a)(i,t.length)},I:function(e,t,n){var r=Object(f.a)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):Object(s.a)(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):u.d(e,t)},D:function(e,t,n){var r=function(e){Object(c.a)(1,arguments);var t=Object(a.a)(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/l)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):Object(s.a)(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Object(s.a)(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Object(s.a)(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return Object(s.a)(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?g:0===i?v:i/12>=1?"pm":"am",t){case"b":case"bb":case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?b:i>=12?y:i>=4?m:x,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return u.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):u.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):Object(s.a)(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):Object(s.a)(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):u.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):u.s(e,t)},S:function(e,t){return u.S(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return _(i);case"XXXX":case"XX":return S(i);case"XXXXX":case"XXX":default:return S(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return _(i);case"xxxx":case"xx":return S(i);case"xxxxx":case"xxx":default:return S(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+w(i,":");case"OOOO":default:return"GMT"+S(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+w(i,":");case"zzzz":default:return"GMT"+S(i,":")}},t:function(e,t,n,r){var i=r._originalDate||e,o=Math.floor(i.getTime()/1e3);return Object(s.a)(o,t.length)},T:function(e,t,n,r){var i=(r._originalDate||e).getTime();return Object(s.a)(i,t.length)}},k=n(523),E=n(220),j=n(223),T=n(43);n.d(t,"a",(function(){return R}));var C=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,A=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,P=/^'([^]*?)'?$/,M=/''/g,I=/[a-zA-Z]/;function R(e,t,n){Object(c.a)(2,arguments);var s=String(t),u=n||{},l=u.locale||i.a,f=l.options&&l.options.firstWeekContainsDate,d=null==f?1:Object(T.a)(f),p=null==u.firstWeekContainsDate?d:Object(T.a)(u.firstWeekContainsDate);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=l.options&&l.options.weekStartsOn,v=null==h?0:Object(T.a)(h),g=null==u.weekStartsOn?v:Object(T.a)(u.weekStartsOn);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!l.localize)throw new RangeError("locale must contain localize property");if(!l.formatLong)throw new RangeError("locale must contain formatLong property");var m=Object(a.a)(e);if(!Object(r.a)(m))throw new RangeError("Invalid time value");var y=Object(E.a)(m),b=Object(o.a)(m,y),x={firstWeekContainsDate:p,weekStartsOn:g,locale:l,_originalDate:m};return s.match(A).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,k.a[t])(e,l.formatLong,x):e})).join("").match(C).map((function(e){if("''"===e)return"'";var t=e[0];if("'"===t)return e.match(P)[1].replace(M,"'");var n=O[t];if(n)return!u.useAdditionalWeekYearTokens&&Object(j.b)(e)&&Object(j.c)(e),!u.useAdditionalDayOfYearTokens&&Object(j.a)(e)&&Object(j.c)(e),n(b,e,l.localize,x);if(t.match(I))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return e})).join("")}},function(e,t,n){"use strict";var r,i=n(26),o=n(2),a=(n(52),n(20)),s={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:function(e){return"year"===e?"year view is open, switch to calendar view":"calendar view is open, switch to year view"},inputModeToggleButtonAriaLabel:function(e,t){return e?"text input view is open, go to ".concat(t," view"):"".concat(t," view is open, go to text input view")},start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerDefaultToolbarTitle:"Select date",dateTimePickerDefaultToolbarTitle:"Select date & time",timePickerDefaultToolbarTitle:"Select time",dateRangePickerDefaultToolbarTitle:"Select date range",clockLabelText:function(e,t,n){return"Select ".concat(e,". ").concat(null===t?"No time selected":"Selected time is ".concat(n.format(t,"fullTime")))},hoursClockNumberText:function(e){return"".concat(e," hours")},minutesClockNumberText:function(e){return"".concat(e," minutes")},secondsClockNumberText:function(e){return"".concat(e," seconds")},openDatePickerDialogue:function(e,t){return e&&t.isValid(t.date(e))?"Choose date, selected date is ".concat(t.format(t.date(e),"fullDate")):"Choose date"},openTimePickerDialogue:function(e,t){return e&&t.isValid(t.date(e))?"Choose time, selected time is ".concat(t.format(t.date(e),"fullTime")):"Choose time"},timeTableLabel:"pick time",dateTableLabel:"pick date"},u=s,c=(r=s,Object(i.a)({},r),n(5));n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return f}));var l=o.createContext(null);function f(e){var t=Object(a.a)({props:e,name:"MuiLocalizationProvider"}),n=t.children,r=t.dateAdapter,s=t.dateFormats,f=t.dateLibInstance,d=t.locale,p=t.adapterLocale,h=t.localeText;var v=o.useMemo((function(){return new r({locale:null!=p?p:d,formats:s,instance:f})}),[r,d,p,s,f]),g=o.useMemo((function(){return{minDate:v.date("1900-01-01T00:00:00.000"),maxDate:v.date("2099-12-31T00:00:00.000")}}),[v]),m=o.useMemo((function(){return{utils:v,defaultDates:g,localeText:Object(i.a)({},u,null!=h?h:{})}}),[g,v,h]);return Object(c.jsx)(l.Provider,{value:m,children:n})}},function(e,t,n){"use strict";function r(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)}}var i=[],o=i.forEach,a=i.slice;function s(e){return o.call(a.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e}var u,c=function(e,t,n,r){var i;if(n){var o=new Date;o.setTime(o.getTime()+60*n*1e3),i="; expires="+o.toGMTString()}else i="";r=r?"domain="+r+";":"",document.cookie=e+"="+t+i+";"+r+"path=/"},l=function(e){for(var t=e+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var i=n[r];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return i.substring(t.length,i.length)}return null},f={name:"cookie",lookup:function(e){var t;if(e.lookupCookie&&"undefined"!=typeof document){var n=l(e.lookupCookie);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&"undefined"!=typeof document&&c(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain)}},d={name:"querystring",lookup:function(e){var t;if("undefined"!=typeof window)for(var n=window.location.search.substring(1).split("&"),r=0;r<n.length;r++){var i=n[r].indexOf("=");if(i>0)n[r].substring(0,i)===e.lookupQuerystring&&(t=n[r].substring(i+1))}return t}};try{u="undefined"!==window&&null!==window.localStorage;window.localStorage.setItem("i18next.translate.boo","foo"),window.localStorage.removeItem("i18next.translate.boo")}catch(e){u=!1}var p={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&u){var n=window.localStorage.getItem(e.lookupLocalStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&u&&window.localStorage.setItem(t.lookupLocalStorage,e)}},h={name:"navigator",lookup:function(e){var t=[];if("undefined"!=typeof navigator){if(navigator.languages)for(var n=0;n<navigator.languages.length;n++)t.push(navigator.languages[n]);navigator.userLanguage&&t.push(navigator.userLanguage),navigator.language&&t.push(navigator.language)}return t.length>0?t:void 0}},v={name:"htmlTag",lookup:function(e){var t,n=e.htmlTag||("undefined"!=typeof document?document.documentElement:null);return n&&"function"==typeof n.getAttribute&&(t=n.getAttribute("lang")),t}},g={name:"path",lookup:function(e){var t;if("undefined"!=typeof window){var n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(n instanceof Array)if("number"==typeof e.lookupFromPathIndex){if("string"!=typeof n[e.lookupFromPathIndex])return;t=n[e.lookupFromPathIndex].replace("/","")}else t=n[0].replace("/","")}return t}},m={name:"subdomain",lookup:function(e){var t;if("undefined"!=typeof window){var n=window.location.href.match(/(?:http[s]*\:\/\/)*(.*?)\.(?=[^\/]*\..{2,5})/gi);n instanceof Array&&(t="number"==typeof e.lookupFromSubdomainIndex?n[e.lookupFromSubdomainIndex].replace("http://","").replace("https://","").replace(".",""):n[0].replace("http://","").replace("https://","").replace(".",""))}return t}};var y=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.type="languageDetector",this.detectors={},this.init(t,n)}var t,n,i;return t=e,(n=[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=s(t,this.options||{},{order:["querystring","cookie","localStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],checkWhitelist:!0}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(f),this.addDetector(d),this.addDetector(p),this.addDetector(h),this.addDetector(v),this.addDetector(g),this.addDetector(m)}},{key:"addDetector",value:function(e){this.detectors[e.name]=e}},{key:"detect",value:function(e){var t=this;e||(e=this.options.order);var n,r=[];if(e.forEach((function(e){if(t.detectors[e]){var n=t.detectors[e].lookup(t.options);n&&"string"==typeof n&&(n=[n]),n&&(r=r.concat(n))}})),r.forEach((function(e){if(!n){var r=t.services.languageUtils.formatLanguageCode(e);t.options.checkWhitelist&&!t.services.languageUtils.isWhitelisted(r)||(n=r)}})),!n){var i=this.i18nOptions.fallbackLng;"string"==typeof i&&(i=[i]),i||(i=[]),n="[object Array]"===Object.prototype.toString.apply(i)?i[0]:i[0]||i.default&&i.default[0]}return n}},{key:"cacheUserLanguage",value:function(e,t){var n=this;t||(t=this.options.caches),t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach((function(t){n.detectors[t]&&n.detectors[t].cacheUserLanguage(e,n.options)})))}}])&&r(t.prototype,n),i&&r(t,i),e}();y.type="languageDetector";t.a=y},function(e,t,n){"use strict";var r=n(6),i=n(16),o=n(2),a=(n(153),n(17)),s=n(158),u=n(1685),c=n(492),l=n(1550),f=n(15),d=n(76),p=n(20),h=n(138),v=n(152);function g(e){return Object(h.a)("MuiMenu",e)}Object(v.a)("MuiMenu",["root","paper","list"]);var m=n(5),y=["onEntering"],b=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],x={vertical:"top",horizontal:"right"},w={vertical:"top",horizontal:"left"},_=Object(f.a)(l.a,{shouldForwardProp:function(e){return Object(f.b)(e)||"classes"===e},name:"MuiMenu",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),S=Object(f.a)(c.a,{name:"MuiMenu",slot:"Paper",overridesResolver:function(e,t){return t.paper}})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),O=Object(f.a)(u.a,{name:"MuiMenu",slot:"List",overridesResolver:function(e,t){return t.list}})({outline:0}),k=o.forwardRef((function(e,t){var n=Object(p.a)({props:e,name:"MuiMenu"}),u=n.autoFocus,c=void 0===u||u,l=n.children,f=n.disableAutoFocusItem,h=void 0!==f&&f,v=n.MenuListProps,k=void 0===v?{}:v,E=n.onClose,j=n.open,T=n.PaperProps,C=void 0===T?{}:T,A=n.PopoverClasses,P=n.transitionDuration,M=void 0===P?"auto":P,I=n.TransitionProps,R=(void 0===I?{}:I).onEntering,D=n.variant,L=void 0===D?"selectedMenu":D,N=Object(i.a)(n.TransitionProps,y),F=Object(i.a)(n,b),B=Object(d.a)(),U="rtl"===B.direction,z=Object(r.a)({},n,{autoFocus:c,disableAutoFocusItem:h,MenuListProps:k,onEntering:R,PaperProps:C,transitionDuration:M,TransitionProps:N,variant:L}),V=function(e){var t=e.classes;return Object(s.a)({root:["root"],paper:["paper"],list:["list"]},g,t)}(z),H=c&&!h&&j,W=o.useRef(null),q=-1;return o.Children.map(l,(function(e,t){o.isValidElement(e)&&(e.props.disabled||("selectedMenu"===L&&e.props.selected?q=t:-1===q&&(q=t)))})),Object(m.jsx)(_,Object(r.a)({classes:A,onClose:E,anchorOrigin:{vertical:"bottom",horizontal:U?"right":"left"},transformOrigin:U?x:w,PaperProps:Object(r.a)({component:S},C,{classes:Object(r.a)({},C.classes,{root:V.paper})}),className:V.root,open:j,ref:t,transitionDuration:M,TransitionProps:Object(r.a)({onEntering:function(e,t){W.current&&W.current.adjustStyleForScrollbar(e,B),R&&R(e,t)}},N),ownerState:z},F,{children:Object(m.jsx)(O,Object(r.a)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),E&&E(e,"tabKeyDown"))},actions:W,autoFocus:c&&(-1===q||h),autoFocusItem:H,variant:L},k,{className:Object(a.default)(V.list,k.className),children:l}))}))}));t.a=k},function(e,t,n){"use strict";var r=n(55),i=n(102),o=n(238),a=n(454),s=n(456),u=n(455),c=["breakpoints","palette","spacing","shape"];t.a=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,l=e.palette,f=void 0===l?{}:l,d=e.spacing,p=e.shape,h=void 0===p?{}:p,v=Object(i.a)(e,c),g=Object(a.a)(n),m=Object(u.a)(d),y=Object(o.a)({breakpoints:g,direction:"ltr",components:{},palette:Object(r.a)({mode:"light"},f),spacing:m,shape:Object(r.a)({},s.a,h)},v),b=arguments.length,x=new Array(b>1?b-1:0),w=1;w<b;w++)x[w-1]=arguments[w];return y=x.reduce((function(e,t){return Object(o.a)(e,t)}),y)}},function(e,t,n){"use strict";var r,i=function(e){return e},o=(r=i,{configure:function(e){r=e},generate:function(e){return r(e)},reset:function(){r=i}});t.a=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(619),i=n(192);function o(e){var t=e.props,n=e.name,o=e.defaultTheme,a=Object(i.a)(o);return Object(r.a)({theme:a,name:n,props:t})}},function(e,t,n){"use strict";var r=n(6),i=(n(2),n(1555)),o=n(273),a=n(5);t.a=function(e){return Object(a.jsx)(i.a,Object(r.a)({},e,{defaultTheme:o.a}))}},function(e,t,n){"use strict";var r=n(6),i=n(16),o=n(2),a=n.n(o),s=n(17),u=n(158),c=n(15),l=n(20),f=n(62),d=n(134),p=n(261),h=n(489);function v(){return(v=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 g=n(490),m=(n(683),n(368));function y(e,t){var n=Object.create(null);return e&&o.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&Object(o.isValidElement)(e)?t(e):e}(e)})),n}function b(e,t,n){return null!=n[t]?n[t]:e.props[t]}function x(e,t,n){var r=y(e.children),i=function(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 u in t){if(i[u])for(r=0;r<i[u].length;r++){var c=i[u][r];s[i[u][r]]=n(c)}s[u]=n(u)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(i).forEach((function(a){var s=i[a];if(Object(o.isValidElement)(s)){var u=a in t,c=a in r,l=t[a],f=Object(o.isValidElement)(l)&&!l.props.in;!c||u&&!f?c||!u||f?c&&u&&Object(o.isValidElement)(l)&&(i[a]=Object(o.cloneElement)(s,{onExited:n.bind(null,s),in:l.props.in,exit:b(s,"exit",e),enter:b(s,"enter",e)})):i[a]=Object(o.cloneElement)(s,{in:!1}):i[a]=Object(o.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:b(s,"exit",e),enter:b(s,"enter",e)})}})),i}var w=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},_=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}Object(g.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,y(n.children,(function(e){return Object(o.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:b(e,"appear",n),enter:b(e,"enter",n),exit:b(e,"exit",n)})}))):x(e,i,a),firstRender:!1}},n.handleExited=function(e,t){var n=y(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=v({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Object(h.a)(e,["component","childFactory"]),i=this.state.contextValue,o=w(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?a.a.createElement(m.a.Provider,{value:i},o):a.a.createElement(m.a.Provider,{value:i},a.a.createElement(t,r,o))},t}(a.a.Component);_.propTypes={},_.defaultProps={component:"div",childFactory:function(e){return e}};var S=_,O=n(0),k=n(5);function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var T=function(e){var t=e.className,n=e.classes,r=e.pulsate,i=void 0!==r&&r,a=e.rippleX,u=e.rippleY,c=e.rippleSize,l=e.in,f=e.onExited,d=e.timeout,p=E(o.useState(!1),2),h=p[0],v=p[1],g=Object(s.default)(t,n.ripple,n.rippleVisible,i&&n.ripplePulsate),m={width:c,height:c,top:-c/2+u,left:-c/2+a},y=Object(s.default)(n.child,h&&n.childLeaving,i&&n.childPulsate);return l||h||v(!0),o.useEffect((function(){if(!l&&null!=f){var e=setTimeout(f,d);return function(){clearTimeout(e)}}}),[f,l,d]),Object(k.jsx)("span",{className:g,style:m,children:Object(k.jsx)("span",{className:y})})},C=n(138),A=n(152);var P,M,I,R,D=Object(A.a)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);function L(e){return function(e){if(Array.isArray(e))return B(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||F(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||F(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(e,t){if(e){if("string"==typeof e)return B(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(e,t):void 0}}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function U(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var z,V,H,W,q=["center","classes","className"],G=function(e){return e},Y=Object(O.d)(z||(z=G(P||(P=U(["\n 0% {\n transform: scale(0);\n opacity: 0.1;\n }\n\n 100% {\n transform: scale(1);\n opacity: 0.3;\n }\n"]))))),K=Object(O.d)(V||(V=G(M||(M=U(["\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n"]))))),$=Object(O.d)(H||(H=G(I||(I=U(["\n 0% {\n transform: scale(1);\n }\n\n 50% {\n transform: scale(0.92);\n }\n\n 100% {\n transform: scale(1);\n }\n"]))))),X=Object(c.a)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Q=Object(c.a)(T,{name:"MuiTouchRipple",slot:"Ripple"})(W||(W=G(R||(R=U(["\n opacity: 0;\n position: absolute;\n\n &."," {\n opacity: 0.3;\n transform: scale(1);\n animation-name: ",";\n animation-duration: ","ms;\n animation-timing-function: ",";\n }\n\n &."," {\n animation-duration: ","ms;\n }\n\n & ."," {\n opacity: 1;\n display: block;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: currentColor;\n }\n\n & ."," {\n opacity: 0;\n animation-name: ",";\n animation-duration: ","ms;\n animation-timing-function: ",";\n }\n\n & ."," {\n position: absolute;\n /* @noflip */\n left: 0px;\n top: 0;\n animation-name: ",";\n animation-duration: 2500ms;\n animation-timing-function: ",";\n animation-iteration-count: infinite;\n animation-delay: 200ms;\n }\n"])))),D.rippleVisible,Y,550,(function(e){return e.theme.transitions.easing.easeInOut}),D.ripplePulsate,(function(e){return e.theme.transitions.duration.shorter}),D.child,D.childLeaving,K,550,(function(e){return e.theme.transitions.easing.easeInOut}),D.childPulsate,$,(function(e){return e.theme.transitions.easing.easeInOut})),Z=o.forwardRef((function(e,t){var n=Object(l.a)({props:e,name:"MuiTouchRipple"}),a=n.center,u=void 0!==a&&a,c=n.classes,f=void 0===c?{}:c,d=n.className,p=Object(i.a)(n,q),h=N(o.useState([]),2),v=h[0],g=h[1],m=o.useRef(0),y=o.useRef(null);o.useEffect((function(){y.current&&(y.current(),y.current=null)}),[v]);var b=o.useRef(!1),x=o.useRef(null),w=o.useRef(null),_=o.useRef(null);o.useEffect((function(){return function(){clearTimeout(x.current)}}),[]);var O=o.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,i=e.rippleSize,o=e.cb;g((function(e){return[].concat(L(e),[Object(k.jsx)(Q,{classes:{ripple:Object(s.default)(f.ripple,D.ripple),rippleVisible:Object(s.default)(f.rippleVisible,D.rippleVisible),ripplePulsate:Object(s.default)(f.ripplePulsate,D.ripplePulsate),child:Object(s.default)(f.child,D.child),childLeaving:Object(s.default)(f.childLeaving,D.childLeaving),childPulsate:Object(s.default)(f.childPulsate,D.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},m.current)])})),m.current+=1,y.current=o}),[f]),E=o.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,i=void 0!==r&&r,o=t.center,a=void 0===o?u||t.pulsate:o,s=t.fakeElement,c=void 0!==s&&s;if("mousedown"===(null==e?void 0:e.type)&&b.current)b.current=!1;else{"touchstart"===(null==e?void 0:e.type)&&(b.current=!0);var l,f,d,p=c?null:_.current,h=p?p.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(a||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)l=Math.round(h.width/2),f=Math.round(h.height/2);else{var v=e.touches&&e.touches.length>0?e.touches[0]:e,g=v.clientX,m=v.clientY;l=Math.round(g-h.left),f=Math.round(m-h.top)}if(a)(d=Math.sqrt((2*Math.pow(h.width,2)+Math.pow(h.height,2))/3))%2==0&&(d+=1);else{var y=2*Math.max(Math.abs((p?p.clientWidth:0)-l),l)+2,S=2*Math.max(Math.abs((p?p.clientHeight:0)-f),f)+2;d=Math.sqrt(Math.pow(y,2)+Math.pow(S,2))}null!=e&&e.touches?null===w.current&&(w.current=function(){O({pulsate:i,rippleX:l,rippleY:f,rippleSize:d,cb:n})},x.current=setTimeout((function(){w.current&&(w.current(),w.current=null)}),80)):O({pulsate:i,rippleX:l,rippleY:f,rippleSize:d,cb:n})}}),[u,O]),j=o.useCallback((function(){E({},{pulsate:!0})}),[E]),T=o.useCallback((function(e,t){if(clearTimeout(x.current),"touchend"===(null==e?void 0:e.type)&&w.current)return w.current(),w.current=null,void(x.current=setTimeout((function(){T(e,t)})));w.current=null,g((function(e){return e.length>0?e.slice(1):e})),y.current=t}),[]);return o.useImperativeHandle(t,(function(){return{pulsate:j,start:E,stop:T}}),[j,E,T]),Object(k.jsx)(X,Object(r.a)({className:Object(s.default)(D.root,f.root,d),ref:_},p,{children:Object(k.jsx)(S,{component:null,exit:!0,children:v})}))}));function J(e){return Object(C.a)("MuiButtonBase",e)}var ee=Object(A.a)("MuiButtonBase",["root","disabled","focusVisible"]);function te(e){return(te="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 ne(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return re(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return re(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function re(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ie(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==te(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==te(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===te(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oe=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],ae=Object(c.a)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:function(e,t){return t.root}})(ie(ie({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"}},"&.".concat(ee.disabled),{pointerEvents:"none",cursor:"default"}),"@media print",{colorAdjust:"exact"})),se=o.forwardRef((function(e,t){var n=Object(l.a)({props:e,name:"MuiButtonBase"}),a=n.action,c=n.centerRipple,h=void 0!==c&&c,v=n.children,g=n.className,m=n.component,y=void 0===m?"button":m,b=n.disabled,x=void 0!==b&&b,w=n.disableRipple,_=void 0!==w&&w,S=n.disableTouchRipple,O=void 0!==S&&S,E=n.focusRipple,j=void 0!==E&&E,T=n.LinkComponent,C=void 0===T?"a":T,A=n.onBlur,P=n.onClick,M=n.onContextMenu,I=n.onDragLeave,R=n.onFocus,D=n.onFocusVisible,L=n.onKeyDown,N=n.onKeyUp,F=n.onMouseDown,B=n.onMouseLeave,U=n.onMouseUp,z=n.onTouchEnd,V=n.onTouchMove,H=n.onTouchStart,W=n.tabIndex,q=void 0===W?0:W,G=n.TouchRippleProps,Y=n.touchRippleRef,K=n.type,$=Object(i.a)(n,oe),X=o.useRef(null),Q=o.useRef(null),ee=Object(f.a)(Q,Y),te=Object(p.a)(),re=te.isFocusVisibleRef,ie=te.onFocus,se=te.onBlur,ue=te.ref,ce=ne(o.useState(!1),2),le=ce[0],fe=ce[1];x&&le&&fe(!1),o.useImperativeHandle(a,(function(){return{focusVisible:function(){fe(!0),X.current.focus()}}}),[]);var de=ne(o.useState(!1),2),pe=de[0],he=de[1];o.useEffect((function(){he(!0)}),[]);var ve=pe&&!_&&!x;function ge(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:O;return Object(d.a)((function(r){return t&&t(r),!n&&Q.current&&Q.current[e](r),!0}))}o.useEffect((function(){le&&j&&!_&&pe&&Q.current.pulsate()}),[_,j,le,pe]);var me=ge("start",F),ye=ge("stop",M),be=ge("stop",I),xe=ge("stop",U),we=ge("stop",(function(e){le&&e.preventDefault(),B&&B(e)})),_e=ge("start",H),Se=ge("stop",z),Oe=ge("stop",V),ke=ge("stop",(function(e){se(e),!1===re.current&&fe(!1),A&&A(e)}),!1),Ee=Object(d.a)((function(e){X.current||(X.current=e.currentTarget),ie(e),!0===re.current&&(fe(!0),D&&D(e)),R&&R(e)})),je=function(){var e=X.current;return y&&"button"!==y&&!("A"===e.tagName&&e.href)},Te=o.useRef(!1),Ce=Object(d.a)((function(e){j&&!Te.current&&le&&Q.current&&" "===e.key&&(Te.current=!0,Q.current.stop(e,(function(){Q.current.start(e)}))),e.target===e.currentTarget&&je()&&" "===e.key&&e.preventDefault(),L&&L(e),e.target===e.currentTarget&&je()&&"Enter"===e.key&&!x&&(e.preventDefault(),P&&P(e))})),Ae=Object(d.a)((function(e){j&&" "===e.key&&Q.current&&le&&!e.defaultPrevented&&(Te.current=!1,Q.current.stop(e,(function(){Q.current.pulsate(e)}))),N&&N(e),P&&e.target===e.currentTarget&&je()&&" "===e.key&&!e.defaultPrevented&&P(e)})),Pe=y;"button"===Pe&&($.href||$.to)&&(Pe=C);var Me={};"button"===Pe?(Me.type=void 0===K?"button":K,Me.disabled=x):($.href||$.to||(Me.role="button"),x&&(Me["aria-disabled"]=x));var Ie=Object(f.a)(ue,X),Re=Object(f.a)(t,Ie);var De=Object(r.a)({},n,{centerRipple:h,component:y,disabled:x,disableRipple:_,disableTouchRipple:O,focusRipple:j,tabIndex:q,focusVisible:le}),Le=function(e){var t=e.disabled,n=e.focusVisible,r=e.focusVisibleClassName,i=e.classes,o={root:["root",t&&"disabled",n&&"focusVisible"]},a=Object(u.a)(o,J,i);return n&&r&&(a.root+=" ".concat(r)),a}(De);return Object(k.jsxs)(ae,Object(r.a)({as:Pe,className:Object(s.default)(Le.root,g),ownerState:De,onBlur:ke,onClick:P,onContextMenu:ye,onFocus:Ee,onKeyDown:Ce,onKeyUp:Ae,onMouseDown:me,onMouseLeave:we,onMouseUp:xe,onDragLeave:be,onTouchEnd:Se,onTouchMove:Oe,onTouchStart:_e,ref:Re,tabIndex:x?-1:q,type:K},Me,$,{children:[v,ve?Object(k.jsx)(Z,Object(r.a)({ref:ee,center:h},G)):null]}))}));t.a=se},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(17),s=n(158),u=n(15),c=n(20),l=n(1559),f=n(138),d=n(152);function p(e){return Object(f.a)("MuiBackdrop",e)}Object(d.a)("MuiBackdrop",["root","invisible"]);var h=n(5),v=["children","component","components","componentsProps","className","invisible","open","transitionDuration","TransitionComponent"],g=Object(u.a)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.invisible&&t.invisible]}})((function(e){var t=e.ownerState;return Object(i.a)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},t.invisible&&{backgroundColor:"transparent"})})),m=o.forwardRef((function(e,t){var n,o,u=Object(c.a)({props:e,name:"MuiBackdrop"}),f=u.children,d=u.component,m=void 0===d?"div":d,y=u.components,b=void 0===y?{}:y,x=u.componentsProps,w=void 0===x?{}:x,_=u.className,S=u.invisible,O=void 0!==S&&S,k=u.open,E=u.transitionDuration,j=u.TransitionComponent,T=void 0===j?l.a:j,C=Object(r.a)(u,v),A=Object(i.a)({},u,{component:m,invisible:O}),P=function(e){var t=e.classes,n={root:["root",e.invisible&&"invisible"]};return Object(s.a)(n,p,t)}(A);return Object(h.jsx)(T,Object(i.a)({in:k,timeout:E},C,{children:Object(h.jsx)(g,{"aria-hidden":!0,as:null!=(n=b.Root)?n:m,className:Object(a.default)(P.root,_),ownerState:Object(i.a)({},A,null==(o=w.root)?void 0:o.ownerState),classes:P,ref:t,children:f})}))}));t.a=m},function(e,t,n){"use strict";var r=n(6),i=n(16),o=n(2),a=n(17),s=n(158),u=n(488),c=n(15),l=n(20),f=n(1683),d=n(1684),p=n(1673),h=n(1689),v=n(1688),g=n(1690),m=n(1662),y=n(138),b=n(152);function x(e){return Object(y.a)("MuiTextField",e)}Object(b.a)("MuiTextField",["root"]);var w=n(5),_=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],S={standard:f.a,filled:d.a,outlined:p.a},O=Object(c.a)(v.a,{name:"MuiTextField",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),k=o.forwardRef((function(e,t){var n=Object(l.a)({props:e,name:"MuiTextField"}),o=n.autoComplete,c=n.autoFocus,f=void 0!==c&&c,d=n.children,p=n.className,v=n.color,y=void 0===v?"primary":v,b=n.defaultValue,k=n.disabled,E=void 0!==k&&k,j=n.error,T=void 0!==j&&j,C=n.FormHelperTextProps,A=n.fullWidth,P=void 0!==A&&A,M=n.helperText,I=n.id,R=n.InputLabelProps,D=n.inputProps,L=n.InputProps,N=n.inputRef,F=n.label,B=n.maxRows,U=n.minRows,z=n.multiline,V=void 0!==z&&z,H=n.name,W=n.onBlur,q=n.onChange,G=n.onFocus,Y=n.placeholder,K=n.required,$=void 0!==K&&K,X=n.rows,Q=n.select,Z=void 0!==Q&&Q,J=n.SelectProps,ee=n.type,te=n.value,ne=n.variant,re=void 0===ne?"outlined":ne,ie=Object(i.a)(n,_),oe=Object(r.a)({},n,{autoFocus:f,color:y,disabled:E,error:T,fullWidth:P,multiline:V,required:$,select:Z,variant:re}),ae=function(e){var t=e.classes;return Object(s.a)({root:["root"]},x,t)}(oe);var se={};"outlined"===re&&(R&&void 0!==R.shrink&&(se.notched=R.shrink),se.label=F),Z&&(J&&J.native||(se.id=void 0),se["aria-describedby"]=void 0);var ue=Object(u.a)(I),ce=M&&ue?"".concat(ue,"-helper-text"):void 0,le=F&&ue?"".concat(ue,"-label"):void 0,fe=S[re],de=Object(w.jsx)(fe,Object(r.a)({"aria-describedby":ce,autoComplete:o,autoFocus:f,defaultValue:b,fullWidth:P,multiline:V,name:H,rows:X,maxRows:B,minRows:U,type:ee,value:te,id:ue,inputRef:N,onBlur:W,onChange:q,onFocus:G,placeholder:Y,inputProps:D},se,L));return Object(w.jsxs)(O,Object(r.a)({className:Object(a.default)(ae.root,p),disabled:E,error:T,fullWidth:P,ref:t,required:$,color:y,variant:re,ownerState:oe},ie,{children:[null!=F&&""!==F&&Object(w.jsx)(h.a,Object(r.a)({htmlFor:ue,id:le},R,{children:F})),Z?Object(w.jsx)(m.a,Object(r.a)({"aria-describedby":ce,id:ue,labelId:le,value:te,input:de},J,{children:d})):de,M&&Object(w.jsx)(g.a,Object(r.a)({id:ce},C,{children:M}))]}))}));t.a=k},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){n(957),n(1154),n(377),n(1156),n(671),n(1157),n(1158),n(1159),n(1160),n(1161),n(1162),n(1163),n(1164),n(1165),n(1166),e.exports=n(147)},function(e,t,n){n(958),n(961),n(962),n(963),n(964),n(965),n(966),n(967),n(968),n(969),n(970),n(971),n(972),n(973),n(974),n(975),n(976),n(977),n(978),n(979),n(980),n(981),n(982),n(983),n(984),n(985),n(986),n(987),n(988),n(989),n(990),n(991),n(992),n(993),n(994),n(995),n(996),n(997),n(998),n(999),n(1e3),n(1001),n(1002),n(1003),n(1004),n(1005),n(1006),n(1007),n(1008),n(1009),n(1010),n(1011),n(1012),n(1013),n(1014),n(1015),n(1016),n(1017),n(1018),n(1019),n(1020),n(1021),n(1022),n(1023),n(1024),n(1025),n(1026),n(1027),n(1028),n(1029),n(1030),n(1031),n(1032),n(1033),n(1034),n(1035),n(1036),n(1038),n(1039),n(1041),n(1042),n(1043),n(1044),n(1045),n(1046),n(1047),n(1049),n(1050),n(1051),n(1052),n(1053),n(1054),n(1055),n(1056),n(1057),n(1058),n(1059),n(1060),n(1061),n(564),n(1062),n(655),n(1063),n(656),n(1064),n(1065),n(1066),n(1067),n(1068),n(659),n(661),n(662),n(1069),n(1070),n(1071),n(1072),n(1073),n(1074),n(1075),n(1076),n(1077),n(1078),n(1079),n(1080),n(1081),n(1082),n(1083),n(1084),n(1085),n(1086),n(1087),n(1088),n(1089),n(1090),n(1091),n(1092),n(1093),n(1094),n(1095),n(1096),n(1097),n(1098),n(1099),n(1100),n(1101),n(1102),n(1103),n(1104),n(1105),n(1106),n(1107),n(1108),n(1109),n(1110),n(1111),n(1112),n(1113),n(1114),n(1115),n(1116),n(1117),n(1118),n(1119),n(1120),n(1121),n(1122),n(1123),n(1124),n(1125),n(1126),n(1127),n(1128),n(1129),n(1130),n(1131),n(1132),n(1133),n(1134),n(1135),n(1136),n(1137),n(1138),n(1139),n(1140),n(1141),n(1142),n(1143),n(1144),n(1145),n(1146),n(1147),n(1148),n(1149),n(1150),n(1151),n(1152),n(1153),e.exports=n(147)},function(e,t,n){"use strict";function r(e){return(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})(e)}var i=n(74),o=n(161),a=n(92),s=n(24),u=n(163),c=n(254).KEY,l=n(81),f=n(374),d=n(327),p=n(292),h=n(90),v=n(640),g=n(546),m=n(960),y=n(420),b=n(68),x=n(80),w=n(109),_=n(148),S=n(199),O=n(252),k=n(226),E=n(643),j=n(164),T=n(419),C=n(96),A=n(225),P=j.f,M=C.f,I=E.f,R=i.Symbol,D=i.JSON,L=D&&D.stringify,N=h("_hidden"),F=h("toPrimitive"),B={}.propertyIsEnumerable,U=f("symbol-registry"),z=f("symbols"),V=f("op-symbols"),H=Object.prototype,W="function"==typeof R&&!!T.f,q=i.QObject,G=!q||!q.prototype||!q.prototype.findChild,Y=a&&l((function(){return 7!=k(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=P(H,t);r&&delete H[t],M(e,t,n),r&&e!==H&&M(H,t,r)}:M,K=function(e){var t=z[e]=k(R.prototype);return t._k=e,t},$=W&&"symbol"==r(R.iterator)?function(e){return"symbol"==r(e)}:function(e){return e instanceof R},X=function(e,t,n){return e===H&&X(V,t,n),b(e),t=S(t,!0),b(n),o(z,t)?(n.enumerable?(o(e,N)&&e[N][t]&&(e[N][t]=!1),n=k(n,{enumerable:O(0,!1)})):(o(e,N)||M(e,N,O(1,{})),e[N][t]=!0),Y(e,t,n)):M(e,t,n)},Q=function(e,t){b(e);for(var n,r=m(t=_(t)),i=0,o=r.length;o>i;)X(e,n=r[i++],t[n]);return e},Z=function(e){var t=B.call(this,e=S(e,!0));return!(this===H&&o(z,e)&&!o(V,e))&&(!(t||!o(this,e)||!o(z,e)||o(this,N)&&this[N][e])||t)},J=function(e,t){if(e=_(e),t=S(t,!0),e!==H||!o(z,t)||o(V,t)){var n=P(e,t);return!n||!o(z,t)||o(e,N)&&e[N][t]||(n.enumerable=!0),n}},ee=function(e){for(var t,n=I(_(e)),r=[],i=0;n.length>i;)o(z,t=n[i++])||t==N||t==c||r.push(t);return r},te=function(e){for(var t,n=e===H,r=I(n?V:_(e)),i=[],a=0;r.length>a;)!o(z,t=r[a++])||n&&!o(H,t)||i.push(z[t]);return i};W||(u((R=function(){if(this instanceof R)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(V,n),o(this,N)&&o(this[N],e)&&(this[N][e]=!1),Y(this,e,O(1,n))};return a&&G&&Y(H,e,{configurable:!0,set:t}),K(e)}).prototype,"toString",(function(){return this._k})),j.f=J,C.f=X,n(294).f=E.f=ee,n(376).f=Z,T.f=te,a&&!n(253)&&u(H,"propertyIsEnumerable",Z,!0),v.f=function(e){return K(h(e))}),s(s.G+s.W+s.F*!W,{Symbol:R});for(var ne="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;ne.length>re;)h(ne[re++]);for(var ie=A(h.store),oe=0;ie.length>oe;)g(ie[oe++]);s(s.S+s.F*!W,"Symbol",{for:function(e){return o(U,e+="")?U[e]:U[e]=R(e)},keyFor:function(e){if(!$(e))throw TypeError(e+" is not a symbol!");for(var t in U)if(U[t]===e)return t},useSetter:function(){G=!0},useSimple:function(){G=!1}}),s(s.S+s.F*!W,"Object",{create:function(e,t){return void 0===t?k(e):Q(k(e),t)},defineProperty:X,defineProperties:Q,getOwnPropertyDescriptor:J,getOwnPropertyNames:ee,getOwnPropertySymbols:te});var ae=l((function(){T.f(1)}));s(s.S+s.F*ae,"Object",{getOwnPropertySymbols:function(e){return T.f(w(e))}}),D&&s(s.S+s.F*(!W||l((function(){var e=R();return"[null]"!=L([e])||"{}"!=L({a:e})||"{}"!=L(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(x(t)||void 0!==e)&&!$(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!$(t))return t}),r[1]=t,L.apply(D,r)}}),R.prototype[F]||n(162)(R.prototype,F,R.prototype.valueOf),d(R,"Symbol"),d(Math,"Math",!0),d(i.JSON,"JSON",!0)},function(e,t,n){e.exports=n(374)("native-function-to-string",Function.toString)},function(e,t,n){var r=n(225),i=n(419),o=n(376);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var a,s=n(e),u=o.f,c=0;s.length>c;)u.call(e,a=s[c++])&&t.push(a);return t}},function(e,t,n){var r=n(24);r(r.S,"Object",{create:n(226)})},function(e,t,n){var r=n(24);r(r.S+r.F*!n(92),"Object",{defineProperty:n(96).f})},function(e,t,n){var r=n(24);r(r.S+r.F*!n(92),"Object",{defineProperties:n(642)})},function(e,t,n){var r=n(148),i=n(164).f;n(201)("getOwnPropertyDescriptor",(function(){return function(e,t){return i(r(e),t)}}))},function(e,t,n){var r=n(109),i=n(165);n(201)("getPrototypeOf",(function(){return function(e){return i(r(e))}}))},function(e,t,n){var r=n(109),i=n(225);n(201)("keys",(function(){return function(e){return i(r(e))}}))},function(e,t,n){n(201)("getOwnPropertyNames",(function(){return n(643).f}))},function(e,t,n){var r=n(80),i=n(254).onFreeze;n(201)("freeze",(function(e){return function(t){return e&&r(t)?e(i(t)):t}}))},function(e,t,n){var r=n(80),i=n(254).onFreeze;n(201)("seal",(function(e){return function(t){return e&&r(t)?e(i(t)):t}}))},function(e,t,n){var r=n(80),i=n(254).onFreeze;n(201)("preventExtensions",(function(e){return function(t){return e&&r(t)?e(i(t)):t}}))},function(e,t,n){var r=n(80);n(201)("isFrozen",(function(e){return function(t){return!r(t)||!!e&&e(t)}}))},function(e,t,n){var r=n(80);n(201)("isSealed",(function(e){return function(t){return!r(t)||!!e&&e(t)}}))},function(e,t,n){var r=n(80);n(201)("isExtensible",(function(e){return function(t){return!!r(t)&&(!e||e(t))}}))},function(e,t,n){var r=n(24);r(r.S+r.F,"Object",{assign:n(550)})},function(e,t,n){var r=n(24);r(r.S,"Object",{is:n(644)})},function(e,t,n){var r=n(24);r(r.S,"Object",{setPrototypeOf:n(551).set})},function(e,t,n){"use strict";var r=n(255),i={};i[n(90)("toStringTag")]="z",i+""!="[object z]"&&n(163)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},function(e,t,n){var r=n(24);r(r.P,"Function",{bind:n(645)})},function(e,t,n){var r=n(96).f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||n(92)&&r(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var r=n(80),i=n(165),o=n(90)("hasInstance"),a=Function.prototype;o in a||n(96).f(a,o,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;for(;e=i(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,n){var r=n(24),i=n(646);r(r.G+r.F*(parseInt!=i),{parseInt:i})},function(e,t,n){var r=n(24),i=n(647);r(r.G+r.F*(parseFloat!=i),{parseFloat:i})},function(e,t,n){"use strict";var r=n(74),i=n(161),o=n(186),a=n(554),s=n(199),u=n(81),c=n(294).f,l=n(164).f,f=n(96).f,d=n(328).trim,p=r.Number,h=p,v=p.prototype,g="Number"==o(n(226)(v)),m="trim"in String.prototype,y=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){var n,r,i,o=(t=m?t.trim():d(t,3)).charCodeAt(0);if(43===o||45===o){if(88===(n=t.charCodeAt(2))||120===n)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+t}for(var a,u=t.slice(2),c=0,l=u.length;c<l;c++)if((a=u.charCodeAt(c))<48||a>i)return NaN;return parseInt(u,r)}}return+t};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof p&&(g?u((function(){v.valueOf.call(n)})):"Number"!=o(n))?a(new h(y(t)),n,p):y(t)};for(var b,x=n(92)?c(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(","),w=0;x.length>w;w++)i(h,b=x[w])&&!i(p,b)&&f(p,b,l(h,b));p.prototype=v,v.constructor=p,n(163)(r,"Number",p)}},function(e,t,n){"use strict";var r=n(24),i=n(187),o=n(648),a=n(555),s=1..toFixed,u=Math.floor,c=[0,0,0,0,0,0],l="Number.toFixed: incorrect invocation!",f=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*c[n],c[n]=r%1e7,r=u(r/1e7)},d=function(e){for(var t=6,n=0;--t>=0;)n+=c[t],c[t]=u(n/e),n=n%e*1e7},p=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==c[e]){var n=String(c[e]);t=""===t?n:t+a.call("0",7-n.length)+n}return t},h=function(e,t,n){return 0===t?n:t%2==1?h(e,t-1,n*e):h(e*e,t/2,n)};r(r.P+r.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(81)((function(){s.call({})}))),"Number",{toFixed:function(e){var t,n,r,s,u=o(this,l),c=i(e),v="",g="0";if(c<0||c>20)throw RangeError(l);if(u!=u)return"NaN";if(u<=-1e21||u>=1e21)return String(u);if(u<0&&(v="-",u=-u),u>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}(u*h(2,69,1))-69)<0?u*h(2,-t,1):u/h(2,t,1),n*=4503599627370496,(t=52-t)>0){for(f(0,n),r=c;r>=7;)f(1e7,0),r-=7;for(f(h(10,r,1),0),r=t-1;r>=23;)d(1<<23),r-=23;d(1<<r),f(1,1),d(2),g=p()}else f(0,n),f(1<<-t,0),g=p()+a.call("0",c);return g=c>0?v+((s=g.length)<=c?"0."+a.call("0",c-s)+g:g.slice(0,s-c)+"."+g.slice(s-c)):v+g}})},function(e,t,n){"use strict";var r=n(24),i=n(81),o=n(648),a=1..toPrecision;r(r.P+r.F*(i((function(){return"1"!==a.call(1,void 0)}))||!i((function(){a.call({})}))),"Number",{toPrecision:function(e){var t=o(this,"Number#toPrecision: incorrect invocation!");return void 0===e?a.call(t):a.call(t,e)}})},function(e,t,n){var r=n(24);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(e,t,n){var r=n(24),i=n(74).isFinite;r(r.S,"Number",{isFinite:function(e){return"number"==typeof e&&i(e)}})},function(e,t,n){var r=n(24);r(r.S,"Number",{isInteger:n(649)})},function(e,t,n){var r=n(24);r(r.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,n){var r=n(24),i=n(649),o=Math.abs;r(r.S,"Number",{isSafeInteger:function(e){return i(e)&&o(e)<=9007199254740991}})},function(e,t,n){var r=n(24);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){var r=n(24);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){var r=n(24),i=n(647);r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(e,t,n){var r=n(24),i=n(646);r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(e,t,n){var r=n(24),i=n(650),o=Math.sqrt,a=Math.acosh;r(r.S+r.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:i(e-1+o(e-1)*o(e+1))}})},function(e,t,n){var r=n(24),i=Math.asinh;r(r.S+r.F*!(i&&1/i(0)>0),"Math",{asinh:function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):Math.log(t+Math.sqrt(t*t+1)):t}})},function(e,t,n){var r=n(24),i=Math.atanh;r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},function(e,t,n){var r=n(24),i=n(556);r(r.S,"Math",{cbrt:function(e){return i(e=+e)*Math.pow(Math.abs(e),1/3)}})},function(e,t,n){var r=n(24);r(r.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},function(e,t,n){var r=n(24),i=Math.exp;r(r.S,"Math",{cosh:function(e){return(i(e=+e)+i(-e))/2}})},function(e,t,n){var r=n(24),i=n(557);r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},function(e,t,n){var r=n(24);r(r.S,"Math",{fround:n(651)})},function(e,t,n){var r=n(24),i=Math.abs;r(r.S,"Math",{hypot:function(e,t){for(var n,r,o=0,a=0,s=arguments.length,u=0;a<s;)u<(n=i(arguments[a++]))?(o=o*(r=u/n)*r+1,u=n):o+=n>0?(r=n/u)*r:n;return u===1/0?1/0:u*Math.sqrt(o)}})},function(e,t,n){var r=n(24),i=Math.imul;r(r.S+r.F*n(81)((function(){return-5!=i(4294967295,5)||2!=i.length})),"Math",{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=n(24);r(r.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},function(e,t,n){var r=n(24);r(r.S,"Math",{log1p:n(650)})},function(e,t,n){var r=n(24);r(r.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,n){var r=n(24);r(r.S,"Math",{sign:n(556)})},function(e,t,n){var r=n(24),i=n(557),o=Math.exp;r(r.S+r.F*n(81)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(i(e)-i(-e))/2:(o(e-1)-o(-e-1))*(Math.E/2)}})},function(e,t,n){var r=n(24),i=n(557),o=Math.exp;r(r.S,"Math",{tanh:function(e){var t=i(e=+e),n=i(-e);return t==1/0?1:n==1/0?-1:(t-n)/(o(e)+o(-e))}})},function(e,t,n){var r=n(24);r(r.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},function(e,t,n){var r=n(24),i=n(293),o=String.fromCharCode,a=String.fromCodePoint;r(r.S+r.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,a=0;r>a;){if(t=+arguments[a++],i(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?o(t):o(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){var r=n(24),i=n(148),o=n(93);r(r.S,"String",{raw:function(e){for(var t=i(e.raw),n=o(t.length),r=arguments.length,a=[],s=0;n>s;)a.push(String(t[s++])),s<r&&a.push(String(arguments[s]));return a.join("")}})},function(e,t,n){"use strict";n(328)("trim",(function(e){return function(){return e(this,3)}}))},function(e,t,n){"use strict";var r=n(421)(!0);n(422)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t,n){"use strict";var r=n(24),i=n(421)(!1);r(r.P,"String",{codePointAt:function(e){return i(this,e)}})},function(e,t,n){"use strict";var r=n(24),i=n(93),o=n(558),a="".endsWith;r(r.P+r.F*n(559)("endsWith"),"String",{endsWith:function(e){var t=o(this,e,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=i(t.length),s=void 0===n?r:Math.min(i(n),r),u=String(e);return a?a.call(t,u,s):t.slice(s-u.length,s)===u}})},function(e,t,n){"use strict";var r=n(24),i=n(558);r(r.P+r.F*n(559)("includes"),"String",{includes:function(e){return!!~i(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var r=n(24);r(r.P,"String",{repeat:n(555)})},function(e,t,n){"use strict";var r=n(24),i=n(93),o=n(558),a="".startsWith;r(r.P+r.F*n(559)("startsWith"),"String",{startsWith:function(e){var t=o(this,e,"startsWith"),n=i(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return a?a.call(t,r,n):t.slice(n,n+r.length)===r}})},function(e,t,n){"use strict";n(166)("anchor",(function(e){return function(t){return e(this,"a","name",t)}}))},function(e,t,n){"use strict";n(166)("big",(function(e){return function(){return e(this,"big","","")}}))},function(e,t,n){"use strict";n(166)("blink",(function(e){return function(){return e(this,"blink","","")}}))},function(e,t,n){"use strict";n(166)("bold",(function(e){return function(){return e(this,"b","","")}}))},function(e,t,n){"use strict";n(166)("fixed",(function(e){return function(){return e(this,"tt","","")}}))},function(e,t,n){"use strict";n(166)("fontcolor",(function(e){return function(t){return e(this,"font","color",t)}}))},function(e,t,n){"use strict";n(166)("fontsize",(function(e){return function(t){return e(this,"font","size",t)}}))},function(e,t,n){"use strict";n(166)("italics",(function(e){return function(){return e(this,"i","","")}}))},function(e,t,n){"use strict";n(166)("link",(function(e){return function(t){return e(this,"a","href",t)}}))},function(e,t,n){"use strict";n(166)("small",(function(e){return function(){return e(this,"small","","")}}))},function(e,t,n){"use strict";n(166)("strike",(function(e){return function(){return e(this,"strike","","")}}))},function(e,t,n){"use strict";n(166)("sub",(function(e){return function(){return e(this,"sub","","")}}))},function(e,t,n){"use strict";n(166)("sup",(function(e){return function(){return e(this,"sup","","")}}))},function(e,t,n){var r=n(24);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(e,t,n){"use strict";var r=n(24),i=n(109),o=n(199);r(r.P+r.F*n(81)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(e){var t=i(this),n=o(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},function(e,t,n){var r=n(24),i=n(1037);r(r.P+r.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},function(e,t,n){"use strict";var r=n(81),i=Date.prototype.getTime,o=Date.prototype.toISOString,a=function(e){return e>9?e:"0"+e};e.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-5e13-1))}))||!r((function(){o.call(new Date(NaN))}))?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),r=t<0?"-":t>9999?"+":"";return r+("00000"+Math.abs(t)).slice(r?-6:-4)+"-"+a(e.getUTCMonth()+1)+"-"+a(e.getUTCDate())+"T"+a(e.getUTCHours())+":"+a(e.getUTCMinutes())+":"+a(e.getUTCSeconds())+"."+(n>99?n:"0"+a(n))+"Z"}:o},function(e,t,n){var r=Date.prototype,i=r.toString,o=r.getTime;new Date(NaN)+""!="Invalid Date"&&n(163)(r,"toString",(function(){var e=o.call(this);return e==e?i.call(this):"Invalid Date"}))},function(e,t,n){var r=n(90)("toPrimitive"),i=Date.prototype;r in i||n(162)(i,r,n(1040))},function(e,t,n){"use strict";var r=n(68),i=n(199);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){var r=n(24);r(r.S,"Array",{isArray:n(420)})},function(e,t,n){"use strict";var r=n(178),i=n(24),o=n(109),a=n(652),s=n(560),u=n(93),c=n(561),l=n(377);i(i.S+i.F*!n(425)((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,i,f,d=o(e),p="function"==typeof this?this:Array,h=arguments.length,v=h>1?arguments[1]:void 0,g=void 0!==v,m=0,y=l(d);if(g&&(v=r(v,h>2?arguments[2]:void 0,2)),null==y||p==Array&&s(y))for(n=new p(t=u(d.length));t>m;m++)c(n,m,g?v(d[m],m):d[m]);else for(f=y.call(d),n=new p;!(i=f.next()).done;m++)c(n,m,g?a(f,v,[i.value,m],!0):i.value);return n.length=m,n}})},function(e,t,n){"use strict";var r=n(24),i=n(561);r(r.S+r.F*n(81)((function(){function e(){}return!(Array.of.call(e)instanceof e)})),"Array",{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)i(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){"use strict";var r=n(24),i=n(148),o=[].join;r(r.P+r.F*(n(375)!=Object||!n(188)(o)),"Array",{join:function(e){return o.call(i(this),void 0===e?",":e)}})},function(e,t,n){"use strict";var r=n(24),i=n(549),o=n(186),a=n(293),s=n(93),u=[].slice;r(r.P+r.F*n(81)((function(){i&&u.call(i)})),"Array",{slice:function(e,t){var n=s(this.length),r=o(this);if(t=void 0===t?n:t,"Array"==r)return u.call(this,e,t);for(var i=a(e,n),c=a(t,n),l=s(c-i),f=new Array(l),d=0;d<l;d++)f[d]="String"==r?this.charAt(i+d):this[i+d];return f}})},function(e,t,n){"use strict";var r=n(24),i=n(129),o=n(109),a=n(81),s=[].sort,u=[1,2,3];r(r.P+r.F*(a((function(){u.sort(void 0)}))||!a((function(){u.sort(null)}))||!n(188)(s)),"Array",{sort:function(e){return void 0===e?s.call(o(this)):s.call(o(this),i(e))}})},function(e,t,n){"use strict";var r=n(24),i=n(202)(0),o=n(188)([].forEach,!0);r(r.P+r.F*!o,"Array",{forEach:function(e){return i(this,e,arguments[1])}})},function(e,t,n){var r=n(80),i=n(420),o=n(90)("species");e.exports=function(e){var t;return i(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&null===(t=t[o])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){"use strict";var r=n(24),i=n(202)(1);r(r.P+r.F*!n(188)([].map,!0),"Array",{map:function(e){return i(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(24),i=n(202)(2);r(r.P+r.F*!n(188)([].filter,!0),"Array",{filter:function(e){return i(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(24),i=n(202)(3);r(r.P+r.F*!n(188)([].some,!0),"Array",{some:function(e){return i(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(24),i=n(202)(4);r(r.P+r.F*!n(188)([].every,!0),"Array",{every:function(e){return i(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(24),i=n(653);r(r.P+r.F*!n(188)([].reduce,!0),"Array",{reduce:function(e){return i(this,e,arguments.length,arguments[1],!1)}})},function(e,t,n){"use strict";var r=n(24),i=n(653);r(r.P+r.F*!n(188)([].reduceRight,!0),"Array",{reduceRight:function(e){return i(this,e,arguments.length,arguments[1],!0)}})},function(e,t,n){"use strict";var r=n(24),i=n(418)(!1),o=[].indexOf,a=!!o&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(a||!n(188)(o)),"Array",{indexOf:function(e){return a?o.apply(this,arguments)||0:i(this,e,arguments[1])}})},function(e,t,n){"use strict";var r=n(24),i=n(148),o=n(187),a=n(93),s=[].lastIndexOf,u=!!s&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(u||!n(188)(s)),"Array",{lastIndexOf:function(e){if(u)return s.apply(this,arguments)||0;var t=i(this),n=a(t.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,o(arguments[1]))),r<0&&(r=n+r);r>=0;r--)if(r in t&&t[r]===e)return r||0;return-1}})},function(e,t,n){var r=n(24);r(r.P,"Array",{copyWithin:n(654)}),n(256)("copyWithin")},function(e,t,n){var r=n(24);r(r.P,"Array",{fill:n(563)}),n(256)("fill")},function(e,t,n){"use strict";var r=n(24),i=n(202)(5),o=!0;"find"in[]&&Array(1).find((function(){o=!1})),r(r.P+r.F*o,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(256)("find")},function(e,t,n){"use strict";var r=n(24),i=n(202)(6),o="findIndex",a=!0;o in[]&&Array(1)[o]((function(){a=!1})),r(r.P+r.F*a,"Array",{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(256)(o)},function(e,t,n){n(296)("Array")},function(e,t,n){var r=n(74),i=n(554),o=n(96).f,a=n(294).f,s=n(424),u=n(378),c=r.RegExp,l=c,f=c.prototype,d=/a/g,p=/a/g,h=new c(d)!==d;if(n(92)&&(!h||n(81)((function(){return p[n(90)("match")]=!1,c(d)!=d||c(p)==p||"/a/i"!=c(d,"i")})))){c=function(e,t){var n=this instanceof c,r=s(e),o=void 0===t;return!n&&r&&e.constructor===c&&o?e:i(h?new l(r&&!o?e.source:e,t):l((r=e instanceof c)?e.source:e,r&&o?u.call(e):t),n?this:f,c)};for(var v=function(e){e in c||o(c,e,{configurable:!0,get:function(){return l[e]},set:function(t){l[e]=t}})},g=a(l),m=0;g.length>m;)v(g[m++]);f.constructor=c,c.prototype=f,n(163)(r,"RegExp",c)}n(296)("RegExp")},function(e,t,n){"use strict";n(656);var r=n(68),i=n(378),o=n(92),a=/./.toString,s=function(e){n(163)(RegExp.prototype,"toString",e,!0)};n(81)((function(){return"/a/b"!=a.call({source:"a",flags:"b"})}))?s((function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!o&&e instanceof RegExp?i.call(e):void 0)})):"toString"!=a.name&&s((function(){return a.call(this)}))},function(e,t,n){"use strict";var r=n(68),i=n(93),o=n(567),a=n(426);n(427)("match",1,(function(e,t,n,s){return[function(n){var r=e(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=s(n,e,this);if(t.done)return t.value;var u=r(e),c=String(this);if(!u.global)return a(u,c);var l=u.unicode;u.lastIndex=0;for(var f,d=[],p=0;null!==(f=a(u,c));){var h=String(f[0]);d[p]=h,""===h&&(u.lastIndex=o(c,i(u.lastIndex),l)),p++}return 0===p?null:d}]}))},function(e,t,n){"use strict";var r=n(68),i=n(109),o=n(93),a=n(187),s=n(567),u=n(426),c=Math.max,l=Math.min,f=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;n(427)("replace",2,(function(e,t,n,h){return[function(r,i){var o=e(this),a=null==r?void 0:r[t];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},function(e,t){var i=h(n,e,this,t);if(i.done)return i.value;var f=r(e),d=String(this),p="function"==typeof t;p||(t=String(t));var g=f.global;if(g){var m=f.unicode;f.lastIndex=0}for(var y=[];;){var b=u(f,d);if(null===b)break;if(y.push(b),!g)break;""===String(b[0])&&(f.lastIndex=s(d,o(f.lastIndex),m))}for(var x,w="",_=0,S=0;S<y.length;S++){b=y[S];for(var O=String(b[0]),k=c(l(a(b.index),d.length),0),E=[],j=1;j<b.length;j++)E.push(void 0===(x=b[j])?x:String(x));var T=b.groups;if(p){var C=[O].concat(E,k,d);void 0!==T&&C.push(T);var A=String(t.apply(void 0,C))}else A=v(O,d,k,E,T,t);k>=_&&(w+=d.slice(_,k)+A,_=k+O.length)}return w+d.slice(_)}];function v(e,t,r,o,a,s){var u=r+e.length,c=o.length,l=p;return void 0!==a&&(a=i(a),l=d),n.call(s,l,(function(n,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(u);case"<":s=a[i.slice(1,-1)];break;default:var l=+i;if(0===l)return n;if(l>c){var d=f(l/10);return 0===d?n:d<=c?void 0===o[d-1]?i.charAt(1):o[d-1]+i.charAt(1):n}s=o[l-1]}return void 0===s?"":s}))}}))},function(e,t,n){"use strict";var r=n(68),i=n(644),o=n(426);n(427)("search",1,(function(e,t,n,a){return[function(n){var r=e(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=a(n,e,this);if(t.done)return t.value;var s=r(e),u=String(this),c=s.lastIndex;i(c,0)||(s.lastIndex=0);var l=o(s,u);return i(s.lastIndex,c)||(s.lastIndex=c),null===l?-1:l.index}]}))},function(e,t,n){"use strict";var r=n(424),i=n(68),o=n(379),a=n(567),s=n(93),u=n(426),c=n(566),l=n(81),f=Math.min,d=[].push,p=!l((function(){RegExp(4294967295,"y")}));n(427)("split",2,(function(e,t,n,l){var h;return h="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,t){var i=String(this);if(void 0===e&&0===t)return[];if(!r(e))return n.call(i,e,t);for(var o,a,s,u=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,p=void 0===t?4294967295:t>>>0,h=new RegExp(e.source,l+"g");(o=c.call(h,i))&&!((a=h.lastIndex)>f&&(u.push(i.slice(f,o.index)),o.length>1&&o.index<i.length&&d.apply(u,o.slice(1)),s=o[0].length,f=a,u.length>=p));)h.lastIndex===o.index&&h.lastIndex++;return f===i.length?!s&&h.test("")||u.push(""):u.push(i.slice(f)),u.length>p?u.slice(0,p):u}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,r){var i=e(this),o=null==n?void 0:n[t];return void 0!==o?o.call(n,i,r):h.call(String(i),n,r)},function(e,t){var r=l(h,e,this,t,h!==n);if(r.done)return r.value;var c=i(e),d=String(this),v=o(c,RegExp),g=c.unicode,m=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(p?"y":"g"),y=new v(p?c:"^(?:"+c.source+")",m),b=void 0===t?4294967295:t>>>0;if(0===b)return[];if(0===d.length)return null===u(y,d)?[d]:[];for(var x=0,w=0,_=[];w<d.length;){y.lastIndex=p?w:0;var S,O=u(y,p?d:d.slice(w));if(null===O||(S=f(s(y.lastIndex+(p?0:w)),d.length))===x)w=a(d,w,g);else{if(_.push(d.slice(x,w)),_.length===b)return _;for(var k=1;k<=O.length-1;k++)if(_.push(O[k]),_.length===b)return _;w=x=S}}return _.push(d.slice(x)),_}]}))},function(e,t,n){"use strict";var r,i,o,a,s=n(253),u=n(74),c=n(178),l=n(255),f=n(24),d=n(80),p=n(129),h=n(297),v=n(257),g=n(379),m=n(568).set,y=n(569)(),b=n(570),x=n(657),w=n(428),_=n(658),S=u.TypeError,O=u.process,k=O&&O.versions,E=k&&k.v8||"",j=u.Promise,T="process"==l(O),C=function(){},A=i=b.f,P=!!function(){try{var e=j.resolve(1),t=(e.constructor={})[n(90)("species")]=function(e){e(C,C)};return(T||"function"==typeof PromiseRejectionEvent)&&e.then(C)instanceof t&&0!==E.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(e){}}(),M=function(e){var t;return!(!d(e)||"function"!=typeof(t=e.then))&&t},I=function(e,t){if(!e._n){e._n=!0;var n=e._c;y((function(){for(var r=e._v,i=1==e._s,o=0,a=function(t){var n,o,a,s=i?t.ok:t.fail,u=t.resolve,c=t.reject,l=t.domain;try{s?(i||(2==e._h&&L(e),e._h=1),!0===s?n=r:(l&&l.enter(),n=s(r),l&&(l.exit(),a=!0)),n===t.promise?c(S("Promise-chain cycle")):(o=M(n))?o.call(n,u,c):u(n)):c(r)}catch(e){l&&!a&&l.exit(),c(e)}};n.length>o;)a(n[o++]);e._c=[],e._n=!1,t&&!e._h&&R(e)}))}},R=function(e){m.call(u,(function(){var t,n,r,i=e._v,o=D(e);if(o&&(t=x((function(){T?O.emit("unhandledRejection",i,e):(n=u.onunhandledrejection)?n({promise:e,reason:i}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",i)})),e._h=T||D(e)?2:1),e._a=void 0,o&&t.e)throw t.v}))},D=function(e){return 1!==e._h&&0===(e._a||e._c).length},L=function(e){m.call(u,(function(){var t;T?O.emit("rejectionHandled",e):(t=u.onrejectionhandled)&&t({promise:e,reason:e._v})}))},N=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),I(t,!0))},F=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw S("Promise can't be resolved itself");(t=M(e))?y((function(){var r={_w:n,_d:!1};try{t.call(e,c(F,r,1),c(N,r,1))}catch(e){N.call(r,e)}})):(n._v=e,n._s=1,I(n,!1))}catch(e){N.call({_w:n,_d:!1},e)}}};P||(j=function(e){h(this,j,"Promise","_h"),p(e),r.call(this);try{e(c(F,this,1),c(N,this,1))}catch(e){N.call(this,e)}},(r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(298)(j.prototype,{then:function(e,t){var n=A(g(this,j));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=T?O.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&I(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r;this.promise=e,this.resolve=c(F,e,1),this.reject=c(N,e,1)},b.f=A=function(e){return e===j||e===a?new o(e):i(e)}),f(f.G+f.W+f.F*!P,{Promise:j}),n(327)(j,"Promise"),n(296)("Promise"),a=n(147).Promise,f(f.S+f.F*!P,"Promise",{reject:function(e){var t=A(this);return(0,t.reject)(e),t.promise}}),f(f.S+f.F*(s||!P),"Promise",{resolve:function(e){return _(s&&this===a?j:this,e)}}),f(f.S+f.F*!(P&&n(425)((function(e){j.all(e).catch(C)}))),"Promise",{all:function(e){var t=this,n=A(t),r=n.resolve,i=n.reject,o=x((function(){var n=[],o=0,a=1;v(e,!1,(function(e){var s=o++,u=!1;n.push(void 0),a++,t.resolve(e).then((function(e){u||(u=!0,n[s]=e,--a||r(n))}),i)})),--a||r(n)}));return o.e&&i(o.v),n.promise},race:function(e){var t=this,n=A(t),r=n.reject,i=x((function(){v(e,!1,(function(e){t.resolve(e).then(n.resolve,r)}))}));return i.e&&r(i.v),n.promise}})},function(e,t,n){"use strict";var r=n(663),i=n(299);n(429)("WeakSet",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return r.def(i(this,"WeakSet"),e,!0)}},r,!1,!0)},function(e,t,n){"use strict";var r=n(24),i=n(430),o=n(571),a=n(68),s=n(293),u=n(93),c=n(80),l=n(74).ArrayBuffer,f=n(379),d=o.ArrayBuffer,p=o.DataView,h=i.ABV&&l.isView,v=d.prototype.slice,g=i.VIEW;r(r.G+r.W+r.F*(l!==d),{ArrayBuffer:d}),r(r.S+r.F*!i.CONSTR,"ArrayBuffer",{isView:function(e){return h&&h(e)||c(e)&&g in e}}),r(r.P+r.U+r.F*n(81)((function(){return!new d(2).slice(1,void 0).byteLength})),"ArrayBuffer",{slice:function(e,t){if(void 0!==v&&void 0===t)return v.call(a(this),e);for(var n=a(this).byteLength,r=s(e,n),i=s(void 0===t?n:t,n),o=new(f(this,d))(u(i-r)),c=new p(this),l=new p(o),h=0;r<i;)l.setUint8(h++,c.getUint8(r++));return o}}),n(296)("ArrayBuffer")},function(e,t,n){var r=n(24);r(r.G+r.W+r.F*!n(430).ABV,{DataView:n(571).DataView})},function(e,t,n){n(227)("Int8",1,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){n(227)("Uint8",1,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){n(227)("Uint8",1,(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0)},function(e,t,n){n(227)("Int16",2,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){n(227)("Uint16",2,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){n(227)("Int32",4,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){n(227)("Uint32",4,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){n(227)("Float32",4,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){n(227)("Float64",8,(function(e){return function(t,n,r){return e(this,t,n,r)}}))},function(e,t,n){var r=n(24),i=n(129),o=n(68),a=(n(74).Reflect||{}).apply,s=Function.apply;r(r.S+r.F*!n(81)((function(){a((function(){}))})),"Reflect",{apply:function(e,t,n){var r=i(e),u=o(n);return a?a(r,t,u):s.call(r,t,u)}})},function(e,t,n){var r=n(24),i=n(226),o=n(129),a=n(68),s=n(80),u=n(81),c=n(645),l=(n(74).Reflect||{}).construct,f=u((function(){function e(){}return!(l((function(){}),[],e)instanceof e)})),d=!u((function(){l((function(){}))}));r(r.S+r.F*(f||d),"Reflect",{construct:function(e,t){o(e),a(t);var n=arguments.length<3?e:o(arguments[2]);if(d&&!f)return l(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 r=[null];return r.push.apply(r,t),new(c.apply(e,r))}var u=n.prototype,p=i(s(u)?u:Object.prototype),h=Function.apply.call(e,p,t);return s(h)?h:p}})},function(e,t,n){var r=n(96),i=n(24),o=n(68),a=n(199);i(i.S+i.F*n(81)((function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(e,t,n){o(e),t=a(t,!0),o(n);try{return r.f(e,t,n),!0}catch(e){return!1}}})},function(e,t,n){var r=n(24),i=n(164).f,o=n(68);r(r.S,"Reflect",{deleteProperty:function(e,t){var n=i(o(e),t);return!(n&&!n.configurable)&&delete e[t]}})},function(e,t,n){"use strict";var r=n(24),i=n(68),o=function(e){this._t=i(e),this._i=0;var t,n=this._k=[];for(t in e)n.push(t)};n(423)(o,"Object",(function(){var e,t=this._k;do{if(this._i>=t.length)return{value:void 0,done:!0}}while(!((e=t[this._i++])in this._t));return{value:e,done:!1}})),r(r.S,"Reflect",{enumerate:function(e){return new o(e)}})},function(e,t,n){var r=n(164),i=n(165),o=n(161),a=n(24),s=n(80),u=n(68);a(a.S,"Reflect",{get:function e(t,n){var a,c,l=arguments.length<3?t:arguments[2];return u(t)===l?t[n]:(a=r.f(t,n))?o(a,"value")?a.value:void 0!==a.get?a.get.call(l):void 0:s(c=i(t))?e(c,n,l):void 0}})},function(e,t,n){var r=n(164),i=n(24),o=n(68);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return r.f(o(e),t)}})},function(e,t,n){var r=n(24),i=n(165),o=n(68);r(r.S,"Reflect",{getPrototypeOf:function(e){return i(o(e))}})},function(e,t,n){var r=n(24);r(r.S,"Reflect",{has:function(e,t){return t in e}})},function(e,t,n){var r=n(24),i=n(68),o=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(e){return i(e),!o||o(e)}})},function(e,t,n){var r=n(24);r(r.S,"Reflect",{ownKeys:n(572)})},function(e,t,n){var r=n(24),i=n(68),o=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(e){i(e);try{return o&&o(e),!0}catch(e){return!1}}})},function(e,t,n){var r=n(96),i=n(164),o=n(165),a=n(161),s=n(24),u=n(252),c=n(68),l=n(80);s(s.S,"Reflect",{set:function e(t,n,s){var f,d,p=arguments.length<4?t:arguments[3],h=i.f(c(t),n);if(!h){if(l(d=o(t)))return e(d,n,s,p);h=u(0)}if(a(h,"value")){if(!1===h.writable||!l(p))return!1;if(f=i.f(p,n)){if(f.get||f.set||!1===f.writable)return!1;f.value=s,r.f(p,n,f)}else r.f(p,n,u(0,s));return!0}return void 0!==h.set&&(h.set.call(p,s),!0)}})},function(e,t,n){var r=n(24),i=n(551);i&&r(r.S,"Reflect",{setPrototypeOf:function(e,t){i.check(e,t);try{return i.set(e,t),!0}catch(e){return!1}}})},function(e,t,n){"use strict";var r=n(24),i=n(418)(!0);r(r.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n(256)("includes")},function(e,t,n){"use strict";var r=n(24),i=n(665),o=n(109),a=n(93),s=n(129),u=n(562);r(r.P,"Array",{flatMap:function(e){var t,n,r=o(this);return s(e),t=a(r.length),n=u(r,0),i(n,r,r,t,0,1,e,arguments[1]),n}}),n(256)("flatMap")},function(e,t,n){"use strict";var r=n(24),i=n(665),o=n(109),a=n(93),s=n(187),u=n(562);r(r.P,"Array",{flatten:function(){var e=arguments[0],t=o(this),n=a(t.length),r=u(t,0);return i(r,t,t,n,0,void 0===e?1:s(e)),r}}),n(256)("flatten")},function(e,t,n){"use strict";var r=n(24),i=n(421)(!0);r(r.P,"String",{at:function(e){return i(this,e)}})},function(e,t,n){"use strict";var r=n(24),i=n(666),o=n(428),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);r(r.P+r.F*a,"String",{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},function(e,t,n){"use strict";var r=n(24),i=n(666),o=n(428),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);r(r.P+r.F*a,"String",{padEnd:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},function(e,t,n){"use strict";n(328)("trimLeft",(function(e){return function(){return e(this,1)}}),"trimStart")},function(e,t,n){"use strict";n(328)("trimRight",(function(e){return function(){return e(this,2)}}),"trimEnd")},function(e,t,n){"use strict";var r=n(24),i=n(200),o=n(93),a=n(424),s=n(378),u=RegExp.prototype,c=function(e,t){this._r=e,this._s=t};n(423)(c,"RegExp String",(function(){var e=this._r.exec(this._s);return{value:e,done:null===e}})),r(r.P,"String",{matchAll:function(e){if(i(this),!a(e))throw TypeError(e+" is not a regexp!");var t=String(this),n="flags"in u?String(e.flags):s.call(e),r=new RegExp(e.source,~n.indexOf("g")?n:"g"+n);return r.lastIndex=o(e.lastIndex),new c(r,t)}})},function(e,t,n){n(546)("asyncIterator")},function(e,t,n){n(546)("observable")},function(e,t,n){var r=n(24),i=n(572),o=n(148),a=n(164),s=n(561);r(r.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,r=o(e),u=a.f,c=i(r),l={},f=0;c.length>f;)void 0!==(n=u(r,t=c[f++]))&&s(l,t,n);return l}})},function(e,t,n){var r=n(24),i=n(667)(!1);r(r.S,"Object",{values:function(e){return i(e)}})},function(e,t,n){var r=n(24),i=n(667)(!0);r(r.S,"Object",{entries:function(e){return i(e)}})},function(e,t,n){"use strict";var r=n(24),i=n(109),o=n(129),a=n(96);n(92)&&r(r.P+n(431),"Object",{__defineGetter__:function(e,t){a.f(i(this),e,{get:o(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";var r=n(24),i=n(109),o=n(129),a=n(96);n(92)&&r(r.P+n(431),"Object",{__defineSetter__:function(e,t){a.f(i(this),e,{set:o(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";var r=n(24),i=n(109),o=n(199),a=n(165),s=n(164).f;n(92)&&r(r.P+n(431),"Object",{__lookupGetter__:function(e){var t,n=i(this),r=o(e,!0);do{if(t=s(n,r))return t.get}while(n=a(n))}})},function(e,t,n){"use strict";var r=n(24),i=n(109),o=n(199),a=n(165),s=n(164).f;n(92)&&r(r.P+n(431),"Object",{__lookupSetter__:function(e){var t,n=i(this),r=o(e,!0);do{if(t=s(n,r))return t.set}while(n=a(n))}})},function(e,t,n){var r=n(24);r(r.P+r.R,"Map",{toJSON:n(668)("Map")})},function(e,t,n){var r=n(24);r(r.P+r.R,"Set",{toJSON:n(668)("Set")})},function(e,t,n){n(432)("Map")},function(e,t,n){n(432)("Set")},function(e,t,n){n(432)("WeakMap")},function(e,t,n){n(432)("WeakSet")},function(e,t,n){n(433)("Map")},function(e,t,n){n(433)("Set")},function(e,t,n){n(433)("WeakMap")},function(e,t,n){n(433)("WeakSet")},function(e,t,n){var r=n(24);r(r.G,{global:n(74)})},function(e,t,n){var r=n(24);r(r.S,"System",{global:n(74)})},function(e,t,n){var r=n(24),i=n(186);r(r.S,"Error",{isError:function(e){return"Error"===i(e)}})},function(e,t,n){var r=n(24);r(r.S,"Math",{clamp:function(e,t,n){return Math.min(n,Math.max(t,e))}})},function(e,t,n){var r=n(24);r(r.S,"Math",{DEG_PER_RAD:Math.PI/180})},function(e,t,n){var r=n(24),i=180/Math.PI;r(r.S,"Math",{degrees:function(e){return e*i}})},function(e,t,n){var r=n(24),i=n(670),o=n(651);r(r.S,"Math",{fscale:function(e,t,n,r,a){return o(i(e,t,n,r,a))}})},function(e,t,n){var r=n(24);r(r.S,"Math",{iaddh:function(e,t,n,r){var i=e>>>0,o=n>>>0;return(t>>>0)+(r>>>0)+((i&o|(i|o)&~(i+o>>>0))>>>31)|0}})},function(e,t,n){var r=n(24);r(r.S,"Math",{isubh:function(e,t,n,r){var i=e>>>0,o=n>>>0;return(t>>>0)-(r>>>0)-((~i&o|~(i^o)&i-o>>>0)>>>31)|0}})},function(e,t,n){var r=n(24);r(r.S,"Math",{imulh:function(e,t){var n=+e,r=+t,i=65535&n,o=65535&r,a=n>>16,s=r>>16,u=(a*o>>>0)+(i*o>>>16);return a*s+(u>>16)+((i*s>>>0)+(65535&u)>>16)}})},function(e,t,n){var r=n(24);r(r.S,"Math",{RAD_PER_DEG:180/Math.PI})},function(e,t,n){var r=n(24),i=Math.PI/180;r(r.S,"Math",{radians:function(e){return e*i}})},function(e,t,n){var r=n(24);r(r.S,"Math",{scale:n(670)})},function(e,t,n){var r=n(24);r(r.S,"Math",{umulh:function(e,t){var n=+e,r=+t,i=65535&n,o=65535&r,a=n>>>16,s=r>>>16,u=(a*o>>>0)+(i*o>>>16);return a*s+(u>>>16)+((i*s>>>0)+(65535&u)>>>16)}})},function(e,t,n){var r=n(24);r(r.S,"Math",{signbit:function(e){return(e=+e)!=e?e:0==e?1/e==1/0:e>0}})},function(e,t,n){"use strict";var r=n(24),i=n(147),o=n(74),a=n(379),s=n(658);r(r.P+r.R,"Promise",{finally:function(e){var t=a(this,i.Promise||o.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then((function(){return n}))}:e,n?function(n){return s(t,e()).then((function(){throw n}))}:e)}})},function(e,t,n){"use strict";var r=n(24),i=n(570),o=n(657);r(r.S,"Promise",{try:function(e){var t=i.f(this),n=o(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},function(e,t,n){var r=n(228),i=n(68),o=r.key,a=r.set;r.exp({defineMetadata:function(e,t,n,r){a(e,t,i(n),o(r))}})},function(e,t,n){var r=n(228),i=n(68),o=r.key,a=r.map,s=r.store;r.exp({deleteMetadata:function(e,t){var n=arguments.length<3?void 0:o(arguments[2]),r=a(i(t),n,!1);if(void 0===r||!r.delete(e))return!1;if(r.size)return!0;var u=s.get(t);return u.delete(n),!!u.size||s.delete(t)}})},function(e,t,n){var r=n(228),i=n(68),o=n(165),a=r.has,s=r.get,u=r.key,c=function(e,t,n){if(a(e,t,n))return s(e,t,n);var r=o(t);return null!==r?c(e,r,n):void 0};r.exp({getMetadata:function(e,t){return c(e,i(t),arguments.length<3?void 0:u(arguments[2]))}})},function(e,t,n){var r=n(661),i=n(669),o=n(228),a=n(68),s=n(165),u=o.keys,c=o.key,l=function(e,t){var n=u(e,t),o=s(e);if(null===o)return n;var a=l(o,t);return a.length?n.length?i(new r(n.concat(a))):a:n};o.exp({getMetadataKeys:function(e){return l(a(e),arguments.length<2?void 0:c(arguments[1]))}})},function(e,t,n){var r=n(228),i=n(68),o=r.get,a=r.key;r.exp({getOwnMetadata:function(e,t){return o(e,i(t),arguments.length<3?void 0:a(arguments[2]))}})},function(e,t,n){var r=n(228),i=n(68),o=r.keys,a=r.key;r.exp({getOwnMetadataKeys:function(e){return o(i(e),arguments.length<2?void 0:a(arguments[1]))}})},function(e,t,n){var r=n(228),i=n(68),o=n(165),a=r.has,s=r.key,u=function(e,t,n){if(a(e,t,n))return!0;var r=o(t);return null!==r&&u(e,r,n)};r.exp({hasMetadata:function(e,t){return u(e,i(t),arguments.length<3?void 0:s(arguments[2]))}})},function(e,t,n){var r=n(228),i=n(68),o=r.has,a=r.key;r.exp({hasOwnMetadata:function(e,t){return o(e,i(t),arguments.length<3?void 0:a(arguments[2]))}})},function(e,t,n){var r=n(228),i=n(68),o=n(129),a=r.key,s=r.set;r.exp({metadata:function(e,t){return function(n,r){s(e,t,(void 0!==r?i:o)(n),a(r))}}})},function(e,t,n){var r=n(24),i=n(569)(),o=n(74).process,a="process"==n(186)(o);r(r.G,{asap:function(e){var t=a&&o.domain;i(t?t.bind(e):e)}})},function(e,t,n){"use strict";var r=n(24),i=n(74),o=n(147),a=n(569)(),s=n(90)("observable"),u=n(129),c=n(68),l=n(297),f=n(298),d=n(162),p=n(257),h=p.RETURN,v=function(e){return null==e?void 0:u(e)},g=function(e){var t=e._c;t&&(e._c=void 0,t())},m=function(e){return void 0===e._o},y=function(e){m(e)||(e._o=void 0,g(e))},b=function(e,t){c(e),this._c=void 0,this._o=e,e=new x(this);try{var n=t(e),r=n;null!=n&&("function"==typeof n.unsubscribe?n=function(){r.unsubscribe()}:u(n),this._c=n)}catch(t){return void e.error(t)}m(this)&&g(this)};b.prototype=f({},{unsubscribe:function(){y(this)}});var x=function(e){this._s=e};x.prototype=f({},{next:function(e){var t=this._s;if(!m(t)){var n=t._o;try{var r=v(n.next);if(r)return r.call(n,e)}catch(e){try{y(t)}finally{throw e}}}},error:function(e){var t=this._s;if(m(t))throw e;var n=t._o;t._o=void 0;try{var r=v(n.error);if(!r)throw e;e=r.call(n,e)}catch(e){try{g(t)}finally{throw e}}return g(t),e},complete:function(e){var t=this._s;if(!m(t)){var n=t._o;t._o=void 0;try{var r=v(n.complete);e=r?r.call(n,e):void 0}catch(e){try{g(t)}finally{throw e}}return g(t),e}}});var w=function(e){l(this,w,"Observable","_f")._f=u(e)};f(w.prototype,{subscribe:function(e){return new b(e,this._f)},forEach:function(e){var t=this;return new(o.Promise||i.Promise)((function(n,r){u(e);var i=t.subscribe({next:function(t){try{return e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:n})}))}}),f(w,{from:function(e){var t="function"==typeof this?this:w,n=v(c(e)[s]);if(n){var r=c(n.call(e));return r.constructor===t?r:new t((function(e){return r.subscribe(e)}))}return new t((function(t){var n=!1;return a((function(){if(!n){try{if(p(e,!1,(function(e){if(t.next(e),n)return h}))===h)return}catch(e){if(n)throw e;return void t.error(e)}t.complete()}})),function(){n=!0}}))},of:function(){for(var e=0,t=arguments.length,n=new Array(t);e<t;)n[e]=arguments[e++];return new("function"==typeof this?this:w)((function(e){var t=!1;return a((function(){if(!t){for(var r=0;r<n.length;++r)if(e.next(n[r]),t)return;e.complete()}})),function(){t=!0}}))}}),d(w.prototype,s,(function(){return this})),r(r.G,{Observable:w}),n(296)("Observable")},function(e,t,n){var r=n(74),i=n(24),o=n(428),a=[].slice,s=/MSIE .\./.test(o),u=function(e){return function(t,n){var r=arguments.length>2,i=!!r&&a.call(arguments,2);return e(r?function(){("function"==typeof t?t:Function(t)).apply(this,i)}:t,n)}};i(i.G+i.B+i.F*s,{setTimeout:u(r.setTimeout),setInterval:u(r.setInterval)})},function(e,t,n){var r=n(24),i=n(568);r(r.G+r.B,{setImmediate:i.set,clearImmediate:i.clear})},function(e,t,n){for(var r=n(564),i=n(225),o=n(163),a=n(74),s=n(162),u=n(295),c=n(90),l=c("iterator"),f=c("toStringTag"),d=u.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=i(p),v=0;v<h.length;v++){var g,m=h[v],y=p[m],b=a[m],x=b&&b.prototype;if(x&&(x[l]||s(x,l,d),x[f]||s(x,f,m),u[m]=d,y))for(g in r)x[g]||o(x,g,r[g],!0)}},function(e,t,n){"use strict";var r=n(178),i=n(24),o=n(252),a=n(550),s=n(226),u=n(165),c=n(225),l=n(96),f=n(1155),d=n(129),p=n(257),h=n(671),v=n(423),g=n(565),m=n(80),y=n(148),b=n(92),x=n(161),w=function(e){var t=1==e,n=4==e;return function(i,o,a){var s,u,c,l=r(o,a,3),f=y(i),d=t||7==e||2==e?new("function"==typeof this?this:k):void 0;for(s in f)if(x(f,s)&&(c=l(u=f[s],s,i),e))if(t)d[s]=c;else if(c)switch(e){case 2:d[s]=u;break;case 3:return!0;case 5:return u;case 6:return s;case 7:d[c[0]]=c[1]}else if(n)return!1;return 3==e||n?n:d}},_=w(6),S=function(e){return function(t){return new O(t,e)}},O=function(e,t){this._t=y(e),this._a=c(e),this._i=0,this._k=t};function k(e){var t=s(null);return null!=e&&(h(e)?p(e,!0,(function(e,n){t[e]=n})):a(t,e)),t}v(O,"Dict",(function(){var e,t=this._t,n=this._a,r=this._k;do{if(this._i>=n.length)return this._t=void 0,g(1)}while(!x(t,e=n[this._i++]));return g(0,"keys"==r?e:"values"==r?t[e]:[e,t[e]])})),k.prototype=null,i(i.G+i.F,{Dict:k}),i(i.S,"Dict",{keys:S("keys"),values:S("values"),entries:S("entries"),forEach:w(0),map:w(1),filter:w(2),some:w(3),every:w(4),find:w(5),findKey:_,mapPairs:w(7),reduce:function(e,t,n){d(t);var r,i,o=y(e),a=c(o),s=a.length,u=0;if(arguments.length<3){if(!s)throw TypeError("Reduce of empty object with no initial value");r=o[a[u++]]}else r=Object(n);for(;s>u;)x(o,i=a[u++])&&(r=t(r,o[i],i,e));return r},keyOf:f,includes:function(e,t){return void 0!==(t==t?f(e,t):_(e,(function(e){return e!=e})))},has:x,get:function(e,t){if(x(e,t))return e[t]},set:function(e,t,n){return b&&t in Object?l.f(e,t,o(0,n)):e[t]=n,e},isDict:function(e){return m(e)&&u(e)===k.prototype}})},function(e,t,n){var r=n(225),i=n(148);e.exports=function(e,t){for(var n,o=i(e),a=r(o),s=a.length,u=0;s>u;)if(o[n=a[u++]]===t)return n}},function(e,t,n){var r=n(68),i=n(377);e.exports=n(147).getIterator=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},function(e,t,n){var r=n(74),i=n(147),o=n(24),a=n(672);o(o.G+o.F,{delay:function(e){return new(i.Promise||r.Promise)((function(t){setTimeout(a.call(t,!0),e)}))}})},function(e,t,n){var r=n(673),i=n(24);n(147)._=r._=r._||{},i(i.P+i.F,"Function",{part:n(672)})},function(e,t,n){var r=n(24);r(r.S+r.F,"Object",{isObject:n(80)})},function(e,t,n){var r=n(24);r(r.S+r.F,"Object",{classof:n(255)})},function(e,t,n){var r=n(24),i=n(674);r(r.S+r.F,"Object",{define:i})},function(e,t,n){var r=n(24),i=n(674),o=n(226);r(r.S+r.F,"Object",{make:function(e,t){return i(o(e),t)}})},function(e,t,n){"use strict";n(422)(Number,"Number",(function(e){this._l=+e,this._i=0}),(function(){var e=this._i++,t=!(e<this._l);return{done:t,value:t?void 0:e}}))},function(e,t,n){var r=n(24),i=n(573)(/[\\^$*+?.()|[\]{}]/g,"\\$&");r(r.S,"RegExp",{escape:function(e){return i(e)}})},function(e,t,n){"use strict";var r=n(24),i=n(573)(/[&<>"']/g,{"&":"&","<":"<",">":">",'"':""","'":"'"});r(r.P+r.F,"String",{escapeHTML:function(){return i(this)}})},function(e,t,n){"use strict";var r=n(24),i=n(573)(/&(?:amp|lt|gt|quot|apos);/g,{"&":"&","<":"<",">":">",""":'"',"'":"'"});r(r.P+r.F,"String",{unescapeHTML:function(){return i(this)}})},function(e,t,n){"use strict";var r={searchParams:"URLSearchParams"in self,iterable:"Symbol"in self&&"iterator"in Symbol,blob:"FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in self,arrayBuffer:"ArrayBuffer"in self};if(r.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],o=ArrayBuffer.isView||function(e){return e&&i.indexOf(Object.prototype.toString.call(e))>-1};function a(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 s(e){return"string"!=typeof e&&(e=String(e)),e}function u(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r.iterable&&(t[Symbol.iterator]=function(){return t}),t}function c(e){this.map={},e instanceof c?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 l(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function f(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function d(e){var t=new FileReader,n=f(t);return t.readAsArrayBuffer(e),n}function p(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function h(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:r.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:r.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():r.arrayBuffer&&r.blob&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=p(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):r.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||o(e))?this._bodyArrayBuffer=p(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):r.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r.blob&&(this.blob=function(){var e=l(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?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(d)}),this.text=function(){var e,t,n,r=l(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=f(t),t.readAsText(e),n;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)},r.formData&&(this.formData=function(){return this.text().then(m)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(e,t){e=a(e),t=s(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},c.prototype.delete=function(e){delete this.map[a(e)]},c.prototype.get=function(e){return e=a(e),this.has(e)?this.map[e]:null},c.prototype.has=function(e){return this.map.hasOwnProperty(a(e))},c.prototype.set=function(e,t){this.map[a(e)]=s(t)},c.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},c.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),u(e)},c.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),u(e)},c.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),u(e)},r.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var v=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(e,t){var n,r,i=(t=t||{}).body;if(e instanceof g){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new c(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=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 c(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),v.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function m(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 y(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 c(t.headers),this.url=t.url||"",this._initBody(e)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},h.call(g.prototype),h.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},y.error=function(){var e=new y(null,{status:0,statusText:""});return e.type="error",e};var b=[301,302,303,307,308];y.redirect=function(e,t){if(-1===b.indexOf(t))throw new RangeError("Invalid status code");return new y(null,{status:t,headers:{location:e}})};var x=self.DOMException;try{new x}catch(e){(x=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),x.prototype.constructor=x}function w(e,t){return new Promise((function(n,i){var o=new g(e,t);if(o.signal&&o.signal.aborted)return i(new x("Aborted","AbortError"));var a=new XMLHttpRequest;function s(){a.abort()}a.onload=function(){var e,t,r={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new c,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)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;n(new y(i,r))},a.onerror=function(){i(new TypeError("Network request failed"))},a.ontimeout=function(){i(new TypeError("Network request failed"))},a.onabort=function(){i(new x("Aborted","AbortError"))},a.open(o.method,o.url,!0),"include"===o.credentials?a.withCredentials=!0:"omit"===o.credentials&&(a.withCredentials=!1),"responseType"in a&&r.blob&&(a.responseType="blob"),o.headers.forEach((function(e,t){a.setRequestHeader(t,e)})),o.signal&&(o.signal.addEventListener("abort",s),a.onreadystatechange=function(){4===a.readyState&&o.signal.removeEventListener("abort",s)}),a.send(void 0===o._bodyInit?null:o._bodyInit)}))}w.polyfill=!0,self.fetch||(self.fetch=w,self.Headers=c,self.Request=g,self.Response=y)},function(e,t,n){(function(e){function t(e){return(t="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(e){var n=function(){try{return!!Symbol.iterator}catch(e){return!1}}(),r=function(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n&&(t[Symbol.iterator]=function(){return t}),t},i=function(e){return encodeURIComponent(e).replace(/%20/g,"+")},o=function(e){return decodeURIComponent(String(e).replace(/\+/g," "))};(function(){try{var t=e.URLSearchParams;return"a=1"===new t("?a=1").toString()&&"function"==typeof t.prototype.set}catch(e){return!1}})()||function(){var o=function(e){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var n=t(e);if("undefined"===n);else if("string"===n)""!==e&&this._fromString(e);else if(e instanceof o){var r=this;e.forEach((function(e,t){r.append(t,e)}))}else{if(null===e||"object"!==n)throw new TypeError("Unsupported input's type for URLSearchParams");if("[object Array]"===Object.prototype.toString.call(e))for(var i=0;i<e.length;i++){var a=e[i];if("[object Array]"!==Object.prototype.toString.call(a)&&2===a.length)throw new TypeError("Expected [string, any] as entry at index "+i+" of URLSearchParams's input");this.append(a[0],a[1])}else for(var s in e)e.hasOwnProperty(s)&&this.append(s,e[s])}},a=o.prototype;a.append=function(e,t){e in this._entries?this._entries[e].push(String(t)):this._entries[e]=[String(t)]},a.delete=function(e){delete this._entries[e]},a.get=function(e){return e in this._entries?this._entries[e][0]:null},a.getAll=function(e){return e in this._entries?this._entries[e].slice(0):[]},a.has=function(e){return e in this._entries},a.set=function(e,t){this._entries[e]=[String(t)]},a.forEach=function(e,t){var n;for(var r in this._entries)if(this._entries.hasOwnProperty(r)){n=this._entries[r];for(var i=0;i<n.length;i++)e.call(t,n[i],r,this)}},a.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),r(e)},a.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),r(e)},a.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),r(e)},n&&(a[Symbol.iterator]=a.entries),a.toString=function(){var e=[];return this.forEach((function(t,n){e.push(i(n)+"="+i(t))})),e.join("&")},e.URLSearchParams=o}();var a=e.URLSearchParams.prototype;"function"!=typeof a.sort&&(a.sort=function(){var e=this,t=[];this.forEach((function(n,r){t.push([r,n]),e._entries||e.delete(r)})),t.sort((function(e,t){return e[0]<t[0]?-1:e[0]>t[0]?1:0})),e._entries&&(e._entries={});for(var n=0;n<t.length;n++)this.append(t[n][0],t[n][1])}),"function"!=typeof a._fromString&&Object.defineProperty(a,"_fromString",{enumerable:!1,configurable:!1,writable:!1,value:function(e){if(this._entries)this._entries={};else{var t=[];this.forEach((function(e,n){t.push(n)}));for(var n=0;n<t.length;n++)this.delete(t[n])}var r,i=(e=e.replace(/^\?/,"")).split("&");for(n=0;n<i.length;n++)r=i[n].split("="),this.append(o(r[0]),r.length>1?o(r[1]):"")}})}(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this),function(e){if(function(){try{var t=new e.URL("b","http://a");return t.pathname="c%20d","http://a/c%20d"===t.href&&t.searchParams}catch(e){return!1}}()||function(){var t=e.URL,n=function(t,n){"string"!=typeof t&&(t=String(t));var r,i=document;if(n&&(void 0===e.location||n!==e.location.href)){(r=(i=document.implementation.createHTMLDocument("")).createElement("base")).href=n,i.head.appendChild(r);try{if(0!==r.href.indexOf(n))throw new Error(r.href)}catch(e){throw new Error("URL unable to set base "+n+" due to "+e)}}var o=i.createElement("a");if(o.href=t,r&&(i.body.appendChild(o),o.href=o.href),":"===o.protocol||!/:/.test(o.href))throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:o});var a=new e.URLSearchParams(this.search),s=!0,u=!0,c=this;["append","delete","set"].forEach((function(e){var t=a[e];a[e]=function(){t.apply(a,arguments),s&&(u=!1,c.search=a.toString(),u=!0)}})),Object.defineProperty(this,"searchParams",{value:a,enumerable:!0});var l=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==l&&(l=this.search,u&&(s=!1,this.searchParams._fromString(this.search),s=!0))}})},r=n.prototype;["hash","host","hostname","port","protocol"].forEach((function(e){!function(e){Object.defineProperty(r,e,{get:function(){return this._anchorElement[e]},set:function(t){this._anchorElement[e]=t},enumerable:!0})}(e)})),Object.defineProperty(r,"search",{get:function(){return this._anchorElement.search},set:function(e){this._anchorElement.search=e,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(r,{toString:{get:function(){var e=this;return function(){return e.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(e){this._anchorElement.href=e,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(e){this._anchorElement.pathname=e},enumerable:!0},origin:{get:function(){var e={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],t=this._anchorElement.port!=e&&""!==this._anchorElement.port;return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(t?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(e){},enumerable:!0},username:{get:function(){return""},set:function(e){},enumerable:!0}}),n.createObjectURL=function(e){return t.createObjectURL.apply(t,arguments)},n.revokeObjectURL=function(e){return t.revokeObjectURL.apply(t,arguments)},e.URL=n}(),void 0!==e.location&&!("origin"in e.location)){var t=function(){return e.location.protocol+"//"+e.location.hostname+(e.location.port?":"+e.location.port:"")};try{Object.defineProperty(e.location,"origin",{get:t,enumerable:!0})}catch(n){setInterval((function(){e.location.origin=t()}),100)}}}(void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:this)}).call(this,n(189))},function(e,t,n){"use strict"; /** @license React v17.0.2 * 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(389),i=60103,o=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,s=60110,u=60112;t.Suspense=60113;var c=60115,l=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;i=f("react.element"),o=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),a=f("react.provider"),s=f("react.context"),u=f("react.forward_ref"),t.Suspense=f("react.suspense"),c=f("react.memo"),l=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function p(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 h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v={};function g(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}function m(){}function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||h}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},m.prototype=g.prototype;var b=y.prototype=new m;b.constructor=y,r(b,g.prototype),b.isPureReactComponent=!0;var x={current:null},w=Object.prototype.hasOwnProperty,_={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var r,o={},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)w.call(t,r)&&!_.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){for(var c=Array(u),l=0;l<u;l++)c[l]=arguments[l+2];o.children=c}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===o[r]&&(o[r]=u[r]);return{$$typeof:i,type:e,key:a,ref:s,props:o,_owner:x.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===i}var k=/\/+/g;function E(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 j(e,t,n,r,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var u=!1;if(null===e)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case i:case o:u=!0}}if(u)return a=a(u=e),e=""===r?"."+E(u,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(k,"$&/")+"/"),j(a,t,n,"",(function(e){return e}))):null!=a&&(O(a)&&(a=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||u&&u.key===a.key?"":(""+a.key).replace(k,"$&/")+"/")+e)),t.push(a)),1;if(u=0,r=""===r?".":r+":",Array.isArray(e))for(var c=0;c<e.length;c++){var l=r+E(s=e[c],c);u+=j(s,t,n,l,a)}else if("function"==typeof(l=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e)))for(e=l.call(e),c=0;!(s=e.next()).done;)u+=j(s=s.value,t,n,l=r+E(s,c++),a);else if("object"===s)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return u}function T(e,t,n){if(null==e)return e;var r=[],i=0;return j(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function C(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,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)}))}if(1===e._status)return e._result;throw e._result}var A={current:null};function P(){var e=A.current;if(null===e)throw Error(p(321));return e}var M={ReactCurrentDispatcher:A,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:x,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:T,forEach:function(e,t,n){T(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return T(e,(function(){t++})),t},toArray:function(e){return T(e,(function(e){return e}))||[]},only:function(e){if(!O(e))throw Error(p(143));return e}},t.Component=g,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=M,t.cloneElement=function(e,t,n){if(null==e)throw Error(p(267,e));var o=r({},e.props),a=e.key,s=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,u=x.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in t)w.call(t,l)&&!_.hasOwnProperty(l)&&(o[l]=void 0===t[l]&&void 0!==c?c[l]:t[l])}var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){c=Array(l);for(var f=0;f<l;f++)c[f]=arguments[f+2];o.children=c}return{$$typeof:i,type:e.type,key:a,ref:s,props:o,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=O,t.lazy=function(e){return{$$typeof:l,_payload:{_status:-1,_result:e},_init:C}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return P().useCallback(e,t)},t.useContext=function(e,t){return P().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return P().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return P().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return P().useLayoutEffect(e,t)},t.useMemo=function(e,t){return P().useMemo(e,t)},t.useReducer=function(e,t,n){return P().useReducer(e,t,n)},t.useRef=function(e){return P().useRef(e)},t.useState=function(e){return P().useState(e)},t.version="17.0.2"},function(e,t,n){"use strict"; /** @license React v17.0.2 * 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(2),i=n(389),o=n(1171);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=new Set,u={};function c(e,t){l(e,t),l(e+"Capture",t)}function l(e,t){for(u[e]=t,e=0;e<t.length;e++)s.add(t[e])}var f=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=/^[: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]*$/,p=Object.prototype.hasOwnProperty,h={},v={};function g(e,t,n,r,i,o,a){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,this.removeEmptyString=a}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];m[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){m[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function x(e,t,n,r){var i=m.hasOwnProperty(t)?m[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!!p.call(v,e)||!p.call(h,e)&&(d.test(e)?v[e]=!0:(h[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))))}"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(y,b);m[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);m[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,b);m[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=60103,S=60106,O=60107,k=60108,E=60114,j=60109,T=60110,C=60112,A=60113,P=60120,M=60115,I=60116,R=60121,D=60128,L=60129,N=60130,F=60131;if("function"==typeof Symbol&&Symbol.for){var B=Symbol.for;_=B("react.element"),S=B("react.portal"),O=B("react.fragment"),k=B("react.strict_mode"),E=B("react.profiler"),j=B("react.provider"),T=B("react.context"),C=B("react.forward_ref"),A=B("react.suspense"),P=B("react.suspense_list"),M=B("react.memo"),I=B("react.lazy"),R=B("react.block"),B("react.scope"),D=B("react.opaque.id"),L=B("react.debug_trace_mode"),N=B("react.offscreen"),F=B("react.legacy_hidden")}var U,z="function"==typeof Symbol&&Symbol.iterator;function V(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=z&&e[z]||e["@@iterator"])?e:null}function H(e){if(void 0===U)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);U=t&&t[1]||""}return"\n"+U+e}var W=!1;function q(e,t){if(!e||W)return"";W=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var i=e.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&0<=s);break}}}finally{W=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?H(e):""}function G(e){switch(e.tag){case 5:return H(e.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return e=q(e.type,!1);case 11:return e=q(e.type.render,!1);case 22:return e=q(e.type._render,!1);case 1:return e=q(e.type,!0);default:return""}}function Y(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 O:return"Fragment";case S:return"Portal";case E:return"Profiler";case k:return"StrictMode";case A:return"Suspense";case P:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case j:return(e._context.displayName||"Context")+".Provider";case C:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case M:return Y(e.type);case R:return Y(e._render);case I:t=e._payload,e=e._init;try{return Y(e(t))}catch(e){}}return null}function K(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function $(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function X(e){e._valueTracker||(e._valueTracker=function(e){var t=$(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 Q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Z(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 J(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=K(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 te(e,t){null!=(t=t.checked)&&x(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=K(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")?ie(e,t.type,n):t.hasOwnProperty("defaultValue")&&ie(e,t.type,K(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(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 ie(e,t,n){"number"===t&&Z(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function oe(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 ae(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=""+K(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 se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ue(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:K(n)}}function ce(e,t){var n=K(t.value),r=K(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 le(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function de(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 pe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?de(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var he,ve=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==fe.svg||"innerHTML"in e)e.innerHTML=t;else{for((he=he||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=he.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function ge(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var me={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},ye=["Webkit","ms","Moz","O"];function be(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||me.hasOwnProperty(e)&&me[e]?(""+t).trim():t+"px"}function xe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=be(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(me).forEach((function(e){ye.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),me[t]=me[e]}))}));var we=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 _e(e,t){if(t){if(we[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 Se(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}}function Oe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,Ee=null,je=null;function Te(e){if(e=Qr(e)){if("function"!=typeof ke)throw Error(a(280));var t=e.stateNode;t&&(t=Jr(t),ke(e.stateNode,e.type,t))}}function Ce(e){Ee?je?je.push(e):je=[e]:Ee=e}function Ae(){if(Ee){var e=Ee,t=je;if(je=Ee=null,Te(e),t)for(e=0;e<t.length;e++)Te(t[e])}}function Pe(e,t){return e(t)}function Me(e,t,n,r,i){return e(t,n,r,i)}function Ie(){}var Re=Pe,De=!1,Le=!1;function Ne(){null===Ee&&null===je||(Ie(),Ae())}function Fe(e,t){var n=e.stateNode;if(null===n)return null;var r=Jr(n);if(null===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}var Be=!1;if(f)try{var Ue={};Object.defineProperty(Ue,"passive",{get:function(){Be=!0}}),window.addEventListener("test",Ue,Ue),window.removeEventListener("test",Ue,Ue)}catch(e){Be=!1}function ze(e,t,n,r,i,o,a,s,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var Ve=!1,He=null,We=!1,qe=null,Ge={onError:function(e){Ve=!0,He=e}};function Ye(e,t,n,r,i,o,a,s,u){Ve=!1,He=null,ze.apply(Ge,arguments)}function Ke(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function $e(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 Xe(e){if(Ke(e)!==e)throw Error(a(188))}function Qe(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ke(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 Xe(i),e;if(o===r)return Xe(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,u=i.child;u;){if(u===n){s=!0,n=i,r=o;break}if(u===r){s=!0,r=i,n=o;break}u=u.sibling}if(!s){for(u=o.child;u;){if(u===n){s=!0,n=o,r=i;break}if(u===r){s=!0,r=o,n=i;break}u=u.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 Ze(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var Je,et,tt,nt,rt=!1,it=[],ot=null,at=null,st=null,ut=new Map,ct=new Map,lt=[],ft="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function dt(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function pt(e,t){switch(e){case"focusin":case"focusout":ot=null;break;case"dragenter":case"dragleave":at=null;break;case"mouseover":case"mouseout":st=null;break;case"pointerover":case"pointerout":ut.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ct.delete(t.pointerId)}}function ht(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=dt(t,n,r,i,o),null!==t&&(null!==(t=Qr(t))&&et(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function vt(e){var t=Xr(e.target);if(null!==t){var n=Ke(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=$e(n)))return e.blockedOn=t,void nt(e.lanePriority,(function(){o.unstable_runWithPriority(e.priority,(function(){tt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function gt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Qr(n))&&et(t),e.blockedOn=n,!1;t.shift()}return!0}function mt(e,t,n){gt(e)&&n.delete(t)}function yt(){for(rt=!1;0<it.length;){var e=it[0];if(null!==e.blockedOn){null!==(e=Qr(e.blockedOn))&&Je(e);break}for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&it.shift()}null!==ot&>(ot)&&(ot=null),null!==at&>(at)&&(at=null),null!==st&>(st)&&(st=null),ut.forEach(mt),ct.forEach(mt)}function bt(e,t){e.blockedOn===t&&(e.blockedOn=null,rt||(rt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,yt)))}function xt(e){function t(t){return bt(t,e)}if(0<it.length){bt(it[0],e);for(var n=1;n<it.length;n++){var r=it[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==ot&&bt(ot,e),null!==at&&bt(at,e),null!==st&&bt(st,e),ut.forEach(t),ct.forEach(t),n=0;n<lt.length;n++)(r=lt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<lt.length&&null===(n=lt[0]).blockedOn;)vt(n),null===n.blockedOn&<.shift()}function wt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _t={animationend:wt("Animation","AnimationEnd"),animationiteration:wt("Animation","AnimationIteration"),animationstart:wt("Animation","AnimationStart"),transitionend:wt("Transition","TransitionEnd")},St={},Ot={};function kt(e){if(St[e])return St[e];if(!_t[e])return e;var t,n=_t[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ot)return St[e]=n[t];return e}f&&(Ot=document.createElement("div").style,"AnimationEvent"in window||(delete _t.animationend.animation,delete _t.animationiteration.animation,delete _t.animationstart.animation),"TransitionEvent"in window||delete _t.transitionend.transition);var Et=kt("animationend"),jt=kt("animationiteration"),Tt=kt("animationstart"),Ct=kt("transitionend"),At=new Map,Pt=new Map,Mt=["abort","abort",Et,"animationEnd",jt,"animationIteration",Tt,"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",Ct,"transitionEnd","waiting","waiting"];function It(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),Pt.set(r,t),At.set(r,i),c(i,[r])}}(0,o.unstable_now)();var Rt=8;function Dt(e){if(0!=(1&e))return Rt=15,1;if(0!=(2&e))return Rt=14,2;if(0!=(4&e))return Rt=13,4;var t=24&e;return 0!==t?(Rt=12,t):0!=(32&e)?(Rt=11,32):0!==(t=192&e)?(Rt=10,t):0!=(256&e)?(Rt=9,256):0!==(t=3584&e)?(Rt=8,t):0!=(4096&e)?(Rt=7,4096):0!==(t=4186112&e)?(Rt=6,t):0!==(t=62914560&e)?(Rt=5,t):67108864&e?(Rt=4,67108864):0!=(134217728&e)?(Rt=3,134217728):0!==(t=805306368&e)?(Rt=2,t):0!=(1073741824&e)?(Rt=1,1073741824):(Rt=8,e)}function Lt(e,t){var n=e.pendingLanes;if(0===n)return Rt=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(0!==o)r=o,i=Rt=15;else if(0!==(o=134217727&n)){var u=o&~a;0!==u?(r=Dt(u),i=Rt):0!==(s&=o)&&(r=Dt(s),i=Rt)}else 0!==(o=n&~a)?(r=Dt(o),i=Rt):0!==s&&(r=Dt(s),i=Rt);if(0===r)return 0;if(r=n&((0>(r=31-Vt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&a)){if(Dt(t),i<=Rt)return t;Rt=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-Vt(t)),r|=e[n],t&=~i;return r}function Nt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ft(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Bt(24&~t))?Ft(10,t):e;case 10:return 0===(e=Bt(192&~t))?Ft(8,t):e;case 8:return 0===(e=Bt(3584&~t))&&(0===(e=Bt(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Bt(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function Bt(e){return e&-e}function Ut(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function zt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Vt(t)]=n}var Vt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Ht(e)/Wt|0)|0},Ht=Math.log,Wt=Math.LN2;var qt=o.unstable_UserBlockingPriority,Gt=o.unstable_runWithPriority,Yt=!0;function Kt(e,t,n,r){De||Ie();var i=Xt,o=De;De=!0;try{Me(i,e,t,n,r)}finally{(De=o)||Ne()}}function $t(e,t,n,r){Gt(qt,Xt.bind(null,e,t,n,r))}function Xt(e,t,n,r){var i;if(Yt)if((i=0==(4&t))&&0<it.length&&-1<ft.indexOf(e))e=dt(null,e,t,n,r),it.push(e);else{var o=Qt(e,t,n,r);if(null===o)i&&pt(e,r);else{if(i){if(-1<ft.indexOf(e))return e=dt(o,e,t,n,r),void it.push(e);if(function(e,t,n,r,i){switch(t){case"focusin":return ot=ht(ot,e,t,n,r,i),!0;case"dragenter":return at=ht(at,e,t,n,r,i),!0;case"mouseover":return st=ht(st,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return ut.set(o,ht(ut.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,ct.set(o,ht(ct.get(o)||null,e,t,n,r,i)),!0}return!1}(o,e,t,n,r))return;pt(e,r)}Cr(e,t,r,null,n)}}}function Qt(e,t,n,r){var i=Oe(r);if(null!==(i=Xr(i))){var o=Ke(i);if(null===o)i=null;else{var a=o.tag;if(13===a){if(null!==(i=$e(o)))return i;i=null}else if(3===a){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return Cr(e,t,r,i,n),null}var Zt=null,Jt=null,en=null;function tn(){if(en)return en;var e,t,n=Jt,r=n.length,i="value"in Zt?Zt.value:Zt.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 en=i.slice(e,1<t?1-t:void 0)}function nn(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}function rn(){return!0}function on(){return!1}function an(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?rn:on,this.isPropagationStopped=on,this}return i(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=rn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=rn)},persist:function(){},isPersistent:rn}),t}var sn,un,cn,ln={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fn=an(ln),dn=i({},ln,{view:0,detail:0}),pn=an(dn),hn=i({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(sn=e.screenX-cn.screenX,un=e.screenY-cn.screenY):un=sn=0,cn=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:un}}),vn=an(hn),gn=an(i({},hn,{dataTransfer:0})),mn=an(i({},dn,{relatedTarget:0})),yn=an(i({},ln,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=an(i({},ln,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),xn=an(i({},ln,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_n={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"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function On(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function kn(){return On}var En=an(i({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=nn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?_n[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kn,charCode:function(e){return"keypress"===e.type?nn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?nn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),jn=an(i({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tn=an(i({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kn})),Cn=an(i({},ln,{propertyName:0,elapsedTime:0,pseudoElement:0})),An=an(i({},hn,{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:0,deltaMode:0})),Pn=[9,13,27,32],Mn=f&&"CompositionEvent"in window,In=null;f&&"documentMode"in document&&(In=document.documentMode);var Rn=f&&"TextEvent"in window&&!In,Dn=f&&(!Mn||In&&8<In&&11>=In),Ln=String.fromCharCode(32),Nn=!1;function Fn(e,t){switch(e){case"keyup":return-1!==Pn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Un=!1;var zn={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 Vn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!zn[e.type]:"textarea"===t}function Hn(e,t,n,r){Ce(r),0<(t=Pr(t,"onChange")).length&&(n=new fn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Wn=null,qn=null;function Gn(e){Sr(e,0)}function Yn(e){if(Q(Zr(e)))return e}function Kn(e,t){if("change"===e)return t}var $n=!1;if(f){var Xn;if(f){var Qn="oninput"in document;if(!Qn){var Zn=document.createElement("div");Zn.setAttribute("oninput","return;"),Qn="function"==typeof Zn.oninput}Xn=Qn}else Xn=!1;$n=Xn&&(!document.documentMode||9<document.documentMode)}function Jn(){Wn&&(Wn.detachEvent("onpropertychange",er),qn=Wn=null)}function er(e){if("value"===e.propertyName&&Yn(qn)){var t=[];if(Hn(t,qn,e,Oe(e)),e=Gn,De)e(t);else{De=!0;try{Pe(e,t)}finally{De=!1,Ne()}}}}function tr(e,t,n){"focusin"===e?(Jn(),qn=n,(Wn=t).attachEvent("onpropertychange",er)):"focusout"===e&&Jn()}function nr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yn(qn)}function rr(e,t){if("click"===e)return Yn(t)}function ir(e,t){if("input"===e||"change"===e)return Yn(t)}var or="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},ar=Object.prototype.hasOwnProperty;function sr(e,t){if(or(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(!ar.call(t,n[r])||!or(e[n[r]],t[n[r]]))return!1;return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(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=ur(r)}}function lr(){for(var e=window,t=Z();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Z((e=t.contentWindow).document)}return t}function fr(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 dr=f&&"documentMode"in document&&11>=document.documentMode,pr=null,hr=null,vr=null,gr=!1;function mr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;gr||null==pr||pr!==Z(r)||("selectionStart"in(r=pr)&&fr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&sr(vr,r)||(vr=r,0<(r=Pr(hr,"onSelect")).length&&(t=new fn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=pr)))}It("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),It("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),It(Mt,2);for(var yr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),br=0;br<yr.length;br++)Pt.set(yr[br],0);l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),wr=new Set("cancel close invalid load scroll toggle".split(" ").concat(xr));function _r(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,s,u,c){if(Ye.apply(this,arguments),Ve){if(!Ve)throw Error(a(198));var l=He;Ve=!1,He=null,We||(We=!0,qe=l)}}(r,t,void 0,e),e.currentTarget=null}function Sr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],u=s.instance,c=s.currentTarget;if(s=s.listener,u!==o&&i.isPropagationStopped())break e;_r(i,s,c),o=u}else for(a=0;a<r.length;a++){if(u=(s=r[a]).instance,c=s.currentTarget,s=s.listener,u!==o&&i.isPropagationStopped())break e;_r(i,s,c),o=u}}}if(We)throw e=qe,We=!1,qe=null,e}function Or(e,t){var n=ei(t),r=e+"__bubble";n.has(r)||(Tr(t,e,2,!1),n.add(r))}var kr="_reactListening"+Math.random().toString(36).slice(2);function Er(e){e[kr]||(e[kr]=!0,s.forEach((function(t){wr.has(t)||jr(t,!1,e,null),jr(t,!0,e,null)})))}function jr(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=n;if("selectionchange"===e&&9!==n.nodeType&&(o=n.ownerDocument),null!==r&&!t&&wr.has(e)){if("scroll"!==e)return;i|=2,o=r}var a=ei(o),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(i|=4),Tr(o,e,i,t),a.add(s))}function Tr(e,t,n,r){var i=Pt.get(t);switch(void 0===i?2:i){case 0:i=Kt;break;case 1:i=$t;break;default:i=Xt}n=i.bind(null,t,n,e),i=void 0,!Be||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Cr(e,t,n,r,i){var o=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var u=a.tag;if((3===u||4===u)&&((u=a.stateNode.containerInfo)===i||8===u.nodeType&&u.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=Xr(s)))return;if(5===(u=a.tag)||6===u){r=o=a;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(Le)return e(t,n);Le=!0;try{Re(e,t,n)}finally{Le=!1,Ne()}}((function(){var r=o,i=Oe(n),a=[];e:{var s=At.get(e);if(void 0!==s){var u=fn,c=e;switch(e){case"keypress":if(0===nn(n))break e;case"keydown":case"keyup":u=En;break;case"focusin":c="focus",u=mn;break;case"focusout":c="blur",u=mn;break;case"beforeblur":case"afterblur":u=mn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=vn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Tn;break;case Et:case jt:case Tt:u=yn;break;case Ct:u=Cn;break;case"scroll":u=pn;break;case"wheel":u=An;break;case"copy":case"cut":case"paste":u=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=jn}var l=0!=(4&t),f=!l&&"scroll"===e,d=l?null!==s?s+"Capture":null:s;l=[];for(var p,h=r;null!==h;){var v=(p=h).stateNode;if(5===p.tag&&null!==v&&(p=v,null!==d&&(null!=(v=Fe(h,d))&&l.push(Ar(h,v,p)))),f)break;h=h.return}0<l.length&&(s=new u(s,c,null,n,i),a.push({event:s,listeners:l}))}}if(0==(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(c=n.relatedTarget||n.fromElement)||!Xr(c)&&!c[Kr])&&(u||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,u?(u=r,null!==(c=(c=n.relatedTarget||n.toElement)?Xr(c):null)&&(c!==(f=Ke(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(u=null,c=r),u!==c)){if(l=vn,v="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(l=jn,v="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==u?s:Zr(u),p=null==c?s:Zr(c),(s=new l(v,h+"leave",u,n,i)).target=f,s.relatedTarget=p,v=null,Xr(i)===r&&((l=new l(d,h+"enter",c,n,i)).target=p,l.relatedTarget=f,v=l),f=v,u&&c)e:{for(d=c,h=0,p=l=u;p;p=Mr(p))h++;for(p=0,v=d;v;v=Mr(v))p++;for(;0<h-p;)l=Mr(l),h--;for(;0<p-h;)d=Mr(d),p--;for(;h--;){if(l===d||null!==d&&l===d.alternate)break e;l=Mr(l),d=Mr(d)}l=null}else l=null;null!==u&&Ir(a,s,u,l,!1),null!==c&&null!==f&&Ir(a,f,c,l,!0)}if("select"===(u=(s=r?Zr(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===u&&"file"===s.type)var g=Kn;else if(Vn(s))if($n)g=ir;else{g=nr;var m=tr}else(u=s.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=rr);switch(g&&(g=g(e,r))?Hn(a,g,n,i):(m&&m(e,s,r),"focusout"===e&&(m=s._wrapperState)&&m.controlled&&"number"===s.type&&ie(s,"number",s.value)),m=r?Zr(r):window,e){case"focusin":(Vn(m)||"true"===m.contentEditable)&&(pr=m,hr=r,vr=null);break;case"focusout":vr=hr=pr=null;break;case"mousedown":gr=!0;break;case"contextmenu":case"mouseup":case"dragend":gr=!1,mr(a,n,i);break;case"selectionchange":if(dr)break;case"keydown":case"keyup":mr(a,n,i)}var y;if(Mn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Un?Fn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Dn&&"ko"!==n.locale&&(Un||"onCompositionStart"!==b?"onCompositionEnd"===b&&Un&&(y=tn()):(Jt="value"in(Zt=i)?Zt.value:Zt.textContent,Un=!0)),0<(m=Pr(r,b)).length&&(b=new xn(b,e,null,n,i),a.push({event:b,listeners:m}),y?b.data=y:null!==(y=Bn(n))&&(b.data=y))),(y=Rn?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:(Nn=!0,Ln);case"textInput":return(e=t.data)===Ln&&Nn?null:e;default:return null}}(e,n):function(e,t){if(Un)return"compositionend"===e||!Mn&&Fn(e,t)?(e=tn(),en=Jt=Zt=null,Un=!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 Dn&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))&&(0<(r=Pr(r,"onBeforeInput")).length&&(i=new xn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y))}Sr(a,t)}))}function Ar(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Pr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Fe(e,n))&&r.unshift(Ar(e,o,i)),null!=(o=Fe(e,t))&&r.push(Ar(e,o,i))),e=e.return}return r}function Mr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Ir(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,u=s.alternate,c=s.stateNode;if(null!==u&&u===r)break;5===s.tag&&null!==c&&(s=c,i?null!=(u=Fe(n,o))&&a.unshift(Ar(n,u,s)):i||null!=(u=Fe(n,o))&&a.push(Ar(n,u,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function Rr(){}var Dr=null,Lr=null;function Nr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Fr(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 Br="function"==typeof setTimeout?setTimeout:void 0,Ur="function"==typeof clearTimeout?clearTimeout:void 0;function zr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Vr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Hr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Wr=0;var qr=Math.random().toString(36).slice(2),Gr="__reactFiber$"+qr,Yr="__reactProps$"+qr,Kr="__reactContainer$"+qr,$r="__reactEvents$"+qr;function Xr(e){var t=e[Gr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Kr]||n[Gr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Hr(e);null!==e;){if(n=e[Gr])return n;e=Hr(e)}return t}n=(e=n).parentNode}return null}function Qr(e){return!(e=e[Gr]||e[Kr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Zr(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function Jr(e){return e[Yr]||null}function ei(e){var t=e[$r];return void 0===t&&(t=e[$r]=new Set),t}var ti=[],ni=-1;function ri(e){return{current:e}}function ii(e){0>ni||(e.current=ti[ni],ti[ni]=null,ni--)}function oi(e,t){ni++,ti[ni]=e.current,e.current=t}var ai={},si=ri(ai),ui=ri(!1),ci=ai;function li(e,t){var n=e.type.contextTypes;if(!n)return ai;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 fi(e){return null!=(e=e.childContextTypes)}function di(){ii(ui),ii(si)}function pi(e,t,n){if(si.current!==ai)throw Error(a(168));oi(si,t),oi(ui,n)}function hi(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,Y(t)||"Unknown",o));return i({},n,r)}function vi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ai,ci=si.current,oi(si,e),oi(ui,ui.current),!0}function gi(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=hi(e,t,ci),r.__reactInternalMemoizedMergedChildContext=e,ii(ui),ii(si),oi(si,e)):ii(ui),oi(ui,n)}var mi=null,yi=null,bi=o.unstable_runWithPriority,xi=o.unstable_scheduleCallback,wi=o.unstable_cancelCallback,_i=o.unstable_shouldYield,Si=o.unstable_requestPaint,Oi=o.unstable_now,ki=o.unstable_getCurrentPriorityLevel,Ei=o.unstable_ImmediatePriority,ji=o.unstable_UserBlockingPriority,Ti=o.unstable_NormalPriority,Ci=o.unstable_LowPriority,Ai=o.unstable_IdlePriority,Pi={},Mi=void 0!==Si?Si:function(){},Ii=null,Ri=null,Di=!1,Li=Oi(),Ni=1e4>Li?Oi:function(){return Oi()-Li};function Fi(){switch(ki()){case Ei:return 99;case ji:return 98;case Ti:return 97;case Ci:return 96;case Ai:return 95;default:throw Error(a(332))}}function Bi(e){switch(e){case 99:return Ei;case 98:return ji;case 97:return Ti;case 96:return Ci;case 95:return Ai;default:throw Error(a(332))}}function Ui(e,t){return e=Bi(e),bi(e,t)}function zi(e,t,n){return e=Bi(e),xi(e,t,n)}function Vi(){if(null!==Ri){var e=Ri;Ri=null,wi(e)}Hi()}function Hi(){if(!Di&&null!==Ii){Di=!0;var e=0;try{var t=Ii;Ui(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Ii=null}catch(t){throw null!==Ii&&(Ii=Ii.slice(e+1)),xi(Ei,Vi),t}finally{Di=!1}}}var Wi=w.ReactCurrentBatchConfig;function qi(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}return t}var Gi=ri(null),Yi=null,Ki=null,$i=null;function Xi(){$i=Ki=Yi=null}function Qi(e){var t=Gi.current;ii(Gi),e.type._context._currentValue=t}function Zi(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function Ji(e,t){Yi=e,$i=Ki=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Pa=!0),e.firstContext=null)}function eo(e,t){if($i!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||($i=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Ki){if(null===Yi)throw Error(a(308));Ki=t,Yi.dependencies={lanes:0,firstContext:t,responders:null}}else Ki=Ki.next=t;return e._currentValue}var to=!1;function no(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ro(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function io(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function oo(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 ao(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function so(e,t,n,r){var o=e.updateQueue;to=!1;var a=o.firstBaseUpdate,s=o.lastBaseUpdate,u=o.shared.pending;if(null!==u){o.shared.pending=null;var c=u,l=c.next;c.next=null,null===s?a=l:s.next=l,s=c;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==s&&(null===d?f.firstBaseUpdate=l:d.next=l,f.lastBaseUpdate=c)}}if(null!==a){for(d=o.baseState,s=0,f=l=c=null;;){u=a.lane;var p=a.eventTime;if((r&u)===u){null!==f&&(f=f.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var h=e,v=a;switch(u=t,p=n,v.tag){case 1:if("function"==typeof(h=v.payload)){d=h.call(p,d,u);break e}d=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null==(u="function"==typeof(h=v.payload)?h.call(p,d,u):h))break e;d=i({},d,u);break e;case 2:to=!0}}null!==a.callback&&(e.flags|=32,null===(u=o.effects)?o.effects=[a]:u.push(a))}else p={eventTime:p,lane:u,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===f?(l=f=p,c=d):f=f.next=p,s|=u;if(null===(a=a.next)){if(null===(u=o.shared.pending))break;a=u.next,u.next=null,o.lastBaseUpdate=u,o.shared.pending=null}}null===f&&(c=d),o.baseState=c,o.firstBaseUpdate=l,o.lastBaseUpdate=f,Rs|=s,e.lanes=s,e.memoizedState=d}}function uo(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=n,"function"!=typeof i)throw Error(a(191,i));i.call(r)}}}var co=(new r.Component).refs;function lo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:i({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var fo={isMounted:function(e){return!!(e=e._reactInternals)&&Ke(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ou(),i=au(e),o=io(r,i);o.payload=t,null!=n&&(o.callback=n),oo(e,o),su(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ou(),i=au(e),o=io(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),oo(e,o),su(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ou(),r=au(e),i=io(n,r);i.tag=2,null!=t&&(i.callback=t),oo(e,i),su(e,r,n)}};function po(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!sr(n,r)||!sr(i,o))}function ho(e,t,n){var r=!1,i=ai,o=t.contextType;return"object"==typeof o&&null!==o?o=eo(o):(i=fi(t)?ci:si.current,o=(r=null!=(r=t.contextTypes))?li(e,i):ai),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=fo,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function vo(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&&fo.enqueueReplaceState(t,t.state,null)}function go(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=co,no(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=eo(o):(o=fi(t)?ci:si.current,i.context=li(e,o)),so(e,n,i,r),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(lo(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&&fo.enqueueReplaceState(i,i.state,null),so(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4)}var mo=Array.isArray;function yo(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===co&&(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 bo(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 xo(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.flags=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=Bu(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.flags=2,n):r:(t.flags=2,n):n}function s(t){return e&&null===t.alternate&&(t.flags=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Hu(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=yo(e,t,n),r.return=e,r):((r=Uu(n.type,n.key,n.props,null,e.mode,r)).ref=yo(e,t,n),r.return=e,r)}function l(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Wu(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,o){return null===t||7!==t.tag?((t=zu(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Hu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case _:return(n=Uu(t.type,t.key,t.props,null,e.mode,n)).ref=yo(e,null,t),n.return=e,n;case S:return(t=Wu(t,e.mode,n)).return=e,t}if(mo(t)||V(t))return(t=zu(t,e.mode,n,null)).return=e,t;bo(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:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case _:return n.key===i?n.type===O?f(e,t,n.props.children,r,i):c(e,t,n,r):null;case S:return n.key===i?l(e,t,n,r):null}if(mo(n)||V(n))return null!==i?null:f(e,t,n,r,null);bo(e,n)}return null}function h(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return u(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===O?f(t,e,r.props.children,i,r.key):c(t,e,r,i);case S:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(mo(r)||V(r))return f(t,e=e.get(n)||null,r,i,null);bo(t,r)}return null}function v(i,a,s,u){for(var c=null,l=null,f=a,v=a=0,g=null;null!==f&&v<s.length;v++){f.index>v?(g=f,f=null):g=f.sibling;var m=p(i,f,s[v],u);if(null===m){null===f&&(f=g);break}e&&f&&null===m.alternate&&t(i,f),a=o(m,a,v),null===l?c=m:l.sibling=m,l=m,f=g}if(v===s.length)return n(i,f),c;if(null===f){for(;v<s.length;v++)null!==(f=d(i,s[v],u))&&(a=o(f,a,v),null===l?c=f:l.sibling=f,l=f);return c}for(f=r(i,f);v<s.length;v++)null!==(g=h(f,i,v,s[v],u))&&(e&&null!==g.alternate&&f.delete(null===g.key?v:g.key),a=o(g,a,v),null===l?c=g:l.sibling=g,l=g);return e&&f.forEach((function(e){return t(i,e)})),c}function g(i,s,u,c){var l=V(u);if("function"!=typeof l)throw Error(a(150));if(null==(u=l.call(u)))throw Error(a(151));for(var f=l=null,v=s,g=s=0,m=null,y=u.next();null!==v&&!y.done;g++,y=u.next()){v.index>g?(m=v,v=null):m=v.sibling;var b=p(i,v,y.value,c);if(null===b){null===v&&(v=m);break}e&&v&&null===b.alternate&&t(i,v),s=o(b,s,g),null===f?l=b:f.sibling=b,f=b,v=m}if(y.done)return n(i,v),l;if(null===v){for(;!y.done;g++,y=u.next())null!==(y=d(i,y.value,c))&&(s=o(y,s,g),null===f?l=y:f.sibling=y,f=y);return l}for(v=r(i,v);!y.done;g++,y=u.next())null!==(y=h(v,i,g,y.value,c))&&(e&&null!==y.alternate&&v.delete(null===y.key?g:y.key),s=o(y,s,g),null===f?l=y:f.sibling=y,f=y);return e&&v.forEach((function(e){return t(i,e)})),l}return function(e,r,o,u){var c="object"==typeof o&&null!==o&&o.type===O&&null===o.key;c&&(o=o.props.children);var l="object"==typeof o&&null!==o;if(l)switch(o.$$typeof){case _:e:{for(l=o.key,c=r;null!==c;){if(c.key===l){switch(c.tag){case 7:if(o.type===O){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=yo(e,c,o),r.return=e,e=r;break e}}n(e,c);break}t(e,c),c=c.sibling}o.type===O?((r=zu(o.props.children,e.mode,u,o.key)).return=e,e=r):((u=Uu(o.type,o.key,o.props,null,e.mode,u)).ref=yo(e,r,o),u.return=e,e=u)}return s(e);case S: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=Wu(o,e.mode,u)).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=Hu(o,e.mode,u)).return=e,e=r),s(e);if(mo(o))return v(e,r,o,u);if(V(o))return g(e,r,o,u);if(l&&bo(e,o),void 0===o&&!c)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,Y(e.type)||"Component"))}return n(e,r)}}var wo=xo(!0),_o=xo(!1),So={},Oo=ri(So),ko=ri(So),Eo=ri(So);function jo(e){if(e===So)throw Error(a(174));return e}function To(e,t){switch(oi(Eo,t),oi(ko,e),oi(Oo,So),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:pe(null,"");break;default:t=pe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ii(Oo),oi(Oo,t)}function Co(){ii(Oo),ii(ko),ii(Eo)}function Ao(e){jo(Eo.current);var t=jo(Oo.current),n=pe(t,e.type);t!==n&&(oi(ko,e),oi(Oo,n))}function Po(e){ko.current===e&&(ii(Oo),ii(ko))}var Mo=ri(0);function Io(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))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}var Ro=null,Do=null,Lo=!1;function No(e,t){var n=Nu(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Fo(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 Bo(e){if(Lo){var t=Do;if(t){var n=t;if(!Fo(e,t)){if(!(t=Vr(n.nextSibling))||!Fo(e,t))return e.flags=-1025&e.flags|2,Lo=!1,void(Ro=e);No(Ro,n)}Ro=e,Do=Vr(t.firstChild)}else e.flags=-1025&e.flags|2,Lo=!1,Ro=e}}function Uo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ro=e}function zo(e){if(e!==Ro)return!1;if(!Lo)return Uo(e),Lo=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Fr(t,e.memoizedProps))for(t=Do;t;)No(e,t),t=Vr(t.nextSibling);if(Uo(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){if(0===t){Do=Vr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Do=null}}else Do=Ro?Vr(e.stateNode.nextSibling):null;return!0}function Vo(){Do=Ro=null,Lo=!1}var Ho=[];function Wo(){for(var e=0;e<Ho.length;e++)Ho[e]._workInProgressVersionPrimary=null;Ho.length=0}var qo=w.ReactCurrentDispatcher,Go=w.ReactCurrentBatchConfig,Yo=0,Ko=null,$o=null,Xo=null,Qo=!1,Zo=!1;function Jo(){throw Error(a(321))}function ea(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!or(e[n],t[n]))return!1;return!0}function ta(e,t,n,r,i,o){if(Yo=o,Ko=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,qo.current=null===e||null===e.memoizedState?ja:Ta,e=n(r,i),Zo){o=0;do{if(Zo=!1,!(25>o))throw Error(a(301));o+=1,Xo=$o=null,t.updateQueue=null,qo.current=Ca,e=n(r,i)}while(Zo)}if(qo.current=Ea,t=null!==$o&&null!==$o.next,Yo=0,Xo=$o=Ko=null,Qo=!1,t)throw Error(a(300));return e}function na(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Xo?Ko.memoizedState=Xo=e:Xo=Xo.next=e,Xo}function ra(){if(null===$o){var e=Ko.alternate;e=null!==e?e.memoizedState:null}else e=$o.next;var t=null===Xo?Ko.memoizedState:Xo.next;if(null!==t)Xo=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===Xo?Ko.memoizedState=Xo=e:Xo=Xo.next=e}return Xo}function ia(e,t){return"function"==typeof t?t(e):t}function oa(e){var t=ra(),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 u=s=o=null,c=i;do{var l=c.lane;if((Yo&l)===l)null!==u&&(u=u.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),r=c.eagerReducer===e?c.eagerState:e(r,c.action);else{var f={lane:l,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===u?(s=u=f,o=r):u=u.next=f,Ko.lanes|=l,Rs|=l}c=c.next}while(null!==c&&c!==i);null===u?o=r:u.next=s,or(r,t.memoizedState)||(Pa=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function aa(e){var t=ra(),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);or(o,t.memoizedState)||(Pa=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function sa(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(Yo&e)===e)&&(t._workInProgressVersionPrimary=r,Ho.push(t))),e)return n(t._source);throw Ho.push(t),Error(a(350))}function ua(e,t,n,r){var i=Es;if(null===i)throw Error(a(349));var o=t._getVersion,s=o(t._source),u=qo.current,c=u.useState((function(){return sa(i,t,n)})),l=c[1],f=c[0];c=Xo;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,v=d.source;d=d.subscribe;var g=Ko;return e.memoizedState={refs:p,source:t,subscribe:r},u.useEffect((function(){p.getSnapshot=n,p.setSnapshot=l;var e=o(t._source);if(!or(s,e)){e=n(t._source),or(f,e)||(l(e),e=au(g),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,a=e;0<a;){var u=31-Vt(a),c=1<<u;r[u]|=e,a&=~c}}}),[n,t,r]),u.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=au(g);i.mutableReadLanes|=r&i.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),or(h,n)&&or(v,t)&&or(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:ia,lastRenderedState:f}).dispatch=l=ka.bind(null,Ko,e),c.queue=e,c.baseQueue=null,f=sa(i,t,n),c.memoizedState=c.baseState=f),f}function ca(e,t,n){return ua(ra(),e,t,n)}function la(e){var t=na();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ia,lastRenderedState:e}).dispatch=ka.bind(null,Ko,e),[t.memoizedState,e]}function fa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Ko.updateQueue)?(t={lastEffect:null},Ko.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 da(e){return e={current:e},na().memoizedState=e}function pa(){return ra().memoizedState}function ha(e,t,n,r){var i=na();Ko.flags|=e,i.memoizedState=fa(1|t,n,void 0,void 0===r?null:r)}function va(e,t,n,r){var i=ra();r=void 0===r?null:r;var o=void 0;if(null!==$o){var a=$o.memoizedState;if(o=a.destroy,null!==r&&ea(r,a.deps))return void fa(t,n,o,r)}Ko.flags|=e,i.memoizedState=fa(1|t,n,o,r)}function ga(e,t){return ha(516,4,e,t)}function ma(e,t){return va(516,4,e,t)}function ya(e,t){return va(4,2,e,t)}function ba(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 xa(e,t,n){return n=null!=n?n.concat([e]):null,va(4,2,ba.bind(null,t,e),n)}function wa(){}function _a(e,t){var n=ra();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ea(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Sa(e,t){var n=ra();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ea(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Oa(e,t){var n=Fi();Ui(98>n?98:n,(function(){e(!0)})),Ui(97<n?97:n,(function(){var n=Go.transition;Go.transition=1;try{e(!1),t()}finally{Go.transition=n}}))}function ka(e,t,n){var r=ou(),i=au(e),o={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?o.next=o:(o.next=a.next,a.next=o),t.pending=o,a=e.alternate,e===Ko||null!==a&&a===Ko)Zo=Qo=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var s=t.lastRenderedState,u=a(s,n);if(o.eagerReducer=a,o.eagerState=u,or(u,s))return}catch(e){}su(e,i,r)}}var Ea={readContext:eo,useCallback:Jo,useContext:Jo,useEffect:Jo,useImperativeHandle:Jo,useLayoutEffect:Jo,useMemo:Jo,useReducer:Jo,useRef:Jo,useState:Jo,useDebugValue:Jo,useDeferredValue:Jo,useTransition:Jo,useMutableSource:Jo,useOpaqueIdentifier:Jo,unstable_isNewReconciler:!1},ja={readContext:eo,useCallback:function(e,t){return na().memoizedState=[e,void 0===t?null:t],e},useContext:eo,useEffect:ga,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ha(4,2,ba.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ha(4,2,e,t)},useMemo:function(e,t){var n=na();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=na();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=ka.bind(null,Ko,e),[r.memoizedState,e]},useRef:da,useState:la,useDebugValue:wa,useDeferredValue:function(e){var t=la(e),n=t[0],r=t[1];return ga((function(){var t=Go.transition;Go.transition=1;try{r(e)}finally{Go.transition=t}}),[e]),n},useTransition:function(){var e=la(!1),t=e[0];return da(e=Oa.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=na();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},ua(r,e,t,n)},useOpaqueIdentifier:function(){if(Lo){var e=!1,t=function(e){return{$$typeof:D,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Wr++).toString(36))),Error(a(355))})),n=la(t)[1];return 0==(2&Ko.mode)&&(Ko.flags|=516,fa(5,(function(){n("r:"+(Wr++).toString(36))}),void 0,null)),t}return la(t="r:"+(Wr++).toString(36)),t},unstable_isNewReconciler:!1},Ta={readContext:eo,useCallback:_a,useContext:eo,useEffect:ma,useImperativeHandle:xa,useLayoutEffect:ya,useMemo:Sa,useReducer:oa,useRef:pa,useState:function(){return oa(ia)},useDebugValue:wa,useDeferredValue:function(e){var t=oa(ia),n=t[0],r=t[1];return ma((function(){var t=Go.transition;Go.transition=1;try{r(e)}finally{Go.transition=t}}),[e]),n},useTransition:function(){var e=oa(ia)[0];return[pa().current,e]},useMutableSource:ca,useOpaqueIdentifier:function(){return oa(ia)[0]},unstable_isNewReconciler:!1},Ca={readContext:eo,useCallback:_a,useContext:eo,useEffect:ma,useImperativeHandle:xa,useLayoutEffect:ya,useMemo:Sa,useReducer:aa,useRef:pa,useState:function(){return aa(ia)},useDebugValue:wa,useDeferredValue:function(e){var t=aa(ia),n=t[0],r=t[1];return ma((function(){var t=Go.transition;Go.transition=1;try{r(e)}finally{Go.transition=t}}),[e]),n},useTransition:function(){var e=aa(ia)[0];return[pa().current,e]},useMutableSource:ca,useOpaqueIdentifier:function(){return aa(ia)[0]},unstable_isNewReconciler:!1},Aa=w.ReactCurrentOwner,Pa=!1;function Ma(e,t,n,r){t.child=null===e?_o(t,null,n,r):wo(t,e.child,n,r)}function Ia(e,t,n,r,i){n=n.render;var o=t.ref;return Ji(t,i),r=ta(e,t,n,r,o,i),null===e||Pa?(t.flags|=1,Ma(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,es(e,t,i))}function Ra(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!=typeof a||Fu(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Uu(n.type,null,r,t,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,0==(i&o)&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:sr)(i,r)&&e.ref===t.ref)?es(e,t,o):(t.flags|=1,(e=Bu(a,r)).ref=t.ref,e.return=t,t.child=e)}function Da(e,t,n,r,i,o){if(null!==e&&sr(e.memoizedProps,r)&&e.ref===t.ref){if(Pa=!1,0==(o&i))return t.lanes=e.lanes,es(e,t,o);0!=(16384&e.flags)&&(Pa=!0)}return Fa(e,t,n,r,o)}function La(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},vu(t,n);else{if(0==(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},vu(t,e),null;t.memoizedState={baseLanes:0},vu(t,null!==o?o.baseLanes:n)}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,vu(t,r);return Ma(e,t,i,n),t.child}function Na(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Fa(e,t,n,r,i){var o=fi(n)?ci:si.current;return o=li(t,o),Ji(t,i),n=ta(e,t,n,r,o,i),null===e||Pa?(t.flags|=1,Ma(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,es(e,t,i))}function Ba(e,t,n,r,i){if(fi(n)){var o=!0;vi(t)}else o=!1;if(Ji(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),ho(t,n,r),go(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var u=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=eo(c):c=li(t,c=fi(n)?ci:si.current);var l=n.getDerivedStateFromProps,f="function"==typeof l||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||u!==c)&&vo(t,a,r,c),to=!1;var d=t.memoizedState;a.state=d,so(t,r,a,i),u=t.memoizedState,s!==r||d!==u||ui.current||to?("function"==typeof l&&(lo(t,n,l,r),u=t.memoizedState),(s=to||po(t,n,s,r,d,u,c))?(f||"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.flags|=4)):("function"==typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,ro(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:qi(t.type,s),a.props=c,f=t.pendingProps,d=a.context,"object"==typeof(u=n.contextType)&&null!==u?u=eo(u):u=li(t,u=fi(n)?ci:si.current);var p=n.getDerivedStateFromProps;(l="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==f||d!==u)&&vo(t,a,r,u),to=!1,d=t.memoizedState,a.state=d,so(t,r,a,i);var h=t.memoizedState;s!==f||d!==h||ui.current||to?("function"==typeof p&&(lo(t,n,p,r),h=t.memoizedState),(c=to||po(t,n,c,r,d,h,u))?(l||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,u)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=u,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Ua(e,t,n,r,o,i)}function Ua(e,t,n,r,i,o){Na(e,t);var a=0!=(64&t.flags);if(!r&&!a)return i&&gi(t,n,!1),es(e,t,o);r=t.stateNode,Aa.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=wo(t,e.child,null,o),t.child=wo(t,null,s,o)):Ma(e,t,s,o),t.memoizedState=r.state,i&&gi(t,n,!0),t.child}function za(e){var t=e.stateNode;t.pendingContext?pi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&pi(0,t.context,!1),To(e,t.containerInfo)}var Va,Ha,Wa,qa,Ga={dehydrated:null,retryLane:0};function Ya(e,t,n){var r,i=t.pendingProps,o=Mo.current,a=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&o)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(o|=1),oi(Mo,1&o),null===e?(void 0!==i.fallback&&Bo(t),e=i.children,o=i.fallback,a?(e=Ka(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ga,e):"number"==typeof i.unstable_expectedLoadTime?(e=Ka(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ga,t.lanes=33554432,e):((n=Vu({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(i=Xa(e,t,i.children,i.fallback,n),a=t.child,o=e.child.memoizedState,a.memoizedState=null===o?{baseLanes:n}:{baseLanes:o.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=Ga,i):(n=$a(e,t,i.children,n),t.memoizedState=null,n))}function Ka(e,t,n,r){var i=e.mode,o=e.child;return t={mode:"hidden",children:t},0==(2&i)&&null!==o?(o.childLanes=0,o.pendingProps=t):o=Vu(t,i,0,null),n=zu(n,i,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function $a(e,t,n,r){var i=e.child;return e=i.sibling,n=Bu(i,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function Xa(e,t,n,r,i){var o=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:n};return 0==(2&o)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=s,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Bu(a,s),null!==e?r=Bu(e,r):(r=zu(r,o,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Qa(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),Zi(e.return,t)}function Za(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.lastEffect=o)}function Ja(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Ma(e,t,r.children,n),0!=(2&(r=Mo.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Qa(e,n);else if(19===e.tag)Qa(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(oi(Mo,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===Io(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Za(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===Io(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Za(t,!0,n,null,o,t.lastEffect);break;case"together":Za(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function es(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Rs|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Bu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Bu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function ts(e,t){if(!Lo)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 ns(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 fi(t.type)&&di(),null;case 3:return Co(),ii(ui),ii(si),Wo(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(zo(t)?t.flags|=4:r.hydrate||(t.flags|=256)),Ha(t),null;case 5:Po(t);var o=jo(Eo.current);if(n=t.type,null!==e&&null!=t.stateNode)Wa(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=jo(Oo.current),zo(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Gr]=t,r[Yr]=s,n){case"dialog":Or("cancel",r),Or("close",r);break;case"iframe":case"object":case"embed":Or("load",r);break;case"video":case"audio":for(e=0;e<xr.length;e++)Or(xr[e],r);break;case"source":Or("error",r);break;case"img":case"image":case"link":Or("error",r),Or("load",r);break;case"details":Or("toggle",r);break;case"input":ee(r,s),Or("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Or("invalid",r);break;case"textarea":ue(r,s),Or("invalid",r)}for(var c in _e(n,s),e=null,s)s.hasOwnProperty(c)&&(o=s[c],"children"===c?"string"==typeof o?r.textContent!==o&&(e=["children",o]):"number"==typeof o&&r.textContent!==""+o&&(e=["children",""+o]):u.hasOwnProperty(c)&&null!=o&&"onScroll"===c&&Or("scroll",r));switch(n){case"input":X(r),re(r,s,!0);break;case"textarea":X(r),le(r);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(r.onclick=Rr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(c=9===o.nodeType?o:o.ownerDocument,e===fe.html&&(e=de(n)),e===fe.html?"script"===n?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=c.createElement(n,{is:r.is}):(e=c.createElement(n),"select"===n&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,n),e[Gr]=t,e[Yr]=r,Va(e,t,!1,!1),t.stateNode=e,c=Se(n,r),n){case"dialog":Or("cancel",e),Or("close",e),o=r;break;case"iframe":case"object":case"embed":Or("load",e),o=r;break;case"video":case"audio":for(o=0;o<xr.length;o++)Or(xr[o],e);o=r;break;case"source":Or("error",e),o=r;break;case"img":case"image":case"link":Or("error",e),Or("load",e),o=r;break;case"details":Or("toggle",e),o=r;break;case"input":ee(e,r),o=J(e,r),Or("invalid",e);break;case"option":o=oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=i({},r,{value:void 0}),Or("invalid",e);break;case"textarea":ue(e,r),o=se(e,r),Or("invalid",e);break;default:o=r}_e(n,o);var l=o;for(s in l)if(l.hasOwnProperty(s)){var f=l[s];"style"===s?xe(e,f):"dangerouslySetInnerHTML"===s?null!=(f=f?f.__html:void 0)&&ve(e,f):"children"===s?"string"==typeof f?("textarea"!==n||""!==f)&&ge(e,f):"number"==typeof f&&ge(e,""+f):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(u.hasOwnProperty(s)?null!=f&&"onScroll"===s&&Or("scroll",e):null!=f&&x(e,s,f,c))}switch(n){case"input":X(e),re(e,r,!1);break;case"textarea":X(e),le(e);break;case"option":null!=r.value&&e.setAttribute("value",""+K(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ae(e,!!r.multiple,s,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Rr)}Nr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)qa(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=jo(Eo.current),jo(Oo.current),zo(t)?(r=t.stateNode,n=t.memoizedProps,r[Gr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Gr]=t,t.stateNode=r)}return null;case 13:return ii(Mo),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&zo(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Mo.current)?0===Ps&&(Ps=3):(0!==Ps&&3!==Ps||(Ps=4),null===Es||0==(134217727&Rs)&&0==(134217727&Ds)||fu(Es,Ts))),(r||n)&&(t.flags|=4),null);case 4:return Co(),Ha(t),null===e&&Er(t.stateNode.containerInfo),null;case 10:return Qi(t),null;case 17:return fi(t.type)&&di(),null;case 19:if(ii(Mo),null===(r=t.memoizedState))return null;if(s=0!=(64&t.flags),null===(c=r.rendering))if(s)ts(r,!1);else{if(0!==Ps||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(c=Io(e))){for(t.flags|=64,ts(r,!1),null!==(s=c.updateQueue)&&(t.updateQueue=s,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(c=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return oi(Mo,1&Mo.current|2),t.child}e=e.sibling}null!==r.tail&&Ni()>Bs&&(t.flags|=64,s=!0,ts(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=Io(c))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),ts(r,!0),null===r.tail&&"hidden"===r.tailMode&&!c.alternate&&!Lo)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Ni()-r.renderingStartTime>Bs&&1073741824!==n&&(t.flags|=64,s=!0,ts(r,!1),t.lanes=33554432);r.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=r.last)?n.sibling=c:t.child=c,r.last=c)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Ni(),n.sibling=null,t=Mo.current,oi(Mo,s?1&t|2:1&t),n):null;case 23:case 24:return gu(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function rs(e){switch(e.tag){case 1:fi(e.type)&&di();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Co(),ii(ui),ii(si),Wo(),0!=(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Po(e),null;case 13:return ii(Mo),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ii(Mo),null;case 4:return Co(),null;case 10:return Qi(e),null;case 23:case 24:return gu(),null;default:return null}}function is(e,t){try{var n="",r=t;do{n+=G(r),r=r.return}while(r);var i=n}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i}}function os(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}Va=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){var o=e.memoizedProps;if(o!==r){e=t.stateNode,jo(Oo.current);var a,s=null;switch(n){case"input":o=J(e,o),r=J(e,r),s=[];break;case"option":o=oe(e,o),r=oe(e,r),s=[];break;case"select":o=i({},o,{value:void 0}),r=i({},r,{value:void 0}),s=[];break;case"textarea":o=se(e,o),r=se(e,r),s=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Rr)}for(f in _e(n,r),n=null,o)if(!r.hasOwnProperty(f)&&o.hasOwnProperty(f)&&null!=o[f])if("style"===f){var c=o[f];for(a in c)c.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(u.hasOwnProperty(f)?s||(s=[]):(s=s||[]).push(f,null));for(f in r){var l=r[f];if(c=null!=o?o[f]:void 0,r.hasOwnProperty(f)&&l!==c&&(null!=l||null!=c))if("style"===f)if(c){for(a in c)!c.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&c[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(s||(s=[]),s.push(f,n)),n=l;else"dangerouslySetInnerHTML"===f?(l=l?l.__html:void 0,c=c?c.__html:void 0,null!=l&&c!==l&&(s=s||[]).push(f,l)):"children"===f?"string"!=typeof l&&"number"!=typeof l||(s=s||[]).push(f,""+l):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(u.hasOwnProperty(f)?(null!=l&&"onScroll"===f&&Or("scroll",e),s||c===l||(s=[])):"object"==typeof l&&null!==l&&l.$$typeof===D?l.toString():(s=s||[]).push(f,l))}n&&(s=s||[]).push("style",n);var f=s;(t.updateQueue=f)&&(t.flags|=4)}},qa=function(e,t,n,r){n!==r&&(t.flags|=4)};var as="function"==typeof WeakMap?WeakMap:Map;function ss(e,t,n){(n=io(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hs||(Hs=!0,Ws=r),os(0,t)},n}function us(e,t,n){(n=io(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return os(0,t),r(i)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===qs?qs=new Set([this]):qs.add(this),os(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var cs="function"==typeof WeakSet?WeakSet:Set;function ls(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Iu(e,t)}else t.current=null}function fs(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:qi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&zr(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(a(163))}function ds(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!=(4&(i=i.tag))&&0!=(1&i)&&(Au(n,e),Cu(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:qi(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&uo(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}uo(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Nr(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&&xt(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(a(163))}function ps(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=null!=i&&i.hasOwnProperty("display")?i.display:null,r.style.display=be("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function hs(e,t){if(yi&&"function"==typeof yi.onCommitFiberUnmount)try{yi.onCommitFiberUnmount(mi,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!=(4&r))Au(t,n);else{r=t;try{i()}catch(e){Iu(r,e)}}n=n.next}while(n!==e)}break;case 1:if(ls(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Iu(t,e)}break;case 5:ls(t);break;case 4:ys(e,t)}}function vs(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function gs(e){return 5===e.tag||3===e.tag||4===e.tag}function ms(e){e:{for(var t=e.return;null!==t;){if(gs(t))break e;t=t.return}throw Error(a(160))}var n=t;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.flags&&(ge(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||gs(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.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){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).insertBefore(t,r):(n=r).appendChild(t),null!==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=Rr));else if(4!==i&&null!==(t=t.child))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&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}function ys(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(a(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag){e:for(var s=e,u=i,c=u;;)if(hs(s,c),null!==c.child&&4!==c.tag)c.child.return=c,c=c.child;else{if(c===u)break e;for(;null===c.sibling;){if(null===c.return||c.return===u)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}r?(s=n,u=i.stateNode,8===s.nodeType?s.parentNode.removeChild(u):s.removeChild(u)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(hs(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function bs(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[Yr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Se(e,i),t=Se(e,r),i=0;i<o.length;i+=2){var s=o[i],u=o[i+1];"style"===s?xe(n,u):"dangerouslySetInnerHTML"===s?ve(n,u):"children"===s?ge(n,u):x(n,s,u,t)}switch(e){case"input":ne(n,r);break;case"textarea":ce(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(o=r.value)?ae(n,!!r.multiple,o,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(n,!!r.multiple,r.defaultValue,!0):ae(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((n=t.stateNode).hydrate&&(n.hydrate=!1,xt(n.containerInfo)));case 12:return;case 13:return null!==t.memoizedState&&(Fs=Ni(),ps(t.child,!0)),void xs(t);case 19:return void xs(t);case 17:return;case 23:case 24:return void ps(t,null!==t.memoizedState)}throw Error(a(163))}function xs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new cs),t.forEach((function(t){var r=Du.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ws(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var _s=Math.ceil,Ss=w.ReactCurrentDispatcher,Os=w.ReactCurrentOwner,ks=0,Es=null,js=null,Ts=0,Cs=0,As=ri(0),Ps=0,Ms=null,Is=0,Rs=0,Ds=0,Ls=0,Ns=null,Fs=0,Bs=1/0;function Us(){Bs=Ni()+500}var zs,Vs=null,Hs=!1,Ws=null,qs=null,Gs=!1,Ys=null,Ks=90,$s=[],Xs=[],Qs=null,Zs=0,Js=null,eu=-1,tu=0,nu=0,ru=null,iu=!1;function ou(){return 0!=(48&ks)?Ni():-1!==eu?eu:eu=Ni()}function au(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===Fi()?1:2;if(0===tu&&(tu=Is),0!==Wi.transition){0!==nu&&(nu=null!==Ns?Ns.pendingLanes:0),e=tu;var t=4186112&~nu;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Fi(),0!=(4&ks)&&98===e?e=Ft(12,tu):e=Ft(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),tu),e}function su(e,t,n){if(50<Zs)throw Zs=0,Js=null,Error(a(185));if(null===(e=uu(e,t)))return null;zt(e,t,n),e===Es&&(Ds|=t,4===Ps&&fu(e,Ts));var r=Fi();1===t?0!=(8&ks)&&0==(48&ks)?du(e):(cu(e,n),0===ks&&(Us(),Vi())):(0==(4&ks)||98!==r&&99!==r||(null===Qs?Qs=new Set([e]):Qs.add(e)),cu(e,n)),Ns=e}function uu(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function cu(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var u=31-Vt(s),c=1<<u,l=o[u];if(-1===l){if(0==(c&r)||0!=(c&i)){l=t,Dt(c);var f=Rt;o[u]=10<=f?l+250:6<=f?l+5e3:-1}}else l<=t&&(e.expiredLanes|=c);s&=~c}if(r=Lt(e,e===Es?Ts:0),t=Rt,0===r)null!==n&&(n!==Pi&&wi(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Pi&&wi(n)}15===t?(n=du.bind(null,e),null===Ii?(Ii=[n],Ri=xi(Ei,Hi)):Ii.push(n),n=Pi):14===t?n=zi(99,du.bind(null,e)):n=zi(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),lu.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function lu(e){if(eu=-1,nu=tu=0,0!=(48&ks))throw Error(a(327));var t=e.callbackNode;if(Tu()&&e.callbackNode!==t)return null;var n=Lt(e,e===Es?Ts:0);if(0===n)return null;var r=n,i=ks;ks|=16;var o=bu();for(Es===e&&Ts===r||(Us(),mu(e,r));;)try{_u();break}catch(t){yu(e,t)}if(Xi(),Ss.current=o,ks=i,null!==js?r=0:(Es=null,Ts=0,r=Ps),0!=(Is&Ds))mu(e,0);else if(0!==r){if(2===r&&(ks|=64,e.hydrate&&(e.hydrate=!1,zr(e.containerInfo)),0!==(n=Nt(e))&&(r=xu(e,n))),1===r)throw t=Ms,mu(e,0),fu(e,n),cu(e,Ni()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:ku(e);break;case 3:if(fu(e,n),(62914560&n)===n&&10<(r=Fs+500-Ni())){if(0!==Lt(e,0))break;if(((i=e.suspendedLanes)&n)!==n){ou(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Br(ku.bind(null,e),r);break}ku(e);break;case 4:if(fu(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var s=31-Vt(n);o=1<<s,(s=r[s])>i&&(i=s),n&=~o}if(n=i,10<(n=(120>(n=Ni()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*_s(n/1960))-n)){e.timeoutHandle=Br(ku.bind(null,e),n);break}ku(e);break;case 5:ku(e);break;default:throw Error(a(329))}}return cu(e,Ni()),e.callbackNode===t?lu.bind(null,e):null}function fu(e,t){for(t&=~Ls,t&=~Ds,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Vt(t),r=1<<n;e[n]=-1,t&=~r}}function du(e){if(0!=(48&ks))throw Error(a(327));if(Tu(),e===Es&&0!=(e.expiredLanes&Ts)){var t=Ts,n=xu(e,t);0!=(Is&Ds)&&(n=xu(e,t=Lt(e,t)))}else n=xu(e,t=Lt(e,0));if(0!==e.tag&&2===n&&(ks|=64,e.hydrate&&(e.hydrate=!1,zr(e.containerInfo)),0!==(t=Nt(e))&&(n=xu(e,t))),1===n)throw n=Ms,mu(e,0),fu(e,t),cu(e,Ni()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,ku(e),cu(e,Ni()),null}function pu(e,t){var n=ks;ks|=1;try{return e(t)}finally{0===(ks=n)&&(Us(),Vi())}}function hu(e,t){var n=ks;ks&=-2,ks|=8;try{return e(t)}finally{0===(ks=n)&&(Us(),Vi())}}function vu(e,t){oi(As,Cs),Cs|=t,Is|=t}function gu(){Cs=As.current,ii(As)}function mu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Ur(n)),null!==js)for(n=js.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&di();break;case 3:Co(),ii(ui),ii(si),Wo();break;case 5:Po(r);break;case 4:Co();break;case 13:case 19:ii(Mo);break;case 10:Qi(r);break;case 23:case 24:gu()}n=n.return}Es=e,js=Bu(e.current,null),Ts=Cs=Is=t,Ps=0,Ms=null,Ls=Ds=Rs=0}function yu(e,t){for(;;){var n=js;try{if(Xi(),qo.current=Ea,Qo){for(var r=Ko.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}Qo=!1}if(Yo=0,Xo=$o=Ko=null,Zo=!1,Os.current=null,null===n||null===n.return){Ps=1,Ms=t,js=null;break}e:{var o=e,a=n.return,s=n,u=t;if(t=Ts,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u;if(0==(2&s.mode)){var l=s.alternate;l?(s.updateQueue=l.updateQueue,s.memoizedState=l.memoizedState,s.lanes=l.lanes):(s.updateQueue=null,s.memoizedState=null)}var f=0!=(1&Mo.current),d=a;do{var p;if(p=13===d.tag){var h=d.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var v=d.memoizedProps;p=void 0!==v.fallback&&(!0!==v.unstable_avoidThisFallback||!f)}}if(p){var g=d.updateQueue;if(null===g){var m=new Set;m.add(c),d.updateQueue=m}else g.add(c);if(0==(2&d.mode)){if(d.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var y=io(-1,1);y.tag=2,oo(s,y)}s.lanes|=1;break e}u=void 0,s=t;var b=o.pingCache;if(null===b?(b=o.pingCache=new as,u=new Set,b.set(c,u)):void 0===(u=b.get(c))&&(u=new Set,b.set(c,u)),!u.has(s)){u.add(s);var x=Ru.bind(null,o,c,s);c.then(x,x)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);u=Error((Y(s.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.")}5!==Ps&&(Ps=2),u=is(u,s),d=a;do{switch(d.tag){case 3:o=u,d.flags|=4096,t&=-t,d.lanes|=t,ao(d,ss(0,o,t));break e;case 1:o=u;var w=d.type,_=d.stateNode;if(0==(64&d.flags)&&("function"==typeof w.getDerivedStateFromError||null!==_&&"function"==typeof _.componentDidCatch&&(null===qs||!qs.has(_)))){d.flags|=4096,t&=-t,d.lanes|=t,ao(d,us(d,o,t));break e}}d=d.return}while(null!==d)}Ou(n)}catch(e){t=e,js===n&&null!==n&&(js=n=n.return);continue}break}}function bu(){var e=Ss.current;return Ss.current=Ea,null===e?Ea:e}function xu(e,t){var n=ks;ks|=16;var r=bu();for(Es===e&&Ts===t||mu(e,t);;)try{wu();break}catch(t){yu(e,t)}if(Xi(),ks=n,Ss.current=r,null!==js)throw Error(a(261));return Es=null,Ts=0,Ps}function wu(){for(;null!==js;)Su(js)}function _u(){for(;null!==js&&!_i();)Su(js)}function Su(e){var t=zs(e.alternate,e,Cs);e.memoizedProps=e.pendingProps,null===t?Ou(e):js=t,Os.current=null}function Ou(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=ns(n,t,Cs)))return void(js=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Cs)||0==(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=rs(t)))return n.flags&=2047,void(js=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(js=t);js=t=e}while(null!==t);0===Ps&&(Ps=5)}function ku(e){var t=Fi();return Ui(99,Eu.bind(null,e,t)),null}function Eu(e,t){do{Tu()}while(null!==Ys);if(0!=(48&ks))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,o=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var s=e.eventTimes,u=e.expirationTimes;0<o;){var c=31-Vt(o),l=1<<c;i[c]=0,s[c]=-1,u[c]=-1,o&=~l}if(null!==Qs&&0==(24&r)&&Qs.has(e)&&Qs.delete(e),e===Es&&(js=Es=null,Ts=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=ks,ks|=32,Os.current=null,Dr=Yt,fr(s=lr())){if("selectionStart"in s)u={start:s.selectionStart,end:s.selectionEnd};else e:if(u=(u=s.ownerDocument)&&u.defaultView||window,(l=u.getSelection&&u.getSelection())&&0!==l.rangeCount){u=l.anchorNode,o=l.anchorOffset,c=l.focusNode,l=l.focusOffset;try{u.nodeType,c.nodeType}catch(e){u=null;break e}var f=0,d=-1,p=-1,h=0,v=0,g=s,m=null;t:for(;;){for(var y;g!==u||0!==o&&3!==g.nodeType||(d=f+o),g!==c||0!==l&&3!==g.nodeType||(p=f+l),3===g.nodeType&&(f+=g.nodeValue.length),null!==(y=g.firstChild);)m=g,g=y;for(;;){if(g===s)break t;if(m===u&&++h===o&&(d=f),m===c&&++v===l&&(p=f),null!==(y=g.nextSibling))break;m=(g=m).parentNode}g=y}u=-1===d||-1===p?null:{start:d,end:p}}else u=null;u=u||{start:0,end:0}}else u=null;Lr={focusedElem:s,selectionRange:u},Yt=!1,ru=null,iu=!1,Vs=r;do{try{ju()}catch(e){if(null===Vs)throw Error(a(330));Iu(Vs,e),Vs=Vs.nextEffect}}while(null!==Vs);ru=null,Vs=r;do{try{for(s=e;null!==Vs;){var b=Vs.flags;if(16&b&&ge(Vs.stateNode,""),128&b){var x=Vs.alternate;if(null!==x){var w=x.ref;null!==w&&("function"==typeof w?w(null):w.current=null)}}switch(1038&b){case 2:ms(Vs),Vs.flags&=-3;break;case 6:ms(Vs),Vs.flags&=-3,bs(Vs.alternate,Vs);break;case 1024:Vs.flags&=-1025;break;case 1028:Vs.flags&=-1025,bs(Vs.alternate,Vs);break;case 4:bs(Vs.alternate,Vs);break;case 8:ys(s,u=Vs);var _=u.alternate;vs(u),null!==_&&vs(_)}Vs=Vs.nextEffect}}catch(e){if(null===Vs)throw Error(a(330));Iu(Vs,e),Vs=Vs.nextEffect}}while(null!==Vs);if(w=Lr,x=lr(),b=w.focusedElem,s=w.selectionRange,x!==b&&b&&b.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))))}(b.ownerDocument.documentElement,b)){null!==s&&fr(b)&&(x=s.start,void 0===(w=s.end)&&(w=x),"selectionStart"in b?(b.selectionStart=x,b.selectionEnd=Math.min(w,b.value.length)):(w=(x=b.ownerDocument||document)&&x.defaultView||window).getSelection&&(w=w.getSelection(),u=b.textContent.length,_=Math.min(s.start,u),s=void 0===s.end?_:Math.min(s.end,u),!w.extend&&_>s&&(u=s,s=_,_=u),u=cr(b,_),o=cr(b,s),u&&o&&(1!==w.rangeCount||w.anchorNode!==u.node||w.anchorOffset!==u.offset||w.focusNode!==o.node||w.focusOffset!==o.offset)&&((x=x.createRange()).setStart(u.node,u.offset),w.removeAllRanges(),_>s?(w.addRange(x),w.extend(o.node,o.offset)):(x.setEnd(o.node,o.offset),w.addRange(x))))),x=[];for(w=b;w=w.parentNode;)1===w.nodeType&&x.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<x.length;b++)(w=x[b]).element.scrollLeft=w.left,w.element.scrollTop=w.top}Yt=!!Dr,Lr=Dr=null,e.current=n,Vs=r;do{try{for(b=e;null!==Vs;){var S=Vs.flags;if(36&S&&ds(b,Vs.alternate,Vs),128&S){x=void 0;var O=Vs.ref;if(null!==O){var k=Vs.stateNode;switch(Vs.tag){case 5:x=k;break;default:x=k}"function"==typeof O?O(x):O.current=x}}Vs=Vs.nextEffect}}catch(e){if(null===Vs)throw Error(a(330));Iu(Vs,e),Vs=Vs.nextEffect}}while(null!==Vs);Vs=null,Mi(),ks=i}else e.current=n;if(Gs)Gs=!1,Ys=e,Ks=t;else for(Vs=r;null!==Vs;)t=Vs.nextEffect,Vs.nextEffect=null,8&Vs.flags&&((S=Vs).sibling=null,S.stateNode=null),Vs=t;if(0===(r=e.pendingLanes)&&(qs=null),1===r?e===Js?Zs++:(Zs=0,Js=e):Zs=0,n=n.stateNode,yi&&"function"==typeof yi.onCommitFiberRoot)try{yi.onCommitFiberRoot(mi,n,void 0,64==(64&n.current.flags))}catch(e){}if(cu(e,Ni()),Hs)throw Hs=!1,e=Ws,Ws=null,e;return 0!=(8&ks)?null:(Vi(),null)}function ju(){for(;null!==Vs;){var e=Vs.alternate;iu||null===ru||(0!=(8&Vs.flags)?Ze(Vs,ru)&&(iu=!0):13===Vs.tag&&ws(e,Vs)&&Ze(Vs,ru)&&(iu=!0));var t=Vs.flags;0!=(256&t)&&fs(e,Vs),0==(512&t)||Gs||(Gs=!0,zi(97,(function(){return Tu(),null}))),Vs=Vs.nextEffect}}function Tu(){if(90!==Ks){var e=97<Ks?97:Ks;return Ks=90,Ui(e,Pu)}return!1}function Cu(e,t){$s.push(t,e),Gs||(Gs=!0,zi(97,(function(){return Tu(),null})))}function Au(e,t){Xs.push(t,e),Gs||(Gs=!0,zi(97,(function(){return Tu(),null})))}function Pu(){if(null===Ys)return!1;var e=Ys;if(Ys=null,0!=(48&ks))throw Error(a(331));var t=ks;ks|=32;var n=Xs;Xs=[];for(var r=0;r<n.length;r+=2){var i=n[r],o=n[r+1],s=i.destroy;if(i.destroy=void 0,"function"==typeof s)try{s()}catch(e){if(null===o)throw Error(a(330));Iu(o,e)}}for(n=$s,$s=[],r=0;r<n.length;r+=2){i=n[r],o=n[r+1];try{var u=i.create;i.destroy=u()}catch(e){if(null===o)throw Error(a(330));Iu(o,e)}}for(u=e.current.firstEffect;null!==u;)e=u.nextEffect,u.nextEffect=null,8&u.flags&&(u.sibling=null,u.stateNode=null),u=e;return ks=t,Vi(),!0}function Mu(e,t,n){oo(e,t=ss(0,t=is(n,t),1)),t=ou(),null!==(e=uu(e,1))&&(zt(e,1,t),cu(e,t))}function Iu(e,t){if(3===e.tag)Mu(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Mu(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===qs||!qs.has(r))){var i=us(n,e=is(t,e),1);if(oo(n,i),i=ou(),null!==(n=uu(n,1)))zt(n,1,i),cu(n,i);else if("function"==typeof r.componentDidCatch&&(null===qs||!qs.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function Ru(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ou(),e.pingedLanes|=e.suspendedLanes&n,Es===e&&(Ts&n)===n&&(4===Ps||3===Ps&&(62914560&Ts)===Ts&&500>Ni()-Fs?mu(e,0):Ls|=n),cu(e,t)}function Du(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Fi()?1:2:(0===tu&&(tu=Is),0===(t=Bt(62914560&~tu))&&(t=4194304))),n=ou(),null!==(e=uu(e,t))&&(zt(e,t,n),cu(e,n))}function Lu(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.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Nu(e,t,n,r){return new Lu(e,t,n,r)}function Fu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Bu(e,t){var n=e.alternate;return null===n?((n=Nu(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.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Uu(e,t,n,r,i,o){var s=2;if(r=e,"function"==typeof e)Fu(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case O:return zu(n.children,i,o,t);case L:s=8,i|=16;break;case k:s=8,i|=1;break;case E:return(e=Nu(12,n,t,8|i)).elementType=E,e.type=E,e.lanes=o,e;case A:return(e=Nu(13,n,t,i)).type=A,e.elementType=A,e.lanes=o,e;case P:return(e=Nu(19,n,t,i)).elementType=P,e.lanes=o,e;case N:return Vu(n,i,o,t);case F:return(e=Nu(24,n,t,i)).elementType=F,e.lanes=o,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case j:s=10;break e;case T:s=9;break e;case C:s=11;break e;case M:s=14;break e;case I:s=16,r=null;break e;case R:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Nu(s,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function zu(e,t,n,r){return(e=Nu(7,e,r,t)).lanes=n,e}function Vu(e,t,n,r){return(e=Nu(23,e,r,t)).elementType=N,e.lanes=n,e}function Hu(e,t,n){return(e=Nu(6,e,null,t)).lanes=n,e}function Wu(e,t,n){return(t=Nu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function qu(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Ut(0),this.expirationTimes=Ut(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ut(0),this.mutableSourceEagerHydrationData=null}function Gu(e,t,n,r){var i=t.current,o=ou(),s=au(i);e:if(n){t:{if(Ke(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(fi(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(a(171))}if(1===n.tag){var c=n.type;if(fi(c)){n=hi(n,c,u);break e}}n=u}else n=ai;return null===t.context?t.context=n:t.pendingContext=n,(t=io(o,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),oo(i,t),su(i,s,o),s}function Yu(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Ku(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function $u(e,t){Ku(e,t),(e=e.alternate)&&Ku(e,t)}function Xu(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new qu(e,t,null!=n&&!0===n.hydrate),t=Nu(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,no(t),e[Kr]=n.current,Er(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}function Qu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zu(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=Yu(a);s.call(e)}}Gu(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 Xu(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"==typeof i){var u=i;i=function(){var e=Yu(a);u.call(e)}}hu((function(){Gu(t,a,e,i)}))}return Yu(a)}function Ju(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Qu(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}zs=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||ui.current)Pa=!0;else{if(0==(n&r)){switch(Pa=!1,t.tag){case 3:za(t),Vo();break;case 5:Ao(t);break;case 1:fi(t.type)&&vi(t);break;case 4:To(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;oi(Gi,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?Ya(e,t,n):(oi(Mo,1&Mo.current),null!==(t=es(e,t,n))?t.sibling:null);oi(Mo,1&Mo.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return Ja(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),oi(Mo,Mo.current),r)break;return null;case 23:case 24:return t.lanes=0,La(e,t,n)}return es(e,t,n)}Pa=0!=(16384&e.flags)}else Pa=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=li(t,si.current),Ji(t,n),i=ta(null,t,r,e,i,n),t.flags|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,fi(r)){var o=!0;vi(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,no(t);var s=r.getDerivedStateFromProps;"function"==typeof s&&lo(t,r,s,e),i.updater=fo,t.stateNode=i,i._reactInternals=t,go(t,r,e,n),t=Ua(null,t,r,!0,o,n)}else t.tag=0,Ma(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"==typeof e)return Fu(e)?1:0;if(null!=e){if((e=e.$$typeof)===C)return 11;if(e===M)return 14}return 2}(i),e=qi(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=Ia(null,t,i,e,n);break e;case 14:t=Ra(null,t,i,qi(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:qi(r,i),n);case 1:return r=t.type,i=t.pendingProps,Ba(e,t,r,i=t.elementType===r?i:qi(r,i),n);case 3:if(za(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,ro(e,t),so(t,r,null,n),(r=t.memoizedState.element)===i)Vo(),t=es(e,t,n);else{if((o=(i=t.stateNode).hydrate)&&(Do=Vr(t.stateNode.containerInfo.firstChild),Ro=t,o=Lo=!0),o){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(o=e[i])._workInProgressVersionPrimary=e[i+1],Ho.push(o);for(n=_o(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Ma(e,t,r,n),Vo();t=t.child}return t;case 5:return Ao(t),null===e&&Bo(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,Fr(r,i)?s=null:null!==o&&Fr(r,o)&&(t.flags|=16),Na(e,t),Ma(e,t,s,n),t.child;case 6:return null===e&&Bo(t),null;case 13:return Ya(e,t,n);case 4:return To(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=wo(t,null,r,n):Ma(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Ia(e,t,r,i=t.elementType===r?i:qi(r,i),n);case 7:return Ma(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ma(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 u=t.type._context;if(oi(Gi,u._currentValue),u._currentValue=o,null!==s)if(u=s.value,0===(o=or(u,o)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,o):1073741823))){if(s.children===i.children&&!ui.current){t=es(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var c=u.dependencies;if(null!==c){s=u.child;for(var l=c.firstContext;null!==l;){if(l.context===r&&0!=(l.observedBits&o)){1===u.tag&&((l=io(-1,n&-n)).tag=2,oo(u,l)),u.lanes|=n,null!==(l=u.alternate)&&(l.lanes|=n),Zi(u.return,n),c.lanes|=n;break}l=l.next}}else s=10===u.tag&&u.type===t.type?null:u.child;if(null!==s)s.return=u;else for(s=u;null!==s;){if(s===t){s=null;break}if(null!==(u=s.sibling)){u.return=s.return,s=u;break}s=s.return}u=s}Ma(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,Ji(t,n),r=r(i=eo(i,o.unstable_observedBits)),t.flags|=1,Ma(e,t,r,n),t.child;case 14:return o=qi(i=t.type,t.pendingProps),Ra(e,t,i,o=qi(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:qi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,fi(r)?(e=!0,vi(t)):e=!1,Ji(t,n),ho(t,r,i),go(t,r,i,n),Ua(null,t,r,!0,e,n);case 19:return Ja(e,t,n);case 23:case 24:return La(e,t,n)}throw Error(a(156,t.tag))},Xu.prototype.render=function(e){Gu(e,this._internalRoot,null,null)},Xu.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Gu(null,e,null,(function(){t[Kr]=null}))},Je=function(e){13===e.tag&&(su(e,4,ou()),$u(e,4))},et=function(e){13===e.tag&&(su(e,67108864,ou()),$u(e,67108864))},tt=function(e){if(13===e.tag){var t=ou(),n=au(e);su(e,n,t),$u(e,n)}},nt=function(e,t){return t()},ke=function(e,t,n){switch(t){case"input":if(ne(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=Jr(r);if(!i)throw Error(a(90));Q(r),ne(r,i)}}}break;case"textarea":ce(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},Pe=pu,Me=function(e,t,n,r,i){var o=ks;ks|=4;try{return Ui(98,e.bind(null,t,n,r,i))}finally{0===(ks=o)&&(Us(),Vi())}},Ie=function(){0==(49&ks)&&(function(){if(null!==Qs){var e=Qs;Qs=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,cu(e,Ni())}))}Vi()}(),Tu())},Re=function(e,t){var n=ks;ks|=2;try{return e(t)}finally{0===(ks=n)&&(Us(),Vi())}};var ec={Events:[Qr,Zr,Jr,Ce,Ae,Tu,{current:!1}]},tc={findFiberByHostInstance:Xr,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},nc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Qe(e))?null:e.stateNode},findFiberByHostInstance:tc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rc.isDisabled&&rc.supportsFiber)try{mi=rc.inject(nc),yi=rc}catch(e){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,t.createPortal=Ju,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=Qe(t))?null:e.stateNode},t.flushSync=function(e,t){var n=ks;if(0!=(48&n))return e(t);ks|=1;try{if(e)return Ui(99,e.bind(null,t))}finally{ks=n,Vi()}},t.hydrate=function(e,t,n){if(!Qu(t))throw Error(a(200));return Zu(null,e,t,!0,n)},t.render=function(e,t,n){if(!Qu(t))throw Error(a(200));return Zu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Qu(e))throw Error(a(40));return!!e._reactRootContainer&&(hu((function(){Zu(null,null,e,!1,(function(){e._reactRootContainer=null,e[Kr]=null}))})),!0)},t.unstable_batchedUpdates=pu,t.unstable_createPortal=function(e,t){return Ju(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Qu(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return Zu(e,t,n,!1,r)},t.version="17.0.2"},function(e,t,n){"use strict";e.exports=n(1172)},function(e,t,n){"use strict"; /** @license React v0.20.2 * 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. */function r(e){return(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})(e)}var i,o,a,s;if("object"===("undefined"==typeof performance?"undefined":r(performance))&&"function"==typeof performance.now){var u=performance;t.unstable_now=function(){return u.now()}}else{var c=Date,l=c.now();t.unstable_now=function(){return c.now()-l}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var f=null,d=null,p=function(){if(null!==f)try{var e=t.unstable_now();f(!0,e),f=null}catch(e){throw setTimeout(p,0),e}};i=function(e){null!==f?setTimeout(i,0,e):(f=e,setTimeout(p,0))},o=function(e,t){d=setTimeout(e,t)},a=function(){clearTimeout(d)},t.unstable_shouldYield=function(){return!1},s=t.unstable_forceFrameRate=function(){}}else{var h=window.setTimeout,v=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://reactjs.org/link/react-polyfills"),"function"!=typeof g&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,y=null,b=-1,x=5,w=0;t.unstable_shouldYield=function(){return t.unstable_now()>=w},s=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):x=0<e?Math.floor(1e3/e):5};var _=new MessageChannel,S=_.port2;_.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();w=e+x;try{y(!0,e)?S.postMessage(null):(m=!1,y=null)}catch(e){throw S.postMessage(null),e}}else m=!1},i=function(e){y=e,m||(m=!0,S.postMessage(null))},o=function(e,n){b=h((function(){e(t.unstable_now())}),n)},a=function(){v(b),b=-1}}function O(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<j(i,t)))break e;e[r]=t,e[n]=i,n=r}}function k(e){return void 0===(e=e[0])?null:e}function E(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,u=e[s];if(void 0!==a&&0>j(a,n))void 0!==u&&0>j(u,a)?(e[r]=u,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==u&&0>j(u,n)))break e;e[r]=u,e[s]=n,r=s}}}return t}return null}function j(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var T=[],C=[],A=1,P=null,M=3,I=!1,R=!1,D=!1;function L(e){for(var t=k(C);null!==t;){if(null===t.callback)E(C);else{if(!(t.startTime<=e))break;E(C),t.sortIndex=t.expirationTime,O(T,t)}t=k(C)}}function N(e){if(D=!1,L(e),!R)if(null!==k(T))R=!0,i(F);else{var t=k(C);null!==t&&o(N,t.startTime-e)}}function F(e,n){R=!1,D&&(D=!1,a()),I=!0;var r=M;try{for(L(n),P=k(T);null!==P&&(!(P.expirationTime>n)||e&&!t.unstable_shouldYield());){var i=P.callback;if("function"==typeof i){P.callback=null,M=P.priorityLevel;var s=i(P.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?P.callback=s:P===k(T)&&E(T),L(n)}else E(T);P=k(T)}if(null!==P)var u=!0;else{var c=k(C);null!==c&&o(N,c.startTime-n),u=!1}return u}finally{P=null,M=r,I=!1}}var B=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(){R||I||(R=!0,i(F))},t.unstable_getCurrentPriorityLevel=function(){return M},t.unstable_getFirstCallbackNode=function(){return k(T)},t.unstable_next=function(e){switch(M){case 1:case 2:case 3:var t=3;break;default:t=M}var n=M;M=t;try{return e()}finally{M=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=B,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=M;M=e;try{return t()}finally{M=n}},t.unstable_scheduleCallback=function(e,n,s){var u=t.unstable_now();switch("object"===r(s)&&null!==s?s="number"==typeof(s=s.delay)&&0<s?u+s:u:s=u,e){case 1:var c=-1;break;case 2:c=250;break;case 5:c=1073741823;break;case 4:c=1e4;break;default:c=5e3}return e={id:A++,callback:n,priorityLevel:e,startTime:s,expirationTime:c=s+c,sortIndex:-1},s>u?(e.sortIndex=s,O(C,e),null===k(T)&&e===k(C)&&(D?a():D=!0,o(N,s-u))):(e.sortIndex=c,O(T,e),R||I||(R=!0,i(F))),e},t.unstable_wrapCallback=function(e){var t=M;return function(){var n=M;M=t;try{return e.apply(this,arguments)}finally{M=n}}}},function(e,t,n){"use strict";e.exports=n(1174)},function(e,t,n){"use strict"; /** @license React v16.12.0 * 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,u=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,v=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case f:case d:case a:case u:case s:case h:return e;default:switch(e=e&&e.$$typeof){case l:case p:case m:case g:case c:return e;default:return t}}case o:return t}}}function _(e){return w(e)===d}t.typeOf=w,t.AsyncMode=f,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=c,t.Element=i,t.ForwardRef=p,t.Fragment=a,t.Lazy=m,t.Memo=g,t.Portal=o,t.Profiler=u,t.StrictMode=s,t.Suspense=h,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===u||e===s||e===h||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===c||e.$$typeof===l||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x)},t.isAsyncMode=function(e){return _(e)||w(e)===f},t.isConcurrentMode=_,t.isContextConsumer=function(e){return w(e)===l},t.isContextProvider=function(e){return w(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===m},t.isMemo=function(e){return w(e)===g},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===u},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===h}},function(e,t){function n(){return e.exports=n=Object.assign?Object.assign.bind():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},e.exports.__esModule=!0,e.exports.default=e.exports,n.apply(this,arguments)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict"; /** @license React v17.0.2 * react-jsx-runtime.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. */n(389);var r=n(2),i=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),t.Fragment=o("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,o={},c=null,l=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(l=t.ref),t)s.call(t,r)&&!u.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:l,props:o,_owner:a.current}}t.jsx=c,t.jsxs=c},function(e,t){function n(){return e.exports=n=Object.assign?Object.assign.bind():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},e.exports.__esModule=!0,e.exports.default=e.exports,n.apply(this,arguments)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){"use strict";var r=n(1179);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";var r=n(1181);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"; /** * @license React * 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,i=Symbol.for("react.element"),o=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),l=Symbol.for("react.context"),f=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function y(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case a:case u:case s:case p:case h:return e;default:switch(e=e&&e.$$typeof){case f:case l:case d:case g:case v:case c:return e;default:return t}}case o:return t}}}r=Symbol.for("react.module.reference"),t.ContextConsumer=l,t.ContextProvider=c,t.Element=i,t.ForwardRef=d,t.Fragment=a,t.Lazy=g,t.Memo=v,t.Portal=o,t.Profiler=u,t.StrictMode=s,t.Suspense=p,t.SuspenseList=h,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return y(e)===l},t.isContextProvider=function(e){return y(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return y(e)===d},t.isFragment=function(e){return y(e)===a},t.isLazy=function(e){return y(e)===g},t.isMemo=function(e){return y(e)===v},t.isPortal=function(e){return y(e)===o},t.isProfiler=function(e){return y(e)===u},t.isStrictMode=function(e){return y(e)===s},t.isSuspense=function(e){return y(e)===p},t.isSuspenseList=function(e){return y(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===u||e===s||e===p||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===v||e.$$typeof===c||e.$$typeof===l||e.$$typeof===d||e.$$typeof===r||void 0!==e.getModuleId)},t.typeOf=y},function(e,t,n){"use strict";function r(e){return(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})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var i=s(n(2)),o=s(n(1184)),a=["text","onCopy","options","children"];function s(e){return e&&e.__esModule?e:{default:e}}function u(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 c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t){if(null==e)return{};var n,r,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,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function f(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){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var i=g(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return v(e)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(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=function(e){!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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(u,e);var t,n,r,s=p(u);function u(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return m(v(e=s.call.apply(s,[this].concat(n))),"onClick",(function(t){var n=e.props,r=n.text,a=n.onCopy,s=n.children,u=n.options,c=i.default.Children.only(s),l=(0,o.default)(r,u);a&&a(r,l),c&&c.props&&"function"==typeof c.props.onClick&&c.props.onClick(t)})),e}return t=u,(n=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=l(e,a),r=i.default.Children.only(t);return i.default.cloneElement(r,c(c({},n),{},{onClick:this.onClick}))}}])&&f(t.prototype,n),r&&f(t,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(i.default.PureComponent);t.CopyToClipboard=y,m(y,"defaultProps",{onCopy:void 0,options:void 0})},function(e,t,n){"use strict";var r=n(1185),i={"text/plain":"Text","text/html":"Url",default:"Text"},o="Copy to clipboard: #{key}, Enter";e.exports=function(e,t){var n,a,s,u,c,l,f=!1;t||(t={}),n=t.debug||!1;try{if(s=r(),u=document.createRange(),c=document.getSelection(),(l=document.createElement("span")).textContent=e,l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=i[t.format]||i.default;window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(l),u.selectNodeContents(l),c.addRange(u),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");f=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),f=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),a=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:o),window.prompt(a,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(u):c.removeAllRanges()),l&&document.body.removeChild(l),s()}return f}},function(e,t){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},function(e,t){e.exports=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}},function(e,t,n){var r=/(?:<!--[\S\s]*?-->|<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>)/g,i=n(1188),o=Object.create?Object.create(null):{};function a(e,t,n,r,i){var o=t.indexOf("<",r),a=t.slice(r,-1===o?void 0:o);/^\s*$/.test(a)&&(a=" "),(!i&&o>-1&&n+e.length>=0||" "!==a)&&e.push({type:"text",content:a})}e.exports=function(e,t){t||(t={}),t.components||(t.components=o);var n,s=[],u=-1,c=[],l={},f=!1;return e.replace(r,(function(r,o){if(f){if(r!=="</"+n.name+">")return;f=!1}var d,p="/"!==r.charAt(1),h=0===r.indexOf("\x3c!--"),v=o+r.length,g=e.charAt(v);p&&!h&&(u++,"tag"===(n=i(r)).type&&t.components[n.name]&&(n.type="component",f=!0),n.voidElement||f||!g||"<"===g||a(n.children,e,u,v,t.ignoreWhitespace),l[n.tagName]=n,0===u&&s.push(n),(d=c[u-1])&&d.children.push(n),c[u]=n),(h||!p||n.voidElement)&&(h||u--,!f&&"<"!==g&&g&&a(d=-1===u?s:c[u].children,e,u,v,t.ignoreWhitespace))})),!s.length&&e.length&&a(s,e,0,0,t.ignoreWhitespace),s}},function(e,t,n){var r=/([\w-]+)|=|(['"])([.\s\S]*?)\2/g,i=n(1189);e.exports=function(e){var t,n=0,o=!0,a={type:"tag",name:"",voidElement:!1,attrs:{},children:[]};return e.replace(r,(function(r){if("="===r)return o=!0,void n++;o?0===n?((i[r]||"/"===e.charAt(e.length-2))&&(a.voidElement=!0),a.name=r):(a.attrs[t]=r.replace(/^['"]|['"]$/g,""),t=void 0):(t&&(a.attrs[t]=t),t=r),n++,o=!1})),a}},function(e,t){e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},function(e,t){function n(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(e){var t=[];for(var n in e)t.push(n+'="'+e[n]+'"');return t.length?" "+t.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(n,"")+"</"+t.name+">"}}e.exports=function(e){return e.reduce((function(e,t){return e+n("",t)}),"")}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){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}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,n){"use strict";var r=n(1195);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,bigint: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){var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,c=/^\s+|\s+$/g,l="\n",f="/",d="*",p="",h="comment",v="declaration";function g(e){return e?e.replace(c,p):p}e.exports=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var c=1,m=1;function y(e){var t=e.match(r);t&&(c+=t.length);var n=e.lastIndexOf(l);m=~n?e.length-n:m+e.length}function b(){var e={line:c,column:m};return function(t){return t.position=new x(e),O(),t}}function x(e){this.start=e,this.end={line:c,column:m},this.source=t.source}x.prototype.content=e;var w=[];function _(n){var r=new Error(t.source+":"+c+":"+m+": "+n);if(r.reason=n,r.filename=t.source,r.line=c,r.column=m,r.source=e,!t.silent)throw r;w.push(r)}function S(t){var n=t.exec(e);if(n){var r=n[0];return y(r),e=e.slice(r.length),n}}function O(){S(i)}function k(e){var t;for(e=e||[];t=E();)!1!==t&&e.push(t);return e}function E(){var t=b();if(f==e.charAt(0)&&d==e.charAt(1)){for(var n=2;p!=e.charAt(n)&&(d!=e.charAt(n)||f!=e.charAt(n+1));)++n;if(n+=2,p===e.charAt(n-1))return _("End of comment missing");var r=e.slice(2,n-2);return m+=2,y(r),e=e.slice(n),m+=2,t({type:h,comment:r})}}function j(){var e=b(),t=S(o);if(t){if(E(),!S(a))return _("property missing ':'");var r=S(s),i=e({type:v,property:g(t[0].replace(n,p)),value:r?g(r[0].replace(n,p)):p});return S(u),i}}return O(),function(){var e,t=[];for(k(t);e=j();)!1!==e&&(t.push(e),k(t));return t}()}},function(e,t,n){"use strict";var r=n(1199);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,bigint: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";var r=n(1201);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,bigint: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";n.r(t);var r=n(618);n.d(t,"default",(function(){return r.a}));var i=n(73);n.d(t,"chipClasses",(function(){return i.a})),n.d(t,"getChipUtilityClass",(function(){return i.b}))},function(e,t,n){"use strict";var r=n(139);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getInputUtilityClass=function(e){return(0,o.generateUtilityClass)("MuiInput",e)};var i=r(n(203)),o=n(19),a=n(230);var s=(0,i.default)({},a.inputBaseClasses,(0,o.generateUtilityClasses)("MuiInput",["root","underline","input"]));t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getInputBaseUtilityClass=function(e){return(0,r.generateUtilityClass)("MuiInputBase",e)};var r=n(19);var i=(0,r.generateUtilityClasses)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);t.default=i},function(e,t,n){"use strict";var r=n(139);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getOutlinedInputUtilityClass=function(e){return(0,o.generateUtilityClass)("MuiOutlinedInput",e)};var i=r(n(203)),o=n(19),a=n(230);var s=(0,i.default)({},a.inputBaseClasses,(0,o.generateUtilityClasses)("MuiOutlinedInput",["root","notchedOutline","input"]));t.default=s},function(e,t,n){"use strict";var r=n(139);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getFilledInputUtilityClass=function(e){return(0,o.generateUtilityClass)("MuiFilledInput",e)};var i=r(n(203)),o=n(19),a=n(230);var s=(0,i.default)({},a.inputBaseClasses,(0,o.generateUtilityClasses)("MuiFilledInput",["root","underline","input"]));t.default=s},function(e,t,n){"use strict";function r(e){return(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})(e)}var i=n(139);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;!function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=o?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(i,a,u):i[a]=e[a]}i.default=e,n&&n.set(e,i)}(n(2));var o=i(n(691)),a=n(5);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}var u=(0,o.default)((0,a.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");t.default=u},function(e,t,n){"use strict";function r(e){return(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})(e)}var i=n(139);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;!function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=o?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(i,a,u):i[a]=e[a]}i.default=e,n&&n.set(e,i)}(n(2));var o=i(n(691)),a=n(5);function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}var u=(0,o.default)((0,a.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");t.default=u},function(e,t,n){"use strict";var r=n(139);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.props,n=e.name;return(0,i.useThemeProps)({props:t,name:n,defaultTheme:o.default})};var i=n(69),o=r(n(578))},function(e,t,n){"use strict";var r=n(139);Object.defineProperty(t,"__esModule",{value:!0}),t.createMuiTheme=function(){0;return v.apply(void 0,arguments)},t.default=void 0;var i=r(n(203)),o=r(n(380)),a=n(27),s=(n(19),n(69)),u=r(n(1211)),c=r(n(1212)),l=r(n(1221)),f=r(n(1222)),d=r(n(1223)),p=r(n(1224)),h=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mixins,n=void 0===t?{}:t,r=e.palette,v=void 0===r?{}:r,g=e.transitions,m=void 0===g?{}:g,y=e.typography,b=void 0===y?{}:y,x=(0,o.default)(e,h);if(e.vars)throw new Error((0,a.formatMuiErrorMessage)(18));var w=(0,c.default)(v),_=(0,s.createTheme)(e),S=(0,a.deepmerge)(_,{mixins:(0,u.default)(_.breakpoints,n),palette:w,shadows:f.default.slice(),typography:(0,l.default)(w,b),transitions:(0,d.default)(m),zIndex:(0,i.default)({},p.default)});S=(0,a.deepmerge)(S,x);for(var O=arguments.length,k=new Array(O>1?O-1:0),E=1;E<O;E++)k[E-1]=arguments[E];return S=k.reduce((function(e,t){return(0,a.deepmerge)(e,t)}),S)}var g=v;t.default=g},function(e,t,n){"use strict";function r(e){return(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})(e)}function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===r(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(139);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,a.default)({toolbar:i(i({minHeight:56},e.up("xs"),{"@media (orientation: landscape)":{minHeight:48}}),e.up("sm"),{minHeight:64})},t)};var a=o(n(203))},function(e,t,n){"use strict";var r=n(139);Object.defineProperty(t,"__esModule",{value:!0}),t.dark=void 0,t.default=function(e){var t=e.mode,n=void 0===t?"light":t,r=e.contrastThreshold,x=void 0===r?3:r,w=e.tonalOffset,_=void 0===w?.2:w,S=(0,o.default)(e,g),O=e.primary||function(){if("dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light"))return{main:p.default[200],light:p.default[50],dark:p.default[400]};return{main:p.default[700],light:p.default[400],dark:p.default[800]}}(n),k=e.secondary||function(){if("dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light"))return{main:l.default[200],light:l.default[50],dark:l.default[400]};return{main:l.default[500],light:l.default[300],dark:l.default[700]}}(n),E=e.error||function(){if("dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light"))return{main:f.default[500],light:f.default[300],dark:f.default[700]};return{main:f.default[700],light:f.default[400],dark:f.default[800]}}(n),j=e.info||function(){if("dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light"))return{main:h.default[400],light:h.default[300],dark:h.default[700]};return{main:h.default[700],light:h.default[500],dark:h.default[900]}}(n),T=e.success||function(){if("dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light"))return{main:v.default[400],light:v.default[300],dark:v.default[700]};return{main:v.default[800],light:v.default[500],dark:v.default[900]}}(n),C=e.warning||function(){if("dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light"))return{main:d.default[400],light:d.default[300],dark:d.default[700]};return{main:"#ed6c02",light:d.default[500],dark:d.default[900]}}(n);function A(e){return(0,s.getContrastRatio)(e,y.text.primary)>=x?y.text.primary:m.text.primary}var P=function(e){var t=e.color,n=e.name,r=e.mainShade,o=void 0===r?500:r,s=e.lightShade,u=void 0===s?300:s,c=e.darkShade,l=void 0===c?700:c;if(!(t=(0,i.default)({},t)).main&&t[o]&&(t.main=t[o]),!t.hasOwnProperty("main"))throw new Error((0,a.formatMuiErrorMessage)(11,n?" (".concat(n,")"):"",o));if("string"!=typeof t.main)throw new Error((0,a.formatMuiErrorMessage)(12,n?" (".concat(n,")"):"",JSON.stringify(t.main)));return b(t,"light",u,_),b(t,"dark",l,_),t.contrastText||(t.contrastText=A(t.main)),t},M={dark:y,light:m};0;return(0,a.deepmerge)((0,i.default)({common:(0,i.default)({},u.default),mode:n,primary:P({color:O,name:"primary"}),secondary:P({color:k,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:P({color:E,name:"error"}),warning:P({color:C,name:"warning"}),info:P({color:j,name:"info"}),success:P({color:T,name:"success"}),grey:c.default,contrastThreshold:x,getContrastText:A,augmentColor:P,tonalOffset:_},M[n]),S)},t.light=void 0;var i=r(n(203)),o=r(n(380)),a=n(27),s=n(69),u=r(n(1213)),c=r(n(1214)),l=r(n(1215)),f=r(n(1216)),d=r(n(1217)),p=r(n(1218)),h=r(n(1219)),v=r(n(1220)),g=["mode","contrastThreshold","tonalOffset"],m={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:u.default.white,default:u.default.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}};t.light=m;var y={text:{primary:u.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:u.default.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function b(e,t,n,r){var i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,s.lighten)(e.main,i):"dark"===t&&(e.dark=(0,s.darken)(e.main,o)))}t.dark=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={black:"#000",white:"#fff"};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};t.default=r},function(e,t,n){"use strict";var r=n(139);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,l=void 0===r?c:r,f=n.fontSize,d=void 0===f?14:f,p=n.fontWeightLight,h=void 0===p?300:p,v=n.fontWeightRegular,g=void 0===v?400:v,m=n.fontWeightMedium,y=void 0===m?500:m,b=n.fontWeightBold,x=void 0===b?700:b,w=n.htmlFontSize,_=void 0===w?16:w,S=n.allVariants,O=n.pxToRem,k=(0,o.default)(n,s);0;var E=d/14,j=O||function(e){return"".concat(e/_*E,"rem")},T=function(e,t,n,r,o){return(0,i.default)({fontFamily:l,fontWeight:e,fontSize:j(t),lineHeight:n},l===c?{letterSpacing:"".concat((a=r/t,Math.round(1e5*a)/1e5),"em")}:{},o,S);var a},C={h1:T(h,96,1.167,-1.5),h2:T(h,60,1.2,-.5),h3:T(g,48,1.167,0),h4:T(g,34,1.235,.25),h5:T(g,24,1.334,0),h6:T(y,20,1.6,.15),subtitle1:T(g,16,1.75,.15),subtitle2:T(y,14,1.57,.1),body1:T(g,16,1.5,.15),body2:T(g,14,1.43,.15),button:T(y,14,1.75,.4,u),caption:T(g,12,1.66,.4),overline:T(g,12,2.66,1,u)};return(0,a.deepmerge)((0,i.default)({htmlFontSize:_,pxToRem:j,fontFamily:l,fontSize:d,fontWeightLight:h,fontWeightRegular:g,fontWeightMedium:y,fontWeightBold:x},C),k,{clone:!1})};var i=r(n(203)),o=r(n(380)),a=n(27),s=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];var u={textTransform:"uppercase"},c='"Roboto", "Helvetica", "Arial", sans-serif'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=.2,i=.14,o=.12;function a(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(r,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(i,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(o,")")].join(",")}var s=["none",a(0,2,1,-1,0,1,1,0,0,1,3,0),a(0,3,1,-2,0,2,2,0,0,1,5,0),a(0,3,3,-2,0,3,4,0,0,1,8,0),a(0,2,4,-1,0,4,5,0,0,1,10,0),a(0,3,5,-1,0,5,8,0,0,1,14,0),a(0,3,5,-1,0,6,10,0,0,1,18,0),a(0,4,5,-2,0,7,10,1,0,2,16,1),a(0,5,5,-3,0,8,10,1,0,3,14,2),a(0,5,6,-3,0,9,12,1,0,3,16,2),a(0,6,6,-3,0,10,14,1,0,4,18,3),a(0,6,7,-4,0,11,15,1,0,4,20,3),a(0,7,8,-4,0,12,17,2,0,5,22,4),a(0,7,8,-4,0,13,19,2,0,5,24,4),a(0,7,9,-4,0,14,21,2,0,5,26,4),a(0,8,9,-5,0,15,22,2,0,6,28,5),a(0,8,10,-5,0,16,24,2,0,6,30,5),a(0,8,11,-5,0,17,26,2,0,6,32,5),a(0,9,11,-5,0,18,28,2,0,7,34,6),a(0,9,12,-6,0,19,29,2,0,7,36,6),a(0,10,13,-6,0,20,31,3,0,8,38,7),a(0,10,13,-6,0,21,33,3,0,8,40,7),a(0,10,14,-6,0,22,35,3,0,8,42,7),a(0,11,14,-7,0,23,36,3,0,9,44,8),a(0,11,15,-7,0,24,38,3,0,9,46,8)];t.default=s},function(e,t,n){"use strict";var r=n(139);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=(0,o.default)({},s,e.easing),n=(0,o.default)({},u,e.duration);return(0,o.default)({getAutoHeightDuration:l,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.duration,s=void 0===o?n.standard:o,u=r.easing,l=void 0===u?t.easeInOut:u,f=r.delay,d=void 0===f?0:f;(0,i.default)(r,a);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof s?s:c(s)," ").concat(l," ").concat("string"==typeof d?d:c(d))})).join(",")}},e,{easing:t,duration:n})},t.easing=t.duration=void 0;var i=r(n(380)),o=r(n(203)),a=["duration","easing","delay"],s={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"};t.easing=s;var u={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function c(e){return"".concat(Math.round(e),"ms")}function l(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}t.duration=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};t.default=r},function(e,t,n){"use strict";var r=n(139);Object.defineProperty(t,"__esModule",{value:!0}),t.slotShouldForwardProp=t.rootShouldForwardProp=t.default=void 0;var i=n(69),o=r(n(578)),a=function(e){return(0,i.shouldForwardProp)(e)&&"classes"!==e};t.rootShouldForwardProp=a;var s=i.shouldForwardProp;t.slotShouldForwardProp=s;var u=(0,i.createStyled)({defaultTheme:o.default,rootShouldForwardProp:a});t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.getAutocompleteUtilityClass=function(e){return(0,r.generateUtilityClass)("MuiAutocomplete",e)};var r=n(19);var i=(0,r.generateUtilityClasses)("MuiAutocomplete",["root","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(27).unstable_capitalize;t.default=r},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(1230)},function(e,t,n){"use strict"; /** @license React v16.12.0 * 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,u=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,v=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case f:case d:case a:case u:case s:case h:return e;default:switch(e=e&&e.$$typeof){case l:case p:case m:case g:case c:return e;default:return t}}case o:return t}}}function _(e){return w(e)===d}t.typeOf=w,t.AsyncMode=f,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=c,t.Element=i,t.ForwardRef=p,t.Fragment=a,t.Lazy=m,t.Memo=g,t.Portal=o,t.Profiler=u,t.StrictMode=s,t.Suspense=h,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===u||e===s||e===h||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===c||e.$$typeof===l||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x)},t.isAsyncMode=function(e){return _(e)||w(e)===f},t.isConcurrentMode=_,t.isContextConsumer=function(e){return w(e)===l},t.isContextProvider=function(e){return w(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===m},t.isMemo=function(e){return w(e)===g},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===u},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===h}},function(e,t,n){"use strict";e.exports=n(1232)},function(e,t,n){"use strict"; /** @license React v16.12.0 * 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,u=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,v=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case f:case d:case a:case u:case s:case h:return e;default:switch(e=e&&e.$$typeof){case l:case p:case m:case g:case c:return e;default:return t}}case o:return t}}}function _(e){return w(e)===d}t.typeOf=w,t.AsyncMode=f,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=c,t.Element=i,t.ForwardRef=p,t.Fragment=a,t.Lazy=m,t.Memo=g,t.Portal=o,t.Profiler=u,t.StrictMode=s,t.Suspense=h,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===u||e===s||e===h||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===g||e.$$typeof===c||e.$$typeof===l||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x)},t.isAsyncMode=function(e){return _(e)||w(e)===f},t.isConcurrentMode=_,t.isContextConsumer=function(e){return w(e)===l},t.isContextProvider=function(e){return w(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===a},t.isLazy=function(e){return w(e)===m},t.isMemo=function(e){return w(e)===g},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===u},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===h}},function(e,t,n){"use strict";var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0});var i=n(2);t.default=function(){var e=r(i.useState(Object.create(null)),2)[1];return i.useCallback((function(){e(Object.create(null))}),[e])}},function(e,t,n){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=c(e),a=r[0],s=r[1],u=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),l=0,f=s>0?a-4:a;for(n=0;n<f;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],u[l++]=t>>16&255,u[l++]=t>>8&255,u[l++]=255&t;2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,u[l++]=255&t);1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t);return u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(l(e,a,a+16383>s?s:a+16383));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s<u;++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");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var i,o,a=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&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,u=(1<<s)-1,c=u>>1,l=-7,f=n?i-1:0,d=n?-1:1,p=e[t+f];for(f+=d,o=p&(1<<-l)-1,p>>=-l,l+=s;l>0;o=256*o+e[t+f],f+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=d,l-=8);if(0===o)o=1-c;else{if(o===u)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,u,c=8*o-i-1,l=(1<<c)-1,f=l>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,h=r?1:-1,v=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=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?d/u:d*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-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*v}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(module,exports,__webpack_require__){(function(module){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,factory;function _typeof2(e){return(_typeof2="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)} /*! * dist/inputmask * https://github.com/RobinHerbots/Inputmask * Copyright (c) 2010 - 2020 Robin Herbots * Licensed under the MIT license * Version: 5.0.3 */window,factory=function(){return modules=[function(e){e.exports=JSON.parse('{"BACKSPACE":8,"BACKSPACE_SAFARI":127,"DELETE":46,"DOWN":40,"END":35,"ENTER":13,"ESCAPE":27,"HOME":36,"INSERT":45,"LEFT":37,"PAGE_DOWN":34,"PAGE_UP":33,"RIGHT":39,"SPACE":32,"TAB":9,"UP":38,"X":88,"CONTROL":17}')},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==_typeof2(Symbol.iterator)?function(e){return _typeof2(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof2(e)})(e)}var i=n(2),o=n(3),a=o.document,s=n(4).generateMaskSet,u=n(4).analyseMask,c=n(7);function l(e,t,n){if(!(this instanceof l))return new l(e,t,n);this.el=void 0,this.events={},this.maskset=void 0,this.refreshValue=!1,!0!==n&&(i.isPlainObject(e)?t=e:(t=t||{},e&&(t.alias=e)),this.opts=i.extend(!0,{},this.defaults,t),this.noMasksCache=t&&void 0!==t.definitions,this.userOptions=t||{},f(this.opts.alias,t,this.opts),this.isRTL=this.opts.numericInput)}function f(e,t,n){var r=l.prototype.aliases[e];return r?(r.alias&&f(r.alias,void 0,n),i.extend(!0,n,r),i.extend(!0,n,t),!0):(null===n.mask&&(n.mask=e),!1)}l.prototype={dataAttribute:"data-inputmask",defaults:{_maxTestPos:500,placeholder:"_",optionalmarker:["[","]"],quantifiermarker:["{","}"],groupmarker:["(",")"],alternatormarker:"|",escapeChar:"\\",mask:null,regex:null,oncomplete:i.noop,onincomplete:i.noop,oncleared:i.noop,repeat:0,greedy:!1,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,insertModeVisual:!0,clearIncomplete:!1,alias:null,onKeyDown:i.noop,onBeforeMask:null,onBeforePaste:function(e,t){return i.isFunction(t.onBeforeMask)?t.onBeforeMask.call(this,e,t):e},onBeforeWrite:null,onUnMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:i.noop,skipOptionalPartCharacter:" ",numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:"",_radixDance:!1,groupSeparator:"",keepStatic:null,positionCaretOnTab:!0,tabThrough:!1,supportsInputType:["text","tel","url","password","search"],ignorables:[8,9,19,27,33,34,35,36,37,38,39,40,45,46,93,112,113,114,115,116,117,118,119,120,121,122,123,0,229],isComplete:null,preValidation:null,postValidation:null,staticDefinitionSymbol:void 0,jitMasking:!1,nullable:!0,inputEventOnly:!1,noValuePatching:!1,positionCaretOnClick:"lvp",casing:null,inputmode:"text",importDataAttributes:!0,shiftPositions:!0},definitions:{9:{validator:"[0-91-9]",definitionSymbol:"*"},a:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",definitionSymbol:"*"},"*":{validator:"[0-91-9A-Za-zА-яЁёÀ-ÿµ]"}},aliases:{},masksCache:{},mask:function(e){var t=this;return"string"==typeof e&&(e=a.getElementById(e)||a.querySelectorAll(e)),e=e.nodeName?[e]:e,i.each(e,(function(e,n){var r=i.extend(!0,{},t.opts);if(function(e,t,n,r){function a(t,i){null!==(i=void 0!==i?i:e.getAttribute(r+"-"+t))&&("string"==typeof i&&(0===t.indexOf("on")?i=o[i]:"false"===i?i=!1:"true"===i&&(i=!0)),n[t]=i)}if(!0===t.importDataAttributes){var s,u,c,l,d=e.getAttribute(r);if(d&&""!==d&&(d=d.replace(/'/g,'"'),u=JSON.parse("{"+d+"}")),u)for(l in c=void 0,u)if("alias"===l.toLowerCase()){c=u[l];break}for(s in a("alias",c),n.alias&&f(n.alias,n,t),t){if(u)for(l in c=void 0,u)if(l.toLowerCase()===s.toLowerCase()){c=u[l];break}a(s,c)}}return i.extend(!0,t,n),"rtl"!==e.dir&&!t.rightAlign||(e.style.textAlign="right"),"rtl"!==e.dir&&!t.numericInput||(e.dir="ltr",e.removeAttribute("dir"),t.isRTL=!0),Object.keys(n).length}(n,r,i.extend(!0,{},t.userOptions),t.dataAttribute)){var a=s(r,t.noMasksCache);void 0!==a&&(void 0!==n.inputmask&&(n.inputmask.opts.autoUnmask=!0,n.inputmask.remove()),n.inputmask=new l(void 0,void 0,!0),n.inputmask.opts=r,n.inputmask.noMasksCache=t.noMasksCache,n.inputmask.userOptions=i.extend(!0,{},t.userOptions),n.inputmask.isRTL=r.isRTL||r.numericInput,n.inputmask.el=n,n.inputmask.maskset=a,i.data(n,"_inputmask_opts",r),c.call(n.inputmask,{action:"mask"}))}})),e&&e[0]&&e[0].inputmask||this},option:function(e,t){return"string"==typeof e?this.opts[e]:"object"===r(e)?(i.extend(this.userOptions,e),this.el&&!0!==t&&this.mask(this.el),this):void 0},unmaskedvalue:function(e){return this.maskset=this.maskset||s(this.opts,this.noMasksCache),c.call(this,{action:"unmaskedvalue",value:e})},remove:function(){return c.call(this,{action:"remove"})},getemptymask:function(){return this.maskset=this.maskset||s(this.opts,this.noMasksCache),c.call(this,{action:"getemptymask"})},hasMaskedValue:function(){return!this.opts.autoUnmask},isComplete:function(){return this.maskset=this.maskset||s(this.opts,this.noMasksCache),c.call(this,{action:"isComplete"})},getmetadata:function(){return this.maskset=this.maskset||s(this.opts,this.noMasksCache),c.call(this,{action:"getmetadata"})},isValid:function(e){return this.maskset=this.maskset||s(this.opts,this.noMasksCache),c.call(this,{action:"isValid",value:e})},format:function(e,t){return this.maskset=this.maskset||s(this.opts,this.noMasksCache),c.call(this,{action:"format",value:e,metadata:t})},setValue:function(e){this.el&&i(this.el).trigger("setvalue",[e])},analyseMask:u},l.extendDefaults=function(e){i.extend(!0,l.prototype.defaults,e)},l.extendDefinitions=function(e){i.extend(!0,l.prototype.definitions,e)},l.extendAliases=function(e){i.extend(!0,l.prototype.aliases,e)},l.format=function(e,t,n){return l(t).format(e,n)},l.unmask=function(e,t){return l(t).unmaskedvalue(e)},l.isValid=function(e,t){return l(t).isValid(e)},l.remove=function(e){"string"==typeof e&&(e=a.getElementById(e)||a.querySelectorAll(e)),e=e.nodeName?[e]:e,i.each(e,(function(e,t){t.inputmask&&t.inputmask.remove()}))},l.setValue=function(e,t){"string"==typeof e&&(e=a.getElementById(e)||a.querySelectorAll(e)),e=e.nodeName?[e]:e,i.each(e,(function(e,n){n.inputmask?n.inputmask.setValue(t):i(n).trigger("setvalue",[t])}))};var d=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^"].join("|\\")+")","gim");l.escapeRegex=function(e){return e.replace(d,"\\$1")},l.dependencyLib=i,o.Inputmask=l,e.exports=l},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==_typeof2(Symbol.iterator)?function(e){return _typeof2(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof2(e)})(e)}var i=n(3),o=i.document;function a(e){return null!=e&&e===e.window}function s(e){return e instanceof Element}function u(e){return e instanceof u?e:this instanceof u?void(null!=e&&e!==i&&(this[0]=e.nodeName?e:void 0!==e[0]&&e[0].nodeName?e[0]:o.querySelector(e),void 0!==this[0]&&null!==this[0]&&(this[0].eventRegistry=this[0].eventRegistry||{}))):new u(e)}u.prototype={on:function(e,t){function n(e,n){i.addEventListener?i.addEventListener(e,t,!1):i.attachEvent&&i.attachEvent("on"+e,t),r[e]=r[e]||{},r[e][n]=r[e][n]||[],r[e][n].push(t)}if(s(this[0]))for(var r=this[0].eventRegistry,i=this[0],o=e.split(" "),a=0;a<o.length;a++){var u=o[a].split(".");n(u[0],u[1]||"global")}return this},off:function(e,t){var n,r;function i(e,t,i){if(e in n==1)if(r.removeEventListener?r.removeEventListener(e,i,!1):r.detachEvent&&r.detachEvent("on"+e,i),"global"===t)for(var o in n[e])n[e][o].splice(n[e][o].indexOf(i),1);else n[e][t].splice(n[e][t].indexOf(i),1)}function o(e,r){var i,o,a=[];if(0<e.length)if(void 0===t)for(i=0,o=n[e][r].length;i<o;i++)a.push({ev:e,namespace:r&&0<r.length?r:"global",handler:n[e][r][i]});else a.push({ev:e,namespace:r&&0<r.length?r:"global",handler:t});else if(0<r.length)for(var s in n)for(var u in n[s])if(u===r)if(void 0===t)for(i=0,o=n[s][u].length;i<o;i++)a.push({ev:s,namespace:u,handler:n[s][u][i]});else a.push({ev:s,namespace:u,handler:t});return a}if(s(this[0])){n=this[0].eventRegistry,r=this[0];for(var a=e.split(" "),u=0;u<a.length;u++)for(var c=a[u].split("."),l=o(c[0],c[1]),f=0,d=l.length;f<d;f++)i(l[f].ev,l[f].namespace,l[f].handler)}return this},trigger:function(e,t){if(s(this[0]))for(var n=this[0].eventRegistry,r=this[0],i="string"==typeof e?e.split(" "):[e.type],a=0;a<i.length;a++){var c=i[a].split("."),l=c[0],f=c[1]||"global";if(void 0!==o&&"global"===f){var d,p,h={bubbles:!0,cancelable:!0,detail:t};if(o.createEvent){try{d=new CustomEvent(l,h)}catch(e){(d=o.createEvent("CustomEvent")).initCustomEvent(l,h.bubbles,h.cancelable,h.detail)}e.type&&u.extend(d,e),r.dispatchEvent(d)}else(d=o.createEventObject()).eventType=l,d.detail=t,e.type&&u.extend(d,e),r.fireEvent("on"+d.eventType,d)}else if(void 0!==n[l])if((e=e.type?e:u.Event(e)).detail=arguments.slice(1),"global"===f)for(var v in n[l])for(p=0;p<n[l][v].length;p++)n[l][v][p].apply(r,arguments);else for(p=0;p<n[l][f].length;p++)n[l][f][p].apply(r,arguments)}return this}},u.isFunction=function(e){return"function"==typeof e},u.noop=function(){},u.isArray=Array.isArray,u.inArray=function(e,t,n){return null==t?-1:function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}(t,e)},u.valHooks=void 0,u.isPlainObject=function(e){return!("object"!==r(e)||e.nodeType||a(e)||e.constructor&&!Object.hasOwnProperty.call(e.constructor.prototype,"isPrototypeOf"))},u.extend=function(){var e,t,n,i,o,a,s=arguments[0]||{},c=1,l=arguments.length,f=!1;for("boolean"==typeof s&&(f=s,s=arguments[c]||{},c++),"object"===r(s)||u.isFunction(s)||(s={}),c===l&&(s=this,c--);c<l;c++)if(null!=(e=arguments[c]))for(t in e)n=s[t],s!==(i=e[t])&&(f&&i&&(u.isPlainObject(i)||(o=u.isArray(i)))?(a=o?(o=!1,n&&u.isArray(n)?n:[]):n&&u.isPlainObject(n)?n:{},s[t]=u.extend(f,a,i)):void 0!==i&&(s[t]=i));return s},u.each=function(e,t){var n=0;if(function(e){var t="length"in e&&e.length,n=r(e);return"function"!==n&&!a(e)&&(!(1!==e.nodeType||!t)||"array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}(e))for(var i=e.length;n<i&&!1!==t.call(e[n],n,e[n]);n++);else for(n in e)if(!1===t.call(e[n],n,e[n]))break;return e},u.data=function(e,t,n){if(void 0===n)return e.__data?e.__data[t]:null;e.__data=e.__data||{},e.__data[t]=n},"function"==typeof i.CustomEvent?u.Event=i.CustomEvent:(u.Event=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=o.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n},u.Event.prototype=i.Event.prototype),e.exports=u},function(module,exports,__webpack_require__){"use strict";var __WEBPACK_AMD_DEFINE_RESULT__;function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==_typeof2(Symbol.iterator)?function(e){return _typeof2(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof2(e)})(e)}__WEBPACK_AMD_DEFINE_RESULT__=function(){return"undefined"!=typeof window?window:new(eval("require('jsdom').JSDOM"))("").window}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},function(e,t,n){"use strict";var r=n(2);e.exports={generateMaskSet:function(e,t){function n(e,n,i){var o,a,s=!1;if(null!==e&&""!==e||(e=(s=null!==i.regex)?(e=i.regex).replace(/^(\^)(.*)(\$)$/,"$2"):(s=!0,".*")),1===e.length&&!1===i.greedy&&0!==i.repeat&&(i.placeholder=""),0<i.repeat||"*"===i.repeat||"+"===i.repeat){var u="*"===i.repeat?0:"+"===i.repeat?1:i.repeat;e=i.groupmarker[0]+e+i.groupmarker[1]+i.quantifiermarker[0]+u+","+i.repeat+i.quantifiermarker[1]}return a=s?"regex_"+i.regex:i.numericInput?e.split("").reverse().join(""):e,!1!==i.keepStatic&&(a="ks_"+a),void 0===Inputmask.prototype.masksCache[a]||!0===t?(o={mask:e,maskToken:Inputmask.prototype.analyseMask(e,s,i),validPositions:{},_buffer:void 0,buffer:void 0,tests:{},excludes:{},metadata:n,maskLength:void 0,jitOffset:{}},!0!==t&&(Inputmask.prototype.masksCache[a]=o,o=r.extend(!0,{},Inputmask.prototype.masksCache[a]))):o=r.extend(!0,{},Inputmask.prototype.masksCache[a]),o}if(r.isFunction(e.mask)&&(e.mask=e.mask(e)),r.isArray(e.mask)){if(1<e.mask.length){null===e.keepStatic&&(e.keepStatic=!0);var i=e.groupmarker[0];return r.each(e.isRTL?e.mask.reverse():e.mask,(function(t,n){1<i.length&&(i+=e.groupmarker[1]+e.alternatormarker+e.groupmarker[0]),void 0===n.mask||r.isFunction(n.mask)?i+=n:i+=n.mask})),n(i+=e.groupmarker[1],e.mask,e)}e.mask=e.mask.pop()}return null===e.keepStatic&&(e.keepStatic=!1),e.mask&&void 0!==e.mask.mask&&!r.isFunction(e.mask.mask)?n(e.mask.mask,e.mask,e):n(e.mask,e.mask,e)},analyseMask:function(e,t,n){var i,o,a,s,u,c,l=/(?:[?*+]|\{[0-9+*]+(?:,[0-9+*]*)?(?:\|[0-9+*]*)?\})|[^.?*+^${[]()|\\]+|./g,f=/\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g,d=!1,p=new m,h=[],v=[],g=!1;function m(e,t,n,r){this.matches=[],this.openGroup=e||!1,this.alternatorGroup=!1,this.isGroup=e||!1,this.isOptional=t||!1,this.isQuantifier=n||!1,this.isAlternator=r||!1,this.quantifier={min:1,max:1}}function y(e,i,o){o=void 0!==o?o:e.matches.length;var a=e.matches[o-1];if(t)0===i.indexOf("[")||d&&/\\d|\\s|\\w]/i.test(i)||"."===i?e.matches.splice(o++,0,{fn:new RegExp(i,n.casing?"i":""),static:!1,optionality:!1,newBlockMarker:void 0===a?"master":a.def!==i,casing:null,def:i,placeholder:void 0,nativeDef:i}):(d&&(i=i[i.length-1]),r.each(i.split(""),(function(t,r){a=e.matches[o-1],e.matches.splice(o++,0,{fn:/[a-z]/i.test(n.staticDefinitionSymbol||r)?new RegExp("["+(n.staticDefinitionSymbol||r)+"]",n.casing?"i":""):null,static:!0,optionality:!1,newBlockMarker:void 0===a?"master":a.def!==r&&!0!==a.static,casing:null,def:n.staticDefinitionSymbol||r,placeholder:void 0!==n.staticDefinitionSymbol?r:void 0,nativeDef:(d?"'":"")+r})}))),d=!1;else{var s=(n.definitions?n.definitions[i]:void 0)||Inputmask.prototype.definitions[i];s&&!d?e.matches.splice(o++,0,{fn:s.validator?"string"==typeof s.validator?new RegExp(s.validator,n.casing?"i":""):new function(){this.test=s.validator}:new RegExp("."),static:s.static||!1,optionality:!1,newBlockMarker:void 0===a?"master":a.def!==(s.definitionSymbol||i),casing:s.casing,def:s.definitionSymbol||i,placeholder:s.placeholder,nativeDef:i,generated:s.generated}):(e.matches.splice(o++,0,{fn:/[a-z]/i.test(n.staticDefinitionSymbol||i)?new RegExp("["+(n.staticDefinitionSymbol||i)+"]",n.casing?"i":""):null,static:!0,optionality:!1,newBlockMarker:void 0===a?"master":a.def!==i&&!0!==a.static,casing:null,def:n.staticDefinitionSymbol||i,placeholder:void 0!==n.staticDefinitionSymbol?i:void 0,nativeDef:(d?"'":"")+i}),d=!1)}}function b(){if(0<h.length){if(y(s=h[h.length-1],o),s.isAlternator){u=h.pop();for(var e=0;e<u.matches.length;e++)u.matches[e].isGroup&&(u.matches[e].isGroup=!1);0<h.length?(s=h[h.length-1]).matches.push(u):p.matches.push(u)}}else y(p,o)}function x(e){var t=new m(!0);return t.openGroup=!1,t.matches=e,t}function w(){if((a=h.pop()).openGroup=!1,void 0!==a)if(0<h.length){if((s=h[h.length-1]).matches.push(a),s.isAlternator){u=h.pop();for(var e=0;e<u.matches.length;e++)u.matches[e].isGroup=!1,u.matches[e].alternatorGroup=!1;0<h.length?(s=h[h.length-1]).matches.push(u):p.matches.push(u)}}else p.matches.push(a);else b()}function _(e){var t=e.pop();return t.isQuantifier&&(t=x([e.pop(),t])),t}for(t&&(n.optionalmarker[0]=void 0,n.optionalmarker[1]=void 0);i=t?f.exec(e):l.exec(e);){if(o=i[0],t)switch(o.charAt(0)){case"?":o="{0,1}";break;case"+":case"*":o="{"+o+"}";break;case"|":if(0===h.length){var S=x(p.matches);S.openGroup=!0,h.push(S),p.matches=[],g=!0}}if(d)b();else switch(o.charAt(0)){case"(?=":case"(?!":case"(?<=":case"(?<!":break;case n.escapeChar:d=!0,t&&b();break;case n.optionalmarker[1]:case n.groupmarker[1]:w();break;case n.optionalmarker[0]:h.push(new m(!1,!0));break;case n.groupmarker[0]:h.push(new m(!0));break;case n.quantifiermarker[0]:var O=new m(!1,!1,!0),k=(o=o.replace(/[{}]/g,"")).split("|"),E=k[0].split(","),j=isNaN(E[0])?E[0]:parseInt(E[0]),T=1===E.length?j:isNaN(E[1])?E[1]:parseInt(E[1]);"*"!==j&&"+"!==j||(j="*"===T?0:1),O.quantifier={min:j,max:T,jit:k[1]};var C=0<h.length?h[h.length-1].matches:p.matches;if((i=C.pop()).isAlternator){C.push(i),C=i.matches;var A=new m(!0),P=C.pop();C.push(A),C=A.matches,i=P}i.isGroup||(i=x([i])),C.push(i),C.push(O);break;case n.alternatormarker:if(0<h.length){var M=(s=h[h.length-1]).matches[s.matches.length-1];c=s.openGroup&&(void 0===M.matches||!1===M.isGroup&&!1===M.isAlternator)?h.pop():_(s.matches)}else c=_(p.matches);if(c.isAlternator)h.push(c);else if(c.alternatorGroup?(u=h.pop(),c.alternatorGroup=!1):u=new m(!1,!1,!1,!0),u.matches.push(c),h.push(u),c.openGroup){c.openGroup=!1;var I=new m(!0);I.alternatorGroup=!0,h.push(I)}break;default:b()}}for(g&&w();0<h.length;)a=h.pop(),p.matches.push(a);return 0<p.matches.length&&(function e(i){i&&i.matches&&r.each(i.matches,(function(r,o){var a=i.matches[r+1];(void 0===a||void 0===a.matches||!1===a.isQuantifier)&&o&&o.isGroup&&(o.isGroup=!1,t||(y(o,n.groupmarker[0],0),!0!==o.openGroup&&y(o,n.groupmarker[1]))),e(o)}))}(p),v.push(p)),(n.numericInput||n.isRTL)&&function e(t){for(var r in t.matches=t.matches.reverse(),t.matches)if(Object.prototype.hasOwnProperty.call(t.matches,r)){var i=parseInt(r);if(t.matches[r].isQuantifier&&t.matches[i+1]&&t.matches[i+1].isGroup){var o=t.matches[r];t.matches.splice(r,1),t.matches.splice(i+1,0,o)}void 0!==t.matches[r].matches?t.matches[r]=e(t.matches[r]):t.matches[r]=((a=t.matches[r])===n.optionalmarker[0]?a=n.optionalmarker[1]:a===n.optionalmarker[1]?a=n.optionalmarker[0]:a===n.groupmarker[0]?a=n.groupmarker[1]:a===n.groupmarker[1]&&(a=n.groupmarker[0]),a)}var a;return t}(v[0]),v}}},function(e,t,n){"use strict";n(6),n(8),n(9),n(10),e.exports=n(1)},function(e,t,n){"use strict";var r=n(1);r.extendDefinitions({A:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"&":{validator:"[0-9A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"#":{validator:"[0-9A-Fa-f]",casing:"upper"}});var i=new RegExp("25[0-5]|2[0-4][0-9]|[01][0-9][0-9]");function o(e,t,n,r,o){return e=-1<n-1&&"."!==t.buffer[n-1]?(e=t.buffer[n-1]+e,-1<n-2&&"."!==t.buffer[n-2]?t.buffer[n-2]+e:"0"+e):"00"+e,i.test(e)}r.extendAliases({cssunit:{regex:"[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)"},url:{regex:"(https?|ftp)//.*",autoUnmask:!1},ip:{mask:"i[i[i]].j[j[j]].k[k[k]].l[l[l]]",definitions:{i:{validator:o},j:{validator:o},k:{validator:o},l:{validator:o}},onUnMask:function(e,t,n){return e},inputmode:"numeric"},email:{mask:"*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",greedy:!1,casing:"lower",onBeforePaste:function(e,t){return(e=e.toLowerCase()).replace("mailto:","")},definitions:{"*":{validator:"[0-91-9A-Za-zА-яЁёÀ-ÿµ!#$%&'*+/=?^_`{|}~-]"},"-":{validator:"[0-9A-Za-z-]"}},onUnMask:function(e,t,n){return e},inputmode:"email"},mac:{mask:"##:##:##:##:##:##"},vin:{mask:"V{13}9{4}",definitions:{V:{validator:"[A-HJ-NPR-Za-hj-npr-z\\d]",casing:"upper"}},clearIncomplete:!0,autoUnmask:!0},ssn:{mask:"999-99-9999",postValidation:function(e,t,n,r,i,o,a){return/^(?!219-09-9999|078-05-1120)(?!666|000|9.{2}).{3}-(?!00).{2}-(?!0{4}).{4}$/.test(e.join(""))}}}),e.exports=r},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==_typeof2(Symbol.iterator)?function(e){return _typeof2(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof2(e)})(e)}var i=n(2),o=n(3),a=o.document,s=o.navigator&&o.navigator.userAgent||"",u=0<s.indexOf("MSIE ")||0<s.indexOf("Trident/"),c="ontouchstart"in o,l=/iemobile/i.test(s),f=/iphone/i.test(s)&&!l,d=n(0);e.exports=function e(t,n,s){n=n||this.maskset,s=s||this.opts;var p,h,v,g=this,m=this.el,y=this.isRTL||(this.isRTL=s.numericInput),b=!1,x=!1,w=!1,_=!1,S=!1,O=void 0;function k(e,t,r,i,o){var a=s.greedy;o&&(s.greedy=!1),t=t||0;var u,c,l,f,d=[],p=0;do{if(!0===e&&n.validPositions[p])c=(l=o&&!0===n.validPositions[p].match.optionality&&void 0===n.validPositions[p+1]&&(!0===n.validPositions[p].generatedInput||n.validPositions[p].input==s.skipOptionalPartCharacter&&0<p)?A(p,R(p,u,p-1)):n.validPositions[p]).match,u=l.locator.slice(),d.push(!0===r?l.input:!1===r?c.nativeDef:K(p,c));else{c=(l=P(p,u,p-1)).match,u=l.locator.slice();var h=!0!==i&&(!1!==s.jitMasking?s.jitMasking:c.jit);(f=f&&c.static&&c.def!==s.groupSeparator&&null===c.fn||n.validPositions[p-1]&&c.static&&c.def!==s.groupSeparator&&null===c.fn)||!1===h||void 0===h||"number"==typeof h&&isFinite(h)&&p<h?d.push(!1===r?c.nativeDef:K(p,c)):f=!1}p++}while((void 0===v||p<v)&&(!0!==c.static||""!==c.def)||p<t);return""===d[d.length-1]&&d.pop(),!1===r&&void 0!==n.maskLength||(n.maskLength=p-1),s.greedy=a,d}function E(e){n.buffer=void 0,!0!==e&&(n.validPositions={},n.p=0)}function j(e,t,r){var i=-1,o=-1,a=r||n.validPositions;for(var s in void 0===e&&(e=-1),a){var u=parseInt(s);a[u]&&(t||!0!==a[u].generatedInput)&&(u<=e&&(i=u),e<=u&&(o=u))}return-1===i||i==e?o:-1==o?i:e-i<o-e?i:o}function T(e){var t=e.locator[e.alternation];return"string"==typeof t&&0<t.length&&(t=t.split(",")[0]),void 0!==t?t.toString():""}function C(e,t){var n=(null!=e.alternation?e.mloc[T(e)]:e.locator).join("");if(""!==n)for(;n.length<t;)n+="0";return n}function A(e,t){for(var n,r,i,o=C(M(e=0<e?e-1:0)),a=0;a<t.length;a++){var u=t[a];n=C(u,o.length);var c=Math.abs(n-o);(void 0===r||""!==n&&c<r||i&&!s.greedy&&i.match.optionality&&"master"===i.match.newBlockMarker&&(!u.match.optionality||!u.match.newBlockMarker)||i&&i.match.optionalQuantifier&&!u.match.optionalQuantifier)&&(r=c,i=u)}return i}function P(e,t,r){return n.validPositions[e]||A(e,R(e,t?t.slice():t,r))}function M(e,t){return n.validPositions[e]?n.validPositions[e]:(t||R(e))[0]}function I(e,t,r){for(var i=!1,o=R(e),a=0;a<o.length;a++){if(o[a].match&&(!(o[a].match.nativeDef!==t.match[r.shiftPositions?"def":"nativeDef"]||r.shiftPositions&&t.match.static)||o[a].match.nativeDef===t.match.nativeDef)){i=!0;break}if(o[a].match&&o[a].match.def===t.match.nativeDef){i=void 0;break}}return!1===i&&void 0!==n.jitOffset[e]&&(i=I(e+n.jitOffset[e],t,r)),i}function R(e,t,r){var o,a=n.maskToken,u=t?r:0,c=t?t.slice():[0],l=[],f=!1,d=t?t.join(""):"";function p(t,r,a,c){function h(a,c,v){function g(e,t){var n=0===i.inArray(e,t.matches);return n||i.each(t.matches,(function(r,i){if(!0===i.isQuantifier?n=g(e,t.matches[r-1]):Object.prototype.hasOwnProperty.call(i,"matches")&&(n=g(e,i)),n)return!1})),n}function y(e,t,r){var o,a;if((n.tests[e]||n.validPositions[e])&&i.each(n.tests[e]||[n.validPositions[e]],(function(e,n){if(n.mloc[t])return o=n,!1;var i=void 0!==r?r:n.alternation,s=void 0!==n.locator[i]?n.locator[i].toString().indexOf(t):-1;(void 0===a||s<a)&&-1!==s&&(o=n,a=s)})),o){var s=o.locator[o.alternation];return(o.mloc[t]||o.mloc[s]||o.locator).slice((void 0!==r?r:o.alternation)+1)}return void 0!==r?y(e,t):void 0}function b(e,t){function n(e){for(var t,n=[],r=-1,i=0,o=e.length;i<o;i++)if("-"===e.charAt(i))for(t=e.charCodeAt(i+1);++r<t;)n.push(String.fromCharCode(r));else r=e.charCodeAt(i),n.push(e.charAt(i));return n.join("")}return e.match.def===t.match.nativeDef||!(!(s.regex||e.match.fn instanceof RegExp&&t.match.fn instanceof RegExp)||!0===e.match.static||!0===t.match.static)&&-1!==n(t.match.fn.toString().replace(/[[\]/]/g,"")).indexOf(n(e.match.fn.toString().replace(/[[\]/]/g,"")))}function x(e,t){var n=e.alternation,r=void 0===t||n===t.alternation&&-1===e.locator[n].toString().indexOf(t.locator[n]);if(!r&&n>t.alternation)for(var i=t.alternation;i<n;i++)if(e.locator[i]!==t.locator[i]){n=i,r=!0;break}if(r){e.mloc=e.mloc||{};var o=e.locator[n];if(void 0!==o){if("string"==typeof o&&(o=o.split(",")[0]),void 0===e.mloc[o]&&(e.mloc[o]=e.locator.slice()),void 0!==t){for(var a in t.mloc)"string"==typeof a&&(a=a.split(",")[0]),void 0===e.mloc[a]&&(e.mloc[a]=t.mloc[a]);e.locator[n]=Object.keys(e.mloc).join(",")}return!0}e.alternation=void 0}return!1}function w(e,t){if(e.locator.length!==t.locator.length)return!1;for(var n=e.alternation+1;n<e.locator.length;n++)if(e.locator[n]!==t.locator[n])return!1;return!0}if(u>s._maxTestPos&&void 0!==v)throw"Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. "+n.mask;if(u===e&&void 0===a.matches)return l.push({match:a,locator:c.reverse(),cd:d,mloc:{}}),!0;if(void 0!==a.matches){if(a.isGroup&&v!==a){if(a=h(t.matches[i.inArray(a,t.matches)+1],c,v))return!0}else if(a.isOptional){var _=a,S=l.length;if(a=p(a,r,c,v)){if(i.each(l,(function(e,t){S<=e&&(t.match.optionality=!0)})),o=l[l.length-1].match,void 0!==v||!g(o,_))return!0;f=!0,u=e}}else if(a.isAlternator){var O,k=a,E=[],j=l.slice(),T=c.length,C=0<r.length?r.shift():-1;if(-1===C||"string"==typeof C){var A,P=u,M=r.slice(),I=[];if("string"==typeof C)I=C.split(",");else for(A=0;A<k.matches.length;A++)I.push(A.toString());if(void 0!==n.excludes[e]){for(var R=I.slice(),D=0,L=n.excludes[e].length;D<L;D++){var N=n.excludes[e][D].toString().split(":");c.length==N[1]&&I.splice(I.indexOf(N[0]),1)}0===I.length&&(delete n.excludes[e],I=R)}(!0===s.keepStatic||isFinite(parseInt(s.keepStatic))&&P>=s.keepStatic)&&(I=I.slice(0,1));for(var F=!1,B=0;B<I.length;B++){A=parseInt(I[B]),l=[],r="string"==typeof C&&y(u,A,T)||M.slice(),k.matches[A]&&h(k.matches[A],[A].concat(c),v)?a=!0:0===B&&(F=!0),O=l.slice(),u=P,l=[];for(var U=0;U<O.length;U++){var z=O[U],V=!1;z.match.jit=z.match.jit||F,z.alternation=z.alternation||T,x(z);for(var H=0;H<E.length;H++){var W=E[H];if("string"!=typeof C||void 0!==z.alternation&&-1!==i.inArray(z.locator[z.alternation].toString(),I)){if(z.match.nativeDef===W.match.nativeDef){V=!0,x(W,z);break}if(b(z,W)){x(z,W)&&(V=!0,E.splice(E.indexOf(W),0,z));break}if(b(W,z)){x(W,z);break}if($=W,!0===(K=z).match.static&&!0!==$.match.static&&$.match.fn.test(K.match.def,n,e,!1,s,!1)){w(z,W)||void 0!==m.inputmask.userOptions.keepStatic?x(z,W)&&(V=!0,E.splice(E.indexOf(W),0,z)):s.keepStatic=!0;break}}}V||E.push(z)}}l=j.concat(E),u=e,f=0<l.length,a=0<E.length,r=M.slice()}else a=h(k.matches[C]||t.matches[C],[C].concat(c),v);if(a)return!0}else if(a.isQuantifier&&v!==t.matches[i.inArray(a,t.matches)-1])for(var q=a,G=0<r.length?r.shift():0;G<(isNaN(q.quantifier.max)?G+1:q.quantifier.max)&&u<=e;G++){var Y=t.matches[i.inArray(q,t.matches)-1];if(a=h(Y,[G].concat(c),Y)){if((o=l[l.length-1].match).optionalQuantifier=G>=q.quantifier.min,o.jit=(G||1)*Y.matches.indexOf(o)>=q.quantifier.jit,o.optionalQuantifier&&g(o,Y)){f=!0,u=e;break}return o.jit&&(n.jitOffset[e]=Y.matches.length-Y.matches.indexOf(o)),!0}}else if(a=p(a,r,c,v))return!0}else u++;var K,$}for(var v=0<r.length?r.shift():0;v<t.matches.length;v++)if(!0!==t.matches[v].isQuantifier){var g=h(t.matches[v],[v].concat(a),c);if(g&&u===e)return g;if(e<u)break}}if(-1<e&&(void 0===v||e<v)){if(void 0===t){for(var h,g=e-1;void 0===(h=n.validPositions[g]||n.tests[g])&&-1<g;)g--;void 0!==h&&-1<g&&(c=function(e,t){var n=[];return i.isArray(t)||(t=[t]),0<t.length&&(void 0===t[0].alternation||!0===s.keepStatic?0===(n=A(e,t.slice()).locator.slice()).length&&(n=t[0].locator.slice()):i.each(t,(function(e,t){if(""!==t.def)if(0===n.length)n=t.locator.slice();else for(var r=0;r<n.length;r++)t.locator[r]&&-1===n[r].toString().indexOf(t.locator[r])&&(n[r]+=","+t.locator[r])}))),n}(g,h),d=c.join(""),u=g)}if(n.tests[e]&&n.tests[e][0].cd===d)return n.tests[e];for(var y=c.shift();y<a.length&&!(p(a[y],c,[y])&&u===e||e<u);y++);}return 0!==l.length&&!f||l.push({match:{fn:null,static:!0,optionality:!1,casing:null,def:"",placeholder:""},locator:[],mloc:{},cd:d}),void 0!==t&&n.tests[e]?i.extend(!0,[],l):(n.tests[e]=i.extend(!0,[],l),n.tests[e])}function D(){return void 0===n._buffer&&(n._buffer=k(!1,1),void 0===n.buffer&&(n.buffer=n._buffer.slice())),n._buffer}function L(e){return void 0!==n.buffer&&!0!==e||(n.buffer=k(!0,j(),!0),void 0===n._buffer&&(n._buffer=n.buffer.slice())),n.buffer}function N(e,t,r){var o,a,u=s.skipOptionalPartCharacter,c=y?r.slice().reverse():r;if(s.skipOptionalPartCharacter="",!0===e)E(),n.tests={},e=0,t=r.length,a=X({begin:0,end:0},!1).begin;else{for(o=e;o<t;o++)delete n.validPositions[o];a=e}var l=new i.Event("keypress");for(o=e;o<t;o++){l.which=c[o].toString().charCodeAt(0),_=!1;var f=J.keypressEvent.call(m,l,!0,!1,!1,a);!1!==f&&(a=f.forwardPosition)}s.skipOptionalPartCharacter=u}function F(e,t,r){switch(s.casing||t.casing){case"upper":e=e.toUpperCase();break;case"lower":e=e.toLowerCase();break;case"title":var o=n.validPositions[r-1];e=0===r||o&&o.input===String.fromCharCode(d.SPACE)?e.toUpperCase():e.toLowerCase();break;default:if(i.isFunction(s.casing)){var a=Array.prototype.slice.call(arguments);a.push(n.validPositions),e=s.casing.apply(this,a)}}return e}function B(e,t,n){for(var r,o=s.greedy?t:t.slice(0,1),a=!1,u=void 0!==n?n.split(","):[],c=0;c<u.length;c++)-1!==(r=e.indexOf(u[c]))&&e.splice(r,1);for(var l=0;l<e.length;l++)if(-1!==i.inArray(e[l],o)){a=!0;break}return a}function U(e,t,r,o,a,u){var c,l,f,d,p,h,v,g,m,y=i.extend(!0,{},n.validPositions),b=i.extend(!0,{},n.tests),x=!1,w=!1,_=void 0!==a?a:j();if(u&&(g=u.begin,m=u.end,u.begin>u.end&&(g=u.end,m=u.begin)),-1===_&&void 0===a)l=(d=M(c=0)).alternation;else for(;0<=_;_--)if((f=n.validPositions[_])&&void 0!==f.alternation){if(d&&d.locator[f.alternation]!==f.locator[f.alternation])break;c=_,l=n.validPositions[c].alternation,d=f}if(void 0!==l){v=parseInt(c),n.excludes[v]=n.excludes[v]||[],!0!==e&&n.excludes[v].push(T(d)+":"+d.alternation);var S=[],O=-1;for(p=v;p<j(void 0,!0)+1;p++)-1===O&&e<=p&&void 0!==t&&(S.push(t),O=S.length-1),(h=n.validPositions[p])&&!0!==h.generatedInput&&(void 0===u||p<g||m<=p)&&S.push(h.input),delete n.validPositions[p];for(-1===O&&void 0!==t&&(S.push(t),O=S.length-1);void 0!==n.excludes[v]&&n.excludes[v].length<10;){for(n.tests={},E(!0),x=!0,p=0;p<S.length&&(x=z(x.caret||j(void 0,!0)+1,S[p],!1,o,!0));p++)p===O&&(w=x),1==e&&x&&(w={caretPos:p});if(x)break;if(E(),d=M(v),n.validPositions=i.extend(!0,{},y),n.tests=i.extend(!0,{},b),!n.excludes[v]){w=U(e,t,r,o,v-1,u);break}var k=T(d);if(-1!==n.excludes[v].indexOf(k+":"+d.alternation)){w=U(e,t,r,o,v-1,u);break}for(n.excludes[v].push(k+":"+d.alternation),p=v;p<j(void 0,!0)+1;p++)delete n.validPositions[p]}}return w&&!1===s.keepStatic||delete n.excludes[v],w}function z(e,t,r,o,a,u){function c(e){return y?1<e.begin-e.end||e.begin-e.end==1:1<e.end-e.begin||e.end-e.begin==1}r=!0===r;var l=e;function f(e){if(void 0!==e){if(void 0!==e.remove&&(i.isArray(e.remove)||(e.remove=[e.remove]),i.each(e.remove.sort((function(e,t){return t.pos-e.pos})),(function(e,t){H({begin:t,end:t+1})})),e.remove=void 0),void 0!==e.insert&&(i.isArray(e.insert)||(e.insert=[e.insert]),i.each(e.insert.sort((function(e,t){return e.pos-t.pos})),(function(e,t){""!==t.c&&z(t.pos,t.c,void 0===t.strict||t.strict,void 0!==t.fromIsValid?t.fromIsValid:o)})),e.insert=void 0),e.refreshFromBuffer&&e.buffer){var t=e.refreshFromBuffer;N(!0===t?t:t.start,t.end,e.buffer),e.refreshFromBuffer=void 0}void 0!==e.rewritePosition&&(l=e.rewritePosition,e=!0)}return e}function d(t,r,a){var u=!1;return i.each(R(t),(function(l,d){var p=d.match;if(L(!0),!1!==(u=null!=p.fn?p.fn.test(r,n,t,a,s,c(e)):(r===p.def||r===s.skipOptionalPartCharacter)&&""!==p.def&&{c:K(t,p,!0)||p.def,pos:t})){var h=void 0!==u.c?u.c:r,v=t;return h=h===s.skipOptionalPartCharacter&&!0===p.static?K(t,p,!0)||p.def:h,!0!==(u=f(u))&&void 0!==u.pos&&u.pos!==t&&(v=u.pos),(!0===u||void 0!==u.pos||void 0!==u.c)&&(!1===H(e,i.extend({},d,{input:F(h,p,v)}),o,v)&&(u=!1),!1)}})),u}void 0!==e.begin&&(l=y?e.end:e.begin);var p=!0,h=i.extend(!0,{},n.validPositions);if(!1===s.keepStatic&&void 0!==n.excludes[l]&&!0!==a&&!0!==o)for(var g=l;g<(y?e.begin:e.end);g++)void 0!==n.excludes[g]&&(n.excludes[g]=void 0,delete n.tests[g]);if(i.isFunction(s.preValidation)&&!0!==o&&!0!==u&&(p=f(p=s.preValidation.call(m,L(),l,t,c(e),s,n,e,r||a))),!0===p){if(void 0===v||l<v){if(p=d(l,t,r),(!r||!0===o)&&!1===p&&!0!==u){var b=n.validPositions[l];if(!b||!0!==b.match.static||b.match.def!==t&&t!==s.skipOptionalPartCharacter){if(s.insertMode||void 0===n.validPositions[q(l)]||e.end>l){var x=!1;if(n.jitOffset[l]&&void 0===n.validPositions[q(l)]&&!1!==(p=z(l+n.jitOffset[l],t,!0))&&(!0!==a&&(p.caret=l),x=!0),e.end>l&&(n.validPositions[l]=void 0),!x&&!W(l,s.keepStatic))for(var w=l+1,_=q(l);w<=_;w++)if(!1!==(p=d(w,t,r))){p=V(l,void 0!==p.pos?p.pos:w)||p,l=w;break}}}else p={caret:q(l)}}}else p=!1;!1!==p||!s.keepStatic||!ae(L())&&0!==l||r||!0===a?c(e)&&n.tests[l]&&1<n.tests[l].length&&s.keepStatic&&!r&&!0!==a&&(p=U(!0)):p=U(l,t,r,o,void 0,e),!0===p&&(p={pos:l})}if(i.isFunction(s.postValidation)&&!0!==o&&!0!==u){var S=s.postValidation.call(m,L(!0),void 0!==e.begin?y?e.end:e.begin:e,t,p,s,n,r);void 0!==S&&(p=!0===S?p:S)}return p&&void 0===p.pos&&(p.pos=l),!1===p||!0===u?(E(!0),n.validPositions=i.extend(!0,{},h)):V(void 0,l,!0),f(p)}function V(e,t,r){if(void 0===e)for(e=t-1;0<e&&!n.validPositions[e];e--);for(var o=e;o<t;o++)if(void 0===n.validPositions[o]&&!W(o,!0)&&(0==o?M(o):n.validPositions[o-1])){var a=R(o).slice();""===a[a.length-1].match.def&&a.pop();var s,u=A(o,a);if(u&&(!0!==u.match.jit||"master"===u.match.newBlockMarker&&(s=n.validPositions[o+1])&&!0===s.match.optionalQuantifier)&&((u=i.extend({},u,{input:K(o,u.match,!0)||u.match.def})).generatedInput=!0,H(o,u,!0),!0!==r)){var c=n.validPositions[t].input;return n.validPositions[t]=void 0,z(t,c,!0,!0)}}}function H(e,t,r,o){function a(e,t,n){var r=t[e];if(void 0===r||!0!==r.match.static||!0===r.match.optionality||void 0!==t[0]&&void 0!==t[0].alternation)return!1;var i=n.begin<=e-1?t[e-1]&&!0===t[e-1].match.static&&t[e-1]:t[e-1],o=n.end>e+1?t[e+1]&&!0===t[e+1].match.static&&t[e+1]:t[e+1];return i&&o}var u=0,c=void 0!==e.begin?e.begin:e,l=void 0!==e.end?e.end:e;if(e.begin>e.end&&(c=e.end,l=e.begin),o=void 0!==o?o:c,c!==l||s.insertMode&&void 0!==n.validPositions[o]&&void 0===r||void 0===t){var f,d=i.extend(!0,{},n.validPositions),p=j(void 0,!0);for(n.p=c,f=p;c<=f;f--)delete n.validPositions[f],void 0===t&&delete n.tests[f+1];var h,v,g=!0,m=o,y=m;for(t&&(n.validPositions[o]=i.extend(!0,{},t),y++,m++),f=t?l:l-1;f<=p;f++){if(void 0!==(h=d[f])&&!0!==h.generatedInput&&(l<=f||c<=f&&a(f,d,{begin:c,end:l}))){for(;""!==M(y).match.def;){if(!1!==(v=I(y,h,s))||"+"===h.match.def){"+"===h.match.def&&L(!0);var b=z(y,h.input,"+"!==h.match.def,"+"!==h.match.def);if(g=!1!==b,m=(b.pos||y)+1,!g&&v)break}else g=!1;if(g){void 0===t&&h.match.static&&f===e.begin&&u++;break}if(!g&&y>n.maskLength)break;y++}""==M(y).match.def&&(g=!1),y=m}if(!g)break}if(!g)return n.validPositions=i.extend(!0,{},d),E(!0),!1}else t&&M(o).match.cd===t.match.cd&&(n.validPositions[o]=i.extend(!0,{},t));return E(!0),u}function W(e,t,r){var i=P(e).match;if(""===i.def&&(i=M(e).match),!0!==i.static)return i.fn;if(!0===r&&void 0!==n.validPositions[e]&&!0!==n.validPositions[e].generatedInput)return!0;if(!0!==t&&-1<e){if(r){var o=R(e);return o.length>1+(""===o[o.length-1].match.def?1:0)}var a=A(e,R(e)),s=K(e,a.match);return a.match.def!==s}return!1}function q(e,t,n){void 0===n&&(n=!0);for(var r=e+1;""!==M(r).match.def&&(!0===t&&(!0!==M(r).match.newBlockMarker||!W(r,void 0,!0))||!0!==t&&!W(r,void 0,n));)r++;return r}function G(e,t){var n,r=e;if(r<=0)return 0;for(;0<--r&&(!0===t&&!0!==M(r).match.newBlockMarker||!0!==t&&!W(r,void 0,!0)&&((n=R(r)).length<2||2===n.length&&""===n[1].match.def)););return r}function Y(e,t,n,r,o){if(r&&i.isFunction(s.onBeforeWrite)){var a=s.onBeforeWrite.call(g,r,t,n,s);if(a){if(a.refreshFromBuffer){var u=a.refreshFromBuffer;N(!0===u?u:u.start,u.end,a.buffer||t),t=L(!0)}void 0!==n&&(n=void 0!==a.caret?a.caret:n)}}if(void 0!==e&&(e.inputmask._valueSet(t.join("")),void 0===n||void 0!==r&&"blur"===r.type||re(e,n,void 0,void 0,void 0!==r&&"keydown"===r.type&&(r.keyCode===d.DELETE||r.keyCode===d.BACKSPACE)),!0===o)){var c=i(e),l=e.inputmask._valueGet();x=!0,c.trigger("input"),setTimeout((function(){l===D().join("")?c.trigger("cleared"):!0===ae(t)&&c.trigger("complete")}),0)}}function K(e,t,r){if(void 0!==(t=t||M(e).match).placeholder||!0===r)return i.isFunction(t.placeholder)?t.placeholder(s):t.placeholder;if(!0!==t.static)return s.placeholder.charAt(e%s.placeholder.length);if(-1<e&&void 0===n.validPositions[e]){var o,a=R(e),u=[];if(a.length>1+(""===a[a.length-1].match.def?1:0))for(var c=0;c<a.length;c++)if(""!==a[c].match.def&&!0!==a[c].match.optionality&&!0!==a[c].match.optionalQuantifier&&(!0===a[c].match.static||void 0===o||!1!==a[c].match.fn.test(o.match.def,n,e,!0,s))&&(u.push(a[c]),!0===a[c].match.static&&(o=a[c]),1<u.length&&/[0-9a-bA-Z]/.test(u[0].match.def)))return s.placeholder.charAt(e%s.placeholder.length)}return t.def}function $(e,t){if(u){if(e.inputmask._valueGet()!==t&&(e.placeholder!==t||""===e.placeholder)){var n=L().slice(),r=e.inputmask._valueGet();if(r!==t){var i=j();-1===i&&r===D().join("")?n=[]:-1!==i&&oe(n),Y(e,n)}}}else e.placeholder!==t&&(e.placeholder=t,""===e.placeholder&&e.removeAttribute("placeholder"))}function X(e,t){if(t&&(y?e.end=e.begin:e.begin=e.end),e.begin===e.end){switch(s.positionCaretOnClick){case"none":break;case"select":e={begin:0,end:L().length};break;case"ignore":e.end=e.begin=q(j());break;case"radixFocus":if(function(e){if(""!==s.radixPoint&&0!==s.digits){var t=n.validPositions;if(void 0===t[e]||t[e].input===K(e)){if(e<q(-1))return!0;var r=i.inArray(s.radixPoint,L());if(-1!==r){for(var o in t)if(t[o]&&r<o&&t[o].input!==K(o))return!1;return!0}}}return!1}(e.begin)){var r=L().join("").indexOf(s.radixPoint);e.end=e.begin=s.numericInput?q(r):r;break}default:var o=e.begin,a=j(o,!0),u=q(-1!==a||W(0)?a:0);if(o<u)e.end=e.begin=W(o,!0)||W(o-1,!0)?o:q(o);else{var c=n.validPositions[a],l=P(u,c?c.match.locator:void 0,c),f=K(u,l.match);if(""!==f&&L()[u]!==f&&!0!==l.match.optionalQuantifier&&!0!==l.match.newBlockMarker||!W(u,s.keepStatic)&&l.match.def===f){var d=q(u);(d<=o||o===u)&&(u=d)}e.end=e.begin=u}}return e}}var Q,Z={on:function(e,t,n){var r=function(t){t.originalEvent&&(t=t.originalEvent||t,arguments[0]=t);var r,o=this;if(void 0===o.inputmask&&"FORM"!==this.nodeName){var a=i.data(o,"_inputmask_opts");a?new Inputmask(a).mask(o):Z.off(o)}else{if("setvalue"===t.type||"FORM"===this.nodeName||!(o.disabled||o.readOnly&&!("keydown"===t.type&&t.ctrlKey&&67===t.keyCode||!1===s.tabThrough&&t.keyCode===d.TAB))){switch(t.type){case"input":if(!0===x||t.inputType&&"insertCompositionText"===t.inputType)return x=!1,t.preventDefault();break;case"keydown":b=!1,x=!1;break;case"keypress":if(!0===b)return t.preventDefault();b=!0;break;case"click":case"focus":return w?(w=!1,e.blur(),$(e,(y?D().slice().reverse():D()).join("")),setTimeout((function(){e.focus()}),3e3)):(r=arguments,setTimeout((function(){e.inputmask&&n.apply(o,r)}),0)),!1}var u=n.apply(o,arguments);return!1===u&&(t.preventDefault(),t.stopPropagation()),u}t.preventDefault()}};e.inputmask.events[t]=e.inputmask.events[t]||[],e.inputmask.events[t].push(r),-1!==i.inArray(t,["submit","reset"])?null!==e.form&&i(e.form).on(t,r):i(e).on(t,r)},off:function(e,t){var n;e.inputmask&&e.inputmask.events&&(t?(n=[])[t]=e.inputmask.events[t]:n=e.inputmask.events,i.each(n,(function(t,n){for(;0<n.length;){var r=n.pop();-1!==i.inArray(t,["submit","reset"])?null!==e.form&&i(e.form).off(t,r):i(e).off(t,r)}delete e.inputmask.events[t]})))}},J={keydownEvent:function(e){var t=this,r=i(t),o=e.keyCode,a=re(t),u=s.onKeyDown.call(this,e,L(),a,s);if(void 0!==u)return u;if(o===d.BACKSPACE||o===d.DELETE||f&&o===d.BACKSPACE_SAFARI||e.ctrlKey&&o===d.X&&!("oncut"in t))e.preventDefault(),se(0,o,a),Y(t,L(!0),n.p,e,t.inputmask._valueGet()!==L().join(""));else if(o===d.END||o===d.PAGE_DOWN){e.preventDefault();var c=q(j());re(t,e.shiftKey?a.begin:c,c,!0)}else o===d.HOME&&!e.shiftKey||o===d.PAGE_UP?(e.preventDefault(),re(t,0,e.shiftKey?a.begin:0,!0)):(s.undoOnEscape&&o===d.ESCAPE||90===o&&e.ctrlKey)&&!0!==e.altKey?(ee(t,!0,!1,p.split("")),r.trigger("click")):!0===s.tabThrough&&o===d.TAB?(!0===e.shiftKey?(!0===M(a.begin).match.static&&(a.begin=q(a.begin)),a.end=G(a.begin,!0),a.begin=G(a.end,!0)):(a.begin=q(a.begin,!0),a.end=q(a.begin,!0),a.end<n.maskLength&&a.end--),a.begin<n.maskLength&&(e.preventDefault(),re(t,a.begin,a.end))):e.shiftKey||s.insertModeVisual&&!1===s.insertMode&&(o===d.RIGHT?setTimeout((function(){var e=re(t);re(t,e.begin)}),0):o===d.LEFT&&setTimeout((function(){var e=ne(t.inputmask.caretPos.begin);ne(t.inputmask.caretPos.end),re(t,y?e+(e===n.maskLength?0:1):e-(0===e?0:1))}),0));_=-1!==i.inArray(o,s.ignorables)},keypressEvent:function(e,t,r,o,a){var u=this,c=i(u),l=e.which||e.charCode||e.keyCode;if(!(!0===t||e.ctrlKey&&e.altKey)&&(e.ctrlKey||e.metaKey||_))return l===d.ENTER&&p!==L().join("")&&(p=L().join(""),setTimeout((function(){c.trigger("change")}),0)),x=!0,!0;if(l){44!==l&&46!==l||3!==e.location||""===s.radixPoint||(l=s.radixPoint.charCodeAt(0));var f,h=t?{begin:a,end:a}:re(u),v=String.fromCharCode(l);n.writeOutBuffer=!0;var g=z(h,v,o);if(!1!==g&&(E(!0),f=void 0!==g.caret?g.caret:q(g.pos.begin?g.pos.begin:g.pos),n.p=f),f=s.numericInput&&void 0===g.caret?G(f):f,!1!==r&&(setTimeout((function(){s.onKeyValidation.call(u,l,g)}),0),n.writeOutBuffer&&!1!==g)){var m=L();Y(u,m,f,e,!0!==t)}if(e.preventDefault(),t)return!1!==g&&(g.forwardPosition=f),g}},pasteEvent:function(e){var t,n=this.inputmask._valueGet(!0),r=re(this);y&&(t=r.end,r.end=r.begin,r.begin=t);var a=n.substr(0,r.begin),u=n.substr(r.end,n.length);if(a==(y?D().slice().reverse():D()).slice(0,r.begin).join("")&&(a=""),u==(y?D().slice().reverse():D()).slice(r.end).join("")&&(u=""),o.clipboardData&&o.clipboardData.getData)n=a+o.clipboardData.getData("Text")+u;else{if(!e.clipboardData||!e.clipboardData.getData)return!0;n=a+e.clipboardData.getData("text/plain")+u}var c=n;if(i.isFunction(s.onBeforePaste)){if(!1===(c=s.onBeforePaste.call(g,n,s)))return e.preventDefault();c=c||n}return ee(this,!1,!1,c.toString().split("")),Y(this,L(),q(j()),e,p!==L().join("")),e.preventDefault()},inputFallBackEvent:function(e){var t=this,n=t.inputmask._valueGet(!0),r=(y?L().slice().reverse():L()).join(""),o=re(t,void 0,void 0,!0);if(r!==n){var u=function(e,t,n){for(var r,i,o,a=e.substr(0,n.begin).split(""),u=e.substr(n.begin).split(""),c=t.substr(0,n.begin).split(""),l=t.substr(n.begin).split(""),f=a.length>=c.length?a.length:c.length,d=u.length>=l.length?u.length:l.length,p="",h=[];a.length<f;)a.push("~");for(;c.length<f;)c.push("~");for(;u.length<d;)u.unshift("~");for(;l.length<d;)l.unshift("~");var v=a.concat(u),g=c.concat(l);for(i=0,r=v.length;i<r;i++)switch(o=K(ne(i)),p){case"insertText":g[i-1]===v[i]&&n.begin==v.length-1&&h.push(v[i]),i=r;break;case"insertReplacementText":case"deleteContentBackward":"~"===v[i]?n.end++:i=r;break;default:v[i]!==g[i]&&("~"!==v[i+1]&&v[i+1]!==o&&void 0!==v[i+1]||(g[i]!==o||"~"!==g[i+1])&&"~"!==g[i]?"~"===g[i+1]&&g[i]===v[i+1]?(p="insertText",h.push(v[i]),n.begin--,n.end--):v[i]!==o&&"~"!==v[i]&&("~"===v[i+1]||g[i]!==v[i]&&g[i+1]===v[i+1])?(p="insertReplacementText",h.push(v[i]),n.begin--):"~"===v[i]?(p="deleteContentBackward",!W(ne(i),!0)&&g[i]!==s.radixPoint||n.end++):i=r:(p="insertText",h.push(v[i]),n.begin--,n.end--))}return{action:p,data:h,caret:n}}(n=function(e,t,n){if(l){var r=t.replace(L().join(""),"");if(1===r.length){var i=t.split("");i.splice(n.begin,0,r),t=i.join("")}}return t}(0,n,o),r,o);switch((t.inputmask.shadowRoot||a).activeElement!==t&&t.focus(),Y(t,L()),re(t,o.begin,o.end,!0),u.action){case"insertText":case"insertReplacementText":i.each(u.data,(function(e,n){var r=new i.Event("keypress");r.which=n.charCodeAt(0),_=!1,J.keypressEvent.call(t,r)})),setTimeout((function(){h.trigger("keyup")}),0);break;case"deleteContentBackward":var c=new i.Event("keydown");c.keyCode=d.BACKSPACE,J.keydownEvent.call(t,c);break;default:ue(t,n)}e.preventDefault()}},compositionendEvent:function(e){h.trigger("input")},setValueEvent:function(e,t,n){var r=e&&e.detail?e.detail[0]:t;void 0===r&&(r=this.inputmask._valueGet(!0)),ue(this,r),(e.detail&&void 0!==e.detail[1]||void 0!==n)&&re(this,e.detail?e.detail[1]:n)},focusEvent:function(e){var t=this.inputmask._valueGet();s.showMaskOnFocus&&t!==L().join("")&&Y(this,L(),q(j())),!0!==s.positionCaretOnTab||!1!==S||ae(L())&&-1!==j()||J.clickEvent.apply(this,[e,!0]),p=L().join("")},invalidEvent:function(e){w=!0},mouseleaveEvent:function(){S=!1,s.clearMaskOnLostFocus&&(this.inputmask.shadowRoot||a).activeElement!==this&&$(this,O)},clickEvent:function(e,t){if((this.inputmask.shadowRoot||a).activeElement===this){var n=X(re(this),t);void 0!==n&&re(this,n)}},cutEvent:function(e){var t=re(this),r=o.clipboardData||e.clipboardData,i=y?L().slice(t.end,t.begin):L().slice(t.begin,t.end);r.setData("text",y?i.reverse().join(""):i.join("")),a.execCommand&&a.execCommand("copy"),se(0,d.DELETE,t),Y(this,L(),n.p,e,p!==L().join(""))},blurEvent:function(e){var t=i(this);if(this.inputmask){$(this,O);var n=this.inputmask._valueGet(),r=L().slice();""!==n&&(s.clearMaskOnLostFocus&&(-1===j()&&n===D().join("")?r=[]:oe(r)),!1===ae(r)&&(setTimeout((function(){t.trigger("incomplete")}),0),s.clearIncomplete&&(E(),r=s.clearMaskOnLostFocus?[]:D().slice())),Y(this,r,void 0,e)),p!==L().join("")&&(p=L().join(""),t.trigger("change"))}},mouseenterEvent:function(){S=!0,(this.inputmask.shadowRoot||a).activeElement!==this&&(null==O&&this.placeholder!==O&&(O=this.placeholder),s.showMaskOnHover&&$(this,(y?D().slice().reverse():D()).join("")))},submitEvent:function(){p!==L().join("")&&h.trigger("change"),s.clearMaskOnLostFocus&&-1===j()&&m.inputmask._valueGet&&m.inputmask._valueGet()===D().join("")&&m.inputmask._valueSet(""),s.clearIncomplete&&!1===ae(L())&&m.inputmask._valueSet(""),s.removeMaskOnSubmit&&(m.inputmask._valueSet(m.inputmask.unmaskedvalue(),!0),setTimeout((function(){Y(m,L())}),0))},resetEvent:function(){m.inputmask.refreshValue=!0,setTimeout((function(){ue(m,m.inputmask._valueGet(!0))}),0)}};function ee(e,t,r,o,a){var u=this||e.inputmask,c=o.slice(),l="",f=-1,d=void 0;E(),n.tests={},f=s.radixPoint?X({begin:0,end:0}).begin:0,n.p=f,u.caretPos={begin:f};var p=[],h=u.caretPos;if(i.each(c,(function(t,o){if(void 0!==o)if(void 0===n.validPositions[t]&&c[t]===K(t)&&W(t,!0)&&!1===z(t,c[t],!0,void 0,void 0,!0))n.p++;else{var a=new i.Event("_checkval");a.which=o.toString().charCodeAt(0),l+=o;var s=j(void 0,!0);!function(e,t){for(var n=k(!0,0).slice(e,q(e)).join("").replace(/'/g,""),r=n.indexOf(t);0<r&&" "===n[r-1];)r--;var i=0===r&&!W(e)&&(M(e).match.nativeDef===t.charAt(0)||!0===M(e).match.static&&M(e).match.nativeDef==="'"+t.charAt(0)||" "===M(e).match.nativeDef&&(M(e+1).match.nativeDef===t.charAt(0)||!0===M(e+1).match.static&&M(e+1).match.nativeDef==="'"+t.charAt(0)));if(!i&&0<r&&!W(e,!1,!0)){var o=q(e);u.caretPos.begin<o&&(u.caretPos={begin:o})}return i}(f,l)?(d=J.keypressEvent.call(e,a,!0,!1,r,u.caretPos.begin))&&(f=u.caretPos.begin+1,l=""):d=J.keypressEvent.call(e,a,!0,!1,r,s+1),d?(void 0!==d.pos&&n.validPositions[d.pos]&&!0===n.validPositions[d.pos].match.static&&void 0===n.validPositions[d.pos].alternation&&(p.push(d.pos),y||(d.forwardPosition=d.pos+1)),Y(void 0,L(),d.forwardPosition,a,!1),u.caretPos={begin:d.forwardPosition,end:d.forwardPosition},h=u.caretPos):u.caretPos=h}})),0<p.length){var v,g,m=q(-1,void 0,!1);if(!ae(L())&&p.length<=m||ae(L())&&0<p.length&&p.length!==m&&0===p[0])for(var b=m;void 0!==(v=p.shift());){var x=new i.Event("_checkval");if((g=n.validPositions[v]).generatedInput=!0,x.which=g.input.charCodeAt(0),(d=J.keypressEvent.call(e,x,!0,!1,r,b))&&void 0!==d.pos&&d.pos!==v&&n.validPositions[d.pos]&&!0===n.validPositions[d.pos].match.static)p.push(d.pos);else if(!d)break;b++}else for(;v=p.pop();)(g=n.validPositions[v])&&(g.generatedInput=!0)}if(t)for(var w in Y(e,L(),d?d.forwardPosition:void 0,a||new i.Event("checkval"),a&&"input"===a.type),n.validPositions)!0!==n.validPositions[w].match.generated&&delete n.validPositions[w].generatedInput}function te(e){if(e){if(void 0===e.inputmask)return e.value;e.inputmask&&e.inputmask.refreshValue&&ue(e,e.inputmask._valueGet(!0))}var t=[],r=n.validPositions;for(var o in r)r[o]&&r[o].match&&(1!=r[o].match.static||!0!==r[o].generatedInput)&&t.push(r[o].input);var a=0===t.length?"":(y?t.reverse():t).join("");if(i.isFunction(s.onUnMask)){var u=(y?L().slice().reverse():L()).join("");a=s.onUnMask.call(g,u,a,s)}return a}function ne(e){return!y||"number"!=typeof e||s.greedy&&""===s.placeholder||!m||(e=m.inputmask._valueGet().length-e),e}function re(e,t,n,r,u){var c;if(void 0===t)return"selectionStart"in e&&"selectionEnd"in e?(t=e.selectionStart,n=e.selectionEnd):o.getSelection?(c=o.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode!==e&&c.commonAncestorContainer!==e||(t=c.startOffset,n=c.endOffset):a.selection&&a.selection.createRange&&(n=(t=0-(c=a.selection.createRange()).duplicate().moveStart("character",-e.inputmask._valueGet().length))+c.text.length),{begin:r?t:ne(t),end:r?n:ne(n)};if(i.isArray(t)&&(n=y?t[0]:t[1],t=y?t[1]:t[0]),void 0!==t.begin&&(n=y?t.begin:t.end,t=y?t.end:t.begin),"number"==typeof t){t=r?t:ne(t),n="number"==typeof(n=r?n:ne(n))?n:t;var l=parseInt(((e.ownerDocument.defaultView||o).getComputedStyle?(e.ownerDocument.defaultView||o).getComputedStyle(e,null):e.currentStyle).fontSize)*n;if(e.scrollLeft=l>e.scrollWidth?l:0,e.inputmask.caretPos={begin:t,end:n},s.insertModeVisual&&!1===s.insertMode&&t===n&&(u||n++),e===(e.inputmask.shadowRoot||a).activeElement)if("setSelectionRange"in e)e.setSelectionRange(t,n);else if(o.getSelection){if(c=a.createRange(),void 0===e.firstChild||null===e.firstChild){var f=a.createTextNode("");e.appendChild(f)}c.setStart(e.firstChild,t<e.inputmask._valueGet().length?t:e.inputmask._valueGet().length),c.setEnd(e.firstChild,n<e.inputmask._valueGet().length?n:e.inputmask._valueGet().length),c.collapse(!0);var d=o.getSelection();d.removeAllRanges(),d.addRange(c)}else e.createTextRange&&((c=e.createTextRange()).collapse(!0),c.moveEnd("character",n),c.moveStart("character",t),c.select())}}function ie(e){var t,r,o=k(!0,j(),!0,!0),a=o.length,s=j(),u={},c=n.validPositions[s],l=void 0!==c?c.locator.slice():void 0;for(t=s+1;t<o.length;t++)l=(r=P(t,l,t-1)).locator.slice(),u[t]=i.extend(!0,{},r);var f=c&&void 0!==c.alternation?c.locator[c.alternation]:void 0;for(t=a-1;s<t&&((r=u[t]).match.optionality||r.match.optionalQuantifier&&r.match.newBlockMarker||f&&(f!==u[t].locator[c.alternation]&&1!=r.match.static||!0===r.match.static&&r.locator[c.alternation]&&B(r.locator[c.alternation].toString().split(","),f.toString().split(","))&&""!==R(t)[0].def))&&o[t]===K(t,r.match);t--)a--;return e?{l:a,def:u[a]?u[a].match:void 0}:a}function oe(e){e.length=0;for(var t,n=k(!0,0,!0,void 0,!0);void 0!==(t=n.shift());)e.push(t);return e}function ae(e){if(i.isFunction(s.isComplete))return s.isComplete(e,s);if("*"!==s.repeat){var t=!1,r=ie(!0),o=G(r.l);if(void 0===r.def||r.def.newBlockMarker||r.def.optionality||r.def.optionalQuantifier){t=!0;for(var a=0;a<=o;a++){var u=P(a).match;if(!0!==u.static&&void 0===n.validPositions[a]&&!0!==u.optionality&&!0!==u.optionalQuantifier||!0===u.static&&e[a]!==K(a,u)){t=!1;break}}}return t}}function se(e,t,r,i,o){if((s.numericInput||y)&&(t===d.BACKSPACE?t=d.DELETE:t===d.DELETE&&(t=d.BACKSPACE),y)){var a=r.end;r.end=r.begin,r.begin=a}var u,c=j(void 0,!0);if(r.end>=L().length&&c>=r.end&&(r.end=c+1),t===d.BACKSPACE?r.end-r.begin<1&&(r.begin=G(r.begin)):t===d.DELETE&&r.begin===r.end&&(r.end=W(r.end,!0,!0)?r.end+1:q(r.end)+1),!1!==(u=H(r))){if(!0!==i&&!1!==s.keepStatic||null!==s.regex&&-1!==M(r.begin).match.def.indexOf("|")){var l=U(!0);if(l){var f=void 0!==l.caret?l.caret:l.pos?q(l.pos.begin?l.pos.begin:l.pos):j(-1,!0);(t!==d.DELETE||r.begin>f)&&r.begin}}!0!==i&&(n.p=t===d.DELETE?r.begin+u:r.begin)}}function ue(e,t){e.inputmask.refreshValue=!1,i.isFunction(s.onBeforeMask)&&(t=s.onBeforeMask.call(g,t,s)||t),ee(e,!0,!1,t=t.toString().split("")),p=L().join(""),(s.clearMaskOnLostFocus||s.clearIncomplete)&&e.inputmask._valueGet()===D().join("")&&-1===j()&&e.inputmask._valueSet("")}if(void 0!==t)switch(t.action){case"isComplete":return m=t.el,ae(L());case"unmaskedvalue":return void 0!==m&&void 0===t.value||(Q=t.value,Q=(i.isFunction(s.onBeforeMask)&&s.onBeforeMask.call(g,Q,s)||Q).split(""),ee.call(this,void 0,!1,!1,Q),i.isFunction(s.onBeforeWrite)&&s.onBeforeWrite.call(g,void 0,L(),0,s)),te(m);case"mask":!function(e){Z.off(e);var t=function(e,t){"textarea"!==e.tagName.toLowerCase()&&t.ignorables.push(d.ENTER);var n=e.getAttribute("type"),o="input"===e.tagName.toLowerCase()&&-1!==i.inArray(n,t.supportsInputType)||e.isContentEditable||"textarea"===e.tagName.toLowerCase();if(!o)if("input"===e.tagName.toLowerCase()){var s=a.createElement("input");s.setAttribute("type",n),o="text"===s.type,s=null}else o="partial";return!1!==o?function(e){var n,o;function s(){return this.inputmask?this.inputmask.opts.autoUnmask?this.inputmask.unmaskedvalue():-1!==j()||!0!==t.nullable?(this.inputmask.shadowRoot||a.activeElement)===this&&t.clearMaskOnLostFocus?(y?oe(L().slice()).reverse():oe(L().slice())).join(""):n.call(this):"":n.call(this)}function u(e){o.call(this,e),this.inputmask&&ue(this,e)}if(!e.inputmask.__valueGet){if(!0!==t.noValuePatching){if(Object.getOwnPropertyDescriptor){"function"!=typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===r("test".__proto__)?function(e){return e.__proto__}:function(e){return e.constructor.prototype});var c=Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value"):void 0;c&&c.get&&c.set?(n=c.get,o=c.set,Object.defineProperty(e,"value",{get:s,set:u,configurable:!0})):"input"!==e.tagName.toLowerCase()&&(n=function(){return this.textContent},o=function(e){this.textContent=e},Object.defineProperty(e,"value",{get:s,set:u,configurable:!0}))}else a.__lookupGetter__&&e.__lookupGetter__("value")&&(n=e.__lookupGetter__("value"),o=e.__lookupSetter__("value"),e.__defineGetter__("value",s),e.__defineSetter__("value",u));e.inputmask.__valueGet=n,e.inputmask.__valueSet=o}e.inputmask._valueGet=function(e){return y&&!0!==e?n.call(this.el).split("").reverse().join(""):n.call(this.el)},e.inputmask._valueSet=function(e,t){o.call(this.el,null==e?"":!0!==t&&y?e.split("").reverse().join(""):e)},void 0===n&&(n=function(){return this.value},o=function(e){this.value=e},function(e){if(i.valHooks&&(void 0===i.valHooks[e]||!0!==i.valHooks[e].inputmaskpatch)){var n=i.valHooks[e]&&i.valHooks[e].get?i.valHooks[e].get:function(e){return e.value},r=i.valHooks[e]&&i.valHooks[e].set?i.valHooks[e].set:function(e,t){return e.value=t,e};i.valHooks[e]={get:function(e){if(e.inputmask){if(e.inputmask.opts.autoUnmask)return e.inputmask.unmaskedvalue();var r=n(e);return-1!==j(void 0,void 0,e.inputmask.maskset.validPositions)||!0!==t.nullable?r:""}return n(e)},set:function(e,t){var n=r(e,t);return e.inputmask&&ue(e,t),n},inputmaskpatch:!0}}}(e.type),function(e){Z.on(e,"mouseenter",(function(){var e=this.inputmask._valueGet(!0);e!==(y?L().reverse():L()).join("")&&ue(this,e)}))}(e))}}(e):e.inputmask=void 0,o}(e,s);if(!1!==t){h=i(m=e),O=m.placeholder,-1===(v=void 0!==m?m.maxLength:void 0)&&(v=void 0),"inputMode"in m&&null===m.getAttribute("inputmode")&&(m.inputMode=s.inputmode,m.setAttribute("inputmode",s.inputmode)),!0===t&&(s.showMaskOnFocus=s.showMaskOnFocus&&-1===["cc-number","cc-exp"].indexOf(m.autocomplete),f&&(s.insertModeVisual=!1),Z.on(m,"submit",J.submitEvent),Z.on(m,"reset",J.resetEvent),Z.on(m,"blur",J.blurEvent),Z.on(m,"focus",J.focusEvent),Z.on(m,"invalid",J.invalidEvent),Z.on(m,"click",J.clickEvent),Z.on(m,"mouseleave",J.mouseleaveEvent),Z.on(m,"mouseenter",J.mouseenterEvent),Z.on(m,"paste",J.pasteEvent),Z.on(m,"cut",J.cutEvent),Z.on(m,"complete",s.oncomplete),Z.on(m,"incomplete",s.onincomplete),Z.on(m,"cleared",s.oncleared),c||!0===s.inputEventOnly?m.removeAttribute("maxLength"):(Z.on(m,"keydown",J.keydownEvent),Z.on(m,"keypress",J.keypressEvent)),Z.on(m,"input",J.inputFallBackEvent),Z.on(m,"compositionend",J.compositionendEvent)),Z.on(m,"setvalue",J.setValueEvent),p=D().join("");var n=(m.inputmask.shadowRoot||a).activeElement;if(""!==m.inputmask._valueGet(!0)||!1===s.clearMaskOnLostFocus||n===m){ue(m,m.inputmask._valueGet(!0));var o=L().slice();!1===ae(o)&&s.clearIncomplete&&E(),s.clearMaskOnLostFocus&&n!==m&&(-1===j()?o=[]:oe(o)),(!1===s.clearMaskOnLostFocus||s.showMaskOnFocus&&n===m||""!==m.inputmask._valueGet(!0))&&Y(m,o),n===m&&re(m,q(j()))}}}(m);break;case"format":return Q=(i.isFunction(s.onBeforeMask)&&s.onBeforeMask.call(g,t.value,s)||t.value).split(""),ee.call(this,void 0,!0,!1,Q),t.metadata?{value:y?L().slice().reverse().join(""):L().join(""),metadata:e.call(this,{action:"getmetadata"},n,s)}:y?L().slice().reverse().join(""):L().join("");case"isValid":t.value?(Q=(i.isFunction(s.onBeforeMask)&&s.onBeforeMask.call(g,t.value,s)||t.value).split(""),ee.call(this,void 0,!0,!1,Q)):t.value=y?L().slice().reverse().join(""):L().join("");for(var ce=L(),le=ie(),fe=ce.length-1;le<fe&&!W(fe);fe--);return ce.splice(le,fe+1-le),ae(ce)&&t.value===(y?L().slice().reverse().join(""):L().join(""));case"getemptymask":return D().join("");case"remove":if(m&&m.inputmask){i.data(m,"_inputmask_opts",null),h=i(m);var de=s.autoUnmask?te(m):m.inputmask._valueGet(s.autoUnmask);de!==D().join("")?m.inputmask._valueSet(de,s.autoUnmask):m.inputmask._valueSet(""),Z.off(m),Object.getOwnPropertyDescriptor&&Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(m),"value")&&m.inputmask.__valueGet&&Object.defineProperty(m,"value",{get:m.inputmask.__valueGet,set:m.inputmask.__valueSet,configurable:!0}):a.__lookupGetter__&&m.__lookupGetter__("value")&&m.inputmask.__valueGet&&(m.__defineGetter__("value",m.inputmask.__valueGet),m.__defineSetter__("value",m.inputmask.__valueSet)),m.inputmask=void 0}return m;case"getmetadata":if(i.isArray(n.metadata)){var pe=k(!0,0,!1).join("");return i.each(n.metadata,(function(e,t){if(t.mask===pe)return pe=t,!1})),pe}return n.metadata}}},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==_typeof2(Symbol.iterator)?function(e){return _typeof2(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof2(e)})(e)}var i=n(1),o=i.dependencyLib,a=n(0),s={d:["[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",Date.prototype.getDate],dd:["0[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",function(){return d(Date.prototype.getDate.call(this),2)}],ddd:[""],dddd:[""],m:["[1-9]|1[012]",Date.prototype.setMonth,"month",function(){return Date.prototype.getMonth.call(this)+1}],mm:["0[1-9]|1[012]",Date.prototype.setMonth,"month",function(){return d(Date.prototype.getMonth.call(this)+1,2)}],mmm:[""],mmmm:[""],yy:["[0-9]{2}",Date.prototype.setFullYear,"year",function(){return d(Date.prototype.getFullYear.call(this),2)}],yyyy:["[0-9]{4}",Date.prototype.setFullYear,"year",function(){return d(Date.prototype.getFullYear.call(this),4)}],h:["[1-9]|1[0-2]",Date.prototype.setHours,"hours",Date.prototype.getHours],hh:["0[1-9]|1[0-2]",Date.prototype.setHours,"hours",function(){return d(Date.prototype.getHours.call(this),2)}],hx:[function(e){return"[0-9]{".concat(e,"}")},Date.prototype.setHours,"hours",function(e){return Date.prototype.getHours}],H:["1?[0-9]|2[0-3]",Date.prototype.setHours,"hours",Date.prototype.getHours],HH:["0[0-9]|1[0-9]|2[0-3]",Date.prototype.setHours,"hours",function(){return d(Date.prototype.getHours.call(this),2)}],Hx:[function(e){return"[0-9]{".concat(e,"}")},Date.prototype.setHours,"hours",function(e){return function(){return d(Date.prototype.getHours.call(this),e)}}],M:["[1-5]?[0-9]",Date.prototype.setMinutes,"minutes",Date.prototype.getMinutes],MM:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setMinutes,"minutes",function(){return d(Date.prototype.getMinutes.call(this),2)}],s:["[1-5]?[0-9]",Date.prototype.setSeconds,"seconds",Date.prototype.getSeconds],ss:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setSeconds,"seconds",function(){return d(Date.prototype.getSeconds.call(this),2)}],l:["[0-9]{3}",Date.prototype.setMilliseconds,"milliseconds",function(){return d(Date.prototype.getMilliseconds.call(this),3)}],L:["[0-9]{2}",Date.prototype.setMilliseconds,"milliseconds",function(){return d(Date.prototype.getMilliseconds.call(this),2)}],t:["[ap]"],tt:["[ap]m"],T:["[AP]"],TT:["[AP]M"],Z:[""],o:[""],S:[""]},u={isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};function c(e){var t=new RegExp("\\d+$").exec(e[0]);if(t&&void 0!==t[0]){var n=s[e[0][0]+"x"].slice("");return n[0]=n[0](t[0]),n[3]=n[3](t[0]),n}if(s[e[0]])return s[e[0]]}function l(e){if(!e.tokenizer){var t=[],n=[];for(var r in s)if(/\.*x$/.test(r)){var i=r[0]+"\\d+";-1===n.indexOf(i)&&n.push(i)}else-1===t.indexOf(r[0])&&t.push(r[0]);e.tokenizer="("+(0<n.length?n.join("|")+"|":"")+t.join("+|")+")+?|.",e.tokenizer=new RegExp(e.tokenizer,"g")}return e.tokenizer}function f(e,t,n,r){var o,a,s="";for(l(n).lastIndex=0;o=l(n).exec(e);)if(void 0===t)if(a=c(o))s+="("+a[0]+")";else switch(o[0]){case"[":s+="(";break;case"]":s+=")?";break;default:s+=i.escapeRegex(o[0])}else(a=c(o))?!0!==r&&a[3]?s+=a[3].call(t.date):a[2]?s+=t["raw"+a[2]]:s+=o[0]:s+=o[0];return s}function d(e,t){for(e=String(e),t=t||2;e.length<t;)e="0"+e;return e}function p(e,t,n){var i,o,a,u={date:new Date(1,0,1)},c=e;function f(e,t,n){e[i]=function(e){return e.replace(/[^0-9]/g,"0")}(t),e["raw"+i]=t,void 0!==a&&a.call(e.date,"month"==i?parseInt(e[i])-1:e[i])}if("string"==typeof c){for(l(n).lastIndex=0;o=l(n).exec(t);){var d=c.slice(0,o[0].length);s.hasOwnProperty(o[0])&&(i=s[o[0]][2],a=s[o[0]][1],f(u,d)),c=c.slice(d.length)}return u}if(c&&"object"===r(c)&&c.hasOwnProperty("date"))return c}function h(e,t){var n,r="";for(l(t).lastIndex=0;n=l(t).exec(t.inputFormat);)"d"===n[0].charAt(0)?r+=d(e.getDate(),n[0].length):"m"===n[0].charAt(0)?r+=d(e.getMonth()+1,n[0].length):"yyyy"===n[0]?r+=e.getFullYear().toString():"y"===n[0].charAt(0)&&(r+=d(e.getYear(),n[0].length));return r}function v(e,t){var n,r,i=0,o=0;for(l(t).lastIndex=0;r=l(t).exec(t.inputFormat);){var a=new RegExp("\\d+$").exec(r[0]);if(e<=(i+=o=a?parseInt(a[0]):r[0].length)){n=r,r=l(t).exec(t.inputFormat);break}}return{targetMatchIndex:i-o,nextMatch:r,targetMatch:n}}i.extendAliases({datetime:{mask:function(e){return e.numericInput=!1,s.S=e.i18n.ordinalSuffix.join("|"),e.inputFormat=u[e.inputFormat]||e.inputFormat,e.displayFormat=u[e.displayFormat]||e.displayFormat||e.inputFormat,e.outputFormat=u[e.outputFormat]||e.outputFormat||e.inputFormat,e.placeholder=""!==e.placeholder?e.placeholder:e.inputFormat.replace(/[[\]]/,""),e.regex=f(e.inputFormat,void 0,e),e.min=p(e.min,e.inputFormat,e),e.max=p(e.max,e.inputFormat,e),null},placeholder:"",inputFormat:"isoDateTime",displayFormat:void 0,outputFormat:void 0,min:null,max:null,skipOptionalPartCharacter:"",i18n:{dayNames:["Mon","Tue","Wed","Thu","Fri","Sat","Sun","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],ordinalSuffix:["st","nd","rd","th"]},preValidation:function(e,t,n,r,i,o,a,u){if(u)return!0;if(isNaN(n)&&e[t]!==n){var c=v(t,i);if(c.nextMatch&&c.nextMatch[0]===n&&1<c.targetMatch[0].length){var l=s[c.targetMatch[0]][0];if(new RegExp(l).test("0"+e[t-1]))return e[t]=e[t-1],e[t-1]="0",{fuzzy:!0,buffer:e,refreshFromBuffer:{start:t-1,end:t+1},pos:t+1}}}return!0},postValidation:function(e,t,n,r,i,o,a){if(a)return!0;var u,c;if(!1===r)return(u=v(t+1,i)).targetMatch&&u.targetMatchIndex===t&&1<u.targetMatch[0].length&&void 0!==s[u.targetMatch[0]]&&(c=s[u.targetMatch[0]][0],new RegExp(c).test("0"+n))?{insert:[{pos:t,c:"0"},{pos:t+1,c:n}],pos:t+1}:r;if(r.fuzzy&&(e=r.buffer,t=r.pos),(u=v(t,i)).targetMatch&&u.targetMatch[0]&&void 0!==s[u.targetMatch[0]]){c=s[u.targetMatch[0]][0];var l=e.slice(u.targetMatchIndex,u.targetMatchIndex+u.targetMatch[0].length);!1===new RegExp(c).test(l.join(""))&&2===u.targetMatch[0].length&&o.validPositions[u.targetMatchIndex]&&o.validPositions[u.targetMatchIndex+1]&&(o.validPositions[u.targetMatchIndex+1].input="0")}var d=r,h=p(e.join(""),i.inputFormat,i);return d&&h.date.getTime()==h.date.getTime()&&(d=(d=function(e,t){return(!isFinite(e.rawday)||"29"==e.day&&!isFinite(e.rawyear)||new Date(e.date.getFullYear(),isFinite(e.rawmonth)?e.month:e.date.getMonth()+1,0).getDate()>=e.day)&&t}(h,d))&&function(e,t){var n=!0;if(t.min){if(e.rawyear){var r=e.rawyear.replace(/[^0-9]/g,"");n=t.min.year.substr(0,r.length)<=r}e.year===e.rawyear&&t.min.date.getTime()==t.min.date.getTime()&&(n=t.min.date.getTime()<=e.date.getTime())}return n&&t.max&&t.max.date.getTime()==t.max.date.getTime()&&(n=t.max.date.getTime()>=e.date.getTime()),n}(h,i)),t&&d&&r.pos!==t?{buffer:f(i.inputFormat,h,i).split(""),refreshFromBuffer:{start:t,end:r.pos}}:d},onKeyDown:function(e,t,n,r){e.ctrlKey&&e.keyCode===a.RIGHT&&(this.inputmask._valueSet(h(new Date,r)),o(this).trigger("setvalue"))},onUnMask:function(e,t,n){return t?f(n.outputFormat,p(e,n.inputFormat,n),n,!0):t},casing:function(e,t,n,r){return 0==t.nativeDef.indexOf("[ap]")?e.toLowerCase():0==t.nativeDef.indexOf("[AP]")?e.toUpperCase():e},onBeforeMask:function(e,t){return"[object Date]"===Object.prototype.toString.call(e)&&(e=h(e,t)),e},insertMode:!1,shiftPositions:!1,keepStatic:!1,inputmode:"numeric"}}),e.exports=i},function(e,t,n){"use strict";var r=n(1),i=r.dependencyLib,o=n(0);function a(e,t){for(var n="",i=0;i<e.length;i++)r.prototype.definitions[e.charAt(i)]||t.definitions[e.charAt(i)]||t.optionalmarker[0]===e.charAt(i)||t.optionalmarker[1]===e.charAt(i)||t.quantifiermarker[0]===e.charAt(i)||t.quantifiermarker[1]===e.charAt(i)||t.groupmarker[0]===e.charAt(i)||t.groupmarker[1]===e.charAt(i)||t.alternatormarker===e.charAt(i)?n+="\\"+e.charAt(i):n+=e.charAt(i);return n}function s(e,t,n,r){if(0<e.length&&0<t&&(!n.digitsOptional||r)){var o=i.inArray(n.radixPoint,e);-1===o&&(e.push(n.radixPoint),o=e.length-1);for(var a=1;a<=t;a++)isFinite(e[o+a])||(e[o+a]="0")}return e}function u(e,t){var n=0;if("+"===e){for(n in t.validPositions);n=parseInt(n)}for(var r in t.tests)if(n<=(r=parseInt(r)))for(var i=0,o=t.tests[r].length;i<o;i++)if((void 0===t.validPositions[r]||"-"===e)&&t.tests[r][i].match.def===e)return r+(void 0!==t.validPositions[r]&&"-"!==e?1:0);return n}function c(e,t){var n=-1;return i.each(t.validPositions,(function(t,r){if(r&&r.match.def===e)return n=parseInt(t),!1})),n}function l(e,t,n,r,i){var o=t.buffer?t.buffer.indexOf(i.radixPoint):-1,a=-1!==o&&new RegExp("[0-91-9]").test(e);return i._radixDance&&a&&null==t.validPositions[o]?{insert:{pos:o===n?o+1:o,c:i.radixPoint},pos:n}:a}r.extendAliases({numeric:{mask:function(e){e.repeat=0,e.groupSeparator===e.radixPoint&&e.digits&&"0"!==e.digits&&("."===e.radixPoint?e.groupSeparator=",":","===e.radixPoint?e.groupSeparator=".":e.groupSeparator="")," "===e.groupSeparator&&(e.skipOptionalPartCharacter=void 0),1<e.placeholder.length&&(e.placeholder=e.placeholder.charAt(0)),"radixFocus"===e.positionCaretOnClick&&""===e.placeholder&&(e.positionCaretOnClick="lvp");var t="0",n=e.radixPoint;!0===e.numericInput&&void 0===e.__financeInput?(t="1",e.positionCaretOnClick="radixFocus"===e.positionCaretOnClick?"lvp":e.positionCaretOnClick,e.digitsOptional=!1,isNaN(e.digits)&&(e.digits=2),e._radixDance=!1,n=","===e.radixPoint?"?":"!",""!==e.radixPoint&&void 0===e.definitions[n]&&(e.definitions[n]={},e.definitions[n].validator="["+e.radixPoint+"]",e.definitions[n].placeholder=e.radixPoint,e.definitions[n].static=!0,e.definitions[n].generated=!0)):(e.__financeInput=!1,e.numericInput=!0);var i,o="[+]";if(o+=a(e.prefix,e),""!==e.groupSeparator?(void 0===e.definitions[e.groupSeparator]&&(e.definitions[e.groupSeparator]={},e.definitions[e.groupSeparator].validator="["+e.groupSeparator+"]",e.definitions[e.groupSeparator].placeholder=e.groupSeparator,e.definitions[e.groupSeparator].static=!0,e.definitions[e.groupSeparator].generated=!0),o+=e._mask(e)):o+="9{+}",void 0!==e.digits&&0!==e.digits){var s=e.digits.toString().split(",");isFinite(s[0])&&s[1]&&isFinite(s[1])?o+=n+t+"{"+e.digits+"}":(isNaN(e.digits)||0<parseInt(e.digits))&&(e.digitsOptional?(i=o+n+t+"{0,"+e.digits+"}",e.keepStatic=!0):o+=n+t+"{"+e.digits+"}")}return o+=a(e.suffix,e),o+="[-]",i&&(o=[i+a(e.suffix,e)+"[-]",o]),e.greedy=!1,function(e){void 0===e.parseMinMaxOptions&&(null!==e.min&&(e.min=e.min.toString().replace(new RegExp(r.escapeRegex(e.groupSeparator),"g"),""),","===e.radixPoint&&(e.min=e.min.replace(e.radixPoint,".")),e.min=isFinite(e.min)?parseFloat(e.min):NaN,isNaN(e.min)&&(e.min=Number.MIN_VALUE)),null!==e.max&&(e.max=e.max.toString().replace(new RegExp(r.escapeRegex(e.groupSeparator),"g"),""),","===e.radixPoint&&(e.max=e.max.replace(e.radixPoint,".")),e.max=isFinite(e.max)?parseFloat(e.max):NaN,isNaN(e.max)&&(e.max=Number.MAX_VALUE)),e.parseMinMaxOptions="done")}(e),o},_mask:function(e){return"("+e.groupSeparator+"999){+|1}"},digits:"*",digitsOptional:!0,enforceDigitsOnBlur:!1,radixPoint:".",positionCaretOnClick:"radixFocus",_radixDance:!0,groupSeparator:"",allowMinus:!0,negationSymbol:{front:"-",back:""},prefix:"",suffix:"",min:null,max:null,step:1,unmaskAsNumber:!1,roundingFN:Math.round,inputmode:"numeric",shortcuts:{k:"000",m:"000000"},placeholder:"0",greedy:!1,rightAlign:!0,insertMode:!0,autoUnmask:!1,skipOptionalPartCharacter:"",definitions:{0:{validator:l},1:{validator:l,definitionSymbol:"9"},"+":{validator:function(e,t,n,r,i){return i.allowMinus&&("-"===e||e===i.negationSymbol.front)}},"-":{validator:function(e,t,n,r,i){return i.allowMinus&&e===i.negationSymbol.back}}},preValidation:function(e,t,n,r,o,a,s,l){if(!1!==o.__financeInput&&n===o.radixPoint)return!1;var f;if(f=o.shortcuts&&o.shortcuts[n]){if(1<f.length)for(var d=[],p=0;p<f.length;p++)d.push({pos:t+p,c:f[p],strict:!1});return{insert:d}}var h=i.inArray(o.radixPoint,e),v=t;if(t=function(e,t,n,r,i){return i._radixDance&&i.numericInput&&t!==i.negationSymbol.back&&e<=n&&(0<n||t==i.radixPoint)&&(void 0===r.validPositions[e-1]||r.validPositions[e-1].input!==i.negationSymbol.back)&&(e-=1),e}(t,n,h,a,o),"-"===n||n===o.negationSymbol.front){if(!0!==o.allowMinus)return!1;var g=!1,m=c("+",a),y=c("-",a);return-1!==m&&(g=[m,y]),!1!==g?{remove:g,caret:v}:{insert:[{pos:u("+",a),c:o.negationSymbol.front,fromIsValid:!0},{pos:u("-",a),c:o.negationSymbol.back,fromIsValid:void 0}],caret:v+o.negationSymbol.back.length}}if(l)return!0;if(-1!==h&&!0===o._radixDance&&!1===r&&n===o.radixPoint&&void 0!==o.digits&&(isNaN(o.digits)||0<parseInt(o.digits))&&h!==t)return{caret:o._radixDance&&t===h-1?h+1:h};if(!1===o.__financeInput)if(r){if(o.digitsOptional)return{rewritePosition:s.end};if(!o.digitsOptional){if(s.begin>h&&s.end<=h)return n===o.radixPoint?{insert:{pos:h+1,c:"0",fromIsValid:!0},rewritePosition:h}:{rewritePosition:h+1};if(s.begin<h)return{rewritePosition:s.begin-1}}}else if(!o.showMaskOnHover&&!o.showMaskOnFocus&&!o.digitsOptional&&0<o.digits&&""===this.inputmask.__valueGet.call(this))return{rewritePosition:h};return{rewritePosition:t}},postValidation:function(e,t,n,r,o,a,s){if(!1===r)return r;if(s)return!0;if(null!==o.min||null!==o.max){var u=o.onUnMask(e.slice().reverse().join(""),void 0,i.extend({},o,{unmaskAsNumber:!0}));if(null!==o.min&&u<o.min&&(u.toString().length>=o.min.toString().length||u<0))return!1;if(null!==o.max&&u>o.max)return!1}return r},onUnMask:function(e,t,n){if(""===t&&!0===n.nullable)return t;var i=e.replace(n.prefix,"");return i=(i=i.replace(n.suffix,"")).replace(new RegExp(r.escapeRegex(n.groupSeparator),"g"),""),""!==n.placeholder.charAt(0)&&(i=i.replace(new RegExp(n.placeholder.charAt(0),"g"),"0")),n.unmaskAsNumber?(""!==n.radixPoint&&-1!==i.indexOf(n.radixPoint)&&(i=i.replace(r.escapeRegex.call(this,n.radixPoint),".")),i=(i=i.replace(new RegExp("^"+r.escapeRegex(n.negationSymbol.front)),"-")).replace(new RegExp(r.escapeRegex(n.negationSymbol.back)+"$"),""),Number(i)):i},isComplete:function(e,t){var n=(t.numericInput?e.slice().reverse():e).join("");return n=(n=(n=(n=(n=n.replace(new RegExp("^"+r.escapeRegex(t.negationSymbol.front)),"-")).replace(new RegExp(r.escapeRegex(t.negationSymbol.back)+"$"),"")).replace(t.prefix,"")).replace(t.suffix,"")).replace(new RegExp(r.escapeRegex(t.groupSeparator)+"([0-9]{3})","g"),"$1"),","===t.radixPoint&&(n=n.replace(r.escapeRegex(t.radixPoint),".")),isFinite(n)},onBeforeMask:function(e,t){var n=t.radixPoint||",";isFinite(t.digits)&&(t.digits=parseInt(t.digits)),"number"!=typeof e&&"number"!==t.inputType||""===n||(e=e.toString().replace(".",n));var i=e.split(n),o=i[0].replace(/[^\-0-9]/g,""),a=1<i.length?i[1].replace(/[^0-9]/g,""):"",u=1<i.length;e=o+(""!==a?n+a:a);var c=0;if(""!==n&&(c=t.digitsOptional?t.digits<a.length?t.digits:a.length:t.digits,""!==a||!t.digitsOptional)){var l=Math.pow(10,c||1);e=e.replace(r.escapeRegex(n),"."),isNaN(parseFloat(e))||(e=(t.roundingFN(parseFloat(e)*l)/l).toFixed(c)),e=e.toString().replace(".",n)}if(0===t.digits&&-1!==e.indexOf(n)&&(e=e.substring(0,e.indexOf(n))),null!==t.min||null!==t.max){var f=e.toString().replace(n,".");null!==t.min&&f<t.min?e=t.min.toString().replace(".",n):null!==t.max&&f>t.max&&(e=t.max.toString().replace(".",n))}return s(e.toString().split(""),c,t,u).join("")},onBeforeWrite:function(e,t,n,o){function a(e,t){if(!1!==o.__financeInput||t){var n=i.inArray(o.radixPoint,e);-1!==n&&e.splice(n,1)}if(""!==o.groupSeparator)for(;-1!==(n=e.indexOf(o.groupSeparator));)e.splice(n,1);return e}var u,c=function(e,t){var n=new RegExp("(^"+(""!==t.negationSymbol.front?r.escapeRegex(t.negationSymbol.front)+"?":"")+r.escapeRegex(t.prefix)+")(.*)("+r.escapeRegex(t.suffix)+(""!=t.negationSymbol.back?r.escapeRegex(t.negationSymbol.back)+"?":"")+"$)").exec(e.slice().reverse().join("")),i=n?n[2]:"",o=!1;return i&&(i=i.split(t.radixPoint.charAt(0))[0],o=new RegExp("^[0"+t.groupSeparator+"]*").exec(i)),!(!o||!(1<o[0].length||0<o[0].length&&o[0].length<i.length))&&o}(t,o);if(c){var l=t.slice().reverse(),f=l.join("").indexOf(c[0]);l.splice(f,c[0].length);var d=l.length-f;a(l),u={refreshFromBuffer:!0,buffer:l.reverse(),caret:n<d?n:d}}if(e)switch(e.type){case"blur":case"checkval":if(null!==o.min){var p=o.onUnMask(t.slice().reverse().join(""),void 0,i.extend({},o,{unmaskAsNumber:!0}));if(null!==o.min&&p<o.min)return{refreshFromBuffer:!0,buffer:s(o.min.toString().replace(".",o.radixPoint).split(""),o.digits,o).reverse()}}if(t[t.length-1]===o.negationSymbol.front){var h=new RegExp("(^"+(""!=o.negationSymbol.front?r.escapeRegex(o.negationSymbol.front)+"?":"")+r.escapeRegex(o.prefix)+")(.*)("+r.escapeRegex(o.suffix)+(""!=o.negationSymbol.back?r.escapeRegex(o.negationSymbol.back)+"?":"")+"$)").exec(a(t.slice(),!0).reverse().join(""));0==(h?h[2]:"")&&(u={refreshFromBuffer:!0,buffer:[0]})}else""!==o.radixPoint&&t[0]===o.radixPoint&&(u&&u.buffer?u.buffer.shift():(t.shift(),u={refreshFromBuffer:!0,buffer:a(t)}));if(o.enforceDigitsOnBlur){var v=(u=u||{})&&u.buffer||t.slice().reverse();u.refreshFromBuffer=!0,u.buffer=s(v,o.digits,o,!0).reverse()}}return u},onKeyDown:function(e,t,n,r){var a,u=i(this);if(e.ctrlKey)switch(e.keyCode){case o.UP:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())+parseInt(r.step)),u.trigger("setvalue"),!1;case o.DOWN:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())-parseInt(r.step)),u.trigger("setvalue"),!1}if(!e.shiftKey&&(e.keyCode===o.DELETE||e.keyCode===o.BACKSPACE||e.keyCode===o.BACKSPACE_SAFARI)&&n.begin!==t.length){if(t[e.keyCode===o.DELETE?n.begin-1:n.end]===r.negationSymbol.front)return a=t.slice().reverse(),""!==r.negationSymbol.front&&a.shift(),""!==r.negationSymbol.back&&a.pop(),u.trigger("setvalue",[a.join(""),n.begin]),!1;if(!0===r._radixDance){var c=i.inArray(r.radixPoint,t);if(r.digitsOptional){if(0===c)return(a=t.slice().reverse()).pop(),u.trigger("setvalue",[a.join(""),n.begin>=a.length?a.length:n.begin]),!1}else if(-1!==c&&(n.begin<c||n.end<c||e.keyCode===o.DELETE&&n.begin===c))return n.begin!==n.end||e.keyCode!==o.BACKSPACE&&e.keyCode!==o.BACKSPACE_SAFARI||n.begin++,(a=t.slice().reverse()).splice(a.length-n.begin,n.begin-n.end+1),a=s(a,r.digits,r).join(""),u.trigger("setvalue",[a,n.begin>=a.length?c+1:n.begin]),!1}}}},currency:{prefix:"",groupSeparator:",",alias:"numeric",digits:2,digitsOptional:!1},decimal:{alias:"numeric"},integer:{alias:"numeric",digits:0},percentage:{alias:"numeric",min:0,max:100,suffix:" %",digits:0,allowMinus:!1},indianns:{alias:"numeric",_mask:function(e){return"("+e.groupSeparator+"99){*|1}("+e.groupSeparator+"999){1|1}"},groupSeparator:",",radixPoint:".",placeholder:"0",digits:2,digitsOptional:!1}}),e.exports=r},function(e,t,n){"use strict";var r,i=(r=n(1))&&r.__esModule?r:{default:r};function o(e){return(o="function"==typeof Symbol&&"symbol"==_typeof2(Symbol.iterator)?function(e){return _typeof2(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":_typeof2(e)})(e)}function a(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){var t="function"==typeof Map?new Map:void 0;return(s=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return u(e,arguments,l(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),c(r,e)})(e)}function u(e,t,n){return(u=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&&c(i,n.prototype),i}).apply(null,arguments)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}if(document.head.createShadowRoot||document.head.attachShadow){var f=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);var n=(e=a(this,l(t).call(this))).getAttributeNames(),r=e.attachShadow({mode:"closed"}),o=document.createElement("input");for(var s in o.type="text",r.appendChild(o),n)Object.prototype.hasOwnProperty.call(n,s)&&o.setAttribute("data-inputmask-"+n[s],e.getAttribute(n[s]));return(new i.default).mask(o),o.inputmask.shadowRoot=r,e}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,e),t}(s(HTMLElement));customElements.define("input-mask",f)}}],installedModules={},__webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.d=function(e,t,n){__webpack_require__.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},__webpack_require__.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.t=function(e,t){if(1&t&&(e=__webpack_require__(e)),8&t)return e;if(4&t&&"object"==_typeof2(e)&&e&&e.__esModule)return e;var n=Object.create(null);if(__webpack_require__.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)__webpack_require__.d(n,r,function(t){return e[t]}.bind(null,r));return n},__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,"a",t),t},__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=5);function __webpack_require__(e){if(installedModules[e])return installedModules[e].exports;var t=installedModules[e]={i:e,l:!1,exports:{}};return modules[e].call(t.exports,t,t.exports,__webpack_require__),t.l=!0,t.exports}var modules,installedModules},"object"==_typeof2(exports)&&"object"==_typeof2(module)?module.exports=factory():(__WEBPACK_AMD_DEFINE_ARRAY__=[],void 0===(__WEBPACK_AMD_DEFINE_RESULT__="function"==typeof(__WEBPACK_AMD_DEFINE_FACTORY__=factory)?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__)||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}).call(this,__webpack_require__(231)(module))},function(e,t,n){"use strict";var r=n(130),i=n(698),o=n(1239),a=n(706);var s=function e(t){var n=new o(t),s=i(o.prototype.request,n);return r.extend(s,o.prototype,n),r.extend(s,n),s.create=function(n){return e(a(t,n))},s}(n(580));s.Axios=o,s.CanceledError=n(436),s.CancelToken=n(1253),s.isCancel=n(705),s.VERSION=n(707).version,s.toFormData=n(702),s.AxiosError=n(330),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=n(1254),s.isAxiosError=n(1255),e.exports=s,e.exports.default=s},function(e,t,n){"use strict";var r=n(130),i=n(699),o=n(1240),a=n(1241),s=n(706),u=n(704),c=n(1252),l=c.validators;function f(e){this.defaults=e,this.interceptors={request:new o,response:new o}}f.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&c.assertOptions(n,{silentJSONParsing:l.transitional(l.boolean),forcedJSONParsing:l.transitional(l.boolean),clarifyTimeoutError:l.transitional(l.boolean)},!1);var r=[],i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var o,u=[];if(this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)})),!i){var f=[a,void 0];for(Array.prototype.unshift.apply(f,r),f=f.concat(u),o=Promise.resolve(t);f.length;)o=o.then(f.shift(),f.shift());return o}for(var d=t;r.length;){var p=r.shift(),h=r.shift();try{d=p(d)}catch(e){h(e);break}}try{o=a(d)}catch(e){return Promise.reject(e)}for(;u.length;)o=o.then(u.shift(),u.shift());return o},f.prototype.getUri=function(e){e=s(this.defaults,e);var t=u(e.baseURL,e.url);return i(t,e.params,e.paramsSerializer)},r.forEach(["delete","get","head","options"],(function(e){f.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(s(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}f.prototype[e]=t(),f.prototype[e+"Form"]=t(!0)})),e.exports=f},function(e,t,n){"use strict";var r=n(130);function i(){this.handlers=[]}i.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),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(130),i=n(1242),o=n(705),a=n(580),s=n(436);function u(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){return u(e),e.headers=e.headers||{},e.data=i.call(e,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 u(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(u(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(130),i=n(580);e.exports=function(e,t,n){var o=this||i;return r.forEach(n,(function(n){e=n.call(o,e,t)})),e}},function(e,t,n){"use strict";var r=n(130);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(330);e.exports=function(e,t,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new r("Request failed with status code "+n.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},function(e,t,n){"use strict";var r=n(130);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";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(130),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(130);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";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},function(e,t){e.exports=null},function(e,t,n){"use strict";function r(e){return(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})(e)}var i=n(707).version,o=n(330),a={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){a[e]=function(n){return r(n)===e||"a"+(t<1?"n ":" ")+e}}));var s={};a.transitional=function(e,t,n){function r(e,t){return"[Axios v"+i+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,i,a){if(!1===e)throw new o(r(i," has been removed"+(t?" in "+t:"")),o.ERR_DEPRECATED);return t&&!s[i]&&(s[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,a)}},e.exports={assertOptions:function(e,t,n){if("object"!==r(e))throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);for(var i=Object.keys(e),a=i.length;a-- >0;){var s=i[a],u=t[s];if(u){var c=e[s],l=void 0===c||u(c,s,e);if(!0!==l)throw new o("option "+s+" must be "+l,o.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new o("Unknown option "+s,o.ERR_BAD_OPTION)}},validators:a}},function(e,t,n){"use strict";var r=n(436);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;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t<r;t++)n._listeners[t](e);n._listeners=null}})),this.promise.then=function(e){var t,r=new Promise((function(e){n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},i.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},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){"use strict";var r=n(130);e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},function(e,t,n){var r=n(709),i=e.exports;!function(){"use strict";var e,t,n,o=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,a={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function s(e){return o.lastIndex=0,o.test(e)?'"'+e.replace(o,(function(e){var t=a[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}"function"!=typeof i.stringify&&(i.stringify=function(i,o,a){var u;if(e="",t="","number"==typeof a)for(u=0;u<a;u+=1)t+=" ";else"string"==typeof a&&(t=a);if(n=o,o&&"function"!=typeof o&&("object"!=typeof o||"number"!=typeof o.length))throw new Error("JSON.stringify");return function i(o,a){var u,c,l,f,d,p=e,h=a[o],v=null!=h&&(h instanceof r||r.isBigNumber(h));switch(h&&"object"==typeof h&&"function"==typeof h.toJSON&&(h=h.toJSON(o)),"function"==typeof n&&(h=n.call(a,o,h)),typeof h){case"string":return v?h:s(h);case"number":return isFinite(h)?String(h):"null";case"boolean":case"null":case"bigint":return String(h);case"object":if(!h)return"null";if(e+=t,d=[],"[object Array]"===Object.prototype.toString.apply(h)){for(f=h.length,u=0;u<f;u+=1)d[u]=i(u,h)||"null";return l=0===d.length?"[]":e?"[\n"+e+d.join(",\n"+e)+"\n"+p+"]":"["+d.join(",")+"]",e=p,l}if(n&&"object"==typeof n)for(f=n.length,u=0;u<f;u+=1)"string"==typeof n[u]&&(l=i(c=n[u],h))&&d.push(s(c)+(e?": ":":")+l);else Object.keys(h).forEach((function(t){var n=i(t,h);n&&d.push(s(t)+(e?": ":":")+n)}));return l=0===d.length?"{}":e?"{\n"+e+d.join(",\n"+e)+"\n"+p+"}":"{"+d.join(",")+"}",e=p,l}}("",{"":i})})}()},function(e,t,n){var r=null;e.exports=function(e){"use strict";var t={strict:!1,storeAsString:!1,alwaysParseAsBig:!1,useNativeBigInt:!1};null!=e&&(!0===e.strict&&(t.strict=!0),!0===e.storeAsString&&(t.storeAsString=!0),t.alwaysParseAsBig=!0===e.alwaysParseAsBig&&e.alwaysParseAsBig,t.useNativeBigInt=!0===e.useNativeBigInt&&e.useNativeBigInt);var i,o,a,s,u={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},c=function(e){throw{name:"SyntaxError",message:e,at:i,text:a}},l=function(e){return e&&e!==o&&c("Expected '"+e+"' instead of '"+o+"'"),o=a.charAt(i),i+=1,o},f=function(){var e,i="";for("-"===o&&(i="-",l("-"));o>="0"&&o<="9";)i+=o,l();if("."===o)for(i+=".";l()&&o>="0"&&o<="9";)i+=o;if("e"===o||"E"===o)for(i+=o,l(),"-"!==o&&"+"!==o||(i+=o,l());o>="0"&&o<="9";)i+=o,l();if(e=+i,isFinite(e))return null==r&&(r=n(709)),i.length>15?t.storeAsString?i:t.useNativeBigInt?BigInt(i):new r(i):t.alwaysParseAsBig?t.useNativeBigInt?BigInt(e):new r(e):e;c("Bad number")},d=function(){var e,t,n,r="";if('"'===o)for(var s=i;l();){if('"'===o)return i-1>s&&(r+=a.substring(s,i-1)),l(),r;if("\\"===o){if(i-1>s&&(r+=a.substring(s,i-1)),l(),"u"===o){for(n=0,t=0;t<4&&(e=parseInt(l(),16),isFinite(e));t+=1)n=16*n+e;r+=String.fromCharCode(n)}else{if("string"!=typeof u[o])break;r+=u[o]}s=i}}c("Bad string")},p=function(){for(;o&&o<=" ";)l()};return s=function(){switch(p(),o){case"{":return function(){var e,n={};if("{"===o){if(l("{"),p(),"}"===o)return l("}"),n;for(;o;){if(e=d(),p(),l(":"),!0===t.strict&&Object.hasOwnProperty.call(n,e)&&c('Duplicate key "'+e+'"'),n[e]=s(),p(),"}"===o)return l("}"),n;l(","),p()}}c("Bad object")}();case"[":return function(){var e=[];if("["===o){if(l("["),p(),"]"===o)return l("]"),e;for(;o;){if(e.push(s()),p(),"]"===o)return l("]"),e;l(","),p()}}c("Bad array")}();case'"':return d();case"-":return f();default:return o>="0"&&o<="9"?f():function(){switch(o){case"t":return l("t"),l("r"),l("u"),l("e"),!0;case"f":return l("f"),l("a"),l("l"),l("s"),l("e"),!1;case"n":return l("n"),l("u"),l("l"),l("l"),null}c("Unexpected '"+o+"'")}()}},function(e,t){var n;return a=e+"",i=0,o=" ",n=s(),p(),o&&c("Syntax error"),"function"==typeof t?function e(n,r){var i,o=n[r];return o&&"object"==typeof o&&Object.keys(o).forEach((function(t){void 0!==(i=e(o,t))?o[t]=i:delete o[t]})),t.call(n,r,o)}({"":n},""):n}}},,,,,,,function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e,t){return null!=e&&n.call(e,t)}},function(e,t,n){var r=n(437),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=n(1268),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(1269),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(583),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(1271),i=n(439),o=n(585);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(1272),i=n(1277),o=n(1278),a=n(1279),s=n(1280);function u(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])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},function(e,t,n){var r=n(438);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t,n){var r=n(714),i=n(1274),o=n(584),a=n(715),s=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,l=u.toString,f=c.hasOwnProperty,d=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?d:s).test(a(e))}},function(e,t,n){var r,i=n(1275),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(232)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},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(438),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(438),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(438),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){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(440),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(440);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(440);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(440);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(441);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(441);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(441);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(441);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(437),i=n(1292),o=n(259),a=n(582),s=1/0,u=r?r.prototype:void 0,c=u?u.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(382),i=n(383),o="[object Arguments]";e.exports=function(e){return i(e)&&r(e)==o}},function(e,t,n){var r=n(300),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},function(e,t,n){var r=n(1296)();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 u=a[e?s:++i];if(!1===n(o[u],u,o))break}return t}}},function(e,t,n){var r=n(1298),i=n(717),o=n(259),a=n(721),s=n(718),u=n(722),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),l=!n&&i(e),f=!n&&!l&&a(e),d=!n&&!l&&!f&&u(e),p=n||l||f||d,h=p?r(e.length,String):[],v=h.length;for(var g in e)!t&&!c.call(e,g)||p&&("length"==g||f&&("offset"==g||"parent"==g)||d&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,v))||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){e.exports=function(){return!1}},function(e,t,n){var r=n(382),i=n(586),o=n(383),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(713),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(231)(e))},function(e,t,n){var r=n(1304),i=n(1305),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(1306)(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(714),i=n(586);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},function(e,t,n){var r=n(1309),i=n(1337),o=n(728);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(724),i=n(725),o=1,a=2;e.exports=function(e,t,n,s){var u=n.length,c=u,l=!s;if(null==e)return!c;for(e=Object(e);u--;){var f=n[u];if(l&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++u<c;){var d=(f=n[u])[0],p=e[d],h=f[1];if(l&&f[2]){if(void 0===p&&!(d in e))return!1}else{var v=new r;if(s)var g=s(p,h,d,e,t,v);if(!(void 0===g?i(h,p,o|a,s,v):g))return!1}}return!0}},function(e,t,n){var r=n(439);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(439),i=n(585),o=n(583),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(724),i=n(726),o=n(1321),a=n(1325),s=n(1332),u=n(259),c=n(721),l=n(722),f=1,d="[object Arguments]",p="[object Array]",h="[object Object]",v=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,m,y){var b=u(e),x=u(t),w=b?p:s(e),_=x?p:s(t),S=(w=w==d?h:w)==h,O=(_=_==d?h:_)==h,k=w==_;if(k&&c(e)){if(!c(t))return!1;b=!0,S=!1}if(k&&!S)return y||(y=new r),b||l(e)?i(e,t,n,g,m,y):o(e,t,w,n,g,m,y);if(!(n&f)){var E=S&&v.call(e,"__wrapped__"),j=O&&v.call(t,"__wrapped__");if(E||j){var T=E?e.value():e,C=j?t.value():t;return y||(y=new r),m(T,C,n,g,y)}}return!!k&&(y||(y=new r),a(e,t,n,g,m,y))}},function(e,t,n){var r=n(583),i=n(1317),o=n(1318);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(437),i=n(1322),o=n(716),a=n(726),s=n(1323),u=n(1324),c=1,l=2,f="[object Boolean]",d="[object Date]",p="[object Error]",h="[object Map]",v="[object Number]",g="[object RegExp]",m="[object Set]",y="[object String]",b="[object Symbol]",x="[object ArrayBuffer]",w="[object DataView]",_=r?r.prototype:void 0,S=_?_.valueOf:void 0;e.exports=function(e,t,n,r,_,O,k){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case x:return!(e.byteLength!=t.byteLength||!O(new i(e),new i(t)));case f:case d:case v: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 E=s;case m:var j=r&c;if(E||(E=u),e.size!=t.size&&!j)return!1;var T=k.get(e);if(T)return T==t;r|=l,k.set(e,t);var C=a(E(e),E(t),r,_,O,k);return k.delete(e),C;case b:if(S)return S.call(e)==S.call(t)}return!1}},function(e,t,n){var r=n(232).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(1326),i=1,o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,s,u){var c=n&i,l=r(e),f=l.length;if(f!=r(t).length&&!c)return!1;for(var d=f;d--;){var p=l[d];if(!(c?p in t:o.call(t,p)))return!1}var h=u.get(e),v=u.get(t);if(h&&v)return h==t&&v==e;var g=!0;u.set(e,t),u.set(t,e);for(var m=c;++d<f;){var y=e[p=l[d]],b=t[p];if(a)var x=c?a(b,y,p,t,e,u):a(y,b,p,e,t,u);if(!(void 0===x?y===b||s(y,b,n,a,u):x)){g=!1;break}m||(m="constructor"==p)}if(g&&!m){var w=e.constructor,_=t.constructor;w!=_&&"constructor"in e&&"constructor"in t&&!("function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _)&&(g=!1)}return u.delete(e),u.delete(t),g}},function(e,t,n){var r=n(1327),i=n(1329),o=n(587);e.exports=function(e){return r(e,o,i)}},function(e,t,n){var r=n(1328),i=n(259);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(1330),i=n(1331),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(1333),i=n(585),o=n(1334),a=n(1335),s=n(1336),u=n(382),c=n(715),l=c(r),f=c(i),d=c(o),p=c(a),h=c(s),v=u;(r&&"[object DataView]"!=v(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=v(new i)||o&&"[object Promise]"!=v(o.resolve())||a&&"[object Set]"!=v(new a)||s&&"[object WeakMap]"!=v(new s))&&(v=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case d:return"[object Promise]";case p:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=v},function(e,t,n){var r=n(300)(n(232),"DataView");e.exports=r},function(e,t,n){var r=n(300)(n(232),"Promise");e.exports=r},function(e,t,n){var r=n(300)(n(232),"Set");e.exports=r},function(e,t,n){var r=n(300)(n(232),"WeakMap");e.exports=r},function(e,t,n){var r=n(727),i=n(587);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(725),i=n(1339),o=n(1340),a=n(581),s=n(727),u=n(728),c=n(442),l=1,f=2;e.exports=function(e,t){return a(e)&&s(t)?u(c(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,l|f)}}},function(e,t,n){var r=n(729);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(1341),i=n(711);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){e.exports=function(e){return e}},function(e,t,n){var r=n(1344),i=n(1345),o=n(581),a=n(442);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(729);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t){e.exports=function(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}},function(e,t,n){var r=n(1348),i=n(384),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(o,r).replace(a,"")}},function(e,t,n){var r=n(1349)({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"});e.exports=r},function(e,t){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},function(e,t,n){var r=n(1351),i=n(1352),o=n(384),a=n(1353);e.exports=function(e,t,n){return e=o(e),void 0===(t=n?void 0:t)?i(e)?a(e):r(e):e.match(t)||[]}},function(e,t){var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(n)||[]}},function(e,t){var n=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return n.test(e)}},function(e,t){var n="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",r="["+n+"]",i="\\d+",o="[\\u2700-\\u27bf]",a="[a-z\\xdf-\\xf6\\xf8-\\xff]",s="[^\\ud800-\\udfff"+n+i+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",u="(?:\\ud83c[\\udde6-\\uddff]){2}",c="[\\ud800-\\udbff][\\udc00-\\udfff]",l="[A-Z\\xc0-\\xd6\\xd8-\\xde]",f="(?:"+a+"|"+s+")",d="(?:"+l+"|"+s+")",p="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",h="[\\ufe0e\\ufe0f]?"+p+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",u,c].join("|")+")[\\ufe0e\\ufe0f]?"+p+")*"),v="(?:"+[o,u,c].join("|")+")"+h,g=RegExp([l+"?"+a+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[r,l,"$"].join("|")+")",d+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[r,l+f,"$"].join("|")+")",l+"?"+f+"+(?:['’](?:d|ll|m|re|s|t|ve))?",l+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",i,v].join("|"),"g");e.exports=function(e){return e.match(g)||[]}},function(e,t,n){var r=n(384),i=n(1355);e.exports=function(e){return i(r(e).toLowerCase())}},function(e,t,n){var r=n(1356)("toUpperCase");e.exports=r},function(e,t,n){var r=n(1357),i=n(731),o=n(1359),a=n(384);e.exports=function(e){return function(t){t=a(t);var n=i(t)?o(t):void 0,s=n?n[0]:t.charAt(0),u=n?r(n,1).join(""):t.slice(1);return s[e]()+u}}},function(e,t,n){var r=n(1358);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(1360),i=n(731),o=n(1361);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]",u="(?:"+r+"|"+i+")"+"?",c="[\\ufe0e\\ufe0f]?"+u+("(?:\\u200d(?:"+[o,a,s].join("|")+")[\\ufe0e\\ufe0f]?"+u+")*"),l="(?:"+[o+r+"?",r,a,s,n].join("|")+")",f=RegExp(i+"(?="+i+")|"+l+c,"g");e.exports=function(e){return e.match(f)||[]}},,function(e,t,n){"use strict";e.exports=function(e,t,n,r,i,o,a,s){if(!e){var u;if(void 0===t)u=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],l=0;(u=new Error(t.replace(/%s/g,(function(){return c[l++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeSensor=t.getSensor=void 0;var r,i=(r=n(1366))&&r.__esModule?r:{default:r},o=n(1367),a=n(743);var s={};t.getSensor=function(e){var t=e.getAttribute(a.SizeSensorId);if(t&&s[t])return s[t];var n=(0,i.default)();e.setAttribute(a.SizeSensorId,n);var r=(0,o.createSensor)(e);return s[n]=r,r};t.removeSensor=function(e){var t=e.element.getAttribute(a.SizeSensorId);e.element.removeAttribute(a.SizeSensorId),e.destroy(),t&&s[t]&&delete s[t]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=1;t.default=function(){return"".concat(r++)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSensor=void 0;var r=n(1368),i=n(1369),o="undefined"!=typeof ResizeObserver?i.createSensor:r.createSensor;t.createSensor=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSensor=void 0;var r,i=(r=n(742))&&r.__esModule?r:{default:r},o=n(743);t.createSensor=function(e){var t=void 0,n=[],r=(0,i.default)((function(){n.forEach((function(t){t(e)}))})),a=function(){t&&t.parentNode&&(t.contentDocument&&t.contentDocument.defaultView.removeEventListener("resize",r),t.parentNode.removeChild(t),t=void 0,n=[])};return{element:e,bind:function(i){t||(t=function(){"static"===getComputedStyle(e).position&&(e.style.position="relative");var t=document.createElement("object");return t.onload=function(){t.contentDocument.defaultView.addEventListener("resize",r),r()},t.style.display="block",t.style.position="absolute",t.style.top="0",t.style.left="0",t.style.height="100%",t.style.width="100%",t.style.overflow="hidden",t.style.pointerEvents="none",t.style.zIndex="-1",t.style.opacity="0",t.setAttribute("class",o.SensorClassName),t.setAttribute("tabindex",o.SensorTabIndex),t.type="text/html",e.appendChild(t),t.data="about:blank",t}()),-1===n.indexOf(i)&&n.push(i)},destroy:a,unbind:function(e){var r=n.indexOf(e);-1!==r&&n.splice(r,1),0===n.length&&t&&a()}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSensor=void 0;var r,i=(r=n(742))&&r.__esModule?r:{default:r};t.createSensor=function(e){var t=void 0,n=[],r=(0,i.default)((function(){n.forEach((function(t){t(e)}))})),o=function(){t.disconnect(),n=[],t=void 0};return{element:e,bind:function(i){var o;t||((o=new ResizeObserver(r)).observe(e),r(),t=o),-1===n.indexOf(i)&&n.push(i)},destroy:o,unbind:function(e){var r=n.indexOf(e);-1!==r&&n.splice(r,1),0===n.length&&t&&o()}}}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlphaPicker=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=u(n(2)),o=u(n(64)),a=n(97),s=u(n(1497));function u(e){return e&&e.__esModule?e:{default:e}}var c=t.AlphaPicker=function(e){var t=e.rgb,n=e.hsl,s=e.width,u=e.height,c=e.onChange,l=e.direction,f=e.style,d=e.renderers,p=e.pointer,h=e.className,v=void 0===h?"":h,g=(0,o.default)({default:{picker:{position:"relative",width:s,height:u},alpha:{radius:"2px",style:f}}});return i.default.createElement("div",{style:g.picker,className:"alpha-picker "+v},i.default.createElement(a.Alpha,r({},g.alpha,{rgb:t,hsl:n,pointer:p,renderers:d,onChange:c,direction:l})))};c.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:s.default},t.default=(0,a.ColorWrap)(c)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flattenNames=void 0;var r=s(n(1373)),i=s(n(588)),o=s(n(751)),a=s(n(260));function s(e){return e&&e.__esModule?e:{default:e}}var u=t.flattenNames=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[];return(0,a.default)(t,(function(t){Array.isArray(t)?e(t).map((function(e){return n.push(e)})):(0,o.default)(t)?(0,i.default)(t,(function(e,t){!0===e&&n.push(t),n.push(t+"-"+e)})):(0,r.default)(t)&&n.push(t)})),n};t.default=u},function(e,t,n){var r=n(301),i=n(167),o=n(204),a="[object String]";e.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&r(e)==a}},function(e,t,n){var r=n(385),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){e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===n(o[u],u,o))break}return t}}},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(301),i=n(204),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(301),i=n(592),o=n(204),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(595),i=n(1382),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(749)(Object.keys,Object);e.exports=r},function(e,t,n){function r(e){return(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})(e)}var i=n(1384),o=n(1428),a=n(444),s=n(167),u=n(1438);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==r(e)?s(e)?o(e[0],e[1]):i(e):u(e)}},function(e,t,n){var r=n(1385),i=n(1427),o=n(762);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(445),i=n(754),o=1,a=2;e.exports=function(e,t,n,s){var u=n.length,c=u,l=!s;if(null==e)return!c;for(e=Object(e);u--;){var f=n[u];if(l&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++u<c;){var d=(f=n[u])[0],p=e[d],h=f[1];if(l&&f[2]){if(void 0===p&&!(d in e))return!1}else{var v=new r;if(s)var g=s(p,h,d,e,t,v);if(!(void 0===g?i(h,p,o|a,s,v):g))return!1}}return!0}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(447),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(447);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(447);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(447);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(446);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(446),i=n(598),o=n(599),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(596),i=n(1397),o=n(179),a=n(753),s=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,l=u.toString,f=c.hasOwnProperty,d=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?d:s).test(a(e))}},function(e,t,n){var r,i=n(1398),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(190)["__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(1401),i=n(446),o=n(598);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(1402),i=n(1403),o=n(1404),a=n(1405),s=n(1406);function u(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])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},function(e,t,n){var r=n(448);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(448),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(448),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(448),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(449);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){function n(e){return(n="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)}e.exports=function(e){var t=n(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(449);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(449);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(449);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(445),i=n(755),o=n(1418),a=n(1421),s=n(450),u=n(167),c=n(443),l=n(591),f=1,d="[object Arguments]",p="[object Array]",h="[object Object]",v=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,g,m,y){var b=u(e),x=u(t),w=b?p:s(e),_=x?p:s(t),S=(w=w==d?h:w)==h,O=(_=_==d?h:_)==h,k=w==_;if(k&&c(e)){if(!c(t))return!1;b=!0,S=!1}if(k&&!S)return y||(y=new r),b||l(e)?i(e,t,n,g,m,y):o(e,t,w,n,g,m,y);if(!(n&f)){var E=S&&v.call(e,"__wrapped__"),j=O&&v.call(t,"__wrapped__");if(E||j){var T=E?e.value():e,C=j?t.value():t;return y||(y=new r),m(T,C,n,g,y)}}return!!k&&(y||(y=new r),a(e,t,n,g,m,y))}},function(e,t,n){var r=n(599),i=n(1414),o=n(1415);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(385),i=n(756),o=n(387),a=n(755),s=n(1419),u=n(1420),c=1,l=2,f="[object Boolean]",d="[object Date]",p="[object Error]",h="[object Map]",v="[object Number]",g="[object RegExp]",m="[object Set]",y="[object String]",b="[object Symbol]",x="[object ArrayBuffer]",w="[object DataView]",_=r?r.prototype:void 0,S=_?_.valueOf:void 0;e.exports=function(e,t,n,r,_,O,k){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case x:return!(e.byteLength!=t.byteLength||!O(new i(e),new i(t)));case f:case d:case v: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 E=s;case m:var j=r&c;if(E||(E=u),e.size!=t.size&&!j)return!1;var T=k.get(e);if(T)return T==t;r|=l,k.set(e,t);var C=a(E(e),E(t),r,_,O,k);return k.delete(e),C;case b:if(S)return S.call(e)==S.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(757),i=1,o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,s,u){var c=n&i,l=r(e),f=l.length;if(f!=r(t).length&&!c)return!1;for(var d=f;d--;){var p=l[d];if(!(c?p in t:o.call(t,p)))return!1}var h=u.get(e);if(h&&u.get(t))return h==t;var v=!0;u.set(e,t),u.set(t,e);for(var g=c;++d<f;){var m=e[p=l[d]],y=t[p];if(a)var b=c?a(y,m,p,t,e,u):a(m,y,p,e,t,u);if(!(void 0===b?m===y||s(m,y,n,a,u):b)){v=!1;break}g||(g="constructor"==p)}if(v&&!g){var x=e.constructor,w=t.constructor;x!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w)&&(v=!1)}return u.delete(e),u.delete(t),v}},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(302)(n(190),"DataView");e.exports=r},function(e,t,n){var r=n(302)(n(190),"Promise");e.exports=r},function(e,t,n){var r=n(302)(n(190),"Set");e.exports=r},function(e,t,n){var r=n(302)(n(190),"WeakMap");e.exports=r},function(e,t,n){var r=n(761),i=n(386);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(754),i=n(1429),o=n(1435),a=n(601),s=n(761),u=n(762),c=n(452),l=1,f=2;e.exports=function(e,t){return a(e)&&s(t)?u(c(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,l|f)}}},function(e,t,n){var r=n(763);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(1431),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(1432),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(599),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(1434);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(385),i=n(752),o=n(167),a=n(451),s=1/0,u=r?r.prototype:void 0,c=u?u.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,n){var r=n(1436),i=n(1437);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(764),i=n(589),o=n(167),a=n(590),s=n(592),u=n(452);e.exports=function(e,t,n){for(var c=-1,l=(t=r(t,e)).length,f=!1;++c<l;){var d=u(t[c]);if(!(f=null!=e&&n(e,d)))break;e=e[d]}return f||++c!=l?f:!!(l=null==e?0:e.length)&&s(l)&&a(d,l)&&(o(e)||i(e))}},function(e,t,n){var r=n(1439),i=n(1440),o=n(601),a=n(452);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(763);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){var r=n(765),i=n(331);e.exports=function(e,t){var n=-1,o=i(e)?Array(e.length):[];return r(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}},function(e,t,n){var r=n(331);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){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeClasses=void 0;var r=a(n(588)),i=a(n(1444)),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};function a(e){return e&&e.__esModule?e:{default:e}}var s=t.mergeClasses=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.default&&(0,i.default)(e.default)||{};return t.map((function(t){var i=e[t];return i&&(0,r.default)(i,(function(e,t){n[t]||(n[t]={}),n[t]=o({},n[t],i[t])})),t})),n};t.default=s},function(e,t,n){var r=n(1445),i=1,o=4;e.exports=function(e){return r(e,i|o)}},function(e,t,n){var r=n(445),i=n(766),o=n(767),a=n(1446),s=n(1447),u=n(769),c=n(770),l=n(1450),f=n(1451),d=n(757),p=n(1452),h=n(450),v=n(1453),g=n(1454),m=n(773),y=n(167),b=n(443),x=n(1459),w=n(179),_=n(1461),S=n(386),O=1,k=2,E=4,j="[object Arguments]",T="[object Function]",C="[object GeneratorFunction]",A="[object Object]",P={};P[j]=P["[object Array]"]=P["[object ArrayBuffer]"]=P["[object DataView]"]=P["[object Boolean]"]=P["[object Date]"]=P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Map]"]=P["[object Number]"]=P[A]=P["[object RegExp]"]=P["[object Set]"]=P["[object String]"]=P["[object Symbol]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P["[object Error]"]=P[T]=P["[object WeakMap]"]=!1,e.exports=function e(t,n,M,I,R,D){var L,N=n&O,F=n&k,B=n&E;if(M&&(L=R?M(t,I,R,D):M(t)),void 0!==L)return L;if(!w(t))return t;var U=y(t);if(U){if(L=v(t),!N)return c(t,L)}else{var z=h(t),V=z==T||z==C;if(b(t))return u(t,N);if(z==A||z==j||V&&!R){if(L=F||V?{}:m(t),!N)return F?f(t,s(L,t)):l(t,a(L,t))}else{if(!P[z])return R?t:{};L=g(t,z,N)}}D||(D=new r);var H=D.get(t);if(H)return H;D.set(t,L),_(t)?t.forEach((function(r){L.add(e(r,n,M,r,t,D))})):x(t)&&t.forEach((function(r,i){L.set(i,e(r,n,M,i,t,D))}));var W=B?F?p:d:F?keysIn:S,q=U?void 0:W(t);return i(q||t,(function(r,i){q&&(r=t[i=r]),o(L,i,e(r,n,M,i,t,D))})),L}},function(e,t,n){var r=n(388),i=n(386);e.exports=function(e,t){return e&&r(t,i(t),e)}},function(e,t,n){var r=n(388),i=n(453);e.exports=function(e,t){return e&&r(t,i(t),e)}},function(e,t,n){var r=n(179),i=n(595),o=n(1449),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){var r=n(388),i=n(600);e.exports=function(e,t){return r(e,i(e),t)}},function(e,t,n){var r=n(388),i=n(771);e.exports=function(e,t){return r(e,i(e),t)}},function(e,t,n){var r=n(758),i=n(771),o=n(453);e.exports=function(e){return r(e,o,i)}},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(603),i=n(1455),o=n(1456),a=n(1457),s=n(772),u="[object Boolean]",c="[object Date]",l="[object Map]",f="[object Number]",d="[object RegExp]",p="[object Set]",h="[object String]",v="[object Symbol]",g="[object ArrayBuffer]",m="[object DataView]",y="[object Float32Array]",b="[object Float64Array]",x="[object Int8Array]",w="[object Int16Array]",_="[object Int32Array]",S="[object Uint8Array]",O="[object Uint8ClampedArray]",k="[object Uint16Array]",E="[object Uint32Array]";e.exports=function(e,t,n){var j=e.constructor;switch(t){case g:return r(e);case u:case c:return new j(+e);case m:return i(e,n);case y:case b:case x:case w:case _:case S:case O:case k:case E:return s(e,n);case l:return new j;case f:case h:return new j(e);case d:return o(e);case p:return new j;case v:return a(e)}}},function(e,t,n){var r=n(603);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(385),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(179),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(1460),i=n(593),o=n(594),a=o&&o.isMap,s=a?i(a):r;e.exports=s},function(e,t,n){var r=n(450),i=n(204),o="[object Map]";e.exports=function(e){return i(e)&&r(e)==o}},function(e,t,n){var r=n(1462),i=n(593),o=n(594),a=o&&o.isSet,s=a?i(a):r;e.exports=s},function(e,t,n){var r=n(450),i=n(204),o="[object Set]";e.exports=function(e){return i(e)&&r(e)==o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.autoprefix=void 0;var r,i=n(588),o=(r=i)&&r.__esModule?r:{default:r},a=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};var s={borderRadius:function(e){return{msBorderRadius:e,MozBorderRadius:e,OBorderRadius:e,WebkitBorderRadius:e,borderRadius:e}},boxShadow:function(e){return{msBoxShadow:e,MozBoxShadow:e,OBoxShadow:e,WebkitBoxShadow:e,boxShadow:e}},userSelect:function(e){return{WebkitTouchCallout:e,KhtmlUserSelect:e,MozUserSelect:e,msUserSelect:e,WebkitUserSelect:e,userSelect:e}},flex:function(e){return{WebkitBoxFlex:e,MozBoxFlex:e,WebkitFlex:e,msFlex:e,flex:e}},flexBasis:function(e){return{WebkitFlexBasis:e,flexBasis:e}},justifyContent:function(e){return{WebkitJustifyContent:e,justifyContent:e}},transition:function(e){return{msTransition:e,MozTransition:e,OTransition:e,WebkitTransition:e,transition:e}},transform:function(e){return{msTransform:e,MozTransform:e,OTransform:e,WebkitTransform:e,transform:e}},absolute:function(e){var t=e&&e.split(" ");return{position:"absolute",top:t&&t[0],right:t&&t[1],bottom:t&&t[2],left:t&&t[3]}},extend:function(e,t){var n=t[e];return n||{extend:e}}},u=t.autoprefix=function(e){var t={};return(0,o.default)(e,(function(e,n){var r={};(0,o.default)(e,(function(e,t){var n=s[t];n?r=a({},r,n(e)):r[t]=e})),t[n]=r})),t};t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hover=void 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=n(2),a=(r=o)&&r.__esModule?r:{default:r};function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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}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 l=t.hover=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,o,c;s(this,r);for(var l=arguments.length,f=Array(l),d=0;d<l;d++)f[d]=arguments[d];return o=c=u(this,(n=r.__proto__||Object.getPrototypeOf(r)).call.apply(n,[this].concat(f))),c.state={hover:!1},c.handleMouseOver=function(){return c.setState({hover:!0})},c.handleMouseOut=function(){return c.setState({hover:!1})},c.render=function(){return a.default.createElement(t,{onMouseOver:c.handleMouseOver,onMouseOut:c.handleMouseOut},a.default.createElement(e,i({},c.props,c.state)))},u(c,o)}return c(r,n),r}(a.default.Component)};t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.active=void 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=n(2),a=(r=o)&&r.__esModule?r:{default:r};function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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}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 l=t.active=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var n,o,c;s(this,r);for(var l=arguments.length,f=Array(l),d=0;d<l;d++)f[d]=arguments[d];return o=c=u(this,(n=r.__proto__||Object.getPrototypeOf(r)).call.apply(n,[this].concat(f))),c.state={active:!1},c.handleMouseDown=function(){return c.setState({active:!0})},c.handleMouseUp=function(){return c.setState({active:!1})},c.render=function(){return a.default.createElement(t,{onMouseDown:c.handleMouseDown,onMouseUp:c.handleMouseUp},a.default.createElement(e,i({},c.props,c.state)))},u(c,o)}return c(r,n),r}(a.default.Component)};t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e,t){var n={},r=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n[e]=t};return 0===e&&r("first-child"),e===t-1&&r("last-child"),(0===e||e%2==0)&&r("even"),1===Math.abs(e%2)&&r("odd"),r("nth-child",e),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Alpha=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=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(2),a=l(o),s=l(n(64)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1468)),c=l(n(604));function l(e){return e&&e.__esModule?e:{default:e}}function f(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=t.Alpha=function(e){function t(){var e,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=f(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.handleChange=function(e){var t=u.calculateChange(e,r.props.hsl,r.props.direction,r.props.a,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleChange),window.removeEventListener("mouseup",r.handleMouseUp)},f(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),i(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=this.props.rgb,n=(0,s.default)({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*t.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)"},pointer:{left:0,top:100*t.a+"%"}},overwrite:r({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return a.default.createElement("div",{style:n.alpha},a.default.createElement("div",{style:n.checkboard},a.default.createElement(c.default,{renderers:this.props.renderers})),a.default.createElement("div",{style:n.gradient}),a.default.createElement("div",{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},a.default.createElement("div",{style:n.pointer},this.props.pointer?a.default.createElement(this.props.pointer,this.props):a.default.createElement("div",{style:n.slider}))))}}]),t}(o.PureComponent||o.Component);t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.calculateChange=function(e,t,n,r,i){var o=i.clientWidth,a=i.clientHeight,s="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,u="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,c=s-(i.getBoundingClientRect().left+window.pageXOffset),l=u-(i.getBoundingClientRect().top+window.pageYOffset);if("vertical"===n){var f=void 0;if(f=l<0?0:l>a?1:Math.round(100*l/a)/100,t.a!==f)return{h:t.h,s:t.s,l:t.l,a:f,source:"rgb"}}else{var d=void 0;if(r!==(d=c<0?0:c>o?1:Math.round(100*c/o)/100))return{h:t.h,s:t.s,l:t.l,a:d,source:"rgb"}}return null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={},i=t.render=function(e,t,n,r){if("undefined"==typeof document&&!r)return null;var i=r?new r:document.createElement("canvas");i.width=2*n,i.height=2*n;var o=i.getContext("2d");return o?(o.fillStyle=e,o.fillRect(0,0,i.width,i.height),o.fillStyle=t,o.fillRect(0,0,n,n),o.translate(n,n),o.fillRect(0,0,n,n),i.toDataURL()):null};t.get=function(e,t,n,o){var a=e+"-"+t+"-"+n+(o?"-server":"");if(r[a])return r[a];var s=i(e,t,n,o);return r[a]=s,s}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditableInput=void 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(2),o=s(i),a=s(n(64));function s(e){return e&&e.__esModule?e:{default:e}}var u=38,c=[u,40],l=function(e){return c.indexOf(e)>-1},f=function(e){return Number(String(e).replace(/%/g,""))},d=t.EditableInput=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));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(e){n.setUpdatedValue(e.target.value,e)},n.handleKeyDown=function(e){var t=f(e.target.value);if(!isNaN(t)&&l(e.keyCode)){var r=n.getArrowOffset(),i=e.keyCode===u?t+r:t-r;n.setUpdatedValue(i,e)}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},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),r(t,[{key:"componentDidUpdate",value:function(e,t){this.props.value===this.state.value||e.value===this.props.value&&t.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},this.props.label,e)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t);var r,i=function(e){return String(e).indexOf("%")>-1}(t.target.value);this.setState({value:i?(r=e,r+"%"):e})}},{key:"render",value:function(){var e=this,t=(0,a.default)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return o.default.createElement("div",{style:t.wrap},o.default.createElement("input",{style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?o.default.createElement("span",{style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(i.PureComponent||i.Component);t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Hue=void 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(2),o=u(i),a=u(n(64)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1472));function u(e){return e&&e.__esModule?e:{default:e}}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}var l=t.Hue=function(e){function t(){var e,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=c(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.handleChange=function(e){var t=s.calculateChange(e,r.props.direction,r.props.hsl,r.container);t&&"function"==typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},c(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),r(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.direction,n=void 0===t?"horizontal":t,r=(0,a.default)({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:"vertical"===n});return o.default.createElement("div",{style:r.hue},o.default.createElement("div",{className:"hue-"+n,style:r.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},o.default.createElement("style",null,"\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n "),o.default.createElement("div",{style:r.pointer},this.props.pointer?o.default.createElement(this.props.pointer,this.props):o.default.createElement("div",{style:r.slider}))))}}]),t}(i.PureComponent||i.Component);t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.calculateChange=function(e,t,n,r){var i=r.clientWidth,o=r.clientHeight,a="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,u=a-(r.getBoundingClientRect().left+window.pageXOffset),c=s-(r.getBoundingClientRect().top+window.pageYOffset);if("vertical"===t){var l=void 0;if(c<0)l=359;else if(c>o)l=0;else{l=360*(-100*c/o+100)/100}if(n.h!==l)return{h:l,s:n.s,l:n.l,a:n.a,source:"rgb"}}else{var f=void 0;if(u<0)f=0;else if(u>i)f=359;else{f=360*(100*u/i)/100}if(n.h!==f)return{h:f,s:n.s,l:n.l,a:n.a,source:"rgb"}}return null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Raised=void 0;var r=s(n(2)),i=s(n(52)),o=s(n(64)),a=s(n(168));function s(e){return e&&e.__esModule?e:{default:e}}var u=t.Raised=function(e){var t=e.zDepth,n=e.radius,i=e.background,s=e.children,u=e.styles,c=void 0===u?{}:u,l=(0,o.default)((0,a.default)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+t+"px "+4*t+"px rgba(0,0,0,.24)",borderRadius:n,background:i}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},c),{"zDepth-1":1===t});return r.default.createElement("div",{style:l.wrap},r.default.createElement("div",{style:l.bg}),r.default.createElement("div",{style:l.content},s))};u.propTypes={background:i.default.string,zDepth:i.default.oneOf([0,1,2,3,4,5]),radius:i.default.number,styles:i.default.object},u.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}},t.default=u},function(e,t,n){var r=n(445),i=n(774),o=n(747),a=n(1475),s=n(179),u=n(453),c=n(775);e.exports=function e(t,n,l,f,d){t!==n&&o(n,(function(o,u){if(d||(d=new r),s(o))a(t,n,u,l,e,f,d);else{var p=f?f(c(t,u),o,u+"",t,n,d):void 0;void 0===p&&(p=o),i(t,u,p)}}),u)}},function(e,t,n){var r=n(774),i=n(769),o=n(772),a=n(770),s=n(773),u=n(589),c=n(167),l=n(1476),f=n(443),d=n(596),p=n(179),h=n(751),v=n(591),g=n(775),m=n(1477);e.exports=function(e,t,n,y,b,x,w){var _=g(e,n),S=g(t,n),O=w.get(S);if(O)r(e,n,O);else{var k=x?x(_,S,n+"",e,t,w):void 0,E=void 0===k;if(E){var j=c(S),T=!j&&f(S),C=!j&&!T&&v(S);k=S,j||T||C?c(_)?k=_:l(_)?k=a(_):T?(E=!1,k=i(S,!0)):C?(E=!1,k=o(S,!0)):k=[]:h(S)||u(S)?(k=_,u(_)?k=m(_):p(_)&&!d(_)||(k=s(S))):E=!1}E&&(w.set(S,k),b(k,S,y,x,w),w.delete(S)),r(e,n,k)}}},function(e,t,n){var r=n(331),i=n(204);e.exports=function(e){return i(e)&&r(e)}},function(e,t,n){var r=n(388),i=n(453);e.exports=function(e){return r(e,i(e))}},function(e,t,n){var r=n(1479),i=n(1486);e.exports=function(e){return r((function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var u=n[r];u&&e(t,u,r,a)}return t}))}},function(e,t,n){var r=n(444),i=n(1480),o=n(1482);e.exports=function(e,t){return o(i(e,t,r),e+"")}},function(e,t,n){var r=n(1481),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),u=Array(s);++a<s;)u[a]=o[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=o[a];return c[t]=n(u),r(e,this,c)}}},function(e,t){e.exports=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)}},function(e,t,n){var r=n(1483),i=n(1485)(r);e.exports=i},function(e,t,n){var r=n(1484),i=n(768),o=n(444),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t){var n=800,r=16,i=Date.now;e.exports=function(e){var t=0,o=0;return function(){var a=i(),s=r-(a-o);if(o=a,s>0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){function r(e){return(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})(e)}var i=n(387),o=n(331),a=n(590),s=n(179);e.exports=function(e,t,n){if(!s(n))return!1;var u=r(t);return!!("number"==u?o(n)&&a(t,n.length):"string"==u&&t in n)&&i(n[t],e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Saturation=void 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(2),o=c(i),a=c(n(64)),s=c(n(1488)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(1491));function c(e){return e&&e.__esModule?e:{default:e}}var l=t.Saturation=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.handleChange=function(e){"function"==typeof n.props.onChange&&n.throttle(n.props.onChange,u.calculateChange(e,n.props.hsl,n.container),e)},n.handleMouseDown=function(e){n.handleChange(e),window.addEventListener("mousemove",n.handleChange),window.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=(0,s.default)((function(e,t,n){e(t,n)}),50),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),r(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.style||{},n=t.color,r=t.white,i=t.black,s=t.pointer,u=t.circle,c=(0,a.default)({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:r,black:i,pointer:s,circle:u}},{custom:!!this.props.style});return o.default.createElement("div",{style:c.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},o.default.createElement("style",null,"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "),o.default.createElement("div",{style:c.white,className:"saturation-white"},o.default.createElement("div",{style:c.black,className:"saturation-black"}),o.default.createElement("div",{style:c.pointer},this.props.pointer?o.default.createElement(this.props.pointer,this.props):o.default.createElement("div",{style:c.circle}))))}}]),t}(i.PureComponent||i.Component);t.default=l},function(e,t,n){var r=n(776),i=n(179),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(190);e.exports=function(){return r.Date.now()}},function(e,t,n){var r=n(179),i=n(451),o=NaN,a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=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=u.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):s.test(e)?o:+e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.calculateChange=function(e,t,n){var r=n.getBoundingClientRect(),i=r.width,o=r.height,a="number"==typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"==typeof e.pageY?e.pageY:e.touches[0].pageY,u=a-(n.getBoundingClientRect().left+window.pageXOffset),c=s-(n.getBoundingClientRect().top+window.pageYOffset);u<0?u=0:u>i&&(u=i),c<0?c=0:c>o&&(c=o);var l=u/i,f=1-c/o;return{h:t.h,s:l,v:f,a:t.a,source:"rgb"}}},function(e,t,n){e.exports=n(1493)},function(e,t,n){var r=n(766),i=n(765),o=n(750),a=n(167);e.exports=function(e,t){return(a(e)?r:i)(e,o(t))}},function(e,t,n){var r;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){var a=/^\s+/,s=/\s+$/,u=0,c=o.round,l=o.min,f=o.max,d=o.random;function p(e,t){if(t=t||{},(e=e||"")instanceof p)return e;if(!(this instanceof p))return new p(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,u=null,c=null,d=!1,p=!1;"string"==typeof e&&(e=function(e){e=e.replace(a,"").replace(s,"").toLowerCase();var t,n=!1;if(P[e])e=P[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=W.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=W.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=W.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=W.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=W.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=W.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=W.hex8.exec(e))return{r:L(t[1]),g:L(t[2]),b:L(t[3]),a:U(t[4]),format:n?"name":"hex8"};if(t=W.hex6.exec(e))return{r:L(t[1]),g:L(t[2]),b:L(t[3]),format:n?"name":"hex"};if(t=W.hex4.exec(e))return{r:L(t[1]+""+t[1]),g:L(t[2]+""+t[2]),b:L(t[3]+""+t[3]),a:U(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=W.hex3.exec(e))return{r:L(t[1]+""+t[1]),g:L(t[2]+""+t[2]),b:L(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==i(e)&&(q(e.r)&&q(e.g)&&q(e.b)?(h=e.r,v=e.g,g=e.b,t={r:255*R(h,255),g:255*R(v,255),b:255*R(g,255)},d=!0,p="%"===String(e.r).substr(-1)?"prgb":"rgb"):q(e.h)&&q(e.s)&&q(e.v)?(r=F(e.s),u=F(e.v),t=function(e,t,n){e=6*R(e,360),t=R(t,100),n=R(n,100);var r=o.floor(e),i=e-r,a=n*(1-t),s=n*(1-i*t),u=n*(1-(1-i)*t),c=r%6;return{r:255*[n,s,a,a,u,n][c],g:255*[u,n,n,s,a,a][c],b:255*[a,a,u,n,n,s][c]}}(e.h,r,u),d=!0,p="hsv"):q(e.h)&&q(e.s)&&q(e.l)&&(r=F(e.s),c=F(e.l),t=function(e,t,n){var r,i,o;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=R(e,360),t=R(t,100),n=R(n,100),0===t)r=i=o=n;else{var s=n<.5?n*(1+t):n+t-n*t,u=2*n-s;r=a(u,s,e+1/3),i=a(u,s,e),o=a(u,s,e-1/3)}return{r:255*r,g:255*i,b:255*o}}(e.h,r,c),d=!0,p="hsl"),e.hasOwnProperty("a")&&(n=e.a));var h,v,g;return n=I(n),{ok:d,format:e.format||p,r:l(255,f(t.r,0)),g:l(255,f(t.g,0)),b:l(255,f(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=c(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=c(this._r)),this._g<1&&(this._g=c(this._g)),this._b<1&&(this._b=c(this._b)),this._ok=n.ok,this._tc_id=u++}function h(e,t,n){e=R(e,255),t=R(t,255),n=R(n,255);var r,i,o=f(e,t,n),a=l(e,t,n),s=(o+a)/2;if(o==a)r=i=0;else{var u=o-a;switch(i=s>.5?u/(2-o-a):u/(o+a),o){case e:r=(t-n)/u+(t<n?6:0);break;case t:r=(n-e)/u+2;break;case n:r=(e-t)/u+4}r/=6}return{h:r,s:i,l:s}}function v(e,t,n){e=R(e,255),t=R(t,255),n=R(n,255);var r,i,o=f(e,t,n),a=l(e,t,n),s=o,u=o-a;if(i=0===o?0:u/o,o==a)r=0;else{switch(o){case e:r=(t-n)/u+(t<n?6:0);break;case t:r=(n-e)/u+2;break;case n:r=(e-t)/u+4}r/=6}return{h:r,s:i,v:s}}function g(e,t,n,r){var i=[N(c(e).toString(16)),N(c(t).toString(16)),N(c(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function m(e,t,n,r){return[N(B(r)),N(c(e).toString(16)),N(c(t).toString(16)),N(c(n).toString(16))].join("")}function y(e,t){t=0===t?0:t||10;var n=p(e).toHsl();return n.s-=t/100,n.s=D(n.s),p(n)}function b(e,t){t=0===t?0:t||10;var n=p(e).toHsl();return n.s+=t/100,n.s=D(n.s),p(n)}function x(e){return p(e).desaturate(100)}function w(e,t){t=0===t?0:t||10;var n=p(e).toHsl();return n.l+=t/100,n.l=D(n.l),p(n)}function _(e,t){t=0===t?0:t||10;var n=p(e).toRgb();return n.r=f(0,l(255,n.r-c(-t/100*255))),n.g=f(0,l(255,n.g-c(-t/100*255))),n.b=f(0,l(255,n.b-c(-t/100*255))),p(n)}function S(e,t){t=0===t?0:t||10;var n=p(e).toHsl();return n.l-=t/100,n.l=D(n.l),p(n)}function O(e,t){var n=p(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,p(n)}function k(e){var t=p(e).toHsl();return t.h=(t.h+180)%360,p(t)}function E(e){var t=p(e).toHsl(),n=t.h;return[p(e),p({h:(n+120)%360,s:t.s,l:t.l}),p({h:(n+240)%360,s:t.s,l:t.l})]}function j(e){var t=p(e).toHsl(),n=t.h;return[p(e),p({h:(n+90)%360,s:t.s,l:t.l}),p({h:(n+180)%360,s:t.s,l:t.l}),p({h:(n+270)%360,s:t.s,l:t.l})]}function T(e){var t=p(e).toHsl(),n=t.h;return[p(e),p({h:(n+72)%360,s:t.s,l:t.l}),p({h:(n+216)%360,s:t.s,l:t.l})]}function C(e,t,n){t=t||6,n=n||30;var r=p(e).toHsl(),i=360/n,o=[p(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(p(r));return o}function A(e,t){t=t||6;for(var n=p(e).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(p({h:r,s:i,v:o})),o=(o+s)%1;return a}p.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=I(e),this._roundA=c(100*this._a)/100,this},toHsv:function(){var e=v(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=v(this._r,this._g,this._b),t=c(360*e.h),n=c(100*e.s),r=c(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=h(this._r,this._g,this._b),t=c(360*e.h),n=c(100*e.s),r=c(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return g(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,i){var o=[N(c(e).toString(16)),N(c(t).toString(16)),N(c(n).toString(16)),N(B(r))];if(i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:c(this._r),g:c(this._g),b:c(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+c(this._r)+", "+c(this._g)+", "+c(this._b)+")":"rgba("+c(this._r)+", "+c(this._g)+", "+c(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:c(100*R(this._r,255))+"%",g:c(100*R(this._g,255))+"%",b:c(100*R(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+c(100*R(this._r,255))+"%, "+c(100*R(this._g,255))+"%, "+c(100*R(this._b,255))+"%)":"rgba("+c(100*R(this._r,255))+"%, "+c(100*R(this._g,255))+"%, "+c(100*R(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(M[g(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+m(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var i=p(e);n="#"+m(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return p(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(_,arguments)},darken:function(){return this._applyModification(S,arguments)},desaturate:function(){return this._applyModification(y,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(x,arguments)},spin:function(){return this._applyModification(O,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(C,arguments)},complement:function(){return this._applyCombination(k,arguments)},monochromatic:function(){return this._applyCombination(A,arguments)},splitcomplement:function(){return this._applyCombination(T,arguments)},triad:function(){return this._applyCombination(E,arguments)},tetrad:function(){return this._applyCombination(j,arguments)}},p.fromRatio=function(e,t){if("object"==i(e)){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:F(e[r]));e=n}return p(e,t)},p.equals=function(e,t){return!(!e||!t)&&p(e).toRgbString()==p(t).toRgbString()},p.random=function(){return p.fromRatio({r:d(),g:d(),b:d()})},p.mix=function(e,t,n){n=0===n?0:n||50;var r=p(e).toRgb(),i=p(t).toRgb(),o=n/100;return p({r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a})},p.readability=function(e,t){var n=p(e),r=p(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},p.isReadable=function(e,t,n){var r,i,o=p.readability(e,t);switch(i=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":i=o>=4.5;break;case"AAlarge":i=o>=3;break;case"AAAsmall":i=o>=7}return i},p.mostReadable=function(e,t,n){var r,i,o,a,s=null,u=0;i=(n=n||{}).includeFallbackColors,o=n.level,a=n.size;for(var c=0;c<t.length;c++)(r=p.readability(e,t[c]))>u&&(u=r,s=p(t[c]));return p.isReadable(e,s,{level:o,size:a})||!i?s:(n.includeFallbackColors=!1,p.mostReadable(e,["#fff","#000"],n))};var P=p.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},M=p.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(P);function I(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function R(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=l(t,f(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function D(e){return l(1,f(0,e))}function L(e){return parseInt(e,16)}function N(e){return 1==e.length?"0"+e:""+e}function F(e){return e<=1&&(e=100*e+"%"),e}function B(e){return o.round(255*parseFloat(e)).toString(16)}function U(e){return L(e)/255}var z,V,H,W=(V="[\\s|\\(]+("+(z="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+z+")[,|\\s]+("+z+")\\s*\\)?",H="[\\s|\\(]+("+z+")[,|\\s]+("+z+")[,|\\s]+("+z+")[,|\\s]+("+z+")\\s*\\)?",{CSS_UNIT:new RegExp(z),rgb:new RegExp("rgb"+V),rgba:new RegExp("rgba"+H),hsl:new RegExp("hsl"+V),hsla:new RegExp("hsla"+H),hsv:new RegExp("hsv"+V),hsva:new RegExp("hsva"+H),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function q(e){return!!W.CSS_UNIT.exec(e)}e.exports?e.exports=p:void 0===(r=function(){return p}.call(t,n,t,e))||(e.exports=r)}(Math)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Swatch=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=u(n(2)),o=u(n(64)),a=n(1496),s=u(n(604));function u(e){return e&&e.__esModule?e:{default:e}}var c=t.Swatch=function(e){var t=e.color,n=e.style,a=e.onClick,u=void 0===a?function(){}:a,c=e.onHover,l=e.title,f=void 0===l?t:l,d=e.children,p=e.focus,h=e.focusStyle,v=void 0===h?{}:h,g="transparent"===t,m=(0,o.default)({default:{swatch:r({background:t,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,p?v:{})}}),y={};return c&&(y.onMouseOver=function(e){return c(t,e)}),i.default.createElement("div",r({style:m.swatch,onClick:function(e){return u(t,e)},title:f,tabIndex:0,onKeyDown:function(e){return 13===e.keyCode&&u(t,e)}},y),d,g&&i.default.createElement(s.default,{borderRadius:m.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};t.default=(0,a.handleFocus)(c)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handleFocus=void 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(2),s=(r=a)&&r.__esModule?r:{default:r};function u(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 l(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.handleFocus=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function r(){var e,t,n;u(this,r);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return t=n=c(this,(e=r.__proto__||Object.getPrototypeOf(r)).call.apply(e,[this].concat(o))),n.state={focus:!1},n.handleFocus=function(){return n.setState({focus:!0})},n.handleBlur=function(){return n.setState({focus:!1})},c(n,t)}return l(r,n),o(r,[{key:"render",value:function(){return s.default.createElement(t,{onFocus:this.handleFocus,onBlur:this.handleBlur},s.default.createElement(e,i({},this.props,this.state)))}}]),r}(s.default.Component)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlphaPointer=void 0;var r=o(n(2)),i=o(n(64));function o(e){return e&&e.__esModule?e:{default:e}}var a=t.AlphaPointer=function(e){var t=e.direction,n=(0,i.default)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return r.default.createElement("div",{style:n.picker})};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Block=void 0;var r=l(n(2)),i=l(n(52)),o=l(n(64)),a=l(n(168)),s=l(n(191)),u=n(97),c=l(n(1499));function l(e){return e&&e.__esModule?e:{default:e}}var f=t.Block=function(e){var t=e.onChange,n=e.onSwatchHover,i=e.hex,l=e.colors,f=e.width,d=e.triangle,p=e.styles,h=void 0===p?{}:p,v=e.className,g=void 0===v?"":v,m="transparent"===i,y=function(e,n){s.default.isValidHex(e)&&t({hex:e,source:"hex"},n)},b=(0,o.default)((0,a.default)({default:{card:{width:f,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:i,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:s.default.getContrastingColor(i),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+i+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},h),{"hide-triangle":"hide"===d});return r.default.createElement("div",{style:b.card,className:"block-picker "+g},r.default.createElement("div",{style:b.triangle}),r.default.createElement("div",{style:b.head},m&&r.default.createElement(u.Checkboard,{borderRadius:"6px 6px 0 0"}),r.default.createElement("div",{style:b.label},i)),r.default.createElement("div",{style:b.body},r.default.createElement(c.default,{colors:l,onClick:y,onSwatchHover:n}),r.default.createElement(u.EditableInput,{style:{input:b.input},value:i,onChange:y})))};f.propTypes={width:i.default.oneOfType([i.default.string,i.default.number]),colors:i.default.arrayOf(i.default.string),triangle:i.default.oneOf(["top","hide"]),styles:i.default.object},f.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}},t.default=(0,u.ColorWrap)(f)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlockSwatches=void 0;var r=s(n(2)),i=s(n(64)),o=s(n(260)),a=n(97);function s(e){return e&&e.__esModule?e:{default:e}}var u=t.BlockSwatches=function(e){var t=e.colors,n=e.onClick,s=e.onSwatchHover,u=(0,i.default)({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return r.default.createElement("div",{style:u.swatches},(0,o.default)(t,(function(e){return r.default.createElement(a.Swatch,{key:e,color:e,style:u.swatch,onClick:n,onHover:s,focusStyle:{boxShadow:"0 0 4px "+e}})})),r.default.createElement("div",{style:u.clear}))};t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Circle=void 0;var r=f(n(2)),i=f(n(52)),o=f(n(64)),a=f(n(260)),s=f(n(168)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(778)),c=n(97),l=f(n(1501));function f(e){return e&&e.__esModule?e:{default:e}}var d=t.Circle=function(e){var t=e.width,n=e.onChange,i=e.onSwatchHover,u=e.colors,c=e.hex,f=e.circleSize,d=e.styles,p=void 0===d?{}:d,h=e.circleSpacing,v=e.className,g=void 0===v?"":v,m=(0,o.default)((0,s.default)({default:{card:{width:t,display:"flex",flexWrap:"wrap",marginRight:-h,marginBottom:-h}}},p)),y=function(e,t){return n({hex:e,source:"hex"},t)};return r.default.createElement("div",{style:m.card,className:"circle-picker "+g},(0,a.default)(u,(function(e){return r.default.createElement(l.default,{key:e,color:e,onClick:y,onSwatchHover:i,active:c===e.toLowerCase(),circleSize:f,circleSpacing:h})})))};d.propTypes={width:i.default.oneOfType([i.default.string,i.default.number]),circleSize:i.default.number,circleSpacing:i.default.number,styles:i.default.object},d.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[u.red[500],u.pink[500],u.purple[500],u.deepPurple[500],u.indigo[500],u.blue[500],u.lightBlue[500],u.cyan[500],u.teal[500],u.green[500],u.lightGreen[500],u.lime[500],u.yellow[500],u.amber[500],u.orange[500],u.deepOrange[500],u.brown[500],u.blueGrey[500]],styles:{}},t.default=(0,c.ColorWrap)(d)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CircleSwatch=void 0;var r=s(n(2)),i=n(64),o=s(i),a=n(97);function s(e){return e&&e.__esModule?e:{default:e}}var u=t.CircleSwatch=function(e){var t=e.color,n=e.onClick,i=e.onSwatchHover,s=e.hover,u=e.active,c=e.circleSize,l=e.circleSpacing,f=(0,o.default)({default:{swatch:{width:c,height:c,marginRight:l,marginBottom:l,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+c/2+"px "+t,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+t}}},{hover:s,active:u});return r.default.createElement("div",{style:f.swatch},r.default.createElement(a.Swatch,{style:f.Swatch,color:t,onClick:n,onHover:i,focusStyle:{boxShadow:f.Swatch.boxShadow+", 0 0 5px "+t}}))};u.defaultProps={circleSize:28,circleSpacing:14},t.default=(0,i.handleHover)(u)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Chrome=void 0;var r=f(n(2)),i=f(n(52)),o=f(n(64)),a=f(n(168)),s=n(97),u=f(n(1503)),c=f(n(1505)),l=f(n(1506));function f(e){return e&&e.__esModule?e:{default:e}}var d=t.Chrome=function(e){var t=e.width,n=e.onChange,i=e.disableAlpha,f=e.rgb,d=e.hsl,p=e.hsv,h=e.hex,v=e.renderers,g=e.styles,m=void 0===g?{}:g,y=e.className,b=void 0===y?"":y,x=e.defaultView,w=(0,o.default)((0,a.default)({default:{picker:{width:t,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+f.r+", "+f.g+", "+f.b+", "+f.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},m),{disableAlpha:i});return r.default.createElement("div",{style:w.picker,className:"chrome-picker "+b},r.default.createElement("div",{style:w.saturation},r.default.createElement(s.Saturation,{style:w.Saturation,hsl:d,hsv:p,pointer:l.default,onChange:n})),r.default.createElement("div",{style:w.body},r.default.createElement("div",{style:w.controls,className:"flexbox-fix"},r.default.createElement("div",{style:w.color},r.default.createElement("div",{style:w.swatch},r.default.createElement("div",{style:w.active}),r.default.createElement(s.Checkboard,{renderers:v}))),r.default.createElement("div",{style:w.toggles},r.default.createElement("div",{style:w.hue},r.default.createElement(s.Hue,{style:w.Hue,hsl:d,pointer:c.default,onChange:n})),r.default.createElement("div",{style:w.alpha},r.default.createElement(s.Alpha,{style:w.Alpha,rgb:f,hsl:d,pointer:c.default,renderers:v,onChange:n})))),r.default.createElement(u.default,{rgb:f,hsl:d,hex:h,view:x,onChange:n,disableAlpha:i})))};d.propTypes={width:i.default.oneOfType([i.default.string,i.default.number]),disableAlpha:i.default.bool,styles:i.default.object,defaultView:i.default.oneOf(["hex","rgb","hsl"])},d.defaultProps={width:225,disableAlpha:!1,styles:{}},t.default=(0,s.ColorWrap)(d)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChromeFields=void 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=c(n(2)),o=c(n(64)),a=c(n(191)),s=n(97),u=c(n(1504));function c(e){return e&&e.__esModule?e:{default:e}}var l=t.ChromeFields=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));return n.toggleViews=function(){"hex"===n.state.view?n.setState({view:"rgb"}):"rgb"===n.state.view?n.setState({view:"hsl"}):"hsl"===n.state.view&&(1===n.props.hsl.a?n.setState({view:"hex"}):n.setState({view:"rgb"}))},n.handleChange=function(e,t){e.hex?a.default.isValidHex(e.hex)&&n.props.onChange({hex:e.hex,source:"hex"},t):e.r||e.g||e.b?n.props.onChange({r:e.r||n.props.rgb.r,g:e.g||n.props.rgb.g,b:e.b||n.props.rgb.b,source:"rgb"},t):e.a?(e.a<0?e.a=0:e.a>1&&(e.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(100*e.a)/100,source:"rgb"},t)):(e.h||e.s||e.l)&&("string"==typeof e.s&&e.s.includes("%")&&(e.s=e.s.replace("%","")),"string"==typeof e.l&&e.l.includes("%")&&(e.l=e.l.replace("%","")),n.props.onChange({h:e.h||n.props.hsl.h,s:Number(e.s&&e.s||n.props.hsl.s),l:Number(e.l&&e.l||n.props.hsl.l),source:"hsl"},t))},n.showHighlight=function(e){e.currentTarget.style.background="#eee"},n.hideHighlight=function(e){e.currentTarget.style.background="transparent"},1!==e.hsl.a&&"hex"===e.view?n.state={view:"rgb"}:n.state={view:e.view},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),r(t,[{key:"render",value:function(){var e=this,t=(0,o.default)({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),n=void 0;return"hex"===this.state.view?n=i.default.createElement("div",{style:t.fields,className:"flexbox-fix"},i.default.createElement("div",{style:t.field},i.default.createElement(s.EditableInput,{style:{input:t.input,label:t.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):"rgb"===this.state.view?n=i.default.createElement("div",{style:t.fields,className:"flexbox-fix"},i.default.createElement("div",{style:t.field},i.default.createElement(s.EditableInput,{style:{input:t.input,label:t.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),i.default.createElement("div",{style:t.field},i.default.createElement(s.EditableInput,{style:{input:t.input,label:t.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),i.default.createElement("div",{style:t.field},i.default.createElement(s.EditableInput,{style:{input:t.input,label:t.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),i.default.createElement("div",{style:t.alpha},i.default.createElement(s.EditableInput,{style:{input:t.input,label:t.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(n=i.default.createElement("div",{style:t.fields,className:"flexbox-fix"},i.default.createElement("div",{style:t.field},i.default.createElement(s.EditableInput,{style:{input:t.input,label:t.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),i.default.createElement("div",{style:t.field},i.default.createElement(s.EditableInput,{style:{input:t.input,label:t.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),i.default.createElement("div",{style:t.field},i.default.createElement(s.EditableInput,{style:{input:t.input,label:t.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),i.default.createElement("div",{style:t.alpha},i.default.createElement(s.EditableInput,{style:{input:t.input,label:t.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),i.default.createElement("div",{style:t.wrap,className:"flexbox-fix"},n,i.default.createElement("div",{style:t.toggle},i.default.createElement("div",{style:t.icon,onClick:this.toggleViews,ref:function(t){return e.icon=t}},i.default.createElement(u.default,{style:t.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 1!==e.hsl.a&&"hex"===t.view?{view:"rgb"}:null}}]),t}(i.default.Component);l.defaultProps={view:"hex"},t.default=l},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=n(2),a=(r=o)&&r.__esModule?r:{default:r};t.default=function(e){var t=e.fill,n=void 0===t?"currentColor":t,r=e.width,o=void 0===r?24:r,s=e.height,u=void 0===s?24:s,c=e.style,l=void 0===c?{}:c,f=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,["fill","width","height","style"]);return a.default.createElement("svg",i({viewBox:"0 0 24 24",style:i({fill:n,width:o,height:u},l)},f),a.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChromePointer=void 0;var r=o(n(2)),i=o(n(64));function o(e){return e&&e.__esModule?e:{default:e}}var a=t.ChromePointer=function(){var e=(0,i.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return r.default.createElement("div",{style:e.picker})};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChromePointerCircle=void 0;var r=o(n(2)),i=o(n(64));function o(e){return e&&e.__esModule?e:{default:e}}var a=t.ChromePointerCircle=function(){var e=(0,i.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return r.default.createElement("div",{style:e.picker})};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Compact=void 0;var r=d(n(2)),i=d(n(52)),o=d(n(64)),a=d(n(260)),s=d(n(168)),u=d(n(191)),c=n(97),l=d(n(1508)),f=d(n(1509));function d(e){return e&&e.__esModule?e:{default:e}}var p=t.Compact=function(e){var t=e.onChange,n=e.onSwatchHover,i=e.colors,d=e.hex,p=e.rgb,h=e.styles,v=void 0===h?{}:h,g=e.className,m=void 0===g?"":g,y=(0,o.default)((0,s.default)({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},v)),b=function(e,n){e.hex?u.default.isValidHex(e.hex)&&t({hex:e.hex,source:"hex"},n):t(e,n)};return r.default.createElement(c.Raised,{style:y.Compact,styles:v},r.default.createElement("div",{style:y.compact,className:"compact-picker "+m},r.default.createElement("div",null,(0,a.default)(i,(function(e){return r.default.createElement(l.default,{key:e,color:e,active:e.toLowerCase()===d,onClick:b,onSwatchHover:n})})),r.default.createElement("div",{style:y.clear})),r.default.createElement(f.default,{hex:d,rgb:p,onChange:b})))};p.propTypes={colors:i.default.arrayOf(i.default.string),styles:i.default.object},p.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}},t.default=(0,c.ColorWrap)(p)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompactColor=void 0;var r=s(n(2)),i=s(n(64)),o=s(n(191)),a=n(97);function s(e){return e&&e.__esModule?e:{default:e}}var u=t.CompactColor=function(e){var t=e.color,n=e.onClick,s=void 0===n?function(){}:n,u=e.onSwatchHover,c=e.active,l=(0,i.default)({default:{color:{background:t,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:o.default.getContrastingColor(t),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:c,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return r.default.createElement(a.Swatch,{style:l.color,color:t,onClick:s,onHover:u,focusStyle:{boxShadow:"0 0 4px "+t}},r.default.createElement("div",{style:l.dot}))};t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompactFields=void 0;var r=a(n(2)),i=a(n(64)),o=n(97);function a(e){return e&&e.__esModule?e:{default:e}}var s=t.CompactFields=function(e){var t=e.hex,n=e.rgb,a=e.onChange,s=(0,i.default)({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:t},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),u=function(e,t){e.r||e.g||e.b?a({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},t):a({hex:e.hex,source:"hex"},t)};return r.default.createElement("div",{style:s.fields,className:"flexbox-fix"},r.default.createElement("div",{style:s.active}),r.default.createElement(o.EditableInput,{style:{wrap:s.HEXwrap,input:s.HEXinput,label:s.HEXlabel},label:"hex",value:t,onChange:u}),r.default.createElement(o.EditableInput,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"r",value:n.r,onChange:u}),r.default.createElement(o.EditableInput,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"g",value:n.g,onChange:u}),r.default.createElement(o.EditableInput,{style:{wrap:s.RGBwrap,input:s.RGBinput,label:s.RGBlabel},label:"b",value:n.b,onChange:u}))};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Github=void 0;var r=l(n(2)),i=l(n(52)),o=l(n(64)),a=l(n(260)),s=l(n(168)),u=n(97),c=l(n(1511));function l(e){return e&&e.__esModule?e:{default:e}}var f=t.Github=function(e){var t=e.width,n=e.colors,i=e.onChange,u=e.onSwatchHover,l=e.triangle,f=e.styles,d=void 0===f?{}:f,p=e.className,h=void 0===p?"":p,v=(0,o.default)((0,s.default)({default:{card:{width:t,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},d),{"hide-triangle":"hide"===l,"top-left-triangle":"top-left"===l,"top-right-triangle":"top-right"===l,"bottom-left-triangle":"bottom-left"===l,"bottom-right-triangle":"bottom-right"===l}),g=function(e,t){return i({hex:e,source:"hex"},t)};return r.default.createElement("div",{style:v.card,className:"github-picker "+h},r.default.createElement("div",{style:v.triangleShadow}),r.default.createElement("div",{style:v.triangle}),(0,a.default)(n,(function(e){return r.default.createElement(c.default,{color:e,key:e,onClick:g,onSwatchHover:u})})))};f.propTypes={width:i.default.oneOfType([i.default.string,i.default.number]),colors:i.default.arrayOf(i.default.string),triangle:i.default.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:i.default.object},f.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}},t.default=(0,u.ColorWrap)(f)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GithubSwatch=void 0;var r=s(n(2)),i=n(64),o=s(i),a=n(97);function s(e){return e&&e.__esModule?e:{default:e}}var u=t.GithubSwatch=function(e){var t=e.hover,n=e.color,i=e.onClick,s=e.onSwatchHover,u={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},c=(0,o.default)({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:u}},{hover:t});return r.default.createElement("div",{style:c.swatch},r.default.createElement(a.Swatch,{color:n,onClick:i,onHover:s,focusStyle:u}))};t.default=(0,i.handleHover)(u)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HuePicker=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=l(n(2)),o=l(n(52)),a=l(n(64)),s=l(n(168)),u=n(97),c=l(n(1513));function l(e){return e&&e.__esModule?e:{default:e}}var f=t.HuePicker=function(e){var t=e.width,n=e.height,o=e.onChange,c=e.hsl,l=e.direction,f=e.pointer,d=e.styles,p=void 0===d?{}:d,h=e.className,v=void 0===h?"":h,g=(0,a.default)((0,s.default)({default:{picker:{position:"relative",width:t,height:n},hue:{radius:"2px"}}},p));return i.default.createElement("div",{style:g.picker,className:"hue-picker "+v},i.default.createElement(u.Hue,r({},g.hue,{hsl:c,pointer:f,onChange:function(e){return o({a:1,h:e.h,l:.5,s:1})},direction:l})))};f.propTypes={styles:o.default.object},f.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:c.default,styles:{}},t.default=(0,u.ColorWrap)(f)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SliderPointer=void 0;var r=o(n(2)),i=o(n(64));function o(e){return e&&e.__esModule?e:{default:e}}var a=t.SliderPointer=function(e){var t=e.direction,n=(0,i.default)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return r.default.createElement("div",{style:n.picker})};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Material=void 0;var r=u(n(2)),i=u(n(64)),o=u(n(168)),a=u(n(191)),s=n(97);function u(e){return e&&e.__esModule?e:{default:e}}var c=t.Material=function(e){var t=e.onChange,n=e.hex,u=e.rgb,c=e.styles,l=void 0===c?{}:c,f=e.className,d=void 0===f?"":f,p=(0,i.default)((0,o.default)({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+n,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},l)),h=function(e,n){e.hex?a.default.isValidHex(e.hex)&&t({hex:e.hex,source:"hex"},n):(e.r||e.g||e.b)&&t({r:e.r||u.r,g:e.g||u.g,b:e.b||u.b,source:"rgb"},n)};return r.default.createElement(s.Raised,{styles:l},r.default.createElement("div",{style:p.material,className:"material-picker "+d},r.default.createElement(s.EditableInput,{style:{wrap:p.HEXwrap,input:p.HEXinput,label:p.HEXlabel},label:"hex",value:n,onChange:h}),r.default.createElement("div",{style:p.split,className:"flexbox-fix"},r.default.createElement("div",{style:p.third},r.default.createElement(s.EditableInput,{style:{wrap:p.RGBwrap,input:p.RGBinput,label:p.RGBlabel},label:"r",value:u.r,onChange:h})),r.default.createElement("div",{style:p.third},r.default.createElement(s.EditableInput,{style:{wrap:p.RGBwrap,input:p.RGBinput,label:p.RGBlabel},label:"g",value:u.g,onChange:h})),r.default.createElement("div",{style:p.third},r.default.createElement(s.EditableInput,{style:{wrap:p.RGBwrap,input:p.RGBinput,label:p.RGBlabel},label:"b",value:u.b,onChange:h})))))};t.default=(0,s.ColorWrap)(c)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Photoshop=void 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=h(n(2)),o=h(n(52)),a=h(n(64)),s=h(n(168)),u=n(97),c=h(n(1516)),l=h(n(1517)),f=h(n(1518)),d=h(n(1519)),p=h(n(1520));function h(e){return e&&e.__esModule?e:{default:e}}var v=t.Photoshop=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));return n.state={currentColor:e.hex},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),r(t,[{key:"render",value:function(){var e=this.props,t=e.styles,n=void 0===t?{}:t,r=e.className,o=void 0===r?"":r,h=(0,a.default)((0,s.default)({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},n));return i.default.createElement("div",{style:h.picker,className:"photoshop-picker "+o},i.default.createElement("div",{style:h.head},this.props.header),i.default.createElement("div",{style:h.body,className:"flexbox-fix"},i.default.createElement("div",{style:h.saturation},i.default.createElement(u.Saturation,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:l.default,onChange:this.props.onChange})),i.default.createElement("div",{style:h.hue},i.default.createElement(u.Hue,{direction:"vertical",hsl:this.props.hsl,pointer:f.default,onChange:this.props.onChange})),i.default.createElement("div",{style:h.controls},i.default.createElement("div",{style:h.top,className:"flexbox-fix"},i.default.createElement("div",{style:h.previews},i.default.createElement(p.default,{rgb:this.props.rgb,currentColor:this.state.currentColor})),i.default.createElement("div",{style:h.actions},i.default.createElement(d.default,{label:"OK",onClick:this.props.onAccept,active:!0}),i.default.createElement(d.default,{label:"Cancel",onClick:this.props.onCancel}),i.default.createElement(c.default,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(i.default.Component);v.propTypes={header:o.default.string,styles:o.default.object},v.defaultProps={header:"Color Picker",styles:{}},t.default=(0,u.ColorWrap)(v)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopPicker=void 0;var r=s(n(2)),i=s(n(64)),o=s(n(191)),a=n(97);function s(e){return e&&e.__esModule?e:{default:e}}var u=t.PhotoshopPicker=function(e){var t=e.onChange,n=e.rgb,s=e.hsv,u=e.hex,c=(0,i.default)({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),l=function(e,r){e["#"]?o.default.isValidHex(e["#"])&&t({hex:e["#"],source:"hex"},r):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},r):(e.h||e.s||e.v)&&t({h:e.h||s.h,s:e.s||s.s,v:e.v||s.v,source:"hsv"},r)};return r.default.createElement("div",{style:c.fields},r.default.createElement(a.EditableInput,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"h",value:Math.round(s.h),onChange:l}),r.default.createElement(a.EditableInput,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"s",value:Math.round(100*s.s),onChange:l}),r.default.createElement(a.EditableInput,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"v",value:Math.round(100*s.v),onChange:l}),r.default.createElement("div",{style:c.divider}),r.default.createElement(a.EditableInput,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"r",value:n.r,onChange:l}),r.default.createElement(a.EditableInput,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"g",value:n.g,onChange:l}),r.default.createElement(a.EditableInput,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"b",value:n.b,onChange:l}),r.default.createElement("div",{style:c.divider}),r.default.createElement(a.EditableInput,{style:{wrap:c.HEXwrap,input:c.HEXinput,label:c.HEXlabel},label:"#",value:u.replace("#",""),onChange:l}),r.default.createElement("div",{style:c.fieldSymbols},r.default.createElement("div",{style:c.symbol},"°"),r.default.createElement("div",{style:c.symbol},"%"),r.default.createElement("div",{style:c.symbol},"%")))};t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopPointerCircle=void 0;var r=o(n(2)),i=o(n(64));function o(e){return e&&e.__esModule?e:{default:e}}var a=t.PhotoshopPointerCircle=function(e){var t=e.hsl,n=(0,i.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":t.l>.5});return r.default.createElement("div",{style:n.picker})};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopPointerCircle=void 0;var r=o(n(2)),i=o(n(64));function o(e){return e&&e.__esModule?e:{default:e}}var a=t.PhotoshopPointerCircle=function(){var e=(0,i.default)({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return r.default.createElement("div",{style:e.pointer},r.default.createElement("div",{style:e.left},r.default.createElement("div",{style:e.leftInside})),r.default.createElement("div",{style:e.right},r.default.createElement("div",{style:e.rightInside})))};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopButton=void 0;var r=o(n(2)),i=o(n(64));function o(e){return e&&e.__esModule?e:{default:e}}var a=t.PhotoshopButton=function(e){var t=e.onClick,n=e.label,o=e.children,a=e.active,s=(0,i.default)({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:a});return r.default.createElement("div",{style:s.button,onClick:t},n||o)};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopPreviews=void 0;var r=o(n(2)),i=o(n(64));function o(e){return e&&e.__esModule?e:{default:e}}var a=t.PhotoshopPreviews=function(e){var t=e.rgb,n=e.currentColor,o=(0,i.default)({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+t.r+","+t.g+", "+t.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return r.default.createElement("div",null,r.default.createElement("div",{style:o.label},"new"),r.default.createElement("div",{style:o.swatches},r.default.createElement("div",{style:o.new}),r.default.createElement("div",{style:o.current})),r.default.createElement("div",{style:o.label},"current"))};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sketch=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=f(n(2)),o=f(n(52)),a=f(n(64)),s=f(n(168)),u=n(97),c=f(n(1522)),l=f(n(1523));function f(e){return e&&e.__esModule?e:{default:e}}var d=t.Sketch=function(e){var t=e.width,n=e.rgb,o=e.hex,f=e.hsv,d=e.hsl,p=e.onChange,h=e.onSwatchHover,v=e.disableAlpha,g=e.presetColors,m=e.renderers,y=e.styles,b=void 0===y?{}:y,x=e.className,w=void 0===x?"":x,_=(0,a.default)((0,s.default)({default:r({picker:{width:t,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+n.r+","+n.g+","+n.b+","+n.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},b),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},b),{disableAlpha:v});return i.default.createElement("div",{style:_.picker,className:"sketch-picker "+w},i.default.createElement("div",{style:_.saturation},i.default.createElement(u.Saturation,{style:_.Saturation,hsl:d,hsv:f,onChange:p})),i.default.createElement("div",{style:_.controls,className:"flexbox-fix"},i.default.createElement("div",{style:_.sliders},i.default.createElement("div",{style:_.hue},i.default.createElement(u.Hue,{style:_.Hue,hsl:d,onChange:p})),i.default.createElement("div",{style:_.alpha},i.default.createElement(u.Alpha,{style:_.Alpha,rgb:n,hsl:d,renderers:m,onChange:p}))),i.default.createElement("div",{style:_.color},i.default.createElement(u.Checkboard,null),i.default.createElement("div",{style:_.activeColor}))),i.default.createElement(c.default,{rgb:n,hsl:d,hex:o,onChange:p,disableAlpha:v}),i.default.createElement(l.default,{colors:g,onClick:p,onSwatchHover:h}))};d.propTypes={disableAlpha:o.default.bool,width:o.default.oneOfType([o.default.string,o.default.number]),styles:o.default.object},d.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]},t.default=(0,u.ColorWrap)(d)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SketchFields=void 0;var r=s(n(2)),i=s(n(64)),o=s(n(191)),a=n(97);function s(e){return e&&e.__esModule?e:{default:e}}var u=t.SketchFields=function(e){var t=e.onChange,n=e.rgb,s=e.hsl,u=e.hex,c=e.disableAlpha,l=(0,i.default)({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:c}),f=function(e,r){e.hex?o.default.isValidHex(e.hex)&&t({hex:e.hex,source:"hex"},r):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,a:n.a,source:"rgb"},r):e.a&&(e.a<0?e.a=0:e.a>100&&(e.a=100),e.a/=100,t({h:s.h,s:s.s,l:s.l,a:e.a,source:"rgb"},r))};return r.default.createElement("div",{style:l.fields,className:"flexbox-fix"},r.default.createElement("div",{style:l.double},r.default.createElement(a.EditableInput,{style:{input:l.input,label:l.label},label:"hex",value:u.replace("#",""),onChange:f})),r.default.createElement("div",{style:l.single},r.default.createElement(a.EditableInput,{style:{input:l.input,label:l.label},label:"r",value:n.r,onChange:f,dragLabel:"true",dragMax:"255"})),r.default.createElement("div",{style:l.single},r.default.createElement(a.EditableInput,{style:{input:l.input,label:l.label},label:"g",value:n.g,onChange:f,dragLabel:"true",dragMax:"255"})),r.default.createElement("div",{style:l.single},r.default.createElement(a.EditableInput,{style:{input:l.input,label:l.label},label:"b",value:n.b,onChange:f,dragLabel:"true",dragMax:"255"})),r.default.createElement("div",{style:l.alpha},r.default.createElement(a.EditableInput,{style:{input:l.input,label:l.label},label:"a",value:Math.round(100*n.a),onChange:f,dragLabel:"true",dragMax:"100"})))};t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SketchPresetColors=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=u(n(2)),o=u(n(52)),a=u(n(64)),s=n(97);function u(e){return e&&e.__esModule?e:{default:e}}var c=t.SketchPresetColors=function(e){var t=e.colors,n=e.onClick,o=void 0===n?function(){}:n,u=e.onSwatchHover,c=(0,a.default)({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!t||!t.length}),l=function(e,t){o({hex:e,source:"hex"},t)};return i.default.createElement("div",{style:c.colors,className:"flexbox-fix"},t.map((function(e){var t="string"==typeof e?{color:e}:e,n=""+t.color+(t.title||"");return i.default.createElement("div",{key:n,style:c.swatchWrap},i.default.createElement(s.Swatch,r({},t,{style:c.swatch,onClick:l,onHover:u,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+t.color}})))})))};c.propTypes={colors:o.default.arrayOf(o.default.oneOfType([o.default.string,o.default.shape({color:o.default.string,title:o.default.string})])).isRequired},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Slider=void 0;var r=l(n(2)),i=l(n(52)),o=l(n(64)),a=l(n(168)),s=n(97),u=l(n(1525)),c=l(n(1527));function l(e){return e&&e.__esModule?e:{default:e}}var f=t.Slider=function(e){var t=e.hsl,n=e.onChange,i=e.pointer,c=e.styles,l=void 0===c?{}:c,f=e.className,d=void 0===f?"":f,p=(0,o.default)((0,a.default)({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},l));return r.default.createElement("div",{style:p.wrap||{},className:"slider-picker "+d},r.default.createElement("div",{style:p.hue},r.default.createElement(s.Hue,{style:p.Hue,hsl:t,pointer:i,onChange:n})),r.default.createElement("div",{style:p.swatches},r.default.createElement(u.default,{hsl:t,onClick:n})))};f.propTypes={styles:i.default.object},f.defaultProps={pointer:c.default,styles:{}},t.default=(0,s.ColorWrap)(f)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SliderSwatches=void 0;var r=a(n(2)),i=a(n(64)),o=a(n(1526));function a(e){return e&&e.__esModule?e:{default:e}}var s=t.SliderSwatches=function(e){var t=e.onClick,n=e.hsl,a=(0,i.default)({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}});return r.default.createElement("div",{style:a.swatches},r.default.createElement("div",{style:a.swatch},r.default.createElement(o.default,{hsl:n,offset:".80",active:Math.abs(n.l-.8)<.1&&Math.abs(n.s-.5)<.1,onClick:t,first:!0})),r.default.createElement("div",{style:a.swatch},r.default.createElement(o.default,{hsl:n,offset:".65",active:Math.abs(n.l-.65)<.1&&Math.abs(n.s-.5)<.1,onClick:t})),r.default.createElement("div",{style:a.swatch},r.default.createElement(o.default,{hsl:n,offset:".50",active:Math.abs(n.l-.5)<.1&&Math.abs(n.s-.5)<.1,onClick:t})),r.default.createElement("div",{style:a.swatch},r.default.createElement(o.default,{hsl:n,offset:".35",active:Math.abs(n.l-.35)<.1&&Math.abs(n.s-.5)<.1,onClick:t})),r.default.createElement("div",{style:a.swatch},r.default.createElement(o.default,{hsl:n,offset:".20",active:Math.abs(n.l-.2)<.1&&Math.abs(n.s-.5)<.1,onClick:t,last:!0})),r.default.createElement("div",{style:a.clear}))};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SliderSwatch=void 0;var r=o(n(2)),i=o(n(64));function o(e){return e&&e.__esModule?e:{default:e}}var a=t.SliderSwatch=function(e){var t=e.hsl,n=e.offset,o=e.onClick,a=void 0===o?function(){}:o,s=e.active,u=e.first,c=e.last,l=(0,i.default)({default:{swatch:{height:"12px",background:"hsl("+t.h+", 50%, "+100*n+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:s,first:u,last:c});return r.default.createElement("div",{style:l.swatch,onClick:function(e){return a({h:t.h,s:.5,l:n,source:"hsl"},e)}})};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SliderPointer=void 0;var r=o(n(2)),i=o(n(64));function o(e){return e&&e.__esModule?e:{default:e}}var a=t.SliderPointer=function(){var e=(0,i.default)({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return r.default.createElement("div",{style:e.picker})};t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Swatches=void 0;var r=d(n(2)),i=d(n(52)),o=d(n(64)),a=d(n(260)),s=d(n(168)),u=d(n(191)),c=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(778)),l=n(97),f=d(n(1529));function d(e){return e&&e.__esModule?e:{default:e}}var p=t.Swatches=function(e){var t=e.width,n=e.height,i=e.onChange,c=e.onSwatchHover,d=e.colors,p=e.hex,h=e.styles,v=void 0===h?{}:h,g=e.className,m=void 0===g?"":g,y=(0,o.default)((0,s.default)({default:{picker:{width:t,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},v)),b=function(e,t){u.default.isValidHex(e)&&i({hex:e,source:"hex"},t)};return r.default.createElement("div",{style:y.picker,className:"swatches-picker "+m},r.default.createElement(l.Raised,null,r.default.createElement("div",{style:y.overflow},r.default.createElement("div",{style:y.body},(0,a.default)(d,(function(e){return r.default.createElement(f.default,{key:e.toString(),group:e,active:p,onClick:b,onSwatchHover:c})})),r.default.createElement("div",{style:y.clear})))))};p.propTypes={width:i.default.oneOfType([i.default.string,i.default.number]),height:i.default.oneOfType([i.default.string,i.default.number]),colors:i.default.arrayOf(i.default.arrayOf(i.default.string)),styles:i.default.object},p.defaultProps={width:320,height:240,colors:[[c.red[900],c.red[700],c.red[500],c.red[300],c.red[100]],[c.pink[900],c.pink[700],c.pink[500],c.pink[300],c.pink[100]],[c.purple[900],c.purple[700],c.purple[500],c.purple[300],c.purple[100]],[c.deepPurple[900],c.deepPurple[700],c.deepPurple[500],c.deepPurple[300],c.deepPurple[100]],[c.indigo[900],c.indigo[700],c.indigo[500],c.indigo[300],c.indigo[100]],[c.blue[900],c.blue[700],c.blue[500],c.blue[300],c.blue[100]],[c.lightBlue[900],c.lightBlue[700],c.lightBlue[500],c.lightBlue[300],c.lightBlue[100]],[c.cyan[900],c.cyan[700],c.cyan[500],c.cyan[300],c.cyan[100]],[c.teal[900],c.teal[700],c.teal[500],c.teal[300],c.teal[100]],["#194D33",c.green[700],c.green[500],c.green[300],c.green[100]],[c.lightGreen[900],c.lightGreen[700],c.lightGreen[500],c.lightGreen[300],c.lightGreen[100]],[c.lime[900],c.lime[700],c.lime[500],c.lime[300],c.lime[100]],[c.yellow[900],c.yellow[700],c.yellow[500],c.yellow[300],c.yellow[100]],[c.amber[900],c.amber[700],c.amber[500],c.amber[300],c.amber[100]],[c.orange[900],c.orange[700],c.orange[500],c.orange[300],c.orange[100]],[c.deepOrange[900],c.deepOrange[700],c.deepOrange[500],c.deepOrange[300],c.deepOrange[100]],[c.brown[900],c.brown[700],c.brown[500],c.brown[300],c.brown[100]],[c.blueGrey[900],c.blueGrey[700],c.blueGrey[500],c.blueGrey[300],c.blueGrey[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}},t.default=(0,l.ColorWrap)(p)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SwatchesGroup=void 0;var r=s(n(2)),i=s(n(64)),o=s(n(260)),a=s(n(1530));function s(e){return e&&e.__esModule?e:{default:e}}var u=t.SwatchesGroup=function(e){var t=e.onClick,n=e.onSwatchHover,s=e.group,u=e.active,c=(0,i.default)({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return r.default.createElement("div",{style:c.group},(0,o.default)(s,(function(e,i){return r.default.createElement(a.default,{key:e,color:e,active:e.toLowerCase()===u,first:0===i,last:i===s.length-1,onClick:t,onSwatchHover:n})})))};t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SwatchesColor=void 0;var r=u(n(2)),i=u(n(64)),o=u(n(191)),a=n(97),s=u(n(1531));function u(e){return e&&e.__esModule?e:{default:e}}var c=t.SwatchesColor=function(e){var t=e.color,n=e.onClick,u=void 0===n?function(){}:n,c=e.onSwatchHover,l=e.first,f=e.last,d=e.active,p=(0,i.default)({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:t,marginBottom:"1px"},check:{color:o.default.getContrastingColor(t),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:l,last:f,active:d,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return r.default.createElement(a.Swatch,{color:t,style:p.color,onClick:u,onHover:c,focusStyle:{boxShadow:"0 0 4px "+t}},r.default.createElement("div",{style:p.check},r.default.createElement(s.default,null)))};t.default=c},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=n(2),a=(r=o)&&r.__esModule?r:{default:r};t.default=function(e){var t=e.fill,n=void 0===t?"currentColor":t,r=e.width,o=void 0===r?24:r,s=e.height,u=void 0===s?24:s,c=e.style,l=void 0===c?{}:c,f=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,["fill","width","height","style"]);return a.default.createElement("svg",i({viewBox:"0 0 24 24",style:i({fill:n,width:o,height:u},l)},f),a.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Twitter=void 0;var r=l(n(2)),i=l(n(52)),o=l(n(64)),a=l(n(260)),s=l(n(168)),u=l(n(191)),c=n(97);function l(e){return e&&e.__esModule?e:{default:e}}var f=t.Twitter=function(e){var t=e.onChange,n=e.onSwatchHover,i=e.hex,l=e.colors,f=e.width,d=e.triangle,p=e.styles,h=void 0===p?{}:p,v=e.className,g=void 0===v?"":v,m=(0,o.default)((0,s.default)({default:{card:{width:f,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},h),{"hide-triangle":"hide"===d,"top-left-triangle":"top-left"===d,"top-right-triangle":"top-right"===d}),y=function(e,n){u.default.isValidHex(e)&&t({hex:e,source:"hex"},n)};return r.default.createElement("div",{style:m.card,className:"twitter-picker "+g},r.default.createElement("div",{style:m.triangleShadow}),r.default.createElement("div",{style:m.triangle}),r.default.createElement("div",{style:m.body},(0,a.default)(l,(function(e,t){return r.default.createElement(c.Swatch,{key:t,color:e,hex:e,style:m.swatch,onClick:y,onHover:n,focusStyle:{boxShadow:"0 0 4px "+e}})})),r.default.createElement("div",{style:m.hash},"#"),r.default.createElement(c.EditableInput,{label:null,style:{input:m.input},value:i.replace("#",""),onChange:y}),r.default.createElement("div",{style:m.clear})))};f.propTypes={width:i.default.oneOfType([i.default.string,i.default.number]),triangle:i.default.oneOf(["hide","top-left","top-right"]),colors:i.default.arrayOf(i.default.string),styles:i.default.object},f.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}},t.default=(0,c.ColorWrap)(f)},,,,,,,,,,,function(e,t,n){},,,,function(e,t,n){"use strict";n.r(t);var r=n(16),i=n(6),o=n(2),a=n(17),s=n(158),u=n(15),c=n(20),l=n(18),f=n(138),d=n(152);function p(e){return Object(f.a)("MuiListSubheader",e)}var h=Object(d.a)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]),v=n(5),g=["className","color","component","disableGutters","disableSticky","inset"],m=Object(u.a)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,"default"!==n.color&&t["color".concat(Object(l.a)(n.color))],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})((function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(t.vars||t).palette.text.secondary,fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(14)},"primary"===n.color&&{color:(t.vars||t).palette.primary.main},"inherit"===n.color&&{color:"inherit"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.inset&&{paddingLeft:72},!n.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(t.vars||t).palette.background.paper})})),y=o.forwardRef((function(e,t){var n=Object(c.a)({props:e,name:"MuiListSubheader"}),o=n.className,u=n.color,f=void 0===u?"default":u,d=n.component,h=void 0===d?"li":d,y=n.disableGutters,b=void 0!==y&&y,x=n.disableSticky,w=void 0!==x&&x,_=n.inset,S=void 0!==_&&_,O=Object(r.a)(n,g),k=Object(i.a)({},n,{color:f,component:h,disableGutters:b,disableSticky:w,inset:S}),E=function(e){var t=e.classes,n=e.color,r=e.disableGutters,i=e.inset,o=e.disableSticky,a={root:["root","default"!==n&&"color".concat(Object(l.a)(n)),!r&&"gutters",i&&"inset",!o&&"sticky"]};return Object(s.a)(a,p,t)}(k);return Object(v.jsx)(m,Object(i.a)({as:h,className:Object(a.default)(E.root,o),ref:t,ownerState:k},O))}));n.d(t,"default",(function(){return y})),n.d(t,"listSubheaderClasses",(function(){return h})),n.d(t,"getListSubheaderUtilityClass",(function(){return p}))},function(e,t,n){"use strict";var r=n(79),i=n(99),o=n.n(i).a.unstable_batchedUpdates;r.a.setBatchNotifyFunction(o)},function(e,t,n){"use strict";var r=n(235),i=console;i&&Object(r.b)(i)},function(e,t,n){"use strict";var r=n(6),i=n(16),o=n(2),a=n(17),s=n(158),u=n(15),c=n(20),l=n(193),f=n(133),d=n(155),p=n(62),h=n(1641),v=n(1561),g=n(492),m=n(138),y=n(152);function b(e){return Object(m.a)("MuiPopover",e)}Object(y.a)("MuiPopover",["root","paper"]);var x=n(5),w=["onEntering"],_=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function S(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function O(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function k(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function E(e){return"function"==typeof e?e():e}var j=Object(u.a)(v.a,{name:"MuiPopover",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),T=Object(u.a)(g.a,{name:"MuiPopover",slot:"Paper",overridesResolver:function(e,t){return t.paper}})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),C=o.forwardRef((function(e,t){var n=Object(c.a)({props:e,name:"MuiPopover"}),u=n.action,v=n.anchorEl,g=n.anchorOrigin,m=void 0===g?{vertical:"top",horizontal:"left"}:g,y=n.anchorPosition,C=n.anchorReference,A=void 0===C?"anchorEl":C,P=n.children,M=n.className,I=n.container,R=n.elevation,D=void 0===R?8:R,L=n.marginThreshold,N=void 0===L?16:L,F=n.open,B=n.PaperProps,U=void 0===B?{}:B,z=n.transformOrigin,V=void 0===z?{vertical:"top",horizontal:"left"}:z,H=n.TransitionComponent,W=void 0===H?h.a:H,q=n.transitionDuration,G=void 0===q?"auto":q,Y=n.TransitionProps,K=(void 0===Y?{}:Y).onEntering,$=Object(i.a)(n.TransitionProps,w),X=Object(i.a)(n,_),Q=o.useRef(),Z=Object(p.a)(Q,U.ref),J=Object(r.a)({},n,{anchorOrigin:m,anchorReference:A,elevation:D,marginThreshold:N,PaperProps:U,transformOrigin:V,TransitionComponent:W,transitionDuration:G,TransitionProps:$}),ee=function(e){var t=e.classes;return Object(s.a)({root:["root"],paper:["paper"]},b,t)}(J),te=o.useCallback((function(){if("anchorPosition"===A)return y;var e=E(v),t=(e&&1===e.nodeType?e:Object(f.a)(Q.current).body).getBoundingClientRect();return{top:t.top+S(t,m.vertical),left:t.left+O(t,m.horizontal)}}),[v,m.horizontal,m.vertical,y,A]),ne=o.useCallback((function(e){return{vertical:S(e,V.vertical),horizontal:O(e,V.horizontal)}}),[V.horizontal,V.vertical]),re=o.useCallback((function(e){var t={width:e.offsetWidth,height:e.offsetHeight},n=ne(t);if("none"===A)return{top:null,left:null,transformOrigin:k(n)};var r=te(),i=r.top-n.vertical,o=r.left-n.horizontal,a=i+t.height,s=o+t.width,u=Object(d.a)(E(v)),c=u.innerHeight-N,l=u.innerWidth-N;if(i<N){var f=i-N;i-=f,n.vertical+=f}else if(a>c){var p=a-c;i-=p,n.vertical+=p}if(o<N){var h=o-N;o-=h,n.horizontal+=h}else if(s>l){var g=s-l;o-=g,n.horizontal+=g}return{top:"".concat(Math.round(i),"px"),left:"".concat(Math.round(o),"px"),transformOrigin:k(n)}}),[v,A,te,ne,N]),ie=o.useCallback((function(){var e=Q.current;if(e){var t=re(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[re]);o.useEffect((function(){F&&ie()})),o.useImperativeHandle(u,(function(){return F?{updatePosition:function(){ie()}}:null}),[F,ie]),o.useEffect((function(){if(F){var e=Object(l.a)((function(){ie()})),t=Object(d.a)(v);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}}),[v,F,ie]);var oe=G;"auto"!==G||W.muiSupportAuto||(oe=void 0);var ae=I||(v?Object(f.a)(E(v)).body:void 0);return(Object(x.jsx)(j,Object(r.a)({BackdropProps:{invisible:!0},className:Object(a.default)(ee.root,M),container:ae,open:F,ref:t,ownerState:J},X,{children:Object(x.jsx)(W,Object(r.a)({appear:!0,in:F,onEntering:function(e,t){K&&K(e,t),ie()},timeout:oe},$,{children:Object(x.jsx)(T,Object(r.a)({elevation:D},U,{ref:Z,className:Object(a.default)(ee.paper,U.className),children:P}))}))})))}));t.a=C},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(17),s=n(158),u=n(0),c=n(18),l=n(20),f=n(15),d=n(138),p=n(152);function h(e){return Object(d.a)("MuiCircularProgress",e)}Object(p.a)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var v,g,m,y,b=n(5);function x(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var w,_,S,O,k=["className","color","disableShrink","size","style","thickness","value","variant"],E=function(e){return e},j=Object(u.d)(w||(w=E(v||(v=x(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"]))))),T=Object(u.d)(_||(_=E(g||(g=x(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"]))))),C=Object(f.a)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],t["color".concat(Object(c.a)(n.color))]]}})((function(e){var t=e.ownerState,n=e.theme;return Object(i.a)({display:"inline-block"},"determinate"===t.variant&&{transition:n.transitions.create("transform")},"inherit"!==t.color&&{color:(n.vars||n).palette[t.color].main})}),(function(e){return"indeterminate"===e.ownerState.variant&&Object(u.b)(S||(S=E(m||(m=x(["\n animation: "," 1.4s linear infinite;\n "])))),j)})),A=Object(f.a)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:function(e,t){return t.svg}})({display:"block"}),P=Object(f.a)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:function(e,t){var n=e.ownerState;return[t.circle,t["circle".concat(Object(c.a)(n.variant))],n.disableShrink&&t.circleDisableShrink]}})((function(e){var t=e.ownerState,n=e.theme;return Object(i.a)({stroke:"currentColor"},"determinate"===t.variant&&{transition:n.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(function(e){var t=e.ownerState;return"indeterminate"===t.variant&&!t.disableShrink&&Object(u.b)(O||(O=E(y||(y=x(["\n animation: "," 1.4s ease-in-out infinite;\n "])))),T)})),M=o.forwardRef((function(e,t){var n=Object(l.a)({props:e,name:"MuiCircularProgress"}),o=n.className,u=n.color,f=void 0===u?"primary":u,d=n.disableShrink,p=void 0!==d&&d,v=n.size,g=void 0===v?40:v,m=n.style,y=n.thickness,x=void 0===y?3.6:y,w=n.value,_=void 0===w?0:w,S=n.variant,O=void 0===S?"indeterminate":S,E=Object(r.a)(n,k),j=Object(i.a)({},n,{color:f,disableShrink:p,size:g,thickness:x,value:_,variant:O}),T=function(e){var t=e.classes,n=e.variant,r=e.color,i=e.disableShrink,o={root:["root",n,"color".concat(Object(c.a)(r))],svg:["svg"],circle:["circle","circle".concat(Object(c.a)(n)),i&&"circleDisableShrink"]};return Object(s.a)(o,h,t)}(j),M={},I={},R={};if("determinate"===O){var D=2*Math.PI*((44-x)/2);M.strokeDasharray=D.toFixed(3),R["aria-valuenow"]=Math.round(_),M.strokeDashoffset="".concat(((100-_)/100*D).toFixed(3),"px"),I.transform="rotate(-90deg)"}return(Object(b.jsx)(C,Object(i.a)({className:Object(a.default)(T.root,o),style:Object(i.a)({width:g,height:g},I,m),ownerState:j,ref:t,role:"progressbar"},R,E,{children:Object(b.jsx)(A,{className:T.svg,ownerState:j,viewBox:"".concat(22," ").concat(22," ").concat(44," ").concat(44),children:Object(b.jsx)(P,{className:T.circle,style:M,ownerState:j,cx:44,cy:44,r:(44-x)/2,fill:"none",strokeWidth:x})})})))}));t.a=M},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(17),s=n(158),u=n(177),c=n(18),l=n(364),f=n(20),d=n(15),p=n(138),h=n(152);function v(e){return Object(p.a)("MuiSwitch",e)}var g=Object(h.a)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),m=n(5);function y(e){return(y="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 b(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==y(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===y(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=["className","color","edge","size","sx"],w=Object(d.a)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.edge&&t["edge".concat(Object(c.a)(n.edge))],t["size".concat(Object(c.a)(n.size))]]}})((function(e){var t=e.ownerState;return Object(i.a)({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},"start"===t.edge&&{marginLeft:-8},"end"===t.edge&&{marginRight:-8},"small"===t.size&&b(b({width:40,height:24,padding:7},"& .".concat(g.thumb),{width:16,height:16}),"& .".concat(g.switchBase),b({padding:4},"&.".concat(g.checked),{transform:"translateX(16px)"})))})),_=Object(d.a)(l.a,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:function(e,t){var n=e.ownerState;return[t.switchBase,b({},"& .".concat(g.input),t.input),"default"!==n.color&&t["color".concat(Object(c.a)(n.color))]]}})((function(e){var t=e.theme;return b(b(b(b(b({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:"".concat("light"===t.palette.mode?t.palette.common.white:t.palette.grey[300]),transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest})},"&.".concat(g.checked),{transform:"translateX(20px)"}),"&.".concat(g.disabled),{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:"".concat("light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[600])}),"&.".concat(g.checked," + .").concat(g.track),{opacity:.5}),"&.".concat(g.disabled," + .").concat(g.track),{opacity:t.vars?t.vars.opacity.switchTrackDisabled:"".concat("light"===t.palette.mode?.12:.2)}),"& .".concat(g.input),{left:"-100%",width:"300%"})}),(function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):Object(u.a)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==n.color&&b(b({},"&.".concat(g.checked),b({color:(t.vars||t).palette[n.color].main,"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):Object(u.a)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&.".concat(g.disabled),{color:t.vars?t.vars.palette.Switch["".concat(n.color,"DisabledColor")]:"".concat("light"===t.palette.mode?Object(u.j)(t.palette[n.color].main,.62):Object(u.c)(t.palette[n.color].main,.55))})),"&.".concat(g.checked," + .").concat(g.track),{backgroundColor:(t.vars||t).palette[n.color].main}))})),S=Object(d.a)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:function(e,t){return t.track}})((function(e){var t=e.theme;return{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:"".concat("light"===t.palette.mode?t.palette.common.black:t.palette.common.white),opacity:t.vars?t.vars.opacity.switchTrack:"".concat("light"===t.palette.mode?.38:.3)}})),O=Object(d.a)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:function(e,t){return t.thumb}})((function(e){var t=e.theme;return{boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}})),k=o.forwardRef((function(e,t){var n=Object(f.a)({props:e,name:"MuiSwitch"}),o=n.className,u=n.color,l=void 0===u?"primary":u,d=n.edge,p=void 0!==d&&d,h=n.size,g=void 0===h?"medium":h,y=n.sx,b=Object(r.a)(n,x),k=Object(i.a)({},n,{color:l,edge:p,size:g}),E=function(e){var t=e.classes,n=e.edge,r=e.size,o=e.color,a=e.checked,u=e.disabled,l={root:["root",n&&"edge".concat(Object(c.a)(n)),"size".concat(Object(c.a)(r))],switchBase:["switchBase","color".concat(Object(c.a)(o)),a&&"checked",u&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},f=Object(s.a)(l,v,t);return Object(i.a)({},t,f)}(k),j=Object(m.jsx)(O,{className:E.thumb,ownerState:k});return Object(m.jsxs)(w,{className:Object(a.default)(E.root,o),sx:y,ownerState:k,children:[Object(m.jsx)(_,Object(i.a)({type:"checkbox",icon:j,checkedIcon:j,ref:t,ownerState:k},b,{classes:Object(i.a)({},E,{root:E.switchBase})})),Object(m.jsx)(S,{className:E.track,ownerState:k})]})}));t.a=k},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(2),i=n(484);function o(){return r.useContext(i.a)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return u}));var r=n(217),i=n(334),o=n(84);function a(e){return(a="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 s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===a(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.c,t=Object.keys(e).reduce((function(t,n){return e[n].filterProps.forEach((function(r){t[r]=e[n]})),t}),{});function n(e,n,r){var i=s(s({},e,n),"theme",r),o=t[e];return o?o(i):s({},e,n)}return function e(i){var u=i||{},c=u.sx,l=u.theme,f=void 0===l?{}:l;if(!c)return null;function d(i){var u=i;if("function"==typeof i)u=i(f);else if("object"!==a(i))return i;if(!u)return null;var c=Object(o.a)(f.breakpoints),l=Object.keys(c),d=c;return Object.keys(u).forEach((function(i){var c,l,p=(c=u[i],l=f,"function"==typeof c?c(l):c);if(null!=p)if("object"===a(p))if(t[i])d=Object(r.a)(d,n(i,p,f));else{var h=Object(o.c)({theme:f},p,(function(e){return s({},i,e)}));!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.reduce((function(e,t){return e.concat(Object.keys(t))}),[]),i=new Set(r);return t.every((function(e){return i.size===Object.keys(e).length}))}(h,p)?d=Object(r.a)(d,h):d[i]=e({sx:p,theme:f})}else d=Object(r.a)(d,n(i,p,f))})),Object(o.e)(l,d)}return Array.isArray(c)?c.map(d):d(c)}}var c=u();c.filterProps=["sx"],t.a=c},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n(2);var r=n(0),i=n(5);function o(e){var t=e.styles,n=e.defaultTheme,o=void 0===n?{}:n,a="function"==typeof t?function(e){return t(null==(n=e)||0===Object.keys(n).length?o:e);var n}:t;return Object(i.jsx)(r.a,{styles:a})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(55),i=n(102),o=n(238),a=n(334);function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var c=["sx"],l=function(e){var t={systemProps:{},otherProps:{}};return Object.keys(e).forEach((function(n){a.b[n]?t.systemProps[n]=e[n]:t.otherProps[n]=e[n]})),t};function f(e){var t,n=e.sx,a=Object(i.a)(e,c),u=l(a),f=u.systemProps,d=u.otherProps;return t=Array.isArray(n)?[f].concat(s(n)):"function"==typeof n?function(){var e=n.apply(void 0,arguments);return Object(o.b)(e)?Object(r.a)({},f,e):f}:Object(r.a)({},f,n),Object(r.a)({},d,{sx:t})}},function(e,t,n){"use strict";var r=n(2),i=n(99),o=n(289),a=n(244),s=n(315);function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var l=r.forwardRef((function(e,t){var n=e.children,c=e.container,l=e.disablePortal,f=void 0!==l&&l,d=u(r.useState(null),2),p=d[0],h=d[1],v=Object(o.a)(r.isValidElement(n)?n.ref:null,t);return Object(a.a)((function(){f||h(function(e){return"function"==typeof e?e():e}(c)||document.body)}),[c,f]),Object(a.a)((function(){if(p&&!f)return Object(s.a)(t,p),function(){Object(s.a)(t,null)}}),[t,p,f]),f?r.isValidElement(n)?r.cloneElement(n,{ref:v}):n:p?i.createPortal(n,p):p}));t.a=l},function(e,t,n){"use strict";var r=n(2),i=n(289),o=n(151),a=n(5),s=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function u(e){var t=[],n=[];return Array.from(e.querySelectorAll(s)).forEach((function(e,r){var i=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==i&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;var t=function(t){return e.ownerDocument.querySelector('input[type="radio"]'.concat(t))},n=t('[name="'.concat(e.name,'"]:checked'));return n||(n=t('[name="'.concat(e.name,'"]'))),n!==e}(e))}(e)&&(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))})),n.sort((function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex})).map((function(e){return e.node})).concat(t)}function c(){return!0}t.a=function(e){var t=e.children,n=e.disableAutoFocus,s=void 0!==n&&n,l=e.disableEnforceFocus,f=void 0!==l&&l,d=e.disableRestoreFocus,p=void 0!==d&&d,h=e.getTabbable,v=void 0===h?u:h,g=e.isEnabled,m=void 0===g?c:g,y=e.open,b=r.useRef(),x=r.useRef(null),w=r.useRef(null),_=r.useRef(null),S=r.useRef(null),O=r.useRef(!1),k=r.useRef(null),E=Object(i.a)(t.ref,k),j=r.useRef(null);r.useEffect((function(){y&&k.current&&(O.current=!s)}),[s,y]),r.useEffect((function(){if(y&&k.current){var e=Object(o.a)(k.current);return k.current.contains(e.activeElement)||(k.current.hasAttribute("tabIndex")||k.current.setAttribute("tabIndex",-1),O.current&&k.current.focus()),function(){p||(_.current&&_.current.focus&&(b.current=!0,_.current.focus()),_.current=null)}}}),[y]),r.useEffect((function(){if(y&&k.current){var e=Object(o.a)(k.current),t=function(t){var n=k.current;if(null!==n)if(e.hasFocus()&&!f&&m()&&!b.current){if(!n.contains(e.activeElement)){if(t&&S.current!==t.target||e.activeElement!==S.current)S.current=null;else if(null!==S.current)return;if(!O.current)return;var r=[];if(e.activeElement!==x.current&&e.activeElement!==w.current||(r=v(k.current)),r.length>0){var i,o,a=Boolean((null==(i=j.current)?void 0:i.shiftKey)&&"Tab"===(null==(o=j.current)?void 0:o.key)),s=r[0],u=r[r.length-1];a?u.focus():s.focus()}else n.focus()}}else b.current=!1},n=function(t){j.current=t,!f&&m()&&"Tab"===t.key&&e.activeElement===k.current&&t.shiftKey&&(b.current=!0,w.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);var r=setInterval((function(){"BODY"===e.activeElement.tagName&&t()}),50);return function(){clearInterval(r),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}}),[s,f,p,m,y,v]);var T=function(e){null===_.current&&(_.current=e.relatedTarget),O.current=!0};return Object(a.jsxs)(r.Fragment,{children:[Object(a.jsx)("div",{tabIndex:y?0:-1,onFocus:T,ref:x,"data-testid":"sentinelStart"}),r.cloneElement(t,{ref:E,onFocus:function(e){null===_.current&&(_.current=e.relatedTarget),O.current=!0,S.current=e.target;var n=t.props.onFocus;n&&n(e)}}),Object(a.jsx)("div",{tabIndex:y?0:-1,onFocus:T,ref:w,"data-testid":"sentinelEnd"})]})}},function(e,t,n){"use strict";var r=n(6),i=n(16),o=n(2),a=n(630),s=n(76),u=n(137),c=n(62),l=n(5),f=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],d={entering:{opacity:1},entered:{opacity:1}},p=o.forwardRef((function(e,t){var n=Object(s.a)(),p={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},h=e.addEndListener,v=e.appear,g=void 0===v||v,m=e.children,y=e.easing,b=e.in,x=e.onEnter,w=e.onEntered,_=e.onEntering,S=e.onExit,O=e.onExited,k=e.onExiting,E=e.style,j=e.timeout,T=void 0===j?p:j,C=e.TransitionComponent,A=void 0===C?a.a:C,P=Object(i.a)(e,f),M=o.useRef(null),I=Object(c.a)(m.ref,t),R=Object(c.a)(M,I),D=function(e){return function(t){if(e){var n=M.current;void 0===t?e(n):e(n,t)}}},L=D(_),N=D((function(e,t){Object(u.b)(e);var r=Object(u.a)({style:E,timeout:T,easing:y},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),x&&x(e,t)})),F=D(w),B=D(k),U=D((function(e){var t=Object(u.a)({style:E,timeout:T,easing:y},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),S&&S(e)})),z=D(O);return Object(l.jsx)(A,Object(r.a)({appear:g,in:b,nodeRef:M,onEnter:N,onEntered:F,onEntering:L,onExit:U,onExited:z,onExiting:B,addEndListener:function(e){h&&h(M.current,e)},timeout:T},P,{children:function(e,t){return o.cloneElement(m,Object(r.a)({style:Object(r.a)({opacity:0,visibility:"exited"!==e||b?void 0:"hidden"},d[e],E,m.props.style),ref:R},t))}}))}));t.a=p},function(e,t,n){"use strict";var r=n(6),i=n(16),o=n(2),a=n(99),s=n(289),u=n(288),c=n(487),l=n(244),f=n(5);function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var h=["onChange","maxRows","minRows","style","value"];function v(e,t){return parseInt(e[t],10)||0}var g={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function m(e){return null==e||0===Object.keys(e).length}var y=o.forwardRef((function(e,t){var n=e.onChange,p=e.maxRows,y=e.minRows,b=void 0===y?1:y,x=e.style,w=e.value,_=Object(i.a)(e,h),S=o.useRef(null!=w).current,O=o.useRef(null),k=Object(s.a)(t,O),E=o.useRef(null),j=o.useRef(0),T=d(o.useState({}),2),C=T[0],A=T[1],P=o.useCallback((function(){var t=O.current,n=Object(u.a)(t).getComputedStyle(t);if("0px"===n.width)return{};var r=E.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var i=n["box-sizing"],o=v(n,"padding-bottom")+v(n,"padding-top"),a=v(n,"border-bottom-width")+v(n,"border-top-width"),s=r.scrollHeight;r.value="x";var c=r.scrollHeight,l=s;return b&&(l=Math.max(Number(b)*c,l)),p&&(l=Math.min(Number(p)*c,l)),{outerHeightStyle:(l=Math.max(l,c))+("border-box"===i?o+a:0),overflow:Math.abs(l-s)<=1}}),[p,b,e.placeholder]),M=function(e,t){var n=t.outerHeightStyle,r=t.overflow;return j.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(j.current+=1,{overflow:r,outerHeightStyle:n}):e},I=o.useCallback((function(){var e=P();m(e)||A((function(t){return M(t,e)}))}),[P]);o.useEffect((function(){var e,t=Object(c.a)((function(){var e;j.current=0,O.current&&(m(e=P())||Object(a.flushSync)((function(){A((function(t){return M(t,e)}))})))})),n=Object(u.a)(O.current);return n.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(t)).observe(O.current),function(){t.clear(),n.removeEventListener("resize",t),e&&e.disconnect()}})),Object(l.a)((function(){I()})),o.useEffect((function(){j.current=0}),[w]);return Object(f.jsxs)(o.Fragment,{children:[Object(f.jsx)("textarea",Object(r.a)({value:w,onChange:function(e){j.current=0,S||I(),n&&n(e)},ref:k,rows:b,style:Object(r.a)({height:C.outerHeightStyle,overflow:C.overflow?"hidden":null},x)},_)),Object(f.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:E,tabIndex:-1,style:Object(r.a)({},g,x,{padding:0})})]})}));t.a=y},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(339),s=n(613),u=n(348),c=n(149),l=n(15),f=n(20),d=n(888),p=n(5);function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var g=["BackdropComponent","BackdropProps","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","theme"],m=(a.a,Object(l.a)("div",{name:"MuiModal",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,!n.open&&n.exited&&t.hidden]}})((function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!n.open&&n.exited&&{visibility:"hidden"})}))),y=Object(l.a)(d.a,{name:"MuiModal",slot:"Backdrop",overridesResolver:function(e,t){return t.backdrop}})({zIndex:-1}),b=o.forwardRef((function(e,t){var n,a,l=Object(f.a)({name:"MuiModal",props:e}),d=l.BackdropComponent,v=void 0===d?y:d,b=l.BackdropProps,x=l.closeAfterTransition,w=void 0!==x&&x,_=l.children,S=l.component,O=l.components,k=void 0===O?{}:O,E=l.componentsProps,j=void 0===E?{}:E,T=l.disableAutoFocus,C=void 0!==T&&T,A=l.disableEnforceFocus,P=void 0!==A&&A,M=l.disableEscapeKeyDown,I=void 0!==M&&M,R=l.disablePortal,D=void 0!==R&&R,L=l.disableRestoreFocus,N=void 0!==L&&L,F=l.disableScrollLock,B=void 0!==F&&F,U=l.hideBackdrop,z=void 0!==U&&U,V=l.keepMounted,H=void 0!==V&&V,W=l.theme,q=Object(r.a)(l,g),G=h(o.useState(!0),2),Y=G[0],K=G[1],$={closeAfterTransition:w,disableAutoFocus:C,disableEnforceFocus:P,disableEscapeKeyDown:I,disablePortal:D,disableRestoreFocus:N,disableScrollLock:B,hideBackdrop:z,keepMounted:H},X=Object(i.a)({},l,$,{exited:Y}),Q=function(e){return e.classes}(X),Z=null!=(n=null!=(a=k.Root)?a:S)?n:m;return Object(p.jsx)(s.a,Object(i.a)({components:Object(i.a)({Root:Z,Backdrop:v},k),componentsProps:{root:function(){return Object(i.a)({},Object(u.a)(j.root,X),!Object(c.a)(Z)&&{as:S,theme:W})},backdrop:function(){return Object(i.a)({},b,Object(u.a)(j.backdrop,X))}},onTransitionEnter:function(){return K(!1)},onTransitionExited:function(){return K(!0)},ref:t},q,{classes:Q},$,{children:_}))}));t.a=b},function(e,t,n){"use strict";var r=n(6),i=n(16),o=n(2),a=n(289),s=n(244),u=n(151);function c(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function l(e){return e instanceof c(e).Element||e instanceof Element}function f(e){return e instanceof c(e).HTMLElement||e instanceof HTMLElement}function d(e){return"undefined"!=typeof ShadowRoot&&(e instanceof c(e).ShadowRoot||e instanceof ShadowRoot)}var p=Math.max,h=Math.min,v=Math.round;function g(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function m(){return!/^((?!chrome|android).)*safari/i.test(g())}function y(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&f(e)&&(i=e.offsetWidth>0&&v(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&v(r.height)/e.offsetHeight||1);var a=(l(e)?c(e):window).visualViewport,s=!m()&&n,u=(r.left+(s&&a?a.offsetLeft:0))/i,d=(r.top+(s&&a?a.offsetTop:0))/o,p=r.width/i,h=r.height/o;return{width:p,height:h,top:d,right:u+p,bottom:d+h,left:u,x:u,y:d}}function b(e){var t=c(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function x(e){return e?(e.nodeName||"").toLowerCase():null}function w(e){return((l(e)?e.ownerDocument:e.document)||window.document).documentElement}function _(e){return y(w(e)).left+b(e).scrollLeft}function S(e){return c(e).getComputedStyle(e)}function O(e){var t=S(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function k(e,t,n){void 0===n&&(n=!1);var r,i,o=f(t),a=f(t)&&function(e){var t=e.getBoundingClientRect(),n=v(t.width)/e.offsetWidth||1,r=v(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=w(t),u=y(e,a,n),l={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(o||!o&&!n)&&(("body"!==x(t)||O(s))&&(l=(r=t)!==c(r)&&f(r)?{scrollLeft:(i=r).scrollLeft,scrollTop:i.scrollTop}:b(r)),f(t)?((d=y(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):s&&(d.x=_(s))),{x:u.left+l.scrollLeft-d.x,y:u.top+l.scrollTop-d.y,width:u.width,height:u.height}}function E(e){var t=y(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function j(e){return"html"===x(e)?e:e.assignedSlot||e.parentNode||(d(e)?e.host:null)||w(e)}function T(e,t){var n;void 0===t&&(t=[]);var r=function e(t){return["html","body","#document"].indexOf(x(t))>=0?t.ownerDocument.body:f(t)&&O(t)?t:e(j(t))}(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=c(r),a=i?[o].concat(o.visualViewport||[],O(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(T(j(a)))}function C(e){return["table","td","th"].indexOf(x(e))>=0}function A(e){return f(e)&&"fixed"!==S(e).position?e.offsetParent:null}function P(e){for(var t=c(e),n=A(e);n&&C(n)&&"static"===S(n).position;)n=A(n);return n&&("html"===x(n)||"body"===x(n)&&"static"===S(n).position)?t:n||function(e){var t=/firefox/i.test(g());if(/Trident/i.test(g())&&f(e)&&"fixed"===S(e).position)return null;var n=j(e);for(d(n)&&(n=n.host);f(n)&&["html","body"].indexOf(x(n))<0;){var r=S(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var M="top",I="bottom",R="right",D="left",L="auto",N=[M,I,R,D],F="start",B="end",U="clippingParents",z="viewport",V="popper",H="reference",W=N.reduce((function(e,t){return e.concat([t+"-"+F,t+"-"+B])}),[]),q=[].concat(N,[L]).reduce((function(e,t){return e.concat([t,t+"-"+F,t+"-"+B])}),[]),G=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Y(e){var t=new Map,n=new Set,r=[];return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||function e(i){n.add(i.name),[].concat(i.requires||[],i.requiresIfExists||[]).forEach((function(r){if(!n.has(r)){var i=t.get(r);i&&e(i)}})),r.push(i)}(e)})),r}var K={placement:"bottom",modifiers:[],strategy:"absolute"};function $(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function X(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,o=void 0===i?K:i;return function(e,t,n){void 0===n&&(n=o);var i,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},K,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},u=[],c=!1,f={state:s,setOptions:function(n){var i="function"==typeof n?n(s.options):n;d(),s.options=Object.assign({},o,s.options,i),s.scrollParents={reference:l(e)?T(e):e.contextElement?T(e.contextElement):[],popper:T(t)};var a=function(e){var t=Y(e);return G.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,s.options.modifiers)));return s.orderedModifiers=a.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var o=i({state:s,name:t,instance:f,options:r});u.push(o||function(){})}})),f.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,n=e.popper;if($(t,n)){s.rects={reference:k(t,P(n),"fixed"===s.options.strategy),popper:E(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var i=s.orderedModifiers[r],o=i.fn,a=i.options,u=void 0===a?{}:a,l=i.name;"function"==typeof o&&(s=o({state:s,options:u,name:l,instance:f})||s)}else s.reset=!1,r=-1}}},update:(i=function(){return new Promise((function(e){f.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(i())}))}))),a}),destroy:function(){d(),c=!0}};if(!$(e,t))return f;function d(){u.forEach((function(e){return e()})),u=[]}return f.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),f}}var Q={passive:!0};function Z(e){return e.split("-")[0]}function J(e){return e.split("-")[1]}function ee(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function te(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?Z(i):null,a=i?J(i):null,s=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(o){case M:t={x:s,y:n.y-r.height};break;case I:t={x:s,y:n.y+n.height};break;case R:t={x:n.x+n.width,y:u};break;case D:t={x:n.x-r.width,y:u};break;default:t={x:n.x,y:n.y}}var c=o?ee(o):null;if(null!=c){var l="y"===c?"height":"width";switch(a){case F:t[c]=t[c]-(n[l]/2-r[l]/2);break;case B:t[c]=t[c]+(n[l]/2-r[l]/2)}}return t}var ne={top:"auto",right:"auto",bottom:"auto",left:"auto"};function re(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,u=e.gpuAcceleration,l=e.adaptive,f=e.roundOffsets,d=e.isFixed,p=a.x,h=void 0===p?0:p,g=a.y,m=void 0===g?0:g,y="function"==typeof f?f({x:h,y:m}):{x:h,y:m};h=y.x,m=y.y;var b=a.hasOwnProperty("x"),x=a.hasOwnProperty("y"),_=D,O=M,k=window;if(l){var E=P(n),j="clientHeight",T="clientWidth";if(E===c(n)&&"static"!==S(E=w(n)).position&&"absolute"===s&&(j="scrollHeight",T="scrollWidth"),E=E,i===M||(i===D||i===R)&&o===B)O=I,m-=(d&&E===k&&k.visualViewport?k.visualViewport.height:E[j])-r.height,m*=u?1:-1;if(i===D||(i===M||i===I)&&o===B)_=R,h-=(d&&E===k&&k.visualViewport?k.visualViewport.width:E[T])-r.width,h*=u?1:-1}var C,A=Object.assign({position:s},l&&ne),L=!0===f?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:v(t*r)/r||0,y:v(n*r)/r||0}}({x:h,y:m}):{x:h,y:m};return h=L.x,m=L.y,u?Object.assign({},A,((C={})[O]=x?"0":"",C[_]=b?"0":"",C.transform=(k.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",C)):Object.assign({},A,((t={})[O]=x?m+"px":"",t[_]=b?h+"px":"",t.transform="",t))}var ie={left:"right",right:"left",bottom:"top",top:"bottom"};function oe(e){return e.replace(/left|right|bottom|top/g,(function(e){return ie[e]}))}var ae={start:"end",end:"start"};function se(e){return e.replace(/start|end/g,(function(e){return ae[e]}))}function ue(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&d(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ce(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function le(e,t,n){return t===z?ce(function(e,t){var n=c(e),r=w(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,u=0;if(i){o=i.width,a=i.height;var l=m();(l||!l&&"fixed"===t)&&(s=i.offsetLeft,u=i.offsetTop)}return{width:o,height:a,x:s+_(e),y:u}}(e,n)):l(t)?function(e,t){var n=y(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):ce(function(e){var t,n=w(e),r=b(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=p(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=p(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+_(e),u=-r.scrollTop;return"rtl"===S(i||n).direction&&(s+=p(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:u}}(w(e)))}function fe(e,t,n,r){var i="clippingParents"===t?function(e){var t=T(j(e)),n=["absolute","fixed"].indexOf(S(e).position)>=0&&f(e)?P(e):e;return l(n)?t.filter((function(e){return l(e)&&ue(e,n)&&"body"!==x(e)})):[]}(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce((function(t,n){var i=le(e,n,r);return t.top=p(i.top,t.top),t.right=h(i.right,t.right),t.bottom=h(i.bottom,t.bottom),t.left=p(i.left,t.left),t}),le(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function de(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function pe(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function he(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.strategy,a=void 0===o?e.strategy:o,s=n.boundary,u=void 0===s?U:s,c=n.rootBoundary,f=void 0===c?z:c,d=n.elementContext,p=void 0===d?V:d,h=n.altBoundary,v=void 0!==h&&h,g=n.padding,m=void 0===g?0:g,b=de("number"!=typeof m?m:pe(m,N)),x=p===V?H:V,_=e.rects.popper,S=e.elements[v?x:p],O=fe(l(S)?S:S.contextElement||w(e.elements.popper),u,f,a),k=y(e.elements.reference),E=te({reference:k,element:_,strategy:"absolute",placement:i}),j=ce(Object.assign({},_,E)),T=p===V?j:k,C={top:O.top-T.top+b.top,bottom:T.bottom-O.bottom+b.bottom,left:O.left-T.left+b.left,right:T.right-O.right+b.right},A=e.modifiersData.offset;if(p===V&&A){var P=A[i];Object.keys(C).forEach((function(e){var t=[R,I].indexOf(e)>=0?1:-1,n=[M,I].indexOf(e)>=0?"y":"x";C[e]+=P[n]*t}))}return C}function ve(e,t,n){return p(e,h(t,n))}var ge=function(e,t){return de("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:pe(e,N))};function me(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ye(e){return[M,R,I,D].some((function(t){return e[t]>=0}))}var be=X({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,u=c(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach((function(e){e.addEventListener("scroll",n.update,Q)})),s&&u.addEventListener("resize",n.update,Q),function(){o&&l.forEach((function(e){e.removeEventListener("scroll",n.update,Q)})),s&&u.removeEventListener("resize",n.update,Q)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=te({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,u=void 0===s||s,c={placement:Z(t.placement),variation:J(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,re(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,re(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];f(i)&&x(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});f(r)&&x(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=q.reduce((function(e,n){return e[n]=function(e,t,n){var r=Z(e),i=[D,M].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[D,R].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e}),{}),s=a[t.placement],u=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,u=n.fallbackPlacements,c=n.padding,l=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,h=void 0===p||p,v=n.allowedAutoPlacements,g=t.options.placement,m=Z(g),y=u||(m===g||!h?[oe(g)]:function(e){if(Z(e)===L)return[];var t=oe(e);return[se(e),t,se(t)]}(g)),b=[g].concat(y).reduce((function(e,n){return e.concat(Z(n)===L?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,c=void 0===u?q:u,l=J(r),f=l?s?W:W.filter((function(e){return J(e)===l})):N,d=f.filter((function(e){return c.indexOf(e)>=0}));0===d.length&&(d=f);var p=d.reduce((function(t,n){return t[n]=he(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[Z(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:l,rootBoundary:f,padding:c,flipVariations:h,allowedAutoPlacements:v}):n)}),[]),x=t.rects.reference,w=t.rects.popper,_=new Map,S=!0,O=b[0],k=0;k<b.length;k++){var E=b[k],j=Z(E),T=J(E)===F,C=[M,I].indexOf(j)>=0,A=C?"width":"height",P=he(t,{placement:E,boundary:l,rootBoundary:f,altBoundary:d,padding:c}),B=C?T?R:D:T?I:M;x[A]>w[A]&&(B=oe(B));var U=oe(B),z=[];if(o&&z.push(P[j]<=0),s&&z.push(P[B]<=0,P[U]<=0),z.every((function(e){return e}))){O=E,S=!1;break}_.set(E,z)}if(S)for(var V=function(e){var t=b.find((function(t){var n=_.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return O=t,"break"},H=h?3:1;H>0;H--){if("break"===V(H))break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,u=n.boundary,c=n.rootBoundary,l=n.altBoundary,f=n.padding,d=n.tether,v=void 0===d||d,g=n.tetherOffset,m=void 0===g?0:g,y=he(t,{boundary:u,rootBoundary:c,padding:f,altBoundary:l}),b=Z(t.placement),x=J(t.placement),w=!x,_=ee(b),S="x"===_?"y":"x",O=t.modifiersData.popperOffsets,k=t.rects.reference,j=t.rects.popper,T="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,C="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(O){if(o){var N,B="y"===_?M:D,U="y"===_?I:R,z="y"===_?"height":"width",V=O[_],H=V+y[B],W=V-y[U],q=v?-j[z]/2:0,G=x===F?k[z]:j[z],Y=x===F?-j[z]:-k[z],K=t.elements.arrow,$=v&&K?E(K):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Q=X[B],te=X[U],ne=ve(0,k[z],$[z]),re=w?k[z]/2-q-ne-Q-C.mainAxis:G-ne-Q-C.mainAxis,ie=w?-k[z]/2+q+ne+te+C.mainAxis:Y+ne+te+C.mainAxis,oe=t.elements.arrow&&P(t.elements.arrow),ae=oe?"y"===_?oe.clientTop||0:oe.clientLeft||0:0,se=null!=(N=null==A?void 0:A[_])?N:0,ue=V+ie-se,ce=ve(v?h(H,V+re-se-ae):H,V,v?p(W,ue):W);O[_]=ce,L[_]=ce-V}if(s){var le,fe="x"===_?M:D,de="x"===_?I:R,pe=O[S],ge="y"===S?"height":"width",me=pe+y[fe],ye=pe-y[de],be=-1!==[M,D].indexOf(b),xe=null!=(le=null==A?void 0:A[S])?le:0,we=be?me:pe-k[ge]-j[ge]-xe+C.altAxis,_e=be?pe+k[ge]+j[ge]-xe-C.altAxis:ye,Se=v&&be?function(e,t,n){var r=ve(e,t,n);return r>n?n:r}(we,pe,_e):ve(v?we:me,pe,v?_e:ye);O[S]=Se,L[S]=Se-pe}t.modifiersData[r]=L}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Z(n.placement),u=ee(s),c=[D,R].indexOf(s)>=0?"height":"width";if(o&&a){var l=ge(i.padding,n),f=E(o),d="y"===u?M:D,p="y"===u?I:R,h=n.rects.reference[c]+n.rects.reference[u]-a[u]-n.rects.popper[c],v=a[u]-n.rects.reference[u],g=P(o),m=g?"y"===u?g.clientHeight||0:g.clientWidth||0:0,y=h/2-v/2,b=l[d],x=m-f[c]-l[p],w=m/2-f[c]/2+y,_=ve(b,w,x),S=u;n.modifiersData[r]=((t={})[S]=_,t.centerOffset=_-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&ue(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=he(t,{elementContext:"reference"}),s=he(t,{altBoundary:!0}),u=me(a,r),c=me(s,i,o),l=ye(u),f=ye(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:l,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":f})}}]}),xe=n(158),we=n(1557),_e=n(138),Se=n(152);function Oe(e){return Object(_e.a)("MuiPopperUnstyled",e)}Object(Se.a)("MuiPopperUnstyled",["root"]);var ke=n(128),Ee=n(5);function je(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Te(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Te(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ce=["anchorEl","children","component","components","componentsProps","direction","disablePortal","modifiers","open","ownerState","placement","popperOptions","popperRef","TransitionProps"],Ae=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"];function Pe(e){return"function"==typeof e?e():e}var Me={},Ie=o.forwardRef((function(e,t){var n,u=e.anchorEl,c=e.children,l=e.component,f=e.components,d=void 0===f?{}:f,p=e.componentsProps,h=void 0===p?{}:p,v=e.direction,g=e.disablePortal,m=e.modifiers,y=e.open,b=e.ownerState,x=e.placement,w=e.popperOptions,_=e.popperRef,S=e.TransitionProps,O=Object(i.a)(e,Ce),k=o.useRef(null),E=Object(a.a)(k,t),j=o.useRef(null),T=Object(a.a)(j,_),C=o.useRef(T);Object(s.a)((function(){C.current=T}),[T]),o.useImperativeHandle(_,(function(){return j.current}),[]);var A=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(x,v),P=je(o.useState(A),2),M=P[0],I=P[1];o.useEffect((function(){j.current&&j.current.forceUpdate()})),Object(s.a)((function(){if(u&&y){Pe(u);var e=[{name:"preventOverflow",options:{altBoundary:g}},{name:"flip",options:{altBoundary:g}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:function(e){var t=e.state;I(t.placement)}}];null!=m&&(e=e.concat(m)),w&&null!=w.modifiers&&(e=e.concat(w.modifiers));var t=be(Pe(u),k.current,Object(r.a)({placement:A},w,{modifiers:e}));return C.current(t),function(){t.destroy(),C.current(null)}}}),[u,g,m,y,w,A]);var R={placement:M};null!==S&&(R.TransitionProps=S);var D=Object(xe.a)({root:["root"]},Oe,{}),L=null!=(n=null!=l?l:d.Root)?n:"div",N=Object(ke.a)({elementType:L,externalSlotProps:h.root,externalForwardedProps:O,additionalProps:{role:"tooltip",ref:E},ownerState:Object(r.a)({},e,b),className:D.root});return Object(Ee.jsx)(L,Object(r.a)({},N,{children:"function"==typeof c?c(R):c}))})),Re=o.forwardRef((function(e,t){var n=e.anchorEl,a=e.children,s=e.container,c=e.direction,l=void 0===c?"ltr":c,f=e.disablePortal,d=void 0!==f&&f,p=e.keepMounted,h=void 0!==p&&p,v=e.modifiers,g=e.open,m=e.placement,y=void 0===m?"bottom":m,b=e.popperOptions,x=void 0===b?Me:b,w=e.popperRef,_=e.style,S=e.transition,O=void 0!==S&&S,k=Object(i.a)(e,Ae),E=je(o.useState(!0),2),j=E[0],T=E[1];if(!h&&!g&&(!O||j))return null;var C=s||(n?Object(u.a)(Pe(n)).body:void 0);return(Object(Ee.jsx)(we.a,{disablePortal:d,container:C,children:Object(Ee.jsx)(Ie,Object(r.a)({anchorEl:n,direction:l,disablePortal:d,modifiers:v,ref:t,open:O?!j:g,placement:y,popperOptions:x,popperRef:w},k,{style:Object(r.a)({position:"fixed",top:0,left:0,display:g||!h||O&&!j?null:"none"},_),TransitionProps:O?{in:g,onEnter:function(){T(!1)},onExited:function(){T(!0)}}:null,children:a}))}))}));t.a=Re},function(e,t,n){"use strict";var r,i=new Uint8Array(16);function o(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)}var a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var s=function(e){return"string"==typeof e&&a.test(e)},u=[],c=0;c<256;++c)u.push((c+256).toString(16).substr(1));var l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(u[e[t+0]]+u[e[t+1]]+u[e[t+2]]+u[e[t+3]]+"-"+u[e[t+4]]+u[e[t+5]]+"-"+u[e[t+6]]+u[e[t+7]]+"-"+u[e[t+8]]+u[e[t+9]]+"-"+u[e[t+10]]+u[e[t+11]]+u[e[t+12]]+u[e[t+13]]+u[e[t+14]]+u[e[t+15]]).toLowerCase();if(!s(n))throw TypeError("Stringified UUID is invalid");return n};t.a=function(e,t,n){var r=(e=e||{}).random||(e.rng||o)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return l(r)}},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(17),s=n(158),u=n(15),c=n(20),l=n(56),f=n(5),d=Object(l.a)(Object(f.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person"),p=n(138),h=n(152);function v(e){return Object(p.a)("MuiAvatar",e)}Object(h.a)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var y=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],b=Object(u.a)("div",{name:"MuiAvatar",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})((function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},"rounded"===n.variant&&{borderRadius:(t.vars||t).shape.borderRadius},"square"===n.variant&&{borderRadius:0},n.colorDefault&&Object(i.a)({color:(t.vars||t).palette.background.default},t.vars?{backgroundColor:t.vars.palette.Avatar.defaultBg}:{backgroundColor:"light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[600]}))})),x=Object(u.a)("img",{name:"MuiAvatar",slot:"Img",overridesResolver:function(e,t){return t.img}})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),w=Object(u.a)(d,{name:"MuiAvatar",slot:"Fallback",overridesResolver:function(e,t){return t.fallback}})({width:"75%",height:"75%"});var _=o.forwardRef((function(e,t){var n=Object(c.a)({props:e,name:"MuiAvatar"}),u=n.alt,l=n.children,d=n.className,p=n.component,h=void 0===p?"div":p,m=n.imgProps,_=n.sizes,S=n.src,O=n.srcSet,k=n.variant,E=void 0===k?"circular":k,j=Object(r.a)(n,y),T=null,C=function(e){var t=e.crossOrigin,n=e.referrerPolicy,r=e.src,i=e.srcSet,a=g(o.useState(!1),2),s=a[0],u=a[1];return o.useEffect((function(){if(r||i){u(!1);var e=!0,o=new Image;return o.onload=function(){e&&u("loaded")},o.onerror=function(){e&&u("error")},o.crossOrigin=t,o.referrerPolicy=n,o.src=r,i&&(o.srcset=i),function(){e=!1}}}),[t,n,r,i]),s}(Object(i.a)({},m,{src:S,srcSet:O})),A=S||O,P=A&&"error"!==C,M=Object(i.a)({},n,{colorDefault:!P,component:h,variant:E}),I=function(e){var t=e.classes,n={root:["root",e.variant,e.colorDefault&&"colorDefault"],img:["img"],fallback:["fallback"]};return Object(s.a)(n,v,t)}(M);return T=P?Object(f.jsx)(x,Object(i.a)({alt:u,src:S,srcSet:O,sizes:_,ownerState:M,className:I.img},m)):null!=l?l:A&&u?u[0]:Object(f.jsx)(w,{className:I.fallback}),Object(f.jsx)(b,Object(i.a)({as:h,ownerState:M,className:Object(a.default)(I.root,d),ref:t},j,{children:T}))}));t.a=_},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(17),s=n(158),u=n(15),c=n(20),l=n(138),f=n(152);function d(e){return Object(l.a)("MuiDialogActions",e)}Object(f.a)("MuiDialogActions",["root","spacing"]);var p=n(5),h=["className","disableSpacing"],v=Object(u.a)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,!n.disableSpacing&&t.spacing]}})((function(e){var t=e.ownerState;return Object(i.a)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!t.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}})})),g=o.forwardRef((function(e,t){var n=Object(c.a)({props:e,name:"MuiDialogActions"}),o=n.className,u=n.disableSpacing,l=void 0!==u&&u,f=Object(r.a)(n,h),g=Object(i.a)({},n,{disableSpacing:l}),m=function(e){var t=e.classes,n={root:["root",!e.disableSpacing&&"spacing"]};return Object(s.a)(n,d,t)}(g);return Object(p.jsx)(v,Object(i.a)({className:Object(a.default)(m.root,o),ownerState:g,ref:t},f))}));t.a=g},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(6),i=n(2),o=n(20),a=n(886),s=n(5),u=function(e,t){return Object(r.a)({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&{colorScheme:e.palette.mode})},c=function(e){return Object(r.a)({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}})},l=function(e){var t,n,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={html:u(e,i),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:Object(r.a)({margin:0},c(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},a=null==(t=e.components)?void 0:null==(n=t.MuiCssBaseline)?void 0:n.styleOverrides;return a&&(o=[o,a]),o};t.a=function(e){var t=Object(o.a)({props:e,name:"MuiCssBaseline"}),n=t.children,r=t.enableColorScheme,u=void 0!==r&&r;return Object(s.jsxs)(i.Fragment,{children:[Object(s.jsx)(a.a,{styles:function(e){return l(e,u)}}),n]})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(2),i=n(345),o=n(619),a=n(120);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n,i,o){var u="undefined"!=typeof window&&void 0!==window.matchMedia,c=s(r.useState((function(){return o&&u?n(e).matches:i?i(e).matches:t})),2),l=c[0],f=c[1];return Object(a.a)((function(){var t=!0;if(u){var r=n(e),i=function(){t&&f(r.matches)};return i(),r.addListener(i),function(){t=!1,r.removeListener(i)}}}),[e,n,u]),l}var l=r.useSyncExternalStore;function f(e,t,n,i){var o=r.useCallback((function(){return t}),[t]),a=r.useMemo((function(){if(null!==i){var t=i(e).matches;return function(){return t}}return o}),[o,e,i]),u=s(r.useMemo((function(){if(null===n)return[o,function(){return function(){}}];var t=n(e);return[function(){return t.matches},function(e){return t.addListener(e),function(){t.removeListener(e)}}]}),[o,n,e]),2),c=u[0],f=u[1];return l(f,c,a)}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object(i.a)(),r="undefined"!=typeof window&&void 0!==window.matchMedia,a=Object(o.a)({name:"MuiUseMediaQuery",props:t,theme:n}),s=a.defaultMatches,u=void 0!==s&&s,d=a.matchMedia,p=void 0===d?r?window.matchMedia:null:d,h=a.ssrMatchMedia,v=void 0===h?null:h,g=a.noSsr;var m="function"==typeof e?e(n):e;return m=m.replace(/^@media( ?)/m,""),(void 0!==l?f:c)(m,u,p,v,g)}},function(e,t,n){"use strict";var r=n(6),i=n(16),o=n(2),a=n(630),s=n(76),u=n(137),c=n(62),l=n(5),f=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function d(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var p={entering:{opacity:1,transform:d(1)},entered:{opacity:1,transform:"none"}},h="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),v=o.forwardRef((function(e,t){var n=e.addEndListener,v=e.appear,g=void 0===v||v,m=e.children,y=e.easing,b=e.in,x=e.onEnter,w=e.onEntered,_=e.onEntering,S=e.onExit,O=e.onExited,k=e.onExiting,E=e.style,j=e.timeout,T=void 0===j?"auto":j,C=e.TransitionComponent,A=void 0===C?a.a:C,P=Object(i.a)(e,f),M=o.useRef(),I=o.useRef(),R=Object(s.a)(),D=o.useRef(null),L=Object(c.a)(m.ref,t),N=Object(c.a)(D,L),F=function(e){return function(t){if(e){var n=D.current;void 0===t?e(n):e(n,t)}}},B=F(_),U=F((function(e,t){Object(u.b)(e);var n,r=Object(u.a)({style:E,timeout:T,easing:y},{mode:"enter"}),i=r.duration,o=r.delay,a=r.easing;"auto"===T?(n=R.transitions.getAutoHeightDuration(e.clientHeight),I.current=n):n=i,e.style.transition=[R.transitions.create("opacity",{duration:n,delay:o}),R.transitions.create("transform",{duration:h?n:.666*n,delay:o,easing:a})].join(","),x&&x(e,t)})),z=F(w),V=F(k),H=F((function(e){var t,n=Object(u.a)({style:E,timeout:T,easing:y},{mode:"exit"}),r=n.duration,i=n.delay,o=n.easing;"auto"===T?(t=R.transitions.getAutoHeightDuration(e.clientHeight),I.current=t):t=r,e.style.transition=[R.transitions.create("opacity",{duration:t,delay:i}),R.transitions.create("transform",{duration:h?t:.666*t,delay:h?i:i||.333*t,easing:o})].join(","),e.style.opacity=0,e.style.transform=d(.75),S&&S(e)})),W=F(O);return o.useEffect((function(){return function(){clearTimeout(M.current)}}),[]),Object(l.jsx)(A,Object(r.a)({appear:g,in:b,nodeRef:D,onEnter:U,onEntered:z,onEntering:B,onExit:H,onExited:W,onExiting:V,addEndListener:function(e){"auto"===T&&(M.current=setTimeout(e,I.current||0)),n&&n(D.current,e)},timeout:"auto"===T?null:T},P,{children:function(e,t){return o.cloneElement(m,Object(r.a)({style:Object(r.a)({opacity:0,transform:d(.75),visibility:"exited"!==e||b?void 0:"hidden"},p[e],E,m.props.style),ref:N},t))}}))}));v.muiSupportAuto=!0,t.a=v},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(26),i=n(65),o=n(2),a=n(538),s=n(1565),u=n(46),c=n(121),l=n(5),f=["onAccept","onClear","onCancel","onSetToday","actions"],d=function(e){var t=e.onAccept,n=e.onClear,d=e.onCancel,p=e.onSetToday,h=e.actions,v=Object(i.a)(e,f),g=o.useContext(c.a),m=Object(u.b)(),y="function"==typeof h?h(g):h;if(null==y||0===y.length)return null;var b=null==y?void 0:y.map((function(e){switch(e){case"clear":return Object(l.jsx)(a.a,{onClick:n,children:m.clearButtonLabel},e);case"cancel":return Object(l.jsx)(a.a,{onClick:d,children:m.cancelButtonLabel},e);case"accept":return Object(l.jsx)(a.a,{onClick:t,children:m.okButtonLabel},e);case"today":return Object(l.jsx)(a.a,{onClick:p,children:m.todayButtonLabel},e);default:return null}}));return(Object(l.jsx)(s.a,Object(r.a)({},v,{children:b})))}},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(17),s=n(158),u=n(140),c=n(122),l=n(18),f=n(20),d=n(15),p=n(370),h=n(5);function v(e){return(v="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 g(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==v(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===v(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=["children","className","color","component","disabled","error","filled","focused","required"],y=Object(d.a)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return Object(i.a)({},t.root,"secondary"===n.color&&t.colorSecondary,n.filled&&t.filled)}})((function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({color:(t.vars||t).palette.text.secondary},t.typography.body1,g(g(g({lineHeight:"1.4375em",padding:0,position:"relative"},"&.".concat(p.a.focused),{color:(t.vars||t).palette[n.color].main}),"&.".concat(p.a.disabled),{color:(t.vars||t).palette.text.disabled}),"&.".concat(p.a.error),{color:(t.vars||t).palette.error.main}))})),b=Object(d.a)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:function(e,t){return t.asterisk}})((function(e){var t=e.theme;return g({},"&.".concat(p.a.error),{color:(t.vars||t).palette.error.main})})),x=o.forwardRef((function(e,t){var n=Object(f.a)({props:e,name:"MuiFormLabel"}),o=n.children,d=n.className,v=n.component,g=void 0===v?"label":v,x=Object(r.a)(n,m),w=Object(c.a)(),_=Object(u.a)({props:n,muiFormControl:w,states:["color","required","focused","disabled","error","filled"]}),S=Object(i.a)({},n,{color:_.color||"primary",component:g,disabled:_.disabled,error:_.error,filled:_.filled,focused:_.focused,required:_.required}),O=function(e){var t=e.classes,n=e.color,r=e.focused,i=e.disabled,o=e.error,a=e.filled,u=e.required,c={root:["root","color".concat(Object(l.a)(n)),i&&"disabled",o&&"error",a&&"filled",r&&"focused",u&&"required"],asterisk:["asterisk",o&&"error"]};return Object(s.a)(c,p.b,t)}(S);return Object(h.jsxs)(y,Object(i.a)({as:g,ownerState:S,className:Object(a.default)(O.root,d),ref:t},x,{children:[o,_.required&&Object(h.jsxs)(b,{ownerState:S,"aria-hidden":!0,className:O.asterisk,children:[" ","*"]})]}))}));t.a=x},function(e,t,n){"use strict";var r=n(2),i=n(289),o=n(366),a=n(151),s=n(5);function u(e){return e.substring(2).toLowerCase()}t.a=function(e){var t=e.children,n=e.disableReactTree,c=void 0!==n&&n,l=e.mouseEvent,f=void 0===l?"onClick":l,d=e.onClickAway,p=e.touchEvent,h=void 0===p?"onTouchEnd":p,v=r.useRef(!1),g=r.useRef(null),m=r.useRef(!1),y=r.useRef(!1);r.useEffect((function(){return setTimeout((function(){m.current=!0}),0),function(){m.current=!1}}),[]);var b=Object(i.a)(t.ref,g),x=Object(o.a)((function(e){var t=y.current;y.current=!1;var n=Object(a.a)(g.current);!m.current||!g.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,n)||(v.current?v.current=!1:(e.composedPath?e.composedPath().indexOf(g.current)>-1:!n.documentElement.contains(e.target)||g.current.contains(e.target))||!c&&t||d(e))})),w=function(e){return function(n){y.current=!0;var r=t.props[e];r&&r(n)}},_={ref:b};return!1!==h&&(_[h]=w(h)),r.useEffect((function(){if(!1!==h){var e=u(h),t=Object(a.a)(g.current),n=function(){v.current=!0};return t.addEventListener(e,x),t.addEventListener("touchmove",n),function(){t.removeEventListener(e,x),t.removeEventListener("touchmove",n)}}}),[x,h]),!1!==f&&(_[f]=w(f)),r.useEffect((function(){if(!1!==f){var e=u(f),t=Object(a.a)(g.current);return t.addEventListener(e,x),function(){t.removeEventListener(e,x)}}}),[x,f]),Object(s.jsx)(r.Fragment,{children:r.cloneElement(t,_)})}},function(e,t,n){"use strict";var r=n(399),i=n(18),o=n(15),a=n(20),s=Object(r.a)({createStyledComponent:Object(o.a)("div",{name:"MuiContainer",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t["maxWidth".concat(Object(i.a)(String(n.maxWidth)))],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:function(e){return Object(a.a)({props:e,name:"MuiContainer"})}});t.a=s},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(17),s=n(158),u=n(488),c=n(18),l=n(1561),f=n(1559),d=n(492),p=n(20),h=n(15),v=n(414),g=n(504),m=n(888),y=n(76),b=n(5);function x(e){return(x="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(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==x(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==x(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===x(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],S=Object(h.a)(m.a,{name:"MuiDialog",slot:"Backdrop",overrides:function(e,t){return t.backdrop}})({zIndex:-1}),O=Object(h.a)(l.a,{name:"MuiDialog",slot:"Root",overridesResolver:function(e,t){return t.root}})({"@media print":{position:"absolute !important"}}),k=Object(h.a)("div",{name:"MuiDialog",slot:"Container",overridesResolver:function(e,t){var n=e.ownerState;return[t.container,t["scroll".concat(Object(c.a)(n.scroll))]]}})((function(e){var t=e.ownerState;return Object(i.a)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===t.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===t.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})})),E=Object(h.a)(d.a,{name:"MuiDialog",slot:"Paper",overridesResolver:function(e,t){var n=e.ownerState;return[t.paper,t["scrollPaper".concat(Object(c.a)(n.scroll))],t["paperWidth".concat(Object(c.a)(String(n.maxWidth)))],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})((function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===n.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===n.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!n.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===n.maxWidth&&w({maxWidth:"px"===t.breakpoints.unit?Math.max(t.breakpoints.values.xs,444):"".concat(t.breakpoints.values.xs).concat(t.breakpoints.unit)},"&.".concat(v.a.paperScrollBody),w({},t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})),n.maxWidth&&"xs"!==n.maxWidth&&w({maxWidth:"".concat(t.breakpoints.values[n.maxWidth]).concat(t.breakpoints.unit)},"&.".concat(v.a.paperScrollBody),w({},t.breakpoints.down(t.breakpoints.values[n.maxWidth]+64),{maxWidth:"calc(100% - 64px)"})),n.fullWidth&&{width:"calc(100% - 64px)"},n.fullScreen&&w({margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0},"&.".concat(v.a.paperScrollBody),{margin:0,maxWidth:"100%"}))})),j=o.forwardRef((function(e,t){var n=Object(p.a)({props:e,name:"MuiDialog"}),l=Object(y.a)(),h={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},m=n["aria-describedby"],x=n["aria-labelledby"],w=n.BackdropComponent,j=n.BackdropProps,T=n.children,C=n.className,A=n.disableEscapeKeyDown,P=void 0!==A&&A,M=n.fullScreen,I=void 0!==M&&M,R=n.fullWidth,D=void 0!==R&&R,L=n.maxWidth,N=void 0===L?"sm":L,F=n.onBackdropClick,B=n.onClose,U=n.open,z=n.PaperComponent,V=void 0===z?d.a:z,H=n.PaperProps,W=void 0===H?{}:H,q=n.scroll,G=void 0===q?"paper":q,Y=n.TransitionComponent,K=void 0===Y?f.a:Y,$=n.transitionDuration,X=void 0===$?h:$,Q=n.TransitionProps,Z=Object(r.a)(n,_),J=Object(i.a)({},n,{disableEscapeKeyDown:P,fullScreen:I,fullWidth:D,maxWidth:N,scroll:G}),ee=function(e){var t=e.classes,n=e.scroll,r=e.maxWidth,i=e.fullWidth,o=e.fullScreen,a={root:["root"],container:["container","scroll".concat(Object(c.a)(n))],paper:["paper","paperScroll".concat(Object(c.a)(n)),"paperWidth".concat(Object(c.a)(String(r))),i&&"paperFullWidth",o&&"paperFullScreen"]};return Object(s.a)(a,v.b,t)}(J),te=o.useRef(),ne=Object(u.a)(x),re=o.useMemo((function(){return{titleId:ne}}),[ne]);return Object(b.jsx)(O,Object(i.a)({className:Object(a.default)(ee.root,C),closeAfterTransition:!0,components:{Backdrop:S},componentsProps:{backdrop:Object(i.a)({transitionDuration:X,as:w},j)},disableEscapeKeyDown:P,onClose:B,open:U,ref:t,onClick:function(e){te.current&&(te.current=null,F&&F(e),B&&B(e,"backdropClick"))},ownerState:J},Z,{children:Object(b.jsx)(K,Object(i.a)({appear:!0,in:U,timeout:X,role:"presentation"},Q,{children:Object(b.jsx)(k,{className:Object(a.default)(ee.container),onMouseDown:function(e){te.current=e.target===e.currentTarget},ownerState:J,children:Object(b.jsx)(E,Object(i.a)({as:V,elevation:24,role:"dialog","aria-describedby":m,"aria-labelledby":ne},W,{className:Object(a.default)(ee.paper,W.className),ownerState:J,children:Object(b.jsx)(g.a.Provider,{value:re,children:T})}))})}))}))}));t.a=j},function(e,t,n){"use strict";var r=n(6),i=n(16),o=n(2),a=n(17),s=n(158),u=n(325),c=n(15),l=n(20),f=n(505),d=n(504),p=n(5),h=["className","id"],v=Object(c.a)(u.a,{name:"MuiDialogTitle",slot:"Root",overridesResolver:function(e,t){return t.root}})({padding:"16px 24px",flex:"0 0 auto"}),g=o.forwardRef((function(e,t){var n=Object(l.a)({props:e,name:"MuiDialogTitle"}),u=n.className,c=n.id,g=Object(i.a)(n,h),m=n,y=function(e){var t=e.classes;return Object(s.a)({root:["root"]},f.b,t)}(m),b=o.useContext(d.a).titleId,x=void 0===b?c:b;return Object(p.jsx)(v,Object(r.a)({component:"h2",className:Object(a.default)(y.root,u),ownerState:m,ref:t,variant:"h6",id:x},g))}));t.a=g},function(e,t,n){"use strict";var r=n(2),i=n(244),o=n(5);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}t.a=function(e){var t=e.children,n=e.defer,s=void 0!==n&&n,u=e.fallback,c=void 0===u?null:u,l=a(r.useState(!1),2),f=l[0],d=l[1];return Object(i.a)((function(){s||d(!0)}),[s]),r.useEffect((function(){s&&d(!0)}),[s]),Object(o.jsx)(r.Fragment,{children:f?t:c})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));n(2);var r=n(124),i=n(312),o=n(5),a=Object(i.a)({key:"css",prepend:!0});function s(e){var t=e.injectFirst,n=e.children;return t?Object(o.jsx)(r.a,{value:a,children:n}):n}},function(e,t,n){"use strict";var r,i,o,a,s,u,c=n(16),l=n(6),f=n(2),d=n(17),p=n(158),h=n(0),v=n(177),g=n(18),m=n(76),y=n(15),b=n(20),x=n(843),w=n(5);function _(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var S,O,k,E,j,T,C=["className","color","value","valueBuffer","variant"],A=function(e){return e},P=Object(h.d)(S||(S=A(r||(r=_(["\n 0% {\n left: -35%;\n right: 100%;\n }\n\n 60% {\n left: 100%;\n right: -90%;\n }\n\n 100% {\n left: 100%;\n right: -90%;\n }\n"]))))),M=Object(h.d)(O||(O=A(i||(i=_(["\n 0% {\n left: -200%;\n right: 100%;\n }\n\n 60% {\n left: 107%;\n right: -8%;\n }\n\n 100% {\n left: 107%;\n right: -8%;\n }\n"]))))),I=Object(h.d)(k||(k=A(o||(o=_(["\n 0% {\n opacity: 1;\n background-position: 0 -23px;\n }\n\n 60% {\n opacity: 0;\n background-position: 0 -23px;\n }\n\n 100% {\n opacity: 1;\n background-position: -200px -23px;\n }\n"]))))),R=function(e,t){return"inherit"===t?"currentColor":e.vars?e.vars.palette.LinearProgress["".concat(t,"Bg")]:"light"===e.palette.mode?Object(v.j)(e.palette[t].main,.62):Object(v.c)(e.palette[t].main,.5)},D=Object(y.a)("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t["color".concat(Object(g.a)(n.color))],t[n.variant]]}})((function(e){var t=e.ownerState,n=e.theme;return Object(l.a)({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:R(n,t.color)},"inherit"===t.color&&"buffer"!==t.variant&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},"buffer"===t.variant&&{backgroundColor:"transparent"},"query"===t.variant&&{transform:"rotate(180deg)"})})),L=Object(y.a)("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:function(e,t){var n=e.ownerState;return[t.dashed,t["dashedColor".concat(Object(g.a)(n.color))]]}})((function(e){var t=e.ownerState,n=e.theme,r=R(n,t.color);return Object(l.a)({position:"absolute",marginTop:0,height:"100%",width:"100%"},"inherit"===t.color&&{opacity:.3},{backgroundImage:"radial-gradient(".concat(r," 0%, ").concat(r," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})}),Object(h.b)(E||(E=A(a||(a=_(["\n animation: "," 3s infinite linear;\n "])))),I)),N=Object(y.a)("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:function(e,t){var n=e.ownerState;return[t.bar,t["barColor".concat(Object(g.a)(n.color))],("indeterminate"===n.variant||"query"===n.variant)&&t.bar1Indeterminate,"determinate"===n.variant&&t.bar1Determinate,"buffer"===n.variant&&t.bar1Buffer]}})((function(e){var t=e.ownerState,n=e.theme;return Object(l.a)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:"inherit"===t.color?"currentColor":(n.vars||n).palette[t.color].main},"determinate"===t.variant&&{transition:"transform .".concat(4,"s linear")},"buffer"===t.variant&&{zIndex:1,transition:"transform .".concat(4,"s linear")})}),(function(e){var t=e.ownerState;return("indeterminate"===t.variant||"query"===t.variant)&&Object(h.b)(j||(j=A(s||(s=_(["\n width: auto;\n animation: "," 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;\n "])))),P)})),F=Object(y.a)("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:function(e,t){var n=e.ownerState;return[t.bar,t["barColor".concat(Object(g.a)(n.color))],("indeterminate"===n.variant||"query"===n.variant)&&t.bar2Indeterminate,"buffer"===n.variant&&t.bar2Buffer]}})((function(e){var t=e.ownerState,n=e.theme;return Object(l.a)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},"buffer"!==t.variant&&{backgroundColor:"inherit"===t.color?"currentColor":(n.vars||n).palette[t.color].main},"inherit"===t.color&&{opacity:.3},"buffer"===t.variant&&{backgroundColor:R(n,t.color),transition:"transform .".concat(4,"s linear")})}),(function(e){var t=e.ownerState;return("indeterminate"===t.variant||"query"===t.variant)&&Object(h.b)(T||(T=A(u||(u=_(["\n width: auto;\n animation: "," 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;\n "])))),M)})),B=f.forwardRef((function(e,t){var n=Object(b.a)({props:e,name:"MuiLinearProgress"}),r=n.className,i=n.color,o=void 0===i?"primary":i,a=n.value,s=n.valueBuffer,u=n.variant,f=void 0===u?"indeterminate":u,h=Object(c.a)(n,C),v=Object(l.a)({},n,{color:o,variant:f}),y=function(e){var t=e.classes,n=e.variant,r=e.color,i={root:["root","color".concat(Object(g.a)(r)),n],dashed:["dashed","dashedColor".concat(Object(g.a)(r))],bar1:["bar","barColor".concat(Object(g.a)(r)),("indeterminate"===n||"query"===n)&&"bar1Indeterminate","determinate"===n&&"bar1Determinate","buffer"===n&&"bar1Buffer"],bar2:["bar","buffer"!==n&&"barColor".concat(Object(g.a)(r)),"buffer"===n&&"color".concat(Object(g.a)(r)),("indeterminate"===n||"query"===n)&&"bar2Indeterminate","buffer"===n&&"bar2Buffer"]};return Object(p.a)(i,x.b,t)}(v),_=Object(m.a)(),S={},O={bar1:{},bar2:{}};if("determinate"===f||"buffer"===f)if(void 0!==a){S["aria-valuenow"]=Math.round(a),S["aria-valuemin"]=0,S["aria-valuemax"]=100;var k=a-100;"rtl"===_.direction&&(k=-k),O.bar1.transform="translateX(".concat(k,"%)")}else 0;if("buffer"===f)if(void 0!==s){var E=(s||0)-100;"rtl"===_.direction&&(E=-E),O.bar2.transform="translateX(".concat(E,"%)")}else 0;return(Object(w.jsxs)(D,Object(l.a)({className:Object(d.default)(y.root,r),ownerState:v,role:"progressbar"},S,{ref:t},h,{children:["buffer"===f?Object(w.jsx)(L,{className:y.dashed,ownerState:v}):null,Object(w.jsx)(N,{className:y.bar1,ownerState:v,style:O.bar1}),"determinate"===f?null:Object(w.jsx)(F,{className:y.bar2,ownerState:v,style:O.bar2})]})))}));t.a=B},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(17),s=n(158),u=n(325),c=n(113),l=n(20),f=n(15),d=n(535),p=n(5);function h(e){return(h="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 v(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==h(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==h(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===h(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],m=Object(f.a)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[v({},"& .".concat(d.a.primary),t.primary),v({},"& .".concat(d.a.secondary),t.secondary),t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})((function(e){var t=e.ownerState;return Object(i.a)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},t.primary&&t.secondary&&{marginTop:6,marginBottom:6},t.inset&&{paddingLeft:56})})),y=o.forwardRef((function(e,t){var n=Object(l.a)({props:e,name:"MuiListItemText"}),f=n.children,h=n.className,v=n.disableTypography,y=void 0!==v&&v,b=n.inset,x=void 0!==b&&b,w=n.primary,_=n.primaryTypographyProps,S=n.secondary,O=n.secondaryTypographyProps,k=Object(r.a)(n,g),E=o.useContext(c.a).dense,j=null!=w?w:f,T=S,C=Object(i.a)({},n,{disableTypography:y,inset:x,primary:!!j,secondary:!!T,dense:E}),A=function(e){var t=e.classes,n=e.inset,r=e.primary,i=e.secondary,o={root:["root",n&&"inset",e.dense&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]};return Object(s.a)(o,d.b,t)}(C);return null==j||j.type===u.a||y||(j=Object(p.jsx)(u.a,Object(i.a)({variant:E?"body2":"body1",className:A.primary,component:"span",display:"block"},_,{children:j}))),null==T||T.type===u.a||y||(T=Object(p.jsx)(u.a,Object(i.a)({variant:"body2",className:A.secondary,color:"text.secondary",display:"block"},O,{children:T}))),Object(p.jsxs)(m,Object(i.a)({className:Object(a.default)(A.root,h),ownerState:C,ref:t},k,{children:[j,T]}))}));t.a=y},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(17),s=n(158),u=n(177),c=n(15),l=n(20),f=n(848),d=n(5),p=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],h=Object(c.a)("div",{name:"MuiDivider",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin"},n.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},n.light&&{borderColor:t.vars?"rgba(".concat(t.vars.palette.dividerChannel," / 0.08)"):Object(u.a)(t.palette.divider,.08)},"inset"===n.variant&&{marginLeft:72},"middle"===n.variant&&"horizontal"===n.orientation&&{marginLeft:t.spacing(2),marginRight:t.spacing(2)},"middle"===n.variant&&"vertical"===n.orientation&&{marginTop:t.spacing(1),marginBottom:t.spacing(1)},"vertical"===n.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},n.flexItem&&{alignSelf:"stretch",height:"auto"})}),(function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({},n.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{position:"relative",width:"100%",borderTop:"thin solid ".concat((t.vars||t).palette.divider),top:"50%",content:'""',transform:"translateY(50%)"}})}),(function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({},n.children&&"vertical"===n.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",top:"0%",left:"50%",borderTop:0,borderLeft:"thin solid ".concat((t.vars||t).palette.divider),transform:"translateX(0%)"}})}),(function(e){var t=e.ownerState;return Object(i.a)({},"right"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})})),v=Object(c.a)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:function(e,t){var n=e.ownerState;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({display:"inline-block",paddingLeft:"calc(".concat(t.spacing(1)," * 1.2)"),paddingRight:"calc(".concat(t.spacing(1)," * 1.2)")},"vertical"===n.orientation&&{paddingTop:"calc(".concat(t.spacing(1)," * 1.2)"),paddingBottom:"calc(".concat(t.spacing(1)," * 1.2)")})})),g=o.forwardRef((function(e,t){var n=Object(l.a)({props:e,name:"MuiDivider"}),o=n.absolute,u=void 0!==o&&o,c=n.children,g=n.className,m=n.component,y=void 0===m?c?"div":"hr":m,b=n.flexItem,x=void 0!==b&&b,w=n.light,_=void 0!==w&&w,S=n.orientation,O=void 0===S?"horizontal":S,k=n.role,E=void 0===k?"hr"!==y?"separator":void 0:k,j=n.textAlign,T=void 0===j?"center":j,C=n.variant,A=void 0===C?"fullWidth":C,P=Object(r.a)(n,p),M=Object(i.a)({},n,{absolute:u,component:y,flexItem:x,light:_,orientation:O,role:E,textAlign:T,variant:A}),I=function(e){var t=e.absolute,n=e.children,r=e.classes,i=e.flexItem,o=e.light,a=e.orientation,u=e.textAlign,c={root:["root",t&&"absolute",e.variant,o&&"light","vertical"===a&&"vertical",i&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===u&&"vertical"!==a&&"textAlignRight","left"===u&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]};return Object(s.a)(c,f.b,r)}(M);return Object(d.jsx)(h,Object(i.a)({as:y,className:Object(a.default)(I.root,g),role:E,ref:t,ownerState:M},P,{children:c?Object(d.jsx)(v,{className:I.wrapper,ownerState:M,children:c}):null}))}));t.a=g},function(e,t,n){"use strict";var r=n(6),i=n(16),o=n(2),a=n(630),s=n(193),u=n(62),c=n(76),l=n(137),f=n(155),d=n(5),p=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function h(e,t,n){var r,i=function(e,t,n){var r,i=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),a=Object(f.a)(t);if(t.fakeTransform)r=t.fakeTransform;else{var s=a.getComputedStyle(t);r=s.getPropertyValue("-webkit-transform")||s.getPropertyValue("transform")}var u=0,c=0;if(r&&"none"!==r&&"string"==typeof r){var l=r.split("(")[1].split(")")[0].split(",");u=parseInt(l[4],10),c=parseInt(l[5],10)}return"left"===e?"translateX(".concat(o?o.right+u-i.left:a.innerWidth+u-i.left,"px)"):"right"===e?"translateX(-".concat(o?i.right-o.left-u:i.left+i.width-u,"px)"):"up"===e?"translateY(".concat(o?o.bottom+c-i.top:a.innerHeight+c-i.top,"px)"):"translateY(-".concat(o?i.top-o.top+i.height-c:i.top+i.height-c,"px)")}(e,t,"function"==typeof(r=n)?r():r);i&&(t.style.webkitTransform=i,t.style.transform=i)}var v=o.forwardRef((function(e,t){var n=Object(c.a)(),v={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},g={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},m=e.addEndListener,y=e.appear,b=void 0===y||y,x=e.children,w=e.container,_=e.direction,S=void 0===_?"down":_,O=e.easing,k=void 0===O?v:O,E=e.in,j=e.onEnter,T=e.onEntered,C=e.onEntering,A=e.onExit,P=e.onExited,M=e.onExiting,I=e.style,R=e.timeout,D=void 0===R?g:R,L=e.TransitionComponent,N=void 0===L?a.a:L,F=Object(i.a)(e,p),B=o.useRef(null),U=Object(u.a)(x.ref,B),z=Object(u.a)(U,t),V=function(e){return function(t){e&&(void 0===t?e(B.current):e(B.current,t))}},H=V((function(e,t){h(S,e,w),Object(l.b)(e),j&&j(e,t)})),W=V((function(e,t){var i=Object(l.a)({timeout:D,style:I,easing:k},{mode:"enter"});e.style.webkitTransition=n.transitions.create("-webkit-transform",Object(r.a)({},i)),e.style.transition=n.transitions.create("transform",Object(r.a)({},i)),e.style.webkitTransform="none",e.style.transform="none",C&&C(e,t)})),q=V(T),G=V(M),Y=V((function(e){var t=Object(l.a)({timeout:D,style:I,easing:k},{mode:"exit"});e.style.webkitTransition=n.transitions.create("-webkit-transform",t),e.style.transition=n.transitions.create("transform",t),h(S,e,w),A&&A(e)})),K=V((function(e){e.style.webkitTransition="",e.style.transition="",P&&P(e)})),$=o.useCallback((function(){B.current&&h(S,B.current,w)}),[S,w]);return o.useEffect((function(){if(!E&&"down"!==S&&"right"!==S){var e=Object(s.a)((function(){B.current&&h(S,B.current,w)})),t=Object(f.a)(B.current);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}}),[S,E,w]),o.useEffect((function(){E||$()}),[E,$]),Object(d.jsx)(N,Object(r.a)({nodeRef:B,onEnter:H,onEntered:q,onEntering:W,onExit:Y,onExited:K,onExiting:G,addEndListener:function(e){m&&m(B.current,e)},appear:b,in:E,timeout:D},F,{children:function(e,t){return o.cloneElement(x,Object(r.a)({ref:z,style:Object(r.a)({visibility:"exited"!==e||E?void 0:"hidden"},I,x.props.style)},t))}}))}));t.a=v},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(17),s=n(158),u=n(15),c=n(20),l=n(849),f=n(113),d=n(5),p=["className"],h=Object(u.a)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===n.alignItems&&{marginTop:8})})),v=o.forwardRef((function(e,t){var n=Object(c.a)({props:e,name:"MuiListItemIcon"}),u=n.className,v=Object(r.a)(n,p),g=o.useContext(f.a),m=Object(i.a)({},n,{alignItems:g.alignItems}),y=function(e){var t=e.alignItems,n=e.classes,r={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return Object(s.a)(r,l.b,n)}(m);return Object(d.jsx)(h,Object(i.a)({className:Object(a.default)(y.root,u),ownerState:m,ref:t},v))}));t.a=v},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(17),s=n(158),u=n(177),c=n(15),l=n(20),f=n(887),d=n(120),p=n(62),h=n(113),v=n(324),g=n(5);function m(e){return(m="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 y(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==m(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===m(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected"],x=Object(c.a)(f.a,{shouldForwardProp:function(e){return Object(c.b)(e)||"classes"===e},name:"MuiListItemButton",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((function(e){var t=e.theme,n=e.ownerState;return Object(i.a)(y(y(y(y({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},"&.".concat(v.a.selected),y({backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):Object(u.a)(t.palette.primary.main,t.palette.action.selectedOpacity)},"&.".concat(v.a.focusVisible),{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):Object(u.a)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)})),"&.".concat(v.a.selected,":hover"),{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):Object(u.a)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):Object(u.a)(t.palette.primary.main,t.palette.action.selectedOpacity)}}),"&.".concat(v.a.focusVisible),{backgroundColor:(t.vars||t).palette.action.focus}),"&.".concat(v.a.disabled),{opacity:(t.vars||t).palette.action.disabledOpacity}),n.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},"flex-start"===n.alignItems&&{alignItems:"flex-start"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.dense&&{paddingTop:4,paddingBottom:4})})),w=o.forwardRef((function(e,t){var n=Object(l.a)({props:e,name:"MuiListItemButton"}),u=n.alignItems,c=void 0===u?"center":u,f=n.autoFocus,m=void 0!==f&&f,y=n.component,w=void 0===y?"div":y,_=n.children,S=n.dense,O=void 0!==S&&S,k=n.disableGutters,E=void 0!==k&&k,j=n.divider,T=void 0!==j&&j,C=n.focusVisibleClassName,A=n.selected,P=void 0!==A&&A,M=Object(r.a)(n,b),I=o.useContext(h.a),R={dense:O||I.dense||!1,alignItems:c,disableGutters:E},D=o.useRef(null);Object(d.a)((function(){m&&D.current&&D.current.focus()}),[m]);var L=Object(i.a)({},n,{alignItems:c,dense:R.dense,disableGutters:E,divider:T,selected:P}),N=function(e){var t=e.alignItems,n=e.classes,r=e.dense,o=e.disabled,a={root:["root",r&&"dense",!e.disableGutters&&"gutters",e.divider&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",e.selected&&"selected"]},u=Object(s.a)(a,v.b,n);return Object(i.a)({},n,u)}(L),F=Object(p.a)(D,t);return Object(g.jsx)(h.a.Provider,{value:R,children:Object(g.jsx)(x,Object(i.a)({ref:F,href:M.href||M.to,component:(M.href||M.to)&&"div"===w?"a":w,focusVisibleClassName:Object(a.default)(N.focusVisible,C),ownerState:L},M,{classes:N,children:_}))})}));t.a=w},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(361),i=n(21);function o(e){return Object(i.a)(1,arguments),Object(r.a)(e,Date.now())}},function(e,t,n){"use strict";var r={};n.r(r),n.d(r,"document",(function(){return pt})),n.d(r,"contentInitial",(function(){return ht})),n.d(r,"flowInitial",(function(){return vt})),n.d(r,"flow",(function(){return gt})),n.d(r,"string",(function(){return mt})),n.d(r,"text",(function(){return yt})),n.d(r,"insideSpan",(function(){return bt})),n.d(r,"attentionMarkers",(function(){return xt})),n.d(r,"disable",(function(){return wt}));var i={};n.r(i),n.d(i,"boolean",(function(){return kn})),n.d(i,"booleanish",(function(){return En})),n.d(i,"overloadedBoolean",(function(){return jn})),n.d(i,"number",(function(){return Tn})),n.d(i,"spaceSeparated",(function(){return Cn})),n.d(i,"commaSeparated",(function(){return An})),n.d(i,"commaOrSpaceSeparated",(function(){return Pn}));var o=n(2),a=n.n(o),s=n(851),u=n.n(s);function c(e){return(c="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){return e&&"object"===c(e)?"position"in e||"type"in e?d(e.position):"start"in e||"end"in e?d(e):"line"in e||"column"in e?f(e):"":""}function f(e){return p(e&&e.line)+":"+p(e&&e.column)}function d(e){return f(e&&e.start)+"-"+f(e&&e.end)}function p(e){return e&&"number"==typeof e?e:1}class h extends Error{constructor(e,t,n){const r=[null,null];let i={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"==typeof t&&(n=t,t=void 0),"string"==typeof n){const e=n.indexOf(":");-1===e?r[1]=n:(r[0]=n.slice(0,e),r[1]=n.slice(e+1))}t&&("type"in t||"position"in t?t.position&&(i=t.position):"start"in t||"end"in t?i=t:("line"in t||"column"in t)&&(i.start=t)),this.name=l(t)||"1:1",this.message="object"==typeof e?e.message:e,this.stack="object"==typeof e?e.stack:"",this.reason=this.message,this.fatal,this.line=i.start.line,this.column=i.start.column,this.source=r[0],this.ruleId=r[1],this.position=i,this.actual,this.expected,this.file,this.url,this.note}}h.prototype.file="",h.prototype.name="",h.prototype.reason="",h.prototype.message="",h.prototype.stack="",h.prototype.fatal=null,h.prototype.column=null,h.prototype.line=null,h.prototype.source=null,h.prototype.ruleId=null,h.prototype.position=null;const v={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');g(e);let n,r=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.charCodeAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let a=-1,s=t.length-1;for(;o--;)if(47===e.charCodeAt(o)){if(n){r=o+1;break}}else a<0&&(n=!0,a=o+1),s>-1&&(e.charCodeAt(o)===t.charCodeAt(s--)?s<0&&(i=o):(s=-1,i=a));r===i?i=a:i<0&&(i=e.length);return e.slice(r,i)},dirname:function(e){if(g(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.charCodeAt(0)?"/":".":1===n&&47===e.charCodeAt(0)?"//":e.slice(0,n)},extname:function(e){g(e);let t,n=e.length,r=-1,i=0,o=-1,a=0;for(;n--;){const s=e.charCodeAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?o<0?o=n:1!==a&&(a=1):o>-1&&(a=-1);else if(t){i=n+1;break}}if(o<0||r<0||0===a||1===a&&o===r-1&&o===i+1)return"";return e.slice(o,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)g(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){g(e);const t=47===e.charCodeAt(0);let n=function(e,t){let n,r,i="",o=0,a=-1,s=0,u=-1;for(;++u<=e.length;){if(u<e.length)n=e.charCodeAt(u);else{if(47===n)break;n=47}if(47===n){if(a===u-1||1===s);else if(a!==u-1&&2===s){if(i.length<2||2!==o||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2))if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",o=0):(i=i.slice(0,r),o=i.length-1-i.lastIndexOf("/")),a=u,s=0;continue}}else if(i.length>0){i="",o=0,a=u,s=0;continue}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(a+1,u):i=e.slice(a+1,u),o=u-a-1;a=u,s=0}else 46===n&&s>-1?s++:s=-1}return i}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.charCodeAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function g(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const m={cwd:function(){return"/"}};function y(e){return null!==e&&"object"==typeof e&&e.href&&e.origin}function b(e){if("string"==typeof e)e=new URL(e);else if(!y(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.charCodeAt(n)&&50===t.charCodeAt(n+1)){const e=t.charCodeAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const x=["history","path","basename","stem","extname","dirname"];class w{constructor(e){let t;t=e?"string"==typeof e||u()(e)?{value:e}:y(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=m.cwd(),this.value,this.stored,this.result,this.map;let n,r=-1;for(;++r<x.length;){const e=x[r];e in t&&void 0!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)x.includes(n)||(this[n]=t[n])}get path(){return this.history[this.history.length-1]}set path(e){y(e)&&(e=b(e)),S(e,"path"),this.path!==e&&this.history.push(e)}get dirname(){return"string"==typeof this.path?v.dirname(this.path):void 0}set dirname(e){O(this.basename,"dirname"),this.path=v.join(e||"",this.basename)}get basename(){return"string"==typeof this.path?v.basename(this.path):void 0}set basename(e){S(e,"basename"),_(e,"basename"),this.path=v.join(this.dirname||"",e)}get extname(){return"string"==typeof this.path?v.extname(this.path):void 0}set extname(e){if(_(e,"extname"),O(this.dirname,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=v.join(this.dirname,this.stem+(e||""))}get stem(){return"string"==typeof this.path?v.basename(this.path,this.extname):void 0}set stem(e){S(e,"stem"),_(e,"stem"),this.path=v.join(this.dirname||"",e+(this.extname||""))}toString(e){return(this.value||"").toString(e)}message(e,t,n){const r=new h(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=null,r}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}}function _(e,t){if(e&&e.includes(v.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+v.sep+"`")}function S(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function O(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function k(e){if(e)throw e}var E=n(850),j=n.n(E),T=n(621),C=n.n(T);function A(e){return(A="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 P(e){if("object"!==A(e)||null===e)return!1;var t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function M(e){return function(e){if(Array.isArray(e))return I(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return I(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return I(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function R(){var e=[],t={run:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=-1,o=n.pop();if("function"!=typeof o)throw new TypeError("Expected function as last argument, not "+o);(function t(r){var a=e[++i],s=-1;if(r)o(r);else{for(var u=arguments.length,c=new Array(u>1?u-1:0),l=1;l<u;l++)c[l-1]=arguments[l];for(;++s<n.length;)null!==c[s]&&void 0!==c[s]||(c[s]=n[s]);n=c,a?function(e,t){var n;return(function(){for(var t=arguments.length,o=new Array(t),a=0;a<t;a++)o[a]=arguments[a];var s,u=e.length>o.length;u&&o.push(r);try{s=e.apply(this,o)}catch(e){var c=e;if(u&&n)throw c;return r(c)}u||(s instanceof Promise?s.then(i,r):s instanceof Error?r(s):i(s))});function r(e){if(!n){n=!0;for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];t.apply(void 0,[e].concat(i))}}function i(e){r(null,e)}}(a,t).apply(void 0,c):o.apply(void 0,[null].concat(c))}}).apply(void 0,[null].concat(M(n)))},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}function D(e){return(D="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){return function(e){if(Array.isArray(e))return e}(e)||B(e)||F(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(e){return function(e){if(Array.isArray(e))return U(e)}(e)||B(e)||F(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(e,t){if(e){if("string"==typeof e)return U(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?U(e,t):void 0}}function B(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var z=function e(){var t,n=R(),r=[],i={},o=-1;return a.data=function(e,n){if("string"==typeof e)return 2===arguments.length?(G("data",t),i[e]=n,a):V.call(i,e)&&i[e]||null;if(e)return G("data",t),i=e,a;return i},a.Parser=void 0,a.Compiler=void 0,a.freeze=function(){if(t)return a;for(;++o<r.length;){var e=L(r[o]),i=e[0],s=e.slice(1);if(!1!==s[0]){!0===s[0]&&(s[0]=void 0);var u=i.call.apply(i,[a].concat(N(s)));"function"==typeof u&&n.use(u)}}return t=!0,o=Number.POSITIVE_INFINITY,a},a.attachers=r,a.use=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];var u;if(G("use",t),null==e);else if("function"==typeof e)d.apply(void 0,[e].concat(o));else{if("object"!==D(e))throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?f(e):l(e)}u&&(i.settings=Object.assign(i.settings||{},u));return a;function c(e){if("function"==typeof e)d(e);else{if("object"!==D(e))throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){var t=L(e),n=t[0],r=t.slice(1);d.apply(void 0,[n].concat(N(r)))}else l(e)}}function l(e){f(e.plugins),e.settings&&(u=Object.assign(u||{},e.settings))}function f(e){var t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){c(e[t])}}}function d(e,t){for(var n,i=-1;++i<r.length;)if(r[i][0]===e){n=r[i];break}n?(P(n[1])&&P(t)&&(t=C()(!0,n[1],t)),n[1]=t):r.push(Array.prototype.slice.call(arguments))}},a.parse=function(e){a.freeze();var t=$(e),n=a.Parser;if(W("parse",n),H(n,"parse"))return new n(String(t),t).parse();return n(String(t),t)},a.stringify=function(e,t){a.freeze();var n=$(t),r=a.Compiler;if(q("stringify",r),Y(e),H(r,"compile"))return new r(e,n).compile();return r(e,n)},a.run=function(e,t,r){Y(e),a.freeze(),r||"function"!=typeof t||(r=t,t=void 0);if(!r)return new Promise(i);function i(i,o){n.run(e,$(t),(function(t,n,a){n=n||e,t?o(t):i?i(n):r(null,n,a)}))}i(null,r)},a.runSync=function(e,t){var n,r;return a.run(e,t,(function(e,t){k(e),n=t,r=!0})),K("runSync","run",r),n},a.process=function(e,t){if(a.freeze(),W("process",a.Parser),q("process",a.Compiler),!t)return new Promise(n);function n(n,r){var i=$(e);function o(e,i){e||!i?r(e):n?n(i):t(null,i)}a.run(a.parse(i),i,(function(e,t,n){if(!e&&t&&n){var r=a.stringify(t,n);null==r||("string"==typeof(i=r)||j()(i)?n.value=r:n.result=r),o(e,n)}else o(e);var i}))}n(null,t)},a.processSync=function(e){var t;a.freeze(),W("processSync",a.Parser),q("processSync",a.Compiler);var n=$(e);return a.process(n,(function(e){t=!0,k(e)})),K("processSync","process",t),n},a;function a(){for(var t=e(),n=-1;++n<r.length;)t.use.apply(t,N(r[n]));return t.data(C()(!0,{},i)),t}}().freeze(),V={}.hasOwnProperty;function H(e,t){return"function"==typeof e&&e.prototype&&(function(e){var t;for(t in e)if(V.call(e,t))return!0;return!1}(e.prototype)||t in e.prototype)}function W(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `Parser`")}function q(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `Compiler`")}function G(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Y(e){if(!P(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function K(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function $(e){return function(e){return Boolean(e&&"object"===D(e)&&"message"in e&&"messages"in e)}(e)?e:new w(e)}function X(e,t){return e&&"object"==typeof e&&(e.value||(t?e.alt:"")||"children"in e&&Q(e.children,t)||Array.isArray(e)&&Q(e,t))||""}function Q(e,t){for(var n=[],r=-1;++r<e.length;)n[r]=X(e[r],t);return n.join("")}function Z(e,t,n,r){const i=e.length;let o,a=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)(o=Array.from(r)).unshift(t,n),[].splice.apply(e,o);else for(n&&[].splice.apply(e,[t,n]);a<r.length;)(o=r.slice(a,a+1e4)).unshift(t,0),[].splice.apply(e,o),a+=1e4,t+=1e4}function J(e,t){return e.length>0?(Z(e,e.length,0,t),e):t}const ee={}.hasOwnProperty;function te(e,t){let n;for(n in t){const r=(ee.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;for(o in i){ee.call(r,o)||(r[o]=[]);const e=i[o];ne(r[o],Array.isArray(e)?e:e?[e]:[])}}}function ne(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);Z(e,0,0,r)}const re=ve(/[A-Za-z]/),ie=ve(/\d/),oe=ve(/[\dA-Fa-f]/),ae=ve(/[\dA-Za-z]/),se=ve(/[!-/:-@[-`{-~]/),ue=ve(/[#-'*+\--9=?A-Z^-~]/);function ce(e){return null!==e&&(e<32||127===e)}function le(e){return null!==e&&(e<0||32===e)}function fe(e){return null!==e&&e<-2}function de(e){return-2===e||-1===e||32===e}const pe=ve(/\s/),he=ve(/[!-/:-@[-`{-~\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/);function ve(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}function ge(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return(function(r){if(de(r))return e.enter(n),a(r);return t(r)});function a(r){return de(r)&&o++<i?(e.consume(r),a):(e.exit(n),t(r))}}const me={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ge(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),r(t)}));let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,i(t)}function i(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):fe(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),i)}}};const ye={tokenize:function(e){const t=this,n=[];let r,i,o,a=0;return s;function s(r){if(a<n.length){const i=n[a];return t.containerState=i[1],e.attempt(i[0].continuation,u,c)(r)}return c(r)}function u(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&y();const n=t.events.length;let i,o=n;for(;o--;)if("exit"===t.events[o][0]&&"chunkFlow"===t.events[o][1].type){i=t.events[o][1].end;break}m(a);let s=n;for(;s<t.events.length;)t.events[s][1].end=Object.assign({},i),s++;return Z(t.events,o+1,0,t.events.slice(n)),t.events.length=s,c(e)}return s(e)}function c(i){if(a===n.length){if(!r)return d(i);if(r.currentConstruct&&r.currentConstruct.concrete)return h(i);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(be,l,f)(i)}function l(e){return r&&y(),m(a),d(e)}function f(e){return t.parser.lazy[t.now().line]=a!==n.length,o=t.now().offset,h(e)}function d(n){return t.containerState={},e.attempt(be,p,h)(n)}function p(e){return a++,n.push([t.currentConstruct,t.containerState]),d(e)}function h(n){return null===n?(r&&y(),m(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:r}),v(n))}function v(n){return null===n?(g(e.exit("chunkFlow"),!0),m(0),void e.consume(n)):fe(n)?(e.consume(n),g(e.exit("chunkFlow")),a=0,t.interrupt=void 0,s):(e.consume(n),v)}function g(e,n){const s=t.sliceStream(e);if(n&&s.push(null),e.previous=i,i&&(i.next=e),i=e,r.defineSkip(e.start),r.write(s),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<o&&(!r.events[e][1].end||r.events[e][1].end.offset>o))return;const n=t.events.length;let i,s,u=n;for(;u--;)if("exit"===t.events[u][0]&&"chunkFlow"===t.events[u][1].type){if(i){s=t.events[u][1].end;break}i=!0}for(m(a),e=n;e<t.events.length;)t.events[e][1].end=Object.assign({},s),e++;Z(t.events,u+1,0,t.events.slice(n)),t.events.length=e}}function m(r){let i=n.length;for(;i-- >r;){const r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function y(){r.write([null]),i=void 0,r=void 0,t.containerState._closeFlow=void 0}}},be={tokenize:function(e,t,n){return ge(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const xe={tokenize:function(e,t,n){return ge(e,(function(e){return null===e||fe(e)?t(e):n(e)}),"linePrefix")},partial:!0};function we(e){const t={};let n,r,i,o,a,s,u,c=-1;for(;++c<e.length;){for(;c in t;)c=t[c];if(n=e[c],c&&"chunkFlow"===n[1].type&&"listItemPrefix"===e[c-1][1].type&&((i=0)<(s=n[1]._tokenizer.events).length&&"lineEndingBlank"===s[i][1].type&&(i+=2),i<s.length&&"content"===s[i][1].type))for(;++i<s.length&&"content"!==s[i][1].type;)"chunkText"===s[i][1].type&&(s[i][1]._isInFirstContentOfListItem=!0,i++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,_e(e,c)),c=t[c],u=!0);else if(n[1]._container){for(i=c,r=void 0;i--&&("lineEnding"===(o=e[i])[1].type||"lineEndingBlank"===o[1].type);)"enter"===o[0]&&(r&&(e[r][1].type="lineEndingBlank"),o[1].type="lineEnding",r=i);r&&(n[1].end=Object.assign({},e[r][1].start),(a=e.slice(r,c)).unshift(n),Z(e,r,c-r+1,a))}}return!u}function _e(e,t){const n=e[t][1],r=e[t][2];let i=t-1;const o=[],a=n._tokenizer||r.parser[n.contentType](n.start),s=a.events,u=[],c={};let l,f,d=-1,p=n,h=0,v=0;const g=[v];for(;p;){for(;e[++i][1]!==p;);o.push(i),p._tokenizer||(l=r.sliceStream(p),p.next||l.push(null),f&&a.defineSkip(p.start),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(l),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=n;++d<s.length;)"exit"===s[d][0]&&"enter"===s[d-1][0]&&s[d][1].type===s[d-1][1].type&&s[d][1].start.line!==s[d][1].end.line&&(v=d+1,g.push(v),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(a.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),d=g.length;d--;){const t=s.slice(g[d],g[d+1]),n=o.pop();u.unshift([n,n+t.length-1]),Z(e,n,2,t)}for(d=-1;++d<u.length;)c[h+u[d][0]]=h+u[d][1],h+=u[d][1]-u[d][0]-1;return c}const Se={tokenize:function(e,t){let n;return(function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)});function r(t){return null===t?i(t):fe(t)?e.check(Oe,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return we(e),e}},Oe={tokenize:function(e,t,n){const r=this;return(function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ge(e,i,"linePrefix")});function i(i){if(null===i||fe(i))return n(i);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}},partial:!0};const ke={tokenize:function(e){const t=this,n=e.attempt(xe,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,ge(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Se,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const Ee={resolveAll:Ae()},je=Ce("string"),Te=Ce("text");function Ce(e){return{tokenize:function(t){const n=this,r=this.parser.constructs[e],i=t.attempt(r,o,a);return o;function o(e){return u(e)?i(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return u(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function u(e){if(null===e)return!0;const t=r[e];let i=-1;if(t)for(;++i<t.length;){const e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}},resolveAll:Ae("text"===e?Pe:void 0)}}function Ae(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function Pe(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],i=t.sliceStream(r);let o,a=i.length,s=-1,u=0;for(;a--;){const e=i[a];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)u++,s--;if(s)break;s=-1}else if(-2===e)o=!0,u++;else if(-1!==e){a++;break}}if(u){const i={type:n===e.length||o||u<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-u,offset:r.end.offset-u,_index:r.start._index+a,_bufferIndex:a?s:r.start._bufferIndex+s},end:Object.assign({},r.end)};r.end=Object.assign({},i.start),r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,["enter",i,t],["exit",i,t]),n+=2)}n++}return e}function Me(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}function Ie(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},o=[];let a=[],s=[],u=!0;const c={consume:function(e){fe(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,x()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++));l.previous=e,u=!0},enter:function(e,t){const n=t||{};return n.type=e,n.start=h(),l.events.push(["enter",n,l]),s.push(n),n},exit:function(e){const t=s.pop();return t.end=h(),l.events.push(["exit",t,l]),t},attempt:y((function(e,t){b(e,t.from)})),check:y(m),interrupt:y(m,{interrupt:!0})},l={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:p,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let a;if("string"==typeof o)a=o;else switch(o){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&i)continue;a=" ";break;default:a=String.fromCharCode(o)}i=-2===o,r.push(a)}return r.join("")}(p(e),t)},now:h,defineSkip:function(e){i[e.line]=e.column,x()},write:function(e){if(a=J(a,e),v(),null!==a[a.length-1])return[];return b(t,0),l.events=Me(o,l.events,l),l.events}};let f,d=t.tokenize.call(l,c);return t.resolveAll&&o.push(t),l;function p(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let a;n===i?a=[e[n].slice(r,o)]:(a=e.slice(n,i),r>-1&&(a[0]=a[0].slice(r)),o>0&&a.push(e[i].slice(0,o)));return a}(a,e)}function h(){return Object.assign({},r)}function v(){let e;for(;r._index<a.length;){const t=a[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)g(t.charCodeAt(r._bufferIndex));else g(t)}}function g(e){u=void 0,f=e,d=d(e)}function m(e,t){t.restore()}function y(e,t){return function(n,i,o){let a,f,d,p;return Array.isArray(n)?g(n):"tokenize"in n?g([n]):(v=n,function(e){const t=null!==e&&v[e],n=null!==e&&v.null;return g([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});var v;function g(e){return a=e,f=0,0===e.length?o:m(e[f])}function m(e){return function(n){p=function(){const e=h(),t=l.previous,n=l.currentConstruct,i=l.events.length,o=Array.from(s);return{restore:function(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=o,x()},from:i}}(),d=e,e.partial||(l.currentConstruct=e);if(e.name&&l.parser.constructs.disable.null.includes(e.name))return b(n);return e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,y,b)(n)}}function y(t){return u=!0,e(d,p),i}function b(e){return u=!0,p.restore(),++f<a.length?m(a[f]):o}}}function b(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&Z(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function x(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}const Re={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return(function(t){return e.enter("thematicBreak"),r=t,o(t)});function o(s){return s===r?(e.enter("thematicBreakSequence"),a(s)):de(s)?ge(e,o,"whitespace")(s):i<3||null!==s&&!fe(s)?n(s):(e.exit("thematicBreak"),t(s))}function a(t){return t===r?(e.consume(t),i++,a):(e.exit("thematicBreakSequence"),o(t))}}};const De={name:"list",tokenize:function(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,a=0;return(function(t){const i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:ie(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(Re,n,u)(t):u(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)});function s(t){return ie(t)&&++a<10?(e.consume(t),s):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),u(t)):n(t)}function u(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(xe,r.interrupt?n:c,e.attempt(Le,f,l))}function c(e){return r.containerState.initialBlankLine=!0,o++,f(e)}function l(t){return de(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),f):n(t)}function f(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(xe,(function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ge(e,t,"listItemIndent",r.containerState.size+1)(n)}),(function(n){if(r.containerState.furtherBlankLines||!de(n))return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n);return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Ne,t,i)(n)}));function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,ge(e,e.attempt(De,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},Le={tokenize:function(e,t,n){const r=this;return ge(e,(function(e){const i=r.events[r.events.length-1];return!de(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},Ne={tokenize:function(e,t,n){const r=this;return ge(e,(function(e){const i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0};const Fe={name:"blockQuote",tokenize:function(e,t,n){const r=this;return(function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)});function i(n){return de(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){return ge(e,e.attempt(Fe,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},exit:function(e){e.exit("blockQuote")}};function Be(e,t,n,r,i,o,a,s,u){const c=u||Number.POSITIVE_INFINITY;let l=0;return(function(t){if(60===t)return e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),f;if(null===t||41===t||ce(t))return n(t);return e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),h(t)});function f(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),d(n))}function d(t){return 62===t?(e.exit("chunkString"),e.exit(s),f(t)):null===t||60===t||fe(t)?n(t):(e.consume(t),92===t?p:d)}function p(t){return 60===t||62===t||92===t?(e.consume(t),d):d(t)}function h(i){return 40===i?++l>c?n(i):(e.consume(i),h):41===i?l--?(e.consume(i),h):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(i)):null===i||le(i)?l?n(i):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(i)):ce(i)?n(i):(e.consume(i),92===i?v:h)}function v(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function Ue(e,t,n,r,i,o){const a=this;let s,u=0;return(function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(o),c});function c(f){return null===f||91===f||93===f&&!s||94===f&&!u&&"_hiddenFootnoteSupport"in a.parser.constructs||u>999?n(f):93===f?(e.exit(o),e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):fe(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),l(f))}function l(t){return null===t||91===t||93===t||fe(t)||u++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s=s||!de(t),92===t?f:l)}function f(t){return 91===t||92===t||93===t?(e.consume(t),u++,l):l(t)}}function ze(e,t,n,r,i,o){let a;return(function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),a=40===t?41:t,s});function s(n){return n===a?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),u(n))}function u(t){return t===a?(e.exit(o),s(a)):null===t?n(t):fe(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ge(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||fe(t)?(e.exit("chunkString"),u(t)):(e.consume(t),92===t?l:c)}function l(t){return t===a||92===t?(e.consume(t),c):c(t)}}function Ve(e,t){let n;return(function r(i){if(fe(i))return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r;if(de(i))return ge(e,r,n?"linePrefix":"lineSuffix")(i);return t(i)})}function He(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const We={name:"definition",tokenize:function(e,t,n){const r=this;let i;return(function(t){return e.enter("definition"),Ue.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)});function o(t){return i=He(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),Ve(e,Be(e,e.attempt(qe,ge(e,a,"whitespace"),ge(e,a,"whitespace")),n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):n(t)}function a(o){return null===o||fe(o)?(e.exit("definition"),r.parser.defined.includes(i)||r.parser.defined.push(i),t(o)):n(o)}}},qe={tokenize:function(e,t,n){return function(t){return le(t)?Ve(e,r)(t):n(t)};function r(t){return 34===t||39===t||40===t?ze(e,ge(e,i,"whitespace"),n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t):n(t)}function i(e){return null===e||fe(e)?t(e):n(e)}},partial:!0};const Ge={name:"codeIndented",tokenize:function(e,t,n){const r=this;return(function(t){return e.enter("codeIndented"),ge(e,i,"linePrefix",5)(t)});function i(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return null===t?s(t):fe(t)?e.attempt(Ye,o,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||fe(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),a)}function s(n){return e.exit("codeIndented"),t(n)}}},Ye={tokenize:function(e,t,n){const r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):fe(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):ge(e,o,"linePrefix",5)(t)}function o(e){const o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):fe(e)?i(e):n(e)}},partial:!0};const Ke={name:"setextUnderline",tokenize:function(e,t,n){const r=this;let i,o,a=r.events.length;for(;a--;)if("lineEnding"!==r.events[a][1].type&&"linePrefix"!==r.events[a][1].type&&"content"!==r.events[a][1].type){o="paragraph"===r.events[a][1].type;break}return(function(t){if(!r.parser.lazy[r.now().line]&&(r.interrupt||o))return e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),i=t,s(t);return n(t)});function s(t){return t===i?(e.consume(t),s):(e.exit("setextHeadingLineSequence"),ge(e,u,"lineSuffix")(t))}function u(r){return null===r||fe(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);const a={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",a,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[i][1].end)):e[n][1]=a;return e.push(["exit",a,t]),e}};const $e=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Xe=["pre","script","style","textarea"],Qe={name:"htmlFlow",tokenize:function(e,t,n){const r=this;let i,o,a,s,u;return(function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c});function c(s){return 33===s?(e.consume(s),l):47===s?(e.consume(s),p):63===s?(e.consume(s),i=3,r.interrupt?t:R):re(s)?(e.consume(s),a=String.fromCharCode(s),o=!0,h):n(s)}function l(o){return 45===o?(e.consume(o),i=2,f):91===o?(e.consume(o),i=5,a="CDATA[",s=0,d):re(o)?(e.consume(o),i=4,r.interrupt?t:R):n(o)}function f(i){return 45===i?(e.consume(i),r.interrupt?t:R):n(i)}function d(i){return i===a.charCodeAt(s++)?(e.consume(i),s===a.length?r.interrupt?t:E:d):n(i)}function p(t){return re(t)?(e.consume(t),a=String.fromCharCode(t),h):n(t)}function h(s){return null===s||47===s||62===s||le(s)?47!==s&&o&&Xe.includes(a.toLowerCase())?(i=1,r.interrupt?t(s):E(s)):$e.includes(a.toLowerCase())?(i=6,47===s?(e.consume(s),v):r.interrupt?t(s):E(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):o?m(s):g(s)):45===s||ae(s)?(e.consume(s),a+=String.fromCharCode(s),h):n(s)}function v(i){return 62===i?(e.consume(i),r.interrupt?t:E):n(i)}function g(t){return de(t)?(e.consume(t),g):O(t)}function m(t){return 47===t?(e.consume(t),O):58===t||95===t||re(t)?(e.consume(t),y):de(t)?(e.consume(t),m):O(t)}function y(t){return 45===t||46===t||58===t||95===t||ae(t)?(e.consume(t),y):b(t)}function b(t){return 61===t?(e.consume(t),x):de(t)?(e.consume(t),b):m(t)}function x(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),u=t,w):de(t)?(e.consume(t),x):(u=null,_(t))}function w(t){return null===t||fe(t)?n(t):t===u?(e.consume(t),S):(e.consume(t),w)}function _(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t||le(t)?b(t):(e.consume(t),_)}function S(e){return 47===e||62===e||de(e)?m(e):n(e)}function O(t){return 62===t?(e.consume(t),k):n(t)}function k(t){return de(t)?(e.consume(t),k):null===t||fe(t)?E(t):n(t)}function E(t){return 45===t&&2===i?(e.consume(t),A):60===t&&1===i?(e.consume(t),P):62===t&&4===i?(e.consume(t),D):63===t&&3===i?(e.consume(t),R):93===t&&5===i?(e.consume(t),I):!fe(t)||6!==i&&7!==i?null===t||fe(t)?j(t):(e.consume(t),E):e.check(Ze,D,j)(t)}function j(t){return e.exit("htmlFlowData"),T(t)}function T(t){return null===t?L(t):fe(t)?e.attempt({tokenize:C,partial:!0},T,L)(t):(e.enter("htmlFlowData"),E(t))}function C(e,t,n){return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function A(t){return 45===t?(e.consume(t),R):E(t)}function P(t){return 47===t?(e.consume(t),a="",M):E(t)}function M(t){return 62===t&&Xe.includes(a.toLowerCase())?(e.consume(t),D):re(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),M):E(t)}function I(t){return 93===t?(e.consume(t),R):E(t)}function R(t){return 62===t?(e.consume(t),D):45===t&&2===i?(e.consume(t),R):E(t)}function D(t){return null===t||fe(t)?(e.exit("htmlFlowData"),L(t)):(e.consume(t),D)}function L(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},Ze={tokenize:function(e,t,n){return function(r){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(xe,t,n)}},partial:!0};const Je={name:"codeFenced",tokenize:function(e,t,n){const r=this,i={tokenize:function(e,t,n){let r=0;return ge(e,(function(t){return e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),i(t)}),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function i(t){return t===u?(e.consume(t),r++,i):r<c?n(t):(e.exit("codeFencedFenceSequence"),ge(e,o,"whitespace")(t))}function o(r){return null===r||fe(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0},o={tokenize:function(e,t,n){const r=this;return(function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i});function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},a=this.events[this.events.length-1],s=a&&"linePrefix"===a[1].type?a[2].sliceSerialize(a[1],!0).length:0;let u,c=0;return(function(t){return e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u=t,l(t)});function l(t){return t===u?(e.consume(t),c++,l):(e.exit("codeFencedFenceSequence"),c<3?n(t):ge(e,f,"whitespace")(t))}function f(t){return null===t||fe(t)?v(t):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return null===t||le(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ge(e,p,"whitespace")(t)):96===t&&t===u?n(t):(e.consume(t),d)}function p(t){return null===t||fe(t)?v(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),h(t))}function h(t){return null===t||fe(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),v(t)):96===t&&t===u?n(t):(e.consume(t),h)}function v(n){return e.exit("codeFencedFence"),r.interrupt?t(n):g(n)}function g(t){return null===t?y(t):fe(t)?e.attempt(o,e.attempt(i,y,s?ge(e,g,"linePrefix",s+1):g),y)(t):(e.enter("codeFlowValue"),m(t))}function m(t){return null===t||fe(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),m)}function y(n){return e.exit("codeFenced"),t(n)}},concrete:!0};var et={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"",InvisibleTimes:"",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",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:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",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:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"",zwnj:""};const tt={}.hasOwnProperty;function nt(e){return!!tt.call(et,e)&&et[e]}const rt={name:"characterReference",tokenize:function(e,t,n){const r=this;let i,o,a=0;return(function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s});function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),i=31,o=ae,c(t))}function u(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=oe,c):(e.enter("characterReferenceValue"),i=7,o=ie,c(t))}function c(s){let u;return 59===s&&a?(u=e.exit("characterReferenceValue"),o!==ae||nt(r.sliceSerialize(u))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)):o(s)&&a++<i?(e.consume(s),c):n(s)}}};const it={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return se(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const ot={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ge(e,t,"linePrefix")}}};const at={name:"labelEnd",tokenize:function(e,t,n){const r=this;let i,o,a=r.events.length;for(;a--;)if(("labelImage"===r.events[a][1].type||"labelLink"===r.events[a][1].type)&&!r.events[a][1]._balanced){i=r.events[a][1];break}return(function(t){if(!i)return n(t);return i._inactive?u(t):(o=r.parser.defined.includes(He(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s)});function s(n){return 40===n?e.attempt(st,t,o?t:u)(n):91===n?e.attempt(ut,t,o?e.attempt(ct,t,u):u)(n):o?t(n):u(n)}function u(e){return i._balanced=!0,n(e)}},resolveTo:function(e,t){let n,r,i,o,a=e.length,s=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(i=a);const u={type:"labelLink"===e[r][1].type?"link":"image",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[r][1].start),end:Object.assign({},e[i][1].end)},l={type:"labelText",start:Object.assign({},e[r+s+2][1].end),end:Object.assign({},e[i-2][1].start)};return o=J(o=[["enter",u,t],["enter",c,t]],e.slice(r+1,r+s+3)),o=J(o,[["enter",l,t]]),o=J(o,Me(t.parser.constructs.insideSpan.null,e.slice(r+s+4,i-3),t)),o=J(o,[["exit",l,t],e[i-2],e[i-1],["exit",c,t]]),o=J(o,e.slice(i+1)),o=J(o,[["exit",u,t]]),Z(e,r,e.length,o),e},resolveAll:function(e){let t,n=-1;for(;++n<e.length;)"labelImage"!==(t=e[n][1]).type&&"labelLink"!==t.type&&"labelEnd"!==t.type||(e.splice(n+1,"labelImage"===t.type?4:2),t.type="data",n++);return e}},st={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),Ve(e,r)};function r(t){return 41===t?a(t):Be(e,i,n,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return le(t)?Ve(e,o)(t):a(t)}function o(t){return 34===t||39===t||40===t?ze(e,Ve(e,a),n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):a(t)}function a(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},ut={tokenize:function(e,t,n){const r=this;return(function(t){return Ue.call(r,e,i,n,"reference","referenceMarker","referenceString")(t)});function i(e){return r.parser.defined.includes(He(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}}},ct={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};function lt(e){return null===e||le(e)||pe(e)?1:he(e)?2:void 0}const ft={name:"attention",tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=lt(r);let o;return(function(t){return e.enter("attentionSequence"),o=t,a(t)});function a(s){if(s===o)return e.consume(s),a;const u=e.exit("attentionSequence"),c=lt(s),l=!c||2===c&&i||n.includes(s),f=!i||2===i&&c||n.includes(r);return u._open=Boolean(42===o?l:l&&(i||!f)),u._close=Boolean(42===o?f:f&&(c||!l)),t(s)}},resolveAll:function(e,t){let n,r,i,o,a,s,u,c,l=-1;for(;++l<e.length;)if("enter"===e[l][0]&&"attentionSequence"===e[l][1].type&&e[l][1]._close)for(n=l;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[l][1]).charCodeAt(0)){if((e[n][1]._close||e[l][1]._open)&&(e[l][1].end.offset-e[l][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[l][1].end.offset-e[l][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[l][1].end.offset-e[l][1].start.offset>1?2:1;const f=Object.assign({},e[n][1].end),d=Object.assign({},e[l][1].start);dt(f,-s),dt(d,s),o={type:s>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[n][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[l][1].start),end:d},i={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[l][1].start)},r={type:s>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},e[n][1].end=Object.assign({},o.start),e[l][1].start=Object.assign({},a.end),u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=J(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=J(u,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),u=J(u,Me(t.parser.constructs.insideSpan.null,e.slice(n+1,l),t)),u=J(u,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[l][1].end.offset-e[l][1].start.offset?(c=2,u=J(u,[["enter",e[l][1],t],["exit",e[l][1],t]])):c=0,Z(e,n-1,l-n+3,u),l=n+u.length-c-2;break}l=-1;for(;++l<e.length;)"attentionSequence"===e[l][1].type&&(e[l][1].type="data");return e}};function dt(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const pt={42:De,43:De,45:De,48:De,49:De,50:De,51:De,52:De,53:De,54:De,55:De,56:De,57:De,62:Fe},ht={91:We},vt={[-2]:Ge,[-1]:Ge,32:Ge},gt={35:{name:"headingAtx",tokenize:function(e,t,n){const r=this;let i=0;return(function(t){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),o(t)});function o(s){return 35===s&&i++<6?(e.consume(s),o):null===s||le(s)?(e.exit("atxHeadingSequence"),r.interrupt?t(s):a(s)):n(s)}function a(n){return 35===n?(e.enter("atxHeadingSequence"),s(n)):null===n||fe(n)?(e.exit("atxHeading"),t(n)):de(n)?ge(e,a,"whitespace")(n):(e.enter("atxHeadingText"),u(n))}function s(t){return 35===t?(e.consume(t),s):(e.exit("atxHeadingSequence"),a(t))}function u(t){return null===t||35===t||le(t)?(e.exit("atxHeadingText"),a(t)):(e.consume(t),u)}},resolve:function(e,t){let n,r,i=e.length-2,o=3;"whitespace"===e[o][1].type&&(o+=2);i-2>o&&"whitespace"===e[i][1].type&&(i-=2);"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4);i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},Z(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e}},42:Re,45:[Ke,Re],60:Qe,61:Ke,95:Re,96:Je,126:Je},mt={38:rt,92:it},yt={[-5]:ot,[-4]:ot,[-3]:ot,33:{name:"labelStartImage",tokenize:function(e,t,n){const r=this;return(function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i});function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:at.resolveAll},38:rt,42:ft,60:[{name:"autolink",tokenize:function(e,t,n){let r=1;return(function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i});function i(t){return re(t)?(e.consume(t),o):ue(t)?u(t):n(t)}function o(e){return 43===e||45===e||46===e||ae(e)?a(e):u(e)}function a(t){return 58===t?(e.consume(t),s):(43===t||45===t||46===t||ae(t))&&r++<32?(e.consume(t),a):u(t)}function s(t){return 62===t?(e.exit("autolinkProtocol"),d(t)):null===t||32===t||60===t||ce(t)?n(t):(e.consume(t),s)}function u(t){return 64===t?(e.consume(t),r=0,c):ue(t)?(e.consume(t),u):n(t)}function c(e){return ae(e)?l(e):n(e)}function l(t){return 46===t?(e.consume(t),r=0,c):62===t?(e.exit("autolinkProtocol").type="autolinkEmail",d(t)):f(t)}function f(t){return(45===t||ae(t))&&r++<63?(e.consume(t),45===t?f:l):n(t)}function d(n){return e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t}}},{name:"htmlText",tokenize:function(e,t,n){const r=this;let i,o,a,s;return(function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),u});function u(t){return 33===t?(e.consume(t),c):47===t?(e.consume(t),_):63===t?(e.consume(t),x):re(t)?(e.consume(t),k):n(t)}function c(t){return 45===t?(e.consume(t),l):91===t?(e.consume(t),o="CDATA[",a=0,v):re(t)?(e.consume(t),b):n(t)}function l(t){return 45===t?(e.consume(t),f):n(t)}function f(t){return null===t||62===t?n(t):45===t?(e.consume(t),d):p(t)}function d(e){return null===e||62===e?n(e):p(e)}function p(t){return null===t?n(t):45===t?(e.consume(t),h):fe(t)?(s=p,I(t)):(e.consume(t),p)}function h(t){return 45===t?(e.consume(t),D):p(t)}function v(t){return t===o.charCodeAt(a++)?(e.consume(t),a===o.length?g:v):n(t)}function g(t){return null===t?n(t):93===t?(e.consume(t),m):fe(t)?(s=g,I(t)):(e.consume(t),g)}function m(t){return 93===t?(e.consume(t),y):g(t)}function y(t){return 62===t?D(t):93===t?(e.consume(t),y):g(t)}function b(t){return null===t||62===t?D(t):fe(t)?(s=b,I(t)):(e.consume(t),b)}function x(t){return null===t?n(t):63===t?(e.consume(t),w):fe(t)?(s=x,I(t)):(e.consume(t),x)}function w(e){return 62===e?D(e):x(e)}function _(t){return re(t)?(e.consume(t),S):n(t)}function S(t){return 45===t||ae(t)?(e.consume(t),S):O(t)}function O(t){return fe(t)?(s=O,I(t)):de(t)?(e.consume(t),O):D(t)}function k(t){return 45===t||ae(t)?(e.consume(t),k):47===t||62===t||le(t)?E(t):n(t)}function E(t){return 47===t?(e.consume(t),D):58===t||95===t||re(t)?(e.consume(t),j):fe(t)?(s=E,I(t)):de(t)?(e.consume(t),E):D(t)}function j(t){return 45===t||46===t||58===t||95===t||ae(t)?(e.consume(t),j):T(t)}function T(t){return 61===t?(e.consume(t),C):fe(t)?(s=T,I(t)):de(t)?(e.consume(t),T):E(t)}function C(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),i=t,A):fe(t)?(s=C,I(t)):de(t)?(e.consume(t),C):(e.consume(t),i=void 0,M)}function A(t){return t===i?(e.consume(t),P):null===t?n(t):fe(t)?(s=A,I(t)):(e.consume(t),A)}function P(e){return 62===e||47===e||le(e)?E(e):n(e)}function M(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):62===t||le(t)?E(t):(e.consume(t),M)}function I(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ge(e,R,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function R(t){return e.enter("htmlTextData"),s(t)}function D(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}}}],91:{name:"labelStartLink",tokenize:function(e,t,n){const r=this;return(function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i});function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:at.resolveAll},92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(t),r};function r(r){return fe(r)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(r)):n(r)}}},it],93:at,95:ft,96:{name:"codeText",tokenize:function(e,t,n){let r,i,o=0;return(function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)});function a(t){return 96===t?(e.consume(t),o++,a):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?n(t):96===t?(i=e.enter("codeTextSequence"),r=0,c(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):fe(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),u(t))}function u(t){return null===t||32===t||96===t||fe(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),u)}function c(n){return 96===n?(e.consume(n),r++,c):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(i.type="codeTextData",u(n))}},resolve:function(e){let t,n,r=e.length-4,i=3;if(!("lineEnding"!==e[i][1].type&&"space"!==e[i][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}t=i-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}}},bt={null:[ft,Ee]},xt={null:[42,95]},wt={null:[]};function _t(e={}){const t={defined:[],lazy:{},constructs:function(e){const t={};let n=-1;for(;++n<e.length;)te(t,e[n]);return t}([r].concat(e.extensions||[])),content:n(me),document:n(ye),flow:n(ke),string:n(je),text:n(Te)};return t;function n(e){return function(n){return Ie(t,e,n)}}}const St=/[\0\t\n\r]/g;function Ot(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535==(65535&n)||65534==(65535&n)||n>1114111?"�":String.fromCharCode(n)}const kt=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Et(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return Ot(n.slice(t?2:1),t?16:10)}return nt(n)||e}const jt={}.hasOwnProperty,Tt=function(e,t,n){return"string"!=typeof t&&(n=t,t=void 0),function(e={}){const t=function e(t,n){let r=-1;for(;++r<n.length;){const i=n[r];Array.isArray(i)?e(t,i):Ct(t,i)}return t}({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(_),autolinkProtocol:h,autolinkEmail:h,atxHeading:s(b),blockQuote:s((function(){return{type:"blockquote",children:[]}})),characterEscape:h,characterReference:h,codeFenced:s(y),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:s(y,u),codeText:s((function(){return{type:"inlineCode",value:""}}),u),codeTextData:h,data:h,codeFlowValue:h,definition:s((function(){return{type:"definition",identifier:"",label:null,title:null,url:""}})),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:s((function(){return{type:"emphasis",children:[]}})),hardBreakEscape:s(x),hardBreakTrailing:s(x),htmlFlow:s(w,u),htmlFlowData:h,htmlText:s(w,u),htmlTextData:h,image:s((function(){return{type:"image",title:null,url:"",alt:null}})),label:u,link:s(_),listItem:s((function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}})),listItemValue:function(e){if(o("expectingFirstListItemValue")){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),i("expectingFirstListItemValue")}},listOrdered:s(S,(function(){i("expectingFirstListItemValue",!0)})),listUnordered:s(S),paragraph:s((function(){return{type:"paragraph",children:[]}})),reference:function(){i("referenceType","collapsed")},referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:s(b),strong:s((function(){return{type:"strong",children:[]}})),thematicBreak:s((function(){return{type:"thematicBreak"}}))},exit:{atxHeading:f(),atxHeadingSequence:function(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}},autolink:f(),autolinkEmail:function(e){v.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){v.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:f(),characterEscapeValue:v,characterReferenceMarkerHexadecimal:m,characterReferenceMarkerNumeric:m,characterReferenceValue:function(e){const t=this.sliceSerialize(e),n=o("characterReferenceType");let r;n?(r=Ot(t,"characterReferenceMarkerNumeric"===n?10:16),i("characterReferenceType")):r=nt(t);const s=this.stack.pop();s.value+=r,s.position.end=a(e.end)},codeFenced:f((function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),i("flowCodeInside")})),codeFencedFence:function(){if(o("flowCodeInside"))return;this.buffer(),i("flowCodeInside",!0)},codeFencedFenceInfo:function(){const e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){const e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:v,codeIndented:f((function(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")})),codeText:f((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),codeTextData:v,data:v,definition:f(),definitionDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=He(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:f(),hardBreakEscape:f(g),hardBreakTrailing:f(g),htmlFlow:f((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),htmlFlowData:v,htmlText:f((function(){const e=this.resume();this.stack[this.stack.length-1].value=e})),htmlTextData:v,image:f((function(){const e=this.stack[this.stack.length-1];o("inReference")?(e.type+="Reference",e.referenceType=o("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label);i("referenceType")})),label:function(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];i("inReference",!0),"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){const t=this.stack[this.stack.length-2],n=this.sliceSerialize(e);t.label=function(e){return e.replace(kt,Et)}(n),t.identifier=He(n).toLowerCase()},lineEnding:function(e){const n=this.stack[this.stack.length-1];if(o("atHardBreak")){return n.children[n.children.length-1].position.end=a(e.end),void i("atHardBreak")}!o("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(n.type)&&(h.call(this,e),v.call(this,e))},link:f((function(){const e=this.stack[this.stack.length-1];o("inReference")?(e.type+="Reference",e.referenceType=o("referenceType")||"shortcut",delete e.url,delete e.title):(delete e.identifier,delete e.label);i("referenceType")})),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:function(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=He(this.sliceSerialize(e)).toLowerCase(),i("referenceType","full")},resourceDestinationString:function(){const e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){const e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){i("inReference")},setextHeading:f((function(){i("setextHeadingSlurpLineEnding")})),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2},setextHeadingText:function(){i("setextHeadingSlurpLineEnding",!0)},strong:f(),thematicBreak:f()}},e.mdastExtensions||[]),n={};return(function(e){let n={type:"root",children:[]};const s=[],l=[],f={stack:[n],tokenStack:s,config:t,enter:c,exit:d,buffer:u,resume:p,setData:i,getData:o};let h=-1;for(;++h<e.length;)if("listOrdered"===e[h][1].type||"listUnordered"===e[h][1].type)if("enter"===e[h][0])l.push(h);else{const t=l.pop();h=r(e,t,h)}h=-1;for(;++h<e.length;){const n=t[e[h][0]];jt.call(n,e[h][1].type)&&n[e[h][1].type].call(Object.assign({sliceSerialize:e[h][2].sliceSerialize},f),e[h][1])}if(s.length>0){const e=s[s.length-1];(e[1]||At).call(f,void 0,e[0])}n.position={start:a(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:a(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},h=-1;for(;++h<t.transforms.length;)n=t.transforms[h](n)||n;return n});function r(e,t,n){let r,i,o,a,s=t-1,u=-1,c=!1;for(;++s<=n;){const t=e[s];if("listUnordered"===t[1].type||"listOrdered"===t[1].type||"blockQuote"===t[1].type?("enter"===t[0]?u++:u--,a=void 0):"lineEndingBlank"===t[1].type?"enter"===t[0]&&(!r||a||u||o||(o=s),a=void 0):"linePrefix"===t[1].type||"listItemValue"===t[1].type||"listItemMarker"===t[1].type||"listItemPrefix"===t[1].type||"listItemPrefixWhitespace"===t[1].type||(a=void 0),!u&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===u&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let a=s;for(i=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",i=a}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}o&&(!i||o<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||s,0,["exit",r,t[2]]),s++,n++}"listItemPrefix"===t[1].type&&(r={type:"listItem",_spread:!1,start:Object.assign({},t[1].start)},e.splice(s,0,["enter",r,t[2]]),s++,n++,o=void 0,a=!0)}}return e[t][1]._spread=c,n}function i(e,t){n[e]=t}function o(e){return n[e]}function a(e){return{line:e.line,column:e.column,offset:e.offset}}function s(e,t){return function(n){c.call(this,e(n),n),t&&t.call(this,n)}}function u(){this.stack.push({type:"fragment",children:[]})}function c(e,t,n){return this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n]),e.position={start:a(t.start)},e}function f(e){return function(t){e&&e.call(this,t);d.call(this,t)}}function d(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+l({start:e.start,end:e.end})+"): it’s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||At).call(this,e,r[0])}return n.position.end=a(e.end),n}function p(){return function(e,t){var{includeImageAlt:n=!0}=t||{};return X(e,n)}(this.stack.pop())}function h(e){const t=this.stack[this.stack.length-1];let n=t.children[t.children.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:a(e.start)},t.children.push(n)),this.stack.push(n)}function v(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=a(e.end)}function g(){i("atHardBreak",!0)}function m(e){i("characterReferenceType",e.type)}function y(){return{type:"code",lang:null,meta:null,value:""}}function b(){return{type:"heading",depth:void 0,children:[]}}function x(){return{type:"break"}}function w(){return{type:"html",value:""}}function _(){return{type:"link",title:null,url:"",children:[]}}function S(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}}(n)(function(e){for(;!we(e););return e}(_t(n).document().write(function(){let e,t=1,n="",r=!0;return(function(i,o,a){const s=[];let u,c,l,f,d;i=n+i.toString(o),l=0,n="",r&&(65279===i.charCodeAt(0)&&l++,r=void 0);for(;l<i.length;){if(St.lastIndex=l,u=St.exec(i),f=u&&void 0!==u.index?u.index:i.length,d=i.charCodeAt(f),!u){n=i.slice(l);break}if(10===d&&l===f&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),l<f&&(s.push(i.slice(l,f)),t+=f-l),d){case 0:s.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),s.push(-2);t++<c;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}l=f+1}a&&(e&&s.push(-5),n&&s.push(n),s.push(null));return s})}()(e,t,!0))))};function Ct(e,t){let n;for(n in t)if(jt.call(t,n)){const r="canContainEols"===n||"transforms"===n,i=(jt.call(e,n)?e[n]:void 0)||(e[n]=r?[]:{}),o=t[n];o&&(r?e[n]=[...i,...o]:Object.assign(i,o))}}function At(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+l({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+l({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+l({start:t.start,end:t.end})+") is still open")}var Pt=function(e){Object.assign(this,{Parser:t=>{const n=this.data("settings");return Tt(t,Object.assign({},n,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})},Mt=function(e,t,n){var r={type:String(e)};return null!=n||"string"!=typeof t&&!Array.isArray(t)?Object.assign(r,t):n=t,Array.isArray(n)?r.children=n:null!=n&&(r.value=String(n)),r};function It(e){return(It="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)}var Rt=function(e){if(null==e)return Nt;if("string"==typeof e)return t=e,Lt((function(e){return e&&e.type===t}));var t;if("object"===It(e))return Array.isArray(e)?Dt(e):function(e){return Lt((function(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}))}(e);if("function"==typeof e)return Lt(e);throw new Error("Expected function, string, or object as test")};function Dt(e){for(var t=[],n=-1;++n<e.length;)t[n]=Rt(e[n]);return Lt((function(){for(var e=-1,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];for(;++e<t.length;){var o;if((o=t[e]).call.apply(o,[this].concat(r)))return!0}return!1}))}function Lt(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Boolean(e.call.apply(e,[this].concat(n)))}}function Nt(){return!0}function Ft(e){return(Ft="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)}var Bt=!0,Ut="skip",zt=!1,Vt=function(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null);var i=Rt(t),o=r?-1:1;!function e(a,s,u){var c,l="object"===Ft(a)&&null!==a?a:{};"string"==typeof l.type&&(c="string"==typeof l.tagName?l.tagName:"string"==typeof l.name?l.name:void 0,Object.defineProperty(d,"name",{value:"node ("+(f=l.type+(c?"<"+c+">":""),f)+")"}));var f;return d;function d(){var c,l,f,d=[];if((!t||i(a,s,u[u.length-1]||null))&&(d=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[Bt,e];return[e]}(n(a,u)))[0]===zt)return d;if(a.children&&d[0]!==Ut)for(l=(r?a.children.length:-1)+o,f=u.concat(a);l>-1&&l<a.children.length;){if((c=e(a.children[l],l,f)())[0]===zt)return c;l="number"==typeof c[1]?c[1]:l+o}return d}}(e,null,[])()};var Ht=function(e,t,n,r){"function"==typeof t&&"function"!=typeof n&&(r=n,n=t,t=null),Vt(e,t,(function(e,t){var r=t[t.length-1];return n(e,r?r.children.indexOf(e):null,r)}),r)},Wt=Gt("start"),qt=Gt("end");function Gt(e){return function(t){var n=t&&t.position&&t.position[e]||{};return{line:n.line||null,column:n.column||null,offset:n.offset>-1?n.offset:null}}}const Yt={}.hasOwnProperty;function Kt(e){return String(e||"").toUpperCase()}const $t={}.hasOwnProperty;function Xt(e,t){const n=t.data||{};return"value"in t&&!($t.call(n,"hName")||$t.call(n,"hProperties")||$t.call(n,"hChildren"))?e.augment(t,Mt("text",t.value)):e(t,"div",Jt(e,t))}function Qt(e,t,n){const r=t&&t.type;let i;if(!r)throw new Error("Expected node, got `"+t+"`");return("function"==typeof(i=$t.call(e.handlers,r)?e.handlers[r]:e.passThrough&&e.passThrough.includes(r)?Zt:e.unknownHandler)?i:Xt)(e,t,n)}function Zt(e,t){return"children"in t?{...t,children:Jt(e,t)}:t}function Jt(e,t){const n=[];if("children"in t){const r=t.children;let i=-1;for(;++i<r.length;){const o=Qt(e,r[i],t);if(o){if(i&&"break"===r[i-1].type&&(Array.isArray(o)||"text"!==o.type||(o.value=o.value.replace(/^\s+/,"")),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=e.value.replace(/^\s+/,""))}Array.isArray(o)?n.push(...o):n.push(o)}}}return n}const en={'"':"quot","&":"amp","<":"lt",">":"gt"};function tn(e,t){const n=function(e){return e.replace(/["&<>]/g,(function(e){return"&"+en[e]+";"}))}(function(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let a="";if(37===o&&ae(e.charCodeAt(n+1))&&ae(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){const t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(a=String.fromCharCode(o,t),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}(e||""));if(!t)return n;const r=n.indexOf(":"),i=n.indexOf("?"),o=n.indexOf("#"),a=n.indexOf("/");return r<0||a>-1&&r>a||i>-1&&r>i||o>-1&&r>o||t.test(n.slice(0,r))?n:""}function nn(e,t){const n=[];let r=-1;for(t&&n.push(Mt("text","\n"));++r<e.length;)r&&n.push(Mt("text","\n")),n.push(e[r]);return t&&e.length>0&&n.push(Mt("text","\n")),n}function rn(e,t){const n=String(t.identifier),r=tn(n.toLowerCase()),i=e.footnoteOrder.indexOf(n);let o;-1===i?(e.footnoteOrder.push(n),e.footnoteCounts[n]=1,o=e.footnoteOrder.length):(e.footnoteCounts[n]++,o=i+1);const a=e.footnoteCounts[n];return e(t,"sup",[e(t.position,"a",{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:"footnote-label"},[Mt("text",String(o))])])}var on=n(280),an=n.n(on);function sn(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return Mt("text","!["+t.alt+r);const i=Jt(e,t),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift(Mt("text","["));const a=i[i.length-1];return a&&"text"===a.type?a.value+=r:i.push(Mt("text",r)),i}function un(e){const t=e.spread;return null==t?e.children.length>1:t}var cn=9,ln=32;function fn(e,t,n){var r=0,i=e.length;if(t)for(var o=e.codePointAt(r);o===cn||o===ln;)r++,o=e.codePointAt(r);if(n)for(var a=e.codePointAt(i-1);a===cn||a===ln;)i--,a=e.codePointAt(i-1);return i>r?e.slice(r,i):""}const dn={blockquote:function(e,t){return e(t,"blockquote",nn(Jt(e,t),!0))},break:function(e,t){return[e(t,"br"),Mt("text","\n")]},code:function(e,t){const n=t.value?t.value+"\n":"",r=t.lang&&t.lang.match(/^[^ \t]+(?=[ \t]|$)/),i={};r&&(i.className=["language-"+r]);const o=e(t,"code",i,[Mt("text",n)]);return t.meta&&(o.data={meta:t.meta}),e(t.position,"pre",[o])},delete:function(e,t){return e(t,"del",Jt(e,t))},emphasis:function(e,t){return e(t,"em",Jt(e,t))},footnoteReference:rn,footnote:function(e,t){const n=e.footnoteById;let r=1;for(;r in n;)r++;const i=String(r);return n[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position},rn(e,{type:"footnoteReference",identifier:i,position:t.position})},heading:function(e,t){return e(t,"h"+t.depth,Jt(e,t))},html:function(e,t){return e.dangerous?e.augment(t,Mt("raw",t.value)):null},imageReference:function(e,t){const n=e.definition(t.identifier);if(!n)return sn(e,t);const r={src:an()(n.url||""),alt:t.alt};return null!==n.title&&void 0!==n.title&&(r.title=n.title),e(t,"img",r)},image:function(e,t){const n={src:an()(t.url),alt:t.alt};return null!==t.title&&void 0!==t.title&&(n.title=t.title),e(t,"img",n)},inlineCode:function(e,t){return e(t,"code",[Mt("text",t.value.replace(/\r?\n|\r/g," "))])},linkReference:function(e,t){const n=e.definition(t.identifier);if(!n)return sn(e,t);const r={href:an()(n.url||"")};return null!==n.title&&void 0!==n.title&&(r.title=n.title),e(t,"a",r,Jt(e,t))},link:function(e,t){const n={href:an()(t.url)};return null!==t.title&&void 0!==t.title&&(n.title=t.title),e(t,"a",n,Jt(e,t))},listItem:function(e,t,n){const r=Jt(e,t),i=n?function(e){let t=e.spread;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=un(n[r]);return Boolean(t)}(n):un(t),o={},a=[];if("boolean"==typeof t.checked){let n;r[0]&&"element"===r[0].type&&"p"===r[0].tagName?n=r[0]:(n=e(null,"p",[]),r.unshift(n)),n.children.length>0&&n.children.unshift(Mt("text"," ")),n.children.unshift(e(null,"input",{type:"checkbox",checked:t.checked,disabled:!0})),o.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const e=r[s];(i||0!==s||"element"!==e.type||"p"!==e.tagName)&&a.push(Mt("text","\n")),"element"!==e.type||"p"!==e.tagName||i?a.push(e):a.push(...e.children)}const u=r[r.length-1];return!u||!i&&"tagName"in u&&"p"===u.tagName||a.push(Mt("text","\n")),e(t,"li",o,a)},list:function(e,t){const n={},r=t.ordered?"ol":"ul",i=Jt(e,t);let o=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++o<i.length;){const e=i[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}return e(t,r,n,nn(i,!0))},paragraph:function(e,t){return e(t,"p",Jt(e,t))},root:function(e,t){return e.augment(t,Mt("root",nn(Jt(e,t))))},strong:function(e,t){return e(t,"strong",Jt(e,t))},table:function(e,t){const n=t.children;let r=-1;const i=t.align||[],o=[];for(;++r<n.length;){const a=n[r].children,s=0===r?"th":"td",u=[];let c=-1;const l=t.align?i.length:a.length;for(;++c<l;){const t=a[c];u.push(e(t,s,{align:i[c]},t?Jt(e,t):[]))}o[r]=e(n[r],"tr",nn(u,!0))}return e(t,"table",nn([e(o[0].position,"thead",nn([o[0]],!0))].concat(o[1]?e({start:Wt(o[1]),end:qt(o[o.length-1])},"tbody",nn(o.slice(1),!0)):[]),!0))},text:function(e,t){return e.augment(t,Mt("text",function(e){for(var t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,o=[];r;)o.push(fn(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(fn(t.slice(i),i>0,!1)),o.join("")}(String(t.value))))},thematicBreak:function(e,t){return e(t,"hr")},toml:pn,yaml:pn,definition:pn,footnoteDefinition:pn};function pn(){return null}const hn={}.hasOwnProperty;function vn(e,t){const n=t||{},r=n.allowDangerousHtml||!1,i={};return a.dangerous=r,a.clobberPrefix=void 0===n.clobberPrefix||null===n.clobberPrefix?"user-content-":n.clobberPrefix,a.footnoteLabel=n.footnoteLabel||"Footnotes",a.footnoteLabelTagName=n.footnoteLabelTagName||"h2",a.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},a.footnoteBackLabel=n.footnoteBackLabel||"Back to content",a.definition=function(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return Ht(e,"definition",e=>{const n=Kt(e.identifier);n&&!Yt.call(t,n)&&(t[n]=e)}),function(e){const n=Kt(e);return n&&Yt.call(t,n)?t[n]:null}}(e),a.footnoteById=i,a.footnoteOrder=[],a.footnoteCounts={},a.augment=o,a.handlers={...dn,...n.handlers},a.unknownHandler=n.unknownHandler,a.passThrough=n.passThrough,Ht(e,"footnoteDefinition",e=>{const t=String(e.identifier).toUpperCase();hn.call(i,t)||(i[t]=e)}),a;function o(e,t){if(e&&"data"in e&&e.data){const n=e.data;n.hName&&("element"!==t.type&&(t={type:"element",tagName:"",properties:{},children:[]}),t.tagName=n.hName),"element"===t.type&&n.hProperties&&(t.properties={...t.properties,...n.hProperties}),"children"in t&&t.children&&n.hChildren&&(t.children=n.hChildren)}if(e){const r="type"in e?e:{position:e};(n=r)&&n.position&&n.position.start&&n.position.start.line&&n.position.start.column&&n.position.end&&n.position.end.line&&n.position.end.column&&(t.position={start:Wt(r),end:qt(r)})}var n;return t}function a(e,t,n,r){return Array.isArray(n)&&(r=n,n={}),o(e,{type:"element",tagName:t,properties:n||{},children:r||[]})}}function gn(e,t){const n=vn(e,t),r=Qt(n,e,null),i=function(e){let t=-1;const n=[];for(;++t<e.footnoteOrder.length;){const r=e.footnoteById[e.footnoteOrder[t].toUpperCase()];if(!r)continue;const i=Jt(e,r),o=String(r.identifier),a=tn(o.toLowerCase());let s=0;const u=[];for(;++s<=e.footnoteCounts[o];){const t={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"↩"}]};s>1&&t.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),u.length>0&&u.push({type:"text",value:" "}),u.push(t)}const c=i[i.length-1];if(c&&"element"===c.type&&"p"===c.tagName){const e=c.children[c.children.length-1];e&&"text"===e.type?e.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...u)}else i.push(...u);const l={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+a},children:nn(i,!0)};r.position&&(l.position=r.position),n.push(l)}return 0===n.length?null:{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[Mt("text",e.footnoteLabel)]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:nn(n,!0)},{type:"text",value:"\n"}]}}(n);return i&&r.children.push(Mt("text","\n"),i),Array.isArray(r)?{type:"root",children:r}:r}var mn=function(e,t){return e&&"run"in e?function(e,t){return(n,r,i)=>{e.run(gn(n,t),r,e=>{i(e)})}}(e,t):function(e){return t=>gn(t,e)}(e||t)};var yn=n(59),bn=n.n(yn);class xn{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function wn(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new xn(n,r,t)}function _n(e){return e.toLowerCase()}xn.prototype.property={},xn.prototype.normal={},xn.prototype.space=null;class Sn{constructor(e,t){this.property=e,this.attribute=t}}Sn.prototype.space=null,Sn.prototype.boolean=!1,Sn.prototype.booleanish=!1,Sn.prototype.overloadedBoolean=!1,Sn.prototype.number=!1,Sn.prototype.commaSeparated=!1,Sn.prototype.spaceSeparated=!1,Sn.prototype.commaOrSpaceSeparated=!1,Sn.prototype.mustUseProperty=!1,Sn.prototype.defined=!1;let On=0;const kn=Mn(),En=Mn(),jn=Mn(),Tn=Mn(),Cn=Mn(),An=Mn(),Pn=Mn();function Mn(){return 2**++On}const In=Object.keys(i);class Rn extends Sn{constructor(e,t,n,r){let o=-1;if(super(e,t),Dn(this,"space",r),"number"==typeof n)for(;++o<In.length;){const e=In[o];Dn(this,In[o],(n&i[e])===i[e])}}}function Dn(e,t,n){n&&(e[t]=n)}Rn.prototype.defined=!0;const Ln={}.hasOwnProperty;function Nn(e){const t={},n={};let r;for(r in e.properties)if(Ln.call(e.properties,r)){const i=e.properties[r],o=new Rn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[_n(r)]=r,n[_n(o.attribute)]=r}return new xn(t,n,e.space)}const Fn=Nn({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Bn=Nn({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Un(e,t){return t in e?e[t]:t}function zn(e,t){return Un(e,t.toLowerCase())}const Vn=Nn({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:zn,properties:{xmlns:null,xmlnsXLink:null}}),Hn=Nn({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:En,ariaAutoComplete:null,ariaBusy:En,ariaChecked:En,ariaColCount:Tn,ariaColIndex:Tn,ariaColSpan:Tn,ariaControls:Cn,ariaCurrent:null,ariaDescribedBy:Cn,ariaDetails:null,ariaDisabled:En,ariaDropEffect:Cn,ariaErrorMessage:null,ariaExpanded:En,ariaFlowTo:Cn,ariaGrabbed:En,ariaHasPopup:null,ariaHidden:En,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Cn,ariaLevel:Tn,ariaLive:null,ariaModal:En,ariaMultiLine:En,ariaMultiSelectable:En,ariaOrientation:null,ariaOwns:Cn,ariaPlaceholder:null,ariaPosInSet:Tn,ariaPressed:En,ariaReadOnly:En,ariaRelevant:null,ariaRequired:En,ariaRoleDescription:Cn,ariaRowCount:Tn,ariaRowIndex:Tn,ariaRowSpan:Tn,ariaSelected:En,ariaSetSize:Tn,ariaSort:null,ariaValueMax:Tn,ariaValueMin:Tn,ariaValueNow:Tn,ariaValueText:null,role:null}}),Wn=Nn({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:zn,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:An,acceptCharset:Cn,accessKey:Cn,action:null,allow:null,allowFullScreen:kn,allowPaymentRequest:kn,allowUserMedia:kn,alt:null,as:null,async:kn,autoCapitalize:null,autoComplete:Cn,autoFocus:kn,autoPlay:kn,capture:kn,charSet:null,checked:kn,cite:null,className:Cn,cols:Tn,colSpan:null,content:null,contentEditable:En,controls:kn,controlsList:Cn,coords:Tn|An,crossOrigin:null,data:null,dateTime:null,decoding:null,default:kn,defer:kn,dir:null,dirName:null,disabled:kn,download:jn,draggable:En,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:kn,formTarget:null,headers:Cn,height:Tn,hidden:kn,high:Tn,href:null,hrefLang:null,htmlFor:Cn,httpEquiv:Cn,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:kn,itemId:null,itemProp:Cn,itemRef:Cn,itemScope:kn,itemType:Cn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:kn,low:Tn,manifest:null,max:null,maxLength:Tn,media:null,method:null,min:null,minLength:Tn,multiple:kn,muted:kn,name:null,nonce:null,noModule:kn,noValidate:kn,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:kn,optimum:Tn,pattern:null,ping:Cn,placeholder:null,playsInline:kn,poster:null,preload:null,readOnly:kn,referrerPolicy:null,rel:Cn,required:kn,reversed:kn,rows:Tn,rowSpan:Tn,sandbox:Cn,scope:null,scoped:kn,seamless:kn,selected:kn,shape:null,size:Tn,sizes:null,slot:null,span:Tn,spellCheck:En,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Tn,step:null,style:null,tabIndex:Tn,target:null,title:null,translate:null,type:null,typeMustMatch:kn,useMap:null,value:En,width:Tn,wrap:null,align:null,aLink:null,archive:Cn,axis:null,background:null,bgColor:null,border:Tn,borderColor:null,bottomMargin:Tn,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:kn,declare:kn,event:null,face:null,frame:null,frameBorder:null,hSpace:Tn,leftMargin:Tn,link:null,longDesc:null,lowSrc:null,marginHeight:Tn,marginWidth:Tn,noResize:kn,noHref:kn,noShade:kn,noWrap:kn,object:null,profile:null,prompt:null,rev:null,rightMargin:Tn,rules:null,scheme:null,scrolling:En,standby:null,summary:null,text:null,topMargin:Tn,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Tn,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:kn,disableRemotePlayback:kn,prefix:null,property:null,results:Tn,security:null,unselectable:null}}),qn=Nn({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Un,properties:{about:Pn,accentHeight:Tn,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Tn,amplitude:Tn,arabicForm:null,ascent:Tn,attributeName:null,attributeType:null,azimuth:Tn,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Tn,by:null,calcMode:null,capHeight:Tn,className:Cn,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Tn,diffuseConstant:Tn,direction:null,display:null,dur:null,divisor:Tn,dominantBaseline:null,download:kn,dx:null,dy:null,edgeMode:null,editable:null,elevation:Tn,enableBackground:null,end:null,event:null,exponent:Tn,externalResourcesRequired:null,fill:null,fillOpacity:Tn,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:An,g2:An,glyphName:An,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Tn,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Tn,horizOriginX:Tn,horizOriginY:Tn,id:null,ideographic:Tn,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Tn,k:Tn,k1:Tn,k2:Tn,k3:Tn,k4:Tn,kernelMatrix:Pn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Tn,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Tn,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Tn,overlineThickness:Tn,paintOrder:null,panose1:null,path:null,pathLength:Tn,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Cn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Tn,pointsAtY:Tn,pointsAtZ:Tn,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Pn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Pn,rev:Pn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Pn,requiredFeatures:Pn,requiredFonts:Pn,requiredFormats:Pn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Tn,specularExponent:Tn,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Tn,strikethroughThickness:Tn,string:null,stroke:null,strokeDashArray:Pn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Tn,strokeOpacity:Tn,strokeWidth:null,style:null,surfaceScale:Tn,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Pn,tabIndex:Tn,tableValues:null,target:null,targetX:Tn,targetY:Tn,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Pn,to:null,transform:null,u1:null,u2:null,underlinePosition:Tn,underlineThickness:Tn,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Tn,values:null,vAlphabetic:Tn,vMathematical:Tn,vectorEffect:null,vHanging:Tn,vIdeographic:Tn,version:null,vertAdvY:Tn,vertOriginX:Tn,vertOriginY:Tn,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Tn,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Gn=wn([Bn,Fn,Vn,Hn,Wn],"html"),Yn=wn([Bn,Fn,Vn,Hn,qn],"svg");function Kn(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{Ht(t,"element",(t,n,r)=>{const i=r;let o;if(e.allowedElements?o=!e.allowedElements.includes(t.tagName):e.disallowedElements&&(o=e.disallowedElements.includes(t.tagName)),!o&&e.allowElement&&"number"==typeof n&&(o=!e.allowElement(t,n,i)),o&&"number"==typeof n)return e.unwrapDisallowed&&t.children?i.children.splice(n,1,...t.children):i.children.splice(n,1),n})}}const $n=["http","https","mailto","tel"];var Xn=n(153),Qn=n.n(Xn);const Zn=/^data[-\w.:]+$/i,Jn=/-[a-z]/g,er=/[A-Z]/g;function tr(e){return"-"+e.toLowerCase()}function nr(e){return e.charAt(1).toUpperCase()}const rr={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var ir=n(852),or=n.n(ir);const ar={}.hasOwnProperty,sr=new Set(["table","thead","tbody","tfoot","tr"]);function ur(e,t){const n=[];let r,i=-1;for(;++i<t.children.length;)"element"===(r=t.children[i]).type?n.push(cr(e,r,i,t)):"text"===r.type?"element"===t.type&&sr.has(t.tagName)&&(a=void 0,"string"==typeof(a=(o=r)&&"object"==typeof o&&"text"===o.type?o.value||"":o)&&""===a.replace(/[ \t\n\f\r]/g,""))||n.push(r.value):"raw"!==r.type||e.options.skipHtml||n.push(r.value);var o,a;return n}function cr(e,t,n,r){const i=e.options,o=e.schema,s=t.tagName,u={};let c,l=o;if("html"===o.space&&"svg"===s&&(l=Yn,e.schema=l),t.properties)for(c in t.properties)ar.call(t.properties,c)&&fr(u,c,t.properties[c],e);"ol"!==s&&"ul"!==s||e.listDepth++;const f=ur(e,t);"ol"!==s&&"ul"!==s||e.listDepth--,e.schema=o;const d=t.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},p=i.components&&ar.call(i.components,s)?i.components[s]:s,h="string"==typeof p||p===a.a.Fragment;if(!Qn.a.isValidElementType(p))throw new TypeError(`Component for name \`${s}\` not defined or is not renderable`);if(u.key=[s,d.start.line,d.start.column,n].join("-"),"a"===s&&i.linkTarget&&(u.target="function"==typeof i.linkTarget?i.linkTarget(String(u.href||""),t.children,"string"==typeof u.title?u.title:null):i.linkTarget),"a"===s&&i.transformLinkUri&&(u.href=i.transformLinkUri(String(u.href||""),t.children,"string"==typeof u.title?u.title:null)),h||"code"!==s||"element"!==r.type||"pre"===r.tagName||(u.inline=!0),h||"h1"!==s&&"h2"!==s&&"h3"!==s&&"h4"!==s&&"h5"!==s&&"h6"!==s||(u.level=Number.parseInt(s.charAt(1),10)),"img"===s&&i.transformImageUri&&(u.src=i.transformImageUri(String(u.src||""),String(u.alt||""),"string"==typeof u.title?u.title:null)),!h&&"li"===s&&"element"===r.type){const e=function(e){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if("element"===n.type&&"input"===n.tagName)return n}return null}(t);u.checked=e&&e.properties?Boolean(e.properties.checked):null,u.index=lr(r,t),u.ordered="ol"===r.tagName}var v;return h||"ol"!==s&&"ul"!==s||(u.ordered="ol"===s,u.depth=e.listDepth),"td"!==s&&"th"!==s||(u.align&&(u.style||(u.style={}),u.style.textAlign=u.align,delete u.align),h||(u.isHeader="th"===s)),h||"tr"!==s||"element"!==r.type||(u.isHeader=Boolean("thead"===r.tagName)),i.sourcePos&&(u["data-sourcepos"]=[(v=d).start.line,":",v.start.column,"-",v.end.line,":",v.end.column].map(e=>String(e)).join("")),!h&&i.rawSourcePos&&(u.sourcePosition=t.position),!h&&i.includeElementIndex&&(u.index=lr(r,t),u.siblingCount=lr(r)),h||(u.node=t),f.length>0?a.a.createElement(p,u,f):a.a.createElement(p,u)}function lr(e,t){let n=-1,r=0;for(;++n<e.children.length&&e.children[n]!==t;)"element"===e.children[n].type&&r++;return r}function fr(e,t,n,r){const i=function(e,t){const n=_n(t);let r=t,i=Sn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Zn.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Jn,nr);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Jn.test(e)){let n=e.replace(er,tr);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=Rn}return new i(r,t)}(r.schema,t);let o=n;var a,s,u;null!=o&&o==o&&(Array.isArray(o)&&(o=i.commaSeparated?(u=s||{},""===(a=o)[a.length-1]&&(a=a.concat("")),a.join((u.padRight?" ":"")+","+(!1===u.padLeft?"":" ")).trim()):function(e){return e.join(" ").trim()}(o)),"style"===i.property&&"string"==typeof o&&(o=function(e){const t={};try{or()(e,(function(e,n){const r="-ms-"===e.slice(0,4)?`ms-${e.slice(4)}`:e;t[r.replace(/-([a-z])/g,dr)]=n}))}catch{}return t}(o)),i.space&&i.property?e[ar.call(rr,i.property)?rr[i.property]:i.property]=o:i.attribute&&(e[i.attribute]=o))}function dr(e,t){return t.toUpperCase()}n.d(t,"a",(function(){return gr}));const pr={}.hasOwnProperty,hr="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",vr={plugins:{to:"plugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function gr(e){for(const t in vr)if(pr.call(vr,t)&&pr.call(e,t)){const e=vr[t];console.warn(`[react-markdown] Warning: please ${e.to?`use \`${e.to}\` instead of`:"remove"} \`${t}\` (see <${hr}#${e.id}> for more info)`),delete vr[t]}const t=z().use(Pt).use(e.remarkPlugins||[]).use(mn,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(Kn,e),n=new w;"string"==typeof e.children?n.value=e.children:void 0!==e.children&&null!==e.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const r=t.runSync(t.parse(n),n);if("root"!==r.type)throw new TypeError("Expected a `root` node");let i=a.a.createElement(a.a.Fragment,{},ur({options:e,schema:Gn,listDepth:0},r));return e.className&&(i=a.a.createElement("div",{className:e.className},i)),i}gr.defaultProps={transformLinkUri:function(e){const t=(e||"").trim(),n=t.charAt(0);if("#"===n||"/"===n)return t;const r=t.indexOf(":");if(-1===r)return t;let i=-1;for(;++i<$n.length;){const e=$n[i];if(r===e.length&&t.slice(0,e.length).toLowerCase()===e)return t}return-1!==(i=t.indexOf("?"))&&r>i?t:-1!==(i=t.indexOf("#"))&&r>i?t:"javascript:void(0)"}},gr.propTypes={children:bn.a.string,className:bn.a.string,allowElement:bn.a.func,allowedElements:bn.a.arrayOf(bn.a.string),disallowedElements:bn.a.arrayOf(bn.a.string),unwrapDisallowed:bn.a.bool,remarkPlugins:bn.a.arrayOf(bn.a.oneOfType([bn.a.object,bn.a.func,bn.a.arrayOf(bn.a.oneOfType([bn.a.bool,bn.a.string,bn.a.object,bn.a.func,bn.a.arrayOf(bn.a.any)]))])),rehypePlugins:bn.a.arrayOf(bn.a.oneOfType([bn.a.object,bn.a.func,bn.a.arrayOf(bn.a.oneOfType([bn.a.bool,bn.a.string,bn.a.object,bn.a.func,bn.a.arrayOf(bn.a.any)]))])),sourcePos:bn.a.bool,rawSourcePos:bn.a.bool,skipHtml:bn.a.bool,includeElementIndex:bn.a.bool,transformLinkUri:bn.a.oneOfType([bn.a.func,bn.a.bool]),linkTarget:bn.a.oneOfType([bn.a.func,bn.a.string]),transformImageUri:bn.a.func,components:bn.a.object}},function(e,t,n){"use strict";var r=n(321),i=n(43),o=n(285),a=n(21);var s=6e4;var u=36e5;var c=n(28);function l(e){Object(a.a)(1,arguments);var t=Object(c.a)(e),n=t.getFullYear(),r=t.getMonth(),i=new Date(0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}function f(e,t){Object(a.a)(2,arguments);var n=Object(c.a)(e),r=Object(i.a)(t),o=n.getMonth()+r,s=new Date(0);s.setFullYear(n.getFullYear(),o,1),s.setHours(0,0,0,0);var u=l(s);return n.setMonth(o,Math.min(u,n.getDate())),n}function d(e,t){return Object(a.a)(2,arguments),f(e,12*Object(i.a)(t))}var p=n(249);function h(e,t){Object(a.a)(2,arguments);var n=Object(c.a)(e),r=Object(c.a)(t),i=Object(p.a)(n,r),o=Math.abs(function(e,t){Object(a.a)(2,arguments);var n=Object(c.a)(e),r=Object(c.a)(t);return n.getFullYear()-r.getFullYear()}(n,r));n.setFullYear(n.getFullYear()-i*o);var s=i*(o-(Object(p.a)(n,r)===-i));return 0===s?0:s}function v(e,t){Object(a.a)(2,arguments);var n=Object(c.a)(e),r=Object(c.a)(t),i=Object(p.a)(n,r),o=Math.abs(function(e,t){Object(a.a)(2,arguments);var n=Object(c.a)(e),r=Object(c.a)(t);return 12*(n.getFullYear()-r.getFullYear())+(n.getMonth()-r.getMonth())}(n,r));n.setMonth(n.getMonth()-i*o);var s=i*(o-(Object(p.a)(n,r)===-i));return 0===s?0:s}var g=n(220),m=n(250),y=864e5;function b(e,t){Object(a.a)(2,arguments);var n=Object(c.a)(e),r=Object(c.a)(t),i=Object(p.a)(n,r),o=Math.abs(function(e,t){Object(a.a)(2,arguments);var n=Object(m.a)(e),r=Object(m.a)(t),i=n.getTime()-Object(g.a)(n),o=r.getTime()-Object(g.a)(r);return Math.round((i-o)/y)}(n,r));n.setDate(n.getDate()-i*o);var s=i*(o-(Object(p.a)(n,r)===-i));return 0===s?0:s}function x(e,t){Object(a.a)(2,arguments);var n=Object(c.a)(e),r=Object(c.a)(t);return n.getTime()-r.getTime()}var w=36e5;var _=6e4;function S(e){Object(a.a)(1,arguments);var t=Object(c.a)(e);return t.setHours(23,59,59,999),t}function O(e,t){Object(a.a)(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.weekStartsOn,s=null==o?0:Object(i.a)(o),u=null==n.weekStartsOn?s:Object(i.a)(n.weekStartsOn);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=Object(c.a)(e),f=l.getDay(),d=6+(f<u?-7:0)-(f-u);return l.setDate(l.getDate()+d),l.setHours(23,59,59,999),l}function k(e){Object(a.a)(1,arguments);var t=Object(c.a)(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}var E=n(879);function j(e,t){Object(a.a)(2,arguments);var n=Object(c.a)(e),r=Object(c.a)(t);return n.getTime()>r.getTime()}function T(e,t){Object(a.a)(2,arguments);var n=Object(c.a)(e),r=Object(c.a)(t);return n.getTime()<r.getTime()}var C=n(361);function A(e){Object(a.a)(1,arguments);var t=Object(c.a)(e);return t.setMinutes(0,0,0),t}var P=n(359),M=n(877);function I(e){return Object(a.a)(1,arguments),Object(c.a)(e).getDay()}function R(e){Object(a.a)(1,arguments);var t=Object(c.a)(e);return t.setDate(1),t.setHours(0,0,0,0),t}function D(e){Object(a.a)(1,arguments);var t=Object(c.a)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}var L=n(322);function N(e){Object(a.a)(1,arguments);var t=Object(c.a)(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}var F=36e5,B=6e4,U=2,z={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},V=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,H=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,W=/^([+-])(\d{2})(?::?(\d{2}))?$/;function q(e,t){Object(a.a)(1,arguments);var n=t||{},r=null==n.additionalDigits?U:Object(i.a)(n.additionalDigits);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var o,s=function(e){var t,n={},r=e.split(z.dateTimeDelimiter);/:/.test(r[0])?(n.date=null,t=r[0]):(n.date=r[0],t=r[1],z.timeZoneDelimiter.test(n.date)&&(n.date=e.split(z.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length)));if(t){var i=z.timezone.exec(t);i?(n.time=t.replace(i[1],""),n.timezone=i[1]):n.time=t}return n}(e);if(s.date){var u=function(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:null};var i=r[1]&&parseInt(r[1]),o=r[2]&&parseInt(r[2]);return{year:null==o?i:100*o,restDateString:e.slice((r[1]||r[2]).length)}}(s.date,r);o=function(e,t){if(null===t)return null;var n=e.match(V);if(!n)return null;var r=!!n[4],i=G(n[1]),o=G(n[2])-1,a=G(n[3]),s=G(n[4]),u=G(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,u)?function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var i=r.getUTCDay()||7,o=7*(t-1)+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}(t,s,u):new Date(NaN);var c=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(K[t]||($(e)?29:28))}(t,o,a)&&function(e,t){return t>=1&&t<=($(e)?366:365)}(t,i)?(c.setUTCFullYear(t,o,Math.max(i,a)),c):new Date(NaN)}(u.restDateString,u.year)}if(isNaN(o)||!o)return new Date(NaN);var c,l=o.getTime(),f=0;if(s.time&&(f=function(e){var t=e.match(H);if(!t)return null;var n=Y(t[1]),r=Y(t[2]),i=Y(t[3]);if(!function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,i))return NaN;return n*F+r*B+1e3*i}(s.time),isNaN(f)||null===f))return new Date(NaN);if(s.timezone){if(c=function(e){if("Z"===e)return 0;var t=e.match(W);if(!t)return 0;var n="+"===t[1]?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;if(!function(e,t){return t>=0&&t<=59}(0,i))return NaN;return n*(r*F+i*B)}(s.timezone),isNaN(c))return new Date(NaN)}else{var d=l+f,p=new Date(d);c=Object(g.a)(p);var h=new Date(d);c>0?h.setDate(p.getDate()+1):h.setDate(p.getDate()-1);var v=Object(g.a)(h)-c;v>0&&(c+=v)}return new Date(l+f+c)}function G(e){return e?parseInt(e):1}function Y(e){return e&&parseFloat(e.replace(",","."))||0}var K=[31,null,31,30,31,30,31,31,30,31,30,31];function $(e){return e%400==0||e%4==0&&e%100}var X=n(71);var Q=n(875),Z=n.n(Q),J=n(362);n.d(t,"a",(function(){return te}));var ee={dayOfMonth:"d",fullDate:"PP",fullDateWithWeekday:"PPPP",fullDateTime:"PP p",fullDateTime12h:"PP hh:mm aaa",fullDateTime24h:"PP HH:mm",fullTime:"p",fullTime12h:"hh:mm aaa",fullTime24h:"HH:mm",hours12h:"hh",hours24h:"HH",keyboardDate:"P",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aaa",keyboardDateTime24h:"P HH:mm",minutes:"mm",month:"LLLL",monthAndDate:"MMMM d",monthAndYear:"LLLL yyyy",monthShort:"MMM",weekday:"EEEE",weekdayShort:"EEE",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",seconds:"ss",shortDate:"MMM d",year:"yyyy"},te=function(e){var t=this,n=void 0===e?{}:e,p=n.locale,g=n.formats;this.lib="date-fns",this.is12HourCycleInCurrentLocale=function(){return!t.locale||/a/.test(t.locale.formatLong.time())},this.getFormatHelperText=function(e){var n=t.locale||J.a;return e.match(/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,Z.a[t])(e,n.formatLong,{}):e})).join("").replace(/(aaa|aa|a)/g,"(a|p)m").toLocaleLowerCase()},this.parseISO=function(e){return q(e)},this.toISO=function(e){return function(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only ".concat(arguments.length," present"));var n=Object(c.a)(e);if(!Object(P.a)(n))throw new RangeError("Invalid time value");var r=t||{},i=null==r.format?"extended":String(r.format),o=null==r.representation?"complete":String(r.representation);if("extended"!==i&&"basic"!==i)throw new RangeError("format must be 'extended' or 'basic'");if("date"!==o&&"time"!==o&&"complete"!==o)throw new RangeError("representation must be 'date', 'time', or 'complete'");var a="",s="",u="extended"===i?"-":"",l="extended"===i?":":"";if("time"!==o){var f=Object(X.a)(n.getDate(),2),d=Object(X.a)(n.getMonth()+1,2),p=Object(X.a)(n.getFullYear(),4);a="".concat(p).concat(u).concat(d).concat(u).concat(f)}if("date"!==o){var h=n.getTimezoneOffset();if(0!==h){var v=Math.abs(h),g=Object(X.a)(Math.floor(v/60),2),m=Object(X.a)(v%60,2);s="".concat(h<0?"+":"-").concat(g,":").concat(m)}else s="Z";var y=""===a?"":"T",b=[Object(X.a)(n.getHours(),2),Object(X.a)(n.getMinutes(),2),Object(X.a)(n.getSeconds(),2)].join(l);a="".concat(a).concat(y).concat(b).concat(s)}return a}(e,{format:"extended"})},this.getCurrentLocaleCode=function(){var e;return(null===(e=t.locale)||void 0===e?void 0:e.code)||"en-US"},this.addSeconds=function(e,t){return function(e,t){Object(a.a)(2,arguments);var n=Object(i.a)(t);return Object(o.a)(e,1e3*n)}(e,t)},this.addMinutes=function(e,t){return function(e,t){Object(a.a)(2,arguments);var n=Object(i.a)(t);return Object(o.a)(e,n*s)}(e,t)},this.addHours=function(e,t){return function(e,t){Object(a.a)(2,arguments);var n=Object(i.a)(t);return Object(o.a)(e,n*u)}(e,t)},this.addDays=function(e,t){return Object(r.a)(e,t)},this.addWeeks=function(e,t){return function(e,t){Object(a.a)(2,arguments);var n=7*Object(i.a)(t);return Object(r.a)(e,n)}(e,t)},this.addMonths=function(e,t){return f(e,t)},this.addYears=function(e,t){return d(e,t)},this.isValid=function(e){return Object(P.a)(t.date(e))},this.getDiff=function(e,n,r){switch(r){case"years":return h(e,t.date(n));case"quarters":return function(e,t){Object(a.a)(2,arguments);var n=v(e,t)/3;return n>0?Math.floor(n):Math.ceil(n)}(e,t.date(n));case"months":return v(e,t.date(n));case"weeks":return function(e,t){Object(a.a)(2,arguments);var n=b(e,t)/7;return n>0?Math.floor(n):Math.ceil(n)}(e,t.date(n));case"days":return b(e,t.date(n));case"hours":return function(e,t){Object(a.a)(2,arguments);var n=x(e,t)/w;return n>0?Math.floor(n):Math.ceil(n)}(e,t.date(n));case"minutes":return function(e,t){Object(a.a)(2,arguments);var n=x(e,t)/_;return n>0?Math.floor(n):Math.ceil(n)}(e,t.date(n));case"seconds":return function(e,t){Object(a.a)(2,arguments);var n=x(e,t)/1e3;return n>0?Math.floor(n):Math.ceil(n)}(e,t.date(n));default:return x(e,t.date(n))}},this.isAfter=function(e,t){return j(e,t)},this.isBefore=function(e,t){return T(e,t)},this.startOfDay=function(e){return Object(m.a)(e)},this.endOfDay=function(e){return S(e)},this.getHours=function(e){return function(e){return Object(a.a)(1,arguments),Object(c.a)(e).getHours()}(e)},this.setHours=function(e,t){return function(e,t){Object(a.a)(2,arguments);var n=Object(c.a)(e),r=Object(i.a)(t);return n.setHours(r),n}(e,t)},this.setMinutes=function(e,t){return function(e,t){Object(a.a)(2,arguments);var n=Object(c.a)(e),r=Object(i.a)(t);return n.setMinutes(r),n}(e,t)},this.getSeconds=function(e){return function(e){return Object(a.a)(1,arguments),Object(c.a)(e).getSeconds()}(e)},this.setSeconds=function(e,t){return function(e,t){Object(a.a)(2,arguments);var n=Object(c.a)(e),r=Object(i.a)(t);return n.setSeconds(r),n}(e,t)},this.isSameDay=function(e,t){return Object(C.a)(e,t)},this.isSameMonth=function(e,t){return function(e,t){Object(a.a)(2,arguments);var n=Object(c.a)(e),r=Object(c.a)(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}(e,t)},this.isSameYear=function(e,t){return function(e,t){Object(a.a)(2,arguments);var n=Object(c.a)(e),r=Object(c.a)(t);return n.getFullYear()===r.getFullYear()}(e,t)},this.isSameHour=function(e,t){return function(e,t){Object(a.a)(2,arguments);var n=A(e),r=A(t);return n.getTime()===r.getTime()}(e,t)},this.startOfYear=function(e){return N(e)},this.endOfYear=function(e){return k(e)},this.startOfMonth=function(e){return R(e)},this.endOfMonth=function(e){return D(e)},this.startOfWeek=function(e){return Object(L.a)(e,{locale:t.locale})},this.endOfWeek=function(e){return O(e,{locale:t.locale})},this.getYear=function(e){return function(e){return Object(a.a)(1,arguments),Object(c.a)(e).getFullYear()}(e)},this.setYear=function(e,t){return function(e,t){Object(a.a)(2,arguments);var n=Object(c.a)(e),r=Object(i.a)(t);return isNaN(n)?new Date(NaN):(n.setFullYear(r),n)}(e,t)},this.date=function(e){return void 0===e?new Date:null===e?null:new Date(e)},this.toJsDate=function(e){return e},this.parse=function(e,n){return""===e?null:Object(M.a)(e,n,new Date,{locale:t.locale})},this.format=function(e,n){return t.formatByString(e,t.formats[n])},this.formatByString=function(e,n){return Object(E.a)(e,n,{locale:t.locale})},this.isEqual=function(e,t){return null===e&&null===t||function(e,t){Object(a.a)(2,arguments);var n=Object(c.a)(e),r=Object(c.a)(t);return n.getTime()===r.getTime()}(e,t)},this.isNull=function(e){return null===e},this.isAfterDay=function(e,t){return j(e,S(t))},this.isBeforeDay=function(e,t){return T(e,Object(m.a)(t))},this.isBeforeYear=function(e,t){return T(e,N(t))},this.isAfterYear=function(e,t){return j(e,k(t))},this.isWithinRange=function(e,t){return function(e,t){Object(a.a)(2,arguments);var n=t||{},r=Object(c.a)(e).getTime(),i=Object(c.a)(n.start).getTime(),o=Object(c.a)(n.end).getTime();if(!(i<=o))throw new RangeError("Invalid interval");return r>=i&&r<=o}(e,{start:t[0],end:t[1]})},this.formatNumber=function(e){return e},this.getMinutes=function(e){return e.getMinutes()},this.getMonth=function(e){return e.getMonth()},this.getDaysInMonth=function(e){return l(e)},this.setMonth=function(e,t){return function(e,t){Object(a.a)(2,arguments);var n=Object(c.a)(e),r=Object(i.a)(t),o=n.getFullYear(),s=n.getDate(),u=new Date(0);u.setFullYear(o,r,15),u.setHours(0,0,0,0);var f=l(u);return n.setMonth(r,Math.min(s,f)),n}(e,t)},this.getMeridiemText=function(e){return"am"===e?"AM":"PM"},this.getNextMonth=function(e){return f(e,1)},this.getPreviousMonth=function(e){return f(e,-1)},this.getMonthArray=function(e){for(var n=[N(e)];n.length<12;){var r=n[n.length-1];n.push(t.getNextMonth(r))}return n},this.mergeDateAndTime=function(e,n){return t.setSeconds(t.setMinutes(t.setHours(e,t.getHours(n)),t.getMinutes(n)),t.getSeconds(n))},this.getWeekdays=function(){var e=new Date;return function(e,t){Object(a.a)(1,arguments);var n=e||{},r=Object(c.a)(n.start),i=Object(c.a)(n.end).getTime();if(!(r.getTime()<=i))throw new RangeError("Invalid interval");var o=[],s=r;s.setHours(0,0,0,0);var u=t&&"step"in t?Number(t.step):1;if(u<1||isNaN(u))throw new RangeError("`options.step` must be a number greater than 1");for(;s.getTime()<=i;)o.push(Object(c.a)(s)),s.setDate(s.getDate()+u),s.setHours(0,0,0,0);return o}({start:Object(L.a)(e,{locale:t.locale}),end:O(e,{locale:t.locale})}).map((function(e){return t.formatByString(e,"EEEEEE")}))},this.getWeekArray=function(e){for(var n=Object(L.a)(R(e),{locale:t.locale}),i=O(D(e),{locale:t.locale}),o=0,a=n,s=[],u=null;T(a,i);){var c=Math.floor(o/7);s[c]=s[c]||[];var l=I(a);u!==l&&(u=l,s[c].push(a),o+=1),a=Object(r.a)(a,1)}return s},this.getYearRange=function(e,t){for(var n=N(e),r=k(t),i=[],o=n;T(o,r);)i.push(o),o=d(o,1);return i},this.locale=p,this.formats=Object.assign({},ee,g)}},function(e,t,n){"use strict";var r=n(65),i=n(26),o=n(2),a=n.n(o),s=n(15),u=n(169),c=n(275);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e){var t,n,r=e.onChange,i=e.onViewChange,a=e.openTo,s=e.view,f=e.views,d=l(Object(u.a)({name:"Picker",state:"view",controlled:s,default:a&&Object(c.a)(f,a)?a:f[0]}),2),p=d[0],h=d[1],v=null!=(t=f[f.indexOf(p)-1])?t:null,g=null!=(n=f[f.indexOf(p)+1])?n:null,m=o.useCallback((function(e){h(e),i&&i(e)}),[h,i]),y=o.useCallback((function(){g&&m(g)}),[g,m]);return{handleChangeAndOpenNext:o.useCallback((function(e,t){var n="finish"===t,i=n&&Boolean(g)?"partial":t;r(e,i),n&&y()}),[g,r,y]),nextView:g,previousView:v,openNext:y,openView:p,setOpenView:m}}var p=n(17),h=(n(52),n(233)),v=n(20),g=n(158),m=n(465),y=n(325),b=n(244),x=220,w=36,_={x:x/2,y:x/2},S=_.x-_.x,O=0-_.y,k=function(e,t,n){var r=t-_.x,i=n-_.y,o=Math.atan2(S,O)-Math.atan2(r,i),a=o*(180/Math.PI);a=Math.round(a/e)*e,a%=360;var s=Math.floor(a/e)||0,u=Math.pow(r,2)+Math.pow(i,2);return{value:s,distance:Math.sqrt(u)}},E=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=6*n,i=k(r,e,t),o=i.value;return o=o*n%60},j=function(e,t,n){var r=k(30,e,t),i=r.value,o=r.distance,a=i||12;return n?a%=12:o<x/2-w&&(a+=12,a%=24),a},T=n(5);function C(e){return(C="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 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,(i=r.key,o=void 0,o=function(e,t){if("object"!==C(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==C(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===C(o)?o:String(o)),r)}var i,o}function P(e,t,n){return t=M(t),function(e,t){if(t&&("object"===C(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){return!1}}()?Reflect.construct(t,n||[],M(e).constructor):t.apply(e,n))}function M(e){return(M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function I(e,t){return(I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var R=["className","hasSelected","isInner","type","value"],D=Object(s.a)("div")((function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({width:2,backgroundColor:t.palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},n.toAnimateTransform&&{transition:t.transitions.create(["transform","height"])})})),L=Object(s.a)("div")((function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({width:4,height:4,backgroundColor:t.palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:"calc(50% - ".concat(w/2,"px)"),border:"".concat((w-4)/2,"px solid ").concat(t.palette.primary.main),boxSizing:"content-box"},n.hasSelected&&{backgroundColor:t.palette.primary.main})})),N=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=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=P(this,t,[].concat(r))).state={toAnimateTransform:!1,previousType:void 0},e}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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&I(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){var e,t=this.props,n=t.className,o=t.isInner,a=t.type,s=t.value,u=Object(r.a)(t,R),c=Object(i.a)({},this.props,this.state);return Object(T.jsx)(D,Object(i.a)({style:(e=360/("hours"===a?12:60)*s,"hours"===a&&s>12&&(e-=360),{height:Math.round((o?.26:.4)*x),transform:"rotateZ(".concat(e,"deg)")}),className:n,ownerState:c},u,{children:Object(T.jsx)(L,{ownerState:c})}))}}])&&A(n.prototype,o),a&&A(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,a}(o.Component);N.getDerivedStateFromProps=function(e,t){return e.type!==t.previousType?{toAnimateTransform:!0,previousType:e.type}:{toAnimateTransform:!1,previousType:e.type}};var F=n(46),B=n(121),U=Object(s.a)("div")((function(e){return{display:"flex",justifyContent:"center",alignItems:"center",margin:e.theme.spacing(2)}})),z=Object(s.a)("div")({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),V=Object(s.a)("div")({"&:focus":{outline:"none"}}),H=Object(s.a)("div")((function(e){var t=e.ownerState;return Object(i.a)({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},t.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})})),W=Object(s.a)("div")((function(e){return{width:6,height:6,borderRadius:"50%",backgroundColor:e.theme.palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})),q=Object(s.a)(m.a)((function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({zIndex:1,position:"absolute",bottom:n.ampmInClock?64:8,left:8},"am"===n.meridiemMode&&{backgroundColor:t.palette.primary.main,color:t.palette.primary.contrastText,"&:hover":{backgroundColor:t.palette.primary.light}})})),G=Object(s.a)(m.a)((function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({zIndex:1,position:"absolute",bottom:n.ampmInClock?64:8,right:8},"pm"===n.meridiemMode&&{backgroundColor:t.palette.primary.main,color:t.palette.primary.contrastText,"&:hover":{backgroundColor:t.palette.primary.light}})}));function Y(e){var t=e.ampm,n=e.ampmInClock,r=e.autoFocus,i=e.children,a=e.date,s=e.getClockLabelText,u=e.handleMeridiemChange,c=e.isTimeDisabled,l=e.meridiemMode,f=e.minutesStep,d=void 0===f?1:f,p=e.onChange,h=e.selectedId,v=e.type,g=e.value,m=e.disabled,x=e.readOnly,w=e,_=Object(F.e)(),S=o.useContext(B.a),O=o.useRef(!1),k=c(g,v),C=!t&&"hours"===v&&(g<1||g>12),A=function(e,t){m||x||c(e,v)||p(e,t)},P=function(e,n){var r=e.offsetX,i=e.offsetY;if(void 0===r){var o=e.target.getBoundingClientRect();r=e.changedTouches[0].clientX-o.left,i=e.changedTouches[0].clientY-o.top}var a="seconds"===v||"minutes"===v?E(r,i,d):j(r,i,Boolean(t));A(a,n)},M=o.useMemo((function(){return"hours"===v||g%5==0}),[v,g]),I="minutes"===v?d:1,R=o.useRef(null);Object(b.a)((function(){r&&R.current.focus()}),[r]);return Object(T.jsxs)(U,{children:[Object(T.jsxs)(z,{children:[Object(T.jsx)(H,{onTouchMove:function(e){O.current=!0,P(e,"shallow")},onTouchEnd:function(e){O.current&&(P(e,"finish"),O.current=!1)},onMouseUp:function(e){O.current&&(O.current=!1),P(e.nativeEvent,"finish")},onMouseMove:function(e){e.buttons>0&&P(e.nativeEvent,"shallow")},ownerState:{disabled:m}}),!k&&Object(T.jsxs)(o.Fragment,{children:[Object(T.jsx)(W,{}),a&&Object(T.jsx)(N,{type:v,value:g,isInner:C,hasSelected:M})]}),Object(T.jsx)(V,{"aria-activedescendant":h,"aria-label":s(v,a,_),ref:R,role:"listbox",onKeyDown:function(e){if(!O.current)switch(e.key){case"Home":A(0,"partial"),e.preventDefault();break;case"End":A("minutes"===v?59:23,"partial"),e.preventDefault();break;case"ArrowUp":A(g+I,"partial"),e.preventDefault();break;case"ArrowDown":A(g-I,"partial"),e.preventDefault()}},tabIndex:0,children:i})]}),t&&("desktop"===S||n)&&Object(T.jsxs)(o.Fragment,{children:[Object(T.jsx)(q,{onClick:x?void 0:function(){return u("am")},disabled:m||null===l,ownerState:w,children:Object(T.jsx)(y.a,{variant:"caption",children:"AM"})}),Object(T.jsx)(G,{disabled:m||null===l,onClick:x?void 0:function(){return u("pm")},ownerState:w,children:Object(T.jsx)(y.a,{variant:"caption",children:"PM"})})]})]})}var K=n(152);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 X(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==$(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==$(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===$(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Q=["className","disabled","index","inner","label","selected"],Z=Object(K.a)("PrivateClockNumber",["selected","disabled"]),J=Object(s.a)("span")((function(e){var t=e.theme,n=e.ownerState;return Object(i.a)(X(X({height:w,width:w,position:"absolute",left:"calc((100% - ".concat(w,"px) / 2)"),display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:t.palette.text.primary,fontFamily:t.typography.fontFamily,"&:focused":{backgroundColor:t.palette.background.paper}},"&.".concat(Z.selected),{color:t.palette.primary.contrastText}),"&.".concat(Z.disabled),{pointerEvents:"none",color:t.palette.text.disabled}),n.inner&&Object(i.a)({},t.typography.body2,{color:t.palette.text.secondary}))}));function ee(e){var t=e.className,n=e.disabled,o=e.index,a=e.inner,s=e.label,u=e.selected,c=Object(r.a)(e,Q),l=e,f=o%12/12*Math.PI*2-Math.PI/2,d=(x-w-2)/2*(a?.65:1),h=Math.round(Math.cos(f)*d),v=Math.round(Math.sin(f)*d);return Object(T.jsx)(J,Object(i.a)({className:Object(p.default)(t,u&&Z.selected,n&&Z.disabled),"aria-disabled":!!n||void 0,"aria-selected":!!u||void 0,role:"option",style:{transform:"translate(".concat(h,"px, ").concat(v+(x-w)/2,"px")},ownerState:l},c,{children:s}))}function te(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ne(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ne(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var re=function(e){for(var t=e.ampm,n=e.date,r=e.getClockNumberText,i=e.isDisabled,o=e.selectedId,a=e.utils,s=n?a.getHours(n):null,u=[],c=t?12:23,l=function(e){return null!==s&&(t?12===e?12===s||0===s:s===e||s-12===e:s===e)},f=t?1:0;f<=c;f+=1){var d=f.toString();0===f&&(d="00");var p=!t&&(0===f||f>12);d=a.formatNumber(d);var h=l(f);u.push(Object(T.jsx)(ee,{id:h?o:void 0,index:f,inner:p,selected:h,disabled:i(f),label:d,"aria-label":r(d)},f))}return u},ie=function(e){var t=e.utils,n=e.value,r=e.isDisabled,i=e.getClockNumberText,o=e.selectedId,a=t.formatNumber;return[[5,a("05")],[10,a("10")],[15,a("15")],[20,a("20")],[25,a("25")],[30,a("30")],[35,a("35")],[40,a("40")],[45,a("45")],[50,a("50")],[55,a("55")],[0,a("00")]].map((function(e,t){var a=te(e,2),s=a[0],u=a[1],c=s===n;return Object(T.jsx)(ee,{label:u,id:c?o:void 0,index:t+1,inner:!1,disabled:r(s),selected:c,"aria-label":i(u)},s)}))},oe=n(76),ae=n(156),se=["children","className","components","componentsProps","isLeftDisabled","isLeftHidden","isRightDisabled","isRightHidden","leftArrowButtonText","onLeftClick","onRightClick","rightArrowButtonText"],ue=Object(K.a)("MuiPickersArrowSwitcher",["root","spacer","button"]),ce=Object(s.a)("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:function(e,t){return t.root}})({display:"flex"}),le=Object(s.a)("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:function(e,t){return t.spacer}})((function(e){return{width:e.theme.spacing(3)}})),fe=Object(s.a)(m.a,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:function(e,t){return t.button}})((function(e){var t=e.ownerState;return Object(i.a)({},t.hidden&&{visibility:"hidden"})})),de=o.forwardRef((function(e,t){var n=e.children,o=e.className,a=e.components,s=e.componentsProps,u=e.isLeftDisabled,c=e.isLeftHidden,l=e.isRightDisabled,f=e.isRightHidden,d=e.leftArrowButtonText,h=e.onLeftClick,v=e.onRightClick,g=e.rightArrowButtonText,m=Object(r.a)(e,se),b="rtl"===Object(oe.a)().direction,x=(null==s?void 0:s.leftArrowButton)||{},w=(null==a?void 0:a.LeftArrowIcon)||ae.b,_=(null==s?void 0:s.rightArrowButton)||{},S=(null==a?void 0:a.RightArrowIcon)||ae.c,O=e;return Object(T.jsxs)(ce,Object(i.a)({ref:t,className:Object(p.default)(ue.root,o),ownerState:O},m,{children:[Object(T.jsx)(fe,Object(i.a)({as:null==a?void 0:a.LeftArrowButton,size:"small","aria-label":d,title:d,disabled:u,edge:"end",onClick:h},x,{className:Object(p.default)(ue.button,x.className),ownerState:Object(i.a)({},O,x,{hidden:c}),children:b?Object(T.jsx)(S,{}):Object(T.jsx)(w,{})})),n?Object(T.jsx)(y.a,{variant:"subtitle1",component:"span",children:n}):Object(T.jsx)(le,{className:ue.spacer,ownerState:O}),Object(T.jsx)(fe,Object(i.a)({as:null==a?void 0:a.RightArrowButton,size:"small","aria-label":g,title:g,edge:"start",disabled:l,onClick:v},_,{className:Object(p.default)(ue.button,_.className),ownerState:Object(i.a)({},O,_,{hidden:f}),children:b?Object(T.jsx)(w,{}):Object(T.jsx)(S,{})}))]}))})),pe=n(245);var he=n(138);function ve(e){return Object(he.a)("MuiClockPicker",e)}Object(K.a)("MuiClockPicker",["root","arrowSwitcher"]);var ge=n(175),me=Object(s.a)("div")({overflowX:"hidden",width:ge.c,maxHeight:ge.d,display:"flex",flexDirection:"column",margin:"0 auto"}),ye=Object(s.a)(me,{name:"MuiClockPicker",slot:"Root",overridesResolver:function(e,t){return t.root}})({display:"flex",flexDirection:"column"}),be=Object(s.a)(de,{name:"MuiClockPicker",slot:"ArrowSwitcher",overridesResolver:function(e,t){return t.arrowSwitcher}})({position:"absolute",right:12,top:15}),xe=function(){},we=o.forwardRef((function(e,t){var n=Object(v.a)({props:e,name:"MuiClockPicker"}),r=n.ampm,a=void 0!==r&&r,s=n.ampmInClock,u=void 0!==s&&s,c=n.autoFocus,l=n.components,f=n.componentsProps,m=n.date,y=n.disableIgnoringDatePartForTimeValidation,b=n.getClockLabelText,x=n.getHoursClockNumberText,w=n.getMinutesClockNumberText,_=n.getSecondsClockNumberText,S=n.leftArrowButtonText,O=n.maxTime,k=n.minTime,E=n.minutesStep,j=void 0===E?1:E,C=n.rightArrowButtonText,A=n.shouldDisableTime,P=n.showViewSwitcher,M=n.onChange,I=n.view,R=n.views,D=void 0===R?["hours","minutes"]:R,L=n.openTo,N=n.onViewChange,B=n.className,U=n.disabled,z=n.readOnly;xe({leftArrowButtonText:S,rightArrowButtonText:C,getClockLabelText:b,getHoursClockNumberText:x,getMinutesClockNumberText:w,getSecondsClockNumberText:_});var V=Object(F.b)(),H=null!=S?S:V.openPreviousView,W=null!=C?C:V.openNextView,q=null!=b?b:V.clockLabelText,G=null!=x?x:V.hoursClockNumberText,K=null!=w?w:V.minutesClockNumberText,$=null!=_?_:V.secondsClockNumberText,X=d({view:I,views:D,openTo:L,onViewChange:N,onChange:M}),Q=X.openView,Z=X.setOpenView,J=X.nextView,ee=X.previousView,te=X.handleChangeAndOpenNext,ne=Object(F.d)(),oe=Object(F.e)(),ae=o.useMemo((function(){return m||oe.setSeconds(oe.setMinutes(oe.setHours(ne,0),0),0)}),[m,ne,oe]),se=function(e,t,n){var r=Object(F.e)();return{meridiemMode:Object(pe.d)(e,r),handleMeridiemChange:o.useCallback((function(i){var o=null==e?null:Object(pe.a)(e,i,Boolean(t),r);n(o,"partial")}),[t,e,n,r])}}(ae,a,te),ue=se.meridiemMode,ce=se.handleMeridiemChange,le=o.useCallback((function(e,t){var n=Object(pe.c)(y,oe),r=function(e){var t=e.start,r=e.end;return(!k||!n(k,r))&&(!O||!n(t,O))},i=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e%n==0&&(!A||!A(e,t))};switch(t){case"hours":var o=Object(pe.b)(e,ue,a),s=oe.setHours(ae,o);return!r({start:oe.setSeconds(oe.setMinutes(s,0),0),end:oe.setSeconds(oe.setMinutes(s,59),59)})||!i(o);case"minutes":var u=oe.setMinutes(ae,e);return!r({start:oe.setSeconds(u,0),end:oe.setSeconds(u,59)})||!i(e,j);case"seconds":var c=oe.setSeconds(ae,e);return!r({start:c,end:c})||!i(e);default:throw new Error("not supported")}}),[a,ae,y,O,ue,k,j,A,oe]),fe=Object(h.a)(),de=o.useMemo((function(){switch(Q){case"hours":var e=function(e,t){var n=Object(pe.b)(e,ue,a);te(oe.setHours(ae,n),t)};return{onChange:e,value:oe.getHours(ae),children:re({date:m,utils:oe,ampm:a,onChange:e,getClockNumberText:G,isDisabled:function(e){return U||le(e,"hours")},selectedId:fe})};case"minutes":var t=oe.getMinutes(ae),n=function(e,t){te(oe.setMinutes(ae,e),t)};return{value:t,onChange:n,children:ie({utils:oe,value:t,onChange:n,getClockNumberText:K,isDisabled:function(e){return U||le(e,"minutes")},selectedId:fe})};case"seconds":var r=oe.getSeconds(ae),i=function(e,t){te(oe.setSeconds(ae,e),t)};return{value:r,onChange:i,children:ie({utils:oe,value:r,onChange:i,getClockNumberText:$,isDisabled:function(e){return U||le(e,"seconds")},selectedId:fe})};default:throw new Error("You must provide the type for ClockView")}}),[Q,oe,m,a,G,K,$,ue,te,ae,le,fe,U]),he=n,ge=function(e){var t=e.classes;return Object(g.a)({root:["root"],arrowSwitcher:["arrowSwitcher"]},ve,t)}(he);return Object(T.jsxs)(ye,{ref:t,className:Object(p.default)(ge.root,B),ownerState:he,children:[P&&Object(T.jsx)(be,{className:ge.arrowSwitcher,leftArrowButtonText:H,rightArrowButtonText:W,components:l,componentsProps:f,onLeftClick:function(){return Z(ee)},onRightClick:function(){return Z(J)},isLeftDisabled:!ee,isRightDisabled:!J,ownerState:he}),Object(T.jsx)(Y,Object(i.a)({autoFocus:c,date:m,ampmInClock:u,type:Q,ampm:a,getClockLabelText:q,minutesStep:j,isTimeDisabled:le,meridiemMode:ue,handleMeridiemChange:ce,selectedId:fe,disabled:U,readOnly:z},de))]})})),_e=n(177);function Se(e){return(Se="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 Oe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Se(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Se(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Se(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ke=["disabled","onSelect","selected","value"],Ee=Object(K.a)("PrivatePickersMonth",["root","selected"]),je=Object(s.a)(y.a)((function(e){var t=e.theme;return Object(i.a)({flex:"1 0 33.33%",display:"flex",alignItems:"center",justifyContent:"center",color:"unset",backgroundColor:"transparent",border:0,outline:0},t.typography.subtitle1,Oe({margin:"8px 0",height:36,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:Object(_e.a)(t.palette.action.active,t.palette.action.hoverOpacity)},"&:disabled":{pointerEvents:"none",color:t.palette.text.secondary}},"&.".concat(Ee.selected),{color:t.palette.primary.contrastText,backgroundColor:t.palette.primary.main,"&:focus, &:hover":{backgroundColor:t.palette.primary.dark}}))})),Te=function(e){var t=e.disabled,n=e.onSelect,o=e.selected,a=e.value,s=Object(r.a)(e,ke),u=function(){n(a)};return Object(T.jsx)(je,Object(i.a)({component:"button",type:"button",className:Object(p.default)(Ee.root,o&&Ee.selected),tabIndex:t?-1:0,onClick:u,onKeyDown:Object(c.b)(u),color:o?"primary":void 0,variant:o?"h5":"subtitle1",disabled:t},s))};function Ce(e){return Object(he.a)("MuiMonthPicker",e)}Object(K.a)("MuiMonthPicker",["root"]);var Ae=n(116),Pe=["className","date","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday"];var Me=Object(s.a)("div",{name:"MuiMonthPicker",slot:"Root",overridesResolver:function(e,t){return t.root}})({width:310,display:"flex",flexWrap:"wrap",alignContent:"stretch",margin:"0 4px"}),Ie=o.forwardRef((function(e,t){var n=Object(F.e)(),a=Object(F.d)(),s=function(e,t){var n=Object(F.e)(),r=Object(F.a)(),o=Object(v.a)({props:e,name:t});return Object(i.a)({disableFuture:!1,disablePast:!1},o,{minDate:Object(Ae.b)(n,o.minDate,r.minDate),maxDate:Object(Ae.b)(n,o.maxDate,r.maxDate)})}(e,"MuiMonthPicker"),u=s.className,c=s.date,l=s.disabled,f=s.disableFuture,d=s.disablePast,h=s.maxDate,m=s.minDate,y=s.onChange,b=s.shouldDisableMonth,x=s.readOnly,w=s.disableHighlightToday,_=Object(r.a)(s,Pe),S=s,O=function(e){var t=e.classes;return Object(g.a)({root:["root"]},Ce,t)}(S),k=null!=c?c:a,E=o.useMemo((function(){return null!=c?n.getMonth(c):w?null:n.getMonth(a)}),[a,c,n,w]),j=function(e){var t=n.startOfMonth(d&&n.isAfter(a,m)?a:m),r=n.startOfMonth(f&&n.isBefore(a,h)?a:h);return!!n.isBefore(e,t)||(!!n.isAfter(e,r)||!!b&&b(e))},C=function(e){if(!x){var t=n.setMonth(k,e);y(t,"finish")}},A=n.getMonth(a);return Object(T.jsx)(Me,Object(i.a)({ref:t,className:Object(p.default)(O.root,u),ownerState:S},_,{children:n.getMonthArray(k).map((function(e){var t=n.getMonth(e),r=n.format(e,"monthShort");return Object(T.jsx)(Te,{value:t,selected:t===E,onSelect:C,disabled:l||j(e),"aria-current":A===t?"date":void 0,children:r},r)}))}))})),Re=n(346);function De(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Le(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Le(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ne=function(e){var t,n=e.date,r=e.defaultCalendarMonth,a=e.disableFuture,s=e.disablePast,u=e.disableSwitchToMonthOnDayFocus,c=void 0!==u&&u,l=e.maxDate,f=e.minDate,d=e.onMonthChange,p=e.reduceAnimations,h=e.shouldDisableDate,v=Object(F.d)(),g=Object(F.e)(),m=o.useRef(function(e,t,n){return function(r,o){switch(o.type){case"changeMonth":return Object(i.a)({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return Object(i.a)({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":if(null!=r.focusedDay&&null!=o.focusedDay&&n.isSameDay(o.focusedDay,r.focusedDay))return r;var a=null!=o.focusedDay&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return Object(i.a)({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:a&&!e,currentMonth:a?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:null!=o.focusedDay&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"});default:throw new Error("missing support")}}}(Boolean(p),c,g)).current,y=De(o.useReducer(m,{isMonthSwitchingAnimating:!1,focusedDay:n||v,currentMonth:g.startOfMonth(null!=(t=null!=n?n:r)?t:v),slideDirection:"left"}),2),b=y[0],x=y[1],w=o.useCallback((function(e){x(Object(i.a)({type:"changeMonth"},e)),d&&d(e.newMonth)}),[d]),_=o.useCallback((function(e){var t=null!=e?e:v;g.isSameMonth(t,b.currentMonth)||w({newMonth:g.startOfMonth(t),direction:g.isAfterDay(t,b.currentMonth)?"left":"right"})}),[b.currentMonth,w,v,g]),S=Object(Re.a)({shouldDisableDate:h,minDate:f,maxDate:l,disableFuture:a,disablePast:s}),O=o.useCallback((function(){x({type:"finishMonthSwitchingAnimation"})}),[]),k=o.useCallback((function(e){S(e)||x({type:"changeFocusedDay",focusedDay:e})}),[S]);return{calendarState:b,changeMonth:_,changeFocusedDay:k,isDateDisabled:S,onMonthSwitchingAnimationEnd:O,handleChangeMonth:w}},Fe=n(1559);function Be(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}function Ue(){return(Ue=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 ze(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Ve=a.a.createContext(null);function He(e,t){var n=Object.create(null);return e&&o.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&Object(o.isValidElement)(e)?t(e):e}(e)})),n}function We(e,t,n){return null!=n[t]?n[t]:e.props[t]}function qe(e,t,n){var r=He(e.children),i=function(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 u in t){if(i[u])for(r=0;r<i[u].length;r++){var c=i[u][r];s[i[u][r]]=n(c)}s[u]=n(u)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(i).forEach((function(a){var s=i[a];if(Object(o.isValidElement)(s)){var u=a in t,c=a in r,l=t[a],f=Object(o.isValidElement)(l)&&!l.props.in;!c||u&&!f?c||!u||f?c&&u&&Object(o.isValidElement)(l)&&(i[a]=Object(o.cloneElement)(s,{onExited:n.bind(null,s),in:l.props.in,exit:We(s,"exit",e),enter:We(s,"enter",e)})):i[a]=Object(o.cloneElement)(s,{in:!1}):i[a]=Object(o.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:We(s,"exit",e),enter:We(s,"enter",e)})}})),i}var Ge=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Ye=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}ze(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,He(n.children,(function(e){return Object(o.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:We(e,"appear",n),enter:We(e,"enter",n),exit:We(e,"exit",n)})}))):qe(e,i,a),firstRender:!1}},n.handleExited=function(e,t){var n=He(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Ue({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Be(e,["component","childFactory"]),i=this.state.contextValue,o=Ge(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?a.a.createElement(Ve.Provider,{value:i},o):a.a.createElement(Ve.Provider,{value:i},a.a.createElement(t,r,o))},t}(a.a.Component);Ye.propTypes={},Ye.defaultProps={component:"div",childFactory:function(e){return e}};var Ke=Ye,$e=Object(K.a)("PrivatePickersFadeTransitionGroup",["root"]),Xe=Object(s.a)(Ke)({display:"block",position:"relative"}),Qe=function(e){var t=e.children,n=e.className,r=e.reduceAnimations,i=e.transKey;return r?t:Object(T.jsx)(Xe,{className:Object(p.default)($e.root,n),children:Object(T.jsx)(Fe.a,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:500,enter:250,exit:0},children:t},i)})},Ze=n(887),Je=n(62);function et(e){return Object(he.a)("MuiPickersDay",e)}var tt=Object(K.a)("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]);function nt(e){return(nt="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 rt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==nt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==nt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===nt(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var it=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDayFocus","onDaySelect","onFocus","onKeyDown","onMouseDown","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today"],ot=function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({},t.typography.caption,rt(rt({width:ge.b,height:ge.b,borderRadius:"50%",padding:0,backgroundColor:t.palette.background.paper,color:t.palette.text.primary,"&:hover":{backgroundColor:Object(_e.a)(t.palette.action.active,t.palette.action.hoverOpacity)},"&:focus":rt({backgroundColor:Object(_e.a)(t.palette.action.active,t.palette.action.hoverOpacity)},"&.".concat(tt.selected),{willChange:"background-color",backgroundColor:t.palette.primary.dark})},"&.".concat(tt.selected),{color:t.palette.primary.contrastText,backgroundColor:t.palette.primary.main,fontWeight:t.typography.fontWeightMedium,transition:t.transitions.create("background-color",{duration:t.transitions.duration.short}),"&:hover":{willChange:"background-color",backgroundColor:t.palette.primary.dark}}),"&.".concat(tt.disabled),{color:t.palette.text.disabled}),!n.disableMargin&&{margin:"0 ".concat(ge.a,"px")},n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&{color:t.palette.text.secondary},!n.disableHighlightToday&&n.today&&rt({},"&:not(.".concat(tt.selected,")"),{border:"1px solid ".concat(t.palette.text.secondary)}))},at=function(e,t){var n=e.ownerState;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},st=Object(s.a)(Ze.a,{name:"MuiPickersDay",slot:"Root",overridesResolver:at})(ot),ut=Object(s.a)("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:at})((function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({},ot({theme:t,ownerState:n}),{opacity:0})})),ct=function(){},lt=o.forwardRef((function(e,t){var n=Object(v.a)({props:e,name:"MuiPickersDay"}),a=n.autoFocus,s=void 0!==a&&a,u=n.className,c=n.day,l=n.disabled,f=void 0!==l&&l,d=n.disableHighlightToday,h=void 0!==d&&d,m=n.disableMargin,y=void 0!==m&&m,x=n.isAnimating,w=n.onClick,_=n.onDayFocus,S=void 0===_?ct:_,O=n.onDaySelect,k=n.onFocus,E=n.onKeyDown,j=n.onMouseDown,C=n.outsideCurrentMonth,A=n.selected,P=void 0!==A&&A,M=n.showDaysOutsideCurrentMonth,I=void 0!==M&&M,R=n.children,D=n.today,L=void 0!==D&&D,N=Object(r.a)(n,it),B=Object(i.a)({},n,{autoFocus:s,disabled:f,disableHighlightToday:h,disableMargin:y,selected:P,showDaysOutsideCurrentMonth:I,today:L}),U=function(e){var t=e.selected,n=e.disableMargin,r=e.disableHighlightToday,i=e.today,o=e.outsideCurrentMonth,a=e.showDaysOutsideCurrentMonth,s=e.classes,u={root:["root",t&&"selected",!n&&"dayWithMargin",!r&&i&&"today",o&&a&&"dayOutsideMonth"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]};return Object(g.a)(u,et,s)}(B),z=Object(F.e)(),V=o.useRef(null),H=Object(Je.a)(V,t);Object(b.a)((function(){!s||f||x||C||V.current.focus()}),[s,f,x,C]);var W=Object(oe.a)();return C&&!I?Object(T.jsx)(ut,{className:Object(p.default)(U.root,U.hiddenDaySpacingFiller,u),ownerState:B,role:N.role}):Object(T.jsx)(st,Object(i.a)({className:Object(p.default)(U.root,u),ownerState:B,ref:H,centerRipple:!0,disabled:f,tabIndex:P?0:-1,onFocus:function(e){S&&S(c),k&&k(e)},onKeyDown:function(e){switch(void 0!==E&&E(e),e.key){case"ArrowUp":S(z.addDays(c,-7)),e.preventDefault();break;case"ArrowDown":S(z.addDays(c,7)),e.preventDefault();break;case"ArrowLeft":S(z.addDays(c,"ltr"===W.direction?-1:1)),e.preventDefault();break;case"ArrowRight":S(z.addDays(c,"ltr"===W.direction?1:-1)),e.preventDefault();break;case"Home":S(z.startOfWeek(c)),e.preventDefault();break;case"End":S(z.endOfWeek(c)),e.preventDefault();break;case"PageUp":S(z.getNextMonth(c)),e.preventDefault();break;case"PageDown":S(z.getPreviousMonth(c)),e.preventDefault()}},onClick:function(e){f||O(c,"finish"),C&&e.currentTarget.focus(),w&&w(e)},onMouseDown:function(e){j&&j(e),C&&e.preventDefault()}},N,{children:R||z.format(c,"dayOfMonth")}))})),ft=function(e,t){return e.autoFocus===t.autoFocus&&e.isAnimating===t.isAnimating&&e.today===t.today&&e.disabled===t.disabled&&e.selected===t.selected&&e.disableMargin===t.disableMargin&&e.showDaysOutsideCurrentMonth===t.showDaysOutsideCurrentMonth&&e.disableHighlightToday===t.disableHighlightToday&&e.className===t.className&&e.outsideCurrentMonth===t.outsideCurrentMonth&&e.onDayFocus===t.onDayFocus&&e.onDaySelect===t.onDaySelect},dt=o.memo(lt,ft);function pt(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var ht=n(99),vt=n.n(ht),gt=!1,mt=function(e){return e.scrollTop},yt="unmounted",bt="exited",xt="entering",wt="entered",_t=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=bt,r.appearStatus=xt):i=wt:i=t.unmountOnExit||t.mountOnEnter?yt:bt,r.state={status:i},r.nextCallback=null,r}ze(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===yt?{status:bt}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==xt&&n!==wt&&(t=xt):n!==xt&&n!==wt||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.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=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===xt){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:vt.a.findDOMNode(this);n&&mt(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===bt&&this.setState({status:yt})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[vt.a.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),u=r?s.appear:s.enter;!e&&!n||gt?this.safeSetState({status:wt},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:xt},(function(){t.props.onEntering(o,a),t.onTransitionEnd(u,(function(){t.safeSetState({status:wt},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:vt.a.findDOMNode(this);t&&!gt?(this.props.onExit(r),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:bt},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:bt},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.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},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:vt.a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===yt)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Be(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return(a.a.createElement(Ve.Provider,{value:null},"function"==typeof n?n(e,r):a.a.cloneElement(a.a.Children.only(n),r)))},t}(a.a.Component);function St(){}_t.contextType=Ve,_t.propTypes={},_t.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:St,onEntering:St,onEntered:St,onExit:St,onExiting:St,onExited:St},_t.UNMOUNTED=yt,_t.EXITED=bt,_t.ENTERING=xt,_t.ENTERED=wt,_t.EXITING="exiting";var Ot=_t,kt=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=pt(n.className,r):n.setAttribute("class",pt(n.className&&n.className.baseVal||"",r)));var n,r}))},Et=function(e){function t(){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).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1];t.removeClasses(i,"exit"),t.addClass(i,o?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.addClass(i,o,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.removeClasses(i,o),t.addClass(i,o,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,i=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}ze(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&i&&(r+=" "+i),"active"===n&&e&&mt(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,o=n.done;this.appliedClasses[t]={},r&&kt(e,r),i&&kt(e,i),o&&kt(e,o)},n.render=function(){var e=this.props,t=(e.classNames,Be(e,["classNames"]));return(a.a.createElement(Ot,Ue({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited})))},t}(a.a.Component);Et.defaultProps={classNames:""},Et.propTypes={};var jt=Et;function Tt(e){return(Tt="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 Ct(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Tt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Tt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Tt(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var At=["children","className","reduceAnimations","slideDirection","transKey"],Pt=Object(K.a)("PrivatePickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),Mt=Object(s.a)(Ke)((function(e){var t=e.theme.transitions.create("transform",{duration:350,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return Ct(Ct(Ct(Ct(Ct(Ct({display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0}},"& .".concat(Pt["slideEnter-left"]),{willChange:"transform",transform:"translate(100%)",zIndex:1}),"& .".concat(Pt["slideEnter-right"]),{willChange:"transform",transform:"translate(-100%)",zIndex:1}),"& .".concat(Pt.slideEnterActive),{transform:"translate(0%)",transition:t}),"& .".concat(Pt.slideExit),{transform:"translate(0%)"}),"& .".concat(Pt["slideExitActiveLeft-left"]),{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0}),"& .".concat(Pt["slideExitActiveLeft-right"]),{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0})})),It=function(e){return e.charAt(0).toUpperCase()},Rt=6*(ge.b+2*ge.a),Dt=Object(s.a)("div")({display:"flex",justifyContent:"center",alignItems:"center"}),Lt=Object(s.a)(y.a)((function(e){return{width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.theme.palette.text.secondary}})),Nt=Object(s.a)("div")({display:"flex",justifyContent:"center",alignItems:"center",minHeight:Rt}),Ft=Object(s.a)((function(e){var t=e.children,n=e.className,a=e.reduceAnimations,s=e.slideDirection,u=e.transKey,c=Object(r.a)(e,At);if(a)return Object(T.jsx)("div",{className:Object(p.default)(Pt.root,n),children:t});var l={exit:Pt.slideExit,enterActive:Pt.slideEnterActive,enter:Pt["slideEnter-".concat(s)],exitActive:Pt["slideExitActiveLeft-".concat(s)]};return(Object(T.jsx)(Mt,{className:Object(p.default)(Pt.root,n),childFactory:function(e){return o.cloneElement(e,{classNames:l})},role:"presentation",children:Object(T.jsx)(jt,Object(i.a)({mountOnEnter:!0,unmountOnExit:!0,timeout:350,classNames:l},c,{children:t}),u)}))}))({minHeight:Rt}),Bt=Object(s.a)("div")({overflow:"hidden"}),Ut=Object(s.a)("div")({margin:"".concat(ge.a,"px 0"),display:"flex",justifyContent:"center"});function zt(e){var t=Object(F.d)(),n=Object(F.e)(),r=e.autoFocus,a=e.onFocusedDayChange,s=e.className,u=e.currentMonth,c=e.selectedDays,l=e.disabled,f=e.disableHighlightToday,d=e.focusedDay,p=e.isMonthSwitchingAnimating,h=e.loading,v=e.onSelectedDaysChange,g=e.onMonthSwitchingAnimationEnd,m=e.readOnly,y=e.reduceAnimations,b=e.renderDay,x=e.renderLoading,w=void 0===x?function(){return Object(T.jsx)("span",{children:"..."})}:x,_=e.showDaysOutsideCurrentMonth,S=e.slideDirection,O=e.TransitionProps,k=e.disablePast,E=e.disableFuture,j=e.minDate,C=e.maxDate,A=e.shouldDisableDate,P=e.dayOfWeekFormatter,M=void 0===P?It:P,I=e.gridLabelId,R=Object(Re.a)({shouldDisableDate:A,minDate:j,maxDate:C,disablePast:k,disableFuture:E}),D=o.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"finish";m||v(e,t)}),[v,m]),L=n.getMonth(u),N=c.filter((function(e){return!!e})).map((function(e){return n.startOfDay(e)})),B=L,U=o.useMemo((function(){return o.createRef()}),[B]),z=n.startOfWeek(t);return Object(T.jsxs)("div",{role:"grid","aria-labelledby":I,children:[Object(T.jsx)(Dt,{role:"row",children:n.getWeekdays().map((function(e,t){var r;return(Object(T.jsx)(Lt,{variant:"caption",role:"columnheader","aria-label":n.format(n.addDays(z,t),"weekday"),children:null!=(r=null==M?void 0:M(e))?r:e},e+t.toString()))}))}),h?Object(T.jsx)(Nt,{children:w()}):Object(T.jsx)(Ft,Object(i.a)({transKey:B,onExited:g,reduceAnimations:y,slideDirection:S,className:s},O,{nodeRef:U,children:Object(T.jsx)(Bt,{ref:U,role:"rowgroup",children:n.getWeekArray(u).map((function(e){return Object(T.jsx)(Ut,{role:"row",children:e.map((function(e){var o=N.some((function(t){return n.isSameDay(t,e)})),s=n.isSameDay(e,t),u={key:null==e?void 0:e.toString(),day:e,isAnimating:p,disabled:l||R(e),autoFocus:r&&null!==d&&n.isSameDay(e,d),today:s,outsideCurrentMonth:n.getMonth(e)!==L,selected:o,disableHighlightToday:f,showDaysOutsideCurrentMonth:_,onDayFocus:a,onDaySelect:D,role:"gridcell","aria-selected":o};return s&&(u["aria-current"]="date"),b?b(e,N,u):Object(T.jsx)(dt,Object(i.a)({},u),u.key)}))},"week-".concat(e[0]))}))})}))]})}var Vt=Object(s.a)("div")({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),Ht=Object(s.a)("div")((function(e){var t=e.theme;return Object(i.a)({display:"flex",maxHeight:30,overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},t.typography.body1,{fontWeight:t.typography.fontWeightMedium})})),Wt=Object(s.a)("div")({marginRight:6}),qt=Object(s.a)(m.a)({marginRight:"auto"}),Gt=Object(s.a)(ae.a)((function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({willChange:"transform",transition:t.transitions.create("transform"),transform:"rotate(0deg)"},"year"===n.openView&&{transform:"rotate(180deg)"})})),Yt=function(){};function Kt(e){var t=e.components,n=void 0===t?{}:t,r=e.componentsProps,a=void 0===r?{}:r,s=e.currentMonth,u=e.disabled,c=e.disableFuture,l=e.disablePast,f=e.getViewSwitchingButtonText,d=e.leftArrowButtonText,p=e.maxDate,h=e.minDate,v=e.onMonthChange,g=e.onViewChange,m=e.openView,y=e.reduceAnimations,b=e.rightArrowButtonText,x=e.views,w=e.labelId;Yt({leftArrowButtonText:d,rightArrowButtonText:b,getViewSwitchingButtonText:f});var _=Object(F.b)(),S=null!=d?d:_.previousMonth,O=null!=b?b:_.nextMonth,k=null!=f?f:_.calendarViewSwitchingButtonAriaLabel,E=Object(F.e)(),j=a.switchViewButton||{},C=function(e,t){var n=t.disableFuture,r=t.maxDate,i=Object(F.e)();return o.useMemo((function(){var t=i.date(),o=i.startOfMonth(n&&i.isBefore(t,r)?t:r);return!i.isAfter(o,e)}),[n,r,e,i])}(s,{disableFuture:c,maxDate:p}),A=function(e,t){var n=t.disablePast,r=t.minDate,i=Object(F.e)();return o.useMemo((function(){var t=i.date(),o=i.startOfMonth(n&&i.isAfter(t,r)?t:r);return!i.isBefore(o,e)}),[n,r,e,i])}(s,{disablePast:l,minDate:h});if(1===x.length&&"year"===x[0])return null;var P=e;return(Object(T.jsxs)(Vt,{ownerState:P,children:[Object(T.jsxs)(Ht,{role:"presentation",onClick:function(){if(1!==x.length&&g&&!u)if(2===x.length)g(x.find((function(e){return e!==m}))||x[0]);else{var e=0!==x.indexOf(m)?0:1;g(x[e])}},ownerState:P,"aria-live":"polite",children:[Object(T.jsx)(Qe,{reduceAnimations:y,transKey:E.format(s,"monthAndYear"),children:Object(T.jsx)(Wt,{id:w,ownerState:P,children:E.format(s,"monthAndYear")})}),x.length>1&&!u&&Object(T.jsx)(qt,Object(i.a)({size:"small",as:n.SwitchViewButton,"aria-label":k(m)},j,{children:Object(T.jsx)(Gt,{as:n.SwitchViewIcon,ownerState:P})}))]}),Object(T.jsx)(Fe.a,{in:"day"===m,children:Object(T.jsx)(de,{leftArrowButtonText:S,rightArrowButtonText:O,components:n,componentsProps:a,onLeftClick:function(){return v(E.getPreviousMonth(s),"right")},onRightClick:function(){return v(E.getNextMonth(s),"left")},isLeftDisabled:A,isRightDisabled:C})})]}))}var $t=n(18);function Xt(e){return(Xt="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 Qt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Xt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Xt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Xt(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zt=["autoFocus","className","children","disabled","onClick","onKeyDown","selected","value"];function Jt(e){return Object(he.a)("PrivatePickersYear",e)}var en=Object(K.a)("PrivatePickersYear",["root","modeMobile","modeDesktop","yearButton","disabled","selected"]),tn=Object(s.a)("div")((function(e){var t=e.ownerState;return Object(i.a)({flexBasis:"33.3%",display:"flex",alignItems:"center",justifyContent:"center"},"desktop"===(null==t?void 0:t.wrapperVariant)&&{flexBasis:"25%"})})),nn=Object(s.a)("button")((function(e){var t=e.theme;return Object(i.a)({color:"unset",backgroundColor:"transparent",border:0,outline:0},t.typography.subtitle1,Qt(Qt({margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus, &:hover":{backgroundColor:Object(_e.a)(t.palette.action.active,t.palette.action.hoverOpacity)}},"&.".concat(en.disabled),{color:t.palette.text.secondary}),"&.".concat(en.selected),{color:t.palette.primary.contrastText,backgroundColor:t.palette.primary.main,"&:focus, &:hover":{backgroundColor:t.palette.primary.dark}}))})),rn=o.forwardRef((function(e,t){var n=e.autoFocus,a=e.className,s=e.children,u=e.disabled,c=e.onClick,l=e.onKeyDown,f=e.selected,d=e.value,h=Object(r.a)(e,Zt),v=o.useRef(null),m=Object(Je.a)(v,t),y=o.useContext(B.a),b=Object(i.a)({},e,{wrapperVariant:y}),x=function(e){var t=e.wrapperVariant,n=e.disabled,r=e.selected,i=e.classes,o={root:["root",t&&"mode".concat(Object($t.a)(t))],yearButton:["yearButton",n&&"disabled",r&&"selected"]};return Object(g.a)(o,Jt,i)}(b);return o.useEffect((function(){n&&v.current.focus()}),[n]),Object(T.jsx)(tn,{className:Object(p.default)(x.root,a),ownerState:b,children:Object(T.jsx)(nn,Object(i.a)({ref:m,disabled:u,type:"button",tabIndex:f?0:-1,onClick:function(e){return c(e,d)},onKeyDown:function(e){return l(e,d)},className:x.yearButton,ownerState:b},h,{children:s}))})}));function on(e){return Object(he.a)("MuiYearPicker",e)}Object(K.a)("MuiYearPicker",["root"]);function an(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return sn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sn(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var un=Object(s.a)("div",{name:"MuiYearPicker",slot:"Root",overridesResolver:function(e,t){return t.root}})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",margin:"0 4px"}),cn=o.forwardRef((function(e,t){var n=Object(F.d)(),r=Object(oe.a)(),a=Object(F.e)(),s=function(e,t){var n=Object(F.e)(),r=Object(F.a)(),o=Object(v.a)({props:e,name:t});return Object(i.a)({disablePast:!1,disableFuture:!1},o,{minDate:Object(Ae.b)(n,o.minDate,r.minDate),maxDate:Object(Ae.b)(n,o.maxDate,r.maxDate)})}(e,"MuiYearPicker"),u=s.autoFocus,c=s.className,l=s.date,f=s.disabled,d=s.disableFuture,h=s.disablePast,m=s.maxDate,y=s.minDate,b=s.onChange,x=s.readOnly,w=s.shouldDisableYear,_=s.disableHighlightToday,S=s,O=function(e){var t=e.classes;return Object(g.a)({root:["root"]},on,t)}(S),k=null!=l?l:n,E=o.useMemo((function(){return null!=l?a.getYear(l):_?null:a.getYear(n)}),[n,l,a,_]),j=o.useContext(B.a),C=o.useRef(null),A=an(o.useState(E),2),P=A[0],M=A[1],I=o.useCallback((function(e){return!(!h||!a.isBeforeYear(e,n))||(!(!d||!a.isAfterYear(e,n))||(!(!y||!a.isBeforeYear(e,y))||(!(!m||!a.isAfterYear(e,m))||!(!w||!w(e)))))}),[d,h,m,y,n,w,a]),R=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"finish";if(!x){var r=a.setYear(k,t);b(r,n)}},D=o.useCallback((function(e){I(a.setYear(k,e))||M(e)}),[k,I,a]),L="desktop"===j?4:3,N=function(e,t){switch(e.key){case"ArrowUp":D(t-L),e.preventDefault();break;case"ArrowDown":D(t+L),e.preventDefault();break;case"ArrowLeft":D(t+("ltr"===r.direction?-1:1)),e.preventDefault();break;case"ArrowRight":D(t+("ltr"===r.direction?1:-1)),e.preventDefault()}},U=a.getYear(n);return Object(T.jsx)(un,{ref:t,className:Object(p.default)(O.root,c),ownerState:S,children:a.getYearRange(y,m).map((function(e){var t=a.getYear(e),n=t===E;return Object(T.jsx)(rn,{selected:n,value:t,onClick:R,onKeyDown:N,autoFocus:u&&t===P,ref:n?C:void 0,disabled:f||I(e),"aria-current":U===t?"date":void 0,children:a.format(e,"year")},a.format(e,"year"))}))})})),ln="undefined"!=typeof navigator&&/(android)/i.test(navigator.userAgent),fn=function(e){return Object(he.a)("MuiCalendarPicker",e)},dn=(Object(K.a)("MuiCalendarPicker",["root","viewTransitionContainer"]),["autoFocus","onViewChange","date","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday"]);var pn=Object(s.a)(me,{name:"MuiCalendarPicker",slot:"Root",overridesResolver:function(e,t){return t.root}})({display:"flex",flexDirection:"column"}),hn=Object(s.a)(Qe,{name:"MuiCalendarPicker",slot:"ViewTransitionContainer",overridesResolver:function(e,t){return t.viewTransitionContainer}})({overflowY:"auto"}),vn=o.forwardRef((function(e,t){var n=Object(F.e)(),a=Object(h.a)(),s=function(e,t){var n=Object(F.e)(),r=Object(F.a)(),o=Object(v.a)({props:e,name:t});return Object(i.a)({loading:!1,disablePast:!1,disableFuture:!1,openTo:"day",views:["year","day"],reduceAnimations:ln,renderLoading:function(){return Object(T.jsx)("span",{children:"..."})}},o,{minDate:Object(Ae.b)(n,o.minDate,r.minDate),maxDate:Object(Ae.b)(n,o.maxDate,r.maxDate)})}(e,"MuiCalendarPicker"),u=s.autoFocus,c=s.onViewChange,l=s.date,f=s.disableFuture,m=s.disablePast,y=s.defaultCalendarMonth,b=s.onChange,x=s.onYearChange,w=s.onMonthChange,_=s.reduceAnimations,S=s.shouldDisableDate,O=s.shouldDisableMonth,k=s.shouldDisableYear,E=s.view,j=s.views,C=s.openTo,A=s.className,P=s.disabled,M=s.readOnly,I=s.minDate,R=s.maxDate,D=s.disableHighlightToday,L=Object(r.a)(s,dn),N=d({view:E,views:j,openTo:C,onChange:b,onViewChange:c}),B=N.openView,U=N.setOpenView,z=N.openNext,V=Ne({date:l,defaultCalendarMonth:y,reduceAnimations:_,onMonthChange:w,minDate:I,maxDate:R,shouldDisableDate:S,disablePast:m,disableFuture:f}),H=V.calendarState,W=V.changeFocusedDay,q=V.changeMonth,G=V.handleChangeMonth,Y=V.isDateDisabled,K=V.onMonthSwitchingAnimationEnd,$=o.useCallback((function(e,t){var r=n.startOfMonth(e),i=n.endOfMonth(e),o=Y(e)?Object(Ae.a)({utils:n,date:e,minDate:n.isBefore(I,r)?r:I,maxDate:n.isAfter(R,i)?i:R,disablePast:m,disableFuture:f,isDateDisabled:Y}):e;o?(b(o,t),null==w||w(r)):(z(),q(r)),W(o)}),[W,f,m,Y,R,I,b,w,q,z,n]),X=o.useCallback((function(e,t){var r=n.startOfYear(e),i=n.endOfYear(e),o=Y(e)?Object(Ae.a)({utils:n,date:e,minDate:n.isBefore(I,r)?r:I,maxDate:n.isAfter(R,i)?i:R,disablePast:m,disableFuture:f,isDateDisabled:Y}):e;o?(b(o,t),null==x||x(o)):(z(),q(r)),W(o)}),[W,f,m,Y,R,I,b,x,z,n,q]),Q=o.useCallback((function(e,t){return b(l&&e?n.mergeDateAndTime(e,l):e,t)}),[n,l,b]);o.useEffect((function(){if(l&&Y(l)){var e=Object(Ae.a)({utils:n,date:l,minDate:I,maxDate:R,disablePast:m,disableFuture:f,isDateDisabled:Y});b(e,"partial")}}),[]),o.useEffect((function(){l&&q(l)}),[l]);var Z=s,J=function(e){var t=e.classes;return Object(g.a)({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},fn,t)}(Z),ee={disablePast:m,disableFuture:f,maxDate:R,minDate:I},te=P&&l||I,ne=P&&l||R,re={disableHighlightToday:D,readOnly:M,disabled:P},ie="".concat(a,"-grid-label");return Object(T.jsxs)(pn,{ref:t,className:Object(p.default)(J.root,A),ownerState:Z,children:[Object(T.jsx)(Kt,Object(i.a)({},L,{views:j,openView:B,currentMonth:H.currentMonth,onViewChange:U,onMonthChange:function(e,t){return G({newMonth:e,direction:t})},minDate:te,maxDate:ne,disabled:P,disablePast:m,disableFuture:f,reduceAnimations:_,labelId:ie})),Object(T.jsx)(hn,{reduceAnimations:_,className:J.viewTransitionContainer,transKey:B,ownerState:Z,children:Object(T.jsxs)("div",{children:["year"===B&&Object(T.jsx)(cn,Object(i.a)({},L,ee,re,{autoFocus:u,date:l,onChange:X,shouldDisableYear:k})),"month"===B&&Object(T.jsx)(Ie,Object(i.a)({},ee,re,{className:A,date:l,onChange:$,shouldDisableMonth:O})),"day"===B&&Object(T.jsx)(zt,Object(i.a)({},L,H,ee,re,{autoFocus:u,onMonthSwitchingAnimationEnd:K,onFocusedDayChange:W,reduceAnimations:_,selectedDays:[l],onSelectedDaysChange:Q,shouldDisableDate:S,gridLabelId:ie}))]})})]})})),gn=n(528);function mn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return yn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yn(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bn(){return"undefined"==typeof window?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?90===Math.abs(window.screen.orientation.angle)?"landscape":"portrait":window.orientation&&90===Math.abs(Number(window.orientation))?"landscape":"portrait"}var xn=function(e,t){var n=mn(o.useState(bn),2),r=n[0],i=n[1];return Object(b.a)((function(){var e=function(){i(bn())};return window.addEventListener("orientationchange",e),function(){window.removeEventListener("orientationchange",e)}}),[]),!Object(c.a)(e,["hours","minutes","seconds"])&&"landscape"===(t||r)};n.d(t,"a",(function(){return jn}));var wn=["autoFocus","className","parsedValue","DateInputProps","isMobileKeyboardViewOpen","onDateChange","onViewChange","openTo","orientation","showToolbar","toggleMobileKeyboardView","ToolbarComponent","toolbarFormat","toolbarPlaceholder","toolbarTitle","views"],_n=Object(s.a)("div")({padding:"16px 24px"}),Sn=Object(s.a)("div")((function(e){var t=e.ownerState;return Object(i.a)({display:"flex",flexDirection:"column"},t.isLandscape&&{flexDirection:"row"})})),On={fullWidth:!0},kn=function(e){return"year"===e||"month"===e||"day"===e},En=function(e){return"hours"===e||"minutes"===e||"seconds"===e};function jn(e){var t=e.autoFocus,n=e.parsedValue,a=e.DateInputProps,s=e.isMobileKeyboardViewOpen,u=e.onDateChange,c=e.onViewChange,l=e.openTo,f=e.orientation,p=e.showToolbar,h=e.toggleMobileKeyboardView,v=e.ToolbarComponent,g=void 0===v?function(){return null}:v,m=e.toolbarFormat,y=e.toolbarPlaceholder,b=e.toolbarTitle,x=e.views,w=Object(r.a)(e,wn),_=xn(x,f),S=o.useContext(B.a),O=null!=p?p:"desktop"!==S,k=o.useCallback((function(e,t){u(e,S,t)}),[u,S]),E=d({view:void 0,views:x,openTo:l,onChange:k,onViewChange:o.useCallback((function(e){s&&h(),c&&c(e)}),[s,c,h])}),j=E.openView,C=E.setOpenView,A=E.handleChangeAndOpenNext;return Object(T.jsxs)(Sn,{ownerState:{isLandscape:_},children:[O&&Object(T.jsx)(g,Object(i.a)({},w,{views:x,isLandscape:_,parsedValue:n,onChange:k,setOpenView:C,openView:j,toolbarTitle:b,toolbarFormat:m,toolbarPlaceholder:y,isMobileKeyboardViewOpen:s,toggleMobileKeyboardView:h})),Object(T.jsx)(me,{children:s?Object(T.jsx)(_n,{children:Object(T.jsx)(gn.a,Object(i.a)({},a,{ignoreInvalidInputs:!0,disableOpenPicker:!0,TextFieldProps:On}))}):Object(T.jsxs)(o.Fragment,{children:[kn(j)&&Object(T.jsx)(vn,Object(i.a)({autoFocus:t,date:n,onViewChange:C,onChange:A,view:j,views:x.filter(kn)},w)),En(j)&&Object(T.jsx)(we,Object(i.a)({},w,{autoFocus:t,date:n,view:j,views:x.filter(En),onChange:A,onViewChange:C,showViewSwitcher:"desktop"===S}))]})})]})}},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(17),s=n(158),u=n(149),c=n(15),l=n(20),f=n(127),d=n(1687),p=n(1662),h=n(1682),v=n(138),g=n(152);function m(e){return Object(v.a)("MuiToolbar",e)}Object(g.a)("MuiToolbar",["root","gutters","regular","dense"]);var y=n(5);function b(e){return(b="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 x(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==b(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===b(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w,_,S,O,k,E,j,T,C=["className","component","disableGutters","variant"],A=Object(c.a)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})((function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({position:"relative",display:"flex",alignItems:"center"},!n.disableGutters&&x({paddingLeft:t.spacing(2),paddingRight:t.spacing(2)},t.breakpoints.up("sm"),{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}),"dense"===n.variant&&{minHeight:48})}),(function(e){var t=e.theme;return"regular"===e.ownerState.variant&&t.mixins.toolbar})),P=o.forwardRef((function(e,t){var n=Object(l.a)({props:e,name:"MuiToolbar"}),o=n.className,u=n.component,c=void 0===u?"div":u,f=n.disableGutters,d=void 0!==f&&f,p=n.variant,h=void 0===p?"regular":p,v=Object(r.a)(n,C),g=Object(i.a)({},n,{component:c,disableGutters:d,variant:h}),b=function(e){var t=e.classes,n={root:["root",!e.disableGutters&&"gutters",e.variant]};return Object(s.a)(n,m,t)}(g);return Object(y.jsx)(A,Object(i.a)({as:c,className:Object(a.default)(b.root,o),ref:t,ownerState:g},v))})),M=n(404),I=n(405),R=n(76),D=n(465),L=n(56),N=Object(L.a)(Object(y.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),F=Object(L.a)(Object(y.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),B=["backIconButtonProps","count","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton"],U=o.forwardRef((function(e,t){var n=e.backIconButtonProps,o=e.count,a=e.getItemAriaLabel,s=e.nextIconButtonProps,u=e.onPageChange,c=e.page,l=e.rowsPerPage,f=e.showFirstButton,d=e.showLastButton,p=Object(r.a)(e,B),h=Object(R.a)();return Object(y.jsxs)("div",Object(i.a)({ref:t},p,{children:[f&&Object(y.jsx)(D.a,{onClick:function(e){u(e,0)},disabled:0===c,"aria-label":a("first",c),title:a("first",c),children:"rtl"===h.direction?w||(w=Object(y.jsx)(N,{})):_||(_=Object(y.jsx)(F,{}))}),Object(y.jsx)(D.a,Object(i.a)({onClick:function(e){u(e,c-1)},disabled:0===c,color:"inherit","aria-label":a("previous",c),title:a("previous",c)},n,{children:"rtl"===h.direction?S||(S=Object(y.jsx)(I.a,{})):O||(O=Object(y.jsx)(M.a,{}))})),Object(y.jsx)(D.a,Object(i.a)({onClick:function(e){u(e,c+1)},disabled:-1!==o&&c>=Math.ceil(o/l)-1,color:"inherit","aria-label":a("next",c),title:a("next",c)},s,{children:"rtl"===h.direction?k||(k=Object(y.jsx)(M.a,{})):E||(E=Object(y.jsx)(I.a,{}))})),d&&Object(y.jsx)(D.a,{onClick:function(e){u(e,Math.max(0,Math.ceil(o/l)-1))},disabled:c>=Math.ceil(o/l)-1,"aria-label":a("last",c),title:a("last",c),children:"rtl"===h.direction?j||(j=Object(y.jsx)(F,{})):T||(T=Object(y.jsx)(N,{}))})]}))})),z=n(233);function V(e){return Object(v.a)("MuiTablePagination",e)}var H,W=Object(g.a)("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);function q(e){return(q="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 G(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==q(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==q(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===q(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Y=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton"],K=Object(c.a)(h.a,{name:"MuiTablePagination",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(e){var t=e.theme;return{overflow:"auto",color:(t.vars||t).palette.text.primary,fontSize:t.typography.pxToRem(14),"&:last-child":{padding:0}}})),$=Object(c.a)(P,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:function(e,t){return Object(i.a)(G({},"& .".concat(W.actions),t.actions),t.toolbar)}})((function(e){var t=e.theme;return G(G(G({minHeight:52,paddingRight:2},"".concat(t.breakpoints.up("xs")," and (orientation: landscape)"),{minHeight:52}),t.breakpoints.up("sm"),{minHeight:52,paddingRight:2}),"& .".concat(W.actions),{flexShrink:0,marginLeft:20})})),X=Object(c.a)("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:function(e,t){return t.spacer}})({flex:"1 1 100%"}),Q=Object(c.a)("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:function(e,t){return t.selectLabel}})((function(e){var t=e.theme;return Object(i.a)({},t.typography.body2,{flexShrink:0})})),Z=Object(c.a)(p.a,{name:"MuiTablePagination",slot:"Select",overridesResolver:function(e,t){return Object(i.a)(G(G({},"& .".concat(W.selectIcon),t.selectIcon),"& .".concat(W.select),t.select),t.input,t.selectRoot)}})(G({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8},"& .".concat(W.select),{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"})),J=Object(c.a)(d.a,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:function(e,t){return t.menuItem}})({}),ee=Object(c.a)("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:function(e,t){return t.displayedRows}})((function(e){var t=e.theme;return Object(i.a)({},t.typography.body2,{flexShrink:0})}));function te(e){var t=e.from,n=e.to,r=e.count;return"".concat(t,"–").concat(n," of ").concat(-1!==r?r:"more than ".concat(n))}function ne(e){return"Go to ".concat(e," page")}var re=o.forwardRef((function(e,t){var n,c=Object(l.a)({props:e,name:"MuiTablePagination"}),d=c.ActionsComponent,p=void 0===d?U:d,v=c.backIconButtonProps,g=c.className,m=c.colSpan,b=c.component,x=void 0===b?h.a:b,w=c.count,_=c.getItemAriaLabel,S=void 0===_?ne:_,O=c.labelDisplayedRows,k=void 0===O?te:O,E=c.labelRowsPerPage,j=void 0===E?"Rows per page:":E,T=c.nextIconButtonProps,C=c.onPageChange,A=c.onRowsPerPageChange,P=c.page,M=c.rowsPerPage,I=c.rowsPerPageOptions,R=void 0===I?[10,25,50,100]:I,D=c.SelectProps,L=void 0===D?{}:D,N=c.showFirstButton,F=void 0!==N&&N,B=c.showLastButton,W=void 0!==B&&B,q=Object(r.a)(c,Y),G=c,re=function(e){var t=e.classes;return Object(s.a)({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},V,t)}(G),ie=L.native?"option":J;x!==h.a&&"td"!==x||(n=m||1e3);var oe=Object(z.a)(L.id),ae=Object(z.a)(L.labelId);return Object(y.jsx)(K,Object(i.a)({colSpan:n,ref:t,as:x,ownerState:G,className:Object(a.default)(re.root,g)},q,{children:Object(y.jsxs)($,{className:re.toolbar,children:[Object(y.jsx)(X,{className:re.spacer}),R.length>1&&Object(y.jsx)(Q,{className:re.selectLabel,id:ae,children:j}),R.length>1&&Object(y.jsx)(Z,Object(i.a)({variant:"standard"},!L.variant&&{input:H||(H=Object(y.jsx)(f.c,{}))},{value:M,onChange:A,id:oe,labelId:ae},L,{classes:Object(i.a)({},L.classes,{root:Object(a.default)(re.input,re.selectRoot,(L.classes||{}).root),select:Object(a.default)(re.select,(L.classes||{}).select),icon:Object(a.default)(re.selectIcon,(L.classes||{}).icon)}),children:R.map((function(e){return Object(o.createElement)(ie,Object(i.a)({},!Object(u.a)(ie)&&{ownerState:G},{className:re.menuItem,key:e.label?e.label:e,value:e.value?e.value:e}),e.label?e.label:e)}))})),Object(y.jsx)(ee,{className:re.displayedRows,children:k({from:0===w?0:P*M+1,to:-1===w?(P+1)*M:-1===M?w:Math.min(w,(P+1)*M),count:-1===w?-1:w,page:P})}),Object(y.jsx)(p,{className:re.actions,backIconButtonProps:v,count:w,nextIconButtonProps:T,onPageChange:C,page:P,rowsPerPage:M,showFirstButton:F,showLastButton:W,getItemAriaLabel:S})]})}))}));t.a=re},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(17),s=n(158),u=n(177),c=n(15),l=n(20),f=n(18),d=n(492),p=n(138),h=n(152);function v(e){return Object(p.a)("MuiAlert",e)}var g,m=Object(h.a)("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),y=n(465),b=n(56),x=n(5),w=Object(b.a)(Object(x.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),_=Object(b.a)(Object(x.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),S=Object(b.a)(Object(x.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),O=Object(b.a)(Object(x.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),k=Object(b.a)(Object(x.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function E(e){return(E="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 j(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==E(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===E(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var T=["action","children","className","closeText","color","icon","iconMapping","onClose","role","severity","variant"],C=Object(c.a)(d.a,{name:"MuiAlert",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],t["".concat(n.variant).concat(Object(f.a)(n.color||n.severity))]]}})((function(e){var t=e.theme,n=e.ownerState,r="light"===t.palette.mode?u.c:u.j,o="light"===t.palette.mode?u.j:u.c,a=n.color||n.severity;return Object(i.a)({},t.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},a&&"standard"===n.variant&&j({color:t.vars?t.vars.palette.Alert["".concat(a,"Color")]:r(t.palette[a].light,.6),backgroundColor:t.vars?t.vars.palette.Alert["".concat(a,"StandardBg")]:o(t.palette[a].light,.9)},"& .".concat(m.icon),t.vars?{color:t.vars.palette.Alert["".concat(a,"IconColor")]}:{color:"dark"===t.palette.mode?t.palette[a].main:t.palette[a].light}),a&&"outlined"===n.variant&&j({color:t.vars?t.vars.palette.Alert["".concat(a,"Color")]:r(t.palette[a].light,.6),border:"1px solid ".concat((t.vars||t).palette[a].light)},"& .".concat(m.icon),t.vars?{color:t.vars.palette.Alert["".concat(a,"IconColor")]}:{color:"dark"===t.palette.mode?t.palette[a].main:t.palette[a].light}),a&&"filled"===n.variant&&Object(i.a)({fontWeight:t.typography.fontWeightMedium},t.vars?{color:t.vars.palette.Alert["".concat(a,"FilledColor")],backgroundColor:t.vars.palette.Alert["".concat(a,"FilledBg")]}:{backgroundColor:"dark"===t.palette.mode?t.palette[a].dark:t.palette[a].main,color:t.palette.getContrastText("dark"===t.palette.mode?t.palette[a].dark:t.palette[a].main)}))})),A=Object(c.a)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:function(e,t){return t.icon}})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),P=Object(c.a)("div",{name:"MuiAlert",slot:"Message",overridesResolver:function(e,t){return t.message}})({padding:"8px 0",minWidth:0,overflow:"auto"}),M=Object(c.a)("div",{name:"MuiAlert",slot:"Action",overridesResolver:function(e,t){return t.action}})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),I={success:Object(x.jsx)(w,{fontSize:"inherit"}),warning:Object(x.jsx)(_,{fontSize:"inherit"}),error:Object(x.jsx)(S,{fontSize:"inherit"}),info:Object(x.jsx)(O,{fontSize:"inherit"})},R=o.forwardRef((function(e,t){var n=Object(l.a)({props:e,name:"MuiAlert"}),o=n.action,u=n.children,c=n.className,d=n.closeText,p=void 0===d?"Close":d,h=n.color,m=n.icon,b=n.iconMapping,w=void 0===b?I:b,_=n.onClose,S=n.role,O=void 0===S?"alert":S,E=n.severity,j=void 0===E?"success":E,R=n.variant,D=void 0===R?"standard":R,L=Object(r.a)(n,T),N=Object(i.a)({},n,{color:h,severity:j,variant:D}),F=function(e){var t=e.variant,n=e.color,r=e.severity,i=e.classes,o={root:["root","".concat(t).concat(Object(f.a)(n||r)),"".concat(t)],icon:["icon"],message:["message"],action:["action"]};return Object(s.a)(o,v,i)}(N);return Object(x.jsxs)(C,Object(i.a)({role:O,elevation:0,ownerState:N,className:Object(a.default)(F.root,c),ref:t},L,{children:[!1!==m?Object(x.jsx)(A,{ownerState:N,className:F.icon,children:m||w[j]||I[j]}):null,Object(x.jsx)(P,{ownerState:N,className:F.message,children:u}),null!=o?Object(x.jsx)(M,{ownerState:N,className:F.action,children:o}):null,null==o&&_?Object(x.jsx)(M,{ownerState:N,className:F.action,children:Object(x.jsx)(y.a,{size:"small","aria-label":p,title:p,color:"inherit",onClick:_,children:g||(g=Object(x.jsx)(k,{fontSize:"small"}))})}):null]}))}));t.a=R},function(e,t,n){"use strict";var r=n(6),i=n(16),o=n(2),a=n(17),s=n(238),u=n(314),c=(n(153),n(158)),l=n(133),f=n(18),d=n(882),p=n(138),h=n(152);function v(e){return Object(p.a)("MuiNativeSelect",e)}var g=Object(h.a)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),m=n(15),y=n(5);function b(e){return(b="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 x(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==b(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===b(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=["className","disabled","IconComponent","inputRef","variant"],_=function(e){var t=e.ownerState,n=e.theme;return Object(r.a)(x(x(x(x({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{backgroundColor:"light"===n.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"}},"&.".concat(g.disabled),{cursor:"default"}),"&[multiple]",{height:"auto"}),"&:not([multiple]) option, &:not([multiple]) optgroup",{backgroundColor:n.palette.background.paper}),"&&&",{paddingRight:24,minWidth:16}),"filled"===t.variant&&{"&&&":{paddingRight:32}},"outlined"===t.variant&&{borderRadius:n.shape.borderRadius,"&:focus":{borderRadius:n.shape.borderRadius},"&&&":{paddingRight:32}})},S=Object(m.a)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:m.b,overridesResolver:function(e,t){var n=e.ownerState;return[t.select,t[n.variant],x({},"&.".concat(g.multiple),t.multiple)]}})(_),O=function(e){var t=e.ownerState,n=e.theme;return Object(r.a)(x({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:n.palette.action.active},"&.".concat(g.disabled),{color:n.palette.action.disabled}),t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7})},k=Object(m.a)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:function(e,t){var n=e.ownerState;return[t.icon,n.variant&&t["icon".concat(Object(f.a)(n.variant))],n.open&&t.iconOpen]}})(O),E=o.forwardRef((function(e,t){var n=e.className,s=e.disabled,u=e.IconComponent,l=e.inputRef,d=e.variant,p=void 0===d?"standard":d,h=Object(i.a)(e,w),g=Object(r.a)({},e,{disabled:s,variant:p}),m=function(e){var t=e.classes,n=e.variant,r=e.disabled,i=e.multiple,o=e.open,a={select:["select",n,r&&"disabled",i&&"multiple"],icon:["icon","icon".concat(Object(f.a)(n)),o&&"iconOpen",r&&"disabled"]};return Object(c.a)(a,v,t)}(g);return Object(y.jsxs)(o.Fragment,{children:[Object(y.jsx)(S,Object(r.a)({ownerState:g,className:Object(a.default)(m.select,n),disabled:s,ref:l||t},h)),e.multiple?null:Object(y.jsx)(k,{as:u,ownerState:g,className:m.icon})]})})),j=n(316),T=n(62),C=n(169);function A(e){return Object(p.a)("MuiSelect",e)}var P,M=Object(h.a)("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]);function I(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return R(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return R(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function D(e){return(D="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,n){return(t=function(e){var t=function(e,t){if("object"!==D(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==D(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===D(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var N=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],F=Object(m.a)("div",{name:"MuiSelect",slot:"Select",overridesResolver:function(e,t){var n=e.ownerState;return[L({},"&.".concat(M.select),t.select),L({},"&.".concat(M.select),t[n.variant]),L({},"&.".concat(M.multiple),t.multiple)]}})(_,L({},"&.".concat(M.select),{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"})),B=Object(m.a)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:function(e,t){var n=e.ownerState;return[t.icon,n.variant&&t["icon".concat(Object(f.a)(n.variant))],n.open&&t.iconOpen]}})(O),U=Object(m.a)("input",{shouldForwardProp:function(e){return Object(m.c)(e)&&"classes"!==e},name:"MuiSelect",slot:"NativeInput",overridesResolver:function(e,t){return t.nativeInput}})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function z(e,t){return"object"===D(t)&&null!==t?e===t:String(e)===String(t)}function V(e){return null==e||"string"==typeof e&&!e.trim()}var H,W,q=o.forwardRef((function(e,t){var n=e["aria-describedby"],s=e["aria-label"],p=e.autoFocus,h=e.autoWidth,v=e.children,g=e.className,m=e.defaultOpen,b=e.defaultValue,x=e.disabled,w=e.displayEmpty,_=e.IconComponent,S=e.inputRef,O=e.labelId,k=e.MenuProps,E=void 0===k?{}:k,M=e.multiple,R=e.name,D=e.onBlur,L=e.onChange,H=e.onClose,W=e.onFocus,q=e.onOpen,G=e.open,Y=e.readOnly,K=e.renderValue,$=e.SelectDisplayProps,X=void 0===$?{}:$,Q=e.tabIndex,Z=e.value,J=e.variant,ee=void 0===J?"standard":J,te=Object(i.a)(e,N),ne=I(Object(C.a)({controlled:Z,default:b,name:"Select"}),2),re=ne[0],ie=ne[1],oe=I(Object(C.a)({controlled:G,default:m,name:"Select"}),2),ae=oe[0],se=oe[1],ue=o.useRef(null),ce=o.useRef(null),le=I(o.useState(null),2),fe=le[0],de=le[1],pe=o.useRef(null!=G).current,he=I(o.useState(),2),ve=he[0],ge=he[1],me=Object(T.a)(t,S),ye=o.useCallback((function(e){ce.current=e,e&&de(e)}),[]);o.useImperativeHandle(me,(function(){return{focus:function(){ce.current.focus()},node:ue.current,value:re}}),[re]),o.useEffect((function(){m&&ae&&fe&&!pe&&(ge(h?null:fe.clientWidth),ce.current.focus())}),[fe,h]),o.useEffect((function(){p&&ce.current.focus()}),[p]),o.useEffect((function(){if(O){var e=Object(l.a)(ce.current).getElementById(O);if(e){var t=function(){getSelection().isCollapsed&&ce.current.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[O]);var be,xe,we=function(e,t){e?q&&q(t):H&&H(t),pe||(ge(h?null:fe.clientWidth),se(e))},_e=o.Children.toArray(v),Se=function(e){return function(t){var n;if(t.currentTarget.hasAttribute("tabindex")){if(M){n=Array.isArray(re)?re.slice():[];var r=re.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),re!==n&&(ie(n),L)){var i=t.nativeEvent||t,o=new i.constructor(i.type,i);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:R}}),L(o,e)}M||we(!1,t)}}},Oe=null!==fe&&ae;delete te["aria-invalid"];var ke=[],Ee=!1;(Object(j.b)({value:re})||w)&&(K?be=K(re):Ee=!0);var je=_e.map((function(e,t,n){if(!o.isValidElement(e))return null;var r;if(M){if(!Array.isArray(re))throw new Error(Object(u.a)(2));(r=re.some((function(t){return z(t,e.props.value)})))&&Ee&&ke.push(e.props.children)}else(r=z(re,e.props.value))&&Ee&&(xe=e.props.children);if(r&&!0,void 0===e.props.value)return o.cloneElement(e,{"aria-readonly":!0,role:"option"});return o.cloneElement(e,{"aria-selected":r?"true":"false",onClick:Se(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:void 0===n[0].props.value||!0===n[0].props.disabled?function(){if(re)return r;var t=n.find((function(e){return void 0!==e.props.value&&!0!==e.props.disabled}));return e===t||r}():r,value:void 0,"data-value":e.props.value})}));Ee&&(be=M?0===ke.length?null:ke.reduce((function(e,t,n){return e.push(t),n<ke.length-1&&e.push(", "),e}),[]):xe);var Te,Ce=ve;!h&&pe&&fe&&(Ce=fe.clientWidth),Te=void 0!==Q?Q:x?null:0;var Ae=X.id||(R?"mui-component-select-".concat(R):void 0),Pe=Object(r.a)({},e,{variant:ee,value:re,open:Oe}),Me=function(e){var t=e.classes,n=e.variant,r=e.disabled,i=e.multiple,o=e.open,a={select:["select",n,r&&"disabled",i&&"multiple"],icon:["icon","icon".concat(Object(f.a)(n)),o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Object(c.a)(a,A,t)}(Pe);return Object(y.jsxs)(o.Fragment,{children:[Object(y.jsx)(F,Object(r.a)({ref:ye,tabIndex:Te,role:"button","aria-disabled":x?"true":void 0,"aria-expanded":Oe?"true":"false","aria-haspopup":"listbox","aria-label":s,"aria-labelledby":[O,Ae].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:function(e){if(!Y){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),we(!0,e))}},onMouseDown:x||Y?null:function(e){0===e.button&&(e.preventDefault(),ce.current.focus(),we(!0,e))},onBlur:function(e){!Oe&&D&&(Object.defineProperty(e,"target",{writable:!0,value:{value:re,name:R}}),D(e))},onFocus:W},X,{ownerState:Pe,className:Object(a.default)(X.className,Me.select,g),id:Ae,children:V(be)?P||(P=Object(y.jsx)("span",{className:"notranslate",children:""})):be})),Object(y.jsx)(U,Object(r.a)({value:Array.isArray(re)?re.join(","):re,name:R,ref:ue,"aria-hidden":!0,onChange:function(e){var t=_e.map((function(e){return e.props.value})).indexOf(e.target.value);if(-1!==t){var n=_e[t];ie(n.props.value),L&&L(e,n)}},tabIndex:-1,disabled:x,className:Me.nativeInput,autoFocus:p,ownerState:Pe},te)),Object(y.jsx)(B,{as:_,className:Me.icon,ownerState:Pe}),Object(y.jsx)(d.a,Object(r.a)({id:"menu-".concat(R||""),anchorEl:fe,open:Oe,onClose:function(e){we(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},E,{MenuListProps:Object(r.a)({"aria-labelledby":O,role:"listbox",disableListWrap:!0},E.MenuListProps),PaperProps:Object(r.a)({},E.PaperProps,{style:Object(r.a)({minWidth:Ce},null!=E.PaperProps?E.PaperProps.style:null)}),children:je}))]})})),G=n(140),Y=n(122),K=n(56),$=Object(K.a)(Object(y.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),X=n(1683),Q=n(1684),Z=n(1673),J=n(20),ee=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],te={name:"MuiSelect",overridesResolver:function(e,t){return t.root},shouldForwardProp:function(e){return Object(m.b)(e)&&"variant"!==e},slot:"Root"},ne=Object(m.a)(X.a,te)(""),re=Object(m.a)(Z.a,te)(""),ie=Object(m.a)(Q.a,te)(""),oe=o.forwardRef((function(e,t){var n=Object(J.a)({name:"MuiSelect",props:e}),u=n.autoWidth,c=void 0!==u&&u,l=n.children,f=n.classes,d=void 0===f?{}:f,p=n.className,h=n.defaultOpen,v=void 0!==h&&h,g=n.displayEmpty,m=void 0!==g&&g,b=n.IconComponent,x=void 0===b?$:b,w=n.id,_=n.input,S=n.inputProps,O=n.label,k=n.labelId,j=n.MenuProps,C=n.multiple,A=void 0!==C&&C,P=n.native,M=void 0!==P&&P,I=n.onClose,R=n.onOpen,D=n.open,L=n.renderValue,N=n.SelectDisplayProps,F=n.variant,B=void 0===F?"outlined":F,U=Object(i.a)(n,ee),z=M?E:q,V=Object(Y.a)(),K=Object(G.a)({props:n,muiFormControl:V,states:["variant"]}).variant||B,X=_||{standard:H||(H=Object(y.jsx)(ne,{})),outlined:Object(y.jsx)(re,{label:O}),filled:W||(W=Object(y.jsx)(ie,{}))}[K],Q=function(e){return e.classes}(Object(r.a)({},n,{variant:K,classes:d})),Z=Object(T.a)(t,X.ref);return o.cloneElement(X,Object(r.a)({inputComponent:z,inputProps:Object(r.a)({children:l,IconComponent:x,variant:K,type:void 0,multiple:A},M?{id:w}:{autoWidth:c,defaultOpen:v,displayEmpty:m,labelId:k,MenuProps:j,onClose:I,onOpen:R,open:D,renderValue:L,SelectDisplayProps:Object(r.a)({id:w},N)},S,{classes:S?Object(s.a)(Q,S.classes):Q},_?_.props.inputProps:{})},A&&M&&"outlined"===K?{notched:!0}:{},{ref:Z,className:Object(a.default)(X.props.className,p)},!_&&{variant:K},U))}));oe.muiName="Select";t.a=oe},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(158),s=n(177),u=n(364),c=n(20),l=n(56),f=n(5),d=Object(l.a)(Object(f.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),p=Object(l.a)(Object(f.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),h=n(15),v=Object(h.a)("span")({position:"relative",display:"flex"}),g=Object(h.a)(d)({transform:"scale(1)"}),m=Object(h.a)(p)((function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest})},n.checked&&{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})})}));var y=function(e){var t=e.checked,n=void 0!==t&&t,r=e.classes,o=void 0===r?{}:r,a=e.fontSize,s=Object(i.a)({},e,{checked:n});return Object(f.jsxs)(v,{className:o.root,ownerState:s,children:[Object(f.jsx)(g,{fontSize:a,className:o.background,ownerState:s}),Object(f.jsx)(m,{fontSize:a,className:o.dot,ownerState:s})]})},b=n(18),x=n(457),w=n(503);var _=n(138),S=n(152);function O(e){return Object(_.a)("MuiRadio",e)}var k=Object(S.a)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary"]);function E(e){return(E="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 j(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==E(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===E(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var T=["checked","checkedIcon","color","icon","name","onChange","size"],C=Object(h.a)(u.a,{shouldForwardProp:function(e){return Object(h.b)(e)||"classes"===e},name:"MuiRadio",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t["color".concat(Object(b.a)(n.color))]]}})((function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({color:(t.vars||t).palette.text.secondary,"&:hover":{backgroundColor:t.vars?"rgba(".concat("default"===n.color?t.vars.palette.action.activeChannel:t.vars.palette[n.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):Object(s.a)("default"===n.color?t.palette.action.active:t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==n.color&&j({},"&.".concat(k.checked),{color:(t.vars||t).palette[n.color].main}),j({},"&.".concat(k.disabled),{color:(t.vars||t).palette.action.disabled}))}));var A=Object(f.jsx)(y,{checked:!0}),P=Object(f.jsx)(y,{}),M=o.forwardRef((function(e,t){var n,s,u,l,d=Object(c.a)({props:e,name:"MuiRadio"}),p=d.checked,h=d.checkedIcon,v=void 0===h?A:h,g=d.color,m=void 0===g?"primary":g,y=d.icon,_=void 0===y?P:y,S=d.name,k=d.onChange,j=d.size,M=void 0===j?"medium":j,I=Object(r.a)(d,T),R=Object(i.a)({},d,{color:m,size:M}),D=function(e){var t=e.classes,n=e.color,r={root:["root","color".concat(Object(b.a)(n))]};return Object(i.a)({},t,Object(a.a)(r,O,t))}(R),L=o.useContext(w.a),N=p,F=Object(x.a)(k,L&&L.onChange),B=S;return L&&(void 0===N&&(u=L.value,N="object"===E(l=d.value)&&null!==l?u===l:String(u)===String(l)),void 0===B&&(B=L.name)),Object(f.jsx)(C,Object(i.a)({type:"radio",icon:o.cloneElement(_,{fontSize:null!=(n=P.props.fontSize)?n:M}),checkedIcon:o.cloneElement(v,{fontSize:null!=(s=A.props.fontSize)?s:M}),ownerState:R,classes:D,name:B,checked:N,onChange:F,ref:t},I))}));t.a=M},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=(n(153),n(17)),s=n(158),u=n(15),c=n(20),l=n(76),f=n(193),d=n(575);function p(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function h(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},o=r.ease,a=void 0===o?p:o,s=r.duration,u=void 0===s?300:s,c=null,l=t[e],f=!1,d=function(){f=!0},h=function(r){if(f)i(new Error("Animation cancelled"));else{null===c&&(c=r);var o=Math.min(1,(r-c)/u);t[e]=a(o)*(n-l)+l,o>=1?requestAnimationFrame((function(){i(null)})):requestAnimationFrame(h)}};return l===n?(i(new Error("Element already at target position")),d):(requestAnimationFrame(h),d)}var v=n(155),g=n(5),m=["onChange"],y={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};var b=n(404),x=n(405),w=n(887),_=n(138),S=n(152);function O(e){return Object(_.a)("MuiTabScrollButton",e)}var k,E,j=Object(S.a)("MuiTabScrollButton",["root","vertical","horizontal","disabled"]);function T(e){return(T="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 C(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==T(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==T(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===T(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var A=["className","direction","orientation","disabled"],P=Object(u.a)(w.a,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.orientation&&t[n.orientation]]}})((function(e){var t=e.ownerState;return Object(i.a)(C({width:40,flexShrink:0,opacity:.8},"&.".concat(j.disabled),{opacity:0}),"vertical"===t.orientation&&{width:"100%",height:40,"& svg":{transform:"rotate(".concat(t.isRtl?-90:90,"deg)")}})})),M=o.forwardRef((function(e,t){var n=Object(c.a)({props:e,name:"MuiTabScrollButton"}),o=n.className,u=n.direction,f=Object(r.a)(n,A),d="rtl"===Object(l.a)().direction,p=Object(i.a)({isRtl:d},n),h=function(e){var t=e.classes,n={root:["root",e.orientation,e.disabled&&"disabled"]};return Object(s.a)(n,O,t)}(p);return Object(g.jsx)(P,Object(i.a)({component:"div",className:Object(a.default)(h.root,o),ref:t,role:null,ownerState:p,tabIndex:null},f,{children:"left"===u?k||(k=Object(g.jsx)(b.a,{fontSize:"small"})):E||(E=Object(g.jsx)(x.a,{fontSize:"small"}))}))})),I=n(134),R=n(412),D=n(133);function L(e){return(L="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 N(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return F(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return F(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function B(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==L(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==L(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===L(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var U=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],z=function(e,t){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild},V=function(e,t){return e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild},H=function(e,t,n){for(var r=!1,i=n(e,t);i;){if(i===e.firstChild){if(r)return;r=!0}var o=i.disabled||"true"===i.getAttribute("aria-disabled");if(i.hasAttribute("tabindex")&&!o)return void i.focus();i=n(e,i)}},W=Object(u.a)("div",{name:"MuiTabs",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[B({},"& .".concat(R.a.scrollButtons),t.scrollButtons),B({},"& .".concat(R.a.scrollButtons),n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile),t.root,n.vertical&&t.vertical]}})((function(e){var t=e.ownerState,n=e.theme;return Object(i.a)({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&B({},"& .".concat(R.a.scrollButtons),B({},n.breakpoints.down("sm"),{display:"none"})))})),q=Object(u.a)("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:function(e,t){var n=e.ownerState;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})((function(e){var t=e.ownerState;return Object(i.a)({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})})),G=Object(u.a)("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:function(e,t){var n=e.ownerState;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})((function(e){var t=e.ownerState;return Object(i.a)({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})})),Y=Object(u.a)("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:function(e,t){return t.indicator}})((function(e){var t=e.ownerState,n=e.theme;return Object(i.a)({position:"absolute",height:2,bottom:0,width:"100%",transition:n.transitions.create()},"primary"===t.indicatorColor&&{backgroundColor:(n.vars||n).palette.primary.main},"secondary"===t.indicatorColor&&{backgroundColor:(n.vars||n).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})})),K=Object(u.a)((function(e){var t=e.onChange,n=Object(r.a)(e,m),a=o.useRef(),s=o.useRef(null),u=function(){a.current=s.current.offsetHeight-s.current.clientHeight};return o.useEffect((function(){var e=Object(f.a)((function(){var e=a.current;u(),e!==a.current&&t(a.current)})),n=Object(v.a)(s.current);return n.addEventListener("resize",e),function(){e.clear(),n.removeEventListener("resize",e)}}),[t]),o.useEffect((function(){u(),t(a.current)}),[t]),Object(g.jsx)("div",Object(i.a)({style:y,ref:s},n))}),{name:"MuiTabs",slot:"ScrollbarSize"})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),$={},X=o.forwardRef((function(e,t){var n=Object(c.a)({props:e,name:"MuiTabs"}),u=Object(l.a)(),p="rtl"===u.direction,m=n["aria-label"],y=n["aria-labelledby"],b=n.action,x=n.centered,w=void 0!==x&&x,_=n.children,S=n.className,O=n.component,k=void 0===O?"div":O,E=n.allowScrollButtonsMobile,j=void 0!==E&&E,T=n.indicatorColor,C=void 0===T?"primary":T,A=n.onChange,P=n.orientation,L=void 0===P?"horizontal":P,F=n.ScrollButtonComponent,X=void 0===F?M:F,Q=n.scrollButtons,Z=void 0===Q?"auto":Q,J=n.selectionFollowsFocus,ee=n.TabIndicatorProps,te=void 0===ee?{}:ee,ne=n.TabScrollButtonProps,re=void 0===ne?{}:ne,ie=n.textColor,oe=void 0===ie?"primary":ie,ae=n.value,se=n.variant,ue=void 0===se?"standard":se,ce=n.visibleScrollbar,le=void 0!==ce&&ce,fe=Object(r.a)(n,U),de="scrollable"===ue,pe="vertical"===L,he=pe?"scrollTop":"scrollLeft",ve=pe?"top":"left",ge=pe?"bottom":"right",me=pe?"clientHeight":"clientWidth",ye=pe?"height":"width",be=Object(i.a)({},n,{component:k,allowScrollButtonsMobile:j,indicatorColor:C,orientation:L,vertical:pe,scrollButtons:Z,textColor:oe,variant:ue,visibleScrollbar:le,fixed:!de,hideScrollbar:de&&!le,scrollableX:de&&!pe,scrollableY:de&&pe,centered:w&&!de,scrollButtonsHideMobile:!j}),xe=function(e){var t=e.vertical,n=e.fixed,r=e.hideScrollbar,i=e.scrollableX,o=e.scrollableY,a=e.centered,u=e.scrollButtonsHideMobile,c=e.classes,l={root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",i&&"scrollableX",o&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",u&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]};return Object(s.a)(l,R.b,c)}(be);var we=N(o.useState(!1),2),_e=we[0],Se=we[1],Oe=N(o.useState($),2),ke=Oe[0],Ee=Oe[1],je=N(o.useState({start:!1,end:!1}),2),Te=je[0],Ce=je[1],Ae=N(o.useState({overflow:"hidden",scrollbarWidth:0}),2),Pe=Ae[0],Me=Ae[1],Ie=new Map,Re=o.useRef(null),De=o.useRef(null),Le=function(){var e,t,n=Re.current;if(n){var r=n.getBoundingClientRect();e={clientWidth:n.clientWidth,scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,scrollLeftNormalized:Object(d.b)(n,u.direction),scrollWidth:n.scrollWidth,top:r.top,bottom:r.bottom,left:r.left,right:r.right}}if(n&&!1!==ae){var i=De.current.children;if(i.length>0){var o=i[Ie.get(ae)];0,t=o?o.getBoundingClientRect():null}}return{tabsMeta:e,tabMeta:t}},Ne=Object(I.a)((function(){var e,t=Le(),n=t.tabsMeta,r=t.tabMeta,i=0;if(pe)e="top",r&&n&&(i=r.top-n.top+n.scrollTop);else if(e=p?"right":"left",r&&n){var o=p?n.scrollLeftNormalized+n.clientWidth-n.scrollWidth:n.scrollLeft;i=(p?-1:1)*(r[e]-n[e]+o)}var a=B(B({},e,i),ye,r?r[ye]:0);if(isNaN(ke[e])||isNaN(ke[ye]))Ee(a);else{var s=Math.abs(ke[e]-a[e]),u=Math.abs(ke[ye]-a[ye]);(s>=1||u>=1)&&Ee(a)}})),Fe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.animation,r=void 0===n||n;r?h(he,Re.current,e,{duration:u.transitions.duration.standard}):Re.current[he]=e},Be=function(e){var t=Re.current[he];pe?t+=e:(t+=e*(p?-1:1),t*=p&&"reverse"===Object(d.a)()?-1:1),Fe(t)},Ue=function(){for(var e=Re.current[me],t=0,n=Array.from(De.current.children),r=0;r<n.length;r+=1){var i=n[r];if(t+i[me]>e){0===r&&(t=e);break}t+=i[me]}return t},ze=function(){Be(-1*Ue())},Ve=function(){Be(Ue())},He=o.useCallback((function(e){Me({overflow:null,scrollbarWidth:e})}),[]),We=Object(I.a)((function(e){var t=Le(),n=t.tabsMeta,r=t.tabMeta;if(r&&n)if(r[ve]<n[ve]){var i=n[he]+(r[ve]-n[ve]);Fe(i,{animation:e})}else if(r[ge]>n[ge]){var o=n[he]+(r[ge]-n[ge]);Fe(o,{animation:e})}})),qe=Object(I.a)((function(){if(de&&!1!==Z){var e,t,n=Re.current,r=n.scrollTop,i=n.scrollHeight,o=n.clientHeight,a=n.scrollWidth,s=n.clientWidth;if(pe)e=r>1,t=r<i-o-1;else{var c=Object(d.b)(Re.current,u.direction);e=p?c<a-s-1:c>1,t=p?c>1:c<a-s-1}e===Te.start&&t===Te.end||Ce({start:e,end:t})}}));o.useEffect((function(){var e,t=Object(f.a)((function(){Re.current&&(Ne(),qe())})),n=Object(v.a)(Re.current);return n.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(t),Array.from(De.current.children).forEach((function(t){e.observe(t)}))),function(){t.clear(),n.removeEventListener("resize",t),e&&e.disconnect()}}),[Ne,qe]);var Ge=o.useMemo((function(){return Object(f.a)((function(){qe()}))}),[qe]);o.useEffect((function(){return function(){Ge.clear()}}),[Ge]),o.useEffect((function(){Se(!0)}),[]),o.useEffect((function(){Ne(),qe()})),o.useEffect((function(){We($!==ke)}),[We,ke]),o.useImperativeHandle(b,(function(){return{updateIndicator:Ne,updateScrollButtons:qe}}),[Ne,qe]);var Ye=Object(g.jsx)(Y,Object(i.a)({},te,{className:Object(a.default)(xe.indicator,te.className),ownerState:be,style:Object(i.a)({},ke,te.style)})),Ke=0,$e=o.Children.map(_,(function(e){if(!o.isValidElement(e))return null;var t=void 0===e.props.value?Ke:e.props.value;Ie.set(t,Ke);var n=t===ae;return Ke+=1,o.cloneElement(e,Object(i.a)({fullWidth:"fullWidth"===ue,indicator:n&&!_e&&Ye,selected:n,selectionFollowsFocus:J,onChange:A,textColor:oe,value:t},1!==Ke||!1!==ae||e.props.tabIndex?{}:{tabIndex:0}))})),Xe=function(){var e={};e.scrollbarSizeListener=de?Object(g.jsx)(K,{onChange:He,className:Object(a.default)(xe.scrollableX,xe.hideScrollbar)}):null;var t=Te.start||Te.end,n=de&&("auto"===Z&&t||!0===Z);return e.scrollButtonStart=n?Object(g.jsx)(X,Object(i.a)({orientation:L,direction:p?"right":"left",onClick:ze,disabled:!Te.start},re,{className:Object(a.default)(xe.scrollButtons,re.className)})):null,e.scrollButtonEnd=n?Object(g.jsx)(X,Object(i.a)({orientation:L,direction:p?"left":"right",onClick:Ve,disabled:!Te.end},re,{className:Object(a.default)(xe.scrollButtons,re.className)})):null,e}();return Object(g.jsxs)(W,Object(i.a)({className:Object(a.default)(xe.root,S),ownerState:be,ref:t,as:k},fe,{children:[Xe.scrollButtonStart,Xe.scrollbarSizeListener,Object(g.jsxs)(q,{className:xe.scroller,ownerState:be,style:B({overflow:Pe.overflow},pe?"margin".concat(p?"Left":"Right"):"marginBottom",le?void 0:-Pe.scrollbarWidth),ref:Re,onScroll:Ge,children:[Object(g.jsx)(G,{"aria-label":m,"aria-labelledby":y,"aria-orientation":"vertical"===L?"vertical":null,className:xe.flexContainer,ownerState:be,onKeyDown:function(e){var t=De.current,n=Object(D.a)(t).activeElement;if("tab"===n.getAttribute("role")){var r="horizontal"===L?"ArrowLeft":"ArrowUp",i="horizontal"===L?"ArrowRight":"ArrowDown";switch("horizontal"===L&&p&&(r="ArrowRight",i="ArrowLeft"),e.key){case r:e.preventDefault(),H(t,n,V);break;case i:e.preventDefault(),H(t,n,z);break;case"Home":e.preventDefault(),H(t,null,z);break;case"End":e.preventDefault(),H(t,null,V)}}},ref:De,role:"tablist",children:$e}),_e&&Ye]}),Xe.scrollButtonEnd]}))}));t.a=X},function(e,t,n){"use strict";var r=n(6),i=n(16),o=n(2),a=n(22),s=n.n(a),u=n(619),c=n(76),l=n(120),f=n(1640),d=n(5);function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var v=["initialWidth","width"],g=["xs","sm","md","lg","xl"],m=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return n?g.indexOf(e)<=g.indexOf(t):g.indexOf(e)<g.indexOf(t)},y=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return n?g.indexOf(t)<=g.indexOf(e):g.indexOf(t)<g.indexOf(e)},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=e.withTheme,a=void 0!==n&&n,s=e.noSSR,h=void 0!==s&&s,g=e.initialWidth;return function(e){var n=Object(c.a)(),s=e.theme||n,m=Object(u.a)({theme:s,name:"MuiWithWidth",props:e}),y=m.initialWidth,b=m.width,x=Object(i.a)(m,v),w=p(o.useState(!1),2),_=w[0],S=w[1];Object(l.a)((function(){S(!0)}),[]);var O=s.breakpoints.keys.slice().reverse().reduce((function(e,t){var n=Object(f.a)(s.breakpoints.up(t));return!e&&n?t:e}),null),k=Object(r.a)({width:b||(_||h?O:void 0)||y||g},a?{theme:s}:{},x);return void 0===k.width?null:Object(d.jsx)(t,Object(r.a)({},k))}}};function x(e){var t=e.children,n=e.only,r=e.width,i=Object(c.a)(),o=!0;if(n)if(Array.isArray(n))for(var a=0;a<n.length;a+=1){if(r===n[a]){o=!1;break}}else n&&r===n&&(o=!1);if(o)for(var s=0;s<i.breakpoints.keys.length;s+=1){var u=i.breakpoints.keys[s],l=e["".concat(u,"Up")],f=e["".concat(u,"Down")];if(l&&m(u,r)||f&&y(u,r)){o=!1;break}}return o?t:null}x.propTypes={children:s.a.node,className:s.a.string,implementation:s.a.oneOf(["js","css"]),initialWidth:s.a.oneOf(["xs","sm","md","lg","xl"]),lgDown:s.a.bool,lgUp:s.a.bool,mdDown:s.a.bool,mdUp:s.a.bool,only:s.a.oneOfType([s.a.oneOf(["xs","sm","md","lg","xl"]),s.a.arrayOf(s.a.oneOf(["xs","sm","md","lg","xl"]))]),smDown:s.a.bool,smUp:s.a.bool,width:s.a.string.isRequired,xlDown:s.a.bool,xlUp:s.a.bool,xsDown:s.a.bool,xsUp:s.a.bool};var w=b()(x),_=n(17),S=n(158),O=n(18),k=n(15),E=n(138),j=n(152);function T(e){return Object(E.a)("PrivateHiddenCss",e)}Object(j.a)("PrivateHiddenCss",["root","xlDown","xlUp","onlyXl","lgDown","lgUp","onlyLg","mdDown","mdUp","onlyMd","smDown","smUp","onlySm","xsDown","xsUp","onlyXs"]);function C(e){return(C="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 A(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==C(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==C(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===C(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P(e){return function(e){if(Array.isArray(e))return M(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return M(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var I=["children","className","only"],R=function(e){var t=e.classes,n=e.breakpoints,r={root:["root"].concat(P(n.map((function(e){var t=e.breakpoint,n=e.dir;return"only"===n?"".concat(n).concat(Object(O.a)(t)):"".concat(t).concat(Object(O.a)(n))}))))};return Object(S.a)(r,T,t)},D=Object(k.a)("div",{name:"PrivateHiddenCss",slot:"Root"})((function(e){var t=e.theme,n=e.ownerState,i={display:"none"};return Object(r.a)({},n.breakpoints.map((function(e){var n=e.breakpoint,r=e.dir;return A({},"only"===r?t.breakpoints.only(n):"up"===r?t.breakpoints.up(n):t.breakpoints.down(n),i)})).reduce((function(e,t){return Object.keys(t).forEach((function(n){e[n]=t[n]})),e}),{}))}));var L=function(e){for(var t=e.children,n=e.className,o=e.only,a=Object(i.a)(e,I),s=Object(c.a)(),u=[],l=0;l<s.breakpoints.keys.length;l+=1){var f=s.breakpoints.keys[l],p=a["".concat(f,"Up")],h=a["".concat(f,"Down")];p&&u.push({breakpoint:f,dir:"up"}),h&&u.push({breakpoint:f,dir:"down"})}o&&(Array.isArray(o)?o:[o]).forEach((function(e){u.push({breakpoint:e,dir:"only"})}));var v=Object(r.a)({},e,{breakpoints:u}),g=R(v);return Object(d.jsx)(D,{className:Object(_.default)(g.root,n),ownerState:v,children:t})},N=["implementation","lgDown","lgUp","mdDown","mdUp","smDown","smUp","xlDown","xlUp","xsDown","xsUp"];t.a=function(e){var t=e.implementation,n=void 0===t?"js":t,o=e.lgDown,a=void 0!==o&&o,s=e.lgUp,u=void 0!==s&&s,c=e.mdDown,l=void 0!==c&&c,f=e.mdUp,p=void 0!==f&&f,h=e.smDown,v=void 0!==h&&h,g=e.smUp,m=void 0!==g&&g,y=e.xlDown,b=void 0!==y&&y,x=e.xlUp,_=void 0!==x&&x,S=e.xsDown,O=void 0!==S&&S,k=e.xsUp,E=void 0!==k&&k,j=Object(i.a)(e,N);return"js"===n?Object(d.jsx)(w,Object(r.a)({lgDown:a,lgUp:u,mdDown:l,mdUp:p,smDown:v,smUp:m,xlDown:b,xlUp:_,xsDown:O,xsUp:E},j)):Object(d.jsx)(L,Object(r.a)({lgDown:a,lgUp:u,mdDown:l,mdUp:p,smDown:v,smUp:m,xlDown:b,xlUp:_,xsDown:O,xsUp:E},j))}},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(158),s=n(177),u=n(364),c=n(56),l=n(5),f=Object(c.a)(Object(l.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),d=Object(c.a)(Object(l.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),p=Object(c.a)(Object(l.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox"),h=n(18),v=n(20),g=n(15),m=n(138),y=n(152);function b(e){return Object(m.a)("MuiCheckbox",e)}var x=Object(y.a)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]);function w(e){return(w="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 _(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==w(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==w(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===w(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size"],O=Object(g.a)(u.a,{shouldForwardProp:function(e){return Object(g.b)(e)||"classes"===e},name:"MuiCheckbox",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.indeterminate&&t.indeterminate,"default"!==n.color&&t["color".concat(Object(h.a)(n.color))]]}})((function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({color:(t.vars||t).palette.text.secondary},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat("default"===n.color?t.vars.palette.action.activeChannel:t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):Object(s.a)("default"===n.color?t.palette.action.active:t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==n.color&&_(_({},"&.".concat(x.checked,", &.").concat(x.indeterminate),{color:(t.vars||t).palette[n.color].main}),"&.".concat(x.disabled),{color:(t.vars||t).palette.action.disabled}))})),k=Object(l.jsx)(d,{}),E=Object(l.jsx)(f,{}),j=Object(l.jsx)(p,{}),T=o.forwardRef((function(e,t){var n,s,u=Object(v.a)({props:e,name:"MuiCheckbox"}),c=u.checkedIcon,f=void 0===c?k:c,d=u.color,p=void 0===d?"primary":d,g=u.icon,m=void 0===g?E:g,y=u.indeterminate,x=void 0!==y&&y,w=u.indeterminateIcon,_=void 0===w?j:w,T=u.inputProps,C=u.size,A=void 0===C?"medium":C,P=Object(r.a)(u,S),M=x?_:m,I=x?_:f,R=Object(i.a)({},u,{color:p,indeterminate:x,size:A}),D=function(e){var t=e.classes,n=e.indeterminate,r=e.color,o={root:["root",n&&"indeterminate","color".concat(Object(h.a)(r))]},s=Object(a.a)(o,b,t);return Object(i.a)({},t,s)}(R);return Object(l.jsx)(O,Object(i.a)({type:"checkbox",inputProps:Object(i.a)({"data-indeterminate":x},T),icon:o.cloneElement(M,{fontSize:null!=(n=M.props.fontSize)?n:A}),checkedIcon:o.cloneElement(I,{fontSize:null!=(s=I.props.fontSize)?s:A}),ownerState:R,ref:t},P,{classes:D}))}));t.a=T},function(e,t,n){"use strict";var r=n(26),i=n(65),o=n(2),a=(n(52),n(20)),s=n(1640),u=n(1671),c=n(367),l=n(526),f=n(121),d=n(1692),p=n(1646),h=n(414),v=n(15),g=n(175),m=n(1642),y=n(5);function b(e){return(b="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 x(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==b(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===b(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=Object(v.a)(p.a)(x(x({},"& .".concat(h.a.container),{outline:0}),"& .".concat(h.a.paper),{outline:0,minWidth:g.c})),_=Object(v.a)(d.a)({"&:first-of-type":{padding:0}}),S=function(e){var t,n=e.children,i=e.DialogProps,o=void 0===i?{}:i,a=e.onAccept,s=e.onClear,u=e.onDismiss,c=e.onCancel,l=e.onSetToday,f=e.open,d=e.components,p=e.componentsProps,h=null!=(t=null==d?void 0:d.ActionBar)?t:m.a;return Object(y.jsxs)(w,Object(r.a)({open:f,onClose:u},o,{children:[Object(y.jsx)(_,{children:n}),Object(y.jsx)(h,Object(r.a)({onAccept:a,onClear:s,onCancel:c,onSetToday:l,actions:["cancel","accept"]},null==p?void 0:p.actionBar))]}))},O=["children","DateInputProps","DialogProps","onAccept","onClear","onDismiss","onCancel","onSetToday","open","PureDateInputComponent","components","componentsProps"];function k(e){var t=e.children,n=e.DateInputProps,o=e.DialogProps,a=e.onAccept,s=e.onClear,u=e.onDismiss,c=e.onCancel,l=e.onSetToday,d=e.open,p=e.PureDateInputComponent,h=e.components,v=e.componentsProps,g=Object(i.a)(e,O);return(Object(y.jsxs)(f.a.Provider,{value:"mobile",children:[Object(y.jsx)(p,Object(r.a)({components:h},g,n)),Object(y.jsx)(S,{DialogProps:o,onAccept:a,onClear:s,onDismiss:u,onCancel:c,onSetToday:l,open:d,components:h,componentsProps:v,children:t})]}))}var E=n(1659),j=n(531),T=n(275),C=n(46),A=n(290),P=o.forwardRef((function(e,t){var n=e.disabled,i=e.getOpenDialogAriaText,a=e.inputFormat,s=e.InputProps,u=e.inputRef,c=e.label,l=e.openPicker,f=e.rawValue,d=e.renderInput,p=e.TextFieldProps,h=void 0===p?{}:p,v=e.validationError,g=e.className,m=Object(C.b)(),y=null!=i?i:m.openDatePickerDialogue,b=Object(C.e)(),x=o.useMemo((function(){return Object(r.a)({},s,{readOnly:!0})}),[s]),w=Object(A.b)(b,f,a);return d(Object(r.a)({label:c,disabled:n,ref:t,inputRef:u,error:v,InputProps:x,className:g,inputProps:Object(r.a)({disabled:n,readOnly:!0,"aria-readonly":!0,"aria-label":y(f,b),value:w},!e.readOnly&&{onClick:l},{onKeyDown:Object(T.b)(l)})},h))})),M=n(532),I=["ToolbarComponent","value","onChange","components","componentsProps"],R=o.forwardRef((function(e,t){var n=Object(c.b)(e,"MuiMobileDateTimePicker"),o=null!==Object(j.a)(n),a=Object(M.a)(n,c.a),s=a.pickerProps,u=a.inputProps,f=a.wrapperProps,d=n.ToolbarComponent,p=void 0===d?l.a:d,h=n.components,v=n.componentsProps,g=Object(i.a)(n,I),m=Object(r.a)({},u,g,{components:h,componentsProps:v,ref:t,validationError:o});return Object(y.jsx)(k,Object(r.a)({},g,f,{DateInputProps:m,PureDateInputComponent:P,components:h,componentsProps:v,children:Object(y.jsx)(E.a,Object(r.a)({},s,{autoFocus:!0,toolbarTitle:n.label||n.toolbarTitle,ToolbarComponent:p,DateInputProps:m,components:h,componentsProps:v},g))}))}));n.d(t,"a",(function(){return L}));var D=["desktopModeMediaQuery","DialogProps","PopperProps","TransitionComponent"],L=o.forwardRef((function(e,t){var n=Object(a.a)({props:e,name:"MuiDateTimePicker"}),o=n.desktopModeMediaQuery,c=void 0===o?"@media (pointer: fine)":o,l=n.DialogProps,f=n.PopperProps,d=n.TransitionComponent,p=Object(i.a)(n,D);return Object(s.a)(c,{defaultMatches:!0})?Object(y.jsx)(u.a,Object(r.a)({ref:t,PopperProps:f,TransitionComponent:d},p)):Object(y.jsx)(R,Object(r.a)({ref:t,DialogProps:l},p))}))},function(e,t,n){"use strict";var r=n(6),i=n(16),o=n(2),a=(n(153),n(17)),s=n(158),u=n(15),c=n(20),l=n(325),f=n(177),d=n(56),p=n(5),h=Object(d.a)(Object(p.jsx)("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),v=n(887),g=Object(u.a)(v.a)((function(e){var t=e.theme;return Object(r.a)({display:"flex",marginLeft:"calc(".concat(t.spacing(1)," * 0.5)"),marginRight:"calc(".concat(t.spacing(1)," * 0.5)")},"light"===t.palette.mode?{backgroundColor:t.palette.grey[100],color:t.palette.grey[700]}:{backgroundColor:t.palette.grey[700],color:t.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":Object(r.a)({},"light"===t.palette.mode?{backgroundColor:t.palette.grey[200]}:{backgroundColor:t.palette.grey[600]}),"&:active":Object(r.a)({boxShadow:t.shadows[0]},"light"===t.palette.mode?{backgroundColor:Object(f.e)(t.palette.grey[200],.12)}:{backgroundColor:Object(f.e)(t.palette.grey[600],.12)})})})),m=Object(u.a)(h)({width:24,height:16});var y=function(e){var t=e;return(Object(p.jsx)("li",{children:Object(p.jsx)(g,Object(r.a)({focusRipple:!0},e,{ownerState:t,children:Object(p.jsx)(m,{ownerState:t})}))}))},b=n(138),x=n(152);function w(e){return Object(b.a)("MuiBreadcrumbs",e)}var _=Object(x.a)("MuiBreadcrumbs",["root","ol","li","separator"]);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 O(e){return function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||E(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||E(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,t){if(e){if("string"==typeof e)return j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(e,t):void 0}}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function T(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==S(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==S(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===S(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var C=["children","className","component","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],A=Object(u.a)(l.a,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:function(e,t){return[T({},"& .".concat(_.li),t.li),t.root]}})({}),P=Object(u.a)("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:function(e,t){return t.ol}})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),M=Object(u.a)("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:function(e,t){return t.separator}})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function I(e,t,n,r){return e.reduce((function(i,o,a){return a<e.length-1?i=i.concat(o,Object(p.jsx)(M,{"aria-hidden":!0,className:t,ownerState:r,children:n},"separator-".concat(a))):i.push(o),i}),[])}var R=o.forwardRef((function(e,t){var n=Object(c.a)({props:e,name:"MuiBreadcrumbs"}),u=n.children,l=n.className,f=n.component,d=void 0===f?"nav":f,h=n.expandText,v=void 0===h?"Show path":h,g=n.itemsAfterCollapse,m=void 0===g?1:g,b=n.itemsBeforeCollapse,x=void 0===b?1:b,_=n.maxItems,S=void 0===_?8:_,E=n.separator,j=void 0===E?"/":E,T=Object(i.a)(n,C),M=k(o.useState(!1),2),R=M[0],D=M[1],L=Object(r.a)({},n,{component:d,expanded:R,expandText:v,itemsAfterCollapse:m,itemsBeforeCollapse:x,maxItems:S,separator:j}),N=function(e){var t=e.classes;return Object(s.a)({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},w,t)}(L),F=o.useRef(null),B=o.Children.toArray(u).filter((function(e){return o.isValidElement(e)})).map((function(e,t){return Object(p.jsx)("li",{className:N.li,children:e},"child-".concat(t))}));return Object(p.jsx)(A,Object(r.a)({ref:t,component:d,color:"text.secondary",className:Object(a.default)(N.root,l),ownerState:L},T,{children:Object(p.jsx)(P,{className:N.ol,ref:F,ownerState:L,children:I(R||S&&B.length<=S?B:function(e){return x+m>=e.length?e:[].concat(O(e.slice(0,x)),[Object(p.jsx)(y,{"aria-label":v,onClick:function(){D(!0);var e=F.current.querySelector("a[href],button,[tabindex]");e&&e.focus()}},"ellipsis")],O(e.slice(e.length-m,e.length)))}(B),N.separator,j,L)})}))}));t.a=R},function(e,t,n){"use strict";var r=n(2);function i(){return(i=Object.assign?Object.assign.bind():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=n(484),a=n(1553),s="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",u=n(5);var c=function(e){var t=e.children,n=e.theme,c=Object(a.a)(),l=r.useMemo((function(){var e=null===c?n:function(e,t){return"function"==typeof t?t(e):i({},e,t)}(c,n);return null!=e&&(e[s]=null!==c),e}),[n,c]);return Object(u.jsx)(o.a.Provider,{value:l,children:t})},l=n(124),f=n(192);function d(e){return(d="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 p(e){var t=Object(f.a)();return(Object(u.jsx)(l.c.Provider,{value:"object"===d(t)?t:{},children:e.children}))}t.a=function(e){var t=e.children,n=e.theme;return(Object(u.jsx)(c,{theme:n,children:Object(u.jsx)(p,{children:t})}))}},function(e,t,n){"use strict";var r=n(2);function i(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function o(e){return e&&e.ownerDocument||document}var a=n(5),s=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function u(e){var t=[],n=[];return Array.from(e.querySelectorAll(s)).forEach((function(e,r){var i=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==i&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;var t=function(t){return e.ownerDocument.querySelector('input[type="radio"]'.concat(t))},n=t('[name="'.concat(e.name,'"]:checked'));return n||(n=t('[name="'.concat(e.name,'"]'))),n!==e}(e))}(e)&&(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))})),n.sort((function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex})).map((function(e){return e.node})).concat(t)}function c(){return!0}t.a=function(e){var t,n,s=e.children,l=e.disableAutoFocus,f=void 0!==l&&l,d=e.disableEnforceFocus,p=void 0!==d&&d,h=e.disableRestoreFocus,v=void 0!==h&&h,g=e.getTabbable,m=void 0===g?u:g,y=e.isEnabled,b=void 0===y?c:y,x=e.open,w=r.useRef(),_=r.useRef(null),S=r.useRef(null),O=r.useRef(null),k=r.useRef(null),E=r.useRef(!1),j=r.useRef(null),T=(t=s.ref,n=j,r.useMemo((function(){return null==t&&null==n?null:function(e){i(t,e),i(n,e)}}),[t,n])),C=r.useRef(null);r.useEffect((function(){x&&j.current&&(E.current=!f)}),[f,x]),r.useEffect((function(){if(x&&j.current){var e=o(j.current);return j.current.contains(e.activeElement)||(j.current.hasAttribute("tabIndex")||j.current.setAttribute("tabIndex",-1),E.current&&j.current.focus()),function(){v||(O.current&&O.current.focus&&(w.current=!0,O.current.focus()),O.current=null)}}}),[x]),r.useEffect((function(){if(x&&j.current){var e=o(j.current),t=function(t){var n=j.current;if(null!==n)if(e.hasFocus()&&!p&&b()&&!w.current){if(!n.contains(e.activeElement)){if(t&&k.current!==t.target||e.activeElement!==k.current)k.current=null;else if(null!==k.current)return;if(!E.current)return;var r=[];if(e.activeElement!==_.current&&e.activeElement!==S.current||(r=m(j.current)),r.length>0){var i,o,a=Boolean((null==(i=C.current)?void 0:i.shiftKey)&&"Tab"===(null==(o=C.current)?void 0:o.key)),s=r[0],u=r[r.length-1];a?u.focus():s.focus()}else n.focus()}}else w.current=!1},n=function(t){C.current=t,!p&&b()&&"Tab"===t.key&&e.activeElement===j.current&&t.shiftKey&&(w.current=!0,S.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);var r=setInterval((function(){"BODY"===e.activeElement.tagName&&t()}),50);return function(){clearInterval(r),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}}),[f,p,v,b,x,m]);var A=function(e){null===O.current&&(O.current=e.relatedTarget),E.current=!0};return Object(a.jsxs)(r.Fragment,{children:[Object(a.jsx)("div",{tabIndex:x?0:-1,onFocus:A,ref:_,"data-testid":"sentinelStart"}),r.cloneElement(s,{ref:T,onFocus:function(e){null===O.current&&(O.current=e.relatedTarget),E.current=!0,k.current=e.target;var t=s.props.onFocus;t&&t(e)}}),Object(a.jsx)("div",{tabIndex:x?0:-1,onFocus:A,ref:S,"data-testid":"sentinelEnd"})]})}},function(e,t,n){"use strict";var r=n(26),i=n(65),o=n(2),a=(n(52),n(367)),s=n(526),u=n(62),c=n(121),l=n(1641),f=n(492),d=n(684),p=n(1558),h=n(134),v=n(133),g=n(15),m=n(1642),y=n(5);function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var w=["onClick","onTouchStart"],_=Object(g.a)(d.a)((function(e){return{zIndex:e.theme.zIndex.modal}})),S=Object(g.a)(f.a)((function(e){var t=e.ownerState;return Object(r.a)({transformOrigin:"top center",outline:0},"top"===t.placement&&{transformOrigin:"bottom center"})}));var O=function(e){var t,n=e.anchorEl,a=e.children,s=e.containerRef,c=void 0===s?null:s,f=e.onBlur,d=e.onClose,g=e.onClear,x=e.onAccept,O=e.onCancel,k=e.onSetToday,E=e.open,j=e.PopperProps,T=e.role,C=e.TransitionComponent,A=void 0===C?l.a:C,P=e.TrapFocusProps,M=e.PaperProps,I=void 0===M?{}:M,R=e.components,D=e.componentsProps;o.useEffect((function(){function e(e){!E||"Escape"!==e.key&&"Esc"!==e.key||d()}return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)}}),[d,E]);var L=o.useRef(null);o.useEffect((function(){"tooltip"!==T&&(E?L.current=document.activeElement:L.current&&L.current instanceof HTMLElement&&setTimeout((function(){L.current instanceof HTMLElement&&L.current.focus()})))}),[E,T]);var N=b(function(e,t){var n=o.useRef(!1),r=o.useRef(!1),i=o.useRef(null),a=o.useRef(!1);o.useEffect((function(){if(e)return document.addEventListener("mousedown",t,!0),document.addEventListener("touchstart",t,!0),function(){document.removeEventListener("mousedown",t,!0),document.removeEventListener("touchstart",t,!0),a.current=!1};function t(){a.current=!0}}),[e]);var s=Object(h.a)((function(e){if(a.current){var o=r.current;r.current=!1;var s=Object(v.a)(i.current);if(i.current&&!("clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,s)))if(n.current)n.current=!1;else(e.composedPath?e.composedPath().indexOf(i.current)>-1:!s.documentElement.contains(e.target)||i.current.contains(e.target))||o||t(e)}})),u=function(){r.current=!0};return o.useEffect((function(){if(e){var t=Object(v.a)(i.current),r=function(){n.current=!0};return t.addEventListener("touchstart",s),t.addEventListener("touchmove",r),function(){t.removeEventListener("touchstart",s),t.removeEventListener("touchmove",r)}}}),[e,s]),o.useEffect((function(){if(e){var t=Object(v.a)(i.current);return t.addEventListener("click",s),function(){t.removeEventListener("click",s),r.current=!1}}}),[e,s]),[i,u,u]}(E,null!=f?f:d),3),F=N[0],B=N[1],U=N[2],z=o.useRef(null),V=Object(u.a)(z,c),H=Object(u.a)(V,F),W=e,q=I.onClick,G=I.onTouchStart,Y=Object(i.a)(I,w),K=null!=(t=null==R?void 0:R.ActionBar)?t:m.a,$=(null==R?void 0:R.PaperContent)||o.Fragment;return Object(y.jsx)(_,Object(r.a)({transition:!0,role:T,open:E,anchorEl:n,ownerState:W,onKeyDown:function(e){"Escape"===e.key&&(e.stopPropagation(),d())}},j,{children:function(e){var t=e.TransitionProps,n=e.placement;return(Object(y.jsx)(p.a,Object(r.a)({open:E,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:"tooltip"===T,isEnabled:function(){return!0}},P,{children:Object(y.jsx)(A,Object(r.a)({},t,{children:Object(y.jsx)(S,Object(r.a)({tabIndex:-1,elevation:8,ref:H,onClick:function(e){B(e),q&&q(e)},onTouchStart:function(e){U(e),G&&G(e)},ownerState:Object(r.a)({},W,{placement:n})},Y,{children:Object(y.jsxs)($,Object(r.a)({},null==D?void 0:D.paperContent,{children:[a,Object(y.jsx)(K,Object(r.a)({onAccept:x,onClear:g,onCancel:O,onSetToday:k,actions:[]},null==D?void 0:D.actionBar))]}))}))}))})))}}))};function k(e){var t=e.children,n=e.DateInputProps,i=e.KeyboardDateInputComponent,a=e.onClear,s=e.onDismiss,l=e.onCancel,f=e.onAccept,d=e.onSetToday,p=e.open,h=e.PopperProps,v=e.PaperProps,g=e.TransitionComponent,m=e.components,b=e.componentsProps,x=o.useRef(null),w=Object(u.a)(n.inputRef,x);return Object(y.jsxs)(c.a.Provider,{value:"desktop",children:[Object(y.jsx)(i,Object(r.a)({},n,{inputRef:w})),Object(y.jsx)(O,{role:"dialog",open:p,anchorEl:x.current,TransitionComponent:g,PopperProps:h,PaperProps:v,onClose:s,onCancel:l,onClear:a,onAccept:f,onSetToday:d,components:m,componentsProps:b,children:t})]})}var E=n(1659),j=n(531),T=n(528),C=n(532);n.d(t,"a",(function(){return P}));var A=["onChange","PaperProps","PopperProps","ToolbarComponent","TransitionComponent","value","components","componentsProps"],P=o.forwardRef((function(e,t){var n=Object(a.b)(e,"MuiDesktopDateTimePicker"),o=null!==Object(j.a)(n),u=Object(C.a)(n,a.a),c=u.pickerProps,l=u.inputProps,f=u.wrapperProps,d=n.PaperProps,p=n.PopperProps,h=n.ToolbarComponent,v=void 0===h?s.a:h,g=n.TransitionComponent,m=n.components,b=n.componentsProps,x=Object(i.a)(n,A),w=Object(r.a)({},l,x,{components:m,componentsProps:b,ref:t,validationError:o});return Object(y.jsx)(k,Object(r.a)({},f,{DateInputProps:w,KeyboardDateInputComponent:T.a,PopperProps:p,PaperProps:d,TransitionComponent:g,components:m,componentsProps:b,children:Object(y.jsx)(E.a,Object(r.a)({},c,{autoFocus:!0,toolbarTitle:n.label||n.toolbarTitle,ToolbarComponent:v,DateInputProps:w,components:m,componentsProps:b},x))}))}))},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(17),s=n(84),u=n(1556),c=n(158),l=n(15),f=n(20),d=n(76);var p=o.createContext(),h=n(138),v=n(152);function g(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function y(e){return Object(h.a)("MuiGrid",e)}var b=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],x=Object(v.a)("MuiGrid",["root","container","item","zeroMinWidth"].concat(g([0,1,2,3,4,5,6,7,8,9,10].map((function(e){return"spacing-xs-".concat(e)}))),g(["column-reverse","column","row-reverse","row"].map((function(e){return"direction-xs-".concat(e)}))),g(["nowrap","wrap-reverse","wrap"].map((function(e){return"wrap-xs-".concat(e)}))),g(b.map((function(e){return"grid-xs-".concat(e)}))),g(b.map((function(e){return"grid-sm-".concat(e)}))),g(b.map((function(e){return"grid-md-".concat(e)}))),g(b.map((function(e){return"grid-lg-".concat(e)}))),g(b.map((function(e){return"grid-xl-".concat(e)}))))),w=n(5);function _(e){return function(e){if(Array.isArray(e))return S(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return S(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function O(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==k(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==k(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===k(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e){return(k="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)}var E=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function j(e){var t=parseFloat(e);return"".concat(t).concat(String(e).replace(String(t),"")||"px")}function T(e){var t=e.breakpoints,n=e.values,r="";Object.keys(n).forEach((function(e){""===r&&0!==n[e]&&(r=e)}));var i=Object.keys(t).sort((function(e,n){return t[e]-t[n]}));return i.slice(0,i.indexOf(r))}var C=Object(l.a)("div",{name:"MuiGrid",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState,r=n.container,i=n.direction,o=n.item,a=n.spacing,s=n.wrap,u=n.zeroMinWidth,c=n.breakpoints,l=[];r&&(l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[n["spacing-xs-".concat(String(e))]];var r=[];return t.forEach((function(t){var i=e[t];Number(i)>0&&r.push(n["spacing-".concat(t,"-").concat(String(i))])})),r}(a,c,t));var f=[];return c.forEach((function(e){var r=n[e];r&&f.push(t["grid-".concat(e,"-").concat(String(r))])})),[t.root,r&&t.container,o&&t.item,u&&t.zeroMinWidth].concat(_(l),["row"!==i&&t["direction-xs-".concat(String(i))],"wrap"!==s&&t["wrap-xs-".concat(String(s))]],f)}})((function(e){var t=e.ownerState;return Object(i.a)({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},"wrap"!==t.wrap&&{flexWrap:t.wrap})}),(function(e){var t=e.theme,n=e.ownerState,r=Object(s.f)({values:n.direction,breakpoints:t.breakpoints.values});return Object(s.c)({theme:t},r,(function(e){var t={flexDirection:e};return 0===e.indexOf("column")&&(t["& > .".concat(x.item)]={maxWidth:"none"}),t}))}),(function(e){var t=e.theme,n=e.ownerState,r=n.container,i=n.rowSpacing,o={};if(r&&0!==i){var a,u=Object(s.f)({values:i,breakpoints:t.breakpoints.values});"object"===k(u)&&(a=T({breakpoints:t.breakpoints.values,values:u})),o=Object(s.c)({theme:t},u,(function(e,n){var r,i=t.spacing(e);return"0px"!==i?O({marginTop:"-".concat(j(i))},"& > .".concat(x.item),{paddingTop:j(i)}):null!=(r=a)&&r.includes(n)?{}:O({marginTop:0},"& > .".concat(x.item),{paddingTop:0})}))}return o}),(function(e){var t=e.theme,n=e.ownerState,r=n.container,i=n.columnSpacing,o={};if(r&&0!==i){var a,u=Object(s.f)({values:i,breakpoints:t.breakpoints.values});"object"===k(u)&&(a=T({breakpoints:t.breakpoints.values,values:u})),o=Object(s.c)({theme:t},u,(function(e,n){var r,i=t.spacing(e);return"0px"!==i?O({width:"calc(100% + ".concat(j(i),")"),marginLeft:"-".concat(j(i))},"& > .".concat(x.item),{paddingLeft:j(i)}):null!=(r=a)&&r.includes(n)?{}:O({width:"100%",marginLeft:0},"& > .".concat(x.item),{paddingLeft:0})}))}return o}),(function(e){var t,n=e.theme,r=e.ownerState;return n.breakpoints.keys.reduce((function(e,o){var a={};if(r[o]&&(t=r[o]),!t)return e;if(!0===t)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===t)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{var u=Object(s.f)({values:r.columns,breakpoints:n.breakpoints.values}),c="object"===k(u)?u[o]:u;if(null==c)return e;var l="".concat(Math.round(t/c*1e8)/1e6,"%"),f={};if(r.container&&r.item&&0!==r.columnSpacing){var d=n.spacing(r.columnSpacing);if("0px"!==d){var p="calc(".concat(l," + ").concat(j(d),")");f={flexBasis:p,maxWidth:p}}}a=Object(i.a)({flexBasis:l,flexGrow:0,maxWidth:l},f)}return 0===n.breakpoints.values[o]?Object.assign(e,a):e[n.breakpoints.up(o)]=a,e}),{})}));var A=function(e){var t=e.classes,n=e.container,r=e.direction,i=e.item,o=e.spacing,a=e.wrap,s=e.zeroMinWidth,u=e.breakpoints,l=[];n&&(l=function(e,t){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return["spacing-xs-".concat(String(e))];var n=[];return t.forEach((function(t){var r=e[t];if(Number(r)>0){var i="spacing-".concat(t,"-").concat(String(r));n.push(i)}})),n}(o,u));var f=[];u.forEach((function(t){var n=e[t];n&&f.push("grid-".concat(t,"-").concat(String(n)))}));var d={root:["root",n&&"container",i&&"item",s&&"zeroMinWidth"].concat(_(l),["row"!==r&&"direction-xs-".concat(String(r)),"wrap"!==a&&"wrap-xs-".concat(String(a))],f)};return Object(c.a)(d,y,t)},P=o.forwardRef((function(e,t){var n=Object(f.a)({props:e,name:"MuiGrid"}),s=Object(d.a)().breakpoints,c=Object(u.a)(n),l=c.className,h=c.columns,v=c.columnSpacing,g=c.component,m=void 0===g?"div":g,y=c.container,b=void 0!==y&&y,x=c.direction,_=void 0===x?"row":x,S=c.item,O=void 0!==S&&S,k=c.rowSpacing,j=c.spacing,T=void 0===j?0:j,P=c.wrap,M=void 0===P?"wrap":P,I=c.zeroMinWidth,R=void 0!==I&&I,D=Object(r.a)(c,E),L=k||T,N=v||T,F=o.useContext(p),B=b?h||12:F,U={},z=Object(i.a)({},D);s.keys.forEach((function(e){null!=D[e]&&(U[e]=D[e],delete z[e])}));var V=Object(i.a)({},c,{columns:B,container:b,direction:_,item:O,rowSpacing:L,columnSpacing:N,wrap:M,zeroMinWidth:R,spacing:T},U,{breakpoints:s.keys}),H=A(V);return Object(w.jsx)(p.Provider,{value:B,children:Object(w.jsx)(C,Object(i.a)({ownerState:V,className:Object(a.default)(H.root,l),as:m,ref:t},z))})}));t.a=P},function(e,t,n){"use strict";var r,i=n(16),o=n(6),a=n(2),s=n(158),u=n(15),c=n(5),l=["children","classes","className","label","notched"],f=Object(u.a)("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),d=Object(u.a)("legend")((function(e){var t=e.ownerState,n=e.theme;return Object(o.a)({float:"unset",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:n.transitions.create("width",{duration:150,easing:n.transitions.easing.easeOut})},t.withLabel&&Object(o.a)({display:"block",width:"auto",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:n.transitions.create("max-width",{duration:50,easing:n.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:n.transitions.create("max-width",{duration:100,easing:n.transitions.easing.easeOut,delay:50})}))}));var p=n(122),h=n(140),v=n(138),g=n(152),m=n(234);function y(e){return Object(v.a)("MuiOutlinedInput",e)}var b=Object(o.a)({},m.a,Object(g.a)("MuiOutlinedInput",["root","notchedOutline","input"])),x=n(127),w=n(20);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 S(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==_(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O=["components","fullWidth","inputComponent","label","multiline","notched","type"],k=Object(u.a)(x.b,{shouldForwardProp:function(e){return Object(u.b)(e)||"classes"===e},name:"MuiOutlinedInput",slot:"Root",overridesResolver:x.e})((function(e){var t=e.theme,n=e.ownerState,r="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Object(o.a)(S(S(S(S(S({position:"relative",borderRadius:(t.vars||t).shape.borderRadius},"&:hover .".concat(b.notchedOutline),{borderColor:(t.vars||t).palette.text.primary}),"@media (hover: none)",S({},"&:hover .".concat(b.notchedOutline),{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):r})),"&.".concat(b.focused," .").concat(b.notchedOutline),{borderColor:(t.vars||t).palette[n.color].main,borderWidth:2}),"&.".concat(b.error," .").concat(b.notchedOutline),{borderColor:(t.vars||t).palette.error.main}),"&.".concat(b.disabled," .").concat(b.notchedOutline),{borderColor:(t.vars||t).palette.action.disabled}),n.startAdornment&&{paddingLeft:14},n.endAdornment&&{paddingRight:14},n.multiline&&Object(o.a)({padding:"16.5px 14px"},"small"===n.size&&{padding:"8.5px 14px"}))})),E=Object(u.a)((function(e){var t=e.className,n=e.label,a=e.notched,s=Object(i.a)(e,l),u=null!=n&&""!==n,p=Object(o.a)({},e,{notched:a,withLabel:u});return Object(c.jsx)(f,Object(o.a)({"aria-hidden":!0,className:t,ownerState:p},s,{children:Object(c.jsx)(d,{ownerState:p,children:u?Object(c.jsx)("span",{children:n}):r||(r=Object(c.jsx)("span",{className:"notranslate",children:""}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:function(e,t){return t.notchedOutline}})((function(e){var t=e.theme,n="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):n}})),j=Object(u.a)(x.a,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:x.d})((function(e){var t=e.theme,n=e.ownerState;return Object(o.a)({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},t.vars&&S({"&:-webkit-autofill":{borderRadius:"inherit"}},t.getColorSchemeSelector("dark"),{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}),"small"===n.size&&{padding:"8.5px 14px"},n.multiline&&{padding:0},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0})})),T=a.forwardRef((function(e,t){var n,r=Object(w.a)({props:e,name:"MuiOutlinedInput"}),u=r.components,l=void 0===u?{}:u,f=r.fullWidth,d=void 0!==f&&f,v=r.inputComponent,g=void 0===v?"input":v,m=r.label,b=r.multiline,_=void 0!==b&&b,S=r.notched,T=r.type,C=void 0===T?"text":T,A=Object(i.a)(r,O),P=function(e){var t=e.classes,n=Object(s.a)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},y,t);return Object(o.a)({},t,n)}(r),M=Object(p.a)(),I=Object(h.a)({props:r,muiFormControl:M,states:["required"]}),R=Object(o.a)({},r,{color:I.color||"primary",disabled:I.disabled,error:I.error,focused:I.focused,formControl:M,fullWidth:d,hiddenLabel:I.hiddenLabel,multiline:_,size:I.size,type:C});return Object(c.jsx)(x.c,Object(o.a)({components:Object(o.a)({Root:k,Input:j},l),renderSuffix:function(e){return Object(c.jsx)(E,{ownerState:R,className:P.notchedOutline,label:null!=m&&""!==m&&I.required?n||(n=Object(c.jsxs)(a.Fragment,{children:[m," ","*"]})):m,notched:void 0!==S?S:Boolean(e.startAdornment||e.filled||e.focused)})},fullWidth:d,inputComponent:g,multiline:_,ref:t,type:C},A,{classes:Object(o.a)({},P,{notchedOutline:null})}))}));T.muiName="Input";t.a=T},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(17),s=n(158),u=n(18),c=n(15),l=n(20),f=n(261),d=n(62),p=n(325),h=n(138),v=n(152);function g(e){return Object(h.a)("MuiLink",e)}var m=Object(v.a)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),y=n(40),b=n(177),x={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},w=function(e){var t=e.theme,n=e.ownerState,r=function(e){return x[e]||e}(n.color),i=Object(y.b)(t,"palette.".concat(r),!1)||n.color,o=Object(y.b)(t,"palette.".concat(r,"Channel"));return"vars"in t&&o?"rgba(".concat(o," / 0.4)"):Object(b.a)(i,.4)},_=n(5);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 O(e){return function(e){if(Array.isArray(e))return j(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||E(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||E(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,t){if(e){if("string"==typeof e)return j(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(e,t):void 0}}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function T(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==S(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==S(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===S(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var C=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],A=Object(c.a)(p.a,{name:"MuiLink",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t["underline".concat(Object(u.a)(n.underline))],"button"===n.component&&t.button]}})((function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({},"none"===n.underline&&{textDecoration:"none"},"hover"===n.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===n.underline&&Object(i.a)({textDecoration:"underline"},"inherit"!==n.color&&{textDecorationColor:w({theme:t,ownerState:n})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===n.component&&T({position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"}},"&.".concat(m.focusVisible),{outline:"auto"}))})),P=o.forwardRef((function(e,t){var n=Object(l.a)({props:e,name:"MuiLink"}),c=n.className,p=n.color,h=void 0===p?"primary":p,v=n.component,m=void 0===v?"a":v,y=n.onBlur,b=n.onFocus,w=n.TypographyClasses,S=n.underline,E=void 0===S?"always":S,j=n.variant,T=void 0===j?"inherit":j,P=n.sx,M=Object(r.a)(n,C),I=Object(f.a)(),R=I.isFocusVisibleRef,D=I.onBlur,L=I.onFocus,N=I.ref,F=k(o.useState(!1),2),B=F[0],U=F[1],z=Object(d.a)(t,N),V=Object(i.a)({},n,{color:h,component:m,focusVisible:B,underline:E,variant:T}),H=function(e){var t=e.classes,n=e.component,r=e.focusVisible,i=e.underline,o={root:["root","underline".concat(Object(u.a)(i)),"button"===n&&"button",r&&"focusVisible"]};return Object(s.a)(o,g,t)}(V);return Object(_.jsx)(A,Object(i.a)({color:h,className:Object(a.default)(H.root,c),classes:w,component:m,onBlur:function(e){D(e),!1===R.current&&U(!1),y&&y(e)},onFocus:function(e){L(e),!0===R.current&&U(!0),b&&b(e)},ref:z,ownerState:V,variant:T,sx:[].concat(O(Object.keys(x).includes(h)?[]:[{color:h}]),O(Array.isArray(P)?P:[P]))},M))}));t.a=P},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=(n(153),n(17)),s=n(158),u=n(15),c=n(20),l=n(18);function f(e,t){return void 0!==t&&void 0!==e&&(Array.isArray(t)?t.indexOf(e)>=0:e===t)}var d=n(138),p=n(152);function h(e){return Object(d.a)("MuiToggleButtonGroup",e)}var v=Object(p.a)("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical"]),g=n(5);function m(e){return(m="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 y(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==m(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===m(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],x=Object(u.a)("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[y({},"& .".concat(v.grouped),t.grouped),y({},"& .".concat(v.grouped),t["grouped".concat(Object(l.a)(n.orientation))]),t.root,"vertical"===n.orientation&&t.vertical,n.fullWidth&&t.fullWidth]}})((function(e){var t=e.ownerState,n=e.theme;return Object(i.a)({display:"inline-flex",borderRadius:(n.vars||n).shape.borderRadius},"vertical"===t.orientation&&{flexDirection:"column"},t.fullWidth&&{width:"100%"},y({},"& .".concat(v.grouped),Object(i.a)({},"horizontal"===t.orientation?y({"&:not(:first-of-type)":{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-of-type)":{borderTopRightRadius:0,borderBottomRightRadius:0}},"&.".concat(v.selected," + .").concat(v.grouped,".").concat(v.selected),{borderLeft:0,marginLeft:0}):y({"&:not(:first-of-type)":{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},"&:not(:last-of-type)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}},"&.".concat(v.selected," + .").concat(v.grouped,".").concat(v.selected),{borderTop:0,marginTop:0}))))})),w=o.forwardRef((function(e,t){var n=Object(c.a)({props:e,name:"MuiToggleButtonGroup"}),u=n.children,d=n.className,p=n.color,v=void 0===p?"standard":p,m=n.disabled,y=void 0!==m&&m,w=n.exclusive,_=void 0!==w&&w,S=n.fullWidth,O=void 0!==S&&S,k=n.onChange,E=n.orientation,j=void 0===E?"horizontal":E,T=n.size,C=void 0===T?"medium":T,A=n.value,P=Object(r.a)(n,b),M=Object(i.a)({},n,{disabled:y,fullWidth:O,orientation:j,size:C}),I=function(e){var t=e.classes,n=e.orientation,r=e.fullWidth,i=e.disabled,o={root:["root","vertical"===n&&"vertical",r&&"fullWidth"],grouped:["grouped","grouped".concat(Object(l.a)(n)),i&&"disabled"]};return Object(s.a)(o,h,t)}(M),R=function(e,t){if(k){var n,r=A&&A.indexOf(t);A&&r>=0?(n=A.slice()).splice(r,1):n=A?A.concat(t):[t],k(e,n)}},D=function(e,t){k&&k(e,A===t?null:t)};return Object(g.jsx)(x,Object(i.a)({role:"group",className:Object(a.default)(I.root,d),ref:t,ownerState:M},P,{children:o.Children.map(u,(function(e){return o.isValidElement(e)?o.cloneElement(e,{className:Object(a.default)(I.grouped,e.props.className),onChange:_?D:R,selected:void 0===e.props.selected?f(e.props.value,A):e.props.selected,size:e.props.size||C,fullWidth:O,color:e.props.color||v,disabled:e.props.disabled||y}):null}))}))}));t.a=w},function(e,t,n){"use strict";var r=n(6),i=n(16),o=n(2),a=n(17),s=n(158),u=n(15),c=n(20),l=n(138),f=n(152);function d(e){return Object(l.a)("MuiFormGroup",e)}Object(f.a)("MuiFormGroup",["root","row","error"]);var p=n(122),h=n(140),v=n(5),g=["className","row"],m=Object(u.a)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.row&&t.row]}})((function(e){var t=e.ownerState;return Object(r.a)({display:"flex",flexDirection:"column",flexWrap:"wrap"},t.row&&{flexDirection:"row"})})),y=o.forwardRef((function(e,t){var n=Object(c.a)({props:e,name:"MuiFormGroup"}),o=n.className,u=n.row,l=void 0!==u&&u,f=Object(i.a)(n,g),y=Object(p.a)(),b=Object(h.a)({props:n,muiFormControl:y,states:["error"]}),x=Object(r.a)({},n,{row:l,error:b.error}),w=function(e){var t=e.classes,n={root:["root",e.row&&"row",e.error&&"error"]};return Object(s.a)(n,d,t)}(x);return Object(v.jsx)(m,Object(r.a)({className:Object(a.default)(w.root,o),ownerState:x,ref:t},f))})),b=n(62),x=n(169),w=n(503),_=n(233);function S(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var k=["actions","children","defaultValue","name","onChange","value"],E=o.forwardRef((function(e,t){var n=e.actions,a=e.children,s=e.defaultValue,u=e.name,c=e.onChange,l=e.value,f=Object(i.a)(e,k),d=o.useRef(null),p=S(Object(x.a)({controlled:l,default:s,name:"RadioGroup"}),2),h=p[0],g=p[1];o.useImperativeHandle(n,(function(){return{focus:function(){var e=d.current.querySelector("input:not(:disabled):checked");e||(e=d.current.querySelector("input:not(:disabled)")),e&&e.focus()}}}),[]);var m=Object(b.a)(t,d),O=Object(_.a)(u);return Object(v.jsx)(w.a.Provider,{value:{name:O,onChange:function(e){g(e.target.value),c&&c(e,e.target.value)},value:h},children:Object(v.jsx)(y,Object(r.a)({role:"radiogroup",ref:m},f,{children:a}))})}));t.a=E},function(e,t,n){"use strict";var r=n(2),i="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,o=n(5);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}t.a=function(e){var t=e.children,n=e.defer,s=void 0!==n&&n,u=e.fallback,c=void 0===u?null:u,l=a(r.useState(!1),2),f=l[0],d=l[1];return i((function(){s||d(!0)}),[s]),r.useEffect((function(){s&&d(!0)}),[s]),Object(o.jsx)(r.Fragment,{children:f?t:c})}},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(17),s=n(630),u=n(158),c=n(15),l=n(20),f=n(485),d=n(137),p=n(76),h=n(62),v=n(138),g=n(152);function m(e){return Object(v.a)("MuiCollapse",e)}Object(g.a)("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);var y=n(5);function b(e){return(b="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 x(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==b(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===b(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],_=Object(c.a)("div",{name:"MuiCollapse",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.orientation],"entered"===n.state&&t.entered,"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&t.hidden]}})((function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({height:0,overflow:"hidden",transition:t.transitions.create("height")},"horizontal"===n.orientation&&{height:"auto",width:0,transition:t.transitions.create("width")},"entered"===n.state&&Object(i.a)({height:"auto",overflow:"visible"},"horizontal"===n.orientation&&{width:"auto"}),"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&{visibility:"hidden"})})),S=Object(c.a)("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:function(e,t){return t.wrapper}})((function(e){var t=e.ownerState;return Object(i.a)({display:"flex",width:"100%"},"horizontal"===t.orientation&&{width:"auto",height:"100%"})})),O=Object(c.a)("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:function(e,t){return t.wrapperInner}})((function(e){var t=e.ownerState;return Object(i.a)({width:"100%"},"horizontal"===t.orientation&&{width:"auto",height:"100%"})})),k=o.forwardRef((function(e,t){var n=Object(l.a)({props:e,name:"MuiCollapse"}),c=n.addEndListener,v=n.children,g=n.className,b=n.collapsedSize,k=void 0===b?"0px":b,E=n.component,j=n.easing,T=n.in,C=n.onEnter,A=n.onEntered,P=n.onEntering,M=n.onExit,I=n.onExited,R=n.onExiting,D=n.orientation,L=void 0===D?"vertical":D,N=n.style,F=n.timeout,B=void 0===F?f.b.standard:F,U=n.TransitionComponent,z=void 0===U?s.a:U,V=Object(r.a)(n,w),H=Object(i.a)({},n,{orientation:L,collapsedSize:k}),W=function(e){var t=e.orientation,n=e.classes,r={root:["root","".concat(t)],entered:["entered"],hidden:["hidden"],wrapper:["wrapper","".concat(t)],wrapperInner:["wrapperInner","".concat(t)]};return Object(u.a)(r,m,n)}(H),q=Object(p.a)(),G=o.useRef(),Y=o.useRef(null),K=o.useRef(),$="number"==typeof k?"".concat(k,"px"):k,X="horizontal"===L,Q=X?"width":"height";o.useEffect((function(){return function(){clearTimeout(G.current)}}),[]);var Z=o.useRef(null),J=Object(h.a)(t,Z),ee=function(e){return function(t){if(e){var n=Z.current;void 0===t?e(n):e(n,t)}}},te=function(){return Y.current?Y.current[X?"clientWidth":"clientHeight"]:0},ne=ee((function(e,t){Y.current&&X&&(Y.current.style.position="absolute"),e.style[Q]=$,C&&C(e,t)})),re=ee((function(e,t){var n=te();Y.current&&X&&(Y.current.style.position="");var r=Object(d.a)({style:N,timeout:B,easing:j},{mode:"enter"}),i=r.duration,o=r.easing;if("auto"===B){var a=q.transitions.getAutoHeightDuration(n);e.style.transitionDuration="".concat(a,"ms"),K.current=a}else e.style.transitionDuration="string"==typeof i?i:"".concat(i,"ms");e.style[Q]="".concat(n,"px"),e.style.transitionTimingFunction=o,P&&P(e,t)})),ie=ee((function(e,t){e.style[Q]="auto",A&&A(e,t)})),oe=ee((function(e){e.style[Q]="".concat(te(),"px"),M&&M(e)})),ae=ee(I),se=ee((function(e){var t=te(),n=Object(d.a)({style:N,timeout:B,easing:j},{mode:"exit"}),r=n.duration,i=n.easing;if("auto"===B){var o=q.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(o,"ms"),K.current=o}else e.style.transitionDuration="string"==typeof r?r:"".concat(r,"ms");e.style[Q]=$,e.style.transitionTimingFunction=i,R&&R(e)}));return Object(y.jsx)(z,Object(i.a)({in:T,onEnter:ne,onEntered:ie,onEntering:re,onExit:oe,onExited:ae,onExiting:se,addEndListener:function(e){"auto"===B&&(G.current=setTimeout(e,K.current||0)),c&&c(Z.current,e)},nodeRef:Z,timeout:"auto"===B?null:B},V,{children:function(e,t){return Object(y.jsx)(_,Object(i.a)({as:E,className:Object(a.default)(W.root,g,{entered:W.entered,exited:!T&&"0px"===$&&W.hidden}[e]),style:Object(i.a)(x({},X?"minWidth":"minHeight",$),N),ownerState:Object(i.a)({},H,{state:e}),ref:J},t,{children:Object(y.jsx)(S,{ownerState:Object(i.a)({},H,{state:e}),className:W.wrapper,ref:Y,children:Object(y.jsx)(O,{ownerState:Object(i.a)({},H,{state:e}),className:W.wrapperInner,children:v})})}))}}))}));k.muiSupportAuto=!0;t.a=k},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(17),s=n(158),u=n(887),c=n(18),l=n(20),f=n(15),d=n(138),p=n(152);function h(e){return Object(d.a)("MuiTab",e)}var v=Object(p.a)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),g=n(5);function m(e){return(m="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 y(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==m(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===m(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],x=Object(f.a)(u.a,{name:"MuiTab",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.label&&n.icon&&t.labelIcon,t["textColor".concat(Object(c.a)(n.textColor))],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})((function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},n.label&&{flexDirection:"top"===n.iconPosition||"bottom"===n.iconPosition?"column":"row"},{lineHeight:1.25},n.icon&&n.label&&y({minHeight:72,paddingTop:9,paddingBottom:9},"& > .".concat(v.iconWrapper),Object(i.a)({},"top"===n.iconPosition&&{marginBottom:6},"bottom"===n.iconPosition&&{marginTop:6},"start"===n.iconPosition&&{marginRight:t.spacing(1)},"end"===n.iconPosition&&{marginLeft:t.spacing(1)})),"inherit"===n.textColor&&y(y({color:"inherit",opacity:.6},"&.".concat(v.selected),{opacity:1}),"&.".concat(v.disabled),{opacity:(t.vars||t).palette.action.disabledOpacity}),"primary"===n.textColor&&y(y({color:(t.vars||t).palette.text.secondary},"&.".concat(v.selected),{color:(t.vars||t).palette.primary.main}),"&.".concat(v.disabled),{color:(t.vars||t).palette.text.disabled}),"secondary"===n.textColor&&y(y({color:(t.vars||t).palette.text.secondary},"&.".concat(v.selected),{color:(t.vars||t).palette.secondary.main}),"&.".concat(v.disabled),{color:(t.vars||t).palette.text.disabled}),n.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},n.wrapped&&{fontSize:t.typography.pxToRem(12)})})),w=o.forwardRef((function(e,t){var n=Object(l.a)({props:e,name:"MuiTab"}),u=n.className,f=n.disabled,d=void 0!==f&&f,p=n.disableFocusRipple,v=void 0!==p&&p,m=n.fullWidth,y=n.icon,w=n.iconPosition,_=void 0===w?"top":w,S=n.indicator,O=n.label,k=n.onChange,E=n.onClick,j=n.onFocus,T=n.selected,C=n.selectionFollowsFocus,A=n.textColor,P=void 0===A?"inherit":A,M=n.value,I=n.wrapped,R=void 0!==I&&I,D=Object(r.a)(n,b),L=Object(i.a)({},n,{disabled:d,disableFocusRipple:v,selected:T,icon:!!y,iconPosition:_,label:!!O,fullWidth:m,textColor:P,wrapped:R}),N=function(e){var t=e.classes,n=e.textColor,r=e.fullWidth,i=e.wrapped,o=e.icon,a=e.label,u=e.selected,l=e.disabled,f={root:["root",o&&a&&"labelIcon","textColor".concat(Object(c.a)(n)),r&&"fullWidth",i&&"wrapped",u&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Object(s.a)(f,h,t)}(L),F=y&&O&&o.isValidElement(y)?o.cloneElement(y,{className:Object(a.default)(N.iconWrapper,y.props.className)}):y;return Object(g.jsxs)(x,Object(i.a)({focusRipple:!v,className:Object(a.default)(N.root,u),ref:t,role:"tab","aria-selected":T,disabled:d,onClick:function(e){!T&&k&&k(e,M),E&&E(e)},onFocus:function(e){C&&!T&&k&&k(e,M),j&&j(e)},ownerState:L,tabIndex:T?0:-1},D,{children:["top"===_||"start"===_?Object(g.jsxs)(o.Fragment,{children:[F,O]}):Object(g.jsxs)(o.Fragment,{children:[O,F]}),S]}))}));t.a=w},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(17),s=n(158),u=n(18),c=n(325),l=n(274),f=n(122),d=n(15),p=n(138),h=n(152);function v(e){return Object(p.a)("MuiInputAdornment",e)}var g,m=Object(h.a)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),y=n(20),b=n(5);function x(e){return(x="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(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==x(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==x(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===x(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _=["children","className","component","disablePointerEvents","disableTypography","position","variant"],S=Object(d.a)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t["position".concat(Object(u.a)(n.position))],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active},"filled"===n.variant&&w({},"&.".concat(m.positionStart,"&:not(.").concat(m.hiddenLabel,")"),{marginTop:16}),"start"===n.position&&{marginRight:8},"end"===n.position&&{marginLeft:8},!0===n.disablePointerEvents&&{pointerEvents:"none"})})),O=o.forwardRef((function(e,t){var n=Object(y.a)({props:e,name:"MuiInputAdornment"}),d=n.children,p=n.className,h=n.component,m=void 0===h?"div":h,x=n.disablePointerEvents,w=void 0!==x&&x,O=n.disableTypography,k=void 0!==O&&O,E=n.position,j=n.variant,T=Object(r.a)(n,_),C=Object(f.a)()||{},A=j;j&&C.variant,C&&!A&&(A=C.variant);var P=Object(i.a)({},n,{hiddenLabel:C.hiddenLabel,size:C.size,disablePointerEvents:w,position:E,variant:A}),M=function(e){var t=e.classes,n=e.disablePointerEvents,r=e.hiddenLabel,i=e.position,o=e.size,a=e.variant,c={root:["root",n&&"disablePointerEvents",i&&"position".concat(Object(u.a)(i)),a,r&&"hiddenLabel",o&&"size".concat(Object(u.a)(o))]};return Object(s.a)(c,v,t)}(P);return Object(b.jsx)(l.a.Provider,{value:null,children:Object(b.jsx)(S,Object(i.a)({as:m,ownerState:P,className:Object(a.default)(M.root,p),ref:t},T,{children:"string"!=typeof d||k?Object(b.jsxs)(o.Fragment,{children:["start"===E?g||(g=Object(b.jsx)("span",{className:"notranslate",children:""})):null,d]}):Object(b.jsx)(c.a,{color:"text.secondary",children:d})}))})}));t.a=O},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(17),s=n(158),u=n(466),c=n(177),l=n(15),f=n(76),d=n(20),p=n(18),h=n(1641),v=n(684),g=n(134),m=n(62),y=n(233),b=n(261),x=n(169),w=n(138),_=n(152);function S(e){return Object(w.a)("MuiTooltip",e)}var O=Object(_.a)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),k=n(5);function E(e){return(E="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 j(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return T(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return T(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function C(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==E(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===E(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var A=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"];var P=Object(l.a)(v.a,{name:"MuiTooltip",slot:"Popper",overridesResolver:function(e,t){var n=e.ownerState;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})((function(e){var t=e.theme,n=e.ownerState,r=e.open;return Object(i.a)({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none"},!n.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},n.arrow&&C(C(C(C({},'&[data-popper-placement*="bottom"] .'.concat(O.arrow),{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}}),'&[data-popper-placement*="top"] .'.concat(O.arrow),{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}}),'&[data-popper-placement*="right"] .'.concat(O.arrow),Object(i.a)({},n.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}})),'&[data-popper-placement*="left"] .'.concat(O.arrow),Object(i.a)({},n.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})))})),M=Object(l.a)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:function(e,t){var n=e.ownerState;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t["tooltipPlacement".concat(Object(p.a)(n.placement.split("-")[0]))]]}})((function(e){var t,n=e.theme,r=e.ownerState;return Object(i.a)({backgroundColor:n.vars?n.vars.palette.Tooltip.bg:Object(c.a)(n.palette.grey[700],.92),borderRadius:(n.vars||n).shape.borderRadius,color:(n.vars||n).palette.common.white,fontFamily:n.typography.fontFamily,padding:"4px 8px",fontSize:n.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:n.typography.fontWeightMedium},r.arrow&&{position:"relative",margin:0},r.touch&&{padding:"8px 16px",fontSize:n.typography.pxToRem(14),lineHeight:"".concat((t=16/14,Math.round(1e5*t)/1e5),"em"),fontWeight:n.typography.fontWeightRegular},C(C(C(C({},".".concat(O.popper,'[data-popper-placement*="left"] &'),Object(i.a)({transformOrigin:"right center"},r.isRtl?Object(i.a)({marginLeft:"14px"},r.touch&&{marginLeft:"24px"}):Object(i.a)({marginRight:"14px"},r.touch&&{marginRight:"24px"}))),".".concat(O.popper,'[data-popper-placement*="right"] &'),Object(i.a)({transformOrigin:"left center"},r.isRtl?Object(i.a)({marginRight:"14px"},r.touch&&{marginRight:"24px"}):Object(i.a)({marginLeft:"14px"},r.touch&&{marginLeft:"24px"}))),".".concat(O.popper,'[data-popper-placement*="top"] &'),Object(i.a)({transformOrigin:"center bottom",marginBottom:"14px"},r.touch&&{marginBottom:"24px"})),".".concat(O.popper,'[data-popper-placement*="bottom"] &'),Object(i.a)({transformOrigin:"center top",marginTop:"14px"},r.touch&&{marginTop:"24px"})))})),I=Object(l.a)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:function(e,t){return t.arrow}})((function(e){var t=e.theme;return{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:Object(c.a)(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}})),R=!1,D=null;function L(e,t){return function(n){t&&t(n),e(n)}}var N=o.forwardRef((function(e,t){var n,c,l,w,_,O,E=Object(d.a)({props:e,name:"MuiTooltip"}),T=E.arrow,C=void 0!==T&&T,N=E.children,F=E.components,B=void 0===F?{}:F,U=E.componentsProps,z=void 0===U?{}:U,V=E.describeChild,H=void 0!==V&&V,W=E.disableFocusListener,q=void 0!==W&&W,G=E.disableHoverListener,Y=void 0!==G&&G,K=E.disableInteractive,$=void 0!==K&&K,X=E.disableTouchListener,Q=void 0!==X&&X,Z=E.enterDelay,J=void 0===Z?100:Z,ee=E.enterNextDelay,te=void 0===ee?0:ee,ne=E.enterTouchDelay,re=void 0===ne?700:ne,ie=E.followCursor,oe=void 0!==ie&&ie,ae=E.id,se=E.leaveDelay,ue=void 0===se?0:se,ce=E.leaveTouchDelay,le=void 0===ce?1500:ce,fe=E.onClose,de=E.onOpen,pe=E.open,he=E.placement,ve=void 0===he?"bottom":he,ge=E.PopperComponent,me=E.PopperProps,ye=void 0===me?{}:me,be=E.title,xe=E.TransitionComponent,we=void 0===xe?h.a:xe,_e=E.TransitionProps,Se=Object(r.a)(E,A),Oe=Object(f.a)(),ke="rtl"===Oe.direction,Ee=j(o.useState(),2),je=Ee[0],Te=Ee[1],Ce=j(o.useState(null),2),Ae=Ce[0],Pe=Ce[1],Me=o.useRef(!1),Ie=$||oe,Re=o.useRef(),De=o.useRef(),Le=o.useRef(),Ne=o.useRef(),Fe=j(Object(x.a)({controlled:pe,default:!1,name:"Tooltip",state:"open"}),2),Be=Fe[0],Ue=Fe[1],ze=Be,Ve=Object(y.a)(ae),He=o.useRef(),We=o.useCallback((function(){void 0!==He.current&&(document.body.style.WebkitUserSelect=He.current,He.current=void 0),clearTimeout(Ne.current)}),[]);o.useEffect((function(){return function(){clearTimeout(Re.current),clearTimeout(De.current),clearTimeout(Le.current),We()}}),[We]);var qe=function(e){clearTimeout(D),R=!0,Ue(!0),de&&!ze&&de(e)},Ge=Object(g.a)((function(e){clearTimeout(D),D=setTimeout((function(){R=!1}),800+ue),Ue(!1),fe&&ze&&fe(e),clearTimeout(Re.current),Re.current=setTimeout((function(){Me.current=!1}),Oe.transitions.duration.shortest)})),Ye=function(e){Me.current&&"touchstart"!==e.type||(je&&je.removeAttribute("title"),clearTimeout(De.current),clearTimeout(Le.current),J||R&&te?De.current=setTimeout((function(){qe(e)}),R?te:J):qe(e))},Ke=function(e){clearTimeout(De.current),clearTimeout(Le.current),Le.current=setTimeout((function(){Ge(e)}),ue)},$e=Object(b.a)(),Xe=$e.isFocusVisibleRef,Qe=$e.onBlur,Ze=$e.onFocus,Je=$e.ref,et=j(o.useState(!1),2)[1],tt=function(e){Qe(e),!1===Xe.current&&(et(!1),Ke(e))},nt=function(e){je||Te(e.currentTarget),Ze(e),!0===Xe.current&&(et(!0),Ye(e))},rt=function(e){Me.current=!0;var t=N.props;t.onTouchStart&&t.onTouchStart(e)},it=Ye,ot=Ke;o.useEffect((function(){if(ze)return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||Ge(e)}}),[Ge,ze]);var at=Object(m.a)(Te,t),st=Object(m.a)(Je,at),ut=Object(m.a)(N.ref,st);""===be&&(ze=!1);var ct=o.useRef({x:0,y:0}),lt=o.useRef(),ft={},dt="string"==typeof be;H?(ft.title=ze||!dt||Y?null:be,ft["aria-describedby"]=ze?Ve:null):(ft["aria-label"]=dt?be:null,ft["aria-labelledby"]=ze&&!dt?Ve:null);var pt=Object(i.a)({},ft,Se,N.props,{className:Object(a.default)(Se.className,N.props.className),onTouchStart:rt,ref:ut},oe?{onMouseMove:function(e){var t=N.props;t.onMouseMove&&t.onMouseMove(e),ct.current={x:e.clientX,y:e.clientY},lt.current&<.current.update()}}:{});var ht={};Q||(pt.onTouchStart=function(e){rt(e),clearTimeout(Le.current),clearTimeout(Re.current),We(),He.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Ne.current=setTimeout((function(){document.body.style.WebkitUserSelect=He.current,Ye(e)}),re)},pt.onTouchEnd=function(e){N.props.onTouchEnd&&N.props.onTouchEnd(e),We(),clearTimeout(Le.current),Le.current=setTimeout((function(){Ge(e)}),le)}),Y||(pt.onMouseOver=L(it,pt.onMouseOver),pt.onMouseLeave=L(ot,pt.onMouseLeave),Ie||(ht.onMouseOver=it,ht.onMouseLeave=ot)),q||(pt.onFocus=L(nt,pt.onFocus),pt.onBlur=L(tt,pt.onBlur),Ie||(ht.onFocus=nt,ht.onBlur=tt));var vt=o.useMemo((function(){var e,t=[{name:"arrow",enabled:Boolean(Ae),options:{element:Ae,padding:4}}];return null!=(e=ye.popperOptions)&&e.modifiers&&(t=t.concat(ye.popperOptions.modifiers)),Object(i.a)({},ye.popperOptions,{modifiers:t})}),[Ae,ye]),gt=Object(i.a)({},E,{isRtl:ke,arrow:C,disableInteractive:Ie,placement:ve,PopperComponentProp:ge,touch:Me.current}),mt=function(e){var t=e.classes,n=e.disableInteractive,r=e.arrow,i=e.touch,o=e.placement,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch","tooltipPlacement".concat(Object(p.a)(o.split("-")[0]))],arrow:["arrow"]};return Object(s.a)(a,S,t)}(gt),yt=null!=(n=B.Popper)?n:P,bt=null!=(c=null!=(l=B.Transition)?l:we)?c:h.a,xt=null!=(w=B.Tooltip)?w:M,wt=null!=(_=B.Arrow)?_:I,_t=Object(u.a)(yt,Object(i.a)({},ye,z.popper),gt),St=Object(u.a)(bt,Object(i.a)({},_e,z.transition),gt),Ot=Object(u.a)(xt,Object(i.a)({},z.tooltip),gt),kt=Object(u.a)(wt,Object(i.a)({},z.arrow),gt);return Object(k.jsxs)(o.Fragment,{children:[o.cloneElement(N,pt),Object(k.jsx)(yt,Object(i.a)({as:null!=ge?ge:v.a,placement:ve,anchorEl:oe?{getBoundingClientRect:function(){return{top:ct.current.y,left:ct.current.x,right:ct.current.x,bottom:ct.current.y,width:0,height:0}}}:je,popperRef:lt,open:!!je&&ze,id:Ve,transition:!0},ht,_t,{className:Object(a.default)(mt.popper,null==ye?void 0:ye.className,null==(O=z.popper)?void 0:O.className),popperOptions:vt,children:function(e){var t,n,r=e.TransitionProps;return Object(k.jsx)(bt,Object(i.a)({timeout:Oe.transitions.duration.shorter},r,St,{children:Object(k.jsxs)(xt,Object(i.a)({},Ot,{className:Object(a.default)(mt.tooltip,null==(t=z.tooltip)?void 0:t.className),children:[be,C?Object(k.jsx)(wt,Object(i.a)({},kt,{className:Object(a.default)(mt.arrow,null==(n=z.arrow)?void 0:n.className),ref:Pe})):null]}))}))}}))]})}));t.a=N},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(17),s=n(158),u=n(177),c=n(18),l=n(493),f=n(277),d=n(20),p=n(15),h=n(138),v=n(152);function g(e){return Object(h.a)("MuiTableCell",e)}var m=Object(v.a)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),y=n(5);function b(e){return(b="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 x(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==b(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===b(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=["align","className","component","padding","scope","size","sortDirection","variant"],_=Object(p.a)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],t["size".concat(Object(c.a)(n.size))],"normal"!==n.padding&&t["padding".concat(Object(c.a)(n.padding))],"inherit"!==n.align&&t["align".concat(Object(c.a)(n.align))],n.stickyHeader&&t.stickyHeader]}})((function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?"1px solid ".concat(t.vars.palette.TableCell.border):"1px solid\n ".concat("light"===t.palette.mode?Object(u.j)(Object(u.a)(t.palette.divider,1),.88):Object(u.c)(Object(u.a)(t.palette.divider,1),.68)),textAlign:"left",padding:16},"head"===n.variant&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},"body"===n.variant&&{color:(t.vars||t).palette.text.primary},"footer"===n.variant&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},"small"===n.size&&x({padding:"6px 16px"},"&.".concat(m.paddingCheckbox),{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}),"checkbox"===n.padding&&{width:48,padding:"0 0 0 4px"},"none"===n.padding&&{padding:0},"left"===n.align&&{textAlign:"left"},"center"===n.align&&{textAlign:"center"},"right"===n.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===n.align&&{textAlign:"justify"},n.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})})),S=o.forwardRef((function(e,t){var n,u=Object(d.a)({props:e,name:"MuiTableCell"}),p=u.align,h=void 0===p?"inherit":p,v=u.className,m=u.component,b=u.padding,x=u.scope,S=u.size,O=u.sortDirection,k=u.variant,E=Object(r.a)(u,w),j=o.useContext(l.a),T=o.useContext(f.a),C=T&&"head"===T.variant;n=m||(C?"th":"td");var A=x;!A&&C&&(A="col");var P=k||T&&T.variant,M=Object(i.a)({},u,{align:h,component:n,padding:b||(j&&j.padding?j.padding:"normal"),size:S||(j&&j.size?j.size:"medium"),sortDirection:O,stickyHeader:"head"===P&&j&&j.stickyHeader,variant:P}),I=function(e){var t=e.classes,n=e.variant,r=e.align,i=e.padding,o=e.size,a={root:["root",n,e.stickyHeader&&"stickyHeader","inherit"!==r&&"align".concat(Object(c.a)(r)),"normal"!==i&&"padding".concat(Object(c.a)(i)),"size".concat(Object(c.a)(o))]};return Object(s.a)(a,g,t)}(M),R=null;return O&&(R="asc"===O?"ascending":"descending"),Object(y.jsx)(_,Object(i.a)({as:n,ref:t,className:Object(a.default)(I.root,v),"aria-sort":R,scope:A,ownerState:M},E))}));t.a=S},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(158),s=n(238),u=n(127),c=n(15),l=n(20),f=n(138),d=n(152),p=n(234);function h(e){return Object(f.a)("MuiInput",e)}var v=Object(i.a)({},p.a,Object(d.a)("MuiInput",["root","underline","input"])),g=n(5);function m(e){return(m="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 y(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==m(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===m(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e){return function(e){if(Array.isArray(e))return x(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var w=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","type"],_=Object(c.a)(u.b,{shouldForwardProp:function(e){return Object(c.b)(e)||"classes"===e},name:"MuiInput",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[].concat(b(Object(u.e)(e,t)),[!n.disableUnderline&&t.underline])}})((function(e){var t=e.theme,n=e.ownerState,r="light"===t.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(r="rgba(".concat(t.vars.palette.common.onBackgroundChannel," / ").concat(t.vars.opacity.inputUnderline,")")),Object(i.a)({position:"relative"},n.formControl&&{"label + &":{marginTop:16}},!n.disableUnderline&&y(y(y(y(y({"&:after":{borderBottom:"2px solid ".concat((t.vars||t).palette[n.color].main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"}},"&.".concat(v.focused,":after"),{transform:"scaleX(1) translateX(0)"}),"&.".concat(v.error,":after"),{borderBottomColor:(t.vars||t).palette.error.main,transform:"scaleX(1)"}),"&:before",{borderBottom:"1px solid ".concat(r),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"}),"&:hover:not(.".concat(v.disabled,"):before"),{borderBottom:"2px solid ".concat((t.vars||t).palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(r)}}),"&.".concat(v.disabled,":before"),{borderBottomStyle:"dotted"}))})),S=Object(c.a)(u.a,{name:"MuiInput",slot:"Input",overridesResolver:u.d})({}),O=o.forwardRef((function(e,t){var n=Object(l.a)({props:e,name:"MuiInput"}),o=n.disableUnderline,c=n.components,f=void 0===c?{}:c,d=n.componentsProps,p=n.fullWidth,v=void 0!==p&&p,m=n.inputComponent,y=void 0===m?"input":m,b=n.multiline,x=void 0!==b&&b,O=n.type,k=void 0===O?"text":O,E=Object(r.a)(n,w),j=function(e){var t=e.classes,n={root:["root",!e.disableUnderline&&"underline"],input:["input"]},r=Object(a.a)(n,h,t);return Object(i.a)({},t,r)}(n),T={root:{ownerState:{disableUnderline:o}}},C=d?Object(s.a)(d,T):T;return Object(g.jsx)(u.c,Object(i.a)({components:Object(i.a)({Root:_,Input:S},f),componentsProps:C,fullWidth:v,inputComponent:y,multiline:x,ref:t,type:k},E,{classes:j}))}));O.muiName="Input";t.a=O},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(238),s=n(158),u=n(127),c=n(15),l=n(20),f=n(138),d=n(152),p=n(234);function h(e){return Object(f.a)("MuiFilledInput",e)}var v=Object(i.a)({},p.a,Object(d.a)("MuiFilledInput",["root","underline","input"])),g=n(5);function m(e){return(m="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 y(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==m(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===m(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e){return function(e){if(Array.isArray(e))return x(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var w=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","type"],_=Object(c.a)(u.b,{shouldForwardProp:function(e){return Object(c.b)(e)||"classes"===e},name:"MuiFilledInput",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[].concat(b(Object(u.e)(e,t)),[!n.disableUnderline&&t.underline])}})((function(e){var t,n=e.theme,r=e.ownerState,o="light"===n.palette.mode,a=o?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",s=o?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",u=o?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",c=o?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Object(i.a)(y(y({position:"relative",backgroundColor:n.vars?n.vars.palette.FilledInput.bg:s,borderTopLeftRadius:(n.vars||n).shape.borderRadius,borderTopRightRadius:(n.vars||n).shape.borderRadius,transition:n.transitions.create("background-color",{duration:n.transitions.duration.shorter,easing:n.transitions.easing.easeOut}),"&:hover":{backgroundColor:n.vars?n.vars.palette.FilledInput.hoverBg:u,"@media (hover: none)":{backgroundColor:n.vars?n.vars.palette.FilledInput.bg:s}}},"&.".concat(v.focused),{backgroundColor:n.vars?n.vars.palette.FilledInput.bg:s}),"&.".concat(v.disabled),{backgroundColor:n.vars?n.vars.palette.FilledInput.disabledBg:c}),!r.disableUnderline&&y(y(y(y(y({"&:after":{borderBottom:"2px solid ".concat(null==(t=(n.vars||n).palette[r.color||"primary"])?void 0:t.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:n.transitions.create("transform",{duration:n.transitions.duration.shorter,easing:n.transitions.easing.easeOut}),pointerEvents:"none"}},"&.".concat(v.focused,":after"),{transform:"scaleX(1) translateX(0)"}),"&.".concat(v.error,":after"),{borderBottomColor:(n.vars||n).palette.error.main,transform:"scaleX(1)"}),"&:before",{borderBottom:"1px solid ".concat(n.vars?"rgba(".concat(n.vars.palette.common.onBackgroundChannel," / ").concat(n.vars.opacity.inputUnderline,")"):a),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:n.transitions.create("border-bottom-color",{duration:n.transitions.duration.shorter}),pointerEvents:"none"}),"&:hover:not(.".concat(v.disabled,"):before"),{borderBottom:"1px solid ".concat((n.vars||n).palette.text.primary)}),"&.".concat(v.disabled,":before"),{borderBottomStyle:"dotted"}),r.startAdornment&&{paddingLeft:12},r.endAdornment&&{paddingRight:12},r.multiline&&Object(i.a)({padding:"25px 12px 8px"},"small"===r.size&&{paddingTop:21,paddingBottom:4},r.hiddenLabel&&{paddingTop:16,paddingBottom:17}))})),S=Object(c.a)(u.a,{name:"MuiFilledInput",slot:"Input",overridesResolver:u.d})((function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.vars&&y({"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.getColorSchemeSelector("dark"),{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}),"small"===n.size&&{paddingTop:21,paddingBottom:4},n.hiddenLabel&&{paddingTop:16,paddingBottom:17},n.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0},n.hiddenLabel&&"small"===n.size&&{paddingTop:8,paddingBottom:9})})),O=o.forwardRef((function(e,t){var n=Object(l.a)({props:e,name:"MuiFilledInput"}),o=n.components,c=void 0===o?{}:o,f=n.componentsProps,d=n.fullWidth,p=void 0!==d&&d,v=n.inputComponent,m=void 0===v?"input":v,y=n.multiline,b=void 0!==y&&y,x=n.type,O=void 0===x?"text":x,k=Object(r.a)(n,w),E=Object(i.a)({},n,{fullWidth:p,inputComponent:m,multiline:b,type:O}),j=function(e){var t=e.classes,n={root:["root",!e.disableUnderline&&"underline"],input:["input"]},r=Object(s.a)(n,h,t);return Object(i.a)({},t,r)}(n),T={root:{ownerState:E},input:{ownerState:E}},C=f?Object(a.a)(f,T):T;return Object(g.jsx)(u.c,Object(i.a)({components:Object(i.a)({Root:_,Input:S},c),componentsProps:C,fullWidth:p,inputComponent:m,multiline:b,ref:t,type:O},k,{classes:j}))}));O.muiName="Input";t.a=O},function(e,t,n){"use strict";var r=n(6),i=n(16),o=n(2),a=(n(153),n(133)),s=n(1686),u=n(614).a,c=n(62),l=n(120),f=n(5),d=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function p(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function h(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function v(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function g(e,t,n,r,i,o){for(var a=!1,s=i(e,t,!!t&&n);s;){if(s===e.firstChild){if(a)return!1;a=!0}var u=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&v(s,o)&&!u)return s.focus(),!0;s=i(e,s,n)}return!1}var m=o.forwardRef((function(e,t){var n=e.actions,m=e.autoFocus,y=void 0!==m&&m,b=e.autoFocusItem,x=void 0!==b&&b,w=e.children,_=e.className,S=e.disabledItemsFocusable,O=void 0!==S&&S,k=e.disableListWrap,E=void 0!==k&&k,j=e.onKeyDown,T=e.variant,C=void 0===T?"selectedMenu":T,A=Object(i.a)(e,d),P=o.useRef(null),M=o.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Object(l.a)((function(){y&&P.current.focus()}),[y]),o.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!P.current.style.width;if(e.clientHeight<P.current.clientHeight&&n){var r="".concat(u(Object(a.a)(e)),"px");P.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,P.current.style.width="calc(100% + ".concat(r,")")}return P.current}}}),[]);var I=Object(c.a)(P,t),R=-1;o.Children.forEach(w,(function(e,t){o.isValidElement(e)&&(e.props.disabled||("selectedMenu"===C&&e.props.selected?R=t:-1===R&&(R=t)))}));var D=o.Children.map(w,(function(e,t){if(t===R){var n={};return x&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===C&&(n.tabIndex=0),o.cloneElement(e,n)}return e}));return(Object(f.jsx)(s.a,Object(r.a)({role:"menu",ref:I,className:_,onKeyDown:function(e){var t=P.current,n=e.key,r=Object(a.a)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),g(t,r,E,O,p);else if("ArrowUp"===n)e.preventDefault(),g(t,r,E,O,h);else if("Home"===n)e.preventDefault(),g(t,null,E,O,p);else if("End"===n)e.preventDefault(),g(t,null,E,O,h);else if(1===n.length){var i=M.current,o=n.toLowerCase(),s=performance.now();i.keys.length>0&&(s-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=s,i.keys.push(o);var u=r&&!i.repeating&&v(r,i);i.previousKeyMatched&&(u||g(t,r,!1,O,p,i))?e.preventDefault():i.previousKeyMatched=!1}j&&j(e)},tabIndex:y?0:-1},A,{children:D})))}));t.a=m},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(17),s=n(158),u=n(15),c=n(20),l=n(113),f=n(138),d=n(152);function p(e){return Object(f.a)("MuiList",e)}Object(d.a)("MuiList",["root","padding","dense","subheader"]);var h=n(5),v=["children","className","component","dense","disablePadding","subheader"],g=Object(u.a)("ul",{name:"MuiList",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((function(e){var t=e.ownerState;return Object(i.a)({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})})),m=o.forwardRef((function(e,t){var n=Object(c.a)({props:e,name:"MuiList"}),u=n.children,f=n.className,d=n.component,m=void 0===d?"ul":d,y=n.dense,b=void 0!==y&&y,x=n.disablePadding,w=void 0!==x&&x,_=n.subheader,S=Object(r.a)(n,v),O=o.useMemo((function(){return{dense:b}}),[b]),k=Object(i.a)({},n,{component:m,dense:b,disablePadding:w}),E=function(e){var t=e.classes,n={root:["root",!e.disablePadding&&"padding",e.dense&&"dense",e.subheader&&"subheader"]};return Object(s.a)(n,p,t)}(k);return Object(h.jsx)(l.a.Provider,{value:O,children:Object(h.jsxs)(g,Object(i.a)({as:m,className:Object(a.default)(E.root,f),ref:t,ownerState:k},S,{children:[_,u]}))})}));t.a=m},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(17),s=n(158),u=n(177),c=n(15),l=n(20),f=n(113),d=n(887),p=n(120),h=n(62),v=n(848),g=n(849),m=n(535),y=n(138),b=n(152);function x(e){return Object(y.a)("MuiMenuItem",e)}var w=Object(b.a)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),_=n(5);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 O(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==S(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==S(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===S(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var k=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex"],E=Object(c.a)(d.a,{shouldForwardProp:function(e){return Object(c.b)(e)||"classes"===e},name:"MuiMenuItem",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},O(O(O(O(O(O(O(O(O({"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},"&.".concat(w.selected),O({backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):Object(u.a)(t.palette.primary.main,t.palette.action.selectedOpacity)},"&.".concat(w.focusVisible),{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):Object(u.a)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)})),"&.".concat(w.selected,":hover"),{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):Object(u.a)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):Object(u.a)(t.palette.primary.main,t.palette.action.selectedOpacity)}}),"&.".concat(w.focusVisible),{backgroundColor:(t.vars||t).palette.action.focus}),"&.".concat(w.disabled),{opacity:(t.vars||t).palette.action.disabledOpacity}),"& + .".concat(v.a.root),{marginTop:t.spacing(1),marginBottom:t.spacing(1)}),"& + .".concat(v.a.inset),{marginLeft:52}),"& .".concat(m.a.root),{marginTop:0,marginBottom:0}),"& .".concat(m.a.inset),{paddingLeft:36}),"& .".concat(g.a.root),{minWidth:36}),!n.dense&&O({},t.breakpoints.up("sm"),{minHeight:"auto"}),n.dense&&Object(i.a)({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,O({},"& .".concat(g.a.root," svg"),{fontSize:"1.25rem"})))})),j=o.forwardRef((function(e,t){var n=Object(l.a)({props:e,name:"MuiMenuItem"}),u=n.autoFocus,c=void 0!==u&&u,d=n.component,v=void 0===d?"li":d,g=n.dense,m=void 0!==g&&g,y=n.divider,b=void 0!==y&&y,w=n.disableGutters,S=void 0!==w&&w,O=n.focusVisibleClassName,j=n.role,T=void 0===j?"menuitem":j,C=n.tabIndex,A=Object(r.a)(n,k),P=o.useContext(f.a),M={dense:m||P.dense||!1,disableGutters:S},I=o.useRef(null);Object(p.a)((function(){c&&I.current&&I.current.focus()}),[c]);var R,D=Object(i.a)({},n,{dense:M.dense,divider:b,disableGutters:S}),L=function(e){var t=e.disabled,n=e.dense,r=e.divider,o=e.disableGutters,a=e.selected,u=e.classes,c={root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},l=Object(s.a)(c,x,u);return Object(i.a)({},u,l)}(n),N=Object(h.a)(I,t);return n.disabled||(R=void 0!==C?C:-1),Object(_.jsx)(f.a.Provider,{value:M,children:Object(_.jsx)(E,Object(i.a)({ref:N,role:T,tabIndex:R,component:v,focusVisibleClassName:Object(a.default)(L.focusVisible,O)},A,{ownerState:D,classes:L}))})}));t.a=j},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(17),s=n(158),u=n(20),c=n(15),l=n(316),f=n(18),d=n(210),p=n(274),h=n(138),v=n(152);function g(e){return Object(h.a)("MuiFormControl",e)}Object(v.a)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var m=n(5);function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var x=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],w=Object(c.a)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return Object(i.a)({},t.root,t["margin".concat(Object(f.a)(n.margin))],n.fullWidth&&t.fullWidth)}})((function(e){var t=e.ownerState;return Object(i.a)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===t.margin&&{marginTop:16,marginBottom:8},"dense"===t.margin&&{marginTop:8,marginBottom:4},t.fullWidth&&{width:"100%"})})),_=o.forwardRef((function(e,t){var n=Object(u.a)({props:e,name:"MuiFormControl"}),c=n.children,h=n.className,v=n.color,b=void 0===v?"primary":v,_=n.component,S=void 0===_?"div":_,O=n.disabled,k=void 0!==O&&O,E=n.error,j=void 0!==E&&E,T=n.focused,C=n.fullWidth,A=void 0!==C&&C,P=n.hiddenLabel,M=void 0!==P&&P,I=n.margin,R=void 0===I?"none":I,D=n.required,L=void 0!==D&&D,N=n.size,F=void 0===N?"medium":N,B=n.variant,U=void 0===B?"outlined":B,z=Object(r.a)(n,x),V=Object(i.a)({},n,{color:b,component:S,disabled:k,error:j,fullWidth:A,hiddenLabel:M,margin:R,required:L,size:F,variant:U}),H=function(e){var t=e.classes,n=e.margin,r=e.fullWidth,i={root:["root","none"!==n&&"margin".concat(Object(f.a)(n)),r&&"fullWidth"]};return Object(s.a)(i,g,t)}(V),W=y(o.useState((function(){var e=!1;return c&&o.Children.forEach(c,(function(t){if(Object(d.a)(t,["Input","Select"])){var n=Object(d.a)(t,["Select"])?t.props.input:t;n&&Object(l.a)(n.props)&&(e=!0)}})),e})),2),q=W[0],G=W[1],Y=y(o.useState((function(){var e=!1;return c&&o.Children.forEach(c,(function(t){Object(d.a)(t,["Input","Select"])&&Object(l.b)(t.props,!0)&&(e=!0)})),e})),2),K=Y[0],$=Y[1],X=y(o.useState(!1),2),Q=X[0],Z=X[1];k&&Q&&Z(!1);var J=void 0===T||k?Q:T,ee=o.useCallback((function(){$(!0)}),[]),te={adornedStart:q,setAdornedStart:G,color:b,disabled:k,error:j,filled:K,focused:J,fullWidth:A,hiddenLabel:M,size:F,onBlur:function(){Z(!1)},onEmpty:o.useCallback((function(){$(!1)}),[]),onFilled:ee,onFocus:function(){Z(!0)},registerEffect:void 0,required:L,variant:U};return Object(m.jsx)(p.a.Provider,{value:te,children:Object(m.jsx)(w,Object(i.a)({as:S,ownerState:V,className:Object(a.default)(H.root,h),ref:t},z,{children:c}))})}));t.a=_},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(158),s=n(140),u=n(122),c=n(1643),l=n(370),f=n(20),d=n(15),p=n(138),h=n(152);function v(e){return Object(p.a)("MuiInputLabel",e)}Object(h.a)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);var g=n(5);function m(e){return(m="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 y(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==m(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===m(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=["disableAnimation","margin","shrink","variant"],x=Object(d.a)(c.a,{shouldForwardProp:function(e){return Object(d.b)(e)||"classes"===e},name:"MuiInputLabel",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[y({},"& .".concat(l.a.asterisk),t.asterisk),t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})((function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},n.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===n.size&&{transform:"translate(0, 17px) scale(1)"},n.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!n.disableAnimation&&{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},"filled"===n.variant&&Object(i.a)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(12px, 13px) scale(1)"},n.shrink&&Object(i.a)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===n.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===n.variant&&Object(i.a)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(14px, 9px) scale(1)"},n.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 24px)",transform:"translate(14px, -9px) scale(0.75)"}))})),w=o.forwardRef((function(e,t){var n=Object(f.a)({name:"MuiInputLabel",props:e}),o=n.disableAnimation,c=void 0!==o&&o,l=n.shrink,d=Object(r.a)(n,b),p=Object(u.a)(),h=l;void 0===h&&p&&(h=p.filled||p.focused||p.adornedStart);var m=Object(s.a)({props:n,muiFormControl:p,states:["size","variant","required"]}),y=Object(i.a)({},n,{disableAnimation:c,formControl:p,shrink:h,size:m.size,variant:m.variant,required:m.required}),w=function(e){var t=e.classes,n=e.formControl,r=e.size,o=e.shrink,s={root:["root",n&&"formControl",!e.disableAnimation&&"animated",o&&"shrink","small"===r&&"sizeSmall",e.variant],asterisk:[e.required&&"asterisk"]},u=Object(a.a)(s,v,t);return Object(i.a)({},t,u)}(y);return Object(g.jsx)(x,Object(i.a)({"data-shrink":h,ownerState:y,ref:t},d,{classes:w}))}));t.a=w},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(17),s=n(158),u=n(140),c=n(122),l=n(15),f=n(18),d=n(138),p=n(152);function h(e){return Object(d.a)("MuiFormHelperText",e)}var v,g=Object(p.a)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),m=n(20),y=n(5);function b(e){return(b="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 x(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==b(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===b(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=["children","className","component","disabled","error","filled","focused","margin","required","variant"],_=Object(l.a)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.size&&t["size".concat(Object(f.a)(n.size))],n.contained&&t.contained,n.filled&&t.filled]}})((function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({color:(t.vars||t).palette.text.secondary},t.typography.caption,x(x({textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0},"&.".concat(g.disabled),{color:(t.vars||t).palette.text.disabled}),"&.".concat(g.error),{color:(t.vars||t).palette.error.main}),"small"===n.size&&{marginTop:4},n.contained&&{marginLeft:14,marginRight:14})})),S=o.forwardRef((function(e,t){var n=Object(m.a)({props:e,name:"MuiFormHelperText"}),o=n.children,l=n.className,d=n.component,p=void 0===d?"p":d,g=Object(r.a)(n,w),b=Object(c.a)(),x=Object(u.a)({props:n,muiFormControl:b,states:["variant","size","disabled","error","filled","focused","required"]}),S=Object(i.a)({},n,{component:p,contained:"filled"===x.variant||"outlined"===x.variant,variant:x.variant,size:x.size,disabled:x.disabled,error:x.error,filled:x.filled,focused:x.focused,required:x.required}),O=function(e){var t=e.classes,n=e.contained,r=e.size,i=e.disabled,o=e.error,a=e.filled,u=e.focused,c=e.required,l={root:["root",i&&"disabled",o&&"error",r&&"size".concat(Object(f.a)(r)),n&&"contained",u&&"focused",a&&"filled",c&&"required"]};return Object(s.a)(l,h,t)}(S);return Object(y.jsx)(_,Object(i.a)({as:p,ownerState:S,className:Object(a.default)(O.root,l),ref:t},g,{children:" "===o?v||(v=Object(y.jsx)("span",{className:"notranslate",children:""})):o}))}));t.a=S},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(17),s=n(158),u=n(122),c=n(325),l=n(18),f=n(15),d=n(20),p=n(138),h=n(152);function v(e){return Object(p.a)("MuiFormControlLabel",e)}var g=Object(h.a)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error"]),m=n(140),y=n(5);function b(e){return(b="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 x(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==b(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===b(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","value"],_=Object(f.a)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[x({},"& .".concat(g.label),t.label),t.root,t["labelPlacement".concat(Object(l.a)(n.labelPlacement))]]}})((function(e){var t=e.theme,n=e.ownerState;return Object(i.a)(x({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16},"&.".concat(g.disabled),{cursor:"default"}),"start"===n.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===n.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===n.labelPlacement&&{flexDirection:"column",marginLeft:16},x({},"& .".concat(g.label),x({},"&.".concat(g.disabled),{color:(t.vars||t).palette.text.disabled})))})),S=o.forwardRef((function(e,t){var n=Object(d.a)({props:e,name:"MuiFormControlLabel"}),f=n.className,p=n.componentsProps,h=void 0===p?{}:p,g=n.control,b=n.disabled,x=n.disableTypography,S=n.label,O=n.labelPlacement,k=void 0===O?"end":O,E=Object(r.a)(n,w),j=Object(u.a)(),T=b;void 0===T&&void 0!==g.props.disabled&&(T=g.props.disabled),void 0===T&&j&&(T=j.disabled);var C={disabled:T};["checked","name","onChange","value","inputRef"].forEach((function(e){void 0===g.props[e]&&void 0!==n[e]&&(C[e]=n[e])}));var A=Object(m.a)({props:n,muiFormControl:j,states:["error"]}),P=Object(i.a)({},n,{disabled:T,labelPlacement:k,error:A.error}),M=function(e){var t=e.classes,n=e.disabled,r=e.labelPlacement,i=e.error,o={root:["root",n&&"disabled","labelPlacement".concat(Object(l.a)(r)),i&&"error"],label:["label",n&&"disabled"]};return Object(s.a)(o,v,t)}(P),I=S;return null==I||I.type===c.a||x||(I=Object(y.jsx)(c.a,Object(i.a)({component:"span",className:M.label},h.typography,{children:I}))),Object(y.jsxs)(_,Object(i.a)({className:Object(a.default)(M.root,f),ownerState:P,ref:t},E,{children:[o.cloneElement(g,C),I]}))}));t.a=S},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(17),s=n(158),u=n(15),c=n(20),l=n(138),f=n(152);function d(e){return Object(l.a)("MuiDialogContent",e)}Object(f.a)("MuiDialogContent",["root","dividers"]);var p=n(505),h=n(5);function v(e){return(v="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 g(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==v(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===v(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=["className","dividers"],y=Object(u.a)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.dividers&&t.dividers]}})((function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},n.dividers?{padding:"16px 24px",borderTop:"1px solid ".concat((t.vars||t).palette.divider),borderBottom:"1px solid ".concat((t.vars||t).palette.divider)}:g({},".".concat(p.a.root," + &"),{paddingTop:0}))})),b=o.forwardRef((function(e,t){var n=Object(c.a)({props:e,name:"MuiDialogContent"}),o=n.className,u=n.dividers,l=void 0!==u&&u,f=Object(r.a)(n,m),p=Object(i.a)({},n,{dividers:l}),v=function(e){var t=e.classes,n={root:["root",e.dividers&&"dividers"]};return Object(s.a)(n,d,t)}(p);return Object(h.jsx)(y,Object(i.a)({className:Object(a.default)(v.root,o),ownerState:p,ref:t},f))}));t.a=b},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=(n(153),n(17)),s=n(158),u=n(15),c=n(20),l=n(1678),f=n(492),d=n(506),p=n(169),h=n(138),v=n(152);function g(e){return Object(h.a)("MuiAccordion",e)}var m=Object(v.a)("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),y=n(5);function b(e){return(b="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 x(e){return k(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||S(e)||_()}function w(e,t){return k(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||S(e,t)||_()}function _(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function S(e,t){if(e){if("string"==typeof e)return O(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(e,t):void 0}}function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function k(e){if(Array.isArray(e))return e}function E(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==b(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===b(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var j=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],T=Object(u.a)(f.a,{name:"MuiAccordion",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[E({},"& .".concat(m.region),t.region),t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})((function(e){var t=e.theme,n={duration:t.transitions.duration.shortest};return E(E({position:"relative",transition:t.transitions.create(["margin"],n),overflowAnchor:"none","&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(t.vars||t).palette.divider,transition:t.transitions.create(["opacity","background-color"],n)},"&:first-of-type":{"&:before":{display:"none"}}},"&.".concat(m.expanded),{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}}),"&.".concat(m.disabled),{backgroundColor:(t.vars||t).palette.action.disabledBackground})}),(function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({},!n.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(t.vars||t).shape.borderRadius,borderBottomRightRadius:(t.vars||t).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!n.disableGutters&&E({},"&.".concat(m.expanded),{margin:"16px 0"}))})),C=o.forwardRef((function(e,t){var n=Object(c.a)({props:e,name:"MuiAccordion"}),u=n.children,f=n.className,h=n.defaultExpanded,v=void 0!==h&&h,m=n.disabled,b=void 0!==m&&m,_=n.disableGutters,S=void 0!==_&&_,O=n.expanded,k=n.onChange,E=n.square,C=void 0!==E&&E,A=n.TransitionComponent,P=void 0===A?l.a:A,M=n.TransitionProps,I=Object(r.a)(n,j),R=w(Object(p.a)({controlled:O,default:v,name:"Accordion",state:"expanded"}),2),D=R[0],L=R[1],N=o.useCallback((function(e){L(!D),k&&k(e,!D)}),[D,k,L]),F=x(o.Children.toArray(u)),B=F[0],U=F.slice(1),z=o.useMemo((function(){return{expanded:D,disabled:b,disableGutters:S,toggle:N}}),[D,b,S,N]),V=Object(i.a)({},n,{square:C,disabled:b,disableGutters:S,expanded:D}),H=function(e){var t=e.classes,n={root:["root",!e.square&&"rounded",e.expanded&&"expanded",e.disabled&&"disabled",!e.disableGutters&&"gutters"],region:["region"]};return Object(s.a)(n,g,t)}(V);return Object(y.jsxs)(T,Object(i.a)({className:Object(a.default)(H.root,f),ref:t,ownerState:V,square:C},I,{children:[Object(y.jsx)(d.a.Provider,{value:z,children:B}),Object(y.jsx)(P,Object(i.a)({in:D,timeout:"auto"},M,{children:Object(y.jsx)("div",{"aria-labelledby":B.props.id,id:B.props["aria-controls"],role:"region",className:H.region,children:U})}))]}))}));t.a=C},function(e,t,n){"use strict";var r=n(6),i=n(16),o=n(2),a=n(17),s=n(158),u=n(15),c=n(20),l=n(138),f=n(152);function d(e){return Object(l.a)("MuiAccordionDetails",e)}Object(f.a)("MuiAccordionDetails",["root"]);var p=n(5),h=["className"],v=Object(u.a)("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(e){return{padding:e.theme.spacing(1,2,2)}})),g=o.forwardRef((function(e,t){var n=Object(c.a)({props:e,name:"MuiAccordionDetails"}),o=n.className,u=Object(i.a)(n,h),l=n,f=function(e){var t=e.classes;return Object(s.a)({root:["root"]},d,t)}(l);return Object(p.jsx)(v,Object(r.a)({className:Object(a.default)(f.root,o),ref:t,ownerState:l},u))}));t.a=g},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(17),s=n(158),u=n(15),c=n(20),l=n(887),f=n(506),d=n(138),p=n(152);function h(e){return Object(d.a)("MuiAccordionSummary",e)}var v=Object(p.a)("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),g=n(5);function m(e){return(m="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 y(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==m(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===m(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=["children","className","expandIcon","focusVisibleClassName","onClick"],x=Object(u.a)(l.a,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:function(e,t){return t.root}})((function(e){var t=e.theme,n=e.ownerState,r={duration:t.transitions.duration.shortest};return Object(i.a)(y(y(y({display:"flex",minHeight:48,padding:t.spacing(0,2),transition:t.transitions.create(["min-height","background-color"],r)},"&.".concat(v.focusVisible),{backgroundColor:(t.vars||t).palette.action.focus}),"&.".concat(v.disabled),{opacity:(t.vars||t).palette.action.disabledOpacity}),"&:hover:not(.".concat(v.disabled,")"),{cursor:"pointer"}),!n.disableGutters&&y({},"&.".concat(v.expanded),{minHeight:64}))})),w=Object(u.a)("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:function(e,t){return t.content}})((function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({display:"flex",flexGrow:1,margin:"12px 0"},!n.disableGutters&&y({transition:t.transitions.create(["margin"],{duration:t.transitions.duration.shortest})},"&.".concat(v.expanded),{margin:"20px 0"}))})),_=Object(u.a)("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:function(e,t){return t.expandIconWrapper}})((function(e){var t=e.theme;return y({display:"flex",color:(t.vars||t).palette.action.active,transform:"rotate(0deg)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shortest})},"&.".concat(v.expanded),{transform:"rotate(180deg)"})})),S=o.forwardRef((function(e,t){var n=Object(c.a)({props:e,name:"MuiAccordionSummary"}),u=n.children,l=n.className,d=n.expandIcon,p=n.focusVisibleClassName,v=n.onClick,m=Object(r.a)(n,b),y=o.useContext(f.a),S=y.disabled,O=void 0!==S&&S,k=y.disableGutters,E=y.expanded,j=y.toggle,T=Object(i.a)({},n,{expanded:E,disabled:O,disableGutters:k}),C=function(e){var t=e.classes,n=e.expanded,r=e.disabled,i=e.disableGutters,o={root:["root",n&&"expanded",r&&"disabled",!i&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!i&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]};return Object(s.a)(o,h,t)}(T);return Object(g.jsxs)(x,Object(i.a)({focusRipple:!1,disableRipple:!0,disabled:O,component:"div","aria-expanded":E,className:Object(a.default)(C.root,l),focusVisibleClassName:Object(a.default)(C.focusVisible,p),onClick:function(e){j&&j(e),v&&v(e)},ref:t,ownerState:T},m,{children:[Object(g.jsx)(w,{className:C.content,ownerState:T,children:u}),d&&Object(g.jsx)(_,{className:C.expandIconWrapper,ownerState:T,children:d})]}))}));t.a=S},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(17),s=n(158),u=n(149),c=n(177),l=n(15),f=n(20),d=n(887),p=n(210),h=n(120),v=n(62),g=n(113),m=n(138),y=n(152);function b(e){return Object(m.a)("MuiListItem",e)}var x=Object(y.a)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),w=n(324),_=n(1697),S=n(5);function O(e){return(O="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 k(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==O(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==O(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===O(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=["className"],j=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected"],T=Object(l.a)("div",{name:"MuiListItem",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})((function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!n.disablePadding&&Object(i.a)({paddingTop:8,paddingBottom:8},n.dense&&{paddingTop:4,paddingBottom:4},!n.disableGutters&&{paddingLeft:16,paddingRight:16},!!n.secondaryAction&&{paddingRight:48}),!!n.secondaryAction&&k({},"& > .".concat(w.a.root),{paddingRight:48}),k(k(k({},"&.".concat(x.focusVisible),{backgroundColor:(t.vars||t).palette.action.focus}),"&.".concat(x.selected),k({backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):Object(c.a)(t.palette.primary.main,t.palette.action.selectedOpacity)},"&.".concat(x.focusVisible),{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):Object(c.a)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)})),"&.".concat(x.disabled),{opacity:(t.vars||t).palette.action.disabledOpacity}),"flex-start"===n.alignItems&&{alignItems:"flex-start"},n.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},n.button&&k({transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},"&.".concat(x.selected,":hover"),{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):Object(c.a)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):Object(c.a)(t.palette.primary.main,t.palette.action.selectedOpacity)}}),n.hasSecondaryAction&&{paddingRight:48})})),C=Object(l.a)("li",{name:"MuiListItem",slot:"Container",overridesResolver:function(e,t){return t.container}})({position:"relative"}),A=o.forwardRef((function(e,t){var n=Object(f.a)({props:e,name:"MuiListItem"}),c=n.alignItems,l=void 0===c?"center":c,m=n.autoFocus,y=void 0!==m&&m,w=n.button,O=void 0!==w&&w,k=n.children,A=n.className,P=n.component,M=n.components,I=void 0===M?{}:M,R=n.componentsProps,D=void 0===R?{}:R,L=n.ContainerComponent,N=void 0===L?"li":L,F=n.ContainerProps,B=(void 0===F?{}:F).className,U=n.dense,z=void 0!==U&&U,V=n.disabled,H=void 0!==V&&V,W=n.disableGutters,q=void 0!==W&&W,G=n.disablePadding,Y=void 0!==G&&G,K=n.divider,$=void 0!==K&&K,X=n.focusVisibleClassName,Q=n.secondaryAction,Z=n.selected,J=void 0!==Z&&Z,ee=Object(r.a)(n.ContainerProps,E),te=Object(r.a)(n,j),ne=o.useContext(g.a),re={dense:z||ne.dense||!1,alignItems:l,disableGutters:q},ie=o.useRef(null);Object(h.a)((function(){y&&ie.current&&ie.current.focus()}),[y]);var oe=o.Children.toArray(k),ae=oe.length&&Object(p.a)(oe[oe.length-1],["ListItemSecondaryAction"]),se=Object(i.a)({},n,{alignItems:l,autoFocus:y,button:O,dense:re.dense,disabled:H,disableGutters:q,disablePadding:Y,divider:$,hasSecondaryAction:ae,selected:J}),ue=function(e){var t=e.alignItems,n=e.button,r=e.classes,i=e.dense,o=e.disabled,a={root:["root",i&&"dense",!e.disableGutters&&"gutters",!e.disablePadding&&"padding",e.divider&&"divider",o&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",e.hasSecondaryAction&&"secondaryAction",e.selected&&"selected"],container:["container"]};return Object(s.a)(a,b,r)}(se),ce=Object(v.a)(ie,t),le=I.Root||T,fe=D.root||{},de=Object(i.a)({className:Object(a.default)(ue.root,fe.className,A),disabled:H},te),pe=P||"li";return O&&(de.component=P||"div",de.focusVisibleClassName=Object(a.default)(x.focusVisible,X),pe=d.a),ae?(pe=de.component||P?pe:"div","li"===N&&("li"===pe?pe="div":"li"===de.component&&(de.component="div")),Object(S.jsx)(g.a.Provider,{value:re,children:Object(S.jsxs)(C,Object(i.a)({as:N,className:Object(a.default)(ue.container,B),ref:ce,ownerState:se},ee,{children:[Object(S.jsx)(le,Object(i.a)({},fe,!Object(u.a)(le)&&{as:pe,ownerState:Object(i.a)({},se,fe.ownerState)},de,{children:oe})),oe.pop()]}))})):Object(S.jsx)(g.a.Provider,{value:re,children:Object(S.jsxs)(le,Object(i.a)({},fe,{as:pe,ref:ce,ownerState:se},!Object(u.a)(le)&&{ownerState:Object(i.a)({},se,fe.ownerState)},de,{children:[oe,Q&&Object(S.jsx)(_.a,{children:Q})]}))})}));t.a=A},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(17),s=n(158),u=n(15),c=n(20),l=n(113),f=n(138),d=n(152);function p(e){return Object(f.a)("MuiListItemSecondaryAction",e)}Object(d.a)("MuiListItemSecondaryAction",["root","disableGutters"]);var h=n(5),v=["className"],g=Object(u.a)("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.disableGutters&&t.disableGutters]}})((function(e){var t=e.ownerState;return Object(i.a)({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},t.disableGutters&&{right:0})})),m=o.forwardRef((function(e,t){var n=Object(c.a)({props:e,name:"MuiListItemSecondaryAction"}),u=n.className,f=Object(r.a)(n,v),d=o.useContext(l.a),m=Object(i.a)({},n,{disableGutters:d.disableGutters}),y=function(e){var t=e.disableGutters,n=e.classes,r={root:["root",t&&"disableGutters"]};return Object(s.a)(r,p,n)}(m);return Object(h.jsx)(g,Object(i.a)({className:Object(a.default)(y.root,u),ownerState:m,ref:t},f))}));m.muiName="ListItemSecondaryAction";t.a=m},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(17),s=n(158),u=n(113),c=n(15),l=n(20),f=n(138),d=n(152);function p(e){return Object(f.a)("MuiListItemAvatar",e)}Object(d.a)("MuiListItemAvatar",["root","alignItemsFlexStart"]);var h=n(5),v=["className"],g=Object(c.a)("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((function(e){var t=e.ownerState;return Object(i.a)({minWidth:56,flexShrink:0},"flex-start"===t.alignItems&&{marginTop:8})})),m=o.forwardRef((function(e,t){var n=Object(l.a)({props:e,name:"MuiListItemAvatar"}),c=n.className,f=Object(r.a)(n,v),d=o.useContext(u.a),m=Object(i.a)({},n,{alignItems:d.alignItems}),y=function(e){var t=e.alignItems,n=e.classes,r={root:["root","flex-start"===t&&"alignItemsFlexStart"]};return Object(s.a)(r,p,n)}(m);return Object(h.jsx)(g,Object(i.a)({className:Object(a.default)(y.root,c),ownerState:m,ref:t},f))}));t.a=m},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(158),s=n(15),u=n(20),c=n(325),l=n(138),f=n(152);function d(e){return Object(l.a)("MuiDialogContentText",e)}Object(f.a)("MuiDialogContentText",["root"]);var p=n(5),h=["children"],v=Object(s.a)(c.a,{shouldForwardProp:function(e){return Object(s.b)(e)||"classes"===e},name:"MuiDialogContentText",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),g=o.forwardRef((function(e,t){var n=Object(u.a)({props:e,name:"MuiDialogContentText"}),o=Object(r.a)(n,h),s=function(e){var t=e.classes,n=Object(a.a)({root:["root"]},d,t);return Object(i.a)({},t,n)}(o);return Object(p.jsx)(v,Object(i.a)({component:"p",variant:"body1",color:"text.secondary",ref:t,ownerState:o},n,{classes:s}))}));t.a=g},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(17),s=n(158),u=n(177),c=n(18),l=n(15),f=n(20),d=n(138),p=n(152);function h(e){return Object(d.a)("MuiButtonGroup",e)}var v=Object(p.a)("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","fullWidth","vertical","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary"]),g=n(491),m=n(5);function y(e){return(y="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 b(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==y(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===y(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=["children","className","color","component","disabled","disableElevation","disableFocusRipple","disableRipple","fullWidth","orientation","size","variant"],w=Object(l.a)("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[b({},"& .".concat(v.grouped),t.grouped),b({},"& .".concat(v.grouped),t["grouped".concat(Object(c.a)(n.orientation))]),b({},"& .".concat(v.grouped),t["grouped".concat(Object(c.a)(n.variant))]),b({},"& .".concat(v.grouped),t["grouped".concat(Object(c.a)(n.variant)).concat(Object(c.a)(n.orientation))]),b({},"& .".concat(v.grouped),t["grouped".concat(Object(c.a)(n.variant)).concat(Object(c.a)(n.color))]),t.root,t[n.variant],!0===n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,"vertical"===n.orientation&&t.vertical]}})((function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},"contained"===n.variant&&{boxShadow:(t.vars||t).shadows[2]},n.disableElevation&&{boxShadow:"none"},n.fullWidth&&{width:"100%"},"vertical"===n.orientation&&{flexDirection:"column"},b({},"& .".concat(v.grouped),Object(i.a)({minWidth:40,"&:not(:first-of-type)":Object(i.a)({},"horizontal"===n.orientation&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},"vertical"===n.orientation&&{borderTopRightRadius:0,borderTopLeftRadius:0},"outlined"===n.variant&&"horizontal"===n.orientation&&{marginLeft:-1},"outlined"===n.variant&&"vertical"===n.orientation&&{marginTop:-1}),"&:not(:last-of-type)":Object(i.a)({},"horizontal"===n.orientation&&{borderTopRightRadius:0,borderBottomRightRadius:0},"vertical"===n.orientation&&{borderBottomRightRadius:0,borderBottomLeftRadius:0},"text"===n.variant&&"horizontal"===n.orientation&&{borderRight:t.vars?"1px solid rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):"1px solid ".concat("light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")},"text"===n.variant&&"vertical"===n.orientation&&{borderBottom:t.vars?"1px solid rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):"1px solid ".concat("light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")},"text"===n.variant&&"inherit"!==n.color&&{borderColor:t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / 0.5)"):Object(u.a)(t.palette[n.color].main,.5)},"outlined"===n.variant&&"horizontal"===n.orientation&&{borderRightColor:"transparent"},"outlined"===n.variant&&"vertical"===n.orientation&&{borderBottomColor:"transparent"},"contained"===n.variant&&"horizontal"===n.orientation&&b({borderRight:"1px solid ".concat((t.vars||t).palette.grey[400])},"&.".concat(v.disabled),{borderRight:"1px solid ".concat((t.vars||t).palette.action.disabled)}),"contained"===n.variant&&"vertical"===n.orientation&&b({borderBottom:"1px solid ".concat((t.vars||t).palette.grey[400])},"&.".concat(v.disabled),{borderBottom:"1px solid ".concat((t.vars||t).palette.action.disabled)}),"contained"===n.variant&&"inherit"!==n.color&&{borderColor:(t.vars||t).palette[n.color].dark},{"&:hover":Object(i.a)({},"outlined"===n.variant&&"horizontal"===n.orientation&&{borderRightColor:"currentColor"},"outlined"===n.variant&&"vertical"===n.orientation&&{borderBottomColor:"currentColor"})}),"&:hover":Object(i.a)({},"contained"===n.variant&&{boxShadow:"none"})},"contained"===n.variant&&{boxShadow:"none"})))})),_=o.forwardRef((function(e,t){var n=Object(f.a)({props:e,name:"MuiButtonGroup"}),u=n.children,l=n.className,d=n.color,p=void 0===d?"primary":d,v=n.component,y=void 0===v?"div":v,b=n.disabled,_=void 0!==b&&b,S=n.disableElevation,O=void 0!==S&&S,k=n.disableFocusRipple,E=void 0!==k&&k,j=n.disableRipple,T=void 0!==j&&j,C=n.fullWidth,A=void 0!==C&&C,P=n.orientation,M=void 0===P?"horizontal":P,I=n.size,R=void 0===I?"medium":I,D=n.variant,L=void 0===D?"outlined":D,N=Object(r.a)(n,x),F=Object(i.a)({},n,{color:p,component:y,disabled:_,disableElevation:O,disableFocusRipple:E,disableRipple:T,fullWidth:A,orientation:M,size:R,variant:L}),B=function(e){var t=e.classes,n=e.color,r=e.disabled,i=e.disableElevation,o=e.fullWidth,a=e.orientation,u=e.variant,l={root:["root",u,"vertical"===a&&"vertical",o&&"fullWidth",i&&"disableElevation"],grouped:["grouped","grouped".concat(Object(c.a)(a)),"grouped".concat(Object(c.a)(u)),"grouped".concat(Object(c.a)(u)).concat(Object(c.a)(a)),"grouped".concat(Object(c.a)(u)).concat(Object(c.a)(n)),r&&"disabled"]};return Object(s.a)(l,h,t)}(F),U=o.useMemo((function(){return{className:B.grouped,color:p,disabled:_,disableElevation:O,disableFocusRipple:E,disableRipple:T,fullWidth:A,size:R,variant:L}}),[p,_,O,E,T,A,R,L,B.grouped]);return Object(m.jsx)(w,Object(i.a)({as:y,role:"group",className:Object(a.default)(B.root,l),ref:t,ownerState:F},N,{children:Object(m.jsx)(g.a.Provider,{value:U,children:u})}))}));t.a=_},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(17),s=n(158),u=n(177),c=n(887),l=n(18),f=n(20),d=n(15),p=n(138),h=n(152);function v(e){return Object(p.a)("MuiToggleButton",e)}var g=Object(h.a)("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge"]),m=n(5);function y(e){return(y="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 b(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==y(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===y(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],w=Object(d.a)(c.a,{name:"MuiToggleButton",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t["size".concat(Object(l.a)(n.size))]]}})((function(e){var t,n=e.theme,r=e.ownerState,o="standard"===r.color?n.palette.text.primary:n.palette[r.color].main;return n.vars&&(o="standard"===r.color?n.vars.palette.text.primary:n.vars.palette[r.color].main,t="standard"===r.color?n.vars.palette.text.primaryChannel:n.vars.palette[r.color].mainChannel),Object(i.a)({},n.typography.button,{borderRadius:(n.vars||n).shape.borderRadius,padding:11,border:"1px solid ".concat((n.vars||n).palette.divider),color:(n.vars||n).palette.action.active},r.fullWidth&&{width:"100%"},b(b(b({},"&.".concat(g.disabled),{color:(n.vars||n).palette.action.disabled,border:"1px solid ".concat((n.vars||n).palette.action.disabledBackground)}),"&:hover",{textDecoration:"none",backgroundColor:n.vars?"rgba(".concat(n.vars.palette.text.primaryChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):Object(u.a)(n.palette.text.primary,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}),"&.".concat(g.selected),{color:o,backgroundColor:n.vars?"rgba(".concat(t," / ").concat(n.vars.palette.action.selectedOpacity,")"):Object(u.a)(o,n.palette.action.selectedOpacity),"&:hover":{backgroundColor:n.vars?"rgba(".concat(t," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.hoverOpacity,"))"):Object(u.a)(o,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:n.vars?"rgba(".concat(t," / ").concat(n.vars.palette.action.selectedOpacity,")"):Object(u.a)(o,n.palette.action.selectedOpacity)}}}),"small"===r.size&&{padding:7,fontSize:n.typography.pxToRem(13)},"large"===r.size&&{padding:15,fontSize:n.typography.pxToRem(15)})})),_=o.forwardRef((function(e,t){var n=Object(f.a)({props:e,name:"MuiToggleButton"}),o=n.children,u=n.className,c=n.color,d=void 0===c?"standard":c,p=n.disabled,h=void 0!==p&&p,g=n.disableFocusRipple,y=void 0!==g&&g,b=n.fullWidth,_=void 0!==b&&b,S=n.onChange,O=n.onClick,k=n.selected,E=n.size,j=void 0===E?"medium":E,T=n.value,C=Object(r.a)(n,x),A=Object(i.a)({},n,{color:d,disabled:h,disableFocusRipple:y,fullWidth:_,size:j}),P=function(e){var t=e.classes,n=e.fullWidth,r=e.selected,i=e.disabled,o=e.size,a=e.color,u={root:["root",r&&"selected",i&&"disabled",n&&"fullWidth","size".concat(Object(l.a)(o)),a]};return Object(s.a)(u,v,t)}(A);return Object(m.jsx)(w,Object(i.a)({className:Object(a.default)(P.root,u),disabled:h,focusRipple:!y,ref:t,onClick:function(e){O&&(O(e,T),e.defaultPrevented)||S&&S(e,T)},onChange:S,value:T,ownerState:A,"aria-pressed":k},C,{children:o}))}));t.a=_},function(e,t,n){"use strict";var r=n(6),i=n(16),o=n(2),a=n(885),s=n(1648),u=n(185),c=n(133),l=n(155),f=n(134),d=n(120),p=n(76),h=n(137),v=n(17),g=n(15),m=n(18),y=n(5);function b(e){return(b="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 x(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==b(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===b(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=["anchor","classes","className","width","style"],_=Object(g.a)("div")((function(e){var t=e.theme,n=e.ownerState;return Object(r.a)({position:"fixed",top:0,left:0,bottom:0,zIndex:t.zIndex.drawer-1},"left"===n.anchor&&{right:"auto"},"right"===n.anchor&&{left:"auto",right:0},"top"===n.anchor&&{bottom:"auto",right:0},"bottom"===n.anchor&&{top:"auto",bottom:0,right:0})})),S=o.forwardRef((function(e,t){var n=e.anchor,o=e.classes,a=void 0===o?{}:o,s=e.className,c=e.width,l=e.style,f=Object(i.a)(e,w),d=e;return Object(y.jsx)(_,Object(r.a)({className:Object(v.default)("PrivateSwipeArea-root",a.root,a["anchor".concat(Object(m.a)(n))],s),ref:t,style:Object(r.a)(x({},Object(u.c)(n)?"width":"height",c),l),ownerState:d},f))}));function O(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var E=["BackdropProps"],j=["anchor","disableBackdropTransition","disableDiscovery","disableSwipeToOpen","hideBackdrop","hysteresis","minFlingVelocity","ModalProps","onClose","onOpen","open","PaperProps","SwipeAreaProps","swipeAreaWidth","transitionDuration","variant"],T=null;function C(e,t,n){return"right"===e?n.body.offsetWidth-t[0].pageX:t[0].pageX}function A(e,t,n){return"bottom"===e?n.innerHeight-t[0].clientY:t[0].clientY}function P(e,t){return e?t.clientWidth:t.clientHeight}function M(e,t,n,r){return Math.min(Math.max(n?t-e:r+t-e,0),r)}var I="undefined"!=typeof navigator&&/iPad|iPhone|iPod/.test(navigator.userAgent),R=o.forwardRef((function(e,t){var n=Object(a.a)({name:"MuiSwipeableDrawer",props:e}),v=Object(p.a)(),g={enter:v.transitions.duration.enteringScreen,exit:v.transitions.duration.leavingScreen},m=n.anchor,b=void 0===m?"left":m,x=n.disableBackdropTransition,w=void 0!==x&&x,_=n.disableDiscovery,k=void 0!==_&&_,R=n.disableSwipeToOpen,D=void 0===R?I:R,L=n.hideBackdrop,N=n.hysteresis,F=void 0===N?.52:N,B=n.minFlingVelocity,U=void 0===B?450:B,z=n.ModalProps,V=(void 0===z?{}:z).BackdropProps,H=n.onClose,W=n.onOpen,q=n.open,G=n.PaperProps,Y=void 0===G?{}:G,K=n.SwipeAreaProps,$=n.swipeAreaWidth,X=void 0===$?20:$,Q=n.transitionDuration,Z=void 0===Q?g:Q,J=n.variant,ee=void 0===J?"temporary":J,te=Object(i.a)(n.ModalProps,E),ne=Object(i.a)(n,j),re=O(o.useState(!1),2),ie=re[0],oe=re[1],ae=o.useRef({isSwiping:null}),se=o.useRef(),ue=o.useRef(),ce=o.useRef(),le=o.useRef(!1),fe=o.useRef();Object(d.a)((function(){fe.current=null}),[q]);var de=o.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.mode,r=void 0===n?null:n,i=t.changeTransition,o=void 0===i||i,a=Object(u.b)(v,b),s=-1!==["right","bottom"].indexOf(a)?1:-1,c=Object(u.c)(b),l=c?"translate(".concat(s*e,"px, 0)"):"translate(0, ".concat(s*e,"px)"),f=ce.current.style;f.webkitTransform=l,f.transform=l;var d="";if(r&&(d=v.transitions.create("all",Object(h.a)({easing:void 0,style:void 0,timeout:Z},{mode:r}))),o&&(f.webkitTransition=d,f.transition=d),!w&&!L){var p=ue.current.style;p.opacity=1-e/P(c,ce.current),o&&(p.webkitTransition=d,p.transition=d)}}),[b,w,L,v,Z]),pe=Object(f.a)((function(e){if(le.current)if(T=null,le.current=!1,oe(!1),ae.current.isSwiping){ae.current.isSwiping=null;var t,n=Object(u.b)(v,b),r=Object(u.c)(b);t=r?C(n,e.changedTouches,Object(c.a)(e.currentTarget)):A(n,e.changedTouches,Object(l.a)(e.currentTarget));var i=r?ae.current.startX:ae.current.startY,o=P(r,ce.current),a=M(t,i,q,o),s=a/o;Math.abs(ae.current.velocity)>U&&(fe.current=1e3*Math.abs((o-a)/ae.current.velocity)),q?ae.current.velocity>U||s>F?H():de(0,{mode:"exit"}):ae.current.velocity<-U||1-s>F?W():de(P(r,ce.current),{mode:"enter"})}else ae.current.isSwiping=null})),he=Object(f.a)((function(e){if(ce.current&&le.current&&(null===T||T===ae.current)){var t=Object(u.b)(v,b),n=Object(u.c)(b),r=C(t,e.touches,Object(c.a)(e.currentTarget)),i=A(t,e.touches,Object(l.a)(e.currentTarget));if(q&&ce.current.contains(e.target)&&null===T){if(function(e){var t=e.domTreeShapes,n=e.start,r=e.current,i=e.anchor,o={x:"scrollLeft",y:"scrollTop"},a={x:"scrollWidth",y:"scrollHeight"},s={x:"clientWidth",y:"clientHeight"};return t.some((function(e){var t=r>=n;"top"!==i&&"left"!==i||(t=!t);var u="left"===i||"right"===i?"x":"y",c=Math.round(e[o[u]]),l=c>0,f=c+e[s[u]]<e[a[u]];return!!(t&&f||!t&&l)}))}({domTreeShapes:function(e,t){for(var n=[];e&&e!==t.parentElement;){var r=Object(l.a)(t).getComputedStyle(e);"absolute"===r.getPropertyValue("position")||"hidden"===r.getPropertyValue("overflow-x")||(e.clientWidth>0&&e.scrollWidth>e.clientWidth||e.clientHeight>0&&e.scrollHeight>e.clientHeight)&&n.push(e),e=e.parentElement}return n}(e.target,ce.current),start:n?ae.current.startX:ae.current.startY,current:n?r:i,anchor:b}))return void(T=!0);T=ae.current}if(null==ae.current.isSwiping){var o=Math.abs(r-ae.current.startX),a=Math.abs(i-ae.current.startY),s=n?o>a&&o>3:a>o&&a>3;if(s&&e.cancelable&&e.preventDefault(),!0===s||(n?a>3:o>3)){if(ae.current.isSwiping=s,!s)return void pe(e);ae.current.startX=r,ae.current.startY=i,k||q||(n?ae.current.startX-=20:ae.current.startY-=20)}}if(ae.current.isSwiping){var f=P(n,ce.current),d=n?ae.current.startX:ae.current.startY;q&&!ae.current.paperHit&&(d=Math.min(d,f));var p=M(n?r:i,d,q,f);if(q)if(ae.current.paperHit)0===p&&(ae.current.startX=r,ae.current.startY=i);else{if(!(n?r<f:i<f))return;ae.current.paperHit=!0,ae.current.startX=r,ae.current.startY=i}null===ae.current.lastTranslate&&(ae.current.lastTranslate=p,ae.current.lastTime=performance.now()+1);var h=(p-ae.current.lastTranslate)/(performance.now()-ae.current.lastTime)*1e3;ae.current.velocity=.4*ae.current.velocity+.6*h,ae.current.lastTranslate=p,ae.current.lastTime=performance.now(),e.cancelable&&e.preventDefault(),de(p)}}})),ve=Object(f.a)((function(e){if(!e.defaultPrevented&&!e.defaultMuiPrevented&&(!q||!L&&ue.current.contains(e.target)||ce.current.contains(e.target))){var t=Object(u.b)(v,b),n=Object(u.c)(b),r=C(t,e.touches,Object(c.a)(e.currentTarget)),i=A(t,e.touches,Object(l.a)(e.currentTarget));if(!q){if(D||e.target!==se.current)return;if(n){if(r>X)return}else if(i>X)return}e.defaultMuiPrevented=!0,T=null,ae.current.startX=r,ae.current.startY=i,oe(!0),!q&&ce.current&&de(P(n,ce.current)+(k?15:-20),{changeTransition:!1}),ae.current.velocity=0,ae.current.lastTime=null,ae.current.lastTranslate=null,ae.current.paperHit=!1,le.current=!0}}));return o.useEffect((function(){if("temporary"===ee){var e=Object(c.a)(ce.current);return e.addEventListener("touchstart",ve),e.addEventListener("touchmove",he,{passive:!q}),e.addEventListener("touchend",pe),function(){e.removeEventListener("touchstart",ve),e.removeEventListener("touchmove",he,{passive:!q}),e.removeEventListener("touchend",pe)}}}),[ee,q,ve,he,pe]),o.useEffect((function(){return function(){T===ae.current&&(T=null)}}),[]),o.useEffect((function(){q||oe(!1)}),[q]),Object(y.jsxs)(o.Fragment,{children:[Object(y.jsx)(u.a,Object(r.a)({open:!("temporary"!==ee||!ie)||q,variant:ee,ModalProps:Object(r.a)({BackdropProps:Object(r.a)({},V,{ref:ue})},te),hideBackdrop:L,PaperProps:Object(r.a)({},Y,{style:Object(r.a)({pointerEvents:"temporary"!==ee||q?"":"none"},Y.style),ref:ce}),anchor:b,transitionDuration:fe.current||Z,onClose:H,ref:t},ne)),!D&&"temporary"===ee&&Object(y.jsx)(s.a,{children:Object(y.jsx)(S,Object(r.a)({anchor:b,ref:se,width:X},K))})]})}));t.a=R},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(17),s=n(158),u=n(15),c=n(20),l=n(18),f=n(492),d=n(138),p=n(152);function h(e){return Object(d.a)("MuiAppBar",e)}Object(p.a)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);var v=n(5),g=["className","color","enableColorOnDark","position"],m=function(e,t){return"".concat(null==e?void 0:e.replace(")",""),", ").concat(t,")")},y=Object(u.a)(f.a,{name:"MuiAppBar",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t["position".concat(Object(l.a)(n.position))],t["color".concat(Object(l.a)(n.color))]]}})((function(e){var t=e.theme,n=e.ownerState,r="light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[900];return Object(i.a)({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===n.position&&{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===n.position&&{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"sticky"===n.position&&{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"static"===n.position&&{position:"static"},"relative"===n.position&&{position:"relative"},!t.vars&&Object(i.a)({},"default"===n.color&&{backgroundColor:r,color:t.palette.getContrastText(r)},n.color&&"default"!==n.color&&"inherit"!==n.color&&"transparent"!==n.color&&{backgroundColor:t.palette[n.color].main,color:t.palette[n.color].contrastText},"inherit"===n.color&&{color:"inherit"},"dark"===t.palette.mode&&!n.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===n.color&&Object(i.a)({backgroundColor:"transparent",color:"inherit"},"dark"===t.palette.mode&&{backgroundImage:"none"})),t.vars&&Object(i.a)({},"default"===n.color&&{"--AppBar-background":n.enableColorOnDark?t.vars.palette.AppBar.defaultBg:m(t.vars.palette.AppBar.darkBg,t.vars.palette.AppBar.defaultBg),"--AppBar-color":n.enableColorOnDark?t.vars.palette.text.primary:m(t.vars.palette.AppBar.darkColor,t.vars.palette.text.primary)},n.color&&!n.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":n.enableColorOnDark?t.vars.palette[n.color].main:m(t.vars.palette.AppBar.darkBg,t.vars.palette[n.color].main),"--AppBar-color":n.enableColorOnDark?t.vars.palette[n.color].contrastText:m(t.vars.palette.AppBar.darkColor,t.vars.palette[n.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:"inherit"===n.color?"inherit":"var(--AppBar-color)"},"transparent"===n.color&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))})),b=o.forwardRef((function(e,t){var n=Object(c.a)({props:e,name:"MuiAppBar"}),o=n.className,u=n.color,f=void 0===u?"primary":u,d=n.enableColorOnDark,p=void 0!==d&&d,m=n.position,b=void 0===m?"fixed":m,x=Object(r.a)(n,g),w=Object(i.a)({},n,{color:f,position:b,enableColorOnDark:p}),_=function(e){var t=e.color,n=e.position,r=e.classes,i={root:["root","color".concat(Object(l.a)(t)),"position".concat(Object(l.a)(n))]};return Object(s.a)(i,h,r)}(w);return Object(v.jsx)(y,Object(i.a)({square:!0,component:"header",ownerState:w,elevation:4,className:Object(a.default)(_.root,o,"fixed"===b&&"mui-fixed"),ref:t},x))}));t.a=b},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(17),s=n(158),u=n(887),c=n(18),l=n(20),f=n(138),d=n(152);function p(e){return Object(f.a)("MuiFab",e)}var h=Object(d.a)("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),v=n(15),g=n(5);function m(e){return(m="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 y(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==m(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===m(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],x=Object(v.a)(u.a,{name:"MuiFab",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],t["size".concat(Object(c.a)(n.size))],"inherit"===n.color&&t.colorInherit,t[Object(c.a)(n.size)],t[n.color]]}})((function(e){var t,n,r=e.theme,o=e.ownerState;return Object(i.a)({},r.typography.button,y(y({minHeight:36,transition:r.transitions.create(["background-color","box-shadow","border-color"],{duration:r.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(r.vars||r).zIndex.fab,boxShadow:(r.vars||r).shadows[6],"&:active":{boxShadow:(r.vars||r).shadows[12]},color:r.vars?r.vars.palette.text.primary:null==(t=(n=r.palette).getContrastText)?void 0:t.call(n,r.palette.grey[300]),backgroundColor:(r.vars||r).palette.grey[300],"&:hover":{backgroundColor:(r.vars||r).palette.grey.A100,"@media (hover: none)":{backgroundColor:(r.vars||r).palette.grey[300]},textDecoration:"none"}},"&.".concat(h.focusVisible),{boxShadow:(r.vars||r).shadows[6]}),"&.".concat(h.disabled),{color:(r.vars||r).palette.action.disabled,boxShadow:(r.vars||r).shadows[0],backgroundColor:(r.vars||r).palette.action.disabledBackground}),"small"===o.size&&{width:40,height:40},"medium"===o.size&&{width:48,height:48},"extended"===o.variant&&{borderRadius:24,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},"extended"===o.variant&&"small"===o.size&&{width:"auto",padding:"0 8px",borderRadius:17,minWidth:34,height:34},"extended"===o.variant&&"medium"===o.size&&{width:"auto",padding:"0 16px",borderRadius:20,minWidth:40,height:40},"inherit"===o.color&&{color:"inherit"})}),(function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({},"inherit"!==n.color&&"default"!==n.color&&null!=(t.vars||t).palette[n.color]&&{color:(t.vars||t).palette[n.color].contrastText,backgroundColor:(t.vars||t).palette[n.color].main,"&:hover":{backgroundColor:(t.vars||t).palette[n.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[n.color].main}}})})),w=o.forwardRef((function(e,t){var n=Object(l.a)({props:e,name:"MuiFab"}),o=n.children,u=n.className,f=n.color,d=void 0===f?"default":f,h=n.component,v=void 0===h?"button":h,m=n.disabled,y=void 0!==m&&m,w=n.disableFocusRipple,_=void 0!==w&&w,S=n.focusVisibleClassName,O=n.size,k=void 0===O?"large":O,E=n.variant,j=void 0===E?"circular":E,T=Object(r.a)(n,b),C=Object(i.a)({},n,{color:d,component:v,disabled:y,disableFocusRipple:_,size:k,variant:j}),A=function(e){var t=e.color,n=e.variant,r=e.classes,i=e.size,o={root:["root",n,"size".concat(Object(c.a)(i)),"inherit"===t?"colorInherit":t]};return Object(s.a)(o,p,r)}(C);return Object(g.jsx)(x,Object(i.a)({className:Object(a.default)(A.root,u),component:v,disabled:y,focusRipple:!_,focusVisibleClassName:Object(a.default)(A.focusVisible,S),ownerState:C,ref:t},T,{children:o}))}));t.a=w},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(158),a=n(17),s=n(2),u=(n(153),n(511)),c=n(15),l=n(20),f=n(210),d=n(138),p=n(152);function h(e){return Object(d.a)("MuiImageListItem",e)}var v=Object(p.a)("MuiImageListItem",["root","img","standard","woven","masonry","quilted"]),g=n(5);function m(e){return(m="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 y(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==m(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===m(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=["children","className","cols","component","rows","style"],x=Object(c.a)("li",{name:"MuiImageListItem",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[y({},"& .".concat(v.img),t.img),t.root,t[n.variant]]}})((function(e){var t=e.ownerState;return Object(i.a)({display:"block",position:"relative"},"standard"===t.variant&&{display:"flex",flexDirection:"column"},"woven"===t.variant&&{height:"100%",alignSelf:"center","&:nth-of-type(even)":{height:"70%"}},y({},"& .".concat(v.img),Object(i.a)({objectFit:"cover",width:"100%",height:"100%",display:"block"},"standard"===t.variant&&{height:"auto",flexGrow:1})))})),w=s.forwardRef((function(e,t){var n=Object(l.a)({props:e,name:"MuiImageListItem"}),c=n.children,d=n.className,p=n.cols,v=void 0===p?1:p,m=n.component,y=void 0===m?"li":m,w=n.rows,_=void 0===w?1:w,S=n.style,O=Object(r.a)(n,b),k=s.useContext(u.a),E=k.rowHeight,j=void 0===E?"auto":E,T=k.gap,C=k.variant,A="auto";"woven"===C?A=void 0:"auto"!==j&&(A=j*_+T*(_-1));var P=Object(i.a)({},n,{cols:v,component:y,gap:T,rowHeight:j,rows:_,variant:C}),M=function(e){var t=e.classes,n={root:["root",e.variant],img:["img"]};return Object(o.a)(n,h,t)}(P);return Object(g.jsx)(x,Object(i.a)({as:y,className:Object(a.default)(M.root,M[C],d),ref:t,style:Object(i.a)({height:A,gridColumnEnd:"masonry"!==C?"span ".concat(v):void 0,gridRowEnd:"masonry"!==C?"span ".concat(_):void 0,marginBottom:"masonry"===C?T:void 0},S),ownerState:P},O,{children:s.Children.map(c,(function(e){return s.isValidElement(e)?"img"===e.type||Object(f.a)(e,["Image"])?s.cloneElement(e,{className:Object(a.default)(M.img,e.props.className)}):e:null}))}))}));t.a=w},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(158),a=n(17),s=n(2),u=n(15),c=n(20),l=n(138),f=n(152);function d(e){return Object(l.a)("MuiImageList",e)}Object(f.a)("MuiImageList",["root","masonry","quilted","standard","woven"]);var p=n(511),h=n(5),v=["children","className","cols","component","rowHeight","gap","style","variant"],g=Object(u.a)("ul",{name:"MuiImageList",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant]]}})((function(e){var t=e.ownerState;return Object(i.a)({display:"grid",overflowY:"auto",listStyle:"none",padding:0,WebkitOverflowScrolling:"touch"},"masonry"===t.variant&&{display:"block"})})),m=s.forwardRef((function(e,t){var n=Object(c.a)({props:e,name:"MuiImageList"}),u=n.children,l=n.className,f=n.cols,m=void 0===f?2:f,y=n.component,b=void 0===y?"ul":y,x=n.rowHeight,w=void 0===x?"auto":x,_=n.gap,S=void 0===_?4:_,O=n.style,k=n.variant,E=void 0===k?"standard":k,j=Object(r.a)(n,v),T=s.useMemo((function(){return{rowHeight:w,gap:S,variant:E}}),[w,S,E]);s.useEffect((function(){0}),[]);var C="masonry"===E?Object(i.a)({columnCount:m,columnGap:S},O):Object(i.a)({gridTemplateColumns:"repeat(".concat(m,", 1fr)"),gap:S},O),A=Object(i.a)({},n,{component:b,gap:S,rowHeight:w,variant:E}),P=function(e){var t=e.classes,n={root:["root",e.variant]};return Object(o.a)(n,d,t)}(A);return Object(h.jsx)(g,Object(i.a)({as:b,className:Object(a.default)(P.root,P[E],l),ref:t,style:C,ownerState:A},j,{children:Object(h.jsx)(p.a.Provider,{value:T,children:u})}))}));t.a=m},function(e,t,n){"use strict";var r=n(16),i=n(6),o=n(2),a=n(17),s=n(158),u=n(493),c=n(20),l=n(15),f=n(138),d=n(152);function p(e){return Object(f.a)("MuiTable",e)}Object(d.a)("MuiTable",["root","stickyHeader"]);var h=n(5),v=["className","component","padding","size","stickyHeader"],g=Object(l.a)("table",{name:"MuiTable",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.stickyHeader&&t.stickyHeader]}})((function(e){var t=e.theme,n=e.ownerState;return Object(i.a)({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Object(i.a)({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},n.stickyHeader&&{borderCollapse:"separate"})})),m=o.forwardRef((function(e,t){var n=Object(c.a)({props:e,name:"MuiTable"}),l=n.className,f=n.component,d=void 0===f?"table":f,m=n.padding,y=void 0===m?"normal":m,b=n.size,x=void 0===b?"medium":b,w=n.stickyHeader,_=void 0!==w&&w,S=Object(r.a)(n,v),O=Object(i.a)({},n,{component:d,padding:y,size:x,stickyHeader:_}),k=function(e){var t=e.classes,n={root:["root",e.stickyHeader&&"stickyHeader"]};return Object(s.a)(n,p,t)}(O),E=o.useMemo((function(){return{padding:y,size:x,stickyHeader:_}}),[y,x,_]);return Object(h.jsx)(u.a.Provider,{value:E,children:Object(h.jsx)(g,Object(i.a)({as:d,role:"table"===d?null:"table",ref:t,className:Object(a.default)(k.root,l),ownerState:O},S))})}));t.a=m},function(e,t,n){"use strict";var r=n(6),i=n(16),o=n(2),a=n(17),s=n(158),u=n(277),c=n(20),l=n(15),f=n(138),d=n(152);function p(e){return Object(f.a)("MuiTableBody",e)}Object(d.a)("MuiTableBody",["root"]);var h=n(5),v=["className","component"],g=Object(l.a)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:function(e,t){return t.root}})({display:"table-row-group"}),m={variant:"body"},y=o.forwardRef((function(e,t){var n=Object(c.a)({props:e,name:"MuiTableBody"}),o=n.className,l=n.component,f=void 0===l?"tbody":l,d=Object(i.a)(n,v),y=Object(r.a)({},n,{component:f}),b=function(e){var t=e.classes;return Object(s.a)({root:["root"]},p,t)}(y);return Object(h.jsx)(u.a.Provider,{value:m,children:Object(h.jsx)(g,Object(r.a)({className:Object(a.default)(b.root,o),as:f,ref:t,role:"tbody"===f?null:"rowgroup",ownerState:y},d))})}));t.a=y},function(e,t,n){"use strict";var r=n(6),i=n(16),o=n(2),a=n(17),s=n(158),u=n(177),c=n(277),l=n(20),f=n(15),d=n(138),p=n(152);function h(e){return Object(d.a)("MuiTableRow",e)}var v=Object(p.a)("MuiTableRow",["root","selected","hover","head","footer"]),g=n(5);function m(e){return(m="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 y(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==m(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===m(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=["className","component","hover","selected"],x=Object(f.a)("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.head&&t.head,n.footer&&t.footer]}})((function(e){var t=e.theme;return y(y({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0},"&.".concat(v.hover,":hover"),{backgroundColor:(t.vars||t).palette.action.hover}),"&.".concat(v.selected),{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):Object(u.a)(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):Object(u.a)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}})})),w=o.forwardRef((function(e,t){var n=Object(l.a)({props:e,name:"MuiTableRow"}),u=n.className,f=n.component,d=void 0===f?"tr":f,p=n.hover,v=void 0!==p&&p,m=n.selected,y=void 0!==m&&m,w=Object(i.a)(n,b),_=o.useContext(c.a),S=Object(r.a)({},n,{component:d,hover:v,selected:y,head:_&&"head"===_.variant,footer:_&&"footer"===_.variant}),O=function(e){var t=e.classes,n={root:["root",e.selected&&"selected",e.hover&&"hover",e.head&&"head",e.footer&&"footer"]};return Object(s.a)(n,h,t)}(S);return Object(g.jsx)(x,Object(r.a)({as:d,ref:t,className:Object(a.default)(O.root,u),role:"tr"===d?null:"row",ownerState:S},w))}));t.a=w},function(e,t,n){"use strict";var r=n(6),i=n(16),o=n(2),a=n(17),s=n(158),u=n(277),c=n(20),l=n(15),f=n(138),d=n(152);function p(e){return Object(f.a)("MuiTableHead",e)}Object(d.a)("MuiTableHead",["root"]);var h=n(5),v=["className","component"],g=Object(l.a)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:function(e,t){return t.root}})({display:"table-header-group"}),m={variant:"head"},y=o.forwardRef((function(e,t){var n=Object(c.a)({props:e,name:"MuiTableHead"}),o=n.className,l=n.component,f=void 0===l?"thead":l,d=Object(i.a)(n,v),y=Object(r.a)({},n,{component:f}),b=function(e){var t=e.classes;return Object(s.a)({root:["root"]},p,t)}(y);return Object(h.jsx)(u.a.Provider,{value:m,children:Object(h.jsx)(g,Object(r.a)({as:f,className:Object(a.default)(b.root,o),ref:t,role:"thead"===f?null:"rowgroup",ownerState:y},d))})}));t.a=y},function(e,t,n){"use strict";var r=n(361),i=n(43),o=n(321),a=n(21);function s(e){return Object(a.a)(1,arguments),Object(r.a)(e,function(e,t){Object(a.a)(2,arguments);var n=Object(i.a)(t);return Object(o.a)(e,-n)}(Date.now(),1))}n.d(t,"a",(function(){return s}))},function(e,t,n){"use strict";var r=n(322),i=n(21);function o(e,t){return Object(i.a)(1,arguments),function(e,t,n){Object(i.a)(2,arguments);var o=Object(r.a)(e,n),a=Object(r.a)(t,n);return o.getTime()===a.getTime()}(e,Date.now(),t)}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";var r=n(2),i="object"==typeof window;t.a=function(e,t,n){if(!i)return[t,function(){}];var o=Object(r.useState)((function(){try{var r=localStorage.getItem(e);return"string"!=typeof r?(localStorage.setItem(e,n?String(t):JSON.stringify(t)),t):n?r:JSON.parse(r||"null")}catch(e){return t}})),a=o[0],s=o[1];return Object(r.useEffect)((function(){try{var t=n?String(a):JSON.stringify(a);localStorage.setItem(e,t)}catch(e){}}),[a]),[a,s]}}]]);
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.17 |
proxy
|
phpinfo
|
Settings