PageSourceSearch

https://semana-meio-ambiente.web.app/static/js/2.5fbc6f5e.chunk.js

js semana-meio-ambiente.web.app collected 2026-10-03 12:35:24 UTC 832,764 bytes, 3 lines download raw bytes

1/*! For license information please see 2.5fbc6f5e.chunk.js.LICENSE.txt */
2(this["webpackJsonpsemana-meio-ambiente"]=this["webpackJsonpsemana-meio-ambiente"]||[]).push([[2],[function(t,e,n){"use strict";t.exports=n(95)},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";n.d(e,"a",(function(){return i}));var r=n(53);function i(t,e){if(null==t)return{};var n,i,o=Object(r.a)(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}},function(t,e,n){"use strict";function r(t){var e,n,i="";if(t)if("object"===typeof t)if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(n=r(t[e]))&&(i&&(i+=" "),i+=n);else for(e in t)t[e]&&(n=r(e))&&(i&&(i+=" "),i+=n);else"boolean"===typeof t||t.call||(i&&(i+=" "),i+=t);return i}e.a=function(){for(var t,e=0,n="";e<arguments.length;)(t=r(arguments[e++]))&&(n&&(n+=" "),n+=t);return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i,o=n(26),a=n(73),s=n(49),u=n(84),c=((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),l=new a.ErrorFactory("app","Firebase",c),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"),p=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 c=o.__values(this.firebase_.INTERNAL.components.values()),l=c.next();!l.done;l=c.next()){var f=l.value;this._addComponent(f)}}catch(h){r={error:h}}finally{try{l&&!l.done&&(i=c.return)&&i.call(c)}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},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!0,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 l.create("app-deleted",{appName:this.name_})},t}();p.prototype.name&&p.prototype.options||p.prototype.delete||console.log("dc");var d=function t(){var e=function(t){var e={}
2,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 l.create("bad-app-name",{appName:String(s)});if(a.contains(e,s))throw l.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(" "))}c(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 l.create("invalid-log-argument",{appName:name});u.setUserLogHandler(t,e)},apps:null,SDK_VERSION:"7.14.3",INTERNAL:{registerComponent:c,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 l.create("no-app",{appName:t});return e[t]}function c(s){var u,c,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 p=function(t){if(void 0===t&&(t=i()),"function"!==typeof t[f])throw l.create("invalid-app-argument",{appName:f});return t[f]()};void 0!==s.serviceProps&&a.deepExtend(p,s.serviceProps),r[f]=p,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 d=o.__values(Object.keys(e)),v=d.next();!v.done;v=d.next()){var y=v.value;e[y]._addComponent(s)}}catch(m){u={error:m}}finally{try{v&&!v.done&&(c=d.return)&&c.call(d)}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)}(p);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 y=self.firebase.SDK_VERSION;y&&y.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 m=d.initializeApp;d.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      '),m.apply(void 0,t)};var g=d;!function(t,e){t.INTERNAL.registerComponent(new s.Component("platform-logger",(function(t){return new v(t)}),"PRIVATE")),t.registerVersion("@firebase/app","0.6.3",e),t.registerVersion("fire-js","")}(g),e.default=g,e.firebase=g},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}}
2(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(106)()},function(t,e,n){"use strict";var r=n(1),i=n(2),o=n(0),a=n.n(o),s=(n(6),n(51)),u=n.n(s),c=n(133),l=n(163),f=n(92),h=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var o=e.defaultTheme,s=e.withTheme,h=void 0!==s&&s,p=e.name,d=Object(i.a)(e,["defaultTheme","withTheme","name"]);var v=p,y=Object(c.a)(t,Object(r.a)({defaultTheme:o,Component:n,name:p||n.displayName,classNamePrefix:v},d)),m=a.a.forwardRef((function(t,e){t.classes;var s,u=t.innerRef,c=Object(i.a)(t,["classes","innerRef"]),d=y(Object(r.a)(Object(r.a)({},n.defaultProps),t)),v=c;return("string"===typeof p||h)&&(s=Object(f.a)()||o,p&&(v=Object(l.a)({theme:s,name:p,props:c})),h&&!v.theme&&(v.theme=s)),a.a.createElement(n,Object(r.a)({ref:u||e,classes:d},v))}));return u()(m,n),m}},p=n(36);e.a=function(t,e){return h(t,Object(r.a)({defaultTheme:p.a},e))}},function(t,e,n){t.exports=n(99)},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(96)},function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return m})),n.d(e,"c",(function(){return w}));var r=n(12);function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var o=n(0),a=n.n(o),s=n(20);n(6);function u(){return(u=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 c(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}var l=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 i(e,t),e.prototype.render=function(){return a.a.createElement(r.c,{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},p=function(t,e){return"string"===typeof t?Object(s.c)(t,null,null,e):t},d=function(t){return t},v=a.a.forwardRef;"undefined"===typeof v&&(v=d);var y=v((function(t,e){var n=t.innerRef,r=t.navigate,i=t.onClick,o=c(t,["innerRef","navigate","onClick"]),s=o.target,l=u({},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 l.ref=d!==v&&e||n,a.a.createElement("a",l)}));var m=v((function(t,e){var n=t.component,i=void 0===n?y:n,o=t.replace,s=t.to,f=t.innerRef,m=c(t,["component","replace","to","innerRef"]);return a.a.createElement(r.e.Consumer,null,(function(t){t||Object(l.a)(!1);var n=t.history,r=p(h(s,t.location),t.location),c=r?n.createHref(r):"",y=u({},m,{href:c,navigate:function(){var e=h(s,t.location);(o?n.replace:n.push)(e)}});return d!==v?y.ref=e||f:y.innerRef=f,a.a.createElement(i,y)}))})),g=function(t){return t},b=a.a.forwardRef;"undefined"===typeof b&&(b=g);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,d=t.className,v=t.exact,y=t.isActive,w=t.location,E=t.sensitive,T=t.strict,_=t.style,k=t.to,I=t.innerRef,x=c(t,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return a.a.createElement(r.e.Consumer,null,(function(t){t||Object(l.a)(!1);var n=w||t.location,o=p(h(k,n),n),c=o.pathname,S=c&&c.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),O=S?Object(r.f)(n.pathname,{path:S,exact:v,sensitive:E,strict:T}):null,A=!!(y?y(O,n):O),N=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(" ")}(d,s):d,C=A?u({},_,{},f):_,P=u({"aria-current":A&&i||null,className:N,style:C,to:o},x);return g!==b?P.ref=e||I:P.innerRef=I,a.a.createElement(m,P)}))}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}
2));var r=n(0),i=n(29);function o(t,e){return r.useMemo((function(){return null==t&&null==e?null:function(n){Object(i.a)(t,n),Object(i.a)(e,n)}}),[t,e])}},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 w})),n.d(e,"b",(function(){return k})),n.d(e,"c",(function(){return v})),n.d(e,"d",(function(){return N})),n.d(e,"e",(function(){return d})),n.d(e,"f",(function(){return _})),n.d(e,"g",(function(){return P})),n.d(e,"h",(function(){return R}));var i=n(0),o=n.n(i),a=(n(6),n(20)),s=n(75),u=n(18);function c(){return(c=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)}var l=n(77),f=n.n(l);n(40);function h(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(51);var p=function(t){var e=Object(s.a)();return e.displayName=t,e}("Router-History"),d=function(t){var e=Object(s.a)();return e.displayName=t,e}("Router"),v=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}r(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._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return o.a.createElement(d.Provider,{value:{history:this.props.history,location:this.state.location,match:e.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},o.a.createElement(p.Provider,{children:this.props.children||null,value:this.props.history}))},e}(o.a.Component);o.a.Component;var y=function(t){function e(){return t.apply(this,arguments)||this}r(e,t);var n=e.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(t){this.props.onUpdate&&this.props.onUpdate.call(this,this,t)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},e}(o.a.Component);var m={},g=0;function b(t,e){return void 0===t&&(t="/"),void 0===e&&(e={}),"/"===t?t:function(t){if(m[t])return m[t];var e=f.a.compile(t);return g<1e4&&(m[t]=e,g++),e}(t)(e,{pretty:!0})}function w(t){var e=t.computedMatch,n=t.to,r=t.push,i=void 0!==r&&r;return o.a.createElement(d.Consumer,null,(function(t){t||Object(u.a)(!1);var r=t.history,s=t.staticContext,l=i?r.push:r.replace,f=Object(a.c)(e?"string"===typeof n?b(n,e.params):c({},n,{pathname:b(n.pathname,e.params)}):n);return s?(l(f),null):o.a.createElement(y,{onMount:function(){l(f)},onUpdate:function(t,e){var n=Object(a.c)(e.to);Object(a.f)(n,c({},f,{key:n.key}))||l(f)},to:n})}))}var E={},T=0;function _(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,c=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=E[n]||(E[n]={});if(r[t])return r[t];var i=[],o={regexp:f()(t,i,e),keys:i};return T<1e4&&(r[t]=o,T++),o}(n,{end:o,strict:s,sensitive:c}),i=r.regexp,a=r.keys,u=i.exec(t);if(!u)return null;var l=u[0],h=u.slice(1),p=t===l;return o&&!p?null:{path:n,url:"/"===n&&""===l?"/":l,isExact:p,params:a.reduce((function(t,e,n){return t[e.name]=h[n],t}),{})}}),null)}var k=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e.prototype.render=function(){var t=this;return o.a.createElement(d.Consumer,null,(function(e){e||Object(u.a)(!1);var n=t.props.location||e.location,r=c({},e,{location:n,match:t.props.computedMatch?t.props.computedMatch:t.props.path?_(n.pathname,t.props):e.match}
2),i=t.props,a=i.children,s=i.component,l=i.render;return Array.isArray(a)&&0===a.length&&(a=null),o.a.createElement(d.Provider,{value:r},r.match?a?"function"===typeof a?a(r):a:s?o.a.createElement(s,r):l?l(r):null:"function"===typeof a?a(r):null)}))},e}(o.a.Component);function I(t){return"/"===t.charAt(0)?t:"/"+t}function x(t,e){if(!t)return e;var n=I(t);return 0!==e.pathname.indexOf(n)?e:c({},e,{pathname:e.pathname.substr(n.length)})}function S(t){return"string"===typeof t?t:Object(a.e)(t)}function O(t){return function(){Object(u.a)(!1)}}function A(){}o.a.Component;var N=function(t){function e(){return t.apply(this,arguments)||this}return r(e,t),e.prototype.render=function(){var t=this;return o.a.createElement(d.Consumer,null,(function(e){e||Object(u.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?_(i.pathname,c({},t.props,{path:a})):e.match}})),r?o.a.cloneElement(n,{location:i,computedMatch:r}):null}))},e}(o.a.Component);var C=o.a.useContext;function P(){return C(p)}function R(){var t=C(d).match;return t?t.params:{}}},,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(c){return void n(c)}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,"b",(function(){return r})),n.d(e,"a",(function(){return i}));var r=function(t){return t.scrollTop};function i(t,e){var n=t.timeout,r=t.style,i=void 0===r?{}:r;return{duration:i.transitionDuration||"number"===typeof n?n:n[e.mode]||0,delay:i.transitionDelay}}},function(t,e,n){"use strict";function r(t){return t&&t.ownerDocument||document}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"b",(function(){return o}));var r=n(2),i={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},o={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function a(t){return"".concat(Math.round(t),"ms")}e.a={easing:i,duration:o,create:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.duration,s=void 0===n?o.standard:n,u=e.easing,c=void 0===u?i.easeInOut:u,l=e.delay,f=void 0===l?0:l;Object(r.a)(e,["duration","easing","delay"]);return(Array.isArray(t)?t:[t]).map((function(t){return"".concat(t," ").concat("string"===typeof s?s:a(s)," ").concat(c," ").concat("string"===typeof f?f:a(f))})).join(",")},getAutoHeightDuration:function(t){if(!t)return 0;var e=t/36;return Math.round(10*(4+15*Math.pow(e,.25)+e/5))}}},function(t,e,n){"use strict";e.a=function(t,e){if(!t)throw new Error("Invariant failed")}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(92),i=(n(0),n(36));function o(){return Object(r.a)()||i.a}},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)}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()}n.d(e,"a",(function(){return E})),n.d(e,"b",(function(){return x})),n.d(e,"d",(function(){return O})),n.d(e,"c",(function(){return v})),n.d(e,"f",(function(){return y})),n.d(e,"e",(function(){return d}));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),c=s||u;if(t&&i(t)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){var l=a[a.length-1];n="."===l||".."===l||""===l}else n=!1;for(var f=0,h=a.length;h>=0;h--){var p=a[h];"."===p?o(a,h):".."===p?(o(a,h),f++):f&&(o(a,h),f--)}if(!c)for(;f--;f)a.unshift("..");!c||""===a[0]||a[0]&&i(a[0])||a.unshift("");var d=a.join("/");return n&&"/"!==d.substr(-1)&&(d+="/"),d};function s(t){return t.valueOf?t.valueOf():Object.prototype.valueOf.call(t)}var u=function t(e,n){if(e===n)return!0;
vendor: 5,464 bytes, line 2
2if(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},c=n(18);function l(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 p(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function d(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=r({},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 y(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 m(){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)}))}}}var g=!("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 E(t){void 0===t&&(t={}),g||Object(c.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,y=o.keyLength,E=void 0===y?6:y,T=t.basename?p(l(t.basename)):"";function _(t){var e=t||{},n=e.key,r=e.state,i=window.location,o=i.pathname+i.search+i.hash;return T&&(o=h(o,T)),v(o,r,n)}function k(){return Math.random().toString(36).substr(2,E)}var I=m();function x(t){r(U,t),U.length=e.length,I.notifyListeners(U.location,U.action)}function S(t){(function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")})(t)||N(_(t.state))}function O(){N(_(w()))}var A=!1;function N(t){if(A)A=!1,x();else{I.confirmTransitionTo(t,"POP",f,(function(e){e?x({action:"POP",location:t}):function(t){var e=U.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&&(A=!0,j(i))}(t)}))}}var C=_(w()),P=[C.key];function R(t){return T+d(t)}function j(t){e.go(t)}var D=0;function L(t){1===(D+=t)&&1===t?(window.addEventListener("popstate",S),i&&window.addEventListener("hashchange",O)):0===D&&(window.removeEventListener("popstate",S),i&&window.removeEventListener("hashchange",O))}var M=!1;var U={length:e.length,action:"POP",location:C,createHref:R,push:function(t,r){var i=v(t,r,k(),U.location);I.confirmTransitionTo(i,"PUSH",f,(function(t){if(t){var r=R(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(U.location.key),c=P.slice(0,u+1);c.push(i.key),P=c,x({action:"PUSH",location:i})}else window.location.href=r}}))},replace:function(t,r){var i=v(t,r,k(),U.location);I.confirmTransitionTo(i,"REPLACE",f,(function(t){if(t){var r=R(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(U.location.key);-1!==u&&(P[u]=i.key),x({action:"REPLACE",location:i})}else window.location.replace(r)}}))},go:j,goBack:function(){j(-1)},goForward:function(){j(1)},block:function(t){void 0===t&&(t=!1);var e=I.setPrompt(t);return M||(L(1),M=!0),function(){return M&&(M=!1,L(-1)),e()}},listen:function(t){var e=I.appendListener(t);return L(1),function(){L(-1),e()}}};return U}var T={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:l},slash:{encodePath:l,decodePath:l}};function _(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 I(t){window.location.replace(_(window.location.href)+"#"+t)}function x(t){void 0===t&&(t={}
vendor: 4,206 bytes, line 2
2),g||Object(c.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?p(l(t.basename)):"",f=T[s],y=f.encodePath,w=f.decodePath;function E(){var t=w(k());return u&&(t=h(t,u)),v(t)}var x=m();function S(t){r(F,t),F.length=e.length,x.notifyListeners(F.location,F.action)}var O=!1,A=null;function N(){var t,e,n=k(),r=y(n);if(n!==r)I(r);else{var i=E(),a=F.location;if(!O&&(e=i,(t=a).pathname===e.pathname&&t.search===e.search&&t.hash===e.hash))return;if(A===d(i))return;A=null,function(t){if(O)O=!1,S();else{x.confirmTransitionTo(t,"POP",o,(function(e){e?S({action:"POP",location:t}):function(t){var e=F.location,n=j.lastIndexOf(d(e));-1===n&&(n=0);var r=j.lastIndexOf(d(t));-1===r&&(r=0);var i=n-r;i&&(O=!0,D(i))}(t)}))}}(i)}}var C=k(),P=y(C);C!==P&&I(P);var R=E(),j=[d(R)];function D(t){e.go(t)}var L=0;function M(t){1===(L+=t)&&1===t?window.addEventListener("hashchange",N):0===L&&window.removeEventListener("hashchange",N)}var U=!1;var F={length:e.length,action:"POP",location:R,createHref:function(t){var e=document.querySelector("base"),n="";return e&&e.getAttribute("href")&&(n=_(window.location.href)),n+"#"+y(u+d(t))},push:function(t,e){var n=v(t,void 0,void 0,F.location);x.confirmTransitionTo(n,"PUSH",o,(function(t){if(t){var e=d(n),r=y(u+e);if(k()!==r){A=e,function(t){window.location.hash=t}(r);var i=j.lastIndexOf(d(F.location)),o=j.slice(0,i+1);o.push(e),j=o,S({action:"PUSH",location:n})}else S()}}))},replace:function(t,e){var n=v(t,void 0,void 0,F.location);x.confirmTransitionTo(n,"REPLACE",o,(function(t){if(t){var e=d(n),r=y(u+e);k()!==r&&(A=e,I(r));var i=j.indexOf(d(F.location));-1!==i&&(j[i]=e),S({action:"REPLACE",location:n})}}))},go:D,goBack:function(){D(-1)},goForward:function(){D(1)},block:function(t){void 0===t&&(t=!1);var e=x.setPrompt(t);return U||(M(1),U=!0),function(){return U&&(U=!1,M(-1)),e()}},listen:function(t){var e=x.appendListener(t);return M(1),function(){M(-1),e()}}};return F}function S(t,e,n){return Math.min(Math.max(t,e),n)}function O(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,c=void 0===u?6:u,l=m();function f(t){r(w,t),w.length=w.entries.length,l.notifyListeners(w.location,w.action)}function h(){return Math.random().toString(36).substr(2,c)}var p=S(s,0,o.length-1),y=o.map((function(t){return v(t,void 0,"string"===typeof t?h():t.key||h())})),g=d;function b(t){var e=S(w.index+t,0,w.entries.length-1),r=w.entries[e];l.confirmTransitionTo(r,"POP",n,(function(t){t?f({action:"POP",location:r,index:e}):f()}))}var w={length:y.length,action:"POP",location:y[p],index:p,entries:y,createHref:g,push:function(t,e){var r=v(t,e,h(),w.location);l.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);l.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),l.setPrompt(t)},listen:function(t){return l.appendListener(t)}};return w}},function(t,e,n){"use strict";function r(t){return t.charAt(0).toUpperCase()+t.slice(1)}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(57);var i=n(35),o=n(58);function a(t,e){return Object(r.a)(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)||Object(i.a)(t,e)||Object(o.a)()}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}
2));var r=n(0),i="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;function o(t){var e=r.useRef(t);return i((function(){e.current=t})),r.useCallback((function(){return e.current.apply(void 0,arguments)}),[])}},function(t,e,n){"use strict";e.a=function(t,e){}},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 c})),n.d(e,"__awaiter",(function(){return l})),n.d(e,"__generator",(function(){return f})),n.d(e,"__exportStar",(function(){return h})),n.d(e,"__values",(function(){return p})),n.d(e,"__read",(function(){return d})),n.d(e,"__spread",(function(){return v})),n.d(e,"__spreadArrays",(function(){return y})),n.d(e,"__await",(function(){return m})),n.d(e,"__asyncGenerator",(function(){return g})),n.d(e,"__asyncDelegator",(function(){return b})),n.d(e,"__asyncValues",(function(){return w}
2)),n.d(e,"__makeTemplateObject",(function(){return E})),n.d(e,"__importStar",(function(){return T})),n.d(e,"__importDefault",(function(){return _})),n.d(e,"__classPrivateFieldGet",(function(){return k})),n.d(e,"__classPrivateFieldSet",(function(){return I}));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 c(t,e){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(t,e)}function l(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 p(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 d(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(d(arguments[e]));return t}function y(){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 m(t){return this instanceof m?(this.v=t,this):new m(t)}function g(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 m?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(r){l(o[0][3],r)}var n}function u(t){s("next",t)}function c(t){s("throw",t)}function l(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:m(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=p(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 E(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function T(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 _(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 I(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";var r=n(74);
2Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(0)),o=(0,r(n(85)).default)(i.default.createElement("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");e.default=o},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(44);var i=n(55),o=n(35);function a(t){return function(t){if(Array.isArray(t))return Object(r.a)(t)}(t)||Object(i.a)(t)||Object(o.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(t,e,n){"use strict";function r(t,e){"function"===typeof t?t(e):t&&(t.current=e)}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(e,t),n)}function i(t){if(t.type)return t;if("#"===t.charAt(0))return i(function(t){t=t.substr(1);var e=new RegExp(".{1,".concat(t.length>=6?2:1,"}"),"g"),n=t.match(e);return n&&1===n[0].length&&(n=n.map((function(t){return t+t}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(t,e){return e<3?parseInt(t,16):Math.round(parseInt(t,16)/255*1e3)/1e3})).join(", "),")"):""}(t));var e=t.indexOf("("),n=t.substring(0,e);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(["Material-UI: Unsupported `".concat(t,"` color."),"We support the following formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()."].join("\n"));var r=t.substring(e+1,t.length-1).split(",");return{type:n,values:r=r.map((function(t){return parseFloat(t)}))}}function o(t){var e=t.type,n=t.values;return-1!==e.indexOf("rgb")?n=n.map((function(t,e){return e<3?parseInt(t,10):t})):-1!==e.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(e,"(").concat(n.join(", "),")")}function a(t,e){var n=s(t),r=s(e);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function s(t){var e="hsl"===(t=i(t)).type?i(function(t){var e=(t=i(t)).values,n=e[0],r=e[1]/100,a=e[2]/100,s=r*Math.min(a,1-a),u=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(t+n/30)%12;return a-s*Math.max(Math.min(e-3,9-e,1),-1)},c="rgb",l=[Math.round(255*u(0)),Math.round(255*u(8)),Math.round(255*u(4))];return"hsla"===t.type&&(c+="a",l.push(e[3])),o({type:c,values:l})}(t)).values:t.values;return e=e.map((function(t){return(t/=255)<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)})),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function u(t,e){return t=i(t),e=r(e),"rgb"!==t.type&&"hsl"!==t.type||(t.type+="a"),t.values[3]=e,o(t)}function c(t,e){if(t=i(t),e=r(e),-1!==t.type.indexOf("hsl"))t.values[2]*=1-e;else if(-1!==t.type.indexOf("rgb"))for(var n=0;n<3;n+=1)t.values[n]*=1-e;return o(t)}function l(t,e){if(t=i(t),e=r(e),-1!==t.type.indexOf("hsl"))t.values[2]+=(100-t.values[2])*e;else if(-1!==t.type.indexOf("rgb"))for(var n=0;n<3;n+=1)t.values[n]+=(255-t.values[n])*e;return o(t)}n.d(e,"c",(function(){return a})),n.d(e,"b",(function(){return u})),n.d(e,"a",(function(){return c})),n.d(e,"d",(function(){return l}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(43);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";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 r(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 i(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(44);function i(t,e){if(t){if("string"===typeof t)return Object(r.a)(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(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(t,e):void 0}}},function(t,e,n){"use strict";var r=n(66),i=Object(r.a)();e.a=i},function(t,e,n){"use strict";function r(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 i(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";var r=n(0),i=n.n(r);e.a=i.a.createContext(null)},function(t,e,n){"use strict";var r=n(0),i=r.createContext({});e.a=i},function(t,e,n){"use strict";
2t.exports=n(109)},function(t,e,n){"use strict";function r(t){return(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})(t)}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return 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 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}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.reduce((function(t,e){return null==e?t:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t.apply(this,r),e.apply(this,r)}}),(function(){}))}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return f})),n.d(e,"c",(function(){return h}));var r=n(0),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},o=r.createContext&&r.createContext(i),a=function(){return(a=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)},s=function(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&&(n[r[i]]=t[r[i]])}return n};function u(t){return function(e){return r.createElement(c,a({attr:a({},t.attr)},e),function t(e){return e&&e.map((function(e,n){return r.createElement(e.tag,a({key:n},e.attr),t(e.child))}))}(t.child))}}function c(t){var e=function(e){var n,i=t.size||e.size||"1em";e.className&&(n=e.className),t.className&&(n=(n?n+" ":"")+t.className);var o=t.attr,u=t.title,c=s(t,["attr","title"]);return r.createElement("svg",a({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},e.attr,o,c,{className:n,style:a({color:t.color||e.color},e.style,t.style),height:i,width:i,xmlns:"http://www.w3.org/2000/svg"}),u&&r.createElement("title",null,u),t.children)};return void 0!==o?r.createElement(o.Consumer,null,(function(t){return e(t)})):e(i)}var l=function(t){return u({tag:"svg",attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M402.6 83.2l90.2 90.2c3.8 3.8 3.8 10 0 13.8L274.4 405.6l-92.8 10.3c-12.4 1.4-22.9-9.1-21.5-21.5l10.3-92.8L388.8 83.2c3.8-3.8 10-3.8 13.8 0zm162-22.9l-48.8-48.8c-15.2-15.2-39.9-15.2-55.2 0l-35.4 35.4c-3.8 3.8-3.8 10 0 13.8l90.2 90.2c3.8 3.8 10 3.8 13.8 0l35.4-35.4c15.2-15.3 15.2-40 0-55.2zM384 346.2V448H64V128h229.8c3.2 0 6.2-1.3 8.5-3.5l40-40c7.6-7.6 2.2-20.5-8.5-20.5H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V306.2c0-10.7-12.9-16-20.5-8.5l-40 40c-2.2 2.3-3.5 5.3-3.5 8.5z"}}]})(t)};l.displayName="FaEdit";var f=function(t){return u({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"}}]})(t)};f.displayName="FaPlus";var h=function(t){return u({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32z"}}]})(t)};h.displayName="FaTrash"},,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){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0});var r=n(26),i=n(73),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],c=this.normalizeInstanceIdentifier(s);try{var l=this.getOrInitializeService(c);u.resolve(l)}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";function r(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";var r=n(40),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 c=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,d=Object.prototype;
2t.exports=function t(e,n,r){if("string"!==typeof n){if(d){var i=p(n);i&&i!==d&&t(e,i,r)}var a=l(n);f&&(a=a.concat(f(n)));for(var s=u(e),v=u(n),y=0;y<a.length;++y){var m=a[y];if(!o[m]&&(!r||!r[m])&&(!v||!v[m])&&(!s||!s[m])){var g=h(n,m);try{c(e,m,g)}catch(b){}}}}return e}},,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";var r=n(0),i=n.n(r).a.createContext(null);e.a=i},function(t,e,n){"use strict";function r(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";var r="function"===typeof Symbol&&Symbol.for;e.a=r?Symbol.for("mui.nested"):"__THEME_NESTED__"},function(t,e,n){"use strict";function r(t){if(Array.isArray(t))return t}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";function r(){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 r}))},function(t,e,n){"use strict";e.a={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},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";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 r(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=this,s=function(){t.apply(a,i)};clearTimeout(e),e=setTimeout(s,n)}return r.clear=function(){clearTimeout(e)},r}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(16);function i(t){return Object(r.a)(t).defaultView||window}},function(t,e,n){"use strict";function r(){var t=document.createElement("div");t.style.width="99px",t.style.height="99px",t.style.position="absolute",t.style.top="-9999px",t.style.overflow="scroll",document.body.appendChild(t);var e=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),e}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";var r=n(0),i=r.createContext({});e.a=i},function(t,e,n){"use strict";var r=n(32),i=n(2),o=n(132),a=n(1),s=["xs","sm","md","lg","xl"];function u(t){var e=t.values,n=void 0===e?{xs:0,sm:600,md:960,lg:1280,xl:1920}:e,r=t.unit,o=void 0===r?"px":r,u=t.step,c=void 0===u?5:u,l=Object(i.a)(t,["values","unit","step"]);function f(t){var e="number"===typeof n[t]?n[t]:t;return"@media (min-width:".concat(e).concat(o,")")}function h(t,e){var r=s.indexOf(e);return r===s.length-1?f(t):"@media (min-width:".concat("number"===typeof n[t]?n[t]:t).concat(o,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[s[r+1]]?n[s[r+1]]:e)-c/100).concat(o,")")}return Object(a.a)({keys:s,values:n,up:f,down:function(t){var e=s.indexOf(t)+1,r=n[s[e]];return e===s.length?f("xs"):"@media (max-width:".concat(("number"===typeof r&&e>0?r:t)-c/100).concat(o,")")},between:h,only:function(t){return h(t,t)},width:function(t){return n[t]}},l)}function c(t,e,n){var i;return Object(a.a)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(a.a)(Object(a.a)({paddingLeft:e(2),paddingRight:e(2)},n),{},Object(r.a)({},t.up("sm"),Object(a.a)({paddingLeft:e(3),paddingRight:e(3)},n[t.up("sm")])))},toolbar:(i={minHeight:56},Object(r.a)(i,"".concat(t.up("xs")," and (orientation: landscape)"),{minHeight:48}),Object(r.a)(i,t.up("sm"),{minHeight:64}),i)},n)}var l={black:"#000",white:"#fff"},f={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},h={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},p={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},d={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},v={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},y={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},m={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},g=n(30),b={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:l.white,default:f[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackgroun
2d:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},w={text:{primary:l.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:f[800],default:"#303030"},action:{active:l.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function E(t,e,n,r){var i=r.light||r,o=r.dark||1.5*r;t[e]||(t.hasOwnProperty(n)?t[e]=t[n]:"light"===e?t.light=Object(g.d)(t.main,i):"dark"===e&&(t.dark=Object(g.a)(t.main,o)))}function T(t){var e=t.primary,n=void 0===e?{light:h[300],main:h[500],dark:h[700]}:e,r=t.secondary,s=void 0===r?{light:p.A200,main:p.A400,dark:p.A700}:r,u=t.error,c=void 0===u?{light:d[300],main:d[500],dark:d[700]}:u,T=t.warning,_=void 0===T?{light:v[300],main:v[500],dark:v[700]}:T,k=t.info,I=void 0===k?{light:y[300],main:y[500],dark:y[700]}:k,x=t.success,S=void 0===x?{light:m[300],main:m[500],dark:m[700]}:x,O=t.type,A=void 0===O?"light":O,N=t.contrastThreshold,C=void 0===N?3:N,P=t.tonalOffset,R=void 0===P?.2:P,j=Object(i.a)(t,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function D(t){return Object(g.c)(t,w.text.primary)>=C?w.text.primary:b.text.primary}var L=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(t=Object(a.a)({},t)).main&&t[e]&&(t.main=t[e]),!t.main)throw new Error(["Material-UI: The color provided to augmentColor(color) is invalid.","The color object needs to have a `main` property or a `".concat(e,"` property.")].join("\n"));if("string"!==typeof t.main)throw new Error(["Material-UI: The color provided to augmentColor(color) is invalid.","`color.main` should be a string, but `".concat(JSON.stringify(t.main),"` was provided instead."),"","Did you intend to use one of the following approaches?","",'import {\xa0green } from "@material-ui/core/colors";',"","const theme1 = createMuiTheme({ palette: {","  primary: green,","} });","","const theme2 = createMuiTheme({ palette: {","  primary: { main: green[500] },","} });"].join("\n"));return E(t,"light",n,R),E(t,"dark",r,R),t.contrastText||(t.contrastText=D(t.main)),t},M={dark:w,light:b};return Object(o.a)(Object(a.a)({common:l,type:A,primary:L(n),secondary:L(s,"A400","A200","A700"),error:L(c),warning:L(_),info:L(I),success:L(S),grey:f,contrastThreshold:C,getContrastText:D,augmentColor:L,tonalOffset:R},M[A]),j)}function _(t){return Math.round(1e5*t)/1e5}var k={textTransform:"uppercase"};function I(t,e){var n="function"===typeof e?e(t):e,r=n.fontFamily,s=void 0===r?'"Roboto", "Helvetica", "Arial", sans-serif':r,u=n.fontSize,c=void 0===u?14:u,l=n.fontWeightLight,f=void 0===l?300:l,h=n.fontWeightRegular,p=void 0===h?400:h,d=n.fontWeightMedium,v=void 0===d?500:d,y=n.fontWeightBold,m=void 0===y?700:y,g=n.htmlFontSize,b=void 0===g?16:g,w=n.allVariants,E=n.pxToRem,T=Object(i.a)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var I=c/14,x=E||function(t){return"".concat(t/b*I,"rem")},S=function(t,e,n,r,i){return Object(a.a)(Object(a.a)(Object(a.a)({fontFamily:s,fontWeight:t,fontSize:x(e),lineHeight:n},'"Roboto", "Helvetica", "Arial", sans-serif'===s?{letterSpacing:"".concat(_(r/e),"em")}:{}),i),w)},O={h1:S(f,96,1.167,-1.5),h2:S(f,60,1.2,-.5),h3:S(p,48,1.167,0),h4:S(p,34,1.235,.25),h5:S(p,24,1.334,0),h6:S(v,20,1.6,.15),subtitle1:S(p,16,1.75,.15),subtitle2:S(v,14,1.57,.1),body1:S(p,16,1.5,.15),body2:S(p,14,1.43,.15),button:S(v,14,1.75,.4,k),caption:S(p,12,1.66,.4),overline:S(p,12,2.66,1,k)};return Object(o.a)(Object(a.a)({htmlFontSize:b,pxToRem:x,round:_,fontFamily:s,fontSize:c,fontWeightLight:f,fontWeightRegular:p,fontWeightMedium:v,fontWeightBold:m},O),T,{clone:!1})}function x(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var S=["none",x(0,2,1,-1,0,1,1,0,0,1,3,0),x(0,3,1,-2,0,2,2,0,0,1,5,0),x(0,3,3,-2,0,3,4,0,0,1,8,0),x(0,2,4,-1,0,4,5,0,0,1,10,0),x(0,3,5,-1,0,5,8,0,0,1,14,0),x(0,3,5,-1,0,6,10,0,0,1,18,0),x(0,4,5,-2,0,7,10,1,0,2,16,1),x(0,5,5,-3,0,8,10,1,0,3,14,2),x(0,5,6,-3,0,9,12,1,0,3,16,2),x(0,6,6,-3,0,10,14,1,0,4,18,3),x(0,6,7,-4,0,11,15,1,0,4,20,3),x(0,7,8,-4,0,12,17,2,0,5,22,4),x(0,7,8,-4,0,13,19,2,0,5,24,4),x(0,7,9,-4,0,14,21,2,0,5,26,4),x(0,8,9,-5,0,15,22,2,0,6,28,5),x(0,8,10,-5,0,16,24,2,0,6,30,5),x(0,8,11,-5,0,17,26,2,0,6,32,5),x(0,9,11,-5,0,18,28,2,0,7,34,6),x(0,9,12,-6,0,19,29,2,0,7,36,6
2),x(0,10,13,-6,0,20,31,3,0,8,38,7),x(0,10,13,-6,0,21,33,3,0,8,40,7),x(0,10,14,-6,0,22,35,3,0,8,42,7),x(0,11,14,-7,0,23,36,3,0,9,44,8),x(0,11,15,-7,0,24,38,3,0,9,46,8)],O={borderRadius:4},A=n(22),N=(n(28),n(41));n(6);var C=function(t,e){return e?Object(o.a)(t,e,{clone:!1}):t},P={xs:0,sm:600,md:960,lg:1280,xl:1920},R={keys:["xs","sm","md","lg","xl"],up:function(t){return"@media (min-width:".concat(P[t],"px)")}};var j={m:"margin",p:"padding"},D={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},L={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},M=function(t){var e={};return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}((function(t){if(t.length>2){if(!L[t])return[t];t=L[t]}var e=t.split(""),n=Object(A.a)(e,2),r=n[0],i=n[1],o=j[r],a=D[i]||"";return Array.isArray(a)?a.map((function(t){return o+t})):[o+a]})),U=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function F(t){var e=t.spacing||8;return"number"===typeof e?function(t){return e*t}:Array.isArray(e)?function(t){return e[t]}:"function"===typeof e?e:function(){}}function V(t,e){return function(n){return t.reduce((function(t,r){return t[r]=function(t,e){if("string"===typeof e)return e;var n=t(Math.abs(e));return e>=0?n:"number"===typeof n?-n:"-".concat(n)}(e,n),t}),{})}}function B(t){var e=F(t.theme);return Object.keys(t).map((function(n){if(-1===U.indexOf(n))return null;var r=V(M(n),e),i=t[n];return function(t,e,n){if(Array.isArray(e)){var r=t.theme.breakpoints||R;return e.reduce((function(t,i,o){return t[r.up(r.keys[o])]=n(e[o]),t}),{})}if("object"===Object(N.a)(e)){var i=t.theme.breakpoints||R;return Object.keys(e).reduce((function(t,r){return t[i.up(r)]=n(e[r]),t}),{})}return n(e)}(t,i,r)})).reduce(C,{})}B.propTypes={},B.filterProps=U;function z(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var e=F({spacing:t}),n=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return 0===n.length?e(1):1===n.length?e(n[0]):n.map((function(t){if("string"===typeof t)return t;var n=e(t);return"number"===typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return t}}),n.mui=!0,n}var q=n(17),W=n(59);e.a=function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.breakpoints,n=void 0===e?{}:e,r=t.mixins,a=void 0===r?{}:r,s=t.palette,l=void 0===s?{}:s,f=t.spacing,h=t.typography,p=void 0===h?{}:h,d=Object(i.a)(t,["breakpoints","mixins","palette","spacing","typography"]),v=T(l),y=u(n),m=z(f),g=Object(o.a)({breakpoints:y,direction:"ltr",mixins:c(y,m,a),overrides:{},palette:v,props:{},shadows:S,typography:I(v,p),spacing:m,shape:O,transitions:q.a,zIndex:W.a},d),b=arguments.length,w=new Array(b>1?b-1:0),E=1;E<b;E++)w[E-1]=arguments[E];return g=w.reduce((function(t,e){return Object(o.a)(t,e)}),g)}},function(t,e,n){"use strict";function r(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}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(34);function i(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&&Object(r.a)(t,e)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(42),i=n(50);function o(t){return(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})(t)}function a(t,e){return!e||"object"!==o(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return function(){var e,n=Object(r.a)(t);if(Object(i.a)()){var o=Object(r.a)(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return a(this,e)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(42),i=n(34);var o=n(50);function a(t,e,n){return(a=Object(o.a)()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&Object(i.a)(o,n.prototype),o}).apply(null,arguments)}function s(t){var e="function"===typeof Map?new Map:void 0;return(s=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!==typeof t)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof e){if(e.has(t))return e.get(t);e.set(t,o)}function o(){return a(t,arguments,Object(r.a)(this).constructor)}return o.prototype=Object.create(t.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Object(i.a)(o,t)})(t)}},,,function(t,e,n){"use strict";
2(function(t){Object.defineProperty(e,"__esModule",{value:!0});var r=n(26),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,c=u?t[i+2]:0,l=o>>2,f=(3&o)<<4|s>>4,h=(15&s)<<2|c>>6,p=63&c;u||(p=64,a||(h=64)),r.push(n[l],n[f],n[h],n[p])}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 c=o<<2|a>>4;if(r.push(c),64!==s){var l=a<<4&240|s>>2;if(r.push(l),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)}}},c=function(t){try{return u.decodeString(t,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};function l(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]=l(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:""}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,d.prototype.create),i}return r.__extends(e,t),e}(Error),d=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?v(o,r):"Error",s=this.serviceName+": "+a+" ("+i+").",u=new p(i,s),c=0,l=Object.keys(r);c<l.length;c++){var f=l[c];"_"!==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 v(t,e){return t.replace(y,(function(t,n){var r=e[n];return null!=r?r.toString():"<"+n+"?>"}))}var y=/\{\$([^}]+)}/g;function m(t){return JSON.parse(t)}var g=function(t){var e={},n={},r={},i="";try{var o=t.split(".");e=m(c(o[0])||""),n=m(c(o[1])||""),i=o[2],r=n.d||{},delete n.d}catch(a){}return{header:e,claims:n,data:r,signature:i}};var b=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],c=this.chain_[2],l=this.chain_[3],f=this.chain_[4];for(r=0;r<80;r++){r<40?r<20?(o=l^u&(c^l),a=1518500249):(o=u^c^l,a=1859775393):r<60?(o=u&c|l&(u|c),a=2400959708):(o=u^c^l,a=3395469782);i=(s<<5|s>>>27)+o+f+a+n[r]&4294967295;f=l,l=c,c=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]+c&4294967295,this.chain_[3]=this.chain_[3]+l&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 w=function(){function t(t,e){var n=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Prom
2ise.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=E),void 0===r.error&&(r.error=E),void 0===r.complete&&(r.complete=E);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 E(){}function T(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=d,e.FirebaseError=p,e.Sha1=b,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)}))}},e.base64=u,e.base64Decode=c,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 w(t,e);return n.subscribe.bind(n)},e.decode=g,e.deepCopy=function(t){return l(void 0,t)},e.deepExtend=l,e.errorPrefix=T,e.getUA=h,e.isAdmin=function(t){var e=g(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.isMobileCordova=function(){return"undefined"!==typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(h())},e.isNode=function(){try{return"[object process]"===Object.prototype.toString.call(t.process)}catch(e){return!1}},e.isNodeSdk=function(){return!0===i.NODE_CLIENT||!0===i.NODE_ADMIN},e.isReactNative=function(){return"object"===typeof navigator&&"ReactNative"===navigator.product},e.isUWP=function(){return h().indexOf("MSAppHost/")>=0},e.isValidFormat=function(t){var e=g(t).claims;return!!e&&"object"===typeof e&&e.hasOwnProperty("iat")},e.isValidTimestamp=function(t){var e=g(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=g(t).claims;return"object"===typeof e&&e.hasOwnProperty("iat")?e.iat:null},e.jsonEval=m,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.forEac
2h((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(T(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(T(t,e,r)+"must be a valid context object.")},e.validateNamespace=function(t,e,n,r){if((!r||n)&&"string"!==typeof n)throw new Error(T(t,e,r)+"must be a valid firebase namespace.")}}).call(this,n(48))},function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}}},function(t,e,n){"use strict";(function(t){var r=n(0),i=n.n(r),o=n(76),a=n(6),s=n.n(a),u="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof t?t:{};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)}))}}}var l=i.a.createContext||function(t,e){var n,i,a="__create-react-context-"+function(){var t="__global_unique_id__";return u[t]=(u[t]||0)+1}()+"__",l=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).emitter=c(e.props.value),e}Object(o.a)(n,t);var r=n.prototype;return r.getChildContext=function(){var t;return(t={})[a]=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}(r.Component);l.childContextTypes=((n={})[a]=s.a.object.isRequired,n);var f=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}Object(o.a)(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[a]&&this.context[a].on(this.onUpdate);var t=this.props.observedBits;this.observedBits=void 0===t||null===t?1073741823:t},r.componentWillUnmount=function(){this.context[a]&&this.context[a].off(this.onUpdate)},r.getValue=function(){return this.context[a]?this.context[a].get():t},r.render=function(){return(t=this.props.children,Array.isArray(t)?t[0]:t)(this.state.value);var t},n}(r.Component);return f.contextTypes=((i={})[a]=s.a.object,i),{Provider:l,Consumer:f}};e.a=l}).call(this,n(48))},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){var r=n(108);t.exports=p,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="",l=e&&e.delimiter||"/";null!=(n=i.exec(t));){var f=n[0],h=n[1],p=n.index;if(s+=t.slice(a,p),a=p+f.length,h)s+=h[1];else{var d=t[a],v=n[2],y=n[3],m=n[4],g=n[5],b=n[6],w=n[7];s&&(r.push(s),s="");var E=null!=v&&null!=d&&d!==v,T="+"===b||"*"===b,_="?"===b||"*"===b,k=n[2]||l,I=m||g;r.push({name:y||o++,prefix:v||"",delimiter:k,optional:_,repeat:T,partial:E,asterisk:!!w,pattern:I?c(I):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,c=0;c<t.length;c++){var l=t[c];if("string"!==typeof l){var f,h=s[l.name];if(null==h){if(l.optional){l.partial&&(o+=l.prefix);continue}throw new TypeError('Expected "'+l.name+'" to be defined')}if(r(h)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(h)+"`");if(0===h.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var p=0;p<h.length;p++){if(f=u(h[p]),!n[c].test(f))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(f)+"`");o+=(0===p?l.prefix:l.delimiter)+f}}else{if(f=l.asterisk?encodeURI(h).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})):u(h),!n[c].test(f))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+f+'"');o+=l.prefix+f}}else o+=l}return o}}function u(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function l(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 c=t[s];if("string"===typeof c)a+=u(c);else{var h=u(c.prefix),p="(?:"+c.pattern+")";e.push(c),c.repeat&&(p+="(?:"+h+p+")*"),a+=p=c.optional?c.partial?h+"("+p+")?":"(?:"+h+"("+p+"))?":h+"("+p+")"}}var d=u(n.delimiter||"/"),v=a.slice(-d.length)===d;
2return i||(a=(v?a.slice(0,-d.length):a)+"(?:"+d+"(?=$))?"),a+=o?"$":i&&v?"":"(?="+d+"|$)",l(new RegExp("^"+a,f(n)),e)}function p(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 l(t,e)}(t,e):r(t)?function(t,e,n){for(var r=[],i=0;i<t.length;i++)r.push(p(t[i],e,n).source);return l(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(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",(function(){return r}))},,,,,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),c=1;c<arguments.length;c++){for(var l in n=Object(arguments[c]))i.call(n,l)&&(u[l]=n[l]);if(r){s=r(n);for(var f=0;f<s.length;f++)o.call(n,s[f])&&(u[s[f]]=n[s[f]])}}return u}},function(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 p}));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,c=((i={})[o.DEBUG]="log",i[o.VERBOSE]="log",i[o.INFO]="info",i[o.WARN]="warn",i[o.ERROR]="error",i),l=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=c[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=l,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 assigned to `logLevel`");this._logLevel=t},enumerable:!0,configurable:!0}),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:!0,configurable:!0}),Object.defineProperty(t.prototype,"userLogHandler",{get:function(){return this._userLogHandler},set:function(t){this._userLogHandler=t},enumerable:!0,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){var e="string"===typeof t?s[t]:t;a.forEach((function(t){t.logLevel=e}))}function p(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=n(74);
2Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=o.default.memo(o.default.forwardRef((function(e,n){return o.default.createElement(a.default,(0,i.default)({ref:n},e),t)})));0;return n.muiName=a.default.muiName,n};var i=r(n(124)),o=r(n(0)),a=r(n(130))},function(t,e,n){"use strict";var r,i=(r=n(4))&&"object"===typeof r&&"default"in r?r.default:r;i.registerVersion("firebase","7.14.4","app"),t.exports=i},,,,,function(t,e,n){"use strict";var r=n(74);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(0)),o=(0,r(n(85)).default)(i.default.createElement("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");e.default=o},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(0),i=n.n(r),o=n(54);function a(){return i.a.useContext(o.a)}},,,function(t,e,n){"use strict";var r=n(83),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,c=i?Symbol.for("react.profiler"):60114,l=i?Symbol.for("react.provider"):60109,f=i?Symbol.for("react.context"):60110,h=i?Symbol.for("react.forward_ref"):60112,p=i?Symbol.for("react.suspense"):60113,d=i?Symbol.for("react.memo"):60115,v=i?Symbol.for("react.lazy"):60116,y="function"===typeof Symbol&&Symbol.iterator;function m(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 g={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||g}function E(){}function T(t,e,n){this.props=t,this.context=e,this.refs=b,this.updater=n||g}w.prototype.isReactComponent={},w.prototype.setState=function(t,e){if("object"!==typeof t&&"function"!==typeof t&&null!=t)throw Error(m(85));this.updater.enqueueSetState(this,t,e,"setState")},w.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},E.prototype=w.prototype;var _=T.prototype=new E;_.constructor=T,r(_,w.prototype),_.isPureReactComponent=!0;var k={current:null},I=Object.prototype.hasOwnProperty,x={key:!0,ref:!0,__self:!0,__source:!0};function S(t,e,n){var r,i={},a=null,s=null;
vendor: 9,549 bytes, line 2
2if(null!=e)for(r in void 0!==e.ref&&(s=e.ref),void 0!==e.key&&(a=""+e.key),e)I.call(e,r)&&!x.hasOwnProperty(r)&&(i[r]=e[r]);var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){for(var c=Array(u),l=0;l<u;l++)c[l]=arguments[l+2];i.children=c}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 O(t){return"object"===typeof t&&null!==t&&t.$$typeof===o}var A=/\/+/g,N=[];function C(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 R(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?"."+j(e,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(e))for(var c=0;c<e.length;c++){var l=n+j(s=e[c],c);u+=t(s,l,r,i)}else if(null===e||"object"!==typeof e?l=null:l="function"===typeof(l=y&&e[y]||e["@@iterator"])?l:null,"function"===typeof l)for(e=l.call(e),c=0;!(s=e.next()).done;)u+=t(s=s.value,l=n+j(s,c++),r,i);else if("object"===s)throw r=""+e,Error(m(31,"[object Object]"===r?"object with keys {"+Object.keys(e).join(", ")+"}":r,""));return u}(t,"",e,n)}function j(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 D(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)?M(t,r,n,(function(t){return t})):null!=t&&(O(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(A,"$&/")+"/")+n)),r.push(t))}function M(t,e,n,r,i){var o="";null!=n&&(o=(""+n).replace(A,"$&/")+"/"),R(t,L,e=C(e,o,r,i)),P(e)}var U={current:null};function F(){var t=U.current;if(null===t)throw Error(m(321));return t}var V={ReactCurrentDispatcher:U,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 M(t,r,null,e,n),r},forEach:function(t,e,n){if(null==t)return t;R(t,D,e=C(null,null,e,n)),P(e)},count:function(t){return R(t,(function(){return null}),null)},toArray:function(t){var e=[];return M(t,e,null,(function(t){return t})),e},only:function(t){if(!O(t))throw Error(m(143));return t}},e.Component=w,e.Fragment=s,e.Profiler=c,e.PureComponent=T,e.StrictMode=u,e.Suspense=p,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=V,e.cloneElement=function(t,e,n){if(null===t||void 0===t)throw Error(m(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 c=t.type.defaultProps;for(l in e)I.call(e,l)&&!x.hasOwnProperty(l)&&(i[l]=void 0===e[l]&&void 0!==c?c[l]:e[l])}var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){c=Array(l);for(var f=0;f<l;f++)c[f]=arguments[f+2];i.children=c}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:l,_context:t},t.Consumer=t},e.createElement=S,e.createFactory=function(t){var e=S.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=O,e.lazy=function(t){return{$$typeof:v,_ctor:t,_status:-1,_result:null}},e.memo=function(t,e){return{$$typeof:d,type:t,compare:void 0===e?null:e}},e.useCallback=function(t,e){return F().useCallback(t,e)},e.useContext=function(t,e){return F().useContext(t,e)},e.useDebugValue=function(){},e.useEffect=function(t,e){return F().useEffect(t,e)},e.useImperativeHandle=function(t,e,n){return F().useImperativeHandle(t,e,n)},e.useLayoutEffect=function(t,e){return F().useLayoutEffect(t,e)},e.useMemo=function(t,e){return F().useMemo(t,e)},e.useReducer=function(t,e,n){return F().useReducer(t,e,n)},e.useRef=function(t){return F().useRef(t)},e.useState=function(t){return F().useState(t)},e.version="16.13.1"},function(t,e,n){"use strict";var r=n(0),i=n(83),o=n(97);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 c=Array.prototype.slice.call(arguments,3);try{e.apply(n,c)}catch(l){this.onError(l)}}var u=!1,c=null,l=!1,f=null,h={onError:function(t){u=!0,c=t}};function p(t,e,n,r,i,o,a,l,f){u=!1,c=null,s.apply(h,arguments)}var d=null,v=null,y=null;function m(t,e,n){var r=t.type||"unknown-event";t.currentTarget=y(n),function(t,e,n,r,i,o,s,h,d){if(p.apply(this,arguments),u){if(!u)throw Error(a(198));var v=c;u=!1,c=null,l||(l=!0,f=v)}}(r,e,void 0,t),t.currentTarget=null}var g=null,b={};function w(){if(g)for(var t in b){var e=b[t],n=g.indexOf(t);if(!(-1<n))throw Error(a(96,t));if(!T[n]){if(!e.extractEvents)throw Error(a(97,t));for(var r in T[n]=e,n=e.eventTypes){var i=void 0,o=n[r],s=e,u=r;if(_.hasOwnProperty(u))throw Error(a(99,u));_[u]=o;var c=o.phasedRegistrationNames;if(c){for(i in c)c.hasOwnProperty(i)&&E(c[i],s,u);i=!0}else o.registrationName?(E(o.registrationName,s,u),i=!0):i=!1;if(!i)throw Error(a(98,r,t))}}}}function E(t,e,n){if(k[t])throw Error(a(100,t));k[t]=e,I[t]=e.eventTypes[n].dependencies}var T=[],_={},k={},I={};function x(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 S=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),O=null,A=null,N=null;function C(t){if(t=v(t)){if("function"!==typeof O)throw Error(a(280));var e=t.stateNode;e&&(e=d(e),O(t.stateNode,t.type,e))}}function P(t){A?N?N.push(t):N=[t]:A=t}function R(){if(A){var t=A,e=N;if(N=A=null,C(t),e)for(t=0;t<e.length;t++)C(e[t])}}function j(t,e){return t(e)}function D(t,e,n,r,i){return t(e,n,r,i)}function L(){}var M=j,U=!1,F=!1;function V(){null===A&&null===N||(L(),R())}function B(t,e,n){if(F)return t(e,n);F=!0;try{return M(t,e,n)}finally{F=!1,V()}}var z=/^[: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]*$/,q=Object.prototype.hasOwnProperty,W={},H={};function G(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 K={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(t){K[t]=new G(t,0,!1,t,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(t){var e=t[0];K[e]=new G(e,1,!1,t[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(t){K[t]=new G(t,2,!1,t.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(t){K[t]=new G(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){K[t]=new G(t,3,!1,t.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(t){K[t]=new G(t,3,!0,t,null,!1)})),["capture","download"].forEach((function(t){K[t]=new G(t,4,!1,t,null,!1)})),["cols","rows","size","span"].forEach((function(t){K[t]=new G(t,6,!1,t,null,!1)})),["rowSpan","start"].forEach((function(t){K[t]=new G(t,5,!1,t.toLowerCase(),null,!1)}));var $=/[\-:]([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
2-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($,X);K[e]=new G(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($,X);K[e]=new G(e,1,!1,t,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(t){var e=t.replace($,X);K[e]=new G(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(t){K[t]=new G(t,1,!1,t.toLowerCase(),null,!1)})),K.xlinkHref=new G("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(t){K[t]=new G(t,1,!1,t.toLowerCase(),null,!0)}));var Q=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Y(t,e,n,r){var i=K.hasOwnProperty(e)?K[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!!q.call(H,t)||!q.call(W,t)&&(z.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))))}Q.hasOwnProperty("ReactCurrentDispatcher")||(Q.ReactCurrentDispatcher={current:null}),Q.hasOwnProperty("ReactCurrentBatchConfig")||(Q.ReactCurrentBatchConfig={suspense:null});var J=/^(.*)[\\\/]/,Z="function"===typeof Symbol&&Symbol.for,tt=Z?Symbol.for("react.element"):60103,et=Z?Symbol.for("react.portal"):60106,nt=Z?Symbol.for("react.fragment"):60107,rt=Z?Symbol.for("react.strict_mode"):60108,it=Z?Symbol.for("react.profiler"):60114,ot=Z?Symbol.for("react.provider"):60109,at=Z?Symbol.for("react.context"):60110,st=Z?Symbol.for("react.concurrent_mode"):60111,ut=Z?Symbol.for("react.forward_ref"):60112,ct=Z?Symbol.for("react.suspense"):60113,lt=Z?Symbol.for("react.suspense_list"):60120,ft=Z?Symbol.for("react.memo"):60115,ht=Z?Symbol.for("react.lazy"):60116,pt=Z?Symbol.for("react.block"):60121,dt="function"===typeof Symbol&&Symbol.iterator;function vt(t){return null===t||"object"!==typeof t?null:"function"===typeof(t=dt&&t[dt]||t["@@iterator"])?t:null}function yt(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 ct:return"Suspense";case lt: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 yt(t.type);case pt:return yt(t.render);case ht:if(t=1===t._status?t._result:null)return yt(t)}return null}function mt(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=yt(t.type);n=null,r&&(n=yt(r.type)),r=o,o="",i?o=" (at "+i.fileName.replace(J,"")+":"+i.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n    in "+(r||"Unknown")+o}e+=n,t=t.return}while(t);return e}function gt(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 Et(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 Tt(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 _t(t,e){var n=null==e.defaultValue?"":e.defaultValue,r=null!=e.checked?e.checked:e.defaultChecked;n=gt(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)&&Y(t,"checked",e,!1)}function It(t,e){kt(t,e);var n=gt(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")?St(t,e.type,n):e.hasOwnProperty("defaultValue")&&St(t,e.type,gt(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked)}function xt(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 St(t,e,n){"number"===e&&t.ownerDocument.activeElement===t||(null==n?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}function Ot(t,e){return t=i({children:void 0},e),(e=function(t){var e="";
vendor: 13,407 bytes, line 2
2return r.Children.forEach(t,(function(t){null!=t&&(e+=t)})),e}(e.children))&&(t.children=e),t}function At(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=""+gt(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 Ct(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:gt(n)}}function Pt(t,e){var n=gt(e.value),r=gt(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 Rt(t){var e=t.textContent;e===t._wrapperState.initialValue&&""!==e&&null!==e&&(t.value=e)}var jt="http://www.w3.org/1999/xhtml",Dt="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 Mt(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 Ut,Ft=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!==Dt||"innerHTML"in t)t.innerHTML=e;else{for((Ut=Ut||document.createElement("div")).innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=Ut.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}}));function Vt(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 zt={animationend:Bt("Animation","AnimationEnd"),animationiteration:Bt("Animation","AnimationIteration"),animationstart:Bt("Animation","AnimationStart"),transitionend:Bt("Transition","TransitionEnd")},qt={},Wt={};function Ht(t){if(qt[t])return qt[t];if(!zt[t])return t;var e,n=zt[t];for(e in n)if(n.hasOwnProperty(e)&&e in Wt)return qt[t]=n[e];return t}S&&(Wt=document.createElement("div").style,"AnimationEvent"in window||(delete zt.animationend.animation,delete zt.animationiteration.animation,delete zt.animationstart.animation),"TransitionEvent"in window||delete zt.transitionend.transition);var Gt=Ht("animationend"),Kt=Ht("animationiteration"),$t=Ht("animationstart"),Xt=Ht("transitionend"),Qt="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Yt=new("function"===typeof WeakMap?WeakMap:Map);function Jt(t){var e=Yt.get(t);return void 0===e&&(e=new Map,Yt.set(t,e)),e}function Zt(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(Zt(t)!==t)throw Error(a(188))}function ne(t){if(!(t=function(t){var e=t.alternate;if(!e){if(null===(e=Zt(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++)m(t,e[r],n[r]);else e&&m(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(l)throw t=f,l=!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 ce(t){if(!S)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 le=[];function fe(t){t.topLevelType=null,t.nativeEvent=null,t.targetInst=null,t.ancestors.length=0,10>le.length&&le.push(t)}function he(t,e,n,r){if(le.length){var i=le.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 pe(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=Sn(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<T.length;u++){var c=T[u];c&&(c=c.extractEvents(r,e,o,i,a))&&(s=re(s,c))}se(s)}}function de(t,e,n){if(!n.has(t)){switch(t){case"scroll":$e(e,"scroll",!0);break;case"focus":case"blur":$e(e,"focus",!0),$e(e,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":ce(t)&&$e(e,t,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Qt.indexOf(t)&&Ke(t,e)}n.set(t,null)}}var ve,ye,me,ge=!1,be=[],we=null,Ee=null,Te=null,_e=new Map,ke=new Map,Ie=[],xe="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(" "),Se="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Oe(t,e,n,r,i){return{blockedOn:t,topLevelType:e,eventSystemFlags:32|n,nativeEvent:i,container:r}}function Ae(t,e){switch(t){case"focus":case"blur":we=null;break;case"dragenter":case"dragleave":Ee=null;break;case"mouseover":case"mouseout":Te=null;break;case"pointerover":case"pointerout":_e.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=Oe(e,n,r,i,o),null!==e&&(null!==(e=On(e))&&ye(e)),t):(t.eventSystemFlags|=r,t)}function Ce(t){var e=Sn(t.target);if(null!==e){var n=Zt(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(){me(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=Je(t.topLevelType,t.eventSystemFlags,t.container,t.nativeEvent);if(null!==e){var n=On(e);return null!==n&&ye(n),t.blockedOn=e,!1}return!0}function Re(t,e,n){Pe(t)&&n.delete(e)}function je(){for(ge=!1;0<be.length;){var t=be[0];if(null!==t.blockedOn){null!==(t=On(t.blockedOn))&&ve(t);break}var e=Je(t.topLevelType,t.eventSystemFlags,t.container,t.nativeEvent);null!==e?t.blockedOn=e:be.shift()}null!==we&&Pe(we)&&(we=null),null!==Ee&&Pe(Ee)&&(Ee=null),null!==Te&&Pe(Te)&&(Te=null),_e.forEach(Re),ke.forEach(Re)}function De(t,e){t.blockedOn===e&&(t.blockedOn=null,ge||(ge=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,je)))}function Le(t){function e(e){return De(e,t)}if(0<be.length){De(be[0],t);for(var n=1;n<be.length;n++){var r=be[n];r.blockedOn===t&&(r.blockedOn=null)}}for(null!==we&&De(we,t),null!==Ee&&De(Ee,t),null!==Te&&De(Te,t),_e.forEach(e),ke.forEach(e),n=0;n<Ie.length;n++)(r=Ie[n]).blockedOn===t&&(r.blockedOn=null);for(;0<Ie.length&&null===(n=Ie[0]).blockedOn;)Ce(n),null===n.blockedOn&&Ie.shift()}var Me={},Ue=new Map,Fe=new Map,Ve=["abort","abort",Gt,"animationEnd",Kt,"animationIteration",$t,"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},Fe.set(r,e),Ue.set(r,o),Me[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(Ve,2);for(var ze="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),qe=0;qe<ze.length;qe++)Fe.set(ze[qe],0);var We=o.unstable_UserBlockingPriority,He=o.unstable_runWithPriority,Ge=!0;function Ke(t,e){$e(e,t,!1)}function $e(t,e,n){var r=Fe.get(e);switch(void 0===r?2:r){case 0:r=Xe.bind(null,e,1,t);break;case 1:r=Qe.bind(null,e,1,t);break;default:r=Ye.bind(null,e,1,t)}n?t.addEventListener(e,r,!0):t.addEventListener(e,r,!1)}function Xe(t,e,n,r){U||L();var i=Ye,o=U;U=!0;try{D(i,t,e,n,r)}finally{(U=o)||V()}}function Qe(t,e,n,r){He(We,Ye.bind(null,t,e,n,r))}function Ye(t,e,n,r){if(Ge)if(0<be.length&&-1<xe.indexOf(t))t=Oe(null,t,e,n,r),be.push(t);else{var i=Je(t,e,n,r);if(null===i)Ae(t,r);else if(-1<xe.indexOf(t))t=Oe(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 Ee=Ne(Ee,t,e,n,r,i),!0;case"mouseover":return Te=Ne(Te,t,e,n,r,i),!0;case"pointerover":var o=i.pointerId;return _e.set(o,Ne(_e.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)){Ae(t,r),t=he(t,r,null,e);try{B(pe,t)}finally{fe(t)}}}}function Je(t,e,n,r){if(null!==(n=Sn(n=ue(r)))){var i=Zt(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(pe,t)}finally{fe(t)}return null}var Ze={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||Ze.hasOwnProperty(t)&&Ze[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(Ze).forEach((function(t){tn.forEach((function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Ze[e]=Ze[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=jt;function un(t,e){var n=Jt(t=9===t.nodeType||11===t.nodeType?t:t.ownerDocument);e=I[e];for(var r=0;r<e.length;r++)de(e[r],t,n)}function cn(){}function ln(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 pn(){for(var t=window,e=ln();e instanceof t.HTMLIFrameElement;){try{var n="string"===typeof e.contentWindow.location.href}catch(r){n=!1}if(!n)break;e=ln((t=e.contentWindow).document)}return e}function dn(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,yn=null;function mn(t,e){switch(t){case"button":case"input":case"select":case"textarea":return!!e.autoFocus}return!1}function gn(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 En(t){for(;null!=t;t=t.nextSibling){var e=t.nodeType;if(1===e||3===e)break}return t}function Tn(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 _n=Math.random().toString(36).slice(2),kn="__reactInternalInstance$"+_n,In="__reactEventHandlers$"+_n,xn="__reactContainere$"+_n;function Sn(t){var e=t[kn];if(e)return e;for(var n=t.parentNode;n;){if(e=n[xn]||n[kn]){if(n=e.alternate,null!==e.child||null!==n&&null!==n.child)for(t=Tn(t);null!==t;){if(n=t[kn])return n;t=Tn(t)}return e}n=(t=n).parentNode}return null}function On(t){return!(t=t[kn]||t[xn])||5!==t.tag&&6!==t.tag&&13!==t.tag&&3!==t.tag?null:t}function An(t){if(5===t.tag||6===t.tag)return t.stateNode;throw Error(a(33))}function Nn(t){return t[In]||null}function Cn(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=d(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 Rn(t,e,n){(e=Pn(t,n.dispatchConfig.phasedRegistrationNames[e]))&&(n._dispatchListeners=re(n._dispatchListeners,e),n._dispatchInstances=re(n._dispatchInstances,t))}function jn(t){if(t&&t.dispatchConfig.phasedRegistrationNames){for(var e=t._targetInst,n=[];e;)n.push(e),e=Cn(e);for(e=n.length;0<e--;)Rn(n[e],"captured",t);for(e=0;e<n.length;e++)Rn(n[e],"bubbled",t)}}function Dn(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&&Dn(t._targetInst,null,t)}function Mn(t){ie(t,jn)}var Un=null,Fn=null,Vn=null;function Bn(){if(Vn)return Vn;var t,e,n=Fn,r=n.length,i="value"in Un?Un.value:Un.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 Vn=i.slice(t,1<e?1-e:void 0)}function zn(){return!0}function qn(){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)?zn:qn,this.isPropagationStopped=qn,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 Gn(t){if(!(t instanceof this))throw Error(a(279));t.destructor(),10>this.eventPool.length&&this.eventPool.push(t)}function Kn(t){t.eventPool=[],t.getPooled=Hn,t.release=Gn}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=zn)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!==typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=zn)},persist:function(){this.isPersistent=zn},isPersistent:qn,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=qn,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,Kn(n),n},Kn(Wn);var $n=Wn.extend({data:null}),Xn=Wn.extend({data:null}),Qn=[9,13,27,32],Yn=S&&"CompositionEvent"in window,Jn=null;S&&"documentMode"in document&&(Jn=document.documentMode);var Zn=S&&"TextEvent"in window&&!Jn,tr=S&&(!Yn||Jn&&8<Jn&&11>
vendor: 9,393 bytes, line 2
2=Jn),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!==Qn.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(Yn)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()):(Fn="value"in(Un=r)?Un.value:Un.textContent,ar=!0)),o=$n.getPooled(o,e,n,r),i?o.data=i:null!==(i=or(n))&&(o.data=i),Mn(o),i=o):i=null,(t=Zn?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||!Yn&&ir(t,e)?(t=Bn(),Vn=Fn=Un=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,Mn(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 cr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!ur[t.type]:"textarea"===e}var lr={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(lr.change,t,e,n)).type="change",P(n),Mn(t),t}var hr=null,pr=null;function dr(t){se(t)}function vr(t){if(Et(An(t)))return t}function yr(t,e){if("change"===t)return e}var mr=!1;function gr(){hr&&(hr.detachEvent("onpropertychange",br),pr=hr=null)}function br(t){if("value"===t.propertyName&&vr(pr))if(t=fr(pr,t,ue(t)),U)se(t);else{U=!0;try{j(dr,t)}finally{U=!1,V()}}}function wr(t,e,n){"focus"===t?(gr(),pr=n,(hr=e).attachEvent("onpropertychange",br)):"blur"===t&&gr()}function Er(t){if("selectionchange"===t||"keyup"===t||"keydown"===t)return vr(pr)}function Tr(t,e){if("click"===t)return vr(e)}function _r(t,e){if("input"===t||"change"===t)return vr(e)}S&&(mr=ce("input")&&(!document.documentMode||9<document.documentMode));var kr={eventTypes:lr,_isInputEventSupported:mr,extractEvents:function(t,e,n,r){var i=e?An(e):window,o=i.nodeName&&i.nodeName.toLowerCase();if("select"===o||"input"===o&&"file"===i.type)var a=yr;else if(cr(i))if(mr)a=_r;else{a=Er;var s=wr}else(o=i.nodeName)&&"input"===o.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(a=Tr);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&&St(i,"number",i.value)}},Ir=Wn.extend({view:null,detail:null}),xr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sr(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):!!(t=xr[t])&&!!e[t]}function Or(){return Sr}var Ar=0,Nr=0,Cr=!1,Pr=!1,Rr=Ir.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Or,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=Ar;return Ar=t.screenX,Cr?"mousemove"===t.type?t.screenX-e:0:(Cr=!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)}}),jr=Rr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Dr={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:Dr,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)?Sn(e):null)&&(e!==Zt(e)||5!==e.tag&&6!==e.tag)&&(e=null)):a=null;if(a===e)return null;if("mouseout"===t||"mouseover"===t)var s=Rr,u=Dr.mouseLeave,c=Dr.mouseEnter,l="mouse";else"pointerout"!==t&&"pointerover"!==t||(s=jr,u=Dr.pointerLeave,c=Dr.pointerEnter,l="pointer");if(t=null==a?o:An(a),o=null==e?o:An(e),(u=s.getPooled(u,a,n,r)).type=l+"leave",u.target=t,u.relatedTarget=o,(n=s.getPooled(c,e,n,r)).type=l+"enter",n.target=o,n.relatedTarget=t,l=e,(r=a)&&l)t:{for(c=l,a=0,t=s=r;t;t=Cn(t))a++;for(t=0,e=c;e;e=Cn(e))t++;for(;0<a-t;)s=Cn(s),a--;for(;0<t-a;)c=Cn(c),t--;for(;a--;){if(s===c||s===c.alternate)break t;s=Cn(s),c=Cn(c)}s=null}else s=null;for(c=s,s=[];r&&r!==c&&(null===(a=r.alternate)||a!==c);)s.push(r),r=Cn(r);for(r=[];l&&l!==c&&(null===(a=l.alternate)||a!==c);)r.push(l),l=Cn(l);for(l=0;l<s.length;l++)Dn(s[l],"bubbled",u);for(l=r.length;0<l--;)Dn(r[l],"captured",n);return 0===(64&i)?[u]:[u,n]}};var Mr="function"===typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t===1/e)||t!==t&&e!==e},Ur=Object.prototype.hasOwnProperty;function Fr(t,e){if(Mr(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(!Ur.call(e,n[r])||!Mr(t[n[r]],e[n[r]]))return!1;return!0}var Vr=S&&"documentMode"in document&&11>=document.documentMode,Br={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},zr=null,qr=null,Wr=null,Hr=!1;function Gr(t,e){var n=e.window===e?e.document:9===e.nodeType?e:e.ownerDocument;return Hr||null==zr||zr!==ln(n)?null:("selectionStart"in(n=zr)&&dn(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&&Fr(Wr,n)?null:(Wr=n,(t=Wn.getPooled(Br.select,qr,t,e)).type="select",t.target=zr,Mn(t),t))}var Kr={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=Jt(i),o=I.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?An(e):window,t){case"focus":(cr(i)||"true"===i.contentEditable)&&(zr=i,qr=e,Wr=null);break;case"blur":Wr=qr=zr=null;break;case"mousedown":Hr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Hr=!1,Gr(n,r);case"selectionchange":if(Vr)break;case"keydown":case"keyup":return Gr(n,r)}return null}},$r=Wn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Xr=Wn.extend({clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Qr=Ir.extend({relatedTarget:null});function Yr(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 Jr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Zr={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=Ir.extend({key:function(t){if(t.key){var e=Jr[t.key]||t.key;if("Unidentified"!==e)return e}return"keypress"===t.type?13===(t=Yr(t))?"Enter":String.fromCharCode(t):"keydown"===t.type||"ke
2yup"===t.type?Zr[t.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Or,charCode:function(t){return"keypress"===t.type?Yr(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?Yr(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}}),ei=Rr.extend({dataTransfer:null}),ni=Ir.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Or}),ri=Wn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ii=Rr.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:Me,extractEvents:function(t,e,n,r){var i=Ue.get(t);if(!i)return null;switch(t){case"keypress":if(0===Yr(n))return null;case"keydown":case"keyup":t=ti;break;case"blur":case"focus":t=Qr;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=Rr;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 Gt:case Kt:case $t:t=$r;break;case Xt:t=ri;break;case"scroll":t=Ir;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=jr;break;default:t=Wn}return Mn(e=t.getPooled(i,e,n,r)),e}};if(g)throw Error(a(101));g=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w(),d=Nn,v=On,y=An,x({SimpleEventPlugin:oi,EnterLeaveEventPlugin:Lr,ChangeEventPlugin:kr,SelectEventPlugin:Kr,BeforeInputEventPlugin:sr});var ai=[],si=-1;function ui(t){0>si||(t.current=ai[si],ai[si]=null,si--)}function ci(t,e){si++,ai[si]=t.current,t.current=e}var li={},fi={current:li},hi={current:!1},pi=li;function di(t,e){var n=t.type.contextTypes;if(!n)return li;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 yi(){ui(hi),ui(fi)}function mi(t,e,n){if(fi.current!==li)throw Error(a(168));ci(fi,e),ci(hi,n)}function gi(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,yt(e)||"Unknown",o));return i({},n,{},r)}function bi(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||li,pi=fi.current,ci(fi,t),ci(hi,hi.current),!0}function wi(t,e,n){var r=t.stateNode;if(!r)throw Error(a(169));n?(t=gi(t,e,pi),r.__reactInternalMemoizedMergedChildContext=t,ui(hi),ui(fi),ci(fi,t)):ui(hi),ci(hi,n)}var Ei=o.unstable_runWithPriority,Ti=o.unstable_scheduleCallback,_i=o.unstable_cancelCallback,ki=o.unstable_requestPaint,Ii=o.unstable_now,xi=o.unstable_getCurrentPriorityLevel,Si=o.unstable_ImmediatePriority,Oi=o.unstable_UserBlockingPriority,Ai=o.unstable_NormalPriority,Ni=o.unstable_LowPriority,Ci=o.unstable_IdlePriority,Pi={},Ri=o.unstable_shouldYield,ji=void 0!==ki?ki:function(){},Di=null,Li=null,Mi=!1,Ui=Ii(),Fi=1e4>Ui?Ii:function(){return Ii()-Ui};function Vi(){switch(xi()){case Si:return 99;case Oi:return 98;case Ai:return 97;case Ni:return 96;case Ci:return 95;default:throw Error(a(332))}}function Bi(t){switch(t){case 99:return Si;case 98:return Oi;case 97:return Ai;case 96:return Ni;case 95:return Ci;default:throw Error(a(332))}}function zi(t,e){return t=Bi(t),Ei(t,e)}function qi(t,e,n){return t=Bi(t),Ti(t,e,n)}function Wi(t){return null===Di?(Di=[t],Li=Ti(Si,Gi)):Di.push(t),Pi}function Hi(){if(null!==Li){var t=Li;Li=null,_i(t)}Gi()}
2function Gi(){if(!Mi&&null!==Di){Mi=!0;var t=0;try{var e=Di;zi(99,(function(){for(;t<e.length;t++){var n=e[t];do{n=n(!0)}while(null!==n)}})),Di=null}catch(n){throw null!==Di&&(Di=Di.slice(t+1)),Ti(Si,Hi),n}finally{Mi=!1}}}function Ki(t,e,n){return 1073741821-(1+((1073741821-t+e/10)/(n/=10)|0))*n}function $i(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},Qi=null,Yi=null,Ji=null;function Zi(){Ji=Yi=Qi=null}function to(t){var e=Xi.current;ui(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){Qi=t,Ji=Yi=null,null!==(t=t.dependencies)&&null!==t.firstContext&&(t.expirationTime>=e&&(Na=!0),t.firstContext=null)}function ro(t,e){if(Ji!==t&&!1!==e&&0!==e)if("number"===typeof e&&1073741823!==e||(Ji=t,e=1073741823),e={context:t,observedBits:e,next:null},null===Yi){if(null===Qi)throw Error(a(308));Yi=e,Qi.dependencies={expirationTime:0,firstContext:e,responders:null}}else Yi=Yi.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 co(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 lo(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 c=o.baseState,l=0,f=null,h=null,p=null;if(null!==u)for(var d=u;;){if((s=d.expirationTime)<r){var v={expirationTime:d.expirationTime,suspenseConfig:d.suspenseConfig,tag:d.tag,payload:d.payload,callback:d.callback,next:null};null===p?(h=p=v,f=c):p=p.next=v,s>l&&(l=s)}else{null!==p&&(p=p.next={expirationTime:1073741823,suspenseConfig:d.suspenseConfig,tag:d.tag,payload:d.payload,callback:d.callback,next:null}),ou(s,d.suspenseConfig);t:{var y=t,m=d;switch(s=e,v=n,m.tag){case 1:if("function"===typeof(y=m.payload)){c=y.call(v,c,s);break t}c=y;break t;case 3:y.effectTag=-4097&y.effectTag|64;case 0:if(null===(s="function"===typeof(y=m.payload)?y.call(v,c,s):y)||void 0===s)break t;c=i({},c,s);break t;case 2:io=!0}}null!==d.callback&&(t.effectTag|=32,null===(s=o.effects)?o.effects=[d]:s.push(d))}if(null===(d=d.next)||d===u){if(null===(s=o.shared.pending))break;d=a.next=s.next,s.next=u,o.baseQueue=a=s,o.shared.pending=null}}null===p?f=c:p.next=h,o.baseState=f,o.baseQueue=p,au(l),t.expirationTime=l,t.memoizedState=c}}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=Q.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 yo={isMounted:function(t){return!!(t=t._reactInternalFiber)&&Zt(t)===t},enqueueSetState:function(t,e,n){t=t._reactInternalFiber;var r=Gs(),i=ho.suspense;(i=so(r=Ks(r,t,i),i)).payload=e,void 0!==n&&null!==n&&(i.callback=n),uo(t,i),$s(t,r)},enqueueReplaceState:function(t,e,n){t=t._reactInternalFiber;var r=Gs(),i=ho.suspense;(i=so(r=Ks(r,t,i),i)).tag=1,i.payload=e,void 0!==n&&null!==n&&(i.callback=n),uo(t,i),$s(t,r)},enqueueForceUpdate:function(t,e){t=t._reactInternalFiber;var n=Gs(),r=ho.suspense;(r=so(n=Ks(n,t,r),r)).tag=2,void 0!==e&&null!==e&&(r.callback=e),uo(t,r),$s(t,n)}};function mo(t,e,n,r,i,o,a){return"function"===typeof(t=t.stateNode).shouldComponentUpdate?t.shouldComponentUpdate(r,o,a):!e.prototype||!e.prototype.isPureReactComponent||(!Fr(n,r)||!Fr(i,o))}function go(t,e,n){var r=!1,i=li,o=e.contextType;return"object"===typeof o&&null!==o?o=ro(o):(i=vi(e)?pi:fi.current,o=(r=null!==(r=e.contextTypes)&&void 0!==r)?di(t,i):li),e=new e(n,o),t.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,e.updater=yo,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&&yo.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)?pi:fi.current,i.context=di(t,o)),lo(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&&yo.enqueueReplaceState(i,i.state,null),lo(t,n,i,r),i.state=t.memoizedState),"function"===typeof i.componentDidMount&&(t.effectTag|=4)}var Eo=Array.isArray;function To(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 _o(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=xu(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=Au(n,t.mode,r)).return=t,e):((e=i(e,n)).return=t,e)}function c(t,e,n,r){return null!==e&&e.elementType===n.type?((r=i(e,n.props)).ref=To(t,e,n),r.return=t,r):((r=Su(n.type,n.key,n.props,null,t.mode,r)).ref=To(t,e,n),r.return=t,r)}function l(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=Ou(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=Au(""+e,t.mode,n)).return=t,e;if("object"===typeof e&&null!==e){switch(e.$$typeof){case tt:return(n=Su(e.type,e.key,e.props,null,t.mode,n)).ref=To(t,null,e),n.return=t,n;case et:return(e=Nu(e,t.mode,n)).return=t,e}if(Eo(e)||vt(e))return(e=Ou(e,t.mode,n,null)).return=t,e;_o(t,e)}return null}function p(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):c(t,e,n,r):null;case et:return n.key===i?l(t,e,n,r):null}if(Eo(n)||vt(n))return null!==i?null:f(t,e,n,r,null);_o(t,n)}return null}function d(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):c(e,t,r,i);case et:return l(e,t=t.get(null===r.key?n:r.key)||null,r,i)}if(Eo(r)||vt(r))return f(e,t=t.get(n)||null,r,i,null);_o(e,r)}return null}function v(i,a,s,u){for(var c=null,l=null,f=a,v=a=0,y=null;null!==f&&v<s.length;v++){f.index>
vendor: 30,469 bytes, line 2
2v?(y=f,f=null):y=f.sibling;var m=p(i,f,s[v],u);if(null===m){null===f&&(f=y);break}t&&f&&null===m.alternate&&e(i,f),a=o(m,a,v),null===l?c=m:l.sibling=m,l=m,f=y}if(v===s.length)return n(i,f),c;if(null===f){for(;v<s.length;v++)null!==(f=h(i,s[v],u))&&(a=o(f,a,v),null===l?c=f:l.sibling=f,l=f);return c}for(f=r(i,f);v<s.length;v++)null!==(y=d(f,i,v,s[v],u))&&(t&&null!==y.alternate&&f.delete(null===y.key?v:y.key),a=o(y,a,v),null===l?c=y:l.sibling=y,l=y);return t&&f.forEach((function(t){return e(i,t)})),c}function y(i,s,u,c){var l=vt(u);if("function"!==typeof l)throw Error(a(150));if(null==(u=l.call(u)))throw Error(a(151));for(var f=l=null,v=s,y=s=0,m=null,g=u.next();null!==v&&!g.done;y++,g=u.next()){v.index>y?(m=v,v=null):m=v.sibling;var b=p(i,v,g.value,c);if(null===b){null===v&&(v=m);break}t&&v&&null===b.alternate&&e(i,v),s=o(b,s,y),null===f?l=b:f.sibling=b,f=b,v=m}if(g.done)return n(i,v),l;if(null===v){for(;!g.done;y++,g=u.next())null!==(g=h(i,g.value,c))&&(s=o(g,s,y),null===f?l=g:f.sibling=g,f=g);return l}for(v=r(i,v);!g.done;y++,g=u.next())null!==(g=d(v,i,y,g.value,c))&&(t&&null!==g.alternate&&v.delete(null===g.key?y:g.key),s=o(g,s,y),null===f?l=g:f.sibling=g,f=g);return t&&v.forEach((function(t){return e(i,t)})),l}return function(t,r,o,u){var c="object"===typeof o&&null!==o&&o.type===nt&&null===o.key;c&&(o=o.props.children);var l="object"===typeof o&&null!==o;if(l)switch(o.$$typeof){case tt:t:{for(l=o.key,c=r;null!==c;){if(c.key===l){switch(c.tag){case 7:if(o.type===nt){n(t,c.sibling),(r=i(c,o.props.children)).return=t,t=r;break t}break;default:if(c.elementType===o.type){n(t,c.sibling),(r=i(c,o.props)).ref=To(t,c,o),r.return=t,t=r;break t}}n(t,c);break}e(t,c),c=c.sibling}o.type===nt?((r=Ou(o.props.children,t.mode,u,o.key)).return=t,t=r):((u=Su(o.type,o.key,o.props,null,t.mode,u)).ref=To(t,r,o),u.return=t,t=u)}return s(t);case et:t:{for(c=o.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(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=Au(o,t.mode,u)).return=t,t=r),s(t);if(Eo(o))return v(t,r,o,u);if(vt(o))return y(t,r,o,u);if(l&&_o(t,o),"undefined"===typeof o&&!c)switch(t.tag){case 1:case 0:throw t=t.type,Error(a(152,t.displayName||t.name||"Component"))}return n(t,r)}}var Io=ko(!0),xo=ko(!1),So={},Oo={current:So},Ao={current:So},No={current:So};function Co(t){if(t===So)throw Error(a(174));return t}function Po(t,e){switch(ci(No,e),ci(Ao,t),ci(Oo,So),t=e.nodeType){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Mt(null,"");break;default:e=Mt(e=(t=8===t?e.parentNode:e).namespaceURI||null,t=t.tagName)}ui(Oo),ci(Oo,e)}function Ro(){ui(Oo),ui(Ao),ui(No)}function jo(t){Co(No.current);var e=Co(Oo.current),n=Mt(e,t.type);e!==n&&(ci(Ao,t),ci(Oo,n))}function Do(t){Ao.current===t&&(ui(Oo),ui(Ao))}var Lo={current:0};function Mo(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 Uo(t,e){return{responder:t,props:e}}var Fo=Q.ReactCurrentDispatcher,Vo=Q.ReactCurrentBatchConfig,Bo=0,zo=null,qo=null,Wo=null,Ho=!1;function Go(){throw Error(a(321))}function Ko(t,e){if(null===e)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Mr(t[n],e[n]))return!1;return!0}function $o(t,e,n,r,i,o){if(Bo=o,zo=e,e.memoizedState=null,e.updateQueue=null,e.expirationTime=0,Fo.current=null===t||null===t.memoizedState?ma:ga,t=n(r,i),e.expirationTime===Bo){o=0;do{if(e.expirationTime=0,!(25>o))throw Error(a(301));o+=1,Wo=qo=null,e.updateQueue=null,Fo.current=ba,t=n(r,i)}while(e.expirationTime===Bo)}if(Fo.current=ya,e=null!==qo&&null!==qo.next,Bo=0,Wo=qo=zo=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?zo.memoizedState=Wo=t:Wo=Wo.next=t,Wo}function Qo(){if(null===qo){var t=zo.alternate;t=null!==t?t.memoizedState:null}else t=qo.next;var e=null===Wo?zo.memoizedState:Wo.next;if(null!==e)Wo=e,qo=t;else{if(null===t)throw Error(a(310));t={memoizedState:(qo=t).memoizedState,baseState:qo.baseState,baseQueue:qo.baseQueue,queue:qo.queue,next:null},null===Wo?zo.memoizedState=Wo=t:Wo=Wo.next=t}return Wo}function Yo(t,e){return"function"===typeof e?e(t):e}function Jo(t){var e=Qo(),n=e.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=t;var r=qo,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var u=s=o=null,c=i;do{var l=c.expirationTime;if(l<Bo){var f={expirationTime:c.expirationTime,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===u?(s=u=f,o=r):u=u.next=f,l>zo.expirationTime&&(zo.expirationTime=l,au(l))}else null!==u&&(u=u.next={expirationTime:1073741823,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),ou(l,c.suspenseConfig),r=c.eagerReducer===t?c.eagerState:t(r,c.action);c=c.next}while(null!==c&&c!==i);null===u?o=r:u.next=s,Mr(r,e.memoizedState)||(Na=!0),e.memoizedState=r,e.baseState=o,e.baseQueue=u,n.lastRenderedState=r}return[e.memoizedState,n.dispatch]}function Zo(t){var e=Qo(),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);Mr(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:Yo,lastRenderedState:t}).dispatch=va.bind(null,zo,t),[e.memoizedState,t]}function ea(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},null===(e=zo.updateQueue)?(e={lastEffect:null},zo.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 Qo().memoizedState}function ra(t,e,n,r){var i=Xo();zo.effectTag|=t,i.memoizedState=ea(1|e,n,void 0,void 0===r?null:r)}function ia(t,e,n,r){var i=Qo();r=void 0===r?null:r;var o=void 0;if(null!==qo){var a=qo.memoizedState;if(o=a.destroy,null!==r&&Ko(r,a.deps))return void ea(e,n,o,r)}zo.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 ca(t,e,n){return n=null!==n&&void 0!==n?n.concat([t]):null,ia(4,2,ua.bind(null,e,t),n)}function la(){}function fa(t,e){return Xo().memoizedState=[t,void 0===e?null:e],t}function ha(t,e){var n=Qo();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&Ko(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function pa(t,e){var n=Qo();e=void 0===e?null:e;var r=n.memoizedState;return null!==r&&null!==e&&Ko(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function da(t,e,n){var r=Vi();zi(98>r?98:r,(function(){t(!0)})),zi(97<r?97:r,(function(){var r=Vo.suspense;Vo.suspense=void 0===e?null:e;try{t(!1),n()}finally{Vo.suspense=r}}))}function va(t,e,n){var r=Gs(),i=ho.suspense;i={expirationTime:r=Ks(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===zo||null!==o&&o===zo)Ho=!0,i.expirationTime=Bo,zo.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,Mr(s,a))return}catch(u){}$s(t,r)}}var ya={readContext:ro,useCallback:Go,useContext:Go,useEffect:Go,useImperativeHandle:Go,useLayoutEffect:Go,useMemo:Go,useReducer:Go,useRef:Go,useState:Go,useDebugValue:Go,useResponder:Go,useDeferredValue:Go,useTransition:Go},ma={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,zo,t),[r.memoizedState,t]},useRef:function(t){return t={current:t},Xo().memoizedState=t},useState:ta,useDebugValue:la,useResponder:Uo,useDeferredValue:function(t,e){var n=ta(t),r=n[0],i=n[1];return oa((function(){var n=Vo.suspense;Vo.suspense=void 0===e?null:e;try{i(t)}finally{Vo.suspense=n}}),[t,e]),r},useTransition:function(t){var e=ta(!1),n=e[0];return e=e[1],[fa(da.bind(null,e,t),[e,t]),n]}},ga={readContext:ro,useCallback:ha,useContext:ro,useEffect:aa,useImperativeHandle:ca,useLayoutEffect:sa,useMemo:pa,useReducer:Jo,useRef:na,useState:function(){return Jo(Yo)},useDebugValue:la,useResponder:Uo,useDeferredValue:function(t,e){var n=Jo(Yo),r=n[0],i=n[1];return aa((function(){var n=Vo.suspense;Vo.suspense=void 0===e?null:e;try{i(t)}finally{Vo.suspense=n}}),[t,e]),r},useTransition:function(t){var e=Jo(Yo),n=e[0];return e=e[1],[ha(da.bind(null,e,t),[e,t]),n]}},ba={readContext:ro,useCallback:ha,useContext:ro,useEffect:aa,useImperativeHandle:ca,useLayoutEffect:sa,useMemo:pa,useReducer:Zo,useRef:na,useState:function(){return Zo(Yo)},useDebugValue:la,useResponder:Uo,useDeferredValue:function(t,e){var n=Zo(Yo),r=n[0],i=n[1];return aa((function(){var n=Vo.suspense;Vo.suspense=void 0===e?null:e;try{i(t)}finally{Vo.suspense=n}}),[t,e]),r},useTransition:function(t){var e=Zo(Yo),n=e[0];return e=e[1],[ha(da.bind(null,e,t),[e,t]),n]}},wa=null,Ea=null,Ta=!1;function _a(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 Ia(t){if(Ta){var e=Ea;if(e){var n=e;if(!ka(t,e)){if(!(e=En(n.nextSibling))||!ka(t,e))return t.effectTag=-1025&t.effectTag|2,Ta=!1,void(wa=t);_a(wa,n)}wa=t,Ea=En(e.firstChild)}else t.effectTag=-1025&t.effectTag|2,Ta=!1,wa=t}}function xa(t){for(t=t.return;null!==t&&5!==t.tag&&3!==t.tag&&13!==t.tag;)t=t.return;wa=t}function Sa(t){if(t!==wa)return!1;if(!Ta)return xa(t),Ta=!0,!1;var e=t.type;if(5!==t.tag||"head"!==e&&"body"!==e&&!gn(e,t.memoizedProps))for(e=Ea;e;)_a(t,e),e=En(e.nextSibling);if(xa(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){Ea=En(t.nextSibling);break t}e--}else"$"!==n&&"$!"!==n&&"$?"!==n||e++}t=t.nextSibling}Ea=null}}else Ea=wa?En(t.stateNode.nextSibling):null;return!0}function Oa(){Ea=wa=null,Ta=!1}var Aa=Q.ReactCurrentOwner,Na=!1;function Ca(t,e,n,r){e.child=null===t?xo(e,null,n,r):Io(e,t.child,n,r)}function Pa(t,e,n,r,i){n=n.render;var o=e.ref;return no(e,i),r=$o(t,e,n,r,o,i),null===t||Na?(e.effectTag|=1,Ca(t,e,r,i),e.child):(e.updateQueue=t.updateQueue,e.effectTag&=-517,t.expirationTime<=i&&(t.expirationTime=0),$a(t,e,i))}function Ra(t,e,n,r,i,o){if(null===t){var a=n.type;return"function"!==typeof a||Iu(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((t=Su(n.type,null,r,null,e.mode,o)).ref=e.ref,t.return=e,e.child=t):(e.tag=15,e.type=a,ja(t,e,a,r,i,o))}return a=t.child,i<o&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:Fr)(i,r)&&t.ref===e.ref)?$a(t,e,o):(e.effectTag|=1,(t=xu(a,r)).ref=e.ref,t.return=e,e.child=t)}function ja(t,e,n,r,i,o){return null!==t&&Fr(t.memoizedProps,r)&&t.ref===e.ref&&(Na=!1,i<o)?(e.expirationTime=t.expirationTime,$a(t,e,o)):La(t,e,n,r,o)}function Da(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)?pi:fi.current;return o=di(e,o),no(e,i),n=$o(t,e,n,r,o,i),null===t||Na?(e.effectTag|=1,Ca(t,e,n,i),e.child):(e.updateQueue=t.updateQueue,e.effectTag&=-517,t.expirationTime<=i&&(t.expirationTime=0),$a(t,e,i))}function Ma(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),go(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,c=n.contextType;"object"===typeof c&&null!==c?c=ro(c):c=di(e,c=vi(n)?pi:fi.current);var l=n.getDerivedStateFromProps,f="function"===typeof l||"function"===typeof a.getSnapshotBeforeUpdate;f||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||u!==c)&&bo(e,a,r,c),io=!1;var h=e.memoizedState;a.state=h,lo(e,r,a,i),u=e.memoizedState,s!==r||h!==u||hi.current||io?("function"===typeof l&&(vo(e,n,l,r),u=e.memoizedState),(s=io||mo(e,n,s,r,h,u,c))?(f||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(e.effectTag|=4)):("function"===typeof a.componentDidMount&&(e.effectTag|=4),e.memoizedProps=r,e.memoizedState=u),a.props=r,a.state=u,a.context=c,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:$i(e.type,s),u=a.context,"object"===typeof(c=n.contextType)&&null!==c?c=ro(c):c=di(e,c=vi(n)?pi:fi.current),(f="function"===typeof(l=n.getDerivedStateFromProps)||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||u!==c)&&bo(e,a,r,c),io=!1,u=e.memoizedState,a.state=u,lo(e,r,a,i),h=e.memoizedState,s!==r||u!==h||hi.current||io?("function"===typeof l&&(vo(e,n,l,r),h=e.memoizedState),(l=io||mo(e,n,s,r,u,h,c))?(f||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,c),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,c)),"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=c,r=l):("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 Ua(t,e,n,r,o,i)}function Ua(t,e,n,r,i,o){Da(t,e);var a=0!==(64&e.effectTag);if(!r&&!a)return i&&wi(e,n,!1),$a(t,e,o);r=e.stateNode,Aa.current=e;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return e.effectTag|=1,null!==t&&a?(e.child=Io(e,t.child,null,o),e.child=Io(e,null,s,o)):Ca(t,e,s,o),e.memoizedState=r.state,i&&wi(e,n,!0),e.child}function Fa(t){var e=t.stateNode;e.pendingContext?mi(0,e.pendingContext,e.pendingContext!==e.context):e.context&&mi(0,e.context,!1),Po(t,e.containerInfo)}var Va,Ba,za,qa={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),ci(Lo,1&a),null===t){if(void 0!==o.fallback&&Ia(e),s){if(s=o.fallback,(o=Ou(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=Ou(s,i,n,null)).return=e,o.sibling=n,e.memoizedState=qa,e.child=o,n}return i=o.children,e.memoizedState=null,e.child=xo(e,null,i,n)}if(null!==t.memoizedState){if(i=(t=t.child).sibling,s){if(o=o.fallback,(n=xu(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=xu(i,o)).return=e,n.sibling=i,n.childExpirationTime=0,e.memoizedState=qa,e.child=n,i}return n=Io(e,t.child,o.children,n),e.memoizedState=null,e.child=n}if(t=t.child,s){if(s=o.fallback,(o=Ou(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=Ou(s,i,n,null)).return=e,o.sibling=n,n.effectTag|=2,o.childExpirationTime=0,e.memoizedState=qa,e.child=o,n}return e.memoizedState=null,e.child=Io(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 Ga(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 Ka(t,e,n){var r=e.pendingProps,i=r.revealOrder,o=r.tail;if(Ca(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(ci(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===Mo(t)&&(i=n),n=n.sibling;null===(n=i)?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),Ga(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===Mo(t)){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}Ga(e,!0,n,null,o,e.lastEffect);break;case"together":Ga(e,!1,null,null,void 0,e.lastEffect);break;default:e.memoizedState=null}return e.child}function $a(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=xu(t=e.child,t.pendingProps),e.child=n,n.return=e;null!==t.sibling;)t=t.sibling,(n=n.sibling=xu(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 Qa(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)&&yi(),null;case 3:return Ro(),ui(hi),ui(fi),(n=e.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==t&&null!==t.child||!Sa(e)||(e.effectTag|=4),null;case 5:Do(e),n=Co(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=Co(Oo.current),Sa(e)){r=e.stateNode,o=e.type;var s=e.memoizedProps;switch(r[kn]=e,r[In]=s,o){case"iframe":case"object":case"embed":Ke("load",r);break;case"video":case"audio":for(t=0;t<Qt.length;t++)Ke(Qt[t],r);break;case"source":Ke("error",r);break;case"img":case"image":case"link":Ke("error",r),Ke("load",r);break;case"form":Ke("reset",r),Ke("submit",r);break;case"details":Ke("toggle",r);break;case"input":_t(r,s),Ke("invalid",r),un(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Ke("invalid",r),un(n,"onChange");break;case"textarea":Ct(r,s),Ke("invalid",r),un(n,"onChange")}for(var u in on(o,s),t=null,s)if(s.hasOwnProperty(u)){var c=s[u];"children"===u?"string"===typeof c?r.textContent!==c&&(t=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(t=["children",""+c]):k.hasOwnProperty(u)&&null!=c&&un(n,u)}switch(o){case"input":wt(r),xt(r,s,!0);break;case"textarea":wt(r),Rt(r);break;case"select":case"option":break;default:"function"===typeof s.onClick&&(r.onclick=cn)}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[In]=r,Va(t,e),e.stateNode=t,u=an(o,r),o){case"iframe":case"object":case"embed":Ke("load",t),c=r;break;case"video":case"audio":for(c=0;c<Qt.length;c++)Ke(Qt[c],t);c=r;break;case"source":Ke("error",t),c=r;break;case"img":case"image":case"link":Ke("error",t),Ke("load",t),c=r;break;case"form":Ke("reset",t),Ke("submit",t),c=r;break;case"details":Ke("toggle",t),c=r;break;case"input":_t(t,r),c=Tt(t,r),Ke("invalid",t),un(n,"onChange");break;case"option":c=Ot(t,r);break;case"select":t._wrapperState={wasMultiple:!!r.multiple},c=i({},r,{value:void 0}),Ke("invalid",t),un(n,"onChange");break;case"textarea":Ct(t,r),c=Nt(t,r),Ke("invalid",t),un(n,"onChange");break;default:c=r}on(o,c);var l=c;for(s in l)if(l.hasOwnProperty(s)){var f=l[s];"style"===s?nn(t,f):"dangerouslySetInnerHTML"===s?null!=(f=f?f.__html:void 0)&&Ft(t,f):"children"===s?"string"===typeof f?("textarea"!==o||""!==f)&&Vt(t,f):"number"===typeof f&&Vt(t,""+f):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(k.hasOwnProperty(s)?null!=f&&un(n,s):null!=f&&Y(t,s,f,u))}switch(o){case"input":wt(t),xt(t,r,!1);break;case"textarea":wt(t),Rt(t);break;case"option":null!=r.value&&t.setAttribute("value",""+gt(r.value));break;case"select":t.multiple=!!r.multiple,null!=(n=r.value)?At(t,!!r.multiple,n,!1):null!=r.defaultValue&&At(t,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof c.onClick&&(t.onclick=cn)}mn(o,r)&&(e.effectTag|=4)}null!==e.ref&&(e.effectTag|=128)}return null;case 6:if(t&&null!=e.stateNode)za(0,e,t.memoizedProps,r);else{if("string"!==typeof r&&null===e.stateNode)throw Error(a(166));n=Co(No.current),Co(Oo.current),Sa(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&&Sa(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)?Ss===ws&&(Ss=Es):(Ss!==ws&&Ss!==Es||(Ss=Ts),0!==Ps&&null!==ks&&(Ru(ks,xs),ju(ks,Ps)))),(n||r)&&(e.effectTag|=4),null);case 4:return Ro(),null;case 10:return to(e),null;case 17:return vi(e.type)&&yi(),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(Ss!==ws||null!==t&&0!==(64&t.effectTag))for(s=e.child;null!==s;){if(null!==(t=Mo(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 ci(Lo,1&Lo.current|2),e.child}s=s.sibling}}else{if(!o)if(null!==(t=Mo(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*Fi()-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=Fi()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=e.lastEffect,r.renderingStartTime=Fi(),n.sibling=null,e=Lo.current,ci(Lo,o?1&e|2:1&e),n):null}throw Error(a(156,e.tag))}function Ya(t){switch(t.tag){case 1:vi(t.type)&&yi();var e=t.effectTag;return 4096&e?(t.effectTag=-4097&e|64,t):null;case 3:if(Ro(),ui(hi),ui(fi),0!==(64&(e=t.effectTag)))throw Error(a(285));return t.effectTag=-4097&e|64,t;case 5:return Do(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 Ro(),null;case 10:return to(t),null;default:return null}}function Ja(t,e){return{value:t,source:e,stack:mt(e)}}Va=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,c=e.stateNode;switch(Co(Oo.current),t=null,n){case"input":a=Tt(c,a),r=Tt(c,r),t=[];break;case"option":a=Ot(c,a),r=Ot(c,r),t=[];break;case"select":a=i({},a,{value:void 0}),r=i({},r,{value:void 0}),t=[];break;case"textarea":a=Nt(c,a),r=Nt(c,r),t=[];break;default:"function"!==typeof a.onClick&&"function"===typeof r.onClick&&(c.onclick=cn)}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 c=a[s])c.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 l=r[s];if(c=null!=a?a[s]:void 0,r.hasOwnProperty(s)&&l!==c&&(null!=l||null!=c))if("style"===s)if(c){for(u in c)!c.hasOwnProperty(u)||l&&l.hasOwnProperty(u)||(n||(n={}),n[u]="");for(u in l)l.hasOwnProperty(u)&&c[u]!==l[u]&&(n||(n={}),n[u]=l[u])}else n||(t||(t=[]),t.push(s,n)),n=l;else"dangerouslySetInnerHTML"===s?(l=l?l.__html:void 0,c=c?c.__html:void 0,null!=l&&c!==l&&(t=t||[]).push(s,l)):"children"===s?c===l||"string"!==typeof l&&"number"!==typeof l||(t=t||[]).push(s,""+l):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(k.hasOwnProperty(s)?(null!=l&&un(o,s),t||c===l||(t=[])):(t=t||[]).push(s,l))}n&&(t=t||[]).push("style",n),o=t,(e.updateQueue=o)&&(e.effectTag|=4)}},za=function(t,e,n,r){n!==r&&(e.effectTag|=4)};var Za="function"===typeof WeakSet?WeakSet:Set;function ts(t,e){var n=e.source,r=e.stack;null===r&&null!==n&&(r=mt(n)),null!==n&&yt(n.type),e=e.value,null!==t&&1===t.tag&&yt(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){gu(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:$i(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:$i(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&&mn(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 Tu&&Tu(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;zi(97<n?97:n,(function(){var t=r;do{var n=t.destroy;if(void 0!==n){var i=e;try{n()}catch(o){gu(i,o)}}t=t.next}
vendor: 5,979 bytes, line 2
2while(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){gu(t,n)}}(e,n);break;case 5:es(e);break;case 4:ls(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 cs(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&&(Vt(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=cn));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 ls(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,c=o,l=n,f=c;;)if(as(u,f,l),null!==f.child&&4!==f.tag)f.child.return=f,f=f.child;else{if(f===c)break t;for(;null===f.sibling;){if(null===f.return||f.return===c)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}i?(u=r,c=o.stateNode,8===u.nodeType?u.parentNode.removeChild(c):u.removeChild(c)):r.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){r=o.stateNode.containerInfo,i=!0,o.child.return=o,o=o.child;continue}}else if(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;if(e.updateQueue=null,null!==o){for(n[In]=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?Ft(n,u):"children"===s?Vt(n,u):Y(n,s,u,e)}switch(t){case"input":It(n,r);break;case"textarea":Pt(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(t=r.value)?At(n,!!r.multiple,t,!1):e!==!!r.multiple&&(null!=r.defaultValue?At(n,!!r.multiple,r.defaultValue,!0):At(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,js=Fi()),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 Za),e.forEach((function(e){var r=wu.bind(null,t,e);n.has(e)||(n.add(e),e.then(r,r))}))}}var ps="function"===typeof WeakMap?WeakMap:Map;function ds(t,e,n){(n=so(n,null)).tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){Ls||(Ls=!0,Ms=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===Us?Us=new Set([this]):Us.add(this),ts(t,e));var n=e.stack;this.componentDidCatch(e.value,{componentStack:null!==n?n:""})}),n}var ys,ms=Math.ceil,gs=Q.ReactCurrentDispatcher,bs=Q.ReactCurrentOwner,ws=0,Es=3,Ts=4,_s=0,ks=null,Is=null,xs=0,Ss=ws,Os=null,As=1073741823,Ns=1073741823,Cs=null,Ps=0,Rs=!1,js=0,Ds=null,Ls=!1,Ms=null,Us=null,Fs=!1,Vs=null,Bs=90,zs=null,qs=0,Ws=null,Hs=0;function Gs(){return 0!==(48&_s)?1073741821-(Fi()/10|0):0!==Hs?Hs:Hs=1073741821-(Fi()/10|0)}function Ks(t,e,n){if(0===(2&(e=e.mode)))return 1073741823;var r=Vi();if(0===(4&e))return 99===r?1073741823:1073741822;if(0!==(16&_s))return xs;if(null!==n)t=Ki(t,0|n.timeoutMs||5e3,250);else switch(r){case 99:t=1073741823;break;case 98:t=Ki(t,150,100);break;case 97:case 96:t=Ki(t,5e3,250);break;case 95:t=2;break;default:throw Error(a(326))}return null!==ks&&t===xs&&--t,t}
vendor: 22,133 bytes, line 2
2function $s(t,e){if(50<qs)throw qs=0,Ws=null,Error(a(185));if(null!==(t=Xs(t,e))){var n=Vi();1073741823===e?0!==(8&_s)&&0===(48&_s)?Zs(t):(Ys(t),0===_s&&Hi()):Ys(t),0===(4&_s)||98!==n&&99!==n||(null===zs?zs=new Map([[t,e]]):(void 0===(n=zs.get(t))||n>e)&&zs.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),Ss===Ts&&Ru(i,xs)),ju(i,e)),i}function Qs(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 Ys(t){if(0!==t.lastExpiredTime)t.callbackExpirationTime=1073741823,t.callbackPriority=99,t.callbackNode=Wi(Zs.bind(null,t));else{var e=Qs(t),n=t.callbackNode;if(0===e)null!==n&&(t.callbackNode=null,t.callbackExpirationTime=0,t.callbackPriority=90);else{var r=Gs();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&&_i(n)}t.callbackExpirationTime=e,t.callbackPriority=r,e=1073741823===e?Wi(Zs.bind(null,t)):qi(r,Js.bind(null,t),{timeout:10*(1073741821-e)-Fi()}),t.callbackNode=e}}}function Js(t,e){if(Hs=0,e)return Du(t,e=Gs()),Ys(t),null;var n=Qs(t);if(0!==n){if(e=t.callbackNode,0!==(48&_s))throw Error(a(327));if(vu(),t===ks&&n===xs||nu(t,n),null!==Is){var r=_s;_s|=16;for(var i=iu();;)try{uu();break}catch(u){ru(t,u)}if(Zi(),_s=r,gs.current=i,1===Ss)throw e=Os,nu(t,n),Ru(t,n),Ys(t),e;if(null===Is)switch(i=t.finishedWork=t.current.alternate,t.finishedExpirationTime=n,r=Ss,ks=null,r){case ws:case 1:throw Error(a(345));case 2:Du(t,2<n?2:n);break;case Es:if(Ru(t,n),n===(r=t.lastSuspendedTime)&&(t.nextKnownPendingLevel=fu(i)),1073741823===As&&10<(i=js+500-Fi())){if(Rs){var o=t.lastPingedTime;if(0===o||o>=n){t.lastPingedTime=n,nu(t,n);break}}if(0!==(o=Qs(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 Ts:if(Ru(t,n),n===(r=t.lastSuspendedTime)&&(t.nextKnownPendingLevel=fu(i)),Rs&&(0===(i=t.lastPingedTime)||i>=n)){t.lastPingedTime=n,nu(t,n);break}if(0!==(i=Qs(t))&&i!==n)break;if(0!==r&&r!==n){t.lastPingedTime=r;break}if(1073741823!==Ns?r=10*(1073741821-Ns)-Fi():1073741823===As?r=0:(r=10*(1073741821-As)-5e3,0>(r=(i=Fi())-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*ms(r/1960))-r)&&(r=n)),10<r){t.timeoutHandle=bn(hu.bind(null,t),r);break}hu(t);break;case 5:if(1073741823!==As&&null!==Cs){o=As;var s=Cs;if(0>=(r=0|s.busyMinDurationMs)?r=0:(i=0|s.busyDelayMs,r=(o=Fi()-(10*(1073741821-o)-(0|s.timeoutMs||5e3)))<=i?0:i+r-o),10<r){Ru(t,n),t.timeoutHandle=bn(hu.bind(null,t),r);break}}hu(t);break;default:throw Error(a(329))}if(Ys(t),t.callbackNode===e)return Js.bind(null,t)}}return null}function Zs(t){var e=t.lastExpiredTime;if(e=0!==e?e:1073741823,0!==(48&_s))throw Error(a(327));if(vu(),t===ks&&e===xs||nu(t,e),null!==Is){var n=_s;_s|=16;for(var r=iu();;)try{su();break}catch(i){ru(t,i)}if(Zi(),_s=n,gs.current=r,1===Ss)throw n=Os,nu(t,e),Ru(t,e),Ys(t),n;if(null!==Is)throw Error(a(261));t.finishedWork=t.current.alternate,t.finishedExpirationTime=e,ks=null,hu(t),Ys(t)}return null}function tu(t,e){var n=_s;_s|=1;try{return t(e)}finally{0===(_s=n)&&Hi()}}function eu(t,e){var n=_s;_s&=-2,_s|=8;try{return t(e)}finally{0===(_s=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!==Is)for(n=Is.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&yi();break;case 3:Ro(),ui(hi),ui(fi);break;case 5:Do(r);break;case 4:Ro();break;case 13:case 19:ui(Lo);break;case 10:to(r)}n=n.return}ks=t,Is=xu(t.current,null),xs=e,Ss=ws,Os=null,Ns=As=1073741823,Cs=null,Ps=0,Rs=!1}function ru(t,e){for(;;){try{if(Zi(),Fo.current=ya,Ho)for(var n=zo.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(Bo=0,Wo=qo=zo=null,Ho=!1,null===Is||null===Is.return)return Ss=1,Os=e,Is=null;t:{var i=t,o=Is.return,a=Is,s=e;if(e=xs,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 c=a.alternate;c?(a.updateQueue=c.updateQueue,a.memoizedState=c.memoizedState,a.expirationTime=c.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var l=0!==(1&Lo.current),f=o;do{var h;if(h=13===f.tag){var p=f.memoizedState;if(null!==p)h=null!==p.dehydrated;else{var d=f.memoizedProps;h=void 0!==d.fallback&&(!0!==d.unstable_avoidThisFallback||!l)}}if(h){var v=f.updateQueue;if(null===v){var y=new Set;y.add(u),f.updateQueue=y}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 m=so(1073741823,null);m.tag=2,uo(a,m)}a.expirationTime=1073741823;break t}s=void 0,a=e;var g=i.pingCache;if(null===g?(g=i.pingCache=new ps,s=new Set,g.set(u,s)):void 0===(s=g.get(u))&&(s=new Set,g.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((yt(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."+mt(a))}5!==Ss&&(Ss=2),s=Ja(s,a),f=o;do{switch(f.tag){case 3:u=s,f.effectTag|=4096,f.expirationTime=e,co(f,ds(f,u,e));break t;case 1:u=s;var w=f.type,E=f.stateNode;if(0===(64&f.effectTag)&&("function"===typeof w.getDerivedStateFromError||null!==E&&"function"===typeof E.componentDidCatch&&(null===Us||!Us.has(E)))){f.effectTag|=4096,f.expirationTime=e,co(f,vs(f,u,e));break t}}f=f.return}while(null!==f)}Is=lu(Is)}catch(T){e=T;continue}break}}function iu(){var t=gs.current;return gs.current=ya,null===t?ya:t}function ou(t,e){t<As&&2<t&&(As=t),null!==e&&t<Ns&&2<t&&(Ns=t,Cs=e)}function au(t){t>Ps&&(Ps=t)}function su(){for(;null!==Is;)Is=cu(Is)}function uu(){for(;null!==Is&&!Ri();)Is=cu(Is)}function cu(t){var e=ys(t.alternate,t,xs);return t.memoizedProps=t.pendingProps,null===e&&(e=lu(t)),bs.current=null,e}function lu(t){Is=t;do{var e=Is.alternate;if(t=Is.return,0===(2048&Is.effectTag)){if(e=Qa(e,Is,xs),1===xs||1!==Is.childExpirationTime){for(var n=0,r=Is.child;null!==r;){var i=r.expirationTime,o=r.childExpirationTime;i>n&&(n=i),o>n&&(n=o),r=r.sibling}Is.childExpirationTime=n}if(null!==e)return e;null!==t&&0===(2048&t.effectTag)&&(null===t.firstEffect&&(t.firstEffect=Is.firstEffect),null!==Is.lastEffect&&(null!==t.lastEffect&&(t.lastEffect.nextEffect=Is.firstEffect),t.lastEffect=Is.lastEffect),1<Is.effectTag&&(null!==t.lastEffect?t.lastEffect.nextEffect=Is:t.firstEffect=Is,t.lastEffect=Is))}else{if(null!==(e=Ya(Is)))return e.effectTag&=2047,e;null!==t&&(t.firstEffect=t.lastEffect=null,t.effectTag|=2048)}if(null!==(e=Is.sibling))return e;Is=t}while(null!==Is);return Ss===ws&&(Ss=5),null}function fu(t){var e=t.expirationTime;return e>(t=t.childExpirationTime)?e:t}function hu(t){var e=Vi();return zi(99,pu.bind(null,t,e)),null}function pu(t,e){do{vu()}while(null!==Vs);if(0!==(48&_s))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&&(Is=ks=null,xs=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,null!==i){var o=_s;_s|=32,bs.current=null,vn=Ge;var s=pn();if(dn(s)){if("selectionStart"in s)var u={start:s.selectionStart,end:s.selectionEnd};else t:{var c=(u=(u=s.ownerDocument)&&u.defaultView||window).getSelection&&u.getSelection();if(c&&0!==c.rangeCount){u=c.anchorNode;var l=c.anchorOffset,f=c.focusNode;c=c.focusOffset;try{u.nodeType,f.nodeType}catch(x){u=null;break t}var h=0,p=-1,d=-1,v=0,y=0,m=s,g=null;e:for(;;){for(var b;m!==u||0!==l&&3!==m.nodeType||(p=h+l),m!==f||0!==c&&3!==m.nodeType||(d=h+c),3===m.nodeType&&(h+=m.nodeValue.length),null!==(b=m.firstChild);)g=m,m=b;for(;;){if(m===s)break e;if(g===u&&++v===l&&(p=h),g===f&&++y===c&&(d=h),null!==(b=m.nextSibling))break;g=(m=g).parentNode}m=b}u=-1===p||-1===d?null:{start:p,end:d}}else u=null}u=u||{start:0,end:0}}else u=null;yn={activeElementDetached:null,focusedElem:s,selectionRange:u},Ge=!1,Ds=i;do{try{du()}catch(x){if(null===Ds)throw Error(a(330));gu(Ds,x),Ds=Ds.nextEffect}}while(null!==Ds);Ds=i;do{try{for(s=t,u=e;null!==Ds;){var w=Ds.effectTag;if(16&w&&Vt(Ds.stateNode,""),128&w){var E=Ds.alternate;if(null!==E){var T=E.ref;null!==T&&("function"===typeof T?T(null):T.current=null)}}switch(1038&w){case 2:cs(Ds),Ds.effectTag&=-3;break;case 6:cs(Ds),Ds.effectTag&=-3,fs(Ds.alternate,Ds);break;case 1024:Ds.effectTag&=-1025;break;case 1028:Ds.effectTag&=-1025,fs(Ds.alternate,Ds);break;case 4:fs(Ds.alternate,Ds);break;case 8:ls(s,l=Ds,u),ss(l)}Ds=Ds.nextEffect}}catch(x){if(null===Ds)throw Error(a(330));gu(Ds,x),Ds=Ds.nextEffect}}while(null!==Ds);if(T=yn,E=pn(),w=T.focusedElem,u=T.selectionRange,E!==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&&dn(w)&&(E=u.start,void 0===(T=u.end)&&(T=E),"selectionStart"in w?(w.selectionStart=E,w.selectionEnd=Math.min(T,w.value.length)):(T=(E=w.ownerDocument||document)&&E.defaultView||window).getSelection&&(T=T.getSelection(),l=w.textContent.length,s=Math.min(u.start,l),u=void 0===u.end?s:Math.min(u.end,l),!T.extend&&s>u&&(l=u,u=s,s=l),l=hn(w,s),f=hn(w,u),l&&f&&(1!==T.rangeCount||T.anchorNode!==l.node||T.anchorOffset!==l.offset||T.focusNode!==f.node||T.focusOffset!==f.offset)&&((E=E.createRange()).setStart(l.node,l.offset),T.removeAllRanges(),s>u?(T.addRange(E),T.extend(f.node,f.offset)):(E.setEnd(f.node,f.offset),T.addRange(E))))),E=[];for(T=w;T=T.parentNode;)1===T.nodeType&&E.push({element:T,left:T.scrollLeft,top:T.scrollTop});for("function"===typeof w.focus&&w.focus(),w=0;w<E.length;w++)(T=E[w]).element.scrollLeft=T.left,T.element.scrollTop=T.top}Ge=!!vn,yn=vn=null,t.current=n,Ds=i;do{try{for(w=t;null!==Ds;){var _=Ds.effectTag;if(36&_&&os(w,Ds.alternate,Ds),128&_){E=void 0;var k=Ds.ref;if(null!==k){var I=Ds.stateNode;switch(Ds.tag){case 5:E=I;break;default:E=I}"function"===typeof k?k(E):k.current=E}}Ds=Ds.nextEffect}}catch(x){if(null===Ds)throw Error(a(330));gu(Ds,x),Ds=Ds.nextEffect}}while(null!==Ds);Ds=null,ji(),_s=o}else t.current=n;if(Fs)Fs=!1,Vs=t,Bs=e;else for(Ds=i;null!==Ds;)e=Ds.nextEffect,Ds.nextEffect=null,Ds=e;if(0===(e=t.firstPendingTime)&&(Us=null),1073741823===e?t===Ws?qs++:(qs=0,Ws=t):qs=0,"function"===typeof Eu&&Eu(n.stateNode,r),Ys(t),Ls)throw Ls=!1,t=Ms,Ms=null,t;return 0!==(8&_s)?null:(Hi(),null)}function du(){for(;null!==Ds;){var t=Ds.effectTag;0!==(256&t)&&ns(Ds.alternate,Ds),0===(512&t)||Fs||(Fs=!0,qi(97,(function(){return vu(),null}))),Ds=Ds.nextEffect}}function vu(){if(90!==Bs){var t=97<Bs?97:Bs;return Bs=90,zi(t,yu)}}function yu(){if(null===Vs)return!1;var t=Vs;if(Vs=null,0!==(48&_s))throw Error(a(331));var e=_s;for(_s|=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));gu(t,r)}n=t.nextEffect,t.nextEffect=null,t=n}return _s=e,Hi(),!0}function mu(t,e,n){uo(t,e=ds(t,e=Ja(n,e),1073741823)),null!==(t=Xs(t,1073741823))&&Ys(t)}function gu(t,e){if(3===t.tag)mu(t,t,e);else for(var n=t.return;null!==n;){if(3===n.tag){mu(n,t,e);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Us||!Us.has(r))){uo(n,t=vs(n,t=Ja(e,t),1073741823)),null!==(n=Xs(n,1073741823))&&Ys(n);break}}n=n.return}}function bu(t,e,n){var r=t.pingCache;null!==r&&r.delete(e),ks===t&&xs===n?Ss===Ts||Ss===Es&&1073741823===As&&Fi()-js<500?nu(t,xs):Rs=!0:Pu(t,n)&&(0!==(e=t.lastPingedTime)&&e<n||(t.lastPingedTime=n,Ys(t)))}function wu(t,e){var n=t.stateNode;null!==n&&n.delete(e),0===(e=0)&&(e=Ks(e=Gs(),t,null)),null!==(t=Xs(t,e))&&Ys(t)}ys=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:Fa(e),Oa();break;case 5:if(jo(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,ci(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):(ci(Lo,1&Lo.current),null!==(e=$a(t,e,n))?e.sibling:null);ci(Lo,1&Lo.current);break;case 19:if(r=e.childExpirationTime>=n,0!==(64&t.effectTag)){if(r)return Ka(t,e,n);e.effectTag|=64}if(null!==(i=e.memoizedState)&&(i.rendering=null,i.tail=null),ci(Lo,Lo.current),!r)return null}return $a(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=di(e,fi.current),no(e,n),i=$o(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=yo,e.stateNode=i,i._reactInternalFiber=e,wo(e,r,t,n),e=Ua(null,e,r,!0,o,n)}else e.tag=0,Ca(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 Iu(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=$i(i,t),o){case 0:e=La(null,e,i,t,n);break t;case 1:e=Ma(null,e,i,t,n);break t;case 11:e=Pa(null,e,i,t,n);break t;case 14:e=Ra(null,e,i,$i(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:$i(r,i),n);case 1:return r=e.type,i=e.pendingProps,Ma(t,e,r,i=e.elementType===r?i:$i(r,i),n);case 3:if(Fa(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),lo(e,r,null,n),(r=e.memoizedState.element)===i)Oa(),e=$a(t,e,n);else{if((i=e.stateNode.hydrate)&&(Ea=En(e.stateNode.containerInfo.firstChild),wa=e,i=Ta=!0),i)for(n=xo(e,null,r,n),e.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Ca(t,e,r,n),Oa();e=e.child}return e;case 5:return jo(e),null===t&&Ia(e),r=e.type,i=e.pendingProps,o=null!==t?t.memoizedProps:null,s=i.children,gn(r,i)?s=null:null!==o&&gn(r,o)&&(e.effectTag|=16),Da(t,e),4&e.mode&&1!==n&&i.hidden?(e.expirationTime=e.childExpirationTime=1,e=null):(Ca(t,e,s,n),e=e.child),e;case 6:return null===t&&Ia(e),null;case 13:return Wa(t,e,n);case 4:return Po(e,e.stateNode.containerInfo),r=e.pendingProps,null===t?e.child=Io(e,null,r,n):Ca(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,Pa(t,e,r,i=e.elementType===r?i:$i(r,i),n);case 7:return Ca(t,e,e.pendingProps,n),e.child;case 8:case 12:return Ca(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(ci(Xi,u._currentValue),u._currentValue=o,null!==s)if(u=s.value,0===(o=Mr(u,o)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(u,o):1073741823))){if(s.children===i.children&&!hi.current){e=$a(t,e,n);break t}}else for(null!==(u=e.child)&&(u.return=e);null!==u;){var c=u.dependencies;if(null!==c){s=u.child;for(var l=c.firstContext;null!==l;){if(l.context===r&&0!==(l.observedBits&o)){1===u.tag&&((l=so(n,null)).tag=2,uo(u,l)),u.expirationTime<n&&(u.expirationTime=n),null!==(l=u.alternate)&&l.expirationTime<n&&(l.expirationTime=n),eo(u.return,n),c.expirationTime<n&&(c.expirationTime=n);break}l=l.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}Ca(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,Ca(t,e,r,n),e.child;case 14:return o=$i(i=e.type,e.pendingProps),Ra(t,e,i,o=$i(i.type,o),r,n);case 15:return ja(t,e,e.type,e.pendingProps,r,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:$i(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),go(e,r,i),wo(e,r,i,n),Ua(null,e,r,!0,t,n);case 19:return Ka(t,e,n)}throw Error(a(156,e.tag))};var Eu=null,Tu=null;function _u(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 _u(t,e,n,r)}function Iu(t){return!(!(t=t.prototype)||!t.isReactComponent)}function xu(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 Su(t,e,n,r,i,o){var s=2;if(r=t,"function"===typeof t)Iu(t)&&(s=1);else if("string"===typeof t)s=5;else t:switch(t){case nt:return Ou(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 ct:return(t=ku(13,n,e,i)).type=ct,t.elementType=ct,t.expirationTime=o,t;case lt:return(t=ku(19,n,e,i)).elementType=lt,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 pt: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 Ou(t,e,n,r){return(t=ku(7,t,r,e)).expirationTime=n,t}function Au(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 Cu(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 Ru(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 ju(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 Du(t,e){var n=t.lastExpiredTime;(0===n||n>e)&&(t.lastExpiredTime=e)}function Lu(t,e,n,r){var i=e.current,o=Gs(),s=ho.suspense;o=Ks(o,i,s);t:if(n){e:{if(Zt(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 c=n.type;if(vi(c)){n=gi(n,c,u);break t}}n=u}else n=li;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),$s(i,o),o}function Mu(t){if(!(t=t.current).child)return null;switch(t.child.tag){case 5:default:return t.child.stateNode}}function Uu(t,e){null!==(t=t.memoizedState)&&null!==t.dehydrated&&t.retryTime<e&&(t.retryTime=e)}function Fu(t,e){Uu(t,e),(t=t.alternate)&&Uu(t,e)}function Vu(t,e,n){var r=new Cu(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[xn]=r.current,n&&0!==e&&function(t,e){var n=Jt(e);xe.forEach((function(t){de(t,e,n)}
vendor: 4,313 bytes, line 2
2)),Se.forEach((function(t){de(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 zu(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=Mu(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 Vu(t,0,e?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"===typeof i){var u=i;i=function(){var t=Mu(a);u.call(t)}}eu((function(){Lu(e,a,t,i)}))}return Mu(a)}function qu(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 qu(t,e,null,n)}Vu.prototype.render=function(t){Lu(t,this._internalRoot,null,null)},Vu.prototype.unmount=function(){var t=this._internalRoot,e=t.containerInfo;Lu(null,t,null,(function(){e[xn]=null}))},ve=function(t){if(13===t.tag){var e=Ki(Gs(),150,100);$s(t,e),Fu(t,e)}},ye=function(t){13===t.tag&&($s(t,3),Fu(t,3))},me=function(t){if(13===t.tag){var e=Gs();$s(t,e=Ks(e,t,null)),Fu(t,e)}},O=function(t,e,n){switch(e){case"input":if(It(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));Et(r),It(r,i)}}}break;case"textarea":Pt(t,n);break;case"select":null!=(e=n.value)&&At(t,!!n.multiple,e,!1)}},j=tu,D=function(t,e,n,r,i){var o=_s;_s|=4;try{return zi(98,t.bind(null,e,n,r,i))}finally{0===(_s=o)&&Hi()}},L=function(){0===(49&_s)&&(function(){if(null!==zs){var t=zs;zs=null,t.forEach((function(t,e){Du(e,t),Ys(e)})),Hi()}}(),vu())},M=function(t,e){var n=_s;_s|=2;try{return t(e)}finally{0===(_s=n)&&Hi()}};var Hu={Events:[On,An,Nn,x,_,Mn,function(t){ie(t,Ln)},P,R,Ye,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);Eu=function(t){try{e.onCommitFiberRoot(n,t,void 0,64===(64&t.current.effectTag))}catch(r){}},Tu=function(t){try{e.onCommitFiberUnmount(n,t)}catch(r){}}}catch(r){}})(i({},t,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Q.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:Sn,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&_s))throw Error(a(187));var n=_s;_s|=1;try{return zi(99,t.bind(null,e))}finally{_s=n,Hi()}},e.hydrate=function(t,e,n){if(!Bu(e))throw Error(a(200));return zu(null,t,e,!0,n)},e.render=function(t,e,n){if(!Bu(e))throw Error(a(200));return zu(null,t,e,!1,n)},e.unmountComponentAtNode=function(t){if(!Bu(t))throw Error(a(40));return!!t._reactRootContainer&&(eu((function(){zu(null,null,t,!1,(function(){t._reactRootContainer=null,t[xn]=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 zu(t,e,n,!1,r)},e.version="16.13.1"},function(t,e,n){"use strict";
2t.exports=n(98)},function(t,e,n){"use strict";var r,i,o,a,s;if("undefined"===typeof window||"function"!==typeof MessageChannel){var u=null,c=null,l=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(l,0))},i=function(t,e){c=setTimeout(t,e)},o=function(){clearTimeout(c)},a=function(){return!1},s=e.unstable_forceFrameRate=function(){}}else{var h=window.performance,p=window.Date,d=window.setTimeout,v=window.clearTimeout;if("undefined"!==typeof console){var y=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 y&&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 m=p.now();e.unstable_now=function(){return p.now()-m}}var g=!1,b=null,w=-1,E=5,T=0;a=function(){return e.unstable_now()>=T},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"):E=0<t?Math.floor(1e3/t):5};var _=new MessageChannel,k=_.port2;_.port1.onmessage=function(){if(null!==b){var t=e.unstable_now();T=t+E;try{b(!0,t)?k.postMessage(null):(g=!1,b=null)}catch(n){throw k.postMessage(null),n}}else g=!1},r=function(t){b=t,g||(g=!0,k.postMessage(null))},i=function(t,n){w=d((function(){t(e.unstable_now())}),n)},o=function(){v(w),w=-1}}function I(t,e){var n=t.length;t.push(e);t:for(;;){var r=n-1>>>1,i=t[r];if(!(void 0!==i&&0<O(i,e)))break t;t[r]=e,t[n]=i,n=r}}function x(t){return void 0===(t=t[0])?null:t}function S(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>O(a,n))void 0!==u&&0>O(u,a)?(t[r]=u,t[s]=n,r=s):(t[r]=a,t[o]=n,r=o);else{if(!(void 0!==u&&0>O(u,n)))break t;t[r]=u,t[s]=n,r=s}}}return e}return null}function O(t,e){var n=t.sortIndex-e.sortIndex;return 0!==n?n:t.id-e.id}var A=[],N=[],C=1,P=null,R=3,j=!1,D=!1,L=!1;function M(t){for(var e=x(N);null!==e;){if(null===e.callback)S(N);else{if(!(e.startTime<=t))break;S(N),e.sortIndex=e.expirationTime,I(A,e)}e=x(N)}}function U(t){if(L=!1,M(t),!D)if(null!==x(A))D=!0,r(F);else{var e=x(N);null!==e&&i(U,e.startTime-t)}}function F(t,n){D=!1,L&&(L=!1,o()),j=!0;var r=R;try{for(M(n),P=x(A);null!==P&&(!(P.expirationTime>n)||t&&!a());){var s=P.callback;if(null!==s){P.callback=null,R=P.priorityLevel;var u=s(P.expirationTime<=n);n=e.unstable_now(),"function"===typeof u?P.callback=u:P===x(A)&&S(A),M(n)}else S(A);P=x(A)}if(null!==P)var c=!0;else{var l=x(N);null!==l&&i(U,l.startTime-n),c=!1}return c}finally{P=null,R=r,j=!1}}function V(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(){D||j||(D=!0,r(F))},e.unstable_getCurrentPriorityLevel=function(){return R},e.unstable_getFirstCallbackNode=function(){return x(A)},e.unstable_next=function(t){switch(R){case 1:case 2:case 3:var e=3;break;default:e=R}var n=R;R=e;try{return t()}finally{R=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=R;R=t;try{return e()}finally{R=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:V(t)}else a=V(t),u=s;return t={id:C++,callback:n,priorityLevel:t,startTime:u,expirationTime:a=u+a,sortIndex:-1},u>s?(t.sortIndex=u,I(N,t),null===x(A)&&t===x(N)&&(L?o():L=!0,i(U,u-s))):(t.sortIndex=a,I(A,t),D||j||(D=!0,r(F))),t},e.unstable_shouldYield=function(){var t=e.unstable_now();M(t);var n=x(A);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=R;return function(){var n=R;R=e;try{return t.apply(this,arguments)}finally{R=n}}}},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 l?e:l,o=Object.create(i.prototype),a=new T(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===c)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 l=u(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===c)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.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 c={};function l(){}function f(){}function h(){}var p={};p[i]=function(){return this};var d=Object.getPrototypeOf,v=d&&d(d(_([])));v&&v!==e&&n.call(v,i)&&(p=v);var y=h.prototype=l.prototype=Object.create(p);function m(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function g(t,e){var r;this._invoke=function(i,o){function a(){return new e((function(r,a){!function r(i,o,a,s){var c=u(t[i],t,o);if("throw"!==c.type){var l=c.arg,f=l.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){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(c.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,383 bytes, line 2
2(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return c;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=u(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,c;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,c):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,c)}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 E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function _(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=y.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(y),t},t.awrap=function(t){return{__await:t}},m(g.prototype),g.prototype[o]=function(){return this},t.AsyncIterator=g,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new g(s(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},m(y),y[a]="Generator",y[i]=function(){return this},y.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=_,T.prototype={constructor:T,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(E),!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,c):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),c},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),E(n),c}},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;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:_(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},t}(t.exports);try{regeneratorRuntime=r}catch(i){Function("r","regeneratorRuntime = r")(r)}},function(t,e,n){"use strict";n(101)},function(t,e,n){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(26),o=(r=n(4))&&"object"==typeof r&&"default"in r?r.default:r,a=n(84),s=n(73),u=n(49),c=n(102),l=o.SDK_VERSION,f=function(){function t(t){this.uid=t}return t.prototype.t=function(){return null!=this.uid},t.prototype.s=function(){return this.t()?"uid:"+this.uid:"anonymous-user"},t.prototype.isEqual=function(t){return t.uid===this.uid},t}();f.UNAUTHENTICATED=new f(null),f.i=new f("google-credentials-uid"),f.h=new f("first-party-uid");var h={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"},p=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),d=function(t,e){this.user=e,this.type="OAuth",this.o={},this.o.Authorization="Bearer "+t},v=function(){function t(){this.u=null}return t.prototype.getToken=function(){return Promise.resolve(null)},t.prototype._=function(){},t.prototype.l=function(t){this.u=t,t(f.UNAUTHENTICATED)},t.prototype.T=function(){this.u=null},t}(),y=function(){function t(t){var e=this;this.I=null,this.currentUser=f.UNAUTHENTICATED,this.R=!1,this.A=0,this.u=null,this.forceRefresh=!1,this.I=function(){e.A++,e.currentUser=e.m(),e.R=!0,e.u&&e.u(e.currentUser)},this.A=0,this.auth=t.getImmediate({optional:!0}),this.auth?this.auth.addAuthTokenListener(this.I):(this.I(null),t.get().then((function(t){e.auth=t,e.I&&e.auth.addAuthTokenListener(e.I)}),(function(){})))}return t.prototype.getToken=function(){var t=this,e=this.A,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then((function(n){if(t.A!==e)throw new p(h.ABORTED,"getToken aborted due to token change.");return n?(Ee("string"==typeof n.accessToken),new d(n.accessToken,t.currentUser)):null})):Promise.resolve(null)},t.prototype._=function(){this.forceRefresh=!0},t.prototype.l=function(t){this.u=t,this.R&&t(this.currentUser)},t.prototype.T=function(){this.auth&&this.auth.removeAuthTokenListener(this.I),this.I=null,this.u=null},t.prototype.m=function(){var t=this.auth&&this.auth.getUid();return Ee(null===t||"string"==typeof t),new f(t)},t}(),m=function(){function t(t,e){this.P=t,this.V=e,this.type="FirstParty",this.user=f.h}return Object.defineProperty(t.prototype,"o",{get:function(){var t={"X-Goog-AuthUser":this.V},e=this.P.auth.g([]);return e&&(t.Authorization=e),t},enumerable:!0,configurable:!0}),t}(),g=function(){function t(t,e){this.P=t,this.V=e}return t.prototype.getToken=function(){return Promise.resolve(new m(this.P,this.V))},t.prototype.l=function(t){t(f.h)},t.prototype.T=function(){},t.prototype._=function(){},t}(),b=function(){function t(t,e){if(this.seconds=t,this.nanoseconds=e,e<0)throw new p(h.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(e>=1e9)throw new p(h.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(t<-62135596800)throw new p(h.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t);if(t>=253402300800)throw new p(h.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.p=function(t){return this.seconds===t.seconds?ke(this.nanoseconds,t.nanoseconds):ke(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}(),w=function(){function t(t){this.timestamp=t}return t.v=function(e){return new t(e)},t.min=function(){return new t(new b(0,0))},t.prototype.S=function(t){return this.timestamp.p(t.timestamp)},t.prototype.isEqual=function(t){return this.timestamp.isEqual(t.timestamp)},t.prototype.D=function(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3},t.prototype.toString=function(){return"SnapshotVersion("+this.timestamp.toString()+")"},t.prototype.C=function(){return this.timestamp},t}(),E=function(){function t(t,e,n){void 0===e?e=0:e>t.length&&we(),void 0===n?n=t.length-e:n>t.length-e&&we(),this.segments=t,this.offset=e,this.F=n}return Object.defineProperty(t.prototype,"length",{get:function(){return this.F},enumerable:!0,configurable:!0}),t.prototype.isEqual=function(e){return 0===t.N(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.k(n)},t.prototype.limit=function(){return this.offset+this.length},t.prototype.$=function(t){return t=void 0===t?1:t,this.k(this.segments,this.offset+t,this.length-t)},t.prototype.M=function(){return this.k(this.segments,this.offset,this.length-1)},t.prototype.L=function(){return this.segments[this.offset]},t.prototype.O=function(){return this.get(this.length-1)},t.prototype.get=function(t){return this.segments[this.offset+t]},t.prototype.B=function(){return 0===this.length},t.prototype.q=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.U=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.W=function(){return this.segments.slice(this.offset,this.limit())},t.N=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}(),T=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.k=function(t,n,r){return new e(t,n,r)},e.prototype.j=function(){return this.W().join("/")},e.prototype.toString=function(){return this.j()},e.K=function(t){if(t.indexOf("//")>=0)throw new p(h.INVALID_ARGUMENT,"Invalid path ("+t+"). Paths must not contain // in them.");return new e(t.split("/").filter((function(t){return t.length>0})))},e}(E);T.G=new T([]);var _=/^[_a-zA-Z][_a-zA-Z0-9]*$/,k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.k=function(t,n,r){return new e(t,n,r)},e.H=function(t){return _.test(t)},e.prototype.j=function(){return this.W().map((function(t){return t=t.replace("\\","\\\\").replace("`","\\`"),e.H(t)||(t="`"+t+"`"),t})).join(".")},e.prototype.toString=function(){return this.j()},e.prototype.Y=function(){return 1===this.length&&"__name__"===this.get(0)},e.J=function(){return new e(["__name__"])},e.X=function(t){for(var n=[],r="",i=0,o=function(){if(0===r.length)throw new p(h.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 p(h.INVALID_ARGUMENT,"Path has trailing escape character: "+t);var u=t[i+1];if("\\"!==u&&"."!==u&&"`"!==u)throw new p(h.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 p(h.INVALID_ARGUMENT,"Unterminated ` in path: "+t);return new e(n)},e}(E);k.G=new k([]);var I=function(){function t(t){this.path=t}return t.Z=function(e){return new t(T.K(e).$(5))},t.prototype.tt=function(t){return this.path.length>=2&&this.path.get(this.path.length-2)===t},t.prototype.isEqual=function(t){return null!==t&&0===T.N(this.path,t.path)},t.prototype.toString=function(){return this.path.toString()},t.N=function(t,e){return T.N(t.path,e.path)},t.et=function(t){return t.length%2==0},t.st=function(e){return new t(new T(e.slice()))},t}();function x(t){var e=0;for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e++;return e}function S(t,e){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(n,t[n])}function O(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}
2I.EMPTY=new I(new T([]));var A=function(){function t(t){this.it=t}return t.fromBase64String=function(e){return new t(pe.nt().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 pe.nt().btoa(this.it)},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.it)},t.prototype.rt=function(){return 2*this.it.length},t.prototype.S=function(t){return ke(this.it,t.it)},t.prototype.isEqual=function(t){return this.it===t.it},t}();function N(t){return null==t}function C(t){return-0===t&&1/t==-1/0}function P(t){return"number"==typeof t&&Number.isInteger(t)&&!C(t)&&t<=Number.MAX_SAFE_INTEGER&&t>=Number.MIN_SAFE_INTEGER}function R(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 j(t){var e=z(t.mapValue.fields.__local_write_time__.timestampValue);return new b(e.seconds,e.nanos)}A.ht=new A("");var D=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function L(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?R(t)?4:10:we()}function M(t,e){var n=L(t);if(n!==L(e))return!1;switch(n){case 0:return!0;case 1:return t.booleanValue===e.booleanValue;case 4:return j(t).isEqual(j(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=z(t.timestampValue),r=z(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 W(t.bytesValue).isEqual(W(e.bytesValue))}(t,e);case 7:return t.referenceValue===e.referenceValue;case 8:return function(t,e){return q(t.geoPointValue.latitude)===q(e.geoPointValue.latitude)&&q(t.geoPointValue.longitude)===q(e.geoPointValue.longitude)}(t,e);case 2:return function(t,e){if("integerValue"in t&&"integerValue"in e)return q(t.integerValue)===q(e.integerValue);if("doubleValue"in t&&"doubleValue"in e){var n=q(t.doubleValue),r=q(e.doubleValue);return n===r?C(n)===C(r):isNaN(n)&&isNaN(r)}return!1}(t,e);case 9:return Ie(t.arrayValue.values||[],e.arrayValue.values||[],M);case 10:return function(t,e){var n=t.mapValue.fields||{},r=e.mapValue.fields||{};if(x(n)!==x(r))return!1;for(var i in n)if(n.hasOwnProperty(i)&&(void 0===r[i]||!M(n[i],r[i])))return!1;return!0}(t,e);default:return we()}}function U(t,e){return void 0!==(t.values||[]).find((function(t){return M(t,e)}))}function F(t,e){var n=L(t),r=L(e);if(n!==r)return ke(n,r);switch(n){case 0:return 0;case 1:return ke(t.booleanValue,e.booleanValue);case 2:return function(t,e){var n=q(t.integerValue||t.doubleValue),r=q(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 V(t.timestampValue,e.timestampValue);case 4:return V(j(t),j(e));case 5:return ke(t.stringValue,e.stringValue);case 6:return function(t,e){var n=W(t),r=W(e);return n.S(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=ke(n[i],r[i]);if(0!==o)return o}return ke(n.length,r.length)}(t.referenceValue,e.referenceValue);case 8:return function(t,e){var n=ke(q(t.latitude),q(e.latitude));return 0!==n?n:ke(q(t.longitude),q(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=F(n[i],r[i]);if(o)return o}return ke(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=ke(r[a],o[a]);if(0!==s)return s;var u=F(n[r[a]],i[o[a]]);if(0!==u)return u}return ke(r.length,o.length)}(t.mapValue,e.mapValue);default:throw we()}}function V(t,e){if("string"==typeof t&&"string"==typeof e&&t.length===e.length)return ke(t,e);var n=z(t),r=z(e),i=ke(n.seconds,r.seconds);return 0!==i?i:ke(n.nanos,r.nanos)}function B(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=z(t);return"time("+e.seconds+","+e.nanos+")"}(e.timestampValue):"stringValue"in e?e.stringValue:"bytesValue"in e?W(e.bytesValue).toBase64():"referenceValue"in e?(r=e.referenceValue,I.Z(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):we();var n,r}(t)}function z(t){if(Ee(!!t),"string"==typeof t){var e=0,n=D.exec(t);if(Ee(!!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}}
2return{seconds:q(t.seconds),nanos:q(t.nanos)}}function q(t){return"number"==typeof t?t:"string"==typeof t?Number(t):0}function W(t){return"string"==typeof t?A.fromBase64String(t):A.fromUint8Array(t)}function H(t,e){return{referenceValue:"projects/"+t.projectId+"/databases/"+t.database+"/documents/"+e.path.j()}}function G(t){return!!t&&"integerValue"in t}function K(t){return!!t&&"arrayValue"in t}function $(t){return!!t&&"nullValue"in t}function X(t){return!!t&&"doubleValue"in t&&isNaN(Number(t.doubleValue))}function Q(t){return!!t&&"mapValue"in t}var Y=function(){function t(){}return t.prototype.ot=function(t,e){return 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}}(e,t)},t.prototype.at=function(t,e){return e},t.prototype.ut=function(t){return null},t.prototype.isEqual=function(e){return e instanceof t},t}();Y.instance=new Y;var J=function(){function t(t){this.elements=t}return t.prototype.ot=function(t,e){return this.apply(t)},t.prototype.at=function(t,e){return this.apply(t)},t.prototype.apply=function(t){for(var e=et(t),n=function(t){e.some((function(e){return M(e,t)}))||e.push(t)},r=0,i=this.elements;r<i.length;r++)n(i[r]);return{arrayValue:{values:e}}},t.prototype.ut=function(t){return null},t.prototype.isEqual=function(e){return e instanceof t&&Ie(this.elements,e.elements,M)},t}(),Z=function(){function t(t){this.elements=t}return t.prototype.ot=function(t,e){return this.apply(t)},t.prototype.at=function(t,e){return this.apply(t)},t.prototype.apply=function(t){for(var e=et(t),n=function(t){e=e.filter((function(e){return!M(e,t)}))},r=0,i=this.elements;r<i.length;r++)n(i[r]);return{arrayValue:{values:e}}},t.prototype.ut=function(t){return null},t.prototype.isEqual=function(e){return e instanceof t&&Ie(this.elements,e.elements,M)},t}(),tt=function(){function t(t,e){this.serializer=t,this.ct=e}return t.prototype.ot=function(t,e){var n=this.ut(t),r=this.asNumber(n)+this.asNumber(this.ct);return G(n)&&G(this.ct)?this.serializer._t(r):this.serializer.lt(r)},t.prototype.at=function(t,e){return e},t.prototype.ut=function(t){return G(e=t)||function(t){return!!t&&"doubleValue"in t}(e)?t:{integerValue:0};var e},t.prototype.isEqual=function(e){return e instanceof t&&M(this.ct,e.ct)},t.prototype.asNumber=function(t){return q(t.integerValue||t.doubleValue)},t}();function et(t){return K(t)&&t.arrayValue.values?t.arrayValue.values.slice():[]}var nt=function(){function t(t){this.fields=t,t.sort(k.N)}return t.prototype.dt=function(t){for(var e=0,n=this.fields;e<n.length;e++)if(n[e].q(t))return!0;return!1},t.prototype.isEqual=function(t){return Ie(this.fields,t.fields,(function(t,e){return t.isEqual(e)}))},t}(),rt=function(){function t(t,e){this.field=t,this.transform=e}return t.prototype.isEqual=function(t){return this.field.isEqual(t.field)&&this.transform.isEqual(t.transform)},t}(),it=function(t,e){this.version=t,this.transformResults=e},ot=function(){function t(t,e){this.updateTime=t,this.exists=e}return t.ft=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,"Tt",{get:function(){return void 0===this.updateTime&&void 0===this.exists},enumerable:!0,configurable:!0}),t.prototype.Et=function(t){return void 0!==this.updateTime?t instanceof gt&&t.version.isEqual(this.updateTime):void 0===this.exists||this.exists===t instanceof gt},t.prototype.isEqual=function(t){return this.exists===t.exists&&(this.updateTime?!!t.updateTime&&this.updateTime.isEqual(t.updateTime):!t.updateTime)},t}(),at=function(){function t(){}return t.prototype.It=function(t){},t.wt=function(t){return t instanceof gt?t.version:w.min()},t}(),st=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).key=e,i.value=n,i.Rt=r,i.type=0,i}return i.__extends(e,t),e.prototype.at=function(t,e){this.It(t);var n=e.version;return new gt(this.key,n,this.value,{hasCommittedMutations:!0})},e.prototype.ot=function(t,e,n){if(this.It(t),!this.Rt.Et(t))return t;var r=at.wt(t);return new gt(this.key,r,this.value,{At:!0})},e.prototype.Pt=function(t){return null},e.prototype.isEqual=function(t){return t instanceof e&&this.key.isEqual(t.key)&&this.value.isEqual(t.value)&&this.Rt.isEqual(t.Rt)},e}(at),ut=function(t){function e(e,n,r,i){var o=this;return(o=t.call(this)||this).key=e,o.data=n,o.Vt=r,o.Rt=i,o.type=1,o}return i.__extends(e,t),e.prototype.at=function(t,e){if(this.It(t),!this.Rt.Et(t))return new wt(this.key,e.version);var n=this.gt(t);return new gt(this.key,e.version,n,{hasCommittedMutations:!0})},e.prototype.ot=function(t,e,n){if(this.It(t),!this.Rt.Et(t))return t;var r=at.wt(t),i=this.gt(t);return new gt(this.key,r,i,{At:!0})},e.prototype.Pt=function(t){return null},e.prototype.isEqual=function(t){return t instanceof e&&this.key.isEqual(t.key)&&this.Vt.isEqual(t.Vt)&&this.Rt.isEqual(t.Rt)},e.prototype.gt=function(t){var e;return e=t instanceof gt?t.data():ht.empty(),this.pt(e)},e.prototype.pt=function(t){var e=this,n=new pt(t);return this.Vt.fields.forEach((function(t){if(!t.B()){var r=e.data.field(t);null!==r?n.set(t,r):n.delete(t)}})),n.yt()},e}(at),ct=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).key=e,r.fieldTransforms=n,r.type=2,r.Rt=ot.exists(!0),r}return i.__extends(e,t),e.prototype.at=function(t,e){if(this.It(t),Ee(null!=e.transformResults),!this.Rt.Et(t))return new wt(this.key,e.version);var n=this.bt(t),r=this.vt(t,e.transformResults),i=e.version,o=this.St(n.data(),r);return new gt(this.key,i,o,{hasCommittedMutations:!0})},e.prototype.ot=function(t,e,n){if(this.It(t),!this.Rt.Et(t))return t;var r=this.bt(t),i=this.Dt(n,t,e),o=this.St(r.data(),i);return new gt(this.key,r.version,o,{At:!0})},e.prototype.Pt=function(t){for(var e=null,n=0,r=this.fieldTransforms;n<r.length;n++){var i=r[n],o=t instanceof gt?t.field(i.field):void 0,a=i.transform.ut(o||null);null!=a&&(e=null==e?(new pt).set(i.field,a):e.set(i.field,a))}return e?e.yt():null},e.prototype.isEqual=function(t){return t instanceof e&&this.key.isEqual(t.key)&&Ie(this.fieldTransforms,t.fieldTransforms,(function(t,e){return t.isEqual(e)}))&&this.Rt.isEqual(t.Rt)},e.prototype.bt=function(t){return t},e.prototype.vt=function(t,e){var n=[];Ee(this.fieldTransforms.length===e.length);for(var r=0;r<e.length;r++){var i=this.fieldTransforms[r],o=i.transform,a=null;t instanceof gt&&(a=t.field(i.field)),n.push(o.at(a,e[r]))}return n},e.prototype.Dt=function(t,e,n){for(var r=[],i=0,o=this.fieldTransforms;i<o.length;i++){var a=o[i],s=a.transform,u=null;e instanceof gt&&(u=e.field(a.field)),null===u&&n instanceof gt&&(u=n.field(a.field)),r.push(s.ot(u,t))}return r},e.prototype.St=function(t,e){for(var n=new pt(t),r=0;r<this.fieldTransforms.length;r++){var i=this.fieldTransforms[r].field;n.set(i,e[r])}return n.yt()},e}(at),lt=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).key=e,r.Rt=n,r.type=3,r}return i.__extends(e,t),e.prototype.at=function(t,e){return this.It(t),new bt(this.key,e.version,{hasCommittedMutations:!0})},e.prototype.ot=function(t,e,n){return this.It(t),this.Rt.Et(t)?new bt(this.key,w.min()):t},e.prototype.Pt=function(t){return null},e.prototype.isEqual=function(t){return t instanceof e&&this.key.isEqual(t.key)&&this.Rt.isEqual(t.Rt)},e}(at),ft=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).key=e,r.Rt=n,r.type=4,r}return i.__extends(e,t),e.prototype.at=function(t,e){we()},e.prototype.ot=function(t,e,n){we()},e.prototype.Pt=function(t){we()},e.prototype.isEqual=function(t){return t instanceof e&&this.key.isEqual(t.key)&&this.Rt.isEqual(t.Rt)},e}(at),ht=function(){function t(t){this.proto=t}return t.empty=function(){return new t({mapValue:{}})},t.prototype.field=function(t){if(t.B())return this.proto;for(var e=this.proto,n=0;n<t.length-1;++n){if(!e.mapValue.fields)return null;if(!Q(e=e.mapValue.fields[t.get(n)]))return null}return(e=(e.mapValue.fields||{})[t.O()])||null},t.prototype.isEqual=function(t){return M(this.proto,t.proto)},t}(),pt=function(){function t(t){void 0===t&&(t=ht.empty()),this.Ct=t,this.Ft=new Map}return t.prototype.set=function(t,e){return this.Nt(t,e),this},t.prototype.delete=function(t){return this.Nt(t,null),this},t.prototype.Nt=function(t,e){for(var n=this.Ft,r=0;r<t.length-1;++r){var i=t.get(r),o=n.get(i);o instanceof Map?n=o:o&&10===L(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.O(),e)},t.prototype.yt=function(){var t=this.kt(k.G,this.Ft);return null!=t?new ht(t):this.Ct},t.prototype.kt=function(t,e){var n=this,r=!1,i=this.Ct.field(t),o=Q(i)?Object.assign({},i.mapValue.fields):{};return e.forEach((function(e,i){if(e instanceof Map){var a=n.kt(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 dt(t){var e=[];return S(t.fields||{},(function(t,n){var r=new k([t]);if(Q(n)){var i=dt(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 nt(e)}var vt,yt,mt=function(t,e){this.key=t,this.version=e},gt=function(t){function e(e,n,r,i){var o=this;return(o=t.call(this,e,n)||this).$t=r,o.At=!!i.At,o.hasCommittedMutations=!!i.hasCommittedMutations,o}return i.__extends(e,t),e.prototype.field=function(t){return this.$t.field(t)},e.prototype.data=function(){return this.$t},e.prototype.Mt=function(){return this.$t.proto},e.prototype.isEqual=function(t){return t instanceof e&&this.key.isEqual(t.key)&&this.version.isEqual(t.version)&&this.At===t.At&&this.hasCommittedMutations===t.hasCommittedMutations&&this.$t.isEqual(t.$t)},e.prototype.toString=function(){return"Document("+this.key+", "+this.version+", "+this.$t.toString()+", {hasLocalMutations: "+this.At+"}), {hasCommittedMutations: "+this.hasCommittedMutations+"})"},Object.defineProperty(e.prototype,"hasPendingWrites",{get:function(){return this.At||this.hasCommittedMutations},enumerable:!0,configurable:!0}),e}(mt),bt=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:!0,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}(mt),wt=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:!0,configurable:!0}),e.prototype.isEqual=function(t){return t instanceof e&&t.version.isEqual(this.version)&&t.key.isEqual(this.key)},e}(mt),Et=function(){function t(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.Lt=null}return t.prototype.canonicalId=function(){if(null===this.Lt){var t=this.path.j();null!==this.collectionGroup&&(t+="|cg:"+this.collectionGroup),t+="|f:",t+=this.filters.map((function(t){return t.canonicalId()})).join(","),t+="|ob:",t+=this.orderBy.map((function(t){return t.canonicalId()})).join(","),N(this.limit)||(t+="|l:",t+=this.limit),this.startAt&&(t+="|lb:",t+=this.startAt.canonicalId()),this.endAt&&(t+="|ub:",t+=this.endAt.canonicalId()),this.Lt=t}return this.Lt},t.prototype.toString=function(){var t=this.path.j();return null!==this.collectionGroup&&(t+=" collectionGroup="+this.collectionGroup),this.filters.length>0&&(t+=", filters: ["+this.filters.join(", ")+"]"),N(this.limit)||(t+=", limit: "+this.limit),this.orderBy.length>0&&(t+=", orderBy: ["+this.orderBy.join(", ")+"]"),this.startAt&&(t+=", startAt: "+this.startAt.canonicalId()),this.endAt&&(t+=", endAt: "+this.endAt.canonicalId()),"Target("+t+")"},t.prototype.isEqual=function(t){if(this.limit!==t.limit)return!1;if(this.orderBy.length!==t.orderBy.length)return!1;for(var e=0;e<this.orderBy.length;e++)if(!this.orderBy[e].isEqual(t.orderBy[e]))return!1;if(this.filters.length!==t.filters.length)return!1;for(var n=0;n<this.filters.length;n++)if(!this.filters[n].isEqual(t.filters[n]))return!1;return this.collectionGroup===t.collectionGroup&&!!this.path.isEqual(t.path)&&!!(null!==this.startAt?this.startAt.isEqual(t.startAt):null===t.startAt)&&(null!==this.endAt?this.endAt.isEqual(t.endAt):null===t.endAt)},t.prototype.Ot=function(){return I.et(this.path)&&null===this.collectionGroup&&0===this.filters.length},t}(),Tt=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.xt=n,this.filters=r,this.limit=i,this.Bt=o,this.startAt=a,this.endAt=s,this.qt=null,this.Ut=null,this.startAt&&this.Qt(this.startAt),this.endAt&&this.Qt(this.endAt)}return t.Wt=function(e){return new t(e)},Object.defineProperty(t.prototype,"orderBy",{get:function(){if(null===this.qt){this.qt=[];var t=this.jt(),e=this.Kt();if(null!==t&&null===e)t.Y()||this.qt.push(new Nt(t)),this.qt.push(new Nt(k.J(),"asc"));else{for(var n=!1,r=0,i=this.xt;r<i.length;r++){var o=i[r];this.qt.push(o),o.field.Y()&&(n=!0)}if(!n){var a=this.xt.length>0?this.xt[this.xt.length-1].dir:"asc";this.qt.push(new Nt(k.J(),a))}}}return this.qt},enumerable:!0,configurable:!0}),t.prototype.Gt=function(e){var n=this.filters.concat([e]);return new t(this.path,this.collectionGroup,this.xt.slice(),n,this.limit,this.Bt,this.startAt,this.endAt)},t.prototype.zt=function(e){var n=this.xt.concat([e]);return new t(this.path,this.collectionGroup,n,this.filters.slice(),this.limit,this.Bt,this.startAt,this.endAt)},t.prototype.Ht=function(e){return new t(this.path,this.collectionGroup,this.xt.slice(),this.filters.slice(),e,"F",this.startAt,this.endAt)},t.prototype.Yt=function(e){return new t(this.path,this.collectionGroup,this.xt.slice(),this.filters.slice(),e,"L",this.startAt,this.endAt)},t.prototype.Jt=function(e){return new t(this.path,this.collectionGroup,this.xt.slice(),this.filters.slice(),this.limit,this.Bt,e,this.endAt)},t.prototype.Xt=function(e){return new t(this.path,this.collectionGroup,this.xt.slice(),this.filters.slice(),this.limit,this.Bt,this.startAt,e)},t.prototype.Zt=function(e){return new t(e,null,this.xt.slice(),this.filters.slice(),this.limit,this.Bt,this.startAt,this.endAt)},t.prototype.te=function(){return 0===this.filters.length&&null===this.limit&&null==this.startAt&&null==this.endAt&&(0===this.xt.length||1===this.xt.length&&this.xt[0].field.Y())},t.prototype.canonicalId=function(){return this.ee().canonicalId()+"|lt:"+this.Bt},t.prototype.toString=function(){return"Query(target="+this.ee().toString()+"; limitType="+this.Bt+")"},t.prototype.isEqual=function(t){return this.ee().isEqual(t.ee())&&this.Bt===t.Bt},t.prototype.se=function(t,e){for(var n=!1,r=0,i=this.orderBy;r<i.length;r++){var o=i[r],a=o.compare(t,e);if(0!==a)return a;n=n||o.field.Y()}return 0},t.prototype.matches=function(t){return this.ie(t)&&this.ne(t)&&this.re(t)&&this.he(t)},t.prototype.oe=function(){return!N(this.limit)&&"F"===this.Bt},t.prototype.ae=function(){return!N(this.limit)&&"L"===this.Bt},t.prototype.Kt=function(){return this.xt.length>0?this.xt[0].field:null},t.prototype.jt=function(){for(var t=0,e=this.filters;t<e.length;t++){var n=e[t];if(n instanceof _t&&n.ue())return n.field}return null},t.prototype.ce=function(t){for(var e=0,n=this.filters;e<n.length;e++){var r=n[e];if(r instanceof _t&&t.indexOf(r.op)>=0)return r.op}return null},t.prototype.Ot=function(){return this.ee().Ot()},t.prototype._e=function(){return null!==this.collectionGroup},t.prototype.ee=function(){if(!this.Ut)if("F"===this.Bt)this.Ut=new Et(this.path,this.collectionGroup,this.orderBy,this.filters,this.limit,this.startAt,this.endAt);else{for(var t=[],e=0,n=this.orderBy;e<n.length;e++){var r=n[e],i="desc"===r.dir?"asc":"desc";t.push(new Nt(r.field,i))}var o=this.endAt?new At(this.endAt.position,!this.endAt.before):null,a=this.startAt?new At(this.startAt.position,!this.startAt.before):null;this.Ut=new Et(this.path,this.collectionGroup,t,this.filters,this.limit,o,a)}return this.Ut},t.prototype.ie=function(t){var e=t.key.path;return null!==this.collectionGroup?t.key.tt(this.collectionGroup)&&this.path.q(e):I.et(this.path)?this.path.isEqual(e):this.path.U(e)},t.prototype.ne=function(t){for(var e=0,n=this.xt;e<n.length;e++){var r=n[e];if(!r.field.Y()&&null===t.field(r.field))return!1}return!0},t.prototype.re=function(t){for(var e=0,n=this.filters;e<n.length;e++)if(!n[e].matches(t))return!1;return!0},t.prototype.he=function(t){return!(this.startAt&&!this.startAt.le(this.orderBy,t)||this.endAt&&this.endAt.le(this.orderBy,t))},t.prototype.Qt=function(t){},t}(),_t=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.Y())return"in"===n?new It(t,r):new kt(t,n,r);if($(r)){if("=="!==n)throw new p(h.INVALID_ARGUMENT,"Invalid query. Null supports only equality comparisons.");return new e(t,n,r)}if(X(r)){if("=="!==n)throw new p(h.INVALID_ARGUMENT,"Invalid query. NaN supports only equality comparisons.");return new e(t,n,r)}return"array-contains"===n?new xt(t,r):"in"===n?new St(t,r):"array-contains-any"===n?new Ot(t,r):new e(t,n,r)},e.prototype.matches=function(t){var e=t.field(this.field);return null!==e&&L(this.value)===L(e)&&this.de(F(e,this.value))},e.prototype.de=function(t){switch(this.op){case"<":return t<0;case"<=":return t<=0;case"==":return 0===t;case">":return t>0;case">=":return t>=0;default:return we()}},e.prototype.ue=function(){return["<","<=",">",">="].indexOf(this.op)>=0},e.prototype.canonicalId=function(){return this.field.j()+this.op.toString()+B(this.value)},e.prototype.isEqual=function(t){return t instanceof e&&this.op===t.op&&this.field.isEqual(t.field)&&M(this.value,t.value)},e.prototype.toString=function(){return this.field.j()+" "+this.op+" "+B(this.value)},e}((function(){})),kt=function(t){function e(e,n,r){var i=this;return(i=t.call(this,e,n,r)||this).key=I.Z(r.referenceValue),i}return i.__extends(e,t),e.prototype.matches=function(t){var e=I.N(t.key,this.key);return this.de(e)},e}(_t),It=function(t){function e(e,n){var r=this;return(r=t.call(this,e,"in",n)||this).keys=(n.arrayValue.values||[]).map((function(t){return I.Z(t.referenceValue)})),r}return i.__extends(e,t),e.prototype.matches=function(t){return this.keys.some((function(e){return e.isEqual(t.key)}))},e}(_t),xt=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 K(e)&&U(e.arrayValue,this.value)},e}(_t),St=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&&U(this.value.arrayValue,e)},e}(_t),Ot=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!(!K(n)||!n.arrayValue.values)&&n.arrayValue.values.some((function(t){return U(e.value.arrayValue,t)}))},e}(_t),At=function(){function t(t,e){this.position=t,this.before=e}return t.prototype.canonicalId=function(){return(this.before?"b":"a")+":"+this.position.map((function(t){return B(t)})).join(",")},t.prototype.le=function(t,e){for(var n=0,r=0;r<this.position.length;r++){var i=t[r],o=this.position[r];if(n=i.field.Y()?I.N(I.Z(o.referenceValue),e.key):F(o,e.field(i.field)),"desc"===i.dir&&(n*=-1),0!==n)break}return this.before?n<=0:n<0},t.prototype.isEqual=function(t){if(null===t)return!1;if(this.before!==t.before||this.position.length!==t.position.length)return!1;for(var e=0;e<this.position.length;e++)if(!M(this.position[e],t.position[e]))return!1;return!0},t}(),Nt=function(){function t(t,e){this.field=t,void 0===e&&(e="asc"),this.dir=e,this.fe=t.Y()}return t.prototype.compare=function(t,e){var n=this.fe?I.N(t.key,e.key):function(t,e,n){var r=e.field(t),i=n.field(t);return null!==r&&null!==i?F(r,i):we()}(this.field,t,e);switch(this.dir){case"asc":return n;
2case"desc":return-1*n;default:return we()}},t.prototype.canonicalId=function(){return this.field.j()+this.dir.toString()},t.prototype.toString=function(){return this.field.j()+" ("+this.dir+")"},t.prototype.isEqual=function(t){return this.dir===t.dir&&this.field.isEqual(t.field)},t}(),Ct=function(){function t(t,e,n,r,i,o,a){void 0===i&&(i=w.min()),void 0===o&&(o=w.min()),void 0===a&&(a=A.ht),this.target=t,this.targetId=e,this.Te=n,this.sequenceNumber=r,this.Ee=i,this.lastLimboFreeSnapshotVersion=o,this.resumeToken=a}return t.prototype.Ie=function(e){return new t(this.target,this.targetId,this.Te,e,this.Ee,this.lastLimboFreeSnapshotVersion,this.resumeToken)},t.prototype.we=function(e,n){return new t(this.target,this.targetId,this.Te,this.sequenceNumber,n,this.lastLimboFreeSnapshotVersion,e)},t.prototype.Re=function(e){return new t(this.target,this.targetId,this.Te,this.sequenceNumber,this.Ee,e,this.resumeToken)},t}(),Pt=function(t){this.count=t};function Rt(t){switch(t){case h.OK:return we();case h.CANCELLED:case h.UNKNOWN:case h.DEADLINE_EXCEEDED:case h.RESOURCE_EXHAUSTED:case h.INTERNAL:case h.UNAVAILABLE:case h.UNAUTHENTICATED:return!1;case h.INVALID_ARGUMENT:case h.NOT_FOUND:case h.ALREADY_EXISTS:case h.PERMISSION_DENIED:case h.FAILED_PRECONDITION:case h.ABORTED:case h.OUT_OF_RANGE:case h.UNIMPLEMENTED:case h.DATA_LOSS:return!0;default:return we()}}function jt(t){if(void 0===t)return ge("GRPC error has no .code"),h.UNKNOWN;switch(t){case vt.OK:return h.OK;case vt.CANCELLED:return h.CANCELLED;case vt.UNKNOWN:return h.UNKNOWN;case vt.DEADLINE_EXCEEDED:return h.DEADLINE_EXCEEDED;case vt.RESOURCE_EXHAUSTED:return h.RESOURCE_EXHAUSTED;case vt.INTERNAL:return h.INTERNAL;case vt.UNAVAILABLE:return h.UNAVAILABLE;case vt.UNAUTHENTICATED:return h.UNAUTHENTICATED;case vt.INVALID_ARGUMENT:return h.INVALID_ARGUMENT;case vt.NOT_FOUND:return h.NOT_FOUND;case vt.ALREADY_EXISTS:return h.ALREADY_EXISTS;case vt.PERMISSION_DENIED:return h.PERMISSION_DENIED;case vt.FAILED_PRECONDITION:return h.FAILED_PRECONDITION;case vt.ABORTED:return h.ABORTED;case vt.OUT_OF_RANGE:return h.OUT_OF_RANGE;case vt.UNIMPLEMENTED:return h.UNIMPLEMENTED;case vt.DATA_LOSS:return h.DATA_LOSS;default:return we()}}(yt=vt||(vt={}))[yt.OK=0]="OK",yt[yt.CANCELLED=1]="CANCELLED",yt[yt.UNKNOWN=2]="UNKNOWN",yt[yt.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",yt[yt.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",yt[yt.NOT_FOUND=5]="NOT_FOUND",yt[yt.ALREADY_EXISTS=6]="ALREADY_EXISTS",yt[yt.PERMISSION_DENIED=7]="PERMISSION_DENIED",yt[yt.UNAUTHENTICATED=16]="UNAUTHENTICATED",yt[yt.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",yt[yt.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",yt[yt.ABORTED=10]="ABORTED",yt[yt.OUT_OF_RANGE=11]="OUT_OF_RANGE",yt[yt.UNIMPLEMENTED=12]="UNIMPLEMENTED",yt[yt.INTERNAL=13]="INTERNAL",yt[yt.UNAVAILABLE=14]="UNAVAILABLE",yt[yt.DATA_LOSS=15]="DATA_LOSS";var Dt=function(){function t(t,e){this.N=t,this.root=e||Mt.EMPTY}return t.prototype.Ae=function(e,n){return new t(this.N,this.root.Ae(e,n,this.N).me(null,null,Mt.Pe,null,null))},t.prototype.remove=function(e){return new t(this.N,this.root.remove(e,this.N).me(null,null,Mt.Pe,null,null))},t.prototype.get=function(t){for(var e=this.root;!e.B();){var n=this.N(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.B();){var r=this.N(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.B=function(){return this.root.B()},Object.defineProperty(t.prototype,"size",{get:function(){return this.root.size},enumerable:!0,configurable:!0}),t.prototype.Ve=function(){return this.root.Ve()},t.prototype.ge=function(){return this.root.ge()},t.prototype.pe=function(t){return this.root.pe(t)},t.prototype.forEach=function(t){this.pe((function(e,n){return t(e,n),!1}))},t.prototype.toString=function(){var t=[];return this.pe((function(e,n){return t.push(e+":"+n),!1})),"{"+t.join(", ")+"}"},t.prototype.ye=function(t){return this.root.ye(t)},t.prototype.be=function(){return new Lt(this.root,null,this.N,!1)},t.prototype.ve=function(t){return new Lt(this.root,t,this.N,!1)},t.prototype.Se=function(){return new Lt(this.root,null,this.N,!0)},t.prototype.De=function(t){return new Lt(this.root,t,this.N,!0)},t}(),Lt=function(){function t(t,e,n,r){this.Ce=r,this.Fe=[];for(var i=1;!t.B();)if(i=e?n(t.key,e):1,r&&(i*=-1),i<0)t=this.Ce?t.left:t.right;else{if(0===i){this.Fe.push(t);break}this.Fe.push(t),t=this.Ce?t.right:t.left}}return t.prototype.Ne=function(){var t=this.Fe.pop(),e={key:t.key,value:t.value};if(this.Ce)for(t=t.left;!t.B();)this.Fe.push(t),t=t.right;else for(t=t.right;!t.B();)this.Fe.push(t),t=t.left;return e},t.prototype.ke=function(){return this.Fe.length>0},t.prototype.$e=function(){if(0===this.Fe.length)return null;var t=this.Fe[this.Fe.length-1];return{key:t.key,value:t.value}},t}(),Mt=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.me=function(e,n,r,i,o){return new t(null!=e?e:this.key,null!=n?n:this.value,
2null!=r?r:this.color,null!=i?i:this.left,null!=o?o:this.right)},t.prototype.B=function(){return!1},t.prototype.pe=function(t){return this.left.pe(t)||t(this.key,this.value)||this.right.pe(t)},t.prototype.ye=function(t){return this.right.ye(t)||t(this.key,this.value)||this.left.ye(t)},t.prototype.min=function(){return this.left.B()?this:this.left.min()},t.prototype.Ve=function(){return this.min().key},t.prototype.ge=function(){return this.right.B()?this.key:this.right.ge()},t.prototype.Ae=function(t,e,n){var r=this,i=n(t,r.key);return(r=i<0?r.me(null,null,null,r.left.Ae(t,e,n),null):0===i?r.me(null,e,null,null,null):r.me(null,null,null,null,r.right.Ae(t,e,n))).Me()},t.prototype.Le=function(){if(this.left.B())return t.EMPTY;var e=this;return e.left.Oe()||e.left.left.Oe()||(e=e.xe()),(e=e.me(null,null,null,e.left.Le(),null)).Me()},t.prototype.remove=function(e,n){var r,i=this;if(n(e,i.key)<0)i.left.B()||i.left.Oe()||i.left.left.Oe()||(i=i.xe()),i=i.me(null,null,null,i.left.remove(e,n),null);else{if(i.left.Oe()&&(i=i.Be()),i.right.B()||i.right.Oe()||i.right.left.Oe()||(i=i.qe()),0===n(e,i.key)){if(i.right.B())return t.EMPTY;r=i.right.min(),i=i.me(r.key,r.value,null,null,i.right.Le())}i=i.me(null,null,null,null,i.right.remove(e,n))}return i.Me()},t.prototype.Oe=function(){return this.color},t.prototype.Me=function(){var t=this;return t.right.Oe()&&!t.left.Oe()&&(t=t.Ue()),t.left.Oe()&&t.left.left.Oe()&&(t=t.Be()),t.left.Oe()&&t.right.Oe()&&(t=t.Qe()),t},t.prototype.xe=function(){var t=this.Qe();return t.right.left.Oe()&&(t=(t=(t=t.me(null,null,null,null,t.right.Be())).Ue()).Qe()),t},t.prototype.qe=function(){var t=this.Qe();return t.left.left.Oe()&&(t=(t=t.Be()).Qe()),t},t.prototype.Ue=function(){var e=this.me(null,null,t.RED,null,this.right.left);return this.right.me(null,null,this.color,e,null)},t.prototype.Be=function(){var e=this.me(null,null,t.RED,this.left.right,null);return this.left.me(null,null,this.color,null,e)},t.prototype.Qe=function(){var t=this.left.me(null,null,!this.left.color,null,null),e=this.right.me(null,null,!this.right.color,null,null);return this.me(null,null,!this.color,t,e)},t.prototype.We=function(){var t=this.je();return Math.pow(2,t)<=this.size+1},t.prototype.je=function(){if(this.Oe()&&this.left.Oe())throw we();if(this.right.Oe())throw we();var t=this.left.je();if(t!==this.right.je())throw we();return t+(this.Oe()?0:1)},t}();Mt.EMPTY=null,Mt.RED=!0,Mt.Pe=!1,Mt.EMPTY=new(function(){function t(){this.size=0}return Object.defineProperty(t.prototype,"key",{get:function(){throw we()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){throw we()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){throw we()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){throw we()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){throw we()},enumerable:!0,configurable:!0}),t.prototype.me=function(t,e,n,r,i){return this},t.prototype.Ae=function(t,e,n){return new Mt(t,e)},t.prototype.remove=function(t,e){return this},t.prototype.B=function(){return!0},t.prototype.pe=function(t){return!1},t.prototype.ye=function(t){return!1},t.prototype.Ve=function(){return null},t.prototype.ge=function(){return null},t.prototype.Oe=function(){return!1},t.prototype.We=function(){return!0},t.prototype.je=function(){return 0},t}());var Ut=function(){function t(t){this.N=t,this.data=new Dt(this.N)}return t.prototype.has=function(t){return null!==this.data.get(t)},t.prototype.first=function(){return this.data.Ve()},t.prototype.last=function(){return this.data.ge()},Object.defineProperty(t.prototype,"size",{get:function(){return this.data.size},enumerable:!0,configurable:!0}),t.prototype.indexOf=function(t){return this.data.indexOf(t)},t.prototype.forEach=function(t){this.data.pe((function(e,n){return t(e),!1}))},t.prototype.Ke=function(t,e){for(var n=this.data.ve(t[0]);n.ke();){var r=n.Ne();if(this.N(r.key,t[1])>=0)return;e(r.key)}},t.prototype.Ge=function(t,e){var n;for(n=void 0!==e?this.data.ve(e):this.data.be();n.ke();
2)if(!t(n.Ne().key))return},t.prototype.ze=function(t){var e=this.data.ve(t);return e.ke()?e.Ne().key:null},t.prototype.be=function(){return new Ft(this.data.be())},t.prototype.ve=function(t){return new Ft(this.data.ve(t))},t.prototype.add=function(t){return this.me(this.data.remove(t).Ae(t,!0))},t.prototype.delete=function(t){return this.has(t)?this.me(this.data.remove(t)):this},t.prototype.B=function(){return this.data.B()},t.prototype.He=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.be(),r=e.data.be();n.ke();){var i=n.Ne().key,o=r.Ne().key;if(0!==this.N(i,o))return!1}return!0},t.prototype.W=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.me=function(e){var n=new t(this.N);return n.data=e,n},t}(),Ft=function(){function t(t){this.Ye=t}return t.prototype.Ne=function(){return this.Ye.Ne().key},t.prototype.ke=function(){return this.Ye.ke()},t}(),Vt=new Dt(I.N);function Bt(){return Vt}function zt(){return Bt()}var qt=new Dt(I.N);function Wt(){return qt}var Ht=new Dt(I.N);function Gt(){return Ht}var Kt=new Ut(I.N);function $t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=Kt,r=0,i=t;r<i.length;r++){var o=i[r];n=n.add(o)}return n}var Xt=new Ut(ke);function Qt(){return Xt}var Yt=function(){function t(t){this.N=t?function(e,n){return t(e,n)||I.N(e.key,n.key)}:function(t,e){return I.N(t.key,e.key)},this.Je=Wt(),this.Xe=new Dt(this.N)}return t.Ze=function(e){return new t(e.N)},t.prototype.has=function(t){return null!=this.Je.get(t)},t.prototype.get=function(t){return this.Je.get(t)},t.prototype.first=function(){return this.Xe.Ve()},t.prototype.last=function(){return this.Xe.ge()},t.prototype.B=function(){return this.Xe.B()},t.prototype.indexOf=function(t){var e=this.Je.get(t);return e?this.Xe.indexOf(e):-1},Object.defineProperty(t.prototype,"size",{get:function(){return this.Xe.size},enumerable:!0,configurable:!0}),t.prototype.forEach=function(t){this.Xe.pe((function(e,n){return t(e),!1}))},t.prototype.add=function(t){var e=this.delete(t.key);return e.me(e.Je.Ae(t.key,t),e.Xe.Ae(t,null))},t.prototype.delete=function(t){var e=this.get(t);return e?this.me(this.Je.remove(t),this.Xe.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.Xe.be(),r=e.Xe.be();n.ke();){var i=n.Ne().key,o=r.Ne().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.me=function(e,n){var r=new t;return r.N=this.N,r.Je=e,r.Xe=n,r},t}(),Jt=function(){function t(){this.ts=new Dt(I.N)}return t.prototype.track=function(t){var e=t.doc.key,n=this.ts.get(e);n?0!==t.type&&3===n.type?this.ts=this.ts.Ae(e,t):3===t.type&&1!==n.type?this.ts=this.ts.Ae(e,{type:n.type,doc:t.doc}):2===t.type&&2===n.type?this.ts=this.ts.Ae(e,{type:2,doc:t.doc}):2===t.type&&0===n.type?this.ts=this.ts.Ae(e,{type:0,doc:t.doc}):1===t.type&&0===n.type?this.ts=this.ts.remove(e):1===t.type&&2===n.type?this.ts=this.ts.Ae(e,{type:1,doc:n.doc}):0===t.type&&1===n.type?this.ts=this.ts.Ae(e,{type:2,doc:t.doc}):we():this.ts=this.ts.Ae(e,t)},t.prototype.es=function(){var t=[];return this.ts.pe((function(e,n){t.push(n)})),t},t}(),Zt=function(){function t(t,e,n,r,i,o,a,s){this.query=t,this.docs=e,this.ss=n,this.docChanges=r,this.ns=i,this.fromCache=o,this.rs=a,this.hs=s}return t.os=function(e,n,r,i){var o=[];return n.forEach((function(t){o.push({type:0,doc:t})})),new t(e,n,Yt.Ze(n),o,r,i,!0,!1)},Object.defineProperty(t.prototype,"hasPendingWrites",{get:function(){return!this.ns.B()},enumerable:!0,configurable:!0}),t.prototype.isEqual=function(t){if(!(this.fromCache===t.fromCache&&this.rs===t.rs&&this.ns.isEqual(t.ns)&&this.query.isEqual(t.query)&&this.docs.isEqual(t.docs)&&this.ss.isEqual(t.ss)))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}(),te=function(){function t(t,e,n,r,i){this.Ee=t,this.as=e,this.us=n,this.cs=r,this._s=i}return t.ls=function(e,n){var r=new Map;return r.set(e,ee.ds(e,n)),new t(w.min(),r,Qt(),Bt(),$t())},t}(),ee=function(){function t(t,e,n,r,i){this.resumeToken=t,this.fs=e,this.Ts=n,this.Es=r,this.Is=i}
2return t.ds=function(e,n){return new t(A.ht,n,$t(),$t(),$t())},t}(),ne=function(t,e,n,r){this.ws=t,this.removedTargetIds=e,this.key=n,this.Rs=r},re=function(t,e){this.targetId=t,this.As=e},ie=function(t,e,n,r){void 0===n&&(n=A.ht),void 0===r&&(r=null),this.state=t,this.targetIds=e,this.resumeToken=n,this.cause=r},oe=function(){function t(){this.ms=0,this.Ps=ue(),this.Vs=A.ht,this.gs=!1,this.ps=!0}return Object.defineProperty(t.prototype,"fs",{get:function(){return this.gs},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"resumeToken",{get:function(){return this.Vs},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ys",{get:function(){return 0!==this.ms},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bs",{get:function(){return this.ps},enumerable:!0,configurable:!0}),t.prototype.vs=function(t){t.rt()>0&&(this.ps=!0,this.Vs=t)},t.prototype.Ss=function(){var t=$t(),e=$t(),n=$t();return this.Ps.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:we()}})),new ee(this.Vs,this.gs,t,e,n)},t.prototype.Ds=function(){this.ps=!1,this.Ps=ue()},t.prototype.Cs=function(t,e){this.ps=!0,this.Ps=this.Ps.Ae(t,e)},t.prototype.Fs=function(t){this.ps=!0,this.Ps=this.Ps.remove(t)},t.prototype.Ns=function(){this.ms+=1},t.prototype.ks=function(){this.ms-=1},t.prototype.$s=function(){this.ps=!0,this.gs=!0},t}(),ae=function(){function t(t){this.Ms=t,this.Ls=new Map,this.Os=Bt(),this.xs=se(),this.Bs=new Ut(ke)}return t.prototype.qs=function(t){for(var e=0,n=t.ws;e<n.length;e++){var r=n[e];t.Rs instanceof gt?this.Us(r,t.Rs):t.Rs instanceof bt&&this.Qs(r,t.key,t.Rs)}for(var i=0,o=t.removedTargetIds;i<o.length;i++){var a=o[i];this.Qs(a,t.key,t.Rs)}},t.prototype.Ws=function(t){var e=this;this.js(t,(function(n){var r=e.Ks(n);switch(t.state){case 0:e.Gs(n)&&r.vs(t.resumeToken);break;case 1:r.ks(),r.ys||r.Ds(),r.vs(t.resumeToken);break;case 2:r.ks(),r.ys||e.removeTarget(n);break;case 3:e.Gs(n)&&(r.$s(),r.vs(t.resumeToken));break;case 4:e.Gs(n)&&(e.zs(n),r.vs(t.resumeToken));break;default:we()}}))},t.prototype.js=function(t,e){var n=this;t.targetIds.length>0?t.targetIds.forEach(e):this.Ls.forEach((function(t,r){n.Gs(r)&&e(r)}))},t.prototype.Hs=function(t){var e=t.targetId,n=t.As.count,r=this.Ys(e);if(r){var i=r.target;if(i.Ot())if(0===n){var o=new I(i.path);this.Qs(e,o,new bt(o,w.min()))}else Ee(1===n);else this.Js(e)!==n&&(this.zs(e),this.Bs=this.Bs.add(e))}},t.prototype.Xs=function(t){var e=this,n=new Map;this.Ls.forEach((function(r,i){var o=e.Ys(i);if(o){if(r.fs&&o.target.Ot()){var a=new I(o.target.path);null!==e.Os.get(a)||e.Zs(i,a)||e.Qs(i,a,new bt(a,t))}r.bs&&(n.set(i,r.Ss()),r.Ds())}}));var r=$t();this.xs.forEach((function(t,n){var i=!0;n.Ge((function(t){var n=e.Ys(t);return!n||2===n.Te||(i=!1,!1)})),i&&(r=r.add(t))}));var i=new te(t,n,this.Bs,this.Os,r);return this.Os=Bt(),this.xs=se(),this.Bs=new Ut(ke),i},t.prototype.Us=function(t,e){if(this.Gs(t)){var n=this.Zs(t,e.key)?2:0;this.Ks(t).Cs(e.key,n),this.Os=this.Os.Ae(e.key,e),this.xs=this.xs.Ae(e.key,this.ti(e.key).add(t))}},t.prototype.Qs=function(t,e,n){if(this.Gs(t)){var r=this.Ks(t);this.Zs(t,e)?r.Cs(e,1):r.Fs(e),this.xs=this.xs.Ae(e,this.ti(e).delete(t)),n&&(this.Os=this.Os.Ae(e,n))}},t.prototype.removeTarget=function(t){this.Ls.delete(t)},t.prototype.Js=function(t){var e=this.Ks(t).Ss();return this.Ms.ei(t).size+e.Ts.size-e.Is.size},t.prototype.Ns=function(t){this.Ks(t).Ns()},t.prototype.Ks=function(t){var e=this.Ls.get(t);return e||(e=new oe,this.Ls.set(t,e)),e},t.prototype.ti=function(t){var e=this.xs.get(t);return e||(e=new Ut(ke),this.xs=this.xs.Ae(t,e)),e},t.prototype.Gs=function(t){var e=null!==this.Ys(t);return e||me("WatchChangeAggregator","Detected inactive target",t),e},t.prototype.Ys=function(t){var e=this.Ls.get(t);return e&&e.ys?null:this.Ms.si(t)},t.prototype.zs=function(t){var e=this;this.Ls.set(t,new oe),this.Ms.ei(t).forEach((function(n){e.Qs(t,n,null)}))},t.prototype.Zs=function(t,e){return this.Ms.ei(t).has(e)},t}();function se(){return new Dt(I.N)}function ue(){return new Dt(I.N)}var ce={asc:"ASCENDING",desc:"DESCENDING"},le={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","array-contains-any":"ARRAY_CONTAINS_ANY"},fe=function(){function t(t,e){this.ii=t,this.options=e}return t.prototype.ni=function(t){var e=void 0===t.code?h.UNKNOWN:jt(t.code);return new p(e,t.message||"")},t.prototype.ri=function(t){return this.options.hi||N(t)?t:{value:t}},t.prototype.oi=function(t){var e;return N(e="object"==typeof t?t.value:t)?null:e},t.prototype._t=function(t){return{integerValue:""+t}},t.prototype.lt=function(t){if(this.options.hi){if(isNaN(t))return{doubleValue:"NaN"};if(t===1/0)return{doubleValue:"Infinity"};if(t===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:C(t)?"-0":t}},t.prototype.ai=function(t){return P(t)?this._t(t):this.lt(t)},t.prototype.C=function(t){return this.options.hi?new Date(1e3*t.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")+"."+("000000000"+t.nanoseconds).slice(-9)+"Z":{seconds:""+t.seconds,nanos:t.nanoseconds}},t.prototype.v=function(t){var e=z(t);return new b(e.seconds,e.nanos)},t.prototype.ui=function(t){return this.options.hi?t.toBase64():t.toUint8Array()},t.prototype.ci=function(t){return this.options.hi?(Ee(void 0===t||"string"==typeof t),A.fromBase64String(t||"")):(Ee(void 0===t||t instanceof Uint8Array),A.fromUint8Array(t||new Uint8Array))},t.prototype.toVersion=function(t){return this.C(t.C())},t.prototype.fromVersion=function(t){return Ee(!!t),w.v(this.v(t))},t.prototype._i=function(t,e){return this.li(e||this.ii).child("documents").child(t).j()},t.prototype.di=function(t){var e=T.K(t);return Ee(he(e)),e},t.prototype.fi=function(t){return this._i(t.path)},t.prototype.Z=function(t){var e=this.di(t);return Ee(e.get(1)===this.ii.projectId),Ee(!e.get(3)&&!this.ii.database||e.get(3)===this.ii.database),new I(this.Ti(e))},t.prototype.Ei=function(t){return this._i(t)},t.prototype.Ii=function(t){var e=this.di(t);return 4===e.length?T.G:this.Ti(e)},Object.defineProperty(t.prototype,"wi",{get:function(){return new T(["projects",this.ii.projectId,"databases",this.ii.database]).j()},enumerable:!0,configurable:!0}),t.prototype.li=function(t){return new T(["projects",t.projectId,"databases",t.database])},t.prototype.Ti=function(t){return Ee(t.length>4&&"documents"===t.get(4)),t.$(5)},t.prototype.Ri=function(t,e){return{name:this.fi(t),fields:e.proto.mapValue.fields}},t.prototype.Ai=function(t){return{name:this.fi(t.key),fields:t.Mt().mapValue.fields,updateTime:this.C(t.version.C())}},t.prototype.mi=function(t,e){var n=this.Z(t.name),r=this.fromVersion(t.updateTime),i=new ht({mapValue:{fields:t.fields}});return new gt(n,r,i,{hasCommittedMutations:!!e})},t.prototype.Pi=function(t){Ee(!!t.found),t.found.name,t.found.updateTime;var e=this.Z(t.found.name),n=this.fromVersion(t.found.updateTime),r=new ht({mapValue:{fields:t.found.fields}});return new gt(e,n,r,{})},t.prototype.Vi=function(t){Ee(!!t.missing),Ee(!!t.readTime);var e=this.Z(t.missing),n=this.fromVersion(t.readTime);return new bt(e,n)},t.prototype.gi=function(t){return"found"in t?this.Pi(t):"missing"in t?this.Vi(t):we()},t.prototype.pi=function(t){var e;if("targetChange"in t){t.targetChange;var n=this.yi(t.targetChange.targetChangeType||"NO_CHANGE"),r=t.targetChange.targetIds||[],i=this.ci(t.targetChange.resumeToken),o=t.targetChange.cause,a=o&&this.ni(o);e=new ie(n,r,i,a||null)}else if("documentChange"in t){t.documentChange;var s=t.documentChange;s.document,s.document.name,s.document.updateTime;var u=this.Z(s.document.name),c=this.fromVersion(s.document.updateTime),l=new ht({mapValue:{fields:s.document.fields}}),f=new gt(u,c,l,{}),h=s.targetIds||[],p=s.removedTargetIds||[];
2e=new ne(h,p,f.key,f)}else if("documentDelete"in t){t.documentDelete;var d=t.documentDelete;d.document;var v=this.Z(d.document),y=d.readTime?this.fromVersion(d.readTime):w.min(),m=new bt(v,y),g=d.removedTargetIds||[];e=new ne([],g,m.key,m)}else if("documentRemove"in t){t.documentRemove;var b=t.documentRemove;b.document;var E=this.Z(b.document),T=b.removedTargetIds||[];e=new ne([],T,E,null)}else{if(!("filter"in t))return we();t.filter;var _=t.filter;_.targetId;var k=_.count||0,I=new Pt(k),x=_.targetId;e=new re(x,I)}return e},t.prototype.yi=function(t){return"NO_CHANGE"===t?0:"ADD"===t?1:"REMOVE"===t?2:"CURRENT"===t?3:"RESET"===t?4:we()},t.prototype.bi=function(t){if(!("targetChange"in t))return w.min();var e=t.targetChange;return e.targetIds&&e.targetIds.length?w.min():e.readTime?this.fromVersion(e.readTime):w.min()},t.prototype.vi=function(t){var e,n=this;if(t instanceof st)e={update:this.Ri(t.key,t.value)};else if(t instanceof lt)e={delete:this.fi(t.key)};else if(t instanceof ut)e={update:this.Ri(t.key,t.data),updateMask:this.Si(t.Vt)};else if(t instanceof ct)e={transform:{document:this.fi(t.key),fieldTransforms:t.fieldTransforms.map((function(t){return n.Di(t)}))}};else{if(!(t instanceof ft))return we();e={verify:this.fi(t.key)}}return t.Rt.Tt||(e.currentDocument=this.Ci(t.Rt)),e},t.prototype.Fi=function(t){var e=this,n=t.currentDocument?this.Ni(t.currentDocument):ot.ft();if(t.update){t.update.name;var r=this.Z(t.update.name),i=new ht({mapValue:{fields:t.update.fields}});if(t.updateMask){var o=this.ki(t.updateMask);return new ut(r,i,o,n)}return new st(r,i,n)}if(t.delete){var a=this.Z(t.delete);return new lt(a,n)}if(t.transform){var s=this.Z(t.transform.document),u=t.transform.fieldTransforms.map((function(t){return e.$i(t)}));return Ee(!0===n.exists),new ct(s,u)}if(t.verify){var c=this.Z(t.verify);return new ft(c,n)}return we()},t.prototype.Ci=function(t){return void 0!==t.updateTime?{updateTime:this.toVersion(t.updateTime)}:void 0!==t.exists?{exists:t.exists}:we()},t.prototype.Ni=function(t){return void 0!==t.updateTime?ot.updateTime(this.fromVersion(t.updateTime)):void 0!==t.exists?ot.exists(t.exists):ot.ft()},t.prototype.Mi=function(t,e){var n=t.updateTime?this.fromVersion(t.updateTime):this.fromVersion(e);n.isEqual(w.min())&&(n=this.fromVersion(e));var r=null;return t.transformResults&&t.transformResults.length>0&&(r=t.transformResults),new it(n,r)},t.prototype.Li=function(t,e){var n=this;return t&&t.length>0?(Ee(void 0!==e),t.map((function(t){return n.Mi(t,e)}))):[]},t.prototype.Di=function(t){var e=t.transform;if(e instanceof Y)return{fieldPath:t.field.j(),setToServerValue:"REQUEST_TIME"};if(e instanceof J)return{fieldPath:t.field.j(),appendMissingElements:{values:e.elements}};if(e instanceof Z)return{fieldPath:t.field.j(),removeAllFromArray:{values:e.elements}};if(e instanceof tt)return{fieldPath:t.field.j(),increment:e.ct};throw we()},t.prototype.$i=function(t){var e=null;if("setToServerValue"in t)Ee("REQUEST_TIME"===t.setToServerValue),e=Y.instance;else if("appendMissingElements"in t){var n=t.appendMissingElements.values||[];e=new J(n)}else if("removeAllFromArray"in t){var r=t.removeAllFromArray.values||[];e=new Z(r)}else"increment"in t?e=new tt(this,t.increment):we();var i=k.X(t.fieldPath);return new rt(i,e)},t.prototype.Oi=function(t){return{documents:[this.Ei(t.path)]}},t.prototype.xi=function(t){Ee(1===t.documents.length);var e=t.documents[0];return Tt.Wt(this.Ii(e)).ee()},t.prototype.Bi=function(t){var e={structuredQuery:{}},n=t.path;null!==t.collectionGroup?(e.parent=this.Ei(n),e.structuredQuery.from=[{collectionId:t.collectionGroup,allDescendants:!0}]):(e.parent=this.Ei(n.M()),e.structuredQuery.from=[{collectionId:n.O()}]);var r=this.qi(t.filters);r&&(e.structuredQuery.where=r);var i=this.Ui(t.orderBy);i&&(e.structuredQuery.orderBy=i);var o=this.ri(t.limit);return null!==o&&(e.structuredQuery.limit=o),t.startAt&&(e.structuredQuery.startAt=this.Qi(t.startAt)),t.endAt&&(e.structuredQuery.endAt=this.Qi(t.endAt)),e},t.prototype.Wi=function(t){var e=this.Ii(t.parent),n=t.structuredQuery,r=n.from?n.from.length:0,i=null;if(r>0){Ee(1===r);var o=n.from[0];o.allDescendants?i=o.collectionId:e=e.child(o.collectionId)}var a=[];n.where&&(a=this.ji(n.where));var s=[];n.orderBy&&(s=this.Ki(n.orderBy));var u=null;n.limit&&(u=this.oi(n.limit));var c=null;n.startAt&&(c=this.Gi(n.startAt));var l=null;return n.endAt&&(l=this.Gi(n.endAt)),new Tt(e,i,s,a,u,"F",c,l).ee()},t.prototype.zi=function(t){var e=this.Hi(t.Te);return null==e?null:{"goog-listen-tags":e}},t.prototype.Hi=function(t){switch(t){case 0:return null;case 1:return"existence-filter-mismatch";case 2:return"limbo-document";default:return we()}},t.prototype.ee=function(t){var e,n=t.target;return(e=n.Ot()?{documents:this.Oi(n)}:{query:this.Bi(n)}).targetId=t.targetId,t.resumeToken.rt()>0&&(e.resumeToken=this.ui(t.resumeToken)),e},t.prototype.qi=function(t){var e=this;if(0!==t.length){var n=t.map((function(t){return t instanceof _t?e.Yi(t):we()}));return 1===n.length?n[0]:{compositeFilter:{op:"AND",filters:n}}}},t.prototype.ji=function(t){var e=this;return t?void 0!==t.unaryFilter?[this.Ji(t)]:void 0!==t.fieldFilter?[this.Xi(t)]:void 0!==t.compositeFilter?t.compositeFilter.filters.map((function(t){return e.ji(t)})).reduce((function(t,e){return t.concat(e)})):we():[]},t.prototype.Ui=function(t){var e=this;if(0!==t.length)return t.map((function(t){return e.Zi(t)}))},t.prototype.Ki=function(t){var e=this;return t.map((function(t){return e.tn(t)}))},t.prototype.Qi=function(t){return{before:t.before,values:t.position}},t.prototype.Gi=function(t){var e=!!t.before,n=t.values||[];return new At(n,e)},t.prototype.en=function(t){return ce[t]},t.prototype.sn=function(t){switch(t){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}},t.prototype.nn=function(t){return le[t]},t.prototype.rn=function(t){switch(t){case"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"ARRAY_CONTAINS_ANY":return"array-contains-any";case"OPERATOR_UNSPECIFIED":default:return we()}},t.prototype.hn=function(t){return{fieldPath:t.j()}},t.prototype.on=function(t){return k.X(t.fieldPath)},t.prototype.Zi=function(t){return{field:this.hn(t.field),direction:this.en(t.dir)}},t.prototype.tn=function(t){return new Nt(this.on(t.field),this.sn(t.direction))},t.prototype.Xi=function(t){return _t.create(this.on(t.fieldFilter.field),this.rn(t.fieldFilter.op),t.fieldFilter.value)},t.prototype.Yi=function(t){if("=="===t.op){if(X(t.value))return{unaryFilter:{field:this.hn(t.field),op:"IS_NAN"}};if($(t.value))return{unaryFilter:{field:this.hn(t.field),op:"IS_NULL"}}}return{fieldFilter:{field:this.hn(t.field),op:this.nn(t.op),value:t.value}}},t.prototype.Ji=function(t){switch(t.unaryFilter.op){case"IS_NAN":var e=this.on(t.unaryFilter.field);return _t.create(e,"==",{doubleValue:NaN});case"IS_NULL":var n=this.on(t.unaryFilter.field);return _t.create(n,"==",{nullValue:"NULL_VALUE"});case"OPERATOR_UNSPECIFIED":default:return we()}},t.prototype.Si=function(t){var e=[];return t.fields.forEach((function(t){return e.push(t.j())})),{fieldPaths:e}},t.prototype.ki=function(t){var e=t.fieldPaths||[];return new nt(e.map((function(t){return k.X(t)})))},t}();function he(t){return t.length>=4&&"projects"===t.get(0)&&"databases"===t.get(2)}var pe=function(){function t(){}return t.an=function(e){t.platform&&we(),t.platform=e},t.nt=function(){return t.platform||we(),t.platform},t}(),de=new a.Logger("@firebase/firestore");function ve(){return de.logLevel}function ye(t){de.logLevel=t}function me(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(de.logLevel<=a.LogLevel.DEBUG){var r=e.map(be);de.debug.apply(de,i.__spreadArrays(["Firestore ("+l+"): "+t],r))}}function ge(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(de.logLevel<=a.LogLevel.ERROR){var r=e.map(be);de.error.apply(de,i.__spreadArrays(["Firestore ("+l+"): "+t],r))}}function be(t){if("string"==typeof t)return t;var e=pe.nt();try{return e.un(t)}catch(e){return t}}function we(t){void 0===t&&(t="Unexpected state");var e="FIRESTORE ("+l+") INTERNAL ASSERTION FAILED: "+t;throw ge(e),new Error(e)}function Ee(t,e){t||we()}function Te(t,e){return t}var _e=function(){function t(){}return t.cn=function(){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e=Math.floor(256/t.length)*t.length,n="";n.length<20;)for(var r=pe.nt()._n(40),i=0;i<r.length;++i)n.length<20&&r[i]<e&&(n+=t.charAt(r[i]%t.length));return n},t}();function ke(t,e){return t<e?-1:t>e?1:0}function Ie(t,e,n){return t.length===e.length&&t.every((function(t,r){return n(t,e[r])}))}function xe(t){return t+"\0"}var Se=function(t,e,n,r,i){this.ii=t,this.persistenceKey=e,this.host=n,this.ssl=r,this.forceLongPolling=i},Oe=function(){function t(t,e){this.projectId=t,this.database=e||"(default)"}return Object.defineProperty(t.prototype,"ln",{get:function(){return"(default)"===this.database},enumerable:!0,configurable:!0}),t.prototype.isEqual=function(e){return e instanceof t&&e.projectId===this.projectId&&e.database===this.database},t.prototype.S=function(t){return ke(this.projectId,t.projectId)||ke(this.database,t.database)},t}(),Ae=function(){function t(t){this.dn=t,this.fn={}}return t.prototype.get=function(t){var e=this.dn(t),n=this.fn[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(a.isEqual(t))return s}},t.prototype.has=function(t){return void 0!==this.get(t)},t.prototype.set=function(t,e){var n=this.dn(t),r=this.fn[n];if(void 0!==r){for(var i=0;i<r.length;i++)if(r[i][0].isEqual(t))return void(r[i]=[t,e]);r.push([t,e])}else this.fn[n]=[[t,e]]},t.prototype.delete=function(t){var e=this.dn(t),n=this.fn[e];if(void 0===n)return!1;for(var r=0;r<n.length;r++)if(n[r][0].isEqual(t))return 1===n.length?delete this.fn[e]:n.splice(r,1),!0;return!1},t.prototype.forEach=function(t){S(this.fn,(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.B=function(){return O(this.fn)},t}(),Ne=function(){function t(t,e,n,r){this.batchId=t,this.Tn=e,this.baseMutations=n,this.mutations=r}return t.prototype.at=function(t,e,n){for(var r=n.En,i=0;i<this.mutations.length;i++){var o=this.mutations[i];if(o.key.isEqual(t)){var a=r[i];e=o.at(e,a)}}return e},t.prototype.ot=function(t,e){for(var n=0,r=this.baseMutations;n<r.length;n++){var i=r[n];i.key.isEqual(t)&&(e=i.ot(e,e,this.Tn))}for(var o=e,a=0,s=this.mutations;a<s.length;a++){var u=s[a];u.key.isEqual(t)&&(e=u.ot(e,o,this.Tn))}return e},t.prototype.In=function(t){var e=this,n=t;return this.mutations.forEach((function(r){var i=e.ot(r.key,t.get(r.key));i&&(n=n.Ae(r.key,i))})),n},t.prototype.keys=function(){return this.mutations.reduce((function(t,e){return t.add(e.key)}
2),$t())},t.prototype.isEqual=function(t){return this.batchId===t.batchId&&Ie(this.mutations,t.mutations,(function(t,e){return t.isEqual(e)}))&&Ie(this.baseMutations,t.baseMutations,(function(t,e){return t.isEqual(e)}))},t}(),Ce=function(){function t(t,e,n,r,i){this.batch=t,this.wn=e,this.En=n,this.streamToken=r,this.Rn=i}return t.from=function(e,n,r,i){Ee(e.mutations.length===r.length);for(var o=Gt(),a=e.mutations,s=0;s<a.length;s++)o=o.Ae(a[s].key,r[s].version);return new t(e,n,r,i,o)},t}(),Pe=function(){function t(t){var e=this;this.An=null,this.mn=null,this.result=void 0,this.error=void 0,this.Pn=!1,this.Vn=!1,t((function(t){e.Pn=!0,e.result=t,e.An&&e.An(t)}),(function(t){e.Pn=!0,e.error=t,e.mn&&e.mn(t)}))}return t.prototype.catch=function(t){return this.next(void 0,t)},t.prototype.next=function(e,n){var r=this;return this.Vn&&we(),this.Vn=!0,this.Pn?this.error?this.gn(n,this.error):this.pn(e,this.result):new t((function(t,i){r.An=function(n){r.pn(e,n).next(t,i)},r.mn=function(e){r.gn(n,e).next(t,i)}}))},t.prototype.yn=function(){var t=this;return new Promise((function(e,n){t.next(e,n)}))},t.prototype.bn=function(e){try{var n=e();return n instanceof t?n:t.resolve(n)}catch(e){return t.reject(e)}},t.prototype.pn=function(e,n){return e?this.bn((function(){return e(n)})):t.resolve(n)},t.prototype.gn=function(e,n){return e?this.bn((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.vn=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.Sn=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.vn(r)},t}(),Re=function(){function t(){this.Dn=new Ae((function(t){return t.toString()})),this.Cn=!1}return Object.defineProperty(t.prototype,"readTime",{get:function(){return this.Fn},set:function(t){this.Fn=t},enumerable:!0,configurable:!0}),t.prototype.Nn=function(t,e){this.kn(),this.readTime=e,this.Dn.set(t.key,t)},t.prototype.$n=function(t,e){this.kn(),e&&(this.readTime=e),this.Dn.set(t,null)},t.prototype.Mn=function(t,e){this.kn();var n=this.Dn.get(e);return void 0!==n?Pe.resolve(n):this.Ln(t,e)},t.prototype.getEntries=function(t,e){return this.On(t,e)},t.prototype.apply=function(t){return this.kn(),this.Cn=!0,this.xn(t)},t.prototype.kn=function(){},t}(),je="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.",De=function(){function t(){this.Bn=[]}return t.prototype.qn=function(t){this.Bn.push(t)},t.prototype.Un=function(){this.Bn.forEach((function(t){return t()}))},t}(),Le=function(){function t(t,e,n){this.Qn=t,this.Wn=e,this.jn=n}return t.prototype.Kn=function(t,e){var n=this;return this.Wn.Gn(t,e).next((function(r){return n.zn(t,e,r)}))},t.prototype.zn=function(t,e,n){return this.Qn.Mn(t,e).next((function(t){for(var r=0,i=n;r<i.length;r++)t=i[r].ot(e,t);return t}))},t.prototype.Hn=function(t,e,n){var r=zt();return e.forEach((function(t,e){for(var i=0,o=n;i<o.length;i++)e=o[i].ot(t,e);r=r.Ae(t,e)})),r},t.prototype.Yn=function(t,e){var n=this;return this.Qn.getEntries(t,e).next((function(e){return n.Jn(t,e)}))},t.prototype.Jn=function(t,e){var n=this;return this.Wn.Xn(t,e).next((function(r){var i=n.Hn(t,e,r),o=Bt();return i.forEach((function(t,e){e||(e=new bt(t,w.min())),o=o.Ae(t,e)})),o}))},t.prototype.Zn=function(t,e,n){return e.Ot()?this.tr(t,e.path):e._e()?this.er(t,e,n):this.sr(t,e,n)},t.prototype.tr=function(t,e){return this.Kn(t,new I(e)).next((function(t){var e=Wt();return t instanceof gt&&(e=e.Ae(t.key,t)),e}))},t.prototype.er=function(t,e,n){var r=this,i=e.collectionGroup,o=Wt();return this.jn.ir(t,i).next((function(a){return Pe.forEach(a,(function(a){var s=e.Zt(a.child(i));return r.sr(t,s,n).next((function(t){t.forEach((function(t,e){o=o.Ae(t,e)}))}
2))})).next((function(){return o}))}))},t.prototype.sr=function(t,e,n){var r,i,o=this;return this.Qn.Zn(t,e,n).next((function(n){return r=n,o.Wn.nr(t,e)})).next((function(e){return i=e,o.rr(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],c=u.key,l=r.get(c),f=u.ot(l,l,o.Tn);r=f instanceof gt?r.Ae(c,f):r.remove(c)}}))})).next((function(){return r.forEach((function(t,n){e.matches(n)||(r=r.remove(t))})),r}))},t.prototype.rr=function(t,e,n){for(var r=$t(),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 ut&&null===n.get(u.key)&&(r=r.add(u.key))}var c=n;return this.Qn.getEntries(t,r).next((function(t){return t.forEach((function(t,e){null!==e&&e instanceof gt&&(c=c.Ae(t,e))})),c}))},t}(),Me=function(){function t(t,e,n,r){this.targetId=t,this.fromCache=e,this.hr=n,this.or=r}return t.ar=function(e,n){for(var r=$t(),i=$t(),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}(),Ue=function(){function t(t,e){var n=this;this.previousValue=t,e&&(e.ur=function(t){return n.cr(t)},this._r=function(t){return e.lr(t)})}return t.prototype.cr=function(t){return this.previousValue=Math.max(t,this.previousValue),this.previousValue},t.prototype.next=function(){var t=++this.previousValue;return this._r&&this._r(t),t},t}();Ue.dr=-1;var Fe=function(){var t=this;this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n}))},Ve=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.Tr=t,this.Er=e,this.Ir=n,this.wr=r,this.Rr=i,this.Ar=0,this.mr=null,this.Pr=Date.now(),this.reset()}return t.prototype.reset=function(){this.Ar=0},t.prototype.Vr=function(){this.Ar=this.Rr},t.prototype.gr=function(t){var e=this;this.cancel();var n=Math.floor(this.Ar+this.pr()),r=Math.max(0,Date.now()-this.Pr),i=Math.max(0,n-r);i>0&&me("ExponentialBackoff","Backing off for "+i+" ms (base delay: "+this.Ar+" ms, delay with jitter: "+n+" ms, last attempt: "+r+" ms ago)"),this.mr=this.Tr.yr(this.Er,i,(function(){return e.Pr=Date.now(),t()})),this.Ar*=this.wr,this.Ar<this.Ir&&(this.Ar=this.Ir),this.Ar>this.Rr&&(this.Ar=this.Rr)},t.prototype.cancel=function(){null!==this.mr&&(this.mr.cancel(),this.mr=null)},t.prototype.pr=function(){return(Math.random()-.5)*this.Ar},t}(),Be=function(){function t(t,e,n,r,i){this.br=t,this.Er=e,this.vr=n,this.op=r,this.Sr=i,this.Dr=new Fe,this.then=this.Dr.promise.then.bind(this.Dr.promise),this.catch=this.Dr.promise.catch.bind(this.Dr.promise),this.Dr.promise.catch((function(t){}))}return t.Cr=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.Fr=setTimeout((function(){return e.Nr()}),t)},t.prototype.kr=function(){return this.Nr()},t.prototype.cancel=function(t){null!==this.Fr&&(this.clearTimeout(),this.Dr.reject(new p(h.CANCELLED,"Operation cancelled"+(t?": "+t:"")))
2)},t.prototype.Nr=function(){var t=this;this.br.$r((function(){return null!==t.Fr?(t.clearTimeout(),t.op().then((function(e){return t.Dr.resolve(e)}))):Promise.resolve()}))},t.prototype.clearTimeout=function(){null!==this.Fr&&(this.Sr(this),clearTimeout(this.Fr),this.Fr=null)},t}(),ze=function(){function t(){var t=this;this.Mr=Promise.resolve(),this.Lr=Promise.resolve(),this.Or=!1,this.xr=[],this.Br=null,this.qr=!1,this.Ur=[],this.Qr=new Ve(this,"async_queue_retry"),this.Wr=function(){t.jr("async_queue_retry")};var e=pe.nt().window;e&&"function"==typeof e.addEventListener&&e.addEventListener("visibilitychange",this.Wr)}return Object.defineProperty(t.prototype,"Kr",{get:function(){return this.Or},enumerable:!0,configurable:!0}),t.prototype.$r=function(t){this.enqueue(t)},t.prototype.Gr=function(t){this.zr(),this.Hr(t)},t.prototype.Yr=function(t){return this.zr(),this.Hr(t)},t.prototype.Jr=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.zr(),this.Or?[3,2]:(this.Or=!0,(e=pe.nt().window)&&e.removeEventListener("visibilitychange",this.Wr),[4,this.Yr(t)]);case 1:n.sent(),n.label=2;case 2:return[2]}}
2))}))},t.prototype.enqueue=function(t){return this.zr(),this.Or?new Promise((function(t){})):this.Hr(t)},t.prototype.Xr=function(t){var e=this;this.zr(),this.Or||(this.Lr=this.Lr.then((function(){var n=new Fe;return e.$r((function r(){return i.__awaiter(e,void 0,void 0,(function(){var e;return i.__generator(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,t()];case 1:return i.sent(),n.resolve(),this.Qr.reset(),[3,3];case 2:if("IndexedDbTransactionError"!==(e=i.sent()).name)throw n.resolve(),e;return me("AsyncQueue","Operation failed with retryable error: "+e),this.Qr.gr(r),[3,3];case 3:return[2]}}))}))})),n.promise})))},t.prototype.Hr=function(t){var e=this,n=this.Mr.then((function(){return e.qr=!0,t().catch((function(t){throw e.Br=t,e.qr=!1,ge("INTERNAL UNHANDLED ERROR: ",t.stack||t.message||""),t})).then((function(t){return e.qr=!1,t}))}));return this.Mr=n,n},t.prototype.yr=function(t,e,n){var r=this;this.zr(),this.Ur.indexOf(t)>-1&&(e=0);var i=Be.Cr(this,t,e,n,(function(t){return r.Zr(t)}));return this.xr.push(i),i},t.prototype.zr=function(){this.Br&&we()},t.prototype.th=function(){},t.prototype.eh=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.Mr];case 1:e.sent(),e.label=2;case 2:if(t!==this.Mr)return[3,0];e.label=3;case 3:return[2]}}
2))}))},t.prototype.sh=function(t){for(var e=0,n=this.xr;e<n.length;e++)if(n[e].Er===t)return!0;return!1},t.prototype.jr=function(t){var e=this;return this.eh().then((function(){e.xr.sort((function(t,e){return t.vr-e.vr}));for(var n=0,r=e.xr;n<r.length;n++){var i=r[n];if(i.kr(),"all"!==t&&i.Er===t)break}return e.eh()}))},t.prototype.ih=function(t){this.Ur.push(t)},t.prototype.Zr=function(t){var e=this.xr.indexOf(t);this.xr.splice(e,1)},t}();function qe(t,e){var n=t[0],r=t[1],i=e[0],o=e[1],a=ke(n,i);return 0===a?ke(r,o):a}var We=function(){function t(t){this.nh=t,this.buffer=new Ut(qe),this.rh=0}return t.prototype.hh=function(){return++this.rh},t.prototype.oh=function(t){var e=[t,this.hh()];if(this.buffer.size<this.nh)this.buffer=this.buffer.add(e);else{var n=this.buffer.last();qe(e,n)<0&&(this.buffer=this.buffer.delete(n).add(e))}},Object.defineProperty(t.prototype,"maxValue",{get:function(){return this.buffer.last()[0]},enumerable:!0,configurable:!0}),t}(),He={ah:!1,uh:0,_h:0,lh:0},Ge=function(){function t(t,e,n){this.dh=t,this.fh=e,this.Th=n}return t.Eh=function(e){return new t(e,t.Ih,t.wh)},t}();Ge.Rh=-1,Ge.Ah=1048576,Ge.mh=41943040,Ge.Ih=10,Ge.wh=1e3,Ge.Ph=new Ge(Ge.mh,Ge.Ih,Ge.wh),Ge.DISABLED=new Ge(Ge.Rh,0,0);var Ke=function(){function t(t,e){this.Vh=t,this.br=e,this.gh=!1,this.ph=null}return t.prototype.start=function(t){this.Vh.yh.dh!==Ge.Rh&&this.bh(t)},t.prototype.stop=function(){this.ph&&(this.ph.cancel(),this.ph=null)},Object.defineProperty(t.prototype,"vh",{get:function(){return null!==this.ph},enumerable:!0,configurable:!0}),t.prototype.bh=function(t){var e=this,n=this.gh?3e5:6e4;me("LruGarbageCollector","Garbage collection scheduled in "+n+"ms"),this.ph=this.br.yr("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.ph=null,this.gh=!0,n.label=1;case 1:return n.trys.push([1,3,,7]),[4,t.Sh(this.Vh)];case 2:return n.sent(),[3,7];case 3:return"IndexedDbTransactionError"!==(e=n.sent()).name?[3,4]:(me("LruGarbageCollector","Ignoring IndexedDB error during garbage collection: ",e),[3,6]);case 4:return[4,rr(e)];case 5:n.sent(),n.label=6;case 6:return[3,7];case 7:return[4,this.bh(t)];case 8:return n.sent(),[2]}}))}))}))},t}(),$e=function(){function t(t,e){this.Dh=t,this.yh=e}return t.prototype.Ch=function(t,e){return this.Dh.Fh(t).next((function(t){return Math.floor(e/100*t)}))},t.prototype.Nh=function(t,e){var n=this;if(0===e)return Pe.resolve(Ue.dr);var r=new We(e);return this.Dh.js(t,(function(t){return r.oh(t.sequenceNumber)})).next((function(){return n.Dh.kh(t,(function(t){return r.oh(t)}))})).next((function(){return r.maxValue}))},t.prototype.$h=function(t,e,n){return this.Dh.$h(t,e,n)},t.prototype.Mh=function(t,e){return this.Dh.Mh(t,e)},t.prototype.Lh=function(t,e){var n=this;return this.yh.dh===Ge.Rh?(me("LruGarbageCollector","Garbage collection skipped; disabled"),Pe.resolve(He)):this.Oh(t).next((function(r){return r<n.yh.dh?(me("LruGarbageCollector","Garbage collection skipped; Cache size "+r+" is lower than threshold "+n.yh.dh),He):n.xh(t,e)}))},t.prototype.Oh=function(t){return this.Dh.Oh(t)},t.prototype.xh=function(t,e){var n,r,i,o,s,u,c,l=this,f=Date.now();return this.Ch(t,this.yh.fh).next((function(e){return e>l.yh.Th?(me("LruGarbageCollector","Capping sequence numbers to collect down to the maximum of "+l.yh.Th+" from "+e),r=l.yh.Th):r=e,o=Date.now(),l.Nh(t,r)})).next((function(r){return n=r,s=Date.now(),l.$h(t,n,e)})).next((function(e){return i=e,u=Date.now(),l.Mh(t,n)})).next((function(t){return c=Date.now(),ve()<=a.LogLevel.DEBUG&&me("LruGarbageCollector","LRU Garbage Collection\n\tCounted targets in "+(o-f)+"ms\n\tDetermined least recently used "+r+" in "+(s-o)+"ms\n\tRemoved "+i+" targets in "+(u-s)+"ms\n\tRemoved "+t+" documents in "+(c-u)+"ms\nTotal Duration: "+(c-f)+"ms"),Pe.resolve({ah:!0,uh:r,_h:i,lh:t})}))},t}();function Xe(t){for(var e="",n=0;n<t.length;n++)e.length>0&&(e=Ye(e)),e=Qe(t.get(n),e);return Ye(e)}function Qe(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 Ye(t){return t+"\x01\x01"}function Je(t){var e=t.length;if(Ee(e>=2),2===e)return Ee("\x01"===t.charAt(0)&&"\x01"===t.charAt(1)),T.G;for(var n=e-2,r=[],i="",o=0;o<e;){var a=t.indexOf("\x01",o);switch((a<0||a>n)&&we(),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:we()}o=a+2}return new T(r)}var Ze=function(){function t(e){this.db=e,12.2===t.Bh(s.getUA())&&ge("Firestore persistence suffers from a bug in 
2iOS 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 t.qh=function(e,n,r){return me("SimpleDb","Opening database:",e),new Pe((function(i,o){var a=window.indexedDB.open(e,n);a.onsuccess=function(e){var n=e.target.result;i(new t(n))},a.onblocked=function(){o(new p(h.FAILED_PRECONDITION,"Cannot upgrade IndexedDB schema while another tab is open. Close all tabs that access Firestore and reload this page to proceed."))},a.onerror=function(t){var e=t.target.error;"VersionError"===e.name?o(new p(h.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.")):o(e)},a.onupgradeneeded=function(t){me("SimpleDb",'Database "'+e+'" requires upgrade from version:',t.oldVersion);var n=t.target.result;r.createOrUpgrade(n,a.transaction,t.oldVersion,Sn).next((function(){me("SimpleDb","Database upgrade to version "+Sn+" complete")}))}})).yn()},t.delete=function(t){return me("SimpleDb","Removing database:",t),on(window.indexedDB.deleteDatabase(t)).yn()},t.Uh=function(){if("undefined"==typeof window||null==window.indexedDB)return!1;if(t.Qh())return!0;if(void 0===window.navigator)return!1;var e=s.getUA(),n=t.Bh(e),r=0<n&&n<10,i=t.Wh(e),o=0<i&&i<4.5;return!(e.indexOf("MSIE ")>0||e.indexOf("Trident/")>0||e.indexOf("Edge/")>0||r||o)},t.Qh=function(){var t;return"undefined"!=typeof __PRIVATE_process&&"YES"===(null===(t=__PRIVATE_process.__PRIVATE_env)||void 0===t?void 0:t.jh)},t.Kh=function(t,e){return t.store(e)},t.Bh=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)},t.Wh=function(t){var e=t.match(/Android ([\d.]+)/i),n=e?e[1].split(".").slice(0,2).join("."):"-1";return Number(n)},t.prototype.Gh=function(t){this.db.onversionchange=function(e){return t(e)}},t.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(c){switch(c.label){case 0:r="readonly"===t,o=0,a=function(){var t,a,u,c,l;return i.__generator(this,(function(i){switch(i.label){case 0:++o,t=nn.open(s.db,r?"readonly":"readwrite",e),i.label=1;case 1:return i.trys.push([1,3,,4]),a=n(t).catch((function(e){return t.abort(e),Pe.reject(e)})).yn(),u={},a.catch((function(){})),[4,t.zh];case 2:return[2,(u.value=(i.sent(),a),u)];case 3:return c=i.sent(),l="FirebaseError"!==c.name&&o<3,me("SimpleDb","Transaction failed with error: %s. Retrying: %s.",c.message,l),l?[3,4]:[2,{value:Promise.reject(c)}];case 4:return[2]}}
2))},s=this,c.label=1;case 1:return[5,a()];case 2:if("object"==typeof(u=c.sent()))return[2,u.value];c.label=3;case 3:return[3,1];case 4:return[2]}}))}))},t.prototype.close=function(){this.db.close()},t}(),tn=function(){function t(t){this.Hh=t,this.Yh=!1,this.Jh=null}return Object.defineProperty(t.prototype,"Pn",{get:function(){return this.Yh},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"Xh",{get:function(){return this.Jh},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cursor",{set:function(t){this.Hh=t},enumerable:!0,configurable:!0}),t.prototype.done=function(){this.Yh=!0},t.prototype.Zh=function(t){this.Jh=t},t.prototype.delete=function(){return on(this.Hh.delete())},t}(),en=function(t){function e(e){var n=this;return(n=t.call(this,h.UNAVAILABLE,"IndexedDB transaction failed: "+e)||this).name="IndexedDbTransactionError",n}return i.__extends(e,t),e}(p),nn=function(){function t(t){var e=this;this.transaction=t,this.aborted=!1,this.to=new Fe,this.transaction.oncomplete=function(){e.to.resolve()},this.transaction.onabort=function(){t.error?e.to.reject(new en(t.error)):e.to.resolve()},this.transaction.onerror=function(t){var n=sn(t.target.error);e.to.reject(new en(n))}}return t.open=function(e,n,r){return new t(e.transaction(r,n))},Object.defineProperty(t.prototype,"zh",{get:function(){return this.to.promise},enumerable:!0,configurable:!0}),t.prototype.abort=function(t){t&&this.to.reject(t),this.aborted||(me("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 rn(e)},t}(),rn=function(){function t(t){this.store=t}return t.prototype.put=function(t,e){var n;return void 0!==e?(me("SimpleDb","PUT",this.store.name,t,e),n=this.store.put(e,t)):(me("SimpleDb","PUT",this.store.name,"<auto-key>",t),n=this.store.put(t)),on(n)},t.prototype.add=function(t){return me("SimpleDb","ADD",this.store.name,t,t),on(this.store.add(t))},t.prototype.get=function(t){var e=this;return on(this.store.get(t)).next((function(n){return void 0===n&&(n=null),me("SimpleDb","GET",e.store.name,t,n),n}))},t.prototype.delete=function(t){return me("SimpleDb","DELETE",this.store.name,t),on(this.store.delete(t))},t.prototype.count=function(){return me("SimpleDb","COUNT",this.store.name),on(this.store.count())},t.prototype.eo=function(t,e){var n=this.cursor(this.options(t,e)),r=[];return this.so(n,(function(t,e){r.push(e)})).next((function(){return r}))},t.prototype.io=function(t,e){me("SimpleDb","DELETE ALL",this.store.name);var n=this.options(t,e);n.no=!1;var r=this.cursor(n);return this.so(r,(function(t,e,n){return n.delete()}))},t.prototype.ro=function(t,e){var n;e?n=t:(n={},e=t);var r=this.cursor(n);return this.so(r,e)},t.prototype.ho=function(t){var e=this.cursor({});return new Pe((function(n,r){e.onerror=function(t){var e=sn(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.so=function(t,e){var n=[];return new Pe((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 tn(i),a=e(i.primaryKey,i.value,o);if(a instanceof Pe){var s=a.catch((function(t){return o.done(),Pe.reject(t)}));n.push(s)}o.Pn?r():null===o.Xh?i.continue():i.continue(o.Xh)}else r()}})).next((function(){return Pe.vn(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.no?n.openKeyCursor(t.range,e):n.openCursor(t.range,e)}return this.store.openCursor(t.range,e)},t}();function on(t){return new Pe((function(e,n){t.onsuccess=function(t){var n=t.target.result;e(n)},t.onerror=function(t){var e=sn(t.target.error);n(e)}}))}var an=!1;function sn(t){var e=Ze.Bh(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 p("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 an||(an=!0,setTimeout((function(){throw r}),0)),r}}return t}var un=function(){function t(t,e,n,r){this.userId=t,this.serializer
2=e,this.jn=n,this.oo=r,this.ao={}}return t.uo=function(e,n,r,i){return Ee(""!==e.uid),new t(e.t()?e.uid:"",n,r,i)},t.prototype.co=function(t){var e=!0,n=IDBKeyRange.bound([this.userId,Number.NEGATIVE_INFINITY],[this.userId,Number.POSITIVE_INFINITY]);return fn(t).ro({index:Pn.userMutationsIndex,range:n},(function(t,n,r){e=!1,r.done()})).next((function(){return e}))},t.prototype._o=function(t,e,n){return this.lo(t).next((function(e){return e.lastStreamToken=n.toBase64(),pn(t).put(e)}))},t.prototype.do=function(t){return this.lo(t).next((function(t){return A.fromBase64String(t.lastStreamToken)}))},t.prototype.fo=function(t,e){return this.lo(t).next((function(n){return n.lastStreamToken=e.toBase64(),pn(t).put(n)}))},t.prototype.To=function(t,e,n,r){var i=this,o=hn(t),a=fn(t);return a.add({}).next((function(s){Ee("number"==typeof s);for(var u=new Ne(s,e,n,r),c=i.serializer.Eo(i.userId,u),l=[],f=new Ut((function(t,e){return ke(t.j(),e.j())})),h=0,p=r;h<p.length;h++){var d=p[h],v=Rn.key(i.userId,d.key.path,s);f=f.add(d.key.path.M()),l.push(a.put(c)),l.push(o.put(v,Rn.PLACEHOLDER))}return f.forEach((function(e){l.push(i.jn.Io(t,e))})),t.qn((function(){i.ao[s]=u.keys()})),Pe.vn(l).next((function(){return u}))}))},t.prototype.wo=function(t,e){var n=this;return fn(t).get(e).next((function(t){return t?(Ee(t.userId===n.userId),n.serializer.Ro(t)):null}))},t.prototype.Ao=function(t,e){var n=this;return this.ao[e]?Pe.resolve(this.ao[e]):this.wo(t,e).next((function(t){if(t){var r=t.keys();return n.ao[e]=r,r}return null}))},t.prototype.mo=function(t,e){var n=this,r=e+1,i=IDBKeyRange.lowerBound([this.userId,r]),o=null;return fn(t).ro({index:Pn.userMutationsIndex,range:i},(function(t,e,i){e.userId===n.userId&&(Ee(e.batchId>=r),o=n.serializer.Ro(e)),i.done()})).next((function(){return o}))},t.prototype.Po=function(t){var e=IDBKeyRange.upperBound([this.userId,Number.POSITIVE_INFINITY]),n=-1;return fn(t).ro({index:Pn.userMutationsIndex,range:e,reverse:!0},(function(t,e,r){n=e.batchId,r.done()})).next((function(){return n}))},t.prototype.Vo=function(t){var e=this,n=IDBKeyRange.bound([this.userId,-1],[this.userId,Number.POSITIVE_INFINITY]);return fn(t).eo(Pn.userMutationsIndex,n).next((function(t){return t.map((function(t){return e.serializer.Ro(t)}))}))},t.prototype.Gn=function(t,e){var n=this,r=Rn.prefixForPath(this.userId,e.path),i=IDBKeyRange.lowerBound(r),o=[];return hn(t).ro({range:i},(function(r,i,a){var s=r[0],u=r[1],c=r[2],l=Je(u);if(s===n.userId&&e.path.isEqual(l))return fn(t).get(c).next((function(t){if(!t)throw we();Ee(t.userId===n.userId),o.push(n.serializer.Ro(t))}));a.done()})).next((function(){return o}))},t.prototype.Xn=function(t,e){var n=this,r=new Ut(ke),i=[];return e.forEach((function(e){var o=Rn.prefixForPath(n.userId,e.path),a=IDBKeyRange.lowerBound(o),s=hn(t).ro({range:a},(function(t,i,o){var a=t[0],s=t[1],u=t[2],c=Je(s);a===n.userId&&e.path.isEqual(c)?r=r.add(u):o.done()}));i.push(s)})),Pe.vn(i).next((function(){return n.po(t,r)}))},t.prototype.nr=function(t,e){var n=this,r=e.path,i=r.length+1,o=Rn.prefixForPath(this.userId,r),a=IDBKeyRange.lowerBound(o),s=new Ut(ke);return hn(t).ro({range:a},(function(t,e,o){var a=t[0],u=t[1],c=t[2],l=Je(u);a===n.userId&&r.q(l)?l.length===i&&(s=s.add(c)):o.done()})).next((function(){return n.po(t,s)}))},t.prototype.po=function(t,e){var n=this,r=[],i=[];return e.forEach((function(e){i.push(fn(t).get(e).next((function(t){if(null===t)throw we();Ee(t.userId===n.userId),r.push(n.serializer.Ro(t))})))})),Pe.vn(i).next((function(){return r}))},t.prototype.yo=function(t,e){var n=this;return ln(t.bo,this.userId,e).next((function(r){return t.qn((function(){n.vo(e.batchId)})),Pe.forEach(r,(function(e){return n.oo.So(t,e)}))}))},t.prototype.vo=function(t){delete this.ao[t]},t.prototype.Do=function(t){var e=this;return this.co(t).next((function(n){if(!n)return Pe.resolve();var r=IDBKeyRange.lowerBound(Rn.prefixForUser(e.userId)),i=[];return hn(t).ro({range:r},(function(t,n,r){if(t[0]===e.userId){var o=Je(t[1]);i.push(o)}else r.done()})).next((function(){Ee(0===i.length)}))}))},t.prototype.Co=function(t,e){return cn(t,this.userId,e)},t.prototype.lo=function(t){var e=this;return pn(t).get(this.userId).next((function(t){return t||new Cn(e.userId,-1,"")}))},t}();
2function cn(t,e,n){var r=Rn.prefixForPath(e,n.path),i=r[1],o=IDBKeyRange.lowerBound(r),a=!1;return hn(t).ro({range:o,no:!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 ln(t,e,n){var r=t.store(Pn.store),i=t.store(Rn.store),o=[],a=IDBKeyRange.only(n.batchId),s=0,u=r.ro({range:a},(function(t,e,n){return s++,n.delete()}));o.push(u.next((function(){Ee(1===s)})));for(var c=[],l=0,f=n.mutations;l<f.length;l++){var h=f[l],p=Rn.key(e,h.key.path,n.batchId);o.push(i.delete(p)),c.push(h.key)}return Pe.vn(o).next((function(){return c}))}function fn(t){return Qn.Kh(t,Pn.store)}function hn(t){return Qn.Kh(t,Rn.store)}function pn(t){return Qn.Kh(t,Cn.store)}var dn=function(){function t(t){this.Fo=t}return t.prototype.next=function(){return this.Fo+=2,this.Fo},t.No=function(){return new t(0)},t.ko=function(){return new t(-1)},t}(),vn=function(){function t(t,e){this.oo=t,this.serializer=e}return t.prototype.$o=function(t){var e=this;return this.Mo(t).next((function(n){var r=new dn(n.highestTargetId);return n.highestTargetId=r.next(),e.Lo(t,n).next((function(){return n.highestTargetId}))}))},t.prototype.Oo=function(t){return this.Mo(t).next((function(t){return w.v(new b(t.lastRemoteSnapshotVersion.seconds,t.lastRemoteSnapshotVersion.nanoseconds))}))},t.prototype.xo=function(t){return gn(t.bo)},t.prototype.Bo=function(t,e,n){var r=this;return this.Mo(t).next((function(i){return i.highestListenSequenceNumber=e,n&&(i.lastRemoteSnapshotVersion=n.C()),e>i.highestListenSequenceNumber&&(i.highestListenSequenceNumber=e),r.Lo(t,i)}))},t.prototype.qo=function(t,e){var n=this;return this.Uo(t,e).next((function(){return n.Mo(t).next((function(r){return r.targetCount+=1,n.Qo(e,r),n.Lo(t,r)}))}))},t.prototype.Wo=function(t,e){return this.Uo(t,e)},t.prototype.jo=function(t,e){var n=this;return this.Ko(t,e.targetId).next((function(){return yn(t).delete(e.targetId)})).next((function(){return n.Mo(t)})).next((function(e){return Ee(e.targetCount>0),e.targetCount-=1,n.Lo(t,e)}))},t.prototype.$h=function(t,e,n){var r=this,i=0,o=[];return yn(t).ro((function(a,s){var u=r.serializer.Go(s);u.sequenceNumber<=e&&null===n.get(u.targetId)&&(i++,o.push(r.jo(t,u)))})).next((function(){return Pe.vn(o)})).next((function(){return i}))},t.prototype.js=function(t,e){var n=this;return yn(t).ro((function(t,r){var i=n.serializer.Go(r);e(i)}))},t.prototype.Mo=function(t){return mn(t.bo)},t.prototype.Lo=function(t,e){return(n=t,Qn.Kh(n,Vn.store)).put(Vn.key,e);var n},t.prototype.Uo=function(t,e){return yn(t).put(this.serializer.zo(e))},t.prototype.Qo=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.Ho=function(t){return this.Mo(t).next((function(t){return t.targetCount}))},t.prototype.Yo=function(t,e){var n=this,r=e.canonicalId(),i=IDBKeyRange.bound([r,Number.NEGATIVE_INFINITY],[r,Number.POSITIVE_INFINITY]),o=null;return yn(t).ro({range:i,index:Un.queryTargetsIndexName},(function(t,r,i){var a=n.serializer.Go(r);e.isEqual(a.target)&&(o=a,i.done())})).next((function(){return o}))},t.prototype.Jo=function(t,e,n){var r=this,i=[],o=bn(t);return e.forEach((function(e){var a=Xe(e.path);i.push(o.put(new Fn(n,a))),i.push(r.oo.Xo(t,n,e))})),Pe.vn(i)},t.prototype.Zo=function(t,e,n){var r=this,i=bn(t);return Pe.forEach(e,(function(e){var o=Xe(e.path);return Pe.vn([i.delete([n,o]),r.oo.ta(t,n,e)])}))},t.prototype.Ko=function(t,e){var n=bn(t),r=IDBKeyRange.bound([e],[e+1],!1,!0);return n.delete(r)},t.prototype.ea=function(t,e){var n=IDBKeyRange.bound([e],[e+1],!1,!0),r=bn(t),i=$t();return r.ro({range:n,no:!0},(function(t,e,n){var r=Je(t[1]),o=new I(r);i=i.add(o)})).next((function(){return i}))},t.prototype.Co=function(t,e){var n=Xe(e.path),r=IDBKeyRange.bound([n],[xe(n)],!1,!0),i=0;return bn(t).ro({index:Fn.documentTargetsIndex,no:!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.si=function(t,e){var n=this;return yn(t).get(e).next((function(t){return t?n.serializer.Go(t):null}))},t}();function yn(t){return Qn.Kh(t,Un.store)}function mn(t){return Ze.Kh(t,Vn.store).get(Vn.key).next((function(t){return Ee(null!==t),t}))}function gn(t){return mn(t).next((function(t){return t.highestListenSequenceNumber}))}function bn(t){return Qn.Kh(t,Fn.store)}
2var wn=function(){function t(t,e){this.serializer=t,this.jn=e}return t.prototype.Nn=function(t,e,n){return Tn(t).put(_n(e),n)},t.prototype.$n=function(t,e){var n=Tn(t),r=_n(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.sa(t,r)}))},t.prototype.Mn=function(t,e){var n=this;return Tn(t).get(_n(e)).next((function(t){return n.ia(t)}))},t.prototype.na=function(t,e){var n=this;return Tn(t).get(_n(e)).next((function(t){var e=n.ia(t);return e?{ra:e,size:kn(t)}:null}))},t.prototype.getEntries=function(t,e){var n=this,r=zt();return this.ha(t,e,(function(t,e){var i=n.ia(e);r=r.Ae(t,i)})).next((function(){return r}))},t.prototype.oa=function(t,e){var n=this,r=zt(),i=new Dt(I.N);return this.ha(t,e,(function(t,e){var o=n.ia(e);o?(r=r.Ae(t,o),i=i.Ae(t,kn(e))):(r=r.Ae(t,null),i=i.Ae(t,0))})).next((function(){return{aa:r,ua:i}}))},t.prototype.ha=function(t,e,n){if(e.B())return Pe.resolve();var r=IDBKeyRange.bound(e.first().path.W(),e.last().path.W()),i=e.be(),o=i.Ne();return Tn(t).ro({range:r},(function(t,e,r){for(var a=I.st(t);o&&I.N(o,a)<0;)n(o,null),o=i.Ne();o&&o.isEqual(a)&&(n(o,e),o=i.ke()?i.Ne():null),o?r.Zh(o.path.W()):r.done()})).next((function(){for(;o;)n(o,null),o=i.ke()?i.Ne():null}))},t.prototype.Zn=function(t,e,n){var r=this,i=Wt(),o=e.path.length+1,a={};if(n.isEqual(w.min())){var s=e.path.W();a.range=IDBKeyRange.lowerBound(s)}else{var u=e.path.W(),c=this.serializer.ca(n);a.range=IDBKeyRange.lowerBound([u,c],!0),a.index=Ln.collectionReadTimeIndex}return Tn(t).ro(a,(function(t,n,a){if(t.length===o){var s=r.serializer._a(n);e.path.q(s.key.path)?s instanceof gt&&e.matches(s)&&(i=i.Ae(s.key,s)):a.done()}})).next((function(){return i}))},t.prototype.la=function(t,e){var n=this,r=Bt(),i=this.serializer.ca(e),o=Tn(t),a=IDBKeyRange.lowerBound(i,!0);return o.ro({index:Ln.readTimeIndex,range:a},(function(t,e){var o=n.serializer._a(e);r=r.Ae(o.key,o),i=e.readTime})).next((function(){return{da:r,readTime:n.serializer.fa(i)}}))},t.prototype.Ta=function(t){var e=this,n=Tn(t),r=w.min();return n.ro({index:Ln.readTimeIndex,reverse:!0},(function(t,n,i){n.readTime&&(r=e.serializer.fa(n.readTime)),i.done()})).next((function(){return r}))},t.prototype.Ea=function(e){return new t.Ia(this,!!e&&e.wa)},t.prototype.Ra=function(t){return this.getMetadata(t).next((function(t){return t.byteSize}))},t.prototype.getMetadata=function(t){return En(t).get(Mn.key).next((function(t){return Ee(!!t),t}))},t.prototype.sa=function(t,e){return En(t).put(Mn.key,e)},t.prototype.ia=function(t){if(t){var e=this.serializer._a(t);return e instanceof bt&&e.version.isEqual(w.min())?null:e}return null},t}();function En(t){return Qn.Kh(t,Mn.store)}function Tn(t){return Qn.Kh(t,Ln.store)}function _n(t){return t.path.W()}function kn(t){var e;if(t.document)e=t.document;else if(t.unknownDocument)e=t.unknownDocument;else{if(!t.noDocument)throw we();e=t.noDocument}return JSON.stringify(e).length}wn.Ia=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).Aa=e,r.wa=n,r.ma=new Ae((function(t){return t.toString()})),r}return i.__extends(e,t),e.prototype.xn=function(t){var e=this,n=[],r=0,i=new Ut((function(t,e){return ke(t.j(),e.j())}));return this.Dn.forEach((function(o,a){var s=e.ma.get(o);if(a){var u=e.Aa.serializer.Pa(a,e.readTime);i=i.add(o.path.M());var c=kn(u);r+=c-s,n.push(e.Aa.Nn(t,o,u))}else if(r-=s,e.wa){var l=e.Aa.serializer.Pa(new bt(o,w.min()),e.readTime);n.push(e.Aa.Nn(t,o,l))}else n.push(e.Aa.$n(t,o))})),i.forEach((function(r){n.push(e.Aa.jn.Io(t,r))})),n.push(this.Aa.updateMetadata(t,r)),Pe.vn(n)},e.prototype.Ln=function(t,e){var n=this;return this.Aa.na(t,e).next((function(t){return null===t?(n.ma.set(e,0),null):(n.ma.set(e,t.size),t.ra)}))},e.prototype.On=function(t,e){var n=this;return this.Aa.oa(t,e).next((function(t){var e=t.aa;return t.ua.forEach((function(t,e){n.ma.set(t,e)})),e}))},e}(Re);var In=function(){function t(){this.Va=new xn}return t.prototype.Io=function(t,e){return this.Va.add(e),Pe.resolve()},t.prototype.ir=function(t,e){return Pe.resolve(this.Va.getEntries(e))},t}(),xn=function(){function t(){this.index={}}return t.prototype.add=function(t){var e=t.O(),n=t.M(),r=this.index[e]||new Ut(T.N),i=!r.has(n);return this.index[e]=r.add(n),i},t.prototype.has=function(t){var e=t.O(),n=t.M(),r=this.index[e];return r&&r.has(n)},t.prototype.getEntries=function(t){return(this.index[t]||new Ut(T.N)).W()},t}
2(),Sn=10,On=function(){function t(t){this.serializer=t}return t.prototype.createOrUpgrade=function(t,e,n,r){var i=this;Ee(n<r&&n>=0&&r<=Sn);var o=new nn(e);n<1&&r>=1&&(function(t){t.createObjectStore(Nn.store)}(t),function(t){t.createObjectStore(Cn.store,{keyPath:Cn.keyPath}),t.createObjectStore(Pn.store,{keyPath:Pn.keyPath,autoIncrement:!0}).createIndex(Pn.userMutationsIndex,Pn.userMutationsKeyPath,{unique:!0}),t.createObjectStore(Rn.store)}(t),zn(t),function(t){t.createObjectStore(Ln.store)}(t));var a=Pe.resolve();return n<3&&r>=3&&(0!==n&&(function(t){t.deleteObjectStore(Fn.store),t.deleteObjectStore(Un.store),t.deleteObjectStore(Vn.store)}(t),zn(t)),a=a.next((function(){return function(t){var e=t.store(Vn.store),n=new Vn(0,0,w.min().C(),0);return e.put(Vn.key,n)}(o)}))),n<4&&r>=4&&(0!==n&&(a=a.next((function(){return function(t,e){return e.store(Pn.store).eo().next((function(n){t.deleteObjectStore(Pn.store),t.createObjectStore(Pn.store,{keyPath:Pn.keyPath,autoIncrement:!0}).createIndex(Pn.userMutationsIndex,Pn.userMutationsKeyPath,{unique:!0});var r=e.store(Pn.store),i=n.map((function(t){return r.put(t)}));return Pe.vn(i)}))}(t,o)}))),a=a.next((function(){!function(t){t.createObjectStore(qn.store,{keyPath:qn.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(Mn.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")}(t),function(t){var e=t.objectStore(Ln.store);e.createIndex(Ln.readTimeIndex,Ln.readTimeIndexPath,{unique:!1}),e.createIndex(Ln.collectionReadTimeIndex,Ln.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(Ln.store).ro((function(t,n){e+=kn(n)})).next((function(){var n=new Mn(e);return t.store(Mn.store).put(Mn.key,n)}))},t.prototype.removeAcknowledgedMutations=function(t){var e=this,n=t.store(Cn.store),r=t.store(Pn.store);return n.eo().next((function(n){return Pe.forEach(n,(function(n){var i=IDBKeyRange.bound([n.userId,-1],[n.userId,n.lastAcknowledgedBatchId]);return r.eo(Pn.userMutationsIndex,i).next((function(r){return Pe.forEach(r,(function(r){Ee(r.userId===n.userId);var i=e.serializer.Ro(r);return ln(t,n.userId,i).next((function(){}))}))}))}))}))},t.prototype.ensureSequenceNumbers=function(t){var e=t.store(Fn.store),n=t.store(Ln.store);return gn(t).next((function(t){var r=[];return n.ro((function(n,i){var o=new T(n),a=function(t){return[0,Xe(t)]}(o);r.push(e.get(a).next((function(n){return n?Pe.resolve():function(n){return e.put(new Fn(0,Xe(n),t))}(o)})))})).next((function(){return Pe.vn(r)}))}))},t.prototype.createCollectionParentIndex=function(t,e){t.createObjectStore(Bn.store,{keyPath:Bn.keyPath});var n=e.store(Bn.store),r=new xn,i=function(t){if(r.add(t)){var e=t.O(),i=t.M();return n.put({collectionId:e,parent:Xe(i)})}};return e.store(Ln.store).ro({no:!0},(function(t,e){var n=new T(t);return i(n.M())})).next((function(){return e.store(Rn.store).ro({no:!0},(function(t,e){t[0];var n=t[1],r=(t[2],Je(n));return i(r.M())}))}))},t.prototype.rewriteCanonicalIds=function(t){var e=this,n=t.store(Un.store);return n.ro((function(t,r){var i=e.serializer.Go(r),o=e.serializer.zo(i);return n.put(o)}))},t}(),An=function(t,e){this.seconds=t,this.nanoseconds=e},Nn=function(t,e,n){this.ownerId=t,this.allowTabSynchronization=e,this.leaseTimestampMs=n};Nn.store="owner",Nn.key="owner";var Cn=function(t,e,n){this.userId=t,this.lastAcknowledgedBatchId=e,this.lastStreamToken=n};Cn.store="mutationQueues",Cn.keyPath="userId";var Pn=function(t,e,n,r,i){this.userId=t,this.batchId=e,this.localWriteTimeMs=n,this.baseMutations=r,this.mutations=i};Pn.store="mutations",Pn.keyPath="batchId",Pn.userMutationsIndex="userMutationsIndex",Pn.userMutationsKeyPath=["userId","batchId"];var Rn=function(){function t(){}return t.prefixForUser=function(t){return[t]},t.prefixForPath=function(t,e){return[t,Xe(e)]},t.key=function(t,e,n){return[t,Xe(e),n]},t}();Rn.store="documentMutations",Rn.PLACEHOLDER=new Rn;var jn=function(t,e){this.path=t,this.readTime=e},Dn=function(t,e){this.path=t,this.version=e},Ln=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};Ln.store="remoteDocuments",Ln.readTimeIndex="readTimeIndex",Ln.readTimeIndexPath="readTime",Ln.collectionReadTimeIndex="collectionReadTimeIndex",Ln.collectionReadTimeIndexPath=["parentPath","readTime"];var Mn=function(t){this.byteSize=t};Mn.store="remoteDocumentGlobal",Mn.key="remoteDocumentGlobalKey";var Un=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};Un.store="targets",Un.keyPath="targetId",Un.queryTargetsIndexName="queryTargetsIndex",Un.queryTargetsKeyPath=["canonicalId","targetId"];var Fn=function(t,e,n){this.targetId=t,this.path=e,this.sequenceNumber=n};Fn.store="targetDocuments",Fn.keyPath=["targetId","path"],Fn.documentTargetsIndex="documentTargetsIndex",Fn.documentTargetsKeyPath=["path","targetId"];var Vn=function(t,e,n,r){this.highestTargetId=t,this.highestListenSequenceNumber=e,this.lastRemoteSnapshotVersion=n,this.targetCount=r};Vn.key="targetGlobalKey",Vn.store="targetGlobal";var Bn=function(t,e){this.collectionId=t,this.parent=e};function zn(t){t.createObjectStore(Fn.store,{keyPath:Fn.keyPath}).createIndex(Fn.documentTargetsIndex,Fn.documentTargetsKeyPath,{unique:!0}),t.createObjectStore(Un.store,{keyPath:Un.keyPath}).createIndex(Un.queryTargetsIndexName,Un.queryTargetsKeyPath,{unique:!0}),t.createObjectStore(Vn.store)}Bn.store="collectionParents",Bn.keyPath=["collectionId","parent"];var qn=function(t,e,n,r){this.clientId=t,this.updateTimeMs=e,this.networkEnabled=n,this.inForeground=r};qn.store="clientMetadata",qn.keyPath="clientId";var Wn=i.__spreadArrays(i.__spreadArrays(i.__spreadArrays([Cn.store,Pn.store,Rn.store,Ln.store,Un.store,Nn.store,Vn.store,Fn.store],[qn.store]),[Mn.store]),[Bn.store]),Hn=function(){function t(){this.ga=new xn}return t.prototype.Io=function(t,e){var n=this;if(!this.ga.has(e)){var r=e.O(),i=e.M();t.qn((function(){n.ga.add(e)}));var o={collectionId:r,parent:Xe(i)};return Gn(t).put(o)}return Pe.resolve()},t.prototype.ir=function(t,e){var n=[],r=IDBKeyRange.bound([e,""],[xe(e),""],!1,!0);return Gn(t).eo(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(Je(o.parent))}return n}))},t}();function Gn(t){return Qn.Kh(t,Bn.store)}var Kn=function(){function t(t){this.pa=t}return t.prototype._a=function(t){if(t.document)return this.pa.mi(t.document,!!t.hasCommittedMutations);if(t.noDocument){var e=I.st(t.noDocument.path),n=this.ya(t.noDocument.readTime);return new bt(e,n,{hasCommittedMutations:!!t.hasCommittedMutations})}if(t.unknownDocument){var r=I.st(t.unknownDocument.path),i=this.ya(t.unknownDocument.version);return new wt(r,i)}return we()},t.prototype.Pa=function(t,e){var n=this.ca(e),r=t.key.path.M().W();if(t instanceof gt){var i=this.pa.Ai(t),o=t.hasCommittedMutations;return new Ln(null,null,i,o,n,r)}
2if(t instanceof bt){var a=t.key.path.W(),s=this.ba(t.version),u=t.hasCommittedMutations;return new Ln(null,new jn(a,s),null,u,n,r)}if(t instanceof wt){var c=t.key.path.W(),l=this.ba(t.version);return new Ln(new Dn(c,l),null,null,!0,n,r)}return we()},t.prototype.ca=function(t){var e=t.C();return[e.seconds,e.nanoseconds]},t.prototype.fa=function(t){var e=new b(t[0],t[1]);return w.v(e)},t.prototype.ba=function(t){var e=t.C();return new An(e.seconds,e.nanoseconds)},t.prototype.ya=function(t){var e=new b(t.seconds,t.nanoseconds);return w.v(e)},t.prototype.Eo=function(t,e){var n=this,r=e.baseMutations.map((function(t){return n.pa.vi(t)})),i=e.mutations.map((function(t){return n.pa.vi(t)}));return new Pn(t,e.batchId,e.Tn.toMillis(),r,i)},t.prototype.Ro=function(t){var e=this,n=(t.baseMutations||[]).map((function(t){return e.pa.Fi(t)})),r=t.mutations.map((function(t){return e.pa.Fi(t)})),i=b.fromMillis(t.localWriteTimeMs);return new Ne(t.batchId,i,n,r)},t.prototype.Go=function(t){var e,n=this.ya(t.readTime),r=void 0!==t.lastLimboFreeSnapshotVersion?this.ya(t.lastLimboFreeSnapshotVersion):w.min();return e=void 0!==t.query.documents?this.pa.xi(t.query):this.pa.Wi(t.query),new Ct(e,t.targetId,0,t.lastListenSequenceNumber,n,r,A.fromBase64String(t.resumeToken))},t.prototype.zo=function(t){var e,n=this.ba(t.Ee),r=this.ba(t.lastLimboFreeSnapshotVersion);e=t.target.Ot()?this.pa.Oi(t.target):this.pa.Bi(t.target);var i=t.resumeToken.toBase64();return new Un(t.targetId,t.target.canonicalId(),n,i,t.sequenceNumber,r,e)},t}(),$n="Another tab has exclusive access to the persistence layer. To allow shared access, make sure to invoke `enablePersistence()` with `synchronizeTabs:true` in all tabs.",Xn=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).bo=e,r.va=n,r}return i.__extends(e,t),e}(De),Qn=function(){function t(e,n,r,i,o,a,s,u){if(this.allowTabSynchronization=e,this.persistenceKey=n,this.clientId=r,this.Tr=a,this.Sa=u,this.Da=!1,this.isPrimary=!1,this.networkEnabled=!0,this.Ca=null,this.inForeground=!1,this.Fa=null,this.Na=null,this.ka=Number.NEGATIVE_INFINITY,this.$a=function(t){return Promise.resolve()},!t.Uh())throw new p(h.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");if(this.oo=new Zn(this,o),this.Ma=n+t.La,this.serializer=new Kn(s),this.document=i.document,this.Oa=new vn(this.oo,this.serializer),this.jn=new Hn,this.Qn=new wn(this.serializer,this.jn),!i.window||!i.window.localStorage)throw new p(h.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");this.window=i.window,this.xa=this.window.localStorage}return t.Kh=function(t,e){if(t instanceof Xn)return Ze.Kh(t.bo,e);throw we()},t.prototype.start=function(){var t=this;return Ze.qh(this.Ma,Sn,new On(this.serializer)).then((function(e){return t.Ba=e,t.qa()})).then((function(){return t.Ua(),t.Qa(),t.Wa(),t.Ba.runTransaction("readonly",[Vn.store],(function(t){return gn(t)}))})).then((function(e){t.ja=new Ue(e,t.Sa)})).then((function(){t.Da=!0})).catch((function(e){return t.Ba&&t.Ba.close(),Promise.reject(e)}))},t.prototype.Ka=function(t){var e=this;return this.$a=function(n){return i.__awaiter(e,void 0,void 0,(function(){return i.__generator(this,(function(e){return this.vh?[2,t(n)]:[2]}))}))},t(this.isPrimary)},t.prototype.Ga=function(t){var e=this;this.Ba.Gh((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.za=function(t){var e=this;this.networkEnabled!==t&&(this.networkEnabled=t,this.Tr.$r((function(){return i.__awaiter(e,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.vh?[4,this.qa()]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))})))},t.prototype.qa=function(){var t=this;return this.Ba.runTransaction("readwrite",Wn,(function(e){return Jn(e).put(new qn(t.clientId,Date.now(),t.networkEnabled,t.inForeground)).next((function(){if(t.isPrimary)return t.Ha(e).next((function(e){e||(t.isPrimary=!1,t.Tr.$r((function(){return t.$a(!1)})))}))})).next((function(){return t.Ya(e)})).next((function(n){return t.isPrimary&&!n?t.Ja(e).next((function(){return!1})):!!n&&t.Xa(e).next((function(){return!0}))}))})).catch((function(e){if(!t.allowTabSynchronization)throw e;return me("IndexedDbPersistence","Releasing owner lease after error during lease refresh",e),!1})).then((function(e){t.isPrimary!==e&&t.Tr.$r((function(){return t.$a(e)})),t.isPrimary=e}))},t.prototype.Ha=function(t){var e=this;return Yn(t).get(Nn.key).next((function(t){return Pe.resolve(e.Za(t))}))},t.prototype.tu=function(t){return Jn(t).delete(this.clientId)},t.prototype.eu=function(){return i.__awaiter(this,void 0,void 0,(function(){var e=this;return i.__generator(this,(function(n){switch(n.label){case 0:return!this.isPrimary||this.su(this.ka,18e5)?[3,2]:(this.ka=Date.now(),[4,this.runTransaction("maybeGarbageCollectMultiClientState","readwrite-primary",(function(n){var r=t.Kh(n,qn.store);return r.eo().next((function(t){var n=e.iu(t,18e5),i=t.filter((function(t){return-1===n.indexOf(t)}));return Pe.forEach(i,(function(t){return r.delete(t.clientId)})).next((function(){return i}))}))})).catch((function(){return[]}))]);case 1:n.sent().forEach((function(t){e.window.localStorage.removeItem(e.nu(t.clientId))})),n.label=2;case 2:return[2]}}
2))}))},t.prototype.Wa=function(){var t=this;this.Na=this.Tr.yr("client_metadata_refresh",4e3,(function(){return t.qa().then((function(){return t.eu()})).then((function(){return t.Wa()}))}))},t.prototype.Za=function(t){return!!t&&t.ownerId===this.clientId},t.prototype.Ya=function(t){var e=this;return Yn(t).get(Nn.key).next((function(n){if(null!==n&&e.su(n.leaseTimestampMs,5e3)&&!e.ru(n.ownerId)){if(e.Za(n)&&e.networkEnabled)return!0;if(!e.Za(n)){if(!n.allowTabSynchronization)throw new p(h.FAILED_PRECONDITION,$n);return!1}}return!(!e.networkEnabled||!e.inForeground)||Jn(t).eo().next((function(t){return void 0===e.iu(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&&me("IndexedDbPersistence","Client "+(t?"is":"is not")+" eligible for a primary lease."),t}))},t.prototype.hu=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.Da=!1,this.ou(),this.Na&&(this.Na.cancel(),this.Na=null),this.au(),this.uu(),[4,this.Ba.runTransaction("readwrite",[Nn.store,qn.store],(function(e){return t.Ja(e).next((function(){return t.tu(e)}))}))];case 1:return e.sent(),this.Ba.close(),this.cu(),[2]}}))}))},t.prototype.iu=function(t,e){var n=this;return t.filter((function(t){return n.su(t.updateTimeMs,e)&&!n.ru(t.clientId)}))},t.prototype._u=function(){var t=this;return this.Ba.runTransaction("readonly",[qn.store],(function(e){return Jn(e).eo().next((function(e){return t.iu(e,18e5).map((function(t){return t.clientId}))}))}))},t.clearPersistence=function(e){return i.__awaiter(this,void 0,void 0,(function(){var n;return i.__generator(this,(function(r){switch(r.label){case 0:return t.Uh()?(n=e+t.La,[4,Ze.delete(n)]):[2,Promise.resolve()];case 1:return r.sent(),[2]}}))}))},Object.defineProperty(t.prototype,"vh",{get:function(){return this.Da},enumerable:!0,configurable:!0}),t.prototype.lu=function(t){return un.uo(t,this.serializer,this.jn,this.oo)},t.prototype.du=function(){return this.Oa},t.prototype.fu=function(){return this.Qn},t.prototype.Tu=function(){return this.jn},t.prototype.runTransaction=function(t,e,n){var r=this;me("IndexedDbPersistence","Starting transaction:",t);var i,o="readonly"===e?"readonly":"readwrite";return this.Ba.runTransaction(o,Wn,(function(o){return i=new Xn(o,r.ja.next()),"readwrite-primary"===e?r.Ha(o).next((function(t){return!!t||r.Ya(o)})).next((function(e){if(!e)throw ge("Failed to obtain primary lease for action '"+t+"'."),r.isPrimary=!1,r.Tr.$r((function(){return r.$a(!1)})),new p(h.FAILED_PRECONDITION,je);return n(i)})).next((function(t){return r.Xa(o).next((function(){return t}))})):r.Eu(o).next((function(){return n(i)}))})).then((function(t){return i.Un(),t}))},t.prototype.Eu=function(t){var e=this;return Yn(t).get(Nn.key).next((function(t){if(null!==t&&e.su(t.leaseTimestampMs,5e3)&&!e.ru(t.ownerId)&&!e.Za(t)&&!t.allowTabSynchronization)throw new p(h.FAILED_PRECONDITION,$n)}))},t.prototype.Xa=function(t){var e=new Nn(this.clientId,this.allowTabSynchronization,Date.now());return Yn(t).put(Nn.key,e)},t.Uh=function(){return Ze.Uh()},t.Iu=function(t){var e=t.ii.projectId;return t.ii.ln||(e+="."+t.ii.database),"firestore/"+t.persistenceKey+"/"+e+"/"},t.prototype.Ja=function(t){var e=this,n=Yn(t);return n.get(Nn.key).next((function(t){return e.Za(t)?(me("IndexedDbPersistence","Releasing primary lease."),n.delete(Nn.key)):Pe.resolve()}))},t.prototype.su=function(t,e){var n=Date.now();return!(t<n-e||t>n&&(ge("Detected an update time that is in the future: "+t+" > "+n),1))},t.prototype.Ua=function(){var t=this;null!==this.document&&"function"==typeof this.document.addEventListener&&(this.Fa=function(){t.Tr.$r((function(){return t.inForeground="visible"===t.document.visibilityState,t.qa()}))},this.document.addEventListener("visibilitychange",this.Fa),this.inForeground="visible"===this.document.visibilityState)},t.prototype.au=function(){this.Fa&&(this.document.removeEventListener("visibilitychange",this.Fa),this.Fa=null)},t.prototype.Qa=function(){var t=this;"function"==typeof this.window.addEventListener&&(this.Ca=function(){t.ou(),t.Tr.$r((function(){return t.hu()}))},this.window.addEventListener("unload",this.Ca))},t.prototype.uu=function(){this.Ca&&(this.window.removeEventListener("unload",this.Ca),this.Ca=null)},t.prototype.ru=function(t){try{var e=null!==this.xa.getItem(this.nu(t));return me("IndexedDbPersistence","Client '"+t+"' "+(e?"is":"is not")+" zombied in LocalStorage"),e}catch(t){return ge("IndexedDbPersistence","Failed to get zombied client id.",t),!1}},t.prototype.ou=function(){try{this.xa.setItem(this.nu(this.clientId),String(Date.now()))}catch(t){ge("Failed to set zombie client id.",t)}},t.prototype.cu=function(){try{this.xa.removeItem(this.nu(this.clientId))}catch(t){}},t.prototype.nu=function(t){return"firestore_zombie_"+this.persistenceKey+"_"+t},t}();function Yn(t){return t.store(Nn.store)}function Jn(t){return t.store(qn.store)}Qn.La="main";var Zn=function(){function t(t,e){this.db=t,this.Vh=new $e(this,e)}return t.prototype.Fh=function(t){var e=this.wu(t);return this.db.du().Ho(t).next((function(t){return e.next((function(e){return t+e}))}))},t.prototype.wu=function(t){var e=0;return this.kh(t,(function(t){e++})).next((function(){return e}))},t.prototype.js=function(t,e){return this.db.du().js(t,e)},t.prototype.kh=function(t,e){return this.Ru(t,(function(t,n){return e(n)}))},t.prototype.Xo=function(t,e,n){return tr(t,n)},t.prototype.ta=function(t,e,n){return tr(t,n)},t.prototype.$h=function(t,e,n){return this.db.du().$h(t,e,n)},t.prototype.So=function(t,e){return tr(t,e)},t.prototype.Au=function(t,e){return function(t,e){var n=!1;return pn(t).ho((function(r){return cn(t,r,e).next((function(t){return t&&(n=!0),Pe.resolve(!t)}))})).next((function(){return n}))}(t,e)},t.prototype.Mh=function(t,e){var n=this,r=this.db.fu().Ea(),i=[],o=0;return this.Ru(t,(function(a,s){if(s<=e){var u=n.Au(t,a).next((function(e){if(!e)return o++,r.Mn(t,a).next((function(){return r.$n(a),bn(t).delete([0,Xe(a.path)])}))}));i.push(u)}})).next((function(){return Pe.vn(i)})).next((function(){return r.apply(t)})).next((function(){return o}
2))},t.prototype.removeTarget=function(t,e){var n=e.Ie(t.va);return this.db.du().Wo(t,n)},t.prototype.mu=function(t,e){return tr(t,e)},t.prototype.Ru=function(t,e){var n,r=bn(t),i=Ue.dr;return r.ro({index:Fn.documentTargetsIndex},(function(t,r){var o=t[0],a=(t[1],r.path),s=r.sequenceNumber;0===o?(i!==Ue.dr&&e(new I(Je(n)),i),i=s,n=a):i=Ue.dr})).next((function(){i!==Ue.dr&&e(new I(Je(n)),i)}))},t.prototype.Oh=function(t){return this.db.fu().Ra(t)},t}();function tr(t,e){return bn(t).put(function(t,e){return new Fn(0,Xe(t.path),e)}(e,t.va))}var er=function(){function t(t,e,n){this.persistence=t,this.Pu=e,this.Vu=new Dt(ke),this.gu=new Ae((function(t){return t.canonicalId()})),this.pu=w.min(),this.Wn=t.lu(n),this.yu=t.fu(),this.Oa=t.du(),this.bu=new Le(this.yu,this.Wn,this.persistence.Tu()),this.Pu.vu(this.bu)}return t.prototype.start=function(){return Promise.resolve()},t.prototype.Su=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.Wn,n=this.bu,[4,this.persistence.runTransaction("Handle user change","readonly",(function(r){var i;return o.Wn.Vo(r).next((function(a){return i=a,e=o.persistence.lu(t),n=new Le(o.yu,e,o.persistence.Tu()),e.Vo(r)})).next((function(t){for(var e=[],o=[],a=$t(),s=0,u=i;s<u.length;s++){var c=u[s];e.push(c.batchId);for(var l=0,f=c.mutations;l<f.length;l++){var h=f[l];a=a.add(h.key)}}for(var p=0,d=t;p<d.length;p++){var v=d[p];o.push(v.batchId);for(var y=0,m=v.mutations;y<m.length;y++){var g=m[y];a=a.add(g.key)}}return n.Yn(r,a).next((function(t){return{Du:t,Cu:e,Fu:o}}))}))}))];case 1:return r=i.sent(),[2,(this.Wn=e,this.bu=n,this.Pu.vu(this.bu),r)]}}))}))},t.prototype.Nu=function(t){var e,n=this,r=b.now(),i=t.reduce((function(t,e){return t.add(e.key)}),$t());return this.persistence.runTransaction("Locally write mutations","readwrite",(function(o){return n.bu.Yn(o,i).next((function(i){e=i;for(var a=[],s=0,u=t;s<u.length;s++){var c=u[s],l=c.Pt(e.get(c.key));null!=l&&a.push(new ut(c.key,l,dt(l.proto.mapValue),ot.exists(!0)))}return n.Wn.To(o,r,a,t)}))})).then((function(t){var n=t.In(e);return{batchId:t.batchId,Dn:n}}))},t.prototype._o=function(t){var e=this;return this.persistence.runTransaction("Acknowledge batch","readwrite-primary",(function(n){var r=t.batch.keys(),i=e.yu.Ea({wa:!0});return e.Wn._o(n,t.batch,t.streamToken).next((function(){return e.ku(n,t,i)})).next((function(){return i.apply(n)})).next((function(){return e.Wn.Do(n)})).next((function(){return e.bu.Yn(n,r)}))}))},t.prototype.$u=function(t){var e=this;return this.persistence.runTransaction("Reject batch","readwrite-primary",(function(n){var r;return e.Wn.wo(n,t).next((function(t){return Ee(null!==t),r=t.keys(),e.Wn.yo(n,t)})).next((function(){return e.Wn.Do(n)})).next((function(){return e.bu.Yn(n,r)}))}))},t.prototype.Po=function(){var t=this;return this.persistence.runTransaction("Get highest unacknowledged batch id","readonly",(function(e){return t.Wn.Po(e)}))},t.prototype.do=function(){var t=this;return this.persistence.runTransaction("Get last stream token","readonly",(function(e){return t.Wn.do(e)}))},t.prototype.fo=function(t){var e=this;return this.persistence.runTransaction("Set last stream token","readwrite-primary",(function(n){return e.Wn.fo(n,t)}))},t.prototype.Oo=function(){var t=this;return this.persistence.runTransaction("Get last remote snapshot version","readonly",(function(e){return t.Oa.Oo(e)}))},t.prototype.Mu=function(e){var n=this,r=e.Ee,i=this.Vu;return this.persistence.runTransaction("Apply remote event","readwrite-primary",(function(o){var a=n.yu.Ea({wa:!0});i=n.Vu;var s=[];e.as.forEach((function(e,a){var u=i.get(a);if(u){s.push(n.Oa.Zo(o,e.Is,a).next((function(){return n.Oa.Jo(o,e.Ts,a)})));var c=e.resumeToken;if(c.rt()>0){var l=u.we(c,r).Ie(o.va);i=i.Ae(a,l),t.Lu(u,l,e)&&s.push(n.Oa.Wo(o,l))}}}));var u=Bt(),c=$t();if(e.cs.forEach((function(t,e){c=c.add(t)})),s.push(a.getEntries(o,c).next((function(t){e.cs.forEach((function(i,c){var l=t.get(i);c instanceof bt&&c.version.isEqual(w.min())?(a.$n(i,r),u=u.Ae(i,c)):null==l||c.version.S(l.version)>0||0===c.version.S(l.version)&&l.hasPendingWrites?(a.Nn(c,r),u=u.Ae(i,c)):me("LocalStore","Ignoring outdated watch update for ",i,". Current version:",l.version," Watch version:",c.version),e._s.has(i)&&s.push(n.persistence.oo.mu(o,i))}))}))),!r.isEqual(w.min())){var l=n.Oa.Oo(o).next((function(t){return n.Oa.Bo(o,o.va,r)}));s.push(l)}return Pe.vn(s).next((function(){return a.apply(o)})).next((function(){return n.bu.Jn(o,u)}))})).then((function(t){return n.Vu=i,t}))},t.Lu=function(t,e,n){return Ee(e.resumeToken.rt()>0),0===t.resumeToken.rt()||e.Ee.D()-t.Ee.D()>=this.Ou||n.Ts.size+n.Es.size+n.Is.size>0},t.prototype.xu=function(t){var e=this;return this.persistence.runTransaction("notifyLocalViewChanges","readwrite",(function(n){return Pe.forEach(t,(function(t){return Pe.forEach(t.hr,(function(r){return e.persistence.oo.Xo(n,t.targetId,r)})).next((function(){return Pe.forEach(t.or,(function(r){return e.persistence.oo.ta(n,t.targetId,r)}))}))}))})).then((function(){for(var n=0,r=t;n<r.length;n++){var i=r[n],o=i.targetId;if(!i.fromCache){var a=e.Vu.get(o),s=a.Ee,u=a.Re(s);e.Vu=e.Vu.Ae(o,u)}}}))},t.prototype.Bu=function(t){var e=this;return this.persistence.runTransaction("Get next mutation batch","readonly",(function(n){return void 0===t&&(t=-1),e.Wn.mo(n,t)}))},t.prototype.qu=function(t){var e=this;return this.persistence.runTransaction("read document","readonly",(function(n){return e.bu.Kn(n,t)}))},t.prototype.Uu=function(t){var e=this;return this.persistence.runTransaction("Allocate target","readwrite",(function(n){var r;return e.Oa.Yo(n,t).next((function(i){return i?(r=i,Pe.resolve(r)):e.Oa.$o(n).next((function(i){return r=new Ct
2(t,i,0,n.va),e.Oa.qo(n,r).next((function(){return r}))}))}))})).then((function(n){return null===e.Vu.get(n.targetId)&&(e.Vu=e.Vu.Ae(n.targetId,n),e.gu.set(t,n.targetId)),n}))},t.prototype.Yo=function(t,e){var n=this.gu.get(e);return void 0!==n?Pe.resolve(this.Vu.get(n)):this.Oa.Yo(t,e)},t.prototype.Qu=function(t,e){var n=this,r=this.Vu.get(t),i=e?"readwrite":"readwrite-primary";return this.persistence.runTransaction("Release target",i,(function(t){return e?Pe.resolve():n.persistence.oo.removeTarget(t,r)})).then((function(){n.Vu=n.Vu.remove(t),n.gu.delete(r.target)}))},t.prototype.Wu=function(t,e){var n=this,r=w.min(),i=$t();return this.persistence.runTransaction("Execute query","readonly",(function(o){return n.Yo(o,t.ee()).next((function(t){if(t)return r=t.lastLimboFreeSnapshotVersion,n.Oa.ea(o,t.targetId).next((function(t){i=t}))})).next((function(){return n.Pu.Zn(o,t,e?r:w.min(),e?i:$t())})).next((function(t){return{documents:t,ju:i}}))}))},t.prototype.ku=function(t,e,n){var r=this,i=e.batch,o=i.keys(),a=Pe.resolve();return o.forEach((function(r){a=a.next((function(){return n.Mn(t,r)})).next((function(t){var o=t,a=e.Rn.get(r);Ee(null!==a),(!o||o.version.S(a)<0)&&(o=i.at(r,o,e))&&n.Nn(o,e.wn)}))})),a.next((function(){return r.Wn.yo(t,i)}))},t.prototype.Sh=function(t){var e=this;return this.persistence.runTransaction("Collect garbage","readwrite-primary",(function(n){return t.Lh(n,e.Vu)}))},t}();er.Ou=3e8;var nr=function(t){function e(e,n,r){var i=this;return(i=t.call(this,e,n,r)||this).persistence=e,i.Wn=e.lu(r),i.yu=e.fu(),i.Oa=e.du(),i}return i.__extends(e,t),e.prototype.start=function(){return this.Ku()},e.prototype.Gu=function(t){var e=this;return this.persistence.runTransaction("Lookup mutation documents","readonly",(function(n){return e.Wn.Ao(n,t).next((function(t){return t?e.bu.Yn(n,t):Pe.resolve(null)}))}))},e.prototype.zu=function(t){this.Wn.vo(t)},e.prototype.za=function(t){this.persistence.za(t)},e.prototype._u=function(){return this.persistence._u()},e.prototype.Hu=function(t){var e=this,n=this.Vu.get(t);return n?Promise.resolve(n.target):this.persistence.runTransaction("Get target data","readonly",(function(n){return e.Oa.si(n,t).next((function(t){return t?t.target:null}))}))},e.prototype.la=function(){var t=this;return this.persistence.runTransaction("Get new document changes","readonly",(function(e){return t.yu.la(e,t.pu)})).then((function(e){var n=e.da,r=e.readTime;return t.pu=r,n}))},e.prototype.Ku=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 t=this,[4,this.persistence.runTransaction("Synchronize last document change read time","readonly",(function(t){return e.yu.Ta(t)}))];case 1:return t.pu=n.sent(),[2]}}))}))},e}(er);function rr(t){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){if(t.code!==h.FAILED_PRECONDITION||t.message!==je)throw t;return me("LocalStore","Unexpectedly lost primary lease"),[2]}))}))}var ir=function(){function t(){this.Yu=new Ut(or.Ju),this.Xu=new Ut(or.Zu)}return t.prototype.B=function(){return this.Yu.B()},t.prototype.Xo=function(t,e){var n=new or(t,e);this.Yu=this.Yu.add(n),this.Xu=this.Xu.add(n)},t.prototype.tc=function(t,e){var n=this;t.forEach((function(t){return n.Xo(t,e)}))},t.prototype.ta=function(t,e){this.ec(new or(t,e))},t.prototype.sc=function(t,e){var n=this;t.forEach((function(t){return n.ta(t,e)}))},t.prototype.ic=function(t){var e=this,n=I.EMPTY,r=new or(n,t),i=new or(n,t+1),o=[];return this.Xu.Ke([r,i],(function(t){e.ec(t),o.push(t.key)})),o},t.prototype.nc=function(){var t=this;this.Yu.forEach((function(e){return t.ec(e)}))},t.prototype.ec=function(t){this.Yu=this.Yu.delete(t),this.Xu=this.Xu.delete(t)},t.prototype.rc=function(t){var e=I.EMPTY,n=new or(e,t),r=new or(e,t+1),i=$t();return this.Xu.Ke([n,r],(function(t){i=i.add(t.key)})),i},t.prototype.Co=function(t){var e=new or(t,0),n=this.Yu.ze(e);return null!==n&&t.isEqual(n.key)},t}(),or=function(){function t(t,e){this.key=t,this.hc=e}return t.Ju=function(t,e){return I.N(t.key,e.key)||ke(t.hc,e.hc)},t.Zu=function(t,e){return ke(t.hc,e.hc)||I.N(t.key,e.key)},t}();function ar(t,e){if(0!==e.length)throw new p(h.INVALID_ARGUMENT,"Function "+t+"() does not support arguments, but was called with "+_r(e.length,"argument")+".")}function sr(t,e,n){if(e.length!==n)throw new p(h.INVALID_ARGUMENT,"Function "+t+"() requires "+_r(n,"argument")+", but was called with "+_r(e.length,"argument")+".")}function ur(t,e,n){if(e.length<n)throw new p(h.INVALID_ARGUMENT,"Function "+t+"() requires at least "+_r(n,"argument")+", but was called with "+_r(e.length,"argument")+".")}function cr(t,e,n,r){if(e.length<n||e.length>r)throw new p(h.INVALID_ARGUMENT,"Function "+t+"() requires between "+n+" and "+r+" arguments, but was called with "+_r(e.length,"argument")+".")}function lr(t,e,n,r){vr(t,e,Tr(n)+" argument",r)}function fr(t,e,n,r){void 0!==r&&lr(t,e,n,r)}function hr(t,e,n,r){vr(t,e,n+" option",r)}function pr(t,e,n,r){void 0!==r&&hr(t,e,n,r)}function dr(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(mr(u))}var c=mr(r);throw new p(h.INVALID_ARGUMENT,"Invalid value "+c+" provided to function "+t+'() for option "'+n+'". Acceptable values: '+o.join(", "))}(t,0,n,r,i)}function vr(t,e,n,r){if(!("object"===e?yr(r):"non-empty string"===e?"string"==typeof r&&""!==r:typeof r===e)){var i=mr(r);throw new p(h.INVALID_ARGUMENT,"Function "+t+"() requires its "+n+" to be of type "+e+", but it was: "+i)}}function yr(t){return"object"==typeof t&&null!==t&&(Object.getPrototypeOf(t)===Object.prototype||null===Object.getPrototypeOf(t))}function mr(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":we()}function gr(t,e,n){if(void 0===n)throw new p(h.INVALID_ARGUMENT,"Function "+t+"() requires a valid "+Tr(e)+" argument, but it was undefined.")}function br(t,e,n){S(e,(function(e,r){if(n.indexOf(e)<0)throw new p(h.INVALID_ARGUMENT,"Unknown option '"+e+"' passed to function "+t+"(). Available options: "+n.join(", "))}))}function wr(t,e,n,r){var i=mr(r);return new p(h.INVALID_ARGUMENT,"Function "+t+"() requires its "+Tr(n)+" argument to be a "+e+", but it was: "+i)}function Er(t,e,n){if(n<=0)throw new p(h.INVALID_ARGUMENT,'Function "'+t+'()" requires its '+Tr(e)+" argument to be a positive number, but it was: "+n+".")}function Tr(t){switch(t){case 1:return"first";
2case 2:return"second";case 3:return"third";default:return t+"th"}}function _r(t,e){return t+" "+e+(1===t?"":"s")}function kr(){if("undefined"==typeof Uint8Array)throw new p(h.UNIMPLEMENTED,"Uint8Arrays are not available in this environment.")}function Ir(){if(!pe.nt().oc)throw new p(h.UNIMPLEMENTED,"Blobs are unavailable in Firestore in this environment.")}var xr=function(){function t(t){Ir(),this.ac=t}return t.fromBase64String=function(e){sr("Blob.fromBase64String",arguments,1),lr("Blob.fromBase64String","string",1,e),Ir();try{return new t(A.fromBase64String(e))}catch(e){throw new p(h.INVALID_ARGUMENT,"Failed to construct Blob from Base64 string: "+e)}},t.fromUint8Array=function(e){if(sr("Blob.fromUint8Array",arguments,1),kr(),!(e instanceof Uint8Array))throw wr("Blob.fromUint8Array","Uint8Array",1,e);return new t(A.fromUint8Array(e))},t.prototype.toBase64=function(){return sr("Blob.toBase64",arguments,0),Ir(),this.ac.toBase64()},t.prototype.toUint8Array=function(){return sr("Blob.toUint8Array",arguments,0),kr(),this.ac.toUint8Array()},t.prototype.toString=function(){return"Blob(base64: "+this.toBase64()+")"},t.prototype.isEqual=function(t){return this.ac.isEqual(t.ac)},t}(),Sr=function(){function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];!function(t,e,n,r){if(!(e instanceof Array)||e.length<1)throw new p(h.INVALID_ARGUMENT,"Function FieldPath() requires its fieldNames argument to be an array with at least "+_r(1,"element")+".")}(0,t);for(var n=0;n<t.length;++n)if(lr("FieldPath","string",n,t[n]),0===t[n].length)throw new p(h.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this.uc=new k(t)}return t.documentId=function(){return t.cc},t.prototype.isEqual=function(e){if(!(e instanceof t))throw wr("isEqual","FieldPath",1,e);return this.uc.isEqual(e.uc)},t}();Sr.cc=new Sr(k.J().j());var Or=new RegExp("[~\\*/\\[\\]]"),Ar=function(t){this._c=t},Nr=function(t){function e(){return t.call(this,"FieldValue.delete")||this}return i.__extends(e,t),e.prototype.Di=function(t){if(2!==t.lc)throw 1===t.lc?t.dc("FieldValue.delete() can only appear at the top level of your update data"):t.dc("FieldValue.delete() cannot be used with set() unless you pass {merge:true}");return t.Vt.push(t.path),null},e.prototype.isEqual=function(t){return t instanceof e},e}(Ar),Cr=function(t){function e(){return t.call(this,"FieldValue.serverTimestamp")||this}return i.__extends(e,t),e.prototype.Di=function(t){return new rt(t.path,Y.instance)},e.prototype.isEqual=function(t){return t instanceof e},e}(Ar),Pr=function(t){function e(e){var n=this;return(n=t.call(this,"FieldValue.arrayUnion")||this).fc=e,n}return i.__extends(e,t),e.prototype.Di=function(t){var e=new Vr({lc:3,methodName:this._c,Tc:!0},t.ii,t.serializer),n=this.fc.map((function(t){return zr(t,e)})),r=new J(n);return new rt(t.path,r)},e.prototype.isEqual=function(t){return this===t},e}(Ar),Rr=function(t){function e(e){var n=this;return(n=t.call(this,"FieldValue.arrayRemove")||this).fc=e,n}return i.__extends(e,t),e.prototype.Di=function(t){var e=new Vr({lc:3,methodName:this._c,Tc:!0},t.ii,t.serializer),n=this.fc.map((function(t){return zr(t,e)})),r=new Z(n);return new rt(t.path,r)},e.prototype.isEqual=function(t){return this===t},e}(Ar),jr=function(t){function e(e){var n=this;return(n=t.call(this,"FieldValue.increment")||this).Ec=e,n}return i.__extends(e,t),e.prototype.Di=function(t){var e=new Vr({lc:3,methodName:this._c},t.ii,t.serializer),n=zr(this.Ec,e),r=new tt(t.serializer,n);return new rt(t.path,r)},e.prototype.isEqual=function(t){return this===t},e}(Ar),Dr=function(){function t(t,e){if(sr("GeoPoint",arguments,2),lr("GeoPoint","number",1,t),lr("GeoPoint","number",2,e),!isFinite(t)||t<-90||t>90)throw new p(h.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+t);if(!isFinite(e)||e<-180||e>180)throw new p(h.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+e);this.Ic=t,this.wc=e}return Object.defineProperty(t.prototype,"latitude",{get:function(){return this.Ic},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"longitude",{get:function(){return this.wc},enumerable:!0,configurable:!0}),t.prototype.isEqual=function(t){return this.Ic===t.Ic&&this.wc===t.wc},t.prototype.p=function(t){return ke(this.Ic,t.Ic)||ke(this.wc,t.wc)},t}(),Lr=/^__.*__$/,Mr=function(){function t(t,e,n){this.data=t,this.Vt=e,this.fieldTransforms=n}return t.prototype.Rc=function(t,e){var n=[];return null!==this.Vt?n.push(new ut(t,this.data,this.Vt,e)):n.push(new st(t,this.data,e)),this.fieldTransforms.length>0&&n.push(new ct(t,this.fieldTransforms)),n},t}(),Ur=function(){function t(t,e,n){this.data=t,this.Vt=e,this.fieldTransforms=n}return t.prototype.Rc=function(t,e){var n=[new ut(t,this.data,this.Vt,e)];return this.fieldTransforms.length>0&&n.push(new ct(t,this.fieldTransforms)),n},t}();function Fr(t){switch(t){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw we()}}var Vr=function(){function t(t,e,n,r,i){this.settings=t,this.ii=e,this.serializer
2=n,void 0===r&&this.Ac(),this.fieldTransforms=r||[],this.Vt=i||[]}return Object.defineProperty(t.prototype,"path",{get:function(){return this.settings.path},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lc",{get:function(){return this.settings.lc},enumerable:!0,configurable:!0}),t.prototype.mc=function(e){return new t(Object.assign(Object.assign({},this.settings),e),this.ii,this.serializer,this.fieldTransforms,this.Vt)},t.prototype.Pc=function(t){var e,n=null===(e=this.path)||void 0===e?void 0:e.child(t),r=this.mc({path:n,Tc:!1});return r.Vc(t),r},t.prototype.gc=function(t){var e,n=null===(e=this.path)||void 0===e?void 0:e.child(t),r=this.mc({path:n,Tc:!1});return r.Ac(),r},t.prototype.pc=function(t){return this.mc({path:void 0,Tc:!0})},t.prototype.dc=function(t){var e=!this.path||this.path.B()?"":" (found in field "+this.path.toString()+")";return new p(h.INVALID_ARGUMENT,"Function "+this.settings.methodName+"() called with invalid data. "+t+e)},t.prototype.contains=function(t){return void 0!==this.Vt.find((function(e){return t.q(e)}))||void 0!==this.fieldTransforms.find((function(e){return t.q(e.field)}))},t.prototype.Ac=function(){if(this.path)for(var t=0;t<this.path.length;t++)this.Vc(this.path.get(t))},t.prototype.Vc=function(t){if(0===t.length)throw this.dc("Document fields must not be empty");if(Fr(this.lc)&&Lr.test(t))throw this.dc('Document fields cannot begin and end with "__"')},t}(),Br=function(){function t(t,e){this.ii=t,this.serializer=e||pe.nt().yc(t)}return t.prototype.bc=function(t,e){var n=this.vc(0,t);Hr("Data must be an object, but it was:",n,e);var r=qr(e,n);return new Mr(new ht(r),null,n.fieldTransforms)},t.prototype.Sc=function(t,e,n){var r=this.vc(2,t);Hr("Data must be an object, but it was:",r,e);var i,o,a=qr(e,r);if(n){for(var s=[],u=0,c=n;u<c.length;u++){var l=c[u],f=void 0;if(l instanceof Sr)f=l.uc;else{if("string"!=typeof l)throw we();f=Kr(t,l)}if(!r.contains(f))throw new p(h.INVALID_ARGUMENT,"Field '"+f+"' is specified in your field mask but missing from your input data.");$r(s,f)||s.push(f)}i=new nt(s),o=r.fieldTransforms.filter((function(t){return i.dt(t.field)}))}else i=new nt(r.Vt),o=r.fieldTransforms;return new Mr(new ht(a),i,o)},t.prototype.Dc=function(t,e){var n=this.vc(1,t);Hr("Data must be an object, but it was:",n,e);var r=[],i=new pt;S(e,(function(e,o){var a=Kr(t,e),s=n.gc(a);if(o instanceof Nr)r.push(a);else{var u=zr(o,s);null!=u&&(r.push(a),i.set(a,u))}}));var o=new nt(r);return new Ur(i.yt(),o,n.fieldTransforms)},t.prototype.Cc=function(t,e,n,r){var i=this.vc(1,t),o=[Gr(t,e)],a=[n];if(r.length%2!=0)throw new p(h.INVALID_ARGUMENT,"Function "+t+"() needs to be called with an even number of arguments that alternate between field names and values.");for(var s=0;s<r.length;s+=2)o.push(Gr(t,r[s])),a.push(r[s+1]);for(var u=[],c=new pt,l=o.length-1;l>=0;--l)if(!$r(u,o[l])){var f=o[l],d=a[l],v=i.gc(f);if(d instanceof Nr)u.push(f);else{var y=zr(d,v);null!=y&&(u.push(f),c.set(f,y))}}var m=new nt(u);return new Ur(c.yt(),m,i.fieldTransforms)},t.prototype.vc=function(t,e){return new Vr({lc:t,methodName:e,path:k.G,Tc:!1},this.ii,this.serializer)},t.prototype.Fc=function(t,e,n){return void 0===n&&(n=!1),zr(e,this.vc(n?4:3,t))},t}();function zr(t,e){if(Wr(t))return Hr("Unsupported field value:",e,t),qr(t,e);if(t instanceof Ar)return function(t,e){if(!Fr(e.lc))throw e.dc(t._c+"() can only be used with update() and set()");if(null===e.path)throw e.dc(t._c+"() is not currently supported inside arrays");var n=t.Di(e);n&&e.fieldTransforms.push(n)}(t,e),null;if(e.path&&e.Vt.push(e.path),t instanceof Array){if(e.settings.Tc&&4!==e.lc)throw e.dc("Nested arrays are not supported");return function(t,e){for(var n=[],r=0,i=0,o=t;i<o.length;i++){var a=zr(o[i],e.pc(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 e.serializer.ai(t);if("boolean"==typeof t)return{booleanValue:t};if("string"==typeof t)return{stringValue:t};if(t instanceof Date){var n=b.fromDate(t);return{timestampValue:e.serializer.C(n)}}if(t instanceof b){var r=new b(t.seconds,1e3*Math.floor(t.nanoseconds/1e3));return{timestampValue:e.serializer.C(r)}}if(t instanceof Dr)return{geoPointValue:{latitude:t.latitude,longitude:t.longitude}};if(t instanceof xr)return{bytesValue:e.serializer.ui(t)};if(t instanceof Bi){var i=e.ii,o=t.firestore.Nc;if(!o.isEqual(i))throw e.dc("Document reference is for database "+o.projectId+"/"+o.database+" but should be for database "+i.projectId+"/"+i.database);return{referenceValue:e.serializer._i(t.kc.path,t.firestore.Nc)}}throw e.dc("Unsupported field value: "+mr(t))}(t,e)}function qr(t,e){var n={};return O(t)?e.path&&e.path.length>0&&e.Vt.push(e.path):S(t,(function(t,r){var i=zr(r,e.Pc(t));null!=i&&(n[t]=i)})),{mapValue:{fields:n}}}function Wr(t){return!("object"!=typeof t||null===t||t instanceof Array||t instanceof Date||t instanceof b||t instanceof Dr||t instanceof xr||t instanceof Bi||t instanceof Ar)}function Hr(t,e,n){if(!Wr(n)||!yr(n)){var r=mr(n);throw"an object"===r?e.dc(t+" a custom object"):e.dc(t+" "+r)}}function Gr(t,e){if(e instanceof Sr)return e.uc;if("string"==typeof e)return Kr(t,e);throw new p(h.INVALID_ARGUMENT,"Function "+t+"() called with invali
2d data. Field path arguments must be of type string or FieldPath.")}function Kr(t,e){try{return function(t){if(t.search(Or)>=0)throw new p(h.INVALID_ARGUMENT,"Invalid field path ("+t+"). Paths must not contain '~', '*', '/', '[', or ']'");try{return new(Sr.bind.apply(Sr,i.__spreadArrays([void 0],t.split("."))))}catch(i){throw new p(h.INVALID_ARGUMENT,"Invalid field path ("+t+"). Paths must not be empty, begin with '.', end with '.', or contain '..'")}}(e).uc}catch(e){var n=(r=e)instanceof Error?r.message:r.toString();throw new p(h.INVALID_ARGUMENT,"Function "+t+"() called with invalid data. "+n)}var r}function $r(t,e){return t.some((function(t){return t.isEqual(e)}))}var Xr=function(){function t(t,e,n,r,i,o){this.Tr=t,this.$c=n,this.Mc=r,this.Lc=i,this.listener=o,this.state=0,this.Oc=0,this.xc=null,this.stream=null,this.Qr=new Ve(t,e)}return t.prototype.Bc=function(){return 1===this.state||2===this.state||4===this.state},t.prototype.qc=function(){return 2===this.state},t.prototype.start=function(){3!==this.state?this.auth():this.Uc()},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.Bc()?[4,this.close(0)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}
2))}))},t.prototype.Qc=function(){this.state=0,this.Qr.reset()},t.prototype.Wc=function(){var t=this;this.qc()&&null===this.xc&&(this.xc=this.Tr.yr(this.$c,6e4,(function(){return t.jc()})))},t.prototype.Kc=function(t){this.Gc(),this.stream.send(t)},t.prototype.jc=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.qc()?[2,this.close(0)]:[2]}))}))},t.prototype.Gc=function(){this.xc&&(this.xc.cancel(),this.xc=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.Gc(),this.Qr.cancel(),this.Oc++,3!==t?this.Qr.reset():e&&e.code===h.RESOURCE_EXHAUSTED?(ge(e.toString()),ge("Using maximum backoff delay to prevent overloading the backend."),this.Qr.Vr()):e&&e.code===h.UNAUTHENTICATED&&this.Lc._(),null!==this.stream&&(this.zc(),this.stream.close(),this.stream=null),this.state=t,[4,this.listener.Hc(e)];case 1:return n.sent(),[2]}}))}))},t.prototype.zc=function(){},t.prototype.auth=function(){var t=this;this.state=1;var e=this.Yc(this.Oc),n=this.Oc;this.Lc.getToken().then((function(e){t.Oc===n&&t.Jc(e)}),(function(n){e((function(){var e=new p(h.UNKNOWN,"Fetching auth token failed: "+n.message);return t.Xc(e)}))}))},t.prototype.Jc=function(t){var e=this,n=this.Yc(this.Oc);this.stream=this.Zc(t),this.stream.t_((function(){n((function(){return e.state=2,e.listener.t_()}))})),this.stream.Hc((function(t){n((function(){return e.Xc(t)}))})),this.stream.onMessage((function(t){n((function(){return e.onMessage(t)}))}))},t.prototype.Uc=function(){var t=this;this.state=4,this.Qr.gr((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.Xc=function(t){return me("PersistentStream","close with error: "+t),this.stream=null,this.close(3,t)},t.prototype.Yc=function(t){var e=this;return function(n){e.Tr.$r((function(){return e.Oc===t?n():(me("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())}))}},t}(),Qr=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.Zc=function(t){return this.Mc.e_("Listen",t)},e.prototype.onMessage=function(t){this.Qr.reset();var e=this.serializer.pi(t),n=this.serializer.bi(t);return this.listener.s_(e,n)},e.prototype.i_=function(t){var e={};e.database=this.serializer.wi,e.addTarget=this.serializer.ee(t);var n=this.serializer.zi(t);n&&(e.labels=n),this.Kc(e)},e.prototype.n_=function(t){var e={};e.database=this.serializer.wi,e.removeTarget=t,this.Kc(e)},e}(Xr),Yr=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=i,a.r_=!1,a.lastStreamToken=A.ht,a}return i.__extends(e,t),Object.defineProperty(e.prototype,"h_",{get:function(){return this.r_},enumerable:!0,configurable:!0}),e.prototype.start=function(){this.r_=!1,t.prototype.start.call(this)},e.prototype.zc=function(){this.r_&&this.o_([])},e.prototype.Zc=function(t){return this.Mc.e_("Write",t)},e.prototype.onMessage=function(t){if(Ee(!!t.streamToken),this.lastStreamToken=this.serializer.ci(t.streamToken),this.r_){this.Qr.reset();var e=this.serializer.Li(t.writeResults,t.commitTime),n=this.serializer.fromVersion(t.commitTime);return this.listener.a_(n,e)}return Ee(!t.writeResults||0===t.writeResults.length),this.r_=!0,this.listener.u_()},e.prototype.c_=function(){var t={};t.database=this.serializer.wi,this.Kc(t)},e.prototype.o_=function(t){var e=this,n={streamToken:this.serializer.ui(this.lastStreamToken),writes:t.map((function(t){return e.serializer.vi(t)}))};this.Kc(n)},e}(Xr),Jr=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).Mc=e,i.credentials=n,i.serializer=r,i}return i.__extends(e,t),e.prototype.l_=function(t,e){var n=this;return this.credentials.getToken().then((function(r){return n.Mc.l_(t,e,r)})).catch((function(t){throw t.code===h.UNAUTHENTICATED&&n.credentials._(),t}))},e.prototype.d_=function(t,e){var n=this;return this.credentials.getToken().then((function(r){return n.Mc.d_(t,e,r)})).catch((function(t){throw t.code===h.UNAUTHENTICATED&&n.credentials._(),t}))},e}((function(){this.__=void 0})),Zr=function(){function t(t){this.f_=t,this.T_=Gt(),this.mutations=[],this.E_=!1,this.I_=null,this.w_=new Set}return t.prototype.R_=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.A_(),this.mutations.length>0)throw new p(h.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;return i.__generator(this,(function(i){switch(i.label){case 0:return n=Te(t),r={database:n.seri
2alizer.wi,documents:e.map((function(t){return n.serializer.fi(t)}))},[4,n.d_("BatchGetDocuments",r)];case 1:return o=i.sent(),a=new Map,o.forEach((function(t){var e=n.serializer.gi(t);a.set(e.key.toString(),e)})),s=[],[2,(e.forEach((function(t){var e=a.get(t.toString());Ee(!!e),s.push(e)})),s)]}}))}))}(this.f_,t)];case 1:return[2,((e=r.sent()).forEach((function(t){t instanceof bt||t instanceof gt?n.m_(t):we()})),e)]}}))}))},t.prototype.set=function(t,e){this.write(e.Rc(t,this.Rt(t))),this.w_.add(t)},t.prototype.update=function(t,e){try{this.write(e.Rc(t,this.P_(t)))}catch(t){this.I_=t}this.w_.add(t)},t.prototype.delete=function(t){this.write([new lt(t,this.Rt(t))]),this.w_.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.A_(),this.I_)throw this.I_;return t=this.T_,this.mutations.forEach((function(e){t=t.remove(e.key)})),t.forEach((function(t,n){e.mutations.push(new ft(t,e.Rt(t)))})),[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=Te(t),r={database:n.seri
2alizer.wi,writes:e.map((function(t){return n.serializer.vi(t)}))},[4,n.l_("Commit",r)];case 1:return o=i.sent(),[2,n.serializer.Li(o.writeResults,o.commitTime)]}}))}))}(this.f_,this.mutations)];case 1:return n.sent(),this.E_=!0,[2]}}))}))},t.prototype.m_=function(t){var e;if(t instanceof gt)e=t.version;else{if(!(t instanceof bt))throw we();e=w.min()}var n=this.T_.get(t.key);if(null!==n){if(!e.isEqual(n))throw new p(h.ABORTED,"Document version changed between two reads.")}else this.T_=this.T_.Ae(t.key,e)},t.prototype.Rt=function(t){var e=this.T_.get(t);return!this.w_.has(t)&&e?ot.updateTime(e):ot.ft()},t.prototype.P_=function(t){var e=this.T_.get(t);if(!this.w_.has(t)&&e){if(e.isEqual(w.min()))throw new p(h.INVALID_ARGUMENT,"Can't update a document that doesn't exist.");return ot.updateTime(e)}return ot.exists(!0)},t.prototype.write=function(t){this.A_(),this.mutations=this.mutations.concat(t)},t.prototype.A_=function(){},t}(),ti=function(){function t(t,e){this.br=t,this.V_=e,this.state="Unknown",this.g_=0,this.p_=null,this.y_=!0}return t.prototype.b_=function(){var t=this;0===this.g_&&(this.v_("Unknown"),this.p_=this.br.yr("online_state_timeout",1e4,(function(){return t.p_=null,t.S_("Backend didn't respond within 10 seconds."),t.v_("Offline"),Promise.resolve()})))},t.prototype.D_=function(t){"Online"===this.state?this.v_("Unknown"):(this.g_++,this.g_>=1&&(this.C_(),this.S_("Connection failed 1 times. Most recent error: "+t.toString()),this.v_("Offline")))},t.prototype.set=function(t){this.C_(),this.g_=0,"Online"===t&&(this.y_=!1),this.v_(t)},t.prototype.v_=function(t){t!==this.state&&(this.state=t,this.V_(t))},t.prototype.S_=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.y_?(ge(e),this.y_=!1):me("OnlineStateTracker",e)},t.prototype.C_=function(){null!==this.p_&&(this.p_.cancel(),this.p_=null)},t}(),ei=function(){function t(t,e,n,r,o){var a=this;this.F_=t,this.f_=e,this.br=n,this.N_=[],this.k_=new Map,this.M_=null,this.networkEnabled=!1,this.isPrimary=!1,this.L_=!1,this.O_=o,this.O_.x_((function(t){n.$r((function(){return i.__awaiter(a,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.B_()?(me("RemoteStore","Restarting streams for network reachability change."),[4,this.q_()]):[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}
2))}))}))})),this.U_=new ti(n,r),this.Q_=function(t,e,n){var r=Te(t);return new Qr(e,r.Mc,r.credentials,r.serializer,n)}(this.f_,n,{t_:this.W_.bind(this),Hc:this.j_.bind(this),s_:this.K_.bind(this)}),this.G_=function(t,e,n){var r=Te(t);return new Yr(e,r.Mc,r.credentials,r.serializer,n)}(this.f_,n,{t_:this.z_.bind(this),Hc:this.H_.bind(this),u_:this.Y_.bind(this),a_:this.a_.bind(this)})}return t.prototype.start=function(){return this.enableNetwork()},t.prototype.enableNetwork=function(){return this.networkEnabled=!0,this.J_()},t.prototype.J_=function(){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(e){switch(e.label){case 0:return this.B_()?(t=this.G_,[4,this.F_.do()]):[3,3];case 1:return t.lastStreamToken=e.sent(),this.X_()?this.Z_():this.U_.set("Unknown"),[4,this.tl()];case 2:e.sent(),e.label=3;case 3: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.networkEnabled=!1,[4,this.el()];case 1:return t.sent(),this.U_.set("Offline"),[2]}}))}))},t.prototype.el=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return[4,this.G_.stop()];case 1:return t.sent(),[4,this.Q_.stop()];case 2:return t.sent(),this.N_.length>0&&(me("RemoteStore","Stopping write stream with "+this.N_.length+" pending writes"),this.N_=[]),this.sl(),[2]}}))}))},t.prototype.hu=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return me("RemoteStore","RemoteStore shutting down."),this.networkEnabled=!1,[4,this.el()];case 1:return t.sent(),this.O_.hu(),this.U_.set("Unknown"),[2]}}))}))},t.prototype.listen=function(t){this.k_.has(t.targetId)||(this.k_.set(t.targetId,t),this.X_()?this.Z_():this.Q_.qc()&&this.il(t))},t.prototype.nl=function(t){this.k_.delete(t),this.Q_.qc()&&this.rl(t),0===this.k_.size&&(this.Q_.qc()?this.Q_.Wc():this.B_()&&this.U_.set("Unknown"))},t.prototype.si=function(t){return this.k_.get(t)||null},t.prototype.ei=function(t){return this.hl.ei(t)},t.prototype.il=function(t){this.M_.Ns(t.targetId),this.Q_.i_(t)},t.prototype.rl=function(t){this.M_.Ns(t),this.Q_.n_(t)},t.prototype.Z_=function(){this.M_=new ae(this),this.Q_.start(),this.U_.b_()},t.prototype.X_=function(){return this.B_()&&!this.Q_.Bc()&&this.k_.size>0},t.prototype.B_=function(){return!this.L_&&this.isPrimary&&this.networkEnabled},t.prototype.sl=function(){this.M_=null},t.prototype.W_=function(){return i.__awaiter(this,void 0,void 0,(function(){var t=this;return i.__generator(this,(function(e){return this.k_.forEach((function(e,n){t.il(e)})),[2]}))}))},t.prototype.j_=function(t){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return this.sl(),this.X_()?(this.U_.D_(t),this.Z_()):this.U_.set("Unknown"),[2]}))}))},t.prototype.K_=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 ie&&2===t.state&&t.cause))return[3,6];i.label=1;case 1:return i.trys.push([1,3,,5]),[4,this.ol(t)];case 2:return i.sent(),[3,5];case 3:return n=i.sent(),me("RemoteStore","Failed to remove targets %s: %s ",t.targetIds.join(","),n),[4,this.al(n)];case 4:return i.sent(),[3,5];case 5:return[3,13];case 6:if(t instanceof ne?this.M_.qs(t):t instanceof re?this.M_.Hs(t):this.M_.Ws(t),e.isEqual(w.min()))return[3,13];i.label=7;case 7:return i.trys.push([7,11,,13]),[4,this.F_.Oo()];case 8:return r=i.sent(),e.S(r)>=0?[4,this.ul(e)]:[3,10];case 9:i.sent(),i.label=10;case 10:return[3,13];case 11:return me("RemoteStore","Failed to raise snapshot:",o=i.sent()),[4,this.al(o)];case 12:return i.sent(),[3,13];case 13:return[2]}}
2))}))},t.prototype.al=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e=this;return i.__generator(this,(function(n){switch(n.label){case 0:if("IndexedDbTransactionError"!==t.name)throw t;return this.L_=!0,[4,this.el()];case 1:return n.sent(),this.U_.set("Offline"),this.br.Xr((function(){return i.__awaiter(e,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return me("RemoteStore","Retrying IndexedDB access"),[4,this.F_.Oo()];case 1:return t.sent(),this.L_=!1,[4,this.J_()];case 2:return t.sent(),[2]}}))}))})),[2]}}))}))},t.prototype.ul=function(t){var e=this,n=this.M_.Xs(t);return n.as.forEach((function(n,r){if(n.resumeToken.rt()>0){var i=e.k_.get(r);i&&e.k_.set(r,i.we(n.resumeToken,t))}})),n.us.forEach((function(t){var n=e.k_.get(t);if(n){e.k_.set(t,n.we(A.ht,n.Ee)),e.rl(t);var r=new Ct(n.target,t,1,n.sequenceNumber);e.il(r)}})),this.hl.Mu(n)},t.prototype.ol=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.k_.has(o)?[4,this.hl.cl(o,e)]:[3,3]):[3,5];case 2:i.sent(),this.k_.delete(o),this.M_.removeTarget(o),i.label=3;case 3:i.label=4;case 4:return n++,[3,1];case 5:return[2]}}
2))}))},t.prototype.tl=function(){return i.__awaiter(this,void 0,void 0,(function(){var t,e;return i.__generator(this,(function(n){switch(n.label){case 0:return this._l()?(t=this.N_.length>0?this.N_[this.N_.length-1].batchId:-1,[4,this.F_.Bu(t)]):[3,5];case 1:return null!==(e=n.sent())?[3,2]:(0===this.N_.length&&this.G_.Wc(),[3,4]);case 2:return this.ll(e),[4,this.tl()];case 3:n.sent(),n.label=4;case 4:n.label=5;case 5:return this.dl()&&this.fl(),[2]}}))}))},t.prototype._l=function(){return this.B_()&&this.N_.length<10},t.prototype.Tl=function(){return this.N_.length},t.prototype.ll=function(t){this.N_.push(t),this.G_.qc()&&this.G_.h_&&this.G_.o_(t.mutations)},t.prototype.dl=function(){return this.B_()&&!this.G_.Bc()&&this.N_.length>0},t.prototype.fl=function(){this.G_.start()},t.prototype.z_=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.G_.c_(),[2]}))}))},t.prototype.Y_=function(){var t=this;return this.F_.fo(this.G_.lastStreamToken).then((function(){for(var e=0,n=t.N_;e<n.length;e++){var r=n[e];t.G_.o_(r.mutations)}})).catch(rr)},t.prototype.a_=function(t,e){var n=this,r=this.N_.shift(),i=Ce.from(r,t,e,this.G_.lastStreamToken);return this.hl.El(i).then((function(){return n.tl()}))},t.prototype.H_=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.N_.length>0?this.G_.h_?[4,this.Il(t)]:[3,2]:[3,5];case 1:return e.sent(),[3,4];case 2:return[4,this.wl(t)];case 3:e.sent(),e.label=4;case 4:this.dl()&&this.fl(),e.label=5;case 5:return[2]}}
2))}))},t.prototype.wl=function(t){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return Rt(t.code)?[2,(me("RemoteStore","RemoteStore error before completed handshake; resetting stream token: ",this.G_.lastStreamToken),this.G_.lastStreamToken=A.ht,this.F_.fo(A.ht).catch(rr))]:[2]}))}))},t.prototype.Il=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r=this;return i.__generator(this,(function(i){return Rt(n=t.code)&&n!==h.ABORTED?(e=this.N_.shift(),[2,(this.G_.Qc(),this.hl.Rl(e.batchId,t).then((function(){return r.tl()})))]):[2]}))}))},t.prototype.Al=function(){return new Zr(this.f_)},t.prototype.q_=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.networkEnabled=!1,[4,this.el()];case 1:return t.sent(),this.U_.set("Unknown"),[4,this.enableNetwork()];case 2:return t.sent(),[2]}}))}))},t.prototype.ml=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.B_()?(me("RemoteStore","RemoteStore restarting streams for new credential"),[4,this.q_()]):[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}
2))}))},t.prototype.Pl=function(t){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return this.isPrimary=t,t&&this.networkEnabled?[4,this.enableNetwork()]:[3,2];case 1:return e.sent(),[3,5];case 2:return t?[3,4]:[4,this.el()];case 3:e.sent(),this.U_.set("Unknown"),e.label=4;case 4:e.label=5;case 5:return[2]}}))}))},t}();function ni(t,e){return"firestore_clients_"+t+"_"+e}function ri(t,e,n){var r="firestore_mutations_"+t+"_"+n;return e.t()&&(r+="_"+e.uid),r}function ii(t,e){return"firestore_targets_"+t+"_"+e}var oi=function(){function t(t,e,n,r){this.user=t,this.batchId=e,this.state=n,this.error=r}return t.Vl=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 p(i.error.code,i.error.message)),o?new t(e,n,i.state,a):(ge("SharedClientState","Failed to parse mutation state for ID '"+n+"': "+r),null)},t.prototype.gl=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}(),ai=function(){function t(t,e,n){this.targetId=t,this.state=e,this.error=n}return t.Vl=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 p(r.error.code,r.error.message)),i?new t(e,r.state,o):(ge("SharedClientState","Failed to parse target state for ID '"+e+"': "+n),null)},t.prototype.gl=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}(),si=function(){function t(t,e){this.clientId=t,this.activeTargetIds=e}return t.Vl=function(e,n){for(var r=JSON.parse(n),i="object"==typeof r&&r.activeTargetIds instanceof Array,o=Qt(),a=0;i&&a<r.activeTargetIds.length;++a)i=P(r.activeTargetIds[a]),o=o.add(r.activeTargetIds[a]);return i?new t(e,o):(ge("SharedClientState","Failed to parse client data for instance '"+e+"': "+n),null)},t}(),ui=function(){function t(t,e){this.clientId=t,this.onlineState=e}return t.Vl=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):(ge("SharedClientState","Failed to parse online state: "+e),null)},t}(),ci=function(){function t(){this.activeTargetIds=Qt()}return t.prototype.pl=function(t){this.activeTargetIds=this.activeTargetIds.add(t)},t.prototype.yl=function(t){this.activeTargetIds=this.activeTargetIds.delete(t)},t.prototype.gl=function(){var t={activeTargetIds:this.activeTargetIds.W(),updateTimeMs:Date.now()};return JSON.stringify(t)},t}(),li=function(){function t(e,n,r,i,o){if(this.Tr=e,this.platform=n,this.persistenceKey=r,this.bl=i,this.hl=null,this.V_=null,this.ur=null,this.vl=this.Sl.bind(this),this.Dl=new Dt(ke),this.vh=!1,this.Cl=[],!t.Uh(this.platform))throw new p(h.UNIMPLEMENTED,"LocalStorage is not available on this platform.");var a=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");this.storage=this.platform.window.localStorage,this.currentUser=o,this.Fl=ni(this.persistenceKey,this.bl),this.Nl=function(t){return"firestore_sequence_number_"+t}(this.persistenceKey),this.Dl=this.Dl.Ae(this.bl,new ci),this.kl=new RegExp("^firestore_clients_"+a+"_([^_]*)$"),this.$l=new RegExp("^firestore_mutations_"+a+"_(\\d+)(?:_(.*))?$"),this.Ml=new RegExp("^firestore_targets_"+a+"_(\\d+)$"),this.Ll=function(t){return"firestore_online_state_"+t}(this.persistenceKey),this.platform.window.addEventListener("storage",this.vl)}return t.Uh=function(t){return!(!t.window||null==t.window.localStorage)},t.prototype.start=function(){return i.__awaiter(this,void 0,void 0,(function(){var t,e,n,r,o,a,s,u,c,l,f,h=this;return i.__generator(this,(function(i){switch(i.label){case 0:return[4,this.hl._u()];case 1:for(t=i.sent(),e=0,n=t;e<n.length;e++)(r=n[e])!==this.bl&&(o=this.getItem(ni(this.persistenceKey,r)))&&(a=si.Vl(r,o))&&(this.Dl=this.Dl.Ae(a.clientId,a));for(this.Ol(),(s=this.storage.getItem(this.Ll))&&(u=this.xl(s))&&this.Bl(u),c=0,l=this.Cl;c<l.length;c++)f=l[c],this.Sl(f);return this.Cl=[],this.platform.window.addEventListener("unload",(function(){return h.hu()})),this.vh=!0,[2]}}))}))},t.prototype.lr=function(t){this.setItem(this.Nl,JSON.stringify(t))},t.prototype.ql=function(){return this.Ul(this.Dl)},t.prototype.Ql=function(t){var e=!1;return this.Dl.forEach((function(n,r){r.activeTargetIds.has(t)&&(e=!0)})),e},t.prototype.Wl=function(t){this.jl(t,"pending")},t.prototype.Kl=function(t,e,n){this.jl(t,e,n),this.Gl(t)},t.prototype.zl=function(t){var e="not-current";if(this.Ql(t)){var n=this.storage.getItem(ii(this.persistenceKey,t));if(n){var r=ai.Vl(t,n);r&&(e=r.state)}}return this.Hl.pl(t),this.Ol(),e},t.prototype.Yl=function(t){this.Hl.yl(t),this.Ol()},t.prototype.Jl=function(t){return this.Hl.activeTargetIds.has(t)},t.prototype.Xl=function(t){this.removeItem(ii(this.persistenceKey,t))},t.prototype.Zl=function(t,e,n){this.td(t,e,n)},t.prototype.Su=function(t,e,n){var r=this;e.forEach((function(t){r.Gl(t)}
2)),this.currentUser=t,n.forEach((function(t){r.Wl(t)}))},t.prototype.ed=function(t){this.sd(t)},t.prototype.hu=function(){this.vh&&(this.platform.window.removeEventListener("storage",this.vl),this.removeItem(this.Fl),this.vh=!1)},t.prototype.getItem=function(t){var e=this.storage.getItem(t);return me("SharedClientState","READ",t,e),e},t.prototype.setItem=function(t,e){me("SharedClientState","SET",t,e),this.storage.setItem(t,e)},t.prototype.removeItem=function(t){me("SharedClientState","REMOVE",t),this.storage.removeItem(t)},t.prototype.Sl=function(t){var e=this;if(t.storageArea===this.storage){if(me("SharedClientState","EVENT",t.key,t.newValue),t.key===this.Fl)return void ge("Received WebStorage notification for local change. Another client might have garbage-collected our state");this.Tr.Xr((function(){return i.__awaiter(e,void 0,void 0,(function(){var e,n,r,o,a,s;return i.__generator(this,(function(i){if(this.vh){if(null!==t.key)if(this.kl.test(t.key)){if(null==t.newValue)return e=this.nd(t.key),[2,this.rd(e,null)];if(n=this.hd(t.key,t.newValue))return[2,this.rd(n.clientId,n)]}else if(this.$l.test(t.key)){if(null!==t.newValue&&(r=this.od(t.key,t.newValue)))return[2,this.ad(r)]}else if(this.Ml.test(t.key)){if(null!==t.newValue&&(o=this.ud(t.key,t.newValue)))return[2,this._d(o)]}else if(t.key===this.Ll){if(null!==t.newValue&&(a=this.xl(t.newValue)))return[2,this.Bl(a)]}else t.key===this.Nl&&(s=function(t){var e=Ue.dr;if(null!=t)try{var n=JSON.parse(t);Ee("number"==typeof n),e=n}catch(t){ge("SharedClientState","Failed to read sequence number from WebStorage",t)}return e}(t.newValue))!==Ue.dr&&this.ur(s)}else this.Cl.push(t);return[2]}))}))}))}},Object.defineProperty(t.prototype,"Hl",{get:function(){return this.Dl.get(this.bl)},enumerable:!0,configurable:!0}),t.prototype.Ol=function(){this.setItem(this.Fl,this.Hl.gl())},t.prototype.jl=function(t,e,n){var r=new oi(this.currentUser,t,e,n),i=ri(this.persistenceKey,this.currentUser,t);this.setItem(i,r.gl())},t.prototype.Gl=function(t){var e=ri(this.persistenceKey,this.currentUser,t);this.removeItem(e)},t.prototype.sd=function(t){var e={clientId:this.bl,onlineState:t};this.storage.setItem(this.Ll,JSON.stringify(e))},t.prototype.td=function(t,e,n){var r=ii(this.persistenceKey,t),i=new ai(t,e,n);this.setItem(r,i.gl())},t.prototype.nd=function(t){var e=this.kl.exec(t);return e?e[1]:null},t.prototype.hd=function(t,e){var n=this.nd(t);return si.Vl(n,e)},t.prototype.od=function(t,e){var n=this.$l.exec(t),r=Number(n[1]),i=void 0!==n[2]?n[2]:null;return oi.Vl(new f(i),r,e)},t.prototype.ud=function(t,e){var n=this.Ml.exec(t),r=Number(n[1]);return ai.Vl(r,e)},t.prototype.xl=function(t){return ui.Vl(t)},t.prototype.ad=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.hl.ld(t.batchId,t.state,t.error)]:(me("SharedClientState","Ignoring mutation for non-active user "+t.user.uid),[2])}))}))},t.prototype._d=function(t){return this.hl.dd(t.targetId,t.state,t.error)},t.prototype.rd=function(t,e){var n=this,r=e?this.Dl.Ae(t,e):this.Dl.remove(t),i=this.Ul(this.Dl),o=this.Ul(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.hl.fd(a,s).then((function(){n.Dl=r}))},t.prototype.Bl=function(t){this.Dl.get(t.clientId)&&this.V_(t.onlineState)},t.prototype.Ul=function(t){var e=Qt();return t.forEach((function(t,n){e=e.He(n.activeTargetIds)})),e},t}(),fi=function(){function t(){this.Td=new ci,this.Ed={},this.hl=null,this.V_=null,this.ur=null}return t.prototype.Wl=function(t){},t.prototype.Kl=function(t,e,n){},t.prototype.zl=function(t){return this.Td.pl(t),this.Ed[t]||"not-current"},t.prototype.Zl=function(t,e,n){this.Ed[t]=e},t.prototype.Yl=function(t){this.Td.yl(t)},t.prototype.Jl=function(t){return this.Td.activeTargetIds.has(t)},t.prototype.Xl=function(t){delete this.Ed[t]},t.prototype.ql=function(){return this.Td.activeTargetIds},t.prototype.Ql=function(t){return this.Td.activeTargetIds.has(t)},t.prototype.start=function(){return this.Td=new ci,Promise.resolve()},t.prototype.Su=function(t,e,n){},t.prototype.ed=function(t){},t.prototype.hu=function(){},t.prototype.lr=function(t){},t}(),hi=function(t){this.key=t},pi=function(t){this.key=t},di=function(){function t(t,e){this.query=t,this.Id=e,this.wd=null,this.fs=!1,this.Rd=$t(),this.ns=$t(),this.Ad=new Yt(t.se.bind(t))}return Object.defineProperty(t.prototype,"md",{get:function(){return this.Id},enumerable:!0,configurable:!0}),t.prototype.Pd=function(t,e){var n=this,r=e?e.Vd:new Jt,i=e?e.Ad:this.Ad,o=e?e.ns:this.ns,a=i,s=!1,u=this.query.oe()&&i.size===this.query.limit?i.last(
2):null,c=this.query.ae()&&i.size===this.query.limit?i.first():null;if(t.pe((function(t,e){var l=i.get(t),f=e instanceof gt?e:null;f&&(f=n.query.matches(f)?f:null);var h=!!l&&n.ns.has(l.key),p=!!f&&(f.At||n.ns.has(f.key)&&f.hasCommittedMutations),d=!1;l&&f?l.data().isEqual(f.data())?h!==p&&(r.track({type:3,doc:f}),d=!0):n.gd(l,f)||(r.track({type:2,doc:f}),d=!0,(u&&n.query.se(f,u)>0||c&&n.query.se(f,c)<0)&&(s=!0)):!l&&f?(r.track({type:0,doc:f}),d=!0):l&&!f&&(r.track({type:1,doc:l}),d=!0,(u||c)&&(s=!0)),d&&(f?(a=a.add(f),o=p?o.add(t):o.delete(t)):(a=a.delete(t),o=o.delete(t)))})),this.query.oe()||this.query.ae())for(;a.size>this.query.limit;){var l=this.query.oe()?a.last():a.first();a=a.delete(l.key),o=o.delete(l.key),r.track({type:1,doc:l})}return{Ad:a,Vd:r,pd:s,ns:o}},t.prototype.gd=function(t,e){return t.At&&e.hasCommittedMutations&&!e.At},t.prototype.xn=function(t,e,n){var r=this,i=this.Ad;this.Ad=t.Ad,this.ns=t.ns;var o=t.Vd.es();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 we()}};return n(t)-n(e)}(t.type,e.type)||r.query.se(t.doc,e.doc)})),this.yd(n);var a=e?this.bd():[],s=0===this.Rd.size&&this.fs?1:0,u=s!==this.wd;return this.wd=s,0!==o.length||u?{snapshot:new Zt(this.query,t.Ad,i,o,t.ns,0===s,u,!1),vd:a}:{vd:a}},t.prototype.Sd=function(t){return this.fs&&"Offline"===t?(this.fs=!1,this.xn({Ad:this.Ad,Vd:new Jt,ns:this.ns,pd:!1},!1)):{vd:[]}},t.prototype.Dd=function(t){return!this.Id.has(t)&&!!this.Ad.has(t)&&!this.Ad.get(t).At},t.prototype.yd=function(t){var e=this;t&&(t.Ts.forEach((function(t){return e.Id=e.Id.add(t)})),t.Es.forEach((function(t){})),t.Is.forEach((function(t){return e.Id=e.Id.delete(t)})),this.fs=t.fs)},t.prototype.bd=function(){var t=this;if(!this.fs)return[];var e=this.Rd;this.Rd=$t(),this.Ad.forEach((function(e){t.Dd(e.key)&&(t.Rd=t.Rd.add(e.key))}));var n=[];return e.forEach((function(e){t.Rd.has(e)||n.push(new pi(e))})),this.Rd.forEach((function(t){e.has(t)||n.push(new hi(t))})),n},t.prototype.Cd=function(t){this.Id=t.ju,this.Rd=$t();var e=this.Pd(t.documents);return this.xn(e,!0)},t.prototype.Fd=function(){return Zt.os(this.query,this.Ad,this.ns,0===this.wd)},t}(),vi=function(){function t(t,e,n,r){this.br=t,this.Nd=e,this.updateFunction=n,this.Dr=r,this.kd=5,this.Qr=new Ve(this.br,"transaction_retry")}return t.prototype.$d=function(){this.Md()},t.prototype.Md=function(){var t=this;this.Qr.gr((function(){return i.__awaiter(t,void 0,void 0,(function(){var t,e,n=this;return i.__generator(this,(function(r){return t=this.Nd.Al(),(e=this.Ld(t))&&e.then((function(e){n.br.$r((function(){return t.commit().then((function(){n.Dr.resolve(e)})).catch((function(t){n.Od(t)}))}))})).catch((function(t){n.Od(t)})),[2]}))}))}))},t.prototype.Ld=function(t){try{var e=this.updateFunction(t);return!N(e)&&e.catch&&e.then?e:(this.Dr.reject(Error("Transaction callback must return a Promise")),null)}catch(t){return this.Dr.reject(t),null}},t.prototype.Od=function(t){var e=this;this.kd>0&&this.xd(t)?(this.kd-=1,this.br.$r((function(){return e.Md(),Promise.resolve()}))):this.Dr.reject(t)},t.prototype.xd=function(t){if("FirebaseError"===t.name){var e=t.code;return"aborted"===e||"failed-precondition"===e||!Rt(e)}return!1},t}(),yi=function(t,e,n){this.query=t,this.targetId=e,this.view=n},mi=function(t){this.key=t,this.Bd=!1},gi=function(){function t(t,e,n,r,i){this.F_=t,this.Nd=e,this.qd=n,this.currentUser=r,this.Ud=i,this.Qd=null,this.Wd=new Ae((function(t){return t.canonicalId()})),this.jd=new Map,this.Kd=[],this.Gd=new Dt(I.N),this.zd=new Map,this.Hd=new ir,this.Yd={},this.Jd=new Map,this.Xd=dn.ko(),this.onlineState="Unknown"}return Object.defineProperty(t.prototype,"Zd",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.subscribe=function(t){this.Qd=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.tf("listen()"),(r=this.Wd.get(t))?(e=r.targetId,this.qd.zl(e),n=r.view.Fd(),[3,4]):[3,1];case 1:return[4,this.F_.Uu(t.ee())];case 2:return o=i.sent(),a=this.qd.zl(o.targetId),e=o.targetId,[4,this.ef(t,e,"current"===a)];case 3:n=i.sent(),this.Zd&&this.Nd.listen(o),i.label=4;case 4:return[2,n]}}))}))},t.prototype.ef=function(t,e,n){return i.__awaiter(this,void 0,void 0,(function(){var r,o,a,s,u,c;return i.__generator(this,(function(i){switch(i.label){case 0:return[4,this.F_.Wu(t,!0)];case 1:return r=i.sent(),o=new di(t,r.ju),a=o.Pd(r.documents),s=ee.ds(e,n&&"Offline"!==this.onlineState),u=o.xn(a,this.Zd,s),this.sf(e,u.vd),c=new yi(t,e,o),[2,(this.Wd.set(t,c),this.jd.has(e)?this.jd.get(e).push(t):this.jd.set(e,[t]),u.snapshot)]}}))}))},t.prototype.nl=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.tf("unlisten()"),e=this.Wd.get(t),(n=this.jd.get(e.targetId)).length>1?[2,(this.jd.set(e.targetId,n.filter((function(e){return!e.isEqual(t)}))),void this.Wd.delete(t))]:this.Zd?(this.qd.Yl(e.targetId),this.qd.Ql(e.targetId)?[3,2]:[4,this.F_.Qu(e.targetId,!1).then((function(){r.qd.Xl(e.targetId),r.Nd.nl(e.targetId),r.if(e.targetId)})).catch(rr)]):[3,3];case 1:i.sent(),i.label=2;case 2:return[3,5];case 3:return this.if(e.targetId),[4,this.F_.Qu(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;return i.__generator(this,(function(i){switch(i.label){case 0:this.tf("write()"),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.F_.Nu(t)];case 2:return n=i.sent(),[3,4];case 3:if("IndexedDbTransactionError"===(r=i.sent()).name)return[2,(ge("SyncEngine","Dropping write that cannot be persisted: "+r),void e.reject(new p(h.UNAVAILABLE,"Failed to persist write: "+r)))];throw r;case 4:return this.qd.Wl(n.batchId),this.nf(n.batchId,e),[4,this.rf(n.Dn)];case 5:return i.sent(),[4,this.Nd.tl()];case 6:return i.sent(),[2]}}))}))},t.prototype.runTransaction=function(t,e,n){new vi(t,this.Nd,e,n).$d()},t.prototype.Mu=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.tf("applyRemoteEvent()"),r.label=1;case 1:return r.trys.push([1,4,,6]),[4,this.F_.Mu(t)];case 2:return e=r.sent(),t.as.forEach((function(t,e){var r=n.zd.get(e);r&&(Ee(t.Ts.size+t.Es.size+t.Is.size<=1),t.Ts.size>0?r.Bd=!0:t.Es.size>0?Ee(r.Bd):t.Is.size>0&&(Ee(r.Bd),r.Bd=!1))})),[4,this.rf(e,t)];case 3:return r.sent(),[3,6];case 4:return[4,rr(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}}
2))}))},t.prototype.Sd=function(t,e){this.tf("applyOnlineStateChange()");var n=[];this.Wd.forEach((function(e,r){var i=r.view.Sd(t);i.snapshot&&n.push(i.snapshot)})),this.Qd.hf(t),this.Qd.s_(n),this.onlineState=t},t.prototype.cl=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.tf("rejectListens()"),this.qd.Zl(t,"rejected",e),n=this.zd.get(t),(r=n&&n.key)?(this.Gd=this.Gd.remove(r),this.zd.delete(t),this.af(),o=(o=new Dt(I.N)).Ae(r,new bt(r,w.min())),a=$t().add(r),s=new te(w.min(),new Map,new Ut(ke),o,a),[2,this.Mu(s)]):[4,this.F_.Qu(t,!1).then((function(){return u.if(t,e)})).catch(rr)];case 1:return i.sent(),[2]}}))}))},t.prototype.El=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.tf("applySuccessfulWrite()"),e=t.batch.batchId,this.uf(e,null),this.cf(e),r.label=1;case 1:return r.trys.push([1,4,,6]),[4,this.F_._o(t)];case 2:return n=r.sent(),this.qd.Kl(e,"acknowledged"),[4,this.rf(n)];case 3:return r.sent(),[3,6];case 4:return[4,rr(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}}
2))}))},t.prototype.Rl=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.tf("rejectFailedWrite()"),this.uf(t,e),this.cf(t),r.label=1;case 1:return r.trys.push([1,4,,6]),[4,this.F_.$u(t)];case 2:return n=r.sent(),this.qd.Kl(t,"rejected",e),[4,this.rf(n)];case 3:return r.sent(),[3,6];case 4:return[4,rr(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}}))}))},t.prototype._f=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:return this.Nd.B_()||me("SyncEngine","The network is disabled. The task returned by 'awaitPendingWrites()' will not complete until the network is enabled."),[4,this.F_.Po()];case 1:return-1===(e=r.sent())?[2,void t.resolve()]:((n=this.Jd.get(e)||[]).push(t),this.Jd.set(e,n),[2])}}))}))},t.prototype.cf=function(t){(this.Jd.get(t)||[]).forEach((function(t){t.resolve()})),this.Jd.delete(t)},t.prototype.lf=function(t){this.Jd.forEach((function(e){e.forEach((function(e){e.reject(new p(h.CANCELLED,t))}))})),this.Jd.clear()},t.prototype.nf=function(t,e){var n=this.Yd[this.currentUser.s()];n||(n=new Dt(ke)),n=n.Ae(t,e),this.Yd[this.currentUser.s()]=n},t.prototype.uf=function(t,e){var n=this.Yd[this.currentUser.s()];if(n){var r=n.get(t);r&&(e?r.reject(e):r.resolve(),n=n.remove(t)),this.Yd[this.currentUser.s()]=n}},t.prototype.if=function(t,e){var n=this;void 0===e&&(e=null),this.qd.Yl(t);for(var r=0,i=this.jd.get(t);r<i.length;r++){var o=i[r];this.Wd.delete(o),e&&this.Qd.df(o,e)}this.jd.delete(t),this.Zd&&this.Hd.ic(t).forEach((function(t){n.Hd.Co(t)||n.ff(t)}))},t.prototype.ff=function(t){var e=this.Gd.get(t);null!==e&&(this.Nd.nl(e),this.Gd=this.Gd.remove(t),this.zd.delete(e),this.af())},t.prototype.sf=function(t,e){for(var n=0,r=e;n<r.length;n++){var i=r[n];i instanceof hi?(this.Hd.Xo(i.key,t),this.Tf(i)):i instanceof pi?(me("SyncEngine","Document no longer in limbo: "+i.key),this.Hd.ta(i.key,t),this.Hd.Co(i.key)||this.ff(i.key)):we()}},t.prototype.Tf=function(t){var e=t.key;this.Gd.get(e)||(me("SyncEngine","New document in limbo: "+e),this.Kd.push(e),this.af())},t.prototype.af=function(){for(;this.Kd.length>0&&this.Gd.size<this.Ud;){var t=this.Kd.shift(),e=this.Xd.next();this.zd.set(e,new mi(t)),this.Gd=this.Gd.Ae(t,e),this.Nd.listen(new Ct(Tt.Wt(t.path).ee(),e,2,Ue.dr))}},t.prototype.Ef=function(){return this.Gd},t.prototype.If=function(){return this.Kd},t.prototype.rf=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.Wd.forEach((function(i,s){o.push(Promise.resolve().then((function(){var e=s.view.Pd(t);return e.pd?a.F_.Wu(s.query,!1).then((function(t){var n=t.documents;return s.view.Pd(n,e)})):e})).then((function(t){var i=e&&e.as.get(s.targetId),o=s.view.xn(t,a.Zd,i);if(a.sf(s.targetId,o.vd),o.snapshot){a.Zd&&a.qd.Zl(s.targetId,o.snapshot.fromCache?"not-current":"current"),n.push(o.snapshot);var u=Me.ar(s.targetId,o.snapshot);r.push(u)}})))})),[4,Promise.all(o)];case 1:return i.sent(),this.Qd.s_(n),[4,this.F_.xu(r)];case 2:return i.sent(),[2]}}))}))},t.prototype.tf=function(t){},t.prototype.ml=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:return e=!this.currentUser.isEqual(t),this.currentUser=t,e?(this.lf("'waitForPendingWrites' promise is rejected due to a user change."),[4,this.F_.Su(t)]):[3,3];case 1:return n=r.sent(),this.qd.Su(t,n.Cu,n.Fu),[4,this.rf(n.Du)];case 2:r.sent(),r.label=3;case 3:return[4,this.Nd.ml()];case 4:return r.sent(),[2]}}))}))},t.prototype.enableNetwork=function(){return this.Nd.enableNetwork()},t.prototype.disableNetwork=function(){return this.Nd.disableNetwork()},t.prototype.ei=function(t){var e=this.zd.get(t);if(e&&e.Bd)return $t().add(e.key);var n=$t(),r=this.jd.get(t);if(!r)return n;for(var i=0,o=r;i<o.length;i++){var a=o[i],s=this.Wd.get(a);n=n.He(s.view.md)}return n},t}(),bi=function(t){function e(e,n,r,i,o){var a=this;return(a=t.call(this,e,n,r,i,o)||this).F_=e,a.isPrimary=void 0,a}return i.__extends(e,t),Object.defineProperty(e.prototype,"Zd",{get:function(){return!0===this.isPrimary},enumerable:!0,configurable:!0}),e.prototype.enableNetwork=function(){return this.F_.za(!0),t.prototype.enableNetwork.c
2all(this)},e.prototype.disableNetwork=function(){return this.F_.za(!1),t.prototype.disableNetwork.call(this)},e.prototype.wf=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:return[4,this.F_.Wu(t.query,!0)];case 1:return e=r.sent(),n=t.view.Cd(e),[2,(this.isPrimary&&this.sf(t.targetId,n.vd),n)]}}))}))},e.prototype.Sd=function(e,n){this.Zd&&0===n&&(t.prototype.Sd.call(this,e,n),this.qd.ed(e)),this.Zd||1!==n||t.prototype.Sd.call(this,e,n)},e.prototype.ld=function(t,e,n){return i.__awaiter(this,void 0,void 0,(function(){var r;return i.__generator(this,(function(i){switch(i.label){case 0:return this.tf("applyBatchState()"),[4,this.F_.Gu(t)];case 1:return null===(r=i.sent())?[3,6]:"pending"!==e?[3,3]:[4,this.Nd.tl()];case 2:return i.sent(),[3,4];case 3:"acknowledged"===e||"rejected"===e?(this.uf(t,n||null),this.F_.zu(t)):we(),i.label=4;case 4:return[4,this.rf(r)];case 5:return i.sent(),[3,7];case 6:me("SyncEngine","Cannot apply mutation batch with id: "+t),i.label=7;case 7:return[2]}}
2))}))},e.prototype.Pl=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r,o,a,s,u,c=this;return i.__generator(this,(function(i){switch(i.label){case 0:return!0!==t||!0===this.isPrimary?[3,3]:(this.isPrimary=!0,[4,this.Nd.Pl(!0)]);case 1:return i.sent(),e=this.qd.ql(),[4,this.Rf(e.W())];case 2:for(n=i.sent(),r=0,o=n;r<o.length;r++)a=o[r],this.Nd.listen(a);return[3,7];case 3:return!1!==t||!1===this.isPrimary?[3,7]:(this.isPrimary=!1,s=[],u=Promise.resolve(),this.jd.forEach((function(t,e){c.qd.Jl(e)?s.push(e):u=u.then((function(){return c.if(e),c.F_.Qu(e,!0)})),c.Nd.nl(e)})),[4,u]);case 4:return i.sent(),[4,this.Rf(s)];case 5:return i.sent(),this.Af(),[4,this.Nd.Pl(!1)];case 6:i.sent(),i.label=7;case 7:return[2]}}))}))},e.prototype.Af=function(){var t=this;this.zd.forEach((function(e,n){t.Nd.nl(n)})),this.Hd.nc(),this.zd=new Map,this.Gd=new Dt(I.N)},e.prototype.Rf=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r,o,a,s,u,c,l,f,h,p,d;return i.__generator(this,(function(i){switch(i.label){case 0:e=[],n=[],r=0,o=t,i.label=1;case 1:return r<o.length?(a=o[r],s=void 0,(u=this.jd.get(a))&&0!==u.length?[4,this.F_.Qu(a,!0)]:[3,8]):[3,14];case 2:return i.sent(),[4,this.F_.Uu(u[0].ee())];case 3:s=i.sent(),c=0,l=u,i.label=4;case 4:return c<l.length?(f=l[c],h=this.Wd.get(f),[4,this.wf(h)]):[3,7];case 5:(p=i.sent()).snapshot&&n.push(p.snapshot),i.label=6;case 6:return c++,[3,4];case 7:return[3,12];case 8:return[4,this.F_.Hu(a)];case 9:return d=i.sent(),[4,this.F_.Uu(d)];case 10:return s=i.sent(),[4,this.ef(this.mf(d),a,!1)];case 11:i.sent(),i.label=12;case 12:e.push(s),i.label=13;case 13:return r++,[3,1];case 14:return[2,(this.Qd.s_(n),e)]}}))}))},e.prototype.mf=function(t){return new Tt(t.path,t.collectionGroup,t.orderBy,t.filters,t.limit,"F",t.startAt,t.endAt)},e.prototype._u=function(){return this.F_._u()},e.prototype.dd=function(t,e,n){return i.__awaiter(this,void 0,void 0,(function(){var r,o;return i.__generator(this,(function(i){switch(i.label){case 0:return this.isPrimary?(me("SyncEngine","Ignoring unexpected query state notification."),[3,8]):[3,1];case 1:if(!this.jd.has(t))return[3,8];switch(e){case"current":case"not-current":return[3,2];case"rejected":return[3,5]}return[3,7];case 2:return[4,this.F_.la()];case 3:return r=i.sent(),o=te.ls(t,"current"===e),[4,this.rf(r,o)];case 4:return i.sent(),[3,8];case 5:return[4,this.F_.Qu(t,!0)];case 6:return i.sent(),this.if(t,n),[3,8];case 7:we(),i.label=8;case 8:return[2]}}
2))}))},e.prototype.fd=function(t,e){return i.__awaiter(this,void 0,void 0,(function(){var n,r,o,a,s,u,c,l,f,h,p=this;return i.__generator(this,(function(d){switch(d.label){case 0:if(!this.isPrimary)return[3,10];n=0,r=t,d.label=1;case 1:return n<r.length?(o=r[n],this.jd.has(o)?(me("SyncEngine","Adding an already active target "+o),[3,5]):[4,this.F_.Hu(o)]):[3,6];case 2:return a=d.sent(),[4,this.F_.Uu(a)];case 3:return s=d.sent(),[4,this.ef(this.mf(a),s.targetId,!1)];case 4:d.sent(),this.Nd.listen(s),d.label=5;case 5:return n++,[3,1];case 6:u=function(t){return i.__generator(this,(function(e){switch(e.label){case 0:return c.jd.has(t)?[4,c.F_.Qu(t,!1).then((function(){p.Nd.nl(t),p.if(t)})).catch(rr)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))},c=this,l=0,f=e,d.label=7;case 7:return l<f.length?(h=f[l],[5,u(h)]):[3,10];case 8:d.sent(),d.label=9;case 9:return l++,[3,7];case 10:return[2]}}))}))},e}(gi),wi=function(){this.Pf=void 0,this.Vf=[]},Ei=function(){function t(t){this.hl=t,this.gf=new Ae((function(t){return t.canonicalId()})),this.onlineState="Unknown",this.pf=new Set,this.hl.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.gf.get(e))||(n=!0,r=new wi),!n)return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),o=r,[4,this.hl.listen(e)];case 2:return o.Pf=i.sent(),[3,4];case 3:if(a=i.sent(),ge("EventManager",s="Initialization of query '"+e+"' failed: "+a),"IndexedDbTransactionError"!==a.name)throw a;return[2,void t.onError(new p(h.UNAVAILABLE,s))];case 4:return this.gf.set(e,r),r.Vf.push(t),t.Sd(this.onlineState),r.Pf&&t.yf(r.Pf)&&this.bf(),[2]}}))}))},t.prototype.nl=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.gf.get(e))&&(o=r.Vf.indexOf(t))>=0&&(r.Vf.splice(o,1),n=0===r.Vf.length),n?[2,(this.gf.delete(e),this.hl.nl(e))]:[2]}))}))},t.prototype.s_=function(t){for(var e=!1,n=0,r=t;n<r.length;n++){var i=r[n],o=i.query,a=this.gf.get(o);if(a){for(var s=0,u=a.Vf;s<u.length;s++)u[s].yf(i)&&(e=!0);a.Pf=i}}e&&this.bf()},t.prototype.df=function(t,e){var n=this.gf.get(t);if(n)for(var r=0,i=n.Vf;r<i.length;r++)i[r].onError(e);this.gf.delete(t)},t.prototype.hf=function(t){this.onlineState=t;var e=!1;this.gf.forEach((function(n,r){for(var i=0,o=r.Vf;i<o.length;i++)o[i].Sd(t)&&(e=!0)})),e&&this.bf()},t.prototype.vf=function(t){this.pf.add(t),t.next()},t.prototype.Sf=function(t){this.pf.delete(t)},t.prototype.bf=function(){this.pf.forEach((function(t){t.next()}))},t}(),Ti=function(){function t(t,e,n){this.query=t,this.Df=e,this.Cf=!1,this.Ff=null,this.onlineState="Unknown",this.options=n||{}}return t.prototype.yf=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 Zt(t.query,t.docs,t.ss,e,t.ns,t.fromCache,t.rs,!0)}var o=!1;return this.Cf?this.Nf(t)&&(this.Df.next(t),o=!0):this.kf(t,this.onlineState)&&(this.$f(t),o=!0),this.Ff=t,o},t.prototype.onError=function(t){this.Df.error(t)},t.prototype.Sd=function(t){this.onlineState=t;var e=!1;return this.Ff&&!this.Cf&&this.kf(this.Ff,t)&&(this.$f(this.Ff),e=!0),e},t.prototype.kf=function(t,e){if(!t.fromCache)return!0;var n="Offline"!==e;return!(this.options.Mf&&n||t.docs.B()&&"Offline"!==e)},t.prototype.Nf=function(t){if(t.docChanges.length>0)return!0;var e=this.Ff&&this.Ff.hasPendingWrites!==t.hasPendingWrites;return!(!t.rs&&!e)&&!0===this.options.includeMetadataChanges},t.prototype.$f=function(t){t=Zt.os(t.query,t.docs,t.ns,t.fromCache),this.Cf=!0,this.Df.next(t)},t}(),_i=function(){function t(){}return t.prototype.vu=function(t){this.Lf=t},t.prototype.Zn=function(t,e,n,r){var i=this;return e.te()||n.isEqual(w.min())?this.Of(t,e):this.Lf.Yn(t,r).next((function(o){var s=i.xf(e,o);return(e.oe()||e.ae())&&i.pd(e.Bt,s,r,n)?i.Of(t,e):(ve()<=a.LogLevel.DEBUG&&me("IndexFreeQueryEngine","Re-using previous result from %s to execute query: %s",n.toString(),e.toString()),i.Lf.Zn(t,e,n).next((function(t){return s.forEac
2h((function(e){t=t.Ae(e.key,e)})),t})))}))},t.prototype.xf=function(t,e){var n=new Ut((function(e,n){return t.se(e,n)}));return e.forEach((function(e,r){r instanceof gt&&t.matches(r)&&(n=n.add(r))})),n},t.prototype.pd=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.S(r)>0)},t.prototype.Of=function(t,e){return ve()<=a.LogLevel.DEBUG&&me("IndexFreeQueryEngine","Using full collection scan to execute query: %s",e.toString()),this.Lf.Zn(t,e,w.min())},t}(),ki=function(){function t(t,e){this.jn=t,this.oo=e,this.Wn=[],this.Bf=1,this.lastStreamToken=A.ht,this.qf=new Ut(or.Ju)}return t.prototype.co=function(t){return Pe.resolve(0===this.Wn.length)},t.prototype._o=function(t,e,n){var r=e.batchId,i=this.Uf(r,"acknowledged");return Ee(0===i),this.Wn[i],this.lastStreamToken=n,Pe.resolve()},t.prototype.do=function(t){return Pe.resolve(this.lastStreamToken)},t.prototype.fo=function(t,e){return this.lastStreamToken=e,Pe.resolve()},t.prototype.To=function(t,e,n,r){var i=this.Bf;this.Bf++,this.Wn.length>0&&this.Wn[this.Wn.length-1];var o=new Ne(i,e,n,r);this.Wn.push(o);for(var a=0,s=r;a<s.length;a++){var u=s[a];this.qf=this.qf.add(new or(u.key,i)),this.jn.Io(t,u.key.path.M())}return Pe.resolve(o)},t.prototype.wo=function(t,e){return Pe.resolve(this.Qf(e))},t.prototype.mo=function(t,e){var n=e+1,r=this.Wf(n),i=r<0?0:r;return Pe.resolve(this.Wn.length>i?this.Wn[i]:null)},t.prototype.Po=function(){return Pe.resolve(0===this.Wn.length?-1:this.Bf-1)},t.prototype.Vo=function(t){return Pe.resolve(this.Wn.slice())},t.prototype.Gn=function(t,e){var n=this,r=new or(e,0),i=new or(e,Number.POSITIVE_INFINITY),o=[];return this.qf.Ke([r,i],(function(t){var e=n.Qf(t.hc);o.push(e)})),Pe.resolve(o)},t.prototype.Xn=function(t,e){var n=this,r=new Ut(ke);return e.forEach((function(t){var e=new or(t,0),i=new or(t,Number.POSITIVE_INFINITY);n.qf.Ke([e,i],(function(t){r=r.add(t.hc)}))})),Pe.resolve(this.jf(r))},t.prototype.nr=function(t,e){var n=e.path,r=n.length+1,i=n;I.et(i)||(i=i.child(""));var o=new or(new I(i),0),a=new Ut(ke);return this.qf.Ge((function(t){var e=t.key.path;return!!n.q(e)&&(e.length===r&&(a=a.add(t.hc)),!0)}),o),Pe.resolve(this.jf(a))},t.prototype.jf=function(t){var e=this,n=[];return t.forEach((function(t){var r=e.Qf(t);null!==r&&n.push(r)})),n},t.prototype.yo=function(t,e){var n=this;Ee(0===this.Uf(e.batchId,"removed")),this.Wn.shift();var r=this.qf;return Pe.forEach(e.mutations,(function(i){var o=new or(i.key,e.batchId);return r=r.delete(o),n.oo.So(t,i.key)})).next((function(){n.qf=r}))},t.prototype.vo=function(t){},t.prototype.Co=function(t,e){var n=new or(e,0),r=this.qf.ze(n);return Pe.resolve(e.isEqual(r&&r.key))},t.prototype.Do=function(t){return this.Wn.length,Pe.resolve()},t.prototype.Uf=function(t,e){return this.Wf(t)},t.prototype.Wf=function(t){return 0===this.Wn.length?0:t-this.Wn[0].batchId},t.prototype.Qf=function(t){var e=this.Wf(t);return e<0||e>=this.Wn.length?null:this.Wn[e]},t}(),Ii=function(){function t(t,e){this.jn=t,this.Kf=e,this.docs=new Dt(I.N),this.size=0}return t.prototype.Nn=function(t,e,n){var r=e.key,i=this.docs.get(r),o=i?i.size:0,a=this.Kf(e);return this.docs=this.docs.Ae(r,{ra:e,size:a,readTime:n}),this.size+=a-o,this.jn.Io(t,r.path.M())},t.prototype.$n=function(t){var e=this.docs.get(t);e&&(this.docs=this.docs.remove(t),this.size-=e.size)},t.prototype.Mn=function(t,e){var n=this.docs.get(e);return Pe.resolve(n?n.ra:null)},t.prototype.getEntries=function(t,e){var n=this,r=zt();return e.forEach((function(t){var e=n.docs.get(t);r=r.Ae(t,e?e.ra:null)})),Pe.resolve(r)},t.prototype.Zn=function(t,e,n){for(var r=Wt(),i=new I(e.path.child("")),o=this.docs.ve(i);o.ke();){var a=o.Ne(),s=a.key,u=a.value,c=u.ra,l=u.readTime;if(!e.path.q(s.path))break;l.S(n)<=0||c instanceof gt&&e.matches(c)&&(r=r.Ae(c.key,c))}return Pe.resolve(r)},t.prototype.Gf=function(t,e){return Pe.forEach(this.docs,(function(t){return e(t)}))},t.prototype.Ea=function(e){return new t.Ia(this)},t.prototype.Ra=function(t){return Pe.resolve(this.size)},t}();Ii.Ia=function(t){function e(e){var n=this;return(n=t.call(this)||this).Aa=e,n}return i.__extends(e,t),e.prototype.xn=function(t){var e=this,n=[];return this.Dn.forEach((function(r,i){i?n.push(e.Aa.Nn(t,i,e.readTime)):e.Aa.$n(r)})),Pe.vn(n)},e.prototype.Ln=function(t,e){return this.Aa.Mn(t,e)},e.prototype.On=function(t,e){return this.Aa.getEntries(t,e)},e}(Re);var xi=function(){function t(t){this.persistence=t,this.zf=new Ae((function(t){return t.canonicalId()})),this.lastRemoteSnapshotVersion=w.min(),this.highestTargetId=0,this.Hf=0,this.Yf=new ir,this.targetCount=0,this.Jf=dn.No()}return t.prototype.js=function(t,e){return this.zf.forEach((function(t,n){return e(n)})),Pe.resolve()},t.prototype.Oo=function(t){return Pe.resolve(this.lastRemoteSnapshotVersion)},t.prototype.xo=function(t){return Pe.resolve(this.Hf)},t.prototype.$o=function(t){return this.highestTargetId=this.Jf.next(),Pe.resolve(this.highestTargetId)},t.prototype.Bo=function(t,e,n){return n&&(this.lastRemoteSnapshotVersion=n),e>this.Hf&&(this.Hf=e),Pe.resolve()},t.prototype.Uo=function(t){this.zf.set(t.target,t);var e=t.targetId;e>this.highestTargetId&&(this.Jf=new dn(e),this.highestTargetId=e),t.sequenceNumber>this.Hf&&(this.Hf=t.sequenceNumber)},t.prototype.qo=function(t,e){return this.Uo(e),this.targetCount+=1,Pe.resolve()},t.prototype.Wo=function(t,e){return this.Uo(e),Pe.resolve()},t.prototype.jo=function(t,e){return this.zf.delete(e.target),this.Yf.ic(e.targetId),this.targetCount-=1,Pe.resolve()},t.prototype.$h=function(t,e,n){var r=this,i=0,o=[];return this.zf.forEach((function(a,s){s.sequenceNumber<=e&&null===n.get(s.targetId)&&(r.zf.delete(a),o.push(r.Ko(t,s.targetId)),i++)})),Pe.vn(o).next((function(){return i}))},t.prototype.Ho=function(t){return Pe.resolve(this.targetCount)},t.prototype.Yo=function(t,e){var n=this.zf.get(e)||null;return Pe.resolve(n)}
2,t.prototype.Jo=function(t,e,n){return this.Yf.tc(e,n),Pe.resolve()},t.prototype.Zo=function(t,e,n){this.Yf.sc(e,n);var r=this.persistence.oo,i=[];return r&&e.forEach((function(e){i.push(r.So(t,e))})),Pe.vn(i)},t.prototype.Ko=function(t,e){return this.Yf.ic(e),Pe.resolve()},t.prototype.ea=function(t,e){var n=this.Yf.rc(e);return Pe.resolve(n)},t.prototype.Co=function(t,e){return Pe.resolve(this.Yf.Co(e))},t}(),Si=function(){function t(t){var e=this;this.Xf={},this.ja=new Ue(0),this.Da=!1,this.Da=!0,this.oo=t(this),this.Oa=new xi(this),this.jn=new In,this.Qn=new Ii(this.jn,(function(t){return e.oo.Zf(t)}))}return t.prototype.start=function(){return Promise.resolve()},t.prototype.hu=function(){return this.Da=!1,Promise.resolve()},Object.defineProperty(t.prototype,"vh",{get:function(){return this.Da},enumerable:!0,configurable:!0}),t.prototype.Ga=function(){},t.prototype.Tu=function(){return this.jn},t.prototype.lu=function(t){var e=this.Xf[t.s()];return e||(e=new ki(this.jn,this.oo),this.Xf[t.s()]=e),e},t.prototype.du=function(){return this.Oa},t.prototype.fu=function(){return this.Qn},t.prototype.runTransaction=function(t,e,n){var r=this;me("MemoryPersistence","Starting transaction:",t);var i=new Oi(this.ja.next());return this.oo.tT(),n(i).next((function(t){return r.oo.eT(i).next((function(){return t}))})).yn().then((function(t){return i.Un(),t}))},t.prototype.sT=function(t,e){return Pe.Sn(Object.values(this.Xf).map((function(n){return function(){return n.Co(t,e)}})))},t}(),Oi=function(t){function e(e){var n=this;return(n=t.call(this)||this).va=e,n}return i.__extends(e,t),e}(De),Ai=function(){function t(t){this.persistence=t,this.iT=new ir,this.nT=null}return t.rT=function(e){return new t(e)},Object.defineProperty(t.prototype,"hT",{get:function(){if(this.nT)return this.nT;throw we()},enumerable:!0,configurable:!0}),t.prototype.Xo=function(t,e,n){return this.iT.Xo(n,e),this.hT.delete(n),Pe.resolve()},t.prototype.ta=function(t,e,n){return this.iT.ta(n,e),this.hT.add(n),Pe.resolve()},t.prototype.So=function(t,e){return this.hT.add(e),Pe.resolve()},t.prototype.removeTarget=function(t,e){var n=this;this.iT.ic(e.targetId).forEach((function(t){return n.hT.add(t)}));var r=this.persistence.du();return r.ea(t,e.targetId).next((function(t){t.forEach((function(t){return n.hT.add(t)}))})).next((function(){return r.jo(t,e)}))},t.prototype.tT=function(){this.nT=new Set},t.prototype.eT=function(t){var e=this,n=this.persistence.fu().Ea();return Pe.forEach(this.hT,(function(r){return e.oT(t,r).next((function(t){t||n.$n(r)}))})).next((function(){return e.nT=null,n.apply(t)}))},t.prototype.mu=function(t,e){var n=this;return this.oT(t,e).next((function(t){t?n.hT.delete(e):n.hT.add(e)}))},t.prototype.Zf=function(t){return 0},t.prototype.oT=function(t,e){var n=this;return Pe.Sn([function(){return Pe.resolve(n.iT.Co(e))},function(){return n.persistence.du().Co(t,e)},function(){return n.persistence.sT(t,e)}])},t}(),Ni=function(){function t(){}return t.prototype.initialize=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e=this;return i.__generator(this,(function(n){switch(n.label){case 0:return this.qd=this.aT(t),this.persistence=this.uT(t),[4,this.persistence.start()];case 1:return n.sent(),this.cT=this._T(t),this.F_=this.lT(t),this.Nd=this.dT(t),this.hl=this.fT(t),this.TT=this.ET(t),this.qd.V_=function(t){return e.hl.Sd(t,1)},this.Nd.hl=this.hl,[4,this.F_.start()];case 2:return n.sent(),[4,this.qd.start()];case 3:return n.sent(),[4,this.Nd.start()];case 4:return n.sent(),[4,this.Nd.Pl(this.hl.Zd)];case 5:return n.sent(),[2]}}))}))},t.prototype.ET=function(t){return new Ei(this.hl)},t.prototype._T=function(t){return null},t.prototype.lT=function(t){return new er(this.persistence,new _i,t.IT)},t.prototype.uT=function(t){return new Si(Ai.rT)},t.prototype.dT=function(t){var e=this;return new ei(this.F_,t.f_,t.br,(function(t){return e.hl.Sd(t,0)}),t.platform.wT())},t.prototype.aT=function(t){return new fi},t.prototype.fT=function(t){return new gi(this.F_,this.Nd,this.qd,t.IT,t.Ud)},t.prototype.clearPersistence=function(t){throw new p(h.FAILED_PRECONDITION,"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.")},t}(),Ci=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(){var n=this;return i.__generator(this,(function(r){switch(r.label){case 0:return[4,t.prototype.initialize.call(this,e)];case 1:return r.sent(),[4,this.persistence.Ka((function(t){return i.__awaiter(n,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return[4,this.hl.Pl
2(t)];case 1:return e.sent(),this.cT&&(t&&!this.cT.vh?this.cT.start(this.F_):t||this.cT.stop()),[2]}}))}))}))];case 2:return r.sent(),[2]}}))}))},e.prototype.lT=function(t){return new nr(this.persistence,new _i,t.IT)},e.prototype.fT=function(t){var e=new bi(this.F_,this.Nd,this.qd,t.IT,t.Ud);return this.qd instanceof li&&(this.qd.hl=e),e},e.prototype._T=function(t){var e=this.persistence.oo.Vh;return new Ke(e,t.br)},e.prototype.uT=function(t){var e=Qn.Iu(t.RT),n=t.platform.yc(t.RT.ii);return new Qn(t.AT.synchronizeTabs,e,t.clientId,t.platform,Ge.Eh(t.AT.cacheSizeBytes),t.br,n,this.qd)},e.prototype.aT=function(t){if(t.AT.mT&&t.AT.synchronizeTabs){if(!li.Uh(t.platform))throw new p(h.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");var e=Qn.Iu(t.RT);return new li(t.br,t.platform,e,t.clientId,t.IT)}return new fi},e.prototype.clearPersistence=function(t){var e=Qn.Iu(t);return Qn.clearPersistence(e)},e}(Ni),Pi=function(){function t(t,e,n,r){this.platform=t,this.RT=e,this.credentials=n,this.br=r,this.clientId=_e.cn()}return t.prototype.start=function(t,e){var n=this;this.PT();var r=new Fe,i=new Fe,o=!1;return this.credentials.l((function(a){if(!o)return o=!0,me("FirestoreClient","Initializing. user=",a.uid),n.VT(t,e,a,i).then(r.resolve,r.reject);n.br.$r((function(){return n.ml(a)}))})),this.br.$r((function(){return r.promise})),i.promise},t.prototype.enableNetwork=function(){var t=this;return this.PT(),this.br.enqueue((function(){return t.hl.enableNetwork()}))},t.prototype.VT=function(t,e,n,r){return i.__awaiter(this,void 0,void 0,(function(){var o,a,s,u,c=this;return i.__generator(this,(function(l){switch(l.label){case 0:return l.trys.push([0,3,,4]),[4,this.platform.gT(this.RT)];case 1:return o=l.sent(),a=this.platform.yc(this.RT.ii),s=function(t,e,n){return new Jr(t,e,n)}(o,this.credentials,a),[4,t.initialize({br:this.br,RT:this.RT,platform:this.platform,f_:s,clientId:this.clientId,IT:n,Ud:100,AT:e})];case 2:return l.sent(),this.persistence=t.persistence,this.qd=t.qd,this.F_=t.F_,this.Nd=t.Nd,this.hl=t.hl,this.cT=t.cT,this.pT=t.TT,this.persistence.Ga((function(){return i.__awaiter(c,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]}}))}))})),r.resolve(),[3,4];case 3:if(u=l.sent(),r.reject(u),!this.yT(u))throw u;return[2,(console.warn("Error enabling offline persistence. Falling back to persistence disabled: "+u),this.VT(new Ni,{mT:!1},n,r))];case 4:return[2]}}
2))}))},t.prototype.yT=function(t){return"FirebaseError"===t.name?t.code===h.FAILED_PRECONDITION||t.code===h.UNIMPLEMENTED:!("undefined"!=typeof DOMException&&t instanceof DOMException)||22===t.code||20===t.code||11===t.code},t.prototype.PT=function(){if(this.br.Kr)throw new p(h.FAILED_PRECONDITION,"The client has already been terminated.")},t.prototype.ml=function(t){return this.br.th(),me("FirestoreClient","Credential Changed. Current user: "+t.uid),this.hl.ml(t)},t.prototype.disableNetwork=function(){var t=this;return this.PT(),this.br.enqueue((function(){return t.hl.disableNetwork()}))},t.prototype.terminate=function(){var t=this;return this.br.Jr((function(){return i.__awaiter(t,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.cT&&this.cT.stop(),[4,this.Nd.hu()];case 1:return t.sent(),[4,this.qd.hu()];case 2:return t.sent(),[4,this.persistence.hu()];case 3:return t.sent(),this.credentials.T(),[2]}}))}))}))},t.prototype.waitForPendingWrites=function(){var t=this;this.PT();var e=new Fe;return this.br.$r((function(){return t.hl._f(e)})),e.promise},t.prototype.listen=function(t,e,n){var r=this;this.PT();var i=new Ti(t,e,n);return this.br.$r((function(){return r.pT.listen(i)})),i},t.prototype.nl=function(t){var e=this;this.bT||this.br.$r((function(){return e.pT.nl(t)}))},t.prototype.vT=function(t){var e=this;return this.PT(),this.br.enqueue((function(){return e.F_.qu(t)})).then((function(t){if(t instanceof gt)return t;if(t instanceof bt)return null;throw new p(h.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.)")}))},t.prototype.ST=function(t){var e=this;return this.PT(),this.br.enqueue((function(){return i.__awaiter(e,void 0,void 0,(function(){var e,n,r;return i.__generator(this,(function(i){switch(i.label){case 0:return[4,this.F_.Wu(t,!0)];case 1:return e=i.sent(),n=new di(t,e.ju),r=n.Pd(e.documents),[2,n.xn(r,!1).snapshot]}}))}))}))},t.prototype.write=function(t){var e=this;this.PT();var n=new Fe;return this.br.$r((function(){return e.hl.write(t,n)})),n.promise},t.prototype.ii=function(){return this.RT.ii},t.prototype.vf=function(t){var e=this;this.PT(),this.br.$r((function(){return e.pT.vf(t),Promise.resolve()}))},t.prototype.Sf=function(t){this.bT||this.pT.Sf(t)},Object.defineProperty(t.prototype,"bT",{get:function(){return this.br.Kr},enumerable:!0,configurable:!0}),t.prototype.transaction=function(t){var e=this;this.PT();var n=new Fe;return this.br.$r((function(){return e.hl.runTransaction(e.br,t,n),Promise.resolve()})),n.promise},t}(),Ri=function(){function t(t){this.observer=t,this.muted=!1}return t.prototype.next=function(t){this.DT(this.observer.next,t)},t.prototype.error=function(t){this.DT(this.observer.error,t)},t.prototype.CT=function(){this.muted=!0},t.prototype.DT=function(t,e){var n=this;this.muted||setTimeout((function(){n.muted||t(e)}),0)},t}();function ji(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 Di=function(){function t(t,e,n,r){this.firestore=t,this.timestampsInSnapshots=e,this.FT=n,this.converter=r}return t.prototype.NT=function(t){switch(L(t)){case 0:return null;case 1:return t.booleanValue;case 2:return q(t.integerValue||t.doubleValue);case 3:return this.kT(t.timestampValue);case 4:return this.$T(t);case 5:return t.stringValue;case 6:return new xr(W(t.bytesValue));case 7:return this.MT(t.referenceValue);case 8:return this.LT(t.geoPointValue);case 9:return this.OT(t.arrayValue);case 10:return this.xT(t.mapValue);default:throw we()}},t.prototype.xT=function(t){var e=this,n={};return S(t.fields||{},(function(t,r){n[t]=e.NT(r)})),n},t.prototype.LT=function(t){return new Dr(q(t.latitude),q(t.longitude))},t.prototype.OT=function(t){var e=this;return(t.values||[]).map((function(t){return e.NT(t)}))},t.prototype.$T=function(t){switch(this.FT){case"previous":var e=function t(e){var n=e.mapValue.fields.__previous_value__;return R(n)?t(n):n}(t);return null==e?null:this.NT(e);case"estimate":return this.kT(j(t));default:return null}},t.prototype.kT=function(t){var e=z(t),n=new b(e.seconds,e.nanos);return this.timestampsInSnapshots?n:n.toDate()},t.prototype.MT=function(t){var e=T.K(t);Ee(he(e));var n=new Oe(e.get(1),e.get(3)),r=new I(e.$(5));return n.isEqual(this.firestore.Nc)||ge("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.firestore.Nc.projectId+"/"+this.firestore.Nc.database+") instead."),new Bi(r,this.firestore,this.converter)},t}(),Li=Ge.Rh,Mi=function(){function t(t){var e,n;if(void 0===t.host){if(void 0!==t.ssl)throw new p(h.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else hr("settings","non-empty string","host",t.host),this.host=t.host,pr("settings","boolean","ssl",t.ssl),this.ssl=null===(e=t.ssl)||void 0===e||e;if(br("settings",t,["host","ssl","credentials","timestampsInSnapshots","cacheSizeBytes","experimentalForceLongPolling"]),pr("settings","object","credentials",t.credentials),this.credentials=t.credentials,pr("settings","boolean","timestampsInSnapshots",t.timestampsInSnapshots),!0===t.timestampsInSnapshots?ge("The setting 'timestampsInSnapshots: true' is no longer required and should be removed."):!1===t.timestampsInSnapshots&&ge("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,pr("settings","number","cacheSizeBytes",t.cacheSizeBytes),void 0===t.cacheSizeBytes)this.cacheSizeBytes=Ge.mh;else{if(t.cacheSizeBytes!==Li&&t.cacheSizeBytes<Ge.Ah)throw new p(h.INVALID_ARGUMENT,"cacheSizeBytes must be at least "+Ge.Ah);this.cacheSizeBytes=t.cacheSizeBytes}pr("settings","boolean","experimentalForceLongPolling",t.experimentalForceLongPolling),this.forceLongPolling=void 0!==t.experimentalForceLongPolling&&t.experimentalForceLongPolling}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},t}(),Ui=function(){function t(e,n,r){var o=this;if(void 0===r&&(r=new Ni),this.BT=null,this.qT=new ze,this.INTERNAL={delete:function(){return i.__awaiter(o,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.UT(),[4,this.QT.terminate()];case 1:return t.sent(),[2]}}))}))}},"object"==typeof e.options){var a=e;this.BT=a,this.Nc=t.WT(a),this.jT=a.name,this.KT=new y(n)}else{var s=e;if(!s.projectId)throw new p(h.INVALID_ARGUMENT,"Must provide projectId");this.Nc=new Oe(s.projectId,s.database),this.jT="[DEFAULT]",this.KT=new v}this.GT=r,this.zT=new Mi({}),this.HT=new Br(this.Nc)}return t.prototype.settings=function(t){sr("Firestore.settings",arguments,1),lr("Firestore.settings","object",1,t);var e=new Mi(t);if(this.QT&&!this.zT.isEqual(e))throw new p(h.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.zT=e,void 0!==e.credentials&&(this.KT=function(t){if(!t)return new v;switch(t.type){case"gapi":var e=t.YT;return Ee(!("object"!=typeof e||null===e||!e.auth||!e.auth.getAuthHeaderValueForFirstParty)),new g(e,t.V||"0");case"provider":return t.YT;default:throw new p(h.INVALID_ARGUMENT,"makeCredentialsProvider failed due to invalid credential type")}}(e.credentials))},t.prototype.enableNetwork=function(){return this.UT(),this.QT.enableNetwork()},t.prototype.disableNetwork=function(){return this.UT(),this.QT.disableNetwork()},t.prototype.enablePersistence=function(t){var e,n;if(this.QT)throw new p(h.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;return t&&(void 0!==t.experimentalTabSynchronization&&ge("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),this.JT(this.GT,{mT:!0,cacheSizeBytes:this.zT.cacheSizeBytes,synchronizeTabs:r})},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.QT&&!this.QT.bT)throw new p(h.FAILED_PRECONDITION,"Persistence cannot be cleared after this Firestore instance is initialized.");return t=new Fe,[2,(this.qT.Gr((function(){return i.__awaiter(e,void 0,void 0,(function(){var e,n;return i.__generator(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),e=this.XT(),[4,this.GT.clearPersistence(e)];case 1:return r.sent(),t.resolve(),[3,3];case 2:return n=r.sent(),t.reject(n),[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,"ZT",{get:function(){return this.UT(),this.QT.bT},enumerable:!0,configurable:!0}),t.prototype.waitForPendingWrites=function(){return this.UT(),this.QT.waitForPendingWrites()},t.prototype.onSnapshotsInSync=function(t){if(this.UT(),ji(t))return this.tE(t);lr("Firestore.onSnapshotsInSync","function",1,t);var e={next:t};return this.tE(e)},t.prototype.tE=function(t){var e=this,n=new Ri({next:function(){t.next&&t.next()},error:function(t){throw we()}});return this.QT.vf(n),function(){n.CT(),e.QT.Sf(n)}},t.prototype.UT=function(){return this.QT||this.JT(new Ni,{mT:!1}),this.QT},t.prototype.XT=function(){return new Se(this.Nc,this.jT,this.zT.host,this.zT.ssl,this.zT.forceLongPolling)},t.prototype.JT=function(t,e){var n=this.XT();return this.QT=new Pi(pe.nt(),n,this.KT,this.qT),this.QT.start(t,e)},t.WT=function(t){if(e=t.options,!Object.prototype.hasOwnProperty.call(e,"projectId"))throw new p(h.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');var e,n=t.options.projectId;if(!n||"string"!=typeof n)throw new p(h.INVALID_ARGUMENT,"projectId must be a string in FirebaseApp.options");return new Oe(n)},Object.defineProperty(t.prototype,"app",{get:function(){if(!this.BT)throw new p(h.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this.BT},enumerable:!0,configurable:!0}),t.prototype.collection=function(t){return sr("Firestore.collection",arguments,1),lr("Firestore.collection","non-empty string",1,t),this.UT(),new Ki(T.K(t),this)},t.prototype.doc=function(t){return sr("Firestore.doc",arguments,1),lr("Firestore.doc","non-empty string",1,t),this.UT(),Bi.eE(T.K(t),this)},t.prototype.collectionGroup=function(t){if(sr("Firestore.collectionGroup",arguments,1),lr("Firestore.collectionGroup","non-empty string",1,t),t.indexOf("/")>=0)throw new p(h.INVALID_ARGUMENT,"Invalid collection ID '"+t+"' passed to function Firestore.collectionGroup(). Collection IDs must not contain '/'.");return this.UT(),new Hi(new Tt(T.G,t),this)},t.prototype.runTransaction=function(t){var e=this;return sr("Firestore.runTransaction",arguments,1),lr("Firestore.runTransaction","function",1,t),this.UT().transaction((function(n){return t(new Fi(e,n))}))},t.prototype.batch=function(){return this.UT(),new Vi(this)},Object.defineProperty(t,"logLevel",{get:function(){switch(ve()){case a.LogLevel.DEBUG:return"debug";case a.LogLevel.SILENT:return"silent";default:return"error"}},enumerable:!0,configurable:!0}),t.setLogLevel=function(t){switch(sr("Firestore.setLogLevel",arguments,1),lr("Firestore.setLogLevel","non-empty string",1,t),t){case"debug":ye(a.LogLevel.DEBUG);break;case"error":ye(a.LogLevel.ERROR);break;case"silent":ye(a.LogLevel.SILENT);break;default:throw new p(h.INVALID_ARGUMENT,"Invalid log level: "+t)}},t.prototype.sE=function(){return this.zT.timestampsInSnapshots},t}(),Fi=function(){function t(t,e){this.iE=t,this.nE=e}return t.prototype.get=function(t){var e=this;sr("Transaction.get",arguments,1);var n=Yi("Transaction.get",t,this.iE);return this.nE.R_([n.kc]).then((function(t){if(!t||1!==t.length)return we();var r=t[0];if(r instanceof bt)return new qi(e.iE,n.kc,null,!1,!1,n.rE);if(r instanceof gt)return new qi(e.iE,n.kc,r,!1,!1,n.rE);throw we()}))},t.prototype.set=function(t,e,n){cr("Transaction.set",arguments,2,3);var r=Yi("Transaction.set",t,this.iE);n=$i("Transaction.set",n);var i=Zi(r.rE,e,"Transaction.set"),o=i[0],a=i[1],s=n.merge||n.mergeFields?this.iE.HT.Sc(a,o,n.mergeFields):this.iE.HT.bc(a,o);return this.nE.set(r.kc,s),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 Sr?(ur("Transaction.update",arguments,3),r=Yi("Transaction.update",t,this.iE),i=this.iE.HT.Cc("Transaction.update",e,n,o)):(sr("Transaction.update",arguments,2),r=Yi("Transaction.update",t,this.iE),i=this.iE.HT.Dc("Transaction.update",e)),this.nE.update(r.kc,i),this},t.prototype.delete=function(t){sr("Transaction.delete",arguments,1
2);var e=Yi("Transaction.delete",t,this.iE);return this.nE.delete(e.kc),this},t}(),Vi=function(){function t(t){this.iE=t,this.hE=[],this.oE=!1}return t.prototype.set=function(t,e,n){cr("WriteBatch.set",arguments,2,3),this.aE();var r=Yi("WriteBatch.set",t,this.iE);n=$i("WriteBatch.set",n);var i=Zi(r.rE,e,"WriteBatch.set"),o=i[0],a=i[1],s=n.merge||n.mergeFields?this.iE.HT.Sc(a,o,n.mergeFields):this.iE.HT.bc(a,o);return this.hE=this.hE.concat(s.Rc(r.kc,ot.ft())),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.aE(),"string"==typeof e||e instanceof Sr?(ur("WriteBatch.update",arguments,3),r=Yi("WriteBatch.update",t,this.iE),i=this.iE.HT.Cc("WriteBatch.update",e,n,o)):(sr("WriteBatch.update",arguments,2),r=Yi("WriteBatch.update",t,this.iE),i=this.iE.HT.Dc("WriteBatch.update",e)),this.hE=this.hE.concat(i.Rc(r.kc,ot.exists(!0))),this},t.prototype.delete=function(t){sr("WriteBatch.delete",arguments,1),this.aE();var e=Yi("WriteBatch.delete",t,this.iE);return this.hE=this.hE.concat(new lt(e.kc,ot.ft())),this},t.prototype.commit=function(){return this.aE(),this.oE=!0,this.hE.length>0?this.iE.UT().write(this.hE):Promise.resolve()},t.prototype.aE=function(){if(this.oE)throw new p(h.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")},t}(),Bi=function(){function t(t,e,n){this.kc=t,this.firestore=e,this.rE=n,this.QT=this.firestore.UT()}return t.eE=function(e,n,r){if(e.length%2!=0)throw new p(h.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but "+e.j()+" has "+e.length);return new t(new I(e),n,r)},Object.defineProperty(t.prototype,"id",{get:function(){return this.kc.path.O()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return new Ki(this.kc.path.M(),this.firestore,this.rE)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this.kc.path.j()},enumerable:!0,configurable:!0}),t.prototype.collection=function(t){if(sr("DocumentReference.collection",arguments,1),lr("DocumentReference.collection","non-empty string",1,t),!t)throw new p(h.INVALID_ARGUMENT,"Must provide a non-empty collection name to collection()");var e=T.K(t);return new Ki(this.kc.path.child(e),this.firestore)},t.prototype.isEqual=function(e){if(!(e instanceof t))throw wr("isEqual","DocumentReference",1,e);return this.firestore===e.firestore&&this.kc.isEqual(e.kc)&&this.rE===e.rE},t.prototype.set=function(t,e){cr("DocumentReference.set",arguments,1,2),e=$i("DocumentReference.set",e);var n=Zi(this.rE,t,"DocumentReference.set"),r=n[0],i=n[1],o=e.merge||e.mergeFields?this.firestore.HT.Sc(i,r,e.mergeFields):this.firestore.HT.bc(i,r);return this.QT.write(o.Rc(this.kc,ot.ft()))},t.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 Sr?(ur("DocumentReference.update",arguments,2),n=this.firestore.HT.Cc("DocumentReference.update",t,e,r)):(sr("DocumentReference.update",arguments,1),n=this.firestore.HT.Dc("DocumentReference.update",t)),this.QT.write(n.Rc(this.kc,ot.exists(!0)))},t.prototype.delete=function(){return sr("DocumentReference.delete",arguments,0),this.QT.write([new lt(this.kc,ot.ft())])},t.prototype.onSnapshot=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];cr("DocumentReference.onSnapshot",arguments,1,4);var n,r={includeMetadataChanges:!1},i=0;"object"!=typeof t[i]||ji(t[i])||(br("DocumentReference.onSnapshot",r=t[i],["includeMetadataChanges"]),pr("DocumentReference.onSnapshot","boolean","includeMetadataChanges",r.includeMetadataChanges),i++);var o={includeMetadataChanges:r.includeMetadataChanges};return ji(t[i])?n=t[i]:(lr("DocumentReference.onSnapshot","function",i,t[i]),fr("DocumentReference.onSnapshot","function",i+1,t[i+1]),fr("DocumentReference.onSnapshot","function",i+2,t[i+2]),n={next:t[i],error:t[i+1],complete:t[i+2]}),this.uE(o,n)},t.prototype.uE=function(t,e){var n=this,r=function(t){console.error("Uncaught Error in onSnapshot:",t)};e.error&&(r=e.error.bind(e));var i=new Ri({next:function(t){if(e.next){var r=t.docs.get(n.kc);
2e.next(new qi(n.firestore,n.kc,r,t.fromCache,t.hasPendingWrites,n.rE))}},error:r}),o=this.QT.listen(Tt.Wt(this.kc.path),i,t);return function(){i.CT(),n.QT.nl(o)}},t.prototype.get=function(t){var e=this;return cr("DocumentReference.get",arguments,0,1),Qi("DocumentReference.get",t),new Promise((function(n,r){t&&"cache"===t.source?e.firestore.UT().vT(e.kc).then((function(t){n(new qi(e.firestore,e.kc,t,!0,t instanceof gt&&t.At,e.rE))}),r):e.cE(n,r,t)}))},t.prototype.cE=function(t,e,n){var r=this.uE({includeMetadataChanges:!0,Mf:!0},{next:function(i){r(),!i.exists&&i.metadata.fromCache?e(new p(h.UNAVAILABLE,"Failed to get document because the client is offline.")):i.exists&&i.metadata.fromCache&&n&&"server"===n.source?e(new p(h.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.)')):t(i)},error:e})},t.prototype.withConverter=function(e){return new t(this.kc,this.firestore,e)},t}(),zi=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}(),qi=function(){function t(t,e,n,r,i,o){this.iE=t,this.kc=e,this._E=n,this.lE=r,this.dE=i,this.rE=o}return t.prototype.data=function(t){if(cr("DocumentSnapshot.data",arguments,0,1),t=Xi("DocumentSnapshot.data",t),this._E){if(this.rE){var e=new Wi(this.iE,this.kc,this._E,this.lE,this.dE);return this.rE.fromFirestore(e,t)}return new Di(this.iE,this.iE.sE(),t.serverTimestamps,void 0).NT(this._E.Mt())}},t.prototype.get=function(t,e){if(cr("DocumentSnapshot.get",arguments,1,2),e=Xi("DocumentSnapshot.get",e),this._E){var n=this._E.data().field(Gr("DocumentSnapshot.get",t));if(null!==n)return new Di(this.iE,this.iE.sE(),e.serverTimestamps,this.rE).NT(n)}},Object.defineProperty(t.prototype,"id",{get:function(){return this.kc.path.O()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ref",{get:function(){return new Bi(this.kc,this.iE,this.rE)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"exists",{get:function(){return null!==this._E},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"metadata",{get:function(){return new zi(this.dE,this.lE)},enumerable:!0,configurable:!0}),t.prototype.isEqual=function(e){if(!(e instanceof t))throw wr("isEqual","DocumentSnapshot",1,e);return this.iE===e.iE&&this.lE===e.lE&&this.kc.isEqual(e.kc)&&(null===this._E?null===e._E:this._E.isEqual(e._E))&&this.rE===e.rE},t}(),Wi=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}(qi),Hi=function(){function t(t,e,n){this.fE=t,this.firestore=e,this.rE=n}return t.prototype.where=function(e,n,r){sr("Query.where",arguments,3),gr("Query.where",3,r);var i,o=function(t,e,n,r){if(!e.some((function(t){return t===r})))throw new p(h.INVALID_ARGUMENT,"Invalid value "+mr(r)+" provided to function Query.where() for its "+Tr(2)+" argument. Acceptable values: "+e.join(", "));return r}(0,["<","<=","==",">=",">","array-contains","in","array-contains-any"],0,n),a=Gr("Query.where",e);if(a.Y()){if("array-contains"===o||"array-contains-any"===o)throw new p(h.INVALID_ARGUMENT,"Invalid Query. You can't perform '"+o+"' queries on FieldPath.documentId().");if("in"===o){this.TE(r,o);for(var s=[],u=0,c=r;u<c.length;u++){var l=c[u];s.push(this.EE(l))}i={arrayValue:{values:s}}}else i=this.EE(r)}else"in"!==o&&"array-contains-any"!==o||this.TE(r,o),i=this.firestore.HT.Fc("Query.where",r,"in"===o);var f=_t.create(a,o,i);return this.IE(f),new t(this.fE.Gt(f),this.firestore,this.rE)},t.prototype.orderBy=function(e,n){var r;if(cr("Query.orderBy",arguments,1,2),fr("Query.orderBy","non-empty string",2,n),void 0===n||"asc"===n)r="asc";else{if("desc"!==n)throw new p(h.INVALID_ARGUMENT,"Function Query.orderBy() has unknown direction '"+n+"', expected 'asc' or 'desc'.");r="desc"}if(null!==this.fE.startAt)throw new p(h.INVALID_ARGUMENT,"Invalid query. You must not call Query.startAt() or Query.startAfter() before calling Query.orderBy().");if(null!==this.fE.endAt)throw new p(h.INVALID_ARGUMENT,"Invalid query. You must not call Query.endAt() or Query.endBefore() before calling Query.orderBy().");var i=Gr("Query.orderBy",e),o=new Nt(i,r);return this.wE(o),new t(this.fE.zt(o),this.firestore,this.rE)},t.prototype.limit=function(e){return sr("Query.limit",arguments,1
2),lr("Query.limit","number",1,e),Er("Query.limit",1,e),new t(this.fE.Ht(e),this.firestore,this.rE)},t.prototype.limitToLast=function(e){return sr("Query.limitToLast",arguments,1),lr("Query.limitToLast","number",1,e),Er("Query.limitToLast",1,e),new t(this.fE.Yt(e),this.firestore,this.rE)},t.prototype.startAt=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];ur("Query.startAt",arguments,1);var i=this.RE("Query.startAt",e,n,!0);return new t(this.fE.Jt(i),this.firestore,this.rE)},t.prototype.startAfter=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];ur("Query.startAfter",arguments,1);var i=this.RE("Query.startAfter",e,n,!1);return new t(this.fE.Jt(i),this.firestore,this.rE)},t.prototype.endBefore=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];ur("Query.endBefore",arguments,1);var i=this.RE("Query.endBefore",e,n,!0);return new t(this.fE.Xt(i),this.firestore,this.rE)},t.prototype.endAt=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];ur("Query.endAt",arguments,1);var i=this.RE("Query.endAt",e,n,!1);return new t(this.fE.Xt(i),this.firestore,this.rE)},t.prototype.isEqual=function(e){if(!(e instanceof t))throw wr("isEqual","Query",1,e);return this.firestore===e.firestore&&this.fE.isEqual(e.fE)},t.prototype.withConverter=function(e){return new t(this.fE,this.firestore,e)},t.prototype.RE=function(t,e,n,r){if(gr(t,1,e),e instanceof qi){if(n.length>0)throw new p(h.INVALID_ARGUMENT,"Too many arguments provided to "+t+"().");var i=e;if(!i.exists)throw new p(h.NOT_FOUND,"Can't use a DocumentSnapshot that doesn't exist for "+t+"().");return this.AE(i._E,r)}var o=[e].concat(n);return this.mE(t,o,r)},t.prototype.AE=function(t,e){for(var n=[],r=0,i=this.fE.orderBy;r<i.length;r++){var o=i[r];if(o.field.Y())n.push(H(this.firestore.Nc,t.key));else{var a=t.field(o.field);if(R(a))throw new p(h.INVALID_ARGUMENT,'Invalid query. You are trying to start or end a query using a document for which the field "'+o.field+'" is an uncommitted server timestamp. (Since the value of this field is unknown, you cannot start/end a query with it.)');if(null===a){var s=o.field.j();throw new p(h.INVALID_ARGUMENT,"Invalid query. You are trying to start or end a query using a document for which the field '"+s+"' (used as the orderBy) does not exist.")}n.push(a)}}return new At(n,e)},t.prototype.mE=function(t,e,n){var r=this.fE.xt;if(e.length>r.length)throw new p(h.INVALID_ARGUMENT,"Too many arguments provided to "+t+"(). The number of arguments must be less than or equal to the number of Query.orderBy() clauses");for(var i=[],o=0;o<e.length;o++){var a=e[o];if(r[o].field.Y()){if("string"!=typeof a)throw new p(h.INVALID_ARGUMENT,"Invalid query. Expected a string for document ID in "+t+"(), but got a "+typeof a);if(!this.fE._e()&&-1!==a.indexOf("/"))throw new p(h.INVALID_ARGUMENT,"Invalid query. When querying a collection and ordering by FieldPath.documentId(), the value passed to "+t+"() must be a plain document ID, but '"+a+"' contains a slash.");var s=this.fE.path.child(T.K(a));if(!I.et(s))throw new p(h.INVALID_ARGUMENT,"Invalid query. When querying a collection group and ordering by FieldPath.documentId(), the value passed to "+t+"() must result in a valid document path, but '"+s+"' is not because it contains an odd number of segments.");var u=new I(s);i.push(H(this.firestore.Nc,u))}else{var c=this.firestore.HT.Fc(t,a);i.push(c)}}return new At(i,n)},t.prototype.onSnapshot=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];cr("Query.onSnapshot",arguments,1,4);var n,r={},i=0;return"object"!=typeof t[i]||ji(t[i])||(br("Query.onSnapshot",r=t[i],["includeMetadataChanges"]),pr("Query.onSnapshot","boolean","includeMetadataChanges",r.includeMetadataChanges),i++),ji(t[i])?n=t[i]:(lr("Query.onSnapshot","function",i,t[i]),fr("Query.onSnapshot","function",i+1,t[i+1]),fr("Query.onSnapshot","function",i+2,t[i+2]),n={next:t[i],error:t[i+1],complete:t[i+2]}),this.PE(this.fE),this.uE(r,n)},t.prototype.uE=function(t,e){var n=this,r=function(t){console.error("Uncaught Error in onSnapshot:",t)};e.error&&(r=e.error.bind(e));var i=new Ri({next:function(t){e.next&&e.next(new Gi(n.firestore,
2n.fE,t,n.rE))},error:r}),o=this.firestore.UT(),a=o.listen(this.fE,i,t);return function(){i.CT(),o.nl(a)}},t.prototype.PE=function(t){if(t.ae()&&0===t.xt.length)throw new p(h.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")},t.prototype.get=function(t){var e=this;return cr("Query.get",arguments,0,1),Qi("Query.get",t),this.PE(this.fE),new Promise((function(n,r){t&&"cache"===t.source?e.firestore.UT().ST(e.fE).then((function(t){n(new Gi(e.firestore,e.fE,t,e.rE))}),r):e.cE(n,r,t)}))},t.prototype.cE=function(t,e,n){var r=this.uE({includeMetadataChanges:!0,Mf:!0},{next:function(i){r(),i.metadata.fromCache&&n&&"server"===n.source?e(new p(h.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.)')):t(i)},error:e})},t.prototype.EE=function(t){if("string"==typeof t){if(""===t)throw new p(h.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid document ID, but it was an empty string.");if(!this.fE._e()&&-1!==t.indexOf("/"))throw new p(h.INVALID_ARGUMENT,"Invalid query. When querying a collection by FieldPath.documentId(), you must provide a plain document ID, but '"+t+"' contains a '/' character.");var e=this.fE.path.child(T.K(t));if(!I.et(e))throw new p(h.INVALID_ARGUMENT,"Invalid query. When querying a collection group by FieldPath.documentId(), the value provided must result in a valid document path, but '"+e+"' is not because it has an odd number of segments ("+e.length+").");return H(this.firestore.Nc,new I(e))}if(t instanceof Bi){var n=t;return H(this.firestore.Nc,n.kc)}throw new p(h.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid string or a DocumentReference, but it was: "+mr(t)+".")},t.prototype.TE=function(t,e){if(!Array.isArray(t)||0===t.length)throw new p(h.INVALID_ARGUMENT,"Invalid Query. A non-empty array is required for '"+e.toString()+"' filters.");if(t.length>10)throw new p(h.INVALID_ARGUMENT,"Invalid Query. '"+e.toString()+"' filters support a maximum of 10 elements in the value array.");if(t.indexOf(null)>=0)throw new p(h.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 p(h.INVALID_ARGUMENT,"Invalid Query. '"+e.toString()+"' filters cannot contain 'NaN' in the value array.")},t.prototype.IE=function(t){if(t instanceof _t){var e=["array-contains","array-contains-any"],n=["in","array-contains-any"],r=e.indexOf(t.op)>=0,i=n.indexOf(t.op)>=0;if(t.ue()){var o=this.fE.jt();if(null!==o&&!o.isEqual(t.field))throw new p(h.INVALID_ARGUMENT,"Invalid query. All where filters with an inequality (<, <=, >, or >=) must be on the same field. But you have inequality filters on '"+o.toString()+"' and '"+t.field.toString()+"'");var a=this.fE.Kt();null!==a&&this.VE(t.field,a)}else if(i||r){var s=null;if(i&&(s=this.fE.ce(n)),null===s&&r&&(s=this.fE.ce(e)),null!=s)throw s===t.op?new p(h.INVALID_ARGUMENT,"Invalid query. You cannot use more than one '"+t.op.toString()+"' filter."):new p(h.INVALID_ARGUMENT,"Invalid query. You cannot use '"+t.op.toString()+"' filters with '"+s.toString()+"' filters.")}}},t.prototype.wE=function(t){if(null===this.fE.Kt()){var e=this.fE.jt();null!==e&&this.VE(e,t.field)}},t.prototype.VE=function(t,e){if(!e.isEqual(t))throw new p(h.INVALID_ARGUMENT,"Invalid query. You have a where filter with an inequality (<, <=, >, or >=) on field '"+t.toString()+"' and so you must also use '"+t.toString()+"' as your first Query.orderBy(), but your first Query.orderBy() is on field '"+e.toString()+"' instead.")},t}(),Gi=function(){function t(t,e,n,r){this.iE=t,this.gE=e,this.pE=n,this.rE=r,this.yE=null,this.bE=null,this.metadata=new zi(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:!0,configurable:!0}),Object.defineProperty(t.prototype,"empty",{get:function(){return this.pE.docs.B()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.pE.docs.size},enumerable:!0,configurable:!0}),t.prototype.forEach=function(t,e){var n=this;
2cr("QuerySnapshot.forEach",arguments,1,2),lr("QuerySnapshot.forEach","function",1,t),this.pE.docs.forEach((function(r){t.call(e,n.vE(r))}))},Object.defineProperty(t.prototype,"query",{get:function(){return new Hi(this.gE,this.iE,this.rE)},enumerable:!0,configurable:!0}),t.prototype.docChanges=function(t){t&&(br("QuerySnapshot.docChanges",t,["includeMetadataChanges"]),pr("QuerySnapshot.docChanges","boolean","includeMetadataChanges",t.includeMetadataChanges));var e=!(!t||!t.includeMetadataChanges);if(e&&this.pE.hs)throw new p(h.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this.yE&&this.bE===e||(this.yE=function(t,e,n,r){if(n.ss.B()){var i=0;return n.docChanges.map((function(e){var o=new Wi(t,e.doc.key,e.doc,n.fromCache,n.ns.has(e.doc.key),r);return e.doc,{type:"added",doc:o,oldIndex:-1,newIndex:i++}}))}var o=n.ss;return n.docChanges.filter((function(t){return e||3!==t.type})).map((function(e){var i=new Wi(t,e.doc.key,e.doc,n.fromCache,n.ns.has(e.doc.key),r),a=-1,s=-1;return 0!==e.type&&(a=o.indexOf(e.doc.key),o=o.delete(e.doc.key)),1!==e.type&&(s=(o=o.add(e.doc)).indexOf(e.doc.key)),{type:Ji(e.type),doc:i,oldIndex:a,newIndex:s}}))}(this.iE,e,this.pE,this.rE),this.bE=e),this.yE},t.prototype.isEqual=function(e){if(!(e instanceof t))throw wr("isEqual","QuerySnapshot",1,e);return this.iE===e.iE&&this.gE.isEqual(e.gE)&&this.pE.isEqual(e.pE)&&this.rE===e.rE},t.prototype.vE=function(t){return new Wi(this.iE,t.key,t,this.metadata.fromCache,this.pE.ns.has(t.key),this.rE)},t}(),Ki=function(t){function e(e,n,r){var i=this;if((i=t.call(this,Tt.Wt(e),n,r)||this).SE=e,e.length%2!=1)throw new p(h.INVALID_ARGUMENT,"Invalid collection reference. Collection references must have an odd number of segments, but "+e.j()+" has "+e.length);return i}return i.__extends(e,t),Object.defineProperty(e.prototype,"id",{get:function(){return this.fE.path.O()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){var t=this.fE.path.M();return t.B()?null:new Bi(new I(t),this.firestore)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this.fE.path.j()},enumerable:!0,configurable:!0}),e.prototype.doc=function(t){if(cr("CollectionReference.doc",arguments,0,1),0===arguments.length&&(t=_e.cn()),lr("CollectionReference.doc","non-empty string",1,t),""===t)throw new p(h.INVALID_ARGUMENT,"Document path must be a non-empty string");var e=T.K(t);return Bi.eE(this.fE.path.child(e),this.firestore,this.rE)},e.prototype.add=function(t){sr("CollectionReference.add",arguments,1),lr("CollectionReference.add","object",1,this.rE?this.rE.toFirestore(t):t);var e=this.doc();return e.set(t).then((function(){return e}))},e.prototype.withConverter=function(t){return new e(this.SE,this.firestore,t)},e}(Hi);function $i(t,e){if(void 0===e)return{merge:!1};if(br(t,e,["merge","mergeFields"]),pr(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 p(h.INVALID_ARGUMENT,"Function "+t+"() requires its "+e+" option to be an array, but it was: "+mr(r));for(var o=0;o<r.length;++o)if(!i(r[o]))throw new p(h.INVALID_ARGUMENT,"Function "+t+"() requires all "+e+" elements to be a string or a FieldPath, but the value at index "+o+" was: "+mr(r[o]))}(t,"mergeFields",0,r,(function(t){return"string"==typeof t||t instanceof Sr}))}(t,0,0,e.mergeFields),void 0!==e.mergeFields&&void 0!==e.merge)throw new p(h.INVALID_ARGUMENT,"Invalid options passed to function "+t+'(): You cannot specify both "merge" and "mergeFields".');return e}function Xi(t,e){return void 0===e?{}:(br(t,e,["serverTimestamps"]),dr(t,0,"serverTimestamps",e.serverTimestamps,["estimate","previous","none"]),e)}function Qi(t,e){fr(t,"object",1,e),e&&(br(t,e,["source"]),dr(t,0,"source",e.source,["default","server","cache"]))}function Yi(t,e,n){if(e instanceof Bi){if(e.firestore!==n)throw new p(h.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return e}throw wr(t,"DocumentReference",1,e)}function Ji(t){switch(t){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return we()}}function Zi(t,e,n){var r;return t?(r=t.toFirestore(e),n="toFirestore() in "+n):r=e,[r,n]}function to(t,e){function n(){var t="This constructor is private.";throw e&&(t+=" ",t+=e),new p(h.INVALID_ARGUMENT,t)}return n.prototype=t.prototype,Object.assign(n,t),n}var eo=to(Ui,"Use firebase.firestore() instead."),no=to(Fi,"Use firebase.firestore().runTransaction() instead."),ro=to(Vi,"Use firebase.firestore().batch() instead."),io=to(Bi,"Use firebase.firestore().doc() instead."),oo=to(qi),ao=to(Wi),so=to(Hi),uo=to(Gi),co=to(Ki,"Use firebase.firestore().collection() instead."),lo=to(function(){function t(){}return t.delete=function(){return ar("FieldValue.delete",arguments),new Nr},t.serverTimestamp=function(){return ar("FieldValue.serverTimestamp",arguments),new Cr},t.arrayUnion=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];
2return ur("FieldValue.arrayUnion",arguments,1),new Pr(t)},t.arrayRemove=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ur("FieldValue.arrayRemove",arguments,1),new Rr(t)},t.increment=function(t){return lr("FieldValue.increment","number",1,t),sr("FieldValue.increment",arguments,1),new jr(t)},t.prototype.isEqual=function(t){return this===t},t}(),"Use FieldValue.<field>() instead."),fo=to(xr,"Use Blob.fromUint8Array() or Blob.fromBase64String() instead."),ho={Firestore:eo,GeoPoint:Dr,Timestamp:b,Blob:fo,Transaction:no,WriteBatch:ro,DocumentReference:io,DocumentSnapshot:oo,Query:so,QueryDocumentSnapshot:ao,QuerySnapshot:uo,CollectionReference:co,FieldPath:Sr,FieldValue:lo,setLogLevel:Ui.setLogLevel,CACHE_SIZE_UNLIMITED:Li},po=function(){function t(){}return t.prototype.x_=function(t){},t.prototype.hu=function(){},t}(),vo=function(){function t(){var t=this;this.DE=function(){return t.CE()},this.FE=function(){return t.NE()},this.kE=[],this.$E()}return t.prototype.x_=function(t){this.kE.push(t)},t.prototype.hu=function(){window.removeEventListener("online",this.DE),window.removeEventListener("offline",this.FE)},t.prototype.$E=function(){window.addEventListener("online",this.DE),window.addEventListener("offline",this.FE)},t.prototype.CE=function(){me("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(var t=0,e=this.kE;t<e.length;t++)(0,e[t])(0)},t.prototype.NE=function(){me("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(var t=0,e=this.kE;t<e.length;t++)(0,e[t])(1)},t.Uh=function(){return"undefined"!=typeof window&&void 0!==window.addEventListener&&void 0!==window.removeEventListener},t}(),yo=function(){function t(t){this.ME=t.ME,this.LE=t.LE}return t.prototype.t_=function(t){this.OE=t},t.prototype.Hc=function(t){this.xE=t},t.prototype.onMessage=function(t){this.BE=t},t.prototype.close=function(){this.LE()},t.prototype.send=function(t){this.ME(t)},t.prototype.qE=function(){this.OE()},t.prototype.UE=function(t){this.xE(t)},t.prototype.QE=function(t){this.BE(t)},t}(),mo={BatchGetDocuments:"batchGet",Commit:"commit"},go="gl-js/ fire/"+l,bo=function(){function t(t){this.ii=t.ii;var e=t.ssl?"https":"http";this.WE=e+"://"+t.host,this.forceLongPolling=t.forceLongPolling}return t.prototype.jE=function(t,e){if(e)for(var n in e.o)e.o.hasOwnProperty(n)&&(t[n]=e.o[n]);t["X-Goog-Api-Client"]=go},t.prototype.l_=function(t,e,n){var r=this,i=this.KE(t);return new Promise((function(o,a){var s=new c.XhrIo;s.listenOnce(c.EventType.COMPLETE,(function(){try{switch(s.getLastErrorCode()){case c.ErrorCode.NO_ERROR:var e=s.getResponseJson();me("Connection","XHR received:",JSON.stringify(e)),o(e);break;case c.ErrorCode.TIMEOUT:me("Connection",'RPC "'+t+'" timed out'),a(new p(h.DEADLINE_EXCEEDED,"Request time out"));break;case c.ErrorCode.HTTP_ERROR:var n=s.getStatus();if(me("Connection",'RPC "'+t+'" failed with status:',n,"response text:",s.getResponseText()),n>0){var r=s.getResponseJson().error;if(r&&r.status&&r.message){var i=function(t){var e=t.toLowerCase().replace("_","-");return Object.values(h).indexOf(e)>=0?e:h.UNKNOWN}(r.status);a(new p(i,r.message))}else a(new p(h.UNKNOWN,"Server responded with status "+s.getStatus()))}else me("Connection",'RPC "'+t+'" failed'),a(new p(h.UNAVAILABLE,"Connection failed."));break;default:we()}}finally{me("Connection",'RPC "'+t+'" completed.')}}));var u=Object.assign({},e);delete u.database;var l=JSON.stringify(u);me("Connection","XHR sending: ",i+" "+l);var f={"Content-Type":"text/plain"};r.jE(f,n),s.send(i,"POST",l,f,15)}))},t.prototype.d_=function(t,e,n){return this.l_(t,e,n)},t.prototype.e_=function(t,e){var n=[this.WE,"/","google.firestore.v1.Firestore","/",t,"/channel"],r=c.createWebChannelTransport(),i={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:"projects/"+this.ii.projectId+"/databases/"+this.ii.database},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling};this.jE(i.initMessageHeaders,e),s.isMobileCordova()||s.isReactNative()||s.isElectron()||s.isIE()||s.isUWP()||s.isBrowserExtension()||(i.httpHeadersOverwriteParam="$httpHeaders");var o=n.join("");me("Connection","Creating WebChannel: "+o+" "+i);var a=r.createWebChannel(o,i),u=!1,l=!1,f=new yo({ME:function(t){l?me("C
2onnection","Not sending because WebChannel is closed:",t):(u||(me("Connection","Opening WebChannel transport."),a.open(),u=!0),me("Connection","WebChannel sending:",t),a.send(t))},LE: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(c.WebChannel.EventType.OPEN,(function(){l||me("Connection","WebChannel transport opened.")})),d(c.WebChannel.EventType.CLOSE,(function(){l||(l=!0,me("Connection","WebChannel transport closed"),f.UE())})),d(c.WebChannel.EventType.ERROR,(function(t){l||(l=!0,me("Connection","WebChannel transport errored:",t),f.UE(new p(h.UNAVAILABLE,"The operation could not be completed")))})),d(c.WebChannel.EventType.MESSAGE,(function(t){var e;if(!l){var n=t.data[0];Ee(!!n);var r=n,i=r.error||(null===(e=r[0])||void 0===e?void 0:e.error);if(i){me("Connection","WebChannel received error:",i);var o=i.status,s=function(t){var e=vt[t];if(void 0!==e)return jt(e)}(o),u=i.message;void 0===s&&(s=h.INTERNAL,u="Unknown error status: "+o+" with message "+i.message),l=!0,f.UE(new p(s,u)),a.close()}else me("Connection","WebChannel received:",n),f.QE(n)}})),setTimeout((function(){f.qE()}),0),f},t.prototype.KE=function(t){var e=mo[t];return this.WE+"/v1/projects/"+this.ii.projectId+"/databases/"+this.ii.database+"/documents:"+e},t}();function wo(t){!function(t,e){t.INTERNAL.registerComponent(new u.Component("firestore",(function(t){return function(t,e){return new Ui(t,e,new Ci)}(t.getProvider("app").getImmediate(),t.getProvider("auth-internal"))}),"PUBLIC").setServiceProps(Object.assign({},ho)))}(t),t.registerVersion("@firebase/firestore","1.14.4")}pe.an(new(function(){function t(){this.oc="undefined"!=typeof atob}return Object.defineProperty(t.prototype,"document",{get:function(){return"undefined"!=typeof document?document:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return"undefined"!=typeof window?window:null},enumerable:!0,configurable:!0}),t.prototype.gT=function(t){return Promise.resolve(new bo(t))},t.prototype.wT=function(){return vo.Uh()?new vo:new po},t.prototype.yc=function(t){return new fe(t,{hi:!0})},t.prototype.un=function(t){return JSON.stringify(t)},t.prototype.atob=function(t){return atob(t)},t.prototype.btoa=function(t){return btoa(t)},t.prototype._n=function(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},t}())),wo(o),e.__PRIVATE_registerFirestore=wo},function(t,e,n){"use strict";n.r(e),function(t){function r(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.")}n.d(e,"ErrorCode",(function(){return Qn})),n.d(e,"EventType",(function(){return Yn})),n.d(e,"WebChannel",(function(){return Jn})),n.d(e,"XhrIo",(function(){return Zn})),n.d(e,"createWebChannelTransport",(function(){return Xn}));var i,o="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:{},a=a||{},s=o||self;function u(){}function c(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 l(t){var e=c(t);return"array"==e||"object"==e&&"number"==typeof t.length}function f(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}var h="closure_uid_"+(1e9*Math.random()>>>0),p=0;function d(t,e,n){return t.call.apply(t.bind,arguments)}function v(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 y(t,e,n){return(y=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?d:v).apply(null,arguments)}
2function m(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 g=Date.now||function(){return+new Date};function b(t,e){function n(){}n.prototype=e.prototype,t.M=e.prototype,t.prototype=new n,t.prototype.constructor=t}function w(){this.j=this.j,this.i=this.i}w.prototype.j=!1,w.prototype.da=function(){if(!this.j&&(this.j=!0,this.C(),0))(function(t){Object.prototype.hasOwnProperty.call(t,h)&&t[h]||(t[h]=++p)})(this)},w.prototype.C=function(){if(this.i)for(;this.i.length;)this.i.shift()()};var E=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},T=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 _(t){return Array.prototype.concat.apply([],arguments)}function k(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 I(t){return/^[\s\xa0]*$/.test(t)}var x,S=String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]};function O(t,e){return-1!=t.indexOf(e)}function A(t,e){return t<e?-1:t>e?1:0}t:{var N=s.navigator;if(N){var C=N.userAgent;if(C){x=C;break t}}x=""}function P(t,e,n){for(var r in t)e.call(n,t[r],r,t)}function R(t){var e={};for(var n in t)e[n]=t[n];return e}var j="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function D(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<j.length;o++)n=j[o],Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}}function L(t){return L[" "](t),t}L[" "]=u;var M,U=O(x,"Opera"),F=O(x,"Trident")||O(x,"MSIE"),V=O(x,"Edge"),B=V||F,z=O(x,"Gecko")&&!(O(x.toLowerCase(),"webkit")&&!O(x,"Edge"))&&!(O(x,"Trident")||O(x,"MSIE"))&&!O(x,"Edge"),q=O(x.toLowerCase(),"webkit")&&!O(x,"Edge");function W(){var t=s.document;return t?t.documentMode:void 0}t:{var H="",G=function(){var t=x;return z?/rv:([^\);]+)(\)|;)/.exec(t):V?/Edge\/([\d\.]+)/.exec(t):F?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(t):q?/WebKit\/(\S+)/.exec(t):U?/(?:Version)[ \/]?(\S+)/.exec(t):void 0}();if(G&&(H=G?G[1]:""),F){var K=W();if(null!=K&&K>parseFloat(H)){M=String(K);break t}}M=H}var $,X={};function Q(t){return function(t,e){var n=X;return Object.prototype.hasOwnProperty.call(n,t)?n[t]:n[t]=e(t)}(t,(function(){for(var e=0,n=S(String(M)).split("."),r=S(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=A(0==a[1].length?0:parseInt(a[1],10),0==s[1].length?0:parseInt(s[1],10))||A(0==a[2].length,0==s[2].length)||A(a[2],s[2]),a=a[3],s=s[3]}while(0==e)}return 0<=e}))}if(s.document&&F){var Y=W();$=Y||(parseInt(M,10)||void 0)}else $=void 0;var J=$,Z=!F||9<=Number(J),tt=F&&!Q("9"),et=function(){if(!s.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});try{s.addEventListener("test",u,e),s.removeEventListener("test",u,e)}catch(n){}return t}();function nt(t,e){this.type=t,this.a=this.target=e,this.defaultPrevented=!1}function rt(t,e){if(nt.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{L(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:it[t.pointerType]||"",this.c=t,t.defaultPrevented&&this.b()}}nt.prototype.b=function(){this.defaultPrevented=!0},b(rt,nt);var it={2:"touch",3:"pen",4:"mouse"};rt.prototype.b=function(){rt.M.b.call(this);var t=this.c;if(t.preventDefault)t.preventDefault();else if(t.returnValue=!1,tt)try{(t.ctrlKey||112<=t.keyCode&&123>=t.keyCode)&&(t.keyCode=-1)}catch(e){}};var ot="closure_listenable_"+(1e6*Math.random()|0),at=0;function st(t,e,n,r,i){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!r,this.aa=i,this.key=++at,this.V=this.X=!1}function ut(t){t.V=!0,t.listener=null,t.proxy=null,t.src=null,t.aa=null}function ct(t){this.src=t,this.a={},this.b=0}function lt(t,e){var n=e.type;if(n in t.a){var r,i=t.a[n],o=E(i,e);(r=0<=o)&&Array.prototype.splice.call(i,o,1),r&&(ut(e),0==t.a[n].length&&(delete t.a[n],t.b--))}}function ft(t,e,n,r){for(var i=0;i<t.length;++i){var o=t[i];if(!o.V&&o.listener==e&&o.capture==!!n&&o.aa==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=ft(t,e,r,i);return-1<a?(e=t[a],n||(e.X=!1)):((e=new st(e,this.src,o,!!r,i)).X=n,t.pu
2sh(e)),e};var ht="closure_lm_"+(1e6*Math.random()|0),pt={};function dt(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=Tt(r),e&&e[ot]?e.sa(n,r,f(i)?!!i.capture:!!i,o):vt(e,n,r,!0,i,o)}(t,e,n,r,i);if(Array.isArray(e)){for(var o=0;o<e.length;o++)dt(t,e[o],n,r,i);return null}return n=Tt(n),t&&t[ot]?t.ra(e,n,f(r)?!!r.capture:!!r,i):vt(t,e,n,!1,r,i)}function vt(t,e,n,r,i,o){if(!e)throw Error("Invalid event type");var a=f(i)?!!i.capture:!!i;if(a&&!Z)return null;var s=wt(t);if(s||(t[ht]=s=new ct(t)),(n=s.add(e,n,r,a,o)).proxy)return n;if(r=function(){var t=bt,e=Z?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)et||(i=a),void 0===i&&(i=!1),t.addEventListener(e.toString(),r,i);else if(t.attachEvent)t.attachEvent(mt(e.toString()),r);else{if(!t.addListener||!t.removeListener)throw Error("addEventListener and attachEvent are unavailable.");t.addListener(r)}return n}function yt(t){if("number"!==typeof t&&t&&!t.V){var e=t.src;if(e&&e[ot])lt(e.c,t);else{var n=t.type,r=t.proxy;e.removeEventListener?e.removeEventListener(n,r,t.capture):e.detachEvent?e.detachEvent(mt(n),r):e.addListener&&e.removeListener&&e.removeListener(r),(n=wt(e))?(lt(n,t),0==n.b&&(n.src=null,e[ht]=null)):ut(t)}}}function mt(t){return t in pt?pt[t]:pt[t]="on"+t}function gt(t,e){var n=t.listener,r=t.aa||t.src;return t.X&&yt(t),n.call(r,e)}function bt(t,e){if(t.V)return!0;if(!Z){if(!e)t:{e=["window","event"];for(var n=s,r=0;r<e.length;r++)if(null==(n=n[e[r]])){e=null;break t}e=n}return gt(t,e=new rt(e,this))}return gt(t,new rt(e,this))}function wt(t){return(t=t[ht])instanceof ct?t:null}var Et="__closure_events_fn_"+(1e9*Math.random()>>>0);function Tt(t){return"function"==c(t)?t:(t[Et]||(t[Et]=function(e){return t.handleEvent(e)}),t[Et])}function _t(){w.call(this),this.c=new ct(this),this.J=this,this.A=null}function kt(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.V&&a.capture==n){var s=a.listener,u=a.aa||a.src;a.X&&lt(t.c,a),i=!1!==s.call(u,r)&&i}}return i&&!r.defaultPrevented}b(_t,w),_t.prototype[ot]=!0,(i=_t.prototype).addEventListener=function(t,e,n,r){dt(this,t,e,n,r)},i.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=f(i)?!!i.capture:!!i,r=Tt(r),e&&e[ot]?(e=e.c,(n=String(n).toString())in e.a&&(-1<(r=ft(a=e.a[n],r,i,o))&&(ut(a[r]),Array.prototype.splice.call(a,r,1),0==a.length&&(delete e.a[n],e.b--)))):e&&(e=wt(e))&&(n=e.a[n.toString()],e=-1,n&&(e=ft(n,r,i,o)),(r=-1<e?n[e]:null)&&yt(r))}(this,t,e,n,r)},i.dispatchEvent=function(t){var e,n=this.A;if(n)for(e=[];n;n=n.A)e.push(n);n=this.J;var r=t.type||t;if("string"===typeof t)t=new nt(t,n);else if(t instanceof nt)t.target=t.target||n;else{var i=t;D(t=new nt(r,n),i)}if(i=!0,e)for(var o=e.length-1;0<=o;o--){var a=t.a=e[o];i=kt(a,r,!0,t)&&i}if(i=kt(a=t.a=n,r,!0,t)&&i,i=kt(a,r,!1,t)&&i,e)for(o=0;o<e.length;o++)i=kt(a=t.a=e[o],r,!1,t)&&i;return i},i.C=function(){if(_t.M.C.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++)ut(n[r]);delete e.a[t],e.b--}}this.A=null},i.ra=function(t,e,n,r){return this.c.add(String(t),e,!1,n,r)},i.sa=function(t,e,n,r){return this.c.add(String(t),e,!0,n,r)};var It=s.JSON.stringify;function xt(){this.b=this.a=null}var St,Ot=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 Nt}),(function(t){t.reset()}),100);function At(){var t=jt,e=null;return t.a&&(e=t.a,t.a=t.a.next,t.a||(t.b=null),e.next=null),e}function Nt(){this.next=this.b=this.a=null}function Ct(t){s.setTimeout((function(){throw t}),0)}function Pt(t,e){St||function(){var t=s.Promise.resolve(void 0);St=function(){t.then(Dt)}}(),Rt||(St(),Rt=!0),jt.add(t,e)}xt.prototype.add=function(t,e){var n=Ot.get();n.set(t,e),this.b?this.b.next=n:this.a=n,this.b=n},Nt.prototype.set=function(t,e){this.a=t,this.b=e,this.next=null},Nt.prototype.reset=function(){this.next=this.b=this.a=null};
2var Rt=!1,jt=new xt;function Dt(){for(var t;t=At();){try{t.a.call(t.b)}catch(n){Ct(n)}var e=Ot;e.g(t),e.b<e.f&&(e.b++,t.next=e.a,e.a=t)}Rt=!1}function Lt(t,e){_t.call(this),this.b=t||1,this.a=e||s,this.f=y(this.Ua,this),this.g=g()}function Mt(t){t.Z=!1,t.L&&(t.a.clearTimeout(t.L),t.L=null)}function Ut(t,e,n){if("function"==c(t))n&&(t=y(t,n));else{if(!t||"function"!=typeof t.handleEvent)throw Error("Invalid listener argument");t=y(t.handleEvent,t)}return 2147483647<Number(e)?-1:s.setTimeout(t,e||0)}function Ft(t,e,n){w.call(this),this.f=null!=n?y(t,n):t,this.c=e,this.b=y(this.Pa,this),this.a=[]}function Vt(t){t.T=Ut(t.b,t.c),t.f.apply(null,t.a)}function Bt(t){w.call(this),this.b=t,this.a={}}b(Lt,_t),(i=Lt.prototype).Z=!1,i.L=null,i.Ua=function(){if(this.Z){var t=g()-this.g;0<t&&t<.8*this.b?this.L=this.a.setTimeout(this.f,this.b-t):(this.L&&(this.a.clearTimeout(this.L),this.L=null),this.dispatchEvent("tick"),this.Z&&(Mt(this),this.start()))}},i.start=function(){this.Z=!0,this.L||(this.L=this.a.setTimeout(this.f,this.b),this.g=g())},i.C=function(){Lt.M.C.call(this),Mt(this),delete this.a},b(Ft,w),(i=Ft.prototype).ba=!1,i.T=null,i.Ia=function(t){this.a=arguments,this.T?this.ba=!0:Vt(this)},i.C=function(){Ft.M.C.call(this),this.T&&(s.clearTimeout(this.T),this.T=null,this.ba=!1,this.a=[])},i.Pa=function(){this.T=null,this.ba&&(this.ba=!1,Vt(this))},b(Bt,w);var zt=[];function qt(t,e,n,r){Array.isArray(n)||(n&&(zt[0]=n.toString()),n=zt);for(var i=0;i<n.length;i++){var o=dt(e,n[i],r||t.handleEvent,!1,t.b||t);if(!o)break;t.a[o.key]=o}}function Wt(t){P(t.a,(function(t,e){this.a.hasOwnProperty(e)&&yt(t)}),t),t.a={}}function Ht(){}Bt.prototype.C=function(){Bt.M.C.call(this),Wt(this)},Bt.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var Gt=null;function Kt(){return Gt=Gt||new _t}function $t(t){nt.call(this,"serverreachability",t)}function Xt(t){var e=Kt();e.dispatchEvent(new $t(e,t))}function Qt(t){nt.call(this,"statevent",t)}function Yt(t){var e=Kt();e.dispatchEvent(new Qt(e,t))}function Jt(t){nt.call(this,"timingevent",t)}function Zt(t,e){if("function"!=c(t))throw Error("Fn must not be null and must be a function");return s.setTimeout((function(){t()}),e)}b($t,nt),b(Qt,nt),b(Jt,nt);var te={NO_ERROR:0,Va:1,bb:2,ab:3,Ya:4,$a:5,cb:6,za:7,TIMEOUT:8,gb:9},ee={Xa:"complete",kb:"success",Aa:"error",za:"abort",ib:"ready",jb:"readystatechange",TIMEOUT:"timeout",eb:"incrementaldata",hb:"progress",Za:"downloadprogress",lb:"uploadprogress"};function ne(){}function re(t){var e;return(e=t.a)||(e=t.a={}),e}function ie(){}ne.prototype.a=null;var oe,ae={OPEN:"a",Wa:"b",Aa:"c",fb:"d"};function se(){nt.call(this,"d")}function ue(){nt.call(this,"c")}function ce(){}function le(t,e,n){this.g=t,this.W=e,this.U=n||1,this.G=new Bt(this),this.N=fe,t=B?125:void 0,this.O=new Lt(t),this.m=null,this.b=!1,this.j=this.A=this.f=this.B=this.s=this.P=this.h=null,this.i=[],this.a=null,this.w=0,this.c=this.v=null,this.H=-1,this.l=!1,this.J=0,this.D=null,this.o=this.R=this.F=!1}b(se,nt),b(ue,nt),b(ce,ne),oe=new ce;var fe=45e3,he={},pe={};function de(t,e,n){t.B=1,t.f=Le(Ne(e)),t.j=n,t.F=!0,ve(t,null)}function ve(t,e){t.s=g(),ge(t),t.A=Ne(t.f);var n=t.A,r=t.U;Array.isArray(r)||(r=[String(r)]),Xe(n.b,"t",r),t.w=0,t.a=Bn(t.g,t.g.w?e:null),0<t.J&&(t.D=new Ft(y(t.ya,t,t.a),t.J)),qt(t.G,t.a,"readystatechange",t.Sa),e=t.m?R(t.m):{},t.j?(t.v||(t.v="POST"),e["Content-Type"]="application/x-www-form-urlencoded",t.a.$(t.A,t.v,t.j,e)):(t.v="GET",t.a.$(t.A,t.v,null,e)),Xt(1)}function ye(t,e,n){for(var r=!0;!t.l&&t.w<n.length;){var i=me(t,n);if(i==pe){4==e&&(t.c=4,Yt(14),r=!1);break}if(i==he){t.c=4,Yt(15),r=!1;break}_e(t,i)}4==e&&0==n.length&&(t.c=1,Yt(16),r=!1),t.b=t.b&&r,r||(Te(t),Ee(t))}function me(t,e){var n=t.w,r=e.indexOf("\n",n);return-1==r?pe:(n=Number(e.substring(n,r)),isNaN(n)?he:(r+=1)+n>e.length?pe:(e=e.substr(r,n),t.w=r+n,e))}function ge(t){t.P=g()+t.N,be(t,t.N)}function be(t,e){if(null!=t.h)throw Error("WatchDog timer not null");t.h=Zt(y(t.Qa,t),e)}function we(t){t.h&&(s.clearTimeout(t.h),t.h=null)}function Ee(t){0==t.g.u||t.l||Ln(t.g,t)}function Te(t){we(t);var e=t.D;e&&"function"==typeof e.da&&e.da(),t.D=null,Mt(t.O),Wt(t.G),t.a&&(e=t.a,t.a=null,e.abort(),e.da())}function _e(t,e){try{var n=t.g;if(0!=n.u&&(n.a==t||nn(n.b,t)))if(n.A=t.H,!t.o&&nn(n.b,t)&&3==n.u){try{var r=n.ja.a.parse(e)}catch(v){r=null}if(Array.isArray(r)&&3==r.length){var i=r;if(0==i[0]){t:if(!n.i){if(n.a){if(!(n.a.s+3e3<t.s))break t;Dn(n),n.a.cancel(),n.a=null}jn(n),Yt(18)}}else n.ia=i[1],0<n.ia-n.G&&37500>i[2]&&n.U&&0==n.m&&!n.l&&(n.l=Zt(y(n.Na,n),6e3));if(1>=en(n.b)&&n.O){try{n.O()}catch(v){}n.O=void 0}}else Un(n,11)}else if((t.o||n.a==t)&&Dn(n),!I(e))for(e=r=n.ja.a.parse(e),r=0;r<e.length;r++)if(i=e[r],n.G=i[0],i=i[1],2==n.u)if("c"==i[0]){n.B=i[1],n.R=i[2];var o=i[3];null!=o&&(n.oa=o);var a=i[5];null!=a&&"number"===typeof a&&0<a&&(n.D=1.5*a);var s=n,u=t.a;if(u){var c=u.a?u.a.getResponseHeader("X-Client-Wire-Protocol"):null;if(c){var l=s.b;!l.a&&(O(c,"spdy")||O(c,"quic")||O(c,"h2"))&&(l.f=l.g,l.a=new Set,l.b&&(rn(l,l.b),l.b=null))}if(s.s){var f=u.a?u.a.getResponseHeader("X-HTTP-Session-Id"):null;f&&(s.ha=f,De(s.v,s.s,f))}}n.u=3,n.c&&n.c.na();var h=t;if((s=n).ea=Vn(s,s.w?s.R:null,s.P),h.o){on(s.b,h);var p=h,d=s.D;d&&p.setTimeout(d),p.h&&(we(p),ge(p)),s.a=h}else Rn(s);0<n.f.length&&An(n)}else"stop"!=i[0]&&"close"!=i[0]||Un(n,7);else 3==n.u&&("stop"==i[0]||"close"==i[0]?"stop"==i[0]?Un(n,7):xn(n):"noop"!=i[0]&&n.c&&n.c.ma(i),n.m=0);Xt(4)}catch(v){}}function ke(t,e){if(t.forEach&&"function"==typeof t.forEach)t.forEach(e,void 0);else if(l(t)||"string"===typeof t)T(t,e,void 0);else{if(t.K&&"function"==typeof t.K)var n=t.K();else if(t.I&&"function"==typeof t.I)n=void 0;else if(l(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.I&&"function"==typeof t.I)return t.I();if("string"===typeof t)return t.split("");
vendor: 5,615 bytes, line 2
2if(l(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 Ie(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 Ie)for(n=t.K(),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 xe(t){if(t.c!=t.a.length){for(var e=0,n=0;e<t.a.length;){var r=t.a[e];Se(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;)Se(i,r=t.a[e])||(t.a[n++]=r,i[r]=1),e++;t.a.length=n}}function Se(t,e){return Object.prototype.hasOwnProperty.call(t,e)}(i=le.prototype).setTimeout=function(t){this.N=t},i.Sa=function(t){t=t.target;var e=this.D;e&&3==Tn(t)?e.Ia():this.ya(t)},i.ya=function(t){try{if(t==this.a)t:{var e=Tn(this.a),n=this.a.qa(),r=this.a.S();if(!(3>e||3==e&&!B&&!this.a.Y())){this.l||4!=e||7==n||Xt(8==n||0>=r?3:2),we(this);var i=this.a.S();this.H=i;var o=this.a.Y();if(this.b=200==i){if(this.R&&!this.o){e:{if(this.a){var a,s=this.a;if((a=s.a?s.a.getResponseHeader("X-HTTP-Initial-Response"):null)&&!I(a)){var u=a;break e}}u=null}if(!u){this.b=!1,this.c=3,Yt(12),Te(this),Ee(this);break t}this.o=!0,_e(this,u)}this.F?(ye(this,e,o),B&&this.b&&3==e&&(qt(this.G,this.O,"tick",this.Ra),this.O.start())):_e(this,o),4==e&&Te(this),this.b&&!this.l&&(4==e?Ln(this.g,this):(this.b=!1,ge(this)))}else 400==i&&0<o.indexOf("Unknown SID")?(this.c=3,Yt(12)):(this.c=0,Yt(13)),Te(this),Ee(this)}}}catch(c){}},i.Ra=function(){if(this.a){var t=Tn(this.a),e=this.a.Y();this.w<e.length&&(we(this),ye(this,t,e),this.b&&4!=t&&ge(this))}},i.cancel=function(){this.l=!0,Te(this)},i.Qa=function(){this.h=null;var t=g();0<=t-this.P?(2!=this.B&&(Xt(3),Yt(17)),Te(this),this.c=2,Ee(this)):be(this,this.P-t)},(i=Ie.prototype).I=function(){xe(this);for(var t=[],e=0;e<this.a.length;e++)t.push(this.b[this.a[e]]);return t},i.K=function(){return xe(this),this.a.concat()},i.get=function(t,e){return Se(this.b,t)?this.b[t]:e},i.set=function(t,e){Se(this.b,t)||(this.c++,this.a.push(t)),this.b[t]=e},i.forEach=function(t,e){for(var n=this.K(),r=0;r<n.length;r++){var i=n[r],o=this.get(i);t.call(e,o,i,this)}};var Oe=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function Ae(t,e){if(this.c=this.j=this.f="",this.h=null,this.i=this.g="",this.a=!1,t instanceof Ae){this.a=void 0!==e?e:t.a,Ce(this,t.f),this.j=t.j,Pe(this,t.c),Re(this,t.h),this.g=t.g,e=t.b;var n=new He;n.c=e.c,e.a&&(n.a=new Ie(e.a),n.b=e.b),je(this,n),this.i=t.i}else t&&(n=String(t).match(Oe))?(this.a=!!e,Ce(this,n[1]||"",!0),this.j=Me(n[2]||""),Pe(this,n[3]||"",!0),Re(this,n[4]),this.g=Me(n[5]||"",!0),je(this,n[6]||"",!0),this.i=Me(n[7]||"")):(this.a=!!e,this.b=new He(null,this.a))}function Ne(t){return new Ae(t)}function Ce(t,e,n){t.f=n?Me(e,!0):e,t.f&&(t.f=t.f.replace(/:$/,""))}function Pe(t,e,n){t.c=n?Me(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 je(t,e,n){e instanceof He?(t.b=e,function(t,e){e&&!t.f&&(Ge(t),t.c=null,t.a.forEach((function(t,e){var n=e.toLowerCase();e!=n&&(Ke(this,e),Xe(this,n,t))}),t)),t.f=e}(t.b,t.a)):(n||(e=Ue(e,qe)),t.b=new He(e,t.a))}function De(t,e,n){t.b.set(e,n)}function Le(t){return De(t,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^g()).toString(36)),t}function Me(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function Ue(t,e,n){return"string"===typeof t?(t=encodeURI(t).replace(e,Fe),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function Fe(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}Ae.prototype.toString=function(){var t=[],e=this.f;e&&t.push(Ue(e,Ve,!0),":");var n=this.c;return(n||"file"==e)&&(t.push("//"),(e=this.j)&&t.push(Ue(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(Ue(n,"/"==n.charAt(0)?ze:Be,!0))),(n=this.b.toString())&&t.push("?",n),(n=this.i)&&t.push("#",Ue(n,We)),t.join("")};var Ve=/[#\/\?@]/g,Be=/[#\?:]/g,ze=/[#\?]/g,qe=/[#\?@]/g,We=/#/g;function He(t,e){this.b=this.a=null,this.c=t||null,this.f=!!e}function Ge(t){t.a||(t.a=new Ie,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 Ke(t,e){Ge(t),e=Qe(t,e),Se(t.a.b,e)&&(t.c=null,t.b-=t.a.get(e).length,Se((t=t.a).b,e)&&(delete t.b[e],t.c--,t.a.length>2*t.c&&xe(t)))}function $e(t,e){return Ge(t),e=Qe(t,e),Se(t.a.b,e)}function Xe(t,e,n){Ke(t,e),0<n.length&&(t.c=null,t.a.set(Qe(t,e),k(n)),t.b+=n.length)}function Qe(t,e){return e=String(e),t.f&&(e=e.toLowerCase()),e}function Ye(t,e){this.b=t,this.a=e}function Je(t){this.g=t||Ze,s.PerformanceNavigationTiming?t=0<(t=s.performance.getEntriesByType("navigation")).length&&("hq"==t[0].nextHopProtocol||"h2"==t[0].nextHopProtocol):t=!!(s.ca&&s.ca.ua&&s.ca.ua()&&s.ca.ua().mb),this.f=t?this.g:1,this.a=null,1<this.f&&(this.a=new Set),this.b=null,this.c=[]}(i=He.prototype).add=function(t,e){Ge(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}
2,i.forEach=function(t,e){Ge(this),this.a.forEach((function(n,r){T(n,(function(n){t.call(e,n,r,this)}),this)}),this)},i.K=function(){Ge(this);for(var t=this.a.I(),e=this.a.K(),n=[],r=0;r<e.length;r++)for(var i=t[r],o=0;o<i.length;o++)n.push(e[r]);return n},i.I=function(t){Ge(this);var e=[];if("string"===typeof t)$e(this,t)&&(e=_(e,this.a.get(Qe(this,t))));else{t=this.a.I();for(var n=0;n<t.length;n++)e=_(e,t[n])}return e},i.set=function(t,e){return Ge(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},i.get=function(t,e){return t&&0<(t=this.I(t)).length?String(t[0]):e},i.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var t=[],e=this.a.K(),n=0;n<e.length;n++){var r=e[n],i=encodeURIComponent(String(r));r=this.I(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 Ze=10;function tn(t){return!!t.b||!!t.a&&t.a.size>=t.f}function en(t){return t.b?1:t.a?t.a.size:0}function nn(t,e){return t.b?t.b==e:!!t.a&&t.a.has(e)}function rn(t,e){t.a?t.a.add(e):t.b=e}function on(t,e){t.b&&t.b==e?t.b=null:t.a&&t.a.has(e)&&t.a.delete(e)}function an(t){var e,n;if(null!=t.b)return t.c.concat(t.b.i);if(null!=t.a&&0!==t.a.size){var i=t.c;try{for(var o=r(t.a.values()),a=o.next();!a.done;a=o.next()){var s=a.value;i=i.concat(s.i)}}catch(u){e={error:u}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return i}return k(t.c)}function sn(){}function un(){this.a=new sn}function cn(t,e,n){var r=n||"";try{ke(t,(function(t,n){var i=t;f(t)&&(i=It(t)),e.push(r+n+"="+encodeURIComponent(i))}))}catch(i){throw e.push(r+"type="+encodeURIComponent("_badmap")),i}}function ln(t,e,n,r,i){try{e.onload=null,e.onerror=null,e.onabort=null,e.ontimeout=null,i(r)}catch(o){}}Je.prototype.cancel=function(){var t,e;if(this.c=an(this),this.b)this.b.cancel(),this.b=null;else if(this.a&&0!==this.a.size){try{for(var n=r(this.a.values()),i=n.next();!i.done;i=n.next()){i.value.cancel()}}catch(o){t={error:o}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}this.a.clear()}},sn.prototype.stringify=function(t){return s.JSON.stringify(t,void 0)},sn.prototype.parse=function(t){return s.JSON.parse(t,void 0)};var fn=s.JSON.parse;function hn(t){_t.call(this),this.headers=new Ie,this.G=t||null,this.b=!1,this.s=this.a=null,this.D="",this.h=0,this.f="",this.g=this.w=this.l=this.v=!1,this.o=0,this.m=null,this.H=pn,this.B=this.F=!1}b(hn,_t);var pn="",dn=/^https?$/i,vn=["POST","PUT"];function yn(t){return"content-type"==t.toLowerCase()}function mn(t,e){t.b=!1,t.a&&(t.g=!0,t.a.abort(),t.g=!1),t.f=e,t.h=5,gn(t),wn(t)}function gn(t){t.v||(t.v=!0,t.dispatchEvent("complete"),t.dispatchEvent("error"))}function bn(t){if(t.b&&"undefined"!=typeof a&&(!t.s[1]||4!=Tn(t)||2!=t.S()))if(t.l&&4==Tn(t))Ut(t.va,0,t);else if(t.dispatchEvent("readystatechange"),4==Tn(t)){t.b=!1;try{var e,n=t.S();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.D).match(Oe)[1]||null;if(!o&&s.self&&s.self.location){var u=s.self.location.protocol;o=u.substr(0,u.length-1)}i=!dn.test(o?o.toLowerCase():"")}e=i}if(e)t.dispatchEvent("complete"),t.dispatchEvent("success");else{t.h=6;try{var c=2<Tn(t)?t.a.statusText:""}catch(l){c=""}t.f=c+" ["+t.S()+"]",gn(t)}}finally{wn(t)}}}function wn(t,e){if(t.a){En(t);var n=t.a,r=t.s[0]?u:null;t.a=null,t.s=null,e||t.dispatchEvent("ready");try{n.onreadystatechange=r}catch(i){}}}function En(t){t.a&&t.B&&(t.a.ontimeout=null),t.m&&(s.clearTimeout(t.m),t.m=null)}function Tn(t){return t.a?t.a.readyState:0}function _n(t,e,n){t:{for(r in n){var r=!1;break t}r=!0}r||(n=function(t){var e="";return P(t,(function(t,n){e+=n,e+=":",e+=t,e+="\r\n"})),e}(n),"string"===typeof t?null!=n&&encodeURIComponent(String(n)):De(t,e,n))}function kn(t,e,n){return n&&n.internalChannelParams&&n.internalChannelParams[t]||e}function In(t){this.f=[],this.R=this.ea=this.v=this.P=this.a=this.ha=this.s=this.N=this.h=this.F=this.j=null,this.Fa=this.H=0,this.Ca=kn("failFast",!1,t),this.U=this.l=this.i=this.g=this.c=null,this.W=!0,this.A=this.ia=this.G=-1,this.J=this.m=this.o=0,this.Ba=kn("baseRetryDelayMs",5e3,t),this.Ga=kn("retryDelaySeedMs",1e4,t),this.Da=kn("forwardChannelMaxRetries",2,t),this.ga=kn("forwardChannelRequestTimeoutMs",2e4,t),this.Ea=t&&t.nb||void 0,this.D=void 0,this.w=t&&t.supportsCrossDomainXhr||!1,this.B="",this.b=new Je(t&&t.concurrentRequestLimit),this.ja=new un,this.fa=t&&t.fastHandshake||!1,t&&t.forceLongPolling&&(this.W=!1),this.O=void 0}function xn(t){if(Sn(t),3==t.u){var e=t.H++,n=Ne(t.v);De(n,"SID",t.B),De(n,"RID",e),De(n,"TYPE","terminate"),Cn(t,n),(e=new le(t,e,void 0)).B=2,e.f=Le(Ne(n)),n=!1,s.navigator&&s.navigator.sendBeacon&&(n=s.navigator.sendBeacon(e.f.toString(),"")),!n&&s.Image&&((new Image).src=e.f,n=!0),n||(e.a=Bn(e.g,null),e.a.$(e.f)),e.s=g(),ge(e)}Fn(t)}function Sn(t){t.a&&(t.a.cancel(),t.a=null),t.i&&(s.clearTimeout(t.i),t.i=null),Dn(t),t.b.cancel(),t.g&&("number"===typeof t.g&&s.clearTimeout(t.g),t.g=null)}function On(t,e){t.f.push(new Ye(t.Fa++,e)),3==t.u&&An(t)}function An(t){tn(t.b)||t.g||(t.g=!0,Pt(t.xa,t),t.o=0)}function Nn(t,e){var n;n=e?e.W:t.H++;var r=Ne(t.v);De(r,"SID",t.B),De(r,"RID",n),De(r,"AID",t.G),Cn(t,r),t.h&&t.j&&_n(r,t.h,t.j),n=new le(t,n,t.o+1),null===t.h&&(n.m=t.j),e&&(t.f=e.i.concat(t.f)),e=Pn(t,n,1e3),n.setTimeout(
2Math.round(.5*t.ga)+Math.round(.5*t.ga*Math.random())),rn(t.b,n),de(n,r,e)}function Cn(t,e){t.c&&ke({},(function(t,n){De(e,n,t)}))}function Pn(t,e,n){n=Math.min(t.f.length,n);var r=t.c?y(t.c.Ha,t.c,t):null;t:for(var i=t.f,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 c=i[u].b,l=i[u].a;if(0>(c-=o))o=Math.max(0,i[u].b-100),s=!1;else try{cn(l,a,"req"+c+"_")}catch(f){r&&r(l)}}if(s){r=a.join("&");break t}}return t=t.f.splice(0,n),e.i=t,r}function Rn(t){t.a||t.i||(t.J=1,Pt(t.wa,t),t.m=0)}function jn(t){return!(t.a||t.i||3<=t.m)&&(t.J++,t.i=Zt(y(t.wa,t),Mn(t,t.m)),t.m++,!0)}function Dn(t){null!=t.l&&(s.clearTimeout(t.l),t.l=null)}function Ln(t,e){var n=null;if(t.a==e){Dn(t),t.a=null;var r=2}else{if(!nn(t.b,e))return;n=e.i,on(t.b,e),r=1}if(t.A=e.H,0!=t.u)if(e.b)if(1==r){n=e.j?e.j.length:0,e=g()-e.s;var i=t.o;(r=Kt()).dispatchEvent(new Jt(r,n,e,i)),An(t)}else Rn(t);else if(3==(i=e.c)||0==i&&0<t.A||!(1==r&&function(t,e){return!(en(t.b)>=t.b.f-(t.g?1:0))&&(t.g?(t.f=e.i.concat(t.f),!0):!(1==t.u||2==t.u||t.o>=(t.Ca?0:t.Da))&&(t.g=Zt(y(t.xa,t,e),Mn(t,t.o)),t.o++,!0))}(t,e)||2==r&&jn(t)))switch(n&&0<n.length&&(e=t.b,e.c=e.c.concat(n)),i){case 1:Un(t,5);break;case 4:Un(t,10);break;case 3:Un(t,6);break;default:Un(t,2)}}function Mn(t,e){var n=t.Ba+Math.floor(Math.random()*t.Ga);return t.c||(n*=2),n*e}function Un(t,e){if(2==e){var n=null;t.c&&(n=null);var r=y(t.Ta,t);n||(n=new Ae("//www.google.com/images/cleardot.gif"),s.location&&"http"==s.location.protocol||Ce(n,"https"),Le(n)),function(t,e){var n=new Ht;if(s.Image){var r=new Image;r.onload=m(ln,n,r,"TestLoadImage: loaded",!0,e),r.onerror=m(ln,n,r,"TestLoadImage: error",!1,e),r.onabort=m(ln,n,r,"TestLoadImage: abort",!1,e),r.ontimeout=m(ln,n,r,"TestLoadImage: timeout",!1,e),s.setTimeout((function(){r.ontimeout&&r.ontimeout()}),1e4),r.src=t}else e(!1)}(n.toString(),r)}else Yt(2);t.u=0,t.c&&t.c.la(e),Fn(t),Sn(t)}function Fn(t){t.u=0,t.A=-1,t.c&&(0==an(t.b).length&&0==t.f.length||(t.b.c.length=0,k(t.f),t.f.length=0),t.c.ka())}function Vn(t,e,n){var r=function(t){return t instanceof Ae?Ne(t):new Ae(t,void 0)}(n);if(""!=r.c)e&&Pe(r,e+"."+r.c),Re(r,r.h);else{var i=s.location;r=function(t,e,n,r){var i=new Ae(null,void 0);return t&&Ce(i,t),e&&Pe(i,e),n&&Re(i,n),r&&(i.g=r),i}(i.protocol,e?e+"."+i.hostname:i.hostname,+i.port,n)}return t.N&&P(t.N,(function(t,e){De(r,e,t)})),e=t.s,n=t.ha,e&&n&&De(r,e,n),De(r,"VER",t.oa),Cn(t,r),r}function Bn(t,e){if(e&&!t.w)throw Error("Can't create secondary domain capable XhrIo object.");return(e=new hn(t.Ea)).F=t.w,e}function zn(){}function qn(){if(F&&!(10<=Number(J)))throw Error("Environmental error: no available transport.")}function Wn(t,e){_t.call(this),this.a=new In(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.j=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.pa&&(t?t["X-WebChannel-Client-Profile"]=e.pa:t={"X-WebChannel-Client-Profile":e.pa}),this.a.F=t,(t=e&&e.httpHeadersOverwriteParam)&&!I(t)&&(this.a.h=t),this.h=e&&e.supportsCrossDomainXhr||!1,this.g=e&&e.sendRawJson||!1,(e=e&&e.httpSessionIdParam)&&!I(e)&&(this.a.s=e,null!==(t=this.b)&&e in t&&(e in(t=this.b)&&delete t[e])),this.f=new Kn(this)}function Hn(t){se.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 Gn(){ue.call(this),this.status=1}function Kn(t){this.a=t}(i=hn.prototype).$=function(t,e,n,r){if(this.a)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+t);e=e?e.toUpperCase():"GET",this.D=t,this.f="",this.h=0,this.v=!1,this.b=!0,this.a=new XMLHttpRequest,this.s=this.G?re(this.G):re(oe),this.a.onreadystatechange=y(this.va,this);try{this.w=!0,this.a.open(e,String(t),!0),this.w=!1}catch(o){return void mn(this,o)}t=n||"";var i=new Ie(this.headers);r&&ke(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.K()),n=s.FormData&&t instanceof s.FormData,!(0<=E(vn,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.H&&(this.a.responseType=this.H),"withCredentials"in this.a&&this.a.withCredentials!==this.F&&(this.a.withCredentials=this.F);try{En(this),0<this.o&&((this.B=function(t){return F&&Q(9)&&"number"===typeof t.timeout&&void 0!==t.ontimeout}(this.a))?(this.a.timeout=this.o,this.a.ontimeout=y(this.ta,this)):this.m=Ut(this.ta,this.o,this)),this.l=!0,this.a.send(t),this.l=!1}catch(o){mn(this,o)}},i.ta=function(){"undefined"!=typeof a&&this.a&&(this.f="Timed out after "+this.o+"ms, aborting",this.h=8,this.dispatchEvent("timeout"),this.abort(8))},i.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"),wn(this))},i.C=function(){this.a&&(this.b&&(this.b=!1,this.g=!0,this.a.abort(),this.g=!1),wn(this,!0)),hn.M.C.call(this)},i.va=function(){this.j||(this.w||this.l||this.g?bn(this):this.Oa())},i.Oa=function(){bn(this)},i.S=function(){try{return 2<Tn(this)?this.a.status:-1}catch(t){return-1}},i.Y=function(){try{return this.a?this.a.responseText:""}catch(t){return""}},i.Ja=function(t){if(this.a){var e=this.a.responseText;return t&&0==e.indexOf(t)&&(e=e.substring(t.length)),fn(e)}},i.qa=function(){return this.h},i.Ma=function(){return"string"===typeof this.f?this.f:String(this.f)},(i=In.prototype).oa=8,i.u=1,i.xa=function(t){if(this.g)if(this.g=null,1==this.u){if(!t){this.H=Math.floor(1e5*Math.random());var e,n=new le(this,t=this.H++,void 0),r=this.j;if(this.F&&(r?D(r=R(r),this.F):r=this.F),null===this.h&&(n.m=r),this.fa)t:{for(var i=e=0;i<this.f.length;i++){var o=this.f[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.f.length-1){e=i+1;break t}}e=1e3}else e=1e3;e=Pn(this,n,e),De(i=Ne(this.v),"RID",t),De(i,"CVER",22),this.s&&De(i,"X-HTTP-Session-Id",this.s),Cn(this,i),this.h&&r&&_n(i,this.h,r),rn(this.b,n),this.fa?(De(i,"$req",e),De(i,"SID","null"),n.R=!0,de(n,i,null)):de(n,i,e),this.u=2}}else 3==this.u&&(t?Nn(this,t):0==this.f.length||tn(this.b)||Nn(this))},i.wa=function(){this.i=null,this.a=new le(this,"rpc",this.J),null===this.h&&(this.a.m=this.j),this.a.J=0;var t=Ne(this.ea);De(t,"RID","rpc"),De(t,"SID",this.B),De(t,"CI",this.U?"0":"1"),De(t,"AID",this.G),Cn(this,t),De(t,"TYPE","xmlhttp"),this.h&&this.j&&_n(t,this.h,this.j),this.D&&this.a.setTimeout(this.D);var e=this.a,n=this.R;e.B=1,e.f=Le(Ne(t)),e.j=null,e.F=!0,ve(e,n)},i.Na=function(){null!=this.l&&(this.l=null,this.a.cancel(),this.a=null,jn(this),Yt(19))},i.Ta=function(t){Yt(t?2:1)},(i=zn.prototype).na=function(){},i.ma=function(){},i.la=function(){},i.ka=function(){},i.Ha=function(){},qn.prototype.a=function(t,e){return new Wn(t,e)},b(Wn,_t),(i=Wn.prototype).addEventListener=function(t,e,n,r){Wn.M.addEventListener.call(this,t,e,n,r)},i.removeEventListener=function(t,e,n,r){Wn.M.removeEventListener.call(this,t,e,n,r)},i.Ka=function(){this.a.c=this.f,this.h&&(this.a.w=!0);var t=this.a,e=this.l,n=this.b||void 0;Yt(0),t.P=e,t.N=n||{},t.U=t.W,t.v=Vn(t,null,t.P),An(t)},i.close=function(){xn(this.a)},i.La=function(t){if("string"===typeof t){var e={};e.__data__=t,On(this.a,e)}else this.g?((e={}).__data__=It(t),On(this.a,e)):On(this.a,t)},i.C=function(){this.a.c=null,delete this.f,xn(this.a),delete this.a,Wn.M.C.call(this)},b(Hn,se),b(Gn,ue),b(Kn,zn),Kn.prototype.na=function(){this.a.dispatchEvent("a")},Kn.prototype.ma=function(t){this.a.dispatchEvent(new Hn(t))},Kn.prototype.la=function(t){this.a.dispatchEvent(new Gn(t))},Kn.prototype.ka=function(){this.a.dispatchEvent("b")},qn.prototype.createWebChannel=qn.prototype.a,Wn.prototype.send=Wn.prototype.La,Wn.prototype.open=Wn.prototype.Ka,Wn.prototype.close=Wn.prototype.close,te.NO_ERROR=0,te.TIMEOUT=8,te.HTTP_ERROR=6,ee.COMPLETE="complete",ie.EventType=ae,ae.OPEN="a",ae.CLOSE="b",ae.ERROR="c",ae.MESSAGE="d",_t.prototype.listen=_t.prototype.ra,hn.prototype.listenOnce=hn.prototype.sa,hn.prototype.getLastError=hn.prototype.Ma,hn.prototype.getLastErrorCode=hn.prototype.qa,hn.prototype.getStatus=hn.prototype.S,hn.prototype.getResponseJson=hn.prototype.Ja,hn.prototype.getResponseText=hn.prototype.Y,hn.prototype.send=hn.prototype.$;var $n={createWebChannelTransport:function(){return new qn},ErrorCode:te,EventType:ee,WebChannel:ie,XhrIo:hn},Xn=$n.createWebChannelTransport,Qn=$n.ErrorCode,Yn=$n.EventType,Jn=$n.WebChannel,Zn=$n.XhrIo;e.default=$n}.call(this,n(48))},function(t,e,n){"use strict";n(104)},function(t,e,n){"use strict";(function(t){var e=n(4),r=n.n(e);(function(){var e,n="function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,n){t!=Array.prototype&&t!=Object.prototype&&(t[e]=n.value)};var i=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 o(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}function a(t){var e="undefined"!=typeof Symbol&&Symbol.iterator&&t[Symbol.iterator];return e?e.call(t):{next:o(t)}}!function(t,e){if(e){var r=i;t=t.split(".");for(var o=0;o<t.length-1;o++){var a=t[o];a in r||(r[a]={}),r=r[a]}(e=e(o=r[t=t[t.length-1]]))!=o&&null!=e&&n(r,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 o=i.setTimeout;n.prototype.c=function(t){o(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)s.b(this.a[t]);this.a=null}};var s=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?s.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=a(t),o=i.next();!o.done;o=i.next())r(o.value).Oa(e,n)}))},e.all=function(t){var n=a(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 s=s||{},u=this||self,c=/^[\w+/_-]+[=]{0,2}$/,l=null;function f(){}function h(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=h(t);return"array"==e||"object"==e&&"number"==typeof t.length}function d(t){return"function"==h(t)}function v(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}function y(t){return Object.prototype.hasOwnProperty.call(t,m)&&t[m]||(t[m]=++g)}var m="closure_uid_"+(1e9*Math.random()>>>0),g=0;function b(t,e,n){return t.call.apply(t.bind,arguments)}function w(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 E(t,e,n){return(E=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?b:w).apply(null,arguments)}function T(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 _=Date.now||function(){return+new Date};function k(t,e){function n(){}n.prototype=e.prototype,t.Za=e.prototype,t.prototype=new n,t.prototype.constructor=t}
2function I(t,e,n){this.code=O+t,this.message=e||A[t]||"",this.a=n||null}function x(t){var e=t&&t.code;return e?new I(e.substring(O.length),t.message,t.serverResponse):null}k(I,Error),I.prototype.v=function(){var t={code:this.code,message:this.message};return this.a&&(t.serverResponse=this.a),t},I.prototype.toJSON=function(){return this.v()};var S,O="auth/",A={"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."},N={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 C(t){for(var e in N)if(N[e].id===t)return{firebaseEndpoint:(t=N[e]).Ra,secureTokenEndpoint:t.Xa,identityPlatformEndpoint:t.Ua};return null}function P(t){if(!t)return!1;
2try{return!!t.$goog_Thenable}catch(e){return!1}}function R(t){if(Error.captureStackTrace)Error.captureStackTrace(this,R);else{var e=Error().stack;e&&(this.stack=e)}t&&(this.message=String(t))}function j(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");R.call(this,n+t[r])}function D(t,e){throw new j("Failure"+(t?": "+t:""),Array.prototype.slice.call(arguments,1))}function L(t,e){this.c=t,this.f=e,this.b=0,this.a=null}function M(t,e){t.f(e),100>t.b&&(t.b++,e.next=t.a,t.a=e)}function U(){this.b=this.a=null}S=C("__EID__")?"__EID__":void 0,k(R,Error),R.prototype.name="CustomError",k(j,R),j.prototype.name="AssertionError",L.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 F=new L((function(){return new B}),(function(t){t.reset()}));function V(){var t=me,e=null;return t.a&&(e=t.a,t.a=t.a.next,t.a||(t.b=null),e.next=null),e}function B(){this.next=this.b=this.a=null}U.prototype.add=function(t,e){var n=F.get();n.set(t,e),this.b?this.b.next=n:this.a=n,this.b=n},B.prototype.set=function(t,e){this.a=t,this.b=e,this.next=null},B.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},q=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 W=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},H=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 $(t,e){var n;return(n=0<=(e=z(t,e)))&&Array.prototype.splice.call(t,e,1),n}function X(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 Q(t){return Array.prototype.concat.apply([],arguments)}function Y(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,Z=String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]},tt=/&/g,et=/</g,nt=/>/g,rt=/"/g,it=/'/g,ot=/\x00/g,at=/[\x00&<>"']/;function st(t,e){return-1!=t.indexOf(e)}function ut(t,e){return t<e?-1:t>e?1:0}t:{var ct=u.navigator;if(ct){var lt=ct.userAgent;if(lt){J=lt;break t}}J=""}function ft(t){return st(J,t)}function ht(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 dt(t){var e,n={};for(e in t)n[e]=t[e];return n}var vt="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function yt(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<vt.length;o++)n=vt[o],Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}}function mt(t,e){t:{try{var n=t&&t.ownerDocument,r=n&&(n.defaultView||n.parentWindow);if((r=r||u).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(v(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;D("Argument is not a %s (or a non-Element, non-Location mock); got: %s",e,o)}}function gt(t,e){this.a=t===Et&&e||"",this.b=wt}function bt(t){return t instanceof gt&&t.constructor===gt&&t.b===wt?t.a:(D("expected object of type Const, got '"+t+"'"),"type_error:Const")}gt.prototype.ra=!0,gt.prototype.qa=function(){return this.a},gt.prototype.toString=function(){return"Const{"+this.a+"}"};var wt={},Et={},Tt=new gt(Et,"");function _t(t,e){this.a=t===At&&e||"",this.b=Ot}function kt(t){return t instanceof _t&&t.constructor===_t&&t.b===Ot?t.a:(D("expected object of type TrustedResourceUrl, got '"+t+"' of type "+h(t)),"type_error:TrustedResourceUrl")}function It(t,e){var n=bt(t);if(!St.test(n))throw Error("Invalid TrustedResourceUrl format: "+n);return t=n.replace(xt,(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 gt?bt(t):encodeURIComponent(String(t))})),new _t(At,t)}_t.prototype.ra=!0,_t.prototype.qa=function(){return this.a.toString()},_t.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var xt=/%{(\w+)}/g,St=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,Ot={},At={};function Nt(t,e){this.a=t===Dt&&e||"",this.b=jt}function Ct(t){return t instanceof Nt&&t.constructor===Nt&&t.b===jt?t.a:(D("expected object of type SafeUrl, got '"+t+"' of type "+h(t)),"type_error:SafeUrl")}Nt.prototype.ra=!0,Nt.prototype.qa=function(){return this.a.toString()},Nt.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var Pt=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;function Rt(t){return t instanceof Nt?t:(t="object"==typeof t&&t.ra?t.qa():String(t),Pt.test(t)||(t="about:invalid#zClosurez"),new Nt(Dt,t))}var jt={},Dt={};function Lt(){this.a="",this.b=Ut}function Mt(t){return t instanceof Lt&&t.constructor===Lt&&t.b===Ut?t.a:(D("expected object of type SafeHtml, got '"+t+"' of type "+h(t)),"type_error:SafeHtml")}Lt.prototype.ra=!0,Lt.prototype.qa=function(){return this.a.toString()},Lt.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var Ut={};function Ft(t){var e=new Lt;return e.a=t,e}Ft("<!DOCTYPE html>");var Vt=Ft("");function Bt(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 at.test(t)&&(-1!=t.indexOf("&")&&(t=t.replace(tt,"&amp;")),-1!=t.indexOf("<")&&(t=t.replace(et,"&lt;")),-1!=t.indexOf(">")&&(t=t.replace(nt,"&gt;")),-1!=t.indexOf('"')&&(t=t.replace(rt,"&quot;")),-1!=t.indexOf("'")&&(t=t.replace(it,"&#39;")),-1!=t.indexOf("\0")&&(t=t.replace(ot,"&#0;"))),t}function qt(t){return qt[" "](t),t}Ft("<br>"),qt[" "]=f;var Wt,Ht=ft("Opera"),Gt=ft("Trident")||ft("MSIE"),Kt=ft("Edge"),$t=Kt||Gt,Xt=ft("Gecko")&&!(st(J.toLowerCase(),"webkit")&&!ft("Edge"))&&!(ft("Trident")||ft("MSIE"))&&!ft("Edge"),Qt=st(J.toLowerCase(),"webkit")&&!ft("Edge");function Yt(){var t=u.document;return t?t.documentMode:void 0}t:{var Jt="",Zt=function(){var t=J;return Xt?/rv:([^\);]+)(\)|;)/.exec(t):Kt?/Edge\/([\d\.]+)/.exec(t):Gt?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(t):Qt?/WebKit\/(\S+)/.exec(t):Ht?/(?:Version)[ \/]?(\S+)/.exec(t):void 0}();if(Zt&&(Jt=Zt?Zt[1]:""),Gt){var te=Yt();if(null!=te&&te>parseFloat(Jt)){Wt=String(te);break t}}Wt=Jt}var ee,ne={};function re(t){return function(t,e){var n=ne;return Object.prototype.hasOwnProperty.call(n,t)?n[t]:n[t]=e(t)}(t,(function(){for(var e=0,n=Z(String(Wt)).split("."),r=Z(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=ut(0==a[1].length?0:parseInt(a[1],10),0==s[1].length?0:parseInt(s[1],10))||ut(0==a[2].length,0==s[2].length)||ut(a[2],s[2]),a=a[3],s=s[3]}while(0==e)}return 0<=e}))}ee=u.document&&Gt?Yt():void 0;try{new self.OffscreenCanvas(0,0).getContext("2d")}catch(oa){}var ie=!Gt||9<=Number(ee);function oe(t){var e=document;return"string"===typeof t?e.getElementById(t):t}function ae(t,e){ht(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 se,ue,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 le(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)||v(o)&&0<o.nodeType?r(o):q(he(o)?Y(o):o,r)}}function fe(t,e){return e=String(e),"application/xhtml+xml"===t.contentType&&(e=e.toLowerCase()),t.createElement(e)}function he(t){if(t&&"number"==typeof t.length){if(v(t))return"function"==typeof t.item||"string"==typeof t.item;if(d(t))return"function"==typeof t.item}return!1}
2function pe(t){u.setTimeout((function(){throw t}),0)}function de(){var t=u.MessageChannel;if("undefined"===typeof t&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!ft("Presto")&&(t=function(){var t=fe(document,"IFRAME");t.style.display="none",function(t){var e=new _t(At,bt(Tt));mt(t,"HTMLIFrameElement"),t.src=kt(e).toString()}(t),document.documentElement.appendChild(t);var e=t.contentWindow;(t=e.document).open(),t.write(Mt(Vt)),t.close();var n="callImmediate"+Math.random(),r="file:"==e.location.protocol?"*":e.location.protocol+"//"+e.location.host;t=E((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&&!ft("Trident")&&!ft("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){u.setTimeout(t,0)}}function ve(t,e){ue||function(){if(u.Promise&&u.Promise.resolve){var t=u.Promise.resolve(void 0);ue=function(){t.then(ge)}}else ue=function(){var t=ge;!d(u.setImmediate)||u.Window&&u.Window.prototype&&!ft("Edge")&&u.Window.prototype.setImmediate==u.setImmediate?(se||(se=de()),se(t)):u.setImmediate(t)}}(),ye||(ue(),ye=!0),me.add(t,e)}var ye=!1,me=new U;function ge(){for(var t;t=V();){try{t.a.call(t.b)}catch(e){pe(e)}M(F,t)}ye=!1}function be(t,e){if(this.a=we,this.i=void 0,this.f=this.b=this.c=null,this.g=this.h=!1,t!=f)try{var n=this;t.call(e,(function(t){Pe(n,Ee,t)}),(function(t){if(!(t instanceof Fe))try{if(t instanceof Error)throw t;throw Error("Promise rejected.")}catch(e){}Pe(n,Te,t)}))}catch(r){Pe(this,Te,r)}}var we=0,Ee=2,Te=3;function _e(){this.next=this.f=this.b=this.g=this.a=null,this.c=!1}_e.prototype.reset=function(){this.f=this.b=this.g=this.a=null,this.c=!1};var ke=new L((function(){return new _e}),(function(t){t.reset()}));function Ie(t,e,n){var r=ke.get();return r.g=t,r.b=e,r.f=n,r}function xe(t){if(t instanceof be)return t;var e=new be(f);return Pe(e,Ee,t),e}
2function Se(t){return new be((function(e,n){n(t)}))}function Oe(t,e,n){Re(t,e,n,null)||ve(T(e,t))}function Ae(t){return new be((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++)Oe(t[o],T(i,o,!0),T(i,o,!1));else e(r)}))}function Ne(t,e){t.b||t.a!=Ee&&t.a!=Te||je(t),t.f?t.f.next=e:t.b=e,t.f=e}function Ce(t,e,n,r){var i=Ie(null,null,null);return i.a=new be((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 Fe?o(e):t(i)}catch(a){o(a)}}:o})),i.a.c=t,Ne(t,i),i.a}function Pe(t,e,n){t.a==we&&(t===n&&(e=Te,n=new TypeError("Promise cannot resolve to itself")),t.a=1,Re(n,t.Yc,t.Zc,t)||(t.i=n,t.a=e,t.c=null,je(t),e!=Te||n instanceof Fe||function(t,e){t.g=!0,ve((function(){t.g&&Ue.call(null,e)}))}(t,n)))}function Re(t,e,n,r){if(t instanceof be)return Ne(t,Ie(e||f,n||null,r)),!0;if(P(t))return t.then(e,n,r),!0;if(v(t))try{var i=t.then;if(d(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 je(t){t.h||(t.h=!0,ve(t.ec,t))}function De(t){var e=null;return t.b&&(e=t.b,t.b=e.next,e.next=null),t.b||(t.f=null),e}function Le(t,e,n,r){if(n==Te&&e.b&&!e.c)for(;t&&t.g;t=t.c)t.g=!1;if(e.a)e.a.c=null,Me(e,n,r);else try{e.c?e.g.call(e.f):Me(e,n,r)}catch(i){Ue.call(null,i)}M(ke,e)}function Me(t,e,n){e==Ee?t.g.call(t.f,n):t.b&&t.b.call(t.f,n)}be.prototype.then=function(t,e,n){return Ce(this,d(t)?t:null,d(e)?e:null,n)},be.prototype.$goog_Thenable=!0,(e=be.prototype).ma=function(t,e){return(t=Ie(t,t,e)).c=!0,Ne(this,t),this},e.o=function(t,e){return Ce(this,null,t,e)},e.cancel=function(t){if(this.a==we){var e=new Fe(t);ve((function(){!function t(e,n){if(e.a==we)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==we&&1==i?t(r,n):(a?((i=a).next==r.f&&(r.f=i),i.next=i.next.next):De(r),Le(r,o,Te,n)))}e.c=null}else Pe(e,Te,n)}(this,e)}),this)}},e.Yc=function(t){this.a=we,Pe(this,Ee,t)},e.Zc=function(t){this.a=we,Pe(this,Te,t)},e.ec=function(){for(var t;t=De(this);)Le(this,t,this.a,this.i);this.h=!1};var Ue=pe;function Fe(t){R.call(this,t)}function Ve(){0!=Be&&(ze[y(this)]=this),this.wa=this.wa,this.na=this.na}k(Fe,R),Fe.prototype.name="cancel";var Be=0,ze={};function qe(t){if(!t.wa&&(t.wa=!0,t.Ba(),0!=Be)){var e=y(t);if(0!=Be&&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]}}Ve.prototype.wa=!1,Ve.prototype.Ba=function(){if(this.na)for(;this.na.length;)this.na.shift()()};var We=Object.freeze||function(t){return t},He=!Gt||9<=Number(ee),Ge=Gt&&!re("9"),Ke=function(){if(!u.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});try{u.addEventListener("test",f,e),u.removeEventListener("test",f,e)}catch(n){}return t}();function $e(t,e){this.type=t,this.b=this.target=e,this.defaultPrevented=!1}function Xe(t,e){if($e.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(Xt){t:{try{qt(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:Qe[t.pointerType]||"",this.a=t,t.defaultPrevented&&this.preventDefault()}}$e.prototype.preventDefault=function(){this.defaultPrevented=!0},k(Xe,$e);var Qe=We({2:"touch",3:"pen",4:"mouse"});Xe.prototype.preventDefault=function(){Xe.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){}},Xe.prototype.f=function(){return this.a};var Ye="closure_listenable_"+(1e6*Math.random()|0),Je=0;function Ze(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 tn(t){t.ua=!0,t.listener=null,t.proxy=null,t.src=null,t.Ta=null}function en(t){this.src=t,this.a={},this.b=0}function nn(t,e){var n=e.type;n in t.a&&$(t.a[n],e)&&(tn(e),0==t.a[n].length&&(delete t.a[n],t.b--))}function rn(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}en.prototype.add=function(t,e,n,r,i){var o=t.toString();(t=this.a[o])||(t=this.a[o]=[],this.b++);var a=rn(t,e,r,i);return-1<a?(e=t[a],n||(e.Na=!1)):((e=new Ze(e,this.src,o,!!r,i)).Na=n,t.pu
2sh(e)),e};var on="closure_lm_"+(1e6*Math.random()|0),an={};function sn(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++)sn(t,e[o],n,r,i);else n=gn(n),t&&t[Ye]?wn(t,e,n,v(r)?!!r.capture:!!r,i):un(t,e,n,!1,r,i)}function un(t,e,n,r,i,o){if(!e)throw Error("Invalid event type");var a=v(i)?!!i.capture:!!i,s=yn(t);if(s||(t[on]=s=new en(t)),!(n=s.add(e,n,r,a,o)).proxy){if(r=function(){var t=vn,e=He?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(hn(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=gn(n),t&&t[Ye]?En(t,e,n,v(r)?!!r.capture:!!r,i):un(t,e,n,!0,r,i)}function ln(t,e,n,r,i){if(Array.isArray(e))for(var o=0;o<e.length;o++)ln(t,e[o],n,r,i);else r=v(r)?!!r.capture:!!r,n=gn(n),t&&t[Ye]?(t=t.u,(e=String(e).toString())in t.a&&(-1<(n=rn(o=t.a[e],n,r,i))&&(tn(o[n]),Array.prototype.splice.call(o,n,1),0==o.length&&(delete t.a[e],t.b--)))):t&&(t=yn(t))&&(e=t.a[e.toString()],t=-1,e&&(t=rn(e,n,r,i)),(n=-1<t?e[t]:null)&&fn(n))}function fn(t){if("number"!==typeof t&&t&&!t.ua){var e=t.src;if(e&&e[Ye])nn(e.u,t);else{var n=t.type,r=t.proxy;e.removeEventListener?e.removeEventListener(n,r,t.capture):e.detachEvent?e.detachEvent(hn(n),r):e.addListener&&e.removeListener&&e.removeListener(r),(n=yn(e))?(nn(n,t),0==n.b&&(n.src=null,e[on]=null)):tn(t)}}}function hn(t){return t in an?an[t]:an[t]="on"+t}function pn(t,e,n,r){var i=!0;if((t=yn(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=dn(o,r),i=i&&!1!==o)}return i}function dn(t,e){var n=t.listener,r=t.Ta||t.src;return t.Na&&fn(t),n.call(r,e)}function vn(t,e){if(t.ua)return!0;if(!He){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}if(e=new Xe(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 dn(t,new Xe(e,this))}function yn(t){return(t=t[on])instanceof en?t:null}var mn="__closure_events_fn_"+(1e9*Math.random()>>>0);function gn(t){return d(t)?t:(t[mn]||(t[mn]=function(e){return t.handleEvent(e)}),t[mn])}function bn(){Ve.call(this),this.u=new en(this),this.Yb=this,this.eb=null}function wn(t,e,n,r,i){t.u.add(String(e),n,!1,r,i)}function En(t,e,n,r,i){t.u.add(String(e),n,!0,r,i)}function Tn(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&&nn(t.u,a),i=!1!==s.call(u,r)&&i}}return i&&!r.defaultPrevented}function _n(t,e,n){if(d(t))n&&(t=E(t,n));else{if(!t||"function"!=typeof t.handleEvent)throw Error("Invalid listener argument");t=E(t.handleEvent,t)}return 2147483647<Number(e)?-1:u.setTimeout(t,e||0)}function kn(t){var e=null;return new be((function(n,r){-1==(e=_n((function(){n(void 0)}),t))&&r(Error("Failed to schedule timer."))})).o((function(t){throw u.clearTimeout(e),t}))}function In(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 xn(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 Sn(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 Sn)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 On(t){if(t.c!=t.a.length){for(var e=0,n=0;e<t.a.length;){var r=t.a[e];An(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;)An(i,r=t.a[e])||(t.a[n++]=r,i[r]=1),e++;t.a.length=n}}function An(t,e){return Object.prototype.hasOwnProperty.call(t,e)}k(bn,Ve),bn.prototype[Ye]=!0,bn.prototype.addEventListener=function(t,e,n,r){sn(this,t,e,n,r)},bn.prototype.removeEventListener=function(t,e,n,r){ln(this,t,e,n,r)},bn.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 $e(t,n);else if(t instanceof $e)t.target=t.target||n;else{var i=t;yt(t=new $e(r,n),i)}if(i=!0,e)for(var o=e.length-1;0<=o;o--){var a=t.b=e[o];i=Tn(a,r,!0,t)&&i}if(i=Tn(a=t.b=n,r,!0,t)&&i,i=Tn(a,r,!1,t)&&i,e)for(o=0;o<e.length;o++)i=Tn(a=t.b=e[o],r,!1,t)&&i;return i},bn.prototype.Ba=function(){if(bn.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++)tn(n[r]);delete e.a[t],e.b--}}this.eb=null},(e=Sn.prototype).V=function(){On(this);for(var t=[],e=0;e<this.a.length;e++)t.push(this.b[this.a[e]]);return t},e.X=function(){return On(this),this.a.concat()},e.clear=function(){this.b={},this.c=this.a.length=0},e.get=function(t,e){return An(this.b,t)?this.b[t]:e},e.set=function(t,e){An(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 Nn=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/\\#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function Cn(t,e){var n;this.b=this.i=this.f="",this.l=null,this.g=this.c="",this.h=!1,t instanceof Cn?(this.h=void 0!==e?e:t.h,Pn(this,t.f),this.i=t.i,this.b=t.b,Rn(this,t.l),this.c=t.c,jn(this,Zn(t.a)),this.g=t.g):t&&(n=String(t).match(Nn))?(this.h=!!e,Pn(this,n[1]||"",!0),this.i=Fn(n[2]||""),this.b=Fn(n[3]||"",!0),Rn(this,n[4]),this.c=Fn(n[5]||"",!0),jn(this,n[6]||"",!0),this.g=Fn(n[7]||"")):(this.h=!!e,this.a=new Kn(null,this.h))}
2function Pn(t,e,n){t.f=n?Fn(e,!0):e,t.f&&(t.f=t.f.replace(/:$/,""))}function Rn(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 jn(t,e,n){e instanceof Kn?(t.a=e,function(t,e){e&&!t.f&&($n(t),t.c=null,t.a.forEach((function(t,e){var n=e.toLowerCase();e!=n&&(Qn(this,e),Jn(this,n,t))}),t)),t.f=e}(t.a,t.h)):(n||(e=Vn(e,Hn)),t.a=new Kn(e,t.h))}function Dn(t,e,n){t.a.set(e,n)}function Ln(t,e){return t.a.get(e)}function Mn(t){return t instanceof Cn?new Cn(t):new Cn(t,void 0)}function Un(t,e){var n=new Cn(null,void 0);return Pn(n,"https"),t&&(n.b=t),e&&(n.c=e),n}function Fn(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function Vn(t,e,n){return"string"===typeof t?(t=encodeURI(t).replace(e,Bn),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function Bn(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}Cn.prototype.toString=function(){var t=[],e=this.f;e&&t.push(Vn(e,zn,!0),":");var n=this.b;return(n||"file"==e)&&(t.push("//"),(e=this.i)&&t.push(Vn(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(Vn(n,"/"==n.charAt(0)?Wn:qn,!0))),(n=this.a.toString())&&t.push("?",n),(n=this.g)&&t.push("#",Vn(n,Gn)),t.join("")},Cn.prototype.resolve=function(t){var e=new Cn(this),n=!!t.f;n?Pn(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)Rn(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(st(i,"./")||st(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?jn(e,Zn(t.a)):n=!!t.g,n&&(e.g=t.g),e};var zn=/[#\/\?@]/g,qn=/[#\?:]/g,Wn=/[#\?]/g,Hn=/[#\?@]/g,Gn=/#/g;function Kn(t,e){this.b=this.a=null,this.c=t||null,this.f=!!e}function $n(t){t.a||(t.a=new Sn,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 Xn(t){var e=xn(t);if("undefined"==typeof e)throw Error("Keys are undefined");var n=new Kn(null,void 0);t=In(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 Qn(t,e){$n(t),e=tr(t,e),An(t.a.b,e)&&(t.c=null,t.b-=t.a.get(e).length,An((t=t.a).b,e)&&(delete t.b[e],t.c--,t.a.length>2*t.c&&On(t)))}function Yn(t,e){return $n(t),e=tr(t,e),An(t.a.b,e)}function Jn(t,e,n){Qn(t,e),0<n.length&&(t.c=null,t.a.set(tr(t,e),Y(n)),t.b+=n.length)}function Zn(t){var e=new Kn;return e.c=t.c,t.a&&(e.a=new Sn(t.a),e.b=t.b),e}function tr(t,e){return e=String(e),t.f&&(e=e.toLowerCase()),e}function er(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),or(i,r),r.push(":"),t(e,a,r),o=","));return void r.push("}")}n=n.valueOf()}switch(typeof n){case"string":or(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 nr,t,e),e.join("")}function nr(){}(e=Kn.prototype).add=function(t,e){$n(this),this.c=null,t=tr(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){$n(this),this.a.forEach((function(n,r){q(n,(function(n){t.call(e,n,r,this)}),this)}),this)},e.X=function(){$n(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){$n(this);var e=[];
2if("string"===typeof t)Yn(this,t)&&(e=Q(e,this.a.get(tr(this,t))));else{t=this.a.V();for(var n=0;n<t.length;n++)e=Q(e,t[n])}return e},e.set=function(t,e){return $n(this),this.c=null,Yn(this,t=tr(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 rr={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},ir=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;function or(t,e){e.push('"',t.replace(ir,(function(t){var e=rr[t];return e||(e="\\u"+(65536|t.charCodeAt(0)).toString(16).substr(1),rr[t]=e),e})),'"')}function ar(){var t=Ir();return Gt&&!!ee&&11==ee||/Edge\/\d+/.test(t)}function sr(){return u.window&&u.window.location.href||self&&self.location&&self.location.href||""}function ur(t,e){e=e||u.window;var n="about:blank";t&&(n=Ct(Rt(t))),e.location.href=n}function cr(t){return!!((t=(t||Ir()).toLowerCase()).match(/android/)||t.match(/webos/)||t.match(/iphone|ipad|ipod/)||t.match(/blackberry/)||t.match(/windows phone/)||t.match(/iemobile/))}function lr(t){t=t||u.window;try{t.close()}catch(e){}}function fr(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=Ir().toLowerCase(),r&&(e.target=r,st(n,"crios/")&&(e.target="_blank")),Tr(Ir())==wr&&(t=t||"http://localhost",e.scrollbars=!0),n=t||"",(t=e)||(t={}),r=window,e=n instanceof Nt?n:Rt("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((ft("iPhone")&&!ft("iPod")&&!ft("iPad")||ft("iPad")||ft("iPod"))&&r.navigator&&r.navigator.standalone&&n&&"_self"!=n?(mt(a=fe(document,"A"),"HTMLAnchorElement"),e instanceof Nt||e instanceof Nt||(e="object"==typeof e&&e.ra?e.qa():String(e),Pt.test(e)||(e="about:invalid#zClosurez"),e=new Nt(Dt,e)),a.href=Ct(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=Ct(e),a&&($t&&st(t,";")&&(t="'"+t.replace(/'/g,"%27")+"'"),a.opener=null,t=Ft('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+zt(t)+'">'),r=a.document)&&(r.write(Mt(t)),r.close())):(a=r.open(Ct(e),n,a))&&t.noopener&&(a.opener=null),a)try{a.focus()}catch(s){}return a}var hr=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,pr=/^[^@]+@[^@]+$/;function dr(){var t=null;return new be((function(e){"complete"==u.document.readyState?e():(t=function(){e()},cn(window,"load",t))})).o((function(e){throw ln(window,"load",t),e}))}function vr(t){return t=t||Ir(),!("file:"!==Nr()&&"ionic:"!==Nr()||!t.toLowerCase().match(/iphone|ipad|ipod|android/))}function yr(){var t=u.window;try{return!(!t||t==t.top)}catch(e){return!1}}function mr(){return"undefined"!==typeof u.WorkerGlobalScope&&"function"===typeof u.importScripts}function gr(){return r.a.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":r.a.INTERNAL.hasOwnProperty("node")?"Node":mr()?"Worker":"Browser"}function br(){var t=gr();return"ReactNative"===t||"Node"===t}var wr="Firefox",Er="Chrome";function Tr(t){var e=t.toLowerCase();return st(e,"opera/")||st(e,"opr/")||st(e,"opios/")?"Opera":st(e,"iemobile")?"IEMobile":st(e,"msie")||st(e,"trident/")?"IE":st(e,"edge/")?"Edge":st(e,"firefox/")?wr:st(e,"silk/")?"Silk":st(e,"blackberry")?"Blackberry":st(e,"webos")?"Webos":!st(e,"safari/")||st(e,"chrome/")||st(e,"crios/")||st(e,"android")?!st(e,"chrome/")&&!st(e,"crios/")||st(e,"edge/")?st(e,"android")?"Android":(t=t.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/))&&2==t.length?t[1]:"Other":Er:"Safari"}var _r={jd:"FirebaseCore-web",ld:"FirebaseUI-web"};function kr(t,e){e=e||[];var n,r=[],i={};for(n in _r)i[_r[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=gr())?r=Tr(i=Ir()):"Worker"===r&&(r=Tr(i=Ir())+"-"+r),r+"/JsCore/"+t+"/"+e.join(",")}function Ir(){return u.navigator&&u.navigator.userAgent||""}function xr(t,e){t=t.split("."),e=e||u;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 Sr(){try{var t=u.localStorage,e=Dr();if(t)return t.setItem(e,"1"),t.removeItem(e),!ar()||!!u.indexedDB}catch(n){return mr()&&!!u.indexedDB}return!1}function Or(){return(Ar()||"chrome-extension:"===Nr()||vr())&&!br()&&Sr()&&!mr()}function Ar(){return"http:"===Nr()||"https:"===Nr()}function Nr(){return u.location&&u.location.protocol||null}function Cr(t){return!cr(t=t||Ir())&&Tr(t)!=wr}function Pr(t){return"undefined"===typeof t?null:er(t)}function Rr(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 jr(t){if(null!==t)return JSON.parse(t)}function Dr(t){return t||Math.floor(1e9*Math.random()).toString()}function Lr(t){return"Safari"!=Tr(t=t||Ir())&&!t.toLowerCase().match(/iphone|ipad|ipod/)}function Mr(){var t=u.___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=Ir(),e=gr(),this.b=cr(t)||"ReactNative"===e}function Fr(){var t=u.document;return!t||"undefined"===typeof t.visibilityState||"visible"==t.visibilityState}function Vr(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 Br(){return!(!xr("fireauth.oauthhelper",u)&&!xr("fireauth.iframe",u))}Ur.prototype.get=function(){var t=u.navigator;return!t||"boolean"!==typeof t.onLine||!Ar()&&"chrome-extension:"!==Nr()&&"undefined"===typeof t.connection||t.onLine?this.b?this.c:this.a:Math.min(5e3,this.a)};var zr,qr={};function Wr(t){qr[t]||(qr[t]=!0,"undefined"!==typeof console&&"function"===typeof console.warn&&console.warn(t))}try{var Hr={};Object.defineProperty(Hr,"abcd",{configurable:!0,enumerable:!0,value:1}),Object.defineProperty(Hr,"abcd",{configurable:!0,enumerable:!0,value:2}),zr=2==Hr.abcd}catch(oa){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 $r(t){var e={};return Kr(e,t),e}function Xr(t){var e=t;if("object"==typeof t&&null!=t)for(var n in e="length"in t?[]:{},t)Gr(e,n,Xr(t[n]));return e}function Qr(t){var e=t&&(t[ei]?"phone":null);if(!(e&&t&&t[ti]))throw new I("internal-error","Internal assert: invalid MultiFactorInfo object");Gr(this,"uid",t[ti]),Gr(this,"displayName",t[Jr]||null);var n=null;t[Zr]&&(n=new Date(t[Zr]).toUTCString()),Gr(this,"enrollmentTime",n),Gr(this,"factorId",e)}function Yr(t){try{var e=new ni(t)}catch(n){e=null}return e}Qr.prototype.v=function(){return{uid:this.uid,displayName:this.displayName,factorId:this.factorId,enrollmentTime:this.enrollmentTime}};var Jr="displayName",Zr="enrolledAt",ti="mfaEnrollmentId",ei="phoneInfo";function ni(t){Qr.call(this,t),Gr(this,"phoneNumber",t[ei])}function ri(t){var e={},n=t[si],r=t[ci],i=t[li];if(t=Yr(t[ui]),!i||i!=oi&&i!=ai&&!n||i==ai&&!r||i==ii&&!t)throw Error("Invalid checkActionCode response!");i==ai?(e[hi]=n||null,e[di]=n||null,e[fi]=r):(e[hi]=r||null,e[di]=r||null,e[fi]=n||null),e[pi]=t||null,Gr(this,yi,i),Gr(this,vi,Xr(e))}k(ni,Qr),ni.prototype.v=function(){var t=ni.Za.v.call(this);return t.phoneNumber=this.phoneNumber,t};var ii="REVERT_SECOND_FACTOR_ADDITION",oi="EMAIL_SIGNIN",ai="VERIFY_AND_CHANGE_EMAIL",si="email",ui="mfaInfo",ci="newEmail",li="requestType",fi="email",hi="fromEmail",pi="multiFactorInfo",di="previousEmail",vi="data",yi="operation";function mi(t){var e=Ln(t=Mn(t),gi)||null,n=Ln(t,bi)||null,r=Ln(t,Ti)||null;if(r=r&&ki[r]||null,!e||!n||!r)throw new I("argument-error",gi+", "+bi+"and "+Ti+" are required in a valid action code URL.");Kr(this,{apiKey:e,operation:r,code:n,continueUrl:Ln(t,wi)||null,languageCode:Ln(t,Ei)||null,tenantId:Ln(t,_i)||null})}var gi="apiKey",bi="oobCode",wi="continueUrl",Ei="languageCode",Ti="mode",_i="tenantId",ki={recoverEmail:"RECOVER_EMAIL",resetPassword:"PASSWORD_RESET",revertSecondFactorAddition:ii,signIn:oi,verifyAndChangeEmail:ai,verifyEmail:"VERIFY_EMAIL"};function Ii(t){try{return new mi(t)}catch(e){return null}}function xi(t){var e=t[Ci];if("undefined"===typeof e)throw new I("missing-continue-uri");if("string"!==typeof e||"string"===typeof e&&!e.length)throw new I("invalid-continue-uri");this.h=e,this.b=this.a=null,this.g=!1;var n=t[Si];if(n&&"object"===typeof n){e=n[ji];var r=n[Pi];if(n=n[Ri],"string"===typeof e&&e.length){if(this.a=e,"undefined"!==typeof r&&"boolean"!==typeof r)throw new I("argument-error",Pi+" property must be a boolean when specified.");if(this.g=!!r,"undefined"!==typeof n&&("string"!==typeof n||"string"===typeof n&&!n.length))throw new I("argument-error",Ri+" property must be a non empty string when specified.");this.b=n||null}else{if("undefined"!==typeof e)throw new I("argument-error",ji+" property must be a non empty string when specified.");if("undefined"!==typeof r||"undefined"!==typeof n)throw new I("missing-android-pkg-name")}}else if("undefined"!==typeof n)throw new I("argument-error",Si+" property must be a non null object when specified.");if(this.f=null,(e=t[Ni])&&"object"===typeof e){if("string"===typeof(e=e[Di])&&e.length)this.f=e;else if("undefined"!==typeof e)throw new I("argument-error",Di+" property must be a non empty string when specified.")}else if("undefined"!==typeof e)throw new I("argument-error",Ni+" property must be a non null object when specified.");if("undefined"!==typeof(e=t[Ai])&&"boolean"!==typeof e)throw new I("argument-error",Ai+" property must be a boolean when specified.");if(this.c=!!e,"undefined"!==typeof(t=t[Oi])&&("string"!==typeof t||"string"===typeof t&&!t.length))throw new I("argument-error",Oi+" property must be a non empty string when specified.");this.i=t||null}var Si="android",Oi="dynamicLinkDomain",Ai="handleCodeInApp",Ni="iOS",Ci="url",Pi="installApp",Ri="minimumVersion",ji="packageName",Di="bundleId";function Li(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 Mi=null;function Ui(t){var e="";return function(t,e){function n(e){for(;r<t.length;){var n=t.charAt(r++),i=Mi[n];if(null!=i)return i;if(!/^[\s\xa0]*$/.test(n))throw Error("Unknown base64 encoding at char: "+n)}return e}!function(){if(!Mi){Mi={};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===Mi[o]&&(Mi[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 Fi(t){var e=Bi(t);
2if(!(e&&e.sub&&e.iss&&e.aud&&e.exp))throw Error("Invalid JWT");this.g=t,this.c=e.exp,this.h=e.sub,_(),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 Vi(t){try{return new Fi(t)}catch(e){return null}}function Bi(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}Fi.prototype.S=function(){return this.f},Fi.prototype.i=function(){return this.b},Fi.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(" "),qi=["client_id","response_type","scope","redirect_uri","state"],Wi={kd:{Ha:"locale",ta:700,sa:600,ea:"facebook.com",Va:qi},md:{Ha:null,ta:500,sa:750,ea:"github.com",Va:qi},nd:{Ha:"hl",ta:515,sa:680,ea:"google.com",Va:qi},td:{Ha:"lang",ta:485,sa:705,ea:"twitter.com",Va:zi},gd:{Ha:"locale",ta:640,sa:600,ea:"apple.com",Va:[]}};function Hi(t){for(var e in Wi)if(Wi[e].ea==t)return Wi[e];return null}function Gi(t){var e={};e["facebook.com"]=Yi,e["google.com"]=Zi,e["github.com"]=Ji,e["twitter.com"]=to;var n=t&&t[$i];try{if(n)return e[n]?new e[n](t):new Qi(t);if("undefined"!==typeof t[Ki])return new Xi(t)}catch(r){}return null}var Ki="idToken",$i="providerId";function Xi(t){var e=t[$i];if(!e&&t[Ki]){var n=Vi(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 Qi(t){Xi.call(this,t),Gr(this,"profile",Xr((t=jr(t.rawUserInfo||"{}"))||{}))}function Yi(t){if(Qi.call(this,t),"facebook.com"!=this.providerId)throw Error("Invalid provider ID!")}function Ji(t){if(Qi.call(this,t),"github.com"!=this.providerId)throw Error("Invalid provider ID!");Gr(this,"username",this.profile&&this.profile.login||null)}function Zi(t){if(Qi.call(this,t),"google.com"!=this.providerId)throw Error("Invalid provider ID!")}function to(t){if(Qi.call(this,t),"twitter.com"!=this.providerId)throw Error("Invalid provider ID!");Gr(this,"username",t.screenName||null)}function eo(t){var e=Mn(t),n=Ln(e,"link"),r=Ln(Mn(n),"link");return e=Ln(e,"deep_link_id"),Ln(Mn(e),"link")||e||r||n||t}function no(t,e){if(!t&&!e)throw new I("internal-error","Internal assert: no raw session string available");if(t&&e)throw new I("internal-error","Internal assert: unable to determine the session type");this.a=t||null,this.b=e||null,this.type=this.a?ro:io}k(Qi,Xi),k(Yi,Qi),k(Ji,Qi),k(Zi,Qi),k(to,Qi);var ro="enroll",io="signin";function oo(){}function ao(t,e){return t.then((function(t){if(t[Xa]){var n=Vi(t[Xa]);if(!n||e!=n.h)throw new I("user-mismatch");return t}throw new I("user-mismatch")})).o((function(t){throw t&&t.code&&t.code==O+"user-not-found"?new I("user-mismatch"):t}))}function so(t,e){if(!e)throw new I("internal-error","failed to construct a credential");this.a=e,Gr(this,"providerId",t),Gr(this,"signInMethod",t)}function uo(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 so(t.providerId,t.pendingToken)}catch(e){}return null}function lo(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&&(this.a=e.pendingToken);else{if(!e.oauthToken||!e.oauthTokenSecret)throw new I("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 fo(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:Xn(e).toString(),requestUri:"http://localhost"},t.a&&(delete e.postBody,e.pendingToken=t.a),e}function ho(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 lo(t.providerId,e,t.signInMethod)}catch(n){}}return null}function po(t,e){this.Oc=e||[],Kr(this,{providerId:t,isOAuthProvider:!0}),this.Fb={},this.lb=(Hi(t)||{}).Ha||null,this.kb=null}function vo(t){if("string"!==typeof t||0!=t.indexOf("saml."))throw new I("argument-error",'SAML provider IDs must be prefixed with "saml."');po.call(this,t,[])}function yo(t){po.call(this,t,qi),this.a=[]}function mo(){yo.call(this,"facebook.com")}function go(t){if(!t)throw new I("argument-error","credential failed: expected 1 argument (the OAuth access token).");var e=t;return v(t)&&(e=t.accessToken),(new mo).credential({accessToken:e})}function bo(){yo.call(this,"github.com")}function wo(t){if(!t)throw new I("argument-error","credential failed: expected 1 argument (the OAuth access token).");var e=t;return v(t)&&(e=t.accessToken),(new bo).credential({accessToken:e})}function Eo(){yo.call(this,"google.com"),this.Aa("profile")}function To(t,e){var n=t;return v(t)&&(n=t.idToken,e=t.accessToken),(new Eo).credential({idToken:n,accessToken:e})}function _o(){po.call(this,"twitter.com",zi)}function ko(t,e){var n=t;if(v(n)||(n={oauthToken:t,oauthTokenSecret:e}),!n.oauthToken||!n.oauthTokenSecret)throw new I("argument-error","credential failed: expected 2 arguments (the OAuth access token and secret).");return new lo("twitter.com",n,"twitter.com")}function Io(t,e,n){this.a=t,this.f=e,Gr(this,"providerId","password"),Gr(this,"signInMethod",n===So.EMAIL_LINK_SIGN_IN_METHOD?So.EMAIL_LINK_SIGN_IN_METHOD:So.EMAIL_PASSWORD_SIGN_IN_METHOD)}function xo(t){return t&&t.email&&t.password?new Io(t.email,t.password,t.signInMethod):null}function So(){Kr(this,{providerId:"password",isOAuthProvider:!1})}function Oo(t,e){if(!(e=Ao(e)))throw new I("argument-error","Invalid email link!");return new Io(t,e.code,So.EMAIL_LINK_SIGN_IN_METHOD)}function Ao(t){return(t=Ii(t=eo(t)))&&t.operation===oi?t:null}function No(t){if(!(t.bb&&t.ab||t.Ja&&t.da))throw new I("internal-error");this.a=t,Gr(this,"providerId","phone"),this.ea="phone",Gr(this,"signInMethod","phone")}function Co(t){if(t&&"phone"===t.providerId&&(t.verificationId&&t.verificationCode||t.temporaryProof&&t.phoneNumber)){var e={};return q(["verificationId","verificationCode","temporaryProof","phoneNumber"],(function(n){t[n]&&(e[n]=t[n])})),new No(e)}return null}function Po(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 Ro(t){try{this.a=t||r.a.auth()}catch(e){throw new I("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 jo(t,e){if(!t)throw new I("missing-verification-id");if(!e)throw new I("missing-verification-code");return new No({bb:t,ab:e})}function Do(t){if(t.temporaryProof&&t.phoneNumber)return new No({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 To(o,n);case"facebook.com":return go(n);case"github.com":return wo(n);case"twitter.com":return ko(n,r);default:return n||r||o||a?a?0==e.indexOf("saml.")?new so(e,a):new lo(e,{pendingToken:a,idToken:t.oauthIdToken,accessToken:t.oauthAccessToken},e):new yo(e).credential({idToken:o,accessToken:n,rawNonce:i}):null}}catch(s){return null}}function Lo(t){if(!t.isOAuthProvider)throw new I("invalid-oauth-provider")}function Mo(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 I("invalid-auth-event");
2if(this.g&&this.a)throw new I("invalid-auth-event");if(this.g&&!this.f)throw new I("invalid-auth-event")}function Uo(t){return(t=t||{}).type?new Mo(t.type,t.eventId,t.urlResponse,t.sessionId,t.error&&x(t.error),t.postBody,t.tenantId):null}function Fo(){this.b=null,this.a=[]}no.prototype.Fa=function(){return this.a?xe(this.a):xe(this.b)},no.prototype.v=function(){return this.type==ro?{multiFactorSession:{idToken:this.a}}:{multiFactorSession:{pendingCredential:this.b}}},oo.prototype.ia=function(){},oo.prototype.b=function(){},oo.prototype.c=function(){},oo.prototype.v=function(){},so.prototype.ia=function(t){return vs(t,uo(this))},so.prototype.b=function(t,e){var n=uo(this);return n.idToken=e,ys(t,n)},so.prototype.c=function(t,e){return ao(ms(t,uo(this)),e)},so.prototype.v=function(){return{providerId:this.providerId,signInMethod:this.signInMethod,pendingToken:this.a}},lo.prototype.ia=function(t){return vs(t,fo(this))},lo.prototype.b=function(t,e){var n=fo(this);return n.idToken=e,ys(t,n)},lo.prototype.c=function(t,e){return ao(ms(t,fo(this)),e)},lo.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},po.prototype.Ia=function(t){return this.Fb=dt(t),this},k(vo,po),k(yo,po),yo.prototype.Aa=function(t){return K(this.a,t)||this.a.push(t),this},yo.prototype.Nb=function(){return Y(this.a)},yo.prototype.credential=function(t,e){var n;if(!(n=v(t)?{idToken:t.idToken||null,accessToken:t.accessToken||null,nonce:t.rawNonce||null}:{idToken:t||null,accessToken:e||null}).idToken&&!n.accessToken)throw new I("argument-error","credential failed: must provide the ID token and/or the access token.");return new lo(this.providerId,n,this.providerId)},k(mo,yo),Gr(mo,"PROVIDER_ID","facebook.com"),Gr(mo,"FACEBOOK_SIGN_IN_METHOD","facebook.com"),k(bo,yo),Gr(bo,"PROVIDER_ID","github.com"),Gr(bo,"GITHUB_SIGN_IN_METHOD","github.com"),k(Eo,yo),Gr(Eo,"PROVIDER_ID","google.com"),Gr(Eo,"GOOGLE_SIGN_IN_METHOD","google.com"),k(_o,po),Gr(_o,"PROVIDER_ID","twitter.com"),Gr(_o,"TWITTER_SIGN_IN_METHOD","twitter.com"),Io.prototype.ia=function(t){return this.signInMethod==So.EMAIL_LINK_SIGN_IN_METHOD?Js(t,Is,{email:this.a,oobCode:this.f}):Js(t,Ks,{email:this.a,password:this.f})},Io.prototype.b=function(t,e){return this.signInMethod==So.EMAIL_LINK_SIGN_IN_METHOD?Js(t,xs,{idToken:e,email:this.a,oobCode:this.f}):Js(t,Fs,{idToken:e,email:this.a,password:this.f})},Io.prototype.c=function(t,e){return ao(this.ia(t),e)},Io.prototype.v=function(){return{email:this.a,password:this.f,signInMethod:this.signInMethod}},Kr(So,{PROVIDER_ID:"password"}),Kr(So,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"}),Kr(So,{EMAIL_PASSWORD_SIGN_IN_METHOD:"password"}),No.prototype.ia=function(t){return t.cb(Po(this))},No.prototype.b=function(t,e){var n=Po(this);return n.idToken=e,Js(t,Xs,n)},No.prototype.c=function(t,e){var n=Po(this);return n.operation="REAUTH",ao(t=Js(t,Qs,n),e)},No.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},Ro.prototype.cb=function(t,e){var n=this.a.b;return xe(e.verify()).then((function(r){if("string"!==typeof r)throw new I("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=v(t)?t.session:null,o=v(t)?t.phoneNumber:t;return(i&&i.type==ro?i.Fa().then((function(t){return function(t,e){return Js(t,Bs,e).then((function(t){return t.phoneSessionInfo.sessionInfo}))}(n,{idToken:t,phoneEnrollmentInfo:{phoneNumber:o,recaptchaToken:r}})})):i&&i.type==io?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,Ms,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 I("argument-error",'Only firebase.auth.ApplicationVerifiers with type="recaptcha" are currently supported.')}}))},Kr(Ro,{PROVIDER_ID:"phone"}),Kr(Ro,{PHONE_SIGN_IN_METHOD:"phone"}),Mo.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("-")},Mo.prototype.S=function(){return this.h},Mo.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 Vo,Bo=null;function zo(t){var e="unauthorized-domain",n=void 0,r=Mn(t);t=r.b,"chrome-extension"==(r=r.f)?n=Bt("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=Bt("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",I.call(this,e,n)}function qo(t,e,n){I.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 Wo(t){if(t.code){var e=t.code||"";0==e.indexOf(O)&&(e=e.substring(O.length));var n={credential:Do(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 I(e,t.message||void 0);return new qo(e,n,t.message)}return null}function Ho(){}function Go(t){return t.c||(t.c=t.b())}function Ko(){}function $o(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 Xo(){}function Qo(){this.a=new XDomainRequest,this.readyState=0,this.onreadystatechange=null,this.responseType=this.responseText=this.response="",this.status=-1,this.statusText="",this.a.onload=E(this.oc,this),this.a.onerror=E(this.Pb,this),this.a.onprogress=E(this.pc,this),this.a.ontimeout=E(this.tc,this)}function Yo(t,e){t.readyState=e,t.onreadystatechange&&t.onreadystatechange()}function Jo(t,e,n){this.reset(t,e,n,void 0,void 0)}k(zo,I),k(qo,I),qo.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&&yt(t,e),t},qo.prototype.toJSON=function(){return this.v()},Ho.prototype.c=null,k(Ko,Ho),Ko.prototype.a=function(){var t=$o(this);return t?new ActiveXObject(t):new XMLHttpRequest},Ko.prototype.b=function(){var t={};return $o(this)&&(t[0]=!0,t[1]=!0),t},Vo=new Ko,k(Xo,Ho),Xo.prototype.a=function(){var t=new XMLHttpRequest;if("withCredentials"in t)return t;if("undefined"!=typeof XDomainRequest)return new Qo;throw Error("Unsupported browser")},Xo.prototype.b=function(){return{}},(e=Qo.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,Yo(this,4)},e.Pb=function(){this.status=500,this.response=this.responseText="",Yo(this,4)},e.tc=function(){this.Pb()},e.pc=function(){this.status=200,Yo(this,1)},e.getAllResponseHeaders=function(){return"content-type: "+this.a.contentType},Jo.prototype.a=null;function Zo(t){this.f=t,this.b=this.c=this.a=null}function ta(t,e){this.name=t,this.value=e}Jo.prototype.reset=function(t,e,n,r,i){"number"==typeof i||0,r||_(),delete this.a},ta.prototype.toString=function(){return this.name};var ea=new ta("SEVERE",1e3),na=new ta("WARNING",900),ra=new ta("CONFIG",700),ia=new ta("FINE",500);Zo.prototype.log=function(t,e,n){if(t.value>=function t(e){return e.c?e.c:e.a?t(e.a):(D("Root logger has no level set."),null)}(this).value)for(d(e)&&(e=e()),t=new Jo(t,String(e),this.f),n&&(t.a=n),n=this;n;)n=n.a};var oa,aa={},sa=null;function ua(t){var e;if(sa||(sa=new Zo(""),aa[""]=sa,sa.c=ra),!(e=aa[t])){e=new Zo(t);var n=t.lastIndexOf("."),r=t.substr(n+1);(n=ua(t.substr(0,n))).b||(n.b={}),n.b[r]=e,e.a=n,aa[t]=e}return e}function ca(t,e){t&&t.log(ia,e,void 0)}function la(t){this.f=t}function fa(t){bn.call(this),this.s=t,this.readyState=ha,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=ua("goog.net.FetchXmlHttp"),this.l=this.c=this.f=null}k(la,Ho),la.prototype.a=function(){return new fa(this.f)},la.prototype.b=(oa={},function(){return oa}),k(fa,bn);var ha=0;function pa(t){t.c.read().then(t.nc.bind(t)).catch(t.Sa.bind(t))}function da(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,va(t)}function va(t){t.onreadystatechange&&t.onreadystatechange.call(t)}function ya(t){bn.call(this),this.headers=new Sn,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=ma,this.w=this.R=!1}(e=fa.prototype).open=function(t,e){if(this.readyState!=ha)throw this.abort(),Error("Error reopening a connection");this.m=t,this.g=e,this.readyState=1,va(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,da(this,!1)),this.readyState=ha},e.sc=function(t){this.a&&(this.f=t,this.b||(this.b=t.headers,this.readyState=2,va(this)),this.a&&(this.readyState=3,va(this),this.a&&("arraybuffer"===this.responseType?t.arrayBuffer().then(this.qc.bind(this),this.Sa.bind(this)):"undefined"!==typeof u.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?da(this,!0):va(this),3==this.readyState&&pa(this)}},e.rc=function(t){this.a&&(this.response=this.responseText=t,da(this,!0))},e.qc=function(t){this.a&&(this.response=t,da(this,!0))},e.Sa=function(t){var e=this.h;e&&e.log(na,"Failed to fetch url "+this.g,t instanceof Error?t:Error(t)),this.a&&da(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(na,"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(na,"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")},k(ya,bn);var ma="";ya.prototype.b=ua("goog.net.XhrIo");var ga=/^https?$/i,ba=["POST","PUT"];function wa(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():Vo.a(),t.B=t.D?Go(t.D):Go(Vo),t.a.onreadystatechange=E(t.Sb,t);try{ca(t.b,Aa(t,"Opening Xhr")),t.O=!0,t.a.open(n,String(e),!0),t.O=!1}catch(a){return ca(t.b,Aa(t,"Error opening Xhr: "+a.message)),void Ta(t,a)}e=r||"";var o=new Sn(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)q(t,e,void 0);else for(var n=xn(t),r=In(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=Ea,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=u.FormData&&e instanceof u.FormData,!K(ba,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{xa(t),0<t.g&&(t.w=function(t){return Gt&&re(9)&&"number"===typeof t.timeout&&void 0!==t.ontimeout}(t.a),ca(t.b,Aa(t,"Will abort after "+t.g+"ms if incomplete, xhr2 "+t.w)),t.w?(t.a.timeout=t.g,t.a.ontimeout=E(t.Ka,t)):t.s=_n(t.Ka,t.g,t)),ca(t.b,Aa(t,"Sending request")),t.i=!0,t.a.send(e),t.i=!1}catch(a){ca(t.b,Aa(t,"Send error: "+a.message)),Ta(t,a)}}function Ea(t){return"content-type"==t.toLowerCase()}function Ta(t,e){t.c=!1,t.a&&(t.f=!0,t.a.abort(),t.f=!1),t.h=e,_a(t),Ia(t)}function _a(t){t.N||(t.N=!0,t.dispatchEvent("complete"),t.dispatchEvent("error"))}function ka(t){if(t.c&&"undefined"!=typeof s)if(t.B[1]&&4==Sa(t)&&2==Oa(t))ca(t.b,Aa(t,"Local request error detected and ignored"));else if(t.i&&4==Sa(t))_n(t.Sb,0,t);else if(t.dispatchEvent("readystatechange"),4==Sa(t)){ca(t.b,Aa(t,"Request complete")),t.c=!1;try{var e,n=Oa(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(Nn)[1]||null;if(!o&&u.self&&u.self.location){var a=u.self.location.protocol;o=a.substr(0,a.length-1)}i=!ga.test(o?o.toLowerCase():"")}e=i}if(e)t.dispatchEvent("complete"),t.dispatchEvent("success");else{try{var c=2<Sa(t)?t.a.statusText:""}catch(l){ca(t.b,"Can not get status: "+l.message),c=""}t.h=c+" ["+Oa(t)+"]",_a(t)}}finally{Ia(t)}}}function Ia(t,e){if(t.a){xa(t);var n=t.a,r=t.B[0]?f:null;
2t.a=null,t.B=null,e||t.dispatchEvent("ready");try{n.onreadystatechange=r}catch(i){(t=t.b)&&t.log(ea,"Problem encountered resetting onreadystatechange: "+i.message,void 0)}}}function xa(t){t.a&&t.w&&(t.a.ontimeout=null),t.s&&(u.clearTimeout(t.s),t.s=null)}function Sa(t){return t.a?t.a.readyState:0}function Oa(t){try{return 2<Sa(t)?t.a.status:-1}catch(e){return-1}}function Aa(t,e){return e+" ["+t.P+" "+t.l+" "+Oa(t)+"]"}function Na(t){var e=Ba;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 Ca(t,e,n){t.a=!0,t.c=n,t.f=!e,Da(t)}function Pa(t){if(t.a){if(!t.u)throw new La(t);t.u=!1}}function Ra(t,e,n,r){t.g.push([e,n,r]),t.a&&Da(t)}function ja(t){return G(t.g,(function(t){return d(t[1])}))}function Da(t){if(t.h&&t.a&&ja(t)){var e=t.h,n=Fa[e];n&&(u.clearTimeout(n.a),delete Fa[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),(P(e)||"function"===typeof u.Promise&&e instanceof u.Promise)&&(r=!0,t.i=!0)}catch(c){e=c,t.f=!0,ja(t)||(n=!0)}}t.c=e,r&&(s=E(t.m,t,!0),r=E(t.m,t,!1),e instanceof Na?(Ra(e,s,r),e.B=!0):e.then(s,r)),n&&(e=new Ua(e),Fa[e.a]=e,t.h=e.a)}function La(){R.call(this)}function Ma(){R.call(this)}function Ua(t){this.a=u.setTimeout(E(this.c,this),0),this.b=t}(e=ya.prototype).Ka=function(){"undefined"!=typeof s&&this.a&&(this.h="Timed out after "+this.g+"ms, aborting",ca(this.b,Aa(this,this.h)),this.dispatchEvent("timeout"),this.abort(8))},e.abort=function(){this.a&&this.c&&(ca(this.b,Aa(this,"Aborting")),this.c=!1,this.f=!0,this.a.abort(),this.f=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Ia(this))},e.Ba=function(){this.a&&(this.c&&(this.c=!1,this.f=!0,this.a.abort(),this.f=!1),Ia(this,!0)),ya.Za.Ba.call(this)},e.Sb=function(){this.wa||(this.O||this.i||this.f?ka(this):this.Hc())},e.Hc=function(){ka(this)},e.getResponse=function(){try{if(!this.a)return null;if("response"in this.a)return this.a.response;switch(this.m){case ma: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(ea,"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}},Na.prototype.cancel=function(t){if(this.a)this.c instanceof Na&&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 Ma(this),Pa(this),Ca(this,!1,t))}},Na.prototype.m=function(t,e){this.i=!1,Ca(this,t,e)},Na.prototype.then=function(t,e,n){var r,i,o=new be((function(t,e){r=t,i=e}));return Ra(this,r,(function(t){t instanceof Ma?o.cancel():i(t)})),o.then(t,e,n)},Na.prototype.$goog_Thenable=!0,k(La,R),La.prototype.message="Deferred has already fired",La.prototype.name="AlreadyCalledError",k(Ma,R),Ma.prototype.message="Deferred was canceled",Ma.prototype.name="CanceledError",Ua.prototype.c=function(){throw delete Fa[this.a],this.b};var Fa={};function Va(t){var e={},n=e.document||document,r=kt(t).toString(),i=fe(document,"SCRIPT"),o={Tb:i,Ka:void 0},a=new Na(o),s=null,f=null!=e.timeout?e.timeout:5e3;return 0<f&&(s=window.setTimeout((function(){za(i,!0);var t=new Ha(Wa,"Timeout reached for loading script "+r);Pa(a),Ca(a,!1,t)}),f),o.Ka=s),i.onload=i.onreadystatechange=function(){i.readyState&&"loaded"!=i.readyState&&"complete"!=i.readyState||(za(i,e.ud||!1,s),Pa(a),Ca(a,!0,null))},i.onerror=function(){za(i,!0,s);var t=new Ha(qa,"Error while loading script "+r);Pa(a),Ca(a,!1,t)},yt(o=e.attributes||{},{type:"text/javascript",charset:"UTF-8"}),ae(i,o),function(t,e){mt(t,"HTMLScriptElement"),t.src=kt(e),null===l&&(l=(e=(e=u.document).querySelector&&e.querySelector("script[nonce]"))&&(e=e.nonce||e.getAttribute("nonce"))&&c.test(e)?e:""),(e=l)&&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 Ba(){if(this&&this.Tb){var t=this.Tb;
2t&&"SCRIPT"==t.tagName&&za(t,!0,this.Ka)}}function za(t,e,n){null!=n&&u.clearTimeout(n),t.onload=f,t.onerror=f,t.onreadystatechange=f,e&&window.setTimeout((function(){t&&t.parentNode&&t.parentNode.removeChild(t)}),0)}var qa=0,Wa=1;function Ha(t,e){var n="Jsloader error (code #"+t+")";e&&(n+=": "+e),R.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||Qa,this.g=dt(t.secureTokenHeaders||Ya),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=dt(t.firebaseHeaders||Za),n&&(this.a["X-Client-Version"]=n,this.g["X-Client-Version"]=n),n="Node"==gr(),!(n=u.XMLHttpRequest||n&&r.a.INTERNAL.node&&r.a.INTERNAL.node.XMLHttpRequest)&&!mr())throw new I("internal-error","The XMLHttpRequest compatibility library was not found.");this.f=void 0,mr()?this.f=new la(self):br()?this.f=new Ga(n):this.f=new Xo,this.b=null}k(Ha,R),k(Ga,Ho),Ga.prototype.a=function(){return new this.f},Ga.prototype.b=function(){return{}};var $a,Xa="idToken",Qa=new Ur(3e4,6e4),Ya={"Content-Type":"application/x-www-form-urlencoded"},Ja=new Ur(3e4,6e4),Za={"Content-Type":"application/json"};function ts(t,e){e?t.a["X-Firebase-Locale"]=e:delete t.a["X-Firebase-Locale"]}function es(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 ns(t,e,n,r,i,o,a){(function(){var t=Ir();return!((t=Tr(t)!=Er?null:(t=t.match(/\sChrome\/(\d+)/i))&&2==t.length?parseInt(t[1],10):null)&&30>t)&&(!Gt||!ee||9<ee)})()||mr()?t=E(t.w,t):($a||($a=new be((function(t,e){!function(t,e){if(((window.gapi||{}).client||{}).request)t();else{u[is]=function(){((window.gapi||{}).client||{}).request?t():e(Error("CORS_UNSUPPORTED"))},function(t,e){Ra(t,null,e,void 0)}(Va(It(rs,{onload:is})),(function(){e(Error("CORS_UNSUPPORTED"))}))}}(t,e)}))),t=E(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(mr()&&("undefined"===typeof u.fetch||"undefined"===typeof u.Headers||"undefined"===typeof u.Request))throw new I("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 ya(this.f);if(o){a.g=Math.max(0,o);var s=setTimeout((function(){a.dispatchEvent("timeout")}),o)}wn(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)})),En(a,"ready",(function(){s&&clearTimeout(s),qe(this)})),En(a,"timeout",(function(){s&&clearTimeout(s),qe(this),e&&e(null)})),wa(a,t,n,r,i)};var rs=new gt(Et,"https://apis.google.com/js/client.js?onload=%{onload}"),is="__fcb"+Math.floor(1e6*Math.random()).toString();function os(t,e,n,r,i,o,a){var s=Mn(e+n);Dn(s,"key",t.c),a&&Dn(s,"cb",_().toString());var u="GET"==r;if(u)for(var c in i)i.hasOwnProperty(c)&&Dn(s,c,i[c]);
2return new be((function(e,n){ns(t,s.toString(),(function(t){t?t.error?n(tu(t,o||{})):e(t):n(new I("network-request-failed"))}),r,u?void 0:er(Rr(i)),t.a,t.i.get())}))}function as(t){if("string"!==typeof(t=t.email)||!pr.test(t))throw new I("invalid-email")}function ss(t){"email"in t&&as(t)}function us(t){if(!t[Xa]){if(t.mfaPendingCredential)throw new I("multi-factor-auth-required",null,dt(t));throw new I("internal-error")}}function cs(t){if(t.phoneNumber||t.temporaryProof){if(!t.phoneNumber||!t.temporaryProof)throw new I("internal-error")}else{if(!t.sessionInfo)throw new I("missing-verification-id");if(!t.code)throw new I("missing-verification-code")}}Ka.prototype.s=function(t,e,n,r,i){var o=this;$a.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,Vs,{})},Ka.prototype.xb=function(t,e){return Js(this,Us,{idToken:t,email:e})},Ka.prototype.yb=function(t,e){return Js(this,Fs,{idToken:t,password:e})};var ls={displayName:"DISPLAY_NAME",photoUrl:"PHOTO_URL"};function fs(t){if(!t.phoneVerificationInfo)throw new I("internal-error");if(!t.phoneVerificationInfo.sessionInfo)throw new I("missing-verification-id");if(!t.phoneVerificationInfo.code)throw new I("missing-verification-code")}function hs(t){if(!t.requestUri||!t.sessionId&&!t.postBody&&!t.pendingToken)throw new I("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&&(Yn(t=new Kn(t.postBody),"nonce")&&(e.nonce=t.get("nonce")))),e}function ds(t){var e=null;if(t.needConfirmation?(t.code="account-exists-with-different-credential",e=Wo(t)):"FEDERATED_USER_ID_ALREADY_LINKED"==t.errorMessage?(t.code="credential-already-in-use",e=Wo(t)):"EMAIL_EXISTS"==t.errorMessage?(t.code="email-already-in-use",e=Wo(t)):t.errorMessage&&(e=Zs(t.errorMessage)),e)throw e;us(t)}function vs(t,e){return e.returnIdpCredential=!0,Js(t,qs,e)}function ys(t,e){return e.returnIdpCredential=!0,Js(t,Hs,e)}function ms(t,e){return e.returnIdpCredential=!0,e.autoCreate=!1,Js(t,Ws,e)}function gs(t){if(!t.oobCode)throw new I("invalid-action-code")}(e=Ka.prototype).zb=function(t,e){var n={idToken:t},r=[];return ht(ls,(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 yt(t={requestType:"PASSWORD_RESET",email:t},e),Js(this,Rs,t)},e.sb=function(t,e){return yt(t={requestType:"EMAIL_SIGNIN",email:t},e),Js(this,Ns,t)},e.qb=function(t,e){return yt(t={requestType:"VERIFY_EMAIL",idToken:t},e),Js(this,Cs,t)},e.Ab=function(t,e,n){return yt(t={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:t,newEmail:e},n),Js(this,Ps,t)},e.cb=function(t){return Js(this,$s,t)},e.jb=function(t,e){return Js(this,Ls,{oobCode:t,newPassword:e})},e.Pa=function(t){return Js(this,ws,{oobCode:t})},e.fb=function(t){return Js(this,bs,{oobCode:t})};var bs={endpoint:"setAccountInfo",A:gs,Y:"email",C:!0},ws={endpoint:"resetPassword",A:gs,G:function(t){var e=t.requestType;if(!e||!t.email&&"EMAIL_SIGNIN"!=e&&"VERIFY_AND_CHANGE_EMAIL"!=e)throw new I("internal-error")},C:!0},Es={endpoint:"signupNewUser",A:function(t){if(as(t),!t.password)throw new I("weak-password")},G:us,U:!0,C:!0},Ts={endpoint:"createAuthUri",C:!0},_s={endpoint:"deleteAccount",M:["idToken"]},ks={endpoint:"setAccountInfo",M:["idToken","deleteProvider"],A:function(t){if("array"!=h(t.deleteProvider))throw new I("internal-error")}},Is={endpoint:"emailLinkSignin",M:["email","oobCode"],A:as,G:us,U:!0,C:!0},xs={endpoint:"emailLinkSignin",M:["idToken","email","oobCode"],A:as,G:us,U:!0},Ss={endpoint:"accounts/mfaEnrollment:finalize",M:["idToken","phoneVerificationInfo"],A:fs,G:us,C:!0,La:!0},Os={endpoint:"accounts/mfaSignIn:finalize",M:["mfaPendingCredential","phoneVerificationInfo"],A:fs,G:us,C:!0,La:!0},As={endpoint:"getAccountInfo"},Ns={endpoint:"getOobConfirmationCode",M:["requestType"],A:function(t){if("EMAIL_SIGNIN"!=t.requestType)throw new I("internal-error");as(t)},Y:"email",C:!0},Cs={endpoint:"getOobConfirmationCode",M:["idToken","requestType"],A:function(t){if("VERIFY_EMAIL"!=t.requestType)throw new I("internal-error")},Y:"email",C:!0},Ps={endpoint:"getOobConfirmationCode",M:["idToken","newEmail","requestType"],A:function(t){if("VERIFY_AND_CHANGE_EMAIL"!=t.requestType)throw new I("internal-error")},Y:"email",C:!0},Rs={endpoint:"getOobConfirmationCode",M:["requestType"],A:function(t){if("PASSWORD_RESET"!=t.requestType)throw new I("internal-error");as(t)},Y:"email",C:!0},js={hb:!0,endpoint:"getProjectConfig",Rb:"GET"},Ds={hb:!0,endpoint:"getRecaptchaParam",Rb:"GET",G:function(t){if(!t.recaptchaSiteKey)throw new I("internal-error")}},Ls={endpoint:"resetPassword",A:gs,Y:"email",C:!0},Ms={endpoint:"sendVerificationCode",M:["phoneNumber","recaptchaToken"],Y:"sessionInfo",C:!0},Us={endpoint:"setAccountInfo",M:["idToken"],A:ss,U:!0},Fs={endpoint:"setAccountInfo",M:["idToken"],A:function(t){if(ss(t),!t.password)throw new I("weak-password")},G:us,U:!0},Vs={endpoint:"signupNewUser",G:us,U:!0,C:!0},Bs={endpoint:"accounts/mfaEnrollment:start",M:["idToken","phoneEnrollmentInfo"],A:function(t){if(!t.phone
2EnrollmentInfo)throw new I("internal-error");if(!t.phoneEnrollmentInfo.phoneNumber)throw new I("missing-phone-number");if(!t.phoneEnrollmentInfo.recaptchaToken)throw new I("missing-app-credential")},G:function(t){if(!t.phoneSessionInfo||!t.phoneSessionInfo.sessionInfo)throw new I("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 I("missing-app-credential")},G:function(t){if(!t.phoneResponseInfo||!t.phoneResponseInfo.sessionInfo)throw new I("internal-error")},C:!0,La:!0},qs={endpoint:"verifyAssertion",A:hs,Wa:ps,G:ds,U:!0,C:!0},Ws={endpoint:"verifyAssertion",A:hs,Wa:ps,G:function(t){if(t.errorMessage&&"USER_NOT_FOUND"==t.errorMessage)throw new I("user-not-found");if(t.errorMessage)throw Zs(t.errorMessage);us(t)},U:!0,C:!0},Hs={endpoint:"verifyAssertion",A:function(t){if(hs(t),!t.idToken)throw new I("internal-error")},Wa:ps,G:ds,U:!0},Gs={endpoint:"verifyCustomToken",A:function(t){if(!t.token)throw new I("invalid-custom-token")},G:us,U:!0,C:!0},Ks={endpoint:"verifyPassword",A:function(t){if(as(t),!t.password)throw new I("wrong-password")},G:us,U:!0,C:!0},$s={endpoint:"verifyPhoneNumber",A:cs,G:us,C:!0},Xs={endpoint:"verifyPhoneNumber",A:function(t){if(!t.idToken)throw new I("internal-error");cs(t)},G:function(t){if(t.temporaryProof)throw t.code="credential-already-in-use",Wo(t);us(t)}},Qs={Eb:{USER_NOT_FOUND:"user-not-found"},endpoint:"verifyPhoneNumber",A:cs,G:us,C:!0},Ys={endpoint:"accounts/mfaEnrollment:withdraw",M:["idToken","mfaEnrollmentId"],G:function(t){if(!!t[Xa]^!!t.refreshToken)throw new I("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 Se(new I("internal-error"));var r,i=!!e.La,o=e.Rb||"POST";return xe(n).then(e.A).then((function(){return e.U&&(n.returnSecureToken=!0),e.C&&t.b&&"undefined"===typeof n.tenantId&&(n.tenantId=t.b),os(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 I("internal-error");return r[e.Y]}))}function Zs(t){return tu({error:{errors:[{message:t}],code:400,message:t}})}function tu(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 I(r[n]):null)return n;for(var i in n=t.error&&t.error.message||"",yt(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 I(r[i],e);return!e&&t&&(e=Pr(t)),new I("internal-error",e)}function eu(t){this.b=t,this.a=null,this.nb=function(t){return(ou||(ou=new be((function(t,e){function n(){Mr(),xr("gapi.load")("gapi.iframes",{callback:t,ontimeout:function(){Mr(),e(Error("Network Error"))},timeout:ru.get()})}if(xr("gapi.iframes.Iframe"))t();else if(xr("gapi.load"))n();else{var r="__iframefcb"+Math.floor(1e6*Math.random()).toString();u[r]=function(){xr("gapi.load")?n():e(Error("Network Error"))},xe(Va(r=It(nu,{onload:r}))).o((function(){e(Error("Network Error"))}))}})).o((function(t){throw ou=null,t})))).then((function(){return new be((function(e,n){xr("gapi.iframes.getContext")().open({where:document.body,url:t.b,messageHandlersFilter:xr("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"))}),iu.get());r.ping(i).then(i,(function(){n(Error("Network Error"))}))}))}))}))}(this)}var nu=new gt(Et,"https://apis.google.com/js/api.js?onload=%{onload}"),ru=new Ur(3e4,6e4),iu=new Ur(5e3,15e3),ou=null;function au(t,e,n){this.i=t,this.g=e,this.h=n,this.f=null,this.a=Un(this.i,"/__/auth/iframe"),Dn(this.a,"apiKey",this.g),Dn(this.a,"appName",this.h),this.b=null,this.c=[]}function su(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 uu(t){try{return r.a.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 lu(t){var e=sr();return function(t){return Js(t,js,{}).then((function(t){return t.authorizedDomains||[]}))}(t).then((function(t){t:{var n=Mn(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=Mn(o).b==a&&"chrome-extension"==s:"http"!=s&&"https"!=s?a=!1:hr.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(sr())}
2))}function fu(t){return t.l?t.l:(t.l=dr().then((function(){if(!t.s){var e=t.c,n=t.h,r=uu(t.b),i=new au(t.u,t.f,t.b);i.f=e,i.b=n,i.c=Y(r||[]),t.s=i.toString()}t.i=new eu(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,xr("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",xe(n)}return n.status="ERROR",xe(n)}))}(t)})),t.l)}function hu(t){return t.m||(t.w=t.c?kr(t.c,uu(t.b)):null,t.m=new Ka(t.f,C(t.h),t.w)),t.m}function pu(t,e,n,r,i,o,a,s,u,c,l){return(t=new su(t,e,n,r,i)).l=o,t.g=a,t.i=s,t.b=dt(u||null),t.f=c,t.ub(l).toString()}function du(t){if(this.a=t||r.a.INTERNAL.reactNative&&r.a.INTERNAL.reactNative.AsyncStorage,!this.a)throw new I("internal-error","The React Native compatibility library was not found.");this.type="asyncStorage"}function vu(t){this.b=t,this.a={},this.f=E(this.c,this)}au.prototype.toString=function(){return this.f?Dn(this.a,"v",this.f):Qn(this.a.a,"v"),this.b?Dn(this.a,"eid",this.b):Qn(this.a.a,"eid"),this.c.length?Dn(this.a,"fw",this.c.join(",")):Qn(this.a.a,"fw"),this.a.toString()},su.prototype.ub=function(t){return this.h=t,this},su.prototype.toString=function(){var t=Un(this.s,"/__/auth/handler");if(Dn(t,"apiKey",this.m),Dn(t,"appName",this.c),Dn(t,"authType",this.u),this.a.isOAuthProvider){var e=this.a;try{var n=r.a.app(this.c).auth().ja()}catch(u){n=null}for(var i in e.kb=n,Dn(t,"providerId",this.a.providerId),n=Rr((e=this.a).Fb))n[i]=n[i].toString();i=e.Oc,n=dt(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)||Dn(t,"customParameters",Pr(n))}if("function"===typeof this.a.Nb&&((e=this.a.Nb()).length&&Dn(t,"scopes",e.join(","))),this.l?Dn(t,"redirectUrl",this.l):Qn(t.a,"redirectUrl"),this.g?Dn(t,"eventId",this.g):Qn(t.a,"eventId"),this.i?Dn(t,"v",this.i):Qn(t.a,"v"),this.b)for(var s in this.b)this.b.hasOwnProperty(s)&&!Ln(t,s)&&Dn(t,s,this.b[s]);return this.h?Dn(t,"tid",this.h):Qn(t.a,"tid"),this.f?Dn(t,"eid",this.f):Qn(t.a,"eid"),(s=uu(this.c)).length&&Dn(t,"fw",s.join(",")),t.toString()},(e=cu.prototype).Lb=function(t,e,n){var r=new I("popup-closed-by-user"),i=new I("web-storage-unsupported"),o=this,a=!1;return this.ka().then((function(){(function(t){var e={type:"webStorageSupport"};return fu(t).then((function(){return function(t,e){return t.nb.then((function(){return new be((function(n){t.a.send(e.type,e,n,xr("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&&lr(t),e(i),a=!0)}))})).o((function(){})).then((function(){if(!a)return function(t){return new be((function(e){return function n(){kn(2e3).then((function(){if(t&&!t.closed)return n();e()}))}()}))}(t)})).then((function(){if(!a)return kn(n).then((function(){e(r)}))}))},e.Ub=function(){var t=Ir();return!Cr(t)&&!Lr(t)},e.Qb=function(){return!1}
2,e.Jb=function(t,e,n,r,i,o,a,s){if(!t)return Se(new I("popup-blocked"));if(a&&!Cr())return this.ka().o((function(e){lr(t),i(e)})),r(),xe();this.a||(this.a=lu(hu(this)));var u=this;return this.a.then((function(){var e=u.ka().o((function(e){throw lr(t),i(e),e}));return r(),e})).then((function(){(Lo(n),a)||ur(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=lu(hu(this)));var i=this;return this.a.then((function(){Lo(e),ur(pu(i.u,i.f,i.b,t,e,sr(),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 fu(this).then((function(){return t.i.nb})).o((function(){throw t.a=null,new I("network-request-failed")}))},e.Xb=function(){return!0},e.Ca=function(t){this.g.push(t)},e.Qa=function(t){X(this.g,(function(e){return e==t}))},(e=du.prototype).get=function(t){return xe(this.a.getItem(t)).then((function(t){return t&&jr(t)}))},e.set=function(t,e){return xe(this.a.setItem(t,Pr(e)))},e.T=function(t){return xe(this.a.removeItem(t))},e.ba=function(){},e.ha=function(){};var yu,mu=[];function gu(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 bu(t){this.a=t}function wu(t){this.c=t,this.b=!1,this.a=[]}function Eu(t,e,n,r){var i,o,a,s,u=n||{},c=null;if(t.b)return Se(Error("connection_unavailable"));var l=r?800:50,f="undefined"!==typeof MessageChannel?new MessageChannel:null;return new be((function(n,r){f?(i=Math.floor(Math.random()*Math.pow(10,20)).toString(),f.port1.start(),a=setTimeout((function(){r(Error("unsupported_event"))}),l),c={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(c),f.port1.addEventListener("message",o),t.c.postMessage({eventType:e,eventId:i,data:u},[f.port2])):r(Error("connection_unavailable"))})).then((function(e){return Tu(t,c),e})).o((function(e){throw Tu(t,c),e}))}function Tu(t,e){if(e){var n=e.messageChannel,r=e.onMessage;n&&(n.port1.removeEventListener("message",r),n.port1.close()),X(t.a,(function(t){return t==e}))}}function _u(){if(!xu())throw new I("web-storage-unsupported");this.c={},this.a=[],this.b=0,this.u=u.indexedDB,this.type="indexedDB",this.g=this.l=this.f=this.i=null,this.s=!1,this.h=null;var t=this;mr()&&self?(this.l=function(){var t=mr()?self:null;if(q(mu,(function(n){n.b==t&&(e=n)})),!e){var e=new vu(t);mu.push(e)}return e}(),gu(this.l,"keyChanged",(function(e,n){return Cu(t).then((function(e){return 0<e.length&&q(t.a,(function(t){t(e)})),{keyProcessed:K(e,n.key)}}))})),gu(this.l,"ping",(function(){return xe(["keyChanged"])}))):function(){var t=u.navigator;return t&&t.serviceWorker?xe().then((function(){return t.serviceWorker.ready})).then((function(t){return t.active||null})).o((function(){return null})):xe(null)}().then((function(e){(t.h=e)&&(t.g=new wu(new bu(e)),Eu(t.g,"ping",null,!0).then((function(e){e[0].fulfilled&&K(e[0].value,"keyChanged")&&(t.s=!0)})).o((function(){})))}))}function ku(t){return new be((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 be((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 ku(t)})).then((function(t){e(t)})).o((function(t){n(t)}))}}))}function Iu(t){return t.m||(t.m=ku(t)),t.m}function xu(){try{return!!u.indexedDB}catch(oa){return!1}}function Su(t){return t.objectStore("firebaseLocalStorage")}function Ou(t,e){return t.transaction(["firebaseLocalStorage"],e?"readwrite":"readonly")}function Au(t){return new be((function(e,n){t.onsuccess=function(t){t&&t.target?e(t.target.result):e()},t.onerror=function(t){n(t.target.error)}}))}function Nu(t,e){return t.g&&t.h&&function(){var t=u.navigator;return t&&t.serviceWorker&&t.serviceWorker.controller||null}()===t.h?Eu(t.g,"keyChanged",{key:e},t.s).then((function(){})).o((function(){})):xe()}function Cu(t){return Iu(t).then((function(t){var e=Su(Ou(t,!1));return e.getAll?Au(e.getAll()):new be((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 Pu(t){t.i&&t.i.cancel("STOP_EVENT"),t.f&&(clearTimeout(t.f),t.f=null)}function Ru(t){var e=this,n=null;this.a=[],this.type="indexedDB",this.c=t,this.b=xe().then((function(){if(xu()){var t=Dr(),r="__sak"+t;return yu||(yu=new _u),(n=yu).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){q(e.a,(function(e){e(t)}))}
2)),t}))}function ju(){this.a={},this.type="inMemory"}function Du(){if(!function(){var t="Node"==gr();if(!(t=Lu()||t&&r.a.INTERNAL.node&&r.a.INTERNAL.node.localStorage))return!1;try{return t.setItem("__sak","1"),t.removeItem("__sak"),!0}catch(e){return!1}}()){if("Node"==gr())throw new I("internal-error","The LocalStorage compatibility library was not found.");throw new I("web-storage-unsupported")}this.a=Lu()||r.a.INTERNAL.node.localStorage,this.type="localStorage"}function Lu(){try{var t=u.localStorage,e=Dr();return t&&(t.setItem(e,"1"),t.removeItem(e)),t}catch(n){return null}}function Mu(){this.type="nullStorage"}function Uu(){if(!function(){var t="Node"==gr();if(!(t=Fu()||t&&r.a.INTERNAL.node&&r.a.INTERNAL.node.sessionStorage))return!1;try{return t.setItem("__sak","1"),t.removeItem("__sak"),!0}catch(e){return!1}}()){if("Node"==gr())throw new I("internal-error","The SessionStorage compatibility library was not found.");throw new I("web-storage-unsupported")}this.a=Fu()||r.a.INTERNAL.node.sessionStorage,this.type="sessionStorage"}function Fu(){try{var t=u.sessionStorage,e=Dr();return t&&(t.setItem(e,"1"),t.removeItem(e)),t}catch(n){return null}}function Vu(){var t={};t.Browser=qu,t.Node=Wu,t.ReactNative=Hu,t.Worker=Gu,this.a=t[gr()]}vu.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=[];q(r,(function(e){i.push(xe().then((function(){return e(t.origin,t.data.data)})))})),Ae(i).then((function(r){var i=[];q(r,(function(t){i.push({fulfilled:t.Mb,value:t.value,reason:t.reason?t.reason.message:void 0})})),q(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})}))}},bu.prototype.postMessage=function(t,e){this.a.postMessage(t,e)},wu.prototype.close=function(){for(;0<this.a.length;)Tu(this,this.a[0]);this.b=!0},(e=_u.prototype).set=function(t,e){var n,r=!1,i=this;return Iu(this).then((function(e){return Au((e=Su(Ou(n=e,!0))).get(t))})).then((function(o){var a=Su(Ou(n,!0));return o?(o.value=e,Au(a.put(o))):(i.b++,r=!0,(o={}).fbase_key=t,o.value=e,Au(a.add(o)))})).then((function(){return i.c[t]=e,Nu(i,t)})).ma((function(){r&&i.b--}))},e.get=function(t){return Iu(this).then((function(e){return Au(Su(Ou(e,!1)).get(t))})).then((function(t){return t&&t.value}))},e.T=function(t){var e=!1,n=this;return Iu(this).then((function(r){return e=!0,n.b++,Au(Su(Ou(r,!0)).delete(t))})).then((function(){return delete n.c[t],Nu(n,t)})).ma((function(){e&&n.b--}))},e.ba=function(t){0==this.a.length&&function(t){Pu(t),function e(){t.f=setTimeout((function(){t.i=Cu(t).then((function(e){0<e.length&&q(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){X(this.a,(function(e){return e==t})),0==this.a.length&&Pu(this)},(e=Ru.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){X(this.a,(function(e){return e==t}))},(e=ju.prototype).get=function(t){return xe(this.a[t])},e.set=function(t,e){return this.a[t]=e,xe()},e.T=function(t){return delete this.a[t],xe()},e.ba=function(){},e.ha=function(){},(e=Du.prototype).get=function(t){var e=this;return xe().then((function(){return jr(e.a.getItem(t))}))},e.set=function(t,e){var n=this;return xe().then((function(){var r=Pr(e);null===r?n.T(t):n.a.setItem(t,r)}))},e.T=function(t){var e=this;return xe().then((function(){e.a.removeItem(t)}))},e.ba=function(t){u.window&&sn(u.window,"storage",t)},e.ha=function(t){u.window&&ln(u.window,"storage",t)},(e=Mu.prototype).get=function(){return xe(null)},e.set=function(){return xe()},e.T=function(){return xe()},e.ba=function(){},e.ha=function(){},(e=Uu.prototype).get=function(t){var e=this;return xe().then((function(){return jr(e.a.getItem(t))}))},e.set=function(t,e){var n=this;return xe().then((function(){var r=Pr(e);null===r?n.T(t):n.a.setItem(t,r)}))},e.T=function(t){var e=this;return xe().then((function(){e.a.removeItem(t)}))},e.ba=function(){},e.ha=function(){};var Bu,zu,qu={F:Du,$a:Uu},Wu={F:Du,$a:Uu},Hu={F:du,$a:Mu},Gu={F:Du,$a:Mu},Ku={od:"local",NONE:"none",qd:"session"};function $u(){var t=!(Lr(Ir())||!yr()),e=Cr(),n=Sr();this.m=t,this.h=e,this.l=n,this.a={},Bu||(Bu=new Vu),t=Bu;try{this.g=!ar()&&Br()||!u.indexedDB?new t.a.F:new Ru(mr()?new ju:new t.a.F)}catch(r){this.g=new ju,this.h=!0}try{this.i=new t.a.$a}catch(r){this.i=new ju}this.u=new ju,this.f=E(this.Vb,this),this.b={}}function Xu(){return zu||(zu=new $u),zu}function Qu(t,e){switch(e){case"session":return t.i;case"none":return t.u;default:return t.g}}function Yu(t,e){return"firebase:"+t.name+(e?":"+e:"")}function Ju(t,e,n){return n=Yu(e,n),"local"==e.F&&(t.b[n]=null),Qu(t,e.F).T(n)}function Zu(t){t.c&&(clearInterval(t.c),t.c=null)}function tc(t){this.a=t,this.b=Xu()}(e=$u.prototype).get=function(t,e){return Qu(this,t.F).get(Yu(t,e))},e.set=function(t,e,n){var r=Yu(t,n),i=this,o=Qu(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=Yu(t,e),this.l&&(this.b[t]=u.localStorage.getItem(t)),pt(this.a)&&(Qu(this,"local").ba(this.f),this.h||(ar()||!Br())&&u.indexedDB||!this.l||function(t){Zu(t),t.c=setInterval((function(){for(var e in t.a){var n=u.localStorage.getItem(e),r=t.b[e];n!=r&&(t.b[e]=n,n=new Xe({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=Yu(t,e),this.a[t]&&(X(this.a[t],(function(t){return t==n})),0==this.a[t].length&&delete this.a[t]),pt(this.a)&&(Qu(this,"local").ha(this.f),Zu(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=u.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?Qu(this,"local").ha(this.f):Zu(this),this.m)if(n=u.localStorage.getItem(e),(r=t.a.newValue)!==n)null!==r?u.localStorage.setItem(e,r):u.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]===u.localStorage.getItem(e)||(o.b[e]=u.localStorage.getItem(e),o.ib(e))},Gt&&ee&&10==ee&&u.localStorage.getItem(e)!==t.a.newValue&&t.a.newValue!==t.a.oldValue?setTimeout(n,10):n()}}else q(t,E(this.ib,this))},e.ib=function(t){this.a[t]&&q(this.a[t],(function(t){t()}))};var ec,nc={name:"authEvent",F:"local"};function rc(){this.a=Xu()}function ic(t,e){this.b=oc,this.f=u.Uint8Array?new Uint8Array(this.b):Array(this.b),this.g=this.c=0,this.a=[],this.i=t,this.h=e,this.l=u.Int32Array?new Int32Array(64):Array(64),void 0===ec&&(ec=u.Int32Array?new Int32Array(hc):hc),this.reset()}k(ic,(function(){this.b=-1}));for(var oc=64,ac=oc-1,sc=[],uc=0;uc<ac;uc++)sc[uc]=0;var cc=Q(128,sc);function lc(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>>
2>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],c=0|t.a[4],l=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+((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))|0)+((a=(a=c&l^~c&f)+(0|ec[e])|0)+(0|n[e])|0)|0,o=f,f=l,l=c,c=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]+c|0,t.a[5]=t.a[5]+l|0,t.a[6]=t.a[6]+f|0,t.a[7]=t.a[7]+o|0}function fc(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&&(lc(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&&(lc(t),i=0)}}t.c=i,t.g+=n}ic.prototype.reset=function(){this.g=this.c=0,this.a=u.Int32Array?new Int32Array(this.h):Y(this.h)};var hc=[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,2756734187,3204031479,3329325298];function pc(){ic.call(this,8,dc)}k(pc,ic);var dc=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function vc(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 rc,this.g=new tc(this.h),this.f=null,this.b=[],this.a=this.c=null}function yc(t){return new I("invalid-cordova-configuration",t)}function mc(t){var e=new pc;fc(e,t),t=[];var n=8*e.g;56>e.c?fc(e,cc,56-e.c):fc(e,cc,e.b-(e.c-56));for(var r=63;56<=r;r--)e.f[r]=255&n,n/=256;for(lc(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 H(t,(function(t){return 1<(t=t.toString(16)).length?t:"0"+t})).join("")}(t)}function gc(t,e){for(var n=0;n<t.b.length;n++)try{t.b[n](e)}catch(r){}}function bc(t){return t.f||(t.f=t.ka().then((function(){return new be((function(e){t.Ca((function n(r){return e(r),t.Qa(n),!1})),function(t){function e(e){r=!0,i&&i.cancel(),wc(t).then((function(r){var i=n;if(r&&e&&e.url){var o=null;-1!=(i=eo(e.url)).indexOf("/__/auth/callback")&&(o=(o="object"===typeof(o=jr(Ln(o=Mn(i),"firebaseError")||null))?x(o):null)?new Mo(r.c,r.b,null,null,o,null,r.S()):new Mo(r.c,r.b,i,r.f,null,null,r.S())),i=o||n}gc(t,i)}))}var n=new Mo("unknown",null,null,null,new I("no-auth-event")),r=!1,i=kn(500).then((function(){return wc(t).then((function(){r||gc(t,n)}))})),o=u.handleOpenURL;u.handleOpenURL=function(t){if(0==t.toLowerCase().indexOf(xr("BuildInfo.packageName",u).toLowerCase()+"://")&&e({url:t}),"function"===typeof o)try{o(t)}catch(n){console.error(n)}},Bo||(Bo=new Fo),function(t){var e=Bo;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=xr("universalLinks.subscribe",u))&&t(null,e.b))}(e)}(t)}))}))),t.f}function wc(t){var e=null;return function(t){return t.b.get(nc,t.a).then((function(t){return Uo(t)}))}(t.g).then((function(n){return e=n,Ju((n=t.g).b,nc,n.a)})).then((function(){return e}))}function Ec(t){this.a=t,this.b=Xu()}(e=vc.prototype).ka=function(){return this.Ga?this.Ga:this.Ga=(vr(void 0)?dr().then((function(){return new be((function(t,e){var n=u.document,r=setTimeout((function(){e(Error("Cordova framework is not ready."))}),1e3);n.addEventListener("deviceready",(function(){clearTimeout(r),t()}),!1)}))})):Se(Error("Cordova must run in an Android or iOS file scheme."))).then((function(){if("function"!==typeof xr("universalLinks.subscribe",u))throw yc("cordova-universal-links-plugin-fix is not installed");if("undefined"===typeof xr("BuildInfo.packageName",u))throw yc("cordova-plugin-buildinfo is not installed");if("function"!==typeof xr("cordova.plugins.browsertab.openUrl",u))throw yc("cordova-plugin-browsertab is not installed");if("function"!==typeof xr("cordova.InAppBrowser.open",u))throw yc("cordova-plugin-inappbrowser is not installed")}),(function(){throw new I("cordova-not-ready")}))},e.Lb=function(t,e){return e(new I("operation-not-supported-in-this-environment")),xe()},e.Jb=function(){return Se(new I("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 Se(new I("redirect-operation-pending"));var i=this,o=u.document,a=null,s=null,c=null,l=null;return this.c=xe().then((function(){return Lo(e),bc(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 Mo(e,r,null,o,new I("no-auth-event"),null,i),s=xr("BuildInfo.packageName",u);if("string"!==typeof s)throw new I("invalid-cordova-configuration");var c=xr("BuildInfo.displayName",u),l={};if(Ir().toLowerCase().match(/iphone|ipad|ipod/))l.ibi=s;else{if(!Ir().toLowerCase().match(/android/))return Se(new I("operation-not-supported-in-this-environment"));l.apn=s}c&&(l.appDisplayName=c),o=mc(o),l.sessionId=o;var f=pu(t.u,t.i,t.l,e,n,null,r,t.m,l,t.s,i);return t.ka().then((function(){var e=t.h;return t.w.a.set(nc,a.v(),e)})).then((function(){var e=xr("cordova.plugins.browsertab.isAvailable",u);if("function"!==typeof e)throw new I("invalid-cordova-configuration");var n=null;e((function(e){if(e){if("function"!==typeof(n=xr("cordova.plugins.browsertab.openUrl",u)))throw new I("invalid-cordova-configuration");n(f)}else{if("function"!==typeof(n=xr("cordova.InAppBrowser.open",u)))throw new I("invalid-cordova-configuration");e=Ir(),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 be((function(t,e){s=function(){var e=xr("cordova.plugins.browsertab.close",u);return t(),"function"===typeof e&&e(),i.a&&"function"===typeof i.a.close&&(i.a.close(),i.a=null),!1},i.Ca(s),c=function(){a||(a=kn(2e3).then((function(){e(new I("redirect-cancelled-by-user"))})))},l=function(){Fr()&&c()},o.addEventListener("resume",c,!1),Ir().toLowerCase().match(/android/)||o.addEventListener("visibilitychange",l,!1)})).o((function(t){return wc(i).then((function(){throw t}))}))})).ma((function(){c&&o.removeEventListener("resume",c,!1),l&&o.removeEventListener("visibilitychange",l,!1),a&&a.cancel(),s&&i.Qa(s),i.c=null}))},e.Ca=function(t){this.b.push(t),bc(this).o((function(e){"auth/invalid-cordova-configuration"===e.code&&(e=new Mo("unknown",null,null,null,new I("no-auth-event")),t(e))}))},e.Qa=function(t){X(this.b,(function(e){return e==t}))};var Tc={name:"pendingRedirect",F:"session"};function _c(t){return Ju(t.b,Tc,t.a)}function kc(t,e,n){this.i={},this.w=0,this.D=t,this.u=e,this.m=n,this.h=[],this.f=!1,this.l=E(this.s,this),this.b=new Uc,this.B=new qc,this.g=new Ec(this.u
2+":"+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=Ic(this.D,this.u,this.m,S)}function Ic(t,e,n,i){var o=r.a.SDK_VERSION||null;return vr()?new vc(t,e,n,o,i):new cu(t,e,n,o,i)}function xc(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 Sc(t){t.a.Ub()&&xc(t).o((function(e){var n=new Mo("unknown",null,null,null,new I("operation-not-supported-in-this-environment"));Rc(e)&&t.s(n)})),t.a.Qb()||Fc(t.b)}function Oc(t,e){K(t.h,e)||t.h.push(e),t.f||function(t){return t.b.get(Tc,t.a).then((function(t){return"pending"==t}))}(t.g).then((function(e){e?_c(t.g).then((function(){xc(t).o((function(e){var n=new Mo("unknown",null,null,null,new I("operation-not-supported-in-this-environment"));Rc(e)&&t.s(n)}))})):Sc(t)})).o((function(){Sc(t)}))}function Ac(t,e){X(t.h,(function(t){return t==e}))}kc.prototype.reset=function(){this.f=!1,this.a.Qa(this.l),this.a=Ic(this.D,this.u,this.m),this.i={}},kc.prototype.s=function(t){if(!t)throw new I("invalid-auth-event");if(6e5<=_()-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=_())),e=!0;break}}return Fc(this.b),e};var Nc=new Ur(2e3,1e4),Cc=new Ur(3e4,6e4);function Pc(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 Rc(t){return!(!t||"auth/cordova-not-ready"!=t.code)}function jc(t,e,n,r,i){var o;return function(t){return t.b.set(Tc,"pending",t.a)}(t.g).then((function(){return t.a.Kb(e,n,r,i).o((function(e){if(Rc(e))throw new I("operation-not-supported-in-this-environment");return o=e,_c(t.g).then((function(){throw o}))})).then((function(){return t.a.Xb()?new be((function(){})):_c(t.g).then((function(){return t.pa()})).then((function(){})).o((function(){}))}))}))}function Dc(t,e,n,r,i){return t.a.Lb(r,(function(t){e.la(n,null,t,i)}),Nc.get())}kc.prototype.pa=function(){return this.b.pa()};var Lc={};function Mc(t,e,n){var r=e+":"+n;return Lc[r]||(Lc[r]=new kc(t,e,n)),Lc[r]}function Uc(){this.b=null,this.f=[],this.c=[],this.a=null,this.i=this.g=!1}function Fc(t){t.g||(t.g=!0,zc(t,!1,null,null))}function Vc(t){t.g&&!t.i&&zc(t,!1,null,null)}function Bc(t,e){if(t.b=function(){return xe(e)},t.f.length)for(var n=0;n<t.f.length;n++)t.f[n](e)}function zc(t,e,n,r){e?r?function(t,e){if(t.b=function(){return Se(e)},t.c.length)for(var n=0;n<t.c.length;n++)t.c[n](e)}(t,r):Bc(t,n):Bc(t,{user:null}),t.f=[],t.c=[]}function qc(){}function Wc(){this.Bb=!1,Object.defineProperty(this,"appVerificationDisabled",{get:function(){return this.Bb},set:function(t){this.Bb=t},enumerable:!1})}function Hc(t,e){this.a=e,Gr(this,"verificationId",t)}function Gc(t,e,n,r){return new Ro(t).cb(e,n).then((function(t){return new Hc(t,r)}))}function Kc(t){var e=Bi(t);if(!(e&&e.exp&&e.auth_time&&e.iat))throw new I("internal-error","An internal error occurred. The token obtained by Firebase appears to be malformed. Please retry the operation.");Kr(this,{token:t,expirationTime:Vr(1e3*e.exp),authTime:Vr(1e3*e.auth_time),issuedAtTime:Vr(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 $c(t,e,n){var r=e&&e[Qc];if(!r)throw new I("argument-error","Internal assert: Invalid MultiFactorResolver");this.a=t,this.f=dt(e),this.g=n,this.c=new no(null,r),this.b=[];var i=this;q(e[Xc]||[],(function(t){(t=Yr(t))&&i.b.push(t)})),Gr(this,"auth",this.a),Gr(this,"session",this.c),Gr(this,"hints",this.b)}Uc.prototype.reset=function(){this.b=null,this.a&&(this.a.cancel(),this.a=null)},Uc.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?(zc(this,!0,null,t.a),xe()):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){zc(t,s,e,null)})).o((function(e){zc(t,s,null,e)}))}(this,t,e):Se(new I("invalid-auth-event")):(zc(this,!1,null,null),xe())}else Se(new I("invalid-auth-event"))},Uc.prototype.pa=function(){var t=this;return new be((function(e,n){t.b?t.b().then(e,n):(t.f.push(e),t.c.push(n),function(t){var e=new I("timeout");t.a&&t.a.cancel(),t.a=kn(Cc.get()).then((function(){t.b||(t.g=!0,zc(t,!0,null,e))}))}(t))}))},qc.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),xe()):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):Se(new I("invalid-auth-event"))}else Se(new I("invalid-auth-event"))},Hc.prototype.confirm=function(t){return t=jo(this.verificationId,t),this.a(t)};var Xc="mfaInfo",Qc="mfaPendingCredential";function Yc(t,e,n,r){I.call(this,"multi-factor-auth-required",r,e),this.b=new $c(t,e,n),Gr(this,"resolver",this.b)}
2function Jc(t,e,n){if(t&&v(t.serverResponse)&&"auth/multi-factor-auth-required"===t.code)try{return new Yc(e,t.serverResponse,n,t.message)}catch(r){}return null}function Zc(){}function tl(t){Gr(this,"factorId",t.ea),this.a=t}function el(t){if(tl.call(this,t),this.a.ea!=Ro.PROVIDER_ID)throw new I("argument-error","firebase.auth.PhoneMultiFactorAssertion requires a valid firebase.auth.PhoneAuthCredential")}function nl(t,e){for(var n in $e.call(this,t),e)this[n]=e[n]}function rl(t,e){this.a=t,this.b=[],this.c=E(this.wc,this),sn(this.a,"userReloaded",this.c);var n=[];e&&e.multiFactor&&e.multiFactor.enrolledFactors&&q(e.multiFactor.enrolledFactors,(function(t){var e=null,r={};if(t){t.uid&&(r[ti]=t.uid),t.displayName&&(r[Jr]=t.displayName),t.enrollmentTime&&(r[Zr]=new Date(t.enrollmentTime).toISOString()),t.phoneNumber&&(r[ei]=t.phoneNumber);try{e=new ni(r)}catch(i){}t=e}else t=null;t&&n.push(t)})),il(this,n)}function il(t,e){t.b=e,Gr(t,"enrolledFactors",e)}function ol(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 al(t){this.c=t,this.b=this.a=null}function sl(t){return t.b&&1e3*t.b.c||0}function ul(t,e){var n=e.refreshToken;t.b=Vi(e[Xa]||""),t.a=n}function cl(t,e){return function(t,e){return new be((function(n,r){"refresh_token"==e.grant_type&&e.refresh_token||"authorization_code"==e.grant_type&&e.code?ns(t,t.u+"?key="+encodeURIComponent(t.c),(function(t){t?t.error?r(tu(t)):t.access_token&&t.refresh_token?n(t):r(new I("internal-error")):r(new I("network-request-failed"))}),"POST",Xn(e).toString(),t.g,t.m.get()):r(new I("internal-error"))}))}(t.c,e).then((function(e){return t.b=Vi(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 ll(t,e){this.a=t||null,this.b=e||null,Kr(this,{lastSignInTime:Vr(e||null),creationTime:Vr(t||null)})}function fl(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 hl(t,e,n){this.N=[],this.l=t.apiKey,this.m=t.appName,this.s=t.authDomain||null,t=r.a.SDK_VERSION?kr(r.a.SDK_VERSION):null,this.a=new Ka(this.l,C(S),t),this.b=new al(this.a),bl(this,e[Xa]),ul(this.b,e),Gr(this,"refreshToken",this.b.a),Tl(this,n||{}),bn.call(this),this.P=!1,this.s&&Or()&&(this.i=Mc(this.s,this.l,this.m)),this.R=[],this.h=null,this.B=function(t){return new ol((function(){return t.I(!0)}),(function(t){return!(!t||"auth/network-request-failed"!=t.code)}),(function(){var e=sl(t.b)-_()-3e5;return 0<e?e:0}))}(this),this.Z=E(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){dl(i,t.c)},this.$=null,this.O=new rl(this,n),Gr(this,"multiFactor",this.O)}function pl(t,e){t.aa&&ln(t.aa,"languageCodeChanged",t.za),(t.aa=e)&&sn(e,"languageCodeChanged",t.za)}function dl(t,e){t.W=e,es(t.a,r.a.SDK_VERSION?kr(r.a.SDK_VERSION,t.W):null)}function vl(t,e){t.$&&ln(t.$,"frameworkChanged",t.ya),(t.$=e)&&sn(e,"frameworkChanged",t.ya)}function yl(t){try{return r.a.app(t.m).auth()}catch(e){throw new I("internal-error","No firebase.auth.Auth instance is available for the Firebase App '"+t.m+"'!")}}function ml(t){t.D||t.B.b||(t.B.start(),ln(t,"tokenChanged",t.Z),sn(t,"tokenChanged",t.Z))}function gl(t){ln(t,"tokenChanged",t.Z),t.B.stop()}function bl(t,e){t.xa=e,Gr(t,"_lat",e)}function wl(t){for(var e=[],n=0;n<t.R.length;n++)e.push(t.R[n](t));return Ae(e).then((function(){return t}))}function El(t){t.i&&!t.P&&(t.P=!0,Oc(t.i,t))}function Tl(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 ll(e.createdAt,e.lastLoginAt),providerData:[]}),t.a.b=t.tenantId}function _l(){}function kl(t){return xe().then((function(){if(t.D)throw new I("app-deleted")}))}function Il(t){return H(t.providerData,(function(t){return t.providerId}))}function xl(t,e){e&&(Sl(t,e.providerId),t.providerData.push(e))}function Sl(t,e){X(t.providerData,(function(t){return t.providerId==e}))}function Ol(t,e,n){("uid"!=e||n)&&t.hasOwnProperty(e)&&Gr(t,e,n)}function Al(t,e){t!=e&&(Kr(t,{uid:e.uid,displayName:e.displayName,photoURL:e.ph
2otoURL,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 ll(t.a,t.b)}(e.metadata)):Gr(t,"metadata",new ll),q(e.providerData,(function(e){xl(t,e)})),function(t,e){t.b=e.b,t.a=e.a}(t.b,e.b),Gr(t,"refreshToken",t.b.a),il(t.O,e.O.b))}function Nl(t){return t.I().then((function(e){var n=t.isAnonymous;return function(t,e){return Js(t.a,As,{idToken:e}).then(E(t.Ic,t))}(t,e).then((function(){return n||Ol(t,"isAnonymous",!1),e}))}))}function Cl(t,e){e[Xa]&&t.xa!=e[Xa]&&(ul(t.b,e),t.dispatchEvent(new nl("tokenChanged")),bl(t,e[Xa]),Ol(t,"refreshToken",t.b.a))}function Pl(t,e){return Nl(t).then((function(){if(K(Il(t),e))return wl(t).then((function(){throw new I("provider-already-linked")}))}))}function Rl(t,e,n){return $r({user:t,credential:Do(e),additionalUserInfo:e=Gi(e),operationType:n})}function jl(t,e){return Cl(t,e),t.reload().then((function(){return t}))}function Dl(t,e,n,i,o){if(!Or())return Se(new I("operation-not-supported-in-this-environment"));if(t.h&&!o)return Se(t.h);var a=Hi(n.providerId),s=Dr(t.uid+":::"),u=null;(!Cr()||yr())&&t.s&&n.isOAuthProvider&&(u=pu(t.s,t.l,t.m,e,n,null,s,r.a.SDK_VERSION||null,null,null,t.tenantId));var c=fr(u,a&&a.ta,a&&a.sa);return i=i().then((function(){if(Ml(t),!o)return t.I().then((function(){}))})).then((function(){return Pc(t.i,c,e,n,s,!!u,t.tenantId)})).then((function(){return new be((function(n,r){t.la(e,null,new I("cancelled-popup-request"),t.g||null),t.f=n,t.w=r,t.g=s,t.c=Dc(t.i,t,e,c,s)}))})).then((function(t){return c&&lr(c),t?$r(t):null})).o((function(t){throw c&&lr(c),t})),Ul(t,i,o)}function Ll(t,e,n,r,i){if(!Or())return Se(new I("operation-not-supported-in-this-environment"));if(t.h&&!i)return Se(t.h);var o=null,a=Dr(t.uid+":::");return r=r().then((function(){if(Ml(t),!i)return t.I().then((function(){}))})).then((function(){return t.fa=a,wl(t)})).then((function(e){return t.ga&&(e=(e=t.ga).b.set(Bl,t.v(),e.a)),e})).then((function(){return jc(t.i,e,n,a,t.tenantId)})).o((function(e){if(o=e,t.ga)return zl(t.ga);throw o})).then((function(){if(o)throw o})),Ul(t,r,i)}function Ml(t){if(!t.i||!t.P){if(t.i&&!t.P)throw new I("internal-error");throw new I("auth-domain-config-required")}}function Ul(t,e,n){var r=function(t,e,n){return t.h&&!n?(e.cancel(),Se(t.h)):e.o((function(e){throw!e||"auth/user-disabled"!=e.code&&"auth/user-token-expired"!=e.code||(t.h||t.dispatchEvent(new nl("userInvalidated")),t.h=e),e}))}(t,e,n);return t.N.push(r),r.ma((function(){$(t.N,r)})),r.o((function(e){var n=null;throw e&&"auth/multi-factor-auth-required"===e.code&&(n=Jc(e.v(),yl(t),E(t.hc,t))),n||e}))}function Fl(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[Xa]=t.stsTokenManager.accessToken,n.refreshToken=t.stsTokenManager.refreshToken||null;var r=new hl(e,n,t);return t.providerData&&q(t.providerData,(function(t){t&&xl(r,$r(t))})),t.redirectEventId&&(r.fa=t.redirectEventId),r}function Vl(t){this.a=t,this.b=Xu()}$c.prototype.Pc=function(t){var e=this;return t.ob(this.a.b,this.c).then((function(t){var n=dt(e.f);return delete n[Xc],delete n[Qc],yt(n,t),e.g(n)}))},k(Yc,I),Zc.prototype.ob=function(t,e,n){return e.type==ro?function(t,e,n,r){return n.Fa().then((function(n){return n={idToken:n},"undefined"!==typeof r&&(n.displayName=r),yt(n,{phoneVerificationInfo:Po(t.a)}),Js(e,Ss,n)}))}(this,t,e,n):function(t,e,n){return n.Fa().then((function(n){return yt(n={mfaPendingCredential:n},{phoneVerificationInfo:Po(t.a)}),Js(e,Os,n)}))}(this,t,e)},k(tl,Zc),k(el,tl),k(nl,$e),(e=rl.prototype).wc=function(t){il(this,function(t){var e=[];return q(t.mfaInfo||[],(function(t){(t=Yr(t))&&e.push(t)})),e}(t.ed))},e.Ob=function(){return this.a.I().then((function(t){return new no(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 Cl(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,Ys,{idToken:t,mfaEnrollmentId:n})})).then((function(t){var r=W(e.b,(function(t){return t.uid!=n}));return il(e,r),Cl(e.a,t),e.a.reload().o((function(t){if("auth/user-token-expired"!=t.code)throw t}))}))},e.v=function(){return{multiFactor:{enrolledFactors:H(this.b,(function(t){return t.v()}
2))}}},ol.prototype.start=function(){this.a=this.c,function t(e,n){e.stop(),e.b=kn(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=u.document,e=null;return Fr()||!t?xe():new be((function(n){e=function(){Fr()&&(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)},ol.prototype.stop=function(){this.b&&(this.b.cancel(),this.b=null)},al.prototype.v=function(){return{apiKey:this.c.c,refreshToken:this.a,accessToken:this.b&&this.b.toString(),expirationTime:sl(this)}},al.prototype.getToken=function(t){return t=!!t,this.b&&!this.a?Se(new I("user-token-expired")):t||!this.b||_()>sl(this)-3e4?this.a?cl(this,{grant_type:"refresh_token",refresh_token:this.a}):xe(null):xe({accessToken:this.b.toString(),refreshToken:this.a})},ll.prototype.v=function(){return{lastLoginAt:this.b,createdAt:this.a}},k(hl,bn),hl.prototype.va=function(t){this.oa=t,ts(this.a,t)},hl.prototype.ja=function(){return this.oa},hl.prototype.Ea=function(){return Y(this.W)},hl.prototype.Ma=function(){this.B.b&&(this.B.stop(),this.B.start())},Gr(hl.prototype,"providerId","firebase"),(e=hl.prototype).reload=function(){var t=this;return Ul(this,kl(this).then((function(){return Nl(t).then((function(){return wl(t)})).then(_l)})))},e.mc=function(t){return this.I(t).then((function(t){return new Kc(t)}))},e.I=function(t){var e=this;return Ul(this,kl(this).then((function(){return e.b.getToken(t)})).then((function(t){if(!t)throw new I("internal-error");return t.accessToken!=e.xa&&(bl(e,t.accessToken),e.dispatchEvent(new nl("tokenChanged"))),Ol(e,"refreshToken",t.refreshToken),t.accessToken})))},e.Ic=function(t){if(!(t=t.users)||!t.length)throw new I("internal-error");Tl(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?H(t,(function(t){return new fl(t.rawId,t.providerId,t.email,t.displayName,t.photoUrl,t.phoneNumber)})):[]}(t),n=0;n<e.length;n++)xl(this,e[n]);Ol(this,"isAnonymous",!(this.email&&t.passwordHash)&&!(this.providerData&&this.providerData.length)),this.dispatchEvent(new nl("userReloaded",{ed:t}))},e.Jc=function(t){return Wr("firebase.User.prototype.reauthenticateAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.reauthenticateWithCredential instead."),this.pb(t)},e.pb=function(t){var e=this,n=null;return Ul(this,t.c(this.a,this.uid).then((function(t){return Cl(e,t),n=Rl(e,t,"reauthenticate"),e.h=null,e.reload()})).then((function(){return n})),!0)},e.Ac=function(t){return Wr("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 Ul(this,Pl(this,t.providerId).then((function(){return e.I()})).then((function(n){return t.b(e.a,n)})).then((function(t){return n=Rl(e,t,"link"),jl(e,t)})).then((function(){return n})))},e.Bc=function(t,e){var n=this;return Ul(this,Pl(this,"phone").then((function(){return Gc(yl(n),t,e,E(n.mb,n))})))},e.Kc=function(t,e){var n=this;return Ul(this,xe().then((function(){return Gc(yl(n),t,e,E(n.pb,n))})),!0)},e.xb=function(t){var e=this;return Ul(this,this.I().then((function(n){return e.a.xb(n,t)})).then((function(t){return Cl(e,t),e.reload()})))},e.cd=function(t){var e=this;return Ul(this,this.I().then((function(n){return t.b(e.a,n)})).then((function(t){return Cl(e,t),e.reload()})))},e.yb=function(t){var e=this;return Ul(this,this.I().then((function(n){return e.a.yb(n,t)})).then((function(t){return Cl(e,t),e.reload()})))},e.zb=function(t){if(void 0===t.displayName&&void 0===t.photoURL)return kl(this);var e=this;return Ul(this,this.I().then((function(n){return e.a.zb(n,{displayName:t.displayName,photoUrl:t.photoURL})}
2)).then((function(t){return Cl(e,t),Ol(e,"displayName",t.displayName||null),Ol(e,"photoURL",t.photoUrl||null),q(e.providerData,(function(t){"password"===t.providerId&&(Gr(t,"displayName",e.displayName),Gr(t,"photoURL",e.photoURL))})),wl(e)})).then(_l))},e.ad=function(t){var e=this;return Ul(this,Nl(this).then((function(n){return K(Il(e),t)?function(t,e,n){return Js(t,ks,{idToken:e,deleteProvider:n})}(e.a,n,[t]).then((function(t){var n={};return q(t.providerUserInfo||[],(function(t){n[t.providerId]=!0})),q(Il(e),(function(t){n[t]||Sl(e,t)})),n[Ro.PROVIDER_ID]||Gr(e,"phoneNumber",null),wl(e)})):wl(e).then((function(){throw new I("no-such-provider")}))})))},e.delete=function(){var t=this;return Ul(this,this.I().then((function(e){return Js(t.a,_s,{idToken:e})})).then((function(){t.dispatchEvent(new nl("userDeleted"))}))).then((function(){for(var e=0;e<t.N.length;e++)t.N[e].cancel("app-deleted");pl(t,null),vl(t,null),t.N=[],t.D=!0,gl(t),Gr(t,"refreshToken",null),t.i&&Ac(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)?E(this.Hb,this):"reauthViaPopup"==t&&e==(this.g||null)?E(this.Ib,this):"linkViaRedirect"==t&&(this.fa||null)==e?E(this.Hb,this):"reauthViaRedirect"==t&&(this.fa||null)==e?E(this.Ib,this):null},e.Cc=function(t){var e=this;return Dl(this,"linkViaPopup",t,(function(){return Pl(e,t.providerId).then((function(){return wl(e)}))}),!1)},e.Lc=function(t){return Dl(this,"reauthViaPopup",t,(function(){return xe()}),!0)},e.Dc=function(t){var e=this;return Ll(this,"linkViaRedirect",t,(function(){return Pl(e,t.providerId)}),!1)},e.Mc=function(t){return Ll(this,"reauthViaRedirect",t,(function(){return xe()}),!0)},e.Hb=function(t,e,n,r){var i=this;this.c&&(this.c.cancel(),this.c=null);var o=null;return Ul(this,this.I().then((function(n){return ys(i.a,{requestUri:t,postBody:r,sessionId:e,idToken:n})})).then((function(t){return o=Rl(i,t,"link"),jl(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 Ul(this,xe().then((function(){return ao(ms(i.a,{requestUri:t,sessionId:e,postBody:r,tenantId:n}),i.uid)})).then((function(t){return o=Rl(i,t,"reauthenticate"),Cl(i,t),i.h=null,i.reload()})).then((function(){return o})),!0)},e.qb=function(t){var e=this,n=null;return Ul(this,this.I().then((function(e){return n=e,"undefined"===typeof t||pt(t)?{}:Li(new xi(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 Ul(this,this.I().then((function(t){return r=t,"undefined"===typeof e||pt(e)?{}:Li(new xi(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 Ul(this,t=ao(xe(t),n.uid).then((function(t){return e=Rl(n,t,"reauthenticate"),Cl(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&&yt(t,this.metadata.v()),q(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))})),yt(t,this.O.v()),t};var Bl={name:"redirectUser",F:"session"};function zl(t){return Ju(t.b,Bl,t.a)}function ql(t){this.a=t,this.b=Xu(),this.c=null,this.f=function(t){var e=Gl("local"),n=Gl("session"),r=Gl("none");return function(t,e,n){var r=Yu(e,n),i=Qu(t,e.F);return t.get(e,n).then((function(o){var a=null;try{a=jr(u.localStorage.getItem(r))}catch(s){}if(a&&!o)return u.localStorage.removeItem(r),t.set(e,a,n);a&&o&&"localStorage"!=i.type&&u.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(Hl,t.a).then((function(t){return t?Gl(t):e}))}))}))})).then((function(e){return t.c=e,Wl(t,e.F)})).o((function(){t.c||(t.c=e)}))}(this),this.b.addListener(Gl("local"),this.a,E(this.g,this))}function Wl(t,e){var n,r=[];for(n in Ku)Ku[n]!==e&&r.push(Ju(t.b,Gl(Ku[n]),t.a));return r.push(Ju(t.b,Hl,t.a)),function(t){return new be((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++)Oe(t[s],T(o,s),a);else e(i)}))}(r)}ql.prototype.g=function(){var t=this,e=Gl("local");Ql(this,(function(){return xe().then((function(){return t.c&&"local"!=t.c.F?t.b.get(e,t.a):null})).then((function(n){if(n)return Wl(t,"local").then((function(){t.c=e}))}))}))};
2var Hl={name:"persistence",F:"session"};function Gl(t){return{name:"authUser",F:t}}function Kl(t,e){return Ql(t,(function(){return t.b.set(t.c,e.v(),t.a)}))}function $l(t){return Ql(t,(function(){return Ju(t.b,t.c,t.a)}))}function Xl(t,e){return Ql(t,(function(){return t.b.get(t.c,t.a).then((function(t){return t&&e&&(t.authDomain=e),Fl(t||{})}))}))}function Ql(t,e){return t.f=t.f.then(e,e),t.f}function Yl(t){if(this.l=!1,Gr(this,"settings",new Wc),Gr(this,"app",t),!af(this).options||!af(this).options.apiKey)throw new I("invalid-api-key");t=r.a.SDK_VERSION?kr(r.a.SDK_VERSION):null,this.b=new Ka(af(this).options&&af(this).options.apiKey,C(S),t),this.P=[],this.m=[],this.O=[],this.$b=r.a.INTERNAL.createSubscribe(E(this.xc,this)),this.W=void 0,this.ac=r.a.INTERNAL.createSubscribe(E(this.yc,this)),rf(this,null),this.i=new ql(af(this).options.apiKey+":"+af(this).name),this.B=new Vl(af(this).options.apiKey+":"+af(this).name),this.Z=lf(this,function(t){var e=af(t).options.authDomain,n=function(t){var e=function(t,e){return t.b.get(Bl,t.a).then((function(t){return t&&e&&(t.authDomain=e),Fl(t||{})}))}(t.B,af(t).options.authDomain).then((function(e){return(t.D=e)&&(e.ga=t.B),zl(t.B)}));return lf(t,e)}(t).then((function(){return Xl(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 Kl(t.i,e).then((function(){return e}))})).o((function(n){return"auth/network-request-failed"==n.code?e:$l(t.i)}))):null})).then((function(e){rf(t,e||null)}));return lf(t,n)}(this)),this.h=lf(this,function(t){return t.Z.then((function(){return ef(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(Gl("local"),e.a,t.oa)}}))}(this)),this.aa=!1,this.oa=E(this.Xc,this),this.Ma=E(this.ca,this),this.xa=E(this.jc,this),this.ya=E(this.uc,this),this.za=E(this.vc,this),this.a=null,function(t){var e=af(t).options.authDomain,n=af(t).options.apiKey;e&&Or()&&(t.Zb=t.Z.then((function(){if(!t.l){if(t.a=Mc(e,n,af(t).name),Oc(t.a,t),sf(t)&&El(sf(t)),t.D){El(t.D);var r=t.D;r.va(t.ja()),pl(r,t),dl(r=t.D,t.N),vl(r,t),t.D=null}return t.a}})))}(this),this.INTERNAL={},this.INTERNAL.delete=E(this.delete,this),this.INTERNAL.logFramework=E(this.Ec,this),this.s=0,bn.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 Jl(t){$e.call(this,"languageCodeChanged"),this.g=t}function Zl(t){$e.call(this,"frameworkChanged"),this.c=t}function tf(t){return t.Zb||Se(new I("auth-domain-config-required"))}function ef(t){if(!Or())return Se(new I("operation-not-supported-in-this-environment"));var e=tf(t).then((function(){return t.a.pa()})).then((function(t){return t?$r(t):null}));return lf(t,e)}function nf(t,e){var n={};return n.apiKey=af(t).options.apiKey,n.authDomain=af(t).options.authDomain,n.appName=af(t).name,t.Z.then((function(){return function(t,e,n,r){var i=new hl(t,e);return n&&(i.ga=n),r&&dl(i,r),i.reload().then((function(){return i}))}(n,e,t.B,t.Ea())})).then((function(e){return sf(t)&&e.uid==sf(t).uid?(Al(sf(t),e),t.ca(e)):(rf(t,e),El(e),t.ca(e))})).then((function(){cf(t)}))}function rf(t,e){sf(t)&&(function(t,e){X(t.R,(function(t){return t==e}))}(sf(t),t.Ma),ln(sf(t),"tokenChanged",t.xa),ln(sf(t),"userDeleted",t.ya),ln(sf(t),"userInvalidated",t.za),gl(sf(t))),e&&(e.R.push(t.Ma),sn(e,"tokenChanged",t.xa),sn(e,"userDeleted",t.ya),sn(e,"userInvalidated",t.za),0<t.s&&ml(e)),Gr(t,"currentUser",e),e&&(e.va(t.ja()),pl(e,t),dl(e,t.N),vl(e,t))}function of(t,e){var n=null,r=null;return lf(t,e.then((function(e){return n=Do(e),r=Gi(e),nf(t,e)}),(function(e){var n=null;throw e&&"auth/multi-factor-auth-required"===e.code&&(n=Jc(e.v(),t,E(t.ic,t))),n||e})).then((function(){return $r({user:sf(t),credential:n,additionalUserInfo:r,operationType:"signIn"})})))}function af(t){return t.app}function sf(t){return t.currentUser}function uf(t){return sf(t)&&sf(t)._lat||null}function cf(t){if(t.aa){for(var e=0;e<t.m.length;e++)t.m[e]&&t.m[e](uf(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](uf(t))}}function lf(t,e){return t.P.push(e),e.ma((function(){$(t.P,e)})),e}function ff(){}function hf(){this.a={},this.b=1e12}ql.prototype.tb=function(t){var e=null,n=this;return function(t){var e=new I("invalid-persistence-type"),n=new I("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(gr()){case"ReactNative":if("session"===t)throw n;break;case"Node":if("none"!==t)throw n;break;case"Worker":if("session"===t||!xu()&&"none"!==t)throw n;break;default:if(!Sr()&&"none"!==t)throw n}}(t),Ql(this,(function(){return t!=n.c.F?n.b.get(n.c,n.a).then((function(r){return e=r,Wl(n,t)})).then((function(){if(n.c=Gl(t),e)return n.b.set(n.c,e,n.a)})):xe()}))},k(Yl,bn),k(Jl,$e),k(Zl,$e),(e=Yl.prototype).tb=function(t){return lf(this,t=this.i.tb(t))},e.va=function(t){this.$===t||this.l||(this.$=t,ts(this.b,this.$),this.dispatchEvent(new Jl(this.ja())))},e.ja=function(){return this.$},e.dd=function(){var t=u.navigator;this.va(t&&(t.languages&&t.languages[0]||t.language||t.userLanguage)||null)},e.Ec=function(t){this.N.push(t),es(this.b,r.a.SDK_VERSION?kr(r.a.SDK_VERSION,this.N):null),this.dispatchEvent(new Zl(this.N))},e.Ea=function(){return Y(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:af(this).options.apiKey,authDomain:af(this).options.authDomain,appName:af(this).name,currentUser:sf(this)&&sf(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?E(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 of(i,vs(i.b,o))}))},e.Vc=function(t){if(!Or())return Se(new I("operation-not-supported-in-this-environment"));var e=this,n=Hi(t.providerId),i=Dr(),o=null;(!Cr()||yr())&&af(this).options.authDomain&&t.isOAuthProvider&&(o=pu(af(this).options.authDomain,af(this).options.apiKey,af(this).name,"signInViaPopup",t,null,i,r.a.SDK_VERSION||null,null,null,this.S()));var a=fr(o,n&&n.ta,n&&n.sa);return lf(this,n=tf(this).then((function(n){return Pc(n,a,"signInViaPopup",t,i,!!o,e.S())})).then((function(){return new be((function(t,n){e.la("signInViaPopup",null,new I("cancelled-popup-request"),e.g),e.f=t,e.w=n,e.g=i,e.c=Dc(e.a,e,"signInViaPopup",a,i)}))})).then((function(t){return a&&lr(a),t?$r(t):null})).o((function(t){throw a&&lr(a),t})))},e.Wc=function(t){if(!Or())return Se(new I("operation-not-supported-in-this-environment"));var e=this;return lf(this,tf(this).then((function(){return function(t){return Ql(t,(function(){return t.b.set(Hl,t.c.F,t.a)}))}(e.i)})).then((function(){return jc(e.a,"signInViaRedirect",t,void 0,e.S())})))},e.pa=function(){var t=this;return ef(this).then((function(e){return t.a&&Vc(t.a.b),e})).o((function(e){throw t.a&&Vc(t.a.b),e}))},e.bd=function(t){if(!t)return Se(new I("null-user"));if(this.R!=t.tenantId)return Se(new I("tenant-id-mismatch"));var e=this,n={};n.apiKey=af(this).options.apiKey,n.authDomain=af(this).options.authDomain,n.appName=af(this).name;var r=function(t,e,n,r){var i=t.b,o={};return o[Xa]=i.b&&i.b.toString(),o.refreshToken=i.a,e=new hl(e||{apiKey:t.l,authDomain:t.s,appName:t.m},o),n&&(e.ga=n),r&&dl(e,r),Al(e,t),e}(t,n,e.B,e.Ea());return lf(this,this.h.then((function(){if(af(e).options.apiKey!=t.l)return r.reload()})).then((function(){return sf(e)&&t.uid==sf(e).uid?(Al(sf(e),t),e.ca(t)):(rf(e,r),El(r),e.ca(r))})).then((function(){cf(e)})))},e.wb=function(){var t=this;return lf(this,this.h.then((function(){return t.a&&Vc(t.a.b),sf(t)?(rf(t,null),$l(t.i).then((function(){cf(t)}))):xe()})))},e.Xc=function(){var t=this;return Xl(this.i,af(this).options.authDomain).then((function(e){if(!t.l){var n;if(n=sf(t)&&e){n=sf(t).uid;var r=e.uid;n=void 0!==n&&null!==n&&""!==n&&void 0!==r&&null!==r&&""!==r&&n==r}if(n)return Al(sf(t),e),sf(t).I();
2(sf(t)||e)&&(rf(t,e),e&&(El(e),e.ga=t.B),t.a&&Oc(t.a,t),cf(t))}}))},e.ca=function(t){return Kl(this.i,t)},e.jc=function(){cf(this),this.ca(sf(this))},e.uc=function(){this.wb()},e.vc=function(){this.wb()},e.ic=function(t){var e=this;return this.h.then((function(){return of(e,xe(t))}))},e.xc=function(t){var e=this;this.addAuthTokenListener((function(){t.next(sf(e))}))},e.yc=function(t){var e=this;!function(t,e){t.O.push(e),lf(t,t.h.then((function(){!t.l&&K(t.O,e)&&t.W!==t.getUid()&&(t.W=t.getUid(),e(uf(t)))})))}(this,(function(){t.next(sf(e))}))},e.Gc=function(t,e,n){var r=this;return this.aa&&Promise.resolve().then((function(){d(t)?t(sf(r)):d(t.next)&&t.next(sf(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(),d(t)?t(sf(r)):d(t.next)&&t.next(sf(r))})),this.ac(t,e,n)},e.kc=function(t){var e=this;return lf(this,this.h.then((function(){return sf(e)?sf(e).I(t).then((function(t){return{accessToken:t}})):null})))},e.Rc=function(t){var e=this;return this.h.then((function(){return of(e,Js(e.b,Gs,{token:t}))})).then((function(t){var n=t.user;return Ol(n,"isAnonymous",!1),e.ca(n),t}))},e.Sc=function(t,e){var n=this;return this.h.then((function(){return of(n,Js(n.b,Ks,{email:t,password:e}))}))},e.cc=function(t,e){var n=this;return this.h.then((function(){return of(n,Js(n.b,Es,{email:t,password:e}))}))},e.Ya=function(t){var e=this;return this.h.then((function(){return of(e,t.ia(e.b))}))},e.Qc=function(t){return Wr("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=sf(t);if(e&&e.isAnonymous){var n=$r({providerId:null,isNewUser:!1});return $r({user:e,credential:null,additionalUserInfo:n,operationType:"signIn"})}return of(t,t.b.vb()).then((function(e){var n=e.user;return Ol(n,"isAnonymous",!0),t.ca(n),e}))}))},e.getUid=function(){return sf(this)&&sf(this).uid||null},e.bc=function(t){this.addAuthTokenListener(t),this.s++,0<this.s&&sf(this)&&ml(sf(this))},e.Nc=function(t){var e=this;q(this.m,(function(n){n==t&&e.s--})),0>this.s&&(this.s=0),0==this.s&&sf(this)&&gl(sf(this)),this.removeAuthTokenListener(t)},e.addAuthTokenListener=function(t){var e=this;this.m.push(t),lf(this,this.h.then((function(){e.l||K(e.m,t)&&t(uf(e))})))},e.removeAuthTokenListener=function(t){X(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(Gl("local"),t.a,this.oa),this.a&&(Ac(this.a,this),Vc(this.a.b)),Promise.resolve()},e.fc=function(t){return lf(this,function(t,e){return Js(t,Ts,{identifier:e,continueUri:Ar()?sr():"http://localhost"}).then((function(t){return t.signinMethods||[]}))}(this.b,t))},e.zc=function(t){return!!Ao(t)},e.sb=function(t,e){var n=this;return lf(this,xe().then((function(){var t=new xi(e);if(!t.c)throw new I("argument-error",Ai+" must be true when sending sign in link to email");return Li(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 lf(this,this.b.jb(t,e).then((function(){})))},e.Pa=function(t){return lf(this,this.b.Pa(t).then((function(t){return new ri(t)})))},e.fb=function(t){return lf(this,this.b.fb(t).then((function(){})))},e.rb=function(t,e){var n=this;return lf(this,xe().then((function(){return"undefined"===typeof e||pt(e)?{}:Li(new xi(e))})).then((function(e){return n.b.rb(t,e)})).then((function(){})))},e.Uc=function(t,e){return lf(this,Gc(this,t,e,E(this.Ya,this)))},e.Tc=function(t,e){var n=this;return lf(this,xe().then((function(){var r=e||sr(),i=Oo(t,r);if(!(r=Ao(r)))throw new I("argument-error","Invalid email link!");if(r.tenantId!==n.S())throw new I("tenant-id-mismatch");return n.Ya(i)})))},ff.prototype.render=function(){},ff.prototype.reset=function(){},ff.prototype.getResponse=function(){},ff.prototype.execute=function(){};var pf=null;function df(t,e){return(e=vf(e))&&t.a[e]||null}function vf(t){return(t="undefined"===typeof t?1e12:t)?t.toString():null}function yf(t,e){this.g=!1,this.c=e,this.a=this.b=null,this.h="invisible"!==this.c.size,this.f=oe(t);var n=this;this.i=function(){n.execute()},this.h?this.execute():sn(this.f,"click",this.i)}function mf(t){if(t.g)throw Error("reCAPTCHA mock was already deleted!")}function gf(){}function bf(){}hf.prototype.render=function(t,e){return this.a[this.b.toString()]=new yf(t,e),this.b++},hf.prototype.reset=function(t){var e=df(this,t);t=vf(t),e&&t&&(e.delete(),delete this.a[t])},hf.prototype.getResponse=function(t){return(t=df(this,t))?t.getResponse():null},hf.prototype.execute=function(t){(t=df(this,t))&&t.execute()},yf.prototype.getResponse=function(){return mf(this),this.b},yf.prototype.execute=function(){mf(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))},yf.prototype.delete=function(){mf(this),this.g=!0,clearTimeout(this.a),this.a=null,ln(this.f,"click",this.i)},Gr(gf,"FACTOR_ID","phone"),bf.prototype.g=function(){return pf||(pf=new hf),xe(pf)},bf.prototype.c=function(){};var wf=null;function Ef(){this.b=u.grecaptcha?1/0:0,this.f=null,this.a="__rcb"+Math.floor(1e6*Math.random()).toString()}var Tf=new gt(Et,"https://www.google.com/recaptcha/api.js?onload=%{onload}&render=explicit&hl=%{hl}"),_f=new Ur(3e4,6e4);Ef.prototype.g=function(t){var e=this;return new be((function(n,r){var i=setTimeout((function(){r(new I("network-request-failed"))}),_f.get());!u.grecaptcha||t!==e.f&&!e.b?(u[e.a]=function(){if(u.grecaptcha){e.f=t;var o=u.grecaptcha.render;u.grecaptcha.render=function(t,n){return t=o(t,n),e.b++,t},clearTimeout(i),n(u.grecaptcha)}else clearTimeout(i),r(new I("internal-error"));delete u[e.a]},xe(Va(It(Tf,{onload:e.a,hl:t||""}))).o((function(){clearTimeout(i),r(new I("internal-error","Unable to load external reCAPTCHA dependencies!"))}))):(clearTimeout(i),n(u.grecaptcha))}))},Ef.prototype.c=function(){this.b--};var kf=null;function If(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?(wf||(wf=new bf),a=wf):(kf||(kf=new Ef),a=kf),this.m=a,this.a=n||{theme:"light",type:"image"},this.h=[],this.a[Of])throw new I("argument-error","sitekey should not be provided for reCAPTCHA as one is automatically provisioned for the current project.");if(this.i="invisible"===this.a[Af],!u.document)throw new I("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment with DOM support.");if(!oe(e)||!this.i&&oe(e).hasChildNodes())throw new I("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 c=this.a[xf];this.a[xf]=function(t){if(Nf(s,t),"function"===typeof c)c(t);else if("string"===typeof c){var e=xr(c,u);"function"===typeof e&&e(t)}};var l=this.a[Sf];this.a[Sf]=function(){if(Nf(s,null),"function"===typeof l)l();else if("string"===typeof l){var t=xr(l,u);"function"===typeof t&&t()}}}var xf="callback",Sf="expired-callback",Of="sitekey",Af="size";function Nf(t,e){for(var n=0;n<t.l.length;n++)try{t.l[n](e)}catch(r){}}function Cf(t,e){return t.h.push(e),e.ma((function(){$(t.h,e)})),e}function Pf(t){if(t.D)throw new I("internal-error","RecaptchaVerifier instance has been destroyed.")}function Rf(t,e,n){var i=!1;try{this.b=n||r.a.app()}catch(s){throw new I("argument-error","No firebase.app.App instance is currently initialized.")}if(!this.b.options||!this.b.options.apiKey)throw new I("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.a.SDK_VERSION?kr(r.a.SDK_VERSION,a):null,If.call(this,n,t,e,(function(){try{var t=o.b.auth().ja()}catch(e){t=null}return t}),a,C(S),i)}function jf(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 I("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>=Df.length)throw new I("internal-error","Argument validator received an unsupported number of arguments.");
2n=Df[i],r=(r?"":n+" argument ")+(e.name?'"'+e.name+'" ':"")+"must be "+e.J+".";break t}r=null}}if(r)throw new I("argument-error",t+" failed: "+r)}(e=If.prototype).Ga=function(){var t=this;return this.f?this.f:this.f=Cf(this,xe().then((function(){if(Ar()&&!mr())return dr();throw new I("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,Ds,{})})).then((function(e){t.a[Of]=e.recaptchaSiteKey})).o((function(e){throw t.f=null,e})))},e.render=function(){Pf(this);var t=this;return Cf(this,this.Ga().then((function(){if(null===t.c){var e=t.u;if(!t.i){var n=oe(e);e=function(t,e,n){var r=arguments,i=document,o=String(r[0]),a=r[1];if(!ie&&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={};yt(s,a),delete s.type,a=s}o.push(">"),o=o.join("")}return o=fe(i,o),a&&("string"===typeof a?o.className=a:Array.isArray(a)?o.className=a.join(" "):ae(o,a)),2<r.length&&le(i,o,r),o}("DIV"),n.appendChild(e)}t.c=t.g.render(e,t.a)}return t.c})))},e.verify=function(){Pf(this);var t=this;return Cf(this,this.render().then((function(e){return new be((function(n){var r=t.g.getResponse(e);if(r)n(r);else{t.l.push((function e(r){r&&(function(t,e){X(t.l,(function(t){return t==e}))}(t,e),n(r))})),t.i&&t.g.execute(t.c)}}))})))},e.reset=function(){Pf(this),null!==this.c&&this.g.reset(this.c)},e.clear=function(){Pf(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=oe(this.u);for(var e;e=t.firstChild;)t.removeChild(e)}},k(Rf,If);var Df="First Second Third Fourth Fifth Sixth Seventh Eighth Ninth".split(" ");function Lf(t,e){return{name:t||"",J:"a valid string",optional:!!e,K:function(t){return"string"===typeof t}}}function Mf(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:v}}function Ff(t,e){return{name:t||"",J:"a function",optional:!!e,K:d}}function Vf(t,e){return{name:t||"",J:"null",optional:!!e,K:function(t){return null===t}}}function Bf(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 v(t)&&"string"===typeof t.type&&t.type===e&&d(t.Fa)}function qf(t){return v(t)&&"string"===typeof t.uid}function Wf(){return{name:"applicationVerifier",J:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,K:function(t){return!(!t||"string"!==typeof t.type||!d(t.verify))}}}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 Gf(t,e){for(var n in e){var r=e[n].name;t[r]=Xf(r,t[n],e[n].j)}}function Kf(t,e){for(var n in e){var r=e[n].name;r!==n&&Object.defineProperty(t,r,{get:T((function(t){return this[t]}),n),set:T((function(t,e,n,r){jf(t,[n],[r],!0),this[e]=r}),r,n,e[n].gb),enumerable:!0})}}function $f(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 jf(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}Gf(Yl.prototype,{fb:{name:"applyActionCode",j:[Lf("code")]},Pa:{name:"checkActionCode",j:[Lf("code")]},jb:{name:"confirmPasswordReset",j:[Lf("code"),Lf("newPassword")]},cc:{name:"createUserWithEmailAndPassword",j:[Lf("email"),Lf("password")]},fc:{name:"fetchSignInMethodsForEmail",j:[Lf("email")]},pa:{name:"getRedirectResult",j:[]},zc:{name:"isSignInWithEmailLink",j:[Lf("emailLink")]},Fc:{name:"onAuthStateChanged",j:[Hf(Uf(),Ff(),"nextOrObserver"),Ff("opt_error",!0),Ff("opt_completed",!0)]},Gc:{name:"onIdTokenChanged",j:[Hf(Uf(),Ff(),"nextOrObserver"),Ff("opt_error",!0),Ff("opt_completed",!0)]},rb:{name:"sendPasswordResetEmail",j:[Lf("email"),Hf(Uf("opt_actionCodeSettings",!0),Vf(null,!0),"opt_actionCodeSettings",!0)]},sb:{name:"sendSignInLinkToEmail",j:[Lf("email"),Uf("actionCodeSettings")]},tb:{name:"setPersistence",j:[Lf("persistence")]},Qc:{name:"signInAndRetrieveDataWithCredential",j:[Bf()]},vb:{name:"signInAnonymously",j:[]},Ya:{name:"signInWithCredential",j:[Bf()]},Rc:{name:"signInWithCustomToken",j:[Lf("token")]},Sc:{name:"signInWithEmailAndPassword",j:[Lf("email"),Lf("password")]},Tc:{name:"signInWithEmailLink",j:[Lf("email"),Lf("emailLink",!0)]},Uc:{name:"signInWithPhoneNumber",j:[Lf("phoneNumber"),Wf()]},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"))}}]}
2,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 hl)}},Vf(),"user")]},wb:{name:"signOut",j:[]},toJSON:{name:"toJSON",j:[Lf(null,!0)]},dd:{name:"useDeviceLanguage",j:[]},fd:{name:"verifyPasswordResetCode",j:[Lf("code")]}}),Kf(Yl.prototype,{lc:{name:"languageCode",gb:Hf(Lf(),Vf(),"languageCode")},ti:{name:"tenantId",gb:Hf(Lf(),Vf(),"tenantId")}}),Yl.Persistence=Ku,Yl.Persistence.LOCAL="local",Yl.Persistence.SESSION="session",Yl.Persistence.NONE="none",Gf(hl.prototype,{delete:{name:"delete",j:[]},mc:{name:"getIdTokenResult",j:[Mf("opt_forceRefresh",!0)]},I:{name:"getIdToken",j:[Mf("opt_forceRefresh",!0)]},Ac:{name:"linkAndRetrieveDataWithCredential",j:[Bf()]},mb:{name:"linkWithCredential",j:[Bf()]},Bc:{name:"linkWithPhoneNumber",j:[Lf("phoneNumber"),Wf()]},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:[Bf()]},pb:{name:"reauthenticateWithCredential",j:[Bf()]},Kc:{name:"reauthenticateWithPhoneNumber",j:[Lf("phoneNumber"),Wf()]},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),Vf(null,!0),"opt_actionCodeSettings",!0)]},toJSON:{name:"toJSON",j:[Lf(null,!0)]},ad:{name:"unlink",j:[Lf("provider")]},xb:{name:"updateEmail",j:[Lf("email")]},yb:{name:"updatePassword",j:[Lf("password")]},cd:{name:"updatePhoneNumber",j:[Bf("phone")]},zb:{name:"updateProfile",j:[Uf("profile")]},Ab:{name:"verifyBeforeUpdateEmail",j:[Lf("email"),Hf(Uf("opt_actionCodeSettings",!0),Vf(null,!0),"opt_actionCodeSettings",!0)]}}),Gf(hf.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),Gf(ff.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),Gf(be.prototype,{ma:{name:"finally"},o:{name:"catch"},then:{name:"then"}}),Kf(Wc.prototype,{appVerificationDisabled:{name:"appVerificationDisabledForTesting",gb:Mf("appVerificationDisabledForTesting")}}),Gf(Hc.prototype,{confirm:{name:"confirm",j:[Lf("verificationCode")]}}),$f(oo,"fromJSON",(function(t){t="string"===typeof t?JSON.parse(t):t;for(var e,n=[ho,xo,Co,co],r=0;r<n.length;r++)if(e=n[r](t))return e;return null}),[Hf(Lf(),Uf(),"json")]),$f(So,"credential",(function(t,e){return new Io(t,e)}),[Lf("email"),Lf("password")]),Gf(Io.prototype,{v:{name:"toJSON",j:[Lf(null,!0)]}}),Gf(mo.prototype,{Aa:{name:"addScope",j:[Lf("scope")]},Ia:{name:"setCustomParameters",j:[Uf("customOAuthParameters")]}}),$f(mo,"credential",go,[Hf(Lf(),Uf(),"token")]),$f(So,"credentialWithLink",Oo,[Lf("email"),Lf("emailLink")]),Gf(bo.prototype,{Aa:{name:"addScope",j:[Lf("scope")]},Ia:{name:"setCustomParameters",j:[Uf("customOAuthParameters")]}}),$f(bo,"credential",wo,[Hf(Lf(),Uf(),"token")]),Gf(Eo.prototype,{Aa:{name:"addScope",j:[Lf("scope")]},Ia:{name:"setCustomParameters",j:[Uf("customOAuthParameters")]}}),$f(Eo,"credential",To,[Hf(Lf(),Hf(Uf(),Vf()),"idToken"),Hf(Lf(),Vf(),"accessToken",!0)]),Gf(_o.prototype,{Ia:{name:"setCustomParameters",j:[Uf("customOAuthParameters")]}}),$f(_o,"credential",ko,[Hf(Lf(),Uf(),"token"),Lf("secret",!0)]),Gf(yo.prototype,{Aa:{name:"addScope",j:[Lf("scope")]}
2,credential:{name:"credential",j:[Hf(Lf(),Hf(Uf(),Vf()),"optionsOrIdToken"),Hf(Lf(),Vf(),"accessToken",!0)]},Ia:{name:"setCustomParameters",j:[Uf("customOAuthParameters")]}}),Gf(lo.prototype,{v:{name:"toJSON",j:[Lf(null,!0)]}}),Gf(so.prototype,{v:{name:"toJSON",j:[Lf(null,!0)]}}),$f(Ro,"credential",jo,[Lf("verificationId"),Lf("verificationCode")]),Gf(Ro.prototype,{cb:{name:"verifyPhoneNumber",j:[Hf(Lf(),{name:"phoneInfoOptions",J:"valid phone info options",optional:!1,K:function(t){return!!t&&(t.session&&t.phoneNumber?zf(t.session,ro)&&"string"===typeof t.phoneNumber:t.session&&t.multiFactorHint?zf(t.session,io)&&qf(t.multiFactorHint):t.session&&t.multiFactorUid?zf(t.session,io)&&"string"===typeof t.multiFactorUid:!!t.phoneNumber&&"string"===typeof t.phoneNumber)}},"phoneInfoOptions"),Wf()]}}),Gf(No.prototype,{v:{name:"toJSON",j:[Lf(null,!0)]}}),Gf(I.prototype,{toJSON:{name:"toJSON",j:[Lf(null,!0)]}}),Gf(qo.prototype,{toJSON:{name:"toJSON",j:[Lf(null,!0)]}}),Gf(zo.prototype,{toJSON:{name:"toJSON",j:[Lf(null,!0)]}}),Gf(Yc.prototype,{toJSON:{name:"toJSON",j:[Lf(null,!0)]}}),Gf($c.prototype,{Pc:{name:"resolveSignIn",j:[{name:"multiFactorAssertion",J:"a valid multiFactorAssertion",optional:!1,K:function(t){return!!t&&!!t.ob}}]}}),Gf(rl.prototype,{Ob:{name:"getSession",j:[]},dc:{name:"enroll",j:[{name:"multiFactorAssertion",J:"a valid multiFactorAssertion",optional:!1,K:function(t){return!!t&&!!t.ob}},Lf("displayName",!0)]},$c:{name:"unenroll",j:[Hf({name:"multiFactorInfo",J:"a valid multiFactorInfo",optional:!1,K:qf},Lf(),"multiFactorInfoIdentifier")]}}),Gf(Rf.prototype,{clear:{name:"clear",j:[]},render:{name:"render",j:[]},verify:{name:"verify",j:[]}}),$f(mi,"parseLink",Ii,[Lf("link")]),$f(gf,"assertion",(function(t){return new el(t)}),[Bf("phone")]),function(){if("undefined"===typeof r.a||!r.a.INTERNAL||!r.a.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:oi,PASSWORD_RESET:"PASSWORD_RESET",RECOVER_EMAIL:"RECOVER_EMAIL",REVERT_SECOND_FACTOR_ADDITION:ii,VERIFY_AND_CHANGE_EMAIL:ai,VERIFY_EMAIL:"VERIFY_EMAIL"}},Auth:Yl,AuthCredential:oo,Error:I};$f(t,"EmailAuthProvider",So,[]),$f(t,"FacebookAuthProvider",mo,[]),$f(t,"GithubAuthProvider",bo,[]),$f(t,"GoogleAuthProvider",Eo,[]),$f(t,"TwitterAuthProvider",_o,[]),$f(t,"OAuthProvider",yo,[Lf("providerId")]),$f(t,"SAMLAuthProvider",vo,[Lf("providerId")]),$f(t,"PhoneAuthProvider",Ro,[{name:"auth",J:"an instance of Firebase Auth",optional:!0,K:function(t){return!!(t&&t instanceof Yl)}}]),$f(t,"RecaptchaVerifier",Rf,[Hf(Lf(),{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.a.app.App)}}]),$f(t,"ActionCodeURL",mi,[]),$f(t,"PhoneMultiFactorGenerator",gf,[]),r.a.INTERNAL.registerComponent({name:"auth",instanceFactory:function(t){return new Yl(t=t.getProvider("app").getImmediate())},multipleInstances:!1,serviceProps:t,instantiationMode:"LAZY",type:"PUBLIC"}),r.a.INTERNAL.registerComponent({name:"auth-internal",instanceFactory:function(t){return{getUid:E((t=t.getProvider("auth").getImmediate()).getUid,t),getToken:E(t.kc,t),addAuthTokenListener:E(t.bc,t),removeAuthTokenListener:E(t.Nc,t)}},multipleInstances:!1,instantiationMode:"LAZY",type:"PRIVATE"}),r.a.registerVersion("@firebase/auth","0.14.5"),r.a.INTERNAL.extendNamespace({User:hl})}()}).apply("undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})}).call(this,n(48))},,function(t,e,n){"use strict";var r=n(107);function i(){}function o(){}o.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}
2;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){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,c=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,h=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,d=r?Symbol.for("react.suspense"):60113,v=r?Symbol.for("react.suspense_list"):60120,y=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,E=r?Symbol.for("react.scope"):60119;function T(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 d:return t;default:switch(t=t&&t.$$typeof){case l:case p:case m:case y:case c:return t;default:return e}}case o:return e}}}function _(t){return T(t)===h}e.AsyncMode=f,e.ConcurrentMode=h,e.ContextConsumer=l,e.ContextProvider=c,e.Element=i,e.ForwardRef=p,e.Fragment=a,e.Lazy=m,e.Memo=y,e.Portal=o,e.Profiler=u,e.StrictMode=s,e.Suspense=d,e.isAsyncMode=function(t){return _(t)||T(t)===f},e.isConcurrentMode=_,e.isContextConsumer=function(t){return T(t)===l},e.isContextProvider=function(t){return T(t)===c},e.isElement=function(t){return"object"===typeof t&&null!==t&&t.$$typeof===i},e.isForwardRef=function(t){return T(t)===p},e.isFragment=function(t){return T(t)===a},e.isLazy=function(t){return T(t)===m},e.isMemo=function(t){return T(t)===y},e.isPortal=function(t){return T(t)===o},e.isProfiler=function(t){return T(t)===u},e.isStrictMode=function(t){return T(t)===s},e.isSuspense=function(t){return T(t)===d},e.isValidElementType=function(t){return"string"===typeof t||"function"===typeof t||t===a||t===h||t===u||t===s||t===d||t===v||"object"===typeof t&&null!==t&&(t.$$typeof===m||t.$$typeof===y||t.$$typeof===c||t.$$typeof===l||t.$$typeof===p||t.$$typeof===b||t.$$typeof===w||t.$$typeof===E||t.$$typeof===g)},e.typeOf=T},,,,,,,,,,,,,,,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){"use strict";n.r(e),n.d(e,"default",(function(){return l}));var r=n(1),i=n(2),o=n(0),a=(n(6),n(3)),s=n(7),u=n(21),c=o.forwardRef((function(t,e){var n=t.children,s=t.classes,c=t.className,l=t.color,f=void 0===l?"inherit":l,h=t.component,p=void 0===h?"svg":h,d=t.fontSize,v=void 0===d?"default":d,y=t.htmlColor,m=t.titleAccess,g=t.viewBox,b=void 0===g?"0 0 24 24":g,w=Object(i.a)(t,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return(o.createElement(p,Object(r.a)({className:Object(a.a)(s.root,c,"inherit"!==f&&s["color".concat(Object(u.a)(f))],"default"!==v&&s["fontSize".concat(Object(u.a)(v))]),focusable:"false",viewBox:b,color:y,"aria-hidden":!m||void 0,role:m?"img":void 0,ref:e},w),n,m?o.createElement("title",null,m):null))}));c.muiName="SvgIcon";var l=Object(s.a)((function(t){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:t.typography.pxToRem(24),transition:t.transitions.create("fill",{duration:t.transitions.duration.shorter})},colorPrimary:{color:t.palette.primary.main},colorSecondary:{color:t.palette.secondary.main},colorAction:{color:t.palette.action.active},colorError:{color:t.palette.error.main},colorDisabled:{color:t.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:t.typography.pxToRem(20)},fontSizeLarge:{fontSize:t.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(c)},function(t,e,n){"use strict";var r=n(4),i=n.n(r),o=n(26),a=n(49),s=function(){function t(t,e){this.co
2de_=x(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 x(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:!0,configurable:!0}),Object.defineProperty(t.prototype,"code",{get:function(){return this.code_},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"message",{get:function(){return this.message_},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"serverResponse",{get:function(){return this.serverResponse_},enumerable:!0,configurable:!0}),t}(),u="unknown",c="object-not-found",l="quota-exceeded",f="unauthenticated",h="unauthorized",p="retry-limit-exceeded",d="canceled",v="invalid-url",y="invalid-default-bucket",m="cannot-slice-blob",g="server-file-wrong-size",b="no-download-url",w="invalid-argument",E="invalid-argument-count",T="app-deleted",_="invalid-root-operation",k="invalid-format",I="internal-error";function x(t){return"storage/"+t}function S(){return new s(u,"An unknown error occurred, please check the error payload for server response.")}function O(){return new s(d,"User canceled the upload/download.")}function A(){return new s(m,"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 C(t,e,n){return new s(w,"Invalid argument in `"+e+"` at index "+t+": "+n)}function P(){return new s(T,"The Firebase app was deleted.")}function R(t,e){return new s(k,"String does not match format '"+t+"': "+e)}function j(t){throw new s(I,"Internal error: "+t)}var D={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"};function L(t){switch(t){case D.RAW:case D.BASE64:case D.BASE64URL:case D.DATA_URL:return;default:throw"Expected one of the event types: ["+D.RAW+", "+D.BASE64+", "+D.BASE64URL+", "+D.DATA_URL+"]."}}var M=function(t,e){this.data=t,this.contentType=e||null};function U(t,e){switch(t){case D.RAW:return new M(F(e));case D.BASE64:case D.BASE64URL:return new M(V(t,e));case D.DATA_URL:return new M(function(t){var e=new B(t);return e.base64?V(D.BASE64,e.rest):function(t){var e;try{e=decodeURIComponent(t)}catch(n){throw R(D.DATA_URL,"Malformed data URL.")}return F(e)}(e.rest)}(e),new B(e).contentType)}throw S()}function F(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 V(t,e){switch(t){case D.BASE64:var n=-1!==e.indexOf("-"),r=-1!==e.indexOf("_");if(n||r)throw R(t,"Invalid character '"+(n?"-":"_")+"' found: is it base64url encoded?");break;case D.BASE64URL:var i=-1!==e.indexOf("+"),o=-1!==e.indexOf("/");if(i||o)throw R(t,"Invalid character '"+(i?"+":"/")+"' found: is it base64 encoded?");e=e.replace(/-/g,"+").replace(/_/g,"/")}var a;try{a=atob(e)}catch(c){throw R(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 R(D.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 z,q={STATE_CHANGED:"state_changed"},W="running",H="pausing",G="paused",K="success",$="canceling",X="canceled",Q="error",Y={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"};function J(t){switch(t){case W:case H:case $:return Y.RUNNING;case G:return Y.PAUSED;case K:return Y.SUCCESS;case X:return Y.CANCELED;case Q:default:return Y.ERROR}}function Z(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"}(z||(z={}));var ct=function(){function t(){var t=this;this.sent_=!1,this.xhr_=new XMLHttpRequest,this.errorCode_=z.NO_ERROR,this.sendPromise_=new Promise((function(e){t.xhr_.addEventListener("abort",(function(){t.errorCode_=z.ABORT,e(t)})),t.xhr_.addEventListener("error",(function(){t.errorCode_=z.NETWORK_ERROR,e(t)})),t.xhr_.addEventListener("load",(function(){e(t)}))}))}return t.prototype.send=function(t,e,n,r){if(this.sent_)throw j("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(e,t,!0),Z(r))for(var i in r)r.hasOwnProperty(i)&&this.xhr_.setRequestHeader(i,r[i].toString());return Z(n)?this.xhr_.send(n):this.xhr_.send(),this.sendPromise_},t.prototype.getErrorCode=function(){if(!this.sent_)throw j("cannot .getErrorCode() before sending");return this.errorCode_},t.prototype.getStatus=function(){if(!this.sent_)throw j("cannot .getStatus() before sending");try{return this.xhr_.status}catch(t){return-1}},t.prototype.getResponseText=function(){if(!this.sent_)throw j("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){Z(this.xhr_.upload)&&this.xhr_.upload.addEventListener("progress",t)},t.prototype.removeUploadProgressListener=function(t){Z(this.xhr_.upload)&&this.xhr_.upload.removeEventListener("progress",t)},t}(),lt=function(){function t(){}return t.prototype.createXhrIo=function(){return new ct},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 pt=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)?U(D.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}(),dt=function(){function t(t,e){this.bucket=t,this.path_=e}return Object.defineProperty(t.prototype,"path",{get:function(){return this.path_},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRoot",{get:function(){return 0===this.path.length},enumerable:!0,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(y,"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 c=a[u],l=c.regex.exec(e);if(l){var f=l[c.indices.bucket],h=l[c.indices.path];h||(h=""),n=new t(f,h),c.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 yt(t,e){var n=e.split("/").filter((function(t){return t.length>0})).join("/");return 0===t.length?n:t+"/"+n}function mt(t){var e=t.lastIndexOf("/",t.length-2);return-1===e?t:t.slice(e+1)}function gt(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 Et=function(t,e,n,r){this.server=t,this.local=e||t,this.writable=!!n,this.xform=r||wt},Tt=null;function _t(){if(Tt)return Tt;var t=[];t.push(new Et("bucket")),t.push(new Et("generation")),t.push(new Et("metageneration")),t.push(new Et("name","fullPath",!0));var e=new Et("name");e.xform=function(t,e){return function(t){return!it(t)||t.length<2?t:mt(t)}(e)},t.push(e);var n=new Et("size");return n.xform=function(t,e){return Z(e)?Number(e):e},t.push(n),t.push(new Et("timeCreated")),t.push(new Et("updated")),t.push(new Et("md5Hash",null,!0)),t.push(new Et("cacheControl",null,!0)),t.push(new Et("contentDisposition",null,!0)),t.push(new Et("contentEncoding",null,!0)),t.push(new Et("contentLanguage",null,!0)),t.push(new Et("contentType",null,!0)),t.push(new Et("metadata","customMetadata",!0)),Tt=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 dt(n,r);return e.makeStorageReference(i)}})}(r,t),r}function It(t,e,n){var r=vt(e);return null===r?null:kt(t,r,n)}function xt(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 St(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 Ot(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 dt(e,a));r.prefixes.push(s)}if(n.items)for(var u=0,c=n.items;u<c.length;u++){var l=c[u];s=t.makeStorageReference(new dt(e,l.name));r.items.push(s)}return r}(t,e,r)}function At(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 Ct(t){if(!t)throw S()}function Pt(t,e){return function(n,r){var i=It(t,r,e);return Ct(null!==i),i}}function Rt(t,e){return function(n,r){var i=It(t,r,e);return Ct(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 gt("/b/"+i(n)+"/o/"+i(r))+bt({alt:"media",token:e})}))[0]}(i,r)}}function jt(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(l,"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 Dt(t){var e=jt(t);return function(n,r){var i,o=e(n,r);
2return 404===n.getStatus()&&(i=t.path,o=new s(c,"Object '"+i+"' does not exist.")),o.setServerResponseProp(r.serverResponseProp()),o}}function Lt(t,e,n){var r=gt(e.fullServerUrl()),i=t.maxOperationRetryTime(),o=new Nt(r,"GET",Pt(t,n),i);return o.errorHandler=Dt(e),o}function Mt(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=gt(e.bucketOnlyServerUrl()),s=t.maxOperationRetryTime(),u=new Nt(a,"GET",function(t,e){return function(n,r){var i=Ot(t,e,r);return Ct(null!==i),i}}(t,e.bucket),s);return u.urlParams=o,u.errorHandler=jt(e),u}function Ut(t,e,n){var r=gt(e.fullServerUrl()),i=t.maxOperationRetryTime(),o=new Nt(r,"GET",Rt(t,n),i);return o.errorHandler=Dt(e),o}function Ft(t,e,n,r){var i=gt(e.fullServerUrl()),o=xt(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=Dt(e),s}function Vt(t,e){var n=gt(e.fullServerUrl()),r=t.maxOperationRetryTime();var i=new Nt(n,"DELETE",(function(t,e){}),r);return i.successCodes=[200,204],i.errorHandler=Dt(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 zt=function(t,e,n,r){this.current=t,this.total=e,this.finalized=!!n,this.metadata=r||null};function qt(t,e){var n=null;try{n=t.getResponseHeader("X-Goog-Upload-Status")}catch(r){Ct(!1)}return Ct(!!n&&-1!==(e||["active"]).indexOf(n)),n}function Wt(t,e,n,r,i,o,a,u){var c=new zt(0,0);if(a?(c.current=a.current,c.total=a.total):(c.current=0,c.total=r.size()),r.size()!==c.total)throw new s(g,"Server recorded incorrect upload file size, please retry the upload.");var l=c.total-c.current,f=l;i>0&&(f=Math.min(f,i));var h=c.current,p=h+f,d={"X-Goog-Upload-Command":f===l?"upload, finalize":"upload","X-Goog-Upload-Offset":c.current},v=r.slice(h,p);if(null===v)throw A();var y=e.maxUploadRetryTime(),m=new Nt(n,"POST",(function(t,n){var i,a=qt(t,["active","final"]),s=c.current+f,u=r.size();return i="final"===a?Pt(e,o)(t,n):null,new zt(s,u,"final"===a,i)}),y);return m.headers=d,m.body=v.uploadData(),m.progressCallback=u||null,m.errorHandler=jt(t),m}var Ht=function(t,e,n){if(et(t)||Z(e)||Z(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}},Gt=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 Kt(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(E,"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?C(o,t,a.message):C(o,t,a)}}var $t=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 $t(r,e)}function Qt(){return new $t((function(t){if(!(t instanceof Uint8Array||t instanceof ArrayBuffer||ut()&&t instanceof Blob))throw"Expected Blob or File."}))}function Yt(t){return new $t(St,t)}function Jt(t){return new $t(At,t)}function Zt(){return new $t((function(t){if(!(at(t)&&t>=0))throw"Expected a number 0 or greater."}))}function te(t,e){return new $t((function(e){if(!(null===e||Z(e)&&e instanceof Object))throw"Expected an Object.";void 0!==t&&null!==t&&t(e)}),e)}function ee(t){return new $t((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.authWrapper_=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(d)?(a.needToFetchStatus_=!0,a.completeTransitions_()):(a.error_=t,a.transition_(Q))},this.metadataErrorHandler_=function(t){a.request_=null,t.codeEquals(d)?a.completeTransitions_():(a.error_=t,a.transition_(Q))},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.authWrapper_.getAuthToken().then((function(n){switch(e.state_){case W:t(n);break;case $:e.transition_(X);break;case H:e.transition_(G)}}))},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=gt(o),c={"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"},l=xt(a,n),f=t.maxUploadRetryTime(),h=new Nt(u,"POST",(function(t){var e;qt(t);try{e=t.getResponseHeader("X-Goog-Upload-URL")}catch(n){Ct(!1)}return Ct(it(e)),e}),f);return h.urlParams=s,h.headers=c,h.body=l,h.errorHandler=jt(e),h}(t.authWrapper_,t.location_,t.mappings_,t.blob_,t.metadata_),r=t.authWrapper_.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=qt(t,["active","final"]),n=null;try{n=t.getResponseHeader("X-Goog-Upload-Size-Received")}catch(o){Ct(!1)}n||Ct(!1);var i=Number(n);return Ct(!isNaN(i)),new zt(i,r.size(),"final"===e)}),i);return o.headers={"X-Goog-Upload-Command":"query"},o.errorHandler=jt(e),o}(t.authWrapper_,t.location_,e,t.blob_),i=t.authWrapper_.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 zt(this.transferred_,this.blob_.size()),r=this.uploadUrl_;this.resolveToken_((function(i){var o;try{o=Wt(t.location_,t.authWrapper_,r,t.blob_,e,t.mappings_,n,t.makeProgressCallback_())}catch(s){return t.error_=s,void t.transition_(Q)}var a=t.authWrapper_.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_(K)):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.authWrapper_,t.location_,t.mappings_),r=t.authWrapper_.makeRequest(n,e);t.request_=r,r.getPromise().then((function(e){t.request_=null,t.metadata_=e,t.transition_(K)}),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),c="--"+s+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+xt(u,n)+"\r\n--"+s+"\r\nContent-Type: "+u.contentType+"\r\n\r\n",l="\r\n--"+s+"--",f=pt.getBlob(c,r,l);if(null===f)throw A();var h={name:u.fullPath},p=gt(o),d=t.maxUploadRetryTime(),v=new Nt(p,"POST",Pt(t,n),d);return v.urlParams=h,v.headers=a,v.body=f.uploadData(),v.errorHandler=jt(e),v}(t.authWrapper_,t.location_,t.mappings_,t.blob_,t.metadata_),r=t.authWrapper_.makeRequest(n,e);t.request_=r,r.getPromise().then((function(e){t.request_=null,t.metadata_=e,t.updateProgress_(t.blob_.size()),t.transition_(K)}),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 $:case H:this.state_=t,null!==this.request_&&this.request_.cancel();break;case W:var e=this.state_===G;this.state_=t,e&&(this.notifyObservers_(),this.start_());break;case G:this.state_=t,this.notifyObservers_();break;case X:this.error_=O(),this.state_=t,this.notifyObservers_();break;case Q:case K:this.state_=t,this.notifyObservers_()}},t.prototype.completeTransitions_=function(){switch(this.state_){case H:this.transition_(G);break;case $:this.transition_(X);break;case W:this.start_()}},Object.defineProperty(t.prototype,"snapshot",{get:function(){var t=J(this.state_);return new Gt(this.transferred_,this.blob_.size(),t,this.metadata_,this,this.ref_)},enumerable:!0,configurable:!0}),t.prototype.on=function(t,e,n,r){function i(){if(t!==q.STATE_CHANGED)throw"Expected one of the event types: ["+q.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 c=[Xt(i),te(u,!0),ee(!0),ee(!0)];Kt("on",c,arguments);var l=this;function f(t){return function(e,n,i){null!==t&&Kt("on",t,arguments);var o=new Ht(e,n,r);return l.addObserver_(o),function(){l.removeObserver_(o)}}}function h(t){if(null===t)throw o;u(t)}var p=[te(h),ee(!0),ee(!0)],d=!(tt(e)||tt(n)||tt(r));return d?f(p):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;
2this.finishPromise_(),this.observers_.slice().forEach((function(e){t.notifyObserver_(e)}))},t.prototype.finishPromise_=function(){if(null!==this.resolve_){var t=!0;switch(J(this.state_)){case Y.SUCCESS:ne(this.resolve_.bind(null,this.snapshot))();break;case Y.CANCELED:case Y.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(J(this.state_)){case Y.RUNNING:case Y.PAUSED:t.next&&ne(t.next.bind(t,this.snapshot))();break;case Y.SUCCESS:t.complete&&ne(t.complete.bind(t))();break;case Y.CANCELED:case Y.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(){Kt("resume",[],arguments);var t=this.state_===G||this.state_===H;return t&&this.transition_(W),t},t.prototype.pause=function(){Kt("pause",[],arguments);var t=this.state_===W;return t&&this.transition_(H),t},t.prototype.cancel=function(){Kt("cancel",[],arguments);var t=this.state_===W||this.state_===H;return t&&this.transition_($),t},t}(),ie=function(){function t(t,e){this.authWrapper=t,this.location=e instanceof dt?e:dt.makeFromUrl(e)}return t.prototype.toString=function(){return Kt("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 _t()},t.prototype.child=function(t){Kt("child",[Xt()],arguments);var e=yt(this.location.path,t),n=new dt(this.location.bucket,e);return this.newRef(this.authWrapper,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 dt(this.location.bucket,t);return this.newRef(this.authWrapper,e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){var t=new dt(this.location.bucket,"");return this.newRef(this.authWrapper,t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bucket",{get:function(){return this.location.bucket},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fullPath",{get:function(){return this.location.path},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return mt(this.location.path)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"storage",{get:function(){return this.authWrapper.service()},enumerable:!0,configurable:!0}),t.prototype.put=function(t,e){return void 0===e&&(e=null),Kt("put",[Qt(),Yt(!0)],arguments),this.throwIfRoot_("put"),new re(this,this.authWrapper,this.location,this.mappings(),new pt(t),e)},t.prototype.putString=function(t,e,n){void 0===e&&(e=D.RAW),Kt("putString",[Xt(),Xt(L,!0),Yt(!0)],arguments),this.throwIfRoot_("putString");var r=U(e,t),i=Object.assign({},n);return!Z(i.contentType)&&Z(r.contentType)&&(i.contentType=r.contentType),new re(this,this.authWrapper,this.location,this.mappings(),new pt(r.data,!0),i)},t.prototype.delete=function(){var t=this;return Kt("delete",[],arguments),this.throwIfRoot_("delete"),this.authWrapper.getAuthToken().then((function(e){var n=Vt(t.authWrapper,t.location);return t.authWrapper.makeRequest(n,e).getPromise()}))},t.prototype.listAll=function(){Kt("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]}}
2))}))},t.prototype.list=function(t){Kt("list",[Jt(!0)],arguments);var e=this;return this.authWrapper.getAuthToken().then((function(n){var r=t||{},i=Mt(e.authWrapper,e.location,"/",r.pageToken,r.maxResults);return e.authWrapper.makeRequest(i,n).getPromise()}))},t.prototype.getMetadata=function(){var t=this;return Kt("getMetadata",[],arguments),this.throwIfRoot_("getMetadata"),this.authWrapper.getAuthToken().then((function(e){var n=Lt(t.authWrapper,t.location,t.mappings());return t.authWrapper.makeRequest(n,e).getPromise()}))},t.prototype.updateMetadata=function(t){var e=this;return Kt("updateMetadata",[Yt()],arguments),this.throwIfRoot_("updateMetadata"),this.authWrapper.getAuthToken().then((function(n){var r=Ft(e.authWrapper,e.location,t,e.mappings());return e.authWrapper.makeRequest(r,n).getPromise()}))},t.prototype.getDownloadURL=function(){var t=this;return Kt("getDownloadURL",[],arguments),this.throwIfRoot_("getDownloadURL"),this.authWrapper.getAuthToken().then((function(e){var n=Ut(t.authWrapper,t.location,t.mappings());return t.authWrapper.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(_,"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}(),ae=function(){function t(){this.map=new Map,this.id=-9007199254740991}return t.prototype.addRequest=function(t){var e=this,n=this.id;this.id++,this.map.set(n,t),t.getPromise().then((function(){return e.map.delete(n)}),(function(){return e.map.delete(n)}))},t.prototype.clear=function(){this.map.forEach((function(t){t&&t.cancel(!0)})),this.map.clear()},t}(),se=function(){function t(e,n,r,i,o,a){var s;if(this.bucket_=null,this.appId_=null,this.deleted_=!1,this.app_=e,null!==this.app_){var u=this.app_.options;Z(u)&&(this.bucket_=t.extractBucket_(u),this.appId_=null!==(s=u.appId)&&void 0!==s?s:null)}this.authProvider_=n,this.storageRefMaker_=r,this.requestMaker_=i,this.pool_=a,this.service_=o,this.maxOperationRetryTime_=12e4,this.maxUploadRetryTime_=6e5,this.requestMap_=new ae}return t.extractBucket_=function(t){var e=t.storageBucket||null;return null==e?null:dt.makeFromBucketSpec(e).bucket},t.prototype.getAuthToken=function(){var t=this.authProvider_.getImmediate({optional:!0});return t?t.getToken().then((function(t){return null!==t?t.accessToken:null}),(function(){return null})):Promise.resolve(null)},t.prototype.bucket=function(){if(this.deleted_)throw P();return this.bucket_},t.prototype.service=function(){return this.service_},t.prototype.makeStorageReference=function(t){return this.storageRefMaker_(this,t)},t.prototype.makeRequest=function(t,e){if(this.deleted_)return new oe(P());var n=this.requestMaker_(t,this.appId_,e,this.pool_);return this.requestMap_.addRequest(n),n},t.prototype.deleteApp=function(){this.deleted_=!0,this.app_=null,this.requestMap_.clear()},t.prototype.maxUploadRetryTime=function(){return this.maxUploadRetryTime_},t.prototype.setMaxUploadRetryTime=function(t){this.maxUploadRetryTime_=t},t.prototype.maxOperationRetryTime=function(){return this.maxOperationRetryTime_},t.prototype.setMaxOperationRetryTime=function(t){this.maxOperationRetryTime_=t},t}();var ue=function(){function t(t,e,n,r,i,o,a,s,u,c,l){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_=c,this.timeout_=u,this.pool_=l,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(c){o(c)}else null!==a?((r=S()).setServerResponseProp(a.getResponseText()),t.errorCallback_?o(t.errorCallback_(a,r)):o(r)):n.canceled?o(r=t.appDelete_?P():O()):o(r=new s(p,"Max retry time for operation exceeded, please try again."))}this.canceled_?e(0,new ce(!1,null,!0)):this.backoffId_=function(t,e,n){var r=1,i=null,a=!1,s=0;function u(){return 2===s}var c=!1;function l(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];
2c||(c=!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(!c)if(t)l.call.apply(l,Object(o.__spreadArrays)([null,t],e));else{var i,h=u()||a;if(h)l.call.apply(l,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 p=!1;function d(t){p||(p=!0,c||(null!==i?(t||(s=2),clearTimeout(i),f(0)):t||(s=1)))}return f(0),setTimeout((function(){a=!0,d(!0)}),n),d}((function(e,n){if(n)e(!1,new ce(!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()===z.NO_ERROR,o=n.getStatus();if(r&&!t.isRetryStatusCode_(o)){var a=-1!==t.successCodes_.indexOf(o);e(!0,new ce(a,n))}else{var s=n.getErrorCode()===z.ABORT;e(!1,new ce(!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}(),ce=function(t,e,n){this.wasSuccessCode=t,this.xhr=e,this.canceled=!!n};function le(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 ue(a,t.method,s,t.body,t.successCodes,t.additionalRetryCodes,t.handler,t.errorHandler,t.timeout,t.progressCallback,r)}var fe=function(){function t(t,e,n,r){if(this.bucket_=null,this.authWrapper_=new se(t,e,(function(t,e){return new ie(t,e)}),le,this,n),this.app_=t,null!=r)this.bucket_=dt.makeFromBucketSpec(r);else{var i=this.authWrapper_.bucket();null!=i&&(this.bucket_=new dt(i,""))}this.internals_=new he(this)}return 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(Kt("ref",[Xt(e,!0)],arguments),null==this.bucket_)throw new Error("No Storage Bucket defined in Firebase Options.");var n=new ie(this.authWrapper_,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{dt.makeFromUrl(t)}catch(e){throw"Expected valid full URL but got an invalid one."}}return Kt("refFromURL",[Xt(e,!1)],arguments),new ie(this.authWrapper_,t)},Object.defineProperty(t.prototype,"maxUploadRetryTime",{get:function(){return this.authWrapper_.maxUploadRetryTime()},enumerable:!0,configurable:!0}),t.prototype.setMaxUploadRetryTime=function(t){Kt("setMaxUploadRetryTime",[Zt()],arguments),this.authWrapper_.setMaxUploadRetryTime(t)},t.prototype.setMaxOperationRetryTime=function(t){Kt("setMaxOperationRetryTime",[Zt()],arguments),this.authWrapper_.setMaxOperationRetryTime(t)},Object.defineProperty(t.prototype,"app",{get:function(){return this.app_},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"INTERNAL",{get:function(){return this.internals_},enumerable:!0,configurable:!0}),t}(),he=function(){function t(t){this.service_=t}return t.prototype.delete=function(){return this.service_.authWrapper_.deleteApp(),Promise.resolve()},t}();function pe(t,e){var n=t.getProvider("app").getImmediate(),r=t.getProvider("auth-internal");return new fe(n,r,new lt,e)}!function(t){var e={TaskState:Y,TaskEvent:q,StringFormat:D,Storage:fe,Reference:ie};t.INTERNAL.registerComponent(new a.Component("storage",pe,"PUBLIC").setServiceProps(e).setMultipleInstances(!0)),t.registerVersion("@firebase/storage","0.3.33")}(i.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(1),i=n(41);function o(t){return t&&"object"===Object(i.a)(t)&&t.constructor===Object}function a(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},i=n.clone?Object(r.a)({},t):t;return o(t)&&o(e)&&Object.keys(e).forEach((function(r){"__proto__"!==r&&(o(e[r])&&r in t?i[r]=a(t[r],e[r],n):i[r]=e[r])})),i}},function(t,e,n){"use strict";n.d(e,"a",(function(){return hn}));var r=n(2),i=n(1),o=n(0),a=n.n(o),s="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},u="object"===("undefined"===typeof window?"undefined":s(window))&&"object"===("undefined"===typeof document?"undefined":s(document))&&9===document.nodeType,c=(n(25),n(37));function l(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var f=n(78),h=n(53),p={}.constructor;function d(t){if(null==t||"object"!==typeof t)return t;if(Array.isArray(t))return t.map(d);if(t.constructor!==p)return t;var e={};for(var n in t)e[n]=d(t[n]);return e}function v(t,e,n){void 0===t&&(t="unnamed");var r=n.jss,i=d(e),o=r.plugins.onCreateRule(t,i,n);return o||(t[0],null)}var y=function(t,e){for(var n="",r=0;r<t.length&&"!important"!==t[r];r++)n&&(n+=e),n+=t[r];return n};function m(t,e){if(void 0===e&&(e=!1),!Array.isArray(t))return t;var n="";if(Array.isArray(t[0]))for(var r=0;r<t.length&&"!important"!==t[r];r++)n&&(n+=", "),n+=y(t[r]," ");else n=y(t,", ");return e||"!important"!==t[t.length-1]||(n+=" !important"),n}function g(t,e){for(var n="",r=0;r<e;r++)n+="  ";return n+t}function b(t,e,n){void 0===n&&(n={});var r="";if(!e)return r;var i=n.indent,o=void 0===i?0:i,a=e.fallbacks;
vendor: 6,130 bytes, line 2
2if(t&&o++,a)if(Array.isArray(a))for(var s=0;s<a.length;s++){var u=a[s];for(var c in u){var l=u[c];null!=l&&(r&&(r+="\n"),r+=""+g(c+": "+m(l)+";",o))}}else for(var f in a){var h=a[f];null!=h&&(r&&(r+="\n"),r+=""+g(f+": "+m(h)+";",o))}for(var p in e){var d=e[p];null!=d&&"fallbacks"!==p&&(r&&(r+="\n"),r+=""+g(p+": "+m(d)+";",o))}return(r||n.allowEmpty)&&t?(r&&(r="\n"+r+"\n"),g(t+" {"+r,--o)+g("}",o)):r}var w=/([[\].#*$><+~=|^:(),"'`\s])/g,E="undefined"!==typeof CSS&&CSS.escape,T=function(t){return E?E(t):t.replace(w,"\\$1")},_=function(){function t(t,e,n){this.type="style",this.key=void 0,this.isProcessed=!1,this.style=void 0,this.renderer=void 0,this.renderable=void 0,this.options=void 0;var r=n.sheet,i=n.Renderer;this.key=t,this.options=n,this.style=e,r?this.renderer=r.renderer:i&&(this.renderer=new i)}return t.prototype.prop=function(t,e,n){if(void 0===e)return this.style[t];var r=!!n&&n.force;if(!r&&this.style[t]===e)return this;var i=e;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(e,t,this));var o=null==i||!1===i,a=t in this.style;if(o&&!a&&!r)return this;var s=o&&a;if(s?delete this.style[t]:this.style[t]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,t):this.renderer.setProperty(this.renderable,t,i),this;var u=this.options.sheet;return u&&u.attached,this},t}(),k=function(t){function e(e,n,r){var i;(i=t.call(this,e,n,r)||this).selectorText=void 0,i.id=void 0,i.renderable=void 0;var o=r.selector,a=r.scoped,s=r.sheet,u=r.generateId;return o?i.selectorText=o:!1!==a&&(i.id=u(Object(f.a)(Object(f.a)(i)),s),i.selectorText="."+T(i.id)),i}l(e,t);var n=e.prototype;return n.applyTo=function(t){var e=this.renderer;if(e){var n=this.toJSON();for(var r in n)e.setProperty(t,r,n[r])}return this},n.toJSON=function(){var t={};for(var e in this.style){var n=this.style[e];"object"!==typeof n?t[e]=n:Array.isArray(n)&&(t[e]=m(n))}return t},n.toString=function(t){var e=this.options.sheet,n=!!e&&e.options.link?Object(i.a)({},t,{allowEmpty:!0}):t;return b(this.selectorText,this.style,n)},Object(c.a)(e,[{key:"selector",set:function(t){if(t!==this.selectorText){this.selectorText=t;var e=this.renderer,n=this.renderable;if(n&&e)e.setSelector(n,t)||e.replaceRule(n,this)}},get:function(){return this.selectorText}}]),e}(_),I={onCreateRule:function(t,e,n){return"@"===t[0]||n.parent&&"keyframes"===n.parent.type?null:new k(t,e,n)}},x={indent:1,children:!0},S=/@([\w-]+)/,O=function(){function t(t,e,n){this.type="conditional",this.at=void 0,this.key=void 0,this.query=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=t,this.query=n.name;var r=t.match(S);for(var o in this.at=r?r[1]:"unknown",this.options=n,this.rules=new Y(Object(i.a)({},n,{parent:this})),e)this.rules.add(o,e[o]);this.rules.process()}var e=t.prototype;return e.getRule=function(t){return this.rules.get(t)},e.indexOf=function(t){return this.rules.indexOf(t)},e.addRule=function(t,e,n){var r=this.rules.add(t,e,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},e.toString=function(t){if(void 0===t&&(t=x),null==t.indent&&(t.indent=x.indent),null==t.children&&(t.children=x.children),!1===t.children)return this.query+" {}";var e=this.rules.toString(t);return e?this.query+" {\n"+e+"\n}":""},t}(),A=/@media|@supports\s+/,N={onCreateRule:function(t,e,n){return A.test(t)?new O(t,e,n):null}},C={indent:1,children:!0},P=/@keyframes\s+([\w-]+)/,R=function(){function t(t,e,n){this.type="keyframes",this.at="@keyframes",this.key=void 0,this.name=void 0,this.id=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0;var r=t.match(P);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,a=n.sheet,s=n.generateId;for(var u in this.id=!1===o?this.name:T(s(this,a)),this.rules=new Y(Object(i.a)({},n,{parent:this})),e)this.rules.add(u,e[u],Object(i.a)({},n,{parent:this}));this.rules.process()}return t.prototype.toString=function(t){if(void 0===t&&(t=C),null==t.indent&&(t.indent=C.indent),null==t.children&&(t.children=C.children),!1===t.children)return this.at+" "+this.id+" {}";var e=this.rules.toString(t);return e&&(e="\n"+e+"\n"),this.at+" "+this.id+" {"+e+"}"},t}(),j=/@keyframes\s+/,D=/\$([\w-]+)/g,L=function(t,e){return"string"===typeof t?t.replace(D,(function(t,n){return n in e?e[n]:t})):t},M=function(t,e,n){var r=t[e],i=L(r,n);i!==r&&(t[e]=i)},U={onCreateRule:function(t,e,n){return"string"===typeof t&&j.test(t)?new R(t,e,n):null},onProcessStyle:function(t,e,n){return"style"===e.type&&n?("animation-name"in t&&M(t,"animation-name",n.keyframes),"animation"in t&&M(t,"animation",n.keyframes),t):t},onChangeValue:function(t,e,n){var r=n.options.sheet;if(!r)return t;switch(e){case"animation":case"animation-name":return L(t,r.keyframes);default:return t}}},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).renderable=void 0,e}return l(e,t),e.prototype.toString=function(t){var e=this.options.sheet,n=!!e&&e.options.link?Object(i.a)({},t,{allowEmpty:!0}):t;return b(this.key,this.style,n)},e}(_),V={onCreateRule:function(t,e,n){return n.parent&&"keyframes"===n.parent.type?new F(t,e,n):null}},B=function(){function t(t,e,n){this.type="font-face",this.at="@font-face",this.key=void 0,this.style=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=t,this.style=e,this.options=n}return t.prototype.toString=function(t){if(Array.isArray(this.style)){for(var e="",n=0;n<this.style.length;n++)e+=b(this.at,this.style[n]),this.style[n+1]&&(e+="\n");return e}return b(this.at,this.style,t)},t}(),z=/@font-face/,q={onCreateRule:function(t,e,n){return z.test(t)?new B(t,e,n):null}},W=function(){function t(t,e,n){this.type="viewport",this.at="@viewport",this.key=void 0,this.style=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=t,this.style=e,this.options=n}return t.prototype.toString=function(t){return b(this.key,this.style,t)},t}(),H={onCreateRule:function(t,e,n){return"@viewport"===t||"@-ms-v
2iewport"===t?new W(t,e,n):null}},G=function(){function t(t,e,n){this.type="simple",this.key=void 0,this.value=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=t,this.value=e,this.options=n}return t.prototype.toString=function(t){if(Array.isArray(this.value)){for(var e="",n=0;n<this.value.length;n++)e+=this.key+" "+this.value[n]+";",this.value[n+1]&&(e+="\n");return e}return this.key+" "+this.value+";"},t}(),K={"@charset":!0,"@import":!0,"@namespace":!0},$=[I,N,U,V,q,H,{onCreateRule:function(t,e,n){return t in K?new G(t,e,n):null}}],X={process:!0},Q={force:!0,process:!0},Y=function(){function t(t){this.map={},this.raw={},this.index=[],this.counter=0,this.options=void 0,this.classes=void 0,this.keyframes=void 0,this.options=t,this.classes=t.classes,this.keyframes=t.keyframes}var e=t.prototype;return e.add=function(t,e,n){var r=this.options,o=r.parent,a=r.sheet,s=r.jss,u=r.Renderer,c=r.generateId,l=r.scoped,f=Object(i.a)({classes:this.classes,parent:o,sheet:a,jss:s,Renderer:u,generateId:c,scoped:l,name:t},n),h=t;t in this.raw&&(h=t+"-d"+this.counter++),this.raw[h]=e,h in this.classes&&(f.selector="."+T(this.classes[h]));var p=v(h,e,f);if(!p)return null;this.register(p);var d=void 0===f.index?this.index.length:f.index;return this.index.splice(d,0,p),p},e.get=function(t){return this.map[t]},e.remove=function(t){this.unregister(t),delete this.raw[t.key],this.index.splice(this.index.indexOf(t),1)},e.indexOf=function(t){return this.index.indexOf(t)},e.process=function(){var t=this.options.jss.plugins;this.index.slice(0).forEach(t.onProcessRule,t)},e.register=function(t){this.map[t.key]=t,t instanceof k?(this.map[t.selector]=t,t.id&&(this.classes[t.key]=t.id)):t instanceof R&&this.keyframes&&(this.keyframes[t.name]=t.id)},e.unregister=function(t){delete this.map[t.key],t instanceof k?(delete this.map[t.selector],delete this.classes[t.key]):t instanceof R&&delete this.keyframes[t.name]},e.update=function(){var t,e,n;if("string"===typeof(arguments.length<=0?void 0:arguments[0])?(t=arguments.length<=0?void 0:arguments[0],e=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(e=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],t=null),t)this.updateOne(this.map[t],e,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],e,n)},e.updateOne=function(e,n,r){void 0===r&&(r=X);var i=this.options,o=i.jss.plugins,a=i.sheet;if(e.rules instanceof t)e.rules.update(n,r);else{var s=e,u=s.style;if(o.onUpdate(n,e,a,r),r.process&&u&&u!==s.style){for(var c in o.onProcessStyle(s.style,s,a),s.style){var l=s.style[c];l!==u[c]&&s.prop(c,l,Q)}for(var f in u){var h=s.style[f],p=u[f];null==h&&h!==p&&s.prop(f,null,Q)}}}},e.toString=function(t){for(var e="",n=this.options.sheet,r=!!n&&n.options.link,i=0;i<this.index.length;i++){var o=this.index[i].toString(t);(o||r)&&(e&&(e+="\n"),e+=o)}return e},t}(),J=function(){function t(t,e){for(var n in this.options=void 0,this.deployed=void 0,this.attached=void 0,this.rules=void 0,this.renderer=void 0,this.classes=void 0,this.keyframes=void 0,this.queue=void 0,this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Object(i.a)({},e,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),e.Renderer&&(this.renderer=new e.Renderer(this)),this.rules=new Y(this.options),t)this.rules.add(n,t[n]);this.rules.process()}var e=t.prototype;return e.attach=function(){return this.attached?this:(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy(),this)},e.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},e.addRule=function(t,e,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var i=this.rules.add(t,e,n);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(r?r.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},e.insertRule=function(t){this.renderer&&this.renderer.insertRule(t)},e.addRules=function(t,e){var n=[];for(var r in t){var i=this.addRule(r,t[r],e);i&&n.push(i)}return n},e.getRule=function(t){return this.rules.get(t)},e.deleteRule=function(t){var e="object"===typeof t?t:this.rules.get(t);return!!e&&(this.rules.remove(e),!(this.attached&&e.renderable&&this.renderer)||this.renderer.deleteRule(e.renderable))},e.indexOf=function(t){return this.rules.indexOf(t)},e.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},e.update=function(){var t;return(t=this.rules).update.apply(t,arguments),this},e.updateOne=function(t,e,n){return this.rules.updateOne(t,e,n),this},e.toString=function(t){return this.rules.toString(t)},t}(),Z=function(){function t(){this.plugins={internal:[],external:[]},this.registry=void 0}var e=t.prototype;return e.onCreateRule=function(t,e,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var i=this.registry.onCreateRule[r](t,e,n);if(i)return i}return null},e.onProcessRule=function(t){if(!t.isProcessed){for(var e=t.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](t,e);t.style&&this.onProcessStyle(t.style,t,e),t.isProcessed=!0}},e.onProcessStyle=function(t,e,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)e.style=this.registry.onProcessStyle[r](e.style,e,n)},e.onProcessSheet=function(t){for(var e=0;e<this.registry.onProcessSheet.length;e++)this.registry.onProcessSheet[e](t)},e.onUpdate=function(t,e,n,r){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](t,e,n,r)},e.onChangeValue=function(t,e,n){for(var r=t,i=0;i<this.registry.onChangeValue.length;i++)r=this.registry.onChangeValue[i](r,e,n);return r},e.use=function(t,e){void 0===e&&(e={queue:"external"});var n=this.plugins[e.queue];-1===n.indexOf(t)&&(n.push(t),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(t,e){for(var n in e)n in t&&t[n].push(e[n]);return t}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},t}(),tt=new(function(){function t(){this.registry=[]}var e=t.prototype;return e.add=function(t){var e=this.registry,n=t.options.index;if(-1===e.indexOf(t))if(0===e.length||n>=this.index)e.push(t);else for(var r=0;r<e.length;r++)if(e[r].options.index>n)return void e.splice(r,0,t)},e.reset=function(){this.registry=[]},e.remove=function(t){var e=this.registry.indexOf(t);this.registry.splice(e,1)},e.toString=function(t){for(var e=void 0===t?{}:t,n=e.attached,r=Object(h.a)(e,["attached"]),i="",o=0;o<this.registry.length;o++){var a=this.registry[o];null!=n&&a.attached!==n||(i&&(i+="\n"),i+=a.toString(r))}return i}
2,Object(c.a)(t,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),t}()),et="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),nt="2f1acc6c3a606b082e5eef5e54414ffb";null==et[nt]&&(et[nt]=0);var rt=et[nt]++,it=function(t){void 0===t&&(t={});var e=0;return function(n,r){e+=1;var i="",o="";return r&&(r.options.classNamePrefix&&(o=r.options.classNamePrefix),null!=r.options.jss.id&&(i=String(r.options.jss.id))),t.minify?""+(o||"c")+rt+i+e:o+n.key+"-"+rt+(i?"-"+i:"")+"-"+e}},ot=function(t){var e;return function(){return e||(e=t()),e}};function at(t,e){try{return t.attributeStyleMap?t.attributeStyleMap.get(e):t.style.getPropertyValue(e)}catch(n){return""}}function st(t,e,n){try{var r=n;if(Array.isArray(n)&&(r=m(n,!0),"!important"===n[n.length-1]))return t.style.setProperty(e,r,"important"),!0;t.attributeStyleMap?t.attributeStyleMap.set(e,r):t.style.setProperty(e,r)}catch(i){return!1}return!0}function ut(t,e){try{t.attributeStyleMap?t.attributeStyleMap.delete(e):t.style.removeProperty(e)}catch(n){}}function ct(t,e){return t.selectorText=e,t.selectorText===e}var lt=ot((function(){return document.querySelector("head")}));function ft(t){var e=tt.registry;if(e.length>0){var n=function(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(r.attached&&r.options.index>e.index&&r.options.insertionPoint===e.insertionPoint)return r}return null}(e,t);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if((n=function(t,e){for(var n=t.length-1;n>=0;n--){var r=t[n];if(r.attached&&r.options.insertionPoint===e.insertionPoint)return r}return null}(e,t))&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=t.insertionPoint;if(r&&"string"===typeof r){var i=function(t){for(var e=lt(),n=0;n<e.childNodes.length;n++){var r=e.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===t)return r}return null}(r);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}var ht=ot((function(){var t=document.querySelector('meta[property="csp-nonce"]');return t?t.getAttribute("content"):null})),pt=function(t,e,n){var r=t.cssRules.length;(void 0===n||n>r)&&(n=r);try{if("insertRule"in t)t.insertRule(e,n);else if("appendRule"in t){t.appendRule(e)}}catch(i){return!1}return t.cssRules[n]},dt=function(){function t(t){this.getPropertyValue=at,this.setProperty=st,this.removeProperty=ut,this.setSelector=ct,this.element=void 0,this.sheet=void 0,this.hasInsertedRules=!1,t&&tt.add(t),this.sheet=t;var e=this.sheet?this.sheet.options:{},n=e.media,r=e.meta,i=e.element;this.element=i||function(){var t=document.createElement("style");return t.textContent="\n",t}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var o=ht();o&&this.element.setAttribute("nonce",o)}var e=t.prototype;return e.attach=function(){if(!this.element.parentNode&&this.sheet){!function(t,e){var n=e.insertionPoint,r=ft(e);if(!1!==r&&r.parent)r.parent.insertBefore(t,r.node);else if(n&&"number"===typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(t,i.nextSibling)}else lt().appendChild(t)}(this.element,this.sheet.options);var t=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&t&&(this.hasInsertedRules=!1,this.deploy())}},e.detach=function(){var t=this.element.parentNode;t&&t.removeChild(this.element)},e.deploy=function(){var t=this.sheet;t&&(t.options.link?this.insertRules(t.rules):this.element.textContent="\n"+t.toString()+"\n")},e.insertRules=function(t,e){for(var n=0;n<t.index.length;n++)this.insertRule(t.index[n],n,e)},e.insertRule=function(t,e,n){if(void 0===n&&(n=this.element.sheet),t.rules){var r=t,i=n;return("conditional"!==t.type&&"keyframes"!==t.type||!1!==(i=pt(n,r.toString({children:!1}),e)))&&(this.insertRules(r.rules,i),i)}if(t.renderable&&t.renderable.parentStyleSheet===this.element.sheet)return t.renderable;var o=t.toString();if(!o)return!1;var a=pt(n,o,e);return!1!==a&&(this.hasInsertedRules=!0,t.renderable=a,a)},e.deleteRule=function(t){var e=this.element.sheet,n=this.indexOf(t);return-1!==n&&(e.deleteRule(n),!0)},e.indexOf=function(t){for(var e=this.element.sheet.cssRules,n=0;n<e.length;n++)if(t===e[n])return n;return-1},e.replaceRule=function(t,e){var n=this.indexOf(t);return-1!==n&&(this.element.sheet.deleteRule(n),this.insertRule(e,n))},e.getRules=function(){return this.element.sheet.cssRules},t}(),vt=0,yt=function(){function t(t){this.id=vt++,this.version="10.1.1",this.plugins=new Z,this.options={id:{minify:!1},createGenerateId:it,Renderer:u?dt:null,plugins:[]},this.generateId=it({minify:!1});for(var e=0;e<$.length;e++)this.plugins.use($[e],{queue:"internal"});this.setup(t)}var e=t.prototype;return e.setup=function(t){return void 0===t&&(t={}),t.createGenerateId&&(this.options.createGenerateId=t.createGenerateId),t.id&&(this.options.id=Object(i.a)({},this.options.id,t.id)),(t.createGenerateId||t.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=t.insertionPoint&&(this.options.insertionPoint=t.insertionPoint),"Renderer"in t&&(this.options.Renderer=t.Renderer),t.plugins&&this.use.apply(this,t.plugins),this},e.createStyleSheet=function(t,e){void 0===e&&(e={});var n=e.index;"number"!==typeof n&&(n=0===tt.index?0:tt.index+1);var r=new J(t,Object(i.a)({},e,{jss:this,generateId:e.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},e.removeStyleSheet=function(t){return t.detach(),tt.remove(t),this},e.createRule=function(t,e,n){if(void 0===e&&(e={}),void 0===n&&(n={}),"object"===typeof t)return this.createRule(void 0,t,e);var r=Object(i.a)({},n,{name:t,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var o=v(t,e,r);return o&&this.plugins.onProcessRule(o),o},e.use=function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];
2return n.forEach((function(e){t.plugins.use(e)})),this},t}();var mt="undefined"!==typeof CSS&&CSS&&"number"in CSS,gt=function(t){return new yt(t)};gt();function bt(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.baseClasses,n=t.newClasses;t.Component;if(!n)return e;var r=Object(i.a)({},e);return Object.keys(n).forEach((function(t){n[t]&&(r[t]="".concat(e[t]," ").concat(n[t]))})),r}var wt={set:function(t,e,n,r){var i=t.get(e);i||(i=new Map,t.set(e,i)),i.set(n,r)},get:function(t,e,n){var r=t.get(e);return r?r.get(n):void 0},delete:function(t,e,n){t.get(e).delete(n)}},Et=n(92),Tt=(n(6),n(56)),_t=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var kt=Date.now(),It="fnValues"+kt,xt="fnStyle"+ ++kt;var St=function(){return{onCreateRule:function(t,e,n){if("function"!==typeof e)return null;var r=v(t,{},n);return r[xt]=e,r},onProcessStyle:function(t,e){if(It in e||xt in e)return t;var n={};for(var r in t){var i=t[r];"function"===typeof i&&(delete t[r],n[r]=i)}return e[It]=n,t},onUpdate:function(t,e,n,r){var i=e,o=i[xt];o&&(i.style=o(t)||{});var a=i[It];if(a)for(var s in a)i.prop(s,a[s](t),r)}}},Ot="@global",At=function(){function t(t,e,n){for(var r in this.type="global",this.at=Ot,this.rules=void 0,this.options=void 0,this.key=void 0,this.isProcessed=!1,this.key=t,this.options=n,this.rules=new Y(Object(i.a)({},n,{parent:this})),e)this.rules.add(r,e[r]);this.rules.process()}var e=t.prototype;return e.getRule=function(t){return this.rules.get(t)},e.addRule=function(t,e,n){var r=this.rules.add(t,e,n);return this.options.jss.plugins.onProcessRule(r),r},e.indexOf=function(t){return this.rules.indexOf(t)},e.toString=function(){return this.rules.toString()},t}(),Nt=function(){function t(t,e,n){this.type="global",this.at=Ot,this.options=void 0,this.rule=void 0,this.isProcessed=!1,this.key=void 0,this.key=t,this.options=n;var r=t.substr("@global ".length);this.rule=n.jss.createRule(r,e,Object(i.a)({},n,{parent:this}))}return t.prototype.toString=function(t){return this.rule?this.rule.toString(t):""},t}(),Ct=/\s*,\s*/g;function Pt(t,e){for(var n=t.split(Ct),r="",i=0;i<n.length;i++)r+=e+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}var Rt=function(){return{onCreateRule:function(t,e,n){if(!t)return null;if(t===Ot)return new At(t,e,n);if("@"===t[0]&&"@global "===t.substr(0,"@global ".length))return new Nt(t,e,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),!1===n.scoped&&(n.selector=t),null},onProcessRule:function(t){"style"===t.type&&(function(t){var e=t.options,n=t.style,r=n?n[Ot]:null;if(r){for(var o in r)e.sheet.addRule(o,r[o],Object(i.a)({},e,{selector:Pt(o,t.selector)}));delete n[Ot]}}(t),function(t){var e=t.options,n=t.style;for(var r in n)if("@"===r[0]&&r.substr(0,Ot.length)===Ot){var o=Pt(r.substr(Ot.length),t.selector);e.sheet.addRule(o,n[r],Object(i.a)({},e,{selector:o})),delete n[r]}}(t))}}},jt=/\s*,\s*/g,Dt=/&/g,Lt=/\$([\w-]+)/g;var Mt=function(){function t(t,e){return function(n,r){var i=t.getRule(r)||e&&e.getRule(r);return i?(i=i).selector:r}}function e(t,e){for(var n=e.split(jt),r=t.split(jt),i="",o=0;o<n.length;o++)for(var a=n[o],s=0;s<r.length;s++){var u=r[s];i&&(i+=", "),i+=-1!==u.indexOf("&")?u.replace(Dt,a):a+" "+u}return i}function n(t,e,n){if(n)return Object(i.a)({},n,{index:n.index+1});var r=t.options.nestingLevel;r=void 0===r?1:r+1;var o=Object(i.a)({},t.options,{nestingLevel:r,index:e.indexOf(t)+1});return delete o.name,o}return{onProcessStyle:function(r,o,a){if("style"!==o.type)return r;var s,u,c=o,l=c.options.parent;for(var f in r){var h=-1!==f.indexOf("&"),p="@"===f[0];if(h||p){if(s=n(c,l,s),h){var d=e(f,c.selector);u||(u=t(l,a)),d=d.replace(Lt,u),l.addRule(d,r[f],Object(i.a)({},s,{selector:d}))}else p&&l.addRule(f,{},s).addRule(c.key,r[f],{selector:c.selector});delete r[f]}}return r}}},Ut=/[A-Z]/g,Ft=/^ms-/,Vt={};function Bt(t){return"-"+t.toLowerCase()}var zt=function(t){if(Vt.hasOwnProperty(t))return Vt[t];var e=t.replace(Ut,Bt);return Vt[t]=Ft.test(e)?"-"+e:e};function qt(t){var e={};for(var n in t){e[0===n.indexOf("--")?n:zt(n)]=t[n]}return t.fallbacks&&(Array.isArray(t.fallbacks)?e.fallbacks=t.fallbacks.map(qt):e.fallbacks=qt(t.fallbacks)),e}var Wt=function(){return{onProcessStyle:function(t){if(Array.isArray(t)){for(var e=0;e<t.length;e++)t[e]=qt(t[e]);return t}return qt(t)},onChangeValue:function(t,e,n){if(0===e.indexOf("--"))return t;var r=zt(e);return e===r?t:(n.prop(r,t),null)}}},Ht=mt&&CSS?CSS.px:"px",Gt=mt&&CSS?CSS.ms:"ms",Kt=mt&&CSS?CSS.percent:"%";function $t(t){var e=/(-[a-z])/g,n=function(t){return t[1].toUpperCase()},r={};for(var i in t)r[i]=t[i],r[i.replace(e,n)]=t[i];return r}var Xt=$t({"animation-delay":Gt,"animation-duration":Gt,"background-position":Ht,"background-position-x":Ht,"background-position-y":Ht,"background-size":Ht,border:Ht,"border-bottom":Ht,"border-bottom-left-radius":Ht,"border-bottom-right-radius":Ht,"border-bottom-width":Ht,"border-left":Ht,"border-left-width":Ht,"border-radius":Ht,"border-right":Ht,"border-right-width":Ht,"border-top":Ht,"border-top-left-radius":Ht,"border-top-right-radius":Ht,"border-top-width":Ht,"border-width":Ht,margin:Ht,"margin-bottom":Ht,"margin-left":Ht,"margin-right":Ht,"margin-top":Ht,padding:Ht,"padding-bottom":Ht,"padding-left":Ht,"padding-right":Ht,"padding-top":Ht,"mask-position-x":Ht,"mask-position-y":Ht,"mask-size":Ht,height:Ht,width:Ht,"min-height":Ht,"max-height":Ht,"min-width":Ht,"max-width":Ht,bottom:Ht,left:Ht,top:Ht,right:Ht,"box-shadow":Ht,"text-shadow":Ht,"column-gap":Ht,"column-rule":Ht,"column-rule-width":Ht,"column-width":Ht,"font-size":Ht,"font-size-delta":Ht,"letter-spacing":Ht,"text-indent":Ht,"text-stroke":Ht,"text-stroke-width":Ht,"word-spacing":Ht,motion:Ht,"motion-offset":Ht,outline:Ht,"outline-offset":Ht,"outline-width":Ht,perspective:Ht,"perspective-origin-x":Kt,"perspective-origin-y":Kt,"transform-origin":Kt,"transform-origin-x":Kt,"transform-origin-y":Kt,"transform-origin-z":Kt,"transition-delay":Gt,"transition-duration":Gt,"vertical-align":Ht,"flex-basis":Ht,"shape-margin":Ht,size:Ht,grid:Ht,"grid-gap":Ht,"grid-row-gap":Ht,"grid-column-gap":Ht,"grid-template-rows":Ht,"grid-template-columns":Ht,"grid-auto-rows":Ht,"grid-auto-columns":Ht,"box-shadow-x":Ht,"box-shadow-y":Ht,"box-shadow-blur":Ht,"box-shadow-spread":Ht,"font-line-height":Ht,"text-shadow-x":Ht,"text-shadow-y":Ht,"text-shadow-blur":Ht});function Qt(t,e,n){if(!e)return e;if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]=Qt(t,e[r],n);else if("object"===typeof e)if("fallbacks"===t)for(var i in e)e[i]=Qt(i,e[i],n);
2else for(var o in e)e[o]=Qt(t+"-"+o,e[o],n);else if("number"===typeof e){var a=n[t]||Xt[t];return a?"function"===typeof a?a(e).toString():""+e+a:e.toString()}return e}var Yt=function(t){void 0===t&&(t={});var e=$t(t);return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r in t)t[r]=Qt(r,t[r],e);return t},onChangeValue:function(t,n){return Qt(n,t,e)}}},Jt=n(28),Zt="",te="",ee="",ne="",re=u&&"ontouchstart"in document.documentElement;if(u){var ie={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},oe=document.createElement("p").style;for(var ae in ie)if(ae+"Transform"in oe){Zt=ae,te=ie[ae];break}"Webkit"===Zt&&"msHyphens"in oe&&(Zt="ms",te=ie.ms,ne="edge"),"Webkit"===Zt&&"-apple-trailing-word"in oe&&(ee="apple")}var se=Zt,ue=te,ce=ee,le=ne,fe=re;var he={noPrefill:["appearance"],supportedProperty:function(t){return"appearance"===t&&("ms"===se?"-webkit-"+t:ue+t)}},pe={noPrefill:["color-adjust"],supportedProperty:function(t){return"color-adjust"===t&&("Webkit"===se?ue+"print-"+t:t)}},de=/[-\s]+(.)?/g;function ve(t,e){return e?e.toUpperCase():""}function ye(t){return t.replace(de,ve)}function me(t){return ye("-"+t)}var ge,be={noPrefill:["mask"],supportedProperty:function(t,e){if(!/^mask/.test(t))return!1;if("Webkit"===se){if(ye("mask-image")in e)return t;if(se+me("mask-image")in e)return ue+t}return t}},we={noPrefill:["text-orientation"],supportedProperty:function(t){return"text-orientation"===t&&("apple"!==ce||fe?t:ue+t)}},Ee={noPrefill:["transform"],supportedProperty:function(t,e,n){return"transform"===t&&(n.transform?t:ue+t)}},Te={noPrefill:["transition"],supportedProperty:function(t,e,n){return"transition"===t&&(n.transition?t:ue+t)}},_e={noPrefill:["writing-mode"],supportedProperty:function(t){return"writing-mode"===t&&("Webkit"===se||"ms"===se&&"edge"!==le?ue+t:t)}},ke={noPrefill:["user-select"],supportedProperty:function(t){return"user-select"===t&&("Moz"===se||"ms"===se||"apple"===ce?ue+t:t)}},Ie={supportedProperty:function(t,e){return!!/^break-/.test(t)&&("Webkit"===se?"WebkitColumn"+me(t)in e&&ue+"column-"+t:"Moz"===se&&("page"+me(t)in e&&"page-"+t))}},xe={supportedProperty:function(t,e){if(!/^(border|margin|padding)-inline/.test(t))return!1;if("Moz"===se)return t;var n=t.replace("-inline","");return se+me(n)in e&&ue+n}}
2,Se={supportedProperty:function(t,e){return ye(t)in e&&t}},Oe={supportedProperty:function(t,e){var n=me(t);return"-"===t[0]?t:"-"===t[0]&&"-"===t[1]?t:se+n in e?ue+t:"Webkit"!==se&&"Webkit"+n in e&&"-webkit-"+t}},Ae={supportedProperty:function(t){return"scroll-snap"===t.substring(0,11)&&("ms"===se?""+ue+t:t)}},Ne={supportedProperty:function(t){return"overscroll-behavior"===t&&("ms"===se?ue+"scroll-chaining":t)}},Ce={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},Pe={supportedProperty:function(t,e){var n=Ce[t];return!!n&&(se+me(n)in e&&ue+n)}},Re={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},je=Object.keys(Re),De=function(t){return ue+t},Le=[he,pe,be,we,Ee,Te,_e,ke,Ie,xe,Se,Oe,Ae,Ne,Pe,{supportedProperty:function(t,e,n){var r=n.multiple;if(je.indexOf(t)>-1){var i=Re[t];if(!Array.isArray(i))return se+me(i)in e&&ue+i;if(!r)return!1;for(var o=0;o<i.length;o++)if(!(se+me(i[0])in e))return!1;return i.map(De)}return!1}}],Me=Le.filter((function(t){return t.supportedProperty})).map((function(t){return t.supportedProperty})),Ue=Le.filter((function(t){return t.noPrefill})).reduce((function(t,e){return t.push.apply(t,Object(Jt.a)(e.noPrefill)),t}),[]),Fe={};if(u){ge=document.createElement("p");var Ve=window.getComputedStyle(document.documentElement,"");for(var Be in Ve)isNaN(Be)||(Fe[Ve[Be]]=Ve[Be]);Ue.forEach((function(t){return delete Fe[t]}))}function ze(t,e){if(void 0===e&&(e={}),!ge)return t;if(null!=Fe[t])return Fe[t];"transition"!==t&&"transform"!==t||(e[t]=t in ge.style);for(var n=0;n<Me.length&&(Fe[t]=Me[n](t,ge.style,e),!Fe[t]);n++);try{ge.style[t]=""}catch(r){return!1}return Fe[t]}var qe,We={},He={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Ge=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Ke(t,e,n){if("var"===e)return"var";if("all"===e)return"all";if("all"===n)return", all";var r=e?ze(e):", "+ze(n);return r||(e||n)}function $e(t,e){var n=e;if(!qe||"content"===t)return e;if("string"!==typeof n||!isNaN(parseInt(n,10)))return n;var r=t+n;if(null!=We[r])return We[r];try{qe.style[t]=n}catch(i){return We[r]=!1,!1}if(He[t])n=n.replace(Ge,Ke);else if(""===qe.style[t]&&("-ms-flex"===(n=ue+n)&&(qe.style[t]="-ms-flexbox"),qe.style[t]=n,""===qe.style[t]))return We[r]=!1,!1;return qe.style[t]="",We[r]=n,We[r]}u&&(qe=document.createElement("p"));var Xe=function(){function t(e){for(var n in e){var r=e[n];if("fallbacks"===n&&Array.isArray(r))e[n]=r.map(t);else{var i=!1,o=ze(n);o&&o!==n&&(i=!0);var a=!1,s=$e(o,m(r));s&&s!==r&&(a=!0),(i||a)&&(i&&delete e[n],e[o||n]=s||r)}}return e}return{onProcessRule:function(t){if("keyframes"===t.type){var e=t;e.at="-"===(n=e.at)[1]?n:"ms"===se?n:"@"+ue+"keyframes"+n.substr(10)}var n},onProcessStyle:function(e,n){return"style"!==n.type?e:t(e)},onChangeValue:function(t,e){return $e(e,m(t))||t}}};var Qe=function(){var t=function(t,e){return t.length===e.length?t>e?1:-1:t.length-e.length};return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r={},i=Object.keys(e).sort(t),o=0;o<i.length;o++)r[i[o]]=e[i[o]];return r}}};function Ye(){return{plugins:[St(),Rt(),Mt(),Wt(),Yt(),"undefined"===typeof window?null:Xe(),Qe()]}}var Je=gt(Ye()),Ze={disableGeneration:!1,generateClassName:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.disableGlobal,n=void 0!==e&&e,r=t.productionPrefix,i=void 0===r?"jss":r,o=t.seed,a=void 0===o?"":o,s=""===a?"":"".concat(a,"-"),u=0,c=function(){return u+=1};return function(t,e){var r=e.options.name;if(r&&0===r.indexOf("Mui")&&!e.options.link&&!n){if(-1!==_t.indexOf(t.key))return"Mui-".concat(t.key);var o="".concat(s).concat(r,"-").concat(t.key);return e.options.theme[Tt.a]&&""===a?"".concat(o,"-").concat(c()):o}return"".concat(s).concat(i).concat(c())}}(),jss:Je,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},tn=a.a.createContext(Ze);var en=-1e9;function nn(){return en+=1}n(41);
2var rn=n(132);function on(t){var e="function"===typeof t;return{create:function(n,r){var o;try{o=e?t(n):t}catch(u){throw u}if(!r||!n.overrides||!n.overrides[r])return o;var a=n.overrides[r],s=Object(i.a)({},o);return Object.keys(a).forEach((function(t){s[t]=Object(rn.a)(s[t],a[t])})),s},options:{}}}var an={};function sn(t,e,n){var r=t.state;if(t.stylesOptions.disableGeneration)return e||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var i=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,i=!0),e!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=e,i=!0),i&&(r.cacheClasses.value=bt({baseClasses:r.cacheClasses.lastJSS,newClasses:e,Component:n})),r.cacheClasses.value}function un(t,e){var n=t.state,r=t.theme,o=t.stylesOptions,a=t.stylesCreator,s=t.name;if(!o.disableGeneration){var u=wt.get(o.sheetsManager,a,r);u||(u={refs:0,staticSheet:null,dynamicStyles:null},wt.set(o.sheetsManager,a,r,u));var c=Object(i.a)(Object(i.a)(Object(i.a)({},a.options),o),{},{theme:r,flip:"boolean"===typeof o.flip?o.flip:"rtl"===r.direction});c.generateId=c.serverGenerateClassName||c.generateClassName;var l=o.sheetsRegistry;if(0===u.refs){var f;o.sheetsCache&&(f=wt.get(o.sheetsCache,a,r));var h=a.create(r,s);f||((f=o.jss.createStyleSheet(h,Object(i.a)({link:!1},c))).attach(),o.sheetsCache&&wt.set(o.sheetsCache,a,r,f)),l&&l.add(f),u.staticSheet=f,u.dynamicStyles=function t(e){var n=null;for(var r in e){var i=e[r],o=typeof i;if("function"===o)n||(n={}),n[r]=i;else if("object"===o&&null!==i&&!Array.isArray(i)){var a=t(i);a&&(n||(n={}),n[r]=a)}}return n}(h)}if(u.dynamicStyles){var p=o.jss.createStyleSheet(u.dynamicStyles,Object(i.a)({link:!0},c));p.update(e),p.attach(),n.dynamicSheet=p,n.classes=bt({baseClasses:u.staticSheet.classes,newClasses:p.classes}),l&&l.add(p)}else n.classes=u.staticSheet.classes;u.refs+=1}}function cn(t,e){var n=t.state;n.dynamicSheet&&n.dynamicSheet.update(e)}function ln(t){var e=t.state,n=t.theme,r=t.stylesOptions,i=t.stylesCreator;if(!r.disableGeneration){var o=wt.get(r.sheetsManager,i,n);o.refs-=1;var a=r.sheetsRegistry;0===o.refs&&(wt.delete(r.sheetsManager,i,n),r.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),e.dynamicSheet&&(r.jss.removeStyleSheet(e.dynamicSheet),a&&a.remove(e.dynamicSheet))}}function fn(t,e){var n,r=a.a.useRef([]),i=a.a.useMemo((function(){return{}}),e);r.current!==i&&(r.current=i,n=t()),a.a.useEffect((function(){return function(){n&&n()}}),[i])}function hn(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.name,o=e.classNamePrefix,s=e.Component,u=e.defaultTheme,c=void 0===u?an:u,l=Object(r.a)(e,["name","classNamePrefix","Component","defaultTheme"]),f=on(t),h=n||o||"makeStyles";f.options={index:nn(),name:n,meta:h,classNamePrefix:h};var p=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=Object(Et.a)()||c,r=Object(i.a)(Object(i.a)({},a.a.useContext(tn)),l),o=a.a.useRef(),u=a.a.useRef();fn((function(){var i={name:n,state:{},stylesCreator:f,stylesOptions:r,theme:e};return un(i,t),u.current=!1,o.current=i,function(){ln(i)}}),[e,f]),a.a.useEffect((function(){u.current&&cn(o.current,t),u.current=!0}));var h=sn(o.current,t.classes,s);return h};return p}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var r=n(1),i=n(2),o=n(0),a=(n(6),n(3)),s=n(7),u=n(21);function c(t){var e,n,r;return e=t,n=0,r=1,t=(Math.min(Math.max(n,e),r)-n)/(r-n),t=(t-=1)*t*t+1}var l=o.forwardRef((function(t,e){var n,s=t.classes,l=t.className,f=t.color,h=void 0===f?"primary":f,p=t.disableShrink,d=void 0!==p&&p,v=t.size,y=void 0===v?40:v,m=t.style,g=t.thickness,b=void 0===g?3.6:g,w=t.value,E=void 0===w?0:w,T=t.variant,_=void 0===T?"indeterminate":T,k=Object(i.a)(t,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),I={},x={},S={};if("determinate"===_||"static"===_){var O=2*Math.PI*((44-b)/2);I.strokeDasharray=O.toFixed(3),S["aria-valuenow"]=Math.round(E),"static"===_?(I.strokeDashoffset="".concat(((100-E)/100*O).toFixed(3),"px"),x.transform="rotate(-90deg)"):(I.strokeDashoffset="".concat((n=(100-E)/100,n*n*O).toFixed(3),"px"),x.transform="rotate(".concat((270*c(E/70)).toFixed(3),"deg)"))}return(o.createElement("div",Object(r.a)({className:Object(a.a)(s.root,l,"inherit"!==h&&s["color".concat(Object(u.a)(h))],{indeterminate:s.indeterminate,static:s.static}[_]),style:Object(r.a)(Object(r.a)({width:y,height:y},x),m),ref:e,role:"progressbar"},S,k),o.createElement("svg",{className:s.svg,viewBox:"".concat(22," ").concat(22," ").concat(44," ").concat(44)},o.createElement("circle",{className:Object(a.a)(s.circle,d&&s.circleDisableShrink,{indeterminate:s.circleIndeterminate,static:s.circleStatic}[_]),style:I,cx:44,cy:44,r:(44-b)/2,fill:"none",strokeWidth:b}))))}));e.a=Object(s.a)((function(t){return{root:{display:"inline-block"},static:{transition:t.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},colorPrimary:{color:t.palette.primary.main},colorSecondary:{color:t.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:t.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},"@keyframes circular-rotate":{"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}}),{name:"MuiCircularProgress",flip:!1})(l)},function(t,e,n){"use strict";function r(t){var e=t.theme,n=t.name,r=t.props;if(!e||!e.props||!e.props[n])return r;var i,o=e.props[n];for(i in o)void 0===r[i]&&(r[i]=o[i]);return r}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";var r=n(1),i=n(133),o=n(36);e.a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(i.a)(t,Object(r.a)({defaultTheme:o.a},e))}},function(t,e,n){"use strict";var r=n(2),i=n(1),o=n(0),a=(n(6),n(3)),s=n(7),u=o.forwardRef((function(t,e){var n=t.classes,s=t.className,u=t.component,c=void 0===u?"div":u,l=t.square,f=void 0!==l&&l,h=t.elevation,p=void 0===h?1:h,d=t.variant,v=void 0===d?"elevation":d,y=Object(r.a)(t,["classes","className","component","square","elevation","variant"]);return(o.createElement(c,Object(i.a)({className:Object(a.a)(n.root,s,"outlined"===v?n.outlined:n["elevation".concat(p)],!f&&n.rounded),ref:e},y)))}));e.a=Object(s.a)((function(t){var e={};return t.shadows.forEach((function(t,n){e["elevation".concat(n)]={boxShadow:t}})),Object(i.a)({root:{backgroundColor:t.palette.background.paper,color:t.palette.text.primary,transition:t.transitions.create("box-shadow")},rounded:{borderRadius:t.shape.borderRadius},outlined:{border:"1px solid ".concat(t.palette.divider)}},e)}),{name:"MuiPaper"})(u)},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}
2));var r=n(132),i=n(66);function o(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];return i.a.apply(void 0,[Object(r.a)({unstable_strictMode:!0},t)].concat(n))}},function(t,e,n){"use strict";var r=n(1),i=n(0),o=n.n(i),a=(n(6),n(54)),s=n(92),u=n(56);e.a=function(t){var e=t.children,n=t.theme,i=Object(s.a)(),c=o.a.useMemo((function(){var t=null===i?n:function(t,e){return"function"===typeof e?e(t):Object(r.a)(Object(r.a)({},t),e)}(i,n);return null!=t&&(t[u.a]=null!==i),t}),[n,i]);return o.a.createElement(a.a.Provider,{value:c},e)}},function(t,e,n){"use strict";var r=n(1),i=n(2),o=n(0),a=(n(6),n(3)),s=n(7),u=o.forwardRef((function(t,e){var n=t.classes,s=t.className,u=Object(i.a)(t,["classes","className"]);return(o.createElement("div",Object(r.a)({className:Object(a.a)(n.root,s),ref:e},u)))}));e.a=Object(s.a)((function(t){return{root:{display:"flex",padding:t.spacing(1,2,2)}}}),{name:"MuiExpansionPanelDetails"})(u)},function(t,e,n){"use strict";var r=n(1),i=n(2),o=n(0),a=n.n(o),s=(n(6),n(9)),u=n(3),c=n(11),l=n(24),f=n(7),h=!0,p=!1,d=null,v={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function y(t){t.metaKey||t.altKey||t.ctrlKey||(h=!0)}function m(){h=!1}function g(){"hidden"===this.visibilityState&&p&&(h=!0)}function b(t){var e=t.target;try{return e.matches(":focus-visible")}catch(n){}return h||function(t){var e=t.type,n=t.tagName;return!("INPUT"!==n||!v[e]||t.readOnly)||("TEXTAREA"===n&&!t.readOnly||!!t.isContentEditable)}(e)}function w(){p=!0,window.clearTimeout(d),d=window.setTimeout((function(){p=!1}),100)}function E(){return{isFocusVisible:b,onBlurVisible:w,ref:o.useCallback((function(t){var e,n=s.findDOMNode(t);null!=n&&((e=n.ownerDocument).addEventListener("keydown",y,!0),e.addEventListener("mousedown",m,!0),e.addEventListener("pointerdown",m,!0),e.addEventListener("touchstart",m,!0),e.addEventListener("visibilitychange",g,!0))}),[])}}var T=n(28),_=n(60);function k(){return(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}).apply(this,arguments)}var I=n(61),x=n(38);function S(t,e){var n=Object.create(null);return t&&o.Children.map(t,(function(t){return t})).forEach((function(t){n[t.key]=function(t){return e&&Object(o.isValidElement)(t)?e(t):t}(t)})),n}function O(t,e,n){return null!=n[e]?n[e]:t.props[e]}function A(t,e,n){var r=S(t.children),i=function(t,e){function n(n){return n in e?e[n]:t[n]}t=t||{},e=e||{};var r,i=Object.create(null),o=[];for(var a in t)a in e?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var u in e){if(i[u])for(r=0;r<i[u].length;r++){var c=i[u][r];s[i[u][r]]=n(c)}s[u]=n(u)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(e,r);
2return Object.keys(i).forEach((function(a){var s=i[a];if(Object(o.isValidElement)(s)){var u=a in e,c=a in r,l=e[a],f=Object(o.isValidElement)(l)&&!l.props.in;!c||u&&!f?c||!u||f?c&&u&&Object(o.isValidElement)(l)&&(i[a]=Object(o.cloneElement)(s,{onExited:n.bind(null,s),in:l.props.in,exit:O(s,"exit",t),enter:O(s,"enter",t)})):i[a]=Object(o.cloneElement)(s,{in:!1}):i[a]=Object(o.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:O(s,"exit",t),enter:O(s,"enter",t)})}})),i}var N=Object.values||function(t){return Object.keys(t).map((function(e){return t[e]}))},C=function(t){function e(e,n){var r,i=(r=t.call(this,e,n)||this).handleExited.bind(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}Object(I.a)(e,t);var n=e.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(t,e){var n,r,i=e.children,a=e.handleExited;return{children:e.firstRender?(n=t,r=a,S(n.children,(function(t){return Object(o.cloneElement)(t,{onExited:r.bind(null,t),in:!0,appear:O(t,"appear",n),enter:O(t,"enter",n),exit:O(t,"exit",n)})}))):A(t,i,a),firstRender:!1}},n.handleExited=function(t,e){var n=S(this.props.children);t.key in n||(t.props.onExited&&t.props.onExited(e),this.mounted&&this.setState((function(e){var n=k({},e.children);return delete n[t.key],{children:n}})))},n.render=function(){var t=this.props,e=t.component,n=t.childFactory,r=Object(_.a)(t,["component","childFactory"]),i=this.state.contextValue,o=N(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===e?a.a.createElement(x.a.Provider,{value:i},o):a.a.createElement(x.a.Provider,{value:i},a.a.createElement(e,r,o))},e}(a.a.Component);C.propTypes={},C.defaultProps={component:"div",childFactory:function(t){return t}};var P=C,R="undefined"===typeof window?o.useEffect:o.useLayoutEffect;var j=function(t){var e=t.classes,n=t.pulsate,r=void 0!==n&&n,i=t.rippleX,a=t.rippleY,s=t.rippleSize,c=t.in,f=t.onExited,h=void 0===f?function(){}:f,p=t.timeout,d=o.useState(!1),v=d[0],y=d[1],m=Object(u.a)(e.ripple,e.rippleVisible,r&&e.ripplePulsate),g={width:s,height:s,top:-s/2+a,left:-s/2+i},b=Object(u.a)(e.child,v&&e.childLeaving,r&&e.childPulsate),w=Object(l.a)(h);return R((function(){if(!c){y(!0);var t=setTimeout(w,p);return function(){clearTimeout(t)}}}),[w,c,p]),o.createElement("span",{className:m,style:g},o.createElement("span",{className:b}))},D=o.forwardRef((function(t,e){var n=t.center,a=void 0!==n&&n,s=t.classes,c=t.className,l=Object(i.a)(t,["center","classes","className"]),f=o.useState([]),h=f[0],p=f[1],d=o.useRef(0),v=o.useRef(null);o.useEffect((function(){v.current&&(v.current(),v.current=null)}),[h]);var y=o.useRef(!1),m=o.useRef(null),g=o.useRef(null),b=o.useRef(null);o.useEffect((function(){return function(){clearTimeout(m.current)}}),[]);var w=o.useCallback((function(t){var e=t.pulsate,n=t.rippleX,r=t.rippleY,i=t.rippleSize,a=t.cb;p((function(t){return[].concat(Object(T.a)(t),[o.createElement(j,{key:d.current,classes:s,timeout:550,pulsate:e,rippleX:n,rippleY:r,rippleSize:i})])})),d.current+=1,v.current=a}),[s]),E=o.useCallback((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=e.pulsate,i=void 0!==r&&r,o=e.center,s=void 0===o?a||e.pulsate:o,u=e.fakeElement,c=void 0!==u&&u;if("mousedown"===t.type&&y.current)y.current=!1;else{"touchstart"===t.type&&(y.current=!0);var l,f,h,p=c?null:b.current,d=p?p.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===t.clientX&&0===t.clientY||!t.clientX&&!t.touches)l=Math.round(d.width/2),f=Math.round(d.height/2);else{var v=t.touches?t.touches[0]:t,E=v.clientX,T=v.clientY;l=Math.round(E-d.left),f=Math.round(T-d.top)}if(s)(h=Math.sqrt((2*Math.pow(d.width,2)+Math.pow(d.height,2))/3))%2===0&&(h+=1);else{var _=2*Math.max(Math.abs((p?p.clientWidth:0)-l),l)+2,k=2*Math.max(Math.abs((p?p.clientHeight:0)-f),f)+2;h=Math.sqrt(Math.pow(_,2)+Math.pow(k,2))}t.touches?null===g.current&&(g.current=function(){w({pulsate:i,rippleX:l,rippleY:f,rippleSize:h,cb:n})},m.current=setTimeout((function(){g.current&&(g.current(),g.current=null)}),80)):w({pulsate:i,rippleX:l,rippleY:f,rippleSize:h,cb:n})}}),[a,w]),_=o.useCallback((function(){E({},{pulsate:!0})}),[E]),k=o.useCallback((function(t,e){if(clearTimeout(m.current),"touchend"===t.type&&g.current)return t.persist(),g.current(),g.current=null,void(m.current=setTimeout((function(){k(t,e)})));g.current=null,p((function(t){return t.length>0?t.slice(1):t})),v.current=e}),[]);return o.useImperativeHandle(e,(function(){return{pulsate:_,start:E,stop:k}}
2),[_,E,k]),o.createElement("span",Object(r.a)({className:Object(u.a)(s.root,c),ref:b},l),o.createElement(P,{component:null,exit:!0},h))})),L=Object(f.a)((function(t){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(t.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(t.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(t.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(t.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(o.memo(D)),M=o.forwardRef((function(t,e){var n=t.action,a=t.buttonRef,f=t.centerRipple,h=void 0!==f&&f,p=t.children,d=t.classes,v=t.className,y=t.component,m=void 0===y?"button":y,g=t.disabled,b=void 0!==g&&g,w=t.disableRipple,T=void 0!==w&&w,_=t.disableTouchRipple,k=void 0!==_&&_,I=t.focusRipple,x=void 0!==I&&I,S=t.focusVisibleClassName,O=t.onBlur,A=t.onClick,N=t.onFocus,C=t.onFocusVisible,P=t.onKeyDown,R=t.onKeyUp,j=t.onMouseDown,D=t.onMouseLeave,M=t.onMouseUp,U=t.onTouchEnd,F=t.onTouchMove,V=t.onTouchStart,B=t.onDragLeave,z=t.tabIndex,q=void 0===z?0:z,W=t.TouchRippleProps,H=t.type,G=void 0===H?"button":H,K=Object(i.a)(t,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),$=o.useRef(null);var X=o.useRef(null),Q=o.useState(!1),Y=Q[0],J=Q[1];b&&Y&&J(!1);var Z=E(),tt=Z.isFocusVisible,et=Z.onBlurVisible,nt=Z.ref;function rt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:k;return Object(l.a)((function(r){return e&&e(r),!n&&X.current&&X.current[t](r),!0}))}o.useImperativeHandle(n,(function(){return{focusVisible:function(){J(!0),$.current.focus()}}}),[]),o.useEffect((function(){Y&&x&&!T&&X.current.pulsate()}),[T,x,Y]);var it=rt("start",j),ot=rt("stop",B),at=rt("stop",M),st=rt("stop",(function(t){Y&&t.preventDefault(),D&&D(t)})),ut=rt("start",V),ct=rt("stop",U),lt=rt("stop",F),ft=rt("stop",(function(t){Y&&(et(t),J(!1)),O&&O(t)}),!1),ht=Object(l.a)((function(t){$.current||($.current=t.currentTarget),tt(t)&&(J(!0),C&&C(t)),N&&N(t)})),pt=function(){var t=s.findDOMNode($.current);return m&&"button"!==m&&!("A"===t.tagName&&t.href)},dt=o.useRef(!1),vt=Object(l.a)((function(t){x&&!dt.current&&Y&&X.current&&" "===t.key&&(dt.current=!0,t.persist(),X.current.stop(t,(function(){X.current.start(t)}))),t.target===t.currentTarget&&pt()&&" "===t.key&&t.preventDefault(),P&&P(t),t.target===t.currentTarget&&pt()&&"Enter"===t.key&&!b&&(t.preventDefault(),A&&A(t))})),yt=Object(l.a)((function(t){x&&" "===t.key&&X.current&&Y&&!t.defaultPrevented&&(dt.current=!1,t.persist(),X.current.stop(t,(function(){X.current.pulsate(t)}))),R&&R(t),A&&t.target===t.currentTarget&&pt()&&" "===t.key&&!t.defaultPrevented&&A(t)})),mt=m;"button"===mt&&K.href&&(mt="a");var gt={};"button"===mt?(gt.type=G,gt.disabled=b):("a"===mt&&K.href||(gt.role="button"),gt["aria-disabled"]=b);var bt=Object(c.a)(a,e),wt=Object(c.a)(nt,$),Et=Object(c.a)(bt,wt),Tt=o.useState(!1),_t=Tt[0],kt=Tt[1];o.useEffect((function(){kt(!0)}),[]);var It=_t&&!T&&!b;return o.createElement(mt,Object(r.a)({className:Object(u.a)(d.root,v,Y&&[d.focusVisible,S],b&&d.disabled),onBlur:ft,onClick:A,onFocus:ht,onKeyDown:vt,onKeyUp:yt,onMouseDown:it,onMouseLeave:st,onMouseUp:at,onDragLeave:ot,onTouchEnd:ct,onTouchMove:lt,onTouchStart:ut,ref:Et,tabIndex:b?-1:q},gt,K),p,It?o.createElement(L,Object(r.a)({ref:X,center:h},W)):null)}));e.a=Object(f.a)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(M)},function(t,e,n){"use strict";var r=n(2),i=n(1),o=n(0),a=n(9),s=(n(6),n(92)),u=n(163),c=n(16),l=n(29),f=n(11);var h="undefined"!==typeof window?o.useLayoutEffect:o.useEffect;var p=o.forwardRef((function(t,e){var n=t.children,r=t.container,i=t.disablePortal,s=void 0!==i&&i,u=t.onRendered,c=o.use
2State(null),p=c[0],d=c[1],v=Object(f.a)(o.isValidElement(n)?n.ref:null,e);return h((function(){s||d(function(t){return t="function"===typeof t?t():t,a.findDOMNode(t)}(r)||document.body)}),[r,s]),h((function(){if(p&&!s)return Object(l.a)(e,p),function(){Object(l.a)(e,null)}}),[e,p,s]),h((function(){u&&(p||s)&&u()}),[u,p,s]),s?o.isValidElement(n)?o.cloneElement(n,{ref:v}):n:p?a.createPortal(n,p):p})),d=n(45),v=n(24),y=n(59);var m=n(37),g=n(28),b=n(64),w=n(63);function E(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function T(t){return parseInt(window.getComputedStyle(t)["padding-right"],10)||0}function _(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,o=[e,n].concat(Object(g.a)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(t.children,(function(t){1===t.nodeType&&-1===o.indexOf(t)&&-1===a.indexOf(t.tagName)&&E(t,i)}))}function k(t,e){var n=-1;return t.some((function(t,r){return!!e(t)&&(n=r,!0)})),n}function I(t,e){var n,r=[],i=[],o=t.container;if(!e.disableScrollLock){if(function(t){var e=Object(c.a)(t);return e.body===t?Object(w.a)(e).innerWidth>e.documentElement.clientWidth:t.scrollHeight>t.clientHeight}(o)){var a=Object(b.a)();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(T(o)+a,"px"),n=Object(c.a)(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(t){i.push(t.style.paddingRight),t.style.paddingRight="".concat(T(t)+a,"px")}))}var s=o.parentElement,u="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:o;r.push({value:u.style.overflow,key:"overflow",el:u}),u.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(t,e){i[e]?t.style.paddingRight=i[e]:t.style.removeProperty("padding-right")})),r.forEach((function(t){var e=t.value,n=t.el,r=t.key;e?n.style.setProperty(r,e):n.style.removeProperty(r)}))}}var x=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.modals=[],this.containers=[]}return Object(m.a)(t,[{key:"add",value:function(t,e){var n=this.modals.indexOf(t);if(-1!==n)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&E(t.modalRef,!1);var r=function(t){var e=[];return[].forEach.call(t.children,(function(t){t.getAttribute&&"true"===t.getAttribute("aria-hidden")&&e.push(t)})),e}(e);_(e,t.mountNode,t.modalRef,r,!0);var i=k(this.containers,(function(t){return t.container===e}));return-1!==i?(this.containers[i].modals.push(t),n):(this.containers.push({modals:[t],container:e,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(t,e){var n=k(this.containers,(function(e){return-1!==e.modals.indexOf(t)})),r=this.containers[n];r.restore||(r.restore=I(r,e))}},{key:"remove",value:function(t){var e=this.modals.indexOf(t);if(-1===e)return e;var n=k(this.containers,(function(e){return-1!==e.modals.indexOf(t)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(t),1),this.modals.splice(e,1),0===r.modals.length)r.restore&&r.restore(),t.modalRef&&E(t.modalRef,!0),_(r.container,t.mountNode,t.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var i=r.modals[r.modals.length-1];i.modalRef&&E(i.modalRef,!1)}return e}},{key:"isTopModal",value:function(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}]),t}();var S=function(t){var e=t.children,n=t.disableAutoFocus,r=void 0!==n&&n,i=t.disableEnforceFocus,s=void 0!==i&&i,u=t.disableRestoreFocus,l=void 0!==u&&u,h=t.getDoc,p=t.isEnabled,d=t.open,v=o.useRef(),y=o.useRef(null),m=o.useRef(null),g=o.useRef(),b=o.useRef(null),w=o.useCallback((function(t){b.current=a.findDOMNode(t)}),[]),E=Object(f.a)(e.ref,w),T=o.useRef();return o.useEffect((function(){T.current=d}),[d]),!T.current&&d&&"undefined"!==typeof window&&(g.current=h().activeElement),o.useEffect((function(){if(d){var t=Object(c.a)(b.current);r||!b.current||b.current.contains(t.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex",-1),b.current.focus());var e=function(){t.hasFocus()&&!s&&p()&&!v.current?b.current&&!b.current.contains(t.activeElement)&&b.current.focus():v.current=!1},n=function(e){!s&&p()&&9===e.keyCode&&t.activeElement===b.current&&(v.current=!0,e.shiftKey?m.current.focus():y.current.focus())};t.addEventListener("focus",e,!0),t.addEventListener("keydown",n,!0);var i=setInterval((function(){e()}),50);return function(){clearInterval(i),t.removeEventListener("focus",e,!0),t.removeEventListener("keydown",n,!0),l||(g.current&&g.current.focus&&g.current.focus(),g.current=null)}}}),[r,s,l,p,d]),o.createElement(o.Fragment,null,o.createElement("div",{tabIndex:0,ref:y,"data-test":"sentinelStart"}),o.cloneElement(e,{ref:E}),o.createElement("div",{tabIndex:0,ref:m,"data-test":"sentinelEnd"}))},O={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},A=o.forwardRef((function(t,e){var n=t.invisible,a=void 0!==n&&n,s=t.o
2pen,u=Object(r.a)(t,["invisible","open"]);return s?o.createElement("div",Object(i.a)({"aria-hidden":!0,ref:e},u,{style:Object(i.a)(Object(i.a)(Object(i.a)({},O.root),a?O.invisible:{}),u.style)})):null}));var N=new x,C=o.forwardRef((function(t,e){var n=Object(s.a)(),l=Object(u.a)({name:"MuiModal",props:Object(i.a)({},t),theme:n}),h=l.BackdropComponent,m=void 0===h?A:h,g=l.BackdropProps,b=l.children,w=l.closeAfterTransition,T=void 0!==w&&w,_=l.container,k=l.disableAutoFocus,I=void 0!==k&&k,x=l.disableBackdropClick,O=void 0!==x&&x,C=l.disableEnforceFocus,P=void 0!==C&&C,R=l.disableEscapeKeyDown,j=void 0!==R&&R,D=l.disablePortal,L=void 0!==D&&D,M=l.disableRestoreFocus,U=void 0!==M&&M,F=l.disableScrollLock,V=void 0!==F&&F,B=l.hideBackdrop,z=void 0!==B&&B,q=l.keepMounted,W=void 0!==q&&q,H=l.manager,G=void 0===H?N:H,K=l.onBackdropClick,$=l.onClose,X=l.onEscapeKeyDown,Q=l.onRendered,Y=l.open,J=Object(r.a)(l,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),Z=o.useState(!0),tt=Z[0],et=Z[1],nt=o.useRef({}),rt=o.useRef(null),it=o.useRef(null),ot=Object(f.a)(it,e),at=function(t){return!!t.children&&t.children.props.hasOwnProperty("in")}(l),st=function(){return Object(c.a)(rt.current)},ut=function(){return nt.current.modalRef=it.current,nt.current.mountNode=rt.current,nt.current},ct=function(){G.mount(ut(),{disableScrollLock:V}),it.current.scrollTop=0},lt=Object(v.a)((function(){var t=function(t){return t="function"===typeof t?t():t,a.findDOMNode(t)}(_)||st().body;G.add(ut(),t),it.current&&ct()})),ft=o.useCallback((function(){return G.isTopModal(ut())}),[G]),ht=Object(v.a)((function(t){rt.current=t,t&&(Q&&Q(),Y&&ft()?ct():E(it.current,!0))})),pt=o.useCallback((function(){G.remove(ut())}),[G]);if(o.useEffect((function(){return function(){pt()}}),[pt]),o.useEffect((function(){Y?lt():at&&T||pt()}),[Y,pt,at,T,lt]),!W&&!Y&&(!at||tt))return null;var dt=function(t){return{root:{position:"fixed",zIndex:t.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:y.a}),vt={};return void 0===b.props.tabIndex&&(vt.tabIndex=b.props.tabIndex||"-1"),at&&(vt.onEnter=Object(d.a)((function(){et(!1)}),b.props.onEnter),vt.onExited=Object(d.a)((function(){et(!0),T&&pt()}),b.props.onExited)),o.createElement(p,{ref:ht,container:_,disablePortal:L},o.createElement("div",Object(i.a)({ref:ot,onKeyDown:function(t){"Escape"===t.key&&ft()&&(X&&X(t),j||(t.stopPropagation(),$&&$(t,"escapeKeyDown")))},role:"presentation"},J,{style:Object(i.a)(Object(i.a)(Object(i.a)({},dt.root),!Y&&tt?dt.hidden:{}),J.style)}),z?null:o.createElement(m,Object(i.a)({open:Y,onClick:function(t){t.target===t.currentTarget&&(K&&K(t),!O&&$&&$(t,"backdropClick"))}},g)),o.createElement(S,{disableEnforceFocus:P,disableAutoFocus:I,disableRestoreFocus:U,getDoc:st,isEnabled:ft,open:Y},o.cloneElement(b,vt))))}));e.a=C},function(t,e,n){"use strict";var r=n(1),i=n(2),o=n(0),a=(n(40),n(6),n(3)),s=n(7),u=n(9),c=n(62),l=n(16),f=n(63),h=n(45),p=n(170),d=n(22),v=n(176),y=n(19),m=n(15),g=n(11);function b(t){return"scale(".concat(t,", ").concat(Math.pow(t,2),")")}var w={entering:{opacity:1,transform:b(1)},entered:{opacity:1,transform:"none"}},E=o.forwardRef((function(t,e){var n=t.children,a=t.disableStrictModeCompat,s=void 0!==a&&a,u=t.in,c=t.onEnter,l=t.onEntered,f=t.onEntering,h=t.onExit,p=t.onExited,E=t.onExiting,T=t.style,_=t.timeout,k=void 0===_?"auto":_,I=t.TransitionComponent,x=void 0===I?v.a:I,S=Object(i.a)(t,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),O=o.useRef(),A=o.useRef(),N=Object(y.a)(),C=N.unstable_strictMode&&!s,P=o.useRef(null),R=Object(g.a)(n.ref,e),j=Object(g.a)(C?P:void 0,R),D=function(t){return function(e,n){if(t){var r=C?[P.current,e]:[e,n],i=Object(d.a)(r,2),o=i[0],a=i[1];void 0===a?t(o):t(o,a)}}},L=D(f),M=D((function(t,e){Object(m.b)(t);var n,r=Object(m.a)({style:T,timeout:k},{mode:"enter"}),i=r.duration,o=r.delay;"auto"===k?(n=N.transitions.getAutoHeightDuration(t.clientHeight),A.current=n):n=i,t.style.transition=[N.transitions.create("opacity",{duration:n,delay:o}),N.transitions.create("transform",{duration:.666*n,delay:o})].join(","),c&&c(t,e)})),U=D(l),F=D(E),V=D((function(t){var e,n=Object(m.a)({style:T,timeout:k},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===k?(e=N.transitions.getAutoHeightDuration(t.clientHeight),A.current=e):e=r,t.style.transition=[N.transitions.create("opacity",{duration:e,delay:i}),N.transitions.create("transform",{duration:.666*e,delay:i||.333*e})].join(","),t.style.opacity="0",t.style.transform=b(.75),h&&h(t)})),B=D(p);return o.useEffect((function(){return function(){clearTimeout(O.current)}}),[]),o.createElement(x,Object(r.a)({appear:!0,in:u,nodeRef:C?P:void 0,onEnter:M,onEntered:U,onEntering:L,onExit:V,onExited:B,onExiting:F,addEndListener:function(t,e){var n=C?t:e;"auto"===k&&(O.current=setTimeout(n,A.current||0))},timeout:"auto"===k?null:k},S),(function(t,e){return o.cloneElement(n,Object(r.a)({style:Object(r.a)(Object(r.a)(Object(r.a)({opacity:0,transform:b(.75),visibility:"exited"!==t||u?void 0:"hidden"},w[t]),T),n.props.style),ref:j},e))}))}));E.muiSupportAuto=!0;var T=E,_=n(165);function k(t,e){var n=0;return"number"===typeof e?n=e:"center"===e?n=t.height/2:"bottom"===e&&(n=t.height),n}function I(t,e){var n=0;return"number"===typeof e?n=e:"center"===e?n=t.width/2:"right"===e&&(n=t.width),n}function x(t){return[t.horizontal,t.vertical].map((function(t){return"number"===typeof t?"".concat(t,"px"):t})).join(" ")}function S(t){return"function"===typeof t?t():t}var O=o.forwardRef((function(t,e){var n=t.action,s=t.anchorEl,d=t.anchorOrigin,v=void 0===d?{vertical:"top",horizontal:"left"}:d,y=t.anchorPosition,m=t.anchorReference,g=void 0===m?"anchorEl":m,b=t.children,w=t.classes,E=t.className,O=t.container,A=t.elevation,N=void 0===A?8:A,C=t.getContentAnchorEl,P=t.marginThreshold,R=void 0===P?16:P,j=t.onEnter,D=t.onEntered,L=t.onEntering,M=t.onExit,U=t.onExited,F=t.onExiting,V=t.o
2pen,B=t.PaperProps,z=void 0===B?{}:B,q=t.transformOrigin,W=void 0===q?{vertical:"top",horizontal:"left"}:q,H=t.TransitionComponent,G=void 0===H?T:H,K=t.transitionDuration,$=void 0===K?"auto":K,X=t.TransitionProps,Q=void 0===X?{}:X,Y=Object(i.a)(t,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),J=o.useRef(),Z=o.useCallback((function(t){if("anchorPosition"===g)return y;var e=S(s),n=(e&&1===e.nodeType?e:Object(l.a)(J.current).body).getBoundingClientRect(),r=0===t?v.vertical:"center";return{top:n.top+k(n,r),left:n.left+I(n,v.horizontal)}}),[s,v.horizontal,v.vertical,y,g]),tt=o.useCallback((function(t){var e=0;if(C&&"anchorEl"===g){var n=C(t);if(n&&t.contains(n)){var r=function(t,e){for(var n=e,r=0;n&&n!==t;)r+=(n=n.parentElement).scrollTop;return r}(t,n);e=n.offsetTop+n.clientHeight/2-r||0}0}return e}),[v.vertical,g,C]),et=o.useCallback((function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:k(t,W.vertical)+e,horizontal:I(t,W.horizontal)}}),[W.horizontal,W.vertical]),nt=o.useCallback((function(t){var e=tt(t),n={width:t.offsetWidth,height:t.offsetHeight},r=et(n,e);if("none"===g)return{top:null,left:null,transformOrigin:x(r)};var i=Z(e),o=i.top-r.vertical,a=i.left-r.horizontal,u=o+n.height,c=a+n.width,l=Object(f.a)(S(s)),h=l.innerHeight-R,p=l.innerWidth-R;if(o<R){var d=o-R;o-=d,r.vertical+=d}else if(u>h){var v=u-h;o-=v,r.vertical+=v}if(a<R){var y=a-R;a-=y,r.horizontal+=y}else if(c>p){var m=c-p;a-=m,r.horizontal+=m}return{top:"".concat(Math.round(o),"px"),left:"".concat(Math.round(a),"px"),transformOrigin:x(r)}}),[s,g,Z,tt,et,R]),rt=o.useCallback((function(){var t=J.current;if(t){var e=nt(t);null!==e.top&&(t.style.top=e.top),null!==e.left&&(t.style.left=e.left),t.style.transformOrigin=e.transformOrigin}}),[nt]),it=o.useCallback((function(t){J.current=u.findDOMNode(t)}),[]);o.useEffect((function(){V&&rt()})),o.useImperativeHandle(n,(function(){return V?{updatePosition:function(){rt()}}:null}),[V,rt]),o.useEffect((function(){if(V){var t=Object(c.a)((function(){rt()}));return window.addEventListener("resize",t),function(){t.clear(),window.removeEventListener("resize",t)}}}),[V,rt]);var ot=$;"auto"!==$||G.muiSupportAuto||(ot=void 0);var at=O||(s?Object(l.a)(S(s)).body:void 0);return(o.createElement(p.a,Object(r.a)({container:at,open:V,ref:e,BackdropProps:{invisible:!0},className:Object(a.a)(w.root,E)},Y),o.createElement(G,Object(r.a)({appear:!0,in:V,onEnter:j,onEntered:D,onExit:M,onExited:U,onExiting:F,timeout:ot},Q,{onEntering:Object(h.a)((function(t,e){L&&L(t,e),rt()}),Q.onEntering)}),o.createElement(_.a,Object(r.a)({elevation:N,ref:it},z,{className:Object(a.a)(w.paper,z.className)}),b))))})),A=Object(s.a)({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(O),N=n(39),C=o.forwardRef((function(t,e){var n=t.children,s=t.classes,u=t.className,c=t.component,l=void 0===c?"ul":c,f=t.dense,h=void 0!==f&&f,p=t.disablePadding,d=void 0!==p&&p,v=t.subheader,y=Object(i.a)(t,["children","classes","className","component","dense","disablePadding","subheader"]),m=o.useMemo((function(){return{dense:h}}),[h]);return o.createElement(N.a.Provider,{value:m},o.createElement(l,Object(r.a)({className:Object(a.a)(s.root,u,h&&s.dense,!d&&s.padding,v&&s.subheader),ref:e},y),v,n))}
2)),P=Object(s.a)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(C),R=n(64);function j(t,e,n){return t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:n?null:t.firstChild}function D(t,e,n){return t===e?n?t.firstChild:t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:n?null:t.lastChild}function L(t,e){if(void 0===e)return!0;var n=t.innerText;return void 0===n&&(n=t.textContent),0!==(n=n.trim().toLowerCase()).length&&(e.repeating?n[0]===e.keys[0]:0===n.indexOf(e.keys.join("")))}function M(t,e,n,r,i,o){for(var a=!1,s=i(t,e,!!e&&n);s;){if(s===t.firstChild){if(a)return;a=!0}var u=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&L(s,o)&&!u)return void s.focus();s=i(t,s,n)}}var U="undefined"===typeof window?o.useEffect:o.useLayoutEffect,F=o.forwardRef((function(t,e){var n=t.actions,a=t.autoFocus,s=void 0!==a&&a,c=t.autoFocusItem,f=void 0!==c&&c,h=t.children,p=t.className,d=t.disabledItemsFocusable,v=void 0!==d&&d,y=t.disableListWrap,m=void 0!==y&&y,b=t.onKeyDown,w=t.variant,E=void 0===w?"selectedMenu":w,T=Object(i.a)(t,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),_=o.useRef(null),k=o.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});U((function(){s&&_.current.focus()}),[s]),o.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(t,e){var n=!_.current.style.width;if(t.clientHeight<_.current.clientHeight&&n){var r="".concat(Object(R.a)(!0),"px");_.current.style["rtl"===e.direction?"paddingLeft":"paddingRight"]=r,_.current.style.width="calc(100% + ".concat(r,")")}return _.current}}}),[]);var I=o.useCallback((function(t){_.current=u.findDOMNode(t)}),[]),x=Object(g.a)(I,e),S=-1;o.Children.forEach(h,(function(t,e){o.isValidElement(t)&&(t.props.disabled||("selectedMenu"===E&&t.props.selected?S=e:-1===S&&(S=e)))}));var O=o.Children.map(h,(function(t,e){if(e===S){var n={};return f&&(n.autoFocus=!0),void 0===t.props.tabIndex&&"selectedMenu"===E&&(n.tabIndex=0),o.cloneElement(t,n)}return t}));return(o.createElement(P,Object(r.a)({role:"menu",ref:x,className:p,onKeyDown:function(t){var e=_.current,n=t.key,r=Object(l.a)(e).activeElement;if("ArrowDown"===n)t.preventDefault(),M(e,r,m,v,j);else if("ArrowUp"===n)t.preventDefault(),M(e,r,m,v,D);else if("Home"===n)t.preventDefault(),M(e,null,m,v,j);else if("End"===n)t.preventDefault(),M(e,null,m,v,D);else if(1===n.length){var i=k.current,o=n.toLowerCase(),a=performance.now();i.keys.length>0&&(a-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=a,i.keys.push(o);var s=r&&!i.repeating&&L(r,i);i.previousKeyMatched&&(s||M(e,r,!1,v,j,i))?t.preventDefault():i.previousKeyMatched=!1}b&&b(t)},tabIndex:s?0:-1},T),O))})),V=n(29),B={vertical:"top",horizontal:"right"},z={vertical:"top",horizontal:"left"},q=o.forwardRef((function(t,e){var n=t.autoFocus,s=void 0===n||n,c=t.children,l=t.classes,f=t.disableAutoFocusItem,h=void 0!==f&&f,p=t.MenuListProps,d=void 0===p?{}:p,v=t.onClose,m=t.onEntering,g=t.open,b=t.PaperProps,w=void 0===b?{}:b,E=t.PopoverClasses,T=t.transitionDuration,_=void 0===T?"auto":T,k=t.variant,I=void 0===k?"selectedMenu":k,x=Object(i.a)(t,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","variant"]),S=Object(y.a)(),O=s&&!h&&g,N=o.useRef(null),C=o.useRef(null),P=-1;o.Children.map(c,(function(t,e){o.isValidElement(t)&&(t.props.disabled||("menu"!==I&&t.props.selected?P=e:-1===P&&(P=e)))}));var R=o.Children.map(c,(function(t,e){return e===P?o.cloneElement(t,{ref:function(e){C.current=u.findDOMNode(e),Object(V.a)(t.ref,e)}}):t}));return(o.createElement(A,Object(r.a)({getContentAnchorEl:function(){return C.current},classes:E,onClose:v,onEntering:function(t,e){N.current&&N.current.adjustStyleForScrollbar(t,S),m&&m(t,e)},anchorOrigin:"rtl"===S.direction?B:z,transformOrigin:"rtl"===S.direction?B:z,PaperProps:Object(r.a)(Object(r.a)({},w),{},{classes:Object(r.a)(Object(r.a)({},w.classes),{},{root:l.paper})}),open:g,ref:e,transitionDuration:_},x),o.createElement(F,Object(r.a)({onKeyDown:function(t){"Tab"===t.key&&(t.preventDefault(),v&&v(t,"tabKeyDown"))},actions:N,autoFocus:s&&(-1===P||h),autoFocusItem:O,variant:I},d,{className:Object(a.a)(l.list,d.className)}),R)))}));e.a=Object(s.a)({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(q)},function(t,e,n){"use strict";var r=n(1),i=n(57),o=n(55),a=n(35),s=n(58);var u=n(22),c=n(2),l=n(0),f=(n(40),n(6),n(3)),h=n(176),p=n(7),d=n(17),v=n(15),y=n(19),m=n(11),g=l.forwardRef((function(t,e){var n=t.children,i=t.classes,o=t.className,a=t.collapsedHeight,s=void 0===a?"0px":a,p=t.component,g=void 0===p?"div":p,b=t.disableStrictModeCompat,w=void 0!==b&&b,E=t.in,T=t.onEnter,_=t.onEntered,k=t.onEntering,I=t.onExit,x=t.onExited,S=t.onExiting,O=t.style,A=t.timeout,N=void 0===A?d.b.standard:A,C=t.TransitionComponent,P=void 0===C?h.a:C,R=Object(c.a)(t,["children","classes","className","collapsedHeight","component","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),j=Object(y.a)(),D=l.useRef(),L=l.useRef(null),M=l.useRef(),U="number"===typeof s?"".concat(s,"px"):s;l.useEffect((function(){return function(){clearTimeout(D.current)}}),[]);var F=j.unstable_strictMode&&!w,V=l.useRef(null),B=Object(m.a)(e,F?V:void 0),z=function(t){return function(e,n){if(t){var r=F?[V.current,e]:[e,n],i=Object(u.a)(r,2),o=i[0],a=i[1];t(o,a)}}},q=z((function(t,e){t.style.height=U,T&&T(t,e)})),W=z((function(t,e){var n=L.current?L.current.clientHeight:0,r=Object(v.a)({style:O,timeout:N},{mode:"enter"}).duration;if("auto"===N){var i=j.transitions.getAutoHeightDuration(n);t.style.transitionDuration="".concat(i,"ms"),M.current=i}else t.style.transitionDuration="string"===typeof r?r:"".concat(r,"ms");t.style.height="".concat(n,"px"),k&&k(t,e)})),H=z((function(t,e){t.style.height="auto",_&&_(t,e)})),G=z((function(t){var e=L.current?L.current.clientHeight:0;t.style.height="".concat(e,"px"),I&&I(t)})),K=z(x),$=z((function(t){var e=L.current?L.current.clientHeight:0,n=Object(v.a)({style:O,timeout:N},{mode:"exit"}).duration;if("auto"===N){var r=j.transitions.getAutoHeightDuration(e);t.style.transitionDuration="".concat(r,"ms"),M.current=r}else t.style.transitionDuration="string"===typeof n?n:"".concat(n,"ms");t.style.height=U,S&&S(t)}));return l.createElement(P,Object(r.a)({in:E,onEnter:q,onEntered:H,onEntering:W,onExit:G,onExited:K,onExiting:$,addEndListener:function(t,e){var n=F?t:e;"auto"===N&&(D.current=setTimeout(n,M.current||0))},nodeRef:F?V:void 0,timeout:"auto"===N?null:N},R),(function(t,e){return l.createElement(g,Object(r.a)({className:Object(f.a)(i.container,o,{entered:i.entered,exited:!E&&"0px"===U&&i.hidden}[t]),style:Object(r.a)({minHeight:U},O),ref:B},e),l.createElement("div",{className:i.wrapper,ref:L},l.createElement("div",{className:i.wrapperInner},n)))}))}));g.muiSupportAuto=!0;var b=Object(p.a)((function(t){return{container:{height:0,overflow:"hidden",transition:t.transitions.create("height")},entered:{height:"auto",overflow:"visible"},hidden:{visibility:"hidden"},wrapper:{display:"flex"},wrapperInner:{width:"100%"}}}),{name:"MuiCollapse"})(g),w=n(165),E=n(65);var T=l.forwardRef((function(t,e){var n,h=t.children,p=t.classes,d=t.className,v=t.defaultExpanded,y=void 0!==v&&v,m=t.disabled,g=void 0!==m&&m,T=t.expanded,_=t.onChange,k=t.square,I=void 0!==k&&k,x=t.TransitionComponent,S=void 0===x?b:x,O=t.TransitionProps,A=Object(c.a)(t,["children","classes","className","defaultExpanded","disabled","expanded","onChange","square","TransitionComponent","TransitionProps"]),N=function(t){var e=t.controlled,n=t.default,r=(t.name,t.state,l.useRef(void 0!==e).current),i=l.useState(n),o=i[0],a=i[1];return[r?e:o,l.useCallback((function(t){r||a(t)}),[])]}({controlled:T,default:y,name:"ExpansionPanel",state:"expanded"}),C=Object(u.a)(N,2),P=C[0],R=C[1],j=l.useCallback((function(t){R(!P),_&&_(t,!P)}),[P,_,R]),D=l.Children.toArray(h),L=(n=D,Object(i.a)(n)||Object(o.a)(n)||Object(a.a)(n)||Object(s.a)()),M=L[0],U=L.slice(1),F=l.useMemo((function(){return{expanded:P,disabled:g,toggle:j}}),[P,g,j]);return l.createElement(w.a,Object(r.a)({className:Object(f.a)(p.root,d,P&&p.expanded,g&&p.disabled,!I&&p.rounded),ref:e,square:I},A),l.createElement(E.a.Provider,{value:F},M),l.createElement(S,Object(r.a)({in:P,timeout:"auto"},O),l.createElement("div",{"aria-labelledby":M.props.id,id:M.props["aria-controls"],role:"region"},U)))}));e.a=Object(p.a)((function(t){var e={duration:t.transitions.duration.shortest};return{root:{position:"relative",transition:t.transitions.create(["margin"],e),"&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:t.palette.divider,transition:t.transitions.create(["opacity","background-color"],e)},"&:first-child":{"&:before":{display:"none"}},"&$expanded":{margin:"16px 0","&:first-child":{marginTop:0},"&:last-child":{marginBottom:0},"&:before":{opacity:0}
2},"&$expanded + &":{"&:before":{display:"none"}},"&$disabled":{backgroundColor:t.palette.action.disabledBackground}},rounded:{borderRadius:0,"&:first-child":{borderTopLeftRadius:t.shape.borderRadius,borderTopRightRadius:t.shape.borderRadius},"&:last-child":{borderBottomLeftRadius:t.shape.borderRadius,borderBottomRightRadius:t.shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},expanded:{},disabled:{}}}),{name:"MuiExpansionPanel"})(T)},function(t,e,n){"use strict";var r=n(1),i=n(2),o=n(0),a=(n(6),n(3)),s=n(170),u=n(7),c=n(22),l=n(176),f=n(17),h=n(19),p=n(15),d=n(11),v={entering:{opacity:1},entered:{opacity:1}},y={enter:f.b.enteringScreen,exit:f.b.leavingScreen},m=o.forwardRef((function(t,e){var n=t.children,a=t.disableStrictModeCompat,s=void 0!==a&&a,u=t.in,f=t.onEnter,m=t.onEntered,g=t.onEntering,b=t.onExit,w=t.onExited,E=t.onExiting,T=t.style,_=t.TransitionComponent,k=void 0===_?l.a:_,I=t.timeout,x=void 0===I?y:I,S=Object(i.a)(t,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),O=Object(h.a)(),A=O.unstable_strictMode&&!s,N=o.useRef(null),C=Object(d.a)(n.ref,e),P=Object(d.a)(A?N:void 0,C),R=function(t){return function(e,n){if(t){var r=A?[N.current,e]:[e,n],i=Object(c.a)(r,2),o=i[0],a=i[1];t(o,a)}}},j=R(g),D=R((function(t,e){Object(p.b)(t);var n=Object(p.a)({style:T,timeout:x},{mode:"enter"});t.style.webkitTransition=O.transitions.create("opacity",n),t.style.transition=O.transitions.create("opacity",n),f&&f(t,e)})),L=R(m),M=R(E),U=R((function(t){var e=Object(p.a)({style:T,timeout:x},{mode:"exit"});t.style.webkitTransition=O.transitions.create("opacity",e),t.style.transition=O.transitions.create("opacity",e),b&&b(t)})),F=R(w);return o.createElement(k,Object(r.a)({appear:!0,in:u,nodeRef:A?N:void 0,onEnter:D,onEntered:L,onEntering:j,onExit:U,onExited:F,onExiting:M,timeout:x},S),(function(t,e){return o.cloneElement(n,Object(r.a)({style:Object(r.a)(Object(r.a)(Object(r.a)({opacity:0,visibility:"exited"!==t||u?void 0:"hidden"},v[t]),T),n.props.style),ref:P},e))}))})),g=o.forwardRef((function(t,e){var n=t.children,s=t.classes,u=t.className,c=t.invisible,l=void 0!==c&&c,f=t.open,h=t.transitionDuration,p=t.TransitionComponent,d=void 0===p?m:p,v=Object(i.a)(t,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return(o.createElement(d,Object(r.a)({in:f,timeout:h},v),o.createElement("div",{className:Object(a.a)(s.root,u,l&&s.invisible),"aria-hidden":!0,ref:e},n)))})),b=Object(u.a)({root:{zIndex:-1,position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},{name:"MuiBackdrop"})(g),w=n(9),E=n(62);function T(t,e){var n=function(t,e){var n,r=e.getBoundingClientRect();if(e.fakeTransform)n=e.fakeTransform;else{var i=window.getComputedStyle(e);n=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var o=0,a=0;if(n&&"none"!==n&&"string"===typeof n){var s=n.split("(")[1].split(")")[0].split(",");o=parseInt(s[4],10),a=parseInt(s[5],10)}return"left"===t?"translateX(".concat(window.innerWidth,"px) translateX(").concat(o-r.left,"px)"):"right"===t?"translateX(-".concat(r.left+r.width-o,"px)"):"up"===t?"translateY(".concat(window.innerHeight,"px) translateY(").concat(a-r.top,"px)"):"translateY(-".concat(r.top+r.height-a,"px)")}(t,e);n&&(e.style.webkitTransform=n,e.style.transform=n)}var _={enter:f.b.enteringScreen,exit:f.b.leavingScreen},k=o.forwardRef((function(t,e){var n=t.children,a=t.direction,s=void 0===a?"down":a,u=t.in,c=t.onEnter,f=t.onEntered,v=t.onEntering,y=t.onExit,m=t.onExited,g=t.onExiting,b=t.style,k=t.timeout,I=void 0===k?_:k,x=t.TransitionComponent,S=void 0===x?l.a:x,O=Object(i.a)(t,["children","direction","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),A=Object(h.a)(),N=o.useRef(null),C=o.useCallback((function(t){N.current=w.findDOMNode(t)}),[]),P=Object(d.a)(n.ref,C),R=Object(d.a)(P,e),j=function(t){return function(e){t&&t(N.current,e)}},D=j((function(t,e){T(s,t),Object(p.b)(t),c&&c(t,e)})),L=j((function(t,e){var n=Object(p.a)({timeout:I,style:b},{mode:"enter"});t.style.webkitTransition=A.transitions.create("-webkit-transform",Object(r.a)(Object(r.a)({},n),{},{easing:A.transitions.easing.easeOut})),t.style.transition=A.transitions.create("transform",Object(r.a)(Object(r.a)({},n),{},{easing:A.transitions.easing.easeOut})),t.style.webkitTransform="none",t.style.transform="none",v&&v(t,e)})),M=j(f),U=j(g),F=j((function(t){var e=Object(p.a)({timeout:I,style:b},{mode:"exit"});t.style.webkitTransition=A.transitions.create("-webkit-transform",Object(r.a)(Object(r.a)({},e),{},{easing:A.transitions.easing.sharp})),t.style.transition=A.transitions.create("transform",Object(r.a)(Object(r.a)({},e),{},{easing:A.transitions.easing.sharp})),T(s,t),y&&y(t)})),V=j((function(t){t.style.webkitTransition="",t.style.transition="",m&&m(t)})),B=o.useCallback((function(){N.current&&T(s,N.current)}),[s]);return o.useEffect((function(){if(!u&&"down"!==s&&"right"!==s){var t=Object(E.a)((function(){N.current&&T(s,N.current)}));return window.addEventListener("resize",t),function(){t.clear(),window.removeEventListener("resize",t)}}}),[s,u]),o.useEffect((function(){u||B()}),[u,B]),o.createElement(S,Object(r.a)({nodeRef:N,onEnter:D,onEntered:M,onEntering:L,onExit:F,onExited:V,onExiting:U,appear:!0,in:u,timeout:I},O),(function(t,e){return o.cloneElement(n,Object(r.a)({ref:R,style:Object(r.a)(Object(r.a)({visibility:"exited"!==t||u?void 0:"hidden"},b),n.props.style)},e))}))}
2)),I=n(165),x=n(21),S={left:"right",right:"left",top:"down",bottom:"up"};var O={enter:f.b.enteringScreen,exit:f.b.leavingScreen},A=o.forwardRef((function(t,e){var n=t.anchor,u=void 0===n?"left":n,c=t.BackdropProps,l=t.children,f=t.classes,p=t.className,d=t.elevation,v=void 0===d?16:d,y=t.ModalProps,m=(y=void 0===y?{}:y).BackdropProps,g=Object(i.a)(y,["BackdropProps"]),w=t.onClose,E=t.open,T=void 0!==E&&E,_=t.PaperProps,A=void 0===_?{}:_,N=t.SlideProps,C=t.TransitionComponent,P=void 0===C?k:C,R=t.transitionDuration,j=void 0===R?O:R,D=t.variant,L=void 0===D?"temporary":D,M=Object(i.a)(t,["anchor","BackdropProps","children","classes","className","elevation","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"]),U=Object(h.a)(),F=o.useRef(!1);o.useEffect((function(){F.current=!0}),[]);var V=function(t,e){return"rtl"===t.direction&&function(t){return-1!==["left","right"].indexOf(t)}(e)?S[e]:e}(U,u),B=o.createElement(I.a,Object(r.a)({elevation:"temporary"===L?v:0,square:!0},A,{className:Object(a.a)(f.paper,f["paperAnchor".concat(Object(x.a)(V))],A.className,"temporary"!==L&&f["paperAnchorDocked".concat(Object(x.a)(V))])}),l);if("permanent"===L)return o.createElement("div",Object(r.a)({className:Object(a.a)(f.root,f.docked,p),ref:e},M),B);var z=o.createElement(P,Object(r.a)({in:T,direction:S[V],timeout:j,appear:F.current},N),B);return"persistent"===L?o.createElement("div",Object(r.a)({className:Object(a.a)(f.root,f.docked,p),ref:e},M),z):o.createElement(s.a,Object(r.a)({BackdropProps:Object(r.a)(Object(r.a)(Object(r.a)({},c),m),{},{transitionDuration:j}),BackdropComponent:b,className:Object(a.a)(f.root,f.modal,p),open:T,onClose:w,ref:e},M,g),z)}));e.a=Object(u.a)((function(t){return{root:{},docked:{flex:"0 0 auto"},paper:{overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:t.zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},paperAnchorLeft:{left:0,right:"auto"},paperAnchorRight:{left:"auto",right:0},paperAnchorTop:{top:0,left:0,bottom:"auto",right:0,height:"auto",maxHeight:"100%"},paperAnchorBottom:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},paperAnchorDockedLeft:{borderRight:"1px solid ".concat(t.palette.divider)},paperAnchorDockedTop:{borderBottom:"1px solid ".concat(t.palette.divider)},paperAnchorDockedRight:{borderLeft:"1px solid ".concat(t.palette.divider)},paperAnchorDockedBottom:{borderTop:"1px solid ".concat(t.palette.divider)},modal:{}}}),{name:"MuiDrawer",flip:!1})(A)},function(t,e,n){"use strict";var r=n(2),i=n(32),o=n(1),a=n(0),s=(n(6),n(3)),u=n(7),c=n(169);var l=n(11),f=n(39),h=n(9),p="undefined"===typeof window?a.useEffect:a.useLayoutEffect,d=a.forwardRef((function(t,e){var n=t.alignItems,i=void 0===n?"center":n,u=t.autoFocus,d=void 0!==u&&u,v=t.button,y=void 0!==v&&v,m=t.children,g=t.classes,b=t.className,w=t.component,E=t.ContainerComponent,T=void 0===E?"li":E,_=t.ContainerProps,k=(_=void 0===_?{}:_).className,I=Object(r.a)(_,["className"]),x=t.dense,S=void 0!==x&&x,O=t.disabled,A=void 0!==O&&O,N=t.disableGutters,C=void 0!==N&&N,P=t.divider,R=void 0!==P&&P,j=t.focusVisibleClassName,D=t.selected,L=void 0!==D&&D,M=Object(r.a)(t,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),U=a.useContext(f.a),F={dense:S||U.dense||!1,alignItems:i},V=a.useRef(null);p((function(){d&&V.current&&V.current.focus()}),[d]);var B,z,q=a.Children.toArray(m),W=q.length&&(B=q[q.length-1],z=["ListItemSecondaryAction"],a.isValidElement(B)&&-1!==z.indexOf(B.type.muiName)),H=a.useCallback((function(t){V.current=h.findDOMNode(t)}),[]),G=Object(l.a)(H,e),K=Object(o.a)({className:Object(s.a)(g.root,b,F.dense&&g.dense,!C&&g.gutters,R&&g.divider,A&&g.disabled,y&&g.button,"center"!==i&&g.alignItemsFlexStart,W&&g.secondaryAction,L&&g.selected),disabled:A},M),$=w||"li";return y&&(K.component=w||"div",K.focusVisibleClassName=Object(s.a)(g.focusVisible,j),$=c.a),W?($=K.component||w?$:"div","li"===T&&("li"===$?$="div":"li"===K.component&&(K.component="div")),a.createElement(f.a.Provider,{value:F},a.createElement(T,Object(o.a)({className:Object(s.a)(g.container,k),ref:G}
2,I),a.createElement($,K,q),q.pop()))):a.createElement(f.a.Provider,{value:F},a.createElement($,Object(o.a)({ref:G},K),q))})),v=Object(u.a)((function(t){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:t.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:t.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(t.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:t.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(d),y=a.forwardRef((function(t,e){var n,i=t.classes,u=t.className,c=t.component,l=void 0===c?"li":c,f=t.disableGutters,h=void 0!==f&&f,p=t.ListItemClasses,d=t.role,y=void 0===d?"menuitem":d,m=t.selected,g=t.tabIndex,b=Object(r.a)(t,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]);return t.disabled||(n=void 0!==g?g:-1),a.createElement(v,Object(o.a)({button:!0,role:y,tabIndex:n,component:l,selected:m,disableGutters:h,classes:Object(o.a)({dense:i.dense},p),className:Object(s.a)(i.root,u,m&&i.selected,!h&&i.gutters),ref:e},b))}));e.a=Object(u.a)((function(t){return{root:Object(o.a)(Object(o.a)({},t.typography.body1),{},Object(i.a)({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},t.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:Object(o.a)(Object(o.a)({},t.typography.body2),{},{minHeight:"auto"})}}),{name:"MuiMenuItem"})(y)},function(t,e,n){"use strict";var r=n(1),i=n(2),o=n(0),a=(n(6),n(3)),s=n(169),u=n(7),c=n(30),l=n(21),f=o.forwardRef((function(t,e){var n=t.edge,u=void 0!==n&&n,c=t.children,f=t.classes,h=t.className,p=t.color,d=void 0===p?"default":p,v=t.disabled,y=void 0!==v&&v,m=t.disableFocusRipple,g=void 0!==m&&m,b=t.size,w=void 0===b?"medium":b,E=Object(i.a)(t,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return(o.createElement(s.a,Object(r.a)({className:Object(a.a)(f.root,h,"default"!==d&&f["color".concat(Object(l.a)(d))],y&&f.disabled,"small"===w&&f["size".concat(Object(l.a)(w))],{start:f.edgeStart,end:f.edgeEnd}[u]),centerRipple:!0,focusRipple:!g,disabled:y,ref:e},E),o.createElement("span",{className:f.label},c)))})),h=Object(u.a)((function(t){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:t.palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{backgroundColor:Object(c.b)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:t.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:t.palette.primary.main,"&:hover":{backgroundColor:Object(c.b)(t.palette.primary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:t.palette.secondary.main,"&:hover":{backgroundColor:Object(c.b)(t.palette.secondary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:t.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(f),p=n(65),d=o.forwardRef((function(t,e){var n=t.children,u=t.classes,c=t.className,l=t.expandIcon,f=t.IconButtonProps,d=t.onBlur,v=t.onClick,y=t.onFocusVisible,m=Object(i.a)(t,["children","classes","className","expandIcon","IconButtonProps","onBlur","onClick","onFocusVisible"]),g=o.useState(!1),b=g[0],w=g[1],E=o.useContext(p.a),T=E.disabled,_=void 0!==T&&T,k=E.expanded,I=E.toggle;return o.createElement(s.a,Object(r.a)({focusRipple:!1,disableRipple:!0,disabled:_,component:"div","aria-expanded":k,className:Object(a.a)(u.root,c,_&&u.disabled,k&&u.expanded,b&&u.focused),onFocusVisible:function(t){w(!0),y&&y(t)},onBlur:function(t){w(!1),d&&d(t)},onClick:function(t){I&&I(t),v&&v(t)}
2,ref:e},m),o.createElement("div",{className:Object(a.a)(u.content,k&&u.expanded)},n),l&&o.createElement(h,Object(r.a)({className:Object(a.a)(u.expandIcon,k&&u.expanded),edge:"end",component:"div",tabIndex:null,role:null,"aria-hidden":!0},f),l))}));e.a=Object(u.a)((function(t){var e={duration:t.transitions.duration.shortest};return{root:{display:"flex",minHeight:48,transition:t.transitions.create(["min-height","background-color"],e),padding:t.spacing(0,2),"&:hover:not($disabled)":{cursor:"pointer"},"&$expanded":{minHeight:64},"&$focused":{backgroundColor:t.palette.action.focus},"&$disabled":{opacity:t.palette.action.disabledOpacity}},expanded:{},focused:{},disabled:{},content:{display:"flex",flexGrow:1,transition:t.transitions.create(["margin"],e),margin:"12px 0","&$expanded":{margin:"20px 0"}},expandIcon:{transform:"rotate(0deg)",transition:t.transitions.create("transform",e),"&:hover":{backgroundColor:"transparent"},"&$expanded":{transform:"rotate(180deg)"}}}}),{name:"MuiExpansionPanelSummary"})(d)},function(t,e,n){"use strict";var r=n(60),i=n(61),o=(n(6),n(0)),a=n.n(o),s=n(9),u=n.n(s),c=!1,l=n(38),f=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(i.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.isMounting:t,i=this.props.nodeRef?[r]:[u.a.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!t&&!n||c?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(l,(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:u.a.findDOMNode(this);e&&!c?(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:u.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,i=(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(r.a)(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return(a.a.createElement(l.a.Provider,{value:null},"function"===typeof n?n(t,i):a.a.cloneElement(a.a.Children.only(n),i)))},e}(a.a.Component);function h(){}
2f.contextType=l.a,f.propTypes={},f.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:h,onEntering:h,onEntered:h,onExit:h,onExiting:h,onExited:h},f.UNMOUNTED="unmounted",f.EXITED="exited",f.ENTERING="entering",f.ENTERED="entered",f.EXITING="exiting";e.a=f}]]);
3//# sourceMappingURL=2.5fbc6f5e.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.