/*! For license information please see LICENSES */ (window.webpackJsonp=window.webpackJsonp||[]).push([[24],[function(t,e,n){"use strict";n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return c})),n.d(e,"f",(function(){return l})),n.d(e,"b",(function(){return f})),n.d(e,"d",(function(){return h})),n.d(e,"i",(function(){return d})),n.d(e,"e",(function(){return v})),n.d(e,"g",(function(){return m})),n.d(e,"h",(function(){return y}));var r=function(t,b){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])})(t,b)};function o(t,b){function e(){this.constructor=t}r(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)}var c=function(){return(c=Object.assign||function(t){for(var s,i=1,e=arguments.length;i0&&r[r.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),c=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)c.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return c}function m(){for(var t=[],i=0;i=0&&_.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 k=O.initializeApp;O.initializeApp=function(){for(var t=[],e=0;e"}return t.event_id||""}function d(t){var e=c();if(!("console"in e))return t();var n=e.console,r={};["debug","info","warn","error","log","assert"].forEach((function(t){t in e.console&&n[t].__sentry_original__&&(r[t]=n[t],n[t]=n[t].__sentry_original__)}));var o=t();return Object.keys(r).forEach((function(t){n[t]=r[t]})),o}function v(t,e,n){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].value=t.exception.values[0].value||e||"",t.exception.values[0].type=t.exception.values[0].type||n||"Error"}function m(t,e){void 0===e&&(e={});try{t.exception.values[0].mechanism=t.exception.values[0].mechanism||{},Object.keys(e).forEach((function(n){t.exception.values[0].mechanism[n]=e[n]}))}catch(t){}}function y(){try{return document.location.href}catch(t){return""}}function w(t,header){if(!header)return 6e4;var e=parseInt(""+header,10);if(!isNaN(e))return 1e3*e;var n=Date.parse(""+header);return isNaN(n)?6e4:n-t}}).call(this,n(28))},,function(t,e,n){"use strict";n.r(e),n.d(e,"createDecorator",(function(){return m})),n.d(e,"mixins",(function(){return y}));var r=n(2);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){return function(t){if(Array.isArray(t)){for(var i=0,e=new Array(t.length);i1&&void 0!==arguments[1]?arguments[1]:{};e.name=e.name||t._componentTag||t.name;var n=t.prototype;Object.getOwnPropertyNames(n).forEach((function(t){if("constructor"!==t)if(_.indexOf(t)>-1)e[t]=n[t];else{var r=Object.getOwnPropertyDescriptor(n,t);void 0!==r.value?"function"==typeof r.value?(e.methods||(e.methods={}))[t]=r.value:(e.mixins||(e.mixins=[])).push({data:function(){return c({},t,r.value)}}):(r.get||r.set)&&((e.computed||(e.computed={}))[t]={get:r.get,set:r.set})}})),(e.mixins||(e.mixins=[])).push({data:function(){return w(this,t)}});var o=t.__decorators__;o&&(o.forEach((function(t){return t(e)})),delete t.__decorators__);var l=Object.getPrototypeOf(t.prototype),d=l instanceof r.default?l.constructor:r.default,v=d.extend(e);return I(v,t,d),f()&&h(v,t),v}var O={prototype:!0,arguments:!0,callee:!0,caller:!0};function I(t,e,n){Object.getOwnPropertyNames(e).forEach((function(r){if(!O[r]){var c=Object.getOwnPropertyDescriptor(t,r);if(!c||c.configurable){var l,f,h=Object.getOwnPropertyDescriptor(e,r);if(!v){if("cid"===r)return;var d=Object.getOwnPropertyDescriptor(n,r);if(l=h.value,f=o(l),null!=l&&("object"===f||"function"===f)&&d&&d.value===h.value)return}0,Object.defineProperty(t,r,h)}}}))}function T(t){return"function"==typeof t?E(t):function(e){return E(e,t)}}T.registerHooks=function(t){_.push.apply(_,l(t))},e.default=T},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return T})),n.d(e,"c",(function(){return j})),n.d(e,"d",(function(){return x})),n.d(e,"e",(function(){return c})),n.d(e,"f",(function(){return l})),n.d(e,"g",(function(){return h})),n.d(e,"h",(function(){return m})),n.d(e,"i",(function(){return y})),n.d(e,"j",(function(){return _})),n.d(e,"k",(function(){return E})),n.d(e,"l",(function(){return d})),n.d(e,"m",(function(){return v})),n.d(e,"n",(function(){return w})),n.d(e,"o",(function(){return O}));var r=n(0),o=function(t){for(var e=[],p=0,i=0;i>6|192,e[p++]=63&n|128):55296==(64512&n)&&i+1>18|240,e[p++]=n>>12&63|128,e[p++]=n>>6&63|128,e[p++]=63&n|128):(e[p++]=n>>12|224,e[p++]=n>>6&63|128,e[p++]=63&n|128)}return e};function c(t){return l(void 0,t)}function l(t,source){if(!(source instanceof Object))return source;switch(source.constructor){case Date:return new Date(source.getTime());case Object:void 0===t&&(t={});break;case Array:t=[];break;default:return source}for(var e in source)source.hasOwnProperty(e)&&"__proto__"!==e&&(t[e]=l(t[e],source[e]));return t}var f=function(){function t(){var t=this;this.reject=function(){},this.resolve=function(){},this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n}))}return t.prototype.wrapCallback=function(t){var e=this;return function(n,r){n?e.reject(n):e.resolve(r),"function"==typeof t&&(e.promise.catch((function(){})),1===t.length?t(n):t(n,r))}},t}();function h(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function d(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(h())}function v(){try{return"[object process]"===Object.prototype.toString.call(t.process)}catch(t){return!1}}function m(){return"object"==typeof self&&self.self===self}function y(){var t="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof t&&void 0!==t.id}function w(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function _(){return h().indexOf("Electron/")>=0}function E(){var t=h();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0}function O(){return h().indexOf("MSAppHost/")>=0}var I=function(t){function e(code,n,r){var o=t.call(this,n)||this;return o.code=code,o.customData=r,o.name="FirebaseError",Object.setPrototypeOf(o,e.prototype),Error.captureStackTrace&&Error.captureStackTrace(o,T.prototype.create),o}return Object(r.c)(e,t),e}(Error),T=function(){function t(t,e,n){this.service=t,this.serviceName=e,this.errors=n}return t.prototype.create=function(code){for(var data=[],t=1;t"}))}var S=/\{\$([^}]+)}/g;function j(t,e){return Object.prototype.hasOwnProperty.call(t,e)}!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 i=1;i>>31)}var o,c,a=this.chain_[0],b=this.chain_[1],l=this.chain_[2],f=this.chain_[3],h=this.chain_[4];for(i=0;i<80;i++){i<40?i<20?(o=f^b&(l^f),c=1518500249):(o=b^l^f,c=1859775393):i<60?(o=b&l|f&(b|l),c=2400959708):(o=b^l^f,c=3395469782);r=(a<<5|a>>>27)+o+h+c+n[i]&4294967295;h=f,f=l,l=4294967295&(b<<30|b>>>2),b=a,a=r}this.chain_[0]=this.chain_[0]+a&4294967295,this.chain_[1]=this.chain_[1]+b&4294967295,this.chain_[2]=this.chain_[2]+l&4294967295,this.chain_[3]=this.chain_[3]+f&4294967295,this.chain_[4]=this.chain_[4]+h&4294967295},t.prototype.update=function(t,e){if(null!=t){void 0===e&&(e=t.length);for(var n=e-this.blockSize,r=0,o=this.buf_,c=this.inbuf_;r=56;i--)this.buf_[i]=255&e,e/=256;this.compress_(this.buf_);var n=0;for(i=0;i<5;i++)for(var r=24;r>=0;r-=8)t[n]=this.chain_[i]>>r&255,++n;return t}}();function x(t,e){var n=new A(t,e);return n.subscribe.bind(n)}var A=function(){function t(t,e){var n=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=e,this.task.then((function(){t(n)})).catch((function(t){n.error(t)}))}return t.prototype.next=function(t){this.forEachObserver((function(e){e.next(t)}))},t.prototype.error=function(t){this.forEachObserver((function(e){e.error(t)})),this.close(t)},t.prototype.complete=function(){this.forEachObserver((function(t){t.complete()})),this.close()},t.prototype.subscribe=function(t,e,n){var r,o=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"}try{source.currentTarget=Object(c.c)(r.currentTarget)?Object(o.a)(r.currentTarget):Object.prototype.toString.call(r.currentTarget)}catch(t){source.currentTarget=""}for(var i in"undefined"!=typeof CustomEvent&&Object(c.g)(t,CustomEvent)&&(source.detail=r.detail),r)Object.prototype.hasOwnProperty.call(r,i)&&(source[i]=r);return source}return t}function y(t){return function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(t))}function w(object,t,e){void 0===t&&(t=3),void 0===e&&(e=102400);var n=O(object,t);return y(n)>e?w(object,t-1,e):n}function _(e,n){return"domain"===n&&e&&"object"==typeof e&&e._events?"[Domain]":"domainEmitter"===n?"[DomainEmitter]":void 0!==t&&e===t?"[Global]":"undefined"!=typeof window&&e===window?"[Window]":"undefined"!=typeof document&&e===document?"[Document]":Object(c.l)(e)?"[SyntheticEvent]":"number"==typeof e&&e!=e?"[NaN]":void 0===e?"[undefined]":"function"==typeof e?"[Function: "+Object(f.a)(e)+"]":"symbol"==typeof e?"["+String(e)+"]":"bigint"==typeof e?"[BigInt: "+String(e)+"]":e}function E(t,e,n,r){if(void 0===n&&(n=1/0),void 0===r&&(r=new l.a),0===n)return function(t){var e=Object.prototype.toString.call(t);if("string"==typeof t)return t;if("[object Object]"===e)return"[Object]";if("[object Array]"===e)return"[Array]";var n=_(t);return Object(c.i)(n)?n:e}(e);if(null!=e&&"function"==typeof e.toJSON)return e.toJSON();var o=_(e,t);if(Object(c.i)(o))return o;var source=m(e),f=Array.isArray(e)?[]:{};if(r.memoize(e))return"[Circular ~]";for(var h in source)Object.prototype.hasOwnProperty.call(source,h)&&(f[h]=E(h,source[h],n-1,r));return r.unmemoize(e),f}function O(input,t){try{return JSON.parse(JSON.stringify(input,(function(e,n){return E(e,n,t)})))}catch(t){return"**non-serializable**"}}function I(t,e){void 0===e&&(e=40);var n=Object.keys(m(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return Object(h.d)(n[0],e);for(var r=n.length;r>0;r--){var o=n.slice(0,r).join(", ");if(!(o.length>e))return r===n.length?o:Object(h.d)(o,e)}return""}function T(t){var e,n;if(Object(c.h)(t)){var o=t,l={};try{for(var f=Object(r.i)(Object.keys(o)),h=f.next();!h.done;h=f.next()){var d=h.value;void 0!==o[d]&&(l[d]=T(o[d]))}}catch(t){e={error:t}}finally{try{h&&!h.done&&(n=f.return)&&n.call(f)}finally{if(e)throw e.error}}return l}return Array.isArray(t)?t.map(T):t}}).call(this,n(28))},,function(t,e,n){"use strict";function r(t,e,n,r,o,c,l){try{var f=t[c](l),h=f.value}catch(t){return void n(t)}f.done?e(h):Promise.resolve(h).then(r,o)}function o(t){return function(){var e=this,n=arguments;return new Promise((function(o,c){var l=t.apply(e,n);function f(t){r(l,o,c,f,h,"next",t)}function h(t){r(l,o,c,f,h,"throw",t)}f(void 0)}))}}n.d(e,"a",(function(){return o}))},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return gc})),n.d(e,"b",(function(){return bc})),n.d(e,"c",(function(){return F})),n.d(e,"d",(function(){return fc})),n.d(e,"e",(function(){return pc})),n.d(e,"f",(function(){return hc})),n.d(e,"g",(function(){return vc})),n.d(e,"h",(function(){return ku})),n.d(e,"i",(function(){return Tu})),n.d(e,"j",(function(){return Ls})),n.d(e,"k",(function(){return Oc})),n.d(e,"l",(function(){return Nc})),n.d(e,"m",(function(){return Tc})),n.d(e,"n",(function(){return jc})),n.d(e,"o",(function(){return mc})),n.d(e,"p",(function(){return Ac})),n.d(e,"q",(function(){return Sc})),n.d(e,"r",(function(){return Ic}));var r=n(26),o=n(8),c=n(19),l=n(0),f=function(t,e,n,r,i,o){this.t=t,this.persistenceKey=e,this.host=n,this.ssl=r,this.forceLongPolling=i,this.i=o},h=function(){function t(t,e){this.projectId=t,this.database=e||"(default)"}return Object.defineProperty(t.prototype,"o",{get:function(){return"(default)"===this.database},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(e){return e instanceof t&&e.projectId===this.projectId&&e.database===this.database},t}(),d=new r.b("@firebase/firestore");function v(){return d.logLevel}function m(t){for(var e=[],n=1;ne?1:0}function j(t,e,n){return t.length===e.length&&t.every((function(t,r){return n(t,e[r])}))}function x(t){return t+"\0"}var A=function(){function t(t){this.h=t}return t.fromBase64String=function(e){return new t(atob(e))},t.fromUint8Array=function(e){return new t(function(t){for(var e="",n=0;n=1e9)throw new q(N.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(t<-62135596800)throw new q(N.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t);if(t>=253402300800)throw new q(N.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t)}return t.now=function(){return t.fromMillis(Date.now())},t.fromDate=function(e){return t.fromMillis(e.getTime())},t.fromMillis=function(e){var n=Math.floor(e/1e3);return new t(n,1e6*(e-1e3*n))},t.prototype.toDate=function(){return new Date(this.toMillis())},t.prototype.toMillis=function(){return 1e3*this.seconds+this.nanoseconds/1e6},t.prototype.U=function(t){return this.seconds===t.seconds?S(this.nanoseconds,t.nanoseconds):S(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.toJSON=function(){return{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")},t}(),B=function(){function t(t){this.timestamp=t}return t.K=function(e){return new t(e)},t.min=function(){return new t(new F(0,0))},t.prototype._=function(t){return this.timestamp.U(t.timestamp)},t.prototype.isEqual=function(t){return this.timestamp.isEqual(t.timestamp)},t.prototype.W=function(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3},t.prototype.toString=function(){return"SnapshotVersion("+this.timestamp.toString()+")"},t.prototype.j=function(){return this.timestamp},t}(),z=function(){function t(t,e,n){void 0===e?e=0:e>t.length&&E(),void 0===n?n=t.length-e:n>t.length-e&&E(),this.segments=t,this.offset=e,this.G=n}return Object.defineProperty(t.prototype,"length",{get:function(){return this.G},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(e){return 0===t.H(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.J(n)},t.prototype.limit=function(){return this.offset+this.length},t.prototype.Y=function(t){return t=void 0===t?1:t,this.J(this.segments,this.offset+t,this.length-t)},t.prototype.X=function(){return this.J(this.segments,this.offset,this.length-1)},t.prototype.Z=function(){return this.segments[this.offset]},t.prototype.tt=function(){return this.get(this.length-1)},t.prototype.get=function(t){return this.segments[this.offset+t]},t.prototype.et=function(){return 0===this.length},t.prototype.nt=function(t){if(t.lengtho)return 1}return t.lengthe.length?1:0},t}(),H=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l.c)(e,t),e.prototype.J=function(t,n,r){return new e(t,n,r)},e.prototype.rt=function(){return this.it().join("/")},e.prototype.toString=function(){return this.rt()},e.ot=function(){for(var t=[],n=0;n=0)throw new q(N.INVALID_ARGUMENT,"Invalid segment ("+u+"). Paths must not contain // in them.");r.push.apply(r,u.split("/").filter((function(t){return t.length>0})))}return new e(r)},e.ct=function(){return new e([])},e}(z),G=/^[_a-zA-Z][_a-zA-Z0-9]*$/,K=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l.c)(e,t),e.prototype.J=function(t,n,r){return new e(t,n,r)},e.at=function(t){return G.test(t)},e.prototype.rt=function(){return this.it().map((function(t){return t=t.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),e.at(t)||(t="`"+t+"`"),t})).join(".")},e.prototype.toString=function(){return this.rt()},e.prototype.ut=function(){return 1===this.length&&"__name__"===this.get(0)},e.ht=function(){return new e(["__name__"])},e.lt=function(t){for(var n=[],r="",i=0,o=function(){if(0===r.length)throw new q(N.INVALID_ARGUMENT,"Invalid field path ("+t+"). Paths must not be empty, begin with '.', end with '.', or contain '..'");n.push(r),r=""},u=!1;i=2&&this.path.get(this.path.length-2)===t},t.prototype.isEqual=function(t){return null!==t&&0===H.H(this.path,t.path)},t.prototype.toString=function(){return this.path.toString()},t.H=function(t,e){return H.H(t.path,e.path)},t.wt=function(t){return t.length%2==0},t.Et=function(e){return new t(new H(e.slice()))},t}();function Y(t){var e=0;for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e++;return e}function X(t,e){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(n,t[n])}function rt(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}var $=function(){function t(t){this.fields=t,t.sort(K.H)}return t.prototype.Tt=function(t){for(var e=0,n=this.fields;e=Number.MIN_SAFE_INTEGER}function st(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?et(t)?4:10:E()}function ut(t,e){var n=st(t);if(n!==st(e))return!1;switch(n){case 0:return!0;case 1:return t.booleanValue===e.booleanValue;case 4:return it(t).isEqual(it(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=J(t.timestampValue),r=J(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 tt(t.bytesValue).isEqual(tt(e.bytesValue))}(t,e);case 7:return t.referenceValue===e.referenceValue;case 8:return function(t,e){return Z(t.geoPointValue.latitude)===Z(e.geoPointValue.latitude)&&Z(t.geoPointValue.longitude)===Z(e.geoPointValue.longitude)}(t,e);case 2:return function(t,e){if("integerValue"in t&&"integerValue"in e)return Z(t.integerValue)===Z(e.integerValue);if("doubleValue"in t&&"doubleValue"in e){var n=Z(t.doubleValue),r=Z(e.doubleValue);return n===r?at(n)===at(r):isNaN(n)&&isNaN(r)}return!1}(t,e);case 9:return j(t.arrayValue.values||[],e.arrayValue.values||[],ut);case 10:return function(t,e){var n=t.mapValue.fields||{},r=e.mapValue.fields||{};if(Y(n)!==Y(r))return!1;for(var i in n)if(n.hasOwnProperty(i)&&(void 0===r[i]||!ut(n[i],r[i])))return!1;return!0}(t,e);default:return E()}}function ct(t,e){return void 0!==(t.values||[]).find((function(t){return ut(t,e)}))}function lt(t,e){var n=st(t),r=st(e);if(n!==r)return S(n,r);switch(n){case 0:return 0;case 1:return S(t.booleanValue,e.booleanValue);case 2:return function(t,e){var n=Z(t.integerValue||t.doubleValue),r=Z(e.integerValue||e.doubleValue);return nr?1:n===r?0:isNaN(n)?isNaN(r)?0:-1:1}(t,e);case 3:return ft(t.timestampValue,e.timestampValue);case 4:return ft(it(t),it(e));case 5:return S(t.stringValue,e.stringValue);case 6:return function(t,e){var n=tt(t),r=tt(e);return n._(r)}(t.bytesValue,e.bytesValue);case 7:return function(t,e){for(var n=t.split("/"),r=e.split("/"),i=0;i":return t>0;case">=":return t>=0;default:return E()}},e.prototype.Ct=function(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0},e}((function(){})),Dt=function(t){function e(e,n,r){var i=this;return(i=t.call(this,e,n,r)||this).key=W.ft(r.referenceValue),i}return Object(l.c)(e,t),e.prototype.matches=function(t){var e=W.H(t.key,this.key);return this.Dt(e)},e}(Pt),Rt=function(t){function e(e,n){var r=this;return(r=t.call(this,e,"in",n)||this).keys=Mt("in",n),r}return Object(l.c)(e,t),e.prototype.matches=function(t){return this.keys.some((function(e){return e.isEqual(t.key)}))},e}(Pt),Lt=function(t){function e(e,n){var r=this;return(r=t.call(this,e,"not-in",n)||this).keys=Mt("not-in",n),r}return Object(l.c)(e,t),e.prototype.matches=function(t){return!this.keys.some((function(e){return e.isEqual(t.key)}))},e}(Pt);function Mt(t,e){var n;return((null===(n=e.arrayValue)||void 0===n?void 0:n.values)||[]).map((function(t){return W.ft(t.referenceValue)}))}var Ut=function(t){function e(e,n){return t.call(this,e,"array-contains",n)||this}return Object(l.c)(e,t),e.prototype.matches=function(t){var e=t.field(this.field);return gt(e)&&ct(e.arrayValue,this.value)},e}(Pt),Vt=function(t){function e(e,n){return t.call(this,e,"in",n)||this}return Object(l.c)(e,t),e.prototype.matches=function(t){var e=t.field(this.field);return null!==e&&ct(this.value.arrayValue,e)},e}(Pt),Ft=function(t){function e(e,n){return t.call(this,e,"not-in",n)||this}return Object(l.c)(e,t),e.prototype.matches=function(t){if(ct(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;var e=t.field(this.field);return null!==e&&!ct(this.value.arrayValue,e)},e}(Pt),qt=function(t){function e(e,n){return t.call(this,e,"array-contains-any",n)||this}return Object(l.c)(e,t),e.prototype.matches=function(t){var e=this,n=t.field(this.field);return!(!gt(n)||!n.arrayValue.values)&&n.arrayValue.values.some((function(t){return ct(e.value.arrayValue,t)}))},e}(Pt),Bt=function(t,e){this.position=t,this.before=e};function zt(t){return(t.before?"b":"a")+":"+t.position.map((function(t){return ht(t)})).join(",")}var Ht=function(t,e){void 0===e&&(e="asc"),this.field=t,this.dir=e};function Gt(t,e){return t.dir===e.dir&&t.field.isEqual(e.field)}function Kt(t,e,n){for(var r=0,i=0;i0?t.xt[0].field:null}function te(t){for(var e=0,n=t.filters;e0?e.xt[e.xt.length-1].dir:"asc";e.Nt.push(new Ht(K.ht(),a))}}}return e.Nt}function re(t){var e=I(t);if(!e.$t)if("F"===e.limitType)e.$t=xt(e.path,e.collectionGroup,ne(e),e.filters,e.limit,e.startAt,e.endAt);else{for(var n=[],r=0,i=ne(e);r0&&(e+=", orderBy: ["+t.orderBy.map((function(t){return function(t){return t.field.rt()+" ("+t.dir+")"}(t)})).join(", ")+"]"),t.startAt&&(e+=", startAt: "+zt(t.startAt)),t.endAt&&(e+=", endAt: "+zt(t.endAt)),"Target("+e+")"}(re(t))+"; limitType="+t.limitType+")"}function ue(t,e){return function(t,e){var n=e.key.path;return null!==t.collectionGroup?e.key.dt(t.collectionGroup)&&t.path.nt(n):W.wt(t.path)?t.path.isEqual(n):t.path.st(n)}(t,e)&&function(t,e){for(var n=0,r=t.xt;n0&&(e=e.right)}return null},t.prototype.indexOf=function(t){for(var e=0,n=this.root;!n.et();){var r=this.H(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.et=function(){return this.root.et()},Object.defineProperty(t.prototype,"size",{get:function(){return this.root.size},enumerable:!1,configurable:!0}),t.prototype.Jt=function(){return this.root.Jt()},t.prototype.Yt=function(){return this.root.Yt()},t.prototype.Xt=function(t){return this.root.Xt(t)},t.prototype.forEach=function(t){this.Xt((function(e,n){return t(e,n),!1}))},t.prototype.toString=function(){var t=[];return this.Xt((function(e,n){return t.push(e+":"+n),!1})),"{"+t.join(", ")+"}"},t.prototype.Zt=function(t){return this.root.Zt(t)},t.prototype.te=function(){return new Qe(this.root,null,this.H,!1)},t.prototype.ee=function(t){return new Qe(this.root,t,this.H,!1)},t.prototype.ne=function(){return new Qe(this.root,null,this.H,!0)},t.prototype.se=function(t){return new Qe(this.root,t,this.H,!0)},t}(),Qe=function(){function t(t,e,n,r){this.ie=r,this.re=[];for(var i=1;!t.et();)if(i=e?n(t.key,e):1,r&&(i*=-1),i<0)t=this.ie?t.left:t.right;else{if(0===i){this.re.push(t);break}this.re.push(t),t=this.ie?t.right:t.left}}return t.prototype.oe=function(){var t=this.re.pop(),e={key:t.key,value:t.value};if(this.ie)for(t=t.left;!t.et();)this.re.push(t),t=t.right;else for(t=t.right;!t.et();)this.re.push(t),t=t.left;return e},t.prototype.ce=function(){return this.re.length>0},t.prototype.ae=function(){if(0===this.re.length)return null;var t=this.re[this.re.length-1];return{key:t.key,value:t.value}},t}(),Je=function(){function t(e,n,r,i,o){this.key=e,this.value=n,this.color=null!=r?r:t.RED,this.left=null!=i?i:t.EMPTY,this.right=null!=o?o:t.EMPTY,this.size=this.left.size+1+this.right.size}return t.prototype.copy=function(e,n,r,i,o){return new t(null!=e?e:this.key,null!=n?n:this.value,null!=r?r:this.color,null!=i?i:this.left,null!=o?o:this.right)},t.prototype.et=function(){return!1},t.prototype.Xt=function(t){return this.left.Xt(t)||t(this.key,this.value)||this.right.Xt(t)},t.prototype.Zt=function(t){return this.right.Zt(t)||t(this.key,this.value)||this.left.Zt(t)},t.prototype.min=function(){return this.left.et()?this:this.left.min()},t.prototype.Jt=function(){return this.min().key},t.prototype.Yt=function(){return this.right.et()?this.key:this.right.Yt()},t.prototype.zt=function(t,e,n){var r=this,i=n(t,r.key);return(r=i<0?r.copy(null,null,null,r.left.zt(t,e,n),null):0===i?r.copy(null,e,null,null,null):r.copy(null,null,null,null,r.right.zt(t,e,n))).ue()},t.prototype.he=function(){if(this.left.et())return t.EMPTY;var e=this;return e.left.le()||e.left.left.le()||(e=e._e()),(e=e.copy(null,null,null,e.left.he(),null)).ue()},t.prototype.remove=function(e,n){var r,i=this;if(n(e,i.key)<0)i.left.et()||i.left.le()||i.left.left.le()||(i=i._e()),i=i.copy(null,null,null,i.left.remove(e,n),null);else{if(i.left.le()&&(i=i.fe()),i.right.et()||i.right.le()||i.right.left.le()||(i=i.de()),0===n(e,i.key)){if(i.right.et())return t.EMPTY;r=i.right.min(),i=i.copy(r.key,r.value,null,null,i.right.he())}i=i.copy(null,null,null,null,i.right.remove(e,n))}return i.ue()},t.prototype.le=function(){return this.color},t.prototype.ue=function(){var t=this;return t.right.le()&&!t.left.le()&&(t=t.we()),t.left.le()&&t.left.left.le()&&(t=t.fe()),t.left.le()&&t.right.le()&&(t=t.Ee()),t},t.prototype._e=function(){var t=this.Ee();return t.right.left.le()&&(t=(t=(t=t.copy(null,null,null,null,t.right.fe())).we()).Ee()),t},t.prototype.de=function(){var t=this.Ee();return t.left.left.le()&&(t=(t=t.fe()).Ee()),t},t.prototype.we=function(){var e=this.copy(null,null,t.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)},t.prototype.fe=function(){var e=this.copy(null,null,t.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)},t.prototype.Ee=function(){var t=this.left.copy(null,null,!this.left.color,null,null),e=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,t,e)},t.prototype.Te=function(){var t=this.Ie();return Math.pow(2,t)<=this.size+1},t.prototype.Ie=function(){if(this.le()&&this.left.le())throw E();if(this.right.le())throw E();var t=this.left.Ie();if(t!==this.right.Ie())throw E();return t+(this.le()?0:1)},t}();Je.EMPTY=null,Je.RED=!0,Je.Ht=!1,Je.EMPTY=new(function(){function t(){this.size=0}return Object.defineProperty(t.prototype,"key",{get:function(){throw E()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){throw E()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){throw E()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){throw E()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){throw E()},enumerable:!1,configurable:!0}),t.prototype.copy=function(t,e,n,r,i){return this},t.prototype.zt=function(t,e,n){return new Je(t,e)},t.prototype.remove=function(t,e){return this},t.prototype.et=function(){return!0},t.prototype.Xt=function(t){return!1},t.prototype.Zt=function(t){return!1},t.prototype.Jt=function(){return null},t.prototype.Yt=function(){return null},t.prototype.le=function(){return!1},t.prototype.Te=function(){return!0},t.prototype.Ie=function(){return 0},t}());var Ze=function(){function t(t){this.H=t,this.data=new $e(this.H)}return t.prototype.has=function(t){return null!==this.data.get(t)},t.prototype.first=function(){return this.data.Jt()},t.prototype.last=function(){return this.data.Yt()},Object.defineProperty(t.prototype,"size",{get:function(){return this.data.size},enumerable:!1,configurable:!0}),t.prototype.indexOf=function(t){return this.data.indexOf(t)},t.prototype.forEach=function(t){this.data.Xt((function(e,n){return t(e),!1}))},t.prototype.me=function(t,e){for(var n=this.data.ee(t[0]);n.ce();){var r=n.oe();if(this.H(r.key,t[1])>=0)return;e(r.key)}},t.prototype.Ae=function(t,e){var n;for(n=void 0!==e?this.data.ee(e):this.data.te();n.ce();)if(!t(n.oe().key))return},t.prototype.Re=function(t){var e=this.data.ee(t);return e.ce()?e.oe().key:null},t.prototype.te=function(){return new tn(this.data.te())},t.prototype.ee=function(t){return new tn(this.data.ee(t))},t.prototype.add=function(t){return this.copy(this.data.remove(t).zt(t,!0))},t.prototype.delete=function(t){return this.has(t)?this.copy(this.data.remove(t)):this},t.prototype.et=function(){return this.data.et()},t.prototype.Pe=function(t){var e=this;return e.size0&&(this.Ye=!0,this.He=t)},t.prototype.en=function(){var t=ln(),e=ln(),n=ln();return this.ze.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:E()}})),new gn(this.He,this.Je,t,e,n)},t.prototype.nn=function(){this.Ye=!1,this.ze=In()},t.prototype.sn=function(t,e){this.Ye=!0,this.ze=this.ze.zt(t,e)},t.prototype.rn=function(t){this.Ye=!0,this.ze=this.ze.remove(t)},t.prototype.on=function(){this.Ge+=1},t.prototype.cn=function(){this.Ge-=1},t.prototype.an=function(){this.Ye=!0,this.Je=!0},t}(),En=function(){function t(t){this.un=t,this.hn=new Map,this.ln=nn(),this._n=On(),this.fn=new Ze(S)}return t.prototype.dn=function(t){for(var e=0,n=t.Ke;e0?t.targetIds.forEach(e):this.hn.forEach((function(t,r){n.An(r)&&e(r)}))},t.prototype.Pn=function(t){var e=t.targetId,n=t.je.count,r=this.yn(e);if(r){var i=r.target;if(Ct(i))if(0===n){var o=new W(i.path);this.En(e,o,new kt(o,B.min()))}else O(1===n);else this.gn(e)!==n&&(this.Rn(e),this.fn=this.fn.add(e))}},t.prototype.Vn=function(t){var e=this,n=new Map;this.hn.forEach((function(r,i){var o=e.yn(i);if(o){if(r.Be&&Ct(o.target)){var u=new W(o.target.path);null!==e.ln.get(u)||e.pn(i,u)||e.En(i,u,new kt(u,t))}r.Ze&&(n.set(i,r.en()),r.nn())}}));var r=ln();this._n.forEach((function(t,n){var i=!0;n.Ae((function(t){var n=e.yn(t);return!n||2===n.Ft||(i=!1,!1)})),i&&(r=r.add(t))}));var i=new mn(t,n,this.fn,this.ln,r);return this.ln=nn(),this._n=On(),this.fn=new Ze(S),i},t.prototype.wn=function(t,e){if(this.An(t)){var n=this.pn(t,e.key)?2:0;this.mn(t).sn(e.key,n),this.ln=this.ln.zt(e.key,e),this._n=this._n.zt(e.key,this.bn(e.key).add(t))}},t.prototype.En=function(t,e,n){if(this.An(t)){var r=this.mn(t);this.pn(t,e)?r.sn(e,1):r.rn(e),this._n=this._n.zt(e,this.bn(e).delete(t)),n&&(this.ln=this.ln.zt(e,n))}},t.prototype.removeTarget=function(t){this.hn.delete(t)},t.prototype.gn=function(t){var e=this.mn(t).en();return this.un.vn(t).size+e.qe.size-e.Qe.size},t.prototype.on=function(t){this.mn(t).on()},t.prototype.mn=function(t){var e=this.hn.get(t);return e||(e=new _n,this.hn.set(t,e)),e},t.prototype.bn=function(t){var e=this._n.get(t);return e||(e=new Ze(S),this._n=this._n.zt(t,e)),e},t.prototype.An=function(t){var e=null!==this.yn(t);return e||m("WatchChangeAggregator","Detected inactive target",t),e},t.prototype.yn=function(t){var e=this.hn.get(t);return e&&e.Xe?null:this.un.Sn(t)},t.prototype.Rn=function(t){var e=this;this.hn.set(t,new _n),this.un.vn(t).forEach((function(n){e.En(t,n,null)}))},t.prototype.pn=function(t,e){return this.un.vn(t).has(e)},t}();function On(){return new $e(W.H)}function In(){return new $e(W.H)}var Tn={asc:"ASCENDING",desc:"DESCENDING"},kn={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},Sn=function(t,e){this.t=t,this.Bt=e};function jn(t,e){return t.Bt?new Date(1e3*e.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")+"."+("000000000"+e.nanoseconds).slice(-9)+"Z":{seconds:""+e.seconds,nanos:e.nanoseconds}}function xn(t,e){return t.Bt?e.toBase64():e.toUint8Array()}function An(t,e){return jn(t,e.j())}function Nn(t){return O(!!t),B.K(function(t){var e=J(t);return new F(e.seconds,e.nanos)}(t))}function Cn(t,e){return function(t){return new H(["projects",t.projectId,"databases",t.database])}(t).child("documents").child(e).rt()}function Pn(t){var e=H.ot(t);return O(hr(e)),e}function Dn(t,e){return Cn(t.t,e.path)}function Rn(t,e){var n=Pn(e);if(n.get(1)!==t.t.projectId)throw new q(N.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+n.get(1)+" vs "+t.t.projectId);if(n.get(3)!==t.t.database)throw new q(N.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+n.get(3)+" vs "+t.t.database);return new W(Vn(n))}function Ln(t,e){return Cn(t.t,e)}function Mn(t){var e=Pn(t);return 4===e.length?H.ct():Vn(e)}function Un(t){return new H(["projects",t.t.projectId,"databases",t.t.database]).rt()}function Vn(t){return O(t.length>4&&"documents"===t.get(4)),t.Y(5)}function Fn(t,e,n){return{name:Dn(t,e),fields:n.proto.mapValue.fields}}function qn(t,e,n){var r=Rn(t,e.name),i=Nn(e.updateTime),o=new _t({mapValue:{fields:e.fields}});return new Tt(r,i,o,{hasCommittedMutations:!!n})}function Bn(t,e){var n;if(e instanceof Me)n={update:Fn(t,e.key,e.value)};else if(e instanceof Ge)n={delete:Dn(t,e.key)};else if(e instanceof Ue)n={update:Fn(t,e.key,e.data),updateMask:nr(e.Gt)};else{if(!(e instanceof Ke))return E();n={verify:Dn(t,e.key)}}return e.fieldTransforms.length>0&&(n.updateTransforms=e.fieldTransforms.map((function(t){return function(t,e){var n=e.transform;if(n instanceof be)return{fieldPath:e.field.rt(),setToServerValue:"REQUEST_TIME"};if(n instanceof we)return{fieldPath:e.field.rt(),appendMissingElements:{values:n.elements}};if(n instanceof Ee)return{fieldPath:e.field.rt(),removeAllFromArray:{values:n.elements}};if(n instanceof Ie)return{fieldPath:e.field.rt(),increment:n.Ut};throw E()}(0,t)}))),e.jt.Wt||(n.currentDocument=function(t,e){return void 0!==e.updateTime?{updateTime:An(t,e.updateTime)}:void 0!==e.exists?{exists:e.exists}:E()}(t,e.jt)),n}function zn(t,e){var n=e.currentDocument?function(t){return void 0!==t.updateTime?xe.updateTime(Nn(t.updateTime)):void 0!==t.exists?xe.exists(t.exists):xe.Kt()}(e.currentDocument):xe.Kt(),r=e.updateTransforms?e.updateTransforms.map((function(e){return function(t,e){var n=null;if("setToServerValue"in e)O("REQUEST_TIME"===e.setToServerValue),n=new be;else if("appendMissingElements"in e){var r=e.appendMissingElements.values||[];n=new we(r)}else if("removeAllFromArray"in e){var i=e.removeAllFromArray.values||[];n=new Ee(i)}else"increment"in e?n=new Ie(t,e.increment):E();var o=K.lt(e.fieldPath);return new Se(o,n)}(t,e)})):[];if(e.update){e.update.name;var i=Rn(t,e.update.name),o=new _t({mapValue:{fields:e.update.fields}});if(e.updateMask){var u=function(t){var e=t.fieldPaths||[];return new $(e.map((function(t){return K.lt(t)})))}(e.updateMask);return new Ue(i,o,u,n,r)}return new Me(i,o,n,r)}if(e.delete){var s=Rn(t,e.delete);return new Ge(s,n)}if(e.verify){var a=Rn(t,e.verify);return new Ke(a,n)}return E()}function Hn(t,e){return{documents:[Ln(t,e.path)]}}function Gn(t,e){var n={structuredQuery:{}},r=e.path;null!==e.collectionGroup?(n.parent=Ln(t,r),n.structuredQuery.from=[{collectionId:e.collectionGroup,allDescendants:!0}]):(n.parent=Ln(t,r.X()),n.structuredQuery.from=[{collectionId:r.tt()}]);var i=function(t){if(0!==t.length){var e=t.map((function(t){return function(t){if("=="===t.op){if(bt(t.value))return{unaryFilter:{field:Qn(t.field),op:"IS_NAN"}};if(yt(t.value))return{unaryFilter:{field:Qn(t.field),op:"IS_NULL"}}}else if("!="===t.op){if(bt(t.value))return{unaryFilter:{field:Qn(t.field),op:"IS_NOT_NAN"}};if(yt(t.value))return{unaryFilter:{field:Qn(t.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:Qn(t.field),op:$n(t.op),value:t.value}}}(t)}));return 1===e.length?e[0]:{compositeFilter:{op:"AND",filters:e}}}}(e.filters);i&&(n.structuredQuery.where=i);var o=function(t){if(0!==t.length)return t.map((function(t){return function(t){return{field:Qn(t.field),direction:Xn(t.dir)}}(t)}))}(e.orderBy);o&&(n.structuredQuery.orderBy=o);var u=function(t,e){return t.Bt||ot(e)?e:{value:e}}(t,e.limit);return null!==u&&(n.structuredQuery.limit=u),e.startAt&&(n.structuredQuery.startAt=Wn(e.startAt)),e.endAt&&(n.structuredQuery.endAt=Wn(e.endAt)),n}function Kn(t){var e=Mn(t.parent),n=t.structuredQuery,r=n.from?n.from.length:0,i=null;if(r>0){O(1===r);var o=n.from[0];o.allDescendants?i=o.collectionId:e=e.child(o.collectionId)}var u=[];n.where&&(u=tr(n.where));var s=[];n.orderBy&&(s=n.orderBy.map((function(t){return function(t){return new Ht(Jn(t.field),function(t){switch(t){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(t.direction))}(t)})));var a=null;n.limit&&(a=function(t){var e;return ot(e="object"==typeof t?t.value:t)?null:e}(n.limit));var c=null;n.startAt&&(c=Yn(n.startAt));var l=null;return n.endAt&&(l=Yn(n.endAt)),Xt(e,i,s,u,a,"F",c,l)}function tr(t){return t?void 0!==t.unaryFilter?[er(t)]:void 0!==t.fieldFilter?[Zn(t)]:void 0!==t.compositeFilter?t.compositeFilter.filters.map((function(t){return tr(t)})).reduce((function(t,e){return t.concat(e)})):E():[]}function Wn(t){return{before:t.before,values:t.position}}function Yn(t){var e=!!t.before,n=t.values||[];return new Bt(n,e)}function Xn(t){return Tn[t]}function $n(t){return kn[t]}function Qn(t){return{fieldPath:t.rt()}}function Jn(t){return K.lt(t.fieldPath)}function Zn(t){return Pt.create(Jn(t.fieldFilter.field),function(t){switch(t){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";case"OPERATOR_UNSPECIFIED":default:return E()}}(t.fieldFilter.op),t.fieldFilter.value)}function er(t){switch(t.unaryFilter.op){case"IS_NAN":var e=Jn(t.unaryFilter.field);return Pt.create(e,"==",{doubleValue:NaN});case"IS_NULL":var n=Jn(t.unaryFilter.field);return Pt.create(n,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":var r=Jn(t.unaryFilter.field);return Pt.create(r,"!=",{doubleValue:NaN});case"IS_NOT_NULL":var i=Jn(t.unaryFilter.field);return Pt.create(i,"!=",{nullValue:"NULL_VALUE"});case"OPERATOR_UNSPECIFIED":default:return E()}}function nr(t){var e=[];return t.fields.forEach((function(t){return e.push(t.rt())})),{fieldPaths:e}}function hr(t){return t.length>=4&&"projects"===t.get(0)&&"databases"===t.get(2)}var rr=function(){var t=this;this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n}))},ir=function(){function t(t){var e=this;this.Dn=null,this.Cn=null,this.result=void 0,this.error=void 0,this.xn=!1,this.Nn=!1,t((function(t){e.xn=!0,e.result=t,e.Dn&&e.Dn(t)}),(function(t){e.xn=!0,e.error=t,e.Cn&&e.Cn(t)}))}return t.prototype.catch=function(t){return this.next(void 0,t)},t.prototype.next=function(e,n){var r=this;return this.Nn&&E(),this.Nn=!0,this.xn?this.error?this.$n(n,this.error):this.Fn(e,this.result):new t((function(t,i){r.Dn=function(n){r.Fn(e,n).next(t,i)},r.Cn=function(e){r.$n(n,e).next(t,i)}}))},t.prototype.On=function(){var t=this;return new Promise((function(e,n){t.next(e,n)}))},t.prototype.kn=function(e){try{var n=e();return n instanceof t?n:t.resolve(n)}catch(e){return t.reject(e)}},t.prototype.Fn=function(e,n){return e?this.kn((function(){return e(n)})):t.resolve(n)},t.prototype.$n=function(e,n){return e?this.kn((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.Mn=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.Ln=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;i0||t.indexOf("Trident/")>0||t.indexOf("Edge/")>0||i||u)},e.Wn=function(){var e;return void 0!==t&&"YES"===(null===(e=t.env)||void 0===e?void 0:e.Gn)},e.zn=function(t,e){return t.store(e)},e.Qn=function(t){var e=t.match(/i(?:phone|pad|pod) os ([\d_]+)/i),n=e?e[1].split("_").slice(0,2).join("."):"-1";return Number(n)},e.jn=function(t){var e=t.match(/Android ([\d.]+)/i),n=e?e[1].split(".").slice(0,2).join("."):"-1";return Number(n)},e.prototype.Hn=function(t){return Object(l.b)(this,void 0,void 0,(function(){var e,n=this;return Object(l.d)(this,(function(r){switch(r.label){case 0:return this.db?[3,2]:(m("SimpleDb","Opening database:",this.name),e=this,[4,new Promise((function(e,r){var i=indexedDB.open(n.name,n.version);i.onsuccess=function(t){var n=t.target.result;e(n)},i.onblocked=function(){r(new ur(t,"Cannot upgrade IndexedDB schema while another tab is open. Close all tabs that access Firestore and reload this page to proceed."))},i.onerror=function(e){var n=e.target.error;"VersionError"===n.name?r(new q(N.FAILED_PRECONDITION,"A newer version of the Firestore SDK was previously used and so the persisted data is not compatible with the version of the SDK you are now using. The SDK will operate with persistence disabled. If you need persistence, please re-upgrade to a newer version of the SDK or else clear the persisted IndexedDB data for your app to start fresh.")):r(new ur(t,n))},i.onupgradeneeded=function(t){m("SimpleDb",'Database "'+n.name+'" requires upgrade from version:',t.oldVersion);var e=t.target.result;n.Un.Jn(e,i.transaction,t.oldVersion,n.version).next((function(){m("SimpleDb","Database upgrade to version "+n.version+" complete")}))}}))]);case 1:e.db=r.sent(),r.label=2;case 2:return[2,(this.Yn&&(this.db.onversionchange=function(t){return n.Yn(t)}),this.db)]}}))}))},e.prototype.Xn=function(t){this.Yn=t,this.db&&(this.db.onversionchange=function(e){return t(e)})},e.prototype.runTransaction=function(t,e,n,r){return Object(l.b)(this,void 0,void 0,(function(){var i,o,u,s,a;return Object(l.d)(this,(function(c){switch(c.label){case 0:i="readonly"===e,o=0,u=function(){var e,u,a,c,f;return Object(l.d)(this,(function(l){switch(l.label){case 0:++o,l.label=1;case 1:return l.trys.push([1,4,,5]),[4,s.Hn(t)];case 2:return s.db=l.sent(),e=or.open(s.db,t,i?"readonly":"readwrite",n),u=r(e).catch((function(t){return e.abort(t),ir.reject(t)})).On(),a={},u.catch((function(){})),[4,e.qn];case 3:return[2,(a.value=(l.sent(),u),a)];case 4:return c=l.sent(),f="FirebaseError"!==c.name&&o<3,m("SimpleDb","Transaction failed with error:",c.message,"Retrying:",f),s.close(),f?[3,5]:[2,{value:Promise.reject(c)}];case 5:return[2]}}))},s=this,c.label=1;case 1:return[5,u()];case 2:if("object"==typeof(a=c.sent()))return[2,a.value];c.label=3;case 3:return[3,1];case 4:return[2]}}))}))},e.prototype.close=function(){this.db&&this.db.close(),this.db=void 0},e}(),sr=function(){function t(t){this.Zn=t,this.ts=!1,this.es=null}return Object.defineProperty(t.prototype,"xn",{get:function(){return this.ts},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ns",{get:function(){return this.es},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cursor",{set:function(t){this.Zn=t},enumerable:!1,configurable:!0}),t.prototype.done=function(){this.ts=!0},t.prototype.ss=function(t){this.es=t},t.prototype.delete=function(){return fr(this.Zn.delete())},t}(),ur=function(t){function e(e,n){var r=this;return(r=t.call(this,N.UNAVAILABLE,"IndexedDB transaction '"+e+"' failed: "+n)||this).name="IndexedDbTransactionError",r}return Object(l.c)(e,t),e}(q);function cr(t){return"IndexedDbTransactionError"===t.name}var lr=function(){function t(t){this.store=t}return t.prototype.put=function(t,e){var n;return void 0!==e?(m("SimpleDb","PUT",this.store.name,t,e),n=this.store.put(e,t)):(m("SimpleDb","PUT",this.store.name,"",t),n=this.store.put(t)),fr(n)},t.prototype.add=function(t){return m("SimpleDb","ADD",this.store.name,t,t),fr(this.store.add(t))},t.prototype.get=function(t){var e=this;return fr(this.store.get(t)).next((function(n){return void 0===n&&(n=null),m("SimpleDb","GET",e.store.name,t,n),n}))},t.prototype.delete=function(t){return m("SimpleDb","DELETE",this.store.name,t),fr(this.store.delete(t))},t.prototype.count=function(){return m("SimpleDb","COUNT",this.store.name),fr(this.store.count())},t.prototype.rs=function(t,e){var n=this.cursor(this.options(t,e)),r=[];return this.os(n,(function(t,e){r.push(e)})).next((function(){return r}))},t.prototype.cs=function(t,e){m("SimpleDb","DELETE ALL",this.store.name);var n=this.options(t,e);n.us=!1;var r=this.cursor(n);return this.os(r,(function(t,e,n){return n.delete()}))},t.prototype.hs=function(t,e){var n;e?n=t:(n={},e=t);var r=this.cursor(n);return this.os(r,e)},t.prototype.ls=function(t){var e=this.cursor({});return new ir((function(n,r){e.onerror=function(t){var e=pr(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.os=function(t,e){var n=[];return new ir((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 sr(i),u=e(i.primaryKey,i.value,o);if(u instanceof ir){var s=u.catch((function(t){return o.done(),ir.reject(t)}));n.push(s)}o.xn?r():null===o.ns?i.continue():i.continue(o.ns)}else r()}})).next((function(){return ir.Mn(n)}))},t.prototype.options=function(t,e){var n;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.us?n.openKeyCursor(t.range,e):n.openCursor(t.range,e)}return this.store.openCursor(t.range,e)},t}();function fr(t){return new ir((function(e,n){t.onsuccess=function(t){var n=t.target.result;e(n)},t.onerror=function(t){var e=pr(t.target.error);n(e)}}))}var br=!1;function pr(t){var e=ar.Qn(Object(o.g)());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 i=new q("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 br||(br=!0,setTimeout((function(){throw i}),0)),i}}return t}var dr=function(){function t(t,e,n,r,i){this._s=t,this.fs=e,this.ds=n,this.op=r,this.ws=i,this.Es=new rr,this.then=this.Es.promise.then.bind(this.Es.promise),this.Es.promise.catch((function(t){}))}return t.Ts=function(e,n,r,i,o){var u=new t(e,n,Date.now()+r,i,o);return u.start(r),u},t.prototype.start=function(t){var e=this;this.Is=setTimeout((function(){return e.As()}),t)},t.prototype.Rs=function(){return this.As()},t.prototype.cancel=function(t){null!==this.Is&&(this.clearTimeout(),this.Es.reject(new q(N.CANCELLED,"Operation cancelled"+(t?": "+t:""))))},t.prototype.As=function(){var t=this;this._s.Ps((function(){return null!==t.Is?(t.clearTimeout(),t.op().then((function(e){return t.Es.resolve(e)}))):Promise.resolve()}))},t.prototype.clearTimeout=function(){null!==this.Is&&(this.ws(this),clearTimeout(this.Is),this.Is=null)},t}();function vr(t,e){if(y("AsyncQueue",e+": "+t),cr(t))return new q(N.UNAVAILABLE,e+": "+t);throw t}var mr="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.",gr=function(){function t(){this.ys=[]}return t.prototype.gs=function(t){this.ys.push(t)},t.prototype.Vs=function(){this.ys.forEach((function(t){return t()}))},t}();function yr(t){for(var e="",n=0;n0&&(e=_r(e)),e=wr(t.get(n),e);return _r(e)}function wr(t,e){for(var n=e,r=t.length,i=0;i=2),2===e)return O(""===t.charAt(0)&&""===t.charAt(1)),H.ct();for(var n=e-2,r=[],i="",o=0;on)&&E(),t.charAt(u+1)){case"":var s=t.substring(o,u),a=void 0;0===i.length?a=s:(a=i+=s,i=""),r.push(a);break;case"":i+=t.substring(o,u),i+="\0";break;case"":i+=t.substring(o,u+1);break;default:E()}o=u+2}return new H(r)}var Or=function(t,e){this.seconds=t,this.nanoseconds=e},Ir=function(t,e,n){this.ownerId=t,this.allowTabSynchronization=e,this.leaseTimestampMs=n};Ir.store="owner",Ir.key="owner";var Tr=function(t,e,n){this.userId=t,this.lastAcknowledgedBatchId=e,this.lastStreamToken=n};Tr.store="mutationQueues",Tr.keyPath="userId";var kr=function(t,e,n,r,i){this.userId=t,this.batchId=e,this.localWriteTimeMs=n,this.baseMutations=r,this.mutations=i};kr.store="mutations",kr.keyPath="batchId",kr.userMutationsIndex="userMutationsIndex",kr.userMutationsKeyPath=["userId","batchId"];var Sr=function(){function t(){}return t.prefixForUser=function(t){return[t]},t.prefixForPath=function(t,e){return[t,yr(e)]},t.key=function(t,e,n){return[t,yr(e),n]},t}();Sr.store="documentMutations",Sr.PLACEHOLDER=new Sr;var jr=function(t,e){this.path=t,this.readTime=e},xr=function(t,e){this.path=t,this.version=e},Ar=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};Ar.store="remoteDocuments",Ar.readTimeIndex="readTimeIndex",Ar.readTimeIndexPath="readTime",Ar.collectionReadTimeIndex="collectionReadTimeIndex",Ar.collectionReadTimeIndexPath=["parentPath","readTime"];var Nr=function(t){this.byteSize=t};Nr.store="remoteDocumentGlobal",Nr.key="remoteDocumentGlobalKey";var Cr=function(t,e,n,r,i,o,u){this.targetId=t,this.canonicalId=e,this.readTime=n,this.resumeToken=r,this.lastListenSequenceNumber=i,this.lastLimboFreeSnapshotVersion=o,this.query=u};Cr.store="targets",Cr.keyPath="targetId",Cr.queryTargetsIndexName="queryTargetsIndex",Cr.queryTargetsKeyPath=["canonicalId","targetId"];var Pr=function(t,e,n){this.targetId=t,this.path=e,this.sequenceNumber=n};Pr.store="targetDocuments",Pr.keyPath=["targetId","path"],Pr.documentTargetsIndex="documentTargetsIndex",Pr.documentTargetsKeyPath=["path","targetId"];var Dr=function(t,e,n,r){this.highestTargetId=t,this.highestListenSequenceNumber=e,this.lastRemoteSnapshotVersion=n,this.targetCount=r};Dr.key="targetGlobalKey",Dr.store="targetGlobal";var Rr=function(t,e){this.collectionId=t,this.parent=e};Rr.store="collectionParents",Rr.keyPath=["collectionId","parent"];var Lr=function(t,e,n,r){this.clientId=t,this.updateTimeMs=e,this.networkEnabled=n,this.inForeground=r};Lr.store="clientMetadata",Lr.keyPath="clientId";var Mr=function(t,e,n){this.bundleId=t,this.createTime=e,this.version=n};Mr.store="bundles",Mr.keyPath="bundleId";var Ur=function(t,e,n){this.name=t,this.readTime=e,this.bundledQuery=n};Ur.store="namedQueries",Ur.keyPath="name";var Vr=Object(l.h)(Object(l.h)(Object(l.h)(Object(l.h)([Tr.store,kr.store,Sr.store,Ar.store,Cr.store,Ir.store,Dr.store,Pr.store],[Lr.store]),[Nr.store]),[Rr.store]),[Mr.store,Ur.store]),Fr=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).ps=e,r.bs=n,r}return Object(l.c)(e,t),e}(gr);function qr(t,e){var n=I(t);return ar.zn(n.ps,e)}var Br=function(){function t(t,e,n,r){this.batchId=t,this.vs=e,this.baseMutations=n,this.mutations=r}return t.prototype.Ss=function(t,e,n){for(var r=n.Ds,i=0;i=r),o=Qr(n.Qt,e)),i.done()})).next((function(){return o}))},t.prototype.Vi=function(t){var e=IDBKeyRange.upperBound([this.userId,Number.POSITIVE_INFINITY]),n=-1;return gi(t).hs({index:kr.userMutationsIndex,range:e,reverse:!0},(function(t,e,r){n=e.batchId,r.done()})).next((function(){return n}))},t.prototype.pi=function(t){var e=this,n=IDBKeyRange.bound([this.userId,-1],[this.userId,Number.POSITIVE_INFINITY]);return gi(t).rs(kr.userMutationsIndex,n).next((function(t){return t.map((function(t){return Qr(e.Qt,t)}))}))},t.prototype.bi=function(t,e){var n=this,r=Sr.prefixForPath(this.userId,e.path),i=IDBKeyRange.lowerBound(r),o=[];return yi(t).hs({range:i},(function(r,i,u){var s=r[0],a=r[1],c=r[2],l=Er(a);if(s===n.userId&&e.path.isEqual(l))return gi(t).get(c).next((function(t){if(!t)throw E();O(t.userId===n.userId),o.push(Qr(n.Qt,t))}));u.done()})).next((function(){return o}))},t.prototype.vi=function(t,e){var n=this,r=new Ze(S),i=[];return e.forEach((function(e){var o=Sr.prefixForPath(n.userId,e.path),u=IDBKeyRange.lowerBound(o),s=yi(t).hs({range:u},(function(t,i,o){var u=t[0],s=t[1],a=t[2],c=Er(s);u===n.userId&&e.path.isEqual(c)?r=r.add(a):o.done()}));i.push(s)})),ir.Mn(i).next((function(){return n.Si(t,r)}))},t.prototype.Di=function(t,e){var n=this,r=e.path,i=r.length+1,o=Sr.prefixForPath(this.userId,r),u=IDBKeyRange.lowerBound(o),s=new Ze(S);return yi(t).hs({range:u},(function(t,e,o){var u=t[0],a=t[1],c=t[2],l=Er(a);u===n.userId&&r.nt(l)?l.length===i&&(s=s.add(c)):o.done()})).next((function(){return n.Si(t,s)}))},t.prototype.Si=function(t,e){var n=this,r=[],i=[];return e.forEach((function(e){i.push(gi(t).get(e).next((function(t){if(null===t)throw E();O(t.userId===n.userId),r.push(Qr(n.Qt,t))})))})),ir.Mn(i).next((function(){return r}))},t.prototype.Ci=function(t,e){var n=this;return pi(t.ps,this.userId,e).next((function(r){return t.gs((function(){n.xi(e.batchId)})),ir.forEach(r,(function(e){return n.Ti.Ni(t,e)}))}))},t.prototype.xi=function(t){delete this.Ii[t]},t.prototype.$i=function(t){var e=this;return this.Ai(t).next((function(n){if(!n)return ir.resolve();var r=IDBKeyRange.lowerBound(Sr.prefixForUser(e.userId)),i=[];return yi(t).hs({range:r},(function(t,n,r){if(t[0]===e.userId){var o=Er(t[1]);i.push(o)}else r.done()})).next((function(){O(0===i.length)}))}))},t.prototype.Fi=function(t,e){return mi(t,this.userId,e)},t.prototype.Oi=function(t){var e=this;return bi(t).get(this.userId).next((function(t){return t||new Tr(e.userId,-1,"")}))},t}();function mi(t,e,n){var r=Sr.prefixForPath(e,n.path),i=r[1],o=IDBKeyRange.lowerBound(r),u=!1;return yi(t).hs({range:o,us:!0},(function(t,n,r){var o=t[0],s=t[1];t[2],o===e&&s===i&&(u=!0),r.done()})).next((function(){return u}))}function gi(t){return qr(t,kr.store)}function yi(t){return qr(t,Sr.store)}function bi(t){return qr(t,Tr.store)}var wi=function(){function t(t){this.ki=t}return t.prototype.next=function(){return this.ki+=2,this.ki},t.Mi=function(){return new t(0)},t.Li=function(){return new t(-1)},t}(),_i=function(){function t(t,e){this.Ti=t,this.Qt=e}return t.prototype.Bi=function(t){var e=this;return this.qi(t).next((function(n){var r=new wi(n.highestTargetId);return n.highestTargetId=r.next(),e.Ui(t,n).next((function(){return n.highestTargetId}))}))},t.prototype.Qi=function(t){return this.qi(t).next((function(t){return B.K(new F(t.lastRemoteSnapshotVersion.seconds,t.lastRemoteSnapshotVersion.nanoseconds))}))},t.prototype.Ki=function(t){return this.qi(t).next((function(t){return t.highestListenSequenceNumber}))},t.prototype.Wi=function(t,e,n){var r=this;return this.qi(t).next((function(i){return i.highestListenSequenceNumber=e,n&&(i.lastRemoteSnapshotVersion=n.j()),e>i.highestListenSequenceNumber&&(i.highestListenSequenceNumber=e),r.Ui(t,i)}))},t.prototype.ji=function(t,e){var n=this;return this.Gi(t,e).next((function(){return n.qi(t).next((function(r){return r.targetCount+=1,n.zi(e,r),n.Ui(t,r)}))}))},t.prototype.Hi=function(t,e){return this.Gi(t,e)},t.prototype.Ji=function(t,e){var n=this;return this.Yi(t,e.targetId).next((function(){return Ei(t).delete(e.targetId)})).next((function(){return n.qi(t)})).next((function(e){return O(e.targetCount>0),e.targetCount-=1,n.Ui(t,e)}))},t.prototype.Xi=function(t,e,n){var r=this,i=0,o=[];return Ei(t).hs((function(u,s){var a=Jr(s);a.sequenceNumber<=e&&null===n.get(a.targetId)&&(i++,o.push(r.Ji(t,a)))})).next((function(){return ir.Mn(o)})).next((function(){return i}))},t.prototype.In=function(t,e){return Ei(t).hs((function(t,n){var r=Jr(n);e(r)}))},t.prototype.qi=function(t){return Oi(t).get(Dr.key).next((function(t){return O(null!==t),t}))},t.prototype.Ui=function(t,e){return Oi(t).put(Dr.key,e)},t.prototype.Gi=function(t,e){return Ei(t).put(Zr(this.Qt,e))},t.prototype.zi=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.Zi=function(t){return this.qi(t).next((function(t){return t.targetCount}))},t.prototype.tr=function(t,e){var n=At(e),r=IDBKeyRange.bound([n,Number.NEGATIVE_INFINITY],[n,Number.POSITIVE_INFINITY]),i=null;return Ei(t).hs({range:r,index:Cr.queryTargetsIndexName},(function(t,n,r){var o=Jr(n);Nt(e,o.target)&&(i=o,r.done())})).next((function(){return i}))},t.prototype.er=function(t,e,n){var r=this,i=[],o=Ii(t);return e.forEach((function(e){var u=yr(e.path);i.push(o.put(new Pr(n,u))),i.push(r.Ti.nr(t,n,e))})),ir.Mn(i)},t.prototype.sr=function(t,e,n){var r=this,i=Ii(t);return ir.forEach(e,(function(e){var o=yr(e.path);return ir.Mn([i.delete([n,o]),r.Ti.ir(t,n,e)])}))},t.prototype.Yi=function(t,e){var n=Ii(t),r=IDBKeyRange.bound([e],[e+1],!1,!0);return n.delete(r)},t.prototype.rr=function(t,e){var n=IDBKeyRange.bound([e],[e+1],!1,!0),r=Ii(t),i=ln();return r.hs({range:n,us:!0},(function(t,e,n){var r=Er(t[1]),o=new W(r);i=i.add(o)})).next((function(){return i}))},t.prototype.Fi=function(t,e){var n=yr(e.path),r=IDBKeyRange.bound([n],[x(n)],!1,!0),i=0;return Ii(t).hs({index:Pr.documentTargetsIndex,us:!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.Sn=function(t,e){return Ei(t).get(e).next((function(t){return t?Jr(t):null}))},t}();function Ei(t){return qr(t,Cr.store)}function Oi(t){return qr(t,Dr.store)}function Ii(t){return qr(t,Pr.store)}function Ti(t,e){var n=t[0],r=t[1],i=e[0],o=e[1],u=S(n,i);return 0===u?S(r,o):u}var ki=function(){function t(t){this.cr=t,this.buffer=new Ze(Ti),this.ar=0}return t.prototype.ur=function(){return++this.ar},t.prototype.hr=function(t){var e=[t,this.ur()];if(this.buffer.sizel.params.Js?(m("LruGarbageCollector","Capping sequence numbers to collect down to the maximum of "+l.params.Js+" from "+e),i=l.params.Js):i=e,u=Date.now(),l.Pr(t,i)})).next((function(r){return n=r,s=Date.now(),l.Xi(t,n,e)})).next((function(e){return o=e,a=Date.now(),l.gr(t,n)})).next((function(t){return c=Date.now(),v()<=r.a.DEBUG&&m("LruGarbageCollector","LRU Garbage Collection\n\tCounted targets in "+(u-f)+"ms\n\tDetermined least recently used "+i+" in "+(s-u)+"ms\n\tRemoved "+o+" targets in "+(a-s)+"ms\n\tRemoved "+t+" documents in "+(c-a)+"ms\nTotal Duration: "+(c-f)+"ms"),ir.resolve({Ks:!0,Ws:i,js:o,Gs:t})}))},t}(),xi=function(){function t(t,e){this.db=t,this.lr=function(t,e){return new ji(t,e)}(this,e)}return t.prototype.Rr=function(t){var e=this.vr(t);return this.db.Sr().Zi(t).next((function(t){return e.next((function(e){return t+e}))}))},t.prototype.vr=function(t){var e=0;return this.yr(t,(function(t){e++})).next((function(){return e}))},t.prototype.In=function(t,e){return this.db.Sr().In(t,e)},t.prototype.yr=function(t,e){return this.Dr(t,(function(t,n){return e(n)}))},t.prototype.nr=function(t,e,n){return Ai(t,n)},t.prototype.ir=function(t,e,n){return Ai(t,n)},t.prototype.Xi=function(t,e,n){return this.db.Sr().Xi(t,e,n)},t.prototype.Ni=function(t,e){return Ai(t,e)},t.prototype.Cr=function(t,e){return function(t,e){var n=!1;return bi(t).ls((function(r){return mi(t,r,e).next((function(t){return t&&(n=!0),ir.resolve(!t)}))})).next((function(){return n}))}(t,e)},t.prototype.gr=function(t,e){var n=this,r=this.db.$r().Nr(),i=[],o=0;return this.Dr(t,(function(u,s){if(s<=e){var a=n.Cr(t,u).next((function(e){if(!e)return o++,r._i(t,u).next((function(){return r.li(u),Ii(t).delete([0,yr(u.path)])}))}));i.push(a)}})).next((function(){return ir.Mn(i)})).next((function(){return r.apply(t)})).next((function(){return o}))},t.prototype.removeTarget=function(t,e){var n=e.kt(t.bs);return this.db.Sr().Hi(t,n)},t.prototype.Fr=function(t,e){return Ai(t,e)},t.prototype.Dr=function(t,e){var n,r=Ii(t),i=V.q;return r.hs({index:Pr.documentTargetsIndex},(function(t,r){var o=t[0],u=(t[1],r.path),s=r.sequenceNumber;0===o?(i!==V.q&&e(new W(Er(n)),i),i=s,n=u):i=V.q})).next((function(){i!==V.q&&e(new W(Er(n)),i)}))},t.prototype.pr=function(t){return this.db.$r().Or(t)},t}();function Ai(t,e){return Ii(t).put(function(t,e){return new Pr(0,yr(t.path),e)}(e,t.bs))}var Ni=function(){function t(t,e){this.Qt=t,this.Ei=e}return t.prototype.ai=function(t,e,n){return Di(t).put(Ri(e),n)},t.prototype.li=function(t,e){var n=Di(t),r=Ri(e);return n.delete(r)},t.prototype.updateMetadata=function(t,e){var n=this;return this.getMetadata(t).next((function(r){return r.byteSize+=e,n.kr(t,r)}))},t.prototype._i=function(t,e){var n=this;return Di(t).get(Ri(e)).next((function(t){return n.Mr(t)}))},t.prototype.Lr=function(t,e){var n=this;return Di(t).get(Ri(e)).next((function(t){var e=n.Mr(t);return e?{hi:e,size:di(t)}:null}))},t.prototype.getEntries=function(t,e){var n=this,r=rn();return this.Br(t,e,(function(t,e){var i=n.Mr(e);r=r.zt(t,i)})).next((function(){return r}))},t.prototype.qr=function(t,e){var n=this,r=rn(),i=new $e(W.H);return this.Br(t,e,(function(t,e){var o=n.Mr(e);o?(r=r.zt(t,o),i=i.zt(t,di(e))):(r=r.zt(t,null),i=i.zt(t,0))})).next((function(){return{Ur:r,Qr:i}}))},t.prototype.Br=function(t,e,n){if(e.et())return ir.resolve();var r=IDBKeyRange.bound(e.first().path.it(),e.last().path.it()),i=e.te(),o=i.oe();return Di(t).hs({range:r},(function(t,e,r){for(var u=W.Et(t);o&&W.H(o,u)<0;)n(o,null),o=i.oe();o&&o.isEqual(u)&&(n(o,e),o=i.ce()?i.oe():null),o?r.ss(o.path.it()):r.done()})).next((function(){for(;o;)n(o,null),o=i.ce()?i.oe():null}))},t.prototype.Kr=function(t,e,n){var r=this,i=an(),o=e.path.length+1,u={};if(n.isEqual(B.min())){var s=e.path.it();u.range=IDBKeyRange.lowerBound(s)}else{var a=e.path.it(),c=Wr(n);u.range=IDBKeyRange.lowerBound([a,c],!0),u.index=Ar.collectionReadTimeIndex}return Di(t).hs(u,(function(t,n,u){if(t.length===o){var s=Gr(r.Qt,n);e.path.nt(s.key.path)?s instanceof Tt&&ue(e,s)&&(i=i.zt(s.key,s)):u.done()}})).next((function(){return i}))},t.prototype.Nr=function(t){return new Ci(this,!!t&&t.Wr)},t.prototype.Or=function(t){return this.getMetadata(t).next((function(t){return t.byteSize}))},t.prototype.getMetadata=function(t){return Pi(t).get(Nr.key).next((function(t){return O(!!t),t}))},t.prototype.kr=function(t,e){return Pi(t).put(Nr.key,e)},t.prototype.Mr=function(t){if(t){var e=Gr(this.Qt,t);return e instanceof kt&&e.version.isEqual(B.min())?null:e}return null},t}(),Ci=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).jr=e,r.Wr=n,r.Gr=new fi((function(t){return t.toString()}),(function(t,e){return t.isEqual(e)})),r}return Object(l.c)(e,t),e.prototype.wi=function(t){var e=this,n=[],r=0,i=new Ze((function(t,e){return S(t.rt(),e.rt())}));return this.ri.forEach((function(o,u){var s=e.Gr.get(o);if(u.hi){var a=Kr(e.jr.Qt,u.hi,e.ci(o));i=i.add(o.path.X());var c=di(a);r+=c-s,n.push(e.jr.ai(t,o,a))}else if(r-=s,e.Wr){var l=Kr(e.jr.Qt,new kt(o,B.min()),e.ci(o));n.push(e.jr.ai(t,o,l))}else n.push(e.jr.li(t,o))})),i.forEach((function(r){n.push(e.jr.Ei.qs(t,r))})),n.push(this.jr.updateMetadata(t,r)),ir.Mn(n)},e.prototype.fi=function(t,e){var n=this;return this.jr.Lr(t,e).next((function(t){return null===t?(n.Gr.set(e,0),null):(n.Gr.set(e,t.size),t.hi)}))},e.prototype.di=function(t,e){var n=this;return this.jr.qr(t,e).next((function(t){var e=t.Ur;return t.Qr.forEach((function(t,e){n.Gr.set(t,e)})),e}))},e}(hi);function Pi(t){return qr(t,Nr.store)}function Di(t){return qr(t,Ar.store)}function Ri(t){return t.path.it()}var Li=function(){function t(t){this.Qt=t}return t.prototype.Jn=function(t,e,n,r){var i=this;O(n=0&&r<=11);var o=new or("createOrUpgrade",e);n<1&&r>=1&&(function(t){t.createObjectStore(Ir.store)}(t),function(t){t.createObjectStore(Tr.store,{keyPath:Tr.keyPath}),t.createObjectStore(kr.store,{keyPath:kr.keyPath,autoIncrement:!0}).createIndex(kr.userMutationsIndex,kr.userMutationsKeyPath,{unique:!0}),t.createObjectStore(Sr.store)}(t),Mi(t),function(t){t.createObjectStore(Ar.store)}(t));var u=ir.resolve();return n<3&&r>=3&&(0!==n&&(function(t){t.deleteObjectStore(Pr.store),t.deleteObjectStore(Cr.store),t.deleteObjectStore(Dr.store)}(t),Mi(t)),u=u.next((function(){return function(t){var e=t.store(Dr.store),n=new Dr(0,0,B.min().j(),0);return e.put(Dr.key,n)}(o)}))),n<4&&r>=4&&(0!==n&&(u=u.next((function(){return function(t,e){return e.store(kr.store).rs().next((function(n){t.deleteObjectStore(kr.store),t.createObjectStore(kr.store,{keyPath:kr.keyPath,autoIncrement:!0}).createIndex(kr.userMutationsIndex,kr.userMutationsKeyPath,{unique:!0});var r=e.store(kr.store),i=n.map((function(t){return r.put(t)}));return ir.Mn(i)}))}(t,o)}))),u=u.next((function(){!function(t){t.createObjectStore(Lr.store,{keyPath:Lr.keyPath})}(t)}))),n<5&&r>=5&&(u=u.next((function(){return i.zr(o)}))),n<6&&r>=6&&(u=u.next((function(){return function(t){t.createObjectStore(Nr.store)}(t),i.Hr(o)}))),n<7&&r>=7&&(u=u.next((function(){return i.Jr(o)}))),n<8&&r>=8&&(u=u.next((function(){return i.Yr(t,o)}))),n<9&&r>=9&&(u=u.next((function(){!function(t){t.objectStoreNames.contains("remoteDocumentChanges")&&t.deleteObjectStore("remoteDocumentChanges")}(t),function(t){var e=t.objectStore(Ar.store);e.createIndex(Ar.readTimeIndex,Ar.readTimeIndexPath,{unique:!1}),e.createIndex(Ar.collectionReadTimeIndex,Ar.collectionReadTimeIndexPath,{unique:!1})}(e)}))),n<10&&r>=10&&(u=u.next((function(){return i.Xr(o)}))),n<11&&r>=11&&(u=u.next((function(){!function(t){t.createObjectStore(Mr.store,{keyPath:Mr.keyPath})}(t),function(t){t.createObjectStore(Ur.store,{keyPath:Ur.keyPath})}(t)}))),u},t.prototype.Hr=function(t){var e=0;return t.store(Ar.store).hs((function(t,n){e+=di(n)})).next((function(){var n=new Nr(e);return t.store(Nr.store).put(Nr.key,n)}))},t.prototype.zr=function(t){var e=this,n=t.store(Tr.store),r=t.store(kr.store);return n.rs().next((function(n){return ir.forEach(n,(function(n){var i=IDBKeyRange.bound([n.userId,-1],[n.userId,n.lastAcknowledgedBatchId]);return r.rs(kr.userMutationsIndex,i).next((function(r){return ir.forEach(r,(function(r){O(r.userId===n.userId);var i=Qr(e.Qt,r);return pi(t,n.userId,i).next((function(){}))}))}))}))}))},t.prototype.Jr=function(t){var e=t.store(Pr.store),n=t.store(Ar.store);return t.store(Dr.store).get(Dr.key).next((function(t){var r=[];return n.hs((function(n,i){var o=new H(n),u=function(t){return[0,yr(t)]}(o);r.push(e.get(u).next((function(n){return n?ir.resolve():function(n){return e.put(new Pr(0,yr(n),t.highestListenSequenceNumber))}(o)})))})).next((function(){return ir.Mn(r)}))}))},t.prototype.Yr=function(t,e){t.createObjectStore(Rr.store,{keyPath:Rr.keyPath});var n=e.store(Rr.store),r=new li,i=function(t){if(r.add(t)){var e=t.tt(),i=t.X();return n.put({collectionId:e,parent:yr(i)})}};return e.store(Ar.store).hs({us:!0},(function(t,e){var n=new H(t);return i(n.X())})).next((function(){return e.store(Sr.store).hs({us:!0},(function(t,e){t[0];var n=t[1],r=(t[2],Er(n));return i(r.X())}))}))},t.prototype.Xr=function(t){var e=this,n=t.store(Cr.store);return n.hs((function(t,r){var i=Jr(r),o=Zr(e.Qt,i);return n.put(o)}))},t}();function Mi(t){t.createObjectStore(Pr.store,{keyPath:Pr.keyPath}).createIndex(Pr.documentTargetsIndex,Pr.documentTargetsKeyPath,{unique:!0}),t.createObjectStore(Cr.store,{keyPath:Cr.keyPath}).createIndex(Cr.queryTargetsIndexName,Cr.queryTargetsKeyPath,{unique:!0}),t.createObjectStore(Dr.store)}var Ui="Failed to obtain exclusive access to the persistence layer. To allow shared access, multi-tab synchronization has to be enabled in all tabs. If you are using `experimentalForceOwningTab:true`, make sure that only one tab has persistence enabled at any given time.",Vi=function(){function t(e,n,r,i,o,u,s,a,c,l){if(this.allowTabSynchronization=e,this.persistenceKey=n,this.clientId=r,this.Zr=o,this.window=u,this.document=s,this.eo=c,this.no=l,this.so=null,this.io=!1,this.isPrimary=!1,this.networkEnabled=!0,this.ro=null,this.inForeground=!1,this.oo=null,this.co=null,this.ao=Number.NEGATIVE_INFINITY,this.uo=function(t){return Promise.resolve()},!t.Kn())throw new q(N.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");this.Ti=new xi(this,i),this.ho=n+"main",this.Qt=new Hr(a),this.lo=new ar(this.ho,11,new Li(this.Qt)),this._o=new _i(this.Ti,this.Qt),this.Ei=new oi,this.fo=function(t,e){return new Ni(t,e)}(this.Qt,this.Ei),this.wo=new ei,this.window&&this.window.localStorage?this.Eo=this.window.localStorage:(this.Eo=null,!1===l&&y("IndexedDbPersistence","LocalStorage is unavailable. As a result, persistence may not work reliably. In particular enablePersistence() could fail immediately after refreshing the page."))}return t.prototype.start=function(){var t=this;return this.To().then((function(){if(!t.isPrimary&&!t.allowTabSynchronization)throw new q(N.FAILED_PRECONDITION,Ui);return t.Io(),t.mo(),t.Ao(),t.runTransaction("getHighestListenSequenceNumber","readonly",(function(e){return t._o.Ki(e)}))})).then((function(e){t.so=new V(e,t.eo)})).then((function(){t.io=!0})).catch((function(e){return t.lo&&t.lo.close(),Promise.reject(e)}))},t.prototype.Ro=function(t){var e=this;return this.uo=function(n){return Object(l.b)(e,void 0,void 0,(function(){return Object(l.d)(this,(function(e){return this.Er?[2,t(n)]:[2]}))}))},t(this.isPrimary)},t.prototype.Po=function(t){var e=this;this.lo.Xn((function(n){return Object(l.b)(e,void 0,void 0,(function(){return Object(l.d)(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]}}))}))}))},t.prototype.yo=function(t){var e=this;this.networkEnabled!==t&&(this.networkEnabled=t,this.Zr.Ps((function(){return Object(l.b)(e,void 0,void 0,(function(){return Object(l.d)(this,(function(t){switch(t.label){case 0:return this.Er?[4,this.To()]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))})))},t.prototype.To=function(){var t=this;return this.runTransaction("updateClientMetadataAndTryBecomePrimary","readwrite",(function(e){return qi(e).put(new Lr(t.clientId,Date.now(),t.networkEnabled,t.inForeground)).next((function(){if(t.isPrimary)return t.Vo(e).next((function(e){e||(t.isPrimary=!1,t.Zr.po((function(){return t.uo(!1)})))}))})).next((function(){return t.bo(e)})).next((function(n){return t.isPrimary&&!n?t.vo(e).next((function(){return!1})):!!n&&t.So(e).next((function(){return!0}))}))})).catch((function(e){if(cr(e))return m("IndexedDbPersistence","Failed to extend owner lease: ",e),t.isPrimary;if(!t.allowTabSynchronization)throw e;return m("IndexedDbPersistence","Releasing owner lease after error during lease refresh",e),!1})).then((function(e){t.isPrimary!==e&&t.Zr.po((function(){return t.uo(e)})),t.isPrimary=e}))},t.prototype.Vo=function(t){var e=this;return Fi(t).get(Ir.key).next((function(t){return ir.resolve(e.Do(t))}))},t.prototype.Co=function(t){return qi(t).delete(this.clientId)},t.prototype.xo=function(){return Object(l.b)(this,void 0,void 0,(function(){var t,e,n,r,i=this;return Object(l.d)(this,(function(o){switch(o.label){case 0:return!this.isPrimary||this.No(this.ao,18e5)?[3,2]:(this.ao=Date.now(),[4,this.runTransaction("maybeGarbageCollectMultiClientState","readwrite-primary",(function(t){var e=qr(t,Lr.store);return e.rs().next((function(t){var n=i.$o(t,18e5),r=t.filter((function(t){return-1===n.indexOf(t)}));return ir.forEach(r,(function(t){return e.delete(t.clientId)})).next((function(){return r}))}))})).catch((function(){return[]}))]);case 1:if(t=o.sent(),this.Eo)for(e=0,n=t;en&&(y("Detected an update time that is in the future: "+t+" > "+n),1))},t.prototype.Io=function(){var t=this;null!==this.document&&"function"==typeof this.document.addEventListener&&(this.oo=function(){t.Zr.Ps((function(){return t.inForeground="visible"===t.document.visibilityState,t.To()}))},this.document.addEventListener("visibilitychange",this.oo),this.inForeground="visible"===this.document.visibilityState)},t.prototype.Lo=function(){this.oo&&(this.document.removeEventListener("visibilitychange",this.oo),this.oo=null)},t.prototype.mo=function(){var t,e=this;"function"==typeof(null===(t=this.window)||void 0===t?void 0:t.addEventListener)&&(this.ro=function(){e.Mo(),e.Zr.Ps((function(){return e.ko()}))},this.window.addEventListener("unload",this.ro))},t.prototype.Bo=function(){this.ro&&(this.window.removeEventListener("unload",this.ro),this.ro=null)},t.prototype.Oo=function(t){var e;try{var n=null!==(null===(e=this.Eo)||void 0===e?void 0:e.getItem(this.Fo(t)));return m("IndexedDbPersistence","Client '"+t+"' "+(n?"is":"is not")+" zombied in LocalStorage"),n}catch(t){return y("IndexedDbPersistence","Failed to get zombied client id.",t),!1}},t.prototype.Mo=function(){if(this.Eo)try{this.Eo.setItem(this.Fo(this.clientId),String(Date.now()))}catch(t){y("Failed to set zombie client id.",t)}},t.prototype.qo=function(){if(this.Eo)try{this.Eo.removeItem(this.Fo(this.clientId))}catch(t){}},t.prototype.Fo=function(t){return"firestore_zombie_"+this.persistenceKey+"_"+t},t}();function Fi(t){return qr(t,Ir.store)}function qi(t){return qr(t,Lr.store)}function Bi(t,e){var n=t.projectId;return t.o||(n+="."+t.database),"firestore/"+e+"/"+n+"/"}var zi=function(t,e){this.progress=t,this.Go=e},Hi=function(){function t(t,e,n){this.fo=t,this.zo=e,this.Ei=n}return t.prototype.Ho=function(t,e){var n=this;return this.zo.bi(t,e).next((function(r){return n.Jo(t,e,r)}))},t.prototype.Jo=function(t,e,n){return this.fo._i(t,e).next((function(t){for(var r=0,i=n;r0)},t.prototype.uc=function(t,e){return v()<=r.a.DEBUG&&m("QueryEngine","Using full collection scan to execute query:",se(e)),this.ac.Kr(t,e,B.min())},t}(),Wi=function(){function t(t,e,n,r){this.persistence=t,this._c=e,this.Qt=r,this.fc=new $e(S),this.dc=new fi((function(t){return At(t)}),Nt),this.wc=B.min(),this.zo=t.Qo(n),this.Ec=t.$r(),this._o=t.Sr(),this.Tc=new Hi(this.Ec,this.zo,this.persistence.Ko()),this.wo=t.Wo(),this._c.cc(this.Tc)}return t.prototype.Ir=function(t){var e=this;return this.persistence.runTransaction("Collect garbage","readwrite-primary",(function(n){return t.Vr(n,e.fc)}))},t}();function Yi(t,e,n,r){return new Wi(t,e,n,r)}function Xi(t,e){return Object(l.b)(this,void 0,void 0,(function(){var n,r,i,o;return Object(l.d)(this,(function(u){switch(u.label){case 0:return n=I(t),r=n.zo,i=n.Tc,[4,n.persistence.runTransaction("Handle user change","readonly",(function(t){var o;return n.zo.pi(t).next((function(u){return o=u,r=n.persistence.Qo(e),i=new Hi(n.Ec,r,n.persistence.Ko()),r.pi(t)})).next((function(e){for(var n=[],r=[],u=ln(),s=0,a=o;s0){var c=s.Mt(a,r).kt(t.bs);i=i.zt(o,c),function(t,e,n){return O(e.resumeToken.l()>0),0===t.resumeToken.l()||e.Ot.W()-t.Ot.W()>=3e8||n.qe.size+n.Ue.size+n.Qe.size>0}(s,c,e)&&u.push(n._o.Hi(t,c))}}}));var s=nn();if(e.Oe.forEach((function(r,i){e.ke.has(r)&&u.push(n.persistence.Ti.Fr(t,r))})),u.push(Zi(t,o,e.Oe,r,void 0).next((function(t){s=t}))),!r.isEqual(B.min())){var a=n._o.Qi(t).next((function(e){return n._o.Wi(t,t.bs,r)}));u.push(a)}return ir.Mn(u).next((function(){return o.apply(t)})).next((function(){return n.Tc.Zo(t,s)}))})).then((function(t){return n.fc=i,t}))}function Zi(t,e,n,r,i){var o=ln();return n.forEach((function(t){return o=o.add(t)})),e.getEntries(t,o).next((function(t){var o=nn();return n.forEach((function(n,u){var s=t.get(n),a=(null==i?void 0:i.get(n))||r;u instanceof kt&&u.version.isEqual(B.min())?(e.li(n,a),o=o.zt(n,u)):null==s||u.version._(s.version)>0||0===u.version._(s.version)&&s.hasPendingWrites?(e.ai(u,a),o=o.zt(n,u)):m("LocalStore","Ignoring outdated watch update for ",n,". Current version:",s.version," Watch version:",u.version)})),o}))}function to(t,e){var n=I(t);return n.persistence.runTransaction("Get next mutation batch","readonly",(function(t){return void 0===e&&(e=-1),n.zo.gi(t,e)}))}function eo(t,e){var n=I(t);return n.persistence.runTransaction("Allocate target","readwrite",(function(t){var r;return n._o.tr(t,e).next((function(i){return i?(r=i,ir.resolve(r)):n._o.Bi(t).next((function(i){return r=new fe(e,i,0,t.bs),n._o.ji(t,r).next((function(){return r}))}))}))})).then((function(t){var r=n.fc.get(t.targetId);return(null===r||t.Ot._(r.Ot)>0)&&(n.fc=n.fc.zt(t.targetId,t),n.dc.set(e,t.targetId)),t}))}function no(t,e,n){return Object(l.b)(this,void 0,void 0,(function(){var r,i,o,u;return Object(l.d)(this,(function(s){switch(s.label){case 0:r=I(t),i=r.fc.get(e),o=n?"readwrite":"readwrite-primary",s.label=1;case 1:return s.trys.push([1,4,,5]),n?[3,3]:[4,r.persistence.runTransaction("Release target",o,(function(t){return r.persistence.Ti.removeTarget(t,i)}))];case 2:s.sent(),s.label=3;case 3:return[3,5];case 4:if(!cr(u=s.sent()))throw u;return m("LocalStore","Failed to update sequence numbers for target "+e+": "+u),[3,5];case 5:return r.fc=r.fc.remove(e),r.dc.delete(i.target),[2]}}))}))}function ro(t,e,n){var r=I(t),i=B.min(),o=ln();return r.persistence.runTransaction("Execute query","readonly",(function(t){return function(t,e,n){var r=I(t),i=r.dc.get(n);return void 0!==i?ir.resolve(r.fc.get(i)):r._o.tr(e,n)}(r,t,re(e)).next((function(e){if(e)return i=e.lastLimboFreeSnapshotVersion,r._o.rr(t,e.targetId).next((function(t){o=t}))})).next((function(){return r._c.Kr(t,e,n?i:B.min(),n?o:ln())})).next((function(t){return{documents:t,Rc:o}}))}))}function io(t,e){var n=I(t),r=I(n._o),i=n.fc.get(e);return i?Promise.resolve(i.target):n.persistence.runTransaction("Get target data","readonly",(function(t){return r.Sn(t,e).next((function(t){return t?t.target:null}))}))}function oo(t){var e=I(t);return e.persistence.runTransaction("Get new document changes","readonly",(function(t){return function(t,e,n){var r=I(t),i=nn(),o=Wr(n),u=Di(e),s=IDBKeyRange.lowerBound(o,!0);return u.hs({index:Ar.readTimeIndex,range:s},(function(t,e){var n=Gr(r.Qt,e);i=i.zt(n.key,n),o=e.readTime})).next((function(){return{Go:i,readTime:Yr(o)}}))}(e.Ec,t,e.wc)})).then((function(t){var n=t.Go,r=t.readTime;return e.wc=r,n}))}function ao(t){return Object(l.b)(this,void 0,void 0,(function(){var e;return Object(l.d)(this,(function(n){return[2,(e=I(t)).persistence.runTransaction("Synchronize last document change read time","readonly",(function(t){return function(t){var e=Di(t),n=B.min();return e.hs({index:Ar.readTimeIndex,reverse:!0},(function(t,e,r){e.readTime&&(n=Yr(e.readTime)),r.done()})).next((function(){return n}))}(t)})).then((function(t){e.wc=t}))]}))}))}function so(t,e,n,r){return Object(l.b)(this,void 0,void 0,(function(){var i,o,u,s,a,c,f,h,d,p;return Object(l.d)(this,(function(l){switch(l.label){case 0:for(i=I(t),o=ln(),u=nn(),s=un(),a=0,c=n;a=0)return i.wo.Ls(t,e);var u=r.Mt(A.T,o);return i.fc=i.fc.zt(u.targetId,u),i._o.Hi(t,u).next((function(){return i._o.Yi(t,r.targetId)})).next((function(){return i._o.er(t,n,r.targetId)})).next((function(){return i.wo.Ls(t,e)}))}))]}}))}))}var co=function(){function t(t){this.Qt=t,this.Vc=new Map,this.bc=new Map}return t.prototype.Os=function(t,e){return ir.resolve(this.Vc.get(e))},t.prototype.ks=function(t,e){var n;return this.Vc.set(e.id,{id:(n=e).id,version:n.version,createTime:Nn(n.createTime)}),ir.resolve()},t.prototype.Ms=function(t,e){return ir.resolve(this.bc.get(e))},t.prototype.Ls=function(t,e){return this.bc.set(e.name,function(t){return{name:t.name,query:ti(t.bundledQuery),readTime:Nn(t.readTime)}}(e)),ir.resolve()},t}(),lo=function(){function t(){this.vc=new Ze(fo.Sc),this.Dc=new Ze(fo.Cc)}return t.prototype.et=function(){return this.vc.et()},t.prototype.nr=function(t,e){var n=new fo(t,e);this.vc=this.vc.add(n),this.Dc=this.Dc.add(n)},t.prototype.xc=function(t,e){var n=this;t.forEach((function(t){return n.nr(t,e)}))},t.prototype.ir=function(t,e){this.Nc(new fo(t,e))},t.prototype.$c=function(t,e){var n=this;t.forEach((function(t){return n.ir(t,e)}))},t.prototype.Fc=function(t){var e=this,n=new W(new H([])),r=new fo(n,t),i=new fo(n,t+1),o=[];return this.Dc.me([r,i],(function(t){e.Nc(t),o.push(t.key)})),o},t.prototype.Oc=function(){var t=this;this.vc.forEach((function(e){return t.Nc(e)}))},t.prototype.Nc=function(t){this.vc=this.vc.delete(t),this.Dc=this.Dc.delete(t)},t.prototype.kc=function(t){var e=new W(new H([])),n=new fo(e,t),r=new fo(e,t+1),i=ln();return this.Dc.me([n,r],(function(t){i=i.add(t.key)})),i},t.prototype.Fi=function(t){var e=new fo(t,0),n=this.vc.Re(e);return null!==n&&t.isEqual(n.key)},t}(),fo=function(){function t(t,e){this.key=t,this.Mc=e}return t.Sc=function(t,e){return W.H(t.key,e.key)||S(t.Mc,e.Mc)},t.Cc=function(t,e){return S(t.Mc,e.Mc)||W.H(t.key,e.key)},t}(),ho=function(){function t(t,e){this.Ei=t,this.Ti=e,this.zo=[],this.Lc=1,this.Bc=new Ze(fo.Sc)}return t.prototype.Ai=function(t){return ir.resolve(0===this.zo.length)},t.prototype.Ri=function(t,e,n,r){var i=this.Lc;this.Lc++,this.zo.length>0&&this.zo[this.zo.length-1];var o=new Br(i,e,n,r);this.zo.push(o);for(var u=0,s=r;ui?this.zo[i]:null)},t.prototype.Vi=function(){return ir.resolve(0===this.zo.length?-1:this.Lc-1)},t.prototype.pi=function(t){return ir.resolve(this.zo.slice())},t.prototype.bi=function(t,e){var n=this,r=new fo(e,0),i=new fo(e,Number.POSITIVE_INFINITY),o=[];return this.Bc.me([r,i],(function(t){var e=n.qc(t.Mc);o.push(e)})),ir.resolve(o)},t.prototype.vi=function(t,e){var n=this,r=new Ze(S);return e.forEach((function(t){var e=new fo(t,0),i=new fo(t,Number.POSITIVE_INFINITY);n.Bc.me([e,i],(function(t){r=r.add(t.Mc)}))})),ir.resolve(this.Qc(r))},t.prototype.Di=function(t,e){var n=e.path,r=n.length+1,i=n;W.wt(i)||(i=i.child(""));var o=new fo(new W(i),0),u=new Ze(S);return this.Bc.Ae((function(t){var e=t.key.path;return!!n.nt(e)&&(e.length===r&&(u=u.add(t.Mc)),!0)}),o),ir.resolve(this.Qc(u))},t.prototype.Qc=function(t){var e=this,n=[];return t.forEach((function(t){var r=e.qc(t);null!==r&&n.push(r)})),n},t.prototype.Ci=function(t,e){var n=this;O(0===this.Kc(e.batchId,"removed")),this.zo.shift();var r=this.Bc;return ir.forEach(e.mutations,(function(i){var o=new fo(i.key,e.batchId);return r=r.delete(o),n.Ti.Ni(t,i.key)})).next((function(){n.Bc=r}))},t.prototype.xi=function(t){},t.prototype.Fi=function(t,e){var n=new fo(e,0),r=this.Bc.Re(n);return ir.resolve(e.isEqual(r&&r.key))},t.prototype.$i=function(t){return this.zo.length,ir.resolve()},t.prototype.Kc=function(t,e){return this.Uc(t)},t.prototype.Uc=function(t){return 0===this.zo.length?0:t-this.zo[0].batchId},t.prototype.qc=function(t){var e=this.Uc(t);return e<0||e>=this.zo.length?null:this.zo[e]},t}(),po=function(){function t(t,e){this.Ei=t,this.Wc=e,this.docs=new $e(W.H),this.size=0}return t.prototype.ai=function(t,e,n){var r=e.key,i=this.docs.get(r),o=i?i.size:0,u=this.Wc(e);return this.docs=this.docs.zt(r,{hi:e,size:u,readTime:n}),this.size+=u-o,this.Ei.qs(t,r.path.X())},t.prototype.li=function(t){var e=this.docs.get(t);e&&(this.docs=this.docs.remove(t),this.size-=e.size)},t.prototype._i=function(t,e){var n=this.docs.get(e);return ir.resolve(n?n.hi:null)},t.prototype.getEntries=function(t,e){var n=this,r=rn();return e.forEach((function(t){var e=n.docs.get(t);r=r.zt(t,e?e.hi:null)})),ir.resolve(r)},t.prototype.Kr=function(t,e,n){for(var r=an(),i=new W(e.path.child("")),o=this.docs.ee(i);o.ce();){var u=o.oe(),s=u.key,a=u.value,c=a.hi,l=a.readTime;if(!e.path.nt(s.path))break;l._(n)<=0||c instanceof Tt&&ue(e,c)&&(r=r.zt(c.key,c))}return ir.resolve(r)},t.prototype.jc=function(t,e){return ir.forEach(this.docs,(function(t){return e(t)}))},t.prototype.Nr=function(t){return new vo(this)},t.prototype.Or=function(t){return ir.resolve(this.size)},t}(),vo=function(t){function e(e){var n=this;return(n=t.call(this)||this).jr=e,n}return Object(l.c)(e,t),e.prototype.wi=function(t){var e=this,n=[];return this.ri.forEach((function(r,i){i&&i.hi?n.push(e.jr.ai(t,i.hi,e.ci(r))):e.jr.li(r)})),ir.Mn(n)},e.prototype.fi=function(t,e){return this.jr._i(t,e)},e.prototype.di=function(t,e){return this.jr.getEntries(t,e)},e}(hi),mo=function(){function t(t){this.persistence=t,this.Gc=new fi((function(t){return At(t)}),Nt),this.lastRemoteSnapshotVersion=B.min(),this.highestTargetId=0,this.zc=0,this.Hc=new lo,this.targetCount=0,this.Jc=wi.Mi()}return t.prototype.In=function(t,e){return this.Gc.forEach((function(t,n){return e(n)})),ir.resolve()},t.prototype.Qi=function(t){return ir.resolve(this.lastRemoteSnapshotVersion)},t.prototype.Ki=function(t){return ir.resolve(this.zc)},t.prototype.Bi=function(t){return this.highestTargetId=this.Jc.next(),ir.resolve(this.highestTargetId)},t.prototype.Wi=function(t,e,n){return n&&(this.lastRemoteSnapshotVersion=n),e>this.zc&&(this.zc=e),ir.resolve()},t.prototype.Gi=function(t){this.Gc.set(t.target,t);var e=t.targetId;e>this.highestTargetId&&(this.Jc=new wi(e),this.highestTargetId=e),t.sequenceNumber>this.zc&&(this.zc=t.sequenceNumber)},t.prototype.ji=function(t,e){return this.Gi(e),this.targetCount+=1,ir.resolve()},t.prototype.Hi=function(t,e){return this.Gi(e),ir.resolve()},t.prototype.Ji=function(t,e){return this.Gc.delete(e.target),this.Hc.Fc(e.targetId),this.targetCount-=1,ir.resolve()},t.prototype.Xi=function(t,e,n){var r=this,i=0,o=[];return this.Gc.forEach((function(u,s){s.sequenceNumber<=e&&null===n.get(s.targetId)&&(r.Gc.delete(u),o.push(r.Yi(t,s.targetId)),i++)})),ir.Mn(o).next((function(){return i}))},t.prototype.Zi=function(t){return ir.resolve(this.targetCount)},t.prototype.tr=function(t,e){var n=this.Gc.get(e)||null;return ir.resolve(n)},t.prototype.er=function(t,e,n){return this.Hc.xc(e,n),ir.resolve()},t.prototype.sr=function(t,e,n){this.Hc.$c(e,n);var r=this.persistence.Ti,i=[];return r&&e.forEach((function(e){i.push(r.Ni(t,e))})),ir.Mn(i)},t.prototype.Yi=function(t,e){return this.Hc.Fc(e),ir.resolve()},t.prototype.rr=function(t,e){var n=this.Hc.kc(e);return ir.resolve(n)},t.prototype.Fi=function(t,e){return ir.resolve(this.Hc.Fi(e))},t}(),go=function(){function t(t,e){var n=this;this.Yc={},this.so=new V(0),this.io=!1,this.io=!0,this.Ti=t(this),this._o=new mo(this),this.Ei=new ii,this.fo=function(t,e){return new po(t,(function(t){return n.Ti.Xc(t)}))}(this.Ei),this.Qt=new Hr(e),this.wo=new co(this.Qt)}return t.prototype.start=function(){return Promise.resolve()},t.prototype.ko=function(){return this.io=!1,Promise.resolve()},Object.defineProperty(t.prototype,"Er",{get:function(){return this.io},enumerable:!1,configurable:!0}),t.prototype.Po=function(){},t.prototype.yo=function(){},t.prototype.Ko=function(){return this.Ei},t.prototype.Qo=function(t){var e=this.Yc[t.A()];return e||(e=new ho(this.Ei,this.Ti),this.Yc[t.A()]=e),e},t.prototype.Sr=function(){return this._o},t.prototype.$r=function(){return this.fo},t.prototype.Wo=function(){return this.wo},t.prototype.runTransaction=function(t,e,n){var r=this;m("MemoryPersistence","Starting transaction:",t);var i=new yo(this.so.next());return this.Ti.Zc(),n(i).next((function(t){return r.Ti.ta(i).next((function(){return t}))})).On().then((function(t){return i.Vs(),t}))},t.prototype.ea=function(t,e){return ir.Ln(Object.values(this.Yc).map((function(n){return function(){return n.Fi(t,e)}})))},t}(),yo=function(t){function e(e){var n=this;return(n=t.call(this)||this).bs=e,n}return Object(l.c)(e,t),e}(gr),bo=function(){function t(t){this.persistence=t,this.na=new lo,this.sa=null}return t.ia=function(e){return new t(e)},Object.defineProperty(t.prototype,"ra",{get:function(){if(this.sa)return this.sa;throw E()},enumerable:!1,configurable:!0}),t.prototype.nr=function(t,e,n){return this.na.nr(n,e),this.ra.delete(n.toString()),ir.resolve()},t.prototype.ir=function(t,e,n){return this.na.ir(n,e),this.ra.add(n.toString()),ir.resolve()},t.prototype.Ni=function(t,e){return this.ra.add(e.toString()),ir.resolve()},t.prototype.removeTarget=function(t,e){var n=this;this.na.Fc(e.targetId).forEach((function(t){return n.ra.add(t.toString())}));var r=this.persistence.Sr();return r.rr(t,e.targetId).next((function(t){t.forEach((function(t){return n.ra.add(t.toString())}))})).next((function(){return r.Ji(t,e)}))},t.prototype.Zc=function(){this.sa=new Set},t.prototype.ta=function(t){var e=this,n=this.persistence.$r().Nr();return ir.forEach(this.ra,(function(r){var i=W._t(r);return e.oa(t,i).next((function(t){t||n.li(i)}))})).next((function(){return e.sa=null,n.apply(t)}))},t.prototype.Fr=function(t,e){var n=this;return this.oa(t,e).next((function(t){t?n.ra.delete(e.toString()):n.ra.add(e.toString())}))},t.prototype.Xc=function(t){return 0},t.prototype.oa=function(t,e){var n=this;return ir.Ln([function(){return ir.resolve(n.na.Fi(e))},function(){return n.persistence.Sr().Fi(t,e)},function(){return n.persistence.ea(t,e)}])},t}();function wo(t,e){return"firestore_clients_"+t+"_"+e}function _o(t,e,n){var r="firestore_mutations_"+t+"_"+n;return e.m()&&(r+="_"+e.uid),r}function Eo(t,e){return"firestore_targets_"+t+"_"+e}var Oo=function(){function t(t,e,n,r){this.user=t,this.batchId=e,this.state=n,this.error=r}return t.ca=function(e,n,r){var i,o=JSON.parse(r),u="object"==typeof o&&-1!==["pending","acknowledged","rejected"].indexOf(o.state)&&(void 0===o.error||"object"==typeof o.error);return u&&o.error&&(u="string"==typeof o.error.message&&"string"==typeof o.error.code)&&(i=new q(o.error.code,o.error.message)),u?new t(e,n,o.state,i):(y("SharedClientState","Failed to parse mutation state for ID '"+n+"': "+r),null)},t.prototype.aa=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}(),Io=function(){function t(t,e,n){this.targetId=t,this.state=e,this.error=n}return t.ca=function(e,n){var r,i=JSON.parse(n),o="object"==typeof i&&-1!==["not-current","current","rejected"].indexOf(i.state)&&(void 0===i.error||"object"==typeof i.error);return o&&i.error&&(o="string"==typeof i.error.message&&"string"==typeof i.error.code)&&(r=new q(i.error.code,i.error.message)),o?new t(e,i.state,r):(y("SharedClientState","Failed to parse target state for ID '"+e+"': "+n),null)},t.prototype.aa=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}(),To=function(){function t(t,e){this.clientId=t,this.activeTargetIds=e}return t.ca=function(e,n){for(var r=JSON.parse(n),i="object"==typeof r&&r.activeTargetIds instanceof Array,o=hn(),u=0;i&&u0){var r=u.getResponseJson().error;if(r&&r.status&&r.message){var s=function(t){var e=t.toLowerCase().replace(/_/g,"-");return Object.values(N).indexOf(e)>=0?e:N.UNKNOWN}(r.status);o(new q(s,r.message))}else o(new q(N.UNKNOWN,"Server responded with status "+u.getStatus()))}else o(new q(N.UNAVAILABLE,"Connection failed."));break;default:E()}}finally{m("Connection",'RPC "'+t+'" completed.')}}));var s=JSON.stringify(r);u.send(e,"POST",s,n,15)}))},e.prototype.Cu=function(t,e){var n=[this.gu,"/","google.firestore.v1.Firestore","/",t,"/channel"],r=Object(c.g)(),l=Object(c.h)(),f={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:"projects/"+this.t.projectId+"/databases/"+this.t.database},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.i};this.vu(f.initMessageHeaders,e),Object(o.l)()||Object(o.n)()||Object(o.j)()||Object(o.k)()||Object(o.o)()||Object(o.i)()||(f.httpHeadersOverwriteParam="$httpHeaders");var h=n.join("");m("Connection","Creating WebChannel: "+h,f);var g=r.createWebChannel(h,f),d=!1,b=!1,v=new Po({fu:function(t){b?m("Connection","Not sending because WebChannel is closed:",t):(d||(m("Connection","Opening WebChannel transport."),g.open(),d=!0),m("Connection","WebChannel sending:",t),g.send(t))},du:function(){return g.close()}}),y=function(t,e,n){t.listen(e,(function(t){try{n(t)}catch(t){setTimeout((function(){throw t}),0)}}))};return y(g,c.e.EventType.OPEN,(function(){b||m("Connection","WebChannel transport opened.")})),y(g,c.e.EventType.CLOSE,(function(){b||(b=!0,m("Connection","WebChannel transport closed"),v.Ru())})),y(g,c.e.EventType.ERROR,(function(t){b||(b=!0,w("Connection","WebChannel transport errored:",t),v.Ru(new q(N.UNAVAILABLE,"The operation could not be completed")))})),y(g,c.e.EventType.MESSAGE,(function(t){var e;if(!b){var n=t.data[0];O(!!n);var r=n,i=r.error||(null===(e=r[0])||void 0===e?void 0:e.error);if(i){m("Connection","WebChannel received error:",i);var o=i.status,u=function(t){var e=ze[t];if(void 0!==e)return Xe(e)}(o),s=i.message;void 0===u&&(u=N.INTERNAL,s="Unknown error status: "+o+" with message "+i.message),b=!0,v.Ru(new q(u,s)),g.close()}else m("Connection","WebChannel received:",n),v.Pu(n)}})),y(l,c.b.STAT_EVENT,(function(t){t.stat===c.d.PROXY?m("Connection","Detected buffering proxy"):t.stat===c.d.NOPROXY&&m("Connection","Detected no buffering proxy")})),setTimeout((function(){v.Au()}),0),v},e}(function(){function t(t){this.yu=t,this.t=t.t;var e=t.ssl?"https":"http";this.gu=e+"://"+t.host,this.Vu="projects/"+this.t.projectId+"/databases/"+this.t.database+"/documents"}return t.prototype.pu=function(t,e,n,r){var i=this.bu(t,e);m("RestConnection","Sending: ",i,n);var o={};return this.vu(o,r),this.Su(t,i,o,n).then((function(t){return m("RestConnection","Received: ",t),t}),(function(e){throw w("RestConnection",t+" failed with error: ",e,"url: ",i,"request:",n),e}))},t.prototype.Du=function(t,e,n,r){return this.pu(t,e,n,r)},t.prototype.vu=function(t,e){if(t["X-Goog-Api-Client"]="gl-js/ fire/8.2.9",t["Content-Type"]="text/plain",e)for(var n in e.g)e.g.hasOwnProperty(n)&&(t[n]=e.g[n])},t.prototype.bu=function(t,e){var n=Co[t];return this.gu+"/v1/"+e+":"+n},t}());function Ro(){return"undefined"!=typeof window?window:null}function Lo(){return"undefined"!=typeof document?document:null}function Mo(t){return new Sn(t,!0)}var Uo=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.Zr=t,this.fs=e,this.xu=n,this.Nu=r,this.$u=i,this.Fu=0,this.Ou=null,this.ku=Date.now(),this.reset()}return t.prototype.reset=function(){this.Fu=0},t.prototype.Mu=function(){this.Fu=this.$u},t.prototype.Lu=function(t){var e=this;this.cancel();var n=Math.floor(this.Fu+this.Bu()),r=Math.max(0,Date.now()-this.ku),i=Math.max(0,n-r);i>0&&m("ExponentialBackoff","Backing off for "+i+" ms (base delay: "+this.Fu+" ms, delay with jitter: "+n+" ms, last attempt: "+r+" ms ago)"),this.Ou=this.Zr.Tr(this.fs,i,(function(){return e.ku=Date.now(),t()})),this.Fu*=this.Nu,this.Futhis.$u&&(this.Fu=this.$u)},t.prototype.qu=function(){null!==this.Ou&&(this.Ou.Rs(),this.Ou=null)},t.prototype.cancel=function(){null!==this.Ou&&(this.Ou.cancel(),this.Ou=null)},t.prototype.Bu=function(){return(Math.random()-.5)*this.Fu},t}(),Vo=function(){function t(t,e,n,r,i,o){this.Zr=t,this.Uu=n,this.Qu=r,this.Ku=i,this.listener=o,this.state=0,this.Wu=0,this.ju=null,this.stream=null,this.Gu=new Uo(t,e)}return t.prototype.zu=function(){return 1===this.state||2===this.state||4===this.state},t.prototype.Hu=function(){return 2===this.state},t.prototype.start=function(){3!==this.state?this.auth():this.Ju()},t.prototype.stop=function(){return Object(l.b)(this,void 0,void 0,(function(){return Object(l.d)(this,(function(t){switch(t.label){case 0:return this.zu()?[4,this.close(0)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))},t.prototype.Yu=function(){this.state=0,this.Gu.reset()},t.prototype.Xu=function(){var t=this;this.Hu()&&null===this.ju&&(this.ju=this.Zr.Tr(this.Uu,6e4,(function(){return t.Zu()})))},t.prototype.th=function(t){this.eh(),this.stream.send(t)},t.prototype.Zu=function(){return Object(l.b)(this,void 0,void 0,(function(){return Object(l.d)(this,(function(t){return this.Hu()?[2,this.close(0)]:[2]}))}))},t.prototype.eh=function(){this.ju&&(this.ju.cancel(),this.ju=null)},t.prototype.close=function(t,e){return Object(l.b)(this,void 0,void 0,(function(){return Object(l.d)(this,(function(n){switch(n.label){case 0:return this.eh(),this.Gu.cancel(),this.Wu++,3!==t?this.Gu.reset():e&&e.code===N.RESOURCE_EXHAUSTED?(y(e.toString()),y("Using maximum backoff delay to prevent overloading the backend."),this.Gu.Mu()):e&&e.code===N.UNAUTHENTICATED&&this.Ku.p(),null!==this.stream&&(this.nh(),this.stream.close(),this.stream=null),this.state=t,[4,this.listener.Tu(e)];case 1:return n.sent(),[2]}}))}))},t.prototype.nh=function(){},t.prototype.auth=function(){var t=this;this.state=1;var e=this.sh(this.Wu),n=this.Wu;this.Ku.getToken().then((function(e){t.Wu===n&&t.ih(e)}),(function(n){e((function(){var e=new q(N.UNKNOWN,"Fetching auth token failed: "+n.message);return t.rh(e)}))}))},t.prototype.ih=function(t){var e=this,n=this.sh(this.Wu);this.stream=this.oh(t),this.stream.wu((function(){n((function(){return e.state=2,e.listener.wu()}))})),this.stream.Tu((function(t){n((function(){return e.rh(t)}))})),this.stream.onMessage((function(t){n((function(){return e.onMessage(t)}))}))},t.prototype.Ju=function(){var t=this;this.state=4,this.Gu.Lu((function(){return Object(l.b)(t,void 0,void 0,(function(){return Object(l.d)(this,(function(t){return this.state=0,this.start(),[2]}))}))}))},t.prototype.rh=function(t){return m("PersistentStream","close with error: "+t),this.stream=null,this.close(3,t)},t.prototype.sh=function(t){var e=this;return function(n){e.Zr.Ps((function(){return e.Wu===t?n():(m("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())}))}},t}(),Fo=function(t){function e(e,n,r,i,o){var u=this;return(u=t.call(this,e,"listen_stream_connection_backoff","listen_stream_idle",n,r,o)||this).Qt=i,u}return Object(l.c)(e,t),e.prototype.oh=function(t){return this.Qu.Cu("Listen",t)},e.prototype.onMessage=function(t){this.Gu.reset();var e=function(t,e){var n;if("targetChange"in e){e.targetChange;var r=function(t){return"NO_CHANGE"===t?0:"ADD"===t?1:"REMOVE"===t?2:"CURRENT"===t?3:"RESET"===t?4:E()}(e.targetChange.targetChangeType||"NO_CHANGE"),i=e.targetChange.targetIds||[],o=function(t,e){return t.Bt?(O(void 0===e||"string"==typeof e),A.fromBase64String(e||"")):(O(void 0===e||e instanceof Uint8Array),A.fromUint8Array(e||new Uint8Array))}(t,e.targetChange.resumeToken),u=(s=e.targetChange.cause)&&function(t){var e=void 0===t.code?N.UNKNOWN:Xe(t.code);return new q(e,t.message||"")}(s);n=new wn(r,i,o,u||null)}else if("documentChange"in e){e.documentChange,(r=e.documentChange).document,r.document.name,r.document.updateTime,i=Rn(t,r.document.name),o=Nn(r.document.updateTime);var s=new _t({mapValue:{fields:r.document.fields}}),a=(u=new Tt(i,o,s,{}),r.targetIds||[]),c=r.removedTargetIds||[];n=new yn(a,c,u.key,u)}else if("documentDelete"in e)e.documentDelete,(r=e.documentDelete).document,i=Rn(t,r.document),o=r.readTime?Nn(r.readTime):B.min(),s=new kt(i,o),u=r.removedTargetIds||[],n=new yn([],u,s.key,s);else if("documentRemove"in e)e.documentRemove,(r=e.documentRemove).document,i=Rn(t,r.document),o=r.removedTargetIds||[],n=new yn([],o,i,null);else{if(!("filter"in e))return E();e.filter;var l=e.filter;l.targetId,r=l.count||0,i=new We(r),o=l.targetId,n=new bn(o,i)}return n}(this.Qt,t),n=function(t){if(!("targetChange"in t))return B.min();var e=t.targetChange;return e.targetIds&&e.targetIds.length?B.min():e.readTime?Nn(e.readTime):B.min()}(t);return this.listener.ah(e,n)},e.prototype.uh=function(t){var e={};e.database=Un(this.Qt),e.addTarget=function(t,e){var n,r=e.target;return(n=Ct(r)?{documents:Hn(t,r)}:{query:Gn(t,r)}).targetId=e.targetId,e.resumeToken.l()>0?n.resumeToken=xn(t,e.resumeToken):e.Ot._(B.min())>0&&(n.readTime=jn(t,e.Ot.j())),n}(this.Qt,t);var n=function(t,e){var n=function(t,e){switch(e){case 0:return null;case 1:return"existence-filter-mismatch";case 2:return"limbo-document";default:return E()}}(0,e.Ft);return null==n?null:{"goog-listen-tags":n}}(this.Qt,t);n&&(e.labels=n),this.th(e)},e.prototype.hh=function(t){var e={};e.database=Un(this.Qt),e.removeTarget=t,this.th(e)},e}(Vo),qo=function(t){function e(e,n,r,i,o){var u=this;return(u=t.call(this,e,"write_stream_connection_backoff","write_stream_idle",n,r,o)||this).Qt=i,u.lh=!1,u}return Object(l.c)(e,t),Object.defineProperty(e.prototype,"_h",{get:function(){return this.lh},enumerable:!1,configurable:!0}),e.prototype.start=function(){this.lh=!1,this.lastStreamToken=void 0,t.prototype.start.call(this)},e.prototype.nh=function(){this.lh&&this.fh([])},e.prototype.oh=function(t){return this.Qu.Cu("Write",t)},e.prototype.onMessage=function(t){if(O(!!t.streamToken),this.lastStreamToken=t.streamToken,this.lh){this.Gu.reset();var e=function(t,e){return t&&t.length>0?(O(void 0!==e),t.map((function(t){return function(t,e){var n=t.updateTime?Nn(t.updateTime):Nn(e);n.isEqual(B.min())&&(n=Nn(e));var r=null;return t.transformResults&&t.transformResults.length>0&&(r=t.transformResults),new je(n,r)}(t,e)}))):[]}(t.writeResults,t.commitTime),n=Nn(t.commitTime);return this.listener.dh(n,e)}return O(!t.writeResults||0===t.writeResults.length),this.lh=!0,this.listener.wh()},e.prototype.Eh=function(){var t={};t.database=Un(this.Qt),this.th(t)},e.prototype.fh=function(t){var e=this,n={streamToken:this.lastStreamToken,writes:t.map((function(t){return Bn(e.Qt,t)}))};this.th(n)},e}(Vo),Bo=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).credentials=e,i.Qu=n,i.Qt=r,i.Th=!1,i}return Object(l.c)(e,t),e.prototype.Ih=function(){if(this.Th)throw new q(N.FAILED_PRECONDITION,"The client has already been terminated.")},e.prototype.pu=function(t,e,n){var r=this;return this.Ih(),this.credentials.getToken().then((function(i){return r.Qu.pu(t,e,n,i)})).catch((function(t){throw t.code===N.UNAUTHENTICATED&&r.credentials.p(),t}))},e.prototype.Du=function(t,e,n){var r=this;return this.Ih(),this.credentials.getToken().then((function(i){return r.Qu.Du(t,e,n,i)})).catch((function(t){throw t.code===N.UNAUTHENTICATED&&r.credentials.p(),t}))},e.prototype.terminate=function(){this.Th=!1},e}((function(){})),zo=function(){function t(t,e){this._s=t,this.fa=e,this.state="Unknown",this.mh=0,this.Ah=null,this.Rh=!0}return t.prototype.Ph=function(){var t=this;0===this.mh&&(this.yh("Unknown"),this.Ah=this._s.Tr("online_state_timeout",1e4,(function(){return t.Ah=null,t.gh("Backend didn't respond within 10 seconds."),t.yh("Offline"),Promise.resolve()})))},t.prototype.Vh=function(t){"Online"===this.state?this.yh("Unknown"):(this.mh++,this.mh>=1&&(this.ph(),this.gh("Connection failed 1 times. Most recent error: "+t.toString()),this.yh("Offline")))},t.prototype.set=function(t){this.ph(),this.mh=0,"Online"===t&&(this.Rh=!1),this.yh(t)},t.prototype.yh=function(t){t!==this.state&&(this.state=t,this.fa(t))},t.prototype.gh=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.Rh?(y(e),this.Rh=!1):m("OnlineStateTracker",e)},t.prototype.ph=function(){null!==this.Ah&&(this.Ah.cancel(),this.Ah=null)},t}(),Ho=function(t,e,n,r,i){var o=this;this.bh=t,this.Sh=e,this._s=n,this.Dh={},this.Ch=[],this.xh=new Map,this.Nh=new Set,this.$h=[],this.Fh=i,this.Fh.ou((function(t){n.Ps((function(){return Object(l.b)(o,void 0,void 0,(function(){return Object(l.d)(this,(function(t){switch(t.label){case 0:return Zo(this)?(m("RemoteStore","Restarting streams for network reachability change."),[4,function(t){return Object(l.b)(this,void 0,void 0,(function(){var e;return Object(l.d)(this,(function(n){switch(n.label){case 0:return(e=I(t)).Nh.add(4),[4,Ko(e)];case 1:return n.sent(),e.Oh.set("Unknown"),e.Nh.delete(4),[4,Go(e)];case 2:return n.sent(),[2]}}))}))}(this)]):[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))}))})),this.Oh=new zo(n,r)};function Go(t){return Object(l.b)(this,void 0,void 0,(function(){var e,n;return Object(l.d)(this,(function(r){switch(r.label){case 0:if(!Zo(t))return[3,4];e=0,n=t.$h,r.label=1;case 1:return e0}function Zo(t){return 0===I(t).Nh.size}function ta(t){t.kh=void 0}function ea(t){return Object(l.b)(this,void 0,void 0,(function(){return Object(l.d)(this,(function(e){return t.xh.forEach((function(e,n){Xo(t,e)})),[2]}))}))}function na(t,e){return Object(l.b)(this,void 0,void 0,(function(){return Object(l.d)(this,(function(n){return ta(t),Jo(t)?(t.Oh.Vh(e),Qo(t)):t.Oh.set("Unknown"),[2]}))}))}function ra(t,e,n){return Object(l.b)(this,void 0,void 0,(function(){var r,i,o;return Object(l.d)(this,(function(u){switch(u.label){case 0:if(t.Oh.set("Online"),!(e instanceof wn&&2===e.state&&e.cause))return[3,6];u.label=1;case 1:return u.trys.push([1,3,,5]),[4,function(t,e){return Object(l.b)(this,void 0,void 0,(function(){var n,r,i,o;return Object(l.d)(this,(function(u){switch(u.label){case 0:n=e.cause,r=0,i=e.targetIds,u.label=1;case 1:return r=0?[4,function(t,e){var n=t.kh.Vn(e);return n.$e.forEach((function(n,r){if(n.resumeToken.l()>0){var i=t.xh.get(r);i&&t.xh.set(r,i.Mt(n.resumeToken,e))}})),n.Fe.forEach((function(e){var n=t.xh.get(e);if(n){t.xh.set(e,n.Mt(A.T,n.Ot)),$o(t,e);var r=new fe(n.target,e,1,n.sequenceNumber);Xo(t,r)}})),t.Dh.Lh(n)}(t,n)]:[3,10];case 9:u.sent(),u.label=10;case 10:return[3,13];case 11:return m("RemoteStore","Failed to raise snapshot:",o=u.sent()),[4,ia(t,o)];case 12:return u.sent(),[3,13];case 13:return[2]}}))}))}function ia(t,e,n){return Object(l.b)(this,void 0,void 0,(function(){var r=this;return Object(l.d)(this,(function(i){switch(i.label){case 0:if(!cr(e))throw e;return t.Nh.add(1),[4,Ko(t)];case 1:return i.sent(),t.Oh.set("Offline"),n||(n=function(){return Qi(t.bh)}),t._s.po((function(){return Object(l.b)(r,void 0,void 0,(function(){return Object(l.d)(this,(function(e){switch(e.label){case 0:return m("RemoteStore","Retrying IndexedDB access"),[4,n()];case 1:return e.sent(),t.Nh.delete(1),[4,Go(t)];case 2:return e.sent(),[2]}}))}))})),[2]}}))}))}function oa(t,e){return e().catch((function(n){return ia(t,n,e)}))}function aa(t){return Object(l.b)(this,void 0,void 0,(function(){var e,n,r,i,o;return Object(l.d)(this,(function(u){switch(u.label){case 0:e=I(t),n=va(e),r=e.Ch.length>0?e.Ch[e.Ch.length-1].batchId:-1,u.label=1;case 1:if(!function(t){return Zo(t)&&t.Ch.length<10}(e))return[3,7];u.label=2;case 2:return u.trys.push([2,4,,6]),[4,to(e.bh,r)];case 3:return null===(i=u.sent())?(0===e.Ch.length&&n.Xu(),[3,7]):(r=i.batchId,function(t,e){t.Ch.push(e);var n=va(t);n.Hu()&&n._h&&n.fh(e.mutations)}(e,i),[3,6]);case 4:return o=u.sent(),[4,ia(e,o)];case 5:return u.sent(),[3,6];case 6:return[3,1];case 7:return sa(e)&&ua(e),[2]}}))}))}function sa(t){return Zo(t)&&!va(t).zu()&&t.Ch.length>0}function ua(t){va(t).start()}function ca(t){return Object(l.b)(this,void 0,void 0,(function(){return Object(l.d)(this,(function(e){return va(t).Eh(),[2]}))}))}function la(t){return Object(l.b)(this,void 0,void 0,(function(){var e,n,r,i;return Object(l.d)(this,(function(o){for(e=va(t),n=0,r=t.Ch;n0&&(m("RemoteStore","Stopping write stream with "+t.Ch.length+" pending writes"),t.Ch=[]),e.label=4;case 4:return[2]}}))}))}))),t.Qh}var ma=function(){this.Kh=void 0,this.listeners=[]},ga=function(){this.queries=new fi((function(t){return ae(t)}),oe),this.onlineState="Unknown",this.Wh=new Set};function ya(t,e){return Object(l.b)(this,void 0,void 0,(function(){var n,r,i,o,u,s,a;return Object(l.d)(this,(function(c){switch(c.label){case 0:if(n=I(t),r=e.query,i=!1,(o=n.queries.get(r))||(i=!0,o=new ma),!i)return[3,4];c.label=1;case 1:return c.trys.push([1,3,,4]),u=o,[4,n.jh(r)];case 2:return u.Kh=c.sent(),[3,4];case 3:return s=c.sent(),a=vr(s,"Initialization of query '"+se(e.query)+"' failed"),[2,void e.onError(a)];case 4:return n.queries.set(r,o),o.listeners.push(e),e.Gh(n.onlineState),o.Kh&&e.zh(o.Kh)&&Ea(n),[2]}}))}))}function ba(t,e){return Object(l.b)(this,void 0,void 0,(function(){var n,r,i,o,u;return Object(l.d)(this,(function(s){return n=I(t),r=e.query,i=!1,(o=n.queries.get(r))&&(u=o.listeners.indexOf(e))>=0&&(o.listeners.splice(u,1),i=0===o.listeners.length),i?[2,(n.queries.delete(r),n.Hh(r))]:[2]}))}))}function wa(t,e){for(var n=I(t),r=!1,i=0,o=e;i0)return!0;var e=this.Xh&&this.Xh.hasPendingWrites!==t.hasPendingWrites;return!(!t.Ce&&!e)&&!0===this.options.includeMetadataChanges},t.prototype.el=function(t){t=vn.Ne(t.query,t.docs,t.De,t.fromCache),this.Yh=!0,this.Jh.next(t)},t}(),Ia=function(){function t(t,e){this.payload=t,this.byteLength=e}return t.prototype.sl=function(){return"metadata"in this.payload},t}(),Ta=function(){function t(t){this.Qt=t}return t.prototype.Pc=function(t){return Rn(this.Qt,t)},t.prototype.yc=function(t){return t.metadata.exists?qn(this.Qt,t.document,!1):new kt(this.Pc(t.metadata.name),this.gc(t.metadata.readTime))},t.prototype.gc=function(t){return Nn(t)},t}();!function(){function t(t,e,n){this.il=t,this.bh=e,this.Qt=n,this.queries=[],this.documents=[],this.progress=ka(t)}t.prototype.rl=function(t){this.progress.bytesLoaded+=t.byteLength;var e=this.progress.documentsLoaded;return t.payload.namedQuery?this.queries.push(t.payload.namedQuery):t.payload.documentMetadata?(this.documents.push({metadata:t.payload.documentMetadata}),t.payload.documentMetadata.exists||++e):t.payload.document&&(this.documents[this.documents.length-1].document=t.payload.document,++e),e!==this.progress.documentsLoaded?(this.progress.documentsLoaded=e,Object.assign({},this.progress)):null},t.prototype.ol=function(t){for(var e=new Map,n=new Ta(this.Qt),r=0,i=t;r0||c&&n.hl(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,(a||c)&&(s=!0)),d&&(f?(u=u.add(f),o=p?o.add(t):o.delete(t)):(u=u.delete(t),o=o.delete(t)))})),Qt(this.query)||Jt(this.query))for(;u.size>this.query.limit;){var l=Qt(this.query)?u.last():u.first();u=u.delete(l.key),o=o.delete(l.key),r.track({type:1,doc:l})}return{ll:u,dl:r,lc:s,De:o}},t.prototype.wl=function(t,e){return t.Vt&&e.hasCommittedMutations&&!e.Vt},t.prototype.wi=function(t,e,n){var r=this,i=this.ll;this.ll=t.ll,this.De=t.De;var o=t.dl.ve();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 E()}};return n(t)-n(e)}(t.type,e.type)||r.hl(t.doc,e.doc)})),this.El(n);var u=e?this.Tl():[],s=0===this.ul.size&&this.Be?1:0,a=s!==this.al;return this.al=s,0!==o.length||a?{snapshot:new vn(this.query,t.ll,i,o,t.De,0===s,a,!1),Il:u}:{Il:u}},t.prototype.Gh=function(t){return this.Be&&"Offline"===t?(this.Be=!1,this.wi({ll:this.ll,dl:new dn,De:this.De,lc:!1},!1)):{Il:[]}},t.prototype.ml=function(t){return!this.cl.has(t)&&!!this.ll.has(t)&&!this.ll.get(t).Vt},t.prototype.El=function(t){var e=this;t&&(t.qe.forEach((function(t){return e.cl=e.cl.add(t)})),t.Ue.forEach((function(t){})),t.Qe.forEach((function(t){return e.cl=e.cl.delete(t)})),this.Be=t.Be)},t.prototype.Tl=function(){var t=this;if(!this.Be)return[];var e=this.ul;this.ul=ln(),this.ll.forEach((function(e){t.ml(e.key)&&(t.ul=t.ul.add(e.key))}));var n=[];return e.forEach((function(e){t.ul.has(e)||n.push(new ja(e))})),this.ul.forEach((function(t){e.has(t)||n.push(new Sa(t))})),n},t.prototype.Al=function(t){this.cl=t.Rc,this.ul=ln();var e=this.fl(t.documents);return this.wi(e,!0)},t.prototype.Rl=function(){return vn.Ne(this.query,this.ll,this.De,0===this.al)},t}(),Aa=function(t,e,n){this.query=t,this.targetId=e,this.view=n},Na=function(t){this.key=t,this.Pl=!1},Ca=function(){function t(t,e,n,r,i,o){this.bh=t,this.yl=e,this.gl=n,this.Vl=r,this.currentUser=i,this.pl=o,this.bl={},this.vl=new fi((function(t){return ae(t)}),oe),this.Sl=new Map,this.Dl=new Set,this.Cl=new $e(W.H),this.xl=new Map,this.Nl=new lo,this.$l={},this.Fl=new Map,this.Ol=wi.Li(),this.onlineState="Unknown",this.kl=void 0}return Object.defineProperty(t.prototype,"Ml",{get:function(){return!0===this.kl},enumerable:!1,configurable:!0}),t}();function Pa(t,e){return Object(l.b)(this,void 0,void 0,(function(){var n,r,i,o,u,s;return Object(l.d)(this,(function(a){switch(a.label){case 0:return n=us(t),(o=n.vl.get(e))?(r=o.targetId,n.Vl.Fa(r),i=o.view.Rl(),[3,4]):[3,1];case 1:return[4,eo(n.bh,re(e))];case 2:return u=a.sent(),s=n.Vl.Fa(u.targetId),r=u.targetId,[4,Da(n,e,r,"current"===s)];case 3:i=a.sent(),n.Ml&&Wo(n.yl,u),a.label=4;case 4:return[2,i]}}))}))}function Da(t,e,n,r){return Object(l.b)(this,void 0,void 0,(function(){var i,o,u,s,a,c;return Object(l.d)(this,(function(f){switch(f.label){case 0:return t.Ll=function(e,n,r){return function(t,e,n,r){return Object(l.b)(this,void 0,void 0,(function(){var i,o,u;return Object(l.d)(this,(function(s){switch(s.label){case 0:return(i=e.view.fl(n)).lc?[4,ro(t.bh,e.query,!1).then((function(t){var n=t.documents;return e.view.fl(n,i)}))]:[3,2];case 1:i=s.sent(),s.label=2;case 2:return o=r&&r.$e.get(e.targetId),u=e.view.wi(i,t.Ml,o),[2,(Wa(t,e.targetId,u.Il),u.snapshot)]}}))}))}(t,e,n,r)},[4,ro(t.bh,e,!0)];case 1:return i=f.sent(),o=new xa(e,i.Rc),u=o.fl(i.documents),s=gn.Le(n,r&&"Offline"!==t.onlineState),a=o.wi(u,t.Ml,s),Wa(t,n,a.Il),c=new Aa(e,n,o),[2,(t.vl.set(e,c),t.Sl.has(n)?t.Sl.get(n).push(e):t.Sl.set(n,[e]),a.snapshot)]}}))}))}function Ra(t,e){return Object(l.b)(this,void 0,void 0,(function(){var n,r,i;return Object(l.d)(this,(function(o){switch(o.label){case 0:return n=I(t),r=n.vl.get(e),(i=n.Sl.get(r.targetId)).length>1?[2,(n.Sl.set(r.targetId,i.filter((function(t){return!oe(t,e)}))),void n.vl.delete(e))]:n.Ml?(n.Vl.ka(r.targetId),n.Vl.Da(r.targetId)?[3,2]:[4,no(n.bh,r.targetId,!1).then((function(){n.Vl.La(r.targetId),Yo(n.yl,r.targetId),Ga(n,r.targetId)})).catch(ci)]):[3,3];case 1:o.sent(),o.label=2;case 2:return[3,5];case 3:return Ga(n,r.targetId),[4,no(n.bh,r.targetId,!0)];case 4:o.sent(),o.label=5;case 5:return[2]}}))}))}function La(t,e,n){return Object(l.b)(this,void 0,void 0,(function(){var r,i,o,u;return Object(l.d)(this,(function(s){switch(s.label){case 0:r=cs(t),s.label=1;case 1:return s.trys.push([1,5,,6]),[4,function(t,e){var n,r=I(t),i=F.now(),o=e.reduce((function(t,e){return t.add(e.key)}),ln());return r.persistence.runTransaction("Locally write mutations","readwrite",(function(t){return r.Tc.Xo(t,o).next((function(o){n=o;for(var u=[],s=0,a=e;s0?r.Pl=!0:t.Ue.size>0?O(r.Pl):t.Qe.size>0&&(O(r.Pl),r.Pl=!1))})),[4,$a(n,r,e)];case 3:return i.sent(),[3,6];case 4:return[4,ci(i.sent())];case 5:return i.sent(),[3,6];case 6:return[2]}}))}))}function Ua(t,e,n){var r=I(t);if(r.Ml&&0===n||!r.Ml&&1===n){var i=[];r.vl.forEach((function(t,n){var r=n.view.Gh(e);r.snapshot&&i.push(r.snapshot)})),function(t,e){var n=I(t);n.onlineState=e;var r=!1;n.queries.forEach((function(t,n){for(var i=0,o=n.listeners;i0&&t.Cl.size20&&(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":E()}function Is(t,e){if("_delegate"in t&&(t=t.d_),!(t instanceof e)){if(e.name===t.constructor.name)throw new q(N.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");var n=Os(t);throw new q(N.INVALID_ARGUMENT,"Expected type '"+e.name+"', but it was: "+n)}return t}function Ts(t,e){if(e<=0)throw new q(N.INVALID_ARGUMENT,"Function "+t+"() requires a positive number, but it was: "+e+".")}var ks=function(){function t(t){var e;if(void 0===t.host){if(void 0!==t.ssl)throw new q(N.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=t.host,this.ssl=null===(e=t.ssl)||void 0===e||e;if(this.credentials=t.credentials,this.ignoreUndefinedProperties=!!t.ignoreUndefinedProperties,void 0===t.cacheSizeBytes)this.cacheSizeBytes=41943040;else{if(-1!==t.cacheSizeBytes&&t.cacheSizeBytes<1048576)throw new q(N.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=t.cacheSizeBytes}this.experimentalForceLongPolling=!!t.experimentalForceLongPolling,this.experimentalAutoDetectLongPolling=!!t.experimentalAutoDetectLongPolling,ws("experimentalForceLongPolling",t.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",t.experimentalAutoDetectLongPolling)}return t.prototype.isEqual=function(t){return this.host===t.host&&this.ssl===t.ssl&&this.credentials===t.credentials&&this.cacheSizeBytes===t.cacheSizeBytes&&this.experimentalForceLongPolling===t.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===t.experimentalAutoDetectLongPolling&&this.ignoreUndefinedProperties===t.ignoreUndefinedProperties},t}(),Ss=new Map,js=function(){function t(t,e){this.w_="(lite)",this.E_=new ks({}),this.T_=!1,t instanceof h?(this.I_=t,this.m_=new R):(this.A_=t,this.I_=function(t){if(!Object.prototype.hasOwnProperty.apply(t.options,["projectId"]))throw new q(N.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new h(t.options.projectId)}(t),this.m_=new L(e))}return Object.defineProperty(t.prototype,"app",{get:function(){if(!this.A_)throw new q(N.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this.A_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"R_",{get:function(){return this.T_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"P_",{get:function(){return void 0!==this.y_},enumerable:!1,configurable:!0}),t.prototype.g_=function(t){if(this.T_)throw new q(N.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this.E_=new ks(t),void 0!==t.credentials&&(this.m_=function(t){if(!t)return new R;switch(t.type){case"gapi":var e=t.client;return O(!("object"!=typeof e||null===e||!e.auth||!e.auth.getAuthHeaderValueForFirstParty)),new U(e,t.sessionIndex||"0");case"provider":return t.client;default:throw new q(N.INVALID_ARGUMENT,"makeCredentialsProvider failed due to invalid credential type")}}(t.credentials))},t.prototype.V_=function(){return this.E_},t.prototype.p_=function(){return this.T_=!0,this.E_},t.prototype._delete=function(){return this.y_||(this.y_=this.b_()),this.y_},t.prototype.toJSON=function(){return{app:this.A_,t:this.I_,settings:this.E_}},t.prototype.b_=function(){return this,(t=Ss.get(this))&&(m("ComponentProvider","Removing Datastore"),Ss.delete(this),t.terminate()),Promise.resolve();var t},t}(),xs=function(){function t(t,e,n){this.v_=e,this.S_=n,this.type="document",this.firestore=t}return Object.defineProperty(t.prototype,"D_",{get:function(){return this.S_.path},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.S_.path.tt()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this.S_.path.rt()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return new Ns(this.firestore,this.v_,this.S_.path.X())},enumerable:!1,configurable:!0}),t.prototype.withConverter=function(e){return new t(this.firestore,e,this.S_)},t}(),As=function(){function t(t,e,n){this.v_=e,this.C_=n,this.type="query",this.firestore=t}return t.prototype.withConverter=function(e){return new t(this.firestore,e,this.C_)},t}(),Ns=function(t){function e(e,n,r){var i=this;return(i=t.call(this,e,n,$t(r))||this).firestore=e,i.D_=r,i.type="collection",i}return Object(l.c)(e,t),Object.defineProperty(e.prototype,"id",{get:function(){return this.C_.path.tt()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this.C_.path.rt()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){var t=this.D_.X();return t.et()?null:new xs(this.firestore,null,new W(t))},enumerable:!1,configurable:!0}),e.prototype.withConverter=function(t){return new e(this.firestore,t,this.D_)},e}(As);function Cs(t,e){for(var n,r=[],i=2;i90)throw new q(N.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+t);if(!isFinite(e)||e<-180||e>180)throw new q(N.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+e);this.x_=t,this.N_=e}return Object.defineProperty(t.prototype,"latitude",{get:function(){return this.x_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"longitude",{get:function(){return this.N_},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){return this.x_===t.x_&&this.N_===t.N_},t.prototype.toJSON=function(){return{latitude:this.x_,longitude:this.N_}},t.prototype.U=function(t){return S(this.x_,t.x_)||S(this.N_,t.N_)},t}(),Ms=/^__.*__$/,Us=function(){function t(t,e,n){this.data=t,this.Gt=e,this.fieldTransforms=n}return t.prototype.F_=function(t,e){return null!==this.Gt?new Ue(t,this.data,this.Gt,e,this.fieldTransforms):new Me(t,this.data,e,this.fieldTransforms)},t}(),Vs=function(){function t(t,e,n){this.data=t,this.Gt=e,this.fieldTransforms=n}return t.prototype.F_=function(t,e){return new Ue(t,this.data,this.Gt,e,this.fieldTransforms)},t}();function Fs(t){switch(t){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw E()}}var qs=function(){function t(t,e,n,r,i,o){this.settings=t,this.t=e,this.Qt=n,this.ignoreUndefinedProperties=r,void 0===i&&this.O_(),this.fieldTransforms=i||[],this.Gt=o||[]}return Object.defineProperty(t.prototype,"path",{get:function(){return this.settings.path},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"k_",{get:function(){return this.settings.k_},enumerable:!1,configurable:!0}),t.prototype.M_=function(e){return new t(Object.assign(Object.assign({},this.settings),e),this.t,this.Qt,this.ignoreUndefinedProperties,this.fieldTransforms,this.Gt)},t.prototype.L_=function(t){var e,n=null===(e=this.path)||void 0===e?void 0:e.child(t),r=this.M_({path:n,B_:!1});return r.q_(t),r},t.prototype.U_=function(t){var e,n=null===(e=this.path)||void 0===e?void 0:e.child(t),r=this.M_({path:n,B_:!1});return r.O_(),r},t.prototype.Q_=function(t){return this.M_({path:void 0,B_:!0})},t.prototype.K_=function(t){return su(t,this.settings.methodName,this.settings.W_||!1,this.path,this.settings.j_)},t.prototype.contains=function(t){return void 0!==this.Gt.find((function(e){return t.nt(e)}))||void 0!==this.fieldTransforms.find((function(e){return t.nt(e.field)}))},t.prototype.O_=function(){if(this.path)for(var t=0;t=0;--h)if(!uu(l,s[h])){var p=s[h],d=a[h];d instanceof gs&&(d=d.d_);var v=u.U_(p);if(d instanceof Gs)l.push(p);else{var m=tu(d,v);null!=m&&(l.push(p),f.set(p,m))}}var y=new $(l);return new Vs(f.Pt(),y,u.fieldTransforms)}function Zs(t,e,n,r){return void 0===r&&(r=!1),tu(n,t.G_(r?4:3,e))}function tu(t,e){if(t instanceof gs&&(t=t.d_),nu(t))return ru("Unsupported field value:",e,t),eu(t,e);if(t instanceof ms)return function(t,e){if(!Fs(e.k_))throw e.K_(t._methodName+"() can only be used with update() and set()");if(!e.path)throw e.K_(t._methodName+"() is not currently supported inside arrays");var n=t.z_(e);n&&e.fieldTransforms.push(n)}(t,e),null;if(void 0===t&&e.ignoreUndefinedProperties)return null;if(e.path&&e.Gt.push(e.path),t instanceof Array){if(e.settings.B_&&4!==e.k_)throw e.K_("Nested arrays are not supported");return function(t,e){for(var n=[],r=0,i=0,o=t;i0&&e.Gt.push(e.path):X(t,(function(t,r){var i=tu(r,e.L_(t));null!=i&&(n[t]=i)})),{mapValue:{fields:n}}}function nu(t){return!("object"!=typeof t||null===t||t instanceof Array||t instanceof Date||t instanceof F||t instanceof Ls||t instanceof C||t instanceof xs||t instanceof ms)}function ru(t,e,n){if(!nu(n)||!function(t){return"object"==typeof t&&null!==t&&(Object.getPrototypeOf(t)===Object.prototype||null===Object.getPrototypeOf(t))}(n)){var r=Os(n);throw"an object"===r?e.K_(t+" a custom object"):e.K_(t+" "+r)}}function iu(t,e,n){if(e instanceof gs&&(e=e.d_),e instanceof vs)return e.f_;if("string"==typeof e)return au(t,e);throw su("Field path arguments must be of type string or FieldPath.",t,!1,void 0,n)}var ou=new RegExp("[~\\*/\\[\\]]");function au(t,e,n){if(e.search(ou)>=0)throw su("Invalid field path ("+e+"). Paths must not contain '~', '*', '/', '[', or ']'",t,!1,void 0,n);try{return(new(vs.bind.apply(vs,Object(l.h)([void 0],e.split("."))))).f_}catch(r){throw su("Invalid field path ("+e+"). Paths must not be empty, begin with '.', end with '.', or contain '..'",t,!1,void 0,n)}}function su(t,e,n,r,i){var o=r&&!r.et(),u=void 0!==i,s="Function "+e+"() called with invalid data";n&&(s+=" (via `toFirestore()`)");var a="";return(o||u)&&(a+=" (found",o&&(a+=" in field "+r),u&&(a+=" in document "+i),a+=")"),new q(N.INVALID_ARGUMENT,(s+=". ")+t+a)}function uu(t,e){return t.some((function(t){return t.isEqual(e)}))}var cu=function(){function t(t){this.Sh=t,this.Y_=new Map,this.mutations=[],this.X_=!1,this.Z_=null,this.tf=new Set}return t.prototype.ef=function(t){return Object(l.b)(this,void 0,void 0,(function(){var e,n=this;return Object(l.d)(this,(function(r){switch(r.label){case 0:if(this.nf(),this.mutations.length>0)throw new q(N.INVALID_ARGUMENT,"Firestore transactions require all reads to be executed before all writes.");return[4,function(t,e){return Object(l.b)(this,void 0,void 0,(function(){var n,r,i,o,u,s;return Object(l.d)(this,(function(a){switch(a.label){case 0:return n=I(t),r=Un(n.Qt)+"/documents",i={documents:e.map((function(t){return Dn(n.Qt,t)}))},[4,n.Du("BatchGetDocuments",r,i)];case 1:return o=a.sent(),u=new Map,o.forEach((function(t){var e=function(t,e){return"found"in e?function(t,e){O(!!e.found),e.found.name,e.found.updateTime;var n=Rn(t,e.found.name),r=Nn(e.found.updateTime),i=new _t({mapValue:{fields:e.found.fields}});return new Tt(n,r,i,{})}(t,e):"missing"in e?function(t,e){O(!!e.missing),O(!!e.readTime);var n=Rn(t,e.missing),r=Nn(e.readTime);return new kt(n,r)}(t,e):E()}(n.Qt,t);u.set(e.key.toString(),e)})),s=[],[2,(e.forEach((function(t){var e=u.get(t.toString());O(!!e),s.push(e)})),s)]}}))}))}(this.Sh,t)];case 1:return[2,((e=r.sent()).forEach((function(t){t instanceof kt||t instanceof Tt?n.sf(t):E()})),e)]}}))}))},t.prototype.set=function(t,e){this.write(e.F_(t,this.jt(t))),this.tf.add(t.toString())},t.prototype.update=function(t,e){try{this.write(e.F_(t,this.rf(t)))}catch(t){this.Z_=t}this.tf.add(t.toString())},t.prototype.delete=function(t){this.write(new Ge(t,this.jt(t))),this.tf.add(t.toString())},t.prototype.commit=function(){return Object(l.b)(this,void 0,void 0,(function(){var t,e=this;return Object(l.d)(this,(function(n){switch(n.label){case 0:if(this.nf(),this.Z_)throw this.Z_;return t=this.Y_,this.mutations.forEach((function(e){t.delete(e.key.toString())})),t.forEach((function(t,n){var r=W._t(n);e.mutations.push(new Ke(r,e.jt(r)))})),[4,function(t,e){return Object(l.b)(this,void 0,void 0,(function(){var n,r,i;return Object(l.d)(this,(function(o){switch(o.label){case 0:return n=I(t),r=Un(n.Qt)+"/documents",i={writes:e.map((function(t){return Bn(n.Qt,t)}))},[4,n.pu("Commit",r,i)];case 1:return o.sent(),[2]}}))}))}(this.Sh,this.mutations)];case 1:return n.sent(),this.X_=!0,[2]}}))}))},t.prototype.sf=function(t){var e;if(t instanceof Tt)e=t.version;else{if(!(t instanceof kt))throw E();e=B.min()}var n=this.Y_.get(t.key.toString());if(n){if(!e.isEqual(n))throw new q(N.ABORTED,"Document version changed between two reads.")}else this.Y_.set(t.key.toString(),e)},t.prototype.jt=function(t){var e=this.Y_.get(t.toString());return!this.tf.has(t.toString())&&e?xe.updateTime(e):xe.Kt()},t.prototype.rf=function(t){var e=this.Y_.get(t.toString());if(!this.tf.has(t.toString())&&e){if(e.isEqual(B.min()))throw new q(N.INVALID_ARGUMENT,"Can't update a document that doesn't exist.");return xe.updateTime(e)}return xe.exists(!0)},t.prototype.write=function(t){this.nf(),this.mutations.push(t)},t.prototype.nf=function(){},t}(),lu=function(){function t(t,e,n,r){this._s=t,this.Sh=e,this.updateFunction=n,this.Es=r,this.cf=5,this.Gu=new Uo(this._s,"transaction_retry")}return t.prototype.run=function(){this.af()},t.prototype.af=function(){var t=this;this.Gu.Lu((function(){return Object(l.b)(t,void 0,void 0,(function(){var t,e,n=this;return Object(l.d)(this,(function(r){return t=new cu(this.Sh),(e=this.uf(t))&&e.then((function(e){n._s.Ps((function(){return t.commit().then((function(){n.Es.resolve(e)})).catch((function(t){n.hf(t)}))}))})).catch((function(t){n.hf(t)})),[2]}))}))}))},t.prototype.uf=function(t){try{var e=this.updateFunction(t);return!ot(e)&&e.catch&&e.then?e:(this.Es.reject(Error("Transaction callback must return a Promise")),null)}catch(t){return this.Es.reject(t),null}},t.prototype.hf=function(t){var e=this;this.cf>0&&this.lf(t)?(this.cf-=1,this._s.Ps((function(){return e.af(),Promise.resolve()}))):this.Es.reject(t)},t.prototype.lf=function(t){if("FirebaseError"===t.name){var e=t.code;return"aborted"===e||"failed-precondition"===e||!Ye(e)}return!1},t}(),fu=function(){function t(t,e,n){var r=this;this.credentials=t,this._s=e,this.yu=n,this.user=P.UNAUTHENTICATED,this.clientId=k.u(),this._f=function(){},this.C=new rr,this.credentials.v((function(t){m("FirestoreClient","Received user=",t.uid),r.user=t,r._f(t),r.C.resolve()}))}return t.prototype.getConfiguration=function(){return Object(l.b)(this,void 0,void 0,(function(){return Object(l.d)(this,(function(t){switch(t.label){case 0:return[4,this.C.promise];case 1:return[2,(t.sent(),{_s:this._s,yu:this.yu,clientId:this.clientId,credentials:this.credentials,Jl:this.user,pl:100})]}}))}))},t.prototype.ff=function(t){var e=this;this._f=t,this.C.promise.then((function(){return e._f(e.user)}))},t.prototype.df=function(){if(this._s.wf)throw new q(N.FAILED_PRECONDITION,"The client has already been terminated.")},t.prototype.terminate=function(){var t=this;this._s.Ef();var e=new rr;return this._s.Tf((function(){return Object(l.b)(t,void 0,void 0,(function(){var t,n;return Object(l.d)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,5,,6]),this.If?[4,this.If.terminate()]:[3,2];case 1:r.sent(),r.label=2;case 2:return this.mf?[4,this.mf.terminate()]:[3,4];case 3:r.sent(),r.label=4;case 4:return this.credentials.S(),e.resolve(),[3,6];case 5:return t=r.sent(),n=vr(t,"Failed to shutdown persistence"),e.reject(n),[3,6];case 6:return[2]}}))}))})),e.promise},t}();function hu(t,e){return Object(l.b)(this,void 0,void 0,(function(){var n,r,i=this;return Object(l.d)(this,(function(o){switch(o.label){case 0:return t._s.Af(),m("FirestoreClient","Initializing OfflineComponentProvider"),[4,t.getConfiguration()];case 1:return n=o.sent(),[4,e.initialize(n)];case 2:return o.sent(),r=n.Jl,t.ff((function(n){r.isEqual(n)||(r=n,t._s.po((function(){return Object(l.b)(i,void 0,void 0,(function(){return Object(l.d)(this,(function(t){switch(t.label){case 0:return[4,Xi(e.bh,n)];case 1:return t.sent(),[2]}}))}))})))})),e.persistence.Po((function(){return t.terminate()})),t.mf=e,[2]}}))}))}function pu(t,e){return Object(l.b)(this,void 0,void 0,(function(){var n,r;return Object(l.d)(this,(function(i){switch(i.label){case 0:return t._s.Af(),[4,du(t)];case 1:return n=i.sent(),m("FirestoreClient","Initializing OnlineComponentProvider"),[4,t.getConfiguration()];case 2:return r=i.sent(),[4,e.initialize(n,r)];case 3:return i.sent(),t.ff((function(n){return t._s.po((function(){return function(t,e){return Object(l.b)(this,void 0,void 0,(function(){var n,r;return Object(l.d)(this,(function(i){switch(i.label){case 0:return(n=I(t))._s.Af(),m("RemoteStore","RemoteStore received new credentials"),r=Zo(n),n.Nh.add(3),[4,Ko(n)];case 1:return i.sent(),r&&n.Oh.set("Unknown"),[4,n.Dh.n_(e)];case 2:return i.sent(),n.Nh.delete(3),[4,Go(n)];case 3:return i.sent(),[2]}}))}))}(e.yl,n)}))})),t.If=e,[2]}}))}))}function du(t){return Object(l.b)(this,void 0,void 0,(function(){return Object(l.d)(this,(function(e){switch(e.label){case 0:return t.mf?[3,2]:(m("FirestoreClient","Using default OfflineComponentProvider"),[4,hu(t,new ls)]);case 1:e.sent(),e.label=2;case 2:return[2,t.mf]}}))}))}function vu(t){return Object(l.b)(this,void 0,void 0,(function(){return Object(l.d)(this,(function(e){switch(e.label){case 0:return t.If?[3,2]:(m("FirestoreClient","Using default OnlineComponentProvider"),[4,pu(t,new ps)]);case 1:e.sent(),e.label=2;case 2:return[2,t.If]}}))}))}function mu(t){return du(t).then((function(t){return t.persistence}))}function gu(t){return du(t).then((function(t){return t.bh}))}function yu(t){return vu(t).then((function(t){return t.yl}))}function bu(t){return vu(t).then((function(t){return t._a}))}function wu(t){return Object(l.b)(this,void 0,void 0,(function(){var e,n;return Object(l.d)(this,(function(r){switch(r.label){case 0:return[4,vu(t)];case 1:return e=r.sent(),[2,((n=e.gl).jh=Pa.bind(null,e._a),n.Hh=Ra.bind(null,e._a),n)]}}))}))}function _u(t,e,n){var r=this;void 0===n&&(n={});var i=new rr;return t._s.Ps((function(){return Object(l.b)(r,void 0,void 0,(function(){var r;return Object(l.d)(this,(function(o){switch(o.label){case 0:return r=function(t,e,n,r,i){var o=new ds({next:function(o){e.Ps((function(){return ba(t,u)}));var s=o.docs.has(n);!s&&o.fromCache?i.reject(new q(N.UNAVAILABLE,"Failed to get document because the client is offline.")):s&&o.fromCache&&r&&"server"===r.source?i.reject(new q(N.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):i.resolve(o)},error:function(t){return i.reject(t)}}),u=new Oa($t(n.path),o,{includeMetadataChanges:!0,nl:!0});return ya(t,u)},[4,wu(t)];case 1:return[2,r.apply(void 0,[o.sent(),t._s,e,n,i])]}}))}))})),i.promise}function Eu(t,e,n){var r=this;void 0===n&&(n={});var i=new rr;return t._s.Ps((function(){return Object(l.b)(r,void 0,void 0,(function(){var r;return Object(l.d)(this,(function(o){switch(o.label){case 0:return r=function(t,e,n,r,i){var o=new ds({next:function(n){e.Ps((function(){return ba(t,u)})),n.fromCache&&"server"===r.source?i.reject(new q(N.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):i.resolve(n)},error:function(t){return i.reject(t)}}),u=new Oa(n,o,{includeMetadataChanges:!0,nl:!0});return ya(t,u)},[4,wu(t)];case 1:return[2,r.apply(void 0,[o.sent(),t._s,e,n,i])]}}))}))})),i.promise}var Ou=function(){function t(){var t=this;this.Rf=Promise.resolve(),this.Pf=[],this.yf=!1,this.gf=[],this.Vf=null,this.pf=!1,this.bf=[],this.Gu=new Uo(this,"async_queue_retry"),this.vf=function(){var e=Lo();e&&m("AsyncQueue","Visibility state changed to "+e.visibilityState),t.Gu.qu()};var e=Lo();e&&"function"==typeof e.addEventListener&&e.addEventListener("visibilitychange",this.vf)}return Object.defineProperty(t.prototype,"wf",{get:function(){return this.yf},enumerable:!1,configurable:!0}),t.prototype.Ps=function(t){this.enqueue(t)},t.prototype.Tf=function(t){this.Sf(),this.Df(t)},t.prototype.Ef=function(){if(!this.yf){this.yf=!0;var t=Lo();t&&"function"==typeof t.removeEventListener&&t.removeEventListener("visibilitychange",this.vf)}},t.prototype.enqueue=function(t){return this.Sf(),this.yf?new Promise((function(t){})):this.Df(t)},t.prototype.po=function(t){var e=this;this.Ps((function(){return e.Pf.push(t),e.Cf()}))},t.prototype.Cf=function(){return Object(l.b)(this,void 0,void 0,(function(){var t,e=this;return Object(l.d)(this,(function(n){switch(n.label){case 0:if(0===this.Pf.length)return[3,5];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.Pf[0]()];case 2:return n.sent(),this.Pf.shift(),this.Gu.reset(),[3,4];case 3:if(!cr(t=n.sent()))throw t;return m("AsyncQueue","Operation failed with retryable error: "+t),[3,4];case 4:this.Pf.length>0&&this.Gu.Lu((function(){return e.Cf()})),n.label=5;case 5:return[2]}}))}))},t.prototype.Df=function(t){var e=this,n=this.Rf.then((function(){return e.pf=!0,t().catch((function(t){throw e.Vf=t,e.pf=!1,y("INTERNAL UNHANDLED ERROR: ",function(t){var e=t.message||"";return t.stack&&(e=t.stack.includes(t.message)?t.stack:t.message+"\n"+t.stack),e}(t)),t})).then((function(t){return e.pf=!1,t}))}));return this.Rf=n,n},t.prototype.Tr=function(t,e,n){var r=this;this.Sf(),this.bf.indexOf(t)>-1&&(e=0);var i=dr.Ts(this,t,e,n,(function(t){return r.xf(t)}));return this.gf.push(i),i},t.prototype.Sf=function(){this.Vf&&E()},t.prototype.Af=function(){},t.prototype.Nf=function(){return Object(l.b)(this,void 0,void 0,(function(){var t;return Object(l.d)(this,(function(e){switch(e.label){case 0:return[4,t=this.Rf];case 1:e.sent(),e.label=2;case 2:if(t!==this.Rf)return[3,0];e.label=3;case 3:return[2]}}))}))},t.prototype.$f=function(t){for(var e=0,n=this.gf;e, or >=) must be on the same field. But you have inequality filters on '"+n.toString()+"' and '"+e.field.toString()+"'");var r=Zt(t);null!==r&&Ku(t,e.field,r)}var i=function(t,e){for(var n=0,r=t.filters;n=0)return i.op}return null}(t,function(t){switch(t){case"!=":return["!=","not-in"];case"array-contains":return["array-contains","array-contains-any","not-in"];case"in":return["array-contains-any","in","not-in"];case"array-contains-any":return["array-contains","array-contains-any","in","not-in"];case"not-in":return["array-contains","array-contains-any","in","not-in","!="];default:return[]}}(e.op));if(null!==i)throw i===e.op?new q(N.INVALID_ARGUMENT,"Invalid query. You cannot use more than one '"+e.op.toString()+"' filter."):new q(N.INVALID_ARGUMENT,"Invalid query. You cannot use '"+e.op.toString()+"' filters with '"+i.toString()+"' filters.")}(t,h),h}(t.C_,0,e,t.firestore.I_,this.ed,this.nd,this.sd);return new As(t.firestore,t.v_,function(t,e){var n=t.filters.concat([e]);return new Yt(t.path,t.collectionGroup,t.xt.slice(),n,t.limit,t.limitType,t.startAt,t.endAt)}(t.C_,n))},e}(Lu),Vu=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).ed=e,r.rd=n,r.type="orderBy",r}return Object(l.c)(e,t),e.prototype.td=function(t){var e=function(t,e,n){if(null!==t.startAt)throw new q(N.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(null!==t.endAt)throw new q(N.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");var r=new Ht(e,n);return function(t,e){if(null===Zt(t)){var n=te(t);null!==n&&Ku(t,n,e.field)}}(t,r),r}(t.C_,this.ed,this.rd);return new As(t.firestore,t.v_,function(t,e){var n=t.xt.concat([e]);return new Yt(t.path,t.collectionGroup,n,t.filters.slice(),t.limit,t.limitType,t.startAt,t.endAt)}(t.C_,e))},e}(Lu),Fu=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).type=e,i.od=n,i.ad=r,i}return Object(l.c)(e,t),e.prototype.td=function(t){return new As(t.firestore,t.v_,ie(t.C_,this.od,this.ad))},e}(Lu),qu=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).type=e,i.ud=n,i.hd=r,i}return Object(l.c)(e,t),e.prototype.td=function(t){var e=zu(t,this.type,this.ud,this.hd);return new As(t.firestore,t.v_,function(t,e){return new Yt(t.path,t.collectionGroup,t.xt.slice(),t.filters.slice(),t.limit,t.limitType,e,t.endAt)}(t.C_,e))},e}(Lu),Bu=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).type=e,i.ud=n,i.hd=r,i}return Object(l.c)(e,t),e.prototype.td=function(t){var e=zu(t,this.type,this.ud,this.hd);return new As(t.firestore,t.v_,function(t,e){return new Yt(t.path,t.collectionGroup,t.xt.slice(),t.filters.slice(),t.limit,t.limitType,t.startAt,e)}(t.C_,e))},e}(Lu);function zu(t,e,n,r){if(n[0]instanceof gs&&(n[0]=n[0].d_),n[0]instanceof Cu)return function(t,e,n,r,i){if(!r)throw new q(N.NOT_FOUND,"Can't use a DocumentSnapshot that doesn't exist for "+n+"().");for(var o=[],u=0,s=ne(t);uu.length)throw new q(N.INVALID_ARGUMENT,"Too many arguments provided to "+r+"(). The number of arguments must be less than or equal to the number of orderBy() clauses");for(var s=[],a=0;a10)throw new q(N.INVALID_ARGUMENT,"Invalid Query. '"+e.toString()+"' filters support a maximum of 10 elements in the value array.")}function Ku(t,e,n){if(!n.isEqual(e))throw new q(N.INVALID_ARGUMENT,"Invalid query. You have a where filter with an inequality (<, <=, !=, not-in, >, or >=) on field '"+e.toString()+"' and so you must also use '"+e.toString()+"' as your first argument to orderBy(), but your first orderBy() is on field '"+n.toString()+"' instead.")}function Wu(t,e,n){return t?n&&(n.merge||n.mergeFields)?t.toFirestore(e,n):t.toFirestore(e):e}var Yu=function(t){function e(e){var n=this;return(n=t.call(this)||this).firestore=e,n}return Object(l.c)(e,t),e.prototype.Wf=function(t){return new C(t)},e.prototype.jf=function(t){var e=this.Jf(t,this.firestore.I_);return new xs(this.firestore,null,e)},e}(Nu),Xu=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}(),$u=function(t){function e(e,n,r,i,o,u){var s=this;return(s=t.call(this,e,n,r,i,u)||this).Yf=e,s.ld=e,s.metadata=o,s}return Object(l.c)(e,t),e.prototype.exists=function(){return t.prototype.exists.call(this)},e.prototype.data=function(t){if(void 0===t&&(t={}),this.Zf){if(this.v_){var e=new Qu(this.Yf,this.Xf,this.S_,this.Zf,this.metadata,null);return this.v_.fromFirestore(e,t)}return this.Xf.Uf(this.Zf.bt(),t.serverTimestamps)}},e.prototype.get=function(t,e){if(void 0===e&&(e={}),this.Zf){var n=this.Zf.data().field(Du("DocumentSnapshot.get",t));if(null!==n)return this.Xf.Uf(n,e.serverTimestamps)}},e}(Cu),Qu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l.c)(e,t),e.prototype.data=function(e){return void 0===e&&(e={}),t.prototype.data.call(this,e)},e}($u),Ju=function(){function t(t,e,n,r){this.Yf=t,this.Xf=e,this._d=r,this.metadata=new Xu(r.hasPendingWrites,r.fromCache),this.query=n}return Object.defineProperty(t.prototype,"docs",{get:function(){var t=[];return this.forEach((function(e){return t.push(e)})),t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._d.docs.size},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"empty",{get:function(){return 0===this.size},enumerable:!1,configurable:!0}),t.prototype.forEach=function(t,e){var n=this;this._d.docs.forEach((function(r){t.call(e,new Qu(n.Yf,n.Xf,r.key,r,new Xu(n._d.De.has(r.key),n._d.fromCache),n.query.v_))}))},t.prototype.docChanges=function(t){void 0===t&&(t={});var e=!!t.includeMetadataChanges;if(e&&this._d.xe)throw new q(N.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this.fd&&this.dd===e||(this.fd=function(t,e){if(t._d.Se.et()){var n=0;return t._d.docChanges.map((function(e){var r=new Qu(t.Yf,t.Xf,e.doc.key,e.doc,new Xu(t._d.De.has(e.doc.key),t._d.fromCache),t.query.v_);return e.doc,{type:"added",doc:r,oldIndex:-1,newIndex:n++}}))}var r=t._d.Se;return t._d.docChanges.filter((function(t){return e||3!==t.type})).map((function(e){var n=new Qu(t.Yf,t.Xf,e.doc.key,e.doc,new Xu(t._d.De.has(e.doc.key),t._d.fromCache),t.query.v_),i=-1,o=-1;return 0!==e.type&&(i=r.indexOf(e.doc.key),r=r.delete(e.doc.key)),1!==e.type&&(o=(r=r.add(e.doc)).indexOf(e.doc.key)),{type:Zu(e.type),doc:n,oldIndex:i,newIndex:o}}))}(this,e),this.dd=e),this.fd},t}();function Zu(t){switch(t){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return E()}}function tc(t,e){return t instanceof $u&&e instanceof $u?t.Yf===e.Yf&&t.S_.isEqual(e.S_)&&(null===t.Zf?null===e.Zf:t.Zf.isEqual(e.Zf))&&t.v_===e.v_:t instanceof Ju&&e instanceof Ju&&t.Yf===e.Yf&&Rs(t.query,e.query)&&t.metadata.isEqual(e.metadata)&&t._d.isEqual(e._d)}var ec=function(t){function e(e){var n=this;return(n=t.call(this)||this).firestore=e,n}return Object(l.c)(e,t),e.prototype.Wf=function(t){return new C(t)},e.prototype.jf=function(t){var e=this.Jf(t,this.firestore.I_);return new xs(this.firestore,null,e)},e}(Nu);function nc(t,e,n){for(var r=[],i=3;i0?this.wd(this.Ed):Promise.resolve()},t.prototype.md=function(){if(this.Td)throw new q(N.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")},t}();function sc(t,e){if(t instanceof gs&&(t=t.d_),t.firestore!==e)throw new q(N.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return t}var uc=function(t){function e(e,n){var r=this;return(r=t.call(this,e,n)||this).Yf=e,r}return Object(l.c)(e,t),e.prototype.get=function(e){var n=this,r=sc(e,this.Yf),i=new ec(this.Yf);return t.prototype.get.call(this,e).then((function(t){return new $u(n.Yf,i,r.S_,t.Zf,new Xu(!1,!1),r.v_)}))},e}(function(){function t(t,e){this.Yf=t,this.Ad=e,this.Id=zs(t)}return t.prototype.get=function(t){var e=this,n=sc(t,this.Yf),r=new Yu(this.Yf);return this.Ad.ef([n.S_]).then((function(t){if(!t||1!==t.length)return E();var i=t[0];if(i instanceof kt)return new Cu(e.Yf,r,n.S_,null,n.v_);if(i instanceof Tt)return new Cu(e.Yf,r,i.key,i,n.v_);throw E()}))},t.prototype.set=function(t,e,n){var r=sc(t,this.Yf),i=Wu(r.v_,e,n),o=Hs(this.Id,"Transaction.set",r.S_,i,null!==r.v_,n);return this.Ad.set(r.S_,o),this},t.prototype.update=function(t,e,n){for(var r=[],i=3;i=0)throw new q(N.INVALID_ARGUMENT,"Invalid collection ID '"+e+"' passed to function collectionGroup(). Collection IDs must not contain '/'.");return new As(t,null,function(t){return new Yt(H.ct(),t)}(e))}(this.d_,t))}catch(t){throw wc(t,"collectionGroup()","Firestore.collectionGroup()")}},e.prototype.runTransaction=function(t){var e=this;return function(t,e){return function(t,e){var n=this,r=new rr;return t._s.Ps((function(){return Object(l.b)(n,void 0,void 0,(function(){var n;return Object(l.d)(this,(function(i){switch(i.label){case 0:return[4,function(t){return vu(t).then((function(t){return t.Sh}))}(t)];case 1:return n=i.sent(),new lu(t._s,n,e,r).run(),[2]}}))}))})),r.promise}(Su(t),(function(n){return e(new uc(t,n))}))}(this.d_,(function(n){return t(new mc(e,n))}))},e.prototype.batch=function(){var t=this;return Su(this.d_),new gc(new ac(this.d_,(function(e){return ic(t.d_,e)})))},e.prototype.loadBundle=function(t){throw new q(N.FAILED_PRECONDITION,'"loadBundle()" does not exist, have you imported "firebase/firestore/bundle"?')},e.prototype.namedQuery=function(t){throw new q(N.FAILED_PRECONDITION,'"namedQuery()" does not exist, have you imported "firebase/firestore/bundle"?')},e}(gs),dc=function(t){function e(e){var n=this;return(n=t.call(this)||this).firestore=e,n}return Object(l.c)(e,t),e.prototype.Wf=function(t){return new fc(new C(t))},e.prototype.jf=function(t){var e=this.Jf(t,this.firestore.I_);return bc.yd(e,this.firestore,null)},e}(Nu);function vc(t){var e;e=t,d.setLogLevel(e)}var mc=function(t){function e(e,n){var r=this;return(r=t.call(this,n)||this).Yf=e,r.Xf=new dc(e),r}return Object(l.c)(e,t),e.prototype.get=function(t){var e=this,n=xc(t);return this.d_.get(n).then((function(t){return new Oc(e.Yf,new $u(e.Yf.d_,e.Xf,t.S_,t.Zf,t.metadata,n.v_))}))},e.prototype.set=function(t,e,n){var r=xc(t);return n?(bs("Transaction.set",n),this.d_.set(r,e,n)):this.d_.set(r,e),this},e.prototype.update=function(t,e,n){for(var r,i=[],o=3;o=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}var c,l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},f=f||{},h=l||self;function d(){}function v(a){var b=typeof a;return"array"==(b="object"!=b?b:a?Array.isArray(a)?"array":b:"null")||"object"==b&&"number"==typeof a.length}function m(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}var y="closure_uid_"+(1e9*Math.random()>>>0),w=0;function _(a,b,t){return a.call.apply(a.bind,arguments)}function E(a,b,t){if(!a)throw Error();if(2b?1:0}t:{var R=h.navigator;if(R){var L=R.userAgent;if(L){N=L;break t}}N=""}function M(a,b,t){for(var e in a)b.call(t,a[e],e,a)}function U(a){var b={};for(var t in a)b[t]=a[t];return b}var V="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function F(a,b){for(var t,e,n=1;nparseFloat(Q)){z=String(Z);break t}}z=Q}var tt,et={};function nt(a){return function(a,b){var t=et;return Object.prototype.hasOwnProperty.call(t,a)?t[a]:t[a]=b(a)}(a,(function(){for(var b=0,t=C(String(z)).split("."),e=C(String(a)).split("."),g=Math.max(t.length,e.length),n=0;0==b&&n=a.keyCode)&&(a.keyCode=-1)}catch(t){}};var ht="closure_listenable_"+(1e6*Math.random()|0),pt=0;function vt(a,b,t,e,n){this.listener=a,this.proxy=null,this.src=b,this.type=t,this.capture=!!e,this.ca=n,this.key=++pt,this.Y=this.Z=!1}function mt(a){a.Y=!0,a.listener=null,a.proxy=null,a.src=null,a.ca=null}function gt(a){this.src=a,this.a={},this.b=0}function yt(a,b){var t=b.type;if(t in a.a){var e,n=a.a[t],r=k(n,b);(e=0<=r)&&Array.prototype.splice.call(n,r,1),e&&(mt(b),0==a.a[t].length&&(delete a.a[t],a.b--))}}function bt(a,b,t,e){for(var n=0;n>>0);function Ct(a){return"function"==typeof a?a:(a[Nt]||(a[Nt]=function(b){return a.handleEvent(b)}),a[Nt])}function Pt(){T.call(this),this.c=new gt(this),this.J=this,this.C=null}function Dt(a,b){var t,e=a.C;if(e)for(t=[];e;e=e.C)t.push(e);if(a=a.J,e=b.type||b,"string"==typeof b)b=new ct(b,a);else if(b instanceof ct)b.target=b.target||a;else{var n=b;F(b=new ct(e,a),n)}if(n=!0,t)for(var r=t.length-1;0<=r;r--){var g=b.a=t[r];n=Rt(g,e,!0,b)&&n}if(n=Rt(g=b.a=a,e,!0,b)&&n,n=Rt(g,e,!1,b)&&n,t)for(r=0;rb.b&&(b.b++,a.next=b.a,b.a=a)}Ht=!1}function Wt(a,b){Pt.call(this),this.b=a||1,this.a=b||h,this.f=p(this.Za,this),this.g=q()}function Yt(a){a.aa=!1,a.M&&(a.a.clearTimeout(a.M),a.M=null)}function Xt(a,b,t){if("function"==typeof a)t&&(a=p(a,t));else{if(!a||"function"!=typeof a.handleEvent)throw Error("Invalid listener argument");a=p(a.handleEvent,a)}return 2147483647e.length)){var n=e[1];if(Array.isArray(n)&&!(1>n.length)){var r=n[0];if("noop"!=r&&"stop"!=r&&"close"!=r)for(var g=1;gb.length?ke:(b=b.substr(e,t),a.D=e+t,b))}function Ne(a){a.T=q()+a.P,Ce(a,a.P)}function Ce(a,b){if(null!=a.o)throw Error("WatchDog timer not null");a.o=he(p(a.Va,a),b)}function Pe(a){a.o&&(h.clearTimeout(a.o),a.o=null)}function De(a){0==a.g.v||a.A||$n(a.g,a)}function Re(a){Pe(a);var b=a.F;b&&"function"==typeof b.ja&&b.ja(),a.F=null,Yt(a.R),ee(a.J),a.a&&(b=a.a,a.a=null,b.abort(),b.ja())}function Le(a,b){try{var t=a.g;if(0!=t.v&&(t.a==a||vn(t.b,a)))if(t.I=a.N,!a.C&&vn(t.b,a)&&3==t.v){try{var e=t.ka.a.parse(b)}catch(t){e=null}if(Array.isArray(e)&&3==e.length){var n=e;if(0==n[0]){t:if(!t.j){if(t.a){if(!(t.a.u+3e3n[2]&&t.H&&0==t.o&&!t.m&&(t.m=he(p(t.Sa,t),6e3));if(1>=dn(t.b)&&t.ea){try{t.ea()}catch(t){}t.ea=void 0}}else Jn(t,11)}else if((a.C||t.a==a)&&Xn(t),!A(b))for(b=e=t.ka.a.parse(b),e=0;eb||3==b&&!W&&!this.a.$())){this.A||4!=b||7==t||ue(8==t||0>=e?3:2),Pe(this);var n=this.a.W();this.N=n;var r=this.a.$();if(this.b=200==n,function(a,b,t,e,n,r,g){a.info((function(){return"XMLHTTP RESP ("+e+") [ attempt "+n+"]: "+b+"\n"+t+"\n"+r+" "+g}))}(this.c,this.m,this.l,this.f,this.S,b,n),this.b){if(this.U&&!this.C){e:{if(this.a){var g,o=this.a;if((g=o.a?o.a.getResponseHeader("X-HTTP-Initial-Response"):null)&&!A(g)){var c=g;break e}}c=null}if(!c){this.b=!1,this.h=3,le(12),Re(this),De(this);break t}re(this.c,this.f,c,"Initial handshake response via X-HTTP-Initial-Response"),this.C=!0,Le(this,c)}this.I?(xe(this,b,r),W&&this.b&&3==b&&(te(this.J,this.R,"tick",this.Wa),this.R.start())):(re(this.c,this.f,r,null),Le(this,r)),4==b&&Re(this),this.b&&!this.A&&(4==b?$n(this.g,this):(this.b=!1,Ne(this)))}else 400==n&&0b)throw Error("Bad port number "+b);a.h=b}else a.h=null}function We(a,b,t){b instanceof rn?(a.b=b,function(a,b){b&&!a.f&&(on(a),a.c=null,a.a.forEach((function(t,e){var n=e.toLowerCase();e!=n&&(an(this,e),un(this,n,t))}),a)),a.f=b}(a.b,a.a)):(t||(b=Qe(b,en)),a.b=new rn(b,a.a))}function Ye(a,b,t){a.b.set(b,t)}function Xe(a){return Ye(a,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^q()).toString(36)),a}function $e(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""}function Qe(a,b,t){return"string"==typeof a?(a=encodeURI(a).replace(b,dd),t&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function dd(a){return"%"+((a=a.charCodeAt(0))>>4&15).toString(16)+(15&a).toString(16)}Be.prototype.toString=function(){var a=[],b=this.f;b&&a.push(Qe(b,Je,!0),":");var t=this.c;return(t||"file"==b)&&(a.push("//"),(b=this.j)&&a.push(Qe(b,Je,!0),"@"),a.push(encodeURIComponent(String(t)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(t=this.h)&&a.push(":",String(t))),(t=this.g)&&(this.c&&"/"!=t.charAt(0)&&a.push("/"),a.push(Qe(t,"/"==t.charAt(0)?tn:Ze,!0))),(t=this.b.toString())&&a.push("?",t),(t=this.i)&&a.push("#",Qe(t,nn)),a.join("")};var Je=/[#\/\?@]/g,Ze=/[#\?:]/g,tn=/[#\?]/g,en=/[#\?@]/g,nn=/#/g;function rn(a,b){this.b=this.a=null,this.c=a||null,this.f=!!b}function on(a){a.a||(a.a=new Ue,a.b=0,a.c&&function(a,b){if(a){a=a.split("&");for(var t=0;t2*a.c&&Ve(a)))}function sn(a,b){return on(a),b=cn(a,b),Fe(a.a.b,b)}function un(a,b,t){an(a,b),0=a.f}function dn(a){return a.b?1:a.a?a.a.size:0}function vn(a,b){return a.b?a.b==b:!!a.a&&a.a.has(b)}function mn(a,b){a.a?a.a.add(b):a.b=b}function gn(a,b){a.b&&a.b==b?a.b=null:a.a&&a.a.has(b)&&a.a.delete(b)}function yn(a){var t,e;if(null!=a.b)return a.c.concat(a.b.s);if(null!=a.a&&0!==a.a.size){var b=a.c;try{for(var n=o(a.a.values()),r=n.next();!r.done;r=n.next()){var c=r.value;b=b.concat(c.s)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return b}return x(a.c)}function bn(){}function wn(){this.a=new bn}function _n(a,b,t){var e=t||"";try{Me(a,(function(t,n){var g=t;m(t)&&(g=Lt(t)),b.push(e+n+"="+encodeURIComponent(g))}))}catch(t){throw b.push(e+"type="+encodeURIComponent("_badmap")),t}}function En(a,b,t,e,n){try{b.onload=null,b.onerror=null,b.onabort=null,b.ontimeout=null,n(e)}catch(t){}}fn.prototype.cancel=function(){var t,e;if(this.c=yn(this),this.b)this.b.cancel(),this.b=null;else if(this.a&&0!==this.a.size){try{for(var n=o(this.a.values()),r=n.next();!r.done;r=n.next()){r.value.cancel()}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}this.a.clear()}},bn.prototype.stringify=function(a){return h.JSON.stringify(a,void 0)},bn.prototype.parse=function(a){return h.JSON.parse(a,void 0)};var On=h.JSON.parse;function In(a){Pt.call(this),this.headers=new Ue,this.H=a||null,this.b=!1,this.s=this.a=null,this.B="",this.h=0,this.f="",this.g=this.A=this.l=this.u=!1,this.o=0,this.m=null,this.I=Tn,this.D=this.F=!1}I(In,Pt);var Tn="",kn=/^https?$/i,td=["POST","PUT"];function Sn(a){return"content-type"==a.toLowerCase()}function jn(a,b){a.b=!1,a.a&&(a.g=!0,a.a.abort(),a.g=!1),a.f=b,a.h=5,xn(a),Nn(a)}function xn(a){a.u||(a.u=!0,Dt(a,"complete"),Dt(a,"error"))}function An(a){if(a.b&&void 0!==f&&(!a.s[1]||4!=Pn(a)||2!=a.W()))if(a.l&&4==Pn(a))Xt(a.za,0,a);else if(Dt(a,"readystatechange"),4==Pn(a)){a.b=!1;try{var t,e=a.W();t:switch(e){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var b=!0;break t;default:b=!1}if(!(t=b)){var n;if(n=0===e){var r=String(a.B).match(qe)[1]||null;if(!r&&h.self&&h.self.location){var o=h.self.location.protocol;r=o.substr(0,o.length-1)}n=!kn.test(r?r.toLowerCase():"")}t=n}if(t)Dt(a,"complete"),Dt(a,"success");else{a.h=6;try{var c=2(u-=r))r=Math.max(0,n[c].b-100),o=!1;else try{_n(l,g,"req"+u+"_")}catch(t){e&&e(l)}}if(o){e=g.join("&");break t}}return a=a.g.splice(0,t),b.s=a,e}function Gn(a){a.a||a.j||(a.T=1,zt(a.Aa,a),a.o=0)}function Kn(a){return!(a.a||a.j||3<=a.o)&&(a.T++,a.j=he(p(a.Aa,a),Qn(a,a.o)),a.o++,!0)}function Wn(a){null!=a.s&&(h.clearTimeout(a.s),a.s=null)}function Yn(a){a.a=new Oe(a,a.c,"rpc",a.T),null===a.i&&(a.a.B=a.l),a.a.O=0;var b=ze(a.la);Ye(b,"RID","rpc"),Ye(b,"SID",a.J),Ye(b,"CI",a.H?"0":"1"),Ye(b,"AID",a.P),zn(a,b),Ye(b,"TYPE","xmlhttp"),a.i&&a.l&&Dn(b,a.i,a.l),a.D&&a.a.setTimeout(a.D);var t=a.a;a=a.ga,t.H=1,t.i=Xe(ze(b)),t.j=null,t.I=!0,je(t,a)}function Xn(a){null!=a.m&&(h.clearTimeout(a.m),a.m=null)}function $n(a,b){var t=null;if(a.a==b){Xn(a),Wn(a),a.a=null;var e=2}else{if(!vn(a.b,b))return;t=b.s,gn(a.b,b),e=1}if(a.I=b.N,0!=a.v)if(b.b)if(1==e){t=b.j?b.j.length:0,b=q()-b.u;var n=a.u;Dt(e=ae(),new fe(e,t,b,n)),qn(a)}else Gn(a);else if(3==(n=b.h)||0==n&&0=a.b.f-(a.h?1:0)||(a.h?(a.g=b.s.concat(a.g),0):1==a.v||2==a.v||a.u>=(a.La?0:a.Ma)||(a.h=he(p(a.Ba,a,b),Qn(a,a.u)),a.u++,0)))}(a,b)||2==e&&Kn(a)))switch(t&&0b?null:"string"==typeof a?a.charAt(b):a[b]}(n.L()),t=h.FormData&&a instanceof h.FormData,!(0<=k(td,b))||e||t||n.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),n.forEach((function(t,g){this.a.setRequestHeader(g,t)}),this),this.I&&(this.a.responseType=this.I),"withCredentials"in this.a&&this.a.withCredentials!==this.F&&(this.a.withCredentials=this.F);try{Cn(this),0=this.N)){var a=2*this.N;this.c.info("BP detection timer enabled: "+a),this.s=he(p(this.Ta,this),a)}},c.Ta=function(){this.s&&(this.s=null,this.c.info("BP detection timeout reached."),this.c.info("Buffering proxy detected and switch to long-polling!"),this.H=!1,this.F=!0,le(10),Un(this),Yn(this))},c.Sa=function(){null!=this.m&&(this.m=null,Un(this),Kn(this),le(19))},c.Ya=function(a){a?(this.c.info("Successfully pinged google.com"),le(2)):(this.c.info("Failed to ping google.com"),le(1))},(c=rr.prototype).ta=function(){},c.sa=function(){},c.ra=function(){},c.qa=function(){},c.Ja=function(){},ir.prototype.a=function(a,b){return new or(a,b)},I(or,Pt),or.prototype.g=function(){this.a.f=this.f,this.m&&(this.a.C=!0);var a=this.a,b=this.o,t=this.b||void 0;le(0),a.fa=b,a.V=t||{},a.H=a.S,a.B=er(a,null,a.fa),qn(a)},or.prototype.close=function(){Mn(this.a)},or.prototype.h=function(a){if("string"==typeof a){var b={};b.__data__=a,Fn(this.a,b)}else this.l?((b={}).__data__=Lt(a),Fn(this.a,b)):Fn(this.a,a)},or.prototype.G=function(){this.a.f=null,delete this.f,Mn(this.a),delete this.a,or.X.G.call(this)},I(ar,we),I(sr,_e),I(ur,rr),ur.prototype.ta=function(){Dt(this.a,"a")},ur.prototype.sa=function(a){Dt(this.a,new ar(a))},ur.prototype.ra=function(a){Dt(this.a,new sr(a))},ur.prototype.qa=function(){Dt(this.a,"b")},ir.prototype.createWebChannel=ir.prototype.a,or.prototype.send=or.prototype.h,or.prototype.open=or.prototype.g,or.prototype.close=or.prototype.close,pe.NO_ERROR=0,pe.TIMEOUT=8,pe.HTTP_ERROR=6,de.COMPLETE="complete",ge.EventType=be,be.OPEN="a",be.CLOSE="b",be.ERROR="c",be.MESSAGE="d",Pt.prototype.listen=Pt.prototype.va,In.prototype.listenOnce=In.prototype.wa,In.prototype.getLastError=In.prototype.Qa,In.prototype.getLastErrorCode=In.prototype.ua,In.prototype.getStatus=In.prototype.W,In.prototype.getResponseJson=In.prototype.Pa,In.prototype.getResponseText=In.prototype.$,In.prototype.send=In.prototype.ba;var cr=function(){return new ir},lr=function(){return ae()},fr=pe,pr=de,dr=ie,vr={gb:0,jb:1,kb:2,Db:3,Ib:4,Fb:5,Gb:6,Eb:7,Cb:8,Hb:9,PROXY:10,NOPROXY:11,Ab:12,wb:13,xb:14,vb:15,yb:16,zb:17,bb:18,ab:19,cb:20},mr=ge,gr=In}).call(this,n(28))},,function(t,e,n){"use strict";n.d(e,"b",(function(){return d})),n.d(e,"c",(function(){return m})),n.d(e,"a",(function(){return y}));var r=n(0),o=n(17),c=n(128),l=n(5),f=n(9),h=0;function d(){return h>0}function v(){h+=1,setTimeout((function(){h-=1}))}function m(t,e,n){if(void 0===e&&(e={}),"function"!=typeof t)return t;try{if(t.__sentry__)return t;if(t.__sentry_wrapped__)return t.__sentry_wrapped__}catch(e){return t}var c=function(){var c=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);var f=c.map((function(t){return m(t,e)}));return t.handleEvent?t.handleEvent.apply(this,f):t.apply(this,f)}catch(t){throw v(),Object(o.m)((function(n){n.addEventProcessor((function(t){var n=Object(r.a)({},t);return e.mechanism&&(Object(l.b)(n,void 0,void 0),Object(l.a)(n,e.mechanism)),n.extra=Object(r.a)(Object(r.a)({},n.extra),{arguments:c}),n})),Object(o.c)(t)})),t}};try{for(var f in t)Object.prototype.hasOwnProperty.call(t,f)&&(c[f]=t[f])}catch(t){}t.prototype=t.prototype||{},c.prototype=t.prototype,Object.defineProperty(t,"__sentry_wrapped__",{enumerable:!1,value:c}),Object.defineProperties(c,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:t}});try{Object.getOwnPropertyDescriptor(c,"name").configurable&&Object.defineProperty(c,"name",{get:function(){return t.name}})}catch(t){}return c}function y(t){if(void 0===t&&(t={}),t.eventId)if(t.dsn){var script=document.createElement("script");script.async=!0,script.src=new c.a(t.dsn).getReportDialogEndpoint(t),t.onLoad&&(script.onload=t.onLoad),(document.head||document.body).appendChild(script)}else f.a.error("Missing dsn option in showReportDialog call");else f.a.error("Missing eventId option in showReportDialog call")}},,,,,function(t,e,n){"use strict";function r(){for(var s=0,i=0,t=arguments.length;i=(null!=r?r:e.logLevel)&&t({level:c[n].toLowerCase(),message:f,args:o,type:e.name})}},r=0,o=l;re.parts.length&&(n.parts.length=e.parts.length)}else{var o=[];for(r=0;rn&&(t=n);var r=Math.max(t-60,0);r<5&&(r=0);var o=Math.min(r+140,n);return o>n-5&&(o=n),o===n&&(r=Math.max(o-140,0)),e=e.slice(r,o),r>0&&(e="'{snip} "+e),o|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,l=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,f=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,h=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,d=/\((\S*)(?::(\d+))(?::(\d+))\)/,v=/Minified React error #\d+;/i;function m(t){var e=null,n=0;t&&("number"==typeof t.framesToPop?n=t.framesToPop:v.test(t.message)&&(n=1));try{if(e=function(t){if(!t||!t.stacktrace)return null;for(var e,n=t.stacktrace,r=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,c=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\((.*)\))? in (.*):\s*$/i,l=n.split("\n"),f=[],line=0;line eval")>-1&&(e=h.exec(n[3]))?(n[1]=n[1]||"eval",n[3]=e[1],n[4]=e[2],n[5]=""):0!==i||n[5]||void 0===t.columnNumber||(r[0].column=t.columnNumber+1),element={url:n[3],func:n[1]||o,args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}!element.func&&element.line&&(element.func=o),r.push(element)}if(!r.length)return null;return{message:w(t),name:t.name,stack:r}}(t))return y(e,n)}catch(t){}return{message:w(t),name:t&&t.name,stack:[],failed:!0}}function y(t,e){try{return Object(r.a)(Object(r.a)({},t),{stack:t.stack.slice(e)})}catch(e){return t}}function w(t){var e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}},function(t,e,n){"use strict";n.d(e,"a",(function(){return E}));var r,o=n(0),c=n(4),l=n(9),f=n(5),h=n(10),d=n(38),v=n(84),m=Object(f.e)(),y={},w={};function _(t){if(!w[t])switch(w[t]=!0,t){case"console":!function(){if(!("console"in m))return;["debug","info","warn","error","log","assert"].forEach((function(t){t in m.console&&Object(h.c)(m.console,t,(function(e){return function(){for(var n=[],r=0;r2?e[2]:void 0;if(o){var c=r,l=String(o);r=l,O("history",{from:c,to:l})}return t.apply(this,e)}}m.onpopstate=function(){for(var e=[],n=0;n0&&n(!1)}),t);f.a.all(e._buffer).then((function(){clearTimeout(r),n(!0)})).then(null,(function(){n(!0)}))}))},t}(),d=n(9),v=n(5),m=function(){function t(t){this.options=t,this._buffer=new h(30),this._rateLimits={},this._api=new o.a(t.dsn,t._metadata),this.url=this._api.getStoreEndpointWithUrlEncodedAuth()}return t.prototype.sendEvent=function(t){throw new l.a("Transport Class has to implement `sendEvent` method")},t.prototype.close=function(t){return this._buffer.drain(t)},t.prototype._handleResponse=function(t){var e=t.requestType,n=t.response,r=t.headers,o=t.resolve,l=t.reject,f=c.a.fromHttpCode(n.status);this._handleRateLimit(r)&&d.a.warn("Too many requests, backing off until: "+this._disabledUntil(e)),f!==c.a.Success?l(n):o({status:f})},t.prototype._disabledUntil=function(t){return this._rateLimits[t]||this._rateLimits.all},t.prototype._isRateLimited=function(t){return this._disabledUntil(t)>new Date(Date.now())},t.prototype._handleRateLimit=function(t){var e,n,o,c,l=Date.now(),f=t["x-sentry-rate-limits"],h=t["retry-after"];if(f){try{for(var d=Object(r.i)(f.trim().split(",")),m=d.next();!m.done;m=d.next()){var y=m.value.split(":",2),w=parseInt(y[0],10),_=1e3*(isNaN(w)?60:w);try{for(var E=(o=void 0,Object(r.i)(y[1].split(";"))),O=E.next();!O.done;O=E.next()){var I=O.value;this._rateLimits[I||"all"]=new Date(l+_)}}catch(t){o={error:t}}finally{try{O&&!O.done&&(c=E.return)&&c.call(E)}finally{if(o)throw o.error}}}}catch(t){e={error:t}}finally{try{m&&!m.done&&(n=d.return)&&n.call(d)}finally{if(e)throw e.error}}return!0}return!!h&&(this._rateLimits.all=new Date(l+Object(v.g)(l,h)),!0)},t}()},function(t,e,n){"use strict";var r={name:"NoSsr",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(t,e){var n=e.parent,r=e.slots,o=e.props,c=r(),l=c.default;void 0===l&&(l=[]);var f=c.placeholder;return n._isMounted?l:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||f)?t(o.placeholderTag,{class:["no-ssr-placeholder"]},o.placeholder||f):l.length>0?l.map((function(){return t(!1)})):t(!1))}};t.exports=r},function(t,e,n){"use strict";n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return v}));var r=n(0),o=n(4),c=n(141),l=n(27),f=n(5),h=function(){function t(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={}}return t.clone=function(e){var n=new t;return e&&(n._breadcrumbs=Object(r.g)(e._breadcrumbs),n._tags=Object(r.a)({},e._tags),n._extra=Object(r.a)({},e._extra),n._contexts=Object(r.a)({},e._contexts),n._user=e._user,n._level=e._level,n._span=e._span,n._session=e._session,n._transactionName=e._transactionName,n._fingerprint=e._fingerprint,n._eventProcessors=Object(r.g)(e._eventProcessors)),n},t.prototype.addScopeListener=function(t){this._scopeListeners.push(t)},t.prototype.addEventProcessor=function(t){return this._eventProcessors.push(t),this},t.prototype.setUser=function(t){return this._user=t||{},this._session&&this._session.update({user:t}),this._notifyScopeListeners(),this},t.prototype.getUser=function(){return this._user},t.prototype.setTags=function(t){return this._tags=Object(r.a)(Object(r.a)({},this._tags),t),this._notifyScopeListeners(),this},t.prototype.setTag=function(t,e){var n;return this._tags=Object(r.a)(Object(r.a)({},this._tags),((n={})[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setExtras=function(t){return this._extra=Object(r.a)(Object(r.a)({},this._extra),t),this._notifyScopeListeners(),this},t.prototype.setExtra=function(t,e){var n;return this._extra=Object(r.a)(Object(r.a)({},this._extra),((n={})[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setFingerprint=function(t){return this._fingerprint=t,this._notifyScopeListeners(),this},t.prototype.setLevel=function(t){return this._level=t,this._notifyScopeListeners(),this},t.prototype.setTransactionName=function(t){return this._transactionName=t,this._notifyScopeListeners(),this},t.prototype.setTransaction=function(t){return this.setTransactionName(t)},t.prototype.setContext=function(t,e){var n;return null===e?delete this._contexts[t]:this._contexts=Object(r.a)(Object(r.a)({},this._contexts),((n={})[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setSpan=function(span){return this._span=span,this._notifyScopeListeners(),this},t.prototype.getSpan=function(){return this._span},t.prototype.getTransaction=function(){var t,e,n,r,span=this.getSpan();return(null===(t=span)||void 0===t?void 0:t.transaction)?null===(e=span)||void 0===e?void 0:e.transaction:(null===(r=null===(n=span)||void 0===n?void 0:n.spanRecorder)||void 0===r?void 0:r.spans[0])?span.spanRecorder.spans[0]:void 0},t.prototype.setSession=function(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this},t.prototype.getSession=function(){return this._session},t.prototype.update=function(e){if(!e)return this;if("function"==typeof e){var n=e(this);return n instanceof t?n:this}return e instanceof t?(this._tags=Object(r.a)(Object(r.a)({},this._tags),e._tags),this._extra=Object(r.a)(Object(r.a)({},this._extra),e._extra),this._contexts=Object(r.a)(Object(r.a)({},this._contexts),e._contexts),e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint)):Object(o.h)(e)&&(e=e,this._tags=Object(r.a)(Object(r.a)({},this._tags),e.tags),this._extra=Object(r.a)(Object(r.a)({},this._extra),e.extra),this._contexts=Object(r.a)(Object(r.a)({},this._contexts),e.contexts),e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint)),this},t.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},t.prototype.addBreadcrumb=function(t,e){var n=Object(r.a)({timestamp:Object(c.a)()},t);return this._breadcrumbs=void 0!==e&&e>=0?Object(r.g)(this._breadcrumbs,[n]).slice(-e):Object(r.g)(this._breadcrumbs,[n]),this._notifyScopeListeners(),this},t.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},t.prototype.applyToEvent=function(t,e){var n;if(this._extra&&Object.keys(this._extra).length&&(t.extra=Object(r.a)(Object(r.a)({},this._extra),t.extra)),this._tags&&Object.keys(this._tags).length&&(t.tags=Object(r.a)(Object(r.a)({},this._tags),t.tags)),this._user&&Object.keys(this._user).length&&(t.user=Object(r.a)(Object(r.a)({},this._user),t.user)),this._contexts&&Object.keys(this._contexts).length&&(t.contexts=Object(r.a)(Object(r.a)({},this._contexts),t.contexts)),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts=Object(r.a)({trace:this._span.getTraceContext()},t.contexts);var o=null===(n=this._span.transaction)||void 0===n?void 0:n.name;o&&(t.tags=Object(r.a)({transaction:o},t.tags))}return this._applyFingerprint(t),t.breadcrumbs=Object(r.g)(t.breadcrumbs||[],this._breadcrumbs),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,this._notifyEventProcessors(Object(r.g)(d(),this._eventProcessors),t,e)},t.prototype._notifyEventProcessors=function(t,e,n,c){var f=this;return void 0===c&&(c=0),new l.a((function(l,h){var d=t[c];if(null===e||"function"!=typeof d)l(e);else{var v=d(Object(r.a)({},e),n);Object(o.m)(v)?v.then((function(e){return f._notifyEventProcessors(t,e,n,c+1).then(l)})).then(null,h):f._notifyEventProcessors(t,v,n,c+1).then(l).then(null,h)}}))},t.prototype._notifyScopeListeners=function(){var t=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(e){e(t)})),this._notifyingListeners=!1)},t.prototype._applyFingerprint=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t}();function d(){var t=Object(f.e)();return t.__SENTRY__=t.__SENTRY__||{},t.__SENTRY__.globalEventProcessors=t.__SENTRY__.globalEventProcessors||[],t.__SENTRY__.globalEventProcessors}function v(t){d().push(t)}},,,,,,,,function(t,e,n){"use strict";(function(t){function r(){return"[object process]"===Object.prototype.toString.call(void 0!==t?t:0)}function o(t,e){return t.require(e)}n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o}))}).call(this,n(98))},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(4);function o(t){try{for(var e=t,n=[],r=0,o=0,l=" > ".length,f=void 0;e&&r++<5&&!("html"===(f=c(e))||r>1&&o+n.length*l+f.length>=80);)n.push(f),o+=f.length,e=e.parentNode;return n.reverse().join(" > ")}catch(t){return""}}function c(t){var e,n,o,c,i,l=t,f=[];if(!l||!l.tagName)return"";if(f.push(l.tagName.toLowerCase()),l.id&&f.push("#"+l.id),(e=l.className)&&Object(r.k)(e))for(n=e.split(/\s+/),i=0;i"}0!==e.length&&Object(o.b)().addBreadcrumb({category:"ui."+t.name,message:e},{event:t.event,name:t.name,global:t.global})},t.prototype._xhrBreadcrumb=function(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;var e=t.xhr.__sentry_xhr__||{},n=e.method,r=e.url,c=e.status_code,body=e.body;Object(o.b)().addBreadcrumb({category:"xhr",data:{method:n,url:r,status_code:c},type:"http"},{xhr:t.xhr,input:body})}else;},t.prototype._fetchBreadcrumb=function(t){t.endTimestamp&&(t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method||(t.error?Object(o.b)().addBreadcrumb({category:"fetch",data:t.fetchData,level:c.a.Error,type:"http"},{data:t.error,input:t.args}):Object(o.b)().addBreadcrumb({category:"fetch",data:Object(r.a)(Object(r.a)({},t.fetchData),{status_code:t.response.status}),type:"http"},{input:t.args,response:t.response})))},t.prototype._historyBreadcrumb=function(t){var e=Object(l.e)(),n=t.from,r=t.to,c=Object(l.h)(e.location.href),f=Object(l.h)(n),h=Object(l.h)(r);f.path||(f=c),c.protocol===h.protocol&&c.host===h.host&&(r=h.relative),c.protocol===f.protocol&&c.host===f.host&&(n=f.relative),Object(o.b)().addBreadcrumb({category:"navigation",data:{from:n,to:r}})},t.id="Breadcrumbs",t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return y}));var r=n(0),o=n(15),c=n(86),l=n(9),f=n(52),h=n(4),d=n(5),v=n(42),m=n(21),y=function(){function t(e){this.name=t.id,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=Object(r.a)({onerror:!0,onunhandledrejection:!0},e)}return t.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(l.a.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&(l.a.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},t.prototype._installGlobalOnErrorHandler=function(){var e=this;this._onErrorHandlerInstalled||(Object(f.a)({callback:function(data){var n=data.error,r=Object(o.b)(),c=r.getIntegration(t),l=n&&!0===n.__sentry_own_request__;if(c&&!Object(m.b)()&&!l){var f=r.getClient(),y=Object(h.i)(n)?e._eventFromIncompleteOnError(data.msg,data.url,data.line,data.column):e._enhanceEventWithInitialFrame(Object(v.c)(n,void 0,{attachStacktrace:f&&f.getOptions().attachStacktrace,rejection:!1}),data.url,data.line,data.column);Object(d.a)(y,{handled:!1,type:"onerror"}),r.captureEvent(y,{originalException:n})}},type:"error"}),this._onErrorHandlerInstalled=!0)},t.prototype._installGlobalOnUnhandledRejectionHandler=function(){var e=this;this._onUnhandledRejectionHandlerInstalled||(Object(f.a)({callback:function(n){var r=n;try{"reason"in n?r=n.reason:"detail"in n&&"reason"in n.detail&&(r=n.detail.reason)}catch(t){}var l=Object(o.b)(),f=l.getIntegration(t),y=r&&!0===r.__sentry_own_request__;if(!f||Object(m.b)()||y)return!0;var w=l.getClient(),_=Object(h.i)(r)?e._eventFromRejectionWithPrimitive(r):Object(v.c)(r,void 0,{attachStacktrace:w&&w.getOptions().attachStacktrace,rejection:!0});_.level=c.a.Error,Object(d.a)(_,{handled:!1,type:"onunhandledrejection"}),l.captureEvent(_,{originalException:r})},type:"unhandledrejection"}),this._onUnhandledRejectionHandlerInstalled=!0)},t.prototype._eventFromIncompleteOnError=function(t,e,line,n){var r,o=Object(h.e)(t)?t.message:t;if(Object(h.k)(o)){var c=o.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);c&&(r=c[1],o=c[2])}var l={exception:{values:[{type:r||"Error",value:o}]}};return this._enhanceEventWithInitialFrame(l,e,line,n)},t.prototype._eventFromRejectionWithPrimitive=function(t){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(t)}]}}},t.prototype._enhanceEventWithInitialFrame=function(t,e,line,n){t.exception=t.exception||{},t.exception.values=t.exception.values||[],t.exception.values[0]=t.exception.values[0]||{},t.exception.values[0].stacktrace=t.exception.values[0].stacktrace||{},t.exception.values[0].stacktrace.frames=t.exception.values[0].stacktrace.frames||[];var r=isNaN(parseInt(n,10))?void 0:n,o=isNaN(parseInt(line,10))?void 0:line,c=Object(h.k)(e)&&e.length>0?e:Object(d.f)();return 0===t.exception.values[0].stacktrace.frames.length&&t.exception.values[0].stacktrace.frames.push({colno:r,filename:c,function:"?",in_app:!0,lineno:o}),t},t.id="GlobalHandlers",t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var r=n(0),o=n(74),c=n(15),l=n(4),f=n(62),h=n(51),d=function(){function t(e){void 0===e&&(e={}),this.name=t.id,this._key=e.key||"cause",this._limit=e.limit||5}return t.prototype.setupOnce=function(){Object(o.b)((function(e,n){var r=Object(c.b)().getIntegration(t);return r?r._handler(e,n):e}))},t.prototype._handler=function(t,e){if(!(t.exception&&t.exception.values&&e&&Object(l.g)(e.originalException,Error)))return t;var n=this._walkErrorTree(e.originalException,this._key);return t.exception.values=Object(r.g)(n,t.exception.values),t},t.prototype._walkErrorTree=function(t,e,n){if(void 0===n&&(n=[]),!Object(l.g)(t[e],Error)||n.length+1>=this._limit)return n;var o=Object(h.a)(t[e]),c=Object(f.c)(o);return this._walkErrorTree(t[e],e,Object(r.g)([c],n))},t.id="LinkedErrors",t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r=n(0),o=n(74),c=n(15),l=n(5),f=Object(l.e)(),h=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(){Object(o.b)((function(e){var n,o,l;if(Object(c.b)().getIntegration(t)){if(!f.navigator&&!f.location&&!f.document)return e;var h=(null===(n=e.request)||void 0===n?void 0:n.url)||(null===(o=f.location)||void 0===o?void 0:o.href),d=(f.document||{}).referrer,v=(f.navigator||{}).userAgent,m=Object(r.a)(Object(r.a)(Object(r.a)({},null===(l=e.request)||void 0===l?void 0:l.headers),d&&{Referer:d}),v&&{"User-Agent":v}),y=Object(r.a)(Object(r.a)({},h&&{url:h}),{headers:m});return Object(r.a)(Object(r.a)({},e),{request:y})}return e}))},t.id="UserAgent",t}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(15),o=n(9);function c(t,e){!0===e.debug&&o.a.enable();var n=Object(r.b)(),c=new t(e);n.bindClient(c)}},,function(t,e,n){"use strict";var r={name:"ClientOnly",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(t,e){var n=e.parent,r=e.slots,o=e.props,c=r(),l=c.default;void 0===l&&(l=[]);var f=c.placeholder;return n._isMounted?l:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||f)?t(o.placeholderTag,{class:["client-only-placeholder"]},o.placeholder||f):l.length>0?l.map((function(){return t(!1)})):t(!1))}};t.exports=r},,function(t,e,n){t.exports=function(){"use strict";function t(e){return(t="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})(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){for(var i=0;i(b=parseInt(b.getAttribute("tabindex")))?1:a1&&void 0!==arguments[1]?arguments[1]:"flex";t.style.opacity="",t.style.display=e},Nt=function(t){t.style.opacity="",t.style.display="none"},Ct=function(t,e,n){e?At(t,n):Nt(t)},Pt=function(t){return!(!t||!(t.offsetWidth||t.offsetHeight||t.getClientRects().length))},Dt=function(t){return!!(t.scrollHeight>t.clientHeight)},Rt=function(t){var style=window.getComputedStyle(t),e=parseFloat(style.getPropertyValue("animation-duration")||"0"),n=parseFloat(style.getPropertyValue("transition-duration")||"0");return e>0||n>0},Lt=function(t,e){if("function"==typeof t.contains)return t.contains(e)},Mt=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ct();Pt(n)&&(e&&(n.style.transition="none",n.style.width="100%"),setTimeout((function(){n.style.transition="width ".concat(t/1e3,"s linear"),n.style.width="0%"}),10))},Ut=function(){var t=ct(),e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";var n=parseInt(window.getComputedStyle(t).width),r=parseInt(e/n*100);t.style.removeProperty("transition"),t.style.width="".concat(r,"%")},Vt=function(){return"undefined"==typeof window||"undefined"==typeof document},Ft='\n
\n
\n
    \n
    \n
    \n
    \n
    \n
    \n \n

    \n \n
    \n
    \n
    \n \n \n
    \n \n \n
    \n \n
    \n \n \n
    \n
    \n
    \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n').replace(/(^|\n)\s*/g,""),qt=function(){var t=G();return!!t&&(t.parentNode.removeChild(t),St([document.documentElement,document.body],[z["no-backdrop"],z["toast-shown"],z["has-column"]]),!0)},Bt=function(t){Kr.isVisible()&&Ot!==t.target.value&&Kr.resetValidationMessage(),Ot=t.target.value},zt=function(){var content=J(),input=jt(content,z.input),t=jt(content,z.file),e=content.querySelector(".".concat(z.range," input")),n=content.querySelector(".".concat(z.range," output")),select=jt(content,z.select),r=content.querySelector(".".concat(z.checkbox," input")),textarea=jt(content,z.textarea);input.oninput=Bt,t.onchange=Bt,select.onchange=Bt,r.onchange=Bt,textarea.oninput=Bt,e.oninput=function(t){Bt(t),n.value=e.value},e.onchange=function(t){Bt(t),e.nextSibling.value=e.value}},Ht=function(t){return"string"==typeof t?document.querySelector(t):t},Gt=function(t){var e=Y();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},Kt=function(t){"rtl"===window.getComputedStyle(t).direction&&kt(G(),z.rtl)},Wt=function(t){var e=qt();if(Vt())j("SweetAlert2 requires document to initialize");else{var n=document.createElement("div");n.className=z.container,e&&kt(n,z["no-transition"]),yt(n,Ft);var r=Ht(t.target);r.appendChild(n),Gt(t),Kt(r),zt()}},Yt=function(param,e){param instanceof HTMLElement?e.appendChild(param):"object"===t(param)?Xt(param,e):param&&yt(e,param)},Xt=function(param,t){param.jquery?$t(t,param):yt(t,param.toString())},$t=function(t,e){if(t.textContent="",0 in e)for(var i=0;i in e;i++)t.appendChild(e[i].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},Qt=function(){if(Vt())return!1;var t=document.createElement("div"),e={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&void 0!==t.style[i])return e[i];return!1}(),Jt=function(){var t=document.createElement("div");t.className=z["scrollbar-measure"],document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},Zt=function(t,e){var n=at(),r=it(),o=ot();e.showConfirmButton||e.showCancelButton||Nt(n),_t(n,e,"actions"),ee(r,"confirm",e),ee(o,"cancel",e),e.buttonsStyling?te(r,o,e):(St([r,o],z.styled),r.style.backgroundColor=r.style.borderLeftColor=r.style.borderRightColor="",o.style.backgroundColor=o.style.borderLeftColor=o.style.borderRightColor=""),e.reverseButtons&&r.parentNode.insertBefore(o,r)};function te(t,e,n){if(kt([t,e],z.styled),n.confirmButtonColor&&(t.style.backgroundColor=n.confirmButtonColor),n.cancelButtonColor&&(e.style.backgroundColor=n.cancelButtonColor),!mt()){var r=window.getComputedStyle(t).getPropertyValue("background-color");t.style.borderLeftColor=r,t.style.borderRightColor=r}}function ee(button,t,e){Ct(button,e["show".concat(I(t),"Button")],"inline-block"),yt(button,e["".concat(t,"ButtonText")]),button.setAttribute("aria-label",e["".concat(t,"ButtonAriaLabel")]),button.className=z[t],_t(button,e,"".concat(t,"Button")),kt(button,e["".concat(t,"ButtonClass")])}function ne(t,e){"string"==typeof e?t.style.background=e:e||kt([document.documentElement,document.body],z["no-backdrop"])}function re(t,e){e in z?kt(t,z[e]):(S('The "position" parameter is not valid, defaulting to "center"'),kt(t,z.center))}function ie(t,e){if(e&&"string"==typeof e){var n="grow-".concat(e);n in z&&kt(t,z[n])}}var oe=function(t,e){var n=G();if(n){ne(n,e.backdrop),!e.backdrop&&e.allowOutsideClick&&S('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),re(n,e.position),ie(n,e.grow),_t(n,e,"container");var r=document.body.getAttribute("data-swal2-queue-step");r&&(n.setAttribute("data-queue-step",r),document.body.removeAttribute("data-swal2-queue-step"))}},ae={promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},se=["input","file","range","select","radio","checkbox","textarea"],ue=function(t,e){var content=J(),n=ae.innerParams.get(t),r=!n||e.input!==n.input;se.forEach((function(t){var n=z[t],o=jt(content,n);fe(t,e.inputAttributes),o.className=n,r&&Nt(o)})),e.input&&(r&&ce(e),he(e))},ce=function(t){if(!ve[t.input])return j('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(t.input,'"'));var e=de(t.input),input=ve[t.input](e,t);At(input),setTimeout((function(){It(input)}))},le=function(input){for(var i=0;ie?"".concat(t,"px"):null})).observe(textarea,{attributes:!0,attributeFilter:["style"]})}return textarea};var me=function(t,e){var content=J().querySelector("#".concat(z.content));e.html?(Yt(e.html,content),At(content,"block")):e.text?(content.textContent=e.text,At(content,"block")):Nt(content),ue(t,e),_t(J(),e,"content")},ge=function(t,e){var footer=ut();Ct(footer,e.footer),e.footer&&Yt(e.footer,footer),_t(footer,e,"footer")},ye=function(t,e){var n=lt();yt(n,e.closeButtonHtml),_t(n,e,"closeButton"),Ct(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel)},be=function(t,e){var n=ae.innerParams.get(t);if(n&&e.icon===n.icon&&$())_t($(),e,"icon");else if(we(),e.icon)if(-1!==Object.keys(H).indexOf(e.icon)){var r=K(".".concat(z.icon,".").concat(H[e.icon]));At(r),Ee(r,e),_e(),_t(r,e,"icon"),kt(r,e.showClass.icon)}else j('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(e.icon,'"'))},we=function(){for(var t=X(),i=0;i\n \n
    \n
    \n '):"error"===e.icon?yt(t,'\n \n \n \n \n '):yt(t,Oe({question:"?",warning:"!",info:"i"}[e.icon]))},Oe=function(content){return'
    ').concat(content,"
    ")},Ie=function(t,e){var image=tt();if(!e.imageUrl)return Nt(image);At(image,""),image.setAttribute("src",e.imageUrl),image.setAttribute("alt",e.imageAlt),xt(image,"width",e.imageWidth),xt(image,"height",e.imageHeight),image.className=z.image,_t(image,e,"image")},Te=[],ke=function(t){var e=this;Te=t;var n=function(t,e){Te=[],t(e)},r=[];return new Promise((function(t){!function o(i,c){i=e.progressSteps.length&&S("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach((function(t,o){var c=Ae(t);if(n.appendChild(c),o===r&&kt(c,z["active-progress-step"]),o!==e.progressSteps.length-1){var l=Ne(e);n.appendChild(l)}}))},Pe=function(t,e){var title=Q();Ct(title,e.title||e.titleText),e.title&&Yt(e.title,title),e.titleText&&(title.innerText=e.titleText),_t(title,e,"title")},De=function(t,e){var header=st();_t(header,e,"header"),Ce(t,e),be(t,e),Ie(t,e),Pe(t,e),ye(t,e)},Re=function(t,e){var n=Y();xt(n,"width",e.width),xt(n,"padding",e.padding),e.background&&(n.style.background=e.background),Le(n,e)},Le=function(t,e){t.className="".concat(z.popup," ").concat(Pt(t)?e.showClass.popup:""),e.toast?(kt([document.documentElement,document.body],z["toast-shown"]),kt(t,z.toast)):kt(t,z.modal),_t(t,e,"popup"),"string"==typeof e.customClass&&kt(t,e.customClass),e.icon&&kt(t,z["icon-".concat(e.icon)])},Me=function(t,e){Re(t,e),oe(t,e),De(t,e),me(t,e),Zt(t,e),ge(t,e),"function"==typeof e.onRender&&e.onRender(Y())},Ue=function(){return Pt(Y())},Ve=function(){return it()&&it().click()},Fe=function(){return ot()&&ot().click()};function qe(){for(var t=this,e=arguments.length,n=new Array(e),r=0;rwindow.innerHeight&&(gt.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(gt.previousBodyPadding+Jt(),"px"))},mn=function(){null!==gt.previousBodyPadding&&(document.body.style.paddingRight="".concat(gt.previousBodyPadding,"px"),gt.previousBodyPadding=null)},gn=function(){if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!bt(document.body,z.iosfix)){var t=document.body.scrollTop;document.body.style.top="".concat(-1*t,"px"),kt(document.body,z.iosfix),bn(),yn()}},yn=function(){if(!navigator.userAgent.match(/(CriOS|FxiOS|EdgiOS|YaBrowser|UCBrowser)/i)){var t=44;Y().scrollHeight>window.innerHeight-t&&(G().style.paddingBottom="".concat(t,"px"))}},bn=function(){var t,e=G();e.ontouchstart=function(e){t=wn(e.target)},e.ontouchmove=function(e){t&&(e.preventDefault(),e.stopPropagation())}},wn=function(t){var e=G();return t===e||!(Dt(e)||"INPUT"===t.tagName||Dt(J())&&J().contains(t))},_n=function(){if(bt(document.body,z.iosfix)){var t=parseInt(document.body.style.top,10);St(document.body,z.iosfix),document.body.style.top="",document.body.scrollTop=-1*t}},En=function(){return!!window.MSInputMethodContext&&!!document.documentMode},On=function(){var t=G(),e=Y();t.style.removeProperty("align-items"),e.offsetTop<0&&(t.style.alignItems="flex-start")},In=function(){"undefined"!=typeof window&&En()&&(On(),window.addEventListener("resize",On))},Tn=function(){"undefined"!=typeof window&&En()&&window.removeEventListener("resize",On)},kn=function(){k(document.body.children).forEach((function(t){t===G()||Lt(t,G())||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")),t.setAttribute("aria-hidden","true"))}))},Sn=function(){k(document.body.children).forEach((function(t){t.hasAttribute("data-previous-aria-hidden")?(t.setAttribute("aria-hidden",t.getAttribute("data-previous-aria-hidden")),t.removeAttribute("data-previous-aria-hidden")):t.removeAttribute("aria-hidden")}))},jn={swalPromiseResolve:new WeakMap};function xn(t,e,n,r){n?Dn(t,r):(We().then((function(){return Dn(t,r)})),Ge.keydownTarget.removeEventListener("keydown",Ge.keydownHandler,{capture:Ge.keydownListenerCapture}),Ge.keydownHandlerAdded=!1),e.parentNode&&!document.body.getAttribute("data-swal2-queue-step")&&e.parentNode.removeChild(e),pt()&&(mn(),_n(),Tn(),Sn()),An()}function An(){St([document.documentElement,document.body],[z.shown,z["height-auto"],z["no-backdrop"],z["toast-shown"],z["toast-column"]])}function Nn(t){var e=Y();if(e){var n=ae.innerParams.get(this);if(n&&!bt(e,n.hideClass.popup)){var r=jn.swalPromiseResolve.get(this);St(e,n.showClass.popup),kt(e,n.hideClass.popup);var o=G();St(o,n.showClass.backdrop),kt(o,n.hideClass.backdrop),Cn(this,e,n),void 0!==t?(t.isDismissed=void 0!==t.dismiss,t.isConfirmed=void 0===t.dismiss):t={isDismissed:!0,isConfirmed:!1},r(t||{})}}}var Cn=function(t,e,n){var r=G(),o=Qt&&Rt(e),c=n.onClose,l=n.onAfterClose;null!==c&&"function"==typeof c&&c(e),o?Pn(t,e,r,l):xn(t,r,vt(),l)},Pn=function(t,e,n,r){Ge.swalCloseEventFinishedCallback=xn.bind(null,t,n,vt(),r),e.addEventListener(Qt,(function(t){t.target===e&&(Ge.swalCloseEventFinishedCallback(),delete Ge.swalCloseEventFinishedCallback)}))},Dn=function(t,e){setTimeout((function(){"function"==typeof e&&e(),t._destroy()}))};function Rn(t,e,n){var r=ae.domCache.get(t);e.forEach((function(button){r[button].disabled=n}))}function Ln(input,t){if(!input)return!1;if("radio"===input.type)for(var e=input.parentNode.parentNode.querySelectorAll("input"),i=0;i")),Wt(t)}var Xn=function(t){var e=G(),n=Y();"function"==typeof t.onBeforeOpen&&t.onBeforeOpen(n);var r=window.getComputedStyle(document.body).overflowY;Zn(e,n,t),Qn(e,n),pt()&&(Jn(e,t.scrollbarPadding,r),kn()),vt()||Ge.previousActiveElement||(Ge.previousActiveElement=document.activeElement),"function"==typeof t.onOpen&&setTimeout((function(){return t.onOpen(n)})),St(e,z["no-transition"])};function $n(t){var e=Y();if(t.target===e){var n=G();e.removeEventListener(Qt,$n),n.style.overflowY="auto"}}var Qn=function(t,e){Qt&&Rt(e)?(t.style.overflowY="hidden",e.addEventListener(Qt,$n)):t.style.overflowY="auto"},Jn=function(t,e,n){gn(),In(),e&&"hidden"!==n&&vn(),setTimeout((function(){t.scrollTop=0}))},Zn=function(t,e,n){kt(t,n.showClass.backdrop),At(e),kt(e,n.showClass.popup),kt([document.documentElement,document.body],z.shown),n.heightAuto&&n.backdrop&&!n.toast&&kt([document.documentElement,document.body],z["height-auto"])},er=function(t,e){"select"===e.input||"radio"===e.input?ar(t,e):-1!==["text","email","number","tel","textarea"].indexOf(e.input)&&(P(e.inputValue)||R(e.inputValue))&&sr(t,e)},nr=function(t,e){var input=t.getInput();if(!input)return null;switch(e.input){case"checkbox":return rr(input);case"radio":return ir(input);case"file":return or(input);default:return e.inputAutoTrim?input.value.trim():input.value}},rr=function(input){return input.checked?1:0},ir=function(input){return input.checked?input.value:null},or=function(input){return input.files.length?null!==input.getAttribute("multiple")?input.files:input.files[0]:null},ar=function(e,n){var content=J(),r=function(t){return ur[n.input](content,cr(t),n)};P(n.inputOptions)||R(n.inputOptions)?(ze(),D(n.inputOptions).then((function(t){e.hideLoading(),r(t)}))):"object"===t(n.inputOptions)?r(n.inputOptions):j("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(t(n.inputOptions)))},sr=function(t,e){var input=t.getInput();Nt(input),D(e.inputValue).then((function(n){input.value="number"===e.input?parseFloat(n)||0:"".concat(n),At(input),input.focus(),t.hideLoading()})).catch((function(e){j("Error in inputValue promise: ".concat(e)),input.value="",At(input),input.focus(),t.hideLoading()}))},ur={select:function(content,t,e){var select=jt(content,z.select),n=function(t,n,r){var option=document.createElement("option");option.value=r,yt(option,n),e.inputValue.toString()===r.toString()&&(option.selected=!0),t.appendChild(option)};t.forEach((function(t){var e=t[0],r=t[1];if(Array.isArray(r)){var optgroup=document.createElement("optgroup");optgroup.label=e,optgroup.disabled=!1,select.appendChild(optgroup),r.forEach((function(t){return n(optgroup,t[1],t[0])}))}else n(select,r,e)})),select.focus()},radio:function(content,t,e){var n=jt(content,z.radio);t.forEach((function(t){var r=t[0],o=t[1],c=document.createElement("input"),l=document.createElement("label");c.type="radio",c.name=z.radio,c.value=r,e.inputValue.toString()===r.toString()&&(c.checked=!0);var label=document.createElement("span");yt(label,o),label.className=z.label,l.appendChild(c),l.appendChild(label),n.appendChild(l)}));var r=n.querySelectorAll("input");r.length&&r[0].focus()}},cr=function e(n){var r=[];return"undefined"!=typeof Map&&n instanceof Map?n.forEach((function(n,o){var c=n;"object"===t(c)&&(c=e(c)),r.push([o,c])})):Object.keys(n).forEach((function(o){var c=n[o];"object"===t(c)&&(c=e(c)),r.push([o,c])})),r},lr=function(t,e){t.disableButtons(),e.input?pr(t,e):vr(t,e,!0)},fr=function(t,e){t.disableButtons(),e(L.cancel)},pr=function(t,e){var n=nr(t,e);e.inputValidator?(t.disableInput(),Promise.resolve().then((function(){return D(e.inputValidator(n,e.validationMessage))})).then((function(r){t.enableButtons(),t.enableInput(),r?t.showValidationMessage(r):vr(t,e,n)}))):t.getInput().checkValidity()?vr(t,e,n):(t.enableButtons(),t.showValidationMessage(e.validationMessage))},dr=function(t,e){t.closePopup({value:e})},vr=function(t,e,n){e.showLoaderOnConfirm&&ze(),e.preConfirm?(t.resetValidationMessage(),Promise.resolve().then((function(){return D(e.preConfirm(n,e.validationMessage))})).then((function(e){Pt(nt())||!1===e?t.hideLoading():dr(t,void 0===e?n:e)}))):dr(t,n)},mr=function(t,e,n,r){e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1),n.toast||(e.keydownHandler=function(e){return _r(t,e,r)},e.keydownTarget=n.keydownListenerCapture?window:Y(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},gr=function(t,e,n){for(var r=ht(),i=0;i:first-child,.swal2-container.swal2-bottom-left>:first-child,.swal2-container.swal2-bottom-right>:first-child,.swal2-container.swal2-bottom-start>:first-child,.swal2-container.swal2-bottom>:first-child{margin-top:auto}.swal2-container.swal2-grow-fullscreen>.swal2-modal{display:flex!important;flex:1;align-self:stretch;justify-content:center}.swal2-container.swal2-grow-row>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-grow-column{flex:1;flex-direction:column}.swal2-container.swal2-grow-column.swal2-bottom,.swal2-container.swal2-grow-column.swal2-center,.swal2-container.swal2-grow-column.swal2-top{align-items:center}.swal2-container.swal2-grow-column.swal2-bottom-left,.swal2-container.swal2-grow-column.swal2-bottom-start,.swal2-container.swal2-grow-column.swal2-center-left,.swal2-container.swal2-grow-column.swal2-center-start,.swal2-container.swal2-grow-column.swal2-top-left,.swal2-container.swal2-grow-column.swal2-top-start{align-items:flex-start}.swal2-container.swal2-grow-column.swal2-bottom-end,.swal2-container.swal2-grow-column.swal2-bottom-right,.swal2-container.swal2-grow-column.swal2-center-end,.swal2-container.swal2-grow-column.swal2-center-right,.swal2-container.swal2-grow-column.swal2-top-end,.swal2-container.swal2-grow-column.swal2-top-right{align-items:flex-end}.swal2-container.swal2-grow-column>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-no-transition{transition:none!important}.swal2-container:not(.swal2-top):not(.swal2-top-start):not(.swal2-top-end):not(.swal2-top-left):not(.swal2-top-right):not(.swal2-center-start):not(.swal2-center-end):not(.swal2-center-left):not(.swal2-center-right):not(.swal2-bottom):not(.swal2-bottom-start):not(.swal2-bottom-end):not(.swal2-bottom-left):not(.swal2-bottom-right):not(.swal2-grow-fullscreen)>.swal2-modal{margin:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-container .swal2-modal{margin:0!important}}.swal2-popup{display:none;position:relative;box-sizing:border-box;flex-direction:column;justify-content:center;width:32em;max-width:100%;padding:1.25em;border:none;border-radius:.3125em;background:#fff;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-header{display:flex;flex-direction:column;align-items:center;padding:0 1.8em}.swal2-title{position:relative;max-width:100%;margin:0 0 .4em;padding:0;color:#595959;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-actions{display:flex;z-index:1;flex-wrap:wrap;align-items:center;justify-content:center;width:100%;margin:1.25em auto 0}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}.swal2-actions.swal2-loading .swal2-styled.swal2-confirm{box-sizing:border-box;width:2.5em;height:2.5em;margin:.46875em;padding:0;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border:.25em solid transparent;border-radius:100%;border-color:transparent;background-color:transparent!important;color:transparent!important;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-actions.swal2-loading .swal2-styled.swal2-cancel{margin-right:30px;margin-left:30px}.swal2-actions.swal2-loading :not(.swal2-styled).swal2-confirm::after{content:"";display:inline-block;width:15px;height:15px;margin-left:5px;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border:3px solid #999;border-radius:50%;border-right-color:transparent;box-shadow:1px 1px 1px #fff}.swal2-styled{margin:.3125em;padding:.625em 2em;box-shadow:none;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#3085d6;color:#fff;font-size:1.0625em}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#aaa;color:#fff;font-size:1.0625em}.swal2-styled:focus{outline:0;box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(50,100,150,.4)}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1.25em 0 0;padding:1em 0 0;border-top:1px solid #eee;color:#545454;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;height:.25em;overflow:hidden;border-bottom-right-radius:.3125em;border-bottom-left-radius:.3125em}.swal2-timer-progress-bar{width:100%;height:.25em;background:rgba(0,0,0,.2)}.swal2-image{max-width:100%;margin:1.25em auto}.swal2-close{position:absolute;z-index:2;top:0;right:0;align-items:center;justify-content:center;width:1.2em;height:1.2em;padding:0;overflow:hidden;transition:color .1s ease-out;border:none;border-radius:0;background:0 0;color:#ccc;font-family:serif;font-size:2.5em;line-height:1.2;cursor:pointer}.swal2-close:hover{transform:none;background:0 0;color:#f27474}.swal2-close::-moz-focus-inner{border:0}.swal2-content{z-index:1;justify-content:center;margin:0;padding:0 1.6em;color:#545454;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em auto}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:100%;transition:border-color .3s,box-shadow .3s;border:1px solid #d9d9d9;border-radius:.1875em;background:inherit;box-shadow:inset 0 1px 1px rgba(0,0,0,.06);color:inherit;font-size:1.125em}.swal2-file.swal2-inputerror,.swal2-input.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}.swal2-file:focus,.swal2-input:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:0;box-shadow:0 0 3px #c4e6f5}.swal2-file::-moz-placeholder,.swal2-input::-moz-placeholder,.swal2-textarea::-moz-placeholder{color:#ccc}.swal2-file:-ms-input-placeholder,.swal2-input:-ms-input-placeholder,.swal2-textarea:-ms-input-placeholder{color:#ccc}.swal2-file::-ms-input-placeholder,.swal2-input::-ms-input-placeholder,.swal2-textarea::-ms-input-placeholder{color:#ccc}.swal2-file::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em auto;background:#fff}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-input[type=number]{max-width:10em}.swal2-file{background:inherit;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:inherit;color:inherit;font-size:1.125em}.swal2-checkbox,.swal2-radio{align-items:center;justify-content:center;background:#fff;color:inherit}.swal2-checkbox label,.swal2-radio label{margin:0 .6em;font-size:1.125em}.swal2-checkbox input,.swal2-radio input{margin:0 .4em}.swal2-validation-message{display:none;align-items:center;justify-content:center;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.swal2-validation-message::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:1.25em auto 1.875em;border:.25em solid transparent;border-radius:50%;font-family:inherit;line-height:5em;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474;color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-error.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{-webkit-animation:swal2-animate-error-x-mark .5s;animation:swal2-animate-error-x-mark .5s}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-success{border-color:#a5dc86;color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-.25em;left:-.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-animate-success-line-tip .75s;animation:swal2-animate-success-line-tip .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-animate-success-line-long .75s;animation:swal2-animate-success-line-long .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right{-webkit-animation:swal2-rotate-success-circular-line 4.25s ease-in;animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-progress-steps{align-items:center;margin:0 0 1.25em;padding:0;background:inherit;font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{z-index:20;width:2em;height:2em;border-radius:2em;background:#3085d6;color:#fff;line-height:2em;text-align:center}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#3085d6}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;width:2.5em;height:.4em;margin:0 -1px;background:#3085d6}[class^=swal2]{-webkit-tap-highlight-color:transparent}.swal2-show{-webkit-animation:swal2-show .3s;animation:swal2-show .3s}.swal2-hide{-webkit-animation:swal2-hide .15s forwards;animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{right:auto;left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@supports (-ms-accelerator:true){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@-moz-document url-prefix(){.swal2-close:focus{outline:2px solid rgba(50,100,150,.4)}}@-webkit-keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@-webkit-keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@-webkit-keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@-webkit-keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@-webkit-keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@-webkit-keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@-webkit-keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@-webkit-keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@-webkit-keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@-webkit-keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@-webkit-keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@-webkit-keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-container{top:auto;right:auto;bottom:auto;left:auto;max-width:calc(100% - .625em * 2);background-color:transparent!important}body.swal2-no-backdrop .swal2-container>.swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}body.swal2-no-backdrop .swal2-container.swal2-top{top:0;left:50%;transform:translateX(-50%)}body.swal2-no-backdrop .swal2-container.swal2-top-left,body.swal2-no-backdrop .swal2-container.swal2-top-start{top:0;left:0}body.swal2-no-backdrop .swal2-container.swal2-top-end,body.swal2-no-backdrop .swal2-container.swal2-top-right{top:0;right:0}body.swal2-no-backdrop .swal2-container.swal2-center{top:50%;left:50%;transform:translate(-50%,-50%)}body.swal2-no-backdrop .swal2-container.swal2-center-left,body.swal2-no-backdrop .swal2-container.swal2-center-start{top:50%;left:0;transform:translateY(-50%)}body.swal2-no-backdrop .swal2-container.swal2-center-end,body.swal2-no-backdrop .swal2-container.swal2-center-right{top:50%;right:0;transform:translateY(-50%)}body.swal2-no-backdrop .swal2-container.swal2-bottom{bottom:0;left:50%;transform:translateX(-50%)}body.swal2-no-backdrop .swal2-container.swal2-bottom-left,body.swal2-no-backdrop .swal2-container.swal2-bottom-start{bottom:0;left:0}body.swal2-no-backdrop .swal2-container.swal2-bottom-end,body.swal2-no-backdrop .swal2-container.swal2-bottom-right{right:0;bottom:0}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll!important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static!important}}body.swal2-toast-shown .swal2-container{background-color:transparent}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-left,body.swal2-toast-shown .swal2-container.swal2-top-start{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-left,body.swal2-toast-shown .swal2-container.swal2-center-start{top:50%;right:auto;bottom:auto;left:0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%,-50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-left,body.swal2-toast-shown .swal2-container.swal2-bottom-start{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}body.swal2-toast-column .swal2-toast{flex-direction:column;align-items:stretch}body.swal2-toast-column .swal2-toast .swal2-actions{flex:1;align-self:stretch;height:2.2em;margin-top:.3125em}body.swal2-toast-column .swal2-toast .swal2-loading{justify-content:center}body.swal2-toast-column .swal2-toast .swal2-input{height:2em;margin:.3125em auto;font-size:1em}body.swal2-toast-column .swal2-toast .swal2-validation-message{font-size:1em}')},,function(t,e,n){"use strict";n.r(e),n.d(e,"Severity",(function(){return o.a})),n.d(e,"Status",(function(){return c.a})),n.d(e,"addGlobalEventProcessor",(function(){return l.b})),n.d(e,"addBreadcrumb",(function(){return f.a})),n.d(e,"captureException",(function(){return f.c})),n.d(e,"captureEvent",(function(){return f.b})),n.d(e,"captureMessage",(function(){return f.d})),n.d(e,"configureScope",(function(){return f.e})),n.d(e,"getHubFromCarrier",(function(){return h.c})),n.d(e,"getCurrentHub",(function(){return h.b})),n.d(e,"Hub",(function(){return h.a})),n.d(e,"makeMain",(function(){return h.d})),n.d(e,"Scope",(function(){return l.a})),n.d(e,"startTransaction",(function(){return f.l})),n.d(e,"SDK_VERSION",(function(){return d.a})),n.d(e,"setContext",(function(){return f.f})),n.d(e,"setExtra",(function(){return f.g})),n.d(e,"setExtras",(function(){return f.h})),n.d(e,"setTag",(function(){return f.i})),n.d(e,"setTags",(function(){return f.j})),n.d(e,"setUser",(function(){return f.k})),n.d(e,"withScope",(function(){return f.m})),n.d(e,"BrowserClient",(function(){return v.a})),n.d(e,"injectReportDialog",(function(){return m.a})),n.d(e,"eventFromException",(function(){return y.a})),n.d(e,"eventFromMessage",(function(){return y.b})),n.d(e,"defaultIntegrations",(function(){return w.b})),n.d(e,"forceLoad",(function(){return w.d})),n.d(e,"init",(function(){return w.e})),n.d(e,"lastEventId",(function(){return w.f})),n.d(e,"onLoad",(function(){return w.g})),n.d(e,"showReportDialog",(function(){return w.h})),n.d(e,"flush",(function(){return w.c})),n.d(e,"close",(function(){return w.a})),n.d(e,"wrap",(function(){return w.i})),n.d(e,"SDK_NAME",(function(){return _})),n.d(e,"Integrations",(function(){return j})),n.d(e,"Transports",(function(){return T}));var r=n(0),o=n(86),c=n(324),l=n(74),f=n(17),h=n(15),d=n(102),v=n(101),m=n(21),y=n(42),w=n(36),_="sentry.javascript.browser",E=n(18),O=n(5),I=n(100),T=n(126),k={},S=Object(O.e)();S.Sentry&&S.Sentry.Integrations&&(k=S.Sentry.Integrations);var j=Object(r.a)(Object(r.a)(Object(r.a)({},k),E.a),I)},function(t,e,n){"use strict";function r(t,e){for(var n=0,i=t.length-1;i>=0;i--){var r=t[i];"."===r?t.splice(i,1):".."===r?(t.splice(i,1),n++):n&&(t.splice(i,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}n.d(e,"b",(function(){return h})),n.d(e,"a",(function(){return d}));var o=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^/]+?|)(\.[^./]*|))(?:[/]*)$/;function c(t){var e=o.exec(t);return e?e.slice(1):[]}function l(){for(var t=[],e=0;e=-1&&!o;i--){var path=i>=0?t[i]:"/";path&&(n=path+"/"+n,o="/"===path.charAt(0))}return(o?"/":"")+(n=r(n.split("/").filter((function(p){return!!p})),!o).join("/"))||"."}function f(t){for(var e=0;e=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}function h(t,e){t=l(t).substr(1),e=l(e).substr(1);for(var n=f(t.split("/")),r=f(e.split("/")),o=Math.min(n.length,r.length),c=o,i=0;i>>0),k=0;function S(a,b,t){return a.call.apply(a.bind,arguments)}function j(a,b,t){if(!a)throw Error();if(2a.b&&(a.b++,b.next=a.a,a.a=b)}function K(){this.b=this.a=null}R=V("__EID__")?"__EID__":void 0,N(u,Error),u.prototype.name="CustomError",N(B,u),B.prototype.name="AssertionError",H.prototype.get=function(){if(0/g,ht=/"/g,pt=/'/g,vt=/\x00/g,mt=/[\x00&<>"']/;function gt(a,b){return-1!=a.indexOf(b)}function yt(a,b){return ab?1:0}t:{var bt=h.navigator;if(bt){var wt=bt.userAgent;if(wt){st=wt;break t}}st=""}function _t(a){return gt(st,a)}function Et(a,b){for(var t in a)b.call(void 0,a[t],t,a)}function Ot(a){for(var b in a)return!1;return!0}function It(a){var t,b={};for(t in a)b[t]=a[t];return b}var Tt="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function kt(a,b){for(var t,e,n=1;n"}else r=void 0===a?"undefined":null===a?"null":typeof a;z("Argument is not a %s (or a non-Element, non-Location mock); got: %s",b,r)}}function jt(a,b){this.a=a===Ct&&b||"",this.b=Nt}function xt(a){return a instanceof jt&&a.constructor===jt&&a.b===Nt?a.a:(z("expected object of type Const, got '"+a+"'"),"type_error:Const")}jt.prototype.sa=!0,jt.prototype.ra=function(){return this.a},jt.prototype.toString=function(){return"Const{"+this.a+"}"};var At,Nt={},Ct={};function Pt(){if(void 0===At){var a=null,b=h.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:C,createScript:C,createScriptURL:C})}catch(t){h.console&&h.console.error(t.message)}At=a}else At=a}return At}function Dt(a,b){this.a=b===Vt?a:""}function Rt(a){return a instanceof Dt&&a.constructor===Dt?a.a:(z("expected object of type TrustedResourceUrl, got '"+a+"' of type "+w(a)),"type_error:TrustedResourceUrl")}function Lt(a,b){var t=xt(a);if(!Ut.test(t))throw Error("Invalid TrustedResourceUrl format: "+t);return function(a){var b=Pt();return new Dt(a=b?b.createScriptURL(a):a,Vt)}(a=t.replace(Mt,(function(e,n){if(!Object.prototype.hasOwnProperty.call(b,n))throw Error('Found marker, "'+n+'", in format string, "'+t+'", but no valid label mapping found in args: '+JSON.stringify(b));return(e=b[n])instanceof jt?xt(e):encodeURIComponent(String(e))})))}Dt.prototype.sa=!0,Dt.prototype.ra=function(){return this.a.toString()},Dt.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var Mt=/%{(\w+)}/g,Ut=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,Vt={};function Ft(a,b){this.a=b===Wt?a:""}function qt(a){return a instanceof Ft&&a.constructor===Ft?a.a:(z("expected object of type SafeUrl, got '"+a+"' of type "+w(a)),"type_error:SafeUrl")}Ft.prototype.sa=!0,Ft.prototype.ra=function(){return this.a.toString()},Ft.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var Bt=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)|font\/\w+|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|text\/csv|video\/(?:mpeg|mp4|ogg|webm|quicktime|x-matroska))(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i,zt=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,Ht=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;function Gt(a){if(a instanceof Ft)return a;if(a="object"==typeof a&&a.sa?a.ra():String(a),Ht.test(a))a=new Ft(a,Wt);else{var b=(a=(a=String(a)).replace(/(%0A|%0D)/g,"")).match(zt);a=b&&Bt.test(b[1])?new Ft(a,Wt):null}return a}function Kt(a){return a instanceof Ft?a:(a="object"==typeof a&&a.sa?a.ra():String(a),Ht.test(a)||(a="about:invalid#zClosurez"),new Ft(a,Wt))}var Wt={},Yt=new Ft("about:invalid#zClosurez",Wt);function Xt(a,b,t){this.a=t===$t?a:""}Xt.prototype.sa=!0,Xt.prototype.ra=function(){return this.a.toString()},Xt.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var $t={};function Qt(a,b,t,e){return a=a instanceof Ft?a:Kt(a),b=b||h,t=t instanceof jt?xt(t):t||"",b.open(qt(a),t,e,void 0)}function Jt(a,b){for(var t=a.split("%s"),e="",n=Array.prototype.slice.call(arguments,1);n.length&&1")&&(a=a.replace(ft,">")),-1!=a.indexOf('"')&&(a=a.replace(ht,""")),-1!=a.indexOf("'")&&(a=a.replace(pt,"'")),-1!=a.indexOf("\0")&&(a=a.replace(vt,"�"))),a}function te(a){return te[" "](a),a}te[" "]=y;var ee,a,ne=_t("Opera"),re=_t("Trident")||_t("MSIE"),ie=_t("Edge"),oe=ie||re,ae=_t("Gecko")&&!(gt(st.toLowerCase(),"webkit")&&!_t("Edge"))&&!(_t("Trident")||_t("MSIE"))&&!_t("Edge"),se=gt(st.toLowerCase(),"webkit")&&!_t("Edge");function ue(){var a=h.document;return a?a.documentMode:void 0}t:{var ce="",le=(a=st,ae?/rv:([^\);]+)(\)|;)/.exec(a):ie?/Edge\/([\d\.]+)/.exec(a):re?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a):se?/WebKit\/(\S+)/.exec(a):ne?/(?:Version)[ \/]?(\S+)/.exec(a):void 0);if(le&&(ce=le?le[1]:""),re){var fe=ue();if(null!=fe&&fe>parseFloat(ce)){ee=String(fe);break t}}ee=ce}var he,pe={};function de(a){return function(a,b){var t=pe;return Object.prototype.hasOwnProperty.call(t,a)?t[a]:t[a]=b(a)}(a,(function(){for(var b=0,t=ut(String(ee)).split("."),e=ut(String(a)).split("."),n=Math.max(t.length,e.length),r=0;0==b&&r=a.keyCode)&&(a.keyCode=-1)}catch(t){}},un.prototype.g=function(){return this.a};var dd="closure_listenable_"+(1e6*Math.random()|0),ln=0;function fn(a,b,t,e,n){this.listener=a,this.proxy=null,this.src=b,this.type=t,this.capture=!!e,this.Va=n,this.key=++ln,this.va=this.Pa=!1}function hn(a){a.va=!0,a.listener=null,a.proxy=null,a.src=null,a.Va=null}function pn(a){this.src=a,this.a={},this.b=0}function dn(a,b){var t=b.type;t in a.a&&nt(a.a[t],b)&&(hn(b),0==a.a[t].length&&(delete a.a[t],a.b--))}function vn(a,b,t,e){for(var n=0;ne.keyCode||null!=e.returnValue)){t:{var n=!1;if(0==e.keyCode)try{e.keyCode=-1;break t}catch(t){n=!0}(n||null==e.returnValue)&&(e.returnValue=!0)}for(e=[],n=b.b;n;n=n.parentNode)e.push(n);for(a=a.type,n=e.length-1;0<=n;n--){b.b=e[n];var r=In(e[n],a,!0,b);t=t&&r}for(n=0;n>>0);function xn(a){return E(a)?a:(a[jn]||(a[jn]=function(b){return a.handleEvent(b)}),a[jn])}function An(){Je.call(this),this.v=new pn(this),this.ac=this,this.gb=null}function Nn(a,b,t,e,n){a.v.add(String(b),t,!1,e,n)}function Cn(a,b,t,e,n){a.v.add(String(b),t,!0,e,n)}function Pn(a,b,t,e){if(!(b=a.v.a[String(b)]))return!0;b=b.concat();for(var n=!0,r=0;rb)throw Error("Bad port number "+b);a.g=b}else a.g=null}function Gn(a,b,t){b instanceof or?(a.b=b,function(a,b){b&&!a.f&&(ar(a),a.c=null,a.a.forEach((function(t,e){var n=e.toLowerCase();e!=n&&(ur(this,e),lr(this,n,t))}),a)),a.f=b}(a.b,a.i)):(t||(b=Qn(b,rr)),a.b=new or(b,a.i))}function Kn(a,b,t){a.b.set(b,t)}function Wn(a,b){return a.b.get(b)}function Yn(a){return a instanceof Bn?new Bn(a):new Bn(a,void 0)}function Xn(a,b,t,e){var n=new Bn(null,void 0);return a&&zn(n,a),b&&(n.a=b),t&&Hn(n,t),e&&(n.f=e),n}function $n(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""}function Qn(a,b,t){return"string"==typeof a?(a=encodeURI(a).replace(b,Jn),t&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function Jn(a){return"%"+((a=a.charCodeAt(0))>>4&15).toString(16)+(15&a).toString(16)}Bn.prototype.toString=function(){var a=[],b=this.c;b&&a.push(Qn(b,Zn,!0),":");var t=this.a;return(t||"file"==b)&&(a.push("//"),(b=this.l)&&a.push(Qn(b,Zn,!0),"@"),a.push(encodeURIComponent(String(t)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(t=this.g)&&a.push(":",String(t))),(t=this.f)&&(this.a&&"/"!=t.charAt(0)&&a.push("/"),a.push(Qn(t,"/"==t.charAt(0)?nr:er,!0))),(t=this.b.toString())&&a.push("?",t),(t=this.h)&&a.push("#",Qn(t,ir)),a.join("")},Bn.prototype.resolve=function(a){var b=new Bn(this),t=!!a.c;t?zn(b,a.c):t=!!a.l,t?b.l=a.l:t=!!a.a,t?b.a=a.a:t=null!=a.g;var e=a.f;if(t)Hn(b,a.g);else if(t=!!a.f){if("/"!=e.charAt(0))if(this.a&&!this.f)e="/"+e;else{var n=b.f.lastIndexOf("/");-1!=n&&(e=b.f.substr(0,n+1)+e)}if(".."==(n=e)||"."==n)e="";else if(gt(n,"./")||gt(n,"/.")){e=0==n.lastIndexOf("/",0),n=n.split("/");for(var r=[],g=0;g2*a.c&&Vn(a)))}function cr(a,b){return ar(a),b=pr(a,b),Fn(a.a.b,b)}function lr(a,b,t){ur(a,b),0',a=new Xt(a=(e=Pt())?e.createHTML(a):a,null,$t),e=g.document)&&(e.write(function(a){return a instanceof Xt&&a.constructor===Xt?a.a:(z("expected object of type SafeHtml, got '"+a+"' of type "+w(a)),"type_error:SafeHtml")}(a)),e.close())):(g=Qt(b,e,t,g))&&a.noopener&&(g.opener=null),g)try{g.focus()}catch(t){}return g}var jr=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,xr=/^[^@]+@[^@]+$/;function Ar(){var a=null;return new Ae((function(b){"complete"==h.document.readyState?b():(a=function(){b()},wn(window,"load",a))})).o((function(b){throw _n(window,"load",a),b}))}function Nr(a){return a=a||qr(),!("file:"!==Kr()&&"ionic:"!==Kr()||!a.toLowerCase().match(/iphone|ipad|ipod|android/))}function Cr(){var a=h.window;try{return!(!a||a==a.top)}catch(t){return!1}}function Pr(){return void 0!==h.WorkerGlobalScope&&"function"==typeof h.importScripts}function Dr(){return e.a.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":e.a.INTERNAL.hasOwnProperty("node")?"Node":Pr()?"Worker":"Browser"}function Rr(){var a=Dr();return"ReactNative"===a||"Node"===a}var Lr="Firefox",Mr="Chrome";function Ur(a){var b=a.toLowerCase();return gt(b,"opera/")||gt(b,"opr/")||gt(b,"opios/")?"Opera":gt(b,"iemobile")?"IEMobile":gt(b,"msie")||gt(b,"trident/")?"IE":gt(b,"edge/")?"Edge":gt(b,"firefox/")?Lr:gt(b,"silk/")?"Silk":gt(b,"blackberry")?"Blackberry":gt(b,"webos")?"Webos":!gt(b,"safari/")||gt(b,"chrome/")||gt(b,"crios/")||gt(b,"android")?!gt(b,"chrome/")&&!gt(b,"crios/")||gt(b,"edge/")?gt(b,"android")?"Android":(a=a.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/))&&2==a.length?a[1]:"Other":Mr:"Safari"}var Vr={md:"FirebaseCore-web",od:"FirebaseUI-web"};function Fr(a,b){b=b||[];var t,e=[],n={};for(t in Vr)n[Vr[t]]=!0;for(t=0;tb)throw Error("Short delay should be less than long delay!");this.a=a,this.c=b,a=qr(),b=Dr(),this.b=Tr(a)||"ReactNative"===b}function ei(){var a=h.document;return!a||void 0===a.visibilityState||"visible"==a.visibilityState}function ni(a){try{var b=new Date(parseInt(a,10));if(!isNaN(b.getTime())&&!/[^0-9]/.test(a))return b.toUTCString()}catch(t){}return null}function ri(){return!(!Br("fireauth.oauthhelper",h)&&!Br("fireauth.iframe",h))}ti.prototype.get=function(){var a=h.navigator;return!a||"boolean"!=typeof a.onLine||!Gr()&&"chrome-extension:"!==Kr()&&void 0===a.connection||a.onLine?this.b?this.c:this.a:Math.min(5e3,this.a)};var ii,oi={};function ai(a){oi[a]||(oi[a]=!0,"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(a))}try{var si={};Object.defineProperty(si,"abcd",{configurable:!0,enumerable:!0,value:1}),Object.defineProperty(si,"abcd",{configurable:!0,enumerable:!0,value:2}),ii=2==si.abcd}catch(a){ii=!1}function ui(a,b,t){ii?Object.defineProperty(a,b,{configurable:!0,enumerable:!0,value:t}):a[b]=t}function ci(a,b){if(b)for(var t in b)b.hasOwnProperty(t)&&ui(a,t,b[t])}function fi(a){var b={};return ci(b,a),b}function hi(a){var b=a;if("object"==typeof a&&null!=a)for(var t in b="length"in a?[]:{},a)ui(b,t,hi(a[t]));return b}function pi(a){var b=a&&(a[yi]?"phone":null);if(!(b&&a&&a[gi]))throw new P("internal-error","Internal assert: invalid MultiFactorInfo object");ui(this,"uid",a[gi]),ui(this,"displayName",a[vi]||null);var t=null;a[mi]&&(t=new Date(a[mi]).toUTCString()),ui(this,"enrollmentTime",t),ui(this,"factorId",b)}function di(a){try{var b=new bi(a)}catch(t){b=null}return b}pi.prototype.w=function(){return{uid:this.uid,displayName:this.displayName,factorId:this.factorId,enrollmentTime:this.enrollmentTime}};var vi="displayName",mi="enrolledAt",gi="mfaEnrollmentId",yi="phoneInfo";function bi(a){pi.call(this,a),ui(this,"phoneNumber",a[yi])}function wi(a){var b={},t=a[Ii],e=a[ki],n=a[Si];if(a=di(a[Ti]),!n||n!=Ei&&n!=Oi&&!t||n==Oi&&!e||n==_i&&!a)throw Error("Invalid checkActionCode response!");n==Oi?(b[xi]=t||null,b[Ni]=t||null,b[ji]=e):(b[xi]=e||null,b[Ni]=e||null,b[ji]=t||null),b[Ai]=a||null,ui(this,Pi,n),ui(this,Ci,hi(b))}N(bi,pi),bi.prototype.w=function(){var a=bi.ab.w.call(this);return a.phoneNumber=this.phoneNumber,a};var _i="REVERT_SECOND_FACTOR_ADDITION",Ei="EMAIL_SIGNIN",Oi="VERIFY_AND_CHANGE_EMAIL",Ii="email",Ti="mfaInfo",ki="newEmail",Si="requestType",ji="email",xi="fromEmail",Ai="multiFactorInfo",Ni="previousEmail",Ci="data",Pi="operation";function Di(a){var b=Wn(a=Yn(a),Ri)||null,t=Wn(a,Li)||null,e=Wn(a,Vi)||null;if(e=e&&qi[e]||null,!b||!t||!e)throw new P("argument-error",Ri+", "+Li+"and "+Vi+" are required in a valid action code URL.");ci(this,{apiKey:b,operation:e,code:t,continueUrl:Wn(a,Mi)||null,languageCode:Wn(a,Ui)||null,tenantId:Wn(a,Fi)||null})}var Ri="apiKey",Li="oobCode",Mi="continueUrl",Ui="languageCode",Vi="mode",Fi="tenantId",qi={recoverEmail:"RECOVER_EMAIL",resetPassword:"PASSWORD_RESET",revertSecondFactorAddition:_i,signIn:Ei,verifyAndChangeEmail:Oi,verifyEmail:"VERIFY_EMAIL"};function Bi(a){try{return new Di(a)}catch(t){return null}}function zi(a){var b=a[Yi];if(void 0===b)throw new P("missing-continue-uri");if("string"!=typeof b||"string"==typeof b&&!b.length)throw new P("invalid-continue-uri");this.h=b,this.b=this.a=null,this.g=!1;var t=a[Hi];if(t&&"object"==typeof t){b=t[Qi];var e=t[Xi];if(t=t[$i],"string"==typeof b&&b.length){if(this.a=b,void 0!==e&&"boolean"!=typeof e)throw new P("argument-error",Xi+" property must be a boolean when specified.");if(this.g=!!e,void 0!==t&&("string"!=typeof t||"string"==typeof t&&!t.length))throw new P("argument-error",$i+" property must be a non empty string when specified.");this.b=t||null}else{if(void 0!==b)throw new P("argument-error",Qi+" property must be a non empty string when specified.");if(void 0!==e||void 0!==t)throw new P("missing-android-pkg-name")}}else if(void 0!==t)throw new P("argument-error",Hi+" property must be a non null object when specified.");if(this.f=null,(b=a[Wi])&&"object"==typeof b){if("string"==typeof(b=b[Ji])&&b.length)this.f=b;else if(void 0!==b)throw new P("argument-error",Ji+" property must be a non empty string when specified.")}else if(void 0!==b)throw new P("argument-error",Wi+" property must be a non null object when specified.");if(void 0!==(b=a[Ki])&&"boolean"!=typeof b)throw new P("argument-error",Ki+" property must be a boolean when specified.");if(this.c=!!b,void 0!==(a=a[Gi])&&("string"!=typeof a||"string"==typeof a&&!a.length))throw new P("argument-error",Gi+" property must be a non empty string when specified.");this.i=a||null}var Hi="android",Gi="dynamicLinkDomain",Ki="handleCodeInApp",Wi="iOS",Yi="url",Xi="installApp",$i="minimumVersion",Qi="packageName",Ji="bundleId";function Zi(a){var b={};for(var t in b.continueUrl=a.h,b.canHandleCodeInApp=a.c,(b.androidPackageName=a.a)&&(b.androidMinimumVersion=a.b,b.androidInstallApp=a.g),b.iOSBundleId=a.f,b.dynamicLinkDomain=a.i,b)null===b[t]&&delete b[t];return b}var to=null;function eo(a){var b=[];return function(a,b){function t(t){for(;et;t++)for(var e=a.concat(b[t].split("")),n=0;n>4),64!=g&&(b(r<<4&240|g>>2),64!=o&&b(g<<6&192|o))}}(a,(function(t){b.push(t)})),b}function no(a){var b=io(a);if(!(b&&b.sub&&b.iss&&b.aud&&b.exp))throw Error("Invalid JWT");this.h=a,this.a=b.exp,this.i=b.sub,a=Date.now()/1e3,this.g=b.iat||(a>this.a?this.a:a),this.b=b.provider_id||b.firebase&&b.firebase.sign_in_provider||null,this.f=b.firebase&&b.firebase.tenant||null,this.c=!!b.is_anonymous||"anonymous"==this.b}function ro(a){try{return new no(a)}catch(t){return null}}function io(a){if(!a)return null;if(3!=(a=a.split(".")).length)return null;for(var b=(4-(a=a[1]).length%4)%4,t=0;tn)a[t++]=String.fromCharCode(n);else if(191n){var r=e[b++];a[t++]=String.fromCharCode((31&n)<<6|63&r)}else if(239n){r=e[b++];var g=e[b++],o=((7&n)<<18|(63&r)<<12|(63&g)<<6|63&e[b++])-65536;a[t++]=String.fromCharCode(55296+(o>>10)),a[t++]=String.fromCharCode(56320+(1023&o))}else r=e[b++],g=e[b++],a[t++]=String.fromCharCode((15&n)<<12|(63&r)<<6|63&g)}return JSON.parse(a.join(""))}catch(t){}return null}no.prototype.T=function(){return this.f},no.prototype.l=function(){return this.c},no.prototype.toString=function(){return this.h};var oo="oauth_consumer_key oauth_nonce oauth_signature oauth_signature_method oauth_timestamp oauth_token oauth_version".split(" "),ao=["client_id","response_type","scope","redirect_uri","state"],so={nd:{Ja:"locale",ua:700,ta:600,fa:"facebook.com",Xa:ao},pd:{Ja:null,ua:500,ta:750,fa:"github.com",Xa:ao},qd:{Ja:"hl",ua:515,ta:680,fa:"google.com",Xa:ao},wd:{Ja:"lang",ua:485,ta:705,fa:"twitter.com",Xa:oo},kd:{Ja:"locale",ua:640,ta:600,fa:"apple.com",Xa:[]}};function uo(a){for(var b in so)if(so[b].fa==a)return so[b];return null}function co(a){var b={};b["facebook.com"]=vo,b["google.com"]=go,b["github.com"]=mo,b["twitter.com"]=yo;var t=a&&a[fo];try{if(t)return b[t]?new b[t](a):new po(a);if(void 0!==a[lo])return new ho(a)}catch(t){}return null}var lo="idToken",fo="providerId";function ho(a){var b=a[fo];if(!b&&a[lo]){var t=ro(a[lo]);t&&t.b&&(b=t.b)}if(!b)throw Error("Invalid additional user info!");"anonymous"!=b&&"custom"!=b||(b=null),t=!1,void 0!==a.isNewUser?t=!!a.isNewUser:"identitytoolkit#SignupNewUserResponse"===a.kind&&(t=!0),ui(this,"providerId",b),ui(this,"isNewUser",t)}function po(a){ho.call(this,a),ui(this,"profile",hi((a=$r(a.rawUserInfo||"{}"))||{}))}function vo(a){if(po.call(this,a),"facebook.com"!=this.providerId)throw Error("Invalid provider ID!")}function mo(a){if(po.call(this,a),"github.com"!=this.providerId)throw Error("Invalid provider ID!");ui(this,"username",this.profile&&this.profile.login||null)}function go(a){if(po.call(this,a),"google.com"!=this.providerId)throw Error("Invalid provider ID!")}function yo(a){if(po.call(this,a),"twitter.com"!=this.providerId)throw Error("Invalid provider ID!");ui(this,"username",a.screenName||null)}function bo(a){var b=Yn(a),t=Wn(b,"link"),e=Wn(Yn(t),"link");return b=Wn(b,"deep_link_id"),Wn(Yn(b),"link")||b||e||t||a}function wo(a,b){if(!a&&!b)throw new P("internal-error","Internal assert: no raw session string available");if(a&&b)throw new P("internal-error","Internal assert: unable to determine the session type");this.a=a||null,this.b=b||null,this.type=this.a?_o:Eo}N(po,ho),N(vo,po),N(mo,po),N(go,po),N(yo,po);var _o="enroll",Eo="signin";function Oo(){}function Io(a,b){return a.then((function(t){if(t[ls]){var e=ro(t[ls]);if(!e||b!=e.i)throw new P("user-mismatch");return t}throw new P("user-mismatch")})).o((function(t){throw t&&t.code&&t.code==L+"user-not-found"?new P("user-mismatch"):t}))}function To(a,b){if(!b)throw new P("internal-error","failed to construct a credential");this.a=b,ui(this,"providerId",a),ui(this,"signInMethod",a)}function ko(a){return{pendingToken:a.a,requestUri:"http://localhost"}}function So(a){if(a&&a.providerId&&a.signInMethod&&0==a.providerId.indexOf("saml.")&&a.pendingToken)try{return new To(a.providerId,a.pendingToken)}catch(t){}return null}function jo(a,b,t){if(this.a=null,b.idToken||b.accessToken)b.idToken&&ui(this,"idToken",b.idToken),b.accessToken&&ui(this,"accessToken",b.accessToken),b.nonce&&!b.pendingToken&&ui(this,"nonce",b.nonce),b.pendingToken&&(this.a=b.pendingToken);else{if(!b.oauthToken||!b.oauthTokenSecret)throw new P("internal-error","failed to construct a credential");ui(this,"accessToken",b.oauthToken),ui(this,"secret",b.oauthTokenSecret)}ui(this,"providerId",a),ui(this,"signInMethod",t)}function xo(a){var b={};return a.idToken&&(b.id_token=a.idToken),a.accessToken&&(b.access_token=a.accessToken),a.secret&&(b.oauth_token_secret=a.secret),b.providerId=a.providerId,a.nonce&&!a.a&&(b.nonce=a.nonce),b={postBody:sr(b).toString(),requestUri:"http://localhost"},a.a&&(delete b.postBody,b.pendingToken=a.a),b}function Ao(a){if(a&&a.providerId&&a.signInMethod){var b={idToken:a.oauthIdToken,accessToken:a.oauthTokenSecret?null:a.oauthAccessToken,oauthTokenSecret:a.oauthTokenSecret,oauthToken:a.oauthTokenSecret&&a.oauthAccessToken,nonce:a.nonce,pendingToken:a.pendingToken};try{return new jo(a.providerId,b,a.signInMethod)}catch(t){}}return null}function No(a,b){this.Qc=b||[],ci(this,{providerId:a,isOAuthProvider:!0}),this.Ib={},this.pb=(uo(a)||{}).Ja||null,this.ob=null}function Co(a){if("string"!=typeof a||0!=a.indexOf("saml."))throw new P("argument-error",'SAML provider IDs must be prefixed with "saml."');No.call(this,a,[])}function Po(a){No.call(this,a,ao),this.a=[]}function Do(){Po.call(this,"facebook.com")}function Ro(a){if(!a)throw new P("argument-error","credential failed: expected 1 argument (the OAuth access token).");var b=a;return O(a)&&(b=a.accessToken),(new Do).credential({accessToken:b})}function Lo(){Po.call(this,"github.com")}function Mo(a){if(!a)throw new P("argument-error","credential failed: expected 1 argument (the OAuth access token).");var b=a;return O(a)&&(b=a.accessToken),(new Lo).credential({accessToken:b})}function Uo(){Po.call(this,"google.com"),this.Ca("profile")}function Vo(a,b){var t=a;return O(a)&&(t=a.idToken,b=a.accessToken),(new Uo).credential({idToken:t,accessToken:b})}function Fo(){No.call(this,"twitter.com",oo)}function qo(a,b){var t=a;if(O(t)||(t={oauthToken:a,oauthTokenSecret:b}),!t.oauthToken||!t.oauthTokenSecret)throw new P("argument-error","credential failed: expected 2 arguments (the OAuth access token and secret).");return new jo("twitter.com",t,"twitter.com")}function Bo(a,b,t){this.a=a,this.f=b,ui(this,"providerId","password"),ui(this,"signInMethod",t===Ho.EMAIL_LINK_SIGN_IN_METHOD?Ho.EMAIL_LINK_SIGN_IN_METHOD:Ho.EMAIL_PASSWORD_SIGN_IN_METHOD)}function zo(a){return a&&a.email&&a.password?new Bo(a.email,a.password,a.signInMethod):null}function Ho(){ci(this,{providerId:"password",isOAuthProvider:!1})}function Go(a,b){if(!(b=Ko(b)))throw new P("argument-error","Invalid email link!");return new Bo(a,b.code,Ho.EMAIL_LINK_SIGN_IN_METHOD)}function Ko(a){return(a=Bi(a=bo(a)))&&a.operation===Ei?a:null}function Wo(a){if(!(a.eb&&a.cb||a.La&&a.ea))throw new P("internal-error");this.a=a,ui(this,"providerId","phone"),this.fa="phone",ui(this,"signInMethod","phone")}function Yo(a){if(a&&"phone"===a.providerId&&(a.verificationId&&a.verificationCode||a.temporaryProof&&a.phoneNumber)){var b={};return Q(["verificationId","verificationCode","temporaryProof","phoneNumber"],(function(t){a[t]&&(b[t]=a[t])})),new Wo(b)}return null}function Xo(a){return a.a.La&&a.a.ea?{temporaryProof:a.a.La,phoneNumber:a.a.ea}:{sessionInfo:a.a.eb,code:a.a.cb}}function $o(a){try{this.a=a||e.a.auth()}catch(t){throw new P("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().")}ci(this,{providerId:"phone",isOAuthProvider:!1})}function Qo(a,b){if(!a)throw new P("missing-verification-id");if(!b)throw new P("missing-verification-code");return new Wo({eb:a,cb:b})}function Jo(a){if(a.temporaryProof&&a.phoneNumber)return new Wo({La:a.temporaryProof,ea:a.phoneNumber});var b=a&&a.providerId;if(!b||"password"===b)return null;var t=a&&a.oauthAccessToken,e=a&&a.oauthTokenSecret,n=a&&a.nonce,r=a&&a.oauthIdToken,g=a&&a.pendingToken;try{switch(b){case"google.com":return Vo(r,t);case"facebook.com":return Ro(t);case"github.com":return Mo(t);case"twitter.com":return qo(t,e);default:return t||e||r||g?g?0==b.indexOf("saml.")?new To(b,g):new jo(b,{pendingToken:g,idToken:a.oauthIdToken,accessToken:a.oauthAccessToken},b):new Po(b).credential({idToken:r,accessToken:t,rawNonce:n}):null}}catch(t){return null}}function Zo(a){if(!a.isOAuthProvider)throw new P("invalid-oauth-provider")}function ta(a,b,t,e,n,r,g){if(this.c=a,this.b=b||null,this.g=t||null,this.f=e||null,this.i=r||null,this.h=g||null,this.a=n||null,!this.g&&!this.a)throw new P("invalid-auth-event");if(this.g&&this.a)throw new P("invalid-auth-event");if(this.g&&!this.f)throw new P("invalid-auth-event")}function th(a){return(a=a||{}).type?new ta(a.type,a.eventId,a.urlResponse,a.sessionId,a.error&&D(a.error),a.postBody,a.tenantId):null}function ea(){this.b=null,this.a=[]}wo.prototype.Ha=function(){return this.a?Me(this.a):Me(this.b)},wo.prototype.w=function(){return this.type==_o?{multiFactorSession:{idToken:this.a}}:{multiFactorSession:{pendingCredential:this.b}}},Oo.prototype.ka=function(){},Oo.prototype.b=function(){},Oo.prototype.c=function(){},Oo.prototype.w=function(){},To.prototype.ka=function(a){return Cs(a,ko(this))},To.prototype.b=function(a,b){var t=ko(this);return t.idToken=b,Ps(a,t)},To.prototype.c=function(a,b){return Io(Ds(a,ko(this)),b)},To.prototype.w=function(){return{providerId:this.providerId,signInMethod:this.signInMethod,pendingToken:this.a}},jo.prototype.ka=function(a){return Cs(a,xo(this))},jo.prototype.b=function(a,b){var t=xo(this);return t.idToken=b,Ps(a,t)},jo.prototype.c=function(a,b){return Io(Ds(a,xo(this)),b)},jo.prototype.w=function(){var a={providerId:this.providerId,signInMethod:this.signInMethod};return this.idToken&&(a.oauthIdToken=this.idToken),this.accessToken&&(a.oauthAccessToken=this.accessToken),this.secret&&(a.oauthTokenSecret=this.secret),this.nonce&&(a.nonce=this.nonce),this.a&&(a.pendingToken=this.a),a},No.prototype.Ka=function(a){return this.Ib=It(a),this},N(Co,No),N(Po,No),Po.prototype.Ca=function(a){return et(this.a,a)||this.a.push(a),this},Po.prototype.Qb=function(){return at(this.a)},Po.prototype.credential=function(a,b){var t;if(!(t=O(a)?{idToken:a.idToken||null,accessToken:a.accessToken||null,nonce:a.rawNonce||null}:{idToken:a||null,accessToken:b||null}).idToken&&!t.accessToken)throw new P("argument-error","credential failed: must provide the ID token and/or the access token.");return new jo(this.providerId,t,this.providerId)},N(Do,Po),ui(Do,"PROVIDER_ID","facebook.com"),ui(Do,"FACEBOOK_SIGN_IN_METHOD","facebook.com"),N(Lo,Po),ui(Lo,"PROVIDER_ID","github.com"),ui(Lo,"GITHUB_SIGN_IN_METHOD","github.com"),N(Uo,Po),ui(Uo,"PROVIDER_ID","google.com"),ui(Uo,"GOOGLE_SIGN_IN_METHOD","google.com"),N(Fo,No),ui(Fo,"PROVIDER_ID","twitter.com"),ui(Fo,"TWITTER_SIGN_IN_METHOD","twitter.com"),Bo.prototype.ka=function(a){return this.signInMethod==Ho.EMAIL_LINK_SIGN_IN_METHOD?vu(a,Bs,{email:this.a,oobCode:this.f}):vu(a,lu,{email:this.a,password:this.f})},Bo.prototype.b=function(a,b){return this.signInMethod==Ho.EMAIL_LINK_SIGN_IN_METHOD?vu(a,zs,{idToken:b,email:this.a,oobCode:this.f}):vu(a,nu,{idToken:b,email:this.a,password:this.f})},Bo.prototype.c=function(a,b){return Io(this.ka(a),b)},Bo.prototype.w=function(){return{email:this.a,password:this.f,signInMethod:this.signInMethod}},ci(Ho,{PROVIDER_ID:"password"}),ci(Ho,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"}),ci(Ho,{EMAIL_PASSWORD_SIGN_IN_METHOD:"password"}),Wo.prototype.ka=function(a){return a.fb(Xo(this))},Wo.prototype.b=function(a,b){var t=Xo(this);return t.idToken=b,vu(a,hu,t)},Wo.prototype.c=function(a,b){var t=Xo(this);return t.operation="REAUTH",Io(a=vu(a,pu,t),b)},Wo.prototype.w=function(){var a={providerId:"phone"};return this.a.eb&&(a.verificationId=this.a.eb),this.a.cb&&(a.verificationCode=this.a.cb),this.a.La&&(a.temporaryProof=this.a.La),this.a.ea&&(a.phoneNumber=this.a.ea),a},$o.prototype.fb=function(a,b){var t=this.a.a;return Me(b.verify()).then((function(e){if("string"!=typeof e)throw new P("argument-error","An implementation of firebase.auth.ApplicationVerifier.prototype.verify() must return a firebase.Promise that resolves with a string.");switch(b.type){case"recaptcha":var n=O(a)?a.session:null,r=O(a)?a.phoneNumber:a;return(n&&n.type==_o?n.Ha().then((function(n){return function(a,b){return vu(a,iu,b).then((function(t){return t.phoneSessionInfo.sessionInfo}))}(t,{idToken:n,phoneEnrollmentInfo:{phoneNumber:r,recaptchaToken:e}})})):n&&n.type==Eo?n.Ha().then((function(n){return function(a,b){return vu(a,ou,b).then((function(t){return t.phoneResponseInfo.sessionInfo}))}(t,{mfaPendingCredential:n,mfaEnrollmentId:a.multiFactorHint&&a.multiFactorHint.uid||a.multiFactorUid,phoneSignInInfo:{recaptchaToken:e}})})):function(a,b){return vu(a,tu,b)}(t,{phoneNumber:r,recaptchaToken:e})).then((function(t){return"function"==typeof b.reset&&b.reset(),t}),(function(t){throw"function"==typeof b.reset&&b.reset(),t}));default:throw new P("argument-error",'Only firebase.auth.ApplicationVerifiers with type="recaptcha" are currently supported.')}}))},ci($o,{PROVIDER_ID:"phone"}),ci($o,{PHONE_SIGN_IN_METHOD:"phone"}),ta.prototype.getUid=function(){var a=[];return a.push(this.c),this.b&&a.push(this.b),this.f&&a.push(this.f),this.h&&a.push(this.h),a.join("-")},ta.prototype.T=function(){return this.h},ta.prototype.w=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.w()}};var na,ra=null;function ia(a){var b="unauthorized-domain",t=void 0,e=Yn(a);a=e.a,"chrome-extension"==(e=e.c)?t=Jt("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.",a):"http"==e||"https"==e?t=Jt("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.",a):b="operation-not-supported-in-this-environment",P.call(this,b,t)}function oa(a,b,t){P.call(this,a,t),(a=b||{}).Jb&&ui(this,"email",a.Jb),a.ea&&ui(this,"phoneNumber",a.ea),a.credential&&ui(this,"credential",a.credential),a.Zb&&ui(this,"tenantId",a.Zb)}function aa(a){if(a.code){var b=a.code||"";0==b.indexOf(L)&&(b=b.substring(L.length));var t={credential:Jo(a),Zb:a.tenantId};if(a.email)t.Jb=a.email;else if(a.phoneNumber)t.ea=a.phoneNumber;else if(!t.credential)return new P(b,a.message||void 0);return new oa(b,t,a.message)}return null}function sa(){}function ua(a){return a.c||(a.c=a.b())}function ca(){}function la(a){if(!a.f&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],t=0;t=_a(this).value)for(E(b)&&(b=b()),a=new da(a,String(b),this.f),t&&(a.a=t),t=this;t;)t=t.a};var Ea={},Oa=null;function Ia(a){var b;if(Oa||(Oa=new va(""),Ea[""]=Oa,Oa.c=ba),!(b=Ea[a])){b=new va(a);var t=a.lastIndexOf("."),e=a.substr(t+1);(t=Ia(a.substr(0,t))).b||(t.b={}),t.b[e]=b,b.a=t,Ea[a]=b}return b}function Ta(a,b){a&&a.log(wa,b,void 0)}function ka(a){this.f=a}function Sa(a){An.call(this),this.u=a,this.h=void 0,this.readyState=ja,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.l=new Headers,this.b=null,this.s="GET",this.f="",this.a=!1,this.i=Ia("goog.net.FetchXmlHttp"),this.m=this.c=this.g=null}N(ka,sa),ka.prototype.a=function(){return new Sa(this.f)},ka.prototype.b=function(a){return function(){return a}}({}),N(Sa,An);var ja=0;function xa(a){a.c.read().then(a.pc.bind(a)).catch(a.Ua.bind(a))}function Aa(a){a.readyState=4,a.g=null,a.c=null,a.m=null,Na(a)}function Na(a){a.onreadystatechange&&a.onreadystatechange.call(a)}function Ca(a){An.call(this),this.headers=new Un,this.D=a||null,this.c=!1,this.C=this.a=null,this.h=this.R=this.l="",this.f=this.O=this.i=this.J=!1,this.g=0,this.s=null,this.m=Pa,this.u=this.S=!1}(n=Sa.prototype).open=function(a,b){if(this.readyState!=ja)throw this.abort(),Error("Error reopening a connection");this.s=a,this.f=b,this.readyState=1,Na(this)},n.send=function(a){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.a=!0;var b={headers:this.l,method:this.s,credentials:this.h,cache:void 0};a&&(b.body=a),this.u.fetch(new Request(this.f,b)).then(this.uc.bind(this),this.Ua.bind(this))},n.abort=function(){this.response=this.responseText="",this.l=new Headers,this.status=0,this.c&&this.c.cancel("Request was aborted."),1<=this.readyState&&this.a&&4!=this.readyState&&(this.a=!1,Aa(this)),this.readyState=ja},n.uc=function(a){this.a&&(this.g=a,this.b||(this.status=this.g.status,this.statusText=this.g.statusText,this.b=a.headers,this.readyState=2,Na(this)),this.a&&(this.readyState=3,Na(this),this.a&&("arraybuffer"===this.responseType?a.arrayBuffer().then(this.sc.bind(this),this.Ua.bind(this)):void 0!==h.ReadableStream&&"body"in a?(this.response=this.responseText="",this.c=a.body.getReader(),this.m=new TextDecoder,xa(this)):a.text().then(this.tc.bind(this),this.Ua.bind(this)))))},n.pc=function(a){if(this.a){var b=this.m.decode(a.value?a.value:new Uint8Array(0),{stream:!a.done});b&&(this.response=this.responseText+=b),a.done?Aa(this):Na(this),3==this.readyState&&xa(this)}},n.tc=function(a){this.a&&(this.response=this.responseText=a,Aa(this))},n.sc=function(a){this.a&&(this.response=a,Aa(this))},n.Ua=function(a){var b=this.i;b&&b.log(ya,"Failed to fetch url "+this.f,a instanceof Error?a:Error(a)),this.a&&Aa(this)},n.setRequestHeader=function(a,b){this.l.append(a,b)},n.getResponseHeader=function(a){return this.b?this.b.get(a.toLowerCase())||"":((a=this.i)&&a.log(ya,"Attempting to get response header but no headers have been received for url: "+this.f,void 0),"")},n.getAllResponseHeaders=function(){if(!this.b){var a=this.i;return a&&a.log(ya,"Attempting to get all response headers but no headers have been received for url: "+this.f,void 0),""}a=[];for(var b=this.b.entries(),t=b.next();!t.done;)t=t.value,a.push(t[0]+": "+t[1]),t=b.next();return a.join("\r\n")},Object.defineProperty(Sa.prototype,"withCredentials",{get:function(){return"include"===this.h},set:function(a){this.h=a?"include":"same-origin"}}),N(Ca,An);var Pa="";Ca.prototype.b=Ia("goog.net.XhrIo");var Da=/^https?$/i,Ra=["POST","PUT"];function La(a,b,t,e,n){if(a.a)throw Error("[goog.net.XhrIo] Object is active with another request="+a.l+"; newUri="+b);t=t?t.toUpperCase():"GET",a.l=b,a.h="",a.R=t,a.J=!1,a.c=!0,a.a=a.D?a.D.a():na.a(),a.C=a.D?ua(a.D):ua(na),a.a.onreadystatechange=q(a.Vb,a);try{Ta(a.b,Ha(a,"Opening Xhr")),a.O=!0,a.a.open(t,String(b),!0),a.O=!1}catch(t){return Ta(a.b,Ha(a,"Error opening Xhr: "+t.message)),void Ua(a,t)}b=e||"";var r=new Un(a.headers);n&&function(a,b){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,void 0);else if(_(a)||"string"==typeof a)Q(a,b,void 0);else for(var t=Mn(a),e=Ln(a),n=e.length,r=0;rb?null:"string"==typeof a?a.charAt(b):a[b]}(r.Y()),e=h.FormData&&b instanceof h.FormData,!et(Ra,t)||n||e||r.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),r.forEach((function(g,t){this.a.setRequestHeader(t,g)}),a),a.m&&(a.a.responseType=a.m),"withCredentials"in a.a&&a.a.withCredentials!==a.S&&(a.a.withCredentials=a.S);try{qa(a),0=b.l&&b.cancel())}this.u?this.u.call(this.s,this):this.v=!0,this.a||(a=new Ja(this),Wa(this),Ka(this,!1,a))}},Ga.prototype.m=function(a,b){this.i=!1,Ka(this,a,b)},Ga.prototype.then=function(a,b,t){var e,n,r=new Ae((function(g,t){e=g,n=t}));return Ya(this,e,(function(g){g instanceof Ja?r.cancel():n(g)})),r.then(a,b,t)},Ga.prototype.$goog_Thenable=!0,N(Qa,u),Qa.prototype.message="Deferred has already fired",Qa.prototype.name="AlreadyCalledError",N(Ja,u),Ja.prototype.message="Deferred was canceled",Ja.prototype.name="CanceledError",Za.prototype.c=function(){throw delete ts[this.a],this.b};var ts={};function es(a){var b={},t=b.document||document,e=Rt(a).toString(),n=Ie(document,"SCRIPT"),r={Wb:n,Ma:void 0},g=new Ga(r),o=null,c=null!=b.timeout?b.timeout:5e3;return 0a||re&&me&&!(9b;b++){n=0|t[b-15],e=0|t[b-2];var r=(0|t[b-16])+((n>>>7|n<<25)^(n>>>18|n<<14)^n>>>3)|0,g=(0|t[b-7])+((e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)|0;t[b]=r+g|0}e=0|a.a[0],n=0|a.a[1];var o=0|a.a[2],c=0|a.a[3],p=0|a.a[4],l=0|a.a[5],f=0|a.a[6];for(r=0|a.a[7],b=0;64>b;b++){var h=((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+(e&n^e&o^n&o)|0;g=(r=r+((p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))|0)+((g=(g=p&l^~p&f)+(0|bc[b])|0)+(0|t[b])|0)|0,r=f,f=l,l=p,p=c+g|0,c=o,o=n,n=e,e=g+h|0}a.a[0]=a.a[0]+e|0,a.a[1]=a.a[1]+n|0,a.a[2]=a.a[2]+o|0,a.a[3]=a.a[3]+c|0,a.a[4]=a.a[4]+p|0,a.a[5]=a.a[5]+l|0,a.a[6]=a.a[6]+f|0,a.a[7]=a.a[7]+r|0}function jc(a,b,t){void 0===t&&(t=b.length);var e=0,n=a.c;if("string"==typeof b)for(;e=r&&r==(0|r)))throw Error("message must be a byte array");a.f[n++]=r,n==a.b&&(ol(a),n=0)}}a.c=n,a.g+=t}Ec.prototype.reset=function(){this.g=this.c=0,this.a=h.Int32Array?new Int32Array(this.h):at(this.h)};var xc=[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 Ac(){Ec.call(this,8,Nc)}N(Ac,Ec);var Nc=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function Cc(a,b,t,e,n,r){this.v=a,this.i=b,this.l=t,this.m=e||null,this.u=n||null,this.s=r,this.h=b+":"+t,this.C=new _c,this.g=new yc(this.h),this.f=null,this.b=[],this.a=this.c=null}function Pc(a){return new P("invalid-cordova-configuration",a)}function Dc(a){var b=new Ac;jc(b,a),a=[];var t=8*b.g;56>b.c?jc(b,Sc,56-b.c):jc(b,Sc,b.b-(b.c-56));for(var e=63;56<=e;e--)b.f[e]=255&t,t/=256;for(ol(b),e=t=0;e>n&255;return function(a){return Z(a,(function(b){return 1<(b=b.toString(16)).length?b:"0"+b})).join("")}(a)}function Rc(a,b){for(var t=0;ta.f&&(a.a=a.f),b)}(a,b)).then((function(){return function(){var a=h.document,b=null;return ei()||!a?Me():new Ae((function(t){b=function(){ei()&&(a.removeEventListener("visibilitychange",b,!1),t())},a.addEventListener("visibilitychange",b,!1)})).o((function(t){throw a.removeEventListener("visibilitychange",b,!1),t}))}()})).then((function(){return a.h()})).then((function(){kl(a,!0)})).o((function(t){a.i(t)&&kl(a,!1)}))}function Sl(a){this.f=a,this.b=this.a=null,this.c=Date.now()}function jl(a,b){void 0===b&&(a.b?b=(b=a.b).a-b.g:b=0),a.c=Date.now()+1e3*b}function xl(a,b){a.b=ro(b[ls]||""),a.a=b.refreshToken,jl(a,void 0!==(b=b.expiresIn)?Number(b):void 0)}function Al(a,b){return function(a,b){return new Ae((function(t,e){"refresh_token"==b.grant_type&&b.refresh_token||"authorization_code"==b.grant_type&&b.code?bs(a,a.l+"?key="+encodeURIComponent(a.c),(function(n){n?n.error?e(gu(n)):n.access_token&&n.refresh_token?t(n):e(new P("internal-error")):e(new P("network-request-failed"))}),"POST",sr(b).toString(),a.g,a.m.get()):e(new P("internal-error"))}))}(a.f,b).then((function(t){return a.b=ro(t.access_token),a.a=t.refresh_token,jl(a,t.expires_in),{accessToken:a.b.toString(),refreshToken:a.a}})).o((function(t){throw"auth/user-token-expired"==t.code&&(a.a=null),t}))}function Nl(a,b){this.a=a||null,this.b=b||null,ci(this,{lastSignInTime:ni(b||null),creationTime:ni(a||null)})}function Cl(a,b,t,e,n,r){ci(this,{uid:a,displayName:e||null,photoURL:n||null,email:t||null,phoneNumber:r||null,providerId:b})}function Pl(a,b,t){this.J=[],this.l=a.apiKey,this.m=a.appName,this.s=a.authDomain||null;var n=e.a.SDK_VERSION?Fr(e.a.SDK_VERSION):null;this.a=new us(this.l,V(R),n),a.emulatorConfig&&ms(this.a,a.emulatorConfig),this.b=new Sl(this.a),ql(this,b[ls]),xl(this.b,b),ui(this,"refreshToken",this.b.a),Hl(this,t||{}),An.call(this),this.R=!1,this.s&&Hr()&&(this.i=el(this.s,this.l,this.m)),this.S=[],this.h=null,this.u=function(a){return new Tl((function(){return a.I(!0)}),(function(b){return!(!b||"auth/network-request-failed"!=b.code)}),(function(){var b=a.b.c-Date.now()-3e5;return 0this.c-3e4?this.a?Al(this,{grant_type:"refresh_token",refresh_token:this.a}):Me(null):Me({accessToken:this.b.toString(),refreshToken:this.a})},Nl.prototype.w=function(){return{lastLoginAt:this.b,createdAt:this.a}},N(Pl,An),Pl.prototype.wa=function(a){this.ya=a,vs(this.a,a)},Pl.prototype.la=function(){return this.ya},Pl.prototype.Ga=function(){return at(this.$)},Pl.prototype.hb=function(){this.u.b&&(this.u.stop(),this.u.start())},ui(Pl.prototype,"providerId","firebase"),(n=Pl.prototype).reload=function(){var a=this;return sf(this,Kl(this).then((function(){return Jl(a).then((function(){return Bl(a)})).then(Gl)})))},n.oc=function(a){return this.I(a).then((function(b){return new hl(b)}))},n.I=function(a){var b=this;return sf(this,Kl(this).then((function(){return b.b.getToken(a)})).then((function(t){if(!t)throw new P("internal-error");return t.accessToken!=b.za&&(ql(b,t.accessToken),b.dispatchEvent(new El("tokenChanged"))),$l(b,"refreshToken",t.refreshToken),t.accessToken})))},n.Kc=function(a){if(!(a=a.users)||!a.length)throw new P("internal-error");Hl(this,{uid:(a=a[0]).localId,displayName:a.displayName,photoURL:a.photoUrl,email:a.email,emailVerified:!!a.emailVerified,phoneNumber:a.phoneNumber,lastLoginAt:a.lastLoginAt,createdAt:a.createdAt,tenantId:a.tenantId});for(var b=function(a){return(a=a.providerUserInfo)&&a.length?Z(a,(function(b){return new Cl(b.rawId,b.providerId,b.email,b.displayName,b.photoUrl,b.phoneNumber)})):[]}(a),t=0;tthis.u&&(this.u=0),0==this.u&&Af(this)&&Fl(Af(this)),this.removeAuthTokenListener(a)},n.addAuthTokenListener=function(a){var b=this;this.s.push(a),Pf(this,this.h.then((function(){b.l||et(b.s,a)&&a(Nf(b))})))},n.removeAuthTokenListener=function(a){it(this.s,(function(b){return b==a}))},n.delete=function(){this.l=!0;for(var a=0;an||n>=oh.length)throw new P("internal-error","Argument validator received an unsupported number of arguments.");t=oh[n],e=(e?"":t+" argument ")+(b.name?'"'+b.name+'" ':"")+"must be "+b.K+".";break t}e=null}}if(e)throw new P("argument-error",a+" failed: "+e)}(n=Yf.prototype).Ia=function(){var a=this;return this.f?this.f:this.f=eh(this,Me().then((function(){if(Gr()&&!Pr())return Ar();throw new P("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment.")})).then((function(){return a.m.g(a.u())})).then((function(b){return a.g=b,vu(a.s,Js,{})})).then((function(b){a.a[Qf]=b.recaptchaSiteKey})).o((function(b){throw a.f=null,b})))},n.render=function(){nh(this);var a=this;return eh(this,this.Ia().then((function(){if(null===a.c){var b=a.v;if(!a.i){var t=ye(b);b=function(a,b,t){var e=arguments,n=document,r=String(e[0]),g=e[1];if(!ge&&g&&(g.name||g.type)){if(r=["<",r],g.name&&r.push(' name="',Zt(g.name),'"'),g.type){r.push(' type="',Zt(g.type),'"');var o={};kt(o,g),delete o.type,g=o}r.push(">"),r=r.join("")}return r=Ie(n,r),g&&("string"==typeof g?r.className=g:Array.isArray(g)?r.className=g.join(" "):be(r,g)),2=t&&(clearInterval(o),n(!1)))}),1)}))},t.prototype._getBackend=function(){return this._backend},t.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},t.prototype._prepareEvent=function(t,e,n){var c=this,l=this.getOptions().normalizeDepth,f=void 0===l?3:l,h=Object(r.a)(Object(r.a)({},t),{event_id:t.event_id||(n&&n.event_id?n.event_id:Object(v.i)()),timestamp:t.timestamp||Object(time.a)()});this._applyClientOptions(h),this._applyIntegrationsMetadata(h);var m=e;n&&n.captureContext&&(m=o.a.clone(m).update(n.captureContext));var y=d.a.resolve(h);return m&&(y=m.applyToEvent(h,n)),y.then((function(t){return"number"==typeof f&&f>0?c._normalizeEvent(t,f):t}))},t.prototype._normalizeEvent=function(t,e){if(!t)return null;var n=Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((function(b){return Object(r.a)(Object(r.a)({},b),b.data&&{data:Object(object.d)(b.data,e)})}))}),t.user&&{user:Object(object.d)(t.user,e)}),t.contexts&&{contexts:Object(object.d)(t.contexts,e)}),t.extra&&{extra:Object(object.d)(t.extra,e)});return t.contexts&&t.contexts.trace&&(n.contexts.trace=t.contexts.trace),n},t.prototype._applyClientOptions=function(t){var e=this.getOptions(),n=e.environment,r=e.release,o=e.dist,c=e.maxValueLength,l=void 0===c?250:c;"environment"in t||(t.environment="environment"in e?n:"production"),void 0===t.release&&void 0!==r&&(t.release=r),void 0===t.dist&&void 0!==o&&(t.dist=o),t.message&&(t.message=Object(m.d)(t.message,l));var f=t.exception&&t.exception.values&&t.exception.values[0];f&&f.value&&(f.value=Object(m.d)(f.value,l));var h=t.request;h&&h.url&&(h.url=Object(m.d)(h.url,l))},t.prototype._applyIntegrationsMetadata=function(t){var e=t.sdk,n=Object.keys(this._integrations);e&&n.length>0&&(e.integrations=n)},t.prototype._sendEvent=function(t){this._getBackend().sendEvent(t)},t.prototype._captureEvent=function(t,e,n){return this._processEvent(t,e,n).then((function(t){return t.event_id}),(function(t){h.a.error(t)}))},t.prototype._processEvent=function(t,e,n){var r=this,o=this.getOptions(),c=o.beforeSend,l=o.sampleRate;if(!this._isEnabled())return d.a.reject(new y.a("SDK not enabled, will not send event."));var h="transaction"===t.type;return!h&&"number"==typeof l&&Math.random()>l?d.a.reject(new y.a("Discarding event because it's not included in the random sample (sampling rate = "+l+")")):this._prepareEvent(t,n,e).then((function(t){if(null===t)throw new y.a("An event processor returned null, will not send event.");if(e&&e.data&&!0===e.data.__sentry__||h||!c)return t;var n=c(t,e);if(void 0===n)throw new y.a("`beforeSend` method has to return `null` or a valid event.");return Object(f.m)(n)?n.then((function(t){return t}),(function(t){throw new y.a("beforeSend rejected with "+t)})):n})).then((function(t){if(null===t)throw new y.a("`beforeSend` returned `null`, will not send event.");var e=n&&n.getSession&&n.getSession();return!h&&e&&r._updateSessionFromEvent(e,t),r._sendEvent(t),t})).then(null,(function(t){if(t instanceof y.a)throw t;throw r.captureException(t,{data:{__sentry__:!0},originalException:t}),new y.a("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+t)}))},t.prototype._process=function(t){var e=this;this._processing+=1,t.then((function(t){return e._processing-=1,t}),(function(t){return e._processing-=1,t}))},t}()},function(t,e,n){"use strict";e.a=function(t,e){return e=e||{},new Promise((function(n,r){var s=new XMLHttpRequest,o=[],u=[],i={},a=function(){return{ok:2==(s.status/100|0),statusText:s.statusText,status:s.status,url:s.responseURL,text:function(){return Promise.resolve(s.responseText)},json:function(){return Promise.resolve(s.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([s.response]))},clone:a,headers:{keys:function(){return o},entries:function(){return u},get:function(t){return i[t.toLowerCase()]},has:function(t){return t.toLowerCase()in i}}}};for(var c in s.open(e.method||"get",t,!0),s.onload=function(){s.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(t,e,n){o.push(e=e.toLowerCase()),u.push([e,n]),i[e]=i[e]?i[e]+","+n:n})),n(a())},s.onerror=r,s.withCredentials="include"==e.credentials,e.headers)s.setRequestHeader(c,e.headers[c]);s.send(e.body||null)}))}},,function(t,e,n){"use strict";var r=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===o}(t)}(t)};var o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function c(t,e){return!1!==e.clone&&e.isMergeableObject(t)?v((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function l(t,source,e){return t.concat(source).map((function(element){return c(element,e)}))}function f(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(symbol){return t.propertyIsEnumerable(symbol)})):[]}(t))}function h(object,t){try{return t in object}catch(t){return!1}}function d(t,source,e){var n={};return e.isMergeableObject(t)&&f(t).forEach((function(r){n[r]=c(t[r],e)})),f(source).forEach((function(r){(function(t,e){return h(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,r)||(h(t,r)&&e.isMergeableObject(source[r])?n[r]=function(t,e){if(!e.customMerge)return v;var n=e.customMerge(t);return"function"==typeof n?n:v}(r,e)(t[r],source[r],e):n[r]=c(source[r],e))})),n}function v(t,source,e){(e=e||{}).arrayMerge=e.arrayMerge||l,e.isMergeableObject=e.isMergeableObject||r,e.cloneUnlessOtherwiseSpecified=c;var n=Array.isArray(source);return n===Array.isArray(t)?n?e.arrayMerge(t,source,e):d(t,source,e):c(source,e)}v.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,n){return v(t,n,e)}),{})};var m=v;t.exports=m},,function(t,e,n){(function(t,n){var r="__lodash_hash_undefined__",o=9007199254740991,c="[object Arguments]",l="[object Function]",f="[object Object]",h=/^\[object .+?Constructor\]$/,d=/^(?:0|[1-9]\d*)$/,v={};v["[object Float32Array]"]=v["[object Float64Array]"]=v["[object Int8Array]"]=v["[object Int16Array]"]=v["[object Int32Array]"]=v["[object Uint8Array]"]=v["[object Uint8ClampedArray]"]=v["[object Uint16Array]"]=v["[object Uint32Array]"]=!0,v[c]=v["[object Array]"]=v["[object ArrayBuffer]"]=v["[object Boolean]"]=v["[object DataView]"]=v["[object Date]"]=v["[object Error]"]=v[l]=v["[object Map]"]=v["[object Number]"]=v[f]=v["[object RegExp]"]=v["[object Set]"]=v["[object String]"]=v["[object WeakMap]"]=!1;var m="object"==typeof t&&t&&t.Object===Object&&t,y="object"==typeof self&&self&&self.Object===Object&&self,w=m||y||Function("return this")(),_=e&&!e.nodeType&&e,E=_&&"object"==typeof n&&n&&!n.nodeType&&n,O=E&&E.exports===_,I=O&&m.process,T=function(){try{var t=E&&E.require&&E.require("util").types;return t||I&&I.binding&&I.binding("util")}catch(t){}}(),k=T&&T.isTypedArray;function S(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var j,x,A,N=Array.prototype,C=Function.prototype,P=Object.prototype,D=w["__core-js_shared__"],R=C.toString,L=P.hasOwnProperty,M=(j=/[^.]+$/.exec(D&&D.keys&&D.keys.IE_PROTO||""))?"Symbol(src)_1."+j:"",U=P.toString,V=R.call(Object),F=RegExp("^"+R.call(L).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),B=O?w.Buffer:void 0,z=w.Symbol,H=w.Uint8Array,G=B?B.allocUnsafe:void 0,K=(x=Object.getPrototypeOf,A=Object,function(t){return x(A(t))}),W=Object.create,Y=P.propertyIsEnumerable,X=N.splice,$=z?z.toStringTag:void 0,Q=function(){try{var t=It(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),J=B?B.isBuffer:void 0,Z=Math.max,tt=Date.now,et=It(w,"Map"),nt=It(Object,"create"),it=function(){function object(){}return function(t){if(!Lt(t))return{};if(W)return W(t);object.prototype=t;var e=new object;return object.prototype=void 0,e}}();function ot(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1},at.prototype.set=function(t,e){var data=this.__data__,n=ht(data,t);return n<0?(++this.size,data.push([t,e])):data[n][1]=e,this},st.prototype.clear=function(){this.size=0,this.__data__={hash:new ot,map:new(et||at),string:new ot}},st.prototype.delete=function(t){var e=Ot(this,t).delete(t);return this.size-=e?1:0,e},st.prototype.get=function(t){return Ot(this,t).get(t)},st.prototype.has=function(t){return Ot(this,t).has(t)},st.prototype.set=function(t,e){var data=Ot(this,t),n=data.size;return data.set(t,e),this.size+=data.size==n?0:1,this},ut.prototype.clear=function(){this.__data__=new at,this.size=0},ut.prototype.delete=function(t){var data=this.__data__,e=data.delete(t);return this.size=data.size,e},ut.prototype.get=function(t){return this.__data__.get(t)},ut.prototype.has=function(t){return this.__data__.has(t)},ut.prototype.set=function(t,e){var data=this.__data__;if(data instanceof at){var n=data.__data__;if(!et||n.length<199)return n.push([t,e]),this.size=++data.size,this;data=this.__data__=new st(n)}return data.set(t,e),this.size=data.size,this};var vt,mt=function(object,t,e){for(var n=-1,r=Object(object),o=e(object),c=o.length;c--;){var l=o[vt?c:++n];if(!1===t(r[l],l,r))break}return object};function gt(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":$&&$ in Object(t)?function(t){var e=L.call(t,$),n=t[$];try{t[$]=void 0;var r=!0}catch(t){}var o=U.call(t);r&&(e?t[$]=n:delete t[$]);return o}(t):function(t){return U.call(t)}(t)}function yt(t){return Mt(t)&>(t)==c}function bt(t){return!(!Lt(t)||function(t){return!!M&&M in t}(t))&&(Dt(t)?F:h).test(function(t){if(null!=t){try{return R.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}function wt(object){if(!Lt(object))return function(object){var t=[];if(null!=object)for(var e in Object(object))t.push(e);return t}(object);var t=kt(object),e=[];for(var n in object)("constructor"!=n||!t&&L.call(object,n))&&e.push(n);return e}function _t(object,source,t,e,n){object!==source&&mt(source,(function(r,o){if(n||(n=new ut),Lt(r))!function(object,source,t,e,n,r,o){var c=St(object,t),l=St(source,t),h=o.get(l);if(h)return void lt(object,t,h);var d=r?r(c,l,t+"",object,source,o):void 0,v=void 0===d;if(v){var m=Nt(l),y=!m&&Pt(l),w=!m&&!y&&Ut(l);d=l,m||y||w?Nt(c)?d=c:Mt(T=c)&&Ct(T)?d=function(source,t){var e=-1,n=source.length;t||(t=Array(n));for(;++e-1&&t%1==0&&t0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(Q?function(t,e){return Q(t,"toString",{configurable:!0,enumerable:!1,value:(n=e,function(){return n}),writable:!0});var n}:Bt);function xt(t,e){return t===e||t!=t&&e!=e}var At=yt(function(){return arguments}())?yt:function(t){return Mt(t)&&L.call(t,"callee")&&!Y.call(t,"callee")},Nt=Array.isArray;function Ct(t){return null!=t&&Rt(t.length)&&!Dt(t)}var Pt=J||function(){return!1};function Dt(t){if(!Lt(t))return!1;var e=gt(t);return e==l||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Rt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=o}function Lt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Mt(t){return null!=t&&"object"==typeof t}var Ut=k?function(t){return function(e){return t(e)}}(k):function(t){return Mt(t)&&Rt(t.length)&&!!v[gt(t)]};function Vt(object){return Ct(object)?ct(object,!0):wt(object)}var Ft,qt=(Ft=function(object,source,t){_t(object,source,t)},Et((function(object,t){var e=-1,n=t.length,r=n>1?t[n-1]:void 0,o=n>2?t[2]:void 0;for(r=Ft.length>3&&"function"==typeof r?(n--,r):void 0,o&&function(t,e,object){if(!Lt(object))return!1;var n=typeof e;return!!("number"==n?Ct(object)&&Tt(e,object.length):"string"==n&&e in object)&&xt(object[e],t)}(t[0],t[1],o)&&(r=n<3?void 0:r,n=1),object=Object(object);++e2&&void 0!==arguments[2]?arguments[2]:".",c=arguments.length>3?arguments[3]:void 0;if(!r(e))return o(t,{},n,c);var l=Object.assign({},e);for(var f in t)if("__proto__"!==f&&"constructor"!==f){var h=t[f];null!==h&&(c&&c(l,f,h,n)||(Array.isArray(h)&&Array.isArray(l[f])?l[f]=l[f].concat(h):r(h)&&r(l[f])?l[f]=o(h,l[f],(n?"".concat(n,"."):"")+f.toString(),c):l[f]=h))}return l}function c(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;rt,mutations:{SET(t,e){r.default.set(t,e.key,e.value)}},getters:{getDisplayName:t=>t.displayName,getEmail:t=>t.email,getDisplayPicture:t=>t.displayPicture,getIsLoggedIn:t=>t.isLoggedIn}};this.ctx.store.registerModule("auth",e,{preserveState:Boolean(this.ctx.store.state.auth)})}setState(t,e){this.ctx.store.commit("auth/SET",{key:t,value:e})}getState(t){return this.ctx.store.getters[t]}}var c=class{constructor(){this.DEFAULT_CONFIG={expires:"1d",path:"; path=/"}}config(option){option.expires&&(this.DEFAULT_CONFIG.expires=option.expires),""===option.path?this.DEFAULT_CONFIG.path="":this.DEFAULT_CONFIG.path="; path="+option.path}get(t){let e=decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null;if(e&&e.startsWith("{")&&e.endsWith("}"))try{e=JSON.parse(e)}catch(t){return e}return e}set(t,e,option={}){if(!t)throw new Error("cookie name is not find in first argument");if(/^(?:expires|max\-age|path|domain|secure)$/i.test(t))throw new Error("cookie key name illegality ,Cannot be set to ['expires','max-age','path','domain','secure']\tcurrent key name: "+t);e&&e.constructor===Object&&(e=JSON.stringify(e));let n="; max-age=86400",r=option.expires||this.DEFAULT_CONFIG.expires;if(r)switch(r.constructor){case Number:n=r===1/0||-1===r?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; max-age="+r;break;case String:if(/^(?:\d{1,}(y|m|d|h|min|s))$/i.test(r)){let t=r.replace(/^(\d{1,})(?:y|m|d|h|min|s)$/i,"$1");switch(r.replace(/^(?:\d{1,})(y|m|d|h|min|s)$/i,"$1").toLowerCase()){case"m":n="; max-age="+2592e3*+t;break;case"d":n="; max-age="+86400*+t;break;case"h":n="; max-age="+3600*+t;break;case"min":n="; max-age="+60*+t;break;case"s":n="; max-age="+t;break;case"y":n="; max-age="+31104e3*+t}}else n="; expires="+r;break;case Date:n="; expires="+r.toUTCString()}return document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)+n+(option.domain?"; domain="+option.domain:"")+(option.path?"; path="+option.path:this.DEFAULT_CONFIG.path)+(option.secure?"; secure":""),this}remove(t,option={}){return!(!t||!this.isKey(t))&&(document.cookie=encodeURIComponent(t)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(option.domain?"; domain="+option.domain:"")+(option.path?"; path="+option.path:this.DEFAULT_CONFIG.path),this)}isKey(t){return new RegExp("(?:^|;\\s*)"+encodeURIComponent(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)}keys(){if(!document.cookie)return[];for(var t=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),e=0;e(window.localStorage.removeItem("emailForSignIn"),new f({accessToken:t.credential.accessToken,idToken:t.credential.idToken,user:t.user})))).catch((function(t){return t}));return e instanceof f&&e}return!1}loginApple(){const t=new l.a.auth.OAuthProvider("apple.com");return t.addScope("email"),t.addScope("name"),this.ProcessProvider(t)}loginMicrosoft(){const t=new l.a.auth.OAuthProvider("microsoft.com");return t.addScope("email"),t.addScope("address"),t.addScope("phone"),this.ProcessProvider(t)}loginTwitter(){const t=new l.a.auth.TwitterAuthProvider;return this.ProcessProvider(t)}loginGoogle(){const t=new l.a.auth.GoogleAuthProvider;return t.addScope("profile"),t.addScope("email"),this.ProcessProvider(t)}logout(){return this._cookies.remove("accessToken"),this._cookies.remove("idToken"),!1}async useCookies(){const t=this._cookies.get("accessToken"),e=this._cookies.get("idToken"),n=this.firebaseApp.auth.GoogleAuthProvider.credential(e,t),r=await this.firebaseApp.auth().signInWithCredential(n).then((data=>data.user)).catch((()=>null));return null!==r&&r}loginFacebook(){const t=new l.a.auth.FacebookAuthProvider;return t.addScope("email"),this.ProcessProvider(t)}}class d extends class{get isLoggedIn(){return this._isLoggedIn}set isLoggedIn(t){this.storage.setState("isLoggedIn",t),this._isLoggedIn=t}get isAdmin(){return this._isAdmin}set isAdmin(t){this._isAdmin=t}get displayPicture(){return this._displayPicture}set displayPicture(t){this.storage.setState("displayPicture",t),this._displayPicture=t}setup(t){null!=t.roles&&(this.roles=t.roles),null!=t.displayName&&(this.displayName=t.displayName),null!=t.email&&(this.email=t.email),this.isLoggedIn=!!t.isLoggedIn&&t.isLoggedIn,this.isAdmin=!!t.isAdmin&&t.isAdmin,this.displayPicture=t.displayPicture?t.displayPicture:"",this.userId=t.userId?t.userId:"0"}setupGuest(){this.setup({displayName:"Guest",email:"guest@icelabz.co.uk",roles:["guest"],userId:"0",displayPicture:null,isAdmin:!1,isLoggedIn:!1})}get roles(){return this._role}set roles(t){this.storage.setState("roles",t),this._role=t}get email(){return this._email}set email(t){this.storage.setState("email",t),this._email=t}get displayName(){return this._displayName}set displayName(t){this.storage.setState("displayName",t),this._displayName=t}get userId(){return this._userId}set userId(t){this.storage.setState("userId",t),this._userId=t}}{constructor(){super()}postProcessEmailLogin(){const t=this.loginClass.loginWithEmail();if(t instanceof f){const e=t;return this.userCallBack(e.user)}return!1}async login(t=""){let e;switch(t){case"facebook":e=this.loginClass.loginFacebook();break;case"microsoft":e=this.loginClass.loginMicrosoft();break;case"twitter":e=this.loginClass.loginTwitter();break;case"apple":e=this.loginClass.loginApple();break;case"google":default:e=this.loginClass.loginGoogle()}if(e instanceof f){const t=e;return await this.userCallBack(t.user)}return!1}static getInstance(t,e){return d.instance||(d.instance=new d,d.instance.ctx=e,d.instance.storage=new o(d.instance.ctx),d.instance.loginClass=h.getInstance(t),d.instance.setupGuest(),d.instance.firebaseApp=t),d.instance}async init(){await this.firebaseApp.auth().onAuthStateChanged((t=>{this.userCallBack(t)}))}async getRoles(t){const e=this.firebaseApp.firestore(),data=await e.collection("userManagement").doc(t).get().then((t=>t.data())).catch((()=>!1));return!1!==data?data.roles:[]}async userCallBack(t){return t?(await this.initialiseTheClassState(t,!0),!0):(this.setupGuest(),!1)}async initialiseTheClassState(t,e=!0){this.userId=t.uid,this.isLoggedIn=e,this.displayName=t.displayName,this.email=t.email,this.displayPicture=t.photoURL,this.roles=await this.getRoles(t.uid),this.isAdmin="admin"===this.roles.find((element=>"admin"===element))}async loginUsingCookies(){const t=await this.loginClass.useCookies();t&&(this.displayName=t.displayName,this.email=t.email)}logout(){this.firebaseApp.auth().signOut();try{this.setupGuest()}catch{return!1}return!0}}},function(t,e,n){"use strict";function r(t){if(null==t)throw new TypeError("Cannot destructure undefined")}n.d(e,"a",(function(){return r}))},,function(t,e,n){var r;r=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=t,n.c=e,n.p="",n(0)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var i=0;it.length)););var h=t.substring(0,e),d=t.substring(h.length+1,e+o),v=t.substring(e+o+1);t=h+d+v,o--}n.timeout=setTimeout((function(){n.toggleBlinking(!1),e>=t.length?n.doneTyping(t,e):n.keepTyping(t,e,o),n.temporaryPause&&(n.temporaryPause=!1,n.options.onTypingResumed(n.arrayPos,n))}),r)}),r):this.setPauseStatus(t,e,!0)}},{key:"keepTyping",value:function(t,e,n){0===e&&(this.toggleBlinking(!1),this.options.preStringTyped(this.arrayPos,this)),e+=n;var r=t.substr(0,e);this.replaceText(r),this.typewrite(t,e)}},{key:"doneTyping",value:function(t,e){var n=this;this.options.onStringTyped(this.arrayPos,this),this.toggleBlinking(!0),this.arrayPos===this.strings.length-1&&(this.complete(),!1===this.loop||this.curLoop===this.loopCount)||(this.timeout=setTimeout((function(){n.backspace(t,e)}),this.backDelay))}},{key:"backspace",value:function(t,e){var n=this;if(!0!==this.pause.status){if(this.fadeOut)return this.initFadeOut();this.toggleBlinking(!1);var r=this.humanizer(this.backSpeed);this.timeout=setTimeout((function(){e=c.htmlParser.backSpaceHtmlChars(t,e,n);var r=t.substr(0,e);if(n.replaceText(r),n.smartBackspace){var o=n.strings[n.arrayPos+1];o&&r===o.substr(0,e)?n.stopNum=e:n.stopNum=0}e>n.stopNum?(e--,n.backspace(t,e)):e<=n.stopNum&&(n.arrayPos++,n.arrayPos===n.strings.length?(n.arrayPos=0,n.options.onLastStringBackspaced(),n.shuffleStringsIfNeeded(),n.begin()):n.typewrite(n.strings[n.sequence[n.arrayPos]],e))}),r)}else this.setPauseStatus(t,e,!0)}},{key:"complete",value:function(){this.options.onComplete(this),this.loop?this.curLoop++:this.typingComplete=!0}},{key:"setPauseStatus",value:function(t,e,n){this.pause.typewrite=n,this.pause.curString=t,this.pause.curStrPos=e}},{key:"toggleBlinking",value:function(t){this.cursor&&(this.pause.status||this.cursorBlinking!==t&&(this.cursorBlinking=t,t?this.cursor.classList.add("typed-cursor--blink"):this.cursor.classList.remove("typed-cursor--blink")))}},{key:"humanizer",value:function(t){return Math.round(Math.random()*t/2)+t}},{key:"shuffleStringsIfNeeded",value:function(){this.shuffle&&(this.sequence=this.sequence.sort((function(){return Math.random()-.5})))}},{key:"initFadeOut",value:function(){var t=this;return this.el.className+=" "+this.fadeOutClass,this.cursor&&(this.cursor.className+=" "+this.fadeOutClass),setTimeout((function(){t.arrayPos++,t.replaceText(""),t.strings.length>t.arrayPos?t.typewrite(t.strings[t.sequence[t.arrayPos]],0):(t.typewrite(t.strings[0],0),t.arrayPos=0)}),this.fadeOutDelay)}},{key:"replaceText",value:function(t){this.attr?this.el.setAttribute(this.attr,t):this.isInput?this.el.value=t:"html"===this.contentType?this.el.innerHTML=t:this.el.textContent=t}},{key:"bindFocusEvents",value:function(){var t=this;this.isInput&&(this.el.addEventListener("focus",(function(e){t.stop()})),this.el.addEventListener("blur",(function(e){t.el.value&&0!==t.el.value.length||t.start()})))}},{key:"insertCursor",value:function(){this.showCursor&&(this.cursor||(this.cursor=document.createElement("span"),this.cursor.className="typed-cursor",this.cursor.innerHTML=this.cursorChar,this.el.parentNode&&this.el.parentNode.insertBefore(this.cursor,this.el.nextSibling)))}}]),t}();e.default=l,t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=Object.assign||function(t){for(var i=1;i":";";t.substr(e+1).charAt(0)!==o&&!(1+ ++e>t.length););e++}return e}},{key:"backSpaceHtmlChars",value:function(t,e,n){if("html"!==n.contentType)return e;var r=t.substr(e).charAt(0);if(">"===r||";"===r){var o="";for(o=">"===r?"<":"&";t.substr(e-1).charAt(0)!==o&&!(--e<0););e--}return e}}]),t}();e.default=r;var o=new r;e.htmlParser=o}])},t.exports=r()},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function r(t,source){for(var e=function(e){Object.defineProperty(t,e,{get:function(){return source[e]}})},n=0,r=Object.keys(source||{});n0&&r[r.length-1])||6!==c[0]&&2!==c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]1&&(path=E.slice(0,-1).join("/"),_=E.pop()),_){var O=_.match(/^\d+/);O&&(_=O[0])}this._fromComponents({host:m,pass:v,path:path,projectId:_,port:w,protocol:f,publicKey:h})},t.prototype._fromComponents=function(t){"user"in t&&!("publicKey"in t)&&(t.publicKey=t.user),this.user=t.publicKey||"",this.protocol=t.protocol,this.publicKey=t.publicKey||"",this.pass=t.pass||"",this.host=t.host,this.port=t.port||"",this.path=t.path||"",this.projectId=t.projectId},t.prototype._validate=function(){var t=this;if(["protocol","publicKey","host","projectId"].forEach((function(component){if(!t[component])throw new o.a("Invalid Dsn: "+component+" missing")})),!this.projectId.match(/^\d+$/))throw new o.a("Invalid Dsn: Invalid projectId "+this.projectId);if("http"!==this.protocol&&"https"!==this.protocol)throw new o.a("Invalid Dsn: Invalid protocol "+this.protocol);if(this.port&&isNaN(parseInt(this.port,10)))throw new o.a("Invalid Dsn: Invalid port "+this.port)},t}()},function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.Unknown="unknown",t.Skipped="skipped",t.Success="success",t.RateLimit="rate_limit",t.Invalid="invalid",t.Failed="failed"}(r||(r={})),function(t){t.fromHttpCode=function(code){return code>=200&&code<300?t.Success:429===code?t.RateLimit:code>=400&&code<500?t.Invalid:code>=500?t.Failed:t.Unknown}}(r||(r={}))},,function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){function t(){this.name=t.id}return t.prototype.setupOnce=function(e,n){e((function(e){var r=n().getIntegration(t);if(r){try{if(r._shouldDropEvent(e,r._previousEvent))return null}catch(t){return r._previousEvent=e}return r._previousEvent=e}return e}))},t.prototype._shouldDropEvent=function(t,e){return!!e&&(!!this._isSameMessageEvent(t,e)||!!this._isSameExceptionEvent(t,e))},t.prototype._isSameMessageEvent=function(t,e){var n=t.message,r=e.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!this._isSameFingerprint(t,e)&&!!this._isSameStacktrace(t,e))))},t.prototype._getFramesFromEvent=function(t){var e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch(t){return}else if(t.stacktrace)return t.stacktrace.frames},t.prototype._isSameStacktrace=function(t,e){var n=this._getFramesFromEvent(t),r=this._getFramesFromEvent(e);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(n=n,(r=r).length!==n.length)return!1;for(var i=0;i-1:n._options.tracingOptions.trackComponents;if(n._rootSpan&&f){var h=Object(o.b)(),span=d[c];span?(span.finish(),n._finishRootSpan(h,e)):t.$once("hook:"+r,(function(){n._rootSpan&&(d[c]=n._rootSpan.startChild({description:"Vue <"+l+">",op:c}))}))}};n._options.tracingOptions.hooks.forEach((function(e){var o=v[e];o?o.forEach((function(o){var c=f?m.bind(n,o):w.bind(n,o,e),l=t.$options[o];Array.isArray(l)?t.$options[o]=Object(r.g)([c],l):t.$options[o]="function"==typeof l?[c,l]:[c]})):c.a.warn("Unknown hook: "+e)}))}},c.a.log("You are still using the Vue.js integration, consider moving to @sentry/vue"),this._options=Object(r.a)(Object(r.a)({Vue:Object(l.e)().Vue,attachProps:!0,logErrors:!1,tracing:!1},e),{tracingOptions:Object(r.a)({hooks:["mount","update"],timeout:2e3,trackComponents:!1},e.tracingOptions)})}return t.prototype.setupOnce=function(t,e){this._options.Vue?(this._attachErrorHandler(e),this._options.tracing&&this._startTracing(e)):c.a.error("Vue integration is missing a Vue instance")},t.prototype._getComponentName=function(t){if(!t)return w;if(t.$root===t)return y;if(!t.$options)return w;if(t.$options.name)return t.$options.name;if(t.$options._componentTag)return t.$options._componentTag;if(t.$options.__file){var e=t.$options.__file.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"),n=Object(f.a)(e,".vue");return this._componentsCache[n]||(this._componentsCache[n]=n.replace(m,(function(t,e){return e?e.toUpperCase():""})))}return w},t.prototype._finishRootSpan=function(t,e){var n=this;this._rootSpanTimer&&clearTimeout(this._rootSpanTimer),this._rootSpanTimer=setTimeout((function(){if(n._tracingActivity){var r=e().getIntegration(h);r&&r.constructor.popActivity(n._tracingActivity)}n._rootSpan&&n._rootSpan.finish(t)}),this._options.tracingOptions.timeout)},t.prototype._startTracing=function(t){var e=this._applyTracingHooks;this._options.Vue.mixin({beforeCreate:function(){t().getIntegration(h)||t().getIntegration(d)?e(this,t):c.a.error("Vue integration has tracing enabled, but Tracing integration is not configured")}})},t.prototype._attachErrorHandler=function(e){var n=this,r=this._options.Vue.config.errorHandler;this._options.Vue.config.errorHandler=function(o,l,f){var h={};if(l)try{h.componentName=n._getComponentName(l),n._options.attachProps&&(h.propsData=l.$options.propsData)}catch(t){c.a.warn("Unable to extract metadata from Vue component.")}f&&(h.lifecycleHook=f),e().getIntegration(t)&&setTimeout((function(){e().withScope((function(t){t.setContext("vue",h),e().captureException(o)}))})),"function"==typeof r&&r.call(n._options.Vue,o,l,f),n._options.logErrors&&(n._options.Vue.util&&n._options.Vue.util.warn("Error in "+f+': "'+(o&&o.toString())+'"',l),console.error(o))}},t.id="Vue",t}()},function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.Ok="ok",t.Exited="exited",t.Crashed="crashed",t.Abnormal="abnormal"}(r||(r={}))}]]);