PageSourceSearch

https://footgrail.netlify.app/static/js/2.67144bb1.chunk.js

js footgrail.netlify.app collected 2026-10-03 10:44:44 UTC 1,604,038 bytes, 3 lines download raw bytes

1/*! For license information please see 2.67144bb1.chunk.js.LICENSE.txt */
2(this["webpackJsonpyour-app"]=this["webpackJsonpyour-app"]||[]).push([[2],[function(t,e,n){"use strict";t.exports=n(124)},function(t,e,n){t.exports=n(137)()},function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(t,e)||function(t,e){if(t){if("string"===typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t,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.")}()}n.d(e,"a",(function(){return i}))},function(t,e,n){t.exports=n(158)},function(t,e,n){"use strict";function r(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(l){return void n(l)}s.done?e(u):Promise.resolve(u).then(r,i)}function i(t){return function(){var e=this,n=arguments;return new Promise((function(i,o){var a=t.apply(e,n);function s(t){r(a,i,o,s,u,"next",t)}function u(t){r(a,i,o,s,u,"throw",t)}s(void 0)}))}}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(51);function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){Object(r.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}},function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return i})),n.d(e,"__assign",(function(){return o})),n.d(e,"__rest",(function(){return a})),n.d(e,"__decorate",(function(){return s})),n.d(e,"__param",(function(){return u})),n.d(e,"__metadata",(function(){return l})),n.d(e,"__awaiter",(function(){return c})),n.d(e,"__generator",(function(){return f})),n.d(e,"__exportStar",(function(){return h})),n.d(e,"__values",(function(){return d})),n.d(e,"__read",(function(){return p})),n.d(e,"__spread",(function(){return v})),n.d(e,"__spreadArrays",(function(){return m})),n.d(e,"__await",(function(){return g})),n.d(e,"__asyncGenerator",(function(){return y})),n.d(e,"__asyncDelegator",(function(){return b})),n.d(e,"__asyncValues",(function(){return w}
2)),n.d(e,"__makeTemplateObject",(function(){return _})),n.d(e,"__importStar",(function(){return x})),n.d(e,"__importDefault",(function(){return E})),n.d(e,"__classPrivateFieldGet",(function(){return k})),n.d(e,"__classPrivateFieldSet",(function(){return T}));var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function s(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function u(t,e){return function(n,r){e(n,r,t)}}function l(t,e){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r.throw(t))}catch(e){o(e)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))}function f(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function h(t,e){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}function d(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function p(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function v(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(p(arguments[e]));return t}function m(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function g(t){return this instanceof g?(this.v=t,this):new g(t)}function y(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){i[t]&&(r[t]=function(e){return new Promise((function(n,r){o.push([t,e,n,r])>1||s(t,e)}))})}function s(t,e){try{(n=i[t](e)).value instanceof g?Promise.resolve(n.value.v).then(u,l):c(o[0][2],n)}catch(r){c(o[0][3],r)}var n}function u(t){s("next",t)}function l(t){s("throw",t)}function c(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function b(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:g(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function w(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=d(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}}function _(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function x(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function E(t){return t&&t.__esModule?t:{default:t}}function k(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function T(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return g})),n.d(e,"c",(function(){return w}));var r=n(26),i=n(14),o=n(0),a=n.n(o),s=n(19),u=(n(1),n(13)),l=n(17),c=n(18),f=function(t){function e(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))||this).history=Object(s.a)(e.props),e}return Object(i.a)(e,t),e.prototype.render=function(){return a.a.createElement(r.b,{history:this.history,children:this.props.children})},e}(a.a.Component);a.a.Component;var h=function(t,e){return"function"===typeof t?t(e):t},d=function(t,e){return"string"===typeof t?Object(s.c)(t,null,null,e):t},p=function(t){return t},v=a.a.forwardRef;"undefined"===typeof v&&(v=p);var m=v((function(t,e){var n=t.innerRef,r=t.navigate,i=t.onClick,o=Object(l.a)(t,["innerRef","navigate","onClick"]),s=o.target,c=Object(u.a)({},o,{onClick:function(t){try{i&&i(t)}catch(e){throw t.preventDefault(),e}t.defaultPrevented||0!==t.button||s&&"_self"!==s||function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}(t)||(t.preventDefault(),r())}});return c.ref=p!==v&&e||n,a.a.createElement("a",c)}));var g=v((function(t,e){var n=t.component,i=void 0===n?m:n,o=t.replace,s=t.to,f=t.innerRef,g=Object(l.a)(t,["component","replace","to","innerRef"]);return a.a.createElement(r.d.Consumer,null,(function(t){t||Object(c.a)(!1);var n=t.history,r=d(h(s,t.location),t.location),l=r?n.createHref(r):"",m=Object(u.a)({},g,{href:l,navigate:function(){var e=h(s,t.location);(o?n.replace:n.push)(e)}});return p!==v?m.ref=e||f:m.innerRef=f,a.a.createElement(i,m)}))})),y=function(t){return t},b=a.a.forwardRef;"undefined"===typeof b&&(b=y);var w=b((function(t,e){var n=t["aria-current"],i=void 0===n?"page":n,o=t.activeClassName,s=void 0===o?"active":o,f=t.activeStyle,p=t.className,v=t.exact,m=t.isActive,w=t.location,_=t.strict,x=t.style,E=t.to,k=t.innerRef,T=Object(l.a)(t,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","strict","style","to","innerRef"]);return a.a.createElement(r.d.Consumer,null,(function(t){t||Object(c.a)(!1);var n=w||t.location,o=d(h(E,n),n),l=o.pathname,S=l&&l.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),O=S?Object(r.e)(n.pathname,{path:S,exact:v,strict:_}):null,A=!!(m?m(O,n):O),C=A?function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.filter((function(t){return t})).join(" ")}(p,s):p,N=A?Object(u.a)({},x,{},f):x,I=Object(u.a)({"aria-current":A&&i||null,className:C,style:N,to:o},T);return y!==b?I.ref=e||k:I.innerRef=k,a.a.createElement(g,I)}))}))},function(t,e,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var o=typeof r;if("string"===o||"number"===o)t.push(r);else if(Array.isArray(r)&&r.length){var a=i.apply(null,r);a&&t.push(a)}else if("object"===o)for(var s in r)n.call(r,s)&&r[s]&&t.push(s)}}return t.join(" ")}
2t.exports?(i.default=i,t.exports=i):void 0===(r=function(){return i}.apply(e,[]))||(t.exports=r)}()},function(t,e,n){"use strict";var r=n(0),i=n.n(r),o=n(8),a=n.n(o),s=n(1),u=n.n(s),l=n(17),c=n(14),f=n(15),h=n.n(f),d=!1,p=i.a.createContext(null),v=function(t){function e(e,n){var r;r=t.call(this,e,n)||this;var i,o=n&&!n.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?o?(i="exited",r.appearStatus="entering"):i="entered":i=e.unmountOnExit||e.mountOnEnter?"unmounted":"exited",r.state={status:i},r.nextCallback=null,r}Object(c.a)(e,t),e.getDerivedStateFromProps=function(t,e){return t.in&&"unmounted"===e.status?{status:"exited"}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(e="entering"):"entering"!==n&&"entered"!==n||(e="exiting")}this.updateStatus(!1,e)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var t,e,n,r=this.props.timeout;return t=e=n=r,null!=r&&"number"!==typeof r&&(t=r.exit,e=r.enter,n=void 0!==r.appear?r.appear:e),{exit:t,enter:e,appear:n}},n.updateStatus=function(t,e){if(void 0===t&&(t=!1),null!==e){this.cancelNextCallback();var n=h.a.findDOMNode(this);"entering"===e?this.performEnter(n,t):this.performExit(n)}else this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(t,e){var n=this,r=this.props.enter,i=this.context?this.context.isMounting:e,o=this.getTimeouts(),a=i?o.appear:o.enter;!e&&!r||d?this.safeSetState({status:"entered"},(function(){n.props.onEntered(t)})):(this.props.onEnter(t,i),this.safeSetState({status:"entering"},(function(){n.props.onEntering(t,i),n.onTransitionEnd(t,a,(function(){n.safeSetState({status:"entered"},(function(){n.props.onEntered(t,i)}))}))})))},n.performExit=function(t){var e=this,n=this.props.exit,r=this.getTimeouts();n&&!d?(this.props.onExit(t),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(t),e.onTransitionEnd(t,r.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(t)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(t)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},n.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,e.nextCallback=null,t(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(t,e,n){this.setNextCallback(n);var r=null==e&&!this.props.addEndListener;t&&!r?(this.props.addEndListener&&this.props.addEndListener(t,this.nextCallback),null!=e&&setTimeout(this.nextCallback,e)):setTimeout(this.nextCallback,0)},n.render=function(){var t=this.state.status;if("unmounted"===t)return null;var e=this.props,n=e.children,r=Object(l.a)(e,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"===typeof n)return i.a.createElement(p.Provider,{value:null},n(t,r));var o=i.a.Children.only(n);return i.a.createElement(p.Provider,{value:null},i.a.cloneElement(o,r))},e}(i.a.Component);function m(){}v.contextType=p,v.propTypes={},v.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:m,onEntering:m,onEntered:m,onExit:m,onExiting:m,onExited:m},v.UNMOUNTED=0,v.EXITED=1,v.ENTERING=2,v.ENTERED=3,v.EXITING=4;var g=v,y=n(11),b=n.n(y),w=n(24),_=n.n(w),x=n(12),E=n.n(x),k=n(68),T=n.n(k),S=T()(),O=T()(),A=function(t){function e(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e=t.call.apply(t,[this].concat(r))||this,E()(b()(e),"referenceNode",void 0),E()(b()(e),"setReferenceNode",(function(t){t&&e.referenceNode!==t&&(e.referenceNode=t,e.forceUpdate())})),e}_()(e,t);var n=e.prototype;return n.componentWillUnmount=function(){this.referenceNode=null},n.render=function(){return r.createElement(S.Provider,{value:this.referenceNode},r.createElement(O.Provider,{value:this.setReferenceNode},this.props.children))},e}(r.Component),C=n(116),N=n.n(C),I=n(29),P=n.n(I),M=n(117),D=n.n(M),R=n(36),L=function(t){return Array.isArray(t)?t[0]:t},j=function(t){if("function"===typeof t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return t.apply(void 0,n)}},F=function(t,e){if("function"===typeof t)return j(t,e);null!=t&&(t.current=e)},U={position:"absolute",top:0,left:0,opacity:0,pointerEvents:"none"},q={},B=function(t){function e(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e=t.call.apply(t,[this].concat(r))||this,E()(b()(e),"state",{data:void 0,placement:void 0}),E()(b()(e),"popperInstance",void 0),E()(b()(e),"popperNode",null),E()(b()(e),"arrowNode",null),E()(b()(e),"setPopperNode",(function(t){t&&e.popperNode!==t&&(F(e.props.innerRef,t),e.popperNode=t,e.updatePopperInstance())})),E()(b()(e),"setArrowNode",(function(t){e.arrowNode=t})),E()(b()(e),"updateStateModifier",{enabled:!0,order:900,fn:function(t){var n=t.placement;return e.setState({data:t,placement:n}),t}}),E()(b()(e),"getOptions",(function(){return{placement:e.props.placement,eventsEnabled:e.props.eventsEnabled,positionFixed:e.props.positionFixed,modifiers:P()({},e.props.modifiers,{arrow:P()({},e.props.modifiers&&e.props.modifiers.arrow,{enabled:!!e.arrowNode,element:e.arrowNode}),applyStyle:{enabled:!1},updateStateModifier:e.updateStateModifier})}})),E()(b()(e),"getPopperStyle",(function(){return e.popperNode&&e.state.data?P()({position:e.state.data.offsets.popper.position},e.state.data.styles):U})),E()(b()(e),"getPopperPlacement",(function(){return e.state.data?e.state.placement:void 0})),E()(b()(e),"getArrowStyle",(function(){return e.arrowNode&&e.state.data?e.state.data.arrowStyles:q})),E()(b()(e),"getOutOfBoundariesState",(function(){return e.state.data?e.state.data.hide:void 0})),E()(b()(e),"destroyPopperInstance",(function(){e.popperInstance&&(e.popperInstance.destroy(),e.popperInstance=null)})),E()(b()(e),"updatePopperInstance",(function(){e.destroyPopperInstance();var t=b()(e).popperNode,n=e.props.referenceElement;n&&t&&(e.popperInstance=new R.a(n,t,e.getOptions()))})),E()(b()(e),"scheduleUpdate",(function(){e.popperInstance&&e.popperInstance.scheduleUpdate()})),e}_()(e,t);var n=e.prototype;return n.componentDidUpdate=function(t,e){this.props.placement===t.placement&&this.props.referenceElement===t.referenceElement&&this.props.positionFixed===t.positionFixed&&D()(this.props.modifiers,t.modifiers,{strict:!0})?this.props.eventsEnabled!==t.eventsEnabled&&this.popperInstance&&(this.props.eventsEnabled?this.popperInstance.enableEventListeners():this.popperInstance.disableEventListeners()):this.updatePopperInstance(),e.placement!==this.state.placement&&this.scheduleUpdate()},n.componentWillUnmount=function(){F(this.props.innerRef,null),this.destroyPopperInstance()},n.render=function(){return L(this.props.children)({ref:this.setPopperNode,style:this.getPopperStyle(),placement:this.getPopperPlacement(),outOfBoundaries:this.getOutOfBoundariesState(),scheduleUpdate:this.scheduleUpdate,arrowProps:{ref:this.setArrowNode,style:this.getArrowStyle()}})},e}(r.Component);E()(B,"defaultProps",{placement:"bottom",eventsEnabled:!0,referenceElement:void 0,positionFixed:!1});R.a.placements;function V(t){var e=t.referenceElement,n=N()(t,["referenceElement"]);
2return r.createElement(S.Consumer,null,(function(t){return r.createElement(B,P()({referenceElement:void 0!==e?e:t},n))}))}var z=n(50),W=n.n(z),H=function(t){function e(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return e=t.call.apply(t,[this].concat(r))||this,E()(b()(e),"refHandler",(function(t){F(e.props.innerRef,t),j(e.props.setReferenceNode,t)})),e}_()(e,t);var n=e.prototype;return n.componentWillUnmount=function(){F(this.props.innerRef,null)},n.render=function(){return W()(Boolean(this.props.setReferenceNode),"`Reference` should not be used outside of a `Manager` component."),L(this.props.children)({ref:this.refHandler})},e}(r.Component);function Y(t){return r.createElement(O.Consumer,null,(function(e){return r.createElement(H,P()({setReferenceNode:e},t))}))}n(114);var G=n(7),K=n(115),X=n.n(K);function $(t){return($="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Z(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Q(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function J(t,e,n){return e&&Q(t.prototype,e),n&&Q(t,n),t}function tt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function et(){return(et=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function nt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function rt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?nt(Object(n),!0).forEach((function(e){tt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function it(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&function(t,e){(Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}(t,e)}function ot(t){return(ot=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function at(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function st(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ut(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?st(t):e}function lt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function ct(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}n.d(e,"a",(function(){return _t})),n.d(e,"b",(function(){return ve})),n.d(e,"c",(function(){return St})),n.d(e,"d",(function(){return Lt})),n.d(e,"e",(function(){return Ht})),n.d(e,"f",(function(){return Gt})),n.d(e,"g",(function(){return Kt})),n.d(e,"h",(function(){return ce})),n.d(e,"i",(function(){return fe})),n.d(e,"j",(function(){return he})),n.d(e,"k",(function(){return pe})),n.d(e,"l",(function(){return me})),n.d(e,"m",(function(){return _t})),n.d(e,"n",(function(){return we})),n.d(e,"o",(function(){return Se})),n.d(e,"p",(function(){return Oe})),n.d(e,"q",(function(){return Ae})),n.d(e,"r",(function(){return Ce})),n.d(e,"s",(function(){return Re})),n.d(e,"t",(function(){return Le})),n.d(e,"u",(function(){return Ie})),n.d(e,"v",(function(){return Pe})),n.d(e,"w",(function(){return Me})),n.d(e,"x",(function(){return De})),n.d(e,"y",(function(){return Ue})),n.d(e,"z",(function(){return qe})),n.d(e,"A",(function(){return Be})),n.d(e,"B",(function(){return ze})),n.d(e,"C",(function(){return Fe}));var ft=function(t){var e=lt(Object(r.useState)(!0),2),n=e[0],o=e[1],s=t.className,u=t.tag,l=t.color,c=t.children,f=t.dismiss,h=a()("alert",l&&"alert-".concat(l),s);return f?i.a.createElement(g,{in:n,timeout:150,unmountOnExit:!0,onExit:function(e){return function(e){return e.classList.add("fade"),t.onClose&&t.onClose()}(e)},onExited:function(e){return t.onClosed&&t.onClosed()}},i.a.createElement(u,{"data-test":"alert",className:h,role:"alert"}
2,c,i.a.createElement("button",{onClick:function(){o(!1)},type:"button",className:"close","data-dismiss":"alert","aria-label":"Close"},i.a.createElement("span",{"aria-hidden":"true"},"\xd7")))):i.a.createElement(u,{"data-test":"alert",className:h,role:"alert"},c)};ft.defaultProps={color:"primary",tag:"div"},ft.propTypes={className:u.a.string,color:u.a.oneOf(["primary","secondary","success","danger","warning","info","light","dark"]),onClose:u.a.func,onClosed:u.a.func,tag:u.a.string};var ht=function(t){function e(){var t,n;Z(this,e);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return tt(st(n=ut(this,(t=ot(e)).call.apply(t,[this].concat(o)))),"state",{isVisible:!1,revealed:!1,countIterations:0}),tt(st(n),"elemRef",i.a.createRef()),tt(st(n),"updatePredicate",(function(){var t=window.innerHeight,e=window.scrollY,r=document.documentElement.offsetHeight,i=n.state.revealed,o=n.elemRef.current;t+e-100>n.getOffset(o)&&e<n.getOffset(o)||t+e-100>n.getOffset(o)+o.clientHeight&&e<n.getOffset(o)+o.clientHeight||t+e===r&&n.getOffset(o)+100>r?n.setState({isVisible:!0,revealed:!0}):i||n.setState({isVisible:!1,revealed:!0})})),tt(st(n),"handleStart",(function(){var t=n.props.onAnimationStart,e=n.state.countIterations;n.setState({countIterations:e+1}),t&&t()})),tt(st(n),"handleIteration",(function(){var t=n.props.onAnimationIteration,e=n.state.countIterations;t&&(n.setState({countIterations:e+1}),t())})),tt(st(n),"handleEnd",(function(){var t=n.props,e=t.onAnimationEnd,r=t.count,i=n.state.countIterations;n.setState({countIterations:i+1}),e&&r===i&&e()})),tt(st(n),"getOffset",(function(t){var e=t.getBoundingClientRect(),n=document.body,r=document.documentElement,i=window.pageYOffset||r.scrollTop||n.scrollTop,o=r.clientTop||n.clientTop||0,a=e.top+i-o;return Math.round(a)})),n}return it(e,r.Component),J(e,[{key:"componentDidMount",value:function(){var t=this.props.reveal;this.setState({isVisible:!t,revealed:!t}),t&&(window.addEventListener("scroll",this.updatePredicate),this.updatePredicate())}},{key:"componentWillUnmount",value:function(){this.props.reveal&&window.removeEventListener("scroll",this.updatePredicate)}},{key:"render",value:function(){var t=this.props,e=t.children,n=t.className,r=t.count,o=t.delay,s=t.duration,u=t.infinite,l=(t.reveal,t.style),c=t.tag,f=t.type,h=at(t,["children","className","count","delay","duration","infinite","reveal","style","tag","type"]),d=this.state,p=d.isVisible,v=d.revealed,m={animationDuration:s,animationDelay:o,animationIterationCount:!u&&r,visibility:p?"visible":"hidden",animationName:f},g=Object.assign(m,l),y=a()(p&&"animated",f&&f,u&&"infinite",n);return i.a.createElement(c,et({"data-test":"animation",className:y,onAnimationEnd:this.handleEnd,onAnimationIteration:this.handleIteration,onAnimationStart:this.handleStart,ref:this.elemRef,style:p&&v?g:{animationName:"none",visibility:"hidden"}},h),e)}}]),e}();ht.propTypes={children:u.a.oneOfType([u.a.arrayOf(u.a.node),u.a.node]),className:u.a.string,count:u.a.number,delay:u.a.string,duration:u.a.oneOfType([u.a.string,u.a.number]),infinite:u.a.bool,onAnimationEnd:u.a.func,onAnimationIteration:u.a.func,onAnimationStart:u.a.func,reveal:u.a.bool,style:u.a.node,tag:u.a.oneOfType([u.a.func,u.a.string]),type:u.a.string},ht.defaultProps={tag:"div",reveal:!1,duration:1,count:1};var dt=function(t){var e=t.tag,n=t.className,r=t.children,o=t.color,s=t.pill,u=at(t,["tag","className","children","color","pill"]),l=a()("badge",o,"badge-".concat(o),!!s&&"badge-pill",n);return i.a.createElement(e,et({"data-test":"badge"},u,{className:l}),r)};dt.propTypes={children:u.a.node,className:u.a.string,color:u.a.string,pill:u.a.bool,tag:u.a.string},dt.defaultProps={tag:"span",color:"default",pill:!1};var pt=function(t){var e=t.tag,n=t.className,r=t.children,o=t.display,s=t.justifyContent,u=t.flex,l=t.alignItems,c=t.alignContent,f=t.alignSelf,h=t.color,d=t.bgColor,p=t.m,v=t.mt,m=t.mr,g=t.mb,y=t.ml,b=t.mx,w=t.my,_=t.p,x=t.pt,E=t.pr,k=t.pb,T=t.pl,S=t.px,O=t.py,A=at(t,["tag","className","children","display","justifyContent","flex","alignItems","alignContent","alignSelf","color","bgColor","m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py"]),C=function(t,e){if(void 0!==t)return"".concat(e,"-").concat(t)},N=a()(o&&"d-".concat(o),s&&"justify-content-".concat(s),u&&"flex-".concat(u),l&&"align-items-".concat(l),c&&"align-content-".concat(c),f&&"align-self-".concat(f),h&&"".concat(h,"-text"),d&&"bg-".concat(d),C(p,"m"),C(v,"mt"),C(m,"mr"),C(g,"mb"),C(y,"ml"),C(b,"mx"),C(w,"my"),C(_,"p"),C(x,"pt"),C(E,"pr"),C(k,"pb"),C(T,"pl"),C(S,"px"),C(O,"py"),n),I=""!==N?N:null;return i.a.createElement(e,et({"data-test":"box"},A,{className:I}),r)};function vt(t,e){var n={};return Object.keys(t).forEach((function(r){-1===e.indexOf(r)&&(n[r]=t[r])})),n}pt.propTypes={alignContent:u.a.string,alignItems:u.a.string,alignSelf:u.a.string,bgColor:u.a.string,children:u.a.node,className:u.a.string,color:u.a.string,display:u.a.string,flex:u.a.string,justifyContent:u.a.string,m:u.a.oneOfType([u.a.number,u.a.string]),mb:u.a.oneOfType([u.a.number,u.a.string]),ml:u.a.oneOfType([u.a.number,u.a.string]),mr:u.a.oneOfType([u.a.number,u.a.string]),mt:u.a.oneOfType([u.a.number,u.a.string]),mx:u.a.oneOfType([u.a.number,u.a.string]),my:u.a.oneOfType([u.a.number,u.a.string]),p:u.a.oneOfType([u.a.number,u.a.string]),pb:u.a.oneOfType([u.a.number,u.a.string]),pl:u.a.oneOfType([u.a.number,u.a.string]),pr:u.a.oneOfType([u.a.number,u.a.string]),pt:u.a.oneOfType([u.a.number,u.a.string]),px:u.a.oneOfType([u.a.number,u.a.string]),py:u.a.oneOfType([u.a.number,u.a.string]),tag:u.a.string},pt.defaultProps={tag:"div"};var mt=27,gt=32,yt=38,bt=40,wt=function(t){return Object.keys(t).reduce((function(e,n){return t[n]&&(e[n]=t[n]),e}),{})};u.a.bool,u.a.node,u.a.string,u.a.string,u.a.bool,u.a.bool;var _t=function(t){var e=t.border,n=t.brand,r=t.className,o=t.fab,s=t.duotone,u=t.fal,l=t.fad,c=t.far,f=t.solid,h=t.fixed,d=t.fas,p=t.flip,v=t.icon,m=t.inverse,g=t.light,y=t.list,b=t.pull,w=t.pulse,_=t.regular,x=t.rotate,E=t.size,k=t.spin,T=t.stack,S=at(t,["border","brand","className","fab","duotone","fal","fad","far","solid","fixed","fas","flip","icon","inverse","light","list","pull","pulse","regular","rotate","size","spin","stack"]),O=a()(_||c?"far":f||d?"fas":g||u?"fal":s||l?"fad":n||o?"fab":"fa",!!y&&"fa-li",!!v&&"fa-".concat(v),!!E&&"fa-".concat(E),!!h&&"fa-fw",!!b&&"fa-pull-".concat(b),!!e&&"fa-border",!!k&&"fa-spin",!!w&&"fa-pulse",!!x&&"fa-rotate-".concat(x),!!p&&"fa-flip-".concat(p),!!m&&"fa-inverse",!!T&&"fa-".concat(T),r);return i.a.createElement("i",et({"data-test":"fa"},S,{className:O}))};function xt(t,e){void 0===e&&(e={});var n=e.insertAt;if(t&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");
2i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(document.createTextNode(t))}}_t.propTypes={icon:u.a.string.isRequired,border:u.a.bool,brand:u.a.bool,className:u.a.string,fab:u.a.bool,fal:u.a.bool,far:u.a.bool,fixed:u.a.bool,flip:u.a.string,inverse:u.a.bool,light:u.a.bool,list:u.a.bool,pull:u.a.string,pulse:u.a.bool,regular:u.a.bool,rotate:u.a.string,size:u.a.string,spin:u.a.bool,stack:u.a.string},_t.defaultProps={border:!1,brand:!1,className:"",fab:!1,fal:!1,far:!1,fixed:!1,flip:"",inverse:!1,light:!1,list:!1,pull:"",pulse:!1,regular:!1,rotate:"",size:"",spin:!1,stack:""},xt(".bc-icons.breadcrumb-item::before,\r\n.bc-icons.breadcrumb-item::after {\r\n  content: none;\r\n}\r\n\r\n.bc-icons.breadcrumb-item + .active.breadcrumb-item::before,\r\n.bc-icons.breadcrumb-item + .active.breadcrumb-item::after{\r\n  content: none;\r\n}\r\n\r\n.bc-icons.breadcrumb-item.active {\r\n  color: #eeeeee;\r\n}\r\n");var Et=function(t){var e=t.active,n=t.appendIcon,r=t.children,o=t.className,s=t.bold,u=t.icon,l=t.iconBrand,c=t.iconClassName,f=t.iconLight,h=t.iconRegular,d=t.iconSize,p=at(t,["active","appendIcon","children","className","bold","icon","iconBrand","iconClassName","iconLight","iconRegular","iconSize"]),v=a()(!!e&&"active",u&&"bc-icons","breadcrumb-item",o),m=a()(n?"mx-2":"mr-2",c);return i.a.createElement("li",et({"data-test":"breadcrumb-item"},p,{className:v}),i.a.createElement((function(t){var e=t.children;return s?i.a.createElement("strong",null,e):e}),null,i.a.createElement((function(){return u?i.a.createElement(i.a.Fragment,null,n&&r,i.a.createElement(_t,{brand:l,className:m,icon:u,light:f,regular:h,size:d}),!n&&r):r}),null)))};Et.propTypes={active:u.a.bool,appendIcon:u.a.bool,bold:u.a.bool,children:u.a.node,className:u.a.string,icon:u.a.string,iconBrand:u.a.bool,iconClassName:u.a.string,iconLight:u.a.bool,iconRegular:u.a.bool,iconSize:u.a.string},Et.defaultProps={active:!1,appendIcon:!1,className:"",bold:!1,icon:"",iconBrand:!1,iconClassName:"",iconLight:!1,iconRegular:!1,iconSize:""},xt(".btn-group-vertical>.btn,\r\n.btn-group-vertical>.btn+.btn-group,\r\n.btn-group-vertical>.btn-group+.btn,\r\n.btn-group-vertical>.btn-group+.btn-group {\r\n  margin-left: 0px;\r\n}\r\n\r\n.btn-group-lg>.btn {\r\n  font-size: 0.9rem;\r\n  padding: 1rem 2.4rem;\r\n}\r\n\r\n.btn-group-sm>.btn {\r\n  font-size: 0.6rem;\r\n  padding: 0.5rem 1.6rem;\r\n}\r\n\r\n.btn-floating.btn.btn-sm,\r\n.btn-floating.btn.btn-lg {\r\n  padding: 0;\r\n}\r\n");var kt=function(t){var e=t.className,n=t.size,r=t.vertical,o=t.children,s=at(t,["className","size","vertical","children"]),u=a()(e,!!n&&"btn-group-".concat(n),r?"btn-group-vertical":"btn-group");return i.a.createElement("div",et({"data-test":"button-group"},s,{className:u}),o)};kt.propTypes={"aria-label":u.a.string,children:u.a.node,className:u.a.string,role:u.a.string,size:u.a.string,vertical:u.a.bool},kt.defaultProps={role:"group"};var Tt=function(t){var e=t.className,n=t.children,r=at(t,["className","children"]),o=a()(e,"btn-toolbar");return i.a.createElement("div",et({"data-test":"button-toolbar"},r,{className:o}),n)};Tt.propTypes={"aria-label":u.a.string,children:u.a.node,className:u.a.string,role:u.a.string},Tt.defaultProps={role:"toolbar"};var St=function(t){var e,n=t.className,r=t.tag,o=t.cascade,s=t.wide,u=t.narrow,l=t.reverse,c=t.testimonial,f=t.ecommerce,h=t.collection,d=t.pricing,p=t.personal,v=t.news,m=t.color,g=t.text,y=t.border,b=at(t,["className","tag","cascade","wide","narrow","reverse","testimonial","ecommerce","collection","pricing","personal","news","color","text","border"]),w=a()((tt(e={"card-cascade":o,"card-cascade wider":s,"card-cascade narrower":u,"card-cascade wider reverse":l,"testimonial-card":c,"card-ecommerce":f,"collection-card":h,"pricing-card":d,"card-personal":p,"news-card":v},"".concat(g,"-text"),g),tt(e,"border-".concat(y),y),e),"card",m,n);return i.a.createElement(r,et({"data-test":"card"},b,{className:w}))};St.propTypes={border:u.a.string,cascade:u.a.bool,className:u.a.string,collection:u.a.bool,color:u.a.string,ecommerce:u.a.bool,narrow:u.a.bool,news:u.a.bool,personal:u.a.bool,pricing:u.a.bool,reverse:u.a.bool,tag:u.a.string,testimonial:u.a.bool,text:u.a.string,wide:u.a.bool},St.defaultProps={tag:"div"};var Ot=function(t){var e=t.className,n=t.tag,r=t.cascade,o=at(t,["className","tag","cascade"]),s=a()("card-body",r&&"card-body-cascade",e);return i.a.createElement(n,et({"data-test":"card-body"},o,{className:s}))};Ot.propTypes={cascade:u.a.bool,className:u.a.string,tag:u.a.oneOfType([u.a.func,u.a.string])},Ot.defaultProps={tag:"div"};var At=function(t){var e,n=t.className,r=t.tag,o=t.color,s=t.children,u=t.text,l=t.border,c=t.transparent,f=t.small,h=t.muted,d=at(t,["className","tag","color","children","text","border","transparent","small","muted"]),p=a()((tt(e={"white-text":o&&!u},"border-".concat(l),l),tt(e,"bg-transparent",c),tt(e,"text-muted",h),tt(e,"".concat(u,"-text"),u),e),"card-footer",o,n);return i.a.createElement(r,et({"data-test":"card-footer"},d,{className:p}),f?i.a.createElement("small",null," ",s," "):s)};
2At.propTypes={border:u.a.string,className:u.a.string,color:u.a.string,muted:u.a.bool,small:u.a.bool,tag:u.a.oneOfType([u.a.func,u.a.string]),text:u.a.string,transparent:u.a.bool},At.defaultProps={tag:"div"};var Ct=function(t){var e=t.className,n=t.tag,r=t.deck,o=t.column,s=at(t,["className","tag","deck","column"]),u=a()(r?"card-deck":o?"card-columns":"card-group",e);return i.a.createElement(n,et({"data-test":"card-group"},s,{className:u}))};Ct.propTypes={className:u.a.string,column:u.a.bool,deck:u.a.bool,tag:u.a.oneOfType([u.a.func,u.a.string])},Ct.defaultProps={tag:"div"};var Nt=function(t){var e,n=t.border,r=t.className,o=t.color,s=t.tag,u=t.text,l=t.transparent,c=at(t,["border","className","color","tag","text","transparent"]),f=a()((tt(e={"white-text":o&&!u},"border-".concat(n),n),tt(e,"bg-transparent",l),tt(e,"".concat(u,"-text"),u),e),"card-header",r,o);return i.a.createElement(s,et({"data-test":"card-header"},c,{className:f}))};Nt.propTypes={border:u.a.string,className:u.a.string,color:u.a.string,tag:u.a.oneOfType([u.a.func,u.a.string]),text:u.a.string,transparent:u.a.bool},Nt.defaultProps={tag:"div"},xt(".Ripple {\r\n  position: absolute;\r\n  background: rgba(255, 255, 255, 0.3);\r\n  border-radius: 50%;\r\n  opacity: 1;\r\n  transform: scale(0);\r\n}\r\n\r\n.Ripple-outline {\r\n  background: rgba(0, 0, 0, 0.2);\r\n}\r\n\r\n.Ripple.is-reppling {\r\n  animation: ripple 0.5s linear;\r\n}\r\n\r\n.Ripple-parent {\r\n  position: relative;\r\n  overflow: hidden;\r\n  cursor: pointer;\r\n}\r\n\r\n@keyframes ripple {\r\n  100% {\r\n    opacity: 0;\r\n    transform: scale(3);\r\n  }\r\n}\r\n");var It=function(t){function e(){var t,n;Z(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return tt(st(n=ut(this,(t=ot(e)).call.apply(t,[this].concat(i)))),"state",{animate:!1,width:0,height:0,top:0,left:0,cursorPos:n.props.cursorPos}),n}return it(e,i.a.Component),J(e,[{key:"componentDidUpdate",value:function(t,e){var n=this,r=this.props.cursorPos;e.cursorPos.time!==r.time&&(e.animate?this.setState({animate:!1,cursorPos:r},(function(){n.replying()})):this.replying())}},{key:"replying",value:function(){var t=h.a.findDOMNode(this).parentNode,e=t.getBoundingClientRect(),n=t.offsetWidth,r=t.offsetHeight,i=Math.max(r,n),o=i/2,a=this.state.cursorPos;this.setState({animate:!0,width:i,height:i,top:a.top-e.top-o,left:a.left-e.left-o})}},{key:"render",value:function(){var t=this.props,e=t.outline,n=t.flat,r=t.dark,o=this.state,a=o.animate,s=o.top,u=o.left,l=o.width,c=o.height;return i.a.createElement("div",{"data-test":"waves",className:"Ripple ".concat(e||n||r?"Ripple-outline ":"").concat(a?"is-reppling":""),style:{top:"".concat(s,"px"),left:"".concat(u,"px"),width:"".concat(l,"px"),height:"".concat(c,"px")}})}}]),e}();It.propTypes={animate:u.a.bool,children:u.a.node,cursorPos:u.a.object,flat:u.a.bool,outline:u.a.bool};var Pt=function(t){var e=t.children,n=t.className,r=t.overlay,o=t.pattern,s=t.tag,u=at(t,["children","className","overlay","pattern","tag"]),l=a()("mask",o&&"pattern-".concat(o),r&&"rgba-".concat(r),n);return i.a.createElement(s,et({"data-test":"mask"},u,{className:l}),e)};Pt.propTypes={children:u.a.node,className:u.a.string,overlay:u.a.string,pattern:u.a.oneOfType([u.a.string,u.a.number]),tag:u.a.string},Pt.defaultProps={className:"",overlay:"",pattern:"",tag:"div"};var Mt=function(t){var e=lt(Object(r.useState)({}),2),n=e[0],o=e[1],s=function(t){var e={top:t.clientY,left:t.clientX,time:Date.now()};o(e)},u=t.cascade,l=t.children,c=t.className,f=t.fixed,h=t.hover,d=t.rounded,p=t.src,v=t.tag,m=t.waves,g=t.zoom,y=at(t,["cascade","children","className","fixed","hover","rounded","src","tag","waves","zoom"]),b=a()("view",u&&"view-cascade",c,h&&"overlay",d&&"rounded",!!m&&"Ripple-parent",g&&"zoom"),w=p?{backgroundAttachment:f?"fixed":null,backgroundImage:'url("'.concat(p,'")'),backgroundPosition:"center center",backgroundRepeat:"no-repeat",backgroundSize:"cover",height:"100vh"}:{};return i.a.createElement(v,et({},y,{className:b,"data-test":"view",onMouseDown:s,onTouchStart:s,style:w}),l,m&&i.a.createElement(It,{cursorPos:n}))};Mt.defaultProps={cascade:!1,className:"",hover:!1,rounded:!1,src:"",tag:"div",waves:!1,zoom:!1},Mt.propTypes={cascade:u.a.bool,children:u.a.node,className:u.a.string,hover:u.a.bool,rounded:u.a.bool,src:u.a.string,tag:u.a.string,waves:u.a.bool,zoom:u.a.bool};var Dt=function(t){var e=lt(Object(r.useState)({}),2),n=e[0],o=e[1],s=t.cascade,u=t.className,l=t.hover,c=t.overlay,f=t.src,h=t.tag,d=t.top,p=t.waves,v=t.zoom,m=at(t,["cascade","className","hover","overlay","src","tag","top","waves","zoom"]),g=a()(d&&"card-img-top",u),y=h,b=i.a.createElement(y,et({"data-test":"card-image",src:f},m,{className:g}));return f?i.a.createElement(Mt,{zoom:v,hover:l,cascade:s},i.a.createElement("div",{className:"Ripple-parent",onMouseDown:function(t){var e={top:t.clientY,left:t.clientX,time:Date.now()};o(e)},style:{touchAction:"unset"}},b,i.a.createElement(Pt,{overlay:c}),p&&i.a.createElement(It,{cursorPos:n}))):i.a.createElement("div",null,b)};Dt.propTypes={cascade:u.a.bool,children:u.a.node,className:u.a.string,hover:u.a.bool,overlay:u.a.string,
2src:u.a.string,tag:u.a.oneOfType([u.a.func,u.a.string]),top:u.a.bool,waves:u.a.bool,zoom:u.a.bool},Dt.defaultProps={tag:"img",overlay:"white-slight",waves:!0,hover:!1,cascade:!1,zoom:!1};var Rt=function(t){var e=t.children,n=t.className,r=t.muted,o=t.small,s=t.tag,u=at(t,["children","className","muted","small","tag"]),l=a()("card-text",r&&"text-muted",n),c=o?i.a.createElement("small",null,e):e;return i.a.createElement(s,et({"data-test":"card-text"},u,{className:l}),c)};Rt.propTypes={className:u.a.string,muted:u.a.bool,small:u.a.bool,tag:u.a.oneOfType([u.a.func,u.a.string])},Rt.defaultProps={tag:"p"};var Lt=function(t){var e=t.className,n=t.sub,r=t.tag,o=at(t,["className","sub","tag"]),s=a()(n?"card-subtitle":"card-title",e);return i.a.createElement(r,et({"data-test":"card-title"},o,{className:s}))};Lt.propTypes={className:u.a.string,sub:u.a.bool,tag:u.a.oneOfType([u.a.func,u.a.string])},Lt.defaultProps={tag:"h4",sub:!1};u.a.string.isRequired,u.a.node,u.a.string;var jt=function(t){var e,n=t.className,r=t.direction,o=t.iconLeft,s=t.iconRight,u=t.multiItem,l=t.onClick,c=t.tag,f=t.testimonial;"prev"===r?e="Previous":"next"===r&&(e="Next");var h=a()("carousel-control-".concat(r),n),d=a()("carousel-control-".concat(r,"-icon"));if(f){var p="prev"===r?"left":"right";h=a()("carousel-control-".concat(r),p,"carousel-control",n),d=a()("icon-".concat(r))}return u&&(h=a()("btn-floating")),i.a.createElement(c,{"data-test":"carousel-control",className:h,"data-slide":r,onClick:l},o?i.a.createElement(_t,{icon:"chevron-left"}):s?i.a.createElement(_t,{icon:"chevron-right"}):i.a.createElement("div",null,i.a.createElement("span",{className:d,"aria-hidden":"true"}),i.a.createElement("span",{className:"sr-only"},e)))};jt.propTypes={className:u.a.string,direction:u.a.string,iconLeft:u.a.bool,iconRight:u.a.bool,multiItem:u.a.bool,onClick:u.a.any,tag:u.a.oneOfType([u.a.func,u.a.string]),testimonial:u.a.bool},jt.defaultProps={tag:"a"};var Ft=function(t){var e=t.active,n=t.alt,r=t.children,o=t.className,s=t.img,u=at(t,["active","alt","children","className","img"]),l=a()(e&&"active",o);return i.a.createElement("li",et({"data-test":"carousel-indicator"},u,{className:l}),s&&i.a.createElement("img",{src:s,alt:n,className:"img-fluid"}),r)};Ft.propTypes={active:u.a.bool.isRequired,alt:u.a.string,children:u.a.node,className:u.a.string,img:u.a.string},Ft.defaultProps={alt:"Carousel thumbnail",className:"",img:""};var Ut=function(t){var e=t.children,n=t.className,r=at(t,["children","className"]),o=a()("carousel-indicators",n);return i.a.createElement("ol",et({"data-test":"carousel-indicators"},r,{className:o}),e)};Ut.propTypes={children:u.a.node,className:u.a.string},Ut.defaultProps={className:""},xt(".carousel-inner {\r\n  position: relative;\r\n  overflow: hidden;\r\n  width: 100%;\r\n  height: 100%;\r\n}\r\n\r\n.carousel-fade .carousel-item {\r\n  position: absolute;\r\n  left: 0;\r\n  top: 0;\r\n  width: 100%;\r\n  height: 100%;\r\n  display: block !important;\r\n  opacity: 0;\r\n  z-index: 0;\r\n  transition: transform 0ms ease-in-out, opacity 0.8s ease-out;\r\n}\r\n\r\n.carousel-fade .carousel-item.active {\r\n  position: relative;\r\n  z-index: 1;\r\n  opacity: 1;\r\n}\r\n\r\n.carousel-multi-item .carousel-item {\r\n  display: inline-block !important;\r\n}\r\n\r\n.carousel .carousel-slide-item {\r\n  transition: left 0.5s;\r\n}\r\n\r\n.carousel-control-prev, .carousel-control-next, .carousel-item-prev, .carousel-item-next {\r\n  z-index: 2;\r\n}\r\n");var qt=function(t){function e(){var t,n;Z(this,e);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return tt(st(n=ut(this,(t=ot(e)).call.apply(t,[this].concat(o)))),"state",{activeItem:n.props.activeItem,initialLength:n.props.length,srcArray:[],swipeAvailable:!0,initialX:null,initialY:null}),tt(st(n),"carouselRef",i.a.createRef()),tt(st(n),"clearCycleIntervalHandler",(function(){return clearInterval(n.cycleInterval)})),tt(st(n),"swipeAvailableHandler",(function(){return n.setState({swipeAvailable:!0})})),tt(st(n),"restartInterval",(function(){var t=n.props.interval;!1!==t&&(n.clearCycleIntervalHandler(),n.cycleInterval=setInterval(n.next,t))})),tt(st(n),"next",(function(){var t=n.state,e=t.activeItem+1,r=e>t.initialLength?1:e;n.goToIndex(r)})),tt(st(n),"prev",(function(){var t=n.state,e=t.activeItem,r=t.initialLength,i=e-1,o=i<1?r:i;n.goToIndex(o)})),tt(st(n),"goToIndex",(function(t){n.setState(rt({},n.state,{activeItem:t})),n.restartInterval()})),tt(st(n),"startTouch",(function(t){!1!==n.props.mobileGesture&&n.setState({initialX:t.touches[0].clientX,initialY:t.touches[0].clientY})})),tt(st(n),"moveTouch",(function(t){n.setState({swipeAvailable:!1});var e=n.state,r=e.initialX,i=e.initialY;if(null!==r&&null!==i){var o=r-t.touches[0].clientX,a=i-t.touches[0].clientY;Math.abs(o)>Math.abs(a)&&(o>0?n.next():n.prev()),n.setState({initialX:null,initialY:null})}})),n}
2return it(e,r.Component),J(e,[{key:"componentDidMount",value:function(){var t=this.props,e=t.interval,n=t.thumbnails;if(!1!==e&&(this.cycleInterval=setInterval(this.next,e),n)){var r=this.carouselRef.current.querySelectorAll(".carousel-item img"),i=Array.prototype.map.call(r,(function(t){return t.src}));this.setState(rt({},this.state,{srcArray:i}))}}},{key:"componentDidUpdate",value:function(){var t=this.props.length;this.state.InitialLength!==t&&this.setState({InitialLength:t})}},{key:"componentWillUnmount",value:function(){!1!==this.props.interval&&this.clearCycleIntervalHandler()}},{key:"getChildContext",value:function(){var t=this.state;return{activeItem:t.activeItem,length:t.initialLength,slide:this.props.slide}}},{key:"render",value:function(){for(var t=this,e=this.props,n=(e.activeItem,e.children),r=e.className,o=(e.interval,e.mobileGesture,e.multiItem),s=e.onHoverStop,u=e.showControls,l=e.showIndicators,c=(e.slide,e.tag),f=e.testimonial,h=e.thumbnails,d=at(e,["activeItem","children","className","interval","mobileGesture","multiItem","onHoverStop","showControls","showIndicators","slide","tag","testimonial","thumbnails"]),p=this.state,v=p.initialLength,m=p.srcArray,g=p.swipeAvailable,y=a()("carousel",o?"carousel-multi-item":"carousel-fade",h?"carousel-thumbnails":"",f?"testimonial-carousel":"",r),b=[],w=function(e){var n=t.state.activeItem;b.push(i.a.createElement(Ft,{img:h?m[e-1]:null,key:e,active:n===e,onClick:function(){return t.goToIndex(e)}}))},_=1;_<=v;_++)w(_);var x=!!o,E=!!f;return i.a.createElement(c,et({"data-test":"carousel",ref:this.carouselRef},d,{className:y,"aria-label":"carousel",onTouchStart:this.startTouch,onTouchMove:g?this.moveTouch:null,onTouchEnd:this.swipeAvailableHandler,onMouseEnter:s?this.clearCycleIntervalHandler:null,onMouseLeave:s?this.restartInterval:null}),u&&o&&i.a.createElement("div",{className:"controls-top"},i.a.createElement(jt,{testimonial:E,multiItem:x,iconLeft:!0,className:"btn-floating",direction:"prev",role:"button",onClick:this.prev}),i.a.createElement(jt,{testimonial:E,multiItem:x,iconRight:!0,className:"btn-floating",direction:"next",role:"button",onClick:this.next})),n,u&&!o&&i.a.createElement(i.a.Fragment,null,i.a.createElement(jt,{testimonial:E,multiItem:x,direction:"prev",role:"button",onClick:this.prev}),i.a.createElement(jt,{testimonial:E,multiItem:x,direction:"next",role:"button",onClick:this.next})),l&&i.a.createElement(Ut,null,b))}}]),e}();qt.propTypes={activeItem:u.a.number,children:u.a.node,className:u.a.string,interval:u.a.oneOfType([u.a.number,u.a.bool]),length:u.a.number,mobileGesture:u.a.bool,multiItem:u.a.bool,onHoverStop:u.a.bool,showControls:u.a.bool,showIndicators:u.a.bool,slide:u.a.bool,tag:u.a.oneOfType([u.a.func,u.a.string]),testimonial:u.a.bool,thumbnails:u.a.bool},qt.defaultProps={interval:6e3,mobileGesture:!0,onHoverStop:!0,showControls:!0,showIndicators:!0,tag:"div"},qt.childContextTypes={activeItem:u.a.any,length:u.a.any,slide:u.a.any};var Bt=function(t){var e=t.children,n=t.className,r=t.tag,o=at(t,["children","className","tag"]),s=a()("carousel-caption",n);return i.a.createElement(r,et({"data-test":"carousel-caption"},o,{className:s}),e)};Bt.propTypes={active:u.a.string,children:u.a.node,className:u.a.string,tag:u.a.oneOfType([u.a.func,u.a.string])},Bt.defaultProps={tag:"div"};var Vt=function(t){var e=t.active,n=t.children,r=(t.childrenCount,t.className),o=t.tag,s=at(t,["active","children","childrenCount","className","tag"]),u=a()("carousel-inner",e?"active":"",r);return i.a.createElement(o,et({"data-test":"carousel-inner"},s,{className:u}),n)};Vt.propTypes={active:u.a.bool,children:u.a.node,className:u.a.string,tag:u.a.oneOfType([u.a.func,u.a.string])},Vt.defaultProps={tag:"div"};var zt=function(t){function e(){var t,n;Z(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return tt(st(n=ut(this,(t=ot(e)).call.apply(t,[this].concat(i)))),"moveForward",(function(){n.style={position:"absolute",left:"100%"}})),tt(st(n),"moveBackwards",(function(){n.style={position:"absolute",left:"-100%"}})),tt(st(n),"makeVisible",(function(){n.style={left:"0"}})),n}return it(e,r.Component),J(e,[{key:"render",value:function(){var t=this.props,e=(t.active,t.children),n=t.className,r=t.itemId,o=t.tag,s=at(t,["active","children","className","itemId","tag"]),u=this.context,l=u.slide,c=u.activeItem;r=parseInt(r,10);var f=a()("carousel-item",{"active carousel-slide-item":l,active:!l&&r===c},n),h=c-r;return l?h<0?this.moveForward():h>0?this.moveBackwards():this.makeVisible():this.makeVisible(),i.a.createElement(o,et({"data-test":"carousel-item"},s,{className:f,style:this.style}),e)}}]),e}();zt.propTypes={active:u.a.bool,children:u.a.node,className:u.a.string,itemId:u.a.any,tag:u.a.oneOfType([u.a.func,u.a.string])},zt.defaultProps={tag:"div"},zt.contextTypes={activeItem:u.a.any,length:u.a.any,slide:u.a.any};var Wt=function(t){var e=t.onClick,n=t.className,r=t.ariaLabel,o=at(t,["onClick","className","ariaLabel"]),a=n?["close"].concat(ct(n.split(" "))):["close"];return i.a.createElement("button",et({"data-test":"close-button",type:"button"},o,{className:a.join(" "),onClick:function(t){e&&e(t)}
2,"aria-label":r}),i.a.createElement("span",{"aria-hidden":"true"},"\xd7"))};Wt.defaultProps={ariaLabel:"Close"},Wt.propTypes={ariaLabel:u.a.string,className:u.a.string,onClick:u.a.func};var Ht=function(t){var e=t.xs,n=t.sm,r=t.md,o=t.lg,s=t.xl,u=t.top,l=t.bottom,c=t.middle,f=t.size,h=t.className,d=t.tag,p=at(t,["xs","sm","md","lg","xl","top","bottom","middle","size","className","tag"]),v=a()(f&&"col-".concat(f),e&&"col-xs-".concat(e),n&&"col-sm-".concat(n),r&&"col-md-".concat(r),o&&"col-lg-".concat(o),s&&"col-xl-".concat(s),f||e||n||r||o||s?"":"col",u&&"align-self-start",c&&"align-self-center",l&&"align-self-end",h);return i.a.createElement(d,et({"data-test":"col"},p,{className:v}))};Ht.propTypes={bottom:u.a.bool,className:u.a.string,lg:u.a.string,md:u.a.string,middle:u.a.bool,size:u.a.string,sm:u.a.string,tag:u.a.oneOfType([u.a.func,u.a.string]),top:u.a.bool,xl:u.a.string,xs:u.a.string},Ht.defaultProps={tag:"div",xs:null,sm:null,md:null,lg:null,xl:null};var Yt={show:350,hide:350},Gt=function(t){function e(){var t,n;Z(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return tt(st(n=ut(this,(t=ot(e)).call.apply(t,[this].concat(i)))),"state",{id:n.props.id,collapse:"HIDDEN",height:null}),tt(st(n),"element",null),tt(st(n),"setTransitionTag",(function(t,e,r){n.transitionTag=setTimeout((function(){n.setState({collapse:t,height:null},e())}),n.getDelay(r))})),tt(st(n),"openCollapse",(function(){var t=n.props.onOpened;n.setState({collapse:"SHOW"},(function(){n.setState({height:n.getHeight()}),n.setTransitionTag("SHOWN",t,"show")}))})),tt(st(n),"closeCollapse",(function(){var t=n.props.onClosed;n.setState({height:n.getHeight()},(function(){n.setState({collapse:"HIDE",height:n.getHeight()},(function(){n.setState({height:0})}))})),n.setTransitionTag("HIDDEN",t,"hide")})),n}return it(e,r.Component),J(e,[{key:"componentDidMount",value:function(){var t=this.props.isOpen,e=this.state,n=e.collapse;t!==e.id&&!0!==t||"HIDDEN"!==n||this.openCollapse()}},{key:"componentDidUpdate",value:function(t,e){var n=this.props.isOpen,r=this.state.collapse,i="boolean"!=typeof n?n===e.id:n;i&&"HIDDEN"===r?this.openCollapse():i||"SHOWN"!==e.collapse||this.closeCollapse()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.transitionTag)}},{key:"getDelay",value:function(t){var e=this.props.delay;return"object"===$(e)?isNaN(e[t])?Yt[t]:e[t]:e}},{key:"getHeight",value:function(){return this.element.scrollHeight}},{key:"render",value:function(){var t,e=this,n=this.props,r=n.navbar,o=n.children,s=n.className,u=(n.isOpen,n.delay,n.onOpened,n.onClosed,at(n,["navbar","children","className","isOpen","delay","onOpened","onClosed"])),l=this.state,c=l.collapse,f=l.height;switch(c){case"SHOW":t="collapsing";break;case"SHOWN":t="collapse show";break;case"HIDE":t="collapsing";break;case"HIDDEN":t="collapse";break;default:t="collapse"}var h=a()(t,!!r&&"navbar-collapse",s),d=null===f?null:{height:f};return i.a.createElement("div",et({"data-test":"collapse"},u,{style:rt({},u.style,{},d),className:h,ref:function(t){e.element=t}}),o)}}]),e}();Gt.propTypes={children:u.a.node,className:u.a.node,delay:u.a.oneOfType([u.a.number,u.a.shape({hide:u.a.number,show:u.a.number})]),id:u.a.string,isOpen:u.a.oneOfType([u.a.string,u.a.bool]),navbar:u.a.bool,onClosed:u.a.func,onOpened:u.a.func},Gt.defaultProps={isOpen:"",delay:Yt,onOpened:function(){},onClosed:function(){}};var Kt=function(t){var e=t.className,n=t.fluid,r=t.size,o=t.tag,s=at(t,["className","fluid","size","tag"]),u=a()(n?"container-fluid":r?"container-".concat(r):"container",e);return i.a.createElement(o,et({"data-test":"container"},s,{className:u}))};Kt.propTypes={className:u.a.string,fluid:u.a.bool,size:u.a.oneOf(["sm","md","lg","xl"]),tag:u.a.oneOfType([u.a.func,u.a.string])},Kt.defaultProps={tag:"div",fluid:!1};var Xt=function(t){var e=t.color,n=t.columns,r=t.handleSort,o=t.scrollX,s=t.scrollY,u=t.sortable,l=t.sorted,c=t.textWhite,f=a()(e&&("dark"!==e&&"light"!==e?e:"thead-".concat(e)),c&&"text-white");return i.a.createElement(i.a.Fragment,null,(s||o)&&i.a.createElement("colgroup",null,n.map((function(t){return i.a.createElement("col",{key:t.field,style:{width:"".concat(t.width,"px")||!1,minWidth:"".concat(t.width,"px")||!1}})}))),i.a.createElement("thead",{"data-test":"datatable-head",className:f||void 0},i.a.createElement("tr",null,n.map((function(t){return i.a.createElement("th",et({onClick:function(){return u&&r(t.field,t.sort)},key:t.field,className:a()(t.hasOwnProperty("minimal")?"th-".concat(t.minimal):null,u&&"disabled"!==t.sort&&(l&&t.sort?"sorting_".concat("asc"===t.sort?"desc":"asc"):"sorting"))},t.attributes),t.label)})))))};Xt.propTypes={sorted:u.a.bool.isRequired,color:u.a.string,columns:u.a.arrayOf(u.a.object),handleSort:u.a.func,scrollX:u.a.bool,scrollY:u.a.bool,sortable:u.a.bool,textWhite:u.a.bool},Xt.defaultProps={scrollX:!1,scrollY:!1,sortable:!0,textWhite:!1},xt(".table-wrapper-scroll-y {\r\n  display: block;\r\n  max-height: 200px;\r\n  overflow-y: auto;\r\n  -ms-overflow-style: -ms-autohiding-scrollbar;\r\n}\r\n");var $t=function(t){var e=t.autoWidth,n=t.bordered,r=t.borderless,o=t.btn,s=t.children,u=t.className,l=t.dark,c=t.fixed,f=t.hover,h=t.maxHeight,d=t.responsive,p=t.responsiveLg,v=t.responsiveMd,m=t.responsiveSm,g=t.responsiveXl,y=t.scrollY,b=t.small,w=t.striped,_=(t.theadColor,t.wrapperClassName),x=at
2(t,["autoWidth","bordered","borderless","btn","children","className","dark","fixed","hover","maxHeight","responsive","responsiveLg","responsiveMd","responsiveSm","responsiveXl","scrollY","small","striped","theadColor","wrapperClassName"]),E=a()("table",{"w-auto":e,"table-bordered":n,"table-borderless":r,"btn-table":o,"table-fixed":c,"table-hover":f,"table-sm":b,"table-striped":w},u),k=a()({"table-dark":l,"table-responsive":d,"table-responsive-sm":m,"table-responsive-md":v,"table-responsive-lg":p,"table-responsive-xl":g,"table-wrapper-scroll-y":y},_),T={maxHeight:h};return i.a.createElement("div",{"data-test":"table",className:k,style:T},i.a.createElement("table",et({},x,{className:E}),s))};$t.propTypes={autoWidth:u.a.bool,bordered:u.a.bool,borderless:u.a.bool,btn:u.a.bool,children:u.a.node,className:u.a.string,dark:u.a.bool,fixed:u.a.bool,hover:u.a.bool,maxHeight:u.a.string,responsive:u.a.bool,responsiveLg:u.a.bool,responsiveMd:u.a.bool,responsiveSm:u.a.bool,responsiveXl:u.a.bool,scrollY:u.a.bool,small:u.a.bool,striped:u.a.bool,theadColor:u.a.string,wrapperClassName:u.a.string};var Zt=function(t){var e=t.children,n=t.color,r=t.columns,o=t.rows,s=t.textWhite,u=at(t,["children","color","columns","rows","textWhite"]),l=a()(n,{"text-white":s}),c=function(t,e,n,r){return"clickEvent"===t?null:"colspan"!==t?r.message?0===e&&i.a.createElement("td",{key:e,colSpan:r.colspan},r.message):"colspan"!==n[e+1]&&null!==r[t]&&i.a.createElement("td",{key:e},r[t])||i.a.createElement("td",{key:e}):i.a.createElement("td",{key:e,colSpan:r.colspan},r[n[e-1]])};return i.a.createElement("tbody",et({"data-test":"table-body"},u,{className:l||void 0}),o&&o.map((function(t,e){return i.a.createElement("tr",{onClick:t.hasOwnProperty("clickEvent")?t.clickEvent:void 0,key:e},r?r.map((function(e,n,r){var i=e.field;return c(i,n,r,t)})):Object.keys(t).map((function(e,n,r){return c(e,n,r,t)})))}
2)),e)};Zt.propTypes={children:u.a.node,color:u.a.string,rows:u.a.arrayOf(u.a.object),textWhite:u.a.bool},Zt.defaultProps={textWhite:!1};var Qt=function(t){var e,n=t.children,r=t.color,o=t.columns,s=t.textWhite,u=at(t,["children","color","columns","textWhite"]),l="dark"===r||"light"===r,c=a()((tt(e={"text-white":s},"thead-".concat(r),r&&l),tt(e,"".concat(r),r&&!l),e));return i.a.createElement("thead",et({"data-test":"table-foot"},u,{className:c||void 0}),o&&i.a.createElement("tr",null,o.map((function(t){return i.a.createElement("th",{key:t.field,className:t.hasOwnProperty("minimal")?"th-".concat(t.minimal):void 0},t.label)}))),n)};Qt.propTypes={children:u.a.node,color:u.a.string,columns:u.a.arrayOf(u.a.object),textWhite:u.a.bool},Qt.defaultProps={textWhite:!1};var Jt=function(t){var e=t.autoWidth,n=t.bordered,r=t.borderless,o=t.btn,a=t.children,s=t.columns,u=t.dark,l=t.fixed,c=t.handleSort,f=t.hover,h=t.noBottomColumns,d=(t.noRecordsFoundLabel,t.responsive),p=t.responsiveLg,v=t.responsiveMd,m=t.responsiveSm,g=t.responsiveXl,y=t.rows,b=t.small,w=t.sortable,_=t.sorted,x=t.striped,E=t.tbodyColor,k=t.tbodyTextWhite,T=t.theadColor,S=t.theadTextWhite,O=at(t,["autoWidth","bordered","borderless","btn","children","columns","dark","fixed","handleSort","hover","noBottomColumns","noRecordsFoundLabel","responsive","responsiveLg","responsiveMd","responsiveSm","responsiveXl","rows","small","sortable","sorted","striped","tbodyColor","tbodyTextWhite","theadColor","theadTextWhite"]);return i.a.createElement("div",{"data-test":"datatable-table",className:"col-sm-12"},i.a.createElement($t,et({autoWidth:e,bordered:n,borderless:r,btn:o,dark:u,fixed:l,hover:f,responsive:d,responsiveSm:m,responsiveMd:v,responsiveLg:p,responsiveXl:g,small:b,striped:x,className:"dataTable"},O),i.a.createElement(Xt,{color:T,textWhite:S,columns:s,handleSort:c,sortable:w,sorted:_}),i.a.createElement(Zt,{color:E,textWhite:k,rows:y,columns:s}),!h&&i.a.createElement(Qt,{color:T,textWhite:S,columns:s}),a))};Jt.propTypes={autoWidth:u.a.bool.isRequired,bordered:u.a.bool.isRequired,borderless:u.a.bool.isRequired,btn:u.a.bool.isRequired,dark:u.a.bool.isRequired,fixed:u.a.bool.isRequired,handleSort:u.a.func.isRequired,hover:u.a.bool.isRequired,responsive:u.a.bool.isRequired,responsiveLg:u.a.bool.isRequired,responsiveMd:u.a.bool.isRequired,responsiveSm:u.a.bool.isRequired,responsiveXl:u.a.bool.isRequired,small:u.a.bool.isRequired,sortable:u.a.bool.isRequired,sorted:u.a.bool.isRequired,striped:u.a.bool.isRequired,tbodyColor:u.a.string.isRequired,tbodyTextWhite:u.a.bool.isRequired,theadColor:u.a.string.isRequired,theadTextWhite:u.a.bool.isRequired,children:u.a.node,columns:u.a.arrayOf(u.a.object),noBottomColumns:u.a.bool,rows:u.a.arrayOf(u.a.object)};var te=function(t){var e=t.autoWidth,n=t.bordered,r=t.borderless,o=t.btn,a=t.children,s=t.columns,u=t.dark,l=t.fixed,c=t.handleSort,f=t.handleTableBodyScroll,h=t.hover,d=t.maxHeight,p=t.responsive,v=t.responsiveLg,m=t.responsiveMd,g=t.responsiveSm,y=t.responsiveXl,b=t.rows,w=t.scrollX,_=t.scrollY,x=t.small,E=t.sortable,k=t.sorted,T=t.striped,S=t.tbodyColor,O=t.tbodyTextWhite,A=t.theadColor,C=t.theadTextWhite,N=t.translateScrollHead,I=at(t,["autoWidth","bordered","borderless","btn","children","columns","dark","fixed","handleSort","handleTableBodyScroll","hover","maxHeight","responsive","responsiveLg","responsiveMd","responsiveSm","responsiveXl","rows","scrollX","scrollY","small","sortable","sorted","striped","tbodyColor","tbodyTextWhite","theadColor","theadTextWhite","translateScrollHead"]),P=w?"".concat(s.map((function(t){return t.width})).reduce((function(t,e){return t+e}),0),"px"):"auto";return i.a.createElement("div",{"data-test":"datatable-table-scroll",className:"col-sm-12"},i.a.createElement("div",{className:"dataTables_scroll"},i.a.createElement("div",{className:"dataTables_scrollHead",style:{overflow:"hidden"}},i.a.createElement("div",{className:"dataTables_scrollHeadInner",style:{position:"relative",transform:"translateX(-".concat(N,"px)"),boxSizing:"content-box",paddingRight:_?"15px":null,minWidth:P}},i.a.createElement($t,et({autoWidth:e,bordered:n,borderless:r,btn:o,dark:u,fixed:l,hover:h,responsive:p,responsiveSm:g,responsiveMd:m,responsiveLg:v,responsiveXl:y,small:x,striped:T,className:"dataTable"},I),i.a.createElement(Xt,{color:A,textWhite:C,columns:s,handleSort:c,scrollX:w,scrollY:_,sortable:E,sorted:k})))),i.a.createElement("div",{className:"dataTable_scrollBody",style:{overflow:"auto"},onScroll:f},i.a.createElement($t,et({style:{minWidth:P},autoWidth:e,bordered:n,borderless:r,btn:o,dark:u,fixed:l,hover:h,maxHeight:d,responsive:p,responsiveSm:g,responsiveMd:m,responsiveLg:v,responsiveXl:y,scrollY:_,small:x,striped:T,className:"dataTable"},I),i.a.createElement("colgroup",null,s.map((function(t){return i.a.createElement("col",{key:t.field,style:{width:"".concat(t.width,"px")||!1,minWidth:"".concat(t.width,"px")||!1}})}))),i.a.createElement(Zt,{color:S,textWhite:O,rows:b,columns:s}),a))))};te.propTypes={autoWidth:u.a.bool.isRequired,bordered:u.a.bool.isRequired,borderless:u.a.bool.isRequired,btn:u.a.bool.isRequired,dark:u.a.bool.isRequired,fixed:u.a.bool.isRequired,handleSort:u.a.func.isRequired,handleTableBodyScroll:u.a.func.isRequired,hover:u.a.bool.isRequired,responsive:u.a.bool.isRequired,responsiveLg:u.a.bool.isRequired,responsiveMd:u.a.bool.isRequired,responsiveSm:u.a.bool.isRequired,responsiveXl:u.a.bool.isRequired,small:u.a.bool.isRequired,sortable:u.a.bool.isRequired,sorted:u.a.bool.isRequired,striped:u.a.bool.isRequired,tbodyColor:u.a.string.isRequired,tbodyTextWhite:u.a.bool.isRequired,theadColor:u.a.string.isRequired,theadTextWhite:u.a.bool.isRequired,translateScrollHead:u.a.number.isRequired,children:u.a.node,columns:u.a.arrayOf(u.a.object),maxHeight:u.a.string,rows:u.a.arrayOf(u.a.object),scrollX:u.a.bool,scrollY:u.a.bool};var ee=function(t){var e=t.value,n=t.onChange,r=t.entries,o=t.label;return i.a.createElement("div",{"data-test":"datatable-select",className:"dataTables_length bs-select"},i.a.createElement("label",null,o,i.a.createElement("select",{value:e,onCh
2ange:function(t){var e=parseInt(t.target.value,10);n(e)},className:"custom-select custom-select-sm form-control form-control-sm",style:{marginLeft:".5rem"}},r.map((function(t){return i.a.createElement("option",{key:t,value:t},t)})))))};ee.propTypes={entries:u.a.arrayOf(u.a.number).isRequired,label:u.a.oneOfType([u.a.string,u.a.number,u.a.object]).isRequired,onChange:u.a.func.isRequired,value:u.a.number.isRequired};var ne=function(t){var e=t.handleEntriesChange,n=t.displayEntries,r=t.entries,o=t.entriesArr,a=t.paging,s=t.label,u=t.barReverse;return i.a.createElement("div",{"data-test":"datatable-entries",className:"col-sm-12 col-md-6"},a&&n&&i.a.createElement(ee,{value:r,onChange:e,entries:o,label:s,barReverse:u}))};ne.propTypes={displayEntries:u.a.bool.isRequired,entries:u.a.number.isRequired,entriesArr:u.a.arrayOf(u.a.number).isRequired,handleEntriesChange:u.a.func.isRequired,label:u.a.oneOfType([u.a.number,u.a.object,u.a.string]).isRequired,paging:u.a.bool.isRequired,barReverse:u.a.bool};var re=function(t){var e=t.value,n=t.onChange,r=t.label;return i.a.createElement("div",{"data-test":"datatable-input",className:"dataTables_filter"},i.a.createElement("label",null,r||"Search",i.a.createElement("input",{value:e,onChange:n,type:"search",className:"form-control form-control-sm",placeholder:r||"Search"})))};re.propTypes={label:u.a.oneOfType([u.a.number,u.a.object,u.a.string]),onChange:u.a.func,value:u.a.string};var ie=function(t){var e=t.handleSearchChange,n=t.search,r=t.searching,o=t.label,a=t.barReverse;return i.a.createElement("div",{"data-test":"datatable-search",className:"col-sm-12 col-md-6"},r&&i.a.createElement(re,{value:n,onChange:e,label:o,barReverse:a}))};ie.propTypes={handleSearchChange:u.a.func.isRequired,search:u.a.string.isRequired,searching:u.a.bool.isRequired,barReverse:u.a.bool,label:u.a.string};var oe=function(t){var e=t.activePage,n=t.entries,r=t.filteredRows,o=t.info,a=t.label,s=t.noRecordsFoundLabel,u=t.pages,l=a[0],c=a[1],f=a[2],h=a[3],d=r.length>0&&r[0].message===s,p=e>0?e*n+1:e+1,v=u.length-1>e?u[e].length*(e+1):r.length,m=r.length;return i.a.createElement("div",{"data-test":"datatable-info",className:"col-sm-12 col-md-5"},o&&i.a.createElement("div",{className:"dataTables_info",role:"status","aria-live":"polite"},d?"".concat(l," 0 ").concat(h):"".concat(l," ").concat(p," ").concat(c," ").concat(v," ").concat(f," ").concat(m," ").concat(h)))};oe.propTypes={activePage:u.a.number.isRequired,entries:u.a.number.isRequired,filteredRows:u.a.array.isRequired,info:u.a.bool.isRequired,noRecordsFoundLabel:u.a.string.isRequired,pages:u.a.array.isRequired,label:u.a.arrayOf(u.a.string)},oe.defaultProps={label:["Showing","to","of","entries"]};var ae=function(t){var e,n=t.children,r=t.circle,o=t.className,s=t.color,u=t.tag,l=t.size,c=at(t,["children","circle","className","color","tag","size"]),f=a()((tt(e={"pagination-circle":r},"pg-".concat(s),s),tt(e,"pagination-".concat(l),l),e),"pagination",o);return i.a.createElement(u,et({"data-test":"pagination"},c,{className:f}),n)};ae.propTypes={children:u.a.node,circle:u.a.bool,className:u.a.string,color:u.a.string,size:u.a.oneOf(["lg","sm"]),tag:u.a.oneOfType([u.a.func,u.a.string])},ae.defaultProps={circle:!1,className:"",color:"",tag:"ul"};var se=function(t){var e=t.active,n=t.className,r=t.children,o=t.disabled,s=t.tag,u=at(t,["active","className","children","disabled","tag"]),l=a()({disabled:o,active:e},"page-item",n);return i.a.createElement(s,et({"data-test":"page-item"},u,{className:l}),r)};se.propTypes={active:u.a.bool,children:u.a.node,className:u.a.string,disabled:u.a.bool,tag:u.a.oneOfType([u.a.func,u.a.string])},se.defaultProps={active:!1,className:"",disabled:!1,tag:"li"};var ue=function(t){var e=t.children,n=t.className,r=t.tag,o=at(t,["children","className","tag"]),s=a()("page-link",n);return i.a.createElement(r,et({"data-test":"page-link"},o,{className:s}),e)};ue.propTypes={children:u.a.node,className:u.a.string,tag:u.a.oneOfType([u.a.func,u.a.string])},ue.defaultProps={tag:"a"};var le=function(t){function e(){var t,n;Z(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return tt(st(n=ut(this,(t=ot(e)).call.apply(t,[this].concat(i)))),"state",{pages:n.props.pages,pGroups:[]}),tt(st(n),"componentDidUpdate",(function(t){var e=n.props.pages;t.pages!==e&&n.setState({pages:e},(function(){return n.groupPages()}))})),tt(st(n),"pagesIndexify",(function(){var t=ct(n.state.pages);return t.forEach((function(t,e){return t.index=e})),t}
2)),tt(st(n),"groupPages",(function(){for(var t=[],e=n.pagesIndexify(),r=n.props.pagesAmount;e.length>0;)t.push(e.splice(0,r));n.setState({pGroups:t})})),tt(st(n),"choosePagesGroup",(function(){var t=n.props,e=t.activePage,r=t.pagesAmount,i=n.state.pGroups,o=Math.floor(e/r);return i.length?i[o]:[]})),n}return it(e,r.Component),J(e,[{key:"componentDidMount",value:function(){this.groupPages()}},{key:"render",value:function(){var t=this.props,e=t.activePage,n=t.changeActivePage,r=t.pages,o=t.label;return i.a.createElement("div",{"data-test":"datatable-pagination",className:"col-sm-12 col-md-7"},i.a.createElement("div",{className:"dataTables_paginate"},i.a.createElement(ae,null,i.a.createElement(se,{disabled:e<=0},i.a.createElement(ue,{className:"page-link","aria-label":o[0],onClick:function(){return n(e-1)}},i.a.createElement("span",null,o[0]))),this.choosePagesGroup().map((function(t){return i.a.createElement(se,{key:Object.keys(t[0])[0]+t.index,active:t.index===e},i.a.createElement(ue,{className:"page-link",onClick:function(){return n(t.index)}},t.index+1,t.index===e&&i.a.createElement("span",{className:"sr-only"},"(current)")))})),i.a.createElement(se,{disabled:!r.length||e===r.length-1},i.a.createElement(ue,{className:"page-link","aria-label":o[1],onClick:function(){return n(e+1)}},i.a.createElement("span",null,o[1]))))))}}]),e}();le.propTypes={activePage:u.a.number.isRequired,changeActivePage:u.a.func.isRequired,label:u.a.arrayOf(u.a.string).isRequired,pages:u.a.array.isRequired,pagesAmount:u.a.number.isRequired};var ce=function(t){function e(){var t,n;Z(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return tt(st(n=ut(this,(t=ot(e)).call.apply(t,[this].concat(i)))),"state",{activePage:0,columns:n.props.data.columns||[],entries:n.props.entries,filteredRows:n.props.data.rows||[],filterOptions:[],order:n.props.order||[],pages:[],rows:n.props.data.rows||[],search:"",searchSelect:"",sorted:!1,translateScrollHead:0,unsearchable:[]}),tt(st(n),"setData",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;n.setState((function(){return{columns:e,rows:t,filteredRows:n.props.disableRetreatAfterSorting?n.filterRows():t}}),r&&"function"==typeof r&&function(){return r()})})),tt(st(n),"setUnsearchable",(function(t){var e=[];t.forEach((function(t){void 0!==t.searchable&&!1===t.searchable&&e.push(t.field)})),n.setState({unsearchable:e})})),tt(st(n),"fetchData",(function(t,e){fetch(t).then((function(t){return t.json()})).then((function(t){return n.setData(t.rows,t.columns,e?n.paginateRows:null)})).catch((function(t){return console.log(t)}))})),tt(st(n),"pagesAmount",(function(){return Math.ceil(n.state.filteredRows.length/n.state.entries)})),tt(st(n),"paginateRowsInitialy",(function(){for(var t=n.state,e=t.rows,r=t.entries,i=t.pages,o=n.pagesAmount(),a=1;a<=o;a++){var s=a*r;i.push(e.slice(s-r,s))}})),tt(st(n),"handleEntriesChange",(function(t){n.setState({entries:Array.isArray(t)?t[0]:t},(function(){return n.paginateRows()}))})),tt(st(n),"handleSearchChange",(function(t){n.setState({search:t.target.value},(function(){return n.filterRows()}),n.props.onSearch&&"function"==typeof n.props.onSearch&&n.props.onSearch(t.target.value))})),tt(st(n),"checkFieldValue",(function(t,e){return t[e]&&"string"!=typeof t[e]?t[e].props.searchvalue:t[e]})),tt(st(n),"checkField",(function(t,e,r,i){var o=[n.checkFieldValue(e,t),n.checkFieldValue(r,t)],a=o[0]>o[1]?-1:1;return"asc"===i&&(a*=-1),a})),tt(st(n),"sort",(function(t,e,r,i){t.sort((function(t,o){return e&&e.includes(r)?n.checkField(r,t,o,i):"asc"===i?t[r]<o[r]?-1:1:t[r]>o[r]?-1:1}))})),tt(st(n),"handleSort",(function(t,e){var r=n.props.onSort;"disabled"!==e&&(n.setState((function(r){var i=n.props.sortRows,o=r.rows,a=r.columns,s="desc"===e?"desc":"asc";return n.sort(o,i,t,s),a.forEach((function(e){"disabled"!==e.sort&&(e.sort=e.field===t?"desc"===e.sort?"asc":"desc":"")})),{rows:o,columns:a,sorted:!0}}),(function(){return n.filterRows()})),r&&"function"==typeof r&&r({column:t,direction:"desc"===e?"desc":"asc"}))})),tt(st(n),"filterRows",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.state.search,e=n.state.unsearchable,r=n.props,i=r.sortRows,o=r.noRecordsFoundLabel;n.setState((function(r){var a=r.rows.filter((function(n){for(var r in n)if(!(e.length&&e.includes(r)||"function"==typeof n[r])){var o="";if(i&&"string"!=typeof n[r]?(a=void 0,a=[],function t(e){return"object"===$(e)?e.props.children&&Array.from(e.props.children).map((function(e){return t(e)})):a.push(e)}(n[r]),o=a.join("")):n[r]&&(o=n[r].toString()),o.toLowerCase().includes(t.toLowerCase()))return!0}var a;return!1}));
20===a.length&&a.push({message:o,colspan:r.columns.length});var s={};return n.props.disableRetreatAfterSorting?s={filteredRows:a,activePage:r.activePage=r.activePage<r.pages.length||0===r.activePage?r.activePage:r.pages.length-1}:n.props.disableRetreatAfterSorting||(s={filteredRows:a,activePage:0}),s}),(function(){return n.paginateRows()}))})),tt(st(n),"paginateRows",(function(){var t=n.pagesAmount();n.setState((function(e){var r=e.pages,i=e.entries,o=e.filteredRows,a=e.activePage,s=n.props,u=s.paging,l=s.disableRetreatAfterSorting;if(r=[],u){for(var c=1;c<=t;c++){var f=c*i;r.push(o.slice(f-i,f))}l||(a=a<r.length||0===a?a:r.length-1)}else r.push(o),a=0;return{pages:r,filteredRows:o,activePage:a}}))})),tt(st(n),"changeActivePage",(function(t){var e=n.props.onPageChange;n.setState({activePage:t}),e&&"function"==typeof e&&e({activePage:t+1,pagesAmount:n.pagesAmount()})})),tt(st(n),"handleTableBodyScroll",(function(t){n.setState({translateScrollHead:t.target.scrollLeft})})),n}return it(e,r.Component),J(e,[{key:"componentDidMount",value:function(){var t=this.props,e=t.data,n=t.paging,r=this.state,i=r.order,o=r.columns,a=r.pages,s=r.rows;"string"==typeof e&&this.fetchData(e,this.paginateRows),i.length>0?this.handleSort(i[0],i[1]):this.handleSort(),this.setUnsearchable(o),n?this.paginateRowsInitialy():a.push(s)}},{key:"componentDidUpdate",value:function(t,e){var n=this.state.columns,r=this.props.data;t.data!==r&&("string"==typeof r?this.fetchData(r):this.setData(r.rows,r.columns,this.paginateRows),this.setUnsearchable(n),this.filterRows())}},{key:"render",value:function(){var t=this.props,e=t.autoWidth,n=t.barReverse,r=t.bordered,o=t.borderless,s=t.btn,u=(t.children,t.className),l=t.dark,c=(t.data,t.disableRetreatAfterSorting,t.displayEntries),f=t.entriesLabel,h=t.entriesOptions,d=(t.exportToCSV,t.filter,t.fixed),p=t.hover,v=t.info,m=t.infoLabel,g=t.maxHeight,y=t.noBottomColumns,b=t.noRecordsFoundLabel,w=(t.onPageChange,t.onSearch,t.onSort,t.order,t.pagesAmount),_=t.paginationLabel,x=t.paging,E=t.responsive,k=t.responsiveLg,T=t.responsiveMd,S=t.responsiveSm,O=t.responsiveXl,A=t.scrollX,C=t.scrollY,N=t.searching,I=t.searchLabel,P=t.small,M=t.sortable,D=(t.sortRows,t.striped),R=t.tbodyColor,L=t.tbodyTextWhite,j=t.theadColor,F=t.theadTextWhite,U=at(t,["autoWidth","barReverse","bordered","borderless","btn","children","className","dark","data","disableRetreatAfterSorting","displayEntries","entriesLabel","entriesOptions","exportToCSV","filter","fixed","hover","info","infoLabel","maxHeight","noBottomColumns","noRecordsFoundLabel","onPageChange","onSearch","onSort","order","pagesAmount","paginationLabel","paging","responsive","responsiveLg","responsiveMd","responsiveSm","responsiveXl","scrollX","scrollY","searching","searchLabel","small","sortable","sortRows","striped","tbodyColor","tbodyTextWhite","theadColor","theadTextWhite"]),q=this.state,B=q.columns,V=q.entries,z=q.filteredRows,W=(q.filterOptions,q.pages),H=q.activePage,Y=q.search,G=q.sorted,K=q.translateScrollHead,X=a()("dataTables_wrapper dt-bootstrap4",u);return i.a.createElement("div",{"data-test":"datatable",className:X},i.a.createElement("div",{className:"row".concat(n?" flex-row-reverse":"")},i.a.createElement(ne,{paging:x,displayEntries:c,entries:V,handleEntriesChange:this.handleEntriesChange,entriesArr:h,label:f,barReverse:n}),i.a.createElement(ie,{handleSearchChange:this.handleSearchChange,search:Y,searching:N,label:I,barReverse:n})),!C&&!A&&i.a.createElement("div",{className:"row"},i.a.createElement(Jt,et({autoWidth:e,bordered:r,borderless:o,btn:s,dark:l,fixed:d,hover:p,noBottomColumns:y,noRecordsFoundLabel:b,responsive:E,responsiveSm:S,responsiveMd:T,responsiveLg:k,responsiveXl:O,small:P,striped:D,theadColor:j,theadTextWhite:F,columns:B,handleSort:this.handleSort,sortable:M,tbodyColor:R,tbodyTextWhite:L,rows:W[H],sorted:G},U))),(C||A)&&i.a.createElement("div",{className:"row"},i.a.createElement(te,et({autoWidth:e,bordered:r,borderless:o,btn:s,dark:l,fixed:d,handleTableBodyScroll:this.handleTableBodyScroll,hover:p,maxHeight:g,responsive:E,responsiveSm:S,responsiveMd:T,responsiveLg:k,responsiveXl:O,scrollX:A,scrollY:C,small:P,striped:D,theadColor:j,theadTextWhite:F,columns:B,handleSort:this.handleSort,s
2ortable:M,sorted:G,tbodyColor:R,tbodyTextWhite:L,rows:W[H],translateScrollHead:K},U))),x&&i.a.createElement("div",{className:"row"},i.a.createElement(oe,{activePage:H,entries:V,filteredRows:z,info:v,pages:W,label:m,noRecordsFoundLabel:b}),i.a.createElement(le,{activePage:H,changeActivePage:this.changeActivePage,pages:W,pagesAmount:w,label:_})))}}]),e}();ce.propTypes={autoWidth:u.a.bool,barReverse:u.a.bool,bordered:u.a.bool,borderless:u.a.bool,btn:u.a.bool,children:u.a.node,className:u.a.string,dark:u.a.bool,data:u.a.oneOfType([u.a.object,u.a.string]),disableRetreatAfterSorting:u.a.bool,displayEntries:u.a.bool,entries:u.a.number,entriesLabel:u.a.oneOfType([u.a.string,u.a.number,u.a.object]),entriesOptions:u.a.arrayOf(u.a.number),exportToCSV:u.a.bool,filter:u.a.string,fixed:u.a.bool,hover:u.a.bool,info:u.a.bool,infoLabel:u.a.oneOfType([u.a.array,u.a.object,u.a.string]),maxHeight:u.a.string,noBottomColumns:u.a.bool,noRecordsFoundLabel:u.a.string,onPageChange:u.a.func,onSearch:u.a.func,onSort:u.a.func,order:u.a.arrayOf(u.a.string),pagesAmount:u.a.number,paginationLabel:u.a.arrayOf(u.a.string),paging:u.a.bool,responsive:u.a.bool,responsiveLg:u.a.bool,responsiveMd:u.a.bool,responsiveSm:u.a.bool,responsiveXl:u.a.bool,scrollX:u.a.bool,scrollY:u.a.bool,searching:u.a.bool,searchLabel:u.a.string,small:u.a.bool,sortable:u.a.bool,sortRows:u.a.arrayOf(u.a.string),striped:u.a.bool,tbodyColor:u.a.string,tbodyTextWhite:u.a.bool,theadColor:u.a.string,theadTextWhite:u.a.bool},ce.defaultProps={autoWidth:!1,barReverse:!1,bordered:!1,borderless:!1,btn:!1,dark:!1,data:{columns:[],rows:[]},disableRetreatAfterSorting:!1,displayEntries:!0,entries:10,entriesLabel:"Show entries",entriesOptions:[10,20,50,100],exportToCSV:!1,fixed:!1,hover:!1,info:!0,infoLabel:["Showing","to","of","entries"],noRecordsFoundLabel:"No matching records found",noBottomColumns:!1,order:[],pagesAmount:8,paging:!0,paginationLabel:["Previous","Next"],responsive:!1,responsiveSm:!1,responsiveMd:!1,responsiveLg:!1,responsiveXl:!1,searching:!0,searchLabel:"Search",scrollX:!1,scrollY:!1,sortable:!0,small:!1,striped:!1,theadColor:"",theadTextWhite:!1,tbodyColor:"",tbodyTextWhite:!1};var fe=function(t){function e(){var t,n;Z(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return tt(st(n=ut(this,(t=ot(e)).call.apply(t,[this].concat(i)))),"state",{isOpen:!1}),tt(st(n),"getContainer",(function(){return h.a.findDOMNode(st(n))})),tt(st(n),"addEvents",(function(){["click","touchstart","keyup"].forEach((function(t){return document.addEventListener(t,n.handleDocumentClick,!0)}))})),tt(st(n),"removeEvents",(function(){["click","touchstart","keyup"].forEach((function(t){return document.removeEventListener(t,n.handleDocumentClick,!0)}))})),tt(st(n),"handleDocumentClick",(function(t){var e=t.which,r=t.type,i=t.target,o=9===e,a="keyup"===r;if(3!==e&&(!a||o)){var s=n.getContainer();(!s.contains(i)||s===i||a&&!o)&&n.toggle()}})),tt(st(n),"handleFocus",(function(t,e){var n=yt,r=bt,i=t.which,o=t.target,a=i===n,s=i===r,u=ct(e).findIndex((function(t){return t===o}));a&&u>0&&(u-=1),s&&u<e.length-1&&(u+=1),u<0&&(u=0),e[u].focus()})),tt(st(n),"handleKeyDown",(function(t){var e=n.state.isOpen,r=n.props.disabled,i=t.which,o=t.target,a=i===gt,s=i===mt;if(!(![mt,yt,bt,gt].includes(i)||/button/i.test(o.tagName)&&a||/input|textarea/i.test(o.tagName)||(t.preventDefault(),r))){var u=n.getContainer();if(a&&e&&u!==o&&o.click(),s||!e)return n.toggle(),void u.children[0].focus();var l=u.querySelectorAll(".dropdown-menu .dropdown-item:not(.disabled)");l.length&&n.handleFocus(t,l)}})),tt(st(n),"toggle",(function(){var t=n.state.isOpen;n.setState({isOpen:!t})})),n}return it(e,r.Component),J(e,[{key:"getChildContext",value:function(){var t=this.state.isOpen,e=this.props;return{isOpen:t,dropup:e.dropup,dropright:e.dropright,dropleft:e.dropleft,toggle:this.toggle}}},{key:"componentDidMount",value:function(){this.handleEventsBinding()}},{key:"componentWillUnmount",value:function(){this.removeEvents()}},{key:"componentDidUpdate",value:function(){this.handleEventsBinding()}},{key:"handleEventsBinding",value:function(){this.state.isOpen?this.addEvents():this.removeEvents()}},{key:"render",value:function(){var t,e=vt(this.props,["toggle","disabled"]),n=e.className,r=e.children,o=e.dropup,s=e.group,u=e.size,l=e.dropright,c=e.dropleft,f=this.state.isOpen,h=a()((tt(t={"btn-group":s},"btn-group-".concat(u),!!u),tt(t,"dropdown",!s),tt(t,"show",f),tt(t,"dropup",o),tt(t,"dropright",l),tt(t,"dropleft",c),t),n);return i.a.createElement(A,null,i.a.createElement("div",{"data-test":"dropdown",className:h,onKeyDown:this.handleKeyDown},r))}}]),e}();fe.propTypes={children:u.a.node,className:u.a.string,disabled:u.a.bool,dropleft:u.a.bool,dropright:u.a.bool,dropup:u.a.bool,group:u.a.bool,size:u.a.string,tag:u.a.string,toggle:u.a.func},fe.defaultProps={dropleft:!1,dropright:!1,dropup:!1,tag:"div"},fe.childContextTypes={dropleft:u.a.bool.isRequired,dropright:u.a.bool.isRequired,dropup:u.a.bool.isRequired,isOpen:u.a.bool.isRequired,toggle:u.a.func.isRequired};var he=function(t){function e(){var t,n;Z(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return tt(st(n=ut(this,(t=ot(e)).call.apply(t,[this].concat(i)))),"onClick",(function(t){var e=n.props,r=e.disabled,i=e.header,o=e.divi
2der,a=e.onClick,s=e.toggle;r||i||o?t.preventDefault():(a&&a(t),s&&n.context.toggle(t))})),tt(st(n),"getTabIndex",(function(){var t=n.props,e=t.disabled,r=t.header,i=t.divider;return e||r||i?"-1":"0"})),n}return it(e,r.Component),J(e,[{key:"render",value:function(){var t=this.getTabIndex(),e=vt(this.props,["toggle"]),n=e.className,r=e.divider,o=e.tag,s=e.header,u=e.href,l=e.active,c=e.disabled,f=at(e,["className","divider","tag","header","href","active","disabled"]),h=this.props.toggle,d=a()({active:l,disabled:c,"dropdown-item":!r&&!s,"dropdown-header":s,"dropdown-divider":r},n);"button"===o&&(s?o="h6":r?o="div":u&&(o="a"));var p="button"===o&&(f.onClick||h)?"button":void 0;return i.a.createElement(o,et({"data-test":"dropdown-item",type:p},f,{tabIndex:t,className:d,onClick:this.onClick,href:u}))}}]),e}();he.propTypes={active:u.a.bool,children:u.a.node,className:u.a.string,disabled:u.a.bool,divider:u.a.bool,header:u.a.bool,onClick:u.a.func,tag:u.a.oneOfType([u.a.func,u.a.string]),toggle:u.a.bool},he.defaultProps={tag:"button",toggle:!0},he.contextTypes={toggle:u.a.func};var de=function(t){var e=t.tag,n=t.tabIndex,r=t.role,o=t.attributes,a=t.aria,s=t.d_key,u=t.children;return i.a.createElement(e,et({"data-test":"dropdown-menu-component",tabIndex:n,role:r},o,{"aria-hidden":a,key:s}),u)};de.propTypes={aria:u.a.bool.isRequired,attributes:u.a.object.isRequired,children:u.a.node.isRequired,d_key:u.a.string.isRequired,role:u.a.string.isRequired,tabIndex:u.a.string.isRequired,tag:u.a.any.isRequired},xt(".dropup .dropdown-menu {\r\n  top: auto !important;\r\n  bottom: 100% !important;\r\n  transform: translate3d(5px, 5px, 0px) !important;\r\n}\r\n\r\n.dropdown-menu-right {\r\n  left: 0 !important;\r\n  right: auto !important;\r\n}\r\n");var pe=function(t){function e(){return Z(this,e),ut(this,ot(e).apply(this,arguments))}return it(e,r.Component),J(e,[{key:"render",value:function(){var t,e=this.props,n=e.basic,r=e.children,o=e.className,s=e.color,u=e.flip,l=e.modifiers,c=e.right,f=e.tag,h=at(e,["basic","children","className","color","flip","modifiers","right","tag"]),d=this.context,p=d.isOpen,v=d.dropup,m=d.dropright,g=d.dropleft,y=a()((tt(t={"dropdown-menu-right":c},"dropdown-".concat(s),s),tt(t,"show",p),tt(t,"basic",n),t),"dropdown-menu",o),b=f;if(p){var w=v?"top":m?"right":g?"left":"bottom",_=c?"end":"start";h.placement="".concat(w,"-").concat(_),h.component=f}return i.a.createElement(V,{modifiers:l||!u&&{flip:{enabled:!1}},eventsEnabled:!0,positionFixed:!1,placement:h.placement,"data-test":"dropdown-menu"},(function(t){var e=t.placement,n=t.ref,o=t.style;return i.a.createElement(b,{ref:n,style:o,"data-placement":e,className:y},i.a.createElement(de,{isOpen:p,tag:b,tabIndex:"-1",role:"menu",attributes:h,aria:!p,d_key:"dropDownMenu",color:s},r))}))}}]),e}();pe.propTypes={children:u.a.node.isRequired,basic:u.a.bool,className:u.a.string,flip:u.a.bool,modifiers:u.a.object,right:u.a.bool,tag:u.a.string},pe.defaultProps={basic:!1,className:"",flip:!0,right:!1,tag:"div",color:!1},pe.contextTypes={isOpen:u.a.bool.isRequired,dropup:u.a.bool.isRequired,dropright:u.a.bool.isRequired,dropleft:u.a.bool.isRequired,color:u.a.oneOfType([u.a.oneOf(["primary","default","secondary","success","dark","danger","info","warning","ins"]),u.a.bool])};var ve=function(t){var e,n=lt(Object(r.useState)({}),2),o=n[0],s=n[1],u=function(t){t.stopPropagation();var e={top:t.clientY,left:t.clientX,time:Date.now()};s(e)},l=t.action,c=t.active,f=t.block,h=t.children,d=t.circle,p=t.className,v=t.color,m=t.disabled,g=t.download,y=t.flat,b=t.gradient,w=t.
2innerRef,_=t.outline,x=t.role,E=t.rounded,k=t.size,T=t.social,S=t.tag,O=t.target,A=t.type,C=at(t,["action","active","block","children","circle","className","color","disabled","download","flat","gradient","innerRef","outline","role","rounded","size","social","tag","target","type"]),N=a()(""!==v&&"btn-".concat(v),v&&_&&"btn-outline-".concat(v),"btn","Ripple-parent",b&&"".concat(b,"-gradient"),(tt(e={active:c,"btn-circle":d,"btn-block":f,"btn-action":l},"btn-".concat(T),T),tt(e,"btn-".concat(k),k),tt(e,"disabled",m),e),p);return C.href&&"button"===S&&(S="a"),i.a.createElement(S,et({"data-test":"button",type:"button"!==S||A?A:"button",target:O,role:"a"!==S||x?x:"button",className:N,ref:w,onMouseUp:u,onTouchStart:u},C,{download:g,disabled:m}),h,!m&&i.a.createElement(It,{cursorPos:o,outline:_,flat:y||E}))};ve.defaultProps={color:"default",tag:"button"},ve.propTypes={action:u.a.bool,active:u.a.bool,block:u.a.bool,children:u.a.node,circle:u.a.bool,className:u.a.string,color:u.a.string,disabled:u.a.bool,download:u.a.string,flat:u.a.bool,innerRef:u.a.oneOfType([u.a.func,u.a.string]),onClick:u.a.func,role:u.a.string,size:u.a.string,social:u.a.string,tag:u.a.string,target:u.a.string,type:u.a.string};var me=function(t){function e(){var t,n;Z(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return tt(st(n=ut(this,(t=ot(e)).call.apply(t,[this].concat(i)))),"onClick",(function(t){var e=n.props,r=e.disabled,i=e.nav,o=e.tag,a=e.onClick,s=n.context.toggle;r?t.preventDefault():(i&&!o&&t.preventDefault(),a&&a(t),s(t))})),n}return it(e,i.a.Component),J(e,[{key:"render",value:function(){var t=this,e=this.props,n=e.className,r=e.color,o=e.caret,s=e.nav,u=e.tag,l=at(e,["className","color","caret","nav","tag"]),c=this.context.isOpen,f=l["aria-label"]||"Toggle Dropdown",h=a()({"dropdown-toggle":o,"nav-link":s},n),d=l.children||i.a.createElement("span",{className:"sr-only"},f),p=u;return s&&!u?(p="a",l.href="#"):u||(p=ve,l.color=r),i.a.createElement(Y,{"data-test":"dropdown-toggle"},(function(e){var n=e.ref;return u||s?i.a.createElement(p,et({},l,{className:h,onClick:t.onClick,"aria-expanded":c,ref:n}),d):i.a.createElement(p,et({},l,{className:h,onClick:t.onClick,"aria-expanded":c,innerRef:n}),d)}))}}]),e}();me.propTypes={"aria-haspopup":u.a.bool,caret:u.a.bool,children:u.a.node,className:u.a.string,color:u.a.string,disabled:u.a.bool,nav:u.a.bool,onClick:u.a.func,tag:u.a.oneOfType([u.a.func,u.a.string])},me.defaultProps={"aria-haspopup":!0,color:"secondary"},me.contextTypes={isOpen:u.a.bool.isRequired,toggle:u.a.func.isRequired};var ge=function(t){var e=t.color,n=t.className,r=t.tag,o=at(t,["color","className","tag"]),s=a()("edge-header",e,n);return i.a.createElement(r,et({"data-test":"edgeHeader"},o,{className:s}))};ge.propTypes={className:u.a.string,color:u.a.string,tag:u.a.oneOfType([u.a.func,u.a.string])},ge.defaultProps={color:"deep-purple",tag:"div"};var ye=function(t){var e=t.color,n=t.children,r=t.className,o=t.tag,s=at(t,["color","children","className","tag"]),u=a()("page-footer",e&&e,r);return i.a.createElement(o,et({"data-test":"footer"},s,{className:u}),n)};ye.propTypes={children:u.a.node,className:u.a.string,color:u.a.string,tag:u.a.oneOfType([u.a.func,u.a.string])},ye.defaultProps={tag:"footer"};u.a.node,u.a.string,u.a.bool;var be=function(t){var e=t.className,n=t.tag,r=at(t,["className","tag"]),o=a()("container free-bird",e);return i.a.createElement(n,et({"data-test":"freebird"},r,{className:o}))};be.propTypes={className:u.a.string,tag:u.a.oneOfType([u.a.func,u.a.string])},be.defaultProps={tag:"div"},xt(".hamburger-button__checkbox {\r\n  display: none;\r\n}\r\n\r\n.hamburger-button__button {\r\n  background-color: transparent;\r\n  height: 100%;\r\n  width: 100%;\r\n  text-align: center;\r\n  cursor: pointer;\r\n  top: -5px;\r\n}\r\n\r\nlabel.hamburger-button__button {\r\n  margin-bottom: 0;\r\n}\r\n\r\n#nav-icon1 {\r\n  width: 1.5em;\r\n  height: 1.5em;\r\n  position: relative;\r\n  -webkit-transform: rotate(0deg);\r\n  -moz-transform: rotate(0deg);\r\n  -o-transform: rotate(0deg);\r\n  transform: rotate(0deg);\r\n  -webkit-transition: .5s ease-in-out;\r\n  -moz-transition: .5s ease-in-out;\r\n  -o-transition: .5s ease-in-out;\r\n  transition: .5s ease-in-out;\r\n  cursor: pointer;\r\n}\r\n\r\n#nav-icon1 span {\r\n  display: block;\r\n  position: absolute;\r\n  height: 3px;\r\n  width: 100%;\r\n  border-radius: 1px;\r\n  background-color: #fff;\r\n  opacity: 1;\r\n  left: 0;\r\n  -webkit-transform: rotate(0deg);\r\n  -moz-transform: rotate(0deg);\r\n  -o-transform: rotate(0deg);\r\n  transform: rotate(0deg);\r\n  -webkit-transition: .25s ease-in-out;\r\n  -moz-transition: .25s ease-in-out;\r\n  -o-transition: .25s ease-in-out;\r\n  transition: .25s ease-in-out;\r\n}\r\n\r\n#nav-icon1 span:nth-child(1) {\r\n  top: 5px;\r\n}\r\n\r\n#nav-icon1 span:nth-child(2) {\r\n  top: 16px;\r\n}\r\n\r\n#nav-icon1 span:nth-child(3) {\r\n  top: 27px;\r\n}\r\n\r\n.hamburger-button__checkbox:checked+#nav-icon1 span:nth-child(1) {\r\n  top: 16px;\r\n  -webkit-transform: rotate(135deg);\r\n  -moz-transform: rotate(135deg);\r\n  -o-transform: rotate(135deg);\r\n  transform: rotate(135deg);\r\n}\r\n\r\n.hamburger-button__checkbox:checked+#nav-icon1 span:nth-child(2) {\r\n  opacity: 0;\r\n  left: -60px;\r\n}\r\n\r\n.hamburger-button__checkbox:checked+#nav-icon1 span:nth-child(3) {\r\n  top: 16px;\r\n  -webkit-transform: rotate(-135deg);\r\n  -moz-transform: rotate(-135deg);\r\n  -o-transform: rotate(-135deg);\r\n  transform: rotate(-135deg);\r\n}\r\n");u.a.string,u.a.string,u.a.string;var we=function(t){function e(){var t,n;Z(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return tt(st(n=ut(this,(t=ot(e)).call.apply(t,[this].concat(i)))),"state",{stateWidth:"",stateHeight:"",ratio:""}),tt(st(n),"componentDidMount",(function(){var t=n.props.ratio,e=n.props,r=e.width,i=e.he
2ight,o=9/16;if(t){var a=t.split("by")[0]/t.split("by")[1];"number"==typeof o&&(o=a)}r&&i||(r?i=r*o:i&&(r=i*(1/o)),n.setState(rt({},n.state,{width:r,height:i,ratio:t})))})),n}return it(e,r.Component),J(e,[{key:"render",value:function(){var t=this.props,e=t.allowFullScreen,n=t.className,r=t.id,o=t.name,s=t.onMouseOver,u=t.onMouseOut,l=t.onLoad,c=t.sandbox,f=t.src,h=t.style,d=t.title,p=void 0===d?"":d,v=t.ratio,m=t.height,g=t.width,y=this.state,b=y.stateWidth,w=y.stateHeight,_=a()("embed-responsive-item",n),x=a()(!(m||g)&&"embed-responsive",v?"embed-responsive-".concat(v):"embed-responsive-16by9"),E={src:f,id:r||!1,frameBorder:"0",target:"_parent",allowFullScreen:e||!0,height:w||"100%",name:o||void 0,width:b||"100%",onLoad:l||void 0,onMouseOver:s||void 0,onMouseOut:u||void 0,sandbox:c||void 0,style:h||void 0};return E=wt(E),i.a.createElement("div",{"data-test":"iframe",className:x},i.a.createElement("iframe",et({title:p,className:_},E)))}}]),e}();we.propTypes={src:u.a.string.isRequired,allowFullScreen:u.a.bool,className:u.a.string,height:u.a.number,id:u.a.string,name:u.a.string,onLoad:u.a.func,onMouseOut:u.a.func,onMouseOver:u.a.func,ratio:u.a.string,
2sandbox:u.a.string,styles:u.a.object,title:u.a.string,width:u.a.number};var _e=function(t){function e(){var t,n;Z(this,e);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return tt(st(n=ut(this,(t=ot(e)).call.apply(t,[this].concat(o)))),"state",{innerValue:n.props.value||n.props.valueDefault,isFocused:!1,isPristine:!0}),tt(st(n),"inputElementRef",i.a.createRef()),tt(st(n),"onBlur",(function(t){t.stopPropagation();var e=n.props.onBlur;n.setState({isFocused:!1}),e&&e(t)})),tt(st(n),"onFocus",(function(t){t.stopPropagation();var e=n.props.onFocus;n.setState({isFocused:!0}),e&&e(t)})),tt(st(n),"onChange",(function(t){t.stopPropagation();var e=n.props,r=e.type,i=e.onChange,o=e.getValue;"checkbox"!==r&&"radio"!==r&&n.setState({innerValue:t.target.value,isPristine:!1}),i&&i(t),o&&o(t.target.value)})),tt(st(n),"onInput",(function(t){t.stopPropagation();var e=n.props,r=e.type,i=e.onInput;"checkbox"!==r&&"radio"!==r&&n.setState({innerValue:t.target.value,isPristine:!1}),i&&i(t)})),tt(st(n),"setFocus",(function(){n.inputElementRef.current.focus()})),n}return it(e,i.a.Component),J(e,[{key:"componentDidMount",value:function(){var t=this,e=this.props,n=e.inputRef,r=e.focused,i=e.indeterminate;n&&n(this.inputElementRef.current),!0===r&&this.setState({isFocused:r},(function(){t.setFocus()})),i&&(this.inputElementRef.current.indeterminate=!0)}},{key:"render",value:function(){var t=this,e=this.props,n=e.background,r=e.children,o=e.className,s=e.containerClass,u=e.disabled,l=e.error,c=e.filled,f=(e.focused,e.gap),h=(e.getValue,e.group),d=e.hint,p=e.icon,v=e.iconBrand,m=e.iconClass,g=e.iconLight,y=e.iconRegular,b=e.iconSize,w=e.id,_=(e.indeterminate,e.inputRef,e.label),x=e.labelClass,E=e.labelId,k=e.labelStyles,T=e.noTag,S=e.onIconClick,O=e.onIconMouseEnter,A=e.onIconMouseLeave,C=e.outline,N=e.size,I=e.success,P=e.tag,M=e.type,D=e.validate,R=(e.value,e.valueDefault,at(e,["background","children","className","containerClass","disabled","error","filled","focused","gap","getValue","group","hint","icon","iconBrand","iconClass","iconLight","iconRegular","iconSize","id","indeterminate","inputRef","label","labelClass","labelId","labelStyles","noTag","onIconClick","onIconMouseEnter","onIconMouseLeave","outline","size","success","tag","type","validate","value","valueDefault"])),L=this.state,j=L.innerValue,F=L.isFocused,U=(!!j||!!d||F||0===j)&&"checkbox"!==M&&"radio"!==M,q="",B="";"textarea"===M?(B=C?"form-control":"md-textarea form-control",q="textarea"):(B="form-control",q="input",R.type=M),R.disabled=u;var V=a()(B,!!N&&"form-control-".concat(N),!!D&&"validate",!!c&&"filled-in",!!f&&"with-gap","checkbox"===M&&!f&&"form-check-input","radio"===M&&"form-check-input",o),z=a()("checkbox"===M||"radio"===M?"boolean"==typeof _&&_?"d-flex":"form-check":"md-form",!!h&&"form-group",!!N&&"form-".concat(N),C&&"md-outline",n&&"md-bg",s),W=a()(!(!U||!F)&&"active",m,"prefix"),H=a()(!!U&&"active",!!u&&"disabled","checkbox"===M&&"form-check-label","radio"===M&&"form-check-label",x),Y=function(){return i.a.createElement(i.a.Fragment,null,p&&i.a.createElement(_t,{icon:p,size:b,brand:v,light:g,regular:y,className:W,onClick:S||t.setFocus,onMouseEnter:O,onMouseLeave:A}),i.a.createElement(q,et({"data-test":"input"},R,{className:V,id:w,placeholder:d,ref:t.inputElementRef,value:j,onBlur:t.onBlur,onChange:t.onChange,onInput:t.onInput,onFocus:t.onFocus,"aria-disabled":u})),_&&i.a.createElement("label",{className:H,htmlFor:w,"data-error":l,"data-success":I,id:E,onClick:t.setFocus,style:k,"aria-labelledby":E},_),r)};return T?Y():i.a.createElement(P,{className:z},Y())}}],[{key:"getDerivedStateFromProps",value:function(t,e){return t.value!==e.value?{innerValue:t.value}:null}}]),e}();_e.propTypes={children:u.a.node,className:u.a.string,containerClass:u.a.string,disabled:u.a.bool,error:u.a.string,filled:u.a.bool,focused:u.a.oneOfType([u.a.bool,u.a.string]),gap:u.a.bool,getValue:u.a.func,group:u.a.bool,hint:u.a.string,icon:u.a.string,iconBrand:u.a.bool,iconClass:u.a.string,iconLight:u.a.bool,iconRegular:u.a.bool,iconSize:u.a.string,id:u.a.string,indeterminate:u.a.bool,inputRef:u.a.oneOfType([u.a.object,u.a.func]),label:u.a.oneOfType([u.a.string,u.a.number,u.a.object,u.a.bool]),labelClass:u.a.string,labelId:u.a.string,labelStyles:u.a.object,noTag:u.a.bool,onBlur:u.a.func,onChange:u.a.func,onFocus:u.a.func,onIconClick:u.a.func,onIconMouseEnter:u.a.func,onIconMouseLeave:u.a.func,onInput:u.a.func,outline:u.a.bool,size:u.a.string,
2success:u.a.string,tag:u.a.oneOfType([u.a.func,u.a.string]),type:u.a.string,validate:u.a.bool,value:u.a.oneOfType([u.a.number,u.a.string]),valueDefault:u.a.oneOfType([u.a.number,u.a.string])},_e.defaultProps={className:"",containerClass:"",disabled:!1,error:"",filled:!1,gap:!1,group:!1,hint:void 0,icon:"",iconBrand:!1,focused:!1,indeterminate:!1,iconClass:"",iconLight:!1,onIconMouseEnter:function(){},onIconMouseLeave:function(){},iconRegular:!1,iconSize:void 0,id:void 0,noTag:!1,outline:!1,label:" ",labelClass:"",labelId:"",size:"",success:"",tag:"div",type:"text",validate:!1,valueDefault:""};var xe=function(t){var e=t.append,n=t.appendClassName,r=t.ariaLabel,o=t.children,s=t.className,u=t.containerClassName,l=t.containerId,c=t.hint,f=t.id,h=t.inputs,d=(t.inputTag,t.label),p=t.labelClassName,v=t.material,m=t.prepend,g=t.prependClassName,y=t.size,b=t.tag,w=t.textClassName,_=t.type,x=t.value,E=t.valueDefault,k=t.getValue,T=t.onChange,S=at(t,["append","appendClassName","ariaLabel","children","className","containerClassName","containerId","hint","id","inputs","inputTag","label","labelClassName","material","prepend","prependClassName","size","tag","textClassName","type","value","valueDefault","getValue","onChange"]),O=a()("input-group",v&&"md-form",y&&"input-group-".concat(y),u),A=a()(s),C=a()("input-group-prepend",g),N=a()("input-group-append",n),I=a()("input-group-text",v&&"md-addon",w);return i.a.createElement(i.a.Fragment,null,d&&i.a.createElement("label",{htmlFor:f,className:p},d),i.a.createElement(b,et({"data-test":"input-group"},S,{className:O,id:l}),m&&i.a.createElement("div",{className:C},"string"==typeof m?i.a.createElement("span",{className:I},m):m),h||i.a.createElement(_e,{noTag:!0,type:_,className:A,id:f,value:x,valueDefault:E,hint:c,"aria-label":r,onChange:function(t){t.persist(),T&&T(t),k&&k(t.target.value)}}),e&&i.a.createElement("div",{className:N},"string"==typeof e?i.a.createElement("span",{className:I},e):e),o))};xe.propTypes={append:u.a.oneOfType([u.a.node,u.a.string]),appendClassNames:u.a.string,ariaLabel:u.a.string,children:u.a.node,className:u.a.string,containerClassName:u.a.string,containerId:u.a.string,getValue:u.a.func,hint:u.a.string,id:u.a.string,inputs:u.a.node,label:u.a.string,labelClassName:u.a.string,material:u.a.bool,onChange:u.a.func,prepend:u.a.any,prependClassName:u.a.string,size:u.a.string,tag:u.a.oneOfType([u.a.func,u.a.string]),textClassName:u.a.string,type:u.a.string,value:u.a.string,valueDefault:u.a.string},xe.defaultProps={tag:"div",type:"text"};u.a.string,u.a.func;u.a.node,u.a.string,u.a.bool;var Ee=function(t){var e=lt(Object(r.useState)({}),2),n=e[0],o=e[1],s=t.active,u=t.children,l=t.className,c=t.disabled,f=(t.link,t.to),h=at(t,["active","children","className","disabled","link","to"]),d=a()("nav-link",c?"disabled":"Ripple-parent",s&&"active",l),p=function(t){if(!c){t.stopPropagation();var e={top:t.clientY,left:t.clientX,time:Date.now()};o(e)}};return i.a.createElement(G.b,et({"data-test":"link-router",className:d,onMouseUp:p,onTouchStart:p,to:f},h),u,!c&&i.a.createElement(It,{cursorPos:n}))};Ee.propTypes={active:u.a.bool,children:u.a.node,className:u.a.string,disabled:u.a.bool,to:u.a.string},Ee.defaultProps={active:!1,className:"",disabled:!1};var ke=function(t){var e=t.children,n=t.className,r=t.tag,o=at(t,["children","className","tag"]),s=a()("list-group",n);return i.a.createElement(r,et({"data-test":"list-group"},o,{className:s}),e)};ke.propTypes={children:u.a.node,className:u.a.string,tag:u.a.oneOfType([u.a.func,u.a.string])},ke.defaultProps={tag:"ul"};var Te=function(t){var e,n=t.active,r=t.children,o=t.className,s=t.color,u=t.disabled,l=t.hover,c=(t.success,t.info,t.warning,t.danger,t.tag),f=at(t,["active","children","className","color","disabled","hover","success","info","warning","danger","tag"]),h=a()("list-group-item",o,(tt(e={active:n,disabled:u},"list-group-item-".concat(s)," color"),tt(e,"list-group-item-action",l),e));return f.href&&"li"===c&&(c="a"),i.a.createElement(c,et({"data-test":"list-group-item"},f,{className:h}),r)};Te.propTypes={active:u.a.bool,children:u.a.node,className:u.a.string,color:u.a.oneOf(["primary","secondary","success","danger","warning","info","light","dark"]),danger:u.a.bool,disabled:u.a.bool,hover:u.a.bool,info:u.a.bool,success:u.a.bool,tag:u.a.oneOfType([u.a.func,u.a.string]),warning:u.a.bool},Te.defaultProps={tag:"li"};u.a.bool,u.a.bool,u.a.node,u.a.string,u.a.bool,u.a.bool,u.a.bool,u.a.bool,u.a.bool,u.a.bool,u.a.bool,u.a.bool,u.a.bool,u.a.bool,u.a.bool,u.a.bool,u.a.oneOfType([u.a.func,u.a.string]),u.a.bool,u.a.bool,xt(".overflow-y-scroll {\r\n  overflow-y: 
2scroll !important;\r\n}\r\n");var Se=function(t){function e(){var t,n;Z(this,e);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return tt(st(n=ut(this,(t=ot(e)).call.apply(t,[this].concat(o)))),"state",{isOpen:n.props.isOpen||!1}),tt(st(n),"modalContent",i.a.createRef()),tt(st(n),"componentDidMount",(function(){document.body.classList.add("modal-open")})),tt(st(n),"componentWillUnmount",(function(){document.body.classList.remove("modal-open")})),tt(st(n),"componentDidUpdate",(function(t,e){var r=n.props,i=r.isOpen,o=r.overflowScroll?"overflow-y-scroll":"overflow-hidden";e.isOpen!==i&&n.setState({isOpen:i},(function(){i?document.body.classList.add(o):document.body.classList.remove(o)}))})),tt(st(n),"handleOnEntered",(function(t,e){"backdrop"===t&&!1===n.props.fade||(e.classList.add("show"),n.props.autoFocus&&e.focus(),"modal"===t&&n.props.showModal&&n.props.showModal())})),tt(st(n),"handleOnExit",(function(t,e){"backdrop"===t&&!1===n.props.fade||(e.classList.remove("show"),"modal"===t&&n.props.hideModal&&n.props.hideModal())})),tt(st(n),"handleOnExited",(function(){n.props.hiddenModal&&n.props.hiddenModal()})),tt(st(n),"handleBackdropClick",(function(t){!n.props.backdrop||t.target.closest('[role="dialog"]')&&!t.target.classList.contains("modal")||t.clientX>t.target.clientWidth||t.clientY>t.target.clientHeight||n.modalContent.contains(t.target)||n.props.disableBackdrop||n.props.toggle()})),tt(st(n),"handleEscape",(function(t){n.props.keyboard&&27===t.keyCode&&(t.preventDefault(),n.props.toggle())})),n}return it(e,r.Component),J(e,[{key:"render",value:function(){var t,e=this,n=this.props,r=n.animation,o=n.backdrop,s=n.backdropClassName,u=n.modalStylesWithoutBackdrop,l=n.cascading,c=n.centered,f=n.children,h=n.className,d=n.contentClassName,p=n.disableFocusTrap,v=n.fade,m=n.frame,y=n.fullHeight,b=n.id,w=n.inline,_=n.modalStyle,x=n.noClickableBodyWithoutBackdrop,E=n.position,k=n.role,T=n.side,S=n.size,O=n.tabIndex,A=n.wrapClassName,C=n.wrapperStyles,N=this.state.isOpen,I=v?300:0,P=rt({position:"fixed"},u),M=!o&&N&&!x,D=a()((tt(t={"cascading-modal":l,"modal-side":T,"modal-full-height":y,"modal-frame":m,"modal-dialog-centered":c},"modal-".concat(S),S),tt(t,"modal-".concat(E),E),tt(t,"modal-notify white-text modal-".concat(_),_),t),"modal-dialog",h),R=E.split("-"),L=a()({modal:!w,fade:v,top:v&&!r&&!E,animation:v&&r},v&&E&&E&&R.length>1?R[1]:R[0],A),j=a()("modal-backdrop",v?"fade":"show",s),F=a()("modal-content",d),U=wt({style:{display:"block",position:M&&"relative",width:M&&0},id:b,tabIndex:O,role:k,"aria-hidden":"true"}),q=M?P:{},B=i.a.createElement("div",et({"data-test":"modal",onKeyUp:this.handleEscape,className:L,style:C},U),i.a.createElement("div",{style:q,className:D,role:"document"},i.a.createElement("div",{ref:function(t){return e.modalContent=t},className:F},f)));return i.a.createElement(i.a.Fragment,null,o&&i.a.createElement(g,{timeout:I,in:N,appear:N,mountOnEnter:!0,unmountOnExit:!0,onEntered:function(t){return e.handleOnEntered("backdrop",t)},onExit:function(t){return e.handleOnExit("backdrop",t)},onExited:this.handleOnExited},i.a.createElement("div",{className:j})),i.a.createElement(g,{timeout:I,in:N,appear:N,mountOnEnter:!0,unmountOnExit:!0,onMouseDown:function(t){return e.handleBackdropClick(t)},onEntered:function(t){return e.handleOnEntered("modal",t)},onExit:function(t){return e.handleOnExit("modal",t)}},p?B:i.a.createElement(X.a,null,B)))}}]),e}();Se.defaultProps={autoFocus:!0,backdrop:!0,modalStylesWithoutBackdrop:{top:0,left:0,right:0,bottom:0},backdropTransitionTimeout:150,disableBackdrop:!1,disableFocusTrap:!0,fade:!0,isOpen:!1,keyboard:!0,modalTransitionTimeout:300,overflowScroll:!0,position:"",role:"dialog",tabIndex:"-1",zIndex:1050,noClickableBodyWithoutBackdrop:!1},Se.propTypes={animation:u.a.string,backdrop:u.a.bool,backdropClassName:u.a.string,cascading:u.a.bool,centered:u.a.bool,children:u.a.node,className:u.a.string,contentClassName:u.a.string,disableBackdrop:u.a.bool,disableFocusTrap:u.a.bool,fade:u.a.bool,frame:u.a.bool,fullHeight:u.a.bool,hiddenModal:u.a.func,hideModal:u.a.func,id:u.a.string,keyboard:u.a.bool,modalClassName:u.a.string,modalStyle:u.a.string,noClickableBodyWithoutBackdrop:u.a.bool,overflowScroll:u.a.bool,position:u.a.string,role:u.a.string,
2showModal:u.a.func,side:u.a.bool,size:u.a.string,tabIndex:u.a.string,wrapClassName:u.a.string,wrapperStyles:u.a.object};var Oe=function(t){var e=t.className,n=t.children,r=at(t,["className","children"]),o=a()("modal-body",e);return i.a.createElement("div",et({"data-test":"modal-body"},r,{className:o}),n)};Oe.propTypes={children:u.a.node,className:u.a.string};var Ae=function(t){var e=t.className,n=t.children,r=t.center,o=t.start,s=t.end,u=t.around,l=t.between,c=at(t,["className","children","center","start","end","around","between"]),f=a()("modal-footer",e,{"justify-content-start":o,"justify-content-end":s,"justify-content-center":r,"justify-content-between":l,"justify-content-around":u});return i.a.createElement("div",et({"data-test":"modal-footer"},c,{className:f}),n)};Ae.propTypes={children:u.a.node,className:u.a.string};var Ce=function(t){var e,n=t.className,r=t.children,o=t.toggle,s=t.tag,u=t.closeAriaLabel,l=t.titleClass,c=at(t,["className","children","toggle","tag","closeAriaLabel","titleClass"]),f=a()("modal-header",n),h=a()("modal-title",l);return o&&(e=i.a.createElement("button",{type:"button",onClick:o,className:"close","aria-label":u},i.a.createElement("span",{"aria-hidden":"true"},String.fromCharCode(215)))),i.a.createElement("div",et({"data-test":"modal-header"},c,{className:f}),i.a.createElement(s,{className:h},r),e)};Ce.propTypes={children:u.a.node,className:u.a.string,closeAriaLabel:u.a.string,tag:u.a.oneOfType([u.a.func,u.a.string]),toggle:u.a.func},Ce.defaultProps={tag:"h4",closeAriaLabel:"Close"};var Ne=function(t){var e=t.children,n=t.className,r=t.tag,o=t.tabs,s=t.color,u=t.classicTabs,l=t.pills,c=t.header,f=at(t,["children","className","tag","tabs","color","classicTabs","pills","header"]),h=a()("nav",o&&"md-tabs",l&&"md-pills",c&&"nav-pills card-header-pills",!(!s||o||u||l)&&s,!(!l||!s)&&"pills-".concat(s),!(!o&&!u||!s)&&"tabs-".concat(s),n);return i.a.createElement(r,et({"data-test":"nav"},f,{className:h}),e)};Ne.propTypes={children:u.a.node,classicTabs:u.a.bool,className:u.a.string,color:u.a.string,header:u.a.bool,pills:u.a.bool,tabs:u.a.bool,tag:u.a.oneOfType([u.a.func,u.a.string])},Ne.defaultProps={tag:"ul",classicTabs:!1,pills:!1,tabs:!1,header:!1};var Ie=function(t){function e(){var t,n;Z(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return tt(st(n=ut(this,(t=ot(e)).call.apply(t,[this].concat(i)))),"state",{isCollapsed:!1}),tt(st(n),"handleScroll",(function(){var t=n.props.scrollingNavbarOffset||50;window.pageYOffset>t?n.setState({isCollapsed:!0}):n.setState({isCollapsed:!1})})),n}return it(e,r.Component),J(e,[{key:"componentDidMount",value:function(){var t=this.props,e=t.scrolling,n=t.scrollingNavbarOffset;(e||n)&&window.addEventListener("scroll",this.handleScroll)}},{key:"componentWillUnmount",value:function(){var t=this.props,e=t.scrolling,n=t.scrollingNavbarOffset;(e||n)&&window.removeEventListener("scroll",this.handleScroll)}},{key:"render",value:function(){var t,e,n=this.props,r=n.expand,o=n.light,s=n.dark,u=n.sticky,l=n.fixed,c=n.scrolling,f=n.color,h=n.className,d=n.scrollingNavbarOffset,p=n.tag,v=n.double,m=n.transparent,g=at(n,["expand","light","dark","sticky","fixed","scrolling","color","className","scrollingNavbarOffset","tag","double","transparent"]),y=this.state.isCollapsed,b=a()((tt(t={"navbar-light":o,"navbar-dark":s},"sticky-".concat(u),u),tt(t,"fixed-".concat(l),l),tt(t,"scrolling-navbar",c||d),tt(t,"double-nav",v),tt(t,"top-nav-collapse",y),tt(t,"".concat(f),f&&m?y:f),t),"navbar",!1!==(e=r)&&(!0===e||"xs"===e?"navbar-expand":"navbar-expand-".concat(e)),h);return i.a.createElement(p,et({"data-test":"navbar"},g,{className:b,role:"navigation"}))}}]),e}();Ie.propTypes={className:u.a.string,color:u.a.string,dark:u.a.bool,double:u.a.bool,expand:u.a.oneOfType([u.a.bool,u.a.string]),fixed:u.a.string,light:u.a.bool,scrolling:u.a.bool,scrollingNavbarOffset:u.a.number,sticky:u.a.string,tag:u.a.oneOfType([u.a.func,u.a.string]),transparent:u.a.bool},Ie.defaultProps={tag:"nav",expand:!1,scrolling:!1};var Pe=function(t){var e=t.className,n=t.href,r=at(t,["className","href"]),o=a()("navbar-brand",e);return n?i.a.createElement(G.c,et({"data-test":"navbar-brand",to:n},r,{className:o})):i.a.createElement("div",et({"data-test":"navbar-brand"},r,{className:o}))};Pe.propTypes={className:u.a.string,href:u.a.string};var Me=function(t){var e=t.children,n=t.className,r=t.right,o=t.left,s=t.tag,u=at(t,["children","className","right","left","tag"]),l=a()("navbar-nav",r?"ml-auto":o?"mr-auto":"justify-content-around w-100",n);return i.a.createElement(s,et({"data-test":"navbar-nav"},u,{className:l}),e)};Me.propTypes={children:u.a.node,className:u.a.string,left:u.a.bool,right:u.a.bool,tag:u.a.oneOfType([u.a.func,u.a.string])},Me.defaultProps={tag:"ul"};var De=function(t){var e=t.right,n=t.left,r=t.children,o=t.className,s=t.tag,u=t.image,l=at(t,["right","left","children","className","tag","image"]),c=a()({"navbar-toggler-right":e,"navbar-toggler-left":n},"navbar-toggler",o);return i.a.createElement(s,et({"data-test":"navbar-toggler"},l,{className:c}),r||(u?i.a.createElement("span",{className:"navbar-toggler-icon",style:{backgroundImage:'url("'.concat(u,'")')}}):i.a.createElement("span",{className:"navbar-toggler-icon"})))};De.propTypes={children:u.a.node,className:u.a.string,image:u.a.string,left:u.a.bool,right:u.a.bool,tag:u.a.oneOfType([u.a.func,u.a.string]),type:u.a.string},De.defaultProps={tag:"button",type:"button"};var Re=function(t){var e=t.children,n=t.className,r=t.active,o=t.text,s=t.tag,u=at(t,["children","className","active","text","tag"]),l=a()("nav-item",r&&"active",o&&"navbar-text",n);return i.a.createElement(s,et({"data-test":"nav-item"},u,{className:l}),e)};Re.propTypes={active:u.a.bool,children:u.a.node,className:u.a.string,tag:u.a.oneOfType([u.a.func,u.a.string])},Re.defaultProps={tag:"li"};var Le=function(t){var e=lt(Object(r.useState)({}),2),n=e[0],o=e[1],s=t.children,u=t.className,l=t.disabled,c=t.active,f=t.to,h=t.link,d=at(t,["children","className","disabled","active","to","link"]),p=a()("nav-link",l?"disabled":"Ripple-parent",c&&"active",u),v=function(t){if(!l){t.stopPropagation();var e={top:t.clientY,left:t.clientX,time:Date.now()};o(e)}},m=h?Ee:G.c;return i.a.createElement(m,et({"data-test":"nav-link",className:p,onMouseUp:v,onTouchStart:v,to:f},d),s,!l&&i.a.createElement(It,{cursorPos:n}))};
2Le.propTypes={active:u.a.bool,children:u.a.node,className:u.a.string,disabled:u.a.bool,link:u.a.bool,to:u.a.string},Le.defaultProps={active:!1,className:"",disabled:!1,link:!1};var je=function(t){function e(){var t,n;Z(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return tt(st(n=ut(this,(t=ot(e)).call.apply(t,[this].concat(i)))),"state",{componentState:n.props.show?"show":"hide"}),tt(st(n),"hide",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;"object"===$(t)&&(t=0),setTimeout((function(){n.setState({componentState:""},(function(){setTimeout((function(){n.setState({componentState:"hide"})}),150)}))}),t)})),n}return it(e,i.a.Component),J(e,[{key:"componentDidMount",value:function(){var t=this.props.autohide;t>0&&this.hide(t)}},{key:"render",value:function(){var t=this.props,e=t.tag,n=t.className,r=(t.show,t.fade),o=t.message,s=t.bodyClassName,u=t.icon,l=t.iconClassName,c=t.title,f=t.titleClassName,h=t.text,d=t.closeClassName,p=at(t,["tag","className","show","fade","message","bodyClassName","icon","iconClassName","title","titleClassName","text","closeClassName"]),v=this.state.componentState,m=a()("toast",r&&"fade",v,n),g=a()("toast-header",f),y=a()("mr-2",l),b=a()("toast-body",s),w=a()("ml-2","mb-1",d);return i.a.createElement(e,et({"data-test":"notification"},p,{className:m}),i.a.createElement("div",{className:g},i.a.createElement(_t,{icon:u,className:y,size:"lg"}),i.a.createElement("strong",{className:"mr-auto"},c),i.a.createElement("small",null,h),i.a.createElement(Wt,{className:w,onClick:this.hide})),i.a.createElement("div",{className:b},o))}}]),e}();je.propTypes={autohide:u.a.number,bodyClassName:u.a.string,bodyColor:u.a.string,className:u.a.string,closeClassName:u.a.string,fade:u.a.bool,iconClassName:u.a.string,message:u.a.string,show:u.a.bool,tag:u.a.oneOfType([u.a.func,u.a.string]),text:u.a.string,title:u.a.string,titleClassName:u.a.string,titleColor:u.a.string},je.defaultProps={icon:"square",tag:"div",closeClassName:"text-dark"},xt('.popover {\r\n  width: auto;\r\n  background-color: white;\r\n  color: #97999b;\r\n  text-align: center;\r\n  display: inline-block;\r\n  border-radius: 3px;\r\n  position: absolute;\r\n  font-size: 0.83em;\r\n  font-weight: normal;\r\n  border: 1px rgb(0, 0, 0) solid;\r\n  /* z-index: 200000; */\r\n  z-index: 10;\r\n  /* max-width: initial; */\r\n  max-width: 274px;\r\n  text-align: start;\r\n  background-color: #fff;\r\n  border: 1px solid rgba(0, 0, 0, 0.2);\r\n  border-radius: 0.3rem;\r\n  opacity: 0;\r\n  transition: opacity 0.3s, visibility 0.3s;\r\n  visibility: hidden;\r\n}\r\n\r\n.show.popover {\r\n  z-index: 999;\r\n  opacity: 1;\r\n  visibility: visible;\r\n}\r\n\r\n.popover-body {\r\n  color: #6c6e71;\r\n}\r\n\r\n.popover .popover_arrow {\r\n  width: 0;\r\n  height: 0;\r\n  border-style: solid;\r\n  position: absolute;\r\n  margin: 6px;\r\n  color: transparent;\r\n}\r\n\r\n.popover[x-placement^="top"] {\r\n  margin-bottom: 15px;\r\n}\r\n\r\n.popover[x-placement^="top"] .popover_arrow {\r\n  border-width: 8px 8px 0 8px;\r\n  border-color: #d6d6d6 transparent transparent transparent;\r\n  bottom: -8px;\r\n  margin-bottom: 0;\r\n}\r\n\r\n.popover[x-placement^="top"] .popover_arrow::before {\r\n  content: "";\r\n  display: inline-block;\r\n  position: absolute;\r\n  left: -8px;\r\n  bottom: 1.5px;\r\n  border: solid;\r\n  border-width: 8px 8px 0 8px;\r\n  border-color: white transparent transparent transparent;\r\n}\r\n\r\n.popover[x-placement^="bottom"] {\r\n  margin-top: 15px;\r\n}\r\n\r\n.popover[x-placement^="bottom"] .popover_arrow {\r\n  border-width: 0 8px 8px 8px;\r\n  border-color: transparent transparent #d6d6d6 transparent;\r\n  top: -8px;\r\n  margin-top: 0;\r\n}\r\n\r\n.popover[x-placement^="bottom"] .popover_arrow::before {\r\n  content: "";\r\n  display: inline-block;\r\n  position: absolute;\r\n  left: -8px;\r\n  top: 1.45px;\r\n  border: solid;\r\n  border-width: 0 8px 8px 8px;\r\n  border-color: transparent transparent white transparent;\r\n}\r\n\r\n.popover[x-placement^="right"] {\r\n  margin-left: 15px;\r\n}\r\n\r\n.popover[x-placement^="right"] .popover_arrow {\r\n  border-width: 8px 8px 8px 0;\r\n  border-color: transparent #d6d6d6 transparent transparent;\r\n  left: -8px;\r\n  margin-left: 0;\r\n}\r\n\r\n.popover[x-placement^="right"] .popover_arrow::before {\r\n  content: "";\r\n  display: inline-block;\r\n  position: absolute;\r\n  top: -8px;\r\n  left: 1.45px;\r\n  border: solid;\r\n  border-width: 8px 8px 8px 0;\r\n  border-color: transparent white transparent transparent;\r\n}\r\n\r\n.popover[x-placement^="left"] {\r\n  margin-right: 15px;\r\n}\r\n\r\n.popover[x-placement^="left"] .popover_arrow {\r\n  border-width: 8px 0 8px 8px;\r\n  border-color: transparent transparent transparent #d6d6d6;\r\n  right: -8px;\r\n  margin-right: 0;\r\n}\r\n\r\n.popover[x-placement^="left"] .popover_arrow::before {\r\n  content: "";\r\n  display: inline-block;\r\n  position: absolute;\r\n  top: -8px;\r\n  right: 1.45px;\r\n  border: solid;\r\n  border-width: 8px 0 8px 8px;\r\n  border-color: transparent transparent transparent white;\r\n}\r\n\r\n.tooltip {\r\n  width: auto;\r\n  background-color: black;\r\n  color: white;\r\n  text-align: center;\r\n  display: inline-block;\r\n  border-radius: 3px;\r\n  position: absolute;\r\n  /* font-size: 0.83em; */\r\n  font-weight: normal;\r\n  border: 1px rgb(0, 0, 0) solid;\r\n  /* z-index: 200000; */\r\n  z-index: 15;\r\n  /* max-width: initial; */\r\n  max-width: 274px;\r\n  text-align: start;\r\n  border: 1px solid rgba(0, 0, 0, 0.2);\r\n  border-radius: 0.3rem;\r\n  opacity: 0;\r\n  transition: opacity 0.3s, visibility 0.3s;\r\n  visibility: hidden;\r\n}\r\n\r\n.tooltip-inner {\r\n  display: block;\r\n}\r\n\r\n.show.tooltip {\r\n  z-index: 999;\r\n\r\n  opacity: 1;\r\n  visibility: visible;\r\n}\r\n\r\n.tooltip .popover_arrow {\r\n  width: 0;\r\n  height: 0;\r\n  border-style: solid;\r\n  position: absolute;\r\n  margin: 6px;\r\n  color: transparent;\r\n}\r\n\r\n.tooltip[x-placement^="top"],\r\n.show[x-placement^="top"]:not(.tooltip) {\r\n  margin-bottom: 5px;\r\n}\r\n\r\n.tooltip[x-placement^="top"] .popover_arrow {\r\n  border-width: 6px 6px 0 6px;\r\n  border-color: #131313 transparent transparent transparent;\r\n  bottom: -6px;\r\n  margin-bottom: 0;\r\n}\r\n\r\n.tooltip[x-placement^="top"] .popover_arrow::before {\r\n  content: "";\r\n  display: inline-block;\r\n  position: absolute;\r\n  left: -6px;\r\n  bottom: 1.5px;\r\n  border: solid;\r\n  border-width: 6px 6px 0 6px;\r\n  border-color: black transparent transparent transparent;\r\n}\r\n\r\n.tooltip[x-placement^="bottom"],\r\n.show[x-placement^="bottom"]:not(.tooltip) {\r\n  margin-top: 5px;\r\n}\r\n\r\n.tooltip[x-placement^="bottom"] .popover_arrow {\r\n  border-width: 0 6px 6px 6px;\r\n  border-color: transparent transparent #131313 transparent;\r\n  top: -6px;\r\n  margin-top: 0;\r\n}\r\n\r\n.tooltip[x-placement^="bottom"] .popover_arrow::before {\r\n  content: "";\r\n  display: inline-block;\r\n  position: absolute;\r\n  left: -6px;\r\n  top: 1.45px;\r\n  border: solid;\r\n  border-width: 0 6px 6px 6px;\r\n  border-color: transparent transparent black transparent;\r\n}\r\n\r\n.tooltip[x-placement^="right"],\r\n.show[x-placement^="right"]:not(.tooltip) {\r\n  margin-left: 5px;\r\n}\r\n\r\n.tooltip[x-placement^="right"] .popover_arrow {\r\n  border-width: 6px 6px 6px 0;\r\n  border-color: transparent #131313 transparent transparent;\r\n  left: -6px;\r\n  margin-left: 0;\r\n}\r\n\r\n.tooltip[x-placement^="right"] .popover_arrow::before {\r\n  content: "";\r\n  display: inline-block;\r\n  position: absolute;\r\n  top: -6px;\r\n  left: 1.45px;\r\n  border: solid;\r\n  border-width: 6px 6px 6px 0;\r\n  border-color: transparent black transparent transparent;\r\n}\r\n\r\n.tooltip[x-placement^="left"],\r\n.show[x-placement^="left"]:not(.tooltip) {\r\n  margin-right: 5px;\r\n}\r\n\r\n.tooltip[x-placement^="left"] .popover_arrow {\r\n  border-width: 6px 0 6px 6px;\r\n  border-color: transparent transparent transparent #131313;\r\n  right: -6px;\r\n  margin-right: 0;\r\n}\r\n\r\n.tooltip[x-placement^="left"] .popover_arrow::before {\r\n  content: "";\r\n  display: inline-block;\r\n  position: absolute;\r\n  top: -6px;\r\n  right: 1.45px;\r\n  border: solid;\r\n  border-width: 6px 0 6px 6px;\r\n  border-color: transparent transparent transparent black;\r\n}\r\n');var Fe=function(t){function e(){var t,n;Z(this,e);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return tt(st(n=ut(this,(t=ot(e)).call.apply(t,[this].concat(o)))),"state",{popperJS:null,visible:n.props.isVisible,showPopper:n.props.isVisible}),tt(st(n),"popoverWrapperRef",i.a.createRef()),tt(st(n),"referenceElm",i.a.createRef()),tt(st(n),"setPopperJS",(function(){var t=n.state,e=t.showPopper,r=t.popperJS;e&&(r?r.scheduleUpdate():n.createPopper(),setTimeout((function(){return clearInterval(n.timer)}),1e3))})),tt(st(n),"createPopper",(function(){var t=n.props,e=t.placement,r=t.modifiers,i=n.state.popperJS;n.referenceElm&&n.popoverWrapperRef&&n.setState({popperJS:new R.a(n.referenceElm,n.popoverWrapperRef,rt({placement:e},r),(function(){return setTimeout((function(){i.scheduleUpdate()}),10)}))})})),tt(st(n),"doToggle",(function(t){n.setState({showPopper:t&&!0},(function(){var e=n.state,r=e.showPopper,i=e.visible;r&&n.setState({visible:void 0!==t?t:!i},(function(){n.createPopper(),n.state.popperJS.scheduleUpdate()}))}))})),tt(st(n),"handleClick",(function(t){var e=t.target,r=n.state.showPopper;if(n.popoverWrapperRef&&r){if(n.popoverWrapperRef.contains(e)||n.referenceElm.contains(e)||e===n.referenceElm)return;n.doToggle(!1)}})),n}
2return it(e,i.a.Component),J(e,[{key:"componentDidUpdate",value:function(t,e){var n=this.state.showPopper,r=this.props,i=r.isVisible,o=r.onChange;this.setPopperJS(),t.isVisible!==i&&i!==n&&n!==t.showPopper&&this.setState({showPopper:i}),o&&n!==e.showPopper&&o(n),n&&e.showPopper!==n&&this.createPopper()}},{key:"componentDidMount",value:function(){var t=this;this.timer=setInterval((function(){return t.setPopperJS()}),3),document.addEventListener("click",this.handleClick)}},{key:"render",value:function(){var t=this,e=this.props,n=e.children,r=e.className,o=e.clickable,s=e.domElement,u=e.email,l=e.id,c=(e.isVisible,e.material),f=(e.modifiers,e.placement,e.popover),h=e.sm,d=(e.style,e.onChange,e.tag),p=at(e,["children","className","clickable","domElement","email","id","isVisible","material","modifiers","placement","popover","sm","style","onChange","tag"]),v=this.state,m=v.visible,g=v.showPopper,y=n[1],b=n[0],w=a()(m&&"show",f?"popover":!c&&!u&&"tooltip px-2",r),_=a()((c||u)&&"tooltip-inner",c&&(h?"md-inner":"md-inner-main"),u&&(h?"md-inner":"md-inner-email"));return i.a.createElement(i.a.Fragment,null,s?i.a.createElement(b.type,et({},b.props,{onMouseEnter:function(){return!o&&t.doToggle(!0)},onMouseLeave:function(){return!o&&!f&&setTimeout((function(){return t.doToggle(!1)}),0)},onTouchStart:function(){return!o&&t.doToggle(!0)},onTouchEnd:function(){return!o&&!f&&t.doToggle(!1)},onMouseDown:function(){return o&&t.doToggle(!g)},onMouseUp:function(){return setTimeout((function(){return t.setPopperJS()}),0)},ref:function(e){return t.referenceElm=e},"data-popper":l})):i.a.createElement(b.type,et({},b.props,{onMouseEnter:function(){return!o&&t.doToggle(!0)},onMouseLeave:function(){return!o&&!f&&setTimeout((function(){return t.doToggle(!1)}),0)},onTouchStart:function(){return!o&&t.doToggle(!0)},onTouchEnd:function(){return!o&&!f&&t.doToggle(!1)},onMouseDown:function(){o&&t.doToggle(!g),setTimeout((function(){return t.setPopperJS()}),100)},onMouseUp:function(){return setTimeout((function(){return t.setPopperJS()}),0)},innerRef:function(e){return t.referenceElm=e},"data-popper":l})),g&&i.a.createElement(d,et({ref:function(e){return t.popoverWrapperRef=e},className:w,"data-popper":l},p),i.a.createElement(y.type,{className:a()(_,y.props.className)},y.props.children),i.a.createElement("span",{"x-arrow":"",className:a()("popover_arrow")})))}}]),e}();Fe.propTypes={children:u.a.node,clickable:u.a.bool,domElement:u.a.bool,email:u.a.bool,id:u.a.string,isVisible:u.a.bool,material:u.a.bool,modifiers:u.a.object,placement:u.a.string,popover:u.a.bool,sm:u.a.bool,style:u.a.objectOf(u.a.string),tag:u.a.string},Fe.defaultProps={clickable:!1,domElement:!1,id:"popper",isVisible:!1,placement:"top",popover:!1,style:{display:"inline-block"},tag:"div"};var Ue=function(t){var e=t.attributes,n=t.children,r=t.className,o=t.tag,s=a()("popover-body",r);return i.a.createElement(o,et({"data-test":"popover-body"},e,{className:s}),n)};
2Ue.propTypes={children:u.a.node,className:u.a.string,tag:u.a.oneOfType([u.a.func,u.a.string])},Ue.defaultProps={tag:"div"};var qe=function(t){var e=t.attributes,n=t.children,r=t.className,o=t.tag,s=a()("popover-header",r);return i.a.createElement(o,et({"data-test":"popover-header"},e,{className:s}),n)};qe.propTypes={children:u.a.node,className:u.a.string,tag:u.a.oneOfType([u.a.func,u.a.string])},qe.defaultProps={className:"",tag:"h3"};var Be=function(t){var e=t.animated,n=t.barClassName,r=t.children,o=t.className,s=t.color,u=t.height,l=t.material,c=t.max,f=t.min,h=t.preloader,d=t.striped,p=t.value,v=t.wrapperStyle,m=at(t,["animated","barClassName","children","className","color","height","material","max","min","preloader","striped","value","wrapperStyle"]),g=(p-f)/(c-f)*100,y=a()("progress",l&&"md-progress",h&&"".concat(s?"".concat(s,"-color"):"primary-color","-dark"),o),b=a()(h?"indeterminate":"progress-bar",n||null,e?"progress-bar-animated":null,s?"bg-".concat(s):null,d||e?"progress-bar-striped":null),w=u||r&&"1rem",_=rt({},v,{height:w});return i.a.createElement("div",et({"data-test":"progress"},m,{className:y,style:_}),i.a.createElement("div",{className:b,style:{width:"".concat(g,"%"),height:w},role:"progressbar","aria-valuenow":p,"aria-valuemin":f,"aria-valuemax":c},r))};Be.propTypes={animated:u.a.bool,barClassName:u.a.string,children:u.a.node,className:u.a.string,color:u.a.string,height:u.a.string,material:u.a.bool,max:u.a.number,min:u.a.number,preloader:u.a.bool,striped:u.a.bool,value:u.a.number,wrapperStyle:u.a.object},Be.defaultProps={animated:!1,barClassName:"",className:"",color:"indigo",height:"",material:!1,max:100,min:0,preloader:!1,striped:!1,value:0,wrapperStyle:{}};var Ve=function(t){var e=lt(Object(r.useState)([]),2),n=e[0],o=e[1],s=lt(Object(r.useState)(null),2),u=s[0],l=s[1],c=lt(Object(r.useState)({title:"",index:null}),2),f=c[0],h=c[1],d=lt(Object(r.useState)(""),2),p=d[0],v=d[1],m=lt(Object(r.useState)(null),2),g=m[0],y=m[1],b=function(t){t.target.closest(".popover")||y(null)};Object(r.useEffect)((function(){return window.addEventListener("click",b),function(){return window.removeEventListener("click",b)}}),[]),Object(r.useEffect)((function(){o(t.data)}),[t.data]),Object(r.useEffect)((function(){var t=n.findIndex((function(t){return t.choosed}));-1!==t&&h({title:n[t].tooltip,index:t})}),[n]),Object(r.useEffect)((function(){if(t.getValue){var e=f.title,n=f.index;n=null!==n?n+1:n,t.getValue({title:e,value:n})}}),[f,t]);var w=function(){l(null)},_=function(){v(""),y(null)},x=function(t){v(t.target.value)},E=t.tag,k=t.containerClassName,T=t.iconClassName,S=t.iconFaces,O=t.iconSize,A=t.iconRegular,C=t.fillClassName,N=t.fillColors,I=(t.getValue,t.feedback),P=t.submitHandler,M=at(t,["tag","containerClassName","iconClassName","iconFaces","iconSize","iconRegular","fillClassName","fillColors","getValue","feedback","submitHandler"]),D=a()("mdb-rating","d-flex","justify-content-start","align-items-center",k),R=[];return n.length&&(R=n.map((function(t,e){var n=t.icon,r=void 0===n?"star":n,o=t.tooltip,s=t.far,c=t.size,d=(t.choosed,at(t,["icon","tooltip","far","size","choosed"])),v=null!==f.index,m=null!==u,b=I&&null!==g&&g===e,E=!1;v?(E=e<=f.index,m&&u>f.index&&(E=e<=u)):m&&(E=e<=u);var k="";if(N){var D=null;v?(D=f.index,m&&(D=u)):m&&(D=u);var R=Array.isArray(N);null!==D&&(k=R?N[D]:["oneStar","twoStars","threeStars","fourStars","fiveStars"][D])}var L=a()("py-2 px-1 rate-popover",E&&(N?k:C),T),j=r;if(S){var F=["angry","frown","meh","smile","laugh"];j="meh-blank",v&&e<=f.index?(j=F[f.index],m&&(j=F[u])):m&&e<=u&&(j=F[u])}var U=o;return b&&(U=i.a.createElement("form",{onSubmit:function(t){P(t,o,g+1,p),_()}},i.a.createElement(qe,null,o),i.a.createElement(Ue,null,i.a.createElement("textarea",{type:"text",className:"md-textarea form-control py-0",value:p,onChange:x}),i.a.createElement("div",{className:"d-flex align-items-center justify-content-around mt-2"},i.a.createElement(ve,{type:"submit",color:"primary",size:"sm"},"Submit!"),i.a.createElement("button",{onMouseDown:_,style:{backgroundColor:"#fff",border:"none",padding:"0.5rem 1.6rem"}},"Close"))))),i.a.createElement(Fe,{key:o,domElement:!0,placement:"top",tag:"span",popover:b,isVisible:b,clickable:b},i.a.createElement("span",null,i.a.createElement(_t,et({style:{cursor:"pointer"}},M,d,{icon:j,size:c||O,far:s||A,className:L,"data-index":e,"data-original-title":o,onMouseEnter:function(){return function(t,e){l(e)}(0,e)},onMouseLeave:w,onClick:function(t){return function(t,e,n){n.stopPropagation(),t===f.title&&e===f.index?(h({title:"",index:null}),I&&y(null)):(h({title:t,index:e}),I&&setTimeout((function(){y(e)}),1))}(o,e,t)}}))),i.a.createElement("div",{style:{userSelect:"none"}},U))}))),i.a.createElement(E,{"data-test":"rating",className:D},R)};
2Ve.propTypes={containerClassName:u.a.string,data:u.a.arrayOf(u.a.shape({choosed:u.a.bool,icon:u.a.string,tooltip:u.a.string})),feedback:u.a.bool,fillClassName:u.a.string,fillColors:u.a.oneOfType([u.a.bool,u.a.arrayOf(u.a.string)]),getValue:u.a.func,iconClassName:u.a.string,iconFaces:u.a.bool,iconRegular:u.a.bool,iconSize:u.a.string,submitHandler:u.a.func,tag:u.a.string},Ve.defaultProps={containerClassName:"",data:[{tooltip:"Very Bad"},{tooltip:"Poor"},{tooltip:"Ok"},{tooltip:"Good"},{tooltip:"Excellent"}],feedback:!1,fillClassName:"fiveStars",iconClassName:"",iconSize:"1x",iconRegular:!1,tag:"div",submitHandler:function(t){return t.preventDefault()}};var ze=function(t){var e=t.around,n=t.between,r=t.bottom,o=t.center,s=t.className,u=t.end,l=t.middle,c=t.start,f=t.tag,h=t.top,d=at(t,["around","between","bottom","center","className","end","middle","start","tag","top"]),p=a()("row",u&&"justify-content-end",c&&"justify-content-start",o&&"justify-content-center",n&&"justify-content-between",e&&"justify-content-around",h&&"align-self-start",l&&"align-self-center",r&&"align-self-end",s);return i.a.createElement(f,et({"data-test":"row"},d,{className:p}))};ze.propTypes={around:u.a.bool,between:u.a.bool,bottom:u.a.bool,center:u.a.bool,className:u.a.string,end:u.a.bool,middle:u.a.bool,start:u.a.bool,tag:u.a.oneOfType([u.a.func,u.a.string]),top:u.a.bool},ze.defaultProps={tag:"div"};var We={activeItem:u.a.any,className:u.a.string,tabId:u.a.any},He=function(t){function e(){var t,n;Z(this,e);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return tt(st(n=ut(this,(t=ot(e)).call.apply(t,[this].concat(i)))),"state",{activeItem:n.props.activeItem}),n}return it(e,i.a.Component),J(e,[{key:"getChildContext",value:function(){return{activeItemId:this.state.activeItem}}},{key:"render",value:function(){var t=this.props.className,e=vt(this.props,Object.keys(We)),n=a()("tab-content",t);return i.a.createElement("div",et({"data-test":"tabContent"},e,{className:n}))}}],[{key:"getDerivedStateFromProps",value:function(t,e){return e.activeItem!==t.activeItem?{activeItem:t.activeItem}:null}}]),e}();He.childContextTypes={activeItemId:u.a.any},He.propTypes=We;var Ye=function(t){function e(){return Z(this,e),ut(this,ot(e).apply(this,arguments))}return it(e,i.a.Component),J(e,[{key:"render",value:function(){var t=this.props,e=t.className,n=t.tabId,r=at(t,["className","tabId"]),o=this.context.activeItemId,s=a()("tab-pane",{active:n===o},e);return i.a.createElement("div",et({"data-test":"tab-pane"},r,{className:s,role:"tabpanel"}))}}]),e}();Ye.contextTypes={activeItemId:u.a.any},Ye.propTypes={className:u.a.string,tabId:u.a.any};var Ge=function(t){var e,n=t.children,r=t.color,o=t.columns,s=t.textWhite,u=at(t,["children","color","columns","textWhite"]),l="dark"===r||"light"===r,c=a()((tt(e={"text-white":s},"thead-".concat(r),r&&l),tt(e,"".concat(r),r&&!l),e));return i.a.createElement("thead",et({"data-test":"table-head"},u,{className:c}),o&&i.a.createElement("tr",null,o.map((function(t){return i.a.createElement("th",{key:t.field,className:t.hasOwnProperty("minimal")?"th-".concat(t.minimal):""},t.label)}))),n)};Ge.propTypes={children:u.a.node,color:u.a.string,columns:u.a.arrayOf(u.a.object),textWhite:u.a.bool},Ge.defaultProps={textWhite:!1};var Ke=i.a.createContext(),Xe=function(t){var e=lt(Object(r.useState)(null),2),n=e[0],o=e[1];Object(r.useEffect)((function(){t.getValue&&t.getValue({item:n?n.closest("li"):n,value:n?n.closest("li").childNodes[1].textContent:n})}),[n,t]);var s=t.theme,u=t.children,l=t.className,c=(t.getValue,t.header),f=t.listClassName,h=t.tag,d=at(t,["theme","children","className","getValue","header","listClassName","tag"]),p=a()("border",s?"treeview-".concat(s):"treeview",l),v=a()("list-unstyled",c?"pb-2 mb-1":"py-2 my-1",s&&"treeview-".concat(s,"-list"),"animated"===s||!s&&"pl-3",f),m=c&&i.a.createElement(i.a.Fragment,null,i.a.createElement("h6",{className:"pt-3 pl-3"},c),i.a.createElement("hr",null));return i.a.createElement(h,et({"data-test":"treeview"},d,{className:p}),m,i.a.createElement("ul",{className:v},i.a.createElement(Ke.Provider,{value:{active:n,theme:s,getActive:function(t){return o(t),t}}},u)))};
2Xe.propTypes={className:u.a.string,getValue:u.a.func,header:u.a.string,listClassName:u.a.string,tag:u.a.string,theme:u.a.string},Xe.defaultProps={tag:"div",theme:"",getValue:function(){}};var $e=function(t){var e=lt(Object(r.useState)(""),2),n=e[0],o=e[1],s=Object(r.useRef)(null),u=t.className,l=t.disabled,c=t.disabledClassName,f=t.fab,h=t.fal,d=t.far,p=t.icon,v=(t.opened,t.tag),m=t.title,g=at(t,["className","disabled","disabledClassName","fab","fal","far","icon","opened","tag","title"]),y=Object(r.useContext)(Ke),b=y.active,w=y.getActive,_=y.theme;Object(r.useEffect)((function(){s&&s.current&&o(s.current)}),[]);var x=a()(l&&c,_&&"treeview-".concat(_,"-items treeview-").concat(_,"-element closed mb-1"),b!==n||b.classList.contains("opened")?"":"opened",u);return i.a.createElement(v,et({"data-test":"treeview-item"},g,{className:x,ref:s,onMouseDown:function(){l||(n.classList.contains("opened")?w(null):w(n))},style:{transform:"translateY(0.3em)"}}),i.a.createElement(_t,{className:"mr-2",fab:f,fal:h,far:d,icon:p}),i.a.createElement("span",null,m))};$e.propTypes={className:u.a.string,disabled:u.a.bool,disabledClassName:u.a.string,fab:u.a.bool,fal:u.a.bool,far:u.a.bool,icon:u.a.string,opened:u.a.bool,tag:u.a.oneOfType([u.a.func,u.a.string])},$e.defaultProps={disabled:!1,fab:!1,fal:!1,far:!1,icon:"folder-open",opened:!1,tag:"li"};var Ze=function(t){var e=lt(Object(r.useState)(!1),2),n=e[0],o=e[1];Object(r.useEffect)((function(){var e=t.opened;o(e)}),[t,t.opened]);var s=function(){return o(!n)},u=t.children,l=t.className,c=t.disabled,f=t.disabledClassName,h=t.fab,d=t.fal,p=t.far,v=t.icon,m=(t.opened,t.tag),g=t.title,y=at(t,["children","className","disabled","disabledClassName","fab","fal","far","icon","opened","tag","title"]),b=Object(r.useContext)(Ke).theme,w=a()("nested",n&&"active"),_=a()(b&&"closed treeview-".concat(b,"-element d-block"),!u&&"ml-2",n&&"opened",c&&f),x=a()(b&&"treeview-".concat(b,"-items px-0"),l),E=a()(b?"mx-2":"mr-2"),k=u&&i.a.createElement("ul",{className:w,style:{height:"calc(100% + 0.6rem)",marginLeft:"2px"}},u),T=b&&i.a.createElement(Gt,{isOpen:n},k),S="colorful"!==b?"angle-right":n?"minus-circle":"plus-circle",O=u&&i.a.createElement(_t,{icon:S,rotate:"colorful"!==b?n?"90 down":"0":"",className:"rotate"}),A=u&&i.a.createElement(ve,{flat:!0,className:"m-0 py-0 px-1 mr-1 z-depth-0",onClick:s},O);return i.a.createElement(m,et({"data-test":"treeview-list"},y,{className:x}),i.a.createElement("span",{className:_,onClick:!c&&b?s:null},b?O:A,i.a.createElement("span",null,i.a.createElement(_t,{className:E,fab:h,fal:d,far:p,icon:v}),g)),T||k)};Ze.propTypes={className:u.a.string,disabled:u.a.bool,disabledClassName:u.a.string,fab:u.a.bool,fal:u.a.bool,far:u.a.bool,icon:u.a.string,opened:u.a.bool,tag:u.a.string},Ze.defaultProps={disabled:!1,fab:!1,fal:!1,far:!1,icon:"folder-open",opened:!1,tag:"li"},Ze.contextTypes={theme:u.a.string},xt(".note-dark {\r\n  background-color: #000;\r\n  color: #fff;\r\n  border-color: #58595a;\r\n}\r\n\r\n.note-default {\r\n  background-color: rgb(164, 243, 235);\r\n  border-color: #00695c;\r\n}\r\n\r\n.note-elegant {\r\n  background-color: #2E2E2E;\r\n  border-color: #212121;\r\n  color: #fff;\r\n}\r\n\r\n.note-stylish {\r\n  background-color: #4B515D;\r\n  border-color: #3E4551;\r\n  color: #fff;\r\n}\r\n\r\n.note-unique {\r\n  background-color: #3F729B;\r\n  border-color: #1C2331;\r\n  color: #fff;\r\n}\r\n\r\n.note-special {\r\n  background-color: #37474F;\r\n  border-color: #263238;\r\n  color: #fff;\r\n}\r\n");var Qe=function(t){function e(){return Z(this,e),ut(this,ot(e).apply(this,arguments))}return it(e,i.a.Component),J(e,[{key:"render",value:function(){var t=this.props,e=t.className,n=t.tag,r=t.children,o=t.variant,s=t.blockquote,u=t.bqColor,l=(t.bqTitle,t.bqFooter,t.bqText,t.listUnStyled),c=t.listInLine,f=t.colorText,h=t.text,d=t.note,p=t.noteColor,v=t.noteTitle,m=at(t,["className","tag","children","variant","blockquote","bqColor","bqTitle","bqFooter","bqText","listUnStyled","listInLine","colorText","text","note","noteColor","noteTitle"]),g=a()(o&&o,f&&"".concat(f.toLowerCase(),"-text"),h&&"text-".concat(h),e),y=a()("blockquote",u&&"bq-".concat(u),e),b=a()("note",p&&"note-".concat(p),e),w=""!==g?g:null;return s?i.a.createElement("blockquote",{className:y},r):l?i.a.createElement("ul",{className:"list-unstyled"},r):c?i.a.createElement("ul",{className:"list-inline"},r):d?i.a.createElement("p",{className:b},i.a.createElement("strong",null,v),r):i.a.createElement(n,et({"data-test":"typography"},m,{className:w}),r)}}]),e}();Qe.propTypes={blockquote:u.a.bool,bqColor:u.a.string,bqTitle:u.a.string,className:u.a.string,colorText:u.a.string,listInLine:u.a.bool,listUnStyled:u.a.bool,note:u.a.bool,noteColor:u.a.string,noteTitle:u.a.string,tag:u.a.oneOfType([u.a.func,u.a.string]),variant:u.a.string},Qe.defaultProps={abbr:!1,blockquote:!1,listInLine:!1,listUnStyled:!1,noteColor:"primary",tag:"p"}},function(t,e,n){t.exports=n(159)},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},function(t,e){t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){"use strict";function r(){return(r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";!function t(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}}(),t.exports=n(125)},function(t,e,n){"use strict";var r=n(80),i=Object.prototype.toString;function o(t){return"[object Array]"===i.call(t)}function a(t){return"undefined"===typeof t}function s(t){return null!==t&&"object"===typeof t}function u(t){return"[object Function]"===i.call(t)}function l(t,e){if(null!==t&&"undefined"!==typeof t)if("object"!==typeof t&&(t=[t]),o(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}t.exports={isArray:o,isArrayBuffer:function(t){return"[object ArrayBuffer]"===i.call(t)},isBuffer:function(t){return null!==t&&!a(t)&&null!==t.constructor&&!
2a(t.constructor)&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!==typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"===typeof t},isNumber:function(t){return"number"===typeof t},isObject:s,isUndefined:a,isDate:function(t){return"[object Date]"===i.call(t)},isFile:function(t){return"[object File]"===i.call(t)},isBlob:function(t){return"[object Blob]"===i.call(t)},isFunction:u,isStream:function(t){return s(t)&&u(t.pipe)},isURLSearchParams:function(t){return"undefined"!==typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)},forEach:l,merge:function t(){var e={};function n(n,r){"object"===typeof e[r]&&"object"===typeof n?e[r]=t(e[r],n):e[r]=n}for(var r=0,i=arguments.length;r<i;r++)l(arguments[r],n);return e},deepMerge:function t(){var e={};function n(n,r){"object"===typeof e[r]&&"object"===typeof n?e[r]=t(e[r],n):e[r]="object"===typeof n?t({},n):n}for(var r=0,i=arguments.length;r<i;r++)l(arguments[r],n);return e},extend:function(t,e,n){return l(e,(function(e,i){t[i]=n&&"function"===typeof e?r(e,n):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(t,e,n){"use strict";function r(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";e.a=function(t,e){if(!t)throw new Error("Invariant failed")}},function(t,e,n){"use strict";var r=n(13);function i(t){return"/"===t.charAt(0)}function o(t,e){for(var n=e,r=n+1,i=t.length;r<i;n+=1,r+=1)t[n]=t[r];t.pop()}var a=function(t,e){void 0===e&&(e="");var n,r=t&&t.split("/")||[],a=e&&e.split("/")||[],s=t&&i(t),u=e&&i(e),l=s||u;if(t&&i(t)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){var c=a[a.length-1];n="."===c||".."===c||""===c}else n=!1;for(var f=0,h=a.length;h>=0;h--){var d=a[h];"."===d?o(a,h):".."===d?(o(a,h),f++):f&&(o(a,h),f--)}if(!l)for(;f--;f)a.unshift("..");!l||""===a[0]||a[0]&&i(a[0])||a.unshift("");var p=a.join("/");return n&&"/"!==p.substr(-1)&&(p+="/"),p};function s(t){return t.valueOf?t.valueOf():Object.prototype.valueOf.call(t)}var u=function t(e,n){if(e===n)return!0;if(null==e||null==n)return!1;if(Array.isArray(e))return Array.isArray(n)&&e.length===n.length&&e.every((function(e,r){return t(e,n[r])}));if("object"===typeof e||"object"===typeof n){var r=s(e),i=s(n);return r!==e||i!==n?t(r,i):Object.keys(Object.assign({},e,n)).every((function(r){return t(e[r],n[r])}))}return!1},l=n(18);function c(t){return"/"===t.charAt(0)?t:"/"+t}function f(t){return"/"===t.charAt(0)?t.substr(1):t}function h(t,e){return function(t,e){return 0===t.toLowerCase().indexOf(e.toLowerCase())&&-1!=="/?#".indexOf(t.charAt(e.length))}(t,e)?t.substr(e.length):t}function d(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function p(t){var e=t.pathname,n=t.search,r=t.hash,i=e||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function v(t,e,n,i){var o;"string"===typeof t?(o=function(t){var e=t||"/",n="",r="",i=e.indexOf("#");-1!==i&&(r=e.substr(i),e=e.substr(0,i));var o=e.indexOf("?");return-1!==o&&(n=e.substr(o),e=e.substr(0,o)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}}(t)).state=e:(void 0===(o=Object(r.a)({},t)).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!==e&&void 0===o.state&&(o.state=e));try{o.pathname=decodeURI(o.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}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 m(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&u(t.state,e.state)}function g(){var t=null;var e=[];return{setPrompt:function(e){return t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,r,i){if(null!=t){var o="function"===typeof t?t(e,n):t;"string"===typeof o?"function"===typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(t){var n=!0;function r(){n&&t.apply(void 0,arguments)}return e.push(r),function(){n=!1,e=e.filter((function(t){return t!==r}))}},notifyListeners:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.forEach((function(t){return t.apply(void 0,n)}))}}}n.d(e,"a",(function(){return _})),n.d(e,"b",(function(){return S})),n.d(e,"d",(function(){return A})),n.d(e,"c",(function(){return v})),n.d(e,"f",(function(){return m})),n.d(e,"e",(function(){return p}));var y=!("undefined"===typeof window||!window.document||!window.document.createElement);function b(t,e){e(window.confirm(t))}function w(){try{return window.history.state||{}}catch(t){return{}}}function _(t){void 0===t&&(t={}),y||Object(l.a)(!1);var e=window.history,n=function(){var t=window.navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)}(),i=!(-1===window.navigator.userAgent.indexOf("Trident")),o=t,a=o.forceRefresh,s=void 0!==a&&a,u=o.getUserConfirmation,f=void 0===u?b:u,m=o.keyLength,_=void 0===m?6:m,x=t.basename?d(c(t.basename)):"";function E(t){var e=t||{},n=e.key,r=e.state,i=window.location,o=i.pathname+i.search+i.hash;return x&&(o=h(o,x)),v(o,r,n)}function k(){return Math.random().toString(36).substr(2,_)}var T=g();function S(t){Object(r.a)(F,t),F.length=e.length,T.notifyListeners(F.location,F.action)}function O(t){(function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")})(t)||N(E(t.state))}function A(){N(E(w()))}var C=!1;function N(t){if(C)C=!1,S();else{T.confirmTransitionTo(t,"POP",f,(function(e){e?S({action:"POP",location:t}):function(t){var e=F.location,n=P.indexOf(e.key);-1===n&&(n=0);var r=P.indexOf(t.key);-1===r&&(r=0);var i=n-r;i&&(C=!0,D(i))}(t)}))}}var I=E(w()),P=[I.key];function M(t){return x+p(t)}function D(t){e.go(t)}var R=0;function L(t){1===(R+=t)&&1===t?(window.addEventListener("popstate",O),i&&window.addEventListener("hashchange",A)):0===R&&(window.removeEventListener("popstate",O),i&&window.removeEventListener("hashchange",A))}var j=!1;var F={length:e.length,action:"POP",location:I,createHref:M,push:function(t,r){var i=v(t,r,k(),F.location);T.confirmTransitionTo(i,"PUSH",f,(function(t){if(t){var r=M(i),o=i.key,a=i.state;if(n)if(e.pushState({key:o,state:a},null,r),s)window.location.href=r;else{var u=P.indexOf(F.location.key),l=P.slice(0,u+1);l.push(i.key),P=l,S({action:"PUSH",location:i})}else window.location.href=r}}))},replace:function(t,r){var i=v(t,r,k(),F.location);T.confirmTransitionTo(i,"REPLACE",f,(function(t){if(t){var r=M(i),o=i.key,a=i.state;if(n)if(e.replaceState({key:o,state:a},null,r),s)window.location.replace(r);else{var u=P.indexOf(F.location.key);-1!==u&&(P[u]=i.key),S({action:"REPLACE",location:i})}else window.location.replace(r)}}))},go:D,goBack:function(){D(-1)},goForward:function(){D(1)},block:function(t){void 0===t&&(t=!1);var e=T.setPrompt(t);return j||(L(1),j=!0),function(){return j&&(j=!1,L(-1)),e()}},listen:function(t){var e=T.appendListener(t);return L(1),function(){L(-1),e()}}};return F}var x={hashbang:{encodePath:function(t){return"!"===t.charAt(0)?t:"!/"+f(t)},decodePath:function(t){return"!"===t.charAt(0)?t.substr(1):t}},noslash:{encodePath:f,decodePath:c},slash:{encodePath:c,decodePath:c}};function E(t){var e=t.indexOf("#");return-1===e?t:t.slice(0,e)}function k(){var t=window.location.href,e=t.indexOf("#");return-1===e?"":t.substring(e+1)}function T(t){window.location.replace(E(window.location.href)+"#"+t)}function S(t){void 0===t&&(t={}),y||Object(l.a)(!1);var e=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),t),i=n.getUserConfirmation,o=void 0===i?b:i,a=n.hashType,s=void 0===a?"slash":a,u=t.basename?d(c(t.basename)):"",f=x[s],m=f.encodePath,w=f.decodePath;function _(){var t=w(k());return u&&(t=h(t,u)),v(t)}var S=g();function O(t){Object(r.a)(U,t),U.length=e.length,S.notifyListeners(U.location,U.action)}var A=!1,C=null;function N(){var t,e,n=k(),r=m(n);if(n!==r)T(r);else{var i=_(),a=U.location;if(!A&&(e=i,(t=a).pathname===e.pathname&&t.search===e.search&&t.hash===e.hash))return;
2if(C===p(i))return;C=null,function(t){if(A)A=!1,O();else{S.confirmTransitionTo(t,"POP",o,(function(e){e?O({action:"POP",location:t}):function(t){var e=U.location,n=D.lastIndexOf(p(e));-1===n&&(n=0);var r=D.lastIndexOf(p(t));-1===r&&(r=0);var i=n-r;i&&(A=!0,R(i))}(t)}))}}(i)}}var I=k(),P=m(I);I!==P&&T(P);var M=_(),D=[p(M)];function R(t){e.go(t)}var L=0;function j(t){1===(L+=t)&&1===t?window.addEventListener("hashchange",N):0===L&&window.removeEventListener("hashchange",N)}var F=!1;var U={length:e.length,action:"POP",location:M,createHref:function(t){var e=document.querySelector("base"),n="";return e&&e.getAttribute("href")&&(n=E(window.location.href)),n+"#"+m(u+p(t))},push:function(t,e){var n=v(t,void 0,void 0,U.location);S.confirmTransitionTo(n,"PUSH",o,(function(t){if(t){var e=p(n),r=m(u+e);if(k()!==r){C=e,function(t){window.location.hash=t}(r);var i=D.lastIndexOf(p(U.location)),o=D.slice(0,i+1);o.push(e),D=o,O({action:"PUSH",location:n})}else O()}}))},replace:function(t,e){var n=v(t,void 0,void 0,U.location);S.confirmTransitionTo(n,"REPLACE",o,(function(t){if(t){var e=p(n),r=m(u+e);k()!==r&&(C=e,T(r));var i=D.indexOf(p(U.location));-1!==i&&(D[i]=e),O({action:"REPLACE",location:n})}}))},go:R,goBack:function(){R(-1)},goForward:function(){R(1)},block:function(t){void 0===t&&(t=!1);var e=S.setPrompt(t);return F||(j(1),F=!0),function(){return F&&(F=!1,j(-1)),e()}},listen:function(t){var e=S.appendListener(t);return j(1),function(){j(-1),e()}}};return U}function O(t,e,n){return Math.min(Math.max(t,e),n)}function A(t){void 0===t&&(t={});var e=t,n=e.getUserConfirmation,i=e.initialEntries,o=void 0===i?["/"]:i,a=e.initialIndex,s=void 0===a?0:a,u=e.keyLength,l=void 0===u?6:u,c=g();function f(t){Object(r.a)(w,t),w.length=w.entries.length,c.notifyListeners(w.location,w.action)}function h(){return Math.random().toString(36).substr(2,l)}var d=O(s,0,o.length-1),m=o.map((function(t){return v(t,void 0,"string"===typeof t?h():t.key||h())})),y=p;function b(t){var e=O(w.index+t,0,w.entries.length-1),r=w.entries[e];c.confirmTransitionTo(r,"POP",n,(function(t){t?f({action:"POP",location:r,index:e}):f()}))}var w={length:m.length,action:"POP",location:m[d],index:d,entries:m,createHref:y,push:function(t,e){var r=v(t,e,h(),w.location);c.confirmTransitionTo(r,"PUSH",n,(function(t){if(t){var e=w.index+1,n=w.entries.slice(0);n.length>e?n.splice(e,n.length-e,r):n.push(r),f({action:"PUSH",location:r,index:e,entries:n})}}))},replace:function(t,e){var r=v(t,e,h(),w.location);c.confirmTransitionTo(r,"REPLACE",n,(function(t){t&&(w.entries[w.index]=r,f({action:"REPLACE",location:r}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(t){var e=w.index+t;return e>=0&&e<w.entries.length},block:function(t){return void 0===t&&(t=!1),c.setPrompt(t)},listen:function(t){return c.appendListener(t)}};return w}},function(t,e,n){"use strict";var r=n(6);var i=0,o="undefined"!==typeof window&&void 0!==window.requestAnimationFrame?function(t){return window.requestAnimationFrame(t)}:function(t){var e=Date.now(),n=Math.max(0,16.7-(e-i));i=e+n,setTimeout((function(){return t(i)}),n)},a=1/60*1e3,s=!0,u=!1,l=!1,c={delta:0,timestamp:0},f=["read","update","preRender","render","postRender"],h=function(t){return u=t},d=f.reduce((function(t,e){return t[e]=function(t){var e=[],n=[],r=0,i=!1,o=0,a=new WeakSet,s=new WeakSet,u={cancel:function(t){var e=n.indexOf(t);a.add(t),-1!==e&&n.splice(e,1)},process:function(l){var c,f;if(i=!0,e=(c=[n,e])[0],(n=c[1]).length=0,r=e.length)for(o=0;o<r;o++)(f=e[o])(l),!0!==s.has(f)||a.has(f)||(u.schedule(f),t(!0));i=!1},schedule:function(t,o,u){void 0===o&&(o=!1),void 0===u&&(u=!1);var l=u&&i,c=l?e:n;a.delete(t),o&&s.add(t),-1===c.indexOf(t)&&(c.push(t),l&&(r=e.length))}};return u}(h),t}),{}),p=f.reduce((function(t,e){var n=d[e];return t[e]=function(t,e,r){return void 0===e&&(e=!1),void 0===r&&(r=!1),u||y(),n.schedule(t,e,r),t},t}),{}),v=f.reduce((function(t,e){return t[e]=d[e].cancel,t}),{}),m=function(t){return d[t].process(c)},g=function t(e){u=!1,c.delta=s?a:Math.max(Math.min(e-c.timestamp,40),1),s||(a=c.delta),c.timestamp=e,l=!0,f.forEach(m),l=!1,u&&(s=!1,o(t))},y=function(){u=!0,s=!0,l||o(g)},b=function(){return c},w=p,_=function(t,e){return function(n){return Math.max(Math.min(n,e),t)}},x=function(t){return t%1?Number(t.toFixed(5)):t},E=/(-)?(\d[\d\.]*)/g,k=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,T=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i,S={test:function(t){return"number"===typeof t},parse:parseFloat,transform:function(t){return t}},O=Object(r.__assign)(Object(r.__assign)({},S),{transform:_(0,1)}),A=Object(r.__assign)(Object(r.__assign)({},S),{default:1}),C=function(t){return{test:function(e){return"string"===typeof e&&e.endsWith(t)&&1===e.split(" ").length},parse:parseFloat,transform:function(e){return""+e+t}}},N=C("deg"),I=C("%"),P=C("px"),M=C("vh"),D=C("vw"),R=Object(r.__assign)(Object(r.__assign)({},I),{parse:function(t){return I.parse(t)/100},transform:function(t){return I.transform(100*t)}}),L=_(0,255),j=function(t){return void 0!==t.red},F=function(t){return void 0!==t.hue};var U=function(t){return function(e){if("string"!==typeof e)return e;for(var n={},r=function(t){return t.substring(t.indexOf("(")+1,t.lastIndexOf(")"))}(e).replace(/(,|\/)/g," ").split(/ \s*/),i=0;i<4;i++)n[t[i]]=void 0!==r[i]?parseFloat(r[i]):1;return n}},q=Object(r.__assign)(Object(r.__assign)({},S),{transform:function(t){return Math.round(L(t))}});function B(t,e){return t.startsWith(e)&&T.test(t)}var V={test:function(t){return"string"===typeof t?B(t,"rgb"):j(t)},parse:U(["red","green","blue","alpha"]),transform:function(t){var e=t.red,n=t.green,r=t.blue,i=t.alpha,o=void 0===i?1:i;return function(t){var e=t.red,n=t.green,r=t.blue,i=t.alpha;return"rgba("+e+", "+n+", "+r+", "+(void 0===i?1:i)+")"}({red:q.transform(e),green:q.transform(n),blue:q.transform(r),alpha:x(O.transform(o))})}},z={test:function(t){return"string"===typeof t?B(t,"hsl"):F(t)},parse:U(["hue","saturation","lightness","alpha"]),transform:function(t){var e=t.hue,n=t.saturation,r=t.lightness,i=t.alpha,o=void 0===i?1:i;return function(t){var e=t.hue,n=t.saturation,r=t.lightness,i=t.alpha;return"hsla("+e+", "+n+", "+r+", "+(void 0===i?1:i)+")"}({hue:Math.round(e),saturation:I.transform(x(n)),lightness:I.transform(x(r)),alpha:x(O.transform(o))})}},W=Object(r.__assign)(Object(r.__assign)({},V),{test:function(t){return"string"===typeof t&&B(t,"#")},parse:function(t){var e="",n="",r="";return t.length>4?(e=t.substr(1,2),n=t.substr(3,2),r=t.substr(5,2)):(e=t.substr(1,1),n=t.substr(2,1),r=t.substr(3,1),e+=e,n+=n,r+=r),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alph
2a:1}}}),H={test:function(t){return"string"===typeof t&&T.test(t)||j(t)||F(t)},parse:function(t){return V.test(t)?V.parse(t):z.test(t)?z.parse(t):W.test(t)?W.parse(t):t},transform:function(t){return j(t)?V.transform(t):F(t)?z.transform(t):t}},Y=function(t){return"number"===typeof t?0:t},G={test:function(t){if("string"!==typeof t||!isNaN(t))return!1;var e=0,n=t.match(E),r=t.match(k);return n&&(e+=n.length),r&&(e+=r.length),e>0},parse:function(t){var e=t,n=[],r=e.match(k);r&&(e=e.replace(k,"${c}"),n.push.apply(n,r.map(H.parse)));var i=e.match(E);return i&&n.push.apply(n,i.map(S.parse)),n},createTransformer:function(t){var e=t,n=0,r=t.match(k),i=r?r.length:0;if(r)for(var o=0;o<i;o++)e=e.replace(r[o],"${c}"),n++;var a=e.match(E),s=a?a.length:0;if(a)for(o=0;o<s;o++)e=e.replace(a[o],"${n}"),n++;return function(t){for(var r=e,o=0;o<n;o++)r=r.replace(o<i?"${c}":"${n}",o<i?H.transform(t[o]):x(t[o]));return r}},getAnimatableNone:function(t){var e=G.parse(t);return G.createTransformer(t)(e.map(Y))}};function K(t){var e=t.from,n=void 0===e?0:e,r=t.to,i=void 0===r?0:r,o=t.velocity,a=void 0===o?0:o,s=t.stiffness,u=void 0===s?100:s,l=t.damping,c=void 0===l?10:l,f=t.mass,h=void 0===f?1:f,d=t.restSpeed,p=void 0===d?2:d,v=t.restDelta,m={done:!1,value:n},g=X,y=X;function b(){var t=a?-a/1e3:0,e=i-n,r=c/(2*Math.sqrt(u*h)),o=Math.sqrt(u/h)/1e3;if(null!==v&&void 0!==v||(v=Math.abs(i-n)<=1?.01:.4),r<1)g=function(n){var a=Math.exp(-r*o*n),s=o*Math.sqrt(1-r*r);return i-a*((t+r*o*e)/s*Math.sin(s*n)+e*Math.cos(s*n))},y=function(n){var i=Math.exp(-r*o*n),a=o*Math.sqrt(1-r*r);return r*o*i*(Math.sin(a*n)*(t+r*o*e)/a+e*Math.cos(a*n))-i*(Math.cos(a*n)*(t+r*o*e)-a*e*Math.sin(a*n))};else if(1===r)g=function(n){var r=Math.exp(-o*n);return i-r*(e+(t+o*e)*n)};else{var s=o*Math.sqrt(r*r-1);g=function(n){var a=Math.exp(-r*o*n),u=Math.min(s*n,300);return i-a*((t+r*o*e)*Math.sinh(u)+s*e*Math.cosh(u))/s}}}return b(),{next:function(t){var e=g(t),n=1e3*y(t),r=Math.abs(n)<=p,o=Math.abs(i-e)<=v;return m.done=r&&o,m.value=m.done?i:e,m},flipTarget:function(){var t;a=-a,n=(t=[i,n])[0],i=t[1],b()}}}K.needsInterpolation=function(t,e){return"string"===typeof t||"string"===typeof e};var X=function(t){return 0},$=function(t,e,n){var r=e-t;return 0===r?1:(n-t)/r},Z=function(t,e,n){return-n*t+n*e+t},Q=function(t,e,n){var r=t*t,i=e*e;return Math.sqrt(Math.max(0,n*(i-r)+r))},J=[W,V,z],tt=function(t){return J.find((function(e){return e.test(t)}))},et=function(t){return"'"+t+"' is not an animatable color. Use the equivalent color code instead."},nt=function(t,e){var n=tt(t),i=tt(e);et(t),et(e),n.transform,i.transform;var o=n.parse(t),a=i.parse(e),s=Object(r.__assign)({},o),u=n===z?Z:Q;return function(t){for(var e in s)"alpha"!==e&&(s[e]=u(o[e],a[e],t));return s.alpha=Z(o.alpha,a.alpha,t),n.transform(s)}},rt=function(t){return"number"===typeof t},it=function(t,e){return function(n){return e(t(n))}},ot=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.reduce(it)};function at(t,e){return rt(t)?function(n){return Z(t,e,n)}:H.test(t)?nt(t,e):ct(t,e)}var st=function(t,e){var n=Object(r.__spreadArrays)(t),i=n.length,o=t.map((function(t,n){return at(t,e[n])}));return function(t){for(var e=0;e<i;e++)n[e]=o[e](t);return n}},ut=function(t,e){var n=Object(r.__assign)(Object(r.__assign)({},t),e),i={};for(var o in n)void 0!==t[o]&&void 0!==e[o]&&(i[o]=at(t[o],e[o]));return function(t){for(var e in i)n[e]=i[e](t);return n}};function lt(t){for(var e=G.parse(t),n=e.length,r=0,i=0,o=0,a=0;a<n;a++)r||"number"===typeof e[a]?r++:void 0!==e[a].hue?o++:i++;return{parsed:e,numNumbers:r,numRGB:i,numHSL:o}}var ct=function(t,e){var n=G.createTransformer(e),r=lt(t),i=lt(e);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&(r.numNumbers,i.numNumbers),ot(st(r.parsed,i.parsed),n)},ft=function(t,e,n){return Math.min(Math.max(n,t),e)},ht=function(t,e){return function(n){return Z(t,e,n)}};function dt(t,e,n){for(var r,i=[],o=n||("number"===typeof(r=t[0])?ht:"string"===typeof r?H.test(r)?nt:ct:Array.isArray(r)?st:"object"===typeof r?ut:void 0),a=t.length-1,s=0;s<a;s++){var u=o(t[s],t[s+1]);if(e){var l=Array.isArray(e)?e[s]:e;u=ot(l,u)}i.push(u)}return i}function pt(t,e,n){var r=void 0===n?{}:n,i=r.clamp,o=void 0===i||i,a=r.ease,s=r.mixer,u=t.length;e.length,!a||!Array.isArray(a)||a.length,t[0]>t[u-1]&&(t=[].concat(t),e=[].concat(e),t.reverse(),e.reverse());var l=dt(e,a,s),c=2===u?function(t,e){var n=t[0],r=t[1],i=e[0];return function(t){return i($(n,r,t))}}(t,l):function(t,e){var n=t.length,r=n-1;return function(i){var o=0,a=!1;if(i<=t[0]?a=!0:i>=t[r]&&(o=r-1,a=!0),!a){for(var s=1;s<n&&!(t[s]>i||s===r);s++);o=s-1}var u=$(t[o],t[o+1],i);return e[o](u)}}(t,l);return o?function(e){return c(ft(t[0],t[u-1],e))}:c}var vt=function(t){return function(e){return 1-t(1-e)}},mt=function(t){return function(e){return e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2}},gt=function(t){return function(e){return e*e*((t+1)*e-t)}},yt=function(t){var e=gt(t);return function(t){return(t*=2)<1?.5*e(t):.5*(2-Math.pow(2,-10*(t-1)))}},bt=function(t){return t},wt=function(t){return function(e){return Math.pow(e,t)}}(2),_t=vt(wt),xt=mt(wt),Et=function(t){return 1-Math.sin(Math.acos(t))},kt=vt(Et),Tt=mt(kt),St=gt(1.525),Ot=vt(St),At=mt(St),Ct=yt(1.525),Nt=function(t){if(1===t||0===t)return t;var e=t*t;return t<4/11?7.5625*e:t<8/11?9.075*e-9.9*t+3.4:t<.9?4356/361*e-35442/1805*t+16061/1805:10.8*t*t-20.52*t+10.72},It=vt(Nt);function Pt(t,e){return t.map((function(){return e||xt})).splice(0,t.length-1)}function Mt(t){var e=t.from,n=void 0===e?0:e,r=t.to,i=void 0===r?1:r,o=t.ease,a=t.offset,s=t.duration,u=void 0===s?300:s,l={done:!1,value:n},c=Array.isArray(i)?i:[n,i],f=function(t,e){return t.map((function(t){return t*e}))}(null!==a&&void 0!==a?a:function(t){var e=t.length;
2return t.map((function(t,n){return 0!==n?n/(e-1):0}))}(c),u);function h(){return pt(f,c,{ease:Array.isArray(o)?o:Pt(c,o)})}var d=h();return{next:function(t){return l.value=d(t),l.done=t>=u,l},flipTarget:function(){c.reverse(),d=h()}}}var Dt={keyframes:Mt,spring:K,decay:function(t){var e=t.velocity,n=void 0===e?0:e,r=t.from,i=void 0===r?0:r,o=t.power,a=void 0===o?.8:o,s=t.timeConstant,u=void 0===s?350:s,l=t.restDelta,c=void 0===l?.5:l,f=t.modifyTarget,h={done:!1,value:i},d=a*n,p=i+d,v=void 0===f?p:f(p);return v!==p&&(d=v-i),{next:function(t){var e=-d*Math.exp(-t/u);return h.done=!(e>c||e<-c),h.value=h.done?v:v+e,h},flipTarget:function(){}}}};function Rt(t,e,n){return void 0===n&&(n=0),t-e-n}var Lt=function(t){var e=function(e){var n=e.delta;return t(n)};return{start:function(){return w.update(e,!0,!0)},stop:function(){return v.update(e)}}};function jt(t){var e,n,i,o,a,s=t.from,u=t.autoplay,l=void 0===u||u,c=t.driver,f=void 0===c?Lt:c,h=t.elapsed,d=void 0===h?0:h,p=t.repeat,v=void 0===p?0:p,m=t.repeatType,g=void 0===m?"loop":m,y=t.repeatDelay,b=void 0===y?0:y,w=t.onPlay,_=t.onStop,x=t.onComplete,E=t.onRepeat,k=t.onUpdate,T=Object(r.__rest)(t,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]),S=T.to,O=0,A=T.duration,C=!1,N=!0,I=function(t){if(Array.isArray(t.to))return Mt;if(Dt[t.type])return Dt[t.type];var e=new Set(Object.keys(t));return e.has("ease")||e.has("duration")?Mt:e.has("stiffness")||e.has("mass")||e.has("damping")||e.has("restSpeed")||e.has("restDelta")?K:Mt}(T);(null===(n=(e=I).needsInterpolation)||void 0===n?void 0:n.call(e,s,S))&&(a=pt([0,100],[s,S],{clamp:!1}),s=0,S=100);var P=I(Object(r.__assign)(Object(r.__assign)({},T),{from:s,to:S}));function M(){O++,"reverse"===g?d=function(t,e,n,r){return void 0===n&&(n=0),void 0===r&&(r=!0),r?Rt(e+-t,e,n):e-(t-e)+n}(d,A,b,N=O%2===0):(d=Rt(d,A,b),"mirror"===g&&P.flipTarget()),C=!1,E&&E()}function D(t){if(N||(t=-t),d+=t,!C){var e=P.next(Math.max(0,d));o=e.value,a&&(o=a(o)),C=N?e.done:d<=0}null===k||void 0===k||k(o),C&&(0===O&&(null!==A&&void 0!==A||(A=d)),O<v?function(t,e,n,r){return r?t>=e+n:t<=-n}(d,A,b,N)&&M():(i.stop(),x&&x()))}return l&&(null===w||void 0===w||w(),(i=f(D)).start()),{stop:function(){null===_||void 0===_||_(),i.stop()}}}function Ft(t,e){return e?t*(1e3/e):0}var Ut=function(t){return t},qt=function(t){return void 0===t&&(t=Ut),function(e,n,r){var i=n-r,o=-(0-e+1)*(0-t(Math.abs(i)));return i<=0?n+o:n-o}},Bt=(Math.sqrt,function(t){return t.hasOwnProperty("x")&&t.hasOwnProperty("y")}),Vt=function(t){return Bt(t)&&t.hasOwnProperty("z")},zt=function(t,e){return Math.abs(t-e)};function Wt(t,e){if(rt(t)&&rt(e))return zt(t,e);if(Bt(t)&&Bt(e)){var n=zt(t.x,e.x),r=zt(t.y,e.y),i=Vt(t)&&Vt(e)?zt(t.z,e.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}var Ht=function(t,e){return 1-3*e+3*t},Yt=function(t,e){return 3*e-6*t},Gt=function(t){return 3*t},Kt=function(t,e,n){return((Ht(e,n)*t+Yt(e,n))*t+Gt(e))*t},Xt=function(t,e,n){return 3*Ht(e,n)*t*t+2*Yt(e,n)*t+Gt(e)};function $t(t,e,n,r){if(t===e&&n===r)return bt;for(var i=new Float32Array(11),o=0;o<11;++o)i[o]=Kt(.1*o,t,n);function a(e){for(var r=0,o=1;10!==o&&i[o]<=e;++o)r+=.1;--o;var a=r+.1*((e-i[o])/(i[o+1]-i[o])),s=Xt(a,t,n);return s>=.001?function(t,e,n,r){for(var i=0;i<8;++i){var o=Xt(e,n,r);if(0===o)return e;e-=(Kt(e,n,r)-t)/o}return e}(e,a,t,n):0===s?a:function(t,e,n,r,i){var o,a,s=0;do{(o=Kt(a=e+(n-e)/2,r,i)-t)>0?n=a:e=a}while(Math.abs(o)>1e-7&&++s<10);return a}(e,r,r+.1,t,n)}return function(t){return 0===t||1===t?t:Kt(a(t),e,r)}}var Zt=n(0),Qt=n.n(Zt);n.d(e,"a",(function(){return Xi})),n.d(e,"b",(function(){return zi}));var Jt=function(t){return"object"===typeof t&&t.hasOwnProperty("current")},te=function(){function t(){this.subscriptions=new Set}return t.prototype.add=function(t){var e=this;return this.subscriptions.add(t),function(){e.subscriptions.delete(t)}},t.prototype.notify=function(t,e,n){var i,o;if(this.subscriptions.size)try{for(var a=Object(r.__values)(this.subscriptions),s=a.next();!s.done;s=a.next()){(0,s.value)(t,e,n)}}catch(u){i={error:u}}
2finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}},t.prototype.clear=function(){this.subscriptions.clear()},t}(),ee=function(){function t(t){var e,n=this;this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new te,this.renderSubscribers=new te,this.canTrackVelocity=!1,this.updateAndNotify=function(t,e){void 0===e&&(e=!0),n.prev=n.current,n.current=t,n.prev!==n.current&&n.updateSubscribers.notify(n.current),e&&n.renderSubscribers.notify(n.current);var r=b(),i=r.delta,o=r.timestamp;n.lastUpdated!==o&&(n.timeDelta=i,n.lastUpdated=o,w.postRender(n.scheduleVelocityCheck))},this.scheduleVelocityCheck=function(){return w.postRender(n.velocityCheck)},this.velocityCheck=function(t){t.timestamp!==n.lastUpdated&&(n.prev=n.current)},this.set(t,!1),this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e)))}return t.prototype.onChange=function(t){return this.updateSubscribers.add(t)},t.prototype.clearListeners=function(){this.updateSubscribers.clear()},t.prototype.onRenderRequest=function(t){return t(this.get()),this.renderSubscribers.add(t)},t.prototype.attach=function(t){this.passiveEffect=t},t.prototype.set=function(t,e){void 0===e&&(e=!0),e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)},t.prototype.get=function(){return this.current},t.prototype.getPrevious=function(){return this.prev},t.prototype.getVelocity=function(){return this.canTrackVelocity?Ft(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},t.prototype.start=function(t){var e=this;return this.stop(),new Promise((function(n){e.stopAnimation=t(n)})).then((function(){return e.clearAnimation()}))},t.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},t.prototype.isAnimating=function(){return!!this.stopAnimation},t.prototype.clearAnimation=function(){this.stopAnimation=null},t.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},t}();function ne(t){return new ee(t)}var re=function(){function t(t,e){var n=this;this.children=new Set,this.latest={},this.values=new Map,this.valueSubscriptions=new Map,this.config={},this.update=function(){return n.config.onUpdate(n.latest)},this.triggerRender=function(){return n.render()},this.ref=function(t){t?n.mount(t):n.unmount(),n.externalRef&&("function"===typeof n.externalRef?n.externalRef(t):Jt(n.externalRef)&&(n.externalRef.current=t))},this.parent=t,this.rootParent=t?t.rootParent:this,this.treePath=t?Object(r.__spread)(t.treePath,[t]):[],this.depth=t?t.depth+1:0,this.externalRef=e}return t.prototype.subscribe=function(t){var e=this;return this.children.add(t),function(){return e.children.delete(t)}},t.prototype.hasValue=function(t){return this.values.has(t)},t.prototype.addValue=function(t,e){this.hasValue(t)&&this.removeValue(t),this.values.set(t,e),this.setSingleStaticValue(t,e.get()),this.subscribeToValue(t,e)},t.prototype.removeValue=function(t){var e;null===(e=this.valueSubscriptions.get(t))||void 0===e||e(),this.valueSubscriptions.delete(t),this.values.delete(t),delete this.latest[t]},t.prototype.getValue=function(t,e){var n=this.values.get(t);return void 0===n&&void 0!==e&&(n=new ee(e),this.addValue(t,n)),n},t.prototype.forEachValue=function(t){this.values.forEach(t)},t.prototype.getInstance=function(){return this.element},t.prototype.updateConfig=function(t){void 0===t&&(t={}),this.config=Object(r.__assign)({},t)},t.prototype.setSingleStaticValue=function(t,e){this.latest[t]=e},t.prototype.setStaticValues=function(t,e){if("string"===typeof t)this.setSingleStaticValue(t,e);else for(var n in t)this.setSingleStaticValue(n,t[n])},t.prototype.scheduleRender=function(){w.render(this.triggerRender,!1,!0)},t.prototype.scheduleUpdateLayoutDelta=function(){w.preRender(this.rootParent.updateLayoutDelta,!1,!0)},t.prototype.subscribeToValue=function(t,e){var n=this,r=e.onChange((function(e){n.setSingleStaticValue(t,e),n.element&&n.config.onUpdate&&w.update(n.update,!1,!0)})),i=e.onRenderRequest((function(){n.element&&n.scheduleRender()}));this.valueSubscriptions.set(t,(function(){r(),i()}))},t.prototype.mount=function(t){this.parent&&(this.removeFromParent=this.parent.subscribe(this)),this.element=this.current=t},t.prototype.unmount=function(){var t=this;this.forEachValue((function(e,n){return t.removeValue(n)})),v.update(this.update),v.render(this.render),this.removeFromParent&&this.removeFromParent()},t}();function ie(t){return t}function oe(t){var e=t.top;return{x:{min:t.left,max:t.right},y:{min:e,max:t.bottom}}}function ae(t){return{x:Object(r.__assign)({},t.x),y:Object(r.__assign)({},t.y)}}var se={translate:0,scale:1,origin:0,originPoint:0};function ue(){return{x:Object(r.__assign)({},se),y:Object(r.__assign)({},se)}}var le=Object(r.__assign)(Object(r.__assign)({},S),{transform:Math.round}),ce={color:H,backgroundColor:H,outlineColor:H,fill:H,stroke:H,borderColor:H,borderTopColor:H,borderRightColor:H,borderBottomColor:H,borderLeftColor:H,borderWidth:P,borderTopWidth:P,borderRightWidth:P,borderBottomWidth:P,borderLeftWidth:P,borderRadius:P,radius:P,borderTopLeftRadius:P,borderTopRightRadius:P,borderBottomRightRadius:P,borderBottomLeftRadius:P,width:P,maxWidth:P,height:P,maxHeight:P,size:P,top:P,right:P,bottom:P,left:P,padding:P,paddingTop:P,paddingRight:P,paddingBottom:P,paddingLeft:P,margin:P,marginTop:P,marginRight:P,marginBottom:P,marginLeft:P,rotate:N,rotateX:N,rotateY:N,rotateZ:N,scale:A,scaleX:A,scaleY:A,scaleZ:A,skew:N,skewX:N,skewY:N,distance:P,translateX:P,translateY:P,translateZ:P,x:P,y:P,z:P,perspective:P,transformPerspective:P,opacity:O,originX:R,originY:R,originZ:P,zIndex:le,fillOpacity:O,strokeOpacity:O,numOctaves:le},fe=[S,P,I,N,D,M,{test:function(t){return"auto"===t},parse:function(t){return t}}],he=function(t){return function(e){return e.test(t)}},de=function(t){return fe.find(he(t))},pe=Object(r.__spread)(fe,[H,G]),ve=function(t){return pe.find(he(t))},me=function(t){return ce[t]},ge=function(t,e){return e&&"number"===typeof t?e.transform(t):t},ye=["","X","Y","Z"],be=new Set,we=["transformPerspective","x","y","z"];function _e(t,e){return we.indexOf(t)-we.indexOf(e)}["perspective","translate","scale","rotate","skew"].forEach((function(t){var e=new Set(["rotate","skew"]).has(t);ye.forEach((function(n){var r=t+n;we.push(r),e&&be.add(r)}))}
2));var xe=new Set(we);function Ee(t){return xe.has(t)}var ke=new Set(["originX","originY","originZ"]);function Te(t){return ke.has(t)}var Se={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Oe(t,e){var n=t.x,r=t.y;return"translate3d("+n.translate/e.x+"px, "+r.translate/e.y+"px, 0) scale("+n.scale+", "+r.scale+")"}var Ae=Oe(ue(),{x:1,y:1});function Ce(t){return t.startsWith("--")}function Ne(t){return"string"===typeof t&&t.startsWith("var(--")}var Ie=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Pe(t,e,n){void 0===n&&(n=1);var i=Object(r.__read)(function(t){var e=Ie.exec(t);if(!e)return[,];var n=Object(r.__read)(e,3);return[n[1],n[2]]}(t),2),o=i[0],a=i[1];if(o){var s=window.getComputedStyle(e).getPropertyValue(o);return s||(Ne(a)?Pe(a,e,n+1):a)}}function Me(t,e){return t/(e.max-e.min)*100}var De={process:function(t,e){if("string"===typeof t){if(!P.test(t))return t;t=parseFloat(t)}return Me(t,e.x)+"% "+Me(t,e.y)+"%"}},Re={borderRadius:Object(r.__assign)(Object(r.__assign)({},De),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:De,borderTopRightRadius:De,borderBottomLeftRadius:De,borderBottomRightRadius:De,boxShadow:{process:function(t,e,n,r){var i=t,o=t.includes("var("),a=[];o&&(t=t.replace(Ie,(function(t){return a.push(t),"_$css"})));var s=G.parse(t);if(s.length>5)return i;var u=G.createTransformer(t),l="number"!==typeof s[0]?1:0,c=n.x.scale*r.x,f=n.y.scale*r.y;s[0+l]/=c,s[1+l]/=f;var h=Z(c,f,.5);"number"===typeof s[2+l]&&(s[2+l]/=h),"number"===typeof s[3+l]&&(s[3+l]/=h);var d=u(s);if(o){var p=0;d=d.replace("_$css",(function(){var t=a[p];return p++,t}))}return d}}};function Le(t,e,n,r,i,o,a,s,u,l,c,f){var h=a.enableHardwareAcceleration,d=a.transformTemplate,p=a.allowTransformNone;o.length=0;var v=!1,m=!1,g=!0;for(var y in t){var b=t[y],w=me(y),_=ge(b,w);if(Ee(y)){if(v=!0,r[y]=_,o.push(y),!g)continue;b!==(void 0!==w.default?w.default:0)&&(g=!1)}else if(Te(y))i[y]=_,m=!0;else if("transform"!==y||"function"!==typeof b){var x=Ce(y)?n:e;if(s&&Re[y]){var E=Re[y].process(b,f,u,c),k=Re[y].applyTo;if(k)for(var T=k.length,S=0;S<T;S++)x[k[S]]=E;else x[y]=E}else x[y]=_}}s?(e.transform=Oe(l,c),e.transform===Ae&&(e.transform=""),v&&(e.transform+=" "+function(t,e){var n="";e.sort(_e);for(var r=e.length,i=0;i<r;i++){var o=e[i];be.has(o)&&(n+=o+"("+t[o]+") ")}return n}(r,o),e.transform=e.transform.trim()),d&&(e.transform=d(r,e.transform)),e.transformOrigin=function(t){var e=t.x,n=t.y;return 100*e.origin+"% "+100*n.origin+"% 0"}(l)):(v&&(e.transform=function(t,e,n,r,i,o){void 0===i&&(i=!0),void 0===o&&(o=!0);var a="";e.sort(_e);for(var s=!1,u=e.length,l=0;l<u;l++){var c=e[l];a+=(Se[c]||c)+"("+t[c]+") ","z"===c&&(s=!0)}return!s&&i?a+="translateZ(0)":a=a.trim(),n?a=n(t,r?"":a):o&&r&&(a="none"),a}(r,o,d,g,h,p)),m&&(e.transformOrigin=function(t){var e=t.originX,n=void 0===e?"50%":e,r=t.originY,i=void 0===r?"50%":r,o=t.originZ;return n+" "+i+" "+(void 0===o?0:o)}(i)))}function je(t,e){t.min=e.min,t.max=e.max}function Fe(t,e,n){return n+e*(t-n)}function Ue(t,e,n,r,i){return void 0!==i&&(t=Fe(t,i,r)),Fe(t,n,r)+e}function qe(t,e,n,r,i){void 0===e&&(e=0),void 0===n&&(n=1),t.min=Ue(t.min,e,n,r,i),t.max=Ue(t.max,e,n,r,i)}function Be(t,e){var n=e.x,r=e.y;qe(t.x,n.translate,n.scale,n.originPoint),qe(t.y,r.translate,r.scale,r.originPoint)}function Ve(t,e,n,i){var o=Object(r.__read)(i,3),a=o[0],s=o[1],u=o[2];t.min=e.min,t.max=e.max;var l=void 0!==n[u]?n[u]:.5,c=Z(e.min,e.max,l);qe(t,n[a],n[s],c,n.scale)}var ze=["x","scaleX","originX"],We=["y","scaleY","originY"];function He(t,e,n,r,i){return t=Fe(t-=e,1/n,r),void 0!==i&&(t=Fe(t,1/i,r)),t}function Ye(t,e,n){var i=Object(r.__read)(n,3),o=i[0],a=i[1],s=i[2];!function(t,e,n,r,i){void 0===e&&(e=0),void 0===n&&(n=1),void 0===r&&(r=.5);var o=Z(t.min,t.max,r)-e;t.min=He(t.min,e,n,o,i),t.max=He(t.max,e,n,o,i)}(t,e[o],e[a],e[s],e.scale)}function Ge(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=.01),Wt(t,e)<n}function Ke(t,e){var n=.5,r=t.max-t.min,i=e.max-e.min;return i>r?n=$(e.min,e.max-r,t.min):r>i&&(n=$(t.min,t.max-i,e.min)),ft(0,1,n)}function Xe(t,e,n,r){var i=e.max-e.min,o=n.max-n.min;t.origin=void 0===r?Ke(e,n):r,t.originPoint=Z(e.min,e.max,t.origin),t.scale=o/i,Ge(t.scale,1,1e-4)&&(t.scale=1),t.translate=function(t,e,n){var r=Z(t.min,t.max,n);return Z(e.min,e.max,n)-r}(e,n,t.origin),Ge(t.translate)&&(t.translate=0)}function $e(t,e,n,r){Xe(t.x,e.x,n.x,r),Xe(t.y,e.y,n.y,r)}function Ze(t){return[t("x"),t("y")]}var Qe=function(t){return 1e3*t},Je={linear:bt,easeIn:wt,easeInOut:xt,easeOut:_t,circIn:Et,circInOut:Tt,circOut:kt,backIn:St,backInOut:At,backOut:Ot,anticipate:Ct,bounceIn:It,bounceInOut:function(t){return t<.5?.5*(1-Nt(1-2*t)):.5*Nt(2*t-1)+.5},bounceOut:Nt},tn=function(t){if(Array.isArray(t)){t.length;var e=Object(r.__read)(t,4);return $t(e[0],e[1],e[2],e[3])}return"string"===typeof t?Je[t]:t},en=function(t,e){return"zIndex"!==t&&(!("number"!==typeof e&&!Array.isArray(e))||!("string"!==typeof e||!G.test(e)||e.startsWith("url(")))},nn=function(t){return Array.isArray(t)},rn=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},on=function(t){return{type:"spring",stiffness:550,damping:0===t?100:30,restDelta:.01,restSpeed:10}},an=function(){return{type:"keyframes",ease:"linear",duration:.3}},sn=function(t){return{type:"keyframes",duration:.8,values:t}},un={x:rn,y:rn,z:rn,rotate:rn,rotateX:rn,rotateY:rn,rotateZ:rn,scaleX:on,scaleY:on,scale:on,opacity:an,backgroundColor:an,color:an,default:on};function ln(t){var e=t.yoyo,n=t.loop,i=t.flip,o=t.ease,a=t.times,s=Object(r.__rest)(t,["yoyo","loop","flip","ease","times"]),u=Object(r.__assign)({},s);return a&&(u.offset=a),s.duration&&(u.duration=Qe(s.duration)),s.repeatDelay&&(u.repeatDelay=Qe(s.repeatDelay)),o&&(u.ease=function(t){return Array.isArray(t)&&"number"!==typeof t[0]}(o)?o.map(tn):tn(o)),"tween"===s.type&&(u.type="keyframes"),e?u.repeatType="reverse":n?u.repeatType="loop":i&&(u.repeatType="mirror"),u.repeat=n||e||i||s.repeat,"spring"!==s.type&&(u.type="keyframes"),u}function cn(t,e,n){var i;return Array.isArray(e.to)&&(null!==(i=t.duration)&&void 0!==i||(t.duration=.8)),function(t){Array.isArray(t.to)&&null===t.to[0]&&(t.to=Object(r.__spread)(t.to),t.to[0]=t.from)}(e),function(t){t.when,t.delay,t.delayChildren,t.staggerChildren,t.staggerDirection,t.repeat,t.repeatType,t.repeatDelay,t.from;var e=Object(r.__rest)(t,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(e).length}(t)||(t=Object(r.__assign)(Object(r.__assign)({},t),function(t,e){var n;return n=nn(e)?sn:un[t]||un.default,Object(r.__assign)({to:e},n(e))}(n,e.to))),Object(r.__assign)(Object(r.__assign)({},e),ln(t))}function fn(t,e,n,i,o){var a=i[t]||i.default||i,s=e.get(),u=en(t,n);"none"===s&&u&&"string"===typeof n&&(s=G.getAnimatableNone(n));var l=en(t,s);return l&&u&&!1!==a.type?function(){var i={from:s,to:n,velocity:e.getVelocity(),onComplete:o,onUp
2date:function(t){return e.set(t)}};return"inertia"===a.type||"decay"===a.type?function(t){var e,n=t.from,i=void 0===n?0:n,o=t.velocity,a=void 0===o?0:o,s=t.min,u=t.max,l=t.power,c=void 0===l?.8:l,f=t.timeConstant,h=void 0===f?750:f,d=t.bounceStiffness,p=void 0===d?500:d,v=t.bounceDamping,m=void 0===v?10:v,g=t.restDelta,y=void 0===g?1:g,w=t.modifyTarget,_=t.driver,x=t.onUpdate,E=t.onComplete;function k(t){return void 0!==s&&t<s||void 0!==u&&t>u}function T(t){return void 0===s?u:void 0===u||Math.abs(s-t)<Math.abs(u-t)?s:u}function S(t){null===e||void 0===e||e.stop(),e=jt(Object(r.__assign)(Object(r.__assign)({},t),{driver:_,onUpdate:function(e){var n;null===x||void 0===x||x(e),null===(n=t.onUpdate)||void 0===n||n.call(t,e)},onComplete:E}))}function O(t){S(Object(r.__assign)({type:"spring",stiffness:p,damping:m,restDelta:y},t))}if(k(i))O({from:i,velocity:a,to:T(i)});else{var A=c*a+i;"undefined"!==typeof w&&(A=w(A));var C,N,I=T(A),P=I===s?-1:1;S({type:"decay",from:i,velocity:a,timeConstant:h,power:c,restDelta:y,modifyTarget:w,onUpdate:k(A)?function(t){C=N,N=t,a=Ft(t-C,b().delta),(1===P&&t>I||-1===P&&t<I)&&O({from:t,to:I,velocity:a})}:void 0})}return{stop:function(){return null===e||void 0===e?void 0:e.stop()}}}(Object(r.__assign)(Object(r.__assign)({},i),a)):jt(cn(a,i,t))}:function(){return e.set(n),o(),{stop:function(){}}}}function hn(t,e,n,r){return void 0===r&&(r={}),e.start((function(i){var o,a,s=fn(t,e,n,r,i),u=function(t,e){var n,r,i,o,a;return null!==(a=null!==(o=null!==(r=null===(n=t[e])||void 0===n?void 0:n.delay)&&void 0!==r?r:null===(i=t.default)||void 0===i?void 0:i.delay)&&void 0!==o?o:t.delay)&&void 0!==a?a:0}(r,t),l=function(){return a=s()};return u?o=setTimeout(l,Qe(u)):l(),function(){clearTimeout(o),null===a||void 0===a||a.stop()}}))}function dn(t,e){return oe(function(t,e){var n=t.top,r=t.left,i=t.bottom,o=t.right;void 0===e&&(e=ie);var a=e({x:r,y:n}),s=e({x:o,y:i});return{top:a.y,left:a.x,bottom:s.y,right:s.x}}(t.getBoundingClientRect(),e))}var pn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.defaultConfig={enableHardwareAcceleration:!0,allowTransformNone:!0},e.style={},e.reactStyle={},e.vars={},e.transform={},e.transformOrigin={},e.transformKeys=[],e.config=e.defaultConfig,e.isLayoutProjectionEnabled=!1,e.layoutUpdateListeners=new te,e.layoutMeasureListeners=new te,e.viewportBoxUpdateListeners=new te,e.hasViewportBoxUpdated=!1,e.targetBoxFinal={x:{min:0,max:1},y:{min:0,max:1}},e.treeScale={x:1,y:1},e.prevTreeScale={x:1,y:1},e.delta=ue(),e.deltaFinal=ue(),e.deltaTransform=Ae,e.stopLayoutAxisAnimation={x:function(){},y:function(){}},e.isTargetBoxLocked=!1,e.axisProgress={x:ne(0),y:ne(0)},e.updateLayoutDelta=function(){e.isLayoutProjectionEnabled&&e.box&&e.updateLayoutDeltas(),e.children.forEach(vn)},e}return Object(r.__extends)(e,t),e.prototype.removeValue=function(e){t.prototype.removeValue.call(this,e),delete this.vars[e],delete this.style[e]},e.prototype.clean=function(){this.style={},this.vars={},this.transform={}},e.prototype.updateConfig=function(t){void 0===t&&(t={}),this.config=Object(r.__assign)(Object(r.__assign)({},this.defaultConfig),t)},e.prototype.read=function(t){return this.getComputedStyle()[t]||0},e.prototype.addValue=function(e,n){t.prototype.addValue.call(this,e,n),e.startsWith("rotate")&&(this.layoutOrigin=.5)},e.prototype.readNativeValue=function(t){if(Ee(t)){var e=me(t);return e&&e.default||0}return this.read(t)},e.prototype.enableLayoutProjection=function(){this.isLayoutProjectionEnabled=!0},e.prototype.hide=function(){!1!==this.isVisible&&(this.isVisible=!1,this.scheduleRender())},e.prototype.show=function(){!0!==this.isVisible&&(this.isVisible=!0,this.scheduleRender())},e.prototype.onLayoutUpdate=function(t){return this.layoutUpdateListeners.add(t)},e.prototype.onLayoutMeasure=function(t){return this.layoutMeasureListeners.add(t)},e.prototype.onViewportBoxUpdate=function(t){return this.viewportBoxUpdateListeners.add(t)},e.prototype.layoutReady=function(t){this.layoutUpdateListeners.notify(this.box,this.prevViewportBox||this.box,t)},e.prototype.getBoundingBox=function(){var t=this.config.transformPagePoint;return dn(this.element,t)},e.prototype.getBoundingBoxWithoutTransforms=function(){var t,e,n=this.getBoundingBox();return t=n,e=this.latest,Ye(t.x,e,ze),Ye(t.y,e,We),n},e.prototype.getComputedStyle=function(){return window.getComputedStyle(this.element)},e.prototype.snapshotBoundingBox=function(){this.prevViewportBox=this.getBoundingBoxWithoutTransforms(),this.rebaseTargetBox(!1,this.prevViewportBox)},e.prototype.rebaseTargetBox=function(t,e){var n=this;void 0===t&&(t=!1),void 0===e&&(e=this.box);
2var r=this.axisProgress,i=r.x,o=r.y,a=this.box&&!this.isTargetBoxLocked&&!i.isAnimating()&&!o.isAnimating();(t||a)&&Ze((function(t){var r=e[t],i=r.min,o=r.max;n.setAxisTarget(t,i,o)}))},e.prototype.measureLayout=function(){var t=this;this.box=this.getBoundingBox(),this.boxCorrected=ae(this.box),this.targetBox||(this.targetBox=ae(this.box)),this.layoutMeasureListeners.notify(this.box,this.prevViewportBox||this.box),w.update((function(){return t.rebaseTargetBox()}))},e.prototype.lockTargetBox=function(){this.isTargetBoxLocked=!0},e.prototype.unlockTargetBox=function(){this.stopLayoutAnimation(),this.isTargetBoxLocked=!1},e.prototype.resetTransform=function(){var t=this.config.transformTemplate;this.element.style.transform=t?t({},""):"none",this.scheduleRender()},e.prototype.setAxisTarget=function(t,e,n){var r=this.targetBox[t];r.min=e,r.max=n,this.hasViewportBoxUpdated=!0,this.rootParent.scheduleUpdateLayoutDelta()},e.prototype.startLayoutAxisAnimation=function(t,e){var n=this,r=this.axisProgress[t],i=this.targetBox[t],o=i.min,a=i.max-o;return r.clearListeners(),r.set(o),r.set(o),r.onChange((function(e){return n.setAxisTarget(t,e,e+a)})),hn(t,r,0,e)},e.prototype.stopLayoutAnimation=function(){var t=this;Ze((function(e){return t.axisProgress[e].stop()}))},e.prototype.updateLayoutDeltas=function(){var t,e,n,r,i;t=this.boxCorrected,e=this.box,je(t.x,e.x),je(t.y,e.y),this.parent&&(this.prevTreeScale.x=this.treeScale.x,this.prevTreeScale.y=this.treeScale.y,n=this.treeScale,r=this.parent.treeScale,i=this.parent.delta,n.x=r.x*i.x.scale,n.y=r.y*i.y.scale),function(t,e){for(var n=e.length,r=0;r<n;r++)Be(t,e[r].delta)}(this.boxCorrected,this.treePath),$e(this.delta,this.boxCorrected,this.targetBox,this.layoutOrigin),this.hasViewportBoxUpdated&&this.viewportBoxUpdateListeners.notify(this.targetBox,this.delta),this.hasViewportBoxUpdated=!1;var o=Oe(this.delta,this.treeScale);o===this.deltaTransform&&this.prevTreeScale.x===this.treeScale.x&&this.prevTreeScale.y===this.treeScale.y||this.scheduleRender(),this.deltaTransform=o},e.prototype.updateTransformDeltas=function(){var t,e,n;this.isLayoutProjectionEnabled&&this.box&&(t=this.targetBoxFinal,e=this.targetBox,n=this.latest,Ve(t.x,e.x,n,ze),Ve(t.y,e.y,n,We),$e(this.deltaFinal,this.boxCorrected,this.targetBoxFinal,this.layoutOrigin))},e.prototype.build=function(){this.updateTransformDeltas(),void 0!==this.isVisible&&(this.style.visibility=this.isVisible?"visible":"hidden"),Le(this.latest,this.style,this.vars,this.transform,this.transformOrigin,this.transformKeys,this.config,this.isLayoutProjectionEnabled&&!!this.box,this.delta,this.deltaFinal,this.treeScale,this.targetBoxFinal)},e.prototype.render=function(){for(var t in this.build(),Object.assign(this.element.style,this.style),this.vars)this.element.style.setProperty(t,this.vars[t])},e}(re),vn=function(t){return t.updateLayoutDelta()};function mn(t){var e=Object(Zt.useRef)(null);return null===e.current&&(e.current=t()),e.current}function gn(t,e,n){return"string"===typeof t?t:P.transform(e+n*t)}var yn=function(t,e){return P.transform(t*e)},bn={offset:"stroke-dashoffset",array:"stroke-dasharray"},wn={offset:"strokeDashoffset",array:"strokeDasharray"};var _n={x:0,y:0,width:0,height:0};function xn(t,e,n,i,o,a,s,u,l,c,f,h,d,p,v){var m=t.attrX,g=t.attrY,y=t.originX,b=t.originY,w=t.pathLength,_=t.pathSpacing,x=void 0===_?1:_,E=t.pathOffset,k=void 0===E?0:E;return Le(Object(r.__rest)(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),i,n,o,a,s,u,f,h,d,p,v),i.transform&&(e.transform=i.transform,delete i.transform),(void 0!==y||void 0!==b||e.transform)&&(e.transformOrigin=function(t,e,n){return gn(e,t.x,t.width)+" "+gn(n,t.y,t.height)}(l||_n,void 0!==y?y:.5,void 0!==b?b:.5)),void 0!==m&&(i.x=m),void 0!==g&&(i.y=g),void 0!==c&&void 0!==w&&function(t,e,n,r,i,o){void 0===r&&(r=1),void 0===i&&(i=0),void 0===o&&(o=!0);var a=o?bn:wn;t[a.offset]=yn(-i,e);var s=yn(n,e),u=yn(r,e);t[a.array]=s+" "+u}(i,c,w,x,k,!1),i}var En=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox"]),kn=/([a-z])([A-Z])/g,Tn=function(t){return t.replace(kn,"$1-$2").toLowerCase()},Sn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.attrs={},e.defaultConfig={enableHardwareAcceleration:!1},e.config=e.defaultConfig,e}return Object(r.__extends)(e,t),e.prototype.mount=function(e){t.prototype.mount.call(this,e),this.measure()},e.prototype.measure=function(){try{this.dimensions="function"===typeof this.element.getBBox?this.element.getBBox():this.element.getBoundingClientRect()}catch(t){this.dimensions={x:0,y:0,width:0,height:0}}"path"===this.element.tagName&&(this.totalPathLength=this.element.getTotalLength())}
2,e.prototype.clean=function(){t.prototype.clean.call(this),this.attrs={}},e.prototype.read=function(t){return t=En.has(t)?t:Tn(t),this.element.getAttribute(t)},e.prototype.build=function(){this.updateTransformDeltas(),xn(this.latest,this.style,this.vars,this.attrs,this.transform,this.transformOrigin,this.transformKeys,this.config,this.dimensions,this.totalPathLength,this.isLayoutProjectionEnabled&&!!this.box,this.delta,this.deltaFinal,this.treeScale,this.targetBoxFinal)},e.prototype.render=function(){for(var e in t.prototype.render.call(this),this.attrs)this.element.setAttribute(En.has(e)?e:Tn(e),this.attrs[e])},e}(pn);var On=new Set(["animate","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","metadata","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use","view"]);function An(t){return"string"===typeof t&&On.has(t)}var Cn=Object(Zt.createContext)(null);function Nn(){var t=Object(Zt.useContext)(Cn);if(null===t)return[!0,null];var e=t.isPresent,n=t.onExitComplete,r=t.register,i=Mn();Object(Zt.useEffect)((function(){return r(i)}),[]);return!e&&n?[!1,function(){return null===n||void 0===n?void 0:n(i)}]:[!0]}var In=0,Pn=function(){return In++},Mn=function(){return mn(Pn)},Dn=function(t,e,n,i,o){var a=mn((function(){return new(An(t)?Sn:pn)(n,o)}));a.updateConfig(Object(r.__assign)({enableHardwareAcceleration:!i},e)),a.layoutId=e.layoutId;var s=function(){var t=Object(Zt.useContext)(Cn);return null===t||t.isPresent}();return a.isPresent=void 0!==e.isPresent?e.isPresent:s,Object(Zt.useEffect)((function(){if(e.onViewportBoxUpdate)return a.onViewportBoxUpdate(e.onViewportBoxUpdate)}),[e.onViewportBoxUpdate]),a},Rn=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","static","layout","layoutId","onLayoutAnimationComplete","onViewportBoxUpdate","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","whileHover","whileTap","onHoverEnd","onHoverStart"]);function Ln(t){return Rn.has(t)}var jn=function(t){return!Ln(t)};try{var Fn=n(309).default;jn=function(t){return t.startsWith("on")?!Ln(t):Fn(t)}}catch(ro){}function Un(t,e,n){var i="string"===typeof t?function(t){var e={};for(var n in t)jn(n)&&(e[n]=t[n]);return e}(e):e;n.clean(),n.build();var o=An(t)?function(t){return Object(r.__assign)(Object(r.__assign)({},t.attrs),{style:Object(r.__assign)({},t.reactStyle)})}(n):function(t,e){var n=e.drag,i={style:Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},t.reactStyle),t.style),t.vars)};return n&&(i.style.userSelect="none",i.draggable=!1),i}(n,e);return Object(Zt.createElement)(t,Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},i),{ref:n.ref}),o))}var qn,Bn=new Set(["width","height","top","left","right","bottom","x","y"]),Vn=function(t){return Bn.has(t)},zn=function(t,e){t.set(e,!1),t.set(e)},Wn=function(t){return t===S||t===P};!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(qn||(qn={}));var Hn=function(t,e){return parseFloat(t.split(", ")[e])},Yn=function(t,e){return function(n,r){var i=r.transform;if("none"===i||!i)return 0;var o=i.match(/^matrix3d\((.+)\)$/);if(o)return Hn(o[1],e);var a=i.match(/^matrix\((.+)\)$/);return a?Hn(a[1],t):0}},Gn=new Set(["x","y","z"]),Kn=we.filter((function(t){return!Gn.has(t)}));var Xn={width:function(t){var e=t.x;return e.max-e.min},height:function(t){var e=t.y;return e.max-e.min},top:function(t,e){var n=e.top;return parseFloat(n)},left:function(t,e){var n=e.left;return parseFloat(n)},bottom:function(t,e){var n=t.y,r=e.top;return parseFloat(r)+(n.max-n.min)},right:function(t,e){var n=t.x,r=e.left;return parseFloat(r)+(n.max-n.min)},x:Yn(4,13),y:Yn(5,14)},$n=function(t,e,n,i){void 0===n&&(n={}),void 0===i&&(i={}),e=Object(r.__assign)({},e),i=Object(r.__assign)({},i);var o=Object.keys(e).filter(Vn),a=[],s=!1,u=[];
2if(o.forEach((function(r){var o=t.getValue(r);if(t.hasValue(r)){var l,c=n[r],f=e[r],h=de(c);if(nn(f))for(var d=f.length,p=null===f[0]?1:0;p<d;p++)l?de(f[p]):(l=de(f[p]))===h||Wn(h)&&Wn(l);else l=de(f);if(h!==l)if(Wn(h)&&Wn(l)){var v=o.get();"string"===typeof v&&o.set(parseFloat(v)),"string"===typeof f?e[r]=parseFloat(f):Array.isArray(f)&&l===P&&(e[r]=f.map(parseFloat))}else(null===h||void 0===h?void 0:h.transform)&&(null===l||void 0===l?void 0:l.transform)&&(0===c||0===f)?0===c?o.set(l.transform(c)):e[r]=h.transform(f):(s||(a=function(t){var e=[];return Kn.forEach((function(n){var r=t.getValue(n);void 0!==r&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),e.length&&t.render(),e}(t),s=!0),u.push(r),i[r]=void 0!==i[r]?i[r]:e[r],zn(o,f))}})),u.length){var l=function(t,e,n){var r=e.getBoundingBox(),i=e.getComputedStyle(),o=i.display,a={top:i.top,left:i.left,bottom:i.bottom,right:i.right,transform:i.transform};"none"===o&&e.setStaticValues("display",t.display||"block"),e.render();var s=e.getBoundingBox();return n.forEach((function(n){var o=e.getValue(n);zn(o,Xn[n](r,a)),t[n]=Xn[n](s,i)})),t}(e,t,u);return a.length&&a.forEach((function(e){var n=Object(r.__read)(e,2),i=n[0],o=n[1];t.getValue(i).set(o)})),t.render(),{target:l,transitionEnd:i}}return{target:e,transitionEnd:i}};function Zn(t,e,n,r){return function(t){return Object.keys(t).some(Vn)}(e)?$n(t,e,n,r):{target:e,transitionEnd:r}}var Qn=function(t,e,n,i){var o=function(t,e,n){var i,o=Object(r.__rest)(e,[]),a=t.getInstance();if(!(a instanceof HTMLElement))return{target:o,transitionEnd:n};for(var s in n&&(n=Object(r.__assign)({},n)),t.forEachValue((function(t){var e=t.get();if(Ne(e)){var n=Pe(e,a);n&&t.set(n)}})),o){var u=o[s];if(Ne(u)){var l=Pe(u,a);l&&(o[s]=l,n&&(null!==(i=n[s])&&void 0!==i||(n[s]=u)))}}return{target:o,transitionEnd:n}}(t,e,i);return Zn(t,e=o.target,n,i=o.transitionEnd)};var Jn=function(){function t(){this.hasMounted=!1,this.pendingAnimations=[],this.componentControls=new Set}return t.prototype.setVariants=function(t){this.variants=t,this.componentControls.forEach((function(e){return e.setVariants(t)}))},t.prototype.setDefaultTransition=function(t){this.defaultTransition=t,this.componentControls.forEach((function(e){return e.setDefaultTransition(t)}))},t.prototype.subscribe=function(t){var e=this;return this.componentControls.add(t),this.variants&&t.setVariants(this.variants),this.defaultTransition&&t.setDefaultTransition(this.defaultTransition),function(){return e.componentControls.delete(t)}},t.prototype.start=function(t,e){var n=this;if(this.hasMounted){var r=[];return this.componentControls.forEach((function(n){var i=n.start(t,{transitionOverride:e});r.push(i)})),Promise.all(r)}return new Promise((function(r){n.pendingAnimations.push({animation:[t,e],resolve:r})}))},t.prototype.set=function(t){return this.hasMounted,this.componentControls.forEach((function(e){return e.apply(t)}))},t.prototype.stop=function(){this.componentControls.forEach((function(t){return t.stop()}))},t.prototype.mount=function(){var t=this;this.hasMounted=!0,this.pendingAnimations.forEach((function(e){var n=e.animation,i=e.resolve;return t.start.apply(t,Object(r.__spread)(n)).then(i)}))},t.prototype.unmount=function(){this.hasMounted=!1,this.stop()},t}(),tr=Object(Zt.createContext)({static:!1}),er=function(t){return"string"===typeof t||Array.isArray(t)},nr=function(t){return t instanceof Jn},rr=function(t,e,n,r,i){void 0===r&&(r=!1);var o,a=i.initial,s=i.animate,u=i.variants,l=i.whileTap,c=i.whileHover,f=i.layoutId,h=Object(Zt.useContext)(Cn),d=null===h||void 0===h?void 0:h.id;n.isPresenceRoot=t.presenceId!==d,void 0!==(null===h||void 0===h?void 0:h.initial)&&(a=h.initial),!1!==a||nr(s)?"boolean"!==typeof a&&(o=a):o=s;var p=Object(Zt.useRef)(!1),v=u||er(s)||er(l)||er(c)||nr(s),m=er(o)?o:t.initial,g=er(s)?s:t.animate,y=r?m:null,b=v&&er(g)?g:null,w=Object(Zt.useMemo)((function(){return{controls:v?e:t.controls,initial:m,animate:g,visualElement:n,hasMounted:p,isReducedMotion:t.isReducedMotion,presenceId:d}}),[y,b,t.isReducedMotion,s,f,d]);return w.static=r,function(t,e){void 0===e&&(e=!1);var n=Object(Zt.useRef)(!0);(!e||e&&n.current)&&t(),n.current=!1}((function(){var n=o||t.initial;n&&e.apply(n)}),!r),Object(Zt.useEffect)((function(){p.current=!0}),[]),w},ir=function(t){var e=t.animate,n=t.variants,r=t.inherit;return(void 0===r||r)&&!!n&&(!e||e instanceof Jn)},or=function(t){return t instanceof ee};function ar(t,e){var n=e.layout,r=e.layoutId;return Ee(t)||Te(t)||(n||void 0!==r)&&!!Re[t]}function sr(t,e,n,r,i){for(var o in void 0===r&&(r=!1),r&&(t.reactStyle={}),n){var a=n[o],s=!1;
2if(or(a))ur.has(o)||(t.addValue(o,a),s=!0);else if(ar(o,i)){if(t.hasValue(o)){if(a!==e[o]){t.getValue(o).set(a)}}else t.addValue(o,ne(a));s=!0}else r&&(t.reactStyle[o]=a);s&&(e[o]=a)}}var ur=new Set([]),lr=function(){return{}},cr=function(t){return nn(t)?t[t.length-1]||0:t},fr=function(){function t(t,e){var n=this,r=e.makeTargetAnimatable;this.props={},this.variants={},this.baseTarget={},this.overrides=[],this.resolvedOverrides=[],this.activeOverrides=new Set,this.isAnimating=new Set,this.hasValue=function(t){return!n.visualElement.hasValue(t)},this.visualElement=t,this.makeTargetAnimatable=r,this.visualElement.forEachValue((function(t,e){return n.baseTarget[e]=t.get()}))}return t.prototype.setProps=function(t){this.props=t},t.prototype.setVariants=function(t){t&&(this.variants=t)},t.prototype.setDefaultTransition=function(t){t&&(this.defaultTransition=t)},t.prototype.setValues=function(t,e){var n=void 0===e?{}:e,i=n.isActive,o=void 0===i?new Set:i,a=n.priority,s=this.resolveVariant(t),u=s.target,l=s.transitionEnd;for(var c in u=this.transformValues(Object(r.__assign)(Object(r.__assign)({},u),l))){if(o.has(c))return;if(o.add(c),u){var f=cr(u[c]);if(this.visualElement.hasValue(c)){var h=this.visualElement.getValue(c);h&&h.set(f)}else this.visualElement.addValue(c,ne(f));a||(this.baseTarget[c]=f)}}},t.prototype.transformValues=function(t){var e=this.props.transformValues;return e?e(t):t},t.prototype.checkForNewValues=function(t){var e=Object.keys(t).filter(this.hasValue),n=e.length;if(n)for(var r=0;r<n;r++){var i=e[r],o=t[i],a=null;if(Array.isArray(o)&&(a=o[0]),null===a){var s=this.visualElement.readNativeValue(i);a=void 0!==s?s:t[i]}"string"===typeof a&&/^\-?\d*\.?\d+$/.test(a)?a=parseFloat(a):!ve(a)&&G.test(o)&&(a=G.getAnimatableNone(o)),this.visualElement.addValue(i,ne(a)),this.baseTarget[i]=a}},t.prototype.resolveVariant=function(t,e){var n=(void 0===e?{}:e).custom;if(!t)return{target:void 0,transition:void 0,transitionEnd:void 0};"function"===typeof t&&(t=t(null!==n&&void 0!==n?n:this.props.custom,function(t){var e={};return t.forEachValue((function(t,n){return e[n]=t.get()})),e}(this.visualElement),function(t){var e={};return t.forEachValue((function(t,n){return e[n]=t.getVelocity()})),e}(this.visualElement)));var i=t.transition;return{transition:void 0===i?this.defaultTransition:i,transitionEnd:t.transitionEnd,target:Object(r.__rest)(t,["transition","transitionEnd"])}},t.prototype.getHighestPriority=function(){return this.activeOverrides.size?Math.max.apply(Math,Object(r.__spread)(Array.from(this.activeOverrides))):0},t.prototype.setOverride=function(t,e){this.overrides[e]=t,this.children&&this.children.forEach((function(n){return n.setOverride(t,e)}))},t.prototype.startOverride=function(t){var e=this.overrides[t];if(e)return this.start(e,{priority:t})},t.prototype.clearOverride=function(t){var e=this;if(this.children&&this.children.forEach((function(e){return e.clearOverride(t)})),this.overrides[t]){this.activeOverrides.delete(t);var n=this.getHighestPriority();if(this.resetIsAnimating(),n)this.overrides[n]&&this.startOverride(n);var r=this.resolvedOverrides[t];if(r){var i={};for(var o in this.baseTarget)void 0!==r[o]&&(i[o]=this.baseTarget[o]);this.onStart(),this.animate(i).then((function(){return e.onComplete()}))}}},t.prototype.apply=function(t){return Array.isArray(t)?this.applyVariantLabels(t):"string"===typeof t?this.applyVariantLabels([t]):void this.setValues(t)},t.prototype.applyVariantLabels=function(t){var e=this,n=new Set;Object(r.__spread)(t).reverse().forEach((function(r){var i=e.resolveVariant(e.variants[r]),o=i.target,a=i.transitionEnd;o&&e.setValues(o,{isActive:n}),a&&e.setValues(a,{isActive:n}),e.children&&e.children.size&&e.children.forEach((function(e){return e.applyVariantLabels(t)}))}))},t.prototype.start=function(t,e){var n,r,i=this;return void 0===e&&(e={}),e.priority&&this.activeOverrides.add(e.priority),this.resetIsAnimating(e.priority),r=t,n=Array.isArray(r)?this.animateVariantLabels(t,e):"string"===typeof t?this.animateVariant(t,e):this.animate(t,e),this.onStart(),n.then((function(){return i.onComplete()}
2))},t.prototype.animate=function(t,e){var n=this;void 0===e&&(e={});var i=e.delay,o=void 0===i?0:i,a=e.priority,s=void 0===a?0:a,u=e.transitionOverride,l=Object(r.__rest)(e,["delay","priority","transitionOverride"]),c=this.resolveVariant(t,l),f=c.target,h=c.transition,d=c.transitionEnd;if(u&&(h=u),!f)return Promise.resolve();f=this.transformValues(f),d&&(d=this.transformValues(d)),this.checkForNewValues(f);var p=this.transformValues(function(t,e,n){var r,i,o={};for(var a in t)o[a]=null!==(r=hr(a,e))&&void 0!==r?r:null===(i=n.getValue(a))||void 0===i?void 0:i.get();return o}(f,h,this.visualElement));if(this.makeTargetAnimatable){var v=this.makeTargetAnimatable(this.visualElement,f,p,d);f=v.target,d=v.transitionEnd}s&&(this.resolvedOverrides[s]=f),this.checkForNewValues(f);var m=[];for(var g in f){var y=this.visualElement.getValue(g);if(y&&f&&void 0!==f[g]){var b=f[g];s||(this.baseTarget[g]=cr(b)),this.isAnimating.has(g)||(this.isAnimating.add(g),m.push(hn(g,y,b,Object(r.__assign)({delay:o},h))))}}var w=Promise.all(m);return d?w.then((function(){n.setValues(d,{priority:s})})):w},t.prototype.animateVariantLabels=function(t,e){var n=this,i=Object(r.__spread)(t).reverse().map((function(t){return n.animateVariant(t,e)}));return Promise.all(i)},t.prototype.animateVariant=function(t,e){var n=this,i=e&&e.priority||0,o=this.variants[t],a=o&&this.resolveVariant(o,e).transition||{},s=o?function(){return n.animate(o,e)}:function(){return Promise.resolve()},u=this.children?function(r){void 0===r&&(r=0);var o=a.delayChildren,s=void 0===o?0:o;return n.animateChildren(t,s+r,a.staggerChildren,a.staggerDirection,i,null===e||void 0===e?void 0:e.custom)}:function(){return Promise.resolve()},l=a.when;if(l){var c=Object(r.__read)("beforeChildren"===l?[s,u]:[u,s],2),f=c[0],h=c[1];return f().then(h)}return Promise.all([s(),u(null===e||void 0===e?void 0:e.delay)])},t.prototype.animateChildren=function(t,e,n,r,i,o){if(void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=1),void 0===i&&(i=0),!this.children)return Promise.resolve();var a=[],s=(this.children.size-1)*n,u=1===r?function(t){return t*n}:function(t){return s-t*n};return Array.from(this.children).forEach((function(n,r){var s=n.animateVariant(t,{priority:i,delay:e+u(r),custom:o});a.push(s)})),Promise.all(a)},t.prototype.onStart=function(){var t=this.props.onAnimationStart;t&&t()},t.prototype.onComplete=function(){var t=this.props.onAnimationComplete;t&&t()},t.prototype.checkOverrideIsAnimating=function(t){for(var e=this.overrides.length,n=t+1;n<e;n++){var r=this.resolvedOverrides[n];if(r)for(var i in r)this.isAnimating.add(i)}},t.prototype.resetIsAnimating=function(t){void 0===t&&(t=0),this.isAnimating.clear(),t<this.getHighestPriority()&&this.checkOverrideIsAnimating(t),this.children&&this.children.forEach((function(e){return e.resetIsAnimating(t)}))},t.prototype.stop=function(){this.visualElement.forEachValue((function(t){return t.stop()}))},t.prototype.addChild=function(t){this.children||(this.children=new Set),this.children.add(t),this.overrides.forEach((function(e,n){e&&t.setOverride(e,n)}))},t.prototype.removeChild=function(t){this.children&&this.children.delete(t)},t.prototype.resetChildren=function(){this.children&&this.children.clear()},t}();function hr(t,e){if(e)return(e[t]||e.default||e).from}function dr(t,e,n){var i=ir(e),o=e.variants,a=e.transition,s=Object(Zt.useContext)(tr).controls,u=Object(Zt.useContext)(Cn),l=mn((function(){return new fr(t,n)}));return u&&!u.isPresent||(l.resetChildren(),l.setProps(e),l.setVariants(o),l.setDefaultTransition(a)),Object(Zt.useEffect)((function(){i&&s&&s.addChild(l)})),Object(Zt.useEffect)((function(){return function(){e.onAnimationComplete;var t=Object(r.__rest)(e,["onAnimationComplete"]);l.setProps(t),s&&s.removeChild(l)}}),[]),l}var pr,vr,mr=Object(Zt.createContext)({transformPagePoint:function(t){return t},features:[]});!function(t){t[t.Entering=0]="Entering",t[t.Present=1]="Present",t[t.Exiting=2]="Exiting"}(pr||(pr={})),function(t){t[t.Hide=0]="Hide",t[t.Show=1]="Show"}(vr||(vr={}));var gr={measureLayout:function(t){return t.measureLayout()},layoutReady:function(t){return t.layoutReady()}},yr=function(t,e){return t.depth-e.depth};function br(){var t=new Set;return{add:function(e){return t.add(e)},flush:function(e){var n=void 0===e?gr:e,r=n.measureLayout,i=n.layoutReady,o=Array.from(t).sort(yr);o.forEach((function(t){return t.resetTransform()})),o.forEach(r),o.forEach(i),o.forEach((function(t){t.isPresent&&(t.presence=pr.Present)}
2)),t.clear()}}}function wr(t){return!!t.forceUpdate}var _r=Object(Zt.createContext)(br()),xr="undefined"!==typeof window?Zt.useLayoutEffect:Zt.useEffect;function Er(t,e){var n=e.defaultFeatures,i=e.useVisualElement,o=e.render,a=e.animationControlsConfig;return Object(Zt.forwardRef)((function(e,s){var u=Object(Zt.useContext)(tr),l=ir(e),c=u.static||e.static||!1,f=i(t,e,u.visualElement,c,s);!function(t,e){var n=mn(lr);for(var r in n){var i=ar(r,e),o=e[r],a=e.style&&e.style[r],s=o&&or(e[r]),u=a&&or(e.style[r]);(i&&!o&&!a||!i&&!s&&!u)&&(t.removeValue(r),delete n[r])}sr(t,n,e,!1,e),e.style&&sr(t,n,e.style,!0,e),e.transformValues&&(t.reactStyle=e.transformValues(t.reactStyle))}(f,e);var h=dr(f,e,a),d=rr(u,h,f,c,e),p=function(t,e,n,i,o,a,s,u){var l=Object(Zt.useContext)(mr);if(e||"undefined"===typeof window)return null;for(var c=Object(r.__spread)(t,l.features),f=c.length,h=[],d=0;d<f;d++){var p=c[d],v=p.shouldRender,m=p.key,g=p.getComponent;if(v(o,s)){var y=g(o);y&&h.push(Object(Zt.createElement)(y,Object(r.__assign)({key:m},o,{localContext:a,parentContext:s,visualElement:n,controls:i,inherit:u})))}}return h}(n,c,f,h,e,d,u,l),v=o(t,e,f);return function(t){var e=Object(Zt.useContext)(_r);xr((function(){return function(){wr(e)&&e.remove(t)}}),[])}(f),Object(Zt.createElement)(Zt.Fragment,null,Object(Zt.createElement)(tr.Provider,{value:d},v),p)}))}function kr(t){var e=null;return function(){return null===e&&(e=t,function(){e=null})}}var Tr=kr("dragHorizontal"),Sr=kr("dragVertical");function Or(t){var e=!1;if("y"===t)e=Sr();else if("x"===t)e=Tr();else{var n=Tr(),r=Sr();n&&r?e=function(){n(),r()}:(n&&n(),r&&r())}return e}var Ar=!1;"undefined"!==typeof window&&document.addEventListener("touchmove",(function(t){Ar&&t.preventDefault()}),{passive:!1});var Cr=function(){return Ar=!1};function Nr(t,e,n,r){if(n)return t.addEventListener(e,n,r),function(){return t.removeEventListener(e,n,r)}}function Ir(t){return"undefined"!==typeof PointerEvent&&t instanceof PointerEvent?!("mouse"!==t.pointerType):t instanceof MouseEvent}function Pr(t){return!!t.touches}var Mr={pageX:0,pageY:0};function Dr(t,e){void 0===e&&(e="page");var n=t.touches[0]||t.changedTouches[0]||Mr;return{x:n[e+"X"],y:n[e+"Y"]}}function Rr(t,e){return void 0===e&&(e="page"),{x:t[e+"X"],y:t[e+"Y"]}}function Lr(t,e){return void 0===e&&(e="page"),{point:Pr(t)?Dr(t,e):Rr(t,e)}}function jr(t){return Lr(t,"client")}var Fr,Ur=function(t,e){if(void 0===e&&(e=!1),t){var n=function(e){return t(e,Lr(e))};return e?function(t){if(t)return function(e){var n=e instanceof MouseEvent;(!n||n&&0===e.button)&&t(e)}}(n):n}},qr="undefined"!==typeof window,Br={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},Vr={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function zr(t){return qr&&null===window.onpointerdown?t:qr&&null===window.ontouchstart?Vr[t]:qr&&null===window.onmousedown?Br[t]:t}function Wr(t,e,n,r){return Nr(t,zr(e),Ur(n,"pointerdown"===e),r)}function Hr(t,e,n,r){return function(t,e,n,r){Object(Zt.useEffect)((function(){var i=t.current;if(n&&i)return Nr(i,e,n,r)}),[t,e,n,r])}(t,zr(e),Ur(n,"pointerdown"===e),r)}!function(t){t.subtract=function(t,e){return{x:t.x-e.x,y:t.y-e.y}},t.relativeTo=function(t){var e;return function(n){var r=n.x,i=n.y,o=void 0!==e?e:e="string"===typeof t?document.getElementById(t):t;if(o){var a=o.getBoundingClientRect();return{x:r-a.left-window.scrollX,y:i-a.top-window.scrollY}}}}}(Fr||(Fr={}));var Yr=function(){function t(t,e,n){var i=this,o=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(i.lastMoveEvent&&i.lastMoveEventInfo){var t=Kr(i.lastMoveEventInfo,i.history),e=null!==i.startEvent,n=Wt(t.offset,{x:0,y:0})>=3;if(e||n){var o=t.point,a=b().timestamp;i.history.push(Object(r.__assign)(Object(r.__assign)({},o),{timestamp:a}));var s=i.handlers,u=s.onStart,l=s.onMove;e||(u&&u(i.lastMoveEvent,t),i.startEvent=i.lastMoveEvent),l&&l(i.lastMoveEvent,t)}}},!(Pr(t)&&t.touches.length>1)){this.handlers=e,this.transformPagePoint=o;var a=Gr(Lr(t),this.transformPagePoint),s=a.point,u=b().timestamp;this.history=[Object(r.__assign)(Object(r.__assign)({},s),{timestamp:u})];var l=e.onSessionStart;l&&l(t,Kr(a,this.history));var c=Wr(window,"pointermove",(function(t,e){return i.handlePointerMove(t,e)})),f=Wr(window,"pointerup",(function(t,e){return i.handlePointerUp(t,e)}));this.removeListeners=function(){c&&c(),f&&f()}}}return t.prototype.handlePointerMove=function(t,e){this.lastMoveEvent=t,this.lastMoveEventInfo=Gr(e,this.transformPagePoint),Ir(t)&&0===t.buttons?this.handlePointerUp(t,e):w.update(this.updatePoint,!0)},t.prototype.handlePointerUp=function(t,e){this.end();var n=this.handlers.onEnd;if(n){var r=Kr(Gr(e,this.transformPagePoint),this.history);n&&n(t,r)}},t.prototype.updateHandlers=function(t){this.handlers=t},t.prototype.end=function(){this.removeListeners&&this.removeListeners(),v.update(this.updatePoint),Cr()},t}();function Gr(t,e){return e?{point:e(t.point)}:t}function Kr(t,e){var n=t.point;return{point:n,delta:Fr.subtract(n,$r(e)),offset:Fr.subtract(n,Xr(e)),velocity:Zr(e,.1)}}function Xr(t){return t[0]}function $r(t){return t[t.length-1]}function Zr(t,e){if(t.length<2)return{x:0,y:0};for(var n=t.length-1,r=null,i=$r(t);n>=0&&(r=t[n],!(i.timestamp-r.timestamp>Qe(e)));)n--;if(!r)return{x:0,y:0};var o=(i.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};var a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Qr(t,e,n){var r=e.min,i=e.max;return void 0!==r&&t<r?t=n?Z(r,t,n):Math.max(t,r):void 0!==i&&t>i&&(t=n?Z(i,t,n):Math.min(t,i)),t}function Jr(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function ti(t,e){var n,i=e.min-t.min,o=e.max-t.max;return e.max-e.min<t.max-t.min&&(i=(n=Object(r.__read)([o,i],2))[0],o=n[1]),{min:t.min+i,max:t.min+o}}var ei,ni=new WeakMap,ri=function(){function t(t){var e=t.visualElement;this.isDragging=!1,this.currentDirection=null,this.constraints=!1,this.props={},this.hasMutatedConstraints=!1,this.cursorProgress={x:.5,y:.5},this.originPoint={},this.openGlobalLock=null,this.panSession=null,this.visualElement=e,this.visualElement.enableLayoutProjection(),ni.set(e,this)}return t.prototype.start=function(t,e){var n=this,r=void 0===e?{}:e,i=r.snapToCursor,o=void 0!==i&&i,a=r.cursorProgress;o&&this.snapToCursor(t);var s=this.props.transformPagePoint;this.panSession=new Yr(t,{onSessionStart:function(){Ar=!0,n.stopMotion()},onStart:function(t,e){var r,i,o=n.props,s=o.drag,u=o.dragPropagation;if(!s||u||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=Or(s),n.openGlobalLock)){n.prepareBoundingBox(),n.visualElement.lockTargetBox(),n.resolveDragConstraints();var l=jr(t).point;Ze((function(t){var e=n.visualElement.targetBox[t],r=e.min,i=e.max;n.cursorProgress[t]=a?a[t]:$(r,i,l[t]);var o=n.getAxisMotionValue(t);o&&(n.originPoint[t]=o.get())})),n.isDragging=!0,n.currentDirection=null,null===(i=(r=n.props).onDragStart)||void 0===i||i.call(r,t,e)}},onMove:function(t,e){var r,i,o,a,s=n.props,u=s.dragPropagation,l=s.dragDirectionLock;if(u||n.openGlobalLock){var c=e.offset;if(l&&null===n.currentDirection)return n.currentDirection=function(t,e){void 0===e&&(e=10);var n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(c),void(null!==n.currentDirection&&(null===(i=(r=n.props).onDirectionLock)||void 0===i||i.call(r,n.currentDirection)));n.updateAxis("x",t,c),n.updateAxis("y",t,c),null===(a=(o=n.props).onDrag)||void 0===a||a.call(o,t,e),ei=t}},onEnd:function(t,e){return n.stop(t,e)}},{transformPagePoint:s})},t.prototype.prepareBoundingBox=function(){var t=this.visualElement.getInstance(),e=t.style.transform;this.visualElement.resetTransform(),this.visualElement.measureLayout(),t.style.transform=e,this.visualElement.rebaseTargetBox(!0,this.visualElement.getBoundingBoxWithoutTransforms())},t.prototype.resolveDragConstraints=function(){var t=this,e=this.props.dragConstraints;this.constraints=!!e&&(Jt(e)?this.resolveRefConstraints(this.visualElement.box,e):function(t,e){var n=e.top,r=e.left,i=e.bottom,o=e.right;return{x:Jr(t.x,r,o),y:Jr(t.y,n,i)}}(this.visualElement.box,e)),this.constraints&&!this.hasMutatedConstraints&&Ze((function(e){t.getAxisMotionValue(e)&&(t.constraints[e]=function(t,e){var n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(t.visualElement.box[e],t.constraints[e]))}))},t.prototype.resolveRefConstraints=function(t,e){var n=this.props,r=n.onMeasureDragConstraints,i=n.transformPagePoint,o=e.current;this.constraintsBox=dn(o,i);var a=function(t,e){return{x:ti(t.x,e.x),y:ti(t.y,e.y)}}(t,this.constraintsBox);if(r){var s=r(function(t){var e=t.x,n=t.y;return{top:n.min,bottom:n.max,left:e.min,right:e.max}}(a));this.hasMutatedConstraints=!!s,s&&(a=oe(s))}return a},t.prototype.cancelDrag=function(){Cr(),this.isDragging=!1,this.panSession&&this.panSession.end(),this.panSession=null,!this.props.dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null)},t.prototype.stop=function(t,e){var n;this.visualElement.unlockTargetBox(),null===(n=this.panSession)||void 0===n||n.end(),this.panSession=null;var r=this.isDragging;if(this.cancelDrag(),r){var i=this.props,o=i.dragMomentum,a=i.dragElastic,s=i.onDragEnd;if(o||a){var u=e.velocity;this.animateDragEnd(u)}null===s||void 0===s||s(t,e)}},t.prototype.snapToCursor=function(t){var e=this;this.prepareBoundingBox(),Ze((function(n){var r=e.getAxisMotionValue(n);if(r){var i=jr(t).point,o=e.visualElement.box,a=o[n].max-o[n].min,s=o[n].min+a/2,u=i[n]-s;e.originPoint[n]=i[n],r.set(u)}else e.cursorProgress[n]=.5,e.updateVisualElementAxis(n,t)}))},t.prototype.updateAxis=function(t,e,n){if(ii(t,this.props.drag,this.currentDirection))return this.getAxisMotionValue(t)?this.updateAxisMotionValue(t,n):this.updateVisualElementAxis(t,e)},t.prototype.updateAxisMotionValue=function(t,e){var n=this.getAxisMotionValue(t);if(e&&n){var r=this.props.dragElastic,i=this.originPoint[t]+e[t],o=this.constraints?Qr(i,this.constraints[t],r):i;n.set(o)}},t.prototype.updateVisualElementAxis=function(t,e){var n,r=this.props.dragElastic,i=this.visualElement.box[t],o=i.max-i.min,a=this.cursorProgress[t],s=function(t,e,n,r,i){var o=t-e*n;return r?Qr(o,r,i):o}(jr(e).point[t],o,a,null===(n=this.constraints)||void 0===n?void 0:n[t],r);this.visualElement.setAxisTarget(t,s,s+o)},t.prototype.updateProps=function(t){var e=t.drag,n=void 0!==e&&e,i=t.dragDirectionLock,o=void 0!==i&&i,a=t.dragPropagation,s=void 0!==a&&a,u=t.dragConstraints,l=void 0!==u&&u,c=t.dragElastic,f=void 0===c?.35:c,h=t.dragMomentum,d=void 0===h||h,p=Object(r.__rest)(t,["drag","dragDirectionLock","dragPropagation","dragConstraints","dragElastic","dragMomentum"]);this.props=Object(r.__assign)({drag:n,dragDirectionLock:o,dragPropagation:s,dragConstraints:l,dragElastic:f,dragMomentum:d},p)},t.prototype.getAxisMotionValue=function(t){var e=this.props,n=e.layout,r=e.layoutId,i="_drag"+t.toUpperCase();return this.props[i]?this.props[i]:n||void 0!==r?void 0:this.visualElement.getValue(t,0)},t.prototype.animateDragEnd=function(t){var e=this,n=this.props,i=n.drag,o=n.dragMomentum,a=n.dragElastic,s=n.dragTransition,u=Ze((function(n){if(ii(n,i,e.currentDirection)){var u=e.constraints?e.constraints[n]:{},l=a?200:1e6,c=a?40:1e7,f=Object(r.__assign)(Object(r.__assign)({type:"inertia",velocity:o?t[n]:0,bounceStiffness:l,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10},s),u);return e.getAxisMotionValue(n)?e.startAxisValueAnimation(n,f):e.visualElement.startLayoutAxisAnimation(n,f)}}));return Promise.all(u).then((function(){var t,n;null===(n=(t=e.props).onDragTransitionEnd)||void 0===n||n.call(t)}))},t.prototype.stopMotion=function(){var t=this;Ze((function(e){var n=t.getAxisMotionValue(e);n?n.stop():t.visualElement.stopLayoutAnimation()}))},t.prototype.startAxisValueAnimation=function(t,e){var n=this.getAxisMotionValue(t);if(n){var r=n.get();return n.set(r),n.set(r),hn(t,n,0,e)}},t.prototype.scalePoint=function(){var t=this,e=this.props,n=e.drag,r=e.dragConstraints;if(Jt(r)&&this.constraintsBox){this.stopMotion();var i={x:0,y:0};Ze((function(e){i[e]=Ke(t.visualElement.targetBox[e],t.constraintsBox[e])})),this.prepareBoundingBox(),this.resolveDragConstraints(),Ze((function(e){if(ii(e,n,null)){var r=function(t,e,n){var r=t.max-t.min,i=Z(e.min,e.max-r,n);return{min:i,max:i+r}}(t.visualElement.targetBox[e],t.constraintsBox[e],i[e]),o=r.min,a=r.max;t.visualElement.setAxisTarget(e,o,a)}}))}},t.prototype.mount=function(t){var e=this,n=Wr(t.getInstance(),"pointerdown",(function(t){var n=e.props,r=n.drag,i=n.dragListener;r&&(void 0===i||i)&&e.start(t)})),r=Nr(window,"resize",(function(){e.scalePoint()})),i=t.onLayoutUpdate((function(){e.isDragging&&e.resolveDragConstraints()})),o=t.prevSnapshot;return(null===o||void 0===o?void 0:o.isDragging)&&this.start(ei,{cursorProgress:o.cursorProgress}),function(){null===n||void 0===n||n(),null===r||void 0===r||r(),null===i||void 0===i||i(),e.cancelDrag()}},t}();function ii(t,e,n){return(!0===e||e===t)&&(null===n||n===t)}var oi=function(t){return function(e){return t(e),null}},ai=oi((function(t){var e=t.visualElement;return function(t,e){var n=t.dragControls,i=Object(Zt.useContext)(mr).transformPagePoint,o=mn((function(){return new ri({visualElement:e})}));o.updateProps(Object(r.__assign)(Object(r.__assign)({},t),{transformPagePoint:i})),Object(Zt.useEffect)((function(){return n&&n.subscribe(o)}),[o]),Object(Zt.useEffect)((function(){return o.mount(e)}),[])}(Object(r.__rest)(t,["visualElement"]),e)})),si={key:"drag",shouldRender:function(t){return!!t.drag},getComponent:function(){return ai}};function ui(t){return Object(Zt.useEffect)((function(){return function(){return t()}}),[])}var li=["whileHover","whileTap","whileDrag"],ci=function(t){return li.indexOf(t)+1},fi=ci("whileTap");var hi=ci("whileHover"),di=function(t){return function(e,n){Ir(e)&&t(e,n)}};function pi(t,e){!function(t,e){var n=t.onPan,r=t.onPanStart,i=t.onPanEnd,o=t.onPanSessionStart,a=n||r||i||o,s=Object(Zt.useRef)(null),u=Object(Zt.useContext)(mr).transformPagePoint,l={onSessionStart:o,onStart:r,onMove:n,onEnd:function(t,e){s.current=null,i&&i(t,e)}};Object(Zt.useEffect)((function(){null!==s.current&&s.current.updateHandlers(l)}
2)),Hr(e,"pointerdown",a&&function(t){s.current=new Yr(t,l,{transformPagePoint:u})}),ui((function(){return s.current&&s.current.end()}))}(t,e),function(t,e){var n=t.onTap,r=t.onTapStart,i=t.onTapCancel,o=t.whileTap,a=t.controls,s=n||r||i||o,u=Object(Zt.useRef)(!1),l=Object(Zt.useRef)(null);function c(){l.current&&l.current(),l.current=null}o&&a&&a.setOverride(o,fi);var f=Object(Zt.useRef)(null);f.current=function(t,r){var s=e.current;if(c(),u.current&&s){u.current=!1,a&&o&&a.clearOverride(fi);var l=Or(!0);l&&(l(),!function t(e,n){return!!n&&(e===n||t(e,n.parentElement))}(s,t.target)?i&&i(t,r):n&&n(t,r))}},Hr(e,"pointerdown",s?function(t,n){c(),l.current=Wr(window,"pointerup",(function(t,e){return f.current(t,e)})),e.current&&!u.current&&(u.current=!0,r&&r(t,n),a&&o&&a.startOverride(fi))}:void 0),ui(c)}(t,e),function(t,e){var n=t.whileHover,r=t.onHoverStart,i=t.onHoverEnd,o=t.controls;n&&o&&o.setOverride(n,hi),Hr(e,"pointerenter",di((function(t,e){r&&r(t,e),n&&o&&o.startOverride(hi)}))),Hr(e,"pointerleave",di((function(t,e){i&&i(t,e),n&&o&&o.clearOverride(hi)})))}(t,e)}var vi,mi=["onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","whileTap","whileHover","onHoverStart","onHoverEnd"],gi=oi((function(t){var e=t.visualElement;pi(Object(r.__rest)(t,["visualElement"]),e)})),yi={key:"gestures",shouldRender:function(t){return mi.some((function(e){return t.hasOwnProperty(e)}))},getComponent:function(){return gi}},bi=oi((function(t){var e=t.animate,n=t.controls,i=t.exit,o=Object(r.__read)(Nn(),2),a=o[0],s=o[1],u=Object(Zt.useContext)(Cn),l=Object(Zt.useRef)(!1),c=void 0!==(null===u||void 0===u?void 0:u.custom)?u.custom:t.custom;Object(Zt.useEffect)((function(){a?!l.current||!e||"boolean"===typeof e||e instanceof Jn||n.start(e):(!l.current&&i&&n.start(i,{custom:c}).then(s),l.current=!0),a&&(l.current=!1)}),[e,n,c,i,a,s,t])})),wi={key:"exit",shouldRender:function(t){return!!t.exit&&!ir(t)},getComponent:function(){return bi}};!function(t){t.Target="Target",t.VariantLabel="VariantLabel",t.AnimationSubscription="AnimationSubscription"}(vi||(vi={}));function _i(t,e){void 0===e&&(e=!1);t.transition;var n=t.transitionEnd,i=Object(r.__rest)(t,["transition","transitionEnd"]);return e?Object(r.__assign)(Object(r.__assign)({},i),n):i}var xi,Ei,ki=function(t){var e,n=t instanceof ee?t.get():t;return Array.from(new Set((e=n)?Array.isArray(e)?e:[e]:[]))};var Ti=((xi={})[vi.Target]=oi((function(t){return function(t,e,n,i){var o=Object(Zt.useRef)(!0),a=Object(Zt.useRef)(null);a.current||(a.current=_i(t,!0)),Object(Zt.useEffect)((function(){var s,u,l={},c=_i(t),f=_i(t,!0);for(var h in c){var d=o.current&&(!n.hasValue(h)||n.getValue(h).get()!==f[h]),p=null!==f[h],v=(s=a.current[h],void 0!==(u=f[h])&&(Array.isArray(s)&&Array.isArray(u)?!function(t,e){if(null===e)return!1;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}(u,s):s!==u));p&&(v||d)&&(l[h]=c[h])}o.current=!1,a.current=Object(r.__assign)(Object(r.__assign)({},a.current),f),Object.keys(l).length&&e.start(Object(r.__assign)(Object(r.__assign)({},l),{transition:t.transition||i,transitionEnd:t.transitionEnd}))}),[t])}(t.animate,t.controls,t.visualElement,t.transition)})),xi[vi.VariantLabel]=oi((function(t){var e=t.animate,n=t.inherit,r=void 0===n||n,i=t.controls;return function(t,e,n,r){var i=ki(e),o=Object(Zt.useContext)(tr),a=o.hasMounted&&o.hasMounted.current,s=Object(Zt.useRef)(!1);Object(Zt.useEffect)((function(){var e,u,l=!1;n?(l=!!a,i=ki(o.animate)):l=s.current||(e=ki(t),u=i,e.join(",")!==u.join(",")),l&&r.start(i),s.current=!0}),[i.join(",")])}(t.initial,e,r,i)})),xi[vi.AnimationSubscription]=oi((function(t){return function(t,e){var n=Object(Zt.useMemo)((function(){return t.subscribe(e)}),[t]);Object(Zt.useEffect)((function(){return function(){n&&n()}}),[n])}(t.animate,t.controls)})),xi),Si=function(t){return t.animate instanceof Jn},Oi=["initial","animate","whileTap","whileHover"],Ai=((Ei={})[vi.Target]=function(t){return void 0!==t.animate&&(e=t.animate,!(Array.isArray(e)||"string"===typeof e))&&!Si(t);var e}
2,Ei[vi.VariantLabel]=function(t){return void 0!==t.variants||Oi.some((function(e){return"string"===typeof t[e]}))},Ei[vi.AnimationSubscription]=Si,Ei),Ci={key:"animation",shouldRender:function(){return!0},getComponent:function(t){var e=void 0;for(var n in vi)Ai[n](t)&&(e=n);return e?Ti[e]:void 0}};var Ni=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.frameTarget={x:{min:0,max:0},y:{min:0,max:0}},e.stopAxisAnimation={x:void 0,y:void 0},e.animate=function(t,n,i){void 0===i&&(i={});var o=i.originBox,a=i.targetBox,s=i.visibilityAction,u=i.shouldStackAnimate,l=Object(r.__rest)(i,["originBox","targetBox","visibilityAction","shouldStackAnimate"]),c=e.props,f=c.visualElement,h=c.layout;if(!1===u)return e.safeToRemove();var d=Pi(n=o||n,t=a||t),p=Ze((function(r){if("position"===h){var i=t[r].max-t[r].min;n[r].max=n[r].min+i}if(!f.isTargetBoxLocked)return void 0===s?d?e.animateAxis(r,t[r],n[r],l):f.setAxisTarget(r,t[r].min,t[r].max):void(s===vr.Hide?f.hide():f.show())}));return f.render(),Promise.all(p).then((function(){var t,n;null===(n=(t=e.props).onLayoutAnimationComplete)||void 0===n||n.call(t),f.isPresent?f.presence=pr.Present:e.safeToRemove()}))},e}return Object(r.__extends)(e,t),e.prototype.componentDidMount=function(){var t=this.props.visualElement;t.enableLayoutProjection(),this.unsubLayoutReady=t.onLayoutUpdate(this.animate)},e.prototype.componentWillUnmount=function(){var t=this;this.unsubLayoutReady(),Ze((function(e){var n,r;return null===(r=(n=t.stopAxisAnimation)[e])||void 0===r?void 0:r.call(n)}))},e.prototype.animateAxis=function(t,e,n,r){var i,o,a=void 0===r?{}:r,s=a.transition,u=a.crossfadeOpacity;null===(o=(i=this.stopAxisAnimation)[t])||void 0===o||o.call(i);var l,c=this.props.visualElement,f=this.frameTarget[t],h=c.axisProgress[t];h.clearListeners(),h.set(0),h.set(0),u&&(l=this.createCrossfadeAnimation(u),c.show());var d=function(){var r=h.get()/1e3;!function(t,e,n,r){t.min=Z(e.min,n.min,r),t.max=Z(e.max,n.max,r)}(f,n,e,r),c.setAxisTarget(t,f.min,f.max),null===l||void 0===l||l(r)};d(),c.updateLayoutDelta();var p=h.onChange(d),v=hn("x"===t?"layoutX":"layoutY",h,1e3,s||this.props.transition||Di).then(p);return this.stopAxisAnimation[t]=function(){h.stop(),p()},v},e.prototype.createCrossfadeAnimation=function(t){var e=this.props.visualElement.getValue("opacity",0);return function(n){e.set(Li(Z(0,1,n))),t.set(ji(Z(1,0,n)))}},e.prototype.safeToRemove=function(){var t,e;null===(e=(t=this.props).safeToRemove)||void 0===e||e.call(t)},e.prototype.render=function(){return null},e}(Zt.Component);function Ii(t){var e=Object(r.__read)(Nn(),2)[1];return Object(Zt.createElement)(Ni,Object(r.__assign)({},t,{safeToRemove:e}))}function Pi(t,e){return Mi(t.x,e.x)||Mi(t.y,e.y)}function Mi(t,e){return t.min!==e.min||t.max!==e.max}var Di={duration:.45,ease:[.4,0,.1,1]};function Ri(t,e,n){return function(r){return r<t?0:r>e?1:n($(t,e,r))}}var Li=Ri(0,.5,kt),ji=Ri(.5,.95,bt),Fi={key:"animate-layout",shouldRender:function(t){return!!t.layout||!!t.layoutId},getComponent:function(){return Ii}},Ui=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.componentDidMount=function(){var t=this.props,e=t.syncLayout,n=t.visualElement;wr(e)&&e.register(n)},e.prototype.getSnapshotBeforeUpdate=function(){var t=this.props,e=t.syncLayout,n=t.visualElement;return wr(e)?e.syncUpdate():(n.snapshotBoundingBox(),e.add(n)),null},e.prototype.componentDidUpdate=function(){var t=this.props,e=t.syncLayout,n=t.visualElement;wr(e)||e.flush(),n.rebaseTargetBox()},e.prototype.render=function(){return null},e}(Qt.a.Component);function qi(t){var e=Object(Zt.useContext)(_r);return Qt.a.createElement(Ui,Object(r.__assign)({},t,{syncLayout:e}))}var Bi={key:"measure-layout",shouldRender:function(t){return!!t.drag||!!t.layout||!!t.layoutId},getComponent:function(){return qi}};function Vi(t){var e={defaultFeatures:t,useVisualElement:Dn,render:Un,animationControlsConfig:{makeTargetAnimatable:Qn}};var n=new Map;return new Proxy({custom:function(t){return Er(t,e)}},{get:function(t,r){return"custom"===r?t.custom:(n.has(r)||n.set(r,Er(r,e)),n.get(r))}})}var zi=Vi([Bi,Ci,si,yi,wi,Fi]);var Wi=0;function Hi(){var t=Wi;return Wi++,t}var Yi=function(t){var e=t.children,n=t.initial,r=t.isPresent,i=t.onExitComplete,o=t.custom,a=t.presenceAffectsLayout,s=mn(Gi),u=mn(Hi),l=Object(Zt.useMemo)((function(){return{id:u,initial:n,isPresent:r,custom:o,onExitComplete:function(t){s.set(t,!0);var e=!0;
2s.forEach((function(t){t||(e=!1)})),e&&(null===i||void 0===i||i())},register:function(t){return s.set(t,!1),function(){return s.delete(t)}}}}),a?void 0:[r]);return Object(Zt.useMemo)((function(){s.forEach((function(t,e){return s.set(e,!1)}))}),[r]),Object(Zt.createElement)(Cn.Provider,{value:l},e)};function Gi(){return new Map}function Ki(t){return t.key||""}var Xi=function(t){var e=t.children,n=t.custom,i=t.initial,o=void 0===i||i,a=t.onExitComplete,s=t.exitBeforeEnter,u=t.presenceAffectsLayout,l=void 0===u||u,c=function(){var t=Object(r.__read)(Object(Zt.useState)(0),2),e=t[0],n=t[1];return Object(Zt.useCallback)((function(){return n(e+1)}),[e])}(),f=Object(Zt.useContext)(_r);wr(f)&&(c=f.forceUpdate);var h=Object(Zt.useRef)(!0),d=function(t){var e=[];return Zt.Children.forEach(t,(function(t){Object(Zt.isValidElement)(t)&&e.push(t)})),e}(e),p=Object(Zt.useRef)(d),v=Object(Zt.useRef)(new Map).current,m=Object(Zt.useRef)(new Set).current;if(function(t,e){t.forEach((function(t){var n=Ki(t);e.set(n,t)}))}(d,v),h.current)return h.current=!1,Object(Zt.createElement)(Zt.Fragment,null,d.map((function(t){return Object(Zt.createElement)(Yi,{key:Ki(t),isPresent:!0,initial:!!o&&void 0,presenceAffectsLayout:l},t)})));for(var g=Object(r.__spread)(d),y=p.current.map(Ki),b=d.map(Ki),w=y.length,_=0;_<w;_++){var x=y[_];-1===b.indexOf(x)?m.add(x):m.delete(x)}return s&&m.size&&(g=[]),m.forEach((function(t){if(-1===b.indexOf(t)){var e=v.get(t);if(e){var r=y.indexOf(t);g.splice(r,0,Object(Zt.createElement)(Yi,{key:Ki(e),isPresent:!1,onExitComplete:function(){v.delete(t),m.delete(t);var e=p.current.findIndex((function(e){return e.key===t}));p.current.splice(e,1),m.size||(p.current=d,c(),a&&a())},custom:n,presenceAffectsLayout:l},e))}}})),g=g.map((function(t){var e=t.key;return m.has(e)?t:Object(Zt.createElement)(Yi,{key:Ki(t),isPresent:!0,presenceAffectsLayout:l},t)})),p.current=g,Object(Zt.createElement)(Zt.Fragment,null,m.size?g:g.map((function(t){return Object(Zt.cloneElement)(t)})))};function $i(t,e){return e&&t!==e.lead?{visibilityAction:vr.Hide}:e&&t.presence!==pr.Entering&&t===e.lead&&e.lead!==e.prevLead?{visibilityAction:vr.Show}:(t.presence===pr.Entering?n=null===e||void 0===e?void 0:e.getFollowOrigin():t.presence===pr.Exiting&&(r=null===e||void 0===e?void 0:e.getFollowTarget()),{originBox:n,targetBox:r});var n,r}function Zi(t,e){var n,r,i,o={},a=e&&e.lead,s=null===a||void 0===a?void 0:a.presence;return e&&t===a?t.presence===pr.Entering?o.originBox=e.getFollowOrigin():t.presence===pr.Exiting&&(o.targetBox=e.getFollowTarget()):e&&t===e.follow&&(o.transition=e.getLeadTransition(),s===pr.Entering?o.targetBox=e.getLeadTarget():s===pr.Exiting&&(o.originBox=e.getLeadOrigin())),(null===(n=null===e||void 0===e?void 0:e.follow)||void 0===n?void 0:n.isPresenceRoot)||(null===a||void 0===a?void 0:a.isPresenceRoot)?(e&&t!==a?e&&t===e.follow?a&&s!==pr.Entering&&s===pr.Exiting&&(o.crossfadeOpacity=null===(i=null===e||void 0===e?void 0:e.lead)||void 0===i?void 0:i.getValue("opacity",1)):o.visibilityAction=vr.Hide:t.presence===pr.Entering&&(o.crossfadeOpacity=null===(r=null===e||void 0===e?void 0:e.follow)||void 0===r?void 0:r.getValue("opacity",0)),o):o}var Qi=function(){function t(){this.order=[],this.hasChildren=!1}return t.prototype.add=function(t){var e;if(this.order.push(t),this.snapshot){t.prevSnapshot=this.snapshot,t.prevViewportBox=this.snapshot.boundingBox;var n=this.snapshot.latestMotionValues;for(var r in n)t.hasValue(r)?null===(e=t.getValue(r))||void 0===e||e.set(n[r]):t.addValue(r,ne(n[r]))}this.hasChildren=!0},t.prototype.remove=function(t){var e=this.order.findIndex((function(e){return t===e}));-1!==e&&this.order.splice(e,1)},t.prototype.updateLeadAndFollow=function(){this.prevLead=this.lead,this.prevFollow=this.follow;var t=Object(r.__read)(function(t,e){for(var n=Object(r.__read)(e,2),i=n[0],o=n[1],a=void 0,s=0,u=void 0,l=t.length,c=!1,f=l-1;f>=0;f--){var h=t[f];if(f===l-1&&(c=h.isPresent),c)a=h;else{var d=t[f-1];d&&d.isPresent&&(a=h)}if(a){s=f;break}}if(a||(a=t[0]),u=t[s-1],a)for(f=s-1;f>=0;f--){if((h=t[f]).isPresent){u=h;break}}return a!==i&&!c&&u===o&&t.find((function(t){return t===i}))&&(a=i),[a,u]}(this.order,[this.lead,this.follow]),2),e=t[0],n=t[1];this.lead=e,this.follow=n},t.prototype.updateSnapshot=function(){if(this.lead){var t={boun
2dingBox:this.lead.prevViewportBox,latestMotionValues:{}};this.lead.forEachValue((function(e,n){var r=e.get();Ee(r)||(t.latestMotionValues[n]=r)}));var e=ni.get(this.lead);e&&e.isDragging&&(t.isDragging=!0,t.cursorProgress=e.cursorProgress),this.snapshot=t}},t.prototype.isLeadPresent=function(){var t;return this.lead&&(null===(t=this.lead)||void 0===t?void 0:t.presence)!==pr.Exiting},t.prototype.getFollowOrigin=function(){var t;return this.follow?this.follow.prevViewportBox:null===(t=this.snapshot)||void 0===t?void 0:t.boundingBox},t.prototype.getFollowTarget=function(){var t;return null===(t=this.follow)||void 0===t?void 0:t.box},t.prototype.getLeadOrigin=function(){var t;return null===(t=this.lead)||void 0===t?void 0:t.prevViewportBox},t.prototype.getLeadTarget=function(){var t;return null===(t=this.lead)||void 0===t?void 0:t.box},t.prototype.getLeadTransition=function(){var t;return null===(t=this.lead)||void 0===t?void 0:t.config.transition},t}();!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.children=new Set,e.stacks=new Map,e.hasMounted=!1,e.updateScheduled=!1,e.renderScheduled=!1,e.syncContext=Object(r.__assign)(Object(r.__assign)({},br()),{syncUpdate:function(t){return e.scheduleUpdate(t)},forceUpdate:function(){e.syncContext=Object(r.__assign)({},e.syncContext),e.scheduleUpdate(!0)},register:function(t){return e.addChild(t)},remove:function(t){return e.removeChild(t)}}),e}Object(r.__extends)(e,t),e.prototype.componentDidMount=function(){this.hasMounted=!0,this.updateStacks()},e.prototype.componentDidUpdate=function(){this.startLayoutAnimation()},e.prototype.shouldComponentUpdate=function(){return this.renderScheduled=!0,!0},e.prototype.startLayoutAnimation=function(){var t=this;this.renderScheduled=this.updateScheduled=!1;var e=this.props.type;this.children.forEach((function(t){t.isPresent?t.presence!==pr.Entering&&(t.presence=t.presence===pr.Exiting?pr.Entering:pr.Present):t.presence=pr.Exiting})),this.updateStacks();var n="crossfade"===e?Zi:$i,r={measureLayout:function(t){return t.measureLayout()},layoutReady:function(e){var r=e.layoutId;e.layoutReady(n(e,t.getStack(r)))}};this.children.forEach((function(e){return t.syncContext.add(e)})),this.syncContext.flush(r),this.stacks.forEach((function(t){return t.snapshot=void 0}))},e.prototype.updateStacks=function(){this.stacks.forEach((function(t){return t.updateLeadAndFollow()}))},e.prototype.scheduleUpdate=function(t){void 0===t&&(t=!1),!t&&this.updateScheduled||(this.updateScheduled=!0,this.children.forEach((function(t){return t.snapshotBoundingBox()})),this.stacks.forEach((function(t){return t.updateSnapshot()})),!t&&this.renderScheduled||(this.renderScheduled=!0,this.forceUpdate()))},e.prototype.addChild=function(t){this.children.add(t),this.addToStack(t),t.presence=this.hasMounted?pr.Entering:pr.Present},e.prototype.removeChild=function(t){this.scheduleUpdate(),this.children.delete(t),this.removeFromStack(t)},e.prototype.addToStack=function(t){var e=this.getStack(t.layoutId);null===e||void 0===e||e.add(t)},e.prototype.removeFromStack=function(t){var e=this.getStack(t.layoutId);null===e||void 0===e||e.remove(t)},e.prototype.getStack=function(t){if(void 0!==t)return!this.stacks.has(t)&&this.stacks.set(t,new Qi),this.stacks.get(t)},e.prototype.render=function(){return Object(Zt.createElement)(_r.Provider,{value:this.syncContext},this.props.children)}}(Zt.Component);function Ji(){return{scrollX:ne(0),scrollY:ne(0),scrollXProgress:ne(0),scrollYProgress:ne(0)}}Ji();var to=ne(null);if("undefined"!==typeof window)if(window.matchMedia){var eo=window.matchMedia("(prefers-reduced-motion)"),no=function(){return to.set(eo.matches)};eo.addListener(no),no()}else to.set(!1);!function(){function t(){this.componentControls=new Set}t.prototype.subscribe=function(t){var e=this;return this.componentControls.add(t),function(){return e.componentControls.delete(t)}},t.prototype.start=function(t,e){this.componentControls.forEach((function(n){n.start(t.nativeEvent||t,e)}))}}();!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.initialState={},e}Object(r.__extends)(e,t),e.prototype.updateLayoutDelta=function(){},e.prototype.build=function(){},e.prototype.clean=function(){},e.prototype.getBoundingBox=function(){return{x:{min:0,max:0},y:{min:0,max:0}}},e.prototype.readNativeValue=function(t){return this.initialState[t]||0},e.prototype.render=function(){this.build()}}(re)},function(t,e){var n=Array.isArray;t.exports=n},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(99),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},function(t,e){t.exports=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}},function(t,e,n){var r=n(60);t.exports=function(t,e){return r(t,e)}},function(t,e,n){"use strict";var r=n(14),i=n(0),o=n.n(i),a=n(1),s=n.n(a),u=n(19),l=n(24),c=n.n(l),f=n(65),h=n.n(f);function d(t){var e=[];return{on:function(t){e.push(t)},off:function(t){e=e.filter((function(e){return e!==t}))},get:function(){return t},set:function(n,r){t=n,e.forEach((function(e){return e(t,r)}))}}}var p=o.a.createContext||function(t,e){var n,r,o="__create-react-context-"+h()()+"__",a=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).emitter=d(e.props.value),e}c()(n,t);var r=n.prototype;return r.getChildContext=function(){var t;return(t={})[o]=this.emitter,t},r.componentWillReceiveProps=function(t){if(this.props.value!==t.value){var n,r=this.props.value,i=t.value;((o=r)===(a=i)?0!==o||1/o===1/a:o!==o&&a!==a)?n=0:(n="function"===typeof e?e(r,i):1073741823,0!==(n|=0)&&this.emitter.set(t.value,n))}var o,a},r.render=function(){return this.props.children},n}(i.Component);a.childContextTypes=((n={})[o]=s.a.object.isRequired,n);var u=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).state={value:t.getValue()},t.onUpdate=function(e,n){0!==((0|t.observedBits)&n)&&t.setState({value:t.getValue()})},t}c()(n,e);var r=n.prototype;return r.componentWillReceiveProps=function(t){var e=t.observedBits;this.observedBits=void 0===e||null===e?1073741823:e},r.componentDidMount=function(){this.context[o]&&this.context[o].on(this.onUpdate);var t=this.props.observedBits;this.observedBits=void 0===t||null===t?1073741823:t},r.componentWillUnmount=function(){this.context[o]&&this.context[o].off(this.onUpdate)},r.getValue=function(){return this.context[o]?this.context[o].get():t},r.render=function(){return(t=this.props.children,Array.isArray(t)?t[0]:t)(this.state.value);var t},n}(i.Component);return u.contextTypes=((r={})[o]=s.a.object,r),{Provider:a,Consumer:u}},v=n(18),m=n(13),g=n(69),y=n.n(g),b=(n(79),n(17));n(118);n.d(e,"a",(function(){return T})),n.d(e,"b",(function(){return _})),n.d(e,"c",(function(){return I})),n.d(e,"d",(function(){return w})),n.d(e,"e",(function(){return k})),n.d(e,"f",(function(){return M})),n.d(e,"g",(function(){return D}));var w=function(t){var e=p();return e.displayName=t,e}("Router"),_=function(t){function e(e){var n;return(n=t.call(this,e)||this).state={location:e.history.location},n._isMounted=!1,n._pendingLocation=null,e.staticContext||(n.unlisten=e.history.listen((function(t){n._isMounted?n.setState({location:t}):n._pendingLocation=t}))),n}Object(r.a)(e,t),e.computeRootMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}};var n=e.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pe
2ndingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return o.a.createElement(w.Provider,{children:this.props.children||null,value:{history:this.props.history,location:this.state.location,match:e.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}})},e}(o.a.Component);o.a.Component;o.a.Component;var x={},E=0;function k(t,e){void 0===e&&(e={}),("string"===typeof e||Array.isArray(e))&&(e={path:e});var n=e,r=n.path,i=n.exact,o=void 0!==i&&i,a=n.strict,s=void 0!==a&&a,u=n.sensitive,l=void 0!==u&&u;return[].concat(r).reduce((function(e,n){if(!n&&""!==n)return null;if(e)return e;var r=function(t,e){var n=""+e.end+e.strict+e.sensitive,r=x[n]||(x[n]={});if(r[t])return r[t];var i=[],o={regexp:y()(t,i,e),keys:i};return E<1e4&&(r[t]=o,E++),o}(n,{end:o,strict:s,sensitive:l}),i=r.regexp,a=r.keys,u=i.exec(t);if(!u)return null;var c=u[0],f=u.slice(1),h=t===c;return o&&!h?null:{path:n,url:"/"===n&&""===c?"/":c,isExact:h,params:a.reduce((function(t,e,n){return t[e.name]=f[n],t}),{})}}),null)}var T=function(t){function e(){return t.apply(this,arguments)||this}return Object(r.a)(e,t),e.prototype.render=function(){var t=this;return o.a.createElement(w.Consumer,null,(function(e){e||Object(v.a)(!1);var n=t.props.location||e.location,r=t.props.computedMatch?t.props.computedMatch:t.props.path?k(n.pathname,t.props):e.match,i=Object(m.a)({},e,{location:n,match:r}),a=t.props,s=a.children,u=a.component,l=a.render;return Array.isArray(s)&&0===s.length&&(s=null),o.a.createElement(w.Provider,{value:i},i.match?s?"function"===typeof s?s(i):s:u?o.a.createElement(u,i):l?l(i):null:"function"===typeof s?s(i):null)}))},e}(o.a.Component);function S(t){return"/"===t.charAt(0)?t:"/"+t}function O(t,e){if(!t)return e;var n=S(t);return 0!==e.pathname.indexOf(n)?e:Object(m.a)({},e,{pathname:e.pathname.substr(n.length)})}function A(t){return"string"===typeof t?t:Object(u.e)(t)}function C(t){return function(){Object(v.a)(!1)}}function N(){}o.a.Component;var I=function(t){function e(){return t.apply(this,arguments)||this}return Object(r.a)(e,t),e.prototype.render=function(){var t=this;return o.a.createElement(w.Consumer,null,(function(e){e||Object(v.a)(!1);var n,r,i=t.props.location||e.location;return o.a.Children.forEach(t.props.children,(function(t){if(null==r&&o.a.isValidElement(t)){n=t;var a=t.props.path||t.props.from;r=a?k(i.pathname,Object(m.a)({},t.props,{path:a})):e.match}})),r?o.a.cloneElement(n,{location:i,computedMatch:r}):null}))},e}(o.a.Component);var P=o.a.useContext;function M(){return P(w).location}function D(){var t=P(w).match;return t?t.params:{}}},function(t,e,n){var r=n(216),i=n(221);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i,o=n(6),a=n(54),s=n(49),u=n(71),l=((r={})["no-app"]="No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",r["bad-app-name"]="Illegal App name: '{$appName}",r["duplicate-app"]="Firebase App named '{$appName}' already exists",r["app-deleted"]="Firebase App named '{$appName}' already deleted",r["invalid-app-argument"]="firebase.{$appName}() takes either no argument or a Firebase App instance.",r["invalid-log-argument"]="First argument to `onLog` must be null or a function.",r),c=new a.ErrorFactory("app","Firebase",l),f=((i={})["@firebase/app"]="fire-core",i["@firebase/analytics"]="fire-analytics",i["@firebase/auth"]="fire-auth",i["@firebase/database"]="fire-rtdb",i["@firebase/functions"]="fire-fn",i["@firebase/installations"]="fire-iid",i["@firebase/messaging"]="fire-fcm",i["@firebase/performance"]="fire-perf",i["@firebase/remote-config"]="fire-rc",i["@firebase/storage"]="fire-gcs",i["@firebase/firestore"]="fire-fst",i["fire-js"]="fire-js",i["firebase-wrapper"]="fire-js-all",i),h=new u.Logger("@firebase/app"),d=function(){function t(t,e,n){var r,i,u=this;this.firebase_=n,this.isDeleted_=!1,this.name_=e.name,this.automaticDataCollectionEnabled_=e.automaticDataCollectionEnabled||!1,this.options_=a.deepCopy(t),this.container=new s.ComponentContainer(e.name),this._addComponent(new s.Component("app",(function(){return u}),"PUBLIC"));try{for(var l=o.__values(this.firebase_.INTERNAL.components.values()),c=l.next();!c.done;c=l.next()){var f=c.value;this._addComponent(f)}}catch(h){r={error:h}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}}return Object.defineProperty(t.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(t){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=t}
2,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!1,configurable:!0}),t.prototype.delete=function(){var t=this;return new Promise((function(e){t.checkDestroyed_(),e()})).then((function(){return t.firebase_.INTERNAL.removeApp(t.name_),Promise.all(t.container.getProviders().map((function(t){return t.delete()})))})).then((function(){t.isDeleted_=!0}))},t.prototype._getService=function(t,e){return void 0===e&&(e="[DEFAULT]"),this.checkDestroyed_(),this.container.getProvider(t).getImmediate({identifier:e})},t.prototype._removeServiceInstance=function(t,e){void 0===e&&(e="[DEFAULT]"),this.container.getProvider(t).clearInstance(e)},t.prototype._addComponent=function(t){try{this.container.addComponent(t)}catch(e){h.debug("Component "+t.name+" failed to register with FirebaseApp "+this.name,e)}},t.prototype._addOrOverwriteComponent=function(t){this.container.addOrOverwriteComponent(t)},t.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw c.create("app-deleted",{appName:this.name_})},t}();d.prototype.name&&d.prototype.options||d.prototype.delete||console.log("dc");var p=function t(){var e=function(t){var e={},n=new Map,r={__esModule:!0,initializeApp:function(n,i){void 0===i&&(i={});if("object"!==typeof i||null===i){i={name:i}}var o=i;void 0===o.name&&(o.name="[DEFAULT]");var s=o.name;if("string"!==typeof s||!s)throw c.create("bad-app-name",{appName:String(s)});if(a.contains(e,s))throw c.create("duplicate-app",{appName:s});var u=new t(n,o,r);return e[s]=u,u},app:i,registerVersion:function(t,e,n){var r,i=null!==(r=f[t])&&void 0!==r?r:t;n&&(i+="-"+n);var o=i.match(/\s|\//),a=e.match(/\s|\//);if(o||a){var u=['Unable to register library "'+i+'" with version "'+e+'":'];return o&&u.push('library name "'+i+'" contains illegal characters (whitespace or "/")'),o&&a&&u.push("and"),a&&u.push('version name "'+e+'" contains illegal characters (whitespace or "/")'),void h.warn(u.join(" "))}l(new s.Component(i+"-version",(function(){return{library:i,version:e}}),"VERSION"))},setLogLevel:u.setLogLevel,onLog:function(t,e){if(null!==t&&"function"!==typeof t)throw c.create("invalid-log-argument",{appName:name});u.setUserLogHandler(t,e)},apps:null,SDK_VERSION:"7.18.0",INTERNAL:{registerComponent:l,removeApp:function(t){delete e[t]},components:n,useAsService:function(t,e){if("serverAuth"===e)return null;return e}}};function i(t){if(t=t||"[DEFAULT]",!a.contains(e,t))throw c.create("no-app",{appName:t});return e[t]}function l(s){var u,l,f=s.name;if(n.has(f))return h.debug("There were multiple attempts to register component "+f+"."),"PUBLIC"===s.type?r[f]:null;if(n.set(f,s),"PUBLIC"===s.type){var d=function(t){if(void 0===t&&(t=i()),"function"!==typeof t[f])throw c.create("invalid-app-argument",{appName:f});return t[f]()};void 0!==s.serviceProps&&a.deepExtend(d,s.serviceProps),r[f]=d,t.prototype[f]=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this._getService.bind(this,f);return n.apply(this,s.multipleInstances?t:[])}}try{for(var p=o.__values(Object.keys(e)),v=p.next();!v.done;v=p.next()){var m=v.value;e[m]._addComponent(s)}}catch(g){u={error:g}}finally{try{v&&!v.done&&(l=p.return)&&l.call(p)}finally{if(u)throw u.error}}return"PUBLIC"===s.type?r[f]:null}return r.default=r,Object.defineProperty(r,"apps",{get:function(){return Object.keys(e).map((function(t){return e[t]}))}}),i.App=t,r}(d);return e.INTERNAL=o.__assign(o.__assign({},e.INTERNAL),{createFirebaseNamespace:t,extendNamespace:function(t){a.deepExtend(e,t)},createSubscribe:a.createSubscribe,ErrorFactory:a.ErrorFactory,deepExtend:a.deepExtend}),e}(),v=function(){function t(t){this.container=t}return t.prototype.getPlatformInfoString=function(){return this.container.getProviders().map((function(t){if(function(t){var e=t.getComponent();return"VERSION"===(null===e||void 0===e?void 0:e.type)}(t)){var e=t.getImmediate();return e.library+"/"+e.version}return null})).filter((function(t){return t})).join(" ")},t}();if(a.isBrowser()&&void 0!==self.firebase){h.warn("\n    Warning: Firebase is already defined in the global scope. Please make sure\n    Firebase library is only loaded once.\n  ");var m=self.firebase.SDK_VERSION;m&&m.indexOf("LITE")>=0&&h.warn("\n    Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n    You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n    ")}var g=p.initializeApp;p.initializeApp=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return a.isNode()&&h.warn('\n      Warning: This is a browser-targeted Firebase bundle but it appears it is being\n      run in a Node environment.  If running in a Node environment, make sure you\n      are using the bundle specified by the "main" field in package.json.\n      \n      If you are using Webpack, you can specify "main" as the first item in\n      "resolve.mainFields":\n      https://webpack.js.org/configuration/resolve/#resolvemainfields\n      \n      If using Rollup, use the rollup-plugin-node-resolve plugin and specify "main"\n      as the first item in "mainFields", e.g. [\'main\', \'module\'].\n      https://github.com/rollup/rollup-plugin-node-resolve\n      '),g.apply(void 0,t)};var y=p;!function(t,e){t.INTERNAL.registerComponent(new s.Component("platform-logger",(function(t){return new v(t)}),"PRIVATE")),t.registerVersion("@firebase/app","0.6.10",e),t.registerVersion("fire-js","")}(y),e.default=y,e.firebase=y},function(t,e){function n(){return t.exports=n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},n.apply(this,arguments)}t.exports=n},function(t,e,n){var r=n(93),i=n(199);
2t.exports=i,t.exports.default=i,t.exports.Quill=r,t.exports.Mixin=n(95),t.exports.Toolbar=n(294)},function(t,e,n){t.exports=function(t){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var e={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},n=function(t,e){return t(e={exports:{}},e.exports),e.exports}((function(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[e[r]]=r);var i=t.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};
vendor: 8,494 bytes, line 2
2for(var o in i)if(i.hasOwnProperty(o)){if(!("channels"in i[o]))throw new Error("missing channels property: "+o);if(!("labels"in i[o]))throw new Error("missing channel labels property: "+o);if(i[o].labels.length!==i[o].channels)throw new Error("channel and label counts mismatch: "+o);var a=i[o].channels,s=i[o].labels;delete i[o].channels,delete i[o].labels,Object.defineProperty(i[o],"channels",{value:a}),Object.defineProperty(i[o],"labels",{value:s})}i.rgb.hsl=function(t){var e,n,r=t[0]/255,i=t[1]/255,o=t[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),u=s-a;return s===a?e=0:r===s?e=(i-o)/u:i===s?e=2+(o-r)/u:o===s&&(e=4+(r-i)/u),(e=Math.min(60*e,360))<0&&(e+=360),n=(a+s)/2,[e,100*(s===a?0:n<=.5?u/(s+a):u/(2-s-a)),100*n]},i.rgb.hsv=function(t){var e,n,r,i,o,a=t[0]/255,s=t[1]/255,u=t[2]/255,l=Math.max(a,s,u),c=l-Math.min(a,s,u),f=function(t){return(l-t)/6/c+.5};return 0===c?i=o=0:(o=c/l,e=f(a),n=f(s),r=f(u),a===l?i=r-n:s===l?i=1/3+e-r:u===l&&(i=2/3+n-e),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*l]},i.rgb.hwb=function(t){var e=t[0],n=t[1],r=t[2];return[i.rgb.hsl(t)[0],1/255*Math.min(e,Math.min(n,r))*100,100*(r=1-1/255*Math.max(e,Math.max(n,r)))]},i.rgb.cmyk=function(t){var e,n=t[0]/255,r=t[1]/255,i=t[2]/255;return[100*((1-n-(e=Math.min(1-n,1-r,1-i)))/(1-e)||0),100*((1-r-e)/(1-e)||0),100*((1-i-e)/(1-e)||0),100*e]},i.rgb.keyword=function(t){var r=n[t];if(r)return r;var i,o,a,s=1/0;for(var u in e)if(e.hasOwnProperty(u)){var l=e[u],c=(o=t,a=l,Math.pow(o[0]-a[0],2)+Math.pow(o[1]-a[1],2)+Math.pow(o[2]-a[2],2));c<s&&(s=c,i=u)}return i},i.keyword.rgb=function(t){return e[t]},i.rgb.xyz=function(t){var e=t[0]/255,n=t[1]/255,r=t[2]/255;return[100*(.4124*(e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*e+.7152*n+.0722*r),100*(.0193*e+.1192*n+.9505*r)]},i.rgb.lab=function(t){var e=i.rgb.xyz(t),n=e[0],r=e[1],o=e[2];return r/=100,o/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},i.hsl.rgb=function(t){var e,n,r,i,o,a=t[0]/360,s=t[1]/100,u=t[2]/100;if(0===s)return[o=255*u,o,o];e=2*u-(n=u<.5?u*(1+s):u+s-u*s),i=[0,0,0];for(var l=0;l<3;l++)(r=a+1/3*-(l-1))<0&&r++,r>1&&r--,o=6*r<1?e+6*(n-e)*r:2*r<1?n:3*r<2?e+(n-e)*(2/3-r)*6:e,i[l]=255*o;return i},i.hsl.hsv=function(t){var e=t[0],n=t[1]/100,r=t[2]/100,i=n,o=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,i*=o<=1?o:2-o,[e,100*(0===r?2*i/(o+i):2*n/(r+n)),(r+n)/2*100]},i.hsv.rgb=function(t){var e=t[0]/60,n=t[1]/100,r=t[2]/100,i=Math.floor(e)%6,o=e-Math.floor(e),a=255*r*(1-n),s=255*r*(1-n*o),u=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,u,a];case 1:return[s,r,a];case 2:return[a,r,u];case 3:return[a,s,r];case 4:return[u,a,r];case 5:return[r,a,s]}},i.hsv.hsl=function(t){var e,n,r,i=t[0],o=t[1]/100,a=t[2]/100,s=Math.max(a,.01);return r=(2-o)*a,n=o*s,[i,100*(n=(n/=(e=(2-o)*s)<=1?e:2-e)||0),100*(r/=2)]},i.hwb.rgb=function(t){var e,n,r,i,o,a,s,u=t[0]/360,l=t[1]/100,c=t[2]/100,f=l+c;switch(f>1&&(l/=f,c/=f),r=6*u-(e=Math.floor(6*u)),0!==(1&e)&&(r=1-r),i=l+r*((n=1-c)-l),e){default:case 6:case 0:o=n,a=i,s=l;break;case 1:o=i,a=n,s=l;break;case 2:o=l,a=n,s=i;break;case 3:o=l,a=i,s=n;break;case 4:o=i,a=l,s=n;break;case 5:o=n,a=l,s=i}return[255*o,255*a,255*s]},i.cmyk.rgb=function(t){var e=t[0]/100,n=t[1]/100,r=t[2]/100,i=t[3]/100;return[255*(1-Math.min(1,e*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},i.xyz.rgb=function(t){var e,n,r,i=t[0]/100,o=t[1]/100,a=t[2]/100;return n=-.9689*i+1.8758*o+.0415*a,r=.0557*i+-.204*o+1.057*a,e=(e=3.2406*i+-1.5372*o+-.4986*a)>.0031308?1.055*Math.pow(e,1/2.4)-.055:12.92*e,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(e=Math.min(Math.max(0,e),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},i.xyz.lab=function(t){var e=t[0],n=t[1],r=t[2];return n/=100,r/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(e-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},i.lab.xyz=function(t){var e,n,r,i=t[0];e=t[1]/500+(n=(i+16)/116),r=n-t[2]/200;var o=Math.pow(n,3),a=Math.pow(e,3),s=Math.pow(r,3);return n=o>.008856?o:(n-16/116)/7.787,e=a>.008856?a:(e-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,[e*=95.047,n*=100,r*=108.883]},i.lab.lch=function(t){var e,n=t[0],r=t[1],i=t[2];return(e=360*Math.atan2(i,r)/2/Math.PI)<0&&(e+=360),[n,Math.sqrt(r*r+i*i),e]},i.lch.lab=function(t){var e,n=t[0],r=t[1];return e=t[2]/360*2*Math.PI,[n,r*Math.cos(e),r*Math.sin(e)]},i.rgb.ansi16=function(t){var e=t[0],n=t[1],r=t[2],o=1 in arguments?arguments[1]:i.rgb.hsv(t)[2];if(0===(o=Math.round(o/50)))return 30;var a=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(e/255));return 2===o&&(a+=60),a},i.hsv.ansi16=function(t){return i.rgb.ansi16(i.hsv.rgb(t),t[2])},i.rgb.ansi256=function(t){var e=t[0],n=t[1],r=t[2];return e===n&&n===r?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},i.ansi16.rgb=function(t){var e=t%10;if(0===e||7===e)return t>50&&(e+=3.5),[e=e/10.5*255,e,e];var n=.5*(1+~~(t>50));return[(1&e)*n*255,(e>>1&1)*n*255,(e>>2&1)*n*255]},i.ansi256.rgb=function(t){if(t>=232){var e=10*(t-232)+8;return[e,e,e]}var n;return t-=16,[Math.floor(t/36)/5*255,Math.floor((n=t%36)/6)/5*255,n%6/5*255]},i.rgb.hex=function(t){var e=(((255&Math.round(t[0]))<<16)+((255&Math.round(t[1]))<<8)+(255&Math.round(t[2]))).toString(16).toUpperCase();return"000000".substring(e.length)+e},i.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var n=e[0];3===e[0].length&&(n=n.split("").map((function(t){return t+t})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},i.rgb.hcg=function(t){var e,n=t[0]/255,r=t[1]/255,i=t[2]/255,o=Math.max(Math.max(n,r),i),a=Math.min(Math.min(n,r),i),s=o-a;return e=s<=0?0:o===n?(r-i)/s%6:o===r?2+(i-n)/s:4+(n-r)/s+4,e/=6,[360*(e%=1),100*s,100*(s<1?a/(1-s):0)]},i.hsl.hcg=function(t){var e=t[1]/100,n=t[2]/100,r=1,i=0;return(r=n<.5?2*e*n:2*e*(1-n))<1&&(i=(n-.5*r)/(1-r)),[t[0],100*r,100*i]},i.hsv.hcg=function(t){var e=t[1]/100,n=t[2]/100,r=e*n,i=0;return r<1&&(i=(n-r)/(1-r)),[t[0],100*r,100*i]},i.hcg.rgb=function(t){var e=t[0]/360,n=t[1]/100,r=t[2]/100;if(0===n)return[255*r,255*r,255*r];var i,o=[0,0,0],a=e%1*6,s=a%1,u=1-s;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=u,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=u,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=u}return i=(1-n)*r,[255*(n*o[0]+i),255*(n*o[1]+i),255*(n*o[2]+i)]},i.hcg.hsv=function(t){var e=t[1]/100,n=e+t[2]/100*(1-e),r=0;return n>0&&(r=e/n),[t[0],100*r,100*n]},i.hcg.hsl=function(t){var e=t[1]/100,n=t[2]/100*(1-e)+.5*e,r=0;return n>0&&n<.5?r=e/(2*n):n>=.5&&n<1&&(r=e/(2*(1-n))),[t[0],100*r,100*n]},i.hcg.hwb=function(t){var e=t[1]/100,n=e+t[2]/100*(1-e);return[t[0],100*(n-e),100*(1-n)]},i.hwb.hcg=function(t){var e=t[1]/100,n=1-t[2]/100,r=n-e,i=0;return r<1&&(i=(n-r)/(1-r)),[t[0],100*r,100*i]},i.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]},i.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]},i.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]},i.gray.hsl=i.gray.hsv=function(t){return[0,0,t[0]]},i.gray.hwb=function(t){return[0,100,t[0]]},i.gray.cmyk=function(t){return[0,0,0,t[0]]},i.gray.lab=function(t){return[t[0],0,0]},i.gray.hex=function(t){var e=255&Math.round(t[0]/100*255),n=((e<<16)+(e<<8)+e).toString(16).toUpperCase();return"000000".substring(n.length)+n},i.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]}}));function r(t){var e=function(){for(var t={},e=Object.keys(n),r=e.length,i=0;i<r;i++)t[e[i]]={distance:-1,parent:null};return t}(),r=[t];for(e[t].distance=0;r.length;)for(var i=r.pop(),o=Object.keys(n[i]),a=o.length,s=0;s<a;s++){var u=o[s],l=e[u];-1===l.distance&&(l.distance=e[i].distance+1,l.parent=i,r.unshift(u))}return e}function i(t,e){return function(n){return e(t(n))}}function o(t,e){for(var r=[e[t].parent,t],o=n[e[t].parent][t],a=e[t].parent;e[a].parent;)r.unshift(e[a].parent),o=i(n[e[a].parent][a],o),a=e[a].parent;return o.conversion=r,o}n.rgb,n.hsl,n.hsv,n.hwb,n.cmyk,n.xyz,n.lab,n.lch,n.hex,n.keyword,n.ansi16,n.ansi256,n.hcg,n.apple,n.gray;var a={};
2Object.keys(n).forEach((function(t){a[t]={},Object.defineProperty(a[t],"channels",{value:n[t].channels}),Object.defineProperty(a[t],"labels",{value:n[t].labels});var e=function(t){for(var e=r(t),n={},i=Object.keys(e),a=i.length,s=0;s<a;s++){var u=i[s];null!==e[u].parent&&(n[u]=o(u,e))}return n}(t);Object.keys(e).forEach((function(n){var r=e[n];a[t][n]=function(t){var e=function(e){if(void 0===e||null===e)return e;arguments.length>1&&(e=Array.prototype.slice.call(arguments));var n=t(e);if("object"===typeof n)for(var r=n.length,i=0;i<r;i++)n[i]=Math.round(n[i]);return n};return"conversion"in t&&(e.conversion=t.conversion),e}(r),a[t][n].raw=function(t){var e=function(e){return void 0===e||null===e?e:(arguments.length>1&&(e=Array.prototype.slice.call(arguments)),t(e))};return"conversion"in t&&(e.conversion=t.conversion),e}(r)}))}));var s=a,u={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},l={getRgba:c,getHsla:f,getRgb:function(t){var e=c(t);return e&&e.slice(0,3)},getHsl:function(t){var e=f(t);return e&&e.slice(0,3)},getHwb:h,getAlpha:function(t){var e=c(t);return e||(e=f(t))||(e=h(t))?e[3]:void 0},hexString:function(t,e){return e=void 0!==e&&3===t.length?e:t[3],"#"+g(t[0])+g(t[1])+g(t[2])+(e>=0&&e<1?g(Math.round(255*e)):"")},rgbString:function(t,e){return e<1||t[3]&&t[3]<1?d(t,e):"rgb("+t[0]+", "+t[1]+", "+t[2]+")"}
vendor: 4,970 bytes, line 2
2,rgbaString:d,percentString:function(t,e){if(e<1||t[3]&&t[3]<1)return p(t,e);var n=Math.round(t[0]/255*100),r=Math.round(t[1]/255*100),i=Math.round(t[2]/255*100);return"rgb("+n+"%, "+r+"%, "+i+"%)"},percentaString:p,hslString:function(t,e){return e<1||t[3]&&t[3]<1?v(t,e):"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)"},hslaString:v,hwbString:function(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+(void 0!==e&&1!==e?", "+e:"")+")"},keyword:function(t){return y[t.slice(0,3)]}};function c(t){if(t){var e=[0,0,0],n=1,r=t.match(/^#([a-fA-F0-9]{3,4})$/i),i="";if(r){i=(r=r[1])[3];for(var o=0;o<e.length;o++)e[o]=parseInt(r[o]+r[o],16);i&&(n=Math.round(parseInt(i+i,16)/255*100)/100)}else if(r=t.match(/^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i)){for(i=r[2],r=r[1],o=0;o<e.length;o++)e[o]=parseInt(r.slice(2*o,2*o+2),16);i&&(n=Math.round(parseInt(i,16)/255*100)/100)}else if(r=t.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(o=0;o<e.length;o++)e[o]=parseInt(r[o+1]);n=parseFloat(r[4])}else if(r=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(o=0;o<e.length;o++)e[o]=Math.round(2.55*parseFloat(r[o+1]));n=parseFloat(r[4])}else if(r=t.match(/(\w+)/)){if("transparent"==r[1])return[0,0,0,0];if(!(e=u[r[1]]))return}for(o=0;o<e.length;o++)e[o]=m(e[o],0,255);return n=n||0==n?m(n,0,1):1,e[3]=n,e}}function f(t){if(t){var e=t.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(e){var n=parseFloat(e[4]);return[m(parseInt(e[1]),0,360),m(parseFloat(e[2]),0,100),m(parseFloat(e[3]),0,100),m(isNaN(n)?1:n,0,1)]}}}function h(t){if(t){var e=t.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(e){var n=parseFloat(e[4]);return[m(parseInt(e[1]),0,360),m(parseFloat(e[2]),0,100),m(parseFloat(e[3]),0,100),m(isNaN(n)?1:n,0,1)]}}}function d(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+e+")"}function p(t,e){return"rgba("+Math.round(t[0]/255*100)+"%, "+Math.round(t[1]/255*100)+"%, "+Math.round(t[2]/255*100)+"%, "+(e||t[3]||1)+")"}function v(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+e+")"}function m(t,e,n){return Math.min(Math.max(e,t),n)}function g(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}var y={};for(var b in u)y[u[b]]=b;var w=function t(e){return e instanceof t?e:this instanceof t?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"===typeof e?(n=l.getRgba(e))?this.setValues("rgb",n):(n=l.getHsla(e))?this.setValues("hsl",n):(n=l.getHwb(e))&&this.setValues("hwb",n):"object"===typeof e&&(void 0!==(n=e).r||void 0!==n.red?this.setValues("rgb",n):void 0!==n.l||void 0!==n.lightness?this.setValues("hsl",n):void 0!==n.v||void 0!==n.value?this.setValues("hsv",n):void 0!==n.w||void 0!==n.whiteness?this.setValues("hwb",n):void 0===n.c&&void 0===n.cyan||this.setValues("cmyk",n)))):new t(e);var n};(w.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var t=this.values;return 1!==t.alpha?t.hwb.concat([t.alpha]):t.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var t=this.values;return t.rgb.concat([t.alpha])},hslaArray:function(){var t=this.values;return t.hsl.concat([t.alpha])},alpha:function(t){return void 0===t?this.values.alpha:(this.setValues("alpha",t),this)},red:function(t){return this.setChannel("rgb",0,t)},green:function(t){return this.setChannel("rgb",1,t)},blue:function(t){return this.setChannel("rgb",2,t)},hue:function(t){return t&&(t=(t%=360)<0?360+t:t),this.setChannel("hsl",0,t)},saturation:function(t){return this.setChannel("hsl",1,t)},lightness:function(t){return this.setChannel("hsl",2,t)},saturationv:function(t){return this.setChannel("hsv",1,t)},whiteness:function(t){return this.setChannel("hwb",1,t)},blackness:function(t){return this.setChannel("hwb",2,t)},value:function(t){return this.setChannel("hsv",2,t)},cyan:function(t){return this.setChannel("cmyk",0,t)},magenta:function(t){return this.setChannel("cmyk",1,t)},yellow:function(t){return this.setChannel("cmyk",2,t)},black:function(t){return this.setChannel("cmyk",3,t)},hexString:function(){return l.hexString(this.values.rgb)},rgbString:function(){return l.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return l.rgbaString(this.values.rgb,this.values.alpha)}
2,percentString:function(){return l.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return l.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return l.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return l.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return l.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var t=this.values.rgb;return t[0]<<16|t[1]<<8|t[2]},luminosity:function(){for(var t=this.values.rgb,e=[],n=0;n<t.length;n++){var r=t[n]/255;e[n]=r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),n=t.luminosity();return e>n?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},dark:function(){var t=this.values.rgb;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues("hsl",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues("hsl",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues("hsl",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues("hsl",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues("hwb",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues("hwb",e),this},greyscale:function(){var t=this.values.rgb,e=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[e,e,e]),this},clearer:function(t){var e=this.values.alpha;return this.setValues("alpha",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues("alpha",e+e*t),this},rotate:function(t){var e=this.values.hsl,n=(e[0]+t)%360;return e[0]=n<0?360+n:n,this.setValues("hsl",e),this},mix:function(t,e){var n=t,r=void 0===e?.5:e,i=2*r-1,o=this.alpha()-n.alpha(),a=((i*o===-1?i:(i+o)/(1+i*o))+1)/2,s=1-a;return this.rgb(a*this.red()+s*n.red(),a*this.green()+s*n.green(),a*this.blue()+s*n.blue()).alpha(this.alpha()*r+n.alpha()*(1-r))},toJSON:function(){return this.rgb()},clone:function(){var t,e,n=new w,r=this.values,i=n.values;for(var o in r)r.hasOwnProperty(o)&&(t=r[o],"[object Array]"===(e={}.toString.call(t))?i[o]=t.slice(0):"[object Number]"===e?i[o]=t:console.error("unexpected color value:",t));return n}}).spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},w.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},w.prototype.getValues=function(t){for(var e=this.values,n={},r=0;r<t.length;r++)n[t.charAt(r)]=e[t][r];return 1!==e.alpha&&(n.a=e.alpha),n},w.prototype.setValues=function(t,e){var n,r,i=this.values,o=this.spaces,a=this.maxes,u=1;if(this.valid=!0,"alpha"===t)u=e;else if(e.length)i[t]=e.slice(0,t.length),u=e[t.length];else if(void 0!==e[t.charAt(0)]){for(n=0;n<t.length;n++)i[t][n]=e[t.charAt(n)];u=e.a}else if(void 0!==e[o[t][0]]){var l=o[t];for(n=0;n<t.length;n++)i[t][n]=e[l[n]];u=e.alpha}if(i.alpha=Math.max(0,Math.min(1,void 0===u?i.alpha:u)),"alpha"===t)return!1;for(n=0;n<t.length;n++)r=Math.max(0,Math.min(a[t][n],i[t][n])),i[t][n]=Math.round(r);for(var c in o)c!==t&&(i[c]=s[t][c](i[t]));return!0},w.prototype.setSpace=function(t,e){var n=e[0];return void 0===n?this.getValues(t):("number"===typeof n&&(n=Array.prototype.slice.call(e)),this.setValues(t,n),this)},w.prototype.setChannel=function(t,e,n){var r=this.values[t];return void 0===n?r[e]:(n===r[e]||(r[e]=n,this.setValues(t,r)),this)},"undefined"!==typeof window&&(window.Color=w);var _=w,x={noop:function(){},uid:function(){var t=0;return function(){return t++}}(),isNullOrUndef:function(t){return null===t||"undefined"===typeof t},isArray:function(t){if(Array.isArray&&Array.isArray(t))return!0;var e=Object.prototype.toString.call(t);return"[object"===e.substr(0,7)&&"Array]"===e.substr(-6)},isObject:function(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)},isFinite:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){return("number"===typeof t||t instanceof Number)&&isFinite(t)}
vendor: 1,323 bytes, line 2
2)),valueOrDefault:function(t,e){return"undefined"===typeof t?e:t},valueAtIndexOrDefault:function(t,e,n){return x.valueOrDefault(x.isArray(t)?t[e]:t,n)},callback:function(t,e,n){if(t&&"function"===typeof t.call)return t.apply(n,e)},each:function(t,e,n,r){var i,o,a;if(x.isArray(t))if(o=t.length,r)for(i=o-1;i>=0;i--)e.call(n,t[i],i);else for(i=0;i<o;i++)e.call(n,t[i],i);else if(x.isObject(t))for(o=(a=Object.keys(t)).length,i=0;i<o;i++)e.call(n,t[a[i]],a[i])},arrayEquals:function(t,e){var n,r,i,o;if(!t||!e||t.length!==e.length)return!1;for(n=0,r=t.length;n<r;++n)if(i=t[n],o=e[n],i instanceof Array&&o instanceof Array){if(!x.arrayEquals(i,o))return!1}else if(i!==o)return!1;return!0},clone:function(t){if(x.isArray(t))return t.map(x.clone);if(x.isObject(t)){for(var e={},n=Object.keys(t),r=n.length,i=0;i<r;++i)e[n[i]]=x.clone(t[n[i]]);return e}return t},_merger:function(t,e,n,r){var i=e[t],o=n[t];x.isObject(i)&&x.isObject(o)?x.merge(i,o,r):e[t]=x.clone(o)},_mergerIf:function(t,e,n){var r=e[t],i=n[t];x.isObject(r)&&x.isObject(i)?x.mergeIf(r,i):e.hasOwnProperty(t)||(e[t]=x.clone(i))},merge:function(t,e,n){var r,i,o,a,s,u=x.isArray(e)?e:[e],l=u.length;if(!x.isObject(t))return t;for(r=(n=n||{}).merger||x._merger,i=0;i<l;++i)if(e=u[i],x.isObject(e))for(s=0,a=(o=Object.keys(e)).length;s<a;++s)r(o[s],t,e,n);return t}
vendor: 4,290 bytes, line 2
2,mergeIf:function(t,e){return x.merge(t,e,{merger:x._mergerIf})},extend:Object.assign||function(t){return x.merge(t,[].slice.call(arguments,1),{merger:function(t,e,n){e[t]=n[t]}})},inherits:function(t){var e=this,n=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return e.apply(this,arguments)},r=function(){this.constructor=n};return r.prototype=e.prototype,n.prototype=new r,n.extend=x.inherits,t&&x.extend(n.prototype,t),n.__super__=e.prototype,n},_deprecated:function(t,e,n,r){void 0!==e&&console.warn(t+': "'+n+'" is deprecated. Please use "'+r+'" instead')}},E=x;x.callCallback=x.callback,x.indexOf=function(t,e,n){return Array.prototype.indexOf.call(t,e,n)},x.getValueOrDefault=x.valueOrDefault,x.getValueAtIndexOrDefault=x.valueAtIndexOrDefault;var k={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return(t-=1)*t*t+1},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-((t-=1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return(t-=1)*t*t*t*t+1},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return 1-Math.cos(t*(Math.PI/2))},easeOutSine:function(t){return Math.sin(t*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t)-1)},easeInExpo:function(t){return 0===t?0:Math.pow(2,10*(t-1))},easeOutExpo:function(t){return 1===t?1:1-Math.pow(2,-10*t)},easeInOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},easeInCirc:function(t){return t>=1?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,n=0,r=1;return 0===t?0:1===t?1:(n||(n=.3),r<1?(r=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/r),-r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n))},easeOutElastic:function(t){var e=1.70158,n=0,r=1;return 0===t?0:1===t?1:(n||(n=.3),r<1?(r=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/r),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},easeInOutElastic:function(t){var e=1.70158,n=0,r=1;return 0===t?0:2===(t/=.5)?1:(n||(n=.45),r<1?(r=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/r),t<1?r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*-.5:r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},easeInBack:function(t){var e=1.70158;return t*t*((e+1)*t-e)},easeOutBack:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-k.easeOutBounce(1-t)},easeOutBounce:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:function(t){return t<.5?.5*k.easeInBounce(2*t):.5*k.easeOutBounce(2*t-1)+.5}},T={effects:k};E.easingEffects=k;var S=Math.PI,O=S/180,A=2*S,C=S/2,N=S/4,I=2*S/3,P={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,n,r,i,o){if(o){var a=Math.min(o,i/2,r/2),s=e+a,u=n+a,l=e+r-a,c=n+i-a;t.moveTo(e,u),s<l&&u<c?(t.arc(s,u,a,-S,-C),t.arc(l,u,a,-C,0),t.arc(l,c,a,0,C),t.arc(s,c,a,C,S)):s<l?(t.moveTo(s,n),t.arc(l,u,a,-C,C),t.arc(s,u,a,C,S+C)):u<c?(t.arc(s,u,a,-S,0),t.arc(s,c,a,0,S)):t.arc(s,u,a,-S,S),t.closePath(),t.moveTo(e,n)}else t.rect(e,n,r,i)},drawPoint:function(t,e,n,r,i,o){var a,s,u,l,c,f=(o||0)*O;if(e&&"object"===typeof e&&("[object HTMLImageElement]"===(a=e.toString())||"[object HTMLCanvasElement]"===a))return t.save(),t.translate(r,i),t.rotate(f),t.drawImage(e,-e.width/2,-e.height/2,e.width,e.height),void t.restore();if(!(isNaN(n)||n<=0)){switch(t.beginPath(),e){default:t.arc(r,i,n,0,A),t.closePath();break;case"triangle":t.moveTo(r+Math.sin(f)*n,i-Math.cos(f)*n),f+=I,t.lineTo(r+Math.sin(f)*n,i-Math.cos(f)*n),f+=I,t.lineTo(r+Math.sin(f)*n,i-Math.cos(f)*n),t.closePath();break;
vendor: 28,722 bytes, line 2
2case"rectRounded":l=n-(c=.516*n),s=Math.cos(f+N)*l,u=Math.sin(f+N)*l,t.arc(r-s,i-u,c,f-S,f-C),t.arc(r+u,i-s,c,f-C,f),t.arc(r+s,i+u,c,f,f+C),t.arc(r-u,i+s,c,f+C,f+S),t.closePath();break;case"rect":if(!o){l=Math.SQRT1_2*n,t.rect(r-l,i-l,2*l,2*l);break}f+=N;case"rectRot":s=Math.cos(f)*n,u=Math.sin(f)*n,t.moveTo(r-s,i-u),t.lineTo(r+u,i-s),t.lineTo(r+s,i+u),t.lineTo(r-u,i+s),t.closePath();break;case"crossRot":f+=N;case"cross":s=Math.cos(f)*n,u=Math.sin(f)*n,t.moveTo(r-s,i-u),t.lineTo(r+s,i+u),t.moveTo(r+u,i-s),t.lineTo(r-u,i+s);break;case"star":s=Math.cos(f)*n,u=Math.sin(f)*n,t.moveTo(r-s,i-u),t.lineTo(r+s,i+u),t.moveTo(r+u,i-s),t.lineTo(r-u,i+s),f+=N,s=Math.cos(f)*n,u=Math.sin(f)*n,t.moveTo(r-s,i-u),t.lineTo(r+s,i+u),t.moveTo(r+u,i-s),t.lineTo(r-u,i+s);break;case"line":s=Math.cos(f)*n,u=Math.sin(f)*n,t.moveTo(r-s,i-u),t.lineTo(r+s,i+u);break;case"dash":t.moveTo(r,i),t.lineTo(r+Math.cos(f)*n,i+Math.sin(f)*n)}t.fill(),t.stroke()}},_isPointInArea:function(t,e){return t.x>e.left-1e-6&&t.x<e.right+1e-6&&t.y>e.top-1e-6&&t.y<e.bottom+1e-6},clipArea:function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},unclipArea:function(t){t.restore()},lineTo:function(t,e,n,r){var i=n.steppedLine;if(i){if("middle"===i){var o=(e.x+n.x)/2;t.lineTo(o,r?n.y:e.y),t.lineTo(o,r?e.y:n.y)}else"after"===i&&!r||"after"!==i&&r?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}else n.tension?t.bezierCurveTo(r?e.controlPointPreviousX:e.controlPointNextX,r?e.controlPointPreviousY:e.controlPointNextY,r?n.controlPointNextX:n.controlPointPreviousX,r?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):t.lineTo(n.x,n.y)}},M=P;E.clear=P.clear,E.drawRoundedRectangle=function(t){t.beginPath(),P.roundedRect.apply(P,arguments)};var D={_set:function(t,e){return E.merge(this[t]||(this[t]={}),e)}};D._set("global",{defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",defaultLineHeight:1.2,showLines:!0});var R=D,L=E.valueOrDefault,j={toLineHeight:function(t,e){var n=(""+t).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t},toPadding:function(t){var e,n,r,i;return E.isObject(t)?(e=+t.top||0,n=+t.right||0,r=+t.bottom||0,i=+t.left||0):e=n=r=i=+t||0,{top:e,right:n,bottom:r,left:i,height:e+r,width:i+n}},_parseFont:function(t){var e=R.global,n=L(t.fontSize,e.defaultFontSize),r={family:L(t.fontFamily,e.defaultFontFamily),lineHeight:E.options.toLineHeight(L(t.lineHeight,e.defaultLineHeight),n),size:n,style:L(t.fontStyle,e.defaultFontStyle),weight:null,string:""};return r.string=function(t){return!t||E.isNullOrUndef(t.size)||E.isNullOrUndef(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(r),r},resolve:function(t,e,n,r){var i,o,a,s=!0;for(i=0,o=t.length;i<o;++i)if(void 0!==(a=t[i])&&(void 0!==e&&"function"===typeof a&&(a=a(e),s=!1),void 0!==n&&E.isArray(a)&&(a=a[n],s=!1),void 0!==a))return r&&!s&&(r.cacheable=!1),a}},F={_factorize:function(t){var e,n=[],r=Math.sqrt(t);for(e=1;e<r;e++)t%e===0&&(n.push(e),n.push(t/e));return r===(0|r)&&n.push(r),n.sort((function(t,e){return t-e})).pop(),n},log10:Math.log10||function(t){var e=Math.log(t)*Math.LOG10E,n=Math.round(e);return t===Math.pow(10,n)?n:e}},U=F;E.log10=F.log10;var q=E,B=T,V=M,z=j,W=U,H={getRtlAdapter:function(t,e,n){return t?function(t,e){return{x:function(n){return t+t+e-n},setWidth:function(t){e=t},textAlign:function(t){return"center"===t?t:"right"===t?"left":"right"},xPlus:function(t,e){return t-e},leftForLtr:function(t,e){return t-e}}}(e,n):{x:function(t){return t},setWidth:function(t){},textAlign:function(t){return t},xPlus:function(t,e){return t+e},leftForLtr:function(t,e){return t}}},overrideTextDirection:function(t,e){var n,r;"ltr"!==e&&"rtl"!==e||(r=[(n=t.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=r)},restoreTextDirection:function(t){var e=t.prevTextDirection;void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}};q.easing=B,q.canvas=V,q.options=z,q.math=W,q.rtl=H;var Y=function(t){q.extend(this,t),this.initialize.apply(this,arguments)};q.extend(Y.prototype,{_type:void 0,initialize:function(){this.hidden=!1},pivot:function(){var t=this;return t._view||(t._view=q.extend({},t._model)),t._start={},t},transition:function(t){var e=this,n=e._model,r=e._start,i=e._view;return n&&1!==t?(i||(i=e._view={}),r||(r=e._start={}),function(t,e,n,r){var i,o,a,s,u,l,c,f,h,d=Object.keys(n);for(i=0,o=d.length;i<o;++i)if(l=n[a=d[i]],e.hasOwnProperty(a)||(e[a]=l),(s=e[a])!==l&&"_"!==a[0]){if(t.hasOwnProperty(a)||(t[a]=s),(c=typeof l)===typeof(u=t[a]))if("string"===c){if((f=_(u)).valid&&(h=_(l)).valid){e[a]=h.mix(f,r).rgbString();continue}}else if(q.isFinite(u)&&q.isFinite(l)){e[a]=u+(l-u)*r;continue}e[a]=l}}(r,i,n,t),e):(e._view=q.extend({},n),e._start=null,e)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return q.isNumber(this._model.x)&&q.isNumber(this._model.y)}}),Y.extend=q.inherits;var G=Y,K=G.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),X=K;Object.defineProperty(K.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(K.prototype,"chartInstance",{get:function(){return this.chart},set:function(t){this.chart=t}}),R._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:q.noop,onComplete:q.noop}});var $={animations:[],request:null,addAnimation:function(t,e,n,r){var i,o,a=this.animations;for(e.chart=t,e.startTime=Date.now(),e.duration=n,r||(t.animating=!0),i=0,o=a.length;i<o;++i)if(a[i].chart===t)return void(a[i]=e);a.push(e),1===a.length&&this.requestAnimationFrame()},cancelAnimation:function(t){var e=q.findIndex(this.animations,(function(e){return e.chart===t}));-1!==e&&(this.animations.splice(e,1),t.animating=!1)},requestAnimationFrame:function(){var t=this;null===t.request&&(t.request=q.requestAnimFrame.call(window,(function(){t.request=null,t.startDigest()})))},startDigest:function(){this.advance(),this.animations.length>0&&this.requestAnimationFrame()},advance:function(){for(var t,e,n,r,i=this.animations,o=0;o<i.length;)e=(t=i[o]).chart,n=t.numSteps,r=Math.floor((Date.now()-t.startTime)/t.duration*n)+1,t.currentStep=Math.min(r,n),q.callback(t.render,[e,t],e),q.callback(t.onAnimationProgress,[t],e),t.currentStep>=n?(q.callback(t.onAnimationComplete,[t],e),e.animating=!1,i.splice(o,1)):++o}},Z=q.options.resolve,Q=["push","pop","shift","splice","unshift"];function J(t,e){var n=t._chartjs;if(n){var r=n.listeners,i=r.indexOf(e);-1!==i&&r.splice(i,1),r.length>0||(Q.forEach((function(e){delete t[e]})),delete t._chartjs)}}var tt=function(t,e){this.initialize(t,e)};q.extend(tt.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(t,e){var n=this;n.chart=t,n.index=e,n.linkScales(),n.addElements(),n._type=n.getMeta().type},updateIndex:function(t){this.index=t},linkScales:function(){var t=this.getMeta(),e=this.chart,n=e.scales,r=this.getDataset(),i=e.options.scales;null!==t.xAxisID&&t.xAxisID in n&&!r.xAxisID||(t.xAxisID=r.xAxisID||i.xAxes[0].id),null!==t.yAxisID&&t.yAxisID in n&&!r.yAxisID||(t.yAxisID=r.yAxisID||i.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this._update(!0)},destroy:function(){this._data&&J(this._data,this)},createMetaDataset:function(){var t=this.datasetElementType;return t&&new t({_chart:this.chart,_datasetIndex:this.index})},createMetaData:function(t){var e=this.dataElementType;return e&&new e({_chart:this.chart,_datasetIndex:this.index,_index:t})},addElements:function(){var t,e,n=this.getMeta(),r=this.getDataset().data||[],i=n.data;for(t=0,e=r.length;t<e;++t)i[t]=i[t]||this.createMetaData(t);n.dataset=n.dataset||this.createMetaDataset()},addElementAndReset:function(t){var e=this.createMetaData(t);this.getMeta().data.splice(t,0,e),this.updateElement(e,t,!0)},buildOrUpdateElements:function(){var t,e,n=this,r=n.getDataset(),i=r.data||(r.data=[]);n._data!==i&&(n._data&&J(n._data,n),i&&Object.isExtensible(i)&&(e=n,(t=i)._chartjs?t._chartjs.listeners.push(e):(Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),Q.forEach((function(e){var n="onData"+e.charAt(0).toUpperCase()+e.slice(1),r=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:function(){var e=Array.prototype.slice.call(arguments),i=r.apply(this,e);return q.each(t._chartjs.listeners,(function(t){"function"===typeof t[n]&&t[n].apply(t,e)})),i}})})))),n._data=i),n.resyncElements()},_configure:function(){this._config=q.merge({},[this.chart.options.datasets[this._type],this.getDataset()],{merger:function(t,e,n){"_meta"!==t&&"data"!==t&&q._merger(t,e,n)}})},_update:function(t){this._configure(),this._cachedDataOpts=null,this.update(t)},update:q.noop,transition:function(t){for(var e=this.getMeta(),n=e.data||[],r=n.length,i=0;i<r;++i)n[i].transition(t);e.dataset&&e.dataset.transition(t)},draw:function(){var t=this.getMeta(),e=t.data||[],n=e.length,r=0;for(t.dataset&&t.dataset.draw();r<n;++r)e[r].draw()},getStyle:function(t){var e,n=this.getMeta(),r=n.dataset;return this._configure(),r&&void 0===t?e=this._resolveDatasetElementOptions(r||{}):(t=t||0,e=this._resolveDataElementOptions(n.data[t]||{},t)),!1!==e.fill&&null!==e.fill||(e.backgroundColor=e.borderColor),e},_resolveDatasetElementOptions:function(t,e){var n,r,i,o,a=this,s=a.chart,u=a._config,l=t.custom||{},c=s.options.elements[a.datasetElementType.prototype._type]||{},f=a._datasetElementOptions,h={},d={chart:s,dataset:a.getDataset(),datasetIndex:a.index,hover:e};for(n=0,r=f.length;n<r;++n)i=f[n],o=e?"hover"+i.charAt(0).toUpperCase()+i.slice(1):i,h[i]=Z([l[o],u[o],c[o]],d);return h},_resolveDataElementOptions:function(t,e){var n=this,r=t&&t.custom,i=n._cachedDataOpts;if(i&&!r)return i;var o,a,s,u,l=n.chart,c=n._config,f=l.options.elements[n.dataElementType.prototype._type]||{},h=n._dataElementOptions,d={},p={chart:l,dataIndex:e,dataset:n.getDataset(),datasetIndex:n.index},v={cacheable:!r};if(r=r||{},q.isArray(h))for(a=0,s=h.length;a<s;++a)d[u=h[a]]=Z([r[u],c[u],f[u]],p,e,v);else for(a=0,s=(o=Object.keys(h)).length;a<s;++a)d[u=o[a]]=Z([r[u],c[h[u]],c[u],f[u]],p,e,v);return v.cacheable&&(n._cachedDataOpts=Object.freeze(d)),d},removeHoverStyle:function(t){q.merge(t._model,t.$previousStyle||{}),delete t.$previousStyle},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],n=t._index,r=t.custom||{},i=t._model,o=q.getHoverColor;t.$previousStyle={backgroundColor:i.backgroundColor,borderColor:i.borderColor,borderWidth:i.borderWidth},i.backgroundColor=Z([r.hoverBackgroundColor,e.hoverBackgroundColor,o(i.backgroundColor)],void 0,n),i.borderColor=Z([r.hoverBorderColor,e.hoverBorderColor,o(i.borderColor)],void 0,n),i.borderWidth=Z([r.hoverBorderWidth,e.hoverBorderWidth,i.borderWidth],void 0,n)},_removeDatasetHoverStyle:function(){var t=this.getMeta().dataset;t&&this.removeHoverStyle(t)},_setDatasetHoverStyle:function(){var t,e,n,r,i,o,a=this.getMeta().dataset,s={};if(a){for(o=a._model,i=this._resolveDatasetElementOptions(a,!0),t=0,e=(r=Object.keys(i)).length;t<e;++t)s[n=r[t]]=o[n],o[n]=i[n];a.$previousStyle=s}},resyncElements:function(){var t=this.getMeta(),e=this.getDataset().data,n=t.data.length,r=e.length;r<n?t.data.splice(r,n-r):r>n&&this.insertElements(n,r-n)},insertElements:function(t,e){for(var n=0;n<e;++n)this.addElementAndReset(t+n)},onDataPush:function(){var t=arguments.length;this.insertElements(this.getDataset().data.length-t,t)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(t,e){this.getMeta().data.splice(t,e),this.insertElements(t,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),tt.extend=q.inherits;var et=tt,nt=2*Math.PI;function rt(t,e){var n=e.startAngle,r=e.endAngle,i=e.pixelMargin,o=i/e.outerRadius,a=e.x,s=e.y;t.beginPath(),t.arc(a,s,e.outerRadius,n-o,r+o),e.innerRadius>i?(o=i/e.innerRadius,t.arc(a,s,e.innerRadius-i,r+o,n-o,!0)):t.arc(a,s,i,r+Math.PI/2,n-Math.PI/2),t.closePath(),t.clip()}function it(t,e,n){var r="inner"===e.borderAlign;r?(t.lineWidth=2*e.borderWidth,t.lineJoin="round"):(t.lineWidth=e.borderWidth,t.lineJoin="bevel"),n.fullCircles&&function(t,e,n,r){var i,o=n.endAngle;for(r&&(n.endAngle=n.startAngle+nt,rt(t,n),n.endAngle=o,n.endAngle===n.startAngle&&n.fullCircles&&(n.endAngle+=nt,n.fullCircles--)),t.beginPath(),t.arc(n.x,n.y,n.innerRadius,n.startAngle+nt,n.startAngle,!0),i=0;i<n.fullCircles;++i)t.stroke();for(t.beginPath(),t.arc(n.x,n.y,e.outerRadius,n.startAngle,n.startAngle+nt),i=0;i<n.fullCircles;++i)t.stroke()}(t,e,n,r),r&&rt(t,n),t.beginPath(),t.arc(n.x,n.y,e.outerRadius,n.startAngle,n.endAngle),t.arc(n.x,n.y,n.innerRadius,n.endAngle,n.startAngle,!0),t.closePath(),t.stroke()}R._set("global",{elements:{arc:{backgroundColor:R.global.defaultColor,borderColor:"#fff",borderWidth:2,borderAlign:"center"}}});var ot=G.extend({_type:"arc",inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)<Math.pow(e.radius+e.hoverRadius,2)},inRange:function(t,e){var n=this._view;if(n){for(var r=q.getAngleFromPoint(n,{x:t,y:e}),i=r.angle,o=r.distance,a=n.startAngle,s=n.endAngle;s<a;)s+=nt;for(;i>s;)i-=nt;for(;i<a;)i+=nt;var u=i>=a&&i<=s,l=o>=n.innerRadius&&o<=n.outerRadius;return u&&l}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,n=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,n=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},draw:function(){var t,e=this._chart.ctx,n=this._view,r="inner"===n.borderAlign?.33:0,i={x:n.x,y:n.y,innerRadius:n.innerRadius,outerRadius:Math.max(n.outerRadius-r,0),pixelMargin:r,startAngle:n.startAngle,endAngle:n.endAngle,fullCircles:Math.floor(n.circumference/nt)};if(e.save(),e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor,i.fullCircles){for(i.endAngle=i.startAngle+nt,e.beginPath(),e.arc(i.x,i.y,i.outerRadius,i.startAngle,i.endAngle),e.arc(i.x,i.y,i.innerRadius,i.endAngle,i.startAngle,!0),e.closePath(),t=0;t<i.fullCircles;++t)e.fill();i.endAngle=i.startAngle+n.circumference%nt}e.beginPath(),e.arc(i.x,i.y,i.outerRadius,i.startAngle,i.endAngle),e.arc(i.x,i.y,i.innerRadius,i.endAngle,i.startAngle,!0),e.closePath(),e.fill(),n.borderWidth&&it(e,n,i),e.restore()}}),at=q.valueOrDefault,st=R.global.defaultColor;R._set("global",{elements:{line:{tension:.4,backgroundColor:st,borderWidth:3,borderColor:st,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});var ut=G.extend({_type:"line",draw:function(){var t,e,n,r=this,i=r._view,o=r._chart.ctx,a=i.spanGaps,s=r._children.slice(),u=R.global,l=u.elements.line,c=-1,f=r._loop;if(s.length){if(r._loop){for(t=0;t<s.length;++t)if(e=q.previousItem(s,t),!s[t]._view.skip&&e._view.skip){s=s.slice(t).concat(s.slice(0,t)),f=a;break}f&&s.push(s[0])}for(o.save(),o.lineCap=i.borderCapStyle||l.borderCapStyle,o.setLineDash&&o.setLineDash(i.borderDash||l.borderDash),o.lineDashOffset=at(i.borderDashOffset,l.borderDashOffset),o.lineJoin=i.borderJoinStyle||l.borderJoinStyle,o.lineWidth=at(i.borderWidth,l.borderWidth),o.strokeStyle=i.borderColor||u.defaultColor,o.beginPath(),(n=s[0]._view).skip||(o.moveTo(n.x,n.y),c=0),t=1;t<s.length;++t)n=s[t]._view,e=-1===c?q.previousItem(s,t):s[c],n.skip||(c!==t-1&&!a||-1===c?o.moveTo(n.x,n.y):q.canvas.lineTo(o,e._view,n),c=t);f&&o.closePath(),o.stroke(),o.restore()}}}),lt=q.valueOrDefault,ct=R.global.defaultColor;function ft(t){var e=this._view;return!!e&&Math.abs(t-e.x)<e.radius+e.hitRadius}R._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:ct,borderColor:ct,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}});var ht=G.extend({_type:"point",inRange:function(t,e){var n=this._view;return!!n&&Math.pow(t-n.x,2)+Math.pow(e-n.y,2)<Math.pow(n.hitRadius+n.radius,2)},inLabelRange:ft,inXRange:ft,inYRange:function(t){var e=this._view;return!!e&&Math.abs(t-e.y)<e.radius+e.hitRadius},getCenterPoint:function(){var t=this._view;return{x:t.x,y:t.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y,padding:t.radius+t.borderWidth}},draw:function(t){var e=this._view,n=this._chart.ctx,r=e.pointStyle,i=e.rotation,o=e.radius,a=e.x,s=e.y,u=R.global,l=u.defaultColor;e.skip||(void 0===t||q.canvas._isPointInArea(e,t))&&(n.strokeStyle=e.borderColor||l,n.lineWidth=lt(e.borderWidth,u.elements.point.borderWidth),n.fillStyle=e.backgroundColor||l,q.canvas.drawPoint(n,r,o,a,s,i))}}),dt=R.global.defaultColor;function pt(t){return t&&void 0!==t.width}function vt(t){var e,n,r,i,o;return pt(t)?(o=t.width/2,e=t.x-o,n=t.x+o,r=Math.min(t.y,t.base),i=Math.max(t.y,t.base)):(o=t.height/2,e=Math.min(t.x,t.base),n=Math.max(t.x,t.base),r=t.y-o,i=t.y+o),{left:e,top:r,right:n,bottom:i}}function mt(t,e,n){return t===e?n:t===n?e:t}function gt(t,e,n){var r,i,o,a,s=t.borderWidth,u=function(t){var e=t.borderSkipped,n={};return e?(t.horizontal?t.base>t.x&&(e=mt(e,"left","right")):t.base<t.y&&(e=mt(e,"bottom","top")),n[e]=!0,n):n}(t);return q.isObject(s)?(r=+s.top||0,i=+s.right||0,o=+s.bottom||0,a=+s.left||0):r=i=o=a=+s||0,{t:u.top||r<0?0:r>n?n:r,r:u.right||i<0?0:i>e?e:i,b:u.bottom||o<0?0:o>n?n:o,l:u.left||a<0?0:a>e?e:a}}function yt(t,e,n){var r=null===e,i=null===n,o=!(!t||r&&i)&&vt(t);return o&&(r||e>=o.left&&e<=o.right)&&(i||n>=o.top&&n<=o.bottom)}R._set("global",{elements:{rectangle:{backgroundColor:dt,borderColor:dt,borderSkipped:"bottom",borderWidth:0}}});var bt=G.extend({_type:"rectangle",draw:function(){var t=this._chart.ctx,e=this._view,n=function(t){var e=vt(t),n=e.right-e.left,r=e.bottom-e.top,i=gt(t,n/2,r/2);return{outer:{x:e.left,y:e.top,w:n,h:r},inner:{x:e.left+i.l,y:e.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b}}}(e),r=n.outer,i=n.inner;t.fillStyle=e.backgroundColor,t.fillRect(r.x,r.y,r.w,r.h),r.w===i.w&&r.h===i.h||(t.save(),t.beginPath(),t.rect(r.x,r.y,r.w,r.h),t.clip(),t.fillStyle=e.borderColor,t.rect(i.x,i.y,i.w,i.h),t.fill("evenodd"),t.restore())},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){return yt(this._view,t,e)},inLabelRange:function(t,e){var n=this._view;return pt(n)?yt(n,t,null):yt(n,null,e)},inXRange:function(t){return yt(this._view,t,null)},inYRange:function(t){return yt(this._view,null,t)},getCenterPoint:function(){var t,e,n=this._view;return pt(n)?(t=n.x,e=(n.y+n.base)/2):(t=(n.x+n.base)/2,e=n.y),{x:t,y:e}},getArea:function(){var t=this._view;return pt(t)?t.width*Math.abs(t.y-t.base):t.height*Math.abs(t.x-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}}),wt={},_t=ot,xt=ut,Et=ht,kt=bt;wt.Arc=_t,wt.Line=xt,wt.Point=Et,wt.Rectangle=kt;var Tt=q._deprecated,St=q.valueOrDefault;function Ot(t,e,n){var r,i,o=n.barThickness,a=e.stackCount,s=e.pixels[t],u=q.isNullOrUndef(o)?function(t,e){var n,r,i,o,a=t._length;for(i=1,o=e.length;i<o;++i)a=Math.min(a,Math.abs(e[i]-e[i-1]));for(i=0,o=t.getTicks().length;i<o;++i)r=t.getPixelForTick(i),a=i>0?Math.min(a,Math.abs(r-n)):a,n=r;return a}(e.scale,e.pixels):-1;return q.isNullOrUndef(o)?(r=u*n.categoryPercentage,i=n.barPercentage):(r=o*a,i=1),{chunk:r/a,ratio:i,start:s-r/2}}R._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),R._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}});var At=et.extend({dataElementType:wt.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var t,e,n=this;et.prototype.initialize.apply(n,arguments),(t=n.getMeta()).stack=n.getDataset().stack,t.bar=!0,e=n._getIndexScale().options,Tt("bar chart",e.barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage"),Tt("bar chart",e.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness"),Tt("bar chart",e.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage"),Tt("bar chart",n._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength"),Tt("bar chart",e.maxBarThickness,"scales.[x/y]Axes.maxBarThickness","dataset.maxBarThickness")},update:function(t){var e,n,r=this.getMeta().data;for(this._ruler=this.getRuler(),e=0,n=r.length;e<n;++e)this.updateElement(r[e],e,t)},updateElement:function(t,e,n){var r=this,i=r.getMeta(),o=r.getDataset(),a=r._resolveDataElementOptions(t,e);t._xScale=r.getScaleForId(i.xAxisID),t._yScale=r.getScaleForId(i.yAxisID),t._datasetIndex=r.index,t._index=e,t._model={backgroundColor:a.backgroundColor,borderColor:a.borderColor,borderSkipped:a.borderSkipped,borderWidth:a.borderWidth,datasetLabel:o.label,label:r.chart.data.labels[e]},q.isArray(o.data[e])&&(t._model.borderSkipped=null),r._updateElementGeometry(t,e,n,a),t.pivot()},_updateElementGeometry:function(t,e,n,r){var i=this,o=t._model,a=i._getValueScale(),s=a.getBasePixel(),u=a.isHorizontal(),l=i._ruler||i.getRuler(),c=i.calculateBarValuePixels(i.index,e,r),f=i.calculateBarIndexPixels(i.index,e,l,r);o.horizontal=u,o.base=n?s:c.base,o.x=u?n?s:c.head:f.center,o.y=u?f.center:n?s:c.head,o.height=u?f.size:void 0,o.width=u?void 0:f.size},_getStacks:function(t){var e,n,r=this._getIndexScale(),i=r._getMatchingVisibleMetas(this._type),o=r.options.stacked,a=i.length,s=[];for(e=0;e<a&&(n=i[e],(!1===o||-1===s.indexOf(n.stack)||void 0===o&&void 0===n.stack)&&s.push(n.stack),n.index!==t);++e);return s},getStackCount:function(){return this._getStacks().length},getStackIndex:function(t,e){var n=this._getStacks(t),r=void 0!==e?n.indexOf(e):-1;return-1===r?n.length-1:r},getRuler:function(){var t,e,n=this._getIndexScale(),r=[];for(t=0,e=this.getMeta().data.length;t<e;++t)r.push(n.getPixelForValue(null,t,this.index));return{pixels:r,start:n._startPixel,end:n._endPixel,stackCount:this.getStackCount(),scale:n}},calculateBarValuePixels:function(t,e,n){var r,i,o,a,s,u,l,c=this.chart,f=this._getValueScale(),h=f.isHorizontal(),d=c.data.datasets,p=f._getMatchingVisibleMetas(this._type),v=f._parseValue(d[t].data[e]),m=n.minBarLength,g=f.options.stacked,y=this.getMeta().stack,b=void 0===v.start?0:v.max>=0&&v.min>=0?v.min:v.max,w=void 0===v.start?v.end:v.max>=0&&v.min>=0?v.max-v.min:v.min-v.max,_=p.length;if(g||void 0===g&&void 0!==y)for(r=0;r<_&&(i=p[r]).index!==t;++r)i.stack===y&&(o=void 0===(l=f._parseValue(d[i.index].data[e])).start?l.end:l.min>=0&&l.max>=0?l.max:l.min,(v.min<0&&o<0||v.max>=0&&o>0)&&(b+=o));return a=f.getPixelForValue(b),u=(s=f.getPixelForValue(b+w))-a,void 0!==m&&Math.abs(u)<m&&(u=m,s=w>=0&&!h||w<0&&h?a-m:a+m),{size:u,base:a,head:s,center:s+u/2}},calculateBarIndexPixels:function(t,e,n,r){var i="flex"===r.barThickness?function(t,e,n){var r,i=e.pixels,o=i[t],a=t>0?i[t-1]:null,s=t<i.length-1?i[t+1]:null,u=n.categoryPercentage;return null===a&&(a=o-(null===s?e.end-e.start:s-o)),null===s&&(s=o+o-a),r=o-(o-Math.min(a,s))/2*u,{chunk:Math.abs(s-a)/2*u/e.stackCount,ratio:n.barPercentage,start:r}}(e,n,r):Ot(e,n,r),o=this.getStackIndex(t,this.getMeta().stack),a=i.start+i.chunk*o+i.chunk/2,s=Math.min(St(r.maxBarThickness,1/0),i.chunk*i.ratio);return{base:a-s/2,head:a+s/2,center:a,size:s}},draw:function(){var t=this.chart,e=this._getValueScale(),n=this.getMeta().data,r=this.getDataset(),i=n.length,o=0;for(q.canvas.clipArea(t.ctx,t.chartArea);o<i;++o){var a=e._parseValue(r.data[o]);isNaN(a.min)||isNaN(a.max)||n[o].draw()}q.canvas.unclipArea(t.ctx)},_resolveDataElementOptions:function(){var t=this,e=q.extend({},et.prototype._resolveDataElementOptions.apply(t,arguments)),n=t._getIndexScale().options,r=t._getValueScale().options;return e.barPercentage=St(n.barPercentage,e.barPercentage),e.barThickness=St(n.barThickness,e.barThickness),e.categoryPercentage=St(n.categoryPercentage,e.categoryPercentage),e.maxBarThickness=St(n.maxBarThickness,e.maxBarThickness),e.minBarLength=St(r.minBarLength,e.minBarLength),e}}),Ct=q.valueOrDefault,Nt=q.options.resolve;R._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(t,e){var n=e.datasets[t.datasetIndex].label||"",r=e.datasets[t.datasetIndex].data[t.index];return n+": ("+t.xLabel+", "+t.yLabel+", "+r.r+")"}}}});var It=et.extend({dataElementType:wt.Point,_dataElementOptions:["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"],update:function(t){var e=this,n=e.getMeta().data;q.each(n,(function(n,r){e.updateElement(n,r,t)}))},updateElement:function(t,e,n){var r=this,i=r.getMeta(),o=t.custom||{},a=r.getScaleForId(i.xAxisID),s=r.getScaleForId(i.yAxisID),u=r._resolveDataElementOptions(t,e),l=r.getDataset().data[e],c=r.index,f=n?a.getPixelForDecimal(.5):a.getPixelForValue("object"===typeof l?l:NaN,e,c),h=n?s.getBasePixel():s.getPixelForValue(l,e,c);t._xScale=a,t._yScale=s,t._options=u,t._datasetIndex=c,t._index=e,t._model={backgroundColor:u.backgroundColor,borderColor:u.borderColor,borderWidth:u.borderWidth,hitRadius:u.hitRadius,pointStyle:u.pointStyle,rotation:u.rotation,radius:n?0:u.radius,skip:o.skip||isNaN(f)||isNaN(h),x:f,y:h},t.pivot()},setHoverStyle:function(t){var e=t._model,n=t._options,r=q.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth,radius:e.radius},e.backgroundColor=Ct(n.hoverBackgroundColor,r(n.backgroundColor)),e.borderColor=Ct(n.hoverBorderColor,r(n.borderColor)),e.borderWidth=Ct(n.hoverBorderWidth,n.borderWidth),e.radius=n.radius+n.hoverRadius},_resolveDataElementOptions:function(t,e){var n=this,r=n.chart,i=n.getDataset(),o=t.custom||{},a=i.data[e]||{},s=et.prototype._resolveDataElementOptions.apply(n,arguments),u={chart:r,dataIndex:e,dataset:i,datasetIndex:n.index};return n._cachedDataOpts===s&&(s=q.extend({},s)),s.radius=Nt([o.radius,a.r,n._config.radius,r.options.elements.point.radius],u,e),s}}),Pt=q.valueOrDefault,Mt=Math.PI,Dt=2*Mt,Rt=Mt/2;R._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(t){var e,n,r,i=document.createElement("ul"),o=t.data,a=o.datasets,s=o.labels;if(i.setAttribute("class",t.id+"-legend"),a.length)for(e=0,n=a[0].data.length;e<n;++e)(r=i.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=a[0].backgroundColor[e],s[e]&&r.appendChild(document.createTextNode(s[e]));return i.outerHTML},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map((function(n,r){var i=t.getDatasetMeta(0),o=i.controller.getStyle(r);return{text:n,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,hidden:isNaN(e.datasets[0].data[r])||i.data[r].hidden,index:r}})):[]}},onClick:function(t,e){var n,r,i,o=e.index,a=this.chart;for(n=0,r=(a.data.datasets||[]).length;n<r;++n)(i=a.getDatasetMeta(n)).data[o]&&(i.data[o].hidden=!i.data[o].hidden);a.update()}},cutoutPercentage:50,rotation:-Rt,circumference:Dt,tooltips:{callbacks:{title:function(){return""},label:function(t,e){var n=e.labels[t.index],r=": "+e.datasets[t.datasetIndex].data[t.index];return q.isArray(n)?(n=n.slice())[0]+=r:n+=r,n}}}});var Lt=et.extend({dataElementType:wt.Arc,linkScales:q.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroun
2dColor","hoverBorderColor","hoverBorderWidth"],getRingIndex:function(t){for(var e=0,n=0;n<t;++n)this.chart.isDatasetVisible(n)&&++e;return e},update:function(t){var e,n,r,i,o=this,a=o.chart,s=a.chartArea,u=a.options,l=1,c=1,f=0,h=0,d=o.getMeta(),p=d.data,v=u.cutoutPercentage/100||0,m=u.circumference,g=o._getRingWeight(o.index);if(m<Dt){var y=u.rotation%Dt,b=(y+=y>=Mt?-Dt:y<-Mt?Dt:0)+m,w=Math.cos(y),_=Math.sin(y),x=Math.cos(b),E=Math.sin(b),k=y<=0&&b>=0||b>=Dt,T=y<=Rt&&b>=Rt||b>=Dt+Rt,S=y<=-Rt&&b>=-Rt||b>=Mt+Rt,O=y===-Mt||b>=Mt?-1:Math.min(w,w*v,x,x*v),A=S?-1:Math.min(_,_*v,E,E*v),C=k?1:Math.max(w,w*v,x,x*v),N=T?1:Math.max(_,_*v,E,E*v);l=(C-O)/2,c=(N-A)/2,f=-(C+O)/2,h=-(N+A)/2}for(r=0,i=p.length;r<i;++r)p[r]._options=o._resolveDataElementOptions(p[r],r);for(a.borderWidth=o.getMaxBorderWidth(),e=(s.right-s.left-a.borderWidth)/l,n=(s.bottom-s.top-a.borderWidth)/c,a.outerRadius=Math.max(Math.min(e,n)/2,0),a.innerRadius=Math.max(a.outerRadius*v,0),a.radiusLength=(a.outerRadius-a.innerRadius)/(o._getVisibleDatasetWeightTotal()||1),a.offsetX=f*a.outerRadius,a.offsetY=h*a.outerRadius,d.total=o.calculateTotal(),o.outerRadius=a.outerRadius-a.radiusLength*o._getRingWeightOffset(o.index),o.innerRadius=Math.max(o.outerRadius-a.radiusLength*g,0),r=0,i=p.length;r<i;++r)o.updateElement(p[r],r,t)},updateElement:function(t,e,n){var r=this,i=r.chart,o=i.chartArea,a=i.options,s=a.animation,u=(o.left+o.right)/2,l=(o.top+o.bottom)/2,c=a.rotation,f=a.rotation,h=r.getDataset(),d=n&&s.animateRotate||t.hidden?0:r.calculateCircumference(h.data[e])*(a.circumference/Dt),p=n&&s.animateScale?0:r.innerRadius,v=n&&s.animateScale?0:r.outerRadius,m=t._options||{};q.extend(t,{_datasetIndex:r.index,_index:e,_model:{backgroundColor:m.backgroundColor,borderColor:m.borderColor,borderWidth:m.borderWidth,borderAlign:m.borderAlign,x:u+i.offsetX,y:l+i.offsetY,startAngle:c,endAngle:f,circumference:d,outerRadius:v,innerRadius:p,label:q.valueAtIndexOrDefault(h.label,e,i.data.labels[e])}});var g=t._model;n&&s.animateRotate||(g.startAngle=0===e?a.rotation:r.getMeta().data[e-1]._model.endAngle,g.endAngle=g.startAngle+g.circumference),t.pivot()},calculateTotal:function(){var t,e=this.getDataset(),n=this.getMeta(),r=0;return q.each(n.data,(function(n,i){t=e.data[i],isNaN(t)||n.hidden||(r+=Math.abs(t))})),r},calculateCircumference:function(t){var e=this.getMeta().total;return e>0&&!isNaN(t)?Dt*(Math.abs(t)/e):0},getMaxBorderWidth:function(t){var e,n,r,i,o,a,s,u,l=0,c=this.chart;if(!t)for(e=0,n=c.data.datasets.length;e<n;++e)if(c.isDatasetVisible(e)){t=(r=c.getDatasetMeta(e)).data,e!==this.index&&(o=r.controller);break}if(!t)return 0;for(e=0,n=t.length;e<n;++e)i=t[e],o?(o._configure(),a=o._resolveDataElementOptions(i,e)):a=i._options,"inner"!==a.borderAlign&&(s=a.borderWidth,l=(u=a.hoverBorderWidth)>(l=s>l?s:l)?u:l);return l},setHoverStyle:function(t){var e=t._model,n=t._options,r=q.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth},e.backgroundColor=Pt(n.hoverBackgroundColor,r(n.backgroundColor)),e.borderColor=Pt(n.hoverBorderColor,r(n.borderColor)),e.borderWidth=Pt(n.hoverBorderWidth,n.borderWidth)},_getRingWeightOffset:function(t){for(var e=0,n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(e+=this._getRingWeight(n));return e},_getRingWeight:function(t){return Math.max(Pt(this.chart.data.datasets[t].weight,1),0)},_getVisibleDatasetWeightTotal:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)}});R._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{type:"category",position:"left",offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{mode:"index",axis:"y"}}),R._set("global",{datasets:{horizontalBar:{categoryPercentage:.8,barPercentage:.9}}});var jt=At.extend({_getValueScaleId:function(){return this.getMeta().xAxisID},_getIndexScaleId:function(){return this.getMeta().yAxisID}}),Ft=q.valueOrDefault,Ut=q.options.resolve,qt=q.canvas._isPointInArea;function Bt(t,e){var n=t&&t.options.ticks||{},r=n.reverse,i=void 0===n.min?e:0,o=void 0===n.max?e:0;return{start:r?o:i,end:r?i:o}}function Vt(t,e,n){var r=n/2,i=Bt(t,r),o=Bt(e,r);return{top:o.end,right:i.end,bottom:o.start,left:i.start}}function zt(t){var e,n,r,i;return q.isObject(t)?(e=t.top,n=t.right,r=t.bottom,i=t.left):e=n=r=i=t,{top:e,right:n,bottom:r,left:i}}R._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}});var Wt=et.extend({datasetElementType:wt.Line,dataElementType:wt.Point,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth","cubicInterpolationMode","fill"],_dataElementOptions:{backgroundColor:"pointBackgroun
2dColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},update:function(t){var e,n,r=this,i=r.getMeta(),o=i.dataset,a=i.data||[],s=r.chart.options,u=r._config,l=r._showLine=Ft(u.showLine,s.showLines);for(r._xScale=r.getScaleForId(i.xAxisID),r._yScale=r.getScaleForId(i.yAxisID),l&&(void 0!==u.tension&&void 0===u.lineTension&&(u.lineTension=u.tension),o._scale=r._yScale,o._datasetIndex=r.index,o._children=a,o._model=r._resolveDatasetElementOptions(o),o.pivot()),e=0,n=a.length;e<n;++e)r.updateElement(a[e],e,t);for(l&&0!==o._model.tension&&r.updateBezierControlPoints(),e=0,n=a.length;e<n;++e)a[e].pivot()},updateElement:function(t,e,n){var r,i,o=this,a=o.getMeta(),s=t.custom||{},u=o.getDataset(),l=o.index,c=u.data[e],f=o._xScale,h=o._yScale,d=a.dataset._model,p=o._resolveDataElementOptions(t,e);r=f.getPixelForValue("object"===typeof c?c:NaN,e,l),i=n?h.getBasePixel():o.calculatePointY(c,e,l),t._xScale=f,t._yScale=h,t._options=p,t._datasetIndex=l,t._index=e,t._model={x:r,y:i,skip:s.skip||isNaN(r)||isNaN(i),radius:p.radius,pointStyle:p.pointStyle,rotation:p.rotation,backgroundColor:p.backgroundColor,borderColor:p.borderColor,borderWidth:p.borderWidth,tension:Ft(s.tension,d?d.tension:0),steppedLine:!!d&&d.steppedLine,hitRadius:p.hitRadius}},_resolveDatasetElementOptions:function(t){var e=this,n=e._config,r=t.custom||{},i=e.chart.options,o=i.elements.line,a=et.prototype._resolveDatasetElementOptions.apply(e,arguments);return a.spanGaps=Ft(n.spanGaps,i.spanGaps),a.tension=Ft(n.lineTension,o.tension),a.steppedLine=Ut([r.steppedLine,n.steppedLine,o.stepped]),a.clip=zt(Ft(n.clip,Vt(e._xScale,e._yScale,a.borderWidth))),a},calculatePointY:function(t,e,n){var r,i,o,a,s,u,l,c=this.chart,f=this._yScale,h=0,d=0;if(f.options.stacked){for(s=+f.getRightValue(t),l=(u=c._getSortedVisibleDatasetMetas()).length,r=0;r<l&&(o=u[r]).index!==n;++r)i=c.data.datasets[o.index],"line"===o.type&&o.yAxisID===f.id&&((a=+f.getRightValue(i.data[e]))<0?d+=a||0:h+=a||0);return s<0?f.getPixelForValue(d+s):f.getPixelForValue(h+s)}return f.getPixelForValue(t)},updateBezierControlPoints:function(){var t,e,n,r,i=this.chart,o=this.getMeta(),a=o.dataset._model,s=i.chartArea,u=o.data||[];function l(t,e,n){return Math.max(Math.min(t,n),e)}if(a.spanGaps&&(u=u.filter((function(t){return!t._model.skip}))),"monotone"===a.cubicInterpolationMode)q.splineCurveMonotone(u);else for(t=0,e=u.length;t<e;++t)n=u[t]._model,r=q.splineCurve(q.previousItem(u,t)._model,n,q.nextItem(u,t)._model,a.tension),n.controlPointPreviousX=r.previous.x,n.controlPointPreviousY=r.previous.y,n.controlPointNextX=r.next.x,n.controlPointNextY=r.next.y;if(i.options.elements.line.capBezierPoints)for(t=0,e=u.length;t<e;++t)n=u[t]._model,qt(n,s)&&(t>0&&qt(u[t-1]._model,s)&&(n.controlPointPreviousX=l(n.controlPointPreviousX,s.left,s.right),n.controlPointPreviousY=l(n.controlPointPreviousY,s.top,s.bottom)),t<u.length-1&&qt(u[t+1]._model,s)&&(n.controlPointNextX=l(n.controlPointNextX,s.left,s.right),n.controlPointNextY=l(n.controlPointNextY,s.top,s.bottom)))},draw:function(){var t,e=this.chart,n=this.getMeta(),r=n.data||[],i=e.chartArea,o=e.canvas,a=0,s=r.length;for(this._showLine&&(t=n.dataset._model.clip,q.canvas.clipArea(e.ctx,{left:!1===t.left?0:i.left-t.left,right:!1===t.right?o.width:i.right+t.right,top:!1===t.top?0:i.top-t.top,bottom:!1===t.bottom?o.height:i.bottom+t.bottom}),n.dataset.draw(),q.canvas.unclipArea(e.ctx));a<s;++a)r[a].draw(i)},setHoverStyle:function(t){var e=t._model,n=t._options,r=q.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth,radius:e.radius},e.backgroundColor=Ft(n.hoverBackgroundColor,r(n.backgroundColor)),e.borderColor=Ft(n.hoverBorderColor,r(n.borderColor)),e.borderWidth=Ft(n.hoverBorderWidth,n.borderWidth),e.radius=Ft(n.hoverRadius,n.radius)}}),Ht=q.options.resolve;R._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(t){var e,n,r,i=document.createElement("ul"),o=t.data,a=o.datasets,s=o.labels;if(i.setAttribute("class",t.id+"-legend"),a.length)for(e=0,n=a[0].data.length;e<n;++e)(r=i.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=a[0].backgroundColor[e],s[e]&&r.appendChild(document.createTextNode(s[e]));return i.outerHTML},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map((function(n,r){var i=t.getDatasetMeta(0),o=i.controller.getStyle(r);return{text:n,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,hidden:isNaN(e.datasets[0].data[r])||i.data[r].hidden,index:r}})):[]}},onClick:function(t,e){var n,r,i,o=e.index,a=this.chart;for(n=0,r=(a.data.datasets||[]).length;n<r;++n)(i=a.getDatasetMeta(n)).data[o].hidden=!i.data[o].hidden;a.update()}},tooltips:{callbacks:{title:function(){return""},label:function(t,e){return e.labels[t.index]+": "+t.yLabel}}}});var Yt=et.extend({dataElementType:wt.Arc,linkScales:q.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroun
2dColor","hoverBorderColor","hoverBorderWidth"],_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(t){var e,n,r,i=this,o=i.getDataset(),a=i.getMeta(),s=i.chart.options.startAngle||0,u=i._starts=[],l=i._angles=[],c=a.data;for(i._updateRadius(),a.count=i.countVisibleElements(),e=0,n=o.data.length;e<n;e++)u[e]=s,r=i._computeAngle(e),l[e]=r,s+=r;for(e=0,n=c.length;e<n;++e)c[e]._options=i._resolveDataElementOptions(c[e],e),i.updateElement(c[e],e,t)},_updateRadius:function(){var t=this,e=t.chart,n=e.chartArea,r=e.options,i=Math.min(n.right-n.left,n.bottom-n.top);e.outerRadius=Math.max(i/2,0),e.innerRadius=Math.max(r.cutoutPercentage?e.outerRadius/100*r.cutoutPercentage:1,0),e.radiusLength=(e.outerRadius-e.innerRadius)/e.getVisibleDatasetCount(),t.outerRadius=e.outerRadius-e.radiusLength*t.index,t.innerRadius=t.outerRadius-e.radiusLength},updateElement:function(t,e,n){var r=this,i=r.chart,o=r.getDataset(),a=i.options,s=a.animation,u=i.scale,l=i.data.labels,c=u.xCenter,f=u.yCenter,h=a.startAngle,d=t.hidden?0:u.getDistanceFromCenterForValue(o.data[e]),p=r._starts[e],v=p+(t.hidden?0:r._angles[e]),m=s.animateScale?0:u.getDistanceFromCenterForValue(o.data[e]),g=t._options||{};q.extend(t,{_datasetIndex:r.index,_index:e,_scale:u,_model:{backgroundColor:g.backgroundColor,borderColor:g.borderColor,borderWidth:g.borderWidth,borderAlign:g.borderAlign,x:c,y:f,innerRadius:0,outerRadius:n?m:d,startAngle:n&&s.animateRotate?h:p,endAngle:n&&s.animateRotate?h:v,label:q.valueAtIndexOrDefault(l,e,l[e])}}),t.pivot()},countVisibleElements:function(){var t=this.getDataset(),e=this.getMeta(),n=0;return q.each(e.data,(function(e,r){isNaN(t.data[r])||e.hidden||n++})),n},setHoverStyle:function(t){var e=t._model,n=t._options,r=q.getHoverColor,i=q.valueOrDefault;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth},e.backgroundColor=i(n.hoverBackgroundColor,r(n.backgroundColor)),e.borderColor=i(n.hoverBorderColor,r(n.borderColor)),e.borderWidth=i(n.hoverBorderWidth,n.borderWidth)},_computeAngle:function(t){var e=this,n=this.getMeta().count,r=e.getDataset(),i=e.getMeta();if(isNaN(r.data[t])||i.data[t].hidden)return 0;var o={chart:e.chart,dataIndex:t,dataset:r,datasetIndex:e.index};return Ht([e.chart.options.elements.arc.angle,2*Math.PI/n],o,t)}});R._set("pie",q.clone(R.doughnut)),R._set("pie",{cutoutPercentage:0});var Gt=Lt,Kt=q.valueOrDefault;R._set("radar",{spanGaps:!1,scale:{type:"radialLinear"},elements:{line:{fill:"start",tension:0}}});var Xt=et.extend({datasetElementType:wt.Line,dataElementType:wt.Point,linkScales:q.noop,_datasetElementOptions:["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill"],_dataElementOptions:{backgroundColor:"pointBackgroun
2dColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(t){var e,n,r=this,i=r.getMeta(),o=i.dataset,a=i.data||[],s=r.chart.scale,u=r._config;for(void 0!==u.tension&&void 0===u.lineTension&&(u.lineTension=u.tension),o._scale=s,o._datasetIndex=r.index,o._children=a,o._loop=!0,o._model=r._resolveDatasetElementOptions(o),o.pivot(),e=0,n=a.length;e<n;++e)r.updateElement(a[e],e,t);for(r.updateBezierControlPoints(),e=0,n=a.length;e<n;++e)a[e].pivot()},updateElement:function(t,e,n){var r=this,i=t.custom||{},o=r.getDataset(),a=r.chart.scale,s=a.getPointPositionForValue(e,o.data[e]),u=r._resolveDataElementOptions(t,e),l=r.getMeta().dataset._model,c=n?a.xCenter:s.x,f=n?a.yCenter:s.y;t._scale=a,t._options=u,t._datasetIndex=r.index,t._index=e,t._model={x:c,y:f,skip:i.skip||isNaN(c)||isNaN(f),radius:u.radius,pointStyle:u.pointStyle,rotation:u.rotation,backgroundColor:u.backgroundColor,borderColor:u.borderColor,borderWidth:u.borderWidth,tension:Kt(i.tension,l?l.tension:0),hitRadius:u.hitRadius}},_resolveDatasetElementOptions:function(){var t=this,e=t._config,n=t.chart.options,r=et.prototype._resolveDatasetElementOptions.apply(t,arguments);return r.spanGaps=Kt(e.spanGaps,n.spanGaps),r.tension=Kt(e.lineTension,n.elements.line.tension),r},updateBezierControlPoints:function(){var t,e,n,r,i=this.getMeta(),o=this.chart.chartArea,a=i.data||[];function s(t,e,n){return Math.max(Math.min(t,n),e)}for(i.dataset._model.spanGaps&&(a=a.filter((function(t){return!t._model.skip}))),t=0,e=a.length;t<e;++t)n=a[t]._model,r=q.splineCurve(q.previousItem(a,t,!0)._model,n,q.nextItem(a,t,!0)._model,n.tension),n.controlPointPreviousX=s(r.previous.x,o.left,o.right),n.controlPointPreviousY=s(r.previous.y,o.top,o.bottom),n.controlPointNextX=s(r.next.x,o.left,o.right),n.controlPointNextY=s(r.next.y,o.top,o.bottom)},setHoverStyle:function(t){var e=t._model,n=t._options,r=q.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth,radius:e.radius},e.backgroundColor=Kt(n.hoverBackgroundColor,r(n.backgroundColor)),e.borderColor=Kt(n.hoverBorderColor,r(n.borderColor)),e.borderWidth=Kt(n.hoverBorderWidth,n.borderWidth),e.radius=Kt(n.hoverRadius,n.radius)}});R._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}}),R._set("global",{datasets:{scatter:{showLine:!1}}});var $t={bar:At,bubble:It,doughnut:Lt,horizontalBar:jt,line:Wt,polarArea:Yt,pie:Gt,radar:Xt,scatter:Wt};function Zt(t,e){return t.native?{x:t.x,y:t.y}:q.getRelativePosition(t,e)}function Qt(t,e){var n,r,i,o,a,s,u=t._getSortedVisibleDatasetMetas();for(r=0,o=u.length;r<o;++r)for(i=0,a=(n=u[r].data).length;i<a;++i)(s=n[i])._view.skip||e(s)}function Jt(t,e){var n=[];return Qt(t,(function(t){t.inRange(e.x,e.y)&&n.push(t)})),n}function te(t,e,n,r){var i=Number.POSITIVE_INFINITY,o=[];return Qt(t,(function(t){if(!n||t.inRange(e.x,e.y)){var a=t.getCenterPoint(),s=r(e,a);s<i?(o=[t],i=s):s===i&&o.push(t)}})),o}function ee(t){var e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,r){var i=e?Math.abs(t.x-r.x):0,o=n?Math.abs(t.y-r.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(o,2))}}function ne(t,e,n){var r=Zt(e,t);n.axis=n.axis||"x";var i=ee(n.axis),o=n.intersect?Jt(t,r):te(t,r,!1,i),a=[];return o.length?(t._getSortedVisibleDatasetMetas().forEach((function(t){var e=t.data[o[0]._index];e&&!e._view.skip&&a.push(e)})),a):[]}var re={modes:{single:function(t,e){var n=Zt(e,t),r=[];return Qt(t,(function(t){if(t.inRange(n.x,n.y))return r.push(t),r})),r.slice(0,1)},label:ne,index:ne,dataset:function(t,e,n){var r=Zt(e,t);n.axis=n.axis||"xy";var i=ee(n.axis),o=n.intersect?Jt(t,r):te(t,r,!1,i);return o.length>0&&(o=t.getDatasetMeta(o[0]._datasetIndex).data),o},"x-axis":function(t,e){return ne(t,e,{intersect:!1})},point:function(t,e){return Jt(t,Zt(e,t))},nearest:function(t,e,n){var r=Zt(e,t);n.axis=n.axis||"xy";var i=ee(n.axis);return te(t,r,n.intersect,i)},x:function(t,e,n){var r=Zt(e,t),i=[],o=!1;return Qt(t,(function(t){t.inXRange(r.x)&&i.push(t),t.inRange(r.x,r.y)&&(o=!0)})),n.intersect&&!o&&(i=[]),i},y:function(t,e,n){var r=Zt(e,t),i=[],o=!1;return Qt(t,(function(t){t.inYRange(r.y)&&i.push(t),t.inRange(r.x,r.y)&&(o=!0)})),n.intersect&&!o&&(i=[]),i}}},ie=q.extend;function oe(t,e){return q.where(t,(function(t){return t.pos===e}))}function ae(t,e){return t.sort((function(t,n){var r=e?n:t,i=e?t:n;return r.weight===i.weight?r.index-i.index:r.weight-i.weight}))}function se(t,e,n,r){return Math.max(t[n],e[n])+Math.max(t[r],e[r])}function ue(t,e,n){var r,i,o=n.box,a=t.maxPadding;if(n.size&&(t[n.pos]-=n.size),n.size=n.horizontal?o.height:o.width,t[n.pos]+=n.size,o.getPadding){var s=o.getPadding();a.top=Math.max(a.top,s.top),a.left=Math.max(a.left,s.left),a.bottom=Math.max(a.bottom,s.bottom),a.right=Math.max(a.right,s.right)}if(r=e.outerWidth-se(a,t,"left","right"),i=e.outerHeight-se(a,t,"top","bottom"),r!==t.w||i!==t.h)return t.w=r,t.h=i,n.horizontal?r!==t.w:i!==t.h}function le(t,e){var n=e.maxPadding;function r(t){var r={left:0,top:0,right:0,bottom:0};return t.forEach((function(t){r[t]=Math.max(e[t],n[t])})),r}return r(t?["left","right"]:["top","bottom"])}function ce(t,e,n){var r,i,o,a,s,u,l=[];for(r=0,i=t.length;r<i;++r)(a=(o=t[r]).box).update(o.width||e.w,o.height||e.h,le(o.horizontal,e)),ue(e,n,o)&&(u=!0,l.length&&(s=!0)),a.fullWidth||l.push(o);return s&&ce(l,e,n)||u}function fe(t,e,n){var r,i,o,a,s=n.padding,u=e.x,l=e.y;for(r=0,i=t.length;r<i;++r)a=(o=t[r]).box,o.horizontal?(a.left=a.fullWidth?s.left:e.left,a.right=a.fullWidth?n.outerWidth-s.right:e.left+e.w,a.top=l,a.bottom=l+a.height,a.width=a.right-a.left,l=a.bottom):(a.left=u,a.right=u+a.width,a.top=e.top,a.bottom=e.top+e.h,a.height=a.bottom-a.top,u=a.right);e.x=u,e.y=l}R._set("global",{layout:{padding:{top:0,right:0,bottom:0,left:0}}});var he,de={defaults:{}
vendor: 4,795 bytes, line 2
2,addBox:function(t,e){t.boxes||(t.boxes=[]),e.fullWidth=e.fullWidth||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw:function(){e.draw.apply(e,arguments)}}]},t.boxes.push(e)},removeBox:function(t,e){var n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure:function(t,e,n){for(var r,i=["fullWidth","position","weight"],o=i.length,a=0;a<o;++a)r=i[a],n.hasOwnProperty(r)&&(e[r]=n[r])},update:function(t,e,n){if(t){var r=t.options.layout||{},i=q.options.toPadding(r.padding),o=e-i.width,a=n-i.height,s=function(t){var e=function(t){var e,n,r,i=[];for(e=0,n=(t||[]).length;e<n;++e)r=t[e],i.push({index:e,box:r,pos:r.position,horizontal:r.isHorizontal(),weight:r.weight});return i}(t),n=ae(oe(e,"left"),!0),r=ae(oe(e,"right")),i=ae(oe(e,"top"),!0),o=ae(oe(e,"bottom"));return{leftAndTop:n.concat(i),rightAndBottom:r.concat(o),chartArea:oe(e,"chartArea"),vertical:n.concat(r),horizontal:i.concat(o)}}(t.boxes),u=s.vertical,l=s.horizontal,c=Object.freeze({outerWidth:e,outerHeight:n,padding:i,availableWidth:o,vBoxMaxWidth:o/2/u.length,hBoxMaxHeight:a/2}),f=ie({maxPadding:ie({},i),w:o,h:a,x:i.left,y:i.top},i);!function(t,e){var n,r,i;for(n=0,r=t.length;n<r;++n)(i=t[n]).width=i.horizontal?i.box.fullWidth&&e.availableWidth:e.vBoxMaxWidth,i.height=i.horizontal&&e.hBoxMaxHeight}(u.concat(l),c),ce(u,f,c),ce(l,f,c)&&ce(u,f,c),function(t){var e=t.maxPadding;function n(n){var r=Math.max(e[n]-t[n],0);return t[n]+=r,r}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}(f),fe(s.leftAndTop,f,c),f.x+=f.w,f.y+=f.h,fe(s.rightAndBottom,f,c),t.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h},q.each(s.chartArea,(function(e){var n=e.box;ie(n,t.chartArea),n.update(f.w,f.h)}))}}},pe=(he=Object.freeze({__proto__:null,default:"/*\n * DOM element rendering detection\n * https://davidwalsh.name/detect-node-insertion\n */\n@keyframes chartjs-render-animation {\n\tfrom { opacity: 0.99; }\n\tto { opacity: 1; }\n}\n\n.chartjs-render-monitor {\n\tanimation: chartjs-render-animation 0.001s;\n}\n\n/*\n * DOM element resizing detection\n * https://github.com/marcj/css-element-queries\n */\n.chartjs-size-monitor,\n.chartjs-size-monitor-expand,\n.chartjs-size-monitor-shrink {\n\tposition: absolute;\n\tdirection: ltr;\n\tleft: 0;\n\ttop: 0;\n\tright: 0;\n\tbottom: 0;\n\toverflow: hidden;\n\tpointer-events: none;\n\tvisibility: hidden;\n\tz-index: -1;\n}\n\n.chartjs-size-monitor-expand > div {\n\tposition: absolute;\n\twidth: 1000000px;\n\theight: 1000000px;\n\tleft: 0;\n\ttop: 0;\n}\n\n.chartjs-size-monitor-shrink > div {\n\tposition: absolute;\n\twidth: 200%;\n\theight: 200%;\n\tleft: 0;\n\ttop: 0;\n}\n"}))&&he.default||he,ve=["animationstart","webkitAnimationStart"],me={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function ge(t,e){var n=q.getStyle(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?Number(r[1]):void 0}var ye=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(n){}return t}()&&{passive:!0};function be(t,e,n){t.addEventListener(e,n,ye)}function we(t,e,n){t.removeEventListener(e,n,ye)}function _e(t,e,n,r,i){return{type:t,chart:e,native:i||null,x:void 0!==n?n:null,y:void 0!==r?r:null}}function xe(t){var e=document.createElement("div");return e.className=t||"",e}function Ee(t,e,n){var r=t.$chartjs||(t.$chartjs={}),i=r.resizer=function(t){var e=xe("chartjs-size-monitor"),n=xe("chartjs-size-monitor-expand"),r=xe("chartjs-size-monitor-shrink");n.appendChild(xe()),r.appendChild(xe()),e.appendChild(n),e.appendChild(r),e._reset=function(){n.scrollLeft=1e6,n.scrollTop=1e6,r.scrollLeft=1e6,r.scrollTop=1e6};var i=function(){e._reset(),t()};return be(n,"scroll",i.bind(n,"expand")),be(r,"scroll",i.bind(r,"shrink")),e}(function(t,e){var n=!1,r=[];return function(){r=Array.prototype.slice.call(arguments),e=e||this,n||(n=!0,q.requestAnimFrame.call(window,(function(){n=!1,t.apply(e,r)})))}}((function(){if(r.resizer){var i=n.options.maintainAspectRatio&&t.parentNode,o=i?i.clientWidth:0;e(_e("resize",n)),i&&i.clientWidth<o&&n.canvas&&e(_e("resize",n))}})));!function(t,e){var n=t.$chartjs||(t.$chartjs={}),r=n.renderProxy=function(t){"chartjs-render-animation"===t.animationName&&e()};q.each(ve,(function(e){be(t,e,r)})),n.reflow=!!t.offsetParent,t.classList.add("chartjs-render-monitor")}(t,(function(){if(r.resizer){var e=t.parentNode;e&&e!==i.parentNode&&e.insertBefore(i,e.firstChild),i._reset()}}))}function ke(t){var e=t.$chartjs||{},n=e.resizer;delete e.resizer,function(t){var e=t.$chartjs||{},n=e.renderProxy;n&&(q.each(ve,(function(e){we(t,e,n)}
2)),delete e.renderProxy),t.classList.remove("chartjs-render-monitor")}(t),n&&n.parentNode&&n.parentNode.removeChild(n)}var Te={disableCSSInjection:!1,_enabled:"undefined"!==typeof window&&"undefined"!==typeof document,_ensureLoaded:function(t){if(!this.disableCSSInjection){var e=t.getRootNode?t.getRootNode():document;!function(t,e){var n=t.$chartjs||(t.$chartjs={});if(!n.containsStyles){n.containsStyles=!0,e="/* Chart.js */\n"+e;var r=document.createElement("style");r.setAttribute("type","text/css"),r.appendChild(document.createTextNode(e)),t.appendChild(r)}}(e.host?e:document.head,pe)}},acquireContext:function(t,e){"string"===typeof t?t=document.getElementById(t):t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas);var n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(this._ensureLoaded(t),function(t,e){var n=t.style,r=t.getAttribute("height"),i=t.getAttribute("width");if(t.$chartjs={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===i||""===i){var o=ge(t,"width");void 0!==o&&(t.width=o)}if(null===r||""===r)if(""===t.style.height)t.height=t.width/(e.options.aspectRatio||2);else{var a=ge(t,"height");void 0!==o&&(t.height=a)}}(t,e),n):null},releaseContext:function(t){var e=t.canvas;if(e.$chartjs){var n=e.$chartjs.initial;["height","width"].forEach((function(t){var r=n[t];q.isNullOrUndef(r)?e.removeAttribute(t):e.setAttribute(t,r)})),q.each(n.style||{},(function(t,n){e.style[n]=t})),e.width=e.width,delete e.$chartjs}},addEventListener:function(t,e,n){var r=t.canvas;if("resize"!==e){var i=n.$chartjs||(n.$chartjs={});be(r,e,(i.proxies||(i.proxies={}))[t.id+"_"+e]=function(e){n(function(t,e){var n=me[t.type]||t.type,r=q.getRelativePosition(t,e);return _e(n,e,r.x,r.y,t)}(e,t))})}else Ee(r,n,t)},removeEventListener:function(t,e,n){var r=t.canvas;if("resize"!==e){var i=((n.$chartjs||{}).proxies||{})[t.id+"_"+e];i&&we(r,e,i)}else ke(r)}};q.addEvent=be,q.removeEvent=we;var Se=Te._enabled?Te:{acquireContext:function(t){return t&&t.canvas&&(t=t.canvas),t&&t.getContext("2d")||null}},Oe=q.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},Se);R._set("global",{plugins:{}});var Ae={_plugins:[],_cacheId:0,register:function(t){var e=this._plugins;[].concat(t).forEach((function(t){-1===e.indexOf(t)&&e.push(t)})),this._cacheId++},unregister:function(t){var e=this._plugins;[].concat(t).forEach((function(t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)})),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(t,e,n){var r,i,o,a,s,u=this.descriptors(t),l=u.length;for(r=0;r<l;++r)if("function"===typeof(s=(o=(i=u[r]).plugin)[e])&&((a=[t].concat(n||[])).push(i.options),!1===s.apply(o,a)))return!1;return!0},descriptors:function(t){var e=t.$plugins||(t.$plugins={});if(e.id===this._cacheId)return e.descriptors;var n=[],r=[],i=t&&t.config||{},o=i.options&&i.options.plugins||{};return this._plugins.concat(i.plugins||[]).forEach((function(t){if(-1===n.indexOf(t)){var e=t.id,i=o[e];!1!==i&&(!0===i&&(i=q.clone(R.global.plugins[e])),n.push(t),r.push({plugin:t,options:i||{}}))}})),e.descriptors=r,e.id=this._cacheId,r},_invalidate:function(t){delete t.$plugins}},Ce={constructors:{},defaults:{},registerScaleType:function(t,e,n){this.constructors[t]=e,this.defaults[t]=q.clone(n)},getScaleConstructor:function(t){return this.constructors.hasOwnProperty(t)?this.constructors[t]:void 0},getScaleDefaults:function(t){return this.defaults.hasOwnProperty(t)?q.merge({},[R.scale,this.defaults[t]]):{}},updateScaleDefaults:function(t,e){this.defaults.hasOwnProperty(t)&&(this.defaults[t]=q.extend(this.defaults[t],e))},addScalesToLayout:function(t){q.each(t.scales,(function(e){e.fullWidth=e.options.fullWidth,e.position=e.options.position,e.weight=e.options.weight,de.addBox(t,e)}))}},Ne=q.valueOrDefault,Ie=q.rtl.getRtlAdapter;R._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackgroun
vendor: 81,323 bytes, line 2
2d:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:q.noop,title:function(t,e){var n="",r=e.labels,i=r?r.length:0;if(t.length>0){var o=t[0];o.label?n=o.label:o.xLabel?n=o.xLabel:i>0&&o.index<i&&(n=r[o.index])}return n},afterTitle:q.noop,beforeBody:q.noop,beforeLabel:q.noop,label:function(t,e){var n=e.datasets[t.datasetIndex].label||"";return n&&(n+=": "),q.isNullOrUndef(t.value)?n+=t.yLabel:n+=t.value,n},labelColor:function(t,e){var n=e.getDatasetMeta(t.datasetIndex).data[t.index]._view;return{borderColor:n.borderColor,backgroundColor:n.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:q.noop,afterBody:q.noop,beforeFooter:q.noop,footer:q.noop,afterFooter:q.noop}}});var Pe={average:function(t){if(!t.length)return!1;var e,n,r=0,i=0,o=0;for(e=0,n=t.length;e<n;++e){var a=t[e];if(a&&a.hasValue()){var s=a.tooltipPosition();r+=s.x,i+=s.y,++o}}return{x:r/o,y:i/o}},nearest:function(t,e){var n,r,i,o=e.x,a=e.y,s=Number.POSITIVE_INFINITY;for(n=0,r=t.length;n<r;++n){var u=t[n];if(u&&u.hasValue()){var l=u.getCenterPoint(),c=q.distanceBetweenPoints(e,l);c<s&&(s=c,i=u)}}if(i){var f=i.tooltipPosition();o=f.x,a=f.y}return{x:o,y:a}}};function Me(t,e){return e&&(q.isArray(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function De(t){return("string"===typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function Re(t){var e=t._xScale,n=t._yScale||t._scale,r=t._index,i=t._datasetIndex,o=t._chart.getDatasetMeta(i).controller,a=o._getIndexScale(),s=o._getValueScale();return{xLabel:e?e.getLabelForIndex(r,i):"",yLabel:n?n.getLabelForIndex(r,i):"",label:a?""+a.getLabelForIndex(r,i):"",value:s?""+s.getLabelForIndex(r,i):"",index:r,datasetIndex:i,x:t._model.x,y:t._model.y}}function Le(t){var e=R.global;return{xPadding:t.xPadding,yPadding:t.yPadding,xAlign:t.xAlign,yAlign:t.yAlign,rtl:t.rtl,textDirection:t.textDirection,bodyFontColor:t.bodyFontColor,_bodyFontFamily:Ne(t.bodyFontFamily,e.defaultFontFamily),_bodyFontStyle:Ne(t.bodyFontStyle,e.defaultFontStyle),_bodyAlign:t.bodyAlign,bodyFontSize:Ne(t.bodyFontSize,e.defaultFontSize),bodySpacing:t.bodySpacing,titleFontColor:t.titleFontColor,_titleFontFamily:Ne(t.titleFontFamily,e.defaultFontFamily),_titleFontStyle:Ne(t.titleFontStyle,e.defaultFontStyle),titleFontSize:Ne(t.titleFontSize,e.defaultFontSize),_titleAlign:t.titleAlign,titleSpacing:t.titleSpacing,titleMarginBottom:t.titleMarginBottom,footerFontColor:t.footerFontColor,_footerFontFamily:Ne(t.footerFontFamily,e.defaultFontFamily),_footerFontStyle:Ne(t.footerFontStyle,e.defaultFontStyle),footerFontSize:Ne(t.footerFontSize,e.defaultFontSize),_footerAlign:t.footerAlign,footerSpacing:t.footerSpacing,footerMarginTop:t.footerMarginTop,caretSize:t.caretSize,cornerRadius:t.cornerRadius,backgroundColor:t.backgroundColor,opacity:0,legendColorBackground:t.multiKeyBackground,displayColors:t.displayColors,borderColor:t.borderColor,borderWidth:t.borderWidth}}function je(t,e){return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-t.xPadding:t.x+t.xPadding}function Fe(t){return Me([],De(t))}var Ue=G.extend({initialize:function(){this._model=Le(this._options),this._lastActive=[]},getTitle:function(){var t=this,e=t._options,n=e.callbacks,r=n.beforeTitle.apply(t,arguments),i=n.title.apply(t,arguments),o=n.afterTitle.apply(t,arguments),a=[];return a=Me(a,De(r)),a=Me(a,De(i)),a=Me(a,De(o))},getBeforeBody:function(){return Fe(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(t,e){var n=this,r=n._options.callbacks,i=[];return q.each(t,(function(t){var o={before:[],lines:[],after:[]};Me(o.before,De(r.beforeLabel.call(n,t,e))),Me(o.lines,r.label.call(n,t,e)),Me(o.after,De(r.afterLabel.call(n,t,e))),i.push(o)})),i},getAfterBody:function(){return Fe(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var t=this,e=t._options.callbacks,n=e.beforeFooter.apply(t,arguments),r=e.footer.apply(t,arguments),i=e.afterFooter.apply(t,arguments),o=[];return o=Me(o,De(n)),o=Me(o,De(r)),o=Me(o,De(i))},update:function(t){var e,n,r=this,i=r._options,o=r._model,a=r._model=Le(i),s=r._active,u=r._data,l={xAlign:o.xAlign,yAlign:o.yAlign},c={x:o.x,y:o.y},f={width:o.width,height:o.height},h={x:o.caretX,y:o.caretY};if(s.length){a.opacity=1;var d=[],p=[];h=Pe[i.position].call(r,s,r._eventPosition);var v=[];for(e=0,n=s.length;e<n;++e)v.push(Re(s[e]));i.filter&&(v=v.filter((function(t){return i.filter(t,u)}))),i.itemSort&&(v=v.sort((function(t,e){return i.itemSort(t,e,u)}))),q.each(v,(function(t){d.push(i.callbacks.labelColor.call(r,t,r._chart)),p.push(i.callbacks.labelTextColor.call(r,t,r._chart))})),a.title=r.getTitle(v,u),a.beforeBody=r.getBeforeBody(v,u),a.body=r.getBody(v,u),a.afterBody=r.getAfterBody(v,u),a.footer=r.getFooter(v,u),a.x=h.x,a.y=h.y,a.caretPadding=i.caretPadding,a.labelColors=d,a.labelTextColors=p,a.dataPoints=v,f=function(t,e){var n=t._chart.ctx,r=2*e.yPadding,i=0,o=e.body,a=o.reduce((function(t,e){return t+e.before.length+e.lines.length+e.after.length}),0);a+=e.beforeBody.length+e.afterBody.length;var s=e.title.length,u=e.footer.length,l=e.titleFontSize,c=e.bodyFontSize,f=e.footerFontSize;r+=s*l,r+=s?(s-1)*e.titleSpacing:0,r+=s?e.titleMarginBottom:0,r+=a*c,r+=a?(a-1)*e.bodySpacing:0,r+=u?e.footerMarginTop:0,r+=u*f,r+=u?(u-1)*e.footerSpacing:0;var h=0,d=function(t){i=Math.max(i,n.measureText(t).width+h)};return n.font=q.fontString(l,e._titleFontStyle,e._titleFontFamily),q.each(e.title,d),n.font=q.fontString(c,e._bodyFontStyle,e._bodyFontFamily),q.each(e.beforeBody.concat(e.afterBody),d),h=e.displayColors?c+2:0,q.each(o,(function(t){q.each(t.before,d),q.each(t.lines,d),q.each(t.after,d)})),h=0,n.font=q.fontString(f,e._footerFontStyle,e._footerFontFamily),q.each(e.footer,d),{width:i+=2*e.xPadding,height:r}}(this,a),c=function(t,e,n,r){var i=t.x,o=t.y,a=t.caretSize,s=t.caretPadding,u=t.cornerRadius,l=n.xAlign,c=n.yAlign,f=a+s,h=u+s;return"right"===l?i-=e.width:"center"===l&&((i-=e.width/2)+e.width>r.width&&(i=r.width-e.width),i<0&&(i=0)),"top"===c?o+=f:o-="bottom"===c?e.height+f:e.height/2,"center"===c?"left"===l?i+=f:"right"===l&&(i-=f):"left"===l?i-=h:"right"===l&&(i+=h),{x:i,y:o}}(a,f,l=function(t,e){var n,r,i,o,a,s=t._model,u=t._chart,l=t._chart.chartArea,c="center",f="center";s.y<e.height?f="top":s.y>u.height-e.height&&(f="bottom");var h=(l.left+l.right)/2,d=(l.top+l.bottom)/2;"center"===f?(n=function(t){return t<=h},r=function(t){return t>h}):(n=function(t){return t<=e.width/2},r=function(t){return t>=u.width-e.width/2}),i=function(t){return t+e.width+s.caretSize+s.caretPadding>u.width},o=function(t){return t-e.width-s.caretSize-s.caretPadding<0},a=function(t){return t<=d?"top":"bottom"},n(s.x)?(c="left",i(s.x)&&(c="center",f=a(s.y))):r(s.x)&&(c="right",o(s.x)&&(c="center",f=a(s.y)));var p=t._options;return{xAlign:p.xAlign?p.xAlign:c,yAlign:p.yAlign?p.yAlign:f}}(this,f),r._chart)}else a.opacity=0;return a.xAlign=l.xAlign,a.yAlign=l.yAlign,a.x=c.x,a.y=c.y,a.width=f.width,a.height=f.height,a.caretX=h.x,a.caretY=h.y,r._model=a,t&&i.custom&&i.custom.call(r,a),r},drawCaret:function(t,e){var n=this._chart.ctx,r=this._view,i=this.getCaretPosition(t,e,r);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)},getCaretPosition:function(t,e,n){var r,i,o,a,s,u,l=n.caretSize,c=n.cornerRadius,f=n.xAlign,h=n.yAlign,d=t.x,p=t.y,v=e.width,m=e.height;if("center"===h)s=p+m/2,"left"===f?(i=(r=d)-l,o=r,a=s+l,u=s-l):(i=(r=d+v)+l,o=r,a=s-l,u=s+l);else if("left"===f?(r=(i=d+c+l)-l,o=i+l):"right"===f?(r=(i=d+v-c-l)-l,o=i+l):(r=(i=n.caretX)-l,o=i+l),"top"===h)s=(a=p)-l,u=a;else{s=(a=p+m)+l,u=a;var g=o;o=r,r=g}return{x1:r,x2:i,x3:o,y1:a,y2:s,y3:u}},drawTitle:function(t,e,n){var r,i,o,a=e.title,s=a.length;if(s){var u=Ie(e.rtl,e.x,e.width);for(t.x=je(e,e._titleAlign),n.textAlign=u.textAlign(e._titleAlign),n.textBaseline="middle",r=e.titleFontSize,i=e.titleSpacing,n.fillStyle=e.titleFontColor,n.font=q.fontString(r,e._titleFontStyle,e._titleFontFamily),o=0;o<s;++o)n.fillText(a[o],u.x(t.x),t.y+r/2),t.y+=r+i,o+1===s&&(t.y+=e.titleMarginBottom-i)}},drawBody:function(t,e,n){var r,i,o,a,s,u,l,c,f=e.bodyFontSize,h=e.bodySpacing,d=e._bodyAlign,p=e.body,v=e.displayColors,m=0,g=v?je(e,"left"):0,y=Ie(e.rtl,e.x,e.width),b=function(e){n.fillText(e,y.x(t.x+m),t.y+f/2),t.y+=f+h},w=y.textAlign(d);for(n.textAlign=d,n.textBaseline="middle",n.font=q.fontString(f,e._bodyFontStyle,e._bodyFontFamily),t.x=je(e,w),n.fillStyle=e.bodyFontColor,q.each(e.beforeBody,b),m=v&&"right"!==w?"center"===d?f/2+1:f+2:0,s=0,l=p.length;s<l;++s){for(r=p[s],i=e.labelTextColors[s],o=e.labelColors[s],n.fillStyle=i,q.each(r.before,b),u=0,c=(a=r.lines).length;u<c;++u){if(v){var _=y.x(g);n.fillStyle=e.legendColorBackground,n.fillRect(y.leftForLtr(_,f),t.y,f,f),n.lineWidth=1,n.strokeStyle=o.borderColor,n.strokeRect(y.leftForLtr(_,f),t.y,f,f),n.fillStyle=o.backgroundColor,n.fillRect(y.leftForLtr(y.xPlus(_,1),f-2),t.y+1,f-2,f-2),n.fillStyle=i}b(a[u])}q.each(r.after,b)}m=0,q.each(e.afterBody,b),t.y-=h},drawFooter:function(t,e,n){var r,i,o=e.footer,a=o.length;if(a){var s=Ie(e.rtl,e.x,e.width);for(t.x=je(e,e._footerAlign),t.y+=e.footerMarginTop,n.textAlign=s.textAlign(e._footerAlign),n.textBaseline="middle",r=e.footerFontSize,n.fillStyle=e.footerFontColor,n.font=q.fontString(r,e._footerFontStyle,e._footerFontFamily),i=0;i<a;++i)n.fillText(o[i],s.x(t.x),t.y+r/2),t.y+=r+e.footerSpacing}},drawBackground:function(t,e,n,r){n.fillStyle=e.backgroundColor,n.strokeStyle=e.borderColor,n.lineWidth=e.borderWidth;var i=e.xAlign,o=e.yAlign,a=t.x,s=t.y,u=r.width,l=r.height,c=e.cornerRadius;n.beginPath(),n.moveTo(a+c,s),"top"===o&&this.drawCaret(t,r),n.lineTo(a+u-c,s),n.quadraticCurveTo(a+u,s,a+u,s+c),"center"===o&&"right"===i&&this.drawCaret(t,r),n.lineTo(a+u,s+l-c),n.quadraticCurveTo(a+u,s+l,a+u-c,s+l),"bottom"===o&&this.drawCaret(t,r),n.lineTo(a+c,s+l),n.quadraticCurveTo(a,s+l,a,s+l-c),"center"===o&&"left"===i&&this.drawCaret(t,r),n.lineTo(a,s+c),n.quadraticCurveTo(a,s,a+c,s),n.closePath(),n.fill(),e.borderWidth>0&&n.stroke()},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var n={width:e.width,height:e.height},r={x:e.x,y:e.y},i=Math.abs(e.opacity<.001)?0:e.opacity,o=e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length;this._options.enabled&&o&&(t.save(),t.globalAlpha=i,this.drawBackground(r,e,t,n),r.y+=e.yPadding,q.rtl.overrideTextDirection(t,e.textDirection),this.drawTitle(r,e,t),this.drawBody(r,e,t),this.drawFooter(r,e,t),q.rtl.restoreTextDirection(t,e.textDirection),t.restore())}},handleEvent:function(t){var e,n=this,r=n._options;return n._lastActive=n._lastActive||[],"mouseout"===t.type?n._active=[]:(n._active=n._chart.getElementsAtEventForMode(t,r.mode,r),r.reverse&&n._active.reverse()),(e=!q.arrayEquals(n._active,n._lastActive))&&(n._lastActive=n._active,(r.enabled||r.custom)&&(n._eventPosition={x:t.x,y:t.y},n.update(!0),n.pivot())),e}}),qe=Pe,Be=Ue;Be.positioners=qe;var Ve=q.valueOrDefault;function ze(){return q.merge({},[].slice.call(arguments),{merger:function(t,e,n,r){if("xAxes"===t||"yAxes"===t){var i,o,a,s=n[t].length;for(e[t]||(e[t]=[]),i=0;i<s;++i)a=n[t][i],o=Ve(a.type,"xAxes"===t?"category":"linear"),i>=e[t].length&&e[t].push({}),!e[t][i].type||a.type&&a.type!==e[t][i].type?q.merge(e[t][i],[Ce.getScaleDefaults(o),a]):q.merge(e[t][i],a)}else q._merger(t,e,n,r)}})}function We(){return q.merge({},[].slice.call(arguments),{merger:function(t,e,n,r){var i=e[t]||{},o=n[t];"scales"===t?e[t]=ze(i,o):"scale"===t?e[t]=q.merge(i,[Ce.getScaleDefaults(o.type),o]):q._merger(t,e,n,r)}})}function He(t){var e=t.options;q.each(t.scales,(function(e){de.removeBox(t,e)})),e=We(R.global,R[t.config.type],e),t.options=t.config.options=e,t.ensureScalesHaveIDs(),t.buildOrUpdateScales(),t.tooltip._options=e.tooltips,t.tooltip.initialize()}function Ye(t,e,n){var r,i=function(t){return t.id===r};do{r=e+n++}while(q.findIndex(t,i)>=0);return r}function Ge(t){return"top"===t||"bottom"===t}function Ke(t,e){return function(n,r){return n[t]===r[t]?n[e]-r[e]:n[t]-r[t]}}R._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});var Xe=function(t,e){return this.construct(t,e),this};q.extend(Xe.prototype,{construct:function(t,e){var n=this;e=function(t){var e=(t=t||{}).data=t.data||{};return e.datasets=e.datasets||[],e.labels=e.labels||[],t.options=We(R.global,R[t.type],t.options||{}),t}(e);var r=Oe.acquireContext(t,e),i=r&&r.canvas,o=i&&i.height,a=i&&i.width;n.id=q.uid(),n.ctx=r,n.canvas=i,n.config=e,n.width=a,n.height=o,n.aspectRatio=o?a/o:null,n.options=e.options,n._bufferedRender=!1,n._layers=[],n.chart=n,n.controller=n,Xe.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(t){n.config.data=t}}),r&&i?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var t=this;return Ae.notify(t,"beforeInit"),q.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.initToolTip(),Ae.notify(t,"afterInit"),t},clear:function(){return q.canvas.clear(this),this},stop:function(){return $.cancelAnimation(this),this},resize:function(t){var e=this,n=e.options,r=e.canvas,i=n.maintainAspectRatio&&e.aspectRatio||null,o=Math.max(0,Math.floor(q.getMaximumWidth(r))),a=Math.max(0,Math.floor(i?o/i:q.getMaximumHeight(r)));if((e.width!==o||e.height!==a)&&(r.width=e.width=o,r.height=e.height=a,r.style.width=o+"px",r.style.height=a+"px",q.retinaScale(e,n.devicePixelRatio),!t)){var s={width:o,height:a};Ae.notify(e,"resize",[s]),n.onResize&&n.onResize(e,s),e.stop(),e.update({duration:n.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},n=t.scale;q.each(e.xAxes,(function(t,n){t.id||(t.id=Ye(e.xAxes,"x-axis-",n))})),q.each(e.yAxes,(function(t,n){t.id||(t.id=Ye(e.yAxes,"y-axis-",n))})),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var t=this,e=t.options,n=t.scales||{},r=[],i=Object.keys(n).reduce((function(t,e){return t[e]=!1,t}),{});e.scales&&(r=r.concat((e.scales.xAxes||[]).map((function(t){return{options:t,dtype:"category",dposition:"bottom"}})),(e.scales.yAxes||[]).map((function(t){return{options:t,dtype:"linear",dposition:"left"}})))),e.scale&&r.push({options:e.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),q.each(r,(function(e){var r=e.options,o=r.id,a=Ve(r.type,e.dtype);Ge(r.position)!==Ge(e.dposition)&&(r.position=e.dposition),i[o]=!0;var s=null;if(o in n&&n[o].type===a)(s=n[o]).options=r,s.ctx=t.ctx,s.chart=t;else{var u=Ce.getScaleConstructor(a);if(!u)return;s=new u({id:o,type:a,options:r,ctx:t.ctx,chart:t}),n[s.id]=s}s.mergeTicksOptions(),e.isDefault&&(t.scale=s)})),q.each(i,(function(t,e){t||delete n[e]})),t.scales=n,Ce.addScalesToLayout(this)},buildOrUpdateControllers:function(){var t,e,n=this,r=[],i=n.data.datasets;for(t=0,e=i.length;t<e;t++){var o=i[t],a=n.getDatasetMeta(t),s=o.type||n.config.type;if(a.type&&a.type!==s&&(n.destroyDatasetMeta(t),a=n.getDatasetMeta(t)),a.type=s,a.order=o.order||0,a.index=t,a.controller)a.controller.updateIndex(t),a.controller.linkScales();else{var u=$t[a.type];if(void 0===u)throw new Error('"'+a.type+'" is not a chart type.');a.controller=new u(n,t),r.push(a.controller)}}return r},resetElements:function(){var t=this;q.each(t.data.datasets,(function(e,n){t.getDatasetMeta(n).controller.reset()}),t)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var e,n,r=this;if(t&&"object"===typeof t||(t={duration:t,lazy:arguments[1]}),He(r),Ae._invalidate(r),!1!==Ae.notify(r,"beforeUpdate")){r.tooltip._data=r.data;var i=r.buildOrUpdateControllers();for(e=0,n=r.data.datasets.length;e<n;e++)r.getDatasetMeta(e).controller.buildOrUpdateElements();r.updateLayout(),r.options.animation&&r.options.animation.duration&&q.each(i,(function(t){t.reset()})),r.updateDatasets(),r.tooltip.initialize(),r.lastActive=[],Ae.notify(r,"afterUpdate"),r._layers.sort(Ke("z","_idx")),r._bufferedRender?r._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:r.render(t)}},updateLayout:function(){var t=this;!1!==Ae.notify(t,"beforeLayout")&&(de.update(this,this.width,this.height),t._layers=[],q.each(t.boxes,(function(e){e._configure&&e._configure(),t._layers.push.apply(t._layers,e._layers())}),t),t._layers.forEach((function(t,e){t._idx=e})),Ae.notify(t,"afterScaleUpdate"),Ae.notify(t,"afterLayout"))},updateDatasets:function(){if(!1!==Ae.notify(this,"beforeDatasetsUpdate")){for(var t=0,e=this.data.datasets.length;t<e;++t)this.updateDataset(t);Ae.notify(this,"afterDatasetsUpdate")}},updateDataset:function(t){var e=this.getDatasetMeta(t),n={meta:e,index:t};!1!==Ae.notify(this,"beforeDatasetUpdate",[n])&&(e.controller._update(),Ae.notify(this,"afterDatasetUpdate",[n]))},render:function(t){var e=this;t&&"object"===typeof t||(t={duration:t,lazy:arguments[1]});var n=e.options.animation,r=Ve(t.duration,n&&n.duration),i=t.lazy;if(!1!==Ae.notify(e,"beforeRender")){var o=function(t){Ae.notify(e,"afterRender"),q.callback(n&&n.onComplete,[t],e)};if(n&&r){var a=new X({numSteps:r/16.66,easing:t.easing||n.easing,render:function(t,e){var n=q.easing.effects[e.easing],r=e.currentStep,i=r/e.numSteps;t.draw(n(i),i,r)},onAnimationProgress:n.onProgress,onAnimationComplete:o});$.addAnimation(e,a,r,i)}else e.draw(),o(new X({numSteps:0,chart:e}));return e}},draw:function(t){var e,n,r=this;if(r.clear(),q.isNullOrUndef(t)&&(t=1),r.transition(t),!(r.width<=0||r.height<=0)&&!1!==Ae.notify(r,"beforeDraw",[t])){for(n=r._layers,e=0;e<n.length&&n[e].z<=0;++e)n[e].draw(r.chartArea);for(r.drawDatasets(t);e<n.length;++e)n[e].draw(r.chartArea);r._drawTooltip(t),Ae.notify(r,"afterDraw",[t])}},transition:function(t){for(var e=0,n=(this.data.datasets||[]).length;e<n;++e)this.isDatasetVisible(e)&&this.getDatasetMeta(e).controller.transition(t);this.tooltip.transition(t)},_getSortedDatasetMetas:function(t){var e,n,r=[];for(e=0,n=(this.data.datasets||[]).length;e<n;++e)t&&!this.isDatasetVisible(e)||r.push(this.getDatasetMeta(e));return r.sort(Ke("order","index")),r},_getSortedVisibleDatasetMetas:function(){return this._getSortedDatasetMetas(!0)},drawDatasets:function(t){var e,n;if(!1!==Ae.notify(this,"beforeDatasetsDraw",[t])){for(n=(e=this._getSortedVisibleDatasetMetas()).length-1;n>=0;--n)this.drawDataset(e[n],t);Ae.notify(this,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var n={meta:t,index:t.index,easingValue:e};!1!==Ae.notify(this,"beforeDatasetDraw",[n])&&(t.controller.draw(e),Ae.notify(this,"afterDatasetDraw",[n]))},_drawTooltip:function(t){var e=this.tooltip,n={tooltip:e,easingValue:t};!1!==Ae.notify(this,"beforeTooltipDraw",[n])&&(e.draw(),Ae.notify(this,"afterTooltipDraw",[n]))},getElementAtEvent:function(t){return re.modes.single(this,t)},getElementsAtEvent:function(t){return re.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return re.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,e,n){var r=re.modes[e];return"function"===typeof r?r(this,t,n):[]},getDatasetAtEvent:function(t){return re.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){var e=this.data.datasets[t];e._meta||(e._meta={});var n=e._meta[this.id];return n||(n=e._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e.order||0,index:t}),n},getVisibleDatasetCount:function(){for(var t=0,e=0,n=this.data.datasets.length;e<n;++e)this.isDatasetVisible(e)&&t++;return t},isDatasetVisible:function(t){var e=this.getDatasetMeta(t);return"boolean"===typeof e.hidden?!e.hidden:!this.data.datasets[t].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(t){var e=this.id,n=this.data.datasets[t],r=n._meta&&n._meta[e];r&&(r.controller.destroy(),delete n._meta[e])},destroy:function(){var t,e,n=this,r=n.canvas;for(n.stop(),t=0,e=n.data.datasets.length;t<e;++t)n.destroyDatasetMeta(t);r&&(n.unbindEvents(),q.canvas.clear(n),Oe.releaseContext(n.ctx),n.canvas=null,n.ctx=null),Ae.notify(n,"destroy"),delete Xe.instances[n.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var t=this;t.tooltip=new Be({_chart:t,_chartInstance:t,_data:t.data,_options:t.options.tooltips},t)},bindEvents:function(){var t=this,e=t._listeners={},n=function(){t.eventHandler.apply(t,arguments)};q.each(t.options.events,(function(r){Oe.addEventListener(t,r,n),e[r]=n})),t.options.responsive&&(n=function(){t.resize()},Oe.addEventListener(t,"resize",n),e.resize=n)},unbindEvents:function(){var t=this,e=t._listeners;e&&(delete t._listeners,q.each(e,(function(e,n){Oe.removeEventListener(t,n,e)})))},updateHoverStyle:function(t,e,n){var r,i,o,a=n?"set":"remove";for(i=0,o=t.length;i<o;++i)(r=t[i])&&this.getDatasetMeta(r._datasetIndex).controller[a+"HoverStyle"](r);"dataset"===e&&this.getDatasetMeta(t[0]._datasetIndex).controller["_"+a+"DatasetHoverStyle"]()},eventHandler:function(t){var e=this,n=e.tooltip;if(!1!==Ae.notify(e,"beforeEvent",[t])){e._bufferedRender=!0,e._bufferedRequest=null;var r=e.handleEvent(t);n&&(r=n._start?n.handleEvent(t):r|n.handleEvent(t)),Ae.notify(e,"afterEvent",[t]);var i=e._bufferedRequest;return i?e.render(i):r&&!e.animating&&(e.stop(),e.render({duration:e.options.hover.animationDuration,lazy:!0})),e._bufferedRender=!1,e._bufferedRequest=null,e}},handleEvent:function(t){var e,n=this,r=n.options||{},i=r.hover;return n.lastActive=n.lastActive||[],"mouseout"===t.type?n.active=[]:n.active=n.getElementsAtEventForMode(t,i.mode,i),q.callback(r.onHover||r.hover.onHover,[t.native,n.active],n),"mouseup"!==t.type&&"click"!==t.type||r.onClick&&r.onClick.call(n,t.native,n.active),n.lastActive.length&&n.updateHoverStyle(n.lastActive,i.mode,!1),n.active.length&&i.mode&&n.updateHoverStyle(n.active,i.mode,!0),e=!q.arrayEquals(n.active,n.lastActive),n.lastActive=n.active,e}}),Xe.instances={};var $e=Xe;function Ze(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function Qe(t){this.options=t||{}}Xe.Controller=Xe,Xe.types={},q.configMerge=We,q.scaleMerge=ze,q.extend(Qe.prototype,{formats:Ze,parse:Ze,format:Ze,add:Ze,diff:Ze,startOf:Ze,endOf:Ze,_create:function(t){return t}}),Qe.override=function(t){q.extend(Qe.prototype,t)};var Je={_date:Qe},tn={formatters:{values:function(t){return q.isArray(t)?t:""+t},linear:function(t,e,n){var r=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(r)>1&&t!==Math.floor(t)&&(r=t-Math.floor(t));var i=q.log10(Math.abs(r)),o="";if(0!==t)if(Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]))<1e-4){var a=q.log10(Math.abs(t)),s=Math.floor(a)-Math.floor(i);s=Math.max(Math.min(s,20),0),o=t.toExponential(s)}else{var u=-1*Math.floor(i);u=Math.max(Math.min(u,20),0),o=t.toFixed(u)}else o="0";return o},logarithmic:function(t,e,n){var r=t/Math.pow(10,Math.floor(q.log10(t)));return 0===t?"0":1===r||2===r||5===r||0===e||e===n.length-1?t.toExponential():""}}},en=q.isArray,nn=q.isNullOrUndef,rn=q.valueOrDefault,on=q.valueAtIndexOrDefault;function an(t,e,n){var r,i=t.getTicks().length,o=Math.min(e,i-1),a=t.getPixelForTick(o),s=t._startPixel,u=t._endPixel;if(!(n&&(r=1===i?Math.max(a-s,u-a):0===e?(t.getPixelForTick(1)-a)/2:(a-t.getPixelForTick(o-1))/2,(a+=o<e?r:-r)<s-1e-6||a>u+1e-6)))return a}function sn(t,e,n,r){var i,o,a,s,u,l,c,f,h,d,p,v,m,g=n.length,y=[],b=[],w=[];for(i=0;i<g;++i){if(s=n[i].label,u=n[i].major?e.major:e.minor,t.font=l=u.string,c=r[l]=r[l]||{data:{},gc:[]},f=u.lineHeight,h=d=0,nn(s)||en(s)){if(en(s))for(o=0,a=s.length;o<a;++o)p=s[o],nn(p)||en(p)||(h=q.measureText(t,c.data,c.gc,h,p),d+=f)}else h=q.measureText(t,c.data,c.gc,h,s),d=f;y.push(h),b.push(d),w.push(f/2)}function _(t){return{width:y[t]||0,height:b[t]||0,offset:w[t]||0}}return function(t,e){q.each(t,(function(t){var n,r=t.gc,i=r.length/2;if(i>e){for(n=0;n<i;++n)delete t.data[r[n]];r.splice(0,i)}}))}(r,g),v=y.indexOf(Math.max.apply(null,y)),m=b.indexOf(Math.max.apply(null,b)),{first:_(0),last:_(g-1),widest:_(v),highest:_(m)}}function un(t){return t.drawTicks?t.tickMarkLength:0}function ln(t){var e,n;return t.display?(e=q.options._parseFont(t),n=q.options.toPadding(t.padding),e.lineHeight+n.height):0}function cn(t,e){return q.extend(q.options._parseFont({fontFamily:rn(e.fontFamily,t.fontFamily),fontSize:rn(e.fontSize,t.fontSize),fontStyle:rn(e.fontStyle,t.fontStyle),lineHeight:rn(e.lineHeight,t.lineHeight)}),{color:q.options.resolve([e.fontColor,t.fontColor,R.global.defaultFontColor])})}function fn(t){var e=cn(t,t.minor);return{minor:e,major:t.major.enabled?cn(t,t.major):e}}function hn(t){var e,n,r,i=[];for(n=0,r=t.length;n<r;++n)"undefined"!==typeof(e=t[n])._index&&i.push(e);return i}function dn(t,e,n,r){var i,o,a,s,u=rn(n,0),l=Math.min(rn(r,t.length),t.length),c=0;for(e=Math.ceil(e),r&&(e=(i=r-n)/Math.floor(i/e)),s=u;s<0;)c++,s=Math.round(u+c*e);for(o=Math.max(u,0);o<l;o++)a=t[o],o===s?(a._index=o,c++,s=Math.round(u+c*e)):delete a.label}R._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:tn.formatters.values,minor:{},major:{}}});var pn=G.extend({zeroLineIndex:0,getPadding:function(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}},getTicks:function(){return this._ticks},_getLabels:function(){var t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]},mergeTicksOptions:function(){},beforeUpdate:function(){q.callback(this.options.beforeUpdate,[this])},update:function(t,e,n){var r,i,o,a,s,u=this,l=u.options.ticks,c=l.sampleSize;if(u.beforeUpdate(),u.maxWidth=t,u.maxHeight=e,u.margins=q.extend({left:0,right:0,top:0,bottom:0},n),u._ticks=null,u.ticks=null,u._labelSizes=null,u._maxLabelLines=0,u.longestLabelWidth=0,u.longestTextCache=u.longestTextCache||{},u._gridLineItems=null,u._labelItems=null,u.beforeSetDimensions(),u.setDimensions(),u.afterSetDimensions(),u.beforeDataLimits(),u.determineDataLimits(),u.afterDataLimits(),u.beforeBuildTicks(),a=u.buildTicks()||[],(!(a=u.afterBuildTicks(a)||a)||!a.length)&&u.ticks)for(a=[],r=0,i=u.ticks.length;r<i;++r)a.push({value:u.ticks[r],major:!1});return u._ticks=a,s=c<a.length,o=u._convertTicksToLabels(s?function(t,e){for(var n=[],r=t.length/e,i=0,o=t.length;i<o;i+=r)n.push(t[Math.floor(i)]);return n}(a,c):a),u._configure(),u.beforeCalculateTickRotation(),u.calculateTickRotation(),u.afterCalculateTickRotation(),u.beforeFit(),u.fit(),u.afterFit(),u._ticksToDraw=l.display&&(l.autoSkip||"auto"===l.source)?u._autoSkip(a):a,s&&(o=u._convertTicksToLabels(u._ticksToDraw)),u.ticks=o,u.afterUpdate(),u.minSize},_configure:function(){var t,e,n=this,r=n.options.ticks.reverse;n.isHorizontal()?(t=n.left,e=n.right):(t=n.top,e=n.bottom,r=!r),n._startPixel=t,n._endPixel=e,n._reversePixels=r,n._length=e-t},afterUpdate:function(){q.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){q.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0},afterSetDimensions:function(){q.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){q.callback(this.options.beforeDataLimits,[this])},determineDataLimits:q.noop,afterDataLimits:function(){q.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){q.callback(this.options.beforeBuildTicks,[this])},buildTicks:q.noop,afterBuildTicks:function(t){var e=this;return en(t)&&t.length?q.callback(e.options.afterBuildTicks,[e,t]):(e.ticks=q.callback(e.options.afterBuildTicks,[e,e.ticks])||e.ticks,t)},beforeTickToLabelConversion:function(){q.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var t=this.options.ticks;this.ticks=this.ticks.map(t.userCallback||t.callback,this)},afterTickToLabelConversion:function(){q.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){q.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var t,e,n,r,i,o,a,s=this,u=s.options,l=u.ticks,c=s.getTicks().length,f=l.minRotation||0,h=l.maxRotation,d=f;!s._isVisible()||!l.display||f>=h||c<=1||!s.isHorizontal()?s.labelRotation=f:(e=(t=s._getLabelSizes()).widest.width,n=t.highest.height-t.highest.offset,r=Math.min(s.maxWidth,s.chart.width-e),e+6>(i=u.offset?s.maxWidth/c:r/(c-1))&&(i=r/(c-(u.offset?.5:1)),o=s.maxHeight-un(u.gridLines)-l.padding-ln(u.scaleLabel),a=Math.sqrt(e*e+n*n),d=q.toDegrees(Math.min(Math.asin(Math.min((t.highest.height+6)/i,1)),Math.asin(Math.min(o/a,1))-Math.asin(n/a))),d=Math.max(f,Math.min(h,d))),s.labelRotation=d)},afterCalculateTickRotation:function(){q.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){q.callback(this.options.beforeFit,[this])},fit:function(){var t=this,e=t.minSize={width:0,height:0},n=t.chart,r=t.options,i=r.ticks,o=r.scaleLabel,a=r.gridLines,s=t._isVisible(),u="bottom"===r.position,l=t.isHorizontal();if(l?e.width=t.maxWidth:s&&(e.width=un(a)+ln(o)),l?s&&(e.height=un(a)+ln(o)):e.height=t.maxHeight,i.display&&s){var c=fn(i),f=t._getLabelSizes(),h=f.first,d=f.last,p=f.widest,v=f.highest,m=.4*c.minor.lineHeight,g=i.padding;if(l){var y=0!==t.labelRotation,b=q.toRadians(t.labelRotation),w=Math.cos(b),_=Math.sin(b),x=_*p.width+w*(v.height-(y?v.offset:0))+(y?0:m);e.height=Math.min(t.maxHeight,e.height+x+g);var E,k,T=t.getPixelForTick(0)-t.left,S=t.right-t.getPixelForTick(t.getTicks().length-1);y?(E=u?w*h.width+_*h.offset:_*(h.height-h.offset),k=u?_*(d.height-d.offset):w*d.width+_*d.offset):(E=h.width/2,k=d.width/2),t.paddingLeft=Math.max((E-T)*t.width/(t.width-T),0)+3,t.paddingRight=Math.max((k-S)*t.width/(t.width-S),0)+3}else{var O=i.mirror?0:p.width+g+m;e.width=Math.min(t.maxWidth,e.width+O),t.paddingTop=h.height/2,t.paddingBottom=d.height/2}}t.handleMargins(),l?(t.width=t._length=n.width-t.margins.left-t.margins.right,t.height=e.height):(t.width=e.width,t.height=t._length=n.height-t.margins.top-t.margins.bottom)},handleMargins:function(){var t=this;t.margins&&(t.margins.left=Math.max(t.paddingLeft,t.margins.left),t.margins.top=Math.max(t.paddingTop,t.margins.top),t.margins.right=Math.max(t.paddingRight,t.margins.right),t.margins.bottom=Math.max(t.paddingBottom,t.margins.bottom))},afterFit:function(){q.callback(this.options.afterFit,[this])},isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(nn(t))return NaN;if(("number"===typeof t||t instanceof Number)&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)return this.getRightValue(t.y);return t},_convertTicksToLabels:function(t){var e,n,r,i=this;for(i.ticks=t.map((function(t){return t.value})),i.beforeTickToLabelConversion(),e=i.convertTicksToLabels(t)||i.ticks,i.afterTickToLabelConversion(),n=0,r=t.length;n<r;++n)t[n].label=e[n];return e},_getLabelSizes:function(){var t=this,e=t._labelSizes;return e||(t._labelSizes=e=sn(t.ctx,fn(t.options.ticks),t.getTicks(),t.longestTextCache),t.longestLabelWidth=e.widest.width),e},_parseValue:function(t){var e,n,r,i;return en(t)?(e=+this.getRightValue(t[0]),n=+this.getRightValue(t[1]),r=Math.min(e,n),i=Math.max(e,n)):(e=void 0,n=t=+this.getRightValue(t),r=t,i=t),{min:r,max:i,start:e,end:n}},_getScaleLabel:function(t){var e=this._parseValue(t);return void 0!==e.start?"["+e.start+", "+e.end+"]":+this.getRightValue(t)},getLabelForIndex:q.noop,getPixelForValue:q.noop,getValueForPixel:q.noop,getPixelForTick:function(t){var e=this.options.offset,n=this._ticks.length,r=1/Math.max(n-(e?0:1),1);return t<0||t>n-1?null:this.getPixelForDecimal(t*r+(e?r/2:0))},getPixelForDecimal:function(t){return this._reversePixels&&(t=1-t),this._startPixel+t*this._length},getDecimalForPixel:function(t){var e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this.min,e=this.max;return this.beginAtZero?0:t<0&&e<0?e:t>0&&e>0?t:0},_autoSkip:function(t){var e,n,r,i,o=this.options.ticks,a=this._length,s=o.maxTicksLimit||a/this._tickSize()+1,u=o.major.enabled?function(t){var e,n,r=[];for(e=0,n=t.length;e<n;e++)t[e].major&&r.push(e);return r}(t):[],l=u.length,c=u[0],f=u[l-1];if(l>s)return function(t,e,n){var r,i,o=0,a=e[0];for(n=Math.ceil(n),r=0;r<t.length;r++)i=t[r],r===a?(i._index=r,a=e[++o*n]):delete i.label}(t,u,l/s),hn(t);if(r=function(t,e,n,r){var i,o,a,s,u=function(t){var e,n,r=t.length;if(r<2)return!1;for(n=t[0],e=1;e<r;++e)if(t[e]-t[e-1]!==n)return!1;return n}(t),l=(e.length-1)/r;if(!u)return Math.max(l,1);for(a=0,s=(i=q.math._factorize(u)).length-1;a<s;a++)if((o=i[a])>l)return o;return Math.max(l,1)}(u,t,0,s),l>0){for(e=0,n=l-1;e<n;e++)dn(t,r,u[e],u[e+1]);return i=l>1?(f-c)/(l-1):null,dn(t,r,q.isNullOrUndef(i)?0:c-i,c),dn(t,r,f,q.isNullOrUndef(i)?t.length:f+i),hn(t)}return dn(t,r),hn(t)},_tickSize:function(){var t=this.options.ticks,e=q.toRadians(this.labelRotation),n=Math.abs(Math.cos(e)),r=Math.abs(Math.sin(e)),i=this._getLabelSizes(),o=t.autoSkipPadding||0,a=i?i.widest.width+o:0,s=i?i.highest.height+o:0;return this.isHorizontal()?s*n>a*r?a/n:s/r:s*r<a*n?s/n:a/r},_isVisible:function(){var t,e,n,r=this.chart,i=this.options.display;if("auto"!==i)return!!i;for(t=0,e=r.data.datasets.length;t<e;++t)if(r.isDatasetVisible(t)&&((n=r.getDatasetMeta(t)).xAxisID===this.id||n.yAxisID===this.id))return!0;return!1},_computeGridLineItems:function(t){var e,n,r,i,o,a,s,u,l,c,f,h,d,p,v,m,g,y=this,b=y.chart,w=y.options,_=w.gridLines,x=w.position,E=_.offsetGridLines,k=y.isHorizontal(),T=y._ticksToDraw,S=T.length+(E?1:0),O=un(_),A=[],C=_.drawBorder?on(_.lineWidth,0,0):0,N=C/2,I=q._alignPixel,P=function(t){return I(b,t,C)};for("top"===x?(e=P(y.bottom),s=y.bottom-O,l=e-N,f=P(t.top)+N,d=t.bottom):"bottom"===x?(e=P(y.top),f=t.top,d=P(t.bottom)-N,s=e+N,l=y.top+O):"left"===x?(e=P(y.right),a=y.right-O,u=e-N,c=P(t.left)+N,h=t.right):(e=P(y.left),c=t.left,h=P(t.right)-N,a=e+N,u=y.left+O),n=0;n<S;++n)r=T[n]||{},nn(r.label)&&n<T.length||(n===y.zeroLineIndex&&w.offset===E?(p=_.zeroLineWidth,v=_.zeroLineColor,m=_.zeroLineBorderDash||[],g=_.zeroLineBorderDashOffset||0):(p=on(_.lineWidth,n,1),v=on(_.color,n,"rgba(0,0,0,0.1)"),m=_.borderDash||[],g=_.borderDashOffset||0),void 0!==(i=an(y,r._index||n,E))&&(o=I(b,i,p),k?a=u=c=h=o:s=l=f=d=o,A.push({tx1:a,ty1:s,tx2:u,ty2:l,x1:c,y1:f,x2:h,y2:d,width:p,color:v,borderDash:m,borderDashOffset:g})));return A.ticksLength=S,A.borderValue=e,A},_computeLabelItems:function(){var t,e,n,r,i,o,a,s,u,l,c,f,h=this,d=h.options,p=d.ticks,v=d.position,m=p.mirror,g=h.isHorizontal(),y=h._ticksToDraw,b=fn(p),w=p.padding,_=un(d.gridLines),x=-q.toRadians(h.labelRotation),E=[];for("top"===v?(o=h.bottom-_-w,a=x?"left":"center"):"bottom"===v?(o=h.top+_+w,a=x?"right":"center"):"left"===v?(i=h.right-(m?0:_)-w,a=m?"left":"right"):(i=h.left+(m?0:_)+w,a=m?"right":"left"),t=0,e=y.length;t<e;++t)r=(n=y[t]).label,nn(r)||(s=h.getPixelForTick(n._index||t)+p.labelOffset,l=(u=n.major?b.major:b.minor).lineHeight,c=en(r)?r.length:1,g?(i=s,f="top"===v?((x?1:.5)-c)*l:(x?0:.5)*l):(o=s,f=(1-c)*l/2),E.push({x:i,y:o,rotation:x,label:r,font:u,textOffset:f,textAlign:a}));return E},_drawGrid:function(t){var e=this,n=e.options.gridLines;if(n.display){var r,i,o,a,s,u=e.ctx,l=e.chart,c=q._alignPixel,f=n.drawBorder?on(n.lineWidth,0,0):0,h=e._gridLineItems||(e._gridLineItems=e._computeGridLineItems(t));for(o=0,a=h.length;o<a;++o)r=(s=h[o]).width,i=s.color,r&&i&&(u.save(),u.lineWidth=r,u.strokeStyle=i,u.setLineDash&&(u.setLineDash(s.borderDash),u.lineDashOffset=s.borderDashOffset),u.beginPath(),n.drawTicks&&(u.moveTo(s.tx1,s.ty1),u.lineTo(s.tx2,s.ty2)),n.drawOnChartArea&&(u.moveTo(s.x1,s.y1),u.lineTo(s.x2,s.y2)),u.stroke(),u.restore());if(f){var d,p,v,m,g=f,y=on(n.lineWidth,h.ticksLength-1,1),b=h.borderValue;e.isHorizontal()?(d=c(l,e.left,g)-g/2,p=c(l,e.right,y)+y/2,v=m=b):(v=c(l,e.top,g)-g/2,m=c(l,e.bottom,y)+y/2,d=p=b),u.lineWidth=f,u.strokeStyle=on(n.color,0),u.beginPath(),u.moveTo(d,v),u.lineTo(p,m),u.stroke()}}},_drawLabels:function(){var t=this;if(t.options.ticks.display){var e,n,r,i,o,a,s,u,l=t.ctx,c=t._labelItems||(t._labelItems=t._computeLabelItems());for(e=0,r=c.length;e<r;++e){if(a=(o=c[e]).font,l.save(),l.translate(o.x,o.y),l.rotate(o.rotation),l.font=a.string,l.fillStyle=a.color,l.textBaseline="middle",l.textAlign=o.textAlign,s=o.label,u=o.textOffset,en(s))for(n=0,i=s.length;n<i;++n)l.fillText(""+s[n],0,u),u+=a.lineHeight;else l.fillText(s,0,u);l.restore()}}},_drawTitle:function(){var t=this,e=t.ctx,n=t.options,r=n.scaleLabel;if(r.display){var i,o,a=rn(r.fontColor,R.global.defaultFontColor),s=q.options._parseFont(r),u=q.options.toPadding(r.padding),l=s.lineHeight/2,c=n.position,f=0;if(t.isHorizontal())i=t.left+t.width/2,o="bottom"===c?t.bottom-l-u.bottom:t.top+l+u.top;else{var h="left"===c;i=h?t.left+l+u.top:t.right-l-u.top,o=t.top+t.height/2,f=h?-.5*Math.PI:.5*Math.PI}e.save(),e.translate(i,o),e.rotate(f),e.textAlign="center",e.textBaseline="middle",e.fillStyle=a,e.font=s.string,e.fillText(r.labelString,0,0),e.restore()}},draw:function(t){this._isVisible()&&(this._drawGrid(t),this._drawTitle(),this._drawLabels())},_layers:function(){var t=this,e=t.options,n=e.ticks&&e.ticks.z||0,r=e.gridLines&&e.gridLines.z||0;return t._isVisible()&&n!==r&&t.draw===t._draw?[{z:r,draw:function(){t._drawGrid.apply(t,arguments),t._drawTitle.apply(t,arguments)}},{z:n,draw:function(){t._drawLabels.apply(t,arguments)}}]:[{z:n,draw:function(){t.draw.apply(t,arguments)}}]},_getMatchingVisibleMetas:function(t){var e=this,n=e.isHorizontal();return e.chart._getSortedVisibleDatasetMetas().filter((function(r){return(!t||r.type===t)&&(n?r.xAxisID===e.id:r.yAxisID===e.id)}))}});pn.prototype._draw=pn.prototype.draw;var vn=pn,mn=q.isNullOrUndef,gn=vn.extend({determineDataLimits:function(){var t,e=this,n=e._getLabels(),r=e.options.ticks,i=r.min,o=r.max,a=0,s=n.length-1;void 0!==i&&(t=n.indexOf(i))>=0&&(a=t),void 0!==o&&(t=n.indexOf(o))>=0&&(s=t),e.minIndex=a,e.maxIndex=s,e.min=n[a],e.max=n[s]},buildTicks:function(){var t=this._getLabels(),e=this.minIndex,n=this.maxIndex;this.ticks=0===e&&n===t.length-1?t:t.slice(e,n+1)},getLabelForIndex:function(t,e){var n=this.chart;return n.getDatasetMeta(e).controller._getValueScaleId()===this.id?this.getRightValue(n.data.datasets[e].data[t]):this._getLabels()[t]},_configure:function(){var t=this,e=t.options.offset,n=t.ticks;vn.prototype._configure.call(t),t.isHorizontal()||(t._reversePixels=!t._reversePixels),n&&(t._startValue=t.minIndex-(e?.5:0),t._valueRange=Math.max(n.length-(e?0:1),1))},getPixelForValue:function(t,e,n){var r,i,o,a=this;return mn(e)||mn(n)||(t=a.chart.data.datasets[n].data[e]),mn(t)||(r=a.isHorizontal()?t.x:t.y),(void 0!==r||void 0!==t&&isNaN(e))&&(i=a._getLabels(),t=q.valueOrDefault(r,t),e=-1!==(o=i.indexOf(t))?o:e,isNaN(e)&&(e=t)),a.getPixelForDecimal((e-a._startValue)/a._valueRange)},getPixelForTick:function(t){var e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t],t+this.minIndex)},getValueForPixel:function(t){var e=Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange);return Math.min(Math.max(e,0),this.ticks.length-1)},getBasePixel:function(){return this.bottom}}),yn={position:"bottom"};gn._defaults=yn;var bn=q.noop,wn=q.isNullOrUndef,_n=vn.extend({getRightValue:function(t){return"string"===typeof t?+t:vn.prototype.getRightValue.call(this,t)},handleTickRangeOptions:function(){var t=this,e=t.options.ticks;if(e.beginAtZero){var n=q.sign(t.min),r=q.sign(t.max);n<0&&r<0?t.max=0:n>0&&r>0&&(t.min=0)}var i=void 0!==e.min||void 0!==e.suggestedMin,o=void 0!==e.max||void 0!==e.suggestedMax;void 0!==e.min?t.min=e.min:void 0!==e.suggestedMin&&(null===t.min?t.min=e.suggestedMin:t.min=Math.min(t.min,e.suggestedMin)),void 0!==e.max?t.max=e.max:void 0!==e.suggestedMax&&(null===t.max?t.max=e.suggestedMax:t.max=Math.max(t.max,e.suggestedMax)),i!==o&&t.min>=t.max&&(i?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,e.beginAtZero||t.min--)},getTickLimit:function(){var t,e=this.options.ticks,n=e.stepSize,r=e.maxTicksLimit;return n?t=Math.ceil(this.max/n)-Math.floor(this.min/n)+1:(t=this._computeTickLimit(),r=r||11),r&&(t=Math.min(r,t)),t},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:bn,buildTicks:function(){var t=this,e=t.options.ticks,n=t.getTickLimit(),r={maxTicks:n=Math.max(2,n),min:e.min,max:e.max,precision:e.precision,stepSize:q.valueOrDefault(e.fixedStepSize,e.stepSize)},i=t.ticks=function(t,e){var n,r,i,o,a=[],s=t.stepSize,u=s||1,l=t.maxTicks-1,c=t.min,f=t.max,h=t.precision,d=e.min,p=e.max,v=q.niceNum((p-d)/l/u)*u;if(v<1e-14&&wn(c)&&wn(f))return[d,p];(o=Math.ceil(p/v)-Math.floor(d/v))>l&&(v=q.niceNum(o*v/l/u)*u),s||wn(h)?n=Math.pow(10,q._decimalPlaces(v)):(n=Math.pow(10,h),v=Math.ceil(v*n)/n),r=Math.floor(d/v)*v,i=Math.ceil(p/v)*v,s&&(!wn(c)&&q.almostWhole(c/v,v/1e3)&&(r=c),!wn(f)&&q.almostWhole(f/v,v/1e3)&&(i=f)),o=(i-r)/v,o=q.almostEquals(o,Math.round(o),v/1e3)?Math.round(o):Math.ceil(o),r=Math.round(r*n)/n,i=Math.round(i*n)/n,a.push(wn(c)?r:c);for(var m=1;m<o;++m)a.push(Math.round((r+m*v)*n)/n);return a.push(wn(f)?i:f),a}(r,t);t.handleDirectionalChanges(),t.max=q.max(i),t.min=q.min(i),e.reverse?(i.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var t=this;t.ticksAsNumbers=t.ticks.slice(),t.zeroLineIndex=t.ticks.indexOf(0),vn.prototype.convertTicksToLabels.call(t)},_configure:function(){var t,e=this,n=e.getTicks(),r=e.min,i=e.max;vn.prototype._configure.call(e),e.options.offset&&n.length&&(r-=t=(i-r)/Math.max(n.length-1,1)/2,i+=t),e._startValue=r,e._endValue=i,e._valueRange=i-r}}),xn={position:"left",ticks:{callback:tn.formatters.linear}};function En(t,e,n,r){var i,o,a=t.options,s=function(t,e,n){var r=[n.type,void 0===e&&void 0===n.stack?n.index:"",n.stack].join(".");return void 0===t[r]&&(t[r]={pos:[],neg:[]}),t[r]}(e,a.stacked,n),u=s.pos,l=s.neg,c=r.length;for(i=0;i<c;++i)o=t._parseValue(r[i]),isNaN(o.min)||isNaN(o.max)||n.data[i].hidden||(u[i]=u[i]||0,l[i]=l[i]||0,a.relativePoints?u[i]=100:o.min<0||o.max<0?l[i]+=o.min:u[i]+=o.max)}function kn(t,e,n){var r,i,o=n.length;for(r=0;r<o;++r)i=t._parseValue(n[r]),isNaN(i.min)||isNaN(i.max)||e.data[r].hidden||(t.min=Math.min(t.min,i.min),t.max=Math.max(t.max,i.max))}var Tn=_n.extend({determineDataLimits:function(){var t,e,n,r,i=this,o=i.options,a=i.chart.data.datasets,s=i._getMatchingVisibleMetas(),u=o.stacked,l={},c=s.length;if(i.min=Number.POSITIVE_INFINITY,i.max=Number.NEGATIVE_INFINITY,void 0===u)for(t=0;!u&&t<c;++t)u=void 0!==(e=s[t]).stack;for(t=0;t<c;++t)n=a[(e=s[t]).index].data,u?En(i,l,e,n):kn(i,e,n);q.each(l,(function(t){r=t.pos.concat(t.neg),i.min=Math.min(i.min,q.min(r)),i.max=Math.max(i.max,q.max(r))})),i.min=q.isFinite(i.min)&&!isNaN(i.min)?i.min:0,i.max=q.isFinite(i.max)&&!isNaN(i.max)?i.max:1,i.handleTickRangeOptions()},_computeTickLimit:function(){var t;return this.isHorizontal()?Math.ceil(this.width/40):(t=q.options._parseFont(this.options.ticks),Math.ceil(this.height/t.lineHeight))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return this._getScaleLabel(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){return this.getPixelForDecimal((+this.getRightValue(t)-this._startValue)/this._valueRange)},getValueForPixel:function(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange},getPixelForTick:function(t){var e=this.ticksAsNumbers;return t<0||t>e.length-1?null:this.getPixelForValue(e[t])}}),Sn=xn;Tn._defaults=Sn;var On=q.valueOrDefault,An=q.math.log10,Cn={position:"left",ticks:{callback:tn.formatters.logarithmic}};function Nn(t,e){return q.isFinite(t)&&t>=0?t:e}var In=vn.extend({determineDataLimits:function(){var t,e,n,r,i,o,a=this,s=a.options,u=a.chart,l=u.data.datasets,c=a.isHorizontal();function f(t){return c?t.xAxisID===a.id:t.yAxisID===a.id}a.min=Number.POSITIVE_INFINITY,a.max=Number.NEGATIVE_INFINITY,a.minNotZero=Number.POSITIVE_INFINITY;var h=s.stacked;if(void 0===h)for(t=0;t<l.length;t++)if(e=u.getDatasetMeta(t),u.isDatasetVisible(t)&&f(e)&&void 0!==e.stack){h=!0;break}if(s.stacked||h){var d={};for(t=0;t<l.length;t++){var p=[(e=u.getDatasetMeta(t)).type,void 0===s.stacked&&void 0===e.stack?t:"",e.stack].join(".");if(u.isDatasetVisible(t)&&f(e))for(void 0===d[p]&&(d[p]=[]),i=0,o=(r=l[t].data).length;i<o;i++){var v=d[p];n=a._parseValue(r[i]),isNaN(n.min)||isNaN(n.max)||e.data[i].hidden||n.min<0||n.max<0||(v[i]=v[i]||0,v[i]+=n.max)}}q.each(d,(function(t){if(t.length>0){var e=q.min(t),n=q.max(t);a.min=Math.min(a.min,e),a.max=Math.max(a.max,n)}}))}else for(t=0;t<l.length;t++)if(e=u.getDatasetMeta(t),u.isDatasetVisible(t)&&f(e))for(i=0,o=(r=l[t].data).length;i<o;i++)n=a._parseValue(r[i]),isNaN(n.min)||isNaN(n.max)||e.data[i].hidden||n.min<0||n.max<0||(a.min=Math.min(n.min,a.min),a.max=Math.max(n.max,a.max),0!==n.min&&(a.minNotZero=Math.min(n.min,a.minNotZero)));a.min=q.isFinite(a.min)?a.min:null,a.max=q.isFinite(a.max)?a.max:null,a.minNotZero=q.isFinite(a.minNotZero)?a.minNotZero:null,this.handleTickRangeOptions()},handleTickRangeOptions:function(){var t=this,e=t.options.ticks;t.min=Nn(e.min,t.min),t.max=Nn(e.max,t.max),t.min===t.max&&(0!==t.min&&null!==t.min?(t.min=Math.pow(10,Math.floor(An(t.min))-1),t.max=Math.pow(10,Math.floor(An(t.max))+1)):(t.min=1,t.max=10)),null===t.min&&(t.min=Math.pow(10,Math.floor(An(t.max))-1)),null===t.max&&(t.max=0!==t.min?Math.pow(10,Math.floor(An(t.min))+1):10),null===t.minNotZero&&(t.min>0?t.minNotZero=t.min:t.max<1?t.minNotZero=Math.pow(10,Math.floor(An(t.max))):t.minNotZero=1)},buildTicks:function(){var t=this,e=t.options.ticks,n=!t.isHorizontal(),r={min:Nn(e.min),max:Nn(e.max)},i=t.ticks=function(t,e){var n,r,i=[],o=On(t.min,Math.pow(10,Math.floor(An(e.min)))),a=Math.floor(An(e.max)),s=Math.ceil(e.max/Math.pow(10,a));0===o?(n=Math.floor(An(e.minNotZero)),r=Math.floor(e.minNotZero/Math.pow(10,n)),i.push(o),o=r*Math.pow(10,n)):(n=Math.floor(An(o)),r=Math.floor(o/Math.pow(10,n)));var u=n<0?Math.pow(10,Math.abs(n)):1;do{i.push(o),10===++r&&(r=1,u=++n>=0?1:u),o=Math.round(r*Math.pow(10,n)*u)/u}while(n<a||n===a&&r<s);var l=On(t.max,o);return i.push(l),i}(r,t);t.max=q.max(i),t.min=q.min(i),e.reverse?(n=!n,t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max),n&&i.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),vn.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(t,e){return this._getScaleLabel(this.chart.data.datasets[e].data[t])},getPixelForTick:function(t){var e=this.tickValues;return t<0||t>e.length-1?null:this.getPixelForValue(e[t])},_getFirstTickValue:function(t){var e=Math.floor(An(t));return Math.floor(t/Math.pow(10,e))*Math.pow(10,e)},_configure:function(){var t=this,e=t.min,n=0;vn.prototype._configure.call(t),0===e&&(e=t._getFirstTickValue(t.minNotZero),n=On(t.options.ticks.fontSize,R.global.defaultFontSize)/t._length),t._startValue=An(e),t._valueOffset=n,t._valueRange=(An(t.max)-An(e))/(1-n)},getPixelForValue:function(t){var e=this,n=0;return(t=+e.getRightValue(t))>e.min&&t>0&&(n=(An(t)-e._startValue)/e._valueRange+e._valueOffset),e.getPixelForDecimal(n)},getValueForPixel:function(t){var e=this,n=e.getDecimalForPixel(t);return 0===n&&0===e.min?0:Math.pow(10,e._startValue+(n-e._valueOffset)*e._valueRange)}}),Pn=Cn;In._defaults=Pn;var Mn=q.valueOrDefault,Dn=q.valueAtIndexOrDefault,Rn=q.options.resolve,Ln={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:tn.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(t){return t}}};function jn(t){var e=t.ticks;return e.display&&t.display?Mn(e.fontSize,R.global.defaultFontSize)+2*e.backdropPaddingY:0}function Fn(t,e,n,r,i){return t===r||t===i?{start:e-n/2,end:e+n/2}:t<r||t>i?{start:e-n,end:e}:{start:e,end:e+n}}function Un(t){return 0===t||180===t?"center":t<180?"left":"right"}function qn(t,e,n,r){var i,o,a=n.y+r/2;if(q.isArray(e))for(i=0,o=e.length;i<o;++i)t.fillText(e[i],n.x,a),a+=r;else t.fillText(e,n.x,a)}function Bn(t,e,n){90===t||270===t?n.y-=e.h/2:(t>270||t<90)&&(n.y-=e.h)}function Vn(t){return q.isNumber(t)?t:0}var zn=_n.extend({setDimensions:function(){var t=this;t.width=t.maxWidth,t.height=t.maxHeight,t.paddingTop=jn(t.options)/2,t.xCenter=Math.floor(t.width/2),t.yCenter=Math.floor((t.height-t.paddingTop)/2),t.drawingArea=Math.min(t.height-t.paddingTop,t.width)/2},determineDataLimits:function(){var t=this,e=t.chart,n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;q.each(e.data.datasets,(function(i,o){if(e.isDatasetVisible(o)){var a=e.getDatasetMeta(o);q.each(i.data,(function(e,i){var o=+t.getRightValue(e);isNaN(o)||a.data[i].hidden||(n=Math.min(o,n),r=Math.max(o,r))}))}})),t.min=n===Number.POSITIVE_INFINITY?0:n,t.max=r===Number.NEGATIVE_INFINITY?0:r,t.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/jn(this.options))},convertTicksToLabels:function(){var t=this;_n.prototype.convertTicksToLabels.call(t),t.pointLabels=t.chart.data.labels.map((function(){var e=q.callback(t.options.pointLabels.callback,arguments,t);return e||0===e?e:""}))},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t=this.options;t.display&&t.pointLabels.display?function(t){var e,n,r,i=q.options._parseFont(t.options.pointLabels),o={l:0,r:t.width,t:0,b:t.height-t.paddingTop},a={};t.ctx.font=i.string,t._pointLabelSizes=[];var s,u,l,c=t.chart.data.labels.length;for(e=0;e<c;e++){r=t.getPointPosition(e,t.drawingArea+5),s=t.ctx,u=i.lineHeight,l=t.pointLabels[e],n=q.isArray(l)?{w:q.longestText(s,s.font,l),h:l.length*u}:{w:s.measureText(l).width,h:u},t._pointLabelSizes[e]=n;var f=t.getIndexAngle(e),h=q.toDegrees(f)%360,d=Fn(h,r.x,n.w,0,180),p=Fn(h,r.y,n.h,90,270);d.start<o.l&&(o.l=d.start,a.l=f),d.end>o.r&&(o.r=d.end,a.r=f),p.start<o.t&&(o.t=p.start,a.t=f),p.end>o.b&&(o.b=p.end,a.b=f)}t.setReductions(t.drawingArea,o,a)}(this):this.setCenterPoint(0,0,0,0)},setReductions:function(t,e,n){var r=this,i=e.l/Math.sin(n.l),o=Math.max(e.r-r.width,0)/Math.sin(n.r),a=-e.t/Math.cos(n.t),s=-Math.max(e.b-(r.height-r.paddingTop),0)/Math.cos(n.b);i=Vn(i),o=Vn(o),a=Vn(a),s=Vn(s),r.drawingArea=Math.min(Math.floor(t-(i+o)/2),Math.floor(t-(a+s)/2)),r.setCenterPoint(i,o,a,s)},setCenterPoint:function(t,e,n,r){var i=this,o=i.width-e-i.drawingArea,a=t+i.drawingArea,s=n+i.drawingArea,u=i.height-i.paddingTop-r-i.drawingArea;i.xCenter=Math.floor((a+o)/2+i.left),i.yCenter=Math.floor((s+u)/2+i.top+i.paddingTop)},getIndexAngle:function(t){var e=this.chart,n=(t*(360/e.data.labels.length)+((e.options||{}).startAngle||0))%360;return(n<0?n+360:n)*Math.PI*2/360},getDistanceFromCenterForValue:function(t){var e=this;if(q.isNullOrUndef(t))return NaN;var n=e.drawingArea/(e.max-e.min);return e.options.ticks.reverse?(e.max-t)*n:(t-e.min)*n},getPointPosition:function(t,e){var n=this.getIndexAngle(t)-Math.PI/2;return{x:Math.cos(n)*e+this.xCenter,y:Math.sin(n)*e+this.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(t){var e=this.min,n=this.max;return this.getPointPositionForValue(t||0,this.beginAtZero?0:e<0&&n<0?n:e>0&&n>0?e:0)},_drawGrid:function(){var t,e,n,r=this,i=r.ctx,o=r.options,a=o.gridLines,s=o.angleLines,u=Mn(s.lineWidth,a.lineWidth),l=Mn(s.color,a.color);if(o.pointLabels.display&&function(t){var e=t.ctx,n=t.options,r=n.pointLabels,i=jn(n),o=t.getDistanceFromCenterForValue(n.ticks.reverse?t.min:t.max),a=q.options._parseFont(r);e.save(),e.font=a.string,e.textBaseline="middle";for(var s=t.chart.data.labels.length-1;s>=0;s--){var u=0===s?i/2:0,l=t.getPointPosition(s,o+u+5),c=Dn(r.fontColor,s,R.global.defaultFontColor);e.fillStyle=c;var f=t.getIndexAngle(s),h=q.toDegrees(f);e.textAlign=Un(h),Bn(h,t._pointLabelSizes[s],l),qn(e,t.pointLabels[s],l,a.lineHeight)}e.restore()}(r),a.display&&q.each(r.ticks,(function(t,n){0!==n&&(e=r.getDistanceFromCenterForValue(r.ticksAsNumbers[n]),function(t,e,n,r){var i,o=t.ctx,a=e.circular,s=t.chart.data.labels.length,u=Dn(e.color,r-1),l=Dn(e.lineWidth,r-1);if((a||s)&&u&&l){if(o.save(),o.strokeStyle=u,o.lineWidth=l,o.setLineDash&&(o.setLineDash(e.borderDash||[]),o.lineDashOffset=e.borderDashOffset||0),o.beginPath(),a)o.arc(t.xCenter,t.yCenter,n,0,2*Math.PI);else{i=t.getPointPosition(0,n),o.moveTo(i.x,i.y);for(var c=1;c<s;c++)i=t.getPointPosition(c,n),o.lineTo(i.x,i.y)}o.closePath(),o.stroke(),o.restore()}}(r,a,e,n))})),s.display&&u&&l){for(i.save(),i.lineWidth=u,i.strokeStyle=l,i.setLineDash&&(i.setLineDash(Rn([s.borderDash,a.borderDash,[]])),i.lineDashOffset=Rn([s.borderDashOffset,a.borderDashOffset,0])),t=r.chart.data.labels.length-1;t>=0;t--)e=r.getDistanceFromCenterForValue(o.ticks.reverse?r.min:r.max),n=r.getPointPosition(t,e),i.beginPath(),i.moveTo(r.xCenter,r.yCenter),i.lineTo(n.x,n.y),i.stroke();i.restore()}},_drawLabels:function(){var t=this,e=t.ctx,n=t.options.ticks;if(n.display){var r,i,o=t.getIndexAngle(0),a=q.options._parseFont(n),s=Mn(n.fontColor,R.global.defaultFontColor);e.save(),e.font=a.string,e.translate(t.xCenter,t.yCenter),e.rotate(o),e.textAlign="center",e.textBaseline="middle",q.each(t.ticks,(function(o,u){(0!==u||n.reverse)&&(r=t.getDistanceFromCenterForValue(t.ticksAsNumbers[u]),n.showLabelBackdrop&&(i=e.measureText(o).width,e.fillStyle=n.backdropColor,e.fillRect(-i/2-n.backdropPaddingX,-r-a.size/2-n.backdropPaddingY,i+2*n.backdropPaddingX,a.size+2*n.backdropPaddingY)),e.fillStyle=s,e.fillText(o,0,-r))})),e.restore()}},_drawTitle:q.noop}),Wn=Ln;zn._defaults=Wn;var Hn=q._deprecated,Yn=q.options.resolve,Gn=q.valueOrDefault,Kn=Number.MIN_SAFE_INTEGER||-9007199254740991,Xn=Number.MAX_SAFE_INTEGER||9007199254740991,$n={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Zn=Object.keys($n);function Qn(t,e){return t-e}function Jn(t){return q.valueOrDefault(t.time.min,t.ticks.min)}function tr(t){return q.valueOrDefault(t.time.max,t.ticks.max)}function er(t,e,n,r){var i=function(t,e,n){for(var r,i,o,a=0,s=t.length-1;a>=0&&a<=s;){if(i=t[(r=a+s>>1)-1]||null,o=t[r],!i)return{lo:null,hi:o};if(o[e]<n)a=r+1;else{if(!(i[e]>n))return{lo:i,hi:o};s=r-1}}return{lo:o,hi:null}}(t,e,n),o=i.lo?i.hi?i.lo:t[t.length-2]:t[0],a=i.lo?i.hi?i.hi:t[t.length-1]:t[1],s=a[e]-o[e],u=s?(n-o[e])/s:0,l=(a[r]-o[r])*u;return o[r]+l}function nr(t,e){var n=t._adapter,r=t.options.time,i=r.parser,o=i||r.format,a=e;return"function"===typeof i&&(a=i(a)),q.isFinite(a)||(a="string"===typeof o?n.parse(a,o):n.parse(a)),null!==a?+a:(i||"function"!==typeof o||(a=o(e),q.isFinite(a)||(a=n.parse(a))),a)}function rr(t,e){if(q.isNullOrUndef(e))return null;var n=t.options.time,r=nr(t,t.getRightValue(e));return null===r||n.round&&(r=+t._adapter.startOf(r,n.round)),r}function ir(t,e,n,r){var i,o,a,s=Zn.length;for(i=Zn.indexOf(t);i<s-1;++i)if(a=(o=$n[Zn[i]]).steps?o.steps:Xn,o.common&&Math.ceil((n-e)/(a*o.size))<=r)return Zn[i];return Zn[s-1]}function or(t,e,n){var r,i,o=[],a={},s=e.length;for(r=0;r<s;++r)a[i=e[r]]=r,o.push({value:i,major:!1});return 0!==s&&n?function(t,e,n,r){var i,o,a=t._adapter,s=+a.startOf(e[0].value,r),u=e[e.length-1].value;for(i=s;i<=u;i=+a.add(i,1,r))(o=n[i])>=0&&(e[o].major=!0);return e}(t,o,a,n):o}var ar=vn.extend({initialize:function(){this.mergeTicksOptions(),vn.prototype.initialize.call(this)},update:function(){var t=this,e=t.options,n=e.time||(e.time={}),r=t._adapter=new Je._date(e.adapters.date);return Hn("time scale",n.format,"time.format","time.parser"),Hn("time scale",n.min,"time.min","ticks.min"),Hn("time scale",n.max,"time.max","ticks.max"),q.mergeIf(n.displayFormats,r.formats()),vn.prototype.update.apply(t,arguments)},getRightValue:function(t){return t&&void 0!==t.t&&(t=t.t),vn.prototype.getRightValue.call(this,t)},determineDataLimits:function(){var t,e,n,r,i,o,a,s=this,u=s.chart,l=s._adapter,c=s.options,f=c.time.unit||"day",h=Xn,d=Kn,p=[],v=[],m=[],g=s._getLabels();for(t=0,n=g.length;t<n;++t)m.push(rr(s,g[t]));for(t=0,n=(u.data.datasets||[]).length;t<n;++t)if(u.isDatasetVisible(t))if(i=u.data.datasets[t].data,q.isObject(i[0]))for(v[t]=[],e=0,r=i.length;e<r;++e)o=rr(s,i[e]),p.push(o),v[t][e]=o;else v[t]=m.slice(0),a||(p=p.concat(m),a=!0);else v[t]=[];m.length&&(h=Math.min(h,m[0]),d=Math.max(d,m[m.length-1])),p.length&&(p=n>1?function(t){var e,n,r,i={},o=[];for(e=0,n=t.length;e<n;++e)i[r=t[e]]||(i[r]=!0,o.push(r));return o}(p).sort(Qn):p.sort(Qn),h=Math.min(h,p[0]),d=Math.max(d,p[p.length-1])),h=rr(s,Jn(c))||h,d=rr(s,tr(c))||d,h=h===Xn?+l.startOf(Date.now(),f):h,d=d===Kn?+l.endOf(Date.now(),f)+1:d,s.min=Math.min(h,d),s.max=Math.max(h+1,d),s._table=[],s._timestamps={data:p,datasets:v,labels:m}},buildTicks:function(){var t,e,n,r=this,i=r.min,o=r.max,a=r.options,s=a.ticks,u=a.time,l=r._timestamps,c=[],f=r.getLabelCapacity(i),h=s.source,d=a.distribution;for(l="data"===h||"auto"===h&&"series"===d?l.data:"labels"===h?l.labels:function(t,e,n,r){var i,o=t._adapter,a=t.options,s=a.time,u=s.unit||ir(s.minUnit,e,n,r),l=Yn([s.stepSize,s.unitStepSize,1]),c="week"===u&&s.isoWeekday,f=e,h=[];if(c&&(f=+o.startOf(f,"isoWeek",c)),f=+o.startOf(f,c?"day":u),o.diff(n,e,u)>1e5*l)throw e+" and "+n+" are too far apart with stepSize of "+l+" "+u;for(i=f;i<n;i=+o.add(i,l,u))h.push(i);return i!==n&&"ticks"!==a.bounds||h.push(i),h}(r,i,o,f),"ticks"===a.bounds&&l.length&&(i=l[0],o=l[l.length-1]),i=rr(r,Jn(a))||i,o=rr(r,tr(a))||o,t=0,e=l.length;t<e;++t)(n=l[t])>=i&&n<=o&&c.push(n);return r.min=i,r.max=o,r._unit=u.unit||(s.autoSkip?ir(u.minUnit,r.min,r.max,f):function(t,e,n,r,i){var o,a;for(o=Zn.length-1;o>=Zn.indexOf(n);o--)if(a=Zn[o],$n[a].common&&t._adapter.diff(i,r,a)>=e-1)return a;return Zn[n?Zn.indexOf(n):0]}(r,c.length,u.minUnit,r.min,r.max)),r._majorUnit=s.major.enabled&&"year"!==r._unit?function(t){for(var e=Zn.indexOf(t)+1,n=Zn.length;e<n;++e)if($n[Zn[e]].common)return Zn[e]}(r._unit):void 0,r._table=function(t,e,n,r){if("linear"===r||!t.length)return[{time:e,pos:0},{time:n,pos:1}];var i,o,a,s,u,l=[],c=[e];for(i=0,o=t.length;i<o;++i)(s=t[i])>e&&s<n&&c.push(s);for(c.push(n),i=0,o=c.length;i<o;++i)u=c[i+1],a=c[i-1],s=c[i],void 0!==a&&void 0!==u&&Math.round((u+a)/2)===s||l.push({time:s,pos:i/(o-1)});return l}(r._timestamps.data,i,o,d),r._offsets=function(t,e,n,r,i){var o,a,s=0,u=0;return i.offset&&e.length&&(o=er(t,"time",e[0],"pos"),s=1===e.length?1-o:(er(t,"time",e[1],"pos")-o)/2,a=er(t,"time",e[e.length-1],"pos"),u=1===e.length?a:(a-er(t,"time",e[e.length-2],"pos"))/2),{start:s,end:u,factor:1/(s+1+u)}}(r._table,c,0,0,a),s.reverse&&c.reverse(),or(r,c,r._majorUnit)},getLabelForIndex:function(t,e){var n=this,r=n._adapter,i=n.chart.data,o=n.options.time,a=i.labels&&t<i.labels.length?i.labels[t]:"",s=i.datasets[e].data[t];return q.isObject(s)&&(a=n.getRightValue(s)),o.tooltipFormat?r.format(nr(n,a),o.tooltipFormat):"string"===typeof a?a:r.format(nr(n,a),o.displayFormats.datetime)},tickFormatFunction:function(t,e,n,r){var i=this._adapter,o=this.options,a=o.time.displayFormats,s=a[this._unit],u=this._majorUnit,l=a[u],c=n[e],f=o.ticks,h=u&&l&&c&&c.major,d=i.format(t,r||(h?l:s)),p=h?f.major:f.minor,v=Yn([p.callback,p.userCallback,f.callback,f.userCallback]);return v?v(d,e,n):d},convertTicksToLabels:function(t){var e,n,r=[];for(e=0,n=t.length;e<n;++e)r.push(this.tickFormatFunction(t[e].value,e,t));return r},getPixelForOffset:function(t){var e=this._offsets,n=er(this._table,"time",t,"pos");return this.getPixelForDecimal((e.start+n)*e.factor)},getPixelForValue:function(t,e,n){var r=null;if(void 0!==e&&void 0!==n&&(r=this._timestamps.datasets[n][e]),null===r&&(r=rr(this,t)),null!==r)return this.getPixelForOffset(r)},getPixelForTick:function(t){var e=this.getTicks();return t>=0&&t<e.length?this.getPixelForOffset(e[t].value):null},getValueForPixel:function(t){var e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end,r=er(this._table,"pos",n,"time");return this._adapter._create(r)},_getLabelSize:function(t){var e=this.options.ticks,n=this.ctx.measureText(t).width,r=q.toRadians(this.isHorizontal()?e.maxRotation:e.minRotation),i=Math.cos(r),o=Math.sin(r),a=Gn(e.fontSize,R.global.defaultFontSize);return{w:n*i+a*o,h:n*o+a*i}},getLabelWidth:function(t){return this._getLabelSize(t).w},getLabelCapacity:function(t){var e=this,n=e.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,o=e.tickFormatFunction(t,0,or(e,[t],e._majorUnit),i),a=e._getLabelSize(o),s=Math.floor(e.isHorizontal()?e.width/a.w:e.height/a.h);return e.options.offset&&s--,s>0?s:1}}),sr={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}};ar._defaults=sr;var ur={category:gn,linear:Tn,logarithmic:In,radialLinear:zn,time:ar},lr={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};Je._date.override("function"===typeof t?{_id:"moment",formats:function(){return lr},parse:function(e,n){return"string"===typeof e&&"string"===typeof n?e=t(e,n):e instanceof t||(e=t(e)),e.isValid()?e.valueOf():null},format:function(e,n){return t(e).format(n)},add:function(e,n,r){return t(e).add(n,r).valueOf()},diff:function(e,n,r){return t(e).diff(t(n),r)},startOf:function(e,n,r){return e=t(e),"isoWeek"===n?e.isoWeekday(r).valueOf():e.startOf(n).valueOf()},endOf:function(e,n){return t(e).endOf(n).valueOf()},_create:function(e){return t(e)}}:{}),R._set("global",{plugins:{filler:{propagate:!0}}});var cr={dataset:function(t){var e=t.fill,n=t.chart,r=n.getDatasetMeta(e),i=r&&n.isDatasetVisible(e)&&r.dataset._children||[],o=i.length||0;return o?function(t,e){return e<o&&i[e]._view||null}:null},boundary:function(t){var e=t.boundary,n=e?e.x:null,r=e?e.y:null;return q.isArray(e)?function(t,n){return e[n]}:function(t){return{x:null===n?t.x:n,y:null===r?t.y:r}}}};function fr(t,e,n){var r,i=t._model||{},o=i.fill;if(void 0===o&&(o=!!i.backgroundColor),!1===o||null===o)return!1;if(!0===o)return"origin";if(r=parseFloat(o,10),isFinite(r)&&Math.floor(r)===r)return"-"!==o[0]&&"+"!==o[0]||(r=e+r),!(r===e||r<0||r>=n)&&r;switch(o){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return o;default:return!1}}function hr(t){return(t.el._scale||{}).getPointPositionForValue?function(t){var e,n,r,i,o,a=t.el._scale,s=a.options,u=a.chart.data.labels.length,l=t.fill,c=[];if(!u)return null;for(e=s.ticks.reverse?a.max:a.min,n=s.ticks.reverse?a.min:a.max,r=a.getPointPositionForValue(0,e),i=0;i<u;++i)o="start"===l||"end"===l?a.getPointPositionForValue(i,"start"===l?e:n):a.getBasePosition(i),s.gridLines.circular&&(o.cx=r.x,o.cy=r.y,o.angle=a.getIndexAngle(i)-Math.PI/2),c.push(o);return c}(t):function(t){var e,n=t.el._model||{},r=t.el._scale||{},i=t.fill,o=null;if(isFinite(i))return null;if("start"===i?o=void 0===n.scaleBottom?r.bottom:n.scaleBottom:"end"===i?o=void 0===n.scaleTop?r.top:n.scaleTop:void 0!==n.scaleZero?o=n.scaleZero:r.getBasePixel&&(o=r.getBasePixel()),void 0!==o&&null!==o){if(void 0!==o.x&&void 0!==o.y)return o;if(q.isFinite(o))return{x:(e=r.isHorizontal())?o:null,y:e?null:o}}return null}(t)}function dr(t,e,n){var r,i=t[e].fill,o=[e];if(!n)return i;for(;!1!==i&&-1===o.indexOf(i);){if(!isFinite(i))return i;if(!(r=t[i]))return!1;if(r.visible)return i;o.push(i),i=r.fill}return!1}function pr(t){var e=t.fill,n="dataset";return!1===e?null:(isFinite(e)||(n="boundary"),cr[n](t))}function vr(t){return t&&!t.skip}function mr(t,e,n,r,i){var o,a,s,u;if(r&&i){for(t.moveTo(e[0].x,e[0].y),o=1;o<r;++o)q.canvas.lineTo(t,e[o-1],e[o]);if(void 0===n[0].angle)for(t.lineTo(n[i-1].x,n[i-1].y),o=i-1;o>0;--o)q.canvas.lineTo(t,n[o],n[o-1],!0);else for(a=n[0].cx,s=n[0].cy,u=Math.sqrt(Math.pow(n[0].x-a,2)+Math.pow(n[0].y-s,2)),o=i-1;o>0;--o)t.arc(a,s,u,n[o].angle,n[o-1].angle,!0)}}function gr(t,e,n,r,i,o){var a,s,u,l,c,f,h,d,p=e.length,v=r.spanGaps,m=[],g=[],y=0,b=0;for(t.beginPath(),a=0,s=p;a<s;++a)c=n(l=e[u=a%p]._view,u,r),f=vr(l),h=vr(c),o&&void 0===d&&f&&(s=p+(d=a+1)),f&&h?(y=m.push(l),b=g.push(c)):y&&b&&(v?(f&&m.push(l),h&&g.push(c)):(mr(t,m,g,y,b),y=b=0,m=[],g=[]));mr(t,m,g,y,b),t.closePath(),t.fillStyle=i,t.fill()}var yr={id:"filler",afterDatasetsUpdate:function(t,e){var n,r,i,o,a=(t.data.datasets||[]).length,s=e.propagate,u=[];for(r=0;r<a;++r)o=null,(i=(n=t.getDatasetMeta(r)).dataset)&&i._model&&i instanceof wt.Line&&(o={visible:t.isDatasetVisible(r),fill:fr(i,r,a),chart:t,el:i}),n.$filler=o,u.push(o);for(r=0;r<a;++r)(o=u[r])&&(o.fill=dr(u,r,s),o.boundary=hr(o),o.mapper=pr(o))},beforeDatasetsDraw:function(t){var e,n,r,i,o,a,s,u=t._getSortedVisibleDatasetMetas(),l=t.ctx;for(n=u.length-1;n>=0;--n)(e=u[n].$filler)&&e.visible&&(i=(r=e.el)._view,o=r._children||[],a=e.mapper,s=i.backgroundColor||R.global.defaultColor,a&&s&&o.length&&(q.canvas.clipArea(l,t.chartArea),gr(l,o,a,i,s,r._loop),q.canvas.unclipArea(l)))}},br=q.rtl.getRtlAdapter,wr=q.noop,_r=q.valueOrDefault;function xr(t,e){return t.usePointStyle&&t.boxWidth>e?e:t.boxWidth}R._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(t,e){var n=e.datasetIndex,r=this.chart,i=r.getDatasetMeta(n);i.hidden=null===i.hidden?!r.data.datasets[n].hidden:null,r.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(t){var e=t.data.datasets,n=t.options.legend||{},r=n.labels&&n.labels.usePointStyle;return t._getSortedDatasetMetas().map((function(n){var i=n.controller.getStyle(r?0:void 0);return{text:e[n.index].label,fillStyle:i.backgroundColor,hidden:!t.isDatasetVisible(n.index),lineCap:i.borderCapStyle,lineDash:i.borderDash,lineDashOffset:i.borderDashOffset,lineJoin:i.borderJoinStyle,lineWidth:i.borderWidth,strokeStyle:i.borderColor,pointStyle:i.pointStyle,rotation:i.rotation,datasetIndex:n.index}}),this)}}},legendCallback:function(t){var e,n,r,i=document.createElement("ul"),o=t.data.datasets;for(i.setAttribute("class",t.id+"-legend"),e=0,n=o.length;e<n;e++)(r=i.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=o[e].backgroundColor,o[e].label&&r.appendChild(document.createTextNode(o[e].label));return i.outerHTML}});var Er=G.extend({initialize:function(t){q.extend(this,t),this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1},beforeUpdate:wr,update:function(t,e,n){var r=this;return r.beforeUpdate(),r.maxWidth=t,r.maxHeight=e,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:wr,beforeSetDimensions:wr,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:wr,beforeBuildLabels:wr,buildLabels:function(){var t=this,e=t.options.labels||{},n=q.callback(e.generateLabels,[t.chart],t)||[];e.filter&&(n=n.filter((function(n){return e.filter(n,t.chart.data)}))),t.options.reverse&&n.reverse(),t.legendItems=n},afterBuildLabels:wr,beforeFit:wr,fit:function(){var t=this,e=t.options,n=e.labels,r=e.display,i=t.ctx,o=q.options._parseFont(n),a=o.size,s=t.legendHitBoxes=[],u=t.minSize,l=t.isHorizontal();if(l?(u.width=t.maxWidth,u.height=r?10:0):(u.width=r?10:0,u.height=t.maxHeight),r){if(i.font=o.string,l){var c=t.lineWidths=[0],f=0;i.textAlign="left",i.textBaseline="middle",q.each(t.legendItems,(function(t,e){var r=xr(n,a)+a/2+i.measureText(t.text).width;(0===e||c[c.length-1]+r+2*n.padding>u.width)&&(f+=a+n.padding,c[c.length-(e>0?0:1)]=0),s[e]={left:0,top:0,width:r,height:a},c[c.length-1]+=r+n.padding})),u.height+=f}else{var h=n.padding,d=t.columnWidths=[],p=t.columnHeights=[],v=n.padding,m=0,g=0;q.each(t.legendItems,(function(t,e){var r=xr(n,a)+a/2+i.measureText(t.text).width;e>0&&g+a+2*h>u.height&&(v+=m+n.padding,d.push(m),p.push(g),m=0,g=0),m=Math.max(m,r),g+=a+h,s[e]={left:0,top:0,width:r,height:a}})),v+=m,d.push(m),p.push(g),u.width+=v}t.width=u.width,t.height=u.height}else t.width=u.width=t.height=u.height=0},afterFit:wr,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var t=this,e=t.options,n=e.labels,r=R.global,i=r.defaultColor,o=r.elements.line,a=t.height,s=t.columnHeights,u=t.width,l=t.lineWidths;if(e.display){var c,f=br(e.rtl,t.left,t.minSize.width),h=t.ctx,d=_r(n.fontColor,r.defaultFontColor),p=q.options._parseFont(n),v=p.size;h.textAlign=f.textAlign("left"),h.textBaseline="middle",h.lineWidth=.5,h.strokeStyle=d,h.fillStyle=d,h.font=p.string;var m=xr(n,v),g=t.legendHitBoxes,y=function(t,r){switch(e.align){case"start":return n.padding;case"end":return t-r;default:return(t-r+n.padding)/2}},b=t.isHorizontal();c=b?{x:t.left+y(u,l[0]),y:t.top+n.padding,line:0}:{x:t.left+n.padding,y:t.top+y(a,s[0]),line:0},q.rtl.overrideTextDirection(t.ctx,e.textDirection);var w=v+n.padding;q.each(t.legendItems,(function(e,r){var d=h.measureText(e.text).width,p=m+v/2+d,_=c.x,x=c.y;f.setWidth(t.minSize.width),b?r>0&&_+p+n.padding>t.left+t.minSize.width&&(x=c.y+=w,c.line++,_=c.x=t.left+y(u,l[c.line])):r>0&&x+w>t.top+t.minSize.height&&(_=c.x=_+t.columnWidths[c.line]+n.padding,c.line++,x=c.y=t.top+y(a,s[c.line]));var E=f.x(_);!function(t,e,r){if(!(isNaN(m)||m<=0)){h.save();var a=_r(r.lineWidth,o.borderWidth);if(h.fillStyle=_r(r.fillStyle,i),h.lineCap=_r(r.lineCap,o.borderCapStyle),h.lineDashOffset=_r(r.lineDashOffset,o.borderDashOffset),h.lineJoin=_r(r.lineJoin,o.borderJoinStyle),h.lineWidth=a,h.strokeStyle=_r(r.strokeStyle,i),h.setLineDash&&h.setLineDash(_r(r.lineDash,o.borderDash)),n&&n.usePointStyle){var s=m*Math.SQRT2/2,u=f.xPlus(t,m/2),l=e+v/2;q.canvas.drawPoint(h,r.pointStyle,s,u,l,r.rotation)}else h.fillRect(f.leftForLtr(t,m),e,m,v),0!==a&&h.strokeRect(f.leftForLtr(t,m),e,m,v);h.restore()}}(E,x,e),g[r].left=f.leftForLtr(E,g[r].width),g[r].top=x,function(t,e,n,r){var i=v/2,o=f.xPlus(t,m+i),a=e+i;h.fillText(n.text,o,a),n.hidden&&(h.beginPath(),h.lineWidth=2,h.moveTo(o,a),h.lineTo(f.xPlus(o,r),a),h.stroke())}(E,x,e,d),b?c.x+=p+n.padding:c.y+=w})),q.rtl.restoreTextDirection(t.ctx,e.textDirection)}},_getLegendItemAt:function(t,e){var n,r,i,o=this;if(t>=o.left&&t<=o.right&&e>=o.top&&e<=o.bottom)for(i=o.legendHitBoxes,n=0;n<i.length;++n)if(t>=(r=i[n]).left&&t<=r.left+r.width&&e>=r.top&&e<=r.top+r.height)return o.legendItems[n];return null},handleEvent:function(t){var e,n=this,r=n.options,i="mouseup"===t.type?"click":t.type;if("mousemove"===i){if(!r.onHover&&!r.onLeave)return}else{if("click"!==i)return;if(!r.onClick)return}e=n._getLegendItemAt(t.x,t.y),"click"===i?e&&r.onClick&&r.onClick.call(n,t.native,e):(r.onLeave&&e!==n._hoveredItem&&(n._hoveredItem&&r.onLeave.call(n,t.native,n._hoveredItem),n._hoveredItem=e),r.onHover&&e&&r.onHover.call(n,t.native,e))}});function kr(t,e){var n=new Er({ctx:t.ctx,options:e,chart:t});de.configure(t,n,e),de.addBox(t,n),t.legend=n}var Tr={id:"legend",_element:Er,beforeInit:function(t){var e=t.options.legend;e&&kr(t,e)},beforeUpdate:function(t){var e=t.options.legend,n=t.legend;e?(q.mergeIf(e,R.global.legend),n?(de.configure(t,n,e),n.options=e):kr(t,e)):n&&(de.removeBox(t,n),delete t.legend)},afterEvent:function(t,e){var n=t.legend;n&&n.handleEvent(e)}},Sr=q.noop;R._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var Or=G.extend({initialize:function(t){q.extend(this,t),this.legendHitBoxes=[]},beforeUpdate:Sr,update:function(t,e,n){var r=this;return r.beforeUpdate(),r.maxWidth=t,r.maxHeight=e,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:Sr,beforeSetDimensions:Sr,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:Sr,beforeBuildLabels:Sr,buildLabels:Sr,afterBuildLabels:Sr,beforeFit:Sr,fit:function(){var t,e=this,n=e.options,r=e.minSize={},i=e.isHorizontal();n.display?(t=(q.isArray(n.text)?n.text.length:1)*q.options._parseFont(n).lineHeight+2*n.padding,e.width=r.width=i?e.maxWidth:t,e.height=r.height=i?t:e.maxHeight):e.width=r.width=e.height=r.height=0},afterFit:Sr,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this,e=t.ctx,n=t.options;if(n.display){var r,i,o,a=q.options._parseFont(n),s=a.lineHeight,u=s/2+n.padding,l=0,c=t.top,f=t.left,h=t.bottom,d=t.right;e.fillStyle=q.valueOrDefault(n.fontColor,R.global.defaultFontColor),e.font=a.string,t.isHorizontal()?(i=f+(d-f)/2,o=c+u,r=d-f):(i="left"===n.position?f+u:d-u,o=c+(h-c)/2,r=h-c,l=Math.PI*("left"===n.position?-.5:.5)),e.save(),e.translate(i,o),e.rotate(l),e.textAlign="center",e.textBaseline="middle";var p=n.text;if(q.isArray(p))for(var v=0,m=0;m<p.length;++m)e.fillText(p[m],0,v,r),v+=s;else e.fillText(p,0,0,r);e.restore()}}});function Ar(t,e){var n=new Or({ctx:t.ctx,options:e,chart:t});de.configure(t,n,e),de.addBox(t,n),t.titleBlock=n}var Cr={},Nr=yr,Ir=Tr,Pr={id:"title",_element:Or,beforeInit:function(t){var e=t.options.title;e&&Ar(t,e)},beforeUpdate:function(t){var e=t.options.title,n=t.titleBlock;e?(q.mergeIf(e,R.global.title),n?(de.configure(t,n,e),n.options=e):Ar(t,e)):n&&(de.removeBox(t,n),delete t.titleBlock)}};for(var Mr in Cr.filler=Nr,Cr.legend=Ir,Cr.title=Pr,$e.helpers=q,function(){function t(t,e,n){var r;return"string"===typeof t?(r=parseInt(t,10),-1!==t.indexOf("%")&&(r=r/100*e.parentNode[n])):r=t,r}function e(t){return void 0!==t&&null!==t&&"none"!==t}function n(n,r,i){var o=document.defaultView,a=q._getParentNode(n),s=o.getComputedStyle(n)[r],u=o.getComputedStyle(a)[r],l=e(s),c=e(u),f=Number.POSITIVE_INFINITY;return l||c?Math.min(l?t(s,n,i):f,c?t(u,a,i):f):"none"}q.where=function(t,e){if(q.isArray(t)&&Array.prototype.filter)return t.filter(e);var n=[];return q.each(t,(function(t){e(t)&&n.push(t)})),n},q.findIndex=Array.prototype.findIndex?function(t,e,n){return t.findIndex(e,n)}:function(t,e,n){n=void 0===n?t:n;for(var r=0,i=t.length;r<i;++r)if(e.call(n,t[r],r,t))return r;return-1},q.findNextWhere=function(t,e,n){q.isNullOrUndef(n)&&(n=-1);for(var r=n+1;r<t.length;r++){var i=t[r];if(e(i))return i}},q.findPreviousWhere=function(t,e,n){q.isNullOrUndef(n)&&(n=t.length);for(var r=n-1;r>=0;r--){var i=t[r];if(e(i))return i}},q.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},q.almostEquals=function(t,e,n){return Math.abs(t-e)<n},q.almostWhole=function(t,e){var n=Math.round(t);return n-e<=t&&n+e>=t},q.max=function(t){return t.reduce((function(t,e){return isNaN(e)?t:Math.max(t,e)}),Number.NEGATIVE_INFINITY)},q.min=function(t){return t.reduce((function(t,e){return isNaN(e)?t:Math.min(t,e)}),Number.POSITIVE_INFINITY)},q.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return 0===(t=+t)||isNaN(t)?t:t>0?1:-1},q.toRadians=function(t){return t*(Math.PI/180)},q.toDegrees=function(t){return t*(180/Math.PI)},q._decimalPlaces=function(t){if(q.isFinite(t)){for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n}},q.getAngleFromPoint=function(t,e){var n=e.x-t.x,r=e.y-t.y,i=Math.sqrt(n*n+r*r),o=Math.atan2(r,n);return o<-.5*Math.PI&&(o+=2*Math.PI),{angle:o,distance:i}},q.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},q.aliasPixel=function(t){return t%2===0?0:.5},q._alignPixel=function(t,e,n){var r=t.currentDevicePixelRatio,i=n/2;return Math.round((e-i)*r)/r+i},q.splineCurve=function(t,e,n,r){var i=t.skip?e:t,o=e,a=n.skip?e:n,s=Math.sqrt(Math.pow(o.x-i.x,2)+Math.pow(o.y-i.y,2)),u=Math.sqrt(Math.pow(a.x-o.x,2)+Math.pow(a.y-o.y,2)),l=s/(s+u),c=u/(s+u),f=r*(l=isNaN(l)?0:l),h=r*(c=isNaN(c)?0:c);return{previous:{x:o.x-f*(a.x-i.x),y:o.y-f*(a.y-i.y)},next:{x:o.x+h*(a.x-i.x),y:o.y+h*(a.y-i.y)}}},q.EPSILON=Number.EPSILON||1e-14,q.splineCurveMonotone=function(t){var e,n,r,i,o,a,s,u,l,c=(t||[]).map((function(t){return{model:t._model,deltaK:0,mK:0}})),f=c.length;for(e=0;e<f;++e)if(!(r=c[e]).model.skip){if(n=e>0?c[e-1]:null,(i=e<f-1?c[e+1]:null)&&!i.model.skip){var h=i.model.x-r.model.x;r.deltaK=0!==h?(i.model.y-r.model.y)/h:0}!n||n.model.skip?r.mK=r.deltaK:!i||i.model.skip?r.mK=n.deltaK:this.sign(n.deltaK)!==this.sign(r.deltaK)?r.mK=0:r.mK=(n.deltaK+r.deltaK)/2}for(e=0;e<f-1;++e)r=c[e],i=c[e+1],r.model.skip||i.model.skip||(q.almostEquals(r.deltaK,0,this.EPSILON)?r.mK=i.mK=0:(o=r.mK/r.deltaK,a=i.mK/r.deltaK,(u=Math.pow(o,2)+Math.pow(a,2))<=9||(s=3/Math.sqrt(u),r.mK=o*s*r.deltaK,i.mK=a*s*r.deltaK)));for(e=0;e<f;++e)(r=c[e]).model.skip||(n=e>0?c[e-1]:null,i=e<f-1?c[e+1]:null,n&&!n.model.skip&&(l=(r.model.x-n.model.x)/3,r.model.controlPointPreviousX=r.model.x-l,r.model.controlPointPreviousY=r.model.y-l*r.mK),i&&!i.model.skip&&(l=(i.model.x-r.model.x)/3,r.model.controlPointNextX=r.model.x+l,r.model.controlPointNextY=r.model.y+l*r.mK))},q.nextItem=function(t,e,n){return n?e>=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},q.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},q.niceNum=function(t,e){var n=Math.floor(q.log10(t)),r=t/Math.pow(10,n);return(e?r<1.5?1:r<3?2:r<7?5:10:r<=1?1:r<=2?2:r<=5?5:10)*Math.pow(10,n)},q.requestAnimFrame="undefined"===typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},q.getRelativePosition=function(t,e){var n,r,i=t.originalEvent||t,o=t.target||t.srcElement,a=o.getBoundingClientRect(),s=i.touches;s&&s.length>0?(n=s[0].clientX,r=s[0].clientY):(n=i.clientX,r=i.clientY);var u=parseFloat(q.getStyle(o,"padding-left")),l=parseFloat(q.getStyle(o,"padding-top")),c=parseFloat(q.getStyle(o,"padding-right")),f=parseFloat(q.getStyle(o,"padding-bottom")),h=a.right-a.left-u-c,d=a.bottom-a.top-l-f;return{x:n=Math.round((n-a.left-u)/h*o.width/e.currentDevicePixelRatio),y:r=Math.round((r-a.top-l)/d*o.height/e.currentDevicePixelRatio)}},q.getConstraintWidth=function(t){return n(t,"max-width","clientWidth")},q.getConstraintHeight=function(t){return n(t,"max-height","clientHeight")},q._calculatePadding=function(t,e,n){return(e=q.getStyle(t,e)).indexOf("%")>-1?n*parseInt(e,10)/100:parseInt(e,10)},q._getParentNode=function(t){var e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e},q.getMaximumWidth=function(t){var e=q._getParentNode(t);if(!e)return t.clientWidth;var n=e.clientWidth,r=n-q._calculatePadding(e,"padding-left",n)-q._calculatePadding(e,"padding-right",n),i=q.getConstraintWidth(t);return isNaN(i)?r:Math.min(r,i)},q.getMaximumHeight=function(t){var e=q._getParentNode(t);if(!e)return t.clientHeight;var n=e.clientHeight,r=n-q._calculatePadding(e,"padding-top",n)-q._calculatePadding(e,"padding-bottom",n),i=q.getConstraintHeight(t);return isNaN(i)?r:Math.min(r,i)},q.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},q.retinaScale=function(t,e){var n=t.currentDevicePixelRatio=e||"undefined"!==typeof window&&window.devicePixelRatio||1;if(1!==n){var r=t.canvas,i=t.height,o=t.width;r.height=i*n,r.width=o*n,t.ctx.scale(n,n),r.style.height||r.style.width||(r.style.height=i+"px",r.style.width=o+"px")}},q.fontString=function(t,e,n){return e+" "+t+"px "+n},q.longestText=function(t,e,n,r){var i=(r=r||{}).data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(i=r.data={},o=r.garbageCollect=[],r.font=e),t.font=e;var a,s,u,l,c,f=0,h=n.length;for(a=0;a<h;
2a++)if(void 0!==(l=n[a])&&null!==l&&!0!==q.isArray(l))f=q.measureText(t,i,o,f,l);else if(q.isArray(l))for(s=0,u=l.length;s<u;s++)void 0===(c=l[s])||null===c||q.isArray(c)||(f=q.measureText(t,i,o,f,c));var d=o.length/2;if(d>n.length){for(a=0;a<d;a++)delete i[o[a]];o.splice(0,d)}return f},q.measureText=function(t,e,n,r,i){var o=e[i];return o||(o=e[i]=t.measureText(i).width,n.push(i)),o>r&&(r=o),r},q.numberOfLabelLines=function(t){var e=1;return q.each(t,(function(t){q.isArray(t)&&t.length>e&&(e=t.length)})),e},q.color=_?function(t){return t instanceof CanvasGradient&&(t=R.global.defaultColor),_(t)}:function(t){return console.error("Color.js not found!"),t},q.getHoverColor=function(t){return t instanceof CanvasPattern||t instanceof CanvasGradient?t:q.color(t).saturate(.5).darken(.1).rgbString()}}(),$e._adapters=Je,$e.Animation=X,$e.animationService=$,$e.controllers=$t,$e.DatasetController=et,$e.defaults=R,$e.Element=G,$e.elements=wt,$e.Interaction=re,$e.layouts=de,$e.platform=Oe,$e.plugins=Ae,$e.Scale=vn,$e.scaleService=Ce,$e.Ticks=tn,$e.Tooltip=Be,$e.helpers.each(ur,(function(t,e){$e.scaleService.registerScaleType(e,t,t._defaults)})),Cr)Cr.hasOwnProperty(Mr)&&$e.plugins.register(Cr[Mr]);$e.platform.initialize();var Dr=$e;return"undefined"!==typeof window&&(window.Chart=$e),$e.Chart=$e,$e.Legend=Cr.legend._element,$e.Title=Cr.title._element,$e.pluginService=$e.plugins,$e.PluginBase=$e.Element.extend({}),$e.canvasHelpers=$e.helpers.canvas,$e.layoutService=$e.layouts,$e.LinearScaleBase=_n,$e.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],(function(t){$e[t]=function(e,n){return new $e(e,$e.helpers.merge(n||{},{type:t.charAt(0).toLowerCase()+t.slice(1)}))}})),Dr}(function(){try{return n(301)}catch(t){}}())},function(t,e,n){"use strict";var r=n(72),i="function"===typeof Symbol&&"symbol"===typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=Object.defineProperty,u=s&&function(){var t={};try{for(var e in s(t,"x",{enumerable:!1,value:t}),t)return!1;return t.x===t}catch(n){return!1}}(),l=function(t,e,n,r){var i;(!(e in t)||"function"===typeof(i=r)&&"[object Function]"===o.call(i)&&r())&&(u?s(t,e,{configurable:!0,enumerable:!1,value:n,writable:!0}):t[e]=n)},c=function(t,e){var n=arguments.length>2?arguments[2]:{},o=r(e);i&&(o=a.call(o,Object.getOwnPropertySymbols(e)));for(var s=0;s<o.length;s+=1)l(t,o[s],e[o[s]],n[o[s]])};c.supportsDescriptors=!!u,t.exports=c},function(t,e,n){var r=n(42),i=n(217),o=n(218),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?i(t):o(t)}},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,n){"use strict";(function(t){var n="undefined"!==typeof window&&"undefined"!==typeof document&&"undefined"!==typeof navigator,r=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(n&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}();var i=n&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),r))}};function o(t){return t&&"[object Function]"==={}.toString.call(t)}function a(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function s(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function u(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=a(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?t:u(s(t))}function l(t){return t&&t.referenceNode?t.referenceNode:t}var c=n&&!(!window.MSInputMethodContext||!document.documentMode),f=n&&/MSIE 10/.test(navigator.userAgent);function h(t){return 11===t?c:10===t?f:c||f}function d(t){if(!t)return document.documentElement;for(var e=h(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===a(n,"position")?d(n):n:t?t.ownerDocument.documentElement:document.documentElement}function p(t){return null!==t.parentNode?p(t.parentNode):t}function v(t,e){if(!t||!t.nodeType||!e||!e.nodeType)return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?t:e,i=n?e:t,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a=o.commonAncestorContainer;if(t!==a&&e!==a||r.contains(i))return function(t){var e=t.nodeName;return"BODY"!==e&&("HTML"===e||d(t.firstElementChild)===t)}(a)?a:d(a);var s=p(t);return s.host?v(s.host,e):v(t,p(e).host)}function m(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",r=t.nodeName;if("BODY"===r||"HTML"===r){var i=t.ownerDocument.documentElement,o=t.ownerDocument.scrollingElement||i;return o[n]}return t[n]}function g(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=m(e,"top"),i=m(e,"left"),o=n?-1:1;return t.top+=r*o,t.bottom+=r*o,t.left+=i*o,t.right+=i*o,t}function y(t,e){var n="x"===e?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+r+"Width"])}function b(t,e,n,r){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],h(10)?parseInt(n["offset"+t])+parseInt(r["margin"+("Height"===t?"Top":"Left")])+parseInt(r["margin"+("Height"===t?"Bottom":"Right")]):0)}function w(t){var e=t.body,n=t.documentElement,r=h(10)&&getComputedStyle(n);return{height:b("Height",e,n,r),width:b("Width",e,n,r)}}var _=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},x=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),E=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},k=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};function T(t){return k({},t,{right:t.left+t.width,bottom:t.top+t.height})}function S(t){var e={};try{if(h(10)){e=t.getBoundingClientRect();var n=m(t,"top"),r=m(t,"left");e.top+=n,e.left+=r,e.bottom+=n,e.right+=r}else e=t.getBoundingClientRect()}catch(d){}var i={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},o="HTML"===t.nodeName?w(t.ownerDocument):{},s=o.width||t.clientWidth||i.width,u=o.height||t.clientHeight||i.height,l=t.offsetWidth-s,c=t.offsetHeight-u;if(l||c){var f=a(t);l-=y(f,"x"),c-=y(f,"y"),i.width-=l,i.height-=c}return T(i)}function O(t,e){var n=arguments.length>
vendor: 5,899 bytes, line 2
22&&void 0!==arguments[2]&&arguments[2],r=h(10),i="HTML"===e.nodeName,o=S(t),s=S(e),l=u(t),c=a(e),f=parseFloat(c.borderTopWidth),d=parseFloat(c.borderLeftWidth);n&&i&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var p=T({top:o.top-s.top-f,left:o.left-s.left-d,width:o.width,height:o.height});if(p.marginTop=0,p.marginLeft=0,!r&&i){var v=parseFloat(c.marginTop),m=parseFloat(c.marginLeft);p.top-=f-v,p.bottom-=f-v,p.left-=d-m,p.right-=d-m,p.marginTop=v,p.marginLeft=m}return(r&&!n?e.contains(l):e===l&&"BODY"!==l.nodeName)&&(p=g(p,e)),p}function A(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,r=O(t,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=e?0:m(n),s=e?0:m(n,"left"),u={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o};return T(u)}function C(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===a(t,"position"))return!0;var n=s(t);return!!n&&C(n)}function N(t){if(!t||!t.parentElement||h())return document.documentElement;for(var e=t.parentElement;e&&"none"===a(e,"transform");)e=e.parentElement;return e||document.documentElement}function I(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?N(t):v(t,l(e));if("viewport"===r)o=A(a,i);else{var c=void 0;"scrollParent"===r?"BODY"===(c=u(s(e))).nodeName&&(c=t.ownerDocument.documentElement):c="window"===r?t.ownerDocument.documentElement:r;var f=O(c,a,i);if("HTML"!==c.nodeName||C(a))o=f;else{var h=w(t.ownerDocument),d=h.height,p=h.width;o.top+=f.top-f.marginTop,o.bottom=d+f.top,o.left+=f.left-f.marginLeft,o.right=p+f.left}}var m="number"===typeof(n=n||0);return o.left+=m?n:n.left||0,o.top+=m?n:n.top||0,o.right-=m?n:n.right||0,o.bottom-=m?n:n.bottom||0,o}function P(t){return t.width*t.height}function M(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=I(n,r,o,i),s={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},u=Object.keys(s).map((function(t){return k({key:t},s[t],{area:P(s[t])})})).sort((function(t,e){return e.area-t.area})),l=u.filter((function(t){var e=t.width,r=t.height;return e>=n.clientWidth&&r>=n.clientHeight})),c=l.length>0?l[0].key:u[0].key,f=t.split("-")[1];return c+(f?"-"+f:"")}function D(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=r?N(e):v(e,l(n));return O(n,i,r)}function R(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),r=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+r,height:t.offsetHeight+n}}function L(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function j(t,e,n){n=n.split("-")[0];var r=R(t),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",u=o?"height":"width",l=o?"width":"height";return i[a]=e[a]+e[u]/2-r[u]/2,i[s]=n===s?e[s]-r[l]:e[L(s)],i}function F(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function U(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===n}));var r=F(t,(function(t){return t[e]===n}));return t.indexOf(r)}(t,"name",n))).forEach((function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&o(n)&&(e.offsets.popper=T(e.offsets.popper),e.offsets.reference=T(e.offsets.reference),e=n(e,t))})),e}function q(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=D(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=M(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=j(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=U(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function B(t,e){return t.some((function(t){var n=t.name;return t.enabled&&n===e}))}function V(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),r=0;r<e.length;r++){var i=e[r],o=i?""+i+n:t;if("undefined"!==typeof document.body.style[o])return o}return null}function z(){return this.state.isDestroyed=!0,B(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[V("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function W(t){var e=t.ownerDocument;return e?e.defaultView:window}function H(t,e,n,r){n.updateBound=r,W(t).addEventListener("resize",n.updateBound,{passive:!0});var i=u(t);return function t(e,n,r,i){var o="BODY"===e.nodeName,a=o?e.ownerDocument.defaultView:e;a.addEventListener(n,r,{passive:!0}),o||t(u(a.parentNode),n,r,i),i.push(a)}(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function Y(){this.state.eventsEnabled||(this.state=H(this.reference,this.options,this.state,this.scheduleUpdate))}function G(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,W(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEac
vendor: 4,788 bytes, line 2
2h((function(t){t.removeEventListener("scroll",e.updateBound)})),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function K(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function X(t,e){Object.keys(e).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&K(e[n])&&(r="px"),t.style[n]=e[n]+r}))}var $=n&&/Firefox/i.test(navigator.userAgent);function Z(t,e,n){var r=F(t,(function(t){return t.name===e})),i=!!r&&t.some((function(t){return t.name===n&&t.enabled&&t.order<r.order}));if(!i){var o="`"+e+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}var Q=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],J=Q.slice(3);function tt(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=J.indexOf(t),r=J.slice(n+1).concat(J.slice(0,n));return e?r.reverse():r}var et="flip",nt="clockwise",rt="counterclockwise";function it(t,e,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),a=t.split(/(\+|\-)/).map((function(t){return t.trim()})),s=a.indexOf(F(a,(function(t){return-1!==t.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var u=/\s*,\s*|\s+/,l=-1!==s?[a.slice(0,s).concat([a[s].split(u)[0]]),[a[s].split(u)[1]].concat(a.slice(s+1))]:[a];return(l=l.map((function(t,r){var i=(1===r?!o:o)?"height":"width",a=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,a=!0,t):a?(t[t.length-1]+=e,a=!1,t):t.concat(e)}),[]).map((function(t){return function(t,e,n,r){var i=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return t;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}return T(s)[e]/100*o}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o}return o}(t,i,e,n)}))}))).forEach((function(t,e){t.forEach((function(n,r){K(n)&&(i[e]+=n*("-"===t[r-1]?-1:1))}))})),i}var ot={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],r=e.split("-")[1];if(r){var i=t.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),u=s?"left":"top",l=s?"width":"height",c={start:E({},u,o[u]),end:E({},u,o[u]+o[l]-a[l])};t.offsets.popper=k({},a,c[r])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,r=t.placement,i=t.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],u=void 0;return u=K(+n)?[+n,0]:it(n,o,a,s),"left"===s?(o.top+=u[0],o.left-=u[1]):"right"===s?(o.top+=u[0],o.left+=u[1]):"top"===s?(o.left+=u[0],o.top-=u[1]):"bottom"===s&&(o.left+=u[0],o.top+=u[1]),t.popper=o,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||d(t.instance.popper);t.instance.reference===n&&(n=d(n));var r=V("transform"),i=t.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var u=I(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);i.top=o,i.left=a,i[r]=s,e.boundaries=u;var l=e.priority,c=t.offsets.popper,f={primary:function(t){var n=c[t];return c[t]<u[t]&&!e.escapeWithReference&&(n=Math.max(c[t],u[t])),E({},t,n)},secondary:function(t){var n="right"===t?"left":"top",r=c[n];return c[t]>u[t]&&!e.escapeWithReference&&(r=Math.min(c[n],u[t]-("right"===t?c.width:c.height))),E({},n,r)}};return l.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";c=k({},c,f[e](t))})),t.offsets.popper=c,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,r=e.reference,i=t.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",u=a?"left":"top",l=a?"width":"height";return n[s]<o(r[u])&&(t.offsets.popper[u]=o(r[u])-n[l]),n[u]>o(r[s])&&(t.offsets.popper[u]=o(r[s])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!Z(t.instance.modifiers,"arrow","keepTogether"))return t;var r=e.element;if("string"===typeof r){if(!(r=t.instance.popper.querySelector(r)))return t}else if(!t.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var i=t.placement.split("-")[0],o=t.offsets,s=o.popper,u=o.reference,l=-1!==["left","right"].indexOf(i),c=l?"height":"width",f=l?"Top":"Left",h=f.toLowerCase(),d=l?"left"
vendor: 4,245 bytes, line 2
2:"top",p=l?"bottom":"right",v=R(r)[c];u[p]-v<s[h]&&(t.offsets.popper[h]-=s[h]-(u[p]-v)),u[h]+v>s[p]&&(t.offsets.popper[h]+=u[h]+v-s[p]),t.offsets.popper=T(t.offsets.popper);var m=u[h]+u[c]/2-v/2,g=a(t.instance.popper),y=parseFloat(g["margin"+f]),b=parseFloat(g["border"+f+"Width"]),w=m-t.offsets.popper[h]-y-b;return w=Math.max(Math.min(s[c]-v,w),0),t.arrowElement=r,t.offsets.arrow=(E(n={},h,Math.round(w)),E(n,d,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(B(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=I(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),r=t.placement.split("-")[0],i=L(r),o=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case et:a=[r,i];break;case nt:a=tt(r);break;case rt:a=tt(r,!0);break;default:a=e.behavior}return a.forEach((function(s,u){if(r!==s||a.length===u+1)return t;r=t.placement.split("-")[0],i=L(r);var l=t.offsets.popper,c=t.offsets.reference,f=Math.floor,h="left"===r&&f(l.right)>f(c.left)||"right"===r&&f(l.left)<f(c.right)||"top"===r&&f(l.bottom)>f(c.top)||"bottom"===r&&f(l.top)<f(c.bottom),d=f(l.left)<f(n.left),p=f(l.right)>f(n.right),v=f(l.top)<f(n.top),m=f(l.bottom)>f(n.bottom),g="left"===r&&d||"right"===r&&p||"top"===r&&v||"bottom"===r&&m,y=-1!==["top","bottom"].indexOf(r),b=!!e.flipVariations&&(y&&"start"===o&&d||y&&"end"===o&&p||!y&&"start"===o&&v||!y&&"end"===o&&m),w=!!e.flipVariationsByContent&&(y&&"start"===o&&p||y&&"end"===o&&d||!y&&"start"===o&&m||!y&&"end"===o&&v),_=b||w;(h||g||_)&&(t.flipped=!0,(h||g)&&(r=a[u+1]),_&&(o=function(t){return"end"===t?"start":"start"===t?"end":t}(o)),t.placement=r+(o?"-"+o:""),t.offsets.popper=k({},t.offsets.popper,j(t.instance.popper,t.offsets.reference,t.placement)),t=U(t.instance.modifiers,t,"flip"))})),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],r=t.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),t.placement=L(e),t.offsets.popper=T(i),t}},hide:{order:800,enabled:!0,fn:function(t){if(!Z(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=F(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var n=e.x,r=e.y,i=t.offsets.popper,o=F(t.instance.modifiers,(function(t){return"applyStyle"===t.name})).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==o?o:e.gpuAcceleration,s=d(t.instance.popper),u=S(s),l={position:i.position},c=function(t,e){var n=t.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,s=function(t){return t},u=o(i.width),l=o(r.width),c=-1!==["left","right"].indexOf(t.placement),f=-1!==t.placement.indexOf("-"),h=e?c||f||u%2===l%2?o:a:s,d=e?o:s;return{left:h(u%2===1&&l%2===1&&!f&&e?r.left-1:r.left),top:d(r.top),bottom:d(r.bottom),right:h(r.right)}}(t,window.devicePixelRatio<2||!$),f="bottom"===n?"top":"bottom",h="right"===r?"left":"right",p=V("transform"),v=void 0,m=void 0;if(m="bottom"===f?"HTML"===s.nodeName?-s.clientHeight+c.bottom:-u.height+c.bottom:c.top,v="right"===h?"HTML"===s.nodeName?-s.clientWidth+c.right:-u.width+c.right:c.left,a&&p)l[p]="translate3d("+v+"px, "+m+"px, 0)",l[f]=0,l[h]=0,l.willChange="transform";else{var g="bottom"===f?-1:1,y="right"===h?-1:1;l[f]=m*g,l[h]=v*y,l.willChange=f+", "+h}var b={"x-placement":t.placement};return t.attributes=k({},b,t.attributes),t.styles=k({},l,t.styles),t.arrowStyles=k({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return X(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEac
2h((function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t)})),t.arrowElement&&Object.keys(t.arrowStyles).length&&X(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,r,i){var o=D(i,e,t,n.positionFixed),a=M(n.placement,o,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",a),X(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},at=function(){function t(e,n){var r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=i(this.update.bind(this)),this.options=k({},t.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(k({},t.Defaults.modifiers,a.modifiers)).forEach((function(e){r.options.modifiers[e]=k({},t.Defaults.modifiers[e]||{},a.modifiers?a.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return k({name:t},r.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&o(t.onLoad)&&t.onLoad(r.reference,r.popper,r.options,t,r.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return x(t,[{key:"update",value:function(){return q.call(this)}},{key:"destroy",value:function(){return z.call(this)}},{key:"enableEventListeners",value:function(){return Y.call(this)}},{key:"disableEventListeners",value:function(){return G.call(this)}}]),t}();at.Utils=("undefined"!==typeof window?window:t).PopperUtils,at.placements=Q,at.Defaults=ot,e.a=at}).call(this,n(22))},function(t,e,n){"use strict";var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(t,e){for(var n,s,u=a(t),l=1;l<arguments.length;l++){for(var c in n=Object(arguments[l]))i.call(n,c)&&(u[c]=n[c]);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(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var u,l=[],c=!1,f=-1;function h(){c&&u&&(c=!1,u.length?l=u.concat(l):f=-1,l.length&&d())}function d(){if(!c){var t=s(h);c=!0;for(var e=l.length;e;){for(u=l,l=[];++f<e;)u&&u[f].run();f=-1,e=l.length}u=null,c=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function v(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new p(t,e)),1!==l.length||c||s(d)},p.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(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,n){var r=n(204),i=n(267),o=n(278),a=n(21),s=n(279);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?a(t)?i(t[0],t[1]):r(t):s(t)}},function(t,e,n){var r=n(206),i=n(207),o=n(208),a=n(209),s=n(210);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];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,t.exp
2orts=u},function(t,e,n){var r=n(57);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},function(t,e,n){var r=n(23).Symbol;t.exports=r},function(t,e,n){var r=n(27)(Object,"create");t.exports=r},function(t,e,n){var r=n(230);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e,n){var r=n(250),i=n(257),o=n(46);t.exports=function(t){return o(t)?r(t):i(t)}},function(t,e,n){var r=n(98),i=n(63);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},function(t,e,n){var r=n(33),i=n(35);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},function(t,e,n){var r=n(47);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(6),i=n(54),o=function(){function t(t,e,n){this.name=t,this.instanceFactory=e,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY"}return t.prototype.setInstantiationMode=function(t){return this.instantiationMode=t,this},t.prototype.setMultipleInstances=function(t){return this.multipleInstances=t,this},t.prototype.setServiceProps=function(t){return this.serviceProps=t,this},t}(),a=function(){function t(t,e){this.name=t,this.container=e,this.component=null,this.instances=new Map,this.instancesDeferred=new Map}return t.prototype.get=function(t){void 0===t&&(t="[DEFAULT]");var e=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(e)){var n=new i.Deferred;this.instancesDeferred.set(e,n);try{var r=this.getOrInitializeService(e);r&&n.resolve(r)}catch(o){}}return this.instancesDeferred.get(e).promise},t.prototype.getImmediate=function(t){var e=r.__assign({identifier:"[DEFAULT]",optional:!1},t),n=e.identifier,i=e.optional,o=this.normalizeInstanceIdentifier(n);try{var a=this.getOrInitializeService(o);if(!a){if(i)return null;throw Error("Service "+this.name+" is not available")}return a}catch(s){if(i)return null;throw s}},t.prototype.getComponent=function(){return this.component},t.prototype.setComponent=function(t){var e,n;if(t.name!==this.name)throw Error("Mismatching Component "+t.name+" for Provider "+this.name+".");if(this.component)throw Error("Component for "+this.name+" has already been provided");if(this.component=t,function(t){return"EAGER"===t.instantiationMode}(t))try{this.getOrInitializeService("[DEFAULT]")}catch(f){}try{for(var i=r.__values(this.instancesDeferred.entries()),o=i.next();!o.done;o=i.next()){var a=r.__read(o.value,2),s=a[0],u=a[1],l=this.normalizeInstanceIdentifier(s);try{var c=this.getOrInitializeService(l);u.resolve(c)}catch(f){}}}catch(h){e={error:h}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}},t.prototype.clearInstance=function(t){void 0===t&&(t="[DEFAULT]"),this.instancesDeferred.delete(t),this.instances.delete(t)},t.prototype.delete=function(){return r.__awaiter(this,void 0,void 0,(function(){var t;return r.__generator(this,(function(e){switch(e.label){case 0:return t=Array.from(this.instances.values()),[4,Promise.all(t.filter((function(t){return"INTERNAL"in t})).map((function(t){return t.INTERNAL.delete()})))];case 1:return e.sent(),[2]}}))}))},t.prototype.isComponentSet=function(){return null!=this.component},t.prototype.getOrInitializeService=function(t){var e=this.instances.get(t);return!e&&this.component&&(e=this.component.instanceFactory(this.container,function(t){return"[DEFAULT]"===t?void 0:t}(t)),this.instances.set(t,e)),e||null},t.prototype.normalizeInstanceIdentifier=function(t){return this.component?this.component.multipleInstances?t:"[DEFAULT]":t},t}();var s=function(){function t(t){this.name=t,this.providers=new Map}return t.prototype.addComponent=function(t){var e=this.getProvider(t.name);if(e.isComponentSet())throw new Error("Component "+t.name+" has already been registered with "+this.name);e.setComponent(t)},t.prototype.addOrOverwriteComponent=function(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)},t.prototype.getProvider=function(t){if(this.providers.has(t))return this.providers.get(t);var e=new a(t,this);return this.providers.set(t,e),e},t.prototype.getProviders=function(){return Array.from(this.providers.values())},t}();e.Component=o,e.ComponentContainer=s,e.Provider=a},function(t,e,n){"use strict";var r=function(){};t.exports=r},function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";(function(t){var r=n(0),i=n.n(r),o=n(1),a=n.n(o),s=n(119),u=n.n(s);function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&l(t.prototype,e),n&&l(t,n),t}function f(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}
2function h(){return(h=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){f(t,e,n[e])}))}return t}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function v(t,e){return(v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function g(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function y(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function b(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!t)return"";var n=t;return e&&Object.keys(e).forEach((function(t){n=n.replace(t,e[t])})),n}function w(){return"undefined"!==typeof t.window?t.window.innerWidth:0}var _=27,x=37,E=39,k=function(e){function n(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(e=function(t,e){return!e||"object"!==typeof e&&"function"!==typeof e?m(t):e}(this,p(n).call(this,t))).state={isClosing:!t.animationDisabled,shouldAnimate:!1,zoomLevel:0,offsetX:0,offsetY:0,loadErrorStatus:{}},e.outerEl=i.a.createRef(),e.zoomInBtn=i.a.createRef(),e.zoomOutBtn=i.a.createRef(),e.caption=i.a.createRef(),e.closeIfClickInner=e.closeIfClickInner.bind(m(m(e))),e.handleImageDoubleClick=e.handleImageDoubleClick.bind(m(m(e))),e.handleImageMouseWheel=e.handleImageMouseWheel.bind(m(m(e))),e.handleKeyInput=e.handleKeyInput.bind(m(m(e))),e.handleMouseUp=e.handleMouseUp.bind(m(m(e))),e.handleMouseDown=e.handleMouseDown.bind(m(m(e))),e.handleMouseMove=e.handleMouseMove.bind(m(m(e))),e.handleOuterMousewheel=e.handleOuterMousewheel.bind(m(m(e))),e.handleTouchStart=e.handleTouchStart.bind(m(m(e))),e.handleTouchMove=e.handleTouchMove.bind(m(m(e))),e.handleTouchEnd=e.handleTouchEnd.bind(m(m(e))),e.handlePointerEvent=e.handlePointerEvent.bind(m(m(e))),e.handleCaptionMousewheel=e.handleCaptionMousewheel.bind(m(m(e))),e.handleWindowResize=e.handleWindowResize.bind(m(m(e))),e.handleZoomInButtonClick=e.handleZoomInButtonClick.bind(m(m(e))),e.handleZoomOutButtonClick=e.handleZoomOutButtonClick.bind(m(m(e))),e.requestClose=e.requestClose.bind(m(m(e))),e.requestMoveNext=e.requestMoveNext.bind(m(m(e))),e.requestMovePrev=e.requestMovePrev.bind(m(m(e))),e}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&v(t,e)}(n,e),c(n,null,[{key:"isTargetMatchImage",value:function(t){return t&&/ril-image-current/.test(t.className)}},{key:"parseMouseEvent",value:function(t){return{id:"mouse",source:1,x:parseInt(t.clientX,10),y:parseInt(t.clientY,10)}}},{key:"parseTouchPointer",value:function(t){return{id:t.identifier,source:2,x:parseInt(t.clientX,10),y:parseInt(t.clientY,10)}}},{key:"parsePointerEvent",value:function(t){return{id:t.pointerId,source:3,x:parseInt(t.clientX,10),y:parseInt(t.clientY,10)}}},{key:"getTransform",value:function(t){var e=t.x,n=void 0===e?0:e,r=t.y,i=void 0===r?0:r,o=t.zoom,a=void 0===o?1:o,s=t.width,u=t.targetWidth,l=n,c=w();s>c&&(l+=(c-s)/2);var f=a*(u/s);return{transform:"translate3d(".concat(l,"px,").concat(i,"px,0) scale3d(").concat(f,",").concat(f,",1)")}}}
2]),c(n,[{key:"componentWillMount",value:function(){this.timeouts=[],this.currentAction=0,this.eventsSource=0,this.pointerList=[],this.preventInnerClose=!1,this.preventInnerCloseTimeout=null,this.keyPressed=!1,this.imageCache={},this.lastKeyDownTime=0,this.resizeTimeout=null,this.wheelActionTimeout=null,this.resetScrollTimeout=null,this.scrollX=0,this.scrollY=0,this.moveStartX=0,this.moveStartY=0,this.moveStartOffsetX=0,this.moveStartOffsetY=0,this.swipeStartX=0,this.swipeStartY=0,this.swipeEndX=0,this.swipeEndY=0,this.pinchTouchList=null,this.pinchDistance=0,this.keyCounter=0,this.moveRequested=!1,this.props.animationDisabled||this.setState({isClosing:!1})}},{key:"componentDidMount",value:function(){var e=this;this.windowContext=function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.window.self,r=n.document.referrer;if(n===t.window.top||!r)return n;var i=function(t){return t.match(/(.*\/\/.*?)(\/|$)/)[1]};return i(n.location.href)===i(r)?e(n.parent):n}(),this.listeners={resize:this.handleWindowResize,mouseup:this.handleMouseUp,touchend:this.handleTouchEnd,touchcancel:this.handleTouchEnd,pointerdown:this.handlePointerEvent,pointermove:this.handlePointerEvent,pointerup:this.handlePointerEvent,pointercancel:this.handlePointerEvent},Object.keys(this.listeners).forEach((function(t){e.windowContext.addEventListener(t,e.listeners[t])})),this.loadAllImages()}},{key:"componentWillReceiveProps",value:function(t){var e=this,n=!1,r={},i={};this.getSrcTypes().forEach((function(o){e.props[o.name]!==t[o.name]&&(n=!0,r[e.props[o.name]]=!0,i[t[o.name]]=!0)})),(n||this.moveRequested)&&(Object.keys(r).forEach((function(t){!(t in i)&&t in e.imageCache&&(e.imageCache[t].loaded=!1)})),this.moveRequested=!1,this.loadAllImages(t))}},{key:"shouldComponentUpdate",value:function(){return!this.moveRequested}},{key:"componentWillUnmount",value:function(){var t=this;this.didUnmount=!0,Object.keys(this.listeners).forEach((function(e){t.windowContext.removeEventListener(e,t.listeners[e])})),this.timeouts.forEach((function(t){return clearTimeout(t)}))}},{key:"setTimeout",value:function(t){function e(e,n){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t,e){var n=this,r=setTimeout((function(){n.timeouts=n.timeouts.filter((function(t){return t!==r})),t()}),e);return this.timeouts.push(r),r}))},{key:"setPreventInnerClose",value:function(){var t=this;this.preventInnerCloseTimeout&&this.clearTimeout(this.preventInnerCloseTimeout),this.preventInnerClose=!0,this.preventInnerCloseTimeout=this.setTimeout((function(){t.preventInnerClose=!1,t.preventInnerCloseTimeout=null}),100)}},{key:"getBestImageForType",value:function(t){var e=this.props[t],n={};if(this.isImageLoaded(e))n=this.getFitSizes(this.imageCache[e].width,this.imageCache[e].height);else{if(!this.isImageLoaded(this.props["".concat(t,"Thumbnail")]))return null;e=this.props["".concat(t,"Thumbnail")],n=this.getFitSizes(this.imageCache[e].width,this.imageCache[e].height,!0)}return{src:e,height:this.imageCache[e].height,width:this.imageCache[e].width,targetHeight:n.height,targetWidth:n.width}}},{key:"getFitSizes",value:function(t,e,n){var r=this.getLightboxRect(),i=r.height-2*this.props.imagePadding,o=r.width-2*this.props.imagePadding;return n||(i=Math.min(i,e),o=Math.min(o,t)),o/i>t/e?{width:t*i/e,height:i}:{width:o,height:e*o/t}}},{key:"getMaxOffsets",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.zoomLevel,e=this.getBestImageForType("mainSrc");if(null===e)return{maxX:0,minX:0,maxY:0,minY:0};var n=this.getLightboxRect(),r=this.getZoomMultiplier(t),i=0,o=0;return{maxX:i=r*e.width-n.width<0?(n.width-r*e.width)/2:(r*e.width-n.width)/2,maxY:o=r*e.height-n.height<0?(n.height-r*e.height)/2:(r*e.height-n.height)/2,minX:-1*i,minY:-1*o}}},{key:"getSrcTypes",value:function(){return[{name:"mainSrc",keyEnding:"i".concat(this.keyCounter)},{name:"mainSrcThumbnail",keyEnding:"t".concat(this.keyCounter)},{name:"nextSrc",keyEnding:"i".concat(this.keyCounter+1)},{name:"nextSrcThumbnail",keyEnding:"t".concat(this.keyCounter+1)},{name:"prevSrc",keyEnding:"i".concat(this.keyCounter-1)},{name:"prevSrcThumbnail",keyEnding:"t".concat(this.keyCounter-1)}]}},{key:"getZoomMultiplier",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.state.zoomLevel;return Math.pow(1.007,t)}},{key:"getLightboxRect",value:function(){return this.outerEl.current?this.outerEl.current.getBoundingClientRect():{width:w(),height:"undefined"!==typeof t.window?t.window.innerHeight:0,top:0,right:0,bottom:0,left:0}}},{key:"clearTimeout",value:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){this.timeouts=this.timeouts.filter((function(e){return e!==t})),clearTimeout(t)}))},{key:"changeZoom",value:function(t,e,n){if(this.props.enableZoom){var r=Math.max(0,Math.min(300,t));if(r!==this.state.zoomLevel)if(0!==r){var i=this.getBestImageForType("mainSrc");if(null!==i){var o=this.getZoomMultiplier(),a=this.getZoomMultiplier(r),s=this.getLightboxRect(),u="undefined"!==typeof e?e-s.left:s.width/2,l="undefined"!==typeof n?n-s.top:s.height/2,c=(s.width-i.width*o)/2,f=(s.height-i.height*o)/2,h=u-(u-(c-this.state.offsetX))/o*a,d=l-(l-(f-this.state.offsetY))/o*a,p=(s.width-i.width*a)/2-h,v=(s.height-i.height*a)/2-d;if(3!==this.currentAction){var m=this.getMaxOffsets();this.state.zoomLevel>r&&(p=Math.max(m.minX,Math.min(m.maxX,p)),v=Math.max(m.minY,Math.min(m.maxY,v)))}this.setState({zoomLevel:r,offsetX:p,offsetY:v})}}else this.setState({zoomLevel:r,offsetX:0,offsetY:0})}}},{key:"closeIfClickInner",value:function(t){!this.preventInnerClose&&t.target.className.search(/\bril-inner\b/)>-1&&this.requestClose(t)}},{key:"handleKeyInput",value:function(t){if(t.stopPropagation(),!this.isAnimating())if("keyup"!==t.type){var e=t.which||t.keyCode,n=new Date;if(!(n.getTime()-this.lastKeyDownTime<this.props.keyRepeatLimit&&e!==_))switch(this.lastKeyDownTime=n.getTime(),e){case _:t.preventDefault(),this.requestClose(t);break;case x:if(!this.props.prevSrc)return;t.preventDefault(),this.keyPressed=!0,this.requestMovePrev(t);break;case E:if(!this.props.nextSrc)return;t.preventDefault(),this.keyPressed=!0,this.requestMoveNext(t)}}else this.lastKeyDownTime-=this.props.keyRepeatKeyupBonus}},{key:"handleOuterMousewheel",value:function(t){var e=this;t.stopPropagation();var n=0;if(this.clearTimeout(this.resetScrollTimeout),this.resetScrollTimeout=this.setTimeout((function(){e.scrollX=0,e.scrollY=0}),300),null===this.wheelActionTimeout&&!this.isAnimating()){if(Math.abs(t.deltaY)<Math.abs(t.deltaX)){this.scrollY=0,this.scrollX+=t.deltaX;this.scrollX>=200||t.deltaX>=100?(this.requestMoveNext(t),n=500,this.scrollX=0):(this.scrollX<=-200||t.deltaX<=-100)&&(this.requestMovePrev(t),n=500,this.scrollX=0)}0!==n&&(this.wheelActionTimeout=this.setTimeout((function(){e.wheelActionTimeout=null}),n))}}},{key:"handleImageMouseWheel",value:function(t){if(Math.abs(t.deltaY)>=Math.abs(t.deltaX)){if(t.stopPropagation(),Math.abs(t.deltaY)<1)return;this.scrollX=0,this.scrollY+=t.deltaY,this.changeZoom(this.state.zoomLevel-t.deltaY,t.clientX,t.clientY)}}},{key:"handleImageDoubleClick",value:function(t){this.state.zoomLevel>0?this.changeZoom(0,t.clientX,t.clientY):this.changeZoom(this.state.zoomLevel+100,t.clientX,t.clientY)}},{key:"shouldHandleEvent",value:function(t){if(this.eventsSource===t)return!0;
2if(0===this.eventsSource)return this.eventsSource=t,!0;switch(t){case 1:return!1;case 2:return this.eventsSource=2,this.filterPointersBySource(),!0;case 3:return 1===this.eventsSource&&(this.eventsSource=3,this.filterPointersBySource(),!0);default:return!1}}},{key:"addPointer",value:function(t){this.pointerList.push(t)}},{key:"removePointer",value:function(t){this.pointerList=this.pointerList.filter((function(e){return e.id!==t.id}))}},{key:"filterPointersBySource",value:function(){var t=this;this.pointerList=this.pointerList.filter((function(e){return e.source===t.eventsSource}))}},{key:"handleMouseDown",value:function(t){this.shouldHandleEvent(1)&&n.isTargetMatchImage(t.target)&&(this.addPointer(n.parseMouseEvent(t)),this.multiPointerStart(t))}},{key:"handleMouseMove",value:function(t){this.shouldHandleEvent(1)&&this.multiPointerMove(t,[n.parseMouseEvent(t)])}},{key:"handleMouseUp",value:function(t){this.shouldHandleEvent(1)&&(this.removePointer(n.parseMouseEvent(t)),this.multiPointerEnd(t))}},{key:"handlePointerEvent",value:function(t){if(this.shouldHandleEvent(3))switch(t.type){case"pointerdown":n.isTargetMatchImage(t.target)&&(this.addPointer(n.parsePointerEvent(t)),this.multiPointerStart(t));break;case"pointermove":this.multiPointerMove(t,[n.parsePointerEvent(t)]);break;case"pointerup":case"pointercancel":this.removePointer(n.parsePointerEvent(t)),this.multiPointerEnd(t)}}},{key:"handleTouchStart",value:function(t){var e=this;this.shouldHandleEvent(2)&&n.isTargetMatchImage(t.target)&&([].forEach.call(t.changedTouches,(function(t){return e.addPointer(n.parseTouchPointer(t))})),this.multiPointerStart(t))}},{key:"handleTouchMove",value:function(t){this.shouldHandleEvent(2)&&this.multiPointerMove(t,[].map.call(t.changedTouches,(function(t){return n.parseTouchPointer(t)})))}},{key:"handleTouchEnd",value:function(t){var e=this;this.shouldHandleEvent(2)&&([].map.call(t.changedTouches,(function(t){return e.removePointer(n.parseTouchPointer(t))})),this.multiPointerEnd(t))}},{key:"decideMoveOrSwipe",value:function(t){this.state.zoomLevel<=0?this.handleSwipeStart(t):this.handleMoveStart(t)}},{key:"multiPointerStart",value:function(t){switch(this.handleEnd(null),this.pointerList.length){case 1:t.preventDefault(),this.decideMoveOrSwipe(this.pointerList[0]);break;case 2:t.preventDefault(),this.handlePinchStart(this.pointerList)}}},{key:"multiPointerMove",value:function(t,e){switch(this.currentAction){case 1:t.preventDefault(),this.handleMove(e[0]);break;case 2:t.preventDefault(),this.handleSwipe(e[0]);break;case 3:t.preventDefault(),this.handlePinch(e)}}},{key:"multiPointerEnd",value:function(t){switch(0!==this.currentAction&&(this.setPreventInnerClose(),this.handleEnd(t)),this.pointerList.length){case 0:this.eventsSource=0;break;case 1:t.preventDefault(),this.decideMoveOrSwipe(this.pointerList[0]);break;case 2:t.preventDefault(),this.handlePinchStart(this.pointerList)}}},{key:"handleEnd",value:function(t){switch(this.currentAction){case 1:this.handleMoveEnd(t);break;case 2:this.handleSwipeEnd(t);break;case 3:this.handlePinchEnd(t)}}},{key:"handleMoveStart",value:function(t){var e=t.x,n=t.y;this.props.enableZoom&&(this.currentAction=1,this.moveStartX=e,this.moveStartY=n,this.moveStartOffsetX=this.state.offsetX,this.moveStartOffsetY=this.state.offsetY)}},{key:"handleMove",value:function(t){var e=t.x,n=t.y,r=this.moveStartX-e+this.moveStartOffsetX,i=this.moveStartY-n+this.moveStartOffsetY;this.state.offsetX===r&&this.state.offsetY===i||this.setState({offsetX:r,offsetY:i})}},{key:"handleMoveEnd",value:function(){var t=this;this.currentAction=0,this.moveStartX=0,this.moveStartY=0,this.moveStartOffsetX=0,this.moveStartOffsetY=0;var e=this.getMaxOffsets(),n=Math.max(e.minX,Math.min(e.maxX,this.state.offsetX)),r=Math.max(e.minY,Math.min(e.maxY,this.state.offsetY));n===this.state.offsetX&&r===this.state.offsetY||(this.setState({offsetX:n,offsetY:r,shouldAnimate:!0}),this.setTimeout((function(){t.setState({shouldAnimate:!1})}),this.props.animationDuration))}},{key:"handleSwipeStart",value:function(t){var e=t.x,n=t.y;this.currentAction=2,this.swipeStartX=e,this.swipeStartY=n,this.swipeEndX=e,this.swipeEndY=n}},{key:"handleSwipe",value:function(t){var e=t.x,n=t.y;this.swipeEndX=e,this.swipeEndY=n}},{key:"handleSwipeEnd",value:function(t){var e=this.swipeEndX-this.swipeStartX,n=Math.abs(e),r=Math.abs(this.swipeEndY-this.swipeStartY);if(this.currentAction=0,this.swipeStartX=0,this.swipeStartY=0,this.swipeEndX=0,this.swipeEndY=0,!(!t||this.isAnimating()||n<1.5*r)){if(n<200)if(n<this.getLightboxRect().width/4)return;e>0&&this.props.prevSrc?(t.preventDefault(),this.requestMovePrev()):e<0&&this.props.nextSrc&&(t.preventDefault(),this.requestMoveNext())}}},{key:"calculatePinchDistance",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.pinchTouchList,e=g(t,2),n=e[0],r=e[1];return Math.sqrt(Math.pow(n.x-r.x,2)+Math.pow(n.y-r.y,2))}},{key:"calculatePinchCenter",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.pinchTouchList,e=g(t,2),n=e[0],r=e[1];return{x:n.x-(n.x-r.x)/2,y:n.y-(n.y-r.y)/2}}},{key:"handlePinchStart",value:function(t){this.props.enableZoom&&(this.currentAction=3,this.pinchTouchList=t.map((function(t){return{id:t.id,x:t.x,y:t.y}})),this.pinchDistance=this.calculatePinchDistance())}},{key:"handlePinch",value:function(t){this.pinchTouchList=this.pinchTouchList.map((function(e){for(var n=0;n<t.length;n+=1)if(t[n].id===e.id)return t[n];return e}));var e=this.calculatePinchDistance(),n=this.state.zoomLevel+e-this.pinchDistance;this.pinchDistance=e;var r=this.calculatePinchCenter(this.pinchTouchList),i=r.x,o=r.y;this.changeZoom(n,i,o)}},{key:"handlePinchEnd",value:function(){this.currentAction=0,this.pinchTouchList=null,this.pinchDistance=0}},{key:"handleWindowResize",value:function(){this.clearTimeout(this.resizeTimeout),this.resizeTimeout=this.setTimeout(this.forceUpdate.bind(this),100)}},{key:"handleZoomInButtonClick",value:function(){var t=this.state.zoomLevel+100;this.changeZoom(t),300===t&&this.zoomOutBtn.current.focus()}},{key:"handleZoomOutButtonClick",value:function(){var t=this.state.zoomLevel-100;this.changeZoom(t),0===t&&this.zoomInBtn.current.focus()}},{key:"handleCaptionMousewheel",value:function(t){if(t.stopPropagation(),this.caption.current){var e=this.caption.current.getBoundingClientRect().height,n=this.caption.current,r=n.scrollHeight,i=n.scrollTop;(t.deltaY>0&&e+i>=r||t.deltaY<0&&i<=0)&&t.preventDefault()}}},{key:"isAnimating",value:function(){return this.state.shouldAnimate||this.state.isClosing}},{key:"isImageLoaded",value:function(t){return t&&t in this.imageCache&&this.imageCache[t].loaded}},{key:"loadImage",value:function(e,n,r){var i=this;if(this.isImageLoaded(n))this.setTimeout((function(){r()}),1);else{var o=new t.Image;this.props.imageCrossOrigin&&(o.crossOrigin=this.props.imageCrossOrigin),o.onerror=function(t){i.props.onImageLoadError(n,e,t),i.setState((function(t){return{loadErrorStatus:d({},t.loadErrorStatus,f({},e,!0))}})),r(t)},o.onload=function(){i.props.onImageLoad(n,e,o),i.imageCache[n]={loaded:!0,width:o.width,height:o.height},r()},o.src=n}}},{key:"loadAllImages",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,n=function(e,n){return function(r){r||t.props[e]!==n||t.didUnmount||t.forceUpdate()}};
2this.getSrcTypes().forEach((function(r){var i=r.name;e[i]&&t.state.loadErrorStatus[i]&&t.setState((function(t){return{loadErrorStatus:d({},t.loadErrorStatus,f({},i,!1))}})),e[i]&&!t.isImageLoaded(e[i])&&t.loadImage(i,e[i],n(i,e[i]))}))}},{key:"requestClose",value:function(t){var e=this,n=function(){return e.props.onCloseRequest(t)};this.props.animationDisabled||"keydown"===t.type&&!this.props.animationOnKeyInput?n():(this.setState({isClosing:!0}),this.setTimeout(n,this.props.animationDuration))}},{key:"requestMove",value:function(t,e){var n=this,r={zoomLevel:0,offsetX:0,offsetY:0};this.props.animationDisabled||this.keyPressed&&!this.props.animationOnKeyInput||(r.shouldAnimate=!0,this.setTimeout((function(){return n.setState({shouldAnimate:!1})}),this.props.animationDuration)),this.keyPressed=!1,this.moveRequested=!0,"prev"===t?(this.keyCounter-=1,this.setState(r),this.props.onMovePrevRequest(e)):(this.keyCounter+=1,this.setState(r),this.props.onMoveNextRequest(e))}},{key:"requestMoveNext",value:function(t){this.requestMove("next",t)}},{key:"requestMovePrev",value:function(t){this.requestMove("prev",t)}},{key:"render",value:function(){var e=this,r=this.props,o=r.animationDisabled,a=r.animationDuration,s=r.clickOutsideToClose,l=r.discourageDownloads,c=r.enableZoom,f=r.imageTitle,p=r.nextSrc,v=r.prevSrc,m=r.toolbarButtons,g=r.reactModalStyle,w=r.onAfterOpen,_=r.imageCrossOrigin,x=r.reactModalProps,E=this.state,k=E.zoomLevel,T=E.offsetX,S=E.offsetY,O=E.isClosing,A=E.loadErrorStatus,C=this.getLightboxRect(),N={};!o&&this.isAnimating()&&(N=d({},N,{transition:"transform ".concat(a,"ms")}));var I={};this.getSrcTypes().forEach((function(t){var e=t.name,n=t.keyEnding;I[e]=n}));var P=[],M=function(t,r,o){if(e.props[t]){var a=e.getBestImageForType(t),s=d({},N,n.getTransform(d({},o,a)));k>0&&(s.cursor="move");var u;if(null===a&&(u=A,Object.keys(u).some((function(t){return u[t]}))))P.push(i.a.createElement("div",{className:"".concat(r," ril__image ril-errored"),style:s,key:e.props[t]+I[t]},i.a.createElement("div",{className:"ril__errorContainer"},e.props.imageLoadErrorMessage)));else if(null!==a){var c=a.src;l?(s.backgroundImage="url('".concat(c,"')"),P.push(i.a.createElement("div",{className:"".concat(r," ril__image ril__imageDiscourager"),onDoubleClick:e.handleImageDoubleClick,onWheel:e.handleImageMouseWheel,style:s,key:c+I[t]},i.a.createElement("div",{className:"ril-download-blocker ril__downloadBlocker"})))):P.push(i.a.createElement("img",h({},_?{crossOrigin:_}:{},{className:"".concat(r," ril__image"),onDoubleClick:e.handleImageDoubleClick,onWheel:e.handleImageMouseWheel,onDragStart:function(t){return t.preventDefault()},style:s,src:c,key:c+I[t],alt:"string"===typeof f?f:b("Image"),draggable:!1})))}else{var p=i.a.createElement("div",{className:"ril-loading-circle ril__loadingCircle ril__loadingContainer__icon"},y(new Array(12)).map((function(t,e){return i.a.createElement("div",{key:e,className:"ril-loading-circle-point ril__loadingCirclePoint"})})));P.push(i.a.createElement("div",{className:"".concat(r," ril__image ril-not-loaded"),style:s,key:e.props[t]+I[t]},i.a.createElement("div",{className:"ril__loadingContainer"},p)))}}},D=this.getZoomMultiplier();M("nextSrc","ril-image-next ril__imageNext",{x:C.width}),M("mainSrc","ril-image-current",{x:-1*T,y:-1*S,zoom:D}),M("prevSrc","ril-image-prev ril__imagePrev",{x:-1*C.width});var R={overlay:d({zIndex:1e3,backgroundColor:"transparent"},g.overlay),content:d({backgroundColor:"transparent",overflow:"hidden",border:"none",borderRadius:0,padding:0,top:0,left:0,right:0,bottom:0},g.content)};return i.a.createElement(u.a,h({isOpen:!0,onRequestClose:s?this.requestClose:void 0,onAfterOpen:function(){e.outerEl.current&&e.outerEl.current.focus(),w()},style:R,contentLabel:b("Lightbox"),appElement:"undefined"!==typeof t.window?t.window.document.body:void 0},x),i.a.createElement("div",{className:"ril-outer ril__outer ril__outerAnimating ".concat(this.props.wrapperClassName," ").concat(O?"ril-closing ril__outerClosing":""),style:{transition:"opacity ".concat(a,"ms"),animationDuration:"".concat(a,"ms"),animationDirection:O?"normal":"reverse"},ref:this.outerEl,onWheel:this.handleOuterMousewheel,onMouseMove:this.handleMouseMove,onMouseDown:this.handleMouseDown,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,tabIndex:"-1",onKeyDown:this.handleKeyInput,onKeyUp:this.handleKeyInput},i.a.createElement("div",{className:"ril-inner ril__inner",onClick:s?this.closeIfClickInner:void 0},P),v&&i.a.createElement("button",{type:"button",className:"ril-prev-button ril__navButtons ril__navButtonPrev",key:"prev","aria-label":this.props.prevLabel,onClick:this.isAnimating()?void 0:this.requestMovePrev}),p&&i.a.createElement("button",{type:"button",className:"ril-next-button ril__navButtons ril__navButtonNext",key:"next","aria-label":this.props.nextLabel,onClick:this.isAnimating()?void 0:this.requestMoveNext}),i.a.createElement("div",{className:"ril-toolbar ril__toolbar"},i.a.createElement("ul",{className:"ril-toolbar-left ril__toolbarSide ril__toolbarLeftSide"},i.a.createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},i.a.createElement("span",{className:"ril-toolbar__item__child ril__toolbarItemChild"},f))),i.a.createElement("ul",{className:"ril-toolbar-right ril__toolbarSide ril__toolbarRightSide"},m&&m.map((function(t,e){return i.a.createElement("li",{key:"button_".concat(e+1),className:"ril-toolbar__item ril__toolbarItem"},t)})),c&&i.a.createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},i.a.createElement("button",{type:"button",key:"zoom-in","aria-label":this.props.zoomInLabel,className:["ril-zoom-in","ril__toolbarItemChild","ril__builtinButton","ril__zoomInButton"].concat(y(300===k?["ril__builtinButtonDisabled"]:[])).join(" "),ref:this.zoomInBtn,disabled:this.isAnimating()||300===k,onClick:this.isAnimating()||300===k?void 0:this.handleZoomInButtonClick})),c&&i.a.createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},i.a.createElement("button",{type:"button",key:"zoom-out","aria-label":this.props.zoomOutLabel,className:["ril-zoom-out","ril__toolbarItemChild","ril__builtinButton","ril__zoomOutButton"].concat(y(0===k?["ril__builtinButtonDisabled"]:[])).join(" "),ref:this.zoomOutBtn,disabled:this.isAnimating()||0===k,onClick:this.isAnimating()||0===k?void 0:this.handleZoomOutButtonClick})),i.a.createElement("li",{className:"ril-toolbar__item ril__toolbarItem"},i.a.createElement("button",{type:"button",key:"close","aria-label":this.props.closeLabel,className:"ril-close ril-toolbar__item__child ril__toolbarItemChild ril__builtinButton ril__closeButton",onClick:this.isAnimating()?void 0:this.requestClose})))),this.props.imageCaption&&i.a.createElement("div",{onWheel:this.handleCaptionMousewheel,onMouseDown:function(t){return t.stopPropagation()},className:"ril-caption ril__caption",ref:this.caption},i.a.createElement("div",{className:"ril-caption-content ril__captionContent"},this.props.imageCaption))))}}]),n}(r.Component);k.propTypes={mainSrc:a.a.string.isRequired,prevSrc:a.a.string,nextSrc:a.a.string,mainSrcThumbnail:a.a.string,prevSrcThumbnail:a.a.string,nextSrcThumbnail:a.a.string,onCloseRequest:a.a.func.isRequired,onMovePrevRequest:a.a.func,onMoveNextRequest:a.a.func,onImageLoadError:a.a.func,onImageLoad:a.a.func,onAfterOpen:a.a.func,discourageDownloads:a.a.bool,animationDisabled:a.a.bool,animationOnKeyInput:a.a.bool,animationDuration:a.a.number,keyRepeatLimit:a.a.number,keyRepeatKeyupBonus:a.a.number,imageTitle:a.a.node,imageCaption:a.a.node,imageCrossOrigin:a.a.string,reactModalStyle:a.a.shape({}),imagePadding:a.a.number,wrapperClassName:a.a.string,toolbarButtons:a.a.arrayOf(a.a.node),clickOutsideToClose:a.a.bool,enableZoom:a.a.bool,reactModalProps:a.a.shape({}),nextLabel:a.a.string,prevLabel:a.a.string,zoomInLabel:a.a.string,zoomOutLabel:a.a.string,closeLabel:a.a.string,imageLoadErrorMessage:a.a.node},k.defaultProps={imageTitle:null,imageCaption:null,toolbarButtons:null,reactModalProps:{},animationDisabled:!1,animationDuration:300,animationOnKeyInput:!1,clickOutsideToClose:!0,closeLabel:"Close lightbox",discourageDownloads:!1,enableZoom:!0,imagePadding:10,imageCrossOrigin:null,keyRepeatKeyupBonus:40,keyRepeatLimit:180,mainSrcThumbnail:null,nextLabel:"Next image",nextSrc:null,nextSrcThumbnail:null,onAfterOpen:function(){},onImageLoadError:function(){},onImageLoad:function(){},onMoveNextRequest:function(){},onMovePrevRequest:function(){},prevLabel:"Previous image",prevSrc:null,prevSrcThumbnail:null,reactModalStyle:{},wrapperClassName:"",zoomInLabel:"Zoom in",zoomOutLabel:"Zoom out",imageLoadErrorMessage:"This image failed to load"},e.a=k}).call(this,n(22))},,function(t,e,n){"use strict";
2(function(t){Object.defineProperty(e,"__esModule",{value:!0});var r=n(6),i={NODE_CLIENT:!1,NODE_ADMIN:!1,SDK_VERSION:"${JSCORE_VERSION}"},o=function(t,e){if(!t)throw a(e)},a=function(t){return new Error("Firebase Database ("+i.SDK_VERSION+") INTERNAL ASSERT FAILED: "+t)},s=function(t){for(var e=[],n=0,r=0;r<t.length;r++){var i=t.charCodeAt(r);i<128?e[n++]=i:i<2048?(e[n++]=i>>6|192,e[n++]=63&i|128):55296===(64512&i)&&r+1<t.length&&56320===(64512&t.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&t.charCodeAt(++r)),e[n++]=i>>18|240,e[n++]=i>>12&63|128,e[n++]=i>>6&63|128,e[n++]=63&i|128):(e[n++]=i>>12|224,e[n++]=i>>6&63|128,e[n++]=63&i|128)}return e},u={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"===typeof atob,encodeByteArray:function(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var n=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[],i=0;i<t.length;i+=3){var o=t[i],a=i+1<t.length,s=a?t[i+1]:0,u=i+2<t.length,l=u?t[i+2]:0,c=o>>2,f=(3&o)<<4|s>>4,h=(15&s)<<2|l>>6,d=63&l;u||(d=64,a||(h=64)),r.push(n[c],n[f],n[h],n[d])}return r.join("")},encodeString:function(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(s(t),e)},decodeString:function(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):function(t){for(var e=[],n=0,r=0;n<t.length;){var i=t[n++];if(i<128)e[r++]=String.fromCharCode(i);else if(i>191&&i<224){var o=t[n++];e[r++]=String.fromCharCode((31&i)<<6|63&o)}else if(i>239&&i<365){var a=((7&i)<<18|(63&(o=t[n++]))<<12|(63&(s=t[n++]))<<6|63&t[n++])-65536;e[r++]=String.fromCharCode(55296+(a>>10)),e[r++]=String.fromCharCode(56320+(1023&a))}else{o=t[n++];var s=t[n++];e[r++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&s)}}return e.join("")}(this.decodeStringToByteArray(t,e))},decodeStringToByteArray:function(t,e){this.init_();for(var n=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[],i=0;i<t.length;){var o=n[t.charAt(i++)],a=i<t.length?n[t.charAt(i)]:0,s=++i<t.length?n[t.charAt(i)]:64,u=++i<t.length?n[t.charAt(i)]:64;if(++i,null==o||null==a||null==s||null==u)throw Error();var l=o<<2|a>>4;if(r.push(l),64!==s){var c=a<<4&240|s>>2;if(r.push(c),64!==u){var f=s<<6&192|u;r.push(f)}}}return r},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var t=0;t<this.ENCODED_VALS.length;t++)this.byteToCharMap_[t]=this.ENCODED_VALS.charAt(t),this.charToByteMap_[this.byteToCharMap_[t]]=t,this.byteToCharMapWebSafe_[t]=this.ENCODED_VALS_WEBSAFE.charAt(t),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[t]]=t,t>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}},l=function(t){try{return u.decodeString(t,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};function c(t,e){if(!(e instanceof Object))return e;switch(e.constructor){case Date:return new Date(e.getTime());case Object:void 0===t&&(t={});break;case Array:t=[];break;default:return e}for(var n in e)e.hasOwnProperty(n)&&(t[n]=c(t[n],e[n]));return t}var f=function(){function t(){var t=this;this.reject=function(){},this.resolve=function(){},this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n}))}return t.prototype.wrapCallback=function(t){var e=this;return function(n,r){n?e.reject(n):e.resolve(r),"function"===typeof t&&(e.promise.catch((function(){})),1===t.length?t(n):t(n,r))}},t}();function h(){return"undefined"!==typeof navigator&&"string"===typeof navigator.userAgent?navigator.userAgent:""}function d(){try{return"[object process]"===Object.prototype.toString.call(t.process)}catch(e){return!1}}var p=function(t){function e(n,r){var i=t.call(this,r)||this;return i.code=n,i.name="FirebaseError",Object.setPrototypeOf(i,e.prototype),Error.captureStackTrace&&Error.captureStackTrace(i,v.prototype.create),i}return r.__extends(e,t),e}(Error),v=function(){function t(t,e,n){this.service=t,this.serviceName=e,this.errors=n}return t.prototype.create=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=e[0]||{},i=this.service+"/"+t,o=this.errors[t],a=o?m(o,r):"Error",s=this.serviceName+": "+a+" ("+i+").",u=new p(i,s),l=0,c=Object.keys(r);l<c.length;l++){var f=c[l];"_"!==f.slice(-1)&&(f in u&&console.warn('Overwriting FirebaseError base field "'+f+'" can cause unexpected behavior.'),u[f]=r[f])}return u},t}();function m(t,e){return t.replace(g,(function(t,n){var r=e[n];return null!=r?String(r):"<"+n+"?>"}))}var g=/\{\$([^}]+)}/g;function y(t){return JSON.parse(t)}var b=function(t){var e={},n={},r={},i="";try{var o=t.split(".");
2e=y(l(o[0])||""),n=y(l(o[1])||""),i=o[2],r=n.d||{},delete n.d}catch(a){}return{header:e,claims:n,data:r,signature:i}};var w=function(){function t(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(var t=1;t<this.blockSize;++t)this.pad_[t]=0;this.reset()}return t.prototype.reset=function(){this.chain_[0]=1732584193,this.chain_[1]=4023233417,this.chain_[2]=2562383102,this.chain_[3]=271733878,this.chain_[4]=3285377520,this.inbuf_=0,this.total_=0},t.prototype.compress_=function(t,e){e||(e=0);var n=this.W_;if("string"===typeof t)for(var r=0;r<16;r++)n[r]=t.charCodeAt(e)<<24|t.charCodeAt(e+1)<<16|t.charCodeAt(e+2)<<8|t.charCodeAt(e+3),e+=4;else for(r=0;r<16;r++)n[r]=t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3],e+=4;for(r=16;r<80;r++){var i=n[r-3]^n[r-8]^n[r-14]^n[r-16];n[r]=4294967295&(i<<1|i>>>31)}var o,a,s=this.chain_[0],u=this.chain_[1],l=this.chain_[2],c=this.chain_[3],f=this.chain_[4];for(r=0;r<80;r++){r<40?r<20?(o=c^u&(l^c),a=1518500249):(o=u^l^c,a=1859775393):r<60?(o=u&l|c&(u|l),a=2400959708):(o=u^l^c,a=3395469782);i=(s<<5|s>>>27)+o+f+a+n[r]&4294967295;f=c,c=l,l=4294967295&(u<<30|u>>>2),u=s,s=i}this.chain_[0]=this.chain_[0]+s&4294967295,this.chain_[1]=this.chain_[1]+u&4294967295,this.chain_[2]=this.chain_[2]+l&4294967295,this.chain_[3]=this.chain_[3]+c&4294967295,this.chain_[4]=this.chain_[4]+f&4294967295},t.prototype.update=function(t,e){if(null!=t){void 0===e&&(e=t.length);for(var n=e-this.blockSize,r=0,i=this.buf_,o=this.inbuf_;r<e;){if(0===o)for(;r<=n;)this.compress_(t,r),r+=this.blockSize;if("string"===typeof t){for(;r<e;)if(i[o]=t.charCodeAt(r),++r,++o===this.blockSize){this.compress_(i),o=0;break}}else for(;r<e;)if(i[o]=t[r],++r,++o===this.blockSize){this.compress_(i),o=0;break}}this.inbuf_=o,this.total_+=e}},t.prototype.digest=function(){var t=[],e=8*this.total_;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var n=this.blockSize-1;n>=56;n--)this.buf_[n]=255&e,e/=256;this.compress_(this.buf_);var r=0;for(n=0;n<5;n++)for(var i=24;i>=0;i-=8)t[r]=this.chain_[n]>>i&255,++r;return t},t}();var _=function(){function t(t,e){var n=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=e,this.task.then((function(){t(n)})).catch((function(t){n.error(t)}))}return t.prototype.next=function(t){this.forEachObserver((function(e){e.next(t)}))},t.prototype.error=function(t){this.forEachObserver((function(e){e.error(t)})),this.close(t)},t.prototype.complete=function(){this.forEachObserver((function(t){t.complete()})),this.close()},t.prototype.subscribe=function(t,e,n){var r,i=this;if(void 0===t&&void 0===e&&void 0===n)throw new Error("Missing Observer.");void 0===(r=function(t,e){if("object"!==typeof t||null===t)return!1;for(var n=0,r=e;n<r.length;n++){var i=r[n];if(i in t&&"function"===typeof t[i])return!0}return!1}(t,["next","error","complete"])?t:{next:t,error:e,complete:n}).next&&(r.next=x),void 0===r.error&&(r.error=x),void 0===r.complete&&(r.complete=x);var o=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then((function(){try{i.finalError?r.error(i.finalError):r.complete()}catch(t){}})),this.observers.push(r),o},t.prototype.unsubscribeOne=function(t){void 0!==this.observers&&void 0!==this.observers[t]&&(delete this.observers[t],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))},t.prototype.forEachObserver=function(t){if(!this.finalized)for(var e=0;e<this.observers.length;e++)this.sendOne(e,t)},t.prototype.sendOne=function(t,e){var n=this;this.task.then((function(){if(void 0!==n.observers&&void 0!==n.observers[t])try{e(n.observers[t])}catch(r){"undefined"!==typeof console&&console.error&&console.error(r)}}))},t.prototype.close=function(t){var e=this;this.finalized||(this.finalized=!0,void 0!==t&&(this.finalError=t),this.task.then((function(){e.observers=void 0,e.onNoObservers=void 0})))},t}();function x(){}function E(t,e,n){var r="";switch(e){case 1:r=n?"first":"First";break;case 2:r=n?"second":"Second";break;case 3:r=n?"third":"Third";break;case 4:r=n?"fourth":"Fourth";break;default:throw new Error("errorPrefix called with argumentNumber > 4.  Need to update it?")}var i=t+" failed: ";return i+=r+" argument "}e.CONSTANTS=i,e.Deferred=f,e.ErrorFactory=v,e.FirebaseError=p,e.Sha1=w,e.areCookiesEnabled=function(){return!(!navigator||!navigator.cookieEnabled)},e.assert=o,e.assertionError=a,e.async=function(t,e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];Promise.resolve(!0).then((function(){t.apply(void 0,n)})).catch((function(t){e&&e(t)}
2))}},e.base64=u,e.base64Decode=l,e.base64Encode=function(t){var e=s(t);return u.encodeByteArray(e,!0)},e.contains=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.createSubscribe=function(t,e){var n=new _(t,e);return n.subscribe.bind(n)},e.decode=b,e.deepCopy=function(t){return c(void 0,t)},e.deepExtend=c,e.errorPrefix=E,e.getUA=h,e.isAdmin=function(t){var e=b(t).claims;return"object"===typeof e&&!0===e.admin},e.isBrowser=function(){return"object"===typeof self&&self.self===self},e.isBrowserExtension=function(){var t="object"===typeof chrome?chrome.runtime:"object"===typeof browser?browser.runtime:void 0;return"object"===typeof t&&void 0!==t.id},e.isElectron=function(){return h().indexOf("Electron/")>=0},e.isEmpty=function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0},e.isIE=function(){var t=h();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0},e.isIndexedDBAvailable=function(){return"indexedDB"in self&&null!==indexedDB},e.isMobileCordova=function(){return"undefined"!==typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(h())},e.isNode=d,e.isNodeSdk=function(){return!0===i.NODE_CLIENT||!0===i.NODE_ADMIN},e.isReactNative=function(){return"object"===typeof navigator&&"ReactNative"===navigator.product},e.isSafari=function(){return!d()&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")},e.isUWP=function(){return h().indexOf("MSAppHost/")>=0},e.isValidFormat=function(t){var e=b(t).claims;return!!e&&"object"===typeof e&&e.hasOwnProperty("iat")},e.isValidTimestamp=function(t){var e=b(t).claims,n=Math.floor((new Date).getTime()/1e3),r=0,i=0;return"object"===typeof e&&(e.hasOwnProperty("nbf")?r=e.nbf:e.hasOwnProperty("iat")&&(r=e.iat),i=e.hasOwnProperty("exp")?e.exp:r+86400),!!n&&!!r&&!!i&&n>=r&&n<=i},e.issuedAtTime=function(t){var e=b(t).claims;return"object"===typeof e&&e.hasOwnProperty("iat")?e.iat:null},e.jsonEval=y,e.map=function(t,e,n){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=e.call(n,t[i],i,t));return r},e.querystring=function(t){for(var e=[],n=function(t,n){Array.isArray(n)?n.forEach((function(n){e.push(encodeURIComponent(t)+"="+encodeURIComponent(n))})):e.push(encodeURIComponent(t)+"="+encodeURIComponent(n))},r=0,i=Object.entries(t);r<i.length;r++){var o=i[r];n(o[0],o[1])}return e.length?"&"+e.join("&"):""},e.querystringDecode=function(t){var e={};return t.replace(/^\?/,"").split("&").forEach((function(t){if(t){var n=t.split("=");e[n[0]]=n[1]}})),e},e.safeGet=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0},e.stringLength=function(t){for(var e=0,n=0;n<t.length;n++){var r=t.charCodeAt(n);r<128?e++:r<2048?e+=2:r>=55296&&r<=56319?(e+=4,n++):e+=3}return e},e.stringToByteArray=function(t){for(var e=[],n=0,r=0;r<t.length;r++){var i=t.charCodeAt(r);if(i>=55296&&i<=56319){var a=i-55296;r++,o(r<t.length,"Surrogate pair missing trail surrogate."),i=65536+(a<<10)+(t.charCodeAt(r)-56320)}i<128?e[n++]=i:i<2048?(e[n++]=i>>6|192,e[n++]=63&i|128):i<65536?(e[n++]=i>>12|224,e[n++]=i>>6&63|128,e[n++]=63&i|128):(e[n++]=i>>18|240,e[n++]=i>>12&63|128,e[n++]=i>>6&63|128,e[n++]=63&i|128)}return e},e.stringify=function(t){return JSON.stringify(t)},e.validateArgCount=function(t,e,n,r){var i;if(r<e?i="at least "+e:r>n&&(i=0===n?"none":"no more than "+n),i)throw new Error(t+" failed: Was called with "+r+(1===r?" argument.":" arguments.")+" Expects "+i+".")},e.validateCallback=function(t,e,n,r){if((!r||n)&&"function"!==typeof n)throw new Error(E(t,e,r)+"must be a valid function.")},e.validateContextObject=function(t,e,n,r){if((!r||n)&&("object"!==typeof n||null===n))throw new Error(E(t,e,r)+"must be a valid context object.")},e.validateIndexedDBOpenable=function(){return new Promise((function(t,e){try{var n=!0,r="validate-browser-context-for-indexeddb-analytics-module",i=window.indexedDB.open(r);i.onsuccess=function(){i.result.close(),n||window.indexedDB.deleteDatabase(r),t(!0)},i.onupgradeneeded=function(){n=!1},i.onerror=function(){var t;e((null===(t=i.error)||void 0===t?void 0:t.message)||"")}}catch(o){e(o)}}))},e.validateNamespace=function(t,e,n,r){if((!r||n)&&"string"!==typeof n)throw new Error(E(t,e,r)+"must be a valid firebase namespace.")}}).call(this,n(22))},function(t,e,n){"use strict";var r=n(146);t.exports=Function.prototype.bind||r},function(t,e,n){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0}),e.canUseDOM=void 0;var r,i=n(190);var o=((r=i)&&r.__esModule?r:{default:r}).default,a=o.canUseDOM?window.HTMLElement:{};e.canUseDOM=o.canUseDOM;e.default=a},function(t,e){t.exports=function(t,e){return t===e||t!==t&&e!==e}},function(t,e,n){var r=n(27)(n(23),"Map");t.exports=r},function(t,e,n){var r=n(222),i=n(229),o=n(231),a=n(232),s=n(233);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];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,t.exports=u},function(t,e,n){var r=n(234),i=n(35);t.exports=function t(e,n,o,a,s){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!==e&&n!==n:r(e,n,o,a,t,s))}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],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}}),t.webpackPolyfill=1),t}},function(t,e){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,e,n){var r=n(21),i=n(47),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||(a.test(t)||!o.test(t)||null!=e&&t in Object(e))}},function(t,e,n){"use strict";(function(e){var n="__global_unique_id__";t.exports=function(){return e[n]=(e[n]||0)+1}}).call(this,n(22))},function(t,e,n){"use strict";(function(t){var n,r,i,o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s="undefined"!==typeof Symbol?Symbol("immer-nothing"):(i=!0,(r="immer-nothing")in(n={})?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i,n),u="undefined"!==typeof Symbol?Symbol("immer-state"):"__$immer_state";function l(t){return!!t&&!!t[u]}function c(t){if(!t)return!1;if("object"!==("undefined"===typeof t?"undefined":o(t)))return!1;if(Array.isArray(t))return!0;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}var f=Object.assign||function(t,e){for(var n in e)p(e,n)&&(t[n]=e[n]);return t};function h(t){if(Array.isArray(t))return t.slice();var e=void 0===t.__proto__?Object.create(null):{};return f(e,t)}function d(t,e){if(Array.isArray(t))for(var n=0;n<t.length;n++)e(n,t[n],t);else for(var r in t)e(r,t[r],t)}function p(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function v(t,e){return t===e?0!==t||1/t===1/e:t!==t&&e!==e}function m(t,e,n,r){Array.isArray(t.base)?function(t,e,n,r){for(var i=t.base,o=t.copy,a=t.assigned,s=Math.min(i.length,o.length),u=0;u<s;u++)if(a[u]&&i[u]!==o[u]){var l=e.concat(u);n.push({op:"replace",path:l,value:o[u]}),r.push({op:"replace",path:l,value:i[u]})}if(s<o.length){for(var c=s;c<o.length;c++)n.push({op:"add",path:e.concat(c),value:o[c]});r.push({op:"replace",path:e.concat("length"),value:i.length})}else if(s<i.length){n.push({op:"replace",path:e.concat("length"),value:o.length});for(var f=s;f<i.length;f++)r.push({op:"add",path:e.concat(f),value:i[f]})}}(t,e,n,r):function(t,e,n,r){var i=t.base,o=t.copy;d(t.assigned,(function(t,a){var s=i[t],u=o[t],l=a?t in i?"replace":"add":"remove";if(s!==i||"replace"!==l){var c=e.concat(t);n.push("remove"===l?{op:l,path:c}:{op:l,path:c,value:u}),r.push("add"===l?{op:"remove",path:c}:"remove"===l?{op:"add",path:c,value:s}:{op:"replace",path:c,value:s})}}))}(t,e,n,r)}var g={},y=[],b=function(){return y[y.length-1]};function w(t,e){var n=void 0;if(l(t)){var r=t[u];r.finalizing=!0,n=h(r.draft),r.finalizing=!1}else n=h(t);d(t,(function(t){Object.defineProperty(n,""+t,function(t){return g[t]||(g[t]={configurable:!0,enumerable:!0,get:function(){return function(t,e){T(t);var n=x(t)[e];if(!t.finalizing&&n===t.base[e]&&c(n))return k(t),t.copy[e]=w(n,t);return n}(this[u],t)}
2,set:function(e){!function(t,e,n){if(T(t),t.assigned[e]=!0,!t.modified){if(v(x(t)[e],n))return;E(t),k(t)}t.copy[e]=n}(this[u],t,e)}})}(""+t))}));var i={scope:e?e.scope:b(),modified:!1,finalizing:!1,finalized:!1,assigned:{},parent:e,base:t,draft:n,copy:null,revoke:_,revoked:!1};return function(t,e,n){Object.defineProperty(t,e,{value:n,enumerable:!1,writable:!0})}(n,u,i),i.scope.push(i),n}function _(){this.revoked=!0}function x(t){return t.copy||t.base}function E(t){t.modified||(t.modified=!0,t.parent&&E(t.parent))}function k(t){t.copy||(t.copy=h(t.base))}function T(t){if(!0===t.revoked)throw new Error("Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+JSON.stringify(t.copy||t.base))}function S(t){for(var e=t.base,n=t.draft,r=Object.keys(n),i=r.length-1;i>=0;i--)if(void 0===e[r[i]]&&!p(e,r[i]))return!0;return r.length!==Object.keys(e).length}function O(t){var e=t.draft;if(e.length!==t.base.length)return!0;var n=Object.getOwnPropertyDescriptor(e,e.length-1);return!(!n||n.get)}var A=Object.freeze({scopes:y,currentScope:b,willFinalize:function(t,e,n){var r=b();r.forEach((function(t){return t.finalizing=!0})),void 0!==t&&t!==e||(n&&function t(e){if(!e||"object"!==("undefined"===typeof e?"undefined":o(e)))return;var n=e[u];if(!n)return;var r=n.base,i=n.draft,a=n.assigned;if(Array.isArray(e)){if(O(n)){if(E(n),a.length=!0,i.length<r.length)for(var s=i.length;s<r.length;s++)a[s]=!1;else for(var l=r.length;l<i.length;l++)a[l]=!0;for(var c=0;c<i.length;c++)void 0===a[c]&&t(i[c])}}
2else Object.keys(i).forEach((function(e){void 0!==r[e]||p(r,e)?a[e]||t(i[e]):(a[e]=!0,E(n))})),Object.keys(r).forEach((function(t){void 0!==i[t]||p(i,t)||(a[t]=!1,E(n))}))}(e),function(t){for(var e=t.length-1;e>=0;e--){var n=t[e];!1===n.modified&&(Array.isArray(n.base)?O(n)&&E(n):S(n)&&E(n))}}(r))},createDraft:w}),C=[],N=function(){return C[C.length-1]};function I(t,e){var n={scope:e?e.scope:N(),modified:!1,finalized:!1,assigned:{},parent:e,base:t,draft:null,drafts:{},copy:null,revoke:null},r=Array.isArray(t)?Proxy.revocable([n],M):Proxy.revocable(n,P),i=r.revoke,o=r.proxy;return n.draft=o,n.revoke=i,n.scope.push(n),o}var P={get:function(t,e){if(e===u)return t;var n=t.drafts;if(!t.modified&&p(n,e))return n[e];var r=D(t)[e];if(t.finalized||!c(r))return r;if(t.modified){if(r!==t.base[e])return r;n=t.copy}return n[e]=I(r,t)},has:function(t,e){return e in D(t)},ownKeys:function(t){return Reflect.ownKeys(D(t))},set:function(t,e,n){if(!t.modified){if(n?v(t.base[e],n)||n===t.drafts[e]:v(t.base[e],n)&&e in t.base)return!0;R(t)}return t.assigned[e]=!0,t.copy[e]=n,!0},deleteProperty:function(t,e){(void 0!==t.base[e]||e in t.base)&&(t.assigned[e]=!1,R(t));t.copy&&delete t.copy[e];return!0},getOwnPropertyDescriptor:function(t,e){var n=t.modified?t.copy:p(t.drafts,e)?t.drafts:t.base,r=Reflect.getOwnPropertyDescriptor(n,e);!r||Array.isArray(n)&&"length"===e||(r.configurable=!0);return r},defineProperty:function(){throw new Error("Immer does not support defining properties on draft objects.")},setPrototypeOf:function(){throw new Error("Immer does not support `setPrototypeOf()`.")}},M={};function D(t){return t.copy||t.base}function R(t){t.modified||(t.modified=!0,t.copy=f(h(t.base),t.drafts),t.drafts=null,t.parent&&R(t.parent))}d(P,(function(t,e){M[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),M.deleteProperty=function(t,e){if(isNaN(parseInt(e)))throw new Error("Immer does not support deleting properties from arrays: "+e);return P.deleteProperty.call(this,t[0],e)},M.set=function(t,e,n){if("length"!==e&&isNaN(parseInt(e)))throw new Error("Immer does not support setting non-numeric properties on arrays: "+e);return P.set.call(this,t[0],e,n)};var L=Object.freeze({scopes:C,currentScope:N,willFinalize:function(){},createDraft:I});var j={useProxies:"undefined"!==typeof Proxy&&"undefined"!==typeof Reflect,autoFreeze:"undefined"===typeof t&&"verifyMinified"===function(){}.name,onAssign:null,onDelete:null,onCopy:null},F=new(function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),f(this,j,e),this.setUseProxies(this.useProxies),this.produce=this.produce.bind(this)}return a(t,[{key:"produce",value:function(t,e,n){var r=this;if("function"===typeof t&&"function"!==typeof e){var i=e;return e=t,function(){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;return r.produce(a,(function(t){var r;return(r=e).call.apply(r,[t,t].concat(n))}))}}if("function"!==typeof e)throw new Error("if first argument is not a function, the second argument to produce should be a function");if(void 0!==n&&"function"!==typeof n)throw new Error("the third argument of a producer should not be set or a function");var o=void 0;if(c(t))if(l(t)){if(void 0===(o=e.call(t,t)))return t}else{this.scopes.push([]);var a=this.createDraft(t);try{o=e.call(a,a),this.willFinalize(o,a,!!n);var f=n&&[],h=n&&[];if(void 0===o||o===a)o=this.finalize(a,[],f,h);else{if(a[u].modified)throw new Error("An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.");c(o)&&(o=this.finalize(o)),n&&(f.push({op:"replace",path:[],value:o}),h.push({op:"replace",path:[],value:t}))}}finally{this.currentScope().forEach((function(t){return t.revoke()})),this.scopes.pop()}n&&n(f,h)}else if(void 0===(o=e(t)))return t;return o===s?void 0:o}},{key:"setAutoFreeze",value:function(t){this.autoFreeze=t}},{key:"setUseProxies",value:function(t){this.useProxies=t,f(this,t?L:A)}},{key:"finalize",value:function(t,e,n,r){var i=t[u];
2if(!i)return Object.isFrozen(t)?t:this.finalizeTree(t);if(i.scope!==this.currentScope())return t;if(!i.modified)return i.base;if(!i.finalized){if(i.finalized=!0,this.finalizeTree(i.draft,e,n,r),this.onDelete){var o=i.assigned;for(var a in o)o[a]||this.onDelete(i,a)}this.onCopy&&this.onCopy(i),this.autoFreeze&&1===this.scopes.length&&Object.freeze(i.copy),n&&m(i,e,n,r)}return i.copy}},{key:"finalizeTree",value:function(t,e,n,r){var i=this,o=t[u];o&&(t=this.useProxies?o.copy:o.copy=h(o.draft));var a=this.onAssign;return d(t,(function s(u,f,h){var p=!!o&&h===t;if(l(f)){if(h[u]=f=n&&p&&!o.assigned[u]?i.finalize(f,e.concat(u),n,r):i.finalize(f),p&&f===o.base[u])return}else{if(p&&v(f,o.base[u]))return;c(f)&&!Object.isFrozen(f)&&d(f,s)}p&&a&&a(o,u,f)})),t}}]),t}()),U=F.produce;U((function(t,e){for(var n=0;n<e.length;n++){var r=e[n],i=r.path;if(0===i.length&&"replace"===r.op)t=r.value;else{for(var a=t,s=0;s<i.length-1;s++)if(!(a=a[i[s]])||"object"!==("undefined"===typeof a?"undefined":o(a)))throw new Error("Cannot apply patch, path doesn't resolve: "+i.join("/"));var u=i[i.length-1];switch(r.op){case"replace":case"add":a[u]=r.value;break;case"remove":if(Array.isArray(a)){if(u!==a.length-1)throw new Error("Only the last index of an array can be removed, index: "+u+", length: "+a.length);a.length-=1}else delete a[u];break;default:throw new Error("Unsupported patch operation: "+r.op)}}}return t}));e.a=U}).call(this,n(38))},function(t,e,n){"use strict";var r,i=(r=n(28))&&"object"===typeof r&&"default"in r?r.default:r;i.registerVersion("firebase","7.18.0","app"),t.exports=i},function(t,e,n){"use strict";e.__esModule=!0;var r=o(n(0)),i=o(n(142));function o(t){return t&&t.__esModule?t:{default:t}}e.default=r.default.createContext||i.default,t.exports=e.default},function(t,e,n){var r=n(156);t.exports=d,t.exports.parse=o,t.exports.compile=function(t,e){return s(o(t,e),e)},t.exports.tokensToFunction=s,t.exports.tokensToRegExp=h;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(t,e){for(var n,r=[],o=0,a=0,s="",c=e&&e.delimiter||"/";null!=(n=i.exec(t));){var f=n[0],h=n[1],d=n.index;if(s+=t.slice(a,d),a=d+f.length,h)s+=h[1];else{var p=t[a],v=n[2],m=n[3],g=n[4],y=n[5],b=n[6],w=n[7];s&&(r.push(s),s="");var _=null!=v&&null!=p&&p!==v,x="+"===b||"*"===b,E="?"===b||"*"===b,k=n[2]||c,T=g||y;r.push({name:m||o++,prefix:v||"",delimiter:k,optional:E,repeat:x,partial:_,asterisk:!!w,pattern:T?l(T):w?".*":"[^"+u(k)+"]+?"})}}return a<t.length&&(s+=t.substr(a)),s&&r.push(s),r}function a(t){return encodeURI(t).replace(/[\/?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function s(t,e){for(var n=new Array(t.length),i=0;i<t.length;i++)"object"===typeof t[i]&&(n[i]=new RegExp("^(?:"+t[i].pattern+")$",f(e)));return function(e,i){for(var o="",s=e||{},u=(i||{}).pretty?a:encodeURIComponent,l=0;l<t.length;l++){var c=t[l];if("string"!==typeof c){var f,h=s[c.name];if(null==h){if(c.optional){c.partial&&(o+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(r(h)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(h)+"`");if(0===h.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var d=0;d<h.length;d++){if(f=u(h[d]),!n[l].test(f))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(f)+"`");o+=(0===d?c.prefix:c.delimiter)+f}}else{if(f=c.asterisk?encodeURI(h).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})):u(h),!n[l].test(f))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+f+'"');o+=c.prefix+f}}else o+=c}return o}}function u(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function l(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function c(t,e){return t.keys=e,t}function f(t){return t&&t.sensitive?"":"i"}function h(t,e,n){r(e)||(n=e||n,e=[]);for(var i=(n=n||{}).strict,o=!1!==n.end,a="",s=0;s<t.length;s++){var l=t[s];if("string"===typeof l)a+=u(l);else{var h=u(l.prefix),d="(?:"+l.pattern+")";e.push(l),l.repeat&&(d+="(?:"+h+d+")*"),a+=d=l.optional?l.partial?h+"("+d+")?":"(?:"+h+"("+d+"))?":h+"("+d+")"}}var p=u(n.delimiter||"/"),v=a.slice(-p.length)===p;
2return i||(a=(v?a.slice(0,-p.length):a)+"(?:"+p+"(?=$))?"),a+=o?"$":i&&v?"":"(?="+p+"|$)",c(new RegExp("^"+a,f(n)),e)}function d(t,e,n){return r(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?function(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)e.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return c(t,e)}(t,e):r(t)?function(t,e,n){for(var r=[],i=0;i<t.length;i++)r.push(d(t[i],e,n).source);return c(new RegExp("(?:"+r.join("|")+")",f(n)),e)}(t,e,n):function(t,e,n){return h(o(t,n),e,n)}(t,e,n)}},,function(t,e,n){"use strict";function r(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}var i;n.r(e),n.d(e,"LogLevel",(function(){return o})),n.d(e,"Logger",(function(){return f})),n.d(e,"setLogLevel",(function(){return h})),n.d(e,"setUserLogHandler",(function(){return d}));var o,a=[];!function(t){t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT"}(o||(o={}));var s={debug:o.DEBUG,verbose:o.VERBOSE,info:o.INFO,warn:o.WARN,error:o.ERROR,silent:o.SILENT},u=o.INFO,l=((i={})[o.DEBUG]="log",i[o.VERBOSE]="log",i[o.INFO]="info",i[o.WARN]="warn",i[o.ERROR]="error",i),c=function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];if(!(e<t.logLevel)){var o=(new Date).toISOString(),a=l[e];if(!a)throw new Error("Attempted to log a message with an invalid logType (value: "+e+")");console[a].apply(console,r(["["+o+"]  "+t.name+":"],n))}},f=function(){function t(t){this.name=t,this._logLevel=u,this._logHandler=c,this._userLogHandler=null,a.push(this)}return Object.defineProperty(t.prototype,"logLevel",{get:function(){return this._logLevel},set:function(t){if(!(t in o))throw new TypeError('Invalid value "'+t+'" assigned to `logLevel`');this._logLevel=t},enumerable:!1,configurable:!0}),t.prototype.setLogLevel=function(t){this._logLevel="string"===typeof t?s[t]:t},Object.defineProperty(t.prototype,"logHandler",{get:function(){return this._logHandler},set:function(t){if("function"!==typeof t)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userLogHandler",{get:function(){return this._userLogHandler},set:function(t){this._userLogHandler=t},enumerable:!1,configurable:!0}),t.prototype.debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,r([this,o.DEBUG],t)),this._logHandler.apply(this,r([this,o.DEBUG],t))},t.prototype.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,r([this,o.VERBOSE],t)),this._logHandler.apply(this,r([this,o.VERBOSE],t))},t.prototype.info=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,r([this,o.INFO],t)),this._logHandler.apply(this,r([this,o.INFO],t))},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,r([this,o.WARN],t)),this._logHandler.apply(this,r([this,o.WARN],t))},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,r([this,o.ERROR],t)),this._logHandler.apply(this,r([this,o.ERROR],t))},t}();function h(t){a.forEach((function(e){e.setLogLevel(t)}))}function d(t,e){for(var n=function(n){var r=null;e&&e.level&&(r=s[e.level]),n.userLogHandler=null===t?null:function(e,n){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var s=i.map((function(t){if(null==t)return null;if("string"===typeof t)return t;if("number"===typeof t||"boolean"===typeof t)return t.toString();if(t instanceof Error)return t.message;try{return JSON.stringify(t)}catch(e){return null}})).filter((function(t){return t})).join(" ");n>=(null!==r&&void 0!==r?r:e.logLevel)&&t({level:o[n].toLowerCase(),message:s,args:i,type:e.name})}},r=0,i=a;r<i.length;r++){n(i[r])}}},function(t,e,n){"use strict";var r=Array.prototype.slice,i=n(73),o=Object.keys,a=o?function(t){return o(t)}:n(143),s=Object.keys;a.shim=function(){Object.keys?function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2)||(Object.keys=function(t){return i(t)?s(r.call(t)):s(t)}):Object.keys=a;return Object.keys||a},t.exports=a},function(t,e,n){"use strict";var r=Object.prototype.toString;t.exports=function(t){var e=r.call(t),n="[object Arguments]"===e;return n||(n="[object Array]"!==e&&null!==t&&"object"===typeof t&&"number"===typeof t.length&&t.length>=0&&"[object Function]"===r.call(t.callee)),n}},function(t,e,n){"use strict";var r=n(55),i=n(147)("%Function%"),o=i.apply,a=i.call;t.exports=function(){return r.apply(a,arguments)},t.exports.apply=function(){return r.apply(o,arguments)}},function(t,e,n){"use strict";var r=function(t){return t!==t};t.exports=function(t,e){return 0===t&&0===e?1/t===1/e:t===e||!(!r(t)||!r(e))}},function(t,e,n){"use strict";var r=n(75);t.exports=function(){return"function"===typeof Object.is?Object.is:r}},function(t,e,n){"use strict";var r=Object,i=TypeError;t.exports=function(){if(null!=this&&this!==r(this))throw new i("RegExp.prototype.flags getter called on non-object");var t="";return this.global&&(t+="g"),this.ignoreCase&&(t+="i"),this.multiline&&(t+="m"),this.dotAll&&(t+="s"),this.unicode&&(t+="u"),this.sticky&&(t+="y"),t}},function(t,e,n){"use strict";var r=n(77),i=n(32).supportsDescriptors,o=Object.getOwnPropertyDescriptor,a=TypeError;t.exports=function(){if(!i)throw new a("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");if("gim"===/a/gim.flags){var t=o(RegExp.prototype,"flags");if(t&&"function"===typeof t.get&&"boolean"===typeof/a/.dotAll)return t.get}return r}},function(t,e,n){"use strict";
2t.exports=n(157)},function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},function(t,e,n){"use strict";var r=n(16);function i(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(r.isURLSearchParams(e))o=e.toString();else{var a=[];r.forEach(e,(function(t,e){null!==t&&"undefined"!==typeof t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(i(e)+"="+i(t))})))})),o=a.join("&")}if(o){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,n){"use strict";(function(e){var r=n(16),i=n(164),o={"Content-Type":"application/x-www-form-urlencoded"};function a(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var s={adapter:function(){var t;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof e&&"[object process]"===Object.prototype.toString.call(e))&&(t=n(84)),t}(),transformRequest:[function(t,e){return i(e,"Accept"),i(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(a(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(a(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"===typeof t)try{t=JSON.parse(t)}catch(e){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(t){s.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){s.headers[t]=r.merge(o)})),t.exports=s}).call(this,n(38))},function(t,e,n){"use strict";var r=n(16),i=n(165),o=n(81),a=n(167),s=n(170),u=n(171),l=n(85);t.exports=function(t){return new Promise((function(e,c){var f=t.data,h=t.headers;r.isFormData(f)&&delete h["Content-Type"];var d=new XMLHttpRequest;if(t.auth){var p=t.auth.username||"",v=t.auth.password||"";h.Authorization="Basic "+btoa(p+":"+v)}var m=a(t.baseURL,t.url);if(d.open(t.method.toUpperCase(),o(m,t.params,t.paramsSerializer),!0),d.timeout=t.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in d?s(d.getAllResponseHeaders()):null,r={data:t.responseType&&"text"!==t.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:n,config:t,request:d};i(e,c,r),d=null}},d.onabort=function(){d&&(c(l("Request aborted",t,"ECONNABORTED",d)),d=null)},d.onerror=function(){c(l("Network Error",t,null,d)),d=null},d.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),c(l(e,t,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var g=n(172),y=(t.withCredentials||u(m))&&t.xsrfCookieName?g.read(t.xsrfCookieName):void 0;y&&(h[t.xsrfHeaderName]=y)}if("setRequestHeader"in d&&r.forEach(h,(function(t,e){"undefined"===typeof f&&"content-type"===e.toLowerCase()?delete h[e]:d.setRequestHeader(e,t)}
2)),r.isUndefined(t.withCredentials)||(d.withCredentials=!!t.withCredentials),t.responseType)try{d.responseType=t.responseType}catch(b){if("json"!==t.responseType)throw b}"function"===typeof t.onDownloadProgress&&d.addEventListener("progress",t.onDownloadProgress),"function"===typeof t.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){d&&(d.abort(),c(t),d=null)})),void 0===f&&(f=null),d.send(f)}))}},function(t,e,n){"use strict";var r=n(166);t.exports=function(t,e,n,i,o){var a=new Error(t);return r(a,e,n,i,o)}},function(t,e,n){"use strict";var r=n(16);t.exports=function(t,e){e=e||{};var n={},i=["url","method","params","data"],o=["headers","auth","proxy"],a=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];r.forEach(i,(function(t){"undefined"!==typeof e[t]&&(n[t]=e[t])})),r.forEach(o,(function(i){r.isObject(e[i])?n[i]=r.deepMerge(t[i],e[i]):"undefined"!==typeof e[i]?n[i]=e[i]:r.isObject(t[i])?n[i]=r.deepMerge(t[i]):"undefined"!==typeof t[i]&&(n[i]=t[i])})),r.forEach(a,(function(r){"undefined"!==typeof e[r]?n[r]=e[r]:"undefined"!==typeof t[r]&&(n[r]=t[r])}));var s=i.concat(o).concat(a),u=Object.keys(e).filter((function(t){return-1===s.indexOf(t)}));return r.forEach(u,(function(r){"undefined"!==typeof e[r]?n[r]=e[r]:"undefined"!==typeof t[r]&&(n[r]=t[r])})),n}},function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return[].slice.call(t.querySelectorAll("*"),0).filter(a)};var r=/input|select|textarea|button|object/;function i(t){var e=t.offsetWidth<=0&&t.offsetHeight<=0;if(e&&!t.innerHTML)return!0;var n=window.getComputedStyle(t);return e?"visible"!==n.getPropertyValue("overflow")||t.scrollWidth<=0&&t.scrollHeight<=0:"none"==n.getPropertyValue("display")}function o(t,e){var n=t.nodeName.toLowerCase();return(r.test(n)&&!t.disabled||"a"===n&&t.href||e)&&function(t){for(var e=t;e&&e!==document.body;){if(i(e))return!1;e=e.parentNode}return!0}(t)}function a(t){var e=t.getAttribute("tabindex");null===e&&(e=void 0);var n=isNaN(e);return(n||e>=0)&&o(t,!n)}t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assertNodeList=u,e.setElement=function(t){var e=t;if("string"===typeof e&&a.canUseDOM){var n=document.querySelectorAll(e);u(n,e),e="length"in n?n[0]:n}return s=e||s},e.validateElement=l,e.hide=function(t){l(t)&&(t||s).setAttribute("aria-hidden","true")},e.show=function(t){l(t)&&(t||s).removeAttribute("aria-hidden")},e.documentNotReadyOrSSRTesting=function(){s=null},e.resetForTesting=function(){s=null};var r,i=n(50),o=(r=i)&&r.__esModule?r:{default:r},a=n(56);var s=null;function u(t,e){if(!t||!t.length)throw new Error("react-modal: No elements were found for selector "+e+".")}function l(t){return!(!t&&!s)||((0,o.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),!1)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=new function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.register=function(t){-1===e.openInstances.indexOf(t)&&(e.openInstances.push(t),e.emit("register"))},this.deregister=function(t){var n=e.openInstances.indexOf(t);-1!==n&&(e.openInstances.splice(n,1),e.emit("deregister"))},this.subscribe=function(t){e.subscribers.push(t)}
2,this.emit=function(t){e.subscribers.forEach((function(n){return n(t,e.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]};e.default=r,t.exports=e.default},,,function(t,e,n){(function(e){var n;"undefined"!==typeof self&&self,n=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=109)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(17),i=n(18),o=n(19),a=n(45),s=n(46),u=n(47),l=n(48),c=n(49),f=n(12),h=n(32),d=n(33),p=n(31),v=n(1),m={Scope:v.Scope,create:v.create,find:v.find,query:v.query,register:v.register,Container:r.default,Format:i.default,Leaf:o.default,Embed:l.default,Scroll:a.default,Block:u.default,Inline:s.default,Text:c.default,Attributor:{Attribute:f.default,Class:h.default,Style:d.default,Store:p.default}};e.default=m},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(e){var n=this;return e="[Parchment] "+e,(n=t.call(this,e)||this).message=e,n.name=n.constructor.name,n}return r(e,t),e}(Error);e.ParchmentError=i;var o,a={},s={},u={},l={};function c(t,e){var n;if(void 0===e&&(e=o.ANY),"string"===typeof t)n=l[t]||a[t];else if(t instanceof Text||t.nodeType===Node.TEXT_NODE)n=l.text;else if("number"===typeof t)t&o.LEVEL&o.BLOCK?n=l.block:t&o.LEVEL&o.INLINE&&(n=l.inline);else if(t instanceof HTMLElement){var r=(t.getAttribute("class")||"").split(/\s+/);for(var i in r)if(n=s[r[i]])break;n=n||u[t.tagName]}return null==n?null:e&o.LEVEL&n.scope&&e&o.TYPE&n.scope?n:null}e.DATA_KEY="__blot",function(t){t[t.TYPE=3]="TYPE",t[t.LEVEL=12]="LEVEL",t[t.ATTRIBUTE=13]="ATTRIBUTE",t[t.BLOT=14]="BLOT",t[t.INLINE=7]="INLINE",t[t.BLOCK=11]="BLOCK",t[t.BLOCK_BLOT=10]="BLOCK_BLOT",t[t.INLINE_BLOT=6]="INLINE_BLOT",t[t.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",t[t.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",t[t.ANY=15]="ANY"}(o=e.Scope||(e.Scope={})),e.create=function(t,e){var n=c(t);if(null==n)throw new i("Unable to create "+t+" blot");var r=n,o=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:r.create(e);return new r(o,e)},e.find=function t(n,r){return void 0===r&&(r=!1),null==n?null:null!=n[e.DATA_KEY]?n[e.DATA_KEY].blot:r?t(n.parentNode,r):null},e.query=c,e.register=function t(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(e.length>1)return e.map((function(e){return t(e)}));var r=e[0];if("string"!==typeof r.blotName&&"string"!==typeof r.attrName)throw new i("Invalid definition");if("abstract"===r.blotName)throw new i("Cannot register abstract class");if(l[r.blotName||r.attrName]=r,"string"===typeof r.keyName)a[r.keyName]=r;else if(null!=r.className&&(s[r.className]=r),null!=r.tagName){Array.isArray(r.tagName)?r.tagName=r.tagName.map((function(t){return t.toUpperCase()})):r.tagName=r.tagName.toUpperCase();var o=Array.isArray(r.tagName)?r.tagName:[r.tagName];o.forEach((function(t){null!=u[t]&&null!=r.className||(u[t]=r)}))}return r}},function(t,e,n){var r=n(51),i=n(11),o=n(3),a=n(20),s=String.fromCharCode(0),u=function(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]};u.prototype.insert=function(t,e){var n={};return 0===t.length?this:(n.insert=t,null!=e&&"object"===typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n))},u.prototype.delete=function(t){return t<=0?this:this.push({delete:t})},u.prototype.retain=function(t,e){if(t<=0)return this;var n={retain:t};return null!=e&&"object"===typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n)},u.prototype.push=function(t){var e=this.ops.length,n=this.ops[e-1];if(t=o(!0,{},t),"object"===typeof n){if("number"===typeof t.delete&&"number"===typeof n.delete)return this.ops[e-1]={delete:n.delete+t.delete},this;if("number"===typeof n.delete&&null!=t.insert&&(e-=1,"object"!==typeof(n=this.ops[e-1])))return this.ops.unshift(t),this;if(i(t.attributes,n.attributes)){if("string"===typeof t.insert&&"string"===typeof n.insert)return this.ops[e-1]={insert:n.insert+t.insert},"object"===typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this;if("number"===typeof t.retain&&"number"===typeof n.retain)return this.ops[e-1]={retain:n.retain+t.retain},"object"===typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this}}return e===this.ops.length?this.ops.push(t):this.ops.splice(e,0,t),this},u.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},u.prototype.filter=function(t){return this.ops.filter(t)},u.prototype.forEach=function(t){this.ops.forEach(t)},u.prototype.map=function(t){return this.ops.map(t)},u.prototype.partition=function(t){var e=[],n=[];return this.forEach((function(r){(t(r)?e:n).push(r)})),[e,n]},u.prototype.reduce=function(t,e){return this.ops.reduce(t,e)},u.prototype.changeLength=function(){return this.reduce((function(t,e){return e.insert?t+a.length(e):e.delete?t-e.delete:t}),0)},u.prototype.length=function(){return this.reduce((function(t,e){return t+a.length(e)}),0)},u.prototype.slice=function(t,e){t=t||0,"number"!==typeof e&&(e=1/0);for(var n=[],r=a.iterator(this.ops),i=0;i<e&&r.hasNext();){var o;i<t?o=r.next(t-i):(o=r.next(e-i),n.push(o)),i+=a.length(o)}return new u(n)},u.prototype.compose=function(t){var e=a.iterator(this.ops),n=a.iterator(t.ops),r=[],o=n.peek();if(null!=o&&"number"===typeof o.retain&&null==o.attributes){for(var s=o.retain;"insert"===e.peekType()&&e.peekLength()<=s;)s-=e.peekLength(),r.push(e.next());o.retain-s>0&&n.next(o.retain-s)}for(var l=new u(r);e.hasNext()||n.hasNext();)if("insert"===n.peekType())l.push(n.next());else if("delete"===e.peekType())l.push(e.next());else{var c=Math.min(e.peekLength(),n.peekLength()),f=e.next(c),h=n.next(c);if("number"===typeof h.retain){var d={};"number"===typeof f.retain?d.retain=c:d.insert=f.insert;var p=a.attributes.compose(f.attributes,h.attributes,"number"===typeof f.retain);if(p&&(d.attributes=p),l.push(d),!n.hasNext()&&i(l.ops[l.ops.length-1],d)){var v=new u(e.rest());return l.concat(v).chop()}}else"number"===typeof h.delete&&"number"===typeof f.retain&&l.push(h)}return l.chop()},u.prototype.concat=function(t){var e=new u(this.ops.slice());return t.ops.length>0&&(e.push(t.ops[0]),e.ops=e.ops.concat(t.ops.slice(1))),e},u.prototype.diff=function(t,e){if(this.ops===t.ops)return new u;var n=[this,t].map((function(e){return e.map((function(n){if(null!=n.insert)return"string"===typeof n.insert?n.insert:s;throw new Error("diff() called "+(e===t?"on":"with")+" non-document")})).join("")})),o=new u,l=r(n[0],n[1],e),c=a.iterator(this.ops),f=a.iterator(t.ops);return l.forEach((function(t){for(var e=t[1].length;e>0;){var n=0;switch(t[0]){case r.INSERT:n=Math.min(f.peekLength(),e),o.push(f.next(n));break;
vendor: 4,350 bytes, line 2
2case r.DELETE:n=Math.min(e,c.peekLength()),c.next(n),o.delete(n);break;case r.EQUAL:n=Math.min(c.peekLength(),f.peekLength(),e);var s=c.next(n),u=f.next(n);i(s.insert,u.insert)?o.retain(n,a.attributes.diff(s.attributes,u.attributes)):o.push(u).delete(n)}e-=n}})),o.chop()},u.prototype.eachLine=function(t,e){e=e||"\n";for(var n=a.iterator(this.ops),r=new u,i=0;n.hasNext();){if("insert"!==n.peekType())return;var o=n.peek(),s=a.length(o)-n.peekLength(),l="string"===typeof o.insert?o.insert.indexOf(e,s)-s:-1;if(l<0)r.push(n.next());else if(l>0)r.push(n.next(l));else{if(!1===t(r,n.next(1).attributes||{},i))return;i+=1,r=new u}}r.length()>0&&t(r,{},i)},u.prototype.transform=function(t,e){if(e=!!e,"number"===typeof t)return this.transformPosition(t,e);for(var n=a.iterator(this.ops),r=a.iterator(t.ops),i=new u;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!e&&"insert"===r.peekType())if("insert"===r.peekType())i.push(r.next());else{var o=Math.min(n.peekLength(),r.peekLength()),s=n.next(o),l=r.next(o);if(s.delete)continue;l.delete?i.push(l):i.retain(o,a.attributes.transform(s.attributes,l.attributes,e))}else i.retain(a.length(n.next()));return i.chop()},u.prototype.transformPosition=function(t,e){e=!!e;for(var n=a.iterator(this.ops),r=0;n.hasNext()&&r<=t;){var i=n.peekLength(),o=n.peekType();n.next(),"delete"!==o?("insert"===o&&(r<t||!e)&&(t+=i),r+=i):t-=Math.min(i,t-r)}return t},t.exports=u},function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=function(t){return"function"===typeof Array.isArray?Array.isArray(t):"[object Array]"===r.call(t)},s=function(t){if(!t||"[object Object]"!==r.call(t))return!1;var e,i=n.call(t,"constructor"),o=t.constructor&&t.constructor.prototype&&n.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!i&&!o)return!1;for(e in t);return"undefined"===typeof e||n.call(t,e)},u=function(t,e){i&&"__proto__"===e.name?i(t,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):t[e.name]=e.newValue},l=function(t,e){if("__proto__"===e){if(!n.call(t,e))return;if(o)return o(t,e).value}return t[e]};t.exports=function t(){var e,n,r,i,o,c,f=arguments[0],h=1,d=arguments.length,p=!1;for("boolean"===typeof f&&(p=f,f=arguments[1]||{},h=2),(null==f||"object"!==typeof f&&"function"!==typeof f)&&(f={});h<d;++h)if(null!=(e=arguments[h]))for(n in e)r=l(f,n),f!==(i=l(e,n))&&(p&&i&&(s(i)||(o=a(i)))?(o?(o=!1,c=r&&a(r)?r:[]):c=r&&s(r)?r:{},u(f,{name:n,newValue:t(p,c,i)})):"undefined"!==typeof i&&u(f,{name:n,newValue:i}));return f}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BlockEmbed=e.bubbleFormats=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=f(n(3)),a=f(n(2)),s=f(n(0)),u=f(n(16)),l=f(n(6)),c=f(n(7));function f(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function p(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var v=function(t){function e(){return h(this,e),d(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return p(e,t),r(e,[{key:"attach",value:function(){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"attach",this).call(this),this.attributes=new s.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new a.default).insert(this.value(),(0,o.default)(this.formats(),this.attributes.values())
vendor: 4,320 bytes, line 2
2)}},{key:"format",value:function(t,e){var n=s.default.query(t,s.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,e)}},{key:"formatAt",value:function(t,e,n,r){this.format(n,r)}},{key:"insertAt",value:function(t,n,r){if("string"===typeof n&&n.endsWith("\n")){var o=s.default.create(m.blotName);this.parent.insertBefore(o,0===t?this:this.next),o.insertAt(0,n.slice(0,-1))}else i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r)}}]),e}(s.default.Embed);v.scope=s.default.Scope.BLOCK_BLOT;var m=function(t){function e(t){h(this,e);var n=d(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.cache={},n}return p(e,t),r(e,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(s.default.Leaf).reduce((function(t,e){return 0===e.length()?t:t.insert(e.value(),g(e))}),new a.default).insert("\n",g(this))),this.cache.delta}},{key:"deleteAt",value:function(t,n){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),this.cache={}}},{key:"formatAt",value:function(t,n,r,o){n<=0||(s.default.query(r,s.default.Scope.BLOCK)?t+n===this.length()&&this.format(r,o):i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,Math.min(n,this.length()-t-1),r,o),this.cache={})}},{key:"insertAt",value:function(t,n,r){if(null!=r)return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);if(0!==n.length){var o=n.split("\n"),a=o.shift();a.length>0&&(t<this.length()-1||null==this.children.tail?i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,Math.min(t,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});var s=this;o.reduce((function(t,e){return(s=s.split(t,!0)).insertAt(0,e),e.length}),t+a.length)}}},{key:"insertBefore",value:function(t,n){var r=this.children.head;i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n),r instanceof u.default&&r.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(t,n){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"moveChildren",this).call(this,t,n),this.cache={}}},{key:"optimize",value:function(t){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.cache={}}},{key:"path",value:function(t){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t,!0)}},{key:"removeChild",value:function(t){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"removeChild",this).call(this,t),this.cache={}}},{key:"split",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===t||t>=this.length()-1)){var r=this.clone();return 0===t?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var o=i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"split",this).call(this,t,n);return this.cache={},o}}]),e}(s.default.Block);function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==t?e:("function"===typeof t.formats&&(e=(0,o.default)(e,t.formats())),null==t.parent||"scroll"==t.parent.blotName||t.parent.statics.scope!==t.statics.scope?e:g(t.parent,e))}m.blotName="block",m.tagName="P",m.defaultChild="break",m.allowedChildren=[l.default,s.default.Embed,c.default],e.bubbleFormats=g,e.BlockEmbed=v,e.default=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.overload=e.expandConfig=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(u){i=!0,o=u}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);
vendor: 5,068 bytes, line 2
2throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();n(50);var a=m(n(2)),s=m(n(14)),u=m(n(8)),l=m(n(9)),c=m(n(0)),f=n(15),h=m(f),d=m(n(3)),p=m(n(10)),v=m(n(34));function m(t){return t&&t.__esModule?t:{default:t}}function g(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var b=(0,p.default)("quill"),w=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(y(this,t),this.options=_(e,r),this.container=this.options.container,null==this.container)return b.error("Invalid Quill container",e);this.options.debug&&t.debug(this.options.debug);var i=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new u.default,this.scroll=c.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new s.default(this.scroll),this.selection=new h.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(u.default.events.EDITOR_CHANGE,(function(t){t===u.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(u.default.events.SCROLL_UPDATE,(function(t,e){var r=n.selection.lastRange,i=r&&0===r.length?r.index:void 0;x.call(n,(function(){return n.editor.update(null,e,i)}),t)}));var o=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+i+"<p><br></p></div>");this.setContents(o),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return o(t,null,[{key:"debug",value:function(t){!0===t&&(t="log"),p.default.level(t)}},{key:"find",value:function(t){return t.__quill||c.default.find(t)}},{key:"import",value:function(t){return null==this.imports[t]&&b.error("Cannot import "+t+". Are you sure it was registered?"),this.imports[t]}},{key:"register",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!==typeof t){var i=t.attrName||t.blotName;"string"===typeof i?this.register("formats/"+i,t,e):Object.keys(t).forEach((function(r){n.register(r,t[r],e)}))}else null==this.imports[t]||r||b.warn("Overwriting "+t+" with",e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&"abstract"!==e.blotName?c.default.register(e):t.startsWith("modules")&&"function"===typeof e.register&&e.register()}}]),o(t,[{key:"addContainer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof t){var n=t;(t=document.createElement("div")).classList.add(n)}return this.container.insertBefore(t,e),t}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(t,e,n){var r=this,o=E(t,e,n),a=i(o,4);return t=a[0],e=a[1],n=a[3],x.call(this,(function(){return r.editor.deleteText(t,e)}),n,t,-1*e)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}},{key:"focus",value:function(){var t=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=t,this.scrollIntoView()}},{key:"format",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;return x.call(this,(function(){var r=n.getSelection(!0),i=new a.default;if(null==r)return i;if(c.default.query(t,c.default.Scope.BLOCK))i=n.editor.formatLine(r.index,r.length,g({},t,e));else{if(0===r.length)return n.selection.format(t,e),i;i=n.editor.formatText(r.index,r.length,g({},t,e))}return n.setSelection(r,u.default.sources.SILENT),i}),r)}},{key:"formatLine",value:function(t,e,n,r,o){var a,s=this,u=E(t,e,n,r,o),l=i(u,4);return t=l[0],e=l[1],a=l[2],o=l[3],x.call(this,(function(){return s.editor.formatLine(t,e,a)}),o,t,0)}},{key:"formatText",value:function(t,e,n,r,o){var a,s=this,u=E(t,e,n,r,o),l=i(u,4);return t=l[0],e=l[1],a=l[2],o=l[3],x.call(this,(function(){return s.editor.formatText(t,e,a)}),o,t,0)}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"===typeof t?this.selection.getBounds(t,e):this.selection.getBounds(t.
vendor: 4,480 bytes, line 2
2index,t.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=E(t,e),r=i(n,2);return t=r[0],e=r[1],this.editor.getContents(t,e)}},{key:"getFormat",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof t?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}},{key:"getIndex",value:function(t){return t.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(t){return this.scroll.leaf(t)}},{key:"getLine",value:function(t){return this.scroll.line(t)}},{key:"getLines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!==typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}},{key:"getModule",value:function(t){return this.theme.modules[t]}},{key:"getSelection",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=E(t,e),r=i(n,2);return t=r[0],e=r[1],this.editor.getText(t,e)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(e,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.sources.API;return x.call(this,(function(){return i.editor.insertEmbed(e,n,r)}),o,e)}},{key:"insertText",value:function(t,e,n,r,o){var a,s=this,u=E(t,0,n,r,o),l=i(u,4);return t=l[0],a=l[2],o=l[3],x.call(this,(function(){return s.editor.insertText(t,e,a)}),o,t,e.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(t,e,n){this.clipboard.dangerouslyPasteHTML(t,e,n)}},{key:"removeFormat",value:function(t,e,n){var r=this,o=E(t,e,n),a=i(o,4);return t=a[0],e=a[1],n=a[3],x.call(this,(function(){return r.editor.removeFormat(t,e)}),n,t)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.sources.API;return x.call(this,(function(){t=new a.default(t);var n=e.getLength(),r=e.editor.deleteText(0,n),i=e.editor.applyDelta(t),o=i.ops[i.ops.length-1];return null!=o&&"string"===typeof o.insert&&"\n"===o.insert[o.insert.length-1]&&(e.editor.deleteText(e.getLength()-1,1),i.delete(1)),r.compose(i)}),n)}},{key:"setSelection",value:function(e,n,r){if(null==e)this.selection.setRange(null,n||t.sources.API);else{var o=E(e,n,r),a=i(o,4);e=a[0],n=a[1],r=a[3],this.selection.setRange(new f.Range(e,n),r),r!==u.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.sources.API,n=(new a.default).insert(t);return this.setContents(n,e)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.default.sources.USER,e=this.scroll.update(t);return this.selection.update(t),e}},{key:"updateContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.sources.API;return x.call(this,(function(){return t=new a.default(t),e.editor.applyDelta(t,n)}),n,!0)}}]),t}();function _(t,e){if((e=(0,d.default)(!0,{container:t,modules:{clipboard:!0,keyboard:!0,history:!0}},e)).theme&&e.theme!==w.DEFAULTS.theme){if(e.theme=w.import("themes/"+e.theme),null==e.theme)throw new Error("Invalid theme "+e.theme+". Did you register it?")}else e.theme=v.default;var n=(0,d.default)(!0,{},e.theme.DEFAULTS);[n,e].forEach((function(t){t.modules=t.modules||{}
vendor: 14,491 bytes, line 2
2,Object.keys(t.modules).forEach((function(e){!0===t.modules[e]&&(t.modules[e]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(e.modules)).reduce((function(t,e){var n=w.import("modules/"+e);return null==n?b.error("Cannot load "+e+" module. Are you sure you registered it?"):t[e]=n.DEFAULTS||{},t}),{});return null!=e.modules&&e.modules.toolbar&&e.modules.toolbar.constructor!==Object&&(e.modules.toolbar={container:e.modules.toolbar}),e=(0,d.default)(!0,{},w.DEFAULTS,{modules:r},n,e),["bounds","container","scrollingContainer"].forEach((function(t){"string"===typeof e[t]&&(e[t]=document.querySelector(e[t]))})),e.modules=Object.keys(e.modules).reduce((function(t,n){return e.modules[n]&&(t[n]=e.modules[n]),t}),{}),e}function x(t,e,n,r){if(this.options.strict&&!this.isEnabled()&&e===u.default.sources.USER)return new a.default;var i=null==n?null:this.getSelection(),o=this.editor.delta,s=t();if(null!=i&&(!0===n&&(n=i.index),null==r?i=k(i,s,e):0!==r&&(i=k(i,n,r,e)),this.setSelection(i,u.default.sources.SILENT)),s.length()>0){var l,c,f=[u.default.events.TEXT_CHANGE,s,o,e];(l=this.emitter).emit.apply(l,[u.default.events.EDITOR_CHANGE].concat(f)),e!==u.default.sources.SILENT&&(c=this.emitter).emit.apply(c,f)}return s}function E(t,e,n,i,o){var a={};return"number"===typeof t.index&&"number"===typeof t.length?"number"!==typeof e?(o=i,i=n,n=e,e=t.length,t=t.index):(e=t.length,t=t.index):"number"!==typeof e&&(o=i,i=n,n=e,e=0),"object"===("undefined"===typeof n?"undefined":r(n))?(a=n,o=i):"string"===typeof n&&(null!=i?a[n]=i:o=n),[t,e,a,o=o||u.default.sources.API]}function k(t,e,n,r){if(null==t)return null;var o=void 0,s=void 0;if(e instanceof a.default){var l=[t.index,t.index+t.length].map((function(t){return e.transformPosition(t,r!==u.default.sources.USER)})),c=i(l,2);o=c[0],s=c[1]}else{var h=[t.index,t.index+t.length].map((function(t){return t<e||t===e&&r===u.default.sources.USER?t:n>=0?t+n:Math.max(e,t+n)})),d=i(h,2);o=d[0],s=d[1]}return new f.Range(o,s-o)}w.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},w.events=u.default.events,w.sources=u.default.sources,w.version="1.3.7",w.imports={delta:a.default,parchment:c.default,"core/module":l.default,"core/theme":v.default},e.expandConfig=_,e.overload=E,e.default=w},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=s(n(7)),a=s(n(0));function s(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var c=function(t){function e(){return u(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"formatAt",value:function(t,n,r,o){if(e.compare(this.statics.blotName,r)<0&&a.default.query(r,a.default.Scope.BLOT)){var s=this.isolate(t,n);o&&s.wrap(r,o)}else i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,o)}},{key:"optimize",value:function(t){if(i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.parent instanceof e&&e.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(t,n){var r=e.order.indexOf(t),i=e.order.indexOf(n);return r>=0||i>=0?r-i:t===n?0:t<n?-1:1}}]),e}(a.default.Inline);c.allowedChildren=[c,a.default.Embed,o.default],c.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(0);function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var s=function(t){function e(){return o(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((r=i)&&r.__esModule?r:{default:r}).default.Text);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=a(n(54));function a(t){return t&&t.__esModule?t:{default:t}}var s=(0,a(n(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(t){document.addEventListener(t,(function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(t){var n;t.__quill&&t.__quill.emitter&&(n=t.__quill.emitter).handleDOM.apply(n,e)}))}))}));var u=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var t=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.listeners={},t.on("error",s.error),t}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"emit",value:function(){s.log.apply(s,arguments),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];(this.listeners[t.type]||[]).forEach((function(e){var r=e.node,i=e.handler;(t.target===r||r.contains(t.target))&&i.apply(void 0,[t].concat(n))}))}},{key:"listenDOM",value:function(t,e,n){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push({node:e,handler:n})}}]),e}(o.default);u.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},u.sources={API:"api",SILENT:"silent",USER:"user"},e.default=u},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,t),this.quill=e,this.options=n};i.DEFAULTS={},e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=["error","warn","log","info"],i="warn";function o(t){if(r.indexOf(t)<=r.indexOf(i)){for(var e,n=arguments.length,o=Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];(e=console)[t].apply(e,o)}}function a(t){return r.reduce((function(e,n){return e[n]=o.bind(console,n,t),e}),{})}o.level=a.level=function(t){i=t},e.default=a},function(t,e,n){var r=Array.prototype.slice,i=n(52),o=n(53),a=t.exports=function(t,e,n){return n||(n={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?n.strict?t===e:t==e:function(t,e,n){var l,c;if(s(t)||s(e))return!1;if(t.prototype!==e.prototype)return!1;if(o(t))return!!o(e)&&(t=r.call(t),e=r.call(e),a(t,e,n));if(u(t)){if(!u(e))return!1;if(t.length!==e.length)return!1;for(l=0;l<t.length;l++)if(t[l]!==e[l])return!1;return!0}try{var f=i(t),h=i(e)}catch(d){return!1}if(f.length!=h.length)return!1;for(f.sort(),h.sort(),l=f.length-1;l>=0;l--)if(f[l]!=h[l])return!1;for(l=f.length-1;l>=0;l--)if(c=f[l],!a(t[c],e[c],n))return!1;return typeof t===typeof e}(t,e,n))};function s(t){return null===t||void 0===t}function u(t){return!(!t||"object"!==typeof t||"number"!==typeof t.length)&&"function"===typeof t.copy&&"function"===typeof t.slice&&!(t.length>0&&"number"!==typeof t[0])}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(){function t(t,e,n){void 0===n&&(n={}),this.attrName=t,this.keyName=e;var i=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|i:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return t.keys=function(t){return[].map.call(t.attributes,(function(t){return t.name}))},t.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.setAttribute(this.keyName,e),!0)},t.prototype.canAdd=function(t,e){return null!=r.query(t,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(null==this.whitelist||("string"===typeof e?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1))},t.prototype.remove=function(t){t.removeAttribute(this.keyName)},t.prototype.value=function(t){var e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""},t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Code=void 0;var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(u){i=!0,o=u}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=f(n(2)),s=f(n(0)),u=f(n(4)),l=f(n(6)),c=f(n(7));function f(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function p(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var v=function(t){function e(){return h(this,e),d(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return p(e,t),e}(l.default);v.blotName="code",v.tagName="CODE";var m=function(t){function e(){return h(this,e),d(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return p(e,t),i(e,[{key:"delta",value:function(){var t=this,e=this.domNode.textContent;return e.endsWith("\n")&&(e=e.slice(0,-1)),e.split("\n").reduce((function(e,n){return e.insert(n).insert("\n",t.formats())}),new a.default)}},{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n){var i=this.descendant(c.default,this.length()-1),a=r(i,1)[0];null!=a&&a.deleteAt(a.length()-1,1),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}},{key:"formatAt",value:function(t,n,r,i){if(0!==n&&null!=s.default.query(r,s.default.Scope.BLOCK)&&(r!==this.statics.blotName||i!==this.statics.formats(this.domNode))){var o=this.newlineIndex(t);if(!(o<0||o>=t+n)){var a=this.newlineIndex(t,!0)+1,u=o-a+1,l=this.isolate(a,u),c=l.next;l.format(r,i),c instanceof e&&c.formatAt(0,t-a+n-u,r,i)}}}},{key:"insertAt",value:function(t,e,n){if(null==n){var i=this.descendant(c.default,t),o=r(i,2),a=o[0],s=o[1];a.insertAt(s,e)}}},{key:"length",value:function(){var t=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?t:t+1}},{key:"newlineIndex",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return this.domNode.textContent.slice(0,t).lastIndexOf("\n");var n=this.domNode.textContent.slice(t).indexOf("\n");return n>-1?t+n:-1}},{key:"optimize",value:function(t){this.domNode.textContent.endsWith("\n")||this.appendChild(s.default.create("text","\n")),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(t),n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t),[].slice.call(this.domNode.querySelectorAll("*")).forEac
vendor: 5,711 bytes, line 2
2h((function(t){var e=s.default.find(t);null==e?t.parentNode.removeChild(t):e instanceof s.default.Embed?e.remove():e.unwrap()}))}}],[{key:"create",value:function(t){var n=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),e}(u.default);m.blotName="code-block",m.tagName="PRE",m.TAB="  ",e.Code=v,e.default=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(u){i=!0,o=u}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=g(n(2)),s=g(n(20)),u=g(n(0)),l=g(n(13)),c=g(n(24)),f=n(4),h=g(f),d=g(n(16)),p=g(n(21)),v=g(n(11)),m=g(n(3));function g(t){return t&&t.__esModule?t:{default:t}}var y=/^[ -~]*$/,b=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scroll=e,this.delta=this.getDelta()}return o(t,[{key:"applyDelta",value:function(t){var e=this,n=!1;this.scroll.update();var o=this.scroll.length();return this.scroll.batchStart(),(t=function(t){return t.reduce((function(t,e){if(1===e.insert){var n=(0,p.default)(e.attributes);return delete n.image,t.insert({image:e.attributes.image},n)}if(null==e.attributes||!0!==e.attributes.list&&!0!==e.attributes.bullet||((e=(0,p.default)(e)).attributes.list?e.attributes.list="ordered":(e.attributes.list="bullet",delete e.attributes.bullet)),"string"===typeof e.insert){var r=e.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return t.insert(r,e.attributes)}return t.push(e)}),new a.default)}(t)).reduce((function(t,a){var l=a.retain||a.delete||a.insert.length||1,c=a.attributes||{};if(null!=a.insert){if("string"===typeof a.insert){var d=a.insert;d.endsWith("\n")&&n&&(n=!1,d=d.slice(0,-1)),t>=o&&!d.endsWith("\n")&&(n=!0),e.scroll.insertAt(t,d);var p=e.scroll.line(t),v=i(p,2),g=v[0],y=v[1],b=(0,m.default)({},(0,f.bubbleFormats)(g));if(g instanceof h.default){var w=g.descendant(u.default.Leaf,y),_=i(w,1)[0];b=(0,m.default)(b,(0,f.bubbleFormats)(_))}c=s.default.attributes.diff(b,c)||{}}else if("object"===r(a.insert)){var x=Object.keys(a.insert)[0];if(null==x)return t;e.scroll.insertAt(t,x,a.insert[x])}o+=l}return Object.keys(c).forEach((function(n){e.scroll.formatAt(t,l,n,c[n])})),t+l}),0),t.reduce((function(t,n){return"number"===typeof n.delete?(e.scroll.deleteAt(t,n.delete),t):t+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(t)}},{key:"deleteText",value:function(t,e){return this.scroll.deleteAt(t,e),this.update((new a.default).retain(t).delete(e))}},{key:"formatLine",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(i){if(null==n.scroll.whitelist||n.scroll.whitelist[i]){var o=n.scroll.lines(t,Math.max(e,1)),a=e;o.forEach((function(e){var o=e.length();if(e instanceof l.default){var s=t-e.offset(n.scroll),u=e.newlineIndex(s+a)-s+1;e.formatAt(s,u,i,r[i])}else e.format(i,r[i]);a-=o}))}})),this.scroll.optimize(),this.update((new a.default).retain(t).retain(e,(0,p.default)(r)))}},{key:"formatText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(i){n.scroll.formatAt(t,e,i,r[i])})),this.update((new a.default).retain(t).retain(e,(0,p.default)(r)))}},{key:"getContents",value:function(t,e){return this.delta.slice(t,t+e)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(t,e){return t.concat(e.delta())}),new a.default)}},{key:"getFormat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===e?this.scroll.path(t).forEach((function(t){var e=i(t,1)[0];e instanceof h.default?n.push(e):e instanceof u.default.Leaf&&r.push(e)})):(n=this.scroll.lines(t,e),r=this.scroll.descendants(u.default.Leaf,t,e));var o=[n,r].map((function(t){if(0===t.length)return{};for(var e=(0,f.bubbleFormats)(t.shift());Object.keys(e).length>0;){var n=t.shift();if(null==n)return e;e=w((0,f.bubbleFormats)(n),e)}return e}));return m.default.apply(m.default,o)}},{key:"getText",value:function(t,e){return this.getContents(t,e).filter((function(t){return"string"===typeof t.insert})).map((function(t){return t.insert})).join("")}},{key:"insertEmbed",value:function(t,e,n){return this.scroll.insertAt(t,e,n),this.update((new a.default).retain(t).insert(function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},e,n)))}},{key:"insertText",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(t,e),Object.keys(r).forEach((function(i){n.scroll.formatAt(t,e.length,i,r[i])})),this.update((new a.default).retain(t).insert(e,(0,p.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;
vendor: 4,639 bytes, line 2
2if(this.scroll.children.length>1)return!1;var t=this.scroll.children.head;return t.statics.blotName===h.default.blotName&&!(t.children.length>1)&&t.children.head instanceof d.default}},{key:"removeFormat",value:function(t,e){var n=this.getText(t,e),r=this.scroll.line(t+e),o=i(r,2),s=o[0],u=o[1],c=0,f=new a.default;null!=s&&(c=s instanceof l.default?s.newlineIndex(u)-u+1:s.length()-u,f=s.delta().slice(u,u+c-1).insert("\n"));var h=this.getContents(t,e+c).diff((new a.default).insert(n).concat(f)),d=(new a.default).retain(t).concat(h);return this.applyDelta(d)}},{key:"update",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===e.length&&"characterData"===e[0].type&&e[0].target.data.match(y)&&u.default.find(e[0].target)){var i=u.default.find(e[0].target),o=(0,f.bubbleFormats)(i),s=i.offset(this.scroll),l=e[0].oldValue.replace(c.default.CONTENTS,""),h=(new a.default).insert(l),d=(new a.default).insert(i.value()),p=(new a.default).retain(s).concat(h.diff(d,n));t=p.reduce((function(t,e){return e.insert?t.insert(e.insert,o):t.push(e)}),new a.default),this.delta=r.compose(t)}else this.delta=this.getDelta(),t&&(0,v.default)(r.compose(t),this.delta)||(t=r.diff(this.delta,n));return t}}]),t}();function w(t,e){return Object.keys(e).reduce((function(n,r){return null==t[r]||(e[r]===t[r]?n[r]=e[r]:Array.isArray(e[r])?e[r].indexOf(t[r])<0&&(n[r]=e[r].concat([t[r]])):n[r]=[e[r],t[r]]),n}),{})}e.default=b},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Range=void 0;var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(u){i=!0,o=u}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=l(n(0)),a=l(n(21)),s=l(n(11)),u=l(n(8));function l(t){return t&&t.__esModule?t:{default:t}}function c(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var h=(0,l(n(10)).default)("quill:selection"),d=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;f(this,t),this.index=e,this.length=n},p=function(){function t(e,n){var r=this;f(this,t),this.emitter=n,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=o.default.create("cursor",this),this.lastRange=this.savedRange=new d(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||setTimeout(r.update.bind(r,u.default.sources.USER),1)})),this.emitter.on(u.default.events.EDITOR_CHANGE,(function(t,e){t===u.default.events.TEXT_CHANGE&&e.length()>0&&r.update(u.default.sources.SILENT)})),this.emitter.on(u.default.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var t=r.getNativeRange();null!=t&&t.start.node!==r.cursor.textNode&&r.emitter.once(u.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset)}catch(e){}}))}})),this.emitter.on(u.default.events.SCROLL_OPTIMIZE,(function(t,e){if(e.range){var n=e.range,i=n.startNode,o=n.startOffset,a=n.endNode,s=n.endOffset;r.setNativeRange(i,o,a,s)}})),this.update(u.default.sources.SILENT)}return i(t,[{key:"handleComposition",value:function(){var t=this;this.root.addEventListener("compositionstart",(function(){t.composing=!0})),this.root.addEventListener("compositionend",(function(){if(t.composing=!1,t.cursor.parent){var e=t.cursor.restore();if(!e)return;setTimeout((function(){t.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var t=this;this.emitter.listenDOM("mousedown",document.body,(function(){t.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){t.mouseDown=!1,t.update(u.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(t,e){if(null==this.scroll.whitelist||this.scroll.whitelist[t]){this.scroll.update(
vendor: 5,109 bytes, line 2
2);var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!o.default.query(t,o.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=o.default.find(n.start.node,!1);if(null==r)return;if(r instanceof o.default.Leaf){var i=r.split(n.start.offset);r.parent.insertBefore(this.cursor,i)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();t=Math.min(t,n-1),e=Math.min(t+e,n-1)-t;var i=void 0,o=this.scroll.leaf(t),a=r(o,2),s=a[0],u=a[1];if(null==s)return null;var l=s.position(u,!0),c=r(l,2);i=c[0],u=c[1];var f=document.createRange();if(e>0){f.setStart(i,u);var h=this.scroll.leaf(t+e),d=r(h,2);if(s=d[0],u=d[1],null==s)return null;var p=s.position(u,!0),v=r(p,2);return i=v[0],u=v[1],f.setEnd(i,u),f.getBoundingClientRect()}var m="left",g=void 0;return i instanceof Text?(u<i.data.length?(f.setStart(i,u),f.setEnd(i,u+1)):(f.setStart(i,u-1),f.setEnd(i,u),m="right"),g=f.getBoundingClientRect()):(g=s.domNode.getBoundingClientRect(),u>0&&(m="right")),{bottom:g.top+g.height,height:g.height,left:g[m],right:g[m],top:g.top,width:0}}},{key:"getNativeRange",value:function(){var t=document.getSelection();if(null==t||t.rangeCount<=0)return null;var e=t.getRangeAt(0);if(null==e)return null;var n=this.normalizeNative(e);return h.info("getNativeRange",n),n}},{key:"getRange",value:function(){var t=this.getNativeRange();return null==t?[null,null]:[this.normalizedToRange(t),t]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(t){var e=this,n=[[t.start.node,t.start.offset]];t.native.collapsed||n.push([t.end.node,t.end.offset]);var i=n.map((function(t){var n=r(t,2),i=n[0],a=n[1],s=o.default.find(i,!0),u=s.offset(e.scroll);return 0===a?u:s instanceof o.default.Container?u+s.length():u+s.index(i,a)})),a=Math.min(Math.max.apply(Math,c(i)),this.scroll.length()-1),s=Math.min.apply(Math,[a].concat(c(i)));return new d(s,a-s)}},{key:"normalizeNative",value:function(t){if(!v(this.root,t.startContainer)||!t.collapsed&&!v(this.root,t.endContainer))return null;var e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach((function(t){for(var e=t.node,n=t.offset;!(e instanceof Text)&&e.childNodes.length>0;)if(e.childNodes.length>n)e=e.childNodes[n],n=0;else{if(e.childNodes.length!==n)break;n=(e=e.lastChild)instanceof Text?e.data.length:e.childNodes.length+1}t.node=e,t.offset=n})),e}},{key:"rangeToNative",value:function(t){var e=this,n=t.collapsed?[t.index]:[t.index,t.index+t.length],i=[],o=this.scroll.length();return n.forEach((function(t,n){t=Math.min(o-1,t);var a,s=e.scroll.leaf(t),u=r(s,2),l=u[0],c=u[1],f=l.position(c,0!==n),h=r(f,2);a=h[0],c=h[1],i.push(a,c)})),i.length<2&&(i=i.concat(i)),i}},{key:"scrollIntoView",value:function(t){var e=this.lastRange;if(null!=e){var n=this.getBounds(e.index,e.length);if(null!=n){var i=this.scroll.length()-1,o=this.scroll.line(Math.min(e.index,i)),a=r(o,1)[0],s=a;if(e.length>0){var u=this.scroll.line(Math.min(e.index+e.length,i));s=r(u,1)[0]}if(null!=a&&null!=s){var l=t.getBoundingClientRect();n.top<l.top?t.scrollTop-=l.top-n.top:n.bottom>l.bottom&&(t.scrollTop+=n.bottom-l.bottom)}}}}},{key:"setNativeRange",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(h.info("setNativeRange",t,e,n,r),null==t||null!=this.root.parentNode&&null!=t.parentNode&&null!=n.parentNode){var o=document.getSelection();if(null!=o)if(null!=t){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||i||t!==a.startContainer||e!==a.startOffset||n!==a.endContainer||r!==a.endOffset){"BR"==t.tagName&&(e=[].indexOf.call(t.parentNode.childNodes,t),t=t.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var s=document.createRange();s.setStart(t,e),s.setEnd(n,r),o.removeAllRanges(),o.addRange(s)}}else o.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;if("string"===typeof e&&(n=e,e=!1),h.info("setRange",t),null!=t){var r=this.rangeToNative(t);this.setNativeRange.apply(this,c(r).concat([e]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.default.sources.USER,e=this.lastRange,n=this.getRange(),i=r(n,2),o=i[0],l=i[1];if(this.lastRange=o,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,s.default)(e,this.lastRange)){var c;!this.composing&&null!=l&&l.native.collapsed&&l.start.node!==this.cursor.textNode&&this.cursor.restore(
vendor: 4,392 bytes, line 2
2);var f,h=[u.default.events.SELECTION_CHANGE,(0,a.default)(this.lastRange),(0,a.default)(e),t];(c=this.emitter).emit.apply(c,[u.default.events.EDITOR_CHANGE].concat(h)),t!==u.default.sources.SILENT&&(f=this.emitter).emit.apply(f,h)}}}]),t}();function v(t,e){try{e.parentNode}catch(n){return!1}return e instanceof Text&&(e=e.parentNode),t.contains(e)}e.Range=d,e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(0);function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var u=function(t){function e(){return a(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"insertInto",value:function(t,n){0===t.children.length?function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertInto",this).call(this,t,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),e}(((r=o)&&r.__esModule?r:{default:r}).default.Embed);u.blotName="break",u.tagName="BR",e.default=u},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(44),o=n(30),a=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;return n.build(),n}return r(e,t),e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){t.prototype.attach.call(this),this.children.forEach((function(t){t.attach()}))},e.prototype.build=function(){var t=this;this.children=new i.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(e){try{var n=u(e);t.insertBefore(n,t.children.head||void 0)}catch(r){if(r instanceof a.ParchmentError)return;throw r}}))},e.prototype.deleteAt=function(t,e){if(0===t&&e===this.length())return this.remove();this.children.forEachAt(t,e,(function(t,e,n){t.deleteAt(e,n)}))},e.prototype.descendant=function(t,n){var r=this.children.find(n),i=r[0],o=r[1];return null==t.blotName&&t(i)||null!=t.blotName&&i instanceof t?[i,o]:i instanceof e?i.descendant(t,o):[null,-1]},e.prototype.descendants=function(t,n,r){void 0===n&&(n=0),void 0===r&&(r=Number.MAX_VALUE);var i=[],o=r;return this.children.forEachAt(n,r,(function(n,r,a){(null==t.blotName&&t(n)||null!=t.blotName&&n instanceof t)&&i.push(n),n instanceof e&&(i=i.concat(n.descendants(t,r,o))),o-=a})),i},e.prototype.detach=function(){this.children.forEach((function(t){t.detach()})),t.prototype.detach.call(this)},e.prototype.formatAt=function(t,e,n,r){this.children.forEachAt(t,e,(function(t,e,i){t.formatAt(e,i,n,r)}))},e.prototype.insertAt=function(t,e,n){var r=this.children.find(t),i=r[0],o=r[1];if(i)i.insertAt(o,e,n);else{var s=null==n?a.create("text",e):a.create(e,n);this.appendChild(s)}},e.prototype.insertBefore=function(t,e){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(e){return t instanceof e})))throw new a.ParchmentError("Cannot insert "+t.statics.blotName+" into "+this.statics.blotName);t.insertInto(this,e)},e.prototype.length=function(){return this.children.reduce((function(t,e){return t+e.length()}),0)}
vendor: 6,251 bytes, line 2
2,e.prototype.moveChildren=function(t,e){this.children.forEach((function(n){t.insertBefore(n,e)}))},e.prototype.optimize=function(e){if(t.prototype.optimize.call(this,e),0===this.children.length)if(null!=this.statics.defaultChild){var n=a.create(this.statics.defaultChild);this.appendChild(n),n.optimize(e)}else this.remove()},e.prototype.path=function(t,n){void 0===n&&(n=!1);var r=this.children.find(t,n),i=r[0],o=r[1],a=[[this,t]];return i instanceof e?a.concat(i.path(o,n)):(null!=i&&a.push([i,o]),a)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(n){n instanceof e&&n.moveChildren(this),t.prototype.replace.call(this,n)},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(t,this.length(),(function(t,r,i){t=t.split(r,e),n.appendChild(t)})),n},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,e){var n=this,r=[],i=[];t.forEach((function(t){t.target===n.domNode&&"childList"===t.type&&(r.push.apply(r,t.addedNodes),i.push.apply(i,t.removedNodes))})),i.forEach((function(t){if(!(null!=t.parentNode&&"IFRAME"!==t.tagName&&document.body.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var e=a.find(t);null!=e&&(null!=e.domNode.parentNode&&e.domNode.parentNode!==n.domNode||e.detach())}})),r.filter((function(t){return t.parentNode==n.domNode})).sort((function(t,e){return t===e?0:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(t){var e=null;null!=t.nextSibling&&(e=a.find(t.nextSibling));var r=u(t);r.next==e&&null!=r.next||(null!=r.parent&&r.parent.removeChild(n),n.insertBefore(r,e||void 0))}))},e}(o.default);function u(t){var e=a.find(t);if(null==e)try{e=a.create(t)}catch(n){e=a.create(a.Scope.INLINE),[].slice.call(t.childNodes).forEach((function(t){e.domNode.appendChild(t)})),t.parentNode&&t.parentNode.replaceChild(e.domNode,t),e.attach()}return e}e.default=s},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(12),o=n(31),a=n(17),s=n(1),u=function(t){function e(e){var n=t.call(this,e)||this;return n.attributes=new o.default(n.domNode),n}return r(e,t),e.formats=function(t){return"string"===typeof this.tagName||(Array.isArray(this.tagName)?t.tagName.toLowerCase():void 0)},e.prototype.format=function(t,e){var n=s.query(t);n instanceof i.default?this.attributes.attribute(n,e):e&&(null==n||t===this.statics.blotName&&this.formats()[t]===e||this.replaceWith(t,e))},e.prototype.formats=function(){var t=this.attributes.values(),e=this.statics.formats(this.domNode);return null!=e&&(t[this.statics.blotName]=e),t},e.prototype.replaceWith=function(e,n){var r=t.prototype.replaceWith.call(this,e,n);return this.attributes.copy(r),r},e.prototype.update=function(e,n){var r=this;t.prototype.update.call(this,e,n),e.some((function(t){return t.target===r.domNode&&"attributes"===t.type}))&&this.attributes.build()},e.prototype.wrap=function(n,r){var i=t.prototype.wrap.call(this,n,r);return i instanceof e&&i.statics.scope===this.statics.scope&&this.attributes.move(i),i},e}(a.default);e.default=u},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(30),o=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.value=function(t){return!0},e.prototype.index=function(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},e.prototype.position=function(t,e){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return t>0&&(n+=1),[this.parent.domNode,n]},e.prototype.value=function(){var t;return(t={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,t},e.scope=o.Scope.INLINE_BLOT,e}(i.default);e.default=a},function(t,e,n){var r=n(11),i=n(3),o={attributes:{compose:function(t,e,n){"object"!==typeof t&&(t={}),"object"!==typeof e&&(e={});var r=i(!0,{},e);for(var o in n||(r=Object.keys(r).reduce((function(t,e){return null!=r[e]&&(t[e]=r[e]),t}),{})),t)void 0!==t[o]&&void 0===e[o]&&(r[o]=t[o]);return Object.keys(r).length>0?r:void 0},diff:function(t,e){"object"!==typeof t&&(t={}),"object"!==typeof e&&(e={});var n=Object.keys(t).concat(Object.keys(e)).reduce((function(n,i){return r(t[i],e[i])||(n[i]=void 0===e[i]?null:e[i]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(t,e,n){if("object"!==typeof t)return e;if("object"===typeof e){if(!n)return e;var r=Object.keys(e).reduce((function(n,r){return void 0===t[r]&&(n[r]=e[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(t){return new a(t)},length:function(t){return"number"===typeof t.delete?t.delete:"number"===typeof t.retain?t.retain:"string"===typeof t.insert?t.insert.length:1}};function a(t){this.ops=t,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(t){t||(t=1/0);var e=this.ops[this.index];if(e){var n=this.offset,r=o.length(e);if(t>=r-n?(t=r-n,this.index+=1,this.offset=0):this.offset+=t,"number"===typeof e.delete)return{delete:t};var i={};return e.attributes&&(i.attributes=e.attributes),"number"===typeof e.retain?i.retain=t:"string"===typeof e.insert?i.insert=e.insert.substr(n,t):i.insert=e.insert,i}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?o.length(this.ops[this.index])-this.offset:1/0}
2,a.prototype.peekType=function(){return this.ops[this.index]?"number"===typeof this.ops[this.index].delete?"delete":"number"===typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var t=this.offset,e=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=t,this.index=e,[n].concat(r)}return[]},t.exports=o},function(t,n){var r=function(){"use strict";function t(t,e){return null!=e&&t instanceof e}var n,r,i;try{n=Map}catch(u){n=function(){}}try{r=Set}catch(u){r=function(){}}try{i=Promise}catch(u){i=function(){}}function o(a,u,l,c,f){"object"===typeof u&&(l=u.depth,c=u.prototype,f=u.includeNonEnumerable,u=u.circular);var h=[],d=[],p="undefined"!=typeof e;return"undefined"==typeof u&&(u=!0),"undefined"==typeof l&&(l=1/0),function a(l,v){if(null===l)return null;if(0===v)return l;var m,g;if("object"!=typeof l)return l;if(t(l,n))m=new n;else if(t(l,r))m=new r;else if(t(l,i))m=new i((function(t,e){l.then((function(e){t(a(e,v-1))}),(function(t){e(a(t,v-1))}))}));else if(o.__isArray(l))m=[];else if(o.__isRegExp(l))m=new RegExp(l.source,s(l)),l.lastIndex&&(m.lastIndex=l.lastIndex);else if(o.__isDate(l))m=new Date(l.getTime());else{if(p&&e.isBuffer(l))return m=e.allocUnsafe?e.allocUnsafe(l.length):new e(l.length),l.copy(m),m;t(l,Error)?m=Object.create(l):"undefined"==typeof c?(g=Object.getPrototypeOf(l),m=Object.create(g)):(m=Object.create(c),g=c)}if(u){var y=h.indexOf(l);if(-1!=y)return d[y];h.push(l),d.push(m)}for(var b in t(l,n)&&l.forEach((function(t,e){var n=a(e,v-1),r=a(t,v-1);m.set(n,r)})),t(l,r)&&l.forEach((function(t){var e=a(t,v-1);m.add(e)})),l){var w;g&&(w=Object.getOwnPropertyDescriptor(g,b)),w&&null==w.set||(m[b]=a(l[b],v-1))}if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(l);for(b=0;b<_.length;b++){var x=_[b];(!(k=Object.getOwnPropertyDescriptor(l,x))||k.enumerable||f)&&(m[x]=a(l[x],v-1),k.enumerable||Object.defineProperty(m,x,{enumerable:!1}))}}if(f){var E=Object.getOwnPropertyNames(l);for(b=0;b<E.length;b++){var k,T=E[b];(k=Object.getOwnPropertyDescriptor(l,T))&&k.enumerable||(m[T]=a(l[T],v-1),Object.defineProperty(m,T,{enumerable:!1}))}}return m}(a,l)}function a(t){return Object.prototype.toString.call(t)}function s(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}return o.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},o.__objToStr=a,o.__isDate=function(t){return"object"===typeof t&&"[object Date]"===a(t)},o.__isArray=function(t){return"object"===typeof t&&"[object Array]"===a(t)},o.__isRegExp=function(t){return"object"===typeof t&&"[object RegExp]"===a(t)},o.__getRegExpFlags=s,o}();"object"===typeof t&&t.exports&&(t.exports=r)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(u){i=!0,o=u}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=d(n(0)),s=d(n(8)),u=n(4),l=d(u),c=d(n(16)),f=d(n(13)),h=d(n(25));function d(t){return t&&t.__esModule?t:{default:t}}function p(t){return t instanceof l.default||t instanceof u.BlockEmbed}var v=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.emitter=n.emitter,Array.isArray(n.whitelist)&&(r.whitelist=n.whitelist.reduce((function(t,e){return t[e]=!0,t}),{}
vendor: 19,703 bytes, line 2
2)),r.domNode.addEventListener("DOMNodeInserted",(function(){})),r.optimize(),r.enable(),r}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(t,n){var i=this.line(t),a=r(i,2),s=a[0],l=a[1],h=this.line(t+n),d=r(h,1)[0];if(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),null!=d&&s!==d&&l>0){if(s instanceof u.BlockEmbed||d instanceof u.BlockEmbed)return void this.optimize();if(s instanceof f.default){var p=s.newlineIndex(s.length(),!0);if(p>-1&&(s=s.split(p+1))===d)return void this.optimize()}else if(d instanceof f.default){var v=d.newlineIndex(0);v>-1&&d.split(v+1)}var m=d.children.head instanceof c.default?null:d.children.head;s.moveChildren(d,m),s.remove()}this.optimize()}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",t)}},{key:"formatAt",value:function(t,n,r,i){(null==this.whitelist||this.whitelist[r])&&(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,r,i),this.optimize())}},{key:"insertAt",value:function(t,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(t>=this.length())if(null==r||null==a.default.query(n,a.default.Scope.BLOCK)){var i=a.default.create(this.statics.defaultChild);this.appendChild(i),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),i.insertAt(0,n,r)}else{var s=a.default.create(n,r);this.appendChild(s)}else o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,r);this.optimize()}}},{key:"insertBefore",value:function(t,n){if(t.statics.scope===a.default.Scope.INLINE_BLOT){var r=a.default.create(this.statics.defaultChild);r.appendChild(t),t=r}o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n)}},{key:"leaf",value:function(t){return this.path(t).pop()||[null,-1]}},{key:"line",value:function(t){return t===this.length()?this.line(t-1):this.descendant(p,t)}},{key:"lines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=function t(e,n,r){var i=[],o=r;return e.children.forEachAt(n,r,(function(e,n,r){p(e)?i.push(e):e instanceof a.default.Container&&(i=i.concat(t(e,n,o))),o-=r})),i};return n(this,t,e)}},{key:"optimize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t,n),t.length>0&&this.emitter.emit(s.default.events.SCROLL_OPTIMIZE,t,n))}},{key:"path",value:function(t){return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t).slice(1)}},{key:"update",value:function(t){if(!0!==this.batch){var n=s.default.sources.USER;"string"===typeof t&&(n=t),Array.isArray(t)||(t=this.observer.takeRecords()),t.length>0&&this.emitter.emit(s.default.events.SCROLL_BEFORE_UPDATE,n,t),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"update",this).call(this,t.concat([])),t.length>0&&this.emitter.emit(s.default.events.SCROLL_UPDATE,n,t)}}}]),e}(a.default.Scroll);v.blotName="scroll",v.className="ql-editor",v.tagName="DIV",v.defaultChild="block",v.allowedChildren=[l.default,u.BlockEmbed,h.default],e.default=v},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SHORTKEY=e.default=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(u){i=!0,o=u}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=v(n(21)),s=v(n(11)),u=v(n(3)),l=v(n(2)),c=v(n(20)),f=v(n(0)),h=v(n(5)),d=v(n(10)),p=v(n(9));function v(t){return t&&t.__esModule?t:{default:t}}function m(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var g=(0,d.default)("quill:keyboard"),y=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",b=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.bindings={},Object.keys(r.options.bindings).forEach((function(e){("list autofill"!==e||null==t.scroll.whitelist||t.scroll.whitelist.list)&&r.options.bindings[e]&&r.addBinding(r.options.bindings[e])})),r.addBinding({key:e.keys.ENTER,shiftKey:null},k),r.addBinding({key:e.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(r.addBinding({key:e.keys.BACKSPACE},{collapsed:!0},_),r.addBinding({key:e.keys.DELETE},{collapsed:!0},x)):(r.addBinding({key:e.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},_),r.addBinding({key:e.keys.DELETE},{collapsed:!0,suffix:/^.?$/},x)),r.addBinding({key:e.keys.BACKSPACE},{collapsed:!1},E),r.addBinding({key:e.keys.DELETE},{collapsed:!1},E),r.addBinding({key:e.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},_),r.listen(),r}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,null,[{key:"match",value:function(t,e){return e=O(e),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!e[n]!==t[n]&&null!==e[n]}))&&e.key===(t.which||t.keyCode)}}]),o(e,[{key:"addBinding",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=O(t);if(null==r||null==r.key)return g.warn("Attempted to add invalid keyboard binding",r);"function"===typeof e&&(e={handler:e}),"function"===typeof n&&(n={handler:n}),r=(0,u.default)(r,e,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var t=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var o=n.which||n.keyCode,a=(t.bindings[o]||[]).filter((function(t){return e.match(n,t)}));if(0!==a.length){var u=t.quill.getSelection();if(null!=u&&t.quill.hasFocus()){var l=t.quill.getLine(u.index),c=i(l,2),h=c[0],d=c[1],p=t.quill.getLeaf(u.index),v=i(p,2),m=v[0],g=v[1],y=0===u.length?[m,g]:t.quill.getLeaf(u.index+u.length),b=i(y,2),w=b[0],_=b[1],x=m instanceof f.default.Text?m.value().slice(0,g):"",E=w instanceof f.default.Text?w.value().slice(_):"",k={collapsed:0===u.length,empty:0===u.length&&h.length()<=1,format:t.quill.getFormat(u),offset:d,prefix:x,suffix:E};a.some((function(e){if(null!=e.collapsed&&e.collapsed!==k.collapsed)return!1;if(null!=e.empty&&e.empty!==k.empty)return!1;if(null!=e.offset&&e.offset!==k.offset)return!1;if(Array.isArray(e.format)){if(e.format.every((function(t){return null==k.format[t]})))return!1}else if("object"===r(e.format)&&!Object.keys(e.format).every((function(t){return!0===e.format[t]?null!=k.format[t]:!1===e.format[t]?null==k.format[t]:(0,s.default)(e.format[t],k.format[t])})))return!1;return!(null!=e.prefix&&!e.prefix.test(k.prefix))&&!(null!=e.suffix&&!e.suffix.test(k.suffix))&&!0!==e.handler.call(t,u,k)}))&&n.preventDefault()}}}}))}}]),e}(p.default);function w(t,e){var n,r=t===b.keys.LEFT?"prefix":"suffix";return m(n={key:t,shiftKey:e,altKey:null},r,/^$/),m(n,"handler",(function(n){var r=n.index;t===b.keys.RIGHT&&(r+=n.length+1);var o=this.quill.getLeaf(r);return!(i(o,1)[0]instanceof f.default.Embed)||(t===b.keys.LEFT?e?this.quill.setSelection(n.index-1,n.length+1,h.default.sources.USER):this.quill.setSelection(n.index-1,h.default.sources.USER):e?this.quill.setSelection(n.index,n.length+1,h.default.sources.USER):this.quill.setSelection(n.index+n.length+1,h.default.sources.USER),!1)})),n}function _(t,e){if(!(0===t.index||this.quill.getLength()<=1)){var n=this.quill.getLine(t.index),r=i(n,1)[0],o={};if(0===e.offset){var a=this.quill.getLine(t.index-1),s=i(a,1)[0];if(null!=s&&s.length()>1){var u=r.formats(),l=this.quill.getFormat(t.index-1,1);o=c.default.attributes.diff(u,l)||{}}}var f=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;this.quill.deleteText(t.index-f,f,h.default.sources.USER),Object.keys(o).length>0&&this.quill.formatLine(t.index-f,f,o,h.default.sources.USER),this.quill.focus()}}function x(t,e){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(!(t.index>=this.quill.getLength()-n)){var r={},o=0,a=this.quill.getLine(t.index),s=i(a,1)[0];if(e.offset>=s.length()-1){var u=this.quill.getLine(t.index+1),l=i(u,1)[0];if(l){var f=s.formats(),d=this.quill.getFormat(t.index,1);r=c.default.attributes.diff(f,d)||{},o=l.length()}}this.quill.deleteText(t.index,n,h.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(t.index+o-1,n,r,h.default.sources.USER)}}function E(t){var e=this.quill.getLines(t),n={};if(e.length>1){var r=e[0].formats(),i=e[e.length-1].formats();n=c.default.attributes.diff(i,r)||{}}this.quill.deleteText(t,h.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(t.index,1,n,h.default.sources.USER),this.quill.setSelection(t.index,h.default.sources.SILENT),this.quill.focus()}function k(t,e){var n=this;t.length>0&&this.quill.scroll.deleteAt(t.index,t.length);var r=Object.keys(e.format).reduce((function(t,n){return f.default.query(n,f.default.Scope.BLOCK)&&!Array.isArray(e.format[n])&&(t[n]=e.format[n]),t}),{});this.quill.insertText(t.index,"\n",r,h.default.sources.USER),this.quill.setSelection(t.index+1,h.default.sources.SILENT),this.quill.focus(),Object.keys(e.format).forEach((function(t){null==r[t]&&(Array.isArray(e.format[t])||"link"!==t&&n.quill.format(t,e.format[t],h.default.sources.USER))}))}function T(t){return{key:b.keys.TAB,shiftKey:!t,format:{"code-block":!0},handler:function(e){var n=f.default.query("code-block"),r=e.index,o=e.length,a=this.quill.scroll.descendant(n,r),s=i(a,2),u=s[0],l=s[1];if(null!=u){var c=this.quill.getIndex(u),d=u.newlineIndex(l,!0)+1,p=u.newlineIndex(c+l+o),v=u.domNode.textContent.slice(d,p).split("\n");l=0,v.forEach((function(e,i){t?(u.insertAt(d+l,n.TAB),l+=n.TAB.length,0===i?r+=n.TAB.length:o+=n.TAB.length):e.startsWith(n.TAB)&&(u.deleteAt(d+l,n.TAB.length),l-=n.TAB.length,0===i?r-=n.TAB.length:o-=n.TAB.length),l+=e.length+1})),this.quill.update(h.default.sources.USER),this.quill.setSelection(r,o,h.default.sources.SILENT)}}}}function S(t){return{key:t[0].toUpperCase(),shortKey:!0,handler:function(e,n){this.quill.format(t,!n.format[t],h.default.sources.USER)}}}function O(t){if("string"===typeof t||"number"===typeof t)return O({key:t});if("object"===("undefined"===typeof t?"undefined":r(t))&&(t=(0,a.default)(t,!1)),"string"===typeof t.key)if(null!=b.keys[t.key.toUpperCase()])t.key=b.keys[t.key.toUpperCase()];else{if(1!==t.key.length)return null;t.key=t.key.toUpperCase().charCodeAt(0)}return t.shortKey&&(t[y]=t.shortKey,delete t.shortKey),t}b.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},b.DEFAULTS={bindings:{bold:S("bold"),italic:S("italic"),underline:S("underline"),indent:{key:b.keys.TAB,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","+1",h.default.sources.USER)}},outdent:{key:b.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","-1",h.default.sources.USER)}},"outdent backspace":{key:b.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(t,e){null!=e.format.indent?this.quill.format("indent","-1",h.default.sources.USER):null!=e.format.list&&this.quill.format("list",!1,h.default.sources.USER)}},"indent code-block":T(!0),"outdent code-block":T(!1),"remove tab":{key:b.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(t){this.quill.deleteText(t.index-1,1,h.default.sources.USER)}},tab:{key:b.keys.TAB,handler:function(t){this.quill.history.cutoff();var e=(new l.default).retain(t.index).delete(t.length).insert("\t");this.quill.updateContents(e,h.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,h.default.sources.SILENT)}},"list empty enter":{key:b.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(t,e){this.quill.format("list",!1,h.default.sources.USER),e.format.indent&&this.quill.format("indent",!1,h.default.sources.USER)}},"checklist enter":{key:b.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(t){var e=this.quill.getLine(t.index),n=i(e,2),r=n[0],o=n[1],a=(0,u.default)({},r.formats(),{list:"checked"}),s=(new l.default).retain(t.index).insert("\n",a).retain(r.length()-o-1).retain(1,{list:"unchecked"});this.quill.updateContents(s,h.default.sources.USER),this.quill.setSelection(t.index+1,h.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:b.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(t,e){var n=this.quill.getLine(t.index),r=i(n,2),o=r[0],a=r[1],s=(new l.default).retain(t.index).insert("\n",e.format).retain(o.length()-a-1).retain(1,{header:null});this.quill.updateContents(s,h.default.sources.USER),this.quill.setSelection(t.index+1,h.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(t,e){var n=e.prefix.length,r=this.quill.getLine(t.index),o=i(r,2),a=o[0],s=o[1];if(s>n)return!0;var u=void 0;switch(e.prefix.trim()){case"[]":case"[ ]":u="unchecked";break;case"[x]":u="checked";break;case"-":case"*":u="bullet";break;default:u="ordered"}this.quill.insertText(t.index," ",h.default.sources.USER),this.quill.history.cutoff();var c=(new l.default).retain(t.index-s).delete(n+1).retain(a.length()-2-s).retain(1,{list:u});this.quill.updateContents(c,h.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-n,h.default.sources.SILENT)}},"code exit":{key:b.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(t){var e=this.quill.getLine(t.index),n=i(e,2),r=n[0],o=n[1],a=(new l.default).retain(t.index+r.length()-o-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,h.default.sources.USER)}},"embed left":w(b.keys.LEFT,!1),"embed left shift":w(b.keys.LEFT,!0),"embed right":w(b.keys.RIGHT,!1),"embed right shift":w(b.keys.RIGHT,!0)}},e.default=b,e.SHORTKEY=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(u){i=!0,o=u}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=u(n(0)),s=u(n(7));function u(t){return t&&t.__esModule?t:{default:t}}var l=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.selection=n,r.textNode=document.createTextNode(e.CONTENTS),r.domNode.appendChild(r.textNode),r._length=0,r}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,null,[{key:"value",value:function(){}}]),o(e,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(t,n){if(0!==this._length)return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);for(var r=this,o=0;null!=r&&r.statics.scope!==a.default.Scope.BLOCK_BLOT;)o+=r.offset(r.parent),r=r.parent;null!=r&&(this._length=e.CONTENTS.length,r.optimize(),r.formatAt(o,e.CONTENTS.length,t,n),this._length=0)}},{key:"index",value:function(t,n){return t===this.textNode?0:i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var t=this.textNode,n=this.selection.getNativeRange(),i=void 0,o=void 0,u=void 0;if(null!=n&&n.start.node===t&&n.end.node===t){var l=[t,n.start.offset,n.end.offset];i=l[0],o=l[1],u=l[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==e.CONTENTS){var c=this.textNode.data.split(e.CONTENTS).join("");this.next instanceof s.default?(i=this.next.domNode,this.next.insertAt(0,c),this.textNode.data=e.CONTENTS):(this.textNode.data=c,this.parent.insertBefore(a.default.create(this.textNode),this),this.textNode=document.createTextNode(e.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=o){var f=[o,u].map((function(t){return Math.max(0,Math.min(i.data.length,t-1))})),h=r(f,2);return o=h[0],u=h[1],{startNode:i,startOffset:o,endNode:i,endOffset:u}}}}},{key:"update",value:function(t,e){var n=this;if(t.some((function(t){return"characterData"===t.type&&t.target===n.textNode}
vendor: 5,348 bytes, line 2
2))){var r=this.restore();r&&(e.range=r)}}},{key:"value",value:function(){return""}}]),e}(a.default.Embed);l.blotName="cursor",l.className="ql-cursor",l.tagName="span",l.CONTENTS="\ufeff",e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a(n(0)),i=n(4),o=a(i);function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var l=function(t){function e(){return s(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(r.default.Container);l.allowedChildren=[o.default,i.BlockEmbed,l],e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColorStyle=e.ColorClass=e.ColorAttributor=void 0;var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(0),a=(r=o)&&r.__esModule?r:{default:r};function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var l=function(t){function e(){return s(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"value",value:function(t){var n=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map((function(t){return("00"+parseInt(t).toString(16)).slice(-2)})).join("")):n}}]),e}(a.default.Attributor.Style),c=new a.default.Attributor.Class("color","ql-color",{scope:a.default.Scope.INLINE}),f=new l("color","color",{scope:a.default.Scope.INLINE});e.ColorAttributor=l,e.ColorClass=c,e.ColorStyle=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sanitize=e.default=void 0;var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(6);function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var l=function(t){function e(){return s(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n)return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(t){var n=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return t=this.sanitize(t),n.setAttribute("href",t),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(t){return t.getAttribute("href")}},{key:"sanitize",value:function(t){return c(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}}]),e}(((r=a)&&r.__esModule?r:{default:r}).default);function c(t,e){var n=document.createElement("a");n.href=t;var r=n.href.slice(0,n.href.indexOf(":"));return e.indexOf(r)>-1}l.blotName="link",l.tagName="A",l.SANITIZED_URL="about:blank",l.PROTOCOL_WHITELIST=["http","https","mailto","tel"],e.default=l,e.sanitize=c},function(t,e,n){"use strict";
vendor: 8,675 bytes, line 2
2Object.defineProperty(e,"__esModule",{value:!0});var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=s(n(23)),a=s(n(107));function s(t){return t&&t.__esModule?t:{default:t}}var u=0;function l(t,e){t.setAttribute(e,!("true"===t.getAttribute(e)))}var c=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(t){switch(t.keyCode){case o.default.keys.ENTER:n.togglePicker();break;case o.default.keys.ESCAPE:n.escape(),t.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}return i(t,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),l(this.label,"aria-expanded"),l(this.options,"aria-hidden")}},{key:"buildItem",value:function(t){var e=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),t.hasAttribute("value")&&n.setAttribute("data-value",t.getAttribute("value")),t.textContent&&n.setAttribute("data-label",t.textContent),n.addEventListener("click",(function(){e.selectItem(n,!0)})),n.addEventListener("keydown",(function(t){switch(t.keyCode){case o.default.keys.ENTER:e.selectItem(n,!0),t.preventDefault();break;case o.default.keys.ESCAPE:e.escape(),t.preventDefault()}})),n}},{key:"buildLabel",value:function(){var t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=a.default,t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t}},{key:"buildOptions",value:function(){var t=this,e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id="ql-picker-options-"+u,u+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,[].slice.call(this.select.options).forEach((function(n){var r=t.buildItem(n);e.appendChild(r),!0===n.selected&&t.selectItem(r)})),this.container.appendChild(e)}},{key:"buildPicker",value:function(){var t=this;[].slice.call(this.select.attributes).forEach((function(e){t.container.setAttribute(e.name,e.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var t=this;this.close(),setTimeout((function(){return t.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(t!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=t&&(t.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(t.parentNode.children,t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e))){if("function"===typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"===typeof Event?"undefined":r(Event))){var i=document.createEvent("Event");i.initEvent("change",!0,!0),this.select.dispatchEvent(i)}this.close()}}},{key:"update",value:function(){var t=void 0;if(this.select.selectedIndex>-1){var e=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(e)}else this.selectItem(null);var n=null!=t&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),t}();e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=g(n(0)),i=g(n(5)),o=n(4),a=g(o),s=g(n(16)),u=g(n(25)),l=g(n(24)),c=g(n(35)),f=g(n(6)),h=g(n(22)),d=g(n(7)),p=g(n(55)),v=g(n(42)),m=g(n(23));function g(t){return t&&t.__esModule?t:{default:t}}i.default.register({"blots/block":a.default,"blots/block/embed":o.BlockEmbed,"blots/break":s.default,"blots/container":u.default,"blots/cursor":l.default,"blots/embed":c.default,"blots/inline":f.default,"blots/scroll":h.default,"blots/text":d.default,"modules/clipboard":p.default,"modules/history":v.default,"modules/keyboard":m.default}),r.default.register(a.default,s.default,l.default,f.default,h.default,d.default),e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(){function t(t){this.domNode=t,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(t.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),t.create=function(t){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var e;return Array.isArray(this.tagName)?("string"===typeof t&&(t=t.toUpperCase(),parseInt(t).toString()===t&&(t=parseInt(t))),e="number"===typeof t?document.createElement(this.tagName[t-1]):this.tagName.indexOf(t)>-1?document.createElement(t):document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e},t.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},t.prototype.clone=function(){var t=this.domNode.cloneNode(!1);return r.create(t)},t.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},t.prototype.deleteAt=function(t,e){this.isolate(t,e).remove()},t.prototype.formatAt=function(t,e,n,i){var o=this.isolate(t,e);if(null!=r.query(n,r.Scope.BLOT)&&i)o.wrap(n,i);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var a=r.create(this.statics.scope);o.wrap(a),a.format(n,i)}},t.prototype.insertAt=function(t,e,n){var i=null==n?r.create("text",e):r.create(e,n),o=this.split(t);this.parent.insertBefore(i,o)},t.prototype.insertInto=function(t,e){void 0===e&&(e=null),null!=this.parent&&this.parent.children.remove(this);var n=null;t.children.insertBefore(this,e),null!=e&&(n=e.domNode),this.domNode.parentNode==t.domNode&&this.domNode.nextSibling==n||t.domNode.insertBefore(this.domNode,n),this.parent=t,this.attach()},t.prototype.isolate=function(t,e){var n=this.split(t);return n.split(e),n},t.prototype.length=function(){return 1},t.prototype.offset=function(t){return void 0===t&&(t=this.parent),null==this.parent||this==t?0:this.parent.children.offset(this)+this.parent.offset(t)},t.prototype.optimize=function(t){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},t.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},t.prototype.replace=function(t){null!=t.parent&&(t.parent.insertBefore(this,t.next),t.remove())},t.prototype.replaceWith=function(t,e){var n="string"===typeof t?r.create(t,e):t;return n.replace(this),n},t.prototype.split=function(t,e){return 0===t?this:this.next},t.prototype.update=function(t,e){},t.prototype.wrap=function(t,e){var n="string"===typeof t?r.create(t,e):t;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},t.blotName="abstract",t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(12),i=n(32),o=n(33),a=n(1),s=function(){function t(t){this.attributes={},this.domNode=t,this.build()}return t.prototype.attribute=function(t,e){e?t.add(this.domNode,e)&&(null!=t.value(this.domNode)?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])},t.prototype.build=function(){var t=this;this.attributes={};var e=r.default.keys(this.domNode),n=i.default.keys(this.domNode),s=o.default.keys(this.domNode);e.concat(n).concat(s).forEach((function(e){var n=a.query(e,a.Scope.ATTRIBUTE);n instanceof r.default&&(t.attributes[n.attrName]=n)}))},t.prototype.copy=function(t){var e=this;
vendor: 9,429 bytes, line 2
2Object.keys(this.attributes).forEach((function(n){var r=e.attributes[n].value(e.domNode);t.format(n,r)}))},t.prototype.move=function(t){var e=this;this.copy(t),Object.keys(this.attributes).forEach((function(t){e.attributes[t].remove(e.domNode)})),this.attributes={}},t.prototype.values=function(){var t=this;return Object.keys(this.attributes).reduce((function(e,n){return e[n]=t.attributes[n].value(t.domNode),e}),{})},t}();e.default=s},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function i(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter((function(t){return 0===t.indexOf(e+"-")}))}Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.keys=function(t){return(t.getAttribute("class")||"").split(/\s+/).map((function(t){return t.split("-").slice(0,-1).join("-")}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(this.remove(t),t.classList.add(this.keyName+"-"+e),!0)},e.prototype.remove=function(t){i(t,this.keyName).forEach((function(e){t.classList.remove(e)})),0===t.classList.length&&t.removeAttribute("class")},e.prototype.value=function(t){var e=(i(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,e)?e:""},e}(n(12).default);e.default=o},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function i(t){var e=t.split("-"),n=e.slice(1).map((function(t){return t[0].toUpperCase()+t.slice(1)})).join("");return e[0]+n}Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.keys=function(t){return(t.getAttribute("style")||"").split(";").map((function(t){return t.split(":")[0].trim()}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.style[i(this.keyName)]=e,!0)},e.prototype.remove=function(t){t.style[i(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")},e.prototype.value=function(t){var e=t.style[i(this.keyName)];return this.canAdd(t,e)?e:""},e}(n(12).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.quill=e,this.options=n,this.modules={}}return r(t,[{key:"init",value:function(){var t=this;Object.keys(this.options.modules).forEach((function(e){null==t.modules[e]&&t.addModule(e)}))}},{key:"addModule",value:function(t){var e=this.quill.constructor.import("modules/"+t);return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}}]),t}();i.DEFAULTS={modules:{}},i.themes={default:i},e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=a(n(0)),o=a(n(7));function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(t){n.contentNode.appendChild(t)})),n.leftGuard=document.createTextNode("\ufeff"),n.rightGuard=document.createTextNode("\ufeff"),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"index",value:function(t,n){return t===this.leftGuard?0:t===this.rightGuard?1:function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"restore",value:function(t){var e=void 0,n=void 0,r=t.data.split("\ufeff").join("");if(t===this.leftGuard)if(this.prev instanceof o.default){var a=this.prev.length();this.prev.insertAt(a,r),e={startNode:this.prev.domNode,startOffset:a+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(i.default.create(n),this),e={startNode:n,startOffset:r.length};else t===this.rightGuard&&(this.next instanceof o.default?(this.next.insertAt(0,r),e={startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(i.default.create(n),this.next),e={startNode:n,startOffset:r.length}));return t.data="\ufeff",e}},{key:"update",value:function(t,e){var n=this;t.forEach((function(t){if("characterData"===t.type&&(t.target===n.leftGuard||t.target===n.rightGuard)){var r=n.restore(t.target);r&&(e.range=r)}}))}}]),e}(i.default.Embed);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlignStyle=e.AlignClass=e.AlignAttribute=void 0;var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r},a={scope:o.default.Scope.BLOCK,whitelist:["right","center","justify"]},s=new o.default.Attributor.Attribute("align","align",a),u=new o.default.Attributor.Class("align","ql-align",a),l=new o.default.Attributor.Style("align","text-align",a);e.AlignAttribute=s,e.AlignClass=u,e.AlignStyle=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BackgroundStyle=e.BackgroundClass=void 0;var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r},a=n(26),s=new o.default.Attributor.Class("background","ql-bg",{scope:o.default.Scope.INLINE}),u=new a.ColorAttributor("background","background-color",{scope:o.default.Scope.INLINE});e.BackgroundClass=s,e.BackgroundStyle=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DirectionStyle=e.DirectionClass=e.DirectionAttribute=void 0;var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r},a={scope:o.default.Scope.BLOCK,whitelist:["rtl"]},s=new o.default.Attributor.Attribute("direction","dir",a),u=new o.default.Attributor.Class("direction","ql-direction",a),l=new o.default.Attributor.Style("direction","direction",a);e.DirectionAttribute=s,e.DirectionClass=u,e.DirectionStyle=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FontClass=e.FontStyle=void 0;var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(0),a=(r=o)&&r.__esModule?r:{default:r};function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var l={scope:a.default.Scope.INLINE,whitelist:["serif","monospace"]},c=new a.default.Attributor.Class("font","ql-font",l),f=new(function(t){function e(){return s(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"value",value:function(t){return function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t).replace(/["']/g,"")}}]),e}(a.default.Attributor.Style))("font","font-family",l);e.FontStyle=f,e.FontClass=c},function(t,e,n){"use strict";
vendor: 4,156 bytes, line 2
2Object.defineProperty(e,"__esModule",{value:!0}),e.SizeStyle=e.SizeClass=void 0;var r,i=n(0),o=(r=i)&&r.__esModule?r:{default:r},a=new o.default.Attributor.Class("size","ql-size",{scope:o.default.Scope.INLINE,whitelist:["small","large","huge"]}),s=new o.default.Attributor.Style("size","font-size",{scope:o.default.Scope.INLINE,whitelist:["10px","18px","32px"]});e.SizeClass=a,e.SizeStyle=s},function(t,e,n){"use strict";t.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLastChangeIndex=e.default=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=a(n(0)),o=a(n(5));function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.lastRecorded=0,r.ignoreChange=!1,r.clear(),r.quill.on(o.default.events.EDITOR_CHANGE,(function(t,e,n,i){t!==o.default.events.TEXT_CHANGE||r.ignoreChange||(r.options.userOnly&&i!==o.default.sources.USER?r.transform(e):r.record(e,n))})),r.quill.keyboard.addBinding({key:"Z",shortKey:!0},r.undo.bind(r)),r.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},r.redo.bind(r)),/Win/i.test(navigator.platform)&&r.quill.keyboard.addBinding({key:"Y",shortKey:!0},r.redo.bind(r)),r}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"change",value:function(t,e){if(0!==this.stack[t].length){var n=this.stack[t].pop();this.stack[e].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[t],o.default.sources.USER),this.ignoreChange=!1;var r=u(n[t]);this.quill.setSelection(r)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(t,e){if(0!==t.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(e),r=Date.now();if(this.lastRecorded+this.options.delay>r&&this.stack.undo.length>0){var i=this.stack.undo.pop();n=n.compose(i.undo),t=i.redo.compose(t)}else this.lastRecorded=r;this.stack.undo.push({redo:t,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(t){this.stack.undo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)})),this.stack.redo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),e}(a(n(9)).default);function u(t){var e=t.reduce((function(t,e){return t+=e.delete||0}),0),n=t.length()-e;return function(t){var e=t.ops[t.ops.length-1];return null!=e&&(null!=e.insert?"string"===typeof e.insert&&e.insert.endsWith("\n"):null!=e.attributes&&Object.keys(e.attributes).some((function(t){return null!=i.default.query(t,i.default.Scope.BLOCK)})))}(t)&&(n-=1),n}s.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},e.default=s,e.getLastChangeIndex=u},function(t,e,n){"use strict";
vendor: 7,033 bytes, line 2
2Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BaseTooltip=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=d(n(3)),o=d(n(2)),a=d(n(8)),s=d(n(23)),u=d(n(34)),l=d(n(59)),c=d(n(60)),f=d(n(28)),h=d(n(61));function d(t){return t&&t.__esModule?t:{default:t}}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function m(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var g=[!1,"center","right","justify"],y=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],b=[!1,"serif","monospace"],w=["1","2","3",!1],_=["small",!1,"large","huge"],x=function(t){function e(t,n){p(this,e);var r=v(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return t.emitter.listenDOM("click",document.body,(function e(n){if(!document.body.contains(t.root))return document.body.removeEventListener("click",e);null==r.tooltip||r.tooltip.root.contains(n.target)||document.activeElement===r.tooltip.textbox||r.quill.hasFocus()||r.tooltip.hide(),null!=r.pickers&&r.pickers.forEach((function(t){t.container.contains(n.target)||t.close()}))})),r}return m(e,t),r(e,[{key:"addModule",value:function(t){var n=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"addModule",this).call(this,t);return"toolbar"===t&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(t,e){t.forEach((function(t){(t.getAttribute("class")||"").split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice("ql-".length),null!=e[n]))if("direction"===n)t.innerHTML=e[n][""]+e[n].rtl;else if("string"===typeof e[n])t.innerHTML=e[n];else{var r=t.value||"";null!=r&&e[n][r]&&(t.innerHTML=e[n][r])}}))}))}},{key:"buildPickers",value:function(t,e){var n=this;this.pickers=t.map((function(t){if(t.classList.contains("ql-align"))return null==t.querySelector("option")&&k(t,g),new c.default(t,e.align);if(t.classList.contains("ql-background")||t.classList.contains("ql-color")){var n=t.classList.contains("ql-background")?"background":"color";return null==t.querySelector("option")&&k(t,y,"background"===n?"#ffffff":"#000000"),new l.default(t,e[n])}return null==t.querySelector("option")&&(t.classList.contains("ql-font")?k(t,b):t.classList.contains("ql-header")?k(t,w):t.classList.contains("ql-size")&&k(t,_)),new f.default(t)})),this.quill.on(a.default.events.EDITOR_CHANGE,(function(){n.pickers.forEach((function(t){t.update()}))}))}}]),e}(u.default);x.DEFAULTS=(0,i.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var t=this,e=this.container.querySelector("input.ql-image[type=file]");null==e&&((e=document.createElement("input")).setAttribute("type","file"),e.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),e.classList.add("ql-image"),e.addEventListener("change",(function(){if(null!=e.files&&null!=e.files[0]){var n=new FileReader;n.onload=function(n){var r=t.quill.getSelection(!0);t.quill.updateContents((new o.default).retain(r.index).delete(r.length).insert({image:n.target.result}),a.default.sources.USER),t.quill.setSelection(r.index+1,a.default.sources.SILENT),e.value=""},n.readAsDataURL(e.files[0])}})),this.container.appendChild(e)),e.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var E=function(t){function e(t,n){p(this,e);var r=v(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.textbox=r.root.querySelector('input[type="text"]'),r.listen(),r}return m(e,t),r(e,[{key:"listen",value:function(){var t=this;this.textbox.addEventListener("keydown",(function(e){s.default.match(e,"enter")?(t.save(),e.preventDefault()):s.default.match(e,"escape")&&(t.cancel(),e.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=e?this.textbox.value=e:t!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+t)||""),this.root.setAttribute("data-mode",t)}},{key:"restoreFocus",value:function(){var t=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=t}},{key:"save",value:function(){var t=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var e=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,a.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,a.default.sources.USER)),this.quill.root.scrollTop=e;break;case"video":t=function(t){var e=t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?(e[1]||"https")+"://www.youtube.com/embed/"+e[2]+"?showinfo=0":(e=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(e[1]||"https")+"://player.vimeo.com/video/"+e[2]+"/":t}(t);case"formula":if(!t)break;var n=this.quill.getSelection(!0);if(null!=n){var r=n.index+n.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),t,a.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(r+1," ",a.default.sources.USER),this.quill.setSelection(r+2,a.default.sources.USER)}}this.textbox.value="",this.hide()}}]),e}(h.default);function k(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.forEach((function(e){var r=document.createElement("option");e===n?r.setAttribute("selected","selected"):r.setAttribute("value",e),t.appendChild(r)}))}e.BaseTooltip=E,e.default=x},function(t,e,n){"use strict";
vendor: 4,233 bytes, line 2
2Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.head=this.tail=null,this.length=0}return t.prototype.append=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.insertBefore(t[0],null),t.length>1&&this.append.apply(this,t.slice(1))},t.prototype.contains=function(t){for(var e,n=this.iterator();e=n();)if(e===t)return!0;return!1},t.prototype.insertBefore=function(t,e){t&&(t.next=e,null!=e?(t.prev=e.prev,null!=e.prev&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):null!=this.tail?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)},t.prototype.offset=function(t){for(var e=0,n=this.head;null!=n;){if(n===t)return e;e+=n.length(),n=n.next}return-1},t.prototype.remove=function(t){this.contains(t)&&(null!=t.prev&&(t.prev.next=t.next),null!=t.next&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)},t.prototype.iterator=function(t){return void 0===t&&(t=this.head),function(){var e=t;return null!=t&&(t=t.next),e}},t.prototype.find=function(t,e){void 0===e&&(e=!1);for(var n,r=this.iterator();n=r();){var i=n.length();if(t<i||e&&t===i&&(null==n.next||0!==n.next.length()))return[n,t];t-=i}return[null,0]},t.prototype.forEach=function(t){for(var e,n=this.iterator();e=n();)t(e)},t.prototype.forEachAt=function(t,e,n){if(!(e<=0))for(var r,i=this.find(t),o=i[0],a=t-i[1],s=this.iterator(o);(r=s())&&a<t+e;){var u=r.length();t>a?n(r,t-a,Math.min(e,a+u-t)):n(r,0,Math.min(u,t+e-a)),a+=u}},t.prototype.map=function(t){return this.reduce((function(e,n){return e.push(t(n)),e}),[])},t.prototype.reduce=function(t,e){for(var n,r=this.iterator();n=r();)e=t(e,n);return e},t}();e.default=r},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(17),o=n(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=function(t){function e(e){var n=t.call(this,e)||this;return n.scroll=n,n.observer=new MutationObserver((function(t){n.update(t)})),n.observer.observe(n.domNode,a),n.attach(),n}return r(e,t),e.prototype.detach=function(){t.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(e,n){this.update(),0===e&&n===this.length()?this.children.forEach((function(t){t.remove()})):t.prototype.deleteAt.call(this,e,n)},e.prototype.formatAt=function(e,n,r,i){this.update(),t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.insertAt=function(e,n,r){this.update(),t.prototype.insertAt.call(this,e,n,r)},e.prototype.optimize=function(e,n){var r=this;void 0===e&&(e=[]),void 0===n&&(n={}),t.prototype.optimize.call(this,n);for(var a=[].slice.call(this.observer.takeRecords());a.length>0;)e.push(a.pop());for(var s=function t(e,n){void 0===n&&(n=!0),null!=e&&e!==r&&null!=e.domNode.parentNode&&(null==e.domNode[o.DATA_KEY].mutations&&(e.domNode[o.DATA_KEY].mutations=[]),n&&t(e.parent))},u=function t(e){null!=e.domNode[o.DATA_KEY]&&null!=e.domNode[o.DATA_KEY].mutations&&(e instanceof i.default&&e.children.forEach(t),e.optimize(n))},l=e,c=0;l.length>0;c+=1){if(c>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(l.forEach((function(t){var e=o.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(s(o.find(t.previousSibling,!1)),[].forEach.call(t.addedNodes,(function(t){var e=o.find(t,!1);s(e,!1),e instanceof i.default&&e.children.forEach((function(t){s(t,!1)}))}))):"attributes"===t.type&&s(e.prev)),s(e))})),this.children.forEach(u),a=(l=[].slice.call(this.observer.takeRecords())).slice();a.length>0;)e.push(a.pop())}},e.prototype.update=function(e,n){var r=this;void 0===n&&(n={}),(e=e||this.observer.takeRecords()).map((function(t){var e=o.find(t.target,!0);return null==e?null:null==e.domNode[o.DATA_KEY].mutations?(e.domNode[o.DATA_KEY].mutations=[t],e):(e.domNode[o.DATA_KEY].mutations.push(t),null)}
vendor: 2,890 bytes, line 2
2)).forEach((function(t){null!=t&&t!==r&&null!=t.domNode[o.DATA_KEY]&&t.update(t.domNode[o.DATA_KEY].mutations||[],n)})),null!=this.domNode[o.DATA_KEY].mutations&&t.prototype.update.call(this,this.domNode[o.DATA_KEY].mutations,n),this.optimize(e,n)},e.blotName="scroll",e.defaultChild="block",e.scope=o.Scope.BLOCK_BLOT,e.tagName="DIV",e}(i.default);e.default=s},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(18),o=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(n){if(n.tagName!==e.tagName)return t.formats.call(this,n)},e.prototype.format=function(n,r){var o=this;n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):(this.children.forEach((function(t){t instanceof i.default||(t=t.wrap(e.blotName,!0)),o.attributes.copy(t)})),this.unwrap())},e.prototype.formatAt=function(e,n,r,i){null!=this.formats()[r]||o.query(r,o.Scope.ATTRIBUTE)?this.isolate(e,n).format(r,i):t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var i=this.next;i instanceof e&&i.prev===this&&function(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n in t)if(t[n]!==e[n])return!1;return!0}(r,i.formats())&&(i.moveChildren(this),i.remove())},e.blotName="inline",e.scope=o.Scope.INLINE_BLOT,e.tagName="SPAN",e}(i.default);e.default=a},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(18),o=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(n){var r=o.query(e.blotName).tagName;if(n.tagName!==r)return t.formats.call(this,n)},e.prototype.format=function(n,r){null!=o.query(n,o.Scope.BLOCK)&&(n!==this.statics.blotName||r?t.prototype.format.call(this,n,r):this.replaceWith(e.blotName))},e.prototype.formatAt=function(e,n,r,i){null!=o.query(r,o.Scope.BLOCK)?this.format(r,i):t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.insertAt=function(e,n,r){if(null==r||null!=o.query(n,o.Scope.INLINE))t.prototype.insertAt.call(this,e,n,r);else{var i=this.split(e),a=o.create(n,r);i.parent.insertBefore(a,i)}}
vendor: 9,226 bytes, line 2
2,e.prototype.update=function(e,n){navigator.userAgent.match(/Trident/)?this.build():t.prototype.update.call(this,e,n)},e.blotName="block",e.scope=o.Scope.BLOCK_BLOT,e.tagName="P",e}(i.default);e.default=a},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.formats=function(t){},e.prototype.format=function(e,n){t.prototype.formatAt.call(this,0,this.length(),e,n)},e.prototype.formatAt=function(e,n,r,i){0===e&&n===this.length()?this.format(r,i):t.prototype.formatAt.call(this,e,n,r,i)},e.prototype.formats=function(){return this.statics.formats(this.domNode)},e}(n(19).default);e.default=i},function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var i=n(19),o=n(1),a=function(t){function e(e){var n=t.call(this,e)||this;return n.text=n.statics.value(n.domNode),n}return r(e,t),e.create=function(t){return document.createTextNode(t)},e.value=function(t){var e=t.data;return e.normalize&&(e=e.normalize()),e},e.prototype.deleteAt=function(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)},e.prototype.index=function(t,e){return this.domNode===t?e:-1},e.prototype.insertAt=function(e,n,r){null==r?(this.text=this.text.slice(0,e)+n+this.text.slice(e),this.domNode.data=this.text):t.prototype.insertAt.call(this,e,n,r)},e.prototype.length=function(){return this.text.length},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof e&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},e.prototype.position=function(t,e){return void 0===e&&(e=!1),[this.domNode,t]},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=o.create(this.domNode.splitText(t));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},e.prototype.update=function(t,e){var n=this;t.some((function(t){return"characterData"===t.type&&t.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},e.prototype.value=function(){return this.text},e.blotName="text",e.scope=o.Scope.INLINE_BLOT,e}(i.default);e.default=a},function(t,e,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var i=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return arguments.length>1&&!this.contains(t)===!e?e:i.call(this,t)}}String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.substr(e,t.length)===t}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var n=this.toString();("number"!==typeof e||!isFinite(e)||Math.floor(e)!==e||e>n.length)&&(e=n.length),e-=t.length;var r=n.indexOf(t,e);return-1!==r&&r===e}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof t)throw new TypeError("predicate must be a function");for(var e,n=Object(this),r=n.length>>>0,i=arguments[1],o=0;o<r;o++)if(e=n[o],t.call(i,e,o,n))return e}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(t,e){function n(t,e,a){if(t==e)return t?[[0,t]]:[];(a<0||t.length<a)&&(a=null);var u=i(t,e),l=t.substring(0,u);u=o(t=t.substring(u),e=e.substring(u));var c=t.substring(t.length-u),f=function(t,e){var a;if(!t)return[[1,e]];if(!e)return[[-1,t]];var s=t.length>e.length?t:e,u=t.length>e.length?e:t,l=s.indexOf(u);if(-1!=l)return a=[[1,s.substring(0,l)],[0,u],[1,s.substring(l+u.length)]],t.length>e.length&&(a[0][0]=a[2][0]=-1),a;if(1==u.length)return[[-1,t],[1,e]];var c=function(t,e){var n=t.length>e.length?t:e,r=t.length>e.length?e:t;if(n.length<4||2*r.length<n.length)return null;function a(t,e,n){for(var r,a,s,u,l=t.substring(n,n+Math.floor(t.length/4)),c=-1,f="";-1!=(c=e.indexOf(l,c+1));){var h=i(t.substring(n),e.substring(c)),d=o(t.substring(0,n),e.substring(0,c));f.length<d+h&&(f=e.substring(c-d,c)+e.substring(c,c+h),r=t.substring(0,n-d),a=t.substring(n+h),s=e.substring(0,c-d),u=e.substring(c+h))}return 2*f.length>=t.length?[r,a,s,u,f]:null}var s,u,l,c,f,h=a(n,r,Math.ceil(n.length/4)),d=a(n,r,Math.ceil(n.length/2));if(!h&&!d)return null;s=d?h&&h[4].length>d[4].length?h:d:h,t.length>e.length?(u=s[0],l=s[1],c=s[2],f=s[3]):(c=s[0],f=s[1],u=s[2],l=s[3]);var p=s[4];return[u,l,c,f,p]}(t,e);if(c){var f=c[0],h=c[1],d=c[2],p=c[3],v=c[4],m=n(f,d),g=n(h,p);return m.concat([[0,v]],g)}return function(t,e){for(var n=t.length,i=e.length,o=Math.ceil((n+i)/2),a=o,s=2*o,u=new Array(s),l=new Array(s),c=0;c<s;c++)u[c]=-1,l[c]=-1;u[a+1]=0,l[a+1]=0;for(var f=n-i,h=f%2!=0,d=0,p=0,v=0,m=0,g=0;g<o;g++){for(var y=-g+d;y<=g-p;y+=2){for(var b=a+y,w=(T=y==-g||y!=g&&u[b-1]<u[b+1]?u[b+1]:u[b-1]+1)-y;T<n&&w<i&&t.charAt(T)==e.charAt(w);)T++,w++;if(u[b]=T,T>n)p+=2;else if(w>i)d+=2;else if(h&&(E=a+f-y)>=0&&E<s&&-1!=l[E]){var _=n-l[E];if(T>=_)return r(t,e,T,w)}}for(var x=-g+v;x<=g-m;x+=2){for(var E=a+x,k=(_=x==-g||x!=g&&l[E-1]<l[E+1]?l[E+1]:l[E-1]+1)-x;_<n&&k<i&&t.charAt(n-_-1)==e.charAt(i-k-1);)_++,k++;if(l[E]=_,_>n)m+=2;else if(k>i)v+=2;else if(!h&&(b=a+f-x)>=0&&b<s&&-1!=u[b]){var T=u[b];if(w=a+T-b,T>=(_=n-_))return r(t,e,T,w)}}}return[[-1,t],[1,e]]}(t,e)}(t=t.substring(0,t.length-u),e=e.substring(0,e.length-u));return l&&f.unshift([0,l]),c&&f.push([0,c]),function t(e){e.push([0,""]);for(var n,r=0,a=0,s=0,u="",l="";r<e.length;)switch(e[r][0]){case 1:s++,l+=e[r][1],r++;break;case-1:a++,u+=e[r][1],r++;break;case 0:a+s>1?(0!==a&&0!==s&&(0!==(n=i(l,u))&&(r-a-s>0&&0==e[r-a-s-1][0]?e[r-a-s-1][1]+=l.substring(0,n):(e.splice(0,0,[0,l.substring(0,n)]),r++),l=l.substring(n),u=u.substring(n)),0!==(n=o(l,u))&&(e[r][1]=l.substring(l.length-n)+e[r][1],l=l.substring(0,l.length-n),u=u.substring(0,u.length-n))),0===a?e.splice(r-s,a+s,[1,l]):0===s?e.splice(r-a,a+s,[-1,u]):e.splice(r-a-s,a+s,[-1,u],[1,l]),r=r-a-s+(a?1:0)+(s?1:0)+1):0!==r&&0==e[r-1][0]?(e[r-1][1]+=e[r][1],e.splice(r,1)):r++,s=0,a=0,u="",l=""}""===e[e.length-1][1]&&e.pop();var c=!1;for(r=1;r<e.length-1;)0==e[r-1][0]&&0==e[r+1][0]&&(e[r][1].substring(e[r][1].length-e[r-1][1].length)==e[r-1][1]?(e[r][1]=e[r-1][1]+e[r][1].substring(0,e[r][1].length-e[r-1][1].length),e[r+1][1]=e[r-1][1]+e[r+1][1],e.splice(r-1,1),c=!0):e[r][1].substring(0,e[r+1][1].length)==e[r+1][1]&&(e[r-1][1]+=e[r+1][1],e[r][1]=e[r][1].substring(e[r+1][1].length)+e[r+1][1],e.splice(r+1,1),c=!0)),r++;c&&t(e)}(f),null!=a&&(f=function(t,e){var n=function(t,e){if(0===e)return[0,t];for(var n=0,r=0;r<t.length;r++){var i=t[r];if(-1===i[0]||0===i[0]){var o=n+i[1].length;if(e===o)return[r+1,t];if(e<o){t=t.slice();var a=e-n,s=[i[0],i[1].slice(0,a)],u=[i[0],i[1].slice(a)];return t.splice(r,1,s,u),[r+1,t]}n=o}}throw new Error("cursor_pos is out of bounds!")}(t,e),r=n[1],i=n[0],o=r[i],a=r[i+1];if(null==o)return t;if(0!==o[0])return t;if(null!=a&&o[1]+a[1]===a[1]+o[1])return r.splice(i,2,a,o),s(r,i,2);if(null!=a&&0===a[1].indexOf(o[1])){r.splice(i,2,[a[0],o[1]],[0,o[1]]);var u=a[1].slice(o[1].length);return u.length>0&&r.splice(i+2,0,[a[0],u]),s(r,i,3)}return t}(f,a)),f=function(t){for(var e=!1,n=function(t){return t.charCodeAt(0)>=56320&&t.charCodeAt(0)<=57343},r=2;r<t.length;r+=1)0===t[r-2][0]&&(i=t[r-2][1]).charCodeAt(i.length-1)>=55296&&i.charCodeAt(i.length-1)<=56319&&-1===t[r-1][0]&&n(t[r-1][1])&&1===t[r][0]&&n(t[r][1])&&(e=!0,t[r-1][1]=t[r-2][1].slice(-1)+t[r-1][1],t[r][1]=t[r-2][1].slice(-1)+t[r][1],t[r-2][1]=t[r-2][1].slice(0,-1));var i;if(!e)return t;var o=[];for(r=0;r<t.length;r+=1)t[r][1].length>0&&o.push(t[r]);return o}(f)}function r(t,e,r,i){var o=t.substring(0,r),a=e.substring(0,i),s=t.substring(r),u=e.substring(i),l=n(o,a),c=n(s,u);return l.concat(c)}function i(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,o=0;n<i;)t.substring(o,i)==e.substring(o,i)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i}function o(t,e){if(!t||!e||t.charAt(t.length-1)!=e.charAt(e.length-1))return 0;for(var n=0,r=Math.min(t.length,e.length),i=r,o=0;n<i;)t.substring(t.length-i,t.length-o)==e.substring(e.length-i,e.length-o)?o=n=i:r=i,i=Math.floor((r-n)/2+n);return i}var a=n;function s(t,e,n){for(var r=e+n-1;r>=0&&r>=e-1;r--)if(r+1<t.length){var i=t[r],o=t[r+1];i[0]===o[1]&&t.splice(r,2,[i[0],i[1]+o[1]])}return t}
vendor: 4,257 bytes, line 2
2a.INSERT=1,a.DELETE=-1,a.EQUAL=0,t.exports=a},function(t,e){function n(t){var e=[];for(var n in t)e.push(n);return e}(t.exports="function"===typeof Object.keys?Object.keys:n).shim=n},function(t,e){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function r(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function i(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}(e=t.exports=n?r:i).supported=r,e.unsupported=i},function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,r="~";function i(){}function o(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function a(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(r=!1)),a.prototype.eventNames=function(){var t,e,i=[];if(0===this._eventsCount)return i;for(e in t=this._events)n.call(t,e)&&i.push(r?e.slice(1):e);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},a.prototype.listeners=function(t,e){var n=r?r+t:t,i=this._events[n];if(e)return!!i;if(!i)return[];if(i.fn)return[i.fn];for(var o=0,a=i.length,s=new Array(a);o<a;o++)s[o]=i[o].fn;return s},a.prototype.emit=function(t,e,n,i,o,a){var s=r?r+t:t;if(!this._events[s])return!1;var u,l,c=this._events[s],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,n),!0;case 4:return c.fn.call(c.context,e,n,i),!0;case 5:return c.fn.call(c.context,e,n,i,o),!0;case 6:return c.fn.call(c.context,e,n,i,o,a),!0}for(l=1,u=new Array(f-1);l<f;l++)u[l-1]=arguments[l];c.fn.apply(c.context,u)}else{var h,d=c.length;for(l=0;l<d;l++)switch(c[l].once&&this.removeListener(t,c[l].fn,void 0,!0),f){case 1:c[l].fn.call(c[l].context);break;case 2:c[l].fn.call(c[l].context,e);break;case 3:c[l].fn.call(c[l].context,e,n);break;case 4:c[l].fn.call(c[l].context,e,n,i);break;default:if(!u)for(h=1,u=new Array(f-1);h<f;h++)u[h-1]=arguments[h];c[l].fn.apply(c[l].context,u)}}return!0},a.prototype.on=function(t,e,n){var i=new o(e,n||this),a=r?r+t:t;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],i]:this._events[a].push(i):(this._events[a]=i,this._eventsCount++),this},a.prototype.once=function(t,e,n){var i=new o(e,n||this,!0),a=r?r+t:t;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],i]:this._events[a].push(i):(this._events[a]=i,this._eventsCount++),this},a.prototype.removeListener=function(t,e,n,o){var a=r?r+t:t;if(!this._events[a])return this;if(!e)return 0===--this._eventsCount?this._events=new i:delete this._events[a],this;var s=this._events[a];if(s.fn)s.fn!==e||o&&!s.once||n&&s.context!==n||(0===--this._eventsCount?this._events=new i:delete this._events[a]);else{for(var u=0,l=[],c=s.length;u<c;u++)(s[u].fn!==e||o&&!s[u].once||n&&s[u].context!==n)&&l.push(s[u]);l.length?this._events[a]=1===l.length?l[0]:l:0===--this._eventsCount?this._events=new i:delete this._events[a]}return this},a.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&(0===--this._eventsCount?this._events=new i:delete this._events[e])):(this._events=new i,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prototype.setMaxListeners=function(){return this},a.prefixed=r,a.EventEmitter=a,"undefined"!==typeof t&&(t.exports=a)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.matchText=e.matchSpacing=e.matchNewline=e.matchBlot=e.matchAttributor=e.default=void 0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(u){i=!0,o=u}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);
vendor: 7,310 bytes, line 2
2throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=b(n(3)),s=b(n(2)),u=b(n(0)),l=b(n(5)),c=b(n(10)),f=b(n(9)),h=n(36),d=n(37),p=b(n(13)),v=n(26),m=n(38),g=n(39),y=n(40);function b(t){return t&&t.__esModule?t:{default:t}}function w(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _=(0,c.default)("quill:clipboard"),x="__ql-matcher",E=[[Node.TEXT_NODE,L],[Node.TEXT_NODE,D],["br",function(t,e){return C(e,"\n")||e.insert("\n"),e}],[Node.ELEMENT_NODE,D],[Node.ELEMENT_NODE,M],[Node.ELEMENT_NODE,R],[Node.ELEMENT_NODE,P],[Node.ELEMENT_NODE,function(t,e){var n={},r=t.style||{};return r.fontStyle&&"italic"===A(t).fontStyle&&(n.italic=!0),r.fontWeight&&(A(t).fontWeight.startsWith("bold")||parseInt(A(t).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(e=O(e,n)),parseFloat(r.textIndent||0)>0&&(e=(new s.default).insert("\t").concat(e)),e}],["li",function(t,e){var n=u.default.query(t);if(null==n||"list-item"!==n.blotName||!C(e,"\n"))return e;for(var r=-1,i=t.parentNode;!i.classList.contains("ql-clipboard");)"list"===(u.default.query(i)||{}).blotName&&(r+=1),i=i.parentNode;return r<=0?e:e.compose((new s.default).retain(e.length()-1).retain(1,{indent:r}))}],["b",I.bind(I,"bold")],["i",I.bind(I,"italic")],["style",function(){return new s.default}]],k=[h.AlignAttribute,m.DirectionAttribute].reduce((function(t,e){return t[e.keyName]=e,t}),{}),T=[h.AlignStyle,d.BackgroundStyle,v.ColorStyle,m.DirectionStyle,g.FontStyle,y.SizeStyle].reduce((function(t,e){return t[e.keyName]=e,t}),{}),S=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],E.concat(r.options.matchers).forEach((function(t){var e=i(t,2),o=e[0],a=e[1];(n.matchVisual||a!==R)&&r.addMatcher(o,a)})),r}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"addMatcher",value:function(t,e){this.matchers.push([t,e])}},{key:"convert",value:function(t){if("string"===typeof t)return this.container.innerHTML=t.replace(/\>\r?\n +\</g,"><"),this.convert();var e=this.quill.getFormat(this.quill.selection.savedRange.index);if(e[p.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new s.default).insert(n,w({},p.default.blotName,e[p.default.blotName]))}var r=this.prepareMatching(),o=i(r,2),a=o[0],u=o[1],l=function t(e,n,r){return e.nodeType===e.TEXT_NODE?r.reduce((function(t,n){return n(e,t)}),new s.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(i,o){var a=t(o,n,r);return o.nodeType===e.ELEMENT_NODE&&(a=n.reduce((function(t,e){return e(o,t)}),a),a=(o[x]||[]).reduce((function(t,e){return e(o,t)}),a)),i.concat(a)}),new s.default):new s.default}(this.container,a,u);return C(l,"\n")&&null==l.ops[l.ops.length-1].attributes&&(l=l.compose((new s.default).retain(l.length()-1).delete(1))),_.log("convert",this.container.innerHTML,l),this.container.innerHTML="",l}},{key:"dangerouslyPasteHTML",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;if("string"===typeof t)this.quill.setContents(this.convert(t),e),this.quill.setSelection(0,l.default.sources.SILENT);else{var r=this.convert(e);this.quill.updateContents((new s.default).retain(t).concat(r),n),this.quill.setSelection(t+r.length(),l.default.sources.SILENT)}}},{key:"onPaste",value:function(t){var e=this;if(!t.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new s.default).retain(n.index),i=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(l.default.sources.SILENT),setTimeout((function(){r=r.concat(e.convert()).delete(n.length),e.quill.updateContents(r,l.default.sources.USER),e.quill.setSelection(r.length()-n.length,l.default.sources.SILENT),e.quill.scrollingContainer.scrollTop=i,e.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var t=this,e=[],n=[];return this.matchers.forEach((function(r){var o=i(r,2),a=o[0],s=o[1];switch(a){case Node.TEXT_NODE:n.push(s);break;case Node.ELEMENT_NODE:e.push(s);break;default:[].forEach.call(t.container.querySelectorAll(a),(function(t){t[x]=t[x]||[],t[x].push(s)}))}})),[e,n]}}]),e}(f.default);function O(t,e,n){return"object"===("undefined"===typeof e?"undefined":r(e))?Object.keys(e).reduce((function(t,n){return O(t,n,e[n])}),t):t.reduce((function(t,r){return r.attributes&&r.attributes[e]?t.push(r):t.insert(r.insert,(0,a.default)({},w({},e,n),r.attributes))}),new s.default)}function A(t){return t.nodeType!==Node.ELEMENT_NODE?{}:t["__ql-computed-style"]||(t["__ql-computed-style"]=window.getComputedStyle(t))}function C(t,e){for(var n="",r=t.ops.length-1;r>=0&&n.length<e.length;--r){var i=t.ops[r];if("string"!==typeof i.insert)break;n=i.insert+n}return n.slice(-1*e.length)===e}function N(t){if(0===t.childNodes.length)return!1;var e=A(t);return["block","list-item"].indexOf(e.display)>-1}function I(t,e,n){return O(n,t,!0)}function P(t,e){var n=u.default.Attributor.Attribute.keys(t),r=u.default.Attributor.Class.keys(t),i=u.default.Attributor.Style.keys(t),o={};return n.concat(r).concat(i).forEach((function(e){var n=u.default.query(e,u.default.Scope.ATTRIBUTE);null!=n&&(o[n.attrName]=n.value(t),o[n.attrName])||(null==(n=k[e])||n.attrName!==e&&n.keyName!==e||(o[n.attrName]=n.value(t)||void 0),null==(n=T[e])||n.attrName!==e&&n.keyName!==e||(n=T[e],o[n.attrName]=n.value(t)||void 0))})),Object.keys(o).length>0&&(e=O(e,o)),e}function M(t,e){var n=u.default.query(t);if(null==n)return e;if(n.prototype instanceof u.default.Embed){var r={},i=n.value(t);null!=i&&(r[n.blotName]=i,e=(new s.default).insert(r,n.formats(t)))}else"function"===typeof n.formats&&(e=O(e,n.blotName,n.formats(t)));return e}function D(t,e){return C(e,"\n")||(N(t)||e.length()>0&&t.nextSibling&&N(t.nextSibling))&&e.insert("\n"),e}function R(t,e){if(N(t)&&null!=t.nextElementSibling&&!C(e,"\n\n")){var n=t.offsetHeight+parseFloat(A(t).marginTop)+parseFloat(A(t).marginBottom);t.nextElementSibling.offsetTop>t.offsetTop+1.5*n&&e.insert("\n")}return e}function L(t,e){var n=t.data;if("O:P"===t.parentNode.tagName)return e.insert(n.trim());if(0===n.trim().length&&t.parentNode.classList.contains("ql-clipboard"))return e;if(!A(t.parentNode).whiteSpace.startsWith("pre")){var r=function(t,e){return(e=e.replace(/[^\u
vendor: 6,197 bytes, line 2
200a0]/g,"")).length<1&&t?" ":e};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,r.bind(r,!0)),(null==t.previousSibling&&N(t.parentNode)||null!=t.previousSibling&&N(t.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==t.nextSibling&&N(t.parentNode)||null!=t.nextSibling&&N(t.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return e.insert(n)}S.DEFAULTS={matchers:[],matchVisual:!0},e.default=S,e.matchAttributor=P,e.matchBlot=M,e.matchNewline=D,e.matchSpacing=R,e.matchText=L},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(6);function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var l=function(t){function e(){return s(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"optimize",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),e}(((r=a)&&r.__esModule?r:{default:r}).default);l.blotName="bold",l.tagName=["STRONG","B"],e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addControls=e.default=void 0;var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(u){i=!0,o=u}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=c(n(2)),a=c(n(0)),s=c(n(5)),u=c(n(10)),l=c(n(9));function c(t){return t&&t.__esModule?t:{default:t}}function f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var h=(0,u.default)("quill:toolbar"),d=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i,o=f(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if(Array.isArray(o.options.container)){var a=document.createElement("div");v(a,o.options.container),t.container.parentNode.insertBefore(a,t.container),o.container=a}else"string"===typeof o.options.container?o.container=document.querySelector(o.options.container):o.container=o.options.container;return o.container instanceof HTMLElement?(o.container.classList.add("ql-toolbar"),o.controls=[],o.handlers={},Object.keys(o.options.handlers).forEach((function(t){o.addHandler(t,o.options.handlers[t])})),[].forEach.call(o.container.querySelectorAll("button, select"),(function(t){o.attach(t)})),o.quill.on(s.default.events.EDITOR_CHANGE,(function(t,e){t===s.default.events.SELECTION_CHANGE&&o.update(e)})),o.quill.on(s.default.events.SCROLL_OPTIMIZE,(function(){var t=o.quill.selection.getRange(),e=r(t,1)[0];o.update(e)})),o):(i=h.error("Container required for toolbar",o.options),f(o,i))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"addHandler",value:function(t,e){this.handlers[t]=e}},{key:"attach",value:function(t){var e=this,n=[].find.call(t.classList,(function(t){return 0===t.indexOf("ql-")}));if(n){if(n=n.slice("ql-".length),"BUTTON"===t.tagName&&t.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void h.warn("ignoring attaching to disabled format",n,t);if(null==a.default.query(n))return void h.warn("ignoring attaching to nonexistent format",n,t)}var i="SELECT"===t.tagName?"change":"click";t.addEventListener(i,(function(i){var u=void 0;if("SELECT"===t.tagName){if(t.selectedIndex<0)return;var l=t.options[t.selectedIndex];u=!l.hasAttribute("selected")&&(l.value||!1)}else u=!t.classList.contains("ql-active")&&(t.value||!t.hasAttribute("value")),i.preventDefault();e.quill.focus();var c=e.quill.selection.getRange(),f=r(c,1)[0];if(null!=e.handlers[n])e.handlers[n].call(e,u);else if(a.default.query(n).prototype instanceof a.default.Embed){if(!(u=prompt("Enter "+n)))return;e.quill.updateContents((new o.default).retain(f.index).delete(f.length).insert(function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},n,u)),s.default.sources.USER)}else e.quill.format(n,u,s.default.sources.USER);e.update(f)})),this.controls.push([n,t])}}},{key:"update",value:function(t){var e=null==t?{}:this.quill.getFormat(t);
vendor: 4,905 bytes, line 2
2this.controls.forEach((function(n){var i=r(n,2),o=i[0],a=i[1];if("SELECT"===a.tagName){var s=void 0;if(null==t)s=null;else if(null==e[o])s=a.querySelector("option[selected]");else if(!Array.isArray(e[o])){var u=e[o];"string"===typeof u&&(u=u.replace(/\"/g,'\\"')),s=a.querySelector('option[value="'+u+'"]')}null==s?(a.value="",a.selectedIndex=-1):s.selected=!0}else if(null==t)a.classList.remove("ql-active");else if(a.hasAttribute("value")){var l=e[o]===a.getAttribute("value")||null!=e[o]&&e[o].toString()===a.getAttribute("value")||null==e[o]&&!a.getAttribute("value");a.classList.toggle("ql-active",l)}else a.classList.toggle("ql-active",null!=e[o])}))}}]),e}(l.default);function p(t,e,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+e),null!=n&&(r.value=n),t.appendChild(r)}function v(t,e){Array.isArray(e[0])||(e=[e]),e.forEach((function(e){var n=document.createElement("span");n.classList.add("ql-formats"),e.forEach((function(t){if("string"===typeof t)p(n,t);else{var e=Object.keys(t)[0],r=t[e];Array.isArray(r)?function(t,e,n){var r=document.createElement("select");r.classList.add("ql-"+e),n.forEach((function(t){var e=document.createElement("option");!1!==t?e.setAttribute("value",t):e.setAttribute("selected","selected"),r.appendChild(e)})),t.appendChild(r)}(n,e,r):p(n,e,r)}})),t.appendChild(n)}))}d.DEFAULTS={},d.DEFAULTS={container:null,handlers:{clean:function(){var t=this,e=this.quill.getSelection();if(null!=e)if(0==e.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(e){null!=a.default.query(e,a.default.Scope.INLINE)&&t.quill.format(e,!1)}))}else this.quill.removeFormat(e,s.default.sources.USER)},direction:function(t){var e=this.quill.getFormat().align;"rtl"===t&&null==e?this.quill.format("align","right",s.default.sources.USER):t||"right"!==e||this.quill.format("align",!1,s.default.sources.USER),this.quill.format("direction",t,s.default.sources.USER)},indent:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e),r=parseInt(n.indent||0);if("+1"===t||"-1"===t){var i="+1"===t?1:-1;"rtl"===n.direction&&(i*=-1),this.quill.format("indent",r+i,s.default.sources.USER)}},link:function(t){!0===t&&(t=prompt("Enter link URL:")),this.quill.format("link",t,s.default.sources.USER)},list:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e);"check"===t?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,s.default.sources.USER):this.quill.format("list","unchecked",s.default.sources.USER):this.quill.format("list",t,s.default.sources.USER)}}},e.default=d,e.addControls=v},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(28),s=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.label.innerHTML=n,r.container.classList.add("ql-color-picker"),[].slice.call(r.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(t){t.classList.add("ql-primary")})),r}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"buildItem",value:function(t){var n=o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"buildItem",this).call(this,t);return n.style.backgroundColor=t.getAttribute("value")||"",n}},{key:"selectItem",value:function(t,n){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n);var r=this.label.querySelector(".ql-color-label"),i=t&&t.getAttribute("data-value")||"";r&&("line"===r.tagName?r.style.stroke=i:r.style.fill=i)}}]),e}(((r=a)&&r.__esModule?r:{default:r}).default);e.default=s},function(t,e,n){"use strict";
vendor: 32,280 bytes, line 2
2Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(28),a=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var r=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.container.classList.add("ql-icon-picker"),[].forEach.call(r.container.querySelectorAll(".ql-picker-item"),(function(t){t.innerHTML=n[t.getAttribute("data-value")||""]})),r.defaultItem=r.container.querySelector(".ql-selected"),r.selectItem(r.defaultItem),r}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"selectItem",value:function(t,n){(function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n),t=t||this.defaultItem,this.label.innerHTML=t.innerHTML}}]),e}(((r=o)&&r.__esModule?r:{default:r}).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(){function t(e,n){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.quill=e,this.boundsContainer=n||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){r.root.style.marginTop=-1*r.quill.root.scrollTop+"px"})),this.hide()}return r(t,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(t){var e=t.left+t.width/2-this.root.offsetWidth/2,n=t.bottom+this.quill.root.scrollTop;this.root.style.left=e+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),i=this.root.getBoundingClientRect(),o=0;if(i.right>r.right&&(o=r.right-i.right,this.root.style.left=e+o+"px"),i.left<r.left&&(o=r.left-i.left,this.root.style.left=e+o+"px"),i.bottom>r.bottom){var a=i.bottom-i.top,s=t.bottom-t.top+a;this.root.style.top=n-s+"px",this.root.classList.add("ql-flip")}return o}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(u){i=!0,o=u}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=d(n(3)),s=d(n(8)),u=n(43),l=d(u),c=d(n(27)),f=n(15),h=d(n(41));function d(t){return t&&t.__esModule?t:{default:t}}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function m(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var g=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],y=function(t){function e(t,n){p(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=g);var r=v(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.container.classList.add("ql-snow"),r}return m(e,t),o(e,[{key:"extendToolbar",value:function(t){t.container.classList.add("ql-snow"),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),h.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),h.default),this.tooltip=new b(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(e,n){t.handlers.link.call(t,!n.format.link)}))}}]),e}(l.default);y.DEFAULTS=(0,a.default)(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){if(t){var e=this.quill.getSelection();if(null==e||0==e.length)return;var n=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var b=function(t){function e(t,n){p(this,e);var r=v(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.preview=r.root.querySelector("a.ql-preview"),r}return m(e,t),o(e,[{key:"listen",value:function(){var t=this;i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(e){t.root.classList.contains("ql-editing")?t.save():t.edit("link",t.preview.textContent),e.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(e){if(null!=t.linkRange){var n=t.linkRange;t.restoreFocus(),t.quill.formatText(n,"link",!1,s.default.sources.USER),delete t.linkRange}e.preventDefault(),t.hide()})),this.quill.on(s.default.events.SELECTION_CHANGE,(function(e,n,i){if(null!=e){if(0===e.length&&i===s.default.sources.USER){var o=t.quill.scroll.descendant(c.default,e.index),a=r(o,2),u=a[0],l=a[1];if(null!=u){t.linkRange=new f.Range(e.index-l,u.length());var h=c.default.formats(u.domNode);return t.preview.textContent=h,t.preview.setAttribute("href",h),t.show(),void t.position(t.quill.getBounds(t.linkRange))}}else delete t.linkRange;t.hide()}}))}},{key:"show",value:function(){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),e}(u.BaseTooltip);b.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),e.default=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=R(n(29)),i=n(36),o=n(38),a=n(64),s=R(n(65)),u=R(n(66)),l=n(67),c=R(l),f=n(37),h=n(26),d=n(39),p=n(40),v=R(n(56)),m=R(n(68)),g=R(n(27)),y=R(n(69)),b=R(n(70)),w=R(n(71)),_=R(n(72)),x=R(n(73)),E=n(13),k=R(E),T=R(n(74)),S=R(n(75)),O=R(n(57)),A=R(n(41)),C=R(n(28)),N=R(n(59)),I=R(n(60)),P=R(n(61)),M=R(n(108)),D=R(n(62));function R(t){return t&&t.__esModule?t:{default:t}}r.default.register({"attributors/attribute/direction":o.DirectionAttribute,"attributors/class/align":i.AlignClass,"attributors/class/background":f.BackgroundClass,"attributors/class/color":h.ColorClass,"attributors/class/direction":o.DirectionClass,"attributors/class/font":d.FontClass,"attributors/class/size":p.SizeClass,"attributors/style/align":i.AlignStyle,"attributors/style/background":f.BackgroundStyle,"attributors/style/color":h.ColorStyle,"attributors/style/direction":o.DirectionStyle,"attributors/style/font":d.FontStyle,"attributors/style/size":p.SizeStyle},!0),r.default.register({"formats/align":i.AlignClass,"formats/direction":o.DirectionClass,"formats/indent":a.IndentClass,"formats/background":f.BackgroundStyle,"formats/color":h.ColorStyle,"formats/font":d.FontClass,"formats/size":p.SizeClass,"formats/blockquote":s.default,"formats/code-block":k.default,"formats/header":u.default,"formats/list":c.default,"formats/bold":v.default,"formats/code":E.Code,"formats/italic":m.default,"formats/link":g.default,"formats/script":y.default,"formats/strike":b.default,"formats/underline":w.default,"formats/image":_.default,"formats/video":x.default,"formats/list/item":l.ListItem,"modules/formula":T.default,"modules/syntax":S.default,"modules/toolbar":O.default,"themes/bubble":M.default,"themes/snow":D.default,"ui/icons":A.default,"ui/picker":C.default,"ui/icon-picker":I.default,"ui/color-picker":N.default,"ui/tooltip":P.default},!0),e.default=r.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndentClass=void 0;var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(0),s=(r=a)&&r.__esModule?r:{default:r};function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var c=new(function(t){function e(){return u(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"add",value:function(t,n){if("+1"===n||"-1"===n){var r=this.value(t)||0;n="+1"===n?r+1:r-1}return 0===n?(this.remove(t),!0):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"add",this).call(this,t,n)}},{key:"canAdd",value:function(t,n){return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,n)||o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,parseInt(n))}},{key:"value",value:function(t){return parseInt(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t))||void 0}}]),e}(s.default.Attributor.Class))("indent","ql-indent",{scope:s.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});e.IndentClass=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(4);function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var s=function(t){function e(){return o(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((r=i)&&r.__esModule?r:{default:r}).default);s.blotName="blockquote",s.tagName="blockquote",e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(4);function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var u=function(t){function e(){return a(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,null,[{key:"formats",value:function(t){return this.tagName.indexOf(t.tagName)+1}}]),e}(((r=o)&&r.__esModule?r:{default:r}).default);u.blotName="header",u.tagName=["H1","H2","H3","H4","H5","H6"],e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ListItem=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},o=u(n(0)),a=u(n(4)),s=u(n(25));function u(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function f(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=function(t){function e(){return l(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return f(e,t),r(e,[{key:"format",value:function(t,n){t!==d.blotName||n?i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n):this.replaceWith(o.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(t,n){return this.parent.isolate(this.offset(this.parent),this.length()),t===this.parent.statics.blotName?(this.parent.replaceWith(t,n),this):(this.parent.unwrap(),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t,n))}}],[{key:"formats",value:function(t){return t.tagName===this.tagName?void 0:i(e.__proto__||Object.getPrototypeOf(e),"formats",this).call(this,t)}}]),e}(a.default);h.blotName="list-item",h.tagName="LI";var d=function(t){function e(t){l(this,e);var n=c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t)),r=function(e){if(e.target.parentNode===t){var r=n.statics.formats(t),i=o.default.find(e.target);"checked"===r?i.format("list","unchecked"):"unchecked"===r&&i.format("list","checked")}};return t.addEventListener("touchstart",r),t.addEventListener("mousedown",r),n}return f(e,t),r(e,null,[{key:"create",value:function(t){var n="ordered"===t?"OL":"UL",r=i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,n);return"checked"!==t&&"unchecked"!==t||r.setAttribute("data-checked","checked"===t),r}},{key:"formats",value:function(t){return"OL"===t.tagName?"ordered":"UL"===t.tagName?t.hasAttribute("data-checked")?"true"===t.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),r(e,[{key:"format",value:function(t,e){this.children.length>0&&this.children.tail.format(t,e)}},{key:"formats",value:function(){return t={},e=this.statics.blotName,n=this.statics.formats(this.domNode),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t;var t,e,n}},{key:"insertBefore",value:function(t,n){if(t instanceof h)i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n);else{var r=null==n?this.length():n.offset(this),o=this.split(r);o.parent.insertBefore(t,o)}}},{key:"optimize",value:function(t){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){if(t.statics.blotName!==this.statics.blotName){var n=o.default.create(this.statics.defaultChild);t.moveChildren(n),this.appendChild(n)}i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t)}}]),e}(s.default);d.blotName="list",d.scope=o.default.Scope.BLOCK_BLOT,d.tagName=["OL","UL"],d.defaultChild="list-item",d.allowedChildren=[h],e.ListItem=h,e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(56);function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var s=function(t){function e(){return o(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((r=i)&&r.__esModule?r:{default:r}).default);s.blotName="italic",s.tagName=["EM","I"],e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(6);function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var u=function(t){function e(){return a(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,null,[{key:"create",value:function(t){return"super"===t?document.createElement("sup"):"sub"===t?document.createElement("sub"):function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0}(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t)}},{key:"formats",value:function(t){return"SUB"===t.tagName?"sub":"SUP"===t.tagName?"super":void 0}}]),e}(((r=o)&&r.__esModule?r:{default:r}).default);u.blotName="script",u.tagName=["SUB","SUP"],e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(6);function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var s=function(t){function e(){return o(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((r=i)&&r.__esModule?r:{default:r}).default);s.blotName="strike",s.tagName="S",e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(6);function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var s=function(t){function e(){return o(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((r=i)&&r.__esModule?r:{default:r}).default);s.blotName="underline",s.tagName="U",e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(0),s=(r=a)&&r.__esModule?r:{default:r},u=n(27);function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var f=["alt","height","width"],h=function(t){function e(){return l(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"format",value:function(t,n){f.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"===typeof t&&n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return f.reduce((function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e}),{})}},{key:"match",value:function(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}},{key:"sanitize",value:function(t){return(0,u.sanitize)(t,["http","https","data"])?t:"//:0"}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(s.default.Embed);h.blotName="image",h.tagName="IMG",e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},a=n(4),s=n(27),u=(r=s)&&r.__esModule?r:{default:r};function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var f=["height","width"],h=function(t){function e(){return l(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"format",value:function(t,n){f.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return f.reduce((function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e}),{})}},{key:"sanitize",value:function(t){return u.default.sanitize(t)}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(a.BlockEmbed);h.blotName="video",h.className="ql-video",h.tagName="IFRAME",e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FormulaBlot=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=s(n(35)),o=s(n(5)),a=s(n(9));function s(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=function(t){function e(){return u(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),r(e,null,[{key:"create",value:function(t){var n=function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0}(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"===typeof t&&(window.katex.render(t,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",t)),n}},{key:"value",value:function(t){return t.getAttribute("data-value")}}]),e}(i.default);f.blotName="formula",f.className="ql-formula",f.tagName="SPAN";var h=function(t){function e(){u(this,e);var t=l(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return t}return c(e,t),r(e,null,[{key:"register",value:function(){o.default.register(f,!0)}}]),e}(a.default);e.FormulaBlot=f,e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.CodeToken=e.CodeBlock=void 0;var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=s(n(0)),o=s(n(5)),a=s(n(9));function s(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=function(t){function e(){return u(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),r(e,[{key:"replaceWith",value:function(t){this.domNode.textContent=this.domNode.textContent,this.attach(),function t(e,n,r){null===e&&(e=Function.prototype);var i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t)}},{key:"highlight",value:function(t){var e=this.domNode.textContent;this.cachedText!==e&&((e.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=t(e),this.domNode.normalize(),this.attach()),this.cachedText=e)}}]),e}(s(n(13)).default);f.className="ql-syntax";var h=new i.default.Attributor.Class("token","hljs",{scope:i.default.Scope.INLINE}),d=function(t){function e(t,n){u(this,e);var r=l(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if("function"!==typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var i=null;return r.quill.on(o.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(i),i=setTimeout((function(){r.highlight(),i=null}),r.options.interval)})),r.highlight(),r}return c(e,t),r(e,null,[{key:"register",value:function(){o.default.register(h,!0),o.default.register(f,!0)}}]),r(e,[{key:"highlight",value:function(){var t=this;if(!this.quill.selection.composing){this.quill.update(o.default.sources.USER);var e=this.quill.getSelection();this.quill.scroll.descendants(f).forEach((function(e){e.highlight(t.options.highlight)})),this.quill.update(o.default.sources.SILENT),null!=e&&this.quill.setSelection(e,o.default.sources.SILENT)}}}]),e}(a.default);d.DEFAULTS={highlight:null==window.hljs?null:function(t){return window.hljs.highlightAuto(t).value},interval:1e3},e.CodeBlock=f,e.CodeToken=h,e.default=d
vendor: 15,450 bytes, line 2
2},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BubbleTooltip=void 0;var r=function t(e,n,r){null===e&&(e=Function.prototype);var 
2i=Object.getOwnPropertyDescriptor(e,n);if(void 0===i){var o=Object.getPrototypeOf(e);return null===o?void 0:t(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=f(n(3)),a=f(n(8)),s=n(43),u=f(s),l=n(15),c=f(n(41));function f(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function p(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var v=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],m=function(t){function e(t,n){h(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=v);var r=d(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.container.classList.add("ql-bubble"),r}return p(e,t),i(e,[{key:"extendToolbar",value:function(t){this.tooltip=new g(this.quill,this.options.bounds),this.tooltip.root.appendChild(t.container),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),c.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),c.default)}}]),e}(u.default);m.DEFAULTS=(0,o.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){t?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var g=function(t){function e(t,n){h(this,e);var r=d(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return r.quill.on(a.default.events.EDITOR_CHANGE,(function(t,e,n,i){if(t===a.default.events.SELECTION_CHANGE)if(null!=e&&e.length>0&&i===a.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var o=r.quill.getLines(e.index,e.length);if(1===o.length)r.position(r.quill.getBounds(e));else{var s=o[o.length-1],u=r.quill.getIndex(s),c=Math.min(s.length()-1,e.index+e.length-u),f=r.quill.getBounds(new l.Range(u,c));r.position(f)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return p(e,t),i(e,[{key:"listen",value:function(){var t=this;r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){t.root.classList.remove("ql-editing")})),this.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!t.root.classList.contains("ql-hidden")){var e=t.quill.getSelection();null!=e&&t.position(t.quill.getBounds(e))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(t){var n=r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"position",this).call(this,t),i=this.root.querySelector(".ql-tooltip-arrow");if(i.style.marginLeft="",0===n)return n;i.style.marginLeft=-1*n-i.offsetWidth/2+"px"}}]),e}(s.BaseTooltip);g.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),e.BubbleTooltip=g,e.default=m},function(t,e,n){t.exports=n(63)}]).default},t.exports=n()}).call(this,n(195).Buffer)},function(t,e,n){"use strict";var r=n(0),i=n(200);if("undefined"===typeof 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;t.exports=i(r.Component,r.isValidElement,o)},function(t,e,n){"use strict";var r=n(93),i={createEditor:function(t,e){var n=new r(t,e);return void 0!==e.tabIndex&&this.setEditorTabIndex(n,e.tabIndex),this.hookEditor(n),n},hookEditor:function(t){var e=this.makeUnprivilegedEditor(t);this.handleTextChange=function(n,r,i){this.onEditorChangeText&&(this.onEditorChangeText(t.root.innerHTML,n,i,e),this.onEditorChangeSelection(t.getSelection(),i,e))}.bind(this),this.handleSelectionChange=function(t,n,r){this.onEditorChangeSelection&&this.onEditorChangeSelection(t,r,e)}
2.bind(this),t.on("editor-change",function(t,e,n,i){t===r.events.SELECTION_CHANGE&&this.handleSelectionChange(e,n,i),t===r.events.TEXT_CHANGE&&this.handleTextChange(e,n,i)}.bind(this))},unhookEditor:function(t){t.off("selection-change"),t.off("text-change")},setEditorReadOnly:function(t,e){e?t.disable():t.enable()},setEditorContents:function(t,e){var n=t.getSelection();"string"===typeof e?t.setContents(t.clipboard.convert(e)):t.setContents(e),n&&t.hasFocus()&&this.setEditorSelection(t,n)},setEditorSelection:function(t,e){if(e){var n=t.getLength();e.index=Math.max(0,Math.min(e.index,n-1)),e.length=Math.max(0,Math.min(e.length,n-1-e.index))}t.setSelection(e)},setEditorTabIndex:function(t,e){t.editor&&t.editor.scroll&&t.editor.scroll.domNode&&(t.editor.scroll.domNode.tabIndex=e)},makeUnprivilegedEditor:function(t){var e=t;return{getLength:function(){return e.getLength.apply(e,arguments)},getText:function(){return e.getText.apply(e,arguments)},getHTML:function(){return e.root.innerHTML},getContents:function(){return e.getContents.apply(e,arguments)},getSelection:function(){return e.getSelection.apply(e,arguments)},getBounds:function(){return e.getBounds.apply(e,arguments)}}}};t.exports=i},function(t,e,n){var r=n(203)(n(282));t.exports=r},function(t,e,n){var r=n(40),i=n(211),o=n(212),a=n(213),s=n(214),u=n(215);function l(t){var e=this.__data__=new r(t);this.size=e.size}l.prototype.clear=i,l.prototype.delete=o,l.prototype.get=a,l.prototype.has=s,l.prototype.set=u,t.exports=l},function(t,e,n){var r=n(33),i=n(34);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(22))},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(e){}try{return t+""}catch(e){}}return""}},function(t,e,n){var r=n(235),i=n(102),o=n(238);t.exports=function(t,e,n,a,s,u){var l=1&n,c=t.length,f=e.length;if(c!=f&&!(l&&f>c))return!1;var h=u.get(t);if(h&&u.get(e))return h==e;var d=-1,p=!0,v=2&n?new r:void 0;for(u.set(t,e),u.set(e,t);++d<c;){var m=t[d],g=e[d];if(a)var y=l?a(g,m,d,e,t,u):a(m,g,d,t,e,u);if(void 0!==y){if(y)continue;p=!1;break}if(v){if(!i(e,(function(t,e){if(!o(v,e)&&(m===t||s(m,t,n,a,u)))return v.push(e)}))){p=!1;break}}else if(m!==g&&!s(m,g,n,a,u)){p=!1;break}}return u.delete(t),u.delete(e),p}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},function(t,e,n){var r=n(252),i=n(35),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return i(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=u},function(t,e,n){(function(t){var r=n(23),i=n(253),o=e&&!e.nodeType&&e,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===o?r.Buffer:void 0,u=(s?s.isBuffer:void 0)||i;t.exports=u}).call(this,n(61)(t))},function(t,e,n){var r=n(254),i=n(255),o=n(256),a=o&&o.isTypedArray,s=a?i(a):r;t.exports=s},function(t,e,n){var r=n(34);t.exports=function(t){return t===t&&!r(t)}},function(t,e){t.exports=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}},function(t,e,n){var r=n(109),i=n(48);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&n<o;)t=t[i(e[n++])];return n&&n==o?t:void 0}},function(t,e,n){var r=n(21),i=n(64),o=n(269),a=n(272);t.exports=function(t,e){return r(t)?t:i(t,e)?[t]:o(a(t))}},function(t,e,n){var r=n(289),i=n(292)(r);t.exports=i},function(t,e,n){"use strict";t.exports=function(t){function e(e){var n=t.createElement.bind(null,e);return n.type=e,n}return{a:e("a"),abbr:e("abbr"),address:e("address"),area:e("area"),article:e("article"),aside:e("aside"),audio:e("audio"),b:e("b"),base:e("base"),bdi:e("bdi"),bdo:e("bdo"),big:e("big"),blockquote:e("blockquote"),body:e("body"),br:e("br"),button:e("button"),canvas:e("canvas"),caption:e("caption"),cite:e("cite"),code:e("code"),col:e("col"),colgroup:e("colgroup"),data:e("data"),datalist:e("datalist"),dd:e("dd"),del:e("del"),details:e("details"),dfn:e("dfn"),dialog:e("dialog"),div:e("div"),dl:e("dl"),dt:e("dt"),em:e("em"),embed:e("embed"),fieldset:e("fieldset"),figcaption:e("figcaption"),figure:e("figure"),footer:e("footer"),form:e("form"),h1:e("h1"),h2:e("h2"),h3:e("h3"),h4:e("h4"),h5:e("h5"),h6:e("h6"),head:e("head"),header:e("header"),hgroup:e("hgroup"),hr:e("hr"),html:e("html"),i:e("i"),iframe:e("iframe"),img:e("img"),input:e("input"),ins:e("ins"),kbd:e("kbd"),keygen:e("keygen"),label:e("label"),legend:e("legend"),li:e("li"),link:e("link"),main:e("main"),map:e("map"),mark:e("mark"),menu:e("menu"),menuitem:e("menuitem"),meta:e("meta"),meter:e("meter"),nav:e("nav"),noscript:e("noscript"),object:e("object"),ol:e("ol"),optgroup:e("optgroup"),option:e("option"),output:e("output"),p:e("p"),param:e("param"),picture:e("picture"),pre:e("pre"),progress:e("progress"),q:e("q"),rp:e("rp"),rt:e("rt"),ruby:e("ruby"),s:e("s"),samp:e("samp"),script:e("script"),section:e("section"),select:e("select"),small:e("small"),source:e("source"),span:e("span"),strong:e("strong"),style:e("style"),sub:e("sub"),summary:e("summary"),sup:e("sup"),table:e("table"),tbody:e("tbody"),td:e("td"),textarea:e("textarea"),tfoot:e("tfoot"),th:e("th"),thead:e("thead"),time:e("time"),title:e("title"),tr:e("tr"),track:e("track"),u:e("u"),ul:e("ul"),var:e("var"),video:e("video"),wbr:e("wbr"),circle:e("circle"),clipPath:e("clipPath"),defs:e("defs"),ellipse:e("ellipse"),g:e("g"),image:e("image"),line:e("line"),linearGradient:e("linearGradient"),mask:e("mask"),path:e("path"),pattern:e("pattern"),polygon:e("polygon"),polyline:e("polyline"),radialGradient:e("radialGradient"),rect:e("rect"),stop:e("stop"),svg:e("svg"),text:e("text"),tspan:e("tspan")}}(n(0))},function(t,e,n){},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}
2));var r=n(66),i=n(0);function o(t,e,n){var o=Object(i.useMemo)((function(){return Object(r.a)(t)}),[t]);return Object(i.useReducer)(o,e,n)}},function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=t,n.c=e,n.p="",n(0)}([function(t,e,n){"use strict";var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(1),a=u(o),s=u(n(2));function u(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var f="undefined"!=typeof document,h=/^[+-]?((\.\d+)|(\d+(\.\d+)?))$/,d=/^([+-]|\.0*|[+-]\.0*|[+-]?\d+\.)?$/;function p(t,e,n){var r=t[e];if("function"==typeof r){for(var i=arguments.length,o=Array(i>3?i-3:0),a=3;a<i;a++)o[a-3]=arguments[a];r=r.apply(void 0,o)}return void 0===r?n:r}var v=function(t){function e(){var t;l(this,e);for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=c(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(i)));return a._isStrict=!!a.props.strict,a.state=r({btnDownHover:!1,btnDownActive:!1,btnUpHover:!1,btnUpActive:!1,stringValue:""},a._propsToState(a.props)),a.stop=a.stop.bind(a),a.onTouchEnd=a.onTouchEnd.bind(a),a.refsInput={},a.refsWrapper={},a}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"_propsToState",value:function(t){var e={};return t.hasOwnProperty("value")?(e.stringValue=String(t.value||0===t.value?t.value:"").trim(),e.value=""!==e.stringValue?this._parse(t.value):null):!this._isMounted&&t.hasOwnProperty("defaultValue")&&(e.stringValue=String(t.defaultValue||0===t.defaultValue?t.defaultValue:"").trim(),e.value=""!==t.defaultValue?this._parse(t.defaultValue):null),e}},{key:"componentWillReceiveProps",value:function(t){var e=this;this._isStrict=!!t.strict;var n=this._propsToState(t);Object.keys(n).length&&(this._ignoreValueChange=!0,this.setState(n,(function(){e._ignoreValueChange=!1})))}},{key:"componentWillUpdate",value:function(){this.saveSelection()}},{key:"componentDidUpdate",value:function(t,e){this._ignoreValueChange||e.value===this.state.value||isNaN(this.state.value)&&null!==this.state.value||this._invokeEventCallback("onChange",this.state.value,this.refsInput.value,this.refsInput),this._inputFocus&&(this.refsInput.focus(),(this.state.selectionStart||0===this.state.selectionStart)&&(this.refsInput.selectionStart=this.state.selectionStart),(this.state.selectionEnd||0===this.state.selectionEnd)&&(this.refsInput.selectionEnd=this.state.selectionEnd)),this.checkValidity()}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.stop()}},{key:"componentDidMount",value:function(){var t=this;this._isMounted=!0,this.refsInput.getValueAsNumber=function(){return t.state.value||0},this.refsInput.setValue=function(e){t.setState({value:t._parse(e),stringValue:e})},!this._inputFocus&&f&&document.activeElement===this.refsInput&&(this._inputFocus=!0,this.refsInput.focus(),this._invokeEventCallback("onFocus",{target:this.refsInput,type:"focus"})),this.checkValidity()}},{key:"saveSelection",value:function(){this.state.selectionStart=this.refsInput.selectionStart,this.state.selectionEnd=this.refsInput.selectionEnd}},{key:"checkValidity",value:function(){var t=void 0,e="",n=!!this.refsInput.checkValidity,r=!(!this.props.noValidate||"false"==this.props.noValidate);this.refsInput.noValidate=r,(t=r||!n)?e="":(""===this.refsInput.pattern&&(this.refsInput.pattern=this.props.required?".+":".*"),n&&(this.refsInput.checkValidity(),(t=this.refsInput.validity.valid)||(e=this.refsInput.validationMessage)),t&&n&&this.props.maxLength&&this.refsInput.value.length>this.props.maxLength&&(e="This value is too long")),e=e||(t?"":this.refsInput.validationMessage||"Unknown Error");
2var i=this._valid!==e;this._valid=e,e?(!function(t,e){if(t.classList)return t.classList.add(e);t.className.search(new RegExp("\\b"+e+"\\b"))||(t.className=" "+e)}(this.refsWrapper,"has-error"),i&&this._invokeEventCallback("onInvalid",e,this.state.value,this.refsInput.value)):(!function(t,e){if(t.className){if(t.classList)return t.classList.remove(e);t.className=t.className.replace(new RegExp("\\b"+e+"\\b","g"),"")}}(this.refsWrapper,"has-error"),i&&this._invokeEventCallback("onValid",this.state.value,this.refsInput.value))}},{key:"_toNumber",value:function(t){var n=parseFloat(t);if(!isNaN(n)&&isFinite(n)||(n=0),this._isStrict){var r=p(this.props,"precision",null,this),i=Math.pow(10,null===r?10:r),o=+p(this.props,"min",e.defaultProps.min,this),a=+p(this.props,"max",e.defaultProps.max,this);n=Math.min(Math.max(n,o),a),n=Math.round(n*i)/i}return n}},{key:"_parse",value:function(t){return t=String(t),"function"==typeof this.props.parse?parseFloat(this.props.parse(t)):parseFloat(t)}},{key:"_format",value:function(t){var e=this._toNumber(t),n=p(this.props,"precision",null,this);return null!==n&&(e=t.toFixed(n)),e+="",this.props.format?this.props.format(e):e}},{key:"_step",value:function(t,n){var r=this._isStrict;this._isStrict=!0;var i=+p(this.props,"step",e.defaultProps.step,this,t>0?e.DIRECTION_UP:e.DIRECTION_DOWN),o=this._toNumber((this.state.value||0)+i*t);return this.props.snap&&(o=Math.round(o/i)*i),this._isStrict=r,o!==this.state.value&&(this.setState({value:o,stringValue:o+""},n),!0)}},{key:"_onKeyDown",value:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].persist(),this._invokeEventCallback.apply(this,["onKeyDown"].concat(e));var r=e[0];if(!r.isDefaultPrevented())if(38===r.keyCode)r.preventDefault(),this._step(r.ctrlKey||r.metaKey?.1:r.shiftKey?10:1);else if(40===r.keyCode)r.preventDefault(),this._step(r.ctrlKey||r.metaKey?-.1:r.shiftKey?-10:-1);else{var i=this.refsInput.value,o=i.length;8===r.keyCode?this.refsInput.selectionStart==this.refsInput.selectionEnd&&this.refsInput.selectionEnd>0&&i.length&&"."===i.charAt(this.refsInput.selectionEnd-1)&&(r.preventDefault(),this.refsInput.selectionStart=this.refsInput.selectionEnd=this.refsInput.selectionEnd-1):46===r.keyCode&&this.refsInput.selectionStart==this.refsInput.selectionEnd&&this.refsInput.selectionEnd<o+1&&i.length&&"."===i.charAt(this.refsInput.selectionEnd)&&(r.preventDefault(),this.refsInput.selectionStart=this.refsInput.selectionEnd=this.refsInput.selectionEnd+1)}}},{key:"stop",value:function(){this._timer&&clearTimeout(this._timer)}},{key:"increase",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments[1];this.stop(),this._step(1,r);var i=+p(this.props,"max",e.defaultProps.max,this);(isNaN(this.state.value)||+this.state.value<i)&&(this._timer=setTimeout((function(){t.increase(!0)}),n?e.SPEED:e.DELAY))}},{key:"decrease",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=arguments[1];this.stop(),this._step(-1,r);var i=+p(this.props,"min",e.defaultProps.min,this);(isNaN(this.state.value)||+this.state.value>i)&&(this._timer=setTimeout((function(){t.decrease(!0)}),n?e.SPEED:e.DELAY))}},{key:"onMouseDown",value:function(t,e){"down"==t?this.decrease(!1,e):"up"==t&&this.increase(!1,e)}},{key:"onTouchStart",value:function(t,e){e.preventDefault(),"down"==t?this.decrease():"up"==t&&this.increase()}},{key:"onTouchEnd",value:function(t){t.preventDefault(),this.stop()}},{key:"_invokeEventCallback",value:function(t){if("function"==typeof this.props[t]){for(var e,n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(e=this.props[t]).call.apply(e,[null].concat(r))}}},{key:"render",value:function(){var t=this,n=this.props,i=this.state,o={},s=this.props,u=(s.step,s.min,s.max,s.precision,s.parse,s.format,s.mobile),l=(s.snap,s.componentClass),c=(s.value,s.type,s.style),p=(s.defaultValue,s.onInvalid,s.onValid,s.strict,s.noStyle),v=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}(s,["step","min","max","precision","parse","format","mobile","snap","componentClass","value","type","style","defaultValue","onInvalid","onValid","strict","noStyle"]);for(var m in p=p||!1===c,e.style)o[m]=r({},e.style[m],c&&c[m]||{});var g=n.className&&/\bform-control\b/.test(n.className);"auto"==u&&(u=f&&"ontouchstart"in document),"function"==typeof u&&(u=u.call(this)),u=!!u;var y={wrap:{style:p?null:o.wrap,className:"react-numeric-input",ref:function(e){null!=e&&void 0!=e&&(t.refsWrapper=e)},onMouseUp:void 0,onMouseLeave:void 0},input:r({ref:function(e){null!=e&&void 0!=e&&(t.refsInput=e)},type:"text",style:p?null:r({},o.input,g?{}:o["input:not(.form-control)"],this._inputFocus?o["input:focus"]:{})},v),btnUp:{onMouseEnter:void 0,onMouseDown:void 0,onMouseUp:void 0,onMouseLeave:void 0,onTouchStart:void 0,onTouchEnd:void 0,style:p?null:r({},o.btn,o.btnUp,n.disabled||n.readOnly?o["btn:disabled"]:i.btnUpActive?o["btn:active"]:i.btnUpHover?o["btn:hover"]:{})},btnDown:{onMouseEnter:void 0,onMouseDown:void 0,onMouseUp:void 0,onMouseLeave:void 0,onTouchStart:void 0,onTouchEnd:void 0,style:p?null:r({},o.btn,o.btnDown,n.disabled||n.readOnly?o["btn:disabled"]:i.btnDownActive?o["btn:active"]:i.btnDownHover?o["btn:hover"]:{})}},b=String(i.stringValue||(i.value||0===i.value?i.value:"")||""),w=!this._isStrict&&(this._inputFocus||!this._isMounted);w&&d.test(b)||w&&b&&!h.test(b)?y.input.value=b:i.value||0===i.value?y.input.value=this._format(i.value):y.input.value="",g&&!p&&r(y.wrap.style,o["wrap.hasFormControl"]),u&&!p&&(r(y.input.style,o["input.mobile"]),r(y.btnUp.style,o["btnUp.mobile"]),r(y.btnDown.style,o["btnDown.mobile"])),n.disabled||n.readOnly?!p&&n.disabled&&r(y.input.style,o["input:disabled"]):(r(y.wrap,{onMouseUp:this.stop,onMouseLeave:this.stop}),r(y.btnUp,{onTouchStart:this.onTouchStart.bind(this,"up"),onTouchEnd:this.onTouchEnd,onMouseEnter:function(){t.setState({btnUpHover:!0})},onMouseLeave:function(){t.stop(),t.setState({btnUpHover:!1,btnUpActive:!1})},onMouseUp:function(){t.setState({btnUpHover:!0,btnUpActive:!1})},onMouseDown:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];
2n[0].preventDefault(),n[0].persist(),t._inputFocus=!0,t.setState({btnUpHover:!0,btnUpActive:!0},(function(){t._invokeEventCallback.apply(t,["onFocus"].concat(n)),t.onMouseDown("up")}))}}),r(y.btnDown,{onTouchStart:this.onTouchStart.bind(this,"down"),onTouchEnd:this.onTouchEnd,onMouseEnter:function(){t.setState({btnDownHover:!0})},onMouseLeave:function(){t.stop(),t.setState({btnDownHover:!1,btnDownActive:!1})},onMouseUp:function(){t.setState({btnDownHover:!0,btnDownActive:!1})},onMouseDown:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];n[0].preventDefault(),n[0].persist(),t._inputFocus=!0,t.setState({btnDownHover:!0,btnDownActive:!0},(function(){t._invokeEventCallback.apply(t,["onFocus"].concat(n)),t.onMouseDown("down")}))}}),r(y.input,{onChange:function(e){var n=e.target.value,r=t._parse(n);isNaN(r)&&(r=null),t.setState({value:t._isStrict?t._toNumber(r):r,stringValue:n})},onKeyDown:this._onKeyDown.bind(this),onInput:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];t.saveSelection(),t._invokeEventCallback.apply(t,["onInput"].concat(n))},onSelect:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];t.saveSelection(),t._invokeEventCallback.apply(t,["onSelect"].concat(n))},onFocus:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];n[0].persist(),t._inputFocus=!0;var i=t._parse(n[0].target.value);t.setState({value:i,stringValue:i||0===i?i+"":""},(function(){t._invokeEventCallback.apply(t,["onFocus"].concat(n))}))},onBlur:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=t._isStrict;t._isStrict=!0,n[0].persist(),t._inputFocus=!1;var o=t._parse(n[0].target.value);t.setState({value:o},(function(){t._invokeEventCallback.apply(t,["onBlur"].concat(n)),t._isStrict=i}))}}));var _=l||"input";return u?a.default.createElement("span",y.wrap,a.default.createElement(_,y.input),a.default.createElement("b",y.btnUp,a.default.createElement("i",{style:p?null:o.minus}),a.default.createElement("i",{style:p?null:o.plus})),a.default.createElement("b",y.btnDown,a.default.createElement("i",{style:p?null:o.minus}))):a.default.createElement("span",y.wrap,a.default.createElement(_,y.input),a.default.createElement("b",y.btnUp,a.default.createElement("i",{style:p?null:o.arrowUp})),a.default.createElement("b",y.btnDown,a.default.createElement("i",{style:p?null:o.arrowDown})))}}]),e}(o.Component);v.propTypes={step:s.default.oneOfType([s.default.number,s.default.func]),min:s.default.oneOfType([s.default.number,s.default.func]),max:s.default.oneOfType([s.default.number,s.default.func]),precision:s.default.oneOfType([s.default.number,s.default.func]),maxLength:s.default.number,parse:s.default.func,format:s.default.func,className:s.default.string,disabled:s.default.bool,readOnly:s.default.bool,required:s.default.bool,snap:s.default.bool,noValidate:s.default.oneOfType([s.default.bool,s.default.string]),style:s.default.oneOfType([s.default.object,s.default.bool]),noStyle:s.default.bool,type:s.default.string,pattern:s.default.string,onFocus:s.default.func,onBlur:s.default.func,onKeyDown:s.default.func,onChange:s.default.func,onInvalid:s.default.func,onValid:s.default.func,onInput:s.default.func,onSelect:s.default.func,size:s.default.oneOfType([s.default.number,s.default.string]),value:s.default.oneOfType([s.default.number,s.default.string]),defaultValue:s.default.oneOfType([s.default.number,s.default.string]),strict:s.default.bool,componentClass:s.default.string,mobile:function(t,e){var n=t[e];if(!0!==n&&!1!==n&&"auto"!==n&&"function"!=typeof n)return new Error('The "mobile" prop must be true, false, "auto" or a function')}},v.defaultProps={step:1,min:Number.MIN_SAFE_INTEGER||-9007199254740991,max:Number.MAX_SAFE_INTEGER||9007199254740991,precision:null,parse:null,format:null,mobile:"auto",strict:!1,componentClass:"input",style:{}},v.style={wrap:{position:"relative",display:"inline-block"},"wrap.hasFormControl":{display:"block"},arrowUp:{position:"absolute",top:"50%",left:"50%",width:0,height:0,borderWidth:"0 0.6ex 0.6ex 0.6ex",borderColor:"transparent transparent rgba(0, 0, 0, 0.7)",borderStyle:"solid",margin:"-0.3ex 0 0 -0.56ex"},arrowDown:{position:"absolute",top:"50%",left:"50%",width:0,height:0,borderWidth:"0.6ex 0.6ex 0 0.6ex",borderColor:"rgba(0, 0, 0, 0.7) transparent transparent",borderStyle:"solid",margin:"-0.3ex 0 0 -0.56ex"},plus:{position:"absolute",top:"50%",left:"50%",width:2,height:10,background:"rgba(0,0,0,.7)",margin:"-5px 0 0 -1px"},minus:{position:"absolute",top:"50%",left:"50%",width:10,height:2,background:"rgba(0,0,0,.7)",margin:"-1px 0 0 -5px"},btn:{position:"absolute",right:2,width:"2.26ex",borderColor:"rgba(0,0,0,.1)",borderStyle:"solid",textAlign:"center",cursor:"default",transition:"all 0.1s",background:"rgba(0,0,0,.1)",boxShadow:"-1px -1px 3px rgba(0,0,0,.1) inset,1px 1px 3px rgba(255,255,255,.7) inset"},btnUp:{top:2,bottom:"50%",borderRadius:"2px 2px 0 0",borderWidth:"1px 1px 0 1px"},"btnUp.mobile":{width:"3.3ex",bottom:2,boxShadow:"none",borderRadius:2,borderWidth:1},btnDown:{top:"50%",bottom:2,borderRadius:"0 0 2px 2px",borderWidth:"0 1px 1px 1px"},"btnDown.mobile":{width:"3.3ex",bottom:2,left:2,top:2,right:"auto",boxShadow:"none",borderRadius:2,borderWidth:1},"btn:hover":{background:"rgba(0,0,0,.2)"},"btn:active":{background:"rgba(0,0,0,.3)",boxShadow:"0 1px 3px rgba(0,0,0,.2) inset,-1px -1px 4px rgba(255,255,255,.5) inset"},"btn:disabled":{opacity:.5,boxShadow:"none",cursor:"not-allowed"},input:{paddingRight:"3ex",boxSizing:"border-box",fontSize:"inherit"},"input:not(.form-control)":{border:"1px solid #ccc",borderRadius:2,paddingLeft:4,display:"block",WebkitAppearance:"none",lineHeight:"normal"},"input.mobile":{paddingLeft:" 3.4ex",paddingRight:"3.4ex",textAlign:"center"},"input:focus":{},"input:disabled":{color:"rgba(0, 0, 0, 0.3)",textShadow:"0 1px 0 rgba(255, 255, 255, 0.8)"}},v.SPEED=50,v.DELAY=500,v.DIRECTION_UP="up",v.DIRECTION_DOWN="down",t.exports=v},function(t,e){t.exports=n(0)},function(t,e){t.exports=n(1)}])},function(t,e,n){"use strict";var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();var i=n(0),o=n(15),a=n(139),s=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.setFocusTrapElement=function(t){n.focusTrapElement=t},"undefined"!==typeof document&&(n.previouslyFocusedElement=document.activeElement),n}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}
2(e,t),r(e,[{key:"componentDidMount",value:function(){var t=this.props.focusTrapOptions,e={returnFocusOnDeactivate:!1};for(var n in t)t.hasOwnProperty(n)&&"returnFocusOnDeactivate"!==n&&(e[n]=t[n]);var r=o.findDOMNode(this.focusTrapElement);this.focusTrap=this.props._createFocusTrap(r,e),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause()}},{key:"componentDidUpdate",value:function(t){if(t.active&&!this.props.active){var e={returnFocus:this.props.focusTrapOptions.returnFocusOnDeactivate||!1};this.focusTrap.deactivate(e)}else!t.active&&this.props.active&&this.focusTrap.activate();t.paused&&!this.props.paused?this.focusTrap.unpause():!t.paused&&this.props.paused&&this.focusTrap.pause()}},{key:"componentWillUnmount",value:function(){this.focusTrap.deactivate(),!1!==this.props.focusTrapOptions.returnFocusOnDeactivate&&this.previouslyFocusedElement&&this.previouslyFocusedElement.focus&&this.previouslyFocusedElement.focus()}},{key:"render",value:function(){var t=this,e=i.Children.only(this.props.children);return i.cloneElement(e,{ref:function(n){t.setFocusTrapElement(n),"function"===typeof e.ref&&e.ref(n)}})}}]),e}(i.Component);s.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:a},t.exports=s},function(t,e){t.exports=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}},function(t,e,n){var r=n(72),i=n(144),o=n(145),a=n(151),s=n(153),u=n(155),l=Date.prototype.getTime;function c(t,e,n){var d=n||{};return!!(d.strict?o(t,e):t===e)||(!t||!e||"object"!==typeof t&&"object"!==typeof e?d.strict?o(t,e):t==e:function(t,e,n){var o,d;if(typeof t!==typeof e)return!1;if(f(t)||f(e))return!1;if(t.prototype!==e.prototype)return!1;if(i(t)!==i(e))return!1;var p=a(t),v=a(e);if(p!==v)return!1;if(p||v)return t.source===e.source&&s(t)===s(e);if(u(t)&&u(e))return l.call(t)===l.call(e);var m=h(t),g=h(e);if(m!==g)return!1;if(m||g){if(t.length!==e.length)return!1;for(o=0;o<t.length;o++)if(t[o]!==e[o])return!1;return!0}if(typeof t!==typeof e)return!1;try{var y=r(t),b=r(e)}catch(w){return!1}if(y.length!==b.length)return!1;for(y.sort(),b.sort(),o=y.length-1;o>=0;o--)if(y[o]!=b[o])return!1;for(o=y.length-1;o>=0;o--)if(d=y[o],!c(t[d],e[d],n))return!1;return!0}(t,e,d))}function f(t){return null===t||void 0===t}function h(t){return!(!t||"object"!==typeof t||"number"!==typeof t.length)&&("function"===typeof t.copy&&"function"===typeof t.slice&&!(t.length>0&&"number"!==typeof t[0]))}t.exports=c},function(t,e,n){"use strict";var r=n(79),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(t){return r.isMemo(t)?a:s[t.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var l=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,p=Object.prototype;t.exports=function t(e,n,r){if("string"!==typeof n){if(p){var i=d(n);i&&i!==p&&t(e,i,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var s=u(e),v=u(n),m=0;m<a.length;++m){var g=a[m];if(!o[g]&&(!r||!r[g])&&(!v||!v[g])&&(!s||!s[g])){var y=h(n,g);try{l(e,g,y)}catch(b){}}}}return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(186),o=(r=i)&&r.__esModule?r:{default:r};e.default=o.default,t.exports=e.default},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return w}));var r=n(0),i=n.n(r),o=n(1),a=n.n(o),s=n(31),u=n.n(s),l=n(25),c=n.n(l),f=n(121),h=n.n(f),d=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};function p(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function g(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var y="undefined"!==typeof t&&Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0})&&"production",b=function(t){function e(){v(this,e);var n=m(this,t.call(this));return n.handleOnClick=function(t){var e=n.chartInstance,r=n.props,i=r.getDatasetAtEvent,o=r.getElementAtEvent,a=r.getElementsAtEvent,s=r.onElementsClick;i&&i(e.getDatasetAtEvent(t),t),o&&o(e.getElementAtEvent(t),t),a&&a(e.getElementsAtEvent(t),t),s&&s(e.getElementsAtEvent(t),t)},n.ref=function(t){n.element=t},n.chartInstance=void 0,n}return g(e,t),e.prototype.componentDidMount=function(){this.renderChart()},e.prototype.componentDidUpdate=function(){if(this.props.redraw)return this.destroyChart(),void this.renderChart();this.updateChart()},e.prototype.shouldComponentUpdate=function(t){var e=this.props,n=(e.redraw,e.type),r=e.options,i=e.plugins,o=e.legend,a=e.height,s=e.width;if(!0===t.redraw)return!0;
2if(a!==t.height||s!==t.width)return!0;if(n!==t.type)return!0;if(!c()(o,t.legend))return!0;if(!c()(r,t.options))return!0;var u=this.transformDataProp(t);return!c()(this.shadowDataProp,u)||!c()(i,t.plugins)},e.prototype.componentWillUnmount=function(){this.destroyChart()},e.prototype.transformDataProp=function(t){var e=t.data;return"function"==typeof e?e(this.element):e},e.prototype.memoizeDataProps=function(){if(this.props.data){var t=this.transformDataProp(this.props);return this.shadowDataProp=d({},t,{datasets:t.datasets&&t.datasets.map((function(t){return d({},t)}))}),this.saveCurrentDatasets(),t}},e.prototype.checkDatasets=function(t){var n="production"!==y&&"prod"!==y,r=this.props.datasetKeyProvider!==e.getLabelAsKey,i=t.length>1;if(n&&i&&!r){var o=!1;t.forEach((function(t){t.label||(o=!0)})),o&&console.error('[react-chartjs-2] Warning: Each dataset needs a unique key. By default, the "label" property on each dataset is used. Alternatively, you may provide a "datasetKeyProvider" as a prop that returns a unique key.')}},e.prototype.getCurrentDatasets=function(){return this.chartInstance&&this.chartInstance.config.data&&this.chartInstance.config.data.datasets||[]},e.prototype.saveCurrentDatasets=function(){var t=this;this.datasets=this.datasets||{},this.getCurrentDatasets().forEach((function(e){t.datasets[t.props.datasetKeyProvider(e)]=e}))},e.prototype.updateChart=function(){var t=this,e=this.props.options,n=this.memoizeDataProps(this.props);if(this.chartInstance){e&&(this.chartInstance.options=u.a.helpers.configMerge(this.chartInstance.options,e));var r=this.getCurrentDatasets(),i=n.datasets||[];this.checkDatasets(r);var o=h()(r,this.props.datasetKeyProvider);this.chartInstance.config.data.datasets=i.map((function(e){var n=o[t.props.datasetKeyProvider(e)];if(n&&n.type===e.type&&e.data){n.data.splice(e.data.length),e.data.forEach((function(t,r){n.data[r]=e.data[r]}));e.data;var r=p(e,["data"]);return d({},n,r)}return e}));n.datasets;var a=p(n,["datasets"]);this.chartInstance.config.data=d({},this.chartInstance.config.data,a),this.chartInstance.update()}},e.prototype.renderChart=function(){var t=this.props,n=t.options,r=t.legend,i=t.type,o=t.plugins,a=this.element,s=this.memoizeDataProps();"undefined"===typeof r||c()(e.defaultProps.legend,r)||(n.legend=r),this.chartInstance=new u.a(a,{type:i,data:s,options:n,plugins:o})},e.prototype.destroyChart=function(){if(this.chartInstance){this.saveCurrentDatasets();var t=Object.values(this.datasets);this.chartInstance.config.data.datasets=t,this.chartInstance.destroy()}},e.prototype.render=function(){var t=this.props,e=t.height,n=t.width,r=t.id;return i.a.createElement("canvas",{ref:this.ref,height:e,width:n,id:r,onClick:this.handleOnClick})},e}(i.a.Component);b.getLabelAsKey=function(t){return t.label}
2,b.propTypes={data:a.a.oneOfType([a.a.object,a.a.func]).isRequired,getDatasetAtEvent:a.a.func,getElementAtEvent:a.a.func,getElementsAtEvent:a.a.func,height:a.a.number,legend:a.a.object,onElementsClick:a.a.func,options:a.a.object,plugins:a.a.arrayOf(a.a.object),redraw:a.a.bool,type:function(t,e,n){if(!u.a.controllers[t[e]])return new Error("Invalid chart type `"+t[e]+"` supplied to `"+n+"`.")},width:a.a.number,datasetKeyProvider:a.a.func},b.defaultProps={legend:{display:!0,position:"bottom"},type:"doughnut",height:150,width:300,redraw:!1,options:{},datasetKeyProvider:b.getLabelAsKey};(function(t){function e(){return v(this,e),m(this,t.apply(this,arguments))}g(e,t),e.prototype.render=function(){var t=this;return i.a.createElement(b,d({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"doughnut"}))}})(i.a.Component),function(t){function e(){return v(this,e),m(this,t.apply(this,arguments))}g(e,t),e.prototype.render=function(){var t=this;return i.a.createElement(b,d({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"pie"}))}}(i.a.Component),function(t){function e(){return v(this,e),m(this,t.apply(this,arguments))}g(e,t),e.prototype.render=function(){var t=this;return i.a.createElement(b,d({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"line"}))}}(i.a.Component);var w=function(t){function e(){return v(this,e),m(this,t.apply(this,arguments))}return g(e,t),e.prototype.render=function(){var t=this;return i.a.createElement(b,d({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"bar"}))},e}(i.a.Component);(function(t){function e(){return v(this,e),m(this,t.apply(this,arguments))}g(e,t),e.prototype.render=function(){var t=this;return i.a.createElement(b,d({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"horizontalBar"}))}})(i.a.Component),function(t){function e(){return v(this,e),m(this,t.apply(this,arguments))}g(e,t),e.prototype.render=function(){var t=this;return i.a.createElement(b,d({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"radar"}))}}(i.a.Component),function(t){function e(){return v(this,e),m(this,t.apply(this,arguments))}g(e,t),e.prototype.render=function(){var t=this;return i.a.createElement(b,d({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"polarArea"}))}}(i.a.Component),function(t){function e(){return v(this,e),m(this,t.apply(this,arguments))}g(e,t),e.prototype.render=function(){var t=this;return i.a.createElement(b,d({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"bubble"}))}}(i.a.Component),function(t){function e(){return v(this,e),m(this,t.apply(this,arguments))}g(e,t),e.prototype.render=function(){var t=this;return i.a.createElement(b,d({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"scatter"}))}}(i.a.Component),u.a.defaults}).call(this,n(38))},function(t,e,n){var r=n(302),i=n(304)((function(t,e,n){r(t,n,e)}));t.exports=i},,,function(t,e,n){"use strict";var r=n(37),i="function"===typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,u=i?Symbol.for("react.strict_mode"):60108,l=i?Symbol.for("react.profiler"):60114,c=i?Symbol.for("react.provider"):60109,f=i?Symbol.for("react.context"):60110,h=i?Symbol.for("react.forward_ref"):60112,d=i?Symbol.for("react.suspense"):60113,p=i?Symbol.for("react.memo"):60115,v=i?Symbol.for("react.lazy"):60116,m="function"===typeof Symbol&&Symbol.iterator;function g(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function w(t,e,n){this.props=t,this.context=e,this.refs=b,this.updater=n||y}function _(){}function x(t,e,n){this.props=t,this.context=e,this.refs=b,this.updater=n||y}w.prototype.isReactComponent={},w.prototype.setState=function(t,e){if("object"!==typeof t&&"function"!==typeof t&&null!=t)throw Error(g(85));this.updater.enqueueSetState(this,t,e,"setState")},w.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},_.prototype=w.prototype;var E=x.prototype=new _;E.constructor=x,r(E,w.prototype),E.isPureReactComponent=!0;var k={current:null},T=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function O(t,e,n){var r,i={},a=null,s=null;
vendor: 29,312 bytes, line 2
2if(null!=e)for(r in void 0!==e.ref&&(s=e.ref),void 0!==e.key&&(a=""+e.key),e)T.call(e,r)&&!S.hasOwnProperty(r)&&(i[r]=e[r]);var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}if(t&&t.defaultProps)for(r in u=t.defaultProps)void 0===i[r]&&(i[r]=u[r]);return{$$typeof:o,type:t,key:a,ref:s,props:i,_owner:k.current}}function A(t){return"object"===typeof t&&null!==t&&t.$$typeof===o}var C=/\/+/g,N=[];function I(t,e,n,r){if(N.length){var i=N.pop();return i.result=t,i.keyPrefix=e,i.func=n,i.context=r,i.count=0,i}return{result:t,keyPrefix:e,func:n,context:r,count:0}}function P(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,10>N.length&&N.push(t)}function M(t,e,n){return null==t?0:function t(e,n,r,i){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 o:case a:u=!0}}if(u)return r(i,e,""===n?"."+D(e,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(e))for(var l=0;l<e.length;l++){var c=n+D(s=e[l],l);u+=t(s,c,r,i)}else if(null===e||"object"!==typeof e?c=null:c="function"===typeof(c=m&&e[m]||e["@@iterator"])?c:null,"function"===typeof c)for(e=c.call(e),l=0;!(s=e.next()).done;)u+=t(s=s.value,c=n+D(s,l++),r,i);else if("object"===s)throw r=""+e,Error(g(31,"[object Object]"===r?"object with keys {"+Object.keys(e).join(", ")+"}":r,""));return u}(t,"",e,n)}function D(t,e){return"object"===typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+(""+t).replace(/[=:]/g,(function(t){return e[t]}))}(t.key):e.toString(36)}function R(t,e){t.func.call(t.context,e,t.count++)}function L(t,e,n){var r=t.result,i=t.keyPrefix;t=t.func.call(t.context,e,t.count++),Array.isArray(t)?j(t,r,n,(function(t){return t})):null!=t&&(A(t)&&(t=function(t,e){return{$$typeof:o,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}(t,i+(!t.key||e&&e.key===t.key?"":(""+t.key).replace(C,"$&/")+"/")+n)),r.push(t))}function j(t,e,n,r,i){var o="";null!=n&&(o=(""+n).replace(C,"$&/")+"/"),M(t,L,e=I(e,o,r,i)),P(e)}var F={current:null};function U(){var t=F.current;if(null===t)throw Error(g(321));return t}var q={ReactCurrentDispatcher:F,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:k,IsSomeRendererActing:{current:!1},assign:r};e.Children={map:function(t,e,n){if(null==t)return t;var r=[];return j(t,r,null,e,n),r},forEach:function(t,e,n){if(null==t)return t;M(t,R,e=I(null,null,e,n)),P(e)},count:function(t){return M(t,(function(){return null}),null)},toArray:function(t){var e=[];return j(t,e,null,(function(t){return t})),e},only:function(t){if(!A(t))throw Error(g(143));return t}},e.Component=w,e.Fragment=s,e.Profiler=l,e.PureComponent=x,e.StrictMode=u,e.Suspense=d,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=q,e.cloneElement=function(t,e,n){if(null===t||void 0===t)throw Error(g(267,t));var i=r({},t.props),a=t.key,s=t.ref,u=t._owner;if(null!=e){if(void 0!==e.ref&&(s=e.ref,u=k.current),void 0!==e.key&&(a=""+e.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(c in e)T.call(e,c)&&!S.hasOwnProperty(c)&&(i[c]=void 0===e[c]&&void 0!==l?l[c]:e[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){l=Array(c);for(var f=0;f<c;f++)l[f]=arguments[f+2];i.children=l}return{$$typeof:o,type:t.type,key:a,ref:s,props:i,_owner:u}},e.createContext=function(t,e){return void 0===e&&(e=null),(t={$$typeof:f,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:t},t.Consumer=t},e.createElement=O,e.createFactory=function(t){var e=O.bind(null,t);return e.type=t,e},e.createRef=function(){return{current:null}},e.forwardRef=function(t){return{$$typeof:h,render:t}},e.isValidElement=A,e.lazy=function(t){return{$$typeof:v,_ctor:t,_status:-1,_result:null}},e.memo=function(t,e){return{$$typeof:p,type:t,compare:void 0===e?null:e}},e.useCallback=function(t,e){return U().useCallback(t,e)},e.useContext=function(t,e){return U().useContext(t,e)},e.useDebugValue=function(){},e.useEffect=function(t,e){return U().useEffect(t,e)},e.useImperativeHandle=function(t,e,n){return U().useImperativeHandle(t,e,n)},e.useLayoutEffect=function(t,e){return U().useLayoutEffect(t,e)},e.useMemo=function(t,e){return U().useMemo(t,e)},e.useReducer=function(t,e,n){return U().useReducer(t,e,n)},e.useRef=function(t){return U().useRef(t)},e.useState=function(t){return U().useState(t)},e.version="16.13.1"},function(t,e,n){"use strict";var r=n(0),i=n(37),o=n(126);function a(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));function s(t,e,n,r,i,o,a,s,u){var l=Array.prototype.slice.call(arguments,3);try{e.apply(n,l)}catch(c){this.onError(c)}}var u=!1,l=null,c=!1,f=null,h={onError:function(t){u=!0,l=t}};function d(t,e,n,r,i,o,a,c,f){u=!1,l=null,s.apply(h,arguments)}var p=null,v=null,m=null;function g(t,e,n){var r=t.type||"unknown-event";t.currentTarget=m(n),function(t,e,n,r,i,o,s,h,p){if(d.apply(this,arguments),u){if(!u)throw Error(a(198));var v=l;u=!1,l=null,c||(c=!0,f=v)}}(r,e,void 0,t),t.currentTarget=null}var y=null,b={};function w(){if(y)for(var t in b){var e=b[t],n=y.indexOf(t);if(!(-1<n))throw Error(a(96,t));if(!x[n]){if(!e.extractEvents)throw Error(a(97,t));for(var r in x[n]=e,n=e.eventTypes){var i=void 0,o=n[r],s=e,u=r;if(E.hasOwnProperty(u))throw Error(a(99,u));E[u]=o;var l=o.phasedRegistrationNames;if(l){for(i in l)l.hasOwnProperty(i)&&_(l[i],s,u);i=!0}else o.registrationName?(_(o.registrationName,s,u),i=!0):i=!1;if(!i)throw Error(a(98,r,t))}}}}function _(t,e,n){if(k[t])throw Error(a(100,t));k[t]=e,T[t]=e.eventTypes[n].dependencies}var x=[],E={},k={},T={};function S(t){var e,n=!1;for(e in t)if(t.hasOwnProperty(e)){var r=t[e];if(!b.hasOwnProperty(e)||b[e]!==r){if(b[e])throw Error(a(102,e));b[e]=r,n=!0}}n&&w()}var O=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),A=null,C=null,N=null;function I(t){if(t=v(t)){if("function"!==typeof A)throw Error(a(280));var e=t.stateNode;e&&(e=p(e),A(t.stateNode,t.type,e))}}function P(t){C?N?N.push(t):N=[t]:C=t}function M(){if(C){var t=C,e=N;if(N=C=null,I(t),e)for(t=0;t<e.length;t++)I(e[t])}}function D(t,e){return t(e)}function R(t,e,n,r,i){return t(e,n,r,i)}function L(){}var j=D,F=!1,U=!1;function q(){null===C&&null===N||(L(),M())}function B(t,e,n){if(U)return t(e,n);U=!0;try{return j(t,e,n)}finally{U=!1,q()}}var V=/^[: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]*$/,z=Object.prototype.hasOwnProperty,W={},H={};function Y(t,e,n,r,i,o){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=o}var G={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(t){G[t]=new Y(t,0,!1,t,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(t){var e=t[0];G[e]=new Y(e,1,!1,t[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(t){G[t]=new Y(t,2,!1,t.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(t){G[t]=new Y(t,2,!1,t,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(t){G[t]=new Y(t,3,!1,t.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(t){G[t]=new Y(t,3,!0,t,null,!1)})),["capture","download"].forEach((function(t){G[t]=new Y(t,4,!1,t,null,!1)})),["cols","rows","size","span"].forEach((function(t){G[t]=new Y(t,6,!1,t,null,!1)})),["rowSpan","start"].forEach((function(t){G[t]=new Y(t,5,!1,t.toLowerCase(),null,!1)}));var K=/[\-:]([a-z])/g;function X(t){return t[1].toUpperCase()}"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(t){var e=t.replace(K,X);G[e]=new Y(e,1,!1,t,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(t){var e=t.replace(K,X);G[e]=new Y(e,1,!1,t,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(t){var e=t.replace(K,X);G[e]=new Y(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(t){G[t]=new Y(t,1,!1,t.toLowerCase(),null,!1)})),G.xlinkHref=new Y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(t){G[t]=new Y(t,1,!1,t.toLowerCase(),null,!0)}));var $=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Z(t,e,n,r){var i=G.hasOwnProperty(e)?G[e]:null;(null!==i?0===i.type:!r&&(2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])))||(function(t,e,n,r){if(null===e||"undefined"===typeof e||function(t,e,n,r){if(null!==n&&0===n.type)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(t=t.toLowerCase().slice(0,5))&&"aria-"!==t);default:return!1}}(t,e,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!e;case 4:return!1===e;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}(e,n,i,r)&&(n=null),r||null===i?function(t){return!!z.call(H,t)||!z.call(W,t)&&(V.test(t)?H[t]=!0:(W[t]=!0,!1))}(e)&&(null===n?t.removeAttribute(e):t.setAttribute(e,""+n)):i.mustUseProperty?t[i.propertyName]=null===n?3!==i.type&&"":n:(e=i.attributeName,r=i.attributeNamespace,null===n?t.removeAttribute(e):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}$.hasOwnProperty("ReactCurrentDispatcher")||($.ReactCurrentDispatcher={current:null}),$.hasOwnProperty("ReactCurrentBatchConfig")||($.ReactCurrentBatchConfig={suspense:null});var Q=/^(.*)[\\\/]/,J="function"===typeof Symbol&&Symbol.for,tt=J?Symbol.for("react.element"):60103,et=J?Symbol.for("react.portal"):60106,nt=J?Symbol.for("react.fragment"):60107,rt=J?Symbol.for("react.strict_mode"):60108,it=J?Symbol.for("react.profiler"):60114,ot=J?Symbol.for("react.provider"):60109,at=J?Symbol.for("react.context"):60110,st=J?Symbol.for("react.concurrent_mode"):60111,ut=J?Symbol.for("react.forward_ref"):60112,lt=J?Symbol.for("react.suspense"):60113,ct=J?Symbol.for("react.suspense_list"):60120,ft=J?Symbol.for("react.memo"):60115,ht=J?Symbol.for("react.lazy"):60116,dt=J?Symbol.for("react.block"):60121,pt="function"===typeof Symbol&&Symbol.iterator;function vt(t){return null===t||"object"!==typeof t?null:"function"===typeof(t=pt&&t[pt]||t["@@iterator"])?t:null}function mt(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 nt:return"Fragment";case et:return"Portal";case it:return"Profiler";case rt:return"StrictMode";case lt:return"Suspense";case ct:return"SuspenseList"}if("object"===typeof t)switch(t.$$typeof){case at:return"Context.Consumer";case ot:return"Context.Provider";case ut:var e=t.render;return e=e.displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case ft:return mt(t.type);case dt:return mt(t.render);case ht:if(t=1===t._status?t._result:null)return mt(t)}return null}function gt(t){var e="";do{t:switch(t.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break t;default:var r=t._debugOwner,i=t._debugSource,o=mt(t.type);n=null,r&&(n=mt(r.type)),r=o,o="",i?o=" (at "+i.fileName.replace(Q,"")+":"+i.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n    in "+(r||"Unknown")+o}e+=n,t=t.return}while(t);return e}function yt(t){switch(typeof t){case"boolean":case"number":case"object":case"string":case"undefined":return t;default:return""}}function bt(t){var e=t.type;return(t=t.nodeName)&&"input"===t.toLowerCase()&&("checkbox"===e||"radio"===e)}function wt(t){t._valueTracker||(t._valueTracker=function(t){var e=bt(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(t){r=""+t,o.call(this,t)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(t){r=""+t},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}(t))}function _t(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=bt(t)?t.checked?"true":"false":t.value),(t=r)!==n&&(e.setValue(t),!0)}function xt(t,e){var n=e.checked;return i({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:t._wrapperState.initialChecked})}function Et(t,e){var n=null==e.defaultValue?"":e.defaultValue,r=null!=e.checked?e.checked:e.defaultChecked;n=yt(null!=e.value?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function kt(t,e){null!=(e=e.checked)&&Z(t,"checked",e,!1)}function Tt(t,e){kt(t,e);var n=yt(e.value),r=e.type;if(null!=n)"number"===r?(0===n&&""===t.value||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if("submit"===r||"reset"===r)return void t.removeAttribute("value");e.hasOwnProperty("value")?Ot(t,e.type,n):e.hasOwnProperty("defaultValue")&&Ot(t,e.type,yt(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked)}function St(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!("submit"!==r&&"reset"!==r||void 0!==e.value&&null!==e.value))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}""!==(n=t.name)&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,""!==n&&(t.name=n)}function Ot(t,e,n){"number"===e&&t.ownerDocument.activeElement===t||(null==n?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}function At(t,e){return t=i({children:void 0},e),(e=function(t){var e="";return r.Children.forEach(t,(function(t){null!=t&&(e+=t)})),e}(e.children))&&(t.children=e),t}function Ct(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i<n.length;i++)e["$"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty("$"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&r&&(t[n].defaultSelected=!0)}else{for(n=""+yt(n),e=null,i=0;i<t.length;i++){if(t[i].value===n)return t[i].selected=!0,void(r&&(t[i].defaultSelected=!0));null!==e||t[i].disabled||(e=t[i])}null!==e&&(e.selected=!0)}}function Nt(t,e){if(null!=e.dangerouslySetInnerHTML)throw Error(a(91));return i({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function It(t,e){var n=e.value;if(null==n){if(n=e.children,e=e.defaultValue,null!=n){if(null!=e)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}e=n}null==e&&(e=""),n=e}t._wrapperState={initialValue:yt(n)}}function Pt(t,e){var n=yt(e.value),r=yt(e.defaultValue);null!=n&&((n=""+n)!==t.value&&(t.value=n),null==e.defaultValue&&t.defaultValue!==n&&(t.defaultValue=n)),null!=r&&(t.defaultValue=""+r)}function Mt(t){var e=t.textContent;e===t._wrapperState.initialValue&&""!==e&&null!==e&&(t.value=e)}var Dt="http://www.w3.org/1999/xhtml",Rt="http://www.w3.org/2000/svg";function Lt(t){switch(t){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 jt(t,e){return null==t||"http://www.w3.org/1999/xhtml"===t?Lt(e):"http://www.w3.org/2000/svg"===t&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":t}var Ft,Ut=function(t){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,n,r,i){MSApp.execUnsafeLocalFunction((function(){return t(e,n)}))}:t}((function(t,e){if(t.namespaceURI!==Rt||"innerHTML"in t)t.innerHTML=e;else{for((Ft=Ft||document.createElement("div")).innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=Ft.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}}));function qt(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e}function Bt(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Vt={animationend:Bt("Animation","AnimationEnd"),animationiteration:Bt("Animation","AnimationIteration"),animationstart:Bt("Animation","AnimationStart"),transitionend:Bt("Transition","TransitionEnd")},zt={},Wt={};function Ht(t){if(zt[t])return zt[t];if(!Vt[t])return t;var e,n=Vt[t];for(e in n)if(n.hasOwnProperty(e)&&e in Wt)return zt[t]=n[e];return t}O&&(Wt=document.createElement("div").style,"AnimationEvent"in window||(delete Vt.animationend.animation,delete Vt.animationiteration.animation,delete Vt.animationstart.animation),"TransitionEvent"in window||delete Vt.transitionend.transition);var Yt=Ht("animationend"),Gt=Ht("animationiteration"),Kt=Ht("animationstart"),Xt=Ht("transitionend"),$t="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Zt=new("function"===typeof WeakMap?WeakMap:Map);function Qt(t){var e=Zt.get(t);return void 0===e&&(e=new Map,Zt.set(t,e)),e}function Jt(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do{0!==(1026&(e=t).effectTag)&&(n=e.return),t=e.return}while(t)}return 3===e.tag?n:null}function te(t){if(13===t.tag){var e=t.memoizedState;if(null===e&&(null!==(t=t.alternate)&&(e=t.memoizedState)),null!==e)return e.dehydrated}return null}function ee(t){if(Jt(t)!==t)throw Error(a(188))}function ne(t){if(!(t=function(t){var e=t.alternate;if(!e){if(null===(e=Jt(t)))throw Error(a(188));return e!==t?null:t}for(var n=t,r=e;;){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 ee(i),t;if(o===r)return ee(i),e;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?t:e}(t)))return null;for(var e=t;;){if(5===e.tag||6===e.tag)return e;if(e.child)e.child.return=e,e=e.child;else{if(e===t)break;for(;!e.sibling;){if(!e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}}return null}function re(t,e){if(null==e)throw Error(a(30));return null==t?e:Array.isArray(t)?Array.isArray(e)?(t.push.apply(t,e),t):(t.push(e),t):Array.isArray(e)?[t].concat(e):[t,e]}function ie(t,e,n){Array.isArray(t)?t.forEach(e,n):t&&e.call(n,t)}var oe=null;function ae(t){if(t){var e=t._dispatchListeners,n=t._dispatchInstances;if(Array.isArray(e))for(var r=0;r<e.length&&!t.isPropagationStopped();r++)g(t,e[r],n[r]);else e&&g(t,e,n);t._dispatchListeners=null,t._dispatchInstances=null,t.isPersistent()||t.constructor.release(t)}}function se(t){if(null!==t&&(oe=re(oe,t)),t=oe,oe=null,t){if(ie(t,ae),oe)throw Error(a(95));if(c)throw t=f,c=!1,f=null,t}}function ue(t){return(t=t.target||t.srcElement||window).correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}function le(t){if(!O)return!1;var e=(t="on"+t)in document;return e||((e=document.createElement("div")).setAttribute(t,"return;"),e="function"===typeof e[t]),e}var ce=[];function fe(t){t.topLevelType=null,t.nativeEvent=null,t.targetInst=null,t.ancestors.length=0,10>ce.length&&ce.push(t)}function he(t,e,n,r){if(ce.length){var i=ce.pop();return i.topLevelType=t,i.eventSystemFlags=r,i.nativeEvent=e,i.targetInst=n,i}return{topLevelType:t,eventSystemFlags:r,nativeEvent:e,targetInst:n,ancestors:[]}}function de(t){var e=t.targetInst,n=e;do{if(!n){t.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(e=n.tag)&&6!==e||t.ancestors.push(n),n=On(r)}while(n);for(n=0;n<t.ancestors.length;n++){e=t.ancestors[n];var i=ue(t.nativeEvent);r=t.topLevelType;var o=t.nativeEvent,a=t.eventSystemFlags;0===n&&(a|=64);for(var s=null,u=0;u<x.length;u++){var l=x[u];l&&(l=l.extractEvents(r,e,o,i,a))&&(s=re(s,l))}se(s)}}function pe(t,e,n){if(!n.has(t)){switch(t){case"scroll":Ke(e,"scroll",!0);break;case"focus":case"blur":Ke(e,"focus",!0),Ke(e,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":le(t)&&Ke(e,t,!0);break;case"invalid":case"submit":case"reset":break;default:-1===$t.indexOf(t)&&Ge(t,e)}n.set(t,null)}}var ve,me,ge,ye=!1,be=[],we=null,_e=null,xe=null,Ee=new Map,ke=new Map,Te=[],Se="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Oe="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Ae(t,e,n,r,i){return{blockedOn:t,topLevelType:e,eventSystemFlags:32|n,nativeEvent:i,container:r}}function Ce(t,e){switch(t){case"focus":case"blur":we=null;break;case"dragenter":case"dragleave":_e=null;break;case"mouseover":case"mouseout":xe=null;break;case"pointerover":case"pointerout":Ee.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ke.delete(e.pointerId)}}function Ne(t,e,n,r,i,o){return null===t||t.nativeEvent!==o?(t=Ae(e,n,r,i,o),null!==e&&(null!==(e=An(e))&&me(e)),t):(t.eventSystemFlags|=r,t)}function Ie(t){var e=On(t.target);if(null!==e){var n=Jt(e);if(null!==n)if(13===(e=n.tag)){if(null!==(e=te(n)))return t.blockedOn=e,void o.unstable_runWithPriority(t.priority,(function(){ge(n)}))}else if(3===e&&n.stateNode.hydrate)return void(t.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}t.blockedOn=null}function Pe(t){if(null!==t.blockedOn)return!1;var e=Qe(t.topLevelType,t.eventSystemFlags,t.container,t.nativeEvent);if(null!==e){var n=An(e);return null!==n&&me(n),t.blockedOn=e,!1}return!0}function Me(t,e,n){Pe(t)&&n.delete(e)}function De(){for(ye=!1;0<be.length;){var t=be[0];if(null!==t.blockedOn){null!==(t=An(t.blockedOn))&&ve(t);break}var e=Qe(t.topLevelType,t.eventSystemFlags,t.container,t.nativeEvent);null!==e?t.blockedOn=e:be.shift()}null!==we&&Pe(we)&&(we=null),null!==_e&&Pe(_e)&&(_e=null),null!==xe&&Pe(xe)&&(xe=null),Ee.forEach(Me),ke.forEach(Me)}function Re(t,e){t.blockedOn===e&&(t.blockedOn=null,ye||(ye=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,De)))}function Le(t){function e(e){return Re(e,t)}if(0<be.length){Re(be[0],t);for(var n=1;n<be.length;n++){var r=be[n];r.blockedOn===t&&(r.blockedOn=null)}}for(null!==we&&Re(we,t),null!==_e&&Re(_e,t),null!==xe&&Re(xe,t),Ee.forEach(e),ke.forEach(e),n=0;n<Te.length;n++)(r=Te[n]).blockedOn===t&&(r.blockedOn=null);for(;0<Te.length&&null===(n=Te[0]).blockedOn;)Ie(n),null===n.blockedOn&&Te.shift()}var je={},Fe=new Map,Ue=new Map,qe=["abort","abort",Yt,"animationEnd",Gt,"animationIteration",Kt,"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",Xt,"transitionEnd","waiting","waiting"];function Be(t,e){for(var n=0;n<t.length;n+=2){var r=t[n],i=t[n+1],o="on"+(i[0].toUpperCase()+i.slice(1));o={phasedRegistrationNames:{bubbled:o,captured:o+"Capture"},dependencies:[r],eventPriority:e},Ue.set(r,e),Fe.set(r,o),je[i]=o}}Be("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Be("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),Be(qe,2);for(var Ve="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),ze=0;ze<Ve.length;ze++)Ue.set(Ve[ze],0);var We=o.unstable_UserBlockingPriority,He=o.unstable_runWithPriority,Ye=!0;function Ge(t,e){Ke(e,t,!1)}function Ke(t,e,n){var r=Ue.get(e);switch(void 0===r?2:r){case 0:r=Xe.bind(null,e,1,t);break;case 1:r=$e.bind(null,e,1,t);break;default:r=Ze.bind(null,e,1,t)}n?t.addEventListener(e,r,!0):t.addEventListener(e,r,!1)}function Xe(t,e,n,r){F||L();var i=Ze,o=F;F=!0;try{R(i,t,e,n,r)}finally{(F=o)||q()}}function $e(t,e,n,r){He(We,Ze.bind(null,t,e,n,r))}function Ze(t,e,n,r){if(Ye)if(0<be.length&&-1<Se.indexOf(t))t=Ae(null,t,e,n,r),be.push(t);else{var i=Qe(t,e,n,r);if(null===i)Ce(t,r);else if(-1<Se.indexOf(t))t=Ae(i,t,e,n,r),be.push(t);else if(!function(t,e,n,r,i){switch(e){case"focus":return we=Ne(we,t,e,n,r,i),!0;case"dragenter":return _e=Ne(_e,t,e,n,r,i),!0;case"mouseover":return xe=Ne(xe,t,e,n,r,i),!0;case"pointerover":var o=i.pointerId;return Ee.set(o,Ne(Ee.get(o)||null,t,e,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,ke.set(o,Ne(ke.get(o)||null,t,e,n,r,i)),!0}return!1}(i,t,e,n,r)){Ce(t,r),t=he(t,r,null,e);try{B(de,t)}finally{fe(t)}}}}function Qe(t,e,n,r){if(null!==(n=On(n=ue(r)))){var i=Jt(n);if(null===i)n=null;else{var o=i.tag;if(13===o){if(null!==(n=te(i)))return n;n=null}else if(3===o){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}t=he(t,r,n,e);try{B(de,t)}finally{fe(t)}return null}var Je={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},tn=["Webkit","ms","Moz","O"];function en(t,e,n){return null==e||"boolean"===typeof e||""===e?"":n||"number"!==typeof e||0===e||Je.hasOwnProperty(t)&&Je[t]?(""+e).trim():e+"px"}function nn(t,e){for(var n in t=t.style,e)if(e.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=en(n,e[n],r);"float"===n&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}
2Object.keys(Je).forEach((function(t){tn.forEach((function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Je[e]=Je[t]}))}));var rn=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 on(t,e){if(e){if(rn[t]&&(null!=e.children||null!=e.dangerouslySetInnerHTML))throw Error(a(137,t,""));if(null!=e.dangerouslySetInnerHTML){if(null!=e.children)throw Error(a(60));if("object"!==typeof e.dangerouslySetInnerHTML||!("__html"in e.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=e.style&&"object"!==typeof e.style)throw Error(a(62,""))}}function an(t,e){if(-1===t.indexOf("-"))return"string"===typeof e.is;switch(t){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 sn=Dt;function un(t,e){var n=Qt(t=9===t.nodeType||11===t.nodeType?t:t.ownerDocument);e=T[e];for(var r=0;r<e.length;r++)pe(e[r],t,n)}function ln(){}function cn(t){if("undefined"===typeof(t=t||("undefined"!==typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}function fn(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function hn(t,e){var n,r=fn(t);for(t=0;r;){if(3===r.nodeType){if(n=t+r.textContent.length,t<=e&&n>=e)return{node:r,offset:e-t};t=n}t:{for(;r;){if(r.nextSibling){r=r.nextSibling;break t}r=r.parentNode}r=void 0}r=fn(r)}}function dn(){for(var t=window,e=cn();e instanceof t.HTMLIFrameElement;){try{var n="string"===typeof e.contentWindow.location.href}catch(r){n=!1}if(!n)break;e=cn((t=e.contentWindow).document)}return e}function pn(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&("text"===t.type||"search"===t.type||"tel"===t.type||"url"===t.type||"password"===t.type)||"textarea"===e||"true"===t.contentEditable)}var vn=null,mn=null;function gn(t,e){switch(t){case"button":case"input":case"select":case"textarea":return!!e.autoFocus}return!1}function yn(t,e){return"textarea"===t||"option"===t||"noscript"===t||"string"===typeof e.children||"number"===typeof e.children||"object"===typeof e.dangerouslySetInnerHTML&&null!==e.dangerouslySetInnerHTML&&null!=e.dangerouslySetInnerHTML.__html}var bn="function"===typeof setTimeout?setTimeout:void 0,wn="function"===typeof clearTimeout?clearTimeout:void 0;function _n(t){for(;null!=t;t=t.nextSibling){var e=t.nodeType;if(1===e||3===e)break}return t}function xn(t){t=t.previousSibling;for(var e=0;t;){if(8===t.nodeType){var n=t.data;if("$"===n||"$!"===n||"$?"===n){if(0===e)return t;e--}else"/$"===n&&e++}t=t.previousSibling}return null}var En=Math.random().toString(36).slice(2),kn="__reactInternalInstance$"+En,Tn="__reactEventHandlers$"+En,Sn="__reactContainere$"+En;function On(t){var e=t[kn];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Sn]||n[kn]){if(n=e.alternate,null!==e.child||null!==n&&null!==n.child)for(t=xn(t);null!==t;){if(n=t[kn])return n;t=xn(t)}return e}n=(t=n).parentNode}return null}function An(t){return!(t=t[kn]||t[Sn])||5!==t.tag&&6!==t.tag&&13!==t.tag&&3!==t.tag?null:t}function Cn(t){if(5===t.tag||6===t.tag)return t.stateNode;throw Error(a(33))}function Nn(t){return t[Tn]||null}function In(t){do{t=t.return}while(t&&5!==t.tag);return t||null}function Pn(t,e){var n=t.stateNode;if(!n)return null;var r=p(n);if(!r)return null;n=r[e];t:switch(e){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"===(t=t.type)||"input"===t||"select"===t||"textarea"===t)),t=!r;break t;default:t=!1}if(t)return null;if(n&&"function"!==typeof n)throw Error(a(231,e,typeof n));return n}
vendor: 3,018 bytes, line 2
2function Mn(t,e,n){(e=Pn(t,n.dispatchConfig.phasedRegistrationNames[e]))&&(n._dispatchListeners=re(n._dispatchListeners,e),n._dispatchInstances=re(n._dispatchInstances,t))}function Dn(t){if(t&&t.dispatchConfig.phasedRegistrationNames){for(var e=t._targetInst,n=[];e;)n.push(e),e=In(e);for(e=n.length;0<e--;)Mn(n[e],"captured",t);for(e=0;e<n.length;e++)Mn(n[e],"bubbled",t)}}function Rn(t,e,n){t&&n&&n.dispatchConfig.registrationName&&(e=Pn(t,n.dispatchConfig.registrationName))&&(n._dispatchListeners=re(n._dispatchListeners,e),n._dispatchInstances=re(n._dispatchInstances,t))}function Ln(t){t&&t.dispatchConfig.registrationName&&Rn(t._targetInst,null,t)}function jn(t){ie(t,Dn)}var Fn=null,Un=null,qn=null;function Bn(){if(qn)return qn;var t,e,n=Un,r=n.length,i="value"in Fn?Fn.value:Fn.textContent,o=i.length;for(t=0;t<r&&n[t]===i[t];t++);var a=r-t;for(e=1;e<=a&&n[r-e]===i[o-e];e++);return qn=i.slice(t,1<e?1-e:void 0)}function Vn(){return!0}function zn(){return!1}function Wn(t,e,n,r){for(var i in this.dispatchConfig=t,this._targetInst=e,this.nativeEvent=n,t=this.constructor.Interface)t.hasOwnProperty(i)&&((e=t[i])?this[i]=e(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Vn:zn,this.isPropagationStopped=zn,this}function Hn(t,e,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,t,e,n,r),i}return new this(t,e,n,r)}function Yn(t){if(!(t instanceof this))throw Error(a(279));t.destructor(),10>this.eventPool.length&&this.eventPool.push(t)}function Gn(t){t.eventPool=[],t.getPooled=Hn,t.release=Yn}i(Wn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!==typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=Vn)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!==typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=Vn)},persist:function(){this.isPersistent=Vn},isPersistent:zn,destructor:function(){var t,e=this.constructor.Interface;for(t in e)this[t]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=zn,this._dispatchInstances=this._dispatchListeners=null}}),Wn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Wn.extend=function(t){function e(){}function n(){return r.apply(this,arguments)}var r=this;e.prototype=r.prototype;var o=new e;return i(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=i({},r.Interface,t),n.extend=r.extend,Gn(n),n},Gn(Wn);var Kn=Wn.extend({data:null}),Xn=Wn.extend({data:null}),$n=[9,13,27,32],Zn=O&&"CompositionEvent"in window,Qn=null;O&&"documentMode"in document&&(Qn=document.documentMode);var Jn=O&&"TextEvent"in window&&!Qn,tr=O&&(!Zn||Qn&&8<Qn&&11>
vendor: 9,393 bytes, line 2
2=Qn),er=String.fromCharCode(32),nr={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},rr=!1;function ir(t,e){switch(t){case"keyup":return-1!==$n.indexOf(e.keyCode);case"keydown":return 229!==e.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function or(t){return"object"===typeof(t=t.detail)&&"data"in t?t.data:null}var ar=!1;var sr={eventTypes:nr,extractEvents:function(t,e,n,r){var i;if(Zn)t:{switch(t){case"compositionstart":var o=nr.compositionStart;break t;case"compositionend":o=nr.compositionEnd;break t;case"compositionupdate":o=nr.compositionUpdate;break t}o=void 0}else ar?ir(t,n)&&(o=nr.compositionEnd):"keydown"===t&&229===n.keyCode&&(o=nr.compositionStart);return o?(tr&&"ko"!==n.locale&&(ar||o!==nr.compositionStart?o===nr.compositionEnd&&ar&&(i=Bn()):(Un="value"in(Fn=r)?Fn.value:Fn.textContent,ar=!0)),o=Kn.getPooled(o,e,n,r),i?o.data=i:null!==(i=or(n))&&(o.data=i),jn(o),i=o):i=null,(t=Jn?function(t,e){switch(t){case"compositionend":return or(e);case"keypress":return 32!==e.which?null:(rr=!0,er);case"textInput":return(t=e.data)===er&&rr?null:t;default:return null}}(t,n):function(t,e){if(ar)return"compositionend"===t||!Zn&&ir(t,e)?(t=Bn(),qn=Un=Fn=null,ar=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return tr&&"ko"!==e.locale?null:e.data;default:return null}}(t,n))?((e=Xn.getPooled(nr.beforeInput,e,n,r)).data=t,jn(e)):e=null,null===i?e:null===e?i:[i,e]}},ur={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function lr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!ur[t.type]:"textarea"===e}var cr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function fr(t,e,n){return(t=Wn.getPooled(cr.change,t,e,n)).type="change",P(n),jn(t),t}var hr=null,dr=null;function pr(t){se(t)}function vr(t){if(_t(Cn(t)))return t}function mr(t,e){if("change"===t)return e}var gr=!1;function yr(){hr&&(hr.detachEvent("onpropertychange",br),dr=hr=null)}function br(t){if("value"===t.propertyName&&vr(dr))if(t=fr(dr,t,ue(t)),F)se(t);else{F=!0;try{D(pr,t)}finally{F=!1,q()}}}function wr(t,e,n){"focus"===t?(yr(),dr=n,(hr=e).attachEvent("onpropertychange",br)):"blur"===t&&yr()}function _r(t){if("selectionchange"===t||"keyup"===t||"keydown"===t)return vr(dr)}function xr(t,e){if("click"===t)return vr(e)}function Er(t,e){if("input"===t||"change"===t)return vr(e)}O&&(gr=le("input")&&(!document.documentMode||9<document.documentMode));var kr={eventTypes:cr,_isInputEventSupported:gr,extractEvents:function(t,e,n,r){var i=e?Cn(e):window,o=i.nodeName&&i.nodeName.toLowerCase();if("select"===o||"input"===o&&"file"===i.type)var a=mr;else if(lr(i))if(gr)a=Er;else{a=_r;var s=wr}else(o=i.nodeName)&&"input"===o.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(a=xr);if(a&&(a=a(t,e)))return fr(a,n,r);s&&s(t,i,e),"blur"===t&&(t=i._wrapperState)&&t.controlled&&"number"===i.type&&Ot(i,"number",i.value)}},Tr=Wn.extend({view:null,detail:null}),Sr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Or(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):!!(t=Sr[t])&&!!e[t]}function Ar(){return Or}var Cr=0,Nr=0,Ir=!1,Pr=!1,Mr=Tr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Ar,button:null,buttons:null,relatedTarget:function(t){return t.relatedTarget||(t.fromElement===t.srcElement?t.toElement:t.fromElement)},movementX:function(t){if("movementX"in t)return t.movementX;var e=Cr;return Cr=t.screenX,Ir?"mousemove"===t.type?t.screenX-e:0:(Ir=!0,0)},movementY:function(t){if("movementY"in t)return t.movementY;var e=Nr;return Nr=t.screenY,Pr?"mousemove"===t.type?t.screenY-e:0:(Pr=!0,0)}}),Dr=Mr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Rr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Lr={eventTypes:Rr,extractEvents:function(t,e,n,r,i){var o="mouseover"===t||"pointerover"===t,a="mouseout"===t||"pointerout"===t;if(o&&0===(32&i)&&(n.relatedTarget||n.fromElement)||!a&&!o)return null;(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,a)?(a=e,null!==(e=(e=n.relatedTarget||n.toElement)?On(e):null)&&(e!==Jt(e)||5!==e.tag&&6!==e.tag)&&(e=null)):a=null;if(a===e)return null;if("mouseout"===t||"mouseover"===t)var s=Mr,u=Rr.mouseLeave,l=Rr.mouseEnter,c="mouse";else"pointerout"!==t&&"pointerover"!==t||(s=Dr,u=Rr.pointerLeave,l=Rr.pointerEnter,c="pointer");if(t=null==a?o:Cn(a),o=null==e?o:Cn(e),(u=s.getPooled(u,a,n,r)).type=c+"leave",u.target=t,u.relatedTarget=o,(n=s.getPooled(l,e,n,r)).type=c+"enter",n.target=o,n.relatedTarget=t,c=e,(r=a)&&c)t:{for(l=c,a=0,t=s=r;t;t=In(t))a++;for(t=0,e=l;e;e=In(e))t++;for(;0<a-t;)s=In(s),a--;for(;0<t-a;)l=In(l),t--;for(;a--;){if(s===l||s===l.alternate)break t;s=In(s),l=In(l)}s=null}else s=null;for(l=s,s=[];r&&r!==l&&(null===(a=r.alternate)||a!==l);)s.push(r),r=In(r);for(r=[];c&&c!==l&&(null===(a=c.alternate)||a!==l);)r.push(c),c=In(c);for(c=0;c<s.length;c++)Rn(s[c],"bubbled",u);for(c=r.length;0<c--;)Rn(r[c],"captured",n);return 0===(64&i)?[u]:[u,n]}};var jr="function"===typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t===1/e)||t!==t&&e!==e},Fr=Object.prototype.hasOwnProperty;function Ur(t,e){if(jr(t,e))return!0;if("object"!==typeof t||null===t||"object"!==typeof e||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Fr.call(e,n[r])||!jr(t[n[r]],e[n[r]]))return!1;return!0}var qr=O&&"documentMode"in document&&11>=document.documentMode,Br={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Vr=null,zr=null,Wr=null,Hr=!1;function Yr(t,e){var n=e.window===e?e.document:9===e.nodeType?e:e.ownerDocument;return Hr||null==Vr||Vr!==cn(n)?null:("selectionStart"in(n=Vr)&&pn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Wr&&Ur(Wr,n)?null:(Wr=n,(t=Wn.getPooled(Br.select,zr,t,e)).type="select",t.target=Vr,jn(t),t))}var Gr={eventTypes:Br,extractEvents:function(t,e,n,r,i,o){if(!(o=!(i=o||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){t:{i=Qt(i),o=T.onSelect;for(var a=0;a<o.length;a++)if(!i.has(o[a])){i=!1;break t}i=!0}o=!i}if(o)return null;switch(i=e?Cn(e):window,t){case"focus":(lr(i)||"true"===i.contentEditable)&&(Vr=i,zr=e,Wr=null);break;case"blur":Wr=zr=Vr=null;break;case"mousedown":Hr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Hr=!1,Yr(n,r);case"selectionchange":if(qr)break;case"keydown":case"keyup":return Yr(n,r)}return null}},Kr=Wn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Xr=Wn.extend({clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),$r=Tr.extend({relatedTarget:null});function Zr(t){var e=t.keyCode;return"charCode"in t?0===(t=t.charCode)&&13===e&&(t=13):t=e,10===t&&(t=13),32<=t||13===t?t:0}var Qr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Jr={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"},ti=Tr.extend({key:function(t){if(t.key){var e=Qr[t.key]||t.key;if("Unidentified"!==e)return e}return"keypress"===t.type?13===(t=Zr(t))?"Enter":String.fromCharCode(t):"keydown"===t.type||"ke
2yup"===t.type?Jr[t.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Ar,charCode:function(t){return"keypress"===t.type?Zr(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?Zr(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}}),ei=Mr.extend({dataTransfer:null}),ni=Tr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Ar}),ri=Wn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ii=Mr.extend({deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:null,deltaMode:null}),oi={eventTypes:je,extractEvents:function(t,e,n,r){var i=Fe.get(t);if(!i)return null;switch(t){case"keypress":if(0===Zr(n))return null;case"keydown":case"keyup":t=ti;break;case"blur":case"focus":t=$r;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":t=Mr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":t=ei;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":t=ni;break;case Yt:case Gt:case Kt:t=Kr;break;case Xt:t=ri;break;case"scroll":t=Tr;break;case"wheel":t=ii;break;case"copy":case"cut":case"paste":t=Xr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":t=Dr;break;default:t=Wn}return jn(e=t.getPooled(i,e,n,r)),e}};if(y)throw Error(a(101));y=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w(),p=Nn,v=An,m=Cn,S({SimpleEventPlugin:oi,EnterLeaveEventPlugin:Lr,ChangeEventPlugin:kr,SelectEventPlugin:Gr,BeforeInputEventPlugin:sr});var ai=[],si=-1;function ui(t){0>si||(t.current=ai[si],ai[si]=null,si--)}function li(t,e){si++,ai[si]=t.current,t.current=e}var ci={},fi={current:ci},hi={current:!1},di=ci;function pi(t,e){var n=t.type.contextTypes;if(!n)return ci;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=e[i];return r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=o),o}function vi(t){return null!==(t=t.childContextTypes)&&void 0!==t}function mi(){ui(hi),ui(fi)}function gi(t,e,n){if(fi.current!==ci)throw Error(a(168));li(fi,e),li(hi,n)}function yi(t,e,n){var r=t.stateNode;if(t=e.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(a(108,mt(e)||"Unknown",o));return i({},n,{},r)}function bi(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||ci,di=fi.current,li(fi,t),li(hi,hi.current),!0}function wi(t,e,n){var r=t.stateNode;if(!r)throw Error(a(169));n?(t=yi(t,e,di),r.__reactInternalMemoizedMergedChildContext=t,ui(hi),ui(fi),li(fi,t)):ui(hi),li(hi,n)}var _i=o.unstable_runWithPriority,xi=o.unstable_scheduleCallback,Ei=o.unstable_cancelCallback,ki=o.unstable_requestPaint,Ti=o.unstable_now,Si=o.unstable_getCurrentPriorityLevel,Oi=o.unstable_ImmediatePriority,Ai=o.unstable_UserBlockingPriority,Ci=o.unstable_NormalPriority,Ni=o.unstable_LowPriority,Ii=o.unstable_IdlePriority,Pi={},Mi=o.unstable_shouldYield,Di=void 0!==ki?ki:function(){},Ri=null,Li=null,ji=!1,Fi=Ti(),Ui=1e4>Fi?Ti:function(){return Ti()-Fi};function qi(){switch(Si()){case Oi:return 99;case Ai:return 98;case Ci:return 97;case Ni:return 96;case Ii:return 95;default:throw Error(a(332))}}function Bi(t){switch(t){case 99:return Oi;case 98:return Ai;case 97:return Ci;case 96:return Ni;case 95:return Ii;default:throw Error(a(332))}}function Vi(t,e){return t=Bi(t),_i(t,e)}function zi(t,e,n){return t=Bi(t),xi(t,e,n)}function Wi(t){return null===Ri?(Ri=[t],Li=xi(Oi,Yi)):Ri.push(t),Pi}function Hi(){if(null!==Li){var t=Li;Li=null,Ei(t)}Yi()}function Yi(){if(!ji&&null!==Ri){ji=!0;var t=0;try{var e=Ri;Vi(99,(function(){for(;t<e.length;t++){var n=e[t];do{n=n(!0)}while(null!==n)}})),Ri=null}catch(n){throw null!==Ri&&(Ri=Ri.slice(t+1)),xi(Oi,Hi),n}finally{ji=!1}}}function Gi(t,e,n){return 1073741821-(1+((1073741821-t+e/10)/(n/=10)|0))*n}function Ki(t,e){if(t&&t.defaultProps)for(var n in e=i({},e),t=t.defaultProps)void 0===e[n]&&(e[n]=t[n]);return e}var Xi={current:null},$i=null,Zi=null,Qi=null;function Ji(){Qi=Zi=$i=null}function to(t){var e=Xi.current;
2ui(Xi),t.type._context._currentValue=e}function eo(t,e){for(;null!==t;){var n=t.alternate;if(t.childExpirationTime<e)t.childExpirationTime=e,null!==n&&n.childExpirationTime<e&&(n.childExpirationTime=e);else{if(!(null!==n&&n.childExpirationTime<e))break;n.childExpirationTime=e}t=t.return}}function no(t,e){$i=t,Qi=Zi=null,null!==(t=t.dependencies)&&null!==t.firstContext&&(t.expirationTime>=e&&(Na=!0),t.firstContext=null)}function ro(t,e){if(Qi!==t&&!1!==e&&0!==e)if("number"===typeof e&&1073741823!==e||(Qi=t,e=1073741823),e={context:t,observedBits:e,next:null},null===Zi){if(null===$i)throw Error(a(308));Zi=e,$i.dependencies={expirationTime:0,firstContext:e,responders:null}}else Zi=Zi.next=e;return t._currentValue}var io=!1;function oo(t){t.updateQueue={baseState:t.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function ao(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,baseQueue:t.baseQueue,shared:t.shared,effects:t.effects})}function so(t,e){return(t={expirationTime:t,suspenseConfig:e,tag:0,payload:null,callback:null,next:null}).next=t}function uo(t,e){if(null!==(t=t.updateQueue)){var n=(t=t.shared).pending;null===n?e.next=e:(e.next=n.next,n.next=e),t.pending=e}}function lo(t,e){var n=t.alternate;null!==n&&ao(n,t),null===(n=(t=t.updateQueue).baseQueue)?(t.baseQueue=e.next=e,e.next=e):(e.next=n.next,n.next=e)}function co(t,e,n,r){var o=t.updateQueue;io=!1;var a=o.baseQueue,s=o.shared.pending;if(null!==s){if(null!==a){var u=a.next;a.next=s.next,s.next=u}a=s,o.shared.pending=null,null!==(u=t.alternate)&&(null!==(u=u.updateQueue)&&(u.baseQueue=s))}if(null!==a){u=a.next;var l=o.baseState,c=0,f=null,h=null,d=null;if(null!==u)for(var p=u;;){if((s=p.expirationTime)<r){var v={expirationTime:p.expirationTime,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null};null===d?(h=d=v,f=l):d=d.next=v,s>c&&(c=s)}else{null!==d&&(d=d.next={expirationTime:1073741823,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null}),ou(s,p.suspenseConfig);t:{var m=t,g=p;switch(s=e,v=n,g.tag){case 1:if("function"===typeof(m=g.payload)){l=m.call(v,l,s);break t}l=m;break t;case 3:m.effectTag=-4097&m.effectTag|64;case 0:if(null===(s="function"===typeof(m=g.payload)?m.call(v,l,s):m)||void 0===s)break t;l=i({},l,s);break t;case 2:io=!0}}null!==p.callback&&(t.effectTag|=32,null===(s=o.effects)?o.effects=[p]:s.push(p))}if(null===(p=p.next)||p===u){if(null===(s=o.shared.pending))break;p=a.next=s.next,s.next=u,o.baseQueue=a=s,o.shared.pending=null}}null===d?f=l:d.next=h,o.baseState=f,o.baseQueue=d,au(c),t.expirationTime=c,t.memoizedState=l}}function fo(t,e,n){if(t=e.effects,e.effects=null,null!==t)for(e=0;e<t.length;e++){var r=t[e],i=r.callback;if(null!==i){if(r.callback=null,r=i,i=n,"function"!==typeof r)throw Error(a(191,r));r.call(i)}}}var ho=$.ReactCurrentBatchConfig,po=(new r.Component).refs;function vo(t,e,n,r){n=null===(n=n(r,e=t.memoizedState))||void 0===n?e:i({},e,n),t.memoizedState=n,0===t.expirationTime&&(t.updateQueue.baseState=n)}var mo={isMounted:function(t){return!!(t=t._reactInternalFiber)&&Jt(t)===t},enqueueSetState:function(t,e,n){t=t._reactInternalFiber;var r=Ys(),i=ho.suspense;(i=so(r=Gs(r,t,i),i)).payload=e,void 0!==n&&null!==n&&(i.callback=n),uo(t,i),Ks(t,r)},enqueueReplaceState:function(t,e,n){t=t._reactInternalFiber;var r=Ys(),i=ho.suspense;(i=so(r=Gs(r,t,i),i)).tag=1,i.payload=e,void 0!==n&&null!==n&&(i.callback=n),uo(t,i),Ks(t,r)},enqueueForceUpdate:function(t,e){t=t._reactInternalFiber;var n=Ys(),r=ho.suspense;(r=so(n=Gs(n,t,r),r)).tag=2,void 0!==e&&null!==e&&(r.callback=e),uo(t,r),Ks(t,n)}};function go(t,e,n,r,i,o,a){return"function"===typeof(t=t.stateNode).shouldComponentUpdate?t.shouldComponentUpdate(r,o,a):!e.prototype||!e.prototype.isPureReactComponent||(!Ur(n,r)||!Ur(i,o))}function yo(t,e,n){var r=!1,i=ci,o=e.contextType;return"object"===typeof o&&null!==o?o=ro(o):(i=vi(e)?di:fi.current,o=(r=null!==(r=e.contextTypes)&&void 0!==r)?pi(t,i):ci),e=new e(n,o),t.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,e.updater=mo,t.stateNode=e,e._reactInternalFiber=t,r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=o),e}function bo(t,e,n,r){t=e.state,"function"===typeof e.componentWillReceiveProps&&e.componentWillReceiveProps(n,r),"function"===typeof e.UNSAFE_componentWillReceiveProps&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&mo.enqueueReplaceState(e,e.state,null)}function wo(t,e,n,r){var i=t.stateNode;i.props=n,i.state=t.memoizedState,i.refs=po,oo(t);var o=e.contextType;"object"===typeof o&&null!==o?i.context=ro(o):(o=vi(e)?di:fi.current,i.context=pi(t,o)),co(t,n,i,r),i.state=t.memoizedState,"function"===typeof(o=e.getDerivedStateFromProps)&&(vo(t,e,o,n),i.state=t.memoizedState),"function"===typeof e.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(e=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),e!==i.state&&mo.enqueueReplaceState(i,i.state,null),co(t,n,i,r),i.state=t.memoizedState),"function"===typeof i.componentDidMount&&(t.effectTag|=4)}var _o=Array.isArray;function xo(t,e,n){if(null!==(t=n.ref)&&"function"!==typeof t&&"object"!==typeof t){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,t));var i=""+t;return null!==e&&null!==e.ref&&"function"===typeof e.ref&&e.ref._stringRef===i?e.ref:((e=function(t){var e=r.refs;e===po&&(e=r.refs={}),null===t?delete e[i]:e[i]=t})._stringRef=i,e)}if("string"!==typeof t)throw Error(a(284));if(!n._owner)throw Error(a(290,t))}return t}function Eo(t,e){if("textarea"!==t.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(e)?"object with keys {"+Object.keys(e).join(", ")+"}":e,""))}function ko(t){function e(e,n){if(t){var r=e.lastEffect;null!==r?(r.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!t)return null;for(;null!==r;)e(n,r),r=r.sibling;return null}function r(t,e){for(t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function i(t,e){return(t=Su(t,e)).index=0,t.sibling=null,t}function o(e,n,r){return e.index=r,t?null!==(r=e.alternate)?(r=r.index)<n?(e.effectTag=2,n):r:(e.effectTag=2,n):n}function s(e){return t&&null===e.alternate&&(e.effectTag=2),e}function u(t,e,n,r){return null===e||6!==e.tag?((e=Cu(n,t.mode,r)).return=t,e):((e=i(e,n)).return=t,e)}function l(t,e,n,r){return null!==e&&e.elementType===n.type?((r=i(e,n.props)).ref=xo(t,e,n),r.return=t,r):((r=Ou(n.type,n.key,n.props,null,t.mode,r)).ref=xo(t,e,n),r.return=t,r)}function c(t,e,n,r){return null===e||4!==e.tag||e.stateNode.containerInfo!==n.containerInfo||e.stateNode.implementation!==n.implementation?((e=Nu(n,t.mode,r)).return=t,e):((e=i(e,n.children||[])).return=t,e)}function f(t,e,n,r,o){return null===e||7!==e.tag?((e=Au(n,t.mode,r,o)).return=t,e):((e=i(e,n)).return=t,e)}function h(t,e,n){if("string"===typeof e||"number"===typeof e)return(e=Cu(""+e,t.mode,n)).return=t,e;if("object"===typeof e&&null!==e){switch(e.$$typeof){case tt:return(n=Ou(e.type,e.key,e.props,null,t.mode,n)).ref=xo(t,null,e),n.return=t,n;case et:return(e=Nu(e,t.mode,n)).return=t,e}if(_o(e)||vt(e))return(e=Au(e,t.mode,n,null)).return=t,e;Eo(t,e)}return null}function d(t,e,n,r){var i=null!==e?e.key:null;if("string"===typeof n||"number"===typeof n)return null!==i?null:u(t,e,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case tt:return n.key===i?n.type===nt?f(t,e,n.props.children,r,i):l(t,e,n,r):null;case et:return n.key===i?c(t,e,n,r):null}if(_o(n)||vt(n))return null!==i?null:f(t,e,n,r,null);Eo(t,n)}return null}function p(t,e,n,r,i){if("string"===typeof r||"number"===typeof r)return u(e,t=t.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case tt:return t=t.get(null===r.key?n:r.key)||null,r.type===nt?f(e,t,r.props.children,i,r.key):l(e,t,r,i
vendor: 33,588 bytes, line 2
2);case et:return c(e,t=t.get(null===r.key?n:r.key)||null,r,i)}if(_o(r)||vt(r))return f(e,t=t.get(n)||null,r,i,null);Eo(e,r)}return null}function v(i,a,s,u){for(var l=null,c=null,f=a,v=a=0,m=null;null!==f&&v<s.length;v++){f.index>v?(m=f,f=null):m=f.sibling;var g=d(i,f,s[v],u);if(null===g){null===f&&(f=m);break}t&&f&&null===g.alternate&&e(i,f),a=o(g,a,v),null===c?l=g:c.sibling=g,c=g,f=m}if(v===s.length)return n(i,f),l;if(null===f){for(;v<s.length;v++)null!==(f=h(i,s[v],u))&&(a=o(f,a,v),null===c?l=f:c.sibling=f,c=f);return l}for(f=r(i,f);v<s.length;v++)null!==(m=p(f,i,v,s[v],u))&&(t&&null!==m.alternate&&f.delete(null===m.key?v:m.key),a=o(m,a,v),null===c?l=m:c.sibling=m,c=m);return t&&f.forEach((function(t){return e(i,t)})),l}function m(i,s,u,l){var c=vt(u);if("function"!==typeof c)throw Error(a(150));if(null==(u=c.call(u)))throw Error(a(151));for(var f=c=null,v=s,m=s=0,g=null,y=u.next();null!==v&&!y.done;m++,y=u.next()){v.index>m?(g=v,v=null):g=v.sibling;var b=d(i,v,y.value,l);if(null===b){null===v&&(v=g);break}t&&v&&null===b.alternate&&e(i,v),s=o(b,s,m),null===f?c=b:f.sibling=b,f=b,v=g}if(y.done)return n(i,v),c;if(null===v){for(;!y.done;m++,y=u.next())null!==(y=h(i,y.value,l))&&(s=o(y,s,m),null===f?c=y:f.sibling=y,f=y);return c}for(v=r(i,v);!y.done;m++,y=u.next())null!==(y=p(v,i,m,y.value,l))&&(t&&null!==y.alternate&&v.delete(null===y.key?m:y.key),s=o(y,s,m),null===f?c=y:f.sibling=y,f=y);return t&&v.forEach((function(t){return e(i,t)})),c}return function(t,r,o,u){var l="object"===typeof o&&null!==o&&o.type===nt&&null===o.key;l&&(o=o.props.children);var c="object"===typeof o&&null!==o;if(c)switch(o.$$typeof){case tt:t:{for(c=o.key,l=r;null!==l;){if(l.key===c){switch(l.tag){case 7:if(o.type===nt){n(t,l.sibling),(r=i(l,o.props.children)).return=t,t=r;break t}break;default:if(l.elementType===o.type){n(t,l.sibling),(r=i(l,o.props)).ref=xo(t,l,o),r.return=t,t=r;break t}}n(t,l);break}e(t,l),l=l.sibling}o.type===nt?((r=Au(o.props.children,t.mode,u,o.key)).return=t,t=r):((u=Ou(o.type,o.key,o.props,null,t.mode,u)).ref=xo(t,r,o),u.return=t,t=u)}return s(t);case et:t:{for(l=o.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(t,r.sibling),(r=i(r,o.children||[])).return=t,t=r;break t}n(t,r);break}e(t,r),r=r.sibling}(r=Nu(o,t.mode,u)).return=t,t=r}return s(t)}if("string"===typeof o||"number"===typeof o)return o=""+o,null!==r&&6===r.tag?(n(t,r.sibling),(r=i(r,o)).return=t,t=r):(n(t,r),(r=Cu(o,t.mode,u)).return=t,t=r),s(t);if(_o(o))return v(t,r,o,u);if(vt(o))return m(t,r,o,u);if(c&&Eo(t,o),"undefined"===typeof o&&!l)switch(t.tag){case 1:case 0:throw t=t.type,Error(a(152,t.displayName||t.name||"Component"))}return n(t,r)}}var To=ko(!0),So=ko(!1),Oo={},Ao={current:Oo},Co={current:Oo},No={current:Oo};function Io(t){if(t===Oo)throw Error(a(174));return t}function Po(t,e){switch(li(No,e),li(Co,t),li(Ao,Oo),t=e.nodeType){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:jt(null,"");break;default:e=jt(e=(t=8===t?e.parentNode:e).namespaceURI||null,t=t.tagName)}ui(Ao),li(Ao,e)}function Mo(){ui(Ao),ui(Co),ui(No)}function Do(t){Io(No.current);var e=Io(Ao.current),n=jt(e,t.type);e!==n&&(li(Co,t),li(Ao,n))}function Ro(t){Co.current===t&&(ui(Ao),ui(Co))}var Lo={current:0};function jo(t){for(var e=t;null!==e;){if(13===e.tag){var n=e.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return e}else if(19===e.tag&&void 0!==e.memoizedProps.revealOrder){if(0!==(64&e.effectTag))return e}else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}function Fo(t,e){return{responder:t,props:e}}var Uo=$.ReactCurrentDispatcher,qo=$.ReactCurrentBatchConfig,Bo=0,Vo=null,zo=null,Wo=null,Ho=!1;function Yo(){throw Error(a(321))}function Go(t,e){if(null===e)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!jr(t[n],e[n]))return!1;return!0}function Ko(t,e,n,r,i,o){if(Bo=o,Vo=e,e.memoizedState=null,e.updateQueue=null,e.expirationTime=0,Uo.current=null===t||null===t.memoizedState?ga:ya,t=n(r,i),e.expirationTime===Bo){o=0;do{if(e.expirationTime=0,!(25>o))throw Error(a(301));o+=1,Wo=zo=null,e.updateQueue=null,Uo.current=ba,t=n(r,i)}while(e.expirationTime===Bo)}if(Uo.current=ma,e=null!==zo&&null!==zo.next,Bo=0,Wo=zo=Vo=null,Ho=!1,e)throw Error(a(300));return t}function Xo(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Wo?Vo.memoizedState=Wo=t:Wo=Wo.next=t,Wo}function $o(){if(null===zo){var t=Vo.alternate;t=null!==t?t.memoizedState:null}else t=zo.next;var e=null===Wo?Vo.memoizedState:Wo.next;if(null!==e)Wo=e,zo=t;else{if(null===t)throw Error(a(310));t={memoizedState:(zo=t).memoizedState,baseState:zo.baseState,baseQueue:zo.baseQueue,queue:zo.queue,next:null},null===Wo?Vo.memoizedState=Wo=t:Wo=Wo.next=t}return Wo}function Zo(t,e){return"function"===typeof e?e(t):e}function Qo(t){var e=$o(),n=e.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=t;var r=zo,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,l=i;do{var c=l.expirationTime;if(c<Bo){var f={expirationTime:l.expirationTime,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===u?(s=u=f,o=r):u=u.next=f,c>Vo.expirationTime&&(Vo.expirationTime=c,au(c))}else null!==u&&(u=u.next={expirationTime:1073741823,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),ou(c,l.suspenseConfig),r=l.eagerReducer===t?l.eagerState:t(r,l.action);l=l.next}while(null!==l&&l!==i);null===u?o=r:u.next=s,jr(r,e.memoizedState)||(Na=!0),e.memoizedState=r,e.baseState=o,e.baseQueue=u,n.lastRenderedState=r}return[e.memoizedState,n.dispatch]}function Jo(t){var e=$o(),n=e.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=t;var r=n.dispatch,i=n.pending,o=e.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=t(o,s.action),s=s.next}while(s!==i);jr(o,e.memoizedState)||(Na=!0),e.memoizedState=o,null===e.baseQueue&&(e.baseState=o),n.lastRenderedState=o}return[o,r]}function ta(t){var e=Xo();return"function"===typeof t&&(t=t()),e.memoizedState=e.baseState=t,t=(t=e.queue={pending:null,dispatch:null,lastRenderedReducer:Zo,lastRenderedState:t}).dispatch=va.bind(null,Vo,t),[e.memoizedState,t]}function ea(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},null===(e=Vo.updateQueue)?(e={lastEffect:null},Vo.updateQueue=e,e.lastEffect=t.next=t):null===(n=e.lastEffect)?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t),t}function na(){return $o().memoizedState}function ra(t,e,n,r){var i=Xo();Vo.effectTag|=t,i.memoizedState=ea(1|e,n,void 0,void 0===r?null:r)}function ia(t,e,n,r){var i=$o();r=void 0===r?null:r;var o=void 0;if(null!==zo){var a=zo.memoizedState;if(o=a.destroy,null!==r&&Go(r,a.deps))return void ea(e,n,o,r)}Vo.effectTag|=t,i.memoizedState=ea(1|e,n,o,r)}function oa(t,e){return ra(516,4,t,e)}function aa(t,e){return ia(516,4,t,e)}function sa(t,e){return ia(4,2,t,e)}function ua(t,e){return"function"===typeof e?(t=t(),e(t),function(){e(null)}):null!==e&&void 0!==e?(t=t(),e.current=t,function(){e.current=null}):void 0}function la(t,e,n){return n=null!==n&&void 0!==n?n.concat([t]):null,ia(4,2,ua.bind(null,e,t),n)}function ca(){}function fa(t,e){return Xo().memoizedState=[t,void 0===e?null:e],t}function ha(t,e){var n=$o();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&Go(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function da(t,e){var n=$o();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&Go(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function pa(t,e,n){var r=qi();Vi(98>r?98:r,(function(){t(!0)})),Vi(97<r?97:r,(function(){var r=qo.suspense;qo.suspense=void 0===e?null:e;try{t(!1),n()}finally{qo.suspense=r}}))}function va(t,e,n){var r=Ys(),i=ho.suspense;i={expirationTime:r=Gs(r,t,i),suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var o=e.pending;if(null===o?i.next=i:(i.next=o.next,o.next=i),e.pending=i,o=t.alternate,t===Vo||null!==o&&o===Vo)Ho=!0,i.expirationTime=Bo,Vo.expirationTime=Bo;else{if(0===t.expirationTime&&(null===o||0===o.expirationTime)&&null!==(o=e.lastRenderedReducer))try{var a=e.lastRenderedState,s=o(a,n);if(i.eagerReducer=o,i.eagerState=s,jr(s,a))return}catch(u){}Ks(t,r)}}var ma={readContext:ro,useCallback:Yo,useContext:Yo,useEffect:Yo,useImperativeHandle:Yo,useLayoutEffect:Yo,useMemo:Yo,useReducer:Yo,useRef:Yo,useState:Yo,useDebugValue:Yo,useResponder:Yo,useDeferredValue:Yo,useTransition:Yo},ga={readContext:ro,useCallback:fa,useContext:ro,useEffect:oa,useImperativeHandle:function(t,e,n){return n=null!==n&&void 0!==n?n.concat([t]):null,ra(4,2,ua.bind(null,e,t),n)},useLayoutEffect:function(t,e){return ra(4,2,t,e)},useMemo:function(t,e){var n=Xo();return e=void 0===e?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=Xo();return e=void 0!==n?n(e):e,r.memoizedState=r.baseState=e,t=(t=r.queue={pending:null,dispatch:null,lastRenderedReducer:t,lastRenderedState:e}).dispatch=va.bind(null,Vo,t),[r.memoizedState,t]},useRef:function(t){return t={current:t},Xo().memoizedState=t},useState:ta,useDebugValue:ca,useResponder:Fo,useDeferredValue:function(t,e){var n=ta(t),r=n[0],i=n[1];return oa((function(){var n=qo.suspense;qo.suspense=void 0===e?null:e;try{i(t)}finally{qo.suspense=n}}),[t,e]),r},useTransition:function(t){var e=ta(!1),n=e[0];return e=e[1],[fa(pa.bind(null,e,t),[e,t]),n]}},ya={readContext:ro,useCallback:ha,useContext:ro,useEffect:aa,useImperativeHandle:la,useLayoutEffect:sa,useMemo:da,useReducer:Qo,useRef:na,useState:function(){return Qo(Zo)},useDebugValue:ca,useResponder:Fo,useDeferredValue:function(t,e){var n=Qo(Zo),r=n[0],i=n[1];return aa((function(){var n=qo.suspense;qo.suspense=void 0===e?null:e;try{i(t)}finally{qo.suspense=n}}),[t,e]),r},useTransition:function(t){var e=Qo(Zo),n=e[0];return e=e[1],[ha(pa.bind(null,e,t),[e,t]),n]}},ba={readContext:ro,useCallback:ha,useContext:ro,useEffect:aa,useImperativeHandle:la,useLayoutEffect:sa,useMemo:da,useReducer:Jo,useRef:na,useState:function(){return Jo(Zo)},useDebugValue:ca,useResponder:Fo,useDeferredValue:function(t,e){var n=Jo(Zo),r=n[0],i=n[1];return aa((function(){var n=qo.suspense;qo.suspense=void 0===e?null:e;try{i(t)}finally{qo.suspense=n}}),[t,e]),r},useTransition:function(t){var e=Jo(Zo),n=e[0];return e=e[1],[ha(pa.bind(null,e,t),[e,t]),n]}},wa=null,_a=null,xa=!1;function Ea(t,e){var n=ku(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=e,n.return=t,n.effectTag=8,null!==t.lastEffect?(t.lastEffect.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n}function ka(t,e){switch(t.tag){case 5:var n=t.type;return null!==(e=1!==e.nodeType||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e)&&(t.stateNode=e,!0);case 6:return null!==(e=""===t.pendingProps||3!==e.nodeType?null:e)&&(t.stateNode=e,!0);case 13:default:return!1}}function Ta(t){if(xa){var e=_a;if(e){var n=e;if(!ka(t,e)){if(!(e=_n(n.nextSibling))||!ka(t,e))return t.effectTag=-1025&t.effectTag|2,xa=!1,void(wa=t);Ea(wa,n)}wa=t,_a=_n(e.firstChild)}else t.effectTag=-1025&t.effectTag|2,xa=!1,wa=t}}function Sa(t){for(t=t.return;null!==t&&5!==t.tag&&3!==t.tag&&13!==t.tag;)t=t.return;wa=t}function Oa(t){if(t!==wa)return!1;if(!xa)return Sa(t),xa=!0,!1;var e=t.type;if(5!==t.tag||"head"!==e&&"body"!==e&&!yn(e,t.memoizedProps))for(e=_a;e;)Ea(t,e),e=_n(e.nextSibling);if(Sa(t),13===t.tag){if(!(t=null!==(t=t.memoizedState)?t.dehydrated:null))throw Error(a(317));t:{for(t=t.nextSibling,e=0;t;){if(8===t.nodeType){var n=t.data;if("/$"===n){if(0===e){_a=_n(t.nextSibling);break t}e--}else"$"!==n&&"$!"!==n&&"$?"!==n||e++}t=t.nextSibling}_a=null}}else _a=wa?_n(t.stateNode.nextSibling):null;return!0}function Aa(){_a=wa=null,xa=!1}var Ca=$.ReactCurrentOwner,Na=!1;function Ia(t,e,n,r){e.child=null===t?So(e,null,n,r):To(e,t.child,n,r)}function Pa(t,e,n,r,i){n=n.render;var o=e.ref;return no(e,i),r=Ko(t,e,n,r,o,i),null===t||Na?(e.effectTag|=1,Ia(t,e,r,i),e.child):(e.updateQueue=t.updateQueue,e.effectTag&=-517,t.expirationTime<=i&&(t.expirationTime=0),Ka(t,e,i))}function Ma(t,e,n,r,i,o){if(null===t){var a=n.type;return"function"!==typeof a||Tu(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((t=Ou(n.type,null,r,null,e.mode,o)).ref=e.ref,t.return=e,e.child=t):(e.tag=15,e.type=a,Da(t,e,a,r,i,o))}return a=t.child,i<o&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:Ur)(i,r)&&t.ref===e.ref)?Ka(t,e,o):(e.effectTag|=1,(t=Su(a,r)).ref=e.ref,t.return=e,e.child=t)}function Da(t,e,n,r,i,o){return null!==t&&Ur(t.memoizedProps,r)&&t.ref===e.ref&&(Na=!1,i<o)?(e.expirationTime=t.expirationTime,Ka(t,e,o)):La(t,e,n,r,o)}function Ra(t,e){var n=e.ref;(null===t&&null!==n||null!==t&&t.ref!==n)&&(e.effectTag|=128)}function La(t,e,n,r,i){var o=vi(n)?di:fi.current;return o=pi(e,o),no(e,i),n=Ko(t,e,n,r,o,i),null===t||Na?(e.effectTag|=1,Ia(t,e,n,i),e.child):(e.updateQueue=t.updateQueue,e.effectTag&=-517,t.expirationTime<=i&&(t.expirationTime=0),Ka(t,e,i))}function ja(t,e,n,r,i){if(vi(n)){var o=!0;bi(e)}else o=!1;if(no(e,i),null===e.stateNode)null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),yo(e,n,r),wo(e,n,r,i),r=!0;else if(null===t){var a=e.stateNode,s=e.memoizedProps;a.props=s;var u=a.context,l=n.contextType;"object"===typeof l&&null!==l?l=ro(l):l=pi(e,l=vi(n)?di:fi.current);var c=n.getDerivedStateFromProps,f="function"===typeof c||"function"===typeof a.getSnapshotBeforeUpdate;f||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||u!==l)&&bo(e,a,r,l),io=!1;var h=e.memoizedState;a.state=h,co(e,r,a,i),u=e.memoizedState,s!==r||h!==u||hi.current||io?("function"===typeof c&&(vo(e,n,c,r),u=e.memoizedState),(s=io||go(e,n,s,r,h,u,l))?(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&&(e.effectTag|=4)):("function"===typeof a.componentDidMount&&(e.effectTag|=4),e.memoizedProps=r,e.memoizedState=u),a.props=r,a.state=u,a.context=l,r=s):("function"===typeof a.componentDidMount&&(e.effectTag|=4),r=!1)}else a=e.stateNode,ao(t,e),s=e.memoizedProps,a.props=e.type===e.elementType?s:Ki(e.type,s),u=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=ro(l):l=pi(e,l=vi(n)?di:fi.current),(f="function"===typeof(c=n.getDerivedStateFromProps)||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||u!==l)&&bo(e,a,r,l),io=!1,u=e.memoizedState,a.state=u,co(e,r,a,i),h=e.memoizedState,s!==r||u!==h||hi.current||io?("function"===typeof c&&(vo(e,n,c,r),h=e.memoizedState),(c=io||go(e,n,s,r,u,h,l))?(f||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"===typeof a.componentDidUpdate&&(e.effectTag|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(e.effectTag|=256)):("function"!==typeof a.componentDidUpdate||s===t.memoizedProps&&u===t.memoizedState||(e.effectTag|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===t.memoizedProps&&u===t.memoizedState||(e.effectTag|=256),e.memoizedProps=r,e.memoizedState=h),a.props=r,a.state=h,a.context=l,r=c):("function"!==typeof a.componentDidUpdate||s===t.memoizedProps&&u===t.memoizedState||(e.effectTag|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===t.memoizedProps&&u===t.memoizedState||(e.effectTag|=256),r=!1);return Fa(t,e,n,r,o,i)}function Fa(t,e,n,r,i,o){Ra(t,e);var a=0!==(64&e.effectTag);if(!r&&!a)return i&&wi(e,n,!1),Ka(t,e,o);r=e.stateNode,Ca.current=e;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return e.effectTag|=1,null!==t&&a?(e.child=To(e,t.child,null,o),e.child=To(e,null,s,o)):Ia(t,e,s,o),e.memoizedState=r.state,i&&wi(e,n,!0),e.child}function Ua(t){var e=t.stateNode;e.pendingContext?gi(0,e.pendingContext,e.pendingContext!==e.context):e.context&&gi(0,e.context,!1),Po(t,e.containerInfo)}var qa,Ba,Va,za={dehydrated:null,retryTime:0};function Wa(t,e,n){var r,i=e.mode,o=e.pendingProps,a=Lo.current,s=!1;if((r=0!==(64&e.effectTag))||(r=0!==(2&a)&&(null===t||null!==t.memoizedState)),r?(s=!0,e.effectTag&=-65):null!==t&&null===t.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(a|=1),li(Lo,1&a),null===t){if(void 0!==o.fallback&&Ta(e),s){if(s=o.fallback,(o=Au(null,i,0,null)).return=e,0===(2&e.mode))for(t=null!==e.memoizedState?e.child.child:e.child,o.child=t;null!==t;)t.return=o,t=t.sibling;return(n=Au(s,i,n,null)).return=e,o.sibling=n,e.memoizedState=za,e.child=o,n}return i=o.children,e.memoizedState=null,e.child=So(e,null,i,n)}if(null!==t.memoizedState){if(i=(t=t.child).sibling,s){if(o=o.fallback,(n=Su(t,t.pendingProps)).return=e,0===(2&e.mode)&&(s=null!==e.memoizedState?e.child.child:e.child)!==t.child)for(n.child=s;null!==s;)s.return=n,s=s.sibling;return(i=Su(i,o)).return=e,n.sibling=i,n.childExpirationTime=0,e.memoizedState=za,e.child=n,i}return n=To(e,t.child,o.children,n),e.memoizedState=null,e.child=n}if(t=t.child,s){if(s=o.fallback,(o=Au(null,i,0,null)).return=e,o.child=t,null!==t&&(t.return=o),0===(2&e.mode))for(t=null!==e.memoizedState?e.child.child:e.child,o.child=t;null!==t;)t.return=o,t=t.sibling;return(n=Au(s,i,n,null)).return=e,o.sibling=n,n.effectTag|=2,o.childExpirationTime=0,e.memoizedState=za,e.child=o,n}return e.memoizedState=null,e.child=To(e,t,o.children,n)}function Ha(t,e){t.expirationTime<e&&(t.expirationTime=e);var n=t.alternate;null!==n&&n.expirationTime<e&&(n.expirationTime=e),eo(t.return,e)}function Ya(t,e,n,r,i,o){var a=t.memoizedState;null===a?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:i,lastEffect:o}:(a.isBackwards=e,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=i,a.lastEffect=o)}function Ga(t,e,n){var r=e.pendingProps,i=r.revealOrder,o=r.tail;if(Ia(t,e,r.children,n),0!==(2&(r=Lo.current)))r=1&r|2,e.effectTag|=64;else{if(null!==t&&0!==(64&t.effectTag))t:for(t=e.child;null!==t;){if(13===t.tag)null!==t.memoizedState&&Ha(t,n);else if(19===t.tag)Ha(t,n);else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;null===t.sibling;){if(null===t.return||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(li(Lo,r),0===(2&e.mode))e.memoizedState=null;else switch(i){case"forwards":for(n=e.child,i=null;null!==n;)null!==(t=n.alternate)&&null===jo(t)&&(i=n),n=n.sibling;null===(n=i)?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),Ya(e,!1,i,n,o,e.lastEffect);break;case"backwards":for(n=null,i=e.child,e.child=null;null!==i;){if(null!==(t=i.alternate)&&null===jo(t)){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}Ya(e,!0,n,null,o,e.lastEffect);break;case"together":Ya(e,!1,null,null,void 0,e.lastEffect);break;default:e.memoizedState=null}return e.child}function Ka(t,e,n){null!==t&&(e.dependencies=t.dependencies);var r=e.expirationTime;if(0!==r&&au(r),e.childExpirationTime<n)return null;if(null!==t&&e.child!==t.child)throw Error(a(153));if(null!==e.child){for(n=Su(t=e.child,t.pendingProps),e.child=n,n.return=e;null!==t.sibling;)t=t.sibling,(n=n.sibling=Su(t,t.pendingProps)).return=e;n.sibling=null}return e.child}function Xa(t,e){switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;null!==e;)null!==e.alternate&&(n=e),e=e.sibling;null===n?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?e||null===t.tail?t.tail=null:t.tail.sibling=null:r.sibling=null}}function $a(t,e,n){var r=e.pendingProps;switch(e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return vi(e.type)&&mi(),null;case 3:return Mo(),ui(hi),ui(fi),(n=e.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==t&&null!==t.child||!Oa(e)||(e.effectTag|=4),null;case 5:Ro(e),n=Io(No.current);var o=e.type;if(null!==t&&null!=e.stateNode)Ba(t,e,o,r,n),t.ref!==e.ref&&(e.effectTag|=128);else{if(!r){if(null===e.stateNode)throw Error(a(166));return null}if(t=Io(Ao.current),Oa(e)){r=e.stateNode,o=e.type;var s=e.memoizedProps;switch(r[kn]=e,r[Tn]=s,o){case"iframe":case"object":case"embed":Ge("load",r);break;case"video":case"audio":for(t=0;t<$t.length;t++)Ge($t[t],r);break;case"source":Ge("error",r);break;case"img":case"image":case"link":Ge("error",r),Ge("load",r);break;case"form":Ge("reset",r),Ge("submit",r);break;case"details":Ge("toggle",r);break;case"input":Et(r,s),Ge("invalid",r),un(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Ge("invalid",r),un(n,"onChange");break;case"textarea":It(r,s),Ge("invalid",r),un(n,"onChange")}for(var u in on(o,s),t=null,s)if(s.hasOwnProperty(u)){var l=s[u];"children"===u?"string"===typeof l?r.textContent!==l&&(t=["children",l]):"number"===typeof l&&r.textContent!==""+l&&(t=["children",""+l]):k.hasOwnProperty(u)&&null!=l&&un(n,u)}switch(o){case"input":wt(r),St(r,s,!0);break;case"textarea":wt(r),Mt(r);break;case"select":case"option":break;default:"function"===typeof s.onClick&&(r.onclick=ln)}n=t,e.updateQueue=n,null!==n&&(e.effectTag|=4)}else{switch(u=9===n.nodeType?n:n.ownerDocument,t===sn&&(t=Lt(o)),t===sn?"script"===o?((t=u.createElement("div")).innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):"string"===typeof r.is?t=u.createElement(o,{is:r.is}):(t=u.createElement(o),"select"===o&&(u=t,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):t=u.createElementNS(t,o),t[kn]=e,t[Tn]=r,qa(t,e),e.stateNode=t,u=an(o,r),o){case"iframe":case"object":case"embed":Ge("load",t),l=r;break;case"video":case"audio":for(l=0;l<$t.length;l++)Ge($t[l],t);l=r;break;case"source":Ge("error",t),l=r;break;case"img":case"image":case"link":Ge("error",t),Ge("load",t),l=r;break;case"form":Ge("reset",t),Ge("submit",t),l=r;break;case"details":Ge("toggle",t),l=r;break;case"input":Et(t,r),l=xt(t,r),Ge("invalid",t),un(n,"onChange");break;case"option":l=At(t,r);break;case"select":t._wrapperState={wasMultiple:!!r.multiple},l=i({},r,{value:void 0}),Ge("invalid",t),un(n,"onChange");break;case"textarea":It(t,r),l=Nt(t,r),Ge("invalid",t),un(n,"onChange");break;default:l=r}on(o,l);var c=l;for(s in c)if(c.hasOwnProperty(s)){var f=c[s];"style"===s?nn(t,f):"dangerouslySetInnerHTML"===s?null!=(f=f?f.__html:void 0)&&Ut(t,f):"children"===s?"string"===typeof f?("textarea"!==o||""!==f)&&qt(t,f):"number"===typeof f&&qt(t,""+f):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(k.hasOwnProperty(s)?null!=f&&un(n,s):null!=f&&Z(t,s,f,u))}switch(o){case"input":wt(t),St(t,r,!1);break;case"textarea":wt(t),Mt(t);break;case"option":null!=r.value&&t.setAttribute("value",""+yt(r.value));break;case"select":t.multiple=!!r.multiple,null!=(n=r.value)?Ct(t,!!r.multiple,n,!1):null!=r.defaultValue&&Ct(t,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof l.onClick&&(t.onclick=ln)}gn(o,r)&&(e.effectTag|=4)}null!==e.ref&&(e.effectTag|=128)}return null;case 6:if(t&&null!=e.stateNode)Va(0,e,t.memoizedProps,r);else{if("string"!==typeof r&&null===e.stateNode)throw Error(a(166));n=Io(No.current),Io(Ao.current),Oa(e)?(n=e.stateNode,r=e.memoizedProps,n[kn]=e,n.nodeValue!==r&&(e.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[kn]=e,e.stateNode=n)}return null;case 13:return ui(Lo),r=e.memoizedState,0!==(64&e.effectTag)?(e.expirationTime=n,e):(n=null!==r,r=!1,null===t?void 0!==e.memoizedProps.fallback&&Oa(e):(r=null!==(o=t.memoizedState),n||null===o||null!==(o=t.child.sibling)&&(null!==(s=e.firstEffect)?(e.firstEffect=o,o.nextEffect=s):(e.firstEffect=e.lastEffect=o,o.nextEffect=null),o.effectTag=8)),n&&!r&&0!==(2&e.mode)&&(null===t&&!0!==e.memoizedProps.unstable_avoidThisFallback||0!==(1&Lo.current)?Os===ws&&(Os=_s):(Os!==ws&&Os!==_s||(Os=xs),0!==Ps&&null!==ks&&(Mu(ks,Ss),Du(ks,Ps)))),(n||r)&&(e.effectTag|=4),null);case 4:return Mo(),null;case 10:return to(e),null;case 17:return vi(e.type)&&mi(),null;case 19:if(ui(Lo),null===(r=e.memoizedState))return null;if(o=0!==(64&e.effectTag),null===(s=r.rendering)){if(o)Xa(r,!1);else if(Os!==ws||null!==t&&0!==(64&t.effectTag))for(s=e.child;null!==s;){if(null!==(t=jo(s))){for(e.effectTag|=64,Xa(r,!1),null!==(o=t.updateQueue)&&(e.updateQueue=o,e.effectTag|=4),null===r.lastEffect&&(e.firstEffect=null),e.lastEffect=r.lastEffect,r=e.child;null!==r;)s=n,(o=r).effectTag&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(t=o.alternate)?(o.childExpirationTime=0,o.expirationTime=s,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null):(o.childExpirationTime=t.childExpirationTime,o.expirationTime=t.expirationTime,o.child=t.child,o.memoizedProps=t.memoizedProps,o.memoizedState=t.memoizedState,o.updateQueue=t.updateQueue,s=t.dependencies,o.dependencies=null===s?null:{expirationTime:s.expirationTime,firstContext:s.firstContext,responders:s.responders}),r=r.sibling;return li(Lo,1&Lo.current|2),e.child}s=s.sibling}}else{if(!o)if(null!==(t=jo(s))){if(e.effectTag|=64,o=!0,null!==(n=t.updateQueue)&&(e.updateQueue=n,e.effectTag|=4),Xa(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate)return null!==(e=e.lastEffect=r.lastEffect)&&(e.nextEffect=null),null}else 2*Ui()-r.renderingStartTime>r.tailExpiration&&1<n&&(e.effectTag|=64,o=!0,Xa(r,!1),e.expirationTime=e.childExpirationTime=n-1);r.isBackwards?(s.sibling=e.child,e.child=s):(null!==(n=r.last)?n.sibling=s:e.child=s,r.last=s)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=Ui()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=e.lastEffect,r.renderingStartTime=Ui(),n.sibling=null,e=Lo.current,li(Lo,o?1&e|2:1&e),n):null}throw Error(a(156,e.tag))}function Za(t){switch(t.tag){case 1:vi(t.type)&&mi();var e=t.effectTag;return 4096&e?(t.effectTag=-4097&e|64,t):null;case 3:if(Mo(),ui(hi),ui(fi),0!==(64&(e=t.effectTag)))throw Error(a(285));return t.effectTag=-4097&e|64,t;case 5:return Ro(t),null;case 13:return ui(Lo),4096&(e=t.effectTag)?(t.effectTag=-4097&e|64,t):null;case 19:return ui(Lo),null;case 4:return Mo(),null;case 10:return to(t),null;default:return null}}function Qa(t,e){return{value:t,source:e,stack:gt(e)}}qa=function(t,e){for(var n=e.child;null!==n;){if(5===n.tag||6===n.tag)t.appendChild(n.stateNode);else if(4!==n.tag&&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}},Ba=function(t,e,n,r,o){var a=t.memoizedProps;if(a!==r){var s,u,l=e.stateNode;switch(Io(Ao.current),t=null,n){case"input":a=xt(l,a),r=xt(l,r),t=[];break;case"option":a=At(l,a),r=At(l,r),t=[];break;case"select":a=i({},a,{value:void 0}),r=i({},r,{value:void 0}),t=[];break;case"textarea":a=Nt(l,a),r=Nt(l,r),t=[];break;default:"function"!==typeof a.onClick&&"function"===typeof r.onClick&&(l.onclick=ln)}for(s in on(n,r),n=null,a)if(!r.hasOwnProperty(s)&&a.hasOwnProperty(s)&&null!=a[s])if("style"===s)for(u in l=a[s])l.hasOwnProperty(u)&&(n||(n={}),n[u]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(k.hasOwnProperty(s)?t||(t=[]):(t=t||[]).push(s,null));for(s in r){var c=r[s];if(l=null!=a?a[s]:void 0,r.hasOwnProperty(s)&&c!==l&&(null!=c||null!=l))if("style"===s)if(l){for(u in l)!l.hasOwnProperty(u)||c&&c.hasOwnProperty(u)||(n||(n={}),n[u]="");for(u in c)c.hasOwnProperty(u)&&l[u]!==c[u]&&(n||(n={}),n[u]=c[u])}else n||(t||(t=[]),t.push(s,n)),n=c;else"dangerouslySetInnerHTML"===s?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(t=t||[]).push(s,c)):"children"===s?l===c||"string"!==typeof c&&"number"!==typeof c||(t=t||[]).push(s,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(k.hasOwnProperty(s)?(null!=c&&un(o,s),t||l===c||(t=[])):(t=t||[]).push(s,c))}n&&(t=t||[]).push("style",n),o=t,(e.updateQueue=o)&&(e.effectTag|=4)}},Va=function(t,e,n,r){n!==r&&(e.effectTag|=4)};var Ja="function"===typeof WeakSet?WeakSet:Set;function ts(t,e){var n=e.source,r=e.stack;null===r&&null!==n&&(r=gt(n)),null!==n&&mt(n.type),e=e.value,null!==t&&1===t.tag&&mt(t.type);try{console.error(e)}catch(i){setTimeout((function(){throw i}))}}function es(t){var e=t.ref;if(null!==e)if("function"===typeof e)try{e(null)}catch(n){yu(t,n)}else e.current=null}function ns(t,e){switch(e.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&e.effectTag&&null!==t){var n=t.memoizedProps,r=t.memoizedState;e=(t=e.stateNode).getSnapshotBeforeUpdate(e.elementType===e.type?n:Ki(e.type,n),r),t.__reactInternalSnapshotBeforeUpdate=e}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(a(163))}function rs(t,e){if(null!==(e=null!==(e=e.updateQueue)?e.lastEffect:null)){var n=e=e.next;do{if((n.tag&t)===t){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==e)}}function is(t,e){if(null!==(e=null!==(e=e.updateQueue)?e.lastEffect:null)){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function os(t,e,n){switch(n.tag){case 0:case 11:case 15:case 22:return void is(3,n);case 1:if(t=n.stateNode,4&n.effectTag)if(null===e)t.componentDidMount();else{var r=n.elementType===n.type?e.memoizedProps:Ki(n.type,e.memoizedProps);t.componentDidUpdate(r,e.memoizedState,t.__reactInternalSnapshotBeforeUpdate)}return void(null!==(e=n.updateQueue)&&fo(n,e,t));case 3:if(null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}fo(n,e,t)}return;case 5:return t=n.stateNode,void(null===e&&4&n.effectTag&&gn(n.type,n.memoizedProps)&&t.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&&Le(n)))));case 19:case 17:case 20:case 21:return}throw Error(a(163))}function as(t,e,n){switch("function"===typeof xu&&xu(e),e.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(t=e.updateQueue)&&null!==(t=t.lastEffect)){var r=t.next;Vi(97<n?97:n,(function(){var t=r;do{var n=t.destroy;if(void 0!==n){var i=e;try{n()}catch(o){yu(i,o)}}t=t.next}while(t!==r)}))}break;case 1:es(e),"function"===typeof(n=e.stateNode).componentWillUnmount&&function(t,e){try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(n){yu(t,n)}}(e,n);break;case 5:es(e);break;case 4:cs(t,e,n)}}function ss(t){var e=t.alternate;t.return=null,t.child=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.alternate=null,t.firstEffect=null,t.lastEffect=null,t.pendingProps=null,t.memoizedProps=null,t.stateNode=null,null!==e&&ss(e)}function us(t){return 5===t.tag||3===t.tag||4===t.tag}function ls(t){t:{for(var e=t.return;null!==e;){if(us(e)){var n=e;break t}e=e.return}throw Error(a(160))}switch(e=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:e=e.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.effectTag&&(qt(e,""),n.effectTag&=-17);t:e:for(n=t;;){for(;null===n.sibling;){if(null===n.return||us(n.return)){n=null;break t}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue e;if(null===n.child||4===n.tag)continue e;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break t}}r?function t(e,n,r){var i=e.tag,o=5===i||6===i;if(o)e=o?e.stateNode:e.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(e,n):r.insertBefore(e,n):(8===r.nodeType?(n=r.parentNode).insertBefore(e,r):(n=r).appendChild(e),null!==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=ln));else if(4!==i&&null!==(e=e.child))for(t(e,n,r),e=e.sibling;null!==e;)t(e,n,r),e=e.sibling}(t,n,e):function t(e,n,r){var i=e.tag,o=5===i||6===i;if(o)e=o?e.stateNode:e.stateNode.instance,n?r.insertBefore(e,n):r.appendChild(e);else if(4!==i&&null!==(e=e.child))for(t(e,n,r),e=e.sibling;null!==e;)t(e,n,r),e=e.sibling}(t,n,e)}function cs(t,e,n){for(var r,i,o=e,s=!1;;){if(!s){s=o.return;t:for(;;){if(null===s)throw Error(a(160));switch(r=s.stateNode,s.tag){case 5:i=!1;break t;case 3:case 4:r=r.containerInfo,i=!0;break t}s=s.return}s=!0}if(5===o.tag||6===o.tag){t:for(var u=t,l=o,c=n,f=l;;)if(as(u,f,c),null!==f.child&&4!==f.tag)f.child.return=f,f=f.child;else{if(f===l)break t;for(;null===f.sibling;){if(null===f.return||f.return===l)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}i?(u=r,l=o.stateNode,8===u.nodeType?u.parentNode.removeChild(l):u.removeChild(l)):r.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){r=o.stateNode.containerInfo,i=!0,o.child.return=o,o=o.child;continue}}else if(as(t,o,n),null!==o.child){o.child.return=o,o=o.child;continue}if(o===e)break;for(;null===o.sibling;){if(null===o.return||o.return===e)return;4===(o=o.return).tag&&(s=!1)}o.sibling.return=o.return,o=o.sibling}}function fs(t,e){switch(e.tag){case 0:case 11:case 14:case 15:case 22:return void rs(3,e);case 1:return;case 5:var n=e.stateNode;if(null!=n){var r=e.memoizedProps,i=null!==t?t.memoizedProps:r;t=e.type;var o=e.updateQueue;
vendor: 4,874 bytes, line 2
2if(e.updateQueue=null,null!==o){for(n[Tn]=r,"input"===t&&"radio"===r.type&&null!=r.name&&kt(n,r),an(t,i),e=an(t,r),i=0;i<o.length;i+=2){var s=o[i],u=o[i+1];"style"===s?nn(n,u):"dangerouslySetInnerHTML"===s?Ut(n,u):"children"===s?qt(n,u):Z(n,s,u,e)}switch(t){case"input":Tt(n,r);break;case"textarea":Pt(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(t=r.value)?Ct(n,!!r.multiple,t,!1):e!==!!r.multiple&&(null!=r.defaultValue?Ct(n,!!r.multiple,r.defaultValue,!0):Ct(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===e.stateNode)throw Error(a(162));return void(e.stateNode.nodeValue=e.memoizedProps);case 3:return void((e=e.stateNode).hydrate&&(e.hydrate=!1,Le(e.containerInfo)));case 12:return;case 13:if(n=e,null===e.memoizedState?r=!1:(r=!0,n=e.child,Ds=Ui()),null!==n)t:for(t=n;;){if(5===t.tag)o=t.stateNode,r?"function"===typeof(o=o.style).setProperty?o.setProperty("display","none","important"):o.display="none":(o=t.stateNode,i=void 0!==(i=t.memoizedProps.style)&&null!==i&&i.hasOwnProperty("display")?i.display:null,o.style.display=en("display",i));else if(6===t.tag)t.stateNode.nodeValue=r?"":t.memoizedProps;else{if(13===t.tag&&null!==t.memoizedState&&null===t.memoizedState.dehydrated){(o=t.child.sibling).return=t,t=o;continue}if(null!==t.child){t.child.return=t,t=t.child;continue}}if(t===n)break;for(;null===t.sibling;){if(null===t.return||t.return===n)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}return void hs(e);case 19:return void hs(e);case 17:return}throw Error(a(163))}function hs(t){var e=t.updateQueue;if(null!==e){t.updateQueue=null;var n=t.stateNode;null===n&&(n=t.stateNode=new Ja),e.forEach((function(e){var r=wu.bind(null,t,e);n.has(e)||(n.add(e),e.then(r,r))}))}}var ds="function"===typeof WeakMap?WeakMap:Map;function ps(t,e,n){(n=so(n,null)).tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){Ls||(Ls=!0,js=r),ts(t,e)},n}function vs(t,e,n){(n=so(n,null)).tag=3;var r=t.type.getDerivedStateFromError;if("function"===typeof r){var i=e.value;n.payload=function(){return ts(t,e),r(i)}}var o=t.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Fs?Fs=new Set([this]):Fs.add(this),ts(t,e));var n=e.stack;this.componentDidCatch(e.value,{componentStack:null!==n?n:""})}),n}var ms,gs=Math.ceil,ys=$.ReactCurrentDispatcher,bs=$.ReactCurrentOwner,ws=0,_s=3,xs=4,Es=0,ks=null,Ts=null,Ss=0,Os=ws,As=null,Cs=1073741823,Ns=1073741823,Is=null,Ps=0,Ms=!1,Ds=0,Rs=null,Ls=!1,js=null,Fs=null,Us=!1,qs=null,Bs=90,Vs=null,zs=0,Ws=null,Hs=0;function Ys(){return 0!==(48&Es)?1073741821-(Ui()/10|0):0!==Hs?Hs:Hs=1073741821-(Ui()/10|0)}function Gs(t,e,n){if(0===(2&(e=e.mode)))return 1073741823;var r=qi();if(0===(4&e))return 99===r?1073741823:1073741822;if(0!==(16&Es))return Ss;if(null!==n)t=Gi(t,0|n.timeoutMs||5e3,250);else switch(r){case 99:t=1073741823;break;case 98:t=Gi(t,150,100);break;case 97:case 96:t=Gi(t,5e3,250);break;case 95:t=2;break;default:throw Error(a(326))}return null!==ks&&t===Ss&&--t,t}function Ks(t,e){if(50<zs)throw zs=0,Ws=null,Error(a(185));if(null!==(t=Xs(t,e))){var n=qi();1073741823===e?0!==(8&Es)&&0===(48&Es)?Js(t):(Zs(t),0===Es&&Hi()):Zs(t),0===(4&Es)||98!==n&&99!==n||(null===Vs?Vs=new Map([[t,e]]):(void 0===(n=Vs.get(t))||n>e)&&Vs.set(t,e))}}function Xs(t,e){t.expirationTime<e&&(t.expirationTime=e);var n=t.alternate;null!==n&&n.expirationTime<e&&(n.expirationTime=e);var r=t.return,i=null;if(null===r&&3===t.tag)i=t.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<e&&(r.childExpirationTime=e),null!==n&&n.childExpirationTime<e&&(n.childExpirationTime=e),null===r.return&&3===r.tag){i=r.stateNode;break}r=r.return}return null!==i&&(ks===i&&(au(e),Os===xs&&Mu(i,Ss)),Du(i,e)),i}function $s(t){var e=t.lastExpiredTime;if(0!==e)return e;if(!Pu(t,e=t.firstPendingTime))return e;var n=t.lastPingedTime;return 2>=(t=n>(t=t.nextKnownPendingLevel)?n:t)&&e!==t?0:t}function Zs(t){if(0!==t.lastExpiredTime)t.callbackExpirationTime=1073741823,t.callbackPriority=99,t.callbackNode=Wi(Js.bind(null,t));else{var e=$s(t),n=t.callbackNode;if(0===e)null!==n&&(t.callbackNode=null,t.callbackExpirationTime=0,t.callbackPriority=90);else{var r=Ys();if(1073741823===e?r=99:1===e||2===e?r=95:r=0>=(r=10*(1073741821-e)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var i=t.callbackPriority;if(t.callbackExpirationTime===e&&i>=r)return;n!==Pi&&Ei(n)}t.callbackExpirationTime=e,t.callbackPriority=r,e=1073741823===e?Wi(Js.bind(null,t)):zi(r,Qs.bind(null,t),{timeout:10*(1073741821-e)-Ui()}),t.callbackNode=e}}}function Qs(t,e){if(Hs=0,e)return Ru(t,e=Ys()),Zs(t),null;var n=$s(t);if(0!==n){if(e=t.callbackNode,0!==(48&Es))throw Error(a(327));if(vu(),t===ks&&n===Ss||nu(t,n),null!==Ts){var r=Es;Es|=16;for(var i=iu();;)try{uu();break}catch(u){ru(t,u)}
vendor: 20,342 bytes, line 2
2if(Ji(),Es=r,ys.current=i,1===Os)throw e=As,nu(t,n),Mu(t,n),Zs(t),e;if(null===Ts)switch(i=t.finishedWork=t.current.alternate,t.finishedExpirationTime=n,r=Os,ks=null,r){case ws:case 1:throw Error(a(345));case 2:Ru(t,2<n?2:n);break;case _s:if(Mu(t,n),n===(r=t.lastSuspendedTime)&&(t.nextKnownPendingLevel=fu(i)),1073741823===Cs&&10<(i=Ds+500-Ui())){if(Ms){var o=t.lastPingedTime;if(0===o||o>=n){t.lastPingedTime=n,nu(t,n);break}}if(0!==(o=$s(t))&&o!==n)break;if(0!==r&&r!==n){t.lastPingedTime=r;break}t.timeoutHandle=bn(hu.bind(null,t),i);break}hu(t);break;case xs:if(Mu(t,n),n===(r=t.lastSuspendedTime)&&(t.nextKnownPendingLevel=fu(i)),Ms&&(0===(i=t.lastPingedTime)||i>=n)){t.lastPingedTime=n,nu(t,n);break}if(0!==(i=$s(t))&&i!==n)break;if(0!==r&&r!==n){t.lastPingedTime=r;break}if(1073741823!==Ns?r=10*(1073741821-Ns)-Ui():1073741823===Cs?r=0:(r=10*(1073741821-Cs)-5e3,0>(r=(i=Ui())-r)&&(r=0),(n=10*(1073741821-n)-i)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*gs(r/1960))-r)&&(r=n)),10<r){t.timeoutHandle=bn(hu.bind(null,t),r);break}hu(t);break;case 5:if(1073741823!==Cs&&null!==Is){o=Cs;var s=Is;if(0>=(r=0|s.busyMinDurationMs)?r=0:(i=0|s.busyDelayMs,r=(o=Ui()-(10*(1073741821-o)-(0|s.timeoutMs||5e3)))<=i?0:i+r-o),10<r){Mu(t,n),t.timeoutHandle=bn(hu.bind(null,t),r);break}}hu(t);break;default:throw Error(a(329))}if(Zs(t),t.callbackNode===e)return Qs.bind(null,t)}}return null}function Js(t){var e=t.lastExpiredTime;if(e=0!==e?e:1073741823,0!==(48&Es))throw Error(a(327));if(vu(),t===ks&&e===Ss||nu(t,e),null!==Ts){var n=Es;Es|=16;for(var r=iu();;)try{su();break}catch(i){ru(t,i)}if(Ji(),Es=n,ys.current=r,1===Os)throw n=As,nu(t,e),Mu(t,e),Zs(t),n;if(null!==Ts)throw Error(a(261));t.finishedWork=t.current.alternate,t.finishedExpirationTime=e,ks=null,hu(t),Zs(t)}return null}function tu(t,e){var n=Es;Es|=1;try{return t(e)}finally{0===(Es=n)&&Hi()}}function eu(t,e){var n=Es;Es&=-2,Es|=8;try{return t(e)}finally{0===(Es=n)&&Hi()}}function nu(t,e){t.finishedWork=null,t.finishedExpirationTime=0;var n=t.timeoutHandle;if(-1!==n&&(t.timeoutHandle=-1,wn(n)),null!==Ts)for(n=Ts.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&mi();break;case 3:Mo(),ui(hi),ui(fi);break;case 5:Ro(r);break;case 4:Mo();break;case 13:case 19:ui(Lo);break;case 10:to(r)}n=n.return}ks=t,Ts=Su(t.current,null),Ss=e,Os=ws,As=null,Ns=Cs=1073741823,Is=null,Ps=0,Ms=!1}function ru(t,e){for(;;){try{if(Ji(),Uo.current=ma,Ho)for(var n=Vo.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(Bo=0,Wo=zo=Vo=null,Ho=!1,null===Ts||null===Ts.return)return Os=1,As=e,Ts=null;t:{var i=t,o=Ts.return,a=Ts,s=e;if(e=Ss,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==s&&"object"===typeof s&&"function"===typeof s.then){var u=s;if(0===(2&a.mode)){var l=a.alternate;l?(a.updateQueue=l.updateQueue,a.memoizedState=l.memoizedState,a.expirationTime=l.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var c=0!==(1&Lo.current),f=o;do{var h;if(h=13===f.tag){var d=f.memoizedState;if(null!==d)h=null!==d.dehydrated;else{var p=f.memoizedProps;h=void 0!==p.fallback&&(!0!==p.unstable_avoidThisFallback||!c)}}if(h){var v=f.updateQueue;if(null===v){var m=new Set;m.add(u),f.updateQueue=m}else v.add(u);if(0===(2&f.mode)){if(f.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var g=so(1073741823,null);g.tag=2,uo(a,g)}a.expirationTime=1073741823;break t}s=void 0,a=e;var y=i.pingCache;if(null===y?(y=i.pingCache=new ds,s=new Set,y.set(u,s)):void 0===(s=y.get(u))&&(s=new Set,y.set(u,s)),!s.has(a)){s.add(a);var b=bu.bind(null,i,u,a);u.then(b,b)}f.effectTag|=4096,f.expirationTime=e;break t}f=f.return}while(null!==f);s=Error((mt(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+gt(a))}5!==Os&&(Os=2),s=Qa(s,a),f=o;do{switch(f.tag){case 3:u=s,f.effectTag|=4096,f.expirationTime=e,lo(f,ps(f,u,e));break t;case 1:u=s;var w=f.type,_=f.stateNode;if(0===(64&f.effectTag)&&("function"===typeof w.getDerivedStateFromError||null!==_&&"function"===typeof _.componentDidCatch&&(null===Fs||!Fs.has(_)))){f.effectTag|=4096,f.expirationTime=e,lo(f,vs(f,u,e));break t}}f=f.return}while(null!==f)}Ts=cu(Ts)}catch(x){e=x;continue}break}}function iu(){var t=ys.current;return ys.current=ma,null===t?ma:t}function ou(t,e){t<Cs&&2<t&&(Cs=t),null!==e&&t<Ns&&2<t&&(Ns=t,Is=e)}function au(t){t>Ps&&(Ps=t)}function su(){for(;null!==Ts;)Ts=lu(Ts)}function uu(){for(;null!==Ts&&!Mi();)Ts=lu(Ts)}function lu(t){var e=ms(t.alternate,t,Ss);return t.memoizedProps=t.pendingProps,null===e&&(e=cu(t)),bs.current=null,e}function cu(t){Ts=t;do{var e=Ts.alternate;if(t=Ts.return,0===(2048&Ts.effectTag)){if(e=$a(e,Ts,Ss),1===Ss||1!==Ts.childExpirationTime){for(var n=0,r=Ts.child;null!==r;){var i=r.expirationTime,o=r.childExpirationTime;i>n&&(n=i),o>n&&(n=o),r=r.sibling}Ts.childExpirationTime=n}if(null!==e)return e;null!==t&&0===(2048&t.effectTag)&&(null===t.firstEffect&&(t.firstEffect=Ts.firstEffect),null!==Ts.lastEffect&&(null!==t.lastEffect&&(t.lastEffect.nextEffect=Ts.firstEffect),t.lastEffect=Ts.lastEffect),1<Ts.effectTag&&(null!==t.lastEffect?t.lastEffect.nextEffect=Ts:t.firstEffect=Ts,t.lastEffect=Ts))}else{if(null!==(e=Za(Ts)))return e.effectTag&=2047,e;null!==t&&(t.firstEffect=t.lastEffect=null,t.effectTag|=2048)}if(null!==(e=Ts.sibling))return e;Ts=t}while(null!==Ts);return Os===ws&&(Os=5),null}function fu(t){var e=t.expirationTime;return e>(t=t.childExpirationTime)?e:t}function hu(t){var e=qi();return Vi(99,du.bind(null,t,e)),null}function du(t,e){do{vu()}while(null!==qs);if(0!==(48&Es))throw Error(a(327));var n=t.finishedWork,r=t.finishedExpirationTime;if(null===n)return null;if(t.finishedWork=null,t.finishedExpirationTime=0,n===t.current)throw Error(a(177));t.callbackNode=null,t.callbackExpirationTime=0,t.callbackPriority=90,t.nextKnownPendingLevel=0;var i=fu(n);if(t.firstPendingTime=i,r<=t.lastSuspendedTime?t.firstSuspendedTime=t.lastSuspendedTime=t.nextKnownPendingLevel=0:r<=t.firstSuspendedTime&&(t.firstSuspendedTime=r-1),r<=t.lastPingedTime&&(t.lastPingedTime=0),r<=t.lastExpiredTime&&(t.lastExpiredTime=0),t===ks&&(Ts=ks=null,Ss=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,null!==i){var o=Es;Es|=32,bs.current=null,vn=Ye;var s=dn();if(pn(s)){if("selectionStart"in s)var u={start:s.selectionStart,end:s.selectionEnd};else t:{var l=(u=(u=s.ownerDocument)&&u.defaultView||window).getSelection&&u.getSelection();if(l&&0!==l.rangeCount){u=l.anchorNode;var c=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{u.nodeType,f.nodeType}catch(S){u=null;break t}var h=0,d=-1,p=-1,v=0,m=0,g=s,y=null;e:for(;;){for(var b;g!==u||0!==c&&3!==g.nodeType||(d=h+c),g!==f||0!==l&&3!==g.nodeType||(p=h+l),3===g.nodeType&&(h+=g.nodeValue.length),null!==(b=g.firstChild);)y=g,g=b;for(;;){if(g===s)break e;if(y===u&&++v===c&&(d=h),y===f&&++m===l&&(p=h),null!==(b=g.nextSibling))break;y=(g=y).parentNode}g=b}u=-1===d||-1===p?null:{start:d,end:p}}else u=null}u=u||{start:0,end:0}}else u=null;mn={activeElementDetached:null,focusedElem:s,selectionRange:u},Ye=!1,Rs=i;do{try{pu()}catch(S){if(null===Rs)throw Error(a(330));yu(Rs,S),Rs=Rs.nextEffect}}while(null!==Rs);Rs=i;do{try{for(s=t,u=e;null!==Rs;){var w=Rs.effectTag;if(16&w&&qt(Rs.stateNode,""),128&w){var _=Rs.alternate;if(null!==_){var x=_.ref;null!==x&&("function"===typeof x?x(null):x.current=null)}}switch(1038&w){case 2:ls(Rs),Rs.effectTag&=-3;break;case 6:ls(Rs),Rs.effectTag&=-3,fs(Rs.alternate,Rs);break;case 1024:Rs.effectTag&=-1025;break;case 1028:Rs.effectTag&=-1025,fs(Rs.alternate,Rs);break;case 4:fs(Rs.alternate,Rs);break;case 8:cs(s,c=Rs,u),ss(c)}Rs=Rs.nextEffect}}catch(S){if(null===Rs)throw Error(a(330));yu(Rs,S),Rs=Rs.nextEffect}}while(null!==Rs);if(x=mn,_=dn(),w=x.focusedElem,u=x.selectionRange,_!==w&&w&&w.ownerDocument&&function t(e,n){return!(!e||!n)&&(e===n||(!e||3!==e.nodeType)&&(n&&3===n.nodeType?t(e,n.parentNode):"contains"in e?e.contains(n):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(n))))}(w.ownerDocument.documentElement,w)){null!==u&&pn(w)&&(_=u.start,void 0===(x=u.end)&&(x=_),"selectionStart"in w?(w.selectionStart=_,w.selectionEnd=Math.min(x,w.value.length)):(x=(_=w.ownerDocument||document)&&_.defaultView||window).getSelection&&(x=x.getSelection(),c=w.textContent.length,s=Math.min(u.start,c),u=void 0===u.end?s:Math.min(u.end,c),!x.extend&&s>u&&(c=u,u=s,s=c),c=hn(w,s),f=hn(w,u),c&&f&&(1!==x.rangeCount||x.anchorNode!==c.node||x.anchorOffset!==c.offset||x.focusNode!==f.node||x.focusOffset!==f.offset)&&((_=_.createRange()).setStart(c.node,c.offset),x.removeAllRanges(),s>u?(x.addRange(_),x.extend(f.node,f.offset)):(_.setEnd(f.node,f.offset),x.addRange(_))))),_=[];for(x=w;x=x.parentNode;)1===x.nodeType&&_.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"===typeof w.focus&&w.focus(),w=0;w<_.length;w++)(x=_[w]).element.scrollLeft=x.left,x.element.scrollTop=x.top}Ye=!!vn,mn=vn=null,t.current=n,Rs=i;do{try{for(w=t;null!==Rs;){var E=Rs.effectTag;if(36&E&&os(w,Rs.alternate,Rs),128&E){_=void 0;var k=Rs.ref;if(null!==k){var T=Rs.stateNode;switch(Rs.tag){case 5:_=T;break;default:_=T}"function"===typeof k?k(_):k.current=_}}Rs=Rs.nextEffect}}catch(S){if(null===Rs)throw Error(a(330));yu(Rs,S),Rs=Rs.nextEffect}}while(null!==Rs);Rs=null,Di(),Es=o}else t.current=n;if(Us)Us=!1,qs=t,Bs=e;else for(Rs=i;null!==Rs;)e=Rs.nextEffect,Rs.nextEffect=null,Rs=e;if(0===(e=t.firstPendingTime)&&(Fs=null),1073741823===e?t===Ws?zs++:(zs=0,Ws=t):zs=0,"function"===typeof _u&&_u(n.stateNode,r),Zs(t),Ls)throw Ls=!1,t=js,js=null,t;return 0!==(8&Es)||Hi(),null}function pu(){for(;null!==Rs;){var t=Rs.effectTag;0!==(256&t)&&ns(Rs.alternate,Rs),0===(512&t)||Us||(Us=!0,zi(97,(function(){return vu(),null}))),Rs=Rs.nextEffect}}function vu(){if(90!==Bs){var t=97<Bs?97:Bs;return Bs=90,Vi(t,mu)}}function mu(){if(null===qs)return!1;var t=qs;if(qs=null,0!==(48&Es))throw Error(a(331));var e=Es;for(Es|=32,t=t.current.firstEffect;null!==t;){try{var n=t;if(0!==(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:rs(5,n),is(5,n)}}catch(r){if(null===t)throw Error(a(330));yu(t,r)}n=t.nextEffect,t.nextEffect=null,t=n}return Es=e,Hi(),!0}function gu(t,e,n){uo(t,e=ps(t,e=Qa(n,e),1073741823)),null!==(t=Xs(t,1073741823))&&Zs(t)}function yu(t,e){if(3===t.tag)gu(t,t,e);else for(var n=t.return;null!==n;){if(3===n.tag){gu(n,t,e);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Fs||!Fs.has(r))){uo(n,t=vs(n,t=Qa(e,t),1073741823)),null!==(n=Xs(n,1073741823))&&Zs(n);break}}n=n.return}}function bu(t,e,n){var r=t.pingCache;null!==r&&r.delete(e),ks===t&&Ss===n?Os===xs||Os===_s&&1073741823===Cs&&Ui()-Ds<500?nu(t,Ss):Ms=!0:Pu(t,n)&&(0!==(e=t.lastPingedTime)&&e<n||(t.lastPingedTime=n,Zs(t)))}function wu(t,e){var n=t.stateNode;null!==n&&n.delete(e),0===(e=0)&&(e=Gs(e=Ys(),t,null)),null!==(t=Xs(t,e))&&Zs(t)}ms=function(t,e,n){var r=e.expirationTime;if(null!==t){var i=e.pendingProps;if(t.memoizedProps!==i||hi.current)Na=!0;else{if(r<n){switch(Na=!1,e.tag){case 3:Ua(e),Aa();break;case 5:if(Do(e),4&e.mode&&1!==n&&i.hidden)return e.expirationTime=e.childExpirationTime=1,null;break;case 1:vi(e.type)&&bi(e);break;case 4:Po(e,e.stateNode.containerInfo);break;case 10:r=e.memoizedProps.value,i=e.type._context,li(Xi,i._currentValue),i._currentValue=r;break;case 13:if(null!==e.memoizedState)return 0!==(r=e.child.childExpirationTime)&&r>=n?Wa(t,e,n):(li(Lo,1&Lo.current),null!==(e=Ka(t,e,n))?e.sibling:null);li(Lo,1&Lo.current);break;case 19:if(r=e.childExpirationTime>=n,0!==(64&t.effectTag)){if(r)return Ga(t,e,n);e.effectTag|=64}if(null!==(i=e.memoizedState)&&(i.rendering=null,i.tail=null),li(Lo,Lo.current),!r)return null}return Ka(t,e,n)}Na=!1}}else Na=!1;switch(e.expirationTime=0,e.tag){case 2:if(r=e.type,null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),t=e.pendingProps,i=pi(e,fi.current),no(e,n),i=Ko(null,e,r,t,i,n),e.effectTag|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof){if(e.tag=1,e.memoizedState=null,e.updateQueue=null,vi(r)){var o=!0;bi(e)}else o=!1;e.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,oo(e);var s=r.getDerivedStateFromProps;"function"===typeof s&&vo(e,r,s,t),i.updater=mo,e.stateNode=i,i._reactInternalFiber=e,wo(e,r,t,n),e=Fa(null,e,r,!0,o,n)}else e.tag=0,Ia(null,e,i,n),e=e.child;return e;case 16:t:{if(i=e.elementType,null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),t=e.pendingProps,function(t){if(-1===t._status){t._status=0;var e=t._ctor;e=e(),t._result=e,e.then((function(e){0===t._status&&(e=e.default,t._status=1,t._result=e)}),(function(e){0===t._status&&(t._status=2,t._result=e)}))}}(i),1!==i._status)throw i._result;switch(i=i._result,e.type=i,o=e.tag=function(t){if("function"===typeof t)return Tu(t)?1:0;if(void 0!==t&&null!==t){if((t=t.$$typeof)===ut)return 11;if(t===ft)return 14}return 2}(i),t=Ki(i,t),o){case 0:e=La(null,e,i,t,n);break t;case 1:e=ja(null,e,i,t,n);break t;case 11:e=Pa(null,e,i,t,n);break t;case 14:e=Ma(null,e,i,Ki(i.type,t),r,n);break t}throw Error(a(306,i,""))}return e;case 0:return r=e.type,i=e.pendingProps,La(t,e,r,i=e.elementType===r?i:Ki(r,i),n);case 1:return r=e.type,i=e.pendingProps,ja(t,e,r,i=e.elementType===r?i:Ki(r,i),n);case 3:if(Ua(e),r=e.updateQueue,null===t||null===r)throw Error(a(282));if(r=e.pendingProps,i=null!==(i=e.memoizedState)?i.element:null,ao(t,e),co(e,r,null,n),(r=e.memoizedState.element)===i)Aa(),e=Ka(t,e,n);else{if((i=e.stateNode.hydrate)&&(_a=_n(e.stateNode.containerInfo.firstChild),wa=e,i=xa=!0),i)for(n=So(e,null,r,n),e.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Ia(t,e,r,n),Aa();e=e.child}return e;case 5:return Do(e),null===t&&Ta(e),r=e.type,i=e.pendingProps,o=null!==t?t.memoizedProps:null,s=i.children,yn(r,i)?s=null:null!==o&&yn(r,o)&&(e.effectTag|=16),Ra(t,e),4&e.mode&&1!==n&&i.hidden?(e.expirationTime=e.childExpirationTime=1,e=null):(Ia(t,e,s,n),e=e.child),e;case 6:return null===t&&Ta(e),null;case 13:return Wa(t,e,n);case 4:return Po(e,e.stateNode.containerInfo),r=e.pendingProps,null===t?e.child=To(e,null,r,n):Ia(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,Pa(t,e,r,i=e.elementType===r?i:Ki(r,i),n);case 7:return Ia(t,e,e.pendingProps,n),e.child;case 8:case 12:return Ia(t,e,e.pendingProps.children,n),e.child;case 10:t:{r=e.type._context,i=e.pendingProps,s=e.memoizedProps,o=i.value;var u=e.type._context;if(li(Xi,u._currentValue),u._currentValue=o,null!==s)if(u=s.value,0===(o=jr(u,o)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(u,o):1073741823))){if(s.children===i.children&&!hi.current){e=Ka(t,e,n);break t}}else for(null!==(u=e.child)&&(u.return=e);null!==u;){var l=u.dependencies;if(null!==l){s=u.child;for(var c=l.firstContext;null!==c;){if(c.context===r&&0!==(c.observedBits&o)){1===u.tag&&((c=so(n,null)).tag=2,uo(u,c)),u.expirationTime<n&&(u.expirationTime=n),null!==(c=u.alternate)&&c.expirationTime<n&&(c.expirationTime=n),eo(u.return,n),l.expirationTime<n&&(l.expirationTime=n);break}c=c.next}}else s=10===u.tag&&u.type===e.type?null:u.child;if(null!==s)s.return=u;else for(s=u;null!==s;){if(s===e){s=null;break}if(null!==(u=s.sibling)){u.return=s.return,s=u;break}s=s.return}u=s}Ia(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,r=(o=e.pendingProps).children,no(e,n),r=r(i=ro(i,o.unstable_observedBits)),e.effectTag|=1,Ia(t,e,r,n),e.child;case 14:return o=Ki(i=e.type,e.pendingProps),Ma(t,e,i,o=Ki(i.type,o),r,n);case 15:return Da(t,e,e.type,e.pendingProps,r,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Ki(r,i),null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),e.tag=1,vi(r)?(t=!0,bi(e)):t=!1,no(e,n),yo(e,r,i),wo(e,r,i,n),Fa(null,e,r,!0,t,n);case 19:return Ga(t,e,n)}throw Error(a(156,e.tag))};var _u=null,xu=null;function Eu(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function ku(t,e,n,r){return new Eu(t,e,n,r)}function Tu(t){return!(!(t=t.prototype)||!t.isReactComponent)}function Su(t,e){var n=t.alternate;return null===n?((n=ku(t.tag,e,t.key,t.mode)).elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=t.childExpirationTime,n.expirationTime=t.expirationTime,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=null===e?null:{expirationTime:e.expirationTime,firstContext:e.firstContext,responders:e.responders},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Ou(t,e,n,r,i,o){var s=2;if(r=t,"function"===typeof t)Tu(t)&&(s=1);else if("string"===typeof t)s=5;else t:switch(t){case nt:return Au(n.children,i,o,e);case st:s=8,i|=7;break;case rt:s=8,i|=1;break;case it:return(t=ku(12,n,e,8|i)).elementType=it,t.type=it,t.expirationTime=o,t;case lt:return(t=ku(13,n,e,i)).type=lt,t.elementType=lt,t.expirationTime=o,t;case ct:return(t=ku(19,n,e,i)).elementType=ct,t.expirationTime=o,t;default:if("object"===typeof t&&null!==t)switch(t.$$typeof){case ot:s=10;break t;case at:s=9;break t;case ut:s=11;break t;case ft:s=14;break t;case ht:s=16,r=null;break t;case dt:s=22;break t}throw Error(a(130,null==t?t:typeof t,""))}return(e=ku(s,n,e,i)).elementType=t,e.type=r,e.expirationTime=o,e}function Au(t,e,n,r){return(t=ku(7,t,r,e)).expirationTime=n,t}function Cu(t,e,n){return(t=ku(6,t,null,e)).expirationTime=n,t}function Nu(t,e,n){return(e=ku(4,null!==t.children?t.children:[],t.key,e)).expirationTime=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Iu(t,e,n){this.tag=e,this.current=null,this.containerInfo=t,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Pu(t,e){var n=t.firstSuspendedTime;return t=t.lastSuspendedTime,0!==n&&n>=e&&t<=e}function Mu(t,e){var n=t.firstSuspendedTime,r=t.lastSuspendedTime;n<e&&(t.firstSuspendedTime=e),(r>e||0===n)&&(t.lastSuspendedTime=e),e<=t.lastPingedTime&&(t.lastPingedTime=0),e<=t.lastExpiredTime&&(t.lastExpiredTime=0)}function Du(t,e){e>t.firstPendingTime&&(t.firstPendingTime=e);var n=t.firstSuspendedTime;0!==n&&(e>=n?t.firstSuspendedTime=t.lastSuspendedTime=t.nextKnownPendingLevel=0:e>=t.lastSuspendedTime&&(t.lastSuspendedTime=e+1),e>t.nextKnownPendingLevel&&(t.nextKnownPendingLevel=e))}function Ru(t,e){var n=t.lastExpiredTime;(0===n||n>e)&&(t.lastExpiredTime=e)}function Lu(t,e,n,r){var i=e.current,o=Ys(),s=ho.suspense;o=Gs(o,i,s);t:if(n){e:{if(Jt(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break e;case 1:if(vi(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break e}}u=u.return}while(null!==u);throw Error(a(171))}if(1===n.tag){var l=n.type;if(vi(l)){n=yi(n,l,u);break t}}n=u}else n=ci;return null===e.context?e.context=n:e.pendingContext=n,(e=so(o,s)).payload={element:t},null!==(r=void 0===r?null:r)&&(e.callback=r),uo(i,e),Ks(i,o),o}function ju(t){if(!(t=t.current).child)return null;switch(t.child.tag){case 5:default:return t.child.stateNode}}function Fu(t,e){null!==(t=t.memoizedState)&&null!==t.dehydrated&&t.retryTime<e&&(t.retryTime=e)}function Uu(t,e){Fu(t,e),(t=t.alternate)&&Fu(t,e)}function qu(t,e,n){var r=new Iu(t,e,n=null!=n&&!0===n.hydrate),i=ku(3,null,null,2===e?7:1===e?3:0);r.current=i,i.stateNode=r,oo(i),t[Sn]=r.current,n&&0!==e&&function(t,e){var n=Qt(e);Se.forEach((function(t){pe(t,e,n)}
vendor: 4,313 bytes, line 2
2)),Oe.forEach((function(t){pe(t,e,n)}))}(0,9===t.nodeType?t:t.ownerDocument),this._internalRoot=r}function Bu(t){return!(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType&&(8!==t.nodeType||" react-mount-point-unstable "!==t.nodeValue))}function Vu(t,e,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"===typeof i){var s=i;i=function(){var t=ju(a);s.call(t)}}Lu(e,a,t,i)}else{if(o=n._reactRootContainer=function(t,e){if(e||(e=!(!(e=t?9===t.nodeType?t.documentElement:t.firstChild:null)||1!==e.nodeType||!e.hasAttribute("data-reactroot"))),!e)for(var n;n=t.lastChild;)t.removeChild(n);return new qu(t,0,e?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"===typeof i){var u=i;i=function(){var t=ju(a);u.call(t)}}eu((function(){Lu(e,a,t,i)}))}return ju(a)}function zu(t,e,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:et,key:null==r?null:""+r,children:t,containerInfo:e,implementation:n}}function Wu(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Bu(e))throw Error(a(200));return zu(t,e,null,n)}qu.prototype.render=function(t){Lu(t,this._internalRoot,null,null)},qu.prototype.unmount=function(){var t=this._internalRoot,e=t.containerInfo;Lu(null,t,null,(function(){e[Sn]=null}))},ve=function(t){if(13===t.tag){var e=Gi(Ys(),150,100);Ks(t,e),Uu(t,e)}},me=function(t){13===t.tag&&(Ks(t,3),Uu(t,3))},ge=function(t){if(13===t.tag){var e=Ys();Ks(t,e=Gs(e,t,null)),Uu(t,e)}},A=function(t,e,n){switch(e){case"input":if(Tt(t,n),e=n.name,"radio"===n.type&&null!=e){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var i=Nn(r);if(!i)throw Error(a(90));_t(r),Tt(r,i)}}}break;case"textarea":Pt(t,n);break;case"select":null!=(e=n.value)&&Ct(t,!!n.multiple,e,!1)}},D=tu,R=function(t,e,n,r,i){var o=Es;Es|=4;try{return Vi(98,t.bind(null,e,n,r,i))}finally{0===(Es=o)&&Hi()}},L=function(){0===(49&Es)&&(function(){if(null!==Vs){var t=Vs;Vs=null,t.forEach((function(t,e){Ru(e,t),Zs(e)})),Hi()}}(),vu())},j=function(t,e){var n=Es;Es|=2;try{return t(e)}finally{0===(Es=n)&&Hi()}};var Hu={Events:[An,Cn,Nn,S,E,jn,function(t){ie(t,Ln)},P,M,Ze,se,vu,{current:!1}]};!function(t){var e=t.findFiberByHostInstance;(function(t){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var e=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(e.isDisabled||!e.supportsFiber)return!0;try{var n=e.inject(t);_u=function(t){try{e.onCommitFiberRoot(n,t,void 0,64===(64&t.current.effectTag))}catch(r){}},xu=function(t){try{e.onCommitFiberUnmount(n,t)}catch(r){}}}catch(r){}})(i({},t,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:$.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return null===(t=ne(t))?null:t.stateNode},findFiberByHostInstance:function(t){return e?e(t):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:On,bundleType:0,version:"16.13.1",rendererPackageName:"react-dom"}),e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Hu,e.createPortal=Wu,e.findDOMNode=function(t){if(null==t)return null;if(1===t.nodeType)return t;var e=t._reactInternalFiber;if(void 0===e){if("function"===typeof t.render)throw Error(a(188));throw Error(a(268,Object.keys(t)))}return t=null===(t=ne(e))?null:t.stateNode},e.flushSync=function(t,e){if(0!==(48&Es))throw Error(a(187));var n=Es;Es|=1;try{return Vi(99,t.bind(null,e))}finally{Es=n,Hi()}},e.hydrate=function(t,e,n){if(!Bu(e))throw Error(a(200));return Vu(null,t,e,!0,n)},e.render=function(t,e,n){if(!Bu(e))throw Error(a(200));return Vu(null,t,e,!1,n)},e.unmountComponentAtNode=function(t){if(!Bu(t))throw Error(a(40));return!!t._reactRootContainer&&(eu((function(){Vu(null,null,t,!1,(function(){t._reactRootContainer=null,t[Sn]=null}))})),!0)},e.unstable_batchedUpdates=tu,e.unstable_createPortal=function(t,e){return Wu(t,e,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},e.unstable_renderSubtreeIntoContainer=function(t,e,n,r){if(!Bu(n))throw Error(a(200));if(null==t||void 0===t._reactInternalFiber)throw Error(a(38));return Vu(t,e,n,!1,r)},e.version="16.13.1"},function(t,e,n){"use strict";
vendor: 4,758 bytes, line 2
2t.exports=n(127)},function(t,e,n){"use strict";var r,i,o,a,s;if("undefined"===typeof window||"function"!==typeof MessageChannel){var u=null,l=null,c=function t(){if(null!==u)try{var n=e.unstable_now();u(!0,n),u=null}catch(r){throw setTimeout(t,0),r}},f=Date.now();e.unstable_now=function(){return Date.now()-f},r=function(t){null!==u?setTimeout(r,0,t):(u=t,setTimeout(c,0))},i=function(t,e){l=setTimeout(t,e)},o=function(){clearTimeout(l)},a=function(){return!1},s=e.unstable_forceFrameRate=function(){}}else{var h=window.performance,d=window.Date,p=window.setTimeout,v=window.clearTimeout;if("undefined"!==typeof console){var m=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!==typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"===typeof h&&"function"===typeof h.now)e.unstable_now=function(){return h.now()};else{var g=d.now();e.unstable_now=function(){return d.now()-g}}var y=!1,b=null,w=-1,_=5,x=0;a=function(){return e.unstable_now()>=x},s=function(){},e.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):_=0<t?Math.floor(1e3/t):5};var E=new MessageChannel,k=E.port2;E.port1.onmessage=function(){if(null!==b){var t=e.unstable_now();x=t+_;try{b(!0,t)?k.postMessage(null):(y=!1,b=null)}catch(n){throw k.postMessage(null),n}}else y=!1},r=function(t){b=t,y||(y=!0,k.postMessage(null))},i=function(t,n){w=p((function(){t(e.unstable_now())}),n)},o=function(){v(w),w=-1}}function T(t,e){var n=t.length;t.push(e);t:for(;;){var r=n-1>>>1,i=t[r];if(!(void 0!==i&&0<A(i,e)))break t;t[r]=e,t[n]=i,n=r}}function S(t){return void 0===(t=t[0])?null:t}function O(t){var e=t[0];if(void 0!==e){var n=t.pop();if(n!==e){t[0]=n;t:for(var r=0,i=t.length;r<i;){var o=2*(r+1)-1,a=t[o],s=o+1,u=t[s];if(void 0!==a&&0>A(a,n))void 0!==u&&0>A(u,a)?(t[r]=u,t[s]=n,r=s):(t[r]=a,t[o]=n,r=o);else{if(!(void 0!==u&&0>A(u,n)))break t;t[r]=u,t[s]=n,r=s}}}return e}return null}function A(t,e){var n=t.sortIndex-e.sortIndex;return 0!==n?n:t.id-e.id}var C=[],N=[],I=1,P=null,M=3,D=!1,R=!1,L=!1;function j(t){for(var e=S(N);null!==e;){if(null===e.callback)O(N);else{if(!(e.startTime<=t))break;O(N),e.sortIndex=e.expirationTime,T(C,e)}e=S(N)}}function F(t){if(L=!1,j(t),!R)if(null!==S(C))R=!0,r(U);else{var e=S(N);null!==e&&i(F,e.startTime-t)}}function U(t,n){R=!1,L&&(L=!1,o()),D=!0;var r=M;try{for(j(n),P=S(C);null!==P&&(!(P.expirationTime>n)||t&&!a());){var s=P.callback;if(null!==s){P.callback=null,M=P.priorityLevel;var u=s(P.expirationTime<=n);n=e.unstable_now(),"function"===typeof u?P.callback=u:P===S(C)&&O(C),j(n)}else O(C);P=S(C)}if(null!==P)var l=!0;else{var c=S(N);null!==c&&i(F,c.startTime-n),l=!1}return l}finally{P=null,M=r,D=!1}}function q(t){switch(t){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var B=s;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(t){t.callback=null},e.unstable_continueExecution=function(){R||D||(R=!0,r(U))},e.unstable_getCurrentPriorityLevel=function(){return M},e.unstable_getFirstCallbackNode=function(){return S(C)},e.unstable_next=function(t){switch(M){case 1:case 2:case 3:var e=3;break;default:e=M}var n=M;M=e;try{return t()}finally{M=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=B,e.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=M;M=t;try{return e()}finally{M=n}},e.unstable_scheduleCallback=function(t,n,a){var s=e.unstable_now();if("object"===typeof a&&null!==a){var u=a.delay;u="number"===typeof u&&0<u?s+u:s,a="number"===typeof a.timeout?a.timeout:q(t)}else a=q(t),u=s;return t={id:I++,callback:n,priorityLevel:t,startTime:u,expirationTime:a=u+a,sortIndex:-1},u>s?(t.sortIndex=u,T(N,t),null===S(C)&&t===S(N)&&(L?o():L=!0,i(F,u-s))):(t.sortIndex=a,T(C,t),R||D||(R=!0,r(U))),t},e.unstable_shouldYield=function(){var t=e.unstable_now();j(t);var n=S(C);return n!==P&&null!==P&&null!==n&&null!==n.callback&&n.startTime<=t&&n.expirationTime<P.expirationTime||a()},e.unstable_wrapCallback=function(t){var e=M;return function(){var n=M;M=e;try{return t.apply(this,arguments)}finally{M=n}}}},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){"use strict";n(132)},function(t,e,n){"use strict";
2(function(t){Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(6),o=(r=n(28))&&"object"==typeof r&&"default"in r?r.default:r,a=n(71),s=n(54),u=n(133),l=n(49),c=new a.Logger("@firebase/firestore");function f(){return c.logLevel}function h(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(c.logLevel<=a.LogLevel.DEBUG){var r=e.map(v);c.debug.apply(c,i.__spreadArrays(["Firestore (7.18.0): "+t],r))}}function d(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(c.logLevel<=a.LogLevel.ERROR){var r=e.map(v);c.error.apply(c,i.__spreadArrays(["Firestore (7.18.0): "+t],r))}}function p(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(c.logLevel<=a.LogLevel.WARN){var r=e.map(v);c.warn.apply(c,i.__spreadArrays(["Firestore (7.18.0): "+t],r))}}function v(t){if("string"==typeof t)return t;try{return e=t,JSON.stringify(e)}catch(e){return t}var e}function m(t){void 0===t&&(t="Unexpected state");var e="FIRESTORE (7.18.0) INTERNAL ASSERTION FAILED: "+t;throw d(e),new Error(e)}function g(t,e){t||m()}function y(t,e){return t}function b(t){var e="undefined"!=typeof self&&(self.crypto||self.msCrypto),n=new Uint8Array(t);if(e)e.getRandomValues(n);else for(var r=0;r<t;r++)n[r]=Math.floor(256*Math.random());return n}var w=function(){function t(){}return t.t=function(){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e=Math.floor(256/t.length)*t.length,n="";n.length<20;)for(var r=b(40),i=0;i<r.length;++i)n.length<20&&r[i]<e&&(n+=t.charAt(r[i]%t.length));return n},t}();function _(t,e){return t<e?-1:t>e?1:0}function x(t,e,n){return t.length===e.length&&t.every((function(t,r){return n(t,e[r])}))}function E(t){return t+"\0"}var k=function(t,e,n,r,i){this.s=t,this.persistenceKey=e,this.host=n,this.ssl=r,this.forceLongPolling=i},T=function(){function t(t,e){this.projectId=t,this.database=e||"(default)"}return Object.defineProperty(t.prototype,"i",{get:function(){return"(default)"===this.database},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(e){return e instanceof t&&e.projectId===this.projectId&&e.database===this.database},t.prototype.o=function(t){return _(this.projectId,t.projectId)||_(this.database,t.database)},t}();function S(t){var e=0;for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e++;return e}function O(t,e){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(n,t[n])}function A(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}var C=function(){function t(t,e){this.h=t,this.u=e,this.l={}}return t.prototype.get=function(t){var e=this.h(t),n=this.l[e];if(void 0!==n)for(var r=0,i=n;r<i.length;r++){var o=i[r],a=o[0],s=o[1];if(this.u(a,t))return s}},t.prototype.has=function(t){return void 0!==this.get(t)},t.prototype.set=function(t,e){var n=this.h(t),r=this.l[n];if(void 0!==r){for(var i=0;i<r.length;i++)if(this.u(r[i][0],t))return void(r[i]=[t,e]);r.push([t,e])}else this.l[n]=[[t,e]]},t.prototype.delete=function(t){var e=this.h(t),n=this.l[e];if(void 0===n)return!1;for(var r=0;r<n.length;r++)if(this.u(n[r][0],t))return 1===n.length?delete this.l[e]:n.splice(r,1),!0;return!1},t.prototype.forEach=function(t){O(this.l,(function(e,n){for(var r=0,i=n;r<i.length;r++){var o=i[r],a=o[0],s=o[1];t(a,s)}}))},t.prototype._=function(){return A(this.l)},t}(),N={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"},I=function(t){function e(e,n){var r=this;return(r=t.call(this,n)||this).code=e,r.message=n,r.name="FirebaseError",r.toString=function(){return r.name+": [code="+r.code+"]: "+r.message},r}return i.__extends(e,t),e}(Error),P=function(){function t(t,e){if(this.seconds=t,this.nanoseconds=e,e<0)throw new I(N.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(e>=1e9)throw new I(N.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(t<-62135596800)throw new I(N.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t);if(t>=253402300800)throw new I(N.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t)}return t.now=function(){return t.fromMillis(Date.now())},t.fromDate=function(e){return t.fromMillis(e.getTime())},t.fromMillis=function(e){var n=Math.floor(e/1e3);return new t(n,1e6*(e-1e3*n))},t.prototype.toDate=function(){return new Date(this.toMillis())},t.prototype.toMillis=function(){return 1e3*this.seconds+this.nanoseconds/1e6},t.prototype.T=function(t){return this.seconds===t.seconds?_(this.nanoseconds,t.nanoseconds):_(this.seconds,t.seconds)},t.prototype.isEqual=function(t){return t.seconds===this.seconds&&t.nanoseconds===this.nanoseconds},t.prototype.toString=function(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"},t.prototype.valueOf=function(){var t=this.seconds- -62135596800;return String(t).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}
2,t}(),M=function(){function t(t){this.timestamp=t}return t.I=function(e){return new t(e)},t.min=function(){return new t(new P(0,0))},t.prototype.o=function(t){return this.timestamp.T(t.timestamp)},t.prototype.isEqual=function(t){return this.timestamp.isEqual(t.timestamp)},t.prototype.m=function(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3},t.prototype.toString=function(){return"SnapshotVersion("+this.timestamp.toString()+")"},t.prototype.A=function(){return this.timestamp},t}(),D=function(){function t(t,e,n){void 0===e?e=0:e>t.length&&m(),void 0===n?n=t.length-e:n>t.length-e&&m(),this.segments=t,this.offset=e,this.R=n}return Object.defineProperty(t.prototype,"length",{get:function(){return this.R},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(e){return 0===t.P(this,e)},t.prototype.child=function(e){var n=this.segments.slice(this.offset,this.limit());return e instanceof t?e.forEach((function(t){n.push(t)})):n.push(e),this.V(n)},t.prototype.limit=function(){return this.offset+this.length},t.prototype.g=function(t){return t=void 0===t?1:t,this.V(this.segments,this.offset+t,this.length-t)},t.prototype.p=function(){return this.V(this.segments,this.offset,this.length-1)},t.prototype.v=function(){return this.segments[this.offset]},t.prototype.S=function(){return this.get(this.length-1)},t.prototype.get=function(t){return this.segments[this.offset+t]},t.prototype._=function(){return 0===this.length},t.prototype.D=function(t){if(t.length<this.length)return!1;for(var e=0;e<this.length;e++)if(this.get(e)!==t.get(e))return!1;return!0},t.prototype.C=function(t){if(this.length+1!==t.length)return!1;for(var e=0;e<this.length;e++)if(this.get(e)!==t.get(e))return!1;return!0},t.prototype.forEach=function(t){for(var e=this.offset,n=this.limit();e<n;e++)t(this.segments[e])},t.prototype.N=function(){return this.segments.slice(this.offset,this.limit())},t.P=function(t,e){for(var n=Math.min(t.length,e.length),r=0;r<n;r++){var i=t.get(r),o=e.get(r);if(i<o)return-1;if(i>o)return 1}return t.length<e.length?-1:t.length>e.length?1:0},t}(),R=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.V=function(t,n,r){return new e(t,n,r)},e.prototype.F=function(){return this.N().join("/")},e.prototype.toString=function(){return this.F()},e.k=function(t){if(t.indexOf("//")>=0)throw new I(N.INVALID_ARGUMENT,"Invalid path ("+t+"). Paths must not contain // in them.");return new e(t.split("/").filter((function(t){return t.length>0})))},e.$=function(){return new e([])},e}(D),L=/^[_a-zA-Z][_a-zA-Z0-9]*$/,j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.V=function(t,n,r){return new e(t,n,r)},e.M=function(t){return L.test(t)},e.prototype.F=function(){return this.N().map((function(t){return t=t.replace("\\","\\\\").replace("`","\\`"),e.M(t)||(t="`"+t+"`"),t})).join(".")},e.prototype.toString=function(){return this.F()},e.prototype.O=function(){return 1===this.length&&"__name__"===this.get(0)},e.L=function(){return new e(["__name__"])},e.q=function(t){for(var n=[],r="",i=0,o=function(){if(0===r.length)throw new I(N.INVALID_ARGUMENT,"Invalid field path ("+t+"). Paths must not be empty, begin with '.', end with '.', or contain '..'");n.push(r),r=""},a=!1;i<t.length;){var s=t[i];if("\\"===s){if(i+1===t.length)throw new I(N.INVALID_ARGUMENT,"Path has trailing escape character: "+t);var u=t[i+1];if("\\"!==u&&"."!==u&&"`"!==u)throw new I(N.INVALID_ARGUMENT,"Path has invalid escape sequence: "+t);r+=u,i+=2}else"`"===s?(a=!a,i++):"."!==s||a?(r+=s,i++):(o(),i++)}if(o(),a)throw new I(N.INVALID_ARGUMENT,"Unterminated ` in path: "+t);return new e(n)},e.$=function(){return new e([])},e}(D),F=function(){function t(t){this.path=t}return t.B=function(e){return new t(R.k(e).g(5))},t.prototype.U=function(t){return this.path.length>=2&&this.path.get(this.path.length-2)===t},t.prototype.isEqual=function(t){return null!==t&&0===R.P(this.path,t.path)},t.prototype.toString=function(){return this.path.toString()},t.P=function(t,e){return R.P(t.path,e.path)},t.W=function(t){return t.length%2==0},t.j=function(e){return new t(new R(e.slice()))},t}();function U(t){return null==t}function q(t){return-0===t&&1/t==-1/0}function B(t){return"number"==typeof t&&Number.isInteger(t)&&!q(t)&&t<=Number.MAX_SAFE_INTEGER&&t>=Number.MIN_SAFE_INTEGER}var V=function(t,e,n,r,i,o,a){void 0===e&&(e=null),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i=null),void 0===o&&(o=null),void 0===a&&(a=null),this.path=t,this.collectionGroup=e,this.orderBy=n,this.filters=r,this.limit=i,this.startAt=o,this.endAt=a,this.K=null};function z(t,e,n,r,i,o,a){return void 0===e&&(e=null),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i=null),void 0===o&&(o=null),void 0===a&&(a=null),new V(t,e,n,r,i,o,a)}function W(t){var e=y(t);if(null===e.K){var n=e.path.F();null!==e.collectionGroup&&(n+="|cg:"+e.collectionGroup),n+="|f:",n+=e.filters.map((function(t){return function(t){return t.field.F()+t.op.toString()+Rt(t.value)}(t)})).join(","),n+="|ob:",n+=e.orderBy.map((function(t){return(e=t).field.F()+e.dir;var e})).join(","),U(e.limit)||(n+="|l:",n+=e.limit),e.startAt&&(n+="|lb:",n+=Pn(e.startAt)),e.endAt&&(n+="|ub:",n+=Pn(e.endAt)),e.K=n}return e.K}function H(t,e){if(t.limit!==e.limit)return!1;if(t.orderBy.length!==e.orderBy.length)return!1;for(var n=0;n<t.orderBy.length;n++)if(!jn(t.orderBy[n],e.orderBy[n]))return!1;if(t.filters.length!==e.filters.length)return!1;for(var r=0;r<t.filters.length;r++)if(i=t.filters[r],o=e.filters[r],i.op!==o.op||!i.field.isEqual(o.field)||!It(i.value,o.value))return!1;var i,o;return t.collectionGroup===e.collectionGroup&&!!t.path.isEqual(e.path)&&!!Dn(t.startAt,e.startAt)&&Dn(t.endAt,e.endAt)}function Y(t){return F.W(t.path)&&null===t.collectionGroup&&0===t.filters.length}var G=function(){function t(t){this.G=t}return t.fromBase64String=function(e){return new t(atob(e))},t.fromUint8Array=function(e){return new t(function(t){for(var e="",n=0;n<t.length;++n)e+=String.fromCharCode(t[n]);return e}(e))},t.prototype.toBase64=function(){return t=this.G,btoa(t);var t},t.prototype.toUint8Array=function(){return function(t){for(var e=new Uint8Array(t.length),n=0;n<t.length;n++)e[n]=t.charCodeAt(n);return e}(this.G)},t.prototype.H=function(){return 2*this.G.length},t.prototype.o=function(t){return _(this.G,t.G)},t.prototype.isEqual=function(t){return this.G===t.G},t}();G.Y=new G("");var K,X,$=function(){function t(t,e,n,r,i,o,a){void 0===i&&(i=M.min()),void 0===o&&(o=M.min()),void 0===a&&(a=G.Y),this.target=t,this.targetId=e,this.J=n,this.sequenceNumber=r,this.X=i,this.lastLimboFreeSnapshotVersion=o,this.resumeToken=a}return t.prototype.Z=function(e){return new t(this.target,this.targetId,this.J,e,this.X,this.lastLimboFreeSnapshotVersion,this.resumeToken)},t.prototype.tt=function(e,n){return new t(this.target,this.targetId,this.J,this.sequenceNumber,n,this.lastLimboFreeSnapshotVersion,e)},t.prototype.et=function(e){return new t(this.target,this.targetId,this.J,this.sequenceNumber,this.X,e,this.resumeToken)},t}(),Z=function(t){this.count=t};function Q(t){switch(t){case N.OK:return m();case N.CANCELLED:case N.UNKNOWN:case N.DEADLINE_EXCEEDED:case N.RESOURCE_EXHAUSTED:case N.INTERNAL:case N.UNAVAILABLE:case N.UNAUTHENTICATED:return!1;case N.INVALID_ARGUMENT:case N.NOT_FOUND:case N.ALREADY_EXISTS:case N.PERMISSION_DENIED:case N.FAILED_PRECONDITION:case N.ABORTED:case N.OUT_OF_RANGE:case N.UNIMPLEMENT
2ED:case N.DATA_LOSS:return!0;default:return m()}}function J(t){if(void 0===t)return d("GRPC error has no .code"),N.UNKNOWN;switch(t){case K.OK:return N.OK;case K.CANCELLED:return N.CANCELLED;case K.UNKNOWN:return N.UNKNOWN;case K.DEADLINE_EXCEEDED:return N.DEADLINE_EXCEEDED;case K.RESOURCE_EXHAUSTED:return N.RESOURCE_EXHAUSTED;case K.INTERNAL:return N.INTERNAL;case K.UNAVAILABLE:return N.UNAVAILABLE;case K.UNAUTHENTICATED:return N.UNAUTHENTICATED;case K.INVALID_ARGUMENT:return N.INVALID_ARGUMENT;case K.NOT_FOUND:return N.NOT_FOUND;case K.ALREADY_EXISTS:return N.ALREADY_EXISTS;case K.PERMISSION_DENIED:return N.PERMISSION_DENIED;case K.FAILED_PRECONDITION:return N.FAILED_PRECONDITION;case K.ABORTED:return N.ABORTED;case K.OUT_OF_RANGE:return N.OUT_OF_RANGE;case K.UNIMPLEMENTED:return N.UNIMPLEMENTED;case K.DATA_LOSS:return N.DATA_LOSS;default:return m()}}(X=K||(K={}))[X.OK=0]="OK",X[X.CANCELLED=1]="CANCELLED",X[X.UNKNOWN=2]="UNKNOWN",X[X.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",X[X.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",X[X.NOT_FOUND=5]="NOT_FOUND",X[X.ALREADY_EXISTS=6]="ALREADY_EXISTS",X[X.PERMISSION_DENIED=7]="PERMISSION_DENIED",X[X.UNAUTHENTICATED=16]="UNAUTHENTICATED",X[X.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",X[X.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",X[X.ABORTED=10]="ABORTED",X[X.OUT_OF_RANGE=11]="OUT_OF_RANGE",X[X.UNIMPLEMENTED=12]="UNIMPLEMENTED",X[X.INTERNAL=13]="INTERNAL",X[X.UNAVAILABLE=14]="UNAVAILABLE",X[X.DATA_LOSS=15]="DATA_LOSS";var tt=function(){function t(t,e){this.P=t,this.root=e||nt.EMPTY}return t.prototype.nt=function(e,n){return new t(this.P,this.root.nt(e,n,this.P).copy(null,null,nt.st,null,null))},t.prototype.remove=function(e){return new t(this.P,this.root.remove(e,this.P).copy(null,null,nt.st,null,null))},t.prototype.get=function(t){for(var e=this.root;!e._();){var n=this.P(t,e.key);if(0===n)return e.value;n<0?e=e.left:n>0&&(e=e.right)}return null},t.prototype.indexOf=function(t){for(var e=0,n=this.root;!n._();){var r=this.P(t,n.key);if(0===r)return e+n.left.size;r<0?n=n.left:(e+=n.left.size+1,n=n.right)}return-1},t.prototype._=function(){return this.root._()},Object.defineProperty(t.prototype,"size",{get:function(){return this.root.size},enumerable:!1,configurable:!0}),t.prototype.it=function(){return this.root.it()},t.prototype.rt=function(){return this.root.rt()},t.prototype.ot=function(t){return this.root.ot(t)},t.prototype.forEach=function(t){this.ot((function(e,n){return t(e,n),!1}))},t.prototype.toString=function(){var t=[];return this.ot((function(e,n){return t.push(e+":"+n),!1})),"{"+t.join(", ")+"}"},t.prototype.ht=function(t){return this.root.ht(t)},t.prototype.at=function(){return new et(this.root,null,this.P,!1)},t.prototype.ut=function(t){return new et(this.root,t,this.P,!1)},t.prototype.ct=function(){return new et(this.root,null,this.P,!0)},t.prototype.lt=function(t){return new et(this.root,t,this.P,!0)},t}(),et=function(){function t(t,e,n,r){this._t=r,this.ft=[];for(var i=1;!t._();)if(i=e?n(t.key,e):1,r&&(i*=-1),i<0)t=this._t?t.left:t.right;else{if(0===i){this.ft.push(t);break}this.ft.push(t),t=this._t?t.right:t.left}}return t.prototype.dt=function(){var t=this.ft.pop(),e={key:t.key,value:t.value};if(this._t)for(t=t.left;!t._();)this.ft.push(t),t=t.right;else for(t=t.right;!t._();)this.ft.push(t),t=t.left;return e},t.prototype.wt=function(){return this.ft.length>0},t.prototype.Tt=function(){if(0===this.ft.length)return null;var t=this.ft[this.ft.length-1];return{key:t.key,value:t.value}},t}(),nt=function(){function t(e,n,r,i,o){this.key=e,this.value=n,this.color=null!=r?r:t.RED,this.left=null!=i?i:t.EMPTY,this.right=null!=o?o:t.EMPTY,this.size=this.left.size+1+this.right.size}return t.prototype.copy=function(e,n,r,i,o){return new t(null!=e?e:this.key,null!=n?n:this.value,null!=r?r:this.color,null!=i?i:this.left,null!=o?o:this.right)},t.prototype._=function(){return!1},t.prototype.ot=function(t){return this.left.ot(t)||t(this.key,this.value)||this.right.ot(t)},t.prototype.ht=function(t){return this.right.ht(t)||t(this.key,this.value)||this.left.ht(t)},t.prototype.min=function(){return this.left._()?this:this.left.min()},t.prototype.it=function(){return this.min().key},t.prototype.rt=function(){return this.right._()?this.key:this.right.rt()},t.prototype.nt=function(t,e,n){var r=this,i=n(t,r.key);return(r=i<0?r.copy(null,null,null,r.left.nt(t,e,n),null):0===i?r.copy(null,e,null,null,null):r.copy(null,null,null,null,r.right.nt(t,e,n))).Et()},t.prototype.It=function(){if(this.left._())return t.EMPTY;var e=this;return e.left.At()||e.left.left.At()||(e=e.Rt()),(e=e.copy(null,null,null,e.left.It(),null)).Et()},t.prototype.remove=function(e,n){var r,i=this;if(n(e,i.key)<0)i.left._()||i.left.At()||i.left.left.At()||(i=i.Rt()),i=i.copy(null,null,null,i.left.remove(e,n),null);else{if(i.left.At()&&(i=i.Pt()),i.right._()||i.right.At()||i.right.left.At()||(i=i.Vt()),0===n(e,i.key)){if(i.right._())return t.EMPTY;r=i.right.min(),i=i.copy(r.key,r.value,null,null,i.right.It())}i=i.copy(null,null,null,null,i.right.remove(e,n))}return i.Et()},t.prototype.At=function(){return this.color},t.prototype.Et=function(){var t=this;return t.right.At()&&!t.left.At()&&(t=t.gt()),t.left.At()&&t.left.left.At()&&(t=t.Pt()),t.left.At()&&t.right.At()&&(t=t.yt()),t},t.prototype.Rt=function(){var t=this.yt();return t.right.left.At()&&(t=(t=(t=t.copy(null,null,null,null,t.right.Pt())).gt()).yt()),t},t.prototype.Vt=function(){var t=this.yt();return t.left.left.At()&&(t=(t=t.Pt()).yt()),t},t.prototype.gt=function(){var e=this.copy(null,null,t.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)},t.prototype.Pt=function(){var e=this.copy(null,null,t.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)},t.prototype.yt=function(){var t=this.left.copy(null,null,!this.left.color,null,null),e=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,t,e)},t.prototype.pt=function(){var t=this.bt();return Math.pow(2,t)<=this.size+1},t.prototype.bt=function(){if(this.At()&&this.left.At())throw m();if(this.right.At())throw m();var t=this.left.bt();if(t!==this.right.bt())throw m();return t+(this.At()?0:1)},t}();
2nt.EMPTY=null,nt.RED=!0,nt.st=!1,nt.EMPTY=new(function(){function t(){this.size=0}return Object.defineProperty(t.prototype,"key",{get:function(){throw m()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){throw m()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){throw m()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){throw m()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){throw m()},enumerable:!1,configurable:!0}),t.prototype.copy=function(t,e,n,r,i){return this},t.prototype.nt=function(t,e,n){return new nt(t,e)},t.prototype.remove=function(t,e){return this},t.prototype._=function(){return!0},t.prototype.ot=function(t){return!1},t.prototype.ht=function(t){return!1},t.prototype.it=function(){return null},t.prototype.rt=function(){return null},t.prototype.At=function(){return!1},t.prototype.pt=function(){return!0},t.prototype.bt=function(){return 0},t}());var rt=function(){function t(t){this.P=t,this.data=new tt(this.P)}return t.prototype.has=function(t){return null!==this.data.get(t)},t.prototype.first=function(){return this.data.it()},t.prototype.last=function(){return this.data.rt()},Object.defineProperty(t.prototype,"size",{get:function(){return this.data.size},enumerable:!1,configurable:!0}),t.prototype.indexOf=function(t){return this.data.indexOf(t)},t.prototype.forEach=function(t){this.data.ot((function(e,n){return t(e),!1}))},t.prototype.vt=function(t,e){for(var n=this.data.ut(t[0]);n.wt();){var r=n.dt();if(this.P(r.key,t[1])>=0)return;e(r.key)}},t.prototype.St=function(t,e){var n;for(n=void 0!==e?this.data.ut(e):this.data.at();n.wt();)if(!t(n.dt().key))return},t.prototype.Dt=function(t){var e=this.data.ut(t);return e.wt()?e.dt().key:null},t.prototype.at=function(){return new it(this.data.at())},t.prototype.ut=function(t){return new it(this.data.ut(t))},t.prototype.add=function(t){return this.copy(this.data.remove(t).nt(t,!0))},t.prototype.delete=function(t){return this.has(t)?this.copy(this.data.remove(t)):this},t.prototype._=function(){return this.data._()},t.prototype.Ct=function(t){var e=this;return e.size<t.size&&(e=t,t=this),t.forEach((function(t){e=e.add(t)})),e},t.prototype.isEqual=function(e){if(!(e instanceof t))return!1;if(this.size!==e.size)return!1;for(var n=this.data.at(),r=e.data.at();n.wt();){var i=n.dt().key,o=r.dt().key;if(0!==this.P(i,o))return!1}return!0},t.prototype.N=function(){var t=[];return this.forEach((function(e){t.push(e)})),t},t.prototype.toString=function(){var t=[];return this.forEach((function(e){return t.push(e)})),"SortedSet("+t.toString()+")"},t.prototype.copy=function(e){var n=new t(this.P);return n.data=e,n},t}(),it=function(){function t(t){this.Nt=t}return t.prototype.dt=function(){return this.Nt.dt().key},t.prototype.wt=function(){return this.Nt.wt()},t}(),ot=new tt(F.P);function at(){return ot}function st(){return at()}var ut=new tt(F.P);function lt(){return ut}var ct=new tt(F.P),ft=new rt(F.P);function ht(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=ft,r=0,i=t;r<i.length;r++){var o=i[r];n=n.add(o)}return n}var dt=new rt(_);function pt(){return dt}var vt=function(){function t(t){this.P=t?function(e,n){return t(e,n)||F.P(e.key,n.key)}:function(t,e){return F.P(t.key,e.key)},this.Ft=lt(),this.kt=new tt(this.P)}return t.xt=function(e){return new t(e.P)},t.prototype.has=function(t){return null!=this.Ft.get(t)},t.prototype.get=function(t){return this.Ft.get(t)},t.prototype.first=function(){return this.kt.it()},t.prototype.last=function(){return this.kt.rt()},t.prototype._=function(){return this.kt._()},t.prototype.indexOf=function(t){var e=this.Ft.get(t);return e?this.kt.indexOf(e):-1},Object.defineProperty(t.prototype,"size",{get:function(){return this.kt.size},enumerable:!1,configurable:!0}),t.prototype.forEach=function(t){this.kt.ot((function(e,n){return t(e),!1}))},t.prototype.add=function(t){var e=this.delete(t.key);return e.copy(e.Ft.nt(t.key,t),e.kt.nt(t,null))},t.prototype.delete=function(t){var e=this.get(t);return e?this.copy(this.Ft.remove(t),this.kt.remove(e)):this},t.prototype.isEqual=function(e){if(!(e instanceof t))return!1;if(this.size!==e.size)return!1;for(var n=this.kt.at(),r=e.kt.at();n.wt();){var i=n.dt().key,o=r.dt().key;if(!i.isEqual(o))return!1}return!0},t.prototype.toString=function(){var t=[];return this.forEach((function(e){t.push(e.toString())})),0===t.length?"DocumentSet ()":"DocumentSet (\n  "+t.join("  \n")+"\n)"},t.prototype.copy=function(e,n){var r=new t;return r.P=this.P,r.Ft=e,r.kt=n,r},t}
2(),mt=function(){function t(){this.$t=new tt(F.P)}return t.prototype.track=function(t){var e=t.doc.key,n=this.$t.get(e);n?0!==t.type&&3===n.type?this.$t=this.$t.nt(e,t):3===t.type&&1!==n.type?this.$t=this.$t.nt(e,{type:n.type,doc:t.doc}):2===t.type&&2===n.type?this.$t=this.$t.nt(e,{type:2,doc:t.doc}):2===t.type&&0===n.type?this.$t=this.$t.nt(e,{type:0,doc:t.doc}):1===t.type&&0===n.type?this.$t=this.$t.remove(e):1===t.type&&2===n.type?this.$t=this.$t.nt(e,{type:1,doc:n.doc}):0===t.type&&1===n.type?this.$t=this.$t.nt(e,{type:2,doc:t.doc}):m():this.$t=this.$t.nt(e,t)},t.prototype.Mt=function(){var t=[];return this.$t.ot((function(e,n){t.push(n)})),t},t}(),gt=function(){function t(t,e,n,r,i,o,a,s){this.query=t,this.docs=e,this.Ot=n,this.docChanges=r,this.Lt=i,this.fromCache=o,this.qt=a,this.Bt=s}return t.Ut=function(e,n,r,i){var o=[];return n.forEach((function(t){o.push({type:0,doc:t})})),new t(e,n,vt.xt(n),o,r,i,!0,!1)},Object.defineProperty(t.prototype,"hasPendingWrites",{get:function(){return!this.Lt._()},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){if(!(this.fromCache===t.fromCache&&this.qt===t.qt&&this.Lt.isEqual(t.Lt)&&gn(this.query,t.query)&&this.docs.isEqual(t.docs)&&this.Ot.isEqual(t.Ot)))return!1;var e=this.docChanges,n=t.docChanges;if(e.length!==n.length)return!1;for(var r=0;r<e.length;r++)if(e[r].type!==n[r].type||!e[r].doc.isEqual(n[r].doc))return!1;return!0},t}(),yt=function(){function t(t,e,n,r,i){this.X=t,this.Qt=e,this.Wt=n,this.jt=r,this.Kt=i}return t.Gt=function(e,n){var r=new Map;return r.set(e,bt.zt(e,n)),new t(M.min(),r,pt(),at(),ht())},t}(),bt=function(){function t(t,e,n,r,i){this.resumeToken=t,this.Ht=e,this.Yt=n,this.Jt=r,this.Xt=i}return t.zt=function(e,n){return new t(G.Y,n,ht(),ht(),ht())},t}(),wt=function(t,e,n,r){this.Zt=t,this.removedTargetIds=e,this.key=n,this.te=r},_t=function(t,e){this.targetId=t,this.ee=e},xt=function(t,e,n,r){void 0===n&&(n=G.Y),void 0===r&&(r=null),this.state=t,this.targetIds=e,this.resumeToken=n,this.cause=r},Et=function(){function t(){this.ne=0,this.se=St(),this.ie=G.Y,this.re=!1,this.oe=!0}return Object.defineProperty(t.prototype,"Ht",{get:function(){return this.re},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resumeToken",{get:function(){return this.ie},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"he",{get:function(){return 0!==this.ne},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ae",{get:function(){return this.oe},enumerable:!1,configurable:!0}),t.prototype.ue=function(t){t.H()>0&&(this.oe=!0,this.ie=t)},t.prototype.ce=function(){var t=ht(),e=ht(),n=ht();return this.se.forEach((function(r,i){switch(i){case 0:t=t.add(r);break;case 2:e=e.add(r);break;case 1:n=n.add(r);break;default:m()}})),new bt(this.ie,this.re,t,e,n)},t.prototype.le=function(){this.oe=!1,this.se=St()},t.prototype._e=function(t,e){this.oe=!0,this.se=this.se.nt(t,e)},t.prototype.fe=function(t){this.oe=!0,this.se=this.se.remove(t)},t.prototype.de=function(){this.ne+=1},t.prototype.we=function(){this.ne-=1},t.prototype.Te=function(){this.oe=!0,this.re=!0},t}(),kt=function(){function t(t){this.Ee=t,this.Ie=new Map,this.me=at(),this.Ae=Tt(),this.Re=new rt(_)}return t.prototype.Pe=function(t){for(var e=0,n=t.Zt;e<n.length;e++){var r=n[e];t.te instanceof rn?this.Ve(r,t.te):t.te instanceof on&&this.ge(r,t.key,t.te)}for(var i=0,o=t.removedTargetIds;i<o.length;i++){var a=o[i];this.ge(a,t.key,t.te)}},t.prototype.ye=function(t){var e=this;this.pe(t,(function(n){var r=e.be(n);switch(t.state){case 0:e.ve(n)&&r.ue(t.resumeToken);break;case 1:r.we(),r.he||r.le(),r.ue(t.resumeToken);break;case 2:r.we(),r.he||e.removeTarget(n);break;case 3:e.ve(n)&&(r.Te(),r.ue(t.resumeToken));break;case 4:e.ve(n)&&(e.Se(n),r.ue(t.resumeToken));break;default:m()}}))},t.prototype.pe=function(t,e){var n=this;t.targetIds.length>0?t.targetIds.forEach(e):this.Ie.forEach((function(t,r){n.ve(r)&&e(r)}))},t.prototype.De=function(t){var e=t.targetId,n=t.ee.count,r=this.Ce(e);if(r){var i=r.target;if(Y(i))if(0===n){var o=new F(i.path);this.ge(e,o,new on(o,M.min()))}else g(1===n);else this.Ne(e)!==n&&(this.Se(e),this.Re=this.Re.add(e))}},t.prototype.Fe=function(t){var e=this,n=new Map;this.Ie.forEach((function(r,i){var o=e.Ce(i);if(o){if(r.Ht&&Y(o.target)){var a=new F(o.target.path);null!==e.me.get(a)||e.ke(i,a)||e.ge(i,a,new on(a,t))}r.ae&&(n.set(i,r.ce()),r.le())}}));var r=ht();this.Ae.forEach((function(t,n){var i=!0;n.St((function(t){var n=e.Ce(t);return!n||2===n.J||(i=!1,!1)})),i&&(r=r.add(t))}));var i=new yt(t,n,this.Re,this.me,r);return this.me=at(),this.Ae=Tt(),this.Re=new rt(_),i},t.prototype.Ve=function(t,e){if(this.ve(t)){var n=this.ke(t,e.key)?2:0;this.be(t)._e(e.key,n),this.me=this.me.nt(e.key,e),this.Ae=this.Ae.nt(e.key,this.xe(e.key).add(t))}},t.prototype.ge=function(t,e,n){if(this.ve(t)){var r=this.be(t);this.ke(t,e)?r._e(e,1):r.fe(e),this.Ae=this.Ae.nt(e,this.xe(e).delete(t)),n&&(this.me=this.me.nt(e,n))}},t.prototype.removeTarget=function(t){this.Ie.delete(t)},t.prototype.Ne=function(t){var e=this.be(t).ce();return this.Ee.$e(t).size+e.Yt.size-e.Xt.size},t.prototype.de=function(t){this.be(t).de()},t.prototype.be=function(t){var e=this.Ie.get(t);return e||(e=new Et,this.Ie.set(t,e)),e},t.prototype.xe=function(t){var e=this.Ae.get(t);return e||(e=new rt(_),this.Ae=this.Ae.nt(t,e)),e},t.prototype.ve=function(t){var e=null!==this.Ce(t);return e||h("WatchChangeAggregator","Detected inactive target",t),e},t.prototype.Ce=function(t){var e=this.Ie.get(t);return e&&e.he?null:this.Ee.Me(t)},t.prototype.Se=function(t){var e=this;this.Ie.set(t,new Et),this.Ee.$e(t).forEach((function(n){e.ge(t,n,null)}))},t.prototype.ke=function(t,e){return this.Ee.$e(t).has(e)},t}();function Tt(){return new tt(F.P)}function St(){return new tt(F.P)}function Ot(t){var e,n;return"server_timestamp"===(null===(n=((null===(e=null==t?void 0:t.mapValue)||void 0===e?void 0:e.fields)||{}).__type__)||void 0===n?void 0:n.stringValue)}function At(t){var e=Lt(t.mapValue.fields.__local_write_time__.timestampValue);return new P(e.seconds,e.nanos)}var Ct=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function Nt(t){return"nullValue"in t?0:"booleanValue"in t?1:"integerValue"in t||"doubleValue"in t?2:"timestampValue"in t?3:"stringValue"in t?5:"bytesValue"in t?6:"referenceValue"in t?7:"geoPointValue"in t?8:"arrayValue"in t?9:"mapValue"in t?Ot(t)?4:10:m()}function It(t,e){var n=Nt(t);if(n!==Nt(e))return!1;switch(n){case 0:return!0;case 1:return t.booleanValue===e.booleanValue;case 4:return At(t).isEqual(At(e));case 3:return function(t,e){if("string"==typeof t.timestampValue&&"string"==typeof e.timestampValue&&t.timestampValue.length===e.timestampValue.length)return t.timestampValue===e.timestampValue;var n=Lt(t.timestampValue),r=Lt(e.timestampValue);return n.seconds===r.seconds&&n.nanos===r.nanos}(t,e);case 5:return t.stringValue===e.stringValue;case 6:return function(t,e){return Ft(t.bytesValue).isEqual(Ft(e.bytesValue))}(t,e);case 7:return t.referenceValue===e.referenceValue;case 8:return function(t,e){return jt(t.geoPointValue.latitude)===jt(e.geoPointValue.latitude)&&jt(t.geoPointValue.longitude)===jt(e.geoPointValue.longitude)}(t,e);case 2:return function(t,e){if("integerValue"in t&&"integerValue"in e)return jt(t.integerValue)===jt(e.integerValue);if("doubleValue"in t&&"doubleValue"in e){var n=jt(t.doubleValue),r=jt(e.doubleValue);return n===r?q(n)===q(r):isNaN(n)&&isNaN(r)}return!1}(t,e);case 9:return x(t.arrayValue.values||[],e.arrayValue.values||[],It);case 10:return function(t,e){var n=t.mapValue.fields||{},r=e.mapValue.fields||{};if(S(n)!==S(r))return!1;for(var i in n)if(n.hasOwnProperty(i)&&(void 0===r[i]||!It(n[i],r[i])))return!1;return!0}(t,e);default:return m()}}function Pt(t,e){return void 0!==(t.values||[]).find((function(t){return It(t,e)}))}function Mt(t,e){var n=Nt(t),r=Nt(e);if(n!==r)return _(n,r);switch(n){case 0:return 0;case 1:return _(t.booleanValue,e.booleanValue);case 2:return function(t,e){var n=jt(t.integerValue||t.doubleValue),r=jt(e.integerValue||e.doubleValue);return n<r?-1:n>r?1:n===r?0:isNaN(n)?isNaN(r)?0:-1:1}(t,e);case 3:return Dt(t.timestampValue,e.timestampValue);case 4:return Dt(At(t),At(e));case 5:return _(t.stringValue,e.stringValue);case 6:return function(t,e){var n=Ft(t),r=Ft(e);return n.o(r)}(t.bytesValue,e.bytesValue);case 7:return function(t,e){for(var n=t.split("/"),r=e.split("/"),i=0;i<n.length&&i<r.length;i++){var o=_(n[i],r[i]);if(0!==o)return o}return _(n.length,r.length)}(t.referenceValue,e.referenceValue);case 8:return function(t,e){var n=_(jt(t.latitude),jt(e.latitude));return 0!==n?n:_(jt(t.longitude),jt(e.longitude))}(t.geoPointValue,e.geoPointValue);case 9:return function(t,e){for(var n=t.values||[],r=e.values||[],i=0;i<n.length&&i<r.length;++i){var o=Mt(n[i],r[i]);if(o)return o}return _(n.length,r.length)}(t.arrayValue,e.arrayValue);case 10:return function(t,e){var n=t.fields||{},r=Object.keys(n),i=e.fields||{},o=Object.keys(i);r.sort(),o.sort();for(var a=0;a<r.length&&a<o.length;++a){var s=_(r[a],o[a]);if(0!==s)return s;var u=Mt(n[r[a]],i[o[a]]);if(0!==u)return u}return _(r.length,o.length)}(t.mapValue,e.mapValue);default:throw m()}}function Dt(t,e){if("string"==typeof t&&"string"==typeof e&&t.length===e.length)return _(t,e);var n=Lt(t),r=Lt(e),i=_(n.seconds,r.seconds);return 0!==i?i:_(n.nanos,r.nanos)}function Rt(t){return function t(e){return"nullValue"in e?"null":"booleanValue"in e?""+e.booleanValue:"integerValue"in e?""+e.integerValue:"doubleValue"in e?""+e.doubleValue:"timestampValue"in e?function(t){var e=Lt(t);return"time("+e.seconds+","+e.nanos+")"}(e.timestampValue):"stringValue"in e?e.stringValue:"bytesValue"in e?Ft(e.bytesValue).toBase64():"referenceValue"in e?(r=e.referenceValue,F.B(r).toString()):"geoPointValue"in e?"geo("+(n=e.geoPointValue).latitude+","+n.longitude+")":"arrayValue"in e?function(e){for(var n="[",r=!0,i=0,o=e.values||[];i<o.length;i++){var a=o[i];r?r=!1:n+=",",n+=t(a)}return n+"]"}(e.arrayValue):"mapValue"in e?function(e){for(var n="{",r=!0,i=0,o=Object.keys(e.fields||{}).sort();i<o.length;i++){var a=o[i];r?r=!1:n+=",",n+=a+":"+t(e.fields[a])}return n+"}"}(e.mapValue):m();var n,r}(t)}function Lt(t){if(g(!!t),"string"==typeof t){var e=0,n=Ct.exec(t);
2if(g(!!n),n[1]){var r=n[1];r=(r+"000000000").substr(0,9),e=Number(r)}var i=new Date(t);return{seconds:Math.floor(i.getTime()/1e3),nanos:e}}return{seconds:jt(t.seconds),nanos:jt(t.nanos)}}function jt(t){return"number"==typeof t?t:"string"==typeof t?Number(t):0}function Ft(t){return"string"==typeof t?G.fromBase64String(t):G.fromUint8Array(t)}function Ut(t,e){return{referenceValue:"projects/"+t.projectId+"/databases/"+t.database+"/documents/"+e.path.F()}}function qt(t){return!!t&&"integerValue"in t}function Bt(t){return!!t&&"arrayValue"in t}function Vt(t){return!!t&&"nullValue"in t}function zt(t){return!!t&&"doubleValue"in t&&isNaN(Number(t.doubleValue))}function Wt(t){return!!t&&"mapValue"in t}var Ht={asc:"ASCENDING",desc:"DESCENDING"},Yt={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},Gt=function(t,e){this.s=t,this.Oe=e};function Kt(t){return{integerValue:""+t}}function Xt(t,e){if(t.Oe){if(isNaN(e))return{doubleValue:"NaN"};if(e===1/0)return{doubleValue:"Infinity"};if(e===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:q(e)?"-0":e}}function $t(t,e){return B(e)?Kt(e):Xt(t,e)}function Zt(t,e){return t.Oe?new Date(1e3*e.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")+"."+("000000000"+e.nanoseconds).slice(-9)+"Z":{seconds:""+e.seconds,nanos:e.nanoseconds}}function Qt(t,e){return t.Oe?e.toBase64():e.toUint8Array()}function Jt(t,e){return Zt(t,e.A())}function te(t){return g(!!t),M.I(function(t){var e=Lt(t);return new P(e.seconds,e.nanos)}(t))}function ee(t,e){return function(t){return new R(["projects",t.projectId,"databases",t.database])}(t).child("documents").child(e).F()}function ne(t){var e=R.k(t);return g(_e(e)),e}function re(t,e){return ee(t.s,e.path)}function ie(t,e){var n=ne(e);return g(n.get(1)===t.s.projectId),g(!n.get(3)&&!t.s.database||n.get(3)===t.s.database),new F(ue(n))}function oe(t,e){return ee(t.s,e)}function ae(t){var e=ne(t);return 4===e.length?R.$():ue(e)}function se(t){return new R(["projects",t.s.projectId,"databases",t.s.database]).F()}function ue(t){return g(t.length>4&&"documents"===t.get(4)),t.g(5)}function le(t,e,n){return{name:re(t,e),fields:n.proto.mapValue.fields}}function ce(t,e){var n;if(e instanceof He)n={update:le(t,e.key,e.value)};else if(e instanceof Ze)n={delete:re(t,e.key)};else if(e instanceof Ye)n={update:le(t,e.key,e.data),updateMask:we(e.Le)};else if(e instanceof Ke)n={transform:{document:re(t,e.key),fieldTransforms:e.fieldTransforms.map((function(t){return function(t,e){var n=e.transform;if(n instanceof Se)return{fieldPath:e.field.F(),setToServerValue:"REQUEST_TIME"};if(n instanceof Oe)return{fieldPath:e.field.F(),appendMissingElements:{values:n.elements}};if(n instanceof Ce)return{fieldPath:e.field.F(),removeAllFromArray:{values:n.elements}};if(n instanceof Ie)return{fieldPath:e.field.F(),increment:n.qe};throw m()}(0,t)}))}};else{if(!(e instanceof Qe))return m();n={verify:re(t,e.key)}}return e.Ue.Be||(n.currentDocument=function(t,e){return void 0!==e.updateTime?{updateTime:Jt(t,e.updateTime)}:void 0!==e.exists?{exists:e.exists}:m()}(t,e.Ue)),n}function fe(t,e){var n=e.currentDocument?function(t){return void 0!==t.updateTime?je.updateTime(te(t.updateTime)):void 0!==t.exists?je.exists(t.exists):je.Qe()}(e.currentDocument):je.Qe();if(e.update){e.update.name;var r=ie(t,e.update.name),i=new Je({mapValue:{fields:e.update.fields}});if(e.updateMask){var o=function(t){var e=t.fieldPaths||[];return new De(e.map((function(t){return j.q(t)})))}(e.updateMask);return new Ye(r,i,o,n)}return new He(r,i,n)}if(e.delete){var a=ie(t,e.delete);return new Ze(a,n)}if(e.transform){var s=ie(t,e.transform.document),u=e.transform.fieldTransforms.map((function(e){return function(t,e){var n=null;if("setToServerValue"in e)g("REQUEST_TIME"===e.setToServerValue),n=new Se;else if("appendMissingElements"in e){var r=e.appendMissingElements.values||[];n=new Oe(r)}else if("removeAllFromArray"in e){var i=e.removeAllFromArray.values||[];n=new Ce(i)}else"increment"in e?n=new Ie(t,e.increment):m();var o=j.q(e.fieldPath);return new Re(o,n)}(t,e)}));return g(!0===n.exists),new Ke(s,u)}if(e.verify){var l=ie(t,e.verify);return new Qe(l,n)}return m()}function he(t,e){return{documents:[oe(t,e.path)]}}function de(t,e){var n={structuredQuery:{}},r=e.path;null!==e.collectionGroup?(n.parent=oe(t,r),n.structuredQuery.from=[{collectionId:e.collectionGroup,allDescendants:!0}]):(n.parent=oe(t,r.p()),n.structuredQuery.from=[{collectionId:r.S()}]);var i=function(t){if(0!==t.length){var e=t.map((function(t){return function(t){if("=="===t.op){if(zt(t.value))return{unaryFilter:{field:me(t.field),op:"IS_NAN"}};if(Vt(t.value))return{unaryFilter:{field:me(t.field),op:"IS_NULL"}}}else if("!="===t.op){if(zt(t.value))return{unaryFilter:{field:me(t.field),op:"IS_NOT_NA
2N"}};if(Vt(t.value))return{unaryFilter:{field:me(t.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:me(t.field),op:(e=t.op,Yt[e]),value:t.value}};var e}(t)}));return 1===e.length?e[0]:{compositeFilter:{op:"AND",filters:e}}}}(e.filters);i&&(n.structuredQuery.where=i);var o=function(t){if(0!==t.length)return t.map((function(t){return{field:me((e=t).field),direction:(n=e.dir,Ht[n])};var e,n}))}(e.orderBy);o&&(n.structuredQuery.orderBy=o);var a=function(t,e){return t.Oe||U(e)?e:{value:e}}(t,e.limit);return null!==a&&(n.structuredQuery.limit=a),e.startAt&&(n.structuredQuery.startAt=pe(e.startAt)),e.endAt&&(n.structuredQuery.endAt=pe(e.endAt)),n}function pe(t){return{before:t.before,values:t.position}}function ve(t){var e=!!t.before,n=t.values||[];return new In(n,e)}function me(t){return{fieldPath:t.F()}}function ge(t){return j.q(t.fieldPath)}function ye(t){return xn.create(ge(t.fieldFilter.field),function(t){switch(t){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";case"OPERATOR_UNSPECIFIED":default:return m()}}(t.fieldFilter.op),t.fieldFilter.value)}function be(t){switch(t.unaryFilter.op){case"IS_NAN":var e=ge(t.unaryFilter.field);return xn.create(e,"==",{doubleValue:NaN});case"IS_NULL":var n=ge(t.unaryFilter.field);return xn.create(n,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":var r=ge(t.unaryFilter.field);return xn.create(r,"!=",{doubleValue:NaN});case"IS_NOT_NULL":var i=ge(t.unaryFilter.field);return xn.create(i,"!=",{nullValue:"NULL_VALUE"});case"OPERATOR_UNSPECIFIED":default:return m()}}function we(t){var e=[];return t.fields.forEach((function(t){return e.push(t.F())})),{fieldPaths:e}}function _e(t){return t.length>=4&&"projects"===t.get(0)&&"databases"===t.get(2)}var xe=function(){this.We=void 0};function Ee(t,e,n){return t instanceof Se?function(t,e){var n={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:t.seconds,nanos:t.nanoseconds}}}};return e&&(n.fields.__previous_value__=e),{mapValue:n}}(n,e):t instanceof Oe?Ae(t,e):t instanceof Ce?Ne(t,e):function(t,e){var n=Te(t,e),r=Pe(n)+Pe(t.qe);return qt(n)&&qt(t.qe)?Kt(r):Xt(t.serializer,r)}(t,e)}function ke(t,e,n){return t instanceof Oe?Ae(t,e):t instanceof Ce?Ne(t,e):n}function Te(t,e){return t instanceof Ie?qt(n=e)||function(t){return!!t&&"doubleValue"in t}(n)?e:{integerValue:0}:null;var n}var Se=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e}(xe),Oe=function(t){function e(e){var n=this;return(n=t.call(this)||this).elements=e,n}return i.__extends(e,t),e}(xe);function Ae(t,e){for(var n=Me(e),r=function(t){n.some((function(e){return It(e,t)}))||n.push(t)},i=0,o=t.elements;i<o.length;i++)r(o[i]);return{arrayValue:{values:n}}}var Ce=function(t){function e(e){var n=this;return(n=t.call(this)||this).elements=e,n}return i.__extends(e,t),e}(xe);function Ne(t,e){for(var n=Me(e),r=function(t){n=n.filter((function(e){return!It(e,t)}))},i=0,o=t.elements;i<o.length;i++)r(o[i]);return{arrayValue:{values:n}}}var Ie=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).serializer=e,r.qe=n,r}return i.__extends(e,t),e}(xe);function Pe(t){return jt(t.integerValue||t.doubleValue)}function Me(t){return Bt(t)&&t.arrayValue.values?t.arrayValue.values.slice():[]}var De=function(){function t(t){this.fields=t,t.sort(j.P)}return t.prototype.je=function(t){for(var e=0,n=this.fields;e<n.length;e++)if(n[e].D(t))return!0;return!1},t.prototype.isEqual=function(t){return x(this.fields,t.fields,(function(t,e){return t.isEqual(e)}))},t}(),Re=function(t,e){this.field=t,this.transform=e},Le=function(t,e){this.version=t,this.transformResults=e},je=function(){function t(t,e){this.updateTime=t,this.exists=e}return t.Qe=function(){return new t},t.exists=function(e){return new t(void 0,e)},t.updateTime=function(e){return new t(e)},Object.defineProperty(t.prototype,"Be",{get:function(){return void 0===this.updateTime&&void 0===this.exists}
2,enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){return this.exists===t.exists&&(this.updateTime?!!t.updateTime&&this.updateTime.isEqual(t.updateTime):!t.updateTime)},t}();function Fe(t,e){return void 0!==t.updateTime?e instanceof rn&&e.version.isEqual(t.updateTime):void 0===t.exists||t.exists===e instanceof rn}var Ue=function(){};function qe(t,e,n){return t instanceof He?function(t,e,n){return new rn(t.key,n.version,t.value,{hasCommittedMutations:!0})}(t,0,n):t instanceof Ye?function(t,e,n){if(!Fe(t.Ue,e))return new an(t.key,n.version);var r=Ge(t,e);return new rn(t.key,n.version,r,{hasCommittedMutations:!0})}(t,e,n):t instanceof Ke?function(t,e,n){if(g(null!=n.transformResults),!Fe(t.Ue,e))return new an(t.key,n.version);var r=Xe(t,e),i=function(t,e,n){var r=[];g(t.length===n.length);for(var i=0;i<n.length;i++){var o=t[i],a=o.transform,s=null;e instanceof rn&&(s=e.field(o.field)),r.push(ke(a,s,n[i]))}return r}(t.fieldTransforms,e,n.transformResults),o=n.version,a=$e(t,r.data(),i);return new rn(t.key,o,a,{hasCommittedMutations:!0})}(t,e,n):function(t,e,n){return new on(t.key,n.version,{hasCommittedMutations:!0})}(t,0,n)}function Be(t,e,n,r){return t instanceof He?function(t,e){if(!Fe(t.Ue,e))return e;var n=We(e);return new rn(t.key,n,t.value,{Ke:!0})}(t,e):t instanceof Ye?function(t,e){if(!Fe(t.Ue,e))return e;var n=We(e),r=Ge(t,e);return new rn(t.key,n,r,{Ke:!0})}(t,e):t instanceof Ke?function(t,e,n,r){if(!Fe(t.Ue,e))return e;var i=Xe(t,e),o=function(t,e,n,r){for(var i=[],o=0,a=t;o<a.length;o++){var s=a[o],u=s.transform,l=null;n instanceof rn&&(l=n.field(s.field)),null===l&&r instanceof rn&&(l=r.field(s.field)),i.push(Ee(u,l,e))}return i}(t.fieldTransforms,n,e,r),a=$e(t,i.data(),o);return new rn(t.key,i.version,a,{Ke:!0})}(t,e,r,n):function(t,e){return Fe(t.Ue,e)?new on(t.key,M.min()):e}(t,e)}function Ve(t,e){return t instanceof Ke?function(t,e){for(var n=null,r=0,i=t.fieldTransforms;r<i.length;r++){var o=i[r],a=e instanceof rn?e.field(o.field):void 0,s=Te(o.transform,a||null);null!=s&&(n=null==n?(new tn).set(o.field,s):n.set(o.field,s))}return n?n.Ge():null}(t,e):null}function ze(t,e){return t.type===e.type&&!!t.key.isEqual(e.key)&&!!t.Ue.isEqual(e.Ue)&&(0===t.type?t.value.isEqual(e.value):1===t.type?t.data.isEqual(e.data)&&t.Le.isEqual(e.Le):2!==t.type||x(t.fieldTransforms,t.fieldTransforms,(function(t,e){return function(t,e){return t.field.isEqual(e.field)&&function(t,e){return t instanceof Oe&&e instanceof Oe||t instanceof Ce&&e instanceof Ce?x(t.elements,e.elements,It):t instanceof Ie&&e instanceof Ie?It(t.qe,e.qe):t instanceof Se&&e instanceof Se}(t.transform,e.transform)}(t,e)})))}function We(t){return t instanceof rn?t.version:M.min()}var He=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).key=e,i.value=n,i.Ue=r,i.type=0,i}return i.__extends(e,t),e}(Ue),Ye=function(t){function e(e,n,r,i){var o=this;return(o=t.call(this)||this).key=e,o.data=n,o.Le=r,o.Ue=i,o.type=1,o}return i.__extends(e,t),e}(Ue);function Ge(t,e){return function(t,e){var n=new tn(e);return t.Le.fields.forEach((function(e){if(!e._()){var r=t.data.field(e);null!==r?n.set(e,r):n.delete(e)}})),n.Ge()}(t,e instanceof rn?e.data():Je.empty())}var Ke=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).key=e,r.fieldTransforms=n,r.type=2,r.Ue=je.exists(!0),r}return i.__extends(e,t),e}(Ue);function Xe(t,e){return e}function $e(t,e,n){for(var r=new tn(e),i=0;i<t.fieldTransforms.length;i++){var o=t.fieldTransforms[i];r.set(o.field,n[i])}return r.Ge()}var Ze=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).key=e,r.Ue=n,r.type=3,r}return i.__extends(e,t),e}(Ue),Qe=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).key=e,r.Ue=n,r.type=4,r}return i.__extends(e,t),e}(Ue),Je=function(){function t(t){this.proto=t}return t.empty=function(){return new t({mapValue:{}})},t.prototype.field=function(t){if(t._())return this.proto;for(var e=this.proto,n=0;n<t.length-1;++n){if(!e.mapValue.fields)return null;if(!Wt(e=e.mapValue.fields[t.get(n)]))return null}return(e=(e.mapValue.fields||{})[t.S()])||null},t.prototype.isEqual=function(t){return It(this.proto,t.proto)},t}(),tn=function(){function t(t){void 0===t&&(t=Je.empty()),this.ze=t,this.He=new Map}return t.prototype.set=function(t,e){return this.Ye(t,e),this},t.prototype.delete=function(t){return this.Ye(t,null),this},t.prototype.Ye=function(t,e){for(var n=this.He,r=0;r<t.length-1;++r){var i=t.get(r),o=n.get(i);o instanceof Map?n=o:o&&10===Nt(o)?(o=new Map(Object.entries(o.mapValue.fields||{})),n.set(i,o),n=o):(o=new Map,n.set(i,o),n=o)}n.set(t.S(),e)},t.prototype.Ge=function(){var t=this.Je(j.$(),this.He);return null!=t?new Je(t):this.ze},t.prototype.Je=function(t,e){var n=this,r=!1,i=this.ze.field(t),o=Wt(i)?Object.assign({},i.mapValue.fields):{};return e.forEach((function(e,i){if(e instanceof Map){var a=n.Je(t.child(i),e);null!=a&&(o[i]=a,r=!0)}else null!==e?(o[i]=e,r=!0):o.hasOwnProperty(i)&&(delete o[i],r=!0)})),r?{mapValue:{fields:o}}:null},t}();function en(t){var e=[];return O(t.fields||{},(function(t,n){var r=new j([t]);if(Wt(n)){var i=en(n.mapValue).fields;
2if(0===i.length)e.push(r);else for(var o=0,a=i;o<a.length;o++){var s=a[o];e.push(r.child(s))}}else e.push(r)})),new De(e)}var nn=function(t,e){this.key=t,this.version=e},rn=function(t){function e(e,n,r,i){var o=this;return(o=t.call(this,e,n)||this).Xe=r,o.Ke=!!i.Ke,o.hasCommittedMutations=!!i.hasCommittedMutations,o}return i.__extends(e,t),e.prototype.field=function(t){return this.Xe.field(t)},e.prototype.data=function(){return this.Xe},e.prototype.Ze=function(){return this.Xe.proto},e.prototype.isEqual=function(t){return t instanceof e&&this.key.isEqual(t.key)&&this.version.isEqual(t.version)&&this.Ke===t.Ke&&this.hasCommittedMutations===t.hasCommittedMutations&&this.Xe.isEqual(t.Xe)},e.prototype.toString=function(){return"Document("+this.key+", "+this.version+", "+this.Xe.toString()+", {hasLocalMutations: "+this.Ke+"}), {hasCommittedMutations: "+this.hasCommittedMutations+"})"},Object.defineProperty(e.prototype,"hasPendingWrites",{get:function(){return this.Ke||this.hasCommittedMutations},enumerable:!1,configurable:!0}),e}(nn),on=function(t){function e(e,n,r){var i=this;return(i=t.call(this,e,n)||this).hasCommittedMutations=!(!r||!r.hasCommittedMutations),i}return i.__extends(e,t),e.prototype.toString=function(){return"NoDocument("+this.key+", "+this.version+")"},Object.defineProperty(e.prototype,"hasPendingWrites",{get:function(){return this.hasCommittedMutations},enumerable:!1,configurable:!0}),e.prototype.isEqual=function(t){return t instanceof e&&t.hasCommittedMutations===this.hasCommittedMutations&&t.version.isEqual(this.version)&&t.key.isEqual(this.key)},e}(nn),an=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.toString=function(){return"UnknownDocument("+this.key+", "+this.version+")"},Object.defineProperty(e.prototype,"hasPendingWrites",{get:function(){return!0},enumerable:!1,configurable:!0}),e.prototype.isEqual=function(t){return t instanceof e&&t.version.isEqual(this.version)&&t.key.isEqual(this.key)},e}(nn);function sn(t,e){if(!(t instanceof e))throw e.name===t.constructor.name?new I(N.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass '"+e.name+"' from a different Firestore SDK?"):new I(N.INVALID_ARGUMENT,"Expected type '"+e.name+"', but was '"+t.constructor.name+"'");return t}var un=function(){function t(t,e,n,r,i,o,a,s){void 0===e&&(e=null),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i=null),void 0===o&&(o="F"),void 0===a&&(a=null),void 0===s&&(s=null),this.path=t,this.collectionGroup=e,this.tn=n,this.filters=r,this.limit=i,this.en=o,this.startAt=a,this.endAt=s,this.nn=null,this.sn=null,this.startAt,this.endAt}return t.prototype.rn=function(e){return new t(e,null,this.tn.slice(),this.filters.slice(),this.limit,this.en,this.startAt,this.endAt)},t.prototype.on=function(){return 0===this.filters.length&&null===this.limit&&null==this.startAt&&null==this.endAt&&(0===this.tn.length||1===this.tn.length&&this.tn[0].field.O())},t.prototype.hn=function(){return!U(this.limit)&&"F"===this.en},t.prototype.an=function(){return!U(this.limit)&&"L"===this.en},t.prototype.un=function(){return this.tn.length>0?this.tn[0].field:null},t.prototype.cn=function(){for(var t=0,e=this.filters;t<e.length;t++){var n=e[t];if(n.ln())return n.field}return null},t.prototype._n=function(t){for(var e=0,n=this.filters;e<n.length;e++){var r=n[e];if(t.indexOf(r.op)>=0)return r.op}return null},t}();function ln(t,e,n,r,i,o,a,s){return new un(t,e,n,r,i,o,a,s)}function cn(t){return new un(t)}function fn(t){return null!==t.collectionGroup}function hn(t){var e=sn(t,un);if(null===e.nn){e.nn=[];var n=e.cn(),r=e.un();if(null!==n&&null===r)n.O()||e.nn.push(new Rn(n)),e.nn.push(new Rn(j.L(),"asc"));else{for(var i=!1,o=0,a=e.tn;o<a.length;o++){var s=a[o];e.nn.push(s),s.field.O()&&(i=!0)}if(!i){var u=e.tn.length>0?e.tn[e.tn.length-1].dir:"asc";e.nn.push(new Rn(j.L(),u))}}}return e.nn}function dn(t){var e=sn(t,un);if(!e.sn)if("F"===e.en)e.sn=z(e.path,e.collectionGroup,hn(e),e.filters,e.limit,e.startAt,e.endAt);else{for(var n=[],r=0,i=hn(e);r<i.length;r++){var o=i[r],a="desc"===o.dir?"asc":"desc";n.push(new Rn(o.field,a))}var s=e.endAt?new In(e.endAt.position,!e.endAt.before):null,u=e.startAt?new In(e.startAt.position,!e.startAt.before):null;e.sn=z(e.path,e.collectionGroup,n,e.filters,e.limit,s,u)}return e.sn}function pn(t,e,n){return new un(t.path,t.collectionGroup,t.tn.slice(),t.filters.slice(),e,n,t.startAt,t.endAt)}function vn(t,e){return new un(t.path,t.collectionGroup,t.tn.slice(),t.filters.slice(),t.limit,t.en,e,t.endAt)}function mn(t,e){return new un(t.path,t.collectionGroup,t.tn.slice(),t.filters.slice(),t.limit,t.en,t.startAt,e)}function gn(t,e){return H(dn(t),dn(e))&&t.en===e.en}function yn(t){return W(dn(t))+"|lt:"+t.en}function bn(t){return"Query(target="+function(t){var e=t.path.F();return null!==t.collectionGroup&&(e+=" collectionGroup="+t.collectionGroup),t.filters.length>0&&(e+=", filters: ["+t.filters.map((function(t){return(e=t).field.F()+" "+e.op+" "+Rt(e.value);var e})).join(", ")+"]"),U(t.limit)||(e+=", limit: "+t.limit),t.orderBy.length>0&&(e+=", orderBy: ["+t.orderBy.map((function(t){return(e=t).field.F()+" ("+e.dir+")";var e})).join(", ")+"]"),t.startAt&&(e+=", startAt: "+Pn(t.startAt)),t.endAt&&(e+=", endAt: "+Pn(t.endAt)),"Target("+e+")"}(dn(t))+"; limitType="+t.en+")"}function wn(t,e){return function(t,e){var n=e.key.path;return null!==t.collectionGroup?e.key.U(t.collectionGroup)&&t.path.D(n):F.W(t.path)?t.path.isEqual(n):t.path.C(n)}(t,e)&&function(t,e){for(var n=0,r=t.tn;n<r.length;n++){var i=r[n];if(!i.field.O()&&null===e.field(i.field))return!1}return!0}(t,e)&&function(t,e){for(var n=0,r=t.filters;n<r.length;n++)if(!r[n].matches(e))return!1;return!0}(t,e)&&function(t,e){return!(t.startAt&&!Mn(t.startAt,hn(t),e))&&(!t.endAt||!Mn(t.endAt,hn(t),e))}(t,e)}function _n(t){return function(e,n){for(var r=!1,i=0,o=hn(t);i<o.length;i++){var a=o[i],s=Ln(a,e,n);if(0!==s)return s;r=r||a.field.O()}return 0}}var xn=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).field=e,i.op=n,i.value=r,i}return i.__extends(e,t),e.create=function(t,n,r){if(t.O())return"in"===n||"not-in"===n?this.fn(t,n,r):new En(t,n,r);if(Vt(r)){if("=="!==n&&"!="!==n)throw new I(N.INVALID_ARGUMENT,"Invalid query. Null supports only equality comparisons.");return new e(t,n,r)}if(zt(r)){if("=="!==n&&"!="!==n)throw new I(N.INVALID_ARGUMENT,"Invalid query. NaN supports only equality comparisons.");return new e(t,n,r)}return"array-contains"===n?new On(t,r):"in"===n?new An(t,r):"not-in"===n?new Cn(t,r):"array-contains-any"===n?new Nn(t,r):new e(t,n,r)},e.fn=function(t,e,n){return"in"===e?new kn(t,n):new Tn(t,n)},e.prototype.matches=function(t){var e=t.field(this.field);return"!="===this.op?null!==e&&this.dn(Mt(e,this.value)):null!==e&&Nt(this.value)===Nt(e)&&this.dn(Mt(e,this.value))},e.prototype.dn=function(t){switch(this.op){case"<":return t<0;case"<=":return t<=0;case"==":return 0===t;case"!=":return 0!==t;case">":return t>0;case">=":return t>=0;default:return m()}},e.prototype.ln=function(){return["<","<=",">",">=","!="].indexOf(this.op)>=0},e}((function(){})),En=function(t){function e(e,n,r){var i=this;
2return(i=t.call(this,e,n,r)||this).key=F.B(r.referenceValue),i}return i.__extends(e,t),e.prototype.matches=function(t){var e=F.P(t.key,this.key);return this.dn(e)},e}(xn),kn=function(t){function e(e,n){var r=this;return(r=t.call(this,e,"in",n)||this).keys=Sn("in",n),r}return i.__extends(e,t),e.prototype.matches=function(t){return this.keys.some((function(e){return e.isEqual(t.key)}))},e}(xn),Tn=function(t){function e(e,n){var r=this;return(r=t.call(this,e,"not-in",n)||this).keys=Sn("not-in",n),r}return i.__extends(e,t),e.prototype.matches=function(t){return!this.keys.some((function(e){return e.isEqual(t.key)}))},e}(xn);function Sn(t,e){var n;return((null===(n=e.arrayValue)||void 0===n?void 0:n.values)||[]).map((function(t){return F.B(t.referenceValue)}))}var On=function(t){function e(e,n){return t.call(this,e,"array-contains",n)||this}return i.__extends(e,t),e.prototype.matches=function(t){var e=t.field(this.field);return Bt(e)&&Pt(e.arrayValue,this.value)},e}(xn),An=function(t){function e(e,n){return t.call(this,e,"in",n)||this}return i.__extends(e,t),e.prototype.matches=function(t){var e=t.field(this.field);return null!==e&&Pt(this.value.arrayValue,e)},e}(xn),Cn=function(t){function e(e,n){return t.call(this,e,"not-in",n)||this}return i.__extends(e,t),e.prototype.matches=function(t){var e=t.field(this.field);return null!==e&&!Pt(this.value.arrayValue,e)},e}(xn),Nn=function(t){function e(e,n){return t.call(this,e,"array-contains-any",n)||this}return i.__extends(e,t),e.prototype.matches=function(t){var e=this,n=t.field(this.field);return!(!Bt(n)||!n.arrayValue.values)&&n.arrayValue.values.some((function(t){return Pt(e.value.arrayValue,t)}))},e}(xn),In=function(t,e){this.position=t,this.before=e};function Pn(t){return(t.before?"b":"a")+":"+t.position.map((function(t){return Rt(t)})).join(",")}function Mn(t,e,n){for(var r=0,i=0;i<t.position.length;i++){var o=e[i],a=t.position[i];if(r=o.field.O()?F.P(F.B(a.referenceValue),n.key):Mt(a,n.field(o.field)),"desc"===o.dir&&(r*=-1),0!==r)break}return t.before?r<=0:r<0}function Dn(t,e){if(null===t)return null===e;if(null===e)return!1;if(t.before!==e.before||t.position.length!==e.position.length)return!1;for(var n=0;n<t.position.length;n++)if(!It(t.position[n],e.position[n]))return!1;return!0}var Rn=function(t,e){void 0===e&&(e="asc"),this.field=t,this.dir=e};function Ln(t,e,n){var r=t.field.O()?F.P(e.key,n.key):function(t,e,n){var r=e.field(t),i=n.field(t);return null!==r&&null!==i?Mt(r,i):m()}(t.field,e,n);switch(t.dir){case"asc":return r;case"desc":return-1*r;default:return m()}}function jn(t,e){return t.dir===e.dir&&t.field.isEqual(e.field)}var Fn=function(){function t(t,e,n,r){this.batchId=t,this.wn=e,this.baseMutations=n,this.mutations=r}return t.prototype.Tn=function(t,e,n){for(var r=n.En,i=0;i<this.mutations.length;i++){var o=this.mutations[i];o.key.isEqual(t)&&(e=qe(o,e,r[i]))}return e},t.prototype.In=function(t,e){for(var n=0,r=this.baseMutations;n<r.length;n++){var i=r[n];i.key.isEqual(t)&&(e=Be(i,e,e,this.wn))}for(var o=e,a=0,s=this.mutations;a<s.length;a++){var u=s[a];u.key.isEqual(t)&&(e=Be(u,e,o,this.wn))}return e},t.prototype.mn=function(t){var e=this,n=t;return this.mutations.forEach((function(r){var i=e.In(r.key,t.get(r.key));i&&(n=n.nt(r.key,i))})),n},t.prototype.keys=function(){return this.mutations.reduce((function(t,e){return t.add(e.key)}),ht())},t.prototype.isEqual=function(t){return this.batchId===t.batchId&&x(this.mutations,t.mutations,(function(t,e){return ze(t,e)}))&&x(this.baseMutations,t.baseMutations,(function(t,e){return ze(t,e)}))},t}(),Un=function(){function t(t,e,n,r){this.batch=t,this.An=e,this.En=n,this.Rn=r}return t.from=function(e,n,r){g(e.mutations.length===r.length);for(var i=ct,o=e.mutations,a=0;a<o.length;a++)i=i.nt(o[a].key,r[a].version);return new t(e,n,r,i)},t}(),qn=function(){function t(t){var e=this;this.Pn=null,this.Vn=null,this.result=void 0,this.error=void 0,this.gn=!1,this.yn=!1,t((function(t){e.gn=!0,e.result=t,e.Pn&&e.Pn(t)}),(function(t){e.gn=!0,e.error=t,e.Vn&&e.Vn(t)}))}return t.prototype.catch=function(t){return this.next(void 0,t)},t.prototype.next=function(e,n){var r=this;return this.yn&&m(),this.yn=!0,this.gn?this.error?this.pn(n,this.error):this.bn(e,this.result):new t((function(t,i){r.Pn=function(n){r.bn(e,n).next(t,i)},r.Vn=function(e){r.pn(n,e).next(t,i)}}))},t.prototype.vn=function(){var t=this;return new Promise((function(e,n){t.next(e,n)}))},t.prototype.Sn=function(e){try{var n=e();return n instanceof t?n:t.resolve(n)}catch(e){return t.reject(e)}},t.prototype.bn=function(e,n){return e?this.Sn((function(){return e(n)})):t.resolve(n)},t.prototype.pn=function(e,n){return e?this.Sn((function(){return e(n)})):t.reject(n)},t.resolve=function(e){return new t((function(t,n){t(e)}))},t.reject=function(e){return new t((function(t,n){n(e)}))},t.Dn=function(e){return new t((function(t,n){var r=0,i=0,o=!1;e.forEach((function(e){++r,e.next((function(){++i,o&&i===r&&t()}),(function(t){return n(t)}))})),o=!0,i===r&&t()}))},t.Cn=function(e){for(var n=t.resolve(!1),r=function(e){n=n.next((function(n){return n?t.resolve(n):e()}))},i=0,o=e;i<o.length;i++)r(o[i]);return n},t.forEach=function(t,e){var n=this,r=[];return t.forEach((function(t,i){r.push(e.call(n,t,i))})),this.Dn(r)},t}(),Bn=function(){function t(){this.Nn=new C((function(t){return t.toString()}),(function(t,e){return t.isEqual(e)})),this.Fn=!1}
2return Object.defineProperty(t.prototype,"readTime",{get:function(){return this.kn},set:function(t){this.kn=t},enumerable:!1,configurable:!0}),t.prototype.xn=function(t,e){this.$n(),this.readTime=e,this.Nn.set(t.key,t)},t.prototype.Mn=function(t,e){this.$n(),e&&(this.readTime=e),this.Nn.set(t,null)},t.prototype.On=function(t,e){this.$n();var n=this.Nn.get(e);return void 0!==n?qn.resolve(n):this.Ln(t,e)},t.prototype.getEntries=function(t,e){return this.qn(t,e)},t.prototype.apply=function(t){return this.$n(),this.Fn=!0,this.Bn(t)},t.prototype.$n=function(){},t}(),Vn="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.",zn=function(){function t(){this.Un=[]}return t.prototype.Qn=function(t){this.Un.push(t)},t.prototype.Wn=function(){this.Un.forEach((function(t){return t()}))},t}(),Wn=function(){function t(t,e,n){this.jn=t,this.Kn=e,this.Gn=n}return t.prototype.zn=function(t,e){var n=this;return this.Kn.Hn(t,e).next((function(r){return n.Yn(t,e,r)}))},t.prototype.Yn=function(t,e,n){return this.jn.On(t,e).next((function(t){for(var r=0,i=n;r<i.length;r++)t=i[r].In(e,t);return t}))},t.prototype.Jn=function(t,e,n){var r=st();return e.forEach((function(t,e){for(var i=0,o=n;i<o.length;i++)e=o[i].In(t,e);r=r.nt(t,e)})),r},t.prototype.Xn=function(t,e){var n=this;return this.jn.getEntries(t,e).next((function(e){return n.Zn(t,e)}))},t.prototype.Zn=function(t,e){var n=this;return this.Kn.ts(t,e).next((function(r){var i=n.Jn(t,e,r),o=at();return i.forEach((function(t,e){e||(e=new on(t,M.min())),o=o.nt(t,e)})),o}))},t.prototype.es=function(t,e,n){return function(t){return F.W(t.path)&&null===t.collectionGroup&&0===t.filters.length}(e)?this.ns(t,e.path):fn(e)?this.ss(t,e,n):this.rs(t,e,n)},t.prototype.ns=function(t,e){return this.zn(t,new F(e)).next((function(t){var e=lt();return t instanceof rn&&(e=e.nt(t.key,t)),e}))},t.prototype.ss=function(t,e,n){var r=this,i=e.collectionGroup,o=lt();return this.Gn.os(t,i).next((function(a){return qn.forEach(a,(function(a){var s=e.rn(a.child(i));return r.rs(t,s,n).next((function(t){t.forEach((function(t,e){o=o.nt(t,e)}))}))})).next((function(){return o}))}))},t.prototype.rs=function(t,e,n){var r,i,o=this;return this.jn.es(t,e,n).next((function(n){return r=n,o.Kn.hs(t,e)})).next((function(e){return i=e,o.as(t,i,r).next((function(t){r=t;for(var e=0,n=i;e<n.length;e++)for(var o=n[e],a=0,s=o.mutations;a<s.length;a++){var u=s[a],l=u.key,c=r.get(l),f=Be(u,c,c,o.wn);r=f instanceof rn?r.nt(l,f):r.remove(l)}}))})).next((function(){return r.forEach((function(t,n){wn(e,n)||(r=r.remove(t))})),r}))},t.prototype.as=function(t,e,n){for(var r=ht(),i=0,o=e;i<o.length;i++)for(var a=0,s=o[i].mutations;a<s.length;a++){var u=s[a];u instanceof Ye&&null===n.get(u.key)&&(r=r.add(u.key))}var l=n;return this.jn.getEntries(t,r).next((function(t){return t.forEach((function(t,e){null!==e&&e instanceof rn&&(l=l.nt(t,e))})),l}))},t}(),Hn=function(){function t(t,e,n,r){this.targetId=t,this.fromCache=e,this.us=n,this.cs=r}return t.ls=function(e,n){for(var r=ht(),i=ht(),o=0,a=n.docChanges;o<a.length;o++){var s=a[o];switch(s.type){case 0:r=r.add(s.doc.key);break;case 1:i=i.add(s.doc.key)}}return new t(e,n.fromCache,r,i)},t}(),Yn=function(){function t(t,e){var n=this;this.previousValue=t,e&&(e._s=function(t){return n.fs(t)},this.ds=function(t){return e.ws(t)})}return t.prototype.fs=function(t){return this.previousValue=Math.max(t,this.previousValue),this.previousValue},t.prototype.next=function(){var t=++this.previousValue;return this.ds&&this.ds(t),t},t}();Yn.Ts=-1;var Gn=function(){var t=this;this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n}))},Kn=function(){function t(t,e,n,r,i){void 0===n&&(n=1e3),void 0===r&&(r=1.5),void 0===i&&(i=6e4),this.Es=t,this.Is=e,this.ms=n,this.As=r,this.Rs=i,this.Ps=0,this.Vs=null,this.gs=Date.now(),this.reset()}return t.prototype.reset=function(){this.Ps=0},t.prototype.ys=function(){this.Ps=this.Rs},t.prototype.ps=function(t){var e=this;this.cancel();var n=Math.floor(this.Ps+this.bs()),r=Math.max(0,Date.now()-this.gs),i=Math.max(0,n-r);i>0&&h("ExponentialBackoff","Backing off for "+i+" ms (base delay: "+this.Ps+" ms, delay with 
2jitter: "+n+" ms, last attempt: "+r+" ms ago)"),this.Vs=this.Es.vs(this.Is,i,(function(){return e.gs=Date.now(),t()})),this.Ps*=this.As,this.Ps<this.ms&&(this.Ps=this.ms),this.Ps>this.Rs&&(this.Ps=this.Rs)},t.prototype.Ss=function(){null!==this.Vs&&(this.Vs.Ds(),this.Vs=null)},t.prototype.cancel=function(){null!==this.Vs&&(this.Vs.cancel(),this.Vs=null)},t.prototype.bs=function(){return(Math.random()-.5)*this.Ps},t}(),Xn=function(){function e(t,n,r){this.name=t,this.version=n,this.Cs=r,12.2===e.Ns(s.getUA())&&d("Firestore persistence suffers from a bug in iOS 12.2 Safari that may cause your app to stop working. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.")}return e.delete=function(t){return h("SimpleDb","Removing database:",t),er(window.indexedDB.deleteDatabase(t)).vn()},e.Fs=function(){if("undefined"==typeof indexedDB)return!1;if(e.ks())return!0;var t=s.getUA(),n=e.Ns(t),r=0<n&&n<10,i=e.xs(t),o=0<i&&i<4.5;return!(t.indexOf("MSIE ")>0||t.indexOf("Trident/")>0||t.indexOf("Edge/")>0||r||o)},e.ks=function(){var e;return"undefined"!=typeof t&&"YES"===(null===(e=Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}))||void 0===e?void 0:e.$s)},e.Ms=function(t,e){return t.store(e)},e.Ns=function(t){var e=t.match(/i(?:phone|pad|pod) os ([\d_]+)/i),n=e?e[1].split("_").slice(0,2).join("."):"-1";return Number(n)},e.xs=function(t){var e=t.match(/Android ([\d.]+)/i),n=e?e[1].split(".").slice(0,2).join("."):"-1";return Number(n)},e.prototype.Os=function(){return i.__awaiter(this,void 0,void 0,(function(){var t,e=this;return i.__generator(this,(function(n){switch(n.label){case 0:return this.db?[3,2]:(h("SimpleDb","Opening database:",this.name),t=this,[4,new Promise((function(t,n){var r=indexedDB.open(e.name,e.version);r.onsuccess=function(e){var n=e.target.result;t(n)},r.onblocked=function(){n(new Zn("Cannot upgrade IndexedDB schema while another tab is open. Close all tabs that access Firestore and reload this page to proceed."))},r.onerror=function(t){var e=t.target.error;"VersionError"===e.name?n(new I(N.FAILED_PRECONDITION,"A newer version of the Firestore SDK was previously used and so the persisted data is not compatible with the version of the SDK you are now using. The SDK will operate with persistence disabled. If you need persistence, please re-upgrade to a newer version of the SDK or else clear the persisted IndexedDB data for your app to start fresh.")):n(new Zn(e))},r.onupgradeneeded=function(t){h("SimpleDb",'Database "'+e.name+'" requires upgrade from version:',t.oldVersion);var n=t.target.result;e.Cs.createOrUpgrade(n,r.transaction,t.oldVersion,e.version).next((function(){h("SimpleDb","Database upgrade to version "+e.version+" complete")}))}}))]);case 1:t.db=n.sent(),n.label=2;case 2:return[2,(this.Ls&&(this.db.onversionchange=function(t){return e.Ls(t)}),this.db)]}}))}))},e.prototype.qs=function(t){this.Ls=t,this.db&&(this.db.onversionchange=function(e){return t(e)})},e.prototype.runTransaction=function(t,e,n){return i.__awaiter(this,void 0,void 0,(function(){var r,o,a,s,u;return i.__generator(this,(function(l){switch(l.label){case 0:r="readonly"===t,o=0,a=function(){var t,a,u,l,c;return i.__generator(this,(function(i){switch(i.label){case 0:++o,i.label=1;case 1:return i.trys.push([1,4,,5]),[4,s.Os()];case 2:return s.db=i.sent(),t=Jn.open(s.db,r?"readonly":"readwrite",e),a=n(t).catch((function(e){return t.abort(e),qn.reject(e)})).vn(),u={},a.catch((function(){})),[4,t.Bs];case 3:return[2,(u.value=(i.sent(),a),u)];case 4:return l=i.sent(),c="FirebaseError"!==l.name&&o<3,h("SimpleDb","Transaction failed with error: %s. Retrying: %s.",l.message,c),s.close(),c?[3,5]:[2,{value:Promise.reject(l)}];case 5:return[2]}}
2))},s=this,l.label=1;case 1:return[5,a()];case 2:if("object"==typeof(u=l.sent()))return[2,u.value];l.label=3;case 3:return[3,1];case 4:return[2]}}))}))},e.prototype.close=function(){this.db&&this.db.close(),this.db=void 0},e}(),$n=function(){function t(t){this.Us=t,this.Qs=!1,this.Ws=null}return Object.defineProperty(t.prototype,"gn",{get:function(){return this.Qs},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"js",{get:function(){return this.Ws},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cursor",{set:function(t){this.Us=t},enumerable:!1,configurable:!0}),t.prototype.done=function(){this.Qs=!0},t.prototype.Ks=function(t){this.Ws=t},t.prototype.delete=function(){return er(this.Us.delete())},t}(),Zn=function(t){function e(e){var n=this;return(n=t.call(this,N.UNAVAILABLE,"IndexedDB transaction failed: "+e)||this).name="IndexedDbTransactionError",n}return i.__extends(e,t),e}(I);function Qn(t){return"IndexedDbTransactionError"===t.name}var Jn=function(){function t(t){var e=this;this.transaction=t,this.aborted=!1,this.Gs=new Gn,this.transaction.oncomplete=function(){e.Gs.resolve()},this.transaction.onabort=function(){t.error?e.Gs.reject(new Zn(t.error)):e.Gs.resolve()},this.transaction.onerror=function(t){var n=rr(t.target.error);e.Gs.reject(new Zn(n))}}return t.open=function(e,n,r){try{return new t(e.transaction(r,n))}catch(e){throw new Zn(e)}},Object.defineProperty(t.prototype,"Bs",{get:function(){return this.Gs.promise},enumerable:!1,configurable:!0}),t.prototype.abort=function(t){t&&this.Gs.reject(t),this.aborted||(h("SimpleDb","Aborting transaction:",t?t.message:"Client-initiated abort"),this.aborted=!0,this.transaction.abort())},t.prototype.store=function(t){var e=this.transaction.objectStore(t);return new tr(e)},t}(),tr=function(){function t(t){this.store=t}return t.prototype.put=function(t,e){var n;return void 0!==e?(h("SimpleDb","PUT",this.store.name,t,e),n=this.store.put(e,t)):(h("SimpleDb","PUT",this.store.name,"<auto-key>",t),n=this.store.put(t)),er(n)},t.prototype.add=function(t){return h("SimpleDb","ADD",this.store.name,t,t),er(this.store.add(t))},t.prototype.get=function(t){var e=this;return er(this.store.get(t)).next((function(n){return void 0===n&&(n=null),h("SimpleDb","GET",e.store.name,t,n),n}))},t.prototype.delete=function(t){return h("SimpleDb","DELETE",this.store.name,t),er(this.store.delete(t))},t.prototype.count=function(){return h("SimpleDb","COUNT",this.store.name),er(this.store.count())},t.prototype.zs=function(t,e){var n=this.cursor(this.options(t,e)),r=[];return this.Hs(n,(function(t,e){r.push(e)})).next((function(){return r}))},t.prototype.Ys=function(t,e){h("SimpleDb","DELETE ALL",this.store.name);var n=this.options(t,e);n.Js=!1;var r=this.cursor(n);return this.Hs(r,(function(t,e,n){return n.delete()}))},t.prototype.Xs=function(t,e){var n;e?n=t:(n={},e=t);var r=this.cursor(n);return this.Hs(r,e)},t.prototype.Zs=function(t){var e=this.cursor({});return new qn((function(n,r){e.onerror=function(t){var e=rr(t.target.error);r(e)},e.onsuccess=function(e){var r=e.target.result;r?t(r.primaryKey,r.value).next((function(t){t?r.continue():n()})):n()}}))},t.prototype.Hs=function(t,e){var n=[];return new qn((function(r,i){t.onerror=function(t){i(t.target.error)},t.onsuccess=function(t){var i=t.target.result;if(i){var o=new $n(i),a=e(i.primaryKey,i.value,o);if(a instanceof qn){var s=a.catch((function(t){return o.done(),qn.reject(t)}));n.push(s)}o.gn?r():null===o.js?i.continue():i.continue(o.js)}else r()}})).next((function(){return qn.Dn(n)}))},t.prototype.options=function(t,e){var n=void 0;return void 0!==t&&("string"==typeof t?n=t:e=t),{index:n,range:e}},t.prototype.cursor=function(t){var e="next";if(t.reverse&&(e="prev"),t.index){var n=this.store.index(t.index);return t.Js?n.openKeyCursor(t.range,e):n.openCursor(t.range,e)}return this.store.openCursor(t.range,e)},t}();function er(t){return new qn((function(e,n){t.onsuccess=function(t){var n=t.target.result;e(n)},t.onerror=function(t){var e=rr(t.target.error);n(e)}}))}var nr=!1;function rr(t){var e=Xn.Ns(s.getUA());if(e>=12.2&&e<13){var n="An internal error was encountered in the Indexed Database server";if(t.message.indexOf(n)>=0){var r=new I("internal","IOS_INDEXEDDB_BUG1: IndexedDb has thrown '"+n+"'. This is likely due to an unavoidable bug in iOS. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.");return nr||(nr=!0,setTimeout((function(){throw r}),0)),r}}return t}function ir(){return"undefined"!=typeof window?window:null}function or(){return"undefined"!=typeof document?document:null}var ar=function(){function t(t,e,n,r,i){this.ti=t,this.Is=e,this.ei=n,this.op=r,this.ni=i,this.si=new Gn,this.then=this.si.promise.then.bind(this.si.promise),this.si.promise.catch((function(t){}))}return t.ii=function(e,n,r,i,o){var a=new t(e,n,Date.now()+r,i,o);return a.start(r),a},t.prototype.start=function(t){var e=this;this.ri=setTimeout((function(){return e.oi()}),t)},t.prototype.Ds=function(){return this.oi()},t.prototype.cancel=function(t){null!==this.ri&&(this.clearTimeout(),this.si.reject(new I(N.CANCELLED,"Operation cancelled"+(t?": "+t:"")))
2)},t.prototype.oi=function(){var t=this;this.ti.hi((function(){return null!==t.ri?(t.clearTimeout(),t.op().then((function(e){return t.si.resolve(e)}))):Promise.resolve()}))},t.prototype.clearTimeout=function(){null!==this.ri&&(this.ni(this),clearTimeout(this.ri),this.ri=null)},t}(),sr=function(){function t(){var t=this;this.ai=Promise.resolve(),this.ui=[],this.ci=!1,this.li=[],this._i=null,this.fi=!1,this.di=[],this.wi=new Kn(this,"async_queue_retry"),this.Ti=function(){var e=or();e&&h("AsyncQueue","Visibility state changed to  ",e.visibilityState),t.wi.Ss()};var e=or();e&&"function"==typeof e.addEventListener&&e.addEventListener("visibilitychange",this.Ti)}return Object.defineProperty(t.prototype,"Ei",{get:function(){return this.ci},enumerable:!1,configurable:!0}),t.prototype.hi=function(t){this.enqueue(t)},t.prototype.Ii=function(t){this.mi(),this.Ai(t)},t.prototype.Ri=function(t){return this.mi(),this.Ai(t)},t.prototype.Pi=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e;return i.__generator(this,(function(n){switch(n.label){case 0:return this.mi(),this.ci?[3,2]:(this.ci=!0,(e=or())&&"function"==typeof e.removeEventListener&&e.removeEventListener("visibilitychange",this.Ti),[4,this.Ri(t)]);case 1:n.sent(),n.label=2;case 2:return[2]}}
2))}))},t.prototype.enqueue=function(t){return this.mi(),this.ci?new Promise((function(t){})):this.Ai(t)},t.prototype.Vi=function(t){var e=this;this.ui.push(t),this.hi((function(){return e.gi()}))},t.prototype.gi=function(){return i.__awaiter(this,void 0,void 0,(function(){var t,e=this;return i.__generator(this,(function(n){switch(n.label){case 0:if(0===this.ui.length)return[3,5];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.ui[0]()];case 2:return n.sent(),this.ui.shift(),this.wi.reset(),[3,4];case 3:if(!Qn(t=n.sent()))throw t;return h("AsyncQueue","Operation failed with retryable error: "+t),[3,4];case 4:this.ui.length>0&&this.wi.ps((function(){return e.gi()})),n.label=5;case 5:return[2]}}))}))},t.prototype.Ai=function(t){var e=this,n=this.ai.then((function(){return e.fi=!0,t().catch((function(t){throw e._i=t,e.fi=!1,d("INTERNAL UNHANDLED ERROR: ",function(t){var e=t.message||"";return t.stack&&(e=t.stack.includes(t.message)?t.stack:t.message+"\n"+t.stack),e}(t)),t})).then((function(t){return e.fi=!1,t}))}));return this.ai=n,n},t.prototype.vs=function(t,e,n){var r=this;this.mi(),this.di.indexOf(t)>-1&&(e=0);var i=ar.ii(this,t,e,n,(function(t){return r.yi(t)}));return this.li.push(i),i},t.prototype.mi=function(){this._i&&m()},t.prototype.pi=function(){},t.prototype.bi=function(){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(e){switch(e.label){case 0:return[4,t=this.ai];case 1:e.sent(),e.label=2;case 2:if(t!==this.ai)return[3,0];e.label=3;case 3:return[2]}}
2))}))},t.prototype.vi=function(t){for(var e=0,n=this.li;e<n.length;e++)if(n[e].Is===t)return!0;return!1},t.prototype.Si=function(t){var e=this;return this.bi().then((function(){e.li.sort((function(t,e){return t.ei-e.ei}));for(var n=0,r=e.li;n<r.length;n++){var i=r[n];if(i.Ds(),"all"!==t&&i.Is===t)break}return e.bi()}))},t.prototype.Di=function(t){this.di.push(t)},t.prototype.yi=function(t){var e=this.li.indexOf(t);this.li.splice(e,1)},t}();function ur(t,e){if(d("AsyncQueue",e+": "+t),Qn(t))return new I(N.UNAVAILABLE,e+": "+t);throw t}function lr(t,e){var n=t[0],r=t[1],i=e[0],o=e[1],a=_(n,i);return 0===a?_(r,o):a}var cr=function(){function t(t){this.Ci=t,this.buffer=new rt(lr),this.Ni=0}return t.prototype.Fi=function(){return++this.Ni},t.prototype.ki=function(t){var e=[t,this.Fi()];if(this.buffer.size<this.Ci)this.buffer=this.buffer.add(e);else{var n=this.buffer.last();lr(e,n)<0&&(this.buffer=this.buffer.delete(n).add(e))}},Object.defineProperty(t.prototype,"maxValue",{get:function(){return this.buffer.last()[0]},enumerable:!1,configurable:!0}),t}(),fr={xi:!1,$i:0,Mi:0,Oi:0},hr=function(){function t(t,e,n){this.Li=t,this.qi=e,this.Bi=n}return t.Ui=function(e){return new t(e,t.Qi,t.Wi)},t}();hr.ji=-1,hr.Ki=1048576,hr.Gi=41943040,hr.Qi=10,hr.Wi=1e3,hr.zi=new hr(hr.Gi,hr.Qi,hr.Wi),hr.Hi=new hr(hr.ji,0,0);var dr=function(){function t(t,e){this.Yi=t,this.ti=e,this.Ji=!1,this.Xi=null}return t.prototype.start=function(t){this.Yi.params.Li!==hr.ji&&this.Zi(t)},t.prototype.stop=function(){this.Xi&&(this.Xi.cancel(),this.Xi=null)},Object.defineProperty(t.prototype,"tr",{get:function(){return null!==this.Xi},enumerable:!1,configurable:!0}),t.prototype.Zi=function(t){var e=this,n=this.Ji?3e5:6e4;h("LruGarbageCollector","Garbage collection scheduled in "+n+"ms"),this.Xi=this.ti.vs("lru_garbage_collection",n,(function(){return i.__awaiter(e,void 0,void 0,(function(){var e;return i.__generator(this,(function(n){switch(n.label){case 0:this.Xi=null,this.Ji=!0,n.label=1;case 1:return n.trys.push([1,3,,7]),[4,t.er(this.Yi)];case 2:return n.sent(),[3,7];case 3:return Qn(e=n.sent())?(h("LruGarbageCollector","Ignoring IndexedDB error during garbage collection: ",e),[3,6]):[3,4];case 4:return[4,xi(e)];case 5:n.sent(),n.label=6;case 6:return[3,7];case 7:return[4,this.Zi(t)];case 8:return n.sent(),[2]}}))}))}))},t}(),pr=function(){function t(t,e){this.nr=t,this.params=e}return t.prototype.sr=function(t,e){return this.nr.ir(t).next((function(t){return Math.floor(e/100*t)}))},t.prototype.rr=function(t,e){var n=this;if(0===e)return qn.resolve(Yn.Ts);var r=new cr(e);return this.nr.pe(t,(function(t){return r.ki(t.sequenceNumber)})).next((function(){return n.nr.or(t,(function(t){return r.ki(t)}))})).next((function(){return r.maxValue}))},t.prototype.hr=function(t,e,n){return this.nr.hr(t,e,n)},t.prototype.ar=function(t,e){return this.nr.ar(t,e)},t.prototype.ur=function(t,e){var n=this;return this.params.Li===hr.ji?(h("LruGarbageCollector","Garbage collection skipped; disabled"),qn.resolve(fr)):this.cr(t).next((function(r){return r<n.params.Li?(h("LruGarbageCollector","Garbage collection skipped; Cache size "+r+" is lower than threshold "+n.params.Li),fr):n.lr(t,e)}))},t.prototype.cr=function(t){return this.nr.cr(t)},t.prototype.lr=function(t,e){var n,r,i,o,s,u,l,c=this,d=Date.now();return this.sr(t,this.params.qi).next((function(e){return e>c.params.Bi?(h("LruGarbageCollector","Capping sequence numbers to collect down to the maximum of "+c.params.Bi+" from "+e),r=c.params.Bi):r=e,o=Date.now(),c.rr(t,r)})).next((function(r){return n=r,s=Date.now(),c.hr(t,n,e)})).next((function(e){return i=e,u=Date.now(),c.ar(t,n)})).next((function(t){return l=Date.now(),f()<=a.LogLevel.DEBUG&&h("LruGarbageCollector","LRU Garbage Collection\n\tCounted targets in "+(o-d)+"ms\n\tDetermined least recently used "+r+" in "+(s-o)+"ms\n\tRemoved "+i+" targets in "+(u-s)+"ms\n\tRemoved "+t+" documents in "+(l-u)+"ms\nTotal Duration: "+(l-d)+"ms"),qn.resolve({xi:!0,$i:r,Mi:i,Oi:t})}))},t}();function vr(t){for(var e="",n=0;n<t.length;n++)e.length>0&&(e=gr(e)),e=mr(t.get(n),e);return gr(e)}function mr(t,e){for(var n=e,r=t.length,i=0;i<r;i++){var o=t.charAt(i);switch(o){case"\0":n+="\x01\x10";break;case"\x01":n+="\x01\x11";break;default:n+=o}}return n}function gr(t){return t+"\x01\x01"}function yr(t){var e=t.length;
2if(g(e>=2),2===e)return g("\x01"===t.charAt(0)&&"\x01"===t.charAt(1)),R.$();for(var n=e-2,r=[],i="",o=0;o<e;){var a=t.indexOf("\x01",o);switch((a<0||a>n)&&m(),t.charAt(a+1)){case"\x01":var s=t.substring(o,a),u=void 0;0===i.length?u=s:(u=i+=s,i=""),r.push(u);break;case"\x10":i+=t.substring(o,a),i+="\0";break;case"\x11":i+=t.substring(o,a+1);break;default:m()}o=a+2}return new R(r)}var br=function(t){this._r=t};function wr(t,e){if(e.document)return function(t,e,n){var r=ie(t,e.name),i=te(e.updateTime),o=new Je({mapValue:{fields:e.fields}});return new rn(r,i,o,{hasCommittedMutations:!!n})}(t._r,e.document,!!e.hasCommittedMutations);if(e.noDocument){var n=F.j(e.noDocument.path),r=Tr(e.noDocument.readTime);return new on(n,r,{hasCommittedMutations:!!e.hasCommittedMutations})}if(e.unknownDocument){var i=F.j(e.unknownDocument.path),o=Tr(e.unknownDocument.version);return new an(i,o)}return m()}function _r(t,e,n){var r=xr(n),i=e.key.path.p().N();if(e instanceof rn){var o=function(t,e){return{name:re(t,e.key),fields:e.Ze().mapValue.fields,updateTime:Zt(t,e.version.A())}}(t._r,e),a=e.hasCommittedMutations;return new $r(null,null,o,a,r,i)}if(e instanceof on){var s=e.key.path.N(),u=kr(e.version),l=e.hasCommittedMutations;return new $r(null,new Kr(s,u),null,l,r,i)}if(e instanceof an){var c=e.key.path.N(),f=kr(e.version);return new $r(new Xr(c,f),null,null,!0,r,i)}return m()}function xr(t){var e=t.A();return[e.seconds,e.nanoseconds]}function Er(t){var e=new P(t[0],t[1]);return M.I(e)}function kr(t){var e=t.A();return new zr(e.seconds,e.nanoseconds)}function Tr(t){var e=new P(t.seconds,t.nanoseconds);return M.I(e)}function Sr(t,e){var n=(e.baseMutations||[]).map((function(e){return fe(t._r,e)})),r=e.mutations.map((function(e){return fe(t._r,e)})),i=P.fromMillis(e.localWriteTimeMs);return new Fn(e.batchId,i,n,r)}function Or(t){var e,n,r=Tr(t.readTime),i=void 0!==t.lastLimboFreeSnapshotVersion?Tr(t.lastLimboFreeSnapshotVersion):M.min();return void 0!==t.query.documents?(g(1===(n=t.query).documents.length),e=dn(cn(ae(n.documents[0])))):e=function(t){var e=ae(t.parent),n=t.structuredQuery,r=n.from?n.from.length:0,i=null;if(r>0){g(1===r);var o=n.from[0];o.allDescendants?i=o.collectionId:e=e.child(o.collectionId)}var a=[];n.where&&(a=function t(e){return e?void 0!==e.unaryFilter?[be(e)]:void 0!==e.fieldFilter?[ye(e)]:void 0!==e.compositeFilter?e.compositeFilter.filters.map((function(e){return t(e)})).reduce((function(t,e){return t.concat(e)})):m():[]}(n.where));var s=[];n.orderBy&&(s=n.orderBy.map((function(t){return new Rn(ge((e=t).field),function(t){switch(t){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(e.direction));var e})));var u=null;n.limit&&(u=function(t){var e;return U(e="object"==typeof t?t.value:t)?null:e}(n.limit));var l=null;n.startAt&&(l=ve(n.startAt));var c=null;return n.endAt&&(c=ve(n.endAt)),dn(ln(e,i,s,a,u,"F",l,c))}(t.query),new $(e,t.targetId,0,t.lastListenSequenceNumber,r,i,G.fromBase64String(t.resumeToken))}function Ar(t,e){var n,r=kr(e.X),i=kr(e.lastLimboFreeSnapshotVersion);n=Y(e.target)?he(t._r,e.target):de(t._r,e.target);var o=e.resumeToken.toBase64();return new Qr(e.targetId,W(e.target),r,o,e.sequenceNumber,i,n)}var Cr=function(){function t(t,e,n,r){this.userId=t,this.serializer=e,this.Gn=n,this.dr=r,this.wr={}}return t.Tr=function(e,n,r,i){return g(""!==e.uid),new t(e.Er()?e.uid:"",n,r,i)},t.prototype.Ir=function(t){var e=!0,n=IDBKeyRange.bound([this.userId,Number.NEGATIVE_INFINITY],[this.userId,Number.POSITIVE_INFINITY]);return Pr(t).Xs({index:Yr.userMutationsIndex,range:n},(function(t,n,r){e=!1,r.done()})).next((function(){return e}))},t.prototype.mr=function(t,e,n,r){var i=this,o=Mr(t),a=Pr(t);return a.add({}).next((function(s){g("number"==typeof s);for(var u=new Fn(s,e,n,r),l=function(t,e,n){var r=n.baseMutations.map((function(e){return ce(t._r,e)})),i=n.mutations.map((function(e){return ce(t._r,e)}));return new Yr(e,n.batchId,n.wn.toMillis(),r,i)}(i.serializer,i.userId,u),c=[],f=new rt((function(t,e){return _(t.F(),e.F())})),h=0,d=r;h<d.length;h++){var p=d[h],v=Gr.key(i.userId,p.key.path,s);f=f.add(p.key.path.p()),c.push(a.put(l)),c.push(o.put(v,Gr.PLACEHOLDER))}return f.forEach((function(e){c.push(i.Gn.Ar(t,e))}
2)),t.Qn((function(){i.wr[s]=u.keys()})),qn.Dn(c).next((function(){return u}))}))},t.prototype.Rr=function(t,e){var n=this;return Pr(t).get(e).next((function(t){return t?(g(t.userId===n.userId),Sr(n.serializer,t)):null}))},t.prototype.Pr=function(t,e){var n=this;return this.wr[e]?qn.resolve(this.wr[e]):this.Rr(t,e).next((function(t){if(t){var r=t.keys();return n.wr[e]=r,r}return null}))},t.prototype.Vr=function(t,e){var n=this,r=e+1,i=IDBKeyRange.lowerBound([this.userId,r]),o=null;return Pr(t).Xs({index:Yr.userMutationsIndex,range:i},(function(t,e,i){e.userId===n.userId&&(g(e.batchId>=r),o=Sr(n.serializer,e)),i.done()})).next((function(){return o}))},t.prototype.gr=function(t){var e=IDBKeyRange.upperBound([this.userId,Number.POSITIVE_INFINITY]),n=-1;return Pr(t).Xs({index:Yr.userMutationsIndex,range:e,reverse:!0},(function(t,e,r){n=e.batchId,r.done()})).next((function(){return n}))},t.prototype.yr=function(t){var e=this,n=IDBKeyRange.bound([this.userId,-1],[this.userId,Number.POSITIVE_INFINITY]);return Pr(t).zs(Yr.userMutationsIndex,n).next((function(t){return t.map((function(t){return Sr(e.serializer,t)}))}))},t.prototype.Hn=function(t,e){var n=this,r=Gr.prefixForPath(this.userId,e.path),i=IDBKeyRange.lowerBound(r),o=[];return Mr(t).Xs({range:i},(function(r,i,a){var s=r[0],u=r[1],l=r[2],c=yr(u);if(s===n.userId&&e.path.isEqual(c))return Pr(t).get(l).next((function(t){if(!t)throw m();g(t.userId===n.userId),o.push(Sr(n.serializer,t))}));a.done()})).next((function(){return o}))},t.prototype.ts=function(t,e){var n=this,r=new rt(_),i=[];return e.forEach((function(e){var o=Gr.prefixForPath(n.userId,e.path),a=IDBKeyRange.lowerBound(o),s=Mr(t).Xs({range:a},(function(t,i,o){var a=t[0],s=t[1],u=t[2],l=yr(s);a===n.userId&&e.path.isEqual(l)?r=r.add(u):o.done()}));i.push(s)})),qn.Dn(i).next((function(){return n.pr(t,r)}))},t.prototype.hs=function(t,e){var n=this,r=e.path,i=r.length+1,o=Gr.prefixForPath(this.userId,r),a=IDBKeyRange.lowerBound(o),s=new rt(_);return Mr(t).Xs({range:a},(function(t,e,o){var a=t[0],u=t[1],l=t[2],c=yr(u);a===n.userId&&r.D(c)?c.length===i&&(s=s.add(l)):o.done()})).next((function(){return n.pr(t,s)}))},t.prototype.pr=function(t,e){var n=this,r=[],i=[];return e.forEach((function(e){i.push(Pr(t).get(e).next((function(t){if(null===t)throw m();g(t.userId===n.userId),r.push(Sr(n.serializer,t))})))})),qn.Dn(i).next((function(){return r}))},t.prototype.br=function(t,e){var n=this;return Ir(t.vr,this.userId,e).next((function(r){return t.Qn((function(){n.Sr(e.batchId)})),qn.forEach(r,(function(e){return n.dr.Dr(t,e)}))}))},t.prototype.Sr=function(t){delete this.wr[t]},t.prototype.Cr=function(t){var e=this;return this.Ir(t).next((function(n){if(!n)return qn.resolve();var r=IDBKeyRange.lowerBound(Gr.prefixForUser(e.userId)),i=[];return Mr(t).Xs({range:r},(function(t,n,r){if(t[0]===e.userId){var o=yr(t[1]);i.push(o)}else r.done()})).next((function(){g(0===i.length)}))}))},t.prototype.Nr=function(t,e){return Nr(t,this.userId,e)},t.prototype.Fr=function(t){var e=this;return Dr(t).get(this.userId).next((function(t){return t||new Hr(e.userId,-1,"")}))},t}();function Nr(t,e,n){var r=Gr.prefixForPath(e,n.path),i=r[1],o=IDBKeyRange.lowerBound(r),a=!1;return Mr(t).Xs({range:o,Js:!0},(function(t,n,r){var o=t[0],s=t[1];t[2],o===e&&s===i&&(a=!0),r.done()})).next((function(){return a}))}function Ir(t,e,n){var r=t.store(Yr.store),i=t.store(Gr.store),o=[],a=IDBKeyRange.only(n.batchId),s=0,u=r.Xs({range:a},(function(t,e,n){return s++,n.delete()}));o.push(u.next((function(){g(1===s)})));for(var l=[],c=0,f=n.mutations;c<f.length;c++){var h=f[c],d=Gr.key(e,h.key.path,n.batchId);o.push(i.delete(d)),l.push(h.key)}return qn.Dn(o).next((function(){return l}))}function Pr(t){return pi.Ms(t,Yr.store)}function Mr(t){return pi.Ms(t,Gr.store)}function Dr(t){return pi.Ms(t,Hr.store)}var Rr=function(){function t(t,e){this.serializer=t,this.Gn=e}return t.prototype.xn=function(t,e,n){return jr(t).put(Fr(e),n)},t.prototype.Mn=function(t,e){var n=jr(t),r=Fr(e);return n.delete(r)},t.prototype.updateMetadata=function(t,e){var n=this;return this.getMetadata(t).next((function(r){return r.byteSize+=e,n.kr(t,r)}))},t.prototype.On=function(t,e){var n=this;return jr(t).get(Fr(e)).next((function(t){return n.xr(t)}))},t.prototype.$r=function(t,e){var n=this;return jr(t).get(Fr(e)).next((function(t){var e=n.xr(t);return e?{Mr:e,size:Ur(t)}:null}))},t.prototype.getEntries=function(t,e){var n=this,r=st();return this.Or(t,e,(function(t,e){var i=n.xr(e);r=r.nt(t,i)})).next((function(){return r}))},t.prototype.Lr=function(t,e){var n=this,r=st(),i=new tt(F.P);return this.Or(t,e,(function(t,e){var o=n.xr(e);o?(r=r.nt(t,o),i=i.nt(t,Ur(e))):(r=r.nt(t,null),i=i.nt(t,0))})).next((function(){return{qr:r,Br:i}}))},t.prototype.Or=function(t,e,n){if(e._())return qn.resolve();var r=IDBKeyRange.bound(e.first().path.N(),e.last().path.N()),i=e.at(),o=i.dt();return jr(t).Xs({range:r},(function(t,e,r){for(var a=F.j(t);o&&F.P(o,a)<0;)n(o,null),o=i.dt();o&&o.isEqual(a)&&(n(o,e),o=i.wt()?i.dt():null),o?r.Ks(o.path.N()):r.done()})).next((function(){for(;o;)n(o,null),o=i.wt()?i.dt():null}))},t.prototype.es=function(t,e,n){var r=this,i=lt(),o=e.path.length+1,a={};if(n.isEqual(M.min())){var s=e.path.N();a.range=IDBKeyRange.lowerBound(s)}else{var u=e.path.N(),l=xr(n);a.range=IDBKeyRange.lowerBound([u,l],!0),a.index=$r.collectionReadTimeIndex}return jr(t).Xs(a,(function(t,n,a){if(t.length===o){var s=wr(r.serializer,n);e.path.D(s.key.path)?s instanceof rn&&wn(e,s)&&(i=i.nt(s.key,s)):a.done()}})).next((function(){return i}))},t.prototype.Ur=function(t,e){var n=this,r=at(),i=xr(e),o=jr(t),a=IDBKeyRange.lowerBound(i,!0);return o.Xs({index:$r.readTimeIndex,range:a}
2,(function(t,e){var o=wr(n.serializer,e);r=r.nt(o.key,o),i=e.readTime})).next((function(){return{Qr:r,readTime:Er(i)}}))},t.prototype.Wr=function(t){var e=jr(t),n=M.min();return e.Xs({index:$r.readTimeIndex,reverse:!0},(function(t,e,r){e.readTime&&(n=Er(e.readTime)),r.done()})).next((function(){return n}))},t.prototype.jr=function(e){return new t.Kr(this,!!e&&e.Gr)},t.prototype.zr=function(t){return this.getMetadata(t).next((function(t){return t.byteSize}))},t.prototype.getMetadata=function(t){return Lr(t).get(Zr.key).next((function(t){return g(!!t),t}))},t.prototype.kr=function(t,e){return Lr(t).put(Zr.key,e)},t.prototype.xr=function(t){if(t){var e=wr(this.serializer,t);return e instanceof on&&e.version.isEqual(M.min())?null:e}return null},t}();function Lr(t){return pi.Ms(t,Zr.store)}function jr(t){return pi.Ms(t,$r.store)}function Fr(t){return t.path.N()}function Ur(t){var e;if(t.document)e=t.document;else if(t.unknownDocument)e=t.unknownDocument;else{if(!t.noDocument)throw m();e=t.noDocument}return JSON.stringify(e).length}Rr.Kr=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).Hr=e,r.Gr=n,r.Yr=new C((function(t){return t.toString()}),(function(t,e){return t.isEqual(e)})),r}return i.__extends(e,t),e.prototype.Bn=function(t){var e=this,n=[],r=0,i=new rt((function(t,e){return _(t.F(),e.F())}));return this.Nn.forEach((function(o,a){var s=e.Yr.get(o);if(a){var u=_r(e.Hr.serializer,a,e.readTime);i=i.add(o.path.p());var l=Ur(u);r+=l-s,n.push(e.Hr.xn(t,o,u))}else if(r-=s,e.Gr){var c=_r(e.Hr.serializer,new on(o,M.min()),e.readTime);n.push(e.Hr.xn(t,o,c))}else n.push(e.Hr.Mn(t,o))})),i.forEach((function(r){n.push(e.Hr.Gn.Ar(t,r))})),n.push(this.Hr.updateMetadata(t,r)),qn.Dn(n)},e.prototype.Ln=function(t,e){var n=this;return this.Hr.$r(t,e).next((function(t){return null===t?(n.Yr.set(e,0),null):(n.Yr.set(e,t.size),t.Mr)}))},e.prototype.qn=function(t,e){var n=this;return this.Hr.Lr(t,e).next((function(t){var e=t.qr;return t.Br.forEach((function(t,e){n.Yr.set(t,e)})),e}))},e}(Bn);var qr=function(){function t(){this.Jr=new Br}return t.prototype.Ar=function(t,e){return this.Jr.add(e),qn.resolve()},t.prototype.os=function(t,e){return qn.resolve(this.Jr.getEntries(e))},t}(),Br=function(){function t(){this.index={}}return t.prototype.add=function(t){var e=t.S(),n=t.p(),r=this.index[e]||new rt(R.P),i=!r.has(n);return this.index[e]=r.add(n),i},t.prototype.has=function(t){var e=t.S(),n=t.p(),r=this.index[e];return r&&r.has(n)},t.prototype.getEntries=function(t){return(this.index[t]||new rt(R.P)).N()},t}(),Vr=function(){function t(t){this.serializer=t}return t.prototype.createOrUpgrade=function(t,e,n,r){var i=this;g(n<r&&n>=0&&r<=10);var o=new Jn(e);n<1&&r>=1&&(function(t){t.createObjectStore(Wr.store)}(t),function(t){t.createObjectStore(Hr.store,{keyPath:Hr.keyPath}),t.createObjectStore(Yr.store,{keyPath:Yr.keyPath,autoIncrement:!0}).createIndex(Yr.userMutationsIndex,Yr.userMutationsKeyPath,{unique:!0}),t.createObjectStore(Gr.store)}(t),ni(t),function(t){t.createObjectStore($r.store)}(t));var a=qn.resolve();return n<3&&r>=3&&(0!==n&&(function(t){t.deleteObjectStore(Jr.store),t.deleteObjectStore(Qr.store),t.deleteObjectStore(ti.store)}(t),ni(t)),a=a.next((function(){return function(t){var e=t.store(ti.store),n=new ti(0,0,M.min().A(),0);return e.put(ti.key,n)}(o)}))),n<4&&r>=4&&(0!==n&&(a=a.next((function(){return function(t,e){return e.store(Yr.store).zs().next((function(n){t.deleteObjectStore(Yr.store),t.createObjectStore(Yr.store,{keyPath:Yr.keyPath,autoIncrement:!0}).createIndex(Yr.userMutationsIndex,Yr.userMutationsKeyPath,{unique:!0});var r=e.store(Yr.store),i=n.map((function(t){return r.put(t)}));return qn.Dn(i)}))}(t,o)}))),a=a.next((function(){!function(t){t.createObjectStore(ri.store,{keyPath:ri.keyPath})}(t)}))),n<5&&r>=5&&(a=a.next((function(){return i.removeAcknowledgedMutations(o)}))),n<6&&r>=6&&(a=a.next((function(){return function(t){t.createObjectStore(Zr.store)}(t),i.addDocumentGlobal(o)}))),n<7&&r>=7&&(a=a.next((function(){return i.ensureSequenceNumbers(o)}))),n<8&&r>=8&&(a=a.next((function(){return i.createCollectionParentIndex(t,o)}))),n<9&&r>=9&&(a=a.next((function(){!function(t){t.objectStoreNames.contains("remoteDocumentChanges")&&t.deleteObjectStore("remoteDocumentChanges")}
2(t),function(t){var e=t.objectStore($r.store);e.createIndex($r.readTimeIndex,$r.readTimeIndexPath,{unique:!1}),e.createIndex($r.collectionReadTimeIndex,$r.collectionReadTimeIndexPath,{unique:!1})}(e)}))),n<10&&r>=10&&(a=a.next((function(){return i.rewriteCanonicalIds(o)}))),a},t.prototype.addDocumentGlobal=function(t){var e=0;return t.store($r.store).Xs((function(t,n){e+=Ur(n)})).next((function(){var n=new Zr(e);return t.store(Zr.store).put(Zr.key,n)}))},t.prototype.removeAcknowledgedMutations=function(t){var e=this,n=t.store(Hr.store),r=t.store(Yr.store);return n.zs().next((function(n){return qn.forEach(n,(function(n){var i=IDBKeyRange.bound([n.userId,-1],[n.userId,n.lastAcknowledgedBatchId]);return r.zs(Yr.userMutationsIndex,i).next((function(r){return qn.forEach(r,(function(r){g(r.userId===n.userId);var i=Sr(e.serializer,r);return Ir(t,n.userId,i).next((function(){}))}))}))}))}))},t.prototype.ensureSequenceNumbers=function(t){var e=t.store(Jr.store),n=t.store($r.store);return t.store(ti.store).get(ti.key).next((function(t){var r=[];return n.Xs((function(n,i){var o=new R(n),a=function(t){return[0,vr(t)]}(o);r.push(e.get(a).next((function(n){return n?qn.resolve():function(n){return e.put(new Jr(0,vr(n),t.highestListenSequenceNumber))}(o)})))})).next((function(){return qn.Dn(r)}))}))},t.prototype.createCollectionParentIndex=function(t,e){t.createObjectStore(ei.store,{keyPath:ei.keyPath});var n=e.store(ei.store),r=new Br,i=function(t){if(r.add(t)){var e=t.S(),i=t.p();return n.put({collectionId:e,parent:vr(i)})}};return e.store($r.store).Xs({Js:!0},(function(t,e){var n=new R(t);return i(n.p())})).next((function(){return e.store(Gr.store).Xs({Js:!0},(function(t,e){t[0];var n=t[1],r=(t[2],yr(n));return i(r.p())}))}))},t.prototype.rewriteCanonicalIds=function(t){var e=this,n=t.store(Qr.store);return n.Xs((function(t,r){var i=Or(r),o=Ar(e.serializer,i);return n.put(o)}))},t}(),zr=function(t,e){this.seconds=t,this.nanoseconds=e},Wr=function(t,e,n){this.ownerId=t,this.allowTabSynchronization=e,this.leaseTimestampMs=n};Wr.store="owner",Wr.key="owner";var Hr=function(t,e,n){this.userId=t,this.lastAcknowledgedBatchId=e,this.lastStreamToken=n};Hr.store="mutationQueues",Hr.keyPath="userId";var Yr=function(t,e,n,r,i){this.userId=t,this.batchId=e,this.localWriteTimeMs=n,this.baseMutations=r,this.mutations=i};Yr.store="mutations",Yr.keyPath="batchId",Yr.userMutationsIndex="userMutationsIndex",Yr.userMutationsKeyPath=["userId","batchId"];var Gr=function(){function t(){}return t.prefixForUser=function(t){return[t]},t.prefixForPath=function(t,e){return[t,vr(e)]},t.key=function(t,e,n){return[t,vr(e),n]},t}();Gr.store="documentMutations",Gr.PLACEHOLDER=new Gr;var Kr=function(t,e){this.path=t,this.readTime=e},Xr=function(t,e){this.path=t,this.version=e},$r=function(t,e,n,r,i,o){this.unknownDocument=t,this.noDocument=e,this.document=n,this.hasCommittedMutations=r,this.readTime=i,this.parentPath=o};$r.store="remoteDocuments",$r.readTimeIndex="readTimeIndex",$r.readTimeIndexPath="readTime",$r.collectionReadTimeIndex="collectionReadTimeIndex",$r.collectionReadTimeIndexPath=["parentPath","readTime"];var Zr=function(t){this.byteSize=t};Zr.store="remoteDocumentGlobal",Zr.key="remoteDocumentGlobalKey";var Qr=function(t,e,n,r,i,o,a){this.targetId=t,this.canonicalId=e,this.readTime=n,this.resumeToken=r,this.lastListenSequenceNumber=i,this.lastLimboFreeSnapshotVersion=o,this.query=a};Qr.store="targets",Qr.keyPath="targetId",Qr.queryTargetsIndexName="queryTargetsIndex",Qr.queryTargetsKeyPath=["canonicalId","targetId"];var Jr=function(t,e,n){this.targetId=t,this.path=e,this.sequenceNumber=n};Jr.store="targetDocuments",Jr.keyPath=["targetId","path"],Jr.documentTargetsIndex="documentTargetsIndex",Jr.documentTargetsKeyPath=["path","targetId"];var ti=function(t,e,n,r){this.highestTargetId=t,this.highestListenSequenceNumber=e,this.lastRemoteSnapshotVersion=n,this.targetCount=r};ti.key="targetGlobalKey",ti.store="targetGlobal";var ei=function(t,e){this.collectionId=t,this.parent=e};function ni(t){t.createObjectStore(Jr.store,{keyPath:Jr.keyPath}).createIndex(Jr.documentTargetsIndex,Jr.documentTargetsKeyPath,{unique:!0}),t.createObjectStore(Qr.store,{keyPath:Qr.keyPath}).createIndex(Qr.queryTargetsIndexName,Qr.queryTargetsKeyPath,{unique:!0}),t.createObjectStore(ti.store)}ei.store="collectionParents",ei.keyPath=["collectionId","parent"];var ri=function(t,e,n,r){this.clientId=t,this.updateTimeMs=e,this.networkEnabled=n,this.inForeground=r};ri.store="clientMetadata",ri.keyPath="clientId";var ii=i.__spreadArrays(i.__spreadArrays(i.__spreadArrays([Hr.store,Yr.store,Gr.store,$r.store,Qr.store,Wr.store,ti.store,Jr.store],[ri.store]),[Zr.store]),[ei.store]),oi=function(){function t(){this.Xr=new Br}return t.prototype.Ar=function(t,e){var n=this;if(!this.Xr.has(e)){var r=e.S(),i=e.p();t.Qn((function(){n.Xr.add(e)}));var o={collectionId:r,parent:vr(i)};return ai(t).put(o)}return qn.resolve()},t.prototype.os=function(t,e){var n=[],r=IDBKeyRange.bound([e,""],[E(e),""],!1,!0);return ai(t).zs(r).next((function(t){for(var r=0,i=t;r<i.length;r++){var o=i[r];if(o.collectionId!==e)break;n.push(yr(o.parent))}return n}))},t}();function ai(t){return pi.Ms(t,ei.store)}var si=function(){function t(t){this.Zr=t}return t.prototype.next=function(){return this.Zr+=2,this.Zr},t.to=function(){return new t(0)},t.eo=function(){return new t(-1)},t}
2(),ui=function(){function t(t,e){this.dr=t,this.serializer=e}return t.prototype.no=function(t){var e=this;return this.so(t).next((function(n){var r=new si(n.highestTargetId);return n.highestTargetId=r.next(),e.io(t,n).next((function(){return n.highestTargetId}))}))},t.prototype.ro=function(t){return this.so(t).next((function(t){return M.I(new P(t.lastRemoteSnapshotVersion.seconds,t.lastRemoteSnapshotVersion.nanoseconds))}))},t.prototype.oo=function(t){return this.so(t).next((function(t){return t.highestListenSequenceNumber}))},t.prototype.ho=function(t,e,n){var r=this;return this.so(t).next((function(i){return i.highestListenSequenceNumber=e,n&&(i.lastRemoteSnapshotVersion=n.A()),e>i.highestListenSequenceNumber&&(i.highestListenSequenceNumber=e),r.io(t,i)}))},t.prototype.ao=function(t,e){var n=this;return this.uo(t,e).next((function(){return n.so(t).next((function(r){return r.targetCount+=1,n.co(e,r),n.io(t,r)}))}))},t.prototype.lo=function(t,e){return this.uo(t,e)},t.prototype._o=function(t,e){var n=this;return this.fo(t,e.targetId).next((function(){return li(t).delete(e.targetId)})).next((function(){return n.so(t)})).next((function(e){return g(e.targetCount>0),e.targetCount-=1,n.io(t,e)}))},t.prototype.hr=function(t,e,n){var r=this,i=0,o=[];return li(t).Xs((function(a,s){var u=Or(s);u.sequenceNumber<=e&&null===n.get(u.targetId)&&(i++,o.push(r._o(t,u)))})).next((function(){return qn.Dn(o)})).next((function(){return i}))},t.prototype.pe=function(t,e){return li(t).Xs((function(t,n){var r=Or(n);e(r)}))},t.prototype.so=function(t){return ci(t).get(ti.key).next((function(t){return g(null!==t),t}))},t.prototype.io=function(t,e){return ci(t).put(ti.key,e)},t.prototype.uo=function(t,e){return li(t).put(Ar(this.serializer,e))},t.prototype.co=function(t,e){var n=!1;return t.targetId>e.highestTargetId&&(e.highestTargetId=t.targetId,n=!0),t.sequenceNumber>e.highestListenSequenceNumber&&(e.highestListenSequenceNumber=t.sequenceNumber,n=!0),n},t.prototype.do=function(t){return this.so(t).next((function(t){return t.targetCount}))},t.prototype.wo=function(t,e){var n=W(e),r=IDBKeyRange.bound([n,Number.NEGATIVE_INFINITY],[n,Number.POSITIVE_INFINITY]),i=null;return li(t).Xs({range:r,index:Qr.queryTargetsIndexName},(function(t,n,r){var o=Or(n);H(e,o.target)&&(i=o,r.done())})).next((function(){return i}))},t.prototype.To=function(t,e,n){var r=this,i=[],o=fi(t);return e.forEach((function(e){var a=vr(e.path);i.push(o.put(new Jr(n,a))),i.push(r.dr.Eo(t,n,e))})),qn.Dn(i)},t.prototype.Io=function(t,e,n){var r=this,i=fi(t);return qn.forEach(e,(function(e){var o=vr(e.path);return qn.Dn([i.delete([n,o]),r.dr.mo(t,n,e)])}))},t.prototype.fo=function(t,e){var n=fi(t),r=IDBKeyRange.bound([e],[e+1],!1,!0);return n.delete(r)},t.prototype.Ao=function(t,e){var n=IDBKeyRange.bound([e],[e+1],!1,!0),r=fi(t),i=ht();return r.Xs({range:n,Js:!0},(function(t,e,n){var r=yr(t[1]),o=new F(r);i=i.add(o)})).next((function(){return i}))},t.prototype.Nr=function(t,e){var n=vr(e.path),r=IDBKeyRange.bound([n],[E(n)],!1,!0),i=0;return fi(t).Xs({index:Jr.documentTargetsIndex,Js:!0,range:r},(function(t,e,n){var r=t[0];t[1],0!==r&&(i++,n.done())})).next((function(){return i>0}))},t.prototype.Me=function(t,e){return li(t).get(e).next((function(t){return t?Or(t):null}))},t}();function li(t){return pi.Ms(t,Qr.store)}function ci(t){return pi.Ms(t,ti.store)}function fi(t){return pi.Ms(t,Jr.store)}var hi="Failed to obtain exclusive access to the persistence layer. To allow shared access, make sure to invoke `enablePersistence()` with `synchronizeTabs:true` in all tabs. If you are using `experimentalForceOwningTab:true`, make sure that only one tab has persistence enabled at any given time.",di=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).vr=e,r.Ro=n,r}return i.__extends(e,t),e}(zn),pi=function(){function t(e,n,r,i,o,a,s,u,l,c){if(this.allowTabSynchronization=e,this.persistenceKey=n,this.clientId=r,this.Es=o,this.window=a,this.document=s,this.Po=l,this.Vo=c,this.yo=null,this.po=!1,this.isPrimary=!1,this.networkEnabled=!0,this.bo=null,this.inForeground=!1,this.vo=null,this.So=null,this.Do=Number.NEGATIVE_INFINITY,this.Co=function(t){return Promise.resolve()}
2,!t.Fs())throw new I(N.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");this.dr=new gi(this,i),this.No=n+"main",this.serializer=new br(u),this.Fo=new Xn(this.No,10,new Vr(this.serializer)),this.ko=new ui(this.dr,this.serializer),this.Gn=new oi,this.jn=new Rr(this.serializer,this.Gn),this.window&&this.window.localStorage?this.xo=this.window.localStorage:(this.xo=null,!1===c&&d("IndexedDbPersistence","LocalStorage is unavailable. As a result, persistence may not work reliably. In particular enablePersistence() could fail immediately after refreshing the page."))}return t.Ms=function(t,e){if(t instanceof di)return Xn.Ms(t.vr,e);throw m()},t.prototype.start=function(){var t=this;return this.$o().then((function(){if(!t.isPrimary&&!t.allowTabSynchronization)throw new I(N.FAILED_PRECONDITION,hi);return t.Mo(),t.Oo(),t.Lo(),t.runTransaction("getHighestListenSequenceNumber","readonly",(function(e){return t.ko.oo(e)}))})).then((function(e){t.yo=new Yn(e,t.Po)})).then((function(){t.po=!0})).catch((function(e){return t.Fo&&t.Fo.close(),Promise.reject(e)}))},t.prototype.qo=function(t){var e=this;return this.Co=function(n){return i.__awaiter(e,void 0,void 0,(function(){return i.__generator(this,(function(e){return this.tr?[2,t(n)]:[2]}))}))},t(this.isPrimary)},t.prototype.Bo=function(t){var e=this;this.Fo.qs((function(n){return i.__awaiter(e,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return null===n.newVersion?[4,t()]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}
2))}))}))},t.prototype.Uo=function(t){var e=this;this.networkEnabled!==t&&(this.networkEnabled=t,this.Es.hi((function(){return i.__awaiter(e,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.tr?[4,this.$o()]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))})))},t.prototype.$o=function(){var t=this;return this.runTransaction("updateClientMetadataAndTryBecomePrimary","readwrite",(function(e){return mi(e).put(new ri(t.clientId,Date.now(),t.networkEnabled,t.inForeground)).next((function(){if(t.isPrimary)return t.Qo(e).next((function(e){e||(t.isPrimary=!1,t.Es.Vi((function(){return t.Co(!1)})))}))})).next((function(){return t.Wo(e)})).next((function(n){return t.isPrimary&&!n?t.jo(e).next((function(){return!1})):!!n&&t.Ko(e).next((function(){return!0}))}))})).catch((function(e){if(Qn(e))return h("IndexedDbPersistence","Failed to extend owner lease: ",e),t.isPrimary;if(!t.allowTabSynchronization)throw e;return h("IndexedDbPersistence","Releasing owner lease after error during lease refresh",e),!1})).then((function(e){t.isPrimary!==e&&t.Es.Vi((function(){return t.Co(e)})),t.isPrimary=e}))},t.prototype.Qo=function(t){var e=this;return vi(t).get(Wr.key).next((function(t){return qn.resolve(e.Go(t))}))},t.prototype.zo=function(t){return mi(t).delete(this.clientId)},t.prototype.Ho=function(){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r,o,a=this;return i.__generator(this,(function(i){switch(i.label){case 0:return!this.isPrimary||this.Yo(this.Do,18e5)?[3,2]:(this.Do=Date.now(),[4,this.runTransaction("maybeGarbageCollectMultiClientState","readwrite-primary",(function(e){var n=t.Ms(e,ri.store);return n.zs().next((function(t){var e=a.Jo(t,18e5),r=t.filter((function(t){return-1===e.indexOf(t)}));return qn.forEach(r,(function(t){return n.delete(t.clientId)})).next((function(){return r}))}))})).catch((function(){return[]}))]);case 1:if(e=i.sent(),this.xo)for(n=0,r=e;n<r.length;n++)o=r[n],this.xo.removeItem(this.Xo(o.clientId));i.label=2;case 2:return[2]}}
2))}))},t.prototype.Lo=function(){var t=this;this.So=this.Es.vs("client_metadata_refresh",4e3,(function(){return t.$o().then((function(){return t.Ho()})).then((function(){return t.Lo()}))}))},t.prototype.Go=function(t){return!!t&&t.ownerId===this.clientId},t.prototype.Wo=function(t){var e=this;return this.Vo?qn.resolve(!0):vi(t).get(Wr.key).next((function(n){if(null!==n&&e.Yo(n.leaseTimestampMs,5e3)&&!e.Zo(n.ownerId)){if(e.Go(n)&&e.networkEnabled)return!0;if(!e.Go(n)){if(!n.allowTabSynchronization)throw new I(N.FAILED_PRECONDITION,hi);return!1}}return!(!e.networkEnabled||!e.inForeground)||mi(t).zs().next((function(t){return void 0===e.Jo(t,5e3).find((function(t){if(e.clientId!==t.clientId){var n=!e.networkEnabled&&t.networkEnabled,r=!e.inForeground&&t.inForeground,i=e.networkEnabled===t.networkEnabled;if(n||r&&i)return!0}return!1}))}))})).next((function(t){return e.isPrimary!==t&&h("IndexedDbPersistence","Client "+(t?"is":"is not")+" eligible for a primary lease."),t}))},t.prototype.th=function(){return i.__awaiter(this,void 0,void 0,(function(){var t=this;return i.__generator(this,(function(e){switch(e.label){case 0:return this.po=!1,this.eh(),this.So&&(this.So.cancel(),this.So=null),this.nh(),this.sh(),[4,this.runTransaction("shutdown","readwrite",(function(e){return t.jo(e).next((function(){return t.zo(e)}))})).catch((function(t){h("IndexedDbPersistence","Proceeding with shutdown despite failure: ",t)}))];case 1:return e.sent(),this.Fo.close(),this.ih(),[2]}}))}))},t.prototype.Jo=function(t,e){var n=this;return t.filter((function(t){return n.Yo(t.updateTimeMs,e)&&!n.Zo(t.clientId)}))},t.prototype.rh=function(){var t=this;return this.runTransaction("getActiveClients","readonly",(function(e){return mi(e).zs().next((function(e){return t.Jo(e,18e5).map((function(t){return t.clientId}))}))}))},Object.defineProperty(t.prototype,"tr",{get:function(){return this.po},enumerable:!1,configurable:!0}),t.prototype.oh=function(t){return Cr.Tr(t,this.serializer,this.Gn,this.dr)},t.prototype.hh=function(){return this.ko},t.prototype.ah=function(){return this.jn},t.prototype.uh=function(){return this.Gn},t.prototype.runTransaction=function(t,e,n){var r=this;h("IndexedDbPersistence","Starting transaction:",t);var i,o="readonly"===e?"readonly":"readwrite";return this.Fo.runTransaction(o,ii,(function(o){return i=new di(o,r.yo?r.yo.next():Yn.Ts),"readwrite-primary"===e?r.Qo(i).next((function(t){return!!t||r.Wo(i)})).next((function(e){if(!e)throw d("Failed to obtain primary lease for action '"+t+"'."),r.isPrimary=!1,r.Es.Vi((function(){return r.Co(!1)})),new I(N.FAILED_PRECONDITION,Vn);return n(i)})).next((function(t){return r.Ko(i).next((function(){return t}))})):r.lh(i).next((function(){return n(i)}))})).then((function(t){return i.Wn(),t}))},t.prototype.lh=function(t){var e=this;return vi(t).get(Wr.key).next((function(t){if(null!==t&&e.Yo(t.leaseTimestampMs,5e3)&&!e.Zo(t.ownerId)&&!e.Go(t)&&!(e.Vo||e.allowTabSynchronization&&t.allowTabSynchronization))throw new I(N.FAILED_PRECONDITION,hi)}))},t.prototype.Ko=function(t){var e=new Wr(this.clientId,this.allowTabSynchronization,Date.now());return vi(t).put(Wr.key,e)},t.Fs=function(){return Xn.Fs()},t.prototype.jo=function(t){var e=this,n=vi(t);return n.get(Wr.key).next((function(t){return e.Go(t)?(h("IndexedDbPersistence","Releasing primary lease."),n.delete(Wr.key)):qn.resolve()}))},t.prototype.Yo=function(t,e){var n=Date.now();return!(t<n-e||t>n&&(d("Detected an update time that is in the future: "+t+" > "+n),1))},t.prototype.Mo=function(){var t=this;null!==this.document&&"function"==typeof this.document.addEventListener&&(this.vo=function(){t.Es.hi((function(){return t.inForeground="visible"===t.document.visibilityState,t.$o()}))},this.document.addEventListener("visibilitychange",this.vo),this.inForeground="visible"===this.document.visibilityState)},t.prototype.nh=function(){this.vo&&(this.document.removeEventListener("visibilitychange",this.vo),this.vo=null)},t.prototype.Oo=function(){var t,e=this;"function"==typeof(null===(t=this.window)||void 0===t?void 0:t.addEventListener)&&(this.bo=function(){e.eh(),e.Es.hi((function(){return e.th()}))},this.window.addEventListener("unload",this.bo))},t.prototype.sh=function(){this.bo&&(this.window.removeEventListener("unload",this.bo),this.bo=null)},t.prototype.Zo=function(t){var e;try{var n=null!==(null===(e=this.xo)||void 0===e?void 0:e.getItem(this.Xo(t)));return h("IndexedDbPersistence","Client '"+t+"' "+(n?"is":"is not")+" zombied in LocalStorage"),n}catch(t){return d("IndexedDbPersistence","Failed to get zombied client id.",t),!1}},t.prototype.eh=function(){if(this.xo)try{this.xo.setItem(this.Xo(this.clientId),String(Date.now()))}catch(t){d("Failed to set zombie client id.",t)}},t.prototype.ih=function(){if(this.xo)try{this.xo.removeItem(this.Xo(this.clientId))}catch(t){}},t.prototype.Xo=function(t){return"firestore_zombie_"+this.persistenceKey+"_"+t},t}();function vi(t){return pi.Ms(t,Wr.store)}function mi(t){return pi.Ms(t,ri.store)}var gi=function(){function t(t,e){this.db=t,this.Yi=new pr(this,e)}return t.prototype.ir=function(t){var e=this._h(t);return this.db.hh().do(t).next((function(t){return e.next((function(e){return t+e}))}))},t.prototype._h=function(t){var e=0;return this.or(t,(function(t){e++})).next((function(){return e}))},t.prototype.pe=function(t,e){return this.db.hh().pe(t,e)},t.prototype.or=function(t,e){return this.fh(t,(function(t,n){return e(n)}))},t.prototype.Eo=function(t,e,n){return yi(t,n)},t.prototype.mo=function(t,e,n){return yi(t,n)},t.prototype.hr=function(t,e,n){return this.db.hh().hr(t,e,n)},t.prototype.Dr=function(t,e){return yi(t,e)},t.prototype.dh=function(t,e){return function(t,e){var n=!1;return Dr(t).Zs((function(r){return Nr(t,r,e).next((function(t){return t&&(n=!0),qn.resolve(!t)}))})).next((function(){return n}))}(t,e)},t.prototype.ar=function(t,e){var n=this,r=this.db.ah().jr(),i=[],o=0;return this.fh(t,(function(a,s){if(s<=e){var u=n.dh(t,a).next((function(e){if(!e)return o++,r.On(t,a).next((function(){return r.Mn(a),fi(t).delete([0,vr(a.path)])}))}));i.push(u)}})).next((function(){return qn.Dn(i)})).next((function(){return r.apply(t)})).next((function(){return o}
2))},t.prototype.removeTarget=function(t,e){var n=e.Z(t.Ro);return this.db.hh().lo(t,n)},t.prototype.wh=function(t,e){return yi(t,e)},t.prototype.fh=function(t,e){var n,r=fi(t),i=Yn.Ts;return r.Xs({index:Jr.documentTargetsIndex},(function(t,r){var o=t[0],a=(t[1],r.path),s=r.sequenceNumber;0===o?(i!==Yn.Ts&&e(new F(yr(n)),i),i=s,n=a):i=Yn.Ts})).next((function(){i!==Yn.Ts&&e(new F(yr(n)),i)}))},t.prototype.cr=function(t){return this.db.ah().zr(t)},t}();function yi(t,e){return fi(t).put(function(t,e){return new Jr(0,vr(t.path),e)}(e,t.Ro))}function bi(t,e){var n=t.projectId;return t.i||(n+="."+t.database),"firestore/"+e+"/"+n+"/"}var wi=function(){function t(t,e,n){this.persistence=t,this.Th=e,this.Eh=new tt(_),this.Ih=new C((function(t){return W(t)}),H),this.mh=M.min(),this.Kn=t.oh(n),this.Ah=t.ah(),this.ko=t.hh(),this.Rh=new Wn(this.Ah,this.Kn,this.persistence.uh()),this.Th.Ph(this.Rh)}return t.prototype.Vh=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r,o=this;return i.__generator(this,(function(i){switch(i.label){case 0:return e=this.Kn,n=this.Rh,[4,this.persistence.runTransaction("Handle user change","readonly",(function(r){var i;return o.Kn.yr(r).next((function(a){return i=a,e=o.persistence.oh(t),n=new Wn(o.Ah,e,o.persistence.uh()),e.yr(r)})).next((function(t){for(var e=[],o=[],a=ht(),s=0,u=i;s<u.length;s++){var l=u[s];e.push(l.batchId);for(var c=0,f=l.mutations;c<f.length;c++){var h=f[c];a=a.add(h.key)}}for(var d=0,p=t;d<p.length;d++){var v=p[d];o.push(v.batchId);for(var m=0,g=v.mutations;m<g.length;m++){var y=g[m];a=a.add(y.key)}}return n.Xn(r,a).next((function(t){return{gh:t,yh:e,ph:o}}))}))}))];case 1:return r=i.sent(),[2,(this.Kn=e,this.Rh=n,this.Th.Ph(this.Rh),r)]}}))}))},t.prototype.bh=function(t){var e,n=this,r=P.now(),i=t.reduce((function(t,e){return t.add(e.key)}),ht());return this.persistence.runTransaction("Locally write mutations","readwrite",(function(o){return n.Rh.Xn(o,i).next((function(i){e=i;for(var a=[],s=0,u=t;s<u.length;s++){var l=u[s],c=Ve(l,e.get(l.key));null!=c&&a.push(new Ye(l.key,c,en(c.proto.mapValue),je.exists(!0)))}return n.Kn.mr(o,r,a,t)}))})).then((function(t){var n=t.mn(e);return{batchId:t.batchId,Nn:n}}))},t.prototype.vh=function(t){var e=this;return this.persistence.runTransaction("Acknowledge batch","readwrite-primary",(function(n){var r=t.batch.keys(),i=e.Ah.jr({Gr:!0});return e.Sh(n,t,i).next((function(){return i.apply(n)})).next((function(){return e.Kn.Cr(n)})).next((function(){return e.Rh.Xn(n,r)}))}))},t.prototype.Dh=function(t){var e=this;return this.persistence.runTransaction("Reject batch","readwrite-primary",(function(n){var r;return e.Kn.Rr(n,t).next((function(t){return g(null!==t),r=t.keys(),e.Kn.br(n,t)})).next((function(){return e.Kn.Cr(n)})).next((function(){return e.Rh.Xn(n,r)}))}))},t.prototype.gr=function(){var t=this;return this.persistence.runTransaction("Get highest unacknowledged batch id","readonly",(function(e){return t.Kn.gr(e)}))},t.prototype.ro=function(){var t=this;return this.persistence.runTransaction("Get last remote snapshot version","readonly",(function(e){return t.ko.ro(e)}))},t.prototype.Ch=function(e){var n=this,r=e.X,i=this.Eh;return this.persistence.runTransaction("Apply remote event","readwrite-primary",(function(o){var a=n.Ah.jr({Gr:!0});i=n.Eh;var s=[];e.Qt.forEach((function(e,a){var u=i.get(a);if(u){s.push(n.ko.Io(o,e.Xt,a).next((function(){return n.ko.To(o,e.Yt,a)})));var l=e.resumeToken;if(l.H()>0){var c=u.tt(l,r).Z(o.Ro);i=i.nt(a,c),t.Nh(u,c,e)&&s.push(n.ko.lo(o,c))}}}));var u=at(),l=ht();if(e.jt.forEach((function(t,e){l=l.add(t)})),s.push(a.getEntries(o,l).next((function(t){e.jt.forEach((function(i,l){var c=t.get(i);l instanceof on&&l.version.isEqual(M.min())?(a.Mn(i,r),u=u.nt(i,l)):null==c||l.version.o(c.version)>0||0===l.version.o(c.version)&&c.hasPendingWrites?(a.xn(l,r),u=u.nt(i,l)):h("LocalStore","Ignoring outdated watch update for ",i,". Current version:",c.version," Watch version:",l.version),e.Kt.has(i)&&s.push(n.persistence.dr.wh(o,i))}))}))),!r.isEqual(M.min())){var c=n.ko.ro(o).next((function(t){return n.ko.ho(o,o.Ro,r)}));s.push(c)}return qn.Dn(s).next((function(){return a.apply(o)})).next((function(){return n.Rh.Zn(o,u)}))})).then((function(t){return n.Eh=i,t}))},t.Nh=function(t,e,n){return g(e.resumeToken.H()>0),0===t.resumeToken.H()||e.X.m()-t.X.m()>=this.Fh||n.Yt.size+n.Jt.size+n.Xt.size>0},t.prototype.kh=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r,o,a,s,u,l,c=this;return i.__generator(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.persistence.runTransaction("notifyLocalViewChanges","readwrite",(function(e){return qn.forEac
2h(t,(function(t){return qn.forEach(t.us,(function(n){return c.persistence.dr.Eo(e,t.targetId,n)})).next((function(){return qn.forEach(t.cs,(function(n){return c.persistence.dr.mo(e,t.targetId,n)}))}))}))}))];case 1:return i.sent(),[3,3];case 2:if(!Qn(e=i.sent()))throw e;return h("LocalStore","Failed to update sequence numbers: "+e),[3,3];case 3:for(n=0,r=t;n<r.length;n++)o=r[n],a=o.targetId,o.fromCache||(s=this.Eh.get(a),u=s.X,l=s.et(u),this.Eh=this.Eh.nt(a,l));return[2]}}))}))},t.prototype.xh=function(t){var e=this;return this.persistence.runTransaction("Get next mutation batch","readonly",(function(n){return void 0===t&&(t=-1),e.Kn.Vr(n,t)}))},t.prototype.$h=function(t){var e=this;return this.persistence.runTransaction("read document","readonly",(function(n){return e.Rh.zn(n,t)}))},t.prototype.Mh=function(t){var e=this;return this.persistence.runTransaction("Allocate target","readwrite",(function(n){var r;return e.ko.wo(n,t).next((function(i){return i?(r=i,qn.resolve(r)):e.ko.no(n).next((function(i){return r=new $(t,i,0,n.Ro),e.ko.ao(n,r).next((function(){return r}))}))}))})).then((function(n){var r=e.Eh.get(n.targetId);return(null===r||n.X.o(r.X)>0)&&(e.Eh=e.Eh.nt(n.targetId,n),e.Ih.set(t,n.targetId)),n}))},t.prototype.wo=function(t,e){var n=this.Ih.get(e);return void 0!==n?qn.resolve(this.Eh.get(n)):this.ko.wo(t,e)},t.prototype.Oh=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n,r,o,a=this;return i.__generator(this,(function(i){switch(i.label){case 0:n=this.Eh.get(t),r=e?"readwrite":"readwrite-primary",i.label=1;case 1:return i.trys.push([1,4,,5]),e?[3,3]:[4,this.persistence.runTransaction("Release target",r,(function(t){return a.persistence.dr.removeTarget(t,n)}))];case 2:i.sent(),i.label=3;case 3:return[3,5];case 4:if(!Qn(o=i.sent()))throw o;return h("LocalStore","Failed to update sequence numbers for target "+t+": "+o),[3,5];case 5:return this.Eh=this.Eh.remove(t),this.Ih.delete(n.target),[2]}}))}))},t.prototype.Lh=function(t,e){var n=this,r=M.min(),i=ht();return this.persistence.runTransaction("Execute query","readonly",(function(o){return n.wo(o,dn(t)).next((function(t){if(t)return r=t.lastLimboFreeSnapshotVersion,n.ko.Ao(o,t.targetId).next((function(t){i=t}))})).next((function(){return n.Th.es(o,t,e?r:M.min(),e?i:ht())})).next((function(t){return{documents:t,qh:i}}))}))},t.prototype.Sh=function(t,e,n){var r=this,i=e.batch,o=i.keys(),a=qn.resolve();return o.forEach((function(r){a=a.next((function(){return n.On(t,r)})).next((function(t){var o=t,a=e.Rn.get(r);g(null!==a),(!o||o.version.o(a)<0)&&(o=i.Tn(r,o,e))&&n.xn(o,e.An)}))})),a.next((function(){return r.Kn.br(t,i)}))},t.prototype.er=function(t){var e=this;return this.persistence.runTransaction("Collect garbage","readwrite-primary",(function(n){return t.ur(n,e.Eh)}))},t}();function _i(t,e){var n=y(t),r=y(n.ko),i=n.Eh.get(e);return i?Promise.resolve(i.target):n.persistence.runTransaction("Get target data","readonly",(function(t){return r.Me(t,e).next((function(t){return t?t.target:null}))}))}function xi(t){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){if(t.code!==N.FAILED_PRECONDITION||t.message!==Vn)throw t;return h("LocalStore","Unexpectedly lost primary lease"),[2]}))}))}wi.Fh=3e8;var Ei=function(){function t(){this.Bh=new rt(ki.Uh),this.Qh=new rt(ki.Wh)}return t.prototype._=function(){return this.Bh._()},t.prototype.Eo=function(t,e){var n=new ki(t,e);this.Bh=this.Bh.add(n),this.Qh=this.Qh.add(n)},t.prototype.jh=function(t,e){var n=this;t.forEach((function(t){return n.Eo(t,e)}))},t.prototype.mo=function(t,e){this.Kh(new ki(t,e))},t.prototype.Gh=function(t,e){var n=this;t.forEach((function(t){return n.mo(t,e)}))},t.prototype.zh=function(t){var e=this,n=new F(new R([])),r=new ki(n,t),i=new ki(n,t+1),o=[];return this.Qh.vt([r,i],(function(t){e.Kh(t),o.push(t.key)})),o},t.prototype.Hh=function(){var t=this;this.Bh.forEach((function(e){return t.Kh(e)}))},t.prototype.Kh=function(t){this.Bh=this.Bh.delete(t),this.Qh=this.Qh.delete(t)},t.prototype.Yh=function(t){var e=new F(new R([])),n=new ki(e,t),r=new ki(e,t+1),i=ht();return this.Qh.vt([n,r],(function(t){i=i.add(t.key)})),i},t.prototype.Nr=function(t){var e=new ki(t,0),n=this.Bh.Dt(e);return null!==n&&t.isEqual(n.key)},t}(),ki=function(){function t(t,e){this.key=t,this.Jh=e}return t.Uh=function(t,e){return F.P(t.key,e.key)||_(t.Jh,e.Jh)},t.Wh=function(t,e){return _(t.Jh,e.Jh)||F.P(t.key,e.key)},t}(),Ti=function(){function t(t){this.uid=t}return t.prototype.Er=function(){return null!=this.uid},t.prototype.Xh=function(){return this.Er()?"uid:"+this.uid:"anonymous-user"},t.prototype.isEqual=function(t){return t.uid===this.uid},t}();Ti.UNAUTHENTICATED=new Ti(null),Ti.Zh=new Ti("google-credentials-uid"),Ti.ta=new Ti("first-party-uid");var Si=function(t,e){this.user=e,this.type="OAuth",this.ea={},this.ea.Authorization="Bearer "+t},Oi=function(){function t(){this.na=null}return t.prototype.getToken=function(){return Promise.resolve(null)},t.prototype.sa=function(){},t.prototype.ia=function(t){this.na=t,t(Ti.UNAUTHENTICATED)},t.prototype.ra=function(){this.na=null},t}(),Ai=function(){function t(t){var e=this;this.oa=null,this.currentUser=Ti.UNAUTHENTICATED,this.ha=!1,this.aa=0,this.na=null,this.forceRefresh=!1,this.oa=function(){e.aa++,e.currentUser=e.ua(),e.ha=!0,e.na&&e.na(e.currentUser)},this.aa=0,this.auth=t.getImmediate({optional:!0}),this.auth?this.auth.addAuthTokenListener(this.oa):(this.oa(null),t.get().then((function(t){e.auth=t,e.oa&&e.auth.addAuthTokenListener(e.oa)}),(function(){})))}return t.prototype.getToken=function(){var t=this,e=this.aa,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then((function(n){return t.aa!==e?(h("FirebaseCredentialsProvider","getToken aborted due to token change."),t.getToken()):n?(g("string"==typeof n.accessToken),new Si(n.accessToken,t.currentUser)):null})):Promise.resolve(null)},t.prototype.sa=function(){this.forceRefresh=!0},t.prototype.ia=function(t){this.na=t,this.ha&&t(this.currentUser)},t.prototype.ra=function(){this.auth&&this.auth.removeAuthTokenListener(this.oa),this.oa=null,this.na=null},t.prototype.ua=function(){var t=this.auth&&this.auth.getUid();return g(null===t||"string"==typeof t),new Ti(t)},t}(),Ci=function(){function t(t,e){this.ca=t,this.la=e,this.type="FirstParty",this.user=Ti.ta}return Object.defineProperty(t.prototype,"ea",{get:function(){var t={"X-Goog-AuthUser":this.la},e=this.ca.auth._a([]);return e&&(t.Authorization=e),t}
2,enumerable:!1,configurable:!0}),t}(),Ni=function(){function t(t,e){this.ca=t,this.la=e}return t.prototype.getToken=function(){return Promise.resolve(new Ci(this.ca,this.la))},t.prototype.ia=function(t){t(Ti.ta)},t.prototype.ra=function(){},t.prototype.sa=function(){},t}(),Ii=function(){function t(t,e,n,r,i,o){this.Es=t,this.fa=n,this.da=r,this.wa=i,this.listener=o,this.state=0,this.Ta=0,this.Ea=null,this.stream=null,this.wi=new Kn(t,e)}return t.prototype.Ia=function(){return 1===this.state||2===this.state||4===this.state},t.prototype.ma=function(){return 2===this.state},t.prototype.start=function(){3!==this.state?this.auth():this.Aa()},t.prototype.stop=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.Ia()?[4,this.close(0)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))},t.prototype.Ra=function(){this.state=0,this.wi.reset()},t.prototype.Pa=function(){var t=this;this.ma()&&null===this.Ea&&(this.Ea=this.Es.vs(this.fa,6e4,(function(){return t.Va()})))},t.prototype.ga=function(t){this.ya(),this.stream.send(t)},t.prototype.Va=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.ma()?[2,this.close(0)]:[2]}))}))},t.prototype.ya=function(){this.Ea&&(this.Ea.cancel(),this.Ea=null)},t.prototype.close=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(n){switch(n.label){case 0:return this.ya(),this.wi.cancel(),this.Ta++,3!==t?this.wi.reset():e&&e.code===N.RESOURCE_EXHAUSTED?(d(e.toString()),d("Using maximum backoff delay to prevent overloading the backend."),this.wi.ys()):e&&e.code===N.UNAUTHENTICATED&&this.wa.sa(),null!==this.stream&&(this.pa(),this.stream.close(),this.stream=null),this.state=t,[4,this.listener.ba(e)];case 1:return n.sent(),[2]}}))}))},t.prototype.pa=function(){},t.prototype.auth=function(){var t=this;this.state=1;var e=this.va(this.Ta),n=this.Ta;this.wa.getToken().then((function(e){t.Ta===n&&t.Sa(e)}),(function(n){e((function(){var e=new I(N.UNKNOWN,"Fetching auth token failed: "+n.message);return t.Da(e)}))}))},t.prototype.Sa=function(t){var e=this,n=this.va(this.Ta);this.stream=this.Ca(t),this.stream.Na((function(){n((function(){return e.state=2,e.listener.Na()}))})),this.stream.ba((function(t){n((function(){return e.Da(t)}))})),this.stream.onMessage((function(t){n((function(){return e.onMessage(t)}))}))},t.prototype.Aa=function(){var t=this;this.state=4,this.wi.ps((function(){return i.__awaiter(t,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.state=0,this.start(),[2]}))}))}))},t.prototype.Da=function(t){return h("PersistentStream","close with error: "+t),this.stream=null,this.close(3,t)},t.prototype.va=function(t){var e=this;return function(n){e.Es.hi((function(){return e.Ta===t?n():(h("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())}))}},t}(),Pi=function(t){function e(e,n,r,i,o){var a=this;return(a=t.call(this,e,"listen_stream_connection_backoff","listen_stream_idle",n,r,o)||this).serializer=i,a}return i.__extends(e,t),e.prototype.Ca=function(t){return this.da.Fa("Listen",t)},e.prototype.onMessage=function(t){this.wi.reset();var e=function(t,e){var n;if("targetChange"in e){e.targetChange;var r=function(t){return"NO_CHANGE"===t?0:"ADD"===t?1:"REMOVE"===t?2:"CURRENT"===t?3:"RESET"===t?4:m()}(e.targetChange.targetChangeType||"NO_CHANGE"),i=e.targetChange.targetIds||[],o=function(t,e){return t.Oe?(g(void 0===e||"string"==typeof e),G.fromBase64String(e||"")):(g(void 0===e||e instanceof Uint8Array),G.fromUint8Array(e||new Uint8Array))}(t,e.targetChange.resumeToken),a=e.targetChange.cause,s=a&&function(t){var e=void 0===t.code?N.UNKNOWN:J(t.code);return new I(e,t.message||"")}(a);n=new xt(r,i,o,s||null)}else if("documentChange"in e){e.documentChange;var u=e.documentChange;u.document,u.document.name,u.document.updateTime;var l=ie(t,u.document.name),c=te(u.document.updateTime),f=new Je({mapValue:{fields:u.document.fields}}),h=new rn(l,c,f,{}),d=u.targetIds||[],p=u.removedTargetIds||[];n=new wt(d,p,h.key,h)}else if("documentDelete"in e){e.documentDelete;var v=e.documentDelete;v.document;var y=ie(t,v.document),b=v.readTime?te(v.readTime):M.min(),w=new on(y,b),_=v.removedTargetIds||[];n=new wt([],_,w.key,w)}else if("documentRemove"in e){e.documentRemove;var x=e.documentRemove;x.document;var E=ie(t,x.document),k=x.removedTargetIds||[];n=new wt([],k,E,null)}else{if(!("filter"in e))return m();e.filter;var T=e.filter;T.targetId;var S=T.count||0,O=new Z(S),A=T.targetId;n=new _t(A,O)}return n}(this.serializer,t),n=function(t){if(!("targetChange"in t))return M.min();var e=t.targetChange;return e.targetIds&&e.targetIds.length?M.min():e.readTime?te(e.readTime):M.min()}(t);return this.listener.ka(e,n)},e.prototype.xa=function(t){var e={};e.database=se(this.serializer),e.addTarget=function(t,e){var n,r=e.target;return(n=Y(r)?{documents:he(t,r)}:{query:de(t,r)}).targetId=e.targetId,e.resumeToken.H()>0&&(n.resumeToken=Qt(t,e.resumeToken)),n}(this.serializer,t);var n=function(t,e){var n=function(t,e){switch(e){case 0:return null;case 1:return"existence-filter-mismatch";case 2:return"limbo-document";default:return m()}}(0,e.J);return null==n?null:{"goog-listen-tags":n}}(this.serializer,t);n&&(e.labels=n),this.ga(e)},e.prototype.$a=function(t){var e={};e.database=se(this.serializer),e.removeTarget=t,this.ga(e)},e}(Ii),Mi=function(t){function e(e,n,r,i,o){var a=this;return(a=t.call(this,e,"write_stream_connection_backoff","write_stream_idle",n,r,o)||this).serializer
2=i,a.Ma=!1,a}return i.__extends(e,t),Object.defineProperty(e.prototype,"Oa",{get:function(){return this.Ma},enumerable:!1,configurable:!0}),e.prototype.start=function(){this.Ma=!1,this.lastStreamToken=void 0,t.prototype.start.call(this)},e.prototype.pa=function(){this.Ma&&this.La([])},e.prototype.Ca=function(t){return this.da.Fa("Write",t)},e.prototype.onMessage=function(t){if(g(!!t.streamToken),this.lastStreamToken=t.streamToken,this.Ma){this.wi.reset();var e=function(t,e){return t&&t.length>0?(g(void 0!==e),t.map((function(t){return function(t,e){var n=t.updateTime?te(t.updateTime):te(e);n.isEqual(M.min())&&(n=te(e));var r=null;return t.transformResults&&t.transformResults.length>0&&(r=t.transformResults),new Le(n,r)}(t,e)}))):[]}(t.writeResults,t.commitTime),n=te(t.commitTime);return this.listener.qa(n,e)}return g(!t.writeResults||0===t.writeResults.length),this.Ma=!0,this.listener.Ba()},e.prototype.Ua=function(){var t={};t.database=se(this.serializer),this.ga(t)},e.prototype.La=function(t){var e=this,n={streamToken:this.lastStreamToken,writes:t.map((function(t){return ce(e.serializer,t)}))};this.ga(n)},e}(Ii),Di=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).credentials=e,i.da=n,i.serializer=r,i.Qa=!1,i}return i.__extends(e,t),e.prototype.Wa=function(){if(this.Qa)throw new I(N.FAILED_PRECONDITION,"The client has already been terminated.")},e.prototype.ja=function(t,e,n){var r=this;return this.Wa(),this.credentials.getToken().then((function(i){return r.da.ja(t,e,n,i)})).catch((function(t){throw t.code===N.UNAUTHENTICATED&&r.credentials.sa(),t}))},e.prototype.Ka=function(t,e,n){var r=this;return this.Wa(),this.credentials.getToken().then((function(i){return r.da.Ka(t,e,n,i)})).catch((function(t){throw t.code===N.UNAUTHENTICATED&&r.credentials.sa(),t}))},e.prototype.terminate=function(){this.Qa=!1},e}((function(){})),Ri=function(){function t(t,e){this.ti=t,this.Ga=e,this.state="Unknown",this.za=0,this.Ha=null,this.Ya=!0}return t.prototype.Ja=function(){var t=this;0===this.za&&(this.Xa("Unknown"),this.Ha=this.ti.vs("online_state_timeout",1e4,(function(){return t.Ha=null,t.Za("Backend didn't respond within 10 seconds."),t.Xa("Offline"),Promise.resolve()})))},t.prototype.tu=function(t){"Online"===this.state?this.Xa("Unknown"):(this.za++,this.za>=1&&(this.eu(),this.Za("Connection failed 1 times. Most recent error: "+t.toString()),this.Xa("Offline")))},t.prototype.set=function(t){this.eu(),this.za=0,"Online"===t&&(this.Ya=!1),this.Xa(t)},t.prototype.Xa=function(t){t!==this.state&&(this.state=t,this.Ga(t))},t.prototype.Za=function(t){var e="Could not reach Cloud Firestore backend. "+t+"\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.";this.Ya?(d(e),this.Ya=!1):h("OnlineStateTracker",e)},t.prototype.eu=function(){null!==this.Ha&&(this.Ha.cancel(),this.Ha=null)},t}(),Li=function(){function t(t,e,n,r,o){var a=this;this.nu=t,this.su=e,this.ti=n,this.iu=[],this.ru=new Map,this.ou=null,this.hu=new Set,this.au=o,this.au.uu((function(t){n.hi((function(){return i.__awaiter(a,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.cu()?(h("RemoteStore","Restarting streams for network reachability change."),[4,this.lu()]):[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}
2))}))}))})),this._u=new Ri(n,r),this.fu=function(t,e,n){var r=y(t);return r.Wa(),new Pi(e,r.da,r.credentials,r.serializer,n)}(this.su,n,{Na:this.du.bind(this),ba:this.wu.bind(this),ka:this.Tu.bind(this)}),this.Eu=function(t,e,n){var r=y(t);return r.Wa(),new Mi(e,r.da,r.credentials,r.serializer,n)}(this.su,n,{Na:this.Iu.bind(this),ba:this.mu.bind(this),Ba:this.Au.bind(this),qa:this.qa.bind(this)})}return t.prototype.start=function(){return this.enableNetwork()},t.prototype.enableNetwork=function(){return this.hu.delete(0),this.Ru()},t.prototype.Ru=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.cu()?(this.Pu()?this.Vu():this._u.set("Unknown"),[4,this.gu()]):[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))},t.prototype.disableNetwork=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.hu.add(0),[4,this.yu()];case 1:return t.sent(),this._u.set("Offline"),[2]}}))}))},t.prototype.yu=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return[4,this.Eu.stop()];case 1:return t.sent(),[4,this.fu.stop()];case 2:return t.sent(),this.iu.length>0&&(h("RemoteStore","Stopping write stream with "+this.iu.length+" pending writes"),this.iu=[]),this.pu(),[2]}}))}))},t.prototype.th=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return h("RemoteStore","RemoteStore shutting down."),this.hu.add(5),[4,this.yu()];case 1:return t.sent(),this.au.th(),this._u.set("Unknown"),[2]}}))}))},t.prototype.listen=function(t){this.ru.has(t.targetId)||(this.ru.set(t.targetId,t),this.Pu()?this.Vu():this.fu.ma()&&this.bu(t))},t.prototype.vu=function(t){this.ru.delete(t),this.fu.ma()&&this.Su(t),0===this.ru.size&&(this.fu.ma()?this.fu.Pa():this.cu()&&this._u.set("Unknown"))},t.prototype.Me=function(t){return this.ru.get(t)||null},t.prototype.$e=function(t){return this.Du.$e(t)},t.prototype.bu=function(t){this.ou.de(t.targetId),this.fu.xa(t)},t.prototype.Su=function(t){this.ou.de(t),this.fu.$a(t)},t.prototype.Vu=function(){this.ou=new kt(this),this.fu.start(),this._u.Ja()},t.prototype.Pu=function(){return this.cu()&&!this.fu.Ia()&&this.ru.size>0},t.prototype.cu=function(){return 0===this.hu.size},t.prototype.pu=function(){this.ou=null},t.prototype.du=function(){return i.__awaiter(this,void 0,void 0,(function(){var t=this;return i.__generator(this,(function(e){return this.ru.forEach((function(e,n){t.bu(e)})),[2]}))}))},t.prototype.wu=function(t){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return this.pu(),this.Pu()?(this._u.tu(t),this.Vu()):this._u.set("Unknown"),[2]}))}))},t.prototype.Tu=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n,r,o;return i.__generator(this,(function(i){switch(i.label){case 0:if(this._u.set("Online"),!(t instanceof xt&&2===t.state&&t.cause))return[3,6];i.label=1;case 1:return i.trys.push([1,3,,5]),[4,this.Cu(t)];case 2:return i.sent(),[3,5];case 3:return n=i.sent(),h("RemoteStore","Failed to remove targets %s: %s ",t.targetIds.join(","),n),[4,this.Nu(n)];case 4:return i.sent(),[3,5];case 5:return[3,13];case 6:if(t instanceof wt?this.ou.Pe(t):t instanceof _t?this.ou.De(t):this.ou.ye(t),e.isEqual(M.min()))return[3,13];i.label=7;case 7:return i.trys.push([7,11,,13]),[4,this.nu.ro()];case 8:return r=i.sent(),e.o(r)>=0?[4,this.Fu(e)]:[3,10];case 9:i.sent(),i.label=10;case 10:return[3,13];case 11:return h("RemoteStore","Failed to raise snapshot:",o=i.sent()),[4,this.Nu(o)];case 12:return i.sent(),[3,13];case 13:return[2]}}
2))}))},t.prototype.Nu=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n=this;return i.__generator(this,(function(r){switch(r.label){case 0:if(!Qn(t))throw t;return this.hu.add(1),[4,this.yu()];case 1:return r.sent(),this._u.set("Offline"),e||(e=function(){return n.nu.ro()}),this.ti.Vi((function(){return i.__awaiter(n,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return h("RemoteStore","Retrying IndexedDB access"),[4,e()];case 1:return t.sent(),this.hu.delete(1),[4,this.Ru()];case 2:return t.sent(),[2]}}))}))})),[2]}}))}))},t.prototype.ku=function(t){var e=this;return t().catch((function(n){return e.Nu(n,t)}))},t.prototype.Fu=function(t){var e=this,n=this.ou.Fe(t);return n.Qt.forEach((function(n,r){if(n.resumeToken.H()>0){var i=e.ru.get(r);i&&e.ru.set(r,i.tt(n.resumeToken,t))}})),n.Wt.forEach((function(t){var n=e.ru.get(t);if(n){e.ru.set(t,n.tt(G.Y,n.X)),e.Su(t);var r=new $(n.target,t,1,n.sequenceNumber);e.bu(r)}})),this.Du.Ch(n)},t.prototype.Cu=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r,o;return i.__generator(this,(function(i){switch(i.label){case 0:e=t.cause,n=0,r=t.targetIds,i.label=1;case 1:return n<r.length?(o=r[n],this.ru.has(o)?[4,this.Du.xu(o,e)]:[3,3]):[3,5];case 2:i.sent(),this.ru.delete(o),this.ou.removeTarget(o),i.label=3;case 3:i.label=4;case 4:return n++,[3,1];case 5:return[2]}}
2))}))},t.prototype.gu=function(){return i.__awaiter(this,void 0,void 0,(function(){var t,e,n;return i.__generator(this,(function(r){switch(r.label){case 0:t=this.iu.length>0?this.iu[this.iu.length-1].batchId:-1,r.label=1;case 1:if(!this.$u())return[3,7];r.label=2;case 2:return r.trys.push([2,4,,6]),[4,this.nu.xh(t)];case 3:return null===(e=r.sent())?(0===this.iu.length&&this.Eu.Pa(),[3,7]):(t=e.batchId,this.Mu(e),[3,6]);case 4:return n=r.sent(),[4,this.Nu(n)];case 5:return r.sent(),[3,6];case 6:return[3,1];case 7:return this.Ou()&&this.Lu(),[2]}}))}))},t.prototype.$u=function(){return this.cu()&&this.iu.length<10},t.prototype.qu=function(){return this.iu.length},t.prototype.Mu=function(t){this.iu.push(t),this.Eu.ma()&&this.Eu.Oa&&this.Eu.La(t.mutations)},t.prototype.Ou=function(){return this.cu()&&!this.Eu.Ia()&&this.iu.length>0},t.prototype.Lu=function(){this.Eu.start()},t.prototype.Iu=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.Eu.Ua(),[2]}))}))},t.prototype.Au=function(){return i.__awaiter(this,void 0,void 0,(function(){var t,e,n;return i.__generator(this,(function(r){for(t=0,e=this.iu;t<e.length;t++)n=e[t],this.Eu.La(n.mutations);return[2]}))}))},t.prototype.qa=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n,r,o=this;return i.__generator(this,(function(i){switch(i.label){case 0:return n=this.iu.shift(),r=Un.from(n,t,e),[4,this.ku((function(){return o.Du.Bu(r)}))];case 1:return i.sent(),[4,this.gu()];case 2:return i.sent(),[2]}}))}))},t.prototype.mu=function(t){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return t&&this.Eu.Oa?[4,this.Uu(t)]:[3,2];case 1:e.sent(),e.label=2;case 2:return this.Ou()&&this.Lu(),[2]}}))}))},t.prototype.Uu=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r=this;return i.__generator(this,(function(i){switch(i.label){case 0:return Q(n=t.code)&&n!==N.ABORTED?(e=this.iu.shift(),this.Eu.Ra(),[4,this.ku((function(){return r.Du.Qu(e.batchId,t)}))]):[3,3];case 1:return i.sent(),[4,this.gu()];case 2:i.sent(),i.label=3;case 3:return[2]}}
2))}))},t.prototype.lu=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.hu.add(4),[4,this.yu()];case 1:return t.sent(),this._u.set("Unknown"),this.Eu.Ra(),this.fu.Ra(),this.hu.delete(4),[4,this.Ru()];case 2:return t.sent(),[2]}}))}))},t.prototype.Wu=function(t){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return this.ti.pi(),h("RemoteStore","RemoteStore received new credentials"),this.hu.add(3),[4,this.yu()];case 1:return e.sent(),this._u.set("Unknown"),[4,this.Du.Wu(t)];case 2:return e.sent(),this.hu.delete(3),[4,this.Ru()];case 3:return e.sent(),[2]}}))}))},t.prototype.ju=function(t){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return t?(this.hu.delete(2),[4,this.Ru()]):[3,2];case 1:return e.sent(),[3,5];case 2:return t?[3,4]:(this.hu.add(2),[4,this.yu()]);case 3:e.sent(),this._u.set("Unknown"),e.label=4;case 4:e.label=5;case 5:return[2]}}
2))}))},t}();function ji(t,e){return"firestore_clients_"+t+"_"+e}function Fi(t,e,n){var r="firestore_mutations_"+t+"_"+n;return e.Er()&&(r+="_"+e.uid),r}function Ui(t,e){return"firestore_targets_"+t+"_"+e}var qi=function(){function t(t,e,n,r){this.user=t,this.batchId=e,this.state=n,this.error=r}return t.Ku=function(e,n,r){var i=JSON.parse(r),o="object"==typeof i&&-1!==["pending","acknowledged","rejected"].indexOf(i.state)&&(void 0===i.error||"object"==typeof i.error),a=void 0;return o&&i.error&&(o="string"==typeof i.error.message&&"string"==typeof i.error.code)&&(a=new I(i.error.code,i.error.message)),o?new t(e,n,i.state,a):(d("SharedClientState","Failed to parse mutation state for ID '"+n+"': "+r),null)},t.prototype.Gu=function(){var t={state:this.state,updateTimeMs:Date.now()};return this.error&&(t.error={code:this.error.code,message:this.error.message}),JSON.stringify(t)},t}(),Bi=function(){function t(t,e,n){this.targetId=t,this.state=e,this.error=n}return t.Ku=function(e,n){var r=JSON.parse(n),i="object"==typeof r&&-1!==["not-current","current","rejected"].indexOf(r.state)&&(void 0===r.error||"object"==typeof r.error),o=void 0;return i&&r.error&&(i="string"==typeof r.error.message&&"string"==typeof r.error.code)&&(o=new I(r.error.code,r.error.message)),i?new t(e,r.state,o):(d("SharedClientState","Failed to parse target state for ID '"+e+"': "+n),null)},t.prototype.Gu=function(){var t={state:this.state,updateTimeMs:Date.now()};return this.error&&(t.error={code:this.error.code,message:this.error.message}),JSON.stringify(t)},t}(),Vi=function(){function t(t,e){this.clientId=t,this.activeTargetIds=e}return t.Ku=function(e,n){for(var r=JSON.parse(n),i="object"==typeof r&&r.activeTargetIds instanceof Array,o=pt(),a=0;i&&a<r.activeTargetIds.length;++a)i=B(r.activeTargetIds[a]),o=o.add(r.activeTargetIds[a]);return i?new t(e,o):(d("SharedClientState","Failed to parse client data for instance '"+e+"': "+n),null)},t}(),zi=function(){function t(t,e){this.clientId=t,this.onlineState=e}return t.Ku=function(e){var n=JSON.parse(e);return"object"==typeof n&&-1!==["Unknown","Online","Offline"].indexOf(n.onlineState)&&"string"==typeof n.clientId?new t(n.clientId,n.onlineState):(d("SharedClientState","Failed to parse online state: "+e),null)},t}(),Wi=function(){function t(){this.activeTargetIds=pt()}return t.prototype.zu=function(t){this.activeTargetIds=this.activeTargetIds.add(t)},t.prototype.Hu=function(t){this.activeTargetIds=this.activeTargetIds.delete(t)},t.prototype.Gu=function(){var t={activeTargetIds:this.activeTargetIds.N(),updateTimeMs:Date.now()};return JSON.stringify(t)},t}(),Hi=function(){function t(t,e,n,r,i){this.window=t,this.Es=e,this.persistenceKey=n,this.Yu=r,this.Du=null,this.Ga=null,this._s=null,this.Ju=this.Xu.bind(this),this.Zu=new tt(_),this.tr=!1,this.tc=[];var o=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");this.storage=this.window.localStorage,this.currentUser=i,this.ec=ji(this.persistenceKey,this.Yu),this.nc=function(t){return"firestore_sequence_number_"+t}(this.persistenceKey),this.Zu=this.Zu.nt(this.Yu,new Wi),this.sc=new RegExp("^firestore_clients_"+o+"_([^_]*)$"),this.ic=new RegExp("^firestore_mutations_"+o+"_(\\d+)(?:_(.*))?$"),this.rc=new RegExp("^firestore_targets_"+o+"_(\\d+)$"),this.oc=function(t){return"firestore_online_state_"+t}(this.persistenceKey),this.window.addEventListener("storage",this.Ju)}return t.Fs=function(t){return!(!t||!t.localStorage)},t.prototype.start=function(){return i.__awaiter(this,void 0,void 0,(function(){var t,e,n,r,o,a,s,u,l,c,f,h=this;return i.__generator(this,(function(i){switch(i.label){case 0:return[4,this.Du.rh()];case 1:for(t=i.sent(),e=0,n=t;e<n.length;e++)(r=n[e])!==this.Yu&&(o=this.getItem(ji(this.persistenceKey,r)))&&(a=Vi.Ku(r,o))&&(this.Zu=this.Zu.nt(a.clientId,a));for(this.hc(),(s=this.storage.getItem(this.oc))&&(u=this.ac(s))&&this.uc(u),l=0,c=this.tc;l<c.length;l++)f=c[l],this.Xu(f);return this.tc=[],this.window.addEventListener("unload",(function(){return h.th()})),this.tr=!0,[2]}}))}))},t.prototype.ws=function(t){this.setItem(this.nc,JSON.stringify(t))},t.prototype.cc=function(){return this.lc(this.Zu)},t.prototype._c=function(t){var e=!1;return this.Zu.forEach((function(n,r){r.activeTargetIds.has(t)&&(e=!0)})),e},t.prototype.fc=function(t){this.dc(t,"pending")},t.prototype.wc=function(t,e,n){this.dc(t,e,n),this.Tc(t)},t.prototype.Ec=function(t){var e="not-current";if(this._c(t)){var n=this.storage.getItem(Ui(this.persistenceKey,t));if(n){var r=Bi.Ku(t,n);r&&(e=r.state)}}return this.Ic.zu(t),this.hc(),e},t.prototype.mc=function(t){this.Ic.Hu(t),this.hc()},t.prototype.Ac=function(t){return this.Ic.activeTargetIds.has(t)},t.prototype.Rc=function(t){this.removeItem(Ui(this.persistenceKey,t))},t.prototype.Pc=function(t,e,n){this.Vc(t,e,n)},t.prototype.Vh=function(t,e,n){var r=this;e.forEach((function(t){r.Tc(t)}
2)),this.currentUser=t,n.forEach((function(t){r.fc(t)}))},t.prototype.gc=function(t){this.yc(t)},t.prototype.th=function(){this.tr&&(this.window.removeEventListener("storage",this.Ju),this.removeItem(this.ec),this.tr=!1)},t.prototype.getItem=function(t){var e=this.storage.getItem(t);return h("SharedClientState","READ",t,e),e},t.prototype.setItem=function(t,e){h("SharedClientState","SET",t,e),this.storage.setItem(t,e)},t.prototype.removeItem=function(t){h("SharedClientState","REMOVE",t),this.storage.removeItem(t)},t.prototype.Xu=function(t){var e=this,n=t;if(n.storageArea===this.storage){if(h("SharedClientState","EVENT",n.key,n.newValue),n.key===this.ec)return void d("Received WebStorage notification for local change. Another client might have garbage-collected our state");this.Es.Vi((function(){return i.__awaiter(e,void 0,void 0,(function(){var t,e,r,o,a,s;return i.__generator(this,(function(i){if(this.tr){if(null!==n.key)if(this.sc.test(n.key)){if(null==n.newValue)return t=this.pc(n.key),[2,this.bc(t,null)];if(e=this.vc(n.key,n.newValue))return[2,this.bc(e.clientId,e)]}else if(this.ic.test(n.key)){if(null!==n.newValue&&(r=this.Sc(n.key,n.newValue)))return[2,this.Dc(r)]}else if(this.rc.test(n.key)){if(null!==n.newValue&&(o=this.Cc(n.key,n.newValue)))return[2,this.Nc(o)]}else if(n.key===this.oc){if(null!==n.newValue&&(a=this.ac(n.newValue)))return[2,this.uc(a)]}else n.key===this.nc&&(s=function(t){var e=Yn.Ts;if(null!=t)try{var n=JSON.parse(t);g("number"==typeof n),e=n}catch(t){d("SharedClientState","Failed to read sequence number from WebStorage",t)}return e}(n.newValue))!==Yn.Ts&&this._s(s)}else this.tc.push(n);return[2]}))}))}))}},Object.defineProperty(t.prototype,"Ic",{get:function(){return this.Zu.get(this.Yu)},enumerable:!1,configurable:!0}),t.prototype.hc=function(){this.setItem(this.ec,this.Ic.Gu())},t.prototype.dc=function(t,e,n){var r=new qi(this.currentUser,t,e,n),i=Fi(this.persistenceKey,this.currentUser,t);this.setItem(i,r.Gu())},t.prototype.Tc=function(t){var e=Fi(this.persistenceKey,this.currentUser,t);this.removeItem(e)},t.prototype.yc=function(t){var e={clientId:this.Yu,onlineState:t};this.storage.setItem(this.oc,JSON.stringify(e))},t.prototype.Vc=function(t,e,n){var r=Ui(this.persistenceKey,t),i=new Bi(t,e,n);this.setItem(r,i.Gu())},t.prototype.pc=function(t){var e=this.sc.exec(t);return e?e[1]:null},t.prototype.vc=function(t,e){var n=this.pc(t);return Vi.Ku(n,e)},t.prototype.Sc=function(t,e){var n=this.ic.exec(t),r=Number(n[1]),i=void 0!==n[2]?n[2]:null;return qi.Ku(new Ti(i),r,e)},t.prototype.Cc=function(t,e){var n=this.rc.exec(t),r=Number(n[1]);return Bi.Ku(r,e)},t.prototype.ac=function(t){return zi.Ku(t)},t.prototype.Dc=function(t){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return t.user.uid===this.currentUser.uid?[2,this.Du.Fc(t.batchId,t.state,t.error)]:(h("SharedClientState","Ignoring mutation for non-active user "+t.user.uid),[2])}))}))},t.prototype.Nc=function(t){return this.Du.kc(t.targetId,t.state,t.error)},t.prototype.bc=function(t,e){var n=this,r=e?this.Zu.nt(t,e):this.Zu.remove(t),i=this.lc(this.Zu),o=this.lc(r),a=[],s=[];return o.forEach((function(t){i.has(t)||a.push(t)})),i.forEach((function(t){o.has(t)||s.push(t)})),this.Du.xc(a,s).then((function(){n.Zu=r}))},t.prototype.uc=function(t){this.Zu.get(t.clientId)&&this.Ga(t.onlineState)},t.prototype.lc=function(t){var e=pt();return t.forEach((function(t,n){e=e.Ct(n.activeTargetIds)})),e},t}(),Yi=function(){function t(){this.$c=new Wi,this.Mc={},this.Ga=null,this._s=null}return t.prototype.fc=function(t){},t.prototype.wc=function(t,e,n){},t.prototype.Ec=function(t){return this.$c.zu(t),this.Mc[t]||"not-current"},t.prototype.Pc=function(t,e,n){this.Mc[t]=e},t.prototype.mc=function(t){this.$c.Hu(t)},t.prototype.Ac=function(t){return this.$c.activeTargetIds.has(t)},t.prototype.Rc=function(t){delete this.Mc[t]},t.prototype.cc=function(){return this.$c.activeTargetIds},t.prototype._c=function(t){return this.$c.activeTargetIds.has(t)},t.prototype.start=function(){return this.$c=new Wi,Promise.resolve()},t.prototype.Vh=function(t,e,n){},t.prototype.gc=function(t){},t.prototype.th=function(){},t.prototype.ws=function(t){},t}(),Gi=function(t){this.key=t},Ki=function(t){this.key=t},Xi=function(){function t(t,e){this.query=t,this.Oc=e,this.Lc=null,this.Ht=!1,this.qc=ht(),this.Lt=ht(),this.Bc=_n(t),this.Uc=new vt(this.Bc)}return Object.defineProperty(t.prototype,"Qc",{get:function(){return this.Oc}
2,enumerable:!1,configurable:!0}),t.prototype.Wc=function(t,e){var n=this,r=e?e.jc:new mt,i=e?e.Uc:this.Uc,o=e?e.Lt:this.Lt,a=i,s=!1,u=this.query.hn()&&i.size===this.query.limit?i.last():null,l=this.query.an()&&i.size===this.query.limit?i.first():null;if(t.ot((function(t,e){var c=i.get(t),f=e instanceof rn?e:null;f&&(f=wn(n.query,f)?f:null);var h=!!c&&n.Lt.has(c.key),d=!!f&&(f.Ke||n.Lt.has(f.key)&&f.hasCommittedMutations),p=!1;c&&f?c.data().isEqual(f.data())?h!==d&&(r.track({type:3,doc:f}),p=!0):n.Kc(c,f)||(r.track({type:2,doc:f}),p=!0,(u&&n.Bc(f,u)>0||l&&n.Bc(f,l)<0)&&(s=!0)):!c&&f?(r.track({type:0,doc:f}),p=!0):c&&!f&&(r.track({type:1,doc:c}),p=!0,(u||l)&&(s=!0)),p&&(f?(a=a.add(f),o=d?o.add(t):o.delete(t)):(a=a.delete(t),o=o.delete(t)))})),this.query.hn()||this.query.an())for(;a.size>this.query.limit;){var c=this.query.hn()?a.last():a.first();a=a.delete(c.key),o=o.delete(c.key),r.track({type:1,doc:c})}return{Uc:a,jc:r,Gc:s,Lt:o}},t.prototype.Kc=function(t,e){return t.Ke&&e.hasCommittedMutations&&!e.Ke},t.prototype.Bn=function(t,e,n){var r=this,i=this.Uc;this.Uc=t.Uc,this.Lt=t.Lt;var o=t.jc.Mt();o.sort((function(t,e){return function(t,e){var n=function(t){switch(t){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return m()}};return n(t)-n(e)}(t.type,e.type)||r.Bc(t.doc,e.doc)})),this.zc(n);var a=e?this.Hc():[],s=0===this.qc.size&&this.Ht?1:0,u=s!==this.Lc;return this.Lc=s,0!==o.length||u?{snapshot:new gt(this.query,t.Uc,i,o,t.Lt,0===s,u,!1),Yc:a}:{Yc:a}},t.prototype.Jc=function(t){return this.Ht&&"Offline"===t?(this.Ht=!1,this.Bn({Uc:this.Uc,jc:new mt,Lt:this.Lt,Gc:!1},!1)):{Yc:[]}},t.prototype.Xc=function(t){return!this.Oc.has(t)&&!!this.Uc.has(t)&&!this.Uc.get(t).Ke},t.prototype.zc=function(t){var e=this;t&&(t.Yt.forEach((function(t){return e.Oc=e.Oc.add(t)})),t.Jt.forEach((function(t){})),t.Xt.forEach((function(t){return e.Oc=e.Oc.delete(t)})),this.Ht=t.Ht)},t.prototype.Hc=function(){var t=this;if(!this.Ht)return[];var e=this.qc;this.qc=ht(),this.Uc.forEach((function(e){t.Xc(e.key)&&(t.qc=t.qc.add(e.key))}));var n=[];return e.forEach((function(e){t.qc.has(e)||n.push(new Ki(e))})),this.qc.forEach((function(t){e.has(t)||n.push(new Gi(t))})),n},t.prototype.Zc=function(t){this.Oc=t.qh,this.qc=ht();var e=this.Wc(t.documents);return this.Bn(e,!0)},t.prototype.tl=function(){return gt.Ut(this.query,this.Uc,this.Lt,0===this.Lc)},t}(),$i=function(t,e,n){this.query=t,this.targetId=e,this.view=n},Zi=function(t){this.key=t,this.el=!1},Qi=function(){function t(t,e,n,r,i,o){this.nu=t,this.nl=e,this.su=n,this.sl=r,this.currentUser=i,this.il=o,this.rl=null,this.ol=new C((function(t){return yn(t)}),gn),this.hl=new Map,this.al=[],this.ul=new tt(F.P),this.cl=new Map,this.ll=new Ei,this._l={},this.fl=new Map,this.dl=si.eo(),this.onlineState="Unknown",this.wl=void 0}return Object.defineProperty(t.prototype,"Tl",{get:function(){return!0===this.wl},enumerable:!1,configurable:!0}),t.prototype.subscribe=function(t){this.rl=t},t.prototype.listen=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r,o,a;return i.__generator(this,(function(i){switch(i.label){case 0:return this.El("listen()"),(r=this.ol.get(t))?(e=r.targetId,this.sl.Ec(e),n=r.view.tl(),[3,4]):[3,1];case 1:return[4,this.nu.Mh(dn(t))];case 2:return o=i.sent(),a=this.sl.Ec(o.targetId),e=o.targetId,[4,this.Il(t,e,"current"===a)];case 3:n=i.sent(),this.Tl&&this.nl.listen(o),i.label=4;case 4:return[2,n]}}))}))},t.prototype.Il=function(t,e,n){return i.__awaiter(this,void 0,void 0,(function(){var r,o,a,s,u,l;return i.__generator(this,(function(i){switch(i.label){case 0:return[4,this.nu.Lh(t,!0)];case 1:return r=i.sent(),o=new Xi(t,r.qh),a=o.Wc(r.documents),s=bt.zt(e,n&&"Offline"!==this.onlineState),u=o.Bn(a,this.Tl,s),this.ml(e,u.Yc),l=new $i(t,e,o),[2,(this.ol.set(t,l),this.hl.has(e)?this.hl.get(e).push(t):this.hl.set(e,[t]),u.snapshot)]}}))}))},t.prototype.vu=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r=this;return i.__generator(this,(function(i){switch(i.label){case 0:return this.El("unlisten()"),e=this.ol.get(t),(n=this.hl.get(e.targetId)).length>1?[2,(this.hl.set(e.targetId,n.filter((function(e){return!gn(e,t)}))),void this.ol.delete(t))]:this.Tl?(this.sl.mc(e.targetId),this.sl._c(e.targetId)?[3,2]:[4,this.nu.Oh(e.targetId,!1).then((function(){r.sl.Rc(e.targetId),r.nl.vu(e.targetId),r.Al(e.targetId)})).catch(xi)]):[3,3];case 1:i.sent(),i.label=2;case 2:return[3,5];case 3:return this.Al(e.targetId),[4,this.nu.Oh(e.targetId,!0)];case 4:i.sent(),i.label=5;case 5:return[2]}}
2))}))},t.prototype.write=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n,r,o;return i.__generator(this,(function(i){switch(i.label){case 0:this.El("write()"),i.label=1;case 1:return i.trys.push([1,5,,6]),[4,this.nu.bh(t)];case 2:return n=i.sent(),this.sl.fc(n.batchId),this.Rl(n.batchId,e),[4,this.Pl(n.Nn)];case 3:return i.sent(),[4,this.nl.gu()];case 4:return i.sent(),[3,6];case 5:return r=i.sent(),o=ur(r,"Failed to persist write"),e.reject(o),[3,6];case 6:return[2]}}))}))},t.prototype.Ch=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n=this;return i.__generator(this,(function(r){switch(r.label){case 0:this.El("applyRemoteEvent()"),r.label=1;case 1:return r.trys.push([1,4,,6]),[4,this.nu.Ch(t)];case 2:return e=r.sent(),t.Qt.forEach((function(t,e){var r=n.cl.get(e);r&&(g(t.Yt.size+t.Jt.size+t.Xt.size<=1),t.Yt.size>0?r.el=!0:t.Jt.size>0?g(r.el):t.Xt.size>0&&(g(r.el),r.el=!1))})),[4,this.Pl(e,t)];case 3:return r.sent(),[3,6];case 4:return[4,xi(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}}
2))}))},t.prototype.Jc=function(t,e){if(this.Tl&&0===e||!this.Tl&&1===e){this.El("applyOnlineStateChange()");var n=[];this.ol.forEach((function(e,r){var i=r.view.Jc(t);i.snapshot&&n.push(i.snapshot)})),this.rl.Vl(t),this.rl.ka(n),this.onlineState=t,this.Tl&&this.sl.gc(t)}},t.prototype.xu=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n,r,o,a,s,u=this;return i.__generator(this,(function(i){switch(i.label){case 0:return this.El("rejectListens()"),this.sl.Pc(t,"rejected",e),n=this.cl.get(t),(r=n&&n.key)?(o=(o=new tt(F.P)).nt(r,new on(r,M.min())),a=ht().add(r),s=new yt(M.min(),new Map,new rt(_),o,a),[4,this.Ch(s)]):[3,2];case 1:return i.sent(),this.ul=this.ul.remove(r),this.cl.delete(t),this.gl(),[3,4];case 2:return[4,this.nu.Oh(t,!1).then((function(){return u.Al(t,e)})).catch(xi)];case 3:i.sent(),i.label=4;case 4:return[2]}}))}))},t.prototype.Bu=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n;return i.__generator(this,(function(r){switch(r.label){case 0:this.El("applySuccessfulWrite()"),e=t.batch.batchId,r.label=1;case 1:return r.trys.push([1,4,,6]),[4,this.nu.vh(t)];case 2:return n=r.sent(),this.yl(e,null),this.pl(e),this.sl.wc(e,"acknowledged"),[4,this.Pl(n)];case 3:return r.sent(),[3,6];case 4:return[4,xi(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}}
2))}))},t.prototype.Qu=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n;return i.__generator(this,(function(r){switch(r.label){case 0:this.El("rejectFailedWrite()"),r.label=1;case 1:return r.trys.push([1,4,,6]),[4,this.nu.Dh(t)];case 2:return n=r.sent(),this.yl(t,e),this.pl(t),this.sl.wc(t,"rejected",e),[4,this.Pl(n)];case 3:return r.sent(),[3,6];case 4:return[4,xi(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}}))}))},t.prototype.bl=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r,o;return i.__generator(this,(function(i){switch(i.label){case 0:this.nl.cu()||h("SyncEngine","The network is disabled. The task returned by 'awaitPendingWrites()' will not complete until the network is enabled."),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.nu.gr()];case 2:return-1===(e=i.sent())?[2,void t.resolve()]:((n=this.fl.get(e)||[]).push(t),this.fl.set(e,n),[3,4]);case 3:return r=i.sent(),o=ur(r,"Initialization of waitForPendingWrites() operation failed"),t.reject(o),[3,4];case 4:return[2]}}
2))}))},t.prototype.pl=function(t){(this.fl.get(t)||[]).forEach((function(t){t.resolve()})),this.fl.delete(t)},t.prototype.vl=function(t){this.fl.forEach((function(e){e.forEach((function(e){e.reject(new I(N.CANCELLED,t))}))})),this.fl.clear()},t.prototype.Rl=function(t,e){var n=this._l[this.currentUser.Xh()];n||(n=new tt(_)),n=n.nt(t,e),this._l[this.currentUser.Xh()]=n},t.prototype.yl=function(t,e){var n=this._l[this.currentUser.Xh()];if(n){var r=n.get(t);r&&(e?r.reject(e):r.resolve(),n=n.remove(t)),this._l[this.currentUser.Xh()]=n}},t.prototype.Al=function(t,e){var n=this;void 0===e&&(e=null),this.sl.mc(t);for(var r=0,i=this.hl.get(t);r<i.length;r++){var o=i[r];this.ol.delete(o),e&&this.rl.Sl(o,e)}this.hl.delete(t),this.Tl&&this.ll.zh(t).forEach((function(t){n.ll.Nr(t)||n.Dl(t)}))},t.prototype.Dl=function(t){var e=this.ul.get(t);null!==e&&(this.nl.vu(e),this.ul=this.ul.remove(t),this.cl.delete(e),this.gl())},t.prototype.ml=function(t,e){for(var n=0,r=e;n<r.length;n++){var i=r[n];i instanceof Gi?(this.ll.Eo(i.key,t),this.Cl(i)):i instanceof Ki?(h("SyncEngine","Document no longer in limbo: "+i.key),this.ll.mo(i.key,t),this.ll.Nr(i.key)||this.Dl(i.key)):m()}},t.prototype.Cl=function(t){var e=t.key;this.ul.get(e)||(h("SyncEngine","New document in limbo: "+e),this.al.push(e),this.gl())},t.prototype.gl=function(){for(;this.al.length>0&&this.ul.size<this.il;){var t=this.al.shift(),e=this.dl.next();this.cl.set(e,new Zi(t)),this.ul=this.ul.nt(t,e),this.nl.listen(new $(dn(cn(t.path)),e,2,Yn.Ts))}},t.prototype.Nl=function(){return this.ul},t.prototype.Fl=function(){return this.al},t.prototype.Pl=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n,r,o,a=this;return i.__generator(this,(function(i){switch(i.label){case 0:return n=[],r=[],o=[],this.ol.forEach((function(i,s){o.push(Promise.resolve().then((function(){var e=s.view.Wc(t);return e.Gc?a.nu.Lh(s.query,!1).then((function(t){var n=t.documents;return s.view.Wc(n,e)})):e})).then((function(t){var i=e&&e.Qt.get(s.targetId),o=s.view.Bn(t,a.Tl,i);if(a.ml(s.targetId,o.Yc),o.snapshot){a.Tl&&a.sl.Pc(s.targetId,o.snapshot.fromCache?"not-current":"current"),n.push(o.snapshot);var u=Hn.ls(s.targetId,o.snapshot);r.push(u)}})))})),[4,Promise.all(o)];case 1:return i.sent(),this.rl.ka(n),[4,this.nu.kh(r)];case 2:return i.sent(),[2]}}))}))},t.prototype.El=function(t){},t.prototype.Wu=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e;return i.__generator(this,(function(n){switch(n.label){case 0:return this.currentUser.isEqual(t)?[3,3]:(h("SyncEngine","User change. New user:",t.Xh()),[4,this.nu.Vh(t)]);case 1:return e=n.sent(),this.currentUser=t,this.vl("'waitForPendingWrites' promise is rejected due to a user change."),this.sl.Vh(t,e.yh,e.ph),[4,this.Pl(e.gh)];case 2:n.sent(),n.label=3;case 3:return[2]}}
2))}))},t.prototype.$e=function(t){var e=this.cl.get(t);if(e&&e.el)return ht().add(e.key);var n=ht(),r=this.hl.get(t);if(!r)return n;for(var i=0,o=r;i<o.length;i++){var a=o[i],s=this.ol.get(a);n=n.Ct(s.view.Qc)}return n},t}();function Ji(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n,r,o;return i.__generator(this,(function(i){switch(i.label){case 0:return[4,(n=y(t)).nu.Lh(e.query,!0)];case 1:return r=i.sent(),o=e.view.Zc(r),[2,(n.Tl&&n.ml(e.targetId,o.Yc),o)]}}))}))}function to(t,e,n,r){return i.__awaiter(this,void 0,void 0,(function(){var o,a;return i.__generator(this,(function(i){switch(i.label){case 0:return(o=y(t)).El("applyBatchState()"),[4,function(t,e){var n=y(t),r=y(n.Kn);return n.persistence.runTransaction("Lookup mutation documents","readonly",(function(t){return r.Pr(t,e).next((function(e){return e?n.Rh.Xn(t,e):qn.resolve(null)}))}))}(o.nu,e)];case 1:return null===(a=i.sent())?[3,6]:"pending"!==n?[3,3]:[4,o.nl.gu()];case 2:return i.sent(),[3,4];case 3:"acknowledged"===n||"rejected"===n?(o.yl(e,r||null),function(t,e){y(y(t).Kn).Sr(e)}(o.nu,e)):m(),i.label=4;case 4:return[4,o.Pl(a)];case 5:return i.sent(),[3,7];case 6:h("SyncEngine","Cannot apply mutation batch with id: "+e),i.label=7;case 7:return[2]}}
2))}))}function eo(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n,r,o,a,s,u,l,c;return i.__generator(this,(function(i){switch(i.label){case 0:return n=y(t),!0!==e||!0===n.wl?[3,3]:(r=n.sl.cc(),[4,no(n,r.N())]);case 1:return o=i.sent(),n.wl=!0,[4,n.nl.ju(!0)];case 2:for(i.sent(),a=0,s=o;a<s.length;a++)u=s[a],n.nl.listen(u);return[3,7];case 3:return!1!==e||!1===n.wl?[3,7]:(l=[],c=Promise.resolve(),n.hl.forEach((function(t,e){n.sl.Ac(e)?l.push(e):c=c.then((function(){return n.Al(e),n.nu.Oh(e,!0)})),n.nl.vu(e)})),[4,c]);case 4:return i.sent(),[4,no(n,l)];case 5:return i.sent(),function(t){var e=y(t);e.cl.forEach((function(t,n){e.nl.vu(n)})),e.ll.Hh(),e.cl=new Map,e.ul=new tt(F.P)}(n),n.wl=!1,[4,n.nl.ju(!1)];case 6:i.sent(),i.label=7;case 7:return[2]}}))}))}function no(t,e,n){return i.__awaiter(this,void 0,void 0,(function(){var n,r,o,a,s,u,l,c,f,h,d,p,v,m;return i.__generator(this,(function(i){switch(i.label){case 0:n=y(t),r=[],o=[],a=0,s=e,i.label=1;case 1:return a<s.length?(u=s[a],l=void 0,(c=n.hl.get(u))&&0!==c.length?[4,n.nu.Mh(dn(c[0]))]:[3,7]):[3,13];case 2:l=i.sent(),f=0,h=c,i.label=3;case 3:return f<h.length?(d=h[f],p=n.ol.get(d),[4,Ji(n,p)]):[3,6];case 4:(v=i.sent()).snapshot&&o.push(v.snapshot),i.label=5;case 5:return f++,[3,3];case 6:return[3,11];case 7:return[4,_i(n.nu,u)];case 8:return m=i.sent(),[4,n.nu.Mh(m)];case 9:return l=i.sent(),[4,n.Il(ro(m),u,!1)];case 10:i.sent(),i.label=11;case 11:r.push(l),i.label=12;case 12:return a++,[3,1];case 13:return[2,(n.rl.ka(o),r)]}}))}))}function ro(t){return ln(t.path,t.collectionGroup,t.orderBy,t.filters,t.limit,"F",t.startAt,t.endAt)}function io(t){var e=y(t);return y(y(e.nu).persistence).rh()}function oo(t,e,n,r){return i.__awaiter(this,void 0,void 0,(function(){var o,a,s;return i.__generator(this,(function(i){switch(i.label){case 0:return(o=y(t)).wl?(h("SyncEngine","Ignoring unexpected query state notification."),[3,8]):[3,1];case 1:if(!o.hl.has(e))return[3,8];switch(n){case"current":case"not-current":return[3,2];case"rejected":return[3,5]}return[3,7];case 2:return[4,function(t){var e=y(t),n=y(e.Ah);return e.persistence.runTransaction("Get new document changes","readonly",(function(t){return n.Ur(t,e.mh)})).then((function(t){var n=t.Qr,r=t.readTime;return e.mh=r,n}))}(o.nu)];case 3:return a=i.sent(),s=yt.Gt(e,"current"===n),[4,o.Pl(a,s)];case 4:return i.sent(),[3,8];case 5:return[4,o.nu.Oh(e,!0)];case 6:return i.sent(),o.Al(e,r),[3,8];case 7:m(),i.label=8;case 8:return[2]}}
2))}))}function ao(t,e,n){return i.__awaiter(this,void 0,void 0,(function(){var r,o,a,s,u,l,c,f,d,p;return i.__generator(this,(function(v){switch(v.label){case 0:if(!(r=y(t)).wl)return[3,10];o=0,a=e,v.label=1;case 1:return o<a.length?(s=a[o],r.hl.has(s)?(h("SyncEngine","Adding an already active target "+s),[3,5]):[4,_i(r.nu,s)]):[3,6];case 2:return u=v.sent(),[4,r.nu.Mh(u)];case 3:return l=v.sent(),[4,r.Il(ro(u),l.targetId,!1)];case 4:v.sent(),r.nl.listen(l),v.label=5;case 5:return o++,[3,1];case 6:c=function(t){return i.__generator(this,(function(e){switch(e.label){case 0:return r.hl.has(t)?[4,r.nu.Oh(t,!1).then((function(){r.nl.vu(t),r.Al(t)})).catch(xi)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))},f=0,d=n,v.label=7;case 7:return f<d.length?(p=d[f],[5,c(p)]):[3,10];case 8:v.sent(),v.label=9;case 9:return f++,[3,7];case 10:return[2]}}))}))}var so=function(){this.kl=void 0,this.listeners=[]},uo=function(){function t(t){this.Du=t,this.xl=new C((function(t){return yn(t)}),gn),this.onlineState="Unknown",this.$l=new Set,this.Du.subscribe(this)}return t.prototype.listen=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r,o,a,s;return i.__generator(this,(function(i){switch(i.label){case 0:if(e=t.query,n=!1,(r=this.xl.get(e))||(n=!0,r=new so),!n)return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),o=r,[4,this.Du.listen(e)];case 2:return o.kl=i.sent(),[3,4];case 3:return a=i.sent(),s=ur(a,"Initialization of query '"+bn(t.query)+"' failed"),[2,void t.onError(s)];case 4:return this.xl.set(e,r),r.listeners.push(t),t.Jc(this.onlineState),r.kl&&t.Ml(r.kl)&&this.Ol(),[2]}}))}))},t.prototype.vu=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r,o;return i.__generator(this,(function(i){return e=t.query,n=!1,(r=this.xl.get(e))&&(o=r.listeners.indexOf(t))>=0&&(r.listeners.splice(o,1),n=0===r.listeners.length),n?[2,(this.xl.delete(e),this.Du.vu(e))]:[2]}))}))},t.prototype.ka=function(t){for(var e=!1,n=0,r=t;n<r.length;n++){var i=r[n],o=i.query,a=this.xl.get(o);if(a){for(var s=0,u=a.listeners;s<u.length;s++)u[s].Ml(i)&&(e=!0);a.kl=i}}e&&this.Ol()},t.prototype.Sl=function(t,e){var n=this.xl.get(t);if(n)for(var r=0,i=n.listeners;r<i.length;r++)i[r].onError(e);this.xl.delete(t)},t.prototype.Vl=function(t){this.onlineState=t;var e=!1;this.xl.forEach((function(n,r){for(var i=0,o=r.listeners;i<o.length;i++)o[i].Jc(t)&&(e=!0)})),e&&this.Ol()},t.prototype.Ll=function(t){this.$l.add(t),t.next()},t.prototype.ql=function(t){this.$l.delete(t)},t.prototype.Ol=function(){this.$l.forEach((function(t){t.next()}))},t}(),lo=function(){function t(t,e,n){this.query=t,this.Bl=e,this.Ul=!1,this.Ql=null,this.onlineState="Unknown",this.options=n||{}}return t.prototype.Ml=function(t){if(!this.options.includeMetadataChanges){for(var e=[],n=0,r=t.docChanges;n<r.length;n++){var i=r[n];3!==i.type&&e.push(i)}t=new gt(t.query,t.docs,t.Ot,e,t.Lt,t.fromCache,t.qt,!0)}var o=!1;return this.Ul?this.Wl(t)&&(this.Bl.next(t),o=!0):this.jl(t,this.onlineState)&&(this.Kl(t),o=!0),this.Ql=t,o},t.prototype.onError=function(t){this.Bl.error(t)},t.prototype.Jc=function(t){this.onlineState=t;var e=!1;return this.Ql&&!this.Ul&&this.jl(this.Ql,t)&&(this.Kl(this.Ql),e=!0),e},t.prototype.jl=function(t,e){if(!t.fromCache)return!0;var n="Offline"!==e;return!(this.options.Gl&&n||t.docs._()&&"Offline"!==e)},t.prototype.Wl=function(t){if(t.docChanges.length>0)return!0;var e=this.Ql&&this.Ql.hasPendingWrites!==t.hasPendingWrites;return!(!t.qt&&!e)&&!0===this.options.includeMetadataChanges},t.prototype.Kl=function(t){t=gt.Ut(t.query,t.docs,t.Lt,t.fromCache),this.Ul=!0,this.Bl.next(t)},t}(),co=function(){function t(){}return t.prototype.Ph=function(t){this.zl=t},t.prototype.es=function(t,e,n,r){var i=this;return e.on()||n.isEqual(M.min())?this.Hl(t,e):this.zl.Xn(t,r).next((function(o){var s=i.Yl(e,o);return(e.hn()||e.an())&&i.Gc(e.en,s,r,n)?i.Hl(t,e):(f()<=a.LogLevel.DEBUG&&h("IndexFreeQueryEngine","Re-using previous result from %s to execute query: %s",n.toString(),bn(e)),i.zl.es(t,e,n).next((function(t){return s.forEach((function(e){t=t.nt(e.key,e)})),t})))}))},t.prototype.Yl=function(t,e){var n=new rt(_n(t));return e.forEach((function(e,r){r instanceof rn&&wn(t,r)&&(n=n.add(r))})),n},t.prototype.Gc=function(t,e,n,r){if(n.size!==e.size)return!0;var i="F"===t?e.last():e.first();return!!i&&(i.hasPendingWrites||i.version.o(r)>0)},t.prototype.Hl=function(t,e){return f()<=a.LogLevel.DEBUG&&h("IndexFreeQueryEngine","Using full collection scan to execute query:",bn(e)),this.zl.es(t,e,M.min())},t}(),fo=function(){function t(t,e){this.Gn=t,this.dr=e,this.Kn=[],this.Jl=1,this.Xl=new rt(ki.Uh)}return t.prototype.Ir=function(t){return qn.resolve(0===this.Kn.length)},t.prototype.mr=function(t,e,n,r){var i=this.Jl;this.Jl++,this.Kn.length>0&&this.Kn[this.Kn.length-1];var o=new Fn(i,e,n,r);this.Kn.push(o);for(var a=0,s=r;a<s.length;a++){var u=s[a];this.Xl=this.Xl.add(new ki(u.key,i)),this.Gn.Ar(t,u.key.path.p())}return qn.resolve(o)},t.prototype.Rr=function(t,e){return qn.resolve(this.Zl(e))},t.prototype.Vr=function(t,e){var n=e+1,r=this.t_(n),i=r<0?0:r;return qn.resolve(this.Kn.length>i?this.Kn[i]:null)},t.prototype.gr=function(){return qn.resolve(0===this.Kn.length?-1:this.Jl-1)},t.prototype.yr=function(t){return qn.resolve(this.Kn.slice())},t.prototype.Hn=function(t,e){var n=this,r=new ki(e,0),i=new ki(e,Number.POSITIVE_INFINITY),o=[];return this.Xl.vt([r,i],(function(t){var e=n.Zl(t.Jh);o.push(e)})),qn.resolve(o)},t.prototype.ts=function(t,e){var n=this,r=new rt(_);return e.forEach((function(t){var e=new ki(t,0),i=new ki(t,Number.POSITIVE_INFINITY);n.Xl.vt([e,i],(function(t){r=r.add(t.Jh)}))})),qn.resolve(this.e_(r))},t.prototype.hs=function(t,e){var n=e.path,r=n.length+1,i=n;F.W(i)||(i=i.child(""));var o=new ki(new F(i),0),a=new rt(_);return this.Xl.St((function(t){var e=t.key.path;return!!n.D(e)&&(e.length===r&&(a=a.add(t.Jh)),!0)}),o),qn.resolve(this.e_(a))},t.prototype.e_=function(t){var e=this,n=[];return t.forEach((function(t){var r=e.Zl(t);null!==r&&n.push(r)})),n},t.prototype.br=function(t,e){var n=this;g(0===this.n_(e.batchId,"removed")),this.Kn.shift();var r=this.Xl;
2return qn.forEach(e.mutations,(function(i){var o=new ki(i.key,e.batchId);return r=r.delete(o),n.dr.Dr(t,i.key)})).next((function(){n.Xl=r}))},t.prototype.Sr=function(t){},t.prototype.Nr=function(t,e){var n=new ki(e,0),r=this.Xl.Dt(n);return qn.resolve(e.isEqual(r&&r.key))},t.prototype.Cr=function(t){return this.Kn.length,qn.resolve()},t.prototype.n_=function(t,e){return this.t_(t)},t.prototype.t_=function(t){return 0===this.Kn.length?0:t-this.Kn[0].batchId},t.prototype.Zl=function(t){var e=this.t_(t);return e<0||e>=this.Kn.length?null:this.Kn[e]},t}(),ho=function(){function t(t,e){this.Gn=t,this.s_=e,this.docs=new tt(F.P),this.size=0}return t.prototype.xn=function(t,e,n){var r=e.key,i=this.docs.get(r),o=i?i.size:0,a=this.s_(e);return this.docs=this.docs.nt(r,{Mr:e,size:a,readTime:n}),this.size+=a-o,this.Gn.Ar(t,r.path.p())},t.prototype.Mn=function(t){var e=this.docs.get(t);e&&(this.docs=this.docs.remove(t),this.size-=e.size)},t.prototype.On=function(t,e){var n=this.docs.get(e);return qn.resolve(n?n.Mr:null)},t.prototype.getEntries=function(t,e){var n=this,r=st();return e.forEach((function(t){var e=n.docs.get(t);r=r.nt(t,e?e.Mr:null)})),qn.resolve(r)},t.prototype.es=function(t,e,n){for(var r=lt(),i=new F(e.path.child("")),o=this.docs.ut(i);o.wt();){var a=o.dt(),s=a.key,u=a.value,l=u.Mr,c=u.readTime;if(!e.path.D(s.path))break;c.o(n)<=0||l instanceof rn&&wn(e,l)&&(r=r.nt(l.key,l))}return qn.resolve(r)},t.prototype.i_=function(t,e){return qn.forEach(this.docs,(function(t){return e(t)}))},t.prototype.jr=function(e){return new t.Kr(this)},t.prototype.zr=function(t){return qn.resolve(this.size)},t}();ho.Kr=function(t){function e(e){var n=this;return(n=t.call(this)||this).Hr=e,n}return i.__extends(e,t),e.prototype.Bn=function(t){var e=this,n=[];return this.Nn.forEach((function(r,i){i?n.push(e.Hr.xn(t,i,e.readTime)):e.Hr.Mn(r)})),qn.Dn(n)},e.prototype.Ln=function(t,e){return this.Hr.On(t,e)},e.prototype.qn=function(t,e){return this.Hr.getEntries(t,e)},e}(Bn);var po=function(){function t(t){this.persistence=t,this.r_=new C((function(t){return W(t)}),H),this.lastRemoteSnapshotVersion=M.min(),this.highestTargetId=0,this.o_=0,this.h_=new Ei,this.targetCount=0,this.a_=si.to()}return t.prototype.pe=function(t,e){return this.r_.forEach((function(t,n){return e(n)})),qn.resolve()},t.prototype.ro=function(t){return qn.resolve(this.lastRemoteSnapshotVersion)},t.prototype.oo=function(t){return qn.resolve(this.o_)},t.prototype.no=function(t){return this.highestTargetId=this.a_.next(),qn.resolve(this.highestTargetId)},t.prototype.ho=function(t,e,n){return n&&(this.lastRemoteSnapshotVersion=n),e>this.o_&&(this.o_=e),qn.resolve()},t.prototype.uo=function(t){this.r_.set(t.target,t);var e=t.targetId;e>this.highestTargetId&&(this.a_=new si(e),this.highestTargetId=e),t.sequenceNumber>this.o_&&(this.o_=t.sequenceNumber)},t.prototype.ao=function(t,e){return this.uo(e),this.targetCount+=1,qn.resolve()},t.prototype.lo=function(t,e){return this.uo(e),qn.resolve()},t.prototype._o=function(t,e){return this.r_.delete(e.target),this.h_.zh(e.targetId),this.targetCount-=1,qn.resolve()},t.prototype.hr=function(t,e,n){var r=this,i=0,o=[];return this.r_.forEach((function(a,s){s.sequenceNumber<=e&&null===n.get(s.targetId)&&(r.r_.delete(a),o.push(r.fo(t,s.targetId)),i++)})),qn.Dn(o).next((function(){return i}))},t.prototype.do=function(t){return qn.resolve(this.targetCount)},t.prototype.wo=function(t,e){var n=this.r_.get(e)||null;return qn.resolve(n)},t.prototype.To=function(t,e,n){return this.h_.jh(e,n),qn.resolve()},t.prototype.Io=function(t,e,n){this.h_.Gh(e,n);var r=this.persistence.dr,i=[];return r&&e.forEach((function(e){i.push(r.Dr(t,e))})),qn.Dn(i)},t.prototype.fo=function(t,e){return this.h_.zh(e),qn.resolve()},t.prototype.Ao=function(t,e){var n=this.h_.Yh(e);return qn.resolve(n)},t.prototype.Nr=function(t,e){return qn.resolve(this.h_.Nr(e))},t}(),vo=function(){function t(t){var e=this;this.u_={},this.yo=new Yn(0),this.po=!1,this.po=!0,this.dr=t(this),this.ko=new po(this),this.Gn=new qr,this.jn=new ho(this.Gn,(function(t){return e.dr.c_(t)}))}return t.prototype.start=function(){return Promise.resolve()},t.prototype.th=function(){return this.po=!1,Promise.resolve()},Object.defineProperty(t.prototype,"tr",{get:function(){return this.po}
2,enumerable:!1,configurable:!0}),t.prototype.Bo=function(){},t.prototype.Uo=function(){},t.prototype.uh=function(){return this.Gn},t.prototype.oh=function(t){var e=this.u_[t.Xh()];return e||(e=new fo(this.Gn,this.dr),this.u_[t.Xh()]=e),e},t.prototype.hh=function(){return this.ko},t.prototype.ah=function(){return this.jn},t.prototype.runTransaction=function(t,e,n){var r=this;h("MemoryPersistence","Starting transaction:",t);var i=new mo(this.yo.next());return this.dr.l_(),n(i).next((function(t){return r.dr.__(i).next((function(){return t}))})).vn().then((function(t){return i.Wn(),t}))},t.prototype.f_=function(t,e){return qn.Cn(Object.values(this.u_).map((function(n){return function(){return n.Nr(t,e)}})))},t}(),mo=function(t){function e(e){var n=this;return(n=t.call(this)||this).Ro=e,n}return i.__extends(e,t),e}(zn),go=function(){function t(t){this.persistence=t,this.d_=new Ei,this.w_=null}return t.T_=function(e){return new t(e)},Object.defineProperty(t.prototype,"E_",{get:function(){if(this.w_)return this.w_;throw m()},enumerable:!1,configurable:!0}),t.prototype.Eo=function(t,e,n){return this.d_.Eo(n,e),this.E_.delete(n),qn.resolve()},t.prototype.mo=function(t,e,n){return this.d_.mo(n,e),this.E_.add(n),qn.resolve()},t.prototype.Dr=function(t,e){return this.E_.add(e),qn.resolve()},t.prototype.removeTarget=function(t,e){var n=this;this.d_.zh(e.targetId).forEach((function(t){return n.E_.add(t)}));var r=this.persistence.hh();return r.Ao(t,e.targetId).next((function(t){t.forEach((function(t){return n.E_.add(t)}))})).next((function(){return r._o(t,e)}))},t.prototype.l_=function(){this.w_=new Set},t.prototype.__=function(t){var e=this,n=this.persistence.ah().jr();return qn.forEach(this.E_,(function(r){return e.I_(t,r).next((function(t){t||n.Mn(r)}))})).next((function(){return e.w_=null,n.apply(t)}))},t.prototype.wh=function(t,e){var n=this;return this.I_(t,e).next((function(t){t?n.E_.delete(e):n.E_.add(e)}))},t.prototype.c_=function(t){return 0},t.prototype.I_=function(t,e){var n=this;return qn.Cn([function(){return qn.resolve(n.d_.Nr(e))},function(){return n.persistence.hh().Nr(t,e)},function(){return n.persistence.f_(t,e)}])},t}(),yo=function(){function t(t){this.m_=t.m_,this.A_=t.A_}return t.prototype.Na=function(t){this.R_=t},t.prototype.ba=function(t){this.P_=t},t.prototype.onMessage=function(t){this.V_=t},t.prototype.close=function(){this.A_()},t.prototype.send=function(t){this.m_(t)},t.prototype.g_=function(){this.R_()},t.prototype.y_=function(t){this.P_(t)},t.prototype.p_=function(t){this.V_(t)},t}(),bo={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery"},wo=function(t){function e(e){var n=this;return(n=t.call(this,e)||this).forceLongPolling=e.forceLongPolling,n}return i.__extends(e,t),e.prototype.N_=function(t,e,n,r){return new Promise((function(i,o){var a=new u.XhrIo;a.listenOnce(u.EventType.COMPLETE,(function(){try{switch(a.getLastErrorCode()){case u.ErrorCode.NO_ERROR:var e=a.getResponseJson();h("Connection","XHR received:",JSON.stringify(e)),i(e);break;case u.ErrorCode.TIMEOUT:h("Connection",'RPC "'+t+'" timed out'),o(new I(N.DEADLINE_EXCEEDED,"Request time out"));break;case u.ErrorCode.HTTP_ERROR:var n=a.getStatus();if(h("Connection",'RPC "'+t+'" failed with status:',n,"response text:",a.getResponseText()),n>0){var r=a.getResponseJson().error;if(r&&r.status&&r.message){var s=function(t){var e=t.toLowerCase().replace("_","-");return Object.values(N).indexOf(e)>=0?e:N.UNKNOWN}(r.status);o(new I(s,r.message))}else o(new I(N.UNKNOWN,"Server responded with status "+a.getStatus()))}else o(new I(N.UNAVAILABLE,"Connection failed."));break;default:m()}}finally{h("Connection",'RPC "'+t+'" completed.')}}));var s=JSON.stringify(r);a.send(e,"POST",s,n,15)}))},e.prototype.Fa=function(t,e){var n=[this.v_,"/","google.firestore.v1.Firestore","/",t,"/channel"],r=u.createWebChannelTransport(),i={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:"projects/"+this.s.projectId+"/databases/"+this.s.database},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling};this.C_(i.initMessageHeaders,e),s.isMobileCordova()||s.isReactNative()||s.isElectron()||s.isIE()||s.isUWP()||s.isBrowserExtension()||(i.httpHeadersOverwriteParam="$httpHeaders");var o=n.join("");h("Connection","Creating WebChannel: "+o,i);var a=r.createWebChannel(o,i),l=!1,c=!1,f=new yo({m_:function(t){c?h("Connection","Not sending because WebChannel is closed:",t):(l||(h("Connection","Opening WebChannel transport."),a.open(),l=!0),h("Connection","WebChannel sending:",t),a.send(t))},A_:function(){return a.close()}}),d=function(t,e){a.listen(t,(function(t){try{e(t)}catch(t){setTimeout((function(){throw t}),0)}}))};return d(u.WebChannel.EventType.OPEN,(function(){c||h("Connection","WebChannel transport opened.")})),d(u.WebChannel.EventType.CLOSE,(function(){c||(c=!0,h("Connection","WebChannel transport closed"),f.y_())}
2)),d(u.WebChannel.EventType.ERROR,(function(t){c||(c=!0,p("Connection","WebChannel transport errored:",t),f.y_(new I(N.UNAVAILABLE,"The operation could not be completed")))})),d(u.WebChannel.EventType.MESSAGE,(function(t){var e;if(!c){var n=t.data[0];g(!!n);var r=n,i=r.error||(null===(e=r[0])||void 0===e?void 0:e.error);if(i){h("Connection","WebChannel received error:",i);var o=i.status,s=function(t){var e=K[t];if(void 0!==e)return J(e)}(o),u=i.message;void 0===s&&(s=N.INTERNAL,u="Unknown error status: "+o+" with message "+i.message),c=!0,f.y_(new I(s,u)),a.close()}else h("Connection","WebChannel received:",n),f.p_(n)}})),setTimeout((function(){f.g_()}),0),f},e}(function(){function t(t){this.b_=t,this.s=t.s;var e=t.ssl?"https":"http";this.v_=e+"://"+t.host,this.S_="projects/"+this.s.projectId+"/databases/"+this.s.database+"/documents"}return t.prototype.ja=function(t,e,n,r){var i=this.D_(t,e);h("RestConnection","Sending: ",i,n);var o={};return this.C_(o,r),this.N_(t,i,o,n).then((function(t){return h("RestConnection","Received: ",t),t}),(function(e){throw p("RestConnection",t+" failed with error: ",e,"url: ",i,"request:",n),e}))},t.prototype.Ka=function(t,e,n,r){return this.ja(t,e,n,r)},t.prototype.C_=function(t,e){if(t["X-Goog-Api-Client"]="gl-js/ fire/7.18.0",t["Content-Type"]="text/plain",e)for(var n in e.ea)e.ea.hasOwnProperty(n)&&(t[n]=e.ea[n])},t.prototype.D_=function(t,e){var n=bo[t];return this.v_+"/v1/"+e+":"+n},t}()),_o=function(){function t(){var t=this;this.F_=function(){return t.k_()},this.x_=function(){return t.M_()},this.O_=[],this.L_()}return t.prototype.uu=function(t){this.O_.push(t)},t.prototype.th=function(){window.removeEventListener("online",this.F_),window.removeEventListener("offline",this.x_)},t.prototype.L_=function(){window.addEventListener("online",this.F_),window.addEventListener("offline",this.x_)},t.prototype.k_=function(){h("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(var t=0,e=this.O_;t<e.length;t++)(0,e[t])(0)},t.prototype.M_=function(){h("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(var t=0,e=this.O_;t<e.length;t++)(0,e[t])(1)},t.Fs=function(){return"undefined"!=typeof window&&void 0!==window.addEventListener&&void 0!==window.removeEventListener},t}(),xo=function(){function t(){}return t.prototype.uu=function(t){},t.prototype.th=function(){},t}();function Eo(t){return new Gt(t,!0)}var ko="You are using the memory-only build of Firestore. Persistence support is only available via the @firebase/firestore bundle or the firebase-firestore.js build.",To=function(){function t(){}return t.prototype.initialize=function(t){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return this.sl=this.q_(t),this.persistence=this.B_(t),[4,this.persistence.start()];case 1:return e.sent(),this.U_=this.Q_(t),this.nu=this.W_(t),[2]}}))}))},t.prototype.Q_=function(t){return null},t.prototype.W_=function(t){return e=this.persistence,n=new co,r=t.j_,new wi(e,n,r);var e,n,r},t.prototype.B_=function(t){if(t.G_.K_)throw new I(N.FAILED_PRECONDITION,ko);return new vo(go.T_)},t.prototype.q_=function(t){return new Yi},t.prototype.terminate=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.U_&&this.U_.stop(),[4,this.sl.th()];case 1:return t.sent(),[4,this.persistence.th()];case 2:return t.sent(),[2]}}))}))},t.prototype.clearPersistence=function(t,e){throw new I(N.FAILED_PRECONDITION,ko)},t}(),So=function(t){function e(e){var n=this;return(n=t.call(this)||this).z_=e,n}return i.__extends(e,t),e.prototype.initialize=function(e){return i.__awaiter(this,void 0,void 0,(function(){var n,r=this;return i.__generator(this,(function(o){switch(o.label){case 0:return[4,t.prototype.initialize.call(this,e)];case 1:return o.sent(),[4,this.z_.initialize(this,e)];case 2:return o.sent(),n=this.z_.Du,this.sl instanceof Hi?(this.sl.Du={Fc:to.bind(null,n),kc:oo.bind(null,n),xc:ao.bind(null,n),rh:io.bind(null,n)},[4,this.sl.start()]):[3,4];case 3:o.sent(),o.label=4;case 4:return[4,this.persistence.qo((function(t){return i.__awaiter(r,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return[4,eo(this.z_.Du,t)];case 1:return e.sent(),this.U_&&(t&&!this.U_.tr?this.U_.start(this.nu):t||this.U_.stop()),[2]}}))}))}))];case 5:return o.sent(),[2]}}))}))},e.prototype.q_=function(t){if(t.G_.K_&&t.G_.synchronizeTabs){var e=ir();
2if(!Hi.Fs(e))throw new I(N.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");var n=bi(t.b_.s,t.b_.persistenceKey);return new Hi(e,t.ti,n,t.clientId,t.j_)}return new Yi},e}(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.initialize=function(e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(n){switch(n.label){case 0:return[4,t.prototype.initialize.call(this,e)];case 1:return n.sent(),[4,function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n;return i.__generator(this,(function(r){return e=y(t),n=y(e.Ah),[2,e.persistence.runTransaction("Synchronize last document change read time","readonly",(function(t){return n.Wr(t)})).then((function(t){e.mh=t}))]}))}))}(this.nu)];case 2:return n.sent(),[2]}}))}))},e.prototype.Q_=function(t){var e=this.persistence.dr.Yi;return new dr(e,t.ti)},e.prototype.B_=function(t){var e=bi(t.b_.s,t.b_.persistenceKey),n=Eo(t.b_.s);return new pi(t.G_.synchronizeTabs,e,t.clientId,hr.Ui(t.G_.cacheSizeBytes),t.ti,ir(),or(),n,this.sl,t.G_.Vo)},e.prototype.q_=function(t){return new Yi},e.prototype.clearPersistence=function(t,e){return function(t){return i.__awaiter(this,void 0,void 0,(function(){var e;return i.__generator(this,(function(n){switch(n.label){case 0:return Xn.Fs()?(e=t+"main",[4,Xn.delete(e)]):[2,Promise.resolve()];case 1:return n.sent(),[2]}}))}))}(bi(t,e))},e}(To)),Oo=function(){function t(){}return t.prototype.initialize=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n=this;return i.__generator(this,(function(r){switch(r.label){case 0:return this.nu?[3,3]:(this.nu=t.nu,this.sl=t.sl,this.su=this.H_(e),this.nl=this.Y_(e),this.Du=this.J_(e),this.X_=this.Z_(e),this.sl.Ga=function(t){return n.Du.Jc(t,1)},this.nl.Du=this.Du,[4,this.nl.start()]);case 1:return r.sent(),[4,this.nl.ju(this.Du.Tl)];case 2:r.sent(),r.label=3;case 3:return[2]}}
2))}))},t.prototype.Z_=function(t){return new uo(this.Du)},t.prototype.H_=function(t){var e,n=Eo(t.b_.s),r=(e=t.b_,new wo(e));return function(t,e,n){return new Di(t,e,n)}(t.credentials,r,n)},t.prototype.Y_=function(t){var e=this;return new Li(this.nu,this.su,t.ti,(function(t){return e.Du.Jc(t,0)}),_o.Fs()?new _o:new xo)},t.prototype.J_=function(t){return function(t,e,n,r,i,o,a){var s=new Qi(t,e,n,r,i,o);return a&&(s.wl=!0),s}(this.nu,this.nl,this.su,this.sl,t.j_,t.il,!t.G_.K_||!t.G_.synchronizeTabs)},t.prototype.terminate=function(){return this.nl.th()},t}();function Ao(t){return function(t,e){if("object"!=typeof t||null===t)return!1;for(var n=t,r=0,i=["next","error","complete"];r<i.length;r++){var o=i[r];if(o in n&&"function"==typeof n[o])return!0}return!1}(t)}var Co=function(){function t(t){this.observer=t,this.muted=!1}return t.prototype.next=function(t){this.observer.next&&this.tf(this.observer.next,t)},t.prototype.error=function(t){this.observer.error?this.tf(this.observer.error,t):console.error("Uncaught Error in snapshot listener:",t)},t.prototype.ef=function(){this.muted=!0},t.prototype.tf=function(t,e){var n=this;this.muted||setTimeout((function(){n.muted||t(e)}),0)},t}();function No(t,e){if(0!==e.length)throw new I(N.INVALID_ARGUMENT,"Function "+t+"() does not support arguments, but was called with "+Ko(e.length,"argument")+".")}function Io(t,e,n){if(e.length!==n)throw new I(N.INVALID_ARGUMENT,"Function "+t+"() requires "+Ko(n,"argument")+", but was called with "+Ko(e.length,"argument")+".")}function Po(t,e,n){if(e.length<n)throw new I(N.INVALID_ARGUMENT,"Function "+t+"() requires at least "+Ko(n,"argument")+", but was called with "+Ko(e.length,"argument")+".")}function Mo(t,e,n,r){if(e.length<n||e.length>r)throw new I(N.INVALID_ARGUMENT,"Function "+t+"() requires between "+n+" and "+r+" arguments, but was called with "+Ko(e.length,"argument")+".")}function Do(t,e,n,r){qo(t,e,Go(n)+" argument",r)}function Ro(t,e,n,r){void 0!==r&&Do(t,e,n,r)}function Lo(t,e,n,r){qo(t,e,n+" option",r)}function jo(t,e,n,r){void 0!==r&&Lo(t,e,n,r)}function Fo(t,e,n,r,i){void 0!==r&&function(t,e,n,r,i){for(var o=[],a=0,s=i;a<s.length;a++){var u=s[a];if(u===r)return;o.push(Vo(u))}var l=Vo(r);throw new I(N.INVALID_ARGUMENT,"Invalid value "+l+" provided to function "+t+'() for option "'+n+'". Acceptable values: '+o.join(", "))}(t,0,n,r,i)}function Uo(t,e,n,r){if(!e.some((function(t){return t===r})))throw new I(N.INVALID_ARGUMENT,"Invalid value "+Vo(r)+" provided to function "+t+"() for its "+Go(n)+" argument. Acceptable values: "+e.join(", "));return r}function qo(t,e,n,r){if(!("object"===e?Bo(r):"non-empty string"===e?"string"==typeof r&&""!==r:typeof r===e)){var i=Vo(r);throw new I(N.INVALID_ARGUMENT,"Function "+t+"() requires its "+n+" to be of type "+e+", but it was: "+i)}}function Bo(t){return"object"==typeof t&&null!==t&&(Object.getPrototypeOf(t)===Object.prototype||null===Object.getPrototypeOf(t))}function Vo(t){if(void 0===t)return"undefined";if(null===t)return"null";if("string"==typeof t)return t.length>20&&(t=t.substring(0,20)+"..."),JSON.stringify(t);if("number"==typeof t||"boolean"==typeof t)return""+t;if("object"==typeof t){if(t instanceof Array)return"an array";var e=function(t){if(t.constructor){var e=/function\s+([^\s(]+)\s*\(/.exec(t.constructor.toString());if(e&&e.length>1)return e[1]}return null}(t);return e?"a custom "+e+" object":"an object"}return"function"==typeof t?"a function":m()}function zo(t,e,n){if(void 0===n)throw new I(N.INVALID_ARGUMENT,"Function "+t+"() requires a valid "+Go(e)+" argument, but it was undefined.")}function Wo(t,e,n){O(e,(function(e,r){if(n.indexOf(e)<0)throw new I(N.INVALID_ARGUMENT,"Unknown option '"+e+"' passed to function "+t+"(). Available options: "+n.join(", "))}))}function Ho(t,e,n,r){var i=Vo(r);return new I(N.INVALID_ARGUMENT,"Function "+t+"() requires its "+Go(n)+" argument to be a "+e+", but it was: "+i)}function Yo(t,e,n){if(n<=0)throw new I(N.INVALID_ARGUMENT,"Function "+t+"() requires its "+Go(e)+" argument to be a positive number, but it was: "+n+".")}function Go(t){switch(t){case 1:return"first";
2case 2:return"second";case 3:return"third";default:return t+"th"}}function Ko(t,e){return t+" "+e+(1===t?"":"s")}function Xo(){if("undefined"==typeof Uint8Array)throw new I(N.UNIMPLEMENTED,"Uint8Arrays are not available in this environment.")}function $o(){if("undefined"==typeof atob)throw new I(N.UNIMPLEMENTED,"Blobs are unavailable in Firestore in this environment.")}var Zo=function(){function t(t){$o(),this.nf=t}return t.fromBase64String=function(e){Io("Blob.fromBase64String",arguments,1),Do("Blob.fromBase64String","string",1,e),$o();try{return new t(G.fromBase64String(e))}catch(e){throw new I(N.INVALID_ARGUMENT,"Failed to construct Blob from Base64 string: "+e)}},t.fromUint8Array=function(e){if(Io("Blob.fromUint8Array",arguments,1),Xo(),!(e instanceof Uint8Array))throw Ho("Blob.fromUint8Array","Uint8Array",1,e);return new t(G.fromUint8Array(e))},t.prototype.toBase64=function(){return Io("Blob.toBase64",arguments,0),$o(),this.nf.toBase64()},t.prototype.toUint8Array=function(){return Io("Blob.toUint8Array",arguments,0),Xo(),this.nf.toUint8Array()},t.prototype.toString=function(){return"Blob(base64: "+this.toBase64()+")"}
2,t.prototype.isEqual=function(t){return this.nf.isEqual(t.nf)},t}(),Qo=function(t){!function(t,e,n,r){if(!(e instanceof Array)||e.length<1)throw new I(N.INVALID_ARGUMENT,"Function FieldPath() requires its fieldNames argument to be an array with at least "+Ko(1,"element")+".")}(0,t);for(var e=0;e<t.length;++e)if(Do("FieldPath","string",e,t[e]),0===t[e].length)throw new I(N.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this.sf=new j(t)},Jo=function(t){function e(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.call(this,e)||this}return i.__extends(e,t),e.documentId=function(){return new e(j.L().F())},e.prototype.isEqual=function(t){if(!(t instanceof e))throw Ho("isEqual","FieldPath",1,t);return this.sf.isEqual(t.sf)},e}(Qo),ta=new RegExp("[~\\*/\\[\\]]"),ea=function(){this.if=this},na=function(t){function e(e){var n=this;return(n=t.call(this)||this).rf=e,n}return i.__extends(e,t),e.prototype.hf=function(t){if(2!==t.af)throw 1===t.af?t.uf(this.rf+"() can only appear at the top level of your update data"):t.uf(this.rf+"() cannot be used with set() unless you pass {merge:true}");return t.Le.push(t.path),null},e.prototype.isEqual=function(t){return t instanceof e},e}(ea);function ra(t,e,n){return new ma({af:3,cf:e.settings.cf,methodName:t.rf,lf:n},e.s,e.serializer,e.ignoreUndefinedProperties)}var ia=function(t){function e(e){var n=this;return(n=t.call(this)||this).rf=e,n}return i.__extends(e,t),e.prototype.hf=function(t){return new Re(t.path,new Se)},e.prototype.isEqual=function(t){return t instanceof e},e}(ea),oa=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).rf=e,r._f=n,r}return i.__extends(e,t),e.prototype.hf=function(t){var e=ra(this,t,!0),n=this._f.map((function(t){return xa(t,e)})),r=new Oe(n);return new Re(t.path,r)},e.prototype.isEqual=function(t){return this===t},e}(ea),aa=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).rf=e,r._f=n,r}return i.__extends(e,t),e.prototype.hf=function(t){var e=ra(this,t,!0),n=this._f.map((function(t){return xa(t,e)})),r=new Ce(n);return new Re(t.path,r)},e.prototype.isEqual=function(t){return this===t},e}(ea),sa=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).rf=e,r.ff=n,r}return i.__extends(e,t),e.prototype.hf=function(t){var e=new Ie(t.serializer,$t(t.serializer,this.ff));return new Re(t.path,e)},e.prototype.isEqual=function(t){return this===t},e}(ea),ua=function(t){function e(){return t.call(this)||this}return i.__extends(e,t),e.delete=function(){return No("FieldValue.delete",arguments),new la(new na("FieldValue.delete"))},e.serverTimestamp=function(){return No("FieldValue.serverTimestamp",arguments),new la(new ia("FieldValue.serverTimestamp"))},e.arrayUnion=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Po("FieldValue.arrayUnion",arguments,1),new la(new oa("FieldValue.arrayUnion",t))},e.arrayRemove=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Po("FieldValue.arrayRemove",arguments,1),new la(new aa("FieldValue.arrayRemove",t))},e.increment=function(t){return Do("FieldValue.increment","number",1,t),Io("FieldValue.increment",arguments,1),new la(new sa("FieldValue.increment",t))},e}(ea),la=function(t){function e(e){var n=this;return(n=t.call(this)||this).if=e,n.rf=e.rf,n}return i.__extends(e,t),e.prototype.hf=function(t){return this.if.hf(t)},e.prototype.isEqual=function(t){return t instanceof e&&this.if.isEqual(t.if)},e}(ua),ca=function(){function t(t,e){if(Io("GeoPoint",arguments,2),Do("GeoPoint","number",1,t),Do("GeoPoint","number",2,e),!isFinite(t)||t<-90||t>90)throw new I(N.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+t);if(!isFinite(e)||e<-180||e>180)throw new I(N.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+e);this.df=t,this.wf=e}return Object.defineProperty(t.prototype,"latitude",{get:function(){return this.df},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"longitude",{get:function(){return this.wf},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){return this.df===t.df&&this.wf===t.wf},t.prototype.T=function(t){return _(this.df,t.df)||_(this.wf,t.wf)},t}(),fa=/^__.*__$/,ha=function(t,e,n){this.Tf=t,this.Ef=e,this.If=n},da=function(){function t(t,e,n){this.data=t,this.Le=e,this.fieldTransforms=n}return t.prototype.mf=function(t,e){var n=[];return null!==this.Le?n.push(new Ye(t,this.data,this.Le,e)):n.push(new He(t,this.data,e)),this.fieldTransforms.length>0&&n.push(new Ke(t,this.fieldTransforms)),n},t}(),pa=function(){function t(t,e,n){this.data=t,this.Le=e,this.fieldTransforms=n}return t.prototype.mf=function(t,e){var n=[new Ye(t,this.data,this.Le,e)];return this.fieldTransforms.length>0&&n.push(new Ke(t,this.fieldTransforms)),n},t}();function va(t){switch(t){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw m()}}var ma=function(){function t(t,e,n,r,i,o){this.settings=t,this.s=e,this.serializer
2=n,this.ignoreUndefinedProperties=r,void 0===i&&this.Af(),this.fieldTransforms=i||[],this.Le=o||[]}return Object.defineProperty(t.prototype,"path",{get:function(){return this.settings.path},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"af",{get:function(){return this.settings.af},enumerable:!1,configurable:!0}),t.prototype.Rf=function(e){return new t(Object.assign(Object.assign({},this.settings),e),this.s,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.Le)},t.prototype.Pf=function(t){var e,n=null===(e=this.path)||void 0===e?void 0:e.child(t),r=this.Rf({path:n,lf:!1});return r.Vf(t),r},t.prototype.gf=function(t){var e,n=null===(e=this.path)||void 0===e?void 0:e.child(t),r=this.Rf({path:n,lf:!1});return r.Af(),r},t.prototype.yf=function(t){return this.Rf({path:void 0,lf:!0})},t.prototype.uf=function(t){return Aa(t,this.settings.methodName,this.settings.pf||!1,this.path,this.settings.cf)},t.prototype.contains=function(t){return void 0!==this.Le.find((function(e){return t.D(e)}))||void 0!==this.fieldTransforms.find((function(e){return t.D(e.field)}))},t.prototype.Af=function(){if(this.path)for(var t=0;t<this.path.length;t++)this.Vf(this.path.get(t))},t.prototype.Vf=function(t){if(0===t.length)throw this.uf("Document fields must not be empty");if(va(this.af)&&fa.test(t))throw this.uf('Document fields cannot begin and end with "__"')},t}(),ga=function(){function t(t,e,n){this.s=t,this.ignoreUndefinedProperties=e,this.serializer=n||Eo(t)}return t.prototype.bf=function(t,e,n,r){return void 0===r&&(r=!1),new ma({af:t,methodName:e,cf:n,path:j.$(),lf:!1,pf:r},this.s,this.serializer,this.ignoreUndefinedProperties)},t}();function ya(t,e,n,r,i,o){void 0===o&&(o={});var a=t.bf(o.merge||o.mergeFields?2:0,e,n,i);Ta("Data must be an object, but it was:",a,r);var s,u,l=Ea(r,a);if(o.merge)s=new De(a.Le),u=a.fieldTransforms;else if(o.mergeFields){for(var c=[],f=0,h=o.mergeFields;f<h.length;f++){var d=h[f],p=void 0;if(d instanceof Qo)p=d.sf;else{if("string"!=typeof d)throw m();p=Oa(e,d,n)}if(!a.contains(p))throw new I(N.INVALID_ARGUMENT,"Field '"+p+"' is specified in your field mask but missing from your input data.");Ca(c,p)||c.push(p)}s=new De(c),u=a.fieldTransforms.filter((function(t){return s.je(t.field)}))}else s=null,u=a.fieldTransforms;return new da(new Je(l),s,u)}function ba(t,e,n,r){var i=t.bf(1,e,n);Ta("Data must be an object, but it was:",i,r);var o=[],a=new tn;O(r,(function(t,r){var s=Oa(e,t,n),u=i.gf(s);if(r instanceof ea&&r.if instanceof na)o.push(s);else{var l=xa(r,u);null!=l&&(o.push(s),a.set(s,l))}}));var s=new De(o);return new pa(a.Ge(),s,i.fieldTransforms)}function wa(t,e,n,r,i,o){var a=t.bf(1,e,n),s=[Sa(e,r,n)],u=[i];if(o.length%2!=0)throw new I(N.INVALID_ARGUMENT,"Function "+e+"() needs to be called with an even number of arguments that alternate between field names and values.");for(var l=0;l<o.length;l+=2)s.push(Sa(e,o[l])),u.push(o[l+1]);for(var c=[],f=new tn,h=s.length-1;h>=0;--h)if(!Ca(c,s[h])){var d=s[h],p=u[h],v=a.gf(d);if(p instanceof ea&&p.if instanceof na)c.push(d);else{var m=xa(p,v);null!=m&&(c.push(d),f.set(d,m))}}var g=new De(c);return new pa(f.Ge(),g,a.fieldTransforms)}function _a(t,e,n,r){return void 0===r&&(r=!1),xa(n,t.bf(r?4:3,e))}function xa(t,e){if(ka(t))return Ta("Unsupported field value:",e,t),Ea(t,e);if(t instanceof ea)return function(t,e){if(!va(e.af))throw e.uf(t.rf+"() can only be used with update() and set()");if(!e.path)throw e.uf(t.rf+"() is not currently supported inside arrays");var n=t.hf(e);n&&e.fieldTransforms.push(n)}(t,e),null;if(e.path&&e.Le.push(e.path),t instanceof Array){if(e.settings.lf&&4!==e.af)throw e.uf("Nested arrays are not supported");return function(t,e){for(var n=[],r=0,i=0,o=t;i<o.length;i++){var a=xa(o[i],e.yf(r));null==a&&(a={nullValue:"NULL_VALUE"}),n.push(a),r++}return{arrayValue:{values:n}}}(t,e)}return function(t,e){if(null===t)return{nullValue:"NULL_VALUE"};if("number"==typeof t)return $t(e.serializer,t);if("boolean"==typeof t)return{booleanValue:t};if("string"==typeof t)return{stringValue:t};if(t instanceof Date){var n=P.fromDate(t);return{timestampValue:Zt(e.serializer,n)}}if(t instanceof P){var r=new P(t.seconds,1e3*Math.floor(t.nanoseconds/1e3));return{timestampValue:Zt(e.serializer,r)}}if(t instanceof ca)return{geoPointValue:{latitude:t.latitude,longitude:t.longitude}};if(t instanceof Zo)return{bytesValue:Qt(e.serializer,t)};if(t instanceof ha){var i=e.s,o=t.Tf;if(!o.isEqual(i))throw e.uf("Document reference is for database "+o.projectId+"/"+o.database+" but should be for database "+i.projectId+"/"+i.database);return{referenceValue:ee(t.Tf||e.s,t.Ef.path)}}if(void 0===t&&e.ignoreUndefinedProperties)return null;throw e.uf("Unsupported field value: "+Vo(t))}(t,e)}function Ea(t,e){var n={};return A(t)?e.path&&e.path.length>0&&e.Le.push(e.path):O(t,(function(t,r){var i=xa(r,e.Pf(t));null!=i&&(n[t]=i)})),{mapValue:{fields:n}}}function ka(t){return!("object"!=typeof t||null===t||t instanceof Array||t instanceof Date||t instanceof P||t instanceof ca||t instanceof Zo||t instanceof ha||t instanceof ea)}function Ta(t,e,n){if(!ka(n)||!Bo(n)){var r=Vo(n);throw"an object"===r?e.uf(t+" a custom object"):e.uf(t+" "+r)}}function Sa(t,e,n){if(e instanceof Qo)return e.sf;if("string"==typeof e)return Oa(t,e);throw Aa("Field path arguments must be of type string or FieldPath.",t,!1,void 0,n)}function Oa(t,e,n){try{return function(t){if(t.search(ta)>=0)throw new I(N.INVALID_ARGUMENT,"Invalid field path ("+t+"). Paths must not contain '~', '*', '/', '[', or ']'");try{return new(Jo.bind.apply(Jo,i.__spreadArrays([void 0],t.split("."))))}catch(i){throw new I(N.INVALID_ARGUMENT,"Invalid field path ("+t+"). Paths must not be empty, begin with '.', end with '.', or contain '..'")}}(e).sf}catch(e){throw Aa((r=e)instanceof Error?r.message:r.toString(),t,!1,void 0,n)}var r}function Aa(t,e,n,r,i){var o=r&&!r._(),a=void 0!==i,s="Function "+e+"() called with invali
2d data";n&&(s+=" (via `toFirestore()`)");var u="";return(o||a)&&(u+=" (found",o&&(u+=" in field "+r),a&&(u+=" in document "+i),u+=")"),new I(N.INVALID_ARGUMENT,(s+=". ")+t+u)}function Ca(t,e){return t.some((function(t){return t.isEqual(e)}))}var Na=function(){function t(t){this.su=t,this.vf=new Map,this.mutations=[],this.Sf=!1,this.Df=null,this.Cf=new Set}return t.prototype.Nf=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n=this;return i.__generator(this,(function(r){switch(r.label){case 0:if(this.Ff(),this.mutations.length>0)throw new I(N.INVALID_ARGUMENT,"Firestore transactions require all reads to be executed before all writes.");return[4,function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n,r,o,a,s,u;return i.__generator(this,(function(i){switch(i.label){case 0:return n=y(t),r=se(n.serializer)+"/documents",o={documents:e.map((function(t){return re(n.serializer,t)}))},[4,n.Ka("BatchGetDocuments",r,o)];case 1:return a=i.sent(),s=new Map,a.forEach((function(t){var e=function(t,e){return"found"in e?function(t,e){g(!!e.found),e.found.name,e.found.updateTime;var n=ie(t,e.found.name),r=te(e.found.updateTime),i=new Je({mapValue:{fields:e.found.fields}});return new rn(n,r,i,{})}(t,e):"missing"in e?function(t,e){g(!!e.missing),g(!!e.readTime);var n=ie(t,e.missing),r=te(e.readTime);return new on(n,r)}(t,e):m()}(n.serializer,t);s.set(e.key.toString(),e)})),u=[],[2,(e.forEach((function(t){var e=s.get(t.toString());g(!!e),u.push(e)})),u)]}}))}))}(this.su,t)];case 1:return[2,((e=r.sent()).forEach((function(t){t instanceof on||t instanceof rn?n.kf(t):m()})),e)]}}))}))},t.prototype.set=function(t,e){this.write(e.mf(t,this.Ue(t))),this.Cf.add(t)},t.prototype.update=function(t,e){try{this.write(e.mf(t,this.xf(t)))}catch(t){this.Df=t}this.Cf.add(t)},t.prototype.delete=function(t){this.write([new Ze(t,this.Ue(t))]),this.Cf.add(t)},t.prototype.commit=function(){return i.__awaiter(this,void 0,void 0,(function(){var t,e=this;return i.__generator(this,(function(n){switch(n.label){case 0:if(this.Ff(),this.Df)throw this.Df;return t=this.vf,this.mutations.forEach((function(e){t.delete(e.key.toString())})),t.forEach((function(t,n){var r=new F(R.k(n));e.mutations.push(new Qe(r,e.Ue(r)))})),[4,function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n,r,o;return i.__generator(this,(function(i){switch(i.label){case 0:return n=y(t),r=se(n.serializer)+"/documents",o={writes:e.map((function(t){return ce(n.serializer,t)}))},[4,n.ja("Commit",r,o)];case 1:return i.sent(),[2]}}))}))}(this.su,this.mutations)];case 1:return n.sent(),this.Sf=!0,[2]}}))}))},t.prototype.kf=function(t){var e;if(t instanceof rn)e=t.version;else{if(!(t instanceof on))throw m();e=M.min()}var n=this.vf.get(t.key.toString());if(n){if(!e.isEqual(n))throw new I(N.ABORTED,"Document version changed between two reads.")}else this.vf.set(t.key.toString(),e)},t.prototype.Ue=function(t){var e=this.vf.get(t.toString());return!this.Cf.has(t)&&e?je.updateTime(e):je.Qe()},t.prototype.xf=function(t){var e=this.vf.get(t.toString());if(!this.Cf.has(t)&&e){if(e.isEqual(M.min()))throw new I(N.INVALID_ARGUMENT,"Can't update a document that doesn't exist.");return je.updateTime(e)}return je.exists(!0)},t.prototype.write=function(t){this.Ff(),this.mutations=this.mutations.concat(t)},t.prototype.Ff=function(){},t}(),Ia=function(){function t(t,e,n,r){this.ti=t,this.su=e,this.updateFunction=n,this.si=r,this.$f=5,this.wi=new Kn(this.ti,"transaction_retry")}return t.prototype.run=function(){this.Mf()},t.prototype.Mf=function(){var t=this;this.wi.ps((function(){return i.__awaiter(t,void 0,void 0,(function(){var t,e,n=this;return i.__generator(this,(function(r){return t=new Na(this.su),(e=this.Of(t))&&e.then((function(e){n.ti.hi((function(){return t.commit().then((function(){n.si.resolve(e)})).catch((function(t){n.Lf(t)}))}))})).catch((function(t){n.Lf(t)})),[2]}))}))}))},t.prototype.Of=function(t){try{var e=this.updateFunction(t);return!U(e)&&e.catch&&e.then?e:(this.si.reject(Error("Transaction callback must return a Promise")),null)}catch(t){return this.si.reject(t),null}},t.prototype.Lf=function(t){var e=this;this.$f>0&&this.qf(t)?(this.$f-=1,this.ti.hi((function(){return e.Mf(),Promise.resolve()}))):this.si.reject(t)},t.prototype.qf=function(t){if("FirebaseError"===t.name){var e=t.code;return"aborted"===e||"failed-precondition"===e||!Q(e)}return!1},t}(),Pa=function(){function t(t,e){this.credentials=t,this.ti=e,this.clientId=w.t(),this.Bf=new Gn}return t.prototype.start=function(t,e,n,r){var i=this;this.Uf(),this.b_=t;var o=new Gn,a=!1;return this.credentials.ia((function(t){if(!a)return a=!0,h("FirestoreClient","Initializing. user=",t.uid),i.Qf(e,n,r,t,o).then(i.Bf.resolve,i.Bf.reject);i.ti.Vi((function(){return i.nl.Wu(t)}))}
2)),this.ti.hi((function(){return i.Bf.promise})),o.promise},t.prototype.enableNetwork=function(){var t=this;return this.Uf(),this.ti.enqueue((function(){return t.persistence.Uo(!0),t.nl.enableNetwork()}))},t.prototype.Qf=function(t,e,n,r,o){return i.__awaiter(this,void 0,void 0,(function(){var a,s,u=this;return i.__generator(this,(function(l){switch(l.label){case 0:return l.trys.push([0,3,,4]),a={ti:this.ti,b_:this.b_,clientId:this.clientId,credentials:this.credentials,j_:r,il:100,G_:n},[4,t.initialize(a)];case 1:return l.sent(),[4,e.initialize(t,a)];case 2:return l.sent(),this.persistence=t.persistence,this.sl=t.sl,this.nu=t.nu,this.U_=t.U_,this.su=e.su,this.nl=e.nl,this.Du=e.Du,this.Wf=e.X_,this.persistence.Bo((function(){return i.__awaiter(u,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return[4,this.terminate()];case 1:return t.sent(),[2]}}))}))})),o.resolve(),[3,4];case 3:if(s=l.sent(),o.reject(s),!this.jf(s))throw s;return[2,(console.warn("Error enabling offline persistence. Falling back to persistence disabled: "+s),this.Qf(new To,new Oo,{K_:!1},r,o))];case 4:return[2]}}
2))}))},t.prototype.jf=function(t){return"FirebaseError"===t.name?t.code===N.FAILED_PRECONDITION||t.code===N.UNIMPLEMENTED:!("undefined"!=typeof DOMException&&t instanceof DOMException)||22===t.code||20===t.code||11===t.code},t.prototype.Uf=function(){if(this.ti.Ei)throw new I(N.FAILED_PRECONDITION,"The client has already been terminated.")},t.prototype.disableNetwork=function(){var t=this;return this.Uf(),this.ti.enqueue((function(){return t.persistence.Uo(!1),t.nl.disableNetwork()}))},t.prototype.terminate=function(){var t=this;return this.ti.Pi((function(){return i.__awaiter(t,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.U_&&this.U_.stop(),[4,this.nl.th()];case 1:return t.sent(),[4,this.sl.th()];case 2:return t.sent(),[4,this.persistence.th()];case 3:return t.sent(),this.credentials.ra(),[2]}}))}))}))},t.prototype.waitForPendingWrites=function(){var t=this;this.Uf();var e=new Gn;return this.ti.hi((function(){return t.Du.bl(e)})),e.promise},t.prototype.listen=function(t,e,n){var r=this;this.Uf();var i=new Co(n),o=new lo(t,i,e);return this.ti.hi((function(){return r.Wf.listen(o)})),function(){i.ef(),r.ti.hi((function(){return r.Wf.vu(o)}))}},t.prototype.Kf=function(t){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return this.Uf(),[4,this.Bf.promise];case 1:return[2,(e.sent(),function(t,e,n){return i.__awaiter(this,void 0,void 0,(function(){var r,o=this;return i.__generator(this,(function(a){switch(a.label){case 0:return r=new Gn,[4,t.enqueue((function(){return i.__awaiter(o,void 0,void 0,(function(){var t,o,a;return i.__generator(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,e.$h(n)];case 1:return(t=i.sent())instanceof rn?r.resolve(t):t instanceof on?r.resolve(null):r.reject(new I(N.UNAVAILABLE,"Failed to get document from cache. (However, this document may exist on the server. Run again without setting 'source' in the GetOptions to attempt to retrieve the document from the server.)")),[3,3];case 2:return o=i.sent(),a=ur(o,"Failed to get document '"+n+" from cache"),r.reject(a),[3,3];case 3:return[2]}}
2))}))}))];case 1:return[2,(a.sent(),r.promise)]}}))}))}(this.ti,this.nu,t))]}}))}))},t.prototype.Gf=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(n){switch(n.label){case 0:return this.Uf(),[4,this.Bf.promise];case 1:return[2,(n.sent(),function(t,e,n,r){var i=new Gn,o=Ma(t,e,cn(n.path),{includeMetadataChanges:!0,Gl:!0},{next:function(t){o();var e=t.docs.has(n);!e&&t.fromCache?i.reject(new I(N.UNAVAILABLE,"Failed to get document because the client is offline.")):e&&t.fromCache&&r&&"server"===r.source?i.reject(new I(N.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):i.resolve(t)},error:function(t){return i.reject(t)}});return i.promise}(this.ti,this.Wf,t,e))]}}))}))},t.prototype.zf=function(t){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return this.Uf(),[4,this.Bf.promise];case 1:return[2,(e.sent(),function(t,e,n){return i.__awaiter(this,void 0,void 0,(function(){var r,o=this;return i.__generator(this,(function(a){switch(a.label){case 0:return r=new Gn,[4,t.enqueue((function(){return i.__awaiter(o,void 0,void 0,(function(){var t,o,a,s,u,l;return i.__generator(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,e.Lh(n,!0)];case 1:return t=i.sent(),o=new Xi(n,t.qh),a=o.Wc(t.documents),s=o.Bn(a,!1),r.resolve(s.snapshot),[3,3];case 2:return u=i.sent(),l=ur(u,"Failed to execute query '"+n+" against cache"),r.reject(l),[3,3];case 3:return[2]}}
2))}))}))];case 1:return[2,(a.sent(),r.promise)]}}))}))}(this.ti,this.nu,t))]}}))}))},t.prototype.Hf=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(n){switch(n.label){case 0:return this.Uf(),[4,this.Bf.promise];case 1:return[2,(n.sent(),function(t,e,n,r){var i=new Gn,o=Ma(t,e,n,{includeMetadataChanges:!0,Gl:!0},{next:function(t){o(),t.fromCache&&r&&"server"===r.source?i.reject(new I(N.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):i.resolve(t)},error:function(t){return i.reject(t)}});return i.promise}(this.ti,this.Wf,t,e))]}}))}))},t.prototype.write=function(t){var e=this;this.Uf();var n=new Gn;return this.ti.hi((function(){return e.Du.write(t,n)})),n.promise},t.prototype.s=function(){return this.b_.s},t.prototype.Ll=function(t){var e=this;this.Uf();var n=new Co(t);return this.ti.hi((function(){return i.__awaiter(e,void 0,void 0,(function(){return i.__generator(this,(function(t){return[2,this.Wf.Ll(n)]}))}))})),function(){n.ef(),e.ti.hi((function(){return i.__awaiter(e,void 0,void 0,(function(){return i.__generator(this,(function(t){return[2,this.Wf.ql(n)]}))}))}))}},Object.defineProperty(t.prototype,"Yf",{get:function(){return this.ti.Ei},enumerable:!1,configurable:!0}),t.prototype.transaction=function(t){var e=this;this.Uf();var n=new Gn;return this.ti.hi((function(){return new Ia(e.ti,e.su,t,n).run(),Promise.resolve()})),n.promise},t}();function Ma(t,e,n,r,i){var o=new Co(i),a=new lo(n,o,r);return t.hi((function(){return e.listen(a)})),function(){o.ef(),t.hi((function(){return e.vu(a)}))}}var Da=function(){function t(t,e,n,r){this.s=t,this.timestampsInSnapshots=e,this.Jf=n,this.Xf=r}return t.prototype.Zf=function(t){switch(Nt(t)){case 0:return null;case 1:return t.booleanValue;case 2:return jt(t.integerValue||t.doubleValue);case 3:return this.td(t.timestampValue);case 4:return this.ed(t);case 5:return t.stringValue;case 6:return new Zo(Ft(t.bytesValue));case 7:return this.nd(t.referenceValue);case 8:return this.sd(t.geoPointValue);case 9:return this.rd(t.arrayValue);case 10:return this.od(t.mapValue);default:throw m()}},t.prototype.od=function(t){var e=this,n={};return O(t.fields||{},(function(t,r){n[t]=e.Zf(r)})),n},t.prototype.sd=function(t){return new ca(jt(t.latitude),jt(t.longitude))},t.prototype.rd=function(t){var e=this;return(t.values||[]).map((function(t){return e.Zf(t)}))},t.prototype.ed=function(t){switch(this.Jf){case"previous":var e=function t(e){var n=e.mapValue.fields.__previous_value__;return Ot(n)?t(n):n}(t);return null==e?null:this.Zf(e);case"estimate":return this.td(At(t));default:return null}},t.prototype.td=function(t){var e=Lt(t),n=new P(e.seconds,e.nanos);return this.timestampsInSnapshots?n:n.toDate()},t.prototype.nd=function(t){var e=R.k(t);g(_e(e));var n=new T(e.get(1),e.get(3)),r=new F(e.g(5));return n.isEqual(this.s)||d("Document "+r+" contains a document reference within a different database ("+n.projectId+"/"+n.database+") which is not supported. It will be treated as a reference in the current database ("+this.s.projectId+"/"+this.s.database+") instead."),this.Xf(r)},t}(),Ra=hr.ji,La=function(){function t(t){var e,n,r,i;if(void 0===t.host){if(void 0!==t.ssl)throw new I(N.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else Lo("settings","non-empty string","host",t.host),this.host=t.host,jo("settings","boolean","ssl",t.ssl),this.ssl=null===(e=t.ssl)||void 0===e||e;if(Wo("settings",t,["host","ssl","credentials","timestampsInSnapshots","cacheSizeBytes","experimentalForceLongPolling","ignoreUndefinedProperties"]),jo("settings","object","credentials",t.credentials),this.credentials=t.credentials,jo("settings","boolean","timestampsInSnapshots",t.timestampsInSnapshots),jo("settings","boolean","ignoreUndefinedProperties",t.ignoreUndefinedProperties),!0===t.timestampsInSnapshots?d("The setting 'timestampsInSnapshots: true' is no longer required and should be removed."):!1===t.timestampsInSnapshots&&d("Support for 'timestampsInSnapshots: false' will be removed soon. You must update your co
2de to handle Timestamp objects."),this.timestampsInSnapshots=null===(n=t.timestampsInSnapshots)||void 0===n||n,this.ignoreUndefinedProperties=null!==(r=t.ignoreUndefinedProperties)&&void 0!==r&&r,jo("settings","number","cacheSizeBytes",t.cacheSizeBytes),void 0===t.cacheSizeBytes)this.cacheSizeBytes=hr.Gi;else{if(t.cacheSizeBytes!==Ra&&t.cacheSizeBytes<hr.Ki)throw new I(N.INVALID_ARGUMENT,"cacheSizeBytes must be at least "+hr.Ki);this.cacheSizeBytes=t.cacheSizeBytes}jo("settings","boolean","experimentalForceLongPolling",t.experimentalForceLongPolling),this.forceLongPolling=null!==(i=t.experimentalForceLongPolling)&&void 0!==i&&i}return t.prototype.isEqual=function(t){return this.host===t.host&&this.ssl===t.ssl&&this.timestampsInSnapshots===t.timestampsInSnapshots&&this.credentials===t.credentials&&this.cacheSizeBytes===t.cacheSizeBytes&&this.forceLongPolling===t.forceLongPolling&&this.ignoreUndefinedProperties===t.ignoreUndefinedProperties},t}(),ja=function(){function t(e,n,r,o){var a=this;if(void 0===r&&(r=new To),void 0===o&&(o=new Oo),this.hd=r,this.ad=o,this.ud=null,this.ld=new sr,this.INTERNAL={delete:function(){return i.__awaiter(a,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this._d(),[4,this.fd.terminate()];case 1:return t.sent(),[2]}}))}))}},"object"==typeof e.options){var s=e;this.ud=s,this.Tf=t.dd(s),this.wd=s.name,this.Td=new Ai(n)}else{var u=e;if(!u.projectId)throw new I(N.INVALID_ARGUMENT,"Must provide projectId");this.Tf=new T(u.projectId,u.database),this.wd="[DEFAULT]",this.Td=new Oi}this.Ed=new La({})}return Object.defineProperty(t.prototype,"Id",{get:function(){return this.md||(this.md=new ga(this.Tf,this.Ed.ignoreUndefinedProperties)),this.md},enumerable:!1,configurable:!0}),t.prototype.settings=function(t){Io("Firestore.settings",arguments,1),Do("Firestore.settings","object",1,t);var e=new La(t);if(this.fd&&!this.Ed.isEqual(e))throw new I(N.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only call settings() before calling any other methods on a Firestore object.");this.Ed=e,void 0!==e.credentials&&(this.Td=function(t){if(!t)return new Oi;switch(t.type){case"gapi":var e=t.Ad;return g(!("object"!=typeof e||null===e||!e.auth||!e.auth.getAuthHeaderValueForFirstParty)),new Ni(e,t.la||"0");case"provider":return t.Ad;default:throw new I(N.INVALID_ARGUMENT,"makeCredentialsProvider failed due to invalid credential type")}}(e.credentials))},t.prototype.enableNetwork=function(){return this._d(),this.fd.enableNetwork()},t.prototype.disableNetwork=function(){return this._d(),this.fd.disableNetwork()},t.prototype.enablePersistence=function(t){var e,n;if(this.fd)throw new I(N.FAILED_PRECONDITION,"Firestore has already been started and persistence can no longer be enabled. You can only call enablePersistence() before calling any other methods on a Firestore object.");var r=!1,i=!1;if(t&&(void 0!==t.experimentalTabSynchronization&&d("The 'experimentalTabSynchronization' setting will be removed. Use 'synchronizeTabs' instead."),r=null!==(n=null!==(e=t.synchronizeTabs)&&void 0!==e?e:t.experimentalTabSynchronization)&&void 0!==n&&n,i=!!t.experimentalForceOwningTab&&t.experimentalForceOwningTab,r&&i))throw new I(N.INVALID_ARGUMENT,"The 'experimentalForceOwningTab' setting cannot be used with 'synchronizeTabs'.");return this.Rd(this.hd,this.ad,{K_:!0,cacheSizeBytes:this.Ed.cacheSizeBytes,synchronizeTabs:r,Vo:i})},t.prototype.clearPersistence=function(){return i.__awaiter(this,void 0,void 0,(function(){var t,e=this;return i.__generator(this,(function(n){if(void 0!==this.fd&&!this.fd.Yf)throw new I(N.FAILED_PRECONDITION,"Persistence can only be cleared before a Firestore instance is initialized or after it is terminated.");return t=new Gn,[2,(this.ld.Ii((function(){return i.__awaiter(e,void 0,void 0,(function(){var e;return i.__generator(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.hd.clearPersistence(this.Tf,this.wd)];case 1:return n.sent(),t.resolve(),[3,3];case 2:return e=n.sent(),t.reject(e),[3,3];case 3:return[2]}}
2))}))})),t.promise)]}))}))},t.prototype.terminate=function(){return this.app._removeServiceInstance("firestore"),this.INTERNAL.delete()},Object.defineProperty(t.prototype,"Pd",{get:function(){return this._d(),this.fd.Yf},enumerable:!1,configurable:!0}),t.prototype.waitForPendingWrites=function(){return this._d(),this.fd.waitForPendingWrites()},t.prototype.onSnapshotsInSync=function(t){if(this._d(),Ao(t))return this.fd.Ll(t);Do("Firestore.onSnapshotsInSync","function",1,t);var e={next:t};return this.fd.Ll(e)},t.prototype._d=function(){return this.fd||this.Rd(new To,new Oo,{K_:!1}),this.fd},t.prototype.Vd=function(){return new k(this.Tf,this.wd,this.Ed.host,this.Ed.ssl,this.Ed.forceLongPolling)},t.prototype.Rd=function(t,e,n){var r=this.Vd();return this.fd=new Pa(this.Td,this.ld),this.fd.start(r,t,e,n)},t.dd=function(t){if(e=t.options,!Object.prototype.hasOwnProperty.call(e,"projectId"))throw new I(N.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');var e,n=t.options.projectId;if(!n||"string"!=typeof n)throw new I(N.INVALID_ARGUMENT,"projectId must be a string in FirebaseApp.options");return new T(n)},Object.defineProperty(t.prototype,"app",{get:function(){if(!this.ud)throw new I(N.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this.ud},enumerable:!1,configurable:!0}),t.prototype.collection=function(t){return Io("Firestore.collection",arguments,1),Do("Firestore.collection","non-empty string",1,t),this._d(),new Qa(R.k(t),this,null)},t.prototype.doc=function(t){return Io("Firestore.doc",arguments,1),Do("Firestore.doc","non-empty string",1,t),this._d(),qa.gd(R.k(t),this,null)},t.prototype.collectionGroup=function(t){if(Io("Firestore.collectionGroup",arguments,1),Do("Firestore.collectionGroup","non-empty string",1,t),t.indexOf("/")>=0)throw new I(N.INVALID_ARGUMENT,"Invalid collection ID '"+t+"' passed to function Firestore.collectionGroup(). Collection IDs must not contain '/'.");return this._d(),new $a(function(t){return new un(R.$(),t)}(t),this,null)},t.prototype.runTransaction=function(t){var e=this;return Io("Firestore.runTransaction",arguments,1),Do("Firestore.runTransaction","function",1,t),this._d().transaction((function(n){return t(new Fa(e,n))}))},t.prototype.batch=function(){return this._d(),new Ua(this)},Object.defineProperty(t,"logLevel",{get:function(){switch(f()){case a.LogLevel.DEBUG:return"debug";case a.LogLevel.ERROR:return"error";case a.LogLevel.SILENT:return"silent";case a.LogLevel.WARN:return"warn";case a.LogLevel.INFO:return"info";case a.LogLevel.VERBOSE:return"verbose";default:return"error"}},enumerable:!1,configurable:!0}),t.setLogLevel=function(t){var e;Io("Firestore.setLogLevel",arguments,1),Uo("setLogLevel",["debug","error","silent","warn","info","verbose"],1,t),e=t,c.setLogLevel(e)},t.prototype.yd=function(){return this.Ed.timestampsInSnapshots},t}(),Fa=function(){function t(t,e){this.pd=t,this.bd=e}return t.prototype.get=function(t){var e=this;Io("Transaction.get",arguments,1);var n=ns("Transaction.get",t,this.pd);return this.bd.Nf([n.Ef]).then((function(t){if(!t||1!==t.length)return m();var r=t[0];if(r instanceof on)return new Va(e.pd,n.Ef,null,!1,!1,n.If);if(r instanceof rn)return new Va(e.pd,n.Ef,r,!1,!1,n.If);throw m()}
2))},t.prototype.set=function(t,e,n){Mo("Transaction.set",arguments,2,3);var r=ns("Transaction.set",t,this.pd);n=Ja("Transaction.set",n);var i=is(r.If,e,n),o=ya(this.pd.Id,"Transaction.set",r.Ef,i,null!==r.If,n);return this.bd.set(r.Ef,o),this},t.prototype.update=function(t,e,n){for(var r,i,o=[],a=3;a<arguments.length;a++)o[a-3]=arguments[a];return"string"==typeof e||e instanceof Jo?(Po("Transaction.update",arguments,3),r=ns("Transaction.update",t,this.pd),i=wa(this.pd.Id,"Transaction.update",r.Ef,e,n,o)):(Io("Transaction.update",arguments,2),r=ns("Transaction.update",t,this.pd),i=ba(this.pd.Id,"Transaction.update",r.Ef,e)),this.bd.update(r.Ef,i),this},t.prototype.delete=function(t){Io("Transaction.delete",arguments,1);var e=ns("Transaction.delete",t,this.pd);return this.bd.delete(e.Ef),this},t}(),Ua=function(){function t(t){this.pd=t,this.vd=[],this.Sd=!1}return t.prototype.set=function(t,e,n){Mo("WriteBatch.set",arguments,2,3),this.Dd();var r=ns("WriteBatch.set",t,this.pd);n=Ja("WriteBatch.set",n);var i=is(r.If,e,n),o=ya(this.pd.Id,"WriteBatch.set",r.Ef,i,null!==r.If,n);return this.vd=this.vd.concat(o.mf(r.Ef,je.Qe())),this},t.prototype.update=function(t,e,n){for(var r,i,o=[],a=3;a<arguments.length;a++)o[a-3]=arguments[a];return this.Dd(),"string"==typeof e||e instanceof Jo?(Po("WriteBatch.update",arguments,3),r=ns("WriteBatch.update",t,this.pd),i=wa(this.pd.Id,"WriteBatch.update",r.Ef,e,n,o)):(Io("WriteBatch.update",arguments,2),r=ns("WriteBatch.update",t,this.pd),i=ba(this.pd.Id,"WriteBatch.update",r.Ef,e)),this.vd=this.vd.concat(i.mf(r.Ef,je.exists(!0))),this},t.prototype.delete=function(t){Io("WriteBatch.delete",arguments,1),this.Dd();var e=ns("WriteBatch.delete",t,this.pd);return this.vd=this.vd.concat(new Ze(e.Ef,je.Qe())),this},t.prototype.commit=function(){return this.Dd(),this.Sd=!0,this.vd.length>0?this.pd._d().write(this.vd):Promise.resolve()},t.prototype.Dd=function(){if(this.Sd)throw new I(N.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")},t}(),qa=function(t){function e(e,n,r){var i=this;return(i=t.call(this,n.Tf,e,r)||this).Ef=e,i.firestore=n,i.If=r,i.fd=i.firestore._d(),i}return i.__extends(e,t),e.gd=function(t,n,r){if(t.length%2!=0)throw new I(N.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but "+t.F()+" has "+t.length);return new e(new F(t),n,r)},Object.defineProperty(e.prototype,"id",{get:function(){return this.Ef.path.S()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return new Qa(this.Ef.path.p(),this.firestore,this.If)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this.Ef.path.F()},enumerable:!1,configurable:!0}),e.prototype.collection=function(t){if(Io("DocumentReference.collection",arguments,1),Do("DocumentReference.collection","non-empty string",1,t),!t)throw new I(N.INVALID_ARGUMENT,"Must provide a non-empty collection name to collection()");var e=R.k(t);return new Qa(this.Ef.path.child(e),this.firestore,null)},e.prototype.isEqual=function(t){if(!(t instanceof e))throw Ho("isEqual","DocumentReference",1,t);return this.firestore===t.firestore&&this.Ef.isEqual(t.Ef)&&this.If===t.If},e.prototype.set=function(t,e){Mo("DocumentReference.set",arguments,1,2),e=Ja("DocumentReference.set",e);var n=is(this.If,t,e),r=ya(this.firestore.Id,"DocumentReference.set",this.Ef,n,null!==this.If,e);return this.fd.write(r.mf(this.Ef,je.Qe()))},e.prototype.update=function(t,e){for(var n,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return"string"==typeof t||t instanceof Jo?(Po("DocumentReference.update",arguments,2),n=wa(this.firestore.Id,"DocumentReference.update",this.Ef,t,e,r)):(Io("DocumentReference.update",arguments,1),n=ba(this.firestore.Id,"DocumentReference.update",this.Ef,t)),this.fd.write(n.mf(this.Ef,je.exists(!0)))},e.prototype.delete=function(){return Io("DocumentReference.delete",arguments,0),this.fd.write([new Ze(this.Ef,je.Qe())])},e.prototype.onSnapshot=function(){for(var t,e,n,r=this,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];Mo("DocumentReference.onSnapshot",arguments,1,4);var a={includeMetadataChanges:!1},s=0;"object"!=typeof i[s]||Ao(i[s])||(Wo("DocumentReference.onSnapshot",a=i[s],["includeMetadataChanges"]),jo("DocumentReference.onSnapshot","boolean","includeMetadataChanges",a.includeMetadataChanges),s++);var u={includeMetadataChanges:a.includeMetadataChanges};if(Ao(i[s])){var l=i[s];i[s]=null===(t=l.next)||void 0===t?void 0:t.bind(l),i[s+1]=null===(e=l.error)||void 0===e?void 0:e.b
2ind(l),i[s+2]=null===(n=l.complete)||void 0===n?void 0:n.bind(l)}else Do("DocumentReference.onSnapshot","function",s,i[s]),Ro("DocumentReference.onSnapshot","function",s+1,i[s+1]),Ro("DocumentReference.onSnapshot","function",s+2,i[s+2]);var c={next:function(t){i[s]&&i[s](r.Cd(t))},error:i[s+1],complete:i[s+2]};return this.fd.listen(cn(this.Ef.path),u,c)},e.prototype.get=function(t){var e=this;Mo("DocumentReference.get",arguments,0,1),es("DocumentReference.get",t);var n=this.firestore._d();return t&&"cache"===t.source?n.Kf(this.Ef).then((function(t){return new Va(e.firestore,e.Ef,t,!0,t instanceof rn&&t.Ke,e.If)})):n.Gf(this.Ef,t).then((function(t){return e.Cd(t)}))},e.prototype.withConverter=function(t){return new e(this.Ef,this.firestore,t)},e.prototype.Cd=function(t){var e=t.docs.get(this.Ef);return new Va(this.firestore,this.Ef,e,t.fromCache,t.hasPendingWrites,this.If)},e}(ha),Ba=function(){function t(t,e){this.hasPendingWrites=t,this.fromCache=e}return t.prototype.isEqual=function(t){return this.hasPendingWrites===t.hasPendingWrites&&this.fromCache===t.fromCache},t}(),Va=function(){function t(t,e,n,r,i,o){this.pd=t,this.Ef=e,this.Nd=n,this.Fd=r,this.kd=i,this.If=o}return t.prototype.data=function(t){var e=this;if(Mo("DocumentSnapshot.data",arguments,0,1),t=ts("DocumentSnapshot.data",t),this.Nd){if(this.If){var n=new za(this.pd,this.Ef,this.Nd,this.Fd,this.kd,null);return this.If.fromFirestore(n,t)}return new Da(this.pd.Tf,this.pd.yd(),t.serverTimestamps||"none",(function(t){return new qa(t,e.pd,null)})).Zf(this.Nd.Ze())}},t.prototype.get=function(t,e){var n=this;if(Mo("DocumentSnapshot.get",arguments,1,2),e=ts("DocumentSnapshot.get",e),this.Nd){var r=this.Nd.data().field(Sa("DocumentSnapshot.get",t,this.Ef));if(null!==r)return new Da(this.pd.Tf,this.pd.yd(),e.serverTimestamps||"none",(function(t){return new qa(t,n.pd,n.If)})).Zf(r)}},Object.defineProperty(t.prototype,"id",{get:function(){return this.Ef.path.S()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ref",{get:function(){return new qa(this.Ef,this.pd,this.If)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"exists",{get:function(){return null!==this.Nd},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"metadata",{get:function(){return new Ba(this.kd,this.Fd)},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(e){if(!(e instanceof t))throw Ho("isEqual","DocumentSnapshot",1,e);return this.pd===e.pd&&this.Fd===e.Fd&&this.Ef.isEqual(e.Ef)&&(null===this.Nd?null===e.Nd:this.Nd.isEqual(e.Nd))&&this.If===e.If},t}(),za=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.data=function(e){return t.prototype.data.call(this,e)},e}(Va);function Wa(t,e,n,r,i,o,a){var s;if(i.O()){if("array-contains"===o||"array-contains-any"===o)throw new I(N.INVALID_ARGUMENT,"Invalid Query. You can't perform '"+o+"' queries on FieldPath.documentId().");if("in"===o||"not-in"===o){Ga(a,o);for(var u=[],l=0,c=a;l<c.length;l++){var f=c[l];u.push(Ya(r,t,f))}s={arrayValue:{values:u}}}else s=Ya(r,t,a)}else"in"!==o&&"not-in"!==o&&"array-contains-any"!==o||Ga(a,o),s=_a(n,e,a,"in"===o||"not-in"===o);var h=xn.create(i,o,s);return function(t,e){if(e.ln()){var n=t.cn();if(null!==n&&!n.isEqual(e.field))throw new I(N.INVALID_ARGUMENT,"Invalid query. All where filters with an inequality (<, <=, >, or >=) must be on the same field. But you have inequality filters on '"+n.toString()+"' and '"+e.field.toString()+"'");var r=t.un();null!==r&&Ka(t,e.field,r)}var i=t._n(function(t){switch(t){case"!=":return["!=","not-in"];case"array-contains":return["array-contains","array-contains-any","not-in"];case"in":return["array-contains-any","in","not-in"];case"array-contains-any":return["array-contains","array-contains-any","in","not-in"];case"not-in":return["array-contains","array-contains-any","in","not-in","!="];default:return[]}}(e.op));if(null!==i)throw i===e.op?new I(N.INVALID_ARGUMENT,"Invalid query. You cannot use more than one '"+e.op.toString()+"' filter."):new I(N.INVALID_ARGUMENT,"Invalid query. You cannot use '"+e.op.toString()+"' filters with '"+i.toString()+"' filters.")}(t,h),h}function Ha(t,e,n){if(null!==t.startAt)throw new I(N.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(null!==t.endAt)throw new I(N.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");var r=new Rn(e,n);return function(t,e){if(null===t.un()){var n=t.cn();null!==n&&Ka(t,n,e.field)}}(t,r),r}function Ya(t,e,n){if("string"==typeof n){if(""===n)throw new I(N.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid document ID, but it was an empty string.");if(!fn(e)&&-1!==n.indexOf("/"))throw new I(N.INVALID_ARGUMENT,"Invalid query. When querying a collection by FieldPath.documentId(), you must provide a plain document ID, but '"+n+"' contains a '/' character.");var r=e.path.child(R.k(n));if(!F.W(r))throw new I(N.INVALID_ARGUMENT,"Invalid query. When querying a collection group by FieldPath.documentId(), the value provided must result in a valid document path, but '"+r+"' is not because it has an odd number of segments ("+r.length+").");return Ut(t,new F(r))}if(n instanceof ha)return Ut(t,n.Ef);throw new I(N.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid string or a DocumentReference, but it was: "+Vo(n)+".")}function Ga(t,e){if(!Array.isArray(t)||0===t.length)throw new I(N.INVALID_ARGUMENT,"Invalid Query. A non-empty array is required for '"+e.toString()+"' filters.");if(t.length>10)throw new I(N.INVALID_ARGUMENT,"Invalid Query. '"+e.toString()+"' filters support a maximum of 10 elements in the value array.");if("in"===e||"array-contains-any"===e){if(t.indexOf(null)>=0)throw new I(N.INVALID_ARGUMENT,"Invalid Query. '"+e.toString()+"' filters cannot contain 'null' in the value array.");if(t.filter((function(t){return Number.isNaN(t)})).length>0)throw new I(N.INVALID_ARGUMENT,"Invalid Query. '"+e.toString()+"' filters cannot contain 'NaN' in the value array.")}}function Ka(t,e,n){if(!n.isEqual(e))throw new I(N.INVALID_ARGUMENT,"Invalid query. You have a where filter with an inequality (<, <=, >, or >=) on field '"+e.toString()+"' and so you must also use '"+e.toString()+"' as your first orderBy(), but your first orderBy() is on field '"+n.toString()+"' instead.")}function Xa(t){if(t.an()&&0===t.tn.length)throw new I(N.UNIMPLEMENT
2ED,"limitToLast() queries require specifying at least one orderBy() clause")}var $a=function(){function t(t,e,n){this.xd=t,this.firestore=e,this.If=n}return t.prototype.where=function(e,n,r){var i;Io("Query.where",arguments,3),zo("Query.where",3,r),i="not-in"===n||"!="===n?n:Uo("Query.where",["<","<=","==",">=",">","array-contains","in","array-contains-any"],2,n);var o=Sa("Query.where",e),a=Wa(this.xd,"Query.where",this.firestore.Id,this.firestore.Tf,o,i,r);return new t(function(t,e){var n=t.filters.concat([e]);return new un(t.path,t.collectionGroup,t.tn.slice(),n,t.limit,t.en,t.startAt,t.endAt)}(this.xd,a),this.firestore,this.If)},t.prototype.orderBy=function(e,n){var r;if(Mo("Query.orderBy",arguments,1,2),Ro("Query.orderBy","non-empty string",2,n),void 0===n||"asc"===n)r="asc";else{if("desc"!==n)throw new I(N.INVALID_ARGUMENT,"Function Query.orderBy() has unknown direction '"+n+"', expected 'asc' or 'desc'.");r="desc"}var i=Sa("Query.orderBy",e),o=Ha(this.xd,i,r);return new t(function(t,e){var n=t.tn.concat([e]);return new un(t.path,t.collectionGroup,n,t.filters.slice(),t.limit,t.en,t.startAt,t.endAt)}(this.xd,o),this.firestore,this.If)},t.prototype.limit=function(e){return Io("Query.limit",arguments,1),Do("Query.limit","number",1,e),Yo("Query.limit",1,e),new t(pn(this.xd,e,"F"),this.firestore,this.If)},t.prototype.limitToLast=function(e){return Io("Query.limitToLast",arguments,1),Do("Query.limitToLast","number",1,e),Yo("Query.limitToLast",1,e),new t(pn(this.xd,e,"L"),this.firestore,this.If)},t.prototype.startAt=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];Po("Query.startAt",arguments,1);var i=this.$d("Query.startAt",e,n,!0);return new t(vn(this.xd,i),this.firestore,this.If)},t.prototype.startAfter=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];Po("Query.startAfter",arguments,1);var i=this.$d("Query.startAfter",e,n,!1);return new t(vn(this.xd,i),this.firestore,this.If)},t.prototype.endBefore=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];Po("Query.endBefore",arguments,1);var i=this.$d("Query.endBefore",e,n,!0);return new t(mn(this.xd,i),this.firestore,this.If)},t.prototype.endAt=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];Po("Query.endAt",arguments,1);var i=this.$d("Query.endAt",e,n,!1);return new t(mn(this.xd,i),this.firestore,this.If)},t.prototype.isEqual=function(e){if(!(e instanceof t))throw Ho("isEqual","Query",1,e);return this.firestore===e.firestore&&gn(this.xd,e.xd)&&this.If===e.If},t.prototype.withConverter=function(e){return new t(this.xd,this.firestore,e)},t.prototype.$d=function(t,e,n,r){if(zo(t,1,e),e instanceof Va)return Io(t,i.__spreadArrays([e],n),1),function(t,e,n,r,i){if(!r)throw new I(N.NOT_FOUND,"Can't use a DocumentSnapshot that doesn't exist for "+n+"().");for(var o=[],a=0,s=hn(t);a<s.length;a++){var u=s[a];if(u.field.O())o.push(Ut(e,r.key));else{var l=r.field(u.field);if(Ot(l))throw new I(N.INVALID_ARGUMENT,'Invalid query. You are trying to start or end a query using a document for which the field "'+u.field+'" is an uncommitted server timestamp. (Since the value of this field is unknown, you cannot start/end a query with it.)');if(null===l){var c=u.field.F();throw new I(N.INVALID_ARGUMENT,"Invalid query. You are trying to start or end a query using a document for which the field '"+c+"' (used as the orderBy) does not exist.")}o.push(l)}}return new In(o,i)}(this.xd,this.firestore.Tf,t,e.Nd,r);var o=[e].concat(n);return function(t,e,n,r,i,o){var a=t.tn;if(i.length>a.length)throw new I(N.INVALID_ARGUMENT,"Too many arguments provided to "+r+"(). The number of arguments must be less than or equal to the number of orderBy() clauses");for(var s=[],u=0;u<i.length;u++){var l=i[u];if(a[u].field.O()){if("string"!=typeof l)throw new I(N.INVALID_ARGUMENT,"Invalid query. Expected a string for document ID in "+r+"(), but got a "+typeof l);if(!fn(t)&&-1!==l.indexOf("/"))throw new I(N.INVALID_ARGUMENT,"Invalid query. When querying a collection and ordering by FieldPath.documentId(), the value passed to "+r+"() must be a plain document ID, but '"+l+"' contains a slash.");var c=t.path.child(R.k(l));if(!F.W(c))throw new I(N.INVALID_ARGUMENT,"Invalid query. When querying a collection group and ordering by FieldPath.documentId(), the value passed to "+r+"() must result in a valid document path, but '"+c+"' is not because it c
2ontains an odd number of segments.");var f=new F(c);s.push(Ut(e,f))}else{var h=_a(n,r,l);s.push(h)}}return new In(s,o)}(this.xd,this.firestore.Tf,this.firestore.Id,t,o,r)},t.prototype.onSnapshot=function(){for(var t,e,n,r=this,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];Mo("Query.onSnapshot",arguments,1,4);var a={},s=0;if("object"!=typeof i[s]||Ao(i[s])||(Wo("Query.onSnapshot",a=i[s],["includeMetadataChanges"]),jo("Query.onSnapshot","boolean","includeMetadataChanges",a.includeMetadataChanges),s++),Ao(i[s])){var u=i[s];i[s]=null===(t=u.next)||void 0===t?void 0:t.bind(u),i[s+1]=null===(e=u.error)||void 0===e?void 0:e.bind(u),i[s+2]=null===(n=u.complete)||void 0===n?void 0:n.bind(u)}else Do("Query.onSnapshot","function",s,i[s]),Ro("Query.onSnapshot","function",s+1,i[s+1]),Ro("Query.onSnapshot","function",s+2,i[s+2]);var l={next:function(t){i[s]&&i[s](new Za(r.firestore,r.xd,t,r.If))},error:i[s+1],complete:i[s+2]};return Xa(this.xd),this.firestore._d().listen(this.xd,a,l)},t.prototype.get=function(t){var e=this;Mo("Query.get",arguments,0,1),es("Query.get",t),Xa(this.xd);var n=this.firestore._d();return(t&&"cache"===t.source?n.zf(this.xd):n.Hf(this.xd,t)).then((function(t){return new Za(e.firestore,e.xd,t,e.If)}))},t}(),Za=function(){function t(t,e,n,r){this.pd=t,this.Md=e,this.Od=n,this.If=r,this.Ld=null,this.qd=null,this.metadata=new Ba(n.hasPendingWrites,n.fromCache)}return Object.defineProperty(t.prototype,"docs",{get:function(){var t=[];return this.forEach((function(e){return t.push(e)})),t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"empty",{get:function(){return this.Od.docs._()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.Od.docs.size},enumerable:!1,configurable:!0}),t.prototype.forEach=function(t,e){var n=this;Mo("QuerySnapshot.forEach",arguments,1,2),Do("QuerySnapshot.forEach","function",1,t),this.Od.docs.forEach((function(r){t.call(e,n.Bd(r,n.metadata.fromCache,n.Od.Lt.has(r.key)))}))},Object.defineProperty(t.prototype,"query",{get:function(){return new $a(this.Md,this.pd,this.If)},enumerable:!1,configurable:!0}),t.prototype.docChanges=function(t){t&&(Wo("QuerySnapshot.docChanges",t,["includeMetadataChanges"]),jo("QuerySnapshot.docChanges","boolean","includeMetadataChanges",t.includeMetadataChanges));var e=!(!t||!t.includeMetadataChanges);if(e&&this.Od.Bt)throw new I(N.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this.Ld&&this.qd===e||(this.Ld=function(t,e,n){if(t.Ot._()){var r=0;return t.docChanges.map((function(e){var i=n(e.doc,t.fromCache,t.Lt.has(e.doc.key));return e.doc,{type:"added",doc:i,oldIndex:-1,newIndex:r++}}))}var i=t.Ot;return t.docChanges.filter((function(t){return e||3!==t.type})).map((function(e){var r=n(e.doc,t.fromCache,t.Lt.has(e.doc.key)),o=-1,a=-1;return 0!==e.type&&(o=i.indexOf(e.doc.key),i=i.delete(e.doc.key)),1!==e.type&&(a=(i=i.add(e.doc)).indexOf(e.doc.key)),{type:rs(e.type),doc:r,oldIndex:o,newIndex:a}}))}(this.Od,e,this.Bd.bind(this)),this.qd=e),this.Ld},t.prototype.isEqual=function(e){if(!(e instanceof t))throw Ho("isEqual","QuerySnapshot",1,e);return this.pd===e.pd&&gn(this.Md,e.Md)&&this.Od.isEqual(e.Od)&&this.If===e.If},t.prototype.Bd=function(t,e,n){return new za(this.pd,t.key,t,e,n,this.If)},t}(),Qa=function(t){function e(e,n,r){var i=this;if((i=t.call(this,cn(e),n,r)||this).Ud=e,e.length%2!=1)throw new I(N.INVALID_ARGUMENT,"Invalid collection reference. Collection references must have an odd number of segments, but "+e.F()+" has "+e.length);return i}return i.__extends(e,t),Object.defineProperty(e.prototype,"id",{get:function(){return this.xd.path.S()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){var t=this.xd.path.p();return t._()?null:new qa(new F(t),this.firestore,null)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this.xd.path.F()},enumerable:!1,configurable:!0}),e.prototype.doc=function(t){Mo("CollectionReference.doc",arguments,0,1),0===arguments.length&&(t=w.t()),Do("CollectionReference.doc","non-empty string",1,t);var e=R.k(t);return qa.gd(this.xd.path.child(e),this.firestore,this.If)},e.prototype.add=function(t){Io("CollectionReference.add",arguments,1
2),Do("CollectionReference.add","object",1,this.If?this.If.toFirestore(t):t);var e=this.doc();return e.set(t).then((function(){return e}))},e.prototype.withConverter=function(t){return new e(this.Ud,this.firestore,t)},e}($a);function Ja(t,e){if(void 0===e)return{merge:!1};if(Wo(t,e,["merge","mergeFields"]),jo(t,"boolean","merge",e.merge),function(t,e,n,r,i){void 0!==r&&function(t,e,n,r,i){if(!(r instanceof Array))throw new I(N.INVALID_ARGUMENT,"Function "+t+"() requires its "+e+" option to be an array, but it was: "+Vo(r));for(var o=0;o<r.length;++o)if(!i(r[o]))throw new I(N.INVALID_ARGUMENT,"Function "+t+"() requires all "+e+" elements to be a string or a FieldPath, but the value at index "+o+" was: "+Vo(r[o]))}(t,"mergeFields",0,r,(function(t){return"string"==typeof t||t instanceof Jo}))}(t,0,0,e.mergeFields),void 0!==e.mergeFields&&void 0!==e.merge)throw new I(N.INVALID_ARGUMENT,"Invalid options passed to function "+t+'(): You cannot specify both "merge" and "mergeFields".');return e}function ts(t,e){return void 0===e?{}:(Wo(t,e,["serverTimestamps"]),Fo(t,0,"serverTimestamps",e.serverTimestamps,["estimate","previous","none"]),e)}function es(t,e){Ro(t,"object",1,e),e&&(Wo(t,e,["source"]),Fo(t,0,"source",e.source,["default","server","cache"]))}function ns(t,e,n){if(e instanceof ha){if(e.firestore!==n)throw new I(N.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return e}throw Ho(t,"DocumentReference",1,e)}function rs(t){switch(t){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return m()}}function is(t,e,n){return t?n&&(n.merge||n.mergeFields)?t.toFirestore(e,n):t.toFirestore(e):e}var os={Firestore:ja,GeoPoint:ca,Timestamp:P,Blob:Zo,Transaction:Fa,WriteBatch:Ua,DocumentReference:qa,DocumentSnapshot:Va,Query:$a,QueryDocumentSnapshot:za,QuerySnapshot:Za,CollectionReference:Qa,FieldPath:Jo,FieldValue:ua,setLogLevel:ja.setLogLevel,CACHE_SIZE_UNLIMITED:Ra};function as(t){!function(t,e){t.INTERNAL.registerComponent(new l.Component("firestore",(function(t){return function(t,e){var n=new Oo,r=new So(n);return new ja(t,e,r,n)}(t.getProvider("app").getImmediate(),t.getProvider("auth-internal"))}),"PUBLIC").setServiceProps(Object.assign({},os)))}(t),t.registerVersion("@firebase/firestore","1.16.4")}as(o),e.__PRIVATE_registerFirestore=as}).call(this,n(38))},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"ErrorCode",(function(){return er})),n.d(e,"EventType",(function(){return nr})),n.d(e,"WebChannel",(function(){return rr})),n.d(e,"XhrIo",(function(){return ir})),n.d(e,"createWebChannelTransport",(function(){return tr}));var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}var o,a="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:{},s=s||{},u=a||self;function l(){}function c(t){var e=typeof t;return"object"!=e?e:t?Array.isArray(t)?"array":e:"null"}function f(t){var e=c(t);return"array"==e||"object"==e&&"number"==typeof t.length}function h(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}var d="closure_uid_"+(1e9*Math.random()>>>0),p=0;function v(t,e,n){return t.call.apply(t.bind,arguments)}function m(t,e,n){if(!t)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),t.apply(e,n)}}return function(){return t.apply(e,arguments)}}function g(t,e,n){return(g=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?v:m).apply(null,arguments)}
2function y(t,e){var n=Array.prototype.slice.call(arguments,1);return function(){var e=n.slice();return e.push.apply(e,arguments),t.apply(this,e)}}var b=Date.now;function w(t,e){function n(){}n.prototype=e.prototype,t.S=e.prototype,t.prototype=new n,t.prototype.constructor=t}function _(){this.j=this.j,this.i=this.i}_.prototype.j=!1,_.prototype.ja=function(){if(!this.j&&(this.j=!0,this.G(),0))(function(t){Object.prototype.hasOwnProperty.call(t,d)&&t[d]||(t[d]=++p)})(this)},_.prototype.G=function(){if(this.i)for(;this.i.length;)this.i.shift()()};var x=Array.prototype.indexOf?function(t,e){return Array.prototype.indexOf.call(t,e,void 0)}:function(t,e){if("string"===typeof t)return"string"!==typeof e||1!=e.length?-1:t.indexOf(e,0);for(var n=0;n<t.length;n++)if(n in t&&t[n]===e)return n;return-1},E=Array.prototype.forEach?function(t,e,n){Array.prototype.forEach.call(t,e,n)}:function(t,e,n){for(var r=t.length,i="string"===typeof t?t.split(""):t,o=0;o<r;o++)o in i&&e.call(n,i[o],o,t)};function k(t){return Array.prototype.concat.apply([],arguments)}function T(t){var e=t.length;if(0<e){for(var n=Array(e),r=0;r<e;r++)n[r]=t[r];return n}return[]}function S(t){return/^[\s\xa0]*$/.test(t)}var O,A=String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]};function C(t,e){return-1!=t.indexOf(e)}function N(t,e){return t<e?-1:t>e?1:0}t:{var I=u.navigator;if(I){var P=I.userAgent;if(P){O=P;break t}}O=""}function M(t,e,n){for(var r in t)e.call(n,t[r],r,t)}function D(t){var e={};for(var n in t)e[n]=t[n];return e}var R="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function L(t,e){for(var n,r,i=1;i<arguments.length;i++){for(n in r=arguments[i])t[n]=r[n];for(var o=0;o<R.length;o++)n=R[o],Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}}function j(t){return j[" "](t),t}j[" "]=l;var F,U=C(O,"Opera"),q=C(O,"Trident")||C(O,"MSIE"),B=C(O,"Edge"),V=B||q,z=C(O,"Gecko")&&!(C(O.toLowerCase(),"webkit")&&!C(O,"Edge"))&&!(C(O,"Trident")||C(O,"MSIE"))&&!C(O,"Edge"),W=C(O.toLowerCase(),"webkit")&&!C(O,"Edge");function H(){var t=u.document;return t?t.documentMode:void 0}t:{var Y="",G=function(){var t=O;return z?/rv:([^\);]+)(\)|;)/.exec(t):B?/Edge\/([\d\.]+)/.exec(t):q?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(t):W?/WebKit\/(\S+)/.exec(t):U?/(?:Version)[ \/]?(\S+)/.exec(t):void 0}();if(G&&(Y=G?G[1]:""),q){var K=H();if(null!=K&&K>parseFloat(Y)){F=String(K);break t}}F=Y}var X,$={};function Z(t){return function(t,e){var n=$;return Object.prototype.hasOwnProperty.call(n,t)?n[t]:n[t]=e(t)}(t,(function(){for(var e=0,n=A(String(F)).split("."),r=A(String(t)).split("."),i=Math.max(n.length,r.length),o=0;0==e&&o<i;o++){var a=n[o]||"",s=r[o]||"";do{if(a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==a[0].length&&0==s[0].length)break;e=N(0==a[1].length?0:parseInt(a[1],10),0==s[1].length?0:parseInt(s[1],10))||N(0==a[2].length,0==s[2].length)||N(a[2],s[2]),a=a[3],s=s[3]}while(0==e)}return 0<=e}))}if(u.document&&q){var Q=H();X=Q||(parseInt(F,10)||void 0)}else X=void 0;var J=X,tt=!q||9<=Number(J),et=q&&!Z("9"),nt=function(){if(!u.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});try{u.addEventListener("test",l,e),u.removeEventListener("test",l,e)}catch(n){}return t}();function rt(t,e){this.type=t,this.a=this.target=e,this.defaultPrevented=!1}function it(t,e){if(rt.call(this,t?t.type:""),this.relatedTarget=this.a=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.c=null,t){var n=this.type=t.type,r=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;if(this.target=t.target||t.srcElement,this.a=e,e=t.relatedTarget){if(z){t:{try{j(e.nodeName);var i=!0;break t}catch(o){}i=!1}i||(e=null)}}else"mouseover"==n?e=t.fromElement:"mouseout"==n&&(e=t.toElement);this.relatedTarget=e,r?(this.clientX=void 0!==r.clientX?r.clientX:r.pageX,this.clientY=void 0!==r.clientY?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0):(this.clientX=void 0!==t.clientX?t.clientX:t.pageX,this.clientY=void 0!==t.clientY?t.clientY:t.pageY,this.screenX=t.screenX||0,this.screenY=t.screenY||0),this.button=t.button,this.key=t.key||"",this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.pointerId=t.pointerId||0,this.pointerType="string"===typeof t.pointerType?t.pointerType:ot[t.pointerType]||"",this.c=t,t.defaultPrevented&&this.b()}}rt.prototype.b=function(){this.defaultPrevented=!0},w(it,rt);var ot={2:"touch",3:"pen",4:"mouse"};
2it.prototype.b=function(){it.S.b.call(this);var t=this.c;if(t.preventDefault)t.preventDefault();else if(t.returnValue=!1,et)try{(t.ctrlKey||112<=t.keyCode&&123>=t.keyCode)&&(t.keyCode=-1)}catch(e){}};var at="closure_listenable_"+(1e6*Math.random()|0),st=0;function ut(t,e,n,r,i){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!r,this.ca=i,this.key=++st,this.Y=this.Z=!1}function lt(t){t.Y=!0,t.listener=null,t.proxy=null,t.src=null,t.ca=null}function ct(t){this.src=t,this.a={},this.b=0}function ft(t,e){var n=e.type;if(n in t.a){var r,i=t.a[n],o=x(i,e);(r=0<=o)&&Array.prototype.splice.call(i,o,1),r&&(lt(e),0==t.a[n].length&&(delete t.a[n],t.b--))}}function ht(t,e,n,r){for(var i=0;i<t.length;++i){var o=t[i];if(!o.Y&&o.listener==e&&o.capture==!!n&&o.ca==r)return i}return-1}ct.prototype.add=function(t,e,n,r,i){var o=t.toString();(t=this.a[o])||(t=this.a[o]=[],this.b++);var a=ht(t,e,r,i);return-1<a?(e=t[a],n||(e.Z=!1)):((e=new ut(e,this.src,o,!!r,i)).Z=n,t.push(e)),e};var dt="closure_lm_"+(1e6*Math.random()|0),pt={};function vt(t,e,n,r,i){if(r&&r.once)return function t(e,n,r,i,o){if(Array.isArray(n)){for(var a=0;a<n.length;a++)t(e,n[a],r,i,o);return null}return r=Et(r),e&&e[at]?e.wa(n,r,h(i)?!!i.capture:!!i,o):mt(e,n,r,!0,i,o)}(t,e,n,r,i);if(Array.isArray(e)){for(var o=0;o<e.length;o++)vt(t,e[o],n,r,i);return null}return n=Et(n),t&&t[at]?t.va(e,n,h(r)?!!r.capture:!!r,i):mt(t,e,n,!1,r,i)}function mt(t,e,n,r,i,o){if(!e)throw Error("Invalid event type");var a=h(i)?!!i.capture:!!i;if(a&&!tt)return null;var s=_t(t);if(s||(t[dt]=s=new ct(t)),(n=s.add(e,n,r,a,o)).proxy)return n;if(r=function(){var t=wt,e=tt?function(n){return t.call(e.src,e.listener,n)}:function(n){if(!(n=t.call(e.src,e.listener,n)))return n};return e}(),n.proxy=r,r.src=t,r.listener=n,t.addEventListener)nt||(i=a),void 0===i&&(i=!1),t.addEventListener(e.toString(),r,i);else if(t.attachEvent)t.attachEvent(yt(e.toString()),r);else{if(!t.addListener||!t.removeListener)throw Error("addEventListener and attachEvent are unavailable.");t.addListener(r)}return n}function gt(t){if("number"!==typeof t&&t&&!t.Y){var e=t.src;if(e&&e[at])ft(e.c,t);else{var n=t.type,r=t.proxy;e.removeEventListener?e.removeEventListener(n,r,t.capture):e.detachEvent?e.detachEvent(yt(n),r):e.addListener&&e.removeListener&&e.removeListener(r),(n=_t(e))?(ft(n,t),0==n.b&&(n.src=null,e[dt]=null)):lt(t)}}}function yt(t){return t in pt?pt[t]:pt[t]="on"+t}function bt(t,e){var n=t.listener,r=t.ca||t.src;return t.Z&&gt(t),n.call(r,e)}function wt(t,e){if(t.Y)return!0;if(!tt){if(!e)t:{e=["window","event"];for(var n=u,r=0;r<e.length;r++)if(null==(n=n[e[r]])){e=null;break t}e=n}return bt(t,e=new it(e,this))}return bt(t,new it(e,this))}function _t(t){return(t=t[dt])instanceof ct?t:null}var xt="__closure_events_fn_"+(1e9*Math.random()>>>0);function Et(t){return"function"==c(t)?t:(t[xt]||(t[xt]=function(e){return t.handleEvent(e)}),t[xt])}function kt(){_.call(this),this.c=new ct(this),this.J=this,this.C=null}function Tt(t,e,n,r){if(!(e=t.c.a[String(e)]))return!0;e=e.concat();for(var i=!0,o=0;o<e.length;++o){var a=e[o];if(a&&!a.Y&&a.capture==n){var s=a.listener,u=a.ca||a.src;a.Z&&ft(t.c,a),i=!1!==s.call(u,r)&&i}}return i&&!r.defaultPrevented}w(kt,_),kt.prototype[at]=!0,(o=kt.prototype).addEventListener=function(t,e,n,r){vt(this,t,e,n,r)},o.removeEventListener=function(t,e,n,r){!function t(e,n,r,i,o){if(Array.isArray(n))for(var a=0;a<n.length;a++)t(e,n[a],r,i,o);else i=h(i)?!!i.capture:!!i,r=Et(r),e&&e[at]?(e=e.c,(n=String(n).toString())in e.a&&(-1<(r=ht(a=e.a[n],r,i,o))&&(lt(a[r]),Array.prototype.splice.call(a,r,1),0==a.length&&(delete e.a[n],e.b--)))):e&&(e=_t(e))&&(n=e.a[n.toString()],e=-1,n&&(e=ht(n,r,i,o)),(r=-1<e?n[e]:null)&&gt(r))}(this,t,e,n,r)},o.dispatchEvent=function(t){var e,n=this.C;if(n)for(e=[];n;n=n.C)e.push(n);n=this.J;var r=t.type||t;if("string"===typeof t)t=new rt(t,n);else if(t instanceof rt)t.target=t.target||n;else{var i=t;L(t=new rt(r,n),i)}if(i=!0,e)for(var o=e.length-1;0<=o;o--){var a=t.a=e[o];i=Tt(a,r,!0,t)&&i}if(i=Tt(a=t.a=n,r,!0,t)&&i,i=Tt(a,r,!1,t)&&i,e)for(o=0;o<e.length;o++)i=Tt(a=t.a=e[o],r,!1,t)&&i;return i},o.G=function(){if(kt.S.G.call(this),this.c){var t,e=this.c;for(t in e.a){for(var n=e.a[t],r=0;r<n.length;r++)lt(n[r]);delete e.a[t],e.b--}}this.C=null},o.va=function(t,e,n,r){return this.c.add(String(t),e,!1,n,r)},o.wa=function(t,e,n,r){return this.c.add(String(t),e,!0,n,r)};var St=u.JSON.stringify;function Ot(){this.b=this.a=null}var At,Ct=new(function(){function t(t,e,n){this.f=n,this.c=t,this.g=e,this.b=0,this.a=null}return t.prototype.get=function(){var t;return 0<this.b?(this.b--,t=this.a,this.a=t.next,t.next=null):t=this.c(),t},t}())((function(){return new It}),(function(t){t.reset()}),100);function Nt(){var t=Rt,e=null;
2return t.a&&(e=t.a,t.a=t.a.next,t.a||(t.b=null),e.next=null),e}function It(){this.next=this.b=this.a=null}function Pt(t){u.setTimeout((function(){throw t}),0)}function Mt(t,e){At||function(){var t=u.Promise.resolve(void 0);At=function(){t.then(Lt)}}(),Dt||(At(),Dt=!0),Rt.add(t,e)}Ot.prototype.add=function(t,e){var n=Ct.get();n.set(t,e),this.b?this.b.next=n:this.a=n,this.b=n},It.prototype.set=function(t,e){this.a=t,this.b=e,this.next=null},It.prototype.reset=function(){this.next=this.b=this.a=null};var Dt=!1,Rt=new Ot;function Lt(){for(var t;t=Nt();){try{t.a.call(t.b)}catch(n){Pt(n)}var e=Ct;e.g(t),e.b<e.f&&(e.b++,t.next=e.a,e.a=t)}Dt=!1}function jt(t,e){kt.call(this),this.b=t||1,this.a=e||u,this.f=g(this.Ya,this),this.g=b()}function Ft(t){t.aa=!1,t.M&&(t.a.clearTimeout(t.M),t.M=null)}function Ut(t,e,n){if("function"==c(t))n&&(t=g(t,n));else{if(!t||"function"!=typeof t.handleEvent)throw Error("Invalid listener argument");t=g(t.handleEvent,t)}return 2147483647<Number(e)?-1:u.setTimeout(t,e||0)}function qt(t){t.a=Ut((function(){t.a=null,t.c&&(t.c=!1,qt(t))}),t.h);var e=t.b;t.b=null,t.g.apply(null,e)}w(jt,kt),(o=jt.prototype).aa=!1,o.M=null,o.Ya=function(){if(this.aa){var t=b()-this.g;0<t&&t<.8*this.b?this.M=this.a.setTimeout(this.f,this.b-t):(this.M&&(this.a.clearTimeout(this.M),this.M=null),this.dispatchEvent("tick"),this.aa&&(Ft(this),this.start()))}},o.start=function(){this.aa=!0,this.M||(this.M=this.a.setTimeout(this.f,this.b),this.g=b())},o.G=function(){jt.S.G.call(this),Ft(this),delete this.a};var Bt=function(t){function e(e,n,r){var i=t.call(this)||this;return i.g=null!=r?e.bind(r):e,i.h=n,i.b=null,i.c=!1,i.a=null,i}return function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),e.prototype.f=function(t){this.b=arguments,this.a?this.c=!0:qt(this)},e.prototype.G=function(){t.prototype.G.call(this),this.a&&(u.clearTimeout(this.a),this.a=null,this.c=!1,this.b=null)},e}(_);function Vt(t){_.call(this),this.b=t,this.a={}}w(Vt,_);var zt=[];function Wt(t,e,n,r){Array.isArray(n)||(n&&(zt[0]=n.toString()),n=zt);for(var i=0;i<n.length;i++){var o=vt(e,n[i],r||t.handleEvent,!1,t.b||t);if(!o)break;t.a[o.key]=o}}function Ht(t){M(t.a,(function(t,e){this.a.hasOwnProperty(e)&&gt(t)}),t),t.a={}}function Yt(){this.a=!0}function Gt(t,e,n,r){t.info((function(){return"XMLHTTP TEXT ("+e+"): "+function(t,e){if(!t.a)return e;if(!e)return null;try{var n=JSON.parse(e);if(n)for(t=0;t<n.length;t++)if(Array.isArray(n[t])){var r=n[t];if(!(2>r.length)){var i=r[1];if(Array.isArray(i)&&!(1>i.length)){var o=i[0];if("noop"!=o&&"stop"!=o&&"close"!=o)for(var a=1;a<i.length;a++)i[a]=""}}}return St(n)}catch(s){return e}}(t,n)+(r?" "+r:"")}))}Vt.prototype.G=function(){Vt.S.G.call(this),Ht(this)},Vt.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")},Yt.prototype.info=function(){};var Kt=null;function Xt(){return Kt=Kt||new kt}function $t(t){rt.call(this,"serverreachability",t)}function Zt(t){var e=Xt();e.dispatchEvent(new $t(e,t))}function Qt(t){rt.call(this,"statevent",t)}function Jt(t){var e=Xt();e.dispatchEvent(new Qt(e,t))}function te(t){rt.call(this,"timingevent",t)}function ee(t,e){if("function"!=c(t))throw Error("Fn must not be null and must be a function");return u.setTimeout((function(){t()}),e)}w($t,rt),w(Qt,rt),w(te,rt);var ne={NO_ERROR:0,Za:1,gb:2,fb:3,bb:4,eb:5,hb:6,Da:7,TIMEOUT:8,kb:9},re={ab:"complete",ob:"success",Ea:"error",Da:"abort",mb:"ready",nb:"readystatechange",TIMEOUT:"timeout",ib:"incrementaldata",lb:"progress",cb:"downloadprogress",pb:"uploadprogress"};function ie(){}function oe(t){var e;return(e=t.a)||(e=t.a={}),e}function ae(){}ie.prototype.a=null;var se,ue={OPEN:"a",$a:"b",Ea:"c",jb:"d"};function le(){rt.call(this,"d")}function ce(){rt.call(this,"c")}function fe(){}function he(t,e,n,r){this.g=t,this.c=e,this.f=n,this.T=r||1,this.J=new Vt(this),this.P=de,t=V?125:void 0,this.R=new jt(t),this.B=null,this.b=!1,this.j=this.l=this.i=this.H=this.u=this.U=this.o=null,this.s=[],this.a=null,this.D=0,this.h=this.m=null,this.N=-1,this.A=!1,this.O=0,this.F=null,this.W=this.C=this.V=this.I=!1}w(le,rt),w(ce,rt),w(fe,ie),se=new fe;var de=45e3,pe={},ve={};function me(t,e,n){t.H=1,t.i=Fe(Pe(e)),t.j=n,t.I=!0,ge(t,null)}function ge(t,e){t.u=b(),we(t),t.l=Pe(t.i);var n=t.l,r=t.T;Array.isArray(r)||(r=[String(r)]),Ze(n.b,"t",r),t.D=0,t.a=Yn(t.g,t.g.C?e:null),0<t.O&&(t.F=new Bt(g(t.Ca,t,t.a),t.O)),Wt(t.J,t.a,"readystatechange",t.Wa),e=t.B?D(t.B):{},t.j?(t.m||(t.m="POST"),e["Content-Type"]="application/x-www-form-urlencoded",t.a.ba(t.l,t.m,t.j,e)):(t.m="GET",t.a.ba(t.l,t.m,null,e)),Zt(1),function(t,e,n,r,i,o){t.info((function(){if(t.a)if(o)for(var a="",s=o.split("&"),u=0;u<s.length;u++){var l=s[u].split("=");if(1<l.length){var c=l[0];l=l[1];var f=c.split("_");a=2<=f.length&&"type"==f[1]?a+(c+"=")+l+"&":a+(c+"=redacted&")}}else a=null;else a=o;return"XMLHTTP REQ ("+r+") [attempt "+i+"]: "+e+"\n"+n+"\n"+a}))}(t.c,t.m,t.l,t.f,t.T,t.j)}function ye(t,e,n){for(var r=!0;!t.A&&t.D<n.length;){var i=be(t,n);if(i==ve){4==e&&(t.h=4,Jt(14),r=!1),Gt(t.c,t.f,null,"[Incomplete Response]");break}if(i==pe){t.h=4,Jt(15),Gt(t.c,t.f,n,"[Invalid Chunk]"),r=!1;break}Gt(t.c,t.f,i,null),Te(t,i)}4==e&&0==n.length&&(t.h=1,Jt(16),r=!1),t.b=t.b&&r,r?0<n.length&&!t.W&&(t.W=!0,(e=t.g).a==t&&e.V&&!e.F&&(e.c.info("Great, no buffering proxy detected. Bytes received: "+n.length),Fn(e),e.F=!0)):(Gt(t.c,t.f,n,"[Invalid Chunked Response]"),ke(t),Ee(t))}function be(t,e){var n=t.D,r=e.indexOf("\n",n);return-1==r?ve:(n=Number(e.substring(n,r)),isNaN(n)?pe:(r+=1)+n>e.length?ve:(e=e.substr(r,n),t.D=r+n,e))}function we(t){t.U=b()+t.P,_e(t,t.P)}function _e(t,e){if(null!=t.o)throw Error("WatchDog timer not null");
vendor: 11,121 bytes, line 2
2t.o=ee(g(t.Ua,t),e)}function xe(t){t.o&&(u.clearTimeout(t.o),t.o=null)}function Ee(t){0==t.g.v||t.A||Bn(t.g,t)}function ke(t){xe(t);var e=t.F;e&&"function"==typeof e.ja&&e.ja(),t.F=null,Ft(t.R),Ht(t.J),t.a&&(e=t.a,t.a=null,e.abort(),e.ja())}function Te(t,e){try{var n=t.g;if(0!=n.v&&(n.a==t||on(n.b,t)))if(n.I=t.N,!t.C&&on(n.b,t)&&3==n.v){try{var r=n.ka.a.parse(e)}catch(m){r=null}if(Array.isArray(r)&&3==r.length){var i=r;if(0==i[0]){t:if(!n.j){if(n.a){if(!(n.a.u+3e3<t.u))break t;qn(n),Cn(n)}jn(n),Jt(18)}}else n.oa=i[1],0<n.oa-n.P&&37500>i[2]&&n.H&&0==n.o&&!n.m&&(n.m=ee(g(n.Ra,n),6e3));if(1>=rn(n.b)&&n.ea){try{n.ea()}catch(m){}n.ea=void 0}}else zn(n,11)}else if((t.C||n.a==t)&&qn(n),!S(e))for(e=r=n.ka.a.parse(e),r=0;r<e.length;r++)if(i=e[r],n.P=i[0],i=i[1],2==n.v)if("c"==i[0]){n.J=i[1],n.ga=i[2];var o=i[3];null!=o&&(n.ha=o,n.c.info("VER="+n.ha));var a=i[4];null!=a&&(n.pa=a,n.c.info("SVER="+n.pa));var s=i[5];if(null!=s&&"number"===typeof s&&0<s){var u=1.5*s;n.D=u,n.c.info("backChannelRequestTimeoutMs_="+u)}u=n;var l=t.a;if(l){var c=l.a?l.a.getResponseHeader("X-Client-Wire-Protocol"):null;if(c){var f=u.b;!f.a&&(C(c,"spdy")||C(c,"quic")||C(c,"h2"))&&(f.f=f.g,f.a=new Set,f.b&&(an(f,f.b),f.b=null))}if(u.A){var h=l.a?l.a.getResponseHeader("X-HTTP-Session-Id"):null;h&&(u.na=h,je(u.B,u.A,h))}}n.v=3,n.f&&n.f.ta(),n.V&&(n.N=b()-t.u,n.c.info("Handshake RTT: "+n.N+"ms"));var d=t;if((u=n).la=Hn(u,u.C?u.ga:null,u.fa),d.C){sn(u.b,d);var p=d,v=u.D;v&&p.setTimeout(v),p.o&&(xe(p),we(p)),u.a=d}else Ln(u);0<n.g.length&&Pn(n)}else"stop"!=i[0]&&"close"!=i[0]||zn(n,7);else 3==n.v&&("stop"==i[0]||"close"==i[0]?"stop"==i[0]?zn(n,7):An(n):"noop"!=i[0]&&n.f&&n.f.sa(i),n.o=0);Zt(4)}catch(m){}}function Se(t,e){if(t.forEach&&"function"==typeof t.forEach)t.forEach(e,void 0);else if(f(t)||"string"===typeof t)E(t,e,void 0);else{if(t.L&&"function"==typeof t.L)var n=t.L();else if(t.K&&"function"==typeof t.K)n=void 0;else if(f(t)||"string"===typeof t){n=[];for(var r=t.length,i=0;i<r;i++)n.push(i)}else for(i in n=[],r=0,t)n[r++]=i;i=(r=function(t){if(t.K&&"function"==typeof t.K)return t.K();if("string"===typeof t)return t.split("");if(f(t)){for(var e=[],n=t.length,r=0;r<n;r++)e.push(t[r]);return e}for(r in e=[],n=0,t)e[n++]=t[r];return e}(t)).length;for(var o=0;o<i;o++)e.call(void 0,r[o],n&&n[o],t)}}function Oe(t,e){this.b={},this.a=[],this.c=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var r=0;r<n;r+=2)this.set(arguments[r],arguments[r+1])}else if(t)if(t instanceof Oe)for(n=t.L(),r=0;r<n.length;r++)this.set(n[r],t.get(n[r]));else for(r in t)this.set(r,t[r])}function Ae(t){if(t.c!=t.a.length){for(var e=0,n=0;e<t.a.length;){var r=t.a[e];Ce(t.b,r)&&(t.a[n++]=r),e++}t.a.length=n}if(t.c!=t.a.length){var i={};for(n=e=0;e<t.a.length;)Ce(i,r=t.a[e])||(t.a[n++]=r,i[r]=1),e++;t.a.length=n}}function Ce(t,e){return Object.prototype.hasOwnProperty.call(t,e)}(o=he.prototype).setTimeout=function(t){this.P=t},o.Wa=function(t){t=t.target;var e=this.F;e&&3==kn(t)?e.f():this.Ca(t)},o.Ca=function(t){try{if(t==this.a)t:{var e=kn(this.a),n=this.a.ua(),r=this.a.X();if(!(3>e||3==e&&!V&&!this.a.$())){this.A||4!=e||7==n||Zt(8==n||0>=r?3:2),xe(this);var i=this.a.X();this.N=i;var o=this.a.$();if(this.b=200==i,function(t,e,n,r,i,o,a){t.info((function(){return"XMLHTTP RESP ("+r+") [ attempt "+i+"]: "+e+"\n"+n+"\n"+o+" "+a}))}(this.c,this.m,this.l,this.f,this.T,e,i),this.b){if(this.V&&!this.C){e:{if(this.a){var a,s=this.a;if((a=s.a?s.a.getResponseHeader("X-HTTP-Initial-Response"):null)&&!S(a)){var u=a;break e}}u=null}if(!u){this.b=!1,this.h=3,Jt(12),ke(this),Ee(this);break t}Gt(this.c,this.f,u,"Initial handshake response via X-HTTP-Initial-Response"),this.C=!0,Te(this,u)}this.I?(ye(this,e,o),V&&this.b&&3==e&&(Wt(this.J,this.R,"tick",this.Va),this.R.start())):(Gt(this.c,this.f,o,null),Te(this,o)),4==e&&ke(this),this.b&&!this.A&&(4==e?Bn(this.g,this):(this.b=!1,we(this)))}else 400==i&&0<o.indexOf("Unknown SID")?(this.h=3,Jt(12)):(this.h=0,Jt(13)),ke(this),Ee(this)}}}catch(l){}},o.Va=function(){if(this.a){var t=kn(this.a),e=this.a.$();this.D<e.length&&(xe(this),ye(this,t,e),this.b&&4!=t&&we(this))}},o.cancel=function(){this.A=!0,ke(this)},o.Ua=function(){this.o=null;var t=b();0<=t-this.U?(function(t,e){t.info((function(){return"TIMEOUT: "+e}))}(this.c,this.l),2!=this.H&&(Zt(3),Jt(17)),ke(this),this.h=2,Ee(this)):_e(this,this.U-t)},(o=Oe.prototype).K=function(){Ae(this);for(var t=[],e=0;e<this.a.length;e++)t.push(this.b[this.a[e]]);return t},o.L=function(){return Ae(this),this.a.concat()},o.get=function(t,e){return Ce(this.b,t)?this.b[t]:e},o.set=function(t,e){Ce(this.b,t)||(this.c++,this.a.push(t)),this.b[t]=e},o.forEach=function(t,e){for(var n=this.L(),r=0;r<n.length;r++){var i=n[r],o=this.get(i);t.call(e,o,i,this)}};var Ne=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function Ie(t,e){if(this.c=this.j=this.f="",this.h=null,this.i=this.g="",this.a=!1,t instanceof Ie){this.a=void 0!==e?e:t.a,Me(this,t.f),this.j=t.j,De(this,t.c),Re(this,t.h),this.g=t.g,e=t.b;var n=new Ge;n.c=e.c,e.a&&(n.a=new Oe(e.a),n.b=e.b),Le(this,n),this.i=t.i}else t&&(n=String(t).match(Ne))?(this.a=!!e,Me(this,n[1]||"",!0),this.j=Ue(n[2]||""),De(this,n[3]||"",!0),Re(this,n[4]),this.g=Ue(n[5]||"",!0),Le(this,n[6]||"",!0),this.i=Ue(n[7]||"")):(this.a=!!e,this.b=new Ge(null,this.a))}function Pe(t){return new Ie(t)}function Me(t,e,n){t.f=n?Ue(e,!0):e,t.f&&(t.f=t.f.replace(/:$/,""))}function De(t,e,n){t.c=n?Ue(e,!0):e}function Re(t,e){if(e){if(e=Number(e),isNaN(e)||0>e)throw Error("Bad port number "+e);t.h=e}else t.h=null}function Le(t,e,n){e instanceof Ge?(t.b=e,function(t,e){e&&!t.f&&(Ke(t),t.c=null,t.a.forEach((function(t,e){var n=e.toLowerCase();e!=n&&(Xe(this,e),Ze(this,n,t))}),t)),t.f=e}(t.b,t.a)):(n||(e=qe(e,He)),t.b=new Ge(e,t.a))}function je(t,e,n){t.b.set(e,n)}function Fe(t){return je(t,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^b()).toString(36)),t}function Ue(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function qe(t,e,n){return"string"===typeof t?(t=encodeURI(t).replace(e,Be),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function Be(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}Ie.prototype.toString=function(){var t=[],e=this.f;e&&t.push(qe(e,Ve,!0),":");var n=this.c;return(n||"file"==e)&&(t.push("//"),(e=this.j)&&t.push(qe(e,Ve,!0),"@"),t.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.h)&&t.push(":",String(n))),(n=this.g)&&(this.c&&"/"!=n.charAt(0)&&t.push("/"),t.push(qe(n,"/"==n.charAt(0)?We:ze,!0))),(n=this.b.toString())&&t.push("?",n),(n=this.i)&&t.push("#",qe(n,Ye)),t.join("")};var Ve=/[#\/\?@]/g,ze=/[#\?:]/g,We=/[#\?]/g,He=/[#\?@]/g,Ye=/#/g;function Ge(t,e){this.b=this.a=null,this.c=t||null,this.f=!!e}function Ke(t){t.a||(t.a=new Oe,t.b=0,t.c&&function(t,e){if(t){t=t.split("&");for(var n=0;n<t.length;n++){var r=t[n].indexOf("="),i=null;if(0<=r){var o=t[n].substring(0,r);i=t[n].substring(r+1)}else o=t[n];e(o,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}(t.c,(function(e,n){t.add(decodeURIComponent(e.replace(/\+/g," ")),n)})))}function Xe(t,e){Ke(t),e=Qe(t,e),Ce(t.a.b,e)&&(t.c=null,t.b-=t.a.get(e).length,Ce((t=t.a).b,e)&&(delete t.b[e],t.c--,t.a.length>2*t.c&&Ae(t)))}function $e(t,e){return Ke(t),e=Qe(t,e),Ce(t.a.b,e)}function Ze(t,e,n){Xe(t,e),0<n.length&&(t.c=null,t.a.set(Qe(t,e),T(n)),t.b+=n.length)}function Qe(t,e){return e=String(e),t.f&&(e=e.toLowerCase()),e}function Je(t,e){this.b=t,this.a=e}function tn(t){this.g=t||en,u.PerformanceNavigationTiming?t=0<(t=u.performance.getEntriesByType("navigation")).length&&("hq"==t[0].nextHopProtocol||"h2"==t[0].nextHopProtocol):t=!!(u.ia&&u.ia.ya&&u.ia.ya()&&u.ia.ya().qb),this.f=t?this.g:1,this.a=null,1<this.f&&(this.a=new Set),this.b=null,this.c=[]}(o=Ge.prototype).add=function(t,e){Ke(this),this.c=null,t=Qe(this,t);var n=this.a.get(t);return n||this.a.set(t,n=[]),n.push(e),this.b+=1,this},o.forEach=function(t,e){Ke(this),this.a.forEach((function(n,r){E(n,(function(n){t.call(e,n,r,this)}),this)}),this)},o.L=function(){Ke(this);for(var t=this.a.K(),e=this.a.L(),n=[],r=0;r<e.length;r++)for(var i=t[r],o=0;o<i.length;o++)n.push(e[r]);return n},o.K=function(t){Ke(this);var e=[];if("string"===typeof t)$e(this,t)&&(e=k(e,this.a.get(Qe(this,t))));else{t=this.a.K();for(var n=0;n<t.length;n++)e=k(e,t[n])}return e},o.set=function(t,e){return Ke(this),this.c=null,$e(this,t=Qe(this,t))&&(this.b-=this.a.get(t).length),this.a.set(t,[e]),this.b+=1,this},o.get=function(t,e){return t&&0<(t=this.K(t)).length?String(t[0]):e},o.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var t=[],e=this.a.L(),n=0;n<e.length;n++){var r=e[n],i=encodeURIComponent(String(r));r=this.K(r);for(var o=0;o<r.length;o++){var a=i;""!==r[o]&&(a+="="+encodeURIComponent(String(r[o]))),t.push(a)}}return this.c=t.join("&")};var en=10;function nn(t){return!!t.b||!!t.a&&t.a.size>=t.f}function rn(t){return t.b?1:t.a?t.a.size:0}function on(t,e){return t.b?t.b==e:!!t.a&&t.a.has(e)}function an(t,e){t.a?t.a.add(e):t.b=e}function sn(t,e){t.b&&t.b==e?t.b=null:t.a&&t.a.has(e)&&t.a.delete(e)}function un(t){var e,n;if(null!=t.b)return t.c.concat(t.b.s);if(null!=t.a&&0!==t.a.size){var r=t.c;try{for(var o=i(t.a.values()),a=o.next();!a.done;a=o.next()){var s=a.value;r=r.concat(s.s)}}catch(u){e={error:u}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r}return T(t.c)}function ln(){}function cn(){this.a=new ln}function fn(t,e,n){var r=n||"";try{Se(t,(function(t,n){var i=t;h(t)&&(i=St(t)),e.push(r+n+"="+encodeURIComponent(i))}))}catch(i){throw e.push(r+"type="+encodeURIComponent("_badmap")),i}}function hn(t,e,n,r,i){try{e.onload=null,e.onerror=null,e.onabort=null,e.ontimeout=null,i(r)}catch(o){}}tn.prototype.cancel=function(){var t,e;if(this.c=un(this),this.b)this.b.cancel(),this.b=null;else if(this.a&&0!==this.a.size){try{for(var n=i(this.a.values()),r=n.next();!r.done;r=n.next()){r.value.cancel()}}catch(o){t={error:o}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}this.a.clear()}},ln.prototype.stringify=function(t){return u.JSON.stringify(t,void 0)},ln.prototype.parse=function(t){return u.JSON.parse(t,void 0)};var dn=u.JSON.parse;function pn(t){kt.call(this),this.headers=new Oe,this.H=t||null,this.b=!1,this.s=this.a=null,this.B="",this.h=0,this.f="",this.g=this.A=this.l=this.u=!1,this.o=0,this.m=null,this.I=vn,this.D=this.F=!1}w(pn,kt);var vn="",mn=/^https?$/i,gn=["POST","PUT"];function yn(t){return"content-type"==t.toLowerCase()}function bn(t,e){t.b=!1,t.a&&(t.g=!0,t.a.abort(),t.g=!1),t.f=e,t.h=5,wn(t),xn(t)}function wn(t){t.u||(t.u=!0,t.dispatchEvent("complete"),t.dispatchEvent("error"))}function _n(t){if(t.b&&"undefined"!=typeof s&&(!t.s[1]||4!=kn(t)||2!=t.X()))if(t.l&&4==kn(t))Ut(t.za,0,t);else if(t.dispatchEvent("readystatechange"),4==kn(t)){t.b=!1;try{var e,n=t.X();t:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var r
2=!0;break t;default:r=!1}if(!(e=r)){var i;if(i=0===n){var o=String(t.B).match(Ne)[1]||null;if(!o&&u.self&&u.self.location){var a=u.self.location.protocol;o=a.substr(0,a.length-1)}i=!mn.test(o?o.toLowerCase():"")}e=i}if(e)t.dispatchEvent("complete"),t.dispatchEvent("success");else{t.h=6;try{var l=2<kn(t)?t.a.statusText:""}catch(c){l=""}t.f=l+" ["+t.X()+"]",wn(t)}}finally{xn(t)}}}function xn(t,e){if(t.a){En(t);var n=t.a,r=t.s[0]?l:null;t.a=null,t.s=null,e||t.dispatchEvent("ready");try{n.onreadystatechange=r}catch(i){}}}function En(t){t.a&&t.D&&(t.a.ontimeout=null),t.m&&(u.clearTimeout(t.m),t.m=null)}function kn(t){return t.a?t.a.readyState:0}function Tn(t,e,n){t:{for(r in n){var r=!1;break t}r=!0}r||(n=function(t){var e="";return M(t,(function(t,n){e+=n,e+=":",e+=t,e+="\r\n"})),e}(n),"string"===typeof t?null!=n&&encodeURIComponent(String(n)):je(t,e,n))}function Sn(t,e,n){return n&&n.internalChannelParams&&n.internalChannelParams[t]||e}function On(t){this.pa=0,this.g=[],this.c=new Yt,this.ga=this.la=this.B=this.fa=this.a=this.na=this.A=this.W=this.i=this.O=this.l=null,this.La=this.R=0,this.Ia=Sn("failFast",!1,t),this.H=this.m=this.j=this.h=this.f=null,this.T=!0,this.I=this.oa=this.P=-1,this.U=this.o=this.u=0,this.Fa=Sn("baseRetryDelayMs",5e3,t),this.Ma=Sn("retryDelaySeedMs",1e4,t),this.Ja=Sn("forwardChannelMaxRetries",2,t),this.ma=Sn("forwardChannelRequestTimeoutMs",2e4,t),this.Ka=t&&t.g||void 0,this.D=void 0,this.C=t&&t.supportsCrossDomainXhr||!1,this.J="",this.b=new tn(t&&t.concurrentRequestLimit),this.ka=new cn,this.da=t&&t.fastHandshake||!1,this.Ga=t&&t.b||!1,t&&t.f&&(this.c.a=!1),t&&t.forceLongPolling&&(this.T=!1),this.V=!this.da&&this.T&&t&&t.c||!1,this.ea=void 0,this.N=0,this.F=!1,this.s=null}function An(t){if(Nn(t),3==t.v){var e=t.R++,n=Pe(t.B);je(n,"SID",t.J),je(n,"RID",e),je(n,"TYPE","terminate"),Dn(t,n),(e=new he(t,t.c,e,void 0)).H=2,e.i=Fe(Pe(n)),n=!1,u.navigator&&u.navigator.sendBeacon&&(n=u.navigator.sendBeacon(e.i.toString(),"")),!n&&u.Image&&((new Image).src=e.i,n=!0),n||(e.a=Yn(e.g,null),e.a.ba(e.i)),e.u=b(),we(e)}Wn(t)}function Cn(t){t.a&&(Fn(t),t.a.cancel(),t.a=null)}function Nn(t){Cn(t),t.j&&(u.clearTimeout(t.j),t.j=null),qn(t),t.b.cancel(),t.h&&("number"===typeof t.h&&u.clearTimeout(t.h),t.h=null)}function In(t,e){t.g.push(new Je(t.La++,e)),3==t.v&&Pn(t)}function Pn(t){nn(t.b)||t.h||(t.h=!0,Mt(t.Ba,t),t.u=0)}function Mn(t,e){var n;n=e?e.f:t.R++;var r=Pe(t.B);je(r,"SID",t.J),je(r,"RID",n),je(r,"AID",t.P),Dn(t,r),t.i&&t.l&&Tn(r,t.i,t.l),n=new he(t,t.c,n,t.u+1),null===t.i&&(n.B=t.l),e&&(t.g=e.s.concat(t.g)),e=Rn(t,n,1e3),n.setTimeout(Math.round(.5*t.ma)+Math.round(.5*t.ma*Math.random())),an(t.b,n),me(n,r,e)}function Dn(t,e){t.f&&Se({},(function(t,n){je(e,n,t)}))}function Rn(t,e,n){n=Math.min(t.g.length,n);var r=t.f?g(t.f.Ha,t.f,t):null;t:for(var i=t.g,o=-1;;){var a=["count="+n];-1==o?0<n?(o=i[0].b,a.push("ofs="+o)):o=0:a.push("ofs="+o);for(var s=!0,u=0;u<n;u++){var l=i[u].b,c=i[u].a;if(0>(l-=o))o=Math.max(0,i[u].b-100),s=!1;else try{fn(c,a,"req"+l+"_")}catch(f){r&&r(c)}}if(s){r=a.join("&");break t}}return t=t.g.splice(0,n),e.s=t,r}function Ln(t){t.a||t.j||(t.U=1,Mt(t.Aa,t),t.o=0)}function jn(t){return!(t.a||t.j||3<=t.o)&&(t.U++,t.j=ee(g(t.Aa,t),Vn(t,t.o)),t.o++,!0)}function Fn(t){null!=t.s&&(u.clearTimeout(t.s),t.s=null)}function Un(t){t.a=new he(t,t.c,"rpc",t.U),null===t.i&&(t.a.B=t.l),t.a.O=0;var e=Pe(t.la);je(e,"RID","rpc"),je(e,"SID",t.J),je(e,"CI",t.H?"0":"1"),je(e,"AID",t.P),Dn(t,e),je(e,"TYPE","xmlhttp"),t.i&&t.l&&Tn(e,t.i,t.l),t.D&&t.a.setTimeout(t.D);var n=t.a;t=t.ga,n.H=1,n.i=Fe(Pe(e)),n.j=null,n.I=!0,ge(n,t)}function qn(t){null!=t.m&&(u.clearTimeout(t.m),t.m=null)}function Bn(t,e){var n=null;if(t.a==e){qn(t),Fn(t),t.a=null;var r=2}else{if(!on(t.b,e))return;n=e.s,sn(t.b,e),r=1}if(t.I=e.N,0!=t.v)if(e.b)if(1==r){n=e.j?e.j.length:0,e=b()-e.u;var i=t.u;(r=Xt()).dispatchEvent(new te(r,n,e,i)),Pn(t)}else Ln(t);else if(3==(i=e.h)||0==i&&0<t.I||!(1==r&&function(t,e){return!(rn(t.b)>=t.b.f-(t.h?1:0))&&(t.h?(t.g=e.s.concat(t.g),!0):!(1==t.v||2==t.v||t.u>=(t.Ia?0:t.Ja))&&(t.h=ee(g(t.Ba,t,e),Vn(t,t.u)),t.u++,!0))}(t,e)||2==r&&jn(t)))switch(n&&0<n.length&&(e=t.b,e.c=e.c.concat(n)),i){case 1:zn(t,5);break;case 4:zn(t,10);break;case 3:zn(t,6);break;default:zn(t,2)}}function Vn(t,e){var n=t.Fa+Math.floor(Math.random()*t.Ma);return t.f||(n*=2),n*e}function zn(t,e){if(t.c.info("Error code "+e),2==e){var n=null;t.f&&(n=null);var r=g(t.Xa,t);n||(n=new Ie("//www.google.com/images/cleardot.gif"),u.location&&"http"==u.location.protocol||Me(n,"https"),Fe(n)),function(t,e){var n=new Yt;if(u.Image){var r=new Image;r.onload=y(hn,n,r,"TestLoadImage: loaded",!0,e),r.onerror=y(hn,n,r,"TestLoadImage: error",!1,e),r.onabort=y(hn,n,r,"TestLoadImage: abort",!1,e),r.ontimeout=y(hn,n,r,"TestLoadImage: timeout",!1,e),u.setTimeout((function(){r.ontimeout&&r.ontimeout()}),1e4),r.src=t}else e(!1)}(n.toString(),r)}else Jt(2);t.v=0,t.f&&t.f.ra(e),Wn(t),Nn(t)}function Wn(t){t.v=0,t.I=-1,t.f&&(0==un(t.b).length&&0==t.g.length||(t.b.c.length=0,T(t.g),t.g.length=0),t.f.qa())}function Hn(t,e,n){var r=function(t){return t instanceof Ie?Pe(t):new Ie(t,void 0)}(n);if(""!=r.c)e&&De(r,e+"."+r.c),Re(r,r.h);else{var i=u.location;r=function(t,e,n,r){var i=new Ie(null,void 0);return t&&Me(i,t),e&&De(i,e),n&&Re(i,n),r&&(i.g=r),i}(i.protocol,e?e+"."+i.hostname:i.hostname,+i.port,n)}return t.W&&M(t.W,(function(t,e){je(r,e,t)})),e=t.A,n=t.na,e&&n&&je(r,e,n),je(r,"VER",t.ha),Dn(t,r),r}function Yn(t,e){if(e&&!t.C)throw Error("Can't create secondary domain capable XhrIo object.");return(e=new pn(t.Ka)).F=t.C,e}function Gn(){}function Kn(){if(q&&!(10<=Number(J)))throw Error("Environmental error: no available transport.")}function Xn(t,e){kt.call(this),this.a=new On(e),this.l=t,this.b=e&&e.messageUrlParams||null,t=e&&e.messageHeaders||null,e&&e.clientProtocolHeaderRequired&&(t?t["X-Client-Protocol"]="webchannel":t={"X-Client-Protocol":"webchannel"}),this.a.l=t,t=e&&e.initMessageHeaders||null,e&&e.messageContentType&&(t?t["X-WebChannel-Content-Type"]=e.messageContentType:t={"X-WebChannel-Content-Type":e.messageContentType}),e&&e.a&&(t?t["X-WebChannel-Client-Profile"]=e.a:t={"X-WebChannel-Client-Profile":e.a}),this.a.O=t,(t=e&&e.httpHeadersOverwriteParam)&&!S(t)&&(this.a.i=t),this.h=e&&e.supportsCrossDomainXhr||!1,this.g=e&&e.sendRawJson||!1,(e=e&&e.httpSessionIdParam)&&!S(e)&&(this.a.A=e,null!==(t=this.b)&&e in t&&(e in(t=this.b)&&delete t[e])),this.f=new Qn(this)}function $n(t){le.call(this);var e=t.__sm__;if(e){t:{for(var n in e){t=n;break t}t=void 0}(this.c=t)?(t=this.c,this.data=null!==e&&t in e?e[t]:void 0):this.data=e}else this.data=t}function Zn(){ce.call(this),this.status=1}function Qn(t){this.a=t}(o=pn.prototype).ba=function(t,e,n,r){if(this.a)throw Error("[goog.net.XhrIo] Object is active with another request="+this.B+"; newUri="+t);e=e?e.toUpperCase():"GET",this.B=t,this.f="",this.h=0,this.u=!1,this.b=!0,this.a=new XMLHttpRequest,this.s=this.H?oe(this.H):oe(se),this.a.onreadystatechange=g(this.za,this);try{this.A=!0,this.a.open(e,String(t),!0),this.A=!1}catch(o){return void bn(this,o)}t=n||"";var i=new Oe(this.headers);r&&Se(r,(function(t,e){i.set(e,t)})),r=function(t){t:{for(var e=yn,n=t.length,r="string"===typeof t?t.split(""):t,i=0;i<n;i++)if(i in r&&e.call(void 0,r[i],i,t)){e=i;break t}e=-1}return 0>e?null:"string"===typeof t?t.charAt(e):t[e]}(i.L()),n=u.FormData&&t instanceof u.FormData,!(0<=x(gn,e))||r||n||i.set("Content-Type","application/x-www-form-urlencoded;
2charset=utf-8"),i.forEach((function(t,e){this.a.setRequestHeader(e,t)}),this),this.I&&(this.a.responseType=this.I),"withCredentials"in this.a&&this.a.withCredentials!==this.F&&(this.a.withCredentials=this.F);try{En(this),0<this.o&&((this.D=function(t){return q&&Z(9)&&"number"===typeof t.timeout&&void 0!==t.ontimeout}(this.a))?(this.a.timeout=this.o,this.a.ontimeout=g(this.xa,this)):this.m=Ut(this.xa,this.o,this)),this.l=!0,this.a.send(t),this.l=!1}catch(o){bn(this,o)}},o.xa=function(){"undefined"!=typeof s&&this.a&&(this.f="Timed out after "+this.o+"ms, aborting",this.h=8,this.dispatchEvent("timeout"),this.abort(8))},o.abort=function(t){this.a&&this.b&&(this.b=!1,this.g=!0,this.a.abort(),this.g=!1,this.h=t||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),xn(this))},o.G=function(){this.a&&(this.b&&(this.b=!1,this.g=!0,this.a.abort(),this.g=!1),xn(this,!0)),pn.S.G.call(this)},o.za=function(){this.j||(this.A||this.l||this.g?_n(this):this.Ta())},o.Ta=function(){_n(this)},o.X=function(){try{return 2<kn(this)?this.a.status:-1}catch(t){return-1}},o.$=function(){try{return this.a?this.a.responseText:""}catch(t){return""}},o.Na=function(t){if(this.a){var e=this.a.responseText;return t&&0==e.indexOf(t)&&(e=e.substring(t.length)),dn(e)}},o.ua=function(){return this.h},o.Qa=function(){return"string"===typeof this.f?this.f:String(this.f)},(o=On.prototype).ha=8,o.v=1,o.Ba=function(t){if(this.h)if(this.h=null,1==this.v){if(!t){this.R=Math.floor(1e5*Math.random()),t=this.R++;var e,n=new he(this,this.c,t,void 0),r=this.l;if(this.O&&(r?L(r=D(r),this.O):r=this.O),null===this.i&&(n.B=r),this.da)t:{for(var i=e=0;i<this.g.length;i++){var o=this.g[i];if(void 0===(o="__data__"in o.a&&"string"===typeof(o=o.a.__data__)?o.length:void 0))break;if(4096<(e+=o)){e=i;break t}if(4096===e||i===this.g.length-1){e=i+1;break t}}e=1e3}else e=1e3;e=Rn(this,n,e),je(i=Pe(this.B),"RID",t),je(i,"CVER",22),this.A&&je(i,"X-HTTP-Session-Id",this.A),Dn(this,i),this.i&&r&&Tn(i,this.i,r),an(this.b,n),this.Ga&&je(i,"TYPE","init"),this.da?(je(i,"$req",e),je(i,"SID","null"),n.V=!0,me(n,i,null)):me(n,i,e),this.v=2}}else 3==this.v&&(t?Mn(this,t):0==this.g.length||nn(this.b)||Mn(this))},o.Aa=function(){if(this.j=null,Un(this),this.V&&!(this.F||null==this.a||0>=this.N)){var t=2*this.N;this.c.info("BP detection timer enabled: "+t),this.s=ee(g(this.Sa,this),t)}},o.Sa=function(){this.s&&(this.s=null,this.c.info("BP detection timeout reached."),this.c.info("Buffering proxy detected and switch to long-polling!"),this.H=!1,this.F=!0,Cn(this),Un(this))},o.Ra=function(){null!=this.m&&(this.m=null,Cn(this),jn(this),Jt(19))},o.Xa=function(t){t?(this.c.info("Successfully pinged google.com"),Jt(2)):(this.c.info("Failed to ping google.com"),Jt(1))},(o=Gn.prototype).ta=function(){},o.sa=function(){},o.ra=function(){},o.qa=function(){},o.Ha=function(){},Kn.prototype.a=function(t,e){return new Xn(t,e)},w(Xn,kt),(o=Xn.prototype).addEventListener=function(t,e,n,r){Xn.S.addEventListener.call(this,t,e,n,r)},o.removeEventListener=function(t,e,n,r){Xn.S.removeEventListener.call(this,t,e,n,r)},o.Oa=function(){this.a.f=this.f,this.h&&(this.a.C=!0);var t=this.a,e=this.l,n=this.b||void 0;Jt(0),t.fa=e,t.W=n||{},t.H=t.T,t.B=Hn(t,null,t.fa),Pn(t)},o.close=function(){An(this.a)},o.Pa=function(t){if("string"===typeof t){var e={};e.__data__=t,In(this.a,e)}else this.g?((e={}).__data__=St(t),In(this.a,e)):In(this.a,t)},o.G=function(){this.a.f=null,delete this.f,An(this.a),delete this.a,Xn.S.G.call(this)},w($n,le),w(Zn,ce),w(Qn,Gn),Qn.prototype.ta=function(){this.a.dispatchEvent("a")},Qn.prototype.sa=function(t){this.a.dispatchEvent(new $n(t))},Qn.prototype.ra=function(t){this.a.dispatchEvent(new Zn(t))},Qn.prototype.qa=function(){this.a.dispatchEvent("b")},Kn.prototype.createWebChannel=Kn.prototype.a,Xn.prototype.send=Xn.prototype.Pa,Xn.prototype.open=Xn.prototype.Oa,Xn.prototype.close=Xn.prototype.close,ne.NO_ERROR=0,ne.TIMEOUT=8,ne.HTTP_ERROR=6,re.COMPLETE="complete",ae.EventType=ue,ue.OPEN="a",ue.CLOSE="b",ue.ERROR="c",ue.MESSAGE="d",kt.prototype.listen=kt.prototype.va,pn.prototype.listenOnce=pn.prototype.wa,pn.prototype.getLastError=pn.prototype.Qa,pn.prototype.getLastErrorCode=pn.prototype.ua,pn.prototype.getStatus=pn.prototype.X,pn.prototype.getResponseJson=pn.prototype.Na,pn.prototype.getResponseText=pn.prototype.$,pn.prototype.send=pn.prototype.ba;var Jn={createWebChannelTransport:function(){return new Kn},ErrorCode:ne,EventType:re,WebChannel:ae,XhrIo:pn},tr=Jn.createWebChannelTransport,er=Jn.ErrorCode,nr=Jn.EventType,rr=Jn.WebChannel,ir=Jn.XhrIo;e.default=Jn}.call(this,n(22))},function(t,e,n){"use strict";n(135)},function(t,e,n){(function(t){(function(){var e,r=n(28).default,i="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)};var o=function(e){e=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof t&&t,e];for(var n=0;n<e.length;++n){var r=e[n];if(r&&r.Math==Math)return r}return globalThis}(this);function a(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}function s(t){var e="undefined"!=typeof Symbol&&Symbol.iterator&&t[Symbol.iterator];return e?e.call(t):{next:a(t)}}!function(t,e){if(e){var n=o;t=t.split(".");for(var r=0;r<t.length-1;r++){var a=t[r];a in n||(n[a]={}),n=n[a]}(e=e(r=n[t=t[t.length-1]]))!=r&&null!=e&&i(n,t,{configurable:!0,writable:!0,value:e})}}("Promise",(function(t){function e(t){this.b=0,this.c=void 0,this.a=[];var e=this.f();try{t(e.resolve,e.reject)}catch(n){e.reject(n)}}function n(){this.a=null}function r(t){return t instanceof e?t:new e((function(e){e(t)}))}if(t)return t;n.prototype.b=function(t){if(null==this.a){this.a=[];var e=this;this.c((function(){e.g()}))}this.a.push(t)};var i=o.setTimeout;n.prototype.c=function(t){i(t,0)},n.prototype.g=function(){for(;this.a&&this.a.length;){var t=this.a;this.a=[];for(var e=0;e<t.length;++e){var n=t[e];t[e]=null;try{n()}catch(r){this.f(r)}}}this.a=null},n.prototype.f=function(t){this.c((function(){throw t}))},e.prototype.f=function(){function t(t){return function(r){n||(n=!0,t.call(e,r))}}var e=this,n=!1;return{resolve:t(this.m),reject:t(this.g)}}
vendor: 1,338 bytes, line 2
2,e.prototype.m=function(t){if(t===this)this.g(new TypeError("A Promise cannot resolve to itself"));else if(t instanceof e)this.s(t);else{t:switch(typeof t){case"object":var n=null!=t;break t;case"function":n=!0;break t;default:n=!1}n?this.u(t):this.h(t)}},e.prototype.u=function(t){var e=void 0;try{e=t.then}catch(n){return void this.g(n)}"function"==typeof e?this.w(e,t):this.h(t)},e.prototype.g=function(t){this.i(2,t)},e.prototype.h=function(t){this.i(1,t)},e.prototype.i=function(t,e){if(0!=this.b)throw Error("Cannot settle("+t+", "+e+"): Promise already settled in state"+this.b);this.b=t,this.c=e,this.l()},e.prototype.l=function(){if(null!=this.a){for(var t=0;t<this.a.length;++t)a.b(this.a[t]);this.a=null}};var a=new n;return e.prototype.s=function(t){var e=this.f();t.Oa(e.resolve,e.reject)},e.prototype.w=function(t,e){var n=this.f();try{t.call(e,n.resolve,n.reject)}catch(r){n.reject(r)}},e.prototype.then=function(t,n){function r(t,e){return"function"==typeof t?function(e){try{i(t(e))}catch(n){o(n)}}:e}var i,o,a=new e((function(t,e){i=t,o=e}));return this.Oa(r(t,i),r(n,o)),a},e.prototype.catch=function(t){return this.then(void 0,t)},e.prototype.Oa=function(t,e){function n(){switch(r.b){case 1:t(r.c);break;case 2:e(r.c);break;default:throw Error("Unexpected state: "+r.b)}}var r=this;null==this.a?a.b(n):this.a.push(n)}
2,e.resolve=r,e.reject=function(t){return new e((function(e,n){n(t)}))},e.race=function(t){return new e((function(e,n){for(var i=s(t),o=i.next();!o.done;o=i.next())r(o.value).Oa(e,n)}))},e.all=function(t){var n=s(t),i=n.next();return i.done?r([]):new e((function(t,e){function o(e){return function(n){a[e]=n,0==--s&&t(a)}}var a=[],s=0;do{a.push(void 0),s++,r(i.value).Oa(o(a.length-1),e),i=n.next()}while(!i.done)}))},e}));var u=u||{},l=this||self,c=/^[\w+/_-]+[=]{0,2}$/,f=null;function h(){}function d(t){var e=typeof t;if("object"==e){if(!t)return"null";if(t instanceof Array)return"array";if(t instanceof Object)return e;var n=Object.prototype.toString.call(t);if("[object Window]"==n)return"object";if("[object Array]"==n||"number"==typeof t.length&&"undefined"!=typeof t.splice&&"undefined"!=typeof t.propertyIsEnumerable&&!t.propertyIsEnumerable("splice"))return"array";if("[object Function]"==n||"undefined"!=typeof t.call&&"undefined"!=typeof t.propertyIsEnumerable&&!t.propertyIsEnumerable("call"))return"function"}else if("function"==e&&"undefined"==typeof t.call)return"object";return e}function p(t){var e=d(t);return"array"==e||"object"==e&&"number"==typeof t.length}function v(t){return"function"==d(t)}function m(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}function g(t){return Object.prototype.hasOwnProperty.call(t,y)&&t[y]||(t[y]=++b)}var y="closure_uid_"+(1e9*Math.random()>>>0),b=0;function w(t,e,n){return t.call.apply(t.bind,arguments)}function _(t,e,n){if(!t)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),t.apply(e,n)}}return function(){return t.apply(e,arguments)}}function x(t,e,n){return(x=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?w:_).apply(null,arguments)}function E(t,e){var n=Array.prototype.slice.call(arguments,1);return function(){var e=n.slice();return e.push.apply(e,arguments),t.apply(this,e)}}var k=Date.now||function(){return+new Date};function T(t,e){function n(){}n.prototype=e.prototype,t.Za=e.prototype,t.prototype=new n,t.prototype.constructor=t}
2function S(t,e,n){this.code=C+t,this.message=e||N[t]||"",this.a=n||null}function O(t){var e=t&&t.code;return e?new S(e.substring(C.length),t.message,t.serverResponse):null}T(S,Error),S.prototype.v=function(){var t={code:this.code,message:this.message};return this.a&&(t.serverResponse=this.a),t},S.prototype.toJSON=function(){return this.v()};var A,C="auth/",N={"admin-restricted-operation":"This operation is restricted to administrators only.","argument-error":"","app-not-authorized":"This app, identified by the domain where it's hosted, is not authorized to use Firebase Authentication with the provided API key. Review your key configuration in the Google API console.","app-not-installed":"The requested mobile application corresponding to the identifier (Android package name or iOS bundle ID) provided is not installed on this device.","captcha-check-failed":"The reCAPTCHA response token provided is either invalid, expired, already used or the domain associated with it does not match the list of whitelisted domains.","code-expired":"The SMS code has expired. Please re-send the verification code to try again.","cordova-not-ready":"Cordova framework is not ready.","cors-unsupported":"This browser is not supported.","credential-already-in-use":"This credential is already associated with a different user account.","custom-token-mismatch":"The custom token corresponds to a different audience.","requires-recent-login":"This operation is sensitive and requires recent authentication. Log in again before retrying this request.","dynamic-link-not-activated":"Please activate Dynamic Links in the Firebase Console and agree to the terms and conditions.","email-change-needs-verification":"Multi-factor users must al
2ways have a verified email.","email-already-in-use":"The email address is already in use by another account.","expired-action-code":"The action code has expired. ","cancelled-popup-request":"This operation has been cancelled due to another conflicting popup being opened.","internal-error":"An internal error has occurred.","invalid-app-credential":"The phone verification request contains an invalid application verifier. The reCAPTCHA token response is either invalid or expired.","invalid-app-id":"The mobile app identifier is not registed for the current project.","invalid-user-token":"This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key.","invalid-auth-event":"An internal error has occurred.","invalid-verification-code":"The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure use the verification code provided by the user.","invalid-continue-uri":"The continue URL provided in the request is invalid.","invalid-cordova-configuration":"The following Cordova plugins must be installed to enable OAuth sign-in: cordova-plugin-buildinfo, cordova-universal-links-plugin, cordova-plugin-browsertab, cordova-plugin-inappbrowser and cordova-plugin-customurlscheme.","invalid-custom-token":"The custom token format is incorrect. Please check the documentation.","invalid-dynamic-link-domain":"The provided dynamic link domain is not configured or authorized for the current project.","invalid-email":"The email address is badly formatted.","invalid-api-key":"Your API key is invalid, please check you have copied it correctly.","invalid-cert-hash":"The SHA-1 certificate hash provided is invalid.","invalid-credential":"The supplied auth credential is malformed or has expired.","invalid-message-payload":"The email template corresponding to this action contains invalid characters in its message. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-multi-factor-session":"The request does not contain a valid proof of first factor successful sign-in.","invalid-oauth-provider":"EmailAuthProvider is not supported for this operation. This operation only supports OAuth providers.","invalid-oauth-client-id":"The OAuth client ID provided is either invalid or does not match the specified API key.","unauthorized-domain":"This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.","invalid-action-code":"The action code is invalid. This can happen if the code is malformed, expired, or has already been used.","wrong-password":"The password is invalid or the user does not have a password.","invalid-persistence-type":"The specified persistence type is invalid. It can only be local, session or none.","invali
2d-phone-number":"The format of the phone number provided is incorrect. Please enter the phone number in a format that can be parsed into E.164 format. E.164 phone numbers are written in the format [+][country code][subscriber number including area code].","invalid-provider-id":"The specified provider ID is invalid.","invalid-recipient-email":"The email corresponding to this action failed to send as the provided recipient email address is invalid.","invalid-sender":"The email template corresponding to this action contains an invalid sender email or name. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-verification-id":"The verification ID used to create the phone auth credential is invalid.","invalid-tenant-id":"The Auth instance's tenant ID is invalid.","multi-factor-info-not-found":"The user does not have a second factor matching the identifier provided.","multi-factor-auth-required":"Proof of ownership of a second factor is required to complete sign-in.","missing-android-pkg-name":"An Android Package Name must be provided if the Android App is required to be installed.","auth-domain-config-required":"Be sure to include authDomain when calling firebase.initializeApp(), by following the instructions in the Firebase console.","missing-app-credential":"The phone verification request is missing an application verifier assertion. A reCAPTCHA response token needs to be provided.","missing-verification-code":"The phone auth credential was created with an empty SMS verification code.","missing-continue-uri":"A continue URL must be provided in the request.","missing-iframe-start":"An internal error has occurred.","missing-ios-bundle-id":"An iOS Bundle ID must be provided if an App Store ID is provided.","missing-multi-factor-info":"No second factor identifier is provided.","missing-multi-factor-session":"The request is missing proof of first factor successful sign-in.","missing-or-invalid-nonce":"The request does not contain a valid nonce. This can occur if the SHA-256 hash of the provided raw nonce does not match the hashed nonce in the ID token payload.","missing-phone-number":"To send verification codes, provide a phone number for the recipient.","missing-verification-id":"The phone auth credential was created with an empty verification ID.","app-deleted":"This instance of FirebaseApp has been deleted.","account-exists-with-different-credential":"An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.","network-request-failed":"A network error (such as timeout, interrupted connection or unreachable host) has occurred.","no-auth-event":"An internal error has occurred.","no-such-provider":"User was not linked to an account with the given provider.","null-user":"A null user object was provided as the argument for an operation which requires a non-null user object.","operation-not-allowed":"The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.","operation-not-supported-in-this-environment":'This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled.',"popup-blocked":"Unable to establish a connection with the popup. It may have been blocked by the browser.","popup-closed-by-user":"The popup has been closed by the user before finalizing the operation.","provider-already-linked":"User can only be linked to one identity for the given provider.","quota-exceeded":"The project's quota for this operation has been exceeded.","redirect-cancelled-by-user":"The redirect operation has been cancelled by the user before finalizing.","redirect-operation-pending":"A redirect sign-in operation is already pending.","rejected-credential":"The request contains malformed or mismatching credentials.","second-factor-already-in-use":"The second factor is already enrolled on this account.","maximum-second-factor-count-exceeded":"The maximum allowed number of second factors on a user has been exceeded.","tenant-id-mismatch":"The provided tenant ID does not match the Auth instance's tenant ID",timeout:"The operation has timed out.","user-token-expired":"The user's credential is no longer valid. The user must sign in again.","too-many-requests":"We have blocked all requests from this device due to unusual activity. Try again later.","unauthorized-continue-uri":"The domain of the continue URL is not whitelisted.  Please whitelist the domain in the Firebase console.","unsupported-first-factor":"Enrolling a second factor or signing in with a multi-factor account requires sign-in with a supported first factor.","unsupported-persistence-type":"The current environment does not support the specified persistence type.","unsupported-tenant-operation":"This operation is not supported in a multi-tenant context.","unverified-email":"The operation requires a verified email.","user-cancelled":"The user did not grant your application the permissions it requested.","user-not-found":"There is no user record corresponding to this identifier. The user may have been deleted.","user-disabled":"The user account has been disabled by an administrator.","user-mismatch":"The supplied credentials do not correspond to the previously signed in user.","user-signed-out":"","weak-password":"The password must be 6 characters long or more.","web-storage-unsupported":"This browser is not supported or 3rd party cookies and data may be disabled."},I={hd:{Ra:"https://staging-identitytoolkit.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",Xa:"https://staging-securetoken.sandbox.googleapis.com/v1/token",Ua:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"b"},pd:{Ra:"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",Xa:"https://securetoken.googleapis.com/v1/token",Ua:"https://identitytoolkit.googleapis.com/v2/",id:"p"},rd:{Ra:"https://staging-www.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",Xa:"https://staging-securetoken.sandbox.googleapis.com/v1/token",Ua:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"s"},sd:{Ra:"https://www-googleapis-test.sandbox.google.com/identitytoolkit/v3/relyingparty/",Xa:"https://test-securetoken.sandbox.googleapis.com/v1/token",Ua:"https://test-identitytoolkit.sandbox.googleapis.com/v2/",id:"t"}};function P(t){for(var e in I)if(I[e].id===t)return{firebaseEndpoint:(t=I[e]).Ra,secureTokenEndpoint:t.Xa,identityPlatformEndpoint:t.Ua};return null}function M(t){if(!t)return!1;
2try{return!!t.$goog_Thenable}catch(e){return!1}}function D(t){if(Error.captureStackTrace)Error.captureStackTrace(this,D);else{var e=Error().stack;e&&(this.stack=e)}t&&(this.message=String(t))}function R(t,e){for(var n="",r=(t=t.split("%s")).length-1,i=0;i<r;i++)n+=t[i]+(i<e.length?e[i]:"%s");D.call(this,n+t[r])}function L(t,e){throw new R("Failure"+(t?": "+t:""),Array.prototype.slice.call(arguments,1))}function j(t,e){this.c=t,this.f=e,this.b=0,this.a=null}function F(t,e){t.f(e),100>t.b&&(t.b++,e.next=t.a,t.a=e)}function U(){this.b=this.a=null}A=P("__EID__")?"__EID__":void 0,T(D,Error),D.prototype.name="CustomError",T(R,D),R.prototype.name="AssertionError",j.prototype.get=function(){if(0<this.b){this.b--;var t=this.a;this.a=t.next,t.next=null}else t=this.c();return t};var q=new j((function(){return new V}),(function(t){t.reset()}));function B(){var t=ye,e=null;return t.a&&(e=t.a,t.a=t.a.next,t.a||(t.b=null),e.next=null),e}function V(){this.next=this.b=this.a=null}U.prototype.add=function(t,e){var n=q.get();n.set(t,e),this.b?this.b.next=n:this.a=n,this.b=n},V.prototype.set=function(t,e){this.a=t,this.b=e,this.next=null},V.prototype.reset=function(){this.next=this.b=this.a=null};var z=Array.prototype.indexOf?function(t,e){return Array.prototype.indexOf.call(t,e,void 0)}:function(t,e){if("string"===typeof t)return"string"!==typeof e||1!=e.length?-1:t.indexOf(e,0);for(var n=0;n<t.length;n++)if(n in t&&t[n]===e)return n;return-1},W=Array.prototype.forEach?function(t,e,n){Array.prototype.forEach.call(t,e,n)}:function(t,e,n){for(var r=t.length,i="string"===typeof t?t.split(""):t,o=0;o<r;o++)o in i&&e.call(n,i[o],o,t)};var H=Array.prototype.filter?function(t,e){return Array.prototype.filter.call(t,e,void 0)}:function(t,e){for(var n=t.length,r=[],i=0,o="string"===typeof t?t.split(""):t,a=0;a<n;a++)if(a in o){var s=o[a];e.call(void 0,s,a,t)&&(r[i++]=s)}return r},Y=Array.prototype.map?function(t,e){return Array.prototype.map.call(t,e,void 0)}:function(t,e){for(var n=t.length,r=Array(n),i="string"===typeof t?t.split(""):t,o=0;o<n;o++)o in i&&(r[o]=e.call(void 0,i[o],o,t));return r},G=Array.prototype.some?function(t,e){return Array.prototype.some.call(t,e,void 0)}:function(t,e){for(var n=t.length,r="string"===typeof t?t.split(""):t,i=0;i<n;i++)if(i in r&&e.call(void 0,r[i],i,t))return!0;return!1};function K(t,e){return 0<=z(t,e)}function X(t,e){var n;return(n=0<=(e=z(t,e)))&&Array.prototype.splice.call(t,e,1),n}function $(t,e){!function(t,e){for(var n="string"===typeof t?t.split(""):t,r=t.length-1;0<=r;--r)r in n&&e.call(void 0,n[r],r,t)}(t,(function(n,r){e.call(void 0,n,r,t)&&1==Array.prototype.splice.call(t,r,1).length&&0}))}function Z(t){return Array.prototype.concat.apply([],arguments)}function Q(t){var e=t.length;if(0<e){for(var n=Array(e),r=0;r<e;r++)n[r]=t[r];return n}return[]}var J,tt=String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]},et=/&/g,nt=/</g,rt=/>/g,it=/"/g,ot=/'/g,at=/\x00/g,st=/[\x00&<>"']/;function ut(t,e){return-1!=t.indexOf(e)}function lt(t,e){return t<e?-1:t>e?1:0}t:{var ct=l.navigator;if(ct){var ft=ct.userAgent;if(ft){J=ft;break t}}J=""}function ht(t){return ut(J,t)}function dt(t,e){for(var n in t)e.call(void 0,t[n],n,t)}function pt(t){for(var e in t)return!1;return!0}function vt(t){var e,n={};for(e in t)n[e]=t[e];return n}var mt="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function gt(t,e){for(var n,r,i=1;i<arguments.length;i++){for(n in r=arguments[i])t[n]=r[n];for(var o=0;o<mt.length;o++)n=mt[o],Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}}function yt(t,e){t:{try{var n=t&&t.ownerDocument,r=n&&(n.defaultView||n.parentWindow);if((r=r||l).Element&&r.Location){var i=r;break t}}catch(a){}i=null}if(i&&"undefined"!=typeof i[e]&&(!t||!(t instanceof i[e])&&(t instanceof i.Location||t instanceof i.Element))){if(m(t))try{var o=t.constructor.displayName||t.constructor.name||Object.prototype.toString.call(t)}catch(a){o="<object could not be stringified>"}else o=void 0===t?"undefined":null===t?"null":typeof t;L("Argument is not a %s (or a non-Element, non-Location mock); got: %s",e,o)}}function bt(t,e){this.a=t===xt&&e||"",this.b=_t}function wt(t){return t instanceof bt&&t.constructor===bt&&t.b===_t?t.a:(L("expected object of type Const, got '"+t+"'"),"type_error:Const")}bt.prototype.ra=!0,bt.prototype.qa=function(){return this.a},bt.prototype.toString=function(){return"Const{"+this.a+"}"};var _t={},xt={},Et=new bt(xt,"");function kt(t,e){this.a=t===Nt&&e||"",this.b=Ct}function Tt(t){return t instanceof kt&&t.constructor===kt&&t.b===Ct?t.a:(L("expected object of type TrustedResourceUrl, got '"+t+"' of type "+d(t)),"type_error:TrustedResourceUrl")}function St(t,e){var n=wt(t);if(!At.test(n))throw Error("Invalid TrustedResourceUrl format: "+n);return t=n.replace(Ot,(function(t,r){if(!Object.prototype.hasOwnProperty.call(e,r))throw Error('Found marker, "'+r+'", in format str
2ing, "'+n+'", but no valid label mapping found in args: '+JSON.stringify(e));return(t=e[r])instanceof bt?wt(t):encodeURIComponent(String(t))})),new kt(Nt,t)}kt.prototype.ra=!0,kt.prototype.qa=function(){return this.a.toString()},kt.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var Ot=/%{(\w+)}/g,At=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,Ct={},Nt={};function It(t,e){this.a=t===Lt&&e||"",this.b=Rt}function Pt(t){return t instanceof It&&t.constructor===It&&t.b===Rt?t.a:(L("expected object of type SafeUrl, got '"+t+"' of type "+d(t)),"type_error:SafeUrl")}It.prototype.ra=!0,It.prototype.qa=function(){return this.a.toString()},It.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var Mt=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;function Dt(t){return t instanceof It?t:(t="object"==typeof t&&t.ra?t.qa():String(t),Mt.test(t)||(t="about:invalid#zClosurez"),new It(Lt,t))}var Rt={},Lt={};function jt(){this.a="",this.b=Ut}function Ft(t){return t instanceof jt&&t.constructor===jt&&t.b===Ut?t.a:(L("expected object of type SafeHtml, got '"+t+"' of type "+d(t)),"type_error:SafeHtml")}jt.prototype.ra=!0,jt.prototype.qa=function(){return this.a.toString()},jt.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var Ut={};function qt(t){var e=new jt;return e.a=t,e}qt("<!DOCTYPE html>");var Bt=qt("");function Vt(t,e){for(var n=t.split("%s"),r="",i=Array.prototype.slice.call(arguments,1);i.length&&1<n.length;)r+=n.shift()+i.shift();return r+n.join("%s")}function zt(t){return st.test(t)&&(-1!=t.indexOf("&")&&(t=t.replace(et,"&amp;")),-1!=t.indexOf("<")&&(t=t.replace(nt,"&lt;")),-1!=t.indexOf(">")&&(t=t.replace(rt,"&gt;")),-1!=t.indexOf('"')&&(t=t.replace(it,"&quot;")),-1!=t.indexOf("'")&&(t=t.replace(ot,"&#39;")),-1!=t.indexOf("\0")&&(t=t.replace(at,"&#0;"))),t}function Wt(t){return Wt[" "](t),t}qt("<br>"),Wt[" "]=h;var Ht,Yt=ht("Opera"),Gt=ht("Trident")||ht("MSIE"),Kt=ht("Edge"),Xt=Kt||Gt,$t=ht("Gecko")&&!(ut(J.toLowerCase(),"webkit")&&!ht("Edge"))&&!(ht("Trident")||ht("MSIE"))&&!ht("Edge"),Zt=ut(J.toLowerCase(),"webkit")&&!ht("Edge");function Qt(){var t=l.document;return t?t.documentMode:void 0}t:{var Jt="",te=function(){var t=J;return $t?/rv:([^\);]+)(\)|;)/.exec(t):Kt?/Edge\/([\d\.]+)/.exec(t):Gt?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(t):Zt?/WebKit\/(\S+)/.exec(t):Yt?/(?:Version)[ \/]?(\S+)/.exec(t):void 0}();if(te&&(Jt=te?te[1]:""),Gt){var ee=Qt();if(null!=ee&&ee>parseFloat(Jt)){Ht=String(ee);break t}}Ht=Jt}var ne,re={};function ie(t){return function(t,e){var n=re;return Object.prototype.hasOwnProperty.call(n,t)?n[t]:n[t]=e(t)}(t,(function(){for(var e=0,n=tt(String(Ht)).split("."),r=tt(String(t)).split("."),i=Math.max(n.length,r.length),o=0;0==e&&o<i;o++){var a=n[o]||"",s=r[o]||"";do{if(a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==a[0].length&&0==s[0].length)break;e=lt(0==a[1].length?0:parseInt(a[1],10),0==s[1].length?0:parseInt(s[1],10))||lt(0==a[2].length,0==s[2].length)||lt(a[2],s[2]),a=a[3],s=s[3]}while(0==e)}return 0<=e}))}ne=l.document&&Gt?Qt():void 0;try{new self.OffscreenCanvas(0,0).getContext("2d")}catch(aa){}var oe=!Gt||9<=Number(ne);function ae(t){var e=document;return"string"===typeof t?e.getElementById(t):t}function se(t,e){dt(e,(function(e,n){e&&"object"==typeof e&&e.ra&&(e=e.qa()),"style"==n?t.style.cssText=e:"class"==n?t.className=e:"for"==n?t.htmlFor=e:ce.hasOwnProperty(n)?t.setAttribute(ce[n],e):0==n.lastIndexOf("aria-",0)||0==n.lastIndexOf("data-",0)?t.setAttribute(n,e):t[n]=e}))}var ue,le,ce={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};function fe(t,e,n){function r(n){n&&e.appendChild("string"===typeof n?t.createTextNode(n):n)}for(var i=2;i<n.length;i++){var o=n[i];!p(o)||m(o)&&0<o.nodeType?r(o):W(de(o)?Q(o):o,r)}}function he(t,e){return e=String(e),"application/xhtml+xml"===t.contentType&&(e=e.toLowerCase()),t.createElement(e)}function de(t){if(t&&"number"==typeof t.length){if(m(t))return"function"==typeof t.item||"string"==typeof t.item;if(v(t))return"function"==typeof t.item}return!1}function pe(t){l.setTimeout((function(){throw t}),0)}function ve(){var t=l.MessageChannel;if("undefined"===typeof t&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!ht("Presto")&&(t=function(){var t=he(document,"IFRAME");t.style.display="none",function(t){var e=new kt(Nt,wt(Et));yt(t,"HTMLIFrameElement"),t.src=Tt(e).toString()}(t),document.documentElement.appendChild(t);var e=t.contentWindow;(t=e.document).open(),t.write(Ft(Bt)),t.close();
2var n="callImmediate"+Math.random(),r="file:"==e.location.protocol?"*":e.location.protocol+"//"+e.location.host;t=x((function(t){"*"!=r&&t.origin!=r||t.data!=n||this.port1.onmessage()}),this),e.addEventListener("message",t,!1),this.port1={},this.port2={postMessage:function(){e.postMessage(n,r)}}}),"undefined"!==typeof t&&!ht("Trident")&&!ht("MSIE")){var e=new t,n={},r=n;return e.port1.onmessage=function(){if(void 0!==n.next){var t=(n=n.next).Db;n.Db=null,t()}},function(t){r.next={Db:t},r=r.next,e.port2.postMessage(0)}}return function(t){l.setTimeout(t,0)}}function me(t,e){le||function(){if(l.Promise&&l.Promise.resolve){var t=l.Promise.resolve(void 0);le=function(){t.then(be)}}else le=function(){var t=be;!v(l.setImmediate)||l.Window&&l.Window.prototype&&!ht("Edge")&&l.Window.prototype.setImmediate==l.setImmediate?(ue||(ue=ve()),ue(t)):l.setImmediate(t)}}(),ge||(le(),ge=!0),ye.add(t,e)}var ge=!1,ye=new U;function be(){for(var t;t=B();){try{t.a.call(t.b)}catch(e){pe(e)}F(q,t)}ge=!1}function we(t,e){if(this.a=_e,this.i=void 0,this.f=this.b=this.c=null,this.g=this.h=!1,t!=h)try{var n=this;t.call(e,(function(t){Me(n,xe,t)}),(function(t){if(!(t instanceof qe))try{if(t instanceof Error)throw t;throw Error("Promise rejected.")}catch(e){}Me(n,Ee,t)}))}catch(r){Me(this,Ee,r)}}var _e=0,xe=2,Ee=3;function ke(){this.next=this.f=this.b=this.g=this.a=null,this.c=!1}ke.prototype.reset=function(){this.f=this.b=this.g=this.a=null,this.c=!1};var Te=new j((function(){return new ke}),(function(t){t.reset()}));function Se(t,e,n){var r=Te.get();return r.g=t,r.b=e,r.f=n,r}function Oe(t){if(t instanceof we)return t;var e=new we(h);return Me(e,xe,t),e}
2function Ae(t){return new we((function(e,n){n(t)}))}function Ce(t,e,n){De(t,e,n,null)||me(E(e,t))}function Ne(t){return new we((function(e){var n=t.length,r=[];if(n)for(var i=function(t,i,o){n--,r[t]=i?{Mb:!0,value:o}:{Mb:!1,reason:o},0==n&&e(r)},o=0;o<t.length;o++)Ce(t[o],E(i,o,!0),E(i,o,!1));else e(r)}))}function Ie(t,e){t.b||t.a!=xe&&t.a!=Ee||Re(t),t.f?t.f.next=e:t.b=e,t.f=e}function Pe(t,e,n,r){var i=Se(null,null,null);return i.a=new we((function(t,o){i.g=e?function(n){try{var i=e.call(r,n);t(i)}catch(a){o(a)}}:t,i.b=n?function(e){try{var i=n.call(r,e);void 0===i&&e instanceof qe?o(e):t(i)}catch(a){o(a)}}:o})),i.a.c=t,Ie(t,i),i.a}function Me(t,e,n){t.a==_e&&(t===n&&(e=Ee,n=new TypeError("Promise cannot resolve to itself")),t.a=1,De(n,t.Yc,t.Zc,t)||(t.i=n,t.a=e,t.c=null,Re(t),e!=Ee||n instanceof qe||function(t,e){t.g=!0,me((function(){t.g&&Ue.call(null,e)}))}(t,n)))}function De(t,e,n,r){if(t instanceof we)return Ie(t,Se(e||h,n||null,r)),!0;if(M(t))return t.then(e,n,r),!0;if(m(t))try{var i=t.then;if(v(i))return function(t,e,n,r,i){function o(t){a||(a=!0,r.call(i,t))}var a=!1;try{e.call(t,(function(t){a||(a=!0,n.call(i,t))}),o)}catch(s){o(s)}}(t,i,e,n,r),!0}catch(o){return n.call(r,o),!0}return!1}function Re(t){t.h||(t.h=!0,me(t.ec,t))}function Le(t){var e=null;return t.b&&(e=t.b,t.b=e.next,e.next=null),t.b||(t.f=null),e}function je(t,e,n,r){if(n==Ee&&e.b&&!e.c)for(;t&&t.g;t=t.c)t.g=!1;if(e.a)e.a.c=null,Fe(e,n,r);else try{e.c?e.g.call(e.f):Fe(e,n,r)}catch(i){Ue.call(null,i)}F(Te,e)}function Fe(t,e,n){e==xe?t.g.call(t.f,n):t.b&&t.b.call(t.f,n)}we.prototype.then=function(t,e,n){return Pe(this,v(t)?t:null,v(e)?e:null,n)},we.prototype.$goog_Thenable=!0,(e=we.prototype).ma=function(t,e){return(t=Se(t,t,e)).c=!0,Ie(this,t),this},e.o=function(t,e){return Pe(this,null,t,e)},e.cancel=function(t){if(this.a==_e){var e=new qe(t);me((function(){!function t(e,n){if(e.a==_e)if(e.c){var r=e.c;if(r.b){for(var i=0,o=null,a=null,s=r.b;s&&(s.c||(i++,s.a==e&&(o=s),!(o&&1<i)));s=s.next)o||(a=s);o&&(r.a==_e&&1==i?t(r,n):(a?((i=a).next==r.f&&(r.f=i),i.next=i.next.next):Le(r),je(r,o,Ee,n)))}e.c=null}else Me(e,Ee,n)}(this,e)}),this)}},e.Yc=function(t){this.a=_e,Me(this,xe,t)},e.Zc=function(t){this.a=_e,Me(this,Ee,t)},e.ec=function(){for(var t;t=Le(this);)je(this,t,this.a,this.i);this.h=!1};var Ue=pe;function qe(t){D.call(this,t)}function Be(){0!=Ve&&(ze[g(this)]=this),this.wa=this.wa,this.na=this.na}T(qe,D),qe.prototype.name="cancel";var Ve=0,ze={};function We(t){if(!t.wa&&(t.wa=!0,t.Ba(),0!=Ve)){var e=g(t);if(0!=Ve&&t.na&&0<t.na.length)throw Error(t+" did not empty its onDisposeCallbacks queue. This probably means it overrode dispose() or disposeInternal() without calling the superclass' method.");delete ze[e]}}Be.prototype.wa=!1,Be.prototype.Ba=function(){if(this.na)for(;this.na.length;)this.na.shift()()};var He=Object.freeze||function(t){return t},Ye=!Gt||9<=Number(ne),Ge=Gt&&!ie("9"),Ke=function(){if(!l.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});try{l.addEventListener("test",h,e),l.removeEventListener("test",h,e)}catch(n){}return t}();function Xe(t,e){this.type=t,this.b=this.target=e,this.defaultPrevented=!1}function $e(t,e){if(Xe.call(this,t?t.type:""),this.relatedTarget=this.b=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.a=null,t){var n=this.type=t.type,r=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;if(this.target=t.target||t.srcElement,this.b=e,e=t.relatedTarget){if($t){t:{try{Wt(e.nodeName);var i=!0;break t}catch(o){}i=!1}i||(e=null)}}else"mouseover"==n?e=t.fromElement:"mouseout"==n&&(e=t.toElement);this.relatedTarget=e,r?(this.clientX=void 0!==r.clientX?r.clientX:r.pageX,this.clientY=void 0!==r.clientY?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0):(this.clientX=void 0!==t.clientX?t.clientX:t.pageX,this.clientY=void 0!==t.clientY?t.clientY:t.pageY,this.screenX=t.screenX||0,this.screenY=t.screenY||0),this.button=t.button,this.key=t.key||"",this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.pointerId=t.pointerId||0,this.pointerType="string"===typeof t.pointerType?t.pointerType:Ze[t.pointerType]||"",this.a=t,t.defaultPrevented&&this.preventDefault()}}Xe.prototype.preventDefault=function(){this.defaultPrevented=!0},T($e,Xe);var Ze=He({2:"touch",3:"pen",4:"mouse"});$e.prototype.preventDefault=function(){$e.Za.preventDefault.call(this);var t=this.a;if(t.preventDefault)t.preventDefault();else if(t.returnValue=!1,Ge)try{(t.ctrlKey||112<=t.keyCode&&123>=t.keyCode)&&(t.keyCode=-1)}catch(e){}},$e.prototype.f=function(){return this.a};var Qe="closure_listenable_"+(1e6*Math.random()|0),Je=0;function tn(t,e,n,r,i){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!r,this.Ta=i,this.key=++Je,this.ua=this.Na=!1}function en(t){t.ua=!0,t.listener=null,t.proxy=null,t.src=null,t.Ta=null}function nn(t){this.src=t,this.a={},this.b=0}function rn(t,e){var n=e.type;n in t.a&&X(t.a[n],e)&&(en(e),0==t.a[n].length&&(delete t.a[n],t.b--))}function on(t,e,n,r){for(var i=0;i<t.length;++i){var o=t[i];if(!o.ua&&o.listener==e&&o.capture==!!n&&o.Ta==r)return i}return-1}nn.prototype.add=function(t,e,n,r,i){var o=t.toString();(t=this.a[o])||(t=this.a[o]=[],this.b++);var a=on(t,e,r,i);return-1<a?(e=t[a],n||(e.Na=!1)):((e=new tn(e,this.src,o,!!r,i)).Na=n,t.pu
2sh(e)),e};var an="closure_lm_"+(1e6*Math.random()|0),sn={};function un(t,e,n,r,i){if(r&&r.once)cn(t,e,n,r,i);else if(Array.isArray(e))for(var o=0;o<e.length;o++)un(t,e[o],n,r,i);else n=bn(n),t&&t[Qe]?_n(t,e,n,m(r)?!!r.capture:!!r,i):ln(t,e,n,!1,r,i)}function ln(t,e,n,r,i,o){if(!e)throw Error("Invalid event type");var a=m(i)?!!i.capture:!!i,s=gn(t);if(s||(t[an]=s=new nn(t)),!(n=s.add(e,n,r,a,o)).proxy){if(r=function(){var t=mn,e=Ye?function(n){return t.call(e.src,e.listener,n)}:function(n){if(!(n=t.call(e.src,e.listener,n)))return n};return e}(),n.proxy=r,r.src=t,r.listener=n,t.addEventListener)Ke||(i=a),void 0===i&&(i=!1),t.addEventListener(e.toString(),r,i);else if(t.attachEvent)t.attachEvent(dn(e.toString()),r);else{if(!t.addListener||!t.removeListener)throw Error("addEventListener and attachEvent are unavailable.");t.addListener(r)}0}}function cn(t,e,n,r,i){if(Array.isArray(e))for(var o=0;o<e.length;o++)cn(t,e[o],n,r,i);else n=bn(n),t&&t[Qe]?xn(t,e,n,m(r)?!!r.capture:!!r,i):ln(t,e,n,!0,r,i)}function fn(t,e,n,r,i){if(Array.isArray(e))for(var o=0;o<e.length;o++)fn(t,e[o],n,r,i);else r=m(r)?!!r.capture:!!r,n=bn(n),t&&t[Qe]?(t=t.u,(e=String(e).toString())in t.a&&(-1<(n=on(o=t.a[e],n,r,i))&&(en(o[n]),Array.prototype.splice.call(o,n,1),0==o.length&&(delete t.a[e],t.b--)))):t&&(t=gn(t))&&(e=t.a[e.toString()],t=-1,e&&(t=on(e,n,r,i)),(n=-1<t?e[t]:null)&&hn(n))}function hn(t){if("number"!==typeof t&&t&&!t.ua){var e=t.src;if(e&&e[Qe])rn(e.u,t);else{var n=t.type,r=t.proxy;e.removeEventListener?e.removeEventListener(n,r,t.capture):e.detachEvent?e.detachEvent(dn(n),r):e.addListener&&e.removeListener&&e.removeListener(r),(n=gn(e))?(rn(n,t),0==n.b&&(n.src=null,e[an]=null)):en(t)}}}function dn(t){return t in sn?sn[t]:sn[t]="on"+t}function pn(t,e,n,r){var i=!0;if((t=gn(t))&&(e=t.a[e.toString()]))for(e=e.concat(),t=0;t<e.length;t++){var o=e[t];o&&o.capture==n&&!o.ua&&(o=vn(o,r),i=i&&!1!==o)}return i}function vn(t,e){var n=t.listener,r=t.Ta||t.src;return t.Na&&hn(t),n.call(r,e)}function mn(t,e){if(t.ua)return!0;if(!Ye){if(!e)t:{e=["window","event"];for(var n=l,r=0;r<e.length;r++)if(null==(n=n[e[r]])){e=null;break t}e=n}if(e=new $e(r=e,this),n=!0,!(0>r.keyCode||void 0!=r.returnValue)){t:{var i=!1;if(0==r.keyCode)try{r.keyCode=-1;break t}catch(a){i=!0}(i||void 0==r.returnValue)&&(r.returnValue=!0)}for(r=[],i=e.b;i;i=i.parentNode)r.push(i);for(t=t.type,i=r.length-1;0<=i;i--){e.b=r[i];var o=pn(r[i],t,!0,e);n=n&&o}for(i=0;i<r.length;i++)e.b=r[i],o=pn(r[i],t,!1,e),n=n&&o}return n}return vn(t,new $e(e,this))}function gn(t){return(t=t[an])instanceof nn?t:null}var yn="__closure_events_fn_"+(1e9*Math.random()>>>0);function bn(t){return v(t)?t:(t[yn]||(t[yn]=function(e){return t.handleEvent(e)}),t[yn])}function wn(){Be.call(this),this.u=new nn(this),this.Yb=this,this.eb=null}function _n(t,e,n,r,i){t.u.add(String(e),n,!1,r,i)}function xn(t,e,n,r,i){t.u.add(String(e),n,!0,r,i)}function En(t,e,n,r){if(!(e=t.u.a[String(e)]))return!0;e=e.concat();for(var i=!0,o=0;o<e.length;++o){var a=e[o];if(a&&!a.ua&&a.capture==n){var s=a.listener,u=a.Ta||a.src;a.Na&&rn(t.u,a),i=!1!==s.call(u,r)&&i}}return i&&!r.defaultPrevented}function kn(t,e,n){if(v(t))n&&(t=x(t,n));else{if(!t||"function"!=typeof t.handleEvent)throw Error("Invalid listener argument");t=x(t.handleEvent,t)}return 2147483647<Number(e)?-1:l.setTimeout(t,e||0)}function Tn(t){var e=null;return new we((function(n,r){-1==(e=kn((function(){n(void 0)}),t))&&r(Error("Failed to schedule timer."))})).o((function(t){throw l.clearTimeout(e),t}))}function Sn(t){if(t.V&&"function"==typeof t.V)return t.V();if("string"===typeof t)return t.split("");if(p(t)){for(var e=[],n=t.length,r=0;r<n;r++)e.push(t[r]);return e}for(r in e=[],n=0,t)e[n++]=t[r];return e}function On(t){if(t.X&&"function"==typeof t.X)return t.X();if(!t.V||"function"!=typeof t.V){if(p(t)||"string"===typeof t){var e=[];t=t.length;for(var n=0;n<t;n++)e.push(n);return e}for(var r in e=[],n=0,t)e[n++]=r;return e}}function An(t,e){this.b={},this.a=[],this.c=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var r=0;r<n;r+=2)this.set(arguments[r],arguments[r+1])}else if(t)if(t instanceof An)for(n=t.X(),r=0;r<n.length;r++)this.set(n[r],t.get(n[r]));else for(r in t)this.set(r,t[r])}function Cn(t){if(t.c!=t.a.length){for(var e=0,n=0;e<t.a.length;){var r=t.a[e];Nn(t.b,r)&&(t.a[n++]=r),e++}t.a.length=n}if(t.c!=t.a.length){var i={};for(n=e=0;e<t.a.length;)Nn(i,r=t.a[e])||(t.a[n++]=r,i[r]=1),e++;t.a.length=n}}function Nn(t,e){return Object.prototype.hasOwnProperty.call(t,e)}T(wn,Be),wn.prototype[Qe]=!0,wn.prototype.addEventListener=function(t,e,n,r){un(this,t,e,n,r)},wn.prototype.removeEventListener=function(t,e,n,r){fn(this,t,e,n,r)},wn.prototype.dispatchEvent=function(t){var e,n=this.eb;if(n)for(e=[];n;n=n.eb)e.push(n);n=this.Yb;var r=t.type||t;if("string"===typeof t)t=new Xe(t,n);else if(t instanceof Xe)t.target=t.target||n;else{var i=t;gt(t=new Xe(r,n),i)}if(i=!0,e)for(var o=e.length-1;0<=o;o--){var a=t.b=e[o];i=En(a,r,!0,t)&&i}if(i=En(a=t.b=n,r,!0,t)&&i,i=En(a,r,!1,t)&&i,e)for(o=0;o<e.length;o++)i=En(a=t.b=e[o],r,!1,t)&&i;return i},wn.prototype.Ba=function(){if(wn.Za.Ba.call(this),this.u){var t,e=this.u;for(t in e.a){for(var n=e.a[t],r=0;r<n.length;r++)en(n[r]);delete e.a[t],e.b--}}this.eb=null},(e=An.prototype).V=function(){Cn(this);for(var t=[],e=0;e<this.a.length;e++)t.push(this.b[this.a[e]]);return t},e.X=function(){return Cn(this),this.a.concat()},e.clear=function(){this.b={},this.c=this.a.length=0},e.get=function(t,e){return Nn(this.b,t)?this.b[t]:e},e.set=function(t,e){Nn(this.b,t)||(this.c++,this.a.push(t)),this.b[t]=e},e.forEach=function(t,e){for(var n=this.X(),r=0;r<n.length;r++){var i=n[r],o=this.get(i);t.call(e,o,i,this)}};var In=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/\\#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function Pn(t,e){var n;this.b=this.i=this.f="",this.l=null,this.g=this.c="",this.h=!1,t instanceof Pn?(this.h=void 0!==e?e:t.h,Mn(this,t.f),this.i=t.i,this.b=t.b,Dn(this,t.l),this.c=t.c,Rn(this,tr(t.a)),this.g=t.g):t&&(n=String(t).match(In))?(this.h=!!e,Mn(this,n[1]||"",!0),this.i=qn(n[2]||""),this.b=qn(n[3]||"",!0),Dn(this,n[4]),this.c=qn(n[5]||"",!0),Rn(this,n[6]||"",!0),this.g=qn(n[7]||"")):(this.h=!!e,this.a=new Kn(null,this.h))}
2function Mn(t,e,n){t.f=n?qn(e,!0):e,t.f&&(t.f=t.f.replace(/:$/,""))}function Dn(t,e){if(e){if(e=Number(e),isNaN(e)||0>e)throw Error("Bad port number "+e);t.l=e}else t.l=null}function Rn(t,e,n){e instanceof Kn?(t.a=e,function(t,e){e&&!t.f&&(Xn(t),t.c=null,t.a.forEach((function(t,e){var n=e.toLowerCase();e!=n&&(Zn(this,e),Jn(this,n,t))}),t)),t.f=e}(t.a,t.h)):(n||(e=Bn(e,Yn)),t.a=new Kn(e,t.h))}function Ln(t,e,n){t.a.set(e,n)}function jn(t,e){return t.a.get(e)}function Fn(t){return t instanceof Pn?new Pn(t):new Pn(t,void 0)}function Un(t,e){var n=new Pn(null,void 0);return Mn(n,"https"),t&&(n.b=t),e&&(n.c=e),n}function qn(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function Bn(t,e,n){return"string"===typeof t?(t=encodeURI(t).replace(e,Vn),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function Vn(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}Pn.prototype.toString=function(){var t=[],e=this.f;e&&t.push(Bn(e,zn,!0),":");var n=this.b;return(n||"file"==e)&&(t.push("//"),(e=this.i)&&t.push(Bn(e,zn,!0),"@"),t.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.l)&&t.push(":",String(n))),(n=this.c)&&(this.b&&"/"!=n.charAt(0)&&t.push("/"),t.push(Bn(n,"/"==n.charAt(0)?Hn:Wn,!0))),(n=this.a.toString())&&t.push("?",n),(n=this.g)&&t.push("#",Bn(n,Gn)),t.join("")},Pn.prototype.resolve=function(t){var e=new Pn(this),n=!!t.f;n?Mn(e,t.f):n=!!t.i,n?e.i=t.i:n=!!t.b,n?e.b=t.b:n=null!=t.l;var r=t.c;if(n)Dn(e,t.l);else if(n=!!t.c){if("/"!=r.charAt(0))if(this.b&&!this.c)r="/"+r;else{var i=e.c.lastIndexOf("/");-1!=i&&(r=e.c.substr(0,i+1)+r)}if(".."==(i=r)||"."==i)r="";else if(ut(i,"./")||ut(i,"/.")){r=0==i.lastIndexOf("/",0),i=i.split("/");for(var o=[],a=0;a<i.length;){var s=i[a++];"."==s?r&&a==i.length&&o.push(""):".."==s?((1<o.length||1==o.length&&""!=o[0])&&o.pop(),r&&a==i.length&&o.push("")):(o.push(s),r=!0)}r=o.join("/")}else r=i}return n?e.c=r:n=""!==t.a.toString(),n?Rn(e,tr(t.a)):n=!!t.g,n&&(e.g=t.g),e};var zn=/[#\/\?@]/g,Wn=/[#\?:]/g,Hn=/[#\?]/g,Yn=/[#\?@]/g,Gn=/#/g;function Kn(t,e){this.b=this.a=null,this.c=t||null,this.f=!!e}function Xn(t){t.a||(t.a=new An,t.b=0,t.c&&function(t,e){if(t){t=t.split("&");for(var n=0;n<t.length;n++){var r=t[n].indexOf("="),i=null;if(0<=r){var o=t[n].substring(0,r);i=t[n].substring(r+1)}else o=t[n];e(o,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}(t.c,(function(e,n){t.add(decodeURIComponent(e.replace(/\+/g," ")),n)})))}function $n(t){var e=On(t);if("undefined"==typeof e)throw Error("Keys are undefined");var n=new Kn(null,void 0);t=Sn(t);for(var r=0;r<e.length;r++){var i=e[r],o=t[r];Array.isArray(o)?Jn(n,i,o):n.add(i,o)}return n}function Zn(t,e){Xn(t),e=er(t,e),Nn(t.a.b,e)&&(t.c=null,t.b-=t.a.get(e).length,Nn((t=t.a).b,e)&&(delete t.b[e],t.c--,t.a.length>2*t.c&&Cn(t)))}function Qn(t,e){return Xn(t),e=er(t,e),Nn(t.a.b,e)}function Jn(t,e,n){Zn(t,e),0<n.length&&(t.c=null,t.a.set(er(t,e),Q(n)),t.b+=n.length)}function tr(t){var e=new Kn;return e.c=t.c,t.a&&(e.a=new An(t.a),e.b=t.b),e}function er(t,e){return e=String(e),t.f&&(e=e.toLowerCase()),e}function nr(t){var e=[];return function t(e,n,r){if(null==n)r.push("null");else{if("object"==typeof n){if(Array.isArray(n)){var i=n;n=i.length,r.push("[");for(var o="",a=0;a<n;a++)r.push(o),t(e,i[a],r),o=",";return void r.push("]")}if(!(n instanceof String||n instanceof Number||n instanceof Boolean)){for(i in r.push("{"),o="",n)Object.prototype.hasOwnProperty.call(n,i)&&("function"!=typeof(a=n[i])&&(r.push(o),ar(i,r),r.push(":"),t(e,a,r),o=","));return void r.push("}")}n=n.valueOf()}switch(typeof n){case"string":ar(n,r);break;case"number":r.push(isFinite(n)&&!isNaN(n)?String(n):"null");break;case"boolean":r.push(String(n));break;case"function":r.push("null");break;default:throw Error("Unknown type: "+typeof n)}}}(new rr,t,e),e.join("")}function rr(){}(e=Kn.prototype).add=function(t,e){Xn(this),this.c=null,t=er(this,t);var n=this.a.get(t);return n||this.a.set(t,n=[]),n.push(e),this.b+=1,this},e.clear=function(){this.a=this.c=null,this.b=0},e.forEach=function(t,e){Xn(this),this.a.forEach((function(n,r){W(n,(function(n){t.call(e,n,r,this)}),this)}),this)},e.X=function(){Xn(this);for(var t=this.a.V(),e=this.a.X(),n=[],r=0;r<e.length;r++)for(var i=t[r],o=0;o<i.length;o++)n.push(e[r]);return n},e.V=function(t){Xn(this);var e=[];
2if("string"===typeof t)Qn(this,t)&&(e=Z(e,this.a.get(er(this,t))));else{t=this.a.V();for(var n=0;n<t.length;n++)e=Z(e,t[n])}return e},e.set=function(t,e){return Xn(this),this.c=null,Qn(this,t=er(this,t))&&(this.b-=this.a.get(t).length),this.a.set(t,[e]),this.b+=1,this},e.get=function(t,e){return t&&0<(t=this.V(t)).length?String(t[0]):e},e.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var t=[],e=this.a.X(),n=0;n<e.length;n++){var r=e[n],i=encodeURIComponent(String(r));r=this.V(r);for(var o=0;o<r.length;o++){var a=i;""!==r[o]&&(a+="="+encodeURIComponent(String(r[o]))),t.push(a)}}return this.c=t.join("&")};var ir={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},or=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;function ar(t,e){e.push('"',t.replace(or,(function(t){var e=ir[t];return e||(e="\\u"+(65536|t.charCodeAt(0)).toString(16).substr(1),ir[t]=e),e})),'"')}function sr(){var t=Sr();return Gt&&!!ne&&11==ne||/Edge\/\d+/.test(t)}function ur(){return l.window&&l.window.location.href||self&&self.location&&self.location.href||""}function lr(t,e){e=e||l.window;var n="about:blank";t&&(n=Pt(Dt(t))),e.location.href=n}function cr(t){return!!((t=(t||Sr()).toLowerCase()).match(/android/)||t.match(/webos/)||t.match(/iphone|ipad|ipod/)||t.match(/blackberry/)||t.match(/windows phone/)||t.match(/iemobile/))}function fr(t){t=t||l.window;try{t.close()}catch(e){}}function hr(t,e,n){var r=Math.floor(1e9*Math.random()).toString();e=e||500,n=n||600;var i=(window.screen.availHeight-n)/2,o=(window.screen.availWidth-e)/2;for(a in e={width:e,height:n,top:0<i?i:0,left:0<o?o:0,location:!0,resizable:!0,statusbar:!0,toolbar:!1},n=Sr().toLowerCase(),r&&(e.target=r,ut(n,"crios/")&&(e.target="_blank")),Er(Sr())==_r&&(t=t||"http://localhost",e.scrollbars=!0),n=t||"",(t=e)||(t={}),r=window,e=n instanceof It?n:Dt("undefined"!=typeof n.href?n.href:String(n)),n=t.target||n.target,i=[],t)switch(a){case"width":case"height":case"top":case"left":i.push(a+"="+t[a]);break;case"target":case"noopener":case"noreferrer":break;default:i.push(a+"="+(t[a]?1:0))}var a=i.join(",");if((ht("iPhone")&&!ht("iPod")&&!ht("iPad")||ht("iPad")||ht("iPod"))&&r.navigator&&r.navigator.standalone&&n&&"_self"!=n?(yt(a=he(document,"A"),"HTMLAnchorElement"),e instanceof It||e instanceof It||(e="object"==typeof e&&e.ra?e.qa():String(e),Mt.test(e)||(e="about:invalid#zClosurez"),e=new It(Lt,e)),a.href=Pt(e),a.setAttribute("target",n),t.noreferrer&&a.setAttribute("rel","noreferrer"),(t=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,r,1),a.dispatchEvent(t),a={}):t.noreferrer?(a=r.open("",n,a),t=Pt(e),a&&(Xt&&ut(t,";")&&(t="'"+t.replace(/'/g,"%27")+"'"),a.opener=null,t=qt('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+zt(t)+'">'),r=a.document)&&(r.write(Ft(t)),r.close())):(a=r.open(Pt(e),n,a))&&t.noopener&&(a.opener=null),a)try{a.focus()}catch(s){}return a}var dr=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,pr=/^[^@]+@[^@]+$/;function vr(){var t=null;return new we((function(e){"complete"==l.document.readyState?e():(t=function(){e()},cn(window,"load",t))})).o((function(e){throw fn(window,"load",t),e}))}function mr(t){return t=t||Sr(),!("file:"!==Ir()&&"ionic:"!==Ir()||!t.toLowerCase().match(/iphone|ipad|ipod|android/))}function gr(){var t=l.window;try{return!(!t||t==t.top)}catch(e){return!1}}function yr(){return"undefined"!==typeof l.WorkerGlobalScope&&"function"===typeof l.importScripts}function br(){return r.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":r.INTERNAL.hasOwnProperty("node")?"Node":yr()?"Worker":"Browser"}function wr(){var t=br();return"ReactNative"===t||"Node"===t}var _r="Firefox",xr="Chrome";function Er(t){var e=t.toLowerCase();return ut(e,"opera/")||ut(e,"opr/")||ut(e,"opios/")?"Opera":ut(e,"iemobile")?"IEMobile":ut(e,"msie")||ut(e,"trident/")?"IE":ut(e,"edge/")?"Edge":ut(e,"firefox/")?_r:ut(e,"silk/")?"Silk":ut(e,"blackberry")?"Blackberry":ut(e,"webos")?"Webos":!ut(e,"safari/")||ut(e,"chrome/")||ut(e,"crios/")||ut(e,"android")?!ut(e,"chrome/")&&!ut(e,"crios/")||ut(e,"edge/")?ut(e,"android")?"Android":(t=t.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/))&&2==t.length?t[1]:"Other":xr:"Safari"}var kr={jd:"FirebaseCore-web",ld:"FirebaseUI-web"};function Tr(t,e){e=e||[];var n,r=[],i={};for(n in kr)i[kr[n]]=!0;for(n=0;n<e.length;n++)"undefined"!==typeof i[e[n]]&&(delete i[e[n]],r.push(e[n]));return r.sort(),(e=r).length||(e=["FirebaseCore-web"]),"Browser"===(r=br())?r=Er(i=Sr()):"Worker"===r&&(r=Er(i=Sr())+"-"+r),r+"/JsCore/"+t+"/"+e.join(",")}function Sr(){return l.navigator&&l.navigator.userAgent||""}function Or(t,e){t=t.split("."),e=e||l;for(var n=0;n<t.length&&"object"==typeof e&&null!=e;n++)e=e[t[n]];return n!=t.length&&(e=void 0),e}function Ar(){try{var t=l.localStorage,e=Lr();if(t)return t.setItem(e,"1"),t.removeItem(e),!sr()||!!l.indexedDB}catch(n){return yr()&&!!l.indexedDB}return!1}function Cr(){return(Nr()||"chrome-extension:"===Ir()||mr())&&!wr()&&Ar()&&!yr()}function Nr(){return"http:"===Ir()||"https:"===Ir()}function Ir(){return l.location&&l.location.protocol||null}function Pr(t){return!cr(t=t||Sr())&&Er(t)!=_r}function Mr(t){return"undefined"===typeof t?null:nr(t)}function Dr(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&null!==t[e]&&void 0!==t[e]&&(n[e]=t[e]);return n}function Rr(t){if(null!==t)return JSON.parse(t)}function Lr(t){return t||Math.floor(1e9*Math.random()).toString()}function jr(t){return"Safari"!=Er(t=t||Sr())&&!t.toLowerCase().match(/iphone|ipad|ipod/)}function Fr(){var t=l.___jsl;if(t&&t.H)for(var e in t.H)if(t.H[e].r=t.H[e].r||[],t.H[e].L=t.H[e].L||[],t.H[e].r=t.H[e].L.concat(),t.CP)for(var n=0;n<t.CP.length;n++)t.CP[n]=null}function Ur(t,e){if(t>
2e)throw Error("Short delay should be less than long delay!");this.a=t,this.c=e,t=Sr(),e=br(),this.b=cr(t)||"ReactNative"===e}function qr(){var t=l.document;return!t||"undefined"===typeof t.visibilityState||"visible"==t.visibilityState}function Br(t){try{var e=new Date(parseInt(t,10));if(!isNaN(e.getTime())&&!/[^0-9]/.test(t))return e.toUTCString()}catch(n){}return null}function Vr(){return!(!Or("fireauth.oauthhelper",l)&&!Or("fireauth.iframe",l))}Ur.prototype.get=function(){var t=l.navigator;return!t||"boolean"!==typeof t.onLine||!Nr()&&"chrome-extension:"!==Ir()&&"undefined"===typeof t.connection||t.onLine?this.b?this.c:this.a:Math.min(5e3,this.a)};var zr,Wr={};function Hr(t){Wr[t]||(Wr[t]=!0,"undefined"!==typeof console&&"function"===typeof console.warn&&console.warn(t))}try{var Yr={};Object.defineProperty(Yr,"abcd",{configurable:!0,enumerable:!0,value:1}),Object.defineProperty(Yr,"abcd",{configurable:!0,enumerable:!0,value:2}),zr=2==Yr.abcd}catch(aa){zr=!1}function Gr(t,e,n){zr?Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:n}):t[e]=n}function Kr(t,e){if(e)for(var n in e)e.hasOwnProperty(n)&&Gr(t,n,e[n])}function Xr(t){var e={};return Kr(e,t),e}function $r(t){var e=t;if("object"==typeof t&&null!=t)for(var n in e="length"in t?[]:{},t)Gr(e,n,$r(t[n]));return e}function Zr(t){var e=t&&(t[ni]?"phone":null);if(!(e&&t&&t[ei]))throw new S("internal-error","Internal assert: invalid MultiFactorInfo object");Gr(this,"uid",t[ei]),Gr(this,"displayName",t[Jr]||null);var n=null;t[ti]&&(n=new Date(t[ti]).toUTCString()),Gr(this,"enrollmentTime",n),Gr(this,"factorId",e)}function Qr(t){try{var e=new ri(t)}catch(n){e=null}return e}Zr.prototype.v=function(){return{uid:this.uid,displayName:this.displayName,factorId:this.factorId,enrollmentTime:this.enrollmentTime}};var Jr="displayName",ti="enrolledAt",ei="mfaEnrollmentId",ni="phoneInfo";function ri(t){Zr.call(this,t),Gr(this,"phoneNumber",t[ni])}function ii(t){var e={},n=t[ui],r=t[ci],i=t[fi];if(t=Qr(t[li]),!i||i!=ai&&i!=si&&!n||i==si&&!r||i==oi&&!t)throw Error("Invalid checkActionCode response!");i==si?(e[di]=n||null,e[vi]=n||null,e[hi]=r):(e[di]=r||null,e[vi]=r||null,e[hi]=n||null),e[pi]=t||null,Gr(this,gi,i),Gr(this,mi,$r(e))}T(ri,Zr),ri.prototype.v=function(){var t=ri.Za.v.call(this);return t.phoneNumber=this.phoneNumber,t};var oi="REVERT_SECOND_FACTOR_ADDITION",ai="EMAIL_SIGNIN",si="VERIFY_AND_CHANGE_EMAIL",ui="email",li="mfaInfo",ci="newEmail",fi="requestType",hi="email",di="fromEmail",pi="multiFactorInfo",vi="previousEmail",mi="data",gi="operation";function yi(t){var e=jn(t=Fn(t),bi)||null,n=jn(t,wi)||null,r=jn(t,Ei)||null;if(r=r&&Ti[r]||null,!e||!n||!r)throw new S("argument-error",bi+", "+wi+"and "+Ei+" are required in a valid action code URL.");Kr(this,{apiKey:e,operation:r,code:n,continueUrl:jn(t,_i)||null,languageCode:jn(t,xi)||null,tenantId:jn(t,ki)||null})}var bi="apiKey",wi="oobCode",_i="continueUrl",xi="languageCode",Ei="mode",ki="tenantId",Ti={recoverEmail:"RECOVER_EMAIL",resetPassword:"PASSWORD_RESET",revertSecondFactorAddition:oi,signIn:ai,verifyAndChangeEmail:si,verifyEmail:"VERIFY_EMAIL"};function Si(t){try{return new yi(t)}catch(e){return null}}function Oi(t){var e=t[Pi];if("undefined"===typeof e)throw new S("missing-continue-uri");if("string"!==typeof e||"string"===typeof e&&!e.length)throw new S("invalid-continue-uri");this.h=e,this.b=this.a=null,this.g=!1;var n=t[Ai];if(n&&"object"===typeof n){e=n[Ri];var r=n[Mi];if(n=n[Di],"string"===typeof e&&e.length){if(this.a=e,"undefined"!==typeof r&&"boolean"!==typeof r)throw new S("argument-error",Mi+" property must be a boolean when specified.");if(this.g=!!r,"undefined"!==typeof n&&("string"!==typeof n||"string"===typeof n&&!n.length))throw new S("argument-error",Di+" property must be a non empty string when specified.");this.b=n||null}else{if("undefined"!==typeof e)throw new S("argument-error",Ri+" property must be a non empty string when specified.");if("undefined"!==typeof r||"undefined"!==typeof n)throw new S("missing-android-pkg-name")}}else if("undefined"!==typeof n)throw new S("argument-error",Ai+" property must be a non null object when specified.");if(this.f=null,(e=t[Ii])&&"object"===typeof e){if("string"===typeof(e=e[Li])&&e.length)this.f=e;else if("undefined"!==typeof e)throw new S("argument-error",Li+" property must be a non empty string when specified.")}else if("undefined"!==typeof e)throw new S("argument-error",Ii+" property must be a non null object when specified.");if("undefined"!==typeof(e=t[Ni])&&"boolean"!==typeof e)throw new S("argument-error",Ni+" property must be a boolean when specified.");
2if(this.c=!!e,"undefined"!==typeof(t=t[Ci])&&("string"!==typeof t||"string"===typeof t&&!t.length))throw new S("argument-error",Ci+" property must be a non empty string when specified.");this.i=t||null}var Ai="android",Ci="dynamicLinkDomain",Ni="handleCodeInApp",Ii="iOS",Pi="url",Mi="installApp",Di="minimumVersion",Ri="packageName",Li="bundleId";function ji(t){var e={};for(var n in e.continueUrl=t.h,e.canHandleCodeInApp=t.c,(e.androidPackageName=t.a)&&(e.androidMinimumVersion=t.b,e.androidInstallApp=t.g),e.iOSBundleId=t.f,e.dynamicLinkDomain=t.i,e)null===e[n]&&delete e[n];return e}var Fi=null;function Ui(t){var e="";return function(t,e){function n(e){for(;r<t.length;){var n=t.charAt(r++),i=Fi[n];if(null!=i)return i;if(!/^[\s\xa0]*$/.test(n))throw Error("Unknown base64 encoding at char: "+n)}return e}!function(){if(!Fi){Fi={};for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"],n=0;5>n;n++)for(var r=t.concat(e[n].split("")),i=0;i<r.length;i++){var o=r[i];void 0===Fi[o]&&(Fi[o]=i)}}}();for(var r=0;;){var i=n(-1),o=n(0),a=n(64),s=n(64);if(64===s&&-1===i)break;e(i<<2|o>>4),64!=a&&(e(o<<4&240|a>>2),64!=s&&e(a<<6&192|s))}}(t,(function(t){e+=String.fromCharCode(t)})),e}function qi(t){var e=Vi(t);if(!(e&&e.sub&&e.iss&&e.aud&&e.exp))throw Error("Invalid JWT");this.g=t,this.c=e.exp,this.h=e.sub,k(),this.a=e.provider_id||e.firebase&&e.firebase.sign_in_provider||null,this.f=e.firebase&&e.firebase.tenant||null,this.b=!!e.is_anonymous||"anonymous"==this.a}function Bi(t){try{return new qi(t)}catch(e){return null}}function Vi(t){if(!t)return null;if(3!=(t=t.split(".")).length)return null;for(var e=(4-(t=t[1]).length%4)%4,n=0;n<e;n++)t+=".";try{return JSON.parse(Ui(t))}catch(r){}return null}qi.prototype.S=function(){return this.f},qi.prototype.i=function(){return this.b},qi.prototype.toString=function(){return this.g};var zi="oauth_consumer_key oauth_nonce oauth_signature oauth_signature_method oauth_timestamp oauth_token oauth_version".split(" "),Wi=["client_id","response_type","scope","redirect_uri","state"],Hi={kd:{Ha:"locale",ta:700,sa:600,ea:"facebook.com",Va:Wi},md:{Ha:null,ta:500,sa:750,ea:"github.com",Va:Wi},nd:{Ha:"hl",ta:515,sa:680,ea:"google.com",Va:Wi},td:{Ha:"lang",ta:485,sa:705,ea:"twitter.com",Va:zi},gd:{Ha:"locale",ta:640,sa:600,ea:"apple.com",Va:[]}};function Yi(t){for(var e in Hi)if(Hi[e].ea==t)return Hi[e];return null}function Gi(t){var e={};e["facebook.com"]=Qi,e["google.com"]=to,e["github.com"]=Ji,e["twitter.com"]=eo;var n=t&&t[Xi];try{if(n)return e[n]?new e[n](t):new Zi(t);if("undefined"!==typeof t[Ki])return new $i(t)}catch(r){}return null}var Ki="idToken",Xi="providerId";function $i(t){var e=t[Xi];if(!e&&t[Ki]){var n=Bi(t[Ki]);n&&n.a&&(e=n.a)}if(!e)throw Error("Invalid additional user info!");"anonymous"!=e&&"custom"!=e||(e=null),n=!1,"undefined"!==typeof t.isNewUser?n=!!t.isNewUser:"identitytoolkit#SignupNewUserResponse"===t.kind&&(n=!0),Gr(this,"providerId",e),Gr(this,"isNewUser",n)}function Zi(t){$i.call(this,t),Gr(this,"profile",$r((t=Rr(t.rawUserInfo||"{}"))||{}))}function Qi(t){if(Zi.call(this,t),"facebook.com"!=this.providerId)throw Error("Invalid provider ID!")}function Ji(t){if(Zi.call(this,t),"github.com"!=this.providerId)throw Error("Invalid provider ID!");Gr(this,"username",this.profile&&this.profile.login||null)}function to(t){if(Zi.call(this,t),"google.com"!=this.providerId)throw Error("Invalid provider ID!")}function eo(t){if(Zi.call(this,t),"twitter.com"!=this.providerId)throw Error("Invalid provider ID!");Gr(this,"username",t.screenName||null)}function no(t){var e=Fn(t),n=jn(e,"link"),r=jn(Fn(n),"link");return e=jn(e,"deep_link_id"),jn(Fn(e),"link")||e||r||n||t}function ro(t,e){if(!t&&!e)throw new S("internal-error","Internal assert: no raw session string available");if(t&&e)throw new S("internal-error","Internal assert: unable to determine the session type");this.a=t||null,this.b=e||null,this.type=this.a?io:oo}T(Zi,$i),T(Qi,Zi),T(Ji,Zi),T(to,Zi),T(eo,Zi);var io="enroll",oo="signin";function ao(){}function so(t,e){return t.then((function(t){if(t[$a]){var n=Bi(t[$a]);if(!n||e!=n.h)throw new S("user-mismatch");return t}throw new S("user-mismatch")})).o((function(t){throw t&&t.code&&t.code==C+"user-not-found"?new S("user-mismatch"):t}))}function uo(t,e){if(!e)throw new S("internal-error","failed to construct a credential");this.a=e,Gr(this,"providerId",t),Gr(this,"signInMethod",t)}function lo(t){return{pendingToken:t.a,requestUri:"http://localhost"}}function co(t){if(t&&t.providerId&&t.signInMethod&&0==t.providerId.indexOf("saml.")&&t.pendingToken)try{return new uo(t.providerId,t.pendingToken)}catch(e){}return null}function fo(t,e,n){if(this.a=null,e.idToken||e.accessToken)e.idToken&&Gr(this,"idToken",e.idToken),e.accessToken&&Gr(this,"accessToken",e.accessToken),e.nonce&&!e.pendingToken&&Gr(this,"nonce",e.nonce),e.pendingToken&&
2(this.a=e.pendingToken);else{if(!e.oauthToken||!e.oauthTokenSecret)throw new S("internal-error","failed to construct a credential");Gr(this,"accessToken",e.oauthToken),Gr(this,"secret",e.oauthTokenSecret)}Gr(this,"providerId",t),Gr(this,"signInMethod",n)}function ho(t){var e={};return t.idToken&&(e.id_token=t.idToken),t.accessToken&&(e.access_token=t.accessToken),t.secret&&(e.oauth_token_secret=t.secret),e.providerId=t.providerId,t.nonce&&!t.a&&(e.nonce=t.nonce),e={postBody:$n(e).toString(),requestUri:"http://localhost"},t.a&&(delete e.postBody,e.pendingToken=t.a),e}function po(t){if(t&&t.providerId&&t.signInMethod){var e={idToken:t.oauthIdToken,accessToken:t.oauthTokenSecret?null:t.oauthAccessToken,oauthTokenSecret:t.oauthTokenSecret,oauthToken:t.oauthTokenSecret&&t.oauthAccessToken,nonce:t.nonce,pendingToken:t.pendingToken};try{return new fo(t.providerId,e,t.signInMethod)}catch(n){}}return null}function vo(t,e){this.Oc=e||[],Kr(this,{providerId:t,isOAuthProvider:!0}),this.Fb={},this.lb=(Yi(t)||{}).Ha||null,this.kb=null}function mo(t){if("string"!==typeof t||0!=t.indexOf("saml."))throw new S("argument-error",'SAML provider IDs must be prefixed with "saml."');vo.call(this,t,[])}function go(t){vo.call(this,t,Wi),this.a=[]}function yo(){go.call(this,"facebook.com")}function bo(t){if(!t)throw new S("argument-error","credential failed: expected 1 argument (the OAuth access token).");var e=t;return m(t)&&(e=t.accessToken),(new yo).credential({accessToken:e})}function wo(){go.call(this,"github.com")}function _o(t){if(!t)throw new S("argument-error","credential failed: expected 1 argument (the OAuth access token).");var e=t;return m(t)&&(e=t.accessToken),(new wo).credential({accessToken:e})}function xo(){go.call(this,"google.com"),this.Aa("profile")}function Eo(t,e){var n=t;return m(t)&&(n=t.idToken,e=t.accessToken),(new xo).credential({idToken:n,accessToken:e})}function ko(){vo.call(this,"twitter.com",zi)}function To(t,e){var n=t;if(m(n)||(n={oauthToken:t,oauthTokenSecret:e}),!n.oauthToken||!n.oauthTokenSecret)throw new S("argument-error","credential failed: expected 2 arguments (the OAuth access token and secret).");return new fo("twitter.com",n,"twitter.com")}function So(t,e,n){this.a=t,this.f=e,Gr(this,"providerId","password"),Gr(this,"signInMethod",n===Ao.EMAIL_LINK_SIGN_IN_METHOD?Ao.EMAIL_LINK_SIGN_IN_METHOD:Ao.EMAIL_PASSWORD_SIGN_IN_METHOD)}function Oo(t){return t&&t.email&&t.password?new So(t.email,t.password,t.signInMethod):null}function Ao(){Kr(this,{providerId:"password",isOAuthProvider:!1})}function Co(t,e){if(!(e=No(e)))throw new S("argument-error","Invalid email link!");return new So(t,e.code,Ao.EMAIL_LINK_SIGN_IN_METHOD)}function No(t){return(t=Si(t=no(t)))&&t.operation===ai?t:null}function Io(t){if(!(t.bb&&t.ab||t.Ja&&t.da))throw new S("internal-error");this.a=t,Gr(this,"providerId","phone"),this.ea="phone",Gr(this,"signInMethod","phone")}function Po(t){if(t&&"phone"===t.providerId&&(t.verificationId&&t.verificationCode||t.temporaryProof&&t.phoneNumber)){var e={};return W(["verificationId","verificationCode","temporaryProof","phoneNumber"],(function(n){t[n]&&(e[n]=t[n])})),new Io(e)}return null}function Mo(t){return t.a.Ja&&t.a.da?{temporaryProof:t.a.Ja,phoneNumber:t.a.da}:{sessionInfo:t.a.bb,code:t.a.ab}}function Do(t){try{this.a=t||r.auth()}catch(e){throw new S("argument-error","Either an instance of firebase.auth.Auth must be passed as an argument to the firebase.auth.PhoneAuthProvider constructor, or the default firebase App instance must be initialized via firebase.initializeApp().")}Kr(this,{providerId:"phone",isOAuthProvider:!1})}function Ro(t,e){if(!t)throw new S("missing-verification-id");if(!e)throw new S("missing-verification-code");return new Io({bb:t,ab:e})}function Lo(t){if(t.temporaryProof&&t.phoneNumber)return new Io({Ja:t.temporaryProof,da:t.phoneNumber});var e=t&&t.providerId;if(!e||"password"===e)return null;var n=t&&t.oauthAccessToken,r=t&&t.oauthTokenSecret,i=t&&t.nonce,o=t&&t.oauthIdToken,a=t&&t.pendingToken;try{switch(e){case"google.com":return Eo(o,n);case"facebook.com":return bo(n);case"github.com":return _o(n);case"twitter.com":return To(n,r);default:return n||r||o||a?a?0==e.indexOf("saml.")?new uo(e,a):new fo(e,{pendingToken:a,idToken:t.oauthIdToken,accessToken:t.oauthAccessToken},e):new go(e).credential({idToken:o,accessToken:n,rawNonce:i}):null}}catch(s){return null}}function jo(t){if(!t.isOAuthProvider)throw new S("invalid-oauth-provider")}function Fo(t,e,n,r,i,o,a){if(this.c=t,this.b=e||null,this.g=n||null,this.f=r||null,this.i=o||null,this.h=a||null,this.a=i||null,!this.g&&!this.a)throw new S("invalid-auth-event");
2if(this.g&&this.a)throw new S("invalid-auth-event");if(this.g&&!this.f)throw new S("invalid-auth-event")}function Uo(t){return(t=t||{}).type?new Fo(t.type,t.eventId,t.urlResponse,t.sessionId,t.error&&O(t.error),t.postBody,t.tenantId):null}function qo(){this.b=null,this.a=[]}ro.prototype.Fa=function(){return this.a?Oe(this.a):Oe(this.b)},ro.prototype.v=function(){return this.type==io?{multiFactorSession:{idToken:this.a}}:{multiFactorSession:{pendingCredential:this.b}}},ao.prototype.ia=function(){},ao.prototype.b=function(){},ao.prototype.c=function(){},ao.prototype.v=function(){},uo.prototype.ia=function(t){return ms(t,lo(this))},uo.prototype.b=function(t,e){var n=lo(this);return n.idToken=e,gs(t,n)},uo.prototype.c=function(t,e){return so(ys(t,lo(this)),e)},uo.prototype.v=function(){return{providerId:this.providerId,signInMethod:this.signInMethod,pendingToken:this.a}},fo.prototype.ia=function(t){return ms(t,ho(this))},fo.prototype.b=function(t,e){var n=ho(this);return n.idToken=e,gs(t,n)},fo.prototype.c=function(t,e){return so(ys(t,ho(this)),e)},fo.prototype.v=function(){var t={providerId:this.providerId,sign
2InMethod:this.signInMethod};return this.idToken&&(t.oauthIdToken=this.idToken),this.accessToken&&(t.oauthAccessToken=this.accessToken),this.secret&&(t.oauthTokenSecret=this.secret),this.nonce&&(t.nonce=this.nonce),this.a&&(t.pendingToken=this.a),t},vo.prototype.Ia=function(t){return this.Fb=vt(t),this},T(mo,vo),T(go,vo),go.prototype.Aa=function(t){return K(this.a,t)||this.a.push(t),this},go.prototype.Nb=function(){return Q(this.a)},go.prototype.credential=function(t,e){var n;if(!(n=m(t)?{idToken:t.idToken||null,accessToken:t.accessToken||null,nonce:t.rawNonce||null}:{idToken:t||null,accessToken:e||null}).idToken&&!n.accessToken)throw new S("argument-error","credential failed: must provide the ID token and/or the access token.");return new fo(this.providerId,n,this.providerId)},T(yo,go),Gr(yo,"PROVIDER_ID","facebook.com"),Gr(yo,"FACEBOOK_SIGN_IN_METHOD","facebook.com"),T(wo,go),Gr(wo,"PROVIDER_ID","github.com"),Gr(wo,"GITHUB_SIGN_IN_METHOD","github.com"),T(xo,go),Gr(xo,"PROVIDER_ID","google.com"),Gr(xo,"GOOGLE_SIGN_IN_METHOD","google.com"),T(ko,vo),Gr(ko,"PROVIDER_ID","twitter.com"),Gr(ko,"TWITTER_SIGN_IN_METHOD","twitter.com"),So.prototype.ia=function(t){return this.signInMethod==Ao.EMAIL_LINK_SIGN_IN_METHOD?Js(t,Ss,{email:this.a,oobCode:this.f}):Js(t,Ks,{email:this.a,password:this.f})},So.prototype.b=function(t,e){return this.signInMethod==Ao.EMAIL_LINK_SIGN_IN_METHOD?Js(t,Os,{idToken:e,email:this.a,oobCode:this.f}):Js(t,qs,{idToken:e,email:this.a,password:this.f})},So.prototype.c=function(t,e){return so(this.ia(t),e)},So.prototype.v=function(){return{email:this.a,password:this.f,signInMethod:this.signInMethod}},Kr(Ao,{PROVIDER_ID:"password"}),Kr(Ao,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"}),Kr(Ao,{EMAIL_PASSWORD_SIGN_IN_METHOD:"password"}),Io.prototype.ia=function(t){return t.cb(Mo(this))},Io.prototype.b=function(t,e){var n=Mo(this);return n.idToken=e,Js(t,$s,n)},Io.prototype.c=function(t,e){var n=Mo(this);return n.operation="REAUTH",so(t=Js(t,Zs,n),e)},Io.prototype.v=function(){var t={providerId:"phone"};return this.a.bb&&(t.verificationId=this.a.bb),this.a.ab&&(t.verificationCode=this.a.ab),this.a.Ja&&(t.temporaryProof=this.a.Ja),this.a.da&&(t.phoneNumber=this.a.da),t},Do.prototype.cb=function(t,e){var n=this.a.b;return Oe(e.verify()).then((function(r){if("string"!==typeof r)throw new S("argument-error","An implementation of firebase.auth.ApplicationVerifier.prototype.verify() must return a firebase.Promise that resolves with a string.");switch(e.type){case"recaptcha":var i=m(t)?t.session:null,o=m(t)?t.phoneNumber:t;return(i&&i.type==io?i.Fa().then((function(t){return function(t,e){return Js(t,Vs,e).then((function(t){return t.phoneSessionInfo.sessionInfo}))}(n,{idToken:t,phoneEnrollmentInfo:{phoneNumber:o,recaptchaToken:r}})})):i&&i.type==oo?i.Fa().then((function(e){return function(t,e){return Js(t,zs,e).then((function(t){return t.phoneResponseInfo.sessionInfo}))}(n,{mfaPendingCredential:e,mfaEnrollmentId:t.multiFactorHint&&t.multiFactorHint.uid||t.multiFactorUid,phoneSignInInfo:{recaptchaToken:r}})})):function(t,e){return Js(t,Fs,e)}(n,{phoneNumber:o,recaptchaToken:r})).then((function(t){return"function"===typeof e.reset&&e.reset(),t}),(function(t){throw"function"===typeof e.reset&&e.reset(),t}));default:throw new S("argument-error",'Only firebase.auth.ApplicationVerifiers with type="recaptcha" are currently supported.')}}))},Kr(Do,{PROVIDER_ID:"phone"}),Kr(Do,{PHONE_SIGN_IN_METHOD:"phone"}),Fo.prototype.getUid=function(){var t=[];return t.push(this.c),this.b&&t.push(this.b),this.f&&t.push(this.f),this.h&&t.push(this.h),t.join("-")},Fo.prototype.S=function(){return this.h},Fo.prototype.v=function(){return{type:this.c,eventId:this.b,urlResponse:this.g,sessionId:this.f,postBody:this.i,tenantId:this.h,error:this.a&&this.a.v()}};var Bo,Vo=null;function zo(t){var e="unauthorized-domain",n=void 0,r=Fn(t);t=r.b,"chrome-extension"==(r=r.f)?n=Vt("This chrome extension ID (chrome-extension://%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",t):"http"==r||"https"==r?n=Vt("This domain (%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",t):e="operation-not-supported-in-this-environment",S.call(this,e,n)}function Wo(t,e,n){S.call(this,t,n),(t=e||{}).Gb&&Gr(this,"email",t.Gb),t.da&&Gr(this,"phoneNumber",t.da),t.credential&&Gr(this,"credential",t.credential),t.Wb&&Gr(this,"tenantId",t.Wb)}function Ho(t){if(t.code){var e=t.code||"";0==e.indexOf(C)&&(e=e.substring(C.length));var n={credential:Lo(t),Wb:t.tenantId};if(t.email)n.Gb=t.email;else if(t.phoneNumber)n.da=t.phoneNumber;else if(!n.credential)return new S(e,t.message||void 0);return new Wo(e,n,t.message)}return null}function Yo(){}function Go(t){return t.c||(t.c=t.b())}function Ko(){}function Xo(t){if(!t.f&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var e=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],n=0;n<e.length;n++){var r=e[n];try{return new ActiveXObject(r),t.f=r}catch(i){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed")}return t.f}function $o(){}function Zo(){this.a=new XDomainRequest,this.readyState=0,this.onreadystatechange=null,this.responseType=this.responseText=this.response="",this.status=-1,this.statusText="",this.a.onload=x(this.oc,this),this.a.onerror=x(this.Pb,this),this.a.onprogress=x(this.pc,this),this.a.ontimeout=x(this.tc,this)}function Qo(t,e){t.readyState=e,t.onreadystatechange&&t.onreadystatechange()}function Jo(t,e,n){this.reset(t,e,n,void 0,void 0)}T(zo,S),T(Wo,S),Wo.prototype.v=function(){var t={code:this.code,message:this.message};this.email&&(t.email=this.email),this.phoneNumber&&(t.phoneNumber=this.phoneNumber),this.tenantId&&(t.tenantId=this.tenantId);var e=this.credential&&this.credential.v();return e&&gt(t,e),t},Wo.prototype.toJSON=function(){return this.v()},Yo.prototype.c=null,T(Ko,Yo),Ko.prototype.a=function(){var t=Xo(this);return t?new ActiveXObject(t):new XMLHttpRequest},Ko.prototype.b=function(){var t={};return Xo(this)&&(t[0]=!0,t[1]=!0),t},Bo=new Ko,T($o,Yo),$o.prototype.a=function(){var t=new XMLHttpRequest;if("withCredentials"in t)return t;if("undefined"!=typeof XDomainRequest)return new Zo;throw Error("Unsupported browser")},$o.prototype.b=function(){return{}},(e=Zo.prototype).open=function(t,e,n){if(null!=n&&!n)throw Error("Only async requests are supported.");this.a.open(t,e)},e.send=function(t){if(t){if("string"!=typeof t)throw Error("Only string data is supported");this.a.send(t)}else this.a.send()},e.abort=function(){this.a.abort()},e.setRequestHeader=function(){},e.getResponseHeader=function(t){return"content-type"==t.toLowerCase()?this.a.contentType:""},e.oc=function(){this.status=200,this.response=this.responseText=this.a.responseText,Qo(this,4)},e.Pb=function(){this.status=500,this.response=this.responseText="",Qo(this,4)},e.tc=function(){this.Pb()},e.pc=function(){this.status=200,Qo(this,1)},e.getAllResponseHeaders=function(){return"content-type: "+this.a.contentType},Jo.prototype.a=null;function ta(t){this.f=t,this.b=this.c=this.a=null}function ea(t,e){this.name=t,this.value=e}Jo.prototype.reset=function(t,e,n,r,i){"number"==typeof i||0,r||k(),delete this.a},ea.prototype.toString=function(){return this.name};var na=new ea("SEVERE",1e3),ra=new ea("WARNING",900),ia=new ea("CONFIG",700),oa=new ea("FINE",500);ta.prototype.log=function(t,e,n){if(t.value>=function t(e){return e.c?e.c:e.a?t(e.a):(L("Root logger has no level set."),null)}(this).value)for(v(e)&&(e=e()),t=new Jo(t,String(e),this.f),n&&(t.a=n),n=this;n;)n=n.a};var aa,sa={},ua=null;function la(t){var e;if(ua||(ua=new ta(""),sa[""]=ua,ua.c=ia),!(e=sa[t])){e=new ta(t);var n=t.lastIndexOf("."),r=t.substr(n+1);(n=la(t.substr(0,n))).b||(n.b={}),n.b[r]=e,e.a=n,sa[t]=e}return e}function ca(t,e){t&&t.log(oa,e,void 0)}function fa(t){this.f=t}function ha(t){wn.call(this),this.s=t,this.readyState=da,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.i=new Headers,this.b=null,this.m="GET",this.g="",this.a=!1,this.h=la("goog.net.FetchXmlHttp"),this.l=this.c=this.f=null}T(fa,Yo),fa.prototype.a=function(){return new ha(this.f)},fa.prototype.b=(aa={},function(){return aa}),T(ha,wn);var da=0;function pa(t){t.c.read().then(t.nc.bind(t)).catch(t.Sa.bind(t))}function va(t,e){e&&t.f&&(t.status=t.f.status,t.statusText=t.f.statusText),t.readyState=4,t.f=null,t.c=null,t.l=null,ma(t)}function ma(t){t.onreadystatechange&&t.onreadystatechange.call(t)}function ga(t){wn.call(this),this.headers=new An,this.D=t||null,this.c=!1,this.B=this.a=null,this.h=this.P=this.l="",this.f=this.O=this.i=this.N=!1,this.g=0,this.s=null,this.m=ya,this.w=this.R=!1}(e=ha.prototype).open=function(t,e){if(this.readyState!=da)throw this.abort(),Error("Error reopening a connection");this.m=t,this.g=e,this.readyState=1,ma(this)},e.send=function(t){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.a=!0;var e={headers:this.i,method:this.m,credentials:void 0,cache:void 0};
2t&&(e.body=t),this.s.fetch(new Request(this.g,e)).then(this.sc.bind(this),this.Sa.bind(this))},e.abort=function(){this.response=this.responseText="",this.i=new Headers,this.status=0,this.c&&this.c.cancel("Request was aborted."),1<=this.readyState&&this.a&&4!=this.readyState&&(this.a=!1,va(this,!1)),this.readyState=da},e.sc=function(t){this.a&&(this.f=t,this.b||(this.b=t.headers,this.readyState=2,ma(this)),this.a&&(this.readyState=3,ma(this),this.a&&("arraybuffer"===this.responseType?t.arrayBuffer().then(this.qc.bind(this),this.Sa.bind(this)):"undefined"!==typeof l.ReadableStream&&"body"in t?(this.response=this.responseText="",this.c=t.body.getReader(),this.l=new TextDecoder,pa(this)):t.text().then(this.rc.bind(this),this.Sa.bind(this)))))},e.nc=function(t){if(this.a){var e=this.l.decode(t.value?t.value:new Uint8Array(0),{stream:!t.done});e&&(this.response=this.responseText+=e),t.done?va(this,!0):ma(this),3==this.readyState&&pa(this)}},e.rc=function(t){this.a&&(this.response=this.responseText=t,va(this,!0))},e.qc=function(t){this.a&&(this.response=t,va(this,!0))},e.Sa=function(t){var e=this.h;e&&e.log(ra,"Failed to fetch url "+this.g,t instanceof Error?t:Error(t)),this.a&&va(this,!0)},e.setRequestHeader=function(t,e){this.i.append(t,e)},e.getResponseHeader=function(t){return this.b?this.b.get(t.toLowerCase())||"":((t=this.h)&&t.log(ra,"Attempting to get response header but no headers have been received for url: "+this.g,void 0),"")},e.getAllResponseHeaders=function(){if(!this.b){var t=this.h;return t&&t.log(ra,"Attempting to get all response headers but no headers have been received for url: "+this.g,void 0),""}t=[];for(var e=this.b.entries(),n=e.next();!n.done;)n=n.value,t.push(n[0]+": "+n[1]),n=e.next();return t.join("\r\n")},T(ga,wn);var ya="";ga.prototype.b=la("goog.net.XhrIo");var ba=/^https?$/i,wa=["POST","PUT"];function _a(t,e,n,r,i){if(t.a)throw Error("[goog.net.XhrIo] Object is active with another request="+t.l+"; newUri="+e);n=n?n.toUpperCase():"GET",t.l=e,t.h="",t.P=n,t.N=!1,t.c=!0,t.a=t.D?t.D.a():Bo.a(),t.B=t.D?Go(t.D):Go(Bo),t.a.onreadystatechange=x(t.Sb,t);try{ca(t.b,Na(t,"Opening Xhr")),t.O=!0,t.a.open(n,String(e),!0),t.O=!1}catch(a){return ca(t.b,Na(t,"Error opening Xhr: "+a.message)),void Ea(t,a)}e=r||"";var o=new An(t.headers);i&&function(t,e){if(t.forEach&&"function"==typeof t.forEach)t.forEach(e,void 0);else if(p(t)||"string"===typeof t)W(t,e,void 0);else for(var n=On(t),r=Sn(t),i=r.length,o=0;o<i;o++)e.call(void 0,r[o],n&&n[o],t)}(i,(function(t,e){o.set(e,t)})),i=function(t){t:{for(var e=xa,n=t.length,r="string"===typeof t?t.split(""):t,i=0;i<n;i++)if(i in r&&e.call(void 0,r[i],i,t)){e=i;break t}e=-1}return 0>e?null:"string"===typeof t?t.charAt(e):t[e]}(o.X()),r=l.FormData&&e instanceof l.FormData,!K(wa,n)||i||r||o.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),o.forEach((function(t,e){this.a.setRequestHeader(e,t)}),t),t.m&&(t.a.responseType=t.m),"withCredentials"in t.a&&t.a.withCredentials!==t.R&&(t.a.withCredentials=t.R);try{Oa(t),0<t.g&&(t.w=function(t){return Gt&&ie(9)&&"number"===typeof t.timeout&&void 0!==t.ontimeout}(t.a),ca(t.b,Na(t,"Will abort after "+t.g+"ms if incomplete, xhr2 "+t.w)),t.w?(t.a.timeout=t.g,t.a.ontimeout=x(t.Ka,t)):t.s=kn(t.Ka,t.g,t)),ca(t.b,Na(t,"Sending request")),t.i=!0,t.a.send(e),t.i=!1}catch(a){ca(t.b,Na(t,"Send error: "+a.message)),Ea(t,a)}}function xa(t){return"content-type"==t.toLowerCase()}function Ea(t,e){t.c=!1,t.a&&(t.f=!0,t.a.abort(),t.f=!1),t.h=e,ka(t),Sa(t)}function ka(t){t.N||(t.N=!0,t.dispatchEvent("complete"),t.dispatchEvent("error"))}function Ta(t){if(t.c&&"undefined"!=typeof u)if(t.B[1]&&4==Aa(t)&&2==Ca(t))ca(t.b,Na(t,"Local request error detected and ignored"));else if(t.i&&4==Aa(t))kn(t.Sb,0,t);else if(t.dispatchEvent("readystatechange"),4==Aa(t)){ca(t.b,Na(t,"Request complete")),t.c=!1;try{var e,n=Ca(t);t:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var r=!0;break t;default:r=!1}if(!(e=r)){var i;if(i=0===n){var o=String(t.l).match(In)[1]||null;if(!o&&l.self&&l.self.location){var a=l.self.location.protocol;o=a.substr(0,a.length-1)}i=!ba.test(o?o.toLowerCase():"")}e=i}if(e)t.dispatchEvent("complete"),t.dispatchEvent("success");else{try{var s=2<Aa(t)?t.a.statusText:""}catch(c){ca(t.b,"Can not get status: "+c.message),s=""}t.h=s+" ["+Ca(t)+"]",ka(t)}}finally{Sa(t)}}}function Sa(t,e){if(t.a){Oa(t);var n=t.a,r=t.B[0]?h:null;
2t.a=null,t.B=null,e||t.dispatchEvent("ready");try{n.onreadystatechange=r}catch(i){(t=t.b)&&t.log(na,"Problem encountered resetting onreadystatechange: "+i.message,void 0)}}}function Oa(t){t.a&&t.w&&(t.a.ontimeout=null),t.s&&(l.clearTimeout(t.s),t.s=null)}function Aa(t){return t.a?t.a.readyState:0}function Ca(t){try{return 2<Aa(t)?t.a.status:-1}catch(e){return-1}}function Na(t,e){return e+" ["+t.P+" "+t.l+" "+Ca(t)+"]"}function Ia(t){var e=Va;this.g=[],this.w=e,this.s=t||null,this.f=this.a=!1,this.c=void 0,this.u=this.B=this.i=!1,this.h=0,this.b=null,this.l=0}function Pa(t,e,n){t.a=!0,t.c=n,t.f=!e,La(t)}function Ma(t){if(t.a){if(!t.u)throw new ja(t);t.u=!1}}function Da(t,e,n,r){t.g.push([e,n,r]),t.a&&La(t)}function Ra(t){return G(t.g,(function(t){return v(t[1])}))}function La(t){if(t.h&&t.a&&Ra(t)){var e=t.h,n=qa[e];n&&(l.clearTimeout(n.a),delete qa[e]),t.h=0}t.b&&(t.b.l--,delete t.b),e=t.c;for(var r=n=!1;t.g.length&&!t.i;){var i=t.g.shift(),o=i[0],a=i[1];if(i=i[2],o=t.f?a:o)try{var s=o.call(i||t.s,e);void 0!==s&&(t.f=t.f&&(s==e||s instanceof Error),t.c=e=s),(M(e)||"function"===typeof l.Promise&&e instanceof l.Promise)&&(r=!0,t.i=!0)}catch(u){e=u,t.f=!0,Ra(t)||(n=!0)}}t.c=e,r&&(s=x(t.m,t,!0),r=x(t.m,t,!1),e instanceof Ia?(Da(e,s,r),e.B=!0):e.then(s,r)),n&&(e=new Ua(e),qa[e.a]=e,t.h=e.a)}function ja(){D.call(this)}function Fa(){D.call(this)}function Ua(t){this.a=l.setTimeout(x(this.c,this),0),this.b=t}(e=ga.prototype).Ka=function(){"undefined"!=typeof u&&this.a&&(this.h="Timed out after "+this.g+"ms, aborting",ca(this.b,Na(this,this.h)),this.dispatchEvent("timeout"),this.abort(8))},e.abort=function(){this.a&&this.c&&(ca(this.b,Na(this,"Aborting")),this.c=!1,this.f=!0,this.a.abort(),this.f=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Sa(this))},e.Ba=function(){this.a&&(this.c&&(this.c=!1,this.f=!0,this.a.abort(),this.f=!1),Sa(this,!0)),ga.Za.Ba.call(this)},e.Sb=function(){this.wa||(this.O||this.i||this.f?Ta(this):this.Hc())},e.Hc=function(){Ta(this)},e.getResponse=function(){try{if(!this.a)return null;if("response"in this.a)return this.a.response;switch(this.m){case ya:case"text":return this.a.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in this.a)return this.a.mozResponseArrayBuffer}var t=this.b;return t&&t.log(na,"Response type "+this.m+" is not supported on this browser",void 0),null}catch(e){return ca(this.b,"Can not get response: "+e.message),null}},Ia.prototype.cancel=function(t){if(this.a)this.c instanceof Ia&&this.c.cancel();else{if(this.b){var e=this.b;delete this.b,t?e.cancel(t):(e.l--,0>=e.l&&e.cancel())}this.w?this.w.call(this.s,this):this.u=!0,this.a||(t=new Fa(this),Ma(this),Pa(this,!1,t))}},Ia.prototype.m=function(t,e){this.i=!1,Pa(this,t,e)},Ia.prototype.then=function(t,e,n){var r,i,o=new we((function(t,e){r=t,i=e}));return Da(this,r,(function(t){t instanceof Fa?o.cancel():i(t)})),o.then(t,e,n)},Ia.prototype.$goog_Thenable=!0,T(ja,D),ja.prototype.message="Deferred has already fired",ja.prototype.name="AlreadyCalledError",T(Fa,D),Fa.prototype.message="Deferred was canceled",Fa.prototype.name="CanceledError",Ua.prototype.c=function(){throw delete qa[this.a],this.b};var qa={};function Ba(t){var e={},n=e.document||document,r=Tt(t).toString(),i=he(document,"SCRIPT"),o={Tb:i,Ka:void 0},a=new Ia(o),s=null,u=null!=e.timeout?e.timeout:5e3;return 0<u&&(s=window.setTimeout((function(){za(i,!0);var t=new Ya(Ha,"Timeout reached for loading script "+r);Ma(a),Pa(a,!1,t)}),u),o.Ka=s),i.onload=i.onreadystatechange=function(){i.readyState&&"loaded"!=i.readyState&&"complete"!=i.readyState||(za(i,e.ud||!1,s),Ma(a),Pa(a,!0,null))},i.onerror=function(){za(i,!0,s);var t=new Ya(Wa,"Error while loading script "+r);Ma(a),Pa(a,!1,t)},gt(o=e.attributes||{},{type:"text/javascript",charset:"UTF-8"}),se(i,o),function(t,e){yt(t,"HTMLScriptElement"),t.src=Tt(e),null===f&&(f=(e=(e=l.document).querySelector&&e.querySelector("script[nonce]"))&&(e=e.nonce||e.getAttribute("nonce"))&&c.test(e)?e:""),(e=f)&&t.setAttribute("nonce",e)}(i,t),function(t){var e;return(e=(t||document).getElementsByTagName("HEAD"))&&0!=e.length?e[0]:t.documentElement}(n).appendChild(i),a}function Va(){if(this&&this.Tb){var t=this.Tb;
2t&&"SCRIPT"==t.tagName&&za(t,!0,this.Ka)}}function za(t,e,n){null!=n&&l.clearTimeout(n),t.onload=h,t.onerror=h,t.onreadystatechange=h,e&&window.setTimeout((function(){t&&t.parentNode&&t.parentNode.removeChild(t)}),0)}var Wa=0,Ha=1;function Ya(t,e){var n="Jsloader error (code #"+t+")";e&&(n+=": "+e),D.call(this,n),this.code=t}function Ga(t){this.f=t}function Ka(t,e,n){if(this.c=t,t=e||{},this.u=t.secureTokenEndpoint||"https://securetoken.googleapis.com/v1/token",this.m=t.secureTokenTimeout||Za,this.g=vt(t.secureTokenHeaders||Qa),this.h=t.firebaseEndpoint||"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",this.l=t.identityPlatformEndpoint||"https://identitytoolkit.googleapis.com/v2/",this.i=t.firebaseTimeout||Ja,this.a=vt(t.firebaseHeaders||ts),n&&(this.a["X-Client-Version"]=n,this.g["X-Client-Version"]=n),n="Node"==br(),!(n=l.XMLHttpRequest||n&&r.INTERNAL.node&&r.INTERNAL.node.XMLHttpRequest)&&!yr())throw new S("internal-error","The XMLHttpRequest compatibility library was not found.");this.f=void 0,yr()?this.f=new fa(self):wr()?this.f=new Ga(n):this.f=new $o,this.b=null}T(Ya,D),T(Ga,Yo),Ga.prototype.a=function(){return new this.f},Ga.prototype.b=function(){return{}};var Xa,$a="idToken",Za=new Ur(3e4,6e4),Qa={"Content-Type":"application/x-www-form-urlencoded"},Ja=new Ur(3e4,6e4),ts={"Content-Type":"application/json"};function es(t,e){e?t.a["X-Firebase-Locale"]=e:delete t.a["X-Firebase-Locale"]}function ns(t,e){e?(t.a["X-Client-Version"]=e,t.g["X-Client-Version"]=e):(delete t.a["X-Client-Version"],delete t.g["X-Client-Version"])}function rs(t,e,n,r,i,o,a){(function(){var t=Sr();return!((t=Er(t)!=xr?null:(t=t.match(/\sChrome\/(\d+)/i))&&2==t.length?parseInt(t[1],10):null)&&30>t)&&(!Gt||!ne||9<ne)})()||yr()?t=x(t.w,t):(Xa||(Xa=new we((function(t,e){!function(t,e){if(((window.gapi||{}).client||{}).request)t();else{l[os]=function(){((window.gapi||{}).client||{}).request?t():e(Error("CORS_UNSUPPORTED"))},function(t,e){Da(t,null,e,void 0)}(Ba(St(is,{onload:os})),(function(){e(Error("CORS_UNSUPPORTED"))}))}}(t,e)}))),t=x(t.s,t)),t(e,n,r,i,o,a)}Ka.prototype.S=function(){return this.b},Ka.prototype.w=function(t,e,n,r,i,o){if(yr()&&("undefined"===typeof l.fetch||"undefined"===typeof l.Headers||"undefined"===typeof l.Request))throw new S("operation-not-supported-in-this-environment","fetch, Headers and Request native APIs or equivalent Polyfills must be available to support HTTP requests from a Worker environment.");var a=new ga(this.f);if(o){a.g=Math.max(0,o);var s=setTimeout((function(){a.dispatchEvent("timeout")}),o)}_n(a,"complete",(function(){s&&clearTimeout(s);var t=null;try{t=JSON.parse(function(t){try{return t.a?t.a.responseText:""}catch(e){return ca(t.b,"Can not get responseText: "+e.message),""}}(this))||null}catch(n){t=null}e&&e(t)})),xn(a,"ready",(function(){s&&clearTimeout(s),We(this)})),xn(a,"timeout",(function(){s&&clearTimeout(s),We(this),e&&e(null)})),_a(a,t,n,r,i)};var is=new bt(xt,"https://apis.google.com/js/client.js?onload=%{onload}"),os="__fcb"+Math.floor(1e6*Math.random()).toString();function as(t,e,n,r,i,o,a){var s=Fn(e+n);Ln(s,"key",t.c),a&&Ln(s,"cb",k().toString());var u="GET"==r;if(u)for(var l in i)i.hasOwnProperty(l)&&Ln(s,l,i[l]);return new we((function(e,n){rs(t,s.toString(),(function(t){t?t.error?n(eu(t,o||{})):e(t):n(new S("network-request-failed"))}),r,u?void 0:nr(Dr(i)),t.a,t.i.get())}))}function ss(t){if("string"!==typeof(t=t.email)||!pr.test(t))throw new S("invalid-email")}function us(t){"email"in t&&ss(t)}function ls(t){if(!t[$a]){if(t.mfaPendingCredential)throw new S("multi-factor-auth-required",null,vt(t));throw new S("internal-error")}}function cs(t){if(t.phoneNumber||t.temporaryProof){if(!t.phoneNumber||!t.temporaryProof)throw new S("internal-error")}else{if(!t.sessionInfo)throw new S("missing-verification-id");if(!t.code)throw new S("missing-verification-code")}}Ka.prototype.s=function(t,e,n,r,i){var o=this;Xa.then((function(){window.gapi.client.setApiKey(o.c);var a=window.gapi.auth.getToken();window.gapi.auth.setToken(null),window.gapi.client.request({path:t,method:n,body:r,headers:i,authType:"none",callback:function(t){window.gapi.auth.setToken(a),e&&e(t)}})})).o((function(t){e&&e({error:{message:t&&t.message||"CORS_UNSUPPORTED"}})}))},Ka.prototype.vb=function(){return Js(this,Bs,{})},Ka.prototype.xb=function(t,e){return Js(this,Us,{idToken:t,email:e})},Ka.prototype.yb=function(t,e){return Js(this,qs,{idToken:t,password:e})};
2var fs={displayName:"DISPLAY_NAME",photoUrl:"PHOTO_URL"};function hs(t){if(!t.phoneVerificationInfo)throw new S("internal-error");if(!t.phoneVerificationInfo.sessionInfo)throw new S("missing-verification-id");if(!t.phoneVerificationInfo.code)throw new S("missing-verification-code")}function ds(t){if(!t.requestUri||!t.sessionId&&!t.postBody&&!t.pendingToken)throw new S("internal-error")}function ps(t,e){return e.oauthIdToken&&e.providerId&&0==e.providerId.indexOf("oidc.")&&!e.pendingToken&&(t.sessionId?e.nonce=t.sessionId:t.postBody&&(Qn(t=new Kn(t.postBody),"nonce")&&(e.nonce=t.get("nonce")))),e}function vs(t){var e=null;if(t.needConfirmation?(t.code="account-exists-with-different-credential",e=Ho(t)):"FEDERATED_USER_ID_ALREADY_LINKED"==t.errorMessage?(t.code="credential-already-in-use",e=Ho(t)):"EMAIL_EXISTS"==t.errorMessage?(t.code="email-already-in-use",e=Ho(t)):t.errorMessage&&(e=tu(t.errorMessage)),e)throw e;ls(t)}function ms(t,e){return e.returnIdpCredential=!0,Js(t,Ws,e)}function gs(t,e){return e.returnIdpCredential=!0,Js(t,Ys,e)}function ys(t,e){return e.returnIdpCredential=!0,e.autoCreate=!1,Js(t,Hs,e)}function bs(t){if(!t.oobCode)throw new S("invalid-action-code")}(e=Ka.prototype).zb=function(t,e){var n={idToken:t},r=[];return dt(fs,(function(t,i){var o=e[i];null===o?r.push(t):i in e&&(n[i]=o)})),r.length&&(n.deleteAttribute=r),Js(this,Us,n)},e.rb=function(t,e){return gt(t={requestType:"PASSWORD_RESET",email:t},e),Js(this,Ds,t)},e.sb=function(t,e){return gt(t={requestType:"EMAIL_SIGNIN",email:t},e),Js(this,Is,t)},e.qb=function(t,e){return gt(t={requestType:"VERIFY_EMAIL",idToken:t},e),Js(this,Ps,t)},e.Ab=function(t,e,n){return gt(t={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:t,newEmail:e},n),Js(this,Ms,t)},e.cb=function(t){return Js(this,Xs,t)},e.jb=function(t,e){return Js(this,js,{oobCode:t,newPassword:e})},e.Pa=function(t){return Js(this,_s,{oobCode:t})},e.fb=function(t){return Js(this,ws,{oobCode:t})};var ws={endpoint:"setAccountInfo",A:bs,Y:"email",C:!0},_s={endpoint:"resetPassword",A:bs,G:function(t){var e=t.requestType;if(!e||!t.email&&"EMAIL_SIGNIN"!=e&&"VERIFY_AND_CHANGE_EMAIL"!=e)throw new S("internal-error")},C:!0},xs={endpoint:"signupNewUser",A:function(t){if(ss(t),!t.password)throw new S("weak-password")},G:ls,U:!0,C:!0},Es={endpoint:"createAuthUri",C:!0},ks={endpoint:"deleteAccount",M:["idToken"]},Ts={endpoint:"setAccountInfo",M:["idToken","deleteProvider"],A:function(t){if("array"!=d(t.deleteProvider))throw new S("internal-error")}},Ss={endpoint:"emailLinkSignin",M:["email","oobCode"],A:ss,G:ls,U:!0,C:!0},Os={endpoint:"emailLinkSignin",M:["idToken","email","oobCode"],A:ss,G:ls,U:!0},As={endpoint:"accounts/mfaEnrollment:finalize",M:["idToken","phoneVerificationInfo"],A:hs,G:ls,C:!0,La:!0},Cs={endpoint:"accounts/mfaSignIn:finalize",M:["mfaPendingCredential","phoneVerificationInfo"],A:hs,G:ls,C:!0,La:!0},Ns={endpoint:"getAccountInfo"},Is={endpoint:"getOobConfirmationCode",M:["requestType"],A:function(t){if("EMAIL_SIGNIN"!=t.requestType)throw new S("internal-error");ss(t)},Y:"email",C:!0},Ps={endpoint:"getOobConfirmationCode",M:["idToken","requestType"],A:function(t){if("VERIFY_EMAIL"!=t.requestType)throw new S("internal-error")},Y:"email",C:!0},Ms={endpoint:"getOobConfirmationCode",M:["idToken","newEmail","requestType"],A:function(t){if("VERIFY_AND_CHANGE_EMAIL"!=t.requestType)throw new S("internal-error")},Y:"email",C:!0},Ds={endpoint:"getOobConfirmationCode",M:["requestType"],A:function(t){if("PASSWORD_RESET"!=t.requestType)throw new S("internal-error");ss(t)},Y:"email",C:!0},Rs={hb:!0,endpoint:"getProjectConfig",Rb:"GET"},Ls={hb:!0,endpoint:"getRecaptchaParam",Rb:"GET",G:function(t){if(!t.recaptchaSiteKey)throw new S("internal-error")}},js={endpoint:"resetPassword",A:bs,Y:"email",C:!0},Fs={endpoint:"sendVerificationCode",M:["phoneNumber","recaptchaToken"],Y:"sessionInfo",C:!0},Us={endpoint:"setAccountInfo",M:["idToken"],A:us,U:!0},qs={endpoint:"setAccountInfo",M:["idToken"],A:function(t){if(us(t),!t.password)throw new S("weak-password")},G:ls,U:!0},Bs={endpoint:"signupNewUser",G:ls,U:!0,C:!0},Vs={endpoint:"accounts/mfaEnrollment:start",M:["idToken","phoneEnrollmentInfo"],A:function(t){if(!t.phone
2EnrollmentInfo)throw new S("internal-error");if(!t.phoneEnrollmentInfo.phoneNumber)throw new S("missing-phone-number");if(!t.phoneEnrollmentInfo.recaptchaToken)throw new S("missing-app-credential")},G:function(t){if(!t.phoneSessionInfo||!t.phoneSessionInfo.sessionInfo)throw new S("internal-error")},C:!0,La:!0},zs={endpoint:"accounts/mfaSignIn:start",M:["mfaPendingCredential","mfaEnrollmentId","phoneSignInInfo"],A:function(t){if(!t.phoneSignInInfo||!t.phoneSignInInfo.recaptchaToken)throw new S("missing-app-credential")},G:function(t){if(!t.phoneResponseInfo||!t.phoneResponseInfo.sessionInfo)throw new S("internal-error")},C:!0,La:!0},Ws={endpoint:"verifyAssertion",A:ds,Wa:ps,G:vs,U:!0,C:!0},Hs={endpoint:"verifyAssertion",A:ds,Wa:ps,G:function(t){if(t.errorMessage&&"USER_NOT_FOUND"==t.errorMessage)throw new S("user-not-found");if(t.errorMessage)throw tu(t.errorMessage);ls(t)},U:!0,C:!0},Ys={endpoint:"verifyAssertion",A:function(t){if(ds(t),!t.idToken)throw new S("internal-error")},Wa:ps,G:vs,U:!0},Gs={endpoint:"verifyCustomToken",A:function(t){if(!t.token)throw new S("invalid-custom-token")},G:ls,U:!0,C:!0},Ks={endpoint:"verifyPassword",A:function(t){if(ss(t),!t.password)throw new S("wrong-password")},G:ls,U:!0,C:!0},Xs={endpoint:"verifyPhoneNumber",A:cs,G:ls,C:!0},$s={endpoint:"verifyPhoneNumber",A:function(t){if(!t.idToken)throw new S("internal-error");cs(t)},G:function(t){if(t.temporaryProof)throw t.code="credential-already-in-use",Ho(t);ls(t)}},Zs={Eb:{USER_NOT_FOUND:"user-not-found"},endpoint:"verifyPhoneNumber",A:cs,G:ls,C:!0},Qs={endpoint:"accounts/mfaEnrollment:withdraw",M:["idToken","mfaEnrollmentId"],G:function(t){if(!!t[$a]^!!t.refreshToken)throw new S("internal-error")},C:!0,La:!0};function Js(t,e,n){if(!function(t,e){if(!e||!e.length)return!0;if(!t)return!1;for(var n=0;n<e.length;n++){var r=t[e[n]];if(void 0===r||null===r||""===r)return!1}return!0}(n,e.M))return Ae(new S("internal-error"));var r,i=!!e.La,o=e.Rb||"POST";return Oe(n).then(e.A).then((function(){return e.U&&(n.returnSecureToken=!0),e.C&&t.b&&"undefined"===typeof n.tenantId&&(n.tenantId=t.b),as(t,i?t.l:t.h,e.endpoint,o,n,e.Eb,e.hb||!1)})).then((function(t){return r=t,e.Wa?e.Wa(n,r):r})).then(e.G).then((function(){if(!e.Y)return r;if(!(e.Y in r))throw new S("internal-error");return r[e.Y]}))}function tu(t){return eu({error:{errors:[{message:t}],code:400,message:t}})}function eu(t,e){var n=(t.error&&t.error.errors&&t.error.errors[0]||{}).reason||"",r={keyInvalid:"invalid-api-key",ipRefererBlocked:"app-not-authorized"};if(n=r[n]?new S(r[n]):null)return n;for(var i in n=t.error&&t.error.message||"",gt(r={INVALID_CUSTOM_TOKEN:"invalid-custom-token",CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_EMAIL:"invalid-email",INVALID_PASSWORD:"wrong-password",USER_DISABLED:"user-disabled",MISSING_PASSWORD:"internal-error",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_OR_INVALID_
2NONCE:"missing-or-invalid-nonce",INVALID_MESSAGE_PAYLOAD:"invalid-message-payload",INVALID_RECIPIENT_EMAIL:"invalid-recipient-email",INVALID_SENDER:"invalid-sender",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",INVALID_PROVIDER_ID:"invalid-provider-id",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",CORS_UNSUPPORTED:"cors-unsupported",DYNAMIC_LINK_NOT_ACTIVATED:"dynamic-link-not-activated",INVALID_APP_ID:"invalid-app-id",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",WEAK_PASSWORD:"weak-password",OPERATION_NOT_ALLOWED:"operation-not-allowed",USER_CANCELLED:"user-cancelled",CAPTCHA_CHECK_FAILED:"captcha-check-failed",INVALID_APP_CREDENTIAL:"invalid-app-credential",INVALID_CODE:"invalid-verification-code",INVALID_PHONE_NUMBER:"invalid-phone-number",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_APP_CREDENTIAL:"missing-app-credential",MISSING_CODE:"missing-verification-code",MISSING_PHONE_NUMBER:"missing-phone-number",MISSING_SESSION_INFO:"missing-verification-id",QUOTA_EXCEEDED:"quota-exceeded",SESSION_EXPIRED:"code-expired",REJECTED_CREDENTIAL:"rejected-credential",INVALID_CONTINUE_URI:"invalid-continue-uri",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",MISSING_IOS_BUNDLE_ID:"missing-ios-bundle-id",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_DYNAMIC_LINK_DOMAIN:"invalid-dynamic-link-domain",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",INVALID_CERT_HASH:"invalid-cert-hash",UNSUPPORTED_TENANT_OPERATION:"unsupported-tenant-operation",INVALID_TENANT_ID:"invalid-tenant-id",TENANT_ID_MISMATCH:"tenant-id-mismatch",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",EMAIL_CHANGE_NEEDS_VERIFICATION:"email-change-needs-verification",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",UNSUPPORTED_FIRST_FACTOR:"unsupported-first-factor",UNVERIFIED_EMAIL:"unverified-email"},e||{}),e=(e=n.match(/^[^\s]+\s*:\s*([\s\S]*)$/))&&1<e.length?e[1]:void 0,r)if(0===n.indexOf(i))return new S(r[i],e);return!e&&t&&(e=Mr(t)),new S("internal-error",e)}function nu(t){this.b=t,this.a=null,this.nb=function(t){return(au||(au=new we((function(t,e){function n(){Fr(),Or("gapi.load")("gapi.iframes",{callback:t,ontimeout:function(){Fr(),e(Error("Network Error"))},timeout:iu.get()})}if(Or("gapi.iframes.Iframe"))t();else if(Or("gapi.load"))n();else{var r="__iframefcb"+Math.floor(1e6*Math.random()).toString();l[r]=function(){Or("gapi.load")?n():e(Error("Network Error"))},Oe(Ba(r=St(ru,{onload:r}))).o((function(){e(Error("Network Error"))}))}})).o((function(t){throw au=null,t})))).then((function(){return new we((function(e,n){Or("gapi.iframes.getContext")().open({where:document.body,url:t.b,messageHandlersFilter:Or("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"),attributes:{style:{position:"absolute",top:"-100px",width:"1px",height:"1px"}},dontclear:!0},(function(r){function i(){clearTimeout(o),e()}t.a=r,t.a.restyle({setHideOnLeave:!1});var o=setTimeout((function(){n(Error("Network Error"))}),ou.get());r.ping(i).then(i,(function(){n(Error("Network Error"))}))}))}))}))}(this)}var ru=new bt(xt,"https://apis.google.com/js/api.js?onload=%{onload}"),iu=new Ur(3e4,6e4),ou=new Ur(5e3,15e3),au=null;function su(t,e,n){this.i=t,this.g=e,this.h=n,this.f=null,this.a=Un(this.i,"/__/auth/iframe"),Ln(this.a,"apiKey",this.g),Ln(this.a,"appName",this.h),this.b=null,this.c=[]}function uu(t,e,n,r,i){this.s=t,this.m=e,this.c=n,this.u=r,this.i=this.g=this.l=null,this.a=i,this.h=this.f=null}function lu(t){try{return r.app(t).auth().Ea()}catch(e){return[]}}function cu(t,e,n,r,i){this.u=t,this.f=e,this.b=n,this.c=r||null,this.h=i||null,this.m=this.s=this.w=null,this.g=[],this.l=this.a=null}function fu(t){var e=ur();return function(t){return Js(t,Rs,{}).then((function(t){return t.authorizedDomains||[]}))}(t).then((function(t){t:{var n=Fn(e),r=n.f;n=n.b;for(var i=0;i<t.length;i++){var o=t[i],a=n,s=r;if(0==o.indexOf("chrome-extension://")?a=Fn(o).b==a&&"chrome-extension"==s:"http"!=s&&"https"!=s?a=!1:dr.test(o)?a=a==o:(o=o.split(".").join("\\."),a=new RegExp("^(.+\\."+o+"|"+o+")$","i").test(a)),a){t=!0;break t}}t=!1}if(!t)throw new zo(ur())}))}function hu(t){return t.l||(t.l=vr().then((function(){if(!t.s){var e=t.c,n=t.h,r=lu(t.b),i=new su(t.u,t.f,t.b);i.f=e,i.b=n,i.c=Q(r||[]),t.s=i.toString()}t.i=new nu(t.s),function(t){if(!t.i)throw Error("IfcHandler must be initialized!");!function(t,e){t.nb.then((function(){t.a.register("authEvent",e,Or("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))}))}(t.i,(function(e){var n={};if(e&&e.authEvent){var r=!1;for(e=Uo(e.authEvent),n=0;n<t.g.length;n++)r=t.g[n](e)||r;return(n={}).status=r?"ACK":"ERROR",Oe(n)}return n.status="ERROR",Oe(n)}))}(t)}))),t.l}
2function du(t){return t.m||(t.w=t.c?Tr(t.c,lu(t.b)):null,t.m=new Ka(t.f,P(t.h),t.w)),t.m}function pu(t,e,n,r,i,o,a,s,u,l,c){return(t=new uu(t,e,n,r,i)).l=o,t.g=a,t.i=s,t.b=vt(u||null),t.f=l,t.ub(c).toString()}function vu(t){if(this.a=t||r.INTERNAL.reactNative&&r.INTERNAL.reactNative.AsyncStorage,!this.a)throw new S("internal-error","The React Native compatibility library was not found.");this.type="asyncStorage"}function mu(t){this.b=t,this.a={},this.f=x(this.c,this)}su.prototype.toString=function(){return this.f?Ln(this.a,"v",this.f):Zn(this.a.a,"v"),this.b?Ln(this.a,"eid",this.b):Zn(this.a.a,"eid"),this.c.length?Ln(this.a,"fw",this.c.join(",")):Zn(this.a.a,"fw"),this.a.toString()},uu.prototype.ub=function(t){return this.h=t,this},uu.prototype.toString=function(){var t=Un(this.s,"/__/auth/handler");if(Ln(t,"apiKey",this.m),Ln(t,"appName",this.c),Ln(t,"authType",this.u),this.a.isOAuthProvider){var e=this.a;try{var n=r.app(this.c).auth().ja()}catch(u){n=null}for(var i in e.kb=n,Ln(t,"providerId",this.a.providerId),n=Dr((e=this.a).Fb))n[i]=n[i].toString();i=e.Oc,n=vt(n);for(var o=0;o<i.length;o++){var a=i[o];a in n&&delete n[a]}e.lb&&e.kb&&!n[e.lb]&&(n[e.lb]=e.kb),pt(n)||Ln(t,"customParameters",Mr(n))}if("function"===typeof this.a.Nb&&((e=this.a.Nb()).length&&Ln(t,"scopes",e.join(","))),this.l?Ln(t,"redirectUrl",this.l):Zn(t.a,"redirectUrl"),this.g?Ln(t,"eventId",this.g):Zn(t.a,"eventId"),this.i?Ln(t,"v",this.i):Zn(t.a,"v"),this.b)for(var s in this.b)this.b.hasOwnProperty(s)&&!jn(t,s)&&Ln(t,s,this.b[s]);return this.h?Ln(t,"tid",this.h):Zn(t.a,"tid"),this.f?Ln(t,"eid",this.f):Zn(t.a,"eid"),(s=lu(this.c)).length&&Ln(t,"fw",s.join(",")),t.toString()},(e=cu.prototype).Lb=function(t,e,n){var r=new S("popup-closed-by-user"),i=new S("web-storage-unsupported"),o=this,a=!1;return this.ka().then((function(){(function(t){var e={type:"webStorageSupport"};return hu(t).then((function(){return function(t,e){return t.nb.then((function(){return new we((function(n){t.a.send(e.type,e,n,Or("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))}))}))}(t.i,e)})).then((function(t){if(t&&t.length&&"undefined"!==typeof t[0].webStorageSupport)return t[0].webStorageSupport;throw Error()}))})(o).then((function(n){n||(t&&fr(t),e(i),a=!0)}))})).o((function(){})).then((function(){if(!a)return function(t){return new we((function(e){return function n(){Tn(2e3).then((function(){if(t&&!t.closed)return n();e()}))}()}))}(t)})).then((function(){if(!a)return Tn(n).then((function(){e(r)}))}))},e.Ub=function(){var t=Sr();return!Pr(t)&&!jr(t)},e.Qb=function(){return!1}
2,e.Jb=function(t,e,n,r,i,o,a,s){if(!t)return Ae(new S("popup-blocked"));if(a&&!Pr())return this.ka().o((function(e){fr(t),i(e)})),r(),Oe();this.a||(this.a=fu(du(this)));var u=this;return this.a.then((function(){var e=u.ka().o((function(e){throw fr(t),i(e),e}));return r(),e})).then((function(){(jo(n),a)||lr(pu(u.u,u.f,u.b,e,n,null,o,u.c,void 0,u.h,s),t)})).o((function(t){throw"auth/network-request-failed"==t.code&&(u.a=null),t}))},e.Kb=function(t,e,n,r){this.a||(this.a=fu(du(this)));var i=this;return this.a.then((function(){jo(e),lr(pu(i.u,i.f,i.b,t,e,ur(),n,i.c,void 0,i.h,r))})).o((function(t){throw"auth/network-request-failed"==t.code&&(i.a=null),t}))},e.ka=function(){var t=this;return hu(this).then((function(){return t.i.nb})).o((function(){throw t.a=null,new S("network-request-failed")}))},e.Xb=function(){return!0},e.Ca=function(t){this.g.push(t)},e.Qa=function(t){$(this.g,(function(e){return e==t}))},(e=vu.prototype).get=function(t){return Oe(this.a.getItem(t)).then((function(t){return t&&Rr(t)}))},e.set=function(t,e){return Oe(this.a.setItem(t,Mr(e)))},e.T=function(t){return Oe(this.a.removeItem(t))},e.ba=function(){},e.ha=function(){};var gu,yu=[];function bu(t,e,n){pt(t.a)&&t.b.addEventListener("message",t.f),"undefined"===typeof t.a[e]&&(t.a[e]=[]),t.a[e].push(n)}function wu(t){this.a=t}function _u(t){this.c=t,this.b=!1,this.a=[]}function xu(t,e,n,r){var i,o,a,s,u=n||{},l=null;if(t.b)return Ae(Error("connection_unavailable"));var c=r?800:50,f="undefined"!==typeof MessageChannel?new MessageChannel:null;return new we((function(n,r){f?(i=Math.floor(Math.random()*Math.pow(10,20)).toString(),f.port1.start(),a=setTimeout((function(){r(Error("unsupported_event"))}),c),l={messageChannel:f,onMessage:o=function(t){t.data.eventId===i&&("ack"===t.data.status?(clearTimeout(a),s=setTimeout((function(){r(Error("timeout"))}),3e3)):"done"===t.data.status?(clearTimeout(s),"undefined"!==typeof t.data.response?n(t.data.response):r(Error("unknown_error"))):(clearTimeout(a),clearTimeout(s),r(Error("invalid_response"))))}},t.a.push(l),f.port1.addEventListener("message",o),t.c.postMessage({eventType:e,eventId:i,data:u},[f.port2])):r(Error("connection_unavailable"))})).then((function(e){return Eu(t,l),e})).o((function(e){throw Eu(t,l),e}))}function Eu(t,e){if(e){var n=e.messageChannel,r=e.onMessage;n&&(n.port1.removeEventListener("message",r),n.port1.close()),$(t.a,(function(t){return t==e}))}}function ku(){if(!Ou())throw new S("web-storage-unsupported");this.c={},this.a=[],this.b=0,this.u=l.indexedDB,this.type="indexedDB",this.g=this.l=this.f=this.i=null,this.s=!1,this.h=null;var t=this;yr()&&self?(this.l=function(){var t=yr()?self:null;if(W(yu,(function(n){n.b==t&&(e=n)})),!e){var e=new mu(t);yu.push(e)}return e}(),bu(this.l,"keyChanged",(function(e,n){return Pu(t).then((function(e){return 0<e.length&&W(t.a,(function(t){t(e)})),{keyProcessed:K(e,n.key)}}))})),bu(this.l,"ping",(function(){return Oe(["keyChanged"])}))):function(){var t=l.navigator;return t&&t.serviceWorker?Oe().then((function(){return t.serviceWorker.ready})).then((function(t){return t.active||null})).o((function(){return null})):Oe(null)}().then((function(e){(t.h=e)&&(t.g=new _u(new wu(e)),xu(t.g,"ping",null,!0).then((function(e){e[0].fulfilled&&K(e[0].value,"keyChanged")&&(t.s=!0)})).o((function(){})))}))}function Tu(t){return new we((function(e,n){var r=t.u.open("firebaseLocalStorageDb",1);r.onerror=function(t){try{t.preventDefault()}catch(e){}n(Error(t.target.error))},r.onupgradeneeded=function(t){t=t.target.result;try{t.createObjectStore("firebaseLocalStorage",{keyPath:"fbase_key"})}catch(e){n(e)}},r.onsuccess=function(r){(r=r.target.result).objectStoreNames.contains("firebaseLocalStorage")?e(r):function(t){return new we((function(e,n){var r=t.u.deleteDatabase("firebaseLocalStorageDb");r.onsuccess=function(){e()},r.onerror=function(t){n(Error(t.target.error))}}))}(t).then((function(){return Tu(t)})).then((function(t){e(t)})).o((function(t){n(t)}))}}))}function Su(t){return t.m||(t.m=Tu(t)),t.m}function Ou(){try{return!!l.indexedDB}catch(aa){return!1}}function Au(t){return t.objectStore("firebaseLocalStorage")}function Cu(t,e){return t.transaction(["firebaseLocalStorage"],e?"readwrite":"readonly")}function Nu(t){return new we((function(e,n){t.onsuccess=function(t){t&&t.target?e(t.target.result):e()},t.onerror=function(t){n(t.target.error)}}))}function Iu(t,e){return t.g&&t.h&&function(){var t=l.navigator;return t&&t.serviceWorker&&t.serviceWorker.controller||null}()===t.h?xu(t.g,"keyChanged",{key:e},t.s).then((function(){})).o((function(){})):Oe()}function Pu(t){return Su(t).then((function(t){var e=Au(Cu(t,!1));return e.getAll?Nu(e.getAll()):new we((function(t,n){var r=[],i=e.openCursor();i.onsuccess=function(e){(e=e.target.result)?(r.push(e.value),e.continue()):t(r)},i.onerror=function(t){n(t.target.error)}}))})).then((function(e){var n={},r=[];if(0==t.b){for(r=0;r<e.length;r++)n[e[r].fbase_key]=e[r].value;r=function t(e,n){var r,i=[];for(r in e)r in n?typeof e[r]!=typeof n[r]?i.push(r):"object"==typeof e[r]&&null!=e[r]&&null!=n[r]?0<t(e[r],n[r]).length&&i.push(r):e[r]!==n[r]&&i.push(r):i.push(r);for(r in n)r in e||i.push(r);return i}(t.c,n),t.c=n}return r}))}function Mu(t){t.i&&t.i.cancel("STOP_EVENT"),t.f&&(clearTimeout(t.f),t.f=null)}function Du(t){var e=this,n=null;this.a=[],this.type="indexedDB",this.c=t,this.b=Oe().then((function(){if(Ou()){var t=Lr(),r="__sak"+t;return gu||(gu=new ku),(n=gu).set(r,t).then((function(){return n.get(r)})).then((function(e){if(e!==t)throw Error("indexedDB not supported!");return n.T(r)})).then((function(){return n})).o((function(){return e.c}))}return e.c})).then((function(t){return e.type=t.type,t.ba((function(t){W(e.a,(function(e){e(t)}))}
2)),t}))}function Ru(){this.a={},this.type="inMemory"}function Lu(){if(!function(){var t="Node"==br();if(!(t=ju()||t&&r.INTERNAL.node&&r.INTERNAL.node.localStorage))return!1;try{return t.setItem("__sak","1"),t.removeItem("__sak"),!0}catch(e){return!1}}()){if("Node"==br())throw new S("internal-error","The LocalStorage compatibility library was not found.");throw new S("web-storage-unsupported")}this.a=ju()||r.INTERNAL.node.localStorage,this.type="localStorage"}function ju(){try{var t=l.localStorage,e=Lr();return t&&(t.setItem(e,"1"),t.removeItem(e)),t}catch(n){return null}}function Fu(){this.type="nullStorage"}function Uu(){if(!function(){var t="Node"==br();if(!(t=qu()||t&&r.INTERNAL.node&&r.INTERNAL.node.sessionStorage))return!1;try{return t.setItem("__sak","1"),t.removeItem("__sak"),!0}catch(e){return!1}}()){if("Node"==br())throw new S("internal-error","The SessionStorage compatibility library was not found.");throw new S("web-storage-unsupported")}this.a=qu()||r.INTERNAL.node.sessionStorage,this.type="sessionStorage"}function qu(){try{var t=l.sessionStorage,e=Lr();return t&&(t.setItem(e,"1"),t.removeItem(e)),t}catch(n){return null}}function Bu(){var t={};t.Browser=Wu,t.Node=Hu,t.ReactNative=Yu,t.Worker=Gu,this.a=t[br()]}mu.prototype.c=function(t){var e=t.data.eventType,n=t.data.eventId,r=this.a[e];if(r&&0<r.length){t.ports[0].postMessage({status:"ack",eventId:n,eventType:e,response:null});var i=[];W(r,(function(e){i.push(Oe().then((function(){return e(t.origin,t.data.data)})))})),Ne(i).then((function(r){var i=[];W(r,(function(t){i.push({fulfilled:t.Mb,value:t.value,reason:t.reason?t.reason.message:void 0})})),W(i,(function(t){for(var e in t)"undefined"===typeof t[e]&&delete t[e]})),t.ports[0].postMessage({status:"done",eventId:n,eventType:e,response:i})}))}},wu.prototype.postMessage=function(t,e){this.a.postMessage(t,e)},_u.prototype.close=function(){for(;0<this.a.length;)Eu(this,this.a[0]);this.b=!0},(e=ku.prototype).set=function(t,e){var n,r=!1,i=this;return Su(this).then((function(e){return Nu((e=Au(Cu(n=e,!0))).get(t))})).then((function(o){var a=Au(Cu(n,!0));return o?(o.value=e,Nu(a.put(o))):(i.b++,r=!0,(o={}).fbase_key=t,o.value=e,Nu(a.add(o)))})).then((function(){return i.c[t]=e,Iu(i,t)})).ma((function(){r&&i.b--}))},e.get=function(t){return Su(this).then((function(e){return Nu(Au(Cu(e,!1)).get(t))})).then((function(t){return t&&t.value}))},e.T=function(t){var e=!1,n=this;return Su(this).then((function(r){return e=!0,n.b++,Nu(Au(Cu(r,!0)).delete(t))})).then((function(){return delete n.c[t],Iu(n,t)})).ma((function(){e&&n.b--}))},e.ba=function(t){0==this.a.length&&function(t){Mu(t),function e(){t.f=setTimeout((function(){t.i=Pu(t).then((function(e){0<e.length&&W(t.a,(function(t){t(e)}))})).then((function(){e()})).o((function(t){"STOP_EVENT"!=t.message&&e()}))}),800)}()}(this),this.a.push(t)},e.ha=function(t){$(this.a,(function(e){return e==t})),0==this.a.length&&Mu(this)},(e=Du.prototype).get=function(t){return this.b.then((function(e){return e.get(t)}))},e.set=function(t,e){return this.b.then((function(n){return n.set(t,e)}))},e.T=function(t){return this.b.then((function(e){return e.T(t)}))},e.ba=function(t){this.a.push(t)},e.ha=function(t){$(this.a,(function(e){return e==t}))},(e=Ru.prototype).get=function(t){return Oe(this.a[t])},e.set=function(t,e){return this.a[t]=e,Oe()},e.T=function(t){return delete this.a[t],Oe()},e.ba=function(){},e.ha=function(){},(e=Lu.prototype).get=function(t){var e=this;return Oe().then((function(){return Rr(e.a.getItem(t))}))},e.set=function(t,e){var n=this;return Oe().then((function(){var r=Mr(e);null===r?n.T(t):n.a.setItem(t,r)}))},e.T=function(t){var e=this;return Oe().then((function(){e.a.removeItem(t)}))},e.ba=function(t){l.window&&un(l.window,"storage",t)},e.ha=function(t){l.window&&fn(l.window,"storage",t)},(e=Fu.prototype).get=function(){return Oe(null)},e.set=function(){return Oe()},e.T=function(){return Oe()},e.ba=function(){},e.ha=function(){},(e=Uu.prototype).get=function(t){var e=this;return Oe().then((function(){return Rr(e.a.getItem(t))}))},e.set=function(t,e){var n=this;return Oe().then((function(){var r=Mr(e);null===r?n.T(t):n.a.setItem(t,r)}))},e.T=function(t){var e=this;return Oe().then((function(){e.a.removeItem(t)}))},e.ba=function(){},e.ha=function(){};var Vu,zu,Wu={F:Lu,$a:Uu},Hu={F:Lu,$a:Uu},Yu={F:vu,$a:Fu},Gu={F:Lu,$a:Fu},Ku={od:"local",NONE:"none",qd:"session"};function Xu(){var t=!(jr(Sr())||!gr()),e=Pr(),n=Ar();this.m=t,this.h=e,this.l=n,this.a={},Vu||(Vu=new Bu),t=Vu;
2try{this.g=!sr()&&Vr()||!l.indexedDB?new t.a.F:new Du(yr()?new Ru:new t.a.F)}catch(r){this.g=new Ru,this.h=!0}try{this.i=new t.a.$a}catch(r){this.i=new Ru}this.u=new Ru,this.f=x(this.Vb,this),this.b={}}function $u(){return zu||(zu=new Xu),zu}function Zu(t,e){switch(e){case"session":return t.i;case"none":return t.u;default:return t.g}}function Qu(t,e){return"firebase:"+t.name+(e?":"+e:"")}function Ju(t,e,n){return n=Qu(e,n),"local"==e.F&&(t.b[n]=null),Zu(t,e.F).T(n)}function tl(t){t.c&&(clearInterval(t.c),t.c=null)}function el(t){this.a=t,this.b=$u()}(e=Xu.prototype).get=function(t,e){return Zu(this,t.F).get(Qu(t,e))},e.set=function(t,e,n){var r=Qu(t,n),i=this,o=Zu(this,t.F);return o.set(r,e).then((function(){return o.get(r)})).then((function(e){"local"==t.F&&(i.b[r]=e)}))},e.addListener=function(t,e,n){t=Qu(t,e),this.l&&(this.b[t]=l.localStorage.getItem(t)),pt(this.a)&&(Zu(this,"local").ba(this.f),this.h||(sr()||!Vr())&&l.indexedDB||!this.l||function(t){tl(t),t.c=setInterval((function(){for(var e in t.a){var n=l.localStorage.getItem(e),r=t.b[e];n!=r&&(t.b[e]=n,n=new $e({type:"storage",key:e,target:window,oldValue:r,newValue:n,a:!0}),t.Vb(n))}}),1e3)}(this)),this.a[t]||(this.a[t]=[]),this.a[t].push(n)},e.removeListener=function(t,e,n){t=Qu(t,e),this.a[t]&&($(this.a[t],(function(t){return t==n})),0==this.a[t].length&&delete this.a[t]),pt(this.a)&&(Zu(this,"local").ha(this.f),tl(this))},e.Vb=function(t){if(t&&t.f){var e=t.a.key;if(null==e)for(var n in this.a){var r=this.b[n];"undefined"===typeof r&&(r=null);var i=l.localStorage.getItem(n);i!==r&&(this.b[n]=i,this.ib(n))}else if(0==e.indexOf("firebase:")&&this.a[e]){if("undefined"!==typeof t.a.a?Zu(this,"local").ha(this.f):tl(this),this.m)if(n=l.localStorage.getItem(e),(r=t.a.newValue)!==n)null!==r?l.localStorage.setItem(e,r):l.localStorage.removeItem(e);else if(this.b[e]===r&&"undefined"===typeof t.a.a)return;var o=this;n=function(){"undefined"===typeof t.a.a&&o.b[e]===l.localStorage.getItem(e)||(o.b[e]=l.localStorage.getItem(e),o.ib(e))},Gt&&ne&&10==ne&&l.localStorage.getItem(e)!==t.a.newValue&&t.a.newValue!==t.a.oldValue?setTimeout(n,10):n()}}else W(t,x(this.ib,this))},e.ib=function(t){this.a[t]&&W(this.a[t],(function(t){t()}))};var nl,rl={name:"authEvent",F:"local"};function il(){this.a=$u()}function ol(t,e){this.b=al,this.f=l.Uint8Array?new Uint8Array(this.b):Array(this.b),this.g=this.c=0,this.a=[],this.i=t,this.h=e,this.l=l.Int32Array?new Int32Array(64):Array(64),void 0===nl&&(nl=l.Int32Array?new Int32Array(dl):dl),this.reset()}T(ol,(function(){this.b=-1}));for(var al=64,sl=al-1,ul=[],ll=0;ll<sl;ll++)ul[ll]=0;var cl=Z(128,ul);function fl(t){for(var e=t.f,n=t.l,r=0,i=0;i<e.length;)n[r++]=e[i]<<24|e[i+1]<<16|e[i+2]<<8|e[i+3],i=4*r;for(e=16;64>e;e++){i=0|n[e-15],r=0|n[e-2];var o=(0|n[e-16])+((i>>>7|i<<25)^(i>>>18|i<<14)^i>>>3)|0,a=(0|n[e-7])+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)|0;n[e]=o+a|0}r=0|t.a[0],i=0|t.a[1];var s=0|t.a[2],u=0|t.a[3],l=0|t.a[4],c=0|t.a[5],f=0|t.a[6];for(o=0|t.a[7],e=0;64>e;e++){var h=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&i^r&s^i&s)|0;a=(o=o+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))|0)+((a=(a=l&c^~l&f)+(0|nl[e])|0)+(0|n[e])|0)|0,o=f,f=c,c=l,l=u+a|0,u=s,s=i,i=r,r=a+h|0}t.a[0]=t.a[0]+r|0,t.a[1]=t.a[1]+i|0,t.a[2]=t.a[2]+s|0,t.a[3]=t.a[3]+u|0,t.a[4]=t.a[4]+l|0,t.a[5]=t.a[5]+c|0,t.a[6]=t.a[6]+f|0,t.a[7]=t.a[7]+o|0}function hl(t,e,n){void 0===n&&(n=e.length);var r=0,i=t.c;if("string"===typeof e)for(;r<n;)t.f[i++]=e.charCodeAt(r++),i==t.b&&(fl(t),i=0);else{if(!p(e))throw Error("message must be string or array");for(;r<n;){var o=e[r++];if(!("number"==typeof o&&0<=o&&255>=o&&o==(0|o)))throw Error("message must be a byte array");t.f[i++]=o,i==t.b&&(fl(t),i=0)}}t.c=i,t.g+=n}ol.prototype.reset=function(){this.g=this.c=0,this.a=l.Int32Array?new Int32Array(this.h):Q(this.h)};var dl=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756
2734187,3204031479,3329325298];function pl(){ol.call(this,8,vl)}T(pl,ol);var vl=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function ml(t,e,n,r,i){this.u=t,this.i=e,this.l=n,this.m=r||null,this.s=i||null,this.h=e+":"+n,this.w=new il,this.g=new el(this.h),this.f=null,this.b=[],this.a=this.c=null}function gl(t){return new S("invalid-cordova-configuration",t)}function yl(t){var e=new pl;hl(e,t),t=[];var n=8*e.g;56>e.c?hl(e,cl,56-e.c):hl(e,cl,e.b-(e.c-56));for(var r=63;56<=r;r--)e.f[r]=255&n,n/=256;for(fl(e),r=n=0;r<e.i;r++)for(var i=24;0<=i;i-=8)t[n++]=e.a[r]>>i&255;return function(t){return Y(t,(function(t){return 1<(t=t.toString(16)).length?t:"0"+t})).join("")}(t)}function bl(t,e){for(var n=0;n<t.b.length;n++)try{t.b[n](e)}catch(r){}}function wl(t){return t.f||(t.f=t.ka().then((function(){return new we((function(e){t.Ca((function n(r){return e(r),t.Qa(n),!1})),function(t){function e(e){r=!0,i&&i.cancel(),_l(t).then((function(r){var i=n;if(r&&e&&e.url){var o=null;-1!=(i=no(e.url)).indexOf("/__/auth/callback")&&(o=(o="object"===typeof(o=Rr(jn(o=Fn(i),"firebaseError")||null))?O(o):null)?new Fo(r.c,r.b,null,null,o,null,r.S()):new Fo(r.c,r.b,i,r.f,null,null,r.S())),i=o||n}bl(t,i)}))}var n=new Fo("unknown",null,null,null,new S("no-auth-event")),r=!1,i=Tn(500).then((function(){return _l(t).then((function(){r||bl(t,n)}))})),o=l.handleOpenURL;l.handleOpenURL=function(t){if(0==t.toLowerCase().indexOf(Or("BuildInfo.packageName",l).toLowerCase()+"://")&&e({url:t}),"function"===typeof o)try{o(t)}catch(n){console.error(n)}},Vo||(Vo=new qo),function(t){var e=Vo;e.a.push(t),e.b||(e.b=function(t){for(var n=0;n<e.a.length;n++)e.a[n](t)},"function"===typeof(t=Or("universalLinks.subscribe",l))&&t(null,e.b))}(e)}(t)}))}))),t.f}function _l(t){var e=null;return function(t){return t.b.get(rl,t.a).then((function(t){return Uo(t)}))}(t.g).then((function(n){return e=n,Ju((n=t.g).b,rl,n.a)})).then((function(){return e}))}function xl(t){this.a=t,this.b=$u()}(e=ml.prototype).ka=function(){return this.Ga?this.Ga:this.Ga=(mr(void 0)?vr().then((function(){return new we((function(t,e){var n=l.document,r=setTimeout((function(){e(Error("Cordova framework is not ready."))}),1e3);n.addEventListener("deviceready",(function(){clearTimeout(r),t()}),!1)}))})):Ae(Error("Cordova must run in an Android or iOS file scheme."))).then((function(){if("function"!==typeof Or("universalLinks.subscribe",l))throw gl("cordova-universal-links-plugin-fix is not installed");if("undefined"===typeof Or("BuildInfo.packageName",l))throw gl("cordova-plugin-buildinfo is not installed");if("function"!==typeof Or("cordova.plugins.browsertab.openUrl",l))throw gl("cordova-plugin-browsertab is not installed");if("function"!==typeof Or("cordova.InAppBrowser.open",l))throw gl("cordova-plugin-inappbrowser is not installed")}),(function(){throw new S("cordova-not-ready")}))},e.Lb=function(t,e){return e(new S("operation-not-supported-in-this-environment")),Oe()},e.Jb=function(){return Ae(new S("operation-not-supported-in-this-environment"))},e.Xb=function(){return!1},e.Ub=function(){return!0},e.Qb=function(){return!0},e.Kb=function(t,e,n,r){if(this.c)return Ae(new S("redirect-operation-pending"));var i=this,o=l.document,a=null,s=null,u=null,c=null;return this.c=Oe().then((function(){return jo(e),wl(i)})).then((function(){return function(t,e,n,r,i){var o=function(){for(var t=20,e=[];0<t;)e.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),t--;return e.join("")}(),a=new Fo(e,r,null,o,new S("no-auth-event"),null,i),s=Or("BuildInfo.packageName",l);if("string"!==typeof s)throw new S("invalid-cordova-configuration");var u=Or("BuildInfo.displayName",l),c={};if(Sr().toLowerCase().match(/iphone|ipad|ipod/))c.ibi=s;else{if(!Sr().toLowerCase().match(/android/))return Ae(new S("operation-not-supported-in-this-environment"));c.apn=s}u&&(c.appDisplayName=u),o=yl(o),c.sessionId=o;var f=pu(t.u,t.i,t.l,e,n,null,r,t.m,c,t.s,i);return t.ka().then((function(){var e=t.h;return t.w.a.set(rl,a.v(),e)})).then((function(){var e=Or("cordova.plugins.browsertab.isAvailable",l);if("function"!==typeof e)throw new S("invalid-cordova-configuration");var n=null;e((function(e){if(e){if("function"!==typeof(n=Or("cordova.plugins.browsertab.openUrl",l)))throw new S("invalid-cordova-configuration");n(f)}else{if("function"!==typeof(n=Or("cordova.InAppBrowser.open",l)))throw new S("invalid-cordova-configuration");e=Sr(),t.a=n(f,e.match(/(iPad|iPhone|iPod).*OS 7_\d/i)||e.match(/(iPad|iPhone|iPod).*OS 8_\d/i)?"_blank":"_system","location=yes")}}))}))}(i,t,e,n,r)})).then((function(){return new we((function(t,e){s=function(){var e=Or("cordova.plugins.browsertab.close",l);return t(),"function"===typeof e&&e(),i.a&&"function"===typeof i.a.close&&(i.a.close(),i.a=null),!1},i.Ca(s),u=function(){a||(a=Tn(2e3).then((function(){e(new S("redirect-cancelled-by-user"))})))},c=function(){qr()&&u()},o.addEventListener("resume",u,!1),Sr().toLowerCase().match(/android/)||o.addEventListener("visibilitychange",c,!1)})).o((function(t){return _l(i).then((function(){throw t}))}))})).ma((function(){u&&o.removeEventListener("resume",u,!1),c&&o.removeEventListener("visibilitychange",c,!1),a&&a.cancel(),s&&i.Qa(s),i.c=null}))},e.Ca=function(t){this.b.push(t),wl(this).o((function(e){"auth/invalid-cordova-configuration"===e.code&&(e=new Fo("unknown",null,null,null,new S("no-auth-event")),t(e))}))},e.Qa=function(t){$(this.b,(function(e){return e==t}))};var El={name:"pendingRedirect",F:"session"};function kl(t){return Ju(t.b,El,t.a)}function Tl(t,e,n){this.i={},this.w=0,this.D=t,this.u=e,this.m=n,this.h=[],this.f=!1,this.l=x(this.s,this),this.b=new Ul,this.B=new Wl,this.g=new xl(this.u+":"+this.m),this.c={},this.c.unknown=this.b,this.c.signInViaRedirect=this.b,this.c.linkViaRedirect=this.b,this.c.reauthViaRedirect=this.b,this.c.signInViaPopup=this.B,this.c.linkViaPopup=this.B,this.c.reauthViaPopup=this.B,this.a=Sl(this.D,this.u,this.m,A)}function Sl(t,e,n,i){var o=r.SDK_VERSION||null;return mr()?new ml(t,e,n,o,i):new cu(t,e,n,o,i)}
2function Ol(t){t.f||(t.f=!0,t.a.Ca(t.l));var e=t.a;return t.a.ka().o((function(n){throw t.a==e&&t.reset(),n}))}function Al(t){t.a.Ub()&&Ol(t).o((function(e){var n=new Fo("unknown",null,null,null,new S("operation-not-supported-in-this-environment"));Dl(e)&&t.s(n)})),t.a.Qb()||ql(t.b)}function Cl(t,e){K(t.h,e)||t.h.push(e),t.f||function(t){return t.b.get(El,t.a).then((function(t){return"pending"==t}))}(t.g).then((function(e){e?kl(t.g).then((function(){Ol(t).o((function(e){var n=new Fo("unknown",null,null,null,new S("operation-not-supported-in-this-environment"));Dl(e)&&t.s(n)}))})):Al(t)})).o((function(){Al(t)}))}function Nl(t,e){$(t.h,(function(t){return t==e}))}Tl.prototype.reset=function(){this.f=!1,this.a.Qa(this.l),this.a=Sl(this.D,this.u,this.m),this.i={}},Tl.prototype.s=function(t){if(!t)throw new S("invalid-auth-event");if(6e5<=k()-this.w&&(this.i={},this.w=0),t&&t.getUid()&&this.i.hasOwnProperty(t.getUid()))return!1;for(var e=!1,n=0;n<this.h.length;n++){var r=this.h[n];if(r.Cb(t.c,t.b)){(e=this.c[t.c])&&(e.h(t,r),t&&(t.f||t.b)&&(this.i[t.getUid()]=!0,this.w=k())),e=!0;break}}return ql(this.b),e};var Il=new Ur(2e3,1e4),Pl=new Ur(3e4,6e4);function Ml(t,e,n,r,i,o,a){return t.a.Jb(e,n,r,(function(){t.f||(t.f=!0,t.a.Ca(t.l))}),(function(){t.reset()}),i,o,a)}function Dl(t){return!(!t||"auth/cordova-not-ready"!=t.code)}function Rl(t,e,n,r,i){var o;return function(t){return t.b.set(El,"pending",t.a)}(t.g).then((function(){return t.a.Kb(e,n,r,i).o((function(e){if(Dl(e))throw new S("operation-not-supported-in-this-environment");return o=e,kl(t.g).then((function(){throw o}))})).then((function(){return t.a.Xb()?new we((function(){})):kl(t.g).then((function(){return t.pa()})).then((function(){})).o((function(){}))}))}))}function Ll(t,e,n,r,i){return t.a.Lb(r,(function(t){e.la(n,null,t,i)}),Il.get())}Tl.prototype.pa=function(){return this.b.pa()};var jl={};function Fl(t,e,n){var r=e+":"+n;return jl[r]||(jl[r]=new Tl(t,e,n)),jl[r]}function Ul(){this.b=null,this.f=[],this.c=[],this.a=null,this.i=this.g=!1}function ql(t){t.g||(t.g=!0,zl(t,!1,null,null))}function Bl(t){t.g&&!t.i&&zl(t,!1,null,null)}function Vl(t,e){if(t.b=function(){return Oe(e)},t.f.length)for(var n=0;n<t.f.length;n++)t.f[n](e)}function zl(t,e,n,r){e?r?function(t,e){if(t.b=function(){return Ae(e)},t.c.length)for(var n=0;n<t.c.length;n++)t.c[n](e)}(t,r):Vl(t,n):Vl(t,{user:null}),t.f=[],t.c=[]}function Wl(){}function Hl(){this.Bb=!1,Object.defineProperty(this,"appVerificationDisabled",{get:function(){return this.Bb},set:function(t){this.Bb=t},enumerable:!1})}function Yl(t,e){this.a=e,Gr(this,"verificationId",t)}function Gl(t,e,n,r){return new Do(t).cb(e,n).then((function(t){return new Yl(t,r)}))}function Kl(t){var e=Vi(t);if(!(e&&e.exp&&e.auth_time&&e.iat))throw new S("internal-error","An internal error occurred. The token obtained by Firebase appears to be malformed. Please retry the operation.");Kr(this,{token:t,expirationTime:Br(1e3*e.exp),authTime:Br(1e3*e.auth_time),issuedAtTime:Br(1e3*e.iat),signInProvider:e.firebase&&e.firebase.sign_in_provider?e.firebase.sign_in_provider:null,signInSecondFactor:e.firebase&&e.firebase.sign_in_second_factor?e.firebase.sign_in_second_factor:null,claims:e})}function Xl(t,e,n){var r=e&&e[Zl];if(!r)throw new S("argument-error","Internal assert: Invalid MultiFactorResolver");this.a=t,this.f=vt(e),this.g=n,this.c=new ro(null,r),this.b=[];var i=this;W(e[$l]||[],(function(t){(t=Qr(t))&&i.b.push(t)})),Gr(this,"auth",this.a),Gr(this,"session",this.c),Gr(this,"hints",this.b)}Ul.prototype.reset=function(){this.b=null,this.a&&(this.a.cancel(),this.a=null)},Ul.prototype.h=function(t,e){if(t){this.reset(),this.g=!0;var n=t.c,r=t.b,i=t.a&&"auth/web-storage-unsupported"==t.a.code,o=t.a&&"auth/operation-not-supported-in-this-environment"==t.a.code;this.i=!(!i&&!o),"unknown"!=n||i||o?t.a?(zl(this,!0,null,t.a),Oe()):e.Da(n,r)?function(t,e,n){n=n.Da(e.c,e.b);var r=e.g,i=e.f,o=e.i,a=e.S(),s=!!e.c.match(/Redirect$/);n(r,i,a,o).then((function(e){zl(t,s,e,null)})).o((function(e){zl(t,s,null,e)}))}(this,t,e):Ae(new S("invalid-auth-event")):(zl(this,!1,null,null),Oe())}else Ae(new S("invalid-auth-event"))},Ul.prototype.pa=function(){var t=this;return new we((function(e,n){t.b?t.b().then(e,n):(t.f.push(e),t.c.push(n),function(t){var e=new S("timeout");t.a&&t.a.cancel(),t.a=Tn(Pl.get()).then((function(){t.b||(t.g=!0,zl(t,!0,null,e))}))}(t))}))},Wl.prototype.h=function(t,e){if(t){var n=t.c,r=t.b;t.a?(e.la(t.c,null,t.a,t.b),Oe()):e.Da(n,r)?function(t,e){var n=t.b,r=t.c;e.Da(r,n)(t.g,t.f,t.S(),t.i).then((function(t){e.la(r,t,null,n)})).o((function(t){e.la(r,null,t,n)}))}(t,e):Ae(new S("invalid-auth-event"))}else Ae(new S("invalid-auth-event"))},Yl.prototype.confirm=function(t){return t=Ro(this.verificationId,t),this.a(t)};var $l="mfaInfo",Zl="mfaPendingCredential";function Ql(t,e,n,r){S.call(this,"multi-factor-auth-required",r,e),this.b=new Xl(t,e,n),Gr(this,"resolver",this.b)}function Jl(t,e,n){if(t&&m(t.serverResponse)&&"auth/multi-factor-auth-required"===t.code)try{return new Ql(e,t.serverResponse,n,t.message)}catch(r){}return null}function tc(){}function ec(t){Gr(this,"factorId",t.ea),this.a=t}function nc(t){if(ec.call(this,t),this.a.ea!=Do.PROVIDER_ID)throw new S("argument-error","firebase.auth.PhoneMultiFactorAssertion requires a valid firebase.auth.PhoneAuthCredential")}function rc(t,e){for(var n in Xe.call(this,t),e)this[n]=e[n]}function ic(t,e){this.a=t,this.b=[],this.c=x(this.wc,this),un(this.a,"userReloaded",this.c);var n=[];e&&e.multiFactor&&e.multiFactor.enrolledFactors&&W(e.multiFactor.enrolledFactors,(function(t){var e=null,r={};
2if(t){t.uid&&(r[ei]=t.uid),t.displayName&&(r[Jr]=t.displayName),t.enrollmentTime&&(r[ti]=new Date(t.enrollmentTime).toISOString()),t.phoneNumber&&(r[ni]=t.phoneNumber);try{e=new ri(r)}catch(i){}t=e}else t=null;t&&n.push(t)})),oc(this,n)}function oc(t,e){t.b=e,Gr(t,"enrolledFactors",e)}function ac(t,e,n){if(this.h=t,this.i=e,this.g=n,this.c=3e4,this.f=96e4,this.b=null,this.a=this.c,this.f<this.c)throw Error("Proactive refresh lower bound greater than upper bound!")}function sc(t){this.c=t,this.b=this.a=null}function uc(t){return t.b&&1e3*t.b.c||0}function lc(t,e){var n=e.refreshToken;t.b=Bi(e[$a]||""),t.a=n}function cc(t,e){return function(t,e){return new we((function(n,r){"refresh_token"==e.grant_type&&e.refresh_token||"authorization_code"==e.grant_type&&e.code?rs(t,t.u+"?key="+encodeURIComponent(t.c),(function(t){t?t.error?r(eu(t)):t.access_token&&t.refresh_token?n(t):r(new S("internal-error")):r(new S("network-request-failed"))}),"POST",$n(e).toString(),t.g,t.m.get()):r(new S("internal-error"))}))}(t.c,e).then((function(e){return t.b=Bi(e.access_token),t.a=e.refresh_token,{accessToken:t.b.toString(),refreshToken:t.a}})).o((function(e){throw"auth/user-token-expired"==e.code&&(t.a=null),e}))}function fc(t,e){this.a=t||null,this.b=e||null,Kr(this,{lastSignInTime:Br(e||null),creationTime:Br(t||null)})}function hc(t,e,n,r,i,o){Kr(this,{uid:t,displayName:r||null,photoURL:i||null,email:n||null,phoneNumber:o||null,providerId:e})}function dc(t,e,n){this.N=[],this.l=t.apiKey,this.m=t.appName,this.s=t.authDomain||null,t=r.SDK_VERSION?Tr(r.SDK_VERSION):null,this.a=new Ka(this.l,P(A),t),this.b=new sc(this.a),wc(this,e[$a]),lc(this.b,e),Gr(this,"refreshToken",this.b.a),Ec(this,n||{}),wn.call(this),this.P=!1,this.s&&Cr()&&(this.i=Fl(this.s,this.l,this.m)),this.R=[],this.h=null,this.B=function(t){return new ac((function(){return t.I(!0)}),(function(t){return!(!t||"auth/network-request-failed"!=t.code)}),(function(){var e=uc(t.b)-k()-3e5;return 0<e?e:0}))}(this),this.Z=x(this.Ma,this);var i=this;this.oa=null,this.za=function(t){i.va(t.g)},this.aa=null,this.W=[],this.ya=function(t){vc(i,t.c)},this.$=null,this.O=new ic(this,n),Gr(this,"multiFactor",this.O)}function pc(t,e){t.aa&&fn(t.aa,"languageCodeChanged",t.za),(t.aa=e)&&un(e,"languageCodeChanged",t.za)}function vc(t,e){t.W=e,ns(t.a,r.SDK_VERSION?Tr(r.SDK_VERSION,t.W):null)}function mc(t,e){t.$&&fn(t.$,"frameworkChanged",t.ya),(t.$=e)&&un(e,"frameworkChanged",t.ya)}function gc(t){try{return r.app(t.m).auth()}catch(e){throw new S("internal-error","No firebase.auth.Auth instance is available for the Firebase App '"+t.m+"'!")}}function yc(t){t.D||t.B.b||(t.B.start(),fn(t,"tokenChanged",t.Z),un(t,"tokenChanged",t.Z))}function bc(t){fn(t,"tokenChanged",t.Z),t.B.stop()}function wc(t,e){t.xa=e,Gr(t,"_lat",e)}function _c(t){for(var e=[],n=0;n<t.R.length;n++)e.push(t.R[n](t));return Ne(e).then((function(){return t}))}function xc(t){t.i&&!t.P&&(t.P=!0,Cl(t.i,t))}function Ec(t,e){Kr(t,{uid:e.uid,displayName:e.displayName||null,photoURL:e.photoURL||null,email:e.email||null,emailVerified:e.emailVerified||!1,phoneNumber:e.phoneNumber||null,isAnonymous:e.isAnonymous||!1,tenantId:e.tenantId||null,metadata:new fc(e.createdAt,e.lastLoginAt),providerData:[]}),t.a.b=t.tenantId}function kc(){}function Tc(t){return Oe().then((function(){if(t.D)throw new S("app-deleted")}))}function Sc(t){return Y(t.providerData,(function(t){return t.providerId}))}function Oc(t,e){e&&(Ac(t,e.providerId),t.providerData.push(e))}function Ac(t,e){$(t.providerData,(function(t){return t.providerId==e}))}function Cc(t,e,n){("uid"!=e||n)&&t.hasOwnProperty(e)&&Gr(t,e,n)}function Nc(t,e){t!=e&&(Kr(t,{uid:e.uid,displayName:e.displayName,photoURL:e.photoURL,email:e.email,emailVerified:e.emailVerified,phoneNumber:e.phoneNumber,isAnonymous:e.isAnonymous,tenantId:e.tenantId,providerData:[]}),e.metadata?Gr(t,"metadata",function(t){return new fc(t.a,t.b)}(e.metadata)):Gr(t,"metadata",new fc),W(e.providerData,(function(e){Oc(t,e)})),function(t,e){t.b=e.b,t.a=e.a}(t.b,e.b),Gr(t,"refreshToken",t.b.a),oc(t.O,e.O.b))}function Ic(t){return t.I().then((function(e){var n=t.isAnonymous;return function(t,e){return Js(t.a,Ns,{idToken:e}).then(x(t.Ic,t))}(t,e).then((function(){return n||Cc(t,"isAnonymous",!1),e}))}))}function Pc(t,e){e[$a]&&t.xa!=e[$a]&&(lc(t.b,e),t.dispatchEvent(new rc("tokenChanged")),wc(t,e[$a]),
2Cc(t,"refreshToken",t.b.a))}function Mc(t,e){return Ic(t).then((function(){if(K(Sc(t),e))return _c(t).then((function(){throw new S("provider-already-linked")}))}))}function Dc(t,e,n){return Xr({user:t,credential:Lo(e),additionalUserInfo:e=Gi(e),operationType:n})}function Rc(t,e){return Pc(t,e),t.reload().then((function(){return t}))}function Lc(t,e,n,i,o){if(!Cr())return Ae(new S("operation-not-supported-in-this-environment"));if(t.h&&!o)return Ae(t.h);var a=Yi(n.providerId),s=Lr(t.uid+":::"),u=null;(!Pr()||gr())&&t.s&&n.isOAuthProvider&&(u=pu(t.s,t.l,t.m,e,n,null,s,r.SDK_VERSION||null,null,null,t.tenantId));var l=hr(u,a&&a.ta,a&&a.sa);return i=i().then((function(){if(Fc(t),!o)return t.I().then((function(){}))})).then((function(){return Ml(t.i,l,e,n,s,!!u,t.tenantId)})).then((function(){return new we((function(n,r){t.la(e,null,new S("cancelled-popup-request"),t.g||null),t.f=n,t.w=r,t.g=s,t.c=Ll(t.i,t,e,l,s)}))})).then((function(t){return l&&fr(l),t?Xr(t):null})).o((function(t){throw l&&fr(l),t})),Uc(t,i,o)}function jc(t,e,n,r,i){if(!Cr())return Ae(new S("operation-not-supported-in-this-environment"));if(t.h&&!i)return Ae(t.h);var o=null,a=Lr(t.uid+":::");return r=r().then((function(){if(Fc(t),!i)return t.I().then((function(){}))})).then((function(){return t.fa=a,_c(t)})).then((function(e){return t.ga&&(e=(e=t.ga).b.set(Vc,t.v(),e.a)),e})).then((function(){return Rl(t.i,e,n,a,t.tenantId)})).o((function(e){if(o=e,t.ga)return zc(t.ga);throw o})).then((function(){if(o)throw o})),Uc(t,r,i)}function Fc(t){if(!t.i||!t.P){if(t.i&&!t.P)throw new S("internal-error");throw new S("auth-domain-config-required")}}function Uc(t,e,n){var r=function(t,e,n){return t.h&&!n?(e.cancel(),Ae(t.h)):e.o((function(e){throw!e||"auth/user-disabled"!=e.code&&"auth/user-token-expired"!=e.code||(t.h||t.dispatchEvent(new rc("userInvalidated")),t.h=e),e}))}(t,e,n);return t.N.push(r),r.ma((function(){X(t.N,r)})),r.o((function(e){var n=null;throw e&&"auth/multi-factor-auth-required"===e.code&&(n=Jl(e.v(),gc(t),x(t.hc,t))),n||e}))}function qc(t){if(!t.apiKey)return null;var e={apiKey:t.apiKey,authDomain:t.authDomain,appName:t.appName},n={};if(!t.stsTokenManager||!t.stsTokenManager.accessToken)return null;n[$a]=t.stsTokenManager.accessToken,n.refreshToken=t.stsTokenManager.refreshToken||null;var r=new dc(e,n,t);return t.providerData&&W(t.providerData,(function(t){t&&Oc(r,Xr(t))})),t.redirectEventId&&(r.fa=t.redirectEventId),r}function Bc(t){this.a=t,this.b=$u()}Xl.prototype.Pc=function(t){var e=this;return t.ob(this.a.b,this.c).then((function(t){var n=vt(e.f);return delete n[$l],delete n[Zl],gt(n,t),e.g(n)}))},T(Ql,S),tc.prototype.ob=function(t,e,n){return e.type==io?function(t,e,n,r){return n.Fa().then((function(n){return n={idToken:n},"undefined"!==typeof r&&(n.displayName=r),gt(n,{phoneVerificationInfo:Mo(t.a)}),Js(e,As,n)}))}(this,t,e,n):function(t,e,n){return n.Fa().then((function(n){return gt(n={mfaPendingCredential:n},{phoneVerificationInfo:Mo(t.a)}),Js(e,Cs,n)}))}(this,t,e)},T(ec,tc),T(nc,ec),T(rc,Xe),(e=ic.prototype).wc=function(t){oc(this,function(t){var e=[];return W(t.mfaInfo||[],(function(t){(t=Qr(t))&&e.push(t)})),e}(t.ed))},e.Ob=function(){return this.a.I().then((function(t){return new ro(t,null)}))},e.dc=function(t,e){var n=this,r=this.a.a;return this.Ob().then((function(n){return t.ob(r,n,e)})).then((function(t){return Pc(n.a,t),n.a.reload()}))},e.$c=function(t){var e=this,n="string"===typeof t?t:t.uid,r=this.a.a;return this.a.I().then((function(t){return Js(r,Qs,{idToken:t,mfaEnrollmentId:n})})).then((function(t){var r=H(e.b,(function(t){return t.uid!=n}));return oc(e,r),Pc(e.a,t),e.a.reload().o((function(t){if("auth/user-token-expired"!=t.code)throw t}))}))},e.v=function(){return{multiFactor:{enrolledFactors:Y(this.b,(function(t){return t.v()}))}}},ac.prototype.start=function(){this.a=this.c,function t(e,n){e.stop(),e.b=Tn(function(t,e){return e?(t.a=t.c,t.g()):(e=t.a,t.a*=2,t.a>t.f&&(t.a=t.f),e)}(e,n)).then((function(){return function(){var t=l.document,e=null;return qr()||!t?Oe():new we((function(n){e=function(){qr()&&(t.removeEventListener("visibilitychange",e,!1),n())},t.addEventListener("visibilitychange",e,!1)})).o((function(n){throw t.removeEventListener("visibilitychange",e,!1),n}))}()})).then((function(){return e.h()})).then((function(){t(e,!0)})).o((function(n){e.i(n)&&t(e,!1)}))}(this,!0)},ac.prototype.stop=function(){this.b&&(this.b.cancel(),this.b=null)},sc.prototype.v=function(){return{apiKey:this.c.c,refreshToken:this.a,accessToken:this.b&&this.b.toString(),expirationTime:uc(this)}},sc.prototype.getToken=function(t){return t=!!t,this.b&&!this.a?Ae(new S("user-token-expired")):t||!this.b||k()>uc(this)-3e4?this.a?cc(this,{grant_type:"refresh_token",refresh_token:this.a}):Oe(null):Oe({accessToken:this.b.toString(),refreshToken:this.a})},fc.prototype.v=function(){return{lastLoginAt:this.b,createdAt:this.a}},T(dc,wn),dc.prototype.va=function(t){this.oa=t,es(this.a,t)},dc.prototype.ja=function(){return this.oa},dc.prototype.Ea=function(){return Q(this.W)},dc.prototype.Ma=function(){this.B.b&&(this.B.stop(),this.B.start())},Gr(dc.prototype,"providerId","firebase"),(e=dc.prototype).reload=function(){var t=this;return Uc(this,Tc(this).then((function(){return Ic(t).then((function(){return _c(t)})).then(kc)})))},e.mc=function(t){return this.I(t).then((function(t){return new Kl(t)}))},e.I=function(t){var e=this;return Uc(this,Tc(this).then((function(){return e.b.getToken(t)})).then((function(t){if(!t)throw new S("internal-error");return t.accessToken!=e.xa&&(wc(e,t.accessToken),e.dispatchEvent(new rc("tokenChanged"))),Cc(e,"refreshToken",t.refreshToken),t.accessToken})))},e.Ic=function(t){if(!(t=t.users)||!t.length)throw new S("internal-error");Ec(this,{uid:(t=t[0]).localId,displayName:t.displayName,photoURL:t.photoUrl,email:t.email,emailVerified:!!t.emailVerified,phoneNumber:t.phoneNumber,lastLoginAt:t.lastLoginAt,createdAt:t.createdAt,tenantId:t.tenantId});for(var e=function(t){return(t=t.providerUserInfo)&&t.length?Y(t,(function(t){return new hc(t.rawId,t.providerId,t.email,t.displayName,t.photoUrl,t.phoneNumber)})):[]}(t),n=0;n<e.length;n++)Oc(this,e[n]);Cc(this,"isAnonymous",!(this.email&&t.passwordHash)&&!(this.providerData&&this.providerData.length)),this.dispatchEvent(new rc("userReloaded",{ed:t}))},e.Jc=function(t){return Hr("firebase.User.prototype.reauthenticateAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.reauthenticateWithCredential instead."),this.pb(t)}
2,e.pb=function(t){var e=this,n=null;return Uc(this,t.c(this.a,this.uid).then((function(t){return Pc(e,t),n=Dc(e,t,"reauthenticate"),e.h=null,e.reload()})).then((function(){return n})),!0)},e.Ac=function(t){return Hr("firebase.User.prototype.linkAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.linkWithCredential instead."),this.mb(t)},e.mb=function(t){var e=this,n=null;return Uc(this,Mc(this,t.providerId).then((function(){return e.I()})).then((function(n){return t.b(e.a,n)})).then((function(t){return n=Dc(e,t,"link"),Rc(e,t)})).then((function(){return n})))},e.Bc=function(t,e){var n=this;return Uc(this,Mc(this,"phone").then((function(){return Gl(gc(n),t,e,x(n.mb,n))})))},e.Kc=function(t,e){var n=this;return Uc(this,Oe().then((function(){return Gl(gc(n),t,e,x(n.pb,n))})),!0)},e.xb=function(t){var e=this;return Uc(this,this.I().then((function(n){return e.a.xb(n,t)})).then((function(t){return Pc(e,t),e.reload()})))},e.cd=function(t){var e=this;return Uc(this,this.I().then((function(n){return t.b(e.a,n)})).then((function(t){return Pc(e,t),e.reload()})))},e.yb=function(t){var e=this;return Uc(this,this.I().then((function(n){return e.a.yb(n,t)})).then((function(t){return Pc(e,t),e.reload()})))},e.zb=function(t){if(void 0===t.displayName&&void 0===t.photoURL)return Tc(this);var e=this;return Uc(this,this.I().then((function(n){return e.a.zb(n,{displayName:t.displayName,photoUrl:t.photoURL})})).then((function(t){return Pc(e,t),Cc(e,"displayName",t.displayName||null),Cc(e,"photoURL",t.photoUrl||null),W(e.providerData,(function(t){"password"===t.providerId&&(Gr(t,"displayName",e.displayName),Gr(t,"photoURL",e.photoURL))})),_c(e)})).then(kc))},e.ad=function(t){var e=this;return Uc(this,Ic(this).then((function(n){return K(Sc(e),t)?function(t,e,n){return Js(t,Ts,{idToken:e,deleteProvider:n})}(e.a,n,[t]).then((function(t){var n={};return W(t.providerUserInfo||[],(function(t){n[t.providerId]=!0})),W(Sc(e),(function(t){n[t]||Ac(e,t)})),n[Do.PROVIDER_ID]||Gr(e,"phoneNumber",null),_c(e)})):_c(e).then((function(){throw new S("no-such-provider")}))})))},e.delete=function(){var t=this;return Uc(this,this.I().then((function(e){return Js(t.a,ks,{idToken:e})})).then((function(){t.dispatchEvent(new rc("userDeleted"))}))).then((function(){for(var e=0;e<t.N.length;e++)t.N[e].cancel("app-deleted");pc(t,null),mc(t,null),t.N=[],t.D=!0,bc(t),Gr(t,"refreshToken",null),t.i&&Nl(t.i,t)}))},e.Cb=function(t,e){return!!("linkViaPopup"==t&&(this.g||null)==e&&this.f||"reauthViaPopup"==t&&(this.g||null)==e&&this.f||"linkViaRedirect"==t&&(this.fa||null)==e||"reauthViaRedirect"==t&&(this.fa||null)==e)},e.la=function(t,e,n,r){"linkViaPopup"!=t&&"reauthViaPopup"!=t||r!=(this.g||null)||(n&&this.w?this.w(n):e&&!n&&this.f&&this.f(e),this.c&&(this.c.cancel(),this.c=null),delete this.f,delete this.w)},e.Da=function(t,e){return"linkViaPopup"==t&&e==(this.g||null)?x(this.Hb,this):"reauthViaPopup"==t&&e==(this.g||null)?x(this.Ib,this):"linkViaRedirect"==t&&(this.fa||null)==e?x(this.Hb,this):"reauthViaRedirect"==t&&(this.fa||null)==e?x(this.Ib,this):null},e.Cc=function(t){var e=this;return Lc(this,"linkViaPopup",t,(function(){return Mc(e,t.providerId).then((function(){return _c(e)}))}),!1)},e.Lc=function(t){return Lc(this,"reauthViaPopup",t,(function(){return Oe()}),!0)},e.Dc=function(t){var e=this;return jc(this,"linkViaRedirect",t,(function(){return Mc(e,t.providerId)}),!1)},e.Mc=function(t){return jc(this,"reauthViaRedirect",t,(function(){return Oe()}),!0)},e.Hb=function(t,e,n,r){var i=this;this.c&&(this.c.cancel(),this.c=null);var o=null;return Uc(this,this.I().then((function(n){return gs(i.a,{requestUri:t,postBody:r,sessionId:e,idToken:n})})).then((function(t){return o=Dc(i,t,"link"),Rc(i,t)})).then((function(){return o})))},e.Ib=function(t,e,n,r){var i=this;this.c&&(this.c.cancel(),this.c=null);var o=null;return Uc(this,Oe().then((function(){return so(ys(i.a,{requestUri:t,sessionId:e,postBody:r,tenantId:n}),i.uid)})).then((function(t){return o=Dc(i,t,"reauthenticate"),Pc(i,t),i.h=null,i.reload()})).then((function(){return o})),!0)},e.qb=function(t){var e=this,n=null;return Uc(this,this.I().then((function(e){return n=e,"undefined"===typeof t||pt(t)?{}:ji(new Oi(t))})).then((function(t){return e.a.qb(n,t)})).then((function(t){if(e.email!=t)return e.reload()})).then((function(){})))},e.Ab=function(t,e){var n=this,r=null;return Uc(this,this.I().then((function(t){return r=t,"undefined"===typeof e||pt(e)?{}:ji(new Oi(e))})).then((function(e){return n.a.Ab(r,t,e)})).then((function(t){if(n.email!=t)return n.reload()})).then((function(){})))},e.hc=function(t){var e=null,n=this;return Uc(this,t=so(Oe(t),n.uid).then((function(t){return e=Dc(n,t,"reauthenticate"),Pc(n,t),n.h=null,n.reload()})).then((function(){return e})),!0)},e.toJSON=function(){return this.v()},e.v=function(){var t={uid:this.uid,displayName:this.displayName,photoURL:this.photoURL,email:this.email,emailVerified:this.emailVerified,phoneNumber:this.phoneNumber,isAnonymous:this.isAnonymous,tenantId:this.tenantId,providerData:[],apiKey:this.l,appName:this.m,authDomain:this.s,stsTokenManager:this.b.v(),redirectEventId:this.fa||null};return this.metadata&&gt(t,this.metadata.v()),W(this.providerData,(function(e){t.providerData.push(function(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&(n[e]=t[e]);return n}(e))})),gt(t,this.O.v()),t};var Vc={name:"redirectUser",F:"session"};function zc(t){return Ju(t.b,Vc,t.a)}function Wc(t){this.a=t,this.b=$u(),this.c=null,this.f=function(t){var e=Gc("local"),n=Gc("session"),r=G
2c("none");return function(t,e,n){var r=Qu(e,n),i=Zu(t,e.F);return t.get(e,n).then((function(o){var a=null;try{a=Rr(l.localStorage.getItem(r))}catch(s){}if(a&&!o)return l.localStorage.removeItem(r),t.set(e,a,n);a&&o&&"localStorage"!=i.type&&l.localStorage.removeItem(r)}))}(t.b,e,t.a).then((function(){return t.b.get(n,t.a)})).then((function(i){return i?n:t.b.get(r,t.a).then((function(n){return n?r:t.b.get(e,t.a).then((function(n){return n?e:t.b.get(Yc,t.a).then((function(t){return t?Gc(t):e}))}))}))})).then((function(e){return t.c=e,Hc(t,e.F)})).o((function(){t.c||(t.c=e)}))}(this),this.b.addListener(Gc("local"),this.a,x(this.g,this))}function Hc(t,e){var n,r=[];for(n in Ku)Ku[n]!==e&&r.push(Ju(t.b,Gc(Ku[n]),t.a));return r.push(Ju(t.b,Yc,t.a)),function(t){return new we((function(e,n){var r=t.length,i=[];if(r)for(var o=function(t,n){r--,i[t]=n,0==r&&e(i)},a=function(t){n(t)},s=0;s<t.length;s++)Ce(t[s],E(o,s),a);else e(i)}))}(r)}Wc.prototype.g=function(){var t=this,e=Gc("local");Zc(this,(function(){return Oe().then((function(){return t.c&&"local"!=t.c.F?t.b.get(e,t.a):null})).then((function(n){if(n)return Hc(t,"local").then((function(){t.c=e}))}))}))};var Yc={name:"persistence",F:"session"};function Gc(t){return{name:"authUser",F:t}}function Kc(t,e){return Zc(t,(function(){return t.b.set(t.c,e.v(),t.a)}))}function Xc(t){return Zc(t,(function(){return Ju(t.b,t.c,t.a)}))}function $c(t,e){return Zc(t,(function(){return t.b.get(t.c,t.a).then((function(t){return t&&e&&(t.authDomain=e),qc(t||{})}))}))}function Zc(t,e){return t.f=t.f.then(e,e),t.f}function Qc(t){if(this.l=!1,Gr(this,"settings",new Hl),Gr(this,"app",t),!sf(this).options||!sf(this).options.apiKey)throw new S("invalid-api-key");t=r.SDK_VERSION?Tr(r.SDK_VERSION):null,this.b=new Ka(sf(this).options&&sf(this).options.apiKey,P(A),t),this.P=[],this.m=[],this.O=[],this.$b=r.INTERNAL.createSubscribe(x(this.xc,this)),this.W=void 0,this.ac=r.INTERNAL.createSubscribe(x(this.yc,this)),of(this,null),this.i=new Wc(sf(this).options.apiKey+":"+sf(this).name),this.B=new Bc(sf(this).options.apiKey+":"+sf(this).name),this.Z=ff(this,function(t){var e=sf(t).options.authDomain,n=function(t){var e=function(t,e){return t.b.get(Vc,t.a).then((function(t){return t&&e&&(t.authDomain=e),qc(t||{})}))}(t.B,sf(t).options.authDomain).then((function(e){return(t.D=e)&&(e.ga=t.B),zc(t.B)}));return ff(t,e)}(t).then((function(){return $c(t.i,e)})).then((function(e){return e?(e.ga=t.B,t.D&&(t.D.fa||null)==(e.fa||null)?e:e.reload().then((function(){return Kc(t.i,e).then((function(){return e}))})).o((function(n){return"auth/network-request-failed"==n.code?e:Xc(t.i)}))):null})).then((function(e){of(t,e||null)}));return ff(t,n)}(this)),this.h=ff(this,function(t){return t.Z.then((function(){return nf(t)})).o((function(){})).then((function(){if(!t.l)return t.oa()})).o((function(){})).then((function(){if(!t.l){t.aa=!0;var e=t.i;e.b.addListener(Gc("local"),e.a,t.oa)}}))}(this)),this.aa=!1,this.oa=x(this.Xc,this),this.Ma=x(this.ca,this),this.xa=x(this.jc,this),this.ya=x(this.uc,this),this.za=x(this.vc,this),this.a=null,function(t){var e=sf(t).options.authDomain,n=sf(t).options.apiKey;e&&Cr()&&(t.Zb=t.Z.then((function(){if(!t.l){if(t.a=Fl(e,n,sf(t).name),Cl(t.a,t),uf(t)&&xc(uf(t)),t.D){xc(t.D);var r=t.D;r.va(t.ja()),pc(r,t),vc(r=t.D,t.N),mc(r,t),t.D=null}return t.a}})))}(this),this.INTERNAL={},this.INTERNAL.delete=x(this.delete,this),this.INTERNAL.logFramework=x(this.Ec,this),this.s=0,wn.call(this),function(t){Object.defineProperty(t,"lc",{get:function(){return this.ja()},set:function(t){this.va(t)},enumerable:!1}),t.$=null,Object.defineProperty(t,"ti",{get:function(){return this.S()},set:function(t){this.ub(t)},enumerable:!1}),t.R=null}(this),this.N=[]}function Jc(t){Xe.call(this,"languageCodeChanged"),this.g=t}function tf(t){Xe.call(this,"frameworkChanged"),this.c=t}function ef(t){return t.Zb||Ae(new S("auth-domain-config-required"))}function nf(t){if(!Cr())return Ae(new S("operation-not-supported-in-this-environment"));var e=ef(t).then((function(){return t.a.pa()})).then((function(t){return t?Xr(t):null}));return ff(t,e)}function rf(t,e){var n={};return n.apiKey=sf(t).options.apiKey,n.authDomain=sf(t).options.authDomain,n.appName=sf(t).name,t.Z.then((function(){return function(t,e,n,r){var i=new dc(t,e);return n&&(i.ga=n),r&&vc(i,r),i.reload().then((function(){return i}))}(n,e,t.B,t.Ea())})).then((function(e){return uf(t)&&e.uid==uf(t).uid?(Nc(uf(t),e),t.ca(e)):(of(t,e),xc(e),t.ca(e))})).then((function(){cf(t)}))}function of(t,e){uf(t)&&(function(t,e){$(t.R,(function(t){return t==e}))}(uf(t),t.Ma),fn(uf(t),"tokenChanged",t.xa),fn(uf(t),"userDeleted",t.ya),fn(uf(t),"userInvalidated",t.za),bc(uf(t))),e&&(e.R.push(t.Ma),un(e,"tokenChanged",t.xa),un(e,"userDeleted",t.ya),un(e,"userInvalidated",t.za),0<t.s&&yc(e)),Gr(t,"currentUser",e),e&&(e.va(t.ja()),pc(e,t),vc(e,t.N),mc(e,t))}function af(t,e){var n=null,r=null;return ff(t,e.then((function(e){return n=Lo(e),r=Gi(e),rf(t,e)}),(function(e){var n=null;throw e&&"auth/multi-factor-auth-required"===e.code&&(n=Jl(e.v(),t,x(t.ic,t))),n||e})).then((function(){return Xr({user:uf(t),credential:n,additionalUserInfo:r,operationType:"signIn"})})))}function sf(t){return t.app}function uf(t){return t.currentUser}function lf(t){return uf(t)&&uf(t)._lat||null}function cf(t){if(t.aa){for(var e=0;e<t.m.length;e++)t.m[e]&&t.m[e](lf(t));if(t.W!==t.getUid()&&t.O.length)for(t.W=t.getUid(),e=0;e<t.O.length;e++)t.O[e]&&t.O[e](lf(t))}}function ff(t,e){return t.P.push(e),e.ma((function(){X(t.P,e)})),e}function hf(){}function df(){this.a={},this.b=1e12}Wc.prototype.tb=function(t){var e=null,n=this;return function(t){var e=new S("invalid-persistence-type"),n=new S("unsupported-persistence-type");t:{for(r in Ku)if(Ku[r]==t){var r=!0;break t}r=!1}if(!r||"string"!==typeof t)throw e;switch(br()){case"ReactNative":if("session"===t)throw n;break;case"Node":if("none"!==t)throw n;break;case"Worker":if("session"===t||!Ou()&&"none"!==t)throw n;break;default:if(!Ar()&&"none"!==t)throw n}}(t),Zc(this,(function(){return t!=n.c.F?n.b.get(n.c,n.a).then((function(r){return e=r,Hc(n,t)})).then((function(){if(n.c=Gc(t),e)return n.b.set(n.c,e,n.a)})):Oe()}))},T(Qc,wn),T(Jc,Xe),T(tf,Xe),(e=Qc.prototype).tb=function(t){return ff(this,t=this.i.tb(t))},e.va=function(t){this.$===t||this.l||(this.$=t,es(this.b,this.$),this.dispatchEvent(new Jc(this.ja())))},e.ja=function(){return this.$},e.dd=function(){var t=l.navigator;this.va(t&&(t.languages&&t.languages[0]||t.language||t.userLanguage)||null)},e.Ec=function(t){this.N.push(t),ns(this.b,r.SDK_VERSION?Tr(r.SDK_VERSION,this.N):null),this.dispatchEvent(new tf(this.N))},e.Ea=function(){return Q(this.N)},e.ub=function(t){this.R===t||this.l||(this.R=t,this.b.b=this.R)},e.S=function(){return this.R},e.toJSON=function(){return{apiKey:sf(this).options.apiKey,authDomain:sf(this).options.authDomain,appName:sf(this).name,currentUser:uf(this)&&uf(this).v()}},e.Cb=function(t,e){switch(t){case"unknown":case"signInViaRedirect":return!0;case"signInViaPopup":return this.g==e&&!!this.f;default:return!1}},e.la=function(t,e,n,r){"signInViaPopup"==t&&this.g==r&&(n&&this.w?this.w(n):e&&!n&&this.f&&this.f(e),this.c&&(this.c.cancel(),this.c=null),delete this.f,delete this.w)},e.Da=function(t,e){return"signInViaRedirect"==t||"signInViaPopup"==t&&this.g==e&&this.f?x(this.gc,this):null},e.gc=function(t,e,n,r){var i=this,o={requestUri:t,postBody:r,sessionId:e,tenantId:n};return this.c&&(this.c.cancel(),this.c=null),i.Z.then((function(){return af(i,ms(i.b,o))}))},e.Vc=function(t){if(!Cr())return Ae(new S("operation-not-supported-in-this-environment"));var e=this,n=Yi(t.providerId),i=Lr(),o=null;(!Pr()||gr())&&sf(this).options.authDomain&&t.isOAuthProvider&&(o=pu(sf(this).options.authDomain,sf(this).options.apiKey,sf(this).name,"signInViaPopup",t,null,i,r.SDK_VERSION||null,null,null,this.S()));var a=hr(o,n&&n.ta,n&&n.sa);return ff(this,n=ef(this).then((function(n){return Ml(n,a,"signInViaPopup",t,i,!!o,e.S())})).then((function(){return new we((function(t,n){e.la("signInViaPopup",null,new S("c
2ancelled-popup-request"),e.g),e.f=t,e.w=n,e.g=i,e.c=Ll(e.a,e,"signInViaPopup",a,i)}))})).then((function(t){return a&&fr(a),t?Xr(t):null})).o((function(t){throw a&&fr(a),t})))},e.Wc=function(t){if(!Cr())return Ae(new S("operation-not-supported-in-this-environment"));var e=this;return ff(this,ef(this).then((function(){return function(t){return Zc(t,(function(){return t.b.set(Yc,t.c.F,t.a)}))}(e.i)})).then((function(){return Rl(e.a,"signInViaRedirect",t,void 0,e.S())})))},e.pa=function(){var t=this;return nf(this).then((function(e){return t.a&&Bl(t.a.b),e})).o((function(e){throw t.a&&Bl(t.a.b),e}))},e.bd=function(t){if(!t)return Ae(new S("null-user"));if(this.R!=t.tenantId)return Ae(new S("tenant-id-mismatch"));var e=this,n={};n.apiKey=sf(this).options.apiKey,n.authDomain=sf(this).options.authDomain,n.appName=sf(this).name;var r=function(t,e,n,r){var i=t.b,o={};return o[$a]=i.b&&i.b.toString(),o.refreshToken=i.a,e=new dc(e||{apiKey:t.l,authDomain:t.s,appName:t.m},o),n&&(e.ga=n),r&&vc(e,r),Nc(e,t),e}(t,n,e.B,e.Ea());return ff(this,this.h.then((function(){if(sf(e).options.apiKey!=t.l)return r.reload()})).then((function(){return uf(e)&&t.uid==uf(e).uid?(Nc(uf(e),t),e.ca(t)):(of(e,r),xc(r),e.ca(r))})).then((function(){cf(e)})))},e.wb=function(){var t=this;return ff(this,this.h.then((function(){return t.a&&Bl(t.a.b),uf(t)?(of(t,null),Xc(t.i).then((function(){cf(t)}))):Oe()})))},e.Xc=function(){var t=this;return $c(this.i,sf(this).options.authDomain).then((function(e){if(!t.l){var n;if(n=uf(t)&&e){n=uf(t).uid;var r=e.uid;n=void 0!==n&&null!==n&&""!==n&&void 0!==r&&null!==r&&""!==r&&n==r}if(n)return Nc(uf(t),e),uf(t).I();(uf(t)||e)&&(of(t,e),e&&(xc(e),e.ga=t.B),t.a&&Cl(t.a,t),cf(t))}}))},e.ca=function(t){return Kc(this.i,t)},e.jc=function(){cf(this),this.ca(uf(this))},e.uc=function(){this.wb()},e.vc=function(){this.wb()},e.ic=function(t){var e=this;return this.h.then((function(){return af(e,Oe(t))}))},e.xc=function(t){var e=this;this.addAuthTokenListener((function(){t.next(uf(e))}))},e.yc=function(t){var e=this;!function(t,e){t.O.push(e),ff(t,t.h.then((function(){!t.l&&K(t.O,e)&&t.W!==t.getUid()&&(t.W=t.getUid(),e(lf(t)))})))}(this,(function(){t.next(uf(e))}))},e.Gc=function(t,e,n){var r=this;return this.aa&&Promise.resolve().then((function(){"function"===typeof t?t(uf(r)):"function"===typeof t.next&&t.next(uf(r))})),this.$b(t,e,n)},e.Fc=function(t,e,n){var r=this;return this.aa&&Promise.resolve().then((function(){r.W=r.getUid(),"function"===typeof t?t(uf(r)):"function"===typeof t.next&&t.next(uf(r))})),this.ac(t,e,n)},e.kc=function(t){var e=this;return ff(this,this.h.then((function(){return uf(e)?uf(e).I(t).then((function(t){return{accessToken:t}})):null})))},e.Rc=function(t){var e=this;return this.h.then((function(){return af(e,Js(e.b,Gs,{token:t}))})).then((function(t){var n=t.user;return Cc(n,"isAnonymous",!1),e.ca(n),t}))},e.Sc=function(t,e){var n=this;return this.h.then((function(){return af(n,Js(n.b,Ks,{email:t,password:e}))}))},e.cc=function(t,e){var n=this;return this.h.then((function(){return af(n,Js(n.b,xs,{email:t,password:e}))}))},e.Ya=function(t){var e=this;return this.h.then((function(){return af(e,t.ia(e.b))}))},e.Qc=function(t){return Hr("firebase.auth.Auth.prototype.signInAndRetrieveDataWithCredential is deprecated. Please use firebase.auth.Auth.prototype.signInWithCredential instead."),this.Ya(t)},e.vb=function(){var t=this;return this.h.then((function(){var e=uf(t);if(e&&e.isAnonymous){var n=Xr({providerId:null,isNewUser:!1});return Xr({user:e,credential:null,additionalUserInfo:n,operationType:"signIn"})}return af(t,t.b.vb()).then((function(e){var n=e.user;return Cc(n,"isAnonymous",!0),t.ca(n),e}))}))},e.getUid=function(){return uf(this)&&uf(this).uid||null},e.bc=function(t){this.addAuthTokenListener(t),this.s++,0<this.s&&uf(this)&&yc(uf(this))},e.Nc=function(t){var e=this;W(this.m,(function(n){n==t&&e.s--})),0>this.s&&(this.s=0),0==this.s&&uf(this)&&bc(uf(this)),this.removeAuthTokenListener(t)},e.addAuthTokenListener=function(t){var e=this;this.m.push(t),ff(this,this.h.then((function(){e.l||K(e.m,t)&&t(lf(e))})))},e.removeAuthTokenListener=function(t){$(this.m,(function(e){return e==t}))},e.delete=function(){this.l=!0;for(var t=0;t<this.P.length;t++)this.P[t].cancel("app-deleted");return this.P=[],this.i&&(t=this.i).b.removeListener(Gc("local"),t.a,this.oa),this.a&&(Nl(this.a,this),Bl(this.a.b)),Promise.resolve()},e.fc=function(t){return ff(this,function(t,e){return Js(t,Es,{identifier:e,continueUri:Nr()?ur():"http://localhost"}).then((function(t){return t.signinMethods||[]}))}(this.b,t))},e.zc=function(t){return!!No(t)},e.sb=function(t,e){var n=this;return ff(this,Oe().then((function(){var t=new Oi(e);if(!t.c)throw new S("argument-error",Ni+" must be true when sending sign in link to email");return ji(t)})).then((function(e){return n.b.sb(t,e)})).then((function(){})))},e.fd=function(t){return this.Pa(t).then((function(t){return t.data.email}))},e.jb=function(t,e){return ff(this,this.b.jb(t,e).then((function(){})))},e.Pa=function(t){return ff(this,this.b.Pa(t).then((function(t){return new ii(t)})))},e.fb=function(t){return ff(this,this.b.fb(t).then((function(){})))},e.rb=function(t,e){var n=this;return ff(this,Oe().then((function(){return"undefined"===typeof e||pt(e)?{}:ji(new Oi(e))})).then((function(e){return n.b.rb(t,e)})).then((function(){})))},e.Uc=function(t,e){return ff(this,Gl(this,t,e,x(this.Ya,this)))},e.Tc=function(t,e){var n=this;return ff(this,Oe().then((function(){var r=e||ur(),i=Co(t,r);if(!(r=No(r)))throw new S("argument-error","Invalid email link!");if(r.tenantId!==n.S())throw new S("tenant-id-mismatch");return n.Ya(i)})))},hf.prototype.render=function(){},hf.prototype.reset=function(){},hf.prototype.getResponse=function(){},hf.prototype.execute=function(){};var pf=null;function vf(t,e){return(e=mf(e))&&t.a[e]||null}function mf(t){return(t="undefined"===typeof t?1e12:t)?t.toString():null}function gf(t,e){this.g=!1,this.c=e,this.a=this.b=null,this.h="invisible"!==this.c.size,this.f=ae(t);var n=this;this.i=function(){n.execute()},this.h?this.execute():un(this.f,"click",this.i)}function yf(t){if(t.g)throw Error("reCAPTCHA mock was already deleted!")}function bf(){}function wf(){}df.prototype.render=function(t,e){return this.a[this.b.toString()]=new gf(t,e),this.b++},df.prototype.reset=function(t){var e=vf(this,t);t=mf(t),e&&t&&(e.delete(),delete this.a[t])},df.prototype.getResponse=function(t){return(t=vf(this,t))?t.getResponse():null},df.prototype.execute=function(t){(t=vf(this,t))&&t.execute()},gf.prototype.getResponse=function(){return yf(this),this.b},gf.prototype.execute=function(){yf(this);var t=this;this.a||(this.a=setTimeout((function(){t.b=function(){for(var t=50,e=[];0<t;)e.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),t--;return e.join("")}();var e=t.c.callback,n=t.c["expired-callback"];if(e)try{e(t.b)}catch(r){}t.a=setTimeout((function(){if(t.a=null,t.b=null,n)try{n()}catch(r){}t.h&&t.execute()}),6e4)}),500))},gf.prototype.delete=function(){yf(this),this.g=!0,clearTimeout(this.a),this.a=null,f
2n(this.f,"click",this.i)},Gr(bf,"FACTOR_ID","phone"),wf.prototype.g=function(){return pf||(pf=new df),Oe(pf)},wf.prototype.c=function(){};var _f=null;function xf(){this.b=l.grecaptcha?1/0:0,this.f=null,this.a="__rcb"+Math.floor(1e6*Math.random()).toString()}var Ef=new bt(xt,"https://www.google.com/recaptcha/api.js?onload=%{onload}&render=explicit&hl=%{hl}"),kf=new Ur(3e4,6e4);xf.prototype.g=function(t){var e=this;return new we((function(n,r){var i=setTimeout((function(){r(new S("network-request-failed"))}),kf.get());!l.grecaptcha||t!==e.f&&!e.b?(l[e.a]=function(){if(l.grecaptcha){e.f=t;var o=l.grecaptcha.render;l.grecaptcha.render=function(t,n){return t=o(t,n),e.b++,t},clearTimeout(i),n(l.grecaptcha)}else clearTimeout(i),r(new S("internal-error"));delete l[e.a]},Oe(Ba(St(Ef,{onload:e.a,hl:t||""}))).o((function(){clearTimeout(i),r(new S("internal-error","Unable to load external reCAPTCHA dependencies!"))}))):(clearTimeout(i),n(l.grecaptcha))}))},xf.prototype.c=function(){this.b--};var Tf=null;function Sf(t,e,n,r,i,o,a){if(Gr(this,"type","recaptcha"),this.c=this.f=null,this.D=!1,this.u=e,this.g=null,a?(_f||(_f=new wf),a=_f):(Tf||(Tf=new xf),a=Tf),this.m=a,this.a=n||{theme:"light",type:"image"},this.h=[],this.a[Cf])throw new S("argument-error","sitekey should not be provided for reCAPTCHA as one is automatically provisioned for the current project.");if(this.i="invisible"===this.a[Nf],!l.document)throw new S("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment with DOM support.");if(!ae(e)||!this.i&&ae(e).hasChildNodes())throw new S("argument-error","reCAPTCHA container is either not found or already contains inner elements!");this.s=new Ka(t,o||null,i||null),this.w=r||function(){return null};var s=this;this.l=[];var u=this.a[Of];this.a[Of]=function(t){if(If(s,t),"function"===typeof u)u(t);else if("string"===typeof u){var e=Or(u,l);"function"===typeof e&&e(t)}};var c=this.a[Af];this.a[Af]=function(){if(If(s,null),"function"===typeof c)c();else if("string"===typeof c){var t=Or(c,l);"function"===typeof t&&t()}}}var Of="callback",Af="expired-callback",Cf="sitekey",Nf="size";function If(t,e){for(var n=0;n<t.l.length;n++)try{t.l[n](e)}catch(r){}}function Pf(t,e){return t.h.push(e),e.ma((function(){X(t.h,e)})),e}function Mf(t){if(t.D)throw new S("internal-error","RecaptchaVerifier instance has been destroyed.")}function Df(t,e,n){var i=!1;try{this.b=n||r.app()}catch(s){throw new S("argument-error","No firebase.app.App instance is currently initialized.")}if(!this.b.options||!this.b.options.apiKey)throw new S("invalid-api-key");n=this.b.options.apiKey;var o=this,a=null;try{a=this.b.auth().Ea()}catch(s){}try{i=this.b.auth().settings.appVerificationDisabledForTesting}catch(s){}a=r.SDK_VERSION?Tr(r.SDK_VERSION,a):null,Sf.call(this,n,t,e,(function(){try{var t=o.b.auth().ja()}catch(e){t=null}return t}),a,P(A),i)}function Rf(t,e,n,r){t:{n=Array.prototype.slice.call(n);for(var i=0,o=!1,a=0;a<e.length;a++)if(e[a].optional)o=!0;else{if(o)throw new S("internal-error","Argument validator encountered a required argument after an optional argument.");i++}if(o=e.length,n.length<i||o<n.length)r="Expected "+(i==o?1==i?"1 argument":i+" arguments":i+"-"+o+" arguments")+" but got "+n.length+".";else{for(i=0;i<n.length;i++)if(o=e[i].optional&&void 0===n[i],!e[i].K(n[i])&&!o){if(e=e[i],0>i||i>=Lf.length)throw new S("internal-error","Argument validator received an unsupported number of arguments.");n=Lf[i],r=(r?"":n+" argument ")+(e.name?'"'+e.name+'" ':"")+"must be "+e.J+".";break t}r=null}}if(r)throw new S("argument-error",t+" failed: "+r)}(e=Sf.prototype).Ga=function(){var t=this;return this.f?this.f:this.f=Pf(this,Oe().then((function(){if(Nr()&&!yr())return vr();throw new S("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment.")})).then((function(){return t.m.g(t.w())})).then((function(e){return t.g=e,Js(t.s,Ls,{})})).then((function(e){t.a[Cf]=e.recaptchaSiteKey})).o((function(e){throw t.f=null,e})))},e.render=function(){Mf(this);var t=this;return Pf(this,this.Ga().then((function(){if(null===t.c){var e=t.u;if(!t.i){var n=ae(e);e=function(t,e,n){var r=arguments,i=document,o=String(r[0]),a=r[1];if(!oe&&a&&(a.name||a.type)){if(o=["<",o],a.name&&o.push(' name="',zt(a.name),'"'),a.type){o.push(' type="',zt(a.type),'"');var s={};gt(s,a),delete s.type,a=s}o.push(">"),o=o.join("")}return o=he(i,o),a&&("string"===typeof a?o.className=a:Array.isArray(a)?o.className=a.join(" "):se(o,a)),2<r.length&&fe(i,o,r),o}("DIV"),n.appendChild(e)}t.c=t.g.render(e,t.a)}return t.c})))},e.verify=function(){Mf(this);var t=this;return Pf(this,this.render().then((function(e){return new we((function(n){var r=t.g.getResponse(e);if(r)n(r);else{t.l.push((function e(r){r&&(function(t,e){$(t.l,(function(t){return t==e}))}(t,e),n(r))})),t.i&&t.g.execute(t.c)}}))})))},e.reset=function(){Mf(this),null!==this.c&&this.g.reset(this.c)},e.clear=function(){Mf(this),this.D=!0,this.m.c();for(var t=0;t<this.h.length;t++)this.h[t].cancel("RecaptchaVerifier instance has been destroyed.");if(!this.i){t=ae(this.u);for(var e;e=t.firstChild;)t.removeChild(e)}},T(Df,Sf);var Lf="First Second Third Fourth Fifth Sixth Seventh Eighth Ninth".split(" ");function jf(t,e){return{name:t||"",J:"a valid string",optional:!!e,K:function(t){return"string"===typeof t}}}function Ff(t,e){return{name:t||"",J:"a boolean",optional:!!e,K:function(t){return"boolean"===typeof t}}}function Uf(t,e){return{name:t||"",J:"a valid object",optional:!!e,K:m}}function qf(t,e){return{name:t||"",J:"a function",optional:!!e,K:function(t){return"function"===typeof t}}}function Bf(t,e){return{name:t||"",J:"null",optional:!!e,K:function(t){return null===t}}}function Vf(t){return{name:t?t+"Credential":"credential",J:t?"a valid "+t+" credential":"a valid credential",optional:!1,K:function(e){if(!e)return!1;var n=!t||e.providerId===t;return!(!e.ia||!n)}}}function zf(t,e){return m(t)&&"string"===typeof t.type&&t.type===e&&"function"===typeof t.Fa}function Wf(t){return m(t)&&"string"===typeof t.uid}function Hf(t,e,n,r){return{name:n||"",J:t.J+" or "+e.J,optional:!!r,K:function(n){return t.K(n)||e.K(n)}}}function Yf(t,e){for(var n in e){var r=e[n].name;t[r]=Xf(r,t[n],e[n].j)}}function Gf(t,e){for(var n in e){var r=e[n].name;r!==n&&Object.defineProperty(t,r,{get:E((function(t){return this[t]}
2),n),set:E((function(t,e,n,r){Rf(t,[n],[r],!0),this[e]=r}),r,n,e[n].gb),enumerable:!0})}}function Kf(t,e,n,r){t[e]=Xf(e,n,r)}function Xf(t,e,n){function r(){var t=Array.prototype.slice.call(arguments);return Rf(o,n,t),e.apply(this,t)}if(!n)return e;var i,o=function(t){return(t=t.split("."))[t.length-1]}(t);for(i in e)r[i]=e[i];for(i in e.prototype)r.prototype[i]=e.prototype[i];return r}Yf(Qc.prototype,{fb:{name:"applyActionCode",j:[jf("code")]},Pa:{name:"checkActionCode",j:[jf("code")]},jb:{name:"confirmPasswordReset",j:[jf("code"),jf("newPassword")]},cc:{name:"createUserWithEmailAndPassword",j:[jf("email"),jf("password")]},fc:{name:"fetchSignInMethodsForEmail",j:[jf("email")]},pa:{name:"getRedirectResult",j:[]},zc:{name:"isSignInWithEmailLink",j:[jf("emailLink")]},Fc:{name:"onAuthStateChanged",j:[Hf(Uf(),qf(),"nextOrObserver"),qf("opt_error",!0),qf("opt_completed",!0)]},Gc:{name:"onIdTokenChanged",j:[Hf(Uf(),qf(),"nextOrObserver"),qf("opt_error",!0),qf("opt_completed",!0)]},rb:{name:"sendPasswordResetEmail",j:[jf("email"),Hf(Uf("opt_actionCodeSettings",!0),Bf(null,!0),"opt_actionCodeSettings",!0)]},sb:{name:"sendSignInLinkToEmail",j:[jf("email"),Uf("actionCodeSettings")]},tb:{name:"setPersistence",j:[jf("persistence")]},Qc:{name:"signInAndRetrieveDataWithCredential",j:[Vf()]},vb:{name:"signInAnonymously",j:[]},Ya:{name:"signInWithCredential",j:[Vf()]},Rc:{name:"signInWithCustomToken",j:[jf("token")]},Sc:{name:"signInWithEmailAndPassword",j:[jf("email"),jf("password")]},Tc:{name:"signInWithEmailLink",j:[jf("email"),jf("emailLink",!0)]},Uc:{name:"signInWithPhoneNumber",j:[jf("phoneNumber"),{name:"applicationVerifier",J:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,K:function(t){return!(!t||"string"!==typeof t.type||"function"!==typeof t.verify)}}]},Vc:{name:"signInWithPopup",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},Wc:{name:"signInWithRedirect",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},bd:{name:"updateCurrentUser",j:[Hf({name:"user",J:"an instance of Firebase User",optional:!1,K:function(t){return!!(t&&t instanceof dc)}},Bf(),"user")]},wb:{name:"signOut",j:[]},toJSON:{name:"toJSON",j:[jf(null,!0)]},dd:{name:"useDeviceLanguage",j:[]},fd:{name:"verifyPasswordResetCode",j:[jf("code")]}}),Gf(Qc.prototype,{lc:{name:"languageCode",gb:Hf(jf(),Bf(),"languageCode")},ti:{name:"tenantId",gb:Hf(jf(),Bf(),"tenantId")}}),Qc.Persistence=Ku,Qc.Persistence.LOCAL="local",Qc.Persistence.SESSION="session",Qc.Persistence.NONE="none",Yf(dc.prototype,{delete:{name:"delete",j:[]},mc:{name:"getIdTokenResult",j:[Ff("opt_forceRefresh",!0)]},I:{name:"getIdToken",j:[Ff("opt_forceRefresh",!0)]},Ac:{name:"linkAndRetrieveDataWithCredential",j:[Vf()]},mb:{name:"linkWithCredential",j:[Vf()]},Bc:{name:"linkWithPhoneNumber",j:[jf("phoneNumber"),{name:"applicationVerifier",J:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,K:function(t){return!(!t||"string"!==typeof t.type||"function"!==typeof t.verify)}}]},Cc:{name:"linkWithPopup",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},Dc:{name:"linkWithRedirect",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},Jc:{name:"reauthenticateAndRetrieveDataWithCredential",j:[Vf()]},pb:{name:"reauthenticateWithCredential",j:[Vf()]},Kc:{name:"reauthenticateWithPhoneNumber",j:[jf("phoneNumber"),{name:"applicationVerifier",J:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,K:function(t){return!(!t||"string"!==typeof t.type||"function"!==typeof t.verify)}}]},Lc:{name:"reauthenticateWithPopup",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},Mc:{name:"reauthenticateWithRedirect",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(t){return!!(t&&t.providerId&&t.hasOwnProperty&&t.hasOwnProperty("isOAuthProvider"))}}]},reload:{name:"reload",j:[]},qb:{name:"sendEmailVerification",j:[Hf(Uf("opt_actionCodeSettings",!0),Bf(null,!0),"opt_actionCodeSettings",!0)]},toJSON:{name:"toJSON",j:[jf(null,!0)]},ad:{name:"unlink",j:[jf("provider")]},xb:{name:"updateEmail",j:[jf("email")]},yb:{name:"updatePassword",j:[jf("password")]},cd:{name:"updatePhoneNumber",j:[Vf("phone")]},zb:{name:"updateProfile",j:[Uf("profile")]},Ab:{name:"verifyBeforeUpdateEmail",j:[jf("email"),Hf(Uf("opt_actionCodeSettings",!0),Bf(null,!0),"opt_actionCodeSettings",!0)]}}),Yf(df.prototype,{execute:{name:"execute"},render:{name:"render"}
2,reset:{name:"reset"},getResponse:{name:"getResponse"}}),Yf(hf.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),Yf(we.prototype,{ma:{name:"finally"},o:{name:"catch"},then:{name:"then"}}),Gf(Hl.prototype,{appVerificationDisabled:{name:"appVerificationDisabledForTesting",gb:Ff("appVerificationDisabledForTesting")}}),Yf(Yl.prototype,{confirm:{name:"confirm",j:[jf("verificationCode")]}}),Kf(ao,"fromJSON",(function(t){t="string"===typeof t?JSON.parse(t):t;for(var e,n=[po,Oo,Po,co],r=0;r<n.length;r++)if(e=n[r](t))return e;return null}),[Hf(jf(),Uf(),"json")]),Kf(Ao,"credential",(function(t,e){return new So(t,e)}),[jf("email"),jf("password")]),Yf(So.prototype,{v:{name:"toJSON",j:[jf(null,!0)]}}),Yf(yo.prototype,{Aa:{name:"addScope",j:[jf("scope")]},Ia:{name:"setCustomParameters",j:[Uf("customOAuthParameters")]}}),Kf(yo,"credential",bo,[Hf(jf(),Uf(),"token")]),Kf(Ao,"credentialWithLink",Co,[jf("email"),jf("emailLink")]),Yf(wo.prototype,{Aa:{name:"addScope",j:[jf("scope")]},Ia:{name:"setCustomParameters",j:[Uf("customOAuthParameters")]}}),Kf(wo,"credential",_o,[Hf(jf(),Uf(),"token")]),Yf(xo.prototype,{Aa:{name:"addScope",j:[jf("scope")]},Ia:{name:"setCustomParameters",j:[Uf("customOAuthParameters")]}}),Kf(xo,"credential",Eo,[Hf(jf(),Hf(Uf(),Bf()),"idToken"),Hf(jf(),Bf(),"accessToken",!0)]),Yf(ko.prototype,{Ia:{name:"setCustomParameters",j:[Uf("customOAuthParameters")]}}),Kf(ko,"credential",To,[Hf(jf(),Uf(),"token"),jf("secret",!0)]),Yf(go.prototype,{Aa:{name:"addScope",j:[jf("scope")]},credential:{name:"credential",j:[Hf(jf(),Hf(Uf(),Bf()),"optionsOrIdToken"),Hf(jf(),Bf(),"accessToken",!0)]},Ia:{name:"setCustomParameters",j:[Uf("customOAuthParameters")]}}),Yf(fo.prototype,{v:{name:"toJSON",j:[jf(null,!0)]}}),Yf(uo.prototype,{v:{name:"toJSON",j:[jf(null,!0)]}}),Kf(Do,"credential",Ro,[jf("verificationId"),jf("verificationCode")]),Yf(Do.prototype,{cb:{name:"verifyPhoneNumber",j:[Hf(jf(),{name:"phoneInfoOptions",J:"valid phone info options",optional:!1,K:function(t){return!!t&&(t.session&&t.phoneNumber?zf(t.session,io)&&"string"===typeof t.phoneNumber:t.session&&t.multiFactorHint?zf(t.session,oo)&&Wf(t.multiFactorHint):t.session&&t.multiFactorUid?zf(t.session,oo)&&"string"===typeof t.multiFactorUid:!!t.phoneNumber&&"string"===typeof t.phoneNumber)}},"phoneInfoOptions"),{name:"applicationVerifier",J:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,K:function(t){return!(!t||"string"!==typeof t.type||"function"!==typeof t.verify)}}]}}),Yf(Io.prototype,{v:{name:"toJSON",j:[jf(null,!0)]}}),Yf(S.prototype,{toJSON:{name:"toJSON",j:[jf(null,!0)]}}),Yf(Wo.prototype,{toJSON:{name:"toJSON",j:[jf(null,!0)]}}),Yf(zo.prototype,{toJSON:{name:"toJSON",j:[jf(null,!0)]}}),Yf(Ql.prototype,{toJSON:{name:"toJSON",j:[jf(null,!0)]}}),Yf(Xl.prototype,{Pc:{name:"resolveSignIn",j:[{name:"multiFactorAssertion",J:"a valid multiFactorAssertion",optional:!1,K:function(t){return!!t&&!!t.ob}}]}}),Yf(ic.prototype,{Ob:{name:"getSession",j:[]},dc:{name:"enroll",j:[{name:"multiFactorAssertion",J:"a valid multiFactorAssertion",optional:!1,K:function(t){return!!t&&!!t.ob}},jf("displayName",!0)]},$c:{name:"unenroll",j:[Hf({name:"multiFactorInfo",J:"a valid multiFactorInfo",optional:!1,K:Wf},jf(),"multiFactorInfoIdentifier")]}}),Yf(Df.prototype,{clear:{name:"clear",j:[]},render:{name:"render",j:[]},verify:{name:"verify",j:[]}}),Kf(yi,"parseLink",Si,[jf("link")]),Kf(bf,"assertion",(function(t){return new nc(t)}),[Vf("phone")]),function(){if("undefined"===typeof r||!r.INTERNAL||!r.INTERNAL.registerComponent)throw Error("Cannot find the firebase namespace; be sure to include firebase-app.js before this library.");var t={ActionCodeInfo:{Operation:{EMAIL_SIGNIN:ai,PASSWORD_RESET:"PASSWORD_RESET",RECOVER_EMAIL:"RECOVER_EMAIL",REVERT_SECOND_FACTOR_ADDITION:oi,VERIFY_AND_CHANGE_EMAIL:si,VERIFY_EMAIL:"VERIFY_EMAIL"}},Auth:Qc,AuthCredential:ao,Error:S};Kf(t,"EmailAuthProvider",Ao,[]),Kf(t,"FacebookAuthProvider",yo,[]),Kf(t,"GithubAuthProvider",wo,[]),Kf(t,"GoogleAuthProvider",xo,[]),Kf(t,"TwitterAuthProvider",ko,[]),Kf(t,"OAuthProvider",go,[jf("providerId")]),Kf(t,"SAMLAuthProvider",mo,[jf("providerId")]),Kf(t,"PhoneAuthProvider",Do,[{name:"auth",J:"an instance of Firebase Auth",optional:!0,K:function(t){return!!(t&&t instanceof Qc)}}]),Kf(t,"RecaptchaVerifier",Df,[Hf(jf(),{name:"",J:"an HTML element",optional:!1,K:function(t){return!!(t&&t instanceof Element)}},"recaptchaContainer"),Uf("recaptchaParameters",!0),{name:"app",J:"an instance of Firebase App",optional:!0,K:function(t){return!!(t&&t instanceof r.app.App)}}]),Kf(t,"ActionCodeURL",yi,[]),Kf(t,"PhoneMultiFactorGenerator",bf,[]),r.INTERNAL.registerComponent({name:"auth",instanceFactory:function(t){return new Qc(t=t.getProvider("app").getImmediate())},multipleInstances:!1,serviceProps:t,instantiationMode:"LAZY",type:"PUBLIC"}),r.INTERNAL.registerComponent({name:"auth-internal",instanceFactory:function(t){return{getUid:x((t=t.getProvider("auth").getImmediate()).getUid,t),getToken:x(t.kc,t),addAuthTokenListener:x(t.bc,t),removeAuthTokenListener:x(t.Nc,t)}},multipleInstances:!1,instantiationMode:"LAZY",type:"PRIVATE"}),r.registerVersion("@firebase/auth","0.14.9"),r.INTERNAL.extendNamespace({User:dc})}()}).apply("undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})}).call(this,n(22))},,function(t,e,n){"use strict";var r=n(138);function i(){}function o(){}
2o.resetWarningCache=i,t.exports=function(){function t(t,e,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 e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){var r=n(140),i=n(141),o=function(){var t=[];return{activateTrap:function(e){if(t.length>0){var n=t[t.length-1];n!==e&&n.pause()}var r=t.indexOf(e);-1===r||t.splice(r,1),t.push(e)},deactivateTrap:function(e){var n=t.indexOf(e);-1!==n&&t.splice(n,1),t.length>0&&t[t.length-1].unpause()}}}();function a(t){return setTimeout(t,0)}t.exports=function(t,e){var n=document,s="string"===typeof t?n.querySelector(t):t,u=i({returnFocusOnDeactivate:!0,escapeDeactivates:!0},e),l={firstTabbableNode:null,lastTabbableNode:null,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1},c={activate:function(t){if(l.active)return;w(),l.active=!0,l.paused=!1,l.nodeFocusedBeforeActivation=n.activeElement;var e=t&&t.onActivate?t.onActivate:u.onActivate;e&&e();return h(),c},deactivate:f,pause:function(){if(l.paused||!l.active)return;l.paused=!0,d()},unpause:function(){if(!l.paused||!l.active)return;l.paused=!1,h()}};return c;function f(t){if(l.active){d(),l.active=!1,l.paused=!1,o.deactivateTrap(c);var e=t&&void 0!==t.onDeactivate?t.onDeactivate:u.onDeactivate;return e&&e(),(t&&void 0!==t.returnFocus?t.returnFocus:u.returnFocusOnDeactivate)&&a((function(){_(l.nodeFocusedBeforeActivation)})),c}}function h(){if(l.active)return o.activateTrap(c),w(),a((function(){_(v())})),n.addEventListener("focusin",g,!0),n.addEventListener("mousedown",m,!0),n.addEventListener("touchstart",m,!0),n.addEventListener("click",b,!0),n.addEventListener("keydown",y,!0),c}function d(){if(l.active)return n.removeEventListener("focusin",g,!0),n.removeEventListener("mousedown",m,!0),n.removeEventListener("touchstart",m,!0),n.removeEventListener("click",b,!0),n.removeEventListener("keydown",y,!0),c}function p(t){var e=u[t],r=e;if(!e)return null;if("string"===typeof e&&!(r=n.querySelector(e)))throw new Error("`"+t+"` refers to no known node");if("function"===typeof e&&!(r=e()))throw new Error("`"+t+"` did not return a node");return r}function v(){var t;if(!(t=null!==p("initialFocus")?p("initialFocus"):s.contains(n.activeElement)?n.activeElement:l.firstTabbableNode||p("fallbackFocus")))throw new Error("You can't have a focus-trap without at least one focusable element");return t}function m(t){s.contains(t.target)||(u.clickOutsideDeactivates?f({returnFocus:!r.isFocusable(t.target)}):t.preventDefault())}function g(t){s.contains(t.target)||t.target instanceof Document||(t.stopImmediatePropagation(),_(l.mostRecentlyFocusedNode||v()))}function y(t){if(!1!==u.escapeDeactivates&&function(t){return"Escape"===t.key||"Esc"===t.key||27===t.keyCode}(t))return t.preventDefault(),void f();(function(t){return"Tab"===t.key||9===t.keyCode})(t)&&function(t){if(w(),t.shiftKey&&t.target===l.firstTabbableNode)return t.preventDefault(),void _(l.lastTabbableNode);if(!t.shiftKey&&t.target===l.lastTabbableNode)t.preventDefault(),_(l.firstTabbableNode)}(t)}function b(t){u.clickOutsideDeactivates||s.contains(t.target)||(t.preventDefault(),t.stopImmediatePropagation())}function w(){var t=r(s);l.firstTabbableNode=t[0]||v(),l.lastTabbableNode=t[t.length-1]||v()}function _(t){t!==n.activeElement&&(t&&t.focus?(t.focus(),l.mostRecentlyFocusedNode=t,function(t){return t.tagName&&"input"===t.tagName.toLowerCase()&&"function"===typeof t.select}(t)&&t.select()):_(v()))}}},function(t,e){var n=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],r=n.join(","),i="undefined"===typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function o(t,e){e=e||{};var n,o,s,u=[],f=[],d=new h(t.ownerDocument||t),p=t.querySelectorAll(r);for(e.includeContainer&&i.call(t,r)&&(p=Array.prototype.slice.apply(p)).unshift(t),n=0;n<p.length;n++)a(o=p[n],d)&&(0===(s=l(o))?u.push(o):f.push({documentOrder:n,tabIndex:s,node:o}));return f.sort(c).map((function(t){return t.node})).concat(u)}function a(t,e){return!(!s(t,e)||function(t){return function(t){return f(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e=function(t){for(var e=0;e<t.length;e++)if(t[e].checked)return t[e]}(t.ownerDocument.querySelectorAll('input[type="radio"][name="'+t.name+'"]'));return!e||e===t}(t)}(t)||l(t)<0)}function s(t,e){return e=e||new h(t.ownerDocument||t),!(t.disabled||function(t){return f(t)&&"hidden"===t.type}(t)||e.isUntouchable(t))}o.isTabbable=function(t,e){if(!t)throw new Error("No node provided");return!1!==i.call(t,r)&&a(t,e)},o.isFocusable=function(t,e){if(!t)throw new Error("No node provided");return!1!==i.call(t,u)&&s(t,e)};var u=n.concat("iframe").join(",");function l(t){var e=parseInt(t.getAttribute("tabindex"),10);return isNaN(e)?function(t){return"true"===t.contentEditable}(t)?0:t.tabIndex:e}function c(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex}function f(t){return"INPUT"===t.tagName}function h(t){this.doc=t,this.cache=[]}
2h.prototype.hasDisplayNone=function(t,e){if(t.nodeType!==Node.ELEMENT_NODE)return!1;var n=function(t,e){for(var n=0,r=t.length;n<r;n++)if(e(t[n]))return t[n]}(this.cache,(function(e){return e===t}));if(n)return n[1];var r=!1;return"none"===(e=e||this.doc.defaultView.getComputedStyle(t)).display?r=!0:t.parentNode&&(r=this.hasDisplayNone(t.parentNode)),this.cache.push([t,r]),r},h.prototype.isUntouchable=function(t){if(t===this.doc.documentElement)return!1;var e=this.doc.defaultView.getComputedStyle(t);return!!this.hasDisplayNone(t,e)||"hidden"===e.visibility},t.exports=o},function(t,e){t.exports=function(){for(var t={},e=0;e<arguments.length;e++){var r=arguments[e];for(var i in r)n.call(r,i)&&(t[i]=r[i])}return t};var n=Object.prototype.hasOwnProperty},function(t,e,n){"use strict";e.__esModule=!0;var r=n(0),i=(a(r),a(n(1))),o=a(n(65));a(n(50));function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function c(t){var e=[];return{on:function(t){e.push(t)},off:function(t){e=e.filter((function(e){return e!==t}))},get:function(){return t},set:function(n,r){t=n,e.forEach((function(e){return e(t,r)}))}}}e.default=function(t,e){var n,a,f="__create-react-context-"+(0,o.default)()+"__",h=function(t){function n(){var e,r;s(this,n);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return e=r=u(this,t.call.apply(t,[this].concat(o))),r.emitter=c(r.props.value),u(r,e)}return l(n,t),n.prototype.getChildContext=function(){var t;return(t={})[f]=this.emitter,t},n.prototype.componentWillReceiveProps=function(t){if(this.props.value!==t.value){var n=this.props.value,r=t.value,i=void 0;((o=n)===(a=r)?0!==o||1/o===1/a:o!==o&&a!==a)?i=0:(i="function"===typeof e?e(n,r):1073741823,0!==(i|=0)&&this.emitter.set(t.value,i))}var o,a},n.prototype.render=function(){return this.props.children},n}(r.Component);h.childContextTypes=((n={})[f]=i.default.object.isRequired,n);var d=function(e){function n(){var t,r;s(this,n);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return t=r=u(this,e.call.apply(e,[this].concat(o))),r.state={value:r.getValue()},r.onUpdate=function(t,e){0!==((0|r.observedBits)&e)&&r.setState({value:r.getValue()})},u(r,t)}return l(n,e),n.prototype.componentWillReceiveProps=function(t){var e=t.observedBits;this.observedBits=void 0===e||null===e?1073741823:e},n.prototype.componentDidMount=function(){this.context[f]&&this.context[f].on(this.onUpdate);var t=this.props.observedBits;this.observedBits=void 0===t||null===t?1073741823:t},n.prototype.componentWillUnmount=function(){this.context[f]&&this.context[f].off(this.onUpdate)},n.prototype.getValue=function(){return this.context[f]?this.context[f].get():t},n.prototype.render=function(){return(t=this.props.children,Array.isArray(t)?t[0]:t)(this.state.value);var t},n}(r.Component);return d.contextTypes=((a={})[f]=i.default.object,a),{Provider:h,Consumer:d}},t.exports=e.default},function(t,e,n){"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=n(73),s=Object.prototype.propertyIsEnumerable,u=!s.call({toString:null},"toString"),l=s.call((function(){}),"prototype"),c=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(t){var e=t.constructor;return e&&e.prototype===t},h={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if("undefined"===typeof window)return!1;for(var t in window)try{if(!h["$"+t]&&i.call(window,t)&&null!==window[t]&&"object"===typeof window[t])try{f(window[t])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(t){var e=null!==t&&"object"===typeof t,n="[object Function]"===o.call(t),r=a(t),s=e&&"[object String]"===o.call(t),h=[];if(!e&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var p=l&&n;if(s&&t.length>
20&&!i.call(t,0))for(var v=0;v<t.length;++v)h.push(String(v));if(r&&t.length>0)for(var m=0;m<t.length;++m)h.push(String(m));else for(var g in t)p&&"prototype"===g||!i.call(t,g)||h.push(String(g));if(u)for(var y=function(t){if("undefined"===typeof window||!d)return f(t);try{return f(t)}catch(e){return!1}}(t),b=0;b<c.length;++b)y&&"constructor"===c[b]||!i.call(t,c[b])||h.push(c[b]);return h}}t.exports=r},function(t,e,n){"use strict";var r="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag,i=Object.prototype.toString,o=function(t){return!(r&&t&&"object"===typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===i.call(t)},a=function(t){return!!o(t)||null!==t&&"object"===typeof t&&"number"===typeof t.length&&t.length>=0&&"[object Array]"!==i.call(t)&&"[object Function]"===i.call(t.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=a,t.exports=s?o:a},function(t,e,n){"use strict";var r=n(32),i=n(74),o=n(75),a=n(76),s=n(150),u=i(a(),Object);r(u,{getPolyfill:a,implementation:o,shim:s}),t.exports=u},function(t,e,n){"use strict";var r="Function.prototype.bind called on incompatible ",i=Array.prototype.slice,o=Object.prototype.toString;t.exports=function(t){var e=this;if("function"!==typeof e||"[object Function]"!==o.call(e))throw new TypeError(r+e);for(var n,a=i.call(arguments,1),s=function(){if(this instanceof n){var r=e.apply(this,a.concat(i.call(arguments)));return Object(r)===r?r:this}return e.apply(t,a.concat(i.call(arguments)))},u=Math.max(0,e.length-a.length),l=[],c=0;c<u;c++)l.push("$"+c);if(n=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(s),e.prototype){var f=function(){};f.prototype=e.prototype,n.prototype=new f,f.prototype=null}return n}},function(t,e,n){"use strict";var r=TypeError,i=Object.getOwnPropertyDescriptor;if(i)try{i({},"")}catch(g){i=null}var o=function(){throw new r},a=i?function(){try{return arguments.callee,o}catch(t){try{return i(arguments,"callee").get}catch(e){return o}}}():o,s=n(148)(),u=Object.getPrototypeOf||function(t){return t.__proto__},l=void 0,c="undefined"===typeof Uint8Array?void 0:u(Uint8Array),f={"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayBufferPrototype%":"undefined"===typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"%ArrayIteratorPrototype%":s?u([][Symbol.iterator]()):void 0,"%ArrayPrototype%":Array.prototype,"%ArrayProto_entries%":Array.prototype.entries,"%ArrayProto_forEach%":Array.prototype.forEach,"%ArrayProto_keys%":Array.prototype.keys,"%ArrayProto_values%":Array.prototype.values,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":void 0,"%AsyncFunctionPrototype%":void 0,"%AsyncGenerator%":void 0,"%AsyncGeneratorFunction%":void 0,"%AsyncGeneratorPrototype%":void 0,"%AsyncIteratorPrototype%":l&&s&&Symbol.asyncIterator?l[Symbol.asyncIterator]():void 0,"%Atomics%":"undefined"===typeof Atomics?void 0:Atomics,"%Boolean%":Boolean,"%BooleanPrototype%":Boolean.prototype,"%DataView%":"undefined"===typeof DataView?void 0:DataView,"%DataViewPrototype%":"undefined"===typeof DataView?void 0:DataView.prototype,"%Date%":Date,"%DatePrototype%":Date.prototype,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%ErrorPrototype%":Error.prototype,"%eval%":eval,"%EvalError%":EvalError,"%EvalErrorPrototype%":EvalError.prototype,"%Float32Array%":"undefined"===typeof Float32Array?void 0:Float32Array,"%Float32ArrayPrototype%":"undefined"===typeof Float32Array?void 0:Float32Array.prototype,"%Float64Array%":"undefined"===typeof Float64Array?void 0:Float64Array,"%Float64ArrayPrototype%":"undefined"===typeof Float64Array?void 0:Float64Array.prototype,"%Function%":Function,"%FunctionPrototype%":Function.prototype,"%Generator%":void 0,"%GeneratorFunction%":void 0,"%GeneratorPrototype%":void 0,"%Int8Array%":"undefined"===typeof Int8Array?void 0:Int8Array,"%Int8ArrayPrototype%":"undefined"===typeof Int8Array?void 0:Int8Array.prototype,"%Int16Array%":"undefined"===typeof Int16Array?void 0:Int16Array,"%Int16ArrayPrototype%":"undefined"===typeof Int16Array?void 0:Int8Array.prototype,"%Int32Array%":"undefined"===typeof Int32Array?void 0:Int32Array,"%Int32ArrayPrototype%":"undefined"===typeof Int32Array?void 0:Int32Array.prototype,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
2IteratorPrototype%":s?u(u([][Symbol.iterator]())):void 0,"%JSON%":"object"===typeof JSON?JSON:void 0,"%JSONParse%":"object"===typeof JSON?JSON.parse:void 0,"%Map%":"undefined"===typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&s?u((new Map)[Symbol.iterator]()):void 0,"%MapPrototype%":"undefined"===typeof Map?void 0:Map.prototype,"%Math%":Math,"%Number%":Number,"%NumberPrototype%":Number.prototype,"%Object%":Object,"%ObjectPrototype%":Object.prototype,"%ObjProto_toString%":Object.prototype.toString,"%ObjProto_valueOf%":Object.prototype.valueOf,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?void 0:Promise,"%PromisePrototype%":"undefined"===typeof Promise?void 0:Promise.prototype,"%PromiseProto_then%":"undefined"===typeof Promise?void 0:Promise.prototype.then,"%Promise_all%":"undefined"===typeof Promise?void 0:Promise.all,"%Promise_reject%":"undefined"===typeof Promise?void 0:Promise.reject,"%Promise_resolve%":"undefined"===typeof Promise?void 0:Promise.resolve,"%Proxy%":"undefined"===typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%RangeErrorPrototype%":RangeError.prototype,"%ReferenceError%":ReferenceError,"%ReferenceErrorPrototype%":ReferenceError.prototype,"%Reflect%":"undefined"===typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%RegExpPrototype%":RegExp.prototype,"%Set%":"undefined"===typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&s?u((new Set)[Symbol.iterator]()):void 0,"%SetPrototype%":"undefined"===typeof Set?void 0:Set.prototype,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%SharedArrayBufferPrototype%":"undefined"===typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"%String%":String,"%StringIteratorPrototype%":s?u(""[Symbol.iterator]()):void 0,"%StringPrototype%":String.prototype,"%Symbol%":s?Symbol:void 0,"%SymbolPrototype%":s?Symbol.prototype:void 0,"%SyntaxError%":SyntaxError,"%SyntaxErrorPrototype%":SyntaxError.prototype,"%ThrowTypeError%":a,"%TypedArray%":c,"%TypedArrayPrototype%":c?c.prototype:void 0,"%TypeError%":r,"%TypeErrorPrototype%":r.prototype,"%Uint8Array%":"undefined"===typeof Uint8Array?void 0:Uint8Array,"%Uint8ArrayPrototype%":"undefined"===typeof Uint8Array?void 0:Uint8Array.prototype,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint8ClampedArrayPrototype%":"undefined"===typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"%Uint16Array%":"undefined"===typeof Uint16Array?void 0:Uint16Array,"%Uint16ArrayPrototype%":"undefined"===typeof Uint16Array?void 0:Uint16Array.prototype,"%Uint32Array%":"undefined"===typeof Uint32Array?void 0:Uint32Array,"%Uint32ArrayPrototype%":"undefined"===typeof Uint32Array?void 0:Uint32Array.prototype,"%URIError%":URIError,"%URIErrorPrototype%":URIError.prototype,"%WeakMap%":"undefined"===typeof WeakMap?void 0:WeakMap,"%WeakMapPrototype%":"undefined"===typeof WeakMap?void 0:WeakMap.prototype,"%WeakSet%":"undefined"===typeof WeakSet?void 0:WeakSet,"%WeakSetPrototype%":"undefined"===typeof WeakSet?void 0:WeakSet.prototype},h=n(55).call(Function.call,String.prototype.replace),d=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,p=/\\(\\)?/g,v=function(t){var e=[];return h(t,d,(function(t,n,r,i){e[e.length]=r?h(i,p,"$1"):n||t})),e},m=function(t,e){if(!(t in f))throw new SyntaxError("intrinsic "+t+" does not exist!");if("undefined"===typeof f[t]&&!e)throw new r("intrinsic "+t+" exists, but is not available. Please file an issue!");return f[t]};t.exports=function(t,e){if("string"!==typeof t||0===t.length)throw new TypeError("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof e)throw new TypeError('"allowMissing" argument must be a boolean');for(var n=v(t),o=m("%"+(n.length>0?n[0]:"")+"%",e),a=1;a<n.length;a+=1)if(null!=o)if(i&&a+1>=n.length){var s=i(o,n[a]);if(!e&&!(n[a]in o))throw new r("base intrinsic for "+t+" exists, but the property is not available.");o=s?s.get||s.value:o[n[a]]}else o=o[n[a]];return o}},function(t,e,n){"use strict";(function(e){var r=e.Symbol,i=n(149);t.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&i())))}}).call(this,n(22))},function(t,e,n){"use strict";
2t.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),n=Object(e);if("string"===typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(e in t[e]=42,t)return!1;if("function"===typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},function(t,e,n){"use strict";var r=n(76),i=n(32);t.exports=function(){var t=r();return i(Object,{is:t},{is:function(){return Object.is!==t}}),t}},function(t,e,n){"use strict";var r=n(152),i=RegExp.prototype.exec,o=Object.getOwnPropertyDescriptor,a=Object.prototype.toString,s="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;t.exports=function(t){if(!t||"object"!==typeof t)return!1;if(!s)return"[object RegExp]"===a.call(t);var e=o(t,"lastIndex");return!(!e||!r(e,"value"))&&function(t){try{var e=t.lastIndex;return t.lastIndex=0,i.call(t),!0}catch(n){return!1}finally{t.lastIndex=e}}(t)}},function(t,e,n){"use strict";var r=n(55);t.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},function(t,e,n){"use strict";var r=n(32),i=n(74),o=n(77),a=n(78),s=n(154),u=i(o);r(u,{getPolyfill:a,implementation:o,shim:s}),t.exports=u},function(t,e,n){"use strict";var r=n(32).supportsDescriptors,i=n(78),o=Object.getOwnPropertyDescriptor,a=Object.defineProperty,s=TypeError,u=Object.getPrototypeOf,l=/a/;t.exports=function(){if(!r||!u)throw new s("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=i(),e=u(l),n=o(e,"flags");return n&&n.get===t||a(e,"flags",{configurable:!0,enumerable:!1,get:t}),t}},function(t,e,n){"use strict";var r=Date.prototype.getDay,i=Object.prototype.toString,o="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;t.exports=function(t){return"object"===typeof t&&null!==t&&(o?function(t){try{return r.call(t),!0}catch(e){return!1}}(t):"[object Date]"===i.call(t))}},function(t,e){t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},function(t,e,n){"use strict";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,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,h=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,v=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function x(t){if("object"===typeof t&&null!==t){var e=t.$$typeof;switch(e){case i:switch(t=t.type){case f:case h:case a:case u:case s:case p:return t;default:switch(t=t&&t.$$typeof){case c:case d:case g:case m:case l:return t;default:return e}}case o:return e}}}function E(t){return x(t)===h}e.AsyncMode=f,e.ConcurrentMode=h,e.ContextConsumer=c,e.ContextProvider=l,e.Element=i,e.ForwardRef=d,e.Fragment=a,e.Lazy=g,e.Memo=m,e.Portal=o,e.Profiler=u,e.StrictMode=s,e.Suspense=p,e.isAsyncMode=function(t){return E(t)||x(t)===f},e.isConcurrentMode=E,e.isContextConsumer=function(t){return x(t)===c},e.isContextProvider=function(t){return x(t)===l},e.isElement=function(t){return"object"===typeof t&&null!==t&&t.$$typeof===i},e.isForwardRef=function(t){return x(t)===d},e.isFragment=function(t){return x(t)===a},e.isLazy=function(t){return x(t)===g},e.isMemo=function(t){return x(t)===m},e.isPortal=function(t){return x(t)===o},e.isProfiler=function(t){return x(t)===u},e.isStrictMode=function(t){return x(t)===s},e.isSuspense=function(t){return x(t)===p},e.isValidElementType=function(t){return"string"===typeof t||"function"===typeof t||t===a||t===h||t===u||t===s||t===p||t===v||"object"===typeof t&&null!==t&&(t.$$typeof===g||t.$$typeof===m||t.$$typeof===l||t.$$typeof===c||t.$$typeof===d||t.$$typeof===b||t.$$typeof===w||t.$$typeof===_||t.$$typeof===y)},e.typeOf=x},function(t,e,n){var r=function(t){"use strict";var e=Object.prototype,n=e.hasOwnProperty,r="function"===typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(t,e,n,r){var i=e&&e.prototype instanceof c?e:c,o=Object.create(i.prototype),a=new x(r||[]);return o._invoke=function(t,e,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 k()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=b(a,n);if(s){if(s===l)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 c=u(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(t,n,a),o}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(r){return{type:"throw",arg:r}}}t.wrap=s;var l={};function c(){}function f(){}function h(){}var d={};d[i]=function(){return this};var p=Object.getPrototypeOf,v=p&&p(p(E([])));v&&v!==e&&n.call(v,i)&&(d=v);var m=h.prototype=c.prototype=Object.create(d);function g(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function y(t,e){var r;this._invoke=function(i,o){function a(){return new e((function(r,a){!function r(i,o,a,s){var l=u(t[i],t,o);if("throw"!==l.type){var c=l.arg,f=c.value;return f&&"object"===typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,s)}))}s(l.arg)}(i,o,r,a)}))}return r=r?r.then(a,a):a()}}function b(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&
vendor: 4,654 bytes, line 2
2(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=u(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,l;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function E(t){if(t){var e=t[i];if(e)return e.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:k}}function k(){return{value:void 0,done:!0}}return f.prototype=m.constructor=h,h.constructor=f,h[a]=f.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,a in t||(t[a]="GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},g(y.prototype),y.prototype[o]=function(){return this},t.AsyncIterator=y,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new y(s(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},g(m),m[a]="Generator",m[i]=function(){return this},m.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=E,x.prototype={constructor:x,reset:function(t){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(_),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.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(t,e){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"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),_(n),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;_(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:E(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},t}(t.exports);try{regeneratorRuntime=r}catch(i){Function("r","regeneratorRuntime = r")(r)}},function(t,e,n){"use strict";var r=n(16),i=n(80),o=n(160),a=n(86);function s(t){var e=new o(t),n=i(o.prototype.request,e);return r.extend(n,o.prototype,e),r.extend(n,e),n}var u=s(n(83));u.Axios=o,u.create=function(t){return s(a(u.defaults,t))},u.Cancel=n(87),u.CancelToken=n(173),u.isCancel=n(82),u.all=function(t){return Promise.all(t)}
vendor: 2,978 bytes, line 2
2,u.spread=n(174),t.exports=u,t.exports.default=u},function(t,e,n){"use strict";var r=n(16),i=n(81),o=n(161),a=n(162),s=n(86);function u(t){this.defaults=t,this.interceptors={request:new o,response:new o}}u.prototype.request=function(t){"string"===typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[a,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},u.prototype.getUri=function(t){return t=s(this.defaults,t),i(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){u.prototype[t]=function(e,n){return this.request(r.merge(n||{},{method:t,url:e}))}})),r.forEach(["post","put","patch"],(function(t){u.prototype[t]=function(e,n,i){return this.request(r.merge(i||{},{method:t,url:e,data:n}))}})),t.exports=u},function(t,e,n){"use strict";var r=n(16);function i(){this.handlers=[]}i.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},function(t,e,n){"use strict";var r=n(16),i=n(163),o=n(82),a=n(83);function s(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return s(t),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return s(t),e.data=i(e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(s(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},function(t,e,n){"use strict";var r=n(16);t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},function(t,e,n){"use strict";var r=n(16);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},function(t,e,n){"use strict";var r=n(85);t.exports=function(t,e,n){var i=n.config.validateStatus;!i||i(n.status)?t(n):e(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(t,e,n){"use strict";t.exports=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t.isAxiosError=!0,t.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}},t}}
2,function(t,e,n){"use strict";var r=n(168),i=n(169);t.exports=function(t,e){return t&&!r(e)?i(t,e):e}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var r=n(16),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"];t.exports=function(t){var e,n,o,a={};return t?(r.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e){if(a[e]&&i.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},function(t,e,n){"use strict";var r=n(16);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(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 t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var r=n(16);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,i,o,a){var s=[];s.push(t+"="+encodeURIComponent(e)),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(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";var r=n(87);function i(t){if("function"!==typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t;return{token:new i((function(e){t=e})),cancel:t}},t.exports=i},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},,,,,,,,,,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.bodyOpenClassName=e.portalClassName=void 0;var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(0),a=p(o),s=p(n(15)),u=p(n(1)),l=p(n(187)),c=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(89)),f=n(56),h=p(f),d=n(193);function p(t){return t&&t.__esModule?t:{default:t}}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var g=e.portalClassName="ReactModalPortal",y=e.bodyOpenClassName="ReactModal__Body--open",b=void 0!==s.default.createPortal,w=function(){return b?s.default.createPortal:s.default.unstable_renderSubtreeIntoContainer};function _(t){return t()}var x=function(t){function e(){var t,n,i;v(this,e);for(var o=arguments.length,u=Array(o),c=0;c<o;c++)u[c]=arguments[c];return n=i=m(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(u))),i.removePortal=function(){!b&&s.default.unmountComponentAtNode(i.node);var t=_(i.props.parentSelector);t?t.removeChild(i.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},i.portalRef=function(t){i.portal=t},i.renderPortal=function(t){var n=w()(i,a.default.createElement(l.default,r({defaultStyles:e.defaultStyles},t)),i.node);i.portalRef(n)},m(i,n)}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}
vendor: 10,426 bytes, line 2
2(e,t),i(e,[{key:"componentDidMount",value:function(){f.canUseDOM&&(b||(this.node=document.createElement("div")),this.node.className=this.props.portalClassName,_(this.props.parentSelector).appendChild(this.node),!b&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(t){return{prevParent:_(t.parentSelector),nextParent:_(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(t,e,n){if(f.canUseDOM){var r=this.props,i=r.isOpen,o=r.portalClassName;t.portalClassName!==o&&(this.node.className=o);var a=n.prevParent,s=n.nextParent;s!==a&&(a.removeChild(this.node),s.appendChild(this.node)),(t.isOpen||i)&&!b&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(f.canUseDOM&&this.node&&this.portal){var t=this.portal.state,e=Date.now(),n=t.isOpen&&this.props.closeTimeoutMS&&(t.closesAt||e+this.props.closeTimeoutMS);n?(t.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-e)):this.removePortal()}}},{key:"render",value:function(){return f.canUseDOM&&b?(!this.node&&b&&(this.node=document.createElement("div")),w()(a.default.createElement(l.default,r({ref:this.portalRef,defaultStyles:e.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(t){c.setElement(t)}}]),e}(o.Component);x.propTypes={isOpen:u.default.bool.isRequired,style:u.default.shape({content:u.default.object,overlay:u.default.object}),portalClassName:u.default.string,bodyOpenClassName:u.default.string,htmlOpenClassName:u.default.string,className:u.default.oneOfType([u.default.string,u.default.shape({base:u.default.string.isRequired,afterOpen:u.default.string.isRequired,beforeClose:u.default.string.isRequired})]),overlayClassName:u.default.oneOfType([u.default.string,u.default.shape({base:u.default.string.isRequired,afterOpen:u.default.string.isRequired,beforeClose:u.default.string.isRequired})]),appElement:u.default.instanceOf(h.default),onAfterOpen:u.default.func,onRequestClose:u.default.func,closeTimeoutMS:u.default.number,ariaHideApp:u.default.bool,shouldFocusAfterRender:u.default.bool,shouldCloseOnOverlayClick:u.default.bool,shouldReturnFocusAfterClose:u.default.bool,parentSelector:u.default.func,aria:u.default.object,data:u.default.object,role:u.default.string,contentLabel:u.default.string,shouldCloseOnEsc:u.default.bool,overlayRef:u.default.func,contentRef:u.default.func},x.defaultProps={isOpen:!1,portalClassName:g,bodyOpenClassName:y,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,parentSelector:function(){return document.body}},x.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,d.polyfill)(x),e.default=x},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(0),s=m(a),u=m(n(1)),l=v(n(188)),c=m(n(189)),f=v(n(89)),h=v(n(191)),d=m(n(56)),p=m(n(90));function v(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function m(t){return t&&t.__esModule?t:{default:t}}n(192);var g={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},y=0,b=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.setOverlayRef=function(t){n.overlay=t,n.props.overlayRef&&n.props.overlayRef(t)},n.setContentRef=function(t){n.content=t,n.props.contentRef&&n.props.contentRef(t)},n.afterClose=function(){var t=n.props,e=t.appElement,r=t.ariaHideApp,i=t.htmlOpenClassName,o=t.bodyOpenClassName;o&&h.remove(document.body,o),i&&h.remove(document.getElementsByTagName("html")[0],i),r&&y>0&&0===(y-=1)&&f.show(e),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(l.returnFocus(),l.teardownScopedFocus()):l.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),p.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(l.setupScopedFocus(n.node),l.markForFocusLater()),n.setState({isOpen:!0},(function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus()},n.closeWithTimeout=function(){var t=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:t},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(t){9===t.keyCode&&(0,c.default)(n.content,t),n.props.shouldCloseOnEsc&&27===t.keyCode&&(t.stopPropagation(),n.requestClose(t))},n.handleOverlayOnClick=function(t){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(t):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(t){n.props.shouldCloseOnOverlayClick||t.target!=n.overlay||t.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(t){return n.ownerHandlesClose()&&n.props.onRequestClose(t)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(t,e){var r="object"===("undefined"===typeof e?"undefined":i(e))?e:{base:g[t],afterOpen:g[t]+"--after-open",beforeClose:g[t]+"--before-close"},o=r.base;return n.state.afterOpen&&(o=o+" "+r.afterOpen),n.state.beforeClose&&(o=o+" "+r.beforeClose),"string"===typeof e&&e?o+" "+e:o},n.attributesFromObject=function(t,e){return Object.keys(e).reduce((function(n,r){return n[t+"-"+r]=e[r],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(t,e){this.props.isOpen&&!t.isOpen?this.open():!this.props.isOpen&&t.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!e.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer)}},{key:"beforeOpen",value:function(){var t=this.props,e=t.appElement,n=t.ariaHideApp,r=t.htmlOpenClassName,i=t.bodyOpenClassName;i&&h.add(document.body,i),r&&h.add(document.getElementsByTagName("html")[0],r),n&&(y+=1,f.hide(e)),p.default.register(this)}},{key:"render",value:function(){var t=this.props,e=t.id,n=t.className,i=t.overlayClassName,o=t.defaultStyles,a=n?{}:o.content,u=i?{}:o.overlay;return this.shouldBeClosed()?null:s.default.createElement("div",{ref:this.setOverlayRef,className:this.buildClassName("overlay",i),style:r({},u,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},s.default.createElement("div",r({id:e,ref:this.setContentRef,style:r({},a,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",this.props.aria||{}),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),this.props.children))}}]),e}(a.Component);b.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},b.propTypes={isOpen:u.default.bool.isRequired,defaultStyles:u.default.shape({content:u.default.object,overlay:u.default.object}),style:u.default.shape({content:u.default.object,overlay:u.default.object}),className:u.default.oneOfType([u.default.string,u.default.object]),overlayClassName:u.default.oneOfType([u.default.string,u.default.object]),bodyOpenClassName:u.default.string,htmlOpenClassName:u.default.string,ariaHideApp:u.default.bool,appElement:u.default.instanceOf(d.default),onAfterOpen:u.default.func,onAfterClose:u.default.func,onRequestClose:u.default.func,closeTimeoutMS:u.default.number,shouldFocusAfterRender:u.default.bool,shouldCloseOnOverlayClick:u.default.bool,shouldReturnFocusAfterClose:u.default.bool,role:u.default.string,contentLabel:u.default.string,aria:u.default.object,data:u.default.object,children:u.default.node,shouldCloseOnEsc:u.default.bool,overlayRef:u.default.func,contentRef:u.default.func,id:u.default.string,testId:u.default.string},e.default=b,t.exports=e.default},function(t,e,n){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0}),e.handleBlur=l,e.handleFocus=c,e.markForFocusLater=function(){a.push(document.activeElement)},e.returnFocus=function(){var t=null;try{return void(0!==a.length&&(t=a.pop()).focus())}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},e.popWithoutFocus=function(){a.length>0&&a.pop()},e.setupScopedFocus=function(t){s=t,window.addEventListener?(window.addEventListener("blur",l,!1),document.addEventListener("focus",c,!0)):(window.attachEvent("onBlur",l),document.attachEvent("onFocus",c))},e.teardownScopedFocus=function(){s=null,window.addEventListener?(window.removeEventListener("blur",l),document.removeEventListener("focus",c)):(window.detachEvent("onBlur",l),document.detachEvent("onFocus",c))};var r,i=n(88),o=(r=i)&&r.__esModule?r:{default:r};var a=[],s=null,u=!1;function l(){u=!0}function c(){if(u){if(u=!1,!s)return;setTimeout((function(){s.contains(document.activeElement)||((0,o.default)(s)[0]||s).focus()}),0)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=(0,o.default)(t);if(!n.length)return void e.preventDefault();var r=void 0,i=e.shiftKey,a=n[0],s=n[n.length-1];if(t===document.activeElement){if(!i)return;r=s}s!==document.activeElement||i||(r=a);a===document.activeElement&&i&&(r=s);if(r)return e.preventDefault(),void r.focus();var u=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==u||"Chrome"==u[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var l=n.indexOf(document.activeElement);l>-1&&(l+=i?-1:1);if("undefined"===typeof(r=n[l]))return e.preventDefault(),void(r=i?s:a).focus();e.preventDefault(),r.focus()};var r,i=n(88),o=(r=i)&&r.__esModule?r:{default:r};t.exports=e.default},function(t,e,n){var r;!function(){"use strict";var i=!("undefined"===typeof window||!window.document||!window.document.createElement),o={canUseDOM:i,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen};void 0===(r=function(){return o}.call(e,n,e,t))||(t.exports=r)}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dumpClassLists=function(){0};var r={},i={};e.add=function(t,e){return n=t.classList,o="html"==t.nodeName.toLowerCase()?r:i,void e.split(" ").forEach((function(t){!function(t,e){t[e]||(t[e]=0),t[e]+=1}(o,t),n.add(t)}));var n,o},e.remove=function(t,e){return n=t.classList,o="html"==t.nodeName.toLowerCase()?r:i,void e.split(" ").forEach((function(t){!function(t,e){t[e]&&(t[e]-=1)}(o,t),0===o[t]&&n.remove(t)}));var n,o}},function(t,e,n){"use strict";var r,i=n(90),o=(r=i)&&r.__esModule?r:{default:r};var a=void 0,s=void 0,u=[];function l(){0!==u.length&&u[u.length-1].focusContent()}o.default.subscribe((function(t,e){a&&s||((a=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),a.style.position="absolute",a.style.opacity="0",a.setAttribute("tabindex","0"),a.addEventListener("focus",l),(s=a.cloneNode()).addEventListener("focus",l)),(u=e).length>0?(document.body.firstChild!==a&&document.body.insertBefore(a,document.body.firstChild),document.body.lastChild!==s&&document.body.appendChild(s)):(a.parentElement&&a.parentElement.removeChild(a),s.parentElement&&s.parentElement.removeChild(s))}))},function(t,e,n){"use strict";function r(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==t&&void 0!==t&&this.setState(t)}function i(t){this.setState(function(e){var n=this.constructor.getDerivedStateFromProps(t,e);return null!==n&&void 0!==n?n:null}.bind(this))}function o(t,e){try{var n=this.props,r=this.state;this.props=t,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(t){var e=t.prototype;if(!e||!e.isReactComponent)throw new Error("Can only polyfill class components");if("function"!==typeof t.getDerivedStateFromProps&&"function"!==typeof e.getSnapshotBeforeUpdate)return t;var n=null,a=null,s=null;if("function"===typeof e.componentWillMount?n="componentWillMount":"function"===typeof e.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"===typeof e.componentWillReceiveProps?a="componentWillReceiveProps":"function"===typeof e.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"===typeof e.componentWillUpdate?s="componentWillUpdate":"function"===typeof e.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==s){var u=t.displayName||t.name,l="function"===typeof t.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+u+" uses "+l+" but also contains the following legacy lifecycles:"+(null!==n?"\n  "+n:"")+(null!==a?"\n  "+a:"")+(null!==s?"\n  "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"===typeof t.getDerivedStateFromProps&&(e.componentWillMount=r,e.componentWillReceiveProps=i),"function"===typeof e.getSnapshotBeforeUpdate){if("function"!==typeof e.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");e.componentWillUpdate=o;var c=e.componentDidUpdate;e.componentDidUpdate=function(t,e,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,t,e,r)}}return t}n.r(e),n.d(e,"polyfill",(function(){return a})),r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0},,function(t,e,n){"use strict";(function(t){var r=n(196),i=n(197),o=n(198);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=u.prototype:(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,n){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(t,e,n);if("number"===typeof t){if("string"===typeof e)throw new Error("If encoding is specified then the first argument must be a string");return f(this,t)}return l(this,t,e,n)}function l(t,e,n,r){if("number"===typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r);u.TYPED_ARRAY_SUPPORT?(t=e).__proto__=u.prototype:t=h(t,e);return t}(t,e,n,r):"string"===typeof e?function(t,e,n){"string"===typeof n&&""!==n||(n="utf8");if(!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(e,n),i=(t=s(t,r)).write(e,n);i!==r&&(t=t.slice(0,i));return t}(t,e,n):function(t,e){if(u.isBuffer(e)){var n=0|d(e.length);return 0===(t=s(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!==typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!==typeof e.length||(r=e.length)!==r?s(t,0):h(t,e);if("Buffer"===e.type&&o(e.data))return h(t,e.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function c(t){if("number"!==typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function f(t,e){if(c(e),t=s(t,e<0?0:0|d(e)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function h(t,e){var n=e.length<0?0:0|d(e.length);t=s(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function d(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function p(t,e){if(u.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&
vendor: 12,835 bytes, line 2
2(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return q(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return B(t).length;default:if(r)return q(t).length;e=(""+e).toLowerCase(),r=!0}}function v(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return C(this,e,n);case"utf8":case"utf-8":return S(this,e,n);case"ascii":return O(this,e,n);case"latin1":case"binary":return A(this,e,n);case"base64":return T(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function m(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function g(t,e,n,r,i){if(0===t.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:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:y(t,e,n,r,i);if("number"===typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):y(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function y(t,e,n,r,i){var o,a=1,s=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,n/=2}function l(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var c=-1;for(o=n;o<s;o++)if(l(t,o)===l(e,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(n+u>s&&(n=s-u),o=n;o>=0;o--){for(var f=!0,h=0;h<u;h++)if(l(t,o+h)!==l(e,h)){f=!1;break}if(f)return o}return-1}function b(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=e.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(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function w(t,e,n,r){return V(q(e,t.length-n),t,n,r)}function _(t,e,n,r){return V(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function x(t,e,n,r){return _(t,e,n,r)}function E(t,e,n,r){return V(B(e),t,n,r)}function k(t,e,n,r){return V(function(t,e){for(var n,r,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)n=t.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function T(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function S(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o,a,s,u,l=t[i],c=null,f=l>239?4:l>223?3:l>191?2:1;if(i+f<=n)switch(f){case 1:l<128&&(c=l);break;case 2:128===(192&(o=t[i+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=t[i+1],a=t[i+2],128===(192&o)&&128===(192&a)&&(u=(15&l)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=f}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=4096));return n}(r)}e.Buffer=u,e.SlowBuffer=function(t){+t!=t&&(t=0);return u.alloc(+t)},e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}(),e.kMaxLength=a(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,n){return l(null,t,e,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(t,e,n){return function(t,e,n,r){return c(e),e<=0?s(t,e):void 0!==n?"string"===typeof r?s(t,e).fill(n,r):s(t,e).fill(n):s(t,e)}(null,t,e,n)},u.allocUnsafe=function(t){return f(null,t)},u.allocUnsafeSlow=function(t){return f(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(t){switch(String(t).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(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=u.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var a=t[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=p,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)m(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)m(this,e,e+3),m(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)m(this,e,e+7),m(this,e+1,e+6),m(this,e+2,e+5),m(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?S(this,0,t):v.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,n,r,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(o,a),l=this.slice(r,i),c=t.slice(e,n),f=0;f<s;++f)if(l[f]!==c[f]){o=l[f],a=c[f];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},u.prototype.indexOf=function(t,e,n){return g(this,t,e,n,!0)},u.prototype.lastIndexOf=function(t,e,n){return g(this,t,e,n,!1)},u.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"===typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>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,t,e,n);case"utf8":case"utf-8":return w(this,t,e,n);case"ascii":return _(this,t,e,n);case"latin1":case"binary":return x(this,t,e,n);case"base64":return E(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,e,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)}};function O(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function A(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function C(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=U(t[o]);return i}function N(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function I(t,e,n){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function P(t,e,n,r,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function M(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function D(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function R(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(t,e,n,r,o){return o||R(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function j(t,e,n,r,o){return o||R(t,0,n,8),i.write(t,e,n,r,52,8),n+8}u.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=u.prototype;else{var i=e-t;n=new u(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+t]}return n},u.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},u.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},u.prototype.readUInt8=function(t,e){return e||I(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||I(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||I(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||I(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||I(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*e)),r},u.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||I(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||I(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){e||I(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return e||I(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||I(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||I(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||I(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||I(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||I(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||P(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},u.prototype.writeUIntBE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||P(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},u.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):M(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>
vendor: 5,178 bytes, line 2
28,this[e+1]=255&t):M(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):D(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):D(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);P(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<n&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},u.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);P(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):M(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):M(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):D(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):D(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,n){return L(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return L(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return j(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return j(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<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),t.length-e<r-n&&(r=t.length-e+n);var i,o=r-n;if(this===t&&n<e&&e<r)for(i=o-1;i>=0;--i)t[i+e]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},u.prototype.fill=function(t,e,n,r){if("string"===typeof t){if("string"===typeof e?(r=e,e=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=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 t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(o=e;o<n;++o)this[o]=t;else{var a=u.isBuffer(t)?t:q(new u(t,r).toString()),s=a.length;for(o=0;o<n-e;++o)this[o+e]=a[o%s]}return this};var F=/[^+\/0-9A-Za-z-_]/g;function U(t){return t<16?"0"+t.toString(16):t.toString(16)}function q(t,e){var n;e=e||1/0;for(var r=t.length,i=null,o=[],a=0;a<r;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=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((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function B(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(F,"")).length<2)return"";for(;t.length%4!==0;)t+="=";return t}(t))}function V(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(this,n(22))},function(t,e,n){"use strict";e.byteLength=function(t){var e=l(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,r=l(t),a=r[0],s=r[1],u=new o(function(t,e,n){return 3*(e+n)/4-n}(0,a,s)),c=0,f=s>0?a-4:a;for(n=0;n<f;n+=4)e=i[t.charCodeAt(n)]<<18|i[t.charCodeAt(n+1)]<<12|i[t.charCodeAt(n+2)]<<6|i[t.charCodeAt(n+3)],u[c++]=e>>16&255,u[c++]=e>>8&255,u[c++]=255&e;2===s&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,u[c++]=255&e);1===s&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,u[c++]=e>>8&255,u[c++]=255&e);return u},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(c(t,a,a+16383>
2s?s:a+16383));1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<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 l(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function c(t,e,n){for(var i,o,a=[],s=e;s<n;s+=3)i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[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(t,e){e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,l=u>>1,c=-7,f=n?i-1:0,h=n?-1:1,d=t[e+f];for(f+=h,o=d&(1<<-c)-1,d>>=-c,c+=s;c>0;o=256*o+t[e+f],f+=h,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+t[e+f],f+=h,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=l}return(d?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,u,l=8*o-i-1,c=(1<<l)-1,f=c>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,v=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+f>=1?h/u:h*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(e*u-1)*Math.pow(2,i),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;t[n+d]=255&s,d+=p,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;t[n+d]=255&a,d+=p,a/=256,l-=8);t[n+d-p]|=128*v}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){"use strict";var r=n(0),i=n(15),o=n(94),a=n(95),s=(n(96),n(287)),u=n(25),l=n(1),c=n(111),f=o({displayName:"Quill",mixins:[a],propTypes:{id:l.string,className:l.string,theme:l.string,style:l.object,readOnly:l.bool,value:l.oneOfType([l.string,l.shape({ops:l.array})]),defaultValue:l.oneOfType([l.string,l.shape({ops:l.array})]),placeholder:l.string,tabIndex:l.number,bounds:l.oneOfType([l.string,l.element]),onChange:l.func,onChangeSelection:l.func,onFocus:l.func,onBlur:l.func,onKeyPress:l.func,onKeyDown:l.func,onKeyUp:l.func,preserveWhitespace:l.bool,modules:function(t){var e=l.object.apply(this,arguments);return e||(t.modules&&t.modules.toolbar&&t.modules.toolbar[0]&&t.modules.toolbar[0].type?new Error("Since v1.0.0, React Quill will not create a custom toolbar for you anymore. Create a toolbar explictly, or let Quill create one. See: https://github.com/zenoamaro/react-quill#upgrading-to-react-quill-v100"):void 0)},toolbar:function(t){if("toolbar"in t)return new Error("The `toolbar` prop has been deprecated. Use `modules.toolbar` instead. See: https://github.com/zenoamaro/react-quill#upgrading-to-react-quill-v100")},formats:function(t){var e=l.arrayOf(l.string).apply(this,arguments);if(e)return new Error("You cannot specify custom `formats` anymore. Use Parchment instead.  See: https://github.com/zenoamaro/react-quill#upgrading-to-react-quill-v100.")},styles:function(t){if("styles"in t)return new Error("The `styles` prop has been deprecated. Use custom stylesheets instead. See: https://github.com/zenoamaro/react-quill#upgrading-to-react-quill-v100.")},pollInterval:function(t){if("pollInterval"in t)return new Error("The `pollInterval` property does not have any effect anymore. You can safely remove it from your props.See: https://github.com/zenoamaro/react-quill#upgrading-to-react-quill-v100.")},children:function(t){var e=l.element.apply(this,arguments);if(e)return new Error("The Quill editing area can only be composed of a single React element.");if(r.Children.count(t.children)){var n=r.Children.only(t.children);if("textarea"===n.type)return new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}}},dirtyProps:["modules","formats","bounds","theme","children"],cleanProps:["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],getDefaultProps:function(){return{theme:"snow",modules:{}}},isControlled:function(){return"value"in this.props},getInitialState:function(){return{generation:0,value:this.isControlled()?this.props.value:this.props.defaultValue}},componentWillReceiveProps:function(t,e){var n=this.editor;if(n){if("value"in t){var r=this.getEditorContents(),i=t.value;if(i===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas");this.isEqualValue(i,r)||this.setEditorContents(n,i)}return"readOnly"in t&&t.readOnly!==this.props.readOnly&&this.setEditorReadOnly(n,t.readOnly),this.shouldComponentRegenerate(t,e)?this.regenerate():void 0}},componentDidMount:function(){if(this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig()),this.quillDelta)return this.editor.setContents(this.quillDelta),this.editor.setSelection(this.quillSelection),this.editor.focus(),void(this.quillDelta=this.quillSelection=null);this.state.value&&this.setEditorContents(this.editor,this.state.value)},componentWillUnmount:function(){var t;(t=this.getEditor())&&(this.unhookEditor(t),this.editor=null)},shouldComponentUpdate:function(t,e){var n=this;return this.state.generation!==e.generation||s(this.cleanProps,(function(e){return!u(t[e],n.props[e])}))},shouldComponentRegenerate:function(t,e){var n=this;return s(this.dirtyProps,(function(e){return!u(t[e],n.props[e])}))},componentWillUpdate:function(t,e){this.state.generation!==e.generation&&this.componentWillUnmount()},componentDidUpdate:function(t,e){this.state.generation!==e.generation&&this.componentDidMount()},getEditorConfig:function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},getEditor:function(){return this.editor},getEditingArea:function(){return i.findDOMNode(this.editingArea)},getEditorContents:function(){return this.state.value},getEditorSelection:function(){return this.state.selection},isDelta:function(t){return t&&t.ops},isEqualValue:function(t,e){return this.isDelta(t)&&this.isDelta(e)?u(t.ops,e.ops):u(t,e)},regenerate:function(){this.quillDelta=this.editor.getContents(),this.quillSelection=this.editor.getSelection(),this.setState({generation:this.state.generation+1})},renderEditingArea:function(){var t=this,e=this.props.children,n=this.props.preserveWhitespace,i={key:this.state.generation,tabIndex:this.props.tabIndex,ref:function(e){t.editingArea=e}},o=r.Children.count(e)?r.Children.only(e):null,a=n?c.pre:c.div;return o?r.cloneElement(o,i):a(i)},render:function(){return c.div({id:this.props.id,style:this.props.style,key:this.state.generation,className:["quill"].concat(this.props.className).join(" "),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},onEditorChangeText:function(t,e,n,r){var i=this.getEditorContents(),o=this.isDelta(i)?r.getContents():r.getHTML();this.isEqualValue(o,i)||(this.lastDeltaChangeSet=e,this.setState({value:o}),this.props.onChange&&this.props.onChange(t,e,n,r))},onEditorChangeSelection:function(t,e,n){var r=this.getEditorSelection(),i=!r&&t,o=r&&!t;u(t,r)||(this.setState({selection:t}),this.props.onChangeSelection&&this.props.onChangeSelection(t,e,n),i&&this.props.onFocus?this.props.onFocus(t,e,n):o&&this.props.onBlur&&this.props.onBlur(r,e,n))},focus:function(){this.editor.focus()},blur:function(){this.setEditorSelection(this.editor,null)}});t.exports=f},function(t,e,n){"use strict";var r=n(37),i=n(201),o=n(202);t.exports=function(t,e,n){var a=[],s={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propT
2ypes:"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"},l={displayName:function(t,e){t.displayName=e},mixins:function(t,e){if(e)for(var n=0;n<e.length;n++)f(t,e[n])},childContextTypes:function(t,e){t.childContextTypes=r({},t.childContextTypes,e)},contextTypes:function(t,e){t.contextTypes=r({},t.contextTypes,e)},getDefaultProps:function(t,e){t.getDefaultProps?t.getDefaultProps=d(t.getDefaultProps,e):t.getDefaultProps=e},propTypes:function(t,e){t.propTypes=r({},t.propTypes,e)},statics:function(t,e){!function(t,e){if(!e)return;for(var n in e){var r=e[n];if(e.hasOwnProperty(n)){if(o(!(n in l),'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 t){var i=u.hasOwnProperty(n)?u[n]:null;return o("DEFINE_MANY_MERGED"===i,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),void(t[n]=d(t[n],r))}t[n]=r}}}(t,e)},autobind:function(){}};function c(t,e){var n=s.hasOwnProperty(e)?s[e]:null;y.hasOwnProperty(e)&&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.",e),t&&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.",e)}function f(t,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(!e(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var r=t.prototype,i=r.__reactAutoBindPairs;for(var a in n.hasOwnProperty("mixins")&&l.mixins(t,n.mixins),n)if(n.hasOwnProperty(a)&&"mixins"!==a){var u=n[a],f=r.hasOwnProperty(a);if(c(f,a),l.hasOwnProperty(a))l[a](t,u);else{var h=s.hasOwnProperty(a);if("function"===typeof u&&!h&&!f&&!1!==n.autobind)i.push(a,u),r[a]=u;else if(f){var v=s[a];o(h&&("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]=d(r[a],u):"DEFINE_MANY"===v&&(r[a]=p(r[a],u))}else r[a]=u}}}else;}function h(t,e){for(var n in o(t&&e&&"object"===typeof t&&"object"===typeof e,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects."),e)e.hasOwnProperty(n)&&(o(void 0===t[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),t[n]=e[n]);return t}function d(t,e){return function(){var n=t.apply(this,arguments),r=e.apply(this,arguments);if(null==n)return r;if(null==r)return n;var i={};return h(i,n),h(i,r),i}}function p(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}}function v(t,e){return e.bind(t)}var m={componentDidMount:function(){this.__isMounted=!0}},g={componentWillUnmount:function(){this.__isMounted=!1}},y={replaceState:function(t,e){this.updater.enqueueReplaceState(this,t,e)},isMounted:function(){return!!this.__isMounted}},b=function(){};return r(b.prototype,t.prototype,y),function(t){var e=function(t,r,a){this.__reactAutoBindPairs.length&&function(t){for(var e=t.__reactAutoBindPairs,n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];t[r]=v(t,i)}}(this),this.props=t,this.context=r,this.refs=i,this.updater=a||n,this.state=null;var s=this.getInitialState?this.getInitialState():null;o("object"===typeof s&&!Array.isArray(s),"%s.getInitialState(): must return an object or null",e.displayName||"ReactCompositeComponent"),this.state=s};for(var r in e.prototype=new b,e.prototype.constructor=e,e.prototype.__reactAutoBindPairs=[],a.forEach(f.bind(null,e)),f(e,m),f(e,t),f(e,g),e.getDefaultProps&&(e.defaultProps=e.getDefaultProps()),o(e.prototype.render,"createClass(...): Class specification must implement a `render` method."),s)e.prototype[r]||(e.prototype[r]=null);return e}}},function(t,e,n){"use strict";
vendor: 15,268 bytes, line 2
2t.exports={}},function(t,e,n){"use strict";t.exports=function(t,e,n,r,i,o,a,s){if(!t){var u;if(void 0===e)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,o,a,s],c=0;(u=new Error(e.replace(/%s/g,(function(){return l[c++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(t,e,n){var r=n(39),i=n(46),o=n(45);t.exports=function(t){return function(e,n,a){var s=Object(e);if(!i(e)){var u=r(n,3);e=o(e),n=function(t){return u(s[t],t,s)}}var l=t(e,n,a);return l>-1?s[u?e[l]:l]:void 0}}},function(t,e,n){var r=n(205),i=n(266),o=n(107);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},function(t,e,n){var r=n(97),i=n(60);t.exports=function(t,e,n,o){var a=n.length,s=a,u=!o;if(null==t)return!s;for(t=Object(t);a--;){var l=n[a];if(u&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a<s;){var c=(l=n[a])[0],f=t[c],h=l[1];if(u&&l[2]){if(void 0===f&&!(c in t))return!1}else{var d=new r;if(o)var p=o(f,h,c,t,e,d);if(!(void 0===p?i(h,f,3,o,d):p))return!1}}return!0}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var r=n(41),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():i.call(e,n,1),--this.size,!0)}},function(t,e,n){var r=n(41);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var r=n(41);t.exports=function(t){return r(this.__data__,t)>-1}},function(t,e,n){var r=n(41);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},function(t,e,n){var r=n(40);t.exports=function(){this.__data__=new r,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var r=n(40),i=n(58),o=n(59);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(t,e),this.size=n.size,this}},function(t,e,n){var r=n(98),i=n(219),o=n(34),a=n(100),s=/^\[object .+?Constructor\]$/,u=Function.prototype,l=Object.prototype,c=u.toString,f=l.hasOwnProperty,h=RegExp("^"+c.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?h:s).test(a(t))}},function(t,e,n){var r=n(42),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(u){}var i=a.call(t);return r&&(e?t[s]=n:delete t[s]),i}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){var r=n(220),i=function(){var t=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=function(t){return!!i&&i in t}},function(t,e,n){var r=n(23)["__core-js_shared__"];t.exports=r},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){var r=n(223),i=n(40),o=n(58);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(t,e,n){var r=n(224),i=n(225),o=n(226),a=n(227),s=n(228);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];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,t.exports=u},function(t,e,n){var r=n(43);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var r=n(43),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0}},function(t,e,n){var r=n(43),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},function(t,e,n){var r=n(43);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},function(t,e,n){var r=n(44);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var r=n(44);t.exports=function(t){return r(this,t).get(t)}},function(t,e,n){var r=n(44);t.exports=function(t){return r(this,t).has(t)}},function(t,e,n){var r=n(44);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},function(t,e,n){var r=n(97),i=n(101),o=n(239),a=n(243),s=n(261),u=n(21),l=n(104),c=n(105),f="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,d,p,v){var m=u(t),g=u(e),y=m?"[object Array]":s(t),b=g?"[object Array]":s(e),w=(y="[object Arguments]"==y?f:y)==f,_=(b="[object Arguments]"==b?f:b)==f,x=y==b;if(x&&l(t)){if(!l(e))return!1;m=!0,w=!1}if(x&&!w)return v||(v=new r),m||c(t)?i(t,e,n,d,p,v):o(t,e,y,n,d,p,v);if(!(1&n)){var E=w&&h.call(t,"__wrapped__"),k=_&&h.call(e,"__wrapped__");if(E||k){var T=E?t.value():t,S=k?e.value():e;return v||(v=new r),p(T,S,n,d,v)}}return!!x&&(v||(v=new r),a(t,e,n,d,p,v))}},function(t,e,n){var r=n(59),i=n(236),o=n(237);function a(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,t.exports=a},function(t,e){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,n){var r=n(42),i=n(240),o=n(57),a=n(101),s=n(241),u=n(242),l=r?r.prototype:void 0,c=l?l.valueOf:void 0;t.exports=function(t,e,n,r,l,f,h){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!f(new i(t),new i(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var d=s;case"[object Set]":var p=1&r;if(d||(d=u),t.size!=e.size&&!p)return!1;var v=h.get(t);if(v)return v==e;r|=2,h.set(t,e);var m=a(d(t),d(e),r,l,f,h);return h.delete(t),m;case"[object Symbol]":if(c)return c.call(t)==c.call(e)}return!1}},function(t,e,n){var r=n(23).Uint8Array;t.exports=r},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},function(t,e,n){var r=n(244),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,o,a,s){var u=1&n,l=r(t),c=l.length;if(c!=r(e).length&&!u)return!1;for(var f=c;f--;){var h=l[f];if(!(u?h in e:i.call(e,h)))return!1}var d=s.get(t);if(d&&s.get(e))return d==e;var p=!0;s.set(t,e),s.set(e,t);for(var v=u;++f<c;){var m=t[h=l[f]],g=e[h];if(o)var y=u?o(g,m,h,e,t,s):o(m,g,h,t,e,s);if(!(void 0===y?m===g||a(m,g,n,o,s):y)){p=!1;break}v||(v="constructor"==h)}if(p&&!v){var b=t.constructor,w=e.constructor;b==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(p=!1)}return s.delete(t),s.delete(e),p}},function(t,e,n){var r=n(245),i=n(247),o=n(45);t.exports=function(t){return r(t,o,i)}},function(t,e,n){var r=n(246),i=n(21);t.exports=function(t,e,n){var o=e(t);return i(t)?o:r(o,n(t))}},function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},function(t,e,n){var r=n(248),i=n(249),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(t){return null==t?[]:(t=Object(t),r(a(t),(function(e){return o.call(t,e)})))}:i;t.exports=s},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}},function(t,e){t.exports=function(){return[]}},function(t,e,n){var r=n(251),i=n(103),o=n(21),a=n(104),s=n(62),u=n(105),l=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),c=!n&&i(t),f=!n&&!c&&a(t),h=!n&&!c&&!f&&u(t),d=n||c||f||h,p=d?r(t.length,String):[],v=p.length;for(var m in t)!e&&!l.call(t,m)||d&&("length"==m||f&&("offset"==m||"parent"==m)||h&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,v))||p.push(m);return p}},function(t,e){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},function(t,e,n){var r=n(33),i=n(35);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(33),i=n(63),o=n(35),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,t.exports=function(t){return o(t)&&i(t.length)&&!!a[r(t)]}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,n){(function(t){var r=n(99),i=e&&!e.nodeType&&e,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,s=function(){try{var t=o&&o.require&&o.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(e){}}();t.exports=s}).call(this,n(61)(t))},function(t,e,n){var r=n(258),i=n(259),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){var r=n(260)(Object.keys,Object);t.exports=r},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){var r=n(262),i=n(58),o=n(263),a=n(264),s=n(265),u=n(33),l=n(100),c=l(r),f=l(i),h=l(o),d=l(a),p=l(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(t){var e=u(t),n="[object Object]"==e?t.constructor:void 0,r=n?l(n):"";if(r)switch(r){case c:return"[object DataView]";case f:return"[object Map]";case h:return"[object Promise]";case d:return"[object Set]";case p:return"[object WeakMap]"}return e}),t.exports=v},function(t,e,n){var r=n(27)(n(23),"DataView");t.exports=r},function(t,e,n){var r=n(27)(n(23),"Promise");t.exports=r},function(t,e,n){var r=n(27)(n(23),"Set");t.exports=r},function(t,e,n){var r=n(27)(n(23),"WeakMap");t.exports=r},function(t,e,n){var r=n(106),i=n(45);t.exports=function(t){for(var e=i(t),n=e.length;n--;){var o=e[n],a=t[o];e[n]=[o,a,r(a)]}return e}},function(t,e,n){var r=n(60),i=n(268),o=n(275),a=n(64),s=n(106),u=n(107),l=n(48);t.exports=function(t,e){return a(t)&&s(e)?u(l(t),e):function(n){var a=i(n,t);return void 0===a&&a===e?o(n,t):r(e,a,3)}}},function(t,e,n){var r=n(108);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},function(t,e,n){var r=n(270),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)})),e}));t.exports=a},function(t,e,n){var r=n(271);t.exports=function(t){var e=r(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}},function(t,e,n){var r=n(59);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function n(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},function(t,e,n){var r=n(273);t.exports=function(t){return null==t?"":r(t)}},function(t,e,n){var r=n(42),i=n(274),o=n(21),a=n(47),s=r?r.prototype:void 0,u=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(a(e))return u?u.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},function(t,e,n){var r=n(276),i=n(277);t.exports=function(t,e){return null!=t&&i(t,e,r)}},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,n){var r=n(109),i=n(103),o=n(21),a=n(62),s=n(63),u=n(48);t.exports=function(t,e,n){for(var l=-1,c=(e=r(e,t)).length,f=!1;++l<c;){var h=u(e[l]);if(!(f=null!=t&&n(t,h)))break;t=t[h]}return f||++l!=c?f:!!(c=null==t?0:t.length)&&s(c)&&a(h,c)&&(o(t)||i(t))}},function(t,e){t.exports=function(t){return t}},function(t,e,n){var r=n(280),i=n(281),o=n(64),a=n(48);t.exports=function(t){return o(t)?r(a(t)):i(t)}},function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},function(t,e,n){var r=n(108);t.exports=function(t){return function(e){return r(e,t)}}},function(t,e,n){var r=n(283),i=n(39),o=n(284),a=Math.max;t.exports=function(t,e,n){var s=null==t?0:t.length;if(!s)return-1;var u=null==n?0:o(n);return u<0&&(u=a(s+u,0)),r(t,i(e,3),u)}},function(t,e){t.exports=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}},function(t,e,n){var r=n(285);t.exports=function(t){var e=r(t),n=e%1;return e===e?n?e-n:e:0}},function(t,e,n){var r=n(286);t.exports=function(t){return t?(t=r(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t===t?t:0:0===t?t:0}},function(t,e,n){var r=n(34),i=n(47),o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(o,"");var n=s.test(t);return n||u.test(t)?l(t.slice(2),n?2:8):a.test(t)?NaN:+t}},function(t,e,n){var r=n(102),i=n(39),o=n(288),a=n(21),s=n(293);t.exports=function(t,e,n){var u=a(t)?r:o;return n&&s(t,e,n)&&(e=void 0),u(t,i(e,3))}},function(t,e,n){var r=n(110);t.exports=function(t,e){var n;return r(t,(function(t,r,i){return!(n=e(t,r,i))})),!!n}},function(t,e,n){var r=n(290),i=n(45);t.exports=function(t,e){return t&&r(t,e,i)}},function(t,e,n){var r=n(291)();t.exports=r},function(t,e){t.exports=function(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var u=a[t?s:++i];if(!1===n(o[u],u,o))break}return e}}},function(t,e,n){var r=n(46);
2t.exports=function(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);for(var o=n.length,a=e?o:-1,s=Object(n);(e?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},function(t,e,n){var r=n(57),i=n(46),o=n(62),a=n(34);t.exports=function(t,e,n){if(!a(n))return!1;var s=typeof e;return!!("number"==s?i(n)&&o(e,n.length):"string"==s&&e in n)&&r(n[e],t)}},function(t,e,n){"use strict";n(0);var r=n(295),i=n(94),o=n(96),a=n(25),s=n(1),u=n(111),l=["rgb(  0,   0,   0)","rgb(230,   0,   0)","rgb(255, 153,   0)","rgb(255, 255,   0)","rgb(  0, 138,   0)","rgb(  0, 102, 204)","rgb(153,  51, 255)","rgb(255, 255, 255)","rgb(250, 204, 204)","rgb(255, 235, 204)","rgb(255, 255, 204)","rgb(204, 232, 204)","rgb(204, 224, 245)","rgb(235, 214, 255)","rgb(187, 187, 187)","rgb(240, 102, 102)","rgb(255, 194, 102)","rgb(255, 255, 102)","rgb(102, 185, 102)","rgb(102, 163, 224)","rgb(194, 133, 255)","rgb(136, 136, 136)","rgb(161,   0,   0)","rgb(178, 107,   0)","rgb(178, 178,   0)","rgb(  0,  97,   0)","rgb(  0,  71, 178)","rgb(107,  36, 178)","rgb( 68,  68,  68)","rgb( 92,   0,   0)","rgb(102,  61,   0)","rgb(102, 102,   0)","rgb(  0,  55,   0)","rgb(  0,  41, 102)","rgb( 61,  20,  10)"].map((function(t){return{value:t}})),c=[{label:"Formats",type:"group",items:[{label:"Font",type:"font",items:[{label:"Sans Serif",value:"sans-serif",selected:!0},{label:"Serif",value:"serif"},{label:"Monospace",value:"monospace"}]},{label:"Size",type:"size",items:[{label:"Small",value:"10px"},{label:"Normal",value:"13px",selected:!0},{label:"Large",value:"18px"},{label:"Huge",value:"32px"}]},{label:"Alignment",type:"align",items:[{label:"",value:"",selected:!0},{label:"",value:"center"},{label:"",value:"right"},{label:"",value:"justify"}]}]},{label:"Text",type:"group",items:[{type:"bold",label:"Bold"},{type:"italic",label:"Italic"},{type:"strike",label:"Strike"},{type:"underline",label:"Underline"},{type:"color",label:"Color",items:l},{type:"background",label:"Background color",items:l},{type:"link",label:"Link"}]},{label:"Blocks",type:"group",items:[{type:"list",value:"bullet"},{type:"list",value:"ordered"}]},{label:"Blocks",type:"group",items:[{type:"image",label:"Image"}]}],f=i({displayName:"Quill Toolbar",propTypes:{id:s.string,className:s.string,style:s.object,items:s.array},getDefaultProps:function(){return{items:c}},componentDidMount:function(){console.warn("QuillToolbar is deprecated. Consider switching to the official Quill toolbar format, or providing your own toolbar instead. See: https://github.com/zenoamaro/react-quill#upgrading-to-react-quill-v1-0-0")},shouldComponentUpdate:function(t,e){return!a(t,this.props)},renderGroup:function(t,e){return u.span({key:t.label||e,className:"ql-formats"},t.items.map(this.renderItem))},renderChoiceItem:function(t,e){return u.option({key:t.label||t.value||e,value:t.value},t.label)},renderChoices:function(t,e){var n=t.items.map(this.renderChoiceItem),r=o(t.items,(function(t){return t.selected})),i={key:t.label||e,title:t.label,className:"ql-"+t.type,value:r.value};return u.select(i,n)},renderButton:function(t,e){return u.button({type:"button",key:t.label||t.value||e,value:t.value,className:"ql-"+t.type,title:t.label},t.children)},renderAction:function(t,e){return u.button({key:t.label||t.value||e,className:"ql-"+t.type,title:t.label},t.children)},renderItem:function(t,e){switch(t.type){case"group":return this.renderGroup(t,e);case"font":case"header":case"align":case"size":case"color":case"background":return this.renderChoices(t,e);case"bold":case"italic":case"underline":case"strike":case"link":case"list":case"bullet":case"ordered":case"indent":case"image":case"video":return this.renderButton(t,e);default:return this.renderAction(t,e)}},getClassName:function(){return"quill-toolbar "+(this.props.className||"")},render:function(){var t=this.props.items.map(this.renderItem).map(r.renderToStaticMarkup).join("");return u.div({id:this.props.id,className:this.getClassName(),style:this.props.style,dangerouslySetInnerHTML:{__html:t}})}});t.exports=f,f.defaultItems=c,f.defaultColors=l},function(t,e,n){"use strict";t.exports=n(296)},function(t,e,n){"use strict";var r=n(37),i=n(0);function o(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a="function"===typeof Symbol&&Symbol.for,s=a?Symbol.for("react.portal"):60106,u=a?Symbol.for("react.fragment"):60107,l=a?Symbol.for("react.strict_mode"):60108,c=a?Symbol.for("react.profiler"):60114,f=a?Symbol.for("react.provider"):60109,h=a?Symbol.for("react.context"):60110,d=a?Symbol.for("react.concurrent_mode"):60111,p=a?Symbol.for("react.forward_ref"):60112,v=a?Symbol.for("react.suspense"):60113,m=a?Symbol.for("react.suspense_list"):60120,g=a?Symbol.for("react.memo"):60115,y=a?Symbol.for("react.lazy"):60116,b=
2a?Symbol.for("react.block"):60121,w=a?Symbol.for("react.fundamental"):60117,_=a?Symbol.for("react.scope"):60119;function x(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 u:return"Fragment";case s:return"Portal";case c:return"Profiler";case l:return"StrictMode";case v:return"Suspense";case m:return"SuspenseList"}if("object"===typeof t)switch(t.$$typeof){case h:return"Context.Consumer";case f:return"Context.Provider";case p:var e=t.render;return e=e.displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case g:return x(t.type);case b:return x(t.render);case y:if(t=1===t._status?t._result:null)return x(t)}return null}var E=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;E.hasOwnProperty("ReactCurrentDispatcher")||(E.ReactCurrentDispatcher={current:null}),E.hasOwnProperty("ReactCurrentBatchConfig")||(E.ReactCurrentBatchConfig={suspense:null});var k={};function T(t,e){for(var n=0|t._threadCount;n<=e;n++)t[n]=t._currentValue2,t._threadCount=n+1}for(var S=new Uint16Array(16),O=0;15>O;O++)S[O]=O+1;S[15]=0;var A=/^[: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]*$/,C=Object.prototype.hasOwnProperty,N={},I={};function P(t){return!!C.call(I,t)||!C.call(N,t)&&(A.test(t)?I[t]=!0:(N[t]=!0,!1))}function M(t,e,n,r,i,o){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=o}var D={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(t){D[t]=new M(t,0,!1,t,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(t){var e=t[0];D[e]=new M(e,1,!1,t[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(t){D[t]=new M(t,2,!1,t.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(t){D[t]=new M(t,2,!1,t,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(t){D[t]=new M(t,3,!1,t.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(t){D[t]=new M(t,3,!0,t,null,!1)})),["capture","download"].forEach((function(t){D[t]=new M(t,4,!1,t,null,!1)})),["cols","rows","size","span"].forEach((function(t){D[t]=new M(t,6,!1,t,null,!1)})),["rowSpan","start"].forEach((function(t){D[t]=new M(t,5,!1,t.toLowerCase(),null,!1)}));var R=/[\-:]([a-z])/g;function L(t){return t[1].toUpperCase()}"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(t){var e=t.replace(R,L);D[e]=new M(e,1,!1,t,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(t){var e=t.replace(R,L);D[e]=new M(e,1,!1,t,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(t){var e=t.replace(R,L);D[e]=new M(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(t){D[t]=new M(t,1,!1,t.toLowerCase(),null,!1)})),D.xlinkHref=new M("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(t){D[t]=new M(t,1,!1,t.toLowerCase(),null,!0)}));var j=/["'&<>]/;function F(t){if("boolean"===typeof t||"number"===typeof t)return""+t;t=""+t;var e=j.exec(t);if(e){var n,r="",i=0;for(n=e.index;n<t.length;n++){switch(t.charCodeAt(n)){case 34:e="&quot;";break;case 38:e="&amp;";break;case 39:e="&#x27;";break;case 60:e="&lt;";break;case 62:e="&gt;";break;default:continue}i!==n&&(r+=t.substring(i,n)),i=n+1,r+=e}t=i!==n?r+t.substring(i,n):r}return t}function U(t,e){var n,r=D.hasOwnProperty(t)?D[t]:null;return(n="style"!==t)&&(n=null!==r?0===r.type:2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])),n||function(t,e,n,r){if(null===e||"undefined"===typeof e||function(t,e,n,r){if(null!==n&&0===n.type)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(t=t.toLowerCase().slice(0,5))&&"aria-"!==t);default:return!1}}(t,e,n,r))return!0;
2if(r)return!1;if(null!==n)switch(n.type){case 3:return!e;case 4:return!1===e;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}(t,e,r,!1)?"":null!==r?(t=r.attributeName,3===(n=r.type)||4===n&&!0===e?t+'=""':(r.sanitizeURL&&(e=""+e),t+'="'+F(e)+'"')):P(t)?t+'="'+F(e)+'"':""}var q="function"===typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t===1/e)||t!==t&&e!==e},B=null,V=null,z=null,W=!1,H=!1,Y=null,G=0;function K(){if(null===B)throw Error(o(321));return B}function X(){if(0<G)throw Error(o(312));return{memoizedState:null,queue:null,next:null}}function $(){return null===z?null===V?(W=!1,V=z=X()):(W=!0,z=V):null===z.next?(W=!1,z=z.next=X()):(W=!0,z=z.next),z}function Z(t,e,n,r){for(;H;)H=!1,G+=1,z=null,n=t(e,r);return V=B=null,G=0,z=Y=null,n}function Q(t,e){return"function"===typeof e?e(t):e}function J(t,e,n){if(B=K(),z=$(),W){var r=z.queue;if(e=r.dispatch,null!==Y&&void 0!==(n=Y.get(r))){Y.delete(r),r=z.memoizedState;do{r=t(r,n.action),n=n.next}while(null!==n);return z.memoizedState=r,[r,e]}return[z.memoizedState,e]}return t=t===Q?"function"===typeof e?e():e:void 0!==n?n(e):e,z.memoizedState=t,t=(t=z.queue={last:null,dispatch:null}).dispatch=tt.bind(null,B,t),[z.memoizedState,t]}function tt(t,e,n){if(!(25>G))throw Error(o(301));if(t===B)if(H=!0,t={action:n,next:null},null===Y&&(Y=new Map),void 0===(n=Y.get(e)))Y.set(e,t);else{for(e=n;null!==e.next;)e=e.next;e.next=t}}function et(){}var nt=0,rt={readContext:function(t){var e=nt;return T(t,e),t[e]},useContext:function(t){K();var e=nt;return T(t,e),t[e]},useMemo:function(t,e){if(B=K(),e=void 0===e?null:e,null!==(z=$())){var n=z.memoizedState;if(null!==n&&null!==e){t:{var r=n[1];if(null===r)r=!1;else{for(var i=0;i<r.length&&i<e.length;i++)if(!q(e[i],r[i])){r=!1;break t}r=!0}}if(r)return n[0]}}return t=t(),z.memoizedState=[t,e],t},useReducer:J,useRef:function(t){B=K();var e=(z=$()).memoizedState;return null===e?(t={current:t},z.memoizedState=t):e},useState:function(t){return J(Q,t)},useLayoutEffect:function(){},useCallback:function(t){return t},useImperativeHandle:et,useEffect:et,useDebugValue:et,useResponder:function(t,e){return{props:e,responder:t}},useDeferredValue:function(t){return K(),t},useTransition:function(){return K(),[function(t){t()},!1]}},it="http://www.w3.org/1999/xhtml";function ot(t){switch(t){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"}}var at={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},st=r({menuitem:!0},at),ut={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},lt=["Webkit","ms","Moz","O"];Object.keys(ut).forEach((function(t){lt.forEach((function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),ut[e]=ut[t]}))}));var ct=/([A-Z])/g,ft=/^ms-/,ht=i.Children.toArray,dt=E.ReactCurrentDispatcher,pt={listing:!0,pre:!0,textarea:!0},vt=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,mt={},gt={};var yt=Object.prototype.hasOwnProperty,bt={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function wt(t,e){if(void 0===t)throw Error(o(152,x(e)||"Component"))}function _t(t,e,n){function a(i,a){var s=a.prototype&&a.prototype.isReactComponent,u=function(t,e,n,r){if(r&&("object"===typeof(r=t.contextType)&&null!==r))return T(r,n),r[n];if(t=t.contextTypes){for(var i in n={},t)n[i]=e[i];e=n}else e=k;return e}(a,e,n,s),l=[],c=!1,f={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===l)return null},enqueueReplaceState:function(t,e){c=!0,l=[e]},enqueueSetState:function(t,e){if(null===l)return null;l.push(e)}};if(s){if(s=new a(i.props,u,f),"function"===typeof a.getDerivedStateFromProps){var h=a.getDerivedStateFromProps.call(null,i.props,s.state);null!=h&&(s.state=r({},s.state,h))}}else if(B={},s=a(i.props,u,f),null==(s=Z(a,i.props,s,u))||null==s.render)return void wt(t=s,a);if(s.props=i.props,s.context=u,s.updater=f,void 0===(f=s.state)&&(s.state=f=null),"function"===typeof s.UNSAFE_componentWillMount||"function"===typeof s.componentWillMount)if("function"===typeof s.componentWillMount&&"function"!==typeof a.getDerivedStateFromProps&&s.componentWillMount(),"function"===typeof s.UNSAFE_componentWillMount&&"function"!==typeof a.getDerivedStateFromProps&&s.UNSAFE_componentWillMount(),l.length){f=l;var d=c;if(l=null,c=!1,d&&1===f.length)s.state=f[0];else{h=d?f[0]:s.state;var p=!0;for(d=d?1:0;d<f.length;d++){var v=f[d];null!=(v="function"===typeof v?v.call(s,h,i.props,u):v)&&(p?(p=!1,h=r({},h,v)):r(h,v))}s.state=h}}else l=null;if(wt(t=s.render(),a),"function"===typeof s.getChildContext&&"object"===typeof(i=a.childContextTypes)){var m=s.getChildContext();for(var g in m)if(!(g in i))throw Error(o(108,x(a)||"Unknown",g))}m&&(e=r({},e,m))}for(;i.isValidElement(t);){var s=t,u=s.type;if("function"!==typeof u)break;a(s,u)}return{child:t,context:e}}var xt=function(){function t(t,e){i.isValidElement(t)?t.type!==u?t=[t]:(t=t.props.children,t=i.isValidElement(t)?[t]:ht(t)):t=ht(t),t={type:null,domNamespace:it,children:t,childIndex:0,context:k,footer:""};var n=S[0];if(0===n){var r=S,a=2*(n=r.length);if(!(65536>=a))throw Error(o(304));var s=new Uint16Array(a);for(s.set(r),(S=s)[0]=n+1,r=n;r<a-1;r++)S[r]=r+1;S[a-1]=0}else S[0]=S[n];
2this.threadID=n,this.stack=[t],this.exhausted=!1,this.currentSelectValue=null,this.previousWasTextNode=!1,this.makeStaticMarkup=e,this.suspenseDepth=0,this.contextIndex=-1,this.contextStack=[],this.contextValueStack=[]}var e=t.prototype;return e.destroy=function(){if(!this.exhausted){this.exhausted=!0,this.clearProviders();var t=this.threadID;S[t]=S[0],S[0]=t}},e.pushProvider=function(t){var e=++this.contextIndex,n=t.type._context,r=this.threadID;T(n,r);var i=n[r];this.contextStack[e]=n,this.contextValueStack[e]=i,n[r]=t.props.value},e.popProvider=function(){var t=this.contextIndex,e=this.contextStack[t],n=this.contextValueStack[t];this.contextStack[t]=null,this.contextValueStack[t]=null,this.contextIndex--,e[this.threadID]=n},e.clearProviders=function(){for(var t=this.contextIndex;0<=t;t--)this.contextStack[t][this.threadID]=this.contextValueStack[t]},e.read=function(t){if(this.exhausted)return null;var e=nt;nt=this.threadID;var n=dt.current;dt.current=rt;try{for(var r=[""],i=!1;r[0].length<t;){if(0===this.stack.length){this.exhausted=!0;var a=this.threadID;S[a]=S[0],S[0]=a;break}var s=this.stack[this.stack.length-1];if(i||s.childIndex>=s.children.length){var u=s.footer;if(""!==u&&(this.previousWasTextNode=!1),this.stack.pop(),"select"===s.type)this.currentSelectValue=null;else if(null!=s.type&&null!=s.type.type&&s.type.type.$$typeof===f)this.popProvider(s.type);else if(s.type===v){this.suspenseDepth--;var l=r.pop();if(i){i=!1;var c=s.fallbackFrame;if(!c)throw Error(o(303));this.stack.push(c),r[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}r[this.suspenseDepth]+=l}r[this.suspenseDepth]+=u}else{var h=s.children[s.childIndex++],d="";try{d+=this.render(h,s.context,s.domNamespace)}catch(p){if(null!=p&&"function"===typeof p.then)throw Error(o(294));throw p}r.length<=this.suspenseDepth&&r.push(""),r[this.suspenseDepth]+=d}}return r[0]}finally{dt.current=n,nt=e}},e.render=function(t,e,n){if("string"===typeof t||"number"===typeof t)return""===(n=""+t)?"":this.makeStaticMarkup?F(n):this.previousWasTextNode?"\x3c!-- --\x3e"+F(n):(this.previousWasTextNode=!0,F(n));if(t=(e=_t(t,e,this.threadID)).child,e=e.context,null===t||!1===t)return"";if(!i.isValidElement(t)){if(null!=t&&null!=t.$$typeof){if((n=t.$$typeof)===s)throw Error(o(257));throw Error(o(258,n.toString()))}return t=ht(t),this.stack.push({type:null,domNamespace:n,children:t,childIndex:0,context:e,footer:""}),""}var a=t.type;if("string"===typeof a)return this.renderDOM(t,e,n);switch(a){case l:case d:case c:case m:case u:return t=ht(t.props.children),this.stack.push({type:null,domNamespace:n,children:t,childIndex:0,context:e,footer:""}),"";case v:throw Error(o(294))}if("object"===typeof a&&null!==a)switch(a.$$typeof){case p:B={};var b=a.render(t.props,t.ref);return b=Z(a.render,t.props,b,t.ref),b=ht(b),this.stack.push({type:null,domNamespace:n,children:b,childIndex:0,context:e,footer:""}),"";case g:return t=[i.createElement(a.type,r({ref:t.ref},t.props))],this.stack.push({type:null,domNamespace:n,children:t,childIndex:0,context:e,footer:""}),"";case f:return n={type:t,domNamespace:n,children:a=ht(t.props.children),childIndex:0,context:e,footer:""},this.pushProvider(t),this.stack.push(n),"";case h:a=t.type,b=t.props;var x=this.threadID;return T(a,x),a=ht(b.children(a[x])),this.stack.push({type:t,domNamespace:n,children:a,childIndex:0,context:e,footer:""}),"";case w:throw Error(o(338));case y:switch(function(t){if(-1===t._status){t._status=0;var e=t._ctor;e=e(),t._result=e,e.then((function(e){0===t._status&&(e=e.default,t._status=1,t._result=e)}),(function(e){0===t._status&&(t._status=2,t._result=e)}))}}(a=t.type),a._status){case 1:return t=[i.createElement(a._result,r({ref:t.ref},t.props))],this.stack.push({type:null,domNamespace:n,children:t,childIndex:0,context:e,footer:""}),"";case 2:throw a._result;default:throw Error(o(295))}case _:throw Error(o(343))}throw Error(o(130,null==a?a:typeof a,""))},e.renderDOM=function(t,e,n){var a=t.type.toLowerCase();if(n===it&&ot(a),!mt.hasOwnProperty(a)){if(!vt.test(a))throw Error(o(65,a));mt[a]=!0}var s=t.props;if("input"===a)s=r({type:void 0},s,{defaultChecked:void 0,defaultValue:void 0,value:null!=s.value?s.value:s.defaultValue,checked:null!=s.checked?s.checked:s.defaultChecked});else if("textarea"===a){var u=s.value;if(null==u){u=s.defaultValue;var l=s.children;if(null!=l){if(null!=u)throw Error(o(92));if(Array.isArray(l)){if(!(1>=l.length))throw Error(o(93));l=l[0]}u=""+l}null==u&&(u="")}s=r({},s,{value:void 0,children:""+u})}else if("select"===a)this.currentSelectValue=null!=s.value?s.value:s.defaultValue,s=r({},s,{value:void 0});else if("option"===a){l=this.currentSelectValue;var c=function(t){if(void 0===t||null===t)return t;var e="";
2return i.Children.forEach(t,(function(t){null!=t&&(e+=t)})),e}(s.children);if(null!=l){var f=null!=s.value?s.value+"":c;if(u=!1,Array.isArray(l)){for(var h=0;h<l.length;h++)if(""+l[h]===f){u=!0;break}}else u=""+l===f;s=r({selected:void 0,children:void 0},s,{selected:u,children:c})}}if(u=s){if(st[a]&&(null!=u.children||null!=u.dangerouslySetInnerHTML))throw Error(o(137,a,""));if(null!=u.dangerouslySetInnerHTML){if(null!=u.children)throw Error(o(60));if("object"!==typeof u.dangerouslySetInnerHTML||!("__html"in u.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=u.style&&"object"!==typeof u.style)throw Error(o(62,""))}for(w in u=s,l=this.makeStaticMarkup,c=1===this.stack.length,f="<"+t.type,u)if(yt.call(u,w)){var d=u[w];if(null!=d){if("style"===w){h=void 0;var p="",v="";for(h in d)if(d.hasOwnProperty(h)){var m=0===h.indexOf("--"),g=d[h];if(null!=g){if(m)var y=h;else if(y=h,gt.hasOwnProperty(y))y=gt[y];else{var b=y.replace(ct,"-$1").toLowerCase().replace(ft,"-ms-");y=gt[y]=b}p+=v+y+":",v=h,p+=m=null==g||"boolean"===typeof g||""===g?"":m||"number"!==typeof g||0===g||ut.hasOwnProperty(v)&&ut[v]?(""+g).trim():g+"px",v=";"}}d=p||null}h=null;t:if(m=a,g=u,-1===m.indexOf("-"))m="string"===typeof g.is;else switch(m){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":m=!1;break t;default:m=!0}m?bt.hasOwnProperty(w)||(h=P(h=w)&&null!=d?h+'="'+F(d)+'"':""):h=U(w,d),h&&(f+=" "+h)}}l||c&&(f+=' data-reactroot=""');var w=f;u="",at.hasOwnProperty(a)?w+="/>":(w+=">",u="</"+t.type+">");t:{if(null!=(l=s.dangerouslySetInnerHTML)){if(null!=l.__html){l=l.__html;break t}}else if("string"===typeof(l=s.children)||"number"===typeof l){l=F(l);break t}l=null}return null!=l?(s=[],pt.hasOwnProperty(a)&&"\n"===l.charAt(0)&&(w+="\n"),w+=l):s=ht(s.children),t=t.type,n=null==n||"http://www.w3.org/1999/xhtml"===n?ot(t):"http://www.w3.org/2000/svg"===n&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":n,this.stack.push({domNamespace:n,type:a,children:s,childIndex:0,context:e,footer:u}),this.previousWasTextNode=!1,w},t}(),Et={renderToString:function(t){t=new xt(t,!1);try{return t.read(1/0)}finally{t.destroy()}},renderToStaticMarkup:function(t){t=new xt(t,!0);try{return t.read(1/0)}finally{t.destroy()}},renderToNodeStream:function(){throw Error(o(207))},renderToStaticNodeStream:function(){throw Error(o(208))},version:"16.13.1"};t.exports=Et.default||Et},,,,,function(t,e,n){(function(t){t.exports=function(){"use strict";var e,n;function r(){return e.apply(null,arguments)}function i(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function o(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function a(t){return void 0===t}function s(t){return"number"===typeof t||"[object Number]"===Object.prototype.toString.call(t)}function u(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function l(t,e){var n,r=[];for(n=0;n<t.length;++n)r.push(e(t[n],n));return r}function c(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function f(t,e){for(var n in e)c(e,n)&&(t[n]=e[n]);return c(e,"toString")&&(t.toString=e.toString),c(e,"valueOf")&&(t.valueOf=e.valueOf),t}function h(t,e,n,r){return Ee(t,e,n,r,!0).utc()}function d(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function p(t){if(null==t._isValid){var e=d(t),r=n.call(e.parsedDateParts,(function(t){return null!=t})),i=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&r);if(t._strict&&(i=i&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return i;t._isValid=i}return t._isValid}function v(t){var e=h(NaN);return null!=t?f(d(e),t):d(e).userInvalidated=!0,e}n=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,r=0;r<n;r++)if(r in e&&t.call(this,e[r],r,e))return!0;return!1};var m=r.momentProperties=[];function g(t,e){var n,r,i;if(a(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),a(e._i)||(t._i=e._i),a(e._f)||(t._f=e._f),a(e._l)||(t._l=e._l),a(e._strict)||(t._strict=e._strict),a(e._tzm)||(t._tzm=e._tzm),a(e._isUTC)||(t._isUTC=e._isUTC),a(e._offset)||(t._offset=e._offset),a(e._pf)||(t._pf=d(e)),a(e._locale)||(t._locale=e._locale),m.length>0)for(n=0;n<m.length;n++)a(i=e[r=m[n]])||(t[r]=i);return t}var y=!1;function b(t){g(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,r.updateOffset(this),y=!1)}function w(t){return t instanceof b||null!=t&&null!=t._isAMomentObject}function _(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function x(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=_(e)),n}function E(t,e,n){var r,i=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),a=0;for(r=0;r<i;r++)(n&&t[r]!==e[r]||!n&&x(t[r])!==x(e[r]))&&a++;return a+o}function k(t){!1===r.suppressDeprecationWarnings&&"undefined"!==typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function T(t,e){var n=!0;return f((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,t),n){for(var i,o=[],a=0;a<arguments.length;a++){if(i="","object"===typeof arguments[a]){for(var s in i+="\n["+a+"] ",arguments[0])i+=s+": "+arguments[0][s]+", ";i=i.slice(0,-2)}else i=arguments[a];o.push(i)}k(t+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)}),e)}
vendor: 4,167 bytes, line 2
2var S,O={};function A(t,e){null!=r.deprecationHandler&&r.deprecationHandler(t,e),O[t]||(k(e),O[t]=!0)}function C(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function N(t,e){var n,r=f({},t);for(n in e)c(e,n)&&(o(t[n])&&o(e[n])?(r[n]={},f(r[n],t[n]),f(r[n],e[n])):null!=e[n]?r[n]=e[n]:delete r[n]);for(n in t)c(t,n)&&!c(e,n)&&o(t[n])&&(r[n]=f({},r[n]));return r}function I(t){null!=t&&this.set(t)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,S=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)c(t,e)&&n.push(e);return n};var P={};function M(t,e){var n=t.toLowerCase();P[n]=P[n+"s"]=P[e]=t}function D(t){return"string"===typeof t?P[t]||P[t.toLowerCase()]:void 0}function R(t){var e,n,r={};for(n in t)c(t,n)&&(e=D(n))&&(r[e]=t[n]);return r}var L={};function j(t,e){L[t]=e}function F(t,e,n){var r=""+Math.abs(t),i=e-r.length;return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var U=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,q=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,B={},V={};function z(t,e,n,r){var i=r;"string"===typeof r&&(i=function(){return this[r]()}),t&&(V[t]=i),e&&(V[e[0]]=function(){return F(i.apply(this,arguments),e[1],e[2])}),n&&(V[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function W(t,e){return t.isValid()?(e=H(e,t.localeData()),B[e]=B[e]||function(t){var e,n,r,i=t.match(U);for(e=0,n=i.length;e<n;e++)V[i[e]]?i[e]=V[i[e]]:i[e]=(r=i[e]).match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"");return function(e){var r,o="";for(r=0;r<n;r++)o+=C(i[r])?i[r].call(e,t):i[r];return o}}(e),B[e](t)):t.localeData().invalidDate()}function H(t,e){var n=5;function r(t){return e.longDateFormat(t)||t}for(q.lastIndex=0;n>=0&&q.test(t);)t=t.replace(q,r),q.lastIndex=0,n-=1;return t}var Y=/\d/,G=/\d\d/,K=/\d{3}/,X=/\d{4}/,$=/[+-]?\d{6}/,Z=/\d\d?/,Q=/\d\d\d\d?/,J=/\d\d\d\d\d\d?/,tt=/\d{1,3}/,et=/\d{1,4}/,nt=/[+-]?\d{1,6}/,rt=/\d+/,it=/[+-]?\d+/,ot=/Z|[+-]\d\d:?\d\d/gi,at=/Z|[+-]\d\d(?::?\d\d)?/gi,st=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ut={};function lt(t,e,n){ut[t]=C(e)?e:function(t,r){return t&&n?n:e}}function ct(t,e){return c(ut,t)?ut[t](e._strict,e._locale):new RegExp(ft(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,n,r,i){return e||n||r||i}))))}function ft(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ht={};function dt(t,e){var n,r=e;for("string"===typeof t&&(t=[t]),s(e)&&(r=function(t,n){n[e]=x(t)}),n=0;n<t.length;n++)ht[t[n]]=r}function pt(t,e){dt(t,(function(t,n,r,i){r._w=r._w||{},e(t,r._w,r,i)}))}function vt(t,e,n){null!=e&&c(ht,t)&&ht[t](e,n._a,n,t)}function mt(t){return gt(t)?366:365}function gt(t){return t%4===0&&t%100!==0||t%400===0}z("Y",0,0,(function(){var t=this.year();return t<=9999?""+t:"+"+t})),z(0,["YY",2],0,(function(){return this.year()%100})),z(0,["YYYY",4],0,"year"),z(0,["YYYYY",5],0,"year"),z(0,["YYYYYY",6,!0],0,"year"),M("year","y"),j("year",1),lt("Y",it),lt("YY",Z,G),lt("YYYY",et,X),lt("YYYYY",nt,$),lt("YYYYYY",nt,$),dt(["YYYYY","YYYYYY"],0),dt("YYYY",(function(t,e){e[0]=2===t.length?r.parseTwoDigitYear(t):x(t)})),dt("YY",(function(t,e){e[0]=r.parseTwoDigitYear(t)})),dt("Y",(function(t,e){e[0]=parseInt(t,10)})),r.parseTwoDigitYear=function(t){return x(t)+(x(t)>68?1900:2e3)};var yt,bt=wt("FullYear",!0);function wt(t,e){return function(n){return null!=n?(xt(this,t,n),r.updateOffset(this,e),this):_t(this,t)}}function _t(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function xt(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&gt(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),Et(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function Et(t,e){if(isNaN(t)||isNaN(e))return NaN;var n,r=(e%(n=12)+n)%n;return t+=(e-r)/12,1===r?gt(t)?29:28:31-r%7%2}yt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;
vendor: 25,168 bytes, line 2
2for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},z("M",["MM",2],"Mo",(function(){return this.month()+1})),z("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),z("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),M("month","M"),j("month",8),lt("M",Z),lt("MM",Z,G),lt("MMM",(function(t,e){return e.monthsShortRegex(t)})),lt("MMMM",(function(t,e){return e.monthsRegex(t)})),dt(["M","MM"],(function(t,e){e[1]=x(t)-1})),dt(["MMM","MMMM"],(function(t,e,n,r){var i=n._locale.monthsParse(t,r,n._strict);null!=i?e[1]=i:d(n).invalidMonth=t}));var kt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Tt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),St="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Ot(t,e,n){var r,i,o,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=h([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(i=yt.call(this._shortMonthsParse,a))?i:null:-1!==(i=yt.call(this._longMonthsParse,a))?i:null:"MMM"===e?-1!==(i=yt.call(this._shortMonthsParse,a))||-1!==(i=yt.call(this._longMonthsParse,a))?i:null:-1!==(i=yt.call(this._longMonthsParse,a))||-1!==(i=yt.call(this._shortMonthsParse,a))?i:null}function At(t,e){var n;if(!t.isValid())return t;if("string"===typeof e)if(/^\d+$/.test(e))e=x(e);else if(!s(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),Et(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function Ct(t){return null!=t?(At(this,t),r.updateOffset(this,!0),this):_t(this,"Month")}var Nt=st,It=st;function Pt(){function t(t,e){return e.length-t.length}var e,n,r=[],i=[],o=[];for(e=0;e<12;e++)n=h([2e3,e]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(t),i.sort(t),o.sort(t),e=0;e<12;e++)r[e]=ft(r[e]),i[e]=ft(i[e]);for(e=0;e<24;e++)o[e]=ft(o[e]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Mt(t,e,n,r,i,o,a){var s;return t<100&&t>=0?(s=new Date(t+400,e,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,n,r,i,o,a),s}function Dt(t){var e;if(t<100&&t>=0){var n=Array.prototype.slice.call(arguments);n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function Rt(t,e,n){var r=7+e-n;return-(7+Dt(t,0,r).getUTCDay()-e)%7+r-1}function Lt(t,e,n,r,i){var o,a,s=1+7*(e-1)+(7+n-r)%7+Rt(t,r,i);return s<=0?a=mt(o=t-1)+s:s>mt(t)?(o=t+1,a=s-mt(t)):(o=t,a=s),{year:o,dayOfYear:a}}function jt(t,e,n){var r,i,o=Rt(t.year(),e,n),a=Math.floor((t.dayOfYear()-o-1)/7)+1;return a<1?r=a+Ft(i=t.year()-1,e,n):a>Ft(t.year(),e,n)?(r=a-Ft(t.year(),e,n),i=t.year()+1):(i=t.year(),r=a),{week:r,year:i}}function Ft(t,e,n){var r=Rt(t,e,n),i=Rt(t+1,e,n);return(mt(t)-r+i)/7}function Ut(t,e){return t.slice(e,7).concat(t.slice(0,e))}z("w",["ww",2],"wo","week"),z("W",["WW",2],"Wo","isoWeek"),M("week","w"),M("isoWeek","W"),j("week",5),j("isoWeek",5),lt("w",Z),lt("ww",Z,G),lt("W",Z),lt("WW",Z,G),pt(["w","ww","W","WW"],(function(t,e,n,r){e[r.substr(0,1)]=x(t)})),z("d",0,"do","day"),z("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),z("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),z("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),z("e",0,0,"weekday"),z("E",0,0,"isoWeekday"),M("day","d"),M("weekday","e"),M("isoWeekday","E"),j("day",11),j("weekday",11),j("isoWeekday",11),lt("d",Z),lt("e",Z),lt("E",Z),lt("dd",(function(t,e){return e.weekdaysMinRegex(t)})),lt("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),lt("dddd",(function(t,e){return e.weekdaysRegex(t)})),pt(["dd","ddd","dddd"],(function(t,e,n,r){var i=n._locale.weekdaysParse(t,r,n._strict);null!=i?e.d=i:d(n).invalidWeekday=t})),pt(["d","e","E"],(function(t,e,n,r){e[r]=x(t)}));var qt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Bt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Vt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function zt(t,e,n){var r,i,o,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(i=yt.call(this._weekdaysParse,a))?i:null:"ddd"===e?-1!==(i=yt.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=yt.call(this._minWeekdaysParse,a))?i:null:"dddd"===e?-1!==(i=yt.call(this._weekdaysParse,a))||-1!==(i=yt.call(this._shortWeekdaysParse,a))||-1!==(i=yt.call(this._minWeekdaysParse,a))?i:null:"ddd"===e?-1!==(i=yt.call(this._shortWeekdaysParse,a))||-1!==(i=yt.call(this._weekdaysParse,a))||-1!==(i=yt.call(this._minWeekdaysParse,a))?i:null:-1!==(i=yt.call(this._minWeekdaysParse,a))||-1!==(i=yt.call(this._weekdaysParse,a))||-1!==(i=yt.call(this._shortWeekdaysParse,a))?i:null}var Wt=st,Ht=st,Yt=st;function Gt(){function t(t,e){return e.length-t.length}var e,n,r,i,o,a=[],s=[],u=[],l=[];for(e=0;e<7;e++)n=h([2e3,1]).day(e),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),o=this.weekdays(n,""),a.push(r),s.push(i),u.push(o),l.push(r),l.push(i),l.push(o);for(a.sort(t),s.sort(t),u.sort(t),l.sort(t),e=0;e<7;e++)s[e]=ft(s[e]),u[e]=ft(u[e]),l[e]=ft(l[e]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Kt(){return this.hours()%12||12}function Xt(t,e){z(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function $t(t,e){return e._meridiemParse}z("H",["HH",2],0,"hour"),z("h",["hh",2],0,Kt),z("k",["kk",2],0,(function(){return this.hours()||24})),z("hmm",0,0,(function(){return""+Kt.apply(this)+F(this.minutes(),2)})),z("hmmss",0,0,(function(){return""+Kt.apply(this)+F(this.minutes(),2)+F(this.seconds(),2)})),z("Hmm",0,0,(function(){return""+this.hours()+F(this.minutes(),2)})),z("Hmmss",0,0,(function(){return""+this.hours()+F(this.minutes(),2)+F(this.seconds(),2)})),Xt("a",!0),Xt("A",!1),M("hour","h"),j("hour",13),lt("a",$t),lt("A",$t),lt("H",Z),lt("h",Z),lt("k",Z),lt("HH",Z,G),lt("hh",Z,G),lt("kk",Z,G),lt("hmm",Q),lt("hmmss",J),lt("Hmm",Q),lt("Hmmss",J),dt(["H","HH"],3),dt(["k","kk"],(function(t,e,n){var r=x(t);e[3]=24===r?0:r})),dt(["a","A"],(function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t})),dt(["h","hh"],(function(t,e,n){e[3]=x(t),d(n).bigHour=!0})),dt("hmm",(function(t,e,n){var r=t.length-2;e[3]=x(t.substr(0,r)),e[4]=x(t.substr(r)),d(n).bigHour=!0})),dt("hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[3]=x(t.substr(0,r)),e[4]=x(t.substr(r,2)),e[5]=x(t.substr(i)),d(n).bigHour=!0})),dt("Hmm",(function(t,e,n){var r=t.length-2;e[3]=x(t.substr(0,r)),e[4]=x(t.substr(r))})),dt("Hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[3]=x(t.substr(0,r)),e[4]=x(t.substr(r,2)),e[5]=x(t.substr(i))}));var Zt,Qt=wt("Hours",!0),Jt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Tt,monthsShort:St,week:{dow:0,doy:6},weekdays:qt,weekdaysMin:Vt,weekdaysShort:Bt,meridiemParse:/[ap]\.?m?\.?/i},te={},ee={};function ne(t){return t?t.toLowerCase().replace("_","-"):t}function re(e){var n=null;if(!te[e]&&"undefined"!==typeof t&&t&&t.exports)try{n=Zt._abbr,!function(){var t=new Error("Cannot find module 'undefined'");throw t.code="MODULE_NOT_FOUND",t}(),ie(n)}catch(r){}return te[e]}function ie(t,e){var n;return t&&((n=a(e)?ae(t):oe(t,e))?Zt=n:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Zt._abbr}function oe(t,e){if(null!==e){var n,r=Jt;if(e.abbr=t,null!=te[t])A("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=te[t]._config;else if(null!=e.parentLocale)if(null!=te[e.parentLocale])r=te[e.parentLocale]._config;else{if(null==(n=re(e.parentLocale)))return ee[e.parentLocale]||(ee[e.parentLocale]=[]),ee[e.parentLocale].push({name:t,config:e}),null;r=n._config}return te[t]=new I(N(r,e)),ee[t]&&ee[t].forEach((function(t){oe(t.name,t.config)})),ie(t),te[t]}return delete te[t],null}function ae(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Zt;if(!i(t)){if(e=re(t))return e;t=[t]}return function(t){for(var e,n,r,i,o=0;o<t.length;){for(e=(i=ne(t[o]).split("-")).length,n=(n=ne(t[o+1]))?n.split("-"):null;e>0;){if(r=re(i.slice(0,e).join("-")))return r;if(n&&n.length>=e&&E(i,n,!0)>=e-1)break;e--}o++}return Zt}(t)}function se(t){var e,n=t._a;return n&&-2===d(t).overflow&&(e=n[1]<0||n[1]>11?1:n[2]<1||n[2]>Et(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,d(t)._overflowDayOfYear&&(e<0||e>2)&&(e=2),d(t)._overflowWeeks&&-1===e&&(e=7),d(t)._overflowWeekday&&-1===e&&(e=8),d(t).overflow=e),t}function ue(t,e,n){return null!=t?t:null!=e?e:n}function le(t){var e,n,i,o,a,s=[];if(!t._d){for(i=function(t){var e=new Date(r.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[2]&&null==t._a[1]&&function(t){var e,n,r,i,o,a,s,u;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)o=1,a=4,n=ue(e.GG,t._a[0],jt(ke(),1,4).year),r=ue(e.W,1),((i=ue(e.E,1))<1||i>7)&&(u=!0);else{o=t._locale._week.dow,a=t._locale._week.doy;var l=jt(ke(),o,a);n=ue(e.gg,t._a[0],l.year),r=ue(e.w,l.week),null!=e.d?((i=e.d)<0||i>6)&&(u=!0):null!=e.e?(i=e.e+o,(e.e<0||e.e>6)&&(u=!0)):i=o}r<1||r>Ft(n,o,a)?d(t)._overflowWeeks=!0:null!=u?d(t)._overflowWeekday=!0:(s=Lt(n,r,i,o,a),t._a[0]=s.year,t._dayOfYear=s.dayOfYear)}(t),null!=t._dayOfYear&&(a=ue(t._a[0],i[0]),(t._dayOfYear>mt(a)||0===t._dayOfYear)&&(d(t)._overflowDayOfYear=!0),n=Dt(a,0,t._dayOfYear),t._a[1]=n.getUTCMonth(),t._a[2]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=i[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[3]&&0===t._a[4]&&0===t._a[5]&&0===t._a[6]&&(t._nextDay=!0,t._a[3]=0),t._d=(t._useUTC?Dt:Mt).apply(null,s),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[3]=24),t._w&&"undefined"!==typeof t._w.d&&t._w.d!==o&&(d(t).weekdayMismatch=!0)}}var ce=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,fe=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,he=/Z|[+-]\d\d(?::?\d\d)?/,de=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],pe=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ve=/^\/?Date\((\-?\d+)/i;function me(t){var e,n,r,i,o,a,s=t._i,u=ce.exec(s)||fe.exec(s);if(u){for(d(t).iso=!0,e=0,n=de.length;e<n;e++)if(de[e][1].exec(u[1])){i=de[e][0],r=!1!==de[e][2];break}if(null==i)return void(t._isValid=!1);if(u[3]){for(e=0,n=pe.length;e<n;e++)if(pe[e][1].exec(u[3])){o=(u[2]||" ")+pe[e][0];break}if(null==o)return void(t._isValid=!1)}if(!r&&null!=o)return void(t._isValid=!1);if(u[4]){if(!he.exec(u[4]))return void(t._isValid=!1);a="Z"}t._f=i+(o||"")+(a||""),_e(t)}else t._isValid=!1}var ge=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function ye(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}var be={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function we(t){var e=ge.exec(t._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(e){var n=function(t,e,n,r,i,o){var a=[ye(t),St.indexOf(e),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&a.push(parseInt(o,10)),a}(e[4],e[3],e[2],e[5],e[6],e[7]);if(!function(t,e,n){return!t||Bt.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(d(n).weekdayMismatch=!0,n._isValid=!1,!1)}(e[1],n,t))return;t._a=n,t._tzm=function(t,e,n){if(t)return be[t];if(e)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}(e[8],e[9],e[10]),t._d=Dt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),d(t).rfc2822=!0}else t._isValid=!1}function _e(t){if(t._f!==r.ISO_8601)if(t._f!==r.RFC_2822){t._a=[],d(t).empty=!0;var e,n,i,o,a,s=""+t._i,u=s.length,l=0;for(i=H(t._f,t._locale).match(U)||[],e=0;e<i.length;e++)o=i[e],(n=(s.match(ct(o,t))||[])[0])&&((a=s.substr(0,s.indexOf(n))).length>0&&d(t).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),l+=n.length),V[o]?(n?d(t).empty=!1:d(t).unusedTokens.push(o),vt(o,n,t)):t._strict&&!n&&d(t).unusedTokens.push(o);d(t).charsLeftOver=u-l,s.length>0&&d(t).unusedInput.push(s),t._a[3]<=12&&!0===d(t).bigHour&&t._a[3]>0&&(d(t).bigHour=void 0),d(t).parsedDateParts=t._a.slice(0),d(t).meridiem=t._meridiem,t._a[3]=function(t,e,n){var r;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((r=t.isPM(n))&&e<12&&(e+=12),r||12!==e||(e=0),e):e}(t._locale,t._a[3],t._meridiem),le(t),se(t)}else we(t);else me(t)}function xe(t){var e=t._i,n=t._f;return t._locale=t._locale||ae(t._l),null===e||void 0===n&&""===e?v({nullInput:!0}):("string"===typeof e&&(t._i=e=t._locale.preparse(e)),w(e)?new b(se(e)):(u(e)?t._d=e:i(n)?function(t){var e,n,r,i,o;if(0===t._f.length)return d(t).invalidFormat=!0,void(t._d=new Date(NaN));for(i=0;i<t._f.length;i++)o=0,e=g({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],_e(e),p(e)&&(o+=d(e).charsLeftOver,o+=10*d(e).unusedTokens.length,d(e).score=o,(null==r||o<r)&&(r=o,n=e));f(t,n||e)}(t):n?_e(t):function(t){var e=t._i;a(e)?t._d=new Date(r.now()):u(e)?t._d=new Date(e.valueOf()):"string"===typeof e?function(t){var e=ve.exec(t._i);null===e?(me(t),!1===t._isValid&&(delete t._isValid,we(t),!1===t._isValid&&(delete t._isValid,r.createFromInputFallback(t)))):t._d=new Date(+e[1])}(t):i(e)?(t._a=l(e.slice(0),(function(t){return parseInt(t,10)})),le(t)):o(e)?function(t){if(!t._d){var e=R(t._i);t._a=l([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),le(t)}}(t):s(e)?t._d=new Date(e):r.createFromInputFallback(t)}(t),p(t)||(t._d=null),t))}function Ee(t,e,n,r,a){var s={};return!0!==n&&!1!==n||(r=n,n=void 0),(o(t)&&function(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}(t)||i(t)&&0===t.length)&&(t=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=a,s._l=n,s._i=t,s._f=e,s._strict=r,function(t){var e=new b(se(xe(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}(s)}function ke(t,e,n,r){return Ee(t,e,n,r,!1)}r.createFromInputFallback=T("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var Te=T("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=ke.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:v()})),Se=T("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=ke.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:v()}));function Oe(t,e){var n,r;if(1===e.length&&i(e[0])&&(e=e[0]),!e.length)return ke();for(n=e[0],r=1;r<e.length;++r)e[r].isValid()&&!e[r][t](n)||(n=e[r]);return n}var Ae=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ce(t){var e=R(t),n=e.year||0,r=e.quarter||0,i=e.month||0,o=e.week||e.isoWeek||0,a=e.day||0,s=e.hour||0,u=e.minute||0,l=e.second||0,c=e.millisecond||0;this._isValid=function(t){for(var e in t)if(-1===yt.call(Ae,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var n=!1,r=0;r<Ae.length;++r)if(t[Ae[r]]){if(n)return!1;parseFloat(t[Ae[r]])!==x(t[Ae[r]])&&(n=!0)}return!0}(e),this._milliseconds=+c+1e3*l+6e4*u+1e3*s*60*60,this._days=+a+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=ae(),this._bubble()}function Ne(t){return t instanceof Ce}function Ie(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Pe(t,e){z(t,0,0,(function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+F(~~(t/60),2)+e+F(~~t%60,2)}))}Pe("Z",":"),Pe("ZZ",""),lt("Z",at),lt("ZZ",at),dt(["Z","ZZ"],(function(t,e,n){n._useUTC=!0,n._tzm=De(at,t)}));var Me=/([\+\-]|\d\d)/gi;function De(t,e){var n=(e||"").match(t);if(null===n)return null;var r=((n[n.length-1]||[])+"").match(Me)||["-",0,0],i=60*r[1]+x(r[2]);return 0===i?0:"+"===r[0]?i:-i}function Re(t,e){var n,i;return e._isUTC?(n=e.clone(),i=(w(t)||u(t)?t.valueOf():ke(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):ke(t).local()}function Le(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function je(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Fe=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Ue=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function qe(t,e){var n,r,i,o=t,a=null;return Ne(t)?o={ms:t._milliseconds,d:t._days,M:t._months}:s(t)?(o={},e?o[e]=t:o.milliseconds=t):(a=Fe.exec(t))?(n="-"===a[1]?-1:1,o={y:0,d:x(a[2])*n,h:x(a[3])*n,m:x(a[4])*n,s:x(a[5])*n,ms:x(Ie(1e3*a[6]))*n}):(a=Ue.exec(t))?(n="-"===a[1]?-1:1,o={y:Be(a[2],n),M:Be(a[3],n),w:Be(a[4],n),d:Be(a[5],n),h:Be(a[6],n),m:Be(a[7],n),s:Be(a[8],n)}):null==o?o={}:"object"===typeof o&&("from"in o||"to"in o)&&(i=function(t,e){var n;return t.isValid()&&e.isValid()?(e=Re(e,t),t.isBefore(e)?n=Ve(t,e):((n=Ve(e,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}(ke(o.from),ke(o.to)),(o={}).ms=i.milliseconds,o.M=i.months),r=new Ce(o),Ne(t)&&c(t,"_locale")&&(r._locale=t._locale),r}function Be(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Ve(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function ze(t,e){return function(n,r){var i;return null===r||isNaN(+r)||(A(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),We(this,qe(n="string"===typeof n?+n:n,r),t),this}}function We(t,e,n,i){var o=e._milliseconds,a=Ie(e._days),s=Ie(e._months);t.isValid()&&(i=null==i||i,s&&At(t,_t(t,"Month")+s*n),a&&xt(t,"Date",_t(t,"Date")+a*n),o&&t._d.setTime(t._d.valueOf()+o*n),i&&r.updateOffset(t,a||s))}qe.fn=Ce.prototype,qe.invalid=function(){return qe(NaN)};var He=ze(1,"add"),Ye=ze(-1,"subtract");function Ge(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),r=t.clone().add(n,"months");return-(n+(e-r<0?(e-r)/(r-t.clone().add(n-1,"months")):(e-r)/(t.clone().add(n+1,"months")-r)))||0}function Ke(t){var e;return void 0===t?this._locale._abbr:(null!=(e=ae(t))&&(this._locale=e),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Xe=T("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function $e(){return this._locale}function Ze(t,e){return(t%e+e)%e}function Qe(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-126227808e5:new Date(t,e,n).valueOf()}function Je(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-126227808e5:Date.UTC(t,e,n)}function tn(t,e){z(0,[t,t.length],0,e)}function en(t,e,n,r,i){var o;return null==t?jt(this,r,i).year:(e>(o=Ft(t,r,i))&&(e=o),nn.call(this,t,e,n,r,i))}function nn(t,e,n,r,i){var o=Lt(t,e,n,r,i),a=Dt(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}z(0,["gg",2],0,(function(){return this.weekYear()%100})),z(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),tn("gggg","weekYear"),tn("ggggg","weekYear"),tn("GGGG","isoWeekYear"),tn("GGGGG","isoWeekYear"),M("weekYear","gg"),M("isoWeekYear","GG"),j("weekYear",1),j("isoWeekYear",1),lt("G",it),lt("g",it),lt("GG",Z,G),lt("gg",Z,G),lt("GGGG",et,X),lt("gggg",et,X),lt("GGGGG",nt,$),lt("ggggg",nt,$),pt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,n,r){e[r.substr(0,2)]=x(t)})),pt(["gg","GG"],(function(t,e,n,i){e[i]=r.parseTwoDigitYear(t)})),z("Q",0,"Qo","quarter"),M("quarter","Q"),j("quarter",7),lt("Q",Y),dt("Q",(function(t,e){e[1]=3*(x(t)-1)})),z("D",["DD",2],"Do","date"),M("date","D"),j("date",9),lt("D",Z),lt("DD",Z,G),lt("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),dt(["D","DD"],2),dt("Do",(function(t,e){e[2]=x(t.match(Z)[0])}));var rn=wt("Date",!0);z("DDD",["DDDD",3],"DDDo","dayOfYear"),M("dayOfYear","DDD"),j("dayOfYear",4),lt("DDD",tt),lt("DDDD",K),dt(["DDD","DDDD"],(function(t,e,n){n._dayOfYear=x(t)})),z("m",["mm",2],0,"minute"),M("minute","m"),j("minute",14),lt("m",Z),lt("mm",Z,G),dt(["m","mm"],4);var on=wt("Minutes",!1);z("s",["ss",2],0,"second"),M("second","s"),j("second",15),lt("s",Z),lt("ss",Z,G),dt(["s","ss"],5);var an,sn=wt("Seconds",!1);for(z("S",0,0,(function(){return~~(this.millisecond()/100)})),z(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),z(0,["SSS",3],0,"millisecond"),z(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),z(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),z(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),z(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),z(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),z(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),M("millisecond","ms"),j("millisecond",16),lt("S",tt,Y),lt("SS",tt,G),lt("SSS",tt,K),an="SSSS";an.length<=9;an+="S")lt(an,rt);function un(t,e){e[6]=x(1e3*("0."+t))}for(an="S";an.length<=9;an+="S")dt(an,un);var ln=wt("Milliseconds",!1);z("z",0,0,"zoneAbbr"),z("zz",0,0,"zoneName");var cn=b.prototype;function fn(t){return t}cn.add=He,cn.calendar=function(t,e){var n=t||ke(),i=Re(n,this).startOf("day"),o=r.calendarFormat(this,i)||"sameElse",a=e&&(C(e[o])?e[o].call(this,n):e[o]);return this.format(a||this.localeData().calendar(o,this,ke(n)))},cn.clone=function(){return new b(this)},cn.diff=function(t,e,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=Re(t,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),e=D(e)){case"year":o=Ge(this,r)/12;break;case"month":o=Ge(this,r);break;case"quarter":o=Ge(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:_(o)},cn.endOf=function(t){var e;if(void 0===(t=D(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?Je:Qe;switch(t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;
vendor: 4,233 bytes, line 2
2case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-Ze(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-Ze(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-Ze(e,1e3)-1}return this._d.setTime(e),r.updateOffset(this,!0),this},cn.format=function(t){t||(t=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var e=W(this,t);return this.localeData().postformat(e)},cn.from=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||ke(t).isValid())?qe({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},cn.fromNow=function(t){return this.from(ke(),t)},cn.to=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||ke(t).isValid())?qe({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},cn.toNow=function(t){return this.to(ke(),t)},cn.get=function(t){return C(this[t=D(t)])?this[t]():this},cn.invalidAt=function(){return d(this).overflow},cn.isAfter=function(t,e){var n=w(t)?t:ke(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=D(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())},cn.isBefore=function(t,e){var n=w(t)?t:ke(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=D(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())},cn.isBetween=function(t,e,n,r){var i=w(t)?t:ke(t),o=w(e)?e:ke(e);return!!(this.isValid()&&i.isValid()&&o.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n))},cn.isSame=function(t,e){var n,r=w(t)?t:ke(t);return!(!this.isValid()||!r.isValid())&&("millisecond"===(e=D(e)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))},cn.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},cn.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},cn.isValid=function(){return p(this)},cn.lang=Xe,cn.locale=Ke,cn.localeData=$e,cn.max=Se,cn.min=Te,cn.parsingFlags=function(){return f({},d(this))},cn.set=function(t,e){if("object"===typeof t)for(var n=function(t){var e=[];for(var n in t)e.push({unit:n,priority:L[n]});return e.sort((function(t,e){return t.priority-e.priority})),e}(t=R(t)),r=0;r<n.length;r++)this[n[r].unit](t[n[r].unit]);else if(C(this[t=D(t)]))return this[t](e);return this},cn.startOf=function(t){var e;if(void 0===(t=D(t))||"millisecond"===t||!this.isValid())return this;var n=this._isUTC?Je:Qe;switch(t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=Ze(e+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":e=this._d.valueOf(),e-=Ze(e,6e4);break;case"second":e=this._d.valueOf(),e-=Ze(e,1e3)}return this._d.setTime(e),r.updateOffset(this,!0),this},cn.subtract=Ye,cn.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},cn.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},cn.toDate=function(){return new Date(this.valueOf())},cn.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?W(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):C(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",W(n,"Z")):W(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}
vendor: 4,497 bytes, line 2
2,cn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=e+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)},cn.toJSON=function(){return this.isValid()?this.toISOString():null},cn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},cn.unix=function(){return Math.floor(this.valueOf()/1e3)},cn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},cn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},cn.year=bt,cn.isLeapYear=function(){return gt(this.year())},cn.weekYear=function(t){return en.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},cn.isoWeekYear=function(t){return en.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},cn.quarter=cn.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},cn.month=Ct,cn.daysInMonth=function(){return Et(this.year(),this.month())},cn.week=cn.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},cn.isoWeek=cn.isoWeeks=function(t){var e=jt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},cn.weeksInYear=function(){var t=this.localeData()._week;return Ft(this.year(),t.dow,t.doy)},cn.isoWeeksInYear=function(){return Ft(this.year(),1,4)},cn.date=rn,cn.day=cn.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,e){return"string"!==typeof t?t:isNaN(t)?"number"===typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},cn.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},cn.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"===typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},cn.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},cn.hour=cn.hours=Qt,cn.minute=cn.minutes=on,cn.second=cn.seconds=sn,cn.millisecond=cn.milliseconds=ln,cn.utcOffset=function(t,e,n){var i,o=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"===typeof t){if(null===(t=De(at,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(i=Le(this)),this._offset=t,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==t&&(!e||this._changeInProgress?We(this,qe(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Le(this)},cn.utc=function(t){return this.utcOffset(0,t)},cn.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Le(this),"m")),this},cn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"===typeof this._i){var t=De(ot,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},cn.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?ke(t).utcOffset():0,(this.utcOffset()-t)%60===0)},cn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},cn.isLocal=function(){return!!this.isValid()&&!this._isUTC},cn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},cn.isUtc=je,cn.isUTC=je,cn.zoneAbbr=function(){return this._isUTC?"UTC":""},cn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},cn.dates=T("dates accessor is deprecated. Use date instead.",rn),cn.months=T("months accessor is deprecated. Use month instead",Ct),cn.years=T("years accessor is deprecated. Use year instead",bt),cn.zone=T("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,e){return null!=t?("string"!==typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()})),cn.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var t={};
vendor: 4,139 bytes, line 2
2if(g(t,this),(t=xe(t))._a){var e=t._isUTC?h(t._a):ke(t._a);this._isDSTShifted=this.isValid()&&E(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var hn=I.prototype;function dn(t,e,n,r){var i=ae(),o=h().set(r,e);return i[n](o,t)}function pn(t,e,n){if(s(t)&&(e=t,t=void 0),t=t||"",null!=e)return dn(t,e,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=dn(t,r,n,"month");return i}function vn(t,e,n,r){"boolean"===typeof t?(s(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,s(e)&&(n=e,e=void 0),e=e||"");var i,o=ae(),a=t?o._week.dow:0;if(null!=n)return dn(e,(n+a)%7,r,"day");var u=[];for(i=0;i<7;i++)u[i]=dn(e,(i+a)%7,r,"day");return u}hn.calendar=function(t,e,n){var r=this._calendar[t]||this._calendar.sameElse;return C(r)?r.call(e,n):r},hn.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,(function(t){return t.slice(1)})),this._longDateFormat[t])},hn.invalidDate=function(){return this._invalidDate},hn.ordinal=function(t){return this._ordinal.replace("%d",t)},hn.preparse=fn,hn.postformat=fn,hn.relativeTime=function(t,e,n,r){var i=this._relativeTime[n];return C(i)?i(t,e,n,r):i.replace(/%d/i,t)},hn.pastFuture=function(t,e){var n=this._relativeTime[t>0?"future":"past"];return C(n)?n(e):n.replace(/%s/i,e)},hn.set=function(t){var e,n;for(n in t)C(e=t[n])?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},hn.months=function(t,e){return t?i(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||kt).test(e)?"format":"standalone"][t.month()]:i(this._months)?this._months:this._months.standalone},hn.monthsShort=function(t,e){return t?i(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[kt.test(e)?"format":"standalone"][t.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},hn.monthsParse=function(t,e,n){var r,i,o;if(this._monthsParseExact)return Ot.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=h([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[r].test(t))return r;if(n&&"MMM"===e&&this._shortMonthsParse[r].test(t))return r;if(!n&&this._monthsParse[r].test(t))return r}},hn.monthsRegex=function(t){return this._monthsParseExact?(c(this,"_monthsRegex")||Pt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(c(this,"_monthsRegex")||(this._monthsRegex=It),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},hn.monthsShortRegex=function(t){return this._monthsParseExact?(c(this,"_monthsRegex")||Pt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(c(this,"_monthsShortRegex")||(this._monthsShortRegex=Nt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},hn.week=function(t){return jt(t,this._week.dow,this._week.doy).week},hn.firstDayOfYear=function(){return this._week.doy},hn.firstDayOfWeek=function(){return this._week.dow},hn.weekdays=function(t,e){var n=i(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Ut(n,this._week.dow):t?n[t.day()]:n},hn.weekdaysMin=function(t){return!0===t?Ut(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},hn.weekdaysShort=function(t){return!0===t?Ut(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},hn.weekdaysParse=function(t,e,n){var r,i,o;if(this._weekdaysParseExact)return zt.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;
vendor: 8,665 bytes, line 2
2r++){if(i=h([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[r].test(t))return r;if(n&&"ddd"===e&&this._shortWeekdaysParse[r].test(t))return r;if(n&&"dd"===e&&this._minWeekdaysParse[r].test(t))return r;if(!n&&this._weekdaysParse[r].test(t))return r}},hn.weekdaysRegex=function(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Gt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Wt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},hn.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Gt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ht),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},hn.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Gt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Yt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},hn.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},hn.meridiem=function(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"},ie("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===x(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),r.lang=T("moment.lang is deprecated. Use moment.locale instead.",ie),r.langData=T("moment.langData is deprecated. Use moment.localeData instead.",ae);var mn=Math.abs;function gn(t,e,n,r){var i=qe(e,n);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function yn(t){return t<0?Math.floor(t):Math.ceil(t)}function bn(t){return 4800*t/146097}function wn(t){return 146097*t/4800}function _n(t){return function(){return this.as(t)}}var xn=_n("ms"),En=_n("s"),kn=_n("m"),Tn=_n("h"),Sn=_n("d"),On=_n("w"),An=_n("M"),Cn=_n("Q"),Nn=_n("y");function In(t){return function(){return this.isValid()?this._data[t]:NaN}}var Pn=In("milliseconds"),Mn=In("seconds"),Dn=In("minutes"),Rn=In("hours"),Ln=In("days"),jn=In("months"),Fn=In("years"),Un=Math.round,qn={ss:44,s:45,m:45,h:22,d:26,M:11};function Bn(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}var Vn=Math.abs;function zn(t){return(t>0)-(t<0)||+t}function Wn(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n=Vn(this._milliseconds)/1e3,r=Vn(this._days),i=Vn(this._months);t=_(n/60),e=_(t/60),n%=60,t%=60;var o=_(i/12),a=i%=12,s=r,u=e,l=t,c=n?n.toFixed(3).replace(/\.?0+$/,""):"",f=this.asSeconds();if(!f)return"P0D";var h=f<0?"-":"",d=zn(this._months)!==zn(f)?"-":"",p=zn(this._days)!==zn(f)?"-":"",v=zn(this._milliseconds)!==zn(f)?"-":"";return h+"P"+(o?d+o+"Y":"")+(a?d+a+"M":"")+(s?p+s+"D":"")+(u||l||c?"T":"")+(u?v+u+"H":"")+(l?v+l+"M":"")+(c?v+c+"S":"")}var Hn=Ce.prototype;return Hn.isValid=function(){return this._isValid},Hn.abs=function(){var t=this._data;return this._milliseconds=mn(this._milliseconds),this._days=mn(this._days),this._months=mn(this._months),t.milliseconds=mn(t.milliseconds),t.seconds=mn(t.seconds),t.minutes=mn(t.minutes),t.hours=mn(t.hours),t.months=mn(t.months),t.years=mn(t.years),this},Hn.add=function(t,e){return gn(this,t,e,1)},Hn.subtract=function(t,e){return gn(this,t,e,-1)},Hn.as=function(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if("month"===(t=D(t))||"quarter"===t||"year"===t)switch(e=this._days+r/864e5,n=this._months+bn(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(wn(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return 24*e+r/36e5;case"minute":return 1440*e+r/6e4;case"second":return 86400*e+r/1e3;case"millisecond":return Math.floor(864e5*e)+r;default:throw new Error("Unknown unit "+t)}},Hn.asMilliseconds=xn,Hn.asSeconds=En,Hn.asMinutes=kn,Hn.asHours=Tn,Hn.asDays=Sn,Hn.asWeeks=On,Hn.asMonths=An,Hn.asQuarters=Cn,Hn.asYears=Nn,Hn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*x(this._months/12):NaN},Hn._bubble=function(){var t,e,n,r,i,o=this._milliseconds,a=this._days,s=this._months,u=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*yn(wn(s)+a),a=0,s=0),u.milliseconds=o%1e3,t=_(o/1e3),u.seconds=t%60,e=_(t/60),u.minutes=e%60,n=_(e/60),u.hours=n%24,a+=_(n/24),i=_(bn(a)),s+=i,a-=yn(wn(i)),r=_(s/12),s%=12,u.days=a,u.months=s,u.years=r,this},Hn.clone=function(){return qe(this)},Hn.get=function(t){return t=D(t),this.isValid()?this[t+"s"]():NaN},Hn.milliseconds=Pn,Hn.seconds=Mn,Hn.minutes=Dn,Hn.hours=Rn,Hn.days=Ln,Hn.weeks=function(){return _(this.days()/7)},Hn.months=jn,Hn.years=Fn,Hn.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=function(t,e,n){var r=qe(t).abs(),i=Un(r.as("s")),o=Un(r.as("m")),a=Un(r.as("h")),s=Un(r.as("d")),u=Un(r.as("M")),l=Un(r.as("y")),c=i<=qn.ss&&["s",i]||i<qn.s&&["ss",i]||o<=1&&["m"]||o<qn.m&&["mm",o]||a<=1&&["h"]||a<qn.h&&["hh",a]||s<=1&&["d"]||s<qn.d&&["dd",s]||u<=1&&["M"]||u<qn.M&&["MM",u]||l<=1&&["y"]||["yy",l];return c[2]=e,c[3]=+t>0,c[4]=n,Bn.apply(null,c)}(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)},Hn.toISOString=Wn,Hn.toString=Wn,Hn.toJSON=Wn,Hn.locale=Ke,Hn.localeData=$e,Hn.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Wn),Hn.lang=Xe,z("X",0,0,"unix"),z("x",0,0,"valueOf"),lt("x",it),lt("X",/[+-]?\d+(\.\d{1,3})?/),dt("X",(function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))})),dt("x",(function(t,e,n){n._d=new Date(x(t))})),r.version="2.24.0",e=ke,r.fn=cn,r.min=function(){var t=[].slice.call(arguments,0);return Oe("isBefore",t)},r.max=function(){var t=[].slice.call(arguments,0);return Oe("isAfter",t)},r.now=function(){return Date.now?Date.now():+new Date},r.utc=h,r.unix=function(t){return ke(1e3*t)},r.months=function(t,e){return pn(t,e,"months")},r.isDate=u,r.locale=ie,r.invalid=v,r.duration=qe,r.isMoment=w,r.weekdays=function(t,e,n){return vn(t,e,n,"weekdays")},r.parseZone=function(){return ke.apply(null,arguments).parseZone()},r.localeData=ae,r.isDuration=Ne,r.monthsShort=function(t,e){return pn(t,e,"monthsShort")},r.weekdaysMin=function(t,e,n){return vn(t,e,n,"weekdaysMin")},r.defineLocale=oe,r.updateLocale=function(t,e){if(null!=e){var n,r,i=Jt;null!=(r=re(t))&&(i=r._config),e=N(i,e),(n=new I(e)).parentLocale=te[t],te[t]=n,ie(t)}else null!=te[t]&&(null!=te[t].parentLocale?te[t]=te[t].parentLocale:null!=te[t]&&delete te[t]);return te[t]},r.locales=function(){return S(te)},r.weekdaysShort=function(t,e,n){return vn(t,e,n,"weekdaysShort")},r.normalizeUnits=D,r.relativeTimeRounding=function(t){return void 0===t?Un:"function"===typeof t&&(Un=t,!0)},r.relativeTimeThreshold=function(t,e){return void 0!==qn[t]&&(void 0===e?qn[t]:(qn[t]=e,"s"===t&&(qn.ss=e-1),!0))},r.calendarFormat=function(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=cn,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}).call(this,n(61)(t))},function(t,e,n){var r=n(303);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e,n){var r=n(27),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();t.exports=i},function(t,e,n){var r=n(305),i=n(306),o=n(39),a=n(21);t.exports=function(t,e){return function(n,s){var u=a(n)?r:i,l=e?e():{};return u(n,t,o(s,2),l)}}},function(t,e){t.exports=function(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];e(r,a,n(a),t)}return r}},function(t,e,n){var r=n(110);t.exports=function(t,e,n,i){return r(t,(function(t,r,o){e(i,t,n(t),o)})),i}},,function(t,e,n){"use strict";var r=n(28),i=n.n(r),o=n(6),a=n(49),s=function(){function t(t,e){this.co
2de_=S(t),this.message_="Firebase Storage: "+e,this.serverResponse_=null,this.name_="FirebaseError"}return t.prototype.codeProp=function(){return this.code},t.prototype.codeEquals=function(t){return S(t)===this.codeProp()},t.prototype.serverResponseProp=function(){return this.serverResponse_},t.prototype.setServerResponseProp=function(t){this.serverResponse_=t},Object.defineProperty(t.prototype,"name",{get:function(){return this.name_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"code",{get:function(){return this.code_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"message",{get:function(){return this.serverResponse_?this.message_+"\n"+this.serverResponse_:this.message_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"serverResponse",{get:function(){return this.serverResponse_},enumerable:!1,configurable:!0}),t}(),u="unknown",l="object-not-found",c="quota-exceeded",f="unauthenticated",h="unauthorized",d="retry-limit-exceeded",p="canceled",v="invalid-url",m="invalid-default-bucket",g="cannot-slice-blob",y="server-file-wrong-size",b="no-download-url",w="invalid-argument",_="invalid-argument-count",x="app-deleted",E="invalid-root-operation",k="invalid-format",T="internal-error";function S(t){return"storage/"+t}function O(){return new s(u,"An unknown error occurred, please check the error payload for server response.")}function A(){return new s(p,"User canceled the upload/download.")}function C(){return new s(g,"Cannot slice blob for upload. Please retry the upload.")}function N(){return new s(b,"The given file does not have any download URLs.")}function I(t,e,n){return new s(w,"Invalid argument in `"+e+"` at index "+t+": "+n)}function P(){return new s(x,"The Firebase app was deleted.")}function M(t,e){return new s(k,"String does not match format '"+t+"': "+e)}function D(t){throw new s(T,"Internal error: "+t)}var R={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"};function L(t){switch(t){case R.RAW:case R.BASE64:case R.BASE64URL:case R.DATA_URL:return;default:throw"Expected one of the event types: ["+R.RAW+", "+R.BASE64+", "+R.BASE64URL+", "+R.DATA_URL+"]."}}var j=function(t,e){this.data=t,this.contentType=e||null};function F(t,e){switch(t){case R.RAW:return new j(U(e));case R.BASE64:case R.BASE64URL:return new j(q(t,e));case R.DATA_URL:return new j(function(t){var e=new B(t);return e.base64?q(R.BASE64,e.rest):function(t){var e;try{e=decodeURIComponent(t)}catch(n){throw M(R.DATA_URL,"Malformed data URL.")}return U(e)}(e.rest)}(e),new B(e).contentType)}throw O()}function U(t){for(var e=[],n=0;n<t.length;n++){var r=t.charCodeAt(n);if(r<=127)e.push(r);else if(r<=2047)e.push(192|r>>6,128|63&r);else if(55296===(64512&r))if(n<t.length-1&&56320===(64512&t.charCodeAt(n+1)))r=65536|(1023&r)<<10|1023&t.charCodeAt(++n),e.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r);else e.push(239,191,189);else 56320===(64512&r)?e.push(239,191,189):e.push(224|r>>12,128|r>>6&63,128|63&r)}return new Uint8Array(e)}function q(t,e){switch(t){case R.BASE64:var n=-1!==e.indexOf("-"),r=-1!==e.indexOf("_");if(n||r)throw M(t,"Invalid character '"+(n?"-":"_")+"' found: is it base64url encoded?");break;case R.BASE64URL:var i=-1!==e.indexOf("+"),o=-1!==e.indexOf("/");if(i||o)throw M(t,"Invalid character '"+(i?"+":"/")+"' found: is it base64 encoded?");e=e.replace(/-/g,"+").replace(/_/g,"/")}var a;try{a=atob(e)}catch(l){throw M(t,"Invalid character found")}for(var s=new Uint8Array(a.length),u=0;u<a.length;u++)s[u]=a.charCodeAt(u);return s}var B=function(t){this.base64=!1,this.contentType=null;var e=t.match(/^data:([^,]+)?,/);if(null===e)throw M(R.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],<data>");var n=e[1]||null;null!=n&&(this.base64=(r=n,i=";base64",r.length>=i.length&&r.substring(r.length-i.length)===i),this.contentType=this.base64?n.substring(0,n.length-";base64".length):n),this.rest=t.substring(t.indexOf(",")+1);var r,i};var V,z={STATE_CHANGED:"state_changed"},W="running",H="pausing",Y="paused",G="success",K="canceling",X="canceled",$="error",Z={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"};function Q(t){switch(t){case W:case H:case K:return Z.RUNNING;case Y:return Z.PAUSED;case G:return Z.SUCCESS;case X:return Z.CANCELED;case $:default:return Z.ERROR}}function J(t){return null!=t}function tt(t){return void 0!==t}function et(t){return"function"===typeof t}function nt(t){return"object"===typeof t}function rt(t){return nt(t)&&null!==t}function it(t){return"string"===typeof t||t instanceof String}function ot(t){return at(t)&&Number.isInteger(t)}function at(t){return"number"===typeof t||t instanceof Number}function st(t){return ut()&&t instanceof Blob}function ut(){return"undefined"!==typeof Blob}
2!function(t){t[t.NO_ERROR=0]="NO_ERROR",t[t.NETWORK_ERROR=1]="NETWORK_ERROR",t[t.ABORT=2]="ABORT"}(V||(V={}));var lt=function(){function t(){var t=this;this.sent_=!1,this.xhr_=new XMLHttpRequest,this.errorCode_=V.NO_ERROR,this.sendPromise_=new Promise((function(e){t.xhr_.addEventListener("abort",(function(){t.errorCode_=V.ABORT,e(t)})),t.xhr_.addEventListener("error",(function(){t.errorCode_=V.NETWORK_ERROR,e(t)})),t.xhr_.addEventListener("load",(function(){e(t)}))}))}return t.prototype.send=function(t,e,n,r){if(this.sent_)throw D("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(e,t,!0),J(r))for(var i in r)r.hasOwnProperty(i)&&this.xhr_.setRequestHeader(i,r[i].toString());return J(n)?this.xhr_.send(n):this.xhr_.send(),this.sendPromise_},t.prototype.getErrorCode=function(){if(!this.sent_)throw D("cannot .getErrorCode() before sending");return this.errorCode_},t.prototype.getStatus=function(){if(!this.sent_)throw D("cannot .getStatus() before sending");try{return this.xhr_.status}catch(t){return-1}},t.prototype.getResponseText=function(){if(!this.sent_)throw D("cannot .getResponseText() before sending");return this.xhr_.responseText},t.prototype.abort=function(){this.xhr_.abort()},t.prototype.getResponseHeader=function(t){return this.xhr_.getResponseHeader(t)},t.prototype.addUploadProgressListener=function(t){J(this.xhr_.upload)&&this.xhr_.upload.addEventListener("progress",t)},t.prototype.removeUploadProgressListener=function(t){J(this.xhr_.upload)&&this.xhr_.upload.removeEventListener("progress",t)},t}(),ct=function(){function t(){}return t.prototype.createXhrIo=function(){return new lt},t}();function ft(){return"undefined"!==typeof BlobBuilder?BlobBuilder:"undefined"!==typeof WebKitBlobBuilder?WebKitBlobBuilder:void 0}function ht(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=ft();if(void 0!==n){for(var r=new n,i=0;i<t.length;i++)r.append(t[i]);return r.getBlob()}if(ut())return new Blob(t);throw Error("This browser doesn't seem to support creating Blobs")}var dt=function(){function t(t,e){var n=0,r="";st(t)?(this.data_=t,n=t.size,r=t.type):t instanceof ArrayBuffer?(e?this.data_=new Uint8Array(t):(this.data_=new Uint8Array(t.byteLength),this.data_.set(new Uint8Array(t))),n=this.data_.length):t instanceof Uint8Array&&(e?this.data_=t:(this.data_=new Uint8Array(t.length),this.data_.set(t)),n=t.length),this.size_=n,this.type_=r}return t.prototype.size=function(){return this.size_},t.prototype.type=function(){return this.type_},t.prototype.slice=function(e,n){if(st(this.data_)){var r=function(t,e,n){return t.webkitSlice?t.webkitSlice(e,n):t.mozSlice?t.mozSlice(e,n):t.slice?t.slice(e,n):null}(this.data_,e,n);return null===r?null:new t(r)}return new t(new Uint8Array(this.data_.buffer,e,n-e),!0)},t.getBlob=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(ut()){var r=e.map((function(e){return e instanceof t?e.data_:e}));return new t(ht.apply(null,r))}var i=e.map((function(t){return it(t)?F(R.RAW,t).data:t.data_})),o=0;i.forEach((function(t){o+=t.byteLength}));var a=new Uint8Array(o),s=0;return i.forEach((function(t){for(var e=0;e<t.length;e++)a[s++]=t[e]})),new t(a,!0)},t.prototype.uploadData=function(){return this.data_},t}(),pt=function(){function t(t,e){this.bucket=t,this.path_=e}return Object.defineProperty(t.prototype,"path",{get:function(){return this.path_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRoot",{get:function(){return 0===this.path.length},enumerable:!1,configurable:!0}),t.prototype.fullServerUrl=function(){var t=encodeURIComponent;return"/b/"+t(this.bucket)+"/o/"+t(this.path)},t.prototype.bucketOnlyServerUrl=function(){return"/b/"+encodeURIComponent(this.bucket)+"/o"},t.makeFromBucketSpec=function(e){var n;try{n=t.makeFromUrl(e)}catch(r){return new t(e,"")}if(""===n.path)return n;throw new s(m,"Invalid default bucket '"+e+"'.")},t.makeFromUrl=function(e){var n=null;var r=new RegExp("^gs://([A-Za-z0-9.\\-_]+)(/(.*))?$","i");function i(t){t.path_=decodeURIComponent(t.path)}for(var o="firebasestorage.googleapis.com".replace(/[.]/g,"\\."),a=[{regex:r,
2indices:{bucket:1,path:3},postModify:function(t){"/"===t.path.charAt(t.path.length-1)&&(t.path_=t.path_.slice(0,-1))}},{regex:new RegExp("^https?://"+o+"/v[A-Za-z0-9_]+/b/([A-Za-z0-9.\\-_]+)/o(/([^?#]*).*)?$","i"),indices:{bucket:1,path:3},postModify:i},{regex:new RegExp("^https?://(?:storage.googleapis.com|storage.cloud.google.com)/([A-Za-z0-9.\\-_]+)/([^?#]*)","i"),indices:{bucket:1,path:2},postModify:i}],u=0;u<a.length;u++){var l=a[u],c=l.regex.exec(e);if(c){var f=c[l.indices.bucket],h=c[l.indices.path];h||(h=""),n=new t(f,h),l.postModify(n);break}}if(null==n)throw function(t){return new s(v,"Invalid URL '"+t+"'.")}(e);return n},t}();function vt(t){var e,n;try{e=JSON.parse(t)}catch(r){return null}return nt(n=e)&&!Array.isArray(n)?e:null}function mt(t,e){var n=e.split("/").filter((function(t){return t.length>0})).join("/");return 0===t.length?n:t+"/"+n}function gt(t){var e=t.lastIndexOf("/",t.length-2);return-1===e?t:t.slice(e+1)}function yt(t){return"https://firebasestorage.googleapis.com/v0"+t}function bt(t){var e=encodeURIComponent,n="?";for(var r in t){if(t.hasOwnProperty(r))n=n+(e(r)+"="+e(t[r]))+"&"}return n=n.slice(0,-1)}function wt(t,e){return e}var _t=function(t,e,n,r){this.server=t,this.local=e||t,this.writable=!!n,this.xform=r||wt},xt=null;function Et(){if(xt)return xt;var t=[];t.push(new _t("bucket")),t.push(new _t("generation")),t.push(new _t("metageneration")),t.push(new _t("name","fullPath",!0));var e=new _t("name");e.xform=function(t,e){return function(t){return!it(t)||t.length<2?t:gt(t)}(e)},t.push(e);var n=new _t("size");return n.xform=function(t,e){return J(e)?Number(e):e},t.push(n),t.push(new _t("timeCreated")),t.push(new _t("updated")),t.push(new _t("md5Hash",null,!0)),t.push(new _t("cacheControl",null,!0)),t.push(new _t("contentDisposition",null,!0)),t.push(new _t("contentEncoding",null,!0)),t.push(new _t("contentLanguage",null,!0)),t.push(new _t("contentType",null,!0)),t.push(new _t("metadata","customMetadata",!0)),xt=t}function kt(t,e,n){for(var r={type:"file"},i=n.length,o=0;o<i;o++){var a=n[o];r[a.local]=a.xform(r,e[a.server])}return function(t,e){Object.defineProperty(t,"ref",{get:function(){var n=t.bucket,r=t.fullPath,i=new pt(n,r);return e.makeStorageReference(i)}})}(r,t),r}function Tt(t,e,n){var r=vt(e);return null===r?null:kt(t,r,n)}function St(t,e){for(var n={},r=e.length,i=0;i<r;i++){var o=e[i];o.writable&&(n[o.server]=t[o.local])}return JSON.stringify(n)}function Ot(t){if(!nt(t)||!t)throw"Expected Metadata object.";for(var e in t)if(t.hasOwnProperty(e)){var n=t[e];if("customMetadata"===e){if(!nt(n))throw"Expected object for 'customMetadata' mapping."}else if(rt(n))throw"Mapping for '"+e+"' cannot be an object."}}function At(t,e,n){var r=vt(n);return null===r?null:function(t,e,n){var r={prefixes:[],items:[],nextPageToken:n.nextPageToken};if(n.prefixes)for(var i=0,o=n.prefixes;i<o.length;i++){var a=o[i].replace(/\/$/,""),s=t.makeStorageReference(new pt(e,a));r.prefixes.push(s)}if(n.items)for(var u=0,l=n.items;u<l.length;u++){var c=l[u];s=t.makeStorageReference(new pt(e,c.name));r.items.push(s)}return r}(t,e,r)}function Ct(t){if(!nt(t)||!t)throw"Expected ListOptions object.";for(var e in t)if("maxResults"===e){if(!ot(t.maxResults)||t.maxResults<=0)throw"Expected maxResults to be a positive number.";if(t.maxResults>1e3)throw"Expected maxResults to be less than or equal to 1000."}else{if("pageToken"!==e)throw"Unknown option: "+e;if(t.pageToken&&!it(t.pageToken))throw"Expected pageToken to be string."}}var Nt=function(t,e,n,r){this.url=t,this.method=e,this.handler=n,this.timeout=r,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]};function It(t){if(!t)throw O()}function Pt(t,e){return function(n,r){var i=Tt(t,r,e);return It(null!==i),i}}function Mt(t,e){return function(n,r){var i=Tt(t,r,e);return It(null!==i),function(t,e){var n=vt(e);if(null===n)return null;if(!it(n.downloadTokens))return null;var r=n.downloadTokens;if(0===r.length)return null;var i=encodeURIComponent;return r.split(",").map((function(e){var n=t.bucket,r=t.fullPath;return yt("/b/"+i(n)+"/o/"+i(r))+bt({alt:"media",token:e})}))[0]}(i,r)}}function Dt(t){return function(e,n){var r,i,o;return 401===e.getStatus()?r=new s(f,"User is not authenticated, please authenticate using Firebase Authentication and try again."):402===e.getStatus()?(o=t.bucket,r=new s(c,"Quota for bucket '"+o+"' exceeded, please view quota on https://firebase.google.com/pricing/.")):403===e.getStatus()?(i=t.path,r=new s(h,"User does not have permission to access '"+i+"'.")):r=n,r.setServerResponseProp(n.serverResponseProp()),r}}function Rt(t){var e=Dt(t);return function(n,r){var i,o=e(n,r);
2return 404===n.getStatus()&&(i=t.path,o=new s(l,"Object '"+i+"' does not exist.")),o.setServerResponseProp(r.serverResponseProp()),o}}function Lt(t,e,n){var r=yt(e.fullServerUrl()),i=t.maxOperationRetryTime,o=new Nt(r,"GET",Pt(t,n),i);return o.errorHandler=Rt(e),o}function jt(t,e,n,r,i){var o={};e.isRoot?o.prefix="":o.prefix=e.path+"/",n&&n.length>0&&(o.delimiter=n),r&&(o.pageToken=r),i&&(o.maxResults=i);var a=yt(e.bucketOnlyServerUrl()),s=t.maxOperationRetryTime,u=new Nt(a,"GET",function(t,e){return function(n,r){var i=At(t,e,r);return It(null!==i),i}}(t,e.bucket),s);return u.urlParams=o,u.errorHandler=Dt(e),u}function Ft(t,e,n){var r=yt(e.fullServerUrl()),i=t.maxOperationRetryTime,o=new Nt(r,"GET",Mt(t,n),i);return o.errorHandler=Rt(e),o}function Ut(t,e,n,r){var i=yt(e.fullServerUrl()),o=St(n,r),a=t.maxOperationRetryTime,s=new Nt(i,"PATCH",Pt(t,r),a);return s.headers={"Content-Type":"application/json; charset=utf-8"},s.body=o,s.errorHandler=Rt(e),s}function qt(t,e){var n=yt(e.fullServerUrl()),r=t.maxOperationRetryTime;var i=new Nt(n,"DELETE",(function(t,e){}),r);return i.successCodes=[200,204],i.errorHandler=Rt(e),i}function Bt(t,e,n){var r=Object.assign({},n);return r.fullPath=t.path,r.size=e.size(),r.contentType||(r.contentType=function(t,e){return t&&t.contentType||e&&e.type()||"application/octet-stream"}(null,e)),r}var Vt=function(t,e,n,r){this.current=t,this.total=e,this.finalized=!!n,this.metadata=r||null};function zt(t,e){var n=null;try{n=t.getResponseHeader("X-Goog-Upload-Status")}catch(r){It(!1)}return It(!!n&&-1!==(e||["active"]).indexOf(n)),n}function Wt(t,e,n,r,i,o,a,u){var l=new Vt(0,0);if(a?(l.current=a.current,l.total=a.total):(l.current=0,l.total=r.size()),r.size()!==l.total)throw new s(y,"Server recorded incorrect upload file size, please retry the upload.");var c=l.total-l.current,f=c;i>0&&(f=Math.min(f,i));var h=l.current,d=h+f,p={"X-Goog-Upload-Command":f===c?"upload, finalize":"upload","X-Goog-Upload-Offset":l.current},v=r.slice(h,d);if(null===v)throw C();var m=e.maxUploadRetryTime,g=new Nt(n,"POST",(function(t,n){var i,a=zt(t,["active","final"]),s=l.current+f,u=r.size();return i="final"===a?Pt(e,o)(t,n):null,new Vt(s,u,"final"===a,i)}),m);return g.headers=p,g.body=v.uploadData(),g.progressCallback=u||null,g.errorHandler=Dt(t),g}var Ht=function(t,e,n){if(et(t)||J(e)||J(n))this.next=t,this.error=e||null,this.complete=n||null;else{var r=t;this.next=r.next||null,this.error=r.error||null,this.complete=r.complete||null}},Yt=function(t,e,n,r,i,o){this.bytesTransferred=t,this.totalBytes=e,this.state=n,this.metadata=r,this.task=i,this.ref=o};function Gt(t,e,n){for(var r=e.length,i=e.length,o=0;o<e.length;o++)if(e[o].optional){r=o;break}if(!(r<=n.length&&n.length<=i))throw function(t,e,n,r){var i,o;return t===e?(i=t,o=1===t?"argument":"arguments"):(i="between "+t+" and "+e,o="arguments"),new s(_,"Invalid argument count in `"+n+"`: Expected "+i+" "+o+", received "+r+".")}(r,i,t,n.length);for(o=0;o<n.length;o++)try{e[o].validator(n[o])}catch(a){throw a instanceof Error?I(o,t,a.message):I(o,t,a)}}var Kt=function(t,e){var n=this;this.validator=function(e){n.optional&&!tt(e)||t(e)},this.optional=!!e};function Xt(t,e){function n(t){if(!it(t))throw"Expected string."}var r,i,o;return t?(i=n,o=t,r=function(t){i(t),o(t)}):r=n,new Kt(r,e)}function $t(){return new Kt((function(t){if(!(t instanceof Uint8Array||t instanceof ArrayBuffer||ut()&&t instanceof Blob))throw"Expected Blob or File."}))}function Zt(t){return new Kt(Ot,t)}function Qt(t){return new Kt(Ct,t)}function Jt(){return new Kt((function(t){if(!(at(t)&&t>=0))throw"Expected a number 0 or greater."}))}function te(t,e){return new Kt((function(e){if(!(null===e||J(e)&&e instanceof Object))throw"Expected an Object.";void 0!==t&&null!==t&&t(e)}),e)}function ee(t){return new Kt((function(t){if(!(null===t||et(t)))throw"Expected a Function."}),t)}function ne(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];Promise.resolve().then((function(){return t.apply(void 0,e)}))}}var re=function(){function t(t,e,n,r,i,o){var a=this;void 0===o&&(o=null),this.transferred_=0,this.needToFetchStatus_=!1,this.needToFetchMetadata_=!1,this.observers_=[],this.error_=null,this.uploadUrl_=null,this.request_=null,this.chunkMultiplier_=1,this.resolve_=null,this.reject_=null,this.ref_=t,this.service_=e,this.location_=n,this.blob_=i,this.metadata_=o,this.mappings_=r,this.resumable_=this.shouldDoResumable_(this.blob_),this.state_=W,this.errorHandler_=function(t){a.request_=null,a.chunkMultiplier_=1,t.codeEquals(p)?(a.needToFetchStatus_=!0,a.completeTransitions_()):(a.error_=t,a.transition_($))},this.metadataErrorHandler_=function(t){a.request_=null,t.codeEquals(p)?a.completeTransitions_():(a.error_=t,a.transition_($))},this.promise_=new Promise((function(t,e){a.resolve_=t,a.reject_=e,a.start_()}
2)),this.promise_.then(null,(function(){}))}return t.prototype.makeProgressCallback_=function(){var t=this,e=this.transferred_;return function(n){return t.updateProgress_(e+n)}},t.prototype.shouldDoResumable_=function(t){return t.size()>262144},t.prototype.start_=function(){this.state_===W&&null===this.request_&&(this.resumable_?null===this.uploadUrl_?this.createResumable_():this.needToFetchStatus_?this.fetchStatus_():this.needToFetchMetadata_?this.fetchMetadata_():this.continueUpload_():this.oneShotUpload_())},t.prototype.resolveToken_=function(t){var e=this;this.service_.getAuthToken().then((function(n){switch(e.state_){case W:t(n);break;case K:e.transition_(X);break;case H:e.transition_(Y)}}))},t.prototype.createResumable_=function(){var t=this;this.resolveToken_((function(e){var n=function(t,e,n,r,i){var o=e.bucketOnlyServerUrl(),a=Bt(e,r,i),s={name:a.fullPath},u=yt(o),l={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":r.size(),"X-Goog-Upload-Header-Content-Type":a.contentType,"Content-Type":"application/json; charset=utf-8"},c=St(a,n),f=t.maxUploadRetryTime,h=new Nt(u,"POST",(function(t){var e;zt(t);try{e=t.getResponseHeader("X-Goog-Upload-URL")}catch(n){It(!1)}return It(it(e)),e}),f);return h.urlParams=s,h.headers=l,h.body=c,h.errorHandler=Dt(e),h}(t.service_,t.location_,t.mappings_,t.blob_,t.metadata_),r=t.service_.makeRequest(n,e);t.request_=r,r.getPromise().then((function(e){t.request_=null,t.uploadUrl_=e,t.needToFetchStatus_=!1,t.completeTransitions_()}),t.errorHandler_)}))},t.prototype.fetchStatus_=function(){var t=this,e=this.uploadUrl_;this.resolveToken_((function(n){var r=function(t,e,n,r){var i=t.maxUploadRetryTime,o=new Nt(n,"POST",(function(t){var e=zt(t,["active","final"]),n=null;try{n=t.getResponseHeader("X-Goog-Upload-Size-Received")}catch(o){It(!1)}n||It(!1);var i=Number(n);return It(!isNaN(i)),new Vt(i,r.size(),"final"===e)}),i);return o.headers={"X-Goog-Upload-Command":"query"},o.errorHandler=Dt(e),o}(t.service_,t.location_,e,t.blob_),i=t.service_.makeRequest(r,n);t.request_=i,i.getPromise().then((function(e){e=e,t.request_=null,t.updateProgress_(e.current),t.needToFetchStatus_=!1,e.finalized&&(t.needToFetchMetadata_=!0),t.completeTransitions_()}),t.errorHandler_)}))},t.prototype.continueUpload_=function(){var t=this,e=262144*this.chunkMultiplier_,n=new Vt(this.transferred_,this.blob_.size()),r=this.uploadUrl_;this.resolveToken_((function(i){var o;try{o=Wt(t.location_,t.service_,r,t.blob_,e,t.mappings_,n,t.makeProgressCallback_())}catch(s){return t.error_=s,void t.transition_($)}var a=t.service_.makeRequest(o,i);t.request_=a,a.getPromise().then((function(e){t.increaseMultiplier_(),t.request_=null,t.updateProgress_(e.current),e.finalized?(t.metadata_=e.metadata,t.transition_(G)):t.completeTransitions_()}),t.errorHandler_)}))},t.prototype.increaseMultiplier_=function(){262144*this.chunkMultiplier_<33554432&&(this.chunkMultiplier_*=2)},t.prototype.fetchMetadata_=function(){var t=this;this.resolveToken_((function(e){var n=Lt(t.service_,t.location_,t.mappings_),r=t.service_.makeRequest(n,e);t.request_=r,r.getPromise().then((function(e){t.request_=null,t.metadata_=e,t.transition_(G)}),t.metadataErrorHandler_)}))},t.prototype.oneShotUpload_=function(){var t=this;this.resolveToken_((function(e){var n=function(t,e,n,r,i){var o=e.bucketOnlyServerUrl(),a={"X-Goog-Upload-Protocol":"multipart"},s=function(){for(var t="",e=0;e<2;e++)t+=Math.random().toString().slice(2);return t}();a["Content-Type"]="multipart/related; boundary="+s;var u=Bt(e,r,i),l="--"+s+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+St(u,n)+"\r\n--"+s+"\r\nContent-Type: "+u.contentType+"\r\n\r\n",c="\r\n--"+s+"--",f=dt.getBlob(l,r,c);if(null===f)throw C();var h={name:u.fullPath},d=yt(o),p=t.maxUploadRetryTime,v=new Nt(d,"POST",Pt(t,n),p);return v.urlParams=h,v.headers=a,v.body=f.uploadData(),v.errorHandler=Dt(e),v}(t.service_,t.location_,t.mappings_,t.blob_,t.metadata_),r=t.service_.makeRequest(n,e);t.request_=r,r.getPromise().then((function(e){t.request_=null,t.metadata_=e,t.updateProgress_(t.blob_.size()),t.transition_(G)}),t.errorHandler_)}))},t.prototype.updateProgress_=function(t){var e=this.transferred_;this.transferred_=t,this.transferred_!==e&&this.notifyObservers_()},t.prototype.transition_=function(t){if(this.state_!==t)switch(t){case K:case H:this.state_=t,null!==this.request_&&this.request_.cancel();break;case W:var e=this.state_===Y;this.state_=t,e&&(this.notifyObservers_(),this.start_());break;case Y:this.state_=t,this.notifyObservers_();break;case X:this.error_=A(),this.state_=t,this.notifyObservers_();break;case $:case G:this.state_=t,this.notifyObservers_()}},t.prototype.completeTransitions_=function(){switch(this.state_){case H:this.transition_(Y);break;case K:this.transition_(X);break;case W:this.start_()}},Object.defineProperty(t.prototype,"snapshot",{get:function(){var t=Q(this.state_);return new Yt(this.transferred_,this.blob_.size(),t,this.metadata_,this,this.ref_)}
2,enumerable:!1,configurable:!0}),t.prototype.on=function(t,e,n,r){function i(){if(t!==z.STATE_CHANGED)throw"Expected one of the event types: ["+z.STATE_CHANGED+"]."}var o="Expected a function or an Object with one of `next`, `error`, `complete` properties.",a=ee(!0).validator,s=te(null,!0).validator;function u(t){try{return void a(t)}catch(e){}try{if(s(t),!(tt(t.next)||tt(t.error)||tt(t.complete)))throw"";return}catch(e){throw o}}var l=[Xt(i),te(u,!0),ee(!0),ee(!0)];Gt("on",l,arguments);var c=this;function f(t){return function(e,n,i){null!==t&&Gt("on",t,arguments);var o=new Ht(e,n,r);return c.addObserver_(o),function(){c.removeObserver_(o)}}}function h(t){if(null===t)throw o;u(t)}var d=[te(h),ee(!0),ee(!0)],p=!(tt(e)||tt(n)||tt(r));return p?f(d):f(null)(e,n,r)},t.prototype.then=function(t,e){return this.promise_.then(t,e)},t.prototype.catch=function(t){return this.then(null,t)},t.prototype.addObserver_=function(t){this.observers_.push(t),this.notifyObserver_(t)},t.prototype.removeObserver_=function(t){var e=this.observers_.indexOf(t);-1!==e&&this.observers_.splice(e,1)},t.prototype.notifyObservers_=function(){var t=this;this.finishPromise_(),this.observers_.slice().forEach((function(e){t.notifyObserver_(e)}))},t.prototype.finishPromise_=function(){if(null!==this.resolve_){var t=!0;switch(Q(this.state_)){case Z.SUCCESS:ne(this.resolve_.bind(null,this.snapshot))();break;case Z.CANCELED:case Z.ERROR:ne(this.reject_.bind(null,this.error_))();break;default:t=!1}t&&(this.resolve_=null,this.reject_=null)}},t.prototype.notifyObserver_=function(t){switch(Q(this.state_)){case Z.RUNNING:case Z.PAUSED:t.next&&ne(t.next.bind(t,this.snapshot))();break;case Z.SUCCESS:t.complete&&ne(t.complete.bind(t))();break;case Z.CANCELED:case Z.ERROR:t.error&&ne(t.error.bind(t,this.error_))();break;default:t.error&&ne(t.error.bind(t,this.error_))()}},t.prototype.resume=function(){Gt("resume",[],arguments);var t=this.state_===Y||this.state_===H;return t&&this.transition_(W),t},t.prototype.pause=function(){Gt("pause",[],arguments);var t=this.state_===W;return t&&this.transition_(H),t},t.prototype.cancel=function(){Gt("cancel",[],arguments);var t=this.state_===W||this.state_===H;return t&&this.transition_(K),t},t}(),ie=function(){function t(t,e){this.service=t,this.location=e instanceof pt?e:pt.makeFromUrl(e)}return t.prototype.toString=function(){return Gt("toString",[],arguments),"gs://"+this.location.bucket+"/"+this.location.path},t.prototype.newRef=function(e,n){return new t(e,n)},t.prototype.mappings=function(){return Et()},t.prototype.child=function(t){Gt("child",[Xt()],arguments);var e=mt(this.location.path,t),n=new pt(this.location.bucket,e);return this.newRef(this.service,n)},Object.defineProperty(t.prototype,"parent",{get:function(){var t=function(t){if(0===t.length)return null;var e=t.lastIndexOf("/");return-1===e?"":t.slice(0,e)}(this.location.path);if(null===t)return null;var e=new pt(this.location.bucket,t);return this.newRef(this.service,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){var t=new pt(this.location.bucket,"");return this.newRef(this.service,t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bucket",{get:function(){return this.location.bucket},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullPath",{get:function(){return this.location.path},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return gt(this.location.path)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storage",{get:function(){return this.service},enumerable:!1,configurable:!0}),t.prototype.put=function(t,e){return void 0===e&&(e=null),Gt("put",[$t(),Zt(!0)],arguments),this.throwIfRoot_("put"),new re(this,this.service,this.location,this.mappings(),new dt(t),e)},t.prototype.putString=function(t,e,n){void 0===e&&(e=R.RAW),Gt("putString",[Xt(),Xt(L,!0),Zt(!0)],arguments),this.throwIfRoot_("putString");var r=F(e,t),i=Object.assign({},n);return!J(i.contentType)&&J(r.contentType)&&(i.contentType=r.contentType),new re(this,this.service,this.location,this.mappings(),new dt(r.data,!0),i)},t.prototype.delete=function(){var t=this;return Gt("delete",[],arguments),this.throwIfRoot_("delete"),this.service.getAuthToken().then((function(e){var n=qt(t.service,t.location);
2return t.service.makeRequest(n,e).getPromise()}))},t.prototype.listAll=function(){Gt("listAll",[],arguments);var t={prefixes:[],items:[]};return this.listAllHelper(t).then((function(){return t}))},t.prototype.listAllHelper=function(t,e){return Object(o.__awaiter)(this,void 0,void 0,(function(){var n,r,i,a;return Object(o.__generator)(this,(function(o){switch(o.label){case 0:return n={pageToken:e},[4,this.list(n)];case 1:return r=o.sent(),(i=t.prefixes).push.apply(i,r.prefixes),(a=t.items).push.apply(a,r.items),null==r.nextPageToken?[3,3]:[4,this.listAllHelper(t,r.nextPageToken)];case 2:o.sent(),o.label=3;case 3:return[2]}}))}))},t.prototype.list=function(t){Gt("list",[Qt(!0)],arguments);var e=this;return this.service.getAuthToken().then((function(n){var r=t||{},i=jt(e.service,e.location,"/",r.pageToken,r.maxResults);return e.service.makeRequest(i,n).getPromise()}))},t.prototype.getMetadata=function(){var t=this;return Gt("getMetadata",[],arguments),this.throwIfRoot_("getMetadata"),this.service.getAuthToken().then((function(e){var n=Lt(t.service,t.location,t.mappings());return t.service.makeRequest(n,e).getPromise()}))},t.prototype.updateMetadata=function(t){var e=this;return Gt("updateMetadata",[Zt()],arguments),this.throwIfRoot_("updateMetadata"),this.service.getAuthToken().then((function(n){var r=Ut(e.service,e.location,t,e.mappings());return e.service.makeRequest(r,n).getPromise()}))},t.prototype.getDownloadURL=function(){var t=this;return Gt("getDownloadURL",[],arguments),this.throwIfRoot_("getDownloadURL"),this.service.getAuthToken().then((function(e){var n=Ft(t.service,t.location,t.mappings());return t.service.makeRequest(n,e).getPromise().then((function(t){if(null===t)throw N();return t}))}))},t.prototype.throwIfRoot_=function(t){if(""===this.location.path)throw function(t){return new s(E,"The operation '"+t+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}(t)},t}(),oe=function(){function t(t){this.promise_=Promise.reject(t)}return t.prototype.getPromise=function(){return this.promise_},t.prototype.cancel=function(t){},t}();var ae=function(){function t(t,e,n,r,i,o,a,s,u,l,c){var f=this;this.pendingXhr_=null,this.backoffId_=null,this.resolve_=null,this.reject_=null,this.canceled_=!1,this.appDelete_=!1,this.url_=t,this.method_=e,this.headers_=n,this.body_=r,this.successCodes_=i.slice(),this.additionalRetryCodes_=o.slice(),this.callback_=a,this.errorCallback_=s,this.progressCallback_=l,this.timeout_=u,this.pool_=c,this.promise_=new Promise((function(t,e){f.resolve_=t,f.reject_=e,f.start_()}))}return t.prototype.start_=function(){var t=this;function e(e,n){var r,i=t.resolve_,o=t.reject_,a=n.xhr;if(n.wasSuccessCode)try{var u=t.callback_(a,a.getResponseText());tt(u)?i(u):i()}catch(l){o(l)}else null!==a?((r=O()).setServerResponseProp(a.getResponseText()),t.errorCallback_?o(t.errorCallback_(a,r)):o(r)):n.canceled?o(r=t.appDelete_?P():A()):o(r=new s(d,"Max retry time for operation exceeded, please try again."))}this.canceled_?e(0,new se(!1,null,!0)):this.backoffId_=function(t,e,n){var r=1,i=null,a=!1,s=0;function u(){return 2===s}var l=!1;function c(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];l||(l=!0,e.apply(null,t))}function f(e){i=setTimeout((function(){i=null,t(h,u())}),e)}function h(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!l)if(t)c.call.apply(c,Object(o.__spreadArrays)([null,t],e));else{var i,h=u()||a;if(h)c.call.apply(c,Object(o.__spreadArrays)([null,t],e));else r<64&&(r*=2),1===s?(s=2,i=0):i=1e3*(r+Math.random()),f(i)}}var d=!1;function p(t){d||(d=!0,l||(null!==i?(t||(s=2),clearTimeout(i),f(0)):t||(s=1)))}return f(0),setTimeout((function(){a=!0,p(!0)}),n),p}((function(e,n){if(n)e(!1,new se(!1,null,!0));else{var r=t.pool_.createXhrIo();t.pendingXhr_=r,null!==t.progressCallback_&&r.addUploadProgressListener(i),r.send(t.url_,t.method_,t.body_,t.headers_).then((function(n){null!==t.progressCallback_&&n.removeUploadProgressListener(i),t.pendingXhr_=null;var r=(n=n).getErrorCode()===V.NO_ERROR,o=n.getStatus();if(r&&!t.isRetryStatusCode_(o)){var a=-1!==t.successCodes_.indexOf(o);e(!0,new se(a,n))}else{var s=n.getErrorCode()===V.ABORT;e(!1,new se(!1,null,s))}}))}function i(e){var n=e.loaded,r=e.lengthComputable?e.total:-1;null!==t.progressCallback_&&t.progressCallback_(n,r)}}),e,this.timeout_)},t.prototype.getPromise=function(){return this.promise_},t.prototype.cancel=function(t){this.canceled_=!0,this.appDelete_=t||!1,null!==this.backoffId_&&(0,this.backoffId_)(!1),null!==this.pendingXhr_&&this.pendingXhr_.abort()},t.prototype.isRetryStatusCode_=function(t){var e=t>=500&&t<600,n=-1!==[408,429].indexOf(t),r=-1!==this.additionalRetryCodes_.indexOf(t);return e||n||r},t}(),se=function(t,e,n){this.wasSuccessCode=t,this.xhr=e,this.canceled=!!n};
2function ue(t,e,n,r){var o=bt(t.urlParams),a=t.url+o,s=Object.assign({},t.headers);return function(t,e){e&&(t["X-Firebase-GMPID"]=e)}(s,e),function(t,e){null!==e&&e.length>0&&(t.Authorization="Firebase "+e)}(s,n),function(t){var e="undefined"!==typeof i.a?i.a.SDK_VERSION:"AppManager";t["X-Firebase-Storage-Version"]="webjs/"+e}(s),new ae(a,t.method,s,t.body,t.successCodes,t.additionalRetryCodes,t.handler,t.errorHandler,t.timeout,t.progressCallback,r)}var le=function(){function t(e,n,r,i){var o;this.bucket_=null,this.appId_=null,this.deleted_=!1,this.app_=e,this.authProvider_=n,this.maxOperationRetryTime_=12e4,this.maxUploadRetryTime_=6e5,this.requests_=new Set,this.pool_=r,this.bucket_=null!=i?pt.makeFromBucketSpec(i):t.extractBucket_(null===(o=this.app_)||void 0===o?void 0:o.options),this.internals_=new ce(this)}return t.extractBucket_=function(t){var e=null===t||void 0===t?void 0:t.storageBucket;return null==e?null:pt.makeFromBucketSpec(e)},t.prototype.getAuthToken=function(){return Object(o.__awaiter)(this,void 0,void 0,(function(){var t,e;return Object(o.__generator)(this,(function(n){switch(n.label){case 0:return(t=this.authProvider_.getImmediate({optional:!0}))?[4,t.getToken()]:[3,2];case 1:if(null!==(e=n.sent()))return[2,e.accessToken];n.label=2;case 2:return[2,null]}}))}))},t.prototype.deleteApp=function(){this.deleted_=!0,this.app_=null,this.requests_.forEach((function(t){return t.cancel()})),this.requests_.clear()},t.prototype.makeStorageReference=function(t){return new ie(this,t)},t.prototype.makeRequest=function(t,e){var n=this;if(this.deleted_)return new oe(P());var r=ue(t,this.appId_,e,this.pool_);return this.requests_.add(r),r.getPromise().then((function(){return n.requests_.delete(r)}),(function(){return n.requests_.delete(r)})),r},t.prototype.ref=function(t){function e(t){if("string"!==typeof t)throw"Path is not a string.";if(/^[A-Za-z]+:\/\//.test(t))throw"Expected child path but got a URL, use refFromURL instead."}if(Gt("ref",[Xt(e,!0)],arguments),null==this.bucket_)throw new Error("No Storage Bucket defined in Firebase Options.");var n=new ie(this,this.bucket_);return null!=t?n.child(t):n},t.prototype.refFromURL=function(t){function e(t){if("string"!==typeof t)throw"Path is not a string.";if(!/^[A-Za-z]+:\/\//.test(t))throw"Expected full URL but got a child path, use ref instead.";try{pt.makeFromUrl(t)}catch(e){throw"Expected valid full URL but got an invalid one."}}return Gt("refFromURL",[Xt(e,!1)],arguments),new ie(this,t)},Object.defineProperty(t.prototype,"maxUploadRetryTime",{get:function(){return this.maxUploadRetryTime_},enumerable:!1,configurable:!0}),t.prototype.setMaxUploadRetryTime=function(t){Gt("setMaxUploadRetryTime",[Jt()],arguments),this.maxUploadRetryTime_=t},Object.defineProperty(t.prototype,"maxOperationRetryTime",{get:function(){return this.maxOperationRetryTime_},enumerable:!1,configurable:!0}),t.prototype.setMaxOperationRetryTime=function(t){Gt("setMaxOperationRetryTime",[Jt()],arguments),this.maxOperationRetryTime_=t},Object.defineProperty(t.prototype,"app",{get:function(){return this.app_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"INTERNAL",{get:function(){return this.internals_},enumerable:!1,configurable:!0}),t}(),ce=function(){function t(t){this.service_=t}return t.prototype.delete=function(){return this.service_.deleteApp(),Promise.resolve()},t}();function fe(t,e){var n=t.getProvider("app").getImmediate(),r=t.getProvider("auth-internal");return new le(n,r,new ct,e)}!function(t){var e={TaskState:Z,TaskEvent:z,StringFormat:R,Storage:le,Reference:ie};t.INTERNAL.registerComponent(new a.Component("storage",fe,"PUBLIC").setServiceProps(e).setMultipleInstances(!0)),t.registerVersion("@firebase/storage","0.3.42")}(i.a)},function(t,e,n){"use strict";n.r(e);var r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|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|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|playsInl
2ine|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|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|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)-.*))$/,i=function(t){var e={};return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}((function(t){return r.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91}));e.default=i},,,,,function(t,e,n){"use strict";var r=n(13),i=n(17),o=n(14);n(1);function a(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var s=n(0),u=n.n(s),l=n(15),c=n.n(l),f=!1,h=u.a.createContext(null),d=function(t){function e(e,n){var r;r=t.call(this,e,n)||this;var i,o=n&&!n.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?o?(i="exited",r.appearStatus="entering"):i="entered":i=e.unmountOnExit||e.mountOnEnter?"unmounted":"exited",r.state={status:i},r.nextCallback=null,r}Object(o.a)(e,t),e.getDerivedStateFromProps=function(t,e){return t.in&&"unmounted"===e.status?{status:"exited"}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(e="entering"):"entering"!==n&&"entered"!==n||(e="exiting")}this.updateStatus(!1,e)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var t,e,n,r=this.props.timeout;return t=e=n=r,null!=r&&"number"!==typeof r&&(t=r.exit,e=r.enter,n=void 0!==r.appear?r.appear:e),{exit:t,enter:e,appear:n}},n.updateStatus=function(t,e){void 0===t&&(t=!1),null!==e?(this.cancelNextCallback(),"entering"===e?this.performEnter(t):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(t){var e=this,n=this.props.enter,r=this.context?this.context.
vendor: 4,446 bytes, line 2
2isMounting:t,i=this.props.nodeRef?[r]:[c.a.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),u=r?s.appear:s.enter;!t&&!n||f?this.safeSetState({status:"entered"},(function(){e.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:"entering"},(function(){e.props.onEntering(o,a),e.onTransitionEnd(u,(function(){e.safeSetState({status:"entered"},(function(){e.props.onEntered(o,a)}))}))})))},n.performExit=function(){var t=this,e=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:c.a.findDOMNode(this);e&&!f?(this.props.onExit(r),this.safeSetState({status:"exiting"},(function(){t.props.onExiting(r),t.onTransitionEnd(n.exit,(function(){t.safeSetState({status:"exited"},(function(){t.props.onExited(r)}))}))}))):this.safeSetState({status:"exited"},(function(){t.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},n.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,e.nextCallback=null,t(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(t,e){this.setNextCallback(e);var n=this.props.nodeRef?this.props.nodeRef.current:c.a.findDOMNode(this),r=null==t&&!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!=t&&setTimeout(this.nextCallback,t)}else setTimeout(this.nextCallback,0)},n.render=function(){var t=this.state.status;if("unmounted"===t)return null;var e=this.props,n=e.children,r=(e.in,e.mountOnEnter,e.unmountOnExit,e.appear,e.enter,e.exit,e.timeout,e.addEndListener,e.onEnter,e.onEntering,e.onEntered,e.onExit,e.onExiting,e.onExited,e.nodeRef,Object(i.a)(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return u.a.createElement(h.Provider,{value:null},"function"===typeof n?n(t,r):u.a.cloneElement(u.a.Children.only(n),r))},e}(u.a.Component);function p(){}d.contextType=h,d.propTypes={},d.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:p,onEntering:p,onEntered:p,onExit:p,onExiting:p,onExited:p},d.UNMOUNTED="unmounted",d.EXITED="exited",d.ENTERING="entering",d.ENTERED="entered",d.EXITING="exiting";var v=d,m=function(t,e){return t&&e&&e.split(" ").forEach((function(e){return r=e,void((n=t).classList?n.classList.remove(r):"string"===typeof n.className?n.className=a(n.className,r):n.setAttribute("class",a(n.className&&n.className.baseVal||"",r)));var n,r}))},g=function(t){function e(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},e.onEnter=function(t,n){var r=e.resolveArguments(t,n),i=r[0],o=r[1];e.removeClasses(i,"exit"),e.addClass(i,o?"appear":"enter","base"),e.props.onEnter&&e.props.onEnter(t,n)},e.onEntering=function(t,n){var r=e.resolveArguments(t,n),i=r[0],o=r[1]?"appear":"enter";e.addClass(i,o,"active"),e.props.onEntering&&e.props.onEntering(t,n)},e.onEntered=function(t,n){var r=e.resolveArguments(t,n),i=r[0],o=r[1]?"appear":"enter";e.removeClasses(i,o),e.addClass(i,o,"done"),e.props.onEntered&&e.props.onEntered(t,n)},e.onExit=function(t){var n=e.resolveArguments(t)[0];e.removeClasses(n,"appear"),e.removeClasses(n,"enter"),e.addClass(n,"exit","base"),e.props.onExit&&e.props.onExit(t)},e.onExiting=function(t){var n=e.resolveArguments(t)[0];e.addClass(n,"exit","active"),e.props.onExiting&&e.props.onExiting(t)},e.onExited=function(t){var n=e.resolveArguments(t)[0];e.removeClasses(n,"exit"),e.addClass(n,"exit","done"),e.props.onExited&&e.props.onExited(t)},e.resolveArguments=function(t,n){return e.props.nodeRef?[e.props.nodeRef.current,t]:[t,n]},e.getClassNames=function(t){var n=e.props.classNames,r="string"===typeof n,i=r?""+(r&&n?n+"-":"")+t:n[t];return{baseClassName:i,activeClassName:r?i+"-active":n[t+"Active"],doneClassName:r?i+"-done":n[t+"Done"]}},e}Object(o.a)(e,t);var n=e.prototype;return n.addClass=function(t,e,n){var r=this.getClassNames(e)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===e&&"done"===n&&i&&(r+=" "+i),"active"===n&&t&&t.scrollTop,r&&(this.appliedClasse
2s[e][n]=r,function(t,e){t&&e&&e.split(" ").forEach((function(e){return r=e,void((n=t).classList?n.classList.add(r):function(t,e){return t.classList?!!e&&t.classList.contains(e):-1!==(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")}(n,r)||("string"===typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(t,r))},n.removeClasses=function(t,e){var n=this.appliedClasses[e],r=n.base,i=n.active,o=n.done;this.appliedClasses[e]={},r&&m(t,r),i&&m(t,i),o&&m(t,o)},n.render=function(){var t=this.props,e=(t.classNames,Object(i.a)(t,["classNames"]));return u.a.createElement(v,Object(r.a)({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},e}(u.a.Component);g.defaultProps={classNames:""},g.propTypes={};e.a=g}]]);
3//# sourceMappingURL=2.67144bb1.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.