1/*! For license information please see 2.d73c0c17.chunk.js.LICENSE.txt */ 2(this["webpackJsonpp-seminar_mathe_grundwissen"]=this["webpackJsonpp-seminar_mathe_grundwissen"]||[]).push([[2],[function(t,e,n){"use strict";t.exports=n(139)},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(30);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";var r=n(1),i=n(2),o=n(0),a=n.n(o),s=(n(6),n(66)),u=n.n(s),c=n(848),l=n(847),f=n(91),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,m=Object(c.a)(t,Object(r.a)({defaultTheme:o,Component:n,name:p||n.displayName,classNamePrefix:v},d)),y=a.a.forwardRef((function(t,e){t.classes;var s,u=t.innerRef,c=Object(i.a)(t,["classes","innerRef"]),d=m(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()(y,n),y}},p=n(48);e.a=function(t,e){return h(t,Object(r.a)({defaultTheme:p.a},e))}},function(t,e,n){t.exports=n(147)},function(t,e,n){t.exports=n(149)()},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";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";Object.defineProperty(e,"__esModule",{value:!0});var r,i,o=n(61),a=n(80),s=n(100),u=n(101),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 m=v.value;e[m]._addComponent(s)}}catch(y){u={error:y}}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 m=self.firebase.SDK_VERSION;m&&m.indexOf("LITE")>=0&&h.warn("\n Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n ")}var y=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 '),y.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){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function i(){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}}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)}n.d(e,"a",(function(){return u}));var a=n(14);function s(t,e){return!e||"object"!==o(e)&&"function"!==typeof e?Object(a.a)(t):e}function u(t){return function(){var e,n=r(t);if(i()){var o=r(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return s(this,e)}}},function(t,e,n){"use strict";function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}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&&r(t,e)}n.d(e,"a",(function(){return i}))},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;
2return 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";function r(t){return t.charAt(0).toUpperCase()+t.slice(1)}n.d(e,"a",(function(){return r}))},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";n.d(e,"a",(function(){return o}));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 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(140)},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/3,"}"),"g"),n=t.match(e);return n&&1===n[0].length&&(n=n.map((function(t){return t+t}))),n?"rgb(".concat(n.map((function(t){return parseInt(t,16)})).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";function r(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return 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){t.exports=function(t){return t&&t.__esModule?t:{default:t}}},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";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){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";var r=n(22);
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(158)),o=r(n(0)),a=r(n(81))},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(0),i=n(33);function o(){return r.useContext(i.a)}},function(t,e,n){"use strict";t.exports=function(t){return i.test("number"===typeof t?r(t):t.charAt(0))};var r=String.fromCharCode,i=/\s/},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,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";n.d(e,"a",(function(){return o}));var r=n(91),i=(n(0),n(48));function o(){return Object(r.a)()||i.a}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(58);var i=n(113),o=n(68);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";n.d(e,"b",(function(){return o}));var r=n(0),i=r.createContext();function o(){return r.useContext(i)}e.a=i},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));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){if(!t)throw new Error("Invariant failed")}},function(t,e,n){"use strict";n.d(e,"a",(function(){return w})),n.d(e,"c",(function(){return T})),n.d(e,"b",(function(){return d})),n.d(e,"e",(function(){return v})),n.d(e,"d",(function(){return p}));var r=n(1);function i(t){return"/"===t.charAt(0)}function o(t,e){for(var n=e,r=n+1,i=t.length;r<i;n+=1,r+=1)t[n]=t[r];t.pop()}var a=function(t,e){void 0===e&&(e="");var n,r=t&&t.split("/")||[],a=e&&e.split("/")||[],s=t&&i(t),u=e&&i(e),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;if(null==e||null==n)return!1;if(Array.isArray(e))return Array.isArray(n)&&e.length===n.length&&e.every((function(e,r){return t(e,n[r])}));if("object"===typeof e||"object"===typeof n){var r=s(e),i=s(n);return r!==e||i!==n?t(r,i):Object.keys(Object.assign({},e,n)).every((function(r){return t(e[r],n[r])}))}return!1},c=n(35);function l(t){return"/"===t.charAt(0)?t:"/"+t}function f(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 h(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function p(t){var e=t.pathname,n=t.search,r=t.hash,i=e||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function d(t,e,n,i){var o;"string"===typeof t?(o=function(t){var e=t||"/",n="",r="",i=e.indexOf("#");-1!==i&&(r=e.substr(i),e=e.substr(0,i));var o=e.indexOf("?");return-1!==o&&(n=e.substr(o),e=e.substr(0,o)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}}(t)).state=e:(void 0===(o=Object(r.a)({},t)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==e&&void 0===o.state&&(o.state=e));try{o.pathname=decodeURI(o.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invali
2d 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 v(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 y=!("undefined"===typeof window||!window.document||!window.document.createElement);function g(t,e){e(window.confirm(t))}function b(){try{return window.history.state||{}}catch(t){return{}}}function w(t){void 0===t&&(t={}),y||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,v=void 0===u?g:u,w=o.keyLength,E=void 0===w?6:w,T=t.basename?h(l(t.basename)):"";function x(t){var e=t||{},n=e.key,r=e.state,i=window.location,o=i.pathname+i.search+i.hash;return T&&(o=f(o,T)),d(o,r,n)}function k(){return Math.random().toString(36).substr(2,E)}var I=m();function S(t){Object(r.a)(F,t),F.length=e.length,I.notifyListeners(F.location,F.action)}function _(t){(function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")})(t)||N(x(t.state))}function O(){N(x(b()))}var A=!1;function N(t){if(A)A=!1,S();else{I.confirmTransitionTo(t,"POP",v,(function(e){e?S({action:"POP",location:t}):function(t){var e=F.location,n=P.indexOf(e.key);-1===n&&(n=0);var r=P.indexOf(t.key);-1===r&&(r=0);var i=n-r;i&&(A=!0,R(i))}(t)}))}}var C=x(b()),P=[C.key];function j(t){return T+p(t)}function R(t){e.go(t)}var L=0;function D(t){1===(L+=t)&&1===t?(window.addEventListener("popstate",_),i&&window.addEventListener("hashchange",O)):0===L&&(window.removeEventListener("popstate",_),i&&window.removeEventListener("hashchange",O))}var M=!1;var F={length:e.length,action:"POP",location:C,createHref:j,push:function(t,r){var i=d(t,r,k(),F.location);I.confirmTransitionTo(i,"PUSH",v,(function(t){if(t){var r=j(i),o=i.key,a=i.state;if(n)if(e.pushState({key:o,state:a},null,r),s)window.location.href=r;else{var u=P.indexOf(F.location.key),c=P.slice(0,u+1);c.push(i.key),P=c,S({action:"PUSH",location:i})}else window.location.href=r}}))},replace:function(t,r){var i=d(t,r,k(),F.location);I.confirmTransitionTo(i,"REPLACE",v,(function(t){if(t){var r=j(i),o=i.key,a=i.state;if(n)if(e.replaceState({key:o,state:a},null,r),s)window.location.replace(r);else{var u=P.indexOf(F.location.key);-1!==u&&(P[u]=i.key),S({action:"REPLACE",location:i})}else window.location.replace(r)}}))},go:R,goBack:function(){R(-1)},goForward:function(){R(1)},block:function(t){void 0===t&&(t=!1);var e=I.setPrompt(t);return M||(D(1),M=!0),function(){return M&&(M=!1,D(-1)),e()}},listen:function(t){var e=I.appendListener(t);return D(1),function(){D(-1),e()}}};return F}function E(t,e,n){return Math.min(Math.max(t,e),n)}function T(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){Object(r.a)(w,t),w.length=w.entries.length,l.notifyListeners(w.location,w.action)}function h(){return Math.random().toString(36).substr(2,c)}var v=E(s,0,o.length-1),y=o.map((function(t){return d(t,void 0,"string"===typeof t?h():t.key||h())})),g=p;function b(t){var e=E(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[v],index:v,entries:y,createHref:g,push:function(t,e){var r=d(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=d(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){t.exports=function(){for(var t={},e=0;e<arguments.length;e++){var r=arguments[e];for(var i in r)n.call(r,i)&&(t[i]=r[i])}return t};var n=Object.prototype.hasOwnProperty},function(t,e,n){"use strict";e.a=function(t,e){}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(1),i=n(0),o=n.n(i),a=n(54);function s(t,e){var n=o.a.memo(o.a.forwardRef((function(e,n){return o.a.createElement(a.a,Object(r.a)({ref:n},e),t)})));return n.muiName=a.a.muiName,n}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(114);var i=n(68),o=n(115);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(){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";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";var r=n(0),i=n.n(r);e.a=i.a.createContext(null)},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";
2t.exports=n(151)},function(t,e){(e=t.exports=function(t){return t.replace(/^\s*|\s*$/g,"")}).left=function(t){return t.replace(/^\s*/,"")},e.right=function(t){return t.replace(/\s*$/,"")}},function(t,e,n){"use strict";var r=n(128),i=Object(r.a)();e.a=i},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(0);function i(t){var e=t.controlled,n=t.default,i=(t.name,t.state,r.useRef(void 0!==e).current),o=r.useState(n),a=o[0],s=o[1];return[i?e:a,r.useCallback((function(t){i||s(t)}),[])]}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(23);function i(t){return Object(r.a)(t).defaultView||window}},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){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";n.d(e,"a",(function(){return i}));var r=0;function i(t){return"__private_"+r+++"_"+t}},function(t,e,n){"use strict";var r=n(1),i=n(2),o=n(0),a=(n(6),n(3)),s=n(4),u=n(13),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,m=t.htmlColor,y=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:m,"aria-hidden":y?void 0:"true",role:y?"img":void 0,ref:e},w),n,y?o.createElement("title",null,y):null)}));c.muiName="SvgIcon",e.a=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(1),i=n(2),o=n(0),a=(n(6),n(3)),s=n(4),u=n(13),c={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},l=o.forwardRef((function(t,e){var n=t.align,s=void 0===n?"inherit":n,l=t.classes,f=t.className,h=t.color,p=void 0===h?"initial":h,d=t.component,v=t.display,m=void 0===v?"initial":v,y=t.gutterBottom,g=void 0!==y&&y,b=t.noWrap,w=void 0!==b&&b,E=t.paragraph,T=void 0!==E&&E,x=t.variant,k=void 0===x?"body1":x,I=t.variantMapping,S=void 0===I?c:I,_=Object(i.a)(t,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),O=d||(T?"p":S[k]||c[k])||"span";return o.createElement(O,Object(r.a)({className:Object(a.a)(l.root,f,"inherit"!==k&&l[k],"initial"!==p&&l["color".concat(Object(u.a)(p))],w&&l.noWrap,g&&l.gutterBottom,T&&l.paragraph,"inherit"!==s&&l["align".concat(Object(u.a)(s))],"initial"!==m&&l["display".concat(Object(u.a)(m))]),ref:e},_))}));e.a=Object(s.a)((function(t){return{root:{margin:0},body2:t.typography.body2,body1:t.typography.body1,caption:t.typography.caption,button:t.typography.button,h1:t.typography.h1,h2:t.typography.h2,h3:t.typography.h3,h4:t.typography.h4,h5:t.typography.h5,h6:t.typography.h6,subtitle1:t.typography.subtitle1,subtitle2:t.typography.subtitle2,overline:t.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:t.palette.primary.main},colorSecondary:{color:t.palette.secondary.main},colorTextPrimary:{color:t.palette.text.primary},colorTextSecondary:{color:t.palette.text.secondary},colorError:{color:t.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(l)},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";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(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";n.d(e,"a",(function(){return o}
2));var r=n(21);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){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var i=n(37),o=n(161),a=n(174),s=n(6),u=n(230),c=n(232),l=n(233),f=n(234),h=n(235),p=n(236),d=n(237),v=n(238),m=n(239),y=Object.keys(v),g=function(t){var e=t.source||t.children||"",n=t.parserOptions;if(t.allowedTypes&&t.disallowedTypes)throw new Error("Only one of `allowedTypes` and `disallowedTypes` should be defined");var r=i(v,t.renderers),s=[[a,n]].concat(t.plugins||[]).reduce(b,o()),d=s.parse(e),g=i(t,{renderers:r,definitions:p(d)}),w=function(t){var e=[h,u()],n=t.disallowedTypes;t.allowedTypes&&(n=y.filter((function(e){return"root"!==e&&-1===t.allowedTypes.indexOf(e)})));var r=t.unwrapDisallowed?"unwrap":"remove";n&&n.length>0&&e.push(l.ofType(n,r));t.allowNode&&e.push(l.ifNotMatch(t.allowNode,r));var i=!t.escapeHtml&&!t.skipHtml,o=(t.astPlugins||[]).some((function(t){return(Array.isArray(t)?t[0]:t).identity===m.HtmlParser}));i&&!o&&e.push(c);return t.astPlugins?e.concat(t.astPlugins):e}(t),E=s.runSync(d),T=w.reduce((function(t,e){return e(t,g)}),E);return f(T,g)};function b(t,e){return Array.isArray(e)?t.use.apply(t,r(e)):t.use(e)}g.defaultProps={renderers:{},escapeHtml:!0,skipHtml:!1,sourcePos:!1,rawSourcePos:!1,transformLinkUri:d,astPlugins:[],plugins:[],parserOptions:{}},g.propTypes={className:s.string,source:s.string,children:s.string,sourcePos:s.bool,rawSourcePos:s.bool,escapeHtml:s.bool,skipHtml:s.bool,allowNode:s.func,allowedTypes:s.arrayOf(s.oneOf(y)),disallowedTypes:s.arrayOf(s.oneOf(y)),transformLinkUri:s.oneOfType([s.func,s.bool]),linkTarget:s.oneOfType([s.func,s.string]),transformImageUri:s.func,astPlugins:s.arrayOf(s.func),unwrapDisallowed:s.bool,renderers:s.object,plugins:s.array,parserOptions:s.object},g.types=y,g.renderers=v,g.uriTransformer=d,t.exports=g},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 m})),n.d(e,"__await",(function(){return y})),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 x})),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 m(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function y(t){return this instanceof y?(this.v=t,this):new y(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 y?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:y(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 x(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";
2t.exports=function(t){var e="string"===typeof t?t.charCodeAt(0):t;return e>=48&&e<=57}},function(t,e,n){"use strict";t.exports=s;var r=n(193),i=r.CONTINUE,o=r.SKIP,a=r.EXIT;function s(t,e,n,i){"function"===typeof e&&"function"!==typeof n&&(i=n,n=e,e=null),r(t,e,(function(t,e){var r=e[e.length-1],i=r?r.children.indexOf(t):null;return n(t,i,r)}),i)}s.CONTINUE=i,s.SKIP=o,s.EXIT=a},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(65);function i(t){if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=Object(r.a)(t))){var e=0,n=function(){};return{s:n,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o,a=!0,s=!1;return{s:function(){i=t[Symbol.iterator]()},n:function(){var t=i.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==i.return||i.return()}finally{if(s)throw o}}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(57);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(n):"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(46),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;t.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),m=0;m<a.length;++m){var y=a[m];if(!o[y]&&(!r||!r[y])&&(!v||!v[y])&&(!s||!s[y])){var g=h(n,y);try{c(e,y,g)}catch(b){}}}}return e}},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";n.d(e,"a",(function(){return i}));var r=n(58);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(n):"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="function"===typeof Symbol&&Symbol.for;e.a=r?Symbol.for("mui.nested"):"__THEME_NESTED__"},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={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var r=n(0),i=n(17),o=!0,a=!1,s=null,u={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 c(t){t.metaKey||t.altKey||t.ctrlKey||(o=!0)}function l(){o=!1}function f(){"hidden"===this.visibilityState&&a&&(o=!0)}function h(t){var e=t.target;try{return e.matches(":focus-visible")}catch(n){}return o||function(t){var e=t.type,n=t.tagName;return!("INPUT"!==n||!u[e]||t.readOnly)||("TEXTAREA"===n&&!t.readOnly||!!t.isContentEditable)}(e)}function p(){a=!0,window.clearTimeout(s),s=window.setTimeout((function(){a=!1}),100)}function d(){return{isFocusVisible:h,onBlurVisible:p,ref:r.useCallback((function(t){var e,n=i.findDOMNode(t);null!=n&&((e=n.ownerDocument).addEventListener("keydown",c,!0),e.addEventListener("mousedown",l,!0),e.addEventListener("pointerdown",l,!0),e.addEventListener("touchstart",l,!0),e.addEventListener("visibilitychange",f,!0))}),[])}}},function(t,e,n){"use strict";var r=n(22);
2Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(0)),o=(0,r(n(26)).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 s}));var r=n(1),i=n(0),o=n.n(i),a=n(54);function s(t,e){var n=o.a.memo(o.a.forwardRef((function(e,n){return o.a.createElement(a.a,Object(r.a)({ref:n},e),t)})));return n.muiName=a.a.muiName,n}},function(t,e,n){"use strict";var r=n(22);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(0)),o=(0,r(n(26)).default)(i.default.createElement("path",{d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star");e.default=o},function(t,e,n){"use strict";var r=n(22);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(0)),o=(0,r(n(26)).default)(i.default.createElement("path",{d:"M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarHalf");e.default=o},function(t,e,n){"use strict";var r=n(22);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(0)),o=(0,r(n(26)).default)(i.default.createElement("path",{d:"M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarBorder");e.default=o},function(t,e,n){"use strict";var r,i=(r=n(9))&&"object"===typeof r&&"default"in r?r.default:r;i.registerVersion("firebase","7.14.3","app"),t.exports=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=o(n(240)),i=o(n(242));function o(t){return t&&t.__esModule?t:{default:t}}var a={Provider:r.default,Node:i.default};e.default=a},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var r=n(61),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(m,(function(t,n){var r=e[n];return null!=r?r.toString():"<"+n+"?>"}))}var m=/\{\$([^}]+)}/g;function y(t){return JSON.parse(t)}var g=function(t){var e={},n={},r={},i="";try{var o=t.split(".");e=y(c(o[0])||""),n=y(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=y,e.map=function(t,e,n){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=e.call(n,t[i],i,t));return r},e.querystring=function(t){for(var e=[],n=function(t,n){Array.isArray(n)?n.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(56))},function(t,e,n){"use strict";n.r(e);var r=n(54);n.d(e,"default",(function(){return r.a}))},function(t,e,n){"use strict";var r=n(182),i=n(183),o=n(62),a=n(184),s=n(185),u=n(186);t.exports=function(t,e){var n,o,a={};e||(e={});for(o in h)n=e[o],a[o]=null===n||void 0===n?h[o]:n;(a.position.indent||a.position.start)&&(a.indent=a.position.indent||[],a.position=a.position.start);return function(t,e){var n,o,a,h,b,w,E,T,x,k,I,S,_,O,A,N,C,P,j,R=e.additional,L=e.nonTerminated,D=e.text,M=e.reference,F=e.warning,V=e.textContext,U=e.referenceContext,z=e.warningContext,B=e.position,q=e.indent||[],H=t.length,W=0,G=-1,K=B.column||1,$=B.line||1,X="",Y=[];"string"===typeof R&&(R=R.charCodeAt(0));N=Q(),T=F?function(t,e){var n=Q();n.column+=e,n.offset+=e,F.call(z,y[t],n,t)}:f,W--,H++;for(;++W<H;)if(10===b&&(K=q[G]||1),38===(b=t.charCodeAt(W))){if(9===(E=t.charCodeAt(W+1))||10===E||12===E||32===E||38===E||60===E||E!==E||R&&E===R){X+=l(b),K++;continue}for(S=_=W+1,j=_,35===E?(j=++S,88===(E=t.charCodeAt(j))||120===E?(O=d,j=++S):O="decimal"):O=p,n="",I="",h="",A=m[O],j--;++j<H&&(E=t.charCodeAt(j),A(E));)h+=l(E),O===p&&c.call(r,h)&&(n=h,I=r[h]);
2(a=59===t.charCodeAt(j))&&(j++,(o=O===p&&u(h))&&(n=h,I=o)),P=1+j-_,(a||L)&&(h?O===p?(a&&!I?T(5,1):(n!==h&&(j=S+n.length,P=1+j-S,a=!1),a||(x=n?1:3,e.attribute?61===(E=t.charCodeAt(j))?(T(x,P),I=null):s(E)?I=null:T(x,P):T(x,P))),w=I):(a||T(2,P),w=parseInt(h,v[O]),(J=w)>=55296&&J<=57343||J>1114111?(T(7,P),w=l(65533)):w in i?(T(6,P),w=i[w]):(k="",g(w)&&T(6,P),w>65535&&(k+=l((w-=65536)>>>10|55296),w=56320|1023&w),w=k+l(w))):O!==p&&T(4,P)),w?(Z(),N=Q(),W=j-1,K+=j-_+1,Y.push(w),(C=Q()).offset++,M&&M.call(U,w,{start:N,end:C},t.slice(_-1,j)),N=C):(h=t.slice(_-1,j),X+=h,K+=h.length,W=j-1)}else 10===b&&($++,G++,K=0),b===b?(X+=l(b),K++):Z();var J;return Y.join("");function Q(){return{line:$,column:K,offset:W+(B.offset||0)}}function Z(){X&&(Y.push(X),D&&D.call(V,X,{start:N,end:Q()}),X="")}}(t,a)};var c={}.hasOwnProperty,l=String.fromCharCode,f=Function.prototype,h={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},p="named",d="hexadecimal",v={hexadecimal:16,decimal:10},m={};m[p]=s,m.decimal=o,m[d]=a;var y={};function g(t){return t>=1&&t<=8||11===t||t>=13&&t<=31||t>=127&&t<=159||t>=64976&&t<=65007||65535===(65535&t)||65534===(65535&t)}y[1]="Named character references must be terminated by a semicolon",y[2]="Numeric character references must be terminated by a semicolon",y[3]="Named character references cannot be empty",y[4]="Numeric character references cannot be empty",y[5]="Named character references must be known",y[6]="Numeric character references cannot be disallowed",y[7]="Numeric character references cannot be outside the permissible Unicode range"},function(t,e,n){"use strict";var r,i="";t.exports=function(t,e){if("string"!==typeof t)throw new TypeError("expected a string");if(1===e)return t;if(2===e)return t+t;var n=t.length*e;if(r!==t||"undefined"===typeof r)r=t,i="";else if(i.length>=n)return i.substr(0,n);for(;n>i.length&&e>1;)1&e&&(i+=t),e>>=1,t+=t;return i=(i+=t).substr(0,n)}},function(t,e,n){"use strict";t.exports=function(t){var e=String(t),n=e.length;for(;"\n"===e.charAt(--n););return e.slice(0,n+1)}},function(t,e,n){"use strict";t.exports=function(t,e,n,r){var i,o,a,s,u,c,l=["pedantic","commonmark"],f=l.length,h=t.length,p=-1;for(;++p<h;){for(i=t[p],o=i[1]||{},a=i[0],s=-1,c=!1;++s<f;)if(void 0!==o[u=l[s]]&&o[u]!==n.options[u]){c=!0;break}if(!c&&e[a].apply(n,r))return!0}return!1}},function(t,e,n){"use strict";var r=n(206);t.exports=function(t){return r(t).toLowerCase()}},,function(t,e){t.exports=function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}},function(t,e,n){var r=n(845);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],m=n[3],y=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,x="?"===b||"*"===b,k=n[2]||l,I=y||g;r.push({name:m||o++,prefix:v||"",delimiter:k,optional:x,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";n.d(e,"a",(function(){return o}));var r=n(57);var i=n(65);function o(t){return function(t){if(Array.isArray(t))return Object(r.a)(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||Object(i.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";n.d(e,"a",(function(){return a}));var r=n(0),i=n.n(r),o=n(67);function a(){return i.a.useContext(o.a)}},,,,,,,,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";Object.defineProperty(e,"__esModule",{value:!0});var r=n(61),i=n(80),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(){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}
2)),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){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var u,c=[],l=!1,f=-1;function h(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&p())}function p(){if(!l){var t=s(h);l=!0;for(var e=c.length;e;){for(u=c,c=[];++f<e;)u&&u[f].run();f=-1,e=c.length}u=null,l=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function v(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new d(t,e)),1!==c.length||l||s(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,n){(function(t){function n(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function r(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r<t.length;r++)e(t[r],r,t)&&n.push(t[r]);return n}e.resolve=function(){for(var e="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var a=o>=0?arguments[o]:t.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(e=a+"/"+e,i="/"===a.charAt(0))}return(i?"/":"")+(e=n(r(e.split("/"),(function(t){return!!t})),!i).join("/"))||"."},e.normalize=function(t){var o=e.isAbsolute(t),a="/"===i(t,-1);return(t=n(r(t.split("/"),(function(t){return!!t})),!o).join("/"))||o||(t="."),t&&a&&(t+="/"),(o?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(r(t,(function(t,e){if("string"!==typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,n){function r(t){for(var e=0;e<t.length&&""===t[e];e++);for(var n=t.length-1;n>=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var i=r(t.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,u=0;u<a;u++)if(i[u]!==o[u]){s=u;break}var c=[];for(u=s;u<i.length;u++)c.push("..");return(c=c.concat(o.slice(s))).join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){if("string"!==typeof t&&(t+=""),0===t.length)return".";for(var e=t.charCodeAt(0),n=47===e,r=-1,i=!0,o=t.length-1;o>=1;--o)if(47===(e=t.charCodeAt(o))){if(!i){r=o;break}}else i=!1;
2return-1===r?n?"/":".":n&&1===r?"/":t.slice(0,r)},e.basename=function(t,e){var n=function(t){"string"!==typeof t&&(t+="");var e,n=0,r=-1,i=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!i){n=e+1;break}}else-1===r&&(i=!1,r=e+1);return-1===r?"":t.slice(n,r)}(t);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){"string"!==typeof t&&(t+="");for(var e=-1,n=0,r=-1,i=!0,o=0,a=t.length-1;a>=0;--a){var s=t.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1);else if(!i){n=a+1;break}}return-1===e||-1===r||0===o||1===o&&e===r-1&&e===n+1?"":t.slice(e,r)};var i="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(this,n(102))},function(t,e,n){"use strict";t.exports=function(t){var e="string"===typeof t?t.charCodeAt(0):t;return e>=97&&e<=122||e>=65&&e<=90}},function(t,e,n){"use strict";t.exports={position:!0,gfm:!0,commonmark:!1,footnotes:!1,pedantic:!1,blocks:n(190)}},function(t,e,n){"use strict";t.exports=function(t){var e,n=0,i=0,o=t.charAt(n),a={};for(;o in r;)i+=e=r[o],e>1&&(i=Math.floor(i/e)*e),a[i]=n,o=t.charAt(++n);return{indent:i,stops:a}};var r={" ":1,"\t":4}},function(t,e,n){"use strict";var r="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\u0000-\\u0020]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",i="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>";e.openCloseTag=new RegExp("^(?:"+r+"|"+i+")"),e.tag=new RegExp("^(?:"+r+"|"+i+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|<![A-Za-z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)")},function(t,e,n){"use strict";t.exports=function(t,e){return t.indexOf("<",e)}},function(t,e,n){"use strict";t.exports=function(t,e){var n=t.indexOf("[",e),r=t.indexOf("![",e);if(-1===r)return n;return n<r?n:r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(0)).createContext({MathJax:null,registerNode:function(){}});e.default=r},function(t,e){e.isRemarkParser=function(t){return Boolean(t&&t.prototype&&t.prototype.blockTokenizers)},e.isRemarkCompiler=function(t){return Boolean(t&&t.prototype&&t.prototype.visitors)}},,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";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";var r=n(22);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(0)),o=(0,r(n(26)).default)(i.default.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");e.default=o},function(t,e,n){"use strict";var r=n(22);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(0)),o=(0,r(n(26)).default)(i.default.createElement("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13 14.42 13 12s-1.44-4.5-3.5-5.45C10.26 6.2 11.11 6 12 6c3.31 0 6 2.69 6 6s-2.69 6-6 6z"}),"Brightness4");e.default=o},function(t,e,n){"use strict";var r=n(22);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(0)),o=(0,r(n(26)).default)(i.default.createElement("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zm0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4z"}),"Brightness7");e.default=o},function(t,e,n){"use strict";var r=n(22);
2Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(0)),o=(0,r(n(26)).default)(i.default.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z"}),"AccountCircle");e.default=o},function(t,e,n){var r=n(244),i=n(245);t.exports=function(t){var e=t||{};i.call(this,e),r.call(this,e)}},function(t,e,n){"use strict";var r=n(22);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(0)),o=(0,r(n(26)).default)(i.default.createElement("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"}),"Save");e.default=o},function(t,e,n){"use strict";var r=n(22);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(0)),o=(0,r(n(26)).default)(i.default.createElement("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z"}),"FolderOpen");e.default=o},function(t,e,n){"use strict";var r=n(22);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(0)),o=(0,r(n(26)).default)(i.default.createElement("path",{d:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"}),"GetApp");e.default=o},function(t,e,n){"use strict";var r=n(22);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(0)),o=(0,r(n(26)).default)(i.default.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");e.default=o},function(t,e,n){"use strict";var r=n(22);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(0)),o=(0,r(n(26)).default)(i.default.createElement("path",{d:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"}),"Undo");e.default=o},function(t,e,n){"use strict";(function(t){var n="undefined"!==typeof window&&"undefined"!==typeof document&&"undefined"!==typeof navigator,r=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(n&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}();var i=n&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),r))}};function o(t){return t&&"[object Function]"==={}.toString.call(t)}function a(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function s(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function u(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=a(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?t:u(s(t))}function c(t){return t&&t.referenceNode?t.referenceNode:t}var l=n&&!(!window.MSInputMethodContext||!document.documentMode),f=n&&/MSIE 10/.test(navigator.userAgent);function h(t){return 11===t?l:10===t?f:l||f}function p(t){if(!t)return document.documentElement;for(var e=h(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===a(n,"position")?p(n):n:t?t.ownerDocument.documentElement:document.documentElement}function d(t){return null!==t.parentNode?d(t.parentNode):t}function v(t,e){if(!t||!t.nodeType||!e||!e.nodeType)return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?t:e,i=n?e:t,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a=o.commonAncestorContainer;if(t!==a&&e!==a||r.contains(i))return function(t){var e=t.nodeName;return"BODY"!==e&&("HTML"===e||p(t.firstElementChild)===t)}(a)?a:p(a);var s=d(t);return s.host?v(s.host,e):v(t,d(e).host)}function m(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",r=t.nodeName;if("BODY"===r||"HTML"===r){var i=t.ownerDocument.documentElement,o=t.ownerDocument.scrollingElement||i;return o[n]}return t[n]}function y(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=m(e,"top"),i=m(e,"left"),o=n?-1:1;return t.top+=r*o,t.bottom+=r*o,t.left+=i*o,t.right+=i*o,t}function g(t,e){var n="x"===e?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+r+"Width"])}function b(t,e,n,r){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],h(10)?parseInt(n["offset"+t])+parseInt(r["margin"+("Height"===t?"Top":"Left")])+parseInt(r["margin"+("Height"===t?"Bottom":"Right")]):0)}function w(t){var e=t.body,n=t.documentElement,r=h(10)&&getComputedStyle(n);return{height:b("Height",e,n,r),width:b("Width",e,n,r)}}var E=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},T=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),x=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},k=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};function I(t){return k({},t,{right:t.left+t.width,bottom:t.top+t.height})}function S(t){var e={};try{if(h(10)){e=t.getBoundingClientRect();var n=m(t,"top"),r=m(t,"left");e.top+=n,e.left+=r,e.bottom+=n,e.right+=r}else e=t.getBoundingClientRect()}catch(p){}var i={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},o="HTML"===t.nodeName?w(t.ownerDocument):{},s=o.width||t.clientWidth||i.width,u=o.height||t.clientHeight||i.height,c=t.offsetWidth-s,l=t.offsetHeight-u;if(c||l){var f=a(t);c-=g(f,"x"),l-=g(f,"y"),i.width-=c,i.height-=l}return I(i)}function _(t,e){var n=arguments.length>
vendor: 5,899 bytes, line 2
22&&void 0!==arguments[2]&&arguments[2],r=h(10),i="HTML"===e.nodeName,o=S(t),s=S(e),c=u(t),l=a(e),f=parseFloat(l.borderTopWidth),p=parseFloat(l.borderLeftWidth);n&&i&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var d=I({top:o.top-s.top-f,left:o.left-s.left-p,width:o.width,height:o.height});if(d.marginTop=0,d.marginLeft=0,!r&&i){var v=parseFloat(l.marginTop),m=parseFloat(l.marginLeft);d.top-=f-v,d.bottom-=f-v,d.left-=p-m,d.right-=p-m,d.marginTop=v,d.marginLeft=m}return(r&&!n?e.contains(c):e===c&&"BODY"!==c.nodeName)&&(d=y(d,e)),d}function O(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,r=_(t,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=e?0:m(n),s=e?0:m(n,"left"),u={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o};return I(u)}function A(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===a(t,"position"))return!0;var n=s(t);return!!n&&A(n)}function N(t){if(!t||!t.parentElement||h())return document.documentElement;for(var e=t.parentElement;e&&"none"===a(e,"transform");)e=e.parentElement;return e||document.documentElement}function C(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?N(t):v(t,c(e));if("viewport"===r)o=O(a,i);else{var l=void 0;"scrollParent"===r?"BODY"===(l=u(s(e))).nodeName&&(l=t.ownerDocument.documentElement):l="window"===r?t.ownerDocument.documentElement:r;var f=_(l,a,i);if("HTML"!==l.nodeName||A(a))o=f;else{var h=w(t.ownerDocument),p=h.height,d=h.width;o.top+=f.top-f.marginTop,o.bottom=p+f.top,o.left+=f.left-f.marginLeft,o.right=d+f.left}}var m="number"===typeof(n=n||0);return o.left+=m?n:n.left||0,o.top+=m?n:n.top||0,o.right-=m?n:n.right||0,o.bottom-=m?n:n.bottom||0,o}function P(t){return t.width*t.height}function j(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=C(n,r,o,i),s={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},u=Object.keys(s).map((function(t){return k({key:t},s[t],{area:P(s[t])})})).sort((function(t,e){return e.area-t.area})),c=u.filter((function(t){var e=t.width,r=t.height;return e>=n.clientWidth&&r>=n.clientHeight})),l=c.length>0?c[0].key:u[0].key,f=t.split("-")[1];return l+(f?"-"+f:"")}function R(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=r?N(e):v(e,c(n));return _(n,i,r)}function L(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),r=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+r,height:t.offsetHeight+n}}function D(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function M(t,e,n){n=n.split("-")[0];var r=L(t),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",u=o?"height":"width",c=o?"width":"height";return i[a]=e[a]+e[u]/2-r[u]/2,i[s]=n===s?e[s]-r[c]:e[D(s)],i}function F(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function V(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===n}));var r=F(t,(function(t){return t[e]===n}));return t.indexOf(r)}(t,"name",n))).forEach((function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&o(n)&&(e.offsets.popper=I(e.offsets.popper),e.offsets.reference=I(e.offsets.reference),e=n(e,t))})),e}function U(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=R(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=j(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=M(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=V(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function z(t,e){return t.some((function(t){var n=t.name;return t.enabled&&n===e}))}function B(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),r=0;r<e.length;r++){var i=e[r],o=i?""+i+n:t;if("undefined"!==typeof document.body.style[o])return o}return null}function q(){return this.state.isDestroyed=!0,z(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[B("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function H(t){var e=t.ownerDocument;return e?e.defaultView:window}function W(t,e,n,r){n.updateBound=r,H(t).addEventListener("resize",n.updateBound,{passive:!0});var i=u(t);return function t(e,n,r,i){var o="BODY"===e.nodeName,a=o?e.ownerDocument.defaultView:e;a.addEventListener(n,r,{passive:!0}),o||t(u(a.parentNode),n,r,i),i.push(a)}(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function G(){this.state.eventsEnabled||(this.state=W(this.reference,this.options,this.state,this.scheduleUpdate))}function K(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,H(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEac
vendor: 8,572 bytes, line 2
2h((function(t){t.removeEventListener("scroll",e.updateBound)})),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function $(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function X(t,e){Object.keys(e).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&$(e[n])&&(r="px"),t.style[n]=e[n]+r}))}var Y=n&&/Firefox/i.test(navigator.userAgent);function J(t,e,n){var r=F(t,(function(t){return t.name===e})),i=!!r&&t.some((function(t){return t.name===n&&t.enabled&&t.order<r.order}));if(!i){var o="`"+e+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}var Q=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Z=Q.slice(3);function tt(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Z.indexOf(t),r=Z.slice(n+1).concat(Z.slice(0,n));return e?r.reverse():r}var et="flip",nt="clockwise",rt="counterclockwise";function it(t,e,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),a=t.split(/(\+|\-)/).map((function(t){return t.trim()})),s=a.indexOf(F(a,(function(t){return-1!==t.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var u=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(u)[0]]),[a[s].split(u)[1]].concat(a.slice(s+1))]:[a];return(c=c.map((function(t,r){var i=(1===r?!o:o)?"height":"width",a=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,a=!0,t):a?(t[t.length-1]+=e,a=!1,t):t.concat(e)}),[]).map((function(t){return function(t,e,n,r){var i=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return t;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}return I(s)[e]/100*o}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o}return o}(t,i,e,n)}))}))).forEach((function(t,e){t.forEach((function(n,r){$(n)&&(i[e]+=n*("-"===t[r-1]?-1:1))}))})),i}var ot={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],r=e.split("-")[1];if(r){var i=t.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),u=s?"left":"top",c=s?"width":"height",l={start:x({},u,o[u]),end:x({},u,o[u]+o[c]-a[c])};t.offsets.popper=k({},a,l[r])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,r=t.placement,i=t.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],u=void 0;return u=$(+n)?[+n,0]:it(n,o,a,s),"left"===s?(o.top+=u[0],o.left-=u[1]):"right"===s?(o.top+=u[0],o.left+=u[1]):"top"===s?(o.left+=u[0],o.top-=u[1]):"bottom"===s&&(o.left+=u[0],o.top+=u[1]),t.popper=o,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||p(t.instance.popper);t.instance.reference===n&&(n=p(n));var r=B("transform"),i=t.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var u=C(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);i.top=o,i.left=a,i[r]=s,e.boundaries=u;var c=e.priority,l=t.offsets.popper,f={primary:function(t){var n=l[t];return l[t]<u[t]&&!e.escapeWithReference&&(n=Math.max(l[t],u[t])),x({},t,n)},secondary:function(t){var n="right"===t?"left":"top",r=l[n];return l[t]>u[t]&&!e.escapeWithReference&&(r=Math.min(l[n],u[t]-("right"===t?l.width:l.height))),x({},n,r)}};return c.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";l=k({},l,f[e](t))})),t.offsets.popper=l,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,r=e.reference,i=t.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",u=a?"left":"top",c=a?"width":"height";return n[s]<o(r[u])&&(t.offsets.popper[u]=o(r[u])-n[c]),n[u]>o(r[s])&&(t.offsets.popper[u]=o(r[s])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!J(t.instance.modifiers,"arrow","keepTogether"))return t;var r=e.element;if("string"===typeof r){if(!(r=t.instance.popper.querySelector(r)))return t}else if(!t.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var i=t.placement.split("-")[0],o=t.offsets,s=o.popper,u=o.reference,c=-1!==["left","right"].indexOf(i),l=c?"height":"width",f=c?"Top":"Left",h=f.toLowerCase(),p=c?"left":"top",d=c?"bottom":"right",v=L(r)[l];u[d]-v<s[h]&&(t.offsets.popper[h]-=s[h]-(u[d]-v)),u[h]+v>s[d]&&(t.offsets.popper[h]+=u[h]+v-s[d]),t.offsets.popper=I(t.offsets.popper);var m=u[h]+u[l]/2-v/2,y=a(t.instance.popper),g=parseFloat(y["margin"+f]),b=parseFloat(y["border"+f+"Width"]),w=m-t.offsets.popper[h]-g-b;return w=Math.max(Math.min(s[l]-v,w),0),t.arrowElement=r,t.offsets.arrow=(x(n={},h,Math.round(w)),x(n,p,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(z(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=C(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),r=t.placement.split("-")[0],i=D(r),o=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case et:a=[r,i];break;case nt:a=tt(r);break;case rt:a=tt(r,!0);break;default:a=e.behavior}return a.forEach((function(s,u){if(r!==s||a.length===u+1)return t;r=t.placement.split("-")[0],i=D(r);var c=t.offsets.popper,l=t.offsets.reference,f=Math.floor,h="left"===r&&f(c.right)>f(l.left)||"right"===r&&f(c.left)<f(l.right)||"top"===r&&f(c.bottom)>f(l.top)||"bottom"===r&&f(c.top)<f(l.bottom),p=f(c.left)<f(n.left),d=f(c.right)>f(n.right),v=f(c.top)<f(n.top),m=f(c.bottom)>f(n.bottom),y="left"===r&&p||"right"===r&&d||"top"===r&&v||"bottom"===r&&m,g=-1!==["top","bottom"].indexOf(r),b=!!e.flipVariations&&(g&&"start"===o&&p||g&&"end"===o&&d||!g&&"start"===o&&v||!g&&"end"===o&&m),w=!!e.flipVariationsByContent&&(g&&"start"===o&&d||g&&"end"===o&&p||!g&&"start"===o&&m||!g&&"end"===o&&v),E=b||w;(h||y||E)&&(t.flipped=!0,(h||y)&&(r=a[u+1]),E&&(o=function(t){return"end"===t?"start":"start"===t?"end":t}(o)),t.placement=r+(o?"-"+o:""),t.offsets.popper=k({},t.offsets.popper,M(t.instance.popper,t.offsets.reference,t.placement)),t=V(t.instance.modifiers,t,"flip"))})),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],r=t.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),t.placement=D(e),t.offsets.popper=I(i),t}},hide:{order:800,enabled:!0,fn:function(t){if(!J(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=F(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var n=e.x,r=e.y,i=t.offsets.popper,o=F(t.instance.modifiers,(function(t){return"applyStyle"===t.name})).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==o?o:e.gpuAcceleration,s=p(t.instance.popper),u=S(s),c={position:i.position},l=function(t,e){var n=t.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,s=function(t){return t},u=o(i.width),c=o(r.width),l=-1!==["left","right"].indexOf(t.placement),f=-1!==t.placement.indexOf("-"),h=e?l||f||u%2===c%2?o:a:s,p=e?o:s;return{left:h(u%2===1&&c%2===1&&!f&&e?r.left-1:r.left),top:p(r.top),bottom:p(r.bottom),right:h(r.right)}}(t,window.devicePixelRatio<2||!Y),f="bottom"===n?"top":"bottom",h="right"===r?"left":"right",d=B("transform"),v=void 0,m=void 0;if(m="bottom"===f?"HTML"===s.nodeName?-s.clientHeight+l.bottom:-u.height+l.bottom:l.top,v="right"===h?"HTML"===s.nodeName?-s.clientWidth+l.right:-u.width+l.right:l.left,a&&d)c[d]="translate3d("+v+"px, "+m+"px, 0)",c[f]=0,c[h
2]=0,c.willChange="transform";else{var y="bottom"===f?-1:1,g="right"===h?-1:1;c[f]=m*y,c[h]=v*g,c.willChange=f+", "+h}var b={"x-placement":t.placement};return t.attributes=k({},b,t.attributes),t.styles=k({},c,t.styles),t.arrowStyles=k({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return X(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEach((function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t)})),t.arrowElement&&Object.keys(t.arrowStyles).length&&X(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,r,i){var o=R(i,e,t,n.positionFixed),a=j(n.placement,o,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",a),X(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},at=function(){function t(e,n){var r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};E(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=i(this.update.bind(this)),this.options=k({},t.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(k({},t.Defaults.modifiers,a.modifiers)).forEach((function(e){r.options.modifiers[e]=k({},t.Defaults.modifiers[e]||{},a.modifiers?a.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return k({name:t},r.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&o(t.onLoad)&&t.onLoad(r.reference,r.popper,r.options,t,r.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return T(t,[{key:"update",value:function(){return U.call(this)}},{key:"destroy",value:function(){return q.call(this)}},{key:"enableEventListeners",value:function(){return G.call(this)}},{key:"disableEventListeners",value:function(){return K.call(this)}}]),t}();at.Utils=("undefined"!==typeof window?window:t).PopperUtils,at.placements=Q,at.Defaults=ot,e.a=at}).call(this,n(56))},function(t,e,n){"use strict";(function(e){var n="__global_unique_id__";t.exports=function(){return e[n]=(e[n]||0)+1}}).call(this,n(56))},function(t,e,n){"use strict";var r=n(24),i=n(2),o=n(876),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)({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"},m={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"},y={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},g=n(18),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){t[e]||(t.hasOwnProperty(n)?t[e]=t[n]:"light"===e?t.light=Object(g.d)(t.main,r):"dark"===e&&(t.dark=Object(g.a)(t.main,1.5*r)))}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,x=void 0===T?{light:v[300],main:v[500],dark:v[700]}:T,k=t.info,I=void 0===k?{light:m[300],main:m[500],dark:m[700]}:k,S=t.success,_=void 0===S?{light:y[300],main:y[500],dark:y[700]}:S,O=t.type,A=void 0===O?"light":O,N=t.contrastThreshold,C=void 0===N?3:N,P=t.tonalOffset,j=void 0===P?.2:P,R=Object(i.a)(t,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function L(t){return Object(g.c)(t,w.text.primary)>=C?w.text.primary:b.text.primary}var D=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,j),E(t,"dark",r,j),t.contrastText||(t.contrastText=L(t.main)),t},M={dark:w,light:b};return Object(o.a)(Object(a.a)({common:l,type:A,primary:D(n),secondary:D(s,"A400","A200","A700"),error:D(c),warning:D(x),info:D(I),success:D(_),grey:f,contrastThreshold:C,getContrastText:L,augmentColor:D,tonalOffset:j},M[A]),R)}function x(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,m=n.fontWeightBold,y=void 0===m?700:m,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,S=E||function(t){return"".concat(t/b*I,"rem")},_=function(t,e,n,r,i){return Object(a.a)({fontFamily:s,fontWeight:t,fontSize:S(e),lineHeight:n},'"Roboto", "Helvetica", "Arial", sans-serif'===s?{letterSpacing:"".concat(x(r/e),"em")}:{},{},i,{},w)},O={h1:_(f,96,1.167,-1.5),h2:_(f,60,1.2,-.5),h3:_(p,48,1.167,0),h4:_(p,34,1.235,.25),h5:_(p,24,1.334,0),h6:_(v,20,1.6,.15),subtitle1:_(p,16,1.75,.15),subtitle2:_(v,14,1.57,.1),body1:_(p,16,1.5,.15),body2:_(p,14,1.43,.15),button:_(v,14,1.75,.4,k),caption:_(p,12,1.66,.4),overline:_(p,12,2.66,1,k)};return Object(o.a)(Object(a.a)({htmlFontSize:b,pxToRem:S,round:x,fontFamily:s,fontSize:c,fontWeightLight:f,fontWeightRegular:p,fontWeightMedium:v,fontWeightBold:y},O),T,{clone:!1})}function S(){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 _=["none",S(0,2,1,-1,0,1,1,0,0,1,3,0),S(0,3,1,-2,0,2,2,0,0,1,5,0),S(0,3,3,-2,0,3,4,0,0,1,8,0),S(0,2,4,-1,0,4,5,0,0,1,10,0),S(0,3,5,-1,0,5,8,0,0,1,14,0),S(0,3,5,-1,0,6,10,0,0,1,18,0),S(0,4,5,-2,0,7,10,1,0,2,16,1),S(0,5,5,-3,0,8,10,1,0,3,14,2),S(0,5,6,-3,0,9,12,1,0,3,16,2),S(0,6,6,-3,0,10,14,1,0,4,18,3),S(0,6,7,-4,0,11,15,1,0,4,20,3),S(0,7,8,-4,0,12,17,2,0,5,22,4),S(0,7,8,-4,0,13,19,2,0,5,24,4),S(0,7,9,-4,0,14,21,2,0,5,26,4),S(0,8,9,-5,0,15,22,2,0,6,28,5),S(0,8,10,-5,0,16,24,2,0,6,30,5),S(0,8,11,-5,0,17,26,2,0,6,32,5),S(0,9,11,-5,0,18,28,2,0,7,34,6),S(0,9,12,-6,0,19,29,2,0,7,36,6
2),S(0,10,13,-6,0,20,31,3,0,8,38,7),S(0,10,13,-6,0,21,33,3,0,8,40,7),S(0,10,14,-6,0,22,35,3,0,8,42,7),S(0,11,14,-7,0,23,36,3,0,9,44,8),S(0,11,15,-7,0,24,38,3,0,9,46,8)],O={borderRadius:4},A=n(40),N=(n(32),n(42));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},j={keys:["xs","sm","md","lg","xl"],up:function(t){return"@media (min-width:".concat(P[t],"px)")}};var R={m:"margin",p:"padding"},L={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},D={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(!D[t])return[t];t=D[t]}var e=t.split(""),n=Object(A.a)(e,2),r=n[0],i=n[1],o=R[r],a=L[i]||"";return Array.isArray(a)?a.map((function(t){return o+t})):[o+a]})),F=["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 V(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 U(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 z(t){var e=V(t.theme);return Object.keys(t).map((function(n){if(-1===F.indexOf(n))return null;var r=U(M(n),e),i=t[n];return function(t,e,n){if(Array.isArray(e)){var r=t.theme.breakpoints||j;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||j;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,{})}z.propTypes={},z.filterProps=F;function B(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var e=V({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(70),H=n(71);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),m=u(n),y=B(f),g=Object(o.a)({breakpoints:m,direction:"ltr",mixins:c(m,y,a),overrides:{},palette:v,props:{},shadows:_,typography:I(v,p),spacing:y,shape:O,transitions:q.a,zIndex:H.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";var r=n(2),i=n(1),o=n(0),a=(n(6),n(3)),s=n(4),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,m=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},m))}));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";var r=n(1),i=n(2),o=n(0),a=n.n(o),s=(n(6),n(17)),u=n(3),c=n(15),l=n(34),f=n(4),h=n(72),p=n(32),d=n(30),v=n(25),m=n(52),y=n(43);function g(t,e){var n=Object.create(null);return t&&o.Children.map(t,(function(t){return t}
2)).forEach((function(t){n[t.key]=function(t){return e&&Object(o.isValidElement)(t)?e(t):t}(t)})),n}function b(t,e,n){return null!=n[e]?n[e]:t.props[e]}function w(t,e,n){var r=g(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);return 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:b(s,"exit",t),enter:b(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:b(s,"exit",t),enter:b(s,"enter",t)})}})),i}var E=Object.values||function(t){return Object.keys(t).map((function(e){return t[e]}))},T=function(t){function e(e,n){var r,i=(r=t.call(this,e,n)||this).handleExited.bind(Object(m.a)(Object(m.a)(r)));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}Object(v.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,g(n.children,(function(t){return Object(o.cloneElement)(t,{onExited:r.bind(null,t),in:!0,appear:b(t,"appear",n),enter:b(t,"enter",n),exit:b(t,"exit",n)})}))):w(t,i,a),firstRender:!1}},n.handleExited=function(t,e){var n=g(this.props.children);t.key in n||(t.props.onExited&&t.props.onExited(e),this.mounted&&this.setState((function(e){var n=Object(r.a)({},e.children);return delete n[t.key],{children:n}})))},n.render=function(){var t=this.props,e=t.component,n=t.childFactory,r=Object(d.a)(t,["component","childFactory"]),i=this.state.contextValue,o=E(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===e?a.a.createElement(y.a.Provider,{value:i},o):a.a.createElement(y.a.Provider,{value:i},a.a.createElement(e,r,o))},e}(a.a.Component);T.propTypes={},T.defaultProps={component:"div",childFactory:function(t){return t}};var x=T,k="undefined"===typeof window?o.useEffect:o.useLayoutEffect;var I=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],m=d[1],y=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 k((function(){if(!c){m(!0);var t=setTimeout(w,p);return function(){clearTimeout(t)}}}),[w,c,p]),o.createElement("span",{className:y,style:g},o.createElement("span",{className:b}))},S=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],d=f[1],v=o.useRef(0),m=o.useRef(null);o.useEffect((function(){m.current&&(m.current(),m.current=null)}),[h]);var y=o.useRef(!1),g=o.useRef(null),b=o.useRef(null),w=o.useRef(null);o.useEffect((function(){return function(){clearTimeout(g.current)}}),[]);var E=o.useCallback((function(t){var e=t.pulsate,n=t.rippleX,r=t.rippleY,i=t.rippleSize,a=t.cb;d((function(t){return[].concat(Object(p.a)(t),[o.createElement(I,{key:v.current,classes:s,timeout:550,pulsate:e,rippleX:n,rippleY:r,rippleSize:i})])})),v.current+=1,m.current=a}),[s]),T=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:w.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.clientX?t.clientX:t.touches[0].clientX,m=t.clientY?t.clientY:t.touches[0].clientY;l=Math.round(v-d.left),f=Math.round(m-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 T=2*Math.max(Math.abs((p?p.clientWidth:0)-l),l)+2,x=2*Math.max(Math.abs((p?p.clientHeight:0)-f),f)+2;h=Math.sqrt(Math.pow(T,2)+Math.pow(x,2))}t.touches?null===b.current&&(b.current=function(){E({pulsate:i,rippleX:l,rippleY:f,rippleSize:h,cb:n})},g.current=setTimeout((function(){b.current&&(b.current(),b.current=null)}),80)):E({pulsate:i,rippleX:l,rippleY:f,rippleSize:h,cb:n})}}),[a,E]),k=o.useCallback((function(){T({},{pulsate:!0})}),[T]),S=o.useCallback((function(t,e){if(clearTimeout(g.current),"touchend"===t.type&&b.current)return t.persist(),b.current(),b.current=null,void(g.current=setTimeout((function(){S(t,e)})));b.current=null,d((function(t){return t.length>0?t.slice(1):t})),m.current=e}),[]);return o.useImperativeHandle(e,(function(){return{pulsate:k,start:T,stop:S}}),[k,T,S]),o.createElement("span",Object(r.a)({className:Object(u.a)(s.root,c),ref:w},l),o.createElement(x,{component:null,exit:!0},h))})),_=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 2500m
2s ".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(S)),O=o.forwardRef((function(t,e){var n=t.action,a=t.buttonRef,f=t.centerRipple,p=void 0!==f&&f,d=t.children,v=t.classes,m=t.className,y=t.component,g=void 0===y?"button":y,b=t.disabled,w=void 0!==b&&b,E=t.disableRipple,T=void 0!==E&&E,x=t.disableTouchRipple,k=void 0!==x&&x,I=t.focusRipple,S=void 0!==I&&I,O=t.focusVisibleClassName,A=t.onBlur,N=t.onClick,C=t.onFocus,P=t.onFocusVisible,j=t.onKeyDown,R=t.onKeyUp,L=t.onMouseDown,D=t.onMouseLeave,M=t.onMouseUp,F=t.onTouchEnd,V=t.onTouchMove,U=t.onTouchStart,z=t.onDragLeave,B=t.tabIndex,q=void 0===B?0:B,H=t.TouchRippleProps,W=t.type,G=void 0===W?"button":W,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),Y=o.useState(!1),J=Y[0],Q=Y[1];w&&J&&Q(!1);var Z=Object(h.a)(),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(){Q(!0),$.current.focus()}}}),[]),o.useEffect((function(){J&&S&&!T&&X.current.pulsate()}),[T,S,J]);var it=rt("start",L),ot=rt("stop",z),at=rt("stop",M),st=rt("stop",(function(t){J&&t.preventDefault(),D&&D(t)}
2)),ut=rt("start",U),ct=rt("stop",F),lt=rt("stop",V),ft=rt("stop",(function(t){J&&(et(t),Q(!1)),A&&A(t)}),!1),ht=Object(l.a)((function(t){$.current||($.current=t.currentTarget),tt(t)&&(Q(!0),P&&P(t)),C&&C(t)})),pt=function(){var t=s.findDOMNode($.current);return g&&"button"!==g&&!("A"===t.tagName&&t.href)},dt=o.useRef(!1),vt=Object(l.a)((function(t){S&&!dt.current&&J&&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(),j&&j(t),t.target===t.currentTarget&&pt()&&"Enter"===t.key&&!w&&(t.preventDefault(),N&&N(t))})),mt=Object(l.a)((function(t){S&&" "===t.key&&X.current&&J&&!t.defaultPrevented&&(dt.current=!1,t.persist(),X.current.stop(t,(function(){X.current.pulsate(t)}))),R&&R(t),N&&t.target===t.currentTarget&&pt()&&" "===t.key&&!t.defaultPrevented&&N(t)})),yt=g;"button"===yt&&K.href&&(yt="a");var gt={};"button"===yt?(gt.type=G,gt.disabled=w):("a"===yt&&K.href||(gt.role="button"),gt["aria-disabled"]=w);var bt=Object(c.a)(a,e),wt=Object(c.a)(nt,$),Et=Object(c.a)(bt,wt),Tt=o.useState(!1),xt=Tt[0],kt=Tt[1];o.useEffect((function(){kt(!0)}),[]);var It=xt&&!T&&!w;return o.createElement(yt,Object(r.a)({className:Object(u.a)(v.root,m,J&&[v.focusVisible,O],w&&v.disabled),onBlur:ft,onClick:N,onFocus:ht,onKeyDown:vt,onKeyUp:mt,onMouseDown:it,onMouseLeave:st,onMouseUp:at,onDragLeave:ot,onTouchEnd:ct,onTouchMove:lt,onTouchStart:ut,ref:Et,tabIndex:w?-1:q},gt,K),d,It?o.createElement(_,Object(r.a)({ref:X,center:p},H)):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"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(O)},function(t,e,n){"use strict";var r=n(30),i=n(25),o=(n(6),n(0)),a=n.n(o),s=n(17),u=n.n(s),c=!1,l=n(43),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){if(void 0===t&&(t=!1),null!==e){this.cancelNextCallback();var n=u.a.findDOMNode(this);"entering"===e?this.performEnter(n,t):this.performExit(n)}else this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(t,e){var n=this,r=this.props.enter,i=this.context?this.context.isMounting:e,o=this.getTimeouts(),a=i?o.appear:o.enter;!e&&!r||c?this.safeSetState({status:"entered"},(function(){n.props.onEntered(t)})):(this.props.onEnter(t,i),this.safeSetState({status:"entering"},(function(){n.props.onEntering(t,i),n.onTransitionEnd(t,a,(function(){n.safeSetState({status:"entered"},(function(){n.props.onEntered(t,i)}))}))})))},n.performExit=function(t){var e=this,n=this.props.exit,r=this.getTimeouts();n&&!c?(this.props.onExit(t),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(t),e.onTransitionEnd(t,r.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(t)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(t)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},n.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,e.nextCallback=null,t(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(t,e,n){this.setNextCallback(n);var r=null==e&&!this.props.addEndListener;t&&!r?(this.props.addEndListener&&this.props.addEndListener(t,this.nextCallback),null!=e&&setTimeout(this.nextCallback,e)):setTimeout(this.nextCallback,0)},n.render=function(){var t=this.state.status;if("unmounted"===t)return null;var e=this.props,n=e.children,i=Object(r.a)(e,["children"]);if(delete i.in,delete i.mountOnEnter,delete i.unmountOnExit,delete i.appear,delete i.enter,delete i.exit,delete i.timeout,delete i.addEndListener,delete i.onEnter,delete i.onEntering,delete i.onEntered,delete i.onExit,delete i.onExiting,delete i.onExited,"function"===typeof n)return a.a.createElement(l.a.Provider,{value:null},n(t,i));var o=a.a.Children.only(n);return a.a.createElement(l.a.Provider,{value:null},a.a.cloneElement(o,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=0,f.EXITED=1,f.ENTERING=2,f.ENTERED=3,f.EXITING=4;e.a=f},,,,,,,,function(t,e,n){"use strict";var r=n(99),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,m="function"===typeof Symbol&&Symbol.iterator;function y(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(y(85));this.updater.enqueueSetState(this,t,e,"setState")},w.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},E.prototype=w.prototype;var x=T.prototype=new E;x.constructor=T,r(x,w.prototype),x.isPureReactComponent=!0;var k={current:null},I=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function _(t,e,n){var r,i={},a=null,s=null;
vendor: 29,312 bytes, line 2
2if(null!=e)for(r in void 0!==e.ref&&(s=e.ref),void 0!==e.key&&(a=""+e.key),e)I.call(e,r)&&!S.hasOwnProperty(r)&&(i[r]=e[r]);var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){for(var 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 j(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?"."+R(e,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(e))for(var c=0;c<e.length;c++){var l=n+R(s=e[c],c);u+=t(s,l,r,i)}else if(null===e||"object"!==typeof e?l=null:l="function"===typeof(l=m&&e[m]||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+R(s,c++),r,i);else if("object"===s)throw r=""+e,Error(y(31,"[object Object]"===r?"object with keys {"+Object.keys(e).join(", ")+"}":r,""));return u}(t,"",e,n)}function R(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 L(t,e){t.func.call(t.context,e,t.count++)}function D(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,"$&/")+"/"),j(t,D,e=C(e,o,r,i)),P(e)}var F={current:null};function V(){var t=F.current;if(null===t)throw Error(y(321));return t}var U={ReactCurrentDispatcher:F,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:k,IsSomeRendererActing:{current:!1},assign:r};e.Children={map:function(t,e,n){if(null==t)return t;var r=[];return M(t,r,null,e,n),r},forEach:function(t,e,n){if(null==t)return t;j(t,L,e=C(null,null,e,n)),P(e)},count:function(t){return j(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(y(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=U,e.cloneElement=function(t,e,n){if(null===t||void 0===t)throw Error(y(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)&&!S.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=_,e.createFactory=function(t){var e=_.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 V().useCallback(t,e)},e.useContext=function(t,e){return V().useContext(t,e)},e.useDebugValue=function(){},e.useEffect=function(t,e){return V().useEffect(t,e)},e.useImperativeHandle=function(t,e,n){return V().useImperativeHandle(t,e,n)},e.useLayoutEffect=function(t,e){return V().useLayoutEffect(t,e)},e.useMemo=function(t,e){return V().useMemo(t,e)},e.useReducer=function(t,e,n){return V().useReducer(t,e,n)},e.useRef=function(t){return V().useRef(t)},e.useState=function(t){return V().useState(t)},e.version="16.13.1"},function(t,e,n){"use strict";var r=n(0),i=n(99),o=n(141);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,m=null;function y(t,e,n){var r=t.type||"unknown-event";t.currentTarget=m(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(x.hasOwnProperty(u))throw Error(a(99,u));x[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=[],x={},k={},I={};function S(t){var e,n=!1;for(e in t)if(t.hasOwnProperty(e)){var r=t[e];if(!b.hasOwnProperty(e)||b[e]!==r){if(b[e])throw Error(a(102,e));b[e]=r,n=!0}}n&&w()}var _=!("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 j(){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 R(t,e){return t(e)}function L(t,e,n,r,i){return t(e,n,r,i)}function D(){}var M=R,F=!1,V=!1;function U(){null===A&&null===N||(D(),j())}function z(t,e,n){if(V)return t(e,n);V=!0;try{return M(t,e,n)}finally{V=!1,U()}}var B=/^[: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,H={},W={};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-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 Y=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function J(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(W,t)||!q.call(H,t)&&(B.test(t)?W[t]=!0:(H[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))))}Y.hasOwnProperty("ReactCurrentDispatcher")||(Y.ReactCurrentDispatcher={current:null}),Y.hasOwnProperty("ReactCurrentBatchConfig")||(Y.ReactCurrentBatchConfig={suspense:null});var Q=/^(.*)[\\\/]/,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 mt(t){if(null==t)return null;if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t;switch(t){case nt:return"Fragment";case et:return"Portal";case it:return"Profiler";case rt:return"StrictMode";case 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 mt(t.type);case pt:return mt(t.render);case ht:if(t=1===t._status?t._result:null)return mt(t)}return null}function yt(t){var e="";do{t:switch(t.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break t;default:var r=t._debugOwner,i=t._debugSource,o=mt(t.type);n=null,r&&(n=mt(r.type)),r=o,o="",i?o=" (at "+i.fileName.replace(Q,"")+":"+i.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n in "+(r||"Unknown")+o}e+=n,t=t.return}while(t);return e}function 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 xt(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)&&J(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")?_t(t,e.type,n):e.hasOwnProperty("defaultValue")&&_t(t,e.type,gt(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked)}function St(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!("submit"!==r&&"reset"!==r||void 0!==e.value&&null!==e.value))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}""!==(n=t.name)&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,""!==n&&(t.name=n)}function _t(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="";return 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 jt(t){var e=t.textContent;e===t._wrapperState.initialValue&&""!==e&&null!==e&&(t.value=e)}var Rt="http://www.w3.org/1999/xhtml",Lt="http://www.w3.org/2000/svg";function Dt(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?Dt(e):"http://www.w3.org/2000/svg"===t&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":t}var Ft,Vt=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!==Lt||"innerHTML"in t)t.innerHTML=e;else{for((Ft=Ft||document.createElement("div")).innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=Ft.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}}));function Ut(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 zt(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Bt={animationend:zt("Animation","AnimationEnd"),animationiteration:zt("Animation","AnimationIteration"),animationstart:zt("Animation","AnimationStart"),transitionend:zt("Transition","TransitionEnd")},qt={},Ht={};function Wt(t){if(qt[t])return qt[t];if(!Bt[t])return t;var e,n=Bt[t];for(e in n)if(n.hasOwnProperty(e)&&e in Ht)return qt[t]=n[e];return t}_&&(Ht=document.createElement("div").style,"AnimationEvent"in window||(delete Bt.animationend.animation,delete Bt.animationiteration.animation,delete Bt.animationstart.animation),"TransitionEvent"in window||delete Bt.transitionend.transition);var Gt=Wt("animationend"),Kt=Wt("animationiteration"),$t=Wt("animationstart"),Xt=Wt("transitionend"),Yt="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Jt=new("function"===typeof WeakMap?WeakMap:Map);function Qt(t){var e=Jt.get(t);return void 0===e&&(e=new Map,Jt.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++)y(t,e[r],n[r]);else e&&y(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(!_)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=_n(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===Yt.indexOf(t)&&Ke(t,e)}n.set(t,null)}}var ve,me,ye,ge=!1,be=[],we=null,Ee=null,Te=null,xe=new Map,ke=new Map,Ie=[],Se="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),_e="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":xe.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))&&me(e)),t):(t.eventSystemFlags|=r,t)}function Ce(t){var e=_n(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(){ye(n)}))}else if(3===e&&n.stateNode.hydrate)return void(t.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}t.blockedOn=null}function Pe(t){if(null!==t.blockedOn)return!1;var e=Qe(t.topLevelType,t.eventSystemFlags,t.container,t.nativeEvent);if(null!==e){var n=On(e);return null!==n&&me(n),t.blockedOn=e,!1}return!0}function je(t,e,n){Pe(t)&&n.delete(e)}function Re(){for(ge=!1;0<be.length;){var t=be[0];if(null!==t.blockedOn){null!==(t=On(t.blockedOn))&&ve(t);break}var e=Qe(t.topLevelType,t.eventSystemFlags,t.container,t.nativeEvent);null!==e?t.blockedOn=e:be.shift()}null!==we&&Pe(we)&&(we=null),null!==Ee&&Pe(Ee)&&(Ee=null),null!==Te&&Pe(Te)&&(Te=null),xe.forEach(je),ke.forEach(je)}function Le(t,e){t.blockedOn===e&&(t.blockedOn=null,ge||(ge=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Re)))}function De(t){function e(e){return Le(e,t)}if(0<be.length){Le(be[0],t);for(var n=1;n<be.length;n++){var r=be[n];r.blockedOn===t&&(r.blockedOn=null)}}for(null!==we&&Le(we,t),null!==Ee&&Le(Ee,t),null!==Te&&Le(Te,t),xe.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={},Fe=new Map,Ve=new Map,Ue=["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 ze(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},Ve.set(r,e),Fe.set(r,o),Me[i]=o}}ze("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),ze("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),ze(Ue,2);for(var Be="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),qe=0;qe<Be.length;qe++)Ve.set(Be[qe],0);var He=o.unstable_UserBlockingPriority,We=o.unstable_runWithPriority,Ge=!0;function Ke(t,e){$e(e,t,!1)}function $e(t,e,n){var r=Ve.get(e);switch(void 0===r?2:r){case 0:r=Xe.bind(null,e,1,t);break;case 1:r=Ye.bind(null,e,1,t);break;default:r=Je.bind(null,e,1,t)}n?t.addEventListener(e,r,!0):t.addEventListener(e,r,!1)}function Xe(t,e,n,r){F||D();var i=Je,o=F;F=!0;try{L(i,t,e,n,r)}finally{(F=o)||U()}}function Ye(t,e,n,r){We(He,Je.bind(null,t,e,n,r))}function Je(t,e,n,r){if(Ge)if(0<be.length&&-1<Se.indexOf(t))t=Oe(null,t,e,n,r),be.push(t);else{var i=Qe(t,e,n,r);if(null===i)Ae(t,r);else if(-1<Se.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 xe.set(o,Ne(xe.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{z(pe,t)}finally{fe(t)}}}}function Qe(t,e,n,r){if(null!==(n=_n(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{z(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=Rt;function un(t,e){var n=Qt(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,mn=null;function yn(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 xn=Math.random().toString(36).slice(2),kn="__reactInternalInstance$"+xn,In="__reactEventHandlers$"+xn,Sn="__reactContainere$"+xn;function _n(t){var e=t[kn];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Sn]||n[kn]){if(n=e.alternate,null!==e.child||null!==n&&null!==n.child)for(t=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[Sn])||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 jn(t,e,n){(e=Pn(t,n.dispatchConfig.phasedRegistrationNames[e]))&&(n._dispatchListeners=re(n._dispatchListeners,e),n._dispatchInstances=re(n._dispatchInstances,t))}function Rn(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--;)jn(n[e],"captured",t);for(e=0;e<n.length;e++)jn(n[e],"bubbled",t)}}function Ln(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 Dn(t){t&&t.dispatchConfig.registrationName&&Ln(t._targetInst,null,t)}function Mn(t){ie(t,Rn)}var Fn=null,Vn=null,Un=null;function zn(){if(Un)return Un;var t,e,n=Vn,r=n.length,i="value"in Fn?Fn.value:Fn.textContent,o=i.length;for(t=0;t<r&&n[t]===i[t];t++);var a=r-t;for(e=1;e<=a&&n[r-e]===i[o-e];e++);return Un=i.slice(t,1<e?1-e:void 0)}function Bn(){return!0}function qn(){return!1}function Hn(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)?Bn:qn,this.isPropagationStopped=qn,this}function Wn(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=Wn,t.release=Gn}i(Hn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!==typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=Bn)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!==typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=Bn)},persist:function(){this.isPersistent=Bn},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}}),Hn.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},Hn.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(Hn);var $n=Hn.extend({data:null}),Xn=Hn.extend({data:null}),Yn=[9,13,27,32],Jn=_&&"CompositionEvent"in window,Qn=null;_&&"documentMode"in document&&(Qn=document.documentMode);var Zn=_&&"TextEvent"in window&&!Qn,tr=_&&(!Jn||Qn&&8<Qn&&11>
vendor: 9,393 bytes, line 2
2=Qn),er=String.fromCharCode(32),nr={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},rr=!1;function ir(t,e){switch(t){case"keyup":return-1!==Yn.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(Jn)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=zn()):(Vn="value"in(Fn=r)?Fn.value:Fn.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||!Jn&&ir(t,e)?(t=zn(),Un=Vn=Fn=null,ar=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return tr&&"ko"!==e.locale?null:e.data;default:return null}}(t,n))?((e=Xn.getPooled(nr.beforeInput,e,n,r)).data=t,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=Hn.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 mr(t,e){if("change"===t)return e}var yr=!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)),F)se(t);else{F=!0;try{R(dr,t)}finally{F=!1,U()}}}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 xr(t,e){if("input"===t||"change"===t)return vr(e)}_&&(yr=ce("input")&&(!document.documentMode||9<document.documentMode));var kr={eventTypes:lr,_isInputEventSupported:yr,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=mr;else if(cr(i))if(yr)a=xr;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&&_t(i,"number",i.value)}},Ir=Hn.extend({view:null,detail:null}),Sr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _r(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):!!(t=Sr[t])&&!!e[t]}function Or(){return _r}var Ar=0,Nr=0,Cr=!1,Pr=!1,jr=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)}}),Rr=jr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Lr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Dr={eventTypes:Lr,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)?_n(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=jr,u=Lr.mouseLeave,c=Lr.mouseEnter,l="mouse";else"pointerout"!==t&&"pointerover"!==t||(s=Rr,u=Lr.pointerLeave,c=Lr.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++)Ln(s[l],"bubbled",u);for(l=r.length;0<l--;)Ln(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},Fr=Object.prototype.hasOwnProperty;function Vr(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(!Fr.call(e,n[r])||!Mr(t[n[r]],e[n[r]]))return!1;return!0}var Ur=_&&"documentMode"in document&&11>=document.documentMode,zr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Br=null,qr=null,Hr=null,Wr=!1;function Gr(t,e){var n=e.window===e?e.document:9===e.nodeType?e:e.ownerDocument;return Wr||null==Br||Br!==ln(n)?null:("selectionStart"in(n=Br)&&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},Hr&&Vr(Hr,n)?null:(Hr=n,(t=Hn.getPooled(zr.select,qr,t,e)).type="select",t.target=Br,Mn(t),t))}var Kr={eventTypes:zr,extractEvents:function(t,e,n,r,i,o){if(!(o=!(i=o||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){t:{i=Qt(i),o=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)&&(Br=i,qr=e,Hr=null);break;case"blur":Hr=qr=Br=null;break;case"mousedown":Wr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Wr=!1,Gr(n,r);case"selectionchange":if(Ur)break;case"keydown":case"keyup":return Gr(n,r)}return null}},$r=Hn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Xr=Hn.extend({clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Yr=Ir.extend({relatedTarget:null});function Jr(t){var e=t.keyCode;return"charCode"in t?0===(t=t.charCode)&&13===e&&(t=13):t=e,10===t&&(t=13),32<=t||13===t?t:0}var Qr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},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=Qr[t.key]||t.key;if("Unidentified"!==e)return e}return"keypress"===t.type?13===(t=Jr(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?Jr(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?Jr(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}}),ei=jr.extend({dataTransfer:null}),ni=Ir.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Or}),ri=Hn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ii=jr.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=Fe.get(t);if(!i)return null;switch(t){case"keypress":if(0===Jr(n))return null;case"keydown":case"keyup":t=ti;break;case"blur":case"focus":t=Yr;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=jr;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=Rr;break;default:t=Hn}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,m=An,S({SimpleEventPlugin:oi,EnterLeaveEventPlugin:Dr,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 mi(){ui(hi),ui(fi)}function yi(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,mt(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,xi=o.unstable_cancelCallback,ki=o.unstable_requestPaint,Ii=o.unstable_now,Si=o.unstable_getCurrentPriorityLevel,_i=o.unstable_ImmediatePriority,Oi=o.unstable_UserBlockingPriority,Ai=o.unstable_NormalPriority,Ni=o.unstable_LowPriority,Ci=o.unstable_IdlePriority,Pi={},ji=o.unstable_shouldYield,Ri=void 0!==ki?ki:function(){},Li=null,Di=null,Mi=!1,Fi=Ii(),Vi=1e4>Fi?Ii:function(){return Ii()-Fi};function Ui(){switch(Si()){case _i:return 99;case Oi:return 98;case Ai:return 97;case Ni:return 96;case Ci:return 95;default:throw Error(a(332))}}function zi(t){switch(t){case 99:return _i;case 98:return Oi;case 97:return Ai;case 96:return Ni;case 95:return Ci;default:throw Error(a(332))}}function Bi(t,e){return t=zi(t),Ei(t,e)}function qi(t,e,n){return t=zi(t),Ti(t,e,n)}function Hi(t){return null===Li?(Li=[t],Di=Ti(_i,Gi)):Li.push(t),Pi}function Wi(){if(null!==Di){var t=Di;Di=null,xi(t)}Gi()}
2function Gi(){if(!Mi&&null!==Li){Mi=!0;var t=0;try{var e=Li;Bi(99,(function(){for(;t<e.length;t++){var n=e[t];do{n=n(!0)}while(null!==n)}})),Li=null}catch(n){throw null!==Li&&(Li=Li.slice(t+1)),Ti(_i,Wi),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},Yi=null,Ji=null,Qi=null;function Zi(){Qi=Ji=Yi=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){Yi=t,Qi=Ji=null,null!==(t=t.dependencies)&&null!==t.firstContext&&(t.expirationTime>=e&&(Na=!0),t.firstContext=null)}function ro(t,e){if(Qi!==t&&!1!==e&&0!==e)if("number"===typeof e&&1073741823!==e||(Qi=t,e=1073741823),e={context:t,observedBits:e,next:null},null===Ji){if(null===Yi)throw Error(a(308));Ji=e,Yi.dependencies={expirationTime:0,firstContext:e,responders:null}}else Ji=Ji.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 m=t,y=d;switch(s=e,v=n,y.tag){case 1:if("function"===typeof(m=y.payload)){c=m.call(v,c,s);break t}c=m;break t;case 3:m.effectTag=-4097&m.effectTag|64;case 0:if(null===(s="function"===typeof(m=y.payload)?m.call(v,c,s):m)||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=Y.ReactCurrentBatchConfig,po=(new r.Component).refs;function vo(t,e,n,r){n=null===(n=n(r,e=t.memoizedState))||void 0===n?e:i({},e,n),t.memoizedState=n,0===t.expirationTime&&(t.updateQueue.baseState=n)}var mo={isMounted:function(t){return!!(t=t._reactInternalFiber)&&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 yo(t,e,n,r,i,o,a){return"function"===typeof(t=t.stateNode).shouldComponentUpdate?t.shouldComponentUpdate(r,o,a):!e.prototype||!e.prototype.isPureReactComponent||(!Vr(n,r)||!Vr(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=mo,t.stateNode=e,e._reactInternalFiber=t,r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=o),e}function bo(t,e,n,r){t=e.state,"function"===typeof e.componentWillReceiveProps&&e.componentWillReceiveProps(n,r),"function"===typeof e.UNSAFE_componentWillReceiveProps&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&mo.enqueueReplaceState(e,e.state,null)}function wo(t,e,n,r){var i=t.stateNode;i.props=n,i.state=t.memoizedState,i.refs=po,oo(t);var o=e.contextType;"object"===typeof o&&null!==o?i.context=ro(o):(o=vi(e)?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&&mo.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 xo(t,e){if("textarea"!==t.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(e)?"object with keys {"+Object.keys(e).join(", ")+"}":e,""))}function ko(t){function e(e,n){if(t){var r=e.lastEffect;null!==r?(r.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!t)return null;for(;null!==r;)e(n,r),r=r.sibling;return null}function r(t,e){for(t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function i(t,e){return(t=Su(t,e)).index=0,t.sibling=null,t}function o(e,n,r){return e.index=r,t?null!==(r=e.alternate)?(r=r.index)<n?(e.effectTag=2,n):r:(e.effectTag=2,n):n}function s(e){return t&&null===e.alternate&&(e.effectTag=2),e}function u(t,e,n,r){return null===e||6!==e.tag?((e=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=_u(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=_u(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;xo(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);xo(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);xo(e,r)}return null}function v(i,a,s,u){for(var c=null,l=null,f=a,v=a=0,m=null;null!==f&&v<s.length;v++){f.index>
vendor: 30,469 bytes, line 2
2v?(m=f,f=null):m=f.sibling;var y=p(i,f,s[v],u);if(null===y){null===f&&(f=m);break}t&&f&&null===y.alternate&&e(i,f),a=o(y,a,v),null===l?c=y:l.sibling=y,l=y,f=m}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!==(m=d(f,i,v,s[v],u))&&(t&&null!==m.alternate&&f.delete(null===m.key?v:m.key),a=o(m,a,v),null===l?c=m:l.sibling=m,l=m);return t&&f.forEach((function(t){return e(i,t)})),c}function m(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,m=s=0,y=null,g=u.next();null!==v&&!g.done;m++,g=u.next()){v.index>m?(y=v,v=null):y=v.sibling;var b=p(i,v,g.value,c);if(null===b){null===v&&(v=y);break}t&&v&&null===b.alternate&&e(i,v),s=o(b,s,m),null===f?l=b:f.sibling=b,f=b,v=y}if(g.done)return n(i,v),l;if(null===v){for(;!g.done;m++,g=u.next())null!==(g=h(i,g.value,c))&&(s=o(g,s,m),null===f?l=g:f.sibling=g,f=g);return l}for(v=r(i,v);!g.done;m++,g=u.next())null!==(g=d(v,i,m,g.value,c))&&(t&&null!==g.alternate&&v.delete(null===g.key?m:g.key),s=o(g,s,m),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=_u(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 m(t,r,o,u);if(l&&xo(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),So=ko(!1),_o={},Oo={current:_o},Ao={current:_o},No={current:_o};function Co(t){if(t===_o)throw Error(a(174));return t}function Po(t,e){switch(ci(No,e),ci(Ao,t),ci(Oo,_o),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 jo(){ui(Oo),ui(Ao),ui(No)}function Ro(t){Co(No.current);var e=Co(Oo.current),n=Mt(e,t.type);e!==n&&(ci(Ao,t),ci(Oo,n))}function Lo(t){Ao.current===t&&(ui(Oo),ui(Ao))}var Do={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 Fo(t,e){return{responder:t,props:e}}var Vo=Y.ReactCurrentDispatcher,Uo=Y.ReactCurrentBatchConfig,zo=0,Bo=null,qo=null,Ho=null,Wo=!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(zo=o,Bo=e,e.memoizedState=null,e.updateQueue=null,e.expirationTime=0,Vo.current=null===t||null===t.memoizedState?ya:ga,t=n(r,i),e.expirationTime===zo){o=0;do{if(e.expirationTime=0,!(25>o))throw Error(a(301));o+=1,Ho=qo=null,e.updateQueue=null,Vo.current=ba,t=n(r,i)}while(e.expirationTime===zo)}if(Vo.current=ma,e=null!==qo&&null!==qo.next,zo=0,Ho=qo=Bo=null,Wo=!1,e)throw Error(a(300));return t}function Xo(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ho?Bo.memoizedState=Ho=t:Ho=Ho.next=t,Ho}function Yo(){if(null===qo){var t=Bo.alternate;t=null!==t?t.memoizedState:null}else t=qo.next;var e=null===Ho?Bo.memoizedState:Ho.next;if(null!==e)Ho=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===Ho?Bo.memoizedState=Ho=t:Ho=Ho.next=t}return Ho}function Jo(t,e){return"function"===typeof e?e(t):e}function Qo(t){var e=Yo(),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<zo){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>Bo.expirationTime&&(Bo.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=Yo(),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:Jo,lastRenderedState:t}).dispatch=va.bind(null,Bo,t),[e.memoizedState,t]}function ea(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},null===(e=Bo.updateQueue)?(e={lastEffect:null},Bo.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 Yo().memoizedState}function ra(t,e,n,r){var i=Xo();Bo.effectTag|=t,i.memoizedState=ea(1|e,n,void 0,void 0===r?null:r)}function ia(t,e,n,r){var i=Yo();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)}Bo.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=Yo();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=Yo();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=Ui();Bi(98>r?98:r,(function(){t(!0)})),Bi(97<r?97:r,(function(){var r=Uo.suspense;Uo.suspense=void 0===e?null:e;try{t(!1),n()}finally{Uo.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===Bo||null!==o&&o===Bo)Wo=!0,i.expirationTime=zo,Bo.expirationTime=zo;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 ma={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},ya={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,Bo,t),[r.memoizedState,t]},useRef:function(t){return t={current:t},Xo().memoizedState=t},useState:ta,useDebugValue:la,useResponder:Fo,useDeferredValue:function(t,e){var n=ta(t),r=n[0],i=n[1];return oa((function(){var n=Uo.suspense;Uo.suspense=void 0===e?null:e;try{i(t)}finally{Uo.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:Qo,useRef:na,useState:function(){return Qo(Jo)},useDebugValue:la,useResponder:Fo,useDeferredValue:function(t,e){var n=Qo(Jo),r=n[0],i=n[1];return aa((function(){var n=Uo.suspense;Uo.suspense=void 0===e?null:e;try{i(t)}finally{Uo.suspense=n}}),[t,e]),r},useTransition:function(t){var e=Qo(Jo),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(Jo)},useDebugValue:la,useResponder:Fo,useDeferredValue:function(t,e){var n=Zo(Jo),r=n[0],i=n[1];return aa((function(){var n=Uo.suspense;Uo.suspense=void 0===e?null:e;try{i(t)}finally{Uo.suspense=n}}),[t,e]),r},useTransition:function(t){var e=Zo(Jo),n=e[0];return e=e[1],[ha(da.bind(null,e,t),[e,t]),n]}},wa=null,Ea=null,Ta=!1;function xa(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);xa(wa,n)}wa=t,Ea=En(e.firstChild)}else t.effectTag=-1025&t.effectTag|2,Ta=!1,wa=t}}function Sa(t){for(t=t.return;null!==t&&5!==t.tag&&3!==t.tag&&13!==t.tag;)t=t.return;wa=t}function _a(t){if(t!==wa)return!1;if(!Ta)return Sa(t),Ta=!0,!1;var e=t.type;if(5!==t.tag||"head"!==e&&"body"!==e&&!gn(e,t.memoizedProps))for(e=Ea;e;)xa(t,e),e=En(e.nextSibling);if(Sa(t),13===t.tag){if(!(t=null!==(t=t.memoizedState)?t.dehydrated:null))throw Error(a(317));t:{for(t=t.nextSibling,e=0;t;){if(8===t.nodeType){var n=t.data;if("/$"===n){if(0===e){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=Y.ReactCurrentOwner,Na=!1;function Ca(t,e,n,r){e.child=null===t?So(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 ja(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=_u(n.type,null,r,null,e.mode,o)).ref=e.ref,t.return=e,e.child=t):(e.tag=15,e.type=a,Ra(t,e,a,r,i,o))}return a=t.child,i<o&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:Vr)(i,r)&&t.ref===e.ref)?$a(t,e,o):(e.effectTag|=1,(t=Su(a,r)).ref=e.ref,t.return=e,e.child=t)}function Ra(t,e,n,r,i,o){return null!==t&&Vr(t.memoizedProps,r)&&t.ref===e.ref&&(Na=!1,i<o)?(e.expirationTime=t.expirationTime,$a(t,e,o)):Da(t,e,n,r,o)}function La(t,e){var n=e.ref;(null===t&&null!==n||null!==t&&t.ref!==n)&&(e.effectTag|=128)}function Da(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||yo(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||yo(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 Fa(t,e,n,r,o,i)}function Fa(t,e,n,r,i,o){La(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 Va(t){var e=t.stateNode;e.pendingContext?yi(0,e.pendingContext,e.pendingContext!==e.context):e.context&&yi(0,e.context,!1),Po(t,e.containerInfo)}var Ua,za,Ba,qa={dehydrated:null,retryTime:0};function Ha(t,e,n){var r,i=e.mode,o=e.pendingProps,a=Do.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(Do,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=So(e,null,i,n)}if(null!==t.memoizedState){if(i=(t=t.child).sibling,s){if(o=o.fallback,(n=Su(t,t.pendingProps)).return=e,0===(2&e.mode)&&(s=null!==e.memoizedState?e.child.child:e.child)!==t.child)for(n.child=s;null!==s;)s.return=n,s=s.sibling;return(i=Su(i,o)).return=e,n.sibling=i,n.childExpirationTime=0,e.memoizedState=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 Wa(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=Do.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&&Wa(t,n);else if(19===t.tag)Wa(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(Do,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=Su(t=e.child,t.pendingProps),e.child=n,n.return=e;null!==t.sibling;)t=t.sibling,(n=n.sibling=Su(t,t.pendingProps)).return=e;n.sibling=null}return e.child}function Xa(t,e){switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;null!==e;)null!==e.alternate&&(n=e),e=e.sibling;null===n?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?e||null===t.tail?t.tail=null:t.tail.sibling=null:r.sibling=null}}function Ya(t,e,n){var r=e.pendingProps;switch(e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return vi(e.type)&&mi(),null;case 3:return jo(),ui(hi),ui(fi),(n=e.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==t&&null!==t.child||!_a(e)||(e.effectTag|=4),null;case 5:Lo(e),n=Co(No.current);var o=e.type;if(null!==t&&null!=e.stateNode)za(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),_a(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<Yt.length;t++)Ke(Yt[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":xt(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),St(r,s,!0);break;case"textarea":wt(r),jt(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=Dt(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,Ua(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<Yt.length;c++)Ke(Yt[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":xt(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)&&Vt(t,f):"children"===s?"string"===typeof f?("textarea"!==o||""!==f)&&Ut(t,f):"number"===typeof f&&Ut(t,""+f):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(k.hasOwnProperty(s)?null!=f&&un(n,s):null!=f&&J(t,s,f,u))}switch(o){case"input":wt(t),St(t,r,!1);break;case"textarea":wt(t),jt(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)}yn(o,r)&&(e.effectTag|=4)}null!==e.ref&&(e.effectTag|=128)}return null;case 6:if(t&&null!=e.stateNode)Ba(0,e,t.memoizedProps,r);else{if("string"!==typeof r&&null===e.stateNode)throw Error(a(166));n=Co(No.current),Co(Oo.current),_a(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(Do),r=e.memoizedState,0!==(64&e.effectTag)?(e.expirationTime=n,e):(n=null!==r,r=!1,null===t?void 0!==e.memoizedProps.fallback&&_a(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&Do.current)?_s===ws&&(_s=Es):(_s!==ws&&_s!==Es||(_s=Ts),0!==Ps&&null!==ks&&(ju(ks,Ss),Ru(ks,Ps)))),(n||r)&&(e.effectTag|=4),null);case 4:return jo(),null;case 10:return to(e),null;case 17:return vi(e.type)&&mi(),null;case 19:if(ui(Do),null===(r=e.memoizedState))return null;if(o=0!==(64&e.effectTag),null===(s=r.rendering)){if(o)Xa(r,!1);else if(_s!==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(Do,1&Do.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*Vi()-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=Vi()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=e.lastEffect,r.renderingStartTime=Vi(),n.sibling=null,e=Do.current,ci(Do,o?1&e|2:1&e),n):null}throw Error(a(156,e.tag))}function Ja(t){switch(t.tag){case 1:vi(t.type)&&mi();var e=t.effectTag;return 4096&e?(t.effectTag=-4097&e|64,t):null;case 3:if(jo(),ui(hi),ui(fi),0!==(64&(e=t.effectTag)))throw Error(a(285));return t.effectTag=-4097&e|64,t;case 5:return Lo(t),null;case 13:return ui(Do),4096&(e=t.effectTag)?(t.effectTag=-4097&e|64,t):null;case 19:return ui(Do),null;case 4:return jo(),null;case 10:return to(t),null;default:return null}}function Qa(t,e){return{value:t,source:e,stack:yt(e)}}Ua=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}},za=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)}},Ba=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=yt(n)),null!==n&&mt(n.type),e=e.value,null!==t&&1===t.tag&&mt(t.type);try{console.error(e)}catch(i){setTimeout((function(){throw i}))}}function es(t){var e=t.ref;if(null!==e)if("function"===typeof e)try{e(null)}catch(n){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&&yn(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&&De(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;Bi(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&&(Ut(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?Vt(n,u):"children"===s?Ut(n,u):J(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,De(e.containerInfo)));case 12:return;case 13:if(n=e,null===e.memoizedState?r=!1:(r=!0,n=e.child,Rs=Vi()),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(){Ds||(Ds=!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===Fs?Fs=new Set([this]):Fs.add(this),ts(t,e));var n=e.stack;this.componentDidCatch(e.value,{componentStack:null!==n?n:""})}),n}var ms,ys=Math.ceil,gs=Y.ReactCurrentDispatcher,bs=Y.ReactCurrentOwner,ws=0,Es=3,Ts=4,xs=0,ks=null,Is=null,Ss=0,_s=ws,Os=null,As=1073741823,Ns=1073741823,Cs=null,Ps=0,js=!1,Rs=0,Ls=null,Ds=!1,Ms=null,Fs=null,Vs=!1,Us=null,zs=90,Bs=null,qs=0,Hs=null,Ws=0;function Gs(){return 0!==(48&xs)?1073741821-(Vi()/10|0):0!==Ws?Ws:Ws=1073741821-(Vi()/10|0)}function Ks(t,e,n){if(0===(2&(e=e.mode)))return 1073741823;var r=Ui();if(0===(4&e))return 99===r?1073741823:1073741822;if(0!==(16&xs))return Ss;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===Ss&&--t,t}
vendor: 22,127 bytes, line 2
2function $s(t,e){if(50<qs)throw qs=0,Hs=null,Error(a(185));if(null!==(t=Xs(t,e))){var n=Ui();1073741823===e?0!==(8&xs)&&0===(48&xs)?Zs(t):(Js(t),0===xs&&Wi()):Js(t),0===(4&xs)||98!==n&&99!==n||(null===Bs?Bs=new Map([[t,e]]):(void 0===(n=Bs.get(t))||n>e)&&Bs.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),_s===Ts&&ju(i,Ss)),Ru(i,e)),i}function Ys(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 Js(t){if(0!==t.lastExpiredTime)t.callbackExpirationTime=1073741823,t.callbackPriority=99,t.callbackNode=Hi(Zs.bind(null,t));else{var e=Ys(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&&xi(n)}t.callbackExpirationTime=e,t.callbackPriority=r,e=1073741823===e?Hi(Zs.bind(null,t)):qi(r,Qs.bind(null,t),{timeout:10*(1073741821-e)-Vi()}),t.callbackNode=e}}}function Qs(t,e){if(Ws=0,e)return Lu(t,e=Gs()),Js(t),null;var n=Ys(t);if(0!==n){if(e=t.callbackNode,0!==(48&xs))throw Error(a(327));if(vu(),t===ks&&n===Ss||nu(t,n),null!==Is){var r=xs;xs|=16;for(var i=iu();;)try{uu();break}catch(u){ru(t,u)}if(Zi(),xs=r,gs.current=i,1===_s)throw e=Os,nu(t,n),ju(t,n),Js(t),e;if(null===Is)switch(i=t.finishedWork=t.current.alternate,t.finishedExpirationTime=n,r=_s,ks=null,r){case ws:case 1:throw Error(a(345));case 2:Lu(t,2<n?2:n);break;case Es:if(ju(t,n),n===(r=t.lastSuspendedTime)&&(t.nextKnownPendingLevel=fu(i)),1073741823===As&&10<(i=Rs+500-Vi())){if(js){var o=t.lastPingedTime;if(0===o||o>=n){t.lastPingedTime=n,nu(t,n);break}}if(0!==(o=Ys(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(ju(t,n),n===(r=t.lastSuspendedTime)&&(t.nextKnownPendingLevel=fu(i)),js&&(0===(i=t.lastPingedTime)||i>=n)){t.lastPingedTime=n,nu(t,n);break}if(0!==(i=Ys(t))&&i!==n)break;if(0!==r&&r!==n){t.lastPingedTime=r;break}if(1073741823!==Ns?r=10*(1073741821-Ns)-Vi():1073741823===As?r=0:(r=10*(1073741821-As)-5e3,0>(r=(i=Vi())-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*ys(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=Vi()-(10*(1073741821-o)-(0|s.timeoutMs||5e3)))<=i?0:i+r-o),10<r){ju(t,n),t.timeoutHandle=bn(hu.bind(null,t),r);break}}hu(t);break;default:throw Error(a(329))}if(Js(t),t.callbackNode===e)return Qs.bind(null,t)}}return null}function Zs(t){var e=t.lastExpiredTime;if(e=0!==e?e:1073741823,0!==(48&xs))throw Error(a(327));if(vu(),t===ks&&e===Ss||nu(t,e),null!==Is){var n=xs;xs|=16;for(var r=iu();;)try{su();break}catch(i){ru(t,i)}if(Zi(),xs=n,gs.current=r,1===_s)throw n=Os,nu(t,e),ju(t,e),Js(t),n;if(null!==Is)throw Error(a(261));t.finishedWork=t.current.alternate,t.finishedExpirationTime=e,ks=null,hu(t),Js(t)}return null}function tu(t,e){var n=xs;xs|=1;try{return t(e)}finally{0===(xs=n)&&Wi()}}function eu(t,e){var n=xs;xs&=-2,xs|=8;try{return t(e)}finally{0===(xs=n)&&Wi()}}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&&mi();break;case 3:jo(),ui(hi),ui(fi);break;case 5:Lo(r);break;case 4:jo();break;case 13:case 19:ui(Do);break;case 10:to(r)}n=n.return}ks=t,Is=Su(t.current,null),Ss=e,_s=ws,Os=null,Ns=As=1073741823,Cs=null,Ps=0,js=!1}function ru(t,e){for(;;){try{if(Zi(),Vo.current=ma,Wo)for(var n=Bo.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(zo=0,Ho=qo=Bo=null,Wo=!1,null===Is||null===Is.return)return _s=1,Os=e,Is=null;t:{var i=t,o=Is.return,a=Is,s=e;if(e=Ss,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==s&&"object"===typeof s&&"function"===typeof s.then){var u=s;if(0===(2&a.mode)){var 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&Do.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 m=new Set;m.add(u),f.updateQueue=m}else v.add(u);if(0===(2&f.mode)){if(f.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var y=so(1073741823,null);y.tag=2,uo(a,y)}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((mt(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+yt(a))}5!==_s&&(_s=2),s=Qa(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===Fs||!Fs.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=ma,null===t?ma: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&&!ji();)Is=cu(Is)}function cu(t){var e=ms(t.alternate,t,Ss);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=Ya(e,Is,Ss),1===Ss||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=Ja(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 _s===ws&&(_s=5),null}function fu(t){var e=t.expirationTime;return e>(t=t.childExpirationTime)?e:t}function hu(t){var e=Ui();return Bi(99,pu.bind(null,t,e)),null}function pu(t,e){do{vu()}while(null!==Us);if(0!==(48&xs))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,Ss=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,null!==i){var o=xs;xs|=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(S){u=null;break t}var h=0,p=-1,d=-1,v=0,m=0,y=s,g=null;e:for(;;){for(var b;y!==u||0!==l&&3!==y.nodeType||(p=h+l),y!==f||0!==c&&3!==y.nodeType||(d=h+c),3===y.nodeType&&(h+=y.nodeValue.length),null!==(b=y.firstChild);)g=y,y=b;for(;;){if(y===s)break e;if(g===u&&++v===l&&(p=h),g===f&&++m===c&&(d=h),null!==(b=y.nextSibling))break;g=(y=g).parentNode}y=b}u=-1===p||-1===d?null:{start:p,end:d}}else u=null}u=u||{start:0,end:0}}else u=null;mn={activeElementDetached:null,focusedElem:s,selectionRange:u},Ge=!1,Ls=i;do{try{du()}catch(S){if(null===Ls)throw Error(a(330));gu(Ls,S),Ls=Ls.nextEffect}}while(null!==Ls);Ls=i;do{try{for(s=t,u=e;null!==Ls;){var w=Ls.effectTag;if(16&w&&Ut(Ls.stateNode,""),128&w){var E=Ls.alternate;if(null!==E){var T=E.ref;null!==T&&("function"===typeof T?T(null):T.current=null)}}switch(1038&w){case 2:cs(Ls),Ls.effectTag&=-3;break;case 6:cs(Ls),Ls.effectTag&=-3,fs(Ls.alternate,Ls);break;case 1024:Ls.effectTag&=-1025;break;case 1028:Ls.effectTag&=-1025,fs(Ls.alternate,Ls);break;case 4:fs(Ls.alternate,Ls);break;case 8:ls(s,l=Ls,u),ss(l)}Ls=Ls.nextEffect}}catch(S){if(null===Ls)throw Error(a(330));gu(Ls,S),Ls=Ls.nextEffect}}while(null!==Ls);if(T=mn,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,mn=vn=null,t.current=n,Ls=i;do{try{for(w=t;null!==Ls;){var x=Ls.effectTag;if(36&x&&os(w,Ls.alternate,Ls),128&x){E=void 0;var k=Ls.ref;if(null!==k){var I=Ls.stateNode;switch(Ls.tag){case 5:E=I;break;default:E=I}"function"===typeof k?k(E):k.current=E}}Ls=Ls.nextEffect}}catch(S){if(null===Ls)throw Error(a(330));gu(Ls,S),Ls=Ls.nextEffect}}while(null!==Ls);Ls=null,Ri(),xs=o}else t.current=n;if(Vs)Vs=!1,Us=t,zs=e;else for(Ls=i;null!==Ls;)e=Ls.nextEffect,Ls.nextEffect=null,Ls=e;if(0===(e=t.firstPendingTime)&&(Fs=null),1073741823===e?t===Hs?qs++:(qs=0,Hs=t):qs=0,"function"===typeof Eu&&Eu(n.stateNode,r),Js(t),Ds)throw Ds=!1,t=Ms,Ms=null,t;return 0!==(8&xs)||Wi(),null}function du(){for(;null!==Ls;){var t=Ls.effectTag;0!==(256&t)&&ns(Ls.alternate,Ls),0===(512&t)||Vs||(Vs=!0,qi(97,(function(){return vu(),null}))),Ls=Ls.nextEffect}}function vu(){if(90!==zs){var t=97<zs?97:zs;return zs=90,Bi(t,mu)}}function mu(){if(null===Us)return!1;var t=Us;if(Us=null,0!==(48&xs))throw Error(a(331));var e=xs;for(xs|=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 xs=e,Wi(),!0}function yu(t,e,n){uo(t,e=ds(t,e=Qa(n,e),1073741823)),null!==(t=Xs(t,1073741823))&&Js(t)}function gu(t,e){if(3===t.tag)yu(t,t,e);else for(var n=t.return;null!==n;){if(3===n.tag){yu(n,t,e);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Fs||!Fs.has(r))){uo(n,t=vs(n,t=Qa(e,t),1073741823)),null!==(n=Xs(n,1073741823))&&Js(n);break}}n=n.return}}function bu(t,e,n){var r=t.pingCache;null!==r&&r.delete(e),ks===t&&Ss===n?_s===Ts||_s===Es&&1073741823===As&&Vi()-Rs<500?nu(t,Ss):js=!0:Pu(t,n)&&(0!==(e=t.lastPingedTime)&&e<n||(t.lastPingedTime=n,Js(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))&&Js(t)}ms=function(t,e,n){var r=e.expirationTime;if(null!==t){var i=e.pendingProps;if(t.memoizedProps!==i||hi.current)Na=!0;else{if(r<n){switch(Na=!1,e.tag){case 3:Va(e),Oa();break;case 5:if(Ro(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?Ha(t,e,n):(ci(Do,1&Do.current),null!==(e=$a(t,e,n))?e.sibling:null);ci(Do,1&Do.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(Do,Do.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=mo,e.stateNode=i,i._reactInternalFiber=e,wo(e,r,t,n),e=Fa(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=Da(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=ja(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,Da(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(Va(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=So(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 Ro(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),La(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 Ha(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),ja(t,e,i,o=$i(i.type,o),r,n);case 15:return Ra(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),Fa(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 xu(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 xu(t,e,n,r)}function Iu(t){return!(!(t=t.prototype)||!t.isReactComponent)}function Su(t,e){var n=t.alternate;return null===n?((n=ku(t.tag,e,t.key,t.mode)).elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=t.childExpirationTime,n.expirationTime=t.expirationTime,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=null===e?null:{expirationTime:e.expirationTime,firstContext:e.firstContext,responders:e.responders},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function _u(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 ju(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 Ru(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 Lu(t,e){var n=t.lastExpiredTime;(0===n||n>e)&&(t.lastExpiredTime=e)}function Du(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 Fu(t,e){null!==(t=t.memoizedState)&&null!==t.dehydrated&&t.retryTime<e&&(t.retryTime=e)}function Vu(t,e){Fu(t,e),(t=t.alternate)&&Fu(t,e)}function Uu(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[Sn]=r.current,n&&0!==e&&function(t,e){var n=Qt(e);Se.forEach((function(t){de(t,e,n)}
vendor: 4,313 bytes, line 2
2)),_e.forEach((function(t){de(t,e,n)}))}(0,9===t.nodeType?t:t.ownerDocument),this._internalRoot=r}function zu(t){return!(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType&&(8!==t.nodeType||" react-mount-point-unstable "!==t.nodeValue))}function Bu(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)}}Du(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 Uu(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(){Du(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 Hu(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!zu(e))throw Error(a(200));return qu(t,e,null,n)}Uu.prototype.render=function(t){Du(t,this._internalRoot,null,null)},Uu.prototype.unmount=function(){var t=this._internalRoot,e=t.containerInfo;Du(null,t,null,(function(){e[Sn]=null}))},ve=function(t){if(13===t.tag){var e=Ki(Gs(),150,100);$s(t,e),Vu(t,e)}},me=function(t){13===t.tag&&($s(t,3),Vu(t,3))},ye=function(t){if(13===t.tag){var e=Gs();$s(t,e=Ks(e,t,null)),Vu(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)}},R=tu,L=function(t,e,n,r,i){var o=xs;xs|=4;try{return Bi(98,t.bind(null,e,n,r,i))}finally{0===(xs=o)&&Wi()}},D=function(){0===(49&xs)&&(function(){if(null!==Bs){var t=Bs;Bs=null,t.forEach((function(t,e){Lu(e,t),Js(e)})),Wi()}}(),vu())},M=function(t,e){var n=xs;xs|=2;try{return t(e)}finally{0===(xs=n)&&Wi()}};var Wu={Events:[On,An,Nn,S,x,Mn,function(t){ie(t,Dn)},P,j,Je,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:Y.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:_n,bundleType:0,version:"16.13.1",rendererPackageName:"react-dom"}),e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Wu,e.createPortal=Hu,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&xs))throw Error(a(187));var n=xs;xs|=1;try{return Bi(99,t.bind(null,e))}finally{xs=n,Wi()}},e.hydrate=function(t,e,n){if(!zu(e))throw Error(a(200));return Bu(null,t,e,!0,n)},e.render=function(t,e,n){if(!zu(e))throw Error(a(200));return Bu(null,t,e,!1,n)},e.unmountComponentAtNode=function(t){if(!zu(t))throw Error(a(40));return!!t._reactRootContainer&&(eu((function(){Bu(null,null,t,!1,(function(){t._reactRootContainer=null,t[Sn]=null}))})),!0)},e.unstable_batchedUpdates=tu,e.unstable_createPortal=function(t,e){return Hu(t,e,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},e.unstable_renderSubtreeIntoContainer=function(t,e,n,r){if(!zu(n))throw Error(a(200));if(null==t||void 0===t._reactInternalFiber)throw Error(a(38));return Bu(t,e,n,!1,r)},e.version="16.13.1"},function(t,e,n){"use strict";
vendor: 4,326 bytes, line 2
2t.exports=n(142)},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 m=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!==typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"===typeof h&&"function"===typeof h.now)e.unstable_now=function(){return h.now()};else{var y=p.now();e.unstable_now=function(){return p.now()-y}}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 x=new MessageChannel,k=x.port2;x.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 S(t){return void 0===(t=t[0])?null:t}function _(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,j=3,R=!1,L=!1,D=!1;function M(t){for(var e=S(N);null!==e;){if(null===e.callback)_(N);else{if(!(e.startTime<=t))break;_(N),e.sortIndex=e.expirationTime,I(A,e)}e=S(N)}}function F(t){if(D=!1,M(t),!L)if(null!==S(A))L=!0,r(V);else{var e=S(N);null!==e&&i(F,e.startTime-t)}}function V(t,n){L=!1,D&&(D=!1,o()),R=!0;var r=j;try{for(M(n),P=S(A);null!==P&&(!(P.expirationTime>n)||t&&!a());){var s=P.callback;if(null!==s){P.callback=null,j=P.priorityLevel;var u=s(P.expirationTime<=n);n=e.unstable_now(),"function"===typeof u?P.callback=u:P===S(A)&&_(A),M(n)}else _(A);P=S(A)}if(null!==P)var c=!0;else{var l=S(N);null!==l&&i(F,l.startTime-n),c=!1}return c}finally{P=null,j=r,R=!1}}function U(t){switch(t){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var z=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(){L||R||(L=!0,r(V))},e.unstable_getCurrentPriorityLevel=function(){return j},e.unstable_getFirstCallbackNode=function(){return S(A)},e.unstable_next=function(t){switch(j){case 1:case 2:case 3:var e=3;break;default:e=j}var n=j;j=e;try{return t()}finally{j=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=z,e.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=j;j=t;try{return e()}finally{j=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:U(t)}else a=U(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===S(A)&&t===S(N)&&(D?o():D=!0,i(F,u-s))):(t.sortIndex=a,I(A,t),L||R||(L=!0,r(V))
2),t},e.unstable_shouldYield=function(){var t=e.unstable_now();M(t);var n=S(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=j;return function(){var n=j;j=e;try{return t.apply(this,arguments)}finally{j=n}}}},,,,function(t,e,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(x([])));v&&v!==e&&n.call(v,i)&&(p=v);var m=h.prototype=l.prototype=Object.create(p);function y(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&&(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}
vendor: 4,224 bytes, line 2
2var 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 x(t){if(t){var e=t[i];if(e)return e.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:k}}function k(){return{value:void 0,done:!0}}return f.prototype=m.constructor=h,h.constructor=f,h[a]=f.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,a in t||(t[a]="GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},y(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()}))},y(m),m[a]="Generator",m[i]=function(){return this},m.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=x,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:x(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";var r=n(150);function i(){}function o(){}
2o.resetWarningCache=i,t.exports=function(){function t(t,e,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){"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,m=r?Symbol.for("react.memo"):60115,y=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 y:case m:case c:return t;default:return e}}case o:return e}}}function x(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=y,e.Memo=m,e.Portal=o,e.Profiler=u,e.StrictMode=s,e.Suspense=d,e.isAsyncMode=function(t){return x(t)||T(t)===f},e.isConcurrentMode=x,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)===y},e.isMemo=function(t){return T(t)===m},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===y||t.$$typeof===m||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,n){"use strict";n(154)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(61),o=(r=n(9))&&"object"==typeof r&&"default"in r?r.default:r,a=n(101),s=n(80),u=n(100),c=n(155),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}(),m=function(){function t(t){var e=this;this.I=null,this.currentUser=f.UNAUTHENTICATED,this.R=!1,this.m=0,this.u=null,this.forceRefresh=!1,this.I=function(){e.m++,e.currentUser=e.A(),e.R=!0,e.u&&e.u(e.currentUser)},this.m=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.m,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then((function(n){if(t.m!==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.A=function(){var t=this.auth&&this.auth.getUid();return Ee(null===t||"string"==typeof t),new f(t)},t}(),y=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 y(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 x=/^[_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 x.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 S(t){var e=0;for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e++;return e}function _(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 j(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 R(t){var e=B(t.mapValue.fields.__local_write_time__.timestampValue);return new b(e.seconds,e.nanos)}A.ht=new A("");var L=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function D(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?j(t)?4:10:we()}function M(t,e){var n=D(t);if(n!==D(e))return!1;switch(n){case 0:return!0;case 1:return t.booleanValue===e.booleanValue;case 4:return R(t).isEqual(R(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=B(t.timestampValue),r=B(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 H(t.bytesValue).isEqual(H(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(S(n)!==S(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 F(t,e){return void 0!==(t.values||[]).find((function(t){return M(t,e)}))}function V(t,e){var n=D(t),r=D(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 U(t.timestampValue,e.timestampValue);case 4:return U(R(t),R(e));case 5:return ke(t.stringValue,e.stringValue);case 6:return function(t,e){var n=H(t),r=H(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=V(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=V(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 U(t,e){if("string"==typeof t&&"string"==typeof e&&t.length===e.length)return ke(t,e);var n=B(t),r=B(e),i=ke(n.seconds,r.seconds);return 0!==i?i:ke(n.nanos,r.nanos)}function z(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=B(t);return"time("+e.seconds+","+e.nanos+")"}(e.timestampValue):"stringValue"in e?e.stringValue:"bytesValue"in e?H(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 B(t){if(Ee(!!t),"string"==typeof t){var e=0,n=L.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 H(t){return"string"==typeof t?A.fromBase64String(t):A.fromUint8Array(t)}function W(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 Y(t){return!!t&&"mapValue"in t}var J=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}();J.instance=new J;var Q=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(!Y(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===D(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=Y(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 _(t.fields||{},(function(t,n){var r=new k([t]);if(Y(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,mt,yt=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}(yt),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}(yt),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}(yt),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.xt=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.Ot=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.Ot;r<i.length;r++){var o=i[r];this.qt.push(o),o.field.Y()&&(n=!0)}if(!n){var a=this.Ot.length>0?this.Ot[this.Ot.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.Ot.slice(),n,this.limit,this.Bt,this.startAt,this.endAt)},t.prototype.zt=function(e){var n=this.Ot.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.Ot.slice(),this.filters.slice(),e,"F",this.startAt,this.endAt)},t.prototype.Yt=function(e){return new t(this.path,this.collectionGroup,this.Ot.slice(),this.filters.slice(),e,"L",this.startAt,this.endAt)},t.prototype.Jt=function(e){return new t(this.path,this.collectionGroup,this.Ot.slice(),this.filters.slice(),this.limit,this.Bt,e,this.endAt)},t.prototype.Xt=function(e){return new t(this.path,this.collectionGroup,this.Ot.slice(),this.filters.slice(),this.limit,this.Bt,this.startAt,e)},t.prototype.Zt=function(e){return new t(e,null,this.Ot.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.Ot.length||1===this.Ot.length&&this.Ot[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.Ot.length>0?this.Ot[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 xt&&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 xt&&t.indexOf(r.op)>=0)return r.op}return null},t.prototype.xt=function(){return this.ee().xt()},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.Ot;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}(),xt=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 St(t,r):"in"===n?new _t(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&&D(this.value)===D(e)&&this.de(V(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()+z(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+" "+z(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}(xt),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}(xt),St=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)&&F(e.arrayValue,this.value)},e}(xt),_t=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&&F(this.value.arrayValue,e)},e}(xt),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 F(e.value.arrayValue,t)}))},e}(xt),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 z(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):V(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?V(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 jt(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 Rt(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()}}(mt=vt||(vt={}))[mt.OK=0]="OK",mt[mt.CANCELLED=1]="CANCELLED",mt[mt.UNKNOWN=2]="UNKNOWN",mt[mt.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",mt[mt.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",mt[mt.NOT_FOUND=5]="NOT_FOUND",mt[mt.ALREADY_EXISTS=6]="ALREADY_EXISTS",mt[mt.PERMISSION_DENIED=7]="PERMISSION_DENIED",mt[mt.UNAUTHENTICATED=16]="UNAUTHENTICATED",mt[mt.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",mt[mt.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",mt[mt.ABORTED=10]="ABORTED",mt[mt.OUT_OF_RANGE=11]="OUT_OF_RANGE",mt[mt.UNIMPLEMENTED=12]="UNIMPLEMENTED",mt[mt.INTERNAL=13]="INTERNAL",mt[mt.UNAVAILABLE=14]="UNAVAILABLE",mt[mt.DATA_LOSS=15]="DATA_LOSS";var Lt=function(){function t(t,e){this.N=t,this.root=e||Mt.EMPTY}return t.prototype.me=function(e,n){return new t(this.N,this.root.me(e,n,this.N).Ae(null,null,Mt.Pe,null,null))},t.prototype.remove=function(e){return new t(this.N,this.root.remove(e,this.N).Ae(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 Dt(this.root,null,this.N,!1)},t.prototype.ve=function(t){return new Dt(this.root,t,this.N,!1)},t.prototype.Se=function(){return new Dt(this.root,null,this.N,!0)},t.prototype.De=function(t){return new Dt(this.root,t,this.N,!0)},t}(),Dt=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.Ae=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.me=function(t,e,n){var r=this,i=n(t,r.key);return(r=i<0?r.Ae(null,null,null,r.left.me(t,e,n),null):0===i?r.Ae(null,e,null,null,null):r.Ae(null,null,null,null,r.right.me(t,e,n))).Me()},t.prototype.Le=function(){if(this.left.B())return t.EMPTY;var e=this;return e.left.xe()||e.left.left.xe()||(e=e.Oe()),(e=e.Ae(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.xe()||i.left.left.xe()||(i=i.Oe()),i=i.Ae(null,null,null,i.left.remove(e,n),null);else{if(i.left.xe()&&(i=i.Be()),i.right.B()||i.right.xe()||i.right.left.xe()||(i=i.qe()),0===n(e,i.key)){if(i.right.B())return t.EMPTY;r=i.right.min(),i=i.Ae(r.key,r.value,null,null,i.right.Le())}i=i.Ae(null,null,null,null,i.right.remove(e,n))}return i.Me()},t.prototype.xe=function(){return this.color},t.prototype.Me=function(){var t=this;return t.right.xe()&&!t.left.xe()&&(t=t.Ue()),t.left.xe()&&t.left.left.xe()&&(t=t.Be()),t.left.xe()&&t.right.xe()&&(t=t.Qe()),t},t.prototype.Oe=function(){var t=this.Qe();return t.right.left.xe()&&(t=(t=(t=t.Ae(null,null,null,null,t.right.Be())).Ue()).Qe()),t},t.prototype.qe=function(){var t=this.Qe();return t.left.left.xe()&&(t=(t=t.Be()).Qe()),t},t.prototype.Ue=function(){var e=this.Ae(null,null,t.RED,null,this.right.left);return this.right.Ae(null,null,this.color,e,null)},t.prototype.Be=function(){var e=this.Ae(null,null,t.RED,this.left.right,null);return this.left.Ae(null,null,this.color,null,e)},t.prototype.Qe=function(){var t=this.left.Ae(null,null,!this.left.color,null,null),e=this.right.Ae(null,null,!this.right.color,null,null);return this.Ae(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.xe()&&this.left.xe())throw we();if(this.right.xe())throw we();var t=this.left.je();if(t!==this.right.je())throw we();return t+(this.xe()?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.Ae=function(t,e,n,r,i){return this},t.prototype.me=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.xe=function(){return!1},t.prototype.We=function(){return!0},t.prototype.je=function(){return 0},t}());var Ft=function(){function t(t){this.N=t,this.data=new Lt(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 Vt(this.data.be())},t.prototype.ve=function(t){return new Vt(this.data.ve(t))},t.prototype.add=function(t){return this.Ae(this.data.remove(t).me(t,!0))},t.prototype.delete=function(t){return this.has(t)?this.Ae(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.Ae=function(e){var n=new t(this.N);return n.data=e,n},t}(),Vt=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}(),Ut=new Lt(I.N);function zt(){return Ut}function Bt(){return zt()}var qt=new Lt(I.N);function Ht(){return qt}var Wt=new Lt(I.N);function Gt(){return Wt}var Kt=new Ft(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 Ft(ke);function Yt(){return Xt}var Jt=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=Ht(),this.Xe=new Lt(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.Ae(e.Je.me(t.key,t),e.Xe.me(t,null))},t.prototype.delete=function(t){var e=this.get(t);return e?this.Ae(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.Ae=function(e,n){var r=new t;return r.N=this.N,r.Je=e,r.Xe=n,r},t}(),Qt=function(){function t(){this.ts=new Lt(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.me(e,t):3===t.type&&1!==n.type?this.ts=this.ts.me(e,{type:n.type,doc:t.doc}):2===t.type&&2===n.type?this.ts=this.ts.me(e,{type:2,doc:t.doc}):2===t.type&&0===n.type?this.ts=this.ts.me(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.me(e,{type:1,doc:n.doc}):0===t.type&&1===n.type?this.ts=this.ts.me(e,{type:2,doc:t.doc}):we():this.ts=this.ts.me(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,Jt.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;
2return r.set(e,ee.ds(e,n)),new t(w.min(),r,Yt(),zt(),$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}return 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.ms=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.As=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.As},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.me(t,e)},t.prototype.Fs=function(t){this.ps=!0,this.Ps=this.Ps.remove(t)},t.prototype.Ns=function(){this.As+=1},t.prototype.ks=function(){this.As-=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.xs=zt(),this.Os=se(),this.Bs=new Ft(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.ms.count,r=this.Ys(e);if(r){var i=r.target;if(i.xt())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.xt()){var a=new I(o.target.path);null!==e.xs.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.Os.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.xs,r);return this.xs=zt(),this.Os=se(),this.Bs=new Ft(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.xs=this.xs.me(e.key,e),this.Os=this.Os.me(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.Os=this.Os.me(e,this.ti(e).delete(t)),n&&(this.xs=this.xs.me(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.Os.get(t);return e||(e=new Ft(ke),this.Os=this.Os.me(t,e)),e},t.prototype.Gs=function(t){var e=null!==this.Ys(t);return e||ye("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 Lt(I.N)}function ue(){return new Lt(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:Rt(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=B(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.mi=function(t){return{name:this.fi(t.key),fields:t.Mt().mapValue.fields,updateTime:this.C(t.version.C())}},t.prototype.Ai=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),m=d.readTime?this.fromVersion(d.readTime):w.min(),y=new bt(v,m),g=d.removedTargetIds||[];e=new ne([],g,y.key,y)}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 x=t.filter;x.targetId;var k=x.count||0,I=new Pt(k),S=x.targetId;e=new re(S,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 J)return{fieldPath:t.field.j(),setToServerValue:"REQUEST_TIME"};if(e instanceof Q)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=J.instance;else if("appendMissingElements"in t){var n=t.appendMissingElements.values||[];e=new Q(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.xi=function(t){return{documents:[this.Ei(t.path)]}},t.prototype.Oi=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.xt()?{documents:this.xi(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 xt?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 xt.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 xt.create(e,"==",{doubleValue:NaN});case"IS_NULL":var n=this.on(t.unaryFilter.field);return xt.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 me(t){de.logLevel=t}function ye(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 xe=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 Se(t){return t+"\0"}var _e=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){_(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.me(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.me(a[s].key,r[s].version);return new t(e,n,r,i,o)},t}(),Pe=function(){function t(){this.mn=new Ft(je.An),this.Pn=new Ft(je.Vn)}return t.prototype.B=function(){return this.mn.B()},t.prototype.gn=function(t,e){var n=new je(t,e);this.mn=this.mn.add(n),this.Pn=this.Pn.add(n)},t.prototype.pn=function(t,e){var n=this;t.forEach((function(t){return n.gn(t,e)}))},t.prototype.yn=function(t,e){this.bn(new je(t,e))},t.prototype.vn=function(t,e){var n=this;t.forEach((function(t){return n.yn(t,e)}))},t.prototype.Sn=function(t){var e=this,n=I.EMPTY,r=new je(n,t),i=new je(n,t+1),o=[];return this.Pn.Ke([r,i],(function(t){e.bn(t),o.push(t.key)})),o},t.prototype.Dn=function(){var t=this;
2this.mn.forEach((function(e){return t.bn(e)}))},t.prototype.bn=function(t){this.mn=this.mn.delete(t),this.Pn=this.Pn.delete(t)},t.prototype.Cn=function(t){var e=I.EMPTY,n=new je(e,t),r=new je(e,t+1),i=$t();return this.Pn.Ke([n,r],(function(t){i=i.add(t.key)})),i},t.prototype.Fn=function(t){var e=new je(t,0),n=this.mn.ze(e);return null!==n&&t.isEqual(n.key)},t}(),je=function(){function t(t,e){this.key=t,this.Nn=e}return t.An=function(t,e){return I.N(t.key,e.key)||ke(t.Nn,e.Nn)},t.Vn=function(t,e){return ke(t.Nn,e.Nn)||I.N(t.key,e.key)},t}(),Re=function(){function t(t){var e=this;this.kn=null,this.$n=null,this.result=void 0,this.error=void 0,this.Mn=!1,this.Ln=!1,t((function(t){e.Mn=!0,e.result=t,e.kn&&e.kn(t)}),(function(t){e.Mn=!0,e.error=t,e.$n&&e.$n(t)}))}return t.prototype.catch=function(t){return this.next(void 0,t)},t.prototype.next=function(e,n){var r=this;return this.Ln&&we(),this.Ln=!0,this.Mn?this.error?this.xn(n,this.error):this.On(e,this.result):new t((function(t,i){r.kn=function(n){r.On(e,n).next(t,i)},r.$n=function(e){r.xn(n,e).next(t,i)}}))},t.prototype.Bn=function(){var t=this;return new Promise((function(e,n){t.next(e,n)}))},t.prototype.qn=function(e){try{var n=e();return n instanceof t?n:t.resolve(n)}catch(e){return t.reject(e)}},t.prototype.On=function(e,n){return e?this.qn((function(){return e(n)})):t.resolve(n)},t.prototype.xn=function(e,n){return e?this.qn((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.Un=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.Qn=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.Un(r)},t}(),Le=function(){function t(){this.Wn=new Ae((function(t){return t.toString()})),this.jn=!1}return Object.defineProperty(t.prototype,"readTime",{get:function(){return this.Kn},set:function(t){this.Kn=t},enumerable:!0,configurable:!0}),t.prototype.Gn=function(t,e){this.zn(),this.readTime=e,this.Wn.set(t.key,t)},t.prototype.Hn=function(t,e){this.zn(),e&&(this.readTime=e),this.Wn.set(t,null)},t.prototype.Yn=function(t,e){this.zn();var n=this.Wn.get(e);return void 0!==n?Re.resolve(n):this.Jn(t,e)},t.prototype.getEntries=function(t,e){return this.Xn(t,e)},t.prototype.apply=function(t){return this.zn(),this.jn=!0,this.Zn(t)},t.prototype.zn=function(){},t}(),De="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.",Me=function(){function t(){this.tr=[]}return t.prototype.er=function(t){this.tr.push(t)},t.prototype.sr=function(){this.tr.forEach((function(t){return t()}))},t}(),Fe=function(){function t(t,e,n){this.ir=t,this.nr=e,this.rr=n}return t.prototype.hr=function(t,e){var n=this;return this.nr.or(t,e).next((function(r){return n.ar(t,e,r)}))},t.prototype.ar=function(t,e,n){return this.ir.Yn(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.ur=function(t,e,n){var r=Bt();return e.forEach((function(t,e){for(var i=0,o=n;i<o.length;i++)e=o[i].ot(t,e);r=r.me(t,e)})),r},t.prototype.cr=function(t,e){var n=this;return this.ir.getEntries(t,e).next((function(e){return n._r(t,e)}))},t.prototype._r=function(t,e){var n=this;return this.nr.lr(t,e).next((function(r){var i=n.ur(t,e,r),o=zt();return i.forEach((function(t,e){e||(e=new bt(t,w.min())),o=o.me(t,e)})),o}))},t.prototype.dr=function(t,e,n){return e.xt()?this.Tr(t,e.path):e._e()?this.Er(t,e,n):this.Ir(t,e,n)},t.prototype.Tr=function(t,e){return this.hr(t,new I(e)).next((function(t){var e=Ht();return t instanceof gt&&(e=e.me(t.key,t)),e}))},t.prototype.Er=function(t,e,n){var r=this,i=e.collectionGroup,o=Ht();return this.rr.wr(t,i).next((function(a){return Re.forEach(a,(function(a){var s=e.Zt(a.child(i));return r.Ir(t,s,n).next((function(t){t.forEach((function(t,e){o=o.me(t,e)}))}
2))})).next((function(){return o}))}))},t.prototype.Ir=function(t,e,n){var r,i,o=this;return this.ir.dr(t,e,n).next((function(n){return r=n,o.nr.Rr(t,e)})).next((function(e){return i=e,o.mr(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.me(c,f):r.remove(c)}}))})).next((function(){return r.forEach((function(t,n){e.matches(n)||(r=r.remove(t))})),r}))},t.prototype.mr=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.ir.getEntries(t,r).next((function(t){return t.forEach((function(t,e){null!==e&&e instanceof gt&&(c=c.me(t,e))})),c}))},t}(),Ve=function(){function t(t,e,n,r){this.targetId=t,this.fromCache=e,this.Ar=n,this.Pr=r}return t.Vr=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.gr=function(t){return n.pr(t)},this.yr=function(t){return e.br(t)})}return t.prototype.pr=function(t){return this.previousValue=Math.max(t,this.previousValue),this.previousValue},t.prototype.next=function(){var t=++this.previousValue;return this.yr&&this.yr(t),t},t}();Ue.vr=-1;var ze=function(){var t=this;this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n}))},Be=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.Sr=t,this.Dr=e,this.Cr=n,this.Fr=r,this.Nr=i,this.kr=0,this.$r=null,this.Mr=Date.now(),this.reset()}return t.prototype.reset=function(){this.kr=0},t.prototype.Lr=function(){this.kr=this.Nr},t.prototype.xr=function(t){var e=this;this.cancel();var n=Math.floor(this.kr+this.Or()),r=Math.max(0,Date.now()-this.Mr),i=Math.max(0,n-r);i>0&&ye("ExponentialBackoff","Backing off for "+i+" ms (base delay: "+this.kr+" ms, delay with jitter: "+n+" ms, last attempt: "+r+" ms ago)"),this.$r=this.Sr.Br(this.Dr,i,(function(){return e.Mr=Date.now(),t()})),this.kr*=this.Fr,this.kr<this.Cr&&(this.kr=this.Cr),this.kr>this.Nr&&(this.kr=this.Nr)},t.prototype.cancel=function(){null!==this.$r&&(this.$r.cancel(),this.$r=null)},t.prototype.Or=function(){return(Math.random()-.5)*this.kr},t}(),qe=function(){function t(t,e,n,r,i){this.qr=t,this.Dr=e,this.Ur=n,this.op=r,this.Qr=i,this.Wr=new ze,this.then=this.Wr.promise.then.bind(this.Wr.promise),this.catch=this.Wr.promise.catch.bind(this.Wr.promise),this.Wr.promise.catch((function(t){}))}return t.jr=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.Kr=setTimeout((function(){return e.Gr()}),t)},t.prototype.zr=function(){return this.Gr()},t.prototype.cancel=function(t){null!==this.Kr&&(this.clearTimeout(),this.Wr.reject(new p(h.CANCELLED,"Operation cancelled"+(t?": "+t:"")))
2)},t.prototype.Gr=function(){var t=this;this.qr.Hr((function(){return null!==t.Kr?(t.clearTimeout(),t.op().then((function(e){return t.Wr.resolve(e)}))):Promise.resolve()}))},t.prototype.clearTimeout=function(){null!==this.Kr&&(this.Qr(this),clearTimeout(this.Kr),this.Kr=null)},t}(),He=function(){function t(){var t=this;this.Yr=Promise.resolve(),this.Jr=Promise.resolve(),this.Xr=!1,this.Zr=[],this.th=null,this.eh=!1,this.sh=[],this.ih=new Be(this,"async_queue_retry"),this.nh=function(){t.rh("async_queue_retry")};var e=pe.nt().window;e&&"function"==typeof e.addEventListener&&e.addEventListener("visibilitychange",this.nh)}return Object.defineProperty(t.prototype,"hh",{get:function(){return this.Xr},enumerable:!0,configurable:!0}),t.prototype.Hr=function(t){this.enqueue(t)},t.prototype.oh=function(t){this.ah(),this.uh(t)},t.prototype._h=function(t){return this.ah(),this.uh(t)},t.prototype.lh=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.ah(),this.Xr?[3,2]:(this.Xr=!0,(e=pe.nt().window)&&e.removeEventListener("visibilitychange",this.nh),[4,this._h(t)]);case 1:n.sent(),n.label=2;case 2:return[2]}}
2))}))},t.prototype.enqueue=function(t){return this.ah(),this.Xr?new Promise((function(t){})):this.uh(t)},t.prototype.dh=function(t){var e=this;this.ah(),this.Xr||(this.Jr=this.Jr.then((function(){var n=new ze;return e.Hr((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.ih.reset(),[3,3];case 2:if("IndexedDbTransactionError"!==(e=i.sent()).name)throw n.resolve(),e;return ye("AsyncQueue","Operation failed with retryable error: "+e),this.ih.xr(r),[3,3];case 3:return[2]}}))}))})),n.promise})))},t.prototype.uh=function(t){var e=this,n=this.Yr.then((function(){return e.eh=!0,t().catch((function(t){throw e.th=t,e.eh=!1,ge("INTERNAL UNHANDLED ERROR: ",t.stack||t.message||""),t})).then((function(t){return e.eh=!1,t}))}));return this.Yr=n,n},t.prototype.Br=function(t,e,n){var r=this;this.ah(),this.sh.indexOf(t)>-1&&(e=0);var i=qe.jr(this,t,e,n,(function(t){return r.fh(t)}));return this.Zr.push(i),i},t.prototype.ah=function(){this.th&&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.Yr];case 1:e.sent(),e.label=2;case 2:if(t!==this.Yr)return[3,0];e.label=3;case 3:return[2]}}
2))}))},t.prototype.Ih=function(t){for(var e=0,n=this.Zr;e<n.length;e++)if(n[e].Dr===t)return!0;return!1},t.prototype.rh=function(t){var e=this;return this.Eh().then((function(){e.Zr.sort((function(t,e){return t.Ur-e.Ur}));for(var n=0,r=e.Zr;n<r.length;n++){var i=r[n];if(i.zr(),"all"!==t&&i.Dr===t)break}return e.Eh()}))},t.prototype.wh=function(t){this.sh.push(t)},t.prototype.fh=function(t){var e=this.Zr.indexOf(t);this.Zr.splice(e,1)},t}();function We(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 Ge=function(){function t(t){this.Rh=t,this.buffer=new Ft(We),this.mh=0}return t.prototype.Ah=function(){return++this.mh},t.prototype.Ph=function(t){var e=[t,this.Ah()];if(this.buffer.size<this.Rh)this.buffer=this.buffer.add(e);else{var n=this.buffer.last();We(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}(),Ke={Vh:!1,gh:0,ph:0,yh:0},$e=function(){function t(t,e,n){this.bh=t,this.vh=e,this.Sh=n}return t.Dh=function(e){return new t(e,t.Ch,t.Fh)},t}();$e.Nh=-1,$e.kh=1048576,$e.$h=41943040,$e.Ch=10,$e.Fh=1e3,$e.Mh=new $e($e.$h,$e.Ch,$e.Fh),$e.DISABLED=new $e($e.Nh,0,0);var Xe=function(){function t(t,e){this.Lh=t,this.qr=e,this.xh=!1,this.Oh=null}return t.prototype.start=function(t){this.Lh.Bh.bh!==$e.Nh&&this.qh(t)},t.prototype.stop=function(){this.Oh&&(this.Oh.cancel(),this.Oh=null)},Object.defineProperty(t.prototype,"Uh",{get:function(){return null!==this.Oh},enumerable:!0,configurable:!0}),t.prototype.qh=function(t){var e=this,n=this.xh?3e5:6e4;ye("LruGarbageCollector","Garbage collection scheduled in "+n+"ms"),this.Oh=this.qr.Br("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.Oh=null,this.xh=!0,n.label=1;case 1:return n.trys.push([1,3,,7]),[4,t.Qh(this.Lh)];case 2:return n.sent(),[3,7];case 3:return"IndexedDbTransactionError"!==(e=n.sent()).name?[3,4]:(ye("LruGarbageCollector","Ignoring IndexedDB error during garbage collection: ",e),[3,6]);case 4:return[4,or(e)];case 5:n.sent(),n.label=6;case 6:return[3,7];case 7:return[4,this.qh(t)];case 8:return n.sent(),[2]}}))}))}))},t}(),Ye=function(){function t(t,e){this.Wh=t,this.Bh=e}return t.prototype.jh=function(t,e){return this.Wh.Kh(t).next((function(t){return Math.floor(e/100*t)}))},t.prototype.Gh=function(t,e){var n=this;if(0===e)return Re.resolve(Ue.vr);var r=new Ge(e);return this.Wh.js(t,(function(t){return r.Ph(t.sequenceNumber)})).next((function(){return n.Wh.zh(t,(function(t){return r.Ph(t)}))})).next((function(){return r.maxValue}))},t.prototype.Hh=function(t,e,n){return this.Wh.Hh(t,e,n)},t.prototype.Yh=function(t,e){return this.Wh.Yh(t,e)},t.prototype.Jh=function(t,e){var n=this;return this.Bh.bh===$e.Nh?(ye("LruGarbageCollector","Garbage collection skipped; disabled"),Re.resolve(Ke)):this.Xh(t).next((function(r){return r<n.Bh.bh?(ye("LruGarbageCollector","Garbage collection skipped; Cache size "+r+" is lower than threshold "+n.Bh.bh),Ke):n.Zh(t,e)}))},t.prototype.Xh=function(t){return this.Wh.Xh(t)},t.prototype.Zh=function(t,e){var n,r,i,o,s,u,c,l=this,f=Date.now();return this.jh(t,this.Bh.vh).next((function(e){return e>l.Bh.Sh?(ye("LruGarbageCollector","Capping sequence numbers to collect down to the maximum of "+l.Bh.Sh+" from "+e),r=l.Bh.Sh):r=e,o=Date.now(),l.Gh(t,r)})).next((function(r){return n=r,s=Date.now(),l.Hh(t,n,e)})).next((function(e){return i=e,u=Date.now(),l.Yh(t,n)})).next((function(t){return c=Date.now(),ve()<=a.LogLevel.DEBUG&&ye("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"),Re.resolve({Vh:!0,gh:r,ph:i,yh:t})}))},t}();function Je(t){for(var e="",n=0;n<t.length;n++)e.length>0&&(e=Ze(e)),e=Qe(t.get(n),e);return Ze(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 Ze(t){return t+"\x01\x01"}function tn(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 en=function(){function t(e){this.db=e,12.2===t.to(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.eo=function(e,n,r){return ye("SimpleDb","Opening database:",e),new Re((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){ye("SimpleDb",'Database "'+e+'" requires upgrade from version:',t.oldVersion);var n=t.target.result;r.createOrUpgrade(n,a.transaction,t.oldVersion,An).next((function(){ye("SimpleDb","Database upgrade to version "+An+" complete")}))}})).Bn()},t.delete=function(t){return ye("SimpleDb","Removing database:",t),sn(window.indexedDB.deleteDatabase(t)).Bn()},t.so=function(){if("undefined"==typeof window||null==window.indexedDB)return!1;if(t.io())return!0;if(void 0===window.navigator)return!1;var e=s.getUA(),n=t.to(e),r=0<n&&n<10,i=t.no(e),o=0<i&&i<4.5;return!(e.indexOf("MSIE ")>0||e.indexOf("Trident/")>0||e.indexOf("Edge/")>0||r||o)},t.io=function(){var t;return"undefined"!=typeof __PRIVATE_process&&"YES"===(null===(t=__PRIVATE_process.__PRIVATE_env)||void 0===t?void 0:t.ro)},t.ho=function(t,e){return t.store(e)},t.to=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.no=function(t){var e=t.match(/Android ([\d.]+)/i),n=e?e[1].split(".").slice(0,2).join("."):"-1";return Number(n)},t.prototype.oo=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=on.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),Re.reject(e)})).Bn(),u={},a.catch((function(){})),[4,t.ao];case 2:return[2,(u.value=(i.sent(),a),u)];case 3:return c=i.sent(),l="FirebaseError"!==c.name&&o<3,ye("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}(),nn=function(){function t(t){this.uo=t,this.co=!1,this._o=null}return Object.defineProperty(t.prototype,"Mn",{get:function(){return this.co},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"lo",{get:function(){return this._o},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cursor",{set:function(t){this.uo=t},enumerable:!0,configurable:!0}),t.prototype.done=function(){this.co=!0},t.prototype.do=function(t){this._o=t},t.prototype.delete=function(){return sn(this.uo.delete())},t}(),rn=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),on=function(){function t(t){var e=this;this.transaction=t,this.aborted=!1,this.fo=new ze,this.transaction.oncomplete=function(){e.fo.resolve()},this.transaction.onabort=function(){t.error?e.fo.reject(new rn(t.error)):e.fo.resolve()},this.transaction.onerror=function(t){var n=cn(t.target.error);e.fo.reject(new rn(n))}}return t.open=function(e,n,r){return new t(e.transaction(r,n))},Object.defineProperty(t.prototype,"ao",{get:function(){return this.fo.promise},enumerable:!0,configurable:!0}),t.prototype.abort=function(t){t&&this.fo.reject(t),this.aborted||(ye("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 an(e)},t}(),an=function(){function t(t){this.store=t}return t.prototype.put=function(t,e){var n;return void 0!==e?(ye("SimpleDb","PUT",this.store.name,t,e),n=this.store.put(e,t)):(ye("SimpleDb","PUT",this.store.name,"<auto-key>",t),n=this.store.put(t)),sn(n)},t.prototype.add=function(t){return ye("SimpleDb","ADD",this.store.name,t,t),sn(this.store.add(t))},t.prototype.get=function(t){var e=this;return sn(this.store.get(t)).next((function(n){return void 0===n&&(n=null),ye("SimpleDb","GET",e.store.name,t,n),n}))},t.prototype.delete=function(t){return ye("SimpleDb","DELETE",this.store.name,t),sn(this.store.delete(t))},t.prototype.count=function(){return ye("SimpleDb","COUNT",this.store.name),sn(this.store.count())},t.prototype.To=function(t,e){var n=this.cursor(this.options(t,e)),r=[];return this.Eo(n,(function(t,e){r.push(e)})).next((function(){return r}))},t.prototype.Io=function(t,e){ye("SimpleDb","DELETE ALL",this.store.name);var n=this.options(t,e);n.wo=!1;var r=this.cursor(n);return this.Eo(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.Eo(r,e)},t.prototype.mo=function(t){var e=this.cursor({});return new Re((function(n,r){e.onerror=function(t){var e=cn(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.Eo=function(t,e){var n=[];return new Re((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 nn(i),a=e(i.primaryKey,i.value,o);if(a instanceof Re){var s=a.catch((function(t){return o.done(),Re.reject(t)}));n.push(s)}o.Mn?r():null===o.lo?i.continue():i.continue(o.lo)}else r()}})).next((function(){return Re.Un(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.wo?n.openKeyCursor(t.range,e):n.openCursor(t.range,e)}return this.store.openCursor(t.range,e)},t}();function sn(t){return new Re((function(e,n){t.onsuccess=function(t){var n=t.target.result;e(n)},t.onerror=function(t){var e=cn(t.target.error);n(e)}}))}var un=!1;function cn(t){var e=en.to(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 un||(un=!0,setTimeout((function(){throw r}),0)),r}}return t}var ln=function(){function t(t,e,n,r){this.userId=t,this.serializer
2=e,this.rr=n,this.Ao=r,this.Po={}}return t.Vo=function(e,n,r,i){return Ee(""!==e.uid),new t(e.t()?e.uid:"",n,r,i)},t.prototype.po=function(t){var e=!0,n=IDBKeyRange.bound([this.userId,Number.NEGATIVE_INFINITY],[this.userId,Number.POSITIVE_INFINITY]);return pn(t).Ro({index:Rn.userMutationsIndex,range:n},(function(t,n,r){e=!1,r.done()})).next((function(){return e}))},t.prototype.yo=function(t,e,n){return this.bo(t).next((function(e){return e.lastStreamToken=n.toBase64(),vn(t).put(e)}))},t.prototype.vo=function(t){return this.bo(t).next((function(t){return A.fromBase64String(t.lastStreamToken)}))},t.prototype.So=function(t,e){return this.bo(t).next((function(n){return n.lastStreamToken=e.toBase64(),vn(t).put(n)}))},t.prototype.Do=function(t,e,n,r){var i=this,o=dn(t),a=pn(t);return a.add({}).next((function(s){Ee("number"==typeof s);for(var u=new Ne(s,e,n,r),c=i.serializer.Co(i.userId,u),l=[],f=new Ft((function(t,e){return ke(t.j(),e.j())})),h=0,p=r;h<p.length;h++){var d=p[h],v=Ln.key(i.userId,d.key.path,s);f=f.add(d.key.path.M()),l.push(a.put(c)),l.push(o.put(v,Ln.PLACEHOLDER))}return f.forEach((function(e){l.push(i.rr.Fo(t,e))})),t.er((function(){i.Po[s]=u.keys()})),Re.Un(l).next((function(){return u}))}))},t.prototype.No=function(t,e){var n=this;return pn(t).get(e).next((function(t){return t?(Ee(t.userId===n.userId),n.serializer.ko(t)):null}))},t.prototype.$o=function(t,e){var n=this;return this.Po[e]?Re.resolve(this.Po[e]):this.No(t,e).next((function(t){if(t){var r=t.keys();return n.Po[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 pn(t).Ro({index:Rn.userMutationsIndex,range:i},(function(t,e,i){e.userId===n.userId&&(Ee(e.batchId>=r),o=n.serializer.ko(e)),i.done()})).next((function(){return o}))},t.prototype.Lo=function(t){var e=IDBKeyRange.upperBound([this.userId,Number.POSITIVE_INFINITY]),n=-1;return pn(t).Ro({index:Rn.userMutationsIndex,range:e,reverse:!0},(function(t,e,r){n=e.batchId,r.done()})).next((function(){return n}))},t.prototype.xo=function(t){var e=this,n=IDBKeyRange.bound([this.userId,-1],[this.userId,Number.POSITIVE_INFINITY]);return pn(t).To(Rn.userMutationsIndex,n).next((function(t){return t.map((function(t){return e.serializer.ko(t)}))}))},t.prototype.or=function(t,e){var n=this,r=Ln.prefixForPath(this.userId,e.path),i=IDBKeyRange.lowerBound(r),o=[];return dn(t).Ro({range:i},(function(r,i,a){var s=r[0],u=r[1],c=r[2],l=tn(u);if(s===n.userId&&e.path.isEqual(l))return pn(t).get(c).next((function(t){if(!t)throw we();Ee(t.userId===n.userId),o.push(n.serializer.ko(t))}));a.done()})).next((function(){return o}))},t.prototype.lr=function(t,e){var n=this,r=new Ft(ke),i=[];return e.forEach((function(e){var o=Ln.prefixForPath(n.userId,e.path),a=IDBKeyRange.lowerBound(o),s=dn(t).Ro({range:a},(function(t,i,o){var a=t[0],s=t[1],u=t[2],c=tn(s);a===n.userId&&e.path.isEqual(c)?r=r.add(u):o.done()}));i.push(s)})),Re.Un(i).next((function(){return n.Oo(t,r)}))},t.prototype.Rr=function(t,e){var n=this,r=e.path,i=r.length+1,o=Ln.prefixForPath(this.userId,r),a=IDBKeyRange.lowerBound(o),s=new Ft(ke);return dn(t).Ro({range:a},(function(t,e,o){var a=t[0],u=t[1],c=t[2],l=tn(u);a===n.userId&&r.q(l)?l.length===i&&(s=s.add(c)):o.done()})).next((function(){return n.Oo(t,s)}))},t.prototype.Oo=function(t,e){var n=this,r=[],i=[];return e.forEach((function(e){i.push(pn(t).get(e).next((function(t){if(null===t)throw we();Ee(t.userId===n.userId),r.push(n.serializer.ko(t))})))})),Re.Un(i).next((function(){return r}))},t.prototype.Bo=function(t,e){var n=this;return hn(t.qo,this.userId,e).next((function(r){return t.er((function(){n.Uo(e.batchId)})),Re.forEach(r,(function(e){return n.Ao.Qo(t,e)}))}))},t.prototype.Uo=function(t){delete this.Po[t]},t.prototype.Wo=function(t){var e=this;return this.po(t).next((function(n){if(!n)return Re.resolve();var r=IDBKeyRange.lowerBound(Ln.prefixForUser(e.userId)),i=[];return dn(t).Ro({range:r},(function(t,n,r){if(t[0]===e.userId){var o=tn(t[1]);i.push(o)}else r.done()})).next((function(){Ee(0===i.length)}))}))},t.prototype.Fn=function(t,e){return fn(t,this.userId,e)},t.prototype.bo=function(t){var e=this;return vn(t).get(this.userId).next((function(t){return t||new jn(e.userId,-1,"")}))},t}();
2function fn(t,e,n){var r=Ln.prefixForPath(e,n.path),i=r[1],o=IDBKeyRange.lowerBound(r),a=!1;return dn(t).Ro({range:o,wo:!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 hn(t,e,n){var r=t.store(Rn.store),i=t.store(Ln.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=Ln.key(e,h.key.path,n.batchId);o.push(i.delete(p)),c.push(h.key)}return Re.Un(o).next((function(){return c}))}function pn(t){return Qn.ho(t,Rn.store)}function dn(t){return Qn.ho(t,Ln.store)}function vn(t){return Qn.ho(t,jn.store)}var mn=function(){function t(t){this.jo=t}return t.prototype.next=function(){return this.jo+=2,this.jo},t.Ko=function(){return new t(0)},t.Go=function(){return new t(-1)},t}(),yn=function(){function t(t,e){this.Ao=t,this.serializer=e}return t.prototype.zo=function(t){var e=this;return this.Ho(t).next((function(n){var r=new mn(n.highestTargetId);return n.highestTargetId=r.next(),e.Yo(t,n).next((function(){return n.highestTargetId}))}))},t.prototype.Jo=function(t){return this.Ho(t).next((function(t){return w.v(new b(t.lastRemoteSnapshotVersion.seconds,t.lastRemoteSnapshotVersion.nanoseconds))}))},t.prototype.Xo=function(t){return wn(t.qo)},t.prototype.Zo=function(t,e,n){var r=this;return this.Ho(t).next((function(i){return i.highestListenSequenceNumber=e,n&&(i.lastRemoteSnapshotVersion=n.C()),e>i.highestListenSequenceNumber&&(i.highestListenSequenceNumber=e),r.Yo(t,i)}))},t.prototype.ta=function(t,e){var n=this;return this.ea(t,e).next((function(){return n.Ho(t).next((function(r){return r.targetCount+=1,n.sa(e,r),n.Yo(t,r)}))}))},t.prototype.ia=function(t,e){return this.ea(t,e)},t.prototype.na=function(t,e){var n=this;return this.ra(t,e.targetId).next((function(){return gn(t).delete(e.targetId)})).next((function(){return n.Ho(t)})).next((function(e){return Ee(e.targetCount>0),e.targetCount-=1,n.Yo(t,e)}))},t.prototype.Hh=function(t,e,n){var r=this,i=0,o=[];return gn(t).Ro((function(a,s){var u=r.serializer.ha(s);u.sequenceNumber<=e&&null===n.get(u.targetId)&&(i++,o.push(r.na(t,u)))})).next((function(){return Re.Un(o)})).next((function(){return i}))},t.prototype.js=function(t,e){var n=this;return gn(t).Ro((function(t,r){var i=n.serializer.ha(r);e(i)}))},t.prototype.Ho=function(t){return bn(t.qo)},t.prototype.Yo=function(t,e){return(n=t,Qn.ho(n,Bn.store)).put(Bn.key,e);var n},t.prototype.ea=function(t,e){return gn(t).put(this.serializer.oa(e))},t.prototype.sa=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.aa=function(t){return this.Ho(t).next((function(t){return t.targetCount}))},t.prototype.ua=function(t,e){var n=this,r=e.canonicalId(),i=IDBKeyRange.bound([r,Number.NEGATIVE_INFINITY],[r,Number.POSITIVE_INFINITY]),o=null;return gn(t).Ro({range:i,index:Un.queryTargetsIndexName},(function(t,r,i){var a=n.serializer.ha(r);e.isEqual(a.target)&&(o=a,i.done())})).next((function(){return o}))},t.prototype.ca=function(t,e,n){var r=this,i=[],o=En(t);return e.forEach((function(e){var a=Je(e.path);i.push(o.put(new zn(n,a))),i.push(r.Ao.gn(t,e))})),Re.Un(i)},t.prototype._a=function(t,e,n){var r=this,i=En(t);return Re.forEach(e,(function(e){var o=Je(e.path);return Re.Un([i.delete([n,o]),r.Ao.yn(t,e)])}))},t.prototype.ra=function(t,e){var n=En(t),r=IDBKeyRange.bound([e],[e+1],!1,!0);return n.delete(r)},t.prototype.la=function(t,e){var n=IDBKeyRange.bound([e],[e+1],!1,!0),r=En(t),i=$t();return r.Ro({range:n,wo:!0},(function(t,e,n){var r=tn(t[1]),o=new I(r);i=i.add(o)})).next((function(){return i}))},t.prototype.Fn=function(t,e){var n=Je(e.path),r=IDBKeyRange.bound([n],[Se(n)],!1,!0),i=0;return En(t).Ro({index:zn.documentTargetsIndex,wo:!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 gn(t).get(e).next((function(t){return t?n.serializer.ha(t):null}))},t}();function gn(t){return Qn.ho(t,Un.store)}function bn(t){return en.ho(t,Bn.store).get(Bn.key).next((function(t){return Ee(null!==t),t}))}function wn(t){return bn(t).next((function(t){return t.highestListenSequenceNumber}))}function En(t){return Qn.ho(t,zn.store)}
2var Tn=function(){function t(t,e){this.serializer=t,this.rr=e}return t.prototype.Gn=function(t,e,n){return kn(t).put(In(e),n)},t.prototype.Hn=function(t,e){var n=kn(t),r=In(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.da(t,r)}))},t.prototype.Yn=function(t,e){var n=this;return kn(t).get(In(e)).next((function(t){return n.fa(t)}))},t.prototype.Ta=function(t,e){var n=this;return kn(t).get(In(e)).next((function(t){var e=n.fa(t);return e?{Ea:e,size:Sn(t)}:null}))},t.prototype.getEntries=function(t,e){var n=this,r=Bt();return this.Ia(t,e,(function(t,e){var i=n.fa(e);r=r.me(t,i)})).next((function(){return r}))},t.prototype.wa=function(t,e){var n=this,r=Bt(),i=new Lt(I.N);return this.Ia(t,e,(function(t,e){var o=n.fa(e);o?(r=r.me(t,o),i=i.me(t,Sn(e))):(r=r.me(t,null),i=i.me(t,0))})).next((function(){return{Ra:r,ma:i}}))},t.prototype.Ia=function(t,e,n){if(e.B())return Re.resolve();var r=IDBKeyRange.bound(e.first().path.W(),e.last().path.W()),i=e.be(),o=i.Ne();return kn(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.do(o.path.W()):r.done()})).next((function(){for(;o;)n(o,null),o=i.ke()?i.Ne():null}))},t.prototype.dr=function(t,e,n){var r=this,i=Ht(),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.Aa(n);a.range=IDBKeyRange.lowerBound([u,c],!0),a.index=Fn.collectionReadTimeIndex}return kn(t).Ro(a,(function(t,n,a){if(t.length===o){var s=r.serializer.Pa(n);e.path.q(s.key.path)?s instanceof gt&&e.matches(s)&&(i=i.me(s.key,s)):a.done()}})).next((function(){return i}))},t.prototype.Va=function(t,e){var n=this,r=zt(),i=this.serializer.Aa(e),o=kn(t),a=IDBKeyRange.lowerBound(i,!0);return o.Ro({index:Fn.readTimeIndex,range:a},(function(t,e){var o=n.serializer.Pa(e);r=r.me(o.key,o),i=e.readTime})).next((function(){return{ga:r,readTime:n.serializer.pa(i)}}))},t.prototype.ya=function(t){var e=this,n=kn(t),r=w.min();return n.Ro({index:Fn.readTimeIndex,reverse:!0},(function(t,n,i){n.readTime&&(r=e.serializer.pa(n.readTime)),i.done()})).next((function(){return r}))},t.prototype.ba=function(e){return new t.va(this,!!e&&e.Sa)},t.prototype.Da=function(t){return this.getMetadata(t).next((function(t){return t.byteSize}))},t.prototype.getMetadata=function(t){return xn(t).get(Vn.key).next((function(t){return Ee(!!t),t}))},t.prototype.da=function(t,e){return xn(t).put(Vn.key,e)},t.prototype.fa=function(t){if(t){var e=this.serializer.Pa(t);return e instanceof bt&&e.version.isEqual(w.min())?null:e}return null},t}();function xn(t){return Qn.ho(t,Vn.store)}function kn(t){return Qn.ho(t,Fn.store)}function In(t){return t.path.W()}function Sn(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}Tn.va=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).Ca=e,r.Sa=n,r.Fa=new Ae((function(t){return t.toString()})),r}return i.__extends(e,t),e.prototype.Zn=function(t){var e=this,n=[],r=0,i=new Ft((function(t,e){return ke(t.j(),e.j())}));return this.Wn.forEach((function(o,a){var s=e.Fa.get(o);if(a){var u=e.Ca.serializer.Na(a,e.readTime);i=i.add(o.path.M());var c=Sn(u);r+=c-s,n.push(e.Ca.Gn(t,o,u))}else if(r-=s,e.Sa){var l=e.Ca.serializer.Na(new bt(o,w.min()),e.readTime);n.push(e.Ca.Gn(t,o,l))}else n.push(e.Ca.Hn(t,o))})),i.forEach((function(r){n.push(e.Ca.rr.Fo(t,r))})),n.push(this.Ca.updateMetadata(t,r)),Re.Un(n)},e.prototype.Jn=function(t,e){var n=this;return this.Ca.Ta(t,e).next((function(t){return null===t?(n.Fa.set(e,0),null):(n.Fa.set(e,t.size),t.Ea)}))},e.prototype.Xn=function(t,e){var n=this;return this.Ca.wa(t,e).next((function(t){var e=t.Ra;return t.ma.forEach((function(t,e){n.Fa.set(t,e)})),e}))},e}(Le);var _n=function(){function t(){this.ka=new On}return t.prototype.Fo=function(t,e){return this.ka.add(e),Re.resolve()},t.prototype.wr=function(t,e){return Re.resolve(this.ka.getEntries(e))},t}(),On=function(){function t(){this.index={}}return t.prototype.add=function(t){var e=t.O(),n=t.M(),r=this.index[e]||new Ft(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 Ft(T.N)).W()},t}
2(),An=10,Nn=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<=An);var o=new on(e);n<1&&r>=1&&(function(t){t.createObjectStore(Pn.store)}(t),function(t){t.createObjectStore(jn.store,{keyPath:jn.keyPath}),t.createObjectStore(Rn.store,{keyPath:Rn.keyPath,autoIncrement:!0}).createIndex(Rn.userMutationsIndex,Rn.userMutationsKeyPath,{unique:!0}),t.createObjectStore(Ln.store)}(t),Hn(t),function(t){t.createObjectStore(Fn.store)}(t));var a=Re.resolve();return n<3&&r>=3&&(0!==n&&(function(t){t.deleteObjectStore(zn.store),t.deleteObjectStore(Un.store),t.deleteObjectStore(Bn.store)}(t),Hn(t)),a=a.next((function(){return function(t){var e=t.store(Bn.store),n=new Bn(0,0,w.min().C(),0);return e.put(Bn.key,n)}(o)}))),n<4&&r>=4&&(0!==n&&(a=a.next((function(){return function(t,e){return e.store(Rn.store).To().next((function(n){t.deleteObjectStore(Rn.store),t.createObjectStore(Rn.store,{keyPath:Rn.keyPath,autoIncrement:!0}).createIndex(Rn.userMutationsIndex,Rn.userMutationsKeyPath,{unique:!0});var r=e.store(Rn.store),i=n.map((function(t){return r.put(t)}));return Re.Un(i)}))}(t,o)}))),a=a.next((function(){!function(t){t.createObjectStore(Wn.store,{keyPath:Wn.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(Vn.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(Fn.store);e.createIndex(Fn.readTimeIndex,Fn.readTimeIndexPath,{unique:!1}),e.createIndex(Fn.collectionReadTimeIndex,Fn.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(Fn.store).Ro((function(t,n){e+=Sn(n)})).next((function(){var n=new Vn(e);return t.store(Vn.store).put(Vn.key,n)}))},t.prototype.removeAcknowledgedMutations=function(t){var e=this,n=t.store(jn.store),r=t.store(Rn.store);return n.To().next((function(n){return Re.forEach(n,(function(n){var i=IDBKeyRange.bound([n.userId,-1],[n.userId,n.lastAcknowledgedBatchId]);return r.To(Rn.userMutationsIndex,i).next((function(r){return Re.forEach(r,(function(r){Ee(r.userId===n.userId);var i=e.serializer.ko(r);return hn(t,n.userId,i).next((function(){}))}))}))}))}))},t.prototype.ensureSequenceNumbers=function(t){var e=t.store(zn.store),n=t.store(Fn.store);return wn(t).next((function(t){var r=[];return n.Ro((function(n,i){var o=new T(n),a=function(t){return[0,Je(t)]}(o);r.push(e.get(a).next((function(n){return n?Re.resolve():function(n){return e.put(new zn(0,Je(n),t))}(o)})))})).next((function(){return Re.Un(r)}))}))},t.prototype.createCollectionParentIndex=function(t,e){t.createObjectStore(qn.store,{keyPath:qn.keyPath});var n=e.store(qn.store),r=new On,i=function(t){if(r.add(t)){var e=t.O(),i=t.M();return n.put({collectionId:e,parent:Je(i)})}};return e.store(Fn.store).Ro({wo:!0},(function(t,e){var n=new T(t);return i(n.M())})).next((function(){return e.store(Ln.store).Ro({wo:!0},(function(t,e){t[0];var n=t[1],r=(t[2],tn(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.ha(r),o=e.serializer.oa(i);return n.put(o)}))},t}(),Cn=function(t,e){this.seconds=t,this.nanoseconds=e},Pn=function(t,e,n){this.ownerId=t,this.allowTabSynchronization=e,this.leaseTimestampMs=n};Pn.store="owner",Pn.key="owner";var jn=function(t,e,n){this.userId=t,this.lastAcknowledgedBatchId=e,this.lastStreamToken=n};jn.store="mutationQueues",jn.keyPath="userId";var Rn=function(t,e,n,r,i){this.userId=t,this.batchId=e,this.localWriteTimeMs=n,this.baseMutations=r,this.mutations=i};Rn.store="mutations",Rn.keyPath="batchId",Rn.userMutationsIndex="userMutationsIndex",Rn.userMutationsKeyPath=["userId","batchId"];var Ln=function(){function t(){}return t.prefixForUser=function(t){return[t]},t.prefixForPath=function(t,e){return[t,Je(e)]},t.key=function(t,e,n){return[t,Je(e),n]},t}();Ln.store="documentMutations",Ln.PLACEHOLDER=new Ln;var Dn=function(t,e){this.path=t,this.readTime=e},Mn=function(t,e){this.path=t,this.version=e},Fn=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};Fn.store="remoteDocuments",Fn.readTimeIndex="readTimeIndex",Fn.readTimeIndexPath="readTime",Fn.collectionReadTimeIndex="collectionReadTimeIndex",Fn.collectionReadTimeIndexPath=["parentPath","readTime"];var Vn=function(t){this.byteSize=t};Vn.store="remoteDocumentGlobal",Vn.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 zn=function(t,e,n){this.targetId=t,this.path=e,this.sequenceNumber=n};zn.store="targetDocuments",zn.keyPath=["targetId","path"],zn.documentTargetsIndex="documentTargetsIndex",zn.documentTargetsKeyPath=["path","targetId"];var Bn=function(t,e,n,r){this.highestTargetId=t,this.highestListenSequenceNumber=e,this.lastRemoteSnapshotVersion=n,this.targetCount=r};Bn.key="targetGlobalKey",Bn.store="targetGlobal";var qn=function(t,e){this.collectionId=t,this.parent=e};function Hn(t){t.createObjectStore(zn.store,{keyPath:zn.keyPath}).createIndex(zn.documentTargetsIndex,zn.documentTargetsKeyPath,{unique:!0}),t.createObjectStore(Un.store,{keyPath:Un.keyPath}).createIndex(Un.queryTargetsIndexName,Un.queryTargetsKeyPath,{unique:!0}),t.createObjectStore(Bn.store)}qn.store="collectionParents",qn.keyPath=["collectionId","parent"];var Wn=function(t,e,n,r){this.clientId=t,this.updateTimeMs=e,this.networkEnabled=n,this.inForeground=r};Wn.store="clientMetadata",Wn.keyPath="clientId";var Gn=i.__spreadArrays(i.__spreadArrays(i.__spreadArrays([jn.store,Rn.store,Ln.store,Fn.store,Un.store,Pn.store,Bn.store,zn.store],[Wn.store]),[Vn.store]),[qn.store]),Kn=function(){function t(){this.$a=new On}return t.prototype.Fo=function(t,e){var n=this;if(!this.$a.has(e)){var r=e.O(),i=e.M();t.er((function(){n.$a.add(e)}));var o={collectionId:r,parent:Je(i)};return $n(t).put(o)}return Re.resolve()},t.prototype.wr=function(t,e){var n=[],r=IDBKeyRange.bound([e,""],[Se(e),""],!1,!0);return $n(t).To(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(tn(o.parent))}return n}))},t}();function $n(t){return Qn.ho(t,qn.store)}var Xn=function(){function t(t){this.Ma=t}return t.prototype.Pa=function(t){if(t.document)return this.Ma.Ai(t.document,!!t.hasCommittedMutations);if(t.noDocument){var e=I.st(t.noDocument.path),n=this.La(t.noDocument.readTime);return new bt(e,n,{hasCommittedMutations:!!t.hasCommittedMutations})}if(t.unknownDocument){var r=I.st(t.unknownDocument.path),i=this.La(t.unknownDocument.version);return new wt(r,i)}return we()},t.prototype.Na=function(t,e){var n=this.Aa(e),r=t.key.path.M().W();if(t instanceof gt){var i=this.Ma.mi(t),o=t.hasCommittedMutations;return new Fn(null,null,i,o,n,r)}if(t instanceof bt){var a=t.key.path.W(),s=this.xa(t.version),u=t.hasCommittedMutations;return new Fn(null,new Dn(a,s),null,u,n,r)}if(t instanceof wt){var c=t.key.path.W(),l=this.xa(t.version);
2return new Fn(new Mn(c,l),null,null,!0,n,r)}return we()},t.prototype.Aa=function(t){var e=t.C();return[e.seconds,e.nanoseconds]},t.prototype.pa=function(t){var e=new b(t[0],t[1]);return w.v(e)},t.prototype.xa=function(t){var e=t.C();return new Cn(e.seconds,e.nanoseconds)},t.prototype.La=function(t){var e=new b(t.seconds,t.nanoseconds);return w.v(e)},t.prototype.Co=function(t,e){var n=this,r=e.baseMutations.map((function(t){return n.Ma.vi(t)})),i=e.mutations.map((function(t){return n.Ma.vi(t)}));return new Rn(t,e.batchId,e.Tn.toMillis(),r,i)},t.prototype.ko=function(t){var e=this,n=(t.baseMutations||[]).map((function(t){return e.Ma.Fi(t)})),r=t.mutations.map((function(t){return e.Ma.Fi(t)})),i=b.fromMillis(t.localWriteTimeMs);return new Ne(t.batchId,i,n,r)},t.prototype.ha=function(t){var e,n=this.La(t.readTime),r=void 0!==t.lastLimboFreeSnapshotVersion?this.La(t.lastLimboFreeSnapshotVersion):w.min();return e=void 0!==t.query.documents?this.Ma.Oi(t.query):this.Ma.Wi(t.query),new Ct(e,t.targetId,0,t.lastListenSequenceNumber,n,r,A.fromBase64String(t.resumeToken))},t.prototype.oa=function(t){var e,n=this.xa(t.Ee),r=this.xa(t.lastLimboFreeSnapshotVersion);e=t.target.xt()?this.Ma.xi(t.target):this.Ma.Bi(t.target);var i=t.resumeToken.toBase64();return new Un(t.targetId,t.target.canonicalId(),n,i,t.sequenceNumber,r,e)},t}(),Yn="Another tab has exclusive access to the persistence layer. To allow shared access, make sure to invoke `enablePersistence()` with `synchronizeTabs:true` in all tabs.",Jn=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).qo=e,r.Oa=n,r}return i.__extends(e,t),e}(Me),Qn=function(){function t(e,n,r,i,o,a,s,u){if(this.allowTabSynchronization=e,this.persistenceKey=n,this.clientId=r,this.Sr=a,this.Ba=u,this.qa=!1,this.isPrimary=!1,this.networkEnabled=!0,this.Ua=null,this.inForeground=!1,this.Qa=null,this.Wa=null,this.ja=Number.NEGATIVE_INFINITY,this.Ka=function(t){return Promise.resolve()},!t.so())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.Ao=new er(this,o),this.Ga=n+t.za,this.serializer=new Xn(s),this.document=i.document,this.Ha=new yn(this.Ao,this.serializer),this.rr=new Kn,this.ir=new Tn(this.serializer,this.rr),!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.Ya=this.window.localStorage}return t.ho=function(t,e){if(t instanceof Jn)return en.ho(t.qo,e);throw we()},t.prototype.start=function(){var t=this;return en.eo(this.Ga,An,new Nn(this.serializer)).then((function(e){return t.Ja=e,t.Xa()})).then((function(){return t.Za(),t.tu(),t.eu(),t.Ja.runTransaction("readonly",[Bn.store],(function(t){return wn(t)}))})).then((function(e){t.su=new Ue(e,t.Ba)})).then((function(){t.qa=!0})).catch((function(e){return t.Ja&&t.Ja.close(),Promise.reject(e)}))},t.prototype.iu=function(t){var e=this;return this.Ka=function(n){return i.__awaiter(e,void 0,void 0,(function(){return i.__generator(this,(function(e){return this.Uh?[2,t(n)]:[2]}))}))},t(this.isPrimary)},t.prototype.nu=function(t){var e=this;this.Ja.oo((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.ru=function(t){var e=this;this.networkEnabled!==t&&(this.networkEnabled=t,this.Sr.Hr((function(){return i.__awaiter(e,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.Uh?[4,this.Xa()]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))})))},t.prototype.Xa=function(){var t=this;return this.Ja.runTransaction("readwrite",Gn,(function(e){return tr(e).put(new Wn(t.clientId,Date.now(),t.networkEnabled,t.inForeground)).next((function(){if(t.isPrimary)return t.hu(e).next((function(e){e||(t.isPrimary=!1,t.Sr.Hr((function(){return t.Ka(!1)})))}))})).next((function(){return t.ou(e)})).next((function(n){return t.isPrimary&&!n?t.au(e).next((function(){return!1})):!!n&&t.uu(e).next((function(){return!0}))}))})).catch((function(e){if(!t.allowTabSynchronization)throw e;return ye("IndexedDbPersistence","Releasing owner lease after error during lease refresh",e),!1})).then((function(e){t.isPrimary!==e&&t.Sr.Hr((function(){return t.Ka(e)})),t.isPrimary=e}))},t.prototype.hu=function(t){var e=this;return Zn(t).get(Pn.key).next((function(t){return Re.resolve(e.cu(t))}))},t.prototype._u=function(t){return tr(t).delete(this.clientId)},t.prototype.lu=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.du(this.ja,18e5)?[3,2]:(this.ja=Date.now(),[4,this.runTransaction("maybeGarbageCollectMultiClientState","readwrite-primary",(function(n){var r=t.ho(n,Wn.store);return r.To().next((function(t){var n=e.fu(t,18e5),i=t.filter((function(t){return-1===n.indexOf(t)}));return Re.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.Tu(t.clientId))})),n.label=2;case 2:return[2]}}
2))}))},t.prototype.eu=function(){var t=this;this.Wa=this.Sr.Br("client_metadata_refresh",4e3,(function(){return t.Xa().then((function(){return t.lu()})).then((function(){return t.eu()}))}))},t.prototype.cu=function(t){return!!t&&t.ownerId===this.clientId},t.prototype.ou=function(t){var e=this;return Zn(t).get(Pn.key).next((function(n){if(null!==n&&e.du(n.leaseTimestampMs,5e3)&&!e.Eu(n.ownerId)){if(e.cu(n)&&e.networkEnabled)return!0;if(!e.cu(n)){if(!n.allowTabSynchronization)throw new p(h.FAILED_PRECONDITION,Yn);return!1}}return!(!e.networkEnabled||!e.inForeground)||tr(t).To().next((function(t){return void 0===e.fu(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&&ye("IndexedDbPersistence","Client "+(t?"is":"is not")+" eligible for a primary lease."),t}))},t.prototype.Iu=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.qa=!1,this.wu(),this.Wa&&(this.Wa.cancel(),this.Wa=null),this.Ru(),this.mu(),[4,this.Ja.runTransaction("readwrite",[Pn.store,Wn.store],(function(e){return t.au(e).next((function(){return t._u(e)}))}))];case 1:return e.sent(),this.Ja.close(),this.Au(),[2]}}))}))},t.prototype.fu=function(t,e){var n=this;return t.filter((function(t){return n.du(t.updateTimeMs,e)&&!n.Eu(t.clientId)}))},t.prototype.Pu=function(){var t=this;return this.Ja.runTransaction("readonly",[Wn.store],(function(e){return tr(e).To().next((function(e){return t.fu(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.so()?(n=e+t.za,[4,en.delete(n)]):[2,Promise.resolve()];case 1:return r.sent(),[2]}}))}))},Object.defineProperty(t.prototype,"Uh",{get:function(){return this.qa},enumerable:!0,configurable:!0}),t.prototype.Vu=function(t){return ln.Vo(t,this.serializer,this.rr,this.Ao)},t.prototype.gu=function(){return this.Ha},t.prototype.pu=function(){return this.ir},t.prototype.yu=function(){return this.rr},t.prototype.runTransaction=function(t,e,n){var r=this;ye("IndexedDbPersistence","Starting transaction:",t);var i,o="readonly"===e?"readonly":"readwrite";return this.Ja.runTransaction(o,Gn,(function(o){return i=new Jn(o,r.su.next()),"readwrite-primary"===e?r.hu(o).next((function(t){return!!t||r.ou(o)})).next((function(e){if(!e)throw ge("Failed to obtain primary lease for action '"+t+"'."),r.isPrimary=!1,r.Sr.Hr((function(){return r.Ka(!1)})),new p(h.FAILED_PRECONDITION,De);return n(i)})).next((function(t){return r.uu(o).next((function(){return t}))})):r.bu(o).next((function(){return n(i)}))})).then((function(t){return i.sr(),t}))},t.prototype.bu=function(t){var e=this;return Zn(t).get(Pn.key).next((function(t){if(null!==t&&e.du(t.leaseTimestampMs,5e3)&&!e.Eu(t.ownerId)&&!e.cu(t)&&!t.allowTabSynchronization)throw new p(h.FAILED_PRECONDITION,Yn)}))},t.prototype.uu=function(t){var e=new Pn(this.clientId,this.allowTabSynchronization,Date.now());return Zn(t).put(Pn.key,e)},t.so=function(){return en.so()},t.vu=function(t){var e=t.ii.projectId;return t.ii.ln||(e+="."+t.ii.database),"firestore/"+t.persistenceKey+"/"+e+"/"},t.prototype.au=function(t){var e=this,n=Zn(t);return n.get(Pn.key).next((function(t){return e.cu(t)?(ye("IndexedDbPersistence","Releasing primary lease."),n.delete(Pn.key)):Re.resolve()}))},t.prototype.du=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.Za=function(){var t=this;null!==this.document&&"function"==typeof this.document.addEventListener&&(this.Qa=function(){t.Sr.Hr((function(){return t.inForeground="visible"===t.document.visibilityState,t.Xa()}))},this.document.addEventListener("visibilitychange",this.Qa),this.inForeground="visible"===this.document.visibilityState)},t.prototype.Ru=function(){this.Qa&&(this.document.removeEventListener("visibilitychange",this.Qa),this.Qa=null)},t.prototype.tu=function(){var t=this;"function"==typeof this.window.addEventListener&&(this.Ua=function(){t.wu(),t.Sr.Hr((function(){return t.Iu()}))},this.window.addEventListener("unload",this.Ua))},t.prototype.mu=function(){this.Ua&&(this.window.removeEventListener("unload",this.Ua),this.Ua=null)},t.prototype.Eu=function(t){try{var e=null!==this.Ya.getItem(this.Tu(t));return ye("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.wu=function(){try{this.Ya.setItem(this.Tu(this.clientId),String(Date.now()))}catch(t){ge("Failed to set zombie client id.",t)}},t.prototype.Au=function(){try{this.Ya.removeItem(this.Tu(this.clientId))}catch(t){}},t.prototype.Tu=function(t){return"firestore_zombie_"+this.persistenceKey+"_"+t},t}();function Zn(t){return t.store(Pn.store)}function tr(t){return t.store(Wn.store)}Qn.za="main";var er=function(){function t(t,e){this.db=t,this.Su=null,this.Lh=new Ye(this,e)}return t.prototype.Kh=function(t){var e=this.Du(t);return this.db.gu().aa(t).next((function(t){return e.next((function(e){return t+e}))}))},t.prototype.Du=function(t){var e=0;return this.zh(t,(function(t){e++})).next((function(){return e}))},t.prototype.js=function(t,e){return this.db.gu().js(t,e)},t.prototype.zh=function(t,e){return this.Cu(t,(function(t,n){return e(n)}))},t.prototype.Fu=function(t){this.Su=t},t.prototype.gn=function(t,e){return nr(t,e)},t.prototype.yn=function(t,e){return nr(t,e)},t.prototype.Hh=function(t,e,n){return this.db.gu().Hh(t,e,n)},t.prototype.Qo=function(t,e){return nr(t,e)},t.prototype.Nu=function(t,e){return this.Su.Fn(e)?Re.resolve(!0):function(t,e){var n=!1;return vn(t).mo((function(r){return fn(t,r,e).next((function(t){return t&&(n=!0),Re.resolve(!t)}))})).next((function(){return n}))}(t,e)},t.prototype.Yh=function(t,e){var n=this,r=this.db.pu().ba(),i=[],o=0;return this.Cu(t,(function(a,s){if(s<=e){var u=n.Nu(t,a).next((function(e){if(!e)return o++,r.Yn(t,a).next((function(){return r.Hn(a),En(t).delete([0,Je(a.path)])}))}));i.push(u)}})).next((function(){return Re.Un(i)})).next((function(){return r.apply(t)})).next((function(){return o}
2))},t.prototype.removeTarget=function(t,e){var n=e.Ie(t.Oa);return this.db.gu().ia(t,n)},t.prototype.ku=function(t,e){return nr(t,e)},t.prototype.Cu=function(t,e){var n,r=En(t),i=Ue.vr;return r.Ro({index:zn.documentTargetsIndex},(function(t,r){var o=t[0],a=(t[1],r.path),s=r.sequenceNumber;0===o?(i!==Ue.vr&&e(new I(tn(n)),i),i=s,n=a):i=Ue.vr})).next((function(){i!==Ue.vr&&e(new I(tn(n)),i)}))},t.prototype.Xh=function(t){return this.db.pu().Da(t)},t}();function nr(t,e){return En(t).put(function(t,e){return new zn(0,Je(t.path),e)}(e,t.Oa))}var rr=function(){function t(t,e,n){this.persistence=t,this.$u=e,this.Mu=new Pe,this.Lu=new Lt(ke),this.xu=new Ae((function(t){return t.canonicalId()})),this.Ou=w.min(),this.persistence.Ao.Fu(this.Mu),this.nr=t.Vu(n),this.Bu=t.pu(),this.Ha=t.gu(),this.qu=new Fe(this.Bu,this.nr,this.persistence.yu()),this.$u.Uu(this.qu)}return t.prototype.start=function(){return Promise.resolve()},t.prototype.Qu=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.nr,n=this.qu,[4,this.persistence.runTransaction("Handle user change","readonly",(function(r){var i;return o.nr.xo(r).next((function(a){return i=a,e=o.persistence.Vu(t),n=new Fe(o.Bu,e,o.persistence.yu()),e.xo(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 m=0,y=v.mutations;m<y.length;m++){var g=y[m];a=a.add(g.key)}}return n.cr(r,a).next((function(t){return{Wu:t,ju:e,Ku:o}}))}))}))];case 1:return r=i.sent(),[2,(this.nr=e,this.qu=n,this.$u.Uu(this.qu),r)]}}))}))},t.prototype.Gu=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.qu.cr(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.nr.Do(o,r,a,t)}))})).then((function(t){var n=t.In(e);return{batchId:t.batchId,Wn:n}}))},t.prototype.yo=function(t){var e=this;return this.persistence.runTransaction("Acknowledge batch","readwrite-primary",(function(n){var r=t.batch.keys(),i=e.Bu.ba({Sa:!0});return e.nr.yo(n,t.batch,t.streamToken).next((function(){return e.zu(n,t,i)})).next((function(){return i.apply(n)})).next((function(){return e.nr.Wo(n)})).next((function(){return e.qu.cr(n,r)}))}))},t.prototype.Hu=function(t){var e=this;return this.persistence.runTransaction("Reject batch","readwrite-primary",(function(n){var r;return e.nr.No(n,t).next((function(t){return Ee(null!==t),r=t.keys(),e.nr.Bo(n,t)})).next((function(){return e.nr.Wo(n)})).next((function(){return e.qu.cr(n,r)}))}))},t.prototype.Lo=function(){var t=this;return this.persistence.runTransaction("Get highest unacknowledged batch id","readonly",(function(e){return t.nr.Lo(e)}))},t.prototype.vo=function(){var t=this;return this.persistence.runTransaction("Get last stream token","readonly",(function(e){return t.nr.vo(e)}))},t.prototype.So=function(t){var e=this;return this.persistence.runTransaction("Set last stream token","readwrite-primary",(function(n){return e.nr.So(n,t)}))},t.prototype.Jo=function(){var t=this;return this.persistence.runTransaction("Get last remote snapshot version","readonly",(function(e){return t.Ha.Jo(e)}))},t.prototype.Yu=function(e){var n=this,r=e.Ee,i=this.Lu;return this.persistence.runTransaction("Apply remote event","readwrite-primary",(function(o){var a=n.Bu.ba({Sa:!0});i=n.Lu;var s=[];e.as.forEach((function(e,a){var u=i.get(a);if(u){s.push(n.Ha._a(o,e.Is,a).next((function(){return n.Ha.ca(o,e.Ts,a)})));var c=e.resumeToken;if(c.rt()>0){var l=u.we(c,r).Ie(o.Oa);i=i.me(a,l),t.Ju(u,l,e)&&s.push(n.Ha.ia(o,l))}}}));var u=zt(),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.Hn(i,r),u=u.me(i,c)):null==l||c.version.S(l.version)>0||0===c.version.S(l.version)&&l.hasPendingWrites?(a.Gn(c,r),u=u.me(i,c)):ye("LocalStore","Ignoring outdated watch update for ",i,". Current version:",l.version," Watch version:",c.version),e._s.has(i)&&s.push(n.persistence.Ao.ku(o,i))}))}))),!r.isEqual(w.min())){var l=n.Ha.Jo(o).next((function(t){return n.Ha.Zo(o,o.Oa,r)}));s.push(l)}return Re.Un(s).next((function(){return a.apply(o)})).next((function(){return n.qu._r(o,u)}))})).then((function(t){return n.Lu=i,t}))},t.Ju=function(t,e,n){return Ee(e.resumeToken.rt()>0),0===t.resumeToken.rt()||e.Ee.D()-t.Ee.D()>=this.Xu||n.Ts.size+n.Es.size+n.Is.size>0},t.prototype.Zu=function(t){for(var e=this,n=0,r=t;n<r.length;n++){var i=r[n],o=i.targetId;if(this.Mu.pn(i.Ar,o),this.Mu.vn(i.Pr,o),!i.fromCache){var a=this.Lu.get(o),s=a.Ee,u=a.Re(s);this.Lu=this.Lu.me(o,u)}}return this.persistence.runTransaction("notifyLocalViewChanges","readwrite",(function(n){return Re.forEach(t,(function(t){return Re.forEach(t.Pr,(function(t){return e.persistence.Ao.yn(n,t)}))}))}))},t.prototype.tc=function(t){var e=this;return this.persistence.runTransaction("Get next mutation batch","readonly",(function(n){return void 0===t&&(t=-1),e.nr.Mo(n,t)}))},t.prototype.ec=function(t){var e=this;return this.persistence.runTransaction("read document","readonly",(function(n){return e.qu.hr(n,t)}))},t.prototype.sc=function(t){var e=this;return this.persistence.runTransaction("Allocate target","readwrite",(function(n){var r;return e.Ha.ua(n,t).next((function(i){return i?(r=i,Re.resolve(r)):e.Ha.zo(n).next((function(i){return r=new Ct
2(t,i,0,n.Oa),e.Ha.ta(n,r).next((function(){return r}))}))}))})).then((function(n){return null===e.Lu.get(n.targetId)&&(e.Lu=e.Lu.me(n.targetId,n),e.xu.set(t,n.targetId)),n}))},t.prototype.ua=function(t,e){var n=this.xu.get(e);return void 0!==n?Re.resolve(this.Lu.get(n)):this.Ha.ua(t,e)},t.prototype.ic=function(t,e){var n=this,r=this.Lu.get(t),i=e?"readwrite":"readwrite-primary";return this.persistence.runTransaction("Release target",i,(function(i){var o=n.Mu.Sn(t);return e?Re.resolve():Re.forEach(o,(function(t){return n.persistence.Ao.yn(i,t)})).next((function(){n.persistence.Ao.removeTarget(i,r)}))})).then((function(){n.Lu=n.Lu.remove(t),n.xu.delete(r.target)}))},t.prototype.nc=function(t,e){var n=this,r=w.min(),i=$t();return this.persistence.runTransaction("Execute query","readonly",(function(o){return n.ua(o,t.ee()).next((function(t){if(t)return r=t.lastLimboFreeSnapshotVersion,n.Ha.la(o,t.targetId).next((function(t){i=t}))})).next((function(){return n.$u.dr(o,t,e?r:w.min(),e?i:$t())})).next((function(t){return{documents:t,rc:i}}))}))},t.prototype.hc=function(t){var e=this;return this.persistence.runTransaction("Remote document keys","readonly",(function(n){return e.Ha.la(n,t)}))},t.prototype.zu=function(t,e,n){var r=this,i=e.batch,o=i.keys(),a=Re.resolve();return o.forEach((function(r){a=a.next((function(){return n.Yn(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.Gn(o,e.wn)}))})),a.next((function(){return r.nr.Bo(t,i)}))},t.prototype.Qh=function(t){var e=this;return this.persistence.runTransaction("Collect garbage","readwrite-primary",(function(n){return t.Jh(n,e.Lu)}))},t}();rr.Xu=3e8;var ir=function(t){function e(e,n,r){var i=this;return(i=t.call(this,e,n,r)||this).persistence=e,i.nr=e.Vu(r),i.Bu=e.pu(),i.Ha=e.gu(),i}return i.__extends(e,t),e.prototype.start=function(){return this.oc()},e.prototype.ac=function(t){var e=this;return this.persistence.runTransaction("Lookup mutation documents","readonly",(function(n){return e.nr.$o(n,t).next((function(t){return t?e.qu.cr(n,t):Re.resolve(null)}))}))},e.prototype.uc=function(t){this.nr.Uo(t)},e.prototype.ru=function(t){this.persistence.ru(t)},e.prototype.Pu=function(){return this.persistence.Pu()},e.prototype.cc=function(t){var e=this,n=this.Lu.get(t);return n?Promise.resolve(n.target):this.persistence.runTransaction("Get target data","readonly",(function(n){return e.Ha.si(n,t).next((function(t){return t?t.target:null}))}))},e.prototype.Va=function(){var t=this;return this.persistence.runTransaction("Get new document changes","readonly",(function(e){return t.Bu.Va(e,t.Ou)})).then((function(e){var n=e.ga,r=e.readTime;return t.Ou=r,n}))},e.prototype.oc=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.Bu.ya(t)}))];case 1:return t.Ou=n.sent(),[2]}}))}))},e}(rr);function or(t){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){if(t.code!==h.FAILED_PRECONDITION||t.message!==De)throw t;return ye("LocalStore","Unexpectedly lost primary lease"),[2]}))}))}function ar(t,e){if(0!==e.length)throw new p(h.INVALID_ARGUMENT,"Function "+t+"() does not support arguments, but was called with "+xr(e.length,"argument")+".")}function sr(t,e,n){if(e.length!==n)throw new p(h.INVALID_ARGUMENT,"Function "+t+"() requires "+xr(n,"argument")+", but was called with "+xr(e.length,"argument")+".")}function ur(t,e,n){if(e.length<n)throw new p(h.INVALID_ARGUMENT,"Function "+t+"() requires at least "+xr(n,"argument")+", but was called with "+xr(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 "+xr(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(yr(u))}var c=yr(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?mr(r):"non-empty string"===e?"string"==typeof r&&""!==r:typeof r===e)){var i=yr(r);throw new p(h.INVALID_ARGUMENT,"Function "+t+"() requires its "+n+" to be of type "+e+", but it was: "+i)}}function mr(t){return"object"==typeof t&&null!==t&&(Object.getPrototypeOf(t)===Object.prototype||null===Object.getPrototypeOf(t))}function yr(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){_(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=yr(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 xr(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()._c)throw new p(h.UNIMPLEMENTED,"Blobs are unavailable in Firestore in this environment.")}var Sr=function(){function t(t){Ir(),this.lc=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.lc.toBase64()},t.prototype.toUint8Array=function(){return sr("Blob.toUint8Array",arguments,0),kr(),this.lc.toUint8Array()},t.prototype.toString=function(){return"Blob(base64: "+this.toBase64()+")"},t.prototype.isEqual=function(t){return this.lc.isEqual(t.lc)},t}(),_r=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 "+xr(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.dc=new k(t)}return t.documentId=function(){return t.fc},t.prototype.isEqual=function(e){if(!(e instanceof t))throw wr("isEqual","FieldPath",1,e);return this.dc.isEqual(e.dc)},t}();_r.fc=new _r(k.J().j());var Or=new RegExp("[~\\*/\\[\\]]"),Ar=function(t){this.Tc=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.Ec)throw 1===t.Ec?t.Ic("FieldValue.delete() can only appear at the top level of your update data"):t.Ic("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,J.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).wc=e,n}return i.__extends(e,t),e.prototype.Di=function(t){var e=t.Rc({Ec:3,methodName:this.Tc}),n=this.wc.map((function(t,n){return Br(t,e.mc(n))})),r=new Q(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.arrayRemove")||this).wc=e,n}return i.__extends(e,t),e.prototype.Di=function(t){var e=t.Rc({Ec:3,methodName:this.Tc}),n=this.wc.map((function(t,n){return Br(t,e.mc(n))})),r=new Z(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.increment")||this).Ac=e,n}return i.__extends(e,t),e.prototype.Di=function(t){t.Rc({methodName:this.Tc});var e=Br(this.Ac,t),n=new tt(t.serializer,e);return new rt(t.path,n)},e.prototype.isEqual=function(t){return this===t},e}(Ar),Lr=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.Pc=t,this.Vc=e}return Object.defineProperty(t.prototype,"latitude",{get:function(){return this.Pc},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"longitude",{get:function(){return this.Vc},enumerable:!0,configurable:!0}),t.prototype.isEqual=function(t){return this.Pc===t.Pc&&this.Vc===t.Vc},t.prototype.p=function(t){return ke(this.Pc,t.Pc)||ke(this.Vc,t.Vc)},t}(),Dr=/^__.*__$/,Mr=function(){function t(t,e,n){this.data=t,this.Vt=e,this.fieldTransforms=n}return t.prototype.gc=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}(),Fr=function(){function t(t,e,n){this.data=t,this.Vt=e,this.fieldTransforms=n}return t.prototype.gc=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 Vr(t){switch(t){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw we()}}var Ur=function(){function t(t,e,n,r,i){this.settings=t,this.ii=e,this.serializer
2=n,void 0===r&&this.pc(),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,"Ec",{get:function(){return this.settings.Ec},enumerable:!0,configurable:!0}),t.prototype.Rc=function(e){return new t(Object.assign(Object.assign({},this.settings),e),this.ii,this.serializer,this.fieldTransforms,this.Vt)},t.prototype.yc=function(t){var e=null==this.path?null:this.path.child(t),n=this.Rc({path:e,bc:!1});return n.vc(t),n},t.prototype.Sc=function(t){var e=null==this.path?null:this.path.child(t),n=this.Rc({path:e,bc:!1});return n.pc(),n},t.prototype.mc=function(t){return this.Rc({path:null,bc:!0})},t.prototype.Ic=function(t){var e=null===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.pc=function(){if(null!==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.Ic("Document fields must not be empty");if(Vr(this.Ec)&&Dr.test(t))throw this.Ic('Document fields cannot begin and end with "__"')},t}(),zr=function(){function t(t,e){this.ii=t,this.serializer=e||pe.nt().Dc(t)}return t.prototype.Cc=function(t,e){var n=this.Fc(0,t);Wr("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.Nc=function(t,e,n){var r=this.Fc(2,t);Wr("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 _r)f=l.dc;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.kc=function(t,e){var n=this.Fc(1,t);Wr("Data must be an object, but it was:",n,e);var r=[],i=new pt;_(e,(function(e,o){var a=Kr(t,e),s=n.Sc(a);if(o instanceof Nr)r.push(a);else{var u=Br(o,s);null!=u&&(r.push(a),i.set(a,u))}}));var o=new nt(r);return new Fr(i.yt(),o,n.fieldTransforms)},t.prototype.$c=function(t,e,n,r){var i=this.Fc(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.Sc(f);if(d instanceof Nr)u.push(f);else{var m=Br(d,v);null!=m&&(u.push(f),c.set(f,m))}}var y=new nt(u);return new Fr(c.yt(),y,i.fieldTransforms)},t.prototype.Fc=function(t,e){return new Ur({Ec:t,methodName:e,path:k.G,bc:!1},this.ii,this.serializer)},t.prototype.Mc=function(t,e,n){return void 0===n&&(n=!1),Br(e,this.Fc(n?4:3,t))},t}();function Br(t,e){if(Hr(t))return Wr("Unsupported field value:",e,t),qr(t,e);if(t instanceof Ar)return function(t,e){if(!Vr(e.Ec))throw e.Ic(t.Tc+"() can only be used with update() and set()");if(null===e.path)throw e.Ic(t.Tc+"() 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.bc&&4!==e.Ec)throw e.Ic("Nested arrays are not supported");return function(t,e){for(var n=[],r=0,i=0,o=t;i<o.length;i++){var a=Br(o[i],e.mc(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 Lr)return{geoPointValue:{latitude:t.latitude,longitude:t.longitude}};if(t instanceof Sr)return{bytesValue:e.serializer.ui(t)};if(t instanceof zi){var i=e.ii,o=t.firestore.Lc;if(!o.isEqual(i))throw e.Ic("Document reference is for database "+o.projectId+"/"+o.database+" but should be for database "+i.projectId+"/"+i.database);return{referenceValue:e.serializer._i(t.xc.path,t.firestore.Lc)}}throw e.Ic("Unsupported field value: "+yr(t))}(t,e)}function qr(t,e){var n={};return O(t)?e.path&&e.path.length>0&&e.Vt.push(e.path):_(t,(function(t,r){var i=Br(r,e.yc(t));null!=i&&(n[t]=i)})),{mapValue:{fields:n}}}function Hr(t){return!("object"!=typeof t||null===t||t instanceof Array||t instanceof Date||t instanceof b||t instanceof Lr||t instanceof Sr||t instanceof zi||t instanceof Ar)}function Wr(t,e,n){if(!Hr(n)||!mr(n)){var r=yr(n);throw"an object"===r?e.Ic(t+" a custom object"):e.Ic(t+" "+r)}}function Gr(t,e){if(e instanceof _r)return e.dc;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(_r.bind.apply(_r,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).dc}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.Sr=t,this.Oc=n,this.Bc=r,this.qc=i,this.listener=o,this.state=0,this.Uc=0,this.Qc=null,this.stream=null,this.ih=new Be(t,e)}return t.prototype.Wc=function(){return 1===this.state||2===this.state||4===this.state},t.prototype.jc=function(){return 2===this.state},t.prototype.start=function(){3!==this.state?this.auth():this.Kc()},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.Wc()?[4,this.close(0)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}
2))}))},t.prototype.Gc=function(){this.state=0,this.ih.reset()},t.prototype.zc=function(){var t=this;this.jc()&&null===this.Qc&&(this.Qc=this.Sr.Br(this.Oc,6e4,(function(){return t.Hc()})))},t.prototype.Yc=function(t){this.Jc(),this.stream.send(t)},t.prototype.Hc=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.jc()?[2,this.close(0)]:[2]}))}))},t.prototype.Jc=function(){this.Qc&&(this.Qc.cancel(),this.Qc=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.Jc(),this.ih.cancel(),this.Uc++,3!==t?this.ih.reset():e&&e.code===h.RESOURCE_EXHAUSTED?(ge(e.toString()),ge("Using maximum backoff delay to prevent overloading the backend."),this.ih.Lr()):e&&e.code===h.UNAUTHENTICATED&&this.qc._(),null!==this.stream&&(this.Xc(),this.stream.close(),this.stream=null),this.state=t,[4,this.listener.Zc(e)];case 1:return n.sent(),[2]}}))}))},t.prototype.Xc=function(){},t.prototype.auth=function(){var t=this;this.state=1;var e=this.t_(this.Uc),n=this.Uc;this.qc.getToken().then((function(e){t.Uc===n&&t.e_(e)}),(function(n){e((function(){var e=new p(h.UNKNOWN,"Fetching auth token failed: "+n.message);return t.s_(e)}))}))},t.prototype.e_=function(t){var e=this,n=this.t_(this.Uc);this.stream=this.i_(t),this.stream.n_((function(){n((function(){return e.state=2,e.listener.n_()}))})),this.stream.Zc((function(t){n((function(){return e.s_(t)}))})),this.stream.onMessage((function(t){n((function(){return e.onMessage(t)}))}))},t.prototype.Kc=function(){var t=this;this.state=4,this.ih.xr((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.s_=function(t){return ye("PersistentStream","close with error: "+t),this.stream=null,this.close(3,t)},t.prototype.t_=function(t){var e=this;return function(n){e.Sr.Hr((function(){return e.Uc===t?n():(ye("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())}))}},t}(),Yr=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.i_=function(t){return this.Bc.r_("Listen",t)},e.prototype.onMessage=function(t){this.ih.reset();var e=this.serializer.pi(t),n=this.serializer.bi(t);return this.listener.h_(e,n)},e.prototype.o_=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.Yc(e)},e.prototype.a_=function(t){var e={};e.database=this.serializer.wi,e.removeTarget=t,this.Yc(e)},e}(Xr),Jr=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.u_=!1,a.lastStreamToken=A.ht,a}return i.__extends(e,t),Object.defineProperty(e.prototype,"c_",{get:function(){return this.u_},enumerable:!0,configurable:!0}),e.prototype.start=function(){this.u_=!1,t.prototype.start.call(this)},e.prototype.Xc=function(){this.u_&&this.__([])},e.prototype.i_=function(t){return this.Bc.r_("Write",t)},e.prototype.onMessage=function(t){if(Ee(!!t.streamToken),this.lastStreamToken=this.serializer.ci(t.streamToken),this.u_){this.ih.reset();var e=this.serializer.Li(t.writeResults,t.commitTime),n=this.serializer.fromVersion(t.commitTime);return this.listener.l_(n,e)}return Ee(!t.writeResults||0===t.writeResults.length),this.u_=!0,this.listener.d_()},e.prototype.f_=function(){var t={};t.database=this.serializer.wi,this.Yc(t)},e.prototype.__=function(t){var e=this,n={streamToken:this.serializer.ui(this.lastStreamToken),writes:t.map((function(t){return e.serializer.vi(t)}))};this.Yc(n)},e}(Xr),Qr=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).Bc=e,i.credentials=n,i.serializer=r,i}return i.__extends(e,t),e.prototype.E_=function(t,e){var n=this;return this.credentials.getToken().then((function(r){return n.Bc.E_(t,e,r)})).catch((function(t){throw t.code===h.UNAUTHENTICATED&&n.credentials._(),t}))},e.prototype.I_=function(t,e){var n=this;return this.credentials.getToken().then((function(r){return n.Bc.I_(t,e,r)})).catch((function(t){throw t.code===h.UNAUTHENTICATED&&n.credentials._(),t}))},e}((function(){this.T_=void 0})),Zr=function(){function t(t){this.w_=t,this.R_=Gt(),this.mutations=[],this.m_=!1,this.A_=null,this.P_=new Set}return t.prototype.V_=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.g_(),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.I_("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.w_,t)];case 1:return[2,((e=r.sent()).forEach((function(t){t instanceof bt||t instanceof gt?n.p_(t):we()})),e)]}}))}))},t.prototype.set=function(t,e){this.write(e.gc(t,this.Rt(t))),this.P_.add(t)},t.prototype.update=function(t,e){try{this.write(e.gc(t,this.y_(t)))}catch(t){this.A_=t}this.P_.add(t)},t.prototype.delete=function(t){this.write([new lt(t,this.Rt(t))]),this.P_.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.g_(),this.A_)throw this.A_;return t=this.R_,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.E_("Commit",r)];case 1:return o=i.sent(),[2,n.serializer.Li(o.writeResults,o.commitTime)]}}))}))}(this.w_,this.mutations)];case 1:return n.sent(),this.m_=!0,[2]}}))}))},t.prototype.p_=function(t){var e;if(t instanceof gt)e=t.version;else{if(!(t instanceof bt))throw we();e=w.min()}var n=this.R_.get(t.key);if(null!==n){if(!e.isEqual(n))throw new p(h.ABORTED,"Document version changed between two reads.")}else this.R_=this.R_.me(t.key,e)},t.prototype.Rt=function(t){var e=this.R_.get(t);return!this.P_.has(t)&&e?ot.updateTime(e):ot.ft()},t.prototype.y_=function(t){var e=this.R_.get(t);if(!this.P_.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.g_(),this.mutations=this.mutations.concat(t)},t.prototype.g_=function(){},t}(),ti=function(){function t(t,e){this.qr=t,this.b_=e,this.state="Unknown",this.v_=0,this.S_=null,this.D_=!0}return t.prototype.C_=function(){var t=this;0===this.v_&&(this.F_("Unknown"),this.S_=this.qr.Br("online_state_timeout",1e4,(function(){return t.S_=null,t.N_("Backend didn't respond within 10 seconds."),t.F_("Offline"),Promise.resolve()})))},t.prototype.k_=function(t){"Online"===this.state?this.F_("Unknown"):(this.v_++,this.v_>=1&&(this.M_(),this.N_("Connection failed 1 times. Most recent error: "+t.toString()),this.F_("Offline")))},t.prototype.set=function(t){this.M_(),this.v_=0,"Online"===t&&(this.D_=!1),this.F_(t)},t.prototype.F_=function(t){t!==this.state&&(this.state=t,this.b_(t))},t.prototype.N_=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.D_?(ge(e),this.D_=!1):ye("OnlineStateTracker",e)},t.prototype.M_=function(){null!==this.S_&&(this.S_.cancel(),this.S_=null)},t}(),ei=function(){function t(t,e,n,r,o){var a=this;this.L_=t,this.w_=e,this.qr=n,this.x_=[],this.O_=new Map,this.B_=null,this.networkEnabled=!1,this.isPrimary=!1,this.q_=!1,this.U_=o,this.U_.Q_((function(t){n.Hr((function(){return i.__awaiter(a,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.W_()?(ye("RemoteStore","Restarting streams for network reachability change."),[4,this.j_()]):[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}
2))}))}))})),this.K_=new ti(n,r),this.G_=function(t,e,n){var r=Te(t);return new Yr(e,r.Bc,r.credentials,r.serializer,n)}(this.w_,n,{n_:this.z_.bind(this),Zc:this.H_.bind(this),h_:this.Y_.bind(this)}),this.J_=function(t,e,n){var r=Te(t);return new Jr(e,r.Bc,r.credentials,r.serializer,n)}(this.w_,n,{n_:this.X_.bind(this),Zc:this.Z_.bind(this),d_:this.tl.bind(this),l_:this.l_.bind(this)})}return t.prototype.start=function(){return this.enableNetwork()},t.prototype.enableNetwork=function(){return this.networkEnabled=!0,this.el()},t.prototype.el=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.W_()?(t=this.J_,[4,this.L_.vo()]):[3,3];case 1:return t.lastStreamToken=e.sent(),this.sl()?this.il():this.K_.set("Unknown"),[4,this.nl()];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.rl()];case 1:return t.sent(),this.K_.set("Offline"),[2]}}))}))},t.prototype.rl=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return[4,this.J_.stop()];case 1:return t.sent(),[4,this.G_.stop()];case 2:return t.sent(),this.x_.length>0&&(ye("RemoteStore","Stopping write stream with "+this.x_.length+" pending writes"),this.x_=[]),this.hl(),[2]}}))}))},t.prototype.Iu=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return ye("RemoteStore","RemoteStore shutting down."),this.networkEnabled=!1,[4,this.rl()];case 1:return t.sent(),this.U_.Iu(),this.K_.set("Unknown"),[2]}}))}))},t.prototype.listen=function(t){this.O_.has(t.targetId)||(this.O_.set(t.targetId,t),this.sl()?this.il():this.G_.jc()&&this.ol(t))},t.prototype.al=function(t){this.O_.delete(t),this.G_.jc()&&this.ul(t),0===this.O_.size&&(this.G_.jc()?this.G_.zc():this.W_()&&this.K_.set("Unknown"))},t.prototype.si=function(t){return this.O_.get(t)||null},t.prototype.ei=function(t){return this.cl.ei(t)},t.prototype.ol=function(t){this.B_.Ns(t.targetId),this.G_.o_(t)},t.prototype.ul=function(t){this.B_.Ns(t),this.G_.a_(t)},t.prototype.il=function(){this.B_=new ae(this),this.G_.start(),this.K_.C_()},t.prototype.sl=function(){return this.W_()&&!this.G_.Wc()&&this.O_.size>0},t.prototype.W_=function(){return!this.q_&&this.isPrimary&&this.networkEnabled},t.prototype.hl=function(){this.B_=null},t.prototype.z_=function(){return i.__awaiter(this,void 0,void 0,(function(){var t=this;return i.__generator(this,(function(e){return this.O_.forEach((function(e,n){t.ol(e)})),[2]}))}))},t.prototype.H_=function(t){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return this.hl(),this.sl()?(this.K_.k_(t),this.il()):this.K_.set("Unknown"),[2]}))}))},t.prototype.Y_=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.K_.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._l(t)];case 2:return i.sent(),[3,5];case 3:return n=i.sent(),ye("RemoteStore","Failed to remove targets %s: %s ",t.targetIds.join(","),n),[4,this.ll(n)];case 4:return i.sent(),[3,5];case 5:return[3,13];case 6:if(t instanceof ne?this.B_.qs(t):t instanceof re?this.B_.Hs(t):this.B_.Ws(t),e.isEqual(w.min()))return[3,13];i.label=7;case 7:return i.trys.push([7,11,,13]),[4,this.L_.Jo()];case 8:return r=i.sent(),e.S(r)>=0?[4,this.dl(e)]:[3,10];case 9:i.sent(),i.label=10;case 10:return[3,13];case 11:return ye("RemoteStore","Failed to raise snapshot:",o=i.sent()),[4,this.ll(o)];case 12:return i.sent(),[3,13];case 13:return[2]}}
2))}))},t.prototype.ll=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.q_=!0,[4,this.rl()];case 1:return n.sent(),this.K_.set("Offline"),this.qr.dh((function(){return i.__awaiter(e,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return ye("RemoteStore","Retrying IndexedDB access"),[4,this.L_.Jo()];case 1:return t.sent(),this.q_=!1,[4,this.el()];case 2:return t.sent(),[2]}}))}))})),[2]}}))}))},t.prototype.dl=function(t){var e=this,n=this.B_.Xs(t);return n.as.forEach((function(n,r){if(n.resumeToken.rt()>0){var i=e.O_.get(r);i&&e.O_.set(r,i.we(n.resumeToken,t))}})),n.us.forEach((function(t){var n=e.O_.get(t);if(n){e.O_.set(t,n.we(A.ht,n.Ee)),e.ul(t);var r=new Ct(n.target,t,1,n.sequenceNumber);e.ol(r)}})),this.cl.Yu(n)},t.prototype._l=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.O_.has(o)?[4,this.cl.fl(o,e)]:[3,3]):[3,5];case 2:i.sent(),this.O_.delete(o),this.B_.removeTarget(o),i.label=3;case 3:i.label=4;case 4:return n++,[3,1];case 5:return[2]}}
2))}))},t.prototype.nl=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.Tl()?(t=this.x_.length>0?this.x_[this.x_.length-1].batchId:-1,[4,this.L_.tc(t)]):[3,5];case 1:return null!==(e=n.sent())?[3,2]:(0===this.x_.length&&this.J_.zc(),[3,4]);case 2:return this.El(e),[4,this.nl()];case 3:n.sent(),n.label=4;case 4:n.label=5;case 5:return this.Il()&&this.wl(),[2]}}))}))},t.prototype.Tl=function(){return this.W_()&&this.x_.length<10},t.prototype.Rl=function(){return this.x_.length},t.prototype.El=function(t){this.x_.push(t),this.J_.jc()&&this.J_.c_&&this.J_.__(t.mutations)},t.prototype.Il=function(){return this.W_()&&!this.J_.Wc()&&this.x_.length>0},t.prototype.wl=function(){this.J_.start()},t.prototype.X_=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){return this.J_.f_(),[2]}))}))},t.prototype.tl=function(){var t=this;return this.L_.So(this.J_.lastStreamToken).then((function(){for(var e=0,n=t.x_;e<n.length;e++){var r=n[e];t.J_.__(r.mutations)}})).catch(or)},t.prototype.l_=function(t,e){var n=this,r=this.x_.shift(),i=Ce.from(r,t,e,this.J_.lastStreamToken);return this.cl.ml(i).then((function(){return n.nl()}))},t.prototype.Z_=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.x_.length>0?this.J_.c_?[4,this.Al(t)]:[3,2]:[3,5];case 1:return e.sent(),[3,4];case 2:return[4,this.Pl(t)];case 3:e.sent(),e.label=4;case 4:this.Il()&&this.wl(),e.label=5;case 5:return[2]}}
2))}))},t.prototype.Pl=function(t){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){return jt(t.code)?[2,(ye("RemoteStore","RemoteStore error before completed handshake; resetting stream token: ",this.J_.lastStreamToken),this.J_.lastStreamToken=A.ht,this.L_.So(A.ht).catch(or))]:[2]}))}))},t.prototype.Al=function(t){return i.__awaiter(this,void 0,void 0,(function(){var e,n,r=this;return i.__generator(this,(function(i){return jt(n=t.code)&&n!==h.ABORTED?(e=this.x_.shift(),[2,(this.J_.Gc(),this.cl.Vl(e.batchId,t).then((function(){return r.nl()})))]):[2]}))}))},t.prototype.gl=function(){return new Zr(this.w_)},t.prototype.j_=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.rl()];case 1:return t.sent(),this.K_.set("Unknown"),[4,this.enableNetwork()];case 2:return t.sent(),[2]}}))}))},t.prototype.pl=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.W_()?(ye("RemoteStore","RemoteStore restarting streams for new credential"),[4,this.j_()]):[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}
2))}))},t.prototype.yl=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.rl()];case 3:e.sent(),this.K_.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.bl=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.vl=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.bl=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.vl=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.bl=function(e,n){for(var r=JSON.parse(n),i="object"==typeof r&&r.activeTargetIds instanceof Array,o=Yt(),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.bl=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=Yt()}return t.prototype.Sl=function(t){this.activeTargetIds=this.activeTargetIds.add(t)},t.prototype.Dl=function(t){this.activeTargetIds=this.activeTargetIds.delete(t)},t.prototype.vl=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.Sr=e,this.platform=n,this.persistenceKey=r,this.Cl=i,this.cl=null,this.b_=null,this.gr=null,this.Fl=this.Nl.bind(this),this.kl=new Lt(ke),this.Uh=!1,this.$l=[],!t.so(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.Ml=ni(this.persistenceKey,this.Cl),this.Ll=function(t){return"firestore_sequence_number_"+t}(this.persistenceKey),this.kl=this.kl.me(this.Cl,new ci),this.xl=new RegExp("^firestore_clients_"+a+"_([^_]*)$"),this.Ol=new RegExp("^firestore_mutations_"+a+"_(\\d+)(?:_(.*))?$"),this.Bl=new RegExp("^firestore_targets_"+a+"_(\\d+)$"),this.ql=function(t){return"firestore_online_state_"+t}(this.persistenceKey),this.platform.window.addEventListener("storage",this.Fl)}return t.so=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.cl.Pu()];case 1:for(t=i.sent(),e=0,n=t;e<n.length;e++)(r=n[e])!==this.Cl&&(o=this.getItem(ni(this.persistenceKey,r)))&&(a=si.bl(r,o))&&(this.kl=this.kl.me(a.clientId,a));for(this.Ul(),(s=this.storage.getItem(this.ql))&&(u=this.Ql(s))&&this.Wl(u),c=0,l=this.$l;c<l.length;c++)f=l[c],this.Nl(f);return this.$l=[],this.platform.window.addEventListener("unload",(function(){return h.Iu()})),this.Uh=!0,[2]}}))}))},t.prototype.br=function(t){this.setItem(this.Ll,JSON.stringify(t))},t.prototype.jl=function(){return this.Kl(this.kl)},t.prototype.Gl=function(t){var e=!1;return this.kl.forEach((function(n,r){r.activeTargetIds.has(t)&&(e=!0)})),e},t.prototype.zl=function(t){this.Hl(t,"pending")},t.prototype.Yl=function(t,e,n){this.Hl(t,e,n),this.Jl(t)},t.prototype.Xl=function(t){var e="not-current";if(this.Gl(t)){var n=this.storage.getItem(ii(this.persistenceKey,t));if(n){var r=ai.bl(t,n);r&&(e=r.state)}}return this.Zl.Sl(t),this.Ul(),e},t.prototype.td=function(t){this.Zl.Dl(t),this.Ul()},t.prototype.ed=function(t){return this.Zl.activeTargetIds.has(t)},t.prototype.sd=function(t){this.removeItem(ii(this.persistenceKey,t))},t.prototype.nd=function(t,e,n){this.rd(t,e,n)},t.prototype.Qu=function(t,e,n){var r=this;e.forEach((function(t){r.Jl(t)}
2)),this.currentUser=t,n.forEach((function(t){r.zl(t)}))},t.prototype.hd=function(t){this.od(t)},t.prototype.Iu=function(){this.Uh&&(this.platform.window.removeEventListener("storage",this.Fl),this.removeItem(this.Ml),this.Uh=!1)},t.prototype.getItem=function(t){var e=this.storage.getItem(t);return ye("SharedClientState","READ",t,e),e},t.prototype.setItem=function(t,e){ye("SharedClientState","SET",t,e),this.storage.setItem(t,e)},t.prototype.removeItem=function(t){ye("SharedClientState","REMOVE",t),this.storage.removeItem(t)},t.prototype.Nl=function(t){var e=this;if(t.storageArea===this.storage){if(ye("SharedClientState","EVENT",t.key,t.newValue),t.key===this.Ml)return void ge("Received WebStorage notification for local change. Another client might have garbage-collected our state");this.Sr.dh((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.Uh){if(null!==t.key)if(this.xl.test(t.key)){if(null==t.newValue)return e=this.ad(t.key),[2,this.ud(e,null)];if(n=this._d(t.key,t.newValue))return[2,this.ud(n.clientId,n)]}else if(this.Ol.test(t.key)){if(null!==t.newValue&&(r=this.ld(t.key,t.newValue)))return[2,this.dd(r)]}else if(this.Bl.test(t.key)){if(null!==t.newValue&&(o=this.fd(t.key,t.newValue)))return[2,this.Td(o)]}else if(t.key===this.ql){if(null!==t.newValue&&(a=this.Ql(t.newValue)))return[2,this.Wl(a)]}else t.key===this.Ll&&(s=function(t){var e=Ue.vr;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.vr&&this.gr(s)}else this.$l.push(t);return[2]}))}))}))}},Object.defineProperty(t.prototype,"Zl",{get:function(){return this.kl.get(this.Cl)},enumerable:!0,configurable:!0}),t.prototype.Ul=function(){this.setItem(this.Ml,this.Zl.vl())},t.prototype.Hl=function(t,e,n){var r=new oi(this.currentUser,t,e,n),i=ri(this.persistenceKey,this.currentUser,t);this.setItem(i,r.vl())},t.prototype.Jl=function(t){var e=ri(this.persistenceKey,this.currentUser,t);this.removeItem(e)},t.prototype.od=function(t){var e={clientId:this.Cl,onlineState:t};this.storage.setItem(this.ql,JSON.stringify(e))},t.prototype.rd=function(t,e,n){var r=ii(this.persistenceKey,t),i=new ai(t,e,n);this.setItem(r,i.vl())},t.prototype.ad=function(t){var e=this.xl.exec(t);return e?e[1]:null},t.prototype._d=function(t,e){var n=this.ad(t);return si.bl(n,e)},t.prototype.ld=function(t,e){var n=this.Ol.exec(t),r=Number(n[1]),i=void 0!==n[2]?n[2]:null;return oi.bl(new f(i),r,e)},t.prototype.fd=function(t,e){var n=this.Bl.exec(t),r=Number(n[1]);return ai.bl(r,e)},t.prototype.Ql=function(t){return ui.bl(t)},t.prototype.dd=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.cl.Ed(t.batchId,t.state,t.error)]:(ye("SharedClientState","Ignoring mutation for non-active user "+t.user.uid),[2])}))}))},t.prototype.Td=function(t){return this.cl.Id(t.targetId,t.state,t.error)},t.prototype.ud=function(t,e){var n=this,r=e?this.kl.me(t,e):this.kl.remove(t),i=this.Kl(this.kl),o=this.Kl(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.cl.wd(a,s).then((function(){n.kl=r}))},t.prototype.Wl=function(t){this.kl.get(t.clientId)&&this.b_(t.onlineState)},t.prototype.Kl=function(t){var e=Yt();return t.forEach((function(t,n){e=e.He(n.activeTargetIds)})),e},t}(),fi=function(){function t(){this.Rd=new ci,this.md={},this.cl=null,this.b_=null,this.gr=null}return t.prototype.zl=function(t){},t.prototype.Yl=function(t,e,n){},t.prototype.Xl=function(t){return this.Rd.Sl(t),this.md[t]||"not-current"},t.prototype.nd=function(t,e,n){this.md[t]=e},t.prototype.td=function(t){this.Rd.Dl(t)},t.prototype.ed=function(t){return this.Rd.activeTargetIds.has(t)},t.prototype.sd=function(t){delete this.md[t]},t.prototype.jl=function(){return this.Rd.activeTargetIds},t.prototype.Gl=function(t){return this.Rd.activeTargetIds.has(t)},t.prototype.start=function(){return this.Rd=new ci,Promise.resolve()},t.prototype.Qu=function(t,e,n){},t.prototype.hd=function(t){},t.prototype.Iu=function(){},t.prototype.br=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.Ad=e,this.Pd=null,this.fs=!1,this.Vd=$t(),this.ns=$t(),this.gd=new Jt(t.se.bind(t))}return Object.defineProperty(t.prototype,"pd",{get:function(){return this.Ad},enumerable:!0,configurable:!0}),t.prototype.yd=function(t,e){var n=this,r=e?e.bd:new Qt,i=e?e.gd:this.gd,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.vd(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{gd:a,bd:r,Sd:s,ns:o}},t.prototype.vd=function(t,e){return t.At&&e.hasCommittedMutations&&!e.At},t.prototype.Zn=function(t,e,n){var r=this,i=this.gd;this.gd=t.gd,this.ns=t.ns;var o=t.bd.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.Dd(n);var a=e?this.Cd():[],s=0===this.Vd.size&&this.fs?1:0,u=s!==this.Pd;return this.Pd=s,0!==o.length||u?{snapshot:new Zt(this.query,t.gd,i,o,t.ns,0===s,u,!1),Fd:a}:{Fd:a}},t.prototype.Nd=function(t){return this.fs&&"Offline"===t?(this.fs=!1,this.Zn({gd:this.gd,bd:new Qt,ns:this.ns,Sd:!1},!1)):{Fd:[]}},t.prototype.kd=function(t){return!this.Ad.has(t)&&!!this.gd.has(t)&&!this.gd.get(t).At},t.prototype.Dd=function(t){var e=this;t&&(t.Ts.forEach((function(t){return e.Ad=e.Ad.add(t)})),t.Es.forEach((function(t){})),t.Is.forEach((function(t){return e.Ad=e.Ad.delete(t)})),this.fs=t.fs)},t.prototype.Cd=function(){var t=this;if(!this.fs)return[];var e=this.Vd;this.Vd=$t(),this.gd.forEach((function(e){t.kd(e.key)&&(t.Vd=t.Vd.add(e.key))}));var n=[];return e.forEach((function(e){t.Vd.has(e)||n.push(new pi(e))})),this.Vd.forEach((function(t){e.has(t)||n.push(new hi(t))})),n},t.prototype.$d=function(t){this.Ad=t.rc,this.Vd=$t();var e=this.yd(t.documents);return this.Zn(e,!0)},t.prototype.Md=function(){return Zt.os(this.query,this.gd,this.ns,0===this.Pd)},t}(),vi=function(){function t(t,e,n,r){this.qr=t,this.Ld=e,this.updateFunction=n,this.Wr=r,this.xd=5,this.ih=new Be(this.qr,"transaction_retry")}return t.prototype.Od=function(){this.Bd()},t.prototype.Bd=function(){var t=this;this.ih.xr((function(){return i.__awaiter(t,void 0,void 0,(function(){var t,e,n=this;return i.__generator(this,(function(r){return t=this.Ld.gl(),(e=this.qd(t))&&e.then((function(e){n.qr.Hr((function(){return t.commit().then((function(){n.Wr.resolve(e)})).catch((function(t){n.Ud(t)}))}))})).catch((function(t){n.Ud(t)})),[2]}))}))}))},t.prototype.qd=function(t){try{var e=this.updateFunction(t);return!N(e)&&e.catch&&e.then?e:(this.Wr.reject(Error("Transaction callback must return a Promise")),null)}catch(t){return this.Wr.reject(t),null}},t.prototype.Ud=function(t){var e=this;this.xd>0&&this.Qd(t)?(this.xd-=1,this.qr.Hr((function(){return e.Bd(),Promise.resolve()}))):this.Wr.reject(t)},t.prototype.Qd=function(t){if("FirebaseError"===t.name){var e=t.code;return"aborted"===e||"failed-precondition"===e||!jt(e)}return!1},t}(),mi=function(t,e,n){this.query=t,this.targetId=e,this.view=n},yi=function(t){this.key=t,this.Wd=!1},gi=function(){function t(t,e,n,r,i){this.L_=t,this.Ld=e,this.jd=n,this.currentUser=r,this.Kd=i,this.Gd=null,this.zd=new Ae((function(t){return t.canonicalId()})),this.Hd=new Map,this.Yd=[],this.Jd=new Lt(I.N),this.Xd=new Map,this.Zd=new Pe,this.tf={},this.ef=new Map,this.sf=mn.Go(),this.onlineState="Unknown"}return Object.defineProperty(t.prototype,"if",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.subscribe=function(t){this.Gd=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.nf("listen()"),(r=this.zd.get(t))?(e=r.targetId,this.jd.Xl(e),n=r.view.Md(),[3,4]):[3,1];case 1:return[4,this.L_.sc(t.ee())];case 2:return o=i.sent(),a=this.jd.Xl(o.targetId),e=o.targetId,[4,this.rf(t,e,"current"===a)];case 3:n=i.sent(),this.if&&this.Ld.listen(o),i.label=4;case 4:return[2,n]}}))}))},t.prototype.rf=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.L_.nc(t,!0)];case 1:return r=i.sent(),o=new di(t,r.rc),a=o.yd(r.documents),s=ee.ds(e,n&&"Offline"!==this.onlineState),u=o.Zn(a,this.if,s),this.hf(e,u.Fd),c=new mi(t,e,o),[2,(this.zd.set(t,c),this.Hd.has(e)?this.Hd.get(e).push(t):this.Hd.set(e,[t]),u.snapshot)]}}))}))},t.prototype.al=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.nf("unlisten()"),e=this.zd.get(t),(n=this.Hd.get(e.targetId)).length>1?[2,(this.Hd.set(e.targetId,n.filter((function(e){return!e.isEqual(t)}))),void this.zd.delete(t))]:this.if?(this.jd.td(e.targetId),this.jd.Gl(e.targetId)?[3,2]:[4,this.L_.ic(e.targetId,!1).then((function(){r.jd.sd(e.targetId),r.Ld.al(e.targetId),r.af(e.targetId)})).catch(or)]):[3,3];case 1:i.sent(),i.label=2;case 2:return[3,5];case 3:return this.af(e.targetId),[4,this.L_.ic(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.nf("write()"),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.L_.Gu(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.jd.zl(n.batchId),this.uf(n.batchId,e),[4,this.cf(n.Wn)];case 5:return i.sent(),[4,this.Ld.nl()];case 6:return i.sent(),[2]}}))}))},t.prototype.runTransaction=function(t,e,n){new vi(t,this.Ld,e,n).Od()},t.prototype.Yu=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.nf("applyRemoteEvent()"),r.label=1;case 1:return r.trys.push([1,4,,6]),[4,this.L_.Yu(t)];case 2:return e=r.sent(),t.as.forEach((function(t,e){var r=n.Xd.get(e);r&&(Ee(t.Ts.size+t.Es.size+t.Is.size<=1),t.Ts.size>0?r.Wd=!0:t.Es.size>0?Ee(r.Wd):t.Is.size>0&&(Ee(r.Wd),r.Wd=!1))})),[4,this.cf(e,t)];case 3:return r.sent(),[3,6];case 4:return[4,or(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}}
2))}))},t.prototype.Nd=function(t,e){this.nf("applyOnlineStateChange()");var n=[];this.zd.forEach((function(e,r){var i=r.view.Nd(t);i.snapshot&&n.push(i.snapshot)})),this.Gd._f(t),this.Gd.h_(n),this.onlineState=t},t.prototype.fl=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.nf("rejectListens()"),this.jd.nd(t,"rejected",e),n=this.Xd.get(t),(r=n&&n.key)?(this.Jd=this.Jd.remove(r),this.Xd.delete(t),this.lf(),o=(o=new Lt(I.N)).me(r,new bt(r,w.min())),a=$t().add(r),s=new te(w.min(),new Map,new Ft(ke),o,a),[2,this.Yu(s)]):[4,this.L_.ic(t,!1).then((function(){return u.af(t,e)})).catch(or)];case 1:return i.sent(),[2]}}))}))},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:this.nf("applySuccessfulWrite()"),e=t.batch.batchId,this.df(e,null),this.ff(e),r.label=1;case 1:return r.trys.push([1,4,,6]),[4,this.L_.yo(t)];case 2:return n=r.sent(),this.jd.Yl(e,"acknowledged"),[4,this.cf(n)];case 3:return r.sent(),[3,6];case 4:return[4,or(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}}
2))}))},t.prototype.Vl=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.nf("rejectFailedWrite()"),this.df(t,e),this.ff(t),r.label=1;case 1:return r.trys.push([1,4,,6]),[4,this.L_.Hu(t)];case 2:return n=r.sent(),this.jd.Yl(t,"rejected",e),[4,this.cf(n)];case 3:return r.sent(),[3,6];case 4:return[4,or(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}}))}))},t.prototype.Tf=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.Ld.W_()||ye("SyncEngine","The network is disabled. The task returned by 'awaitPendingWrites()' will not complete until the network is enabled."),[4,this.L_.Lo()];case 1:return-1===(e=r.sent())?[2,void t.resolve()]:((n=this.ef.get(e)||[]).push(t),this.ef.set(e,n),[2])}}))}))},t.prototype.ff=function(t){(this.ef.get(t)||[]).forEach((function(t){t.resolve()})),this.ef.delete(t)},t.prototype.Ef=function(t){this.ef.forEach((function(e){e.forEach((function(e){e.reject(new p(h.CANCELLED,t))}))})),this.ef.clear()},t.prototype.uf=function(t,e){var n=this.tf[this.currentUser.s()];n||(n=new Lt(ke)),n=n.me(t,e),this.tf[this.currentUser.s()]=n},t.prototype.df=function(t,e){var n=this.tf[this.currentUser.s()];if(n){var r=n.get(t);r&&(e?r.reject(e):r.resolve(),n=n.remove(t)),this.tf[this.currentUser.s()]=n}},t.prototype.af=function(t,e){var n=this;void 0===e&&(e=null),this.jd.td(t);for(var r=0,i=this.Hd.get(t);r<i.length;r++){var o=i[r];this.zd.delete(o),e&&this.Gd.If(o,e)}if(this.Hd.delete(t),this.if){var a=this.Zd.Cn(t);this.Zd.Sn(t),a.forEach((function(t){n.Zd.Fn(t)||n.wf(t)}))}},t.prototype.wf=function(t){var e=this.Jd.get(t);null!==e&&(this.Ld.al(e),this.Jd=this.Jd.remove(t),this.Xd.delete(e),this.lf())},t.prototype.hf=function(t,e){for(var n=0,r=e;n<r.length;n++){var i=r[n];i instanceof hi?(this.Zd.gn(i.key,t),this.Rf(i)):i instanceof pi?(ye("SyncEngine","Document no longer in limbo: "+i.key),this.Zd.yn(i.key,t),this.Zd.Fn(i.key)||this.wf(i.key)):we()}},t.prototype.Rf=function(t){var e=t.key;this.Jd.get(e)||(ye("SyncEngine","New document in limbo: "+e),this.Yd.push(e),this.lf())},t.prototype.lf=function(){for(;this.Yd.length>0&&this.Jd.size<this.Kd;){var t=this.Yd.shift(),e=this.sf.next();this.Xd.set(e,new yi(t)),this.Jd=this.Jd.me(t,e),this.Ld.listen(new Ct(Tt.Wt(t.path).ee(),e,2,Ue.vr))}},t.prototype.mf=function(){return this.Jd},t.prototype.Af=function(){return this.Yd},t.prototype.cf=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.zd.forEach((function(i,s){o.push(Promise.resolve().then((function(){var e=s.view.yd(t);return e.Sd?a.L_.nc(s.query,!1).then((function(t){var n=t.documents;return s.view.yd(n,e)})):e})).then((function(t){var i=e&&e.as.get(s.targetId),o=s.view.Zn(t,a.if,i);if(a.hf(s.targetId,o.Fd),o.snapshot){a.if&&a.jd.nd(s.targetId,o.snapshot.fromCache?"not-current":"current"),n.push(o.snapshot);var u=Ve.Vr(s.targetId,o.snapshot);r.push(u)}})))})),[4,Promise.all(o)];case 1:return i.sent(),this.Gd.h_(n),[4,this.L_.Zu(r)];case 2:return i.sent(),[2]}}))}))},t.prototype.nf=function(t){},t.prototype.pl=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.Ef("'waitForPendingWrites' promise is rejected due to a user change."),[4,this.L_.Qu(t)]):[3,3];case 1:return n=r.sent(),this.jd.Qu(t,n.ju,n.Ku),[4,this.cf(n.Wu)];case 2:r.sent(),r.label=3;case 3:return[4,this.Ld.pl()];case 4:return r.sent(),[2]}}))}))},t.prototype.enableNetwork=function(){return this.Ld.enableNetwork()},t.prototype.disableNetwork=function(){return this.Ld.disableNetwork()},t.prototype.ei=function(t){var e=this.Xd.get(t);if(e&&e.Wd)return $t().add(e.key);var n=$t(),r=this.Hd.get(t);if(!r)return n;for(var i=0,o=r;i<o.length;i++){var a=o[i],s=this.zd.get(a);n=n.He(s.view.pd)}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).L_=e,a.isPrimary=void 0,a}return i.__extends(e,t),Object.defineProperty(e.prototype,"if",{get:function(){return!0===this.isPrimary},enumerable:!0,configurable:!0}),e.prototype.enableNetwork=function(){return this.L_.ru(!0),t.prototype.enableNetwork.c
2all(this)},e.prototype.disableNetwork=function(){return this.L_.ru(!1),t.prototype.disableNetwork.call(this)},e.prototype.Pf=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.L_.nc(t.query,!0)];case 1:return e=r.sent(),n=t.view.$d(e),[2,(this.isPrimary&&this.hf(t.targetId,n.Fd),n)]}}))}))},e.prototype.Nd=function(e,n){this.if&&0===n&&(t.prototype.Nd.call(this,e,n),this.jd.hd(e)),this.if||1!==n||t.prototype.Nd.call(this,e,n)},e.prototype.Ed=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.nf("applyBatchState()"),[4,this.L_.ac(t)];case 1:return null===(r=i.sent())?[3,6]:"pending"!==e?[3,3]:[4,this.Ld.nl()];case 2:return i.sent(),[3,4];case 3:"acknowledged"===e||"rejected"===e?(this.df(t,n||null),this.L_.uc(t)):we(),i.label=4;case 4:return[4,this.cf(r)];case 5:return i.sent(),[3,7];case 6:ye("SyncEngine","Cannot apply mutation batch with id: "+t),i.label=7;case 7:return[2]}}
2))}))},e.prototype.yl=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.Ld.yl(!0)]);case 1:return i.sent(),e=this.jd.jl(),[4,this.Vf(e.W())];case 2:for(n=i.sent(),r=0,o=n;r<o.length;r++)a=o[r],this.Ld.listen(a);return[3,7];case 3:return!1!==t||!1===this.isPrimary?[3,7]:(this.isPrimary=!1,s=[],u=Promise.resolve(),this.Hd.forEach((function(t,e){c.jd.ed(e)?s.push(e):u=u.then((function(){return c.af(e),c.L_.ic(e,!0)})),c.Ld.al(e)})),[4,u]);case 4:return i.sent(),[4,this.Vf(s)];case 5:return i.sent(),this.gf(),[4,this.Ld.yl(!1)];case 6:i.sent(),i.label=7;case 7:return[2]}}))}))},e.prototype.gf=function(){var t=this;this.Xd.forEach((function(e,n){t.Ld.al(n)})),this.Zd.Dn(),this.Xd=new Map,this.Jd=new Lt(I.N)},e.prototype.Vf=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.Hd.get(a))&&0!==u.length?[4,this.L_.ic(a,!0)]:[3,8]):[3,14];case 2:return i.sent(),[4,this.L_.sc(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.zd.get(f),[4,this.Pf(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.L_.cc(a)];case 9:return d=i.sent(),[4,this.L_.sc(d)];case 10:return s=i.sent(),[4,this.rf(this.pf(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.Gd.h_(n),e)]}}))}))},e.prototype.pf=function(t){return new Tt(t.path,t.collectionGroup,t.orderBy,t.filters,t.limit,"F",t.startAt,t.endAt)},e.prototype.Pu=function(){return this.L_.Pu()},e.prototype.Id=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?(ye("SyncEngine","Ignoring unexpected query state notification."),[3,8]):[3,1];case 1:if(!this.Hd.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.L_.Va()];case 3:return r=i.sent(),o=te.ls(t,"current"===e),[4,this.cf(r,o)];case 4:return i.sent(),[3,8];case 5:return[4,this.L_.ic(t,!0)];case 6:return i.sent(),this.af(t,n),[3,8];case 7:we(),i.label=8;case 8:return[2]}}
2))}))},e.prototype.wd=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.Hd.has(o)?(ye("SyncEngine","Adding an already active target "+o),[3,5]):[4,this.L_.cc(o)]):[3,6];case 2:return a=d.sent(),[4,this.L_.sc(a)];case 3:return s=d.sent(),[4,this.rf(this.pf(a),s.targetId,!1)];case 4:d.sent(),this.Ld.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.Hd.has(t)?[4,c.L_.ic(t,!1).then((function(){p.Ld.al(t),p.af(t)})).catch(or)]:[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.yf=void 0,this.bf=[]},Ei=function(){function t(t){this.cl=t,this.vf=new Ae((function(t){return t.canonicalId()})),this.onlineState="Unknown",this.Sf=new Set,this.cl.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.vf.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.cl.listen(e)];case 2:return o.yf=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.vf.set(e,r),r.bf.push(t),t.Nd(this.onlineState),r.yf&&t.Df(r.yf)&&this.Cf(),[2]}}))}))},t.prototype.al=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.vf.get(e))&&(o=r.bf.indexOf(t))>=0&&(r.bf.splice(o,1),n=0===r.bf.length),n?[2,(this.vf.delete(e),this.cl.al(e))]:[2]}))}))},t.prototype.h_=function(t){for(var e=!1,n=0,r=t;n<r.length;n++){var i=r[n],o=i.query,a=this.vf.get(o);if(a){for(var s=0,u=a.bf;s<u.length;s++)u[s].Df(i)&&(e=!0);a.yf=i}}e&&this.Cf()},t.prototype.If=function(t,e){var n=this.vf.get(t);if(n)for(var r=0,i=n.bf;r<i.length;r++)i[r].onError(e);this.vf.delete(t)},t.prototype._f=function(t){this.onlineState=t;var e=!1;this.vf.forEach((function(n,r){for(var i=0,o=r.bf;i<o.length;i++)o[i].Nd(t)&&(e=!0)})),e&&this.Cf()},t.prototype.Ff=function(t){this.Sf.add(t),t.next()},t.prototype.Nf=function(t){this.Sf.delete(t)},t.prototype.Cf=function(){this.Sf.forEach((function(t){t.next()}))},t}(),Ti=function(){function t(t,e,n){this.query=t,this.kf=e,this.$f=!1,this.Mf=null,this.onlineState="Unknown",this.options=n||{}}return t.prototype.Df=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.$f?this.Lf(t)&&(this.kf.next(t),o=!0):this.xf(t,this.onlineState)&&(this.Of(t),o=!0),this.Mf=t,o},t.prototype.onError=function(t){this.kf.error(t)},t.prototype.Nd=function(t){this.onlineState=t;var e=!1;return this.Mf&&!this.$f&&this.xf(this.Mf,t)&&(this.Of(this.Mf),e=!0),e},t.prototype.xf=function(t,e){if(!t.fromCache)return!0;var n="Offline"!==e;return!(this.options.Bf&&n||t.docs.B()&&"Offline"!==e)},t.prototype.Lf=function(t){if(t.docChanges.length>0)return!0;var e=this.Mf&&this.Mf.hasPendingWrites!==t.hasPendingWrites;return!(!t.rs&&!e)&&!0===this.options.includeMetadataChanges},t.prototype.Of=function(t){t=Zt.os(t.query,t.docs,t.ns,t.fromCache),this.$f=!0,this.kf.next(t)},t}(),xi=function(){function t(){}return t.prototype.Uu=function(t){this.qf=t},t.prototype.dr=function(t,e,n,r){var i=this;return e.te()||n.isEqual(w.min())?this.Uf(t,e):this.qf.cr(t,r).next((function(o){var s=i.Qf(e,o);return(e.oe()||e.ae())&&i.Sd(e.Bt,s,r,n)?i.Uf(t,e):(ve()<=a.LogLevel.DEBUG&&ye("IndexFreeQueryEngine","Re-using previous result from %s to execute query: %s",n.toString(),e.toString()),i.qf.dr(t,e,n).next((function(t){return s.forEac
2h((function(e){t=t.me(e.key,e)})),t})))}))},t.prototype.Qf=function(t,e){var n=new Ft((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.Sd=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.Uf=function(t,e){return ve()<=a.LogLevel.DEBUG&&ye("IndexFreeQueryEngine","Using full collection scan to execute query: %s",e.toString()),this.qf.dr(t,e,w.min())},t}(),ki=function(){function t(t,e){this.rr=t,this.Ao=e,this.nr=[],this.Wf=1,this.lastStreamToken=A.ht,this.jf=new Ft(je.An)}return t.prototype.po=function(t){return Re.resolve(0===this.nr.length)},t.prototype.yo=function(t,e,n){var r=e.batchId,i=this.Kf(r,"acknowledged");return Ee(0===i),this.nr[i],this.lastStreamToken=n,Re.resolve()},t.prototype.vo=function(t){return Re.resolve(this.lastStreamToken)},t.prototype.So=function(t,e){return this.lastStreamToken=e,Re.resolve()},t.prototype.Do=function(t,e,n,r){var i=this.Wf;this.Wf++,this.nr.length>0&&this.nr[this.nr.length-1];var o=new Ne(i,e,n,r);this.nr.push(o);for(var a=0,s=r;a<s.length;a++){var u=s[a];this.jf=this.jf.add(new je(u.key,i)),this.rr.Fo(t,u.key.path.M())}return Re.resolve(o)},t.prototype.No=function(t,e){return Re.resolve(this.Gf(e))},t.prototype.Mo=function(t,e){var n=e+1,r=this.zf(n),i=r<0?0:r;return Re.resolve(this.nr.length>i?this.nr[i]:null)},t.prototype.Lo=function(){return Re.resolve(0===this.nr.length?-1:this.Wf-1)},t.prototype.xo=function(t){return Re.resolve(this.nr.slice())},t.prototype.or=function(t,e){var n=this,r=new je(e,0),i=new je(e,Number.POSITIVE_INFINITY),o=[];return this.jf.Ke([r,i],(function(t){var e=n.Gf(t.Nn);o.push(e)})),Re.resolve(o)},t.prototype.lr=function(t,e){var n=this,r=new Ft(ke);return e.forEach((function(t){var e=new je(t,0),i=new je(t,Number.POSITIVE_INFINITY);n.jf.Ke([e,i],(function(t){r=r.add(t.Nn)}))})),Re.resolve(this.Hf(r))},t.prototype.Rr=function(t,e){var n=e.path,r=n.length+1,i=n;I.et(i)||(i=i.child(""));var o=new je(new I(i),0),a=new Ft(ke);return this.jf.Ge((function(t){var e=t.key.path;return!!n.q(e)&&(e.length===r&&(a=a.add(t.Nn)),!0)}),o),Re.resolve(this.Hf(a))},t.prototype.Hf=function(t){var e=this,n=[];return t.forEach((function(t){var r=e.Gf(t);null!==r&&n.push(r)})),n},t.prototype.Bo=function(t,e){var n=this;Ee(0===this.Kf(e.batchId,"removed")),this.nr.shift();var r=this.jf;return Re.forEach(e.mutations,(function(i){var o=new je(i.key,e.batchId);return r=r.delete(o),n.Ao.Qo(t,i.key)})).next((function(){n.jf=r}))},t.prototype.Uo=function(t){},t.prototype.Fn=function(t,e){var n=new je(e,0),r=this.jf.ze(n);return Re.resolve(e.isEqual(r&&r.key))},t.prototype.Wo=function(t){return this.nr.length,Re.resolve()},t.prototype.Kf=function(t,e){return this.zf(t)},t.prototype.zf=function(t){return 0===this.nr.length?0:t-this.nr[0].batchId},t.prototype.Gf=function(t){var e=this.zf(t);return e<0||e>=this.nr.length?null:this.nr[e]},t}(),Ii=function(){function t(t,e){this.rr=t,this.Yf=e,this.docs=new Lt(I.N),this.size=0}return t.prototype.Gn=function(t,e,n){var r=e.key,i=this.docs.get(r),o=i?i.size:0,a=this.Yf(e);return this.docs=this.docs.me(r,{Ea:e,size:a,readTime:n}),this.size+=a-o,this.rr.Fo(t,r.path.M())},t.prototype.Hn=function(t){var e=this.docs.get(t);e&&(this.docs=this.docs.remove(t),this.size-=e.size)},t.prototype.Yn=function(t,e){var n=this.docs.get(e);return Re.resolve(n?n.Ea:null)},t.prototype.getEntries=function(t,e){var n=this,r=Bt();return e.forEach((function(t){var e=n.docs.get(t);r=r.me(t,e?e.Ea:null)})),Re.resolve(r)},t.prototype.dr=function(t,e,n){for(var r=Ht(),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.Ea,l=u.readTime;if(!e.path.q(s.path))break;l.S(n)<=0||c instanceof gt&&e.matches(c)&&(r=r.me(c.key,c))}return Re.resolve(r)},t.prototype.Jf=function(t,e){return Re.forEach(this.docs,(function(t){return e(t)}))},t.prototype.ba=function(e){return new t.va(this)},t.prototype.Da=function(t){return Re.resolve(this.size)},t}();Ii.va=function(t){function e(e){var n=this;return(n=t.call(this)||this).Ca=e,n}return i.__extends(e,t),e.prototype.Zn=function(t){var e=this,n=[];
2return this.Wn.forEach((function(r,i){i?n.push(e.Ca.Gn(t,i,e.readTime)):e.Ca.Hn(r)})),Re.Un(n)},e.prototype.Jn=function(t,e){return this.Ca.Yn(t,e)},e.prototype.Xn=function(t,e){return this.Ca.getEntries(t,e)},e}(Le);var Si=function(){function t(t){this.persistence=t,this.Xf=new Ae((function(t){return t.canonicalId()})),this.lastRemoteSnapshotVersion=w.min(),this.highestTargetId=0,this.Zf=0,this.tT=new Pe,this.targetCount=0,this.eT=mn.Ko()}return t.prototype.js=function(t,e){return this.Xf.forEach((function(t,n){return e(n)})),Re.resolve()},t.prototype.Jo=function(t){return Re.resolve(this.lastRemoteSnapshotVersion)},t.prototype.Xo=function(t){return Re.resolve(this.Zf)},t.prototype.zo=function(t){return this.highestTargetId=this.eT.next(),Re.resolve(this.highestTargetId)},t.prototype.Zo=function(t,e,n){return n&&(this.lastRemoteSnapshotVersion=n),e>this.Zf&&(this.Zf=e),Re.resolve()},t.prototype.ea=function(t){this.Xf.set(t.target,t);var e=t.targetId;e>this.highestTargetId&&(this.eT=new mn(e),this.highestTargetId=e),t.sequenceNumber>this.Zf&&(this.Zf=t.sequenceNumber)},t.prototype.ta=function(t,e){return this.ea(e),this.targetCount+=1,Re.resolve()},t.prototype.ia=function(t,e){return this.ea(e),Re.resolve()},t.prototype.na=function(t,e){return this.Xf.delete(e.target),this.tT.Sn(e.targetId),this.targetCount-=1,Re.resolve()},t.prototype.Hh=function(t,e,n){var r=this,i=0,o=[];return this.Xf.forEach((function(a,s){s.sequenceNumber<=e&&null===n.get(s.targetId)&&(r.Xf.delete(a),o.push(r.ra(t,s.targetId)),i++)})),Re.Un(o).next((function(){return i}))},t.prototype.aa=function(t){return Re.resolve(this.targetCount)},t.prototype.ua=function(t,e){var n=this.Xf.get(e)||null;return Re.resolve(n)},t.prototype.ca=function(t,e,n){this.tT.pn(e,n);var r=this.persistence.Ao,i=[];return r&&e.forEach((function(e){i.push(r.gn(t,e))})),Re.Un(i)},t.prototype._a=function(t,e,n){this.tT.vn(e,n);var r=this.persistence.Ao,i=[];return r&&e.forEach((function(e){i.push(r.yn(t,e))})),Re.Un(i)},t.prototype.ra=function(t,e){return this.tT.Sn(e),Re.resolve()},t.prototype.la=function(t,e){var n=this.tT.Cn(e);return Re.resolve(n)},t.prototype.Fn=function(t,e){return Re.resolve(this.tT.Fn(e))},t}(),_i=function(){function t(t){var e=this;this.sT={},this.su=new Ue(0),this.qa=!1,this.qa=!0,this.Ao=t(this),this.Ha=new Si(this),this.rr=new _n,this.ir=new Ii(this.rr,(function(t){return e.Ao.iT(t)}))}return t.prototype.start=function(){return Promise.resolve()},t.prototype.Iu=function(){return this.qa=!1,Promise.resolve()},Object.defineProperty(t.prototype,"Uh",{get:function(){return this.qa},enumerable:!0,configurable:!0}),t.prototype.nu=function(){},t.prototype.yu=function(){return this.rr},t.prototype.Vu=function(t){var e=this.sT[t.s()];return e||(e=new ki(this.rr,this.Ao),this.sT[t.s()]=e),e},t.prototype.gu=function(){return this.Ha},t.prototype.pu=function(){return this.ir},t.prototype.runTransaction=function(t,e,n){var r=this;ye("MemoryPersistence","Starting transaction:",t);var i=new Oi(this.su.next());return this.Ao.nT(),n(i).next((function(t){return r.Ao.rT(i).next((function(){return t}))})).Bn().then((function(t){return i.sr(),t}))},t.prototype.hT=function(t,e){return Re.Qn(Object.values(this.sT).map((function(n){return function(){return n.Fn(t,e)}})))},t}(),Oi=function(t){function e(e){var n=this;return(n=t.call(this)||this).Oa=e,n}return i.__extends(e,t),e}(Me),Ai=function(){function t(t){this.persistence=t,this.Su=null,this.oT=null}return t.aT=function(e){return new t(e)},Object.defineProperty(t.prototype,"uT",{get:function(){if(this.oT)return this.oT;throw we()},enumerable:!0,configurable:!0}),t.prototype.Fu=function(t){this.Su=t},t.prototype.gn=function(t,e){return this.uT.delete(e),Re.resolve()},t.prototype.yn=function(t,e){return this.uT.add(e),Re.resolve()},t.prototype.Qo=function(t,e){return this.uT.add(e),Re.resolve()},t.prototype.removeTarget=function(t,e){var n=this,r=this.persistence.gu();return r.la(t,e.targetId).next((function(t){t.forEach((function(t){return n.uT.add(t)}))})).next((function(){return r.na(t,e)}))},t.prototype.nT=function(){this.oT=new Set},t.prototype.rT=function(t){var e=this,n=this.persistence.pu().ba();return Re.forEach(this.uT,(function(r){return e.cT(t,r).next((function(t){t||n.Hn(r)}))}
2)).next((function(){return e.oT=null,n.apply(t)}))},t.prototype.ku=function(t,e){var n=this;return this.cT(t,e).next((function(t){t?n.uT.delete(e):n.uT.add(e)}))},t.prototype.iT=function(t){return 0},t.prototype.cT=function(t,e){var n=this;return Re.Qn([function(){return n.persistence.gu().Fn(t,e)},function(){return n.persistence.hT(t,e)},function(){return Re.resolve(n.Su.Fn(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.jd=this._T(t),this.persistence=this.lT(t),[4,this.persistence.start()];case 1:return n.sent(),this.dT=this.fT(t),this.L_=this.TT(t),this.Ld=this.ET(t),this.cl=this.IT(t),this.wT=this.RT(t),this.jd.b_=function(t){return e.cl.Nd(t,1)},this.Ld.cl=this.cl,[4,this.L_.start()];case 2:return n.sent(),[4,this.jd.start()];case 3:return n.sent(),[4,this.Ld.start()];case 4:return n.sent(),[4,this.Ld.yl(this.cl.if)];case 5:return n.sent(),[2]}}))}))},t.prototype.RT=function(t){return new Ei(this.cl)},t.prototype.fT=function(t){return null},t.prototype.TT=function(t){return new rr(this.persistence,new xi,t.mT)},t.prototype.lT=function(t){return new _i(Ai.aT)},t.prototype.ET=function(t){var e=this;return new ei(this.L_,t.w_,t.qr,(function(t){return e.cl.Nd(t,0)}),t.platform.AT())},t.prototype._T=function(t){return new fi},t.prototype.IT=function(t){return new gi(this.L_,this.Ld,this.jd,t.mT,t.Kd)},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.iu((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.cl.yl(t)];case 1:return e.sent(),this.dT&&(t&&!this.dT.Uh?this.dT.start(this.L_):t||this.dT.stop()),[2]}}))}))}))];case 2:return r.sent(),[2]}}))}))},e.prototype.TT=function(t){return new ir(this.persistence,new xi,t.mT)},e.prototype.IT=function(t){var e=new bi(this.L_,this.Ld,this.jd,t.mT,t.Kd);return this.jd instanceof li&&(this.jd.cl=e),e},e.prototype.fT=function(t){var e=this.persistence.Ao.Lh;return new Xe(e,t.qr)},e.prototype.lT=function(t){var e=Qn.vu(t.PT),n=t.platform.Dc(t.PT.ii);return new Qn(t.VT.synchronizeTabs,e,t.clientId,t.platform,$e.Dh(t.VT.cacheSizeBytes),t.qr,n,this.jd)},e.prototype._T=function(t){if(t.VT.gT&&t.VT.synchronizeTabs){if(!li.so(t.platform))throw new p(h.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");var e=Qn.vu(t.PT);return new li(t.qr,t.platform,e,t.clientId,t.mT)}return new fi},e.prototype.clearPersistence=function(t){var e=Qn.vu(t);return Qn.clearPersistence(e)},e}(Ni),Pi=function(){function t(t,e,n,r){this.platform=t,this.PT=e,this.credentials=n,this.qr=r,this.clientId=xe.cn()}return t.prototype.start=function(t,e){var n=this;this.pT();var r=new ze,i=new ze,o=!1;return this.credentials.l((function(a){if(!o)return o=!0,ye("FirestoreClient","Initializing. user=",a.uid),n.yT(t,e,a,i).then(r.resolve,r.reject);n.qr.Hr((function(){return n.pl(a)}))})),this.qr.Hr((function(){return r.promise})),i.promise},t.prototype.enableNetwork=function(){var t=this;return this.pT(),this.qr.enqueue((function(){return t.cl.enableNetwork()}))},t.prototype.yT=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.bT(this.PT)];case 1:return o=l.sent(),a=this.platform.Dc(this.PT.ii),s=function(t,e,n){return new Qr(t,e,n)}(o,this.credentials,a),[4,t.initialize({qr:this.qr,PT:this.PT,platform:this.platform,w_:s,clientId:this.clientId,mT:n,Kd:100,VT:e})];case 2:return l.sent(),this.persistence=t.persistence,this.jd=t.jd,this.L_=t.L_,this.Ld=t.Ld,this.cl=t.cl,this.dT=t.dT,this.vT=t.wT,this.persistence.nu((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.ST(u))throw u;return[2,(console.warn("Error enabling offline persistence. Falling back to persistence disabled: "+u),this.yT(new Ni,{gT:!1},n,r))];case 4:return[2]}}
2))}))},t.prototype.ST=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.qr.hh)throw new p(h.FAILED_PRECONDITION,"The client has already been terminated.")},t.prototype.pl=function(t){return this.qr.Th(),ye("FirestoreClient","Credential Changed. Current user: "+t.uid),this.cl.pl(t)},t.prototype.disableNetwork=function(){var t=this;return this.pT(),this.qr.enqueue((function(){return t.cl.disableNetwork()}))},t.prototype.terminate=function(){var t=this;return this.qr.lh((function(){return i.__awaiter(t,void 0,void 0,(function(){return i.__generator(this,(function(t){switch(t.label){case 0:return this.dT&&this.dT.stop(),[4,this.Ld.Iu()];case 1:return t.sent(),[4,this.jd.Iu()];case 2:return t.sent(),[4,this.persistence.Iu()];case 3:return t.sent(),this.credentials.T(),[2]}}))}))}))},t.prototype.waitForPendingWrites=function(){var t=this;this.pT();var e=new ze;return this.qr.Hr((function(){return t.cl.Tf(e)})),e.promise},t.prototype.listen=function(t,e,n){var r=this;this.pT();var i=new Ti(t,e,n);return this.qr.Hr((function(){return r.vT.listen(i)})),i},t.prototype.al=function(t){var e=this;this.DT||this.qr.Hr((function(){return e.vT.al(t)}))},t.prototype.CT=function(t){var e=this;return this.pT(),this.qr.enqueue((function(){return e.L_.ec(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.FT=function(t){var e=this;return this.pT(),this.qr.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.L_.nc(t,!0)];
2case 1:return e=i.sent(),n=new di(t,e.rc),r=n.yd(e.documents),[2,n.Zn(r,!1).snapshot]}}))}))}))},t.prototype.write=function(t){var e=this;this.pT();var n=new ze;return this.qr.Hr((function(){return e.cl.write(t,n)})),n.promise},t.prototype.ii=function(){return this.PT.ii},t.prototype.Ff=function(t){var e=this;this.pT(),this.qr.Hr((function(){return e.vT.Ff(t),Promise.resolve()}))},t.prototype.Nf=function(t){this.DT||this.vT.Nf(t)},Object.defineProperty(t.prototype,"DT",{get:function(){return this.qr.hh},enumerable:!0,configurable:!0}),t.prototype.transaction=function(t){var e=this;this.pT();var n=new ze;return this.qr.Hr((function(){return e.cl.runTransaction(e.qr,t,n),Promise.resolve()})),n.promise},t}(),ji=function(){function t(t){this.observer=t,this.muted=!1}return t.prototype.next=function(t){this.NT(this.observer.next,t)},t.prototype.error=function(t){this.NT(this.observer.error,t)},t.prototype.kT=function(){this.muted=!0},t.prototype.NT=function(t,e){var n=this;this.muted||setTimeout((function(){n.muted||t(e)}),0)},t}();function Ri(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 Li=function(){function t(t,e,n,r){this.firestore=t,this.timestampsInSnapshots=e,this.$T=n,this.converter=r}return t.prototype.MT=function(t){switch(D(t)){case 0:return null;case 1:return t.booleanValue;case 2:return q(t.integerValue||t.doubleValue);case 3:return this.LT(t.timestampValue);case 4:return this.xT(t);case 5:return t.stringValue;case 6:return new Sr(H(t.bytesValue));case 7:return this.OT(t.referenceValue);case 8:return this.BT(t.geoPointValue);case 9:return this.qT(t.arrayValue);case 10:return this.UT(t.mapValue);default:throw we()}},t.prototype.UT=function(t){var e=this,n={};return _(t.fields||{},(function(t,r){n[t]=e.MT(r)})),n},t.prototype.BT=function(t){return new Lr(q(t.latitude),q(t.longitude))},t.prototype.qT=function(t){var e=this;return(t.values||[]).map((function(t){return e.MT(t)}))},t.prototype.xT=function(t){switch(this.$T){case"previous":var e=function t(e){var n=e.mapValue.fields.__previous_value__;return j(n)?t(n):n}(t);return null==e?null:this.MT(e);case"estimate":return this.LT(R(t));default:return null}},t.prototype.LT=function(t){var e=B(t),n=new b(e.seconds,e.nanos);return this.timestampsInSnapshots?n:n.toDate()},t.prototype.OT=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.Lc)||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.Lc.projectId+"/"+this.firestore.Lc.database+") instead."),new zi(r,this.firestore,this.converter)},t}(),Di=$e.Nh,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 code 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=$e.$h;else{if(t.cacheSizeBytes!==Di&&t.cacheSizeBytes<$e.kh)throw new p(h.INVALID_ARGUMENT,"cacheSizeBytes must be at least "+$e.kh);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}(),Fi=function(){function t(e,n,r){var o=this;if(void 0===r&&(r=new Ni),this.QT=null,this.WT=new He,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.jT(),[4,this.KT.terminate()];case 1:return t.sent(),[2]}}))}))}}
2,"object"==typeof e.options){var a=e;this.QT=a,this.Lc=t.GT(a),this.zT=a.name,this.HT=new m(n)}else{var s=e;if(!s.projectId)throw new p(h.INVALID_ARGUMENT,"Must provide projectId");this.Lc=new Oe(s.projectId,s.database),this.zT="[DEFAULT]",this.HT=new v}this.YT=r,this.JT=new Mi({}),this.XT=new zr(this.Lc)}return t.prototype.settings=function(t){sr("Firestore.settings",arguments,1),lr("Firestore.settings","object",1,t);var e=new Mi(t);if(this.KT&&!this.JT.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.JT=e,void 0!==e.credentials&&(this.HT=function(t){if(!t)return new v;switch(t.type){case"gapi":var e=t.ZT;return Ee(!("object"!=typeof e||null===e||!e.auth||!e.auth.getAuthHeaderValueForFirstParty)),new g(e,t.V||"0");case"provider":return t.ZT;default:throw new p(h.INVALID_ARGUMENT,"makeCredentialsProvider failed due to invalid credential type")}}(e.credentials))},t.prototype.enableNetwork=function(){return this.jT(),this.KT.enableNetwork()},t.prototype.disableNetwork=function(){return this.jT(),this.KT.disableNetwork()},t.prototype.enablePersistence=function(t){var e,n;if(this.KT)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.tE(this.YT,{gT:!0,cacheSizeBytes:this.JT.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.KT&&!this.KT.DT)throw new p(h.FAILED_PRECONDITION,"Persistence cannot be cleared after this Firestore instance is initialized.");return t=new ze,[2,(this.WT.oh((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.eE(),[4,this.YT.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,"sE",{get:function(){return this.jT(),this.KT.DT},enumerable:!0,configurable:!0}),t.prototype.waitForPendingWrites=function(){return this.jT(),this.KT.waitForPendingWrites()},t.prototype.onSnapshotsInSync=function(t){if(this.jT(),Ri(t))return this.iE(t);lr("Firestore.onSnapshotsInSync","function",1,t);var e={next:t};return this.iE(e)},t.prototype.iE=function(t){var e=this,n=new ji({next:function(){t.next&&t.next()},error:function(t){throw we()}});return this.KT.Ff(n),function(){n.kT(),e.KT.Nf(n)}},t.prototype.jT=function(){return this.KT||this.tE(new Ni,{gT:!1}),this.KT},t.prototype.eE=function(){return new _e(this.Lc,this.zT,this.JT.host,this.JT.ssl,this.JT.forceLongPolling)},t.prototype.tE=function(t,e){var n=this.eE();return this.KT=new Pi(pe.nt(),n,this.HT,this.WT),this.KT.start(t,e)},t.GT=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.QT)throw new p(h.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this.QT},enumerable:!0,configurable:!0}),t.prototype.collection=function(t){return sr("Firestore.collection",arguments,1),lr("Firestore.collection","non-empty string",1,t),this.jT(),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.jT(),zi.nE(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.jT(),new Wi(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.jT().transaction((function(n){return t(new Vi(e,n))}))},t.prototype.batch=function(){return this.jT(),new Ui(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":me(a.LogLevel.DEBUG);break;case"error":me(a.LogLevel.ERROR);break;case"silent":me(a.LogLevel.SILENT);break;default:throw new p(h.INVALID_ARGUMENT,"Invalid log level: "+t)}},t.prototype.rE=function(){return this.JT.timestampsInSnapshots},t}(),Vi=function(){function t(t,e){this.hE=t,this.oE=e}return t.prototype.get=function(t){var e=this;sr("Transaction.get",arguments,1);var n=Ji("Transaction.get",t,this.hE);return this.oE.V_([n.xc]).then((function(t){if(!t||1!==t.length)return we();var r=t[0];if(r instanceof bt)return new qi(e.hE,n.xc,null,!1,!1,n.aE);if(r instanceof gt)return new qi(e.hE,n.xc,r,!1,!1,n.aE);throw we()}))},t.prototype.set=function(t,e,n){cr("Transaction.set",arguments,2,3);var r=Ji("Transaction.set",t,this.hE);n=$i("Transaction.set",n);var i=Zi(r.aE,e,"Transaction.set"),o=i[0],a=i[1],s=n.merge||n.mergeFields?this.hE.XT.Nc(a,o,n.mergeFields):this.hE.XT.Cc(a,o);return this.oE.set(r.xc,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 _r?(ur("Transaction.update",arguments,3),r=Ji("Transaction.update",t,this.hE),i=this.hE.XT.$c("Transaction.update",e,n,o)):(sr("Transaction.update",arguments,2),r=Ji("Transaction.update",t,this.hE),i=this.hE.XT.kc("Transaction.update",e)),this.oE.update(r.xc,i),this},t.prototype.delete=function(t){sr("Transaction.delete",arguments,1
2);var e=Ji("Transaction.delete",t,this.hE);return this.oE.delete(e.xc),this},t}(),Ui=function(){function t(t){this.hE=t,this.uE=[],this.cE=!1}return t.prototype.set=function(t,e,n){cr("WriteBatch.set",arguments,2,3),this._E();var r=Ji("WriteBatch.set",t,this.hE);n=$i("WriteBatch.set",n);var i=Zi(r.aE,e,"WriteBatch.set"),o=i[0],a=i[1],s=n.merge||n.mergeFields?this.hE.XT.Nc(a,o,n.mergeFields):this.hE.XT.Cc(a,o);return this.uE=this.uE.concat(s.gc(r.xc,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._E(),"string"==typeof e||e instanceof _r?(ur("WriteBatch.update",arguments,3),r=Ji("WriteBatch.update",t,this.hE),i=this.hE.XT.$c("WriteBatch.update",e,n,o)):(sr("WriteBatch.update",arguments,2),r=Ji("WriteBatch.update",t,this.hE),i=this.hE.XT.kc("WriteBatch.update",e)),this.uE=this.uE.concat(i.gc(r.xc,ot.exists(!0))),this},t.prototype.delete=function(t){sr("WriteBatch.delete",arguments,1),this._E();var e=Ji("WriteBatch.delete",t,this.hE);return this.uE=this.uE.concat(new lt(e.xc,ot.ft())),this},t.prototype.commit=function(){return this._E(),this.cE=!0,this.uE.length>0?this.hE.jT().write(this.uE):Promise.resolve()},t.prototype._E=function(){if(this.cE)throw new p(h.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")},t}(),zi=function(){function t(t,e,n){this.xc=t,this.firestore=e,this.aE=n,this.KT=this.firestore.jT()}return t.nE=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.xc.path.O()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return new Ki(this.xc.path.M(),this.firestore,this.aE)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this.xc.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.xc.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.xc.isEqual(e.xc)&&this.aE===e.aE},t.prototype.set=function(t,e){cr("DocumentReference.set",arguments,1,2),e=$i("DocumentReference.set",e);var n=Zi(this.aE,t,"DocumentReference.set"),r=n[0],i=n[1],o=e.merge||e.mergeFields?this.firestore.XT.Nc(i,r,e.mergeFields):this.firestore.XT.Cc(i,r);return this.KT.write(o.gc(this.xc,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 _r?(ur("DocumentReference.update",arguments,2),n=this.firestore.XT.$c("DocumentReference.update",t,e,r)):(sr("DocumentReference.update",arguments,1),n=this.firestore.XT.kc("DocumentReference.update",t)),this.KT.write(n.gc(this.xc,ot.exists(!0)))},t.prototype.delete=function(){return sr("DocumentReference.delete",arguments,0),this.KT.write([new lt(this.xc,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]||Ri(t[i])||(br("DocumentReference.onSnapshot",r=t[i],["includeMetadataChanges"]),pr("DocumentReference.onSnapshot","boolean","includeMetadataChanges",r.includeMetadataChanges),i++);var o={includeMetadataChanges:r.includeMetadataChanges};return Ri(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.lE(o,n)},t.prototype.lE=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 ji({next:function(t){if(e.next){var r=t.docs.get(n.xc);
2e.next(new qi(n.firestore,n.xc,r,t.fromCache,t.hasPendingWrites,n.aE))}},error:r}),o=this.KT.listen(Tt.Wt(this.xc.path),i,t);return function(){i.kT(),n.KT.al(o)}},t.prototype.get=function(t){var e=this;return cr("DocumentReference.get",arguments,0,1),Yi("DocumentReference.get",t),new Promise((function(n,r){t&&"cache"===t.source?e.firestore.jT().CT(e.xc).then((function(t){n(new qi(e.firestore,e.xc,t,!0,t instanceof gt&&t.At,e.aE))}),r):e.dE(n,r,t)}))},t.prototype.dE=function(t,e,n){var r=this.lE({includeMetadataChanges:!0,Bf:!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.xc,this.firestore,e)},t}(),Bi=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.hE=t,this.xc=e,this.fE=n,this.TE=r,this.EE=i,this.aE=o}return t.prototype.data=function(t){if(cr("DocumentSnapshot.data",arguments,0,1),t=Xi("DocumentSnapshot.data",t),this.fE){if(this.aE){var e=new Hi(this.hE,this.xc,this.fE,this.TE,this.EE);return this.aE.fromFirestore(e,t)}return new Li(this.hE,this.hE.rE(),t.serverTimestamps,void 0).MT(this.fE.Mt())}},t.prototype.get=function(t,e){if(cr("DocumentSnapshot.get",arguments,1,2),e=Xi("DocumentSnapshot.get",e),this.fE){var n=this.fE.data().field(Gr("DocumentSnapshot.get",t));if(null!==n)return new Li(this.hE,this.hE.rE(),e.serverTimestamps,this.aE).MT(n)}},Object.defineProperty(t.prototype,"id",{get:function(){return this.xc.path.O()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ref",{get:function(){return new zi(this.xc,this.hE,this.aE)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"exists",{get:function(){return null!==this.fE},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"metadata",{get:function(){return new Bi(this.EE,this.TE)},enumerable:!0,configurable:!0}),t.prototype.isEqual=function(e){if(!(e instanceof t))throw wr("isEqual","DocumentSnapshot",1,e);return this.hE===e.hE&&this.TE===e.TE&&this.xc.isEqual(e.xc)&&(null===this.fE?null===e.fE:this.fE.isEqual(e.fE))&&this.aE===e.aE},t}(),Hi=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),Wi=function(){function t(t,e,n){this.IE=t,this.firestore=e,this.aE=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 "+yr(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.wE(r,o);for(var s=[],u=0,c=r;u<c.length;u++){var l=c[u];s.push(this.RE(l))}i={arrayValue:{values:s}}}else i=this.RE(r)}else"in"!==o&&"array-contains-any"!==o||this.wE(r,o),i=this.firestore.XT.Mc("Query.where",r,"in"===o);var f=xt.create(a,o,i);return this.mE(f),new t(this.IE.Gt(f),this.firestore,this.aE)},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.IE.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.IE.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.AE(o),new t(this.IE.zt(o),this.firestore,this.aE)},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.IE.Ht(e),this.firestore,this.aE)},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.IE.Yt(e),this.firestore,this.aE)},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.PE("Query.startAt",e,n,!0);return new t(this.IE.Jt(i),this.firestore,this.aE)},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.PE("Query.startAfter",e,n,!1);return new t(this.IE.Jt(i),this.firestore,this.aE)},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.PE("Query.endBefore",e,n,!0);return new t(this.IE.Xt(i),this.firestore,this.aE)},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.PE("Query.endAt",e,n,!1);return new t(this.IE.Xt(i),this.firestore,this.aE)},t.prototype.isEqual=function(e){if(!(e instanceof t))throw wr("isEqual","Query",1,e);return this.firestore===e.firestore&&this.IE.isEqual(e.IE)},t.prototype.withConverter=function(e){return new t(this.IE,this.firestore,e)},t.prototype.PE=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.VE(i.fE,r)}var o=[e].concat(n);return this.gE(t,o,r)},t.prototype.VE=function(t,e){for(var n=[],r=0,i=this.IE.orderBy;r<i.length;r++){var o=i[r];if(o.field.Y())n.push(W(this.firestore.Lc,t.key));else{var a=t.field(o.field);if(j(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.gE=function(t,e,n){var r=this.IE.Ot;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.IE._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.IE.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(W(this.firestore.Lc,u))}else{var c=this.firestore.XT.Mc(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]||Ri(t[i])||(br("Query.onSnapshot",r=t[i],["includeMetadataChanges"]),pr("Query.onSnapshot","boolean","includeMetadataChanges",r.includeMetadataChanges),i++),Ri(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.IE),this.lE(r,n)},t.prototype.lE=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 ji({next:function(t){e.next&&e.next(new Gi(n.firestore,
2n.IE,t,n.aE))},error:r}),o=this.firestore.jT(),a=o.listen(this.IE,i,t);return function(){i.kT(),o.al(a)}},t.prototype.pE=function(t){if(t.ae()&&0===t.Ot.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),Yi("Query.get",t),this.pE(this.IE),new Promise((function(n,r){t&&"cache"===t.source?e.firestore.jT().FT(e.IE).then((function(t){n(new Gi(e.firestore,e.IE,t,e.aE))}),r):e.dE(n,r,t)}))},t.prototype.dE=function(t,e,n){var r=this.lE({includeMetadataChanges:!0,Bf:!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.RE=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.IE._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.IE.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 W(this.firestore.Lc,new I(e))}if(t instanceof zi){var n=t;return W(this.firestore.Lc,n.xc)}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: "+yr(t)+".")},t.prototype.wE=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.mE=function(t){if(t instanceof xt){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.IE.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.IE.Kt();null!==a&&this.yE(t.field,a)}else if(i||r){var s=null;if(i&&(s=this.IE.ce(n)),null===s&&r&&(s=this.IE.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.AE=function(t){if(null===this.IE.Kt()){var e=this.IE.jt();null!==e&&this.yE(e,t.field)}},t.prototype.yE=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.hE=t,this.bE=e,this.vE=n,this.aE=r,this.SE=null,this.DE=null,this.metadata=new Bi(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.vE.docs.B()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.vE.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.vE.docs.forEach((function(r){t.call(e,n.CE(r))}))},Object.defineProperty(t.prototype,"query",{get:function(){return new Wi(this.bE,this.hE,this.aE)},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.vE.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.SE&&this.DE===e||(this.SE=function(t,e,n,r){if(n.ss.B()){var i=0;return n.docChanges.map((function(e){var o=new Hi(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 Hi(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:Qi(e.type),doc:i,oldIndex:a,newIndex:s}}))}(this.hE,e,this.vE,this.aE),this.DE=e),this.SE},t.prototype.isEqual=function(e){if(!(e instanceof t))throw wr("isEqual","QuerySnapshot",1,e);return this.hE===e.hE&&this.bE.isEqual(e.bE)&&this.vE.isEqual(e.vE)&&this.aE===e.aE},t.prototype.CE=function(t){return new Hi(this.hE,t.key,t,this.metadata.fromCache,this.vE.ns.has(t.key),this.aE)},t}(),Ki=function(t){function e(e,n,r){var i=this;if((i=t.call(this,Tt.Wt(e),n,r)||this).FE=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.IE.path.O()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){var t=this.IE.path.M();return t.B()?null:new zi(new I(t),this.firestore)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this.IE.path.j()},enumerable:!0,configurable:!0}),e.prototype.doc=function(t){if(cr("CollectionReference.doc",arguments,0,1),0===arguments.length&&(t=xe.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 zi.nE(this.IE.path.child(e),this.firestore,this.aE)},e.prototype.add=function(t){sr("CollectionReference.add",arguments,1),lr("CollectionReference.add","object",1,this.aE?this.aE.toFirestore(t):t);var e=this.doc();return e.set(t).then((function(){return e}))},e.prototype.withConverter=function(t){return new e(this.FE,this.firestore,t)},e}(Wi);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: "+yr(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: "+yr(r[o]))}(t,"mergeFields",0,r,(function(t){return"string"==typeof t||t instanceof _r}))}(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 Yi(t,e){fr(t,"object",1,e),e&&(br(t,e,["source"]),dr(t,0,"source",e.source,["default","server","cache"]))}function Ji(t,e,n){if(e instanceof zi){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 Qi(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(Fi,"Use firebase.firestore() instead."),no=to(Vi,"Use firebase.firestore().runTransaction() instead."),ro=to(Ui,"Use firebase.firestore().batch() instead."),io=to(zi,"Use firebase.firestore().doc() instead."),oo=to(qi),ao=to(Hi),so=to(Wi),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 jr(t)},t.increment=function(t){return lr("FieldValue.increment","number",1,t),sr("FieldValue.increment",arguments,1),new Rr(t)},t.prototype.isEqual=function(t){return this===t},t}(),"Use FieldValue.<field>() instead."),fo=to(Sr,"Use Blob.fromUint8Array() or Blob.fromBase64String() instead."),ho={Firestore:eo,GeoPoint:Lr,Timestamp:b,Blob:fo,Transaction:no,WriteBatch:ro,DocumentReference:io,DocumentSnapshot:oo,Query:so,QueryDocumentSnapshot:ao,QuerySnapshot:uo,CollectionReference:co,FieldPath:_r,FieldValue:lo,setLogLevel:Fi.setLogLevel,CACHE_SIZE_UNLIMITED:Di},po=function(){function t(){}return t.prototype.Q_=function(t){},t.prototype.Iu=function(){},t}(),vo=function(){function t(){var t=this;this.NE=function(){return t.kE()},this.$E=function(){return t.ME()},this.LE=[],this.xE()}return t.prototype.Q_=function(t){this.LE.push(t)},t.prototype.Iu=function(){window.removeEventListener("online",this.NE),window.removeEventListener("offline",this.$E)},t.prototype.xE=function(){window.addEventListener("online",this.NE),window.addEventListener("offline",this.$E)},t.prototype.kE=function(){ye("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(var t=0,e=this.LE;t<e.length;t++)(0,e[t])(0)},t.prototype.ME=function(){ye("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(var t=0,e=this.LE;t<e.length;t++)(0,e[t])(1)},t.so=function(){return"undefined"!=typeof window&&void 0!==window.addEventListener&&void 0!==window.removeEventListener},t}(),mo=function(){function t(t){this.OE=t.OE,this.BE=t.BE}return t.prototype.n_=function(t){this.qE=t},t.prototype.Zc=function(t){this.UE=t},t.prototype.onMessage=function(t){this.QE=t},t.prototype.close=function(){this.BE()},t.prototype.send=function(t){this.OE(t)},t.prototype.WE=function(){this.qE()},t.prototype.jE=function(t){this.UE(t)},t.prototype.KE=function(t){this.QE(t)},t}(),yo={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.GE=e+"://"+t.host,this.forceLongPolling=t.forceLongPolling}return t.prototype.zE=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.E_=function(t,e,n){var r=this,i=this.HE(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();ye("Connection","XHR received:",JSON.stringify(e)),o(e);break;case c.ErrorCode.TIMEOUT:ye("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(ye("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 ye("Connection",'RPC "'+t+'" failed'),a(new p(h.UNAVAILABLE,"Connection failed."));break;default:we()}}finally{ye("Connection",'RPC "'+t+'" completed.')}}));var u=Object.assign({},e);delete u.database;var l=JSON.stringify(u);ye("Connection","XHR sending: ",i+" "+l);var f={"Content-Type":"text/plain"};r.zE(f,n),s.send(i,"POST",l,f,15)}))},t.prototype.I_=function(t,e,n){return this.E_(t,e,n)},t.prototype.r_=function(t,e){var n=[this.GE,"/","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.zE(i.initMessageHeaders,e),s.isMobileCordova()||s.isReactNative()||s.isElectron()||s.isIE()||s.isUWP()||s.isBrowserExtension()||(i.httpHeadersOverwriteParam="$httpHeaders");var o=n.join("");ye("Connection","Creating WebChannel: "+o+" "+i);var a=r.createWebChannel(o,i),u=!1,l=!1,f=new mo({OE:function(t){l?ye("Connection","Not sending because WebChannel is closed:",t):(u||(ye("Connection","Opening WebChannel transport."),a.open(),u=!0),ye("Connection","WebChannel sending:",t),a.send(t))},BE: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||ye("Connection","WebChannel transport opened.")})),d(c.WebChannel.EventType.CLOSE,(function(){l||(l=!0,ye("Connection","WebChannel transport closed"),f.jE())}
2)),d(c.WebChannel.EventType.ERROR,(function(t){l||(l=!0,ye("Connection","WebChannel transport errored:",t),f.jE(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){ye("Connection","WebChannel received error:",i);var o=i.status,s=function(t){var e=vt[t];if(void 0!==e)return Rt(e)}(o),u=i.message;void 0===s&&(s=h.INTERNAL,u="Unknown error status: "+o+" with message "+i.message),l=!0,f.jE(new p(s,u)),a.close()}else ye("Connection","WebChannel received:",n),f.KE(n)}})),setTimeout((function(){f.WE()}),0),f},t.prototype.HE=function(t){var e=yo[t];return this.GE+"/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 Fi(t,e,new Ci)}(t.getProvider("app").getImmediate(),t.getProvider("auth-internal"))}),"PUBLIC").setServiceProps(Object.assign({},ho)))}(t),t.registerVersion("@firebase/firestore","1.14.3")}pe.an(new(function(){function t(){this._c="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.bT=function(t){return Promise.resolve(new bo(t))},t.prototype.AT=function(){return vo.so()?new vo:new po},t.prototype.Dc=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 Yn})),n.d(e,"EventType",(function(){return Jn})),n.d(e,"WebChannel",(function(){return Qn})),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 m(t,e,n){return(m=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?d:v).apply(null,arguments)}
2function y(t,e){var n=Array.prototype.slice.call(arguments,1);return function(){var e=n.slice();return e.push.apply(e,arguments),t.apply(this,e)}}var 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 x(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 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){S=C;break t}}S=""}function P(t,e,n){for(var r in t)e.call(n,t[r],r,t)}function j(t){var e={};for(var n in t)e[n]=t[n];return e}var R="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function L(t,e){for(var n,r,i=1;i<arguments.length;i++){for(n in r=arguments[i])t[n]=r[n];for(var o=0;o<R.length;o++)n=R[o],Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}}function D(t){return D[" "](t),t}D[" "]=u;var M,F=O(S,"Opera"),V=O(S,"Trident")||O(S,"MSIE"),U=O(S,"Edge"),z=U||V,B=O(S,"Gecko")&&!(O(S.toLowerCase(),"webkit")&&!O(S,"Edge"))&&!(O(S,"Trident")||O(S,"MSIE"))&&!O(S,"Edge"),q=O(S.toLowerCase(),"webkit")&&!O(S,"Edge");function H(){var t=s.document;return t?t.documentMode:void 0}t:{var W="",G=function(){var t=S;return B?/rv:([^\);]+)(\)|;)/.exec(t):U?/Edge\/([\d\.]+)/.exec(t):V?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(t):q?/WebKit\/(\S+)/.exec(t):F?/(?:Version)[ \/]?(\S+)/.exec(t):void 0}();if(G&&(W=G?G[1]:""),V){var K=H();if(null!=K&&K>parseFloat(W)){M=String(K);break t}}M=W}var $,X={};function Y(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=_(String(M)).split("."),r=_(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&&V){var J=H();$=J||(parseInt(M,10)||void 0)}else $=void 0;var Q=$,Z=!V||9<=Number(Q),tt=V&&!Y("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(B){t:{try{D(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(yt(e.toString()),r);else{if(!t.addListener||!t.removeListener)throw Error("addEventListener and attachEvent are unavailable.");t.addListener(r)}return n}function mt(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(yt(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 yt(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&&mt(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 xt(){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&<(t.c,a),i=!1!==s.call(u,r)&&i}}return i&&!r.defaultPrevented}b(xt,w),xt.prototype[ot]=!0,(i=xt.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)&&mt(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;L(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(xt.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 St(){this.b=this.a=null}var _t,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=Rt,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){_t||function(){var t=s.Promise.resolve(void 0);_t=function(){t.then(Lt)}}(),jt||(_t(),jt=!0),Rt.add(t,e)}St.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};var jt=!1,Rt=new St;function Lt(){for(var t;t=At();
2){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)}jt=!1}function Dt(t,e){xt.call(this),this.b=t||1,this.a=e||s,this.f=m(this.Ua,this),this.g=g()}function Mt(t){t.Z=!1,t.L&&(t.a.clearTimeout(t.L),t.L=null)}function Ft(t,e,n){if("function"==c(t))n&&(t=m(t,n));else{if(!t||"function"!=typeof t.handleEvent)throw Error("Invalid listener argument");t=m(t.handleEvent,t)}return 2147483647<Number(e)?-1:s.setTimeout(t,e||0)}function Vt(t,e,n){w.call(this),this.f=null!=n?m(t,n):t,this.c=e,this.b=m(this.Pa,this),this.a=[]}function Ut(t){t.T=Ft(t.b,t.c),t.f.apply(null,t.a)}function zt(t){w.call(this),this.b=t,this.a={}}b(Dt,xt),(i=Dt.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(){Dt.M.C.call(this),Mt(this),delete this.a},b(Vt,w),(i=Vt.prototype).ba=!1,i.T=null,i.Ia=function(t){this.a=arguments,this.T?this.ba=!0:Ut(this)},i.C=function(){Vt.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,Ut(this))},b(zt,w);var Bt=[];function qt(t,e,n,r){Array.isArray(n)||(n&&(Bt[0]=n.toString()),n=Bt);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 Ht(t){P(t.a,(function(t,e){this.a.hasOwnProperty(e)&&mt(t)}),t),t.a={}}function Wt(){}zt.prototype.C=function(){zt.M.C.call(this),Ht(this)},zt.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var Gt=null;function Kt(){return Gt=Gt||new xt}function $t(t){nt.call(this,"serverreachability",t)}function Xt(t){var e=Kt();e.dispatchEvent(new $t(e,t))}function Yt(t){nt.call(this,"statevent",t)}function Jt(t){var e=Kt();e.dispatchEvent(new Yt(e,t))}function Qt(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(Yt,nt),b(Qt,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 zt(this),this.N=fe,t=z?125:void 0,this.O=new Dt(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=De(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=zn(t.g,t.g.w?e:null),0<t.J&&(t.D=new Vt(m(t.ya,t,t.a),t.J)),qt(t.G,t.a,"readystatechange",t.Sa),e=t.m?j(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 me(t,e,n){for(var r=!0;!t.l&&t.w<n.length;){var i=ye(t,n);if(i==pe){4==e&&(t.c=4,Jt(14),r=!1);break}if(i==he){t.c=4,Jt(15),r=!1;break}xe(t,i)}4==e&&0==n.length&&(t.c=1,Jt(16),r=!1),t.b=t.b&&r,r||(Te(t),Ee(t))}function ye(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(m(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||Dn(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),Ht(t.G),t.a&&(e=t.a,t.a=null,e.abort(),e.da())}function xe(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;Ln(n),n.a.cancel(),n.a=null}Rn(n),Jt(18)}}else n.ia=i[1],0<n.ia-n.G&&37500>i[2]&&n.U&&0==n.m&&!n.l&&(n.l=Zt(m(n.Na,n),6e3));if(1>=en(n.b)&&n.O){try{n.O()}catch(v){}n.O=void 0}}else Fn(n,11)}else if((t.o||n.a==t)&&Ln(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,Le(s.v,s.s,f))}}n.u=3,n.c&&n.c.na();var h=t;if((s=n).ea=Un(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 jn(s);0<n.f.length&&An(n)}else"stop"!=i[0]&&"close"!=i[0]||Fn(n,7);else 3==n.u&&("stop"==i[0]||"close"==i[0]?"stop"==i[0]?Fn(n,7):Sn(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 Se(t){if(t.c!=t.a.length){for(var e=0,n=0;e<t.a.length;){var r=t.a[e];_e(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;)_e(i,r=t.a[e])||(t.a[n++]=r,i[r]=1),e++;t.a.length=n}}function _e(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&&!z&&!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,Jt(12),Te(this),Ee(this);break t}this.o=!0,xe(this,u)}this.F?(me(this,e,o),z&&this.b&&3==e&&(qt(this.G,this.O,"tick",this.Ra),this.O.start())):xe(this,o),4==e&&Te(this),this.b&&!this.l&&(4==e?Dn(this.g,this):(this.b=!1,ge(this)))}else 400==i&&0<o.indexOf("Unknown SID")?(this.c=3,Jt(12)):(this.c=0,Jt(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),me(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),Jt(17)),Te(this),this.c=2,Ee(this)):be(this,this.P-t)},(i=Ie.prototype).I=function(){Se(this);for(var t=[],e=0;e<this.a.length;e++)t.push(this.b[this.a[e]]);return t},i.K=function(){return Se(this),this.a.concat()},i.get=function(t,e){return _e(this.b,t)?this.b[t]:e},i.set=function(t,e){_e(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),je(this,t.h),this.g=t.g,e=t.b;var n=new We;n.c=e.c,e.a&&(n.a=new Ie(e.a),n.b=e.b),Re(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),je(this,n[4]),this.g=Me(n[5]||"",!0),Re(this,n[6]||"",!0),this.i=Me(n[7]||"")):(this.a=!!e,this.b=new We(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 je(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 Re(t,e,n){e instanceof We?(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=Fe(e,qe)),t.b=new We(e,t.a))}function Le(t,e,n){t.b.set(e,n)}function De(t){return Le(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 Fe(t,e,n){return"string"===typeof t?(t=encodeURI(t).replace(e,Ve),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function Ve(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(Fe(e,Ue,!0),":");var n=this.c;return(n||"file"==e)&&(t.push("//"),(e=this.j)&&t.push(Fe(e,Ue,!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(Fe(n,"/"==n.charAt(0)?Be:ze,!0))),(n=this.b.toString())&&t.push("?",n),(n=this.i)&&t.push("#",Fe(n,He)),t.join("")};var Ue=/[#\/\?@]/g,ze=/[#\?:]/g,Be=/[#\?]/g,qe=/[#\?@]/g,He=/#/g;function We(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=Ye(t,e),_e(t.a.b,e)&&(t.c=null,t.b-=t.a.get(e).length,_e((t=t.a).b,e)&&(delete t.b[e],t.c--,t.a.length>2*t.c&&Se(t)))}function $e(t,e){return Ge(t),e=Ye(t,e),_e(t.a.b,e)}function Xe(t,e,n){Ke(t,e),0<n.length&&(t.c=null,t.a.set(Ye(t,e),k(n)),t.b+=n.length)}function Ye(t,e){return e=String(e),t.f&&(e=e.toLowerCase()),e}function Je(t,e){this.b=t,this.a=e}function Qe(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=We.prototype).add=function(t,e){Ge(this),this.c=null,t=Ye(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=x(e,this.a.get(Ye(this,t))));else{t=this.a.I();for(var n=0;n<t.length;n++)e=x(e,t[n])}return e},i.set=function(t,e){return Ge(this),this.c=null,$e(this,t=Ye(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){}}Qe.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){xt.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,xt);var pn="",dn=/^https?$/i,vn=["POST","PUT"];function mn(t){return"content-type"==t.toLowerCase()}function yn(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))Ft(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 xn(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)):Le(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 Qe(t&&t.concurrentRequestLimit),this.ja=new un,this.fa=t&&t.fastHandshake||!1,t&&t.forceLongPolling&&(this.W=!1),this.O=void 0}function Sn(t){if(_n(t),3==t.u){var e=t.H++,n=Ne(t.v);Le(n,"SID",t.B),Le(n,"RID",e),Le(n,"TYPE","terminate"),Cn(t,n),(e=new le(t,e,void 0)).B=2,e.f=De(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=zn(e.g,null),e.a.$(e.f)),e.s=g(),ge(e)}Vn(t)}function _n(t){t.a&&(t.a.cancel(),t.a=null),t.i&&(s.clearTimeout(t.i),t.i=null),Ln(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 Je(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);Le(r,"SID",t.B),Le(r,"RID",n),Le(r,"AID",t.G),Cn(t,r),t.h&&t.j&&xn(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){Le(e,n,t)}))}function Pn(t,e,n){n=Math.min(t.f.length,n);var r=t.c?m(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 jn(t){t.a||t.i||(t.J=1,Pt(t.wa,t),t.m=0)}function Rn(t){return!(t.a||t.i||3<=t.m)&&(t.J++,t.i=Zt(m(t.wa,t),Mn(t,t.m)),t.m++,!0)}function Ln(t){null!=t.l&&(s.clearTimeout(t.l),t.l=null)}function Dn(t,e){var n=null;if(t.a==e){Ln(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 Qt(r,n,e,i)),An(t)}else jn(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(m(t.xa,t,e),Mn(t,t.o)),t.o++,!0))}(t,e)||2==r&&Rn(t)))switch(n&&0<n.length&&(e=t.b,e.c=e.c.concat(n)),i){case 1:Fn(t,5);break;case 4:Fn(t,10);break;case 3:Fn(t,6);break;default:Fn(t,2)}}function Mn(t,e){var n=t.Ba+Math.floor(Math.random()*t.Ga);return t.c||(n*=2),n*e}function Fn(t,e){if(2==e){var n=null;t.c&&(n=null);var r=m(t.Ta,t);n||(n=new Ae("//www.google.com/images/cleardot.gif"),s.location&&"http"==s.location.protocol||Ce(n,"https"),De(n)),function(t,e){var n=new Wt;if(s.Image){var r=new Image;r.onload=y(ln,n,r,"TestLoadImage: loaded",!0,e),r.onerror=y(ln,n,r,"TestLoadImage: error",!1,e),r.onabort=y(ln,n,r,"TestLoadImage: abort",!1,e),r.ontimeout=y(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 Jt(2);t.u=0,t.c&&t.c.la(e),Vn(t),_n(t)}function Vn(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 Un(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),je(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&&je(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){Le(r,e,t)})),e=t.s,n=t.ha,e&&n&&Le(r,e,n),Le(r,"VER",t.oa),Cn(t,r),r}function zn(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 Bn(){}function qn(){if(V&&!(10<=Number(Q)))throw Error("Environmental error: no available transport.")}function Hn(t,e){xt.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 Wn(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=m(this.va,this);try{this.w=!0,this.a.open(e,String(t),!0),this.w=!1}catch(o){return void yn(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=mn,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 V&&Y(9)&&"number"===typeof t.timeout&&void 0!==t.ontimeout}(this.a))?(this.a.timeout=this.o,this.a.ontimeout=m(this.ta,this)):this.m=Ft(this.ta,this.o,this)),this.l=!0,this.a.send(t),this.l=!1}catch(o){yn(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?L(r=j(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),Le(i=Ne(this.v),"RID",t),Le(i,"CVER",22),this.s&&Le(i,"X-HTTP-Session-Id",this.s),Cn(this,i),this.h&&r&&xn(i,this.h,r),rn(this.b,n),this.fa?(Le(i,"$req",e),Le(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);Le(t,"RID","rpc"),Le(t,"SID",this.B),Le(t,"CI",this.U?"0":"1"),Le(t,"AID",this.G),Cn(this,t),Le(t,"TYPE","xmlhttp"),this.h&&this.j&&xn(t,this.h,this.j),this.D&&this.a.setTimeout(this.D);var e=this.a,n=this.R;e.B=1,e.f=De(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,Rn(this),Jt(19))},i.Ta=function(t){Jt(t?2:1)},(i=Bn.prototype).na=function(){},i.ma=function(){},i.la=function(){},i.ka=function(){},i.Ha=function(){},qn.prototype.a=function(t,e){return new Hn(t,e)},b(Hn,xt),(i=Hn.prototype).addEventListener=function(t,e,n,r){Hn.M.addEventListener.call(this,t,e,n,r)},i.removeEventListener=function(t,e,n,r){Hn.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;Jt(0),t.P=e,t.N=n||{},t.U=t.W,t.v=Un(t,null,t.P),An(t)},i.close=function(){Sn(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,Sn(this.a),delete this.a,Hn.M.C.call(this)},b(Wn,se),b(Gn,ue),b(Kn,Bn),Kn.prototype.na=function(){this.a.dispatchEvent("a")},Kn.prototype.ma=function(t){this.a.dispatchEvent(new Wn(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,Hn.prototype.send=Hn.prototype.La,Hn.prototype.open=Hn.prototype.Ka,Hn.prototype.close=Hn.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",xt.prototype.listen=xt.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,Yn=$n.ErrorCode,Jn=$n.EventType,Qn=$n.WebChannel,Zn=$n.XhrIo;e.default=$n}.call(this,n(56))},function(t,e,n){"use strict";n(157)},function(t,e,n){"use strict";(function(t){var e=n(9),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 m(t){return Object.prototype.hasOwnProperty.call(t,y)&&t[y]||(t[y]=++g)}var y="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 x=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 S(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 _,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 j(t){if(Error.captureStackTrace)Error.captureStackTrace(this,j);else{var e=Error().stack;e&&(this.stack=e)}t&&(this.message=String(t))}function R(t,e){for(var n="",r=(t=t.split("%s")).length-1,i=0;i<r;i++)n+=t[i]+(i<e.length?e[i]:"%s");j.call(this,n+t[r])}function L(t,e){throw new R("Failure"+(t?": "+t:""),Array.prototype.slice.call(arguments,1))}function D(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 F(){this.b=this.a=null}_=C("__EID__")?"__EID__":void 0,k(j,Error),j.prototype.name="CustomError",k(R,j),R.prototype.name="AssertionError",D.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 V=new D((function(){return new z}),(function(t){t.reset()}));function U(){var t=ye,e=null;return t.a&&(e=t.a,t.a=t.a.next,t.a||(t.b=null),e.next=null),e}function z(){this.next=this.b=this.a=null}F.prototype.add=function(t,e){var n=V.get();n.set(t,e),this.b?this.b.next=n:this.a=n,this.b=n},z.prototype.set=function(t,e){this.a=t,this.b=e,this.next=null},z.prototype.reset=function(){this.next=this.b=this.a=null};var B=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 H=Array.prototype.filter?function(t,e){return Array.prototype.filter.call(t,e,void 0)}:function(t,e){for(var n=t.length,r=[],i=0,o="string"===typeof t?t.split(""):t,a=0;a<n;a++)if(a in o){var s=o[a];e.call(void 0,s,a,t)&&(r[i++]=s)}return r},W=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<=B(t,e)}function $(t,e){var n;return(n=0<=(e=B(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 Y(t){return Array.prototype.concat.apply([],arguments)}function J(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 Q,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){Q=lt;break t}}Q=""}function ft(t){return st(Q,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 mt(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 yt(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;L("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:(L("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 xt(t,e){this.a=t===At&&e||"",this.b=Ot}function kt(t){return t instanceof xt&&t.constructor===xt&&t.b===Ot?t.a:(L("expected object of type TrustedResourceUrl, got '"+t+"' of type "+h(t)),"type_error:TrustedResourceUrl")}function It(t,e){var n=bt(t);if(!_t.test(n))throw Error("Invalid TrustedResourceUrl format: "+n);return t=n.replace(St,(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 xt(At,t)}xt.prototype.ra=!0,xt.prototype.qa=function(){return this.a.toString()},xt.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var St=/%{(\w+)}/g,_t=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,Ot={},At={};function Nt(t,e){this.a=t===Lt&&e||"",this.b=Rt}function Ct(t){return t instanceof Nt&&t.constructor===Nt&&t.b===Rt?t.a:(L("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 jt(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(Lt,t))}var Rt={},Lt={};function Dt(){this.a="",this.b=Ft}function Mt(t){return t instanceof Dt&&t.constructor===Dt&&t.b===Ft?t.a:(L("expected object of type SafeHtml, got '"+t+"' of type "+h(t)),"type_error:SafeHtml")}Dt.prototype.ra=!0,Dt.prototype.qa=function(){return this.a.toString()},Dt.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var Ft={};function Vt(t){var e=new Dt;return e.a=t,e}Vt("<!DOCTYPE html>");var Ut=Vt("");function zt(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 Bt(t){return at.test(t)&&(-1!=t.indexOf("&")&&(t=t.replace(tt,"&")),-1!=t.indexOf("<")&&(t=t.replace(et,"<")),-1!=t.indexOf(">")&&(t=t.replace(nt,">")),-1!=t.indexOf('"')&&(t=t.replace(rt,""")),-1!=t.indexOf("'")&&(t=t.replace(it,"'")),-1!=t.indexOf("\0")&&(t=t.replace(ot,"�"))),t}function qt(t){return qt[" "](t),t}Vt("<br>"),qt[" "]=f;var Ht,Wt=ft("Opera"),Gt=ft("Trident")||ft("MSIE"),Kt=ft("Edge"),$t=Kt||Gt,Xt=ft("Gecko")&&!(st(Q.toLowerCase(),"webkit")&&!ft("Edge"))&&!(ft("Trident")||ft("MSIE"))&&!ft("Edge"),Yt=st(Q.toLowerCase(),"webkit")&&!ft("Edge");function Jt(){var t=u.document;return t?t.documentMode:void 0}t:{var Qt="",Zt=function(){var t=Q;return Xt?/rv:([^\);]+)(\)|;)/.exec(t):Kt?/Edge\/([\d\.]+)/.exec(t):Gt?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(t):Yt?/WebKit\/(\S+)/.exec(t):Wt?/(?:Version)[ \/]?(\S+)/.exec(t):void 0}();if(Zt&&(Qt=Zt?Zt[1]:""),Gt){var te=Jt();if(null!=te&&te>parseFloat(Qt)){Ht=String(te);break t}}Ht=Qt}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(Ht)).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?Jt():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)?J(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 xt(At,bt(Tt));yt(t,"HTMLIFrameElement"),t.src=kt(e).toString()}(t),document.documentElement.appendChild(t);var e=t.contentWindow;(t=e.document).open(),t.write(Mt(Ut)),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)}}(),me||(ue(),me=!0),ye.add(t,e)}var me=!1,ye=new F;function ge(){for(var t;t=U();){try{t.a.call(t.b)}catch(e){pe(e)}M(V,t)}me=!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 Ve))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 xe(){this.next=this.f=this.b=this.g=this.a=null,this.c=!1}xe.prototype.reset=function(){this.f=this.b=this.g=this.a=null,this.c=!1};var ke=new D((function(){return new xe}),(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 Se(t){if(t instanceof be)return t;var e=new be(f);return Pe(e,Ee,t),e}
2function _e(t){return new be((function(e,n){n(t)}))}function Oe(t,e,n){je(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||Re(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 Ve?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,je(n,t.Yc,t.Zc,t)||(t.i=n,t.a=e,t.c=null,Re(t),e!=Te||n instanceof Ve||function(t,e){t.g=!0,ve((function(){t.g&&Fe.call(null,e)}))}(t,n)))}function je(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 Re(t){t.h||(t.h=!0,ve(t.ec,t))}function Le(t){var e=null;return t.b&&(e=t.b,t.b=e.next,e.next=null),t.b||(t.f=null),e}function De(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){Fe.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 Ve(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):Le(r),De(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=Le(this);)De(this,t,this.a,this.i);this.h=!1};var Fe=pe;function Ve(t){j.call(this,t)}function Ue(){0!=ze&&(Be[m(this)]=this),this.wa=this.wa,this.na=this.na}k(Ve,j),Ve.prototype.name="cancel";var ze=0,Be={};function qe(t){if(!t.wa&&(t.wa=!0,t.Ba(),0!=ze)){var e=m(t);if(0!=ze&&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 Be[e]}}Ue.prototype.wa=!1,Ue.prototype.Ba=function(){if(this.na)for(;this.na.length;)this.na.shift()()};var He=Object.freeze||function(t){return t},We=!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:Ye[t.pointerType]||"",this.a=t,t.defaultPrevented&&this.preventDefault()}}$e.prototype.preventDefault=function(){this.defaultPrevented=!0},k(Xe,$e);var Ye=He({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 Je="closure_listenable_"+(1e6*Math.random()|0),Qe=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=++Qe,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[Je]?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=mn(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=We?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[Je]?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[Je]?(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=mn(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[Je])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=mn(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=mn(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(!We){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 mn(t){return(t=t[on])instanceof en?t:null}var yn="__closure_events_fn_"+(1e9*Math.random()>>>0);function gn(t){return d(t)?t:(t[yn]||(t[yn]=function(e){return t.handleEvent(e)}),t[yn])}function bn(){Ue.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 xn(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=xn((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 Sn(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 _n(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 _n)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,Ue),bn.prototype[Je]=!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;mt(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=_n.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,jn(this,t.l),this.c=t.c,Rn(this,Zn(t.a)),this.g=t.g):t&&(n=String(t).match(Nn))?(this.h=!!e,Pn(this,n[1]||"",!0),this.i=Vn(n[2]||""),this.b=Vn(n[3]||"",!0),jn(this,n[4]),this.c=Vn(n[5]||"",!0),Rn(this,n[6]||"",!0),this.g=Vn(n[7]||"")):(this.h=!!e,this.a=new Kn(null,this.h))}
2function Pn(t,e,n){t.f=n?Vn(e,!0):e,t.f&&(t.f=t.f.replace(/:$/,""))}function jn(t,e){if(e){if(e=Number(e),isNaN(e)||0>e)throw Error("Bad port number "+e);t.l=e}else t.l=null}function Rn(t,e,n){e instanceof Kn?(t.a=e,function(t,e){e&&!t.f&&($n(t),t.c=null,t.a.forEach((function(t,e){var n=e.toLowerCase();e!=n&&(Yn(this,e),Qn(this,n,t))}),t)),t.f=e}(t.a,t.h)):(n||(e=Un(e,Wn)),t.a=new Kn(e,t.h))}function Ln(t,e,n){t.a.set(e,n)}function Dn(t,e){return t.a.get(e)}function Mn(t){return t instanceof Cn?new Cn(t):new Cn(t,void 0)}function Fn(t,e){var n=new Cn(null,void 0);return Pn(n,"https"),t&&(n.b=t),e&&(n.c=e),n}function Vn(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function Un(t,e,n){return"string"===typeof t?(t=encodeURI(t).replace(e,zn),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function zn(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(Un(e,Bn,!0),":");var n=this.b;return(n||"file"==e)&&(t.push("//"),(e=this.i)&&t.push(Un(e,Bn,!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(Un(n,"/"==n.charAt(0)?Hn:qn,!0))),(n=this.a.toString())&&t.push("?",n),(n=this.g)&&t.push("#",Un(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)jn(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?Rn(e,Zn(t.a)):n=!!t.g,n&&(e.g=t.g),e};var Bn=/[#\/\?@]/g,qn=/[#\?:]/g,Hn=/[#\?]/g,Wn=/[#\?@]/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 _n,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=Sn(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)?Qn(n,i,o):n.add(i,o)}return n}function Yn(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 Jn(t,e){return $n(t),e=tr(t,e),An(t.a.b,e)}function Qn(t,e,n){Yn(t,e),0<n.length&&(t.c=null,t.a.set(tr(t,e),J(n)),t.b+=n.length)}function Zn(t){var e=new Kn;return e.c=t.c,t.a&&(e.a=new _n(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)Jn(this,t)&&(e=Y(e,this.a.get(tr(this,t))));else{t=this.a.V();for(var n=0;n<t.length;n++)e=Y(e,t[n])}return e},e.set=function(t,e){return $n(this),this.c=null,Jn(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(jt(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:jt("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?(yt(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(Lt,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=Vt('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Bt(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 mr(){var t=u.window;try{return!(!t||t==t.top)}catch(e){return!1}}function yr(){return"undefined"!==typeof u.WorkerGlobalScope&&"function"===typeof u.importScripts}function gr(){return r.a.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":r.a.INTERNAL.hasOwnProperty("node")?"Node":yr()?"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 xr={jd:"FirebaseCore-web",ld:"FirebaseUI-web"};function kr(t,e){e=e||[];var n,r=[],i={};for(n in xr)i[xr[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 Sr(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 _r(){try{var t=u.localStorage,e=Lr();if(t)return t.setItem(e,"1"),t.removeItem(e),!ar()||!!u.indexedDB}catch(n){return yr()&&!!u.indexedDB}return!1}function Or(){return(Ar()||"chrome-extension:"===Nr()||vr())&&!br()&&_r()&&!yr()}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 jr(t){var e,n={};for(e in t)t.hasOwnProperty(e)&&null!==t[e]&&void 0!==t[e]&&(n[e]=t[e]);return n}function Rr(t){if(null!==t)return JSON.parse(t)}function Lr(t){return t||Math.floor(1e9*Math.random()).toString()}function Dr(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 Fr(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 Vr(){var t=u.document;return!t||"undefined"===typeof t.visibilityState||"visible"==t.visibilityState}function Ur(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 zr(){return!(!Sr("fireauth.oauthhelper",u)&&!Sr("fireauth.iframe",u))}Fr.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 Br,qr={};function Hr(t){qr[t]||(qr[t]=!0,"undefined"!==typeof console&&"function"===typeof console.warn&&console.warn(t))}try{var Wr={};Object.defineProperty(Wr,"abcd",{configurable:!0,enumerable:!0,value:1}),Object.defineProperty(Wr,"abcd",{configurable:!0,enumerable:!0,value:2}),Br=2==Wr.abcd}catch(oa){Br=!1}function Gr(t,e,n){Br?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 Yr(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[Qr]||null);var n=null;t[Zr]&&(n=new Date(t[Zr]).toUTCString()),Gr(this,"enrollmentTime",n),Gr(this,"factorId",e)}function Jr(t){try{var e=new ni(t)}catch(n){e=null}return e}Yr.prototype.v=function(){return{uid:this.uid,displayName:this.displayName,factorId:this.factorId,enrollmentTime:this.enrollmentTime}};var Qr="displayName",Zr="enrolledAt",ti="mfaEnrollmentId",ei="phoneInfo";function ni(t){Yr.call(this,t),Gr(this,"phoneNumber",t[ei])}function ri(t){var e={},n=t[si],r=t[ci],i=t[li];if(t=Jr(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,mi,i),Gr(this,vi,Xr(e))}k(ni,Yr),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",mi="operation";function yi(t){var e=Dn(t=Mn(t),gi)||null,n=Dn(t,bi)||null,r=Dn(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:Dn(t,wi)||null,languageCode:Dn(t,Ei)||null,tenantId:Dn(t,xi)||null})}var gi="apiKey",bi="oobCode",wi="continueUrl",Ei="languageCode",Ti="mode",xi="tenantId",ki={recoverEmail:"RECOVER_EMAIL",resetPassword:"PASSWORD_RESET",revertSecondFactorAddition:ii,signIn:oi,verifyAndChangeEmail:ai,verifyEmail:"VERIFY_EMAIL"};function Ii(t){try{return new yi(t)}catch(e){return null}}function Si(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[_i];if(n&&"object"===typeof n){e=n[Ri];var r=n[Pi];if(n=n[ji],"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",ji+" property must be a non empty string when specified.");this.b=n||null}else{if("undefined"!==typeof e)throw new I("argument-error",Ri+" 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",_i+" property must be a non null object when specified.");if(this.f=null,(e=t[Ni])&&"object"===typeof e){if("string"===typeof(e=e[Li])&&e.length)this.f=e;else if("undefined"!==typeof e)throw new I("argument-error",Li+" 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 _i="android",Oi="dynamicLinkDomain",Ai="handleCodeInApp",Ni="iOS",Ci="url",Pi="installApp",ji="minimumVersion",Ri="packageName",Li="bundleId";function Di(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 Fi(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 Vi(t){var e=zi(t);if(!(e&&e.sub&&e.iss&&e.aud&&e.exp))throw Error("Invalid JWT");this.g=t,this.c=e.exp,this.h=e.sub,x(),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 Ui(t){try{return new Vi(t)}catch(e){return null}}function zi(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(Fi(t))}catch(r){}return null}Vi.prototype.S=function(){return this.f},Vi.prototype.i=function(){return this.b},Vi.prototype.toString=function(){return this.g};var Bi="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"],Hi={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:Bi},gd:{Ha:"locale",ta:640,sa:600,ea:"apple.com",Va:[]}};function Wi(t){for(var e in Hi)if(Hi[e].ea==t)return Hi[e];return null}function Gi(t){var e={};e["facebook.com"]=Ji,e["google.com"]=Zi,e["github.com"]=Qi,e["twitter.com"]=to;var n=t&&t[$i];try{if(n)return e[n]?new e[n](t):new Yi(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=Ui(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.
2isNewUser:"identitytoolkit#SignupNewUserResponse"===t.kind&&(n=!0),Gr(this,"providerId",e),Gr(this,"isNewUser",n)}function Yi(t){Xi.call(this,t),Gr(this,"profile",Xr((t=Rr(t.rawUserInfo||"{}"))||{}))}function Ji(t){if(Yi.call(this,t),"facebook.com"!=this.providerId)throw Error("Invalid provider ID!")}function Qi(t){if(Yi.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(Yi.call(this,t),"google.com"!=this.providerId)throw Error("Invalid provider ID!")}function to(t){if(Yi.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=Dn(e,"link"),r=Dn(Mn(n),"link");return e=Dn(e,"deep_link_id"),Dn(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(Yi,Xi),k(Ji,Yi),k(Qi,Yi),k(Zi,Yi),k(to,Yi);var ro="enroll",io="signin";function oo(){}function ao(t,e){return t.then((function(t){if(t[Xa]){var n=Ui(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=(Wi(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 mo(t){po.call(this,t,qi),this.a=[]}function yo(){mo.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 yo).credential({accessToken:e})}function bo(){mo.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(){mo.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 xo(){po.call(this,"twitter.com",Bi)}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===_o.EMAIL_LINK_SIGN_IN_METHOD?_o.EMAIL_LINK_SIGN_IN_METHOD:_o.EMAIL_PASSWORD_SIGN_IN_METHOD)}function So(t){return t&&t.email&&t.password?new Io(t.email,t.password,t.signInMethod):null}function _o(){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,_o.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 jo(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 Ro(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 Lo(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 mo(e).credential({idToken:o,accessToken:n,rawNonce:i}):null}}catch(s){return null}}function Do(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 Fo(t){return(t=t||{}).type?new Mo(t.type,t.eventId,t.urlResponse,t.sessionId,t.error&&S(t.error),t.postBody,t.tenantId):null}function Vo(){this.b=null,this.a=[]}no.prototype.Fa=function(){return this.a?Se(this.a):Se(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,ms(t,n)},so.prototype.c=function(t,e){return ao(ys(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,ms(t,n)},lo.prototype.c=function(t,e){return ao(ys(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(mo,po),mo.prototype.Aa=function(t){return K(this.a,t)||this.a.push(t),this},mo.prototype.Nb=function(){return J(this.a)},mo.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(yo,mo),Gr(yo,"PROVIDER_ID","facebook.com"),Gr(yo,"FACEBOOK_SIGN_IN_METHOD","facebook.com"),k(bo,mo),Gr(bo,"PROVIDER_ID","github.com"),Gr(bo,"GITHUB_SIGN_IN_METHOD","github.com"),k(Eo,mo),Gr(Eo,"PROVIDER_ID","google.com"),Gr(Eo,"GOOGLE_SIGN_IN_METHOD","google.com"),k(xo,po),Gr(xo,"PROVIDER_ID","twitter.com"),Gr(xo,"TWITTER_SIGN_IN_METHOD","twitter.com"),Io.prototype.ia=function(t){return this.signInMethod==_o.EMAIL_LINK_SIGN_IN_METHOD?Qs(t,Is,{email:this.a,oobCode:this.f}):Qs(t,Ks,{email:this.a,password:this.f})},Io.prototype.b=function(t,e){return this.signInMethod==_o.EMAIL_LINK_SIGN_IN_METHOD?Qs(t,Ss,{idToken:e,email:this.a,oobCode:this.f}):Qs(t,Vs,{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(_o,{PROVIDER_ID:"password"}),Kr(_o,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"}),Kr(_o,{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,Qs(t,Xs,n)},No.prototype.c=function(t,e){var n=Po(this);return n.operation="REAUTH",ao(t=Qs(t,Ys,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},jo.prototype.cb=function(t,e){var n=this.a.b;return Se(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 Qs(t,zs,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 Qs(t,Bs,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 Qs(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(jo,{PROVIDER_ID:"phone"}),Kr(jo,{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 Uo,zo=null;function Bo(t){var e="unauthorized-domain",n=void 0,r=Mn(t);t=r.b,"chrome-extension"==(r=r.f)?n=zt("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=zt("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 Ho(t){if(t.code){var e=t.code||"";0==e.indexOf(O)&&(e=e.substring(O.length));var n={credential:Lo(t),Wb:t.tenantId};if(t.email)n.Gb=t.email;else if(t.phoneNumber)n.da=t.phoneNumber;else if(!n.credential)return new I(e,t.message||void 0);return new qo(e,n,t.message)}return null}function Wo(){}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 Yo(){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 Jo(t,e){t.readyState=e,t.onreadystatechange&&t.onreadystatechange()}function Qo(t,e,n){this.reset(t,e,n,void 0,void 0)}k(Bo,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&&mt(t,e),t},qo.prototype.toJSON=function(){return this.v()},Wo.prototype.c=null,k(Ko,Wo),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},Uo=new Ko,k(Xo,Wo),Xo.prototype.a=function(){var t=new XMLHttpRequest;if("withCredentials"in t)return t;if("undefined"!=typeof XDomainRequest)return new Yo;throw Error("Unsupported browser")},Xo.prototype.b=function(){return{}},(e=Yo.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,Jo(this,4)},e.Pb=function(){this.status=500,this.response=this.responseText="",Jo(this,4)},e.tc=function(){this.Pb()},e.pc=function(){this.status=200,Jo(this,1)},e.getAllResponseHeaders=function(){return"content-type: "+this.a.contentType},Qo.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}Qo.prototype.reset=function(t,e,n,r,i){"number"==typeof i||0,r||x(),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):(L("Root logger has no level set."),null)}(this).value)for(d(e)&&(e=e()),t=new Qo(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,Wo),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 ma(t){bn.call(this),this.headers=new _n,this.D=t||null,this.c=!1,this.B=this.a=null,this.h=this.P=this.l="",this.f=this.O=this.i=this.N=!1,this.g=0,this.s=null,this.m=ya,this.w=this.R=!1}(e=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(ma,bn);var ya="";ma.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():Uo.a(),t.B=t.D?Go(t.D):Go(Uo),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 _n(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=Sn(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{Sa(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=xn(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,xa(t),Ia(t)}function xa(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==_a(t)&&2==Oa(t))ca(t.b,Aa(t,"Local request error detected and ignored"));else if(t.i&&4==_a(t))xn(t.Sb,0,t);else if(t.dispatchEvent("readystatechange"),4==_a(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<_a(t)?t.a.statusText:""}catch(l){ca(t.b,"Can not get status: "+l.message),c=""}t.h=c+" ["+Oa(t)+"]",xa(t)}}finally{Ia(t)}}}function Ia(t,e){if(t.a){Sa(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 Sa(t){t.a&&t.w&&(t.a.ontimeout=null),t.s&&(u.clearTimeout(t.s),t.s=null)}function _a(t){return t.a?t.a.readyState:0}function Oa(t){try{return 2<_a(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=za;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,La(t)}function Pa(t){if(t.a){if(!t.u)throw new Da(t);t.u=!1}}function ja(t,e,n,r){t.g.push([e,n,r]),t.a&&La(t)}function Ra(t){return G(t.g,(function(t){return d(t[1])}))}function La(t){if(t.h&&t.a&&Ra(t)){var e=t.h,n=Va[e];n&&(u.clearTimeout(n.a),delete Va[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,Ra(t)||(n=!0)}}t.c=e,r&&(s=E(t.m,t,!0),r=E(t.m,t,!1),e instanceof Na?(ja(e,s,r),e.B=!0):e.then(s,r)),n&&(e=new Fa(e),Va[e.a]=e,t.h=e.a)}function Da(){j.call(this)}function Ma(){j.call(this)}function Fa(t){this.a=u.setTimeout(E(this.c,this),0),this.b=t}(e=ma.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)),ma.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 ya:case"text":return this.a.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in this.a)return this.a.mozResponseArrayBuffer}var t=this.b;return t&&t.log(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 ja(this,r,(function(t){t instanceof Ma?o.cancel():i(t)})),o.then(t,e,n)},Na.prototype.$goog_Thenable=!0,k(Da,j),Da.prototype.message="Deferred has already fired",Da.prototype.name="AlreadyCalledError",k(Ma,j),Ma.prototype.message="Deferred was canceled",Ma.prototype.name="CanceledError",Fa.prototype.c=function(){throw delete Va[this.a],this.b};var Va={};function Ua(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(){Ba(i,!0);var t=new Wa(Ha,"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||(Ba(i,e.ud||!1,s),Pa(a),Ca(a,!0,null))},i.onerror=function(){Ba(i,!0,s);var t=new Wa(qa,"Error while loading script "+r);Pa(a),Ca(a,!1,t)},mt(o=e.attributes||{},{type:"text/javascript",charset:"UTF-8"}),ae(i,o),function(t,e){yt(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 za(){if(this&&this.Tb){var t=this.Tb;
2t&&"SCRIPT"==t.tagName&&Ba(t,!0,this.Ka)}}function Ba(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,Ha=1;function Wa(t,e){var n="Jsloader error (code #"+t+")";e&&(n+=": "+e),j.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||Ya,this.g=dt(t.secureTokenHeaders||Ja),this.h=t.firebaseEndpoint||"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",this.l=t.identityPlatformEndpoint||"https://identitytoolkit.googleapis.com/v2/",this.i=t.firebaseTimeout||Qa,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)&&!yr())throw new I("internal-error","The XMLHttpRequest compatibility library was not found.");this.f=void 0,yr()?this.f=new la(self):br()?this.f=new Ga(n):this.f=new Xo,this.b=null}k(Wa,j),k(Ga,Wo),Ga.prototype.a=function(){return new this.f},Ga.prototype.b=function(){return{}};var $a,Xa="idToken",Ya=new Fr(3e4,6e4),Ja={"Content-Type":"application/x-www-form-urlencoded"},Qa=new Fr(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)})()||yr()?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){ja(t,null,e,void 0)}(Ua(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(yr()&&("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 ma(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);Ln(s,"key",t.c),a&&Ln(s,"cb",x().toString());var u="GET"==r;if(u)for(var c in i)i.hasOwnProperty(c)&&Ln(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(jr(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 Qs(this,Us,{})},Ka.prototype.xb=function(t,e){return Qs(this,Fs,{idToken:t,email:e})},Ka.prototype.yb=function(t,e){return Qs(this,Vs,{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&&(Jn(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=Ho(t)):"FEDERATED_USER_ID_ALREADY_LINKED"==t.errorMessage?(t.code="credential-already-in-use",e=Ho(t)):"EMAIL_EXISTS"==t.errorMessage?(t.code="email-already-in-use",e=Ho(t)):t.errorMessage&&(e=Zs(t.errorMessage)),e)throw e;us(t)}function vs(t,e){return e.returnIdpCredential=!0,Qs(t,qs,e)}function ms(t,e){return e.returnIdpCredential=!0,Qs(t,Ws,e)}function ys(t,e){return e.returnIdpCredential=!0,e.autoCreate=!1,Qs(t,Hs,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),Qs(this,Fs,n)},e.rb=function(t,e){return mt(t={requestType:"PASSWORD_RESET",email:t},e),Qs(this,js,t)},e.sb=function(t,e){return mt(t={requestType:"EMAIL_SIGNIN",email:t},e),Qs(this,Ns,t)},e.qb=function(t,e){return mt(t={requestType:"VERIFY_EMAIL",idToken:t},e),Qs(this,Cs,t)},e.Ab=function(t,e,n){return mt(t={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:t,newEmail:e},n),Qs(this,Ps,t)},e.cb=function(t){return Qs(this,$s,t)},e.jb=function(t,e){return Qs(this,Ds,{oobCode:t,newPassword:e})},e.Pa=function(t){return Qs(this,ws,{oobCode:t})},e.fb=function(t){return Qs(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},xs={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},Ss={endpoint:"emailLinkSignin",M:["idToken","email","oobCode"],A:as,G:us,U:!0},_s={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},js={endpoint:"getOobConfirmationCode",M:["requestType"],A:function(t){if("PASSWORD_RESET"!=t.requestType)throw new I("internal-error");as(t)},Y:"email",C:!0},Rs={hb:!0,endpoint:"getProjectConfig",Rb:"GET"},Ls={hb:!0,endpoint:"getRecaptchaParam",Rb:"GET",G:function(t){if(!t.recaptchaSiteKey)throw new I("internal-error")}},Ds={endpoint:"resetPassword",A:gs,Y:"email",C:!0},Ms={endpoint:"sendVerificationCode",M:["phoneNumber","recaptchaToken"],Y:"sessionInfo",C:!0},Fs={endpoint:"setAccountInfo",M:["idToken"],A:ss,U:!0},Vs={endpoint:"setAccountInfo",M:["idToken"],A:function(t){if(ss(t),!t.password)throw new I("weak-password")},G:us,U:!0},Us={endpoint:"signupNewUser",G:us,U:!0,C:!0},zs={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},Bs={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},Hs={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},Ws={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",Ho(t);us(t)}},Ys={Eb:{USER_NOT_FOUND:"user-not-found"},endpoint:"verifyPhoneNumber",A:cs,G:us,C:!0},Js={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 Qs(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 _e(new I("internal-error"));var r,i=!!e.La,o=e.Rb||"POST";return Se(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||"",mt(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(),Sr("gapi.load")("gapi.iframes",{callback:t,ontimeout:function(){Mr(),e(Error("Network Error"))},timeout:ru.get()})}if(Sr("gapi.iframes.Iframe"))t();else if(Sr("gapi.load"))n();else{var r="__iframefcb"+Math.floor(1e6*Math.random()).toString();u[r]=function(){Sr("gapi.load")?n():e(Error("Network Error"))},Se(Ua(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){Sr("gapi.iframes.getContext")().open({where:document.body,url:t.b,messageHandlersFilter:Sr("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 Fr(3e4,6e4),iu=new Fr(5e3,15e3),ou=null;function au(t,e,n){this.i=t,this.g=e,this.h=n,this.f=null,this.a=Fn(this.i,"/__/auth/iframe"),Ln(this.a,"apiKey",this.g),Ln(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 Qs(t,Rs,{}).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 Bo(sr())}
2))}function fu(t){return 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=J(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,Sr("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))}))}(t.i,(function(e){var n={};if(e&&e.authEvent){var r=!1;for(e=Fo(e.authEvent),n=0;n<t.g.length;n++)r=t.g[n](e)||r;return(n={}).status=r?"ACK":"ERROR",Se(n)}return n.status="ERROR",Se(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?Ln(this.a,"v",this.f):Yn(this.a.a,"v"),this.b?Ln(this.a,"eid",this.b):Yn(this.a.a,"eid"),this.c.length?Ln(this.a,"fw",this.c.join(",")):Yn(this.a.a,"fw"),this.a.toString()},su.prototype.ub=function(t){return this.h=t,this},su.prototype.toString=function(){var t=Fn(this.s,"/__/auth/handler");if(Ln(t,"apiKey",this.m),Ln(t,"appName",this.c),Ln(t,"authType",this.u),this.a.isOAuthProvider){var e=this.a;try{var n=r.a.app(this.c).auth().ja()}catch(u){n=null}for(var i in e.kb=n,Ln(t,"providerId",this.a.providerId),n=jr((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)||Ln(t,"customParameters",Pr(n))}if("function"===typeof this.a.Nb&&((e=this.a.Nb()).length&&Ln(t,"scopes",e.join(","))),this.l?Ln(t,"redirectUrl",this.l):Yn(t.a,"redirectUrl"),this.g?Ln(t,"eventId",this.g):Yn(t.a,"eventId"),this.i?Ln(t,"v",this.i):Yn(t.a,"v"),this.b)for(var s in this.b)this.b.hasOwnProperty(s)&&!Dn(t,s)&&Ln(t,s,this.b[s]);return this.h?Ln(t,"tid",this.h):Yn(t.a,"tid"),this.f?Ln(t,"eid",this.f):Yn(t.a,"eid"),(s=uu(this.c)).length&&Ln(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,Sr("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)&&!Dr(t)},e.Qb=function(){return!1}
2,e.Jb=function(t,e,n,r,i,o,a,s){if(!t)return _e(new I("popup-blocked"));if(a&&!Cr())return this.ka().o((function(e){lr(t),i(e)})),r(),Se();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(){(Do(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(){Do(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 Se(this.a.getItem(t)).then((function(t){return t&&Rr(t)}))},e.set=function(t,e){return Se(this.a.setItem(t,Pr(e)))},e.T=function(t){return Se(this.a.removeItem(t))},e.ba=function(){},e.ha=function(){};var mu,yu=[];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 _e(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 xu(){if(!Su())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;yr()&&self?(this.l=function(){var t=yr()?self:null;if(q(yu,(function(n){n.b==t&&(e=n)})),!e){var e=new vu(t);yu.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 Se(["keyChanged"])}))):function(){var t=u.navigator;return t&&t.serviceWorker?Se().then((function(){return t.serviceWorker.ready})).then((function(t){return t.active||null})).o((function(){return null})):Se(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 Su(){try{return!!u.indexedDB}catch(oa){return!1}}function _u(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(){})):Se()}function Cu(t){return Iu(t).then((function(t){var e=_u(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 ju(t){var e=this,n=null;this.a=[],this.type="indexedDB",this.c=t,this.b=Se().then((function(){if(Su()){var t=Lr(),r="__sak"+t;return mu||(mu=new xu),(n=mu).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 Ru(){this.a={},this.type="inMemory"}function Lu(){if(!function(){var t="Node"==gr();if(!(t=Du()||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=Du()||r.a.INTERNAL.node.localStorage,this.type="localStorage"}function Du(){try{var t=u.localStorage,e=Lr();return t&&(t.setItem(e,"1"),t.removeItem(e)),t}catch(n){return null}}function Mu(){this.type="nullStorage"}function Fu(){if(!function(){var t="Node"==gr();if(!(t=Vu()||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=Vu()||r.a.INTERNAL.node.sessionStorage,this.type="sessionStorage"}function Vu(){try{var t=u.sessionStorage,e=Lr();return t&&(t.setItem(e,"1"),t.removeItem(e)),t}catch(n){return null}}function Uu(){var t={};t.Browser=qu,t.Node=Hu,t.ReactNative=Wu,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(Se().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=xu.prototype).set=function(t,e){var n,r=!1,i=this;return Iu(this).then((function(e){return Au((e=_u(Ou(n=e,!0))).get(t))})).then((function(o){var a=_u(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(_u(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(_u(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=ju.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=Ru.prototype).get=function(t){return Se(this.a[t])},e.set=function(t,e){return this.a[t]=e,Se()},e.T=function(t){return delete this.a[t],Se()},e.ba=function(){},e.ha=function(){},(e=Lu.prototype).get=function(t){var e=this;return Se().then((function(){return Rr(e.a.getItem(t))}))},e.set=function(t,e){var n=this;return Se().then((function(){var r=Pr(e);null===r?n.T(t):n.a.setItem(t,r)}))},e.T=function(t){var e=this;return Se().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 Se(null)},e.set=function(){return Se()},e.T=function(){return Se()},e.ba=function(){},e.ha=function(){},(e=Fu.prototype).get=function(t){var e=this;return Se().then((function(){return Rr(e.a.getItem(t))}))},e.set=function(t,e){var n=this;return Se().then((function(){var r=Pr(e);null===r?n.T(t):n.a.setItem(t,r)}))},e.T=function(t){var e=this;return Se().then((function(){e.a.removeItem(t)}))},e.ba=function(){},e.ha=function(){};var zu,Bu,qu={F:Lu,$a:Fu},Hu={F:Lu,$a:Fu},Wu={F:du,$a:Mu},Gu={F:Lu,$a:Mu},Ku={od:"local",NONE:"none",qd:"session"};function $u(){var t=!(Dr(Ir())||!mr()),e=Cr(),n=_r();this.m=t,this.h=e,this.l=n,this.a={},zu||(zu=new Uu),t=zu;try{this.g=!ar()&&zr()||!u.indexedDB?new t.a.F:new ju(yr()?new Ru:new t.a.F)}catch(r){this.g=new Ru,this.h=!0}try{this.i=new t.a.$a}catch(r){this.i=new Ru}this.u=new Ru,this.f=E(this.Vb,this),this.b={}}function Xu(){return Bu||(Bu=new $u),Bu}function Yu(t,e){switch(e){case"session":return t.i;case"none":return t.u;default:return t.g}}function Ju(t,e){return"firebase:"+t.name+(e?":"+e:"")}function Qu(t,e,n){return n=Ju(e,n),"local"==e.F&&(t.b[n]=null),Yu(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 Yu(this,t.F).get(Ju(t,e))},e.set=function(t,e,n){var r=Ju(t,n),i=this,o=Yu(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=Ju(t,e),this.l&&(this.b[t]=u.localStorage.getItem(t)),pt(this.a)&&(Yu(this,"local").ba(this.f),this.h||(ar()||!zr())&&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=Ju(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)&&(Yu(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?Yu(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=Y(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):J(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 mc(t){return new I("invalid-cordova-configuration",t)}function yc(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 W(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=Rr(Dn(o=Mn(i),"firebaseError")||null))?S(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(Sr("BuildInfo.packageName",u).toLowerCase()+"://")&&e({url:t}),"function"===typeof o)try{o(t)}catch(n){console.error(n)}},zo||(zo=new Vo),function(t){var e=zo;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=Sr("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 Fo(t)}))}(t.g).then((function(n){return e=n,Qu((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)}))})):_e(Error("Cordova must run in an Android or iOS file scheme."))).then((function(){if("function"!==typeof Sr("universalLinks.subscribe",u))throw mc("cordova-universal-links-plugin-fix is not installed");if("undefined"===typeof Sr("BuildInfo.packageName",u))throw mc("cordova-plugin-buildinfo is not installed");if("function"!==typeof Sr("cordova.plugins.browsertab.openUrl",u))throw mc("cordova-plugin-browsertab is not installed");if("function"!==typeof Sr("cordova.InAppBrowser.open",u))throw mc("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")),Se()},e.Jb=function(){return _e(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 _e(new I("redirect-operation-pending"));var i=this,o=u.document,a=null,s=null,c=null,l=null;return this.c=Se().then((function(){return Do(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=Sr("BuildInfo.packageName",u);if("string"!==typeof s)throw new I("invalid-cordova-configuration");var c=Sr("BuildInfo.displayName",u),l={};if(Ir().toLowerCase().match(/iphone|ipad|ipod/))l.ibi=s;else{if(!Ir().toLowerCase().match(/android/))return _e(new I("operation-not-supported-in-this-environment"));l.apn=s}c&&(l.appDisplayName=c),o=yc(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=Sr("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=Sr("cordova.plugins.browsertab.openUrl",u)))throw new I("invalid-cordova-configuration");n(f)}else{if("function"!==typeof(n=Sr("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=Sr("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(){Vr()&&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 xc(t){return Qu(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 Fc,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,_)}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 Sc(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 _c(t){t.a.Ub()&&Sc(t).o((function(e){var n=new Mo("unknown",null,null,null,new I("operation-not-supported-in-this-environment"));jc(e)&&t.s(n)})),t.a.Qb()||Vc(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?xc(t.g).then((function(){Sc(t).o((function(e){var n=new Mo("unknown",null,null,null,new I("operation-not-supported-in-this-environment"));jc(e)&&t.s(n)}))})):_c(t)})).o((function(){_c(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<=x()-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=x())),e=!0;break}}return Vc(this.b),e};var Nc=new Fr(2e3,1e4),Cc=new Fr(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 jc(t){return!(!t||"auth/cordova-not-ready"!=t.code)}function Rc(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(jc(e))throw new I("operation-not-supported-in-this-environment");return o=e,xc(t.g).then((function(){throw o}))})).then((function(){return t.a.Xb()?new be((function(){})):xc(t.g).then((function(){return t.pa()})).then((function(){})).o((function(){}))}))}))}function Lc(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 Dc={};function Mc(t,e,n){var r=e+":"+n;return Dc[r]||(Dc[r]=new kc(t,e,n)),Dc[r]}function Fc(){this.b=null,this.f=[],this.c=[],this.a=null,this.i=this.g=!1}function Vc(t){t.g||(t.g=!0,Bc(t,!1,null,null))}function Uc(t){t.g&&!t.i&&Bc(t,!1,null,null)}function zc(t,e){if(t.b=function(){return Se(e)},t.f.length)for(var n=0;n<t.f.length;n++)t.f[n](e)}function Bc(t,e,n,r){e?r?function(t,e){if(t.b=function(){return _e(e)},t.c.length)for(var n=0;n<t.c.length;n++)t.c[n](e)}(t,r):zc(t,n):zc(t,{user:null}),t.f=[],t.c=[]}function qc(){}function Hc(){this.Bb=!1,Object.defineProperty(this,"appVerificationDisabled",{get:function(){return this.Bb},set:function(t){this.Bb=t},enumerable:!1})}function Wc(t,e){this.a=e,Gr(this,"verificationId",t)}function Gc(t,e,n,r){return new jo(t).cb(e,n).then((function(t){return new Wc(t,r)}))}function Kc(t){var e=zi(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:Ur(1e3*e.exp),authTime:Ur(1e3*e.auth_time),issuedAtTime:Ur(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[Yc];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=Jr(t))&&i.b.push(t)})),Gr(this,"auth",this.a),Gr(this,"session",this.c),Gr(this,"hints",this.b)}Fc.prototype.reset=function(){this.b=null,this.a&&(this.a.cancel(),this.a=null)},Fc.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?(Bc(this,!0,null,t.a),Se()):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){Bc(t,s,e,null)})).o((function(e){Bc(t,s,null,e)}))}(this,t,e):_e(new I("invalid-auth-event")):(Bc(this,!1,null,null),Se())}else _e(new I("invalid-auth-event"))},Fc.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,Bc(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),Se()):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):_e(new I("invalid-auth-event"))}else _e(new I("invalid-auth-event"))},Wc.prototype.confirm=function(t){return t=Ro(this.verificationId,t),this.a(t)};var Xc="mfaInfo",Yc="mfaPendingCredential";
2function Jc(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)}function Qc(t,e,n){if(t&&v(t.serverResponse)&&"auth/multi-factor-auth-required"===t.code)try{return new Jc(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!=jo.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[Qr]=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=Ui(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=Ui(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:Ur(e||null),creationTime:Ur(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(_),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)-x()-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 ml(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 yl(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 xl(){}function kl(t){return Se().then((function(){if(t.D)throw new I("app-deleted")}))}function Il(t){return W(t.providerData,(function(t){return t.providerId}))}function Sl(t,e){e&&(_l(t,e.providerId),t.providerData.push(e))}function _l(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){Sl(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 Qs(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 jl(t,e,n){return $r({user:t,credential:Lo(e),additionalUserInfo:e=Gi(e),operationType:n})}function Rl(t,e){return Cl(t,e),t.reload().then((function(){return t}))}function Ll(t,e,n,i,o){if(!Or())return _e(new I("operation-not-supported-in-this-environment"));if(t.h&&!o)return _e(t.h);var a=Wi(n.providerId),s=Lr(t.uid+":::"),u=null;(!Cr()||mr())&&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=Lc(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})),Fl(t,i,o)}function Dl(t,e,n,r,i){if(!Or())return _e(new I("operation-not-supported-in-this-environment"));if(t.h&&!i)return _e(t.h);var o=null,a=Lr(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(zl,t.v(),e.a)),e})).then((function(){return Rc(t.i,e,n,a,t.tenantId)})).o((function(e){if(o=e,t.ga)return Bl(t.ga);throw o})).then((function(){if(o)throw o})),Fl(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 Fl(t,e,n){var r=function(t,e,n){return t.h&&!n?(e.cancel(),_e(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=Qc(e.v(),ml(t),E(t.hc,t))),n||e}))}function Vl(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&&Sl(r,$r(t))})),t.redirectEventId&&(r.fa=t.redirectEventId),r}function Ul(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[Yc],mt(n,t),e.g(n)}))},k(Jc,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),mt(n,{phoneVerificationInfo:Po(t.a)}),Qs(e,_s,n)}))}(this,t,e,n):function(t,e,n){return n.Fa().then((function(n){return mt(n={mfaPendingCredential:n},{phoneVerificationInfo:Po(t.a)}),Qs(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=Jr(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 Qs(r,Js,{idToken:t,mfaEnrollmentId:n})})).then((function(t){var r=H(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:W(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 Vr()||!t?Se():new be((function(n){e=function(){Vr()&&(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?_e(new I("user-token-expired")):t||!this.b||x()>sl(this)-3e4?this.a?cl(this,{grant_type:"refresh_token",refresh_token:this.a}):Se(null):Se({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 J(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 Fl(this,kl(this).then((function(){return Nl(t).then((function(){return wl(t)})).then(xl)})))},e.mc=function(t){return this.I(t).then((function(t){return new Kc(t)}))},e.I=function(t){var e=this;return Fl(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?W(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++)Sl(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 Hr("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 Fl(this,t.c(this.a,this.uid).then((function(t){return Cl(e,t),n=jl(e,t,"reauthenticate"),e.h=null,e.reload()})).then((function(){return n})),!0)},e.Ac=function(t){return Hr("firebase.User.prototype.linkAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.linkWithCredential instead."),this.mb(t)},e.mb=function(t){var e=this,n=null;return Fl(this,Pl(this,t.providerId).then((function(){return e.I()})).then((function(n){return t.b(e.a,n)})).then((function(t){return n=jl(e,t,"link"),Rl(e,t)})).then((function(){return n})))},e.Bc=function(t,e){var n=this;return Fl(this,Pl(this,"phone").then((function(){return Gc(ml(n),t,e,E(n.mb,n))})))},e.Kc=function(t,e){var n=this;return Fl(this,Se().then((function(){return Gc(ml(n),t,e,E(n.pb,n))})),!0)},e.xb=function(t){var e=this;return Fl(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 Fl(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 Fl(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 Fl(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(xl))},e.ad=function(t){var e=this;return Fl(this,Nl(this).then((function(n){return K(Il(e),t)?function(t,e,n){return Qs(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]||_l(e,t)})),n[jo.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 Fl(this,this.I().then((function(e){return Qs(t.a,xs,{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 Ll(this,"linkViaPopup",t,(function(){return Pl(e,t.providerId).then((function(){return wl(e)}))}),!1)},e.Lc=function(t){return Ll(this,"reauthViaPopup",t,(function(){return Se()}),!0)},e.Dc=function(t){var e=this;return Dl(this,"linkViaRedirect",t,(function(){return Pl(e,t.providerId)}),!1)},e.Mc=function(t){return Dl(this,"reauthViaRedirect",t,(function(){return Se()}),!0)},e.Hb=function(t,e,n,r){var i=this;this.c&&(this.c.cancel(),this.c=null);var o=null;return Fl(this,this.I().then((function(n){return ms(i.a,{requestUri:t,postBody:r,sessionId:e,idToken:n})})).then((function(t){return o=jl(i,t,"link"),Rl(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 Fl(this,Se().then((function(){return ao(ys(i.a,{requestUri:t,sessionId:e,postBody:r,tenantId:n}),i.uid)})).then((function(t){return o=jl(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 Fl(this,this.I().then((function(e){return n=e,"undefined"===typeof t||pt(t)?{}:Di(new Si(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 Fl(this,this.I().then((function(t){return r=t,"undefined"===typeof e||pt(e)?{}:Di(new Si(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 Fl(this,t=ao(Se(t),n.uid).then((function(t){return e=jl(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&&mt(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))})),mt(t,this.O.v()),t};var zl={name:"redirectUser",F:"session"};function Bl(t){return Qu(t.b,zl,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=Ju(e,n),i=Yu(t,e.F);return t.get(e,n).then((function(o){var a=null;try{a=Rr(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(Wl,t.a).then((function(t){return t?Gl(t):e}))}))}))})).then((function(e){return t.c=e,Hl(t,e.F)})).o((function(){t.c||(t.c=e)}))}(this),this.b.addListener(Gl("local"),this.a,E(this.g,this))}function Hl(t,e){var n,r=[];for(n in Ku)Ku[n]!==e&&r.push(Qu(t.b,Gl(Ku[n]),t.a));return r.push(Qu(t.b,Wl,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");Yl(this,(function(){return Se().then((function(){return t.c&&"local"!=t.c.F?t.b.get(e,t.a):null})).then((function(n){if(n)return Hl(t,"local").then((function(){t.c=e}))}))}))};var Wl={name:"persistence",F:"session"};function Gl(t){return{name:"authUser",F:t}}function Kl(t,e){return Yl(t,(function(){return t.b.set(t.c,e.v(),t.a)}))}function $l(t){return Yl(t,(function(){return Qu(t.b,t.c,t.a)}))}function Xl(t,e){return Yl(t,(function(){return t.b.get(t.c,t.a).then((function(t){return t&&e&&(t.authDomain=e),Vl(t||{})}))}))}function Yl(t,e){return t.f=t.f.then(e,e),t.f}function Jl(t){if(this.l=!1,Gr(this,"settings",new Hc),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(_),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 Ul(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(zl,t.a).then((function(t){return t&&e&&(t.authDomain=e),Vl(t||{})}))}(t.B,af(t).options.authDomain).then((function(e){return(t.D=e)&&(e.ga=t.B),Bl(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)}
2))):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 Ql(t){$e.call(this,"languageCodeChanged"),this.g=t}function Zl(t){$e.call(this,"frameworkChanged"),this.c=t}function tf(t){return t.Zb||_e(new I("auth-domain-config-required"))}function ef(t){if(!Or())return _e(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&&yl(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=Lo(e),r=Gi(e),nf(t,e)}),(function(e){var n=null;throw e&&"auth/multi-factor-auth-required"===e.code&&(n=Qc(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||!Su()&&"none"!==t)throw n;break;default:if(!_r()&&"none"!==t)throw n}}(t),Yl(this,(function(){return t!=n.c.F?n.b.get(n.c,n.a).then((function(r){return e=r,Hl(n,t)})).then((function(){if(n.c=Gl(t),e)return n.b.set(n.c,e,n.a)})):Se()}))},k(Jl,bn),k(Ql,$e),k(Zl,$e),(e=Jl.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 Ql(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 J(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 _e(new I("operation-not-supported-in-this-environment"));var e=this,n=Wi(t.providerId),i=Lr(),o=null;(!Cr()||mr())&&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=Lc(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 _e(new I("operation-not-supported-in-this-environment"));var e=this;return lf(this,tf(this).then((function(){return function(t){return Yl(t,(function(){return t.b.set(Wl,t.c.F,t.a)}))}(e.i)})).then((function(){return Rc(e.a,"signInViaRedirect",t,void 0,e.S())})))},e.pa=function(){var t=this;return ef(this).then((function(e){return t.a&&Uc(t.a.b),e})).o((function(e){throw t.a&&Uc(t.a.b),e}))},e.bd=function(t){if(!t)return _e(new I("null-user"));if(this.R!=t.tenantId)return _e(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&&Uc(t.a.b),sf(t)?(rf(t,null),$l(t.i).then((function(){cf(t)}))):Se()})))},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,Se(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,Qs(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,Qs(n.b,Ks,{email:t,password:e}))}))},e.cc=function(t,e){var n=this;return this.h.then((function(){return of(n,Qs(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 Hr("firebase.auth.Auth.prototype.signInAndRetrieveDataWithCredential is deprecated. Please use firebase.auth.Auth.prototype.signInWithCredential instead."),this.Ya(t)},e.vb=function(){var t=this;return this.h.then((function(){var e=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)&&yl(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),Uc(this.a.b)),Promise.resolve()},e.fc=function(t){return lf(this,function(t,e){return Qs(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,Se().then((function(){var t=new Si(e);if(!t.c)throw new I("argument-error",Ai+" must be true when sending sign in link to email");return Di(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,Se().then((function(){return"undefined"===typeof e||pt(e)?{}:Di(new Si(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,Se().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 mf(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 yf(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 mf(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()},mf.prototype.getResponse=function(){return yf(this),this.b},mf.prototype.execute=function(){yf(this);var t=this;this.a||(this.a=setTimeout((function(){t.b=function(){for(var t=50,e=[];0<t;)e.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),t--;return e.join("")}();var e=t.c.callback,n=t.c["expired-callback"];if(e)try{e(t.b)}catch(r){}t.a=setTimeout((function(){if(t.a=null,t.b=null,n)try{n()}catch(r){}t.h&&t.execute()}),6e4)}),500))},mf.prototype.delete=function(){yf(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),Se(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}"),xf=new Fr(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"))}),xf.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]},Se(Ua(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[Sf];this.a[Sf]=function(t){if(Nf(s,t),"function"===typeof c)c(t);else if("string"===typeof c){var e=Sr(c,u);"function"===typeof e&&e(t)}};var l=this.a[_f];this.a[_f]=function(){if(Nf(s,null),"function"===typeof l)l();else if("string"===typeof l){var t=Sr(l,u);"function"===typeof t&&t()}}}var Sf="callback",_f="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 jf(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(_),i)}function Rf(t,e,n,r){t:{n=Array.prototype.slice.call(n);for(var i=0,o=!1,a=0;a<e.length;a++)if(e[a].optional)o=!0;else{if(o)throw new 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>=Lf.length)throw new I("internal-error","Argument validator received an unsupported number of arguments.");
2n=Lf[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,Se().then((function(){if(Ar()&&!yr())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,Qs(t.s,Ls,{})})).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="',Bt(a.name),'"'),a.type){o.push(' type="',Bt(a.type),'"');var s={};mt(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(jf,If);var Lf="First Second Third Fourth Fifth Sixth Seventh Eighth Ninth".split(" ");function Df(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 Ff(t,e){return{name:t||"",J:"a valid object",optional:!!e,K:v}}function Vf(t,e){return{name:t||"",J:"a function",optional:!!e,K:d}}function Uf(t,e){return{name:t||"",J:"null",optional:!!e,K:function(t){return null===t}}}function zf(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 Bf(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 Hf(){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 Wf(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){Rf(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 Rf(o,n,t),e.apply(this,t)}if(!n)return e;var i,o=function(t){return(t=t.split("."))[t.length-1]}(t);for(i in e)r[i]=e[i];for(i in e.prototype)r.prototype[i]=e.prototype[i];return r}Gf(Jl.prototype,{fb:{name:"applyActionCode",j:[Df("code")]},Pa:{name:"checkActionCode",j:[Df("code")]},jb:{name:"confirmPasswordReset",j:[Df("code"),Df("newPassword")]},cc:{name:"createUserWithEmailAndPassword",j:[Df("email"),Df("password")]},fc:{name:"fetchSignInMethodsForEmail",j:[Df("email")]},pa:{name:"getRedirectResult",j:[]},zc:{name:"isSignInWithEmailLink",j:[Df("emailLink")]},Fc:{name:"onAuthStateChanged",j:[Wf(Ff(),Vf(),"nextOrObserver"),Vf("opt_error",!0),Vf("opt_completed",!0)]},Gc:{name:"onIdTokenChanged",j:[Wf(Ff(),Vf(),"nextOrObserver"),Vf("opt_error",!0),Vf("opt_completed",!0)]},rb:{name:"sendPasswordResetEmail",j:[Df("email"),Wf(Ff("opt_actionCodeSettings",!0),Uf(null,!0),"opt_actionCodeSettings",!0)]},sb:{name:"sendSignInLinkToEmail",j:[Df("email"),Ff("actionCodeSettings")]},tb:{name:"setPersistence",j:[Df("persistence")]},Qc:{name:"signInAndRetrieveDataWithCredential",j:[zf()]},vb:{name:"signInAnonymously",j:[]},Ya:{name:"signInWithCredential",j:[zf()]},Rc:{name:"signInWithCustomToken",j:[Df("token")]},Sc:{name:"signInWithEmailAndPassword",j:[Df("email"),Df("password")]},Tc:{name:"signInWithEmailLink",j:[Df("email"),Df("emailLink",!0)]},Uc:{name:"signInWithPhoneNumber",j:[Df("phoneNumber"),Hf()]},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:[Wf({name:"user",J:"an instance of Firebase User",optional:!1,K:function(t){return!!(t&&t instanceof hl)}},Uf(),"user")]},wb:{name:"signOut",j:[]},toJSON:{name:"toJSON",j:[Df(null,!0)]},dd:{name:"useDeviceLanguage",j:[]},fd:{name:"verifyPasswordResetCode",j:[Df("code")]}}),Kf(Jl.prototype,{lc:{name:"languageCode",gb:Wf(Df(),Uf(),"languageCode")},ti:{name:"tenantId",gb:Wf(Df(),Uf(),"tenantId")}}),Jl.Persistence=Ku,Jl.Persistence.LOCAL="local",Jl.Persistence.SESSION="session",Jl.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:[zf()]},mb:{name:"linkWithCredential",j:[zf()]},Bc:{name:"linkWithPhoneNumber",j:[Df("phoneNumber"),Hf()]},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:[zf()]},pb:{name:"reauthenticateWithCredential",j:[zf()]},Kc:{name:"reauthenticateWithPhoneNumber",j:[Df("phoneNumber"),Hf()]},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:[Wf(Ff("opt_actionCodeSettings",!0),Uf(null,!0),"opt_actionCodeSettings",!0)]},toJSON:{name:"toJSON",j:[Df(null,!0)]},ad:{name:"unlink",j:[Df("provider")]},xb:{name:"updateEmail",j:[Df("email")]},yb:{name:"updatePassword",j:[Df("password")]},cd:{name:"updatePhoneNumber",j:[zf("phone")]},zb:{name:"updateProfile",j:[Ff("profile")]},Ab:{name:"verifyBeforeUpdateEmail",j:[Df("email"),Wf(Ff("opt_actionCodeSettings",!0),Uf(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(Hc.prototype,{appVerificationDisabled:{name:"appVerificationDisabledForTesting",gb:Mf("appVerificationDisabledForTesting")}}),Gf(Wc.prototype,{confirm:{name:"confirm",j:[Df("verificationCode")]}}),$f(oo,"fromJSON",(function(t){t="string"===typeof t?JSON.parse(t):t;for(var e,n=[ho,So,Co,co],r=0;r<n.length;r++)if(e=n[r](t))return e;return null}),[Wf(Df(),Ff(),"json")]),$f(_o,"credential",(function(t,e){return new Io(t,e)}),[Df("email"),Df("password")]),Gf(Io.prototype,{v:{name:"toJSON",j:[Df(null,!0)]}}),Gf(yo.prototype,{Aa:{name:"addScope",j:[Df("scope")]},Ia:{name:"setCustomParameters",j:[Ff("customOAuthParameters")]}}),$f(yo,"credential",go,[Wf(Df(),Ff(),"token")]),$f(_o,"credentialWithLink",Oo,[Df("email"),Df("emailLink")]),Gf(bo.prototype,{Aa:{name:"addScope",j:[Df("scope")]},Ia:{name:"setCustomParameters",j:[Ff("customOAuthParameters")]}}),$f(bo,"credential",wo,[Wf(Df(),Ff(),"token")]),Gf(Eo.prototype,{Aa:{name:"addScope",j:[Df("scope")]},Ia:{name:"setCustomParameters",j:[Ff("customOAuthParameters")]}}),$f(Eo,"credential",To,[Wf(Df(),Wf(Ff(),Uf()),"idToken"),Wf(Df(),Uf(),"accessToken",!0)]),Gf(xo.prototype,{Ia:{name:"setCustomParameters",j:[Ff("customOAuthParameters")]}}),$f(xo,"credential",ko,[Wf(Df(),Ff(),"token"),Df("secret",!0)]),Gf(mo.prototype,{Aa:{name:"addScope",j:[Df("scope")]}
2,credential:{name:"credential",j:[Wf(Df(),Wf(Ff(),Uf()),"optionsOrIdToken"),Wf(Df(),Uf(),"accessToken",!0)]},Ia:{name:"setCustomParameters",j:[Ff("customOAuthParameters")]}}),Gf(lo.prototype,{v:{name:"toJSON",j:[Df(null,!0)]}}),Gf(so.prototype,{v:{name:"toJSON",j:[Df(null,!0)]}}),$f(jo,"credential",Ro,[Df("verificationId"),Df("verificationCode")]),Gf(jo.prototype,{cb:{name:"verifyPhoneNumber",j:[Wf(Df(),{name:"phoneInfoOptions",J:"valid phone info options",optional:!1,K:function(t){return!!t&&(t.session&&t.phoneNumber?Bf(t.session,ro)&&"string"===typeof t.phoneNumber:t.session&&t.multiFactorHint?Bf(t.session,io)&&qf(t.multiFactorHint):t.session&&t.multiFactorUid?Bf(t.session,io)&&"string"===typeof t.multiFactorUid:!!t.phoneNumber&&"string"===typeof t.phoneNumber)}},"phoneInfoOptions"),Hf()]}}),Gf(No.prototype,{v:{name:"toJSON",j:[Df(null,!0)]}}),Gf(I.prototype,{toJSON:{name:"toJSON",j:[Df(null,!0)]}}),Gf(qo.prototype,{toJSON:{name:"toJSON",j:[Df(null,!0)]}}),Gf(Bo.prototype,{toJSON:{name:"toJSON",j:[Df(null,!0)]}}),Gf(Jc.prototype,{toJSON:{name:"toJSON",j:[Df(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}},Df("displayName",!0)]},$c:{name:"unenroll",j:[Wf({name:"multiFactorInfo",J:"a valid multiFactorInfo",optional:!1,K:qf},Df(),"multiFactorInfoIdentifier")]}}),Gf(jf.prototype,{clear:{name:"clear",j:[]},render:{name:"render",j:[]},verify:{name:"verify",j:[]}}),$f(yi,"parseLink",Ii,[Df("link")]),$f(gf,"assertion",(function(t){return new el(t)}),[zf("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:Jl,AuthCredential:oo,Error:I};$f(t,"EmailAuthProvider",_o,[]),$f(t,"FacebookAuthProvider",yo,[]),$f(t,"GithubAuthProvider",bo,[]),$f(t,"GoogleAuthProvider",Eo,[]),$f(t,"TwitterAuthProvider",xo,[]),$f(t,"OAuthProvider",mo,[Df("providerId")]),$f(t,"SAMLAuthProvider",vo,[Df("providerId")]),$f(t,"PhoneAuthProvider",jo,[{name:"auth",J:"an instance of Firebase Auth",optional:!0,K:function(t){return!!(t&&t instanceof Jl)}}]),$f(t,"RecaptchaVerifier",jf,[Wf(Df(),{name:"",J:"an HTML element",optional:!1,K:function(t){return!!(t&&t instanceof Element)}},"recaptchaContainer"),Ff("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",yi,[]),$f(t,"PhoneMultiFactorGenerator",gf,[]),r.a.INTERNAL.registerComponent({name:"auth",instanceFactory:function(t){return new Jl(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(56))},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";var r=n(162),i=n(163),o=n(164),a=n(170),s=n(172),u=n(173);t.exports=function t(){var e=[],n=a(),g={},b=!1,w=-1;return E.data=function(t,e){if(s(t))return 2===arguments.length?(v("data",b),g[t]=e,E):l.call(g,t)&&g[t]||null;if(t)return v("data",b),g=t,E;return g},E.freeze=T,E.attachers=e,E.use=function(t){var n;if(v("use",b),null===t||void 0===t);else if("function"===typeof t)s.apply(null,arguments);else{if("object"!==typeof t)throw new Error("Expected usable value, not `"+t+"`");"length"in t?a(t):i(t)}n&&(g.settings=r(g.settings||{},n));return E;function i(t){a(t.plugins),t.settings&&(n=r(n||{},t.settings))}function o(t){if("function"===typeof t)s(t);else{if("object"!==typeof t)throw new Error("Expected usable value, not `"+t+"`");"length"in t?s.apply(null,t):i(t)}}function a(t){var e,n;if(null===t||void 0===t);else{if("object"!==typeof t||!("length"in t))throw new Error("Expected a list of plugins, not `"+t+"`");for(e=t.length,n=-1;++n<e;)o(t[n])}}function s(t,n){var i=x(t);i?(u(i[1])&&u(n)&&(n=r(i[1],n)),i[1]=n):e.push(c.call(arguments))}},E.parse=function(t){var e,n=o(t);if(T(),p("parse",e=E.Parser),h(e))return new e(String(n),n).parse();return e(String(n),n)},E.stringify=function(t,e){var n,r=o(e);if(T(),d("stringify",n=E.Compiler),m(t),h(n))return new n(t,r).compile();return n(t,r)},E.run=k,E.runSync=function(t,e){var n,r=!1;return k(t,e,(function(t,e){r=!0,i(t),n=e})),y("runSync","run",r),n},E.process=I,E.processSync=function(t){var e,n=!1;return T(),p("processSync",E.Parser),d("processSync",E.Compiler),I(e=o(t),(function(t){n=!0,i(t)})),y("processSync","process",n),e},E;function E(){for(var n=t(),i=e.length,o=-1;++o<i;)n.use.apply(null,e[o]);return n.data(r(!0,{},g)),n}function T(){var t,r,i,o;if(b)return E;for(;++w<e.length;)r=(t=e[w])[0],null,!1!==(i=t[1])&&(!0===i&&(t[1]=void 0),"function"===typeof(o=r.apply(E,t.slice(1)))&&n.use(o));return b=!0,w=1/0,E}function x(t){for(var n,r=e.length,i=-1;++i<r;)if((n=e[i])[0]===t)return n}function k(t,e,r){if(m(t),T(),r||"function"!==typeof e||(r=e,e=null),!r)return new Promise(i);function i(i,a){n.run(t,o(e),(function(e,n,o){n=n||t,e?a(e):i?i(n):r(null,n,o)}))}i(null,r)}function I(t,e){if(T(),p("process",E.Parser),d("process",E.Compiler),!e)return new Promise(n);function n(n,r){var i=o(t);f.run(E,{file:i},(function(t){t?r(t):n?n(i):e(null,i)}))}n(null,e)}}().freeze();var c=[].slice,l={}.hasOwnProperty,f=a().use((function(t,e){e.tree=t.parse(e.file)})).use((function(t,e,n){t.run(e.tree,e.file,(function(t,r,i){t?n(t):(e.tree=r,e.file=i,n())}))})).use((function(t,e){e.file.contents=t.stringify(e.tree,e.file)}));function h(t){return"function"===typeof t&&function(t){var e;
2for(e in t)return!0;return!1}(t.prototype)}function p(t,e){if("function"!==typeof e)throw new Error("Cannot `"+t+"` without `Parser`")}function d(t,e){if("function"!==typeof e)throw new Error("Cannot `"+t+"` without `Compiler`")}function v(t,e){if(e)throw new Error(["Cannot invoke `"+t+"` on a frozen processor.\nCreate a new ","processor first, by invoking it: use `processor()` instead of ","`processor`."].join(""))}function m(t){if(!t||!s(t.type))throw new Error("Expected node, got `"+t+"`")}function y(t,e,n){if(!n)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}},function(t,e,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=function(t){return"function"===typeof Array.isArray?Array.isArray(t):"[object Array]"===i.call(t)},u=function(t){if(!t||"[object Object]"!==i.call(t))return!1;var e,n=r.call(t,"constructor"),o=t.constructor&&t.constructor.prototype&&r.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!o)return!1;for(e in t);return"undefined"===typeof e||r.call(t,e)},c=function(t,e){o&&"__proto__"===e.name?o(t,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):t[e.name]=e.newValue},l=function(t,e){if("__proto__"===e){if(!r.call(t,e))return;if(a)return a(t,e).value}return t[e]};t.exports=function t(){var e,n,r,i,o,a,f=arguments[0],h=1,p=arguments.length,d=!1;for("boolean"===typeof f&&(d=f,f=arguments[1]||{},h=2),(null==f||"object"!==typeof f&&"function"!==typeof f)&&(f={});h<p;++h)if(null!=(e=arguments[h]))for(n in e)r=l(f,n),f!==(i=l(e,n))&&(d&&i&&(u(i)||(o=s(i)))?(o?(o=!1,a=r&&s(r)?r:[]):a=r&&u(r)?r:{},c(f,{name:n,newValue:t(d,a,i)})):"undefined"!==typeof i&&c(f,{name:n,newValue:i}));return f}},function(t,e,n){"use strict";t.exports=function(t){if(t)throw t}},function(t,e,n){"use strict";var r=n(165),i=n(167);t.exports=i;var o=i.prototype;function a(t,e,n){var i=this.path,o=new r(t,e,n);return i&&(o.name=i+":"+o.name,o.file=i),o.fatal=!1,this.messages.push(o),o}o.message=a,o.info=function(){var t=this.message.apply(this,arguments);return t.fatal=null,t},o.fail=function(){var t=this.message.apply(this,arguments);throw t.fatal=!0,t},o.warn=a},function(t,e,n){"use strict";var r=n(166);function i(){}t.exports=a,i.prototype=Error.prototype,a.prototype=new i;var o=a.prototype;function a(t,e,n){var i,o,a;"string"===typeof e&&(n=e,e=null),i=function(t){var e,n=[null,null];"string"===typeof t&&(-1===(e=t.indexOf(":"))?n[1]=t:(n[0]=t.slice(0,e),n[1]=t.slice(e+1)));return n}(n),o=r(e)||"1:1",a={start:{line:null,column:null},end:{line:null,column:null}},e&&e.position&&(e=e.position),e&&(e.start?(a=e,e=e.start):a.start=e),t.stack&&(this.stack=t.stack,t=t.message),this.message=t,this.name=o,this.reason=t,this.line=e?e.line:null,this.column=e?e.column:null,this.location=a,this.source=i[0],this.ruleId=i[1]}o.file="",o.name="",o.reason="",o.message="",o.stack="",o.fatal=null,o.column=null,o.line=null},function(t,e,n){"use strict";var r={}.hasOwnProperty;function i(t){return t&&"object"===typeof t||(t={}),a(t.line)+":"+a(t.column)}function o(t){return t&&"object"===typeof t||(t={}),i(t.start)+"-"+i(t.end)}function a(t){return t&&"number"===typeof t?t:1}t.exports=function(t){if(!t||"object"!==typeof t)return null;if(r.call(t,"position")||r.call(t,"type"))return o(t.position);if(r.call(t,"start")||r.call(t,"end"))return o(t);if(r.call(t,"line")||r.call(t,"column"))return i(t);return null}},function(t,e,n){"use strict";(function(e){var r=n(103),i=n(168),o=n(169);t.exports=c;var a={}.hasOwnProperty,s=c.prototype;s.toString=function(t){var e=this.contents||"";return o(e)?e.toString(t):String(e)};var u=["history","path","basename","stem","extname","dirname"];function c(t){var n,r,i;if(t){if("string"===typeof t||o(t))t={contents:t};else if("message"in t&&"messages"in t)return t}else t={};if(!(this instanceof c))return new c(t);for(this.data={},this.messages=[],this.history=[],this.cwd=e.cwd(),r=-1,i=u.length;++r<i;)n=u[r],a.call(t,n)&&(this[n]=t[n]);for(n in t)-1===u.indexOf(n)&&(this[n]=t[n])}function l(t,e){if(-1!==t.indexOf(r.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+r.sep+"`")}function f(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}function h(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}Object.defineProperty(s,"path",{get:function(){return this.history[this.history.length-1]},set:function(t){f(t,"path"),t!==this.path&&this.history.push(t)}}),Object.defineProperty(s,"dirname",{get:function(){return"string"===typeof this.path?r.dirname(this.path):void 0},set:function(t){h(this.path,"dirname"),this.path=r.join(t||"",this.basename)}}),Object.defineProperty(s,"basename",{get:function(){return"string"===typeof this.path?r.basename(this.path):void 0},set:function(t){f(t,"basename"),l(t,"basename"),this.path=r.join(this.dirname||"",t)}}),Object.defineProperty(s,"extname",{get:function(){return"string"===typeof this.path?r.extname(this.path):void 0},set:function(t){var e=t||"";if(l(e,"extname"),h(this.path,"extname"),e){if("."!==e.charAt(0))throw new Error("`extname` must start with `.`");
2if(-1!==e.indexOf(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=i(this.path,e)}}),Object.defineProperty(s,"stem",{get:function(){return"string"===typeof this.path?r.basename(this.path,this.extname):void 0},set:function(t){f(t,"stem"),l(t,"stem"),this.path=r.join(this.dirname||"",t+(this.extname||""))}})}).call(this,n(102))},function(t,e,n){"use strict";var r=n(103);t.exports=function(t,e){if("string"!==typeof t)return t;if(0===t.length)return t;var n=r.basename(t,r.extname(t))+e;return r.join(r.dirname(t),n)}},function(t,e){function n(t){return!!t.constructor&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}t.exports=function(t){return null!=t&&(n(t)||function(t){return"function"===typeof t.readFloatLE&&"function"===typeof t.slice&&n(t.slice(0,0))}(t)||!!t._isBuffer)}},function(t,e,n){"use strict";var r=n(171);t.exports=o,o.wrap=r;var i=[].slice;function o(){var t=[],e={run:function(){var e=-1,n=i.call(arguments,0,-1),o=arguments[arguments.length-1];if("function"!==typeof o)throw new Error("Expected function as last argument, not "+o);function a(s){var u=t[++e],c=i.call(arguments,0),l=c.slice(1),f=n.length,h=-1;if(s)o(s);else{for(;++h<f;)null!==l[h]&&void 0!==l[h]||(l[h]=n[h]);n=l,u?r(u,a).apply(null,n):o.apply(null,[null].concat(n))}}a.apply(null,[null].concat(n))},use:function(n){if("function"!==typeof n)throw new Error("Expected `fn` to be a function, not "+n);return t.push(n),e}};return e}},function(t,e,n){"use strict";var r=[].slice;t.exports=function(t,e){var n;return function(){var e,a=r.call(arguments,0),s=t.length>a.length;s&&a.push(i);try{e=t.apply(null,a)}catch(u){if(s&&n)throw u;return i(u)}s||(e&&"function"===typeof e.then?e.then(o,i):e instanceof Error?i(e):o(e))};function i(){n||(n=!0,e.apply(null,arguments))}function o(t){i(null,t)}}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return"[object String]"===n.call(t)}},function(t,e,n){"use strict";var r=Object.prototype.toString;t.exports=function(t){var e;return"[object Object]"===r.call(t)&&(null===(e=Object.getPrototypeOf(t))||e===Object.getPrototypeOf({}))}},function(t,e,n){"use strict";var r=n(175),i=n(37),o=n(177);function a(t){var e=r(o);e.prototype.options=i(e.prototype.options,this.data("settings"),t),this.Parser=e}t.exports=a,a.Parser=o},function(t,e,n){"use strict";var r=n(37),i=n(176);t.exports=function(t){var e,n,o;for(n in i(s,t),i(a,s),e=s.prototype)(o=e[n])&&"object"===typeof o&&(e[n]="concat"in o?o.concat():r(o));return s;function a(e){return t.apply(this,e)}function s(){return this instanceof s?t.apply(this,arguments):new a(arguments)}}},function(t,e){"function"===typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},function(t,e,n){"use strict";var r=n(37),i=n(178),o=n(179),a=n(180),s=n(181),u=n(187);function c(t,e){this.file=e,this.offset={},this.options=r(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=o(e).toOffset,this.unescape=a(this,"escape"),this.decode=s(this)}t.exports=c;var l=c.prototype;function f(t){var e,n=[];for(e in t)n.push(e);return n}l.setOptions=n(188),l.parse=n(191),l.options=n(105),l.exitStart=i("atStart",!0),l.enterList=i("inList",!1),l.enterLink=i("inLink",!1),l.enterBlock=i("inBlock",!1),l.interruptParagraph=[["thematicBreak"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],l.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],l.interruptBlockquote=[["indentedCode",{commonmark:!0}],["fencedCode",{commonmark:!0}],["atxHeading",{commonmark:!0}],["setextHeading",{commonmark:!0}],["thematicBreak",{commonmark:!0}],["html",{commonmark:!0}],["list",{commonmark:!0}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],l.blockTokenizers={newline:n(195),indentedCode:n(196),fencedCode:n(197),blockquote:n(198),atxHeading:n(199),thematicBreak:n(200),list:n(201),setextHeading:n(203),html:n(204),footnote:n(205),definition:n(207),table:n(208),paragraph:n(209)},l.inlineTokenizers={escape:n(210),autoLink:n(212),url:n(213),html:n(215),link:n(216),reference:n(217),strong:n(218),emphasis:n(220),deleti
2on:n(223),code:n(225),break:n(227),text:n(229)},l.blockMethods=f(l.blockTokenizers),l.inlineMethods=f(l.inlineTokenizers),l.tokenizeBlock=u("block"),l.tokenizeInline=u("inline"),l.tokenizeFactory=u},function(t,e,n){"use strict";t.exports=function(t,e,n){return function(){var r=n||this,i=r[t];return r[t]=!e,function(){r[t]=i}}}},function(t,e,n){"use strict";function r(t){return function(e){var n=-1,r=t.length;if(e<0)return{};for(;++n<r;)if(t[n]>e)return{line:n+1,column:e-(t[n-1]||0)+1,offset:e};return{}}}function i(t){return function(e){var n=e&&e.line,r=e&&e.column;if(!isNaN(n)&&!isNaN(r)&&n-1 in t)return(t[n-2]||0)+r-1||0;return-1}}t.exports=function(t){var e=function(t){var e=[],n=t.indexOf("\n");for(;-1!==n;)e.push(n+1),n=t.indexOf("\n",n+1);return e.push(t.length+1),e}(String(t));return{toPosition:r(e),toOffset:i(e)}}},function(t,e,n){"use strict";t.exports=function(t,e){return function(n){var r,i=0,o=n.indexOf("\\"),a=t[e],s=[];for(;-1!==o;)s.push(n.slice(i,o)),i=o+1,(r=n.charAt(i))&&-1!==a.indexOf(r)||s.push("\\"),o=n.indexOf("\\",i);return s.push(n.slice(i)),s.join("")}}},function(t,e,n){"use strict";var r=n(37),i=n(82);t.exports=function(t){return o.raw=function(t,o,a){return i(t,r(a,{position:e(o),warning:n}))},o;function e(e){for(var n=t.offset,r=e.line,i=[];++r&&r in n;)i.push((n[r]||0)+1);return{start:e,indent:i}}function n(e,n,r){3!==r&&t.file.message(e,n)}function o(r,o,a){i(r,{position:e(o),warning:n,text:a,reference:a,textContext:t,referenceContext:t})}}},function(t){t.exports=JSON.parse('{"AElig":"\xc6","AMP":"&","Aacute":"\xc1","Acirc":"\xc2","Agrave":"\xc0","Aring":"\xc5","Atilde":"\xc3","Auml":"\xc4","COPY":"\xa9","Ccedil":"\xc7","ETH":"\xd0","Eacute":"\xc9","Ecirc":"\xca","Egrave":"\xc8","Euml":"\xcb","GT":">","Iacute":"\xcd","Icirc":"\xce","Igrave":"\xcc","Iuml":"\xcf","LT":"<","Ntilde":"\xd1","Oacute":"\xd3","Ocirc":"\xd4","Ograve":"\xd2","Oslash":"\xd8","Otilde":"\xd5","Ouml":"\xd6","QUOT":"\\"","REG":"\xae","THORN":"\xde","Uacute":"\xda","Ucirc":"\xdb","Ugrave":"\xd9","Uuml":"\xdc","Yacute":"\xdd","aacute":"\xe1","acirc":"\xe2","acute":"\xb4","aelig":"\xe6","agrave":"\xe0","amp":"&","aring":"\xe5","atilde":"\xe3","auml":"\xe4","brvbar":"\xa6","ccedil":"\xe7","cedil":"\xb8","cent":"\xa2","copy":"\xa9","curren":"\xa4","deg":"\xb0","divide":"\xf7","eacute":"\xe9","ecirc":"\xea","egrave":"\xe8","eth":"\xf0","euml":"\xeb","frac12":"\xbd","frac14":"\xbc","frac34":"\xbe","gt":">","iacute":"\xed","icirc":"\xee","iexcl":"\xa1","igrave":"\xec","iquest":"\xbf","iuml":"\xef","laquo":"\xab","lt":"<","macr":"\xaf","micro":"\xb5","middot":"\xb7","nbsp":"\xa0","not":"\xac","ntilde":"\xf1","oacute":"\xf3","ocirc":"\xf4","ograve":"\xf2","ordf":"\xaa","ordm":"\xba","oslash":"\xf8","otilde":"\xf5","ouml":"\xf6","para":"\xb6","plusmn":"\xb1","pound":"\xa3","quot":"\\"","raquo":"\xbb","reg":"\xae","sect":"\xa7","shy":"\xad","sup1":"\xb9","sup2":"\xb2","sup3":"\xb3","szlig":"\xdf","thorn":"\xfe","times":"\xd7","uacute":"\xfa","ucirc":"\xfb","ugrave":"\xf9","uml":"\xa8","uuml":"\xfc","yacute":"\xfd","yen":"\xa5","yuml":"\xff"}')},function(t){t.exports=JSON.parse('{"0":"\ufffd","128":"\u20ac","130":"\u201a","131":"\u0192","132":"\u201e","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02c6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017d","145":"\u2018","146":"\u2019","147":"\u201c","148":"\u201d","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02dc","153":"\u2122","154":"\u0161","155":"\u203a","156":"\u0153","158":"\u017e","159":"\u0178"}')},function(t,e,n){"use strict";t.exports=function(t){var e="string"===typeof t?t.charCodeAt(0):t;return e>=97&&e<=102||e>=65&&e<=70||e>=48&&e<=57}},function(t,e,n){"use strict";var r=n(104),i=n(62);t.exports=function(t){return r(t)||i(t)}},function(t,e,n){"use strict";var r;t.exports=function(t){var e,n="&"+t+";";if((r=r||document.createElement("i")).innerHTML=n,59===(e=r.textContent).charCodeAt(e.length-1)&&"semi"!==t)return!1;return e!==n&&e}},function(t,e,n){"use strict";t.exports=function(t){return function(e,n){var o,a,s,u,c,l,f=this,h=f.offset,p=[],d=f[t+"Methods"],v=f[t+"Tokenizers"],m=n.line,y=n.column;if(!e)return p;E.now=b,E.file=f.file,g("");for(;e;){for(o=-1,a=d.length,c=!1;++o<a&&(u=d[o],!(s=v[u])||s.onlyAtStart&&!f.atStart||s.notInList&&f.inList||s.notInBlock&&f.inBlock||s.notInLink&&f.inLink||(l=e.length,s.apply(f,[E,e]),!(c=l!==e.length))););c||f.file.fail(new Error("Infinite loop"),E.now())}return f.eof=b(),p;function g(t){for(var e=-1,n=t.indexOf("\n");-1!==n;)m++,e=n,n=t.indexOf("\n",n+1);-1===e?y+=t.length:y=t.length-e,m in h&&(-1!==e?y+=h[m]:y<=h[m]&&(y=h[m]+1))}function b(){var t={line:m,column:y};return t.offset=f.toOffset(t),t}function w(t){this.start=t,this.end=b()}function E(t){var n=function(){var t=[],e=m+1;return function(){for(var n=m+1;e<n;)t.push((h[e]||0)+1),e++;return t}}(),o=function(){var t=b();return function(e,n){var r=e.position,i=r?r.start:t,o=[],a=r&&r.end.line,s=t.line;if(e.position=new w(i),r&&n&&r.indent){if(o=r.indent,a<s){for(;++a<s;)o.push((h[a]||0)+1);o.push(t.column)}n=o.concat(n)}return e.position.indent=n||[],e}}(),a=b();return function(t){e.substring(0,t.length)!==t&&f.file.fail(new Error("Incorrectly eaten value: please report this warning on http://git.io/vg5Ft"),b())}(t),s.reset=u,u.test=c,s.test=c,e=e.substring(t.length),g(t),n=n(),s;function s(t,e){return o(function(t,e){var n=e?e.children:p,o=n[n.length-1];return o&&t.type===o.type&&t.type in r&&i(o)&&i(t)&&(t=r[t.type].call(f,o,t)),t!==o&&n.push(t),f.atStart&&0!==
2p.length&&f.exitStart(),t}(o(t),e),n)}function u(){var n=s.apply(null,arguments);return m=a.line,y=a.column,e=t+e,n}function c(){var n=o({});return m=a.line,y=a.column,e=t+e,n.position}}}};var r={text:function(t,e){return t.value+=e.value,t},blockquote:function(t,e){if(this.options.commonmark)return e;return t.children=t.children.concat(e.children),t}};function i(t){var e,n;return"text"!==t.type||!t.position||(e=t.position.start,n=t.position.end,e.line!==n.line||n.column-e.column===t.value.length)}},function(t,e,n){"use strict";var r=n(37),i=n(189),o=n(105);t.exports=function(t){var e,n,a=this.options;if(null==t)t={};else{if("object"!==typeof t)throw new Error("Invalid value `"+t+"` for setting `options`");t=r(t)}for(e in o){if(null==(n=t[e])&&(n=a[e]),"blocks"!==e&&"boolean"!==typeof n||"blocks"===e&&"object"!==typeof n)throw new Error("Invalid value `"+n+"` for setting `options."+e+"`");t[e]=n}return this.options=t,this.escape=i(t),this}},function(t,e,n){"use strict";t.exports=a;var r=["\\","`","*","{","}","[","]","(",")","#","+","-",".","!","_",">"],i=r.concat(["~","|"]),o=i.concat(["\n",'"',"$","%","&","'",",","/",":",";","<","=","?","@","^"]);function a(t){var e=t||{};return e.commonmark?o:e.gfm?i:r}a.default=r,a.gfm=i,a.commonmark=o},function(t){t.exports=JSON.parse('["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]')},function(t,e,n){"use strict";var r=n(37),i=n(192);t.exports=function(){var t,e=String(this.file),n={line:1,column:1,offset:0},a=r(n);65279===(e=e.replace(o,"\n")).charCodeAt(0)&&(e=e.slice(1),a.column++,a.offset++);t={type:"root",children:this.tokenizeBlock(e,a),position:{start:n,end:this.eof||r(n)}},this.options.position||i(t,!0);return t};var o=/\r\n|\r/g},function(t,e,n){"use strict";var r=n(63);function i(t){delete t.position}function o(t){t.position=void 0}t.exports=function(t,e){return r(t,e?i:o),t}},function(t,e,n){"use strict";t.exports=i;var r=n(194);function i(t,e,n,i){var a;function s(t,r,u){var c,l=[];return(e&&!a(t,r,u[u.length-1]||null)||!1!==(l=o(n(t,u)))[0])&&t.children&&"skip"!==l[0]&&!1===(c=o(function(t,e){var n,r=i?-1:1,o=(i?t.length:-1)+r;for(;o>-1&&o<t.length;){if(!1===(n=s(t[o],o,e))[0])return n;o="number"===typeof n[1]?n[1]:o+r}}(t.children,u.concat(t))))[0]?c:l}"function"===typeof e&&"function"!==typeof n&&(i=n,n=e,e=null),a=r(e),s(t,null,[])}function o(t){return null!==t&&"object"===typeof t&&"length"in t?t:"number"===typeof t?[!0,t]:[t]}i.CONTINUE=!0,i.SKIP="skip",i.EXIT=!1},function(t,e,n){"use strict";function r(t){if("string"===typeof t)return function(t){return function(e){return Boolean(e&&e.type===t)}}(t);if(null===t||void 0===t)return a;
2if("object"===typeof t)return("length"in t?o:i)(t);if("function"===typeof t)return t;throw new Error("Expected function, string, or object as test")}function i(t){return function(e){var n;for(n in t)if(e[n]!==t[n])return!1;return!0}}function o(t){var e=function(t){for(var e=[],n=t.length,i=-1;++i<n;)e[i]=r(t[i]);return e}(t),n=e.length;return function(){var t=-1;for(;++t<n;)if(e[t].apply(this,arguments))return!0;return!1}}function a(){return!0}t.exports=r},function(t,e,n){"use strict";var r=n(28);t.exports=function(t,e,n){var i,o,a,s,u=e.charAt(0);if("\n"!==u)return;if(n)return!0;s=1,i=e.length,o=u,a="";for(;s<i&&(u=e.charAt(s),r(u));)a+=u,"\n"===u&&(o+=a,a=""),s++;t(o)}},function(t,e,n){"use strict";var r=n(83),i=n(84);t.exports=function(t,e,n){var r,a,s,u=-1,c=e.length,l="",f="",h="",p="";for(;++u<c;)if(r=e.charAt(u),s)if(s=!1,l+=h,f+=p,h="",p="","\n"===r)h=r,p=r;else for(l+=r,f+=r;++u<c;){if(!(r=e.charAt(u))||"\n"===r){p=r,h=r;break}l+=r,f+=r}else if(" "===r&&e.charAt(u+1)===r&&e.charAt(u+2)===r&&e.charAt(u+3)===r)h+=o,u+=3,s=!0;else if("\t"===r)h+=r,s=!0;else{for(a="";"\t"===r||" "===r;)a+=r,r=e.charAt(++u);if("\n"!==r)break;h+=a+r,p+=r}if(f)return!!n||t(l)({type:"code",lang:null,value:i(f)})};var o=r(" ",4)},function(t,e,n){"use strict";var r=n(84);t.exports=function(t,e,n){var i,o,a,s,u,c,l,f,h,p,d,v=this.options,m=e.length+1,y=0,g="";if(!v.gfm)return;for(;y<m&&(" "===(a=e.charAt(y))||"\t"===a);)g+=a,y++;if(p=y,"~"!==(a=e.charAt(y))&&"`"!==a)return;y++,o=a,i=1,g+=a;for(;y<m&&(a=e.charAt(y))===o;)g+=a,i++,y++;if(i<3)return;for(;y<m&&(" "===(a=e.charAt(y))||"\t"===a);)g+=a,y++;s="",u="";for(;y<m&&"\n"!==(a=e.charAt(y))&&"~"!==a&&"`"!==a;)" "===a||"\t"===a?u+=a:(s+=u+a,u=""),y++;if((a=e.charAt(y))&&"\n"!==a)return;if(n)return!0;(d=t.now()).column+=g.length,d.offset+=g.length,g+=s,s=this.decode.raw(this.unescape(s),d),u&&(g+=u);u="",f="",h="",c="",l="";for(;y<m;)if(a=e.charAt(y),c+=f,l+=h,f="",h="","\n"===a){for(c?(f+=a,h+=a):g+=a,u="",y++;y<m&&" "===(a=e.charAt(y));)u+=a,y++;if(f+=u,h+=u.slice(p),!(u.length>=4)){for(u="";y<m&&(a=e.charAt(y))===o;)u+=a,y++;if(f+=u,h+=u,!(u.length<i)){for(u="";y<m&&(" "===(a=e.charAt(y))||"\t"===a);)f+=a,h+=a,y++;if(!a||"\n"===a)break}}}else c+=a,h+=a,y++;return t(g+=c+f)({type:"code",lang:s||null,value:r(l)})}},function(t,e,n){"use strict";var r=n(47),i=n(85);t.exports=function(t,e,n){var o,a,s,u,c,l,f,h,p,d=this.offset,v=this.blockTokenizers,m=this.interruptBlockquote,y=t.now(),g=y.line,b=e.length,w=[],E=[],T=[],x=0;for(;x<b&&(" "===(a=e.charAt(x))||"\t"===a);)x++;if(">"!==e.charAt(x))return;if(n)return!0;x=0;for(;x<b;){for(u=e.indexOf("\n",x),f=x,h=!1,-1===u&&(u=b);x<b&&(" "===(a=e.charAt(x))||"\t"===a);)x++;if(">"===e.charAt(x)?(x++,h=!0," "===e.charAt(x)&&x++):x=f,c=e.slice(x,u),!h&&!r(c)){x=f;break}if(!h&&(s=e.slice(x),i(m,v,this,[t,s,!0])))break;l=f===x?c:e.slice(f,u),T.push(x-f),w.push(l),E.push(c),x=u+1}x=-1,b=T.length,o=t(w.join("\n"));for(;++x<b;)d[g]=(d[g]||0)+T[x],g++;return p=this.enterBlock(),E=this.tokenizeBlock(E.join("\n"),y),p(),o({type:"blockquote",children:E})}},function(t,e,n){"use strict";t.exports=function(t,e,n){var r,i,o,a=this.options,s=e.length+1,u=-1,c=t.now(),l="",f="";for(;++u<s;){if(" "!==(r=e.charAt(u))&&"\t"!==r){u--;break}l+=r}o=0;for(;++u<=s;){if("#"!==(r=e.charAt(u))){u--;break}l+=r,o++}if(o>6)return;if(!o||!a.pedantic&&"#"===e.charAt(u+1))return;s=e.length+1,i="";for(;++u<s;){if(" "!==(r=e.charAt(u))&&"\t"!==r){u--;break}i+=r}if(!a.pedantic&&0===i.length&&r&&"\n"!==r)return;if(n)return!0;l+=i,i="",f="";for(;++u<s&&(r=e.charAt(u))&&"\n"!==r;)if(" "===r||"\t"===r||"#"===r){for(;" "===r||"\t"===r;)i+=r,r=e.charAt(++u);for(;"#"===r;)i+=r,r=e.charAt(++u);for(;" "===r||"\t"===r;)i+=r,r=e.charAt(++u);u--}else f+=i+r,i="";return c.column+=l.length,c.offset+=l.length,t(l+=f+i)({type:"heading",depth:o,children:this.tokenizeInline(f,c)})}},function(t,e,n){"use strict";t.exports=function(t,e,n){var r,i,o,a,s=-1,u=e.length+1,c="";for(;++s<u&&("\t"===(r=e.charAt(s))||" "===r);)c+=r;if("*"!==r&&"-"!==r&&"_"!==r)return;i=r,c+=r,o=1,a="";for(;++s<u;)if((r=e.charAt(s))===i)o++,c+=a+i,a="";else{if(" "!==r)return o>=3&&(!r||"\n"===r)?(c+=a,!!n||t(c)({type:"thematicBreak"})):void 0;a+=r}}},function(t,e,n){"use strict";var r=n(47),i=n(83),o=n(62),a=n(106),s=n(202),u=n(85);t.exports=function(t,e,n){var i,a,s,c,l,f,h,p,g,b,w,E,T,x,k,I,S,_,O,A,N,C,P,j,R=this.options.commonmark,L=this.options.pedantic,D=this.blockTokenizers,M=this.interruptList,F=0,V=e.length,U=null,z=0;for(;F<V;){if("\t"===(c=e.charAt(F)))z+=4-z%4;else{if(" "!==c)break;z++}F++}if(z>=4)return;if(c=e.charAt(F),i=R?m:v,!0===d[c])l=c,s=!1;else{for(s=!0,a="";F<V&&(c=e.charAt(F),o(c));)a+=c,F++;if(c=e.charAt(F),!a||!0!==i[c])return;U=parseInt(a,10),l=c}if(" "!==(c=e.charAt(++F))&&"\t"!==c)return;if(n)return!0;F=0,x=[],k=[],I=[];for(;F<V;){for(f=e.indexOf("\n",F),h=F,p=!1,j=!1,-1===f&&(f=V),P=F+4,z=0;F<V;){if("\t"===(c=e.charAt(F)))z+=4-z%4;else{if(" "!==c)break;z++}F++}if(z>=4&&(j=!0),S&&z>=S.indent&&(j=!0),c=e.charAt(F),g=null,!j){if(!0===d[c])g=c,F++,z++;else{for(a="";F<V&&(c=e.charAt(F),o(c));)a+=c,F++;c=e.charAt(F),F++,a&&!0===i[c]&&(g=c,z+=a.length+1)}if(g)if("\t"===(c=e.charAt(F)))z+=4-z%4,F++;else if(" "===c){for(P=F+4;F<P&&" "===e.charAt(F);)F++,z++;F===P&&" "===e.charAt(F)&&(F-=3,z-=3)}else"\n"!==c&&""!==c&&(g=null)}if(g){if(!L&&l!==g)break;p=!0}
2else R||j||" "!==e.charAt(h)?R&&S&&(j=z>=S.indent||z>4):j=!0,p=!1,F=h;if(w=e.slice(h,f),b=h===F?w:e.slice(F,f),("*"===g||"_"===g||"-"===g)&&D.thematicBreak.call(this,t,w,!0))break;if(E=T,T=!r(b).length,j&&S)S.value=S.value.concat(I,w),k=k.concat(I,w),I=[];else if(p)0!==I.length&&(S.value.push(""),S.trail=I.concat()),S={value:[w],indent:z,trail:[]},x.push(S),k=k.concat(I,w),I=[];else if(T){if(E)break;I.push(w)}else{if(E)break;if(u(M,D,this,[t,w,!0]))break;S.value=S.value.concat(I,w),k=k.concat(I,w),I=[]}F=f+1}N=t(k.join("\n")).reset({type:"list",ordered:s,start:U,loose:null,children:[]}),_=this.enterList(),O=this.enterBlock(),A=!1,F=-1,V=x.length;for(;++F<V;)S=x[F].value.join("\n"),C=t.now(),(S=t(S)(y(this,S,C),N)).loose&&(A=!0),S=x[F].trail.join("\n"),F!==V-1&&(S+="\n"),t(S);return _(),O(),N.loose=A,N};var c=/\n\n(?!\s*$)/,l=/^\[([ \t]|x|X)][ \t]/,f=/^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/,h=/^([ \t]*)([*+-]|\d+[.)])([ \t]+)/,p=/^( {1,4}|\t)?/gm,d={"*":!0,"+":!0,"-":!0},v={".":!0},m={};function y(t,e,n){var r,i,o=t.offset,a=t.options.pedantic?g:b,s=null;return e=a.apply(null,arguments),t.options.gfm&&(r=e.match(l))&&(i=r[0].length,s="x"===r[1].toLowerCase(),o[n.line]+=i,e=e.slice(i)),{type:"listItem",loose:c.test(e)||"\n"===e.charAt(e.length-1),checked:s,children:t.tokenizeBlock(e,n)}}function g(t,e,n){var r=t.offset,i=n.line;return e=e.replace(h,o),i=n.line,e.replace(p,o);function o(t){return r[i]=(r[i]||0)+t.length,i++,""}}function b(t,e,n){var r,o,u,c,l,h,p,d=t.offset,v=n.line;for(c=(e=e.replace(f,(function(t,e,n,a,s){o=e+n+a,u=s,Number(n)<10&&o.length%2===1&&(n=" "+n);return(r=e+i(" ",n.length)+a)+u}))).split("\n"),(l=s(e,a(r).indent).split("\n"))[0]=u,d[v]=(d[v]||0)+o.length,v++,h=0,p=c.length;++h<p;)d[v]=(d[v]||0)+c[h].length-l[h].length,v++;return l.join("\n")}m["."]=!0,m[")"]=!0},function(t,e,n){"use strict";var r=n(47),i=n(83),o=n(106);t.exports=function(t,e){var n,a,s,u,c=t.split("\n"),l=c.length+1,f=1/0,h=[];c.unshift(i(" ",e)+"!");for(;l--;)if(a=o(c[l]),h[l]=a.stops,0!==r(c[l]).length){if(!a.indent){f=1/0;break}a.indent>0&&a.indent<f&&(f=a.indent)}if(f!==1/0)for(l=c.length;l--;){for(s=h[l],n=f;n&&!(n in s);)n--;u=0!==r(c[l]).length&&f&&n!==f?"\t":"",c[l]=u+c[l].slice(n in s?s[n]+1:0)}return c.shift(),c.join("\n")}},function(t,e,n){"use strict";t.exports=function(t,e,n){var i,o,a,s,u,c=t.now(),l=e.length,f=-1,h="";for(;++f<l;){if(" "!==(a=e.charAt(f))||f>=3){f--;break}h+=a}i="",o="";for(;++f<l;){if("\n"===(a=e.charAt(f))){f--;break}" "===a||"\t"===a?o+=a:(i+=o+a,o="")}if(c.column+=h.length,c.offset+=h.length,h+=i+o,a=e.charAt(++f),s=e.charAt(++f),"\n"!==a||!r[s])return;h+=a,o=s,u=r[s];for(;++f<l;){if((a=e.charAt(f))!==s){if("\n"!==a)return;f--;break}o+=a}if(n)return!0;return t(h+o)({type:"heading",depth:u,children:this.tokenizeInline(i,c)})};var r={};r["="]=1,r["-"]=2},function(t,e,n){"use strict";var r=n(107).openCloseTag;t.exports=function(t,e,n){var i,o,a,s,u,c,l,f=this.options.blocks,h=e.length,p=0,d=[[/^<(script|pre|style)(?=(\s|>|$))/i,/<\/(script|pre|style)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Za-z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+f.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(r.source+"\\s*$"),/^$/,!1]];for(;p<h&&("\t"===(s=e.charAt(p))||" "===s);)p++;if("<"!==e.charAt(p))return;i=-1===(i=e.indexOf("\n",p+1))?h:i,o=e.slice(p,i),a=-1,u=d.length;for(;++a<u;)if(d[a][0].test(o)){c=d[a];break}if(!c)return;if(n)return c[2];if(p=i,!c[1].test(o))for(;p<h;){if(i=-1===(i=e.indexOf("\n",p+1))?h:i,o=e.slice(p+1,i),c[1].test(o)){o&&(p=i);break}p=i}return l=e.slice(0,p),t(l)({type:"html",value:l})}},function(t,e,n){"use strict";var r=n(28),i=n(86);t.exports=a,a.notInList=!0,a.notInBlock=!0;var o=/^( {4}|\t)?/gm;function a(t,e,n){var a,s,u,c,l,f,h,p,d,v,m,y,g=this.offset;if(this.options.footnotes){for(a=0,s=e.length,u="",c=t.now(),l=c.line;a<s&&(d=e.charAt(a),r(d));)u+=d,a++;if("["===e.charAt(a)&&"^"===e.charAt(a+1)){for(a=(u+="[^").length,h="";a<s&&"]"!==(d=e.charAt(a));)"\\"===d&&(h+=d,a++,d=e.charAt(a)),h+=d,a++;if(h&&"]"===e.charAt(a)&&":"===e.charAt(a+1)){if(n)return!0;for(v=i(h),a=(u+=h+"]:").length;a<s&&("\t"===(d=e.charAt(a))||" "===d);)u+=d,a++;for(c.column+=u.length,c.offset+=u.length,h="",f="",p="";a<s;){if("\n"===(d=e.charAt(a))){for(p=d,a++;a<s&&"\n"===(d=e.charAt(a));)p+=d,a++;for(h+=p,p="";a<s&&" "===(d=e.charAt(a));)p+=d,a++;if(0===p.length)break;h+=p}h&&(f+=h,h=""),f+=d,a++}return u+=f,f=f.replace(o,(function(t){return g[l]=(g[l]||0)+t.length,l++,""})),m=t(u),y=this.enterBlock(),f=this.tokenizeBlock(f,c),y(),m({type:"footnoteDefinition",identifier:v,children:f})}}}}},function(t,e,n){"use strict";
2t.exports=function(t){return String(t).replace(/\s+/g," ")}},function(t,e,n){"use strict";var r=n(28),i=n(86);t.exports=o,o.notInList=!0,o.notInBlock=!0;function o(t,e,n){for(var r,o,u,c,l,f,h,p,d=this.options.commonmark,v=0,m=e.length,y="";v<m&&(" "===(c=e.charAt(v))||"\t"===c);)y+=c,v++;if("["===(c=e.charAt(v))){for(v++,y+=c,u="";v<m&&"]"!==(c=e.charAt(v));)"\\"===c&&(u+=c,v++,c=e.charAt(v)),u+=c,v++;if(u&&"]"===e.charAt(v)&&":"===e.charAt(v+1)){for(f=u,v=(y+=u+"]:").length,u="";v<m&&("\t"===(c=e.charAt(v))||" "===c||"\n"===c);)y+=c,v++;if(u="",r=y,"<"===(c=e.charAt(v))){for(v++;v<m&&a(c=e.charAt(v));)u+=c,v++;if((c=e.charAt(v))===a.delimiter)y+="<"+u+c,v++;else{if(d)return;v-=u.length+1,u=""}}if(!u){for(;v<m&&s(c=e.charAt(v));)u+=c,v++;y+=u}if(u){for(h=u,u="";v<m&&("\t"===(c=e.charAt(v))||" "===c||"\n"===c);)u+=c,v++;if(l=null,'"'===(c=e.charAt(v))?l='"':"'"===c?l="'":"("===c&&(l=")"),l){if(!u)return;for(v=(y+=u+c).length,u="";v<m&&(c=e.charAt(v))!==l;){if("\n"===c){if(v++,"\n"===(c=e.charAt(v))||c===l)return;u+="\n"}u+=c,v++}if((c=e.charAt(v))!==l)return;o=y,y+=u+c,v++,p=u,u=""}else u="",v=y.length;for(;v<m&&("\t"===(c=e.charAt(v))||" "===c);)y+=c,v++;return(c=e.charAt(v))&&"\n"!==c?void 0:!!n||(r=t(r).test().end,h=this.decode.raw(this.unescape(h),r,{nonTerminated:!1}),p&&(o=t(o).test().end,p=this.decode.raw(this.unescape(p),o)),t(y)({type:"definition",identifier:i(f),title:p||null,url:h}))}}}}function a(t){return">"!==t&&"["!==t&&"]"!==t}function s(t){return"["!==t&&"]"!==t&&!r(t)}a.delimiter=">"},function(t,e,n){"use strict";var r=n(28);t.exports=function(t,e,n){var i,o,a,s,u,c,l,f,h,p,d,v,m,y,g,b,w,E,T,x,k,I,S,_;if(!this.options.gfm)return;i=0,E=0,c=e.length+1,l=[];for(;i<c;){if(I=e.indexOf("\n",i),S=e.indexOf("|",i+1),-1===I&&(I=e.length),-1===S||S>I){if(E<2)return;break}l.push(e.slice(i,I)),E++,i=I+1}s=l.join("\n"),o=l.splice(1,1)[0]||[],i=0,c=o.length,E--,a=!1,d=[];for(;i<c;){if("|"===(h=o.charAt(i))){if(p=null,!1===a){if(!1===_)return}else d.push(a),a=!1;_=!1}else if("-"===h)p=!0,a=a||null;else if(":"===h)a="left"===a?"center":p&&null===a?"right":"left";else if(!r(h))return;i++}!1!==a&&d.push(a);if(d.length<1)return;if(n)return!0;w=-1,x=[],k=t(s).reset({type:"table",align:d,children:x});for(;++w<E;){for(T=l[w],u={type:"tableRow",children:[]},w&&t("\n"),t(T).reset(u,k),c=T.length+1,i=0,f="",v="",m=!0,y=null,g=null;i<c;)if("\t"!==(h=T.charAt(i))&&" "!==h){if(""===h||"|"===h)if(m)t(h);else{if(h&&g){f+=h,i++;continue}!v&&!h||m||(s=v,f.length>1&&(h?(s+=f.slice(0,f.length-1),f=f.charAt(f.length-1)):(s+=f,f="")),b=t.now(),t(s)({type:"tableCell",children:this.tokenizeInline(v,b)},u)),t(f+h),f="",v=""}else if(f&&(v+=f,f=""),v+=h,"\\"===h&&i!==c-2&&(v+=T.charAt(i+1),i++),"`"===h){for(y=1;T.charAt(i+1)===h;)v+=h,i++,y++;g?y>=g&&(g=0):g=y}m=!1,i++}else v?f+=h:t(h),i++;w||t("\n"+o)}return k}},function(t,e,n){"use strict";var r=n(47),i=n(62),o=n(84),a=n(85);t.exports=function(t,e,n){var s,u,c,l,f,h=this.options,p=h.commonmark,d=h.gfm,v=this.blockTokenizers,m=this.interruptParagraph,y=e.indexOf("\n"),g=e.length;for(;y<g;){if(-1===y){y=g;break}if("\n"===e.charAt(y+1))break;if(p){for(l=0,s=y+1;s<g;){if("\t"===(c=e.charAt(s))){l=4;break}if(" "!==c)break;l++,s++}if(l>=4){y=e.indexOf("\n",y+1);continue}}if(u=e.slice(y+1),a(m,v,this,[t,u,!0]))break;if(v.list.call(this,t,u,!0)&&(this.inList||p||d&&!i(r.left(u).charAt(0))))break;if(s=y,-1!==(y=e.indexOf("\n",y+1))&&""===r(e.slice(s,y))){y=s;break}}if(u=e.slice(0,y),""===r(u))return t(u),null;if(n)return!0;return f=t.now(),u=o(u),t(u)({type:"paragraph",children:this.tokenizeInline(u,f)})}},function(t,e,n){"use strict";var r=n(211);function i(t,e,n){var r,i;if("\\"===e.charAt(0)&&(r=e.charAt(1),-1!==this.escape.indexOf(r)))return!!n||(i="\n"===r?{type:"break"}:{type:"text",value:r},t("\\"+r)(i))}t.exports=i,i.locator=r},function(t,e,n){"use strict";t.exports=function(t,e){return t.indexOf("\\",e)}},function(t,e,n){"use strict";var r=n(28),i=n(82),o=n(108);t.exports=s,s.locator=o,s.notInLink=!0;var a="mailto:".length;function s(t,e,n){var o,s,u,c,l,f,h,p,d,v,m;if("<"===e.charAt(0)){for(this,o="",s=e.length,u=0,c="",f=!1,h="",u++,o="<";u<s&&(l=e.charAt(u),!(r(l)||">"===l||"@"===l||":"===l&&"/"===e.charAt(u+1)));)c+=l,u++;if(c){if(h+=c,c="",h+=l=e.charAt(u),u++,"@"===l)f=!0;else{if(":"!==l||"/"!==e.charAt(u+1))return;h+="/",u++}for(;u<s&&(l=e.charAt(u),!r(l)&&">"!==l);)c+=l,u++;if(l=e.charAt(u),c&&">"===l)return!!n||(d=h+=c,o+=h+l,(p=t.now()).column++,p.offset++,f&&("mailto:"===h.slice(0,a).toLowerCase()?(d=d.substr(a),p.column+=a,p.offset+=a):h="mailto:"+h),v=this.inl
2ineTokenizers,this.inlineTokenizers={text:v.text},m=this.enterLink(),d=this.tokenizeInline(d,p),this.inlineTokenizers=v,m(),t(o)({type:"link",title:null,url:i(h,{nonTerminated:!1}),children:d}))}}}},function(t,e,n){"use strict";var r=n(82),i=n(28),o=n(214);t.exports=u,u.locator=o,u.notInLink=!0;var a=["http://","https://","mailto:"],s=a.length;function u(t,e,n){var o,u,c,l,f,h,p,d,v,m,y,g;if(this.options.gfm){for(o="",l=-1,d=s;++l<d;)if(h=a[l],(p=e.slice(0,h.length)).toLowerCase()===h){o=p;break}if(o){for(l=o.length,d=e.length,v="",m=0;l<d&&(c=e.charAt(l),!i(c)&&"<"!==c)&&("."!==c&&","!==c&&":"!==c&&";"!==c&&'"'!==c&&"'"!==c&&")"!==c&&"]"!==c||(y=e.charAt(l+1))&&!i(y))&&("("!==c&&"["!==c||m++,")"!==c&&"]"!==c||!(--m<0));)v+=c,l++;if(v){if(u=o+=v,"mailto:"===h){if(-1===(f=v.indexOf("@"))||f===d-1)return;u=u.substr("mailto:".length)}return!!n||(g=this.enterLink(),u=this.tokenizeInline(u,t.now()),g(),t(o)({type:"link",title:null,url:r(o,{nonTerminated:!1}),children:u}))}}}}},function(t,e,n){"use strict";t.exports=function(t,e){var n,i=r.length,o=-1,a=-1;if(!this.options.gfm)return-1;for(;++o<i;)-1!==(n=t.indexOf(r[o],e))&&(n<a||-1===a)&&(a=n);return a};var r=["https://","http://","mailto:"]},function(t,e,n){"use strict";var r=n(104),i=n(108),o=n(107).tag;t.exports=u,u.locator=i;var a=/^<a /i,s=/^<\/a>/i;function u(t,e,n){var i,u,c=e.length;if(!("<"!==e.charAt(0)||c<3)&&(i=e.charAt(1),(r(i)||"?"===i||"!"===i||"/"===i)&&(u=e.match(o))))return!!n||(u=u[0],!this.inLink&&a.test(u)?this.inLink=!0:this.inLink&&s.test(u)&&(this.inLink=!1),t(u)({type:"html",value:u}))}},function(t,e,n){"use strict";var r=n(28),i=n(109);t.exports=u,u.locator=i;var o={}.hasOwnProperty,a={'"':'"',"'":"'"},s={};function u(t,e,n){var i,u,c,l,f,h,p,d,v,m,y,g,b,w,E,T,x,k,I,S="",_=0,O=e.charAt(0),A=this.options.pedantic,N=this.options.commonmark,C=this.options.gfm;if("!"===O&&(v=!0,S=O,O=e.charAt(++_)),"["===O&&(v||!this.inLink)){for(S+=O,E="",_++,g=e.length,w=0,(x=t.now()).column+=_,x.offset+=_;_<g;){if(h=O=e.charAt(_),"`"===O){for(u=1;"`"===e.charAt(_+1);)h+=O,_++,u++;c?u>=c&&(c=0):c=u}else if("\\"===O)_++,h+=e.charAt(_);else if(c&&!C||"["!==O){if((!c||C)&&"]"===O){if(!w){if(!A)for(;_<g&&(O=e.charAt(_+1),r(O));)h+=O,_++;if("("!==e.charAt(_+1))return;h+="(",i=!0,_++;break}w--}}else w++;E+=h,h="",_++}if(i){for(m=E,S+=E+h,_++;_<g&&(O=e.charAt(_),r(O));)S+=O,_++;if(O=e.charAt(_),d=N?s:a,E="",l=S,"<"===O){for(_++,l+="<";_<g&&">"!==(O=e.charAt(_));){if(N&&"\n"===O)return;E+=O,_++}if(">"!==e.charAt(_))return;S+="<"+E+">",T=E,_++}else{for(O=null,h="";_<g&&(O=e.charAt(_),!h||!o.call(d,O));){if(r(O)){if(!A)break;h+=O}else{if("("===O)w++;else if(")"===O){if(0===w)break;w--}E+=h,h="","\\"===O&&(E+="\\",O=e.charAt(++_)),E+=O}_++}T=E,_=(S+=E).length}for(E="";_<g&&(O=e.charAt(_),r(O));)E+=O,_++;if(O=e.charAt(_),S+=E,E&&o.call(d,O))if(_++,S+=O,E="",y=d[O],f=S,N){for(;_<g&&(O=e.charAt(_))!==y;)"\\"===O&&(E+="\\",O=e.charAt(++_)),_++,E+=O;if((O=e.charAt(_))!==y)return;for(b=E,S+=E+O,_++;_<g&&(O=e.charAt(_),r(O));)S+=O,_++}else for(h="";_<g;){if((O=e.charAt(_))===y)p&&(E+=y+h,h=""),p=!0;else if(p){if(")"===O){S+=E+y+h,b=E;break}r(O)?h+=O:(E+=y+h+O,h="",p=!1)}else E+=O;_++}if(")"===e.charAt(_))return!!n||(S+=")",T=this.decode.raw(this.unescape(T),t(l).test().end,{nonTerminated:!1}),b&&(f=t(f).test().end,b=this.decode.raw(this.unescape(b),f)),I={type:v?"image":"link",title:b||null,url:T},v?I.alt=this.decode.raw(this.unescape(m),x)||null:(k=this.enterLink(),I.children=this.tokenizeInline(m,x),k()),t(S)(I))}}}s['"']='"',s["'"]="'",s["("]=")"},function(t,e,n){"use strict";var r=n(28),i=n(109),o=n(86);t.exports=a,a.locator=i;function a(t,e,n){var i,a,s,u,c,l,f,h,p=e.charAt(0),d=0,v=e.length,m="",y="",g="link",b="shortcut";if("!"===p&&(g="image",y=p,p=e.charAt(++d)),"["===p){if(d++,y+=p,l="",this.options.footnotes&&"^"===e.charAt(d)){if("image"===g)return;y+="^",d++,g="footnote"}for(h=0;d<v;){if("["===(p=e.charAt(d)))f=!0,h++;else if("]"===p){if(!h)break;h--}"\\"===p&&(l+="\\",p=e.charAt(++d)),l+=p,d++}if(m=l,i=l,"]"===(p=e.charAt(d))){for(d++,m+=p,l="";d<v&&(p=e.charAt(d),r(p));)l+=p,d++;if(p=e.charAt(d),"footnote"!==g&&"["===p){for(a="",l+=p,d++;d<v&&"["!==(p=e.charAt(d))&&"]"!==p;)"\\"===p&&(a+="\\",p=e.charAt(++d)),a+=p,d++;"]"===(p=e.charAt(d))?(b=a?"full":"collapsed",l+=a+p,d++):a="",m+=l,l=""}else{if(!i)return;a=i}if("full"===b||!f)return m=y+m,"link"===g&&this.inLink?null:!!n||("footnote"===g&&-1!==i.indexOf(" ")?t(m)({type:"footnote",children:this.tokenizeInline(i,t.now())}):((s=t.now()).column+=y.length,s.offset+=y.length,u={type:g+"Reference",identifier:o(a="full"===b?a:i)},"link"!==g&&"image"!==g||(u.referenceType=b),"link"===g?(c=this.enterLink(),u.children=this.tokenizeInline(i,s),c()):"image"===g&&(u.alt=this.decode.raw(this.unescape(i),s)||null),t(m)(u)))}}}},function(t,e,n){"use strict";var r=n(47),i=n(28),o=n(219);t.exports=a,a.locator=o;function a(t,e,n){var o,a,s,u,c,l,f,h=0,p=e.charAt(h);if(("*"===p||"_"===p)&&e.charAt(++h)===p&&(a=this.options.pedantic,c=(s=p)+s,l=e.length,h++,u="",p="",!a||!i(e.charAt(h))))for(;h<l;){if(f=p,(p=e.charAt(h))===s&&e.charAt(h+1)===s&&(!a||!i(f))&&(p=e.charAt(h+2))!==s){if(!r(u))return;return!!n||((o=t.now()).column+=2,o.offset+=2,t(c+u+c)({type:"strong",children:this.tokenizeInline(u,o)}))}a||"\\"!==p||(u+=p,p=e.charAt(++h)),u+=p,h++}}},function(t,e,n){"use strict";
2t.exports=function(t,e){var n=t.indexOf("**",e),r=t.indexOf("__",e);if(-1===r)return n;if(-1===n)return r;return r<n?r:n}},function(t,e,n){"use strict";var r=n(47),i=n(221),o=n(28),a=n(222);t.exports=s,s.locator=a;function s(t,e,n){var a,s,u,c,l,f,h,p=0,d=e.charAt(p);if(("*"===d||"_"===d)&&(s=this.options.pedantic,l=d,u=d,f=e.length,p++,c="",d="",!s||!o(e.charAt(p))))for(;p<f;){if(h=d,(d=e.charAt(p))===u&&(!s||!o(h))){if((d=e.charAt(++p))!==u){if(!r(c)||h===u)return;if(!s&&"_"===u&&i(d)){c+=u;continue}return!!n||((a=t.now()).column++,a.offset++,t(l+c+u)({type:"emphasis",children:this.tokenizeInline(c,a)}))}c+=u}s||"\\"!==d||(c+=d,d=e.charAt(++p)),c+=d,p++}}},function(t,e,n){"use strict";t.exports=function(t){return i.test("number"===typeof t?r(t):t.charAt(0))};var r=String.fromCharCode,i=/\w/},function(t,e,n){"use strict";t.exports=function(t,e){var n=t.indexOf("*",e),r=t.indexOf("_",e);if(-1===r)return n;if(-1===n)return r;return r<n?r:n}},function(t,e,n){"use strict";var r=n(28),i=n(224);t.exports=o,o.locator=i;function o(t,e,n){var i,o,a,s="",u="",c="",l="";if(this.options.gfm&&"~"===e.charAt(0)&&"~"===e.charAt(1)&&!r(e.charAt(2)))for(i=1,o=e.length,(a=t.now()).column+=2,a.offset+=2;++i<o;){if("~"===(s=e.charAt(i))&&"~"===u&&(!c||!r(c)))return!!n||t("~~"+l+"~~")({type:"delete",children:this.tokenizeInline(l,a)});l+=u,c=u,u=s}}},function(t,e,n){"use strict";t.exports=function(t,e){return t.indexOf("~~",e)}},function(t,e,n){"use strict";var r=n(28),i=n(226);t.exports=o,o.locator=i;function o(t,e,n){for(var i,o,a,s,u,c,l,f,h=e.length,p=0,d="",v="";p<h&&"`"===e.charAt(p);)d+="`",p++;if(d){for(u=d,s=p,d="",f=e.charAt(p),a=0;p<h;){if(c=f,f=e.charAt(p+1),"`"===c?(a++,v+=c):(a=0,d+=c),a&&"`"!==f){if(a===s){u+=d+v,l=!0;break}d+=v,v=""}p++}if(!l){if(s%2!==0)return;d=""}if(n)return!0;for(i="",o="",h=d.length,p=-1;++p<h;)c=d.charAt(p),r(c)?o+=c:(o&&(i&&(i+=o),o=""),i+=c);return t(u)({type:"inlineCode",value:i})}}},function(t,e,n){"use strict";t.exports=function(t,e){return t.indexOf("`",e)}},function(t,e,n){"use strict";var r=n(228);t.exports=i,i.locator=r;function i(t,e,n){for(var r,i=e.length,o=-1,a="";++o<i;){if("\n"===(r=e.charAt(o))){if(o<2)return;return!!n||t(a+=r)({type:"break"})}if(" "!==r)return;a+=r}}},function(t,e,n){"use strict";t.exports=function(t,e){var n=t.indexOf("\n",e);for(;n>e&&" "===t.charAt(n-1);)n--;return n}},function(t,e,n){"use strict";t.exports=function(t,e,n){var r,i,o,a,s,u,c,l,f,h;if(n)return!0;r=this.inlineMethods,a=r.length,i=this.inlineTokenizers,o=-1,f=e.length;for(;++o<a;)"text"!==(l=r[o])&&i[l]&&((c=i[l].locator)||t.file.fail("Missing locator: `"+l+"`"),-1!==(u=c.call(this,e,1))&&u<f&&(f=u));s=e.slice(0,f),h=t.now(),this.decode(s,h,(function(e,n,r){t(r||e)({type:"text",value:e})}))}},function(t,e,n){var r=n(231);t.exports=function(){return function(t){return r(t,"list",(function(t,e){var n,r,i=0;for(n=0,r=e.length;n<r;n++)"list"===e[n].type&&(i+=1);for(n=0,r=t.children.length;n<r;n++){var o=t.children[n];o.index=n,o.ordered=t.ordered}t.depth=i})),t}}},function(t,e,n){"use strict";t.exports=function(t,e,n){var r=[];"function"===typeof e&&(n=e,e=null);function i(t){var o;return e&&t.type!==e||(o=n(t,r.concat())),t.children&&!1!==o?function(t,e){var n,o=t.length,a=-1;r.push(e);for(;++a<o;)if((n=t[a])&&!1===i(n))return!1;return r.pop(),!0}(t.children,t):o}i(t)}},function(t,e,n){"use strict";var r=n(63),i=/^<(area|base|br|col|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)\s*\/?>$/i,o=/^<(\/?)([a-z]+)\s*>$/;t.exports=function(t){var e,n;return r(t,"html",(function(t,r,a){n!==a&&(e=[],n=a);var s=function(t){var e=t.value.match(i);return!!e&&e[1]}(t);if(s)return a.children.splice(r,1,{type:"virtualHtml",tag:s,position:t.position}),!0;var u=function(t,e){var n=t.value.match(o);return!!n&&{tag:n[2],opening:!n[1],node:t}}(t);if(!u)return!0;var c=function(t,e){var n=t.length;for(;n--;)if(t[n].tag===e)return t.splice(n,1)[0];return!1}(e,u.tag);return c?a.children.splice(r,0,function(t,e,n){var r=n.children.indexOf(t.node),i=n.children.indexOf(e.node),o=n.children.splice(r,i-r+1).slice(1,-1);return{type:"virtualHtml",children:o,tag:t.tag,position:{start:t.node.position.start,end:e.node.position.end,indent:[]}}}(u,c,a)):u.opening||e.push(u),!0}),!0),t}},function(t,e,n){"use strict";var r=n(63);function i(t,e,n,r){if("remove"===r)n.children.splice(e,1);else if("unwrap"===r){var i=[e,1];t.children&&(i=i.concat(t.children)),Array.prototype.splice.apply(n.children,i)}}e.ofType=function(t,e){return function(e){return t.forEach((function(t){return r(e,t,n,!0)})),e};
2function n(t,n,r){r&&i(t,n,r,e)}},e.ifNotMatch=function(t,e){return function(t){return r(t,n,!0),t};function n(n,r,o){o&&!t(n,r,o)&&i(n,r,o,e)}}},function(t,e,n){"use strict";var r=n(0),i=n(37),o=n(46),a={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function s(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,c=e.renderers[t.type];void 0===t.position&&(t.position=n.node&&n.node.position||a);var l=t.position.start,f=[t.type,l.line,l.column,i].join("-");if(!o.isValidElementType(c))throw new Error("Renderer for type `".concat(t.type,"` not defined or is not renderable"));var h=u(t,f,e,c,n,i);return r.createElement(c,h,h.children||p()||void 0);function p(){return t.children&&t.children.map((function(n,r){return s(n,e,{node:t,props:h},r)}))}}function u(t,e,n,o,a,u){var l,f={key:e},h="string"===typeof o;n.sourcePos&&t.position&&(f["data-sourcepos"]=[(l=t.position).start.line,":",l.start.column,"-",l.end.line,":",l.end.column].map(String).join("")),n.rawSourcePos&&!h&&(f.sourcePosition=t.position),n.includeNodeIndex&&a.node&&a.node.children&&!h&&(f.index=a.node.children.indexOf(t),f.parentChildCount=a.node.children.length);var p=null!==t.identifier&&void 0!==t.identifier?n.definitions[t.identifier]||{}:null;switch(t.type){case"root":c(f,{className:n.className});break;case"text":f.nodeKey=e,f.children=t.value;break;case"heading":f.level=t.depth;break;case"list":f.start=t.start,f.ordered=t.ordered,f.tight=!t.loose,f.depth=t.depth;break;case"listItem":f.checked=t.checked,f.tight=!t.loose,f.ordered=t.ordered,f.index=t.index,f.children=function(t,e){if(t.loose)return t.children;if(e.node&&t.index>0&&e.node.children[t.index-1].loose)return t.children;return function(t){return t.children.reduce((function(t,e){return t.concat("paragraph"===e.type?e.children||[]:[e])}),[])}(t)}(t,a).map((function(e,r){return s(e,n,{node:t,props:f},r)}));break;case"definition":c(f,{identifier:t.identifier,title:t.title,url:t.url});break;case"code":c(f,{language:t.lang&&t.lang.split(/\s/,1)[0]});break;case"inlineCode":f.children=t.value,f.inline=!0;break;case"link":c(f,{title:t.title||void 0,target:"function"===typeof n.linkTarget?n.linkTarget(t.url,t.children,t.title):n.linkTarget,href:n.transformLinkUri?n.transformLinkUri(t.url,t.children,t.title):t.url});break;case"image":c(f,{alt:t.alt||void 0,title:t.title||void 0,src:n.transformImageUri?n.transformImageUri(t.url,t.children,t.title,t.alt):t.url});break;case"linkReference":c(f,i(p,{href:n.transformLinkUri?n.transformLinkUri(p.href):p.href}));break;case"imageReference":c(f,{src:n.transformImageUri&&p.href?n.transformImageUri(p.href,t.children,p.title,t.alt):p.href,title:p.title||void 0,alt:t.alt||void 0});break;case"table":case"tableHead":case"tableBody":f.columnAlignment=t.align;break;case"tableRow":f.isHeader="tableHead"===a.node.type,f.columnAlignment=a.props.columnAlignment;break;case"tableCell":c(f,{isHeader:a.props.isHeader,align:a.props.columnAlignment[u]});break;case"virtualHtml":f.tag=t.tag;break;case"html":f.isBlock=t.position.start.line!==t.position.end.line,f.escapeHtml=n.escapeHtml,f.skipHtml=n.skipHtml;break;case"parsedHtml":var d;t.children&&(d=t.children.map((function(e,r){return s(e,n,{node:t,props:f},r)}))),f.escapeHtml=n.escapeHtml,f.skipHtml=n.skipHtml,f.element=function(t,e){var n=t.element;if(Array.isArray(n)){var i=r.Fragment||"div";return r.createElement(i,null,n)}if(n.props.children||e){var o=r.Children.toArray(n.props.children).concat(e);return r.cloneElement(n,null,o)}return r.cloneElement(n,null)}(t,d);break;default:c(f,i(t,{type:void 0,position:void 0,children:void 0}))}return!h&&t.value&&(f.value=t.value),f}function c(t,e){for(var n in e)"undefined"!==typeof e[n]&&(t[n]=e[n])}t.exports=s},function(t,e,n){"use strict";var r=n(63);function i(t){var e=t.children;t.children=[{type:"tableHead",align:t.align,children:[e[0]],position:e[0].position}],e.length>1&&t.children.push({type:"tableBody",align:t.align,children:e.slice(1),position:{start:e[1].position.start,end:e[e.length-1].position.end}})}t.exports=function(t){return r(t,"table",i),t}}
2,function(t,e,n){"use strict";t.exports=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(e.children||[]).reduce((function(e,n){return"definition"===n.type&&(e[n.identifier]={href:n.url,title:n.title}),t(n,e)}),n)}},function(t,e,n){"use strict";var r=["http","https","mailto","tel"];t.exports=function(t){var e=(t||"").trim(),n=e.charAt(0);if("#"===n||"/"===n)return e;var i=e.indexOf(":");if(-1===i)return e;for(var o=r.length,a=-1;++a<o;){var s=r[a];if(i===s.length&&e.slice(0,s.length).toLowerCase()===s)return e}return-1!==(a=e.indexOf("?"))&&i>a||-1!==(a=e.indexOf("#"))&&i>a?e:"javascript:void(0)"}},function(t,e,n){"use strict";var r=n(37),i=n(0),o=parseInt((i.version||"16").slice(0,2),10)>=16,a=i.createElement;function s(t,e){return a(t,u(e),e.children)}function u(t){return t["data-sourcepos"]?{"data-sourcepos":t["data-sourcepos"]}:{}}t.exports={break:"br",paragraph:"p",emphasis:"em",strong:"strong",thematicBreak:"hr",blockquote:"blockquote",delete:"del",link:"a",image:"img",linkReference:"a",imageReference:"img",table:s.bind(null,"table"),tableHead:s.bind(null,"thead"),tableBody:s.bind(null,"tbody"),tableRow:s.bind(null,"tr"),tableCell:function(t){var e=t.align?{textAlign:t.align}:void 0,n=u(t);return a(t.isHeader?"th":"td",e?r({style:e},n):n,t.children)},root:function(t){var e=!t.className,n=e&&i.Fragment||"div";return a(n,e?null:t,t.children)},text:function(t){return o?t.children:a("span",null,t.children)},list:function(t){var e=u(t);null!==t.start&&1!==t.start&&void 0!==t.start&&(e.start=t.start.toString());return a(t.ordered?"ol":"ul",e,t.children)},listItem:function(t){var e=null;if(null!==t.checked&&void 0!==t.checked){var n=t.checked;e=a("input",{type:"checkbox",checked:n,readOnly:!0})}return a("li",u(t),e,t.children)},definition:function(){return null},heading:function(t){return a("h".concat(t.level),u(t),t.children)},inlineCode:function(t){return a("code",u(t),t.children)},code:function(t){var e=t.language&&"language-".concat(t.language),n=a("code",e?{className:e}:null,t.value);return a("pre",u(t),n)},html:function(t){if(t.skipHtml)return null;var e=t.isBlock?"div":"span";if(t.escapeHtml){var n=i.Fragment||e;return a(n,null,t.value)}var r={dangerouslySetInnerHTML:{__html:t.value}};return a(e,r)},virtualHtml:function(t){return a(t.tag,u(t),t.children)},parsedHtml:function(t){return t["data-sourcepos"]?i.cloneElement(t.element,{"data-sourcepos":t["data-sourcepos"]}):t.element}}},function(t,e,n){"use strict";e.HtmlParser="undefined"===typeof Symbol?"__RMD_HTML_PARSER__":Symbol("__RMD_HTML_PARSER__")},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(0)),o=s(n(241)),a=s(n(110));function s(t){return t&&t.__esModule?t:{default:t}}var u=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.hasNodes=!1,n.loaded=!1,n.registerNode=function(){n.hasNodes=!0},n.load=function(){var t=n.props.script;!n.loaded&&n.hasNodes&&(n.loaded=!0,t?(0,o.default)(t,n.onLoad):n.onLoad(null))},n.onLoad=function(t){var e=n.props.options;MathJax.Hub.Config(e),n.setState({MathJax:MathJax})},n.state={MathJax:null,registerNode:n.registerNode},n}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}
2(e,t),r(e,[{key:"componentDidMount",value:function(){this.load()}},{key:"componentDidUpdate",value:function(){this.load()}},{key:"render",value:function(){var t=this.props.children;return i.createElement(a.default.Provider,{value:this.state},t)}}]),e}(i.Component);u.defaultProps={script:"https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js?config=TeX-MML-AM_CHTML",options:{tex2jax:{inlineMath:[]},showMathMenu:!1,showMathMenuMSIE:!1}},e.default=u},function(t,e){function n(t,e){t.onload=function(){this.onerror=this.onload=null,e(null,t)},t.onerror=function(){this.onerror=this.onload=null,e(new Error("Failed to load "+this.src),t)}}function r(t,e){t.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,e(null,t))}}t.exports=function(t,e,i){var o=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");"function"===typeof e&&(i=e,e={}),e=e||{},i=i||function(){},a.type=e.type||"text/javascript",a.charset=e.charset||"utf8",a.async=!("async"in e)||!!e.async,a.src=t,e.attrs&&function(t,e){for(var n in e)t.setAttribute(n,e[n])}(a,e.attrs),e.text&&(a.text=""+e.text),("onload"in a?n:r)(a,i),a.onload||n(a,i),o.appendChild(a)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(0)),a=u(n(110)),s=u(n(243));function u(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function f(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=function(t){function e(){var t,n,r;c(this,e);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=r=l(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(a))),r.container=o.createRef(),l(r,n)}return f(e,t),i(e,[{key:"componentDidMount",value:function(){this.typeset()}},{key:"componentDidUpdate",value:function(t){var e=t.inline!=this.props.inline;this.typeset(e)}},{key:"componentWillUnmount",value:function(){this.clear()}},{key:"clear",value:function(){var t=this.props.MathJax;if(this.script&&t){var e=t.Hub.getJaxFor(this.script);e&&e.Remove()}}},{key:"typeset",value:function(t){var e=this,n=this.props,r=n.MathJax,i=n.formula,o=n.onRender;if(r)if(t&&this.clear(),!t&&this.script)r.Hub.Queue((function(){var t=r.Hub.getJaxFor(e.script);if(t)t.Text(i,o);else{var n=e.setScriptText(i);(0,s.default)(r,n,o)}}));else{var a=this.setScriptText(i);(0,s.default)(r,a,o)}}},{key:"setScriptText",value:function(t){var e=this.props.inline;return this.script||(this.script=document.createElement("script"),this.script.type="math/tex; "+(e?"":"mode=display"),this.container.current.appendChild(this.script)),"text"in this.script?this.script.text=t:this.script.textContent=t,this.script}},{key:"render",value:function(){var t=this.props,e=(t.MathJax,t.formula,t.inline,t.onRender,function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}(t,["MathJax","formula","inline","onRender"]));return this.props.inline?o.createElement("span",r({ref:this.container},e)):o.createElement("div",r({ref:this.container},e))}}]),e}(o.Component);h.defaultProps={inline:!1,onRender:function(){}};var p=function(t){function e(){return c(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return f(e,t),i(e,[{key:"render",value:function(){var t=this;return o.createElement(a.default.Consumer,null,(function(e){var n=e.MathJax;
2return(0,e.registerNode)(),n?o.createElement(h,r({},t.props,{MathJax:n})):null}))}}]),e}(o.PureComponent);e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=[],i=[],o=!1;e.default=function(t,e,n){r.push(e),i.push(n),o||(o=!0,setTimeout((function(){return function(t){t.Hub.Queue((function(){var e=t.Hub.elementScripts;t.Hub.elementScripts=function(t){return r};try{return t.Hub.Process(null,(function(){i.forEach((function(t){t()})),r=[],i=[],o=!1}))}catch(n){throw n}finally{t.Hub.elementScripts=e}}))}(t)}),0))}},function(t,e,n){var r=n(111);t.exports=function(t){var e=this.Parser,n=this.Compiler;r.isRemarkParser(e)&&function(t,e){var n=t.prototype,r=n.inlineMethods;function o(t,n,r){var o,a,s,u,c,l,f,h=n.length,p=!1,d=!1,v=0;if(92===n.charCodeAt(v)&&(d=!0,v++),36===n.charCodeAt(v)){if(v++,d)return!!r||t(n.slice(0,v))({type:"text",value:"$"});if(36===n.charCodeAt(v)&&(p=!0,v++),32!==(s=n.charCodeAt(v))&&9!==s){for(u=v;v<h;){if(a=s,s=n.charCodeAt(v+1),36===a){if(32!==(o=n.charCodeAt(v-1))&&9!==o&&(s!==s||s<48||s>57)&&(!p||36===s)){c=v-1,v++,p&&v++,l=v;break}}else 92===a&&(v++,s=n.charCodeAt(v+1));v++}if(void 0!==l)return!!r||(f=n.slice(u,c+1),t(n.slice(0,l))({type:"inlineMath",value:f,data:{hName:"span",hProperties:{className:i.concat(p&&e.inlineMathDouble?["math-display"]:[])},hChildren:[{type:"text",value:f}]}}))}}}o.locator=function(t,e){return t.indexOf("$",e)},n.inlineTokenizers.math=o,r.splice(r.indexOf("text"),0,"math")}(e,t);r.isRemarkCompiler(n)&&function(t){t.prototype.visitors.inlineMath=function(t){var e="$";return(t.data&&t.data.hProperties&&t.data.hProperties.className||[]).includes("math-display")&&(e="$$"),e+t.value+e}}(n)};var i=["math","math-inline"]},function(t,e,n){var r=n(111);t.exports=function(){var t=this.Parser,e=this.Compiler;r.isRemarkParser(t)&&function(t){var e=t.prototype,n=e.blockMethods,r=e.interruptParagraph,o=e.interruptList,a=e.interruptBlockquote;e.blockTokenizers.math=function(t,e,n){for(var r,o,a,s,u,c,l,f,h,p,d,v=e.length,m=0;m<v&&32===e.charCodeAt(m);)m++;for(u=m;m<v&&36===e.charCodeAt(m);)m++;if(!((c=m-u)<2)){for(;m<v&&32===e.charCodeAt(m);)m++;for(l=m;m<v;){if(36===(r=e.charCodeAt(m)))return;if(10===r)break;m++}if(10===e.charCodeAt(m)){if(n)return!0;for(o=[],l!==m&&o.push(e.slice(l,m)),m++,a=-1===(a=e.indexOf("\n",m+1))?v:a;m<v;){for(f=!1,p=m,d=a,s=a,h=0;s>p&&32===e.charCodeAt(s-1);)s--;for(;s>p&&36===e.charCodeAt(s-1);)h++,s--;for(c<=h&&e.indexOf("$",p)===s&&(f=!0,d=s);p<=d&&p-m<u&&32===e.charCodeAt(p);)p++;if(f)for(;d>p&&32===e.charCodeAt(d-1);)d--;if(f&&p===d||o.push(e.slice(p,d)),f)break;m=a+1,a=-1===(a=e.indexOf("\n",m+1))?v:a}return o=o.join("\n"),t(e.slice(0,a))({type:"math",value:o,data:{hName:"div",hProperties:{className:i.concat()},hChildren:[{type:"text",value:o}]}})}}},n.splice(n.indexOf("fencedCode")+1,0,"math"),r.splice(r.indexOf("fencedCode")+1,0,["math"]),o.splice(o.indexOf("fencedCode")+1,0,["math"]),a.splice(a.indexOf("fencedCode")+1,0,["math"])}(t);r.isRemarkCompiler(e)&&function(t){t.prototype.visitors.math=function(t){return"$$\n"+t.value+"\n$$"}}(e)};var i=["math","math-display"]},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){function n(t,e){if(t=t.replace(/\s+/g,""),e=e.replace(/\s+/g,""),!t.length&&!e.length)return 1;if(!t.length||!e.length)return 0;if(t===e)return 1;if(1===t.length&&1===e.length)return 0;if(t.length<2||e.length<2)return 0;for(var n=new Map,r=0;r<t.length-1;r++){var i=t.substring(r,r+2),o=n.has(i)?n.get(i)+1:1;n.set(i,o)}for(var a=0,s=0;s<e.length-1;
2s++){var u=e.substring(s,s+2),c=n.has(u)?n.get(u):0;c>0&&(n.set(u,c-1),a++)}return 2*a/(t.length+e.length-2)}t.exports={compareTwoStrings:n,findBestMatch:function(t,e){if(!function(t,e){return"string"===typeof t&&(!!Array.isArray(e)&&(!!e.length&&!e.find((function(t){return"string"!==typeof t}))))}(t,e))throw new Error("Bad arguments: First argument should be a string, second should be an array of strings");for(var r=[],i=0,o=0;o<e.length;o++){var a=e[o],s=n(t,a);r.push({target:a,rating:s}),s>r[i].rating&&(i=o)}var u=r[i];return{ratings:r,bestMatch:u,bestMatchIndex:i}}}},,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},,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";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(38),n(51)),l=n(25),f=n(52),h=n(30),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 m=function(t,e){for(var n="",r=0;r<t.length&&"!important"!==t[r];r++)n&&(n+=e),n+=t[r];return n};function y(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+=m(t[r]," ");else n=m(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;if(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+": "+y(l)+";",o))}}else for(var f in a){var h=a[f];null!=h&&(r&&(r+="\n"),r+=""+g(f+": "+y(h)+";",o))}for(var p in e){var d=e[p];null!=d&&"fallbacks"!==p&&(r&&(r+="\n"),r+=""+g(p+": "+y(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")},x=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}Object(l.a)(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]=y(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}(x),I={onCreateRule:function(t,e,n){return"@"===t[0]||n.parent&&"keyframes"===n.parent.type?null:new k(t,e,n)}},S={indent:1,children:!0},_=/@([\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(_);for(var o in this.at=r?r[1]:"unknown",this.options=n,this.rules=new J(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=S),null==t.indent&&(t.indent=S.indent),null==t.children&&(t.children=S.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-]+)/,j=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 J(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}(),R=/@keyframes\s+/,L=/\$([\w-]+)/g,D=function(t,e){return"string"===typeof t?t.replace(L,(function(t,n){return n in e?e[n]:t})):t},M=function(t,e,n){var r=t[e],i=D(r,n);i!==r&&(t[e]=i)},F={onCreateRule:function(t,e,n){return"string"===typeof t&&R.test(t)?new j(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 D(t,r.keyframes);default:return t}}},V=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 Object(l.a)(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}(x),U={onCreateRule:function(t,e,n){return n.parent&&"keyframes"===n.parent.type?new V(t,e,n):null}},z=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}(),B=/@font-face/,q={onCreateRule:function(t,e,n){return B.test(t)?new z(t,e,n):null}},H=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}(),W={onCreateRule:function(t,e,n){return"@viewport"===t||"@-ms-v
2iewport"===t?new H(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,F,U,q,W,{onCreateRule:function(t,e,n){return t in K?new G(t,e,n):null}}],X={process:!0},Y={force:!0,process:!0},J=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 j&&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 j&&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,Y)}for(var f in u){var h=s.style[f],p=u[f];null==h&&h!==p&&s.prop(f,null,Y)}}}},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}(),Q=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 J(this.options),t)this.rules.add(n,t[n]);this.rules.process()}var e=t.prototype;return e.attach=function(){return this.attached||(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=y(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,mt=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 Q(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 yt="undefined"!==typeof CSS&&CSS&&"number"in CSS,gt=function(t){return new mt(t)},bt=(gt(),n(875)),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(91),Tt=(n(6),n(69)),xt=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var kt=Date.now(),It="fnValues"+kt,St="fnStyle"+ ++kt;var _t=function(){return{onCreateRule:function(t,e,n){if("function"!==typeof e)return null;var r=v(t,{},n);return r[St]=e,r},onProcessStyle:function(t,e){if(It in e||St 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[St];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 J(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 jt=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))}}},Rt=/\s*,\s*/g,Lt=/&/g,Dt=/\$([\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(Rt),r=t.split(Rt),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(Lt,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(Dt,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}}},Ft=/[A-Z]/g,Vt=/^ms-/,Ut={};function zt(t){return"-"+t.toLowerCase()}var Bt=function(t){if(Ut.hasOwnProperty(t))return Ut[t];var e=t.replace(Ft,zt);return Ut[t]=Vt.test(e)?"-"+e:e};function qt(t){var e={};for(var n in t){e[0===n.indexOf("--")?n:Bt(n)]=t[n]}return t.fallbacks&&(Array.isArray(t.fallbacks)?e.fallbacks=t.fallbacks.map(qt):e.fallbacks=qt(t.fallbacks)),e}var Ht=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=Bt(e);return e===r?t:(n.prop(r,t),null)}}},Wt=yt&&CSS?CSS.px:"px",Gt=yt&&CSS?CSS.ms:"ms",Kt=yt&&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":Wt,"background-position-x":Wt,"background-position-y":Wt,"background-size":Wt,border:Wt,"border-bottom":Wt,"border-bottom-left-radius":Wt,"border-bottom-right-radius":Wt,"border-bottom-width":Wt,"border-left":Wt,"border-left-width":Wt,"border-radius":Wt,"border-right":Wt,"border-right-width":Wt,"border-top":Wt,"border-top-left-radius":Wt,"border-top-right-radius":Wt,"border-top-width":Wt,"border-width":Wt,margin:Wt,"margin-bottom":Wt,"margin-left":Wt,"margin-right":Wt,"margin-top":Wt,padding:Wt,"padding-bottom":Wt,"padding-left":Wt,"padding-right":Wt,"padding-top":Wt,"mask-
2position-x":Wt,"mask-position-y":Wt,"mask-size":Wt,height:Wt,width:Wt,"min-height":Wt,"max-height":Wt,"min-width":Wt,"max-width":Wt,bottom:Wt,left:Wt,top:Wt,right:Wt,"box-shadow":Wt,"text-shadow":Wt,"column-gap":Wt,"column-rule":Wt,"column-rule-width":Wt,"column-width":Wt,"font-size":Wt,"font-size-delta":Wt,"letter-spacing":Wt,"text-indent":Wt,"text-stroke":Wt,"text-stroke-width":Wt,"word-spacing":Wt,motion:Wt,"motion-offset":Wt,outline:Wt,"outline-offset":Wt,"outline-width":Wt,perspective:Wt,"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":Wt,"flex-basis":Wt,"shape-margin":Wt,size:Wt,grid:Wt,"grid-gap":Wt,"grid-row-gap":Wt,"grid-column-gap":Wt,"grid-template-rows":Wt,"grid-template-columns":Wt,"grid-auto-rows":Wt,"grid-auto-columns":Wt,"box-shadow-x":Wt,"box-shadow-y":Wt,"box-shadow-blur":Wt,"box-shadow-spread":Wt,"font-line-height":Wt,"text-shadow-x":Wt,"text-shadow-y":Wt,"text-shadow-blur":Wt});function Yt(t,e,n){if(!e)return e;if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]=Yt(t,e[r],n);else if("object"===typeof e)if("fallbacks"===t)for(var i in e)e[i]=Yt(i,e[i],n);else for(var o in e)e[o]=Yt(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 Jt=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]=Yt(r,t[r],e);return t},onChangeValue:function(t,n){return Yt(n,t,e)}}},Qt=n(32),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 me(t){return t.replace(de,ve)}function ye(t){return me("-"+t)}var ge,be={noPrefill:["mask"],supportedProperty:function(t,e){if(!/^mask/.test(t))return!1;if("Webkit"===se){if(me("mask-image")in e)return t;if(se+ye("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)}},xe={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"+ye(t)in e&&ue+"column-"+t:"Moz"===se&&("page"+ye(t)in e&&"page-"+t))}},Se={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+ye(n)in e&&ue+n}},_e={supportedProperty:function(t,e){return me(t)in e&&t}},Oe={supportedProperty:function(t,e){var n=ye(t);return"-"===t[0]||"-"===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+ye(n)in e&&ue+n)}},je={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"},Re=Object.keys(je),Le=function(t){return ue+t},De=[he,pe,be,we,Ee,Te,xe,ke,Ie,Se,_e,Oe,Ae,Ne,Pe,{supportedProperty:function(t,e,n){var r=n.multiple;if(Re.indexOf(t)>-1){var i=je[t];if(!Array.isArray(i))return se+ye(i)in e&&ue+i;if(!r)return!1;for(var o=0;o<i.length;o++)if(!(se+ye(i[0])in e))return!1;return i.map(Le)}return!1}}],Me=De.filter((function(t){return t.supportedProperty})).map((function(t){return t.supportedProperty})),Fe=De.filter((function(t){return t.noPrefill})).reduce((function(t,e){return t.push.apply(t,Object(Qt.a)(e.noPrefill)),t}),[]),Ve={};if(u){ge=document.createElement("p");var Ue=window.getComputedStyle(document.documentElement,"");for(var ze in Ue)isNaN(ze)||(Ve[Ue[ze]]=Ue[ze]);Fe.forEach((function(t){return delete Ve[t]}))}function Be(t,e){if(void 0===e&&(e={}),!ge)return t;if(null!=Ve[t])return Ve[t];"transition"!==t&&"transform"!==t||(e[t]=t in ge.style);for(var n=0;n<Me.length&&(Ve[t]=Me[n](t,ge.style,e),!Ve[t]);n++);try{ge.style[t]=""}catch(r){return!1}return Ve[t]}var qe,He={},We={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1}
2,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?Be(e):", "+Be(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!=He[r])return He[r];try{qe.style[t]=n}catch(i){return He[r]=!1,!1}if(We[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 He[r]=!1,!1;return qe.style[t]="",He[r]=n,He[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=Be(n);o&&o!==n&&(i=!0);var a=!1,s=$e(o,y(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]||"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,y(t))||t}}};var Ye=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 Je(){return{plugins:[_t(),jt(),Mt(),Ht(),Jt(),"undefined"===typeof window?null:Xe(),Ye()]}}var Qe=gt(Je()),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;return function(t,e){u+=1;var r=e.options.name;if(r&&0===r.indexOf("Mui")&&!e.options.link&&!n){if(-1!==xt.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(u):o}return"".concat(s).concat(i).concat(u)}}(),jss:Qe,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},tn=a.a.createContext(Ze);var en=-1e9;function nn(){return en+=1}n(42);var rn=n(876);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=Object(bt.a)({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)({},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=Object(bt.a)({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)({},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";n.d(e,"a",(function(){return i}));var r=n(1);function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.baseClasses,n=t.newClasses;t.Component;if(!n)return e;var i=Object(r.a)({},e);
2return Object.keys(n).forEach((function(t){n[t]&&(i[t]="".concat(e[t]," ").concat(n[t]))})),i}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(1),i=n(42);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";var r=n(1),i=n(2),o=n(24),a=n(0),s=(n(6),n(3)),u=n(4),c=a.forwardRef((function(t,e){var n=t.classes,o=t.className,u=t.component,c=void 0===u?"div":u,l=t.disableGutters,f=void 0!==l&&l,h=t.variant,p=void 0===h?"regular":h,d=Object(i.a)(t,["classes","className","component","disableGutters","variant"]);return a.createElement(c,Object(r.a)({className:Object(s.a)(n.root,n[p],o,!f&&n.gutters),ref:e},d))}));e.a=Object(u.a)((function(t){return{root:{position:"relative",display:"flex",alignItems:"center"},gutters:Object(o.a)({paddingLeft:t.spacing(2),paddingRight:t.spacing(2)},t.breakpoints.up("sm"),{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}),regular:t.mixins.toolbar,dense:{minHeight:48}}}),{name:"MuiToolbar"})(c)},function(t,e,n){"use strict";var r=n(2),i=n(1),o=n(0),a=(n(6),n(3)),s=n(4),u=n(18),c=n(130),l=n(13),f=o.forwardRef((function(t,e){var n=t.children,s=t.classes,u=t.className,f=t.color,h=void 0===f?"default":f,p=t.component,d=void 0===p?"button":p,v=t.disabled,m=void 0!==v&&v,y=t.disableElevation,g=void 0!==y&&y,b=t.disableFocusRipple,w=void 0!==b&&b,E=t.endIcon,T=t.focusVisibleClassName,x=t.fullWidth,k=void 0!==x&&x,I=t.size,S=void 0===I?"medium":I,_=t.startIcon,O=t.type,A=void 0===O?"button":O,N=t.variant,C=void 0===N?"text":N,P=Object(r.a)(t,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),j=_&&o.createElement("span",{className:Object(a.a)(s.startIcon,s["iconSize".concat(Object(l.a)(S))])},_),R=E&&o.createElement("span",{className:Object(a.a)(s.endIcon,s["iconSize".concat(Object(l.a)(S))])},E);return o.createElement(c.a,Object(i.a)({className:Object(a.a)(s.root,s[C],u,"inherit"===h?s.colorInherit:"default"!==h&&s["".concat(C).concat(Object(l.a)(h))],"medium"!==S&&[s["".concat(C,"Size").concat(Object(l.a)(S))],s["size".concat(Object(l.a)(S))]],g&&s.disableElevation,m&&s.disabled,k&&s.fullWidth),component:d,disabled:m,focusRipple:!w,focusVisibleClassName:Object(a.a)(s.focusVisible,T),ref:e,type:A},P),o.createElement("span",{className:s.label},j,n,R))}));e.a=Object(s.a)((function(t){return{root:Object(i.a)({},t.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:t.shape.borderRadius,color:t.palette.text.primary,transition:t.transitions.create(["background-color","box-shadow","border"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:Object(u.b)(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:t.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:t.palette.primary.main,"&:hover":{backgroundColor:Object(u.b)(t.palette.primary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:t.palette.secondary.main,"&:hover":{backgroundColor:Object(u.b)(t.palette.secondary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===t.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(t.palette.action.disabledBackground)}},outlinedPrimary:{color:t.palette.primary.main,border:"1px solid ".concat(Object(u.b)(t.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(t.palette.primary.main),backgroundColor:Object(u.b)(t.palette.primary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:t.palette.secondary.main,border:"1px solid ".concat(Object(u.b)(t.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(t.palette.secondary.main),backgroundColor:Object(u.b)(t.palette.secondary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(t.palette.action.disabled)}},contained:{color:t.palette.getContrastText(t.palette.grey[300]),backgroundColor:t.palette.grey[300],boxSh
2adow:t.shadows[2],"&:hover":{backgroundColor:t.palette.grey.A100,boxShadow:t.shadows[4],"@media (hover: none)":{boxShadow:t.shadows[2],backgroundColor:t.palette.grey[300]},"&$disabled":{backgroundColor:t.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:t.shadows[6]},"&:active":{boxShadow:t.shadows[8]},"&$disabled":{color:t.palette.action.disabled,boxShadow:t.shadows[0],backgroundColor:t.palette.action.disabledBackground}},containedPrimary:{color:t.palette.primary.contrastText,backgroundColor:t.palette.primary.main,"&:hover":{backgroundColor:t.palette.primary.dark,"@media (hover: none)":{backgroundColor:t.palette.primary.main}}},containedSecondary:{color:t.palette.secondary.contrastText,backgroundColor:t.palette.secondary.main,"&:hover":{backgroundColor:t.palette.secondary.dark,"@media (hover: none)":{backgroundColor:t.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(f)},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(1),i=n(0),o=n(91),a=n(847);function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object(o.a)(),s=Object(a.a)({theme:n,name:"MuiUseMediaQuery",props:{}});var u="function"===typeof t?t(n):t;u=u.replace(/^@media( ?)/m,"");var c="undefined"!==typeof window&&"undefined"!==typeof window.matchMedia,l=Object(r.a)({},s,{},e),f=l.defaultMatches,h=void 0!==f&&f,p=l.matchMedia,d=void 0===p?c?window.matchMedia:null:p,v=l.noSsr,m=void 0!==v&&v,y=l.ssrMatchMedia,g=void 0===y?null:y,b=i.useState((function(){return m&&c?d(u).matches:g?g(u).matches:h})),w=b[0],E=b[1];return i.useEffect((function(){var t=!0;if(c){var e=d(u),n=function(){t&&E(e.matches)};return n(),e.addListener(n),function(){t=!1,e.removeListener(n)}}}),[u,d,c]),w}},function(t,e,n){"use strict";var r=n(1),i=n(0),o=n.n(i),a=(n(6),n(67)),s=n(91),u=n(69);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)({},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(0),o=(n(6),n(4)),a={WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box"},s=function(t){return Object(r.a)({color:t.palette.text.primary},t.typography.body2,{backgroundColor:t.palette.background.default,"@media print":{backgroundColor:t.palette.common.white}})};e.a=Object(o.a)((function(t){return{"@global":{html:a,"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:t.typography.fontWeightBold},body:Object(r.a)({margin:0},s(t),{"&::backdrop":{backgroundColor:t.palette.background.default}})}}}),{name:"MuiCssBaseline"})((function(t){var e=t.children,n=void 0===e?null:e;return t.classes,i.createElement(i.Fragment,null,n)}))},function(t,e,n){"use strict";var r=n(1),i=n(2),o=n(0),a=(n(6),n(3)),s=n(4),u=n(13),c=n(129),l=o.forwardRef((function(t,e){var n=t.classes,s=t.className,l=t.color,f=void 0===l?"primary":l,h=t.position,p=void 0===h?"fixed":h,d=Object(i.a)(t,["classes","className","color","position"]);return o.createElement(c.a,Object(r.a)({square:!0,component:"header",elevation:4,className:Object(a.a)(n.root,n["position".concat(Object(u.a)(p))],n["color".concat(Object(u.a)(f))],s,"fixed"===p&&"mui-fixed"),ref:e},d))}));e.a=Object(s.a)((function(t){var e="light"===t.palette.type?t.palette.grey[100]:t.palette.grey[900];return{root:{display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",zIndex:t.zIndex.appBar,flexShrink:0},positionFixed:{position:"fixed",top:0,left:"auto",right:0,"@media print":{position:"absolute"}},positionAbsolute:{position:"absolute",top:0,left:"auto",right:0},positionSticky:{position:"sticky",top:0,left:"auto",right:0},positionStatic:{position:"static",transform:"translateZ(0)"},positionRelative:{position:"relative"},colorDefault:{backgroundColor:e,color:t.palette.getContrastText(e)}
2,colorPrimary:{backgroundColor:t.palette.primary.main,color:t.palette.primary.contrastText},colorSecondary:{backgroundColor:t.palette.secondary.main,color:t.palette.secondary.contrastText},colorInherit:{color:"inherit"},colorTransparent:{backgroundColor:"transparent",color:"inherit"}}}),{name:"MuiAppBar"})(l)},function(t,e,n){"use strict";var r=n(1),i=n(2),o=n(0),a=(n(6),n(131)),s=n(31),u=n(44),c=n(15);function l(t){return"scale(".concat(t,", ").concat(Math.pow(t,2),")")}var f={entering:{opacity:1,transform:l(1)},entered:{opacity:1,transform:"none"}},h=o.forwardRef((function(t,e){var n=t.children,h=t.in,p=t.onEnter,d=t.onExit,v=t.style,m=t.timeout,y=void 0===m?"auto":m,g=Object(i.a)(t,["children","in","onEnter","onExit","style","timeout"]),b=o.useRef(),w=o.useRef(),E=Object(c.a)(n.ref,e),T=Object(s.a)();return o.useEffect((function(){return function(){clearTimeout(b.current)}}),[]),o.createElement(a.a,Object(r.a)({appear:!0,in:h,onEnter:function(t,e){Object(u.b)(t);var n,r=Object(u.a)({style:v,timeout:y},{mode:"enter"}),i=r.duration,o=r.delay;"auto"===y?(n=T.transitions.getAutoHeightDuration(t.clientHeight),w.current=n):n=i,t.style.transition=[T.transitions.create("opacity",{duration:n,delay:o}),T.transitions.create("transform",{duration:.666*n,delay:o})].join(","),p&&p(t,e)},onExit:function(t){var e,n=Object(u.a)({style:v,timeout:y},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===y?(e=T.transitions.getAutoHeightDuration(t.clientHeight),w.current=e):e=r,t.style.transition=[T.transitions.create("opacity",{duration:e,delay:i}),T.transitions.create("transform",{duration:.666*e,delay:i||.333*e})].join(","),t.style.opacity="0",t.style.transform=l(.75),d&&d(t)},addEndListener:function(t,e){"auto"===y&&(b.current=setTimeout(e,w.current||0))},timeout:"auto"===y?null:y},g),(function(t,e){return o.cloneElement(n,Object(r.a)({style:Object(r.a)({opacity:0,transform:l(.75),visibility:"exited"!==t||h?void 0:"hidden"},f[t],{},v,{},n.props.style),ref:E},e))}))}));h.muiSupportAuto=!0,e.a=h},function(t,e,n){"use strict";var r=n(0),i=n(17),o=(n(6),n(29)),a=n(15);var s="undefined"!==typeof window?r.useLayoutEffect:r.useEffect,u=r.forwardRef((function(t,e){var n=t.children,u=t.container,c=t.disablePortal,l=void 0!==c&&c,f=t.onRendered,h=r.useState(null),p=h[0],d=h[1],v=Object(a.a)(r.isValidElement(n)?n.ref:null,e);return s((function(){l||d(function(t){return t="function"===typeof t?t():t,i.findDOMNode(t)}(u)||document.body)}),[u,l]),s((function(){if(p&&!l)return Object(o.a)(e,p),function(){Object(o.a)(e,null)}}),[e,p,l]),s((function(){f&&(p||l)&&f()}),[f,p,l]),l?r.isValidElement(n)?r.cloneElement(n,{ref:v}):n:p?i.createPortal(n,p):p}));e.a=u},function(t,e,n){"use strict";var r=n(1),i=n(2),o=n(0),a=(n(6),n(3)),s=n(4),u=n(18),c=n(130),l=n(13),f=o.forwardRef((function(t,e){var n=t.edge,s=void 0!==n&&n,u=t.children,f=t.classes,h=t.className,p=t.color,d=void 0===p?"default":p,v=t.disabled,m=void 0!==v&&v,y=t.disableFocusRipple,g=void 0!==y&&y,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(c.a,Object(r.a)({className:Object(a.a)(f.root,h,"default"!==d&&f["color".concat(Object(l.a)(d))],m&&f.disabled,"small"===w&&f["size".concat(Object(l.a)(w))],{start:f.edgeStart,end:f.edgeEnd}[s]),centerRipple:!0,focusRipple:!g,disabled:m,ref:e},E),o.createElement("span",{className:f.label},u))}));e.a=Object(s.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(u.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(u.b)(t.palette.primary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:t.palette.secondary.main,"&:hover":{backgroundColor:Object(u.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)},function(t,e,n){"use strict";var r=n(1),i=n(848),o=n(48);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(1),i=n(2),o=n(0),a=(n(6),n(3)),s=n(4),u=n(13);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,m=void 0===v?40:v,y=t.style,g=t.thickness,b=void 0===g?3.6:g,w=t.value,E=void 0===w?0:w,T=t.variant,x=void 0===T?"indeterminate":T,k=Object(i.a)(t,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),I={},S={},_={};if("determinate"===x||"static"===x){var O=2*Math.PI*((44-b)/2);I.strokeDasharray=O.toFixed(3),_["aria-valuenow"]=Math.round(E),"static"===x?(I.strokeDashoffset="".concat(((100-E)/100*O).toFixed(3),"px"),S.transform="rotate(-90deg)"):(I.strokeDashoffset="".concat((n=(100-E)/100,n*n*O).toFixed(3),"px"),S.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}[x]),style:Object(r.a)({width:m,height:m},S,{},y),ref:e,role:"progressbar"},_,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}[x]),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";var r=n(1),i=n(2),o=n(0),a=(n(6),n(3)),s=n(129),u=n(4),c=o.forwardRef((function(t,e){var n=t.classes,u=t.className,c=t.raised,l=void 0!==c&&c,f=Object(i.a)(t,["classes","className","raised"]);return o.createElement(s.a,Object(r.a)({className:Object(a.a)(n.root,u),elevation:l?8:1,ref:e},f))}));e.a=Object(u.a)({root:{overflow:"hidden"}},{name:"MuiCard"})(c)},function(t,e,n){"use strict";var r=n(1),i=n(2),o=n(0),a=(n(6),n(3)),s=n(4),u=n(55),c=o.forwardRef((function(t,e){var n=t.action,s=t.avatar,c=t.classes,l=t.className,f=t.component,h=void 0===f?"div"
2:f,p=t.disableTypography,d=void 0!==p&&p,v=t.subheader,m=t.subheaderTypographyProps,y=t.title,g=t.titleTypographyProps,b=Object(i.a)(t,["action","avatar","classes","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"]),w=y;null==w||w.type===u.a||d||(w=o.createElement(u.a,Object(r.a)({variant:s?"body2":"h5",className:c.title,component:"span",display:"block"},g),w));var E=v;return null==E||E.type===u.a||d||(E=o.createElement(u.a,Object(r.a)({variant:s?"body2":"body1",className:c.subheader,color:"textSecondary",component:"span",display:"block"},m),E)),o.createElement(h,Object(r.a)({className:Object(a.a)(c.root,l),ref:e},b),s&&o.createElement("div",{className:c.avatar},s),o.createElement("div",{className:c.content},w,E),n&&o.createElement("div",{className:c.action},n))}));e.a=Object(s.a)({root:{display:"flex",alignItems:"center",padding:16},avatar:{flex:"0 0 auto",marginRight:16},action:{flex:"0 0 auto",alignSelf:"flex-start",marginTop:-8,marginRight:-8},content:{flex:"1 1 auto"},title:{},subheader:{}},{name:"MuiCardHeader"})(c)},function(t,e,n){"use strict";var r=n(1),i=n(2),o=n(0),a=(n(6),n(3)),s=n(4),u=o.forwardRef((function(t,e){var n=t.classes,s=t.className,u=t.component,c=void 0===u?"div":u,l=Object(i.a)(t,["classes","className","component"]);return o.createElement(c,Object(r.a)({className:Object(a.a)(n.root,s),ref:e},l))}));e.a=Object(s.a)({root:{padding:16,"&:last-child":{paddingBottom:24}}},{name:"MuiCardContent"})(u)},function(t,e,n){"use strict";var r=n(1),i=n(2),o=n(0),a=(n(6),n(3)),s=n(4),u=o.forwardRef((function(t,e){var n=t.disableSpacing,s=void 0!==n&&n,u=t.classes,c=t.className,l=Object(i.a)(t,["disableSpacing","classes","className"]);return o.createElement("div",Object(r.a)({className:Object(a.a)(u.root,c,!s&&u.spacing),ref:e},l))}));e.a=Object(s.a)({root:{display:"flex",alignItems:"center",padding:8},spacing:{"& > :not(:first-child)":{marginLeft:8}}},{name:"MuiCardActions"})(u)},function(t,e,n){"use strict";var r=n(1),i=n(2),o=n(0),a=n(3),s=(n(6),n(131)),u=n(4),c=n(70),l=n(44),f=n(31),h=o.forwardRef((function(t,e){var n=t.children,u=t.classes,h=t.className,p=t.collapsedHeight,d=void 0===p?"0px":p,v=t.component,m=void 0===v?"div":v,y=t.in,g=t.onEnter,b=t.onEntered,w=t.onEntering,E=t.onExit,T=t.onExiting,x=t.style,k=t.timeout,I=void 0===k?c.b.standard:k,S=Object(i.a)(t,["children","classes","className","collapsedHeight","component","in","onEnter","onEntered","onEntering","onExit","onExiting","style","timeout"]),_=Object(f.a)(),O=o.useRef(),A=o.useRef(null),N=o.useRef(),C="number"===typeof d?"".concat(d,"px"):d;o.useEffect((function(){return function(){clearTimeout(O.current)}}),[]);return o.createElement(s.a,Object(r.a)({in:y,onEnter:function(t,e){t.style.height=C,g&&g(t,e)},onEntered:function(t,e){t.style.height="auto",b&&b(t,e)},onEntering:function(t,e){var n=A.current?A.current.clientHeight:0,r=Object(l.a)({style:x,timeout:I},{mode:"enter"}).duration;if("auto"===I){var i=_.transitions.getAutoHeightDuration(n);t.style.transitionDuration="".concat(i,"ms"),N.current=i}else t.style.transitionDuration="string"===typeof r?r:"".concat(r,"ms");t.style.height="".concat(n,"px"),w&&w(t,e)},onExit:function(t){var e=A.current?A.current.clientHeight:0;t.style.height="".concat(e,"px"),E&&E(t)},onExiting:function(t){var e=A.current?A.current.clientHeight:0,n=Object(l.a)({style:x,timeout:I},{mode:"exit"}).duration;if("auto"===I){var r=_.transitions.getAutoHeightDuration(e);t.style.transitionDuration="".concat(r,"ms"),N.current=r}else t.style.transitionDuration="string"===typeof n?n:"".concat(n,"ms");t.style.height=C,T&&T(t)},addEndListener:function(t,e){"auto"===I&&(O.current=setTimeout(e,N.current||0))},timeout:"auto"===I?null:I},S),(function(t,i){return o.createElement(m,Object(r.a)({className:Object(a.a)(u.container,h,{entered:u.entered,exited:!y&&"0px"===C&&u.hidden}[t]),style:Object(r.a)({minHeight:C},x),ref:e},i),o.createElement("div",{className:u.wrapper,ref:A},o.createElement("div",{className:u.wrapperInner},n)))}))}));h.muiSupportAuto=!0,e.a=Object(u.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"})(h)},function(t,e,n){"use strict";var r=n(2),i=n(1),o=n(0),a=(n(6),n(3)),s=n(4),u=[0,1,2,3,4,5,6,7,8,9,10],c=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=parseFloat(t);return"".concat(n/e).concat(String(t).replace(String(n),"")||"px")}var f=o.forwardRef((function(t,e){var n=t.alignContent,s=void 0===n?"stretch":n,u=t.alignItems,c=void 0===u?"stretch":u,l=t.classes,f=t.className,h=t.component,p=void 0===h?"div":h,d=t.container,v=void 0!==d&&d,m=t.direction,y=void 0===m?"row":m,g=t.item,b=void 0!==g&&g,w=t.justify,E=void 0===w?"flex-start":w,T=t.lg,x=void 0!==T&&T,k=t.md,I=void 0!==k&&k,S=t.sm,_=void 0!==S&&S,O=t.spacing,A=void 0===O?0:O,N=t.wrap,C=void 0===N?"wrap":N,P=t.xl,j=void 0!==P&&P,R=t.xs,L=void 0!==R&&R,D=t.zeroMinWidth,M=void 0!==D&&D,F=Object(r.a)(t,["alignContent","alignItems","classes","className","component","container","direction","item","justify","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),V=Object(a.a)(l.root,f,v&&[l.container,0!==A&&l["spacing-xs-".concat(String(A))]],b&&l.item,M&&l.zeroMinWidth,"row"!==y&&l["direction-xs-".concat(String(y))],"wrap"!==C&&l["wrap-xs-".concat(String(C))],"stretch"!==c&&l["align-items-xs-".concat(String(c))],"stretch"!==s&&l["align-content-xs-".concat(String(s))],"flex-start"!==E&&l["justify-xs-".concat(String(E))],!1!==L&&l["grid-xs-".concat(String(L))],!1!==_&&l["grid-sm-".concat(String(_))],!1!==I&&l["grid-md-".concat(String(I))],!1!==x&&l["grid-lg-".concat(String(x))],!1!==j&&l["grid-xl-".concat(String(j))]);return o.createElement(p,Object(i.a)({className:V,ref:e},F))})),h=Object(s.a)((function(t){return Object(i.a)({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-xs-center":{justifyContent:"center"},"justify-xs-flex-end":{justifyContent:"flex-end"},"justify-xs-space-between":{justifyContent:"space-between"},"justify-xs-space-around":{justifyContent:"space-around"},"justify-xs-space-evenly":{justifyContent:"space-evenly"}},function(t,e){var n={};return u.forEach((function(r){var i=t.spacing(r);0!==i&&(n["spacing-".concat(e,"-").concat(r)]={margin:"-".concat(l(i,2)),width:"calc(100% + ".concat(l(i),")"),"& > $item":{padding:l(i,2)}})})),n}(t,"xs"),{},t.breakpoints.keys.reduce((function(e,n){return function(t,e,n){var r={};
2c.forEach((function(t){var e="grid-".concat(n,"-").concat(t);if(!0!==t)if("auto"!==t){var i="".concat(Math.round(t/12*1e8)/1e6,"%");r[e]={flexBasis:i,flexGrow:0,maxWidth:i}}else r[e]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else r[e]={flexBasis:0,flexGrow:1,maxWidth:"100%"}})),"xs"===n?Object(i.a)(t,r):t[e.breakpoints.up(n)]=r}(e,t,n),e}),{}))}),{name:"MuiGrid"})(f);e.a=h},function(t,e,n){"use strict";var r=n(1),i=n(2),o=n(0),a=(n(6),n(3)),s=n(55),u=n(4),c=n(33),l=o.forwardRef((function(t,e){var n=t.children,u=t.classes,l=t.className,f=t.component,h=void 0===f?"div":f,p=t.disablePointerEvents,d=void 0!==p&&p,v=t.disableTypography,m=void 0!==v&&v,y=t.position,g=t.variant,b=Object(i.a)(t,["children","classes","className","component","disablePointerEvents","disableTypography","position","variant"]),w=Object(c.b)()||{},E=g;return g&&w.variant,w&&!E&&(E=w.variant),o.createElement(c.a.Provider,{value:null},o.createElement(h,Object(r.a)({className:Object(a.a)(u.root,l,d&&u.disablePointerEvents,w.hiddenLabel&&u.hiddenLabel,"filled"===E&&u.filled,{start:u.positionStart,end:u.positionEnd}[y],"dense"===w.margin&&u.marginDense),ref:e},b),"string"!==typeof n||m?n:o.createElement(s.a,{color:"textSecondary"},n)))}));e.a=Object(u.a)({root:{display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap"},filled:{"&$positionStart:not($hiddenLabel)":{marginTop:16}},positionStart:{marginRight:8},positionEnd:{marginLeft:8},disablePointerEvents:{pointerEvents:"none"},hiddenLabel:{},marginDense:{}},{name:"MuiInputAdornment"})(l)},function(t,e,n){"use strict";var r=n(0),i=n.n(r),o=n(74);e.a=Object(o.a)(i.a.createElement("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff")},function(t,e,n){"use strict";var r=n(0),i=n.n(r),o=n(74);e.a=Object(o.a)(i.a.createElement("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility")},function(t,e,n){"use strict";var r=n(1),i=n(2),o=n(0),a=(n(6),n(3)),s=n(27),u=n(4),c=n(55),l=n(13),f=o.forwardRef((function(t,e){t.checked;var n=t.classes,u=t.className,f=t.control,h=t.disabled,p=(t.inputRef,t.label),d=t.labelPlacement,v=void 0===d?"end":d,m=(t.name,t.onChange,t.value,Object(i.a)(t,["checked","classes","className","control","disabled","inputRef","label","labelPlacement","name","onChange","value"])),y=Object(s.a)(),g=h;"undefined"===typeof g&&"undefined"!==typeof f.props.disabled&&(g=f.props.disabled),"undefined"===typeof g&&y&&(g=y.disabled);var b={disabled:g};return["checked","name","onChange","value","inputRef"].forEach((function(e){"undefined"===typeof f.props[e]&&"undefined"!==typeof t[e]&&(b[e]=t[e])})),o.createElement("label",Object(r.a)({className:Object(a.a)(n.root,u,"end"!==v&&n["labelPlacement".concat(Object(l.a)(v))],g&&n.disabled),ref:e},m),o.cloneElement(f,b),o.createElement(c.a,{component:"span",className:Object(a.a)(n.label,g&&n.disabled)},p))}));e.a=Object(u.a)((function(t){return{root:{display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,"&$disabled":{cursor:"default"}},labelPlacementStart:{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},labelPlacementTop:{flexDirection:"column-reverse",marginLeft:16},labelPlacementBottom:{flexDirection:"column",marginLeft:16},disabled:{},label:{"&$disabled":{color:t.palette.text.disabled}}}}),{name:"MuiFormControlLabel"})(f)},function(t,e,n){"use strict";var r=n(1),i=n(2),o=n(0),a=(n(6),n(3));function s(t){var e=t.props,n=t.states,r=t.muiFormControl;return n.reduce((function(t,n){return t[n]=e[n],r&&"undefined"===typeof e[n]&&(t[n]=r[n]),t}),{})}var u=n(33),c=n(4),l=n(13),f=n(15);function h(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}function p(t,e){return parseInt(t[e],10)||0}var d="undefined"!==typeof window?o.useLayoutEffect:o.useEffect,v={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},m=o.forwardRef((function(t,e){var n=t.onChange,a=t.rows,s=t.rowsMax,u=t.rowsMin,c=void 0===u?1:u,l=t.style,m=t.value,y=Object(i.a)(t,["onChange","rows","rowsMax","rowsMin","style","value"]),g=a||c,b=o.useRef(null!=m).current,w=o.useRef(null),E=Object(f.a)(e,w),T=o.useRef(null),x=o.useRef(0),k=o.use
2State({}),I=k[0],S=k[1],_=o.useCallback((function(){var e=w.current,n=window.getComputedStyle(e),r=T.current;r.style.width=n.width,r.value=e.value||t.placeholder||"x";var i=n["box-sizing"],o=p(n,"padding-bottom")+p(n,"padding-top"),a=p(n,"border-bottom-width")+p(n,"border-top-width"),u=r.scrollHeight-o;r.value="x";var c=r.scrollHeight-o,l=u;g&&(l=Math.max(Number(g)*c,l)),s&&(l=Math.min(Number(s)*c,l));var f=(l=Math.max(l,c))+("border-box"===i?o+a:0),h=Math.abs(l-u)<=1;S((function(t){return x.current<20&&(f>0&&Math.abs((t.outerHeightStyle||0)-f)>1||t.overflow!==h)?(x.current+=1,{overflow:h,outerHeightStyle:f}):t}))}),[s,g,t.placeholder]);o.useEffect((function(){var t=h((function(){x.current=0,_()}));return window.addEventListener("resize",t),function(){t.clear(),window.removeEventListener("resize",t)}}),[_]),d((function(){_()})),o.useEffect((function(){x.current=0}),[m]);return o.createElement(o.Fragment,null,o.createElement("textarea",Object(r.a)({value:m,onChange:function(t){x.current=0,b||_(),n&&n(t)},ref:E,rows:g,style:Object(r.a)({height:I.outerHeightStyle,overflow:I.overflow?"hidden":null},l)},y)),o.createElement("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:T,tabIndex:-1,style:Object(r.a)({},v,{},l)}))}));function y(t){return null!=t&&!(Array.isArray(t)&&0===t.length)}function g(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t&&(y(t.value)&&""!==t.value||e&&y(t.defaultValue)&&""!==t.defaultValue)}var b="undefined"===typeof window?o.useEffect:o.useLayoutEffect,w=o.forwardRef((function(t,e){var n=t["aria-describedby"],c=t.autoComplete,h=t.autoFocus,p=t.classes,d=t.className,v=(t.color,t.defaultValue),y=t.disabled,w=t.endAdornment,E=(t.error,t.fullWidth),T=void 0!==E&&E,x=t.id,k=t.inputComponent,I=void 0===k?"input":k,S=t.inputProps,_=void 0===S?{}:S,O=t.inputRef,A=(t.margin,t.multiline),N=void 0!==A&&A,C=t.name,P=t.onBlur,j=t.onChange,R=t.onClick,L=t.onFocus,D=t.onKeyDown,M=t.onKeyUp,F=t.placeholder,V=t.readOnly,U=t.renderSuffix,z=t.rows,B=t.rowsMax,q=t.rowsMin,H=t.startAdornment,W=t.type,G=void 0===W?"text":W,K=t.value,$=Object(i.a)(t,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","startAdornment","type","value"]),X=null!=_.value?_.value:K,Y=o.useRef(null!=X).current,J=o.useRef(),Q=o.useCallback((function(t){0}),[]),Z=Object(f.a)(_.ref,Q),tt=Object(f.a)(O,Z),et=Object(f.a)(J,tt),nt=o.useState(!1),rt=nt[0],it=nt[1],ot=Object(u.b)();var at=s({props:t,muiFormControl:ot,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});at.focused=ot?ot.focused:rt,o.useEffect((function(){!ot&&y&&rt&&(it(!1),P&&P())}),[ot,y,rt,P]);var st=ot&&ot.onFilled,ut=ot&&ot.onEmpty,ct=o.useCallback((function(t){g(t)?st&&st():ut&&ut()}),[st,ut]);b((function(){Y&&ct({value:X})}),[X,ct,Y]);o.useEffect((function(){ct(J.current)}),[]);var lt=I,ft=Object(r.a)({},_,{ref:et});"string"!==typeof lt?ft=Object(r.a)({inputRef:et,type:G},ft,{ref:null}):N?!z||B||q?(ft=Object(r.a)({rows:z,rowsMax:B},ft),lt=m):lt="textarea":ft=Object(r.a)({type:G},ft);return o.useEffect((function(){ot&&ot.setAdornedStart(Boolean(H))}),[ot,H]),o.createElement("div",Object(r.a)({className:Object(a.a)(p.root,p["color".concat(Object(l.a)(at.color||"primary"))],d,at.disabled&&p.disabled,at.error&&p.error,T&&p.fullWidth,at.focused&&p.focused,ot&&p.formControl,N&&p.multiline,H&&p.adornedStart,w&&p.adornedEnd,"dense"===at.margin&&p.marginDense),onClick:function(t){J.current&&t.currentTarget===t.target&&J.current.focus(),R&&R(t)},ref:e},$),H,o.createElement(u.a.Provider,{value:null},o.createElement(lt,Object(r.a)({"aria-invalid":at.error,"aria-describedby":n,autoComplete:c,autoFocus:h,defaultValue:v,disabled:at.disabled,id:x,onAnimationStart:function(t){ct("mui-auto-fill-cancel"===t.animationName?J.current:{value:"x"})},name:C,placeholder:F,readOnly:V,required:at.required,rows:z,value:X,onKeyDown:D,onKeyUp:M},ft,{className:Object(a.a)(p.input,_.className,at.disabled&&p.disabled,N&&p.inputMultiline,at.hiddenLabel&&p.inputHiddenLabel,H&&p.inputAdornedStart,w&&p.inputAdornedEnd,"search"===G&&p.inputTypeSearch,"dense"===at.margin&&p.inputMarginDense),onBlur:function(t){P&&P(t),_.onBlur&&_.onBlur(t),ot&&ot.onBlur?ot.onBlur(t):it(!1)},onChange:function(t){if(!Y){var e=t.target||J.current;if(null==e)throw new TypeError("Material-UI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://material-ui.com/r/input-component-ref-interface for more info.");ct({value:e.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];_.onChange&&_.onChange.apply(_,[t].concat(r)),j&&j.apply(void 0,[t].concat(r))},onFocus:function(t){at.disabled?t.stopPropagation():(L&&L(t),_.onFocus&&_.onFocus(t),ot&&ot.onFocus?ot.onFocus(t):it(!0))}}))),w,U?U(Object(r.a)({},at,{startAdornment:H})):null)})),E=Object(c.a)((function(t){var e="light"===t.palette.type,n={color:"currentColor",opacity:e?.42:.5,transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},i={opacity:"0 !important"},o={opacity:e?.42:.5};return{"@global":{"@keyframes mui-auto-fill":{from:{}},"@keyframes mui-auto-fill-cancel":{from:{}}},root:Object(r.a)({},t.typography.body1,{color:t.palette.text.primary,lineHeight:"1.1876em",boxSizing:"border-box",position:"relative",curs
2or:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:t.palette.text.disabled,cursor:"default"}}),formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1876em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},inputMarginDense:{paddingTop:3},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}}),{name:"MuiInputBase"})(w),T=o.forwardRef((function(t,e){var n=t.disableUnderline,s=t.classes,u=t.fullWidth,c=void 0!==u&&u,l=t.inputComponent,f=void 0===l?"input":l,h=t.multiline,p=void 0!==h&&h,d=t.type,v=void 0===d?"text":d,m=Object(i.a)(t,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return o.createElement(E,Object(r.a)({classes:Object(r.a)({},s,{root:Object(a.a)(s.root,!n&&s.underline),underline:null}),fullWidth:c,inputComponent:f,multiline:p,ref:e,type:v},m))}));T.muiName="Input";var x=Object(c.a)((function(t){var e="light"===t.palette.type?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},colorSecondary:{"&$underline:after":{borderBottomColor:t.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(t.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:t.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(e),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):before":{borderBottom:"2px solid ".concat(t.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(e)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},marginDense:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputTypeSearch:{}}}),{name:"MuiInput"})(T),k=o.forwardRef((function(t,e){var n=t.disableUnderline,s=t.classes,u=t.fullWidth,c=void 0!==u&&u,l=t.inputComponent,f=void 0===l?"input":l,h=t.multiline,p=void 0!==h&&h,d=t.type,v=void 0===d?"text":d,m=Object(i.a)(t,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return o.createElement(E,Object(r.a)({classes:Object(r.a)({},s,{root:Object(a.a)(s.root,!n&&s.underline),underline:null}),fullWidth:c,inputComponent:f,multiline:p,ref:e,type:v},m))}));k.muiName="Input";var I=Object(c.a)((function(t){var e="light"===t.palette.type,n=e?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=e?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:r,borderTopLeftRadius:t.shape.borderRadius,borderTopRightRadius:t.shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:e?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:r}},"&$focused":{backgroundColor:e?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:e?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},colorSecondary:{"&$underline:after":{borderBottomColor:t.palette.secondary.main}}
2,underline:{"&:after":{borderBottom:"2px solid ".concat(t.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:t.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:before":{borderBottom:"1px solid ".concat(t.palette.text.primary)},"&$disabled:before":{borderBottomStyle:"dotted"}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},marginDense:{},multiline:{padding:"27px 12px 10px","&$marginDense":{paddingTop:23,paddingBottom:6}},input:{padding:"27px 12px 10px","&:-webkit-autofill":{WebkitBoxShadow:"dark"===t.palette.type?"0 0 0 100px #266798 inset":null,WebkitTextFillColor:"dark"===t.palette.type?"#fff":null,borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},inputMarginDense:{paddingTop:23,paddingBottom:6},inputHiddenLabel:{paddingTop:18,paddingBottom:19,"&$inputMarginDense":{paddingTop:10,paddingBottom:11}},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiFilledInput"})(k),S=n(24),_=n(31),O=o.forwardRef((function(t,e){t.children;var n=t.classes,s=t.className,u=t.label,c=t.labelWidth,f=t.notched,h=t.style,p=Object(i.a)(t,["children","classes","className","label","labelWidth","notched","style"]),d="rtl"===Object(_.a)().direction?"right":"left";if(void 0!==u)return o.createElement("fieldset",Object(r.a)({"aria-hidden":!0,className:Object(a.a)(n.root,s),ref:e,style:h},p),o.createElement("legend",{className:Object(a.a)(n.legendLabelled,f&&n.legendNotched)},u?o.createElement("span",null,u):o.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})));var v=c>0?.75*c+8:.01;return o.createElement("fieldset",Object(r.a)({"aria-hidden":!0,style:Object(r.a)(Object(S.a)({},"padding".concat(Object(l.a)(d)),8),h),className:Object(a.a)(n.root,s),ref:e},p),o.createElement("legend",{className:n.legend,style:{width:f?v:.01}},o.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})))})),A=Object(c.a)((function(t){return{root:{position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:0,paddingLeft:8,pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}}),{name:"PrivateNotchedOutline"})(O),N=o.forwardRef((function(t,e){var n=t.classes,s=t.fullWidth,u=void 0!==s&&s,c=t.inputComponent,l=void 0===c?"input":c,f=t.label,h=t.labelWidth,p=void 0===h?0:h,d=t.multiline,v=void 0!==d&&d,m=t.notched,y=t.type,g=void 0===y?"text":y,b=Object(i.a)(t,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return o.createElement(E,Object(r.a)({renderSuffix:function(t){return o.createElement(A,{className:n.notchedOutline,label:f,labelWidth:p,notched:"undefined"!==typeof m?m:Boolean(t.startAdornment||t.filled||t.focused)})},classes:Object(r.a)({},n,{root:Object(a.a)(n.root,n.underline),notchedOutline:null}),fullWidth:u,inputComponent:l,multiline:v,ref:e,type:g},b))}));N.muiName="Input";var C=Object(c.a)((function(t){var e="light"===t.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:t.shape.borderRadius,"&:hover $notchedOutline":{borderColor:t.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:e}},"&$focused $notchedOutline":{borderColor:t.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:t.palette.error.main},"&$disabled $notchedOutline":{borderColor:t.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:t.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:e},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"dark"===t.palette.type?"0 0 0 100px #266798 inset":null,WebkitTextFillColor:"dark"===t.palette.type?"#fff":null,borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiOutlinedInput"})(N),P=n(27),j=o.forwardRef((function(t,e){var n=t.children,u=t.classes,c=t.className,f=(t.color,t.component),h=void 0===f?"label":f,p=(t.disabled,t.error,t.filled,t.focu
2sed,t.required,Object(i.a)(t,["children","classes","className","color","component","disabled","error","filled","focused","required"])),d=s({props:t,muiFormControl:Object(P.a)(),states:["color","required","focused","disabled","error","filled"]});return o.createElement(h,Object(r.a)({className:Object(a.a)(u.root,u["color".concat(Object(l.a)(d.color||"primary"))],c,d.disabled&&u.disabled,d.error&&u.error,d.filled&&u.filled,d.focused&&u.focused,d.required&&u.required),ref:e},p),n,d.required&&o.createElement("span",{className:Object(a.a)(u.asterisk,d.error&&u.error)},"\u2009","*"))})),R=Object(c.a)((function(t){return{root:Object(r.a)({color:t.palette.text.secondary},t.typography.body1,{lineHeight:1,padding:0,"&$focused":{color:t.palette.primary.main},"&$disabled":{color:t.palette.text.disabled},"&$error":{color:t.palette.error.main}}),colorSecondary:{"&$focused":{color:t.palette.secondary.main}},focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:t.palette.error.main}}}}),{name:"MuiFormLabel"})(j),L=o.forwardRef((function(t,e){var n=t.classes,u=t.className,c=t.disableAnimation,l=void 0!==c&&c,f=(t.margin,t.shrink),h=(t.variant,Object(i.a)(t,["classes","className","disableAnimation","margin","shrink","variant"])),p=Object(P.a)(),d=f;"undefined"===typeof d&&p&&(d=p.filled||p.focused||p.adornedStart);var v=s({props:t,muiFormControl:p,states:["margin","variant"]});return o.createElement(R,Object(r.a)({"data-shrink":d,className:Object(a.a)(n.root,u,p&&n.formControl,!l&&n.animated,d&&n.shrink,"dense"===v.margin&&n.marginDense,{filled:n.filled,outlined:n.outlined}[v.variant]),classes:{focused:n.focused,disabled:n.disabled,error:n.error,required:n.required,asterisk:n.asterisk},ref:e},h))})),D=Object(c.a)((function(t){return{root:{display:"block",transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},asterisk:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:t.transitions.create(["color","transform"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 12px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}}),{name:"MuiInputLabel"})(L);function M(t,e){return o.isValidElement(t)&&-1!==e.indexOf(t.type.muiName)}var F=o.forwardRef((function(t,e){var n=t.children,s=t.classes,c=t.className,f=t.color,h=void 0===f?"primary":f,p=t.component,d=void 0===p?"div":p,v=t.disabled,m=void 0!==v&&v,y=t.error,b=void 0!==y&&y,w=t.fullWidth,E=void 0!==w&&w,T=t.focused,x=t.hiddenLabel,k=void 0!==x&&x,I=t.margin,S=void 0===I?"none":I,_=t.required,O=void 0!==_&&_,A=t.size,N=t.variant,C=void 0===N?"standard":N,P=Object(i.a)(t,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),j=o.useState((function(){var t=!1;return n&&o.Children.forEach(n,(function(e){if(M(e,["Input","Select"])){var n=M(e,["Select"])?e.props.input:e;n&&n.props.startAdornment&&(t=!0)}})),t})),R=j[0],L=j[1],D=o.useState((function(){var t=!1;return n&&o.Children.forEach(n,(function(e){M(e,["Input","Select"])&&g(e.props,!0)&&(t=!0)})),t})),F=D[0],V=D[1],U=o.useState(!1),z=U[0],B=U[1],q=void 0!==T?T:z;m&&q&&B(!1);var H=o.useCallback((function(){V(!0)}),[]),W={adornedStart:R,setAdornedStart:L,color:h,disabled:m,error:b,filled:F,focused:q,fullWidth:E,hiddenLabel:k,margin:("small"===A?"dense":void 0)||S,onBlur:function(){B(!1)},onEmpty:o.useCallback((function(){V(!1)}),[]),onFilled:H,onFocus:function(){B(!0)},registerEffect:void 0,required:O,variant:C};return o.createElement(u.a.Provider,{value:W},o.createElement(d,Object(r.a)({className:Object(a.a)(s.root,c,"none"!==S&&s["margin".concat(Object(l.a)(S))],E&&s.fullWidth),ref:e},P),n))})),V=Object(c.a)({root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},{name:"MuiFormControl"})(F),U=o.forwardRef((function(t,e){var n=t.children,u=t.classes,c=t.className,l=t.component,f=void 0===l?"p":l,h=(t.disabled,t.error,t.filled,t.focu
2sed,t.margin,t.required,t.variant,Object(i.a)(t,["children","classes","className","component","disabled","error","filled","focused","margin","required","variant"])),p=s({props:t,muiFormControl:Object(P.a)(),states:["variant","margin","disabled","error","filled","focused","required"]});return o.createElement(f,Object(r.a)({className:Object(a.a)(u.root,("filled"===p.variant||"outlined"===p.variant)&&u.contained,c,p.disabled&&u.disabled,p.error&&u.error,p.filled&&u.filled,p.focused&&u.focused,p.required&&u.required,"dense"===p.margin&&u.marginDense),ref:e},h)," "===n?o.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):n)})),z=Object(c.a)((function(t){return{root:Object(r.a)({color:t.palette.text.secondary},t.typography.caption,{textAlign:"left",marginTop:3,margin:0,"&$disabled":{color:t.palette.text.disabled},"&$error":{color:t.palette.error.main}}),error:{},disabled:{},marginDense:{marginTop:4},contained:{marginLeft:14,marginRight:14},focused:{},filled:{},required:{}}}),{name:"MuiFormHelperText"})(U),B=n(875),q=n(32),H=n(40),W=n(42),G=(n(46),n(17)),K=n(23),$=n(50),X=n(41),Y=n(91),J=n(847),Q=n(884),Z=n(34),tt=n(71);var et=n(51);function nt(){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}function rt(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function it(t){return parseInt(window.getComputedStyle(t)["padding-right"],10)||0}function ot(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(q.a)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(t.children,(function(t){1===t.nodeType&&-1===o.indexOf(t)&&-1===a.indexOf(t.tagName)&&rt(t,i)}))}function at(t,e){var n=-1;return t.some((function(t,r){return!!e(t)&&(n=r,!0)})),n}function st(t,e){var n,r=[],i=[],o=t.container;if(!e.disableScrollLock){if(function(t){var e=Object(K.a)(t);return e.body===t?Object($.a)(e).innerWidth>e.documentElement.clientWidth:t.scrollHeight>t.clientHeight}(o)){var a=nt();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(it(o)+a,"px"),n=Object(K.a)(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(t){i.push(t.style.paddingRight),t.style.paddingRight="".concat(it(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 ut=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(et.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&&rt(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);ot(e,t.mountNode,t.modalRef,r,!0);var i=at(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=at(this.containers,(function(e){return-1!==e.modals.indexOf(t)})),r=this.containers[n];r.restore||(r.restore=st(r,e))}},{key:"remove",value:function(t){var e=this.modals.indexOf(t);if(-1===e)return e;var n=at(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&&rt(t.modalRef,!0),ot(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&&rt(i.modalRef,!1)}return e}},{key:"isTopModal",value:function(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}]),t}();var ct=function(t){var e=t.children,n=t.disableAutoFocus,r=void 0!==n&&n,i=t.disableEnforceFocus,a=void 0!==i&&i,s=t.disableRestoreFocus,u=void 0!==s&&s,c=t.getDoc,l=t.isEnabled,h=t.open,p=o.useRef(),d=o.useRef(null),v=o.useRef(null),m=o.useRef(),y=o.useRef(null),g=o.useCallback((function(t){y.current=G.findDOMNode(t)}),[]),b=Object(f.a)(e.ref,g);return o.useMemo((function(){h&&"undefined"!==typeof window&&(m.current=c().activeElement)}),[h]),o.useEffect((function(){if(h){var t=Object(K.a)(y.current);r||!y.current||y.current.contains(t.activeElement)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex",-1),y.current.focus());
2var e=function(){a||!l()||p.current?p.current=!1:y.current&&!y.current.contains(t.activeElement)&&y.current.focus()},n=function(e){!a&&l()&&9===e.keyCode&&t.activeElement===y.current&&(p.current=!0,e.shiftKey?v.current.focus():d.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),u||(m.current&&m.current.focus&&m.current.focus(),m.current=null)}}}),[r,a,u,l,h]),o.createElement(o.Fragment,null,o.createElement("div",{tabIndex:0,ref:d,"data-test":"sentinelStart"}),o.cloneElement(e,{ref:b}),o.createElement("div",{tabIndex:0,ref:v,"data-test":"sentinelEnd"}))},lt={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"}},ft=o.forwardRef((function(t,e){var n=t.invisible,a=void 0!==n&&n,s=t.open,u=Object(i.a)(t,["invisible","open"]);return s?o.createElement("div",Object(r.a)({"aria-hidden":!0,ref:e},u,{style:Object(r.a)({},lt.root,{},a?lt.invisible:{},{},u.style)})):null}));var ht=new ut,pt=o.forwardRef((function(t,e){var n=Object(Y.a)(),a=Object(J.a)({name:"MuiModal",props:Object(r.a)({},t),theme:n}),s=a.BackdropComponent,u=void 0===s?ft:s,c=a.BackdropProps,l=a.children,h=a.closeAfterTransition,p=void 0!==h&&h,d=a.container,v=a.disableAutoFocus,m=void 0!==v&&v,y=a.disableBackdropClick,g=void 0!==y&&y,b=a.disableEnforceFocus,w=void 0!==b&&b,E=a.disableEscapeKeyDown,T=void 0!==E&&E,x=a.disablePortal,k=void 0!==x&&x,I=a.disableRestoreFocus,S=void 0!==I&&I,_=a.disableScrollLock,O=void 0!==_&&_,A=a.hideBackdrop,N=void 0!==A&&A,C=a.keepMounted,P=void 0!==C&&C,j=a.manager,R=void 0===j?ht:j,L=a.onBackdropClick,D=a.onClose,M=a.onEscapeKeyDown,F=a.onRendered,V=a.open,U=Object(i.a)(a,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),z=o.useState(!0),B=z[0],q=z[1],H=o.useRef({}),W=o.useRef(null),$=o.useRef(null),et=Object(f.a)($,e),nt=function(t){return!!t.children&&t.children.props.hasOwnProperty("in")}(a),it=function(){return Object(K.a)(W.current)},ot=function(){return H.current.modalRef=$.current,H.current.mountNode=W.current,H.current},at=function(){R.mount(ot(),{disableScrollLock:O}),$.current.scrollTop=0},st=Object(Z.a)((function(){var t=function(t){return t="function"===typeof t?t():t,G.findDOMNode(t)}(d)||it().body;R.add(ot(),t),$.current&&at()})),ut=o.useCallback((function(){return R.isTopModal(ot())}),[R]),lt=Object(Z.a)((function(t){W.current=t,t&&(F&&F(),V&&ut()?at():rt($.current,!0))})),pt=o.useCallback((function(){R.remove(ot())}),[R]);if(o.useEffect((function(){return function(){pt()}}),[pt]),o.useEffect((function(){V?st():nt&&p||pt()}),[V,pt,nt,p,st]),!P&&!V&&(!nt||B))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:tt.a}),vt={};return void 0===l.props.tabIndex&&(vt.tabIndex=l.props.tabIndex||"-1"),nt&&(vt.onEnter=Object(X.a)((function(){q(!1)}),l.props.onEnter),vt.onExited=Object(X.a)((function(){q(!0),p&&pt()}),l.props.onExited)),o.createElement(Q.a,{ref:lt,container:d,disablePortal:k},o.createElement("div",Object(r.a)({ref:et,onKeyDown:function(t){"Escape"===t.key&&ut()&&(t.stopPropagation(),M&&M(t),!T&&D&&D(t,"escapeKeyDown"))},role:"presentation"},U,{style:Object(r.a)({},dt.root,{},!V&&B?dt.hidden:{},{},U.style)}),N?null:o.createElement(u,Object(r.a)({open:V,onClick:function(t){t.target===t.currentTarget&&(L&&L(t),!g&&D&&D(t,"backdropClick"))}},c)),o.createElement(ct,{disableEnforceFocus:w,disableAutoFocus:m,disableRestoreFocus:S,getDoc:it,isEnabled:ut,open:V},o.cloneElement(l,vt))))})),dt=n(883),vt=n(129);function mt(t,e){var n=0;return"number"===typeof e?n=e:"center"===e?n=t.height/2:"bottom"===e&&(n=t.height),n}function yt(t,e){var n=0;return"number"===typeof e?n=e:"center"===e?n=t.width/2:"right"===e&&(n=t.width),n}function gt(t){return[t.horizontal,t.vertical].map((function(t){return"number"===typeof t?"".concat(t,"px"):t})).join(" ")}function bt(t){return"function"===typeof t?t():t}var wt=o.forwardRef((function(t,e){var n=t.action,s=t.anchorEl,u=t.anchorOrigin,c=void 0===u?{vertical:"top",horizontal:"left"}:u,l=t.anchorPosition,f=t.anchorReference,p=void 0===f?"anchorEl":f,d=t.children,v=t.classes,m=t.className,y=t.container,g=t.elevation,b=void 0===g?8:g,w=t.getContentAnchorEl,E=t.marginThreshold,T=void 0===E?16:E,x=t.onEnter,k=t.onEntered,I=t.onEntering,S=t.onExit,_=t.onExited,O=t.onExiting,A=t.open,N=t.PaperProps,C=void 0===N?{}:N,P=t.transformOrigin,j=void 0===P?{vertical:"top",horizontal:"left"}:P,R=t.TransitionComponent,L=void 0===R?dt.a:R,D=t.transitionDuration,M=void 0===D?"auto":D,F=t.TransitionProps,V=void 0===F?{}:F,U=Object(i.a)(t,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","o
2pen","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),z=o.useRef(),B=o.useCallback((function(t){if("anchorPosition"===p)return l;var e=bt(s),n=(e instanceof Object($.a)(e).Element?e:Object(K.a)(z.current).body).getBoundingClientRect(),r=0===t?c.vertical:"center";return{top:n.top+mt(n,r),left:n.left+yt(n,c.horizontal)}}),[s,c.horizontal,c.vertical,l,p]),q=o.useCallback((function(t){var e=0;if(w&&"anchorEl"===p){var n=w(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}),[c.vertical,p,w]),H=o.useCallback((function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:mt(t,j.vertical)+e,horizontal:yt(t,j.horizontal)}}),[j.horizontal,j.vertical]),W=o.useCallback((function(t){var e=q(t),n={width:t.offsetWidth,height:t.offsetHeight},r=H(n,e);if("none"===p)return{top:null,left:null,transformOrigin:gt(r)};var i=B(e),o=i.top-r.vertical,a=i.left-r.horizontal,u=o+n.height,c=a+n.width,l=Object($.a)(bt(s)),f=l.innerHeight-T,h=l.innerWidth-T;if(o<T){var d=o-T;o-=d,r.vertical+=d}else if(u>f){var v=u-f;o-=v,r.vertical+=v}if(a<T){var m=a-T;a-=m,r.horizontal+=m}else if(c>h){var y=c-h;a-=y,r.horizontal+=y}return{top:"".concat(Math.round(o),"px"),left:"".concat(Math.round(a),"px"),transformOrigin:gt(r)}}),[s,p,B,q,H,T]),Y=o.useCallback((function(){var t=z.current;if(t){var e=W(t);null!==e.top&&(t.style.top=e.top),null!==e.left&&(t.style.left=e.left),t.style.transformOrigin=e.transformOrigin}}),[W]),J=o.useCallback((function(t){z.current=G.findDOMNode(t)}),[]);o.useEffect((function(){A&&Y()})),o.useImperativeHandle(n,(function(){return A?{updatePosition:function(){Y()}}:null}),[A,Y]),o.useEffect((function(){if(A){var t=h((function(){Y()}));return window.addEventListener("resize",t),function(){t.clear(),window.removeEventListener("resize",t)}}}),[A,Y]);var Q=M;"auto"!==M||L.muiSupportAuto||(Q=void 0);var Z=y||(s?Object(K.a)(bt(s)).body:void 0);return o.createElement(pt,Object(r.a)({container:Z,open:A,ref:e,BackdropProps:{invisible:!0},className:Object(a.a)(v.root,m)},U),o.createElement(L,Object(r.a)({appear:!0,in:A,onEnter:x,onEntered:k,onExit:S,onExited:_,onExiting:O,timeout:Q},V,{onEntering:Object(X.a)((function(t,e){I&&I(t,e),Y()}),V.onEntering)}),o.createElement(vt.a,Object(r.a)({elevation:b,ref:J},C,{className:Object(a.a)(v.paper,C.className)}),d)))})),Et=Object(c.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"})(wt);var Tt=o.createContext({}),xt=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,m=Object(i.a)(t,["children","classes","className","component","dense","disablePadding","subheader"]),y=o.useMemo((function(){return{dense:h}}),[h]);return o.createElement(Tt.Provider,{value:y},o.createElement(l,Object(r.a)({className:Object(a.a)(s.root,u,h&&s.dense,!d&&s.padding,v&&s.subheader),ref:e},m),v,n))})),kt=Object(c.a)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(xt);function It(t,e,n){return t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:n?null:t.firstChild}function St(t,e,n){return t===e?n?t.firstChild:t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:n?null:t.lastChild}function _t(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 Ot(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")&&_t(s,o)&&!u)return void s.focus();s=i(t,s,n)}}var At="undefined"===typeof window?o.useEffect:o.useLayoutEffect,Nt=o.forwardRef((function(t,e){var n=t.actions,a=t.autoF
2ocus,s=void 0!==a&&a,u=t.autoFocusItem,c=void 0!==u&&u,l=t.children,h=t.className,p=t.disabledItemsFocusable,d=void 0!==p&&p,v=t.disableListWrap,m=void 0!==v&&v,y=t.onKeyDown,g=t.variant,b=void 0===g?"selectedMenu":g,w=Object(i.a)(t,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),E=o.useRef(null),T=o.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});At((function(){s&&E.current.focus()}),[s]),o.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(t,e){var n=!E.current.style.width;if(t.clientHeight<E.current.clientHeight&&n){var r="".concat(nt(),"px");E.current.style["rtl"===e.direction?"paddingLeft":"paddingRight"]=r,E.current.style.width="calc(100% + ".concat(r,")")}return E.current}}}),[]);var x=o.useCallback((function(t){E.current=G.findDOMNode(t)}),[]),k=Object(f.a)(x,e),I=-1;o.Children.forEach(l,(function(t,e){o.isValidElement(t)&&(t.props.disabled||("selectedMenu"===b&&t.props.selected||-1===I)&&(I=e))}));var S=o.Children.map(l,(function(t,e){if(e===I){var n={};return c&&(n.autoFocus=!0),void 0===t.props.tabIndex&&"selectedMenu"===b&&(n.tabIndex=0),o.cloneElement(t,n)}return t}));return o.createElement(kt,Object(r.a)({role:"menu",ref:k,className:h,onKeyDown:function(t){var e=E.current,n=t.key,r=Object(K.a)(e).activeElement;if("ArrowDown"===n)t.preventDefault(),Ot(e,r,m,d,It);else if("ArrowUp"===n)t.preventDefault(),Ot(e,r,m,d,St);else if("Home"===n)t.preventDefault(),Ot(e,null,m,d,It);else if("End"===n)t.preventDefault(),Ot(e,null,m,d,St);else if(1===n.length){var i=T.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&&_t(r,i);i.previousKeyMatched&&(s||Ot(e,r,!1,d,It,i))?t.preventDefault():i.previousKeyMatched=!1}y&&y(t)},tabIndex:s?0:-1},w),S)})),Ct=n(29),Pt={vertical:"top",horizontal:"right"},jt={vertical:"top",horizontal:"left"},Rt=o.forwardRef((function(t,e){var n=t.autoFocus,s=void 0===n||n,u=t.children,c=t.classes,l=t.disableAutoFocusItem,f=void 0!==l&&l,h=t.MenuListProps,p=void 0===h?{}:h,d=t.onClose,v=t.onEntering,m=t.open,y=t.PaperProps,g=void 0===y?{}:y,b=t.PopoverClasses,w=t.transitionDuration,E=void 0===w?"auto":w,T=t.variant,x=void 0===T?"selectedMenu":T,k=Object(i.a)(t,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","variant"]),I=Object(_.a)(),S=s&&!f&&m,O=o.useRef(null),A=o.useRef(null),N=-1;o.Children.map(u,(function(t,e){o.isValidElement(t)&&(t.props.disabled||("menu"!==x&&t.props.selected||-1===N)&&(N=e))}));var C=o.Children.map(u,(function(t,e){return e===N?o.cloneElement(t,{ref:function(e){A.current=G.findDOMNode(e),Object(Ct.a)(t.ref,e)}}):t}));return o.createElement(Et,Object(r.a)({getContentAnchorEl:function(){return A.current},classes:b,onClose:d,onEntering:function(t,e){O.current&&O.current.adjustStyleForScrollbar(t,I),v&&v(t,e)},anchorOrigin:"rtl"===I.direction?Pt:jt,transformOrigin:"rtl"===I.direction?Pt:jt,PaperProps:Object(r.a)({},g,{classes:Object(r.a)({},g.classes,{root:c.paper})}),open:m,ref:e,transitionDuration:E},k),o.createElement(Nt,Object(r.a)({onKeyDown:function(t){"Tab"===t.key&&(t.preventDefault(),d&&d(t,"tabKeyDown"))},actions:O,autoFocus:s&&(-1===N||f),autoFocusItem:S,variant:x},p,{className:Object(a.a)(c.list,p.className)}),C))})),Lt=Object(c.a)({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(Rt),Dt=n(49);function Mt(t,e){return"object"===Object(W.a)(e)&&null!==e?t===e:String(t)===String(e)}var Ft=o.forwardRef((function(t,e){var n=t["aria-label"],s=t.autoFocus,u=t.autoWidth,c=t.children,h=t.classes,p=t.className,d=t.defaultValue,v=t.disabled,m=t.displayEmpty,y=t.IconComponent,b=t.inputRef,w=t.labelId,E=t.MenuProps,T=void 0===E?{}:E,x=t.multiple,k=t.name,I=t.onBlur,S=t.onChange,_=t.onClose,O=t.onFocus,A=t.onOpen,N=t.open,C=t.readOnly,P=t.renderValue,j=(t.required,t.SelectDisplayProps),R=void 0===j?{}:j,L=t.tabIndex,D=(t.type,t.value),M=t.variant,F=void 0===M?"standard":M,V=Object(i.a)(t,["aria-label","autoF
2ocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","required","SelectDisplayProps","tabIndex","type","value","variant"]),U=Object(Dt.a)({controlled:D,default:d,name:"SelectInput"}),z=Object(H.a)(U,2),B=z[0],W=z[1],G=o.useRef(null),K=o.useState(null),$=K[0],X=K[1],Y=o.useRef(null!=N).current,J=o.useState(),Q=J[0],Z=J[1],tt=o.useState(!1),et=tt[0],nt=tt[1],rt=Object(f.a)(e,b);o.useImperativeHandle(rt,(function(){return{focus:function(){$.focus()},node:G.current,value:B}}),[$,B]),o.useEffect((function(){s&&$&&$.focus()}),[s,$]);var it,ot,at=function(t,e){t?A&&A(e):_&&_(e),Y||(Z(u?null:$.clientWidth),nt(t))},st=function(t){return function(e){var n;if(x||at(!1,e),x){n=Array.isArray(B)?Object(q.a)(B):[];var r=B.indexOf(t.props.value);-1===r?n.push(t.props.value):n.splice(r,1)}else n=t.props.value;B!==n&&(W(n),S&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:n,name:k}}),S(e,t)))}},ut=null!==$&&(Y?N:et);delete V["aria-invalid"];var ct=[],lt=!1;(g({value:B})||m)&&(P?it=P(B):lt=!0);var ft=o.Children.map(c,(function(t){if(!o.isValidElement(t))return null;var e;if(x){if(!Array.isArray(B))throw new Error("Material-UI: the `value` prop must be an array when using the `Select` component with `multiple`.");(e=B.some((function(e){return Mt(e,t.props.value)})))&<&&ct.push(t.props.children)}else(e=Mt(B,t.props.value))&<&&(ot=t.props.children);return e&&!0,o.cloneElement(t,{"aria-selected":e?"true":void 0,onClick:st(t),onKeyUp:function(e){" "===e.key&&e.preventDefault();var n=t.props.onKeyUp;"function"===typeof n&&n(e)},role:"option",selected:e,value:void 0,"data-value":t.props.value})}));lt&&(it=x?ct.join(", "):ot);var ht,pt=Q;!u&&Y&&$&&(pt=$.clientWidth),ht="undefined"!==typeof L?L:v?null:0;var dt=R.id||(k?"mui-component-select-".concat(k):void 0);return o.createElement(o.Fragment,null,o.createElement("div",Object(r.a)({className:Object(a.a)(h.root,h.select,h.selectMenu,h[F],p,v&&h.disabled),ref:X,tabIndex:ht,role:"button","aria-disabled":v?"true":void 0,"aria-expanded":ut?"true":void 0,"aria-haspopup":"listbox","aria-label":n,"aria-labelledby":[w,dt].filter(Boolean).join(" ")||void 0,onKeyDown:function(t){if(!C){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(t.key)&&(t.preventDefault(),at(!0,t))}},onMouseDown:v||C?null:function(t){0===t.button&&(t.preventDefault(),$.focus(),at(!0,t))},onBlur:function(t){!ut&&I&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:B,name:k}}),I(t))},onFocus:O},R,{id:dt}),function(t){return null==t||"string"===typeof t&&!t.trim()}(it)?o.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):it),o.createElement("input",Object(r.a)({value:Array.isArray(B)?B.join(","):B,name:k,ref:G,type:"hidden",autoFocus:s},V)),o.createElement(y,{className:Object(a.a)(h.icon,h["icon".concat(Object(l.a)(F))],ut&&h.iconOpen,v&&h.disabled)}),o.createElement(Lt,Object(r.a)({id:"menu-".concat(k||""),anchorEl:$,open:ut,onClose:function(t){at(!1,t)}},T,{MenuListProps:Object(r.a)({"aria-labelledby":w,role:"listbox",disableListWrap:!0},T.MenuListProps),PaperProps:Object(r.a)({},T.PaperProps,{style:Object(r.a)({minWidth:pt},null!=T.PaperProps?T.PaperProps.style:null)})}),ft))})),Vt=n(39),Ut=Object(Vt.a)(o.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),zt=o.forwardRef((function(t,e){var n=t.classes,s=t.className,u=t.disabled,c=t.IconComponent,f=t.inputRef,h=t.variant,p=void 0===h?"standard":h,d=Object(i.a)(t,["classes","className","disabled","IconComponent","inputRef","variant"]);return o.createElement(o.Fragment,null,o.createElement("select",Object(r.a)({className:Object(a.a)(n.root,n.select,n[p],s,u&&n.disabled),disabled:u,ref:f||e},d)),t.multiple?null:o.createElement(c,{className:Object(a.a)(n.icon,n["icon".concat(Object(l.a)(p))],u&&n.disabled)}))})),Bt=function(t){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===t.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:t.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:t.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:t.palette.action.active,"&$disabled":{color:t.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7}}},qt=o.createElement(x,null),Ht=o.forwardRef((function(t,e){var n=t.children,a=t.classes,u=t.IconComponent,c=void 0===u?Ut:u,l=t.input,f=void 0===l?qt:l,h=t.inputProps,p=(t.variant,Object(i.a)(t,["children","classes","IconComponent","input","inputProps","variant"])),d=s({props:t,muiFormControl:Object(P.a)(),states:["variant"]});return o.cloneElement(f,Object(r.a)({inputComponent:zt,inputProps:Object(r.a)({children:n,classes:a,IconComponent:c,variant:d.variant,type:void 0},h,{},f?f.props.inputProps:{}),ref:e},p))}));Ht.muiName="Select";Object(c.a)(Bt,{name:"MuiNativeSelect"})(Ht);var Wt=Bt,Gt=o.createElement(x,null),Kt=o.createElement(I,null),$t=o.forwardRef((function t(e,n){var a=e.autoWidth,u=void 0!==a&&a,c=e.children,l=e.classes,f=e.dis
2playEmpty,h=void 0!==f&&f,p=e.IconComponent,d=void 0===p?Ut:p,v=e.id,m=e.input,y=e.inputProps,g=e.label,b=e.labelId,w=e.labelWidth,E=void 0===w?0:w,T=e.MenuProps,x=e.multiple,k=void 0!==x&&x,I=e.native,S=void 0!==I&&I,_=e.onClose,O=e.onOpen,A=e.open,N=e.renderValue,j=e.SelectDisplayProps,R=e.variant,L=void 0===R?"standard":R,D=Object(i.a)(e,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),M=S?zt:Ft,F=s({props:e,muiFormControl:Object(P.a)(),states:["variant"]}).variant||L,V=m||{standard:Gt,outlined:o.createElement(C,{label:g,labelWidth:E}),filled:Kt}[F];return o.cloneElement(V,Object(r.a)({inputComponent:M,inputProps:Object(r.a)({children:c,IconComponent:d,variant:F,type:void 0,multiple:k},S?{id:v}:{autoWidth:u,displayEmpty:h,labelId:b,MenuProps:T,onClose:_,onOpen:O,open:A,renderValue:N,SelectDisplayProps:Object(r.a)({id:v},j)},{},y,{classes:y?Object(B.a)({baseClasses:l,newClasses:y.classes,Component:t}):l},m?m.props.inputProps:{}),ref:n},D))}));$t.muiName="Select";var Xt=Object(c.a)(Wt,{name:"MuiSelect"})($t),Yt={standard:x,filled:I,outlined:C},Jt=o.forwardRef((function(t,e){var n=t.autoComplete,s=t.autoFocus,u=void 0!==s&&s,c=t.children,l=t.classes,f=t.className,h=t.color,p=void 0===h?"primary":h,d=t.defaultValue,v=t.disabled,m=void 0!==v&&v,y=t.error,g=void 0!==y&&y,b=t.FormHelperTextProps,w=t.fullWidth,E=void 0!==w&&w,T=t.helperText,x=t.hiddenLabel,k=t.id,I=t.InputLabelProps,S=t.inputProps,_=t.InputProps,O=t.inputRef,A=t.label,N=t.multiline,C=void 0!==N&&N,P=t.name,j=t.onBlur,R=t.onChange,L=t.onFocus,M=t.placeholder,F=t.required,U=void 0!==F&&F,B=t.rows,q=t.rowsMax,H=t.select,W=void 0!==H&&H,G=t.SelectProps,K=t.type,$=t.value,X=t.variant,Y=void 0===X?"standard":X,J=Object(i.a)(t,["autoComplete","autoFocus","children","classes","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","hiddenLabel","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","select","SelectProps","type","value","variant"]);var Q={};"outlined"===Y&&(I&&"undefined"!==typeof I.shrink&&(Q.notched=I.shrink),A&&(Q.label=o.createElement(o.Fragment,null,A,U&&"\xa0*"))),W&&(G&&G.native||(Q.id=void 0),Q["aria-describedby"]=void 0);var Z=T&&k?"".concat(k,"-helper-text"):void 0,tt=A&&k?"".concat(k,"-label"):void 0,et=Yt[Y],nt=o.createElement(et,Object(r.a)({"aria-describedby":Z,autoComplete:n,autoFocus:u,defaultValue:d,fullWidth:E,multiline:C,name:P,rows:B,rowsMax:q,type:K,value:$,id:k,inputRef:O,onBlur:j,onChange:R,onFocus:L,placeholder:M,inputProps:S},Q,_));return o.createElement(V,Object(r.a)({className:Object(a.a)(l.root,f),disabled:m,error:g,fullWidth:E,hiddenLabel:x,ref:e,required:U,color:p,variant:Y},J),A&&o.createElement(D,Object(r.a)({htmlFor:k,id:tt},I),A),W?o.createElement(Xt,Object(r.a)({"aria-describedby":Z,id:k,labelId:tt,value:$,input:nt},G),c):nt,T&&o.createElement(z,Object(r.a)({id:Z},b),T))}));e.a=Object(c.a)({root:{}},{name:"MuiTextField"})(Jt)},function(t,e,n){"use strict";var r=n(1),i=n(2),o=n(0),a=(n(6),n(3)),s=n(40),u=n(49),c=n(27),l=n(4),f=n(885),h=o.forwardRef((function(t,e){var n=t.autoFocus,l=t.checked,h=t.checkedIcon,p=t.classes,d=t.className,v=t.defaultChecked,m=t.disabled,y=t.icon,g=t.id,b=t.inputProps,w=t.inputRef,E=t.name,T=t.onBlur,x=t.onChange,k=t.onFocus,I=t.readOnly,S=t.required,_=t.tabIndex,O=t.type,A=t.value,N=Object(i.a)(t,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),C=Object(u.a)({controlled:l,default:Boolean(v),name:"SwitchBase",state:"checked"}),P=Object(s.a)(C,2),j=P[0],R=P[1],L=Object(c.a)(),D=m;L&&"undefined"===typeof D&&(D=L.disabled);var M="checkbox"===O||"radio"===O;return o.createElement(f.a,Object(r.a)({component:"span",className:Object(a.a)(p.root,d,j&&p.checked,D&&p.disabled),disabled:D,tabIndex:null,role:void 0,onFocus:function(t){k&&k(t),L&&L.onFocus&&L.onFocus(t)},onBlur:function(t){T&&T(t),L&&L.onBlur&&L.onBlur(t)},ref:e},N),o.createElement("input",Object(r.a)({autoFocus:n,checked:l,defaultChecked:v,className:p.input,disabled:D,id:M&&g,name:E,onChange:function(t){var e=t.target.checked;R(e),x&&x(t,e)},readOnly:I,ref:w,required:S,tabIndex:_,type:O,value:A},b)),j?h:y)})),p=Object(l.a)({root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}},{name:"PrivateSwitchBase"})(h),d=n(39),v=Object(d.a)(o.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),m=Object(d.a)(o.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),y=n(18),g=Object(d.a)(o.createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox"),b=n(13),w=o.createElement(m,null),E=o.createElement(v,null),T=o.createElement(g,null),x=o.forwardRef((function(t,e){var n=t.checkedIcon,s=void 0===n?w:n,u=t.classes,c=t.color,l=void 0===c?"secondary":c,f=t.icon,h=void 0===f?E:f,d=t.indeterminate,v=void 0!==d&&d,m=t.indeterminateIcon,y=void 0===m?T:m,g=t.inputProps,x=t.size,k=void 0===x?"medium":x,I=Object(i.a)(t,["checkedIcon","classes","color","icon","indeterminate","indeterminateIcon","inputProps","
2size"]);return o.createElement(p,Object(r.a)({type:"checkbox",classes:{root:Object(a.a)(u.root,u["color".concat(Object(b.a)(l))],v&&u.indeterminate),checked:u.checked,disabled:u.disabled},color:l,inputProps:Object(r.a)({"data-indeterminate":v},g),icon:o.cloneElement(v?y:h,{fontSize:"small"===k?"small":"default"}),checkedIcon:o.cloneElement(v?y:s,{fontSize:"small"===k?"small":"default"}),ref:e},I))}));e.a=Object(l.a)((function(t){return{root:{color:t.palette.text.secondary},checked:{},disabled:{},indeterminate:{},colorPrimary:{"&$checked":{color:t.palette.primary.main,"&:hover":{backgroundColor:Object(y.b)(t.palette.primary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:t.palette.action.disabled}},colorSecondary:{"&$checked":{color:t.palette.secondary.main,"&:hover":{backgroundColor:Object(y.b)(t.palette.secondary.main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:t.palette.action.disabled}}}}),{name:"MuiCheckbox"})(x)},function(t,e,n){"use strict";var r=n(1),i=n(40),o=n(2),a=n(24),s=n(0),u=n(17),c=(n(6),n(3)),l=n(876),f=n(18),h=n(4),p=n(13),d=n(883),v=n(126),m=n(91),y=n(884),g=n(41),b=n(29),w=n(15);function E(t){return"function"===typeof t?t():t}var T="undefined"!==typeof window?s.useLayoutEffect:s.useEffect,x={},k=s.forwardRef((function(t,e){var n=t.anchorEl,i=t.children,a=t.container,u=t.disablePortal,c=void 0!==u&&u,l=t.keepMounted,f=void 0!==l&&l,h=t.modifiers,p=t.open,d=t.placement,k=void 0===d?"bottom":d,I=t.popperOptions,S=void 0===I?x:I,_=t.popperRef,O=t.style,A=t.transition,N=void 0!==A&&A,C=Object(o.a)(t,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"]),P=s.useRef(null),j=Object(w.a)(P,e),R=s.useRef(null),L=Object(w.a)(R,_),D=s.useRef(L);T((function(){D.current=L}),[L]),s.useImperativeHandle(_,(function(){return R.current}),[]);var M=s.useState(!0),F=M[0],V=M[1],U=function(t,e){if("ltr"===(e&&e.direction||"ltr"))return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}(k,Object(m.a)()),z=s.useState(U),B=z[0],q=z[1];s.useEffect((function(){R.current&&R.current.update()}));var H=s.useCallback((function(){if(P.current&&n&&p){R.current&&(R.current.destroy(),D.current(null));var t=function(t){q(t.placement)},e=(E(n),new v.a(E(n),P.current,Object(r.a)({placement:U},S,{modifiers:Object(r.a)({},c?{}:{preventOverflow:{boundariesElement:"window"}},{},h,{},S.modifiers),onCreate:Object(g.a)(t,S.onCreate),onUpdate:Object(g.a)(t,S.onUpdate)})));D.current(e)}}),[n,c,h,p,U,S]),W=s.useCallback((function(t){Object(b.a)(j,t),H()}),[j,H]),G=function(){R.current&&(R.current.destroy(),D.current(null))};if(s.useEffect((function(){H()}),[H]),s.useEffect((function(){return function(){G()}}),[]),s.useEffect((function(){p||N||G()}),[p,N]),!f&&!p&&(!N||F))return null;var K={placement:B};return N&&(K.TransitionProps={in:p,onEnter:function(){V(!1)},onExited:function(){V(!0),G()}}),s.createElement(y.a,{disablePortal:c,container:a},s.createElement("div",Object(r.a)({ref:W,role:"tooltip"},C,{style:Object(r.a)({position:"fixed",top:0,left:0},O)}),"function"===typeof i?i(K):i))}));var I=n(72),S=n(49),_=n(31);function O(t){return Math.round(1e5*t)/1e5}var A=!1,N=null;var C=s.forwardRef((function(t,e){var n=t.arrow,a=void 0!==n&&n,f=t.children,h=t.classes,v=t.disableFocusListener,m=void 0!==v&&v,y=t.disableHoverListener,g=void 0!==y&&y,E=t.disableTouchListener,T=void 0!==E&&E,x=t.enterDelay,O=void 0===x?100:x,C=t.enterNextDelay,P=void 0===C?0:C,j=t.enterTouchDelay,R=void 0===j?700:j,L=t.id,D=t.interactive,M=void 0!==D&&D,F=t.leaveDelay,V=void 0===F?0:F,U=t.leaveTouchDelay,z=void 0===U?1500:U,B=t.onClose,q=t.onOpen,H=t.open,W=t.placement,G=void 0===W?"bottom":W,K=t.PopperProps,$=t.title,X=t.TransitionComponent,Y=void 0===X?d.a:X,J=t.TransitionProps,Q=Object(o.a)(t,["arrow","children","classes","disableFocusListener","disableHoverListener","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","id","interactive","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperProps","title","TransitionComponent","TransitionProps"]),Z=Object(_.a)(),tt=s.useState(),et=tt[0],nt=tt[1],rt=s.useState(null),it=rt[0],ot=rt[1],at=s.useRef(!1),st=s.useRef(),ut=s.useRef(),ct=s.useRef(),lt=s.useRef(),ft=Object(S.a)({controlled:H,default:!1,name:"Tooltip",state:"open"}),ht=Object(i.a)(ft,2),pt=ht[0],dt=ht[1],vt=pt,mt=function(t){var e=s.useState(t),n=e[0],r=e[1],i=t||n;return s.useEffect((function(){null==n&&r("mui-".concat(Math.round(1e5*Math.random())))}),[n]),i}(L);s.useEffect((function(){return function(){clearTimeout(st.current),clearTimeout(ut.current),clearTimeout(ct.current),clearTimeout(lt.current)}}),[]);var yt=function(t){clearTimeout(N),A=!0,dt(!0),q&&q(t)},gt=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(e){var n=f.props;"mouseover"===e.type&&n.onMouseOver&&t&&n.onMouseOver(e),at.current&&"touchstart"!==e.type||(et&&et.removeAttribute("title"),clearTimeout(ut.current),clearTimeout(ct.current),O||A&&P?(e.persist(),ut.current=setTimeout((function(){yt(e)}),A?P:O)):yt(e))}},bt=Object(I.a)(),wt=bt.isFocusVisible,Et=bt.onBlurVisible,Tt=bt.ref,xt=s.useState(!1),kt=xt[0],It=xt[1],St=function(){kt&&(It(!1),Et())},_t=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(e){et||nt(e.currentTarget),wt(e)&&(It(!0),gt()(e));var n=f.props;n.onFocus&&t&&n.onFocus(e)}},Ot=function(t){clearTimeout(N),N=setTimeout((function(){A=!1}),800+V),dt(!1),B&&B(t),clearTimeout(st.current),st.current=setTimeout((function(){at.current=!1}),Z.transitions.duration.shortest)},At=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(e){var n=f.props;"blur"===e.type&&(n.onBlur&&t&&n.onBlur(e),St()),"mouseleave"===e.type&&n.onMouseLeave&&e.currentTarget===et&&n.onMouseLeave(e),clearTimeout(ut.current),clearTimeout(ct.current),e.persist(),ct.current=setTimeout((function(){Ot(e)}),V)}},Nt=Object(w.a)(nt,e),Ct=Object(w.a)(Tt,Nt),Pt=s.useCallback((function(t){Object(b.a)(Ct,u.findDOMNode(t))}),[Ct]),jt=Object(w.a)(f.ref,Pt);""===$&&(vt=!1);var Rt=!vt&&!g,Lt=Object(r.a)({"aria-describedby":vt?mt:null,title:Rt&&"string"===typeof $?$:null},Q,{},f.props,{className:Object(c.a)(Q.className,f.props.className),ref:jt}),Dt={};T||(Lt.onTouchStart=function(t){at.current=!0;var e=f.props;e.onTouchStart&&e.onTouchStart(t),clearTimeout(ct.current),clearTimeout(st.current),clearTimeout(lt.current),t.persist(),lt.current=setTimeout((function(){gt()(t)}),R)},Lt.onTouchEnd=function(t){f.props.onTouchEnd&&f.props.onTouchEnd(t),
2clearTimeout(lt.current),clearTimeout(ct.current),t.persist(),ct.current=setTimeout((function(){Ot(t)}),z)}),g||(Lt.onMouseOver=gt(),Lt.onMouseLeave=At(),M&&(Dt.onMouseOver=gt(!1),Dt.onMouseLeave=At(!1))),m||(Lt.onFocus=_t(),Lt.onBlur=At(),M&&(Dt.onFocus=_t(!1),Dt.onBlur=At(!1)));var Mt=s.useMemo((function(){return Object(l.a)({popperOptions:{modifiers:{arrow:{enabled:Boolean(it),element:it}}}},K)}),[it,K]);return s.createElement(s.Fragment,null,s.cloneElement(f,Lt),s.createElement(k,Object(r.a)({className:Object(c.a)(h.popper,M&&h.popperInteractive,a&&h.popperArrow),placement:G,anchorEl:et,open:!!et&&vt,id:Lt["aria-describedby"],transition:!0},Dt,Mt),(function(t){var e=t.placement,n=t.TransitionProps;return s.createElement(Y,Object(r.a)({timeout:Z.transitions.duration.shorter},n,J),s.createElement("div",{className:Object(c.a)(h.tooltip,h["tooltipPlacement".concat(Object(p.a)(e.split("-")[0]))],at.current&&h.touch,a&&h.tooltipArrow)},$,a?s.createElement("span",{className:h.arrow,ref:ot}):null))})))}));e.a=Object(h.a)((function(t){return{popper:{zIndex:t.zIndex.tooltip,pointerEvents:"none",flip:!1},popperInteractive:{pointerEvents:"auto"},popperArrow:{'&[x-placement*="bottom"] $arrow':{flip:!1,top:0,left:0,marginTop:"-0.95em",marginLeft:4,marginRight:4,width:"2em",height:"1em","&::before":{flip:!1,borderWidth:"0 1em 1em 1em",borderColor:"transparent transparent currentcolor transparent"}},'&[x-placement*="top"] $arrow':{flip:!1,bottom:0,left:0,marginBottom:"-0.95em",marginLeft:4,marginRight:4,width:"2em",height:"1em","&::before":{flip:!1,borderWidth:"1em 1em 0 1em",borderColor:"currentcolor transparent transparent transparent"}},'&[x-placement*="right"] $arrow':{flip:!1,left:0,marginLeft:"-0.95em",marginTop:4,marginBottom:4,height:"2em",width:"1em","&::before":{flip:!1,borderWidth:"1em 1em 1em 0",borderColor:"transparent currentcolor transparent transparent"}},'&[x-placement*="left"] $arrow':{flip:!1,right:0,marginRight:"-0.95em",marginTop:4,marginBottom:4,height:"2em",width:"1em","&::before":{flip:!1,borderWidth:"1em 0 1em 1em",borderColor:"transparent transparent transparent currentcolor"}}},tooltip:{backgroundColor:Object(f.b)(t.palette.grey[700],.9),borderRadius:t.shape.borderRadius,color:t.palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(10),lineHeight:"".concat(O(1.4),"em"),maxWidth:300,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium},tooltipArrow:{position:"relative",margin:"0"},arrow:{position:"absolute",fontSize:6,color:Object(f.b)(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:0,height:0,borderStyle:"solid"}},touch:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:"".concat(O(16/14),"em"),fontWeight:t.typography.fontWeightRegular},tooltipPlacementLeft:Object(a.a)({transformOrigin:"right center",margin:"0 24px "},t.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementRight:Object(a.a)({transformOrigin:"left center",margin:"0 24px"},t.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementTop:Object(a.a)({transformOrigin:"center bottom",margin:"24px 0"},t.breakpoints.up("sm"),{margin:"14px 0"}),tooltipPlacementBottom:Object(a.a)({transformOrigin:"center top",margin:"24px 0"},t.breakpoints.up("sm"),{margin:"14px 0"})}}),{name:"MuiTooltip"})(C)},function(t,e,n){"use strict";n.d(e,"a",(function(){return S})),n.d(e,"b",(function(){return N})),n.d(e,"c",(function(){return E})),n.d(e,"d",(function(){return D}));var r=n(25),i=n(0),o=n.n(i),a=n(6),s=n.n(a),u=n(36),c=n(88),l=n.n(c),f=n(127),h=n.n(f);function p(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 d=o.a.createContext||function(t,e){var n,r,o="__create-react-context-"+h()()+"__",a=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).emitter=p(e.props.value),e}l()(n,t);var r=n.prototype;return r.getChildContext=function(){var t;return(t={})[o]=this.emitter,t},r.componentWillReceiveProps=function(t){if(this.props.value!==t.value){var n,r=this.props.value,i=t.value;((o=r)===(a=i)?0!==o||1/o===1/a:o!==o&&a!==a)?n=0:(n="function"===typeof e?e(r,i):1073741823,0!==(n|=0)&&this.emitter.set(t.value,n))}var o,a},r.render=function(){return this.props.children},n}(i.Component);a.childContextTypes=((n={})[o]=s.a.object.isRequired,n);var u=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).state={value:t.getValue()},t.onUpdate=function(e,n){0!==((0|t.observedBits)&n)&&t.setState({value:t.getValue()})},t}l()(n,e);var r=n.prototype;return r.componentWillReceiveProps=function(t){var e=t.observedBits;this.observedBits=void 0===e||null===e?1073741823:e},r.componentDidMount=function(){this.context[o]&&this.context[o].on(this.onUpdate);var t=this.props.observedBits;this.observedBits=void 0===t||null===t?1073741823:t},r.componentWillUnmount=function(){this.context[o]&&this.context[o].off(this.onUpdate)},r.getValue=function(){return this.context[o]?this.context[o].get():t},r.render=function(){return(t=this.props.children,Array.isArray(t)?t[0]:t)(this.state.value);var t},n}(i.Component);return u.contextTypes=((r={})[o]=s.a.object,r),{Provider:a,Consumer:u}},v=n(35),m=n(1),y=n(89),g=n.n(y),b=(n(46),n(30)),w=(n(66),function(t){var e=d();return e.displayName=t,e}("Router")),E=function(t){function e(e){var n;return(n=t.call(this,e)||this).state={location:e.history.location},n._isMounted=!1,n._pendingLocation=null,e.staticContext||(n.unlisten=e.history.listen((function(t){n._isMounted?n.setState({location:t}):n._pendingLocation=t}))),n}Object(r.a)(e,t),e.computeRootMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}};var n=e.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pe
2ndingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return o.a.createElement(w.Provider,{children:this.props.children||null,value:{history:this.props.history,location:this.state.location,match:e.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}})},e}(o.a.Component);o.a.Component;var T=function(t){function e(){return t.apply(this,arguments)||this}Object(r.a)(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 x={},k=0;function I(t,e){return void 0===t&&(t="/"),void 0===e&&(e={}),"/"===t?t:function(t){if(x[t])return x[t];var e=g.a.compile(t);return k<1e4&&(x[t]=e,k++),e}(t)(e,{pretty:!0})}function S(t){var e=t.computedMatch,n=t.to,r=t.push,i=void 0!==r&&r;return o.a.createElement(w.Consumer,null,(function(t){t||Object(v.a)(!1);var r=t.history,a=t.staticContext,s=i?r.push:r.replace,c=Object(u.b)(e?"string"===typeof n?I(n,e.params):Object(m.a)({},n,{pathname:I(n.pathname,e.params)}):n);return a?(s(c),null):o.a.createElement(T,{onMount:function(){s(c)},onUpdate:function(t,e){var n=Object(u.b)(e.to);Object(u.e)(n,Object(m.a)({},c,{key:n.key}))||s(c)},to:n})}))}var _={},O=0;function A(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=_[n]||(_[n]={});if(r[t])return r[t];var i=[],o={regexp:g()(t,i,e),keys:i};return O<1e4&&(r[t]=o,O++),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],f=u.slice(1),h=t===l;return o&&!h?null:{path:n,url:"/"===n&&""===l?"/":l,isExact:h,params:a.reduce((function(t,e,n){return t[e.name]=f[n],t}),{})}}),null)}var N=function(t){function e(){return t.apply(this,arguments)||this}return Object(r.a)(e,t),e.prototype.render=function(){var t=this;return o.a.createElement(w.Consumer,null,(function(e){e||Object(v.a)(!1);var n=t.props.location||e.location,r=t.props.computedMatch?t.props.computedMatch:t.props.path?A(n.pathname,t.props):e.match,i=Object(m.a)({},e,{location:n,match:r}),a=t.props,s=a.children,u=a.component,c=a.render;return Array.isArray(s)&&0===s.length&&(s=null),o.a.createElement(w.Provider,{value:i},i.match?s?"function"===typeof s?s(i):s:u?o.a.createElement(u,i):c?c(i):null:"function"===typeof s?s(i):null)}))},e}(o.a.Component);function C(t){return"/"===t.charAt(0)?t:"/"+t}function P(t,e){if(!t)return e;var n=C(t);return 0!==e.pathname.indexOf(n)?e:Object(m.a)({},e,{pathname:e.pathname.substr(n.length)})}function j(t){return"string"===typeof t?t:Object(u.d)(t)}function R(t){return function(){Object(v.a)(!1)}}function L(){}o.a.Component;var D=function(t){function e(){return t.apply(this,arguments)||this}return Object(r.a)(e,t),e.prototype.render=function(){var t=this;return o.a.createElement(w.Consumer,null,(function(e){e||Object(v.a)(!1);var n,r,i=t.props.location||e.location;return o.a.Children.forEach(t.props.children,(function(t){if(null==r&&o.a.isValidElement(t)){n=t;var a=t.props.path||t.props.from;r=a?A(i.pathname,Object(m.a)({},t.props,{path:a})):e.match}})),r?o.a.cloneElement(n,{location:i,computedMatch:r}):null}))},e}(o.a.Component);o.a.useContext}]]); 3//# sourceMappingURL=2.d73c0c17.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.